chore: db migration add new table

This commit is contained in:
Methapon2001 2024-04-22 16:20:45 +07:00
parent e38e4c71d0
commit 6b8aa241eb
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,10 @@
-- CreateTable
CREATE TABLE "RunningNo" (
"key" TEXT NOT NULL,
"value" INTEGER NOT NULL,
CONSTRAINT "RunningNo_pkey" PRIMARY KEY ("key")
);
-- CreateIndex
CREATE UNIQUE INDEX "RunningNo_key_key" ON "RunningNo"("key");

View file

@ -93,6 +93,11 @@ model RoleMenuComponentPermission {
updatedAt DateTime @updatedAt
}
model RunningNo {
key String @id @unique
value Int
}
model UserMenuComponentPermission {
id String @id @default(uuid())