Add 'playlist_properties'

Anna Schumaker 2023-03-21 13:36:40 -04:00
parent 30a07aac29
commit 7ae74b99f4
1 changed files with 13 additions and 0 deletions

13
playlist_properties.md Normal file

@ -0,0 +1,13 @@
The `playlist_properties` table holds variables and state that all Playlists have. The `playlists_active_trigger` is used to enforce only one active playlist at a time.
### Columns
| Name | Type | Description |
| ---------- | ------- | ----------------------------------------- |
| propertyid | INTEGER | The unique id of a single playlist |
| active | BOOLEAN | The current active status of the playlist |
### Triggers
| Name | When | Description |
| ------------------------ | ------------------------ | ----------------------------------------------------------- |
| playlists_active_trigger | After update of `active` | Set other playlist_properties.active = False for other rows |