chore: improve and add TSDocs for next release (#14170)

This commit is contained in:
Shahed Nasser
2025-12-01 13:41:31 +02:00
committed by GitHub
parent d9e3965a10
commit 73ae136965
6 changed files with 71 additions and 14 deletions
@@ -9,7 +9,13 @@ const Promotion = model
code: model.text().searchable(),
is_automatic: model.boolean().default(false),
is_tax_inclusive: model.boolean().default(false),
/**
* @since v2.11.4
*/
limit: model.number().nullable(),
/**
* @since v2.11.4
*/
used: model.number().default(0),
type: model.enum(PromotionUtils.PromotionType).index("IDX_promotion_type"),
status: model
@@ -30,6 +36,9 @@ const Promotion = model
pivotTable: "promotion_promotion_rule",
mappedBy: "promotions",
}),
/**
* @since v2.11.4
*/
metadata: model.json().nullable(),
})
.cascades({