Cotton code
91 lines · 1.5 KB · JSONRaw
{  "id": "lesson",  "name": "Lesson",  "plural": "Lessons",  "picture": null,  "builtin": false,  "engine": null,  "columns": [    {      "key": "title",      "name": "Title",      "type": "text",      "required": true    },    {      "key": "date",      "name": "Date",      "type": "date"    },    {      "key": "time",      "name": "Time",      "type": "time"    },    {      "key": "subject",      "name": "Subject",      "type": "choice",      "choices": [        "mathematics",        "science",        "language",        "art"      ]    },    {      "key": "class",      "name": "Class",      "type": "link",      "link_to": "class"    },    {      "key": "notes",      "name": "Notes",      "type": "longtext"    }  ],  "title": "title",  "date": "date",  "project": null,  "order": null,  "slip": {    "title": "title",    "subtitle": "class",    "trailing": "date",    "photo": null,    "toggle": null  },  "tile": {    "face": "slip-list"  },  "page": [    {      "heading": null,      "columns": [        "title",        "subject"      ]    },    {      "heading": "When",      "columns": [        "date",        "time"      ]    },    {      "heading": "Class",      "columns": [        "class"      ]    },    {      "heading": "Notes",      "columns": [        "notes"      ]    }  ],  "instructions": "Keep lessons for an invented classroom. Links hold record ids; never invent a missing linked record. Update only the requested columns."}