@dynamatix/gb-schemas 2.0.64 → 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-variant.entity.d.ts +1 -1
- package/entities/product-catalogues/product-variant.entity.ts +1 -1
- package/package.json +1 -1
- package/prisma/migrations/20250521180300_update_product_variant_schema/migration.sql +8 -0
- package/prisma/product-catalogues/product-variant.prisma +1 -1
- package/prisma/schema.prisma +1 -1
package/package.json
CHANGED
|
@@ -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,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
|
@@ -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")
|