mirror of
https://github.com/bitbaum/heidi.git
synced 2026-12-04 06:18:11 +01:00
Claude-Session: https://claude.ai/code/session_019MDtmvb6xi489TfZMg7n9T Co-authored-by: Claude <noreply@anthropic.com>
8 lines
289 B
SQL
8 lines
289 B
SQL
CREATE TABLE "rate_limits" (
|
|
"key" text NOT NULL,
|
|
"bucket" bigint NOT NULL,
|
|
"count" integer DEFAULT 0 NOT NULL,
|
|
CONSTRAINT "rate_limits_key_bucket_pk" PRIMARY KEY("key","bucket")
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE INDEX "rate_limits_bucket_idx" ON "rate_limits" USING btree ("bucket"); |