@juliobrim/prisma-shared 1.0.32 → 1.0.34

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_batch" ADD COLUMN "supplier" TEXT;
@@ -0,0 +1,8 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - Added the required column `receivedDate` to the `product_batch` table without a default value. This is not possible if the table is not empty.
5
+
6
+ */
7
+ -- AlterTable
8
+ ALTER TABLE "public"."product_batch" ADD COLUMN "receivedDate" DATE NOT NULL;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juliobrim/prisma-shared",
3
- "version": "1.0.32",
3
+ "version": "1.0.34",
4
4
  "description": "Schema Prisma compartilhado entre projetos Sabcon",
5
5
  "main": "schema.prisma",
6
6
  "files": [
package/schema.prisma CHANGED
@@ -881,10 +881,12 @@ model DeviceOperator {
881
881
  model ProductBatch {
882
882
  id Int @id @default(autoincrement())
883
883
  productId String
884
+ supplier String?
884
885
  batchNumber String
885
886
  internalBatchNumber String?
886
887
  initialQuantity Float // Quantidade inicial adicionada ao estoque
887
888
  currentQuantity Float // Quantidade atual disponível
889
+ receivedDate DateTime @db.Date
888
890
  expiryDate DateTime @db.Date
889
891
  createdAt DateTime @default(now())
890
892
  updatedAt DateTime @updatedAt