/*
================================================================================
档案代号:tpla_file
档案名称:劳保异动单头资料档
档案目的:
上游档案:
下游档案:
============.========================.==========================================
*/
create table tpla_file
(
tpla01      varchar2(16) NOT NULL,   /*异动单号                               */
tpla02      date,                    /*单据日期                               */
tpla03      date,                    /*生效日期                               */
tpla04      varchar2(1),             /*No Use                                 */
tpla05      varchar2(1),             /*No Use                                 */
tplaconf    varchar2(1),             /*确认否                                 */
                                     /*确认否(Y/N/X) X.作废                   */
tplapost    varchar2(1),             /*更新否                                 */
tplaacti    varchar2(1),             /*有效否                                 */
tplauser    varchar2(10),            /*资料所有者                             */
tplagrup    varchar2(10),            /*资料所有群                             */
tplamodu    varchar2(10),            /*资料更改者                             */
tpladate    date,                    /*最近修改日                             */
tplaud01    varchar2(255),           /*自订栏位-Textedit                      */
tplaud02    varchar2(40),            /*自订栏位-文字                          */
tplaud03    varchar2(40),            /*自订栏位-文字                          */
tplaud04    varchar2(40),            /*自订栏位-文字                          */
tplaud05    varchar2(40),            /*自订栏位-文字                          */
tplaud06    varchar2(40),            /*自订栏位-文字                          */
tplaud07    number(15,3),            /*自订栏位-数值                          */
tplaud08    number(15,3),            /*自订栏位-数值                          */
tplaud09    number(15,3),            /*自订栏位-数值                          */
tplaud10    number(10),              /*自订栏位-整数                          */
tplaud11    number(10),              /*自订栏位-整数                          */
tplaud12    number(10),              /*自订栏位-整数                          */
tplaud13    date,                    /*自订栏位-日期                          */
tplaud14    date,                    /*自订栏位-日期                          */
tplaud15    date                     /*自订栏位-日期                          */
);

create unique index tpla_pk on tpla_file (tpla01);
alter table tpla_file add  constraint tpla_pk primary key  (tpla01) enable validate;
grant select on tpla_file to public;
grant index on tpla_file to public;
grant update on tpla_file to public;
grant delete on tpla_file to public;
grant insert on tpla_file to public;