package com.bonus.canteen.core.cook.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.bonus.common.core.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ToString
@TableName("cook_recipe_bind_app")
public class CookAppRecipe extends Model<CookAppRecipe> {
    private static final long serialVersionUID = 1L;
    private Long recipeId;
    private Integer bindType;
    private List<Long> recipeIds;

    /** 绑定时间 */
    @ApiModelProperty(value = "绑定时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "绑定时间", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDateTime bindTime;

    /** 餐线id */
    @Excel(name = "餐线id")
    @ApiModelProperty(value = "餐线id")
    private Long mealLineId;

    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
