feat: add reminder interval to document settings

This commit is contained in:
Ephraim Atta-Duncan
2025-04-15 06:27:56 +00:00
parent a6de9b3e3d
commit 651f5bbb6d
10 changed files with 114 additions and 10 deletions

View File

@ -0,0 +1,6 @@
-- CreateEnum
CREATE TYPE "DocumentReminderInterval" AS ENUM ('NONE', 'EVERY_1_HOUR', 'EVERY_6_HOURS', 'EVERY_12_HOURS', 'DAILY', 'EVERY_3_DAYS', 'WEEKLY', 'EVERY_2_WEEKS', 'MONTHLY');
-- AlterTable
ALTER TABLE "DocumentMeta" ADD COLUMN "lastReminderSentAt" TIMESTAMP(3),
ADD COLUMN "reminderInterval" "DocumentReminderInterval" NOT NULL DEFAULT 'NONE';