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.*;
import java.util.Date;

@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "i2sync_record")
@ApiModel("i2导出记录")
public class I2syncRecord {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Integer id;

    @Column(name = "modevtype_id")
    private Integer modevtypeId;

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

    @Column(name = "last_d_time")
    private Date lastDTime;

    @Transient
    private NSensor sensor;

}