55 lines
1.2 KiB
PHP

<?php
namespace Modules\EcommerceFinance\Models;
use App\Abstracts\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class AlipayBill extends Model
{
use SoftDeletes;
protected $table = 'ec_alipay_bills';
protected $fillable = [
'company_id',
'record_code',
'store_name',
'finance_remark',
'order_no',
'amount',
'custom_remark',
'bill_item',
'business_type',
'business_description',
'remark',
'alipay_account',
'counterparty_account',
'account_order_no',
'business_serial_no',
'merchant_order_no',
'business_base_order_no',
'online_order_no',
'business_order_no',
'business_bill_source',
'goods_name',
'online_real_store',
'income',
'expense',
'balance',
'occurred_at',
'modifier',
'platform',
'created_by',
'created_from',
];
protected $casts = [
'occurred_at' => 'datetime',
'amount' => 'decimal:6',
'income' => 'decimal:6',
'expense' => 'decimal:6',
'balance' => 'decimal:6',
];
}