package kr.co.accura.wtm.domain.wbs.entity;

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

@Entity
@Table(name = "wbs_discipline_assignments")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class WbsDisciplineAssignment {

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

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "canonical_wbs_id", nullable = false)
    private CanonicalWbs canonicalWbs;

    @Column(length = 50)
    private String discipline;

    @Column(name = "is_active")
    @Builder.Default
    private Boolean isActive = true;
}
