package com.kxs.user.api.model;

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

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户收货地址表(KxsUserAddress)表实体类
 *
 * @author 系统
 * @since 2024-01-03 09:39:56
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsUserAddress extends Model<KxsUserAddress> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    
    
    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Integer id;


    /**
     * 新增时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "新增时间")
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 删除标记，0未删除，1已删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "删除标记，0未删除，1已删除")
    private String delFlag;

    /**
     * 版本
     */
    @Schema(description = "版本")
    private Integer version;


    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Integer userId;


    /**
     * 详细地址
     */
    @Schema(description = "详细地址")
    private String address;


    /**
     * 联系电话
     */
    @Schema(description = "联系电话")
    private String phone;


    /**
     * 收货人
     */
    @Schema(description = "收货人")
    private String consignee;


    /**
     * 省份
     */
    @Schema(description = "省份")
    private String province;


    /**
     * 城市
     */
    @Schema(description = "城市")
    private String city;


    /**
     * 区县
     */
    @Schema(description = "区县")
    private String area;


    /**
     * 是否默认 0否 1是
     */
    @Schema(description = "是否默认 0否 1是")
    private Integer isDefault;




}

