feat: add publicId to workspace roles

This commit is contained in:
Henry
2026-01-26 14:05:24 +00:00
parent 398a94b566
commit 5f84f7b47d
3 changed files with 46 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
{
"id": "50b875bf-3579-4fde-9073-33a40244182d",
"id": "c24a8e89-c100-4483-9f0b-391201327ac5",
"prevId": "4e1ebb8b-bd52-48c5-87d6-8e6e5eb8bbde",
"version": "7",
"dialect": "postgresql",
@@ -3071,6 +3071,12 @@
"primaryKey": true,
"notNull": true
},
"publicId": {
"name": "publicId",
"type": "varchar(12)",
"primaryKey": false,
"notNull": true
},
"workspaceId": {
"name": "workspaceId",
"type": "bigint",
@@ -3170,7 +3176,15 @@
}
},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"uniqueConstraints": {
"workspace_roles_publicId_unique": {
"name": "workspace_roles_publicId_unique",
"nullsNotDistinct": false,
"columns": [
"publicId"
]
}
},
"policies": {},
"checkConstraints": {},
"isRLSEnabled": true

View File

@@ -166,8 +166,8 @@
{
"idx": 23,
"version": "7",
"when": 1769433866743,
"tag": "20260126132426_AddWorkspaceRoles",
"when": 1769435949476,
"tag": "20260126135909_AddWorkspaceRoles",
"breakpoints": true
}
]