diff --git a/src/main/java/it/gov/pagopa/payhub/auth/model/Operators.java b/src/main/java/it/gov/pagopa/payhub/auth/model/Operators.java new file mode 100644 index 00000000..8442bfe3 --- /dev/null +++ b/src/main/java/it/gov/pagopa/payhub/auth/model/Operators.java @@ -0,0 +1,19 @@ +package it.gov.pagopa.payhub.auth.model; + +import lombok.Data; +import org.springframework.data.mongodb.core.mapping.Document; +import org.springframework.data.mongodb.core.mapping.MongoId; + +import java.util.Set; + +@Data +@Document +public class Operators { + + @MongoId + private String operatorId; + private String userId; + private Set roles; + private String organizationIpaCode; + +} diff --git a/src/main/java/it/gov/pagopa/payhub/auth/model/Users.java b/src/main/java/it/gov/pagopa/payhub/auth/model/Users.java new file mode 100644 index 00000000..a28474e1 --- /dev/null +++ b/src/main/java/it/gov/pagopa/payhub/auth/model/Users.java @@ -0,0 +1,21 @@ +package it.gov.pagopa.payhub.auth.model; + +import lombok.Data; +import org.springframework.data.mongodb.core.mapping.Document; +import org.springframework.data.mongodb.core.mapping.MongoId; + +import java.time.LocalDateTime; + +@Data +@Document +public class Users { + + @MongoId + private String userId; + private String iamIssuer; + private String mappedExternalUserId; + private String userCode; + private LocalDateTime lastLogin; + private boolean tosAccepted; + +}