Cotton code
79 lines · 1.8 KB · JSONRaw
{  "views": [    {      "id": "to_mark",      "label": "Booked today",      "is_default": true,      "visibility": "staff",      "read": {        "table": "yoga_booking",        "period": "today"      },      "face": "cards",      "sort": {        "column": "starts",        "descending": false      }    },    {      "id": "came",      "label": "Came today",      "is_default": false,      "visibility": "staff",      "read": {        "table": "yoga_attendance",        "period": "today"      },      "face": "cards",      "sort": {        "column": "name",        "descending": false      }    },    {      "id": "month",      "label": "This month",      "is_default": false,      "visibility": "staff",      "read": {        "table": "yoga_attendance",        "period": "this_month"      },      "face": "cards",      "sort": {        "column": "attended_on",        "descending": true      }    },    {      "id": "overrides",      "label": "Overrides",      "is_default": false,      "visibility": "staff",      "read": {        "table": "yoga_attendance",        "where": {          "staff_override": true        }      },      "face": "cards",      "sort": {        "column": "attended_on",        "descending": true      }    }  ],  "id": "yoga_checkins",  "name": "Attendance",  "picture": "tool-todos",  "card_stock": "sage",  "tables": [],  "instructions": "Attendance is the front desk: today's bookings to mark here (the booking's Here act writes the attendance), who came today and this month, and the visits staff recorded with an override.",  "automations": [],  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null,  "purpose": "Who is booked today, who came, and the overrides."}