eugene-manuilov/typeorm-uml

Marks foreign keys

micalevisk opened this issue · 2 comments

I think it would be nice to have the suffix <<FK>> to all foreign keys columns

return ` ${ prefix }${ columnName }: ${ type.toUpperCase() }${ length }\n`;

You can verify if the column is foreign key by using if (!!column.referencedColumn) (source)

What do you think?

Yes, I like it. Added to the develop branch (#21). Will ship it with the next release.

The new version 1.4.0 has been published and this feature has been shipped. Thanks, @micalevisk! 🎉