@campus-labs/prisma-client 0.3.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campus-labs/prisma-client",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -14,7 +14,7 @@
14
14
  "reset:dev": "npx prisma migrate reset",
15
15
  "seed:dev": "npx prisma db seed",
16
16
  "deploy:dev": "npx prisma migrate deploy",
17
- "generate": "npx prisma generate",
17
+ "generate": "npx prisma@6.9.0 generate",
18
18
  "deploy:staging": "dotenv -e .env.staging -- npx prisma migrate deploy",
19
19
  "reset:staging": "dotenv -e .env.staging -- npx prisma migrate reset",
20
20
  "seed:staging": "dotenv -e .env.staging -- npx prisma db seed",
@@ -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 @db.VarChar(1000)
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 @db.VarChar(1000)
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)
@@ -103,13 +103,13 @@ model initiatives {
103
103
  inscription_deadline DateTime @db.Timestamp(6)
104
104
  start_date DateTime @db.Timestamp(6)
105
105
  end_date DateTime @db.Timestamp(6)
106
- typology String @db.VarChar(255)
107
106
  is_private Boolean @default(false)
108
107
  is_draft Boolean @default(true)
109
108
  is_model Boolean @default(false)
110
109
  is_approved Boolean @default(false)
111
110
  program_id Int?
112
- area_id Int
111
+ area_id Int?
112
+ typology_id Int
113
113
  openings Int?
114
114
  created_at DateTime @default(now()) @db.Timestamp(6)
115
115
  updated_at DateTime @default(now()) @db.Timestamp(6)
@@ -119,8 +119,9 @@ model initiatives {
119
119
  badges badges[]
120
120
  badges_instances badges_instances[]
121
121
  initiative_invitations initiative_invitations[]
122
- areas areas @relation(fields: [area_id], references: [id], onDelete: Restrict, onUpdate: Cascade)
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
+ typologies typologies? @relation(fields: [typology_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
124
125
  initiatives_soft_skills initiatives_soft_skills[]
125
126
  moments moments[]
126
127
  soft_skill_instance soft_skill_instance[]
@@ -410,3 +411,12 @@ model notifications {
410
411
  @@index([sent_at(sort: Desc)])
411
412
  @@index([sender_id])
412
413
  }
414
+
415
+ model typologies {
416
+ id Int @id @default(autoincrement())
417
+ typology String @unique @db.VarChar(100)
418
+ created_at DateTime @default(now()) @db.Timestamp(6)
419
+ updated_at DateTime @default(now()) @db.Timestamp(6)
420
+ deleted_at DateTime? @db.Timestamp(6)
421
+ initiatives initiatives[]
422
+ }