Skip to content

Commit

Permalink
P4ADEV-509 Users Operators entities (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioT90 authored Jun 25, 2024
1 parent c61d57a commit d50cd57
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/main/java/it/gov/pagopa/payhub/auth/model/Operators.java
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;

}
21 changes: 21 additions & 0 deletions src/main/java/it/gov/pagopa/payhub/auth/model/Users.java
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;

}

0 comments on commit d50cd57

Please sign in to comment.