scene_his.go 621 B

1234567891011121314151617181920
  1. package models
  2. import (
  3. "github.com/jinzhu/gorm"
  4. )
  5. // SceneHis scene-manager execution history
  6. // Records each time a scene is triggered, including which conditions were met and what actions were executed
  7. type SceneHis struct {
  8. gorm.Model
  9. RecordId string `gorm:"column:record_id;size:32;index" json:"record_id"`
  10. SceneID string `gorm:"column:scene_id;size:32;index" json:"scene_id"`
  11. ConditionId string `gorm:"column:condition_id;size:200;" json:"condition_id"`
  12. ActionId string `gorm:"column:action_id;size:200;" json:"action_id"`
  13. }
  14. // Validate 验证
  15. func (a *SceneHis) Validate() error {
  16. return nil
  17. }