/*
================================================================================
档案代号:odb_file
档案名称:集团销售预测版本资料档
档案目的:
上游档案:
下游档案:
============.========================.==========================================
*/
create table odb_file
(
odb01       varchar2(10) NOT NULL,   /*版本编号                               */
odb02       varchar2(80),            /*版本名称                               */
odb03       date,                    /*计划日期                               */
odb04       varchar2(10),            /*时距类别                               */
odb05       date,                    /*预测起始日期                           */
odb06       date,                    /*预测截止日期                           */
odb07       varchar2(10),            /*最上层组织                             */
odb08       varchar2(1),             /*抛转否                                 */
odb09       varchar2(4),             /*预测币别                               */
odbacti     varchar2(1)              /*有效否                                 */
);

create unique index odb_pk on odb_file (odb01);
alter table odb_file add  constraint odb_pk primary key  (odb01) enable validate;
grant select on odb_file to public;
grant index on odb_file to public;
grant update on odb_file to public;
grant delete on odb_file to public;
grant insert on odb_file to public;