@juliobrim/prisma-shared 1.0.13 → 1.0.15
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.
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `timeSinceLastOperationRegister` on the `operation_register` table. All the data in the column will be lost.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE "public"."operation_register" DROP COLUMN "timeSinceLastOperationRegister",
|
|
9
|
+
ADD COLUMN "timeSinceLastOperation" BIGINT;
|
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -351,26 +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
|
-
productionNodeId
|
|
365
|
-
tenantId
|
|
366
|
-
quantity
|
|
367
|
-
machine
|
|
368
|
-
operator
|
|
369
|
-
operationGroup
|
|
370
|
-
operation
|
|
371
|
-
productionNode
|
|
372
|
-
productionOrder
|
|
373
|
-
tenant
|
|
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
|
+
timeSinceLastOperation 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)
|
|
374
374
|
|
|
375
375
|
@@map("operation_register")
|
|
376
376
|
}
|