notification & notes wip

This commit is contained in:
salam committed 2026-02-01 16:36:27 +01:00
1 parent 94a3c6c472
commit 155177045b
30 files changed
+426 -320

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
<?php
namespace App\Models;
use App\Models\Scopes\ClientScope;
use Illuminate\Database\Eloquent\Model;
class EventUserNote extends Model
{
protected $fillable = [
'event_id',
'bookmaker_id',
'user_id',
'client_id',
'message',
'deleted',
];
protected static function booted(): void
{
static::addGlobalScope(new ClientScope);
}
public function user()
{
return $this->belongsTo(User::class);
}
public function client()
{
return $this->belongsTo(Client::class);
}
public function bookmaker()
{
return $this->belongsTo(Bookmaker::class);
}
}