ChickenKyiv / loopback-tutor-intern-8

https://loopback-react-account.herokuapp.com/
https://groceristar.netlify.com/
GNU General Public License v3.0
0 stars 1 forks source link

models/user.js #36

Open atherdon opened 6 years ago

atherdon commented 6 years ago

you told me that you want to know how we need to extend the user profile. this was a working version 1 year ago. https://github.com/ChickenKyiv/stripe-recurring-membership/blob/master/server/models/user.js

chauhannishith commented 6 years ago

I had already extended the base user model but I want to insert the complex stuff now related to stripe. I don't know how to manage it properly. We will need to store the current plan/subscribed plan, valid up to, transactionId of the last charge, date of the transaction, status of the transaction(so we know if we entered a failed transaction in the database or not), also might be previous transactions the user has made till now, should we allow a different email for stripe than the one registered with us, if user can ask for a refund then we will need to store that also so user doesn't ask for multiple refunds for an order

atherdon commented 6 years ago

i think you should create a visual for your db schema. https://sqldbm.com/en/Home/ use it

atherdon commented 6 years ago

29