From 2e7f9540fe810b248f044b80238f55a73deea96f Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sun, 16 Mar 2025 17:11:29 +0800 Subject: [PATCH] feat(prisma): add ExitCode enum for handling problem outcomes --- prisma/schema.prisma | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index fe6d344..a6f2dc8 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -98,6 +98,17 @@ model Template { @@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 { userId String type String