00c01db923
* feat(workspaces): add workspace slug support * chore(workspaces): lint * feat(workspaces): add slug validation and generation * fix(workspaces): test lint miss
33 lines
622 B
TypeScript
33 lines
622 B
TypeScript
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'
|
|
])
|