From c7c6f2cd2211e33ccbcde09318718f9e9623eb7a Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 10 Sep 2024 22:33:25 +0200 Subject: [PATCH] added reply id --- models/questions.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)"`