import type { ModelType } from '@travetto/model'; import type { Class } from '@travetto/runtime'; import type { SchemaFieldConfig } from '@travetto/schema'; export type JSONSqlPathMode = 'orderBy' | 'createIndex' | 'read'; export interface SchemaContext { cls: Class; simpleFields: Map; complexFields: Map; allFields: SchemaFieldConfig[]; } export interface TableContext extends SchemaContext { tableName: string; database?: string; } export interface ResolvedPathContext { sqlPath: string; leafField?: SchemaFieldConfig; arrayField?: SchemaFieldConfig; arrayPath?: string[]; subPath?: string[]; }