package com.chinaweal.aiccs.aiccs.market.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 地址编码记录表
 * </p>
 *
 * @author <a href="https://blog.lroyia.top">lroyia</a>
 * @since 2021-11-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("address_geo_log")
public class AddressGeoLog extends Model<AddressGeoLog> {

    private static final long serialVersionUID=1L;

    /**
     * 数据id
     */
    @TableId(value = "log_id", type = IdType.ASSIGN_UUID)
    private String logId;

    /**
     * 地址
     */
    @TableField("address")
    private String address;

    /**
     * 地址经度
     */
    @TableField("pox")
    private BigDecimal pox;

    /**
     * 地址维度
     */
    @TableField("poy")
    private BigDecimal poy;

    /**
     * api匹配等级权重
     */
    @TableField("level_weight")
    private Double levelWeight;

    /**
     * api匹配等级名称
     */
    @TableField("level_name")
    private String levelName;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;


    @Override
    protected Serializable pkVal() {
        return this.logId;
    }

}
