/*
================================================================================
档案代号:pnv_file
档案名称:采购流程资料档
档案目的:
上游档案:
下游档案:
============.========================.==========================================
*/
create table pnv_file
(
pnv01       varchar2(10) NOT NULL,   /*采购中心代码                           */
pnv02       varchar2(10) NOT NULL,   /*需求营运中心                           */
pnv03       varchar2(5),             /*预设采购单别                           */
pnv04       varchar2(8),             /*预设采购流程                           */
pnvacti     varchar2(1),             /*资料有效码                             */
pnvuser     varchar2(10),            /*资料所有者                             */
pnvgrup     varchar2(10),            /*资料所有群                             */
pnvmodu     varchar2(10),            /*资料更改者                             */
pnvdate     date                     /*最近修改日                             */
);

create unique index pnv_pk on pnv_file (pnv01,pnv02);
alter table pnv_file add  constraint pnv_pk primary key  (pnv01,pnv02) enable validate;
grant select on pnv_file to public;
grant index on pnv_file to public;
grant update on pnv_file to public;
grant delete on pnv_file to public;
grant insert on pnv_file to public;