Safe Haskell | None |
---|---|
Language | Haskell2010 |
Basic database schema for exigo tools.
The assumption is that the schema will actually be composed of this, base, schema, plus subsidiary ones for individual assessments.
Synopsis
- data Student = Student {
- studentStudNo :: !Text
- studentName :: !Text
- type StudentId = Key Student
- data Submission = Submission {}
- type SubmissionId = Key Submission
- data LatePenalty = LatePenalty {
- latePenaltyStudent :: !(Key Student)
- latePenaltyDaysLate :: !Int
- type LatePenaltyId = Key LatePenalty
- savedMainModel :: [EntityDef]
- data family Key record :: Type
- type StudentKey = Key Student
- type SubmissionKey = Key Submission
- type LatePenaltyKey = Key LatePenalty
Database entities
Represents a student
Student | |
|
Instances
Submission made by a Student
data Submission Source #
Submission | |
|
Instances
type SubmissionId = Key Submission Source #
A late penalty applied
data LatePenalty Source #
Instances
type LatePenaltyId = Key LatePenalty Source #
Runtime access to schema
Saved entities from this schema
savedMainModel :: [EntityDef] Source #
Keys for entities
data family Key record :: Type #
By default, a backend will automatically generate the key Instead you can specify a Primary key made up of unique values.
Instances
type StudentKey = Key Student Source #
type SubmissionKey = Key Submission Source #
type LatePenaltyKey = Key LatePenalty Source #