@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielcok17/prisma-db",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Shared Prisma schema for Legal AI applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
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())