@bslau/hmm_prisma_schema 1.1.5 → 1.1.7
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
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
BEGIN TRY
|
|
2
|
+
|
|
3
|
+
BEGIN TRAN;
|
|
4
|
+
|
|
5
|
+
-- AlterTable
|
|
6
|
+
ALTER TABLE [dbo].[HotMetal] ADD [containsPunchOut] BIT NOT NULL CONSTRAINT [HotMetal_containsPunchOut_df] DEFAULT 0,
|
|
7
|
+
[desulphurisationComplete] BIT NOT NULL CONSTRAINT [HotMetal_desulphurisationComplete_df] DEFAULT 0;
|
|
8
|
+
|
|
9
|
+
-- AlterTable
|
|
10
|
+
ALTER TABLE [dbo].[Torpedo] ADD [addAlPucksFlag] BIT NOT NULL CONSTRAINT [Torpedo_addAlPucksFlag_df] DEFAULT 0,
|
|
11
|
+
[futureLocation] NVARCHAR(1000),
|
|
12
|
+
[heatUpFlag] BIT NOT NULL CONSTRAINT [Torpedo_heatUpFlag_df] DEFAULT 0,
|
|
13
|
+
[heatUpStartTime] DATETIMEOFFSET,
|
|
14
|
+
[onGasEndDate] DATETIMEOFFSET,
|
|
15
|
+
[onGasFlag] BIT NOT NULL CONSTRAINT [Torpedo_onGasFlag_df] DEFAULT 0,
|
|
16
|
+
[sixPitRestrictionEndTime] DATETIMEOFFSET,
|
|
17
|
+
[sixPitRestrictionFlag] BIT NOT NULL CONSTRAINT [Torpedo_sixPitRestrictionFlag_df] DEFAULT 0,
|
|
18
|
+
[status] INT;
|
|
19
|
+
|
|
20
|
+
COMMIT TRAN;
|
|
21
|
+
|
|
22
|
+
END TRY
|
|
23
|
+
BEGIN CATCH
|
|
24
|
+
|
|
25
|
+
IF @@TRANCOUNT > 0
|
|
26
|
+
BEGIN
|
|
27
|
+
ROLLBACK TRAN;
|
|
28
|
+
END;
|
|
29
|
+
THROW
|
|
30
|
+
|
|
31
|
+
END CATCH
|
package/prisma/schema.prisma
CHANGED
|
@@ -80,6 +80,8 @@ model HotMetal {
|
|
|
80
80
|
fillConstraintId String?
|
|
81
81
|
numberOfFillConstraints Int?
|
|
82
82
|
massHotMetalAdded Int?
|
|
83
|
+
desulphurisationComplete Boolean @default(false)
|
|
84
|
+
containsPunchOut Boolean @default(false)
|
|
83
85
|
createdAt DateTime @default(now())
|
|
84
86
|
updatedAt DateTime @updatedAt
|
|
85
87
|
// name String?
|
|
@@ -112,23 +114,30 @@ model HotMetal {
|
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
model Torpedo {
|
|
115
|
-
id
|
|
116
|
-
torpedoId
|
|
117
|
-
name
|
|
118
|
-
description
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
117
|
+
id Int @id @default(autoincrement())
|
|
118
|
+
torpedoId Int @unique(sort: Desc)
|
|
119
|
+
name String?
|
|
120
|
+
description String?
|
|
121
|
+
futureLocation String?
|
|
122
|
+
addAlPucksFlag Boolean @default(false)
|
|
123
|
+
heatUpFlag Boolean @default(false)
|
|
124
|
+
heatUpStartTime DateTime? @db.DateTimeOffset
|
|
125
|
+
onGasFlag Boolean @default(false)
|
|
126
|
+
onGasEndDate DateTime? @db.DateTimeOffset
|
|
127
|
+
sixPitRestrictionFlag Boolean @default(false)
|
|
128
|
+
sixPitRestrictionEndTime DateTime? @db.DateTimeOffset
|
|
129
|
+
status Int?
|
|
123
130
|
// sixPitStart DateTime?
|
|
124
131
|
// capacityDynamic Float?
|
|
125
132
|
// capacityNominal Float?
|
|
126
133
|
// comments String?
|
|
127
134
|
// emptyWeight Float?
|
|
128
135
|
// gasStart DateTime?
|
|
129
|
-
hotMetalCollection
|
|
130
|
-
torpedoLocation
|
|
131
|
-
eventsTorpedoMovement
|
|
136
|
+
hotMetalCollection HotMetal[]
|
|
137
|
+
torpedoLocation TorpedoLocation?
|
|
138
|
+
eventsTorpedoMovement EventTorpedoMovement[]
|
|
139
|
+
createdAt DateTime @default(now())
|
|
140
|
+
updatedAt DateTime @updatedAt
|
|
132
141
|
}
|
|
133
142
|
|
|
134
143
|
model Station {
|
|
@@ -191,14 +200,13 @@ model TorpedoLocation {
|
|
|
191
200
|
}
|
|
192
201
|
|
|
193
202
|
model EventTracker {
|
|
194
|
-
id
|
|
195
|
-
eventTime
|
|
196
|
-
eventType
|
|
203
|
+
id Int @id @default(autoincrement())
|
|
204
|
+
eventTime DateTime @db.DateTimeOffset
|
|
205
|
+
eventType String
|
|
206
|
+
userId String?
|
|
197
207
|
torpedoMovement EventTorpedoMovement?
|
|
198
208
|
}
|
|
199
209
|
|
|
200
|
-
|
|
201
|
-
|
|
202
210
|
model EventTorpedoMovement {
|
|
203
211
|
id Int @id @default(autoincrement())
|
|
204
212
|
torpedoId Int
|
|
@@ -218,4 +226,3 @@ model EventTorpedoMovement {
|
|
|
218
226
|
createdAt DateTime @default(now())
|
|
219
227
|
updatedAt DateTime @updatedAt
|
|
220
228
|
}
|
|
221
|
-
|