From 20fa1cff80f7b03f82d5bf1798994c27ff3a012a Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Fri, 16 Aug 2024 05:29:51 -0700 Subject: [PATCH] chore(rate_limit): remove db --- .../db/migrations/20240313051342_init/migration.sql | 9 --------- .../rate_limit/db/migrations/migration_lock.toml | 3 --- modules/rate_limit/db/schema.prisma | 13 ------------- 3 files changed, 25 deletions(-) delete mode 100644 modules/rate_limit/db/migrations/20240313051342_init/migration.sql delete mode 100644 modules/rate_limit/db/migrations/migration_lock.toml delete mode 100644 modules/rate_limit/db/schema.prisma diff --git a/modules/rate_limit/db/migrations/20240313051342_init/migration.sql b/modules/rate_limit/db/migrations/20240313051342_init/migration.sql deleted file mode 100644 index 84cd423a..00000000 --- a/modules/rate_limit/db/migrations/20240313051342_init/migration.sql +++ /dev/null @@ -1,9 +0,0 @@ --- CreateTable -CREATE UNLOGGED TABLE "TokenBuckets" ( - "type" TEXT NOT NULL, - "key" TEXT NOT NULL, - "tokens" BIGINT NOT NULL, - "lastRefill" TIMESTAMP(3) NOT NULL, - - CONSTRAINT "TokenBuckets_pkey" PRIMARY KEY ("type","key") -); diff --git a/modules/rate_limit/db/migrations/migration_lock.toml b/modules/rate_limit/db/migrations/migration_lock.toml deleted file mode 100644 index fbffa92c..00000000 --- a/modules/rate_limit/db/migrations/migration_lock.toml +++ /dev/null @@ -1,3 +0,0 @@ -# Please do not edit this file manually -# It should be added in your version-control system (i.e. Git) -provider = "postgresql" \ No newline at end of file diff --git a/modules/rate_limit/db/schema.prisma b/modules/rate_limit/db/schema.prisma deleted file mode 100644 index 1199d381..00000000 --- a/modules/rate_limit/db/schema.prisma +++ /dev/null @@ -1,13 +0,0 @@ -datasource db { - provider = "postgresql" - url = env("DATABASE_URL") -} - -model TokenBuckets { - type String - key String - tokens BigInt - lastRefill DateTime - - @@id([type, key]) -}