Skip to content

Commit 39764fc

Browse files
committed
Merge branch 'feat/database' of https://github.com/Geode-solutions/OpenGeodeWeb-Back into feat/database
2 parents fd1967a + a85d868 commit 39764fc

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/opengeodeweb_back/data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from .database import database, Base
44
import uuid
55

6+
67
class Data(Base):
78
__tablename__ = "datas"
89

src/opengeodeweb_back/database.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@
44

55
DATABASE_FILENAME = "project.db"
66

7+
78
class Base(DeclarativeBase):
89
pass
910

11+
1012
database = SQLAlchemy(model_class=Base)
1113

14+
1215
def initialize_database(app: Flask) -> SQLAlchemy:
1316
database.init_app(app)
1417
with app.app_context():

0 commit comments

Comments
 (0)