Spaces:
Sleeping
Sleeping
Update db/database.py
Browse files- db/database.py +3 -2
db/database.py
CHANGED
|
@@ -9,9 +9,10 @@ engine = create_engine(
|
|
| 9 |
)
|
| 10 |
|
| 11 |
Session = sessionmaker(bind=engine)
|
|
|
|
| 12 |
Base = declarative_base()
|
| 13 |
|
| 14 |
-
# ---------- MODELS ----------
|
| 15 |
|
| 16 |
class User(Base):
|
| 17 |
__tablename__ = "users"
|
|
@@ -36,7 +37,7 @@ class Template(Base):
|
|
| 36 |
assessment = Column(Text)
|
| 37 |
plan = Column(Text)
|
| 38 |
|
| 39 |
-
# ---------- INIT ----------
|
| 40 |
|
| 41 |
def init_db():
|
| 42 |
Base.metadata.create_all(engine)
|
|
|
|
| 9 |
)
|
| 10 |
|
| 11 |
Session = sessionmaker(bind=engine)
|
| 12 |
+
|
| 13 |
Base = declarative_base()
|
| 14 |
|
| 15 |
+
# ---------------- MODELS ----------------
|
| 16 |
|
| 17 |
class User(Base):
|
| 18 |
__tablename__ = "users"
|
|
|
|
| 37 |
assessment = Column(Text)
|
| 38 |
plan = Column(Text)
|
| 39 |
|
| 40 |
+
# ---------------- INIT ----------------
|
| 41 |
|
| 42 |
def init_db():
|
| 43 |
Base.metadata.create_all(engine)
|