@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,2 @@
1
+ -- AlterTable
2
+ ALTER TABLE "public"."operation_register" ADD COLUMN "timeSinceLastOperationRegister" BIGINT;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juliobrim/prisma-shared",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Schema Prisma compartilhado entre projetos Sabcon",
5
5
  "main": "schema.prisma",
6
6
  "files": [
package/schema.prisma CHANGED
@@ -351,26 +351,26 @@ model OperationGroup {
351
351
  }
352
352
 
353
353
  model OperationRegister {
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)
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
  }