31 lines
589 B
PHP
31 lines
589 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class EmissionFactorReference extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'emission_factor_reference';
|
|
|
|
protected $fillable = [
|
|
'param',
|
|
'keterangan',
|
|
'value',
|
|
'unit'
|
|
];
|
|
|
|
protected $casts = [
|
|
'value' => 'float'
|
|
];
|
|
|
|
protected $keyType = 'string';
|
|
public $incrementing = false;
|
|
|
|
public $timestamps = true;
|
|
const CREATED_AT = 'created_at';
|
|
const UPDATED_AT = 'updated_at';
|
|
} |