Add 'system_tracks'

Anna Schumaker 2023-05-10 14:58:06 -04:00
parent 3a0ec7a4b8
commit a8de0dd7be
1 changed files with 14 additions and 0 deletions

14
system_tracks.md Normal file

@ -0,0 +1,14 @@
The `system_tracks` table is used to link [[tracks]] to their associated [[playlist_properties]]. This is needed because a track could have multiple [[artists]] and [[genres]].
### Columns
| Name | Type | Description |
| --------------------------------- | ------- | ------------------------------------------- |
| [trackid](tracks) | INTEGER | The trackid of one of the playlist's tracks |
| [propertyid](playlist_properties) | INTEGER | The propertyid of the playlist |
### The `system_tracks_view`
The `system_tracks_view` is intended to be used by playlists when they load their trackids, and automatically filters out tracks that are in the process of being deleted.
| Column | Description |
| --------------------------------- | ------------------------------ |
| [trackid](tracks) | The trackid of the track |
| [propertyid](playlist_properties) | The propertyid of the playlist |