3.6 KiB
Database
Used database schema is generated by ORM framework Doctrine from ReCodEx API source code. Tables are directly mapped to entities, which are PHP classes annotated with data provided by ORM framework. In the following text there is a brief description of each such entity. There may be some additional database tables for many-to-many relations between entities, but these tables are not discussed in detail because there are only two columns with keys of both related tables in each one. Graphical database schema is added as attachement to this documentation.
Assignment
Assignment table represents exercise assignment in a group. It holds keys of the exercise and group where is the exercise assigned. Other columns are:
- isPublic -- assignment can be public (visible to students) or private (visible only to supervisor of the group)
- submissionCountLimit -- number of attempts student can make to solve the exercise
- scoreConfig -- configuration for calculating point score; actual syntax depends on used score calculator
- firstDeadline -- date and time after that no new submissions are received
- allowSecondDeadline, secondDeadline -- flag if another deadline is allowed, date and time of that deadline
- maxPointsBeforeFirstDeadline, maxPointsBeforeSecondDedline -- maximal amount of points for correct solutions for first (respectively second) deadline
- scoreCalculator -- name of used score score calculator or NULL for API's default one
- canViewLimitRatios -- flag if student can view percentage of used time and memory limits for each test
- deletedAt -- assignment cannot be deleted due to possible numerous dependencies, but can be hidden from the users; published assignments have NULL value, deleted ones have time of deletion
Comment
CommentThread
Exercise
ExerciseFile
ExternalLogin
ForgottenPassword
Group
GroupMembership
HardwareGroup
HardwareGroupAvailabilityLog
Instance
Licence
LocalizedAssignment
Login
Permission
ReferenceExerciseSolution
ReferenceSolutionEvaluation
ReportedErrors
Resource
Role
RuntimeEnvironment
Solution
SolutionEvaluation
SolutionFile
SolutionRuntimeConfig
- name --
- runtimeEnvironment --
- jobConfigFilePath --
- createdAt --
- solutionRuntimeConfig --
Submission
- submittedAt --
- note --
- resultsUrl --
- assignment --
- user --
- submittedBy --
- solution --
- asynchronous --
- evaluation --
SubmissionFailure
- type --
- description --
- submission --
- createdAt --
- resolvedAt --
- resolutionNote --
TestResult
- testName --
- status --
- solutionEvaluation --
- score --
- memoryExceeded --
- usedMemoryRatio --
- timeExceeded --
- usedTimeRatio --
- exitCode --
- message --
- stats --
- judgeOutput --
UploadedFile
- name --
- localFilePath --
- uploadedAt --
- fileSize --
- user --
User
- degreesBeforeName --
- firstName --
- lastName --
- degreesAfterName --
- email --
- avatarUrl --
- isVerified --
- isAllowed --
- createdAt --
- instance --
- settings --
- memberships --
- exercises --
- role --
UserAction
- user --
- loggedAt --
- action --
- params --
- code --
- data --
UserSettings
User settings belong to some particular user and contains settings mostly for web application.
- darkTheme -- dark mode will be used in text editor in web application
- vimMode -- turn vim mode on in text editor used by web application
- defaultLanguage -- default language which will be used in web application