Update: main.py and models.py had incorrect imports
This commit is contained in:
4
main.py
4
main.py
@@ -1,7 +1,7 @@
|
|||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
|
|
||||||
from . import models
|
import models
|
||||||
from .database import engine
|
from database import engine
|
||||||
|
|
||||||
# This line tells SQLAlchemy to create all the tables based on the models
|
# 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
|
# we defined. It will create the `multichat_overlay.db` file with the
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
from sqlalchemy import Column, Integer, String, Text, ForeignKey
|
from sqlalchemy import Column, Integer, String, Text, ForeignKey
|
||||||
from sqlalchemy.orm import relationship
|
from sqlalchemy.orm import relationship
|
||||||
|
|
||||||
from .database import Base
|
from database import Base
|
||||||
|
|
||||||
class User(Base):
|
class User(Base):
|
||||||
__tablename__ = "users"
|
__tablename__ = "users"
|
||||||
|
|||||||
Reference in New Issue
Block a user