TimeSlot::class, 'fk' => 'time_slot_id']; } public $timestamps = false; protected $table = 'volunteer_availabilities'; protected $fillable = [ 'person_id', 'time_slot_id', 'preference_level', 'submitted_at', ]; protected function casts(): array { return [ 'preference_level' => 'integer', 'submitted_at' => 'datetime', ]; } public function person(): BelongsTo { return $this->belongsTo(Person::class); } public function timeSlot(): BelongsTo { return $this->belongsTo(TimeSlot::class); } }