You are on page 1of 1

Token

+pk: integer{id}
1
+token: varchar
+expiration_date: date

User
+pk: integer {id}
+password: char(16) Account
+first_name: char(30) +pk: integer {id}
+last_name: char(30) 1..* 1 +name: char(30)
+email: char(50) {unique} +email: char(50)
Google Maps API -role: enum {super|admin|user} +api_key
OpenStreetMap API

GeocodingProvider
+pk: integer {id}
+name: enum
+api_key: uuid(64) {unique} Address
+pk: integer {id}
+input_address: char(255) {unique} This
+language_code: char(2) language_code AccountCountry
+is_ready: boolean = false is only for
1 +country_code: char(2) training
1 purposes
+getComponents()
*
1 +addAddressGeocoded()
AddressGeocoded *
*
+pk: integer{id} Country
+formatted_address: varchar
+latitude: decimal(9,6) 1 +pk {id}
+longitude: decimal(9,6) +alpha_2 {unique}
0,1
+name {unique}
+active: boolean = false
+active_since: datetime This is the language
is_ready, indicate if the address available to return
was approved for training or test +language_1: char(2)
results for that
stage +language_2: char(2) country
1 +language_3: char(2)
+setAddressEntity()
*
1..*
position indicate the
AddressComponent position of the component 1
AddressGeocodedComponent in the address from left to
+pk: integer {id}
right
+pk: integer {id} +value: varchar
+value: varchar +position: integer
+position: integer -check_again: boolean = false
-previous_entity: varchar
* *
1..* 1 +getAddressEntity()

GeocodingEntity 1 *

+pk: integer {id}


+label: varchar AllowedAddressEntity
before delete allowed
+pk: integer {id} address entity first copy
+country_alpha_2 the entity to
MatchingEntity addresscomponente and
set a new atribute to set
or unset. This is for when
* someone change by
1 accidente the allowed
entities
AddressEntity
+pk: integer {id}
+label: varchar

You might also like