博客
关于我
强烈建议你试试无所不能的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/

你可能感兴趣的文章
C#关于使用正则表达式解析字符串
查看>>
带你了解“不拘一格去创新,别出心裁入场景”的锐捷
查看>>
boost::io_service解读
查看>>
我的Android进阶之旅------>ListView中android:cacheColorHint,android:listSelector属性作用 ....
查看>>
ClusterId read in ZooKeeper is null 处理
查看>>
MySQL · 特性介绍 · 一些流行引擎存储格式简介
查看>>
Javascript如何监听页面刷新和关闭事件
查看>>
fackbook的Fresco (FaceBook推出的Android图片加载库-Fresco)
查看>>
SQL中的JOIN类型解释(CROSS, INNER,OUTER),关键字ON,USING
查看>>
YV12和I420的区别
查看>>
gcc参数详解
查看>>
如何在Linux中重置MySQL或者MariaDB的root密码
查看>>
韩华Q Cells Q3收入达7.078亿美元 同比增长65%
查看>>
Java并发——volatile的原理
查看>>
我国云计算发展呈现三大趋势
查看>>
黑客白话: 客厅的路由器 会出卖你
查看>>
人工智能技术在呼叫中心的应用
查看>>
94%的云服务不符合GDPR规定
查看>>
智慧城市发展促进政府管理方式创新
查看>>
苹果Safari浏览器增长速度比微软Edge快
查看>>