Files
immich-redaktions-plugin/drizzle/0005_rate_limits.sql

9 lines
340 B
SQL

CREATE TABLE "rate_limits" (
"key" text NOT NULL,
"window_boundary" integer NOT NULL,
"count" integer DEFAULT 1 NOT NULL,
"created_at" timestamp with time zone DEFAULT now() NOT NULL,
"updated_at" timestamp with time zone DEFAULT now() NOT NULL,
CONSTRAINT "rate_limits_key_window_boundary_pk" PRIMARY KEY("key","window_boundary")
);