package com.casic.missiles.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

/**
 * <p>
 * 设备类型表
 * </p>
 *
 * @author lwh
 * @since 2019-05-23
 */
@TableName("base_device_type")
@Data
public class DeviceType extends Model<DeviceType> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.ID_WORKER)
    private Long id;
    /**
     * 设备类型名称
     */
    @TableField("TYPE_NAME")
    private String typeName;
    /**
     * 类型描述
     */
    @TableField("TYPE_DESCRIPTION")
    private String typeDescription;
    /**
     * 是否有效
     */
    @TableField("VALID")
    private String valid;
    /**
     * 监控内容
     */
    @TableField("WATCH_TYPE")
    private String watchType;
    /**
     * 是否不需要绑定集中器
     */
    @TableField("IS_NO_CONCENT")
    private String isNoConcent;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "DeviceType{" +
                "id=" + id +
                ", typeName=" + typeName +
                ", typeDescription=" + typeDescription +
                ", valid=" + valid +
                ", watchType=" + watchType +
                "}";
    }
}
