feat(medusa): Improve prices flow (#3703)

This commit is contained in:
Adrien de Peretti authored and GitHub committed 2023-05-18 08:55:28 +02:00
1 parent 186b7d2773
commit ed382f2ee5
26 files changed
+1079 -780

No files matched your search

+2 -2
View File
@@ -43,7 +43,7 @@ export class MoneyAmount extends SoftDeletableEntity {
@JoinColumn({ name: "price_list_id" })
price_list: PriceList | null
@Index()
@Index('idx_money_amount_variant_id')
@Column({ nullable: true })
variant_id: string
@@ -53,7 +53,7 @@ export class MoneyAmount extends SoftDeletableEntity {
@JoinColumn({ name: "variant_id" })
variant: ProductVariant
@Index()
@Index('idx_money_amount_region_id')
@Column({ nullable: true })
region_id: string
@@ -18,7 +18,7 @@ export class ProductOptionValue extends SoftDeletableEntity {
@Column()
value: string
@Index()
@Index('idx_product_option_value_option_id')
@Column()
option_id: string
@@ -26,7 +26,7 @@ export class ProductOptionValue extends SoftDeletableEntity {
@JoinColumn({ name: "option_id" })
option: ProductOption
@Index()
@Index('idx_product_option_value_variant_id')
@Column()
variant_id: string