2025-10-24 16:41:31 +07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models\Test;
|
|
|
|
|
|
|
|
|
|
use App\Models\BaseModel;
|
|
|
|
|
|
|
|
|
|
class TestDefCalModel extends BaseModel {
|
|
|
|
|
protected $table = 'testdefcal';
|
|
|
|
|
protected $primaryKey = 'TestCalID';
|
2025-12-30 16:54:33 +07:00
|
|
|
protected $allowedFields = [
|
|
|
|
|
'SiteID',
|
|
|
|
|
'TestSiteID',
|
|
|
|
|
'DisciplineID',
|
|
|
|
|
'DepartmentID',
|
|
|
|
|
'FormulaInput',
|
|
|
|
|
'FormulaCode',
|
|
|
|
|
'RefType',
|
|
|
|
|
'Unit1',
|
|
|
|
|
'Factor',
|
|
|
|
|
'Unit2',
|
|
|
|
|
'Decimal',
|
|
|
|
|
'Method',
|
|
|
|
|
'CreateDate',
|
|
|
|
|
'EndDate'
|
|
|
|
|
];
|
2025-10-24 16:41:31 +07:00
|
|
|
|
|
|
|
|
protected $useTimestamps = true;
|
|
|
|
|
protected $createdField = 'CreateDate';
|
|
|
|
|
protected $updatedField = '';
|
|
|
|
|
protected $useSoftDeletes = true;
|
|
|
|
|
protected $deletedField = "EndDate";
|
|
|
|
|
|
|
|
|
|
}
|