@campus-labs/prisma-client 0.16.0 → 0.17.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": "@campus-labs/prisma-client",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -369,6 +369,7 @@ model users {
369
369
  expelled_user_initiatives user_initiative[] @relation("UserInitiativeExpeller")
370
370
  authors projects[] @relation("ProjectAuthor")
371
371
  editors projects[] @relation("ProjectEditor")
372
+ users_ai_requests users_ai_requests[]
372
373
 
373
374
  @@index([role_platform_id], map: "idx_users_role")
374
375
  @@index([points(sort: Desc)], map: "idx_users_points")
@@ -700,4 +701,15 @@ model patches {
700
701
  projects projects @relation(fields: [project_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
701
702
 
702
703
  @@index([project_id], map: "idx_patches_project")
704
+ }
705
+
706
+ model users_ai_requests {
707
+ user_id String @db.VarChar(50) @unique
708
+ available Int @default(10)
709
+ total Int @default(0)
710
+ last_updated DateTime @default(now()) @db.Timestamp(6)
711
+
712
+ users users @relation(fields: [user_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
713
+
714
+ @@index([user_id], map: "idx_users_ai_requests_user")
703
715
  }
@@ -1,11 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(ls -la /Users/nunomatos/Desktop/SerMais/prisma/.env*)",
5
- "Bash(git check-ignore -v /Users/nunomatos/Desktop/SerMais/prisma/.env.staging)",
6
- "Bash(git check-ignore -v .env.staging)",
7
- "Bash(ls -la /Users/nunomatos/Desktop/SerMais/prisma/*.ts /Users/nunomatos/Desktop/SerMais/prisma/*.js)",
8
- "Bash(grep -r \"\\\\.password\" /Users/nunomatos/Desktop/SerMais --include=\"*.ts\" --include=\"*.js\" ! -path \"*/node_modules/*\" ! -path \"*/.next/*\" ! -path \"*/dist/*\")"
9
- ]
10
- }
11
- }