CICIC / gestioCI_butterfly_release

This is software for Cooperative management
https://wiki.enredaos.net/index.php?title=GestioCI
4 stars 2 forks source link

Company primary key #3

Open emwa opened 9 years ago

emwa commented 9 years ago

I've observed that in the declaration of the company: https://github.com/CICIC/gestioCI_butterfly_release/blob/master/General/models.py#L283

the primary key is the human ID, then this table is limited to one company per human, is it right?

bum2 commented 9 years ago

Not exactly. A company is a kind of human entity, so every company has a unique human id. That doesn't mean that a person, project or company (the 3 kinds of human beings) can't be related to N companies. Every kind of human can has relations with evey kind of human: