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

import jakarta.persistence.*;
import kr.co.accura.wbx.spring.common.BaseEntity;
import lombok.*;

import java.time.LocalDateTime;

@Entity
@Table(name = "approval_comments")
@Getter @Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TtApprovalComment extends BaseEntity {

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

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "approval_id", nullable = false)
    private TtApproval approval;

    @Column(name = "user_id", nullable = false)
    private Long userId;

    @Column(length = 2000)
    private String comment;

    @Column(length = 20)
    private String action;
}
