added db migrations and group support, still problems with json serialization

This commit is contained in:
Tobias Kurze
2019-04-02 16:10:46 +02:00
parent 024f063bea
commit 8cf8632c8c
10 changed files with 295 additions and 10 deletions

View File

@@ -15,6 +15,6 @@ def init_db():
# import all modules here that might define models so that
# they will be registered properly on the metadata. Otherwise
# you will have to import them first before calling init_db()
import app.models.user
import app.models.lock
import backend.app.models.user
import backend.app.models.lock
metadata.create_all(bind=engine)