hasOne(UserModel::class, "id", "user_id"); } public function Vote() { return $this->hasOne(VoteModel::class, "id", "vote_id"); } }