Cotton code
104 lines · 2.0 KB · JSONRaw
{  "format_version": 1,  "id": "record_group",  "name": "List",  "plural": "Lists",  "visibility": "owner",  "title": "name",  "columns": [    {      "key": "table_id",      "name": "Table id",      "type": "text",      "required": true    },    {      "key": "name",      "name": "Name",      "type": "text",      "required": true    },    {      "key": "filter",      "name": "Filter",      "type": "longtext"    },    {      "key": "position",      "name": "Position",      "type": "number"    },    {      "key": "picture",      "name": "Picture",      "type": "photo"    },    {      "key": "deleted_at",      "name": "Deleted at",      "type": "text"    },    {      "key": "sent_by",      "name": "Sent by",      "type": "text",      "readonly": true    },    {      "key": "sent_by_number",      "name": "Sent from",      "type": "text",      "readonly": true    },    {      "key": "sent_at",      "name": "Sent",      "type": "date",      "format": "calendar-datetime",      "readonly": true    },    {      "key": "send_id",      "name": "Send",      "type": "text",      "readonly": true    },    {      "key": "hidden",      "name": "Hidden",      "type": "bool"    }  ],  "seal": {    "clear": [      "table_id",      "position",      "deleted_at",      "sent_at",      "send_id",      "hidden"    ],    "blind": [      "name"    ]  },  "instructions": "A named list of one table's records (the todo list Agents): hand-picked members, or a filter. picture is the list's own picture, a media key (a photo's, or a document's from put_document): its tile draws it pinned on the list's card; with none, the card draws its first members' pictures.",  "send": {    "columns": [      "table_id",      "name",      "picture"    ],    "files": [      "picture"    ],    "with": [      {        "table": "group_member",        "by": "group",        "record": "record_id",        "table_of": "table_id"      }    ]  }}