bbd5146e5a
* fix(workspaces): a suggestion of paginated teams * fix(workspaces): workspace team pagination (?) * fix(workspaces): pagination based on acl createdAt * fix(workspaces): fix some roles-related tests * fix(workspaces): improve query and tests * fix(workspaces): collaborators query without incorrect groupBy * fix(workspaces): add default values to migration * Fixed queries and fragments * Merged main * Remove comment * chore(workspaces): update WorkspaceCollaboratorCollection mocks * chore(workspaces): fix role test * chore(workspaces); ope * fix(workspaces): move workspace acl timestamps to separate table * Merge? * fix(workspaces) drop that table * fix(workspaces): cursor * fix(workspaceInvites): undo merge borkage * fix(workspaces): rework workspace member pagination * fix(workspaces): fix test * fix(workspaces): test test * fix(workspaces): literally garbage --------- Co-authored-by: Mike Tasset <mike.tasset@gmail.com> Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
31 lines
588 B
TypeScript
31 lines
588 B
TypeScript
import { buildTableHelper } from '@/modules/core/dbSchema'
|
|
|
|
export const Workspaces = buildTableHelper('workspaces', [
|
|
'id',
|
|
'name',
|
|
'description',
|
|
'createdAt',
|
|
'updatedAt',
|
|
'logo',
|
|
'defaultLogoIndex',
|
|
'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'
|
|
])
|