add projet
This commit is contained in:
Executable
+38
@@ -0,0 +1,38 @@
|
||||
<?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';
|
||||
}
|
||||
Reference in New Issue
Block a user