PROMPT Creating table CONNECTION_CONFIGURATION

create table connection_configuration
(  connect_type                  char(6) not null,
   mapping                       char(6),
   row_create_time               date,
   row_date_time                 date,
   cuser                         varchar2(30),
   muser                         varchar2(30),
   mterm                         varchar2(64),
   source                        varchar2(8),
   to_be_archived                varchar2(1),
   appn_row_id                   number(18) not null,
   system_id                     number(4) default 0 not null
);

alter table connection_configuration add ( constraint connection_configuration_pk primary key (appn_row_id) using index tablespace &1._indexes);

alter table connection_configuration add ( constraint connection_configuration_uk1 unique (connect_type) using index tablespace &1._indexes );

COMMENT ON TABLE CONNECTION_CONFIGURATION IS 'This table contains information about terminal connection mappings';

COMMENT ON COLUMN CONNECTION_CONFIGURATION.CONNECT_TYPE IS  'Connection type';
COMMENT ON COLUMN CONNECTION_CONFIGURATION.MAPPING IS  'Connection mapping';
COMMENT ON COLUMN CONNECTION_CONFIGURATION.APPN_ROW_ID IS 'Unique sequence number for this row';
COMMENT ON COLUMN CONNECTION_CONFIGURATION.ROW_CREATE_TIME IS 'The time the row was created';
COMMENT ON COLUMN CONNECTION_CONFIGURATION.ROW_DATE_TIME IS 'The time the row was last modified';
COMMENT ON COLUMN CONNECTION_CONFIGURATION.CUSER IS 'The user who created the row';
COMMENT ON COLUMN CONNECTION_CONFIGURATION.MUSER IS 'The user who last modified the row';
COMMENT ON COLUMN CONNECTION_CONFIGURATION.MTERM IS 'The terminal from which the last modifcation to this row was made';
COMMENT ON COLUMN CONNECTION_CONFIGURATION.SYSTEM_ID IS 'The system identifier';
COMMENT ON COLUMN CONNECTION_CONFIGURATION.SOURCE IS 'The process that last amended this row ';
COMMENT ON COLUMN CONNECTION_CONFIGURATION.TO_BE_ARCHIVED IS 'Indicates that this row is to be archived or has been archived';
