feat: add stripe webhooks

This commit is contained in:
Mauricio Siu
2024-10-20 15:08:44 -06:00
parent fe0a662afd
commit ffe7b04bea
9 changed files with 4476 additions and 214 deletions

View File

@@ -30,6 +30,7 @@ export const admins = pgTable("admin", {
.$defaultFn(() => new Date().toISOString()),
stripeCustomerId: text("stripeCustomerId"),
stripeSubscriptionId: text("stripeSubscriptionId"),
stripeSubscriptionStatus: text("stripeSubscriptionStatus"),
totalServers: integer("totalServers").notNull().default(0),
});