SmartSceneData.java 985 Bytes
package cn.com.glsx.smart.modules.entity;

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


import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

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

    /**
     * 场景ID 关联smart_scene中id
     */
    private Long sceneId;

    /**
     * 类型 1触发条件 2执行内容
     */
    private Byte type;

    /**
     * 排序
     */
    private Byte sort;

    /**
     * 参数key
     */
    private String paramKey;

    /**
     * 设备id,取自param_value中select
     */
    private String deviceId;

    /**
     * 参数值 数组对象
     */
    private String paramValue;
}