最后活跃于 1729143604

knox 修订了这个 Gist 1729143604. 跳至此修订

1 file changed, 16 insertions

TypeORM-readme-1.ts(file created)

@@ -0,0 +1,16 @@
1 + import { Entity, PrimaryGeneratedColumn, Column } from "typeorm"
2 +
3 + @Entity()
4 + export class User {
5 + @PrimaryGeneratedColumn()
6 + id: number
7 +
8 + @Column()
9 + firstName: string
10 +
11 + @Column()
12 + lastName: string
13 +
14 + @Column()
15 + age: number
16 + }
更新 更早