package com.wzj.soopin.order.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.common.core.domain.model.BaseAudit;

import java.time.LocalDateTime;

@Schema(description = "核销码表对象")
@Data
@TableName("oms_verification_codes")
public class VerificationCodes extends BaseAudit {

    @Schema(description = "ID")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "核销码")
    private String code;

    @Schema(description = "关联订单id")
    private Long orderId;

    @Schema(description = "是否使用")
    private Integer status;

    @Schema(description = "用户id")
    private Long memberId;

    @Schema(description = "用户昵称")
    private String memberName;

    @Schema(description = "使用时间")
    private LocalDateTime usedTime;

    @Schema(description = "使用商家id")
    private String usedMerchantId;

    @Schema(description = "过期时间")
    private LocalDateTime expireTime;

    @Schema(description = "核销时间")
    private LocalDateTime verificationTime;

    @Schema(description = "核销结果")
    private Integer result;

    @Schema(description = "失败原因")
    private String reason;
}
