Table stoq_schema.public.city_location Generated by
SchemaSpy
Legend: SourceForge.net
Primary key columns
Columns with indexes
Implied relationships
Excluded column relationships
< n > number of related tables
 
Column Type Size Nulls Auto Default Children Parents Comments
id bigserial 19  √  nextval('city_location_id_seq'::regclass)
address.city_location_id address_city_location_id_fkey R
individual.birth_location_id individual_birth_location_id_fkey R
country text 2147483647  √  null
city text 2147483647  √  null
state text 2147483647  √  null
city_code int4 10  √  null
state_code int4 10  √  null

Analyzed at Fri Jun 10 16:06 BRT 2016

Indexes:
Column(s) Type Sort Constraint Name Anomalies
id Primary key Asc city_location_pkey  
country + state + city Must be unique Asc/Asc/Asc city_location_country_state_city_key These unique columns are also nullable

Close relationships  within of separation: