Skip to main content

Multi-Table Metadata Extraction

Table Metadata

Overview

This page documents the attributes extracted for each table during database metadata analysis.

Table metadata includes information about a table’s columns, keys, and relationships to other tables (especially its relationship to the subject table).

Subject table

The subject table is the core table whose rows represent the “subjects” of privacy protection.

For non-subject tables, privacy accounting and downstream workflows can depend on how many subject records can be linked (directly or indirectly) to a row in that table.

Table attributes

AttributeDescription
Table nameThe table name as defined in the database.
Columns metadataMetadata for the columns selected for analysis. See Column Metadata.
Is privateWhether the table is marked as private.
Is selectedWhether the table is included in extraction and downstream workflows (for example, UI display and generation).
Foreign keysThe foreign key relationships defined (or inferred) for the table.
Primary keyThe column(s) that make up the primary key.
Unique keysThe unique key definitions for the table. Each unique key is a list of one or more columns.
Row countThe number of rows in the table.
Max subject referencesThe maximum number of subject-table records that can be linked to a record in this table (based on the discovered relationships).

Foreign key attributes

Each table can have zero or more foreign keys. For each foreign key relationship, AGENT tracks both the relationship endpoints (table/column) and relationship statistics that are useful for understanding join cardinality and downstream generation.

AttributeDescription
Column nameThe column in the current table that participates in the foreign key relationship.
Ref table nameThe referenced table.
Ref column nameThe referenced column in the referenced table.
Min referencesThe minimum number of references to the referenced table for a single value.
Max referencesThe maximum number of references to the referenced table for a single value.
Max ref column frequencyThe maximum frequency observed for values in the referenced column.
SelectedWhether this foreign key is selected. If false, it is not shown in the UI and is not used for data generation.
Is auto generatedWhether the foreign key was derived automatically from database metadata or created by a user.
Auto-gen min referencesMinimum references inferred from database metadata.
Auto-gen max referencesMaximum references inferred from database metadata.

Differential privacy

Most of the attributes above can be calculated using differentially private results.

Learn More About Subject Level Privacy Implementation

To learn more about how we implement Subject Level Differential Privacy, see Subject Level Privacy