vercel / nextjs-subscription-payments

Clone, deploy, and fully customize a SaaS subscription application with Next.js.

Home Page:https://subscription-payments.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: Why have a customers table if it is 1:1 with Users & has only 1 column of stripe_customer_id?

EarthlingDavey opened this issue · comments

Hi, I don't think there is much more to add that isn't in the title.

Question: Why have a customers table if it is 1:1 with Users & has only 1 column of stripe_customer_id?

I am porting this repo to work with a diferent database, I'm curious what are the benefits of having an isolated customer table. When the alternative woud be to have a column of stripe_customer_id in the User table.

Thanks!

I understand, it's because customer is a private table, it will never be accessible by the user.