twenty / packages /twenty-server /src /modules /note /standard-objects /note.workspace-entity.ts
Jules
Initial clean CRM deployment with prebuilt assets
d9494a5
Raw
History Blame Contribute Delete
1.06 kB
import { type ActorMetadata, type RichTextMetadata } from 'twenty-shared/types';
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
import { type EntityRelation } from 'src/engine/workspace-manager/workspace-migration/types/entity-relation.interface';
import { type AttachmentWorkspaceEntity } from 'src/modules/attachment/standard-objects/attachment.workspace-entity';
import { type NoteTargetWorkspaceEntity } from 'src/modules/note/standard-objects/note-target.workspace-entity';
import { type TimelineActivityWorkspaceEntity } from 'src/modules/timeline/standard-objects/timeline-activity.workspace-entity';
export class NoteWorkspaceEntity extends BaseWorkspaceEntity {
position: number;
title: string;
bodyV2: RichTextMetadata | null;
createdBy: ActorMetadata;
updatedBy: ActorMetadata;
noteTargets: EntityRelation<NoteTargetWorkspaceEntity[]>;
attachments: EntityRelation<AttachmentWorkspaceEntity[]>;
timelineActivities: EntityRelation<TimelineActivityWorkspaceEntity[]>;
searchVector: string;
}