package com.kuyuntech.vrv.coreservice.domain.core;

import com.wbspool.fastboot.core.jpa.entiy.FastbootEntity;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@EqualsAndHashCode(callSuper = true)
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Table(name = "vrv_device_alarm_config")
public class DeviceAlarmConfig extends FastbootEntity {

    @Column(columnDefinition = "varchar(255) COMMENT '设备SN'")
    private String sn;

    @Column(columnDefinition = "varchar(255) COMMENT '关联设备'")
    private String deviceCode;

    @Column(columnDefinition = "varchar(255) COMMENT '运营商编号'")
    private String operatorNumber;

    @Column(columnDefinition = "varchar(255) COMMENT '关联运营商'")
    private String operatorCode;

    @Column(columnDefinition = "varchar(255) COMMENT '项目编号'")
    private String projectNumber;

    @Column(columnDefinition = "varchar(255) COMMENT '关联项目'")
    private String projectCode;

    @Column(columnDefinition = "varchar(255) COMMENT '网关编号'")
    private String gatewayNumber;

    @Column(columnDefinition = "varchar(255) COMMENT '关联网关'")
    private String gatewayCode;

    @Column(columnDefinition = "varchar(255) COMMENT '报警名称'")
    private String alarmName;

    @Column(columnDefinition = "varchar(255) COMMENT '变量id'")
    private String variableId;

    @Column(columnDefinition = "varchar(255) COMMENT '报警类型'")
    private String alarmType;

    @Column(columnDefinition = "text COMMENT '判断条件'")
    private String configCondition;

}
