Add listenbrainz_queue

Anna Schumaker 2024-03-20 16:01:24 -04:00
parent 961fe3d883
commit 7d84b2b6cf
1 changed files with 8 additions and 0 deletions

8
listenbrainz_queue.md Normal file

@ -0,0 +1,8 @@
The `listenbrainz_queue` table holds a queue of tracks that need to be submitted to [ListenBrainz](https://listenbrainz.org/). I store a copy of the timestamp in this table just in case the user listens to the track again before it can be submitted. When first upgrading to Emmental 3.2, this table will be pre-populated with the most recent listen timestamp for each track that has already been played.
### Columns
| Name | Type | Description |
| ----------------- | --------- | --------------------------------------- |
| listenid | INTEGER | Primary key |
| [trackid](tracks) | INTEGER | The trackid of a track in the database |
| timestamp | TIMESTAMP | The timestamp that the track was played |