Set of classes to store persons, organizations, relationships and contact mechanisms
These structures are modeled like described in ‘The Data Model Resource Book’ by Len Silverston, Chapter 2
The Address to be given to a Party (a Person or an Organization)
Fields :
- city : refers to <class ‘camelot.model.party.City’>
- street1 : VARCHAR(128), required
- street2 : VARCHAR(128), not required
- party_addresses : refers to PartyAddress
Admin with only the Address information and not the Party information
Fields :
- country : refers to <class ‘camelot.model.party.Country’>
Fields :
- party_contact_mechanisms : refers to PartyContactMechanism
- mechanism : VARCHAR(256), required
- party_address : refers to <class ‘camelot.model.party.PartyAddress’>
Fields :
Relation from a directed organization to a director
Relation from employer to employee
The base class for Country and City
Fields :
- customers : refers to SupplierCustomer
- logo : VARCHAR(100), not required
- tax_id : VARCHAR(20), not required
- shareholders : refers to SharedShareholder
- name : VARCHAR(50), required
- employees : refers to EmployerEmployee
- directors : refers to DirectedDirector
- suppliers : refers to SupplierCustomer
Base class for persons and organizations. Use this base class to refer to either persons or organisations in building authentication systems, contact management or CRM
Person represents natural persons
Fields :
- comment : TEXT, not required
- picture : VARCHAR(100), not required
- last_name : VARCHAR(40), required
- suffix : VARCHAR(3), not required
- sex : VARCHAR(1), not required
- passport_expiry_date : DATE, not required
- employers : refers to EmployerEmployee
- first_name : VARCHAR(40), required
- middle_name : VARCHAR(40), not required
- passport_number : VARCHAR(20), not required
- birthdate : DATE, not required
- is_superuser : <class ‘sqlalchemy.types.Boolean’>, not required
- is_staff : <class ‘sqlalchemy.types.Boolean’>, not required
- martial_status : VARCHAR(1), not required
- social_security_number : VARCHAR(12), not required
- personal_title : VARCHAR(10), not required
Relation from a representing party to the person representing the party
Relation from a shared organization to a shareholder