接单员与财务管理
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* 统一三方支付流水模型
|
||||
*/
|
||||
class PaymentTransactionModel extends Model
|
||||
{
|
||||
protected $table = 'payment_transactions';
|
||||
|
||||
protected $fillable = [
|
||||
'transaction_no',
|
||||
'out_trade_no',
|
||||
'pay_type',
|
||||
'amount',
|
||||
'status',
|
||||
'business_type',
|
||||
'business_id',
|
||||
'user_id',
|
||||
'openid',
|
||||
'raw_data',
|
||||
'paid_at',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'amount' => 'decimal:2',
|
||||
'status' => 'integer',
|
||||
'business_id' => 'integer',
|
||||
'user_id' => 'integer',
|
||||
'raw_data' => 'array',
|
||||
'paid_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user