Attachments (#2716)

* create attachment site

* add deletion

* - fix person create attachment

* - add presentation type
- add some more file endings
- various fixes
This commit is contained in:
brendanlaschke
2023-11-29 16:58:58 +01:00
committed by GitHub
parent d50cf5291a
commit 7e454d2013
15 changed files with 654 additions and 14 deletions

View File

@ -172,10 +172,12 @@ export const seedAttachmentFieldMetadata = async (
type: FieldMetadataType.RELATION,
name: 'author',
label: 'Author',
targetColumnMap: {},
targetColumnMap: {
value: 'authorId',
},
description: 'Attachment author',
icon: 'IconCircleUser',
isNullable: false,
isNullable: true,
isSystem: false,
defaultValue: undefined,
},
@ -204,10 +206,12 @@ export const seedAttachmentFieldMetadata = async (
type: FieldMetadataType.RELATION,
name: 'activity',
label: 'Activity',
targetColumnMap: {},
targetColumnMap: {
value: 'activityId',
},
description: 'Attachment activity',
icon: 'IconNotes',
isNullable: false,
isNullable: true,
isSystem: false,
defaultValue: undefined,
},
@ -223,7 +227,7 @@ export const seedAttachmentFieldMetadata = async (
targetColumnMap: {},
description: 'Attachment activity id foreign key',
icon: undefined,
isNullable: false,
isNullable: true,
isSystem: true,
defaultValue: undefined,
},
@ -236,10 +240,12 @@ export const seedAttachmentFieldMetadata = async (
type: FieldMetadataType.RELATION,
name: 'person',
label: 'Person',
targetColumnMap: {},
targetColumnMap: {
value: 'personId',
},
description: 'Attachment person',
icon: 'IconUser',
isNullable: false,
isNullable: true,
isSystem: false,
defaultValue: undefined,
},
@ -255,7 +261,7 @@ export const seedAttachmentFieldMetadata = async (
targetColumnMap: {},
description: 'Attachment person id foreign key',
icon: undefined,
isNullable: false,
isNullable: true,
isSystem: true,
defaultValue: undefined,
},
@ -268,10 +274,12 @@ export const seedAttachmentFieldMetadata = async (
type: FieldMetadataType.RELATION,
name: 'company',
label: 'Company',
targetColumnMap: {},
targetColumnMap: {
value: 'companyId',
},
description: 'Attachment company',
icon: 'IconBuildingSkyscraper',
isNullable: false,
isNullable: true,
isSystem: false,
defaultValue: undefined,
},
@ -287,7 +295,7 @@ export const seedAttachmentFieldMetadata = async (
targetColumnMap: {},
description: 'Attachment company id foreign key',
icon: undefined,
isNullable: false,
isNullable: true,
isSystem: true,
defaultValue: undefined,
},