最后活跃于 1729144840

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

1 file changed, 24 insertions

TypeORM-readme-19.ts(file created)

@@ -0,0 +1,24 @@
1 + import { Entity, Column, PrimaryGeneratedColumn } from "typeorm"
2 +
3 + @Entity()
4 + export class Photo {
5 + @PrimaryGeneratedColumn()
6 + id: number
7 +
8 + @Column({
9 + length: 100,
10 + })
11 + name: string
12 +
13 + @Column("text")
14 + description: string
15 +
16 + @Column()
17 + filename: string
18 +
19 + @Column("double")
20 + views: number
21 +
22 + @Column()
23 + isPublished: boolean
24 + }
更新 更早