Implement License Key API

This commit is contained in:
NeilClack
2026-02-19 13:00:08 -06:00
parent aa51b4a452
commit 664b6daa7f
11 changed files with 1683 additions and 10 deletions
@@ -0,0 +1,13 @@
-- CreateTable
CREATE TABLE "LicenseKey" (
"id" TEXT NOT NULL,
"key" TEXT NOT NULL,
"active" BOOLEAN NOT NULL,
"level" TEXT NOT NULL,
"userId" TEXT NOT NULL,
CONSTRAINT "LicenseKey_pkey" PRIMARY KEY ("id")
);
-- AddForeignKey
ALTER TABLE "LicenseKey" ADD CONSTRAINT "LicenseKey_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user"("id") ON DELETE RESTRICT ON UPDATE CASCADE;