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_mode")
@EnableEntityEvent
public class OperatinModeEntity 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("状态 0关闭 1开启")
    @Column(name = "status", nullable = false)
    private Integer status;

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

    @Comment("操作人id")
    @Column(name = "operation_user_id")
    private Long operationUserId;

    @Comment("操作人用户名称")
    @Column(name = "operation_user_name", length = 100)
    private String operationUserName;

    @Comment("包含场景个数")
    @Column(name = "scene_count")
    private Integer sceneCount;

}