mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-08-17 21:25:52 +02:00
* Extension of tenant schema * Notification service * Notification endpoints * Format errors * Update src/lib/server/db/tenant-schema.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/lib/server/services/notification-service.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Explicit where clause in delete notification * Update tenant-migrations/0008_neat_swarm.sql Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Sort notifivcations by creation date. Do not explicitly check for existance in mark as read. * Fixed tests * No longer store texts in notifications * Single source of truth for notification types * Formatting * Fixed linting errors --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
6 lines
568 B
SQL
6 lines
568 B
SQL
CREATE TYPE "public"."notification_type" AS ENUM('APPOINTMENT_CONFIRMED', 'APPOINTMENT_CANCELED');--> statement-breakpoint
|
|
ALTER TABLE "notification" ADD COLUMN "type" "notification_type" DEFAULT 'APPOINTMENT_CONFIRMED' NOT NULL;--> statement-breakpoint
|
|
ALTER TABLE "notification" ADD COLUMN "meta_data" json;--> statement-breakpoint
|
|
ALTER TABLE "notification" ADD COLUMN "created_at" timestamp DEFAULT now() NOT NULL;--> statement-breakpoint
|
|
ALTER TABLE "notification" DROP COLUMN "title";--> statement-breakpoint
|
|
ALTER TABLE "notification" DROP COLUMN "description"; |