wip
This commit is contained in:
1 parent
b0a002c7c1
commit
23cf804865
23 files changed
+283
-123
No files matched your search
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class AlarmLevel extends Model
|
||||
{
|
||||
//
|
||||
}
|
||||
@@ -148,11 +148,6 @@ class Event extends Model
|
||||
return $this->hasMany(EventUserNote::class, 'event_id', 'id');
|
||||
}
|
||||
|
||||
public function event_user_notification()
|
||||
{
|
||||
return $this->hasMany(EventUserNotification::class, 'event_id', 'id');
|
||||
}
|
||||
|
||||
public function event_bookmaker()
|
||||
{
|
||||
return $this->hasOne(EventBookmaker::class, 'event_id', 'id')->where('bookmaker_id', auth()->user()->bookmaker_id);
|
||||
|
||||
@@ -4,31 +4,24 @@ namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EventUserNotification extends Model
|
||||
class PersonalNotification extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'event_id',
|
||||
'bookmaker_id',
|
||||
'user_id',
|
||||
'odds_table_id',
|
||||
'sport_id',
|
||||
'bookmaker_id',
|
||||
'alarm_level_id',
|
||||
'notify_by_system',
|
||||
'notify_by_email',
|
||||
'is_notified',
|
||||
'deleted',
|
||||
];
|
||||
|
||||
public function user()
|
||||
public function sport()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
return $this->belongsTo(Sport::class);
|
||||
}
|
||||
|
||||
public function bookmaker()
|
||||
{
|
||||
return $this->belongsTo(Bookmaker::class);
|
||||
}
|
||||
|
||||
public function odds_table()
|
||||
{
|
||||
return $this->belongsTo(OddsTable::class);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class PersonalNotificationSend extends Model
|
||||
{
|
||||
//
|
||||
}
|
||||
Reference in new issue
Block a user