reconstruction of the project

This commit is contained in:
root
2026-03-08 16:33:24 -04:00
parent 23b7db1107
commit c8de5f7edc
9157 changed files with 77877 additions and 1073823 deletions
+17 -8
View File
@@ -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',
];
}