// 用户管理相关类型定义

export interface User {
  id: string;
  username: string;
  name: string;
  phone: string;
  email?: string;
  enterpriseId?: string;
  enterpriseName?: string;
  roleIds: string[];
  roles?: string[];
  userType: UserType;
  status: UserStatus;
  createdAt: string;
  updatedAt: string;
  lastLoginTime?: string;
}

export type UserType = 'super_admin' | 'enterprise_admin' | 'employee';
export type UserStatus = 'active' | 'inactive' | 'frozen';

export interface Enterprise {
  id: string;
  name: string;
}

// 统计数据
export interface UserManagementStats {
  label: string;
  value: number;
  color: string;
  bg: string;
}

// 筛选条件
export interface UserFilters {
  searchKeyword: string;
  statusFilter: string;
  typeFilter: string;
}

// 表单数据
export interface UserFormData {
  username?: string;
  name?: string;
  phone?: string;
  email?: string;
  userType?: UserType;
  status?: UserStatus;
  enterpriseId?: string;
  enterpriseName?: string;
  roleIds?: string[];
}