procbay-schema 1.0.34 → 1.0.36
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/package.json +1 -1
- package/prisma/migrations/20251010080908_added_vendor_id_in_purchase_order/migration.sql +31 -0
- package/prisma/migrations/migration_lock.toml +3 -3
- package/prisma/schema.prisma +1 -0
- package/src/prisma/edge.js +4 -3
- package/src/prisma/index-browser.js +1 -0
- package/src/prisma/index.d.ts +63 -1
- package/src/prisma/index.js +4 -3
- package/src/prisma/package.json +1 -1
- package/src/prisma/schema.prisma +1 -0
- package/src/prisma/wasm.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "procbay-schema",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
4
4
|
"description": "A set of utilities for managing Prisma database schemas, seeding, and maintenance operations for the Procure-to-Pay system",
|
|
5
5
|
"main": "src/prisma/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to alter the column `item_code` on the `item` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(500)`.
|
|
5
|
+
- You are about to alter the column `item_name` on the `item` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(500)`.
|
|
6
|
+
- You are about to alter the column `item_handler` on the `item` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(1000)`.
|
|
7
|
+
- You are about to alter the column `slug` on the `item` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(1000)`.
|
|
8
|
+
- You are about to alter the column `description` on the `item` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(1000)`.
|
|
9
|
+
- You are about to alter the column `terms_and_conditions` on the `item` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(1000)`.
|
|
10
|
+
- You are about to alter the column `keywords` on the `item` table. The data in that column could be lost. The data in that column will be cast from `Text` to `VarChar(1000)`.
|
|
11
|
+
|
|
12
|
+
*/
|
|
13
|
+
-- AlterTable
|
|
14
|
+
ALTER TABLE "export_logs" ALTER COLUMN "expires_at" SET DEFAULT NOW() + INTERVAL '7 days';
|
|
15
|
+
|
|
16
|
+
-- AlterTable
|
|
17
|
+
ALTER TABLE "item" ALTER COLUMN "item_code" SET DATA TYPE VARCHAR(500),
|
|
18
|
+
ALTER COLUMN "item_name" SET DATA TYPE VARCHAR(500),
|
|
19
|
+
ALTER COLUMN "item_handler" SET DATA TYPE VARCHAR(1000),
|
|
20
|
+
ALTER COLUMN "slug" SET DATA TYPE VARCHAR(1000),
|
|
21
|
+
ALTER COLUMN "description" SET DATA TYPE VARCHAR(1000),
|
|
22
|
+
ALTER COLUMN "terms_and_conditions" SET DATA TYPE VARCHAR(1000)[],
|
|
23
|
+
ALTER COLUMN "keywords" SET DATA TYPE VARCHAR(1000)[],
|
|
24
|
+
ALTER COLUMN "title" SET DATA TYPE VARCHAR(500),
|
|
25
|
+
ALTER COLUMN "variant_display_name" SET DATA TYPE VARCHAR(500),
|
|
26
|
+
ALTER COLUMN "inventory_reason" SET DATA TYPE VARCHAR(500),
|
|
27
|
+
ALTER COLUMN "sku" SET DATA TYPE VARCHAR(500),
|
|
28
|
+
ALTER COLUMN "bar_code" SET DATA TYPE VARCHAR(500);
|
|
29
|
+
|
|
30
|
+
-- AlterTable
|
|
31
|
+
ALTER TABLE "purchase_orders" ADD COLUMN "vendor_id" INTEGER;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# Please do not edit this file manually
|
|
2
|
-
# It should be added in your version-control system (e.g., Git)
|
|
3
|
-
provider = "postgresql"
|
|
1
|
+
# Please do not edit this file manually
|
|
2
|
+
# It should be added in your version-control system (e.g., Git)
|
|
3
|
+
provider = "postgresql"
|
package/prisma/schema.prisma
CHANGED
|
@@ -1989,6 +1989,7 @@ model PurchaseOrder {
|
|
|
1989
1989
|
event Event? @relation(fields: [event_id], references: [id], onDelete: Cascade)
|
|
1990
1990
|
event_vendor_id Int?
|
|
1991
1991
|
event_vendor EventVendors? @relation(fields: [event_vendor_id], references: [id], onDelete: Cascade)
|
|
1992
|
+
vendor_id Int?
|
|
1992
1993
|
purchase_order_no String? @unique
|
|
1993
1994
|
purchase_order_date DateTime? @default(now()) @db.Timestamptz(6)
|
|
1994
1995
|
total_amount Decimal? @default(0.00) @db.Decimal(10, 2)
|