@campus-labs/prisma-client 0.12.5 → 0.12.7
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 +1 -1
- package/prisma/schema.prisma +3 -3
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -130,7 +130,7 @@ model initiatives {
|
|
|
130
130
|
location Json?
|
|
131
131
|
isPresential Boolean
|
|
132
132
|
volunteers_allowed Boolean @default(false)
|
|
133
|
-
project_id Int
|
|
133
|
+
project_id Int?
|
|
134
134
|
badges badges[]
|
|
135
135
|
badges_instances badges_instances[]
|
|
136
136
|
initiative_invitations initiative_invitations[]
|
|
@@ -247,7 +247,6 @@ model soft_skill_instance {
|
|
|
247
247
|
description String @db.VarChar(1000)
|
|
248
248
|
points Int?
|
|
249
249
|
status String @default("APPROVED") @db.VarChar(20)
|
|
250
|
-
votes Int @default(0)
|
|
251
250
|
soft_skill_id Int?
|
|
252
251
|
initiative_id Int?
|
|
253
252
|
user_id String? @db.VarChar(50)
|
|
@@ -263,7 +262,6 @@ model soft_skill_instance {
|
|
|
263
262
|
@@index([initiative_id, status], map: "idx_soft_skill_instance_initiative_status")
|
|
264
263
|
@@index([soft_skill_id, initiative_id], map: "idx_soft_skill_instance_soft_skill_init")
|
|
265
264
|
@@index([user_id, initiative_id], map: "idx_soft_skill_instance_user_init")
|
|
266
|
-
@@index([votes(sort: Desc)], map: "idx_soft_skill_instance_votes")
|
|
267
265
|
}
|
|
268
266
|
|
|
269
267
|
model soft_skills {
|
|
@@ -649,5 +647,7 @@ model snapshots {
|
|
|
649
647
|
updated_at DateTime @default(now()) @db.Timestamp(6)
|
|
650
648
|
deleted_at DateTime? @db.Timestamp(6)
|
|
651
649
|
|
|
650
|
+
projects projects @relation(fields: [project_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
651
|
+
|
|
652
652
|
@@index([project_id], map: "idx_snapshots_project")
|
|
653
653
|
}
|