@campus-labs/prisma-client 0.12.0 → 0.12.1
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 +2 -2
- package/prisma/schema.prisma +17 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@campus-labs/prisma-client",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"seed:dev": "npx prisma db seed",
|
|
16
16
|
"deploy:dev": "npx prisma migrate deploy",
|
|
17
17
|
"generate": "npx prisma@6.9.0 generate",
|
|
18
|
-
"deploy:staging": "dotenv -e .env.staging -- npx prisma migrate deploy",
|
|
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",
|
package/prisma/schema.prisma
CHANGED
|
@@ -367,7 +367,8 @@ model users {
|
|
|
367
367
|
feedbackInitiatives feedback_initiative[]
|
|
368
368
|
power_up_instances power_up_instances[]
|
|
369
369
|
expelled_user_initiatives user_initiative[] @relation("UserInitiativeExpeller")
|
|
370
|
-
projects projects[]
|
|
370
|
+
projects projects[] @relation("ProjectAuthor")
|
|
371
|
+
designed_projects projects[] @relation("ProjectGamificationDesigner")
|
|
371
372
|
|
|
372
373
|
@@index([role_platform_id], map: "idx_users_role")
|
|
373
374
|
@@index([points(sort: Desc)], map: "idx_users_points")
|
|
@@ -618,18 +619,20 @@ model power_up_instances {
|
|
|
618
619
|
}
|
|
619
620
|
|
|
620
621
|
model projects {
|
|
621
|
-
id
|
|
622
|
-
title
|
|
623
|
-
is_draft
|
|
624
|
-
is_pending
|
|
625
|
-
is_published
|
|
626
|
-
author_id
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
622
|
+
id Int @id @default(autoincrement())
|
|
623
|
+
title String @db.VarChar(100)
|
|
624
|
+
is_draft Boolean @default(true)
|
|
625
|
+
is_pending Boolean @default(false)
|
|
626
|
+
is_published Boolean @default(false)
|
|
627
|
+
author_id String @db.VarChar(50)
|
|
628
|
+
gamification_designer_id String @db.VarChar(50)
|
|
629
|
+
created_at DateTime @default(now()) @db.Timestamp(6)
|
|
630
|
+
updated_at DateTime @default(now()) @db.Timestamp(6)
|
|
631
|
+
deleted_at DateTime? @db.Timestamp(6)
|
|
632
|
+
snapshots snapshots[]
|
|
633
|
+
|
|
634
|
+
users users @relation("ProjectAuthor", fields: [author_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
635
|
+
gamification_designer users @relation("ProjectGamificationDesigner", fields: [gamification_designer_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
633
636
|
|
|
634
637
|
@@index([author_id], map: "idx_projects_author")
|
|
635
638
|
}
|
|
@@ -646,4 +649,4 @@ model snapshots {
|
|
|
646
649
|
projects projects @relation(fields: [project_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
647
650
|
|
|
648
651
|
@@index([project_id], map: "idx_snapshots_project")
|
|
649
|
-
}
|
|
652
|
+
}
|