Hi,
Guys, I need your help.
I am implementing monthly subscriptions in my app. I am using razor pay to achieve this.
Right now, I am using their APIs to create subscriptions and using webhooks I am capturing all the payment and subscription events information and storing them in a subscription table. This table has all the information from when subscription starts till its completion.
All the above records will be for a single user.
My question is whether this structure is good enough and scalable, or should I design my DB differently?
Another approach which I am thinking of is to have this table as is and store subscription status, start date and end date in user table and use them when needed.
Thanks,
Ram.