SHARE
TWEET

Untitled

a guest Feb 21st, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { PrimaryGeneratedColumn, Column, Entity, OneToMany, ManyToMany } from 'typeorm';
  2.  
  3. @Entity()
  4. export class User {
  5.     @PrimaryGeneratedColumn()
  6.     id: number;
  7.  
  8.     @Column({ length: 128 })
  9.     firstName: string;
  10.  
  11.     @Column({ length: 128 })
  12.     lastName: string;
  13.  
  14.     @Column({ length: 128 })
  15.     email: string;
  16.  
  17.     @Column({ length: 64 })
  18.     username: string;
  19.  
  20.     @Column({ length: 64 })
  21.     password: string;
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top