package de.oaa.xxx.games.chastity.keyholder;

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

import java.time.LocalDateTime;
import java.util.UUID;

import de.oaa.xxx.games.chastity.unlock.TempOpeningReason;

@Getter
@Setter
@Entity
@Table(name = "keyholder_notification")
public class KeyholderNotificationEntity {

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

    @Column(nullable = false)
    private UUID lockId;

    @Column(nullable = false)
    private UUID lockeeId;

    @Column
    private UUID keyholderUserId;

    @Column(nullable = false)
    private LocalDateTime violationTime;

    @Column(nullable = false)
    private long overtimeMinutes;

    @Column(nullable = false)
    private boolean notifiedKeyholder = false;
    
    @Enumerated(EnumType.STRING)
    @Column(nullable = false)
    private TempOpeningReason openingReason;
}
