mirror of https://gitee.com/answerdev/answer.git
26 lines
896 B
Go
26 lines
896 B
Go
package entity
|
|
|
|
import "time"
|
|
|
|
const (
|
|
QuestionEditSummaryKey = "question.edit.summary"
|
|
QuestionCloseReasonKey = "question.close.reason"
|
|
AnswerEditSummaryKey = "answer.edit.summary"
|
|
TagEditSummaryKey = "tag.edit.summary"
|
|
)
|
|
|
|
// Meta meta
|
|
type Meta struct {
|
|
ID int `xorm:"not null pk autoincr comment('id') INT(10) id"`
|
|
CreatedAt time.Time `xorm:"not null default CURRENT_TIMESTAMP created comment('created time') TIMESTAMP created_at"`
|
|
UpdatedAt time.Time `xorm:"not null default CURRENT_TIMESTAMP updated comment('updated time') TIMESTAMP updated_at"`
|
|
ObjectID string `xorm:"not null default 0 comment('object id') BIGINT(20) object_id"`
|
|
Key string `xorm:"not null comment('key') VARCHAR(100) key"`
|
|
Value string `xorm:"not null comment('value') MEDIUMTEXT value"`
|
|
}
|
|
|
|
// TableName meta table name
|
|
func (Meta) TableName() string {
|
|
return "meta"
|
|
}
|