/*****************************************************************************
*
* Filename         - $Workfile:   carrier_map.sql  $
*
*                     Name              Date      Version     CR Number
* Author           - See revision history below.
* Last Update      - See revision history below.
*
* Project Name     - TAGTRAK(Oracle database)
*
* Source Code
* Identifier       - 0/3/300/8010/112
*
* Design Spec
* Section          - 
*
* Contents         - Live schema carrier_map table
*
* Language         - Oracle SQL*Plus script
*
* Classification   - Commercial In Confidence
*
*          (c) Ultra Electronics Limited, 1998
*
*****************************************************************************/
/****************************************************************************
* @(#)$Workfile:   carrier_map.sql  $  $Revision:   1.1  $
*
* Revision History
*
* Note that user tagtrak is many users. For these users the user
* name is entered as the last line in the change description.
*
* $Log:   /pvcsarch/db_ora/db/source/live/tables/carrier_map.svl  $
* 
*    Rev 1.1   21 Jun 2001 14:46:52   tagtrak
* OR:
* CR:
* Re-baseline version 4.0.0 to include patches.
* 
*    Rev 1.0   03 Jun 1998 13:22:52   tagtrak
* Initial check-in to PVCS
*
****************************************************************************/

PROMPT Creating table CARRIER_MAP

create table CARRIER_MAP (
   airline_code1                 char(3) NOT NULL,
   airline_code2                 char(3),
   airline_des1                  char(24),
   airline_des2	                 char(24), 
   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 carrier_map add ( constraint carrier_map_pk primary key (appn_row_id) using index tablespace &1._indexes);

COMMENT ON TABLE CARRIER_MAP IS 'This table contains mappings between carriers and destinations';

COMMENT ON COLUMN CARRIER_MAP.AIRLINE_CODE1 IS  'First airline code';
COMMENT ON COLUMN CARRIER_MAP.AIRLINE_CODE2 IS  'Second airline code';
COMMENT ON COLUMN CARRIER_MAP.AIRLINE_DES1 IS  'First airline destination';
COMMENT ON COLUMN CARRIER_MAP.AIRLINE_DES2 IS  'Second airline estination';
COMMENT ON COLUMN CARRIER_MAP.APPN_ROW_ID IS 'Unique sequence number for this row';
COMMENT ON COLUMN CARRIER_MAP.ROW_CREATE_TIME IS 'The time the row was created';
COMMENT ON COLUMN CARRIER_MAP.ROW_DATE_TIME IS 'The time the row was last modified';
COMMENT ON COLUMN CARRIER_MAP.CUSER IS 'The user who created the row';
COMMENT ON COLUMN CARRIER_MAP.MUSER IS 'The user who last modified the row';
COMMENT ON COLUMN CARRIER_MAP.MTERM IS 'The terminal from which the last modifcation to this row was made';
COMMENT ON COLUMN CARRIER_MAP.SYSTEM_ID IS 'The system identifier';
COMMENT ON COLUMN CARRIER_MAP.SOURCE IS 'The process that last amended this row ';
COMMENT ON COLUMN CARRIER_MAP.TO_BE_ARCHIVED IS 'Indicates that this row is to be archived or has been archived';
