diff --git a/src/main/java/de/uoc/dh/idh/autodone/entities/TokenEntity.java b/src/main/java/de/uoc/dh/idh/autodone/entities/TokenEntity.java index 3a0a838..6544f9b 100644 --- a/src/main/java/de/uoc/dh/idh/autodone/entities/TokenEntity.java +++ b/src/main/java/de/uoc/dh/idh/autodone/entities/TokenEntity.java @@ -23,7 +23,7 @@ @Data() @Entity() @JsonNaming(SnakeCaseStrategy.class) -@Table(uniqueConstraints = { @UniqueConstraint(columnNames = { "server", "username" }) }) +@Table(uniqueConstraints = { @UniqueConstraint(columnNames = { "server_uuid", "username" }) }) public class TokenEntity { @Id()