Skip to content

Instantly share code, notes, and snippets.

@songthamtung
Created December 14, 2019 07:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save songthamtung/d32dc9decbf67e43416edd060091e932 to your computer and use it in GitHub Desktop.
Save songthamtung/d32dc9decbf67e43416edd060091e932 to your computer and use it in GitHub Desktop.
import {Entity, PrimaryGeneratedColumn, Column} from "typeorm";
@Entity()
export class User {
@PrimaryGeneratedColumn()
id: number;
@Column()
firstName: string;
@Column()
lastName: string;
@Column()
age: number;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment