package shop.alien.entity.store.vo;

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.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 美食商品表VO（用于子表列表）
 *
 * @author system
 * @since 2025-01-XX
 */
@Data
@JsonInclude
@ApiModel(value = "StoreProductDelicaciesVo对象", description = "美食商品表VO")
public class StoreProductDelicaciesVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "美食商品表主键")
    private Integer id;

    @ApiModelProperty(value = "商品表主键（关联字段）")
    private Integer extId;

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

    @ApiModelProperty(value = "价格(￥)")
    private BigDecimal price;

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

    @ApiModelProperty(value = "单位，如份/瓶/杯")
    private String unit;

    @ApiModelProperty(value = "数量")
    private Integer quantity;

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

    @ApiModelProperty(value = "菜品分组")
    private String extGroup;

    @ApiModelProperty(value = "状态：0禁用，1启用")
    private Integer status;

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

    @ApiModelProperty(value = "创建人")
    private Integer createdUserId;

    @ApiModelProperty(value = "更新人")
    private Integer updatedUserId;

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

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

