Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Change user id begin at 1001

天舟72fb641906fa
diff --git a/frontend/src/miragejs/fixtures/memberList.json b/frontend/src/miragejs/fixtures/memberList.json
index 12a9f88688..21a1c00fd6 100644
--- a/frontend/src/miragejs/fixtures/memberList.json
+++ b/frontend/src/miragejs/fixtures/memberList.json
@@ -1,72 +1,72 @@
[
{
"id": "1",
- "workspaceId": "1",
- "updaterId": "1",
+ "workspaceId": "1001",
+ "updaterId": "1001",
"updatedTs": 1614571200000,
"createdTs": 1614528000000,
- "creatorId": "1",
+ "creatorId": "1001",
"role": "OWNER",
- "principalId": "1"
+ "principalId": "1001"
},
{
"id": "2",
"workspaceId": "101",
- "updaterId": "1",
+ "updaterId": "1001",
"updatedTs": 1614657600000,
- "creatorId": "1",
+ "creatorId": "1001",
"createdTs": 1614614400000,
"role": "DEVELOPER",
- "principalId": "1"
+ "principalId": "1001"
},
{
"id": "3",
"workspaceId": "1",
- "updaterId": "1",
+ "updaterId": "1001",
"updatedTs": 1614744000000,
- "creatorId": "1",
+ "creatorId": "1001",
"createdTs": 1614700800000,
"role": "DBA",
- "principalId": "2"
+ "principalId": "1002"
},
{
"id": "4",
"workspaceId": "1",
- "updaterId": "1",
+ "updaterId": "1001",
"updatedTs": 1609473600000,
- "creatorId": "1",
+ "creatorId": "1001",
"createdTs": 1609430400000,
"role": "DEVELOPER",
- "principalId": "3"
+ "principalId": "1003"
},
{
"id": "5",
"workspaceId": "101",
- "updaterId": "1",
+ "updaterId": "1001",
"updatedTs": 1609560000000,
- "creatorId": "1",
+ "creatorId": "1001",
"createdTs": 1609516800000,
"role": "DBA",
- "principalId": "4"
+ "principalId": "1004"
},
{
"id": "6",
"workspaceId": "1",
- "updaterId": "1",
+ "updaterId": "1001",
"updatedTs": 1609646400000,
- "creatorId": "1",
+ "creatorId": "1001",
"createdTs": 1609603200000,
"role": "DEVELOPER",
- "principalId": "5"
+ "principalId": "1005"
},
{
"id": "7",
"workspaceId": "1",
- "updaterId": "1",
+ "updaterId": "1001",
"updatedTs": 1609646400000,
- "creatorId": "1",
+ "creatorId": "1001",
"createdTs": 1609603200000,
"role": "DEVELOPER",
- "principalId": "6"
+ "principalId": "1006"
}
]
diff --git a/frontend/src/miragejs/fixtures/projectList.json b/frontend/src/miragejs/fixtures/projectList.json
index b10e4fafd9..e3772437f8 100644
--- a/frontend/src/miragejs/fixtures/projectList.json
+++ b/frontend/src/miragejs/fixtures/projectList.json
@@ -3,8 +3,8 @@
"id": "1",
"rowStatus": "NORMAL",
"workspaceId": "1",
- "creatorId": "1",
- "updaterId": "1",
+ "creatorId": "1001",
+ "updaterId": "1001",
"createdTs": 1614528000000,
"updatedTs": 1614571200000,
"name": "Default"
@@ -13,8 +13,8 @@
"id": "2",
"rowStatus": "NORMAL",
"workspaceId": "101",
- "creatorId": "4",
- "updaterId": "4",
+ "creatorId": "1004",
+ "updaterId": "1004",
"createdTs": 1614528000000,
"updatedTs": 1614571200000,
"name": "Default"
diff --git a/frontend/src/miragejs/fixtures/userList.json b/frontend/src/miragejs/fixtures/userList.json
index ea3ce43925..aa297b1bd4 100644
--- a/frontend/src/miragejs/fixtures/userList.json
+++ b/frontend/src/miragejs/fixtures/userList.json
@@ -1,54 +1,54 @@
[
{
- "id": "1",
- "updaterId": "1",
+ "id": "1001",
+ "updaterId": "1001",
"updatedTs": 1614571200000,
"createdTs": 1614528000000,
- "creatorId": "1",
+ "creatorId": "1001",
"status": "ACTIVE",
"name": "Demo Owner",
"email": "[email protected]",
"passwordHash": "1024"
},
{
- "id": "2",
- "updaterId": "1",
+ "id": "1002",
+ "updaterId": "1001",
"updatedTs": 1614571200000,
"createdTs": 1614528000000,
- "creatorId": "1",
+ "creatorId": "1001",
"status": "ACTIVE",
"name": "Jerry DBA",
"email": "[email protected]",
"passwordHash": "aaa"
},
{
- "id": "3",
- "updaterId": "1",
+ "id": "1003",
+ "updaterId": "1001",
"updatedTs": 1614571200000,
"createdTs": 1614528000000,
- "creatorId": "1",
+ "creatorId": "1001",
"status": "ACTIVE",
"name": "Tom Dev",
"email": "[email protected]",
"passwordHash": "aaa"
},
{
- "id": "4",
- "updaterId": "1",
+ "id": "1004",
+ "updaterId": "1001",
"updatedTs": 1614571200000,
"createdTs": 1614528000000,
- "creatorId": "1",
+ "creatorId": "1001",
"status": "ACTIVE",
"name": "Alice DBA",
"email": "[email protected]",
"passwordHash": "aaa"
},
{
- "id": "5",
- "updaterId": "1",
+ "id": "1005",
+ "updaterId": "1001",
"updatedTs": 1614571200000,
"createdTs": 1614528000000,
- "creatorId": "1",
+ "creatorId": "1001",
"status": "ACTIVE",
"name": "Jane Dev",
"email": "[email protected]",
@@ -56,10 +56,10 @@
},
{
"id": "6",
- "updaterId": "1",
+ "updaterId": "1001",
"updatedTs": 1614571200000,
"createdTs": 1614528000000,
- "creatorId": "1",
+ "creatorId": "1001",
"status": "INVITED",
"name": "Bob Invited",
"email": "[email protected]",
diff --git a/frontend/src/miragejs/seeds/index.ts b/frontend/src/miragejs/seeds/index.ts
index 449117ba4c..bbb6ddaf6e 100644
--- a/frontend/src/miragejs/seeds/index.ts
+++ b/frontend/src/miragejs/seeds/index.ts
@@ -25,15 +25,15 @@ const workspacesSeeder = (server: any) => {
const workspace2 = server.schema.workspaces.find(101);
// User
- const ws1Owner = server.schema.users.find(1);
- const ws1DBA = server.schema.users.find(2);
- const ws1Dev1 = server.schema.users.find(3);
- const ws1Dev2 = server.schema.users.find(5);
+ const ws1Owner = server.schema.users.find(1001);
+ const ws1DBA = server.schema.users.find(1002);
+ const ws1Dev1 = server.schema.users.find(1003);
+ const ws1Dev2 = server.schema.users.find(1005);
const ws1UserList = [ws1Owner, ws1DBA, ws1Dev1, ws1Dev2];
- const ws2DBA = server.schema.users.find(4);
- const ws2Dev = server.schema.users.find(1);
+ const ws2DBA = server.schema.users.find(1004);
+ const ws2Dev = server.schema.users.find(1001);
const ws2UserList = [ws2DBA, ws2Dev];
// Environment