mirror of
https://gitee.com/shikong-sk/gofiber-study
synced 2025-02-25 00:02:17 +08:00
22 lines
818 B
Go
22 lines
818 B
Go
|
package models
|
||
|
|
||
|
import (
|
||
|
"gofiber.study.skcks.cn/common/time"
|
||
|
)
|
||
|
|
||
|
type Reply struct {
|
||
|
Id string `xorm:"not null pk VARCHAR(32)" json:"id"`
|
||
|
Active bool `xorm:"not null index BIT(1)" json:"active"`
|
||
|
Content string `xorm:"not null index LONGTEXT(4294967295)" json:"content"`
|
||
|
CreateTime time.Time `xorm:"not null index DATETIME(6) created" json:"CreateTime"`
|
||
|
ModifyTime time.Time `xorm:"not null index DATETIME(6) updated" json:"modifyTime"`
|
||
|
ModifyTimes int64 `xorm:"not null index BIGINT" json:"modifyTimes"`
|
||
|
Top int `xorm:"not null index BIT(1)" json:"top"`
|
||
|
UserId string `xorm:"not null index VARCHAR(32)" json:"userId"`
|
||
|
TopicalId string `xorm:"not null index VARCHAR(32)" json:"topicalId"`
|
||
|
}
|
||
|
|
||
|
func (m *Reply) TableName() string {
|
||
|
return "reply"
|
||
|
}
|