Ver a proveniência

add unique index on TrustedDevice(account, device)

tags/v0.15.5
Jonathan Cobb há 4 anos
ascendente
cometimento
c326c2bc3c
1 ficheiros alterados com 4 adições e 1 eliminações
  1. +4
    -1
      bubble-server/src/main/java/bubble/model/account/TrustedClient.java

+ 4
- 1
bubble-server/src/main/java/bubble/model/account/TrustedClient.java Ver ficheiro

@@ -26,7 +26,10 @@ import static org.cobbzilla.wizard.model.crypto.EncryptedTypes.ENC_PAD;

@Entity @ECType(root=true) @Slf4j
@NoArgsConstructor @Accessors(chain=true)
@ECIndexes({@ECIndex(unique=true, of={"account", "trustId"})})
@ECIndexes({
@ECIndex(unique=true, of={"account", "trustId"}),
@ECIndex(unique=true, of={"account", "device"})
})
public class TrustedClient extends IdentifiableBase implements HasAccount {

@ECSearchable @ECField(index=10)


Carregando…
Cancelar
Guardar