<?php

declare(strict_types=1);

namespace App\Models;

class MaterialCategory extends BaseModel
{
    protected string $table = 'material_categories';
    protected string $primaryKey = 'id';

    public function findAllActive(): array
    {
        return $this->findAll(['status' => 'active'], 'name');
    }
}
