package shop.alien.entity.delicious;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 美食套餐单品绑定表
 */
@Data
@JsonInclude
@TableName("delicious_combo_prod")
public class DeliciousComboProd implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @TableField("prod_id")
    @ApiModelProperty(value = "商品ID")
    private Integer prodId;

    @TableField("combo_id")
    @ApiModelProperty(value = "套餐ID")
    private Integer comboId;

    @TableField("prod_num")
    @ApiModelProperty(value = "单品数量")
    private Integer prodNum;

    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    @TableField("delete_flag")
    @ApiModelProperty(value = "删除标记 0:未删除 1:已删除")
    @TableLogic
    private Integer deleteFlag;
}

