package com.liquidnet.service.adam.entity;

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

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

/**
 * <p>
 * 收货地址
 * </p>
 *
 * @author liquidnet
 * @since 2021-05-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class AdamAddresses implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "mid", type = IdType.AUTO)
    private Long mid;

    private String addressesId;

    private String uid;

    /**
     * 姓名
     */
    private String name;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 邮编
     */
    private String zipcode;

    /**
     * 省份
     */
    private String province;

    /**
     * 省份行政编码
     */
    private String provinceId;

    /**
     * 城市
     */
    private String city;

    /**
     * 城市行政编码
     */
    private String cityId;

    /**
     * 区县
     */
    private String county;

    /**
     * 区县行政编码
     */
    private String countyId;

    /**
     * 街道/镇
     */
    private String town;

    /**
     * 街道行政编码
     */
    private String townId;

    /**
     * 详细地址
     */
    private String address;

    /**
     * 完整地址
     */
    private String fullAddress;

    /**
     * 是否为默认:0-否,1-是,第一个默认1
     */
    private Boolean isDefault;

    /**
     * 状态:0-INIT,1-NORMAL,2-INVALID
     */
    private Integer state;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private LocalDateTime deletedAt;

    private String comment;


}
