Files
crewli/api/app/Models/ShiftWaitlist.php
bert.hausmans 9acb27af3a feat: fase 2 backend — crowd types, persons, sections, shifts, invite flow
- 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
2026-04-08 01:34:46 +02:00

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);
}
}