package com.imdroid.secapi.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * GNSS收发统计消息，每个工作周期结束的时候统计一次
 *
 * @author LiGang
 */
@Data
@TableName(value = "fwdrecords")
public class FwdRecord {
    public static final short STATE_READY = 1;
    public static final short STATE_UPLOADING = 2;
    public static final short STATE_UPLOAD_DONE = 3;
    public static final short STATE_FWD_DONE = 0;
    public static final short STATE_FWD_FAILED = -1;
    @TableId(value = "id", type = IdType.AUTO)
    Long id;
    Integer tenantid;
    String deviceid;
    String project_id;
    Short devicenum;
    LocalDateTime starttime;
    LocalDateTime endtime;
    Short state;
    String fwd_group_id;

}
