package com.ycwl.basic.pricing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 优惠券打印记录实体
 */
@Data
@TableName("voucher_print_record")
public class VoucherPrintRecord {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 流水号
     */
    private String code;
    
    /**
     * 用户faceId
     */
    private Long faceId;
    
    /**
     * 经纪人ID
     */
    private Long brokerId;
    
    /**
     * 景区ID
     */
    private Long scenicId;
    
    /**
     * 券码ID
     */
    private Long voucherCodeId;
    
    /**
     * 券码
     */
    private String voucherCode;
    
    /**
     * 打印状态：0=待打印，1=打印成功，2=打印失败
     */
    private Integer printStatus;
    
    /**
     * 错误信息
     */
    private String errorMessage;
    
    @TableField("create_time")
    private Date createTime;
    
    @TableField("update_time")
    private Date updateTime;
    
    private Integer deleted;
    
    private Date deletedAt;
}