mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
29 lines
526 B
PHP
29 lines
526 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class UserReward extends AbstractModel
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $table = 'user_rewards';
|
|
protected $dates = ['deleted_at'];
|
|
|
|
public function reward()
|
|
{
|
|
return $this->belongsTo(Reward::class, 'reward_id');
|
|
}
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class, 'user_id');
|
|
}
|
|
|
|
public function voucher()
|
|
{
|
|
return $this->belongsTo(Voucher::class, 'voucher_id');
|
|
}
|
|
}
|