export const Primary = "id";
export const Schema = {
    title: "Menu Manager",
    description: "Custom nav menus, side menus",
    version: 0,
    type: "object",
    properties: {
        [Primary]: {
            type: "string",
            primary: true
        },
        name: {
            type: "string",
            index: true
        },
        label: {
            type: "string"
        },
        slug: {
            type: "string"
        },
        icon: {
            type: "string"
        },
        icon_type: {
            type: "string"
        },
        rank: {
            type: "string",
            default: "0",
            index: true
        },
        parent: {
            ref: "bunadmin_menu",
            type: "string" // ref-values must always be string (primary of foreign RxDocument)
        }
    },
    required: ["name", "slug"]
};
