package com.xiaoniu.system.groupgoods.groupbuying.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 团购商品规格表
 * </p>
 *
 * @author haoxuyang
 * @since 2024-10-18 09:19:39
 */
@Getter
@Setter
@TableName("tb_group_specifications")
@Schema(name = "TbGroupSpecifications", description = "团购商品规格表")
public class TbGroupSpecifications 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 groupId;

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

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

    @Schema(description = "商品规格名称")
    private String specificationsName;

    @Schema(description = "原价")
    private BigDecimal originalPrice;

    @Schema(description = "团购价格")
    private BigDecimal groupBuyingPrice;

    @Schema(description = "分佣比例")
    private Double commissionRatio;

    @Schema(description = "分佣金额")
    private BigDecimal commissionAmount;

    @Schema(description = "获得积分")
    private Integer getPoints;

    @Schema(description = "状态（1-展示 2-隐藏）")
    private Integer status;
}
