Files
alrahma_sunday_school_api/app/Models/InvoiceStudentList.php
T
2026-03-05 12:29:37 -05:00

39 lines
913 B
PHP
Executable File

<?php
namespace App\Models;
use App\Models\BaseModel;
class InvoiceStudentList extends BaseModel
{
// Specify the table name
protected $table = 'invoice_students_list'; // Primary key for the table
protected $primaryKey = 'id';
// Specify which fields are allowed for mass assignment
protected $fillable = [
'invoice_id',
'student_id',
'student_firstname',
'student_lastname',
'school_id',
'enrolled',
'school_year',
'created_at',
'updated_at',
'semester',
];
// Enable auto-incrementing primary key
protected $useAutoIncrement = true;
// Specify return type as an array
// Automatically set `created_at` and `updated_at` fields
public $timestamps = true;
// Specify the names of the timestamp fields
const CREATED_AT = 'created_at';
const UPDATED_AT = 'updated_at';
}