@@ -152,23 +152,23 @@ enum ReviewStatus {
152152}
153153
154154model review {
155- id String @id @default (dbgenerated (" gen_random_uuid ()" ) ) @db.VarChar (36 )
155+ id String @id @default (dbgenerated (" gen_random_uuid ()" ) ) @db.VarChar (36 )
156156 legacyId String ?
157157 resourceId String
158158 phaseId String
159- submissionId String ? @db.VarChar (14 ) // Associated submission
159+ submissionId String ? @db.VarChar (14 ) // Associated submission
160160 legacySubmissionId String ?
161161 scorecardId String // Associated scorecard
162- committed Boolean @default (false )
162+ committed Boolean @default (false )
163163 finalScore Float ?
164164 initialScore Float ?
165165 typeId String ?
166166 metadata Json ?
167167 status ReviewStatus ?
168168 reviewDate DateTime ?
169- createdAt DateTime @default (now () )
169+ createdAt DateTime @default (now () )
170170 createdBy String ?
171- updatedAt DateTime @updatedAt
171+ updatedAt DateTime @updatedAt
172172 updatedBy String ?
173173
174174 scorecard scorecard @relation (fields : [scorecardId ] , references : [id ] , onDelete : Cascade )
@@ -561,7 +561,7 @@ model llmProvider {
561561 id String @id @default (dbgenerated (" nanoid ()" ) ) @db.VarChar (14 )
562562 name String @unique @db.VarChar
563563 createdAt DateTime @db.Timestamp (3 )
564- createdBy String ? @db.Text
564+ createdBy String ? @db.Text
565565
566566 models llmModel []
567567}
@@ -574,7 +574,7 @@ model llmModel {
574574 icon String ? @db.VarChar
575575 url String ? @db.VarChar
576576 createdAt DateTime @default (now () ) @db.Timestamp (3 )
577- createdBy String ? @db.Text
577+ createdBy String ? @db.Text
578578
579579 provider llmProvider @relation (fields : [providerId ] , references : [id ] )
580580 workflows aiWorkflow []
@@ -590,9 +590,9 @@ model aiWorkflow {
590590 gitOwner String @db.VarChar
591591 scorecardId String @db.VarChar (14 )
592592 createdAt DateTime @default (now () ) @db.Timestamp (3 )
593- createdBy String ? @db.Text
593+ createdBy String ? @db.Text
594594 updatedAt DateTime @updatedAt
595- updatedBy String ? @db.Text
595+ updatedBy String ? @db.Text
596596
597597 llm llmModel @relation (fields : [llmId ] , references : [id ] )
598598 scorecard scorecard @relation (fields : [scorecardId ] , references : [id ] )
@@ -623,7 +623,7 @@ model aiWorkflowRunItem {
623623 downVotes Int @default (0 )
624624 questionScore Float ? @db.DoublePrecision
625625 createdAt DateTime @db.Timestamp (3 )
626- createdBy String ? @db.Text
626+ createdBy String ? @db.Text
627627
628628 run aiWorkflowRun @relation (fields : [workflowRunId ] , references : [id ] )
629629 question scorecardQuestion @relation (fields : [scorecardQuestionId ] , references : [id ] )
@@ -635,11 +635,13 @@ model aiWorkflowRunItemComment {
635635 workflowRunItemId String @db.VarChar (14 )
636636 userId String @db.Text
637637 content String @db.Text
638+ upVotes Int @default (0 )
639+ downVotes Int @default (0 )
638640 parentId String ? @db.VarChar (14 )
639641 createdAt DateTime @default (now () ) @db.Timestamp (3 )
640- createdBy String ? @db.Text
642+ createdBy String ? @db.Text
641643 updatedAt DateTime @updatedAt
642- updatedBy String ? @db.Text
644+ updatedBy String ? @db.Text
643645
644646 item aiWorkflowRunItem @relation (fields : [workflowRunItemId ] , references : [id ] )
645647 parent aiWorkflowRunItemComment ? @relation (" CommentHierarchy " , fields : [parentId ] , references : [id ] )
0 commit comments