/*
================================================================================
档案代号:shc_file
档案名称:工单生产日报单身缺点码维护档
档案目的:
上游档案:
下游档案:
============.========================.==========================================
*/
create table shc_file
(
shc01       varchar2(16) NOT NULL,   /*移转单号                               */
shc03       number(5) NOT NULL,      /*行序                                   */
shc04       varchar2(6),             /*缺点码                                 */
shc05       number(15,3),            /*数量                                   */
shc06       number(5),               /*责任归属制程                           */
shc07       varchar2(1),             /*No Use                                 */
shcacti     varchar2(1),             /*资料有效码                             */
shcuser     varchar2(10),            /*资料所有者                             */
shcgrup     varchar2(10),            /*资料所有部门                           */
shcmodu     varchar2(10),            /*资料修改者                             */
shcdate     date                     /*最近修改日                             */
);

create unique index shc_pk on shc_file (shc01,shc03);
alter table shc_file add  constraint shc_pk primary key  (shc01,shc03) enable validate;
grant select on shc_file to public;
grant index on shc_file to public;
grant update on shc_file to public;
grant delete on shc_file to public;
grant insert on shc_file to public;