44 lines
777 B
PHP
44 lines
777 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class Supplier extends BaseModel
|
|
{
|
|
public $timestamps = true;
|
|
use HasFactory;
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
|
|
protected $table = 'suppliers';
|
|
protected $primaryKey = 'id';
|
|
|
|
protected $fillable = [
|
|
'name_en',
|
|
'name_kh',
|
|
'contact_name',
|
|
'position',
|
|
'phone_number',
|
|
'email',
|
|
'address',
|
|
'website',
|
|
'vat_number',
|
|
'description',
|
|
'lab_id',
|
|
'created_at',
|
|
'created_by',
|
|
'updated_at',
|
|
'updated_by',
|
|
'record_status_id'
|
|
];
|
|
|
|
public static function boot()
|
|
{
|
|
parent::boot();
|
|
}
|
|
|
|
}
|