From a26bd49a962afce5d59e5a644442af7f3ace3d8b Mon Sep 17 00:00:00 2001 From: hpkoh <53825802+hpkoh@users.noreply.github.com> Date: Sun, 9 Oct 2022 17:36:02 +0800 Subject: [PATCH] [questions][feat] update encounters schema (#337) --- .../migration.sql | 8 ++++++++ apps/portal/prisma/schema.prisma | 1 + 2 files changed, 9 insertions(+) create mode 100644 apps/portal/prisma/migrations/20221009093357_update_question_encounter_schema/migration.sql diff --git a/apps/portal/prisma/migrations/20221009093357_update_question_encounter_schema/migration.sql b/apps/portal/prisma/migrations/20221009093357_update_question_encounter_schema/migration.sql new file mode 100644 index 00000000..3972d1b5 --- /dev/null +++ b/apps/portal/prisma/migrations/20221009093357_update_question_encounter_schema/migration.sql @@ -0,0 +1,8 @@ +/* + Warnings: + + - Added the required column `seenAt` to the `QuestionsQuestionEncounter` table without a default value. This is not possible if the table is not empty. + +*/ +-- AlterTable +ALTER TABLE "QuestionsQuestionEncounter" ADD COLUMN "seenAt" TIMESTAMP(3) NOT NULL; diff --git a/apps/portal/prisma/schema.prisma b/apps/portal/prisma/schema.prisma index 13287fea..59c53a40 100644 --- a/apps/portal/prisma/schema.prisma +++ b/apps/portal/prisma/schema.prisma @@ -206,6 +206,7 @@ model QuestionsQuestionEncounter { company String @db.Text location String @db.Text role String @db.Text + seenAt DateTime createdAt DateTime @default(now()) updatedAt DateTime @updatedAt