<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class OtherComponent extends Model
{
    use HasFactory;

    protected $fillable = [
        'name',
        'material',
        'price_per_unit',
        'unit',
        'description',
        'is_active',
    ];

    protected $casts = [
        'price_per_unit' => 'decimal:2',
        'is_active' => 'boolean',
    ];
}