Hi,

I have this data > http://files.nicholasorr.com/data.html

I need to model it.

I've come up with these models

Person
Product
Supplier
RatePlan
Cost

These are the questions & expected answers

Q: How much does john get beans for?
A: acme => $2, nestle => $2.50, pinehurst => $2.25

Q: What products does john have access to?
A: beans, apples

Q: Who is on Rate 1?
A: john, david

Q: What products does rate 3 have?
A: beans, apples, oranges

Q: What suppliers are available?
A: acme, nestle, pinehurst, smiths

Q: What products are available?
A: beans, apples, oranges

This is the relationship I see

Person > RatePlan > Product > Lender > Cost

But I don't know how to setup the models so all the questions above
are answered :/

Looking forward to your suggestions :)

Thanks,

Nick

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to