CREATE TABLE IF NOT EXISTS "canonical_structure_template" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "source" varchar(20) NOT NULL, "brand" varchar(120) NOT NULL, "canonical_category_id" uuid NOT NULL, "canonical_subcategory_id" uuid, "vehicle_count" integer DEFAULT 0 NOT NULL, "updated_at" timestamp with time zone DEFAULT now() NOT NULL ); --> statement-breakpoint CREATE INDEX IF NOT EXISTS "canonical_structure_template_source_brand_idx" ON "canonical_structure_template" ("source","brand");