models: id_user -> user_id
Closed this issue · 2 comments
jirikuncar commented
Shall we go with user_id
or id_user
everywhere?
See:
- user_id: https://github.com/search?utf8=%E2%9C%93&q=org%3Ainveniosoftware+user_id&type=Code&ref=searchresults
- id_user: https://github.com/search?utf8=%E2%9C%93&q=org%3Ainveniosoftware+id_user&type=Code&ref=searchresults
cc @inveniosoftware/triagers
nharraud commented
As this would imply changing other names too I did some other searchs:
- token:
- communities:
- session:
- session_id => 2
- id_session => 0
- page:
- page_id => 1
- id_page => 0
- profile:
- profile_id => 1
- id_profile => 0
- record:
- file:
This goes in the direction of what Google says (and everybody knows Google is always right ;) ):
Thus I would say, go with less refactoring, which means less bugs.
kaplun commented
For historical reference: in Invenio 1 id_foo
was a foreign key to foo.id
, whilefoo_id
was instead a simple way to have an id that was not necessarily an auto-increment primary key.