-
+DROP TABLE IF EXISTS "Entry";
 CREATE TABLE "Entry" (
   "id" serial NOT NULL,
   "data" jsonb NOT NULL,

  "path" text
);

CREATE TABLE "playlist" (
  "id" serial PRIMARY KEY,
  "name" text NOT NULL,
  "user_id" integer REFERENCES "user" ("id"),
  "order" integer[]
);

CREATE TABLE "playlist_has_song" (
  "playlist_id" integer REFERENCES "playlist" ("id"),
  "song_id" integer REFERENCES "song" ("id")
);


CREATE TABLE "session" (
  "sid" varchar NOT NULL COLLATE "default",
  "sess" json NOT NULL,

  OIDS=FALSE
);

DROP TABLE IF EXISTS "user";
CREATE TABLE "user" (
  "id" serial PRIMARY KEY,
  "username" text NOT NULL,
  "hash" text,
  "password_change_request_hash" text,
  "active_playlist_id" integer
);

DROP TABLE IF EXISTS "song";
CREATE TABLE "song" (
  "id" serial PRIMARY KEY,
  "plugId" integer,
