import { EntityInfo } from './entity'; import { Hash } from 'crypto'; export type UserInfo = { uuid: string; name: string; }; export type UserInfoWithPassword = { password: Hash; } & UserInfo; export type User = UserInfo & EntityInfo; export type UserWithPassword = UserInfoWithPassword & EntityInfo; export type CreateUserBody = { name: string; password: string; }; export type LoginUserBody = CreateUserBody; export type UserCtor = Partial; export type UserWithPasswordCtor = { password: string; } & Partial>;