package com.qiuguo.iot.data.entity.user;
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-25
*/

@Data
@Comment("")
@Table(name = "user_handling_device")
@EnableEntityEvent
public class UserHandlingDeviceEntity extends GenericEntity<Long> {
    @Comment("id")
    @Column(name = "id", length = 11, nullable = false, unique = true)
    private Long id;

    @Comment("字段名")
    @Column(name = "code", length = 50, nullable = false)
    private String code;

    @Comment("值")
    @Column(name = "value", length = 50)
    private String value;

    @Comment("数据类型")
    @Column(name = "type", length = 20, nullable = false)
    private String type;

    @Comment("最大值")
    @Column(name = "max")
    private Integer max;

    @Comment("最小值")
    @Column(name = "min")
    private Integer min;

    @Comment("步长")
    @Column(name = "step")
    private Integer step;

    @Comment("匹配字段")
    @Column(name = "matching_fields", length = 200, nullable = false)
    private String matchingFields;

    @Comment("分类字段名称")
    @Column(name = "category_code", length = 20, nullable = false)
    private String categoryCode;

    @Comment("分类名称")
    @Column(name = "category_name", length = 20, nullable = false)
    private String categoryName;

    @Comment("is_delete")
    @Column(name = "is_delete")
    private Integer isDelete;

    @Comment("create_time")
    @Column(name = "create_time")
    private Date createTime;

    @Comment("modify_time")
    @Column(name = "modify_time")
    private Date modifyTime;

}