CREATE TABLE "apiHits" ( "ip" text, "endpoint" text, "action" text, "lastBody" text, "stats" text, "add_date" timestamp DEFAULT now(), "upd_date" timestamp DEFAULT now() ); --> statement-breakpoint CREATE UNIQUE INDEX "endpoint" ON "apiHits" USING btree ("endpoint","ip");