AuthorshipStatementDefinition content StoredMarkup -- must contain statements in all relevant languages for now, TODO: refactor (use translations as below) deriving Generic -- AuthorshipStatementDefinitionTranslation -- definition AuthorshipStatementDefinitionId -- language Lang -- content StoredMarkup -- UniqueAuthorshipStatementDefinitionTranslation definition language -- deriving Generic -- Statement of Authorship to be issued upon submitting a solution for an exercise sheet -- TODO: maybe move to SubmissionUser? (With statementSigned :: Bool, statement :: Maybe StoredMarkup) AuthorshipStatementSubmission submissionUser SubmissionUserId statement StoredMarkup -- stored as plain StoredMarkup as the "signed" statement needs to be persisted UniqueAuthorshipStatementSubmission submissionUser deriving Generic