|
@@ -30,6 +30,28 @@ SET
|
|
|
"company" = excluded."company",
|
|
|
"createdAt"=excluded."createdAt";
|
|
|
|
|
|
+-- 初始化管理员角色
|
|
|
+INSERT INTO "_Role" ("objectId","title", "name", "_rperm", "_wperm", "company", "createdAt", "updatedAt")
|
|
|
+VALUES
|
|
|
+('ADMININITI','管理员', 'admin','{*,6684b5464b9206e48dbcf67c}','{6684b5464b9206e48dbcf67c}','RbIKpmuaMC','2024-06-16 12:00:00','2024-06-16 12:00:00')
|
|
|
+ON conflict("objectId") DO UPDATE
|
|
|
+SET
|
|
|
+"title" = excluded."title",
|
|
|
+"name" = excluded."name",
|
|
|
+"company" = excluded."company",
|
|
|
+"createdAt"=excluded."createdAt";
|
|
|
+
|
|
|
+-- 初始化操作员角色
|
|
|
+INSERT INTO "_Role" ("objectId","title", "name", "_rperm", "_wperm", "company", "createdAt", "updatedAt")
|
|
|
+VALUES
|
|
|
+('MANAGERINT','操作员', 'manager','{*,6684b5464b9206e48dbcf67c}','{6684b5464b9206e48dbcf67c}','RbIKpmuaMC','2024-06-16 12:00:00','2024-06-16 12:00:00')
|
|
|
+ON conflict("objectId") DO UPDATE
|
|
|
+SET
|
|
|
+"title" = excluded."title",
|
|
|
+"name" = excluded."name",
|
|
|
+"company" = excluded."company",
|
|
|
+"createdAt"=excluded."createdAt";
|
|
|
+
|
|
|
-- 超级管理员帐号,添加至超管用户组
|
|
|
INSERT INTO "_Join:users:_Role" ("relatedId", "owningId")
|
|
|
VALUES
|