/*
================================================================================
档案代号:msg_file
档案名称:不纳入MRP计算采购单别资料档
档案目的:
上游档案:
下游档案:
============.========================.==========================================
*/
create table msg_file
(
msg01       varchar2(5) NOT NULL,    /*采购单别                               */
msg02       varchar2(1),             /*No Use                                 */
msg03       varchar2(1),             /*No Use                                 */
msgacti     varchar2(1),             /*资料有效码                             */
msguser     varchar2(10),            /*资料所有者                             */
msggrup     varchar2(10),            /*资料所有部门                           */
msgmodu     varchar2(10),            /*资料修改者                             */
msgdate     date                     /*最近修改日                             */
);

create unique index msg_pk on msg_file (msg01);
alter table msg_file add  constraint msg_pk primary key  (msg01) enable validate;
grant select on msg_file to public;
grant index on msg_file to public;
grant update on msg_file to public;
grant delete on msg_file to public;
grant insert on msg_file to public;