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.
|
|
package org.ros.chatto.model;
import java.time.Instant;
import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.OneToOne; import javax.persistence.Table;
import lombok.Data;
@Data @Entity @Table(name = "user_sessions") public class UserSession { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int id;
@OneToOne(fetch = FetchType.LAZY) @JoinColumn(name = "user_id") private ChatUser user;
private boolean online;
private int numSessions; private Instant timeStamp; }
|