@dynamatix/gb-schemas 2.0.63 → 2.0.65
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/dist/entities/product-catalogues/product-catalogue.entity.d.ts +6 -6
- package/dist/entities/product-catalogues/product-catalogue.entity.d.ts.map +1 -1
- package/dist/entities/product-catalogues/product-variant.entity.d.ts +1 -1
- package/entities/product-catalogues/product-catalogue.entity.ts +6 -6
- package/entities/product-catalogues/product-variant.entity.ts +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20250521173204_update_product_catalogue_schema/migration.sql +28 -0
- package/prisma/migrations/20250521180300_update_product_variant_schema/migration.sql +8 -0
- package/prisma/product-catalogues/product-catalogue.prisma +15 -15
- package/prisma/product-catalogues/product-variant.prisma +1 -1
- package/prisma/schema.prisma +15 -15
|
@@ -5,13 +5,13 @@ export declare class ProductCatalogueEntity {
|
|
|
5
5
|
productCatalogueId: string;
|
|
6
6
|
name: string;
|
|
7
7
|
description?: string;
|
|
8
|
-
applyFrom:
|
|
9
|
-
applyUntil:
|
|
10
|
-
submitUntil:
|
|
11
|
-
status:
|
|
12
|
-
lockedForEdit:
|
|
8
|
+
applyFrom: Date;
|
|
9
|
+
applyUntil: Date;
|
|
10
|
+
submitUntil: Date;
|
|
11
|
+
status: number;
|
|
12
|
+
lockedForEdit: boolean;
|
|
13
13
|
baseRateName?: string;
|
|
14
|
-
baseRate?:
|
|
14
|
+
baseRate?: number;
|
|
15
15
|
mapperName?: string;
|
|
16
16
|
createdAt: Date;
|
|
17
17
|
updatedAt: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-catalogue.entity.d.ts","sourceRoot":"","sources":["../../../entities/product-catalogues/product-catalogue.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,qBAAa,sBAAsB;IAC/B,EAAE,EAAG,MAAM,CAAC;IACZ,kBAAkB,EAAG,MAAM,CAAC;IAC5B,IAAI,EAAG,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAG,
|
|
1
|
+
{"version":3,"file":"product-catalogue.entity.d.ts","sourceRoot":"","sources":["../../../entities/product-catalogues/product-catalogue.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,qBAAa,sBAAsB;IAC/B,EAAE,EAAG,MAAM,CAAC;IACZ,kBAAkB,EAAG,MAAM,CAAC;IAC5B,IAAI,EAAG,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAG,IAAI,CAAC;IACjB,UAAU,EAAG,IAAI,CAAC;IAClB,WAAW,EAAG,IAAI,CAAC;IACnB,MAAM,EAAG,MAAM,CAAC;IAChB,aAAa,EAAG,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;IAGjB,kBAAkB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC/C,eAAe,CAAC,EAAE,oBAAoB,EAAE,CAAC;gBAE7B,OAAO,EAAE,OAAO,CAAC,sBAAsB,CAAC;CAGvD"}
|
|
@@ -6,13 +6,13 @@ export class ProductCatalogueEntity {
|
|
|
6
6
|
productCatalogueId!: string;
|
|
7
7
|
name!: string;
|
|
8
8
|
description?: string;
|
|
9
|
-
applyFrom!:
|
|
10
|
-
applyUntil!:
|
|
11
|
-
submitUntil!:
|
|
12
|
-
status!:
|
|
13
|
-
lockedForEdit!:
|
|
9
|
+
applyFrom!: Date;
|
|
10
|
+
applyUntil!: Date;
|
|
11
|
+
submitUntil!: Date;
|
|
12
|
+
status!: number;
|
|
13
|
+
lockedForEdit!: boolean;
|
|
14
14
|
baseRateName?: string;
|
|
15
|
-
baseRate?:
|
|
15
|
+
baseRate?: number;
|
|
16
16
|
mapperName?: string;
|
|
17
17
|
createdAt!: Date;
|
|
18
18
|
updatedAt!: Date;
|
package/package.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- The `base_rate` column on the `product_catalogues` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
5
|
+
- A unique constraint covering the columns `[product_catalogue_id]` on the table `product_catalogues` will be added. If there are existing duplicate values, this will fail.
|
|
6
|
+
- Changed the type of `apply_from` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
7
|
+
- Changed the type of `apply_until` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
8
|
+
- Changed the type of `submit_until` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
9
|
+
- Changed the type of `status` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
10
|
+
- Changed the type of `locked_for_edit` on the `product_catalogues` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
11
|
+
|
|
12
|
+
*/
|
|
13
|
+
-- AlterTable
|
|
14
|
+
ALTER TABLE "product_catalogues" DROP COLUMN "apply_from",
|
|
15
|
+
ADD COLUMN "apply_from" TIMESTAMP(3) NOT NULL,
|
|
16
|
+
DROP COLUMN "apply_until",
|
|
17
|
+
ADD COLUMN "apply_until" TIMESTAMP(3) NOT NULL,
|
|
18
|
+
DROP COLUMN "submit_until",
|
|
19
|
+
ADD COLUMN "submit_until" TIMESTAMP(3) NOT NULL,
|
|
20
|
+
DROP COLUMN "status",
|
|
21
|
+
ADD COLUMN "status" INTEGER NOT NULL,
|
|
22
|
+
DROP COLUMN "locked_for_edit",
|
|
23
|
+
ADD COLUMN "locked_for_edit" BOOLEAN NOT NULL,
|
|
24
|
+
DROP COLUMN "base_rate",
|
|
25
|
+
ADD COLUMN "base_rate" DOUBLE PRECISION;
|
|
26
|
+
|
|
27
|
+
-- CreateIndex
|
|
28
|
+
CREATE UNIQUE INDEX "product_catalogues_product_catalogue_id_key" ON "product_catalogues"("product_catalogue_id");
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- A unique constraint covering the columns `[variant_id]` on the table `product_variants` will be added. If there are existing duplicate values, this will fail.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- CreateIndex
|
|
8
|
+
CREATE UNIQUE INDEX "product_variants_variant_id_key" ON "product_variants"("variant_id");
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
model ProductCatalogue {
|
|
2
|
-
id
|
|
3
|
-
productCatalogueId String @map("product_catalogue_id")
|
|
4
|
-
name
|
|
5
|
-
description
|
|
6
|
-
applyFrom
|
|
7
|
-
applyUntil
|
|
8
|
-
submitUntil
|
|
9
|
-
status
|
|
10
|
-
lockedForEdit
|
|
11
|
-
baseRateName
|
|
12
|
-
baseRate
|
|
13
|
-
mapperName
|
|
14
|
-
createdAt
|
|
15
|
-
updatedAt
|
|
2
|
+
id String @id @default(uuid())
|
|
3
|
+
productCatalogueId String @unique @map("product_catalogue_id")
|
|
4
|
+
name String @map("name")
|
|
5
|
+
description String? @map("description")
|
|
6
|
+
applyFrom DateTime @map("apply_from")
|
|
7
|
+
applyUntil DateTime @map("apply_until")
|
|
8
|
+
submitUntil DateTime @map("submit_until")
|
|
9
|
+
status Int @map("status")
|
|
10
|
+
lockedForEdit Boolean @map("locked_for_edit")
|
|
11
|
+
baseRateName String? @map("base_rate_name")
|
|
12
|
+
baseRate Float? @map("base_rate")
|
|
13
|
+
mapperName String? @map("mapper_name")
|
|
14
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
15
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
16
16
|
|
|
17
17
|
// Relations
|
|
18
18
|
productDefinitions ProductDefinition[]
|
|
19
19
|
productVariants ProductVariant[]
|
|
20
20
|
|
|
21
21
|
@@map("product_catalogues")
|
|
22
|
-
}
|
|
22
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
model ProductVariant {
|
|
2
2
|
id String @id @default(uuid())
|
|
3
3
|
productCatalogueId String @map("product_catalogue_id")
|
|
4
|
-
|
|
4
|
+
variantId String @unique @map("variant_id")
|
|
5
5
|
name String @map("name")
|
|
6
6
|
variantCode String @map("variant_code")
|
|
7
7
|
label String? @map("label")
|
package/prisma/schema.prisma
CHANGED
|
@@ -388,20 +388,20 @@ model User {
|
|
|
388
388
|
|
|
389
389
|
// From prisma/product-catalogues/product-catalogue.prisma
|
|
390
390
|
model ProductCatalogue {
|
|
391
|
-
id
|
|
392
|
-
productCatalogueId String @map("product_catalogue_id")
|
|
393
|
-
name
|
|
394
|
-
description
|
|
395
|
-
applyFrom
|
|
396
|
-
applyUntil
|
|
397
|
-
submitUntil
|
|
398
|
-
status
|
|
399
|
-
lockedForEdit
|
|
400
|
-
baseRateName
|
|
401
|
-
baseRate
|
|
402
|
-
mapperName
|
|
403
|
-
createdAt
|
|
404
|
-
updatedAt
|
|
391
|
+
id String @id @default(uuid())
|
|
392
|
+
productCatalogueId String @unique @map("product_catalogue_id")
|
|
393
|
+
name String @map("name")
|
|
394
|
+
description String? @map("description")
|
|
395
|
+
applyFrom DateTime @map("apply_from")
|
|
396
|
+
applyUntil DateTime @map("apply_until")
|
|
397
|
+
submitUntil DateTime @map("submit_until")
|
|
398
|
+
status Int @map("status")
|
|
399
|
+
lockedForEdit Boolean @map("locked_for_edit")
|
|
400
|
+
baseRateName String? @map("base_rate_name")
|
|
401
|
+
baseRate Float? @map("base_rate")
|
|
402
|
+
mapperName String? @map("mapper_name")
|
|
403
|
+
createdAt DateTime @default(now()) @map("created_at")
|
|
404
|
+
updatedAt DateTime @updatedAt @map("updated_at")
|
|
405
405
|
|
|
406
406
|
// Relations
|
|
407
407
|
productDefinitions ProductDefinition[]
|
|
@@ -455,7 +455,7 @@ model Rule {
|
|
|
455
455
|
model ProductVariant {
|
|
456
456
|
id String @id @default(uuid())
|
|
457
457
|
productCatalogueId String @map("product_catalogue_id")
|
|
458
|
-
|
|
458
|
+
variantId String @unique @map("variant_id")
|
|
459
459
|
name String @map("name")
|
|
460
460
|
variantCode String @map("variant_code")
|
|
461
461
|
label String? @map("label")
|