* Wip * WIP * Removed concole log * Add relations to workspace init (#2511) * Add relations to workspace init * remove logs * update prefill * add missing isSystem * comment relation fields * Migrate v2 core models to graphql schema (#2509) * migrate v2 core models to graphql schema * Migrate to new workspace member schema * Continue work * migrated-main * Finished accountOwner nested field integration on companies * Introduce bug * Fix --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com> Co-authored-by: Weiko <corentin@twenty.com>
56 lines
1.1 KiB
TypeScript
56 lines
1.1 KiB
TypeScript
const commentMetadata = {
|
|
nameSingular: 'commentV2',
|
|
namePlural: 'commentsV2',
|
|
labelSingular: 'Comment',
|
|
labelPlural: 'Comments',
|
|
targetTableName: 'comment',
|
|
description: 'A comment',
|
|
icon: 'IconMessageCircle',
|
|
isActive: true,
|
|
isSystem: true,
|
|
fields: [
|
|
{
|
|
isCustom: false,
|
|
isActive: true,
|
|
type: 'TEXT',
|
|
name: 'body',
|
|
label: 'Body',
|
|
targetColumnMap: {
|
|
value: 'body',
|
|
},
|
|
description: 'Comment body',
|
|
icon: 'IconLink',
|
|
isNullable: false,
|
|
},
|
|
// Relations
|
|
{
|
|
isCustom: false,
|
|
isActive: true,
|
|
type: 'RELATION',
|
|
name: 'author',
|
|
label: 'Author',
|
|
targetColumnMap: {
|
|
value: 'authorId',
|
|
},
|
|
description: 'Comment author',
|
|
icon: 'IconCircleUser',
|
|
isNullable: false,
|
|
},
|
|
{
|
|
isCustom: false,
|
|
isActive: true,
|
|
type: 'RELATION',
|
|
name: 'activity',
|
|
label: 'Activity',
|
|
targetColumnMap: {
|
|
value: 'activityId',
|
|
},
|
|
description: 'Comment activity',
|
|
icon: 'IconNotes',
|
|
isNullable: false,
|
|
},
|
|
],
|
|
};
|
|
|
|
export default commentMetadata;
|