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)
|
||||
comments String?
|
||||
type String?
|
||||
rating Int @default(0)
|
||||
moreId String?
|
||||
created DateTime @default(now())
|
||||
updated DateTime @updatedAt
|
||||
@@ -110,7 +109,6 @@ model deck {
|
||||
isPrivate Boolean @default(false)
|
||||
shots Int @default(0)
|
||||
cover String? @db.VarChar(500)
|
||||
rating Int @default(0)
|
||||
isDeleted Boolean?
|
||||
isBlocked Boolean?
|
||||
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'
|
||||
|
||||
export class Card {
|
||||
@@ -13,15 +11,12 @@ export class Card {
|
||||
questionImg: string
|
||||
questionVideo: string
|
||||
answerVideo: string
|
||||
rating: number
|
||||
created: Date
|
||||
updated: Date
|
||||
}
|
||||
|
||||
export class CardWithoutRating extends OmitType(Card, ['rating'] as const) {}
|
||||
|
||||
export class PaginatedCards {
|
||||
items: CardWithoutRating[]
|
||||
items: Card[]
|
||||
pagination: Pagination
|
||||
}
|
||||
|
||||
|
||||
@@ -7,7 +7,6 @@ export class Deck {
|
||||
isPrivate: boolean
|
||||
shots: number
|
||||
cover: string | null
|
||||
rating: number
|
||||
created: Date
|
||||
updated: Date
|
||||
cardsCount: number
|
||||
|
||||
Reference in New Issue
Block a user