Add initial db schema from autogenerated alembic

This commit is contained in:
yiorgos marinellis 2020-05-04 21:40:17 +02:00
parent 1beb5964ba
commit 0849d39d5d
2 changed files with 855 additions and 1 deletions

View File

@ -25,7 +25,8 @@ fileConfig(config.config_file_name)
# target_metadata = mymodel.Base.metadata
# target_metadata = None
from ereuse_devicehub.db import db
target_metadata = declarative_base().metadata
from ereuse_devicehub.resources.models import Thing
target_metadata = Thing.metadata
# other values from the config, defined by the needs of env.py,
# can be acquired:

File diff suppressed because one or more lines are too long