Cotton code
82 lines · 2.0 KB · JSONRaw
{  "format_version": 1,  "id": "toolkit",  "name": "Toolkit",  "plural": "Toolkits",  "picture": null,  "builtin": true,  "engine": "toolkits",  "columns": [    {      "key": "name",      "name": "Name",      "type": "text",      "required": true,      "placeholder": "Rina's kitchen"    },    {      "key": "description",      "name": "What it is for",      "type": "longtext"    },    {      "key": "picture",      "name": "Picture",      "type": "photo"    },    {      "key": "tools",      "name": "Tools",      "type": "longtext"    },    {      "key": "shipped",      "name": "Shipped by Cotton",      "type": "bool",      "readonly": true    },    {      "key": "position",      "name": "Position",      "type": "number",      "readonly": true    }  ],  "title": "name",  "date": null,  "project": null,  "order": null,  "slip": {    "title": "name",    "subtitle": "description",    "trailing": null,    "photo": "picture",    "toggle": null  },  "tile": {    "face": "slip-list"  },  "page": [    {      "heading": null,      "columns": [        "picture",        "name",        "description",        "tools"      ]    }  ],  "sort": {    "column": "position",    "descending": false,    "tie": "name"  },  "empty": {    "title": "No toolkits",    "message": "The kits a new database is made from live here."  },  "instructions": "The kits a new database is made from, kept in the personal database. tools is the kit's tools, a line each, in order: a built-in by its name or key (Todos, todos), or a tool one of your kits already carries by its name (Orders); list_toolkits with an id answers the whole kit. picture is a photo the personal database holds (a shipped tool picture is photo:<sha256>), never a word. create_record {table:\"toolkit\", data:{name, tools, description?, picture?}} makes one at an id of its own. A shipped kit (shipped true) is never changed in place: update_toolkit saves your copy. save_toolkit makes a kit from a database's Home.",  "tables": []}