Created
June 29, 2020 16:48
-
-
Save birendra-b/6ac3f90ba26c7039554c98a35b70068e to your computer and use it in GitHub Desktop.
src/entities/User.ts
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