OpenMetadata/bootstrap/sql/mysql/v003__create_db_connection_info.sql
Suresh Srinivas 5892595b1f
Fixes #1900 - Initial implementation of webhook API (#1905)
Co-authored-by: Suresh Srinivas <sureshsrinivas@Suresh-Collate.local>
2021-12-23 11:26:00 -08:00

8 lines
355 B
SQL

CREATE TABLE IF NOT EXISTS webhook_entity (
id VARCHAR(36) GENERATED ALWAYS AS (json ->> '$.id') STORED NOT NULL,
name VARCHAR(256) GENERATED ALWAYS AS (json ->> '$.name') NOT NULL,
json JSON NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY unique_name(name)
-- No versioning, updatedAt, updatedBy, or changeDescription fields for webhook
);