package shop.alien.entity.store;

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

import java.math.BigDecimal;
import java.util.Date;

/**
 * 二期-酒水餐食信息
 *
 * @author ssk
 * @since 2025-05-14
 */
@Data
@JsonInclude
@TableName("drink_info")
@ApiModel(value = "DrinkInfo对象", description = "酒水餐食信息")
public class DrinkInfo  {

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

    @ApiModelProperty(value = "类型（枚举值：酒水/餐食）")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "售价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "成本价")
    @TableField("cost_price")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "酒精度")
    @TableField("alcohol_volume")
    private BigDecimal alcoholVolume;

    @ApiModelProperty(value = "图片")
    @TableField("pic_url")
    private String picUrl;

    @ApiModelProperty(value = "分类")
    @TableField("category")
    private String category;

    @ApiModelProperty(value = "口味")
    @TableField("flavor")
    private String flavor;

    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "是否推荐 0:否 1:是")
    @TableField("is_recommended")
    private Integer isRecommended;

    @ApiModelProperty(value = "状态 0:下架 1:上架")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "门店ID")
    @TableField("store_id")
    private Integer storeId;

    @ApiModelProperty(value = "创建人ID")
    @TableField("create_user_id")
    private Integer createUserId;

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

    @ApiModelProperty(value = "修改人ID")
    @TableField("update_user_id")
    private Integer updateUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "是否删除 0:未删除 1:已删除")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;
}