// ============ Connection Fields Map ============
export const connectionFieldsMap = {
    Schema: {
        tables: 'Table',
        schemaGrants: 'SchemaGrant',
        views: 'View',
        defaultPrivileges: 'DefaultPrivilege',
        enums: 'Enum',
        functions: 'Function',
        compositeTypes: 'CompositeType',
        apiSchemas: 'ApiSchema',
    },
    Table: {
        checkConstraints: 'CheckConstraint',
        fields: 'Field',
        foreignKeyConstraints: 'ForeignKeyConstraint',
        fullTextSearches: 'FullTextSearch',
        indices: 'Index',
        policies: 'Policy',
        primaryKeyConstraints: 'PrimaryKeyConstraint',
        tableGrants: 'TableGrant',
        triggers: 'Trigger',
        uniqueConstraints: 'UniqueConstraint',
        views: 'View',
        viewTables: 'ViewTable',
        embeddingChunksByChunksTableId: 'EmbeddingChunk',
        embeddingChunks: 'EmbeddingChunk',
        spatialRelationsByRefTableId: 'SpatialRelation',
        spatialRelations: 'SpatialRelation',
    },
    Field: {
        spatialRelations: 'SpatialRelation',
        spatialRelationsByRefFieldId: 'SpatialRelation',
    },
    View: {
        viewTables: 'ViewTable',
        viewGrants: 'ViewGrant',
        viewRules: 'ViewRule',
    },
    Api: {
        apiModules: 'ApiModule',
        apiSchemas: 'ApiSchema',
        domains: 'Domain',
        corsSettings: 'CorsSetting',
    },
    Site: {
        domains: 'Domain',
        siteMetadata: 'SiteMetadatum',
        siteModules: 'SiteModule',
        siteThemes: 'SiteTheme',
    },
    Database: {
        schemas: 'Schema',
        tables: 'Table',
        checkConstraints: 'CheckConstraint',
        fields: 'Field',
        foreignKeyConstraints: 'ForeignKeyConstraint',
        fullTextSearches: 'FullTextSearch',
        indices: 'Index',
        policies: 'Policy',
        primaryKeyConstraints: 'PrimaryKeyConstraint',
        schemaGrants: 'SchemaGrant',
        tableGrants: 'TableGrant',
        triggerFunctions: 'TriggerFunction',
        triggers: 'Trigger',
        uniqueConstraints: 'UniqueConstraint',
        views: 'View',
        viewTables: 'ViewTable',
        viewGrants: 'ViewGrant',
        viewRules: 'ViewRule',
        defaultPrivileges: 'DefaultPrivilege',
        enums: 'Enum',
        embeddingChunks: 'EmbeddingChunk',
        spatialRelations: 'SpatialRelation',
        functions: 'Function',
        partitions: 'Partition',
        compositeTypes: 'CompositeType',
        databaseTransfers: 'DatabaseTransfer',
        apis: 'Api',
        apiModules: 'ApiModule',
        apiSchemas: 'ApiSchema',
        sites: 'Site',
        apps: 'App',
        domains: 'Domain',
        siteMetadata: 'SiteMetadatum',
        siteModules: 'SiteModule',
        siteThemes: 'SiteTheme',
        apiSettings: 'ApiSetting',
        corsSettings: 'CorsSetting',
    },
};
