migrate to gtea from bistbucket
This commit is contained in:
32
public/restaurant/Modules/HRM/app/Models/LoanInstallment.php
Normal file
32
public/restaurant/Modules/HRM/app/Models/LoanInstallment.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user