export type User = {
  id: string
  name: string
  email: string
  password: string
  isActive: boolean
  createdAt: Date
  updatedAt: Date
}

export type UserWithRoles = User & {
  roles: {
    id: string
    roleId: string
    role: {
      id: string
      name: string
    }
  }[]
}

export type UserListItem = Omit<User, "password"> & {
  roles: string[]
}

