sk-matrix-project/backend/golang/matrix-middle-service/pkg/database/model/qqbot.go

14 lines
326 B
Go
Raw Normal View History

2023-02-27 16:10:20 +08:00
package model
type QQBot struct {
Id string `xorm:"NOT NULL VARCHAR(255) pk"`
QQ string `xorm:"NOT NULL VARCHAR(255) 'qq'"`
Addr string `xorm:"NOT NULL VARCHAR(255)"`
Secret string `xorm:"NOT NULL VARCHAR(255)"`
Active bool `xorm:"NOT NULL BIT(1)"`
}
func (b QQBot) TableName() string {
return "qq_bot"
}