feat: C2C商家交易系统后端 — API+后台管理
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace App;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class C2cMerchantOrder extends Model
|
||||
{
|
||||
protected $table = 'c2c_merchant_order';
|
||||
protected $fillable = [
|
||||
'order_no','user_id','merchant_id','direction','crypto_currency','fiat_currency',
|
||||
'amount','unit_price','total_price','fee','fee_rate','status',
|
||||
'contact_type','contact_link','expire_time'
|
||||
];
|
||||
|
||||
public function merchant() { return $this->belongsTo(C2cMerchant::class, 'merchant_id'); }
|
||||
public function user() { return $this->belongsTo(Users::class, 'user_id'); }
|
||||
}
|
||||
Reference in New Issue
Block a user