<?php

namespace App\Models\Meal;

use App\Traits\BelongsToStore;
use Illuminate\Database\Eloquent\Model;

class Dish extends Model
{
    use BelongsToStore;

    protected $fillable = [
        'store_id', 'name', 'category', 'description', 'image',
        'ingredients', 'contraindications', 'price', 'status',
    ];

    protected function casts(): array
    {
        return [
            'ingredients' => 'array',
            'contraindications' => 'array',
            'price' => 'decimal:2',
            'status' => 'integer',
        ];
    }
}
