package com.iqser.red.service.persistence.management.v1.processor.entity.index;

import java.time.OffsetDateTime;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

import com.iqser.red.service.persistence.service.v1.api.shared.model.utils.SuppressFBWarnings;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "index_information")
@SuppressFBWarnings("RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE")
public class IndexInformationEntity {

    public static final String ID = "CONFIG_ID";

    @Id
    private final String id = IndexInformationEntity.ID;

    @Column
    private String indexConfigurationHash;

    @Column
    private OffsetDateTime updateDate;

}
