You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
818 B

2 months ago
package models
import (
"time"
)
type BotDocument struct {
Content string `xorm:"not null TEXT"`
CreateTime time.Time `xorm:"not null DATETIME"`
Id int `xorm:"not null pk autoincr INT"`
IsDelete int `xorm:"not null default 1 comment('1 未删除 2已删除') index SMALLINT"`
Lang int `xorm:"not null default 0 comment('语言') index INT"`
Name string `xorm:"not null default '' comment('名称') VARCHAR(255)"`
Status int `xorm:"not null default 1 comment('1 上架 2 下架') index SMALLINT"`
Title string `xorm:"not null default '' VARCHAR(150)"`
Type int `xorm:"not null default 0 comment('类型') index INT"`
UpdateTime time.Time `xorm:"not null DATETIME"`
Weight int `xorm:"not null default 0 index INT"`
}