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

Remove autoincrement for Primary Foreign Keys (PFK)

Open alerubis opened this issue 2 years ago • 0 comments

In my SQLite project I have a composite primary key made by an integer autoincrement column and some other PFKs.

Sequelize-auto generate models setting all PK columns with autoIncrement: true.

I think it should not set autoIncrement: true when the column is both primary and foreign key.

alerubis avatar Feb 13 '23 11:02 alerubis