package com.qiuguo.iot.data.entity.operation;
import org.hswebframework.ezorm.rdb.mapping.annotation.Comment;
import org.hswebframework.web.crud.annotation.EnableEntityEvent;
import org.hswebframework.web.api.crud.entity.GenericEntity;
import javax.persistence.Column;
import javax.persistence.Table;import lombok.Data;
import java.util.Date;
/**
* <p>
* </p>*场景列表，同一个时间点，如果行为有冲突，以最后添加的条件为准（时间精度：分）
* @author wulin
* @since 2023-09-05
*/

@Data
@Comment("场景列表，同一个时间点，如果行为有冲突，以最后添加的条件为准（时间精度：分）")
@Table(name = "operatin_scene")
@EnableEntityEvent
public class OperatinSceneEntity extends GenericEntity<Long> {
    @Comment("id")
    @Column(name = "id", length = 11, nullable = false, unique = true)
    private Long id;

    @Comment("是否删除：0 否 1 删除")
    @Column(name = "is_delete", nullable = false)
    private Integer isDelete;

    @Comment("创建时间")
    @Column(name = "create_time")
    private Date createTime;

    @Comment("修改时间")
    @Column(name = "modify_time")
    private Date modifyTime;

    @Comment("场景名称")
    @Column(name = "name", length = 255, nullable = false)
    private String name;

    @Comment("模式id")
    @Column(name = "operation_mode_id")
    private Long operationModeId;

    @Comment("备注说明")
    @Column(name = "remark", length = 255)
    private String remark;

}