{ "kind": "collectionType", "collectionName": "restaurants", "info": { "name": "restaurant" }, "options": { "increments": true, "timestamps": true, "draftAndPublish": true }, "attributes": { "name": { "type": "string", "required": true, "unique": true }, "description": { "type": "richtext" }, "categories": { "via": "restaurants", "collection": "category" } } }