Implement a email requirement
This commit is contained in:
parent
e7a25eafc0
commit
a5231bf90e
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,3 +1,5 @@
|
|||||||
.venv/
|
.venv/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
.ropeproject/
|
.ropeproject/
|
||||||
|
database.db
|
||||||
|
.idea/
|
||||||
|
1
main.py
1
main.py
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user