@campus-labs/prisma-client 0.3.2 → 0.4.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 +1 -1
- package/prisma/schema.prisma +6 -6
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -22,13 +22,13 @@ model areas {
|
|
|
22
22
|
model badges {
|
|
23
23
|
id Int @id @default(autoincrement())
|
|
24
24
|
title String @db.VarChar(100)
|
|
25
|
-
description String
|
|
25
|
+
description String? @db.VarChar(1000)
|
|
26
26
|
condition String @db.VarChar(1000)
|
|
27
27
|
img Json
|
|
28
28
|
is_draft Boolean @default(true)
|
|
29
29
|
is_model Boolean @default(false)
|
|
30
30
|
points Int
|
|
31
|
-
fields Json
|
|
31
|
+
fields Json?
|
|
32
32
|
moment_id Int?
|
|
33
33
|
initiative_id Int?
|
|
34
34
|
type_id Int
|
|
@@ -45,11 +45,11 @@ model badges {
|
|
|
45
45
|
model badges_instances {
|
|
46
46
|
id Int @id @default(autoincrement())
|
|
47
47
|
title String @db.VarChar(100)
|
|
48
|
-
description String
|
|
48
|
+
description String? @db.VarChar(1000)
|
|
49
49
|
condition String @db.VarChar(1000)
|
|
50
50
|
img Json
|
|
51
51
|
points Int
|
|
52
|
-
fields Json
|
|
52
|
+
fields Json?
|
|
53
53
|
status String @default("PENDING") @db.VarChar(20)
|
|
54
54
|
given_by String? @db.VarChar(50)
|
|
55
55
|
awarded_at DateTime? @db.Timestamp(6)
|
|
@@ -108,7 +108,7 @@ model initiatives {
|
|
|
108
108
|
is_model Boolean @default(false)
|
|
109
109
|
is_approved Boolean @default(false)
|
|
110
110
|
program_id Int?
|
|
111
|
-
area_id Int
|
|
111
|
+
area_id Int?
|
|
112
112
|
typology_id Int
|
|
113
113
|
openings Int?
|
|
114
114
|
created_at DateTime @default(now()) @db.Timestamp(6)
|
|
@@ -119,7 +119,7 @@ model initiatives {
|
|
|
119
119
|
badges badges[]
|
|
120
120
|
badges_instances badges_instances[]
|
|
121
121
|
initiative_invitations initiative_invitations[]
|
|
122
|
-
areas areas
|
|
122
|
+
areas areas? @relation(fields: [area_id], references: [id], onDelete: Restrict, onUpdate: Cascade)
|
|
123
123
|
programs programs? @relation(fields: [program_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
124
124
|
typologies typologies? @relation(fields: [typology_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
125
125
|
initiatives_soft_skills initiatives_soft_skills[]
|