<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\HasMany;

class MeetingType extends Model
{
    protected $fillable = [
        'key', 'name', 'default_title', 'suggested_duration', 'agenda_template',
        'minutes_template', 'participant_roles', 'recurrence_rule', 'settings', 'is_active',
    ];

    protected $casts = [
        'participant_roles' => 'array',
        'recurrence_rule' => 'array',
        'settings' => 'array',
        'is_active' => 'boolean',
    ];

    public function meetings(): HasMany
    {
        return $this->hasMany(Meeting::class);
    }
}
