@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 +1 -1
- package/prisma/app.prisma +13 -4
- package/prisma/generated/app/edge.js +10 -4
- package/prisma/generated/app/index-browser.js +7 -0
- package/prisma/generated/app/index.d.ts +102 -1
- package/prisma/generated/app/index.js +10 -4
- package/prisma/generated/app/package.json +1 -1
- package/prisma/generated/app/schema.prisma +15 -6
- package/prisma/generated/app/wasm.js +10 -4
- package/prisma/migrations/20260102162551_add_billing_interval/migration.sql +8 -0
- package/prisma/migrations/20260102220947_add_lawyer_pro_tier/migration.sql +2 -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
|
|
|
@@ -514,10 +516,17 @@ enum SubscriptionStatus {
|
|
|
514
516
|
|
|
515
517
|
// Stripe: Tier predplatného
|
|
516
518
|
enum SubscriptionTier {
|
|
517
|
-
FREE //
|
|
518
|
-
LAWYER //
|
|
519
|
-
|
|
520
|
-
|
|
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í
|