<?php

namespace App\Models;

use App\Enums\ChickenStatus;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class Chicken extends Model
{
    use SoftDeletes;

    protected $guarded = ['id'];

    protected function casts(): array
    {
        return [
            'hatch_date' => 'date',
            'arrival_date' => 'date',
            'exit_date' => 'date',
            'status' => ChickenStatus::class,
        ];
    }
}
