Skip to content

Commit d1c7fe4

Browse files
2 parents bcf39aa + a328fcd commit d1c7fe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/techniques/sql.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,10 +992,10 @@ There are three types of relations:
992992
</tr>
993993
</table>
994994

995-
To define relations in entities, use the corresponding **decorators**. For example, to define that each `User` can have multiple photos, use the `@HasMany()` decorator.
995+
To define relations in models, use the corresponding **decorators**. For example, to define that each `User` can have multiple photos, use the `@HasMany()` decorator.
996996

997997
```typescript
998-
@@filename(user.entity)
998+
@@filename(user.model)
999999
import { Column, Model, Table, HasMany } from 'sequelize-typescript';
10001000
import { Photo } from '../photos/photo.model';
10011001

0 commit comments

Comments
 (0)