<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class CateringPackage extends Model
{
    use \App\Models\Concerns\BelongsToHotel;

    protected $guarded = [];
    protected $casts = [
        'available' => 'boolean',
        'featured' => 'boolean',
        'price_per_unit' => 'decimal:2',
        'min_quantity' => 'decimal:2',
    ];

    public function getRouteKeyName(): string
    {
        return 'slug';
    }

    public function chef()
    {
        return $this->belongsTo(Chef::class);
    }

    public function cuisine()
    {
        return $this->belongsTo(Cuisine::class);
    }
}
