@juliobrim/prisma-shared 1.0.21 → 1.0.22

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"."product_components" ALTER COLUMN "quantity" SET DATA TYPE DOUBLE PRECISION;
@@ -0,0 +1,4 @@
1
+ -- AlterTable
2
+ ALTER TABLE "public"."production_order" ADD COLUMN "endDate" DATE,
3
+ ADD COLUMN "expectedEndDate" DATE,
4
+ ADD COLUMN "startDate" DATE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juliobrim/prisma-shared",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "Schema Prisma compartilhado entre projetos Sabcon",
5
5
  "main": "schema.prisma",
6
6
  "files": [
package/schema.prisma CHANGED
@@ -526,7 +526,7 @@ model Product {
526
526
  model ProductComponents {
527
527
  composedById String
528
528
  componentOfId String
529
- quantity Int
529
+ quantity Float
530
530
  tenantId String?
531
531
  componentOf Product @relation("componentOf", fields: [componentOfId], references: [id], onDelete: Cascade)
532
532
  composedBy Product @relation("composedBy", fields: [composedById], references: [id], onDelete: Cascade)
@@ -563,6 +563,9 @@ model ProductionOrder {
563
563
  flowId String?
564
564
  productionOrderIndex Int? @unique
565
565
  batchSize Float
566
+ startDate DateTime? @db.Date
567
+ endDate DateTime? @db.Date
568
+ expectedEndDate DateTime? @db.Date
566
569
  hasStarted Boolean @default(false)
567
570
  isRunning Boolean @default(false)
568
571
  isFinished Boolean @default(false)