diff options
author | Joseph Ditton <jditton.atomic@gmail.com> | 2021-11-16 19:14:46 -0700 |
---|---|---|
committer | Joseph Ditton <jditton.atomic@gmail.com> | 2021-11-16 19:14:46 -0700 |
commit | cba40b6aff598e821199c186c5f1795e5252bab9 (patch) | |
tree | a5e4ad3bae238c3921e10956f21f84ca352c7d6d /server/entities | |
parent | e5f684001370d6f6348fd26f97bc26c765deb934 (diff) | |
download | locchat-cba40b6aff598e821199c186c5f1795e5252bab9.tar.gz locchat-cba40b6aff598e821199c186c5f1795e5252bab9.zip |
separate client and server apps
Diffstat (limited to 'server/entities')
-rw-r--r-- | server/entities/user.entity.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/server/entities/user.entity.ts b/server/entities/user.entity.ts new file mode 100644 index 0000000..df39f3f --- /dev/null +++ b/server/entities/user.entity.ts @@ -0,0 +1,16 @@ +import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm'; + +@Entity() +export class User { + @PrimaryGeneratedColumn() + id: number; + + @Column() + email: string; + + @Column() + name: string; + + @Column() + password_hash: string; +}
\ No newline at end of file |