Created
December 14, 2019 07:35
-
-
Save songthamtung/d32dc9decbf67e43416edd060091e932 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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