17 lines
573 B
PHP
17 lines
573 B
PHP
<?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'); }
|
|
}
|