<?php

class Category extends Model {
    protected string $table = 'categories';

    public function getActiveCategories(): array {
        return $this->findWhere(['status' => 'active'], 'id ASC');
    }
}
