Skip to content

Commit

Permalink
chore: update document.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Dec 2, 2024
1 parent a0d4334 commit 4ecb99a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ import { TypeNexus } from 'typenexus';
`./src/user.entity.ts`

```typescript
import { Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn, CreateDateColumn } from 'typenexus';
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn } from 'typenexus';
// 或者:
import { Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn, CreateDateColumn } from 'typeorm';
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn } from 'typeorm';

@Entity()
export class User {
Expand Down
4 changes: 2 additions & 2 deletions core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ Entity is a class that maps to a database table (or collection when using `Postg
`./src/user.entity.ts`

```typescript
import { Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn, CreateDateColumn } from 'typenexus';
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn } from 'typenexus';
// OR:
import { Entity, PrimaryGeneratedColumn, Column, DeleteDateColumn, CreateDateColumn } from 'typeorm';
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn } from 'typeorm';

@Entity()
export class User {
Expand Down

0 comments on commit 4ecb99a

Please sign in to comment.