kpe_event.go 1.1 KB

12345678910111213141516171819
  1. package model
  2. import (
  3. "time"
  4. )
  5. type KpeEvent struct {
  6. Id int `xorm:"not null pk default 0 comment('主键自增ID') INT(11)"`
  7. Name string `xorm:"not null default '' comment('事件名称') VARCHAR(260)"`
  8. Remarks string `xorm:"not null default '' comment('事件备注') VARCHAR(260)"`
  9. Category int `xorm:"not null default 0 comment('事件分类') SMALLINT(2)"`
  10. IndicatorsIds string `xorm:"not null default '{}' comment('指标影响IDS json格式') VARCHAR(260)"`
  11. BaseIds string `xorm:"not null default '{}' comment('字段影响IDS json格式') VARCHAR(260)"`
  12. EventIds string `xorm:"not null default '{}' comment('事件IDS json格式') VARCHAR(260)"`
  13. FiledIds string `xorm:"not null default '{}' comment('字段IDS json格式') VARCHAR(260)"`
  14. IsShow int `xorm:"not null default 1 comment('是否显示菜单 1:显示 0: 隐藏') TINYINT(1)"`
  15. CreateTime time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('创建时间') DATETIME"`
  16. UpdateTime time.Time `xorm:"not null default 'CURRENT_TIMESTAMP' comment('更新时间') DATETIME"`
  17. }