export type UserRole = '超级管理员' | '运营' | '只读';

export interface UserItem {
  id: string;
  username: string;
  nickname: string;
  email: string;
  phone: string;
  roles: UserRole[];
  enabled: boolean;
  lastLoginAt: string;
  createdAt: string;
  remark?: string;
}

export const roleOptions: UserRole[] = ['超级管理员', '运营', '只读'];

export const initialUsers: UserItem[] = [
  {
    id: 'user-1',
    username: 'admin',
    nickname: '管理员',
    email: 'admin@chatone.ai',
    phone: '13800000001',
    roles: ['超级管理员'],
    enabled: true,
    lastLoginAt: '2026-07-25 22:10',
    createdAt: '2025-01-01',
    remark: '系统内置管理员',
  },
  {
    id: 'user-2',
    username: 'operator',
    nickname: '小王',
    email: 'wang@chatone.ai',
    phone: '13800000002',
    roles: ['运营'],
    enabled: true,
    lastLoginAt: '2026-07-24 18:32',
    createdAt: '2025-02-15',
    remark: '',
  },
  {
    id: 'user-3',
    username: 'viewer',
    nickname: '小李',
    email: 'li@chatone.ai',
    phone: '13800000003',
    roles: ['只读'],
    enabled: false,
    lastLoginAt: '2026-07-20 09:15',
    createdAt: '2025-03-10',
    remark: '',
  },
  {
    id: 'user-4',
    username: 'model_ops',
    nickname: '模型运营',
    email: 'model.ops@chatone.ai',
    phone: '13900000004',
    roles: ['运营', '只读'],
    enabled: true,
    lastLoginAt: '2026-07-25 16:08',
    createdAt: '2025-05-21',
    remark: '',
  },
];
