package br.gov.sigefp.rh.domain;

import br.gov.sigefp.common.domain.BaseEntity;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.*;
import lombok.experimental.SuperBuilder;

import java.math.BigDecimal;
import java.time.LocalDate;

@Entity
@Table(name = "family_allowance_table")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
public class FamilyAllowanceTable extends BaseEntity {

    @Column(nullable = false)
    private Integer dependentsCount;

    @Column(nullable = false, precision = 19, scale = 2)
    private BigDecimal amount;

    @Column(nullable = false)
    private LocalDate validFrom;

    @Column
    private LocalDate validTo;
}
