feat: twenty orm sync (#5266)

This PR is updating all object metadata entities with the new
decorators, and deleting the old ones.
This way we can use the new TwentyORM with all the standard objects.

---------

Co-authored-by: Weiko <corentin@twenty.com>
This commit is contained in:
Jérémy M
2024-05-15 16:58:47 +02:00
committed by GitHub
co-authored by Weiko
parent 6898c1e4d8
commit f0383e3147
81 changed files with 1721 additions and 2060 deletions
@@ -1,9 +1,9 @@
import { FactoryProvider, ModuleMetadata, Type } from '@nestjs/common';
import { BaseObjectMetadata } from 'src/engine/workspace-manager/workspace-sync-metadata/standard-objects/base.object-metadata';
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
export interface TwentyORMOptions {
objects: Type<BaseObjectMetadata>[];
workspaceEntities: Type<BaseWorkspaceEntity>[];
}
export type TwentyORMModuleAsyncOptions = {