wxs77577 / rest-admin

Restful Admin Dashboard Based on Vue and Boostrap 4
http://rest-admin.genyii.com
MIT License
623 stars 128 forks source link

ID naming strategy #20

Closed lixaotec closed 5 years ago

lixaotec commented 5 years ago

Dear @wxs77577 ,

I´m struggling to deal with my ID naming strategy within rest-admin.

Your strategy waiits for _id as table id, and my models are all with 'id' without underscore. The underscore I adopt as FK like user: {id: 1, category_id: 1}, and for this is working.

What could I do instead of chaging all my models?

Thanks once again

lixaotec commented 5 years ago

Nevermind. I understood my mistake. Just change the promarykey config