Skip to content

Commit

Permalink
chore: update visualize_data_model.py
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
  • Loading branch information
nhoening committed Jul 17, 2023
1 parent 4c61494 commit 6fc431f
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions flexmeasures/data/scripts/visualize_data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,44 +27,34 @@

DEBUG = True

# List here modules which should be scanned for the UML version
RELEVANT_MODULES = [
"task_runs",
"data_sources",
"markets",
"assets",
"generic_assets",
"weather",
"user",
"time_series",
]

# List here tables in the data model which are currently relevant
RELEVANT_TABLES = [
"role",
"account",
"account_role",
"fm_user",
"data_source",
"latest_task_run",
]
LEGACY_TABLES = [
"asset",
"asset_type",
"market",
"market_type",
"power",
"price",
"weather",
"weather_sensor",
"weather_sensor_type",
]
RELEVANT_TABLES_NEW = [
"generic_asset_type",
"generic_asset",
"sensor",
"timed_belief",
"timed_value",
]
IGNORED_TABLES = ["alembic_version", "roles_users", "roles_accounts"]

# The following two lists are useful for transition periods, when some tables are legacy, and some have been added.
# This allows you to show the old model as well as the future model.
LEGACY_TABLES = []
RELEVANT_TABLES_NEW = []


def check_sqlalchemy_schemadisplay_installation():
Expand Down

0 comments on commit 6fc431f

Please sign in to comment.