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-11-03 02:56:27
 */
@Getter
@Setter
@TableName("tb_order_member")
@Schema(name = "TbOrderMember", description = "订单和优惠券关联表")
public class TbOrderMember 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 memberId;

    @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;
}
