feat(models): add TempArrangement model
- Menambahkan model TempArrangement untuk mengelola data dalam tabel temp_arrangements. - Model ini mencakup atribut yang dapat diisi secara massal. - Memudahkan interaksi dengan database untuk pengaturan sementara.
This commit is contained in:
36
app/Models/TempArrangement.php
Normal file
36
app/Models/TempArrangement.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Webstatement\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
// use Modules\Webstatement\Database\Factories\TempArrangementFactory;
|
||||
|
||||
class TempArrangement extends Model
|
||||
{
|
||||
/**
|
||||
* The table associated with the model.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $table = 'temp_arrangements';
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'arrangement_id', // ID
|
||||
'linked_appl_id', // LINKED.APPL.ID
|
||||
'customer', // CUSTOMER
|
||||
'co_code', // CO.CODE
|
||||
'orig_contract_date', // ORIG.CONTRACT.DATE
|
||||
'product', // PRODUCT
|
||||
'start_date', // START.DATE
|
||||
'product_line', // PRODUCT.LINE
|
||||
'arr_status', // ARR.STATUS
|
||||
'product_group', // PRODUCT.GROUP
|
||||
'customer_role', // CUSTOMER.ROLE
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user