@campus-labs/prisma-client 0.3.0 → 0.3.2

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.0",
3
+ "version": "0.3.2",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",
@@ -14,13 +14,14 @@
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",
21
21
  "deploy:prod": "dotenv -e .env.production -- npx prisma migrate deploy",
22
22
  "show-ascii": "node scripts/displayAsciiArt.js",
23
- "show-ascii-delayed": "node scripts/startup.js"
23
+ "show-ascii-delayed": "node scripts/startup.js",
24
+ "postinstall": "npx prisma@6.9.0 generate"
24
25
  },
25
26
  "prisma": {
26
27
  "seed": "ts-node prisma/seed.ts"
@@ -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
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)
@@ -121,6 +121,7 @@ model initiatives {
121
121
  initiative_invitations initiative_invitations[]
122
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
+ }