<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SpeciesConfig extends Model
{
    protected $fillable = [
        'farm_id', 'name', 'target_weight_g',
        'safe_ph_min', 'safe_ph_max', 'warning_ph_min', 'warning_ph_max',
        'safe_do_min_mgl', 'warning_do_min_mgl',
        'safe_temp_min_c', 'safe_temp_max_c',
        'safe_ammonia_max_ppm', 'safe_nitrite_max_ppm', 'is_active',
    ];

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