@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.
package/migrations/20251203142345_update_product_batch_to_include_recieved_date_column/migration.sql
ADDED
|
@@ -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
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
|