11 lines
277 B
Python
11 lines
277 B
Python
from sqlmodel import Field, SQLModel
|
|
|
|
|
|
class User(SQLModel, table=True):
|
|
__tablename__ = "users"
|
|
__table_args__ = {"schema": "auth"}
|
|
|
|
id: int | None = Field(default=None, primary_key=True)
|
|
username: str = Field(unique=True, index=True)
|
|
hashed_password: str
|