Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Basics: one to few

Embedded Address document.

 person   address 

objectId NN street string NN


_id
string NN city string NN
name
string NN cc string NN
ssn
addresses [{ }] address NN
street string NN
city string NN
cc string NN

Basics: one to many

 products   part 
_id objectId NN _id objectId NN
name string NN part_no string NN

manufacturer string NN name string NN


catalog_number string NN qty decimal NN
parts [ ] objectId NN cost double NN
price double NN

Basics: one to squillions

 host   logmsg 
_id objectId NN _id objectId NN
name string NN time string NN

ipaddr string NN message string NN


host objectId NN

You might also like