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
31 lines
707 B
package org.ros.chatto.model;
|
|
|
|
import java.io.Serializable;
|
|
import java.time.Instant;
|
|
|
|
import javax.persistence.Column;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
import javax.persistence.Table;
|
|
|
|
import lombok.Data;
|
|
|
|
@Data
|
|
@Entity
|
|
@Table(name = "tokens")
|
|
public class UserToken implements Serializable {
|
|
/**
|
|
*
|
|
*/
|
|
private static final long serialVersionUID = -201675581183933341L;
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
@Column(name = "token_id")
|
|
private int tokenID;
|
|
private String userName;
|
|
private String tokenContent;
|
|
private String role;
|
|
private Instant creationTime;
|
|
}
|