package com.ikon.projectmanagement.entity;

import jakarta.persistence.*;
import lombok.*;
import java.util.UUID;

@Entity
@Table(name = "product_project_expense_detail")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ProductOfProjectExpenseDetail {

    @Id
    @GeneratedValue
    private UUID id;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "product_prj_id", nullable = false)
    private ProductOfProject productPS;

    private String expenseName;
    private String location;
    private String currency;

    private Double cost;
    private Integer quantity;
    private Double totalCost;

    @Column(columnDefinition = "TEXT")
    private String remarks;
}
