export type User = {
  id: string;
  organization_id: string;
  outlet_id: string;
  name: string;
  email: string;
  role: string;
  permissions: Record<string, boolean>;
  is_active: boolean;
  created_at: string; // ISO date string
  updated_at: string; // ISO date string
};

type Pagination = {
  total_count: number;
  page: number;
  limit: number;
  total_pages: number;
};

export type Users = {
  users: User[];
  pagination: Pagination;
};

export type UserRequest = {
  outlet_id: string;
  name: string;
  email: string;
  password: string;
  role: string;
  permissions: Record<string, boolean>;
  is_active: boolean;
}
