Last active
September 14, 2020 05:44
-
-
Save SergeyMell/53a89c06fdfd4e1a47186100fcb382f2 to your computer and use it in GitHub Desktop.
TypeORM joined tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Entity('posts') | |
export class Post extends BaseEntity { | |
@PrimaryColumn({ | |
name: 'pk_post', | |
generated: 'increment', | |
}) | |
id: number; // <= Should always be `id` | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment