---
title: 建模
---

来源：https://mikro-orm.io/docs/modeling

如何定义实体、映射关联关系、配置索引与自定义类型。

## 本节页面

- [定义实体](./18-defining-entities.md)
- [实体关系建模](./19-relationships.md)
- [类型安全关系](./20-type-safe-relations.md)
- [继承映射](./21-inheritance-mapping.md)
- [索引与唯一约束](./22-indexes.md)
- [使用内嵌对象分离关注点](./23-embeddables.md)
- [复合主键与外键作主键](./24-composite-keys.md)
- [JSON 属性](./25-json-properties.md)
- [自定义类型](./26-custom-types.md)
