43 lines
882 B
PHP
43 lines
882 B
PHP
<?php
|
|
|
|
namespace Modules\Office\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Modules\Office\Database\factories\GeneratorFactory;
|
|
|
|
class Generator extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'tbl_generators';
|
|
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*/
|
|
protected $fillable = [
|
|
'name',
|
|
'model',
|
|
'manufacturer',
|
|
'serial_number',
|
|
'fuel_type',
|
|
'fuel_tank_capacity',
|
|
'capacity',
|
|
'warranty_expiry_date',
|
|
'location',
|
|
'installation_date',
|
|
'last_maintenance_date',
|
|
'next_maintenance_due',
|
|
'status',
|
|
'description',
|
|
'remarks',
|
|
'createdBy',
|
|
'updatedBy',
|
|
];
|
|
|
|
const FUEL_TYPE = [
|
|
'petrol' => 'Petrol',
|
|
'diesel' => 'Diesel',
|
|
];
|
|
}
|