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 auto-generated
 * @since 2025-01-01
 */
@Data
@JsonInclude
@TableName("store_cuisine")
@ApiModel(value = "StoreCuisine对象", description = "美食价目表")
public class StoreCuisine {

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

    @ApiModelProperty(value = "商户id")
    @TableField("store_id")
    private Integer storeId;

    @ApiModelProperty(value = "美食类型: 1-单品，2-套餐")
    @TableField("cuisine_type")
    private Integer cuisineType;

    @ApiModelProperty(value = "菜品分类ids（JSON数组，如：[1,2,3]）")
    @TableField("category_ids")
    private String categoryIds;

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

    @ApiModelProperty(value = "总价")
    @TableField("total_price")
    private BigDecimal totalPrice;

    @ApiModelProperty(value = "首页展示（0:否, 1:是）")
    @TableField("is_homepage_display")
    private Integer isHomepageDisplay;

    @ApiModelProperty(value = "菜品标签（JSON数组，如：[\"招牌菜\",\"推荐\"]）")
    @TableField("tags")
    private String tags;

    @ApiModelProperty(value = "菜品短评")
    @TableField("dish_review")
    private String dishReview;

    @ApiModelProperty(value = "图片列表，最多 9 张 URL")
    @TableField("images")
    private String images;

    @ApiModelProperty(value = "图文详情-图片")
    @TableField("image_content")
    private String imageContent;

    @ApiModelProperty(value = "菜品原料json(原料名称:name,所需重量:height,成本价:cost,推荐价格:suggest)")
    @TableField("raw_json")
    private String rawJson;

    @ApiModelProperty(value = "图文详情-文字")
    @TableField("detail_content")
    private String detailContent;

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

    @ApiModelProperty(value = "补充说明")
    @TableField("extra_note")
    private String extraNote;

    @ApiModelProperty(value = "是否需要预约：0=否，1=是")
    @TableField("need_reserve")
    private Integer needReserve;

    @ApiModelProperty(value = "预约规则")
    @TableField("reserve_rule")
    private String reserveRule;

    @ApiModelProperty(value = "适用人数")
    @TableField("people_limit")
    private String peopleLimit;

    @ApiModelProperty(value = "使用规则")
    @TableField("usage_rule")
    private String usageRule;

    @ApiModelProperty(value = "状态：0-待审核 1-审核通过 2-审核拒绝")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "上下架状态：1-上架，2-下架")
    @TableField("shelf_status")
    private Integer shelfStatus;

    @ApiModelProperty(value = "拒绝原因（审核失败原因）")
    @TableField("rejection_reason")
    private String rejectionReason;

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

    @ApiModelProperty(value = "创建人")
    @TableField(value = "created_user_id", fill = FieldFill.INSERT)
    private Integer createdUserId;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "updated_user_id", fill = FieldFill.UPDATE)
    private Integer updatedUserId;

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

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    @ApiModelProperty(value = "AI审核时间")
    @TableField(value = "audit_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date auditTime;

}


