@campus-labs/prisma-client 0.15.1 → 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.15.1",
3
+ "version": "0.17.0",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -23,7 +23,7 @@ model badges {
23
23
  id Int @id @default(autoincrement())
24
24
  title String @db.VarChar(100)
25
25
  description String? @db.VarChar(1000)
26
- condition String @db.VarChar(1000)
26
+ criteria String[] @db.VarChar(500)
27
27
  img Json
28
28
  points Int
29
29
  fields Json?
@@ -48,7 +48,7 @@ model badges_instances {
48
48
  id Int @id @default(autoincrement())
49
49
  title String @db.VarChar(100)
50
50
  description String? @db.VarChar(1000)
51
- condition String @db.VarChar(1000)
51
+ criteria String[] @db.VarChar(500)
52
52
  img Json
53
53
  points Int
54
54
  fields Json?
@@ -127,8 +127,8 @@ model initiatives {
127
127
  created_at DateTime @default(now()) @db.Timestamp(6)
128
128
  updated_at DateTime @default(now()) @db.Timestamp(6)
129
129
  deleted_at DateTime? @db.Timestamp(6)
130
- location Json?
131
- isPresential Boolean
130
+ location String? @db.VarChar(1000)
131
+ attendance_mode String? @db.VarChar(20)
132
132
  volunteers_allowed Boolean @default(false)
133
133
  project_id Int?
134
134
  badges badges[]
@@ -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
  }