chore(): improve cart operations + Mikro orm 6.4.16 (#13712)

* chore(): Mikro orm 6.4.16

* Create small-ghosts-draw.md

* update config

* update config

* fix delete

* update config

* update workflows

* order improvements

* test pricing quuery

* test pricing quuery

* configurable connection options

* configurable connection options

* configurable connection options

* Update packages/modules/pricing/src/models/price.ts

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Adrien de Peretti
2025-10-10 08:58:19 +02:00
committed by GitHub
parent 76bf364440
commit c54c5ed6de
23 changed files with 481 additions and 288 deletions

View File

@@ -19,6 +19,11 @@ const PriceListRule = model
on: ["attribute"],
where: "deleted_at IS NULL",
},
{
on: ["value"],
where: "deleted_at IS NULL",
type: "gin",
},
])
export default PriceListRule

View File

@@ -26,5 +26,11 @@ const PriceList = model
.cascades({
delete: ["price_list_rules", "prices"],
})
.indexes([
{
on: ["id", "status", "starts_at", "ends_at"],
where: "deleted_at IS NULL AND status = 'active'",
},
])
export default PriceList

View File

@@ -30,6 +30,10 @@ const PriceRule = model
on: ["operator", "value"],
where: "deleted_at IS NULL",
},
{
on: ["attribute", "value", "price_id"],
where: "deleted_at IS NULL",
},
])
export default PriceRule