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-16 09:11:46
 */
@Getter
@Setter
@TableName("tb_order_goods")
@Schema(name = "TbOrderGoods", description = "订单和商品关联表")
public class TbOrderGoods 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 storeId;

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

    @Schema(description = "门店商品规格id")
    private Long storeSpecificationsId;

    @Schema(description = "商品名称")
    private String goodsName;

  @Schema(description = "类型（1-商品 2-会员权益 3-团购商品 4-积分商品 5-优惠券 6-投诉）")
    private Integer type;

    @Schema(description = "商品原价")
    private BigDecimal goodsPrice;

    @Schema(description = "商品规格id")
    private Long specificationsId;

    @Schema(description = "商品规格")
    private String goodsSpecification;

    @Schema(description = "商品数量")
    private Integer goodsNum;

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

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

    @Schema(description = "更新者")
    private String updateBy;

    @Schema(description = "更新时间",hidden = true)
    private Date updateTime;

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

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