21 lines
746 B
MySQL
21 lines
746 B
MySQL
|
CREATE TABLE notifications
|
||
|
(
|
||
|
id uuid NOT NULL,
|
||
|
event_name character varying,
|
||
|
resource_type character varying NOT NULL,
|
||
|
resource_id uuid NOT NULL,
|
||
|
customer_id uuid,
|
||
|
"to" character varying NOT NULL,
|
||
|
data jsonb NOT NULL,
|
||
|
parent_id uuid,
|
||
|
provider_id uuid,
|
||
|
created_at timestamp with time zone DEFAULT now() NOT NULL,
|
||
|
updated_at timestamp with time zone DEFAULT now() NOT NULL
|
||
|
);
|
||
|
|
||
|
CREATE TABLE notification_providers
|
||
|
(
|
||
|
id uuid NOT NULL,
|
||
|
is_installed boolean DEFAULT true NOT NULL
|
||
|
);
|