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

13 lines
280 B
Go

package model
type WebHook struct {
Id string `xorm:"NOT NULL VARCHAR(255) pk"`
Addr string `xorm:"NOT NULL VARCHAR(255)"`
Secret string `xorm:"NOT NULL VARCHAR(255)"`
Active bool `xorm:"NOT NULL BIT(1)"`
}
func (w WebHook) TableName() string {
return "webhook"
}