feat: 期权交易后端 — 下单+自动结算+后台管理
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
namespace App;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class OptionOrder extends Model
|
||||
{
|
||||
protected $table = 'option_order';
|
||||
protected $fillable = ['user_id','pair_id','symbol','direction','amount','fee','open_price','close_price','profit_rate','income','delivery_time','status'];
|
||||
public function pair() { return $this->belongsTo(OptionPair::class, 'pair_id'); }
|
||||
}
|
||||
Reference in New Issue
Block a user