Add 'artists'
parent
b503edcc52
commit
967ef37170
|
@ -0,0 +1,24 @@
|
|||
The `artists` table holds information for artist playlists. The `artists_view` joins the `artists` table with the [[playlist_properties]] table so the application can use one query to access all the relevant state for each artist.
|
||||
|
||||
### Columns
|
||||
| Name | Type | Description |
|
||||
| --------------------------------- | ------- | ------------------------------------- |
|
||||
| artistid | INTEGER | The unique id of a singe artist |
|
||||
| [propertyid](playlist_properties) | INTEGER | The rowid of this artist's properties |
|
||||
| name | TEXT | The name of this artist |
|
||||
| mbid | TEXT | The [MusicBrainz ID](https://musicbrainz.org/doc/MusicBrainz_Identifier) of this artist |
|
||||
|
||||
### Triggers
|
||||
| Name | When | Description |
|
||||
| ---------------------- | ------------ | --------------------------------------------------------------- |
|
||||
| artists_insert_trigger | After insert | Create a new row in the [[playlist_properties]] table |
|
||||
| artists_delete_trigger | After delete | Delete this artist's entry in the [[playlist_properties]] table |
|
||||
|
||||
### The `artists_view`
|
||||
| Column | Description |
|
||||
| --------------------------------- | -------------------------------------------------------- |
|
||||
| artistid | The artistid of this artist |
|
||||
| [propertyid](playlist_properties) | The rowid of the [[playlist_properties]] for this artist |
|
||||
| name | The name of this artist |
|
||||
| mbid | The MusicBrainz ID of this artist |
|
||||
| [active](playlist_properties) | The active state of this artist |
|
Loading…
Reference in New Issue