<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Announcement extends Model
{
    protected $fillable = [
        'title',
        'message',
        'type',
        'target_type',
        'target_id',
        'starts_at',
        'ends_at',
        'is_dismissible',
        'priority',
        'is_active',
        'created_by',
    ];

    protected $casts = [
        'starts_at' => 'datetime',
        'ends_at' => 'datetime',
        'is_dismissible' => 'boolean',
        'is_active' => 'boolean',
    ];
}
