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
+9 -5
View File
@@ -7,10 +7,7 @@ use App\Models\BaseModel;
class AdminNotificationSubject extends BaseModel
{
protected $table = 'admin_notification_subjects';
protected $primaryKey = 'id';
public $timestamps = true;
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
protected $fillable = [
'admin_id',
'subject',
@@ -18,8 +15,15 @@ class AdminNotificationSubject extends BaseModel
'updated_at',
];
// CI uses created_at / updated_at
public $timestamps = true;
protected $casts = [
'admin_id' => 'integer',
];
// Optional relationship (if your admins are in users table)
public function admin()
{
return $this->belongsTo(User::class, 'admin_id');
}
}
}