@campus-labs/prisma-client 0.15.0 → 0.16.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.
@@ -0,0 +1,11 @@
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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campus-labs/prisma-client",
3
- "version": "0.15.0",
3
+ "version": "0.16.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[]
@@ -367,8 +367,8 @@ model users {
367
367
  feedbackInitiatives feedback_initiative[]
368
368
  power_up_instances power_up_instances[]
369
369
  expelled_user_initiatives user_initiative[] @relation("UserInitiativeExpeller")
370
- projects projects[] @relation("ProjectAuthor")
371
- designed_projects projects[] @relation("ProjectEditor")
370
+ authors projects[] @relation("ProjectAuthor")
371
+ editors projects[] @relation("ProjectEditor")
372
372
 
373
373
  @@index([role_platform_id], map: "idx_users_role")
374
374
  @@index([points(sort: Desc)], map: "idx_users_points")
@@ -635,11 +635,11 @@ model snapshots {
635
635
  }
636
636
 
637
637
  model tags {
638
- id Int @id @default(autoincrement())
639
- tag String @unique @db.VarChar(50)
640
- created_at DateTime @default(now()) @db.Timestamp(6)
641
- updated_at DateTime @default(now()) @db.Timestamp(6)
642
- deleted_at DateTime? @db.Timestamp(6)
638
+ id Int @id @default(autoincrement())
639
+ tag String @unique @db.VarChar(50)
640
+ created_at DateTime @default(now()) @db.Timestamp(6)
641
+ updated_at DateTime @default(now()) @db.Timestamp(6)
642
+ deleted_at DateTime? @db.Timestamp(6)
643
643
 
644
644
  initiatives_tags initiatives_tags[]
645
645
 
@@ -685,16 +685,17 @@ model projects {
685
685
  }
686
686
 
687
687
  model patches {
688
- id Int @id @default(autoincrement())
689
- project_id Int
690
- operations Json[]
691
- is_ai_generated Boolean @default(false)
692
- is_adopted String @default("PENDING") @db.VarChar(20)
693
- version Int @default(1)
694
- type String @default("NORMAL") @db.VarChar(20)
695
- created_at DateTime @default(now()) @db.Timestamp(6)
696
- updated_at DateTime @default(now()) @db.Timestamp(6)
697
- deleted_at DateTime? @db.Timestamp(6)
688
+ id Int @id @default(autoincrement())
689
+ project_id Int
690
+ forward_ops Json[]
691
+ reverse_ops Json[]
692
+ ai_generated Boolean @default(false)
693
+ status String @default("APPLIED") @db.VarChar(20)
694
+ version Int @default(1)
695
+ type String @default("NORMAL") @db.VarChar(20)
696
+ created_at DateTime @default(now()) @db.Timestamp(6)
697
+ updated_at DateTime @default(now()) @db.Timestamp(6)
698
+ deleted_at DateTime? @db.Timestamp(6)
698
699
 
699
700
  projects projects @relation(fields: [project_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
700
701