@juliobrim/prisma-shared 1.0.33 → 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
|
@@ -886,6 +886,7 @@ model ProductBatch {
|
|
|
886
886
|
internalBatchNumber String?
|
|
887
887
|
initialQuantity Float // Quantidade inicial adicionada ao estoque
|
|
888
888
|
currentQuantity Float // Quantidade atual disponível
|
|
889
|
+
receivedDate DateTime @db.Date
|
|
889
890
|
expiryDate DateTime @db.Date
|
|
890
891
|
createdAt DateTime @default(now())
|
|
891
892
|
updatedAt DateTime @updatedAt
|