Knex Key Komposit

table.primary(['name_of_column_1', 'name_of_column_2']);
Sparkling Snail