/*
================================================================================
档案代号:gie_file
档案名称:设备购置预算档
档案目的:
上游档案:
下游档案:
============.========================.==========================================
*/
create table gie_file
(
gie01       varchar2(10) NOT NULL,   /*预算编号                               */
gie02       varchar2(4) NOT NULL,    /*主类别编号                             */
gie03       varchar2(10) NOT NULL,   /*部门编号                               */
gie04       number(5) NOT NULL,      /*年度                               */
gie05       varchar2(80) NOT NULL,   /*设备名称                               */
gie06       number(5) NOT NULL,      /*期别                                   */
gie07       number(20,6),            /*单价                                   */
gie08       varchar2(4),             /*币别                                   */
gie09       number(15,3),            /*数量                                   */
gie10       number(20,6),            /*金额                                   */
gie11       varchar2(1),             /*No Use                                 */
gieacti     varchar2(1),             /*资料有效码                             */
gieuser     varchar2(10),            /*资料所有者                             */
giegrup     varchar2(10),            /*资料所有部门                           */
giemodu     varchar2(10),            /*资料修改者                             */
giedate     date                     /*最近修改日                             */
);

create unique index gie_pk on gie_file (gie01,gie02,gie03,gie04,gie05,gie06);
alter table gie_file add  constraint gie_pk primary key  (gie01,gie02,gie03,gie04,gie05,gie06) enable 
validate;
grant select on gie_file to public;
grant index on gie_file to public;
grant update on gie_file to public;
grant delete on gie_file to public;
grant insert on gie_file to public;