Updated Apis, Code, Configurations for Notification.
This commit is contained in:
@@ -2,6 +2,8 @@ package net.gepafin.tendermanagement.entities;
|
||||
|
||||
import jakarta.persistence.Column;
|
||||
import jakarta.persistence.Entity;
|
||||
import jakarta.persistence.JoinColumn;
|
||||
import jakarta.persistence.ManyToOne;
|
||||
import jakarta.persistence.Table;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -11,23 +13,27 @@ import lombok.Data;
|
||||
public class NotificationEntity extends BaseEntity {
|
||||
|
||||
@Column(name = "USER_ID")
|
||||
Long userId;
|
||||
private Long userId;
|
||||
|
||||
@Column(name = "MESSAGE")
|
||||
String message;
|
||||
private String message;
|
||||
|
||||
@Column(name = "TITLE")
|
||||
private String title;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
String status;
|
||||
private String status;
|
||||
|
||||
@Column(name = "IS_DELETED")
|
||||
Boolean isDeleted;
|
||||
private Boolean isDeleted;
|
||||
|
||||
@Column(name = "NOTIFICATION_TYPE")
|
||||
String notificationType;
|
||||
private String notificationType;
|
||||
|
||||
@Column(name = "REDIRECT_LINK")
|
||||
String redirectLink;
|
||||
private String redirectLink;
|
||||
|
||||
@Column(name = "USER_WITH_COMPANY_ID")
|
||||
Long userWithCompanyId;
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "USER_WITH_COMPANY_ID")
|
||||
private UserWithCompanyEntity userWithCompany;
|
||||
}
|
||||
|
||||
@@ -11,10 +11,13 @@ import lombok.Data;
|
||||
public class NotificationTypeEntity extends BaseEntity {
|
||||
|
||||
@Column(name = "NOTIFICATION_NAME")
|
||||
String notificationName;
|
||||
private String notificationName;
|
||||
|
||||
@Column(name = "JSON_TEMPLATE")
|
||||
String jsonTemplate;
|
||||
private String jsonTemplate;
|
||||
|
||||
@Column(name = "TITLE")
|
||||
private String title;
|
||||
|
||||
@Column(name="IS_DELETED")
|
||||
private Boolean isDeleted;
|
||||
|
||||
Reference in New Issue
Block a user