wrongmove/crawler/models/user.py

9 lines
236 B
Python
Raw Normal View History

2025-06-11 21:08:11 +00:00
from pydantic import EmailStr
from sqlmodel import SQLModel, Field
class User(SQLModel, table=True):
id: int = Field(primary_key=True)
email: EmailStr = Field(index=True, unique=True)
password: str = Field(nullable=False)