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

import lombok.Getter;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.Comment;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "PTL_WEBHOOK_REQ")
@Getter
@NoArgsConstructor
public class WebhookReq {

    @Id
    @Column(name = "ID", length = 36, nullable = false)
    private String id;

    @Column(name = "ORG_ID", length = 100)
    @Comment("법인 ID")
    private String orgId;

    @Column(name = "TARGET_URL", length = 500, nullable = false)
    @Comment("웹훅 수신 URL")
    private String targetUrl;

    @Column(name = "SECRET", length = 200)
    @Comment("HMAC 서명용 Secret Key")
    private String secret;
}
