refactor: changed the test cases to reflect change to UserHistory schema

This commit is contained in:
Balu Babu
2023-01-24 02:02:17 +05:30
parent 4023dcf09d
commit 73ace77305
4 changed files with 30 additions and 33 deletions

View File

@@ -0,0 +1,10 @@
/*
Warnings:
- You are about to drop the column `type` on the `UserHistory` table. All the data in the column will be lost.
- Added the required column `reqType` to the `UserHistory` table without a default value. This is not possible if the table is not empty.
*/
-- AlterTable
ALTER TABLE "UserHistory" DROP COLUMN "type",
ADD COLUMN "reqType" "ReqType" NOT NULL;

View File

@@ -91,7 +91,7 @@ model UserHistory {
id String @id @default(cuid())
userUid String
user User @relation(fields: [userUid], references: [uid], onDelete: Cascade)
type ReqType
reqType ReqType
request Json
responseMetadata Json
isStarred Boolean