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;
}
