package models

import (
	"github.com/jinzhu/gorm"
)

// SceneHis scene-manager execution history
// Records each time a scene is triggered, including which conditions were met and what actions were executed
type SceneHis struct {
	gorm.Model
	RecordId    string `gorm:"column:record_id;size:32;index" json:"record_id"`
	SceneID     string `gorm:"column:scene_id;size:32;index" json:"scene_id"`
	ConditionId string `gorm:"column:condition_id;size:200;" json:"condition_id"`
	ActionId    string `gorm:"column:action_id;size:200;" json:"action_id"`
}

// Validate 验证
func (a *SceneHis) Validate() error {
	return nil
}
