<?php

namespace App\Models;

use App\Models\Concerns\HasPublicId;
use Illuminate\Database\Eloquent\Model;

final class ServiceType extends Model
{
    use HasPublicId;

    protected $table = 'service_types';

    protected $fillable = [
        'public_id',
        'company_id',
        'code',
        'name',
        'description',
        'default_tax_code_id',
        'default_income_account_id',
        'default_cost_account_id',
        'is_active',
    ];

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