From a43e6455d664e9436d55b818967dddb6a5848080 Mon Sep 17 00:00:00 2001 From: hpkoh Date: Sat, 8 Oct 2022 19:45:29 +0800 Subject: [PATCH] [questions][feat] add location, role and comapny --- .../migration.sql | 12 ++++++++++++ apps/portal/prisma/schema.prisma | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 apps/portal/prisma/migrations/20221008114522_add_questions_company_loaction_role/migration.sql diff --git a/apps/portal/prisma/migrations/20221008114522_add_questions_company_loaction_role/migration.sql b/apps/portal/prisma/migrations/20221008114522_add_questions_company_loaction_role/migration.sql new file mode 100644 index 00000000..0a5830e1 --- /dev/null +++ b/apps/portal/prisma/migrations/20221008114522_add_questions_company_loaction_role/migration.sql @@ -0,0 +1,12 @@ +/* + Warnings: + + - Added the required column `company` to the `QuestionsQuestionEncounter` table without a default value. This is not possible if the table is not empty. + - Added the required column `location` to the `QuestionsQuestionEncounter` table without a default value. This is not possible if the table is not empty. + - Added the required column `role` to the `QuestionsQuestionEncounter` table without a default value. This is not possible if the table is not empty. + +*/ +-- AlterTable +ALTER TABLE "QuestionsQuestionEncounter" ADD COLUMN "company" TEXT NOT NULL, +ADD COLUMN "location" TEXT NOT NULL, +ADD COLUMN "role" TEXT NOT NULL; diff --git a/apps/portal/prisma/schema.prisma b/apps/portal/prisma/schema.prisma index d49e1a4a..6b712610 100644 --- a/apps/portal/prisma/schema.prisma +++ b/apps/portal/prisma/schema.prisma @@ -204,9 +204,9 @@ model QuestionsQuestionEncounter { questionId String userId String? // TODO: sync with models - // company String - // location String - // role String + company String @db.Text + location String @db.Text + role String @db.Text createdAt DateTime @default(now()) updatedAt DateTime @updatedAt