Database Reference
In-Depth Information
Figure 3.4. Introducing movies to the model
There's one problem here: because both users and movies are represented as boxes with a
name
property, you don't have any way to differentiate between them. The easiest way to
makeadifferencebetween
user
boxesand
movie
boxesistointroducea
type
property,
with a different value for different types of objects.
Figure 3.5
illustrates the model with
relevant types.