Spaces:
Sleeping
Sleeping
Download schemas/operation_log.py from hsailorj/ymt-python: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/hsailorj/ymt-python/resolve/main/schemas/operation_log.py
- Command line
-
hf download hf://spaces/hsailorj/ymt-python/schemas/operation_log.py
-
curl -L -o operation_log.py https://huggingface.co/spaces/hsailorj/ymt-python/resolve/main/schemas/operation_log.py
549 Bytes
| from pydantic import BaseModel | |
| from datetime import datetime | |
| from typing import Optional | |
| class OperationLogBase(BaseModel): | |
| user_id: int | |
| username: str | |
| company_code: Optional[str] = None | |
| module: str | |
| operation_type: str | |
| operation_detail: Optional[str] = None | |
| before_data: Optional[str] = None | |
| after_data: Optional[str] = None | |
| class OperationLogCreate(OperationLogBase): | |
| pass | |
| class OperationLogResponse(OperationLogBase): | |
| id: int | |
| created_at: datetime | |
| class Config: | |
| from_attributes = True | |