/*
================================================================================
档案代号:tlm_file
档案名称:单号记录档
档案目的:
上游档案:
下游档案:
============.========================.==========================================
*/
create table tlm_file
(
tlm01       varchar2(16) NOT NULL,   /*参考单号                               */
tlm02       varchar2(16) NOT NULL,   /*单据编号                               */
tlm03       varchar2(10) NOT NULL,   /*异动命令                               */
tlm04       date,                    /*产生日期                               */
tlm05       varchar2(8),             /*产生时间                               */
tlm06       varchar2(10)             /*产生者                                 */
);

create unique index tlm_pk on tlm_file (tlm01,tlm02,tlm03);
alter table tlm_file add  constraint tlm_pk primary key  (tlm01,tlm02,tlm03) enable validate;
grant select on tlm_file to public;
grant index on tlm_file to public;
grant update on tlm_file to public;
grant delete on tlm_file to public;
grant insert on tlm_file to public;