mirror of
https://github.com/Since-3/Kuma.git
synced 2026-10-12 20:51:18 +00:00
added stripe checkout with stripe express onboarding for businesses
This commit is contained in:
parent
04b8b277e7
commit
6006fbd9fa
18 changed files with 965 additions and 126 deletions
|
|
@ -99,6 +99,8 @@ model Business {
|
|||
subscription Json?
|
||||
slug String? @unique
|
||||
isPublic Boolean @default(false)
|
||||
stripeAccountId String? @unique // Stripe Connect Account ID
|
||||
stripeAccountStatus String? // "pending" | "active" | "restricted"
|
||||
manager Manager @relation(fields: [managerId], references: [id])
|
||||
courses Course[]
|
||||
createdAt DateTime @default(now())
|
||||
|
|
@ -152,6 +154,11 @@ model CourseBooking {
|
|||
id String @id @default(uuid())
|
||||
courseId String
|
||||
userId String
|
||||
paymentStatus String @default("pending") // "pending" | "paid" | "failed" | "refunded"
|
||||
stripeSessionId String? @unique
|
||||
stripePaymentIntentId String? @unique
|
||||
amountPaid Float? // tatsächlich gezahlter Betrag in EUR
|
||||
platformFee Float? // unsere Service-Fee in EUR
|
||||
course Course @relation(fields: [courseId], references: [id], onDelete: Cascade)
|
||||
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
|
||||
createdAt DateTime @default(now())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue