From d76d5a2b8a632216a82bb10fcb82468fbba2ccd2 Mon Sep 17 00:00:00 2001 From: Jose Cerrejon Date: Mon, 18 Nov 2024 16:21:05 +0100 Subject: [PATCH] feat: Initialize database and create tables in models.py --- src/tasks/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tasks/models.py b/src/tasks/models.py index c695a2b..16dd740 100644 --- a/src/tasks/models.py +++ b/src/tasks/models.py @@ -2,7 +2,9 @@ from src.database import Database -Base = Database().Base +database = Database() +database.create_tables() +Base = database.Base class Task(Base):