export type AgRelationType = 'one-to-many' | 'many-to-many' | 'one-to-one' | 'many-to-one'; export interface AgRelationField { tableId: string; fieldId: string; } export interface AgRelationDefinition { /** ID of the relationship. */ id: string; /** Source field. */ source: AgRelationField; /** Target field. */ target: AgRelationField; /** The cardinality of the relationship from the source field to the target field. */ type: AgRelationType; }