Cotton code
77 lines · 2.0 KB · JSONRaw
{  "views": [    {      "id": "songs",      "label": "Songs",      "visibility": "owner",      "is_default": true,      "read": {        "table": "track"      },      "sort": {        "column": "title",        "descending": false      }    },    {      "id": "albums",      "label": "Albums",      "visibility": "owner",      "is_default": false,      "read": {        "table": "music_album"      },      "sort": {        "column": "title",        "descending": false      }    },    {      "id": "artists",      "label": "Artists",      "visibility": "owner",      "is_default": false,      "read": {        "table": "artist"      },      "sort": {        "column": "name",        "descending": false      }    },    {      "id": "playlists",      "label": "Playlists",      "visibility": "owner",      "is_default": false,      "read": {        "table": "playlist"      },      "sort": {        "column": "name",        "descending": false      }    }  ],  "id": "music",  "name": "Music",  "purpose": "Songs you keep as files, with their albums, artists and playlists.",  "picture": {    "photo": "photo:9490003d684898fc103fb5ca73bfef1156c94bc6a8a7a6286b65d014df57ec3e"  },  "card_stock": "rose",  "tables": [    "track",    "music_album",    "artist",    "playlist",    "playlist_track"  ],  "instructions": "Music is the songs the person keeps as files, with their albums, artists and playlists. It plays files only: a song's recording is an audio file kept in this database, never a stream or a service. To add a song, create a track with at least its title; link its artist and album when the person names them, creating the artist or album first if it is not there. A playlist's songs are playlist_track rows, each linking the playlist and one track with its position. Never guess an artist, an album, a year or a length; ask.",  "automations": [],  "author": {    "device": "cotton",    "name": "Cotton"  },  "signature": null}