@bslau/hmm_prisma_schema 1.15.0 → 1.15.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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
BEGIN TRY
|
|
2
|
+
|
|
3
|
+
BEGIN TRAN;
|
|
4
|
+
|
|
5
|
+
-- AlterTable
|
|
6
|
+
ALTER TABLE [dbo].[PotMetal] ALTER COLUMN [dateConsumed] DATETIMEOFFSET NULL;
|
|
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
|
@@ -387,14 +387,14 @@ model Pot {
|
|
|
387
387
|
///
|
|
388
388
|
/// Represents the _Hot Metal_ poured into a pot, and tracks when the pot is emptied
|
|
389
389
|
model PotMetal {
|
|
390
|
-
id
|
|
391
|
-
isConsumed
|
|
392
|
-
dateConsumed
|
|
393
|
-
|
|
394
|
-
potId
|
|
395
|
-
pot
|
|
396
|
-
createdAt
|
|
397
|
-
updatedAt
|
|
390
|
+
id Int @id @default(autoincrement())
|
|
391
|
+
isConsumed Boolean @default(false)
|
|
392
|
+
dateConsumed DateTime? @db.DateTimeOffset
|
|
393
|
+
potMetalPouredCollection PotMetalPoured[]
|
|
394
|
+
potId Int
|
|
395
|
+
pot Pot @relation(references: [id], fields: [potId])
|
|
396
|
+
createdAt DateTime @default(now())
|
|
397
|
+
updatedAt DateTime @updatedAt
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
/// **POT METAL POURED**
|
|
@@ -406,9 +406,8 @@ model PotMetalPoured {
|
|
|
406
406
|
mass Float
|
|
407
407
|
potMetalId Int @unique
|
|
408
408
|
potMetal PotMetal @relation(references: [id], fields: [potMetalId])
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
updatedAt DateTime @updatedAt
|
|
409
|
+
createdAt DateTime @default(now())
|
|
410
|
+
updatedAt DateTime @updatedAt
|
|
412
411
|
}
|
|
413
412
|
|
|
414
413
|
/// **STATION**
|