Added migrations for coverart
This commit is contained in:
@@ -48,4 +48,14 @@ CREATE TABLE IF NOT EXISTS "song" (
|
||||
filename TEXT NOT NULL,
|
||||
directory TEXT NOT NULL,
|
||||
user_id UUID NULL
|
||||
-- TODO: Add coverart id later. This will allow multiple songs to be linked to a single cover art
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "coverart" (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
title TEXT NOT NULL,
|
||||
-- TODO: Separate path later
|
||||
path TEXT NOT NULL,
|
||||
song_id UUID NOT NULL
|
||||
-- TODO: Add type later
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user