46 lines
991 B
Java
46 lines
991 B
Java
package me.imsonmia.epqapi.model;
|
|
|
|
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.GeneratedValue;
|
|
import jakarta.persistence.Id;
|
|
import jakarta.persistence.Table;
|
|
|
|
@Entity
|
|
@Table(name = "message")
|
|
public class Message {
|
|
@GeneratedValue
|
|
@Id
|
|
private Long id;
|
|
private String from;
|
|
private String to;
|
|
private String content;
|
|
private Long timestamp;
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
public String getFrom() {
|
|
return this.from;
|
|
}
|
|
public void setFrom(String from) {
|
|
this.from = from;
|
|
}
|
|
public String getTo() {
|
|
return to;
|
|
}
|
|
public void setTo(String to) {
|
|
this.to = to;
|
|
}
|
|
public String getContent() {
|
|
return content;
|
|
}
|
|
public void setContent(String content) {
|
|
this.content = content;
|
|
}
|
|
public Long getTimestamp() {
|
|
return timestamp;
|
|
}
|
|
public void setTimestamp(Long timestamp) {
|
|
this.timestamp = timestamp;
|
|
}
|
|
}
|