sequelize-auto icon indicating copy to clipboard operation
sequelize-auto copied to clipboard

Support comments on tables with postgres

Open trevorlinton opened this issue 4 years ago • 2 comments

Currently column comments are exported to the sequelize models with sequelize-auto, it'd be nice if the table comments would be exported as well.

trevorlinton avatar Nov 24 '21 22:11 trevorlinton

Makes sense. Where should they go?

steveschmitt avatar Nov 27 '21 04:11 steveschmitt

https://sequelize.org/master/class/lib/model.js~Model.html#static-method-init on the options.comment?

Then I suppose the returned Model class would need a public static method Model#getComment() and Model#setComment() ?

Also, i'm happy to put in a PR if this looks like it would be worth while to do.

trevorlinton avatar Dec 09 '21 22:12 trevorlinton