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

/**
 * 美食套餐表
 */
@Data
@JsonInclude
@TableName("delicious_combo")
public class DeliciousCombo implements Serializable {
    private static final long serialVersionUID = 1L;

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

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

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

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

    @TableField("version")
    @ApiModelProperty(value = "版本")
    private String version;

    @TableField("attributes")
    @ApiModelProperty(value = "属性数据")
    private String attributes;

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

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

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

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

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

