36 lines
727 B
PHP
36 lines
727 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class CmsFileDataAktivitas extends SigdModel
|
|
{
|
|
protected $table = 'file_data_aktivitas';
|
|
protected $fillable = [
|
|
'id',
|
|
'sector',
|
|
'sub_sector',
|
|
'inventory_year',
|
|
'name',
|
|
'file_upload',
|
|
'description',
|
|
'row_status',
|
|
'created_by',
|
|
'updated_by',
|
|
];
|
|
|
|
public function sectorData()
|
|
{
|
|
return $this->belongsTo(ReferenceSector::class, 'sector', 'code');
|
|
}
|
|
|
|
public function subSector()
|
|
{
|
|
return $this->belongsTo(ReferenceSubSector::class, 'sub_sector', 'code');
|
|
}
|
|
|
|
public function creator()
|
|
{
|
|
return $this->belongsTo(User::class, 'created_by', 'name');
|
|
}
|
|
}
|