-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
P4ADEV-509 Users Operators entities (#34)
- Loading branch information
1 parent
c61d57a
commit d50cd57
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
src/main/java/it/gov/pagopa/payhub/auth/model/Operators.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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<String> roles; | ||
private String organizationIpaCode; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
|
||
} |