10 lines
274 B
Python
10 lines
274 B
Python
from uuid import UUID, uuid4
|
|
|
|
from sqlmodel import Field, SQLModel
|
|
|
|
|
|
class User(SQLModel, table=True):
|
|
id: UUID = Field(default_factory=lambda: uuid4(), primary_key=True)
|
|
email: str = Field(unique=True, nullable=False)
|
|
password_hash: str = Field(nullable=False)
|