feat: add survey schedule option (#2386)

Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Piyush Gupta <piyushguptaa2z123@gmail.com>
This commit is contained in:
Matti Nannt
2024-04-08 11:36:06 +02:00
committed by GitHub
parent c44c0b83e3
commit 08ce026c7a
28 changed files with 252 additions and 130 deletions
@@ -0,0 +1,5 @@
-- AlterEnum
ALTER TYPE "SurveyStatus" ADD VALUE 'scheduled';
-- AlterTable
ALTER TABLE "Survey" ADD COLUMN "runOnDate" TIMESTAMP(3);
+3 -1
View File
@@ -178,6 +178,7 @@ model TagsOnResponses {
enum SurveyStatus {
draft
scheduled
inProgress
paused
completed
@@ -284,8 +285,9 @@ model Survey {
attributeFilters SurveyAttributeFilter[]
displays Display[]
autoClose Int?
delay Int @default(0)
autoComplete Int?
delay Int @default(0)
runOnDate DateTime?
closeOnDate DateTime?
/// @zod.custom(imports.ZSurveyClosedMessage)
/// [SurveyClosedMessage]