fix(order): add data model name in define schema (#11181)

Add missing data model name in `model.define` in the Order Module where missing, as we need to infer the names in the references we generate

Closes DX-1305
This commit is contained in:
Shahed Nasser
2025-01-29 10:53:13 +00:00
committed by GitHub
parent 040b7b274e
commit 16fe43f214
5 changed files with 9 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/order": patch
---
fix(order): add data model name in define schema
@@ -5,6 +5,7 @@ const _OrderSummary = model
.define(
{
tableName: "order_summary",
name: "OrderSummary",
},
{
id: model.id({ prefix: "ordsum" }).primaryKey(),
@@ -6,6 +6,7 @@ import { ReturnReason } from "./return-reason"
const _ReturnItem = model
.define(
{
name: "ReturnItem",
tableName: "return_item",
},
{
@@ -5,6 +5,7 @@ const _OrderShippingMethodAdjustment = model
.define(
{
tableName: "order_shipping_method_adjustment",
name: "OrderShippingMethodAdjustment",
},
{
id: model.id({ prefix: "ordsmadj" }).primaryKey(),
@@ -5,6 +5,7 @@ const _OrderShippingMethodTaxLine = model
.define(
{
tableName: "order_shipping_method_tax_line",
name: "OrderShippingMethodTaxLine",
},
{
id: model.id({ prefix: "ordsmtxl" }).primaryKey(),