23 lines
778 B
PHP
23 lines
778 B
PHP
<?php
|
|
namespace App\Models\Specimen;
|
|
|
|
use App\Models\BaseUtcModel;
|
|
|
|
class ContainerDefModel extends BaseModel {
|
|
protected $table = 'containerdef';
|
|
protected $primaryKey = 'ConDefID';
|
|
protected $allowedFields = ['SiteID', 'ConCode', 'ConName', 'ConDesc', 'Additive', 'ConClass', 'Color', 'CreateDate', 'EndDate'];
|
|
|
|
protected $useTimestamps = true;
|
|
protected $createdField = 'CreateDate';
|
|
protected $updatedField = '';
|
|
protected $useSoftDeletes = true;
|
|
protected $deletedField = 'EndDate';
|
|
|
|
protected $beforeInsert = ['normalizeDatesToUTC'];
|
|
protected $beforeUpdate = ['normalizeDatesToUTC'];
|
|
protected $afterFind = ['convertDatesToUTCISO'];
|
|
protected $afterInsert = ['convertDatesToUTCISO'];
|
|
protected $afterUpdate = ['convertDatesToUTCISO'];
|
|
|
|
} |