import { Database } from '@kit/supabase/database';

export type ApplicationRole = Account['application_role'];
export enum ApplicationRoleEnum {
  User = 'user',
  Doctor = 'doctor',
  SuperAdmin = 'super_admin',
}

export type AccountParams =
  Database['medreport']['Tables']['account_params']['Row'];

export type Account = Database['medreport']['Tables']['accounts']['Row'];
export type AccountWithParams = Account & {
  accountParams:
    | (Pick<AccountParams, 'weight' | 'height'> & {
        isSmoker: AccountParams['is_smoker'] | null;
      })
    | null;
};

export type CompanyParams =
  Database['medreport']['Tables']['company_params']['Row'];

export type BmiThresholds =
  Database['medreport']['Tables']['bmi_thresholds']['Row'];
