﻿CREATE TABLE "AICRIS"."ADDRESSINCREMENTALL"
(
"CREATEBY" VARCHAR2(40),
"CREATETIME" TIMESTAMP(6),
"UPDATEBY" VARCHAR2(40),
"UPDATETIME" TIMESTAMP(6),
"ID" VARCHAR2(40) NOT NULL,
"ADDRESS" VARCHAR2(500),
"INCREMENT" NUMBER,
"MONTH" CHAR(7),
"MONTHBASIC" NUMBER,
"TOTALCOUNT" NUMBER,
"REGION" VARCHAR2(60),
CONSTRAINT "ADDRESSINCREMENTALL_PKEY" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."ADDRESSINCREMENTALL" IS '住所月总增量记录表';
COMMENT ON COLUMN "AICRIS"."ADDRESSINCREMENTALL"."ADDRESS" IS '地址';
COMMENT ON COLUMN "AICRIS"."ADDRESSINCREMENTALL"."ID" IS '数据ID';
COMMENT ON COLUMN "AICRIS"."ADDRESSINCREMENTALL"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "AICRIS"."ADDRESSINCREMENTALL"."MONTH" IS '统计月份，格式：YYYY-MM';
COMMENT ON COLUMN "AICRIS"."ADDRESSINCREMENTALL"."MONTHBASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "AICRIS"."ADDRESSINCREMENTALL"."REGION" IS '地区';
COMMENT ON COLUMN "AICRIS"."ADDRESSINCREMENTALL"."TOTALCOUNT" IS '总企业量';


CREATE TABLE "AICRIS"."CHECKACTIONCODE"
(
"CHECKACTIONCODE" VARCHAR2(36) NOT NULL,
"CODETYPE" NUMBER(38,0),
"CODE" VARCHAR2(50),
"NEWCODE" VARCHAR2(100),
"VAL1" VARCHAR2(100),
"VAL2" VARCHAR2(100),
"VAL3" VARCHAR2(100),
CONSTRAINT "PK_CHECKACTIONCODE" NOT CLUSTER PRIMARY KEY("CHECKACTIONCODE")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."CHECKACTIONCODE"."CHECKACTIONCODE" IS '主键';
COMMENT ON COLUMN "AICRIS"."CHECKACTIONCODE"."CODE" IS '值';
COMMENT ON COLUMN "AICRIS"."CHECKACTIONCODE"."CODETYPE" IS '类型';
COMMENT ON COLUMN "AICRIS"."CHECKACTIONCODE"."NEWCODE" IS '对应的值';
COMMENT ON COLUMN "AICRIS"."CHECKACTIONCODE"."VAL1" IS '附属数据1';


CREATE TABLE "AICRIS"."CHECKERRORLOG"
(
"LOGID" VARCHAR2(50) NOT NULL,
"LOGTYPE" VARCHAR2(10),
"TARGEID" VARCHAR2(50),
"REPID" VARCHAR2(50),
"REASON" VARCHAR2(100),
"CREATETIME" TIMESTAMP(0),
CLUSTER PRIMARY KEY("LOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."CHECKERRORLOG" IS '推送错误日志记录表（用于记录其他系统推送数据错误时的错误情况）';
COMMENT ON COLUMN "AICRIS"."CHECKERRORLOG"."CREATETIME" IS '推送时间';
COMMENT ON COLUMN "AICRIS"."CHECKERRORLOG"."LOGID" IS '日志主键';
COMMENT ON COLUMN "AICRIS"."CHECKERRORLOG"."LOGTYPE" IS '错误的类型，计划、任务、检查主体、检查结果';
COMMENT ON COLUMN "AICRIS"."CHECKERRORLOG"."REASON" IS '出错的原因';
COMMENT ON COLUMN "AICRIS"."CHECKERRORLOG"."REPID" IS '企业主键';
COMMENT ON COLUMN "AICRIS"."CHECKERRORLOG"."TARGEID" IS '错误的编号，计划编号或任务编号或检查对象id或检查结果id';


CREATE TABLE "AICRIS"."COMMUNITYINFO"
(
"ID" VARCHAR2(36) NOT NULL,
"NAME" VARCHAR2(3000),
"HEADORGID" VARCHAR2(50),
"HEADORGNAME" VARCHAR2(100),
"HEADBASEID" VARCHAR2(36),
"HEADBASENAME" VARCHAR2(100),
"HEADBASETYPE" VARCHAR2(100),
"JOINORGBASENAMES" VARCHAR2(1000),
"USERID" VARCHAR2(36),
"TOTAL" NUMBER(38,0),
"DELETED" VARCHAR2(10),
"CREATETIME" TIMESTAMP(0),
"HEADBASENUM" NUMBER(38,0),
"JOINORGIDS" VARCHAR2(1000),
"HEADBASESCOPE" CLOB,
"JOINORGBASEIDS" VARCHAR2(1000),
"PARENTID" VARCHAR2(100)) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."COMMUNITYINFO" IS '交集信息表';


CREATE TABLE "AICRIS"."COMMUNITYINFO123"
(
"ID" VARCHAR2(36),
"NAME" VARCHAR2(2000),
"HEADORGID" VARCHAR2(36),
"HEADORGNAME" VARCHAR2(100),
"HEADBASEID" VARCHAR2(36),
"HEADBASENAME" VARCHAR2(100),
"HEADBASETYPE" VARCHAR2(10),
"JOINORGBASENAMES" VARCHAR2(1000),
"USERID" VARCHAR2(36),
"TOTAL" NUMBER(22,0),
"DELETED" VARCHAR2(10),
"CREATETIME" TIMESTAMP(0),
"HEADBASENUM" NUMBER(22,0),
"JOINORGIDS" VARCHAR2(1000),
"HEADBASESCOPE" CLOB,
"JOINORGBASEIDS" VARCHAR2(1000),
"PARENTID" VARCHAR2(100)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."COMPANYDETAILS"
(
"ID" VARCHAR2(36) NOT NULL,
"NAME" VARCHAR2(100),
"UNISCID" VARCHAR2(100),
"TYPE" VARCHAR2(100),
"REGULATORY" VARCHAR2(100),
"REGISTRATION" VARCHAR2(100),
"REPRESENTATIVE" VARCHAR2(100),
"REGION" VARCHAR2(100),
"SCOPE" CLOB,
"STATE" VARCHAR2(100),
"LABEL" VARCHAR2(100),
"PHONE" VARCHAR2(100),
"EMAIL" VARCHAR2(100),
"ADDRESS" VARCHAR2(300),
"WEBSITE" VARCHAR2(100),
"SCORE" NUMBER,
"BRANCH" VARCHAR2(100),
"INVESTMENT" VARCHAR2(100),
"LEVEL" VARCHAR2(100),
"INDUSTRY" VARCHAR2(100),
"UPDATEBY" VARCHAR2(50),
"CREATETIME" TIMESTAMP(0),
"CREATEBY" VARCHAR2(255),
"UPDATETIME" TIMESTAMP(0),
"STREETLONG" VARCHAR2(100),
"STREETNAME" VARCHAR2(100),
"TYPENAME" VARCHAR2(100),
"REGULATORYNAME" VARCHAR2(100),
"REGISTRATIONNAME" VARCHAR2(100),
"INDUSTRYNAME" VARCHAR2(100),
"ESTDATE" TIMESTAMP(0),
"APPRDATE" TIMESTAMP(0),
"REVDATE" TIMESTAMP(0),
"OPENFROM" TIMESTAMP(0),
"OPENTO" TIMESTAMP(0),
"REGCAP" VARCHAR2(30),
"PRIPID" VARCHAR2(40),
"REGNO" VARCHAR2(40),
"RISKLEVEL" VARCHAR2(100),
"LOGID" VARCHAR2(50)) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."COMPANYDETAILS" IS '企业信用风险画像';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."ADDRESS" IS '地址';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."APPRDATE" IS '核准日期';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."BRANCH" IS '分支机构';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."CREATEBY" IS '创建人';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."EMAIL" IS '邮箱';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."ESTDATE" IS '成立日期';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."ID" IS '主键';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."INDUSTRY" IS '国民行业经济名称';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."INDUSTRYNAME" IS '国民行业经济名称(名称)';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."INVESTMENT" IS '对外投资';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."LABEL" IS '信用标签';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."LEVEL" IS '风险等级';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."NAME" IS '企业名称';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."OPENFROM" IS '营业期限（开始）';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."OPENTO" IS '营业期限（结束）';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."PHONE" IS '电话';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."PRIPID" IS '旧的系统ID';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."REGCAP" IS '注册资本';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."REGION" IS '辖区';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."REGISTRATION" IS '登记机关';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."REGISTRATIONNAME" IS '登记机关（名称）';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."REGNO" IS '注册编号';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."REGULATORY" IS '监管机关';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."REGULATORYNAME" IS '监管机关（名称）';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."REPRESENTATIVE" IS '法定代表';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."REVDATE" IS '核查日期';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."SCOPE" IS '经营范围';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."SCORE" IS '风险评分';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."STATE" IS '企业状态';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."STREETLONG" IS '街道长名称（地区+街道名）';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."STREETNAME" IS '街道名称';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."TYPE" IS '企业类型';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."TYPENAME" IS '企业类型（名称）';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."UNISCID" IS '统一社会';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."UPDATEBY" IS '更新人';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."UPDATETIME" IS '更新时间';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILS"."WEBSITE" IS '官网';


CREATE TABLE "AICRIS"."COMPANYDETAILSLOG"
(
"ID" VARCHAR2(36) NOT NULL,
"RISKTYPE" VARCHAR2(50),
"ESTDATE" CHAR(7),
"COUNT" NUMBER,
"CREATETIME" TIMESTAMP(0),
"RISKNAME" VARCHAR2(100),
"RISKSTATE" VARCHAR2(1) DEFAULT 0,
"LOCDISTRICT" VARCHAR2(12),
"LOCDISTRICTNAME" VARCHAR(100),
"CODE" VARCHAR2(10),
"MSG" VARCHAR2(100),
"RISKTIME" TIMESTAMP(0),
"DSTATE" VARCHAR(1),
CONSTRAINT "PK_COMPANYDETAILSLOG" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."COMPANYDETAILSLOG"."COUNT" IS '预警名单数量';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILSLOG"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILSLOG"."ESTDATE" IS '预警名单时间';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILSLOG"."LOCDISTRICT" IS '行政区划';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILSLOG"."LOCDISTRICTNAME" IS '行政区划名称';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILSLOG"."RISKNAME" IS '预警类型名称';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILSLOG"."RISKSTATE" IS '处置状态 0待处置 1已处置';
COMMENT ON COLUMN "AICRIS"."COMPANYDETAILSLOG"."RISKTYPE" IS '预警类型 1行业预警、2区域预警、3法人预警、4住所预警';


CREATE TABLE "AICRIS"."CORRECTION"
(
"CORRID" VARCHAR2(36) NOT NULL,
"CORRTYPE" VARCHAR2(10),
"CORRNAME" VARCHAR2(200),
"RANINSTASKID" VARCHAR2(18),
"STATUS" VARCHAR2(10),
"DSTATE" VARCHAR2(10),
"PHONE" VARCHAR2(50),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"FILENAME" VARCHAR2(100),
"FILEURL" VARCHAR2(100),
"REMARK" VARCHAR2(2000),
"ADDUSERID" VARCHAR2(36),
"ADDDEPNAME" VARCHAR2(100),
"ADDDEPID" VARCHAR2(36),
"ADDORGID" VARCHAR2(36),
CONSTRAINT "PK_Corrections" NOT CLUSTER PRIMARY KEY("CORRID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."CORRECTION"."ADDDEPID" IS '创建人科室';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."ADDDEPNAME" IS '创建人单位名称';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."ADDORGID" IS '创建人单位ID';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."ADDUSERID" IS '创建人ID';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."CORRID" IS 'ID';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."CORRNAME" IS '更改名称';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."CORRTYPE" IS '更正内容 1、任务信息 2、任务检查人员信息 3.检查结果信息';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."DSTATE" IS '删除标志 0 正常 1 修改 2 删除';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."FILENAME" IS '文件名称';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."FILEURL" IS '文件路径';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."PHONE" IS '联系电话';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."RANINSTASKID" IS '任务编号';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."REMARK" IS '更改备注';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."STATUS" IS '状态 0、新增 1、待审核 2、待审批 3、待处理 4、已处理';
COMMENT ON COLUMN "AICRIS"."CORRECTION"."UPDATETIME" IS '修改时间';


CREATE TABLE "AICRIS"."CORRECTIONVERIFY"
(
"ID" VARCHAR2(36) NOT NULL,
"CORRID" VARCHAR2(36),
"STATUS" CHAR(1),
"CREATETIME" TIMESTAMP(0),
"OPINION" VARCHAR2(1000),
"CHECKPEOPLE" VARCHAR2(18),
CONSTRAINT "PK_CORRECTIONVERIFY" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."CORRECTIONVERIFY" IS '信息更正审核表';
COMMENT ON COLUMN "AICRIS"."CORRECTIONVERIFY"."CHECKPEOPLE" IS '操作人';
COMMENT ON COLUMN "AICRIS"."CORRECTIONVERIFY"."CORRID" IS '信息更正ID';
COMMENT ON COLUMN "AICRIS"."CORRECTIONVERIFY"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."CORRECTIONVERIFY"."ID" IS 'ID';
COMMENT ON COLUMN "AICRIS"."CORRECTIONVERIFY"."OPINION" IS '审核意见';
COMMENT ON COLUMN "AICRIS"."CORRECTIONVERIFY"."STATUS" IS '状态 1、审核通过 2、审批通过';


CREATE TABLE "AICRIS"."CPLICINFO_QT"
(
"LICID" VARCHAR2(40) NOT NULL,
"PRIPID" VARCHAR2(36),
"REGNO" VARCHAR2(30),
"UNISCID" VARCHAR2(18),
"ENTNAME" VARCHAR2(200),
"LICNO" VARCHAR2(100),
"LICNAME" VARCHAR2(3),
"LICNAME_CN" VARCHAR2(200),
"VALFROM" TIMESTAMP(0),
"VALTO" TIMESTAMP(0),
"LICANTH" VARCHAR2(200),
"LICITEM" VARCHAR2(1500),
"STATUS" VARCHAR2(1),
"CANDATE" TIMESTAMP(0),
"EQUPLECANREA" VARCHAR2(200),
"REVDATE" TIMESTAMP(0),
"SUGREVREASON" VARCHAR2(200),
"INVALIDDATE" TIMESTAMP(0),
"INVALIDREA" VARCHAR2(200),
CONSTRAINT "P_Key_1" NOT CLUSTER PRIMARY KEY("LICID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICRIS"."IDX_CPLICINFO_QT_LICANTH" ON "AICRIS"."CPLICINFO_QT"("LICANTH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."CPLICINFO_QT_LICNAME_CN_IDX" ON "AICRIS"."CPLICINFO_QT"("LICNAME_CN" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."IDX_CPLICINFO_QT_PRIPID" ON "AICRIS"."CPLICINFO_QT"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."CREDITABNORMALPUSHRECORD"
(
"ID" VARCHAR2(50) NOT NULL,
"RANINSTASKID" VARCHAR2(20),
"REPID" VARCHAR2(50),
"PRIMARYKEY" VARCHAR2(50),
"UNISCID" VARCHAR2(20),
"ENTNAME" VARCHAR2(200),
"RANINSENTERPRISEDSTATEID" VARCHAR2(50),
"CREATETIME" TIMESTAMP(6),
"UPDATETIME" TIMESTAMP(6),
"PUSHSTATUS" CHAR(1),
"PUSHMSG" VARCHAR2(1000),
"DATASOURCE" VARCHAR2(10),
CONSTRAINT "PK_CREDITABNORMALPUSH" CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."CREDITABNORMALPUSHRECORD" IS '经营异常推送记录表，用于记录推送到信用监管系统的企业信息';
COMMENT ON COLUMN "AICRIS"."CREDITABNORMALPUSHRECORD"."CREATETIME" IS '记录创建时间戳';
COMMENT ON COLUMN "AICRIS"."CREDITABNORMALPUSHRECORD"."DATASOURCE" IS '数据来源：2-实地检查';
COMMENT ON COLUMN "AICRIS"."CREDITABNORMALPUSHRECORD"."ENTNAME" IS '企业名称（全称）';
COMMENT ON COLUMN "AICRIS"."CREDITABNORMALPUSHRECORD"."ID" IS '主键ID（UUID格式）';
COMMENT ON COLUMN "AICRIS"."CREDITABNORMALPUSHRECORD"."PRIMARYKEY" IS '企业主键，企业在业务系统中的原始主键';
COMMENT ON COLUMN "AICRIS"."CREDITABNORMALPUSHRECORD"."PUSHMSG" IS '推送结果消息，存储成功/失败详情';
COMMENT ON COLUMN "AICRIS"."CREDITABNORMALPUSHRECORD"."PUSHSTATUS" IS '推送状态：0-未推送，1-推送成功，2-推送失败';
COMMENT ON COLUMN "AICRIS"."CREDITABNORMALPUSHRECORD"."RANINSENTERPRISEDSTATEID" IS '关联经营异常状态表的主键ID';
COMMENT ON COLUMN "AICRIS"."CREDITABNORMALPUSHRECORD"."RANINSTASKID" IS '任务ID，关联检查任务表的任务标识';
COMMENT ON COLUMN "AICRIS"."CREDITABNORMALPUSHRECORD"."REPID" IS '企业ID，关联企业主体信息的唯一标识';
COMMENT ON COLUMN "AICRIS"."CREDITABNORMALPUSHRECORD"."UNISCID" IS '企业社会统一信用代码（18位）';
COMMENT ON COLUMN "AICRIS"."CREDITABNORMALPUSHRECORD"."UPDATETIME" IS '记录最后更新时间戳';

CREATE OR REPLACE  INDEX "AICRIS"."IDX_CREDITABNORMALPUSH_REPID" ON "AICRIS"."CREDITABNORMALPUSHRECORD"("REPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."IDX_CREDITABNORMALPUSH_TASKID" ON "AICRIS"."CREDITABNORMALPUSHRECORD"("RANINSTASKID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."IDX_CREDITABNORMALPUSH_STATUS" ON "AICRIS"."CREDITABNORMALPUSHRECORD"("PUSHSTATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."CROSSRESULTAUDIT"
(
"ID" VARCHAR2(36) NOT NULL,
"RANINSTASKID" VARCHAR2(36),
"DEPTYPE" VARCHAR2(16),
"ISAUDIT" CHAR(1),
"REPID" VARCHAR2(36),
"REPTYPE" CHAR(1),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"DSTATE" CHAR(1) DEFAULT '0',
"ISINPUT" CHAR(1) DEFAULT '0',
"ISPRINT" VARCHAR2(100),
"APPROVER" VARCHAR2(36),
"CHECKTYPE" VARCHAR2(10),
"CROPOBSTATE" VARCHAR2(10),
"CHECKTIME" TIMESTAMP(0),
CONSTRAINT "PK_ID" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."CROSSRESULTAUDIT" IS '跨部门任务企业各部门事项审核状态表';
COMMENT ON COLUMN "AICRIS"."CROSSRESULTAUDIT"."APPROVER" IS '检查结果审批人';

CREATE OR REPLACE  INDEX "AICRIS"."RANINSTASKID_REPID_IDX" ON "AICRIS"."CROSSRESULTAUDIT"("RANINSTASKID" ASC,"REPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."DEPMEMNUMS"
(
"DMNID" VARCHAR2(36) NOT NULL,
"DEPTYPE" VARCHAR2(16),
"MENNUM" NUMBER(38,0),
"RANINSTASKID" VARCHAR2(36),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"DSTATE" CHAR(1) DEFAULT '0',
CONSTRAINT "SYS_C0049409" NOT CLUSTER PRIMARY KEY("DMNID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."DEPMEMNUMS" IS '跨部门双随机各部门组成数量表';


CREATE TABLE "AICRIS"."DESKTOP_DIY"
(
"ID" VARCHAR2(100) NOT NULL,
"NAME" VARCHAR2(100),
"URL" VARCHAR2(100),
"MENUTYPE" VARCHAR2(10),
"ICON" VARCHAR2(100),
"SORTLEVEL" REAL,
"USERID" VARCHAR2(100),
"CREATETIME" TIMESTAMP(0),
"SYSMENUFILED" VARCHAR2(100),
CONSTRAINT "DESKTOP_DIY_PK" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."DESKTOP_DIY" IS '桌面自定义';


CREATE TABLE "AICRIS"."EI_BASEINFO"
(
"PRIPID" VARCHAR2(40) NOT NULL,
"REGNO" VARCHAR2(80),
"UNISCID" VARCHAR2(18),
"ENTNAME" VARCHAR2(100),
"ENTTYPE" VARCHAR2(4),
"ENTTYPE_CN" VARCHAR2(128),
"NAME" VARCHAR2(200),
"REGCAP" DECIMAL(24,6),
"REGCAPCUR" VARCHAR(64),
"REGCAPCUR_CN" VARCHAR(128),
"DOM" VARCHAR2(512),
"OPFROM" TIMESTAMP(6),
"OPTO" TIMESTAMP(6),
"OPSCOPE" VARCHAR2(3000),
"OPSCOTYPE" VARCHAR2(128),
"OPSCOTYPE_CN" VARCHAR2(128),
"REGORG" VARCHAR2(64),
"REGORG_CN" VARCHAR2(128),
"SUPORG" VARCHAR2(10),
"SUPORG_CN" VARCHAR2(200),
"REGSTATE" VARCHAR2(64),
"REGSTATE_CN" VARCHAR2(128),
"ESTDATE" TIMESTAMP(6),
"APPRDATE" TIMESTAMP(6),
"INDUSTRYCO" VARCHAR2(64),
"INDUSTRYPHY" VARCHAR2(64),
"ENTSTATUS" VARCHAR(20),
"ACCEPTREGORG" VARCHAR(64),
"ACCEPTREGORG_CN" VARCHAR(128),
"S_EXT_DATATIME" TIMESTAMP(6),
"DOMDISTRICT" VARCHAR(64),
"REGCAPUSD" DECIMAL(18,6),
"RECCAP" DECIMAL(18,6),
"RECCAPUSD" DECIMAL(18,6),
"COUNTRY" VARCHAR(128),
"EMPNUM" DECIMAL(10,0),
"TOWN" VARCHAR(64),
"REPORTTYPE" VARCHAR(64),
"S_EXT_FROMNODE" VARCHAR(6),
"CREATETIME" TIMESTAMP(6),
CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."EI_BASEINFO" IS '主体信息（企业、农专、个体）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."ACCEPTREGORG" IS '受理机关';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."ACCEPTREGORG_CN" IS '受理机关（中文名称）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."APPRDATE" IS '核准日期';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."DOM" IS '住所';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."ENTNAME" IS '企业/个体户(机构)名称';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."ENTSTATUS" IS '企业状态小类';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."ENTTYPE" IS '市场主体类型';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."ENTTYPE_CN" IS '市场主体类型（中文名称）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."ESTDATE" IS '成立日期';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."INDUSTRYCO" IS '行业代码';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."INDUSTRYPHY" IS '行业门类';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."NAME" IS '法定代表人/经营者';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."OPFROM" IS '经营(驻在)期限自';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."OPSCOPE" IS '经营范围';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."OPSCOTYPE" IS '业务范围类型';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."OPSCOTYPE_CN" IS '业务范围类型（中文名称）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."OPTO" IS '经营(驻在)期限至';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."REGCAP" IS '注册资本';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."REGCAPCUR" IS '注册资本(金)币种';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."REGCAPCUR_CN" IS '注册资本(金)币种（中文名称）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."REGORG" IS '登记机关';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."REGORG_CN" IS '登记机关（中文名称）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."REGSTATE" IS '登记状态';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."REGSTATE_CN" IS '登记状态（中文名称）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."SUPORG" IS '属地工商所代码';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."SUPORG_CN" IS '属地工商所';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO"."UNISCID" IS '统一社会信用代码';


CREATE TABLE "AICRIS"."EI_BASEINFO_OLD"
(
"PRIPID" VARCHAR2(40) NOT NULL,
"REGNO" VARCHAR2(40),
"UNISCID" VARCHAR2(50),
"ENTNAME" VARCHAR2(100),
"ENTTYPE" VARCHAR2(4),
"ENTTYPE_CN" VARCHAR2(100),
"LEREP" VARCHAR2(100),
"LEREP_PHONE" VARCHAR2(40),
"REGCAP" DECIMAL(24,0),
"CURRENCY" VARCHAR2(3),
"CURRENCY_CN" VARCHAR2(20),
"DOM" VARCHAR2(200),
"OPLOC" VARCHAR2(300),
"OPFROM" TIMESTAMP(6),
"OPTO" TIMESTAMP(6),
"OPSCOPE" VARCHAR2(3000),
"OPSCOTYPE" VARCHAR2(100),
"OPSCOTYPE_CN" VARCHAR2(30),
"REGORG" VARCHAR2(9),
"REGORG_CN" VARCHAR2(50),
"SUPORG" VARCHAR2(10),
"SUPORG_CN" VARCHAR2(100),
"SAREACODE" VARCHAR2(12),
"SAREACODE_CN" VARCHAR2(100),
"REGSTATE" VARCHAR2(2),
"REGSTATE_CN" VARCHAR2(20),
"ESTDATE" TIMESTAMP(6),
"APPRDATE" TIMESTAMP(6),
"LINKMANNAME" VARCHAR2(50),
"LINKMANCERNO" VARCHAR2(40),
"LINKMANPHONE" VARCHAR2(40),
"INDUSTRYCO" VARCHAR2(100),
"INDUSTRYPHY" VARCHAR2(1),
"ENTSTATE" VARCHAR2(100),
"SAREACODE_JX" VARCHAR2(48),
"SAREANAME_JX" VARCHAR2(100),
"SAREACODE_JXMX" VARCHAR2(200),
"SAREANAME_JXMX" VARCHAR2(200),
"ACCEPTREGORG" VARCHAR2(9),
"ACCEPTREGORG_CN" VARCHAR2(200),
"COMPFORM" VARCHAR2(1),
"COMPFORM_CN" VARCHAR2(10),
"OPSTATE" VARCHAR2(1),
"AICID" VARCHAR2(10),
"REMARK" VARCHAR2(1000),
"ISNORMAL" CHAR(1),
"BUSINESSMODE" VARCHAR2(100),
"SUBENTITYTYPE" VARCHAR2(4),
"ISABNORMAL" VARCHAR2(2),
"REGISTTIME" TIMESTAMP(0),
"TAGNAME" VARCHAR2(100),
"RISKLEVEL" VARCHAR2(100),
"UPDATE_TIME" DATETIME(0),
CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."EI_BASEINFO_OLD" IS '主体信息（企业、农专、个体）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."ACCEPTREGORG" IS '受理机关';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."ACCEPTREGORG_CN" IS '受理机关（中文名称）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."AICID" IS '登记管辖机关';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."APPRDATE" IS '核准日期';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."BUSINESSMODE" IS '经营方式（可为空）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."COMPFORM" IS '组成形式代码';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."COMPFORM_CN" IS '组成形式';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."CURRENCY" IS '注册资本(金)币种';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."CURRENCY_CN" IS '注册资本(金)币种（中文名称）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."DOM" IS '地址';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."ENTNAME" IS '企业/个体户(机构)名称';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."ENTSTATE" IS '企业状态小类';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."ENTTYPE" IS '市场主体类型';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."ENTTYPE_CN" IS '市场主体类型（中文名称）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."ESTDATE" IS '成立日期';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."INDUSTRYCO" IS '行业代码';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."INDUSTRYPHY" IS '行业门类';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."ISABNORMAL" IS '是否列入异常名录 0 表示否，1表示是 ；也就是0是正常的企业';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."ISNORMAL" IS '企业是否正常（正常为1）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."LEREP" IS '法定代表人/经营者';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."LEREP_PHONE" IS '法定代表人/经营者联系电话';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."LINKMANCERNO" IS '联系人证件号码';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."LINKMANNAME" IS '联系人';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."LINKMANPHONE" IS '联系人电话';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."OPFROM" IS '经营(驻在)期限自';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."OPLOC" IS '住所';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."OPSCOPE" IS '经营范围';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."OPSCOTYPE" IS '业务范围类型';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."OPSCOTYPE_CN" IS '业务范围类型（中文名称）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."OPSTATE" IS '登记状态';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."OPTO" IS '经营(驻在)期限至';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."REGCAP" IS '注册资本';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."REGISTTIME" IS '年报填写时间';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."REGORG" IS '登记机关';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."REGORG_CN" IS '登记机关（中文名称）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."REGSTATE" IS '登记状态';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."REGSTATE_CN" IS '登记状态（中文名称）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."REMARK" IS '备注';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."RISKLEVEL" IS '信用等级（高风险、较高风险、中风险、低风险）';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."SAREACODE" IS '片区代码';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."SAREACODE_CN" IS '片区名称';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."SAREACODE_JX" IS '金信系统片区代码';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."SAREACODE_JXMX" IS '金信系统片区明细代码';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."SAREANAME_JX" IS '金信系统片区名称';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."SAREANAME_JXMX" IS '金信系统片区明细名称';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."SUBENTITYTYPE" IS '企业子类型';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."SUPORG" IS '属地工商所代码';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."SUPORG_CN" IS '属地工商所';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."TAGNAME" IS '信用标签';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICRIS"."EI_BASEINFO_OLD"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "AICRIS"."PRIPID_INDEX" ON "AICRIS"."EI_BASEINFO_OLD"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."UNISCID_INDEX" ON "AICRIS"."EI_BASEINFO_OLD"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."REGNO_INDEX" ON "AICRIS"."EI_BASEINFO_OLD"("REGNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."ENTERPRISEDSTATEROLLBACK"
(
"ENTROLLBACKID" VARCHAR2(50) NOT NULL,
"ENTERPRISEDSTATEID" VARCHAR2(50),
"RANINSTASKID" VARCHAR2(18),
"REPID" VARCHAR2(36),
"PLANTYPE" CHAR(1),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"ENTNAME" VARCHAR2(200),
"LOCDISTRICT" VARCHAR2(6),
"USERCARDID" VARCHAR2(50),
"NAME" VARCHAR2(50),
"SUPDEPTID" VARCHAR2(10),
"DEPTYPE" VARCHAR2(30),
"USERID" VARCHAR2(36),
"DEPARTMENTID" VARCHAR2(50),
"DEPNAME" VARCHAR2(100),
"VERIFYSTATE" CHAR(1),
"AUDITOR" VARCHAR2(36),
"APPROVER" VARCHAR2(36),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"DSTATE" CHAR(1),
CLUSTER PRIMARY KEY("ENTROLLBACKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."ENTERPRISEDSTATEROLLBACK" IS '任务环节回退记录表';
COMMENT ON COLUMN "AICRIS"."ENTERPRISEDSTATEROLLBACK"."ENTROLLBACKID" IS '检查结果回退记录表ID';


CREATE TABLE "AICRIS"."ENTERPRISETYPE"
(
"ENTITYTYPEID" VARCHAR2(6) NOT NULL,
"DISPLAYVALUE" VARCHAR2(100),
"PRINTVALUE" VARCHAR2(80),
"PARENTENTITYTYPEID" VARCHAR2(36),
"ECONOMICPROPERTY" CHAR(1),
"CORPORATION" CHAR(1),
"STANDARD" CHAR(1),
"AREA_CODE" VARCHAR2(6) DEFAULT '440800',
"TIMESTAMP" TIMESTAMP(6),
CONSTRAINT "PK_ENTERPRISETYPE" NOT CLUSTER PRIMARY KEY("ENTITYTYPEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."ENTERPRISETYPES"
(
"ENTTYPEID" VARCHAR2(6) NOT NULL,
"DISPLAYVALUE" VARCHAR2(100),
"PRINTVALUE" VARCHAR2(80),
"PENTTYPEID" VARCHAR2(36),
"ECOPROPERTY" CHAR(1),
"CORPORATION" CHAR(1),
"STANDARD" CHAR(1),
"LAUPTIME" VARCHAR2(6),
"AREA_CODE" VARCHAR2(6),
"PARTYTYPE" VARCHAR2(6),
CONSTRAINT "P_KEY_222" NOT CLUSTER PRIMARY KEY("ENTTYPEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."ENTERPRISETYPES" IS '主体类型表';


CREATE TABLE "AICRIS"."FORGIVEPRUDENT"
(
"ID" VARCHAR2(36) NOT NULL,
"DEPTID" VARCHAR2(20) NOT NULL,
"DEPTNAME" VARCHAR2(200),
"FORPRUNAME" VARCHAR2(300),
"FORPRUOBJID" VARCHAR2(36),
"FORPRUTYPE" VARCHAR2(2),
"SUPERID" VARCHAR2(9),
"COLNAME1" VARCHAR2(200),
"COLTYPE1" VARCHAR2(3),
"COLLENGTH1" VARCHAR2(5),
"COLNAME2" VARCHAR2(200),
"COLTYPE2" VARCHAR2(3),
"COLLENGTH2" VARCHAR2(5),
"COLNAME3" VARCHAR2(200),
"COLTYPE3" VARCHAR2(3),
"COLLENGTH3" VARCHAR2(5),
"COLNAME4" VARCHAR2(200),
"COLTYPE4" VARCHAR2(3),
"COLLENGTH4" VARCHAR2(5),
"COLNAME5" VARCHAR2(200),
"COLTYPE5" VARCHAR2(3),
"COLLENGTH5" VARCHAR2(5),
"COLNAME6" VARCHAR2(200),
"COLTYPE6" VARCHAR2(3),
"COLLENGTH6" VARCHAR2(5),
"COLNAME7" VARCHAR2(200),
"COLTYPE7" VARCHAR2(3),
"COLLENGTH7" VARCHAR2(5),
"COLNAME8" VARCHAR2(200),
"COLTYPE8" VARCHAR2(3),
"COLLENGTH8" VARCHAR2(5),
"VALID" VARCHAR2(2),
"ORGID" VARCHAR2(36),
"UNITID" VARCHAR2(36),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"CREATELIBPEOPLE" VARCHAR2(30),
"CREATEPHONE" VARCHAR2(30),
"CREATEFILENAME" VARCHAR2(200),
"CREATEFILEPATH" VARCHAR2(200),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."FORGIVEPRUDENT" IS '包容审慎库';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLLENGTH1" IS '属性长度1';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLLENGTH2" IS '属性长度2';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLLENGTH3" IS '属性长度3';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLLENGTH4" IS '属性长度4';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLLENGTH5" IS '属性长度5';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLLENGTH6" IS '属性长度6';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLLENGTH7" IS '属性长度7';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLLENGTH8" IS '属性长度8';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLNAME1" IS '属性名称1';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLNAME2" IS '属性名称2';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLNAME3" IS '属性名称3';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLNAME4" IS '属性名称4';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLNAME5" IS '属性名称5';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLNAME6" IS '属性名称6';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLNAME7" IS '属性名称7';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLNAME8" IS '属性名称8';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLTYPE1" IS '属性类型1';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLTYPE2" IS '属性类型2';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLTYPE3" IS '属性类型3';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLTYPE4" IS '属性类型4';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLTYPE5" IS '属性类型5';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLTYPE6" IS '属性类型6';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLTYPE7" IS '属性类型7';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."COLTYPE8" IS '属性类型8';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."CREATEFILENAME" IS '文件名称';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."CREATEFILEPATH" IS '文件地址';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."CREATELIBPEOPLE" IS '建库人';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."CREATEPHONE" IS '联系电话';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."DEPTID" IS '所在单位编码';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."DEPTNAME" IS '所在单位名称';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."FORPRUNAME" IS '包容审慎库名称';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."FORPRUOBJID" IS '关联包容审慎库ID';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."FORPRUTYPE" IS '包容审慎库类型 1：包容库  2：审慎库';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."ID" IS '包容审慎库主键';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."ORGID" IS '机构id';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."SUPERID" IS '监管部门id';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."UNITID" IS '部门id';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."UPDATETIME" IS '修改时间';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENT"."VALID" IS '是否有效 1为有效，0为无效';


CREATE TABLE "AICRIS"."FORGIVEPRUDENTLOG"
(
"FORPRULOGID" VARCHAR2(36) NOT NULL,
"FORGIVEPRUDENTID" VARCHAR2(36) NOT NULL,
"FORPRUOBJID" VARCHAR2(36),
"OPERAUSERID" VARCHAR2(100) NOT NULL,
"OPERATYPE" VARCHAR2(2),
"OPERATIME" VARCHAR2(50),
"OPERAREMARK" VARCHAR2(1000),
"OPERADEPTID" VARCHAR2(40) NOT NULL,
"OPERATABLE" CHAR(10),
CLUSTER PRIMARY KEY("FORPRULOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."FORGIVEPRUDENTLOG" IS '包容审慎库日志表';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTLOG"."FORGIVEPRUDENTID" IS '包容审慎表的id';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTLOG"."FORPRULOGID" IS '主键';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTLOG"."FORPRUOBJID" IS '关联包容审慎库ID';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTLOG"."OPERADEPTID" IS '部门id';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTLOG"."OPERAREMARK" IS '备注';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTLOG"."OPERATABLE" IS '表类型  1：包容库  2：审慎库';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTLOG"."OPERATIME" IS '操作时间';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTLOG"."OPERATYPE" IS '操作类型  新增1，变更0';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTLOG"."OPERAUSERID" IS '操作者的id';


CREATE TABLE "AICRIS"."FORGIVEPRUDENTOBJECT"
(
"OBJID" VARCHAR2(36) NOT NULL,
"DEPTID" VARCHAR2(36),
"UNISCID" VARCHAR2(50),
"REGNO" VARCHAR2(50),
"FORPRUNAME" VARCHAR2(300),
"FORPRUOBJID" VARCHAR2(36),
"SUPERID" VARCHAR2(36),
"COL1" VARCHAR2(1500),
"COL2" VARCHAR2(1500),
"COL3" VARCHAR2(1500),
"COL4" VARCHAR2(1500),
"COL5" VARCHAR2(1500),
"COL6" VARCHAR2(1500),
"COL7" VARCHAR2(1500),
"COL8" VARCHAR2(1500),
"COL9" VARCHAR2(1500),
"COL10" VARCHAR2(1500),
"COL11" VARCHAR2(1500),
"COL12" VARCHAR2(1500),
"COL13" VARCHAR2(1500),
"COL14" VARCHAR2(1500),
"COL15" VARCHAR2(1500),
"COL16" VARCHAR2(1500),
"COL17" VARCHAR2(1500),
"COL18" VARCHAR2(1500),
"COL19" VARCHAR2(1500),
"COL20" VARCHAR2(1500),
"DEPTNAME" VARCHAR2(300),
"SUPERNAME" VARCHAR2(300),
"PARTNAME" VARCHAR2(500),
"ENTNO" VARCHAR2(36),
"ORGID" VARCHAR2(36),
"UNITID" VARCHAR2(36),
"CREATETIME" VARCHAR2(20),
"UPDATETIME" VARCHAR2(20),
"ONLYNO" VARCHAR2(50),
CLUSTER PRIMARY KEY("OBJID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."FORGIVEPRUDENTOBJECT" IS '包容审慎库对象';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."DEPTID" IS '机构编码';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."DEPTNAME" IS '机构名称';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."ENTNO" IS '企业主键';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."FORPRUNAME" IS '包容审慎库名称';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."FORPRUOBJID" IS '关联包容审慎库ID';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."OBJID" IS '主键';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."ONLYNO" IS '唯一标识编码';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."ORGID" IS '机构id';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."PARTNAME" IS '主体名称';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."REGNO" IS '注册码';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."SUPERID" IS '监管机关编码';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."SUPERNAME" IS '监管机关名称';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."UNITID" IS '部门id';
COMMENT ON COLUMN "AICRIS"."FORGIVEPRUDENTOBJECT"."UPDATETIME" IS '修改时间';


CREATE TABLE "AICRIS"."GENERATEDCODE"
(
"ID" VARCHAR2(50) NOT NULL,
"LOCDISTRICT" VARCHAR2(10),
"COUNT" VARCHAR2(5),
"CODETYPE" VARCHAR2(1),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"DSTATE" VARCHAR2(1),
CONSTRAINT "PK_GENERATEDCODE" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."GENERATEDCODE" IS '记录生成编码';
COMMENT ON COLUMN "AICRIS"."GENERATEDCODE"."CODETYPE" IS '编码类型 ，1计划编码、2任务编码';
COMMENT ON COLUMN "AICRIS"."GENERATEDCODE"."COUNT" IS '数量';
COMMENT ON COLUMN "AICRIS"."GENERATEDCODE"."ID" IS 'id';
COMMENT ON COLUMN "AICRIS"."GENERATEDCODE"."LOCDISTRICT" IS '行政区划号';


CREATE TABLE "AICRIS"."INDUSTRYINCREMENTALL"
(
"CREATEBY" VARCHAR2(40),
"CREATETIME" TIMESTAMP(0),
"UPDATEBY" VARCHAR2(40),
"UPDATETIME" TIMESTAMP(0),
"ID" VARCHAR2(40) NOT NULL,
"INDUSTRYCODE" VARCHAR2(10),
"INDUSTRYNAME" VARCHAR2(80),
"INCREMENT" NUMBER,
"MONTH" VARCHAR2(7),
"MONTHBASIC" NUMBER,
"TOTALCOUNT" NUMBER,
CONSTRAINT "INDUSTRYINCREMENTALL_PKEY" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."INDUSTRYINCREMENTALL" IS '行业月总增量记录表';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL"."ID" IS '数据ID';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL"."INDUSTRYCODE" IS '行业编码';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL"."INDUSTRYNAME" IS '行业名称';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL"."MONTH" IS '统计月份，格式：YYYY-MM';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL"."MONTHBASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL"."TOTALCOUNT" IS '总企业量';


CREATE TABLE "AICRIS"."INDUSTRYINCREMENTALL_TEST"
(
"CREATEBY" VARCHAR2(40),
"CREATETIME" TIMESTAMP(0),
"UPDATEBY" VARCHAR2(40),
"UPDATETIME" TIMESTAMP(0),
"ID" VARCHAR2(40) NOT NULL,
"INDUSTRYCODE" VARCHAR2(10),
"INDUSTRYNAME" VARCHAR2(100),
"INCREMENT" NUMBER,
"MONTH" VARCHAR2(7),
"MONTHBASIC" NUMBER,
"TOTALCOUNT" NUMBER,
CONSTRAINT "PK_INDUSTRYINCREMENTALL" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."INDUSTRYINCREMENTALL_TEST" IS '行业月总增量记录表';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL_TEST"."ID" IS '数据ID';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL_TEST"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL_TEST"."INDUSTRYCODE" IS '行业编码';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL_TEST"."INDUSTRYNAME" IS '行业名称';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL_TEST"."MONTH" IS '统计月份，格式：YYYY-MM';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL_TEST"."MONTHBASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTALL_TEST"."TOTALCOUNT" IS '总企业量';


CREATE TABLE "AICRIS"."INDUSTRYINCREMENTHIGH_TEST"
(
"CREATEBY" VARCHAR2(40),
"CREATETIME" TIMESTAMP(0),
"UPDATEBY" VARCHAR2(40),
"UPDATETIME" TIMESTAMP(0),
"ID" VARCHAR2(40) NOT NULL,
"INDUSTRYCODE" VARCHAR2(10),
"INDUSTRYNAME" VARCHAR2(100),
"INCREMENT" NUMBER,
"MONTH" VARCHAR2(7),
"MONTHBASIC" NUMBER,
"TOTALCOUNT" NUMBER,
CONSTRAINT "PK_INDUSTRYINCREMENTHIGH" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."INDUSTRYINCREMENTHIGH_TEST" IS '行业高风险和较高风险月总增量记录表';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTHIGH_TEST"."ID" IS '数据ID';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTHIGH_TEST"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTHIGH_TEST"."INDUSTRYCODE" IS '行业编码';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTHIGH_TEST"."INDUSTRYNAME" IS '行业名称';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTHIGH_TEST"."MONTH" IS '统计月份，格式：YYYY-MM';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTHIGH_TEST"."MONTHBASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "AICRIS"."INDUSTRYINCREMENTHIGH_TEST"."TOTALCOUNT" IS '总企业量';


CREATE TABLE "AICRIS"."INFOWARNING"
(
"INFOWAID" VARCHAR2(36) NOT NULL,
"PUBID" VARCHAR2(36),
"RETATE" VARCHAR2(2),
"DSTATE" VARCHAR2(2),
"INFOWCONTENT" VARCHAR2(4000),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"PRIMARYKEY" VARCHAR2(36),
"SPORPC" VARCHAR2(2),
CONSTRAINT "INFOWARNING_PK" NOT CLUSTER PRIMARY KEY("INFOWAID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."INFOWARNING" IS '信息发布表';


CREATE TABLE "AICRIS"."INSPECTORLAWEXPERTLABEL"
(
"ID" VARCHAR2(50) NOT NULL,
"INSPECTORID" VARCHAR2(36),
"LABELID" VARCHAR2(50),
"UPDATETIME" TIMESTAMP(0),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."INSPECTORLAWEXPERTLABEL" IS '执法人员与业务专长标签的关联表';
COMMENT ON COLUMN "AICRIS"."INSPECTORLAWEXPERTLABEL"."ID" IS '主键';
COMMENT ON COLUMN "AICRIS"."INSPECTORLAWEXPERTLABEL"."INSPECTORID" IS '执法人员身份标识id';
COMMENT ON COLUMN "AICRIS"."INSPECTORLAWEXPERTLABEL"."LABELID" IS '标签主键';
COMMENT ON COLUMN "AICRIS"."INSPECTORLAWEXPERTLABEL"."UPDATETIME" IS '修改时间';


CREATE TABLE "AICRIS"."INSTEADBUSINESS"
(
"ID" VARCHAR2(50) NOT NULL,
"ENTRUSTID" VARCHAR2(36),
"ENTRUSTNAME" VARCHAR2(100),
"INSTEADID" VARCHAR2(36),
"INSTEADNAME" VARCHAR2(100),
"INSTEADFROM" TIMESTAMP(0),
"INSTEADTO" TIMESTAMP(0),
"ORGUNITID" VARCHAR2(36),
"DEPTYPE" VARCHAR2(100),
"DSTATE" CHAR(1),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"INSTEADDEPID" VARCHAR2(50),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."INSTEADBUSINESS" IS '代办权限表';
COMMENT ON COLUMN "AICRIS"."INSTEADBUSINESS"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."INSTEADBUSINESS"."DEPTYPE" IS '单位类型';
COMMENT ON COLUMN "AICRIS"."INSTEADBUSINESS"."DSTATE" IS '删除标志';
COMMENT ON COLUMN "AICRIS"."INSTEADBUSINESS"."ENTRUSTID" IS '委托人账号id';
COMMENT ON COLUMN "AICRIS"."INSTEADBUSINESS"."ENTRUSTNAME" IS '委托人姓名';
COMMENT ON COLUMN "AICRIS"."INSTEADBUSINESS"."ID" IS '代办权限id';
COMMENT ON COLUMN "AICRIS"."INSTEADBUSINESS"."INSTEADDEPID" IS '代办人所在部门id';
COMMENT ON COLUMN "AICRIS"."INSTEADBUSINESS"."INSTEADFROM" IS '代办时间自';
COMMENT ON COLUMN "AICRIS"."INSTEADBUSINESS"."INSTEADID" IS '代办人账号id';
COMMENT ON COLUMN "AICRIS"."INSTEADBUSINESS"."INSTEADNAME" IS '代办人姓名';
COMMENT ON COLUMN "AICRIS"."INSTEADBUSINESS"."INSTEADTO" IS '代办时间至';
COMMENT ON COLUMN "AICRIS"."INSTEADBUSINESS"."ORGUNITID" IS '所在单位id';
COMMENT ON COLUMN "AICRIS"."INSTEADBUSINESS"."UPDATETIME" IS '修改时间';


CREATE TABLE "AICRIS"."ISSUEROLLBACK"
(
"ROLLBACKID" VARCHAR2(50) NOT NULL,
"RANINSTASKID" VARCHAR2(50),
"PLANTYPE" CHAR(1),
"EXCTYPE" VARCHAR2(10),
"DEPID" VARCHAR2(50),
"TIID" VARCHAR2(50),
"PARENTID" VARCHAR2(50),
"ISSUED" CHAR(1),
"ISFINISH" CHAR(1),
"ISIMPORT" CHAR(1),
"USERIMPORT" CHAR(5),
"FINALSTEP" CHAR(1),
"DSTATEISSUE" CHAR(1),
"VERIFYSTATEISSUE" CHAR(1),
"USERID" VARCHAR2(36),
"DEPARTMENTID" VARCHAR2(50),
"DEPNAME" VARCHAR2(100),
"VERIFYSTATE" CHAR(1),
"AUDITOR" VARCHAR2(36),
"APPROVER" VARCHAR2(36),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"DSTATE" CHAR(1),
CLUSTER PRIMARY KEY("ROLLBACKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."ISSUEROLLBACK" IS '任务环节回退记录表';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."APPROVER" IS '回退审批人id';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."AUDITOR" IS '回退审核人id';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."DEPARTMENTID" IS '经办人单位id';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."DEPID" IS '当前环节对应的部门id';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."DEPNAME" IS '经办人单位名称';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."DSTATE" IS '删除标志 0 正常 1 修改 2 删除';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."DSTATEISSUE" IS '该节点的删除标志 （修改后的）';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."EXCTYPE" IS '回退前的环节
本部门类型 01：分配环节、02：抽取对象、022：抽取对象审核审批、0：抽取检查人员、11：汇总选取检查人员、12：汇总随机检查人员、2：随机检查人员、3：双随机匹配、71：提交检查人员、72：提交随机人员、04：录入结果环节、05：任务完成、06：录入环节且已存任一录入结果
 跨部门类型 01：分配抽查任务、2：细化抽查任务、99：汇总人员、51：汇总匹配人员、52：汇总随机人员、 4：汇总检查任务、44：匹配信息审核审批、04：录入结果环节、05：任务完成、06：录入环节且已存任一录入结果';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."FINALSTEP" IS '是否汇总 0：表示未汇总 ；1：汇总 （修改后的）';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."ISFINISH" IS '是否完成本部门操作 （0否 1是）上级完成下发，下级完成匹配则为1 （修改后的）';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."ISIMPORT" IS '是否完成主体抽取（0否  2正在抽取 3 完成主体导入操作 1是(随机完后)）（修改后的）';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."ISSUED" IS '是否下发（0否 1是）（修改后的）';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."PARENTID" IS '父级节点id';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."PLANTYPE" IS '计划类型。1 ：本部门，2：跨部门';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."RANINSTASKID" IS '抽查任务编号';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."ROLLBACKID" IS '任务回退记录表id';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."TIID" IS '下发表id';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."UPDATETIME" IS '修改时间';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."USERID" IS '回退经办人id';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."USERIMPORT" IS '修改后的USERIMPORT';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."VERIFYSTATE" IS '审核状态 1：待审核，2：待审批，3：审批通过，0：经办环节，通常是审核人退回到经办人，4：勘误流程中断，通常是经办人直接结束勘误流程';
COMMENT ON COLUMN "AICRIS"."ISSUEROLLBACK"."VERIFYSTATEISSUE" IS '该节点的审核状态';


CREATE TABLE "AICRIS"."JG_JGXW_CHECK_ACTION"
(
"RECORD_UNIQUE_IDENTITY" VARCHAR2(50) NOT NULL,
"SUPERVISE_ITEM_IMPLEMENT_CODE" VARCHAR2(50),
"SUPERVISE_ITEM_CHECK_ICODE" VARCHAR2(50),
"CHECK_ACTION_NAME" VARCHAR2(4000),
"CHECK_ACTION_CODE" VARCHAR2(50),
"IMPLEMENT_INSTITUTION" VARCHAR2(100),
"IMPLEMENT_INSTITUTION_CODE" VARCHAR2(20),
"ENTRUST_DEPT" VARCHAR2(100),
"ENTRUST_DEPT_CODE" VARCHAR2(20),
"SUPERVISE_OBJECT" VARCHAR2(200),
"ADMINISTRATIVE_CP" VARCHAR2(200),
"ADMINISTRATIVE_CP_NA" VARCHAR2(100),
"ADMINISTRATIVE_CP_CE_TYPE" VARCHAR2(10),
"ADMINISTRATIVE_CP_UI_CODE" VARCHAR2(20),
"ADDRESS_REGISTERED" VARCHAR2(400),
"ADDRESS_OPERATING" VARCHAR2(400),
"AREA_NUMBER" VARCHAR2(6),
"CHECK_FORM" VARCHAR2(100),
"CHECK_TYPE" VARCHAR2(100),
"CHECK_MODE" VARCHAR2(20),
"CHECK_RESULT" VARCHAR2(4000),
"CHECK_DATE" TIMESTAMP(6),
"CHECK_PERSONNEL" VARCHAR2(2000),
"CHECK_PERSONNEL_CODE" VARCHAR2(2000),
"SUBMITTED_DATE" TIMESTAMP(6),
"SUBMITTED_PERSONNEL" VARCHAR2(50),
"UPDATETIME" TIMESTAMP(6),
"DSTATE" NUMBER(38,0) DEFAULT 0,
CONSTRAINT "SYS_C0050162" NOT CLUSTER PRIMARY KEY("RECORD_UNIQUE_IDENTITY")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."JG_JGXW_CHECK_ACTION" IS '行政检查行为信息';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."ADDRESS_OPERATING" IS '经营地址';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."ADDRESS_REGISTERED" IS '注册地址';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."ADMINISTRATIVE_CP" IS '行政相对人（单位/个人）';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."ADMINISTRATIVE_CP_CE_TYPE" IS '行政相对人证件类型';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."ADMINISTRATIVE_CP_NA" IS '行政相对人性质';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."ADMINISTRATIVE_CP_UI_CODE" IS '行政相对人（单位/个人）编码';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."AREA_NUMBER" IS '行政区划代码';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."CHECK_ACTION_CODE" IS '检查行为编号';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."CHECK_ACTION_NAME" IS '检查行为名称';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."CHECK_DATE" IS '检查时间';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."CHECK_FORM" IS '检查形式';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."CHECK_MODE" IS '检查方式';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."CHECK_PERSONNEL" IS '检查人员';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."CHECK_PERSONNEL_CODE" IS '执法证号';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."CHECK_RESULT" IS '检查结果';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."CHECK_TYPE" IS '检查类别';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."ENTRUST_DEPT" IS '受委托部门';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."ENTRUST_DEPT_CODE" IS '受委托部门编码';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."IMPLEMENT_INSTITUTION" IS '实施机构';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."IMPLEMENT_INSTITUTION_CODE" IS '实施机构编码';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."RECORD_UNIQUE_IDENTITY" IS '记录唯一标识';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."SUBMITTED_DATE" IS '报送时间';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."SUBMITTED_PERSONNEL" IS '报送人员';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."SUPERVISE_ITEM_CHECK_ICODE" IS '监管事项检查实施清单编码';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."SUPERVISE_ITEM_IMPLEMENT_CODE" IS '监管事项目录编号';
COMMENT ON COLUMN "AICRIS"."JG_JGXW_CHECK_ACTION"."SUPERVISE_OBJECT" IS '监管对象';


CREATE TABLE "AICRIS"."LAWEXPERTLABEL"
(
"ID" VARCHAR2(50) NOT NULL,
"LAWEXPERTNAME" VARCHAR2(100),
"DEPID" VARCHAR2(50),
"DSTATE" CHAR(1),
"UPDATETIME" TIMESTAMP(0),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."LAWEXPERTLABEL" IS '业务专长标签表';
COMMENT ON COLUMN "AICRIS"."LAWEXPERTLABEL"."DEPID" IS '部门id';
COMMENT ON COLUMN "AICRIS"."LAWEXPERTLABEL"."DSTATE" IS '是否作废';
COMMENT ON COLUMN "AICRIS"."LAWEXPERTLABEL"."ID" IS '业务专长id';
COMMENT ON COLUMN "AICRIS"."LAWEXPERTLABEL"."LAWEXPERTNAME" IS '业务专长名称';
COMMENT ON COLUMN "AICRIS"."LAWEXPERTLABEL"."UPDATETIME" IS '更新时间';


CREATE TABLE "AICRIS"."LC_TEMP"
(
"LANGCHAOTASKID" VARCHAR(36),
"TARGEID" VARCHAR(100),
"STATUS" VARCHAR(100),
"UPDATETIME" VARCHAR(100)) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."LC_TEMP" IS '浪潮对接临时表';
COMMENT ON COLUMN "AICRIS"."LC_TEMP"."LANGCHAOTASKID" IS '浪潮待办id（意见表）';
COMMENT ON COLUMN "AICRIS"."LC_TEMP"."STATUS" IS '是否同步';
COMMENT ON COLUMN "AICRIS"."LC_TEMP"."TARGEID" IS '双随机任务ID';
COMMENT ON COLUMN "AICRIS"."LC_TEMP"."UPDATETIME" IS '同步时间';


CREATE TABLE "AICRIS"."LOCALLOTGROUP"
(
"ID" VARCHAR2(36) NOT NULL,
"LOCDISTRICT" VARCHAR2(20),
"GROUPNUMS" VARCHAR2(200),
"RANINSTASKID" VARCHAR2(36),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"DSTATE" CHAR(1) DEFAULT '0',
CONSTRAINT "SYS_C0049411" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."LOCALLOTGROUP" IS '各行政区划对应数量表';


CREATE TABLE "AICRIS"."LUO_LOG"
(
"PRIPID" VARCHAR(50),
"TODO" VARCHAR(50)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."MAPPING_CHECKRESULT"
(
"ID" VARCHAR2(100) NOT NULL,
"NEW_CODE" VARCHAR2(100),
"NEW_VALUE" VARCHAR2(100)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."MAPPING_ENTERSTATE"
(
"ID" VARCHAR2(100) NOT NULL,
"NEW_CODE" VARCHAR2(100),
"NEW_VALUE" VARCHAR2(100)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."MAPPING_ENTTYPE"
(
"OLD_CODE" VARCHAR2(15),
"NEW_CODE" VARCHAR2(4),
"OLD_VALUE" VARCHAR2(100),
"NEW_VALUE" VARCHAR2(100)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."MAPPING_REGORG"
(
"OLD_CODE" VARCHAR2(15),
"NEW_CODE" VARCHAR2(9),
"OLD_VALUE" VARCHAR2(100),
"NEW_VALUE" VARCHAR2(100)) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICRIS"."INDEX_NEW_CODE" ON "AICRIS"."MAPPING_REGORG"("NEW_CODE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."MAPPING_SUPORG"
(
"OLD_CODE" VARCHAR2(20) NOT NULL,
"NEW_CODE" VARCHAR2(10),
"OLD_VALUE" VARCHAR2(200),
"NEW_VALUE" VARCHAR2(200),
CONSTRAINT "PK_KEY_SUPORG" NOT CLUSTER PRIMARY KEY("OLD_CODE")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."NONENTERPRISEDSTATE"
(
"ID" VARCHAR2(36) NOT NULL,
"RANINSTASKID" VARCHAR2(18),
"REPID" VARCHAR2(36),
"PRIMARYKEY" VARCHAR2(36),
"STATUS" CHAR(1),
"DSTATE" CHAR(1),
"CHECKTIME" TIMESTAMP(0),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"ENTNAME" VARCHAR2(2000),
"REGNO" VARCHAR2(50),
"UNISCID" VARCHAR2(18),
"REPTYPE" CHAR(1),
"LOCDISTRICT" VARCHAR2(6),
"CHECKTYPE" VARCHAR2(10),
"CROPOBSTATE" VARCHAR2(10),
"SUPDEPTID" VARCHAR2(10),
"VERIFYSTATE" CHAR(1),
CONSTRAINT "PK_NONENTERPRISEDSTATE" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."NONPLAN"
(
"RANINSPLANID" VARCHAR2(14) NOT NULL,
"RANINSPLANNAME" VARCHAR2(200),
"ENTNUM" NUMBER(38,0),
"REMARK" VARCHAR2(2000),
"DEPARTMENTID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"REGORG" VARCHAR2(10),
"DSTATE" CHAR(1),
"USERID" VARCHAR2(36),
"SUBTIME" TIMESTAMP(0),
"PLANTYPE" CHAR(1),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
CONSTRAINT "PK_NONPLAN" NOT CLUSTER PRIMARY KEY("RANINSPLANID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."NONRESULT"
(
"RESULTID" VARCHAR2(36) NOT NULL,
"RANINSPLANID" VARCHAR2(36),
"RANINSITEM" VARCHAR2(14),
"RANINSTASKID" VARCHAR2(18),
"RANINSITEMNAME" VARCHAR2(300),
"REPID" VARCHAR2(36),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(30),
"RANINSCHECKRES" CHAR(1),
"REMARK" VARCHAR2(1000),
"USERCARDID" VARCHAR2(36),
"INSDATE" TIMESTAMP(0),
"DEPID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"REPTYPE" CHAR(1),
"ENTRYID" VARCHAR2(36),
"DEPTYPE" VARCHAR2(16),
CONSTRAINT "PK_NONRESULT" NOT CLUSTER PRIMARY KEY("RESULTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."NONTASK"
(
"RANINSTASKID" VARCHAR2(18) NOT NULL,
"RANINSPLANID" VARCHAR2(14),
"RANINSTASKNAME" VARCHAR2(200),
"RANINSTYPE" CHAR(1),
"RANINSITEM" VARCHAR2(4000),
"RANINSOBJSCOPE" VARCHAR2(4000),
"EXTRACTAUTH" VARCHAR2(100),
"EXTRACTFROM" TIMESTAMP(0),
"EXTRACTTO" TIMESTAMP(0),
"RANINSOBJNUM" NUMBER(38,0),
"RANINSOBJPROP" NUMBER(7,4),
"SLDINSOBJNUM" NUMBER(38,0),
"INSPNUM" NUMBER(38,0),
"INSDATEFROM" TIMESTAMP(0),
"INSDATETO" TIMESTAMP(0),
"INSAUTH" VARCHAR2(1000),
"REMARK" VARCHAR2(1000),
"DSTATE" CHAR(1),
"ADDTASKID" VARCHAR2(36),
"ADDDEPID" VARCHAR2(36),
"ADDDEPNAME" VARCHAR2(80),
"LEADINGDEPID" VARCHAR2(36),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"TASKASSIGNDEPT" VARCHAR2(100),
"VERIFYSTATE" CHAR(1),
"GROUPNUM" VARCHAR2(3),
"DIVISION" VARCHAR2(500),
"EXTRACTAUTHCODE" VARCHAR2(200),
"INSAUTHCODE" VARCHAR2(200),
CONSTRAINT "PK_NONTASK" NOT CLUSTER PRIMARY KEY("RANINSTASKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."OBJPARING"
(
"ID" VARCHAR2(36) NOT NULL,
"DEPTID" VARCHAR2(20) NOT NULL,
"DEPTNAME" VARCHAR2(200),
"OBJOTHERNAME" VARCHAR2(300),
"OTHEROBJPAID" VARCHAR2(36),
"OBJPATYPE" VARCHAR2(2),
"SUPERID" VARCHAR2(9),
"COLNAME1" VARCHAR2(200),
"COLTYPE1" VARCHAR2(3),
"COLLENGTH1" VARCHAR2(5),
"COLNAME2" VARCHAR2(200),
"COLTYPE2" VARCHAR2(3),
"COLLENGTH2" VARCHAR2(5),
"COLNAME3" VARCHAR2(200),
"COLTYPE3" VARCHAR2(3),
"COLLENGTH3" VARCHAR2(5),
"COLNAME4" VARCHAR2(200),
"COLTYPE4" VARCHAR2(3),
"COLLENGTH4" VARCHAR2(5),
"COLNAME5" VARCHAR2(200),
"COLTYPE5" VARCHAR2(3),
"COLLENGTH5" VARCHAR2(5),
"COLNAME6" VARCHAR2(200),
"COLTYPE6" VARCHAR2(3),
"COLLENGTH6" VARCHAR2(5),
"COLNAME7" VARCHAR2(200),
"COLTYPE7" VARCHAR2(3),
"COLLENGTH7" VARCHAR2(5),
"COLNAME8" VARCHAR2(200),
"COLTYPE8" VARCHAR2(3),
"COLLENGTH8" VARCHAR2(5),
"VALID" VARCHAR2(2),
"ORGID" VARCHAR2(36),
"UNITID" VARCHAR2(36),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"CREATELIBPEOPLE" VARCHAR2(30),
"CREATEPHONE" VARCHAR2(30),
"CREATEFILENAME" VARCHAR2(200),
"CREATEFILEPATH" VARCHAR2(200),
CONSTRAINT "PK_OBJPARING" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."OBJPARING" IS '检查名录库属性表';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLLENGTH1" IS '属性长度1';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLLENGTH2" IS '属性长度2';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLLENGTH3" IS '属性长度3';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLLENGTH4" IS '属性长度4';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLLENGTH5" IS '属性长度5';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLLENGTH6" IS '属性长度6';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLLENGTH7" IS '属性长度7';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLLENGTH8" IS '属性长度8';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLNAME1" IS '属性名称1';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLNAME2" IS '属性名称2';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLNAME3" IS '属性名称3';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLNAME4" IS '属性名称4';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLNAME5" IS '属性名称5';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLNAME6" IS '属性名称6';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLNAME7" IS '属性名称7';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLNAME8" IS '属性名称8';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLTYPE1" IS '属性类型1';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLTYPE2" IS '属性类型2';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLTYPE3" IS '属性类型3';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLTYPE4" IS '属性类型4';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLTYPE5" IS '属性类型5';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLTYPE6" IS '属性类型6';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLTYPE7" IS '属性类型7';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."COLTYPE8" IS '属性类型8';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."CREATEFILENAME" IS '文件名称';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."CREATEFILEPATH" IS '文件地址';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."CREATELIBPEOPLE" IS '建库人';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."CREATEPHONE" IS '联系电话';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."DEPTID" IS '所在单位编码';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."DEPTNAME" IS '所在单位名称';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."ID" IS '子库主键';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."OBJOTHERNAME" IS '子库名称';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."OBJPATYPE" IS '检查对象库类型 1：非商事主体库  2：商事主体库';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."ORGID" IS '机构id';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."OTHEROBJPAID" IS '关联子库ID';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."SUPERID" IS '监管部门id';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."UNITID" IS '部门id';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."UPDATETIME" IS '修改时间';
COMMENT ON COLUMN "AICRIS"."OBJPARING"."VALID" IS '是否有效 1为有效，0为无效';

CREATE OR REPLACE  INDEX "AICRIS"."INDEX_OBJPARING_ORGID" ON "AICRIS"."OBJPARING"("ORGID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."OBJPARINGLOG"
(
"OPLOGID" VARCHAR2(36) NOT NULL,
"OPID" VARCHAR2(36) NOT NULL,
"OTHEROBJPAID" VARCHAR2(36),
"OPERAUSERID" VARCHAR2(100) NOT NULL,
"OPERATYPE" VARCHAR2(2),
"OPERATIME" VARCHAR2(50),
"OPERAREMARK" VARCHAR2(1000),
"OPERADEPTID" VARCHAR2(40) NOT NULL,
"OPERATABLE" VARCHAR2(10),
CONSTRAINT "PK_OBJPARINGLOG" NOT CLUSTER PRIMARY KEY("OPLOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."OBJPARINGLOG" IS '子库日志表';


CREATE TABLE "AICRIS"."OPERPORTALLOG"
(
"ID" VARCHAR2(100) NOT NULL,
"SYSTEMID" VARCHAR2(50),
"SYSTEMNAME" VARCHAR2(100),
"USERID" VARCHAR2(50),
"USERNAME" VARCHAR2(50),
"IP" VARCHAR2(50),
"LOGTYPE" CHAR(10),
"OPERATETYPE" CHAR(10),
"MENUNAME" VARCHAR2(100),
"MENUURL" VARCHAR2(50),
"OPERATION" VARCHAR2(100),
"OPERATETIME" VARCHAR2(50),
"AGENTINFO" VARCHAR2(100),
"META" VARCHAR2(100),
"SYSUSERID" VARCHAR2(50),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."OPERPORTALLOG" IS '推送到门户的业务操作日志表';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."AGENTINFO" IS '浏览器信息';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."ID" IS '唯一id';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."IP" IS 'IP地址';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."LOGTYPE" IS '日志类型（1业务）';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."MENUNAME" IS '操作菜单';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."MENUURL" IS '菜单URL';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."META" IS '备注信息';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."OPERATETIME" IS '操作时间（格式YYYY-MM-dd HH:mm:ss）';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."OPERATETYPE" IS '操作类型（1增加、2修改、3列表查询、4单条查询、5删除、6上传、7下载、8导入、9导出、10登录、11注销、12其他）';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."OPERATION" IS '操作动作';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."SYSTEMID" IS '业务系统ID';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."SYSTEMNAME" IS '业务系统名称';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."SYSUSERID" IS '对应双随机的用户id';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."USERID" IS '操作人ID，门户用户id';
COMMENT ON COLUMN "AICRIS"."OPERPORTALLOG"."USERNAME" IS '操作人姓名';


CREATE TABLE "AICRIS"."OPSCOANDFORM"
(
"BULTEMCODE" VARCHAR2(1000),
"BULTEMNAME" VARCHAR2(1000),
"SCOUNTRYCODE" VARCHAR2(100),
"NINDEX" VARCHAR2(100),
"BSTOP" VARCHAR2(100),
"LICENSETYPE" VARCHAR2(100),
"SELECTTYPE" VARCHAR2(100),
"TIPS" VARCHAR2(2000),
"BSHOWTIPS" VARCHAR2(100),
"SLEVELS" VARCHAR2(100),
"BCITYAPP" VARCHAR2(100)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."OTHAUTHBASE"
(
"AUTHID" CHAR(36) NOT NULL,
"PARENTID" CHAR(36),
"AUTHNAME" VARCHAR2(200),
"MENUFIELD" VARCHAR2(100),
"RESOURCEURL" VARCHAR2(100),
"AUTHCONTEXT" VARCHAR2(200),
"LEVELNUM" REAL,
CONSTRAINT "PK_OTHAUTHBASE" NOT CLUSTER PRIMARY KEY("AUTHID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."OTHAUTHBASE" IS '记录菜单权限';


CREATE TABLE "AICRIS"."OTHERCHECKOBJECT"
(
"OBJID" VARCHAR2(36) NOT NULL,
"DEPTID" VARCHAR2(36),
"UNISCID" VARCHAR2(50),
"REGNO" VARCHAR2(50),
"OBJOTHERNAME" VARCHAR2(300),
"OTHEROBJPAID" VARCHAR2(36),
"SUPERID" VARCHAR2(36),
"COL1" VARCHAR2(1500),
"COL2" VARCHAR2(1500),
"COL3" VARCHAR2(1500),
"COL4" VARCHAR2(1500),
"COL5" VARCHAR2(1500),
"COL6" VARCHAR2(1500),
"COL7" VARCHAR2(1500),
"COL8" VARCHAR2(1500),
"COL9" VARCHAR2(1500),
"COL10" VARCHAR2(1500),
"COL11" VARCHAR2(1500),
"COL12" VARCHAR2(1500),
"COL13" VARCHAR2(1500),
"COL14" VARCHAR2(1500),
"COL15" VARCHAR2(1500),
"COL16" VARCHAR2(1500),
"COL17" VARCHAR2(1500),
"COL18" VARCHAR2(1500),
"COL19" VARCHAR2(1500),
"COL20" VARCHAR2(1500),
"DEPTNAME" VARCHAR2(300),
"SUPERNAME" VARCHAR2(300),
"PARTNAME" VARCHAR2(500),
"ENTNO" VARCHAR2(36),
"ORGID" VARCHAR2(36),
"UNITID" VARCHAR2(36),
"CREATETIME" VARCHAR2(20),
"UPDATETIME" VARCHAR2(20),
"ONLYNO" VARCHAR2(50),
"ISABNORMAL" VARCHAR2(1),
"WHITELIST" VARCHAR(100),
CONSTRAINT "PK_OTHERCHECKOBJECT" NOT CLUSTER PRIMARY KEY("OBJID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."OTHERCHECKOBJECT" IS '检查对象子库';

CREATE OR REPLACE  INDEX "AICRIS"."INDEX_OTHERCHECKOBJECT_ENTNO" ON "AICRIS"."OTHERCHECKOBJECT"("ENTNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."OTHEROBJPAID_IDX" ON "AICRIS"."OTHERCHECKOBJECT"("OTHEROBJPAID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."OTHERCHECKSCOPE"
(
"ID" VARCHAR2(36) NOT NULL,
"TASKID" VARCHAR2(36),
"PLANID" VARCHAR2(36),
"DEPTID" VARCHAR2(36),
"PARINGID" VARCHAR2(36),
"COLNAME" VARCHAR2(60),
"COLTYPE" VARCHAR2(1),
"RELATION" VARCHAR2(30),
"BEFOREVALUE" VARCHAR2(4000),
"AFTERVALUE" VARCHAR2(4000),
"CREATETIME" VARCHAR2(30),
"CREATEMANID" VARCHAR2(36),
"COLNAMECN" VARCHAR2(60),
"LABELID" VARCHAR2(100),
"OBJPARINGID" VARCHAR2(100),
"COMMUNITYPARENTID" VARCHAR2(100),
CONSTRAINT "OTHERCHECKSCOPE_PK" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."OTHLOGINLOGS"
(
"LOGSID" CHAR(36) NOT NULL,
"USERNAME" VARCHAR2(50),
"REALNAME" VARCHAR2(100),
"USERID" CHAR(36) NOT NULL,
"LOGINTIME" VARCHAR2(50),
"LOGINIP" VARCHAR2(20),
"CREATEDATE" TIMESTAMP(0),
"UPDATEDATE" TIMESTAMP(0),
"DSTATE" CHAR(1),
CONSTRAINT "OTHLOGINLOGS_PK" NOT CLUSTER PRIMARY KEY("LOGSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."OTHLOGINLOGS" IS '登录日志表';


CREATE TABLE "AICRIS"."OTHPASSWORDCARD"
(
"PWCID" CHAR(36) NOT NULL,
"PASSWORDCARDNO" VARCHAR2(50),
"APPLICANTNAME" VARCHAR2(50),
"CREDENTIALSTYPE" VARCHAR2(20),
"CREDENTIALSNO" VARCHAR2(50),
"TELEPHONE" VARCHAR2(20),
"RECEIVEDATE" TIMESTAMP(0),
"REPEATAPPLICANT" CHAR(1),
"A1" CHAR(3),
"A2" CHAR(3),
"A3" CHAR(3),
"A4" CHAR(3),
"B1" CHAR(3),
"B2" CHAR(3),
"B3" CHAR(3),
"B4" CHAR(3),
"C1" CHAR(3),
"C2" CHAR(3),
"C3" CHAR(3),
"C4" CHAR(3),
"D1" CHAR(3),
"D2" CHAR(3),
"D3" CHAR(3),
"D4" CHAR(3),
"E1" CHAR(3),
"E2" CHAR(3),
"E3" CHAR(3),
"E4" CHAR(3),
"USERID" CHAR(36),
"FIRSTLOGINSTATE" CHAR(1),
CONSTRAINT "PK_OTHPASSWORDCARD" NOT CLUSTER PRIMARY KEY("PWCID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."OTHPASSWORDCARD" IS '密码卡信息实体';


CREATE TABLE "AICRIS"."PLANCORRECTLOG"
(
"PLANLOGID" VARCHAR2(50) NOT NULL,
"RANINSPLANID" VARCHAR2(14),
"RANINSPLANNAME" VARCHAR2(200),
"REMARK" VARCHAR2(2000),
"PLANTYPE" CHAR(1),
"USERID" VARCHAR2(36),
"DEPARTMENTID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"VERIFYSTATE" CHAR(1),
"AUDITOR" VARCHAR2(36),
"APPROVER" VARCHAR2(36),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"DSTATE" CHAR(1),
"CORRECTTYPE" CHAR(1),
CLUSTER PRIMARY KEY("PLANLOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."PLANCORRECTLOG" IS '计划勘误历史记录表';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."APPROVER" IS '勘误审批人id';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."AUDITOR" IS '勘误审核人id';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."CORRECTTYPE" IS '计划勘误类型 1为删除计划，2为修改计划';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."DEPARTMENTID" IS '经办人单位id';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."DEPNAME" IS '经办人单位名称';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."DSTATE" IS '删除状态（备用）';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."PLANLOGID" IS '记录表id';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."PLANTYPE" IS '计划类型 1  内部计划  2 联合计划';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."RANINSPLANID" IS '抽查计划编号';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."RANINSPLANNAME" IS '抽查计划名称';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."REMARK" IS '备注';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."UPDATETIME" IS '修改时间';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."USERID" IS '勘误经办人id';
COMMENT ON COLUMN "AICRIS"."PLANCORRECTLOG"."VERIFYSTATE" IS '审核状态 1：待审核，2：待审批，3：审批通过';


CREATE TABLE "AICRIS"."PLANTASKCORRECTVERIFY"
(
"ID" VARCHAR2(36) NOT NULL,
"TARGEID" VARCHAR2(36),
"LAYER" CHAR(1),
"DSTATE" CHAR(1),
"CREATTIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"REMARK" VARCHAR2(1000),
"CHECKPEOPLE" VARCHAR2(50),
"VERIFYTYPE" CHAR(1),
"LOGID" VARCHAR2(50),
"CORRECTTYPE" CHAR(2),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."PLANTASKCORRECTVERIFY" IS '计划、任务勘误审核审批表';
COMMENT ON COLUMN "AICRIS"."PLANTASKCORRECTVERIFY"."CHECKPEOPLE" IS '审核审批人';
COMMENT ON COLUMN "AICRIS"."PLANTASKCORRECTVERIFY"."CORRECTTYPE" IS '勘误类型，1为删除，2为勘误';
COMMENT ON COLUMN "AICRIS"."PLANTASKCORRECTVERIFY"."CREATTIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."PLANTASKCORRECTVERIFY"."DSTATE" IS '审核状态 0：未审核，1：审核通过，2：未通过';
COMMENT ON COLUMN "AICRIS"."PLANTASKCORRECTVERIFY"."ID" IS '审核审批表id';
COMMENT ON COLUMN "AICRIS"."PLANTASKCORRECTVERIFY"."LAYER" IS '等级 1：经办人，2：审核人，3：审批人';
COMMENT ON COLUMN "AICRIS"."PLANTASKCORRECTVERIFY"."LOGID" IS '（计划或任务）勘误记录日志id';
COMMENT ON COLUMN "AICRIS"."PLANTASKCORRECTVERIFY"."REMARK" IS '审核审批意见';
COMMENT ON COLUMN "AICRIS"."PLANTASKCORRECTVERIFY"."TARGEID" IS '计划编号或者任务编号';
COMMENT ON COLUMN "AICRIS"."PLANTASKCORRECTVERIFY"."UPDATETIME" IS '更新时间';
COMMENT ON COLUMN "AICRIS"."PLANTASKCORRECTVERIFY"."VERIFYTYPE" IS '审核审批类型，分为计划、任务。1.计划，2.任务';


CREATE TABLE "AICRIS"."PUBLISHINFO"
(
"PUBID" VARCHAR2(36) NOT NULL,
"PUBUSER" VARCHAR2(18),
"PUBTITLE" VARCHAR2(500),
"PUBCONTENT" VARCHAR2(8000),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"PRIMARYKEY" VARCHAR2(36),
"LOCDISTRICT" VARCHAR2(18),
CONSTRAINT "PUBLISHINFO_PK" NOT CLUSTER PRIMARY KEY("PUBID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."PUBLISHINFO" IS '发布信息表';


CREATE TABLE "AICRIS"."RANINSASSOCIATIONOBJ"
(
"OBJID" VARCHAR2(36) NOT NULL,
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(15),
"REGORG" VARCHAR2(50),
"LEREP" VARCHAR2(20),
"ESTDATE" TIMESTAMP(0),
"DOM" VARCHAR2(100),
"DSTATE" CHAR(1),
"REMARK" VARCHAR2(2000),
"ENTNAME" VARCHAR2(200),
"LIANAME" VARCHAR2(200),
"FIXEDTEL" VARCHAR2(30),
"LEREPTEL" VARCHAR2(30),
CONSTRAINT "PK_RANINSASSOCIATIONOBJ" NOT CLUSTER PRIMARY KEY("OBJID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSASSOCIATIONOBJ" IS '检查对象（社团）';


CREATE TABLE "AICRIS"."RANINSCELLNUM"
(
"ID" VARCHAR2(50),
"DEPTYPE" VARCHAR2(100),
"CELLNUM" VARCHAR2(10),
"DSTATE" VARCHAR2(1),
"ORGUNITID" VARCHAR2(50),
"UPDATETIME" TIMESTAMP(0),
"CREATETIME" TIMESTAMP(0)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSCROPOB"
(
"ENTNO" VARCHAR2(36),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"ENTNAME" VARCHAR2(200),
"ENTTYPE" VARCHAR2(4),
"REGORG" VARCHAR2(30),
"LEREP" VARCHAR2(200),
"DOM" VARCHAR2(800),
"OPSTATE" VARCHAR2(1),
"ESTDATE" TIMESTAMP(0),
"OPSCOANDFORM" CLOB,
"AICID" VARCHAR2(10),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"REMARK" VARCHAR2(1000),
"ISNORMAL" CHAR(1),
"RCOUNT" NUMBER(22,0),
"LIANAME" VARCHAR2(200),
"FIXEDTEL" VARCHAR2(30),
"LEREPTEL" VARCHAR2(30),
"BUSINESSMODE" VARCHAR2(100),
"SUPERVISEDEPTID" VARCHAR2(36),
"SUBENTITYTYPE" VARCHAR2(4),
"INDUSTRYCODE" VARCHAR2(4),
"INDUSTRYTYPE" CHAR(4),
"REGCAP" NUMBER(16,6),
"REGCAPITALCOIN" CHAR(3),
"REGCAPITALDOLLOR" NUMBER(16,6),
"REGCAPITAL" NUMBER(16,4),
"DSTATE" CHAR(1),
"ISABNORMAL" VARCHAR2(2),
"REGISTTIME" TIMESTAMP(0),
"TAGNAME" VARCHAR2(100),
"RISKLEVEL" VARCHAR2(100),
"CONTEXT_NAME" VARCHAR2(200),
"WHITELIST" VARCHAR(100)) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICRIS"."IDX_REGNO" ON "AICRIS"."RANINSCROPOB"("REGNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."RANINSCROPOB_UPDATETIME_IDX" ON "AICRIS"."RANINSCROPOB"("UPDATETIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."RANINSCROPOB_ENTTYPE_IDX" ON "AICRIS"."RANINSCROPOB"("ENTTYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."RANINSCROPOB_WHITELIST_IDX" ON "AICRIS"."RANINSCROPOB"("WHITELIST" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."IDX_UNISCID" ON "AICRIS"."RANINSCROPOB"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."RANINSCROPOB_ENTNAME_IDX" ON "AICRIS"."RANINSCROPOB"("ENTNAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."RANINSCROPOB_CREATETIME_IDX" ON "AICRIS"."RANINSCROPOB"("CREATETIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."IDX_ENTNO" ON "AICRIS"."RANINSCROPOB"("ENTNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSCROPOBBACK"
(
"ENTNO" VARCHAR2(36),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"ENTNAME" VARCHAR2(200),
"ENTTYPE" VARCHAR2(4),
"REGORG" VARCHAR2(30),
"LEREP" VARCHAR2(200),
"DOM" VARCHAR2(800),
"OPSTATE" VARCHAR2(1),
"ESTDATE" TIMESTAMP(0),
"OPSCOANDFORM" CLOB,
"AICID" VARCHAR2(10),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"REMARK" VARCHAR2(1000),
"ISNORMAL" CHAR(1),
"RCOUNT" NUMBER(22,0),
"LIANAME" VARCHAR2(200),
"FIXEDTEL" VARCHAR2(30),
"LEREPTEL" VARCHAR2(30),
"BUSINESSMODE" VARCHAR2(100),
"SUPERVISEDEPTID" VARCHAR2(36),
"SUBENTITYTYPE" VARCHAR2(4),
"INDUSTRYCODE" VARCHAR2(4),
"INDUSTRYTYPE" CHAR(4),
"REGCAP" NUMBER(16,6),
"REGCAPITALCOIN" CHAR(3),
"REGCAPITALDOLLOR" NUMBER(16,6),
"REGCAPITAL" NUMBER(16,4),
"DSTATE" CHAR(1),
"ISABNORMAL" VARCHAR2(2),
"REGISTTIME" TIMESTAMP(0),
"TAGNAME" VARCHAR2(100),
"RISKLEVEL" VARCHAR2(100),
"CONTEXT_NAME" VARCHAR2(200)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSENTERPRISEDSTATE"
(
"ID" VARCHAR2(36) NOT NULL,
"RANINSTASKID" VARCHAR2(18),
"REPID" VARCHAR2(36),
"PRIMARYKEY" VARCHAR2(36),
"STATUS" CHAR(1),
"DSTATE" CHAR(1),
"CHECKTIME" TIMESTAMP(0),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"ENTNAME" VARCHAR2(200),
"REGNO" VARCHAR2(50),
"UNISCID" VARCHAR2(18),
"REPTYPE" CHAR(1),
"LOCDISTRICT" VARCHAR2(6),
"CHECKTYPE" VARCHAR2(10),
"CROPOBSTATE" VARCHAR2(10),
"SUPDEPTID" VARCHAR2(10),
"VERIFYSTATE" CHAR(1),
"REMARK" VARCHAR2(2000),
"ENTTYPE" VARCHAR2(10),
"ISPRINT" VARCHAR2(100),
"APPROVER" VARCHAR2(36),
"REGIONID" VARCHAR2(100),
"ISUPLOADED" NUMBER(38,0) DEFAULT 0,
"COORGANIZER" VARCHAR2(100),
"ISAPPROVED" VARCHAR2(1) DEFAULT 0,
"ISSYNC" VARCHAR2(1),
"DATASOURCE" VARCHAR(10),
"LOCDISTRICTCN" VARCHAR2(50),
"PRIPID" VARCHAR(50),
"ENTSUBMIT" VARCHAR(2),
"ENTSUBMITTIME" TIMESTAMP(6),
"REVOKEREASON" VARCHAR(1000),
CONSTRAINT "PK_RANINSENTERPRISEDSTATE" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."APPROVER" IS '本部门检查结果审批人';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."CHECKTIME" IS '检查完成时间';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."CHECKTYPE" IS '检查方式  1.书面检查 2.实地核查 3.网络监测 4.委托专业机构开展检查';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."COORGANIZER" IS '协办人员';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."CROPOBSTATE" IS '企业状态  1.正常开业 2.已迁出辖区范围 3.已注销 4.已吊销';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."DSTATE" IS '删除标识0 新增 1 修改 2 删除';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."ENTSUBMIT" IS '企业提交状态（0表示未提交，1表示已提交，-1退回）';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."ENTSUBMITTIME" IS '企业最后提交时间';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."ENTTYPE" IS '企业类型';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."ID" IS '主键';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."ISAPPROVED" IS '检查对象审批状态0、未审批 1、已审批';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."ISPRINT" IS '是否打印0、未打印 1、已打印';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."ISSYNC" IS '是否同步至信用风险（空为未同步，0为待同步，1为已同步）';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."ISUPLOADED" IS '上传省局标识0、未上传 1、已上传';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."LOCDISTRICT" IS '行政区划';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."PRIMARYKEY" IS '抽取人用户主键';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."RANINSTASKID" IS '抽查任务编号';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."REGIONID" IS '创建任务的机关单位编码';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."REMARK" IS '企业备注';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."REPID" IS '法人主键id';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."REPTYPE" IS '主体类型';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."REVOKEREASON" IS '退回原因';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."STATUS" IS '是否完成检查 0 未完成 1  已完成';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."SUPDEPTID" IS '属地管理机关';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."UPDATETIME" IS '更新时间';
COMMENT ON COLUMN "AICRIS"."RANINSENTERPRISEDSTATE"."VERIFYSTATE" IS '审核状态0 、待录入 1、待审核 2、审核完成';

CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSENTERPRISEDSTATE_LOCDISTRICT" ON "AICRIS"."RANINSENTERPRISEDSTATE"("LOCDISTRICT" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSENTERPRISEDSTATE_RANINSTASKID" ON "AICRIS"."RANINSENTERPRISEDSTATE"("RANINSTASKID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSENTERPRISEDSTATE_REPID" ON "AICRIS"."RANINSENTERPRISEDSTATE"("REPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."RANINSENTERPRISEDSTATE_PRIMARYKEY_IDX" ON "AICRIS"."RANINSENTERPRISEDSTATE"("PRIMARYKEY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSENTERPRISEDSTATE_ISSYNC" ON "AICRIS"."RANINSENTERPRISEDSTATE"("ISSYNC" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSEXCEPTIONSLOG"
(
"ID" VARCHAR2(36) NOT NULL,
"RANINSTASKID" VARCHAR2(18),
"REPID" VARCHAR2(36),
"PRIMARYKEY" VARCHAR2(40),
"NAME" VARCHAR2(36),
"STATUS" VARCHAR2(10),
"MSG" VARCHAR2(1000),
"POSTBODY" CLOB,
"CREATETIME" TIMESTAMP(0),
"RESULTID" VARCHAR2(50),
"OPER" VARCHAR(10),
"RANINSCHECKRES" VARCHAR(10),
CONSTRAINT "PK_RANINSEXCEPTIONSLOG" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSEXCEPTIONSLOG" IS '经营异常日志表';
COMMENT ON COLUMN "AICRIS"."RANINSEXCEPTIONSLOG"."OPER" IS '推送类型。save:生成线索，delete:作废，update:修改附件';
COMMENT ON COLUMN "AICRIS"."RANINSEXCEPTIONSLOG"."RANINSCHECKRES" IS '推送的经营异常的检查结果';
COMMENT ON COLUMN "AICRIS"."RANINSEXCEPTIONSLOG"."RESULTID" IS '检查结果id';


CREATE TABLE "AICRIS"."RANINSEXCEPTIONSROLLBACK"
(
"ID" VARCHAR2(36) NOT NULL,
"RESULTID" VARCHAR2(50),
"RANINSTASKID" VARCHAR2(50),
"REPID" VARCHAR2(50),
"INCLUDETYPE" CHAR(10),
"RANINSITEM" VARCHAR2(50),
"CREATETIME" TIMESTAMP(6),
"REASON" VARCHAR2(200),
"RANINSENTERPRISEDSTATEID" VARCHAR2(50),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSEXCEPTIONSROLLBACK" IS '经营异常名录线索回退表';
COMMENT ON COLUMN "AICRIS"."RANINSEXCEPTIONSROLLBACK"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."RANINSEXCEPTIONSROLLBACK"."ID" IS 'id';
COMMENT ON COLUMN "AICRIS"."RANINSEXCEPTIONSROLLBACK"."INCLUDETYPE" IS '列异类型';
COMMENT ON COLUMN "AICRIS"."RANINSEXCEPTIONSROLLBACK"."RANINSENTERPRISEDSTATEID" IS '检查对象id';
COMMENT ON COLUMN "AICRIS"."RANINSEXCEPTIONSROLLBACK"."RANINSITEM" IS '抽查事项';
COMMENT ON COLUMN "AICRIS"."RANINSEXCEPTIONSROLLBACK"."RANINSTASKID" IS '任务ID';
COMMENT ON COLUMN "AICRIS"."RANINSEXCEPTIONSROLLBACK"."REASON" IS '回退原因';
COMMENT ON COLUMN "AICRIS"."RANINSEXCEPTIONSROLLBACK"."REPID" IS '企业ID';
COMMENT ON COLUMN "AICRIS"."RANINSEXCEPTIONSROLLBACK"."RESULTID" IS '检查结果id';


CREATE TABLE "AICRIS"."RANINSGROUP"
(
"GROUPID" VARCHAR2(36) NOT NULL,
"RANINSTASKID" VARCHAR2(18),
"CREATETIME" TIMESTAMP(6),
"UPDATETIME" TIMESTAMP(6),
"DSTATE" VARCHAR2(1),
"LOCDISTRICT" VARCHAR2(10),
"GROUPNAME" VARCHAR2(100),
"USERID" VARCHAR(50)) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSGROUP" IS '检查人员分组表';


CREATE TABLE "AICRIS"."RANINSGROUPINSP"
(
"GMID" VARCHAR2(36) NOT NULL,
"GROUPID" VARCHAR2(36),
"ID" VARCHAR2(36),
"CREATETIME" TIMESTAMP(6),
"UPDATETIME" TIMESTAMP(6),
"DSTATE" VARCHAR2(1),
"LOCDISTRICT" VARCHAR2(10),
"ISLEAD" CHAR(1)) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSGROUPINSP" IS '组与检查人员关系表';


CREATE TABLE "AICRIS"."RANINSINSPECTORS"
(
"ID" VARCHAR2(36) NOT NULL,
"NAME" VARCHAR2(50),
"SEX" VARCHAR2(1),
"MOBTEL" VARCHAR2(30),
"LAWOFFICE" VARCHAR2(100),
"LAWDEP" VARCHAR2(100),
"LAWPOSITION" VARCHAR2(50),
"LAWCERNO" VARCHAR2(100),
"LAWISSAUTH" VARCHAR2(100),
"LAWEXPERT" VARCHAR2(100),
"USERID" VARCHAR2(36),
"DEPID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"DSTATE" VARCHAR2(1),
"ORGUNITID" VARCHAR2(36),
"ORGUNITTYPE" VARCHAR2(16),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"LOCDISTRICT" VARCHAR2(20),
"EMAIL" VARCHAR2(30),
"LANDLINE" VARCHAR2(15),
"ADDRESS" VARCHAR2(60),
"JOBNUM" VARCHAR2(20),
"BIRTHDAY" VARCHAR2(30),
"JOBNATURE" VARCHAR2(50),
"REGIONID" VARCHAR2(10),
"LAWDEPID" VARCHAR2(36),
"SUSERID" VARCHAR2(200),
"DEPARTMENTID" VARCHAR2(100),
"CIVILSERVANT" VARCHAR2(2),
"USERCARDID" VARCHAR2(36),
"ISEEXPERT" VARCHAR2(1),
"INSTYPE" VARCHAR2(1),
CONSTRAINT "PK_RANINSINSPECTORS" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSINSPECTORS" IS '执法人员表';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."ADDRESS" IS '地址';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."BIRTHDAY" IS '生日';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."CIVILSERVANT" IS '公务员 0是 1否';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."DEPARTMENTID" IS '部门ID';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."DEPID" IS '录入人员部门id';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."DEPNAME" IS '录入人员部门名称';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."DSTATE" IS '删除标志 0 正常 1 修改 2 删除';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."EMAIL" IS '电子邮件';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."ID" IS '身份唯一标识';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."JOBNATURE" IS '工作性质';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."JOBNUM" IS '工号';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."LANDLINE" IS '固话';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."LAWCERNO" IS '执法证号';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."LAWDEP" IS '所在部门';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."LAWDEPID" IS 'lawDep的id';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."LAWEXPERT" IS '业务专长';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."LAWISSAUTH" IS '发证机关';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."LAWOFFICE" IS '检查人员部门名称';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."LAWPOSITION" IS '职务';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."LOCDISTRICT" IS '区域代码';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."MOBTEL" IS '手机号码';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."NAME" IS '姓名';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."ORGUNITID" IS '检查人员部门id';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."ORGUNITTYPE" IS '部门类型';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."REGIONID" IS '机构代码';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."SEX" IS '性别';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."SUSERID" IS '金信库用户ID';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."UPDATETIME" IS '更新时间';
COMMENT ON COLUMN "AICRIS"."RANINSINSPECTORS"."USERID" IS '录入人员id';


CREATE TABLE "AICRIS"."RANINSITEM"
(
"RANINSITEM" VARCHAR2(14) NOT NULL,
"RANINSITEMNAME" VARCHAR2(2000),
"RANINSBASIS" VARCHAR2(4000),
"RANINSCONT" VARCHAR2(4000),
"REMARK" VARCHAR2(1000),
"USERID" VARCHAR2(36),
"DEPID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"DSTATE" CHAR(1),
"RANINSOBJTYPE" VARCHAR2(500),
"INSCHECKTYPE" VARCHAR2(500),
"DEPTYPE" VARCHAR2(20),
"REGIONID" VARCHAR2(100),
"ITEMOBJPROP" VARCHAR2(500),
"ITEMCOUNT" VARCHAR2(500),
"ITEMOBJ" VARCHAR2(500),
"ITEMENTER" VARCHAR2(500),
"ITEMMODE" VARCHAR2(500),
"ITEMCATEGORY" VARCHAR2(255),
"CHECKCATEGORY" VARCHAR2(255),
CONSTRAINT "PK_RANINSITEM" NOT CLUSTER PRIMARY KEY("RANINSITEM")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."RANINSITEM"."CHECKCATEGORY" IS '抽查类别';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."DEPID" IS '创建用户部门';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."DEPNAME" IS '创建部门名称';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."DEPTYPE" IS '部门类型';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."DSTATE" IS '删除标志 0 正常 1 修改 2 删除';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."INSCHECKTYPE" IS '抽查方式类型有：1、实地核查 2、 书式检查 3、网络监测 4、专用联系信函抽查';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."ITEMCATEGORY" IS '事项类别';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."ITEMCOUNT" IS '抽查频次';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."ITEMENTER" IS '抽查主体';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."ITEMMODE" IS '抽查方式';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."ITEMOBJ" IS '抽查对象';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."ITEMOBJPROP" IS '抽查比例';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."RANINSBASIS" IS '检查事项依据';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."RANINSCONT" IS '检查内容';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."RANINSITEM" IS '抽查事项编号';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."RANINSITEMNAME" IS '抽查事项名称';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."RANINSOBJTYPE" IS '抽查主体类型';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."REGIONID" IS '机构代码';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."REMARK" IS '事项备注';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."UPDATETIME" IS '更新时间';
COMMENT ON COLUMN "AICRIS"."RANINSITEM"."USERID" IS '创建用户id';

CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSITEM_DEPTYPE" ON "AICRIS"."RANINSITEM"("DEPTYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSITEMCROSS"
(
"RANINSITEM" VARCHAR2(14) NOT NULL,
"RANINSITEMNAME" VARCHAR2(2000),
"RANINSBASIS" VARCHAR2(4000),
"RANINSCONT" VARCHAR2(4000),
"REMARK" VARCHAR2(1000),
"USERID" VARCHAR2(36),
"DEPID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"DSTATE" CHAR(1),
"RANINSOBJTYPE" VARCHAR2(500),
"INSCHECKTYPE" VARCHAR2(500),
"DEPTYPE" VARCHAR2(20),
"REGIONID" VARCHAR2(100),
"ITEMOBJPROP" VARCHAR2(500),
"ITEMCOUNT" VARCHAR2(500),
"ITEMOBJ" VARCHAR2(500),
"ITEMENTER" VARCHAR2(500),
"ITEMMODE" VARCHAR2(500),
"ITEMCATEGORY" VARCHAR2(255),
"CHECKCATEGORY" VARCHAR2(255),
CLUSTER PRIMARY KEY("RANINSITEM")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."CHECKCATEGORY" IS '抽查类别';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."DEPID" IS '创建用户部门';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."DEPNAME" IS '创建部门名称';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."DEPTYPE" IS '部门类型';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."DSTATE" IS '删除标志 0 正常 1 修改 2 删除';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."INSCHECKTYPE" IS '抽查方式类型有：1、实地核查 2、 书式检查 3、网络监测 4、专用联系信函抽查';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."ITEMCATEGORY" IS '事项类别';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."ITEMCOUNT" IS '抽查频次';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."ITEMENTER" IS '抽查主体';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."ITEMMODE" IS '抽查方式';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."ITEMOBJ" IS '抽查对象';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."ITEMOBJPROP" IS '抽查比例';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."RANINSBASIS" IS '检查事项依据';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."RANINSCONT" IS '检查内容';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."RANINSITEM" IS '抽查事项编号';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."RANINSITEMNAME" IS '抽查事项名称';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."RANINSOBJTYPE" IS '抽查主体类型';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."REGIONID" IS '机构代码';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."REMARK" IS '事项备注';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."UPDATETIME" IS '更新时间';
COMMENT ON COLUMN "AICRIS"."RANINSITEMCROSS"."USERID" IS '创建用户id';


CREATE TABLE "AICRIS"."RANINSITEMSELFCHECK"
(
"ID" VARCHAR2(32) NOT NULL,
"FORMNAME" VARCHAR2(64),
"FORMMODEL" VARCHAR2(64),
"ISVALID" VARCHAR2(1) NOT NULL,
"CREATEDBY" VARCHAR(36),
"CREATEDTIME" TIMESTAMP(6),
"UPDATEDBY" VARCHAR(36),
"UPDATEDTIME" TIMESTAMP(6),
"ITEMID" VARCHAR(32),
"ORGNUMBER" VARCHAR(32),
"DISTRICT" VARCHAR(32),
"FORMCODE" VARCHAR(64),
"ITEMIDS" VARCHAR(100),
"REMARK" VARCHAR(100),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSITEMSELFCHECK" IS '双随机检查事项自查内容表';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."CREATEDBY" IS '创建人';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."CREATEDTIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."DISTRICT" IS '添加用户的所属区局/市局';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."FORMCODE" IS '自查报告表格代码';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."FORMMODEL" IS '自查报告表格模版';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."FORMNAME" IS '自查报告表格名称';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."ID" IS '数据主键';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."ISVALID" IS '是否有效（0否1是）';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."ITEMID" IS '关联的抽查事项';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."ITEMIDS" IS '当前表格关联所有检查事项';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."ORGNUMBER" IS '部门机关编码';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."REMARK" IS '备注';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."UPDATEDBY" IS '更新人';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECK"."UPDATEDTIME" IS '更新时间';

CREATE OR REPLACE  INDEX "AICRIS"."RANINSITEMSELFCHECK_ISVALID_IDX" ON "AICRIS"."RANINSITEMSELFCHECK"("ISVALID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."RANINSITEMSELFCHECK_ORGNUMBER_IDX" ON "AICRIS"."RANINSITEMSELFCHECK"("FORMNAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSITEMSELFCHECKREF"
(
"RID" VARCHAR2(32) NOT NULL,
"CID" VARCHAR2(32) NOT NULL,
"ITEMID" VARCHAR2(32) NOT NULL,
CLUSTER PRIMARY KEY("RID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSITEMSELFCHECKREF" IS '双随机抽查事项自查内容关系表';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECKREF"."CID" IS '自查内容数据ID';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECKREF"."ITEMID" IS '事项ID';
COMMENT ON COLUMN "AICRIS"."RANINSITEMSELFCHECKREF"."RID" IS '关系id';

CREATE OR REPLACE  INDEX "AICRIS"."RANINSITEMSELFCHECKREF_ITEMID_IDX" ON "AICRIS"."RANINSITEMSELFCHECKREF"("ITEMID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."RANINSITEMSELFCHECKREF_CID_IDX" ON "AICRIS"."RANINSITEMSELFCHECKREF"("CID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSLOCEXTCOUNT"
(
"ID" VARCHAR2(36) NOT NULL,
"RANINSTASKID" VARCHAR2(36),
"ORGUNITID" VARCHAR2(36),
"ORGUNITNAME" VARCHAR2(200),
"LOCDISTRICT" VARCHAR2(6),
"CREATETIME" TIMESTAMP(0),
"DSTATE" CHAR(1),
"COUNT" NUMBER(38,0),
"RECORDTYPE" CHAR(1),
"ORGNUMBER" VARCHAR2(10),
CONSTRAINT "SYS_C0049414" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSLOCEXTCOUNT" IS '记录各所抽取数据表';


CREATE TABLE "AICRIS"."RANINSOBJGROUP"
(
"OGID" VARCHAR2(36) NOT NULL,
"REPID" VARCHAR2(36),
"REPTYPE" VARCHAR2(24),
"GROUPID" VARCHAR2(36),
"CREATETIME" TIMESTAMP(6),
"UPDATETIME" TIMESTAMP(6),
"DSTATE" VARCHAR2(1),
"RANINSTASKID" VARCHAR2(22)) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSOBJGROUP" IS '任务中检查对象所在组';


CREATE TABLE "AICRIS"."RANINSOBJINSP"
(
"ID" VARCHAR2(36) NOT NULL,
"USERID" VARCHAR2(36),
"RANINSTASKID" VARCHAR2(18),
"ENTNO" VARCHAR2(36),
"ENTNAME" VARCHAR2(200),
"REPID" VARCHAR2(36),
"USERCARDID" VARCHAR2(36),
"REPTYPE" CHAR(1),
"LOCDISTRICT" VARCHAR2(12),
"ORGNUMBER" VARCHAR2(10),
"CREATETIME" TIMESTAMP(0),
"ASSIGNSTATE" VARCHAR2(10),
"EXAMINE" CHAR(10),
CONSTRAINT "PK_RANINSOBJINSP" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSOBJINSP" IS '任务各企业对应检查人员';
COMMENT ON COLUMN "AICRIS"."RANINSOBJINSP"."EXAMINE" IS '分组检查时，用于区分两个检查人员谁是检查人员A谁是B。0代表检查人员A，1代表检查人员B';

CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSOBJINSP_RANINSTASKID" ON "AICRIS"."RANINSOBJINSP"("RANINSTASKID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSOBJINSP_USERCARDID" ON "AICRIS"."RANINSOBJINSP"("USERCARDID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSOBJINSP_USERID" ON "AICRIS"."RANINSOBJINSP"("USERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSOBJLOG"
(
"ENTMATCHID" VARCHAR2(36) NOT NULL,
"PRIMARYKEY" VARCHAR2(36),
"RANINSTASKID" VARCHAR2(18),
"REPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(200),
"REGNO" VARCHAR2(50),
"UNISCID" VARCHAR2(18),
"ENTITYNO" VARCHAR2(36),
"AICID" VARCHAR2(10),
"REPTYPE" CHAR(1),
"DEPID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"DSTATE" CHAR(1),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"ISEXCEL" CHAR(1),
"LOCDISTRICT" VARCHAR2(12),
"SUPERVISEDEPTID" VARCHAR2(36),
"ENTTYPE" VARCHAR2(10),
"COMMUNITYID" VARCHAR2(36),
"HEADNAME" VARCHAR2(100),
"RELATIONNAME" VARCHAR2(200),
CONSTRAINT "PK_RANINSOBJLOG" NOT CLUSTER PRIMARY KEY("ENTMATCHID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSOBJLOG" IS '抽取检查市场主体匹配过程表';

CREATE OR REPLACE  INDEX "AICRIS"."RANINSOBJLOG_COMMUNITYID_IDX" ON "AICRIS"."RANINSOBJLOG"("COMMUNITYID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSTASKID_PRIMARYKEY" ON "AICRIS"."RANINSOBJLOG"("RANINSTASKID" ASC,"PRIMARYKEY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."RANINSOBJLOG_DSTATE_IDX" ON "AICRIS"."RANINSOBJLOG"("DSTATE" ASC,"RANINSTASKID" ASC,"PRIMARYKEY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSOBJLOGTEMP"
(
"ENTMATCHID" VARCHAR2(36) NOT NULL,
"PRIMARYKEY" VARCHAR2(36),
"RANINSTASKID" VARCHAR2(18),
"REPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(200),
"REGNO" VARCHAR2(50),
"UNISCID" VARCHAR2(18),
"ENTITYNO" VARCHAR2(36),
"AICID" VARCHAR2(10),
"REPTYPE" CHAR(1),
"DEPID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"DSTATE" CHAR(1),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"ISEXCEL" CHAR(1),
"LOCDISTRICT" VARCHAR2(12),
"SUPERVISEDEPTID" VARCHAR2(36),
"ENTTYPE" VARCHAR2(10),
CONSTRAINT "PK_RANINSOBJLOGTEMP" NOT CLUSTER PRIMARY KEY("ENTMATCHID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSOBJNUMBER"
(
"ID" VARCHAR2(36) NOT NULL,
"RANINSTASKID" VARCHAR2(18),
"COUNT" VARCHAR2(5),
"ORGUNITID" VARCHAR2(50),
"ORGUNITNAME" VARCHAR2(100),
"DEPID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"DSTATE" VARCHAR2(1),
CONSTRAINT "PK_RANINSOBJNUMBER" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSOBJNUMBER" IS '下发给下级部门检查对象数量表';


CREATE TABLE "AICRIS"."RANINSOBJSCOPE"
(
"SCOPEID" VARCHAR2(36) NOT NULL,
"ENTMATCHID" VARCHAR2(36),
"ENTTYPE" CLOB,
"INDUSTRYCODE" CLOB,
"INDUSTRYCODENAME" CLOB,
"ISREPORT" CHAR(1),
"TASKID" VARCHAR2(36),
"REPTYPE" CHAR(1),
"REPID" VARCHAR2(36),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"ENTITYTYPENAME" CLOB,
"ISSUEDEPTNAME" CLOB,
"ISSUEDEPTID" CLOB,
"SUPDEPTNAME" CLOB,
"SUPDEPTID" CLOB,
"INDUSTRYTYPENAME" CLOB,
"INDUSTRYTYPE" CLOB,
"REGCAPMIN" NUMBER(16,4),
"REGCAPMAX" NUMBER(16,4),
"ESTDATEMIN" TIMESTAMP(0),
"ESTDATEMAX" TIMESTAMP(0),
"DSTATE" CHAR(1),
"DEPTYPE" VARCHAR2(100),
"OPSCOANDFORM" CLOB,
"LISENCETYPE" CLOB,
"LOCDISTRICTNAME" CLOB,
"DOM" CLOB,
"LOCDISTRICTID" CLOB,
"BEGINREPORT" TIMESTAMP(0),
"ENDREPORT" TIMESTAMP(0),
"UNYEAR" VARCHAR2(100),
"UNYEARANDDEPTYPE" VARCHAR2(100),
"UNEXCEPTION" VARCHAR2(100),
"COMMUNITYPARENTID" VARCHAR2(100),
"UNABLETOCONTACT" VARCHAR2(1),
"WHITELIST" VARCHAR(100),
CONSTRAINT "PK_RANINSOBJSCOPE" NOT CLUSTER PRIMARY KEY("SCOPEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSOBJSCOPE" IS '抽查范围表 (抽取策略)';


CREATE TABLE "AICRIS"."RANINSORGUNITORGCODE"
(
"ID" VARCHAR2(14) NOT NULL,
"ORGUNITTYPE" VARCHAR2(15),
"ORGCODE" VARCHAR2(15),
CONSTRAINT "RANINSORGUNITORGCODE_PK" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSORGUNITORGCODE" IS '机构类型与机构代码关系表';


CREATE TABLE "AICRIS"."RANINSPLAN"
(
"RANINSPLANID" VARCHAR2(14) NOT NULL,
"RANINSPLANNAME" VARCHAR2(200),
"ENTNUM" NUMBER(38,0),
"REMARK" VARCHAR2(2000),
"DEPARTMENTID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"REGORG" VARCHAR2(10),
"DSTATE" CHAR(1),
"USERID" VARCHAR2(36),
"SUBTIME" TIMESTAMP(0),
"PLANTYPE" CHAR(1),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"ISUPLOADED" NUMBER(38,0) DEFAULT 0,
"COMMUNITYID" VARCHAR2(100),
"DATASOURCE" VARCHAR(10),
"PRIPID" VARCHAR(50),
"ISZHCYCTYPE" VARCHAR(4),
CONSTRAINT "PK_RANINSPLAN" NOT CLUSTER PRIMARY KEY("RANINSPLANID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."COMMUNITYID" IS '唯一交集ID';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."DATASOURCE" IS '数据来源';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."DEPARTMENTID" IS '创建者部门id';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."DEPNAME" IS '创建者部门名称';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."DSTATE" IS '删除标志 0 正常 1 修改 2 删除';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."ENTNUM" IS '市场主体总数';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."ISUPLOADED" IS '上传省局标识0、未上传 1、已上传';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."PLANTYPE" IS '计划类型 1  内部计划  2 联合计划';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."RANINSPLANID" IS '抽查计划编号';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."RANINSPLANNAME" IS '抽查计划名称';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."REGORG" IS '用户区域代码';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."REMARK" IS '备注';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."SUBTIME" IS '计划提交时间';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."UPDATETIME" IS '更新时间';
COMMENT ON COLUMN "AICRIS"."RANINSPLAN"."USERID" IS '创建者用户id';


CREATE TABLE "AICRIS"."RANINSPLANTEMP"
(
"RANINSPLANID" VARCHAR2(14) NOT NULL,
"RANINSPLANNAME" VARCHAR2(200),
"ENTNUM" NUMBER(38,0),
"REMARK" VARCHAR2(2000),
"DEPARTMENTID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"REGORG" VARCHAR2(10),
"DSTATE" CHAR(1),
"USERID" VARCHAR2(36),
"SUBTIME" TIMESTAMP(0),
"PLANTYPE" CHAR(1),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"COVER" CHAR(1),
"COVERTIME" TIMESTAMP(0),
"VERIFYSTATE" CHAR(1),
"ADDDEPID" VARCHAR2(100),
"COMMUNITYID" VARCHAR2(100),
"ISZHCYCTYPE" VARCHAR(4),
CONSTRAINT "PK_RANINSPLANTEMP" NOT CLUSTER PRIMARY KEY("RANINSPLANID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSPLANNAME" ON "AICRIS"."RANINSPLANTEMP"("RANINSPLANNAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSREGIONCOUNT"
(
"ID" VARCHAR2(36) NOT NULL,
"LOCDISTRICT" VARCHAR2(36),
"LOCDISTRICTNAME" VARCHAR2(100),
"ORGUNITTYPE" VARCHAR2(10),
"ENTCOUNT" NUMBER(38,0),
"COMMOBJCOUNT" NUMBER(38,0),
"UNCOMMOBJCOUNT" NUMBER(38,0),
"UPDATETIME" TIMESTAMP(0),
CONSTRAINT "RANINSREGIONCOUNT_PK" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSREGIONCOUNT" IS '主体总数分布统计表';


CREATE TABLE "AICRIS"."RANINSRESULT"
(
"RESULTID" VARCHAR2(36) NOT NULL,
"RANINSPLANID" VARCHAR2(36),
"RANINSITEM" VARCHAR2(14),
"RANINSTASKID" VARCHAR2(18),
"RANINSITEMNAME" VARCHAR2(300),
"REPID" VARCHAR2(36),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(30),
"RANINSCHECKRES" CHAR(1),
"REMARK" VARCHAR2(1000),
"USERCARDID" VARCHAR2(36),
"INSDATE" TIMESTAMP(0),
"DEPID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"REPTYPE" CHAR(2),
"ENTRYID" VARCHAR2(36),
"DEPTYPE" VARCHAR2(16),
"ISUPLOADED" NUMBER(38,0) DEFAULT 0,
"CHECKACTIONSTATE" NUMBER(38,0) DEFAULT 0,
"DATASOURCE" VARCHAR(10),
"TIMESTAMPS" TIMESTAMP(0),
"FINISHTIME" TIMESTAMP(0),
"PRIPID" VARCHAR(50),
CONSTRAINT "PK_RANINSRESULT" NOT CLUSTER PRIMARY KEY("RESULTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."CHECKACTIONSTATE" IS '行为监管对接标识0、未对接 1、已对接';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."DATASOURCE" IS '数据来源';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."DEPID" IS '录入人员部门id';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."DEPNAME" IS '录入人员部门名称';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."DEPTYPE" IS '部门类型';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."ENTRYID" IS '现作为抽取人员的机构id';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."FINISHTIME" IS '检查完成时间';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."INSDATE" IS '检查结果录入时间';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."ISUPLOADED" IS '上传省局标识0、未上传 1、已上传';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."RANINSCHECKRES" IS '检查结果：1 未发现问题 2 未按规定公示应当公示的信息 3 公示信息隐瞒真实情况弄虚作假 4 通过登记的住所（经营场所）无法联系';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."RANINSITEM" IS '抽查事项';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."RANINSITEMNAME" IS '事项名称';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."RANINSPLANID" IS '抽查计划编号';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."RANINSTASKID" IS '抽查任务编号';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."REMARK" IS '备注';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."REPID" IS '法人主键ID';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."REPTYPE" IS '法人类型';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."RESULTID" IS '结果主键id';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."TIMESTAMPS" IS '时间戳';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."UNISCID" IS '社会统一码';
COMMENT ON COLUMN "AICRIS"."RANINSRESULT"."USERCARDID" IS '检查人员唯一标识';

CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSTASKID_DEPID" ON "AICRIS"."RANINSRESULT"("RANINSTASKID" ASC,"DEPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."RANINSCHECKRES_IDX" ON "AICRIS"."RANINSRESULT"("RANINSCHECKRES" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."RANINSRESULT_FINISHTIME_IDX" ON "AICRIS"."RANINSRESULT"("FINISHTIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSRESULT_ENTRYID" ON "AICRIS"."RANINSRESULT"("ENTRYID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."RANINSRESULT_ISUPLOADED_IDX" ON "AICRIS"."RANINSRESULT"("ISUPLOADED" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSTASKID_REPID_DEPID" ON "AICRIS"."RANINSRESULT"("RANINSTASKID" ASC,"REPID" ASC,"DEPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSRESULT_DEPTYPE" ON "AICRIS"."RANINSRESULT"("DEPTYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSTASKID_ENTRYID" ON "AICRIS"."RANINSRESULT"("RANINSTASKID" ASC,"ENTRYID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."RANINSRESULT_UNISCID_IDX" ON "AICRIS"."RANINSRESULT"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSTASKID" ON "AICRIS"."RANINSRESULT"("RANINSTASKID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSRESULT0711"
(
"RESULTID" VARCHAR2(36),
"RANINSPLANID" VARCHAR2(36),
"RANINSITEM" VARCHAR2(14),
"RANINSTASKID" VARCHAR2(18),
"RANINSITEMNAME" VARCHAR2(300),
"REPID" VARCHAR2(36),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(30),
"RANINSCHECKRES" CHAR(1),
"REMARK" VARCHAR2(1000),
"USERCARDID" VARCHAR2(36),
"INSDATE" TIMESTAMP(0),
"DEPID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"REPTYPE" CHAR(2),
"ENTRYID" VARCHAR2(36),
"DEPTYPE" VARCHAR2(16),
"ISUPLOADED" NUMBER(38,0),
"CHECKACTIONSTATE" NUMBER(38,0),
"DATASOURCE" VARCHAR(10)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSRESULT0711LIST"
(
"UNISCID" VARCHAR2(18),
"RANINSITEMNAME" VARCHAR2(300)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSRESULT_BAK"
(
"RESULTID" VARCHAR2(36) NOT NULL,
"RANINSPLANID" VARCHAR2(36),
"RANINSITEM" VARCHAR2(14),
"RANINSTASKID" VARCHAR2(18),
"RANINSITEMNAME" VARCHAR2(300),
"REPID" VARCHAR2(36),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(30),
"RANINSCHECKRES" CHAR(1),
"REMARK" VARCHAR2(1000),
"USERCARDID" VARCHAR2(36),
"INSDATE" TIMESTAMP(0),
"DEPID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"REPTYPE" CHAR(2),
"ENTRYID" VARCHAR2(36),
"DEPTYPE" VARCHAR2(16),
CONSTRAINT "PK_RANINSRESULT_BAK" NOT CLUSTER PRIMARY KEY("RESULTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSRESULTTEMP"
(
"RESULTID" VARCHAR2(36) NOT NULL,
"RANINSPLANID" VARCHAR2(36),
"RANINSITEM" VARCHAR2(14),
"RANINSTASKID" VARCHAR2(18),
"RANINSITEMNAME" VARCHAR2(300),
"REPID" VARCHAR2(36),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(30),
"RANINSCHECKRES" CHAR(1),
"REMARK" VARCHAR2(1000),
"USERCARDID" VARCHAR2(36),
"INSDATE" TIMESTAMP(0),
"DEPID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"REPTYPE" CHAR(2),
"ENTRYID" VARCHAR2(36),
"DEPTYPE" VARCHAR2(16),
CONSTRAINT "PK_RANINSRESULTTEMP" NOT CLUSTER PRIMARY KEY("RESULTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSTASK"
(
"RANINSTASKNAME" VARCHAR2(200),
"RANINSTYPE" CHAR(1),
"RANINSITEM" VARCHAR2(4000),
"RANINSOBJSCOPE" VARCHAR2(8000),
"EXTRACTAUTH" VARCHAR2(100),
"EXTRACTFROM" TIMESTAMP(0),
"EXTRACTTO" TIMESTAMP(0),
"RANINSOBJNUM" NUMBER(38,0),
"RANINSOBJPROP" NUMBER(7,4),
"SLDINSOBJNUM" NUMBER(38,0),
"INSPNUM" NUMBER(38,0),
"INSDATEFROM" TIMESTAMP(0),
"INSDATETO" TIMESTAMP(0),
"INSAUTH" VARCHAR2(1000),
"REMARK" VARCHAR2(1000),
"DSTATE" CHAR(1),
"ADDTASKID" VARCHAR2(36),
"ADDDEPID" VARCHAR2(36),
"ADDDEPNAME" VARCHAR2(80),
"LEADINGDEPID" VARCHAR2(36),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"TASKASSIGNDEPT" VARCHAR2(100),
"VERIFYSTATE" CHAR(1),
"GROUPNUM" VARCHAR2(3),
"DIVISION" VARCHAR2(500),
"EXTRACTAUTHCODE" VARCHAR2(200),
"INSAUTHCODE" VARCHAR2(100),
"THISORGAN" VARCHAR2(10) DEFAULT 0,
"BASETYPE" VARCHAR2(100),
"CHILDBASEPAID" VARCHAR2(100),
"BASETOTAL" VARCHAR2(100),
"PUBLICITYWAY" VARCHAR2(100),
"PUBLICITYTIME" TIMESTAMP(0),
"COMMUNITYID" VARCHAR2(36),
"ISUPLOADED" NUMBER(38,0) DEFAULT 0,
"DEPS" VARCHAR2(1000),
"CDLOGIDS" VARCHAR2(1000),
"OBJNUMHIGH" NUMBER,
"OBJNUMHIGHER" NUMBER,
"OBJNUMIN" NUMBER,
"OBJNUMLOW" NUMBER,
"ISRISKENABLE" VARCHAR2(1),
"DATASOURCE" VARCHAR(10),
"RANINSTASKID" VARCHAR2(18) NOT NULL,
"RANINSPLANID" VARCHAR2(14),
"PRIPID" VARCHAR(50),
"CHETYPE" CHAR(1),
"ISZHCYCTYPE" VARCHAR(4),
CLUSTER PRIMARY KEY("RANINSTASKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSTASK" IS '随机抽查任务表';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."ADDDEPID" IS '创建任务人员部门id';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."ADDDEPNAME" IS '创建该任务的部门名称';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."ADDTASKID" IS '创建任务人员id';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."BASETOTAL" IS '所选择库的主体总数';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."BASETYPE" IS '检查对象库类型（本部门：主体库类型：1为全市公共库；2为商事主体库；3为非商事主体库）（跨部门：1为非商事主体库；2商事主体库）';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."CHETYPE" IS '检查类型';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."CHILDBASEPAID" IS '子库属性表关联子库主体表的外键';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."COMMUNITYID" IS '交集ID';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."DATASOURCE" IS '数据来源';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."DEPS" IS '下发部门ID';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."DIVISION" IS '该任务检查的行政区划';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."DSTATE" IS '删除标志 0 正常 1 修改 2 删除';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."EXTRACTAUTH" IS '抽取机关';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."EXTRACTAUTHCODE" IS '抽取机关代码';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."EXTRACTFROM" IS '抽取时间自';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."EXTRACTTO" IS '抽取时间至';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."GROUPNUM" IS '跨部门中检查小组数';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."INSAUTH" IS '检查机关';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."INSAUTHCODE" IS '检查机关代码';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."INSDATEFROM" IS '检查日期自';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."INSDATETO" IS '检查日期至';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."INSPNUM" IS '检查人员数量';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."ISUPLOADED" IS '上传省局标识0、未上传 1、已上传';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."LEADINGDEPID" IS '牵头部门id';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."PUBLICITYTIME" IS '公告时间';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."PUBLICITYWAY" IS '公告方式:1为检查前公告；2为检查后公告';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."RANINSITEM" IS '抽查事项描述';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."RANINSOBJNUM" IS '抽查数量';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."RANINSOBJPROP" IS '抽查对象比例';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."RANINSOBJSCOPE" IS '抽查范围';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."RANINSTASKNAME" IS '任务名称';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."RANINSTYPE" IS '抽查类型 1 定向 2 不定向';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."REMARK" IS '备注';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."SLDINSOBJNUM" IS '应查对象总数';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."TASKASSIGNDEPT" IS '任务分配处室id';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."THISORGAN" IS '本机关标识1、本机关 默认0';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."UPDATETIME" IS '更新时间';
COMMENT ON COLUMN "AICRIS"."RANINSTASK"."VERIFYSTATE" IS '审核状态 0：新增 1：待审核，2：待审批，3：审批通过';

CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSTASK_ADDDEPID" ON "AICRIS"."RANINSTASK"("ADDDEPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSTASKCOPY"
(
"ID" VARCHAR2(36) NOT NULL,
"RANINSTASKID" VARCHAR2(18),
"RANINSPLANID" VARCHAR2(14),
"RANINSTASKNAME" VARCHAR2(200),
"RANINSTYPE" CHAR(1),
"RANINSITEM" VARCHAR2(4000),
"RANINSOBJSCOPE" VARCHAR2(4000),
"EXTRACTAUTH" VARCHAR2(100),
"EXTRACTFROM" TIMESTAMP(0),
"EXTRACTTO" TIMESTAMP(0),
"RANINSOBJNUM" NUMBER(38,0),
"RANINSOBJPROP" NUMBER(7,4),
"SLDINSOBJNUM" NUMBER(38,0),
"INSPNUM" NUMBER(38,0),
"INSDATEFROM" TIMESTAMP(0),
"INSDATETO" TIMESTAMP(0),
"INSAUTH" VARCHAR2(300),
"REMARK" VARCHAR2(1000),
"DSTATE" CHAR(1),
"ADDTASKID" VARCHAR2(36),
"ADDDEPID" VARCHAR2(36),
"ADDDEPNAME" VARCHAR2(80),
"LEADINGDEPID" VARCHAR2(36),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"TASKASSIGNDEPT" VARCHAR2(100),
"VERIFYSTATE" CHAR(1),
"COVER" CHAR(1),
"COVERTIME" TIMESTAMP(0),
"EXTRACTAUTHCODE" VARCHAR2(200),
"INSAUTHCODE" VARCHAR2(200),
"CDLOGIDS" VARCHAR2(1000),
"OBJNUMHIGH" NUMBER,
"OBJNUMHIGHER" NUMBER,
"OBJNUMIN" NUMBER,
"OBJNUMLOW" NUMBER,
"ISRISKENABLE" VARCHAR2(1),
"CHETYPE" CHAR(1),
"ISZHCYCTYPE" VARCHAR(4),
CONSTRAINT "PK_RANINSTASKCOPY" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSTASKINSP"
(
"ID" VARCHAR2(36) NOT NULL,
"USERID" VARCHAR2(36),
"RANINSTASKID" VARCHAR2(18),
"USERCARDID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"DSTATE" VARCHAR2(1),
"CREATETIME" TIMESTAMP(6),
"LOCDISTRICT" VARCHAR2(12),
"UPDATETIME" TIMESTAMP(6),
"ORGUNITTYPE" VARCHAR2(100),
"ORGNUMBER" VARCHAR2(10),
CONSTRAINT "RANINSTASKINSP_PK" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSTASKINSP" IS '抽查任务检查人员关系表';
COMMENT ON COLUMN "AICRIS"."RANINSTASKINSP"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."RANINSTASKINSP"."DEPNAME" IS '检查人员部门名称';
COMMENT ON COLUMN "AICRIS"."RANINSTASKINSP"."DSTATE" IS '删除标志 0 正常 1 修改 2 删除';
COMMENT ON COLUMN "AICRIS"."RANINSTASKINSP"."ID" IS '主键id';
COMMENT ON COLUMN "AICRIS"."RANINSTASKINSP"."LOCDISTRICT" IS '6位区域代码';
COMMENT ON COLUMN "AICRIS"."RANINSTASKINSP"."ORGNUMBER" IS '机构代码';
COMMENT ON COLUMN "AICRIS"."RANINSTASKINSP"."ORGUNITTYPE" IS '部门类型';
COMMENT ON COLUMN "AICRIS"."RANINSTASKINSP"."RANINSTASKID" IS '抽查任务编号';
COMMENT ON COLUMN "AICRIS"."RANINSTASKINSP"."UPDATETIME" IS '更新时间';
COMMENT ON COLUMN "AICRIS"."RANINSTASKINSP"."USERCARDID" IS '检查人员唯一标识';
COMMENT ON COLUMN "AICRIS"."RANINSTASKINSP"."USERID" IS '导入人的用户id';


CREATE TABLE "AICRIS"."RANINSTASKITEM"
(
"ID" VARCHAR2(36) NOT NULL,
"RANINSITEM" VARCHAR2(14),
"RANINSTASKID" VARCHAR2(18),
"RANINSITEMNAME" VARCHAR2(300),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"DSTATE" CHAR(1),
"DEPTYPE" VARCHAR2(100),
CONSTRAINT "PK_RANINSTASKITEM" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSTASKITEM" IS '抽查事项表';

CREATE OR REPLACE  INDEX "AICRIS"."INDEX_DSTATE" ON "AICRIS"."RANINSTASKITEM"("DSTATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSTASKTEMP"
(
"RANINSTASKID" VARCHAR2(18) NOT NULL,
"RANINSPLANID" VARCHAR2(14),
"RANINSTASKNAME" VARCHAR2(200),
"RANINSTYPE" CHAR(1),
"RANINSITEM" VARCHAR2(4000),
"RANINSOBJSCOPE" VARCHAR2(8000),
"EXTRACTAUTH" VARCHAR2(100),
"EXTRACTFROM" TIMESTAMP(0),
"EXTRACTTO" TIMESTAMP(0),
"RANINSOBJNUM" NUMBER(38,0),
"RANINSOBJPROP" NUMBER(7,4),
"SLDINSOBJNUM" NUMBER(38,0),
"INSPNUM" NUMBER(38,0),
"INSDATEFROM" TIMESTAMP(0),
"INSDATETO" TIMESTAMP(0),
"INSAUTH" VARCHAR2(300),
"REMARK" VARCHAR2(1000),
"DSTATE" CHAR(1),
"ADDTASKID" VARCHAR2(36),
"ADDDEPID" VARCHAR2(36),
"ADDDEPNAME" VARCHAR2(80),
"LEADINGDEPID" VARCHAR2(36),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"TASKASSIGNDEPT" VARCHAR2(100),
"VERIFYSTATE" CHAR(1),
"COVER" CHAR(1) DEFAULT '0',
"COVERTIME" TIMESTAMP(0),
"EXTRACTAUTHCODE" VARCHAR2(200),
"INSAUTHCODE" VARCHAR2(200),
"BASETYPE" VARCHAR2(100),
"CHILDBASEPAID" VARCHAR2(100),
"AUDITOR" VARCHAR2(36),
"APPROVER" VARCHAR2(36),
"BASETOTAL" VARCHAR2(100),
"COMMUNITYID" VARCHAR2(36),
"CDLOGIDS" VARCHAR2(1000),
"OBJNUMHIGH" NUMBER,
"OBJNUMHIGHER" NUMBER,
"OBJNUMIN" NUMBER,
"OBJNUMLOW" NUMBER,
"ISRISKENABLE" VARCHAR2(1),
"CHETYPE" CHAR(1),
"ISZHCYCTYPE" VARCHAR(4),
CONSTRAINT "PK_RANINSTASKTEMP" NOT CLUSTER PRIMARY KEY("RANINSTASKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."RANINSTASKTEMP"."APPROVER" IS '审批人';
COMMENT ON COLUMN "AICRIS"."RANINSTASKTEMP"."AUDITOR" IS '审核人';


CREATE TABLE "AICRIS"."RANINSTASKVERIFY"
(
"TARGEID" VARCHAR2(36),
"LAYER" CHAR(1),
"DSTATE" CHAR(1),
"CREATTIME" TIMESTAMP(0),
"REMARK" VARCHAR2(1000),
"UPDATETIME" TIMESTAMP(0),
"ID" VARCHAR2(36),
"CHECKPEOPLE" VARCHAR2(50),
"VERIFYTYPE" CHAR(1)) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSTASKVERIFY" IS '任务审核表';

CREATE OR REPLACE  INDEX "AICRIS"."INDEX_RANINSTASKVERIFY_TARGEID" ON "AICRIS"."RANINSTASKVERIFY"("TARGEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSTOFFICEOBJ"
(
"OBJID" VARCHAR2(36) NOT NULL,
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(15),
"REGORG" VARCHAR2(50),
"LEREP" VARCHAR2(20),
"ESTDATE" TIMESTAMP(0),
"DOM" VARCHAR2(100),
"DSTATE" CHAR(1),
"ENTNAME" VARCHAR2(200),
"REMARK" VARCHAR2(2000),
"LIANAME" VARCHAR2(200),
"FIXEDTEL" VARCHAR2(30),
"LEREPTEL" VARCHAR2(30),
CONSTRAINT "PK_RANINSTOFFICEOBJ" NOT CLUSTER PRIMARY KEY("OBJID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANINSUSERLOG"
(
"ID" VARCHAR2(36) NOT NULL,
"USERID" VARCHAR2(36),
"RANINSTASKID" VARCHAR2(18),
"CARDID" VARCHAR2(50),
"DEPID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"DSTATE" VARCHAR2(1),
"ISEXCEL" VARCHAR2(1),
"CREATETIME" TIMESTAMP(6),
"UPDATETIME" TIMESTAMP(6),
"LOCDISTRICT" VARCHAR2(6),
"ORGUNITTYPE" VARCHAR2(36),
"REGIONID" VARCHAR2(50),
"ISEXPERT" CHAR(1),
CONSTRAINT "RANINSUSERLOG_PK" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RANINSUSERLOG" IS '抽取检查人员匹配过程表';
COMMENT ON COLUMN "AICRIS"."RANINSUSERLOG"."ORGUNITTYPE" IS '单位类型';


CREATE TABLE "AICRIS"."RANINSVERIFYCOMMON"
(
"ID" VARCHAR2(36) NOT NULL,
"USERID" VARCHAR2(36),
"COMMONLANGUAGE" VARCHAR2(3000),
"DSTATE" CHAR(1),
"UPDATETIME" TIMESTAMP(0),
CONSTRAINT "PK_RANINSVERIFYCOMMON" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RANTASKISSUED"
(
"TIID" VARCHAR2(36) NOT NULL,
"RANINSTASKID" VARCHAR2(18),
"RANINSTASKNAME" VARCHAR2(200),
"DEPID" VARCHAR2(36),
"ISSUED" CHAR(1),
"PARENTID" VARCHAR2(36),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"DSTATE" CHAR(1),
"ISFINISH" CHAR(1),
"ISIMPORT" CHAR(1),
"VERIFYSTATE" CHAR(1),
"USERIMPORT" VARCHAR2(6) DEFAULT '0',
"USERID" VARCHAR2(36),
"FINALSTEP" VARCHAR2(50),
"AUDITOR" VARCHAR2(36),
"APPROVER" VARCHAR2(50),
"ISUPLOADED" NUMBER(38,0) DEFAULT 0,
"TWORAMDOMWAY" CHAR(1),
CONSTRAINT "PK_TASKISSUED" NOT CLUSTER PRIMARY KEY("TIID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."RANTASKISSUED"."APPROVER" IS '审批人';
COMMENT ON COLUMN "AICRIS"."RANTASKISSUED"."AUDITOR" IS '审核人';
COMMENT ON COLUMN "AICRIS"."RANTASKISSUED"."TWORAMDOMWAY" IS '是否启用分组检查，1表示启用';

CREATE OR REPLACE  INDEX "AICRIS"."RANTASKISSUED_RANINSTASKID_IDX" ON "AICRIS"."RANTASKISSUED"("RANINSTASKID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."REGULATORYINCREMENTHIGH_TEST"
(
"CREATEBY" VARCHAR2(40),
"CREATETIME" TIMESTAMP(0),
"UPDATEBY" VARCHAR2(40),
"UPDATETIME" TIMESTAMP(0),
"ID" VARCHAR2(40) NOT NULL,
"REGULATORYCODE" VARCHAR2(10),
"REGULATORYNAME" VARCHAR2(100),
"INCREMENT" NUMBER,
"MONTH" VARCHAR2(7),
"MONTHBASIC" NUMBER,
"TOTALCOUNT" NUMBER,
CONSTRAINT "PK_REGULATORYINCREMENTHIGH" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."REGULATORYINCREMENTHIGH_TEST" IS '市监局高风险，较高风险月总增量记录表';
COMMENT ON COLUMN "AICRIS"."REGULATORYINCREMENTHIGH_TEST"."ID" IS '数据ID';
COMMENT ON COLUMN "AICRIS"."REGULATORYINCREMENTHIGH_TEST"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "AICRIS"."REGULATORYINCREMENTHIGH_TEST"."MONTH" IS '统计月份，格式：YYYY-MM';
COMMENT ON COLUMN "AICRIS"."REGULATORYINCREMENTHIGH_TEST"."MONTHBASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "AICRIS"."REGULATORYINCREMENTHIGH_TEST"."REGULATORYCODE" IS '市监局码值';
COMMENT ON COLUMN "AICRIS"."REGULATORYINCREMENTHIGH_TEST"."REGULATORYNAME" IS '市监局名称';
COMMENT ON COLUMN "AICRIS"."REGULATORYINCREMENTHIGH_TEST"."TOTALCOUNT" IS '总企业量';


CREATE TABLE "AICRIS"."RELEASEFILEINFO"
(
"RELEASEFILEID" VARCHAR2(36) NOT NULL,
"DEPID" VARCHAR2(36),
"FILENAME" VARCHAR2(200),
"FILEURL" VARCHAR2(200),
"UPLOADDATE" TIMESTAMP(0),
"USERID" VARCHAR2(36),
"USERNAME" VARCHAR2(100),
"FILEEXT" VARCHAR2(20),
"FILETYPE" VARCHAR2(1000),
"FILESIZE" VARCHAR2(30),
"RELEASETITLE" VARCHAR2(500),
CONSTRAINT "PK_RELEASEFILEINFO" NOT CLUSTER PRIMARY KEY("RELEASEFILEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."RELEASEFILEINFO" IS '发布附件信息表';


CREATE TABLE "AICRIS"."REPINCREMENTALL"
(
"CREATEBY" VARCHAR2(40),
"CREATETIME" TIMESTAMP(6),
"UPDATEBY" VARCHAR2(40),
"UPDATETIME" TIMESTAMP(6),
"ID" VARCHAR2(40) NOT NULL,
"REPRESENTATIVE" VARCHAR2(100),
"INCREMENT" NUMBER,
"MONTH" CHAR(7),
"MONTHBASIC" NUMBER,
"TOTALCOUNT" NUMBER,
"REGION" VARCHAR2(100),
CONSTRAINT "REPINCREMENTALL_PKEY" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."REPINCREMENTALL"."ID" IS '数据ID';
COMMENT ON COLUMN "AICRIS"."REPINCREMENTALL"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "AICRIS"."REPINCREMENTALL"."MONTH" IS '统计月份，格式：YYYY-MM';
COMMENT ON COLUMN "AICRIS"."REPINCREMENTALL"."MONTHBASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "AICRIS"."REPINCREMENTALL"."REGION" IS '地区';
COMMENT ON COLUMN "AICRIS"."REPINCREMENTALL"."REPRESENTATIVE" IS '企业法人名称';
COMMENT ON COLUMN "AICRIS"."REPINCREMENTALL"."TOTALCOUNT" IS '总企业量';


CREATE TABLE "AICRIS"."REPORTTIME"
(
"ENTNO" VARCHAR2(36),
"REGISTTIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."RISKCHECKSCOPE"
(
"ID" VARCHAR2(36) NOT NULL,
"TASKID" VARCHAR2(36),
"PLANID" VARCHAR2(36),
"DEPTID" VARCHAR2(36),
"TYPE" VARCHAR2(1),
"COLNAME" VARCHAR2(60),
"COLTYPE" VARCHAR2(1),
"RELATION" VARCHAR2(30),
"BEFOREVALUE" VARCHAR2(4000),
"AFTERVALUE" VARCHAR2(4000),
"CREATETIME" VARCHAR2(30),
"CREATEMANID" VARCHAR2(36),
CONSTRAINT "RISKCHECKSCOPE_PK" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."SPOTCHECKSTRATE"
(
"ID" VARCHAR2(36) NOT NULL,
"CHECKNAME" VARCHAR2(100),
"CHECKCODE" VARCHAR2(100),
"STRATENAME" VARCHAR2(100),
"STRATECODE" VARCHAR2(100),
"CHECKRULE" VARCHAR2(100),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"USERID" VARCHAR2(100),
"USERNAME" VARCHAR2(100),
"CHECKTIMEFROM" TIMESTAMP(0),
"CHECKTIMETO" TIMESTAMP(0),
"CHECKDEPID" VARCHAR2(100),
"CHECKDEPNAME" VARCHAR2(100),
"CHECKRULEHIGH" VARCHAR2(100),
"CHECKRULEHIGHER" VARCHAR2(100),
"CHECKRULEIN" VARCHAR2(100),
"CHECKRULELOW" VARCHAR2(100),
CONSTRAINT "PK_SPOTCHECKSTRATE" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."STREETINCREMENTALL"
(
"CREATEBY" VARCHAR2(40),
"CREATETIME" TIMESTAMP(0),
"UPDATEBY" VARCHAR2(40),
"UPDATETIME" TIMESTAMP(0),
"ID" VARCHAR2(40) NOT NULL,
"STREETLONG" VARCHAR2(60),
"STREETNAME" VARCHAR2(50),
"INCREMENT" NUMBER,
"MONTH" CHAR(7),
"MONTHBASIC" NUMBER,
"TOTALCOUNT" NUMBER,
CONSTRAINT "STREETINCREMENTALL_KEY" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."STREETINCREMENTALL" IS '街道月总增量记录表';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL"."ID" IS '数据ID';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL"."MONTH" IS '统计月份，格式：YYYY-MM';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL"."MONTHBASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL"."STREETLONG" IS '街道长名称（地区+街道名称）';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL"."STREETNAME" IS '街道名称';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL"."TOTALCOUNT" IS '总企业量';


CREATE TABLE "AICRIS"."STREETINCREMENTALL_TEST"
(
"CREATEBY" VARCHAR2(40),
"CREATETIME" TIMESTAMP(0),
"UPDATEBY" VARCHAR2(40),
"UPDATETIME" TIMESTAMP(0),
"ID" VARCHAR2(40) NOT NULL,
"STREETLONG" VARCHAR2(100),
"STREETNAME" VARCHAR2(100),
"INCREMENT" NUMBER,
"MONTH" VARCHAR2(7),
"MONTHBASIC" NUMBER,
"TOTALCOUNT" NUMBER,
CONSTRAINT "PK_STREETINCREMENTALL" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."STREETINCREMENTALL_TEST" IS '街道月总增量记录表_测试表';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL_TEST"."ID" IS '数据ID';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL_TEST"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL_TEST"."MONTH" IS '统计月份，格式：YYYY-MM';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL_TEST"."MONTHBASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL_TEST"."STREETLONG" IS '街道长名称（地区+街道名称）';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL_TEST"."STREETNAME" IS '街道名称';
COMMENT ON COLUMN "AICRIS"."STREETINCREMENTALL_TEST"."TOTALCOUNT" IS '总企业量';


CREATE TABLE "AICRIS"."T_BASECODE"
(
"BASECODEID" CHAR(36) NOT NULL,
"CODEID" VARCHAR2(10),
"CODE" VARCHAR2(100),
"NAME" VARCHAR2(500),
"COMM" VARCHAR2(255),
"ISGB" CHAR(1),
"SHORTNAME" VARCHAR2(10),
CONSTRAINT "PK_TRBASECODE" NOT CLUSTER PRIMARY KEY("BASECODEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."T_COMPANY_DETAILS"
(
"ID" VARCHAR(36) NOT NULL,
"NAME" VARCHAR(100) DEFAULT NULL,
"USCC" VARCHAR(100) DEFAULT NULL,
"TYPE" VARCHAR(100) DEFAULT NULL,
"REGULATORY" VARCHAR(100) DEFAULT NULL,
"REGISTRATION" VARCHAR(100) DEFAULT NULL,
"REPRESENTATIVE" VARCHAR(100) DEFAULT NULL,
"REGION" VARCHAR(100) DEFAULT NULL,
"SCOPE" VARCHAR(2000) DEFAULT NULL,
"STATE" VARCHAR(100) DEFAULT NULL,
"LABEL" VARCHAR(100) DEFAULT NULL,
"PHONE" VARCHAR(100) DEFAULT NULL,
"EMAIL" VARCHAR(100) DEFAULT NULL,
"ADDRESS" VARCHAR(300) DEFAULT NULL,
"WEBSITE" VARCHAR(100) DEFAULT NULL,
"SCORE" INT DEFAULT NULL,
"BRANCH" VARCHAR(100) DEFAULT NULL,
"INVESTMENT" VARCHAR(100) DEFAULT NULL,
"LEVEL" VARCHAR(100) DEFAULT NULL,
"INDUSTRY" VARCHAR(100) DEFAULT NULL,
"UPDATE_BY" VARCHAR(50) DEFAULT NULL,
"CREATE_TIME" DATETIME(6) DEFAULT GETDATE(),
"CREATE_BY" VARCHAR(255) DEFAULT NULL,
"UPDATE_TIME" DATETIME(6) DEFAULT GETDATE(),
"STREET_LONG" VARCHAR(100) DEFAULT NULL,
"STREET_NAME" VARCHAR(100) DEFAULT NULL,
"TYPE_NAME" VARCHAR(100) DEFAULT NULL,
"REGULATORY_NAME" VARCHAR(100) DEFAULT NULL,
"REGISTRATION_NAME" VARCHAR(100) DEFAULT NULL,
"INDUSTRY_NAME" VARCHAR(100) DEFAULT NULL,
"EST_DATE" VARCHAR(30) DEFAULT NULL,
"APPR_DATE" VARCHAR(30) DEFAULT NULL,
"REV_DATE" VARCHAR(30) DEFAULT NULL,
"OPEN_FROM" VARCHAR(30) DEFAULT NULL,
"OPEN_TO" VARCHAR(30) DEFAULT NULL,
"REG_CAP" VARCHAR(30) DEFAULT NULL,
"PRIPID" VARCHAR(40) DEFAULT NULL,
"REG_NO" VARCHAR(40) DEFAULT NULL,
"S_STATUS" VARCHAR(100) DEFAULT NULL,
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."ADDRESS" IS '地址';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."APPR_DATE" IS '核准日期';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."BRANCH" IS '分支机构';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."EMAIL" IS '邮箱';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."EST_DATE" IS '成立日期';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."ID" IS '主键';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."INDUSTRY" IS '国民行业经济名称';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."INDUSTRY_NAME" IS '国民行业经济名称(名称)';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."INVESTMENT" IS '对外投资';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."LABEL" IS '信用标签';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."LEVEL" IS '风险等级';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."NAME" IS '企业名称';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."OPEN_FROM" IS '营业期限（开始）';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."OPEN_TO" IS '营业期限（结束）';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."PHONE" IS '电话';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."PRIPID" IS '旧的系统id';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."REG_CAP" IS '注册资本';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."REG_NO" IS '注册编号';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."REGION" IS '辖区';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."REGISTRATION" IS '登记机关';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."REGISTRATION_NAME" IS '登记机关（名称）';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."REGULATORY" IS '监管机关';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."REGULATORY_NAME" IS '监管机关（名称）';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."REPRESENTATIVE" IS '法定代表';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."REV_DATE" IS '核查日期';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."S_STATUS" IS '数据记录的状态"0":添加;"1":修改;"2":废置';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."SCOPE" IS '经营范围';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."SCORE" IS '风险评分';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."STATE" IS '企业状态';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."STREET_LONG" IS '街道长名称（地区+街道名）';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."STREET_NAME" IS '街道名称';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."TYPE" IS '企业类型';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."TYPE_NAME" IS '企业类型（名称）';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."USCC" IS '统一社会';
COMMENT ON COLUMN "AICRIS"."T_COMPANY_DETAILS"."WEBSITE" IS '官网';

CREATE OR REPLACE  INDEX "AICRIS"."T_COMPANY_DETAILS_LEVEL_IDX" ON "AICRIS"."T_COMPANY_DETAILS"("LEVEL" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."T_COMPANY_DETAILS_NAME_IDX" ON "AICRIS"."T_COMPANY_DETAILS"("NAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."SCORE_IDEX" ON "AICRIS"."T_COMPANY_DETAILS"("SCORE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."T_COMPANY_DETAILS_STATE_LEVEL_REGION_IDX" ON "AICRIS"."T_COMPANY_DETAILS"("STATE" ASC,"LEVEL" ASC,"REGION" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."T_COMPANY_DETAILS_INDUSTRY_EST_DATE_IDX" ON "AICRIS"."T_COMPANY_DETAILS"("INDUSTRY" ASC,"EST_DATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."T_COMPANY_DETAILS_STATE_REGION_LEVEL_IDX" ON "AICRIS"."T_COMPANY_DETAILS"("STATE" ASC,"REGION" ASC,"LEVEL" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."T_COMPANY_DETAILS_CREATE_TIME_IDX" ON "AICRIS"."T_COMPANY_DETAILS"("CREATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."T_COMPANY_DETAILS_TYPE_IDX" ON "AICRIS"."T_COMPANY_DETAILS"("TYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."T_COMPANY_DETAILS_USCC_IDX" ON "AICRIS"."T_COMPANY_DETAILS"("USCC" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."T_COMPANY_DETAILS_PRIPID_IDX" ON "AICRIS"."T_COMPANY_DETAILS"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."T_COMPANY_DETAILS_STREET_LONG_IDX" ON "AICRIS"."T_COMPANY_DETAILS"("STREET_LONG" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."T_COMPANY_DETAILS_UPDATE_TIME_IDX" ON "AICRIS"."T_COMPANY_DETAILS"("UPDATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."T_ORGNODESAPP"
(
"ORGUNITID" VARCHAR2(36) NOT NULL,
"PHONENUMBER" VARCHAR2(80),
"FAXNUMBER" VARCHAR2(80),
"COUNTRY" VARCHAR2(50),
"REGION" VARCHAR2(50),
"PROVINCE" VARCHAR2(50),
"CITY" VARCHAR2(50),
"ADDRESS" VARCHAR2(255),
"SHORTNAME" VARCHAR2(20),
"SHORTOA" VARCHAR2(20),
"ORGUNITNO" VARCHAR2(50),
"POSTCODE" CHAR(6),
"REMARK" VARCHAR2(500),
"ORGUNITTYPE" VARCHAR2(200),
"LOCDISTRICT" VARCHAR2(20),
CONSTRAINT "PK_T_ORGNODESAPP" NOT CLUSTER PRIMARY KEY("ORGUNITID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."T_ORGUNITS"
(
"ORGUNITID" VARCHAR2(36) NOT NULL,
"ORGUNITNAME" VARCHAR2(100),
"DELETED" CHAR(1),
"ORGNUMBER" VARCHAR2(20),
"PARENTID" VARCHAR2(36),
"UNITTYPE" CHAR(1),
"ORGLEVEL" NUMBER(38,0),
"CODE" VARCHAR2(12),
"ORGUNISCID" VARCHAR2(18),
CONSTRAINT "PK_T_ORGUNITS" NOT CLUSTER PRIMARY KEY("ORGUNITID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."T_USERS"
(
"USERID" VARCHAR2(36) NOT NULL,
"USERNAME" VARCHAR2(100),
"PASSWORD" VARCHAR2(100),
"REALNAME" VARCHAR2(100),
"LOCKED" CHAR(1),
"DELETED" CHAR(1),
"ORGDEPTID" VARCHAR2(36),
"ORGUNITID" VARCHAR2(36),
"ORGJOBID" VARCHAR2(10),
"USERPROP" NUMBER(22,0),
"USERSTATUS" CHAR(1),
"GRADENUM" NUMBER(22,0),
"CUSTOMINDEX" NUMBER(22,0),
"ISPUBLISH" CHAR(1) DEFAULT 0,
"ERRORCOUNT" VARCHAR2(36),
"AVATAR" VARCHAR2(200),
CONSTRAINT "PK_T_USERS" NOT CLUSTER PRIMARY KEY("USERID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TASK_PORTAL"
(
"DOORTASKID" VARCHAR2(36) NOT NULL,
"TASKID" VARCHAR2(50),
"APPID" VARCHAR2(50),
"CREATEUSERID" VARCHAR2(50),
"RECEIVEUSERID" VARCHAR2(50),
"TITLE" VARCHAR2(255),
"CONTENT" VARCHAR2(500),
"URGENCY" VARCHAR2(1),
"LIMITTIME" TIMESTAMP(6),
"REDIRECTURL" VARCHAR2(225),
"REDIRECTTYPE" VARCHAR2(1),
"UPDATETIM" TIMESTAMP(6),
"DROOCREATEUSERID" VARCHAR2(36),
"DROORECEIVEUSERID" VARCHAR2(36),
"STATUS" VARCHAR2(1),
"PUSHSTATUS" VARCHAR2(1),
CLUSTER PRIMARY KEY("DOORTASKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."TASK_PORTAL" IS '推送门户待办记录';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."APPID" IS '业务系统Id';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."CONTENT" IS '任务内容';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."CREATEUSERID" IS '发送任务的用户ID';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."DOORTASKID" IS '门户系统的待办ID，推送成功返回的id';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."DROOCREATEUSERID" IS '双随机的组织架构-发送任务的用户ID';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."DROORECEIVEUSERID" IS '双随机的组织架构-接收任务的用户ID';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."LIMITTIME" IS '时限时间（最晚处理时间）';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."PUSHSTATUS" IS '推送状态 1：推送成功、2：推送失败、3：待推送、4：更新成功、5：更新失败';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."RECEIVEUSERID" IS '接收任务的用户ID';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."REDIRECTTYPE" IS '跳转方式（1：弹窗内打开，2：新页面中打开）';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."REDIRECTURL" IS '跳转地址（处理待办地址）（已办任务的链接地址）';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."STATUS" IS '任务状态代码（1：待办，2：已办）';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."TASKID" IS '子系统中的任务ID（请确保在子系统中唯一）';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."TITLE" IS '任务标题';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."UPDATETIM" IS '更新时间';
COMMENT ON COLUMN "AICRIS"."TASK_PORTAL"."URGENCY" IS '紧急程度（1：普通，2：急件，3：特急）';


CREATE TABLE "AICRIS"."TASKCORRECTITEM"
(
"ID" VARCHAR2(36) NOT NULL,
"RANINSITEM" VARCHAR2(14),
"TASKLOGID" VARCHAR2(50),
"RANINSTASKID" VARCHAR2(18),
"RANINSITEMNAME" VARCHAR2(300),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"DSTATE" CHAR(1),
"DEPTYPE" VARCHAR2(100),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."TASKCORRECTITEM" IS '任务勘误抽查事项表';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTITEM"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTITEM"."DEPTYPE" IS '所属部门类型';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTITEM"."DSTATE" IS '删除标识 0正常，1修改，2删除';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTITEM"."ID" IS '主键';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTITEM"."RANINSITEM" IS '抽查事项id';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTITEM"."RANINSITEMNAME" IS '抽查事项名称';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTITEM"."RANINSTASKID" IS '抽查任务编号';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTITEM"."TASKLOGID" IS '任务勘误记录id';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTITEM"."UPDATETIME" IS '更新时间';


CREATE TABLE "AICRIS"."TASKCORRECTLOG"
(
"TASKLOGID" VARCHAR2(50) NOT NULL,
"RANINSTASKID" VARCHAR2(18),
"RANINSPLANID" VARCHAR2(14),
"RANINSTASKNAME" VARCHAR2(200),
"RANINSTYPE" CHAR(1),
"RANINSITEM" VARCHAR2(4000),
"RANINSOBJSCOPE" VARCHAR2(8000),
"EXTRACTFROM" TIMESTAMP(0),
"EXTRACTTO" TIMESTAMP(0),
"RANINSOBJNUM" NUMBER(38,0),
"RANINSOBJPROP" NUMBER(7,4),
"SLDINSOBJNUM" NUMBER(38,0),
"CHILDBASEPAID" VARCHAR2(100),
"OBJNUMHIGH" NUMBER(7,4),
"OBJNUMHIGHER" NUMBER(7,4),
"OBJNUMIN" NUMBER(7,4),
"OBJNUMLOW" NUMBER(7,4),
"ISRISKENABLE" CHAR(1),
"TASKASSIGNDEPT" VARCHAR2(100),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"AUDITOR" VARCHAR2(36),
"APPROVER" VARCHAR2(36),
"VERIFYSTATE" CHAR(1),
"CORRECTTYPE" CHAR(1),
"DSTATE" CHAR(1),
"USERID" VARCHAR2(36),
"DEPARTMENTID" VARCHAR2(36),
"DEPNAME" VARCHAR2(100),
"INSDATEFROM" TIMESTAMP(0),
"INSDATETO" TIMESTAMP(0),
"BASETYPE" VARCHAR2(50),
"LOGAFTERID" VARCHAR2(50),
"ISBEFORE" CHAR(5),
CLUSTER PRIMARY KEY("TASKLOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."TASKCORRECTLOG" IS '任务勘误记录表';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."APPROVER" IS '审批人';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."AUDITOR" IS '审核人';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."BASETYPE" IS '主体库类型';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."CHILDBASEPAID" IS '子库主键';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."CORRECTTYPE" IS '任务勘误类型 1为删除任务，2为修改任务';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."DEPARTMENTID" IS '经办人单位id';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."DEPNAME" IS '经办人单位名称';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."DSTATE" IS '删除标记';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."EXTRACTFROM" IS '抽取时间自';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."EXTRACTTO" IS '抽取时间至';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."INSDATEFROM" IS '检查日期自';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."INSDATETO" IS '检查日期至';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."ISBEFORE" IS '是否为勘误前的任务数据   0或null表示是勘误后的数据；1表示是勘误前的任务数据';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."ISRISKENABLE" IS '是否启用风险等级 1表示已经勾选 ，0表示未勾选';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."LOGAFTERID" IS '关联勘误后的taskLogID，有该值表示这条数据是勘误前的任务数据';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."OBJNUMHIGH" IS '高风险抽取比例';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."OBJNUMHIGHER" IS '较高风险抽取比例';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."OBJNUMIN" IS '中风险抽取比例';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."OBJNUMLOW" IS '低风险抽取比例';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."RANINSITEM" IS '抽查事项描述';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."RANINSOBJNUM" IS '抽查数量';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."RANINSOBJPROP" IS '抽查对象比例';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."RANINSOBJSCOPE" IS '抽查范围';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."RANINSPLANID" IS '计划编号';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."RANINSTASKID" IS '任务编号';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."RANINSTASKNAME" IS '任务名称';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."RANINSTYPE" IS '抽查类型 1 定向 2 不定向';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."SLDINSOBJNUM" IS '应查对象总数';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."TASKASSIGNDEPT" IS '任务分配处室';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."TASKLOGID" IS '任务勘误记录id';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."UPDATETIME" IS '修改时间';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."USERID" IS '勘误经办人id';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTLOG"."VERIFYSTATE" IS '审核审批状态';


CREATE TABLE "AICRIS"."TASKCORRECTOBJSCOPE"
(
"SCOPEID" VARCHAR2(50) NOT NULL,
"TASKLOGID" VARCHAR2(50),
"ENTTYPE" CLOB,
"ENTITYTYPENAME" CLOB,
"ISSUEDEPTID" CLOB,
"ISSUEDEPTNAME" CLOB,
"SUPDEPTID" CLOB,
"SUPDEPTNAME" CLOB,
"INDUSTRYCODE" CLOB,
"INDUSTRYCODENAME" CLOB,
"INDUSTRYTYPE" CLOB,
"INDUSTRYTYPENAME" CLOB,
"REGCAPMIN" NUMBER(16,4),
"REGCAPMAX" NUMBER(16,4),
"ESTDATEMIN" TIMESTAMP(0),
"ESTDATEMAX" TIMESTAMP(0),
"ISREPORT" CHAR(1),
"TASKID" VARCHAR2(50),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"OPSCOANDFORM" CLOB,
"LISENCETYPE" CLOB,
"LOCDISTRICTID" CLOB,
"LOCDISTRICTNAME" CLOB,
"DOM" CLOB,
"BEGINREPORT" TIMESTAMP(0),
"ENDREPORT" TIMESTAMP(0),
"UNYEAR" CHAR(10),
"UNYEARANDDEPTYPE" CHAR(10),
"UNEXCEPTION" CHAR(10),
"COMMUNITYPARENTID" VARCHAR2(100),
"UNABLETOCONTACT" CHAR(10),
"DSTATE" CHAR(10),
NOT CLUSTER PRIMARY KEY("SCOPEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."TASKCORRECTOBJSCOPE" IS '任务勘误抽查范围表（全市库）';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."BEGINREPORT" IS '开始年报时间';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."COMMUNITYPARENTID" IS '主交集ID';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."DOM" IS '住所';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."DSTATE" IS '删除标志';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."ENDREPORT" IS '结束年报时间';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."ENTITYTYPENAME" IS '企业类型名称';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."ENTTYPE" IS '企业类型';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."ESTDATEMAX" IS '截止成立日期';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."ESTDATEMIN" IS '起始成立日期';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."INDUSTRYCODE" IS '行业代码';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."INDUSTRYCODENAME" IS '行业代码名称';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."INDUSTRYTYPE" IS '行业门类';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."INDUSTRYTYPENAME" IS '行业门类名称';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."ISREPORT" IS '是否年报	1 是 0 否';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."ISSUEDEPTID" IS '登记发照机关';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."ISSUEDEPTNAME" IS '登记发照机关名称';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."LISENCETYPE" IS '许可证类型';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."LOCDISTRICTID" IS '行政区划id';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."LOCDISTRICTNAME" IS '行政区划名称';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."OPSCOANDFORM" IS '经营范围';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."REGCAPMAX" IS '最大注册资本';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."REGCAPMIN" IS '最小注册资本';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."SCOPEID" IS '主键id';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."SUPDEPTID" IS '属地管理机关';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."SUPDEPTNAME" IS '属地管理机关名称';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."TASKID" IS '任务编号';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."TASKLOGID" IS '任务勘误记录id';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."UNABLETOCONTACT" IS '排除实地查无检查对象，1表示已经勾选 ，0表示未勾选';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."UNEXCEPTION" IS '排除列入异常名录的市场主体，1表示已经勾选 ，0表示未勾选';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."UNYEAR" IS '排除本年度所有部门抽取的检查对象  ，1表示已经勾选 ，0表示未勾选';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."UNYEARANDDEPTYPE" IS '排除本年度本系统部门抽取的检查对象，1表示已经勾选 ，0表示未勾选';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOBJSCOPE"."UPDATETIME" IS '更新时间';


CREATE TABLE "AICRIS"."TASKCORRECTOTHERSCOPE"
(
"ID" VARCHAR2(50) NOT NULL,
"TASKLOGID" VARCHAR2(50),
"TASKID" VARCHAR2(36),
"DEPTID" VARCHAR2(50),
"PARINGID" VARCHAR2(50),
"COLNAME" VARCHAR2(60),
"COLTYPE" CHAR(1),
"RELATION" VARCHAR2(30),
"BEFOREVALUE" VARCHAR2(4000),
"AFTERVALUE" VARCHAR2(4000),
"CREATETIME" VARCHAR2(30),
"CREATEMANID" VARCHAR2(50),
"COLNAMECN" VARCHAR2(60),
"LABELID" VARCHAR2(100),
"OBJPARINGID" VARCHAR2(50),
"COMMUNITYPARENTID" VARCHAR2(50),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."TASKCORRECTOTHERSCOPE" IS '任务勘误抽查范围表（子库）';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."AFTERVALUE" IS '后值';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."BEFOREVALUE" IS '前值';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."COLNAME" IS '属性名称';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."COLNAMECN" IS '属性中文名称';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."COLTYPE" IS '属性类型:0为字符串型；1为时间类型；2为整数类型；3为浮点类型；4为布尔类型';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."COMMUNITYPARENTID" IS '主交集ID';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."CREATEMANID" IS '创建人ID';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."DEPTID" IS '部门ID';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."ID" IS '主键';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."LABELID" IS '标签主键';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."OBJPARINGID" IS '子库主键';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."PARINGID" IS '属性定义表ID';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."RELATION" IS '属性抽查关系';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."TASKID" IS '任务编号';
COMMENT ON COLUMN "AICRIS"."TASKCORRECTOTHERSCOPE"."TASKLOGID" IS '任务勘误记录id';


CREATE TABLE "AICRIS"."TB_DSM_SPOT_CHECK_ENTITY"
(
"SCHECKID" VARCHAR2(40) NOT NULL,
"SUSERID" VARCHAR2(40),
"SUSERNAME" VARCHAR2(20),
"SENTID" VARCHAR2(24),
"SENTREGNO" VARCHAR2(30),
"SENTNAME" VARCHAR2(120),
"SDOM" VARCHAR2(200),
"SPRINCIPAL" VARCHAR2(100),
"SENTCLASSCODE" VARCHAR2(12),
"SAREACODE" VARCHAR2(48),
"SUNITID" VARCHAR2(20),
"SUNITNAME" VARCHAR2(200),
"DTCHECKDATE" TIMESTAMP(6),
"SCHECKTYPE" VARCHAR2(20),
"SRESULT" VARCHAR2(2000),
"DTLASTDATE" TIMESTAMP(6),
"SSTATE" VARCHAR2(3) DEFAULT '0',
"DTINPUTTIME" TIMESTAMP(6) DEFAULT SYSDATE,
"DTUPDATETIME" TIMESTAMP(6),
"REMARK" VARCHAR2(1000),
"SENTTYPE" VARCHAR2(21),
"SREGORG" VARCHAR2(15),
"SSOURCETYPE" CHAR(1) DEFAULT '0') STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TB_DSM_SPOT_CHECK_RESULT_TEMP"
(
"SAUTOID" VARCHAR2(40) NOT NULL,
"SCHECKID" VARCHAR2(40) NOT NULL,
"SENTID" VARCHAR2(24),
"SRESULTTYPECODE" VARCHAR2(2),
"SRESULTTYPENAME" VARCHAR2(100),
"SBOOKCODE" VARCHAR2(100),
"DTCORRECTIONDATE" TIMESTAMP(6),
"SCORRECTIONFLAG" CHAR(1),
"SFLAG" VARCHAR2(2) DEFAULT '0',
"SUNDERTAKERID" VARCHAR2(40),
"SUNDERTAKERNAME" VARCHAR2(20),
"SUNDERTAKEUNITID" VARCHAR2(20),
"SBACKREASON" VARCHAR2(500),
"DTUNDERTAKETIME" TIMESTAMP(6)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TB_ILC_DOCUMENT_INFO"
(
"SEVIDENCECODE" VARCHAR2(40) NOT NULL,
"SDOCUMENTCODE" CHAR(3),
"SEVIDENCEFILENAME" VARCHAR2(200),
"SEVIDENCEFILEURL" VARCHAR2(200),
"NFILESIZE" NUMBER(12,0),
"DTINPUTDATE" TIMESTAMP(6)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TB_ILC_DOCUMENT_INFO_EX"
(
"FILEID" VARCHAR2(40) NOT NULL,
"KEYID" VARCHAR2(40),
"ISDELETE" VARCHAR2(40) DEFAULT '0',
"MD5" VARCHAR2(40),
"MATERIALCODE" VARCHAR2(9),
"LICENSEID" VARCHAR2(40),
"DESCRIBE" VARCHAR2(200)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TB_SUS_USER"
(
"SUSERID" VARCHAR2(140) NOT NULL,
"NFLOWUSERID" NUMBER(38,0),
"SMOBILENO" VARCHAR2(15),
"SGROUPNO" VARCHAR2(15),
"SUSERNAME" VARCHAR2(200),
"SGENDER" CHAR(1),
"SCARDNO" VARCHAR2(18),
"SMOBILE" VARCHAR2(40),
"SUNITID" VARCHAR2(20),
"SDUTYCODE" VARCHAR2(3),
"SID" VARCHAR2(40),
"SEMAIL" VARCHAR2(40),
"SMENO" VARCHAR2(500),
"SDEFAULTPAGE" VARCHAR2(100),
"CTYPE" CHAR(1),
"CSTATUS" CHAR(1),
"SDEPTID" VARCHAR2(40),
"SACCOUNT" VARCHAR2(40),
"SPASSWORD" VARCHAR2(40),
"CUSERSTATE" CHAR(1)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TRAICCODE"
(
"AICID" CHAR(20) NOT NULL,
"PAICID" CHAR(6),
"AICNAME" VARCHAR2(100),
"SHORTNAME" VARCHAR2(60),
"DISSHORTNAME" VARCHAR2(50),
"LAUPTIME" TIMESTAMP(6),
"AREA_CODE" CHAR(6),
CONSTRAINT "P_KEY_1SSS" NOT CLUSTER PRIMARY KEY("AICID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TRAICCODESS"
(
"AICID" CHAR(20) NOT NULL,
"PAICID" CHAR(6),
"AICNAME" VARCHAR2(100),
"SHORTNAME" VARCHAR2(60),
"DISSHORTNAME" VARCHAR2(50),
"LAUPTIME" TIMESTAMP(6),
"AREA_CODE" CHAR(6),
CONSTRAINT "P_KEY_1SS" NOT CLUSTER PRIMARY KEY("AICID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TRENTBASEINFO"
(
"ENTID" CHAR(36) NOT NULL,
"ENTITYNO" CHAR(36) NOT NULL,
"ENTTYPE" VARCHAR(4),
"REGISTNO" CHAR(36) NOT NULL,
"ENTNAME" VARCHAR(200),
"EMPNUMBER" INT,
"ENTPHONE" VARCHAR(30),
"ENTADDRESS" VARCHAR(300),
"ENTZIP" VARCHAR(10),
"ENTEMAIL" VARCHAR(50),
"ENTSTATE" CHAR(1) NOT NULL,
"ISWEB" CHAR(1) NOT NULL,
"ISINVEINFO" CHAR(1) NOT NULL,
"REGISTDATE" DATETIME(6) NOT NULL,
"REPORTYEAR" VARCHAR(10) NOT NULL,
"ISSUEDEPTID" VARCHAR(10),
"ISTRANSFERSTOCK" CHAR(1),
"EMPNUMBERISSHOW" CHAR(1),
"RELATIONS" VARCHAR(200),
"RELATIONSISSHOW" CHAR(1),
"ONAICCIPS" CHAR(1),
"CREATEDATE" DATETIME(6) DEFAULT GETDATE(),
"UPDATEDATE" DATETIME(6) DEFAULT GETDATE(),
"DSTATE" CHAR(1) DEFAULT '0',
"ENTITYTYPE" VARCHAR(6),
"SUBENTITYTYPE" VARCHAR(6),
"ORGID" VARCHAR(9),
"ISSYNC" VARCHAR(2) DEFAULT 'wA',
"MAINBUSIACT" VARCHAR(2000),
"WOMEMPNUM" INT,
"HOLDINGSMSG" CHAR(1),
"WOMEMPNUMWHETHER" CHAR(1),
"HOLDINGSMSGWHETHER" CHAR(1),
"ISSOCIALSECURITY" CHAR(1),
"ISGUARANTEE" CHAR(1),
"BELONGENTERPRISE" VARCHAR(36),
"IP" VARCHAR(40),
"ISPC" CHAR(1),
"IMSTANDMAC" VARCHAR(15),
CONSTRAINT "PK_TRENTBASEINFO_2022" CLUSTER PRIMARY KEY("ENTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICRIS"."TRENTBASEINFO_REGISTNO_IDX" ON "AICRIS"."TRENTBASEINFO"("REGISTNO" ASC,"REPORTYEAR" ASC,"DSTATE" ASC,"CREATEDATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."IDX_TRENTBASEINFO_ENTITYNO" ON "AICRIS"."TRENTBASEINFO"("ENTITYNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TRENTTYPE"
(
"ENTTYPEID" VARCHAR2(6) NOT NULL,
"ENTTYPENAME" VARCHAR2(60),
"LAUPTIME" TIMESTAMP(6),
"AREA_CODE" CHAR(6),
"CLASSTYPE" CHAR(1),
"CLASSNAME" VARCHAR2(20),
NOT CLUSTER PRIMARY KEY("ENTTYPEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TRINDUSTRYINFO"
(
"INDUSTRYINFOID" CHAR(36) NOT NULL,
"CHARENCODING" CHAR(1),
"FIRLAY" CHAR(2),
"SECLAY" CHAR(3),
"THILAY" CHAR(4),
"FULLCODE" VARCHAR2(6),
"CODENAME" VARCHAR2(200),
"CONTAIN" VARCHAR2(4000),
"NOCONTAIN" VARCHAR2(4000),
"BZ" CHAR(1),
"REMARKS" VARCHAR2(450),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" CHAR(6),
CONSTRAINT "TRINDUSTRYINFO_PK" NOT CLUSTER PRIMARY KEY("INDUSTRYINFOID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TRINDUSTRYINFOS"
(
"INDUSTRYINFOID" CHAR(36) NOT NULL,
"CHARENCODING" CHAR(1),
"FIRLAY" CHAR(2),
"SECLAY" CHAR(3),
"THILAY" CHAR(4),
"FULLCODE" VARCHAR2(6),
"CODENAME" VARCHAR2(200),
"CONTAIN" VARCHAR2(500),
"NOCONTAIN" VARCHAR2(500),
"BZ" CHAR(1),
"REMARKS" VARCHAR2(450),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" CHAR(6),
CONSTRAINT "TRINDUSTRYINFOS_PK" NOT CLUSTER PRIMARY KEY("INDUSTRYINFOID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TSABNLIST"
(
"ABNLISTID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36) DEFAULT NULL,
"REGNO" VARCHAR(30) DEFAULT NULL,
"ENTNAME" VARCHAR(100) DEFAULT NULL,
"ENTTYPE" CHAR(4) DEFAULT NULL,
"SPECAUSE" VARCHAR(2) DEFAULT NULL,
"ABNTIME" DATE DEFAULT NULL,
"SPEREASONS" VARCHAR(500) DEFAULT NULL,
"REMEXCPRES" VARCHAR(2) DEFAULT NULL,
"REMDATE" DATE DEFAULT NULL,
"REMREASONS" VARCHAR(500) DEFAULT NULL,
"AREA_CODE" CHAR(6) DEFAULT '440100' NOT NULL,
"LAUPTIME" DATETIME(6) DEFAULT GETDATE(),
"OPERATESTATUS" CHAR(1) DEFAULT NULL,
"RECONSIDERATIONORG" VARCHAR(50) DEFAULT NULL,
"GOVERNMENTORG" VARCHAR(50) DEFAULT NULL,
"LITIORG" VARCHAR(50) DEFAULT NULL,
"INTOSPONSOR" VARCHAR(50) DEFAULT NULL,
"REMSPONSOR" VARCHAR(50) DEFAULT NULL,
"INTOREMARK" VARCHAR(500) DEFAULT NULL,
"REMREMARK" VARCHAR(500) DEFAULT NULL,
"INTODECORG" VARCHAR(50) DEFAULT NULL,
"REMDECORG" VARCHAR(50) DEFAULT NULL,
"UNISCID" VARCHAR(18) DEFAULT NULL,
"REMWRITID" VARCHAR(45) DEFAULT NULL,
"INTOWRITID" VARCHAR(45) DEFAULT NULL,
"LEREP" VARCHAR(200) DEFAULT NULL,
"CERTYPE" VARCHAR(64) DEFAULT NULL,
"CERNO" VARCHAR(200) DEFAULT NULL,
"ISSHOW" CHAR(1) DEFAULT '1',
"DECORG" VARCHAR(64) DEFAULT NULL,
"REDECORG" VARCHAR(64) DEFAULT NULL,
"INTODECORGCODE" VARCHAR(50) DEFAULT NULL,
CLUSTER PRIMARY KEY("ABNLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."TSABNLIST"."ABNLISTID" IS '经营异常名录ID';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."CERNO" IS '证件号码';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."CERTYPE" IS '证件类型';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."DECORG" IS '列入决定机关码值';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."ENTNAME" IS '名称';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."ENTTYPE" IS '企业类型';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."GOVERNMENTORG" IS '人民政府';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."INTODECORG" IS '列入作出决定机关中文';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."INTOREMARK" IS '列入备注';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."INTOSPONSOR" IS '列入主办人';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."INTOWRITID" IS '列入原因代码';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."ISSHOW" IS '是否公示 1表示公示 0表示不公示';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."LEREP" IS '法定代表人';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."LITIORG" IS '诉讼机关';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."OPERATESTATUS" IS '异常状态（0移出1列入2撤销3修改4标记严重失信）';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."RECONSIDERATIONORG" IS '行政复议机关';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."REDECORG" IS '移出决定机关中文';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."REMDATE" IS '移出日期';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."REMDECORG" IS '移出作出决定机关码值';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."REMEXCPRES" IS '移出经营异常名录原因';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."REMREASONS" IS '移出原因中文';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."REMREMARK" IS '移出备注';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."REMSPONSOR" IS '移出主办人';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."REMWRITID" IS '移出原因代码';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."SPECAUSE" IS '列入经营异常名录原因';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."SPEREASONS" IS '列入原因中文';
COMMENT ON COLUMN "AICRIS"."TSABNLIST"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "AICRIS"."TSABNLIST_REGNO_IDX" ON "AICRIS"."TSABNLIST"("REGNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."TSABNLIST_ABNTIME_IDX" ON "AICRIS"."TSABNLIST"("ABNTIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."TSABNLIST_REMDATE_IDX" ON "AICRIS"."TSABNLIST"("REMDATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."IDX_TSABNLIST_ENTNAME" ON "AICRIS"."TSABNLIST"("ENTNAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."TSABNLIST_PRIPID_IDX" ON "AICRIS"."TSABNLIST"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."IDX_TSABNLIST_LAUPTIME" ON "AICRIS"."TSABNLIST"("LAUPTIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICRIS"."TSABNLIST_UNISCID_IDX" ON "AICRIS"."TSABNLIST"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TSATTACHMENTMODEL"
(
"ATTACHMENTID" VARCHAR2(36) NOT NULL,
"ENTERDSTATEID" VARCHAR2(36),
"DEPID" VARCHAR2(36),
"FILENAME" VARCHAR2(200),
"FILEURL" VARCHAR2(200),
"TEMPPATH" VARCHAR2(200),
"UPLOADDATE" TIMESTAMP(0),
"USERID" VARCHAR2(36),
"USERNAME" VARCHAR2(100),
"FILEEXT" VARCHAR2(20),
"FILETYPE" VARCHAR2(1000),
"ATTACHTYPE" VARCHAR2(200),
"FILESIZE" VARCHAR2(30),
"DSTATE" VARCHAR(2),
"DELUSERID" VARCHAR(36),
"DELTIME" TIMESTAMP(6),
CONSTRAINT "PK_TSATTACHMENTMODEL" NOT CLUSTER PRIMARY KEY("ATTACHMENTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."TSATTACHMENTMODEL"."DELTIME" IS '删除时间';
COMMENT ON COLUMN "AICRIS"."TSATTACHMENTMODEL"."DELUSERID" IS '删除附件的用户id';
COMMENT ON COLUMN "AICRIS"."TSATTACHMENTMODEL"."DSTATE" IS '数据状态标记（0插入，1更新，2删除）';

CREATE OR REPLACE  INDEX "AICRIS"."INDEX_TSATTACHMENTMODEL_ENTERDSTATEID" ON "AICRIS"."TSATTACHMENTMODEL"("ENTERDSTATEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."TSATTACHMENTMODEL_27"
(
"ATTACHMENTID" VARCHAR2(36) NOT NULL,
"ENTERDSTATEID" VARCHAR2(36),
"DEPID" VARCHAR2(36),
"FILENAME" VARCHAR2(200),
"FILEURL" VARCHAR2(200),
"TEMPPATH" VARCHAR2(200),
"UPLOADDATE" TIMESTAMP(0),
"USERID" VARCHAR2(36),
"USERNAME" VARCHAR2(100),
"FILEEXT" VARCHAR2(20),
"FILETYPE" VARCHAR2(1000),
"ATTACHTYPE" VARCHAR2(200),
"FILESIZE" VARCHAR2(30),
"DSTATE" VARCHAR(2),
"DELUSERID" VARCHAR(36),
"DELTIME" TIMESTAMP(6),
CONSTRAINT "PK_TSATTACHMENTMODEL_27" NOT CLUSTER PRIMARY KEY("ATTACHMENTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICRIS"."TSATTACHMENTMODEL_27"."DELTIME" IS '删除时间';
COMMENT ON COLUMN "AICRIS"."TSATTACHMENTMODEL_27"."DELUSERID" IS '删除附件的用户id';
COMMENT ON COLUMN "AICRIS"."TSATTACHMENTMODEL_27"."DSTATE" IS '数据状态标记（0插入，1更新，2删除）';

CREATE OR REPLACE  INDEX "AICRIS"."TS_27_ENTERDSTATEID_IDX" ON "AICRIS"."TSATTACHMENTMODEL_27"("ENTERDSTATEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."V_SHARE_RCJG_RANINSRESULT"
(
"RESULTID" VARCHAR(36) NOT NULL,
"RANINSPLANID" VARCHAR(36),
"RANINSITEM" VARCHAR(14),
"RANINSTASKID" VARCHAR(18),
"RANINSITEMNAME" VARCHAR(300),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(30),
"PRIPID" VARCHAR(50),
"RANINSCHECKRES" VARCHAR(1),
"USERCARDID" VARCHAR(36),
"USERCARD" VARCHAR(60),
"INSDATE" TIMESTAMP(6),
"DEPID" VARCHAR(36),
"DEP" VARCHAR(60),
"DEPNAME" VARCHAR(100),
"FINISHTIME" TIMESTAMP(6),
"TIMESTAMPS" TIMESTAMP(6),
"DATASOURCE" VARCHAR(10),
CONSTRAINT "V_SHARE_RCJG_RANINSRESULT_PK" CLUSTER PRIMARY KEY("RESULTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."V_SHARE_RCJG_RANINSTASKVERIFY"
(
"ID" VARCHAR2(36) NOT NULL,
"TARGEID" VARCHAR2(36),
"LAYER" VARCHAR2(1),
"DSTATE" VARCHAR2(1),
"CREATTIME" TIMESTAMP(6),
"UPDATETIME" TIMESTAMP(6),
"REMARK" VARCHAR2(1000),
"CHECKPEOPLE" VARCHAR2(50),
"VERIFYTYPE" VARCHAR2(1),
"PRIPID" VARCHAR2(36),
"DATASOURCE" VARCHAR2(10),
CONSTRAINT "V_SHARE_RCJG_RANINSTASKVERIFY_PK" CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."V_SHARE_RCJG_RANINSTASKVERIFY" IS '审核表';


CREATE TABLE "AICRIS"."V_SHARE_RCJG_TSATTACHMENTMODEL"
(
"ATTACHMENTID" VARCHAR(36) NOT NULL,
"ENTERDSTATEID" VARCHAR(36),
"RESULTID" VARCHAR(36),
"DEPID" VARCHAR(36),
"FILENAME" VARCHAR(200),
"FILEURL" VARCHAR(200),
"UPLOADDATE" TIMESTAMP(6),
"USERID" VARCHAR(36),
"USERNAME" VARCHAR(100),
"FILEEXT" VARCHAR(20),
"FILETYPE" VARCHAR(1000),
"FILESIZE" VARCHAR(30),
"DATASOURCE" VARCHAR(10),
CONSTRAINT "V_SHARE_RCJG_TSATTACHMENTMODEL_PK" CLUSTER PRIMARY KEY("ATTACHMENTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICRIS"."WARN_ENT_INFO"
(
"ID" VARCHAR2(50) NOT NULL,
"PRIPID" VARCHAR2(40),
"TYPE" VARCHAR2(36),
"REGION" VARCHAR2(50),
"MONTH" VARCHAR2(50),
"LEVEL" VARCHAR2(20),
"CREATETIME" TIMESTAMP(0),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICRIS"."WARN_ENT_INFO" IS '预警名单表';
COMMENT ON COLUMN "AICRIS"."WARN_ENT_INFO"."ID" IS '主键';
COMMENT ON COLUMN "AICRIS"."WARN_ENT_INFO"."LEVEL" IS '风险等级';
COMMENT ON COLUMN "AICRIS"."WARN_ENT_INFO"."MONTH" IS '月份';
COMMENT ON COLUMN "AICRIS"."WARN_ENT_INFO"."PRIPID" IS '主体id';
COMMENT ON COLUMN "AICRIS"."WARN_ENT_INFO"."REGION" IS '行政区划';
COMMENT ON COLUMN "AICRIS"."WARN_ENT_INFO"."TYPE" IS '预警类型';


