20 lines
453 B
Java
20 lines
453 B
Java
package com.example.webhook.model;
|
|
|
|
import lombok.Data;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.GeneratedValue;
|
|
import javax.persistence.GenerationType;
|
|
import javax.persistence.Id;
|
|
|
|
@Entity
|
|
@Data
|
|
public class WebhookSubscription {
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
private String name;
|
|
private String url;
|
|
private String secret;
|
|
private boolean active = true;
|
|
} |