Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using INN or OGRN as company/person ID? #3

Open
pudo opened this issue Jul 13, 2022 · 1 comment
Open

Using INN or OGRN as company/person ID? #3

pudo opened this issue Jul 13, 2022 · 1 comment

Comments

@pudo
Copy link
Contributor

pudo commented Jul 13, 2022

My initial sense was that we should use OGRN because its longer and thus more likely to actually be unique. Also that it identifies the company, not the taxable subject. However, as I am starting to dive into the EGRUL data, I see that INN is used as a foreign key all over the place - which would make it maybe easier to use INN. What do people think? @ArtemCLime @ozhyrenkov ?

English explainer: http://intranorm.com/en/comm/ogrn-and-inn-en.html

@ArtemCLime
Copy link
Collaborator

In the current implementation, OGRN is used as a Primary key for all organisations and INN for all persons. INN can be actually NA for a few types of organisations (for example some orthodox companies may have no INN) so we can't use INN properly here as the primary key. OGRN again is always available for all kinds of companies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants