Files
ismailmasseran e29a5891c8 Bugfix/list clickup issue (#5)
Reviewed-on: #5
Co-authored-by: ISMAIL MASSERAN <ismail@koppkb.com>
Co-committed-by: ISMAIL MASSERAN <ismail@koppkb.com>
2026-10-19 13:30:36 +08:00

46 lines
850 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class NotisBid extends Model
{
use HasFactory;
protected $table = 'notisbid';
protected $fillable = [
'notis_id',
'caw_id',
'kodcaw',
'norujukan',
'nokp',
'jbg',
'kadarupah',
'nilaimarhun',
'pinjaman',
'bakiupah',
'berat',
'marhun',
'percent',
'fasa',
];
public function cawangan()
{
return $this->belongsTo(Cawangan::class, 'caw_id', 'id');
}
public function notis()
{
return $this->belongsTo(Notis::class, 'notis_id', 'id');
}
public function cawanganNotis()
{
return $this->hasOne(CawanganNotis::class, 'caw_id', 'caw_id');
}
}