- Crowd Types + Persons CRUD (73 tests) - Festival Sections + Time Slots + Shifts CRUD met assign/claim flow (84 tests) - Invite Flow + Member Management met InvitationService (109 tests) - Schema v1.6 migraties volledig uitgevoerd - DevSeeder bijgewerkt met crowd types voor testorganisatie
47 lines
913 B
PHP
47 lines
913 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Concerns\HasUlids;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
final class ShiftWaitlist extends Model
|
|
{
|
|
use HasFactory;
|
|
use HasUlids;
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $table = 'shift_waitlist';
|
|
|
|
protected $fillable = [
|
|
'shift_id',
|
|
'person_id',
|
|
'position',
|
|
'added_at',
|
|
'notified_at',
|
|
];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'added_at' => 'datetime',
|
|
'notified_at' => 'datetime',
|
|
];
|
|
}
|
|
|
|
public function shift(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Shift::class);
|
|
}
|
|
|
|
public function person(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Person::class);
|
|
}
|
|
}
|