Browse Source

Enforce unique constraint on account UUID

tags/v0.10.5
Kristijan Mitrovic 4 years ago
parent
commit
514e0a12c7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bubble-server/src/main/java/bubble/model/bill/AccountPaymentArchived.java

+ 1
- 1
bubble-server/src/main/java/bubble/model/bill/AccountPaymentArchived.java View File

@@ -29,7 +29,7 @@ import static org.cobbzilla.wizard.model.crypto.EncryptedTypes.ENCRYPTED_STRING;
public class AccountPaymentArchived extends IdentifiableBase {

@ECSearchable @ECField(index=10, type=EntityFieldType.opaque_string)
@ECIndex(unique=true) @Column(updatable=false, length=UUID_MAXLEN)
@ECIndex(unique=true) @Column(unique=true, updatable=false, length=UUID_MAXLEN)
@Getter @Setter private String accountUuid;

@ECSearchable @ECField(index=20, type=EntityFieldType.opaque_string)


Loading…
Cancel
Save