44 lines
945 B
PHP
44 lines
945 B
PHP
<?php
|
|
|
|
namespace Modules\Writeoff\Entities;
|
|
|
|
class Rekening extends BaseModel
|
|
{
|
|
protected $table = 'rekening';
|
|
protected $fillable = [
|
|
'branch_id',
|
|
'debitur_id',
|
|
'product_id',
|
|
'currency_id',
|
|
'nomor_rekening',
|
|
'status_rekening',
|
|
'status',
|
|
'limit_ref',
|
|
'registered_at',
|
|
'authorized_at',
|
|
'authorized_status',
|
|
'authorized_by',
|
|
];
|
|
|
|
public function branch()
|
|
{
|
|
return $this->belongsTo(Branch::class);
|
|
}
|
|
|
|
public function debitur()
|
|
{
|
|
return $this->belongsTo(Debitur::class);
|
|
}
|
|
|
|
public function product()
|
|
{
|
|
return $this->belongsTo(Product::class);
|
|
}
|
|
|
|
public function currency()
|
|
{
|
|
return $this->belongsTo(Currency::class);
|
|
}
|
|
|
|
}
|