ac6dd70d27
* feat(workspaces): enable default project role in workspace * fix(workspaces): not satisfying * chore(workspaces): phrasing * fix(workspaces): use new field in role mapping * chore(workspaces): use roles * fix(workspaces): update tests * fix(workspaces): more parallel role update errors * chore(workspaces): like this now * chore(workspaces): revert changes to deps * fix(workspaces): assert domain type conversion at gql layer * fix(workspaces): repair tests * fix(workspaces): fix more tests
32 lines
612 B
TypeScript
32 lines
612 B
TypeScript
import { buildTableHelper } from '@/modules/core/dbSchema'
|
|
|
|
export const Workspaces = buildTableHelper('workspaces', [
|
|
'id',
|
|
'name',
|
|
'description',
|
|
'createdAt',
|
|
'updatedAt',
|
|
'logo',
|
|
'defaultLogoIndex',
|
|
'defaultProjectRole',
|
|
'domainBasedMembershipProtectionEnabled',
|
|
'discoverabilityEnabled'
|
|
])
|
|
|
|
export const WorkspaceAcl = buildTableHelper('workspace_acl', [
|
|
'userId',
|
|
'role',
|
|
'workspaceId',
|
|
'createdAt'
|
|
])
|
|
|
|
export const WorkspaceDomains = buildTableHelper('workspace_domains', [
|
|
'id',
|
|
'workspaceId',
|
|
'domain',
|
|
'createdAt',
|
|
'updatedAt',
|
|
'createdByUserId',
|
|
'verified'
|
|
])
|