Implement a email requirement

This commit is contained in:
Colin Bassett 2025-02-22 10:23:43 -05:00
parent e7a25eafc0
commit a5231bf90e
2 changed files with 3 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
.venv/ .venv/
__pycache__/ __pycache__/
.ropeproject/ .ropeproject/
database.db
.idea/

View File

@ -15,6 +15,7 @@ class User(SQLModel, table=True):
id: int = Field(default=None, primary_key=True) id: int = Field(default=None, primary_key=True)
name: str = Field(index=True) name: str = Field(index=True)
age: int age: int
email: str = Field(index=True)
password: str password: str
# SQLModel stuff # SQLModel stuff