Compare commits
No commits in common. "main" and "v1.0.6" have entirely different histories.
|
@ -5,9 +5,7 @@ import "time"
|
||||||
type Question struct {
|
type Question struct {
|
||||||
Id string `gorm:"primaryKey;type:varchar(36)"`
|
Id string `gorm:"primaryKey;type:varchar(36)"`
|
||||||
LessonId string `gorm:"type:varchar(36)"`
|
LessonId string `gorm:"type:varchar(36)"`
|
||||||
QuestionId string `gorm:"type:varchar(36)"`
|
Question string `gorm:"type:text"`
|
||||||
ReplyId string `gorm:"type:varchar(36)"`
|
|
||||||
Message string `gorm:"type:text"`
|
|
||||||
Likes uint16 `gorm:"type:smallint(5)"`
|
Likes uint16 `gorm:"type:smallint(5)"`
|
||||||
CreatorUserId string `gorm:"type:varchar(36)"`
|
CreatorUserId string `gorm:"type:varchar(36)"`
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time
|
||||||
|
@ -21,3 +19,20 @@ type QuestionLike struct {
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time
|
||||||
UpdatedAt time.Time
|
UpdatedAt time.Time
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type QuestionReply struct {
|
||||||
|
Id string `gorm:"primaryKey;type:varchar(36)"`
|
||||||
|
QuestionId string `gorm:"type:varchar(36)"`
|
||||||
|
Reply string `gorm:"type:text"`
|
||||||
|
CreatorUserId string `gorm:"type:varchar(36)"`
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt time.Time
|
||||||
|
}
|
||||||
|
|
||||||
|
type QuestionReplyLike struct {
|
||||||
|
Id string `gorm:"primaryKey;type:varchar(36)"`
|
||||||
|
QuestionReplyId string `gorm:"type:varchar(36)"`
|
||||||
|
CreatorUserId string `gorm:"type:varchar(36)"`
|
||||||
|
CreatedAt time.Time
|
||||||
|
UpdatedAt time.Time
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue