package shop.alien.entity.second;

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

import java.util.Date;

/**
 * <p>
 * 二手委托人信息表
 * </p>
 *
 * @author ssk
 * @since 2025-11-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("second_entrust_user")
@ApiModel(value = "SecondEntrustUser对象", description = "二手委托人信息表")
public class SecondEntrustUser extends Model<SecondEntrustUser> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "交易ID")
    @TableField("entrust_trade_id")
    private Integer entrustTradeId;

    @ApiModelProperty(value = "交易编号")
    @TableField("entrust_trade_no")
    private String entrustTradeNo;

    @ApiModelProperty(value = "委托人电话")
    @TableField("entrust_user_phone")
    private String entrustUserPhone;

    @ApiModelProperty(value = "委托人姓名")
    @TableField("entrust_user_name")
    private String entrustUserName;

    @ApiModelProperty(value = "委托人身份证")
    @TableField("entrust_id_card")
    private String entrustIdCard;

    @ApiModelProperty(value = "委托人身份证照片")
    @TableField("entrust_id_card_img")
    private String entrustIdCardImg;

    @ApiModelProperty(value = "删除标记, 0:未删除, 1:已删除")
    @TableField("delete_flag")
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField(value = "created_user_id", fill = FieldFill.INSERT)
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField(value = "updated_user_id", fill = FieldFill.INSERT_UPDATE)
    private Integer updatedUserId;

}

