import { UUID } from 'crypto'; import { Gender } from '../enums'; import { Pagination } from './pagination.types'; export type User = { id?: number; uuid?: UUID; name: string; gender?: Gender; email?: string; phone?: string; wallet?: string; extras?: Record; notes?: string; createdAt?: Date; updatedAt?: Date; deletedAt?: Date; createdBy?: string; updatedBy?: string; permissions?: string[]; roles?: string[]; }; export type UserRole = { id: number; userId: number; roleId: number; expiry: Date | null; createdAt: Date; createdBy: number | null; name: string; }; export type ListUser = Pagination & { roles?: string; };