title: How to define varchar and enum in TypeORM?
body: <p>I have database structure need to declare the variable into <code>varchar</code>, <code>int</code>, and <code>enum</code> using TypeORM in TypeScript. But in TypeScript doesn't have data type varchar and int. How do I declare it?</p>
  
  <p><a href="https://i.stack.imgur.com/FtYGu.png" rel="noreferrer">Database structure</a></p>
  
  <pre><code>import {Entity, PrimaryGeneratedColumn, Column} from "typeorm";
  
  @Entity()
  export class User {
      @PrimaryGeneratedColumn()
      id: number;
  
      @Column()
      account_id: varchar;
  
      @Column()
      email: varchar;
  
      @Column()
      phone_number: varchar;
  
      @Column()
      address: varchar;
  
      @Column()
      status: enum;
  
      @Column()
      current_id: varchar;
  }
  </code></pre>