Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

ERD

...

Data structures

PERSONS


NameTypeM/ODescription and constraints
iduuidM
last_namevarcharM
first_namevarcharM
second_namevarcharO
birth_datedateM
birth_countryvarcharM
birth_settlementvarcharM
gendervarcharM
emailvarcharO
tax_idvarcharO
death_datedateO
is_activebooleanM
documentsjsonb[ ] M
addressesjsonb[ ]M
phonesjsonb[ ] O
secretvarcharO
emergency_contactjsonbM
confidant_personjsonb[]O
patient_signedbooleanM
process_disclosure_data_consentbooleanM
authentication_methodsjsonbM
preferred_way_communicationvarcharM


PARTIES


NameTypeM/ODescription and constraints
iduuidM
last_namevarcharM
first_namevarcharM
second_namevarcharO
person_iduuidO
emailvarcharM
birth_datedateM
gendervarcharM
tax_idvarcharM
no_tax_idbooleanO
documentsjsonb[]M
phonesjsonb[]M
educationsjsonb[]O
qualificationsjsonb[]O
specialitiesjsonb[]O
science_degreejsonbO
about_myselfdateO
working_experiencestringO


EMPLOYEES


NameTypeM/ODescription and constraints
iduuidM
person_iduuidO
positionvarcharM
statusvarcharM
status_reasonvarcharO
employeevarcharM
employee_typevarcharM
is_activebooleanM
start_datetimestampM
end_datetimestampO
legal_entity_iduuidM
division_iduuidO
specialityjsonbO
propertiesjsonbO


USERS

NameTypeM/ODescription and constraints
iduuidM
emailvarcharM
passwordvarcharM
settingsjsonbO
priv_settingsjsonbO
is_blockedbooleanO
block_reasonvarcharO
person_iduuidO
inserted_attimeatampM
updated_attimeatampM



NameTypeM/ODescription and constraints
iduuidM
namevarcharM
short_namevarcharM
public_namevarcharM
statusvarcharM
typevarcharM
owner_property_typevarcharM
legal_formvarcharM
edrpouvarcharM
kvedsvarcharM
addressesjsonb[ ] M
phonesjsonb[ ] M
emailvarcharM
is_activebooleanM
mis_verifiedbooleanO
nhs_verifiedbooleanO
websitevarcharO
beneficiaryvarcharO
receiver_funds_codevarcharO
archivejsonbO


...

NameTypeM/ODescription and constraints
iduuidM
external_id varcharO
namevarcharM
typevarcharO
mountaint_groupbooleanM
locationgeometryM
addressesjsonb[ ]M
phonesjsonb[ ]M
emailvarcharM
working_hoursjsonb[ ]O
is_activebooleanO
legal_entity_iduuidM
statusenum ('')M


JSONB structures 

Address

This data type defines address structure


NameTypeM/ODescription and constraints
typeDictionary: ADDRESS_TYPEM
countryDictionary: COUNTRYM
areastringM
regionstringO
settlementstringM
settlement_idstringMsettlement_id must be a valid UAddresses entity
settlement_typeDictionary: SETTLEMENT_TYPEM
street_typeDictionary: STREET_TYPEM
streetstringO
buildingstringM
apartmentstringO
zipstringO

Phone

This data type defines Phone structure


NameTypeM/ODescription and constraints
typeDictionary: PHONE_TYPEM
numberstringM


Document

This data type defines Document structure


NameTypeM/ODescription and constraints
typeDictionary: DOCUMENT_TYPEM
numberstringM
issued_atdateO
issued_bystringO


Emergency_contact

NameTypeM/ODescription and constraints
first_namestringM
last_namestringM
second_namestringO
phonesjsonb []M


Confidant_person

NameTypeM/ODescription and constraints
typeenum: [PRIMARY,
SECONDARY]
M
first_namestringM
last_namestringM
second_namestringO
birth_datedateM
birth_countryDictionary: COUNTRYM
birth_settlementstringM
genderstringM
tax_idstringM
secretstringO
documents_personDocument: jsonb[ ]M
documents_relationshipDocument: jsonb[ ]M
phonesPhone: jsonb[ ]M

Authentification_method

NameTypeM/ODescription and constraints
typeenum['OFFLINE'/'MOBILE_PHONE']M
numberstringO

...

NameTypeM/ODescription and constraints
countryDictionary: COUNTRYM
citynameM
degreeDictionary: SCIENCE_DEGREEM
institution_namevarcharM
diploma_numbervarcharM
specialitydateM

Properties

NameTypeM/ODescription and constraints
limitnumberM
counternumberM