<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Restaurant extends BaseModel
{
    use HasFactory;
    protected $table = 'restaurant';

    const STATUS_RESERVE = 0; //已预定，可支付
    const STATUS_PAY = 1; // 已支付，等待出餐
    const STATUS_WAIT = 2; // 等待出餐
    const STATUS_FINISHED = 3; // 已完成，等待取餐
    const STATUS_EVALUATE = 4; // 已评价
    const STATUS_CANCEL = 5; //已取消
    const STATUS_TAKE = 6; // 已取餐，可以评价
    const STATUS_ARR = [self::STATUS_PAY,self::STATUS_WAIT,self::STATUS_FINISHED,self::STATUS_EVALUATE,self::STATUS_TAKE];

    const DIET_TYPE_LUNCH = 0;
    const DIET_TYPE_DINNER = 1;

    const FOOD_TYPE_TRIM = 0;
    const FOOD_TYPE_CLEAN = 1;

    const LUNCH_RESERVE_TIME = '11:00';
    const LUNCH_WAIT_TIME = '11:45';
    const LUNCH_FINISH_TIME = '12:00';

    const DINNER_RESERVE_TIME = '16:30';
    const DINNER_WAIT_TIME = '17:30';
    const DINNER_FINISH_TIME = '18:00';

    const REDIS_SEND_SWITCH = "send_restaurant_switch";

    const TYPE_SELF = 0; //自己订餐
    const TYPE_HELP_OTHER = 1; //帮他人订餐

    const LUNCH_TAKE_START_TIME = "12:00";
    const LUNCH_TAKE_END_TIME = "13:30";
    const LUNCH_TAKE_FINAL_TIME = "14:00"; //午餐最终取餐截止时间

    const DINNER_TAKE_START_TIME = "18:00";
//    const DINNER_TAKE_START_TIME = "15:00";
    const DINNER_TAKE_END_TIME = "19:30";
}
