chore: add missing since and featureFlag tags (#13926)

This commit is contained in:
Shahed Nasser
2025-10-31 16:17:19 +02:00
committed by GitHub
parent 604ff55a5b
commit 0fd9f27ca5
17 changed files with 50 additions and 2 deletions

View File

@@ -14,6 +14,9 @@ const ProductImage = model
product: model.belongsTo(() => Product, {
mappedBy: "images",
}),
/**
* @since 2.11.2
*/
variants: model.manyToMany(() => ProductVariant, {
mappedBy: "images",
pivotEntity: () => ProductVariantProductImage,

View File

@@ -2,6 +2,9 @@ import { model } from "@medusajs/framework/utils"
import ProductVariant from "./product-variant"
import ProductImage from "./product-image"
/**
* @since 2.11.2
*/
const ProductVariantProductImage = model.define("ProductVariantProductImage", {
id: model.id({ prefix: "pvpi" }).primaryKey(),
variant: model.belongsTo(() => ProductVariant, {

View File

@@ -22,6 +22,9 @@ const ProductVariant = model
width: model.number().nullable(),
metadata: model.json().nullable(),
variant_rank: model.number().default(0).nullable(),
/**
* @since 2.11.2
*/
thumbnail: model.text().nullable(),
product: model
.belongsTo(() => Product, {
@@ -29,6 +32,9 @@ const ProductVariant = model
})
.searchable()
.nullable(),
/**
* @since 2.11.2
*/
images: model.manyToMany(() => ProductImage, {
mappedBy: "variants",
pivotEntity: () => ProductVariantProductImage,