This commit is contained in:
DESKTOP-RTLN3BA\$punk 2024-08-12 00:32:42 -07:00
parent 24f641347d
commit 63146aa9b7
86 changed files with 18766 additions and 0 deletions

14
backend/models.py Normal file
View file

@ -0,0 +1,14 @@
from sqlalchemy import Column, Integer, String
from database import Base
from database import engine
class User(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True, index=True)
username = Column(String, unique=True, index=True)
hashed_password = Column(String)
# Create the database tables if they don't exist
User.metadata.create_all(bind=engine)