<?php

declare(strict_types=1);

namespace App\Models;

class LossReason extends BaseModel
{
    protected string $table = 'loss_reasons';
    protected string $primaryKey = 'id';

    public function findAllActive(): array
    {
        return $this->query(
            "SELECT * FROM {$this->table} WHERE status = 'active' ORDER BY name"
        );
    }
}
