mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
refactor(prisma): rename content
field to description
in Problem model
This commit is contained in:
parent
bddbc03f3a
commit
bf6b5567b7
@ -29,11 +29,11 @@ enum Difficulty {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model Problem {
|
model Problem {
|
||||||
id Int @id @default(autoincrement())
|
id Int @id @default(autoincrement())
|
||||||
title String
|
title String
|
||||||
content String
|
description String
|
||||||
difficulty Difficulty @default(EASY)
|
difficulty Difficulty @default(EASY)
|
||||||
published Boolean @default(false)
|
published Boolean @default(false)
|
||||||
authorId Int
|
authorId Int
|
||||||
author User @relation(fields: [authorId], references: [id])
|
author User @relation(fields: [authorId], references: [id])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user