PROMPT Creating Table TZ_DATA

create table tz_data (
   id                            varchar2(50) not null,
   description                   varchar2(100),
   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 tz_data add ( constraint tz_data_pk primary key (appn_row_id) using index tablespace &1._indexes);

alter table tz_data add ( constraint tz_data_uk1 unique (id) using index tablespace &1._indexes);

COMMENT ON TABLE AGENTS IS 'This table contains information about timezones';

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

