<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;

class Pruning extends Treatment
{
    /** @use HasFactory<\Database\Factories\PruningFactory> */
    use HasFactory;

    protected $table = 'prunings';

    protected $primaryKey = 'treatment_id';

    public $incrementing = false;

    protected $keyType = 'int';

    protected $fillable = [
        'treatment_id',
        'method',
        'percentage_removed',
        'note',
    ];

    protected $casts = [
        'percentage_removed' => 'integer',
    ];
}
