default

Romber

Database tables

romber_telecomm.address_types

Purpose

This table provides a list of valid telecommunications address types. This information is static and doesn't need a data entry page.

Definition

Source romber_telecomm_address_types_tbl.sql

create table romber_telecomm.address_types (
  component_or_not              boolean                                 not null,
  telecomm_address_type_code    romber_base.generic_code                not null,
  telecomm_address_type_id      romber_telecomm.address_type_id         not null
                                  default nextval ( 'romber_base.generic_id_seq' ),
  telecomm_address_type_name    romber_base.generic_name                not null );

Constraints

Source romber_telecomm_address_types_pk.sql

alter table romber_telecomm.address_types
  add constraint romber_telecomm_address_types_pk
    primary key ( telecomm_address_type_id );

Source romber_telecomm_address_types_uk1.sql

alter table romber_telecomm.address_types
  add constraint romber_telecomm_address_types_uk1
    unique ( telecomm_address_type_code );

Source romber_telecomm_address_types_fk1.sql

alter table romber_telecomm.address_types
  add constraint romber_telecomm_address_types_fk1
    foreign key ( telecomm_address_type_id )
    references romber_meta.objects ( meta_object_id );

Load

Source romber_telecomm_address_types_load.sql

insert into romber_telecomm.address_types (
    component_or_not,
    telecomm_address_type_code,
    telecomm_address_type_id,
    telecomm_address_type_name )
  values (
    true,
    '',
    0,
    '' );

 

Copyright © Corpita Pty Ltd 1987 - 2024

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