chore(server): shared IoC 1 - index.js
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { buildTableHelper } from '@/modules/core/dbSchema'
|
||||
|
||||
export const Workspaces = buildTableHelper('workspaces', [
|
||||
'id',
|
||||
'name',
|
||||
'slug',
|
||||
'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'
|
||||
])
|
||||
Reference in New Issue
Block a user