wip: LoggerService
This commit is contained in:
45
src/main/java/fr/titionfire/ffsaf/data/model/LogModel.java
Normal file
45
src/main/java/fr/titionfire/ffsaf/data/model/LogModel.java
Normal file
@@ -0,0 +1,45 @@
|
||||
package fr.titionfire.ffsaf.data.model;
|
||||
|
||||
import io.quarkus.runtime.annotations.RegisterForReflection;
|
||||
import jakarta.persistence.*;
|
||||
import lombok.*;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@RegisterForReflection
|
||||
|
||||
@Entity
|
||||
@Table(name = "log")
|
||||
public class LogModel {
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
Long id;
|
||||
|
||||
String subject;
|
||||
|
||||
Date dateTime;
|
||||
|
||||
ActionType action;
|
||||
|
||||
ObjectType object;
|
||||
|
||||
Long target_id;
|
||||
|
||||
String target_name;
|
||||
|
||||
String message;
|
||||
|
||||
public enum ActionType {
|
||||
ADD, REMOVE, UPDATE
|
||||
}
|
||||
|
||||
public enum ObjectType {
|
||||
Membre, Affiliation, Licence, Club, Competition, Register
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user