create basic user table
this will allow users to sign up and submit reports
This commit is contained in:
@@ -22,4 +22,12 @@ class Path(SQLModel, table=True):
|
||||
path: str
|
||||
|
||||
domain_id: int = Field(foreign_key="domain.id")
|
||||
domain: Domain = Relationship(back_populates="paths")
|
||||
domain: Domain = Relationship(back_populates="paths")
|
||||
|
||||
class User(SQLModel, table=True):
|
||||
id: int | None = Field(default=None, primary_key=True)
|
||||
email: str = Field(index=True, unique=True)
|
||||
password_hash: str
|
||||
salt: str
|
||||
|
||||
email_verified: bool = Field(default=False)
|
||||
|
||||
Reference in New Issue
Block a user