bazzar/migrations/20230603073531_notifications.sql

21 lines
746 B
MySQL
Raw Normal View History

2023-06-09 07:21:40 +02:00
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
);