@danielcok17/prisma-db 1.3.0 → 1.5.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.5.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
 
@@ -514,10 +516,17 @@ enum SubscriptionStatus {
514
516
 
515
517
  // Stripe: Tier predplatného
516
518
  enum SubscriptionTier {
517
- FREE // Bezplatný tier (10 správ)
518
- LAWYER // Právnik tier (1000 správ, €49/mes, 1 user)
519
- LAW_FIRM // Právna kancelária tier (5000 správ, €149/mes, 5 users)
520
- ENTERPRISE // Enterprise tier (unlimited správ, unlimited users, custom price)
519
+ FREE // Free tier (10 messages/month)
520
+ LAWYER // Lawyer tier (1000 messages/month, €29/month, 1 user)
521
+ LAWYER_PRO // Lawyer Pro tier (3000 messages/month, €49/month, 1 user) - RECOMMENDED
522
+ LAW_FIRM // Law Firm tier (10000 messages/month, €129/month, up to 5 users)
523
+ ENTERPRISE // Enterprise tier (unlimited messages, unlimited users, custom pricing)
524
+ }
525
+
526
+ // Stripe: Billing interval
527
+ enum BillingInterval {
528
+ MONTHLY // Monthly billing
529
+ YEARLY // Yearly billing (17% discount)
521
530
  }
522
531
 
523
532
  // Nový model pre logovanie admin akcií