feat: 系统资源表

This commit is contained in:
2025-03-11 14:26:38 +08:00
parent e7bd916cae
commit ffb4c7691b
24 changed files with 761 additions and 532 deletions

View File

@@ -0,0 +1,14 @@
/*
Warnings:
- A unique constraint covering the columns `[permission]` on the table `sys_resource` will be added. If there are existing duplicate values, this will fail.
*/
-- DropIndex
DROP INDEX "sys_resource_name_type_key";
-- AlterTable
ALTER TABLE "sys_resource" ADD COLUMN "permission" TEXT;
-- CreateIndex
CREATE UNIQUE INDEX "sys_resource_permission_key" ON "sys_resource"("permission");