sequelize / sequelize-auto

Automatically generate bare sequelize models from your database.
2.9k stars 527 forks source link

Remove autoincrement for Primary Foreign Keys (PFK) #637

Open alerubis opened 1 year ago

alerubis commented 1 year ago

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.