1 {"slug":"/references/dml/entity/classes/dml.entity.DmlEntity","title":"DmlEntity","frontmatter":{},"toc":[{"title":"Type parameters","id":"type-parameters","level":2},{"title":"Constructors","id":"constructors","level":2},{"title":"Methods","id":"methods","level":2},{"title":"Properties","id":"properties","level":2},{"title":"constructor","id":"constructor","level":2},{"title":"Type Parameters","id":"constructor-type-parameters","level":3},{"title":"Parameters","id":"constructor-parameters","level":3}],"blocks":[{"kind":"markdown","html":"Dml entity is a representation of a DML model with a unique\nname, its schema and relationships."},{"kind":"heading","level":2,"text":"Type parameters","id":"type-parameters"},{"kind":"typeList","sectionTitle":"DmlEntity","types":[{"name":"Schema","type":"[DMLSchema](/references/types/DmlTypes/types/types.DmlTypes.DMLSchema)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"$dataType","type":"T","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"type","type":"[RelationshipTypes](/references/types/DmlTypes/types/types.DmlTypes.RelationshipTypes)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"TConfig","type":"[IDmlEntityConfig](/references/types/DmlTypes/types/types.DmlTypes.IDmlEntityConfig)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"name","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"tableName","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]},{"kind":"heading","level":2,"text":"Constructors","id":"constructors"},{"kind":"linkList","items":[{"title":"constructor","href":"/references/dml/entity/classes/dml.entity.DmlEntity#constructor"}]},{"kind":"heading","level":2,"text":"Methods","id":"methods"},{"kind":"linkList","items":[{"title":"cascades","href":"/references/data-model/model-methods/cascades"},{"title":"checks","href":"/references/dml/entity/DmlEntity/methods/dml.entity.DmlEntity.checks"},{"title":"clearTranslatableEntities","href":"/references/dml/entity/DmlEntity/methods/dml.entity.DmlEntity.clearTranslatableEntities"},{"title":"getTranslatableEntities","href":"/references/data-model/model-methods/gettranslatableentities"},{"title":"indexes","href":"/references/data-model/model-methods/indexes"},{"title":"isDmlEntity","href":"/references/dml/entity/DmlEntity/methods/dml.entity.DmlEntity.isDmlEntity"},{"title":"parse","href":"/references/dml/entity/DmlEntity/methods/dml.entity.DmlEntity.parse"}]},{"kind":"heading","level":2,"text":"Properties","id":"properties"},{"kind":"linkList","items":[{"title":"[IsDmlEntity]","href":"/references/dml/entity/classes/dml.entity.DmlEntity#[isdmlentity]"},{"title":"name","href":"/references/dml/entity/classes/dml.entity.DmlEntity#name"},{"title":"schema","href":"/references/dml/entity/classes/dml.entity.DmlEntity#schema"}]},{"kind":"heading","level":2,"text":"constructor","id":"constructor"},{"kind":"heading","level":3,"text":"Type Parameters","id":"constructor-type-parameters"},{"kind":"typeList","sectionTitle":"constructor","types":[{"name":"Schema","type":"[DMLSchema](/references/types/DmlTypes/types/types.DmlTypes.DMLSchema)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"$dataType","type":"T","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"type","type":"[RelationshipTypes](/references/types/DmlTypes/types/types.DmlTypes.RelationshipTypes)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"TConfig","type":"[IDmlEntityConfig](/references/types/DmlTypes/types/types.DmlTypes.IDmlEntityConfig)","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"name","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"tableName","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]},{"kind":"heading","level":3,"text":"Parameters","id":"constructor-parameters"},{"kind":"typeList","sectionTitle":"constructor","types":[{"name":"nameOrConfig","type":"TConfig","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"schema","type":"Schema","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"kind":"typeList","sectionTitle":"DmlEntity","types":[{"name":"[IsDmlEntity]","type":"`boolean`","description":"","optional":false,"defaultValue":"true","expandable":false,"children":[]},{"name":"name","type":"[InferDmlEntityNameFromConfig](/references/types/DmlTypes/types/types.DmlTypes.InferDmlEntityNameFromConfig)<TConfig>","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"schema","type":"Schema","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]}