subscription table is not generated
Following https://www.better-auth.com/docs/plugins/stripe#subscription guide and version 1.2.5
my auth looks like:
and when i do
npx @better-auth/cli generate
, i dont see subscription table in generated schema. The only change i see is a new field stripeCustomerId: text("stripe_customer_id"),
added to user table. is this expected? as the guide says both user and subscription table will be generated.
not sure if this is related, but i am getting metadata not exists on referralSource: user.metadata?.referralSource,
Stripe | Better Auth
Stripe plugin for Better Auth to manage subscriptions and payments.

2 Replies
ah. we need to enable subscription
https://github.com/better-auth/better-auth/blob/18744b04ba1bff4c660f7dfd62a5e6a303aecb6e/packages/stripe/src/schema.ts#L70
GitHub
better-auth/packages/stripe/src/schema.ts at 18744b04ba1bff4c660f7d...
The most comprehensive authentication framework for TypeScript - better-auth/better-auth
yeah you need to enable it