efiber-prisma-schema 1.10.11 → 1.10.13
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 +6 -3
- package/prisma/migrations/20250514143429_work_order_pauses_end_at_nullable/migration.sql +2 -0
- package/prisma/migrations/20250514144701_workorder_is_paused_column/migration.sql +2 -0
- package/prisma/migrations/20250516124919_team_to_dispatch_team/migration.sql +5 -0
- package/prisma/schema.prisma +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "efiber-prisma-schema",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.13",
|
|
4
4
|
"description": "Database schema for eFiber",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,10 +18,13 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://github.com/ubuniworks-projects/efiber-prisma-schema#readme",
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@prisma/client": "^6.
|
|
22
|
-
"prisma": "^6.
|
|
21
|
+
"@prisma/client": "^6.8.1",
|
|
22
|
+
"prisma": "^6.8.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@prisma/client": ">=5"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"npm": "^11.4.0"
|
|
26
29
|
}
|
|
27
30
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
-- AlterTable
|
|
2
|
+
ALTER TABLE "DispatchTeam" ADD COLUMN "contractorTeamId" TEXT;
|
|
3
|
+
|
|
4
|
+
-- AddForeignKey
|
|
5
|
+
ALTER TABLE "DispatchTeam" ADD CONSTRAINT "DispatchTeam_contractorTeamId_fkey" FOREIGN KEY ("contractorTeamId") REFERENCES "Team"("id") ON DELETE SET NULL ON UPDATE CASCADE;
|
package/prisma/schema.prisma
CHANGED
|
@@ -302,6 +302,7 @@ model Team {
|
|
|
302
302
|
teamTypeId String
|
|
303
303
|
TeamPlatform TeamPlatform[]
|
|
304
304
|
User User[]
|
|
305
|
+
DispatchTeam DispatchTeam[]
|
|
305
306
|
}
|
|
306
307
|
|
|
307
308
|
model TeamPlatform {
|
|
@@ -556,6 +557,9 @@ model DispatchTeam {
|
|
|
556
557
|
secondTechnicianId String?
|
|
557
558
|
otherTechnicianId String?
|
|
558
559
|
|
|
560
|
+
contractorTeam Team? @relation(fields: [contractorTeamId], references: [id])
|
|
561
|
+
contractorTeamId String?
|
|
562
|
+
|
|
559
563
|
TeamMaterial TeamMaterial[]
|
|
560
564
|
WorkOrders WorkOrder[]
|
|
561
565
|
dispatchProjects DispatchProject[]
|
|
@@ -737,6 +741,7 @@ model WorkOrder {
|
|
|
737
741
|
actionDate DateTime? //Date the work order was completed
|
|
738
742
|
auditMatrices Json?
|
|
739
743
|
sla String?
|
|
744
|
+
isPaused Boolean @default(false)
|
|
740
745
|
|
|
741
746
|
createdAt DateTime @default(now())
|
|
742
747
|
updatedAt DateTime @updatedAt
|