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

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

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

@Getter
@Setter
@Entity
@Table(name = "keyholder_invitation")
public class KeyholderInvitationEntity {

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

    @Column(nullable = false)
    private UUID lockId;

    @Column(nullable = false)
    private UUID keyholderUserId;

    @Column
    private UUID lockeeUserId;

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

    @Column(nullable = false)
    private LocalDateTime createdAt;
}
