Cotton code
114 lines · 2.3 KB · JSONRaw
{  "format_version": 1,  "id": "story_draft",  "name": "Draft",  "plural": "Drafts",  "builtin": false,  "visibility": "owner",  "engine": null,  "columns": [    {      "key": "story",      "name": "Story",      "type": "link",      "link_to": "story_story",      "required": true    },    {      "key": "name",      "name": "Name",      "type": "text",      "required": true,      "placeholder": "First draft, Second draft"    },    {      "key": "made_at",      "name": "Marked",      "type": "date",      "format": "calendar-datetime",      "readonly": true    },    {      "key": "scenes",      "name": "Scenes",      "type": "number",      "readonly": true    },    {      "key": "pages",      "name": "Pages",      "type": "number",      "readonly": true,      "decimals": 1    },    {      "key": "cast",      "name": "Characters then",      "type": "longtext",      "readonly": true    },    {      "key": "places",      "name": "Places then",      "type": "longtext",      "readonly": true    }  ],  "seal": {    "clear": [      "story",      "made_at",      "scenes",      "pages"    ],    "blind": [      "name"    ]  },  "title": "name",  "date": null,  "project": null,  "order": null,  "slip": {    "title": "name",    "subtitle": null,    "trailing": "made_at",    "photo": null,    "toggle": null  },  "tile": {    "face": "slip-list"  },  "page": [    {      "heading": null,      "columns": [        "name",        "made_at",        "scenes",        "pages"      ]    }  ],  "sort": {    "column": "made_at",    "descending": false  },  "empty": {    "title": "No drafts yet",    "message": "Mark a draft to keep the script as it stands today."  },  "deletion": {    "bin": true  },  "links": [    {      "label": "Deleted",      "table": "bin",      "where": {        "table": "story_draft"      }    }  ],  "instructions": "A named, dated draft of a story, frozen as it stood when it was marked: its scenes are story_draft_scene rows. Writing goes on in the story itself. Mark one with story_draft_mark, read it with story_draft_read, see what changed since with story_draft_changes, and go back to it with story_draft_restore. A draft is never changed after it is made. cast and places are JSON: [{ id, name }] as they were named then."}