mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-18 05:09:29 +00:00
initial commit
This commit is contained in:
13
src/users/dto/create-user.dto.ts
Normal file
13
src/users/dto/create-user.dto.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { IsEmail, IsString, Length, Max, Min } from 'class-validator';
|
||||
|
||||
export class CreateUserDto {
|
||||
@IsEmail()
|
||||
email: string;
|
||||
|
||||
@IsString()
|
||||
password: string;
|
||||
|
||||
@IsString()
|
||||
@Length(2, 40)
|
||||
name: string;
|
||||
}
|
||||
Reference in New Issue
Block a user