21 lines
529 B
SQL
21 lines
529 B
SQL
CREATE TABLE "igdb_metadata" (
|
|
"canonical_id" text PRIMARY KEY NOT NULL,
|
|
"summary" text,
|
|
"cover_image_id" text,
|
|
"screenshots" jsonb,
|
|
"video_ids" jsonb,
|
|
"genres" jsonb,
|
|
"aggregated_rating" real,
|
|
"release_date" text,
|
|
"developers" jsonb,
|
|
"fetched_at" timestamp with time zone DEFAULT now()
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE TABLE "igdb_resolutions" (
|
|
"cache_key" text PRIMARY KEY NOT NULL,
|
|
"source" text NOT NULL,
|
|
"source_id" text NOT NULL,
|
|
"igdb_id" integer,
|
|
"resolved_at" timestamp with time zone DEFAULT now()
|
|
);
|