Cotton code
72 lines · 1.9 KB · JSONRaw
{  "views": [    {      "id": "watchlist",      "label": "Watchlist",      "visibility": "owner",      "is_default": true,      "read": {        "table": "film",        "where": {          "status": "watchlist",          "watched_on": {"present": false}        }      },      "sort": {        "column": "title",        "descending": false      }    },    {      "id": "watched",      "label": "Watched",      "visibility": "owner",      "is_default": false,      "read": {        "table": "film",        "where": {          "watched_on": {"present": true}        }      },      "sort": {        "column": "watched_on",        "descending": true      }    },    {      "id": "series",      "label": "Series",      "visibility": "owner",      "is_default": false,      "read": {        "table": "film",        "where": {          "kind": "series"        }      },      "sort": {        "column": "title",        "descending": false      }    }  ],  "id": "films",  "name": "Films",  "purpose": "The films and series you mean to watch and have watched.",  "picture": {    "photo": "photo:aa30ee64d799b856e6219185544162815159ad9493bfb3e181c24898c805d0ec"  },  "card_stock": "slate",  "tables": [    "film",    "film_season",    "film_episode"  ],  "instructions": "Films keeps what the owner watches: one film row per film or series, with its kind (film or series), its status (watchlist, watched), the day it was watched and a rating out of 5. A series has film_season rows linking to it, and each season film_episode rows linking to the season (and to the series). Watchlist and Watched are views by status, Series by kind. Never guess a date or a rating the owner did not give. The sample rows that ship with the tool are invented.",  "automations": [],  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null}