Cotton code
82 lines · 2.0 KB · JSONRaw
{  "views": [    {      "id": "reading",      "label": "Reading",      "visibility": "owner",      "is_default": true,      "read": {        "table": "book",        "where": {          "status": "reading"        }      },      "sort": {        "column": "started_on",        "descending": true      }    },    {      "id": "to_read",      "label": "To read",      "visibility": "owner",      "is_default": false,      "read": {        "table": "book",        "where": {          "status": "to_read"        }      },      "sort": {        "column": "title",        "descending": false      }    },    {      "id": "read",      "label": "Read",      "visibility": "owner",      "is_default": false,      "read": {        "table": "book",        "where": {          "status": "read"        }      },      "sort": {        "column": "finished_on",        "descending": true      }    },    {      "id": "all",      "label": "All",      "visibility": "owner",      "is_default": false,      "read": {        "table": "book"      },      "sort": {        "column": "title",        "descending": false      }    }  ],  "id": "books",  "name": "Books",  "purpose": "The books you are reading, have read and mean to read.",  "picture": {    "photo": "photo:4f2bf442c6575038c717c5dc906758c1f19a12f9cc790866fd3ad11b2eb8c83e"  },  "card_stock": "cream",  "tables": [    "book"  ],  "instructions": "Books keeps the owner's reading: one book row per book, with its status (to_read, reading, read), the days it was started and finished, the page the owner is on and a rating out of 5. Reading, To read and Read are views by status. To start a book set its status to reading and started_on; to finish one set read and finished_on. Never guess a date, a page 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}