wip
This commit is contained in:
1 parent
49b1eba348
commit
9ca5657827
28 files changed
+288
-234
No files matched your search
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class AlarmSetting extends Model
|
||||
{
|
||||
//
|
||||
}
|
||||
@@ -142,4 +142,9 @@ class Event extends Model
|
||||
{
|
||||
return $this->hasOne(EventUserStar::class, 'event_id', 'id')->where('user_id', auth()->user()->id);
|
||||
}
|
||||
|
||||
public function event_bookmaker()
|
||||
{
|
||||
return $this->hasOne(EventBookmaker::class, 'event_id', 'id')->where('bookmaker_id', auth()->user()->bookmaker_id);
|
||||
}
|
||||
}
|
||||
@@ -9,24 +9,26 @@ class EventBookmaker extends Model
|
||||
protected $fillable = [
|
||||
'event_id',
|
||||
'bookmaker_id',
|
||||
'starttime',
|
||||
'bmoid',
|
||||
'in_feed',
|
||||
'is_swopped',
|
||||
'send_status',
|
||||
'starttime',
|
||||
'bkm_2w',
|
||||
'bkm_2ws1',
|
||||
'bkm_3w',
|
||||
'bkm_3wht',
|
||||
'bkm_dc',
|
||||
'bkm_dbn',
|
||||
'bkm_ggng',
|
||||
'bkm_po',
|
||||
'bkm_poht',
|
||||
'bkm_poq1',
|
||||
'bkm_to',
|
||||
'bkm_toht',
|
||||
'bkm_toq1',
|
||||
'bkm_tq',
|
||||
'has_to_qualify',
|
||||
'alarm_2w',
|
||||
'alarm_2ws1',
|
||||
'alarm_3w',
|
||||
'alarm_3wht',
|
||||
'alarm_dc',
|
||||
'alarm_dbn',
|
||||
'alarm_ggng',
|
||||
'alarm_po',
|
||||
'alarm_poht',
|
||||
'alarm_poq1',
|
||||
'alarm_to',
|
||||
'alarm_toht',
|
||||
'alarm_toq1',
|
||||
'alarm_tq',
|
||||
];
|
||||
|
||||
public function event()
|
||||
|
||||
@@ -2,14 +2,13 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Scopes\ClientScope;
|
||||
use App\Models\Scopes\SportScope;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class MultilineClient extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'client_id',
|
||||
'client_bookmaker_id',
|
||||
'sport_id',
|
||||
'multiline_setting_id',
|
||||
'disabled',
|
||||
@@ -35,9 +34,6 @@ class MultilineClient extends Model
|
||||
|
||||
protected static function booted(): void
|
||||
{
|
||||
static::addGlobalScope(new ClientScope);
|
||||
|
||||
static::addGlobalScope(new SportScope);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user