Backend migrated to springboot from firebase

This commit is contained in:
2026-06-30 12:24:30 +05:30
parent 6c2de40239
commit 31fcc27658
44 changed files with 3055 additions and 1 deletions

View File

@@ -0,0 +1,48 @@
package com.rit.ems.model;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
@Entity
@Table(name = "ems_announcements")
public class Announcement {
@Id
private String id;
private String title;
@Column(columnDefinition = "TEXT")
private String content;
private String timestamp;
@Column(name = "sender_role")
private String senderRole;
public Announcement() {}
public Announcement(String id, String title, String content, String timestamp, String senderRole) {
this.id = id;
this.title = title;
this.content = content;
this.timestamp = timestamp;
this.senderRole = senderRole;
}
public String getId() { return id; }
public void setId(String id) { this.id = id; }
public String getTitle() { return title; }
public void setTitle(String title) { this.title = title; }
public String getContent() { return content; }
public void setContent(String content) { this.content = content; }
public String getTimestamp() { return timestamp; }
public void setTimestamp(String timestamp) { this.timestamp = timestamp; }
public String getSenderRole() { return senderRole; }
public void setSenderRole(String senderRole) { this.senderRole = senderRole; }
}