default

Romber

Database tables

romber_location.thoroughfare_types

Purpose

This table provides a list of valid thoroughfare types. This information is fairly static and requires its own data entry page.

Definition

Source romber_thoroughfare_types_tbl.sql

create table romber_location.thoroughfare_types (
  thoroughfare_type_code        romber_base.generic_code        not null,
  thoroughfare_type_id          romber_location.location_id     not null,
  thoroughfare_type_name        romber_base.generic_name        not null );

Constraints

Source romber_thoroughfare_types_pk.sql

alter table romber_location.thoroughfare_types
  add constraint romber_thoroughfare_types_pk
    primary key ( thoroughfare_type_id );

Source romber_thoroughfare_types_uk1.sql

alter table romber_location.thoroughfare_types
  add constraint romber_thoroughfare_types_uk1
    unique ( thoroughfare_type_code );

Source romber_thoroughfare_types_fk1.sql

alter table romber_location.thoroughfare_types
  add constraint romber_thoroughfare_types_fk1
    foreign key ( thoroughfare_type_id )
    references romber_location.locations ( location_id );

 

Copyright © Corpita Pty Ltd 1987 - 2024

Developed by romber.net
Page modified on 28-Apr-2023