Skip to content

Commit 956a95d

Browse files
authored
Merge pull request #34 from teacoder-team/dev
chore(prisma): update schema
2 parents aa00cfe + 963330b commit 956a95d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

prisma/schema.prisma

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ model User {
2222
2323
role UserRole @default(STUDENT)
2424
25-
isAutoRenewal Boolean @default(false) @map("is_auto_renewal")
25+
isAutoBilling Boolean @default(false) @map("is_auto_billing")
2626
2727
emailVerification EmailVerification?
2828
passwordReset PasswordReset?
@@ -251,10 +251,10 @@ model DownloadLog {
251251
downloadedAt DateTime @default(now()) @map("downloaded_at")
252252
253253
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
254-
userId String @map("course_id")
254+
userId String @map("user_id")
255255
256256
course Course @relation(fields: [courseId], references: [id], onDelete: Cascade)
257-
courseId String @map("course_ud")
257+
courseId String @map("course_id")
258258
259259
createdAt DateTime @default(now())
260260
updatedAt DateTime @updatedAt

0 commit comments

Comments
 (0)