ThothII — Metadata Catalog (PostgreSQL)

ThothII — Metadata Catalog (PostgreSQL) An entity-relationship diagram generated by Archify. database schema sync run AI workspace_databases · Entity · database workspace_databases PK id uuid UK workspace_id text engine text database_name text schema_name text version integer created_at timestamptz updated_at timestamptz schema_synced_version integer schema_synced_at timestamptz metadata_content_revision bigint preprocessing_status text preprocessing_input_fingerprint text preprocessed_metadata_revision bigint preprocessing_started_at timestamptz preprocessing_finished_at timestamptz preprocessing_error_code text preprocessing_run_id text database_bindings · Entity · database database_bindings PKFK database_id uuid transport text host text port integer username text base_url text rest_path text rest_auth text tls_servername text ssh_host text ssh_port integer ssh_username text ssh_target_host text ssh_target_port integer connection_status text tested_version integer last_tested_at timestamptz last_error_code text last_error_message text updated_at timestamptz installation_binding_imports · Entity · database installation_binding_imports PK workspace_id text UK database_id uuid created_at timestamptz catalog_tables · Entity · schema catalog_tables PK id uuid FK database_id uuid name text source_comment text description text generated_description text version integer created_at timestamptz updated_at timestamptz last_synced_database_version integer last_synced_at timestamptz catalog_columns · Entity · schema catalog_columns PK id uuid FK table_id uuid name text ordinal_position integer data_type text is_nullable boolean default_expression text primary_key_position integer source_comment text description text generated_description text last_synced_database_version integer last_synced_at timestamptz version integer created_at timestamptz updated_at timestamptz sensitive boolean sensitivity_reason text catalog_relationships · Entity · schema catalog_relationships PK id uuid FK database_id uuid constraint_name text FK source_table_id uuid FK target_table_id uuid update_rule text delete_rule text deferrable boolean initially_deferred boolean last_synced_database_version integer last_synced_at timestamptz created_at timestamptz updated_at timestamptz catalog_relationship_columns · Entity · schema catalog_relationship_columns PKFK relationship_id uuid PK position integer FK source_column_id uuid FK target_column_id uuid catalog_logical_relationships · Entity · schema catalog_logical_relationships PK id uuid FK database_id uuid FK source_column_id uuid FK target_column_id uuid generated boolean deleted_at timestamptz created_at timestamptz updated_at timestamptz catalog_sync_runs · Entity · sync catalog_sync_runs PK id uuid FK database_id uuid scope text table_ids jsonb state text phase text requested_database_version integer observed_snapshot jsonb planned_diff jsonb confirmation_token text counts jsonb error_code text error_message text cancel_requested boolean created_at timestamptz started_at timestamptz updated_at timestamptz finished_at timestamptz heartbeat_at timestamptz lease_owner text lease_expires_at timestamptz catalog_sync_events · Entity · sync catalog_sync_events PK id bigint FK run_id uuid sequence integer level text event_type text message text data jsonb created_at timestamptz description_generation_runs · Entity · run AI description_generation_runs PK id uuid FK database_id uuid scope text model_id text language text status text total integer processed integer generated integer non_generatable integer failed integer created_at timestamptz started_at timestamptz updated_at timestamptz finished_at timestamptz error_summary text input_tokens integer cache_read_tokens integer output_tokens integer description_generation_events · Entity · run AI description_generation_events PKFK run_id uuid PK sequence integer level text message text created_at timestamptz sensitive_data_suggestion_runs · Entity · run AI sensitive_data_suggestion_runs PK id uuid FK database_id uuid scope text model_id text status text total integer suggested_sensitive integer suggested_non_sensitive integer created_at timestamptz started_at timestamptz updated_at timestamptz finished_at timestamptz error_summary text input_tokens integer cache_read_tokens integer output_tokens integer engine text policy_version text unknown integer sensitive_data_suggestion_events · Entity · run AI sensitive_data_suggestion_events PKFK run_id uuid PK sequence integer level text message text created_at timestamptz Legend PK Primary key FK Foreign key UK Unique key One Many