35 lines
614 B
PHP
35 lines
614 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class EventUserNotification extends Model
|
|
{
|
|
protected $fillable = [
|
|
'event_id',
|
|
'bookmaker_id',
|
|
'user_id',
|
|
'odds_table_id',
|
|
'alarm_level_id',
|
|
'notify_by_email',
|
|
'is_notified',
|
|
'deleted',
|
|
];
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
|
|
public function bookmaker()
|
|
{
|
|
return $this->belongsTo(Bookmaker::class);
|
|
}
|
|
|
|
public function odds_table()
|
|
{
|
|
return $this->belongsTo(OddsTable::class);
|
|
}
|
|
}
|