20 lines
547 B
PHP
20 lines
547 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class Waste4C2a extends SigdModel
|
|
{
|
|
protected $table = 'waste_4c2a';
|
|
protected $fillable = [
|
|
'id', 'inventory_year', 'activity_year', 'category', 'activity_code',
|
|
'composition', 'msw_b', 'open_burned', 'dry_matter',
|
|
'ef_carbon_f', 'ef_fossil_carbon_f', 'ef_oxidation_f', 'ef_cf', 'co2',
|
|
'row_num', 'row_status', 'created_by', 'updated_by',
|
|
];
|
|
|
|
public function activity()
|
|
{
|
|
return $this->belongsTo(ReferenceActivity::class, 'activity_code', 'code');
|
|
}
|
|
}
|