Last active
June 18, 2019 03:07
-
-
Save chnirt/30c0af6a5958a35eafebacf557935e90 to your computer and use it in GitHub Desktop.
NestJs
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, ObjectIdColumn } from 'typeorm'; | |
@Entity() | |
export class User { | |
@ObjectIdColumn() | |
_id: string; | |
@Column() | |
username: string; | |
@Column() | |
password: string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment