chore: remove unused rating column

This commit is contained in:
2023-12-15 17:46:48 +01:00
parent e4ab9fa9c8
commit 49cd869e07
5 changed files with 1549 additions and 9 deletions

View File

@@ -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
View File

1548
requests/openapi-spec.json Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -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
}

View File

@@ -7,7 +7,6 @@ export class Deck {
isPrivate: boolean
shots: number
cover: string | null
rating: number
created: Date
updated: Date
cardsCount: number