mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 05:09:26 +00:00
20 lines
390 B
TypeScript
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']) {}
|