package com.eactive.eai.rms.data.entity.onl.djb.webhook;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Comment;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Embeddable
public class WebhookReqEventId implements Serializable {

    @Column(name = "WEBHOOK_REQ_ID", nullable = false, length = 36)
    @Comment("웹훅 요청 ID")
    private String webhookReqId;

    @Column(name = "EVENT_TYPE", nullable = false, length = 50)
    @Comment("이벤트 유형 (CONTROL_START, ERROR_START 등)")
    private String eventType;
}
