Files
buzz-sheet/drizzle/0031_watery_sumo.sql
T
2026-09-06 13:59:32 +07:00

13 lines
545 B
SQL

CREATE TABLE "catalog"."material" (
"key" varchar(64) PRIMARY KEY NOT NULL,
"name" text NOT NULL,
"description" text,
"rarity" integer,
"type" varchar(64),
"image_key" text NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
"updated_at" timestamp with time zone DEFAULT now() NOT NULL
);
--> statement-breakpoint
ALTER TABLE "catalog"."character" ADD COLUMN "ascension" jsonb DEFAULT '[]'::jsonb NOT NULL;--> statement-breakpoint
CREATE INDEX "catalog_material_name_idx" ON "catalog"."material" USING btree ("name");