twenty / packages /twenty-server /src /modules /task /standard-objects /task.workspace-entity.ts
Jules
Initial clean CRM deployment with prebuilt assets
d9494a5
Raw
History Blame Contribute Delete
1.34 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 TaskTargetWorkspaceEntity } from 'src/modules/task/standard-objects/task-target.workspace-entity';
import { type TimelineActivityWorkspaceEntity } from 'src/modules/timeline/standard-objects/timeline-activity.workspace-entity';
import { type WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/standard-objects/workspace-member.workspace-entity';
export class TaskWorkspaceEntity extends BaseWorkspaceEntity {
position: number;
title: string | null;
bodyV2: RichTextMetadata | null;
dueAt: Date | null;
status: string | null;
createdBy: ActorMetadata;
updatedBy: ActorMetadata;
taskTargets: EntityRelation<TaskTargetWorkspaceEntity[]>;
attachments: EntityRelation<AttachmentWorkspaceEntity[]>;
assignee: EntityRelation<WorkspaceMemberWorkspaceEntity> | null;
assigneeId: string | null;
timelineActivities: EntityRelation<TimelineActivityWorkspaceEntity[]>;
searchVector: string;
}