mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-16 12:33:17 +00:00
chore: remove unused rating column
This commit is contained in:
@@ -91,7 +91,6 @@ model card {
|
|||||||
questionVideo String? @db.VarChar(500)
|
questionVideo String? @db.VarChar(500)
|
||||||
comments String?
|
comments String?
|
||||||
type String?
|
type String?
|
||||||
rating Int @default(0)
|
|
||||||
moreId String?
|
moreId String?
|
||||||
created DateTime @default(now())
|
created DateTime @default(now())
|
||||||
updated DateTime @updatedAt
|
updated DateTime @updatedAt
|
||||||
@@ -110,7 +109,6 @@ model deck {
|
|||||||
isPrivate Boolean @default(false)
|
isPrivate Boolean @default(false)
|
||||||
shots Int @default(0)
|
shots Int @default(0)
|
||||||
cover String? @db.VarChar(500)
|
cover String? @db.VarChar(500)
|
||||||
rating Int @default(0)
|
|
||||||
isDeleted Boolean?
|
isDeleted Boolean?
|
||||||
isBlocked Boolean?
|
isBlocked Boolean?
|
||||||
created DateTime @default(now())
|
created DateTime @default(now())
|
||||||
|
|||||||
0
requests/decks.http
Normal file
0
requests/decks.http
Normal file
1548
requests/openapi-spec.json
Normal file
1548
requests/openapi-spec.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,3 @@
|
|||||||
import { OmitType } from '@nestjs/swagger'
|
|
||||||
|
|
||||||
import { Pagination } from '../../../infrastructure/common/pagination/pagination.dto'
|
import { Pagination } from '../../../infrastructure/common/pagination/pagination.dto'
|
||||||
|
|
||||||
export class Card {
|
export class Card {
|
||||||
@@ -13,15 +11,12 @@ export class Card {
|
|||||||
questionImg: string
|
questionImg: string
|
||||||
questionVideo: string
|
questionVideo: string
|
||||||
answerVideo: string
|
answerVideo: string
|
||||||
rating: number
|
|
||||||
created: Date
|
created: Date
|
||||||
updated: Date
|
updated: Date
|
||||||
}
|
}
|
||||||
|
|
||||||
export class CardWithoutRating extends OmitType(Card, ['rating'] as const) {}
|
|
||||||
|
|
||||||
export class PaginatedCards {
|
export class PaginatedCards {
|
||||||
items: CardWithoutRating[]
|
items: Card[]
|
||||||
pagination: Pagination
|
pagination: Pagination
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ export class Deck {
|
|||||||
isPrivate: boolean
|
isPrivate: boolean
|
||||||
shots: number
|
shots: number
|
||||||
cover: string | null
|
cover: string | null
|
||||||
rating: number
|
|
||||||
created: Date
|
created: Date
|
||||||
updated: Date
|
updated: Date
|
||||||
cardsCount: number
|
cardsCount: number
|
||||||
|
|||||||
Reference in New Issue
Block a user