chore: add missing since and featureFlag tags (#13926)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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, {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user