package com.example.nto.model.entity;

import com.example.nto.model.EntryType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.time.LocalDateTime;

@Entity(name = "entry")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Entry {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;

    private long value;

    @Enumerated(EnumType.STRING)
    private EntryType type;

    private LocalDateTime dateTime;

    private String login;
}
