@danielcok17/prisma-db 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/app.prisma +8 -0
- package/prisma/generated/app/edge.js +9 -3
- package/prisma/generated/app/index-browser.js +6 -0
- package/prisma/generated/app/index.d.ts +101 -1
- package/prisma/generated/app/index.js +9 -3
- package/prisma/generated/app/package.json +1 -1
- package/prisma/generated/app/schema.prisma +10 -2
- package/prisma/generated/app/wasm.js +9 -3
- package/prisma/migrations/20260102162551_add_billing_interval/migration.sql +8 -0
package/package.json
CHANGED
package/prisma/app.prisma
CHANGED
|
@@ -393,6 +393,7 @@ model StripeSubscription {
|
|
|
393
393
|
|
|
394
394
|
status SubscriptionStatus
|
|
395
395
|
tier SubscriptionTier @default(FREE)
|
|
396
|
+
billingInterval BillingInterval @default(MONTHLY) // Monthly or Yearly billing
|
|
396
397
|
|
|
397
398
|
currentPeriodStart DateTime
|
|
398
399
|
currentPeriodEnd DateTime
|
|
@@ -418,6 +419,7 @@ model StripeSubscription {
|
|
|
418
419
|
@@index([stripeCustomerId])
|
|
419
420
|
@@index([status])
|
|
420
421
|
@@index([tier])
|
|
422
|
+
@@index([billingInterval])
|
|
421
423
|
@@index([currentPeriodEnd])
|
|
422
424
|
}
|
|
423
425
|
|
|
@@ -520,6 +522,12 @@ enum SubscriptionTier {
|
|
|
520
522
|
ENTERPRISE // Enterprise tier (unlimited správ, unlimited users, custom price)
|
|
521
523
|
}
|
|
522
524
|
|
|
525
|
+
// Stripe: Billing interval
|
|
526
|
+
enum BillingInterval {
|
|
527
|
+
MONTHLY // Monthly billing
|
|
528
|
+
YEARLY // Yearly billing (17% discount)
|
|
529
|
+
}
|
|
530
|
+
|
|
523
531
|
// Nový model pre logovanie admin akcií
|
|
524
532
|
model AdminActionLog {
|
|
525
533
|
id String @id @default(cuid())
|