From bf6b5567b763d8280e6316e645a00714d6e96924 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sat, 8 Mar 2025 20:00:23 +0800 Subject: [PATCH] refactor(prisma): rename `content` field to `description` in Problem model --- prisma/schema.prisma | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 1544e62..9b3ad08 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -29,11 +29,11 @@ enum Difficulty { } model Problem { - id Int @id @default(autoincrement()) - title String - content String - difficulty Difficulty @default(EASY) - published Boolean @default(false) - authorId Int - author User @relation(fields: [authorId], references: [id]) + id Int @id @default(autoincrement()) + title String + description String + difficulty Difficulty @default(EASY) + published Boolean @default(false) + authorId Int + author User @relation(fields: [authorId], references: [id]) }