Search code examples
ioscore-dataicloudcloudkit

CloudKit/iCloud - Teacher/Student Scenario


I'm a new iOS programmer and I've generally been working using CoreData in iCloud for persistent storage. My newest project will involve this scenario, and I'm not sure how to accomplish it (or if iCloud/CloudKit is able to accomplish it):

Let's say we have an education program for Instructors and Students. Students log their hours of attendance and basic course data.

Is there any way with CloudKit to be able to attribute the student's data to the instructor as well? Essentially allowing instructors not to have to log the data since students have already entered it?

Or vice versa?

I understand how this would work in a traditional relational database but I'm not sure if CloudKit has any limitation on this. I'm pretty sure iCloud isn't going to do it... Any recommendations appreciated!

Thanks, Charlie

UPDATE

One of the primary concerns is that instructors will need to be able to bring this data up on their own device. I am thinking instructors will need to validate the student log entry before signing off on the record. After sign off, the record will be attributed to the instructor. Then, I am hoping instructors will be able to open their app to see pertinent instructor totals.


Solution

  • This could work very well. Think as CloudKit as a central database. Who can access what data can be arranged with your data model and queries. Like a regular database you will probably have the recordTypes: Instructors, Students, Courses, StudensInCourses and Attendance.