Added message database support in repo
Started on history fetching with getMapping
This commit is contained in:
parent
82229cb32b
commit
f2d3c948bf
4 changed files with 35 additions and 9 deletions
|
@ -1,9 +1,22 @@
|
|||
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;
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public String getFrom() {
|
||||
return this.from;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue