Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /jdrumgoole_winebox /winebox /models /grape_variety.py
| """Grape variety reference document model.""" | |
| from typing import Optional | |
| from winebox.db import MongoDocument | |
| class GrapeVariety(MongoDocument): | |
| """Grape variety document model representing wine grapes.""" | |
| name: str | |
| color: str # 'red' or 'white' | |
| category: Optional[str] = None # 'international' or 'regional' | |
| origin_country: Optional[str] = None | |
| class Settings: | |
| name = "grape_varieties" | |
| def __repr__(self) -> str: | |
| return f"<GrapeVariety(id={self.id}, name={self.name}, color={self.color})>" | |
Xet Storage Details
- Size:
- 545 Bytes
- Xet hash:
- 07584c76cf6837bde4c85585e14044957bdd91bfad5c0fb55aa2588b7d7a97d1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.