<?php

    return [
        "type"           => "food",
        "model"          => App\Models\GenericBackoffice\Food::class,
        "label"          => "food",
        "label_singular" => "food",
        "group"          => "menu",
        "order"          => false,
        "fields"         => [
            [
                "name"          => "title",
                "label"         => "title",
                "type"          => "textBox",
                "maxLength"     => 150,
                "multiLanguage" => true,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|max:150",
                "inList"        => true,
                "search"        => true,
                "sort"          => true,
                "defaultOrder"  => "asc"
            ],
            [
                "name"          => "price",
                "label"         => "price",
                "type"          => "textBox",
                "maxLength"     => 10,
                "multiLanguage" => false,
                "preValidation" => "strip_tags|xss_clean|trim",
                "validation"    => "required|numeric|min:0.01",
                "inList"        => true,
                "search"        => false,
                "sort"          => true,
            ],
            [
                "name"          => "allergens",
                "label"         => "allergens",
                "type"          => "multiplePicker",
                "longList"      => false,
                "allowInsert"   => true,
                "objectTypes"   => ["allergen"],
                "order"         => true,
            ]
        ],
        "actions"        => [
            "insert", "edit", "delete"
        ]
    ];
