# Django - models & table columns in DataGrip not matching

**URL:** <https://forum.codewithmosh.com/t/django-models-table-columns-in-datagrip-not-matching/10849>\
**Category:** Django\
**Created:** [February 21, 2022, 2:10am UTC](https://forum.codewithmosh.com/t/django-models-table-columns-in-datagrip-not-matching/10849 "2022-02-21T02:10:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeancm](https://avatars.discourse-cdn.com/v4/letter/j/c37758/32.png) [@jeancm](https://forum.codewithmosh.com/u/jeancm)\
**Post date:** [February 21, 2022, 2:10am UTC](https://forum.codewithmosh.com/t/django-models-table-columns-in-datagrip-not-matching/10849/1 "2022-02-21T02:10:23Z")

</div>

Hello,

I’m really curious as to why the OrderItem model in store/models.py contains 2 fields named order and product but they are represented in DataGrip as order\_id & product\_id. This really confused me when working on the filtering across relationships. Could you please explain what is going on here? Were the column names overwritten when I performed the insert statement in DataGrip? (although that wouldn’t make sense, in ssms this would have thrown an err not sure if it’s allowed in MySQL).

I really hope you get around to seeing this. I am a new student of yours and tho I have some understanding or filtering across relationships this one really stumped me and I’d really like to understanding the why behind it.

Quick note: i’ve done some digging on my own before asking, as i’ve done with all errors i’ve gotten before getting to this point in the course (that mysqlclient install err was a real pain haha).

Thank you so much!

Jean
