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; }
}
