Created
January 26, 2017 08:38
-
-
Save simon2k/3f859ca05a9c129f13d7ea1a5c80e442 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User | |
# created by session id to identify children | |
field :sessionId, String | |
end | |
class Card | |
field :frontMeaning, String | |
field :frontPicture, Picture | |
field :backMeaning, String | |
field :backPicture, Picture | |
end | |
class Picture | |
field :filename | |
field :imagePath | |
end | |
class Test | |
field :cards, Array[Card] | |
field :createdAt, Date | |
field :userId, String | |
field :testType, String, options: ["frontToBack", "backToFront"] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment