xus admin
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

35 lines
735 B

<?php
namespace App\Models;
use App\Events\TestTradeOrderEvent;
use Illuminate\Database\Eloquent\Model;
class TestTradeOrder extends Model
{
protected $table = 'test_trade_order';
protected $primaryKey = 'order_id';
protected $guarded = [];
protected $attributes = [
'trade_buy_fee' => 0,
'trade_sell_fee' => 0,
];
protected $casts = [
'unit_price' => 'real',
'trade_amount' => 'real',
'trade_money' => 'real',
'trade_buy_fee' => 'real',
'trade_sell_fee' => 'real',
];
/**
* 模型的事件映射
* @var array
*/
// protected $dispatchesEvents = [
// 'created' => TestTradeOrderEvent::class,
// ];
}