@javalabs/prisma-client 1.0.12 → 1.0.13

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": "@javalabs/prisma-client",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Shared Prisma client for Tupay microservices",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -7,6 +7,25 @@ datasource db {
7
7
  url = env("DATABASE_URL")
8
8
  }
9
9
 
10
+ model ClientsApiKeys {
11
+ id String @id @default(uuid())
12
+ key String @unique
13
+ clientId String
14
+ isActive Boolean @default(true)
15
+ expiresAt DateTime
16
+ createdAt DateTime @default(now())
17
+ usage ClientsApiKeyUsage[]
18
+ }
19
+
20
+ model ClientsApiKeyUsage {
21
+ id String @id @default(uuid())
22
+ apiKeyId String
23
+ clientId String
24
+ ipAddress String
25
+ usedAt DateTime @default(now())
26
+ apiKey ClientsApiKeys @relation(fields: [apiKeyId], references: [id])
27
+ }
28
+
10
29
  model api_keys {
11
30
  id Int @id @default(autoincrement())
12
31
  name String @db.VarChar(255)