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

import jakarta.persistence.Column;
import jakarta.persistence.DiscriminatorValue;
import jakarta.persistence.Entity;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@DiscriminatorValue("PILLORY")
public class CommunityPilloryEntity extends BaseCommunityDisplayEntity {

	@Column
	private CommunityPilloryReason reason;
	@Column
	private String message;

	@Override
	public String getType() { return "PILLORY"; }

	public CommunityPilloryDTO toPillory() {
		return new CommunityPilloryDTO(getDisplayId(), getLockId(), getCreatedAt(), getLockeeId(), getKeyholderId(),
				reason, message);
	}
}
