Basic Stripe integration. new pages for stripe handshake and new Account page. use query instead of useQuery for trpc fetches from store

This commit is contained in:
Michael Dausmann
2023-03-18 20:37:51 +11:00
parent 2ef98d0d98
commit 7311c13db2
21 changed files with 503 additions and 34 deletions

5
prisma/prisma.client.ts Normal file
View File

@@ -0,0 +1,5 @@
import pkg from "@prisma/client";
const { PrismaClient } = pkg;
const prisma_client = new PrismaClient()
export default prisma_client

View File

@@ -49,6 +49,8 @@ model Account {
members Membership[]
notes Note[]
max_notes Int @default(100)
stripe_subscription_id String?
stripe_customer_id String?
@@map("account")
}