Gorka CesiumG
Convex Community3y ago
19 replies
Gorka Cesium

Persisting business logic params in the DB

Is there any best practice on how to save rules in a database? For example i would like to save the rules on how to calculate the profit margin of a window. The default profit would be 50% . If it is big dimensions them it would be 70%. This is a simple case but how could i persist this in a DB? I would like to be able to swap this rules when doing quote estimates since i need to respect the prices of old quotes when they just need slight modifications.
Was this page helpful?