package com.xydl.cac.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "i2relation")
@ApiModel("i2关联表")
public class I2relation {

    @Id
    @Column(name = "sensorid")
    private String sensorid;

    @Column(name = "eqmid")
    private Integer eqmid;

    @Column(name = "cacid")
    private String cacid;

    @Column(name = "equipmentid")
    private String equipmentid;

    @Column(name = "monitortype")
    private String monitortype;

    @Column(name = "phase")
    private String phase;

    @Column(name = "sensorindex")
    private Integer sensorindex;

}