A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
707 B

  1. package org.ros.chatto.model;
  2. import java.io.Serializable;
  3. import java.time.Instant;
  4. import javax.persistence.Column;
  5. import javax.persistence.Entity;
  6. import javax.persistence.GeneratedValue;
  7. import javax.persistence.GenerationType;
  8. import javax.persistence.Id;
  9. import javax.persistence.Table;
  10. import lombok.Data;
  11. @Data
  12. @Entity
  13. @Table(name = "tokens")
  14. public class UserToken implements Serializable {
  15. /**
  16. *
  17. */
  18. private static final long serialVersionUID = -201675581183933341L;
  19. @Id
  20. @GeneratedValue(strategy = GenerationType.IDENTITY)
  21. @Column(name = "token_id")
  22. private int tokenID;
  23. private String userName;
  24. private String tokenContent;
  25. private String role;
  26. private Instant creationTime;
  27. }