sun-pc-linux hai 2 días
pai
achega
a6fc65949a

+ 2 - 1
pack-moutai/mongo-migrations/1_users.up.json

@@ -10,7 +10,8 @@
                 "loginName": "admin",
                 "avatar": "",
                 "password": "e10adc3949ba59abbe56e057f20f883e",
-                "role": "admin",
+                "roleId": "650965b2653077b4a74fd34d",
+                "state": 1,
                 "updateTime": "2024-10-15T08:47:05.583Z",
                 "createTime": "2024-10-15T08:47:05.583Z"
             }

+ 15 - 0
pack-moutai/mongo-migrations/2_roles.down.json

@@ -0,0 +1,15 @@
+[
+    {
+        "delete": "roles",
+        "deletes": [
+           {
+             "q" : {
+                "_id": {
+                    "$oid": "650965b2653077b4a74fd34d"
+                }
+             },
+             "limit" : 1
+           }
+        ]
+     }
+]

+ 15 - 0
pack-moutai/mongo-migrations/2_roles.up.json

@@ -0,0 +1,15 @@
+[
+    {
+        "insert": "roles",
+        "documents": [
+            {
+                "_id": {
+                    "$oid": "650965b2653077b4a74fd34d"
+                },
+                "name": "管理员",
+                "updateTime": "2024-10-15T08:47:05.583Z",
+                "createTime": "2024-10-15T08:47:05.583Z"
+            }
+        ]
+    }
+]