text: CREATE TABLE "set" (
    "id" text PRIMARY KEY,
    "name" text,
    "image" text
  );
  
  CREATE TABLE "card" (
    "id" text PRIMARY KEY,
    "set_id" text,
    "number" text,
    "name" text,
    "description" text,
    "image" text,
    "rarity" text,
    "language" text
  );
  
  CREATE TABLE "price" (
    "card_id" text,
    "timestamp" timestamp DEFAULT (CURRENT_TIMESTAMP),
    "price" numeric,
    PRIMARY KEY ("card_id", "timestamp")
  );
  
  -- will be created by grafana for now
  -- CREATE TABLE public."user" (
  --     id integer NOT NULL PRIMARY KEY,
  --     version integer NOT NULL,
  --     login character varying(190) NOT NULL,
  --     email character varying(190) NOT NULL,
  --     name character varying(255),
  --     password character varying(255),
  --     salt character varying(50),
  --     rands character varying(50),
  --     company character varying(255),
  --     org_id bigint NOT NULL,
  --     is_admin boolean NOT NULL,
  --     email_verified boolean,
  --     theme character varying(255),
  --     created timestamp without time zone NOT NULL,
  --     updated timestamp without time zone NOT NULL,
  --     help_flags1 bigint DEFAULT 0 NOT NULL,
  --     last_seen_at timestamp without time zone,
  --     is_disabled boolean DEFAULT false NOT NULL
  -- );
  
  CREATE TABLE "user_card" (
    "user_id" integer,
    "card_id" text,
    "quality" integer,
    "start_price" integer
  );
  
  ALTER TABLE "price" ADD FOREIGN KEY ("card_id") REFERENCES "card" ("id");
  
  ALTER TABLE "card" ADD FOREIGN KEY ("set_id") REFERENCES "set" ("id");
  
  -- should be executed after grafana
  -- ALTER TABLE "user_cards" ADD FOREIGN KEY ("user_id") REFERENCES "user" ("id");
  
  ALTER TABLE "user_card" ADD FOREIGN KEY ("card_id") REFERENCES "card" ("id");