/*
================================================================================
档案代号:adp_file
档案名称:
档案目的:
上游档案:
下游档案:
============.========================.==========================================
*/
create table adp_file
(
adp01       varchar2(10) NOT NULL,   /*客户编号                               */
adp02       varchar2(40) NOT NULL,   /*商品编号                               */
adp03       varchar2(24) NOT NULL,   /*批号                                   */
adp04       varchar2(4),             /*库存单位                               */
adp05       number(15,3),            /*库存数量                               */
adp06       date,                    /*有效日期                               */
adp07       date                     /*第一次入库日期                         */
);

create unique index adp_pk on adp_file (adp01,adp02,adp03);
alter table adp_file add  constraint adp_pk primary key  (adp01,adp02,adp03) enable validate;
grant select on adp_file to public;
grant index on adp_file to public;
grant update on adp_file to public;
grant delete on adp_file to public;
grant insert on adp_file to public;