export interface OrganizationRequest {
  organization_name: string; // required, 1–255 chars
  organization_email?: string | null; // optional, must be a valid email if present
  organization_phone_number?: string | null; // optional
  plan_type: 'basic' | 'premium' | 'enterprise'; // required, enum

  admin_name: string; // required, 1–255 chars
  admin_email: string; // required, email
  admin_password: string; // required, min length 6

  outlet_name: string; // required, 1–255 chars
  outlet_address?: string | null; // optional
  outlet_timezone?: string | null; // optional
  outlet_currency: string; // required, exactly 3 chars (ISO currency code)
}

export interface Organization {
  id: string;
  name: string;
  email: string | null;
  phone_number: string | null;
  plan_type: "basic" | "enterprise"; // can be extended if there are more plan types
  created_at: string; // ISO date string
  updated_at: string; // ISO date string
}

export interface Organizations {
  organizations: Organization[];
  total_count: number;
  page: number;
  limit: number;
  total_pages: number;
}
