export type User = {
    id: number;
    name: string;
    email: string;
    phone_number: string;
    status: string | null;
    role: Role | null;
    email_verified_at: string | null;
    created_at: string | null;
    updated_at: string | null;
    [key: string]: unknown;
};

export type Auth = {
    user: User;
};

export type Permission = {
    id: number;
    name: string;
    description?: string | null;
};

export type Role = {
    id: number;
    name: string;
    permissions: Permission[];
};

export type ServiceCentre = {
    id: number;
    name: string;
    code: string | null;
    ward_name: string | null;
    ward_id: string | null;
    physical_address: string | null;
    status: string;
};

export type Ward = {
    id: number;
    name: string;
    county: {
        id: number;
        name: string;
    };
};

export type Asset = {
    id: number;
    name: string;
    manufacturer: string;
    model: string;
    uid: string;
    unit_of_measure_name: string;
    unit_of_measure_id: string;
    unit_of_measure: UnitOfMeasure;
    status: string;
};

export type UnitOfMeasure = {
    id: number;
    name: string;
};