gokins/models/t_trigger.go
2021-07-22 10:53:38 +08:00

22 lines
840 B
Go

package models
import "time"
type TTrigger struct {
Id string `xorm:"not null pk VARCHAR(64)" json:"id"`
Aid int64 `xorm:"not null pk autoincr BIGINT(20)" json:"aid"`
Uid string `xorm:"index VARCHAR(64)" json:"uid"`
PipelineId string `xorm:"VARCHAR(64)" json:"pipelineId"`
Types string `xorm:"VARCHAR(50)" json:"types"`
Name string `xorm:"VARCHAR(100)" json:"name"`
Desc string `xorm:"VARCHAR(255)" json:"desc"`
Params string `xorm:"JSON" json:"-"`
Enabled int `xorm:"INT(1)" json:"enabled"`
Nick string `xorm:"-" json:"nick"`
Avat string `xorm:"-" json:"avat"`
Created time.Time `xorm:"DATETIME" json:"created"`
//Updated time.Time `xorm:"DATETIME" json:"updated"`
Param map[string]interface{} `xorm:"-" json:"params"`
}