From 0eacb12c73279b5840eea3ffd5c47135bde1bd8a Mon Sep 17 00:00:00 2001 From: ramforth Date: Sun, 16 Nov 2025 19:34:19 +0100 Subject: [PATCH] Update: main.py and models.py had incorrect imports --- main.py | 4 ++-- models.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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"