- Introduced SQLAlchemy models for user management, project management, financial inputs, and pricing configuration. - Created navigation metadata tables for sidebar and top-level menus. - Cataloged enumerations used across ORM models and Pydantic schemas. - Documented Pydantic schemas for API request/response validation, including authentication, project, scenario, import, and export schemas. - Added monitoring and auditing tables for performance metrics and import/export logs. - Updated security documentation to reflect changes in data model references.
2.3 KiB
2.3 KiB
Enumerations
This page catalogs the enumerations shared by Calminer ORM models and Pydantic schemas. The entries mirror the original content from 02_data_model.md so enum updates can be maintained independently of the broader data model reference.
MiningOperationType
Supported mining operation categories.
OPEN_PIT: Open pit miningUNDERGROUND: Underground miningIN_SITU_LEACH: In-situ leachingPLACER: Placer miningQUARRY: Quarry operationsMOUNTAINTOP_REMOVAL: Mountaintop removalOTHER: Other operations
ScenarioStatus
Lifecycle states for project scenarios.
DRAFT: Draft statusACTIVE: Active statusARCHIVED: Archived status
FinancialCategory
Enumeration of cost and revenue classifications.
CAPITAL_EXPENDITURE: Capital expendituresOPERATING_EXPENDITURE: Operating expendituresREVENUE: RevenueCONTINGENCY: ContingencyOTHER: Other
DistributionType
Supported stochastic distribution families for simulations.
NORMAL: Normal distributionTRIANGULAR: Triangular distributionUNIFORM: Uniform distributionLOGNORMAL: Lognormal distributionCUSTOM: Custom distribution
ResourceType
Primary consumables and resources used in mining operations.
DIESEL: Diesel fuelELECTRICITY: Electrical powerWATER: Process waterEXPLOSIVES: Blasting agentsREAGENTS: Processing reagentsLABOR: Direct laborEQUIPMENT_HOURS: Equipment operating hoursTAILINGS_CAPACITY: Tailings storage
CostBucket
Granular cost buckets aligned with project accounting.
CAPITAL_INITIAL: Initial capitalCAPITAL_SUSTAINING: Sustaining capitalOPERATING_FIXED: Fixed operating costsOPERATING_VARIABLE: Variable operating costsMAINTENANCE: Maintenance costsRECLAMATION: Reclamation costsROYALTIES: RoyaltiesGENERAL_ADMIN: General and administrative
StochasticVariable
Domain variables that typically require probabilistic modelling.
ORE_GRADE: Ore grade variabilityRECOVERY_RATE: Metallurgical recoveryMETAL_PRICE: Commodity priceOPERATING_COST: Operating cost per tonneCAPITAL_COST: Capital costDISCOUNT_RATE: Discount rateTHROUGHPUT: Plant throughput
Refer back to the data model overview when choosing the appropriate enum for new features.