Fix https://github.com/twentyhq/core-team-issues/issues/295 Based on the feature-flag `IsNewRelationEnabled` the schema will be marked as outdated and regenerated, this will cause an error on the front-end on the first request on the following ones schema will be well generated ans request will work.
28 lines
904 B
TypeScript
28 lines
904 B
TypeScript
import { IndexMetadataInterface } from 'src/engine/metadata-modules/index-metadata/interfaces/index-metadata.interface';
|
|
|
|
import { FieldMetadataInterface } from './field-metadata.interface';
|
|
import { RelationMetadataInterface } from './relation-metadata.interface';
|
|
|
|
export interface ObjectMetadataInterface {
|
|
id: string;
|
|
standardId?: string | null;
|
|
workspaceId: string;
|
|
nameSingular: string;
|
|
namePlural: string;
|
|
labelSingular: string;
|
|
labelPlural: string;
|
|
description?: string;
|
|
targetTableName: string;
|
|
fromRelations: RelationMetadataInterface[];
|
|
toRelations: RelationMetadataInterface[];
|
|
fields: FieldMetadataInterface[];
|
|
indexMetadatas: IndexMetadataInterface[];
|
|
isSystem: boolean;
|
|
isCustom: boolean;
|
|
isActive: boolean;
|
|
isRemote: boolean;
|
|
isAuditLogged: boolean;
|
|
labelIdentifierFieldMetadataId?: string | null;
|
|
imageIdentifierFieldMetadataId?: string | null;
|
|
}
|