knox 修订了这个 Gist . 跳至此修订
1 file changed, 11 insertions
TypeORM-readme-15.ts(file created)
@@ -0,0 +1,11 @@ | |||
1 | + | import { Entity } from "typeorm" | |
2 | + | ||
3 | + | @Entity() | |
4 | + | export class Photo { | |
5 | + | id: number | |
6 | + | name: string | |
7 | + | description: string | |
8 | + | filename: string | |
9 | + | views: number | |
10 | + | isPublished: boolean | |
11 | + | } |
更新
更早