chore: Rename entity to model (#7977)

**What**
Start renaming `entity` to `model`
This commit is contained in:
Adrien de Peretti authored and GitHub committed 2024-07-08 07:43:49 +00:00
1 parent e11716fa1e
commit 9750047af1
60 files changed
+171 -171

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ import {
Property,
} from "@mikro-orm/core"
type OptionalAddressProps = DAL.SoftDeletableEntityDateColumns
type OptionalAddressProps = DAL.SoftDeletableModelDateColumns
@Entity({ tableName: "cart_address" })
@Filter(DALUtils.mikroOrmSoftDeletableFilterOptions)
@@ -2,7 +2,7 @@ import { DAL } from "@medusajs/types"
import { BigNumber, MikroOrmBigNumberProperty } from "@medusajs/utils"
import { OptionalProps, PrimaryKey, Property } from "@mikro-orm/core"
type OptionalAdjustmentLineProps = DAL.SoftDeletableEntityDateColumns
type OptionalAdjustmentLineProps = DAL.SoftDeletableModelDateColumns
/**
* As per the Mikro ORM docs, superclasses should use the abstract class definition
+1 -1
View File
@@ -25,7 +25,7 @@ import ShippingMethod from "./shipping-method"
type OptionalCartProps =
| "shipping_address"
| "billing_address"
| DAL.SoftDeletableEntityDateColumns
| DAL.SoftDeletableModelDateColumns
const RegionIdIndex = createPsqlIndexStatementHelper({
name: "IDX_cart_region_id",
@@ -30,7 +30,7 @@ type OptionalLineItemProps =
| "compare_at_unit_price"
| "requires_shipping"
| "cart"
| DAL.SoftDeletableEntityDateColumns
| DAL.SoftDeletableModelDateColumns
const CartIdIndex = createPsqlIndexStatementHelper({
name: "IDX_line_item_cart_id",
@@ -28,7 +28,7 @@ import ShippingMethodTaxLine from "./shipping-method-tax-line"
type OptionalShippingMethodProps =
| "cart"
| "is_tax_inclusive"
| DAL.SoftDeletableEntityDateColumns
| DAL.SoftDeletableModelDateColumns
const CartIdIndex = createPsqlIndexStatementHelper({
name: "IDX_shipping_method_cart_id",
+1 -1
View File
@@ -1,7 +1,7 @@
import { DAL } from "@medusajs/types"
import { OptionalProps, PrimaryKey, Property } from "@mikro-orm/core"
type OptionalTaxLineProps = DAL.SoftDeletableEntityDateColumns
type OptionalTaxLineProps = DAL.SoftDeletableModelDateColumns
/**
* As per the Mikro ORM docs, superclasses should use the abstract class definition