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

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