export type CreateRoleType = {
  name: string;
  permissions: string[];
};

export type RoleItemType = {
  id: string;
  name: string;
  isAdmin: boolean;
  createdAt: string;
  updatedAt: string;
  userCount: number;
};

export type CreateUserType = {
  phone: string;
  firstName: string;
  lastName: string;
  password?: string;
  repeatPassword?: string;
  email: string;
  roleId: string;
  profilePic?: string;
};

export type UserItemType = {
  id: string;
  firstName: string;
  lastName: string;
  email: string;
  emailVerified: boolean;
  phone: string;
  profilePic?: string;
  userName: string;
  birthDate: string | null;
  nationalCode: string | null;
  createdAt: string;
  updatedAt: string;
  roles: RoleItemType[];
};

export type CreateGroupType = {
  name: string;
  description: string;
  userIds: string[];
};

export type GroupItemType = {
  id: string;
  name: string;
  description: string;
  createdAt: string;
  updatedAt: string;
  users: UserItemType[];
};
