54 lines
1.0 KiB
PHP
54 lines
1.0 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Modules\Restaurant\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
||
|
|
|
||
|
|
class Supplier extends Model
|
||
|
|
{
|
||
|
|
use SoftDeletes;
|
||
|
|
|
||
|
|
protected $fillable = [
|
||
|
|
'restaurant_id',
|
||
|
|
'name',
|
||
|
|
'phone',
|
||
|
|
'company_name',
|
||
|
|
'contact_person',
|
||
|
|
'alternate_phone',
|
||
|
|
'email',
|
||
|
|
'website',
|
||
|
|
'image',
|
||
|
|
'address',
|
||
|
|
'city',
|
||
|
|
'state',
|
||
|
|
'country',
|
||
|
|
'postal_code',
|
||
|
|
'tax_number',
|
||
|
|
'bank_name',
|
||
|
|
'bank_account_name',
|
||
|
|
'bank_account_number',
|
||
|
|
'ifsc_code',
|
||
|
|
'opening_balance',
|
||
|
|
'opening_balance_date',
|
||
|
|
'due',
|
||
|
|
'balance',
|
||
|
|
'supply_type',
|
||
|
|
'payment_terms',
|
||
|
|
'credit_limit',
|
||
|
|
'rating',
|
||
|
|
'notes',
|
||
|
|
'contract_file',
|
||
|
|
'trade_license',
|
||
|
|
'nid_number',
|
||
|
|
'status',
|
||
|
|
'created_at',
|
||
|
|
'updated_at',
|
||
|
|
'deleted_at',
|
||
|
|
];
|
||
|
|
|
||
|
|
public const TABLE_NAME = 'suppliers';
|
||
|
|
|
||
|
|
protected $table = self::TABLE_NAME;
|
||
|
|
}
|