This table provides a list of valid properties. This information is fairly static and requires its own data entry page.
Source romber_properties_tbl.sql
create table romber_location.properties ( property_code romber_base.generic_name not null, property_id romber_location.location_id not null, property_name romber_base.generic_name not null, thoroughfare_id romber_location.location_id not null );
Source romber_properties_pk.sql
alter table romber_location.properties
add constraint romber_properties_pk
primary key ( property_id );
Source romber_properties_uk1.sql
alter table romber_location.properties
add constraint romber_properties_uk1
unique (
thoroughfare_id,
property_code );
Source romber_properties_fk1.sql
alter table romber_location.properties
add constraint romber_properties_fk1
foreign key ( property_id )
references romber_location.locations ( location_id );
Source romber_properties_fk2.sql
alter table romber_location.properties
add constraint romber_properties_fk2
foreign key ( thoroughfare_id )
references romber_location.thoroughfares ( thoroughfare_id );