Skip to content

Commit

Permalink
chore: make updated_at optional for migration
Browse files Browse the repository at this point in the history
  • Loading branch information
junminahn committed Mar 12, 2024
1 parent d938ca9 commit 64311c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ model PrivateCloudRequest {
decisionComment String?
active Boolean @default(true)
created DateTime @default(now())
updatedAt DateTime @updatedAt
updatedAt DateTime? @updatedAt
decisionDate DateTime?
projectId String? @db.ObjectId
project PrivateCloudProject? @relation("project", fields: [projectId], references: [id], onDelete: Cascade)
Expand All @@ -70,7 +70,7 @@ model PrivateCloudProject {
description String
status ProjectStatus
created DateTime @default(now())
updatedAt DateTime @updatedAt
updatedAt DateTime? @updatedAt
projectOwnerId String @db.ObjectId
projectOwner User @relation("projectOwner", fields: [projectOwnerId], references: [id], onDelete: Cascade)
primaryTechnicalLeadId String @db.ObjectId
Expand Down Expand Up @@ -147,7 +147,7 @@ model PublicCloudRequest {
decisionComment String?
active Boolean @default(true)
created DateTime @default(now())
updatedAt DateTime @updatedAt
updatedAt DateTime? @updatedAt
decisionDate DateTime?
projectId String? @db.ObjectId
project PublicCloudProject? @relation("project", fields: [projectId], references: [id], onDelete: Cascade)
Expand All @@ -164,7 +164,7 @@ model PublicCloudProject {
description String
status ProjectStatus
created DateTime @default(now())
updatedAt DateTime @updatedAt
updatedAt DateTime? @updatedAt
accountCoding String
budget Budget
projectOwnerId String @db.ObjectId
Expand Down

0 comments on commit 64311c4

Please sign in to comment.