GORM Playground Link

https://github.com/go-gorm/playground/pull/417

Description

Use Case: Define table with multiple primary keys (composite key) Upon New record insert, Get ID of autoIncrement enabled field.

Issue: 0 returned for autoIncrement enabled field. (Only when the model has 2 fields using primarykey tag)

Example: Model Defined Gorm composite key auto-increment returned 0 upon Create of new record

Test Case: Gorm composite key auto-increment returned 0 upon Create of new record

Test Result: Gorm composite key auto-increment returned 0 upon Create of new record