first commit
This commit is contained in:
17
prisma/migrations/20250905094912_init/migration.sql
Normal file
17
prisma/migrations/20250905094912_init/migration.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "api_keys" (
|
||||
"id" TEXT NOT NULL PRIMARY KEY,
|
||||
"name" TEXT NOT NULL,
|
||||
"key" TEXT NOT NULL,
|
||||
"description" TEXT,
|
||||
"isValid" BOOLEAN NOT NULL DEFAULT true,
|
||||
"balance" REAL,
|
||||
"currency" TEXT,
|
||||
"lastChecked" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"checkCount" INTEGER NOT NULL DEFAULT 0,
|
||||
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" DATETIME NOT NULL
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "api_keys_key_key" ON "api_keys"("key");
|
||||
Reference in New Issue
Block a user