A declarative, in-place rules engine that runs inside your app's own database transaction. Author rules in JSON or a visual builder — no code, and no schema changes, ever.
{
"id": "order_total",
"type": "formula",
"target_model": "Order",
"output_field": "total",
"expression": "sum(items.price * items.quantity)"
},
{
"id": "vip_reward",
"type": "inference",
"target_model": "Order",
"condition": "total > 1000 and user.tier == 'gold'",
"actions": [
{ "create_object": "RewardPoints",
"properties": { "points": 500 } }
]
}
eval().and/or for inference and constraint conditions.relation.column for expressions, targets and operands.See how declarative rules fit your data model.