Add 'years'
parent
569637fa4c
commit
16b540ef7f
23
years.md
Normal file
23
years.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
The `years` table holds information for year playlists.
|
||||
|
||||
### Columns
|
||||
| Name | Type | Description |
|
||||
| --------------------------------- | ------- | ----------------------------------- |
|
||||
| year | INTEGER | The year |
|
||||
| [propertyid](playlist_properties) | INTEGER | The rowid of this year's properties |
|
||||
|
||||
### Triggers
|
||||
| Name | When | Description |
|
||||
| -------------------- | ------------ | ------------------------------------------------------------- |
|
||||
| years_insert_trigger | After insert | Create a new row in the [[playlist_properties]] table |
|
||||
| years_delete_trigger | After delete | Delete this year's entry in the [[playlist_properties]] table |
|
||||
|
||||
### The `years_view`
|
||||
The `years_view` joins the `years` table with the [[playlist_properties]] table so the application can use one query to access all the relevant state for each year.
|
||||
|
||||
| Column | Description |
|
||||
| --------------------------------- | ------------------------------------------------------ |
|
||||
| year | The year |
|
||||
| [propertyid](playlist_properties) | The rowid of the [[playlist_properties]] for this year |
|
||||
| name | The year formatted as a string |
|
||||
| [active](playlist_properties) | The active state of this year |
|
Loading…
Reference in New Issue
Block a user