hunk.code_window: ```
   typeorm migrations:revert
   ```
   This command will undo only the last executed migration.
  
hunk.labels: keep keep replace keep keep keep
hunk.after_edit: typeorm migration:revert
  
hunk.file_path: docs/using-cli.md
hunk.type: replace
file: import {Entity} from "../../../../src/decorator/entity/Entity";
  import {PrimaryGeneratedColumn} from "../../../../src/decorator/columns/PrimaryGeneratedColumn";
  import {Column} from "../../../../src/decorator/columns/Column";
  import {Index} from "../../../../src/decorator/Index";
  import {OneToOne} from "../../../../src/decorator/relations/OneToOne";
  import {JoinColumn} from "../../../../src/decorator/relations/JoinColumn";
  import {User} from "./User";
  
  @Entity()
  @Index("table_index_userId_mid", (post: Item) => [post.userId, post.mid])
  export class Item {
  
      @PrimaryGeneratedColumn()
      postId: number;
  
      @OneToOne(type => User, users => users.userId)
      @JoinColumn({ name: "userId" })
      userData: User;
  
      @Column({ type: "int"})
      userId: number;
  
      @Column({ type: "int" })
      mid: number;
  
  }