reconstruction of the project
This commit is contained in:
@@ -4,11 +4,17 @@ namespace App\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
|
||||
class PayPalPayment extends BaseModel
|
||||
{
|
||||
protected $table = 'paypal_payments';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
/**
|
||||
* CI: created_at is managed, updated_at is NOT used.
|
||||
* In Laravel: enable timestamps but disable UPDATED_AT.
|
||||
*/
|
||||
public $timestamps = false;
|
||||
const UPDATED_AT = null;
|
||||
|
||||
protected $fillable = [
|
||||
'webhook_id',
|
||||
'parent_school_id',
|
||||
@@ -29,9 +35,12 @@ class PayPalPayment extends BaseModel
|
||||
'created_at',
|
||||
];
|
||||
|
||||
// Enable timestamps
|
||||
public $timestamps = false;
|
||||
const CREATED_AT = 'created_at';
|
||||
const UPDATED_AT = ''; // not used; leave empty if not needed
|
||||
}
|
||||
|
||||
protected $casts = [
|
||||
'parent_school_id' => 'integer',
|
||||
'amount' => 'decimal:2',
|
||||
'paypal_fee' => 'decimal:2',
|
||||
'net_amount' => 'decimal:2',
|
||||
'synced' => 'boolean',
|
||||
'sync_attempts' => 'integer',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user