diff --git a/models/questions.go b/models/questions.go index b1c5b77..7dbc421 100644 --- a/models/questions.go +++ b/models/questions.go @@ -4,8 +4,9 @@ import "time" type Question struct { Id string `gorm:"primaryKey;type:varchar(36)"` - QuestionId string `gorm:"type:varchar(36)"` LessonId string `gorm:"type:varchar(36)"` + QuestionId string `gorm:"type:varchar(36)"` + ReplyId string `gorm:"type:varchar(36)"` Message string `gorm:"type:text"` Likes uint16 `gorm:"type:smallint(5)"` CreatorUserId string `gorm:"type:varchar(36)"`