package com.iqser.red.service.persistence.service.v1.api.shared.model.annotations.entitymapped;

import java.time.OffsetDateTime;

import com.iqser.red.service.persistence.service.v1.api.shared.model.annotations.AnnotationStatus;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class BaseAnnotation {

    private String annotationId;
    private String fileId;
    private String user;
    private AnnotationStatus status;
    private OffsetDateTime requestDate;
    private OffsetDateTime processedDate;
    private OffsetDateTime softDeletedTime;


    public boolean isApproved() {

        return AnnotationStatus.APPROVED == status;
    }

}
