package com.jeeplus.hotelorder.hotelconfig.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.jeeplus.core.domain.BaseEntity;
import com.jeeplus.core.query.Query;
import com.jeeplus.core.query.QueryType;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 营业时段配置实体
 * @author jeeplus
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "hotel_business_hours")
public class HotelBusinessHours extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 星期几(0=周日,1=周一,...,6=周六,NULL=每天) */
    private Integer dayOfWeek;

    /** 餐段标识(breakfast/lunch/dinner/night) */
    @Query(tableColumn = "meal_type", type = QueryType.EQ)
    private String mealType;

    /** 餐段名称(如:早餐、午餐、晚餐、夜宵) */
    private String mealName;

    /** 开始时间(如:08:00) */
    private String startTime;

    /** 结束时间(如:10:00) */
    private String endTime;

    /** 状态: ENABLED-启用, DISABLED-禁用 */
    @Query(tableColumn = "status", type = QueryType.EQ)
    private String status;

    /** 排序号 */
    private Integer sortOrder;
}
