StocksNew/Modules/Office/app/Models/GeneratorLogBook.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +05:45

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'
];
}