hasOne(CouponBill::class,"coupon_id","id"); } public function account() { return $this->hasOne(Account::class,"user_code","consumer_code"); } public function business() { return $this->hasOne(Business::class,"code","business_code"); } }