added model indexes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user