package com.gnx.telemedicine.model;

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

import java.util.UUID;

@Getter
@Setter
@Entity
@Table(name = "duplicate_match_reasons")
public class DuplicateMatchReason {
    @Id
    @GeneratedValue(strategy = GenerationType.UUID)
    @Column(name = "id")
    private UUID id;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "duplicate_record_id", nullable = false)
    private DuplicatePatientRecord duplicateRecord;

    @Column(name = "reason", nullable = false, columnDefinition = "TEXT")
    private String reason;
}

