diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-05-23 23:45:12 -0400 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-05-23 23:45:12 -0400 |
commit | 27ecedb02ef79ce53bf533e016b00462c44541be (patch) | |
tree | 402305113b6f04c3e3b3563b68d32de5ff1c69c8 /extension/examples/MyProject/src/entity | |
download | sncontinue-27ecedb02ef79ce53bf533e016b00462c44541be.tar.gz sncontinue-27ecedb02ef79ce53bf533e016b00462c44541be.tar.bz2 sncontinue-27ecedb02ef79ce53bf533e016b00462c44541be.zip |
copying from old repo
Diffstat (limited to 'extension/examples/MyProject/src/entity')
-rw-r--r-- | extension/examples/MyProject/src/entity/User.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/extension/examples/MyProject/src/entity/User.ts b/extension/examples/MyProject/src/entity/User.ts new file mode 100644 index 00000000..1e82835e --- /dev/null +++ b/extension/examples/MyProject/src/entity/User.ts @@ -0,0 +1,16 @@ +import { Entity, PrimaryGeneratedColumn, Column } from "typeorm"; + +@Entity() +export class User { + @PrimaryGeneratedColumn() + id!: number; + + @Column() + name!: string; + + @Column() + email!: string; + + @Column() + password!: string; +} |