Files
alrahma_sunday_school_api/app/Models/PlacementBatch.php
T
2026-06-09 02:32:58 -04:00

38 lines
754 B
PHP

<?php
namespace App\Models;
use App\Models\BaseModel;
class PlacementBatch extends BaseModel
{
protected $table = 'placement_batches';
// ✅ legacy: useTimestamps = true (created_at/updated_at)
public $timestamps = true;
protected $fillable = [
'placement_test',
'school_year',
'created_by',
'updated_by',
'created_at',
'updated_at',
];
protected $casts = [
'created_by' => 'integer',
'updated_by' => 'integer',
];
/* Optional relationships */
public function creator()
{
return $this->belongsTo(User::class, 'created_by');
}
public function updater()
{
return $this->belongsTo(User::class, 'updated_by');
}
}