diff --git a/server/src/workspace/workspace-manager/standard-objects/activity.ts b/server/src/workspace/workspace-manager/standard-objects/activity.ts index 62bd3bb99..b0a8c1533 100644 --- a/server/src/workspace/workspace-manager/standard-objects/activity.ts +++ b/server/src/workspace/workspace-manager/standard-objects/activity.ts @@ -1,4 +1,3 @@ -import { SeedWorkspaceId } from 'src/database/typeorm-seeds/core/workspaces'; import { FieldMetadataType } from 'src/metadata/field-metadata/field-metadata.entity'; const activityMetadata = { @@ -137,11 +136,10 @@ const activityMetadata = { description: 'Activity author. This is the person who created the activity', icon: 'IconUserCircle', - isNullable: false, + isNullable: true, }, { isCustom: false, - workspaceId: SeedWorkspaceId, isActive: true, type: FieldMetadataType.UUID, name: 'authorId', @@ -166,7 +164,6 @@ const activityMetadata = { }, { isCustom: false, - workspaceId: SeedWorkspaceId, isActive: true, type: FieldMetadataType.UUID, name: 'assigneeId', diff --git a/server/src/workspace/workspace-manager/standard-objects/attachment.ts b/server/src/workspace/workspace-manager/standard-objects/attachment.ts index 94cea327a..e02116b9f 100644 --- a/server/src/workspace/workspace-manager/standard-objects/attachment.ts +++ b/server/src/workspace/workspace-manager/standard-objects/attachment.ts @@ -65,7 +65,19 @@ const attachmentMetadata = { }, description: 'Attachment author', icon: 'IconCircleUser', + isNullable: true, + }, + { + isCustom: false, + isActive: true, + type: FieldMetadataType.UUID, + name: 'authorId', + label: 'Author id (foreign key)', + targetColumnMap: {}, + description: 'Activity author id foreign key', + icon: undefined, isNullable: false, + isSystem: true, }, { isCustom: false,