42 lines
816 B
PHP
42 lines
816 B
PHP
|
<?php
|
||
|
|
||
|
namespace Modules\Office\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||
|
use Modules\Office\Database\factories\GeneratorLogBookFactory;
|
||
|
|
||
|
class GeneratorLogBook extends Model
|
||
|
{
|
||
|
use HasFactory;
|
||
|
|
||
|
protected $table = "tbl_generator_log_books";
|
||
|
|
||
|
/**
|
||
|
* The attributes that are mass assignable.
|
||
|
*/
|
||
|
protected $fillable = [
|
||
|
'generator_id',
|
||
|
'log_type',
|
||
|
'from',
|
||
|
'to',
|
||
|
'servicing_date',
|
||
|
'fee',
|
||
|
'by',
|
||
|
'diesel_consumed',
|
||
|
'mobile_consumed',
|
||
|
'status',
|
||
|
'description',
|
||
|
'remarks',
|
||
|
'createdBy',
|
||
|
'updatedBy',
|
||
|
];
|
||
|
|
||
|
const LOG_TYPE = [
|
||
|
'usage' => 'Usage',
|
||
|
'service' => 'Service',
|
||
|
'other' => 'Other'
|
||
|
];
|
||
|
|
||
|
}
|