PXG_2026_API/app/Models/Event.php

25 lines
623 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Event extends Model
{
protected $fillable = [
'name','date','venue','shotgun_mode','courses_json',
'registration_open_at','registration_close_at',
'pairing_finalized_at','pairing_published_at'
];
protected $casts = [
'date' => 'date',
'shotgun_mode' => 'boolean',
'courses_json' => 'array',
'registration_open_at' => 'datetime',
'registration_close_at' => 'datetime',
'pairing_finalized_at' => 'datetime',
'pairing_published_at' => 'datetime',
];
}