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

import java.util.UUID;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name="verification_vote")
public class CommunityVerificationVoteEntity {

	@Id
	@Column
	private UUID voteId;
	@Column(nullable = false)
	private UUID verificationId;
	@Column(nullable = false)
	private UUID userId;
	@Column(nullable = false)
	private boolean upvote;

	public CommunityVerificationVoteDTO toVerificationVote() {
		return new CommunityVerificationVoteDTO(voteId, userId, upvote);
	}
}
