最后活跃于 1729146048

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

1 file changed, 8 insertions

TypeORM-readme-37.ts(file created)

@@ -0,0 +1,8 @@
1 + export class Photo {
2 + // ... other columns
3 +
4 + @OneToOne(() => PhotoMetadata, (metadata) => metadata.photo, {
5 + cascade: true,
6 + })
7 + metadata: PhotoMetadata
8 + }
更新 更早