create basic user table

this will allow users to sign up and submit reports
This commit is contained in:
Jack Case
2025-10-17 20:29:14 +00:00
parent 84ba67a3f0
commit 4931a785a1
2 changed files with 51 additions and 1 deletions

View File

@@ -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)