root-systems / cobuy

:seedling: :package: :stew: :family: Helping people buy good food at good prices, together.
GNU Affero General Public License v3.0
25 stars 4 forks source link

feathers service data restrictions #483

Open iainkirkpatrick opened 6 years ago

iainkirkpatrick commented 6 years ago

as opposed to authentication / permissions on sevices (#460), this ticket is around stopping services from creating data that is nonsensical for the app

i.e. two orderIntents that have the same agentId, same orderId, same productId, and same priceSpecId

question as to whether we stop this at the hook level or database level? need to read feathers docs / research for advice