Added logging mechanism for user actions.
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
package net.gepafin.tendermanagement.entities;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "user_action")
|
||||
public class UserActionEntity extends BaseEntity {
|
||||
|
||||
@Column(name = "USER_ID")
|
||||
private Long userId;
|
||||
|
||||
@Column(name = "ACTION_TYPE")
|
||||
private String actionType;
|
||||
|
||||
@Column(name = "REQUEST_BODY")
|
||||
private String requestBody;
|
||||
|
||||
@Column(name = "LOGIN_ATTEMPT_ID")
|
||||
private Long loginAttemptId;
|
||||
|
||||
@Column(name = "IP_ADDRESS")
|
||||
private String ipAddress;
|
||||
|
||||
@Column(name = "METHOD_TYPE")
|
||||
private String methodType;
|
||||
|
||||
@Column(name = "HUB_ID")
|
||||
private Long hubId;
|
||||
|
||||
@Column(name = "URL")
|
||||
private String url;
|
||||
|
||||
@Column(name = "ACTION_CONTEXT")
|
||||
private String actionContext;
|
||||
|
||||
@Column(name = "RESPONSE")
|
||||
private Object response;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user