Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

View file
nameerd_example_v5.pdf
height250
Table of Contents

ERD


View file
nameerd_example_v5.pdf
height250

...

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


REGISTERS


NameTypeM/ODescription and constraints
iduuidM
file_namevarcharM
statusenum[new, processing, processed ]

M


typeDICTIONARY='REGISTER_TYPE'M
qty

jsonb:

{not_found: number,

processing: number,

errors: number,

total: number}

M
errorsarray (e.g. ["Row has length 4 - expected length 5 on line 5"])M
inserted_atuuidM
inserted_bytimestampM
updated_atuuidM
updated_bytimestampM


REGISTER_ENTRIES


Name SourceM/ODescription and constraints
iduuidM
register_iduuidM
tax_idvarcharO

national_id

varcharO

passport

varcharO

birth_certificate

varcharO

temporary_certificate

varcharO
status

enum (processing, matched, not_found)

M
inserted_atuuidM
inserted_bytimestampM
updated_atuuidM
updated_bytimestampM


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

...