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