Created
October 18, 2020 09:27
-
-
Save davidcsejtei/ea8820b8153745e2c710f179cc345181 to your computer and use it in GitHub Desktop.
User Entity for TypeORM
This file contains hidden or 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, Column, PrimaryGeneratedColumn } from 'typeorm'; | |
| @Entity() | |
| export class User { | |
| @PrimaryGeneratedColumn() | |
| id: number = 0; | |
| @Column() | |
| name: string = ""; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment