StocksNew/Modules/Office/app/Models/GeneratorLogBook.php

42 lines
816 B
PHP
Raw Normal View History

2024-08-27 12:03:06 +00:00
<?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'
];
}