make index unique
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 1m1s
Some checks failed
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Failing after 1m1s
This commit is contained in:
parent
de572779e4
commit
9af387ca56
@ -19,7 +19,7 @@ import java.util.List;
|
|||||||
* A score for an account.
|
* A score for an account.
|
||||||
*/
|
*/
|
||||||
@Document
|
@Document
|
||||||
@CompoundIndex(name = "accountId_leaderboardId", def = "{'accountId' : 1, 'leaderboardId' : 1}")
|
@CompoundIndex(name = "accountId_leaderboardId", def = "{'accountId' : 1, 'leaderboardId' : 1}", unique = true)
|
||||||
@AllArgsConstructor @Getter @Setter
|
@AllArgsConstructor @Getter @Setter
|
||||||
public class Score {
|
public class Score {
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user