Link user id to song queue (#159)
* Added initial code for endpoint to link user id with song queue #156 * Updated songQueue to have a user_id field #156 * Added function to link user_id with songQueue record #156 * Added useful constant #156 * Finished adding code #156 Need to make the endpoint available and then write a test. Might have to modify existing tests * Made link user id endpoint available #156 * Added TODOs for later * Changing location of test code * Code formatting * Added test #156 * Formatted code * Added user_id to SongQueue and added more related code * Code formatting * Fixing possible nil user_id field in SongQueue when calling a function * Fixed another issue * Made changes to function to also return user_id * Making use of user_id in test requests * Code formatting * Updated workflow * Forgot to include port * Docker changes for port change * Reverting port changes * Cleaning up Dockerfile * Version bump
This commit was merged in pull request #159.
This commit is contained in:
@@ -6,7 +6,8 @@ CREATE TABLE IF NOT EXISTS "songQueue" (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
filename TEXT NOT NULL,
|
||||
status TEXT CHECK (status IN ('pending', 'ready', 'processing', 'done')),
|
||||
data BYTEA NULL
|
||||
data BYTEA NULL,
|
||||
user_id UUID NULL
|
||||
);
|
||||
|
||||
-- Table to store queued metadata
|
||||
|
||||
Reference in New Issue
Block a user