mirror of https://gitee.com/answerdev/answer.git
fix: remove updated
This commit is contained in:
parent
00dc84c08f
commit
f631cd0e8d
|
@ -20,7 +20,7 @@ var CmsAnswerSearchStatus = map[string]int{
|
|||
type Answer struct {
|
||||
ID string `xorm:"not null pk autoincr comment('answer id') BIGINT(20) id"`
|
||||
CreatedAt time.Time `xorm:"created not null default CURRENT_TIMESTAMP TIMESTAMP created_at"`
|
||||
UpdatedAt time.Time `xorm:"updated not null default CURRENT_TIMESTAMP TIMESTAMP updated_at"`
|
||||
UpdatedAt time.Time `xorm:"not null default CURRENT_TIMESTAMP TIMESTAMP updated_at"`
|
||||
QuestionID string `xorm:"not null default 0 comment('question id') BIGINT(20) question_id"`
|
||||
UserID string `xorm:"not null default 0 comment('answer user id') BIGINT(20) user_id"`
|
||||
OriginalText string `xorm:"not null comment('original content') MEDIUMTEXT original_text"`
|
||||
|
|
|
@ -24,6 +24,8 @@ type QuestionTag struct {
|
|||
// Question question
|
||||
type Question struct {
|
||||
ID string `xorm:"not null pk comment('question id') BIGINT(20) id"`
|
||||
CreatedAt time.Time `xorm:"not null default CURRENT_TIMESTAMP comment('create time') TIMESTAMP created_at"`
|
||||
UpdatedAt time.Time `xorm:"not null default CURRENT_TIMESTAMP comment('update time') TIMESTAMP updated_at"`
|
||||
UserID string `xorm:"not null default 0 comment('user id') BIGINT(20) user_id"`
|
||||
Title string `xorm:"not null default '' comment('question title') VARCHAR(255) title"`
|
||||
OriginalText string `xorm:"not null comment('original content') MEDIUMTEXT original_text"`
|
||||
|
@ -37,8 +39,6 @@ type Question struct {
|
|||
FollowCount int `xorm:"not null default 0 comment('follow count') INT(11) follow_count"`
|
||||
AcceptedAnswerID string `xorm:"not null default 0 comment('accepted answer id') BIGINT(20) accepted_answer_id"`
|
||||
LastAnswerID string `xorm:"not null default 0 comment('last answer id') BIGINT(20) last_answer_id"`
|
||||
CreatedAt time.Time `xorm:"not null default CURRENT_TIMESTAMP comment('create time') TIMESTAMP created_at"`
|
||||
UpdatedAt time.Time `xorm:"not null default CURRENT_TIMESTAMP comment('update time') TIMESTAMP updated_at"`
|
||||
PostUpdateTime time.Time `xorm:"default CURRENT_TIMESTAMP comment('answer the last update time') TIMESTAMP post_update_time"`
|
||||
RevisionID string `xorm:"not null default 0 BIGINT(20) revision_id"`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue