Files
flashcards-api/src/modules/auth/entities/auth.entity.ts
2023-07-17 00:12:17 +02:00

20 lines
390 B
TypeScript

import { ApiProperty, OmitType } from '@nestjs/swagger'
export class User {
id: string
email: string
password: string
isEmailVerified: boolean
name: string
@ApiProperty({ type: 'string', format: 'binary' })
avatar: string
created: Date
updated: Date
}
export class LoginResponse {
accessToken: string
}
export class UserEntity extends OmitType(User, ['password']) {}