package com.eactive.testmaster.login.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "PT_TOKEN")
public class Token implements Serializable {

    public Token(String tokenValue, String email, LocalDateTime expiresAt) {
        this.tokenValue = tokenValue;
        this.email = email;
        this.expiresAt = expiresAt;
    }

    public Token() {
    }

    @Id
    @Column(name = "TOKEN")
    private String tokenValue;

    private String email;

    private LocalDateTime expiresAt;

    public String getTokenValue() {
        return tokenValue;
    }

    public void setTokenValue(String tokenValue) {
        this.tokenValue = tokenValue;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public LocalDateTime getExpiresAt() {
        return expiresAt;
    }

    public void setExpiresAt(LocalDateTime expiresAt) {
        this.expiresAt = expiresAt;
    }
}
