{
    "$schema": "https:\/\/json-schema.org\/draft\/2020-12\/schema",
    "$id": "https:\/\/www.totalcms.co\/schemas\/custom\/common-core.json",
    "type": "object",
    "id": "common-core",
    "description": "The common core schema for all large content schemas",
    "properties": {
        "id": {
            "field": "id",
            "label": "ID",
            "placeholder": "Enter a unique identifier",
            "help": "The unique identifier",
            "mcp": {
                "description": "",
                "expose": true
            },
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/slug.json"
        },
        "title": {
            "field": "text",
            "label": "Title",
            "type": "string",
            "factory": "sentence(4, true)",
            "mcp": {
                "description": "",
                "expose": true
            }
        },
        "section": {
            "field": "list",
            "label": "Section",
            "help": "Use return key to confirm entry.",
            "settings": {
                "maxItemCount": 1,
                "asString": true,
                "relationalOptions": {
                    "collection": "sections",
                    "format": "${title}",
                    "value": "id"
                }
            },
            "type": "string",
            "mcp": {
                "description": "",
                "expose": true
            }
        },
        "category": {
            "field": "list",
            "label": "Category",
            "help": "Use return key to confirm entry.",
            "settings": {
                "relationalOptions": {
                    "collection": "categories",
                    "format": "${title} (${section})",
                    "value": "id"
                },
                "addChoices": false
            },
            "mcp": {
                "description": "",
                "expose": true
            },
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/list.json"
        },
        "tags": {
            "field": "list",
            "label": "Tags",
            "help": "Use return key to confirm entry.",
            "settings": {
                "relationalOptions": {
                    "view": "tags-consolidated",
                    "label": "tag",
                    "value": "tag"
                }
            },
            "mcp": {
                "description": "",
                "expose": true
            },
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/list.json"
        },
        "ednote": {
            "field": "styledtext",
            "label": "Editorial Note",
            "type": "string",
            "mcp": {
                "description": "",
                "expose": true
            }
        },
        "draft": {
            "field": "toggle",
            "label": "Draft",
            "default": true,
            "type": "boolean",
            "mcp": {
                "description": "",
                "expose": true
            }
        },
        "featured": {
            "field": "toggle",
            "label": "featured",
            "type": "boolean",
            "mcp": {
                "description": "",
                "expose": true
            }
        },
        "archived": {
            "field": "toggle",
            "label": "Archived",
            "type": "boolean",
            "mcp": {
                "description": "",
                "expose": true
            }
        },
        "postdate": {
            "field": "datetime",
            "label": "Post Date",
            "default": "now",
            "mcp": {
                "description": "",
                "expose": true
            },
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/date.json"
        },
        "createdate": {
            "field": "datetime",
            "label": "Create Date",
            "settings": {
                "onCreate": true
            },
            "mcp": {
                "description": "",
                "expose": true
            },
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/date.json"
        },
        "updatedate": {
            "field": "datetime",
            "label": "Update Date",
            "settings": {
                "onUpdate": true
            },
            "mcp": {
                "description": "",
                "expose": true
            },
            "$ref": "https:\/\/www.totalcms.co\/schemas\/properties\/date.json"
        },
        "privatenote": {
            "field": "textarea",
            "label": "Private Note",
            "settings": {
                "rows": 3
            },
            "type": "string",
            "mcp": {
                "description": "",
                "expose": true
            }
        },
        "seo_title": {
            "field": "text",
            "label": "SEO Title",
            "type": "string",
            "mcp": {
                "description": "",
                "expose": true
            }
        },
        "seo_description": {
            "field": "textarea",
            "label": "SEO Description",
            "settings": {
                "rows": 3,
                "maxLength": 160
            },
            "type": "string",
            "mcp": {
                "description": "",
                "expose": true
            }
        }
    },
    "required": [
        "id"
    ],
    "index": [
        "id",
        "title",
        "section",
        "category",
        "tags",
        "draft",
        "featured",
        "archived",
        "postdate",
        "ednote"
    ],
    "formgrid": "id . .\ntitle title title\nsection category tags\ndraft featured archived\nseo_title seo_title seo_title\nseo_description seo_description seo_description\nprivatenote privatenote privatenote\npostdate updatedate createdate",
    "category": "Utility"
}