Get metadata (#126)
* Added time crate * Added endpoint to get metadata * Formatting * Added more code to get metadata Having issues returning response * Formatting * Migration change * Fix date issue * Got it somewhat working * Got things working * Code fix * Added test * Formatting * Test works * Cleanup * Migrations cleanup
This commit was merged in pull request #126.
This commit is contained in:
@@ -9,12 +9,13 @@ CREATE TABLE IF NOT EXISTS "songQueue" (
|
||||
data BYTEA NOT NULL
|
||||
);
|
||||
|
||||
-- Table to store queued metadata
|
||||
CREATE TABLE IF NOT EXISTS "metadataQueue" (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
metadata jsonb NOT NULL,
|
||||
created_at timestamp DEFAULT now(),
|
||||
created_at timestamptz DEFAULT now(),
|
||||
song_queue_id UUID NOT NULL
|
||||
);
|
||||
|
||||
-- Create an index for better query performance
|
||||
CREATE INDEX metadata_queue_data_metadata ON "metadataQueue" USING gin (metadata);
|
||||
CREATE INDEX metadata_queue_data_metadata ON "metadataQueue" USING gin (metadata);
|
||||
|
||||
Reference in New Issue
Block a user