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

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

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

@Getter
@Setter
@Entity
@Table(name = "lockee_invitation")
public class LockeeInvitationEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.UUID)
    @Column
    @Setter(lombok.AccessLevel.NONE)
    private UUID invitationId;

    @Column(nullable = false)
    private UUID lockId;

    @Column(nullable = false)
    private UUID lockeeUserId;

    @Column(nullable = false)
    private UUID keyholderUserId;

    @Column(nullable = false, unique = true)
    private String token;

    @Column(nullable = false)
    private LocalDateTime createdAt;

    @Column(nullable = false)
    private boolean detailsVisible = true;
}
