Commit 0b1c4a22 authored by Ali's avatar Ali

add notification models

parent 7622c82c
package com.ali.notificationsvc.models;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import java.time.LocalDateTime;
import java.util.Date;
@Entity
public class Notification {
@Id
private int id;
private int jobId;
private int companyId;
private int jobseekerId;
private String details;
private boolean isRead;
private boolean toCompany;
private LocalDateTime createdAt;
public Notification(int id, int jobId, int companyId, int jobseekerId, String details, boolean isRead, boolean toCompany, LocalDateTime createdAt) {
this.id = id;
this.jobId = jobId;
this.companyId = companyId;
this.jobseekerId = jobseekerId;
this.details = details;
this.isRead = isRead;
this.toCompany = toCompany;
this.createdAt = createdAt;
}
public Notification() {
}
}
spring.application.name=notificationsvc
spring.cloud.config.import-check.enabled=false
server.port=8090
spring.datasource.url=jdbc:mysql://localhost:3306/notificationSVCDB
spring.datasource.username=root
spring.datasource.password=ali123
spring.jpa.hibernate.ddl-auto=update
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment