Closed jerber closed 4 years ago
class Model(BaseModel): uid: UUID = Field(default_factory=uuid4) updated: datetime = Field(default_factory=datetime.utcnow)
https://pydantic-docs.helpmanual.io/usage/models/#orm-mode-aka-arbitrary-class-instances
done
class Model(BaseModel): uid: UUID = Field(default_factory=uuid4) updated: datetime = Field(default_factory=datetime.utcnow)
https://pydantic-docs.helpmanual.io/usage/models/#orm-mode-aka-arbitrary-class-instances