Skip to content

Commit a328fcd

Browse files
Merge pull request #2795 from AbdElRahmanMostafa1/AbdoMostafa-docs/sequelize
docs(sequelize): fix wrong file name and relation name in sequelize
2 parents ca00168 + 6f9c475 commit a328fcd

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)