@dynamatix/gb-schemas 2.0.66 → 2.0.67
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-definition.entity.d.ts +1 -1
- package/dist/entities/product-catalogues/product-definition.entity.d.ts.map +1 -1
- package/entities/product-catalogues/product-definition.entity.ts +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20250521192012_update_product_definition_schema/migration.sql +9 -0
- package/prisma/product-catalogues/product-definition.prisma +4 -4
- package/prisma/schema.prisma +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-definition.entity.d.ts","sourceRoot":"","sources":["../../../entities/product-catalogues/product-definition.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBAAa,uBAAuB;IAChC,EAAE,EAAG,MAAM,CAAC;IACZ,mBAAmB,EAAG,MAAM,CAAC;IAC7B,kBAAkB,EAAG,MAAM,CAAC;IAC5B,IAAI,EAAG,MAAM,CAAC;IACd,cAAc,EAAG,
|
|
1
|
+
{"version":3,"file":"product-definition.entity.d.ts","sourceRoot":"","sources":["../../../entities/product-catalogues/product-definition.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBAAa,uBAAuB;IAChC,EAAE,EAAG,MAAM,CAAC;IACZ,mBAAmB,EAAG,MAAM,CAAC;IAC7B,kBAAkB,EAAG,MAAM,CAAC;IAC5B,IAAI,EAAG,MAAM,CAAC;IACd,cAAc,EAAG,OAAO,CAAC;IACzB,QAAQ,EAAG,GAAG,EAAE,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;IAGjB,gBAAgB,CAAC,EAAE,sBAAsB,CAAC;IAC1C,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;gBAET,OAAO,EAAE,OAAO,CAAC,uBAAuB,CAAC;CAGxD"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- Changed the type of `at_least_one_pass` on the `product_definitions` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE "product_definitions" DROP COLUMN "at_least_one_pass",
|
|
9
|
+
ADD COLUMN "at_least_one_pass" BOOLEAN NOT NULL;
|
|
@@ -3,14 +3,14 @@ model ProductDefinition {
|
|
|
3
3
|
productDefinitionId String @unique @map("product_definition_id")
|
|
4
4
|
productCatalogueId String @map("product_catalogue_id")
|
|
5
5
|
name String @map("name")
|
|
6
|
-
atLeastOnePass
|
|
6
|
+
atLeastOnePass Boolean @map("at_least_one_pass")
|
|
7
7
|
elements Json @default("[]") @map("elements")
|
|
8
8
|
createdAt DateTime @default(now()) @map("created_at")
|
|
9
9
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
10
10
|
|
|
11
11
|
// Relations
|
|
12
|
-
productCatalogue
|
|
13
|
-
rules
|
|
12
|
+
productCatalogue ProductCatalogue @relation(fields: [productCatalogueId], references: [id])
|
|
13
|
+
rules Rule[]
|
|
14
14
|
|
|
15
15
|
@@map("product_definitions")
|
|
16
|
-
}
|
|
16
|
+
}
|
package/prisma/schema.prisma
CHANGED
|
@@ -416,14 +416,14 @@ model ProductDefinition {
|
|
|
416
416
|
productDefinitionId String @unique @map("product_definition_id")
|
|
417
417
|
productCatalogueId String @map("product_catalogue_id")
|
|
418
418
|
name String @map("name")
|
|
419
|
-
atLeastOnePass
|
|
419
|
+
atLeastOnePass Boolean @map("at_least_one_pass")
|
|
420
420
|
elements Json @default("[]") @map("elements")
|
|
421
421
|
createdAt DateTime @default(now()) @map("created_at")
|
|
422
422
|
updatedAt DateTime @updatedAt @map("updated_at")
|
|
423
423
|
|
|
424
424
|
// Relations
|
|
425
|
-
productCatalogue
|
|
426
|
-
rules
|
|
425
|
+
productCatalogue ProductCatalogue @relation(fields: [productCatalogueId], references: [id])
|
|
426
|
+
rules Rule[]
|
|
427
427
|
|
|
428
428
|
@@map("product_definitions")
|
|
429
429
|
}
|