33 lines
624 B
PHP
33 lines
624 B
PHP
<?php
|
|
|
|
namespace Modules\HRM\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class LoanInstallment extends Model
|
|
{
|
|
protected $fillable = [
|
|
'restaurant_id',
|
|
'loan_id',
|
|
'amount',
|
|
'due_date',
|
|
'paid_date',
|
|
'is_paid',
|
|
'is_overdue',
|
|
'fine_amount',
|
|
'total_due',
|
|
'status',
|
|
'remarks',
|
|
];
|
|
|
|
public const TABLE_NAME = 'loan_installments';
|
|
|
|
protected $table = self::TABLE_NAME;
|
|
|
|
public function loan(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Loan::class);
|
|
}
|
|
}
|