feat(notifications): add custom notification type and enhance notification schema with custom handling

This commit is contained in:
ChristoferMendes
2025-09-26 17:07:52 -03:00
parent b5bc384664
commit 7f3fe52b53
6 changed files with 13612 additions and 275 deletions
+12
View File
@@ -0,0 +1,12 @@
ALTER TYPE "public"."notificationType" ADD VALUE 'custom';--> statement-breakpoint
CREATE TABLE "custom" (
"customId" text PRIMARY KEY NOT NULL,
"endpoint" text NOT NULL,
"httpMethod" text DEFAULT 'POST' NOT NULL,
"headers" text,
"body" text,
"queryParams" text
);
--> statement-breakpoint
ALTER TABLE "notification" ADD COLUMN "customId" text;--> statement-breakpoint
ALTER TABLE "notification" ADD CONSTRAINT "notification_customId_custom_customId_fk" FOREIGN KEY ("customId") REFERENCES "public"."custom"("customId") ON DELETE cascade ON UPDATE no action;
@@ -0,0 +1,3 @@
ALTER TABLE "custom" DROP COLUMN "httpMethod";--> statement-breakpoint
ALTER TABLE "custom" DROP COLUMN "body";--> statement-breakpoint
ALTER TABLE "custom" DROP COLUMN "queryParams";
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+14
View File
@@ -792,6 +792,20 @@
"when": 1758483520214,
"tag": "0112_freezing_skrulls",
"breakpoints": true
},
{
"idx": 113,
"version": "7",
"when": 1758913506515,
"tag": "0113_keen_wasp",
"breakpoints": true
},
{
"idx": 114,
"version": "7",
"when": 1758914193619,
"tag": "0114_smart_shape",
"breakpoints": true
}
]
}