24 lines
588 B
PHP
24 lines
588 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Live\Anchor;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class EnterpriseAllianceMerchant extends Model
|
|
{
|
|
use SoftDeletes;
|
|
protected $fillable = [];
|
|
protected $guarded = [];
|
|
public function enterpriseAlliance(){
|
|
return $this->belongsTo(EnterpriseAlliance::class);
|
|
}
|
|
public function merchant(){
|
|
return $this->hasOne(MerchantAccount::class,'id','mch_id');
|
|
}
|
|
public function anchor(){
|
|
return $this->hasOne(Anchor::class,'m_id','mch_id');
|
|
}
|
|
}
|