diff --git a/main.py b/main.py index 57e279f..3c25d1c 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,7 @@ from fastapi import FastAPI -from . import models -from .database import engine +import models +from database import engine # This line tells SQLAlchemy to create all the tables based on the models # we defined. It will create the `multichat_overlay.db` file with the diff --git a/models.py b/models.py index 7a1923d..e64b077 100644 --- a/models.py +++ b/models.py @@ -1,7 +1,7 @@ from sqlalchemy import Column, Integer, String, Text, ForeignKey from sqlalchemy.orm import relationship -from .database import Base +from database import Base class User(Base): __tablename__ = "users"