9 lines
273 B
Python
9 lines
273 B
Python
from sqlmodel import SQLModel, Field
|
|
from uuid import uuid4, UUID
|
|
|
|
|
|
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)
|