@juliobrim/prisma-shared 1.0.9 → 1.0.10
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 +1 -1
- package/schema.prisma +20 -19
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -351,25 +351,26 @@ model OperationGroup {
|
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
model OperationRegister {
|
|
354
|
-
id
|
|
355
|
-
machineId
|
|
356
|
-
operatorId
|
|
357
|
-
operationId
|
|
358
|
-
operationGroupId
|
|
359
|
-
productionOrderId
|
|
360
|
-
startTime
|
|
361
|
-
endTime
|
|
362
|
-
elapsedTime
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
354
|
+
id Int @id @default(autoincrement())
|
|
355
|
+
machineId String
|
|
356
|
+
operatorId String
|
|
357
|
+
operationId String?
|
|
358
|
+
operationGroupId Int?
|
|
359
|
+
productionOrderId String
|
|
360
|
+
startTime DateTime @default(now()) @db.Timestamp(6)
|
|
361
|
+
endTime DateTime? @db.Timestamp(6)
|
|
362
|
+
elapsedTime BigInt?
|
|
363
|
+
timeSinceLastOperationRegister BigInt?
|
|
364
|
+
productionNodeId String?
|
|
365
|
+
tenantId String?
|
|
366
|
+
quantity Int @default(1)
|
|
367
|
+
machine Machine @relation(fields: [machineId], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "fk_machine")
|
|
368
|
+
operator Operator @relation(fields: [operatorId], references: [id], onDelete: NoAction, onUpdate: NoAction, map: "fk_operator")
|
|
369
|
+
operationGroup OperationGroup? @relation(fields: [operationGroupId], references: [id])
|
|
370
|
+
operation Operation? @relation(fields: [operationId], references: [id], onDelete: Cascade)
|
|
371
|
+
productionNode ProductionNode? @relation(fields: [productionNodeId], references: [id])
|
|
372
|
+
productionOrder ProductionOrder @relation(fields: [productionOrderId], references: [id])
|
|
373
|
+
tenant Tenant? @relation(fields: [tenantId], references: [id], onDelete: Cascade)
|
|
373
374
|
|
|
374
375
|
@@map("operation_register")
|
|
375
376
|
}
|