package ru.vyatsu.qr_access_admin.qr.entity;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Entity
@Table(name = "qrs")
@Getter
@Setter
public class QrEntity {

    @Id
    @Column
    @GeneratedValue(strategy = GenerationType.UUID)
    private String keyCode;

    @Column
    private String doorId;

    @Column
    private LocalDateTime startDateTime;

    @Column
    private LocalDateTime endDateTime;
}
