export interface AdminUser {
  id: string;
  username: string;
  displayName?: string;
  email?: string;
  role: 'SUPER_ADMIN' | 'OPERATOR' | 'FINANCE' | 'READONLY';
  status: number;
  mustChangePassword?: number;
  lastLoginAt?: string;
}

export interface Tenant {
  id: string;
  name: string;
  slug: string;
  plan: string;
  status: number;
  notes?: string;
  createdAt?: string;
  suspendedAt?: string;
  suspendedReason?: string;
}

export interface BillingRecord {
  id: string;
  tenantId: string;
  userId?: string;
  projectId?: string;
  operation: string;
  modality?: string;
  modelProvider?: string;
  modelId?: string;
  modelName?: string;
  unitCount?: number;
  success?: boolean;
  credits: number;
  refId?: string;
  createdAt?: string;
}

export interface Plan {
  id: string;
  code: string;
  name: string;
  priceMonthly: number;
  monthlyCredits: number;
  maxMembers: number;
  maxProjects: number;
  maxConcurrentTasks: number;
  isActive: number;
  features?: string;
}
