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:
KD
2025-04-29 21:52:22 -04:00
committed by GitHub
parent 8755276b48
commit d491767de4
4 changed files with 272 additions and 20 deletions
+3 -2
View File
@@ -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);