I'm wondering if my schema is correct? It's intended to hold shopping list items for each user
, a user belongs to a household
. Items
will be added to the household
.
The stocklist will to hold the quantity of an iID (item ID)
and that iID
is belongs to a hhID
.
So at the moment
- stocklist.hhID references household.hhID
- household.adminID references users.uID
- items.hhID references household.hhID
- stocklist.iID references items.iID
I'm wondering if these relationships are viable? Even more importantly what do you think of the schema?
Posted from my unused account before.
users.hhID
also referenceshousehold.hhID
. Is that so or is the picture just not up-to-date?Stocklist
andUsers
and add a new tablesOrders
andOrderItems
. RelateHousehold
withOrders
andOrders
withOrderItems