<?php

namespace App\Models;

use Essa\APIToolKit\Filters\Filterable;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class ChickenLoadingLine extends Model
{
    use HasFactory, Filterable, SoftDeletes;

    protected $table = "chick_loading_lines";

    protected $fillable = [
        "synced_id",
        "header_id",
        "breeder_id",
        "breeder_name",
        "class_id",
        "class_name",
        "initial_population",
        "reject",
        "doa",
        "loaded_at",
        "notes",
    ];

    protected $casts = [
        "loaded_at" => "datetime:H:i",
    ];
}
