fix(): product image missing index (#13466)

**What**
Add product image imssing index
This commit is contained in:
Adrien de Peretti
2025-09-10 19:01:04 +02:00
committed by GitHub
parent 8e849074e4
commit 368c1d1e17
4 changed files with 86 additions and 0 deletions

View File

@@ -21,6 +21,24 @@ const ProductImage = model
unique: false,
where: "deleted_at IS NULL",
},
{
name: "IDX_product_image_rank",
on: ["rank"],
unique: false,
where: "deleted_at IS NULL",
},
{
name: "IDX_product_image_url_rank_product_id",
on: ["url", "rank", "product_id"],
unique: false,
where: "deleted_at IS NULL",
},
{
name: "IDX_product_image_rank_product_id",
on: ["rank", "product_id"],
unique: false,
where: "deleted_at IS NULL",
},
])
export default ProductImage