[questions][feat] update encounters schema (#337)

This commit is contained in:
hpkoh
2022-10-09 17:36:02 +08:00
committed by GitHub
parent a1cd0f4e9b
commit a26bd49a96
2 changed files with 9 additions and 0 deletions

View File

@ -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;

View File

@ -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