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