go-gorm / playground

GORM Playground (Please Create PR for this project to report issues)
MIT License
89 stars 678 forks source link

demonstrate primaryKey does not understand priority #674

Open zeevt-at-jfrog opened 8 months ago

zeevt-at-jfrog commented 8 months ago

Explain your user case and expected results

unique index understand field priority but Composite Primary Key does not understand field priority and when you try it just doesn't create a primary key.

Since Composite Primary Keys are supported, they should understand field priority.