From afd9135a6e6aa2462afaa1e609b0bb798c93fa65 Mon Sep 17 00:00:00 2001 From: thbcmlowk Date: Wed, 11 Oct 2023 15:46:19 +0000 Subject: [PATCH] [auto] generate database diagram Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- docs/schemas/standalone-database.svg | 1531 +++++++++++++------------- 1 file changed, 765 insertions(+), 766 deletions(-) diff --git a/docs/schemas/standalone-database.svg b/docs/schemas/standalone-database.svg index d512bca7..e34827ac 100644 --- a/docs/schemas/standalone-database.svg +++ b/docs/schemas/standalone-database.svg @@ -4,994 +4,993 @@ - + postgres - + public.schema_migrations - - -public.schema_migrations -     -[BASE TABLE] - -version -[bigint] - -dirty -[boolean] + + +public.schema_migrations +     +[BASE TABLE] + +version +[bigint] + +dirty +[boolean] public.organizations - - -public.organizations -     -[BASE TABLE] - -id -[varchar(100)] - -channel -[varchar(100)] - -creation_date -[timestamp with time zone] - -address -[varchar(200)] + + +public.organizations +     +[BASE TABLE] + +id +[varchar(100)] + +channel +[varchar(100)] + +creation_date +[timestamp with time zone] + +address +[varchar(200)] public.datasamples - - -public.datasamples -     -[BASE TABLE] - -key -[uuid] - -channel -[varchar(100)] - -owner -[varchar(100)] - -checksum -[varchar(64)] - -creation_date -[timestamp with time zone] + + +public.datasamples +     +[BASE TABLE] + +key +[uuid] + +channel +[varchar(100)] + +owner +[varchar(100)] + +checksum +[varchar(64)] + +creation_date +[timestamp with time zone] public.datasamples:owner->public.organizations:id - - -FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) + + +FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) public.functions - - -public.functions -     -[BASE TABLE] - -key -[uuid] - -channel -[varchar(100)] - -name -[varchar(100)] - -description -[varchar(200)] - -functionaddress -[varchar(200)] - -permissions -[jsonb] - -owner -[varchar(100)] - -creation_date -[timestamp with time zone] - -metadata -[jsonb] - -status -[function_status] + + +public.functions +     +[BASE TABLE] + +key +[uuid] + +channel +[varchar(100)] + +name +[varchar(100)] + +description +[varchar(200)] + +functionaddress +[varchar(200)] + +permissions +[jsonb] + +owner +[varchar(100)] + +creation_date +[timestamp with time zone] + +metadata +[jsonb] + +status +[function_status] public.functions:owner->public.organizations:id - - -FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) + + +FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) public.addressables - - -public.addressables -     -[BASE TABLE] - -storage_address -[varchar(200)] - -checksum -[varchar(64)] + + +public.addressables +     +[BASE TABLE] + +storage_address +[varchar(200)] + +checksum +[varchar(64)] public.functions:functionaddress->public.addressables:storage_address - - -FOREIGN KEY (functionaddress) REFERENCES addressables(storage_address) + + +FOREIGN KEY (functionaddress) REFERENCES addressables(storage_address) public.functions:description->public.addressables:storage_address - - -FOREIGN KEY (description) REFERENCES addressables(storage_address) + + +FOREIGN KEY (description) REFERENCES addressables(storage_address) public.datamanagers - - -public.datamanagers -     -[BASE TABLE] - -key -[uuid] - -channel -[varchar(100)] - -name -[varchar(100)] - -owner -[varchar(100)] - -permissions -[jsonb] - -description -[varchar(200)] - -opener -[varchar(200)] - -type -[varchar(30)] - -creation_date -[timestamp with time zone] - -logs_permission -[jsonb] - -metadata -[jsonb] + + +public.datamanagers +     +[BASE TABLE] + +key +[uuid] + +channel +[varchar(100)] + +name +[varchar(100)] + +owner +[varchar(100)] + +permissions +[jsonb] + +description +[varchar(200)] + +opener +[varchar(200)] + +type +[varchar(30)] + +creation_date +[timestamp with time zone] + +logs_permission +[jsonb] + +metadata +[jsonb] public.datamanagers:owner->public.organizations:id - - -FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) + + +FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) public.datamanagers:description->public.addressables:storage_address - - -FOREIGN KEY (description) REFERENCES addressables(storage_address) + + +FOREIGN KEY (description) REFERENCES addressables(storage_address) public.datamanagers:opener->public.addressables:storage_address - - -FOREIGN KEY (opener) REFERENCES addressables(storage_address) + + +FOREIGN KEY (opener) REFERENCES addressables(storage_address) public.compute_tasks - - -public.compute_tasks -     -[BASE TABLE] - -key -[uuid] - -channel -[varchar(100)] - -compute_plan_key -[uuid] - -status -[varchar(100)] - -worker -[varchar(100)] - -function_key -[uuid] - -owner -[varchar(100)] - -rank -[integer] - -creation_date -[timestamp with time zone] - -logs_permission -[jsonb] - -metadata -[jsonb] + + +public.compute_tasks +     +[BASE TABLE] + +key +[uuid] + +channel +[varchar(100)] + +compute_plan_key +[uuid] + +status +[varchar(100)] + +worker +[varchar(100)] + +function_key +[uuid] + +owner +[varchar(100)] + +rank +[integer] + +creation_date +[timestamp with time zone] + +logs_permission +[jsonb] + +metadata +[jsonb] public.compute_tasks:owner->public.organizations:id - - -FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) + + +FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) public.compute_tasks:worker->public.organizations:id - - -FOREIGN KEY (worker, channel) REFERENCES organizations(id, channel) + + +FOREIGN KEY (worker, channel) REFERENCES organizations(id, channel) public.compute_tasks:function_key->public.functions:key - - -FOREIGN KEY (function_key) REFERENCES functions(key) + + +FOREIGN KEY (function_key) REFERENCES functions(key) public.compute_plans - - -public.compute_plans -     -[BASE TABLE] - -key -[uuid] - -channel -[varchar(100)] - -owner -[varchar(100)] - -creation_date -[timestamp with time zone] - -tag -[varchar(100)] - -metadata -[jsonb] - -name -[varchar(100)] - -cancelation_date -[timestamp with time zone] - -failure_date -[timestamp with time zone] + + +public.compute_plans +     +[BASE TABLE] + +key +[uuid] + +channel +[varchar(100)] + +owner +[varchar(100)] + +creation_date +[timestamp with time zone] + +tag +[varchar(100)] + +metadata +[jsonb] + +name +[varchar(100)] + +cancelation_date +[timestamp with time zone] + +failure_date +[timestamp with time zone] public.compute_tasks:compute_plan_key->public.compute_plans:key - - -FOREIGN KEY (compute_plan_key) REFERENCES compute_plans(key) + + +FOREIGN KEY (compute_plan_key) REFERENCES compute_plans(key) public.compute_task_statuses - - -public.compute_task_statuses -     -[BASE TABLE] - -status -[varchar(100)] + + +public.compute_task_statuses +     +[BASE TABLE] + +status +[varchar(100)] public.compute_tasks:status->public.compute_task_statuses:status - - -FOREIGN KEY (status) REFERENCES compute_task_statuses(status) + + +FOREIGN KEY (status) REFERENCES compute_task_statuses(status) public.models - - -public.models -     -[BASE TABLE] - -key -[uuid] - -channel -[varchar(100)] - -compute_task_key -[uuid] - -address -[varchar(200)] - -permissions -[jsonb] - -owner -[varchar(100)] - -creation_date -[timestamp with time zone] + + +public.models +     +[BASE TABLE] + +key +[uuid] + +channel +[varchar(100)] + +compute_task_key +[uuid] + +address +[varchar(200)] + +permissions +[jsonb] + +owner +[varchar(100)] + +creation_date +[timestamp with time zone] public.models:owner->public.organizations:id - - -FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) + + +FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) public.models:compute_task_key->public.compute_tasks:key - - -FOREIGN KEY (compute_task_key) REFERENCES compute_tasks(key) + + +FOREIGN KEY (compute_task_key) REFERENCES compute_tasks(key) public.models:address->public.addressables:storage_address - - -FOREIGN KEY (address) REFERENCES addressables(storage_address) + + +FOREIGN KEY (address) REFERENCES addressables(storage_address) public.compute_plans:owner->public.organizations:id - - -FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) + + +FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) public.performances - - -public.performances -     -[BASE TABLE] - -compute_task_key -[uuid] - -channel -[varchar(100)] - -performance_value -[numeric] - -creation_date -[timestamp with time zone] - -compute_task_output_identifier -[varchar(100)] + + +public.performances +     +[BASE TABLE] + +compute_task_key +[uuid] + +channel +[varchar(100)] + +performance_value +[numeric] + +creation_date +[timestamp with time zone] + +compute_task_output_identifier +[varchar(100)] - + public.compute_task_outputs - - -public.compute_task_outputs -     -[BASE TABLE] - -compute_task_key -[uuid] - -identifier -[varchar(100)] - -permissions -[jsonb] - -transient -[boolean] + + +public.compute_task_outputs +     +[BASE TABLE] + +compute_task_key +[uuid] + +identifier +[varchar(100)] + +permissions +[jsonb] + +transient +[boolean] public.performances:compute_task_key->public.compute_task_outputs:compute_task_key - - -FOREIGN KEY (compute_task_key, compute_task_output_identifier) REFERENCES compute_task_outputs(compute_task_key, identifier) + + +FOREIGN KEY (compute_task_key, compute_task_output_identifier) REFERENCES compute_task_outputs(compute_task_key, identifier) public.events - - -public.events -     -[BASE TABLE] - -id -[uuid] - -asset_key -[varchar(100)] - -channel -[varchar(100)] - -asset_kind -[varchar(50)] - -event_kind -[varchar(50)] - -timestamp -[timestamp with time zone] - -metadata -[jsonb] - -asset -[jsonb] - -position -[bigint] + + +public.events +     +[BASE TABLE] + +id +[uuid] + +asset_key +[varchar(100)] + +channel +[varchar(100)] + +asset_kind +[varchar(50)] + +event_kind +[varchar(50)] + +timestamp +[timestamp with time zone] + +metadata +[jsonb] + +asset +[jsonb] + +position +[bigint] - + public.asset_kinds - - -public.asset_kinds -     -[BASE TABLE] - -kind -[varchar(50)] + + +public.asset_kinds +     +[BASE TABLE] + +kind +[varchar(50)] public.events:asset_kind->public.asset_kinds:kind - - -FOREIGN KEY (asset_kind) REFERENCES asset_kinds(kind) + + +FOREIGN KEY (asset_kind) REFERENCES asset_kinds(kind) - + public.event_kinds - - -public.event_kinds -     -[BASE TABLE] - -kind -[varchar(50)] + + +public.event_kinds +     +[BASE TABLE] + +kind +[varchar(50)] public.events:event_kind->public.event_kinds:kind - - -FOREIGN KEY (event_kind) REFERENCES event_kinds(kind) + + +FOREIGN KEY (event_kind) REFERENCES event_kinds(kind) public.failure_reports - - -public.failure_reports -     -[BASE TABLE] - -compute_task_key -[uuid] - -channel -[varchar(100)] - -error_type -[varchar(50)] - -logs_address -[varchar(200)] - -owner -[varchar(100)] - -creation_date -[timestamp with time zone] + + +public.failure_reports +     +[BASE TABLE] + +asset_key +[uuid] + +channel +[varchar(100)] + +error_type +[varchar(50)] + +logs_address +[varchar(200)] + +owner +[varchar(100)] + +creation_date +[timestamp with time zone] + +asset_type +[failed_asset_kind] public.failure_reports:owner->public.organizations:id - - -FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) - - - -public.failure_reports:compute_task_key->public.compute_tasks:key - - -FOREIGN KEY (compute_task_key) REFERENCES compute_tasks(key) + + +FOREIGN KEY (owner, channel) REFERENCES organizations(id, channel) - + public.failure_reports:logs_address->public.addressables:storage_address - - -FOREIGN KEY (logs_address) REFERENCES addressables(storage_address) + + +FOREIGN KEY (logs_address) REFERENCES addressables(storage_address) public.error_types - - -public.error_types -     -[BASE TABLE] - -error_type -[varchar(50)] + + +public.error_types +     +[BASE TABLE] + +error_type +[varchar(50)] - + public.failure_reports:error_type->public.error_types:error_type - - -FOREIGN KEY (error_type) REFERENCES error_types(error_type) + + +FOREIGN KEY (error_type) REFERENCES error_types(error_type) public.compute_task_parents - - -public.compute_task_parents -     -[BASE TABLE] - -child_task_key -[uuid] - -parent_task_key -[uuid] - -position -[integer] + + +public.compute_task_parents +     +[BASE TABLE] + +child_task_key +[uuid] + +parent_task_key +[uuid] + +position +[integer] - + public.compute_task_parents:child_task_key->public.compute_tasks:key - - -FOREIGN KEY (child_task_key) REFERENCES compute_tasks(key) + + +FOREIGN KEY (child_task_key) REFERENCES compute_tasks(key) - + public.compute_task_parents:parent_task_key->public.compute_tasks:key - - -FOREIGN KEY (parent_task_key) REFERENCES compute_tasks(key) - - - -public.expanded_failure_reports - - -public.expanded_failure_reports -     -[VIEW] - -compute_task_key -[uuid] - -error_type -[varchar(50)] - -logs_address -[varchar(200)] - -logs_checksum -[varchar(64)] - -creation_date -[timestamp with time zone] - -owner -[varchar(100)] - -channel -[varchar(100)] + + +FOREIGN KEY (parent_task_key) REFERENCES compute_tasks(key) - + public.expanded_datamanagers - - -public.expanded_datamanagers -     -[VIEW] - -key -[uuid] - -name -[varchar(100)] - -owner -[varchar(100)] - -channel -[varchar(100)] - -permissions -[jsonb] - -description_address -[varchar(200)] - -description_checksum -[varchar(64)] - -opener_address -[varchar(200)] - -opener_checksum -[varchar(64)] - -type -[varchar(30)] - -creation_date -[timestamp with time zone] - -logs_permission -[jsonb] - -metadata -[jsonb] + + +public.expanded_datamanagers +     +[VIEW] + +key +[uuid] + +name +[varchar(100)] + +owner +[varchar(100)] + +channel +[varchar(100)] + +permissions +[jsonb] + +description_address +[varchar(200)] + +description_checksum +[varchar(64)] + +opener_address +[varchar(200)] + +opener_checksum +[varchar(64)] + +type +[varchar(30)] + +creation_date +[timestamp with time zone] + +logs_permission +[jsonb] + +metadata +[jsonb] - + public.datasample_datamanagers - - -public.datasample_datamanagers -     -[BASE TABLE] - -datasample_key -[uuid] - -datamanager_key -[uuid] + + +public.datasample_datamanagers +     +[BASE TABLE] + +datasample_key +[uuid] + +datamanager_key +[uuid] - + public.datasample_datamanagers:datasample_key->public.datasamples:key - - -FOREIGN KEY (datasample_key) REFERENCES datasamples(key) + + +FOREIGN KEY (datasample_key) REFERENCES datasamples(key) - + public.datasample_datamanagers:datamanager_key->public.datamanagers:key - - -FOREIGN KEY (datamanager_key) REFERENCES datamanagers(key) + + +FOREIGN KEY (datamanager_key) REFERENCES datamanagers(key) - + public.function_inputs - - -public.function_inputs -     -[BASE TABLE] - -function_key -[uuid] - -identifier -[varchar(100)] - -kind -[varchar(50)] - -multiple -[boolean] - -optional -[boolean] + + +public.function_inputs +     +[BASE TABLE] + +function_key +[uuid] + +identifier +[varchar(100)] + +kind +[varchar(50)] + +multiple +[boolean] + +optional +[boolean] - + public.function_inputs:function_key->public.functions:key - - -FOREIGN KEY (function_key) REFERENCES functions(key) + + +FOREIGN KEY (function_key) REFERENCES functions(key) - + public.function_inputs:kind->public.asset_kinds:kind - - -FOREIGN KEY (kind) REFERENCES asset_kinds(kind) + + +FOREIGN KEY (kind) REFERENCES asset_kinds(kind) - + public.function_outputs - - -public.function_outputs -     -[BASE TABLE] - -function_key -[uuid] - -identifier -[varchar(100)] - -kind -[varchar(50)] - -multiple -[boolean] + + +public.function_outputs +     +[BASE TABLE] + +function_key +[uuid] + +identifier +[varchar(100)] + +kind +[varchar(50)] + +multiple +[boolean] - + public.function_outputs:function_key->public.functions:key - - -FOREIGN KEY (function_key) REFERENCES functions(key) + + +FOREIGN KEY (function_key) REFERENCES functions(key) - + public.function_outputs:kind->public.asset_kinds:kind - - -FOREIGN KEY (kind) REFERENCES asset_kinds(kind) + + +FOREIGN KEY (kind) REFERENCES asset_kinds(kind) - + public.compute_task_inputs - - -public.compute_task_inputs -     -[BASE TABLE] - -compute_task_key -[uuid] - -identifier -[varchar(100)] - -position -[integer] - -asset_key -[uuid] - -parent_task_key -[uuid] - -parent_task_output_identifier -[varchar(100)] + + +public.compute_task_inputs +     +[BASE TABLE] + +compute_task_key +[uuid] + +identifier +[varchar(100)] + +position +[integer] + +asset_key +[uuid] + +parent_task_key +[uuid] + +parent_task_output_identifier +[varchar(100)] - + public.compute_task_inputs:compute_task_key->public.compute_tasks:key - - -FOREIGN KEY (compute_task_key) REFERENCES compute_tasks(key) + + +FOREIGN KEY (compute_task_key) REFERENCES compute_tasks(key) - + public.compute_task_inputs:parent_task_key->public.compute_tasks:key - - -FOREIGN KEY (parent_task_key) REFERENCES compute_tasks(key) + + +FOREIGN KEY (parent_task_key) REFERENCES compute_tasks(key) - + public.compute_task_outputs:compute_task_key->public.compute_tasks:key - - -FOREIGN KEY (compute_task_key) REFERENCES compute_tasks(key) + + +FOREIGN KEY (compute_task_key) REFERENCES compute_tasks(key) - + public.compute_task_output_assets - - -public.compute_task_output_assets -     -[BASE TABLE] - -compute_task_key -[uuid] - -compute_task_output_identifier -[varchar(100)] - -position -[integer] - -asset_kind -[varchar(50)] - -asset_key -[varchar(200)] + + +public.compute_task_output_assets +     +[BASE TABLE] + +compute_task_key +[uuid] + +compute_task_output_identifier +[varchar(100)] + +position +[integer] + +asset_kind +[varchar(50)] + +asset_key +[varchar(200)] - + public.compute_task_output_assets:asset_kind->public.asset_kinds:kind - - -FOREIGN KEY (asset_kind) REFERENCES asset_kinds(kind) + + +FOREIGN KEY (asset_kind) REFERENCES asset_kinds(kind) - + public.compute_task_output_assets:compute_task_key->public.compute_task_outputs:compute_task_key - - -FOREIGN KEY (compute_task_key, compute_task_output_identifier) REFERENCES compute_task_outputs(compute_task_key, identifier) + + +FOREIGN KEY (compute_task_key, compute_task_output_identifier) REFERENCES compute_task_outputs(compute_task_key, identifier) - + public.expanded_models - - -public.expanded_models -     -[VIEW] - -key -[uuid] - -compute_task_key -[uuid] - -address -[varchar(200)] - -checksum -[varchar(64)] - -permissions -[jsonb] - -owner -[varchar(100)] - -channel -[varchar(100)] - -creation_date -[timestamp with time zone] + + +public.expanded_models +     +[VIEW] + +key +[uuid] + +compute_task_key +[uuid] + +address +[varchar(200)] + +checksum +[varchar(64)] + +permissions +[jsonb] + +owner +[varchar(100)] + +channel +[varchar(100)] + +creation_date +[timestamp with time zone] - + public.expanded_datasamples - - -public.expanded_datasamples -     -[VIEW] - -key -[uuid] - -owner -[varchar(100)] - -channel -[varchar(100)] - -checksum -[varchar(64)] - -creation_date -[timestamp with time zone] - -datamanager_keys -[jsonb] + + +public.expanded_datasamples +     +[VIEW] + +key +[uuid] + +owner +[varchar(100)] + +channel +[varchar(100)] + +checksum +[varchar(64)] + +creation_date +[timestamp with time zone] + +datamanager_keys +[jsonb] - + public.expanded_functions - - -public.expanded_functions -     -[VIEW] - -key -[uuid] - -name -[varchar(100)] - -description_address -[varchar(200)] - -description_checksum -[varchar(64)] - -function_address -[varchar(200)] - -function_checksum -[varchar(64)] - -permissions -[jsonb] - -owner -[varchar(100)] - -creation_date -[timestamp with time zone] - -metadata -[jsonb] - -channel -[varchar(100)] - -status -[function_status] + + +public.expanded_functions +     +[VIEW] + +key +[uuid] + +name +[varchar(100)] + +description_address +[varchar(200)] + +description_checksum +[varchar(64)] + +function_address +[varchar(200)] + +function_checksum +[varchar(64)] + +permissions +[jsonb] + +owner +[varchar(100)] + +creation_date +[timestamp with time zone] + +metadata +[jsonb] + +channel +[varchar(100)] + +status +[function_status] + + + +public.expanded_failure_reports + + +public.expanded_failure_reports +     +[VIEW] + +asset_key +[uuid] + +asset_type +[failed_asset_kind] + +error_type +[varchar(50)] + +logs_address +[varchar(200)] + +logs_checksum +[varchar(64)] + +creation_date +[timestamp with time zone] + +owner +[varchar(100)] + +channel +[varchar(100)]