@danielcok17/prisma-db 1.6.0 → 1.7.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.6.0",
3
+ "version": "1.7.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
@@ -56,6 +56,7 @@ model User {
56
56
  subscriptionTier SubscriptionTier @default(FREE) // Aktuálny subscription tier (cache)
57
57
  messageCount Int @default(10) // ✅ OPRAVENÉ z 100 na 10
58
58
  messageCountResetAt DateTime? // Kedy sa má resetovať message count
59
+ adminGrantExpiresAt DateTime? // Kedy admin grant expiruje
59
60
  // Relations
60
61
  approvalRequest UserApprovalRequest?
61
62
  stripeCustomer StripeCustomer? // ✨ B2C Stripe customer
@@ -117,6 +118,7 @@ model Organization {
117
118
  messageCount Int @default(0) // Spoločný pool správ pre všetkých členov
118
119
  messageLimit Int @default(100) // Limit správ podľa tieru
119
120
  messageCountResetAt DateTime? // Kedy sa má resetovať pool
121
+ adminGrantExpiresAt DateTime? // Kedy admin grant expiruje
120
122
 
121
123
  // Settings
122
124
  isActive Boolean @default(true)