<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;

class Spraying extends Treatment
{
    /** @use HasFactory<\Database\Factories\SprayingFactory> */
    use HasFactory;

    protected $table = 'sprayings';

    protected $primaryKey = 'treatment_id';

    public $incrementing = false;

    protected $keyType = 'int';

    protected $fillable = [
        'treatment_id',
        'pesticide',
        'concentration',
        'note',
    ];

    protected $casts = [
        'concentration' => 'float',
    ];
}
