13 lines
450 B
SQL
13 lines
450 B
SQL
CREATE TABLE "notifications" (
|
|
"notify_id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL,
|
|
"name" text NOT NULL,
|
|
"description" text NOT NULL,
|
|
"checkInterval" text DEFAULT '1',
|
|
"timeType" text DEFAULT 'hour',
|
|
"emails" text,
|
|
"active" boolean DEFAULT false,
|
|
"lastRan" timestamp DEFAULT now(),
|
|
"notifiySettings" jsonb DEFAULT '{}'::jsonb
|
|
);
|
|
--> statement-breakpoint
|
|
CREATE UNIQUE INDEX "notify_name" ON "notifications" USING btree ("name"); |