Cotton code
89 lines · 2.0 KB · JSONRaw
{  "views": [    {      "id": "studio",      "label": "Studio",      "is_default": true,      "visibility": "public",      "read": {        "table": "yoga_place"      },      "face": "cards"    },    {      "id": "events",      "label": "Events",      "is_default": false,      "visibility": "public",      "read": {        "table": "yoga_event",        "where": {          "kind": [            "workshop",            "event",            "retreat"          ]        }      },      "face": "cards",      "sort": {        "column": "starts_on",        "descending": true      }    },    {      "id": "training",      "label": "Training",      "is_default": false,      "visibility": "public",      "read": {        "table": "yoga_event",        "where": {          "kind": [            "intensive",            "teacher_training",            "course"          ]        }      },      "face": "cards",      "sort": {        "column": "starts_on",        "descending": true      }    },    {      "id": "kind_words",      "label": "Kind words",      "is_default": false,      "visibility": "public",      "read": {        "table": "yoga_testimonial"      },      "face": "cards"    },    {      "id": "gallery",      "label": "Gallery",      "is_default": false,      "visibility": "public",      "read": {        "table": "yoga_picture"      },      "face": "cards"    }  ],  "id": "yoga_studio",  "name": "Studio",  "picture": "tool-locations",  "card_stock": "cream",  "tables": [],  "instructions": "Studio shows the yoga studio to anyone: its own card (yoga_place), its events and trainings (yoga_event), what students say (yoga_testimonial) and its gallery (yoga_picture). Its rows live in the Schedule tool's tables.",  "automations": [],  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null,  "purpose": "The studio: who it is, where, its events, trainings, kind words and pictures."}