package com.yeejoin.amos.boot.module.jcs.api.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @description:
 * @author: tw
 * @createDate: 2022/8/24
 */
@Data
@Accessors(chain = true)
@Document(indexName = "jcs", type = "car", shards = 1, replicas = 0)
public class ESCar {
    @Id
    private String id;

    @Field(type = FieldType.Long)
    private Long sequenceNbr;

    @Field(type = FieldType.Text)
    private String longitude;

    @Field(type = FieldType.Text)
    private String latitude;

    @Field(type = FieldType.Long)
    private Long Time;

    @Field(type = FieldType.Text)
    private String carNum;
}
