This is a more advanced issue that involves updating the Prisma schema, modifying the UI, and updating the worker code. Here are the detailed steps:
Update Prisma Schema: Add a testcaseList field to the ProblemList model in the Prisma schema. This will store the default test cases for each problem.
Update the UI: Include input fields for the test cases in the problem creation and editing pages. Ensure that these fields are user-friendly and allow for easy input of multiple test cases and send the testcase with the code.
Update Worker Code: Modify the worker code to run the default test cases provided in the testcaseList field of the ProblemList model. Display the response of these test cases in a clear and concise manner on the frontend.
This task requires a good understanding of both the backend and frontend parts of the application, as well as familiarity with Prisma and the existing codebase.
This is a more advanced issue that involves updating the Prisma schema, modifying the UI, and updating the worker code. Here are the detailed steps:
This task requires a good understanding of both the backend and frontend parts of the application, as well as familiarity with Prisma and the existing codebase.