feat(models): add TempBillDetail model
- Menambahkan model TempBillDetail untuk tabel temp_bill_details. - Menggunakan trait HasFactory untuk dukungan factory. - Menentukan atribut yang dapat diisi secara massal.
This commit is contained in:
39
app/Models/TempBillDetail.php
Normal file
39
app/Models/TempBillDetail.php
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Webstatement\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
// use Modules\Webstatement\Database\Factories\TempBillDetailFactory;
|
||||||
|
|
||||||
|
class TempBillDetail extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $table = 'temp_bill_details';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The attributes that are mass assignable.
|
||||||
|
*
|
||||||
|
* @var array<int, string>
|
||||||
|
*/
|
||||||
|
protected $fillable = [
|
||||||
|
'_id',
|
||||||
|
'repay_ref',
|
||||||
|
'repay_amount',
|
||||||
|
'writeoff_ref',
|
||||||
|
'or_prop_amount',
|
||||||
|
'property',
|
||||||
|
'bill_type',
|
||||||
|
'payment_date',
|
||||||
|
'writeoff_amt',
|
||||||
|
'os_prop_amount',
|
||||||
|
'actual_pay_date',
|
||||||
|
'bill_status',
|
||||||
|
'payment_type',
|
||||||
|
'payment_method',
|
||||||
|
'os_total_amount',
|
||||||
|
'bill_date',
|
||||||
|
'arrangement_id'
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user