Schema, API, and query stuff for enrollments