Add models.py

main
no 2025-05-26 08:27:45 +00:00
parent 7aa4373be2
commit 18cff6c1eb
1 changed files with 9 additions and 0 deletions

9
models.py Normal file
View File

@ -0,0 +1,9 @@
from db import Base
from sqlalchemy import Column, Integer, String
class User(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True, index=True)
username = Column(String(50), unique=True, nullable=False)
email = Column(String(100), unique=True, nullable=False)