Add 'genres'
parent
c63224d526
commit
eb5ff22569
|
@ -0,0 +1,24 @@
|
|||
The `genres` table holds information for genre playlists.
|
||||
|
||||
### Columns
|
||||
| Name | Type | Description |
|
||||
| --------------------------------- | ------- | ------------------------------------ |
|
||||
| genreid | INTEGER | The unique id of a singe genre |
|
||||
| [propertyid](playlist_properties) | INTEGER | The rowid of this genre's properties |
|
||||
| name | TEXT | The name of this genre |
|
||||
|
||||
### Triggers
|
||||
| Name | When | Description |
|
||||
| --------------------- | ------------ | -------------------------------------------------------------- |
|
||||
| genres_insert_trigger | After insert | Create a new row in the [[playlist_properties]] table |
|
||||
| genres_delete_trigger | After delete | Delete this genre's entry in the [[playlist_properties]] table |
|
||||
|
||||
### The `genres_view`
|
||||
The `genres_view` joins the `genres` table with the [[playlist_properties]] table so the application can use one query to access all the relevant state for each genre.
|
||||
|
||||
| Column | Description |
|
||||
| --------------------------------- | ------------------------------------------------------- |
|
||||
| genreid | The genreid of this genre |
|
||||
| [propertyid](playlist_properties) | The rowid of the [[playlist_properties]] for this genre |
|
||||
| name | The name of this genre |
|
||||
| [active](playlist_properties) | The active state of this genre |
|
Loading…
Reference in New Issue