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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user