Added logging mechanism for user actions.
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
package net.gepafin.tendermanagement.entities;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@Table(name = "version_history")
|
||||
public class VersionHistoryEntity extends BaseEntity {
|
||||
|
||||
@Column(name = "OLD_DATA", columnDefinition = "LONGTEXT")
|
||||
private String oldData;
|
||||
|
||||
@Column(name = "NEW_DATA", columnDefinition = "LONGTEXT")
|
||||
private String newData;
|
||||
|
||||
@Column(name = "TABLE_NAME")
|
||||
private String tableName;
|
||||
|
||||
@Column(name = "ACTION_TYPE")
|
||||
private String actionType;
|
||||
|
||||
@Column(name = "RECORD_ID")
|
||||
private Long recordId;
|
||||
|
||||
@Column(name = "USER_ACTION_ID")
|
||||
private Long userActionId;
|
||||
|
||||
@Column(name = "USER_ID")
|
||||
private Long userId;
|
||||
}
|
||||
Reference in New Issue
Block a user