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.util.Date;
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_buying_goods")
@Schema(name = "TbGroupBuyingGoods", description = "团购商品表")
public class TbGroupBuyingGoods implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "一级商品类型")
    private Long goodsType1;

    @Schema(description = "二级商品类型")
    private Long goodsType2;

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

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

    @Schema(description = "开始销售日期")
    private Date startSaleTime;

    @Schema(description = "结束销售日期")
    private Date endSaleTime;

    @Schema(description = "开始时段")
    private String startSalePeriod;

    @Schema(description = "结束时段")
    private String endSalePeriod;

    @Schema(description = "成团人数数量")
    private Integer clusteringNum;

    @Schema(description = "团购商品状态（1-上架 2-下架）")
    private Integer status;

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