/*****************************************************************************
*
* Filename         - $Workfile:   bag_colour_codes.sql  $
*
* Author           - Daniel Jones
*
* Project Name     - UltraTrak (Oracle Database)
*
* Contents         - Live Schema: bag_colour_codes table
*
* Language         - Oracle SQL*Plus script
*
* Classification   - Commercial In Confidence
*
*          (c) Ultra Electronics Limited, 2008
*
*****************************************************************************/

PROMPT Creating table BAG_COLOUR_CODES

CREATE TABLE bag_colour_codes (
   code				   VARCHAR2(2)   NOT NULL,
   description                   VARCHAR2(200)     NOT NULL,
   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 bag_colour_codes add ( constraint bag_colour_codes_pk primary key (appn_row_id) using index tablespace &1._indexes);

COMMENT ON TABLE BAG_COLOUR_CODES IS 'This table contains valid bag colour codes';

COMMENT ON COLUMN BAG_COLOUR_CODES.CODE IS 'The Colour Code';
COMMENT ON COLUMN BAG_COLOUR_CODES.DESCRIPTION IS 'Description of the Code';
