mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-17 05:09:26 +00:00
chore: remove unused rating column
This commit is contained in:
@@ -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