feat(event): add per-user date change notices

This commit is contained in:
2026-09-15 17:06:12 -03:00
parent 69f2dbe056
commit d02ad5fce2
12 changed files with 370 additions and 3 deletions

View File

@@ -8,6 +8,7 @@ use App\Domains\Tenant\Models\Tenant;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany;
#[Fillable([
'tenant_code',
@@ -58,4 +59,10 @@ class EventDateChange extends Model
{
return $this->belongsTo(User::class, 'created_by_user_id')->withTrashed();
}
/** @return HasMany<EventDateChangeView, $this> */
public function views(): HasMany
{
return $this->hasMany(EventDateChangeView::class);
}
}