package com.platform2easy.genesis.domain.model.cerc;

import jakarta.persistence.Entity;
import jakarta.persistence.EnumType;
import jakarta.persistence.Enumerated;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.ManyToMany;
import jakarta.persistence.ManyToOne;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Entity
@Getter
@Setter
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public class SolicitacaoRegistroCpr {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @EqualsAndHashCode.Include
    private Long id;

    private String aditivo;

    //todo private AgenteCpr agenteCpr;
    //todo private List<Area> areas;

    @ManyToOne
    private ContratoValorCpr contratoValorCpr;

    @ManyToOne
    private EmissaoCpr emissaoCpr;

    //todo private List<Garantia> garantias;
    //todo private List<ParcelaCpr> parcelas;
    //todo private List<ProdutoArea> produtos;

    @Enumerated(EnumType.STRING)
    private StatusSolicitacaoRegistroCpr status;
}