feat(apihits): so i can see if what end points are being used and when and how often
This commit is contained in:
11
database/migrations/0053_short_colleen_wing.sql
Normal file
11
database/migrations/0053_short_colleen_wing.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
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");
|
||||
Reference in New Issue
Block a user