@campus-labs/prisma-client 0.12.4 → 0.12.5

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.12.4",
3
+ "version": "0.12.5",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -130,12 +130,14 @@ model initiatives {
130
130
  location Json?
131
131
  isPresential Boolean
132
132
  volunteers_allowed Boolean @default(false)
133
+ project_id Int
133
134
  badges badges[]
134
135
  badges_instances badges_instances[]
135
136
  initiative_invitations initiative_invitations[]
136
137
  areas areas? @relation(fields: [area_id], references: [id], onDelete: Restrict, onUpdate: Cascade)
137
138
  programs programs? @relation(fields: [program_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
138
139
  typologies typologies? @relation(fields: [typology_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
140
+ projects projects? @relation(fields: [project_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
139
141
  initiatives_soft_skills initiatives_soft_skills[]
140
142
  moments moments[]
141
143
  soft_skill_instance soft_skill_instance[]
@@ -628,11 +630,14 @@ model projects {
628
630
  updated_at DateTime @default(now()) @db.Timestamp(6)
629
631
  deleted_at DateTime? @db.Timestamp(6)
630
632
  snapshots snapshots[]
633
+ initiatives initiatives[]
631
634
 
632
635
  users users @relation("ProjectAuthor", fields: [author_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
633
636
  gamification_designer users @relation("ProjectGamificationDesigner", fields: [gamification_designer_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
634
637
 
638
+
635
639
  @@index([author_id], map: "idx_projects_author")
640
+ @@index([gamification_designer_id], map: "idx_projects_designer")
636
641
  }
637
642
 
638
643
  model snapshots {
@@ -644,7 +649,5 @@ model snapshots {
644
649
  updated_at DateTime @default(now()) @db.Timestamp(6)
645
650
  deleted_at DateTime? @db.Timestamp(6)
646
651
 
647
- projects projects @relation(fields: [project_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
648
-
649
652
  @@index([project_id], map: "idx_snapshots_project")
650
653
  }
@@ -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
- }