This table provides a list of valid localities. This information is static and doesn't need a data entry page.
Source romber_localities_tbl.sql
create table romber_location.localities ( country_postal_zone_id romber_location.location_id not null, country_zone_id romber_location.location_id not null, locality_id romber_location.location_id not null, locality_name_id romber_location.location_id not null );
Source romber_localities_pk.sql
alter table romber_location.localities
add constraint romber_localities_pk
primary key ( locality_id );
Source romber_localities_uk1.sql
alter table romber_location.localities
add constraint romber_localities_uk1
unique (
locality_name_id,
country_postal_zone_id,
country_zone_id );
Source romber_localities_fk1.sql
alter table romber_location.localities
add constraint romber_localities_fk1
foreign key ( locality_id )
references romber_location.locations ( location_id );
Source romber_localities_fk2.sql
alter table romber_location.localities
add constraint romber_localities_fk2
foreign key ( locality_name_id )
references romber_location.locality_names ( locality_name_id );
Source romber_localities_fk3.sql
alter table romber_location.localities
add constraint romber_localities_fk3
foreign key ( country_postal_zone_id )
references romber_location.country_postal_zones ( country_postal_zone_id );
Source romber_localities_fk4.sql
alter table romber_location.localities
add constraint romber_localities_fk4
foreign key ( country_zone_id )
references romber_location.country_zones ( country_zone_id );