@juliobrim/prisma-shared 1.0.8 → 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/README.md +1 -1
- package/package.json +1 -1
- package/schema.prisma +20 -20
package/README.md
CHANGED
|
@@ -80,7 +80,7 @@ import "node_modules/@juliobrim/prisma-shared/schema.prisma"
|
|
|
80
80
|
// Configurações específicas do projeto (se necessário)
|
|
81
81
|
generator client {
|
|
82
82
|
provider = "prisma-client-js"
|
|
83
|
-
|
|
83
|
+
// O cliente será gerado no local padrão: node_modules/.prisma/client
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
datasource db {
|
package/package.json
CHANGED
package/schema.prisma
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
generator client {
|
|
2
2
|
provider = "prisma-client-js"
|
|
3
|
-
output = "../node_modules/.prisma/client"
|
|
4
3
|
}
|
|
5
4
|
|
|
6
5
|
datasource db {
|
|
@@ -352,25 +351,26 @@ model OperationGroup {
|
|
|
352
351
|
}
|
|
353
352
|
|
|
354
353
|
model OperationRegister {
|
|
355
|
-
id
|
|
356
|
-
machineId
|
|
357
|
-
operatorId
|
|
358
|
-
operationId
|
|
359
|
-
operationGroupId
|
|
360
|
-
productionOrderId
|
|
361
|
-
startTime
|
|
362
|
-
endTime
|
|
363
|
-
elapsedTime
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
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)
|
|
374
374
|
|
|
375
375
|
@@map("operation_register")
|
|
376
376
|
}
|