- added settings page and function
- add Role Ring for avatar and display role for user nav
This commit is contained in:
15
prisma/migrations/20251227144141_setting/migration.sql
Normal file
15
prisma/migrations/20251227144141_setting/migration.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE "setting" (
|
||||
"id" TEXT NOT NULL,
|
||||
"key" TEXT NOT NULL,
|
||||
"value" TEXT NOT NULL,
|
||||
"description" TEXT NOT NULL,
|
||||
"relation" TEXT NOT NULL DEFAULT 'admin',
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
|
||||
CONSTRAINT "setting_pkey" PRIMARY KEY ("id")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "setting_key_key" ON "setting"("key");
|
||||
Reference in New Issue
Block a user