Skip to content

Instantly share code, notes, and snippets.

@bhenry
Created September 17, 2010 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhenry/584919 to your computer and use it in GitHub Desktop.
Save bhenry/584919 to your computer and use it in GitHub Desktop.
(defembedded Grade
[:scored
:possible
:percentage])
(defentity Scorecard
[#_ :questionnaire-id ;not needed? use client's questionnaire-id
#_ :questionnaire-title ;also not needed?
:operator {:type Employee}
:evaluator {:type Employee}
:client {:type Client}
:call-date
:timestamp
:notes
:questions {:type :references :of Question}
:grade {:type Grade}]
(index (desc :timestamp))
(index (desc :call-date))
(index (asc :evaluator))
(index (asc :operator))
(index (asc :client))
(index (desc :grade)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment