added model indexes

This commit is contained in:
Prince
2026-06-12 22:33:58 +02:00
parent c6ce11026c
commit 573e4b154c
20 changed files with 352 additions and 36 deletions

View File

@@ -12,6 +12,10 @@ import java.util.HashSet;
import java.util.Set;
@Entity
@Table(name = "charge", indexes = {
@Index(name = "idx_charge_currency", columnList = "currency"),
@Index(name = "idx_charge_label_currency", columnList = "charge_label, currency"),
})
@Getter
@Setter
@Builder
@@ -32,6 +36,7 @@ public class Charge extends BaseEntity {
private BigDecimal maximumAmount;
@Enumerated(EnumType.STRING)
@Column(name = "charge_label")
private ChargeLabelEnum chargeLabel;
@Enumerated(EnumType.STRING)
private CurrencyType currency;