博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
hidp3.0 sql
阅读量:6787 次
发布时间:2019-06-26

本文共 3810 字,大约阅读时间需要 12 分钟。

/*==============================================================*/ 

/* DBMS name:      ORACLE Version 10g                           */ 

/* Created on:     2010-10-13 14:56:47                          */ 

/*==============================================================*/ 



alter table "F_FormData" 

   drop constraint FK_F_FORMDA_RELATIONS_F_CUSTOM; 


alter table "F_Opinion" 

   drop constraint FK_F_OPINIO_RELATIONS_F_CUSTOM; 


alter table "F_WorkFlowForm" 

   drop constraint FK_F_WORKFL_RELATIONS_F_CUSTOM; 


drop table "F_CustomForm" cascade constraints; 


drop index "Relationship_2_FK"; 


drop table "F_FormData" cascade constraints; 


drop index "Relationship_1_FK"; 


drop table "F_Opinion" cascade constraints; 


drop table "F_ProcessFile" cascade constraints; 


drop index "Relationship_3_FK"; 


drop table "F_WorkFlowForm" cascade constraints; 


/*==============================================================*/ 

/* Table: "F_CustomForm"                                        */ 

/*==============================================================*/ 

create table "F_CustomForm"  ( 

   "fid"                VARCHAR2(32)                    not null, 

   "formname"           VARCHAR2(20)                    not null, 

   "formpath"           VARCHAR2(100)                   not null, 

   "createtime"         DATE                            not null, 

   "creater"            VARCHAR2(20)                    not null, 

   "formcontent"        VARCHAR2(200)                   not null, 

   constraint PK_F_CUSTOMFORM primary key ("fid") 

); 


/*==============================================================*/ 

/* Table: "F_FormData"                                          */ 

/*==============================================================*/ 

create table "F_FormData"  ( 

   "did"                VARCHAR2(32)                    not null, 

   "fid"                VARCHAR2(32), 

   "datatype"           VARCHAR2(100)                   not null, 

   "dataname"           VARCHAR2(20)                    not null, 

   "datavalue"          VARCHAR2(20), 

   "piid"               VARCHAR2(32)                    not null, 

   constraint PK_F_FORMDATA primary key ("did") 

); 


/*==============================================================*/ 

/* Index: "Relationship_2_FK"                                   */ 

/*==============================================================*/ 

create index "Relationship_2_FK" on "F_FormData" ( 

   "fid" ASC 

); 


/*==============================================================*/ 

/* Table: "F_Opinion"                                           */ 

/*==============================================================*/ 

create table "F_Opinion"  ( 

   "oid"                VARCHAR2(32)                    not null, 

   "fid"                VARCHAR2(32), 

   "creater"            VARCHAR2(20)                    not null, 

   "createtime"         DATE                            not null, 

   "context"            VARCHAR2(200), 

   "piId"               VARCHAR2(32), 

   constraint PK_F_OPINION primary key ("oid") 

); 


/*==============================================================*/ 

/* Index: "Relationship_1_FK"                                   */ 

/*==============================================================*/ 

create index "Relationship_1_FK" on "F_Opinion" ( 

   "fid" ASC 

); 


/*==============================================================*/ 

/* Table: "F_ProcessFile"                                       */ 

/*==============================================================*/ 

create table "F_ProcessFile"  ( 

   "id"                 VARCHAR2(32)                    not null, 

   "processfielname"    VARCHAR2(20)                    not null, 

   "path"               VARCHAR2(100), 

   "processfilesate"    VARCHAR2(2)                     not null, 

   "workflowid"         VARCHAR2(32), 

   constraint PK_F_PROCESSFILE primary key ("id") 

); 


/*==============================================================*/ 

/* Table: "F_WorkFlowForm"                                      */ 

/*==============================================================*/ 

create table "F_WorkFlowForm"  ( 

   "wfid"               VARCHAR2(32)                    not null, 

   "fid"                VARCHAR2(32), 

   "workflowid"         VARCHAR2(32)                    not null, 

   constraint PK_F_WORKFLOWFORM primary key ("wfid") 

); 


/*==============================================================*/ 

/* Index: "Relationship_3_FK"                                   */ 

/*==============================================================*/ 

create index "Relationship_3_FK" on "F_WorkFlowForm" ( 

   "fid" ASC 

); 


alter table "F_FormData" 

   add constraint FK_F_FORMDA_RELATIONS_F_CUSTOM foreign key ("fid") 

      references "F_CustomForm" ("fid"); 


alter table "F_Opinion" 

   add constraint FK_F_OPINIO_RELATIONS_F_CUSTOM foreign key ("fid") 

      references "F_CustomForm" ("fid"); 


alter table "F_WorkFlowForm" 

   add constraint FK_F_WORKFL_RELATIONS_F_CUSTOM foreign key ("fid") 

      references "F_CustomForm" ("fid"); 

转载地址:http://mkcgo.baihongyu.com/

你可能感兴趣的文章
Linux下将Apache(httpd)新增为系统服务及开机自启动
查看>>
yum源的配置
查看>>
QT高级编程技巧(一)-- 编写高效的signal & slot通信代码
查看>>
linux发行版本注释。
查看>>
Spring Boot配置相关的一点读书笔记
查看>>
linux文件的权限及特殊权限位
查看>>
wc命令
查看>>
第一次用,我就写写
查看>>
Web集群之SSH批量管理
查看>>
Linux 排错 误删 /etc/fstab 和 /boot
查看>>
memcached安装与应用
查看>>
docker基本命令
查看>>
Linux引导过程及服务控制
查看>>
Spring Cloud云服务架构 - commonservice-eureka 项目过程构建
查看>>
day17 ajax & 案例
查看>>
Android深入浅出系列之Bluetooth—蓝牙操作(一)
查看>>
安装企业版epel里面的小火车
查看>>
网页设计怎么改善用户体验?
查看>>
linux top命令详解
查看>>
oracle 表连接
查看>>