@bslau/hmm_prisma_schema 1.23.0 → 1.23.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
CHANGED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
BEGIN TRY
|
|
2
|
+
|
|
3
|
+
BEGIN TRAN;
|
|
4
|
+
|
|
5
|
+
-- AlterTable
|
|
6
|
+
ALTER TABLE [dbo].[HotMetalMass] ADD [steelmakingGradeName] NVARCHAR(1000);
|
|
7
|
+
|
|
8
|
+
COMMIT TRAN;
|
|
9
|
+
|
|
10
|
+
END TRY
|
|
11
|
+
BEGIN CATCH
|
|
12
|
+
|
|
13
|
+
IF @@TRANCOUNT > 0
|
|
14
|
+
BEGIN
|
|
15
|
+
ROLLBACK TRAN;
|
|
16
|
+
END;
|
|
17
|
+
THROW
|
|
18
|
+
|
|
19
|
+
END CATCH
|
package/prisma/schema.prisma
CHANGED
|
@@ -316,14 +316,15 @@ model HotMetalLabResult {
|
|
|
316
316
|
/// for. The intent is that these records form a history of a _HotMetal_
|
|
317
317
|
/// batch's mass alterations (whatever that may have been).
|
|
318
318
|
model HotMetalMass {
|
|
319
|
-
id
|
|
320
|
-
mass
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
hotMetalMassTypeId
|
|
325
|
-
|
|
326
|
-
|
|
319
|
+
id Int @id @default(autoincrement())
|
|
320
|
+
mass Float
|
|
321
|
+
steelmakingGradeName String?
|
|
322
|
+
hotMetalId Int
|
|
323
|
+
hotMetal HotMetal @relation(references: [id], fields: [hotMetalId])
|
|
324
|
+
hotMetalMassType HotMetalMassType @relation(fields: [hotMetalMassTypeId], references: [id], onDelete: NoAction, onUpdate: Cascade)
|
|
325
|
+
hotMetalMassTypeId Int
|
|
326
|
+
createdAt DateTime @default(now())
|
|
327
|
+
updatedAt DateTime @updatedAt
|
|
327
328
|
}
|
|
328
329
|
|
|
329
330
|
/// **HOT METAL MASS TYPE**
|