package com.chinaweal.aiccs.aiccs.auction.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 买受人
 * </p>
 *
 * @author <a href="https://blog.lroyia.top">lroyia</a>
 * @since 2021-01-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tsauctionbuyer")
public class TSAuctionBuyer extends Model<TSAuctionBuyer> {

    private static final long serialVersionUID=1L;

    /**
     * 买受人id
     */
    @TableId(value = "buyerID", type = IdType.ASSIGN_UUID)
    private String buyerID;

    /**
     * 拍卖结果主键
     */
    @TableField("resultID")
    private String resultID;

    /**
     * 买家姓名
     */
    @TableField("buyerName")
    private String buyerName;

    /**
     * 证件名称
     */
    @TableField("certName")
    private String certName;

    /**
     * 证件号码
     */
    @TableField("certID")
    private String certID;

    /**
     * 联系电话
     */
    @TableField("mobilePhone")
    private String mobilePhone;

    /**
     * 最后更新时间
     */
    private LocalDateTime lauptime;

    /**
     * 地区代码
     */
    private String areaCode;


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

}
