36 lines
716 B
PHP
36 lines
716 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use EloquentFilter\Filterable;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class RiceShrimpIndustry extends Model
|
|
{
|
|
use Filterable, HasFactory;
|
|
|
|
protected $fillable = [
|
|
'year',
|
|
'quarter',
|
|
'area',
|
|
'area_unit',
|
|
'product_output',
|
|
'product_output_unit',
|
|
'product_value',
|
|
'product_value_unit',
|
|
'created_by',
|
|
'updated_by',
|
|
];
|
|
|
|
public function createdBy()
|
|
{
|
|
return $this->belongsTo(AdminUser::class, 'created_by');
|
|
}
|
|
|
|
public function updatedBy()
|
|
{
|
|
return $this->belongsTo(AdminUser::class, 'updated_by');
|
|
}
|
|
}
|