LocationModel
Version: v2.1.0
Stored entity
Partition key pk, sort key sk
Overview
Location model
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
pk | str | ✅ | — | — |
sk | str | ✅ | — | — |
type | str | ✅ | — | — |
tenant_id | str | ✅ | — | — |
location_id | str | ✅ | — | — |
location_name | str | ✅ | — | — |
location_tag | List[str] | ✅ | — | — |
is_in_yard | bool | ✅ | — | — |
created_at | str | ✅ | — | — |
updated_at | str | ✅ | — | — |
meta_data | dict | ❌ | — | — |
APIs / Triggers
| Trigger | Endpoint / Source | Detail | Handler |
|---|---|---|---|
| API | POST /newlocation/ | — | src/location_post.py |
| API | DELETE /newlocation/ | — | src/location_delete.py |
| Stream | DynamoDB stream | table items where type = LOCATION | src/location_algolia_sync.py |
| Stream | DynamoDB stream | table items where type = LOCATION | src/history/location_history_process.py |
| API | GET /newlocation/history | — | src/history/location_history_get.py |
| Event | EventBridge | LocationSelfHealRequested | src/location_self_heal.py |
Change history
v2.1.0 · 2026-06-04 · Cian (shared account) · c2d767f57
Codex worktree snapshot: startup-cleanup
- Added optional field
meta_data.
v2.0.0 · 2025-03-31 · Cian (shared account) · de01d8e47
location
- Field
is_in_yardtype changed: Optional[bool] → bool (breaking). - Field
is_in_yardbecame required (breaking). - Field
location_idtype changed: Optional[str] → str (breaking). - Field
location_idbecame required (breaking). - Field
location_nametype changed: Optional[str] → str (breaking). - Field
location_namebecame required (breaking). - Field
location_tagtype changed: Optional[list] → List[str] (breaking). - Field
location_tagbecame required (breaking).
v1.0.0 · 2025-03-15 · Olaniyi Ajayi · 338416124
fx
- Initial version.
Generated from
dismantly-backend/Microservices/Location/dependencies/models.py. Do not edit by hand.