package com.ikon.projectmanagement.entity;

import java.util.UUID;

import jakarta.persistence.*;
import lombok.*;

@Entity
@Table(name = "working_days_details")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WorkingDaysDetailsEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.UUID)
    private UUID id;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "working_id", nullable = false)
    @ToString.Exclude
    @EqualsAndHashCode.Exclude
    private WorkingDaysEntity workingDaysEntity;

    @Column(name = "year")
    private String year;

    @Column(name = "month", nullable = false)
    private String month;

    @Column(name = "working_days")
    private Integer workingDays;
}