O'Reilly logo

SproutCore Web Application Development by Tyler Keating

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Defining your data model

When planning the data component of any particular application, we always start with a data model. A data model is just a diagram or description that defines the record types and their relationships. These record types, or models, will closely map the types of data we expect to bring into the application. So, for instance, if we are going to load student record data, we will likely want a MyApp.Student model.

Let's look at an example of how a data model for a calendaring application may start out:

Defining your data model

This data model is about as simple as it can get. We have calendar records, each of which has zero or more event records. In turn, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required