@bslau/hmm_prisma_schema 1.1.1 → 1.1.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 +21 -21
- package/prisma/migrations/20240730025834_init/migration.sql +96 -96
- package/prisma/migrations/20240730053855_init/migration.sql +25 -25
- package/prisma/migrations/20240730060242_init/migration.sql +25 -25
- package/prisma/migrations/20240801042613_init/migration.sql +19 -19
- package/prisma/migrations/20240806010155_introspected_change/migration.sql +26 -26
- package/prisma/migrations/20240806010300_init/migration.sql +38 -38
- package/prisma/migrations/20240806010520_init/migration.sql +26 -26
- package/prisma/migrations/20240806014057_init/migration.sql +28 -28
- package/prisma/migrations/20240806014113_init/migration.sql +30 -30
- package/prisma/migrations/20240806021256_init/migration.sql +48 -48
- package/prisma/migrations/20240806034906_init/migration.sql +26 -26
- package/prisma/migrations/20240807043238_init/migration.sql +38 -38
- package/prisma/migrations/20240807051740_init/migration.sql +19 -19
- package/prisma/migrations/20240808065630_init/migration.sql +20 -20
- package/prisma/migrations/20240902061655_init/migration.sql +43 -43
- package/prisma/migrations/20240903004603_init/migration.sql +44 -44
- package/prisma/migrations/20240903005945_init/migration.sql +35 -35
- package/prisma/migrations/migration_lock.toml +2 -2
- package/prisma/schema.prisma +186 -186
package/prisma/schema.prisma
CHANGED
|
@@ -1,186 +1,186 @@
|
|
|
1
|
-
generator client {
|
|
2
|
-
provider = "prisma-client-js"
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
datasource db {
|
|
6
|
-
provider = "sqlserver"
|
|
7
|
-
url = env("DATABASE_URL")
|
|
8
|
-
shadowDatabaseUrl = env("SHADOW_DATABASE_URL")
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
model Cast {
|
|
12
|
-
id Int @id @default(autoincrement())
|
|
13
|
-
sequenceCastBlastFurnace Int @unique(sort: Desc)
|
|
14
|
-
datetimeOpeningTapHole DateTime? @db.DateTimeOffset
|
|
15
|
-
furnace Int
|
|
16
|
-
identityTapHole Int?
|
|
17
|
-
datetimeGunUpTapHole DateTime? @db.DateTimeOffset
|
|
18
|
-
diameterTappingJackBit Int?
|
|
19
|
-
lengthTapHole Float?
|
|
20
|
-
codeIronSlagFlowedFirst String?
|
|
21
|
-
durationDelayCast Int?
|
|
22
|
-
reasonDelay Int?
|
|
23
|
-
codeOpeningTaphole String?
|
|
24
|
-
minutesToOpen Int?
|
|
25
|
-
codeConditionTapholeCh String?
|
|
26
|
-
// [?]
|
|
27
|
-
// codeTypeRun String?
|
|
28
|
-
// [?]
|
|
29
|
-
massIronBeforeSlag Int?
|
|
30
|
-
// [?]
|
|
31
|
-
durationIronBeforeSlag Int?
|
|
32
|
-
// [?]
|
|
33
|
-
massSlagBeforeIron Int?
|
|
34
|
-
// [?]
|
|
35
|
-
durationSlagBeforeIron Int?
|
|
36
|
-
identityClayBox Int?
|
|
37
|
-
codeTypeClay String?
|
|
38
|
-
volumeClayGunUp Float?
|
|
39
|
-
clayVolumeRate Float?
|
|
40
|
-
pressureRam Float?
|
|
41
|
-
preGunUpTemp Float?
|
|
42
|
-
gunupMaxTemp Float?
|
|
43
|
-
gunOnHoleDuration Float?
|
|
44
|
-
// [?] Y/N Or Boolean
|
|
45
|
-
codeKish String?
|
|
46
|
-
codeTypeGunUp Int?
|
|
47
|
-
// [?] Y/N Or Boolean
|
|
48
|
-
codeFceDry String?
|
|
49
|
-
// [?] Y/N Or Boolean
|
|
50
|
-
codeWindCheck String?
|
|
51
|
-
createdAt DateTime @default(now())
|
|
52
|
-
updatedAt DateTime @updatedAt
|
|
53
|
-
hotMetalCollection HotMetal[]
|
|
54
|
-
// [?]
|
|
55
|
-
// numberOfTorpedos null
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
model HotMetal {
|
|
59
|
-
id Int @id @default(autoincrement())
|
|
60
|
-
mesId Int?
|
|
61
|
-
cast Cast @relation(fields: [castSequence], references: [sequenceCastBlastFurnace], onDelete: NoAction, onUpdate: Cascade)
|
|
62
|
-
castSequence Int
|
|
63
|
-
torpedo Torpedo @relation(fields: [torpedoId], references: [torpedoId], onDelete: NoAction, onUpdate: Cascade)
|
|
64
|
-
torpedoId Int
|
|
65
|
-
labResult HotMetalLabResult?
|
|
66
|
-
dateTimeStartFill DateTime? @db.DateTimeOffset
|
|
67
|
-
dateTimeEndFill DateTime? @db.DateTimeOffset
|
|
68
|
-
identityBlastFurnace Int
|
|
69
|
-
noPosnTldlTapHole Int
|
|
70
|
-
temperatureHotMetal Int?
|
|
71
|
-
dpLevelTldlAuto Int?
|
|
72
|
-
dpLevelTldlManual Int?
|
|
73
|
-
capacity Int?
|
|
74
|
-
massHotMetalResidueTldl Int?
|
|
75
|
-
massHotMetalTldlEstimated Int?
|
|
76
|
-
massActual Int?
|
|
77
|
-
runRate Float?
|
|
78
|
-
punchOut Boolean @default(false)
|
|
79
|
-
plannedLevelFill Int?
|
|
80
|
-
startLevelFill Int?
|
|
81
|
-
tareWeight Int?
|
|
82
|
-
fillConstraintId String?
|
|
83
|
-
numberOfFillConstraints Int?
|
|
84
|
-
massHotMetalAdded Int?
|
|
85
|
-
createdAt DateTime @default(now())
|
|
86
|
-
updatedAt DateTime @updatedAt
|
|
87
|
-
// name String?
|
|
88
|
-
// description String?
|
|
89
|
-
// // TODO: confirm default value
|
|
90
|
-
// addAlPucks Boolean @default(false)
|
|
91
|
-
// alPucksAdded Boolean @default(false)
|
|
92
|
-
// // [?] Necessary?
|
|
93
|
-
// // castEndDateTime DateTime
|
|
94
|
-
// // [?] One to Many or Many to Many
|
|
95
|
-
// consumerBy Int?
|
|
96
|
-
// desulphurized Boolean @default(false)
|
|
97
|
-
// mass Float?
|
|
98
|
-
// massUnitOfMeasure String?
|
|
99
|
-
// punchOut Boolean?
|
|
100
|
-
// runRate Float?
|
|
101
|
-
// silicon Float?
|
|
102
|
-
// status String?
|
|
103
|
-
// sulphur Float?
|
|
104
|
-
// // [?] Necessary?
|
|
105
|
-
// // Taphole
|
|
106
|
-
// temperature Float?
|
|
107
|
-
// temperatureUnitOfMeasure String?
|
|
108
|
-
// torpedoFillEnd DateTime? @db.DateTimeOffset
|
|
109
|
-
// torpedoFillStart DateTime? @db.DateTimeOffset
|
|
110
|
-
// torpedoFillLevel Int?
|
|
111
|
-
// torpedoes Torpedo[]
|
|
112
|
-
|
|
113
|
-
@@unique(name: "cast_torpedo_id", [castSequence, torpedoId])
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
model Torpedo {
|
|
117
|
-
id Int @id @default(autoincrement())
|
|
118
|
-
torpedoId Int @unique(sort: Desc)
|
|
119
|
-
name String?
|
|
120
|
-
description String?
|
|
121
|
-
createdAt DateTime @default(now())
|
|
122
|
-
updatedAt DateTime @updatedAt
|
|
123
|
-
// sixPitRestriction Boolean @default(false)
|
|
124
|
-
// sixPitRestrictionStart DateTime?
|
|
125
|
-
// sixPitStart DateTime?
|
|
126
|
-
// capacityDynamic Float?
|
|
127
|
-
// capacityNominal Float?
|
|
128
|
-
// comments String?
|
|
129
|
-
// emptyWeight Float?
|
|
130
|
-
// gasStart DateTime?
|
|
131
|
-
hotMetalCollection HotMetal[]
|
|
132
|
-
torpedoLocation TorpedoLocation?
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
model Station {
|
|
136
|
-
id Int @id @default(autoincrement())
|
|
137
|
-
name String
|
|
138
|
-
value String
|
|
139
|
-
createdAt DateTime @default(now())
|
|
140
|
-
updatedAt DateTime @updatedAt
|
|
141
|
-
torpedoLocations TorpedoLocation[]
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
model HotMetalLabResult {
|
|
145
|
-
id Int @id @default(autoincrement())
|
|
146
|
-
hotMetal HotMetal @relation(fields: [hotMetalId], references: [id])
|
|
147
|
-
hotMetalId Int @unique
|
|
148
|
-
testDateTime DateTime @db.DateTimeOffset
|
|
149
|
-
sampleType String
|
|
150
|
-
Si Float?
|
|
151
|
-
S Float?
|
|
152
|
-
P Float?
|
|
153
|
-
Mn Float?
|
|
154
|
-
Ni Float?
|
|
155
|
-
Cr Float?
|
|
156
|
-
Ti Float?
|
|
157
|
-
C Float?
|
|
158
|
-
Cu Float?
|
|
159
|
-
Zn Float?
|
|
160
|
-
V Float?
|
|
161
|
-
createdAt DateTime @default(now())
|
|
162
|
-
updatedAt DateTime @updatedAt
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
model Siding {
|
|
166
|
-
id Int @id @default(autoincrement())
|
|
167
|
-
name String
|
|
168
|
-
value String
|
|
169
|
-
createdAt DateTime @default(now())
|
|
170
|
-
updatedAt DateTime @updatedAt
|
|
171
|
-
torpedoLocations TorpedoLocation[]
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
model TorpedoLocation {
|
|
175
|
-
stationId Int
|
|
176
|
-
station Station @relation(fields: [stationId], references: [id], onDelete: NoAction, onUpdate: Cascade)
|
|
177
|
-
position Int
|
|
178
|
-
torpedo Torpedo @relation(fields: [torpedoId], references: [torpedoId], onDelete: NoAction, onUpdate: Cascade)
|
|
179
|
-
torpedoId Int @unique
|
|
180
|
-
sidingId Int?
|
|
181
|
-
siding Siding? @relation(fields: [sidingId], references: [id], onDelete: NoAction, onUpdate: Cascade)
|
|
182
|
-
createdAt DateTime @default(now())
|
|
183
|
-
updatedAt DateTime @updatedAt
|
|
184
|
-
|
|
185
|
-
@@id([stationId, position])
|
|
186
|
-
}
|
|
1
|
+
generator client {
|
|
2
|
+
provider = "prisma-client-js"
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
datasource db {
|
|
6
|
+
provider = "sqlserver"
|
|
7
|
+
url = env("DATABASE_URL")
|
|
8
|
+
shadowDatabaseUrl = env("SHADOW_DATABASE_URL")
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
model Cast {
|
|
12
|
+
id Int @id @default(autoincrement())
|
|
13
|
+
sequenceCastBlastFurnace Int @unique(sort: Desc)
|
|
14
|
+
datetimeOpeningTapHole DateTime? @db.DateTimeOffset
|
|
15
|
+
furnace Int
|
|
16
|
+
identityTapHole Int?
|
|
17
|
+
datetimeGunUpTapHole DateTime? @db.DateTimeOffset
|
|
18
|
+
diameterTappingJackBit Int?
|
|
19
|
+
lengthTapHole Float?
|
|
20
|
+
codeIronSlagFlowedFirst String?
|
|
21
|
+
durationDelayCast Int?
|
|
22
|
+
reasonDelay Int?
|
|
23
|
+
codeOpeningTaphole String?
|
|
24
|
+
minutesToOpen Int?
|
|
25
|
+
codeConditionTapholeCh String?
|
|
26
|
+
// [?]
|
|
27
|
+
// codeTypeRun String?
|
|
28
|
+
// [?]
|
|
29
|
+
massIronBeforeSlag Int?
|
|
30
|
+
// [?]
|
|
31
|
+
durationIronBeforeSlag Int?
|
|
32
|
+
// [?]
|
|
33
|
+
massSlagBeforeIron Int?
|
|
34
|
+
// [?]
|
|
35
|
+
durationSlagBeforeIron Int?
|
|
36
|
+
identityClayBox Int?
|
|
37
|
+
codeTypeClay String?
|
|
38
|
+
volumeClayGunUp Float?
|
|
39
|
+
clayVolumeRate Float?
|
|
40
|
+
pressureRam Float?
|
|
41
|
+
preGunUpTemp Float?
|
|
42
|
+
gunupMaxTemp Float?
|
|
43
|
+
gunOnHoleDuration Float?
|
|
44
|
+
// [?] Y/N Or Boolean
|
|
45
|
+
codeKish String?
|
|
46
|
+
codeTypeGunUp Int?
|
|
47
|
+
// [?] Y/N Or Boolean
|
|
48
|
+
codeFceDry String?
|
|
49
|
+
// [?] Y/N Or Boolean
|
|
50
|
+
codeWindCheck String?
|
|
51
|
+
createdAt DateTime @default(now())
|
|
52
|
+
updatedAt DateTime @updatedAt
|
|
53
|
+
hotMetalCollection HotMetal[]
|
|
54
|
+
// [?]
|
|
55
|
+
// numberOfTorpedos null
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
model HotMetal {
|
|
59
|
+
id Int @id @default(autoincrement())
|
|
60
|
+
mesId Int?
|
|
61
|
+
cast Cast @relation(fields: [castSequence], references: [sequenceCastBlastFurnace], onDelete: NoAction, onUpdate: Cascade)
|
|
62
|
+
castSequence Int
|
|
63
|
+
torpedo Torpedo @relation(fields: [torpedoId], references: [torpedoId], onDelete: NoAction, onUpdate: Cascade)
|
|
64
|
+
torpedoId Int
|
|
65
|
+
labResult HotMetalLabResult?
|
|
66
|
+
dateTimeStartFill DateTime? @db.DateTimeOffset
|
|
67
|
+
dateTimeEndFill DateTime? @db.DateTimeOffset
|
|
68
|
+
identityBlastFurnace Int
|
|
69
|
+
noPosnTldlTapHole Int
|
|
70
|
+
temperatureHotMetal Int?
|
|
71
|
+
dpLevelTldlAuto Int?
|
|
72
|
+
dpLevelTldlManual Int?
|
|
73
|
+
capacity Int?
|
|
74
|
+
massHotMetalResidueTldl Int?
|
|
75
|
+
massHotMetalTldlEstimated Int?
|
|
76
|
+
massActual Int?
|
|
77
|
+
runRate Float?
|
|
78
|
+
punchOut Boolean @default(false)
|
|
79
|
+
plannedLevelFill Int?
|
|
80
|
+
startLevelFill Int?
|
|
81
|
+
tareWeight Int?
|
|
82
|
+
fillConstraintId String?
|
|
83
|
+
numberOfFillConstraints Int?
|
|
84
|
+
massHotMetalAdded Int?
|
|
85
|
+
createdAt DateTime @default(now())
|
|
86
|
+
updatedAt DateTime @updatedAt
|
|
87
|
+
// name String?
|
|
88
|
+
// description String?
|
|
89
|
+
// // TODO: confirm default value
|
|
90
|
+
// addAlPucks Boolean @default(false)
|
|
91
|
+
// alPucksAdded Boolean @default(false)
|
|
92
|
+
// // [?] Necessary?
|
|
93
|
+
// // castEndDateTime DateTime
|
|
94
|
+
// // [?] One to Many or Many to Many
|
|
95
|
+
// consumerBy Int?
|
|
96
|
+
// desulphurized Boolean @default(false)
|
|
97
|
+
// mass Float?
|
|
98
|
+
// massUnitOfMeasure String?
|
|
99
|
+
// punchOut Boolean?
|
|
100
|
+
// runRate Float?
|
|
101
|
+
// silicon Float?
|
|
102
|
+
// status String?
|
|
103
|
+
// sulphur Float?
|
|
104
|
+
// // [?] Necessary?
|
|
105
|
+
// // Taphole
|
|
106
|
+
// temperature Float?
|
|
107
|
+
// temperatureUnitOfMeasure String?
|
|
108
|
+
// torpedoFillEnd DateTime? @db.DateTimeOffset
|
|
109
|
+
// torpedoFillStart DateTime? @db.DateTimeOffset
|
|
110
|
+
// torpedoFillLevel Int?
|
|
111
|
+
// torpedoes Torpedo[]
|
|
112
|
+
|
|
113
|
+
@@unique(name: "cast_torpedo_id", [castSequence, torpedoId])
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
model Torpedo {
|
|
117
|
+
id Int @id @default(autoincrement())
|
|
118
|
+
torpedoId Int @unique(sort: Desc)
|
|
119
|
+
name String?
|
|
120
|
+
description String?
|
|
121
|
+
createdAt DateTime @default(now())
|
|
122
|
+
updatedAt DateTime @updatedAt
|
|
123
|
+
// sixPitRestriction Boolean @default(false)
|
|
124
|
+
// sixPitRestrictionStart DateTime?
|
|
125
|
+
// sixPitStart DateTime?
|
|
126
|
+
// capacityDynamic Float?
|
|
127
|
+
// capacityNominal Float?
|
|
128
|
+
// comments String?
|
|
129
|
+
// emptyWeight Float?
|
|
130
|
+
// gasStart DateTime?
|
|
131
|
+
hotMetalCollection HotMetal[]
|
|
132
|
+
torpedoLocation TorpedoLocation?
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
model Station {
|
|
136
|
+
id Int @id @default(autoincrement())
|
|
137
|
+
name String
|
|
138
|
+
value String
|
|
139
|
+
createdAt DateTime @default(now())
|
|
140
|
+
updatedAt DateTime @updatedAt
|
|
141
|
+
torpedoLocations TorpedoLocation[]
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
model HotMetalLabResult {
|
|
145
|
+
id Int @id @default(autoincrement())
|
|
146
|
+
hotMetal HotMetal @relation(fields: [hotMetalId], references: [id])
|
|
147
|
+
hotMetalId Int @unique
|
|
148
|
+
testDateTime DateTime @db.DateTimeOffset
|
|
149
|
+
sampleType String
|
|
150
|
+
Si Float?
|
|
151
|
+
S Float?
|
|
152
|
+
P Float?
|
|
153
|
+
Mn Float?
|
|
154
|
+
Ni Float?
|
|
155
|
+
Cr Float?
|
|
156
|
+
Ti Float?
|
|
157
|
+
C Float?
|
|
158
|
+
Cu Float?
|
|
159
|
+
Zn Float?
|
|
160
|
+
V Float?
|
|
161
|
+
createdAt DateTime @default(now())
|
|
162
|
+
updatedAt DateTime @updatedAt
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
model Siding {
|
|
166
|
+
id Int @id @default(autoincrement())
|
|
167
|
+
name String
|
|
168
|
+
value String
|
|
169
|
+
createdAt DateTime @default(now())
|
|
170
|
+
updatedAt DateTime @updatedAt
|
|
171
|
+
torpedoLocations TorpedoLocation[]
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
model TorpedoLocation {
|
|
175
|
+
stationId Int
|
|
176
|
+
station Station @relation(fields: [stationId], references: [id], onDelete: NoAction, onUpdate: Cascade)
|
|
177
|
+
position Int
|
|
178
|
+
torpedo Torpedo @relation(fields: [torpedoId], references: [torpedoId], onDelete: NoAction, onUpdate: Cascade)
|
|
179
|
+
torpedoId Int @unique
|
|
180
|
+
sidingId Int?
|
|
181
|
+
siding Siding? @relation(fields: [sidingId], references: [id], onDelete: NoAction, onUpdate: Cascade)
|
|
182
|
+
createdAt DateTime @default(now())
|
|
183
|
+
updatedAt DateTime @updatedAt
|
|
184
|
+
|
|
185
|
+
@@id([stationId, position])
|
|
186
|
+
}
|