SmartScene.java 1.83 KB
package com.glsx.smart.dao.entity;

import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>Description:
 * <p>Project: chejia-smart
 *
 * @author wbh
 * @date 2021-03-15
 */


/**
 * 车家智能用户场景表
 */
@Data
@Table(name = "smart_scene")
public class SmartScene implements Serializable {
    /**
     * 标识ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 用户ID 关联smart_user_relation中id
     */
    private Long userId;

    /**
     * 场景名称
     */
    private String sceneName;

    /**
     * 场景类型key 关联smart_sys_code中dict_key
     */
    private String typeKey;

    /**
     * 场景图标ID 关联smart_sys_file中id
     */
    private Long icon;

    /**
     * 场景图标
     */
    private String iconUrl;

    /**
     * 场景背景图ID 关联smart_sys_file中id
     */
    private Long backPic;

    /**
     * 场景背景图
     */
    private String backPicUrl;

    /**
     * 查看次数
     */
    private Long viewTimes;

    /**
     * 场景描述
     */
    private String description;

    /**
     * 条件规则 1任一条件 2全部条件
     */
    private Byte conditionRule;

    /**
     * 执行周期 1每天 2工作日 3法定节假日
     */
    private Byte executeCycle;

    /**
     * 状态:0下线 1上线
     */
    private Byte status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 场景关系数据
     */
    private List<SmartSceneData> dataList;
}