Refactoring start
This commit is contained in:
44
src/main/java/com/pmu/betengine/model/User.java
Normal file
44
src/main/java/com/pmu/betengine/model/User.java
Normal file
@@ -0,0 +1,44 @@
|
||||
package com.pmu.betengine.model;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.UUID;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.GeneratedValue;
|
||||
import jakarta.persistence.Id;
|
||||
import jakarta.persistence.Table;
|
||||
|
||||
@Entity
|
||||
@Table(name = "users")
|
||||
public class User {
|
||||
|
||||
@Id
|
||||
@GeneratedValue
|
||||
private UUID id;
|
||||
|
||||
private String nom;
|
||||
private String prenom;
|
||||
private String identifiant;
|
||||
private String matriculeAgent;
|
||||
|
||||
@Column(name = "role_id")
|
||||
private UUID roleId;
|
||||
|
||||
private Boolean restrictionConnexion;
|
||||
private Boolean restrictionAutomatique;
|
||||
|
||||
private Integer nombreIpAutorise;
|
||||
private Integer nombreIpAutoAutorise;
|
||||
|
||||
private String statut;
|
||||
|
||||
@Column(name = "derniere_connexion")
|
||||
private LocalDateTime derniereConnexion;
|
||||
|
||||
@Column(name = "created_at")
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
@Column(name = "updated_at")
|
||||
private LocalDateTime updatedAt;
|
||||
}
|
||||
Reference in New Issue
Block a user