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:
committed by
GitHub
parent
76bf364440
commit
c54c5ed6de
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user