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_logs")
public class VerificationLogs extends BaseAudit {

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

    @Schema(description = "核销码id")
    private Long codeId;

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

    @Schema(description = "商家ID")
    private Long merchantId;

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

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

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