Cotton code
48 lines · 1.1 KB · JSONRaw
{  "views": [    {      "id": "today",      "label": "Today",      "is_default": true,      "read": {        "table": "kitchen_payment",        "period": "today"      },      "visibility": "customer"    },    {      "id": "month",      "label": "This month",      "is_default": false,      "read": {        "table": "kitchen_payment",        "period": "this_month"      },      "visibility": "customer"    },    {      "id": "all",      "label": "All",      "is_default": false,      "read": {        "table": "kitchen_payment"      },      "visibility": "customer"    }  ],  "id": "kitchen_money",  "name": "Money",  "purpose": "Payments the kitchen took.",  "picture": {    "photo": "photo:116b7043feeed0389ae0452a08f6591f2867f8ebf8a34f811701ef7c3fe4a140"  },  "card_stock": "slate",  "tables": [],  "instructions": "Money is the payments the kitchen took: today's, this month's and all of them. Its views read the Kitchen tool's tables (install Kitchen first).",  "automations": [],  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null}