25 lines
518 B
PHP
25 lines
518 B
PHP
<?php
|
|
|
|
namespace App\Models\Server;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class RewardSignUp extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
public function merchantUser(){
|
|
return $this->hasOne(MerchantUser::class,'id','merchant_user_id');
|
|
}
|
|
|
|
public function reward(){
|
|
return $this->hasOne(RewardUser::class,'id','reward_id');
|
|
}
|
|
|
|
public function fromUser(){
|
|
return $this->hasOne(MerchantUser::class,'openid','from_openid');
|
|
}
|
|
|
|
}
|
|
|