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

@@ -29,7 +29,7 @@ type OptionalFields =
| "description"
| "limit"
| "used"
| DAL.SoftDeletableEntityDateColumns
| DAL.SoftDeletableModelDateColumns
@Entity({ tableName: "promotion_campaign_budget" })
@Filter(DALUtils.mikroOrmSoftDeletableFilterOptions)
@@ -26,7 +26,7 @@ type OptionalFields =
| "description"
| "starts_at"
| "ends_at"
| DAL.SoftDeletableEntityDateColumns
| DAL.SoftDeletableModelDateColumns
const tableName = "promotion_campaign"
const CampaignUniqueCampaignIdentifier = createPsqlIndexStatementHelper({
@@ -20,7 +20,7 @@ import ApplicationMethod from "./application-method"
import Promotion from "./promotion"
import PromotionRuleValue from "./promotion-rule-value"
type OptionalFields = "description" | DAL.SoftDeletableEntityDateColumns
type OptionalFields = "description" | DAL.SoftDeletableModelDateColumns
type OptionalRelations = "values" | "promotions"
@Entity({ tableName: "promotion_rule" })
@@ -26,7 +26,7 @@ import ApplicationMethod from "./application-method"
import Campaign from "./campaign"
import PromotionRule from "./promotion-rule"
type OptionalFields = "is_automatic" | DAL.SoftDeletableEntityDateColumns
type OptionalFields = "is_automatic" | DAL.SoftDeletableModelDateColumns
type OptionalRelations = "application_method" | "campaign"
@Entity({ tableName: "promotion" })