From c8ebf9389de898628506c7865abda62f03a0af5b Mon Sep 17 00:00:00 2001 From: JongYeob Sheen Date: Thu, 22 Feb 2024 21:18:51 +0900 Subject: [PATCH] paper quiz_count --- internal/models/paper.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/models/paper.go b/internal/models/paper.go index 0ec81b3..e114e20 100644 --- a/internal/models/paper.go +++ b/internal/models/paper.go @@ -13,6 +13,7 @@ type Paper struct { UserScore float32 `json:"user_score" db:"user_score" example:"5" gorm:"column:user_score;"` TotalScore float32 `json:"total_score" db:"total_score" example:"100" gorm:"column:total_score;"` Status string `json:"status" example:"wating" gorm:"column:status;size:10;index;"` + QuizCount int `json:"quiz_count" db:"quiz_count" example:"5" gorm:"column:quiz_count;"` StartAt *time.Time `json:"start_at" gorm:"column:start_at;index;"` DoneAt *time.Time `json:"done_at" gorm:"column:done_at;index;"` UpdatedAt time.Time `json:"-" gorm:"column:updated_at;type:DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;index;->:false"` @@ -34,6 +35,7 @@ type PaperResponse struct { LastName string `json:"last_name" db:"last_name" example:"홍"` UserScore float32 `json:"user_score" db:"user_score" example:"5"` TotalScore float32 `json:"total_score" db:"total_score" example:"100"` + QuizCount int `json:"quiz_count" db:"quiz_count" example:"5"` Status string `json:"status" example:"wating"` Category string `json:"category" example:"파이썬기본"` Title string `json:"title" example:"출력 Print"`