mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 20:59:27 +00:00
add decks crud
This commit is contained in:
16
src/modules/decks/dto/create-deck.dto.ts
Normal file
16
src/modules/decks/dto/create-deck.dto.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { IsBoolean, IsOptional, IsString, Length } from 'class-validator'
|
||||
|
||||
export class CreateDeckDto {
|
||||
@Length(3, 30)
|
||||
name: string
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
cover?: string
|
||||
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
isPrivate?: boolean
|
||||
|
||||
userId: string
|
||||
}
|
||||
Reference in New Issue
Block a user