package com.xiaoniu.system.order.storeorder.domain;

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.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 订单优惠券关联表
 * </p>
 *
 * @author haoxuyang
 * @since 2024-10-29 11:47:32
 */
@Getter
@Setter
@TableName("tb_order_coupon")
@Schema(name = "TbOrderCoupon", description = "订单优惠券关联表")
public class TbOrderCoupon implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

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

    @Schema(description = "商品id")
    private Long goodsId;

    @Schema(description = "优惠券id")
    private Long couponId;

    @Schema(description = "优惠金额")
    private BigDecimal discountAmount;

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

    @Schema(description = "状态1-未支付 2-支付")
    private Integer status;

    @Schema(description = "创建者")
    private String createBy;

    @Schema(description = "创建",hidden = true)
    private Date createTime;

    @Schema(description = "删除标记（0-正常，2-删除）")
    private Integer delFlag;

    @Schema(description = "备注")
    private String remark;
}
