Stripe plugin does not create subscription schema via CLI

Hello, after running
npx @better-auth/cli generate
, I noticed that the generated schema does not contain the subscription table. I also observed that the stripeCustomerId field in the users table was created correctly.

"better-auth": "^1.2.8"
"@better-auth/stripe": "^1.2.8"
"stripe": "^18.0.0"

I configured the Stripe plugin as follows:

import { stripe } from '@better-auth/stripe'
import { betterAuth } from 'better-auth'
import { drizzleAdapter, type DB } from 'better-auth/adapters/drizzle'
import { openAPI, organization } from 'better-auth/plugins'
import Stripe from 'stripe'

export const auth = betterAuth({
    database: drizzleAdapter({} as DB, {
        provider: 'sqlite',
        usePlural: true,
    }),
    emailAndPassword: {
        enabled: true,
    },
    user: {
        additionalFields: {
            role: {
                type: 'string',
                required: false,
                defaultValue: 'user',
                input: false,
            },
        },
    },
    plugins: [
        openAPI(),
        organization({
            // --- Core Organization Settings ---
            creatorRole: 'owner',
            teams: {
                enabled: true,
            },
        }),
        stripe({
            stripeClient: new Stripe(
                'KEY',
                {
                    apiVersion: '2025-05-28.basil',
                },
            ),
            stripeWebhookSecret: 'KEY',
            createCustomerOnSignUp: true,
        }),
    ],
})
Was this page helpful?