@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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. 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
- output = "./generated/client"
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juliobrim/prisma-shared",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Schema Prisma compartilhado entre projetos Sabcon",
5
5
  "main": "schema.prisma",
6
6
  "files": [
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 Int @id @default(autoincrement())
356
- machineId String
357
- operatorId String
358
- operationId String?
359
- operationGroupId Int?
360
- productionOrderId String
361
- startTime DateTime @default(now()) @db.Timestamp(6)
362
- endTime DateTime? @db.Timestamp(6)
363
- elapsedTime 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
+ 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
  }