<?php

namespace App\Modules\Pilkades\Models;

use App\Core\Concerns\HasUuid;
use App\Modules\Pilkades\Models\Concerns\BelongsToDesa;
use Illuminate\Database\Eloquent\Model;

class Countdown extends Model
{
    use BelongsToDesa, HasUuid;

    protected $table = 'countdowns';

    protected $fillable = [
        'desa_id',
        'label',
        'target_datetime',
        'is_active',
    ];

    protected function casts(): array
    {
        return [
            'is_active' => 'boolean',
            'target_datetime' => 'datetime',
        ];
    }
}
