/*
================================================================================
档案代号:cpi_file
档案名称:技能代号资料档
档案目的:
上游档案:
下游档案:
============.========================.==========================================
*/
create table cpi_file
(
cpi01       varchar2(2) NOT NULL,    /*技能代码                               */
cpi02       varchar2(80),            /*技能名称                               */
cpi03       varchar2(2),             /*技能种类                               */
cpi04       number(10),              /*加权分数一                             */
cpi05       number(10),              /*加权分数二                             */
cpi06       number(10),              /*加权分数三                             */
cpi07       varchar2(1),             /*No Use                                 */
cpi08       varchar2(1),             /*No Use                                 */
cpi09       number(5),               /*No Use                                 */
cpi10       number(5),               /*No Use                                 */
cpiacti     varchar2(1),             /*资料有效否                             */
cpiuser     varchar2(10),            /*资料所有者                             */
cpigrup     varchar2(10),            /*资料所有群                             */
cpimodu     varchar2(10),            /*资料更改者                             */
cpidate     date                     /*最近修改日                             */
);

create unique index cpi_pk on cpi_file (cpi01);
alter table cpi_file add  constraint cpi_pk primary key  (cpi01) enable validate;
grant select on cpi_file to public;
grant index on cpi_file to public;
grant update on cpi_file to public;
grant delete on cpi_file to public;
grant insert on cpi_file to public;