gonito/config/models
Filip Gralinski e1b1ff53f1 Add indicators to the database, make it possible to edit them in the dashboard.
The dashboard itself (in terms of graphs) is not part of this commit.
2018-09-14 15:50:44 +02:00

147 lines
3.2 KiB
Plaintext

User
ident Text
password Text Maybe
UniqueUser ident
name Text Maybe
isAdmin Bool default=False
localId Text Maybe
isAnonymous Bool default=False
avatar ByteString Maybe
verificationKey Text Maybe
keyExpirationDate UTCTime Maybe
triggerToken Text Maybe
deriving Typeable
PublicKey
user UserId
pubkey Text
Email
email Text
user UserId Maybe
verkey Text Maybe
UniqueEmail email
Repo
url Text
branch Text
currentCommit SHA1
owner UserId
ready Bool default=False
stamp UTCTime default=now()
gitAnnexRemote Text Maybe
UniqueUrlBranch url branch
deriving Show
Challenge
publicRepo RepoId
privateRepo RepoId
name Text
UniqueName name
title Text
description Text
stamp UTCTime default=now()
image ByteString Maybe
starred Bool
Test
challenge ChallengeId
metric Metric
name Text
checksum SHA1
commit SHA1
active Bool default=True
precision Int Maybe
priority Int Maybe
UniqueChallengeNameMetricChecksum challenge name metric checksum
Submission
repo RepoId
commit SHA1
challenge ChallengeId
description Text
stamp UTCTime default=now()
submitter UserId
isPublic Bool default=False
isHidden Bool Maybe
UniqueSubmissionRepoCommitChallenge repo commit challenge
Variant
submission SubmissionId
name Text
UniqueVariantSubmissionName submission name
Parameter
variant VariantId
name Text
value Text
UniqueParameterName variant name
Fork
source SubmissionId
target SubmissionId
UniqueSourceTarget source target
Evaluation
test TestId
checksum SHA1
score Double Maybe
errorMessage Text Maybe
stamp UTCTime default=now()
UniqueEvaluationTestChecksum test checksum
Comment
challenge ChallengeId
author UserId
posted UTCTime default=now()
text Textarea
Out
variant VariantId
test TestId
checksum SHA1
UniqueOutVariantTestChecksum variant test checksum
Tag
name Text
description Text Maybe
UniqueTagName name
SubmissionTag
submission SubmissionId
tag TagId
accepted Bool Maybe
UniqueSubmissionTag submission tag
-- for machine learning courses
Achievement
name Text
challenge ChallengeId
points Int
description Text Maybe
deadline UTCTime
maxWinners Int Maybe
course CourseId
UniqueAchievementName name
AchievementTag
achievement AchievementId
tag TagId
UniqueAchievementTag achievement tag
WorkingOn
achievement AchievementId
user UserId
finalSubmission SubmissionId Maybe
UniqueWorkingOnAchievementUser achievement user
Course
name Text
code Text
closed Bool
UniqueCourseName name
UniqueCourseCode code
ExtraPoints
points Int
description Text
user UserId
course CourseId
posted UTCTime default=now()
addedBy UserId
Participant
user UserId
course CourseId
UniqueUserCourse user course
-- for "KPI" dashboard
Indicator
test TestId
filterCondition Text Maybe
targetCondition Text Maybe
Target
indicator IndicatorId
deadline UTCTime
value Double
-- By default this file is used in Model.hs (which is imported by Foundation.hs)