chore: Rename entity to model (#7977)
**What** Start renaming `entity` to `model`
This commit is contained in:
@@ -16,7 +16,7 @@ import {
|
||||
} from "@mikro-orm/core"
|
||||
import Customer from "./customer"
|
||||
|
||||
type OptionalAddressProps = DAL.EntityDateColumns // TODO: To be revisited when more clear
|
||||
type OptionalAddressProps = DAL.ModelDateColumns // TODO: To be revisited when more clear
|
||||
|
||||
const CustomerAddressUniqueCustomerShippingAddress =
|
||||
createPsqlIndexStatementHelper({
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
import Customer from "./customer"
|
||||
import CustomerGroup from "./customer-group"
|
||||
|
||||
type OptionalGroupProps = "customer_group" | "customer" | DAL.EntityDateColumns // TODO: To be revisited when more clear
|
||||
type OptionalGroupProps = "customer_group" | "customer" | DAL.ModelDateColumns // TODO: To be revisited when more clear
|
||||
|
||||
@Entity({ tableName: "customer_group_customer" })
|
||||
export default class CustomerGroupCustomer {
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
import Customer from "./customer"
|
||||
import CustomerGroupCustomer from "./customer-group-customer"
|
||||
|
||||
type OptionalGroupProps = DAL.SoftDeletableEntityDateColumns // TODO: To be revisited when more clear
|
||||
type OptionalGroupProps = DAL.SoftDeletableModelDateColumns // TODO: To be revisited when more clear
|
||||
|
||||
const CustomerGroupUniqueName = createPsqlIndexStatementHelper({
|
||||
tableName: "customer_group",
|
||||
|
||||
@@ -26,7 +26,7 @@ import CustomerGroupCustomer from "./customer-group-customer"
|
||||
type OptionalCustomerProps =
|
||||
| "groups"
|
||||
| "addresses"
|
||||
| DAL.SoftDeletableEntityDateColumns
|
||||
| DAL.SoftDeletableModelDateColumns
|
||||
|
||||
const CustomerUniqueEmail = createPsqlIndexStatementHelper({
|
||||
tableName: "customer",
|
||||
|
||||
Reference in New Issue
Block a user