Cotton code
106 lines · 2.5 KB · JSONRaw
{  "format_version": 1,  "id": "watch",  "name": "Watch",  "plural": "Watches",  "picture": null,  "builtin": false,  "visibility": "owner",  "engine": null,  "columns": [    {      "key": "film",      "name": "Film",      "type": "link",      "link_to": "film",      "readonly": true,      "contributes": false    },    {      "key": "episode",      "name": "Episode",      "type": "link",      "link_to": "film_episode",      "readonly": true,      "contributes": false    },    {      "key": "film_title",      "name": "Film",      "type": "text",      "computed": {        "lookup": {          "through": "film",          "column": "title"        }      }    },    {      "key": "episode_title",      "name": "Episode",      "type": "text",      "computed": {        "lookup": {          "through": "episode",          "column": "title"        }      }    },    {      "key": "started_at",      "name": "Started",      "type": "date",      "format": "calendar-datetime",      "required": true,      "readonly": true    },    {      "key": "seconds",      "name": "Watched",      "type": "number",      "format": "duration",      "readonly": true    },    {      "key": "finished",      "name": "Finished",      "type": "bool",      "readonly": true    },    {      "key": "device",      "name": "On",      "type": "text",      "readonly": true    },    {      "key": "with",      "name": "With",      "type": "link",      "link_to": "person",      "contributes": false    }  ],  "title": "film_title",  "date": "started_at",  "project": null,  "order": null,  "slip": {    "title": "film_title",    "subtitle": [      "episode_title"    ],    "trailing": "started_at",    "photo": null,    "toggle": null  },  "sort": {    "column": "started_at",    "descending": true  },  "empty": {    "title": "Nothing watched yet",    "message": "What you play lands here."  },  "instructions": "One row per time a film or an episode played, written by the player alone and never by hand: film (the film, or the episode's series) and episode (the episode, empty for a film), started_at (when it started), seconds watched, finished (true once it played past nine tenths of its length), and the device it played on. with is the person who watched it with the owner (one person), the one column a person or an assistant may add afterwards. History cannot be rebuilt later, so every play is kept; Watched, \"watched twice\" and a year in review come from these rows."}