Done ticket GEPAFINBE-92

This commit is contained in:
nisha
2024-11-15 19:55:24 +05:30
parent 526a831357
commit 7485cead14
26 changed files with 257 additions and 164 deletions

View File

@@ -33,5 +33,22 @@ public class EmailLogEntity extends BaseEntity{
@Column(name = "error_message", columnDefinition = "TEXT")
private String errorMessage;
@Column(name = "email_service_response")
private String emailServiceResponse;
@Column(name = "email_service_type")
private String emailServiceType;
@Column(name = "recipient_emails")
private String recipientEmails;
@Column(name = "user_id")
private Long userId;
@Column(name = "entity_id")
private Long entityId;
@Column(name = "entity_type")
private String entityType;
}

View File

@@ -1,27 +0,0 @@
package net.gepafin.tendermanagement.entities;
import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
@Entity
@Data
@Table(name = "email_tracking")
public class EmailTrackingEntity extends BaseEntity{
@ManyToOne
@JoinColumn(name = "email_log_id", nullable = false, foreignKey = @ForeignKey(name = "fk_email_log_id"))
private EmailLogEntity emailLog;
@ManyToOne
@JoinColumn(name = "user_id", nullable = false, foreignKey = @ForeignKey(name = "fk_user_id"))
private UserEntity user;
@Column(name = "entity_id", nullable = false)
private Long entityId;
@Column(name = "entity_type", nullable = false, length = 255)
private String entityType;
}

View File

@@ -35,6 +35,9 @@ public class SystemEmailTemplatesEntity extends BaseEntity {
@Column(name ="IS_DELETED", nullable = false)
private Boolean isDeleted = false;
@Column(name = "email_scenario")
private String emailScenario;
public enum SystemEmailTemplatesEntityTypeEnum {