package com.njcn.influx.pojo.po;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.njcn.common.utils.serializer.InstantDateSerializer;
import lombok.Data;
import org.influxdb.annotation.Column;
import org.influxdb.annotation.Measurement;

import java.time.Instant;

/**
 * 类的介绍：
 *
 * @author xuyang
 * @version 1.0.0
 * @createTime 2022/7/12 9:55
 */
@Data
@Measurement(name = "pqs_communicate")
public class PqsCommunicate {

    @Column(name = "time")
    @JsonSerialize(using = InstantDateSerializer.class)
    private Instant time;

    @Column(name = "dev_id")
    private String devId;

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

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

}
