chore(): Further improve promotions computation (#13556)

* chore(): Further improve promotions

* chore(): Further improve promotions

* chore(): Further improve promotions

* chore(): Further improve promotions

* chore(): Further improve promotions

* Create lazy-lemons-occur.md

* chore(): Further improve promotions

* WIP

* fix

* improve:

* fix attribute tests

* fix tests

* union
This commit is contained in:
Adrien de Peretti
2025-09-19 21:34:35 +02:00
committed by GitHub
parent cb716856b6
commit 4c1c1dd4c0
12 changed files with 431 additions and 161 deletions
@@ -36,6 +36,12 @@ const PromotionRule = model
unique: false,
where: "deleted_at IS NULL",
},
{
name: "IDX_promotion_rule_attribute_operator_id",
on: ["operator", "attribute", "id"],
unique: false,
where: "deleted_at IS NULL",
},
])
.cascades({
delete: ["values"],