11 lines
279 B
SQL
11 lines
279 B
SQL
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"); |