Spaces:
Runtime error
Runtime error
| """ | |
| Data models for UOM sync operations. | |
| """ | |
| # Field mapping from MongoDB to PostgreSQL | |
| UOM_FIELD_MAPPING = { | |
| "uom_group_id": "uom_group_id", | |
| "uom_group_code": "uom_group_code", | |
| "name": "name", | |
| "base_unit": "base_unit", | |
| "status": "status", | |
| "units": "units", | |
| "created_at": "created_at", | |
| "updated_at": "updated_at", | |
| } | |
| # Required fields for UOM groups | |
| UOM_REQUIRED_FIELDS = [ | |
| "uom_group_id", | |
| "name", | |
| "base_unit", | |
| ] | |
| # UOM collection name in MongoDB | |
| SCM_UOM_COLLECTION = "scm_uom_group_ref" | |