# Zones table primary key

**URL:** <https://odm.discourse.group/t/zones-table-primary-key/106>\
**Category:** Uncategorized\
**Created:** [February 24, 2023, 6:49pm UTC](https://odm.discourse.group/t/zones-table-primary-key/106 "2023-02-24T18:49:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wastewater\_belgium](https://avatars.discourse-cdn.com/v4/letter/w/c0e974/32.png) [@wastewater\_belgium](https://odm.discourse.group/u/wastewater_belgium)\
**Post date:** [February 24, 2023, 6:49pm UTC](https://odm.discourse.group/t/zones-table-primary-key/106/1 "2023-02-24T18:49:14Z")

</div>

Should not ISO2zone be the primary key and ISO2code foreign key?

---

<div class="post-metadata">

**Author:** ![matthomson](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@matthomson](https://odm.discourse.group/u/matthomson)\
**Post date:** [March 2, 2023, 7:32pm UTC](https://odm.discourse.group/t/zones-table-primary-key/106/2 "2023-03-02T19:32:00Z")

</div>

Hello - I’m Mathew, a one of the people working on the ODM.

I reviewed the ERD and I think you are absolutely right. Clearly a mistake on our end. Thank you you for catching that and bring it to our attention. It has now been fixed internally and this fix should be reflected in the public-facing package very soon.

Thank you again.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/odm/original/1X/34f6410d4262a308493f8c3b977a49666a3a2929.png) [@system](https://odm.discourse.group/u/system)\
**Post date:** [March 3, 2023, 7:33pm UTC](https://odm.discourse.group/t/zones-table-primary-key/106/3 "2023-03-03T19:33:01Z")

</div>

Closed on March 3, 2023, 7:33pm UTC

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
