Skip to content

Commit

Permalink
feat: Initialize database and create tables in models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcerrejon committed Nov 18, 2024
1 parent 5adab08 commit d76d5a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tasks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

from src.database import Database

Base = Database().Base
database = Database()
database.create_tables()
Base = database.Base


class Task(Base):
Expand Down

0 comments on commit d76d5a2

Please sign in to comment.