feat(prisma): add ExitCode enum for handling problem outcomes

This commit is contained in:
cfngc4594 2025-03-16 17:11:29 +08:00
parent f34a01e8f5
commit 2e7f9540fe

View File

@ -98,6 +98,17 @@ model Template {
@@id([problemId, language]) @@id([problemId, language])
} }
enum ExitCode {
SE // System Error
CS // Compilation Success
CE // Compilation Error
TLE // Time Limit Exceeded
MLE // Memory Limit Exceeded
RE // Runtime Error
AC // Accepted
WA // Wrong Answer
}
model Account { model Account {
userId String userId String
type String type String