package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 用户收货信息表
 * </p>
 *
 * @author XKF
 * @since 2024-07-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("USERRECEIVEINFO")
@ApiModel(value="Userreceiveinfo对象", description="用户收货信息表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
@KeySequence(value = "SEQ_USERRECEIVEINFO")
public class Userreceiveinfo extends Model<Userreceiveinfo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "AutoID")
    @TableId(value = "autoid", type=IdType.INPUT)
    private Long autoid;

    @ApiModelProperty(value = "用户ID")
    @TableField("USERID")
    private Long userid;

    @ApiModelProperty(value = "提货人姓名")
    @TableField("RECEIVERNAME")
    private String receivername;

    @ApiModelProperty(value = "证件类型")
    @TableField("CARDTYPEID")
    private Integer cardtypeid;

    @ApiModelProperty(value = "证件号码(加密存储)")
    @TableField("CARDNUM")
    private String cardnum;

    @ApiModelProperty(value = "提货人联系方式(加密存储)")
    @TableField("PHONENUM")
    private String phonenum;

    @ApiModelProperty(value = "提货人详细地址")
    @TableField("ADDRESS")
    private String address;

    @ApiModelProperty(value = "提货备注")
    @TableField("TAKEREMARK")
    private String takeremark;

    @ApiModelProperty(value = "国家")
    @TableField("COUNTRYID")
    private Integer countryid;

    @ApiModelProperty(value = "省")
    @TableField("PROVINCEID")
    private Integer provinceid;

    @ApiModelProperty(value = "市")
    @TableField("CITYID")
    private Integer cityid;

    @ApiModelProperty(value = "地区")
    @TableField("DISTRICTID")
    private Integer districtid;

    @ApiModelProperty(value = "是否默认地址 - 0:否 1:是")
    @TableField("ISDEFAULT")
    private Integer isdefault;

    @ApiModelProperty(value = "数据是否已加密 - 0:未加密 1:已加密")
    @TableField("HASENCRYPT")
    private Integer hasencrypt;


    @Override
    public Serializable pkVal() {
        return this.autoid;
    }

}
