﻿CREATE TABLE "CRGS"."ADDRESS_INCREMENT_ALL"
(
"CREATE_BY" VARCHAR(36) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(40) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(36) NOT NULL,
"INCREMENT" INT NOT NULL,
"MONTH" VARCHAR(7) NOT NULL,
"MONTH_BASIC" INT NOT NULL,
"TOTAL_COUNT" BIGINT NOT NULL,
"REGION" VARCHAR(60) NOT NULL,
"ADDRESS" TEXT,
"ADDRESS_TYPE" VARCHAR(1),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."ADDRESS_INCREMENT_ALL"."ADDRESS_TYPE" IS '地址类型（0普通地址，1集群地址）';
COMMENT ON COLUMN "CRGS"."ADDRESS_INCREMENT_ALL"."ID" IS '数据id';
COMMENT ON COLUMN "CRGS"."ADDRESS_INCREMENT_ALL"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "CRGS"."ADDRESS_INCREMENT_ALL"."MONTH" IS '统计月份，格式：yyyy-MM';
COMMENT ON COLUMN "CRGS"."ADDRESS_INCREMENT_ALL"."MONTH_BASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "CRGS"."ADDRESS_INCREMENT_ALL"."REGION" IS '地区';
COMMENT ON COLUMN "CRGS"."ADDRESS_INCREMENT_ALL"."TOTAL_COUNT" IS '总企业量';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229613005979100" ON "CRGS"."ADDRESS_INCREMENT_ALL"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AFFICHE_SPOTCHECK"
(
"CCJCID" VARCHAR(64) NOT NULL,
"NOTICEID" VARCHAR(64),
"ENTNAME" VARCHAR(200),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(18),
"INSAUTH" VARCHAR(100),
"INSAUTH_CN" VARCHAR(128),
"INSDATE" DATE,
"INSRES" VARCHAR(128),
"INSRES_CN" VARCHAR(4000),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("CCJCID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AICCODE"
(
"AICID" VARCHAR(20) NOT NULL,
"ORGUNITNAME" VARCHAR(100),
"SHORTNAME" VARCHAR(10),
"AREA_CODE" VARCHAR(20),
NOT CLUSTER PRIMARY KEY("AICID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229612888843700" ON "CRGS"."AICCODE"("AICID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AN_ALTERSTOCKINFO"
(
"INVALTID" VARCHAR(50) NOT NULL,
"ANCHEID" VARCHAR(50),
"INV" VARCHAR(100),
"TRANSAMPR" VARCHAR(20),
"TRANSAMAFT" VARCHAR(20),
"ALTDATE" TIMESTAMP(0),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("INVALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."AN_ALTERSTOCKINFO" IS '企业年报股权变更信息';
COMMENT ON COLUMN "CRGS"."AN_ALTERSTOCKINFO"."ALTDATE" IS '股权变更日期';
COMMENT ON COLUMN "CRGS"."AN_ALTERSTOCKINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "CRGS"."AN_ALTERSTOCKINFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."AN_ALTERSTOCKINFO"."INV" IS '股东名称';
COMMENT ON COLUMN "CRGS"."AN_ALTERSTOCKINFO"."INVALTID" IS '股东变更标识';
COMMENT ON COLUMN "CRGS"."AN_ALTERSTOCKINFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."AN_ALTERSTOCKINFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."AN_ALTERSTOCKINFO"."TRANSAMAFT" IS '转让后股权比例';
COMMENT ON COLUMN "CRGS"."AN_ALTERSTOCKINFO"."TRANSAMPR" IS '转让前股权比例';
COMMENT ON COLUMN "CRGS"."AN_ALTERSTOCKINFO"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229612257667800" ON "CRGS"."AN_ALTERSTOCKINFO"("INVALTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AN_BASEINFO"
(
"ANCHEID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36),
"ANCHEDATE" TIMESTAMP(0),
"ANCHEYEAR" VARCHAR(8),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(50),
"ENTNAME" VARCHAR(100),
"ENTTYPE" VARCHAR(64),
"TEL" VARCHAR(30),
"ADDR" VARCHAR(512),
"POSTALCODE" VARCHAR(12),
"EMAIL" VARCHAR(100),
"BUSST" VARCHAR(2),
"BUSST_CN" VARCHAR(18),
"EMPNUM" VARCHAR(100),
"EMPNUMDIS" VARCHAR(2),
"ANTYPE" VARCHAR(6),
"COLGRANUM" VARCHAR(20),
"COLEMPLNUM" VARCHAR(20),
"RETSOLNUM" VARCHAR(20),
"RETEMPLNUM" VARCHAR(20),
"DISPERNUM" VARCHAR(20),
"DISEMPLNUM" VARCHAR(20),
"UNENUM" VARCHAR(20),
"UNEEMPLNUM" VARCHAR(20),
"DEPENDENTENTNAME" VARCHAR(100),
"ASSGRO" VARCHAR(40),
"ASSGRODIS" VARCHAR(2),
"LIAGRO" VARCHAR(40),
"LIAGRODIS" VARCHAR(2),
"VENDINC" VARCHAR(40),
"VENDINCDIS" VARCHAR(2),
"MAIBUSINC" VARCHAR(40),
"MAIBUSINCDIS" VARCHAR(2),
"PROGRO" VARCHAR(40),
"PROGRODIS" VARCHAR(2),
"NETINC" VARCHAR(40),
"NETINCDIS" VARCHAR(2),
"RATGRO" VARCHAR(40),
"RATGRODIS" VARCHAR(2),
"TOTEQU" VARCHAR(40),
"TOTEQUDIS" VARCHAR(2),
"NUMPARM" VARCHAR(20),
"PARINS" VARCHAR(2),
"PARINS_CN" VARCHAR(16),
"RESPARMSIGN" VARCHAR(2),
"RESPARSECSIGN" VARCHAR(2),
"LASTUPDATETIME" TIMESTAMP(0),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("ANCHEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."AN_BASEINFO" IS '企业年报基本信息';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."ADDR" IS '企业通信地址';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."ANCHEDATE" IS '年报时间';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."ANCHEYEAR" IS '年报年度';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."ANTYPE" IS '企业年报类别';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."ASSGRO" IS '资产总额';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."ASSGRODIS" IS '资产总额是否公示';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."BUSST" IS '经营状态';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."BUSST_CN" IS '经营状态（中文名称）';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."COLEMPLNUM" IS '其中高校毕业生人数(雇工)';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."COLGRANUM" IS '其中高校毕业生人数(经营者)';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."DEPENDENTENTNAME" IS '隶属企业名称';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."DISEMPLNUM" IS '其中残疾人人数(雇工)';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."DISPERNUM" IS '其中残疾人人数(经营者)';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."EMAIL" IS '电子邮箱';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."EMPNUM" IS '从业人数';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."EMPNUMDIS" IS '从业人数是否公示';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."ENTTYPE" IS '市场主体类型';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."LASTUPDATETIME" IS '最后一次修改时间';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."LIAGRO" IS '负债总额';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."LIAGRODIS" IS '负债总额是否公示';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."MAIBUSINC" IS '其中主营业务收入';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."MAIBUSINCDIS" IS '其中主营业务收入是否公示';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."NETINC" IS '净利润';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."NETINCDIS" IS '净利润是否公示';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."NUMPARM" IS '党员（预备党员）人数';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."PARINS" IS '党组织建制';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."PARINS_CN" IS '党组织建制（中文名称）';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."POSTALCODE" IS '邮政编码';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."PROGRO" IS '利润总额';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."PROGRODIS" IS '利润总额是否公示';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."RATGRO" IS '纳税总额';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."RATGRODIS" IS '纳税总额是否公示';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."RESPARMSIGN" IS '法定代表人是否党员';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."RESPARSECSIGN" IS '法定代表人是否党组织书记';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."RETEMPLNUM" IS '其中退役士兵人数(雇工)';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."RETSOLNUM" IS '其中退役士兵人数(经营者)';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."TEL" IS '企业联系电话';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."TOTEQU" IS '所有者权益合计';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."TOTEQUDIS" IS '所有者权益合计是否公示';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."UNEEMPLNUM" IS '其中失业人员再就业人数(雇工)';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."UNENUM" IS '其中失业人员再就业人数(经营者)';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."VENDINC" IS '营业总收入';
COMMENT ON COLUMN "CRGS"."AN_BASEINFO"."VENDINCDIS" IS '营业总收入是否公示';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229611232804200" ON "CRGS"."AN_BASEINFO"("ANCHEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AN_FORGUARANTEEINFO"
(
"MOREID" VARCHAR(50) NOT NULL,
"ANCHEID" VARCHAR(50),
"MORE" VARCHAR(512),
"MORTGAGOR" VARCHAR(512),
"PRICLASECKIND" VARCHAR(2),
"PRICLASECAM" VARCHAR(40),
"PEFPERFORM" TIMESTAMP(0),
"PEFPERTO" TIMESTAMP(0),
"GUARANPERIOD" VARCHAR(2),
"MOREDIS" VARCHAR(2),
"GATYPE" VARCHAR(2),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("MOREID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."AN_FORGUARANTEEINFO" IS '企业年报对外提供保证担保信息';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."GATYPE" IS '保证的方式';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."GUARANPERIOD" IS '保证的期间';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."MORE" IS '债权人';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."MOREDIS" IS '对外担保是否公示';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."MOREID" IS '对外担保标识ID';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."MORTGAGOR" IS '债务人';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."PEFPERFORM" IS '履行债务的期限自';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."PEFPERTO" IS '履行债务的期限至';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."PRICLASECAM" IS '主债权数额';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."PRICLASECKIND" IS '主债权种类';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."AN_FORGUARANTEEINFO"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229610608127100" ON "CRGS"."AN_FORGUARANTEEINFO"("MOREID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AN_FORINVESTMENT"
(
"OUTINVID" VARCHAR(50) NOT NULL,
"ANCHEID" VARCHAR(50),
"ENTNAME" VARCHAR(200),
"UNISCID" VARCHAR(200),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("OUTINVID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."AN_FORINVESTMENT" IS '企业年报对外投资信息';
COMMENT ON COLUMN "CRGS"."AN_FORINVESTMENT"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "CRGS"."AN_FORINVESTMENT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."AN_FORINVESTMENT"."ENTNAME" IS '所投资企业名称';
COMMENT ON COLUMN "CRGS"."AN_FORINVESTMENT"."OUTINVID" IS '企业对外投资标识';
COMMENT ON COLUMN "CRGS"."AN_FORINVESTMENT"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."AN_FORINVESTMENT"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."AN_FORINVESTMENT"."UNISCID" IS '所投资企业统一社会信用代码/所投资企业注册号';
COMMENT ON COLUMN "CRGS"."AN_FORINVESTMENT"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229610324206100" ON "CRGS"."AN_FORINVESTMENT"("OUTINVID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AN_OVERDUEPAY"
(
"ANCHEOID" VARCHAR(50) NOT NULL,
"ANCHEID" VARCHAR(50),
"ISODSMEPAY" VARCHAR(2),
"ODSMEPAYCONNUM" VARCHAR(6),
"ODSMEPAYCONAM" VARCHAR(30),
"FILINSTR" VARCHAR(2000),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("ANCHEOID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."AN_OVERDUEPAY" IS '企业年报逾期尚未支付款项';
COMMENT ON COLUMN "CRGS"."AN_OVERDUEPAY"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "CRGS"."AN_OVERDUEPAY"."ANCHEOID" IS '年报修改ID';
COMMENT ON COLUMN "CRGS"."AN_OVERDUEPAY"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."AN_OVERDUEPAY"."FILINSTR" IS '填报说明';
COMMENT ON COLUMN "CRGS"."AN_OVERDUEPAY"."ISODSMEPAY" IS '是否存在《保障中小企业款项支付条例》（国务院令第728号）规定的逾期尚未支付中小企业款项的情形';
COMMENT ON COLUMN "CRGS"."AN_OVERDUEPAY"."ODSMEPAYCONAM" IS '逾期尚未支付中小企业款项的合同金额';
COMMENT ON COLUMN "CRGS"."AN_OVERDUEPAY"."ODSMEPAYCONNUM" IS '逾期尚未支付中小企业款项的合同数量';
COMMENT ON COLUMN "CRGS"."AN_OVERDUEPAY"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."AN_OVERDUEPAY"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."AN_OVERDUEPAY"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229609224697800" ON "CRGS"."AN_OVERDUEPAY"("ANCHEOID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AN_PB_BASEINFO"
(
"ANCHEID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36),
"ANCHEDATE" DATE,
"ANCHEYEAR" VARCHAR(8),
"TRANAME" VARCHAR(256),
"NAME" VARCHAR(200),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(18),
"TEL" VARCHAR(60),
"EMPNUM" DECIMAL(6,0),
"EMPNUMDIS" VARCHAR(2),
"COLGRANUM" DECIMAL(6,0),
"COLEMPLNUM" DECIMAL(6,0),
"RETSOLNUM" DECIMAL(6,0),
"RETEMPLNUM" DECIMAL(6,0),
"DISPERNUM" DECIMAL(6,0),
"DISEMPLNUM" DECIMAL(6,0),
"UNENUM" DECIMAL(6,0),
"UNEEMPLNUM" DECIMAL(6,0),
"ANNREPFORM" VARCHAR(1),
"FUNDAM" DECIMAL(24,6),
"VENDINC" DECIMAL(24,6),
"VENDINCDIS" VARCHAR(2),
"RATGRO" DECIMAL(24,6),
"RATGRODIS" VARCHAR(2),
"NUMPARM" DECIMAL(6,0),
"PARINS" VARCHAR(2),
"PARINS_CN" VARCHAR(16),
"RESPARMSIGN" VARCHAR(2),
"RESPARSECSIGN" VARCHAR(2),
"LASTUPDATETIME" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("ANCHEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AN_SFC_BASEINFO"
(
"ANCHEID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36),
"ANCHEDATE" DATE,
"ANCHEYEAR" VARCHAR(8),
"FARSPEARTNAME" VARCHAR(200),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"MEMNUM" DECIMAL(6,0),
"FARNUM" DECIMAL(6,0),
"ANNNEWMEMNUM" DECIMAL(6,0),
"ANNREDMEMNUM" DECIMAL(6,0),
"TEL" VARCHAR(30),
"EMAIL" VARCHAR(100),
"PRIYEASALES" DECIMAL(24,6),
"PRIYEASALESDIS" VARCHAR(2),
"PRIYEAPROFIT" DECIMAL(24,6),
"PRIYEAPROFITDIS" VARCHAR(2),
"PRIYEASUB" DECIMAL(24,6),
"PRIYEASUBDIS" VARCHAR(2),
"RATGRO" DECIMAL(24,6),
"RATGRODIS" VARCHAR(2),
"PRIYEALOAN" DECIMAL(24,6),
"PRIYEALOANDIS" VARCHAR(2),
"LASTUPDATETIME" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("ANCHEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AN_SFC_SOCSECINFO"
(
"SOSEID" VARCHAR(50) NOT NULL,
"ANCHEID" VARCHAR(50),
"SO110" DEC(10,0),
"SO210" DEC(10,0),
"SO310" DEC(10,0),
"SO410" DEC(10,0),
"SO510" DEC(10,0),
"TOTALWAGES_SO110" DEC(24,6),
"TOTALWAGES_SO210" DEC(24,6),
"TOTALWAGES_SO310" DEC(24,6),
"TOTALWAGES_SO410" DEC(24,6),
"TOTALWAGES_SO510" DEC(24,6),
"TOTALWAGESDIS" VARCHAR(2),
"TOTALPAYMENT_SO110" DEC(24,6),
"TOTALPAYMENT_SO210" DEC(24,6),
"TOTALPAYMENT_SO310" DEC(24,6),
"TOTALPAYMENT_SO410" DEC(24,6),
"TOTALPAYMENT_SO510" DEC(24,6),
"TOTALPAYMENTDIS" VARCHAR(2),
"UNPAIDSOCIALINS_SO110" DEC(24,6),
"UNPAIDSOCIALINS_SO210" DEC(24,6),
"UNPAIDSOCIALINS_SO310" DEC(24,6),
"UNPAIDSOCIALINS_SO410" DEC(24,6),
"UNPAIDSOCIALINS_SO510" DEC(24,6),
"UNPAIDSOCIALINSDIS" VARCHAR(2),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"REGNO" VARCHAR(72),
"SOCIALINSURANCETPTE" VARCHAR(3),
"SOCIALINSURANCETPTENO" INTEGER,
"TOTALWAGES" DECIMAL(24,6),
"TOTALPAYMENT" DECIMAL(24,6),
"UNPAIDSOCIALINS" DECIMAL(24,6),
"DSTATE" VARCHAR(1),
"ENTITYNO" VARCHAR(36),
"REPORTYEAR" VARCHAR(10),
"CREATEDATE" TIMESTAMP(6),
"UPDATEDATE" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("SOSEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AN_SOCSECINFO"
(
"SOSEID" VARCHAR(50) NOT NULL,
"ANCHEID" VARCHAR(50),
"SO110" VARCHAR(20),
"SO210" VARCHAR(20),
"SO310" VARCHAR(20),
"SO410" VARCHAR(20),
"SO510" VARCHAR(20),
"TOTALWAGES_SO110" VARCHAR(40),
"TOTALWAGES_SO210" VARCHAR(40),
"TOTALWAGES_SO310" VARCHAR(40),
"TOTALWAGES_SO410" VARCHAR(40),
"TOTALWAGES_SO510" VARCHAR(40),
"TOTALWAGESDIS" VARCHAR(2),
"TOTALPAYMENT_SO110" VARCHAR(40),
"TOTALPAYMENT_SO210" VARCHAR(40),
"TOTALPAYMENT_SO310" VARCHAR(40),
"TOTALPAYMENT_SO410" VARCHAR(40),
"TOTALPAYMENT_SO510" VARCHAR(40),
"TOTALPAYMENTDIS" VARCHAR(2),
"UNPAIDSOCIALINS_SO110" VARCHAR(40),
"UNPAIDSOCIALINS_SO210" VARCHAR(40),
"UNPAIDSOCIALINS_SO310" VARCHAR(40),
"UNPAIDSOCIALINS_SO410" VARCHAR(40),
"UNPAIDSOCIALINS_SO510" VARCHAR(40),
"UNPAIDSOCIALINSDIS" VARCHAR(2),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("SOSEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."AN_SOCSECINFO" IS '企业年报社会保险信息';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."SO110" IS '城镇职工基本养老保险参保人数';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."SO210" IS '失业保险参保人数';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."SO310" IS '职工基本医疗保险参保人数';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."SO410" IS '工伤保险参保人数';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."SO510" IS '生育保险参保人数';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."SOSEID" IS '物理主键';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."TOTALPAYMENT_SO110" IS '参加城镇职工基本养老保险本期实际缴费金额';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."TOTALPAYMENT_SO210" IS '参加失业保险本期实际缴费金额';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."TOTALPAYMENT_SO310" IS '参加职工基本医疗保险本期实际缴费金额';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."TOTALPAYMENT_SO410" IS '参加工伤保险本期实际缴费金额';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."TOTALPAYMENT_SO510" IS '参加生育保险本期实际缴费金额';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."TOTALPAYMENTDIS" IS '本期实际缴费金额是否公示';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."TOTALWAGES_SO110" IS '单位参加城镇职工基本养老保险缴费基数';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."TOTALWAGES_SO210" IS '企单位参加失业保险缴费基数业控股情况是否公示';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."TOTALWAGES_SO310" IS '单位参加职工基本医疗保险缴费基数';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."TOTALWAGES_SO410" IS '单位参加工伤保险缴费基数';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."TOTALWAGES_SO510" IS '单位参加生育保险缴费基数';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."TOTALWAGESDIS" IS '单位缴费基数是否公示';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."UNPAIDSOCIALINS_SO110" IS '单位参加城镇职工基本养老保险累计欠缴金额';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."UNPAIDSOCIALINS_SO210" IS '单位参加失业保险累计欠缴金额';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."UNPAIDSOCIALINS_SO310" IS '单位参加职工基本医疗保险累计欠缴金额';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."UNPAIDSOCIALINS_SO410" IS '参加工伤保险累计欠缴金额';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."UNPAIDSOCIALINS_SO510" IS '单位参加生育保险累计欠缴金额';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."UNPAIDSOCIALINSDIS" IS '单位累计欠缴金额是否公示';
COMMENT ON COLUMN "CRGS"."AN_SOCSECINFO"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229608593566600" ON "CRGS"."AN_SOCSECINFO"("SOSEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AN_SUBCAPITAL"
(
"INVID" VARCHAR(100) NOT NULL,
"ANCHEID" VARCHAR(50),
"INVNAME" VARCHAR(256),
"LISUBCONAM" VARCHAR(30),
"SUBCONDATE" TIMESTAMP(0),
"SUBCONFORM" VARCHAR(200),
"SUBCONFORM_CN" VARCHAR(128),
"LIACCONAM" VARCHAR(30),
"ACCONDATE" TIMESTAMP(0),
"ACCONFORM" VARCHAR(200),
"ACCONFORM_CN" VARCHAR(128),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("INVID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."AN_SUBCAPITAL" IS '企业年报股东及出资信息';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."ACCONDATE" IS '实缴出资日期';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."ACCONFORM" IS '实缴出资方式';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."ACCONFORM_CN" IS '实缴出资方式（中文名称）';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."INVID" IS '投资人ID';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."INVNAME" IS '股东/发起人名称';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."LIACCONAM" IS '累计实缴额';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."LISUBCONAM" IS '累计认缴额';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."SUBCONDATE" IS '认缴出资日期';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."SUBCONFORM" IS '认缴出资方式';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."SUBCONFORM_CN" IS '认缴出资方式（中文名称）';
COMMENT ON COLUMN "CRGS"."AN_SUBCAPITAL"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229607717901900" ON "CRGS"."AN_SUBCAPITAL"("INVID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AN_SUP_BASEINFO"
(
"ANCHEID" VARCHAR(50) NOT NULL,
"DEPENDENTENTNAME" VARCHAR(100),
"UNISCID" VARCHAR(50),
"MAINBUSIACT" VARCHAR(2000),
"WOMEMPNUM" VARCHAR(20),
"WOMEMPNUMDIS" VARCHAR(2),
"HOLDINGSMSG" VARCHAR(2),
"HOLDINGSMSG_CN" VARCHAR(128),
"HOLDINGSMSGDIS" VARCHAR(2),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("ANCHEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."AN_SUP_BASEINFO" IS '企业年报基本信息补充';
COMMENT ON COLUMN "CRGS"."AN_SUP_BASEINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "CRGS"."AN_SUP_BASEINFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."AN_SUP_BASEINFO"."DEPENDENTENTNAME" IS '隶属企业名称';
COMMENT ON COLUMN "CRGS"."AN_SUP_BASEINFO"."HOLDINGSMSG" IS '企业控股情况';
COMMENT ON COLUMN "CRGS"."AN_SUP_BASEINFO"."HOLDINGSMSG_CN" IS '企业控股情况（中文名称）';
COMMENT ON COLUMN "CRGS"."AN_SUP_BASEINFO"."HOLDINGSMSGDIS" IS '企业控股情况是否公示';
COMMENT ON COLUMN "CRGS"."AN_SUP_BASEINFO"."MAINBUSIACT" IS '主营业务活动';
COMMENT ON COLUMN "CRGS"."AN_SUP_BASEINFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."AN_SUP_BASEINFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."AN_SUP_BASEINFO"."UNISCID" IS '隶属企业统一社会信用代码/注册号';
COMMENT ON COLUMN "CRGS"."AN_SUP_BASEINFO"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."AN_SUP_BASEINFO"."WOMEMPNUM" IS '女性从业人员';
COMMENT ON COLUMN "CRGS"."AN_SUP_BASEINFO"."WOMEMPNUMDIS" IS '女性从业人数是否公示';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229607423811400" ON "CRGS"."AN_SUP_BASEINFO"("ANCHEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AN_UPDATEINFO"
(
"ANCHEUID" VARCHAR(50) NOT NULL,
"ANCHEID" VARCHAR(50),
"ALITEM" VARCHAR(512),
"ALTBE" VARCHAR(4000),
"ALTAF" VARCHAR(4000),
"ALTDATE" TIMESTAMP(0),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("ANCHEUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."AN_UPDATEINFO" IS '企业年报修改信息';
COMMENT ON COLUMN "CRGS"."AN_UPDATEINFO"."ALITEM" IS '修改事项';
COMMENT ON COLUMN "CRGS"."AN_UPDATEINFO"."ALTAF" IS '修改后';
COMMENT ON COLUMN "CRGS"."AN_UPDATEINFO"."ALTBE" IS '修改前';
COMMENT ON COLUMN "CRGS"."AN_UPDATEINFO"."ALTDATE" IS '修改日期';
COMMENT ON COLUMN "CRGS"."AN_UPDATEINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "CRGS"."AN_UPDATEINFO"."ANCHEUID" IS '对外担保标识ID';
COMMENT ON COLUMN "CRGS"."AN_UPDATEINFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."AN_UPDATEINFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."AN_UPDATEINFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."AN_UPDATEINFO"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229606623574100" ON "CRGS"."AN_UPDATEINFO"("ANCHEUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AN_WEBSITEINFO"
(
"WEBID" VARCHAR(50) NOT NULL,
"ANCHEID" VARCHAR(50),
"WEBTYPE" VARCHAR(2),
"WEBSITNAME" VARCHAR(200),
"WEBSITE" VARCHAR(500),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("WEBID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."AN_WEBSITEINFO" IS '企业年报网站或网店信息';
COMMENT ON COLUMN "CRGS"."AN_WEBSITEINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "CRGS"."AN_WEBSITEINFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."AN_WEBSITEINFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."AN_WEBSITEINFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."AN_WEBSITEINFO"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."AN_WEBSITEINFO"."WEBID" IS '网站标识';
COMMENT ON COLUMN "CRGS"."AN_WEBSITEINFO"."WEBSITE" IS '网站（网店）网址';
COMMENT ON COLUMN "CRGS"."AN_WEBSITEINFO"."WEBSITNAME" IS '网站（网店）名称';
COMMENT ON COLUMN "CRGS"."AN_WEBSITEINFO"."WEBTYPE" IS '网站网店类型';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229606348580800" ON "CRGS"."AN_WEBSITEINFO"("WEBID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AO_OPA_DETAIL"
(
"BUSEXCLIST" VARCHAR(64) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(200),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(100),
"LEREP" VARCHAR(400),
"CERTYPE" VARCHAR(128),
"CERNO" VARCHAR(100),
"SPECAUSE" VARCHAR(4),
"SPECAUSE_CN" VARCHAR(400),
"ABNTIME" DATE,
"DECORG" VARCHAR(12),
"DECORG_CN" VARCHAR(248),
"ISMOVE" VARCHAR(1),
"REMEXCPRES" VARCHAR(1),
"REMEXCPRES_CN" VARCHAR(400),
"REMDATE" DATE,
"REDECORG" VARCHAR(12),
"REDECORG_CN" VARCHAR(248),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("BUSEXCLIST")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."BUSEXCLIST" IS '经营异常名录ID';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."CERNO" IS '证件号码';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."CERTYPE" IS '证件类型';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."DECORG" IS '列入决定机关';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."DECORG_CN" IS '列入决定机关（中文名称）';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."ISMOVE" IS '是否移出';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."LEREP" IS '法定代表人';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."REDECORG" IS '移出决定机关';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."REDECORG_CN" IS '移出决定机关（中文名称）';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."REMDATE" IS '移出日期';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."REMEXCPRES" IS '移出经营异常名录原因';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."REMEXCPRES_CN" IS '移出经营异常名录原因（中文名称）';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."SPECAUSE" IS '列入经营异常名录原因类型';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."SPECAUSE_CN" IS '列入经营异常名录原因类型（中文名称）';
COMMENT ON COLUMN "CRGS"."AO_OPA_DETAIL"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "CRGS"."AO_OPA_DETAIL_UNISCID_IDX" ON "CRGS"."AO_OPA_DETAIL"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDEX7229605028274400" ON "CRGS"."AO_OPA_DETAIL"("PRIPID" ASC,"UNISCID" ASC,"ABNTIME" ASC,"REMDATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229605177224600" ON "CRGS"."AO_OPA_DETAIL"("BUSEXCLIST" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AO_OPANOMALY"
(
"BUSEXCLIST" VARCHAR(64) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"LEREP" VARCHAR(200),
"CERTYPE" VARCHAR(64),
"CERNO" VARCHAR(50),
"SPECAUSE" VARCHAR(2),
"SPECAUSE_CN" VARCHAR(200),
"ABNTIME" DATE,
"DECORG" VARCHAR(6),
"DECORG_CN" VARCHAR(128),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("BUSEXCLIST")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."AO_OPANOMALY" IS '企业异常名录信息';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."BUSEXCLIST" IS '经营异常名录ID';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."CERNO" IS '证件号码';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."CERTYPE" IS '证件类型';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."DECORG" IS '列入决定机关';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."DECORG_CN" IS '列入决定机关（中文名称）';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."LEREP" IS '法定代表人';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."SPECAUSE" IS '列入经营异常名录原因类型';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."SPECAUSE_CN" IS '列入经营异常名录原因类型（中文名称）';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229603300123700" ON "CRGS"."AO_OPANOMALY"("BUSEXCLIST" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AO_OPANOMALY_INV"
(
"BLINVID" VARCHAR(100) NOT NULL,
"BUSEXCLIST" VARCHAR(64),
"PRIPID" VARCHAR(36),
"INVID" VARCHAR(100),
"INVTYPE" VARCHAR(64),
"INV" VARCHAR(100),
"CERTYPE" VARCHAR(64),
"CERNO" VARCHAR(50),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("BLINVID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."AO_OPANOMALY_INV" IS '企业经营异常名录股东信息';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY_INV"."BLINVID" IS '经营异常名录股东ID';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY_INV"."BUSEXCLIST" IS '经营异常名录ID';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY_INV"."CERNO" IS '证件号码';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY_INV"."CERTYPE" IS '证件类型';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY_INV"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY_INV"."INV" IS '股东/发起人名称';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY_INV"."INVID" IS '股东/发起人ID';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY_INV"."INVTYPE" IS '股东/发起人类型';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY_INV"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY_INV"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY_INV"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."AO_OPANOMALY_INV"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229601675832900" ON "CRGS"."AO_OPANOMALY_INV"("BLINVID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AO_PB_OPANOMALY"
(
"BUSEXCLIST" VARCHAR(64) NOT NULL,
"PRIPID" VARCHAR(72),
"ENTNAME" VARCHAR(200),
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(100),
"LEREP" VARCHAR(400),
"CERTYPE" VARCHAR(128),
"CERNO" VARCHAR(100),
"EXCPSTARES" VARCHAR(2),
"EXCPSTARES_CN" VARCHAR(1000),
"COGDATE" DATE,
"DECORG" VARCHAR(12),
"DECORG_CN" VARCHAR(256),
"ISRECOVERY" VARCHAR(2),
"NORREA" VARCHAR(2),
"NORREA_CN" VARCHAR(1000),
"NORDATE" DATE,
"NORDECORG" VARCHAR(12),
"NORDECORG_CN" VARCHAR(256),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("BUSEXCLIST")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AO_SFC_OPADETAIL"
(
"BUSEXCLIST" VARCHAR(64) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"LEREP" VARCHAR(200),
"CERTYPE" VARCHAR(64),
"CERNO" VARCHAR(50),
"SPECAUSE" VARCHAR(2),
"SPECAUSE_CN" VARCHAR(1000),
"ABNTIME" DATE,
"DECORG" VARCHAR(6),
"DECORG_CN" VARCHAR(128),
"ISMOVE" VARCHAR(1),
"REMEXCPRES" VARCHAR(1),
"REMEXCPRES_CN" VARCHAR(1000),
"REMDATE" DATE,
"REDECORG" VARCHAR(6),
"REDECORG_CN" VARCHAR(128),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
CONSTRAINT "SQL220401164032830" NOT CLUSTER PRIMARY KEY("BUSEXCLIST")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AO_SFC_OPANOMALY"
(
"BUSEXCLIST" VARCHAR(64) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"LEREP" VARCHAR(200),
"CERTYPE" VARCHAR(64),
"CERNO" VARCHAR(50),
"SPECAUSE" VARCHAR(2),
"SPECAUSE_CN" VARCHAR(400),
"ABNTIME" DATE,
"DECORG" VARCHAR(6),
"DECORG_CN" VARCHAR(128),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT SYSDATE NOT NULL,
"ETLUPDATE" TIMESTAMP(6) DEFAULT SYSDATE NOT NULL,
"ETLSTATUS" VARCHAR(1) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("BUSEXCLIST")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AO_SFCBR_OPADETAIL"
(
"BUSEXCLIST" VARCHAR(64) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"LEREP" VARCHAR(200),
"CERTYPE" VARCHAR(64),
"CERNO" VARCHAR(50),
"SPECAUSE" VARCHAR(2),
"SPECAUSE_CN" VARCHAR(1000),
"ABNTIME" DATE,
"DECORG" VARCHAR(6),
"DECORG_CN" VARCHAR(128),
"ISMOVE" VARCHAR(1),
"REMEXCPRES" VARCHAR(1),
"REMEXCPRES_CN" VARCHAR(1000),
"REMDATE" DATE,
"REDECORG" VARCHAR(6),
"REDECORG_CN" VARCHAR(128),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("BUSEXCLIST")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."AO_SFCBR_OPANOMALY"
(
"BUSEXCLIST" VARCHAR(64) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"LEREP" VARCHAR(200),
"CERTYPE" VARCHAR(64),
"CERNO" VARCHAR(50),
"SPECAUSE" VARCHAR(2),
"SPECAUSE_CN" VARCHAR(1000),
"ABNTIME" DATE,
"DECORG" VARCHAR(6),
"DECORG_CN" VARCHAR(128),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT SYSDATE NOT NULL,
"ETLUPDATE" TIMESTAMP(6) DEFAULT SYSDATE NOT NULL,
"ETLSTATUS" VARCHAR(1) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("BUSEXCLIST")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."BASECODE"
(
"CODEID" VARCHAR(5) NOT NULL,
"CODE" VARCHAR(20) NOT NULL,
"NAME" VARCHAR(250),
NOT CLUSTER PRIMARY KEY("CODEID", "CODE")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."BASECODE"."CODEID" IS '主键';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229601511571500" ON "CRGS"."BASECODE"("CODEID" ASC,"CODE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."BIZ_BREAKPOINT"
(
"ID" VARCHAR2(32) NOT NULL,
"BIZ_TYPE" VARCHAR2(32),
"POINT_CONTENT" VARCHAR2(255),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."BIZ_BREAKPOINT"."BIZ_TYPE" IS '业务类型';
COMMENT ON COLUMN "CRGS"."BIZ_BREAKPOINT"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."BIZ_BREAKPOINT"."POINT_CONTENT" IS '断点信息';


CREATE TABLE "CRGS"."BIZ_CREDIT"
(
"CREDIT_ID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(36),
"PRIPID" VARCHAR(40),
"USCC" VARCHAR(40),
"REG_NO" VARCHAR(40),
"ENT_NAME" VARCHAR(200),
"CREATOR_ID" VARCHAR(40),
"CREATE_TIME" TIMESTAMP(0),
"APPROVAL_DATE" DATE,
"RECONSIDERATIONORG" VARCHAR(50),
"GOVERNMENTORG" VARCHAR(50),
"LITIORG" VARCHAR(50),
"STATUS" VARCHAR(1),
"INTOSPONSORILLEGAL" VARCHAR(50),
"AGENTER" VARCHAR(50),
"DISSENT_CONTENT" VARCHAR(200),
NOT CLUSTER PRIMARY KEY("CREDIT_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."BIZ_CREDIT" IS '资信证明业务信息';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."AGENTER" IS '经办人';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."APPROVAL_DATE" IS '核准时间';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."CREATOR_ID" IS '创建人id';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."CREDIT_ID" IS '记录id';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."DISSENT_CONTENT" IS '异议内容';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."ENT_NAME" IS '主体名称';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."GOVERNMENTORG" IS '人民政府';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."INTOSPONSORILLEGAL" IS '列入主办人';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."LITIORG" IS '诉讼机关';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."PRIPID" IS '主体pripid';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."RECONSIDERATIONORG" IS '行政复议机关';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."REG_NO" IS '注册号';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."STATUS" IS '9 受理中、1 审批中、2 已通过、3 不通过';
COMMENT ON COLUMN "CRGS"."BIZ_CREDIT"."USCC" IS '统一码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229600770073900" ON "CRGS"."BIZ_CREDIT"("CREDIT_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CASE_CF_BASEINFO"
(
"CASEID" VARCHAR(100) NOT NULL,
"PENDECNO" VARCHAR(256),
"ILLEGACTTYPE" VARCHAR(2000),
"PENTYPE" VARCHAR(2000),
"PENTYPE_CN" VARCHAR(2000),
"PENAM" DEC(18,6),
"FORFAM" DEC(18,6),
"PENCONTENT" VARCHAR(4000),
"PENAUTH" VARCHAR(64),
"PENAUTH_CN" VARCHAR(128),
"PENDECISSDATE" DATE,
"PUBLICDATE" DATE,
"ETLTIMESTAMP" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("CASEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."CASE_CF_BASEINFO"."CASEID" IS '案件基本信息ID';
COMMENT ON COLUMN "CRGS"."CASE_CF_BASEINFO"."ETLTIMESTAMP" IS 'ETL时间戳';
COMMENT ON COLUMN "CRGS"."CASE_CF_BASEINFO"."FORFAM" IS '没收金额';
COMMENT ON COLUMN "CRGS"."CASE_CF_BASEINFO"."ILLEGACTTYPE" IS '违法行为类型';
COMMENT ON COLUMN "CRGS"."CASE_CF_BASEINFO"."PENAM" IS '罚款金额';
COMMENT ON COLUMN "CRGS"."CASE_CF_BASEINFO"."PENAUTH" IS '作出行政处罚决定机关';
COMMENT ON COLUMN "CRGS"."CASE_CF_BASEINFO"."PENAUTH_CN" IS '作出行政处罚决定机关（中文名称）';
COMMENT ON COLUMN "CRGS"."CASE_CF_BASEINFO"."PENCONTENT" IS '处罚内容';
COMMENT ON COLUMN "CRGS"."CASE_CF_BASEINFO"."PENDECISSDATE" IS '作出处罚决定书日期';
COMMENT ON COLUMN "CRGS"."CASE_CF_BASEINFO"."PENDECNO" IS '处罚决定书文号';
COMMENT ON COLUMN "CRGS"."CASE_CF_BASEINFO"."PENTYPE" IS '处罚种类';
COMMENT ON COLUMN "CRGS"."CASE_CF_BASEINFO"."PENTYPE_CN" IS '处罚种类（中文名称）';
COMMENT ON COLUMN "CRGS"."CASE_CF_BASEINFO"."PUBLICDATE" IS '公示日期';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229600345234000" ON "CRGS"."CASE_CF_BASEINFO"("CASEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CASE_CRE_INFORMATION"
(
"CASECREID" VARCHAR(64) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(200),
"UNISCID" VARCHAR(28),
"CASEID" VARCHAR(100),
"REPAIRDATE" DATE,
"REPAUTH" VARCHAR(6),
"REPAUTH_CN" VARCHAR(200),
"REPDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"DATASOURCE" VARCHAR(50),
"REPAIRNO" VARCHAR(1500),
"REPAUTH_UNISCID" VARCHAR(150),
NOT CLUSTER PRIMARY KEY("CASECREID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."CASE_CRE_INFORMATION" IS '行政处罚信用修复信息';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."CASECREID" IS '行政处罚修复ID';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."CASEID" IS '行政处罚ID';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."DATASOURCE" IS '数据来源';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."REPAIRDATE" IS '申请修复日期';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."REPAIRNO" IS '信用修复决定书文号';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."REPAUTH" IS '作出信用修复决定的机关';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."REPAUTH_CN" IS '作出信用修复决定的机关（中文）';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."REPAUTH_UNISCID" IS '作出信用修复决定的机关社会统一信用代码';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."REPDATE" IS '信用修复决定时间';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."CASE_CRE_INFORMATION"."UNISCID" IS '统一社会信用代码';


CREATE TABLE "CRGS"."CASE_PUB_ALTER"
(
"CASEALTID" VARCHAR(50) NOT NULL,
"CASEID" VARCHAR(100),
"ALT" VARCHAR(36),
"ALTDATE" VARCHAR(200),
"PENAUTH" VARCHAR(50),
"PENAUTH_CN" VARCHAR(100),
"S_EXT_FROMNODE" VARCHAR(18),
"S_EXT_DATATIME" VARCHAR(50),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("CASEALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."CASE_PUB_ALTER" IS '行政处罚变更信息';
COMMENT ON COLUMN "CRGS"."CASE_PUB_ALTER"."ALT" IS '变更内容';
COMMENT ON COLUMN "CRGS"."CASE_PUB_ALTER"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "CRGS"."CASE_PUB_ALTER"."CASEALTID" IS '变更ID';
COMMENT ON COLUMN "CRGS"."CASE_PUB_ALTER"."CASEID" IS '案件基本信息ID';
COMMENT ON COLUMN "CRGS"."CASE_PUB_ALTER"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."CASE_PUB_ALTER"."PENAUTH" IS '作出变更决定机关';
COMMENT ON COLUMN "CRGS"."CASE_PUB_ALTER"."PENAUTH_CN" IS '作出变更决定机关（中文名称）';
COMMENT ON COLUMN "CRGS"."CASE_PUB_ALTER"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."CASE_PUB_ALTER"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."CASE_PUB_ALTER"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229598731700100" ON "CRGS"."CASE_PUB_ALTER"("CASEALTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CASE_PUB_BASEINFO"
(
"CASE_ID" VARCHAR(40) NOT NULL,
"PENDEC_NO" VARCHAR(50),
"ILLEGACT_TYPE" TEXT,
"PENTYPE" VARCHAR(100),
"PENAM" DEC(38,30),
"FORFAM" DEC(38,30),
"PENCONTENT" VARCHAR(2000),
"PENAUTH" VARCHAR(140),
"PENAUTH_CN" VARCHAR(50),
"PENDECISSDATE" TIMESTAMP(0),
"PUBLICDATE" TIMESTAMP(0),
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(26),
"CASE_NAME" VARCHAR(200),
"REMARK" VARCHAR(1000),
"PENDECISSDATE_STR" VARCHAR(100),
"PUBLICDATE_STR" VARCHAR(100),
"OFFSITEID" VARCHAR(1),
"LITIGANTTYPE" VARCHAR(1),
"ILLEGPT" VARCHAR(100),
"PENBASIS" VARCHAR(1500),
NOT CLUSTER PRIMARY KEY("CASE_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."CASE_PUB_BASEINFO" IS '行政处罚信息';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."CASE_ID" IS '案件基本信息ID';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."CASE_NAME" IS '案件名称';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."FORFAM" IS '没收金额';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."ILLEGACT_TYPE" IS '违法行为类型';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."PENAM" IS '处罚金额';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."PENAUTH" IS '作出行政处罚决定机关';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."PENAUTH_CN" IS '作出行政处罚决定机关（中文名称）';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."PENCONTENT" IS '处罚内容';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."PENDEC_NO" IS '处罚决定书文号';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."PENDECISSDATE" IS '作出处罚决定书日期';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."PENTYPE" IS '处罚种类';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."REGNO" IS '企业注册号';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."REMARK" IS '备注';
COMMENT ON COLUMN "CRGS"."CASE_PUB_BASEINFO"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229598154275700" ON "CRGS"."CASE_PUB_BASEINFO"("CASE_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDEX7229597621256600" ON "CRGS"."CASE_PUB_BASEINFO"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CASE_PUB_DOC"
(
"CASEDECBOOKID" VARCHAR(100) NOT NULL,
"CASEID" VARCHAR(100),
"FILENAME" VARCHAR(256),
"REMARK" VARCHAR(1000),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("CASEDECBOOKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."CASE_PUB_DOC" IS '行政处罚决定书信息';
COMMENT ON COLUMN "CRGS"."CASE_PUB_DOC"."CASEDECBOOKID" IS '处罚决定书ID';
COMMENT ON COLUMN "CRGS"."CASE_PUB_DOC"."CASEID" IS '案件基本信息ID';
COMMENT ON COLUMN "CRGS"."CASE_PUB_DOC"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."CASE_PUB_DOC"."FILENAME" IS '行政处罚决定书文件名称';
COMMENT ON COLUMN "CRGS"."CASE_PUB_DOC"."REMARK" IS '备注';
COMMENT ON COLUMN "CRGS"."CASE_PUB_DOC"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."CASE_PUB_DOC"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."CASE_PUB_DOC"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229597274785200" ON "CRGS"."CASE_PUB_DOC"("CASEDECBOOKID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CASE_PUB_NBASEINFO"
(
"CASEID" VARCHAR(300) NOT NULL,
"ACTYPE" VARCHAR(3),
"PRIPID" VARCHAR(108),
"ENTNAME" VARCHAR(300),
"UNISCID" VARCHAR(54),
"REGNO" VARCHAR(150),
"INSCERCODE" VARCHAR(36),
"SOCORGCODE" VARCHAR(150),
"ORGCODE" VARCHAR(27),
"TAXID" VARCHAR(60),
"LEREP" VARCHAR(600),
"CERTYPE" VARCHAR(6),
"CERNO" VARCHAR(192),
"NAME" VARCHAR(90),
"AC_CERTYPE" VARCHAR(6),
"AC_CERNO" VARCHAR(192),
"PENDECNO" VARCHAR(768),
"ILLEGACTTYPECODE" VARCHAR(18),
"ILLEGACTTYPE" VARCHAR(6000),
"MAINILLEGFACT" TEXT,
"PENBASIS" VARCHAR(600),
"PENBASIS_CN" TEXT,
"PENTYPE" TEXT,
"PENTYPE_CN" VARCHAR(6000),
"PENAM" DECIMAL(24,6),
"FORFAM" DECIMAL(24,6),
"PENDECISSDATE" TIMESTAMP(6),
"PENPERI" TIMESTAMP(6),
"PENAUTH" VARCHAR(192),
"PENAUTH_CN" VARCHAR(600),
"PENAUTHUNISCID" VARCHAR(54),
"PENCONTENT" TEXT,
"REVLICNUM" VARCHAR(600),
"PUBLICDATE" TIMESTAMP(6),
"PUBDEADLINE" TIMESTAMP(6),
"DATADEPT" VARCHAR(600),
"DATADEPTUNISCID" VARCHAR(54),
"REMARK" VARCHAR(3000),
"S_EXT_FROMNODE" VARCHAR(18),
"S_EXT_DATATIME" TIMESTAMP(6),
"CREATETIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP(),
"LASTUPDATETIME" TIMESTAMP(6),
NOT CLUSTER PRIMARY KEY("CASEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."CASE_PUB_NBASEINFO" IS '市场监管_行政处罚基本信息_2019';


CREATE TABLE "CRGS"."CASE_PUB_PARTYINFO"
(
"CASEPARTYID" VARCHAR(50) NOT NULL,
"CASEID" VARCHAR(100),
"PRIPID" VARCHAR(36),
"NAME" VARCHAR(200),
"GTREGNO" VARCHAR(50),
"UNITNAME" VARCHAR(100),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"LEREP" VARCHAR(200),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("CASEPARTYID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."CASE_PUB_PARTYINFO" IS '行政处罚当事人信息';
COMMENT ON COLUMN "CRGS"."CASE_PUB_PARTYINFO"."CASEID" IS '案件基本信息ID';
COMMENT ON COLUMN "CRGS"."CASE_PUB_PARTYINFO"."CASEPARTYID" IS '行政处罚当事人ID';
COMMENT ON COLUMN "CRGS"."CASE_PUB_PARTYINFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."CASE_PUB_PARTYINFO"."GTREGNO" IS '个体注册号';
COMMENT ON COLUMN "CRGS"."CASE_PUB_PARTYINFO"."LEREP" IS '法定代表人';
COMMENT ON COLUMN "CRGS"."CASE_PUB_PARTYINFO"."NAME" IS '姓名';
COMMENT ON COLUMN "CRGS"."CASE_PUB_PARTYINFO"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."CASE_PUB_PARTYINFO"."REGNO" IS '企业注册号';
COMMENT ON COLUMN "CRGS"."CASE_PUB_PARTYINFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."CASE_PUB_PARTYINFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."CASE_PUB_PARTYINFO"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."CASE_PUB_PARTYINFO"."UNITNAME" IS '单位名称';
COMMENT ON COLUMN "CRGS"."CASE_PUB_PARTYINFO"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229595178549700" ON "CRGS"."CASE_PUB_PARTYINFO"("CASEPARTYID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."COMMON_WORDS"
(
"CREATE_BY" VARCHAR(40) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(40) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(40) NOT NULL,
"WORD" VARCHAR(100) NOT NULL,
"MODULE_TAG" VARCHAR(20) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."COMMON_WORDS" IS '常用语（根据create_by按用户id查询）';
COMMENT ON COLUMN "CRGS"."COMMON_WORDS"."ID" IS '数据id';
COMMENT ON COLUMN "CRGS"."COMMON_WORDS"."MODULE_TAG" IS '模块标识';
COMMENT ON COLUMN "CRGS"."COMMON_WORDS"."WORD" IS '常用语';

CREATE OR REPLACE  INDEX "CRGS"."COMMON_WORDS_WORD_IDX" ON "CRGS"."COMMON_WORDS"("WORD" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."COMMON_WORDS_CREATE_BY_IDX" ON "CRGS"."COMMON_WORDS"("CREATE_BY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229594687655400" ON "CRGS"."COMMON_WORDS"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."COMMON_WORDS_UPDATE_TIME_IDX" ON "CRGS"."COMMON_WORDS"("UPDATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."COMPANY_INVESTMENT"
(
"ID" VARCHAR(40) NOT NULL,
"REPORT_ID" VARCHAR(40) NOT NULL,
"COMPANY_ID" VARCHAR(40) NOT NULL,
"ENT_NAME" VARCHAR(100) NOT NULL,
"USCC" VARCHAR(20) NOT NULL,
"CREATE_BY" VARCHAR(40) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(40) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."COMPANY_INVESTMENT" IS '企业对外投资';
COMMENT ON COLUMN "CRGS"."COMPANY_INVESTMENT"."COMPANY_ID" IS '投资者（企业）id';
COMMENT ON COLUMN "CRGS"."COMPANY_INVESTMENT"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."COMPANY_INVESTMENT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."COMPANY_INVESTMENT"."ENT_NAME" IS '被投资方名称';
COMMENT ON COLUMN "CRGS"."COMPANY_INVESTMENT"."ID" IS '对外投资记录id';
COMMENT ON COLUMN "CRGS"."COMPANY_INVESTMENT"."REPORT_ID" IS '年报基本信息id';
COMMENT ON COLUMN "CRGS"."COMPANY_INVESTMENT"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."COMPANY_INVESTMENT"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."COMPANY_INVESTMENT"."USCC" IS '被投资的企业注册号（有统一社会信用代码的企业优先填统一社会信用代码）';

CREATE OR REPLACE  INDEX "CRGS"."COMPANY_INVESTMENT_REPORT_ID_IDX" ON "CRGS"."COMPANY_INVESTMENT"("REPORT_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."COMPANY_INVESTMENT_COMPANY_ID_IDX" ON "CRGS"."COMPANY_INVESTMENT"("COMPANY_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229594060223900" ON "CRGS"."COMPANY_INVESTMENT"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."COMPANY_SHAREHOLDER"
(
"ID" VARCHAR(1024) NOT NULL,
"COMPANY_ID" VARCHAR(1024) NOT NULL,
"HOLDER_NAME" VARCHAR(1024) NOT NULL,
"HOLD_PERCENT" INT NOT NULL,
"HOLD_AMOUNT" VARCHAR(1024) NOT NULL,
"CREATE_BY" VARCHAR(40),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(40),
"UPDATE_TIME" TIMESTAMP(0),
"IS_QUITED" INT,
"INVEST_DATE" TIMESTAMP(0),
"QUIT_DATE" TIMESTAMP(0),
"HOLD_TOTAL" VARCHAR(1024)) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."COMPANY_SHAREHOLDER" IS '公司股东';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER"."COMPANY_ID" IS '企业id（关联企业表）';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER"."HOLD_AMOUNT" IS '累计认缴额  万元';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER"."HOLD_PERCENT" IS '持股百分比';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER"."HOLD_TOTAL" IS '累计实缴额  万元';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER"."HOLDER_NAME" IS '股东名称';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER"."ID" IS '企业股东id';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER"."INVEST_DATE" IS '入资时间';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER"."IS_QUITED" IS '是否已退出（0否1是）';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER"."QUIT_DATE" IS '退出日期';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER"."UPDATE_TIME" IS '更新时间';


CREATE TABLE "CRGS"."COMPANY_SHAREHOLDER_COPY1"
(
"ID" VARCHAR(36) NOT NULL,
"COMPANY_ID" VARCHAR(36) NOT NULL,
"HOLDER_NAME" TEXT NOT NULL,
"HOLD_PERCENT" INT NOT NULL,
"HOLD_AMOUNT" TEXT NOT NULL,
"CREATE_BY" VARCHAR(40) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(40) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"IS_QUITED" SMALLINT NOT NULL,
"INVEST_DATE" TIMESTAMP(0),
"QUIT_DATE" TIMESTAMP(0),
"HOLD_TOTAL" TEXT,
NOT CLUSTER PRIMARY KEY("ID", "UPDATE_BY")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."COMPANY_SHAREHOLDER_COPY1" IS '公司股东';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER_COPY1"."COMPANY_ID" IS '企业id（关联企业表）';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER_COPY1"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER_COPY1"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER_COPY1"."HOLD_AMOUNT" IS '累计认缴额  万元';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER_COPY1"."HOLD_PERCENT" IS '持股百分比';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER_COPY1"."HOLD_TOTAL" IS '累计实缴额  万元';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER_COPY1"."HOLDER_NAME" IS '股东名称';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER_COPY1"."ID" IS '企业股东id';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER_COPY1"."INVEST_DATE" IS '入资时间';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER_COPY1"."IS_QUITED" IS '是否已退出（0否1是）';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER_COPY1"."QUIT_DATE" IS '退出日期';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER_COPY1"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."COMPANY_SHAREHOLDER_COPY1"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229591443847500" ON "CRGS"."COMPANY_SHAREHOLDER_COPY1"("ID" ASC,"UPDATE_BY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."COMPANY_SHAREHOLDER_COMPANY_ID_IDX_COPY1" ON "CRGS"."COMPANY_SHAREHOLDER_COPY1"("COMPANY_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."COMPANY_TAGS"
(
"CREATE_BY" VARCHAR(40) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(40) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(40) NOT NULL,
"COMPANY_ID" VARCHAR(40) NOT NULL,
"TAG_ID" VARCHAR(40) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."COMPANY_TAGS" IS '企业标签记录';
COMMENT ON COLUMN "CRGS"."COMPANY_TAGS"."COMPANY_ID" IS '企业信息id';
COMMENT ON COLUMN "CRGS"."COMPANY_TAGS"."TAG_ID" IS '标签id';

CREATE OR REPLACE  INDEX "CRGS"."IDX_COMPANY_ID" ON "CRGS"."COMPANY_TAGS"("COMPANY_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."IDX_COMPANY_ID_TAG_ID" ON "CRGS"."COMPANY_TAGS"("COMPANY_ID" ASC,"TAG_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229587614234200" ON "CRGS"."COMPANY_TAGS"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CONTACT_LOG"
(
"ID" VARCHAR(40) NOT NULL,
"OPERATORNAME" VARCHAR(255) NOT NULL,
"PRIPID" VARCHAR(40) NOT NULL,
"OPERATORID" VARCHAR(40) NOT NULL,
"OPERATIONTIME" TIMESTAMP(6) NOT NULL,
"CONTENTTEXT" VARCHAR(2000),
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "PK_CONTACT_LOG" CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "CRGS"."IDX_CONTACT_LOG_ID" ON "CRGS"."CONTACT_LOG"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."IDX_CONTACT_LOG_PRIPID" ON "CRGS"."CONTACT_LOG"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CPBRA_INFO"
(
"BRID" VARCHAR(80) NOT NULL,
"PRIPID" VARCHAR(80),
"BRNAME" VARCHAR(240),
"REGNO" VARCHAR(160),
"UNISCID" VARCHAR(160),
"REGORG" VARCHAR(160),
"REGORG_CN" VARCHAR(200),
NOT CLUSTER PRIMARY KEY("BRID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."CPBRA_INFO" IS '分支机构';
COMMENT ON COLUMN "CRGS"."CPBRA_INFO"."BRNAME" IS '分支机构名称';
COMMENT ON COLUMN "CRGS"."CPBRA_INFO"."PRIPID" IS '主体id';
COMMENT ON COLUMN "CRGS"."CPBRA_INFO"."REGNO" IS '注册编号';
COMMENT ON COLUMN "CRGS"."CPBRA_INFO"."REGORG" IS '注册机构';
COMMENT ON COLUMN "CRGS"."CPBRA_INFO"."REGORG_CN" IS '注册机构（中文）';
COMMENT ON COLUMN "CRGS"."CPBRA_INFO"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "CRGS"."INDEX7229580483542900" ON "CRGS"."CPBRA_INFO"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229580620459200" ON "CRGS"."CPBRA_INFO"("BRID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDEX7229579974796000" ON "CRGS"."CPBRA_INFO"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CPENTINFO_Q1Y"
(
"PRIPID" VARCHAR(40) NOT NULL,
"REGNO" VARCHAR(64),
"UNISCID" VARCHAR(50),
"ENTNAME" VARCHAR(200),
"ENTTYPE" VARCHAR(8),
"ENTTYPE_CN" VARCHAR(100),
"LEREP" VARCHAR(200),
"REGCAP" DEC(24,6),
"CURRENCY" VARCHAR(3),
"CURRENCY_CN" VARCHAR(40),
"DOM" VARCHAR(400),
"OPLOC" TEXT,
"OPFROM" TIMESTAMP(0),
"OPTO" TIMESTAMP(0),
"OPSCOPE" TEXT,
"OPSCOTYPE" VARCHAR(200),
"OPSCOTYPE_CN" VARCHAR(60),
"REGORG" VARCHAR(18),
"REGORG_CN" VARCHAR(100),
"SUPORG" VARCHAR(20),
"SUPORG_CN" VARCHAR(100),
"SAREACODE" VARCHAR(24),
"SAREACODE_CN" VARCHAR(200),
"REGSTATE" VARCHAR(4),
"REGSTATE_CN" VARCHAR(40),
"ESTDATE" TIMESTAMP(0),
"APPRDATE" TIMESTAMP(0),
"REVDATE" TIMESTAMP(0),
"SUGREVREASON" VARCHAR(400),
"LINKMANNAME" VARCHAR(100),
"LINKMANCERNO" VARCHAR(80),
"LINKMANPHONE" VARCHAR(80),
"INDUSTRYCO" VARCHAR(4),
"INDUSTRYPHY" VARCHAR(1),
"CONGROUSD" DEC(36,6),
"CONGRO" DEC(36,6),
"CONGROCUR" VARCHAR(3),
"MEMO" TEXT,
"CANREGREA" VARCHAR(400),
"ETLTIMESTAMP" TIMESTAMP(0),
"S_EXT_DATATIME" TIMESTAMP(0),
"ENTSTATE" VARCHAR(200),
"SAREACODE_JX" VARCHAR(96),
"SAREANAME_JX" VARCHAR(200),
"SAREACODE_JXMX" VARCHAR(400),
"SAREANAME_JXMX" VARCHAR(400),
"ID" VARCHAR(200) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229579768167100" ON "CRGS"."CPENTINFO_Q1Y"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CPILL_INFO"
(
"ILLID" VARCHAR(40) NOT NULL,
"PRIPID" VARCHAR(40) NOT NULL,
"SPECAUSE" VARCHAR(80),
"SPECAUSE_CN" VARCHAR(400),
"DECORG" VARCHAR(80),
"DECORG_CN" VARCHAR(80),
"REMEXCPRES" VARCHAR(400),
"REMEXCPRES_CN" VARCHAR(400),
"REDECORG" VARCHAR(80),
"REDECORG_CN" TEXT,
"REDOCNUM" VARCHAR(80),
"ABNTIME" TIMESTAMP(0),
"REMDATE" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ILLID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."CPILL_INFO" IS '失信企业名录';
COMMENT ON COLUMN "CRGS"."CPILL_INFO"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "CRGS"."CPILL_INFO"."DECORG" IS '列入决定机关';
COMMENT ON COLUMN "CRGS"."CPILL_INFO"."DECORG_CN" IS '列入决定机关中文';
COMMENT ON COLUMN "CRGS"."CPILL_INFO"."ILLID" IS '失信信息id';
COMMENT ON COLUMN "CRGS"."CPILL_INFO"."PRIPID" IS '主体id';
COMMENT ON COLUMN "CRGS"."CPILL_INFO"."REDECORG" IS '移除决定机关';
COMMENT ON COLUMN "CRGS"."CPILL_INFO"."REDECORG_CN" IS '移除决定机关（中文）';
COMMENT ON COLUMN "CRGS"."CPILL_INFO"."REDOCNUM" IS '移除文书号';
COMMENT ON COLUMN "CRGS"."CPILL_INFO"."REMDATE" IS '移除日期';
COMMENT ON COLUMN "CRGS"."CPILL_INFO"."REMEXCPRES" IS '移出经营异常名录原因';
COMMENT ON COLUMN "CRGS"."CPILL_INFO"."REMEXCPRES_CN" IS '移出经营异常名录原因（中文）';
COMMENT ON COLUMN "CRGS"."CPILL_INFO"."SPECAUSE" IS '列入失信企业名录原因类型';
COMMENT ON COLUMN "CRGS"."CPILL_INFO"."SPECAUSE_CN" IS '列入失信企业名录原因类型（中文）';

CREATE OR REPLACE  INDEX "CRGS"."INDEX7229574859338400" ON "CRGS"."CPILL_INFO"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229575077018700" ON "CRGS"."CPILL_INFO"("ILLID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CPPENALTY_INFO_GS"
(
"CASE_ID" VARCHAR(80) NOT NULL,
"PENDEC_NO" VARCHAR(100),
"ILLEGACT_TYPE" TEXT,
"PENTYPE" VARCHAR(200),
"PENAM" DEC(38,30),
"FORFAM" DEC(38,30),
"PENCONTENT" TEXT,
"PENAUTH" VARCHAR(280),
"PENAUTH_CN" VARCHAR(100),
"PENDECISSDATE" TIMESTAMP(0),
"PUBLICDATE" TIMESTAMP(0),
"PRIPID" VARCHAR(72),
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(52),
"CASE_NAME" VARCHAR(400),
"REMARK" TEXT,
"PENDECISSDATE_STR" VARCHAR(200),
"PUBLICDATE_STR" VARCHAR(200),
"OFFSITEID" VARCHAR(2),
"LITIGANTTYPE" VARCHAR(2),
"ILLEGPT" VARCHAR(200),
"PENBASIS" TEXT,
NOT CLUSTER PRIMARY KEY("CASE_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."CPPENALTY_INFO_GS" IS '行政处罚信息';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."CASE_ID" IS '案件基本信息ID';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."CASE_NAME" IS '案件名称';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."FORFAM" IS '没收金额';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."ILLEGACT_TYPE" IS '违法行为类型';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."PENAM" IS '处罚金额';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."PENAUTH" IS '作出行政处罚决定机关';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."PENAUTH_CN" IS '作出行政处罚决定机关（中文名称）';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."PENCONTENT" IS '处罚内容';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."PENDEC_NO" IS '处罚决定书文号';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."PENDECISSDATE" IS '作出处罚决定书日期';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."PENTYPE" IS '处罚种类';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."REGNO" IS '企业注册号';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."REMARK" IS '备注';
COMMENT ON COLUMN "CRGS"."CPPENALTY_INFO_GS"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "CRGS"."CPPENALTY_INFO_GS_UNISCID_IDX" ON "CRGS"."CPPENALTY_INFO_GS"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229574373635300" ON "CRGS"."CPPENALTY_INFO_GS"("CASE_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."CPPENALTY_INFO_GS_PRIPID_IDX" ON "CRGS"."CPPENALTY_INFO_GS"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CPUNU_ABNORMAL"
(
"BUSEXCLIST" VARCHAR(40) NOT NULL,
"PRIPID" VARCHAR(40) NOT NULL,
"SPECAUSE" VARCHAR(40),
"SPECAUSE_CN" VARCHAR(100),
"DECORG" VARCHAR(40),
"DECORG_CN" VARCHAR(100),
"REMEXCPRES" VARCHAR(40),
"REMEXCPRES_CN" VARCHAR(100),
"REDECORG" VARCHAR(40),
"REDECORG_CN" VARCHAR(100),
"SREMOVETYPE" VARCHAR(40),
"ABNTIME" TIMESTAMP(0),
"REMDATE" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("BUSEXCLIST")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."CPUNU_ABNORMAL" IS '经营异常名录';
COMMENT ON COLUMN "CRGS"."CPUNU_ABNORMAL"."ABNTIME" IS '列入时间';
COMMENT ON COLUMN "CRGS"."CPUNU_ABNORMAL"."BUSEXCLIST" IS '异常名录id';
COMMENT ON COLUMN "CRGS"."CPUNU_ABNORMAL"."DECORG" IS '列入决定机关';
COMMENT ON COLUMN "CRGS"."CPUNU_ABNORMAL"."DECORG_CN" IS '列入决定机关中文';
COMMENT ON COLUMN "CRGS"."CPUNU_ABNORMAL"."PRIPID" IS '主体id';
COMMENT ON COLUMN "CRGS"."CPUNU_ABNORMAL"."REDECORG" IS '移除决定机关';
COMMENT ON COLUMN "CRGS"."CPUNU_ABNORMAL"."REDECORG_CN" IS '移出决定机关中文';
COMMENT ON COLUMN "CRGS"."CPUNU_ABNORMAL"."REMDATE" IS '移出日期';
COMMENT ON COLUMN "CRGS"."CPUNU_ABNORMAL"."REMEXCPRES" IS '移出经营异常名录原因';
COMMENT ON COLUMN "CRGS"."CPUNU_ABNORMAL"."REMEXCPRES_CN" IS '移出经营异常名录原因中文';
COMMENT ON COLUMN "CRGS"."CPUNU_ABNORMAL"."SPECAUSE" IS '列入经营异常名录原因类型';
COMMENT ON COLUMN "CRGS"."CPUNU_ABNORMAL"."SPECAUSE_CN" IS '列入经营异常名录原因类型中文';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229564794760800" ON "CRGS"."CPUNU_ABNORMAL"("BUSEXCLIST" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."CPUNU_ABNORMAL_PRIPID_IDX" ON "CRGS"."CPUNU_ABNORMAL"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CREDIBLE_COMPANY"
(
"TBID" VARCHAR(80) NOT NULL,
"ID" VARCHAR(80) NOT NULL,
"SCZTBM" VARCHAR(80),
"QYMC" VARCHAR(100),
"ND" VARCHAR(80),
"S_STATUS" VARCHAR(4),
"UNISCID" VARCHAR(80),
NOT CLUSTER PRIMARY KEY("TBID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."CREDIBLE_COMPANY" IS '守合同重信用企业';
COMMENT ON COLUMN "CRGS"."CREDIBLE_COMPANY"."ID" IS '数据id';
COMMENT ON COLUMN "CRGS"."CREDIBLE_COMPANY"."ND" IS '纳入年份';
COMMENT ON COLUMN "CRGS"."CREDIBLE_COMPANY"."QYMC" IS '主体名称';
COMMENT ON COLUMN "CRGS"."CREDIBLE_COMPANY"."S_STATUS" IS '主体状态';
COMMENT ON COLUMN "CRGS"."CREDIBLE_COMPANY"."SCZTBM" IS '主体id';
COMMENT ON COLUMN "CRGS"."CREDIBLE_COMPANY"."TBID" IS '表id';
COMMENT ON COLUMN "CRGS"."CREDIBLE_COMPANY"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "CRGS"."CREDIBLE_COMPANY_IDX_ID" ON "CRGS"."CREDIBLE_COMPANY"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."CREDIBLE_COMPANY_IDX_SCZTBM" ON "CRGS"."CREDIBLE_COMPANY"("SCZTBM" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229556759444700" ON "CRGS"."CREDIBLE_COMPANY"("TBID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CREDIT_SCORE_INFO"
(
"PRIPID" VARCHAR2(36) NOT NULL,
"UNISCID" VARCHAR2(18),
"SCORE" DECIMAL(24,6),
"CLASSIFY" VARCHAR2(2),
"CREATED_BY" VARCHAR2(32),
"CREATED_TIME" DATE,
"UPDATED_BY" VARCHAR2(32),
"UPDATED_TIME" DATE,
"IS_FORCE" VARCHAR(1),
CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."CREDIT_SCORE_INFO" IS '市场主体当前信用评分信息表';
COMMENT ON COLUMN "CRGS"."CREDIT_SCORE_INFO"."CLASSIFY" IS '风险评级（英文编码）';
COMMENT ON COLUMN "CRGS"."CREDIT_SCORE_INFO"."CREATED_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."CREDIT_SCORE_INFO"."CREATED_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."CREDIT_SCORE_INFO"."IS_FORCE" IS '是否为定性评级（0否1是）';
COMMENT ON COLUMN "CRGS"."CREDIT_SCORE_INFO"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."CREDIT_SCORE_INFO"."SCORE" IS '信用评分';
COMMENT ON COLUMN "CRGS"."CREDIT_SCORE_INFO"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."CREDIT_SCORE_INFO"."UPDATED_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."CREDIT_SCORE_INFO"."UPDATED_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."CREDIT_SCORE_INFO_UNISCID_IDX" ON "CRGS"."CREDIT_SCORE_INFO"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."CREDIT_SCORE_INFO_CLASSIFY_IDX" ON "CRGS"."CREDIT_SCORE_INFO"("CLASSIFY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."CREDIT_SCORE_INFO_UPDATE_TIME_IDX" ON "CRGS"."CREDIT_SCORE_INFO"("UPDATED_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."CREDIT_SCORE_TEMP"
(
"PRIPID" VARCHAR(36) NOT NULL,
"SCORE" DECIMAL(24,6),
CONSTRAINT "CREDIT_SCORE_TEMP_PK" CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."CREDIT_SCORE_TEMP" IS '测试用暂存信用分值表';
COMMENT ON COLUMN "CRGS"."CREDIT_SCORE_TEMP"."SCORE" IS '分值';


CREATE TABLE "CRGS"."CREDIT_SHARE_QYGGXYXXZHPJJGXX"
(
"S_GUID" VARCHAR(38) NOT NULL,
"S_CREATION_TIME" TIMESTAMP(6) DEFAULT SYSDATE,
"S_LAST_UPDATED" TIMESTAMP(6) DEFAULT SYSDATE,
"S_STATUS" VARCHAR(1) DEFAULT '0',
"S_TRANS_STATUS" VARCHAR(2) DEFAULT '00',
"S_ROUTE_STATUS" VARCHAR(2) DEFAULT '00',
"S_SRC_NODE" VARCHAR(80),
"S_DEST_NODE" VARCHAR(80),
"QYMC" VARCHAR(200),
"TYSHXYDM" VARCHAR(50),
"PJDJ" VARCHAR(50),
"PJFS" VARCHAR(50),
"HYML" VARCHAR(50),
"HYDM" VARCHAR(50),
"PJRQ" TIMESTAMP(0),
"PJDW" VARCHAR(200),
"PJDWTYSHXYDM" VARCHAR(50),
"ID" INT,
"XZQH" VARCHAR(50)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."DATA_COLLECT_TASK"
(
"TASK_ID" VARCHAR2(32) NOT NULL,
"SOURCE_ID" INTEGER,
"TASK_NAME" VARCHAR2(90),
"DATA_AMOUNT" INTEGER DEFAULT 0,
"IS_DELETED" VARCHAR2(1) DEFAULT '0',
"CREATED_BY" VARCHAR(36),
"CREATED_TIME" DATE,
"UPDATED_BY" VARCHAR(36),
"UPDATED_TIME" DATE,
CLUSTER PRIMARY KEY("TASK_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK"."CREATED_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK"."CREATED_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK"."DATA_AMOUNT" IS '名单数量';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK"."IS_DELETED" IS '是否删除（0否1是）';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK"."SOURCE_ID" IS '数据源id';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK"."TASK_ID" IS '数据主键';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK"."TASK_NAME" IS '任务名';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK"."UPDATED_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK"."UPDATED_TIME" IS '更新时间';


CREATE TABLE "CRGS"."DATA_COLLECT_TASK_NAME_LIST"
(
"ID" VARCHAR2(32),
"TASK_ID" VARCHAR2(32),
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"REGSTATE" VARCHAR(1),
"CLASSIFY" VARCHAR(64),
"STATE" VARCHAR2(1),
"FAIL_REASON" VARCHAR2(255),
"CREATED_TIME" DATE,
"UPDATED_TIME" DATE,
"CREATED_BY" VARCHAR(50),
"UPDATED_BY" VARCHAR(50)) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK_NAME_LIST"."CLASSIFY" IS '分类标识（导入时标识）';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK_NAME_LIST"."CREATED_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK_NAME_LIST"."CREATED_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK_NAME_LIST"."ENTNAME" IS '市场主体名称（采集后存储）';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK_NAME_LIST"."FAIL_REASON" IS '采集失败原因';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK_NAME_LIST"."ID" IS '数据主键';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK_NAME_LIST"."PRIPID" IS '市场主体主键（采集后存储）';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK_NAME_LIST"."REGSTATE" IS '市场主体状态（采集后存储）';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK_NAME_LIST"."STATE" IS '状态（0：未采集；1：已采集；2：采集失败）';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK_NAME_LIST"."TASK_ID" IS '任务主键';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK_NAME_LIST"."UNISCID" IS '统一社会信用代码（导入名单）';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK_NAME_LIST"."UPDATED_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."DATA_COLLECT_TASK_NAME_LIST"."UPDATED_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."DATA_COLLECT_TASK_NAME_LIST_TASK_ID_IDX" ON "CRGS"."DATA_COLLECT_TASK_NAME_LIST"("TASK_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."DATA_POOL_GTH"
(
"DID" VARCHAR2(32) NOT NULL,
"SOURCE_IDS" VARCHAR(100),
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F1000" DECIMAL(24,6) DEFAULT 0,
"F1001" DECIMAL(24,6) DEFAULT 0,
"F1002" DECIMAL(24,6) DEFAULT 0,
"F1003" DECIMAL(24,6) DEFAULT 0,
"F1100" DECIMAL(24,6) DEFAULT 0,
"F1101" DECIMAL(24,6) DEFAULT 0,
"F1102" DECIMAL(24,6) DEFAULT 0,
"F1103" DECIMAL(24,6) DEFAULT 0,
"F1104" DECIMAL(24,6) DEFAULT 0,
"F1105" DECIMAL(24,6) DEFAULT 0,
"F1106" DECIMAL(24,6) DEFAULT 0,
"F1107" DECIMAL(24,6) DEFAULT 0,
"F1108" DECIMAL(24,6) DEFAULT 0,
"F1109" DECIMAL(24,6) DEFAULT 0,
"F1200" DECIMAL(24,6) DEFAULT 0,
"F1201" DECIMAL(24,6) DEFAULT 0,
"F1202" DECIMAL(24,6) DEFAULT 0,
"F1203" DECIMAL(24,6) DEFAULT 0,
"F1204" DECIMAL(24,6) DEFAULT 0,
"F1205" DECIMAL(24,6) DEFAULT 0,
"F1206" DECIMAL(24,6) DEFAULT 0,
"F1207" DECIMAL(24,6) DEFAULT 0,
"F1208" DECIMAL(24,6) DEFAULT 0,
"F1209" DECIMAL(24,6) DEFAULT 0,
"F1300" DECIMAL(24,6) DEFAULT 0,
"F1400" DECIMAL(24,6) DEFAULT 0,
"F1401" DECIMAL(24,6) DEFAULT 0,
"F1402" DECIMAL(24,6) DEFAULT 0,
"DATA_STATUS" VARCHAR2(1),
"CLASSIFY" VARCHAR2(1),
"UPDATE_TIME" DATE,
CLUSTER PRIMARY KEY("DID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."CLASSIFY" IS '业务分类';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."DATA_STATUS" IS '数据状态（0：未采集特征；1：已采集特征）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1000" IS '从业人数（特征编码：1000）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1001" IS '成立距今时长（特征编码：1001）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1002" IS '经营范围及所属行业类型（特征编码：1002）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1003" IS '经营者组成形式（特征编码：1003）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1100" IS '各类许可和准入证件数量（特征编码：1100）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1101" IS '相关证照过期或失效（特征编码：1101）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1102" IS '登记事项频繁变更（特征编码：1102）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1103" IS '一人多户（特征编码：1103）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1104" IS '一址多照（特征编码：1104）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1105" IS '是否按时年报（特征编码：1105）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1106" IS '年报是否零申报或数据填报异常（特征编码：1106）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1107" IS '是否纳税申报（特征编码：1107）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1108" IS '是否正常参加养老保险、失业保险、工伤保险（特征编码：1108）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1109" IS '三年内个体户社保是否有累计欠费（特征编码：1109）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1200" IS '三年内有过标记为异常状态情形（特征编码：1200）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1201" IS '因通过登记的住所或者经营场所无法联系标记为异常状态且近一年未年报（特征编码：1201）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1202" IS '近三年内被标异的次数（特征编码：1202）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1203" IS '三年内受到行政处罚次数（特征编码：1203）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1204" IS '三年内所受行政处罚种类（特征编码：1204）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1205" IS '近三年内受到行政处罚的罚款认定程度（特征编码：1205）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1206" IS '抽查检查情况（特征编码：1206）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1207" IS '行政检查结果（特征编码：1207）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1208" IS '行政检查发现问题占比（特征编码：1208）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1209" IS '当前是否被列入严重违失信名单（黑名单）、失信被执行人、纳税非正常户（特征编码：1209）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1300" IS '经营者是否为虚假登记责任人、失信被执行人、是否被列入严重违法失信名单（黑名单）（特征编码：1300）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1400" IS '近一年内12345/12315等平台的投诉次数（特征编码：1400）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1401" IS '近一年内12345/12315等平台的举报次数（特征编码：1401）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."F1402" IS '信用中国（广州）评级结果（特征编码：1402）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."SOURCE_IDS" IS '数据源id（多个用半角逗号分隔）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_GTH_PRIPID_IDX" ON "CRGS"."DATA_POOL_GTH"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_GTH_UPDATE_TIME_IDX" ON "CRGS"."DATA_POOL_GTH"("UPDATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_GTH_UNISCID_IDX" ON "CRGS"."DATA_POOL_GTH"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_GTH_CLASSIFY_IDX" ON "CRGS"."DATA_POOL_GTH"("CLASSIFY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_GTH_SOURCE_IDS_IDX" ON "CRGS"."DATA_POOL_GTH"("SOURCE_IDS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."DATA_POOL_GTH1"
(
"DID" VARCHAR2(32) NOT NULL,
"SOURCE_IDS" VARCHAR(100),
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F1" DECIMAL(24,6),
"F2" DECIMAL(24,6),
"F3" DECIMAL(24,6),
"F4" DECIMAL(24,6),
"F5" DECIMAL(24,6),
"F6" DECIMAL(24,6),
"F7" DECIMAL(24,6),
"F8" DECIMAL(24,6),
"F9" DECIMAL(24,6),
"F10" DECIMAL(24,6),
"F11" DECIMAL(24,6),
"F12" DECIMAL(24,6),
"F13" DECIMAL(24,6),
"F14" DECIMAL(24,6),
"F15" DECIMAL(24,6),
"F16" DECIMAL(24,6),
"F17" DECIMAL(24,6),
"F18" DECIMAL(24,6),
"F19" DECIMAL(24,6),
"F20" DECIMAL(24,6),
"F21" DECIMAL(24,6),
"F22" DECIMAL(24,6),
"F23" DECIMAL(24,6),
"F24" DECIMAL(24,6),
"F25" DECIMAL(24,6),
"F26" DECIMAL(24,6),
"F27" DECIMAL(24,6),
"F28" DECIMAL(24,6),
"F29" DECIMAL(24,6),
"F30" DECIMAL(24,6),
"F31" DECIMAL(24,6),
"F32" DECIMAL(24,6),
"F33" DECIMAL(24,6),
"F34" DECIMAL(24,6),
"F35" DECIMAL(24,6),
"F36" DECIMAL(24,6),
"F37" DECIMAL(24,6),
"F38" DECIMAL(24,6),
"F39" DECIMAL(24,6),
"F40" DECIMAL(24,6),
"F41" DECIMAL(24,6),
"F42" DECIMAL(24,6),
"F43" DECIMAL(24,6),
"F44" DECIMAL(24,6),
"F45" DECIMAL(24,6),
"F46" DECIMAL(24,6),
"F47" DECIMAL(24,6),
"DATA_STATUS" VARCHAR2(1),
"CLASSIFY" VARCHAR2(1),
"UPDATE_TIME" DATE,
CLUSTER PRIMARY KEY("DID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."CLASSIFY" IS '业务分类';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."DATA_STATUS" IS '数据状态（0：未采集特征；1：已采集特征）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F1" IS '资金数额规模';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F10" IS '经营者组成形式';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F11" IS '经营者年龄';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F12" IS '个体工商户是否含特定群体';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F13" IS '个体工商户非公党建情况';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F14" IS '登记事项频繁变更';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F15" IS '关联经营';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F16" IS '一人多照';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F17" IS '一址多户';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F18" IS '年报情况';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F19" IS '有效注册商标数量和授权专利数量';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F2" IS '成立距今时长';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F20" IS '年报经营性指标是否零申报或数据填报异常';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F21" IS '营业额或营业收入';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F22" IS '是否纳税申报';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F23" IS '是否正常参加养老保险、失业保险、工伤保险';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F24" IS '三年内个体户社保是否有累计欠费';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F25" IS '一年内12315等平台投诉举报次数变化情况';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F26" IS '高度关注或短期内异常增长行业';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F27" IS '三个月内负面舆情条数和网络交易监测提示需要关注的个体工商户';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F28" IS '其他相关行业信用评价结果';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F29" IS '三年内有过被标记经营异常状态情形';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F3" IS '从业人数';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F30" IS '连续两年标记为经营异常状态且近一年未年报';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F31" IS '因通过登记的住所或者经营场所无法联系标记经营异常状态';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F32" IS '当前是否存在违反承诺情况';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F33" IS '是否存在信用修复情形';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F34" IS '申请信用修复后再次受到同类信用约束或行政处罚';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F35" IS '经营者当前是否被列入严重违法失信名单（黑名单）、失信被执行人、纳税非正常户';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F36" IS '三年内经营者被列入严重违法失信名单（黑名单）、失信被执行人次数';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F37" IS '三年内受到行政处罚次数和金额';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F38" IS '三年内所受行政处罚种类';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F39" IS '三年内诉讼数量和金额';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F4" IS '经营范围及所属行业类型';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F40" IS '近三年内受到行政处罚的罚款认定程度';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F41" IS '抽查检查情况';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F42" IS '行政检查结果';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F43" IS '行政检查发现问题占比';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F44" IS '经营者及家庭经营成员关联经营主体的信用风险类别';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F45" IS '家庭经营成成员为虚假登记责任人、失信被执行人、被列入严重违法失信名单(黑名单)人数';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F46" IS '关联经营主体行政处罚及列异比例';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F47" IS '关联经营主体被吊销、列入严重违法失信名单(失信被执行人、黑名单)比例';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F5" IS '是否线上经营';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F6" IS '是否“名特优新”';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F7" IS '个体工商户分型情况';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F8" IS '各类许可和准入证件数量';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."F9" IS '相关证照过期或失效';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."SOURCE_IDS" IS '数据源id（多个用半角逗号分隔）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."DATA_POOL_GTH1"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_GTH1_CLASSIFY_IDX" ON "CRGS"."DATA_POOL_GTH1"("CLASSIFY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_GTH1_PRIPID_IDX" ON "CRGS"."DATA_POOL_GTH1"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_GTH1_SOURCE_IDS_IDX" ON "CRGS"."DATA_POOL_GTH1"("SOURCE_IDS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_GTH1_UNISCID_IDX" ON "CRGS"."DATA_POOL_GTH1"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_GTH1_UPDATE_TIME_IDX" ON "CRGS"."DATA_POOL_GTH1"("UPDATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."DATA_POOL_NZ"
(
"DID" VARCHAR2(32) NOT NULL,
"SOURCE_IDS" VARCHAR(100),
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F2000" DECIMAL(24,6) DEFAULT 0,
"F2001" DECIMAL(24,6) DEFAULT 0,
"F2002" DECIMAL(24,6) DEFAULT 0,
"F2003" DECIMAL(24,6) DEFAULT 0,
"F2100" DECIMAL(24,6) DEFAULT 0,
"F2101" DECIMAL(24,6) DEFAULT 0,
"F2102" DECIMAL(24,6) DEFAULT 0,
"F2103" DECIMAL(24,6) DEFAULT 0,
"F2104" DECIMAL(24,6) DEFAULT 0,
"F2105" DECIMAL(24,6) DEFAULT 0,
"F2106" DECIMAL(24,6) DEFAULT 0,
"F2107" DECIMAL(24,6) DEFAULT 0,
"F2108" DECIMAL(24,6) DEFAULT 0,
"F2109" DECIMAL(24,6) DEFAULT 0,
"F2110" DECIMAL(24,6) DEFAULT 0,
"F2111" DECIMAL(24,6) DEFAULT 0,
"F2112" DECIMAL(24,6) DEFAULT 0,
"F2113" DECIMAL(24,6) DEFAULT 0,
"F2114" DECIMAL(24,6) DEFAULT 0,
"F2115" DECIMAL(24,6) DEFAULT 0,
"F2116" DECIMAL(24,6) DEFAULT 0,
"F2117" DECIMAL(24,6) DEFAULT 0,
"F2201" DECIMAL(24,6) DEFAULT 0,
"F2202" DECIMAL(24,6) DEFAULT 0,
"F2203" DECIMAL(24,6) DEFAULT 0,
"F2204" DECIMAL(24,6) DEFAULT 0,
"F2205" DECIMAL(24,6) DEFAULT 0,
"F2206" DECIMAL(24,6) DEFAULT 0,
"F2207" DECIMAL(24,6) DEFAULT 0,
"F2208" DECIMAL(24,6) DEFAULT 0,
"F2209" DECIMAL(24,6) DEFAULT 0,
"F22090" DECIMAL(24,6) DEFAULT 0,
"F2210" DECIMAL(24,6) DEFAULT 0,
"F2211" DECIMAL(24,6) DEFAULT 0,
"F2212" DECIMAL(24,6) DEFAULT 0,
"F2300" DECIMAL(24,6) DEFAULT 0,
"F2400" DECIMAL(24,6) DEFAULT 0,
"F2401" DECIMAL(24,6) DEFAULT 0,
"F2402" DECIMAL(24,6) DEFAULT 0,
"DATA_STATUS" VARCHAR2(1),
"CLASSIFY" VARCHAR(1),
"UPDATE_TIME" DATE,
CLUSTER PRIMARY KEY("DID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."CLASSIFY" IS '业务分类';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."DATA_STATUS" IS '数据状态（0：未采集特征；1：已采集特征）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2000" IS '出资总额（特征编码：2000）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2001" IS '成员人数（特征编码：2001）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2002" IS '成立距今时长（特征编码：2002）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2003" IS '理事长（法定代表人）年龄（特征编码：2003）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2100" IS '各类许可和准入证件数量（特征编码：2100）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2101" IS '相关证照过期或失效（特征编码：2101）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2102" IS '登记事项频繁变更（特征编码：2102）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2103" IS '是否按时年报（特征编码：2103）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2104" IS '年报是否零申报或数据填报异常（特征编码：2104）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2105" IS '是否自我声明公开农专社执行的标准（特征编码：2105）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2106" IS '年报或登记状态显示已停业、歇业（特征编码：2106）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2107" IS '近一年亏损程度（特征编码：2107）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2108" IS '近三年内亏损次数（特征编码：2108）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2109" IS '是否纳税申报（特征编码：2109）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2110" IS '是否正常参加养老保险、失业保险、工伤保险等社会保险（特征编码：2110）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2111" IS '三年内农专社社保是否有累计欠费（特征编码：2111）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2112" IS '有效注册商标数量（特征编码：2112）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2113" IS '知识产权出质数量（特征编码：2113）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2114" IS '有效授权专利数量（特征编码：2114）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2115" IS '获得管理体系认证或服务认证证书、相关产品认证证书数量（特征编码：2115）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2116" IS '三年内因质量或诚信原因被撤销认证证书的数量（特征编码：2116）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2117" IS '当前是否存在违反承诺情形（特征编码：2117）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2201" IS '申请信用修复后再次受到同类信用约束或行政处罚（特征编码：2201）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2202" IS '三年内有过列入经营异常名录情形（特征编码：2202）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2203" IS '当前列入经营异常名录或三年内列入经营异常名录次数超过2次（特征编码：2203）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2204" IS '因通过登记的住所或者经营场所无法联系列入经营异常名录且近一年未年报（特征编码：2204）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2205" IS '三年内受到行政处罚次数（特征编码：2205）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2206" IS '三年内被罚没金额（特征编码：2206）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2207" IS '三年内所受行政处罚种类（特征编码：2207）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2208" IS '行政检查结果（特征编码：2208）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2209" IS '行政检查发现问题占比（特征编码：2209）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F22090" IS '农专社是否被列入严重违法失信名单（黑名单）（特征编码：22090）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2210" IS '三年内诉讼数量（特征编码：2210）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2211" IS '三年内诉讼金额（特征编码：2211）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2212" IS '农专社破产重组或清算（特征编码：2212）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2300" IS '理事长（法定代表人）是否为虚假登记责任人、失信被执行人、是否被列入严重违法失信名单（黑名单）（特征编码：2300）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2400" IS '一年内12345/12315等平台投诉次数变化情况（特征编码：2400）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2401" IS '一年内12345/12315等平台举报次数变化情况（特征编码：2401）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."F2402" IS '信用中国（广州）评级结果（特征编码：2402）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."SOURCE_IDS" IS '数据源id（多个用半角逗号分隔）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."DATA_POOL_NZ"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_NZ_UPDATE_TIME_IDX" ON "CRGS"."DATA_POOL_NZ"("UPDATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_NZ_SOURCE_IDS_IDX" ON "CRGS"."DATA_POOL_NZ"("SOURCE_IDS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_NZ_CLASSIFY_IDX" ON "CRGS"."DATA_POOL_NZ"("CLASSIFY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_NZ_UNISCID_IDX" ON "CRGS"."DATA_POOL_NZ"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_NZ_PRIPID_IDX" ON "CRGS"."DATA_POOL_NZ"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."DATA_POOL_QY"
(
"DID" VARCHAR2(32) NOT NULL,
"SOURCE_IDS" VARCHAR(100),
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F3" DECIMAL(24,6) DEFAULT 0,
"F4" DECIMAL(24,6) DEFAULT 0,
"F5" DECIMAL(24,6) DEFAULT 0,
"F6" DECIMAL(24,6) DEFAULT 0,
"F60" DECIMAL(24,6) DEFAULT 0,
"F6015" DECIMAL(24,6) DEFAULT 0,
"F6020" DECIMAL(24,6) DEFAULT 0,
"F6025" DECIMAL(24,6) DEFAULT 0,
"F6027" DECIMAL(24,6) DEFAULT 0,
"F61" DECIMAL(24,6) DEFAULT 0,
"F617" DECIMAL(24,6) DEFAULT 0,
"F6113" DECIMAL(24,6) DEFAULT 0,
"F6120" DECIMAL(24,6) DEFAULT 0,
"F6124" DECIMAL(24,6) DEFAULT 0,
"F6130" DECIMAL(24,6) DEFAULT 0,
"F6136" DECIMAL(24,6) DEFAULT 0,
"F6142" DECIMAL(24,6) DEFAULT 0,
"F624" DECIMAL(24,6) DEFAULT 0,
"F627" DECIMAL(24,6) DEFAULT 0,
"F6212" DECIMAL(24,6) DEFAULT 0,
"F6215" DECIMAL(24,6) DEFAULT 0,
"F6218" DECIMAL(24,6) DEFAULT 0,
"F633" DECIMAL(24,6) DEFAULT 0,
"F636" DECIMAL(24,6) DEFAULT 0,
"F6310" DECIMAL(24,6) DEFAULT 0,
"F6315" DECIMAL(24,6) DEFAULT 0,
"F6320" DECIMAL(24,6) DEFAULT 0,
"F6325" DECIMAL(24,6) DEFAULT 0,
"F6329" DECIMAL(24,6) DEFAULT 0,
"F643" DECIMAL(24,6) DEFAULT 0,
"F646" DECIMAL(24,6) DEFAULT 0,
"F6410" DECIMAL(24,6) DEFAULT 0,
"F656" DECIMAL(24,6) DEFAULT 0,
"F6512" DECIMAL(24,6) DEFAULT 0,
"F6518" DECIMAL(24,6) DEFAULT 0,
"F6523" DECIMAL(24,6) DEFAULT 0,
"F6528" DECIMAL(24,6) DEFAULT 0,
"F664" DECIMAL(24,6) DEFAULT 0,
"F661" DECIMAL(24,6) DEFAULT 0,
"F714" DECIMAL(24,6) DEFAULT 0,
"F711" DECIMAL(24,6) DEFAULT 0,
"F725" DECIMAL(24,6) DEFAULT 0,
"F723" DECIMAL(24,6) DEFAULT 0,
"F721" DECIMAL(24,6) DEFAULT 0,
"F736" DECIMAL(24,6) DEFAULT 0,
"F731" DECIMAL(24,6) DEFAULT 0,
"F7420" DECIMAL(24,6) DEFAULT 0,
"F7415" DECIMAL(24,6) DEFAULT 0,
"F741" DECIMAL(24,6) DEFAULT 0,
"F759" DECIMAL(24,6) DEFAULT 0,
"F751" DECIMAL(24,6) DEFAULT 0,
"F7611" DECIMAL(24,6) DEFAULT 0,
"F766" DECIMAL(24,6) DEFAULT 0,
"F764" DECIMAL(24,6) DEFAULT 0,
"F761" DECIMAL(24,6) DEFAULT 0,
"F8220" DECIMAL(24,6) DEFAULT 0,
"F8218" DECIMAL(24,6) DEFAULT 0,
"F8215" DECIMAL(24,6) DEFAULT 0,
"F8212" DECIMAL(24,6) DEFAULT 0,
"F828" DECIMAL(24,6) DEFAULT 0,
"F825" DECIMAL(24,6) DEFAULT 0,
"F821" DECIMAL(24,6) DEFAULT 0,
"F8111" DECIMAL(24,6) DEFAULT 0,
"F816" DECIMAL(24,6) DEFAULT 0,
"F811" DECIMAL(24,6) DEFAULT 0,
"F946" DECIMAL(24,6) DEFAULT 0,
"F941" DECIMAL(24,6) DEFAULT 0,
"F937" DECIMAL(24,6) DEFAULT 0,
"F931" DECIMAL(24,6) DEFAULT 0,
"F925" DECIMAL(24,6) DEFAULT 0,
"F921" DECIMAL(24,6) DEFAULT 0,
"F911" DECIMAL(24,6) DEFAULT 0,
"CLASSIFY" VARCHAR2(1),
"DATA_STATUS" VARCHAR2(1),
"UPDATE_TIME" DATE,
CLUSTER PRIMARY KEY("DID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."CLASSIFY" IS '业务分类';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."DATA_STATUS" IS '数据状态（0：未采集特征；1：已采集特征）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F3" IS '注册资本（特征编码：3）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F4" IS '法人股东数（特征编码：4）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F5" IS '对外投资企业和分支机构数（特征编码：5）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6" IS '从业人数（特征编码：6）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F60" IS '成立距今时长（特征编码：60）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6015" IS '法定代表人年龄（特征编码：6015）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6020" IS '股东类型（特征编码：6020）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6025" IS '企业类型（特征编码：6025）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6027" IS '经营范围及所属行业类型（特征编码：6027）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F61" IS '各类许可和准入证件数量（特征编码：61）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6113" IS '董监高多公司任职（特征编码：6113）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6120" IS '注册资本实缴比例（特征编码：6120）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6124" IS '注册资本大幅增长或减少（特征编码：6124）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6130" IS '登记事项频繁变更（特征编码：6130）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6136" IS '一人多企（特征编码：6136）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6142" IS '一址多照（特征编码：6142）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F617" IS '相关证照过期或失效（特征编码：617）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6212" IS '财务数据是否公示（特征编码：6212）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6215" IS '是否按时公示即时信息（特征编码：6215）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6218" IS '是否自我声明公开企业执行的标准（特征编码：6218）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F624" IS '是否按时年报（特征编码：624）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F627" IS '年报经营性指标是否申报或数据填报异常（特征编码：627）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6310" IS '最近一年亏损程度（特征编码：6310）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6315" IS '三年内亏损次数（特征编码：6315）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6320" IS '最近一年资产负债率（特征编码：6320）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6325" IS '三年内资不抵债次数（特征编码：6325）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6329" IS '三年内股权出质数量和比例（特征编码：6329）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F633" IS '企业账户开销户信息（特征编码：633）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F636" IS '年报或登记状态显示已停业、歇业（特征编码：636）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6410" IS '三年内企业社保是否有累计欠费（特征编码：6410）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F643" IS '是否纳税申报（特征编码：643）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F646" IS '是否正常参加养老保险、失业保险、工伤保险（特征编码：646）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6512" IS '知识产权出质数量（特征编码：6512）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6518" IS '有效授权专利数量（特征编码：6518）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6523" IS '获得管理体系认证或服务认证证书、相关产品认证证书数量（特征编码：6523）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F6528" IS '三年内因质量或诚信原因被撤销认证证书的数量（特征编码：6528）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F656" IS '有效注册商标数量（特征编码：656）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F661" IS '违反承诺次数（特征编码：661）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F664" IS '当前是否存在违反承诺情形（特征编码：664）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F711" IS '申请信用修复后再次受到同类信用约束或行政处罚（特征编码：711）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F714" IS '是否存在信用修复情形（特征编码：714）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F721" IS '因通过登记的住所或者经营场所无法联系列入经营异常名录且近一年未年报（特征编码：721）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F723" IS '当前列入经营异常名录或三年内列入次数超过2次（特征编码：723）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F725" IS '三年内有过列入经营异常名录情形（特征编码：725）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F731" IS '三年内被列入严重违失信名单（黑名单）、失信被执行人次数（特征编码：731）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F736" IS '当前是否被列入严重违失信名单（黑名单）、失信被执行人、纳税非正常户（特征编码：736）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F741" IS '三年内所受行政处罚种类（特征编码：741）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F7415" IS '三年内被罚没金额（特征编码：7415）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F7420" IS '三年内受到行政处罚次数（特征编码：7420）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F751" IS '行政检查发现问题占比（特征编码：751）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F759" IS '行政检查结果（特征编码：759）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F761" IS '三年内股权冻结次数（特征编码：761）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F7611" IS '三年内诉讼数量（特征编码：7611）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F764" IS '企业破产重组或清算（特征编码：764）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F766" IS '三年内诉讼金额（特征编码：766）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F811" IS '法定代表人及董监高关联企业的信用风险类别（特征编码：811）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F8111" IS '法人股东及本企业最高信用风险类别（特征编码：8111）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F816" IS '以股东身份参与的企业的最高信用风险类别（特征编码：816）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F821" IS '关联企业失信被执行人、被列入严重违法失信名单（黑名单）比例（特征编码：821）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F8212" IS '是否为虚假登记责任人关联企业（特征编码：8212）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F8215" IS '关联企业吊销比例（特征编码：8215）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F8218" IS '法定代表人是否为虚假登记责任人、失信被执行人、是否被列入严重违法失信名单（黑名单）（特征编码：8218）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F8220" IS '董监高或自然人股东为虚假登记责任人、失信被执行人、被列入严重违法失信名单（黑名单）人数（特征编码：8220）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F825" IS '关联企业行政处罚比例（特征编码：825）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F828" IS '关联企业列异比例（特征编码：828）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F911" IS '社会高度关注企业或短期内异常增长行业（特征编码：911）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F921" IS '三个月内网络监测提示需要关注的企业（特征编码：921）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F925" IS '三个月内负面舆情条数及占比（特征编码：925）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F931" IS '三个月内12315等平台投诉举报次数变化情况（特征编码：931）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F937" IS '一年内12315等平台投诉举报次数（特征编码：937）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F941" IS '公共信用综合评价或及其他相关行业信用结果（特征编码：941）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."F946" IS '“互联网+监管”评价结果（特征编码：946）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."SOURCE_IDS" IS '数据源id（多个用半角逗号分隔）';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."DATA_POOL_QY"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_QY_CLASSIFY_IDX" ON "CRGS"."DATA_POOL_QY"("CLASSIFY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_QY_SOURCE_IDS_IDX" ON "CRGS"."DATA_POOL_QY"("SOURCE_IDS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_QY_DATA_STATUS_IDX" ON "CRGS"."DATA_POOL_QY"("DATA_STATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_QY_UPDATE_TIME_IDX" ON "CRGS"."DATA_POOL_QY"("UPDATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_QY_UNISCID_IDX" ON "CRGS"."DATA_POOL_QY"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_POOL_QY_PRIPID_IDX" ON "CRGS"."DATA_POOL_QY"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."DATA_SYNC_LOG"
(
"ID" VARCHAR(40) NOT NULL,
"DATA_SOURCE_ID" VARCHAR(40) NOT NULL,
"DATA_SOURCE_NAME" VARCHAR(100) NOT NULL,
"DATA_ITEM_ID" VARCHAR(40) NOT NULL,
"DATA_ITEM_NAME" VARCHAR(100) NOT NULL,
"INCREMENT" BIGINT NOT NULL,
"BEGIN_TIME" TIMESTAMP(0) NOT NULL,
"END_TIME" TIMESTAMP(0),
"SYNC_STATUS" SMALLINT NOT NULL,
"FAIL_MSG" TEXT NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."DATA_SYNC_LOG" IS '数据同步日志';
COMMENT ON COLUMN "CRGS"."DATA_SYNC_LOG"."BEGIN_TIME" IS '同步开始时间';
COMMENT ON COLUMN "CRGS"."DATA_SYNC_LOG"."DATA_ITEM_ID" IS '数据项id';
COMMENT ON COLUMN "CRGS"."DATA_SYNC_LOG"."DATA_ITEM_NAME" IS '数据项名称';
COMMENT ON COLUMN "CRGS"."DATA_SYNC_LOG"."DATA_SOURCE_ID" IS '数据源id';
COMMENT ON COLUMN "CRGS"."DATA_SYNC_LOG"."DATA_SOURCE_NAME" IS '数据源名称';
COMMENT ON COLUMN "CRGS"."DATA_SYNC_LOG"."END_TIME" IS '同步结束时间';
COMMENT ON COLUMN "CRGS"."DATA_SYNC_LOG"."FAIL_MSG" IS '失败信息';
COMMENT ON COLUMN "CRGS"."DATA_SYNC_LOG"."ID" IS '雪花id';
COMMENT ON COLUMN "CRGS"."DATA_SYNC_LOG"."INCREMENT" IS '增量';
COMMENT ON COLUMN "CRGS"."DATA_SYNC_LOG"."SYNC_STATUS" IS '同步状态（-1失败，1成功）';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229552811382200" ON "CRGS"."DATA_SYNC_LOG"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_SYNC_LOG_DATA_ITEM_IDX" ON "CRGS"."DATA_SYNC_LOG"("DATA_ITEM_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_SYNC_LOG_BEGIN_TIME_IDX" ON "CRGS"."DATA_SYNC_LOG"("BEGIN_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DATA_SYNC_LOG_DATA_SOURCE_ID_IDX" ON "CRGS"."DATA_SYNC_LOG"("DATA_SOURCE_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."DISSENT_APPLICATION"
(
"ID" VARCHAR(36) NOT NULL,
"NAME" VARCHAR(100),
"USCC" VARCHAR(100),
"TYPE" VARCHAR(100),
"REGULATORY" VARCHAR(100),
"REGISTRATION" VARCHAR(100),
"REPRESENTATIVE" VARCHAR(100),
"REGION" VARCHAR(100),
"SCOPE" TEXT,
"STATE" VARCHAR(100),
"LABEL" VARCHAR(100),
"PHONE" VARCHAR(100),
"EMAIL" VARCHAR(100),
"ADDRESS" TEXT,
"WEBSITE" VARCHAR(100),
"SCORE" INT,
"BRANCH" VARCHAR(100),
"INVESTMENT" VARCHAR(100),
"LEVEL" VARCHAR(100),
"INDUSTRY" VARCHAR(100),
"UPDATE_BY" VARCHAR(50),
"CREATE_TIME" TIMESTAMP(0),
"CREATE_BY" VARCHAR(255),
"UPDATE_TIME" TIMESTAMP(0),
"STREET_LONG" VARCHAR(100) NOT NULL,
"STREET_NAME" VARCHAR(100) NOT NULL,
"TYPE_NAME" VARCHAR(100),
"REGULATORY_NAME" VARCHAR(100),
"REGISTRATION_NAME" VARCHAR(100),
"INDUSTRY_NAME" VARCHAR(100),
"EST_DATE" VARCHAR(30),
"APPR_DATE" VARCHAR(30),
"REV_DATE" VARCHAR(30),
"OPEN_FROM" VARCHAR(30),
"OPEN_TO" VARCHAR(30),
"REG_CAP" VARCHAR(30),
"PRIPID" VARCHAR(40),
"REG_NO" VARCHAR(40),
"COMPANY_ID" VARCHAR(40) NOT NULL,
"APPLY_STATUS" SMALLINT NOT NULL,
"FILE_URL" TEXT NOT NULL,
"DISSENT_CONTENT" TEXT NOT NULL,
"IS_PASS" SMALLINT,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."DISSENT_APPLICATION" IS '异议申请记录';
COMMENT ON COLUMN "CRGS"."DISSENT_APPLICATION"."APPLY_STATUS" IS '申请状态（0：未上传申请/佐证表，1：未转接，2：已完成）';
COMMENT ON COLUMN "CRGS"."DISSENT_APPLICATION"."COMPANY_ID" IS '企业id';
COMMENT ON COLUMN "CRGS"."DISSENT_APPLICATION"."DISSENT_CONTENT" IS '输入的异议内容';
COMMENT ON COLUMN "CRGS"."DISSENT_APPLICATION"."FILE_URL" IS '佐证网络路径';
COMMENT ON COLUMN "CRGS"."DISSENT_APPLICATION"."IS_PASS" IS '通过与否（0：未通过 1：通过）';

CREATE OR REPLACE  INDEX "CRGS"."DISSENT_APPLICATION_COMPANY_ID_IDX" ON "CRGS"."DISSENT_APPLICATION"("COMPANY_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229548695707900" ON "CRGS"."DISSENT_APPLICATION"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DISSENT_APPLICATION_APPLY_STATUS_IDX" ON "CRGS"."DISSENT_APPLICATION"("APPLY_STATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."DISSENT_APPLY_PROCESS"
(
"CREATE_BY" VARCHAR(40) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(40) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(40) NOT NULL,
"RECORD_ID" VARCHAR(40) NOT NULL,
"MSG" VARCHAR(200) NOT NULL,
"APPLY_STATUS" SMALLINT NOT NULL,
"STATUS" SMALLINT NOT NULL,
"REMARK" VARCHAR(100) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."DISSENT_APPLY_PROCESS" IS '异议申请流程';
COMMENT ON COLUMN "CRGS"."DISSENT_APPLY_PROCESS"."APPLY_STATUS" IS '申请状态（0：发起，1：上传，2：审核/知会）';
COMMENT ON COLUMN "CRGS"."DISSENT_APPLY_PROCESS"."MSG" IS '流程消息';
COMMENT ON COLUMN "CRGS"."DISSENT_APPLY_PROCESS"."RECORD_ID" IS '申请记录id';
COMMENT ON COLUMN "CRGS"."DISSENT_APPLY_PROCESS"."REMARK" IS '系统备注（预留字段，用于处理一些需要额外信息记录）';
COMMENT ON COLUMN "CRGS"."DISSENT_APPLY_PROCESS"."STATUS" IS '当前流程状态（0未完成，1已完成）';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229545445915800" ON "CRGS"."DISSENT_APPLY_PROCESS"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DISSENT_APPLY_PROCESS_APPLY_STATUS_IDX" ON "CRGS"."DISSENT_APPLY_PROCESS"("APPLY_STATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DISSENT_APPLY_PROCESS_RECORD_ID_IDX" ON "CRGS"."DISSENT_APPLY_PROCESS"("RECORD_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."DR_RANINSRES"
(
"CHECKRESID" VARCHAR(32) NOT NULL,
"INSENTERID" VARCHAR(64),
"RANINSPLANID" VARCHAR(128),
"RANINSPLANNAME" VARCHAR(400),
"RANINSTASKID" VARCHAR(128),
"RANINSTASKNAME" VARCHAR(400),
"RANINSTYPE" VARCHAR(128),
"RANINSTYPENAME" VARCHAR(246),
"PRIPID" VARCHAR(80),
"UNISCID" VARCHAR(100),
"REGNO" VARCHAR(100),
"ENTNAME" VARCHAR(400),
"INSAUTHCODE" VARCHAR(128),
"INSAUTH" VARCHAR(400),
"INSDATE" TIMESTAMP(0),
"RANINSITEM" VARCHAR(128),
"RANINSITEMNAME" TEXT,
"RANINSCHECKRES" VARCHAR(128),
"RANINSCHECKRESNAME" VARCHAR(246),
"REMARK" TEXT,
"PUBDATE" TIMESTAMP(0),
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(0),
"INSDATE_STR" VARCHAR(200),
"PUBDATE_STR" VARCHAR(200),
"S_EXT_DATATIME_STR" VARCHAR(200),
NOT CLUSTER PRIMARY KEY("CHECKRESID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."DR_RANINSRES" IS '双随机抽查情况 - 抽查结果';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."CHECKRESID" IS '抽查结果ID';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."INSAUTH" IS '检查机关名称';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."INSAUTHCODE" IS '检查机关代码';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."INSDATE" IS '检查完成日期';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."INSENTERID" IS '抽查市场主体ID（与检查工作信息名录关联）';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."PRIPID" IS '主体身份代码
';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."PUBDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."RANINSCHECKRES" IS '检查结果
';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."RANINSCHECKRESNAME" IS '检查结果（中文名称）
';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."RANINSITEM" IS '抽查事项';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."RANINSITEMNAME" IS '抽查事项（中文名称）';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."RANINSPLANID" IS '抽查计划编号';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."RANINSPLANNAME" IS '抽查计划名称';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."RANINSTASKID" IS '抽查任务编号';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."RANINSTASKNAME" IS '抽查任务名称
';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."RANINSTYPE" IS '抽查类型';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."RANINSTYPENAME" IS '抽查类型（中文名称）';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."REMARK" IS '备注';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."DR_RANINSRES"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229542475833500" ON "CRGS"."DR_RANINSRES"("CHECKRESID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."DR_RANINSRES_PRIPID_IDX" ON "CRGS"."DR_RANINSRES"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_ALTER_RECODER"
(
"ALTID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36),
"ALTITEM" VARCHAR(64),
"ALTITEM_CN" VARCHAR(128),
"ALTBE" VARCHAR(4000),
"ALTAF" VARCHAR(4000),
"ALTDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("ALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_ALTER_RECODER" IS '变更备案信息';
COMMENT ON COLUMN "CRGS"."E_ALTER_RECODER"."ALTAF" IS '变更后内容';
COMMENT ON COLUMN "CRGS"."E_ALTER_RECODER"."ALTBE" IS '变更前内容';
COMMENT ON COLUMN "CRGS"."E_ALTER_RECODER"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "CRGS"."E_ALTER_RECODER"."ALTID" IS '变更项ID';
COMMENT ON COLUMN "CRGS"."E_ALTER_RECODER"."ALTITEM" IS '变更事项';
COMMENT ON COLUMN "CRGS"."E_ALTER_RECODER"."ALTITEM_CN" IS '变更事项（中文名称）';
COMMENT ON COLUMN "CRGS"."E_ALTER_RECODER"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_ALTER_RECODER"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_ALTER_RECODER"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_ALTER_RECODER"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_ALTER_RECODER"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229537520591900" ON "CRGS"."E_ALTER_RECODER"("ALTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_ANN_TRSOCIALSECURITY"
(
"SOCIALSECURITYID" VARCHAR(36) NOT NULL,
"ENTID" VARCHAR(36),
"REGNO" VARCHAR(36),
"SOCIALINSURANCETPTE" VARCHAR(3),
"SOCIALINSURANCETPTENO" VARCHAR(4),
"TOTALWAGES" TEXT,
"TOTALPAYMENT" TEXT,
"UNPAIDSOCIALINS" TEXT,
"TOTALWAGESWHETHER" VARCHAR(1),
"TOTALPAYMENTWHETHER" VARCHAR(1),
"UNPAIDSOCIALINSWHETHER" VARCHAR(1),
"CREATEDATE" TEXT,
"UPDATEDATE" TEXT,
"DSTATE" VARCHAR(1),
"TOWNNUM" TEXT,
"UNEMPLOYMENTNUM" TEXT,
"MEDICALNUM" TEXT,
"INJURYNUM" TEXT,
"BIRTHNUM" TEXT,
"ENTITYNO" VARCHAR(36),
"REPORTYEAR" VARCHAR(10),
"TOTALWAGES_SO110" TEXT,
"TOTALWAGES_SO210" TEXT,
"TOTALWAGES_SO310" TEXT,
"TOTALWAGES_SO510" TEXT,
"TOTALPAYMENT_SO110" TEXT,
"TOTALPAYMENT_SO210" TEXT,
"TOTALPAYMENT_SO310" TEXT,
"TOTALPAYMENT_SO410" TEXT,
"TOTALPAYMENT_SO510" TEXT,
"UNPAIDSOCIALINS_SO110" TEXT,
"UNPAIDSOCIALINS_SO210" TEXT,
"UNPAIDSOCIALINS_SO310" TEXT,
"UNPAIDSOCIALINS_SO410" TEXT,
"UNPAIDSOCIALINS_SO510" TEXT,
"ETLTIMESTAMP" TEXT,
NOT CLUSTER PRIMARY KEY("SOCIALSECURITYID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229468999115600" ON "CRGS"."E_ANN_TRSOCIALSECURITY"("SOCIALSECURITYID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."E_ANN_TRSOCIALSECURITY_ENTITYNO_IDX" ON "CRGS"."E_ANN_TRSOCIALSECURITY"("ENTITYNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_ANNREPORT_BASEINFO"
(
"ANCHEID" VARCHAR(80) NOT NULL,
"PRIPID" VARCHAR(72),
"ANCHEDATE" TIMESTAMP(0),
"ANCHEYEAR" DEC(38,30),
"REGNO" VARCHAR(30),
"UNISCID" VARCHAR(36),
"ENTNAME" VARCHAR(400),
"ENTTYPE" VARCHAR(8),
"TEL" VARCHAR(60),
"ADDR" VARCHAR(200),
"POSTALCODE" VARCHAR(12),
"EMAIL" VARCHAR(200),
"BUSST" VARCHAR(2),
"BUSST_CN" VARCHAR(40),
"EMPNUM" DEC(38,10),
"EMPNUMDIS" VARCHAR(2),
"COLGRANUM" DEC(38,10),
"COLEMPLNUM" DEC(38,10),
"RETSOLNUM" DEC(38,10),
"RETEMPLNUM" DEC(38,10),
"DISPERNUM" DEC(38,10),
"DISEMPLNUM" DEC(38,10),
"UNENUM" DEC(38,10),
"UNEEMPLNUM" DEC(38,10),
"ASSGRO" DEC(38,10),
"ASSGRODIS" VARCHAR(2),
"LIAGRO" DEC(38,10),
"LIAGRODIS" VARCHAR(2),
"VENDINC" DEC(38,10),
"VENDINCDIS" VARCHAR(2),
"MAIBUSINC" DEC(38,10),
"MAIBUSINCDIS" VARCHAR(2),
"PROGRO" DEC(38,10),
"PROGRODIS" VARCHAR(2),
"NETINC" DEC(38,10),
"NETINCDIS" VARCHAR(2),
"RATGRO" DEC(38,10),
"RATGRODIS" VARCHAR(2),
"TOTEQU" DEC(38,10),
"TOTEQUDIS" VARCHAR(2),
"NUMPARM" DEC(38,10),
"PARINS" VARCHAR(2),
"PARINS_CN" VARCHAR(40),
"RESPARMSIGN" VARCHAR(2),
"RESPARSECSIGN" VARCHAR(2),
"MAINBUSIACT" TEXT,
"WOMEMPNUM" INT,
"HOLDINGSMSG" VARCHAR(2),
"WOMEMPNUMWHETHER" VARCHAR(2),
"HOLDINGSMSGWHETHER" VARCHAR(2),
"DATASOURCE" VARCHAR(200),
"ANCHEDATE_STR" VARCHAR(60),
"DEPENDENTENTNAME" VARCHAR(400),
"ISWEB" VARCHAR(2),
"ISINVEINFO" VARCHAR(2),
"ISTRANSFERSTOCK" VARCHAR(2),
"RELATIONSISSHOW" VARCHAR(2),
"DSTATE" VARCHAR(2),
"SYNFLAG" VARCHAR(2),
"SYNDATE" TIMESTAMP(0),
"SYNDATE_STR" VARCHAR(60),
NOT CLUSTER PRIMARY KEY("ANCHEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_ANNREPORT_BASEINFO" IS '企业年报信息';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."ADDR" IS '企业通信地址';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."ANCHEDATE" IS '年报时间';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."ANCHEDATE_STR" IS '年报时间字符串';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."ANCHEYEAR" IS '年报年度';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."ASSGRO" IS '其中失业人员再就业人数(雇工)';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."ASSGRODIS" IS '隶属企业名称';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."BUSST" IS '经营状态';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."BUSST_CN" IS '经营状态（中文名称）';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."COLEMPLNUM" IS '其中高校毕业生人数(经营者)';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."COLGRANUM" IS '企业年报类别';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."DATASOURCE" IS '数据来源';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."DISEMPLNUM" IS '其中残疾人人数(经营者)';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."DISPERNUM" IS '其中退役士兵人数(雇工)';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."EMAIL" IS '电子邮箱';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."EMPNUM" IS '从业人数';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."EMPNUMDIS" IS '从业人数是否公示';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."ENTTYPE" IS '市场主体类型';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."HOLDINGSMSG" IS '企业控股情况';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."HOLDINGSMSGWHETHER" IS '企业控股情况是否公示';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."LIAGRO" IS '资产总额';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."LIAGRODIS" IS '资产总额是否公示';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."MAIBUSINC" IS '营业总收入';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."MAIBUSINCDIS" IS '营业总收入是否公示';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."MAINBUSIACT" IS '企业主营项目';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."NETINC" IS '利润总额';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."NETINCDIS" IS '利润总额是否公示';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."NUMPARM" IS '所有者权益合计';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."PARINS" IS '所有者权益合计是否公示';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."PARINS_CN" IS '党员（预备党员）人数';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."POSTALCODE" IS '邮政编码';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."PROGRO" IS '其中主营业务收入';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."PROGRODIS" IS '其中主营业务收入是否公示';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."RATGRO" IS '净利润';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."RATGRODIS" IS '净利润是否公示';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."RESPARMSIGN" IS '党组织建制';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."RESPARSECSIGN" IS '党组织建制（中文名称）';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."RETEMPLNUM" IS '其中退役士兵人数(经营者)';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."RETSOLNUM" IS '其中高校毕业生人数(雇工)';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."TEL" IS '企业联系电话';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."TOTEQU" IS '纳税总额';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."TOTEQUDIS" IS '纳税总额是否公示';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."UNEEMPLNUM" IS '其中失业人员再就业人数(经营者)';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."UNENUM" IS '其中残疾人人数(雇工)';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."VENDINC" IS '负债总额';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."VENDINCDIS" IS '负债总额是否公示';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."WOMEMPNUM" IS '女性从业人员';
COMMENT ON COLUMN "CRGS"."E_ANNREPORT_BASEINFO"."WOMEMPNUMWHETHER" IS '女性从业人数是否公示';

CREATE OR REPLACE  INDEX "CRGS"."E_ANNREPORT_BASEINFO_PRIPID_IDX" ON "CRGS"."E_ANNREPORT_BASEINFO"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229405805263300" ON "CRGS"."E_ANNREPORT_BASEINFO"("ANCHEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_BASEINFO"
(
"PRIPID" VARCHAR(72) NOT NULL,
"UNISCID" VARCHAR(36),
"ENTNAME" VARCHAR(200),
"REGNO" VARCHAR(100),
"ENTTYPE" VARCHAR(8),
"ENTTYPE_CN" VARCHAR(256),
"INDUSTRYPHY" VARCHAR(128),
"INDUSTRYCO" VARCHAR(128),
"ESTDATE" DATE,
"REGORG" VARCHAR(128),
"REGORG_CN" VARCHAR(256),
"OPSCOTYPE" VARCHAR(256),
"OPSCOTYPE_CN" VARCHAR(256),
"OPSCOPE" VARCHAR(6000),
"OPFROM" DATE,
"OPTO" DATE,
"REGSTATE" VARCHAR(128),
"REGSTATE_CN" VARCHAR(256),
"DOMDISTRICT" VARCHAR(128),
"DOM" VARCHAR(1024),
"REGCAP" DEC(24,6),
"REGCAPCUR" VARCHAR(128),
"REGCAPCUR_CN" VARCHAR(256),
"REGCAPUSD" DEC(18,6),
"RECCAP" DEC(18,6),
"RECCAPUSD" DEC(18,6),
"COUNTRY" VARCHAR(256),
"EMPNUM" DEC(10,0),
"TOWN" VARCHAR(128),
"NAME" VARCHAR(400),
"REPORTTYPE" VARCHAR(128),
"APPRDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(0),
"ACCEPTREGORG" VARCHAR(192),
"ACCEPTREGORG_CN" VARCHAR(384),
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."E_BASEINFO"."ACCEPTREGORG" IS '受理机关（编码）';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."ACCEPTREGORG_CN" IS '受理机关（中文）';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."APPRDATE" IS '核准日期';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."COUNTRY" IS '国别(地区)';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."DOM" IS '住所';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."DOMDISTRICT" IS '住所所在行政区划';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."EMPNUM" IS '从业人员/农专成员总数';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."ENTTYPE" IS '市场主体类型';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."ENTTYPE_CN" IS '市场主体类型（中文名称）';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."ESTDATE" IS '成立日期';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."INDUSTRYCO" IS '行业代码';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."INDUSTRYPHY" IS '行业门类';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."NAME" IS '法定代表人';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."OPFROM" IS '经营(驻在)期限自';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."OPSCOPE" IS '经营范围';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."OPSCOTYPE" IS '业务范围类型';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."OPSCOTYPE_CN" IS '业务范围类型（中文名称）';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."OPTO" IS '经营(驻在)期限至';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."RECCAP" IS '实收资本';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."RECCAPUSD" IS '实收资本折万美元';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."REGCAP" IS '注册资本(金)';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."REGCAPCUR" IS '注册资本(金)币种';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."REGCAPCUR_CN" IS '注册资本(金)币种（中文名称）';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."REGCAPUSD" IS '注册资本(金)折万美元';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."REGORG" IS '登记机关';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."REGORG_CN" IS '登记机关（中文名称）';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."REGSTATE" IS '登记状态';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."REGSTATE_CN" IS '登记状态（中文名称）';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."REPORTTYPE" IS '统计企业类型';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."TOWN" IS '是否城镇';
COMMENT ON COLUMN "CRGS"."E_BASEINFO"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229403854416200" ON "CRGS"."E_BASEINFO"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_BASEINFO_SAREA"
(
"PRIPID" VARCHAR(36) NOT NULL,
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR(200),
"REV_DATE" VARCHAR(30),
"REGULATORY" VARCHAR(100),
"REGULATORY_NAME" VARCHAR(100),
"SCORE" INTEGER,
"LEVEL" VARCHAR(100),
"UPDATE_BY" VARCHAR(50),
"UPDATE_TIME" TIMESTAMP(0),
"CREATE_BY" VARCHAR(255),
"CREATE_TIME" TIMESTAMP(0),
"LABEL" VARCHAR(100),
"LOCALADM" VARCHAR(64),
"SAREACODE_JX" VARCHAR(400),
"SAREANAME_JX" VARCHAR(400),
"SAREACODE_JXMX" VARCHAR(400),
"SAREANAME_JXMX" VARCHAR(400),
"SUPORG" VARCHAR(10),
"SUPORG_CN" VARCHAR(50),
"SAREACODE_TEMP" VARCHAR(100),
"SAREANAME_TEMP" VARCHAR(100),
"REGULATORY_TEMP" VARCHAR(100),
"REGULATORY_NAME_TEMP" VARCHAR(100),
"ASSIGN_ID" VARCHAR(36),
"ISQS" VARCHAR(1),
"SUPORG_CN_GB" VARCHAR(256),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_BRCHINFO"
(
"BRID" VARCHAR(80) NOT NULL,
"BRNAME" VARCHAR(200),
"PPRIPID" VARCHAR(80),
"PRIPID" VARCHAR(80),
"REGNO" VARCHAR(80),
"REGORG" VARCHAR(80),
"REGORG_CN" VARCHAR(100),
"S_EXT_DATATIME" TIMESTAMP(0),
"UNISCID" VARCHAR(80),
NOT CLUSTER PRIMARY KEY("BRID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_BRCHINFO" IS '分支机构';
COMMENT ON COLUMN "CRGS"."E_BRCHINFO"."BRNAME" IS '分支机构名称';
COMMENT ON COLUMN "CRGS"."E_BRCHINFO"."PPRIPID" IS '父主体id';
COMMENT ON COLUMN "CRGS"."E_BRCHINFO"."PRIPID" IS '主体id';
COMMENT ON COLUMN "CRGS"."E_BRCHINFO"."REGNO" IS '注册编号';
COMMENT ON COLUMN "CRGS"."E_BRCHINFO"."REGORG" IS '注册机构';
COMMENT ON COLUMN "CRGS"."E_BRCHINFO"."REGORG_CN" IS '注册机构（中文）';
COMMENT ON COLUMN "CRGS"."E_BRCHINFO"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "CRGS"."CPBRA_INFO_PRIPID_IDX" ON "CRGS"."E_BRCHINFO"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229403532773300" ON "CRGS"."E_BRCHINFO"("BRID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."CPBRA_INFO_UNISCID_IDX" ON "CRGS"."E_BRCHINFO"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_CONTACT"
(
"LMID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36) NOT NULL,
"NAME" VARCHAR(200),
"CERTYPE" VARCHAR(64),
"CERNO" VARCHAR(50),
"TEL" VARCHAR(30),
"MOBTEL" VARCHAR(64),
"EMAIL" VARCHAR(100),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "PK_E_CONTACT" CLUSTER PRIMARY KEY("LMID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "CRGS"."IDX_E_CONTACT_PRIPID" ON "CRGS"."E_CONTACT"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_DEREGISTRATION"
(
"CANCELID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(72),
"CANCELREGTYPE" VARCHAR(200),
"CANCELOBJ" VARCHAR(200),
"CANCELREA" TEXT,
"CANCELDATE" TIMESTAMP(0),
"COURTNOTNO" VARCHAR(120),
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("CANCELID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229403147706200" ON "CRGS"."E_DEREGISTRATION"("CANCELID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_DOMINFO"
(
"DOMID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"DOM" VARCHAR(512),
"DOMDISTRICT" VARCHAR(64),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"STATUSTYPE" VARCHAR(1),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
"POLICE_ADDRESS_ID" VARCHAR(100),
NOT CLUSTER PRIMARY KEY("DOMID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_GT_ALTER_RECODER"
(
"ALTID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36),
"ALTITEM" VARCHAR(64),
"ALTITEM_CN" VARCHAR(128),
"ALTBE" VARCHAR(4000),
"ALTAF" VARCHAR(4000),
"ALTDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ALTITEM_SB" VARCHAR(64),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("ALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_IM_CASALT"
(
"CASEALTID" VARCHAR(100) NOT NULL,
"CASEID" VARCHAR(100),
"PENAUTH" VARCHAR(64),
"ALT" VARCHAR(4000),
"ALTDATE" DATE,
"REMARK" VARCHAR(1000),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("CASEALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_IM_CASALT" IS '企业公示_行政处罚变更';
COMMENT ON COLUMN "CRGS"."E_IM_CASALT"."ALT" IS '变更内容';
COMMENT ON COLUMN "CRGS"."E_IM_CASALT"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "CRGS"."E_IM_CASALT"."CASEALTID" IS '行政处罚变更ID';
COMMENT ON COLUMN "CRGS"."E_IM_CASALT"."CASEID" IS '行政处罚ID';
COMMENT ON COLUMN "CRGS"."E_IM_CASALT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_IM_CASALT"."PENAUTH" IS '作出变更决定机关名称';
COMMENT ON COLUMN "CRGS"."E_IM_CASALT"."REMARK" IS '备注';
COMMENT ON COLUMN "CRGS"."E_IM_CASALT"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_IM_CASALT"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_IM_CASALT"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229402365559700" ON "CRGS"."E_IM_CASALT"("CASEALTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_IM_CASE"
(
"CASEID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(18),
"PENDECNO" VARCHAR(256),
"ILLEGACTTYPE" VARCHAR(2000),
"PENTYPE" VARCHAR(64),
"PENTYPE_CN" VARCHAR(128),
"PENAM" DEC(24,6),
"FORFAM" DEC(24,6),
"PENCONTENT" VARCHAR(4000),
"JUDAUTH" VARCHAR(100),
"PENDECISSDATE" DATE,
"PUBLICDATE" DATE,
"REMARK" VARCHAR(1000),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("CASEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_IM_CASE" IS '企业公示_行政处罚信息';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."CASEID" IS '行政处罚ID';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."ENTNAME" IS '企业(机构)名称';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."FORFAM" IS '没收金额';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."ILLEGACTTYPE" IS '违法行为类型';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."JUDAUTH" IS '作出行政处罚决定机关名称';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."PENAM" IS '罚款金额';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."PENCONTENT" IS '处罚内容';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."PENDECISSDATE" IS '作出处罚决定书日期';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."PENDECNO" IS '处罚决定书文号';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."PENTYPE" IS '处罚种类';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."PENTYPE_CN" IS '处罚种类（中文名称）';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."REMARK" IS '备注';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."E_IM_CASE"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229401529810700" ON "CRGS"."E_IM_CASE"("CASEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_IM_INVACTDETAIL"
(
"PAIDID" VARCHAR(100) NOT NULL,
"INVID" VARCHAR(100),
"INV" VARCHAR(100),
"ACCONAM" DEC(24,6),
"CONFORM" VARCHAR(64),
"CONFORM_CN" VARCHAR(128),
"CONDATE" DATE,
"PUBLICDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("PAIDID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_IM_INVACTDETAIL" IS '企业公示_出资人实缴明细';
COMMENT ON COLUMN "CRGS"."E_IM_INVACTDETAIL"."ACCONAM" IS '实缴出资额';
COMMENT ON COLUMN "CRGS"."E_IM_INVACTDETAIL"."CONDATE" IS '实缴出资日期';
COMMENT ON COLUMN "CRGS"."E_IM_INVACTDETAIL"."CONFORM" IS '实缴出资方式';
COMMENT ON COLUMN "CRGS"."E_IM_INVACTDETAIL"."CONFORM_CN" IS '实缴出资方式（中文名称）';
COMMENT ON COLUMN "CRGS"."E_IM_INVACTDETAIL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_IM_INVACTDETAIL"."INV" IS '股东/发起人名称';
COMMENT ON COLUMN "CRGS"."E_IM_INVACTDETAIL"."INVID" IS '出资人ID';
COMMENT ON COLUMN "CRGS"."E_IM_INVACTDETAIL"."PAIDID" IS '实缴ID';
COMMENT ON COLUMN "CRGS"."E_IM_INVACTDETAIL"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."E_IM_INVACTDETAIL"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_IM_INVACTDETAIL"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_IM_INVACTDETAIL"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229401085058000" ON "CRGS"."E_IM_INVACTDETAIL"("PAIDID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_IM_INVESTMENT"
(
"INVID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(18),
"INV" VARCHAR(100),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("INVID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_IM_INVESTMENT" IS '企业公示_出资人信息情况';
COMMENT ON COLUMN "CRGS"."E_IM_INVESTMENT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_IM_INVESTMENT"."ENTNAME" IS '企业(机构)名称';
COMMENT ON COLUMN "CRGS"."E_IM_INVESTMENT"."INV" IS '股东/发起人名称';
COMMENT ON COLUMN "CRGS"."E_IM_INVESTMENT"."INVID" IS '出资人ID';
COMMENT ON COLUMN "CRGS"."E_IM_INVESTMENT"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_IM_INVESTMENT"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."E_IM_INVESTMENT"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_IM_INVESTMENT"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_IM_INVESTMENT"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."E_IM_INVESTMENT"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229400577663800" ON "CRGS"."E_IM_INVESTMENT"("INVID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_IM_INVPRODETAIL"
(
"SUBID" VARCHAR(50) NOT NULL,
"INVID" VARCHAR(100),
"INV" VARCHAR(100),
"SUBCONAM" DEC(24,6),
"CONFORM" VARCHAR(64),
"CONFORM_CN" VARCHAR(128),
"CONDATE" DATE,
"PUBLICDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("SUBID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_IM_INVPRODETAIL" IS '企业公示_出资人认缴明细';
COMMENT ON COLUMN "CRGS"."E_IM_INVPRODETAIL"."CONDATE" IS '认缴出资日期';
COMMENT ON COLUMN "CRGS"."E_IM_INVPRODETAIL"."CONFORM" IS '认缴出资方式';
COMMENT ON COLUMN "CRGS"."E_IM_INVPRODETAIL"."CONFORM_CN" IS '认缴出资方式（中文名称）';
COMMENT ON COLUMN "CRGS"."E_IM_INVPRODETAIL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_IM_INVPRODETAIL"."INV" IS '股东/发起人名称';
COMMENT ON COLUMN "CRGS"."E_IM_INVPRODETAIL"."INVID" IS '出资人ID';
COMMENT ON COLUMN "CRGS"."E_IM_INVPRODETAIL"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."E_IM_INVPRODETAIL"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_IM_INVPRODETAIL"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_IM_INVPRODETAIL"."SUBCONAM" IS '认缴出资额';
COMMENT ON COLUMN "CRGS"."E_IM_INVPRODETAIL"."SUBID" IS '认缴ID';
COMMENT ON COLUMN "CRGS"."E_IM_INVPRODETAIL"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229399388997500" ON "CRGS"."E_IM_INVPRODETAIL"("SUBID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_IM_INVSRALT"
(
"INVALTID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(18),
"INV" VARCHAR(100),
"TRANSAMPRBF" DEC(24,6),
"TRANSAMPRAF" DEC(24,6),
"ALTDATE" DATE,
"PUBLICDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("INVALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_IM_INVSRALT" IS '企业公示_股权变更信息';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."ALTDATE" IS '股权变更日期';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."ENTNAME" IS '企业(机构)名称';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."INV" IS '股东名称';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."INVALTID" IS '股权变更信息代码';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."TRANSAMPRAF" IS '转让后股权比例';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."TRANSAMPRBF" IS '转让前股权比例';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."E_IM_INVSRALT"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229398708527900" ON "CRGS"."E_IM_INVSRALT"("INVALTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_IM_INVUPDATE"
(
"INVUID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(18),
"ALITEM" VARCHAR(512),
"ALTBE" VARCHAR(4000),
"ALTAF" VARCHAR(4000),
"ALTDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP NOT NULL,
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP()) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_IM_IPPLDG"
(
"PLEID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(18),
"TMREGNO" VARCHAR(100),
"TMNAME" VARCHAR(200),
"KINDS" VARCHAR(1),
"PLEDGOR" VARCHAR(200),
"IMPORG" VARCHAR(200),
"PLEREGPERFROM" DATE,
"PLEREGPERTO" DATE,
"TYPE" VARCHAR(1),
"TYPENAME" VARCHAR(8),
"CANDATE" DATE,
"EQUPLECANREA" VARCHAR(200),
"INVALIDDATE" DATE,
"INVALIDREA" VARCHAR(200),
"PUBLICDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("PLEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_IM_IPPLDG" IS '企业公示_知识产权出质登记';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."CANDATE" IS '注销日期';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."ENTNAME" IS '企业(机构)名称';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."EQUPLECANREA" IS '注销原因';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."IMPORG" IS '知识产权质权人名称';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."INVALIDDATE" IS '其它无效日期';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."INVALIDREA" IS '其他无效原因';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."KINDS" IS '种类代码';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."PLEDGOR" IS '知识产权出质人名称';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."PLEID" IS '出质ID';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."PLEREGPERFROM" IS '知识产权质权登记期限自';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."PLEREGPERTO" IS '知识产权质权登记期限至';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."TMNAME" IS '名称';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."TMREGNO" IS '商品注册号';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."TYPE" IS '状态';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."TYPENAME" IS '状态名称';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDG"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229395911005000" ON "CRGS"."E_IM_IPPLDG"("PLEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_IM_IPPLDGALT"
(
"PLEALTID" VARCHAR(100) NOT NULL,
"PLEID" VARCHAR(100),
"ALT" VARCHAR(512),
"ALTBE" VARCHAR(4000),
"ALTAF" VARCHAR(4000),
"ALTDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("PLEALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_IM_IPPLDGALT" IS '企业公示_知识产权出质变更';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDGALT"."ALT" IS '变更事项';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDGALT"."ALTAF" IS '变更后内容';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDGALT"."ALTBE" IS '变更前内容';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDGALT"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDGALT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDGALT"."PLEALTID" IS '知识产权出质变更ID';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDGALT"."PLEID" IS '知识产权出质ID';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDGALT"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDGALT"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_IM_IPPLDGALT"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229395269521800" ON "CRGS"."E_IM_IPPLDGALT"("PLEALTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_IM_PERMIT"
(
"LICID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(18),
"LICNO" VARCHAR(200),
"LICNAME_CN" VARCHAR(256),
"VALFROM" DATE,
"VALTO" DATE,
"LICANTH" VARCHAR(200),
"LICITEM" VARCHAR(4000),
"TYPE" VARCHAR(1),
"CANDATE" DATE,
"EQUPLECANREA" VARCHAR(200),
"REVDATE" DATE,
"SUGREVREASON" VARCHAR(200),
"INVALIDDATE" DATE,
"INVALIDREA" VARCHAR(200),
"PUBLICDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("LICID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_IM_PERMIT" IS '企业公示_许可信息';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."CANDATE" IS '注销日期';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."ENTNAME" IS '企业(机构)名称';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."EQUPLECANREA" IS '注销原因';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."INVALIDDATE" IS '其它无效日期';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."INVALIDREA" IS '其他无效原因';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."LICANTH" IS '许可机关';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."LICID" IS '许可信息ID';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."LICITEM" IS '许可内容';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."LICNAME_CN" IS '许可文件名称（中文名称）';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."LICNO" IS '许可文件编号';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."REVDATE" IS '被吊销日期';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."SUGREVREASON" IS '被吊销原因';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."TYPE" IS '状态代码';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."VALFROM" IS '有效期自';
COMMENT ON COLUMN "CRGS"."E_IM_PERMIT"."VALTO" IS '有效期至';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229392025273600" ON "CRGS"."E_IM_PERMIT"("LICID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_IM_PRMTALT"
(
"LICALTID" VARCHAR(50) NOT NULL,
"LICID" VARCHAR(50),
"ALT" VARCHAR(512),
"ALTBE" VARCHAR(4000),
"ALTAF" VARCHAR(4000),
"ALTDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("LICALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_IM_PRMTALT" IS '企业公示_许可变更信息';
COMMENT ON COLUMN "CRGS"."E_IM_PRMTALT"."ALT" IS '变更事项';
COMMENT ON COLUMN "CRGS"."E_IM_PRMTALT"."ALTAF" IS '变更后内容';
COMMENT ON COLUMN "CRGS"."E_IM_PRMTALT"."ALTBE" IS '变更前内容';
COMMENT ON COLUMN "CRGS"."E_IM_PRMTALT"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "CRGS"."E_IM_PRMTALT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_IM_PRMTALT"."LICALTID" IS '许可变更ID';
COMMENT ON COLUMN "CRGS"."E_IM_PRMTALT"."LICID" IS '许可ID';
COMMENT ON COLUMN "CRGS"."E_IM_PRMTALT"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_IM_PRMTALT"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_IM_PRMTALT"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229391592211600" ON "CRGS"."E_IM_PRMTALT"("LICALTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_INV_INVESTMENT"
(
"INVID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(36),
"INV" VARCHAR(200),
"INVTYPE" VARCHAR(64),
"INVTYPE_CN" VARCHAR(128),
"BLICTYPE" VARCHAR(64),
"BLICTYPE_CN" VARCHAR(128),
"BLICNO" VARCHAR(200),
"SUBCONAM" DECIMAL(18,6),
"SUBCONAMUSD" DECIMAL(18,6),
"SUBCONFORM" VARCHAR(200),
"SUBCONPROP" DECIMAL(16,4),
"CONDATE" DATE,
"ACCONAM" DECIMAL(18,6),
"ACCONAMUSD" DECIMAL(18,6),
"DOM" VARCHAR(512),
"CURRENCY" VARCHAR(64),
"CURRENCY_CN" VARCHAR(128),
"COUNTRY" VARCHAR(128),
"COUNTRY_CN" VARCHAR(128),
"EXEAFFSIGN" VARCHAR(64),
"RESPFORM" VARCHAR(64),
"RESPFORM_CN" VARCHAR(128),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("INVID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_INV_PERSON"
(
"INVID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(36),
"INV" VARCHAR(200),
"CERTYPE" VARCHAR(64),
"CERTYPE_CN" VARCHAR(128),
"CERNO" VARCHAR(50),
"LISUBCONAM" DEC(18,6),
"SUBCONAMUSD" DEC(18,6),
"SUBCONFORM" VARCHAR(200),
"SUBCONPROP" DEC(16,4),
"CONDATE" DATE,
"LIACCONAM" DEC(18,6),
"ACCONAMUSD" DEC(18,6),
"DOM" VARCHAR(512),
"CURRENCY" VARCHAR(64),
"CURRENCY_CN" VARCHAR(128),
"COUNTRY" VARCHAR(128),
"COUNTRY_CN" VARCHAR(128),
"EXEAFFSIGN" VARCHAR(64),
"RESPFORM" VARCHAR(128),
"RESPFORM_CN" VARCHAR(200),
"SCONFORM" VARCHAR(64),
"SEX" VARCHAR(64),
"NATION" VARCHAR(64),
"NATDATE" DATE,
"LITDEG" VARCHAR(64),
"POLSTAND" VARCHAR(64),
"OCCST" VARCHAR(128),
"POSTALCODE" VARCHAR(64),
"TEL" VARCHAR(30),
"ETLUPDATE" TIMESTAMP(0),
"ETLCREATE" TIMESTAMP(6),
NOT CLUSTER PRIMARY KEY("INVID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_INV_PERSON" IS '投资人信息';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."ACCONAMUSD" IS '实缴出资额折万美元';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."CERNO" IS '证件号码';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."CERTYPE" IS '证件类型';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."CERTYPE_CN" IS '证件类型（中文名称）';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."CONDATE" IS '认缴出资期限';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."COUNTRY" IS '国别(地区)';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."COUNTRY_CN" IS '国别(地区)（中文名称）';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."CURRENCY" IS '币种';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."CURRENCY_CN" IS '币种（中文名称）';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."DOM" IS '住址';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."ETLUPDATE" IS 'ETL时间戳';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."EXEAFFSIGN" IS '执行合伙事务标志';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."INV" IS '姓名';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."INVID" IS '投资人身份标识';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."LIACCONAM" IS '实缴出资额';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."LISUBCONAM" IS '认缴出资额';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."LITDEG" IS '文化程度';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."NATDATE" IS '出生日期';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."NATION" IS '民族';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."OCCST" IS '职业状况';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."POLSTAND" IS '政治面貌';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."POSTALCODE" IS '邮政编码';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."RESPFORM" IS '承担责任方式/责任形式';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."RESPFORM_CN" IS '承担责任方式/责任形式（中文名称）';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."SCONFORM" IS '出资方式（个独）';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."SEX" IS '性别';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."SUBCONAMUSD" IS '认缴出资额折万美元';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."SUBCONFORM" IS '认缴出资方式';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."SUBCONPROP" IS '认缴出资比例';
COMMENT ON COLUMN "CRGS"."E_INV_PERSON"."TEL" IS '电话';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229387060753600" ON "CRGS"."E_INV_PERSON"("INVID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_INV_PERSON_SJZX"
(
"INVID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(36),
"INV" VARCHAR(100),
"CERTYPE" VARCHAR(64),
"CERTYPE_CN" VARCHAR(128),
"CERNO" VARCHAR(50),
"LISUBCONAM" DEC(18,6),
"SUBCONAMUSD" DEC(18,6),
"SUBCONFORM" VARCHAR(200),
"SUBCONPROP" DEC(7,4),
"CONDATE" TIMESTAMP(0),
"LIACCONAM" DEC(18,6),
"ACCONAMUSD" DEC(18,6),
"DOM" VARCHAR(512),
"CURRENCY" VARCHAR(64),
"CURRENCY_CN" VARCHAR(128),
"COUNTRY" VARCHAR(128),
"COUNTRY_CN" VARCHAR(128),
"EXEAFFSIGN" VARCHAR(64),
"RESPFORM" VARCHAR(64),
"RESPFORM_CN" VARCHAR(128),
"SCONFORM" VARCHAR(200),
"SEX" VARCHAR(64),
"NATION" VARCHAR(64),
"NATDATE" TIMESTAMP(0),
"LITDEG" VARCHAR(64),
"POLSTAND" VARCHAR(64),
"OCCST" VARCHAR(128),
"POSTALCODE" VARCHAR(6),
"TEL" VARCHAR(30),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("INVID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229386869277400" ON "CRGS"."E_INV_PERSON_SJZX"("INVID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."PRIPID_INDEX" ON "CRGS"."E_INV_PERSON_SJZX"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_LI_BLACK"
(
"CERNO" VARCHAR(50),
"CERTYPE" VARCHAR(64),
"ENTNAME" VARCHAR(100),
"ENTTYPE" VARCHAR(64),
"ESDATE" DATE,
"ETLTIMESTAMP" TIMESTAMP(0),
"ILLEGACT" VARCHAR(2000),
"NAME" VARCHAR(200),
"OPSTATE" VARCHAR(64),
"PRIPID" VARCHAR(36) NOT NULL,
"REGNO" VARCHAR(50),
"REGORG" VARCHAR(64),
"REMARK" VARCHAR(1000),
"REVDATE" TIMESTAMP(0),
"S_EXT_DATATIME" TIMESTAMP(0),
"S_EXT_FROMNODE" VARCHAR(6),
"UNISCID" VARCHAR(18),
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."CERNO" IS '证件号码';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."CERTYPE" IS '证件类型';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."ENTTYPE" IS '市场主体类型';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."ESDATE" IS '成立日期';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."ILLEGACT" IS '吊销原因';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."NAME" IS '法定代表人名称';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."OPSTATE" IS '经营状态';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."REGORG" IS '登记机关';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."REMARK" IS '备注';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."REVDATE" IS '吊销日期';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_LI_BLACK"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "CRGS"."IDX_CERNO_E_LI_BLACK_INDEX" ON "CRGS"."E_LI_BLACK"("CERNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229384076722200" ON "CRGS"."E_LI_BLACK"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_LI_ILLDISDETAIL"
(
"SERILLREA" VARCHAR(72),
"SERILLREA_CN" VARCHAR(256),
"ABNTIME" TIMESTAMP(0),
"DEDOCMUM" VARCHAR(256),
"DECORG" VARCHAR(80),
"DECORG_CN" VARCHAR(80),
"ILLID" VARCHAR(80) NOT NULL,
"PRIPID" VARCHAR(80) NOT NULL,
"RECORG" VARCHAR(80),
"RECORG_CN" VARCHAR(600),
"REDOCNUM" VARCHAR(80),
"REMDATE" TIMESTAMP(0),
"REMEXCPRES" VARCHAR(400),
"REMEXCPRES_CN" VARCHAR(400),
"SPECAUSE" VARCHAR(80),
"SPECAUSE_CN" VARCHAR(400),
"S_EXT_DATATIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ILLID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_LI_ILLDISDETAIL" IS '失信企业名录';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."DECORG" IS '列入决定机关';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."DECORG_CN" IS '列入决定机关中文';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."DEDOCMUM" IS '列入文号';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."ILLID" IS '失信信息id';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."PRIPID" IS '主体id';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."RECORG" IS '移除决定机关';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."RECORG_CN" IS '移除决定机关（中文）';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."REDOCNUM" IS '移除文书号';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."REMDATE" IS '移除日期';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."REMEXCPRES" IS '移出经营异常名录原因';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."REMEXCPRES_CN" IS '移出经营异常名录原因（中文）';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."SERILLREA" IS '列入事由/情形';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."SERILLREA_CN" IS '列入事由/情形(中文名称)';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."SPECAUSE" IS '列入失信企业名录原因类型';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISDETAIL"."SPECAUSE_CN" IS '列入失信企业名录原因类型（中文）';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229380051514700" ON "CRGS"."E_LI_ILLDISDETAIL"("ILLID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."CPILL_INFO_PRIPID_IDX" ON "CRGS"."E_LI_ILLDISDETAIL"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_LI_ILLDISHONESTY"
(
"ILLID" VARCHAR(64) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"NAME" VARCHAR(200),
"CERTYPE" VARCHAR(64),
"CERNO" VARCHAR(50),
"SERILLREA" VARCHAR(36),
"ABNTIME" DATE,
"DECORG" VARCHAR(6),
"DECORG_CN" VARCHAR(128),
"DEDOCNUM" VARCHAR(128),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("ILLID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_LI_ILLDISHONESTY" IS '严重违法失信企业名单';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."CERNO" IS '法定代表人/负责人证件号码';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."CERTYPE" IS '法定代表人/负责人证件类型';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."DECORG" IS '列入作出决定机关';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."DECORG_CN" IS '列入作出决定机关（中文名称）';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."DEDOCNUM" IS '列入文号';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."ILLID" IS '严重违法失信ID';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."NAME" IS '法定代表人/负责人人员姓名';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."SERILLREA" IS '列入事由/情形';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."E_LI_ILLDISHONESTY"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229378275684100" ON "CRGS"."E_LI_ILLDISHONESTY"("ILLID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_LIC_NCERTIFICATE"
(
"PRIPID" VARCHAR(36) NOT NULL,
"LICID" VARCHAR(50) NOT NULL,
"LICNO" VARCHAR(200) NOT NULL,
"LICNAME" VARCHAR(3),
"LICNAME_CN" VARCHAR(255) NOT NULL,
"VALIPEROFROM" DATE NOT NULL,
"VALIPERITO" DATE NOT NULL,
"LICANTH" VARCHAR(255) NOT NULL,
"LICANTHNO" VARCHAR(6),
"LICITEM" VARCHAR(4000) NOT NULL,
NOT CLUSTER PRIMARY KEY("LICID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."E_LIC_NCERTIFICATE"."LICANTH" IS '许可机关（中文名称）';
COMMENT ON COLUMN "CRGS"."E_LIC_NCERTIFICATE"."LICANTHNO" IS '许可机关（代码）';
COMMENT ON COLUMN "CRGS"."E_LIC_NCERTIFICATE"."LICID" IS '许可id';
COMMENT ON COLUMN "CRGS"."E_LIC_NCERTIFICATE"."LICITEM" IS '许可内容';
COMMENT ON COLUMN "CRGS"."E_LIC_NCERTIFICATE"."LICNAME" IS '许可文件名称';
COMMENT ON COLUMN "CRGS"."E_LIC_NCERTIFICATE"."LICNAME_CN" IS '许可文件名称(中文名称)';
COMMENT ON COLUMN "CRGS"."E_LIC_NCERTIFICATE"."LICNO" IS '许可文件编号';
COMMENT ON COLUMN "CRGS"."E_LIC_NCERTIFICATE"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_LIC_NCERTIFICATE"."VALIPERITO" IS '有效期至';
COMMENT ON COLUMN "CRGS"."E_LIC_NCERTIFICATE"."VALIPEROFROM" IS '有效期自';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229374831484200" ON "CRGS"."E_LIC_NCERTIFICATE"("LICID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_LIQUIDATION"
(
"LIID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"LIGST" VARCHAR(64),
"LIGENDDATE" DATE,
"DEBTTRANEE" VARCHAR(1000),
"CLAIMTRANEE" VARCHAR(1000),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("LIID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_MOVE_IN"
(
"MIN_ID" VARCHAR(200) NOT NULL,
"PRIPID" VARCHAR(72),
"MINLETNUM" VARCHAR(100),
"MOUTAREA" VARCHAR(2000),
"MINREA" VARCHAR(2000),
"MOUTAREREGORG" VARCHAR(200),
"MINDATE" TIMESTAMP(6),
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(6),
"MOVE_TYPE" VARCHAR(10),
"MOVE_TYPE_DETAIL" VARCHAR(100),
CONSTRAINT "PK__E_MOVE_I__6DEEEB5BA0B9F188" CLUSTER PRIMARY KEY("MIN_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_MOVE_OUT"
(
"MOUT_ID" VARCHAR(200) NOT NULL,
"PRIPID" VARCHAR(72),
"MOUTLETNUM" VARCHAR(100),
"MINAREA" VARCHAR(2000),
"MOUTREA" VARCHAR(2000),
"MINAREREGORG" VARCHAR(200),
"MOUTDATE" TIMESTAMP(6),
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(6),
"MOVE_TYPE" VARCHAR(10),
"MOVE_TYPE_DETAIL" VARCHAR(100),
CONSTRAINT "PK__E_MOVE_O__B60AC27529F461F4" CLUSTER PRIMARY KEY("MOUT_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_OT_CASALT"
(
"CASEALTID" VARCHAR(100) NOT NULL,
"CASEID" VARCHAR(100),
"ALTDATE" DATE,
"ALT" VARCHAR(4000),
"PENAUTH" VARCHAR(64),
"DATADEPT" VARCHAR(200),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("CASEALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_OT_CASALT" IS '其他部门公示_行政处罚变更';
COMMENT ON COLUMN "CRGS"."E_OT_CASALT"."ALT" IS '变更内容';
COMMENT ON COLUMN "CRGS"."E_OT_CASALT"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "CRGS"."E_OT_CASALT"."CASEALTID" IS '行政处罚变更ID';
COMMENT ON COLUMN "CRGS"."E_OT_CASALT"."CASEID" IS '行政处罚ID';
COMMENT ON COLUMN "CRGS"."E_OT_CASALT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_OT_CASALT"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "CRGS"."E_OT_CASALT"."PENAUTH" IS '作出变更决定机关名称';
COMMENT ON COLUMN "CRGS"."E_OT_CASALT"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_OT_CASALT"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_OT_CASALT"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229374631247800" ON "CRGS"."E_OT_CASALT"("CASEALTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_OT_NCASE"
(
"CASEID" VARCHAR(200) NOT NULL,
"ACTYPE" VARCHAR(2),
"PRIPID" VARCHAR(72),
"ENTNAME" VARCHAR(200),
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(100),
"INSCERCODE" VARCHAR(24),
"SOCORGCODE" VARCHAR(100),
"ORGCODE" VARCHAR(18),
"TAXID" VARCHAR(40),
"LEREP" VARCHAR(400),
"CERTYPE" VARCHAR(4),
"CERNO" VARCHAR(128),
"NAME" VARCHAR(60),
"AC_CERTYPE" VARCHAR(4),
"AC_CERNO" VARCHAR(128),
"PENDECNO" VARCHAR(512),
"ILLEGACTTYPECODE" VARCHAR(12),
"ILLEGACTTYPE" VARCHAR(4000),
"MAINILLEGFACT" TEXT,
"PENBASIS" VARCHAR(400),
"PENBASIS_CN" TEXT,
"PENTYPE" VARCHAR(400),
"PENTYPE_CN" VARCHAR(4000),
"PENAM" DEC(24,6),
"FORFAM" DEC(24,6),
"PENDECISSDATE" TIMESTAMP(0),
"PENPERI" TIMESTAMP(0),
"PENAUTH" VARCHAR(128),
"PENAUTH_CN" VARCHAR(400),
"PENAUTHUNISCID" VARCHAR(36),
"PENCONTENT" TEXT,
"REVLICNUM" VARCHAR(400),
"PUBLICDATE" TIMESTAMP(0),
"PUBDEADLINE" TIMESTAMP(0),
"DATADEPT" VARCHAR(400),
"DATADEPTUNISCID" VARCHAR(36),
"REMARK" VARCHAR(2000),
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("CASEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_OT_NCASE" IS '其他部门_行政处罚基本信息_2019';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."AC_CERNO" IS '证件号码';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."AC_CERTYPE" IS '证件类型';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."ACTYPE" IS '行政相对人类型';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."CASEID" IS '行政处罚ID';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."CERNO" IS '证件号码';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."CERTYPE" IS '证件类型';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."DATADEPTUNISCID" IS '数据来源单位统一社会信用代码';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."FORFAM" IS '没收金额';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."ILLEGACTTYPE" IS '违法行为类型（中文名称）';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."ILLEGACTTYPECODE" IS '违法行为类型代码';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."INSCERCODE" IS '行政相对人代码_5（事业单位证书号';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."LEREP" IS '法定代表人';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."MAINILLEGFACT" IS '主要违法事实';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."NAME" IS '行政相对人（自然人）姓名';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."ORGCODE" IS '组织机构代码';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PENAM" IS '罚款金额';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PENAUTH" IS '作出行政处罚决定机关代码';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PENAUTH_CN" IS '作出行政处罚决定机关（中文）';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PENAUTHUNISCID" IS '处罚机关统一社会信用代码';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PENBASIS" IS '处罚依据代码';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PENBASIS_CN" IS '处罚依据（中文名称）';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PENCONTENT" IS '处罚内容';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PENDECISSDATE" IS '作出处罚决定书日期';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PENDECNO" IS '行政处罚决定书文号';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PENPERI" IS '处罚有效期';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PENTYPE" IS '处罚种类代码';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PENTYPE_CN" IS '处罚种类（中文名称）';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PUBDEADLINE" IS '公示截止期';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."REMARK" IS '备注';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."REVLICNUM" IS '暂扣或吊销证照名称及编号';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."SOCORGCODE" IS '行政相对人代码_6（社会组织登记证号）';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."TAXID" IS '税务登记号';
COMMENT ON COLUMN "CRGS"."E_OT_NCASE"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229371270409700" ON "CRGS"."E_OT_NCASE"("CASEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_OT_NPERMIT"
(
"LICID" VARCHAR(100) NOT NULL,
"ACTYPE" VARCHAR(2),
"PRIPID" VARCHAR(72),
"ENTNAME" VARCHAR(200),
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(100),
"ORGCODE" VARCHAR(18),
"TAXID" VARCHAR(40),
"INSCERCODE" VARCHAR(24),
"SOCORGCODE" VARCHAR(100),
"LEREP" VARCHAR(400),
"CERTYPE" VARCHAR(4),
"CERNO" VARCHAR(128),
"NAME" VARCHAR(60),
"AC_CERTYPE" VARCHAR(4),
"AC_CERNO" VARCHAR(128),
"LICNAME" VARCHAR(6),
"LICNAME_CN" TEXT,
"LICNO" VARCHAR(400),
"LICDECNAME" VARCHAR(128),
"LICDECCODE" VARCHAR(128),
"LICTYPE" VARCHAR(2),
"LICTYPE_CN" TEXT,
"LICITEM" TEXT,
"LICDECDATE" TIMESTAMP(0),
"VALIPERIFROM" TIMESTAMP(0),
"VALIPERITO" TIMESTAMP(0),
"LICANTHNO" VARCHAR(12),
"LICANTH" VARCHAR(400),
"LICANTHUNISCID" VARCHAR(36),
"DATADEPT" VARCHAR(400),
"DATADEPTUNISCID" VARCHAR(36),
"LICSTATE" VARCHAR(2),
"INVALIDDATE" TIMESTAMP(0),
"INVALIDREA" VARCHAR(400),
"REMARK" TEXT,
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("LICID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229367698070800" ON "CRGS"."E_OT_NPERMIT"("LICID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_OT_PRMTALT"
(
"LICALTID" VARCHAR(50) NOT NULL,
"LICID" VARCHAR(50),
"ALT" VARCHAR(512),
"ALTBE" VARCHAR(4000),
"ALTAF" VARCHAR(4000),
"ALTDATE" DATE,
"DATADEPT" VARCHAR(200),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("LICALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_OT_PRMTALT" IS '其他部门公示_许可变更信息';
COMMENT ON COLUMN "CRGS"."E_OT_PRMTALT"."ALT" IS '变更事项';
COMMENT ON COLUMN "CRGS"."E_OT_PRMTALT"."ALTAF" IS '变更后内容';
COMMENT ON COLUMN "CRGS"."E_OT_PRMTALT"."ALTBE" IS '变更前内容';
COMMENT ON COLUMN "CRGS"."E_OT_PRMTALT"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "CRGS"."E_OT_PRMTALT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_OT_PRMTALT"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "CRGS"."E_OT_PRMTALT"."LICALTID" IS '许可变更ID';
COMMENT ON COLUMN "CRGS"."E_OT_PRMTALT"."LICID" IS '许可ID';
COMMENT ON COLUMN "CRGS"."E_OT_PRMTALT"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_OT_PRMTALT"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_OT_PRMTALT"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229367165197200" ON "CRGS"."E_OT_PRMTALT"("LICALTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_OT_SPOTCHECK"
(
"INSID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"INSAUTH" VARCHAR(100),
"INSAUTH_CN" VARCHAR(128),
"INSTYPE" VARCHAR(64),
"INSDATE" DATE,
"INSCHECKRES" VARCHAR(64),
"INSCHECKRES_CN" VARCHAR(4000),
"DATADEPT" VARCHAR(200),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("INSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_OT_SPOTCHECK" IS '其他部门_抽查检查信息';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."INSAUTH" IS '检查实施机关';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."INSAUTH_CN" IS '检查实施机关（中文名称）';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."INSCHECKRES" IS '抽查检查结果';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."INSCHECKRES_CN" IS '抽查检查结果（中文名称）';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."INSDATE" IS '抽查检查日期';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."INSID" IS '抽查检查ID';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."INSTYPE" IS '抽查检查类型';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."E_OT_SPOTCHECK"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229366273839800" ON "CRGS"."E_OT_SPOTCHECK"("INSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_PB_BASEINFO"
(
"PRIPID" VARCHAR(72) NOT NULL,
"UNISCID" VARCHAR(36),
"TRANAME" VARCHAR(512),
"REGNO" VARCHAR(100),
"EMPNUM" DEC(10,0),
"FUNDAM" DEC(24,6),
"COMPFORM" VARCHAR(128),
"COMPFORM_CN" VARCHAR(256),
"INDUSTRYPHY" VARCHAR(128),
"INDUSTRYCO" VARCHAR(128),
"ESTDATE" DATE,
"REGORG" VARCHAR(128),
"REGORG_CN" VARCHAR(256),
"OPSCOPE" TEXT,
"OPLOCDISTRICT" VARCHAR(12),
"OPLOC" VARCHAR(400),
"TEL" VARCHAR(60),
"POSTALCODE" VARCHAR(20),
"OPFROM" DATE,
"OPTO" DATE,
"LOCALADM" VARCHAR(128),
"REGSTATE" VARCHAR(128),
"REGSTATE_CN" VARCHAR(256),
"TOWN" VARCHAR(128),
"NAME" VARCHAR(400),
"APPRDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_PB_BASEINFO" IS '个体工商户基本信息';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."APPRDATE" IS '核准日期';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."COMPFORM" IS '组成形式';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."COMPFORM_CN" IS '组成形式（中文名称）';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."EMPNUM" IS '从业人数';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."ESTDATE" IS '注册日期';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."FUNDAM" IS '资金数额';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."INDUSTRYCO" IS '行业代码';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."INDUSTRYPHY" IS '行业门类';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."LOCALADM" IS '属地监管工商所';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."NAME" IS '经营者';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."OPFROM" IS '经营(驻在)期限自';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."OPLOC" IS '经营场所';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."OPLOCDISTRICT" IS '经营场所所在行政区划';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."OPSCOPE" IS '经营范围';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."OPTO" IS '经营(驻在)期限至';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."POSTALCODE" IS '经营场所邮政编码';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."REGORG" IS '登记机关';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."REGORG_CN" IS '登记机关（中文名称）';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."REGSTATE" IS '登记状态';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."REGSTATE_CN" IS '登记状态（中文名称）';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."TEL" IS '经营场所联系电话';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."TOWN" IS '是否城镇';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."TRANAME" IS '字号名称';
COMMENT ON COLUMN "CRGS"."E_PB_BASEINFO"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229360542140100" ON "CRGS"."E_PB_BASEINFO"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_PB_OPERATOR"
(
"PERSONID" VARCHAR(200) NOT NULL,
"PRIPID" VARCHAR(72),
"NAME" VARCHAR(400),
"SEX" VARCHAR(128),
"NATDATE" DATE,
"LITEDEG" VARCHAR(128),
"NATION" VARCHAR(128),
"DOM" VARCHAR(1024),
"POSTALCODE" VARCHAR(12),
"TEL" VARCHAR(60),
"MOBTEL" VARCHAR(60),
"EMAIL" VARCHAR(200),
"POLSTAND" VARCHAR(128),
"OCCSTBEAPP" VARCHAR(256),
"CERTYPE" VARCHAR(128),
"CERNO" VARCHAR(100),
"CERISSDATE" DATE,
"OPERAREA" VARCHAR(12),
"CERVALPER" DATE,
"NOTORG" VARCHAR(200),
"NOTDOCNO" VARCHAR(100),
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(0),
"ETLSTATUS" VARCHAR(2),
NOT CLUSTER PRIMARY KEY("PERSONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_PB_OPERATOR" IS '个体经营者基本信息';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."CERISSDATE" IS '证件签发日期';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."CERNO" IS '证件号码';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."CERTYPE" IS '证件类型';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."CERVALPER" IS '证件有效期';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."DOM" IS '住所';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."EMAIL" IS '电子邮箱';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."LITEDEG" IS '文化程度';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."MOBTEL" IS '移动电话';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."NAME" IS '姓名';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."NATDATE" IS '出生日期';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."NATION" IS '民族';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."NOTDOCNO" IS '身份核证文件编号';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."NOTORG" IS '身份核证文件核(公)证机构(人)';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."OCCSTBEAPP" IS '申请前职业状况';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."OPERAREA" IS '经营者所在地区';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."PERSONID" IS '人员序号';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."POLSTAND" IS '政治面貌';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."POSTALCODE" IS '邮政编码';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."SEX" IS '性别';
COMMENT ON COLUMN "CRGS"."E_PB_OPERATOR"."TEL" IS '联系电话';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229359774214700" ON "CRGS"."E_PB_OPERATOR"("PERSONID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."IDX_CERNO_E_PB_OPERATOR_INDEX" ON "CRGS"."E_PB_OPERATOR"("CERNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."IDX_NAME_E_PB_OPERATOR_INDEX" ON "CRGS"."E_PB_OPERATOR"("NAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_PRI_PERSON"
(
"PERSONID" VARCHAR(200) NOT NULL,
"PRIPID" VARCHAR(72),
"NAME" VARCHAR(400),
"SEX" VARCHAR(128),
"NATDATE" DATE,
"CERTYPE" VARCHAR(128),
"CERNO" VARCHAR(100),
"POSITION" VARCHAR(128),
"POSITION_CN" VARCHAR(256),
"POSBRFORM" VARCHAR(128),
"OCCSTBEAPP" VARCHAR(256),
"LEREPSIGN" VARCHAR(128),
"APPOUNIT" VARCHAR(400),
"TEL" VARCHAR(60),
"COUNTRY" VARCHAR(256),
"TELNUMBER" VARCHAR(60),
"MOBTEL" VARCHAR(128),
"EMAIL" VARCHAR(200),
"HOUSEADD" VARCHAR(1200),
"ARRCHDATE" DATE,
"REPCARFROM" DATE,
"REPCARTO" DATE,
"POSTALCODE" VARCHAR(128),
"ETLTIMESTAMP" TIMESTAMP(0),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
NOT CLUSTER PRIMARY KEY("PERSONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."APPOUNIT" IS '任命单位/委派方';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."ARRCHDATE" IS '入境时间';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."CERNO" IS '证件号码';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."CERTYPE" IS '证件类型';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."COUNTRY" IS '国别(地区)';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."EMAIL" IS '电子邮箱';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."ETLTIMESTAMP" IS 'ETL时间戳';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."HOUSEADD" IS '住址';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."LEREPSIGN" IS '法定代表人标志/首席代表标志/负责人标识';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."MOBTEL" IS '移动电话';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."NAME" IS '姓名';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."NATDATE" IS '出生日期';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."OCCSTBEAPP" IS '申请前职业状况';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."PERSONID" IS '人员ID';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."POSBRFORM" IS '职务产生方式';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."POSITION" IS '职务';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."POSITION_CN" IS '职务（中文名称）';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."POSTALCODE" IS '邮政编码';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."REPCARFROM" IS '代表证期限自/任职起始日期';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."REPCARTO" IS '代表证期限至/任职截止日期';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."SEX" IS '性别';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."TEL" IS '联系电话';
COMMENT ON COLUMN "CRGS"."E_PRI_PERSON"."TELNUMBER" IS '固定电话';

CREATE OR REPLACE  INDEX "CRGS"."IDX_CERNO_E_PRI_PERSON_INDEX" ON "CRGS"."E_PRI_PERSON"("CERNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."IDX_NAME_E_PRI_PERSON_INDEX" ON "CRGS"."E_PRI_PERSON"("NAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229354227611600" ON "CRGS"."E_PRI_PERSON"("PERSONID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_PROQUA_CHECKRES"
(
"QUAINSRESID" VARCHAR(32) NOT NULL,
"NOTICEID" VARCHAR(64),
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(200),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"LOCATION" VARCHAR(512),
"INSCHECKNAME" VARCHAR(200),
"RESULTDATE" DATE,
"PRDONAME" VARCHAR(200),
"SPECIFICATION_TYPE" VARCHAR(300),
"PRODUCTIONDATE" VARCHAR(200),
"QUAINSRES" VARCHAR(128),
"UNQUALIFIEDITEM" VARCHAR(5000),
"INSPECTOR" VARCHAR(400),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("QUAINSRESID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_PROQUA_NOTICE"
(
"NOTICEID" VARCHAR(64) NOT NULL,
"NOTICETITLE" VARCHAR(200),
"NOTICEDATE" DATE,
"NOTICEAHTH" VARCHAR(64),
"NOTICEAHTH_CN" VARCHAR(128),
"REMARK" VARCHAR(1000),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("NOTICEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_PUB_OBJECTION"
(
"OBJID" VARCHAR(64) NOT NULL,
"ENTNAME" VARCHAR(200),
"USERID" VARCHAR(64),
"PRIPID" VARCHAR(72),
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(100),
"REGORG" VARCHAR(128),
"REGORG_CN" VARCHAR(256),
"OBJECTION_MODULE_ID" VARCHAR(8),
"OBJECTION_MODULE" VARCHAR(40),
"OBJECTION_NAME" VARCHAR(40),
"OBJECTION_VALUE" VARCHAR(600),
"OBJECTION_DETAIL" VARCHAR(6000),
"OBJECTION_TIME" TIMESTAMP(0),
"USER_NAME" VARCHAR(400),
"USER_CARD" VARCHAR(60),
"USER_MOBILE" VARCHAR(60),
"USER_EMAIL" VARCHAR(200),
"USER_ADDR" VARCHAR(400),
"DISPOSE" VARCHAR(40),
"RESULT" VARCHAR(600),
"RESULT_TIME" TIMESTAMP(0),
"ACCEPT_UNIT" VARCHAR(128),
"ACCEPT_UNIT_CN" VARCHAR(400),
"OBJ_NODENUM" VARCHAR(12),
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("OBJID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229350647806200" ON "CRGS"."E_PUB_OBJECTION"("OBJID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_PUB_SPOTCHECK"
(
"INSID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36),
"INSAUTH" VARCHAR(100),
"INSAUTH_CN" VARCHAR(128),
"INSTYPE" VARCHAR(64),
"INSDATE" DATE,
"INSRES" VARCHAR(128),
"INSRES_CN" VARCHAR(4000),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("INSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_PUB_SPOTCHECK" IS '抽查检查信息';
COMMENT ON COLUMN "CRGS"."E_PUB_SPOTCHECK"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."E_PUB_SPOTCHECK"."INSAUTH" IS '检查实施机关';
COMMENT ON COLUMN "CRGS"."E_PUB_SPOTCHECK"."INSAUTH_CN" IS '检查实施机关（中文名称）';
COMMENT ON COLUMN "CRGS"."E_PUB_SPOTCHECK"."INSDATE" IS '抽查检查日期';
COMMENT ON COLUMN "CRGS"."E_PUB_SPOTCHECK"."INSID" IS '抽查检查ID';
COMMENT ON COLUMN "CRGS"."E_PUB_SPOTCHECK"."INSRES" IS '抽查检查结果';
COMMENT ON COLUMN "CRGS"."E_PUB_SPOTCHECK"."INSRES_CN" IS '抽查检查结果（中文名称）';
COMMENT ON COLUMN "CRGS"."E_PUB_SPOTCHECK"."INSTYPE" IS '抽查检查类型';
COMMENT ON COLUMN "CRGS"."E_PUB_SPOTCHECK"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_PUB_SPOTCHECK"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_PUB_SPOTCHECK"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_PUB_SPOTCHECK"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229349864111300" ON "CRGS"."E_PUB_SPOTCHECK"("INSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_REVOKE"
(
"PRIPID" VARCHAR(36) NOT NULL,
"REVDATE" DATE,
"ILLEGACT" TEXT,
"REVAUTH" VARCHAR(200),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"REVBASIS" TEXT,
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."E_REVOKE"."ILLEGACT" IS '违法依据';
COMMENT ON COLUMN "CRGS"."E_REVOKE"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_REVOKE"."REVAUTH" IS '吊销机关';
COMMENT ON COLUMN "CRGS"."E_REVOKE"."REVBASIS" IS '吊销依据';
COMMENT ON COLUMN "CRGS"."E_REVOKE"."REVDATE" IS '吊销日期';
COMMENT ON COLUMN "CRGS"."E_REVOKE"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_REVOKE"."S_EXT_FROMNODE" IS '数据汇总单位';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229344192998300" ON "CRGS"."E_REVOKE"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_SC_OBJECTION"
(
"SCOBJID" VARCHAR(72) NOT NULL,
"SCID" VARCHAR(72),
"ENTNAME" VARCHAR(200),
"OBJECTION" TEXT,
"OBJAPPTIME" TIMESTAMP(0),
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("SCOBJID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229343580337800" ON "CRGS"."E_SC_OBJECTION"("SCOBJID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_SELFINFO"
(
"SELFDECLID" VARCHAR(32) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(200),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"PRODSERV" VARCHAR(100),
"PRODSERVTYPE" VARCHAR(400),
"STDTYPE" VARCHAR(64),
"STDCODE" VARCHAR(50),
"STDNAME" VARCHAR(200),
"FILLDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("SELFDECLID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_SF_PARTYINFO"
(
"PARENT_ID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36),
"FROAUTH" VARCHAR(100),
"EXECUTENO" VARCHAR(600),
"ENTNAME" VARCHAR(100),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(18),
"INV" VARCHAR(200),
"FROAM" DECIMAL(18,6),
"REGCAPCUR" VARCHAR(64),
"REGCAPCUR_CN" VARCHAR(128),
"FROZSTATE" VARCHAR(64),
"FROZSTATE_CN" VARCHAR(128),
"PUBLICDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
CLUSTER PRIMARY KEY("PARENT_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."E_SF_PARTYINFO" IS '股权冻结被执行人信息';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."ENTNAME" IS '股权所在公司名称';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."EXECUTENO" IS '协助公示通知书文号';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."FROAM" IS '股权数额';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."FROAUTH" IS '执行法院';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."FROZSTATE" IS '股权冻结状态';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."FROZSTATE_CN" IS '股权冻结状态(中文名称)';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."INV" IS '被执行人';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."PARENT_ID" IS '股权冻结被执行人信息ID';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."REGCAPCUR" IS '币种';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."REGCAPCUR_CN" IS '币种（中文名称）';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."REGNO" IS '股权所在企业注册号';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."E_SF_PARTYINFO"."UNISCID" IS '股权所在企业统一社会信用代码';


CREATE TABLE "CRGS"."E_SM_NBASEINFO"
(
"PRIPID" VARCHAR(36) NOT NULL,
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"ENTNAME" VARCHAR(200),
"ENTTYPE" VARCHAR(64),
"ESTDATE" DATE,
"REGCAP" DECIMAL(24,6),
"REGORG" VARCHAR(64),
"REGORG_CN" VARCHAR(256),
"INDUSTRYPHY" VARCHAR(64),
"INDUSTRYCO" VARCHAR(64),
"INDUSTRYCO_CN" VARCHAR(256),
"XWSORT" VARCHAR(1),
"XWSORT_CN" VARCHAR(256),
"ADDTIME" TIMESTAMP(6),
"REMTIME" TIMESTAMP(6),
"REMREASON" VARCHAR(2),
"REMREASON_CN" VARCHAR(512),
"XWSTATE" VARCHAR(1),
"XWSTATE_CN" VARCHAR(512),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."E_SP_PLEDGE"
(
"IMPORGID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(18),
"EQUITYNO" VARCHAR(100),
"PLEDGOR" VARCHAR(200),
"PLEDBLICTYPE" VARCHAR(64),
"PLEDBLICTYPE_CN" VARCHAR(128),
"PLEDBLICNO" VARCHAR(50),
"PLEDAMUNIT" VARCHAR(100),
"IMPAM" DEC(24,6),
"REGCAPCUR" VARCHAR(64),
"REGCAPCUR_CN" VARCHAR(128),
"IMPORG" VARCHAR(200),
"IMPORGBLICTYPE" VARCHAR(64),
"IMPORGBLICTYPE_CN" VARCHAR(128),
"IMPORGBLICNO" VARCHAR(50),
"EQUPLEDATE" DATE,
"TYPE" VARCHAR(1),
"CANDATE" DATE,
"EQUPLECANREA" VARCHAR(200),
"CANCELDATE" DATE,
"CANCELREA" VARCHAR(1000),
"PUBLICDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
CONSTRAINT "SQL220525171042280" NOT CLUSTER PRIMARY KEY("IMPORGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EBASEINFO_UPDATE_AUDIT"
(
"ID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"OLDDOM" VARCHAR(1000),
"NEWDOM" VARCHAR(1000),
"STATUS" VARCHAR(1),
"ASSIGNTIME" TIMESTAMP(0),
"CREATETIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."EBASEINFO_UPDATE_AUDIT" IS '企业主体地址更新审计表';
COMMENT ON COLUMN "CRGS"."EBASEINFO_UPDATE_AUDIT"."ASSIGNTIME" IS '认领时间';
COMMENT ON COLUMN "CRGS"."EBASEINFO_UPDATE_AUDIT"."CREATETIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "CRGS"."EBASEINFO_UPDATE_AUDIT"."ID" IS 'id';
COMMENT ON COLUMN "CRGS"."EBASEINFO_UPDATE_AUDIT"."NEWDOM" IS '新地址';
COMMENT ON COLUMN "CRGS"."EBASEINFO_UPDATE_AUDIT"."OLDDOM" IS '旧地址';
COMMENT ON COLUMN "CRGS"."EBASEINFO_UPDATE_AUDIT"."PRIPID" IS '业务号';
COMMENT ON COLUMN "CRGS"."EBASEINFO_UPDATE_AUDIT"."STATUS" IS '状态 0-未执行 1-已执行';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229343424173100" ON "CRGS"."EBASEINFO_UPDATE_AUDIT"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"
(
"S_GUID" VARCHAR2(38) NOT NULL,
"JCJG" VARCHAR2(100),
"NSRMC" VARCHAR2(128),
"TYSHXYDM" VARCHAR2(100),
"ZZJGDM" VARCHAR2(100),
"ZCDZ" VARCHAR2(500),
"AJXZ" VARCHAR2(200),
"ZYWFSS" VARCHAR2(2048),
"XGFLYJJCLCFQK" VARCHAR2(2048),
"GBJB" VARCHAR2(50),
"GBSJ" DATE,
"XYZT" VARCHAR2(20),
"ZYWFXZ" VARCHAR2(2000),
"GSJJRQ" DATE,
"S_CREATION_TIME" TIMESTAMP(6) NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6),
"S_STATUS" VARCHAR2(1) NOT NULL,
"S_TRANS_STATUS" VARCHAR2(2),
"S_ROUTE_STATUS" VARCHAR2(2),
"S_SRC_NODE" VARCHAR2(80),
"S_DEST_NODE" VARCHAR2(80),
CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX" IS '重大税收违法失信案件信息';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."AJXZ" IS '案件性质';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."GBJB" IS '公布级别';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."GBSJ" IS '公布时间';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."GSJJRQ" IS '公示截止日期';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."JCJG" IS '检查机关';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."NSRMC" IS '纳税人名称';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."S_CREATION_TIME" IS '交换数据记录在当前节点交换库的物理创建时间';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."S_DEST_NODE" IS '目标节点名称';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."S_GUID" IS '交换数据记录的物理唯一标识';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."S_LAST_UPDATED" IS '交换数据记录在提供方交换库的最后修改时间';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."S_ROUTE_STATUS" IS '预留字段';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."S_SRC_NODE" IS '来源节点名称';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."S_STATUS" IS '交换数据记录的状态  0：添加；1：修改；2：废置';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."S_TRANS_STATUS" IS '预留字段';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."TYSHXYDM" IS '统一社会信用代码（纳税人识别号）';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."XGFLYJJCLCFQK" IS '相关法律依据及处理处罚情况';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."XYZT" IS '信用状态';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."ZCDZ" IS '注册地址';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."ZYWFSS" IS '主要违法事实';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."ZYWFXZ" IS '主要违法性质';
COMMENT ON COLUMN "CRGS"."EX_GUOSHUI_45_ZDSSWFAJXX"."ZZJGDM" IS '组织机构代码';


CREATE TABLE "CRGS"."EX_HUANBAO_05_QYXYPD"
(
"S_GUID" VARCHAR2(38) NOT NULL,
"XH" VARCHAR2(20),
"PDDW" VARCHAR2(20),
"DQ" VARCHAR2(20),
"FRDM" VARCHAR2(30),
"QYMC" VARCHAR2(100),
"PDND" DATE,
"PDJG" VARCHAR2(10),
"BZ" VARCHAR2(200),
"TYSHXYDM" VARCHAR2(18),
"S_CREATION_TIME" TIMESTAMP(6) NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6),
"S_STATUS" VARCHAR2(1) NOT NULL,
"S_TRANS_STATUS" VARCHAR2(2),
"S_ROUTE_STATUS" VARCHAR2(2),
"S_SRC_NODE" VARCHAR2(80),
"S_DEST_NODE" VARCHAR2(80),
CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."EX_HUANBAO_05_QYXYPD" IS '企业环保信用评定';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."BZ" IS '备注';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."DQ" IS '地区';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."FRDM" IS '法人代码';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."PDDW" IS '评定单位';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."PDJG" IS '评定结果';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."PDND" IS '评定年度';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."QYMC" IS '企业名称';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."S_CREATION_TIME" IS '交换数据记录在当前节点交换库的物理创建时间';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."S_DEST_NODE" IS '目标节点名称';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."S_GUID" IS '交换数据记录的物理唯一标识';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."S_LAST_UPDATED" IS '交换数据记录在提供方交换库的最后修改时间';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."S_ROUTE_STATUS" IS '预留字段';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."S_SRC_NODE" IS '来源节点名称';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."S_STATUS" IS '交换数据记录的状态  0：添加；1：修改；2：废置';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."S_TRANS_STATUS" IS '预留字段';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."TYSHXYDM" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."EX_HUANBAO_05_QYXYPD"."XH" IS '序号';


CREATE TABLE "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"
(
"S_GUID" VARCHAR2(38) NOT NULL,
"NB" VARCHAR2(200),
"XDRMC" VARCHAR2(100),
"TYSHXYDM" VARCHAR2(50),
"JMSFZ" VARCHAR2(50),
"SPBM" VARCHAR2(100),
"LRMDRQ" DATE,
"JZRQ" DATE,
"LRMDYY" VARCHAR2(1000),
"XMTYDM" VARCHAR2(50),
"S_CREATION_TIME" TIMESTAMP(6) NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6),
"S_STATUS" VARCHAR2(1) NOT NULL,
"S_TRANS_STATUS" VARCHAR2(2),
"S_ROUTE_STATUS" VARCHAR2(2),
"S_SRC_NODE" VARCHAR2(80),
"S_DEST_NODE" VARCHAR2(80),
CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD" IS '工程建设审批不诚信名单';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."JMSFZ" IS '居民身份证';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."JZRQ" IS '公示截止日期';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."LRMDRQ" IS '列入名单日期';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."LRMDYY" IS '列入名单原因';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."NB" IS '惟一编码';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."S_CREATION_TIME" IS '交换数据记录在当前节点交换库的物理创建时间';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."S_DEST_NODE" IS '目标节点名称';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."S_GUID" IS '交换数据记录的物理唯一标识';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."S_LAST_UPDATED" IS '交换数据记录在提供方交换库的最后修改时间';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."S_ROUTE_STATUS" IS '预留字段';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."S_SRC_NODE" IS '来源节点名称';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."S_STATUS" IS '交换数据记录的状态  0：添加；1：修改；2：废置';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."S_TRANS_STATUS" IS '预留字段';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."SPBM" IS '审批部门';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."TYSHXYDM" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."XDRMC" IS '相对人名称';
COMMENT ON COLUMN "CRGS"."EX_JIANWEI_185_GCJSSPBCXMD"."XMTYDM" IS '项目统一代码';


CREATE TABLE "CRGS"."EX_KECHUANG_01_GXJSQYRDXX"
(
"S_GUID" VARCHAR(38) NOT NULL,
"S_CREATION_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"S_STATUS" VARCHAR(1) DEFAULT '0' NOT NULL,
"S_TRANS_STATUS" VARCHAR(2) DEFAULT '00',
"S_ROUTE_STATUS" VARCHAR(2) DEFAULT '00',
"S_SRC_NODE" VARCHAR(80),
"S_DEST_NODE" VARCHAR(80),
"QYMC" VARCHAR(200),
"LB" VARCHAR(20),
"ND" VARCHAR(4),
"QY" VARCHAR(20),
"LY" VARCHAR(50),
"GQZSBH" VARCHAR(14),
"FZRQ" VARCHAR(20),
"TYSHXYDM" VARCHAR(18),
"FZJG" VARCHAR(200),
"YXQ" VARCHAR(20),
"BZ" VARCHAR(1000),
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."EX_KECHUANG_01_GXJSQYRDXX" IS '高新技术企业认定信息';
COMMENT ON COLUMN "CRGS"."EX_KECHUANG_01_GXJSQYRDXX"."BZ" IS '备注';
COMMENT ON COLUMN "CRGS"."EX_KECHUANG_01_GXJSQYRDXX"."FZJG" IS '发证机关';
COMMENT ON COLUMN "CRGS"."EX_KECHUANG_01_GXJSQYRDXX"."FZRQ" IS '发证日期';
COMMENT ON COLUMN "CRGS"."EX_KECHUANG_01_GXJSQYRDXX"."GQZSBH" IS '高企证书编码';
COMMENT ON COLUMN "CRGS"."EX_KECHUANG_01_GXJSQYRDXX"."LB" IS '类别';
COMMENT ON COLUMN "CRGS"."EX_KECHUANG_01_GXJSQYRDXX"."LY" IS '领域';
COMMENT ON COLUMN "CRGS"."EX_KECHUANG_01_GXJSQYRDXX"."ND" IS '年度';
COMMENT ON COLUMN "CRGS"."EX_KECHUANG_01_GXJSQYRDXX"."QY" IS '区域';
COMMENT ON COLUMN "CRGS"."EX_KECHUANG_01_GXJSQYRDXX"."QYMC" IS '企业名称';
COMMENT ON COLUMN "CRGS"."EX_KECHUANG_01_GXJSQYRDXX"."TYSHXYDM" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."EX_KECHUANG_01_GXJSQYRDXX"."YXQ" IS '有效期';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229339867001800" ON "CRGS"."EX_KECHUANG_01_GXJSQYRDXX"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"
(
"S_GUID" VARCHAR2(38) NOT NULL,
"JGMC" VARCHAR2(200),
"ZJLX" VARCHAR2(16),
"ZJHM" VARCHAR2(18),
"FDDBR" VARCHAR2(100),
"FDDBRZJLX" VARCHAR2(3),
"FDDBRZJHM" VARCHAR2(18),
"LRSY" LONGVARCHAR,
"SJJE" NUMBER(22,2),
"LRRQ" DATE,
"RDBM" VARCHAR2(200),
"WSH" VARCHAR2(128),
"TCRQ" DATE,
"S_CREATION_TIME" TIMESTAMP(6) NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6),
"S_STATUS" VARCHAR2(1) NOT NULL,
"S_TRANS_STATUS" VARCHAR2(2),
"S_ROUTE_STATUS" VARCHAR2(2),
"S_SRC_NODE" VARCHAR2(80),
"S_DEST_NODE" VARCHAR2(80),
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX" IS '拖欠农民工工资黑名单信息';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."FDDBR" IS '法定代表人姓名';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."FDDBRZJHM" IS '法定代表人证件号码';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."FDDBRZJLX" IS '法定代表人证件类型';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."JGMC" IS '机构名称';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."LRRQ" IS '列入日期';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."LRSY" IS '列入名单事由';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."RDBM" IS '认定部门';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."S_CREATION_TIME" IS '交换数据记录在当前节点交换库的物理创建时间';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."S_DEST_NODE" IS '目标节点名称';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."S_GUID" IS '交换数据记录的物理唯一标识';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."S_LAST_UPDATED" IS '交换数据记录在提供方交换库的最后修改时间';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."S_ROUTE_STATUS" IS '预留字段';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."S_SRC_NODE" IS '来源节点名称';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."S_STATUS" IS '交换数据记录的状态  0：添加；1：修改；2：废置';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."S_TRANS_STATUS" IS '预留字段';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."SJJE" IS '涉及金额';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."TCRQ" IS '退出日期';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."WSH" IS '文书号';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."ZJHM" IS '代码或证件号码';
COMMENT ON COLUMN "CRGS"."EX_LAOSHE_100_TQNMGGZHMDXX"."ZJLX" IS '代码或证件类型';


CREATE TABLE "CRGS"."EX_XFZD_06_XFAQXYDJ"
(
"S_GUID" VARCHAR2(38) NOT NULL,
"XZXDR" VARCHAR2(300),
"TYSHXYDM" VARCHAR2(50),
"FDDBR" VARCHAR2(500),
"FDDBRZJLX" VARCHAR2(50),
"FDDBRZJH" VARCHAR2(50),
"ZJLX" VARCHAR2(50),
"ZJH" VARCHAR2(50),
"PDDJ" VARCHAR2(10),
"PDDW" VARCHAR2(300),
"PDSJ" DATE,
"S_CREATION_TIME" TIMESTAMP(6) NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6),
"S_STATUS" VARCHAR2(1) NOT NULL,
"S_TRANS_STATUS" VARCHAR2(2),
"S_ROUTE_STATUS" VARCHAR2(2),
"S_SRC_NODE" VARCHAR2(80),
"S_DEST_NODE" VARCHAR2(80),
CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."EX_XFZD_06_XFAQXYDJ" IS '消防安全信用等级评定';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."FDDBR" IS '法定代表人姓名';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."FDDBRZJH" IS '法定代表人证件号码';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."FDDBRZJLX" IS '法定代表人证件类型';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."PDDJ" IS '评定等级';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."PDDW" IS '评定单位';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."PDSJ" IS '评定时间';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."S_CREATION_TIME" IS '交换数据记录在当前节点交换库的物理创建时间';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."S_DEST_NODE" IS '目标节点名称';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."S_GUID" IS '交换数据记录的物理唯一标识';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."S_LAST_UPDATED" IS '交换数据记录在提供方交换库的最后修改时间';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."S_ROUTE_STATUS" IS '预留字段';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."S_SRC_NODE" IS '来源节点名称';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."S_STATUS" IS '交换数据记录的状态  0：添加；1：修改；2：废置';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."S_TRANS_STATUS" IS '预留字段';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."TYSHXYDM" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."XZXDR" IS '行政相对人';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."ZJH" IS '证件号码';
COMMENT ON COLUMN "CRGS"."EX_XFZD_06_XFAQXYDJ"."ZJLX" IS '证件类型';


CREATE TABLE "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"
(
"S_GUID" VARCHAR2(38) NOT NULL,
"ZTMC" VARCHAR2(300),
"DJZCLX" VARCHAR2(100),
"TYSHXYDM" VARCHAR2(18),
"FDDBR" VARCHAR2(10),
"FDDBRZJLX" VARCHAR2(30),
"FDDBRZJH" VARCHAR2(300),
"ZJLX" VARCHAR2(20),
"ZJHM" VARCHAR2(20),
"WFSS" VARCHAR2(600),
"RDSS" DATE,
"GSJZQ" DATE,
"S_CREATION_TIME" TIMESTAMP(6) NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6),
"S_STATUS" VARCHAR2(1) NOT NULL,
"S_TRANS_STATUS" VARCHAR2(2),
"S_ROUTE_STATUS" VARCHAR2(2),
"S_SRC_NODE" VARCHAR2(80),
"S_DEST_NODE" VARCHAR2(80),
CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ" IS '未履行消防安全责任信息';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."DJZCLX" IS '登记注册类型';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."FDDBR" IS '法定代表人';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."FDDBRZJH" IS '法定代表人证件号';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."FDDBRZJLX" IS '法定代表人证件类型';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."GSJZQ" IS '公示截止日';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."RDSS" IS '认定时间';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."S_CREATION_TIME" IS '交换数据记录在当前节点交换库的物理创建时间';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."S_DEST_NODE" IS '目标节点名称';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."S_GUID" IS '交换数据记录的物理唯一标识';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."S_LAST_UPDATED" IS '交换数据记录在提供方交换库的最后修改时间';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."S_ROUTE_STATUS" IS '预留字段';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."S_SRC_NODE" IS '来源节点名称';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."S_STATUS" IS '交换数据记录的状态  0：添加；1：修改；2：废置';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."S_TRANS_STATUS" IS '预留字段';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."TYSHXYDM" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."WFSS" IS '违法事实';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."ZJHM" IS '证件号码';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."ZJLX" IS '证件类型';
COMMENT ON COLUMN "CRGS"."EX_XIAOFANGJIUYUAN_05_WLXXFAQZ"."ZTMC" IS '主体名称';


CREATE TABLE "CRGS"."EX_XINXIZHONGXIN_30_GGXYPJJG"
(
"S_GUID" VARCHAR(40) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"XH" TEXT,
"ZTMC" TEXT,
"TYSHXYDM" VARCHAR(40),
"ZHDF" TEXT,
"PJDJ" TEXT,
"TOPIC_ADD_TIME" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"OPERATIONTYPE" TEXT,
"F000" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229274181312100" ON "CRGS"."EX_XINXIZHONGXIN_30_GGXYPJJG"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."EX_XINXIZHONGXIN_30_GGXYPJJG_TYSHXYDM_IDX" ON "CRGS"."EX_XINXIZHONGXIN_30_GGXYPJJG"("TYSHXYDM" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_XXZX_09_AQSCHMD_AJ"
(
"S_GUID" VARCHAR(80) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"XH" TEXT,
"DWMC" TEXT,
"TYSHXYDM" VARCHAR(80),
"ZYFZR" TEXT,
"SXXWJK" TEXT,
"XXBSJG" TEXT,
"NRLY" TEXT,
"TOPIC_ADD_TIME" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"OPERATIONTYPE" TEXT,
"ZCDZ" TEXT,
"F000" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "CRGS"."EX_XXZX_09_AQSCHMD_AJ_TYSHXYDM_IDX" ON "CRGS"."EX_XXZX_09_AQSCHMD_AJ"("TYSHXYDM" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229224698571000" ON "CRGS"."EX_XXZX_09_AQSCHMD_AJ"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_XXZX_10_HGGJRZQYMD"
(
"S_GUID" VARCHAR(40) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"HGZCBM" TEXT,
"QYZWMC" TEXT,
"ZZJGDM" TEXT,
"XYDJ" TEXT,
"SCZCRQ" TEXT,
"DJRDSJ" TEXT,
"ZCDZ" TEXT,
"HYZL" TEXT,
"ZXBZ" TEXT,
"TRANS_DM_TONG_INSERTDATE" TEXT,
"TOPIC_ADD_TIME" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"OPERATIONTYPE" TEXT,
"F000" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229224291481500" ON "CRGS"."EX_XXZX_10_HGGJRZQYMD"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_XXZX_11_HGSXRZQYMD"
(
"S_GUID" VARCHAR(40) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"HGBM" TEXT,
"QYZWMC" TEXT,
"ZZJGDM" TEXT,
"SCZCRQ" TEXT,
"XYDJ" TEXT,
"DJRDSJ" TEXT,
"FRDB" TEXT,
"ZCDZ" TEXT,
"HYZL" TEXT,
"ZXBZ" TEXT,
"TRANS_DM_TONG_INSERTDATE" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"TOPIC_ADD_TIME" TEXT,
"OPERATIONTYPE" TEXT,
"F000" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229223883635800" ON "CRGS"."EX_XXZX_11_HGSXRZQYMD"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_XXZX_12_2017NDYPYZ"
(
"S_GUID" VARCHAR(40) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"XH" TEXT,
"XM" TEXT,
"SFZH" TEXT,
"TRANS_DM_TONG_INSERTDATE" TEXT,
"TOPIC_ADD_TIME" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"OPERATIONTYPE" TEXT,
"F000" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229223552283700" ON "CRGS"."EX_XXZX_12_2017NDYPYZ"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_XXZX_13_TJSYZSXQYH"
(
"S_GUID" VARCHAR(40) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"XZCFJDWSH" TEXT,
"CFMC" TEXT,
"CFLB1" TEXT,
"CFLB2" TEXT,
"CFSY" TEXT,
"CFYJ" TEXT,
"XZXDRMC" TEXT,
"TYSHXYDM" VARCHAR(40),
"ZZJGDM" TEXT,
"GSDJM" TEXT,
"SWDJH" TEXT,
"SFZH" TEXT,
"CFJG" TEXT,
"CFJDRQ" TEXT,
"GSQX" TEXT,
"CFJIG" TEXT,
"DQZT" TEXT,
"DFBM" TEXT,
"BZ" TEXT,
"TRANS_DM_TONG_INSERTDATE" TEXT,
"TOPIC_ADD_TIME" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"OPERATIONTYPE" TEXT,
"F000" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229223523347900" ON "CRGS"."EX_XXZX_13_TJSYZSXQYH"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."EX_XXZX_13_TJSYZSXQYH_TYSHXYDM_IDX" ON "CRGS"."EX_XXZX_13_TJSYZSXQYH"("TYSHXYDM" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_XXZX_14_2016NDCRJJ"
(
"S_GUID" VARCHAR(40) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"XH" TEXT,
"QYZZJGDM" TEXT,
"JYJYSYSXQYMD" TEXT,
"TRANS_DM_TONG_INSERTDATE" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"TOPIC_ADD_TIME" TEXT,
"OPERATIONTYPE" TEXT,
"F000" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229223084258200" ON "CRGS"."EX_XXZX_14_2016NDCRJJ"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_XXZX_14_SCJR_ZJH"
(
"S_GUID" VARCHAR(40) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"CFID" TEXT,
"CFDXMC" TEXT,
"ZJLX" TEXT,
"JMZJHM" TEXT,
"CFCLRQ" TEXT,
"CFCLMC" TEXT,
"CFCLZL" TEXT,
"CFDXLX" TEXT,
"ZSZJHM" TEXT,
"XXLX" TEXT,
"CFJG" TEXT,
"CFCLNR" TEXT,
"CFJDSID" TEXT,
"SJCFBM" TEXT,
"YXJZRQ" TEXT,
"TRANS_DM_TONG_INSERTDATE" TEXT,
"FID" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"TOPIC_ADD_TIME" TEXT,
"OPERATIONTYPE" TEXT,
"CFCLRQ_KTL" TEXT,
"F000" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229222548615200" ON "CRGS"."EX_XXZX_14_SCJR_ZJH"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_XXZX_15_YZZLSXQYMD"
(
"S_GUID" VARCHAR(40) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"XH" TEXT,
"TYSHXYDM" VARCHAR(40),
"YZZLSXQYMC" TEXT,
"TRANS_DM_TONG_INSERTDATE" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"TOPIC_ADD_TIME" TEXT,
"OPERATIONTYPE" TEXT,
"F000" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229222484747000" ON "CRGS"."EX_XXZX_15_YZZLSXQYMD"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."EX_XXZX_15_YZZLSXQYMD_TYSHXYDM_IDX" ON "CRGS"."EX_XXZX_15_YZZLSXQYMD"("TYSHXYDM" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_XXZX_16_ZDSSWFAJDS"
(
"S_GUID" VARCHAR(40) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"AJSBQ" TEXT,
"NSRMC" TEXT,
"NSRSBH" VARCHAR(40),
"ZZJGDM" TEXT,
"ZCDZ" TEXT,
"FDDBRHZFZRMC" TEXT,
"FDDBRHZFZRXB" TEXT,
"FDDBRHZFZRZJMC" TEXT,
"FDDBRHZFZRZJHM" TEXT,
"FYZJZRDCWFZRXM" TEXT,
"FYZJZRDCWFZRXB" TEXT,
"FYZJZRDCWFZRZJMC" TEXT,
"FYZJZRDCWFZRZJHM" TEXT,
"FYZJZRDZJJGXXJQCYRYXX" TEXT,
"AJXZ" TEXT,
"ZYWFSS" TEXT,
"XGFLYJJSWCLCFQK" TEXT,
"TRANS_DM_TONG_INSERTDATE" TEXT,
"TOPIC_ADD_TIME" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"OPERATIONTYPE" TEXT,
"F000" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "CRGS"."EX_XXZX_16_ZDSSWFAJDS_NSRSBH_IDX" ON "CRGS"."EX_XXZX_16_ZDSSWFAJDS"("NSRSBH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229220975056900" ON "CRGS"."EX_XXZX_16_ZDSSWFAJDS"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_XXZX_17_10AJNSRMD"
(
"S_GUID" VARCHAR(40) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"NSRSBH" VARCHAR(40),
"XH" TEXT,
"NSRMC" TEXT,
"PJND" TEXT,
"TRANS_DM_TONG_INSERTDATE" TEXT,
"FILENAME" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"TOPIC_ADD_TIME" TEXT,
"OPERATIONTYPE" TEXT,
"F000" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "CRGS"."EX_XXZX_17_10AJNSRMD_NSRSBH_IDX" ON "CRGS"."EX_XXZX_17_10AJNSRMD"("NSRSBH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229210634803700" ON "CRGS"."EX_XXZX_17_10AJNSRMD"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_XXZX_18_SXBZXRMD"
(
"S_GUID" VARCHAR2(100) DEFAULT SYS_GUID() NOT NULL,
"S_CREATION_TIME" TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6) DEFAULT SYSTIMESTAMP,
"S_STATUS" VARCHAR2(100) DEFAULT '0' NOT NULL,
"S_TRANS_STATUS" VARCHAR2(100) DEFAULT '00',
"S_ROUTE_STATUS" VARCHAR2(100) DEFAULT '00',
"S_SRC_NODE" VARCHAR2(160),
"S_DEST_NODE" VARCHAR2(160),
"ID" VARCHAR2(160),
"CASE_CODE" VARCHAR2(160),
"INAME" VARCHAR2(400),
"SEX_NAME" VARCHAR2(100),
"AGE" VARCHAR2(100),
"CARDNUM" VARCHAR2(1000),
"CARDTYPE" VARCHAR2(100),
"CARDNUMBER" VARCHAR2(1000),
"BUESINESSENTITY" VARCHAR2(200),
"COURT_NAME" VARCHAR2(400),
"AREA_ID" VARCHAR2(100),
"AREA_NAME" VARCHAR2(400),
"PARTY_TYPE_NAME" VARCHAR2(100),
"GIST_CID" VARCHAR2(1000),
"GIST_UNIT" VARCHAR2(3000),
"DUTY" CLOB,
"PERFORMANCE" VARCHAR2(1000),
"DISREPUT_TYPE_NAME" VARCHAR2(4000),
"PUBLISH_DATE" VARCHAR2(100),
"REG_DATE" VARCHAR2(100),
"PERFORMED_PART" VARCHAR2(2000),
"UNPERFORM_PART" VARCHAR2(3000),
"TRANS_DM_TONG_INSERTDATE" TIMESTAMP(6),
"TOPIC_UPDATE_TIME" DATE,
"TOPIC_ADD_TIME" DATE,
"OPERATIONTYPE" VARCHAR2(100),
"F000" VARCHAR2(100),
"FILE_NAME" VARCHAR2(200),
"CREATETIME" DATE,
"INFOACTIONTYPE" VARCHAR2(300),
"RECID" VARCHAR2(300),
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."EX_XXZX_18_SXBZXRMD" IS '失信被执行人名单（最高法院）';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."AGE" IS '年龄';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."AREA_ID" IS '地域ID';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."AREA_NAME" IS '地域名称';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."BUESINESSENTITY" IS '企业法人姓名';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."CARDNUM" IS '身份证号码／组织机构代码';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."CARDNUMBER" IS '证件号码';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."CARDTYPE" IS '证件类型';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."CASE_CODE" IS '案号';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."COURT_NAME" IS '执行法院';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."DISREPUT_TYPE_NAME" IS '失信被执行人具体情形';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."DUTY" IS '法律生效文书确定的义务';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."F000" IS '主键（内部字段）';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."GIST_CID" IS '执行依据文号';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."GIST_UNIT" IS '作出执行依据单位';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."ID" IS '信息唯一标识';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."INAME" IS '失信被执行人姓名／名称';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."OPERATIONTYPE" IS '操作类型（内部字段）';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."PARTY_TYPE_NAME" IS '标识自然人或企业法人';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."PERFORMANCE" IS '被执行人的履行情况';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."PERFORMED_PART" IS '已履行部分';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."PUBLISH_DATE" IS '发布时间';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."REG_DATE" IS '立案时间';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."SEX_NAME" IS '性别';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."TOPIC_ADD_TIME" IS '添加时间（内部字段）';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."TOPIC_UPDATE_TIME" IS '更新时间（内部字段）';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."TRANS_DM_TONG_INSERTDATE" IS '入库时间';
COMMENT ON COLUMN "CRGS"."EX_XXZX_18_SXBZXRMD"."UNPERFORM_PART" IS '未履行部分';


CREATE TABLE "CRGS"."EX_XXZX_19_DZSWSXWTZX"
(
"S_GUID" VARCHAR(40) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"XH" TEXT,
"QYMC" TEXT,
"FDDBR" TEXT,
"CX" TEXT,
"TYSHXYDM" VARCHAR(40),
"ZZJGDM" TEXT,
"GSZCH" TEXT,
"SF" TEXT,
"TOPIC_ADD_TIME" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"OPERATIONTYPE" TEXT,
"F000" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "CRGS"."EX_XXZX_19_DZSWSXWTZX_TYSHXYDM_IDX" ON "CRGS"."EX_XXZX_19_DZSWSXWTZX"("TYSHXYDM" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229201932631200" ON "CRGS"."EX_XXZX_19_DZSWSXWTZX"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_XXZX_20_SJRHMD"
(
"S_GUID" VARCHAR(40) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"F000" TEXT,
"SXZT" TEXT,
"PROVINCE" TEXT,
"TYSHXYDM" TEXT,
"REGNO" TEXT,
"ZZJGDM" TEXT,
"ZM" TEXT,
"AH" TEXT,
"ZCPJJG" TEXT,
"FDDBR" TEXT,
"HMDTYPE" TEXT,
"SXRLB" TEXT,
"ISSHOW" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"ZRRSFZ" TEXT,
"SAJE" TEXT,
"LRBM" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229201539428400" ON "CRGS"."EX_XXZX_20_SJRHMD"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_XXZX_21_2018TQNMGGZ"
(
"S_GUID" VARCHAR(40) NOT NULL,
"S_CREATION_TIME" TEXT,
"S_LAST_UPDATED" TEXT,
"S_STATUS" TEXT,
"S_TRANS_STATUS" TEXT,
"S_ROUTE_STATUS" TEXT,
"S_SRC_NODE" TEXT,
"S_DEST_NODE" TEXT,
"XH" TEXT,
"DXMC" TEXT,
"DXLB" TEXT,
"ZJLX" TEXT,
"ZJHM" TEXT,
"FRDB" TEXT,
"FRDBZJLX" TEXT,
"FRDBZJHM" TEXT,
"MDMC" TEXT,
"LYSY" TEXT,
"SJJE" TEXT,
"LRRQ" TEXT,
"RDBM" TEXT,
"WSH" TEXT,
"TCMDYY" TEXT,
"TCRQ" TEXT,
"XYPT_Q_DB_TIME_DXP" TEXT,
"F000" TEXT,
"TOPIC_ADD_TIME" TEXT,
"TOPIC_UPDATE_TIME" TEXT,
"OPERATIONTYPE" TEXT,
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229201185700600" ON "CRGS"."EX_XXZX_21_2018TQNMGGZ"("S_GUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_YAOJIAN_36_SPJYQYXX"
(
"S_GUID" VARCHAR2(38) DEFAULT SYS_GUID() NOT NULL,
"S_CREATION_TIME" TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6) DEFAULT SYSTIMESTAMP,
"S_STATUS" VARCHAR2(1) DEFAULT '0' NOT NULL,
"S_TRANS_STATUS" VARCHAR2(2) DEFAULT '00',
"S_ROUTE_STATUS" VARCHAR2(2) DEFAULT '00',
"S_SRC_NODE" VARCHAR2(80),
"S_DEST_NODE" VARCHAR2(80),
"SSJD" VARCHAR2(50),
"JYXM" VARCHAR2(1000),
"QYMC" VARCHAR2(400),
"SHXYDM" VARCHAR2(50),
"FZJG" VARCHAR2(100),
"SSZCH" VARCHAR2(50),
"XKZH" VARCHAR2(100),
"YXQZ" DATE,
"FZRQ" DATE,
"ZSZT" VARCHAR2(40),
"ZS" VARCHAR2(1000),
"FDDBR" VARCHAR2(100),
"XZQH" VARCHAR2(50),
"JYCS" VARCHAR2(1000),
"ZTYT" VARCHAR2(50),
"FDDBRZJLX" VARCHAR2(50),
"FDDBRZJHM" VARCHAR2(100),
"ZZJGDM" VARCHAR2(50),
"BIZ_ID" VARCHAR2(50),
"BIZ_TIME" DATE,
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_YAOJIAN_47_YPJYQYXX"
(
"S_GUID" VARCHAR2(38) DEFAULT SYS_GUID() NOT NULL,
"S_CREATION_TIME" TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6) DEFAULT SYSTIMESTAMP,
"S_STATUS" VARCHAR2(1) DEFAULT '0' NOT NULL,
"S_TRANS_STATUS" VARCHAR2(2) DEFAULT '00',
"S_ROUTE_STATUS" VARCHAR2(2) DEFAULT '00',
"S_SRC_NODE" VARCHAR2(80),
"S_DEST_NODE" VARCHAR2(80),
"SSJD" VARCHAR2(50),
"ZSZT" VARCHAR2(40),
"QYFZR" VARCHAR2(50),
"SHXYDM" VARCHAR2(50),
"XZQH" VARCHAR2(50),
"ZZJGDM" VARCHAR2(50),
"SSZCH" VARCHAR2(50),
"FDDBRZJLX" VARCHAR2(50),
"JYLB" VARCHAR2(800),
"JYFS" VARCHAR2(200),
"FZJG" VARCHAR2(100),
"FDDBR" VARCHAR2(50),
"QYFZRZJHM" VARCHAR2(50),
"CKDZ" VARCHAR2(2000),
"FZRQ" DATE,
"FDDBRZJHM" VARCHAR2(50),
"QYFZRZJLX" VARCHAR2(50),
"QYMC" VARCHAR2(400),
"JYFW" VARCHAR2(1000),
"ZCDZ" VARCHAR2(1000),
"ZLFZR" VARCHAR2(50),
"XKZH" VARCHAR2(100),
"YXQ" DATE,
"BIZ_ID" VARCHAR2(50),
"BIZ_TIME" DATE,
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_YAOJIAN_49_DSLQXJYQY"
(
"S_GUID" VARCHAR2(38) DEFAULT SYS_GUID() NOT NULL,
"S_CREATION_TIME" TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6) DEFAULT SYSTIMESTAMP,
"S_STATUS" VARCHAR2(1) DEFAULT '0' NOT NULL,
"S_TRANS_STATUS" VARCHAR2(2) DEFAULT '00',
"S_ROUTE_STATUS" VARCHAR2(2) DEFAULT '00',
"S_SRC_NODE" VARCHAR2(80),
"S_DEST_NODE" VARCHAR2(80),
"SSJD" VARCHAR2(50),
"ZZJGDM" VARCHAR2(50),
"ZLFZR" VARCHAR2(50),
"SHXYDM" VARCHAR2(50),
"JYCS" VARCHAR2(1000),
"FDDBR" VARCHAR2(50),
"QYFZR" VARCHAR2(50),
"XZQH" VARCHAR2(50),
"SSZCH" VARCHAR2(50),
"QYFZRZJHM" VARCHAR2(50),
"ZS" VARCHAR2(1000),
"YXQZ" DATE,
"JYFW" VARCHAR2(4000),
"FZRQ" DATE,
"QYMC" VARCHAR2(400),
"FDDBRZJLX" VARCHAR2(50),
"ZSZT" VARCHAR2(40),
"FZJG" VARCHAR2(100),
"QYFZRZJLX" VARCHAR2(50),
"CKDZ" VARCHAR2(2000),
"JYFS" VARCHAR2(100),
"XKZH" VARCHAR2(100),
"FDDBRZJHM" VARCHAR2(50),
"BIZ_ID" VARCHAR2(50),
"BIZ_TIME" DATE,
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_YAOJIAN_50_CYFWQYXX"
(
"S_GUID" VARCHAR2(38) DEFAULT SYS_GUID() NOT NULL,
"S_CREATION_TIME" TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6) DEFAULT SYSTIMESTAMP,
"S_STATUS" VARCHAR2(1) DEFAULT '0' NOT NULL,
"S_TRANS_STATUS" VARCHAR2(2) DEFAULT '00',
"S_ROUTE_STATUS" VARCHAR2(2) DEFAULT '00',
"S_SRC_NODE" VARCHAR2(80),
"S_DEST_NODE" VARCHAR2(80),
"FZJG" VARCHAR2(100),
"FZRQ" DATE,
"FDDBR" VARCHAR2(50),
"LB" VARCHAR2(50),
"SHXYDM" VARCHAR2(50),
"SSZCH" VARCHAR2(50),
"BZ" VARCHAR2(4000),
"SSJD" VARCHAR2(50),
"FDDBRZJLX" VARCHAR2(50),
"ZSZT" VARCHAR2(40),
"QYMC" VARCHAR2(400),
"XZQH" VARCHAR2(50),
"DZ" VARCHAR2(1000),
"ZZJGDM" VARCHAR2(50),
"XKZH" VARCHAR2(100),
"YXQZ" DATE,
"FDDBRZJHM" VARCHAR2(100),
"BIZ_ID" VARCHAR2(50),
"BIZ_TIME" DATE,
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_YAOJIAN_51_SPSCQYXX"
(
"S_GUID" VARCHAR2(38) DEFAULT SYS_GUID() NOT NULL,
"S_CREATION_TIME" TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6) DEFAULT SYSTIMESTAMP,
"S_STATUS" VARCHAR2(1) DEFAULT '0' NOT NULL,
"S_TRANS_STATUS" VARCHAR2(2) DEFAULT '00',
"S_ROUTE_STATUS" VARCHAR2(2) DEFAULT '00',
"S_SRC_NODE" VARCHAR2(80),
"S_DEST_NODE" VARCHAR2(80),
"FDDBRZJLX" VARCHAR2(50),
"FZRQ" TIMESTAMP(6),
"FZJG" VARCHAR2(100),
"ZS" VARCHAR2(1000),
"SPLB" VARCHAR2(4000),
"SCDZ" VARCHAR2(1000),
"QYMC" VARCHAR2(400),
"XKZH" VARCHAR2(100),
"SHXYDM" VARCHAR2(50),
"FDDBRZJHM" VARCHAR2(50),
"YXQZ" TIMESTAMP(6),
"ZSZT" VARCHAR2(40),
"FDDBR" VARCHAR2(50),
"XZQH" VARCHAR2(50),
"ZZJGDM" VARCHAR2(50),
"SSZCH" VARCHAR2(50),
"SSJD" VARCHAR2(50),
"BIZ_ID" VARCHAR2(50),
"BIZ_TIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_YAOJIAN_52_SPLTQYXX"
(
"S_GUID" VARCHAR2(38) DEFAULT SYS_GUID() NOT NULL,
"S_CREATION_TIME" TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6) DEFAULT SYSTIMESTAMP,
"S_STATUS" VARCHAR2(1) DEFAULT '0' NOT NULL,
"S_TRANS_STATUS" VARCHAR2(2) DEFAULT '00',
"S_ROUTE_STATUS" VARCHAR2(2) DEFAULT '00',
"S_SRC_NODE" VARCHAR2(80),
"S_DEST_NODE" VARCHAR2(80),
"ZSZT" VARCHAR2(40),
"ZZJGDM" VARCHAR2(50),
"FZJG" VARCHAR2(100),
"FDDBRZJHM" VARCHAR2(50),
"FDDBRZJLX" VARCHAR2(50),
"XZQH" VARCHAR2(50),
"YXQZ" DATE,
"QYMC" VARCHAR2(400),
"FDDBR" VARCHAR2(50),
"JYFS" VARCHAR2(100),
"SPLB" VARCHAR2(1000),
"SSJD" VARCHAR2(50),
"SHXYDM" VARCHAR2(50),
"JYDZ" VARCHAR2(1000),
"ZSZH" VARCHAR2(100),
"SSZCH" VARCHAR2(50),
"FZRQ" DATE,
"BIZ_ID" VARCHAR2(50),
"BIZ_TIME" DATE,
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."EX_YAOJIAN_71_WLSPJYPTBAXX"
(
"S_GUID" VARCHAR2(38) DEFAULT SYS_GUID() NOT NULL,
"S_CREATION_TIME" TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6) DEFAULT SYSTIMESTAMP,
"S_STATUS" VARCHAR2(1) DEFAULT '0' NOT NULL,
"S_TRANS_STATUS" VARCHAR2(2) DEFAULT '00',
"S_ROUTE_STATUS" VARCHAR2(2) DEFAULT '00',
"S_SRC_NODE" VARCHAR2(80),
"S_DEST_NODE" VARCHAR2(80),
"BAH" VARCHAR2(50),
"BARMC" VARCHAR2(400),
"XKZH" VARCHAR2(50),
"DZ" VARCHAR2(400),
"FDDBR" VARCHAR2(100),
"WZBAH" VARCHAR2(500),
"WZYM" VARCHAR2(500),
"IPDZ" VARCHAR2(500),
"FZJG" VARCHAR2(100),
"BARQ" TIMESTAMP(6),
"BAZT" VARCHAR2(20),
"BIZ_ID" VARCHAR2(50),
"BIZ_TIME" TIMESTAMP(6),
"XZQH" VARCHAR2(50),
"SSJD" VARCHAR2(50),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."FILE_UPLOAD_LOG"
(
"CREATE_BY" VARCHAR(40) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(40) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(40) NOT NULL,
"ORIGIN_NAME" VARCHAR(100) NOT NULL,
"FILE_EXT" VARCHAR(10) NOT NULL,
"UPLOAD_MODULE" VARCHAR(10) NOT NULL,
"SAVE_NAME" VARCHAR(100) NOT NULL,
"SAVE_PATH" TEXT NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."FILE_UPLOAD_LOG" IS '文件上传记录';
COMMENT ON COLUMN "CRGS"."FILE_UPLOAD_LOG"."FILE_EXT" IS '文件扩展名';
COMMENT ON COLUMN "CRGS"."FILE_UPLOAD_LOG"."ID" IS '数据id';
COMMENT ON COLUMN "CRGS"."FILE_UPLOAD_LOG"."ORIGIN_NAME" IS '原文件名';
COMMENT ON COLUMN "CRGS"."FILE_UPLOAD_LOG"."SAVE_NAME" IS '保存文件名';
COMMENT ON COLUMN "CRGS"."FILE_UPLOAD_LOG"."SAVE_PATH" IS '文件保存路径';
COMMENT ON COLUMN "CRGS"."FILE_UPLOAD_LOG"."UPLOAD_MODULE" IS '上传模块';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229200974981700" ON "CRGS"."FILE_UPLOAD_LOG"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."FILE_UPLOAD_LOG_UPLOAD_MODULE_IDX" ON "CRGS"."FILE_UPLOAD_LOG"("UPLOAD_MODULE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."FILE_UPLOAD_LOG_FILE_EXT_IDX" ON "CRGS"."FILE_UPLOAD_LOG"("FILE_EXT" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"
(
"FORCERESID" VARCHAR2(32) NOT NULL,
"FORCEID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(200) NOT NULL,
"UNISCID" VARCHAR2(18),
"REGORG" VARCHAR2(64),
"REGORG_CN" VARCHAR2(128),
"DECDATE" DATE,
"ANNDATE" DATE,
"NOTICEFROM" DATE NOT NULL,
"NOTICETO" DATE NOT NULL,
"FORCERRA" VARCHAR2(2),
"FORCERRADATE" DATE,
"WEBSITE" VARCHAR2(512),
"REGNO" VARCHAR2(15),
"DOM" VARCHAR2(512),
"LEREP" VARCHAR2(200),
"FORCEREGOPI" VARCHAR2(512) DEFAULT '拟强制注销',
"FORCERES" VARCHAR2(2),
"FORCERESDATE" DATE,
"ENDFORCERRA" VARCHAR2(2),
"S_EXT_FROMNODE" VARCHAR2(6),
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "PK_FORCE_LOGOUT_DETAIL" CLUSTER PRIMARY KEY("FORCERESID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."ANNDATE" IS '公告正式发布的日期，数据元标识符：D05015，状态：废除，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."DECDATE" IS '作出强制注销决定的日期，数据元标识符：D05003，状态：废除，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."DOM" IS '企业的法定注册地址，数据元标识符：D04001，新增字段，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."ENDFORCERRA" IS '终止拟强制注销的原因编码，代码标识符：C13043，新增字段；仅当FORCERES=“2”时填写';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."ENTNAME" IS '企业或机构的法定全称，数据元标识符：D01003，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCEID" IS '拟强制注销公告主键，关联公告主表（FORCE_LOGOUT_NOTICE）的FORCEID字段';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCEREGOPI" IS '登记意见说明，新增字段，固定值为“拟强制注销”，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCERES" IS '拟强制注销的处理结果编码，代码标识符：C13044，新增字段，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCERESDATE" IS '处理结果的确认日期，新增字段，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCERESID" IS '拟强制注销公告详细ID，作为主键唯一标识每条公告明细记录';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCERRA" IS '拟强制注销的法定事由编码，代码标识符：C13042；指标项名称由“强制注销事由”调整而来，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCERRADATE" IS '法定事由对应的发生日期，状态：废除，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."LEREP" IS '企业法定代表人姓名，数据元标识符：D02022，新增字段，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."NOTICEFROM" IS '公告有效起始日期，数据元标识符：D05030，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."NOTICETO" IS '公告有效截止日期，数据元标识符：D05031，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."PRIPID" IS '主体身份唯一标识代码，代码标识符：C01007，数据元标识符：DA001';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."REGNO" IS '企业原注册号，代码标识符：C01008，数据元标识符：D13001，新增字段，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."REGORG" IS '企业登记机关编码，代码标识符：C01006，数据元标识符：D13023，状态：废除，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."REGORG_CN" IS '登记机关的中文全称，与REGORG编码一一对应，状态：废除，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."S_EXT_DATATIME" IS '数据初始化或更新的时间戳，记录数据最新操作时间';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."S_EXT_FROMNODE" IS '二级部署时的地市标识，采用6位登记机关编码区分不同地市数据';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."UNISCID" IS '企业的统一社会信用代码，代码标识符：C01018，数据元标识符：D01012，需公示';
COMMENT ON COLUMN "CRGS"."FORCE_LOGOUT_NOTICE_DETAIL"."WEBSITE" IS '异议提交的网址（信息化系统路径），指标项名称由“异议途径”调整而来，需公示';


CREATE TABLE "CRGS"."HYD_DATA_POOL_QY"
(
"DID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F1" DECIMAL(24,6),
"F2" DECIMAL(24,6),
"F3" DECIMAL(24,6),
"F4" DECIMAL(24,6),
"F5" DECIMAL(24,6),
"F6" DECIMAL(24,6) DEFAULT 0,
"F7" DECIMAL(24,6),
"F8" DECIMAL(24,6),
"F9" DECIMAL(24,6),
"F10" DECIMAL(24,6),
"F11" DECIMAL(24,6),
"F12" DECIMAL(24,6),
"F13" DECIMAL(24,6),
"F14" DECIMAL(24,6),
"F15" DECIMAL(24,6),
"F16" DECIMAL(24,6),
"F17" DECIMAL(24,6),
"F18" DECIMAL(24,6),
"F19" DECIMAL(24,6),
"F20" DECIMAL(24,6),
"F21" DECIMAL(24,6),
"F22" DECIMAL(24,6),
"F23" DECIMAL(24,6),
"F24" DECIMAL(24,6),
"SCORE" DECIMAL(24,6),
"DATA_STATUS" VARCHAR2(2),
"UPDATE_TIME" DATE,
CLUSTER PRIMARY KEY("DID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."HYD_DATA_POOL_QY" IS '活跃度_企业数据池';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."DATA_STATUS" IS '数据状态（0：未采集特征；1：已采集特征）';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F1" IS '企业状态';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F10" IS '专利申请状态';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F11" IS '许可和认证状态';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F12" IS '电子营业执照使用状态';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F13" IS '企业变更备案状态';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F14" IS '分支机构开设情况';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F15" IS '互联网产品经营信息';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F16" IS '产品质量舆情信息';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F17" IS '投诉举报记录';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F18" IS '报送年报状态';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F19" IS '双随机抽查日常监管';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F2" IS '行业门类';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F20" IS '行政处罚状态';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F21" IS '严重违法失信信息';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F22" IS '企业经营异常名录信息';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F23" IS '产品质量监督抽查信息';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F24" IS '食品抽查检查信息';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F3" IS '当年度新增企业';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F4" IS '资产状况信息';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F5" IS '领用发票状态';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F6" IS '社保缴存状态';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F7" IS '招标采购状态';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F8" IS '高新技术认定状态';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."F9" IS '商标申请状态';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."SCORE" IS '活跃度评分';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."HYD_DATA_POOL_QY"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."HYD_DATA_POOL_QY_UNISCID_IDX" ON "CRGS"."HYD_DATA_POOL_QY"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."HYD_ENT_SCORE_2024"
(
"PRIPID" VARCHAR2(36) NOT NULL,
"M1_SCORE" INTEGER,
"M2_SCORE" INTEGER,
"M3_SCORE" INTEGER,
"M4_SCORE" INTEGER,
"M5_SCORE" INTEGER,
"M6_SCORE" INTEGER,
"M7_SCORE" INTEGER,
"M8_SCORE" INTEGER,
"M9_SCORE" INTEGER,
"M10_SCORE" INTEGER,
"M11_SCORE" INTEGER,
"M12_SCORE" INTEGER,
"UNISCID" VARCHAR(18),
CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."M10_SCORE" IS '10月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."M11_SCORE" IS '11月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."M12_SCORE" IS '12月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."M1_SCORE" IS '1月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."M2_SCORE" IS '2月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."M3_SCORE" IS '3月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."M4_SCORE" IS '4月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."M5_SCORE" IS '5月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."M6_SCORE" IS '6月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."M7_SCORE" IS '7月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."M8_SCORE" IS '8月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."M9_SCORE" IS '9月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2024"."UNISCID" IS '统一社会信用代码';


CREATE TABLE "CRGS"."HYD_ENT_SCORE_2025"
(
"PRIPID" VARCHAR2(36) NOT NULL,
"M1_SCORE" INTEGER,
"M2_SCORE" INTEGER,
"M3_SCORE" INTEGER,
"M4_SCORE" INTEGER,
"M5_SCORE" INTEGER,
"M6_SCORE" INTEGER,
"M7_SCORE" INTEGER,
"M8_SCORE" INTEGER,
"M9_SCORE" INTEGER,
"M10_SCORE" INTEGER,
"M11_SCORE" INTEGER,
"M12_SCORE" INTEGER,
"UNISCID" VARCHAR(18),
CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."M10_SCORE" IS '10月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."M11_SCORE" IS '11月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."M12_SCORE" IS '12月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."M1_SCORE" IS '1月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."M2_SCORE" IS '2月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."M3_SCORE" IS '3月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."M4_SCORE" IS '4月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."M5_SCORE" IS '5月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."M6_SCORE" IS '6月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."M7_SCORE" IS '7月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."M8_SCORE" IS '8月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."M9_SCORE" IS '9月活跃度';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."HYD_ENT_SCORE_2025"."UNISCID" IS '统一社会信用代码';


CREATE TABLE "CRGS"."HYD_MODEL_BASE_INFO"
(
"ID" VARCHAR2(32) NOT NULL,
"MODEL_NAME" VARCHAR2(255),
"MODEL_VERSION" VARCHAR2(255),
"MODEL_TYPE" VARCHAR2(1),
"TRAIN_SET_SIZE" INTEGER DEFAULT 0,
"TEST_SET_SIZE" INTEGER DEFAULT 0,
"LOW_ACT" VARCHAR2(255) DEFAULT '0-60',
"NORMAL_ACT" VARCHAR2(255) DEFAULT '60-80',
"HIGH_ACT" VARCHAR2(255) DEFAULT '80-100',
"MODEL_STATUS" INTEGER DEFAULT 1,
"PUBLISH_TIME" TIMESTAMP(6),
"CREATED_BY" VARCHAR(36),
"CREATED_TIME" TIMESTAMP(6),
"UPDATED_BY" VARCHAR(36),
"UPDATED_TIME" TIMESTAMP(6),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."HYD_MODEL_BASE_INFO" IS '活跃度_模型基本信息';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."CREATED_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."CREATED_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."HIGH_ACT" IS '高活跃度边界';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."LOW_ACT" IS '低活跃度边界';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."MODEL_NAME" IS '模型名称';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."MODEL_STATUS" IS '模型状态（1：待选取数据集训练；2、已选取数据集待训练；3：训练中；4：训练完成，待发布；5：当前已发布）';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."MODEL_TYPE" IS '模型类型（1：企业；2：个体户；3：农专；）';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."MODEL_VERSION" IS '模型版本';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."NORMAL_ACT" IS '中活跃度边界';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."PUBLISH_TIME" IS '发布时间';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."TEST_SET_SIZE" IS '测试集大小';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."TRAIN_SET_SIZE" IS '训练集大小';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."UPDATED_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_BASE_INFO"."UPDATED_TIME" IS '更新时间';


CREATE TABLE "CRGS"."HYD_MODEL_DETAIL_INFO"
(
"ID" VARCHAR2(32) NOT NULL,
"MODEL_ID" VARCHAR2(32),
"TYPE" INTEGER,
"P_ID" VARCHAR(32),
"QUOTA_CODE" VARCHAR(32),
"QUOTA_NAME" VARCHAR2(255),
"QUOTA_LAYER" INTEGER,
"ORDER_IDX" INTEGER,
"WEIGHT" VARCHAR(32),
"IS_USED" VARCHAR2(1),
"FEATURE_RANGE" VARCHAR(100),
"CREATED_BY" VARCHAR2(32),
"CREATED_TIME" TIMESTAMP(6),
"UPDATED_BY" VARCHAR2(32),
"UPDATED_TIME" TIMESTAMP(6),
"SCORE" DECIMAL(24,6),
"WEIGHT_SCORE" DECIMAL(24,6),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."HYD_MODEL_DETAIL_INFO" IS '活跃度_模型指标信息';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."CREATED_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."CREATED_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."FEATURE_RANGE" IS '特征值范围';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."IS_USED" IS '是否采用（0否1是）';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."MODEL_ID" IS '模型id';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."ORDER_IDX" IS '排序索引';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."P_ID" IS '父id';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."QUOTA_CODE" IS '指标编码';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."QUOTA_LAYER" IS '指标层级';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."QUOTA_NAME" IS '指标名称';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."SCORE" IS '评分';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."TYPE" IS '类型（1：企业；2：个体户；3：农专）';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."UPDATED_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."UPDATED_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."WEIGHT" IS '权重';
COMMENT ON COLUMN "CRGS"."HYD_MODEL_DETAIL_INFO"."WEIGHT_SCORE" IS '计算权重后的评分';

CREATE OR REPLACE  INDEX "CRGS"."HYD_MODEL_DETAIL_INFO_MODEL_ID_IDX" ON "CRGS"."HYD_MODEL_DETAIL_INFO"("MODEL_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."HYD_QUOTA_BASE_INFO"
(
"ID" VARCHAR2(32) NOT NULL,
"TYPE" INTEGER,
"P_ID" VARCHAR(32),
"QUOTA_CODE" VARCHAR(32),
"QUOTA_NAME" VARCHAR2(255),
"QUOTA_LAYER" INTEGER,
"ORDER_IDX" INTEGER,
"WEIGHT" VARCHAR(32),
"IS_USED" VARCHAR2(1),
"FEATURE_RANGE" VARCHAR(100),
"CREATED_BY" VARCHAR2(32),
"CREATED_TIME" DATE,
"UPDATED_BY" VARCHAR2(32),
"UPDATED_TIME" DATE,
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."HYD_QUOTA_BASE_INFO" IS '活跃度_指标基本信息';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."CREATED_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."CREATED_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."FEATURE_RANGE" IS '特征值范围';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."IS_USED" IS '是否采用（0否1是）';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."ORDER_IDX" IS '排序索引';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."P_ID" IS '父id';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."QUOTA_CODE" IS '指标编码';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."QUOTA_LAYER" IS '指标层级';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."QUOTA_NAME" IS '指标名称';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."TYPE" IS '类型（1：企业；2：个体户；3：农专）';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."UPDATED_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."UPDATED_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."HYD_QUOTA_BASE_INFO"."WEIGHT" IS '权重';

CREATE OR REPLACE  INDEX "CRGS"."HYD_QUOTA_BASE_INFO_TYPE_IDX" ON "CRGS"."HYD_QUOTA_BASE_INFO"("TYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."INDEX_SCORE"
(
"ID" VARCHAR(36),
"USCC" VARCHAR(50),
"REGISTERED_CAPITAL" SMALLINT,
"SURVIVAL_TIME" SMALLINT,
"BUSINESS_TERM" SMALLINT,
"INDUSTRY_CATEGORIES" SMALLINT,
"NUMBER_PUNISHMENT" SMALLINT,
"ILLEGAL_BREACH" SMALLINT,
"THE_BLACKLIST" SMALLINT,
"INCLUDED_ABNORMAL" SMALLINT,
"FOCUS" SMALLINT,
"RANDOM_INSPECTION" SMALLINT,
"OTHER_DEPARTMENTS" SMALLINT,
"ADMINISTRATION" SMALLINT,
"NATIONAL_DEVELOPMENT" SMALLINT,
"TAX_CREDIT" SMALLINT,
"REGULATORY" SMALLINT,
"REVOKED" SMALLINT,
"CREDIT_BLACKLIST" SMALLINT,
"FOCUS_SITUATION" SMALLINT,
"ADMINISTRATIVE_PUNISHMENT" SMALLINT,
"POOR_CREDIT" SMALLINT,
"GROSS_OPERATING_INCOME" SMALLINT,
"SOCIAL_SECURITY_NUMBER" SMALLINT,
"MONITORING_DATA" SMALLINT,
"PUBLIC_OPINION" SMALLINT,
"TOTAL_SCORE" SMALLINT,
"UPDATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(50),
"CREATE_TIME" TIMESTAMP(0),
"CREATE_BY" VARCHAR(50),
"PRIPID" VARCHAR(40)) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."ADMINISTRATION" IS '总局信用评价';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."ADMINISTRATIVE_PUNISHMENT" IS '近三年行政处罚情况';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."BUSINESS_TERM" IS '营业期限';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."CREDIT_BLACKLIST" IS '近三年列入信用黑名单情况';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."FOCUS" IS '列入其他重点关注名单情况';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."FOCUS_SITUATION" IS '近三年列入重点关注情况';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."GROSS_OPERATING_INCOME" IS '年报营业总收入';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."ILLEGAL_BREACH" IS '列入严重违法失信情况';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."INCLUDED_ABNORMAL" IS '近三年列异次数';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."INDUSTRY_CATEGORIES" IS '行业类别';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."MONITORING_DATA" IS '监测数据情况';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."NATIONAL_DEVELOPMENT" IS '发改委信用评价';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."NUMBER_PUNISHMENT" IS '近三年的处罚次数';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."OTHER_DEPARTMENTS" IS '其他部门的抽查检查情况';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."POOR_CREDIT" IS '信用评价为差情况';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."PRIPID" IS '主体pirpid';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."PUBLIC_OPINION" IS '舆情情况';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."RANDOM_INSPECTION" IS '双随机抽查情况';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."REGISTERED_CAPITAL" IS '注册资本';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."REGULATORY" IS '互联网+监管系统信用评价';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."REVOKED" IS '近三年吊销情况';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."SOCIAL_SECURITY_NUMBER" IS '年报社保缴纳人数';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."SURVIVAL_TIME" IS '存续时间';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."TAX_CREDIT" IS '纳税信用等级（税局）';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE"."THE_BLACKLIST" IS '列入其他信用黑名单情况';

CREATE OR REPLACE  INDEX "CRGS"."INDEX_SCORE_TEMP_USCC_IDX_COPY1" ON "CRGS"."INDEX_SCORE"("USCC" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDEX_SCORE_PRIPID_IDX" ON "CRGS"."INDEX_SCORE"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."INDEX_SCORE_MONTH"
(
"ID" VARCHAR(40) NOT NULL,
"PRIPID" VARCHAR(40),
"USCC" VARCHAR(40),
"YEAR" VARCHAR(20),
"JAN_SCORE" SMALLINT,
"FEB_SCORE" SMALLINT,
"MAR_SCORE" SMALLINT,
"APR_SCORE" SMALLINT,
"MAY_SCORE" SMALLINT,
"JUNE_SCORE" SMALLINT,
"JULY_SCORE" SMALLINT,
"AUG_SCORE" SMALLINT,
"SEP_SCORE" SMALLINT,
"OCT_SCORE" SMALLINT,
"NOV_SCORE" SMALLINT,
"DEC_SCORE" SMALLINT,
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"JAN_LEVEL" VARCHAR(4),
"FEB_LEVEL" VARCHAR(4),
"MAR_LEVEL" VARCHAR(4),
"APR_LEVEL" VARCHAR(4),
"MAY_LEVEL" VARCHAR(4),
"JUNE_LEVEL" VARCHAR(4),
"JULY_LEVEL" VARCHAR(4),
"AUG_LEVEL" VARCHAR(4),
"SEP_LEVEL" VARCHAR(4),
"OCT_LEVEL" VARCHAR(4),
"NOV_LEVEL" VARCHAR(4),
"DEC_LEVEL" VARCHAR(4),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."APR_LEVEL" IS '四月风险等级';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."APR_SCORE" IS '四月';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."AUG_LEVEL" IS '八月风险等级';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."AUG_SCORE" IS '八月';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."DEC_LEVEL" IS '十二月风险等级';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."DEC_SCORE" IS '十二月';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."FEB_LEVEL" IS '二月风险等级';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."FEB_SCORE" IS '二月';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."JAN_LEVEL" IS '一月风险等级';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."JAN_SCORE" IS '一月';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."JULY_LEVEL" IS '七月风险等级';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."JULY_SCORE" IS '七月';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."JUNE_LEVEL" IS '六月风险等级';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."JUNE_SCORE" IS '六月';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."MAR_LEVEL" IS '三月风险等级';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."MAR_SCORE" IS '三月';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."MAY_LEVEL" IS '五月风险等级';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."MAY_SCORE" IS '五月';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."NOV_LEVEL" IS '十一月风险等级';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."NOV_SCORE" IS '十一月';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."OCT_LEVEL" IS '十月风险等级';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."OCT_SCORE" IS '十月';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."PRIPID" IS '企业主键';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."SEP_LEVEL" IS '九月风险等级';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."SEP_SCORE" IS '九月';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."USCC" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_MONTH"."YEAR" IS '年份';

CREATE OR REPLACE  INDEX "CRGS"."PRIPID" ON "CRGS"."INDEX_SCORE_MONTH"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229182311156500" ON "CRGS"."INDEX_SCORE_MONTH"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."INDEX_SCORE_SYNC_LOG"
(
"LOG_ID" VARCHAR(32) NOT NULL,
"INDEX_SCORE" INT,
"RISK_LEVEL" VARCHAR(10),
"PRIPID" VARCHAR(36),
"IS_SYNC" VARCHAR(1) DEFAULT '0',
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("LOG_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."INDEX_SCORE_SYNC_LOG" IS '风险评分同步记录';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_SYNC_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_SYNC_LOG"."INDEX_SCORE" IS '风险评分';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_SYNC_LOG"."IS_SYNC" IS '是否已经同步（0否1是）';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_SYNC_LOG"."LOG_ID" IS '风险评分同步记录';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_SYNC_LOG"."PRIPID" IS '主体pirpid';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_SYNC_LOG"."RISK_LEVEL" IS '风险等级';
COMMENT ON COLUMN "CRGS"."INDEX_SCORE_SYNC_LOG"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."INDEX_SCORE_SYNC_LOG_IS_SYNC_IDX" ON "CRGS"."INDEX_SCORE_SYNC_LOG"("IS_SYNC" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDEX_SCORE_SYNC_LOG_PRIPID_IDX" ON "CRGS"."INDEX_SCORE_SYNC_LOG"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229174689913200" ON "CRGS"."INDEX_SCORE_SYNC_LOG"("LOG_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."INDUSTRY"
(
"ID" VARCHAR(80) NOT NULL,
"FULL_CODE" VARCHAR(12) NOT NULL,
"INDUSTRY_NAME" VARCHAR(100) NOT NULL,
"LAYER" SMALLINT,
"CODE_PREV" VARCHAR(4) NOT NULL,
"CODE_SUFFIX" VARCHAR(10) NOT NULL) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."INDUSTRY"."CODE_PREV" IS '编码前缀';
COMMENT ON COLUMN "CRGS"."INDUSTRY"."CODE_SUFFIX" IS '编码后缀';
COMMENT ON COLUMN "CRGS"."INDUSTRY"."FULL_CODE" IS '完整编码';
COMMENT ON COLUMN "CRGS"."INDUSTRY"."ID" IS 'id';
COMMENT ON COLUMN "CRGS"."INDUSTRY"."INDUSTRY_NAME" IS '行业名称';
COMMENT ON COLUMN "CRGS"."INDUSTRY"."LAYER" IS '编码层级';

CREATE OR REPLACE  INDEX "CRGS"."INDUSTRY_FULL_CODE_IDX" ON "CRGS"."INDUSTRY"("FULL_CODE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."INDUSTRY_INCREMENT_ALL"
(
"CREATE_BY" VARCHAR(80) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(80) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(80) NOT NULL,
"INDUSTRY_CODE" VARCHAR(20) NOT NULL,
"INDUSTRY_NAME" VARCHAR(100) NOT NULL,
"INCREMENT" INT NOT NULL,
"MONTH" VARCHAR(14) NOT NULL,
"MONTH_BASIC" INT NOT NULL,
"TOTAL_COUNT" BIGINT NOT NULL,
"REGION" VARCHAR(10),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."INDUSTRY_INCREMENT_ALL" IS '行业月总增量记录表';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_ALL"."ID" IS '数据id';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_ALL"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_ALL"."INDUSTRY_CODE" IS '行业编码';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_ALL"."INDUSTRY_NAME" IS '行业名称';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_ALL"."MONTH" IS '统计月份，格式：yyyy-MM';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_ALL"."MONTH_BASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_ALL"."REGION" IS '所属辖区';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_ALL"."TOTAL_COUNT" IS '总企业量';

CREATE OR REPLACE  INDEX "CRGS"."IDX_MONTH_ITEM" ON "CRGS"."INDUSTRY_INCREMENT_ALL"("INDUSTRY_CODE" ASC,"MONTH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDUSTRY_INCREMENT_ALL_MONTH_IDX" ON "CRGS"."INDUSTRY_INCREMENT_ALL"("MONTH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229173771191800" ON "CRGS"."INDUSTRY_INCREMENT_ALL"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDUSTRY_INCREMENT_ALL_REGION_IDX" ON "CRGS"."INDUSTRY_INCREMENT_ALL"("REGION" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."INDUSTRY_INCREMENT_HIGH"
(
"CREATE_BY" VARCHAR(80) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(80) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(80) NOT NULL,
"INDUSTRY_CODE" VARCHAR(20) NOT NULL,
"INDUSTRY_NAME" VARCHAR(100) NOT NULL,
"INCREMENT" INT NOT NULL,
"MONTH" VARCHAR(14) NOT NULL,
"MONTH_BASIC" INT NOT NULL,
"TOTAL_COUNT" BIGINT NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."INDUSTRY_INCREMENT_HIGH" IS '行业高风险和较高风险月总增量记录表';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_HIGH"."ID" IS '数据id';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_HIGH"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_HIGH"."INDUSTRY_CODE" IS '行业编码';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_HIGH"."INDUSTRY_NAME" IS '行业名称';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_HIGH"."MONTH" IS '统计月份，格式：yyyy-MM';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_HIGH"."MONTH_BASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "CRGS"."INDUSTRY_INCREMENT_HIGH"."TOTAL_COUNT" IS '总企业量';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229173142003600" ON "CRGS"."INDUSTRY_INCREMENT_HIGH"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."IDX_MONTH_ITEM_HIGH" ON "CRGS"."INDUSTRY_INCREMENT_HIGH"("INDUSTRY_CODE" ASC,"MONTH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDUSTRY_INCREMENT_HIGH_MONTH_IDX" ON "CRGS"."INDUSTRY_INCREMENT_HIGH"("MONTH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."INFOSHAR_68743074"
(
"INFOSHAR_ID" INTEGER,
"ID" VARCHAR(64) NOT NULL,
"LIC_NO" VARCHAR(36),
"FOOD_OPER_NAME" VARCHAR(400),
"UNISC_ID" VARCHAR(50),
"LEREP" VARCHAR(256),
"ECONOMIC_NATURE" VARCHAR(1),
"DOM" VARCHAR(3000),
"POB_REG_CODE" VARCHAR(6),
"POB" VARCHAR(3000),
"PHYSICAL_STORES" VARCHAR(1),
"WAREHOUSE_ADDR" VARCHAR(3000),
"MBT_CODE" VARCHAR(1),
"MBT" VARCHAR(50),
"NETWORK_OPERATION" VARCHAR(1),
"CENTRAL_KITCHEN" VARCHAR(1),
"GROUP_MEAL_DIS" VARCHAR(1),
"BUSINESS_ITEMS_CODE" VARCHAR(256),
"BUSINESS_ITEMS" VARCHAR(1000),
"SOOF" VARCHAR(200),
"PASOOF" VARCHAR(200),
"AUTO_VENDING" VARCHAR(1),
"BCF_SALES" VARCHAR(1),
"SELF_BREWING_PAS" VARCHAR(1),
"ISSUING_AUTHORITY" VARCHAR(256),
"ISSUING_AUTHORITY_CODE" VARCHAR(100),
"ISSUE_DATE" DATE,
"VAL_FROM" TIMESTAMP(6),
"VAL_TO" TIMESTAMP(6),
"UPDATE_TIME" DATE,
"LICENSE_STATUS" VARCHAR(2),
"ADMINIST_AREA" VARCHAR(6),
"MANAGE_ORGANIZATION" VARCHAR(256),
"COMPLAINT_PHONE" VARCHAR(20),
"ISSUER" VARCHAR(50),
"ELECRTONIC_CERT_FLAG" VARCHAR(1),
"ELECRTONIC_CERT_NAME" VARCHAR(512),
"DATEBASE_TIME" TIMESTAMP(6) NOT NULL,
"INFOSHARE_FID" VARCHAR(36),
"INFOSHAR_TIME" TIMESTAMP(6),
"INFOSHARE_TIME1" VARCHAR(36),
"INFOSHARE_TIME2" VARCHAR(36),
"INFOSHARE_TIME3" VARCHAR(36),
"INFOSHARE_STAT" VARCHAR(24),
"INFOSHARE_DTSOURCE" VARCHAR(64),
"INFOSHARE_DTAREA" VARCHAR(80),
"INFOSHARE_VER" VARCHAR(24),
"INFOSHAR_APP" VARCHAR(100),
"SEQ_GLOBALLY_USER_UNIQUE______" VARCHAR(1000),
"LIC_FILE" BLOB,
"PUSH_STATUS" INTEGER,
"DATA_IDENTIFIER" VARCHAR(24),
"DATA_STATE" VARCHAR(24),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."INNO_COMPLAINT_INFO"
(
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_TIME" TIMESTAMP(0),
"CREATE_ID" INT DEFAULT 0,
"UPDATE_ID" INT DEFAULT 0,
"IS_DEL" INT DEFAULT 0,
"REMARK" VARCHAR(3000),
"CASE_NO" VARCHAR(100),
"CASE_TYPE" INT DEFAULT 0,
"REGIST_TIME" TIMESTAMP(0),
"SOURCE_TYPE" INT DEFAULT 0,
"CHANNEL_TYPE" INT DEFAULT 4,
"GET_TYPE" VARCHAR(50) DEFAULT '0',
"TELEPHONE" VARCHAR(200) DEFAULT '',
"STATUS" INT DEFAULT 0,
"ACCEPTANCE_STATUS" INT DEFAULT 0,
"CASE_STATUS" INT DEFAULT 0,
"CASE_AMOUT" REAL DEFAULT 0.,
"NO_CASE_MSG" VARCHAR(200) DEFAULT '',
"ARCHIVE_STATUS" INT DEFAULT 0,
"ARCHIVE_CONTENT" VARCHAR(500) DEFAULT '',
"RECOVERY_ECNOMIC_LOSSES" REAL DEFAULT 0.,
"LINK_TYPE" INT DEFAULT 0,
"OPERATE_GROUP" VARCHAR(200),
"CHANNEL_TYPE_SY" INT DEFAULT 0,
"MEDIATE_REAULT" INT DEFAULT 99,
"TO_IDENTIFY" VARCHAR(200),
"OLD_SOURCE_ID" VARCHAR(50),
"OLD_SOURCE_CODE" VARCHAR(50),
"ID" BIGINT NOT NULL,
"OBJECT_TYPE" VARCHAR(500) DEFAULT '',
"EVENT_TYPE" VARCHAR(1000) DEFAULT '',
"SERVICE_TYPE" VARCHAR(100) DEFAULT '',
"IS_STATISTICS" INT DEFAULT 1,
"COMPANY_ID" BIGINT DEFAULT 0,
"S_EXT_FROMNODE" VARCHAR(50),
"S_EXT_DATATIME" TIMESTAMP(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


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

CREATE OR REPLACE  INDEX "CRGS"."MAPPING_REGORG_OLD_CODE_IDX" ON "CRGS"."MAPPING_REGORG"("OLD_CODE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MAPPING_REGORG_OLD_VALUE_IDX" ON "CRGS"."MAPPING_REGORG"("OLD_VALUE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MAPPING_SUPORG"
(
"OLD_CODE" VARCHAR(15),
"NEW_CODE" VARCHAR(9),
"OLD_VALUE" VARCHAR(100),
"NEW_VALUE" VARCHAR(100)) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "CRGS"."MAPPING_SUPORG_OLD_VALUE_IDX" ON "CRGS"."MAPPING_SUPORG"("OLD_VALUE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MAPPING_SUPORG_OLD_CODE_IDX" ON "CRGS"."MAPPING_SUPORG"("OLD_CODE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MODEL_BASE_INFO"
(
"ID" VARCHAR2(32) NOT NULL,
"MODEL_NAME" VARCHAR2(255),
"MODEL_VERSION" VARCHAR2(255),
"MODEL_TYPE" VARCHAR2(1),
"TRAIN_SET_SIZE" INTEGER DEFAULT 0,
"TEST_SET_SIZE" INTEGER DEFAULT 0,
"RISK_A_LIMIT" INTEGER DEFAULT 150,
"RISK_B_LIMIT" INTEGER DEFAULT 170,
"RISK_C_LIMIT" INTEGER DEFAULT 300,
"RISK_D_LIMIT" INTEGER DEFAULT 1000,
"MODEL_STATUS" INTEGER DEFAULT 1,
"PUBLISH_TIME" TIMESTAMP(6),
"CREATED_BY" VARCHAR(36),
"CREATED_TIME" TIMESTAMP(6),
"UPDATED_BY" VARCHAR(36),
"UPDATED_TIME" TIMESTAMP(6),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."CREATED_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."CREATED_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."MODEL_NAME" IS '模型名称';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."MODEL_STATUS" IS '模型状态（1：待选取数据集训练；2、已选取数据集待训练；3：训练中；4：训练完成，待发布；5：当前已发布）';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."MODEL_TYPE" IS '模型类型（0：企业；1：个体户；2：农专；）';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."MODEL_VERSION" IS '模型版本';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."PUBLISH_TIME" IS '发布时间';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."RISK_A_LIMIT" IS '风险等级A上限分';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."RISK_B_LIMIT" IS '风险等级B上限分';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."RISK_C_LIMIT" IS '风险等级C上限分';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."RISK_D_LIMIT" IS '风险等级D上限分';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."TEST_SET_SIZE" IS '测试集大小';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."TRAIN_SET_SIZE" IS '训练集大小';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."UPDATED_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."MODEL_BASE_INFO"."UPDATED_TIME" IS '更新时间';


CREATE TABLE "CRGS"."MODEL_CALL_TIME_SUMMARY"
(
"ID" VARCHAR2(32) NOT NULL,
"MODEL_ID" VARCHAR2(32),
"SUMMARY_DATE" DATE,
"SUCCESS_AMOUNT" INTEGER DEFAULT 0,
"FAIL_AMOUNT" INTEGER,
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."MODEL_CALL_TIME_SUMMARY"."FAIL_AMOUNT" IS '统计失败数量';
COMMENT ON COLUMN "CRGS"."MODEL_CALL_TIME_SUMMARY"."ID" IS '数据id';
COMMENT ON COLUMN "CRGS"."MODEL_CALL_TIME_SUMMARY"."MODEL_ID" IS '模型id';
COMMENT ON COLUMN "CRGS"."MODEL_CALL_TIME_SUMMARY"."SUCCESS_AMOUNT" IS '统计成功数量';
COMMENT ON COLUMN "CRGS"."MODEL_CALL_TIME_SUMMARY"."SUMMARY_DATE" IS '统计日期';

CREATE OR REPLACE  INDEX "CRGS"."MODEL_CALL_TIME_DATE_IDX" ON "CRGS"."MODEL_CALL_TIME_SUMMARY"("SUMMARY_DATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_CALL_TIME_MODEL_IDX_DATE_IDX" ON "CRGS"."MODEL_CALL_TIME_SUMMARY"("MODEL_ID" ASC,"SUMMARY_DATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_CALL_TIME_MODEL_ID_IDX" ON "CRGS"."MODEL_CALL_TIME_SUMMARY"("MODEL_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MODEL_DATA_SET_GTH"
(
"ID" VARCHAR(32) NOT NULL,
"MODEL_ID" VARCHAR(32) NOT NULL,
"DATA_TYPE" VARCHAR2(1),
"DID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F1000" DECIMAL(24,6) DEFAULT 0,
"F1001" DECIMAL(24,6) DEFAULT 0,
"F1002" DECIMAL(24,6) DEFAULT 0,
"F1003" DECIMAL(24,6) DEFAULT 0,
"F1100" DECIMAL(24,6) DEFAULT 0,
"F1101" DECIMAL(24,6) DEFAULT 0,
"F1102" DECIMAL(24,6) DEFAULT 0,
"F1103" DECIMAL(24,6) DEFAULT 0,
"F1104" DECIMAL(24,6) DEFAULT 0,
"F1105" DECIMAL(24,6) DEFAULT 0,
"F1106" DECIMAL(24,6) DEFAULT 0,
"F1107" DECIMAL(24,6) DEFAULT 0,
"F1108" DECIMAL(24,6) DEFAULT 0,
"F1109" DECIMAL(24,6) DEFAULT 0,
"F1200" DECIMAL(24,6) DEFAULT 0,
"F1201" DECIMAL(24,6) DEFAULT 0,
"F1202" DECIMAL(24,6) DEFAULT 0,
"F1203" DECIMAL(24,6) DEFAULT 0,
"F1204" DECIMAL(24,6) DEFAULT 0,
"F1205" DECIMAL(24,6) DEFAULT 0,
"F1206" DECIMAL(24,6) DEFAULT 0,
"F1207" DECIMAL(24,6) DEFAULT 0,
"F1208" DECIMAL(24,6) DEFAULT 0,
"F1209" DECIMAL(24,6) DEFAULT 0,
"F1300" DECIMAL(24,6) DEFAULT 0,
"F1400" DECIMAL(24,6) DEFAULT 0,
"F1401" DECIMAL(24,6) DEFAULT 0,
"F1402" DECIMAL(24,6) DEFAULT 0,
"CLASSIFY" VARCHAR(1),
"DATA_STATUS" VARCHAR2(1),
"UPDATE_TIME" DATE,
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."CLASSIFY" IS '业务分类';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."DATA_STATUS" IS '数据状态（0：未采集特征；1：已采集特征）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."DATA_TYPE" IS '数据类型（0：训练数据；1：验证数据）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1000" IS '从业人数（特征编码：1000）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1001" IS '成立距今时长（特征编码：1001）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1002" IS '经营范围及所属行业类型（特征编码：1002）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1003" IS '经营者组成形式（特征编码：1003）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1100" IS '各类许可和准入证件数量（特征编码：1100）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1101" IS '相关证照过期或失效（特征编码：1101）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1102" IS '登记事项频繁变更（特征编码：1102）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1103" IS '一人多户（特征编码：1103）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1104" IS '一址多照（特征编码：1104）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1105" IS '是否按时年报（特征编码：1105）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1106" IS '年报是否零申报或数据填报异常（特征编码：1106）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1107" IS '是否纳税申报（特征编码：1107）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1108" IS '是否正常参加养老保险、失业保险、工伤保险（特征编码：1108）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1109" IS '三年内个体户社保是否有累计欠费（特征编码：1109）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1200" IS '三年内有过标记为异常状态情形（特征编码：1200）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1201" IS '因通过登记的住所或者经营场所无法联系标记为异常状态且近一年未年报（特征编码：1201）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1202" IS '近三年内被标异的次数（特征编码：1202）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1203" IS '三年内受到行政处罚次数（特征编码：1203）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1204" IS '三年内所受行政处罚种类（特征编码：1204）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1205" IS '近三年内受到行政处罚的罚款认定程度（特征编码：1205）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1206" IS '抽查检查情况（特征编码：1206）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1207" IS '行政检查结果（特征编码：1207）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1208" IS '行政检查发现问题占比（特征编码：1208）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1209" IS '当前是否被列入严重违失信名单（黑名单）、失信被执行人、纳税非正常户（特征编码：1209）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1300" IS '经营者是否为虚假登记责任人、失信被执行人、是否被列入严重违法失信名单（黑名单）（特征编码：1300）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1400" IS '近一年内12345/12315等平台的投诉次数（特征编码：1400）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1401" IS '近一年内12345/12315等平台的举报次数（特征编码：1401）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."F1402" IS '信用中国（广州）评级结果（特征编码：1402）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."ID" IS '数据逐渐';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."MODEL_ID" IS '模型id';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_GTH_DATA_STATUS_IDX" ON "CRGS"."MODEL_DATA_SET_GTH"("DATA_STATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_GTH_MODEL_CLASSIFY_IDX" ON "CRGS"."MODEL_DATA_SET_GTH"("CLASSIFY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_GTH_MODEL_PRIPID_IDX" ON "CRGS"."MODEL_DATA_SET_GTH"("MODEL_ID" ASC,"PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_GTH_MODEL_ID_IDX" ON "CRGS"."MODEL_DATA_SET_GTH"("MODEL_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_GTH_MODEL_UNISCID_IDX" ON "CRGS"."MODEL_DATA_SET_GTH"("MODEL_ID" ASC,"UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_GTH_MODEL_TYPE_IDX" ON "CRGS"."MODEL_DATA_SET_GTH"("MODEL_ID" ASC,"DATA_TYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MODEL_DATA_SET_GTH1"
(
"ID" VARCHAR2(32) NOT NULL,
"MODEL_ID" VARCHAR(32) NOT NULL,
"DATA_TYPE" VARCHAR2(1),
"DID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F1" DECIMAL(24,6),
"F2" DECIMAL(24,6),
"F3" DECIMAL(24,6),
"F4" DECIMAL(24,6),
"F5" DECIMAL(24,6),
"F6" DECIMAL(24,6),
"F7" DECIMAL(24,6),
"F8" DECIMAL(24,6),
"F9" DECIMAL(24,6),
"F10" DECIMAL(24,6),
"F11" DECIMAL(24,6),
"F12" DECIMAL(24,6),
"F13" DECIMAL(24,6),
"F14" DECIMAL(24,6),
"F15" DECIMAL(24,6),
"F16" DECIMAL(24,6),
"F17" DECIMAL(24,6),
"F18" DECIMAL(24,6),
"F19" DECIMAL(24,6),
"F20" DECIMAL(24,6),
"F21" DECIMAL(24,6),
"F22" DECIMAL(24,6),
"F23" DECIMAL(24,6),
"F24" DECIMAL(24,6),
"F25" DECIMAL(24,6),
"F26" DECIMAL(24,6),
"F27" DECIMAL(24,6),
"F28" DECIMAL(24,6),
"F29" DECIMAL(24,6),
"F30" DECIMAL(24,6),
"F31" DECIMAL(24,6),
"F32" DECIMAL(24,6),
"F33" DECIMAL(24,6),
"F34" DECIMAL(24,6),
"F35" DECIMAL(24,6),
"F36" DECIMAL(24,6),
"F37" DECIMAL(24,6),
"F38" DECIMAL(24,6),
"F39" DECIMAL(24,6),
"F40" DECIMAL(24,6),
"F41" DECIMAL(24,6),
"F42" DECIMAL(24,6),
"F43" DECIMAL(24,6),
"F44" DECIMAL(24,6),
"F45" DECIMAL(24,6),
"F46" DECIMAL(24,6),
"F47" DECIMAL(24,6),
"DATA_STATUS" VARCHAR2(1),
"CLASSIFY" VARCHAR2(1),
"UPDATE_TIME" DATE,
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."CLASSIFY" IS '业务分类';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."DATA_STATUS" IS '数据状态（0：未采集特征；1：已采集特征）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."DATA_TYPE" IS '数据类型（0：训练数据；1：验证数据）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F1" IS '资金数额规模';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F10" IS '经营者组成形式';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F11" IS '经营者年龄';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F12" IS '个体工商户是否含特定群体';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F13" IS '个体工商户非公党建情况';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F14" IS '登记事项频繁变更';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F15" IS '关联经营';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F16" IS '一人多照';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F17" IS '一址多户';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F18" IS '年报情况';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F19" IS '有效注册商标数量和授权专利数量';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F2" IS '成立距今时长';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F20" IS '年报经营性指标是否零申报或数据填报异常';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F21" IS '营业额或营业收入';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F22" IS '是否纳税申报';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F23" IS '是否正常参加养老保险、失业保险、工伤保险';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F24" IS '三年内个体户社保是否有累计欠费';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F25" IS '一年内12315等平台投诉举报次数变化情况';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F26" IS '高度关注或短期内异常增长行业';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F27" IS '三个月内负面舆情条数和网络交易监测提示需要关注的个体工商户';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F28" IS '其他相关行业信用评价结果';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F29" IS '三年内有过被标记经营异常状态情形';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F3" IS '从业人数';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F30" IS '连续两年标记为经营异常状态且近一年未年报';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F31" IS '因通过登记的住所或者经营场所无法联系标记经营异常状态';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F32" IS '当前是否存在违反承诺情况';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F33" IS '是否存在信用修复情形';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F34" IS '申请信用修复后再次受到同类信用约束或行政处罚';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F35" IS '经营者当前是否被列入严重违法失信名单（黑名单）、失信被执行人、纳税非正常户';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F36" IS '三年内经营者被列入严重违法失信名单（黑名单）、失信被执行人次数';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F37" IS '三年内受到行政处罚次数和金额';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F38" IS '三年内所受行政处罚种类';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F39" IS '三年内诉讼数量和金额';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F4" IS '经营范围及所属行业类型';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F40" IS '近三年内受到行政处罚的罚款认定程度';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F41" IS '抽查检查情况';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F42" IS '行政检查结果';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F43" IS '行政检查发现问题占比';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F44" IS '经营者及家庭经营成员关联经营主体的信用风险类别';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F45" IS '家庭经营成成员为虚假登记责任人、失信被执行人、被列入严重违法失信名单(黑名单)人数';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F46" IS '关联经营主体行政处罚及列异比例';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F47" IS '关联经营主体被吊销、列入严重违法失信名单(失信被执行人、黑名单)比例';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F5" IS '是否线上经营';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F6" IS '是否“名特优新”';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F7" IS '个体工商户分型情况';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F8" IS '各类许可和准入证件数量';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."F9" IS '相关证照过期或失效';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."ID" IS '数据主键';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."MODEL_ID" IS '模型id';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_GTH1"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_GTH1_UNISCID_IDX" ON "CRGS"."MODEL_DATA_SET_GTH1"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_GTH1_PRIPID_IDX" ON "CRGS"."MODEL_DATA_SET_GTH1"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_GTH1_CLASSIFY_IDX" ON "CRGS"."MODEL_DATA_SET_GTH1"("CLASSIFY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_GTH1_MODEL_ID_IDX" ON "CRGS"."MODEL_DATA_SET_GTH1"("MODEL_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_GTH1_UPDATE_TIME_IDX" ON "CRGS"."MODEL_DATA_SET_GTH1"("UPDATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MODEL_DATA_SET_NZ"
(
"ID" VARCHAR(32) NOT NULL,
"MODEL_ID" VARCHAR(32),
"DATA_TYPE" VARCHAR2(1),
"DID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F2000" DECIMAL(24,6) DEFAULT 0,
"F2001" DECIMAL(24,6) DEFAULT 0,
"F2002" DECIMAL(24,6) DEFAULT 0,
"F2003" DECIMAL(24,6) DEFAULT 0,
"F2100" DECIMAL(24,6) DEFAULT 0,
"F2101" DECIMAL(24,6) DEFAULT 0,
"F2102" DECIMAL(24,6) DEFAULT 0,
"F2103" DECIMAL(24,6) DEFAULT 0,
"F2104" DECIMAL(24,6) DEFAULT 0,
"F2105" DECIMAL(24,6) DEFAULT 0,
"F2106" DECIMAL(24,6) DEFAULT 0,
"F2107" DECIMAL(24,6) DEFAULT 0,
"F2108" DECIMAL(24,6) DEFAULT 0,
"F2109" DECIMAL(24,6) DEFAULT 0,
"F2110" DECIMAL(24,6) DEFAULT 0,
"F2111" DECIMAL(24,6) DEFAULT 0,
"F2112" DECIMAL(24,6) DEFAULT 0,
"F2113" DECIMAL(24,6) DEFAULT 0,
"F2114" DECIMAL(24,6) DEFAULT 0,
"F2115" DECIMAL(24,6) DEFAULT 0,
"F2116" DECIMAL(24,6) DEFAULT 0,
"F2117" DECIMAL(24,6) DEFAULT 0,
"F2201" DECIMAL(24,6) DEFAULT 0,
"F2202" DECIMAL(24,6) DEFAULT 0,
"F2203" DECIMAL(24,6) DEFAULT 0,
"F2204" DECIMAL(24,6) DEFAULT 0,
"F2205" DECIMAL(24,6) DEFAULT 0,
"F2206" DECIMAL(24,6) DEFAULT 0,
"F2207" DECIMAL(24,6) DEFAULT 0,
"F2208" DECIMAL(24,6) DEFAULT 0,
"F2209" DECIMAL(24,6) DEFAULT 0,
"F22090" DECIMAL(24,6) DEFAULT 0,
"F2210" DECIMAL(24,6) DEFAULT 0,
"F2211" DECIMAL(24,6) DEFAULT 0,
"F2212" DECIMAL(24,6) DEFAULT 0,
"F2300" DECIMAL(24,6) DEFAULT 0,
"F2400" DECIMAL(24,6) DEFAULT 0,
"F2401" DECIMAL(24,6) DEFAULT 0,
"F2402" DECIMAL(24,6) DEFAULT 0,
"CLASSIFY" VARCHAR(1),
"DATA_STATUS" VARCHAR2(1),
"UPDATE_TIME" DATE,
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."CLASSIFY" IS '业务分类';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."DATA_STATUS" IS '数据状态（0：未采集特征；1：已采集特征）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."DATA_TYPE" IS '数据类型（0：训练数据；1：验证数据）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2000" IS '出资总额（特征编码：2000）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2001" IS '成员人数（特征编码：2001）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2002" IS '成立距今时长（特征编码：2002）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2003" IS '理事长（法定代表人）年龄（特征编码：2003）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2100" IS '各类许可和准入证件数量（特征编码：2100）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2101" IS '相关证照过期或失效（特征编码：2101）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2102" IS '登记事项频繁变更（特征编码：2102）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2103" IS '是否按时年报（特征编码：2103）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2104" IS '年报是否零申报或数据填报异常（特征编码：2104）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2105" IS '是否自我声明公开农专社执行的标准（特征编码：2105）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2106" IS '年报或登记状态显示已停业、歇业（特征编码：2106）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2107" IS '近一年亏损程度（特征编码：2107）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2108" IS '近三年内亏损次数（特征编码：2108）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2109" IS '是否纳税申报（特征编码：2109）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2110" IS '是否正常参加养老保险、失业保险、工伤保险等社会保险（特征编码：2110）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2111" IS '三年内农专社社保是否有累计欠费（特征编码：2111）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2112" IS '有效注册商标数量（特征编码：2112）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2113" IS '知识产权出质数量（特征编码：2113）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2114" IS '有效授权专利数量（特征编码：2114）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2115" IS '获得管理体系认证或服务认证证书、相关产品认证证书数量（特征编码：2115）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2116" IS '三年内因质量或诚信原因被撤销认证证书的数量（特征编码：2116）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2117" IS '当前是否存在违反承诺情形（特征编码：2117）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2201" IS '申请信用修复后再次受到同类信用约束或行政处罚（特征编码：2201）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2202" IS '三年内有过列入经营异常名录情形（特征编码：2202）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2203" IS '当前列入经营异常名录或三年内列入经营异常名录次数超过2次（特征编码：2203）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2204" IS '因通过登记的住所或者经营场所无法联系列入经营异常名录且近一年未年报（特征编码：2204）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2205" IS '三年内受到行政处罚次数（特征编码：2205）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2206" IS '三年内被罚没金额（特征编码：2206）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2207" IS '三年内所受行政处罚种类（特征编码：2207）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2208" IS '行政检查结果（特征编码：2208）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2209" IS '行政检查发现问题占比（特征编码：2209）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F22090" IS '农专社是否被列入严重违法失信名单（黑名单）（特征编码：22090）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2210" IS '三年内诉讼数量（特征编码：2210）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2211" IS '三年内诉讼金额（特征编码：2211）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2212" IS '农专社破产重组或清算（特征编码：2212）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2300" IS '理事长（法定代表人）是否为虚假登记责任人、失信被执行人、是否被列入严重违法失信名单（黑名单）（特征编码：2300）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2400" IS '一年内12345/12315等平台投诉次数变化情况（特征编码：2400）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2401" IS '一年内12345/12315等平台举报次数变化情况（特征编码：2401）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."F2402" IS '信用中国（广州）评级结果（特征编码：2402）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."MODEL_ID" IS '模型id';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_NZ"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_NZ_DATA_STATUS_IDX" ON "CRGS"."MODEL_DATA_SET_NZ"("DATA_STATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_NZ_MODEL_TYPE_IDX" ON "CRGS"."MODEL_DATA_SET_NZ"("MODEL_ID" ASC,"DATA_TYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_NZ_MODEL_CLASSIFY_IDX" ON "CRGS"."MODEL_DATA_SET_NZ"("MODEL_ID" ASC,"CLASSIFY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_NZ_MODEL_PRIPID_IDX" ON "CRGS"."MODEL_DATA_SET_NZ"("MODEL_ID" ASC,"PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_NZ_MODEL_ID_IDX" ON "CRGS"."MODEL_DATA_SET_NZ"("MODEL_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_NZ_MODEL_UNISCID_IDX" ON "CRGS"."MODEL_DATA_SET_NZ"("MODEL_ID" ASC,"UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MODEL_DATA_SET_QY"
(
"ID" VARCHAR(32) NOT NULL,
"MODEL_ID" VARCHAR(32) NOT NULL,
"DATA_TYPE" VARCHAR2(1),
"DID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F3" DECIMAL(24,6) DEFAULT 0,
"F4" DECIMAL(24,6) DEFAULT 0,
"F5" DECIMAL(24,6) DEFAULT 0,
"F6" DECIMAL(24,6) DEFAULT 0,
"F60" DECIMAL(24,6) DEFAULT 0,
"F6015" DECIMAL(24,6) DEFAULT 0,
"F6020" DECIMAL(24,6) DEFAULT 0,
"F6025" DECIMAL(24,6) DEFAULT 0,
"F6027" DECIMAL(24,6) DEFAULT 0,
"F61" DECIMAL(24,6) DEFAULT 0,
"F617" DECIMAL(24,6) DEFAULT 0,
"F6113" DECIMAL(24,6) DEFAULT 0,
"F6120" DECIMAL(24,6) DEFAULT 0,
"F6124" DECIMAL(24,6) DEFAULT 0,
"F6130" DECIMAL(24,6) DEFAULT 0,
"F6136" DECIMAL(24,6) DEFAULT 0,
"F6142" DECIMAL(24,6) DEFAULT 0,
"F624" DECIMAL(24,6) DEFAULT 0,
"F627" DECIMAL(24,6) DEFAULT 0,
"F6212" DECIMAL(24,6) DEFAULT 0,
"F6215" DECIMAL(24,6) DEFAULT 0,
"F6218" DECIMAL(24,6) DEFAULT 0,
"F633" DECIMAL(24,6) DEFAULT 0,
"F636" DECIMAL(24,6) DEFAULT 0,
"F6310" DECIMAL(24,6) DEFAULT 0,
"F6315" DECIMAL(24,6) DEFAULT 0,
"F6320" DECIMAL(24,6) DEFAULT 0,
"F6325" DECIMAL(24,6) DEFAULT 0,
"F6329" DECIMAL(24,6) DEFAULT 0,
"F643" DECIMAL(24,6) DEFAULT 0,
"F646" DECIMAL(24,6) DEFAULT 0,
"F6410" DECIMAL(24,6) DEFAULT 0,
"F656" DECIMAL(24,6) DEFAULT 0,
"F6512" DECIMAL(24,6) DEFAULT 0,
"F6518" DECIMAL(24,6) DEFAULT 0,
"F6523" DECIMAL(24,6) DEFAULT 0,
"F6528" DECIMAL(24,6) DEFAULT 0,
"F664" DECIMAL(24,6) DEFAULT 0,
"F661" DECIMAL(24,6) DEFAULT 0,
"F714" DECIMAL(24,6) DEFAULT 0,
"F711" DECIMAL(24,6) DEFAULT 0,
"F725" DECIMAL(24,6) DEFAULT 0,
"F723" DECIMAL(24,6) DEFAULT 0,
"F721" DECIMAL(24,6) DEFAULT 0,
"F736" DECIMAL(24,6) DEFAULT 0,
"F731" DECIMAL(24,6) DEFAULT 0,
"F7420" DECIMAL(24,6) DEFAULT 0,
"F7415" DECIMAL(24,6) DEFAULT 0,
"F741" DECIMAL(24,6) DEFAULT 0,
"F759" DECIMAL(24,6) DEFAULT 0,
"F751" DECIMAL(24,6) DEFAULT 0,
"F7611" DECIMAL(24,6) DEFAULT 0,
"F766" DECIMAL(24,6) DEFAULT 0,
"F764" DECIMAL(24,6) DEFAULT 0,
"F761" DECIMAL(24,6) DEFAULT 0,
"F8220" DECIMAL(24,6) DEFAULT 0,
"F8218" DECIMAL(24,6) DEFAULT 0,
"F8215" DECIMAL(24,6) DEFAULT 0,
"F8212" DECIMAL(24,6) DEFAULT 0,
"F828" DECIMAL(24,6) DEFAULT 0,
"F825" DECIMAL(24,6) DEFAULT 0,
"F821" DECIMAL(24,6) DEFAULT 0,
"F8111" DECIMAL(24,6) DEFAULT 0,
"F816" DECIMAL(24,6) DEFAULT 0,
"F811" DECIMAL(24,6) DEFAULT 0,
"F946" DECIMAL(24,6) DEFAULT 0,
"F941" DECIMAL(24,6) DEFAULT 0,
"F937" DECIMAL(24,6) DEFAULT 0,
"F931" DECIMAL(24,6) DEFAULT 0,
"F925" DECIMAL(24,6) DEFAULT 0,
"F921" DECIMAL(24,6) DEFAULT 0,
"F911" DECIMAL(24,6) DEFAULT 0,
"CLASSIFY" VARCHAR2(1),
"UPDATE_TIME" DATE,
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."CLASSIFY" IS '业务分类';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."DATA_TYPE" IS '数据类型（0：训练数据；1：验证数据）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F3" IS '注册资本（特征编码：3）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F4" IS '法人股东数（特征编码：4）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F5" IS '对外投资企业和分支机构数（特征编码：5）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6" IS '从业人数（特征编码：6）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F60" IS '成立距今时长（特征编码：60）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6015" IS '法定代表人年龄（特征编码：6015）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6020" IS '股东类型（特征编码：6020）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6025" IS '企业类型（特征编码：6025）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6027" IS '经营范围及所属行业类型（特征编码：6027）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F61" IS '各类许可和准入证件数量（特征编码：61）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6113" IS '董监高多公司任职（特征编码：6113）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6120" IS '注册资本实缴比例（特征编码：6120）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6124" IS '注册资本大幅增长或减少（特征编码：6124）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6130" IS '登记事项频繁变更（特征编码：6130）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6136" IS '一人多企（特征编码：6136）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6142" IS '一址多照（特征编码：6142）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F617" IS '相关证照过期或失效（特征编码：617）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6212" IS '财务数据是否公示（特征编码：6212）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6215" IS '是否按时公示即时信息（特征编码：6215）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6218" IS '是否自我声明公开企业执行的标准（特征编码：6218）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F624" IS '是否按时年报（特征编码：624）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F627" IS '年报经营性指标是否申报或数据填报异常（特征编码：627）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6310" IS '最近一年亏损程度（特征编码：6310）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6315" IS '三年内亏损次数（特征编码：6315）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6320" IS '最近一年资产负债率（特征编码：6320）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6325" IS '三年内资不抵债次数（特征编码：6325）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6329" IS '三年内股权出质数量和比例（特征编码：6329）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F633" IS '企业账户开销户信息（特征编码：633）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F636" IS '年报或登记状态显示已停业、歇业（特征编码：636）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6410" IS '三年内企业社保是否有累计欠费（特征编码：6410）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F643" IS '是否纳税申报（特征编码：643）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F646" IS '是否正常参加养老保险、失业保险、工伤保险（特征编码：646）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6512" IS '知识产权出质数量（特征编码：6512）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6518" IS '有效授权专利数量（特征编码：6518）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6523" IS '获得管理体系认证或服务认证证书、相关产品认证证书数量（特征编码：6523）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F6528" IS '三年内因质量或诚信原因被撤销认证证书的数量（特征编码：6528）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F656" IS '有效注册商标数量（特征编码：656）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F661" IS '违反承诺次数（特征编码：661）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F664" IS '当前是否存在违反承诺情形（特征编码：664）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F711" IS '申请信用修复后再次受到同类信用约束或行政处罚（特征编码：711）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F714" IS '是否存在信用修复情形（特征编码：714）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F721" IS '因通过登记的住所或者经营场所无法联系列入经营异常名录且近一年未年报（特征编码：721）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F723" IS '当前列入经营异常名录或三年内列入次数超过2次（特征编码：723）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F725" IS '三年内有过列入经营异常名录情形（特征编码：725）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F731" IS '三年内被列入严重违失信名单（黑名单）、失信被执行人次数（特征编码：731）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F736" IS '当前是否被列入严重违失信名单（黑名单）、失信被执行人、纳税非正常户（特征编码：736）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F741" IS '三年内所受行政处罚种类（特征编码：741）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F7415" IS '三年内被罚没金额（特征编码：7415）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F7420" IS '三年内受到行政处罚次数（特征编码：7420）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F751" IS '行政检查发现问题占比（特征编码：751）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F759" IS '行政检查结果（特征编码：759）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F761" IS '三年内股权冻结次数（特征编码：761）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F7611" IS '三年内诉讼数量（特征编码：7611）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F764" IS '企业破产重组或清算（特征编码：764）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F766" IS '三年内诉讼金额（特征编码：766）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F811" IS '法定代表人及董监高关联企业的信用风险类别（特征编码：811）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F8111" IS '法人股东及本企业最高信用风险类别（特征编码：8111）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F816" IS '以股东身份参与的企业的最高信用风险类别（特征编码：816）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F821" IS '关联企业失信被执行人、被列入严重违法失信名单（黑名单）比例（特征编码：821）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F8212" IS '是否为虚假登记责任人关联企业（特征编码：8212）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F8215" IS '关联企业吊销比例（特征编码：8215）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F8218" IS '法定代表人是否为虚假登记责任人、失信被执行人、是否被列入严重违法失信名单（黑名单）（特征编码：8218）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F8220" IS '董监高或自然人股东为虚假登记责任人、失信被执行人、被列入严重违法失信名单（黑名单）人数（特征编码：8220）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F825" IS '关联企业行政处罚比例（特征编码：825）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F828" IS '关联企业列异比例（特征编码：828）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F911" IS '社会高度关注企业或短期内异常增长行业（特征编码：911）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F921" IS '三个月内网络监测提示需要关注的企业（特征编码：921）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F925" IS '三个月内负面舆情条数及占比（特征编码：925）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F931" IS '三个月内12315等平台投诉举报次数变化情况（特征编码：931）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F937" IS '一年内12315等平台投诉举报次数（特征编码：937）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F941" IS '公共信用综合评价或及其他相关行业信用结果（特征编码：941）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."F946" IS '“互联网+监管”评价结果（特征编码：946）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."ID" IS '数据主键';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."MODEL_ID" IS '模型id';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SET_QY"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_QY_MODEL_PRIPID_IDX" ON "CRGS"."MODEL_DATA_SET_QY"("MODEL_ID" ASC,"PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_QY_MODEL_CLASSIFY_IDX" ON "CRGS"."MODEL_DATA_SET_QY"("MODEL_ID" ASC,"CLASSIFY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_QY_MODEL_UNISCID_IDX" ON "CRGS"."MODEL_DATA_SET_QY"("MODEL_ID" ASC,"UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_QY_MODEL_TYPE_IDX" ON "CRGS"."MODEL_DATA_SET_QY"("MODEL_ID" ASC,"DATA_TYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_DATA_SET_QY_MODEL_ID_IDX" ON "CRGS"."MODEL_DATA_SET_QY"("MODEL_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MODEL_DATA_SOURCE"
(
"SOURCE_ID" INTEGER IDENTITY(1, 1) NOT NULL,
"DATASOURCE_NAME" VARCHAR2(90),
"DATASOURCE_DESCRIPTION" VARCHAR(500),
"DATA_AMOUNT" INTEGER,
"MARK_STATUS" VARCHAR2(1),
"IS_DELETED" VARCHAR2(1) DEFAULT '0',
"CREATED_BY" VARCHAR(36),
"CREATED_TIME" DATE,
"UPDATED_BY" VARCHAR(36),
"UPDATED_TIME" DATE,
CLUSTER PRIMARY KEY("SOURCE_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."MODEL_DATA_SOURCE"."CREATED_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SOURCE"."CREATED_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SOURCE"."DATA_AMOUNT" IS '数据总量';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SOURCE"."DATASOURCE_DESCRIPTION" IS '数据源描述';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SOURCE"."DATASOURCE_NAME" IS '数据源名称';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SOURCE"."IS_DELETED" IS '是否已删除（0否1是）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SOURCE"."MARK_STATUS" IS '是否已标注（0否1是）';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SOURCE"."SOURCE_ID" IS '数据源id';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SOURCE"."UPDATED_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."MODEL_DATA_SOURCE"."UPDATED_TIME" IS '更新时间';


CREATE TABLE "CRGS"."MODEL_DETAIL_INFO"
(
"ID" VARCHAR2(32) NOT NULL,
"MODEL_ID" VARCHAR2(32) NOT NULL,
"QUOTA_CODE" VARCHAR(32),
"QUOTA_NAME" VARCHAR(255),
"QUOTA_LAYER" INTEGER,
"P_ID" VARCHAR(32),
"IS_USED" VARCHAR2(1),
"ORDER_IDX" INTEGER,
"WEIGHT" VARCHAR2(32),
"SCORE" DECIMAL(24,6),
"WEIGHT_SCORE" DECIMAL(24,6),
"FEATURE_RANGE" VARCHAR(100),
"CREATED_BY" VARCHAR(36),
"CREATED_TIME" TIMESTAMP(6),
"UPDATED_BY" VARCHAR(36),
"UPDATED_TIME" TIMESTAMP(6),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."MODEL_DETAIL_INFO" IS '模型详情信息表';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."CREATED_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."CREATED_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."FEATURE_RANGE" IS '特征值范围';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."IS_USED" IS '是否采用（0否1是）';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."MODEL_ID" IS '模型id';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."ORDER_IDX" IS '排序编号';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."P_ID" IS '父指标id';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."QUOTA_CODE" IS '指标编码';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."QUOTA_LAYER" IS '指标层级';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."QUOTA_NAME" IS '指标名称';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."SCORE" IS '指标评分';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."UPDATED_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."UPDATED_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."WEIGHT" IS '权重';
COMMENT ON COLUMN "CRGS"."MODEL_DETAIL_INFO"."WEIGHT_SCORE" IS '计算权重后的评分';

CREATE OR REPLACE  INDEX "CRGS"."MODEL_DETAIL_INFO_MODEL_ID_IDX" ON "CRGS"."MODEL_DETAIL_INFO"("MODEL_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MODEL_HYD_DATA_SET_QY"
(
"ID" VARCHAR(32) NOT NULL,
"MODEL_ID" VARCHAR(32) NOT NULL,
"DATA_TYPE" VARCHAR2(1),
"DID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F1" DECIMAL(24,6),
"F2" DECIMAL(24,6),
"F3" DECIMAL(24,6),
"F4" DECIMAL(24,6),
"F5" DECIMAL(24,6),
"F6" DECIMAL(24,6) DEFAULT 0,
"F7" DECIMAL(24,6),
"F8" DECIMAL(24,6),
"F9" DECIMAL(24,6),
"F10" DECIMAL(24,6),
"F11" DECIMAL(24,6),
"F12" DECIMAL(24,6),
"F13" DECIMAL(24,6),
"F14" DECIMAL(24,6),
"F15" DECIMAL(24,6),
"F16" DECIMAL(24,6),
"F17" DECIMAL(24,6),
"F18" DECIMAL(24,6),
"F19" DECIMAL(24,6),
"F20" DECIMAL(24,6),
"F21" DECIMAL(24,6),
"F22" DECIMAL(24,6),
"F23" DECIMAL(24,6),
"F24" DECIMAL(24,6),
"SCORE" DECIMAL(24,6),
"UPDATE_TIME" DATE,
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."MODEL_HYD_DATA_SET_QY" IS '企业活跃度模型数据集';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."DATA_TYPE" IS '数据类型（0：训练数据；1：验证数据）';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F1" IS '企业状态';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F10" IS '专利申请状态';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F11" IS '许可和认证状态';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F12" IS '电子营业执照使用状态';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F13" IS '企业变更备案状态';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F14" IS '分支机构开设情况';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F15" IS '互联网产品经营信息';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F16" IS '产品质量舆情信息';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F17" IS '投诉举报记录';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F18" IS '报送年报状态';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F19" IS '双随机抽查日常监管';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F2" IS '行业门类';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F20" IS '行政处罚状态';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F21" IS '严重违法失信信息';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F22" IS '企业经营异常名录信息';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F23" IS '产品质量监督抽查信息';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F24" IS '食品抽查检查信息';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F3" IS '当年度新增企业';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F4" IS '资产状况信息';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F5" IS '领用发票状态';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F6" IS '社保缴存状态';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F7" IS '招标采购状态';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F8" IS '高新技术认定状态';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."F9" IS '商标申请状态';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."ID" IS '数据主键';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."MODEL_ID" IS '模型id';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."SCORE" IS '活跃度评分';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MODEL_HYD_DATA_SET_QY"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."MODEL_HYD_DATA_SET_QY_MODEL_PRIPID_IDX" ON "CRGS"."MODEL_HYD_DATA_SET_QY"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_HYD_DATA_SET_QY_MODEL_TYPE_IDX" ON "CRGS"."MODEL_HYD_DATA_SET_QY"("DATA_TYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_HYD_DATA_SET_QY_MODEL_SCORE_IDX" ON "CRGS"."MODEL_HYD_DATA_SET_QY"("SCORE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_HYD_DATA_SET_QY_MODEL_UNISCID_IDX" ON "CRGS"."MODEL_HYD_DATA_SET_QY"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODEL_HYD_DATA_SET_QY_MODEL_ID_IDX" ON "CRGS"."MODEL_HYD_DATA_SET_QY"("MODEL_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MODEL_VERIFY_DATASET_GTH"
(
"ID" VARCHAR(32) NOT NULL,
"MODEL_ID" VARCHAR(32) NOT NULL,
"DATA_TYPE" VARCHAR2(1),
"BIZ_TYPE" VARCHAR2(1),
"DID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F1000" DECIMAL(24,6) DEFAULT 0,
"F1001" DECIMAL(24,6) DEFAULT 0,
"F1002" DECIMAL(24,6) DEFAULT 0,
"F1003" DECIMAL(24,6) DEFAULT 0,
"F1100" DECIMAL(24,6) DEFAULT 0,
"F1101" DECIMAL(24,6) DEFAULT 0,
"F1102" DECIMAL(24,6) DEFAULT 0,
"F1103" DECIMAL(24,6) DEFAULT 0,
"F1104" DECIMAL(24,6) DEFAULT 0,
"F1105" DECIMAL(24,6) DEFAULT 0,
"F1106" DECIMAL(24,6) DEFAULT 0,
"F1107" DECIMAL(24,6) DEFAULT 0,
"F1108" DECIMAL(24,6) DEFAULT 0,
"F1109" DECIMAL(24,6) DEFAULT 0,
"F1200" DECIMAL(24,6) DEFAULT 0,
"F1201" DECIMAL(24,6) DEFAULT 0,
"F1202" DECIMAL(24,6) DEFAULT 0,
"F1203" DECIMAL(24,6) DEFAULT 0,
"F1204" DECIMAL(24,6) DEFAULT 0,
"F1205" DECIMAL(24,6) DEFAULT 0,
"F1206" DECIMAL(24,6) DEFAULT 0,
"F1207" DECIMAL(24,6) DEFAULT 0,
"F1208" DECIMAL(24,6) DEFAULT 0,
"F1209" DECIMAL(24,6) DEFAULT 0,
"F1300" DECIMAL(24,6) DEFAULT 0,
"F1400" DECIMAL(24,6) DEFAULT 0,
"F1401" DECIMAL(24,6) DEFAULT 0,
"F1402" DECIMAL(24,6) DEFAULT 0,
"CLASSIFY" VARCHAR(1),
"DATA_STATUS" VARCHAR2(1),
"UPDATE_TIME" DATE,
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."BIZ_TYPE" IS '专项类型（0：双随机；1：吊销营业执照）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."CLASSIFY" IS '业务分类';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."DATA_STATUS" IS '数据状态（0：未采集特征；1：已采集特征）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."DATA_TYPE" IS '数据类型（0：训练数据；1：验证数据）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1000" IS '从业人数（特征编码：1000）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1001" IS '成立距今时长（特征编码：1001）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1002" IS '经营范围及所属行业类型（特征编码：1002）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1003" IS '经营者组成形式（特征编码：1003）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1100" IS '各类许可和准入证件数量（特征编码：1100）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1101" IS '相关证照过期或失效（特征编码：1101）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1102" IS '登记事项频繁变更（特征编码：1102）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1103" IS '一人多户（特征编码：1103）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1104" IS '一址多照（特征编码：1104）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1105" IS '是否按时年报（特征编码：1105）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1106" IS '年报是否零申报或数据填报异常（特征编码：1106）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1107" IS '是否纳税申报（特征编码：1107）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1108" IS '是否正常参加养老保险、失业保险、工伤保险（特征编码：1108）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1109" IS '三年内个体户社保是否有累计欠费（特征编码：1109）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1200" IS '三年内有过标记为异常状态情形（特征编码：1200）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1201" IS '因通过登记的住所或者经营场所无法联系标记为异常状态且近一年未年报（特征编码：1201）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1202" IS '近三年内被标异的次数（特征编码：1202）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1203" IS '三年内受到行政处罚次数（特征编码：1203）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1204" IS '三年内所受行政处罚种类（特征编码：1204）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1205" IS '近三年内受到行政处罚的罚款认定程度（特征编码：1205）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1206" IS '抽查检查情况（特征编码：1206）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1207" IS '行政检查结果（特征编码：1207）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1208" IS '行政检查发现问题占比（特征编码：1208）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1209" IS '当前是否被列入严重违失信名单（黑名单）、失信被执行人、纳税非正常户（特征编码：1209）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1300" IS '经营者是否为虚假登记责任人、失信被执行人、是否被列入严重违法失信名单（黑名单）（特征编码：1300）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1400" IS '近一年内12345/12315等平台的投诉次数（特征编码：1400）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1401" IS '近一年内12345/12315等平台的举报次数（特征编码：1401）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."F1402" IS '信用中国（广州）评级结果（特征编码：1402）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."ID" IS '数据逐渐';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."MODEL_ID" IS '模型id';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."MODEL_VERIFY_DATASET_GTH_MODEL_ID_IDX" ON "CRGS"."MODEL_VERIFY_DATASET_GTH"("MODEL_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MODEL_VERIFY_DATASET_GTH1"
(
"ID" VARCHAR(32) NOT NULL,
"MODEL_ID" VARCHAR(32) NOT NULL,
"DATA_TYPE" VARCHAR2(1),
"BIZ_TYPE" VARCHAR2(1),
"DID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F1" DECIMAL(24,6),
"F2" DECIMAL(24,6),
"F3" DECIMAL(24,6),
"F4" DECIMAL(24,6),
"F5" DECIMAL(24,6),
"F6" DECIMAL(24,6),
"F7" DECIMAL(24,6),
"F8" DECIMAL(24,6),
"F9" DECIMAL(24,6),
"F10" DECIMAL(24,6),
"F11" DECIMAL(24,6),
"F12" DECIMAL(24,6),
"F13" DECIMAL(24,6),
"F14" DECIMAL(24,6),
"F15" DECIMAL(24,6),
"F16" DECIMAL(24,6),
"F17" DECIMAL(24,6),
"F18" DECIMAL(24,6),
"F19" DECIMAL(24,6),
"F20" DECIMAL(24,6),
"F21" DECIMAL(24,6),
"F22" DECIMAL(24,6),
"F23" DECIMAL(24,6),
"F24" DECIMAL(24,6),
"F25" DECIMAL(24,6),
"F26" DECIMAL(24,6),
"F27" DECIMAL(24,6),
"F28" DECIMAL(24,6),
"F29" DECIMAL(24,6),
"F30" DECIMAL(24,6),
"F31" DECIMAL(24,6),
"F32" DECIMAL(24,6),
"F33" DECIMAL(24,6),
"F34" DECIMAL(24,6),
"F35" DECIMAL(24,6),
"F36" DECIMAL(24,6),
"F37" DECIMAL(24,6),
"F38" DECIMAL(24,6),
"F39" DECIMAL(24,6),
"F40" DECIMAL(24,6),
"F41" DECIMAL(24,6),
"F42" DECIMAL(24,6),
"F43" DECIMAL(24,6),
"F44" DECIMAL(24,6),
"F45" DECIMAL(24,6),
"F46" DECIMAL(24,6),
"F47" DECIMAL(24,6),
"CLASSIFY" VARCHAR(1),
"DATA_STATUS" VARCHAR2(1),
"UPDATE_TIME" DATE,
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."BIZ_TYPE" IS '专项类型（0：双随机；1：吊销营业执照）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."CLASSIFY" IS '业务分类';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."DATA_STATUS" IS '数据状态（0：未采集特征；1：已采集特征）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."DATA_TYPE" IS '数据类型（0：训练数据；1：验证数据）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F1" IS '资金数额规模';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F10" IS '经营者组成形式';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F11" IS '经营者年龄';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F12" IS '个体工商户是否含特定群体';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F13" IS '个体工商户非公党建情况';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F14" IS '登记事项频繁变更';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F15" IS '关联经营';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F16" IS '一人多照';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F17" IS '一址多户';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F18" IS '年报情况';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F19" IS '有效注册商标数量和授权专利数量';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F2" IS '成立距今时长';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F20" IS '年报经营性指标是否零申报或数据填报异常';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F21" IS '营业额或营业收入';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F22" IS '是否纳税申报';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F23" IS '是否正常参加养老保险、失业保险、工伤保险';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F24" IS '三年内个体户社保是否有累计欠费';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F25" IS '一年内12315等平台投诉举报次数变化情况';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F26" IS '高度关注或短期内异常增长行业';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F27" IS '三个月内负面舆情条数和网络交易监测提示需要关注的个体工商户';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F28" IS '其他相关行业信用评价结果';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F29" IS '三年内有过被标记经营异常状态情形';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F3" IS '从业人数';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F30" IS '连续两年标记为经营异常状态且近一年未年报';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F31" IS '因通过登记的住所或者经营场所无法联系标记经营异常状态';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F32" IS '当前是否存在违反承诺情况';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F33" IS '是否存在信用修复情形';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F34" IS '申请信用修复后再次受到同类信用约束或行政处罚';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F35" IS '经营者当前是否被列入严重违法失信名单（黑名单）、失信被执行人、纳税非正常户';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F36" IS '三年内经营者被列入严重违法失信名单（黑名单）、失信被执行人次数';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F37" IS '三年内受到行政处罚次数和金额';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F38" IS '三年内所受行政处罚种类';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F39" IS '三年内诉讼数量和金额';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F4" IS '经营范围及所属行业类型';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F40" IS '近三年内受到行政处罚的罚款认定程度';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F41" IS '抽查检查情况';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F42" IS '行政检查结果';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F43" IS '行政检查发现问题占比';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F44" IS '经营者及家庭经营成员关联经营主体的信用风险类别';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F45" IS '家庭经营成成员为虚假登记责任人、失信被执行人、被列入严重违法失信名单(黑名单)人数';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F46" IS '关联经营主体行政处罚及列异比例';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F47" IS '关联经营主体被吊销、列入严重违法失信名单(失信被执行人、黑名单)比例';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F5" IS '是否线上经营';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F6" IS '是否“名特优新”';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F7" IS '个体工商户分型情况';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F8" IS '各类许可和准入证件数量';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."F9" IS '相关证照过期或失效';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."ID" IS '数据逐渐';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."MODEL_ID" IS '模型id';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_GTH1"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."MODEL_VERIFY_DATASET_GTH1_MODEL_ID_IDX" ON "CRGS"."MODEL_VERIFY_DATASET_GTH1"("MODEL_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MODEL_VERIFY_DATASET_NZ"
(
"ID" VARCHAR(32) NOT NULL,
"MODEL_ID" VARCHAR(32),
"DATA_TYPE" VARCHAR2(1),
"BIZ_TYPE" VARCHAR2(1),
"DID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F2000" DECIMAL(24,6) DEFAULT 0,
"F2001" DECIMAL(24,6) DEFAULT 0,
"F2002" DECIMAL(24,6) DEFAULT 0,
"F2003" DECIMAL(24,6) DEFAULT 0,
"F2100" DECIMAL(24,6) DEFAULT 0,
"F2101" DECIMAL(24,6) DEFAULT 0,
"F2102" DECIMAL(24,6) DEFAULT 0,
"F2103" DECIMAL(24,6) DEFAULT 0,
"F2104" DECIMAL(24,6) DEFAULT 0,
"F2105" DECIMAL(24,6) DEFAULT 0,
"F2106" DECIMAL(24,6) DEFAULT 0,
"F2107" DECIMAL(24,6) DEFAULT 0,
"F2108" DECIMAL(24,6) DEFAULT 0,
"F2109" DECIMAL(24,6) DEFAULT 0,
"F2110" DECIMAL(24,6) DEFAULT 0,
"F2111" DECIMAL(24,6) DEFAULT 0,
"F2112" DECIMAL(24,6) DEFAULT 0,
"F2113" DECIMAL(24,6) DEFAULT 0,
"F2114" DECIMAL(24,6) DEFAULT 0,
"F2115" DECIMAL(24,6) DEFAULT 0,
"F2116" DECIMAL(24,6) DEFAULT 0,
"F2117" DECIMAL(24,6) DEFAULT 0,
"F2201" DECIMAL(24,6) DEFAULT 0,
"F2202" DECIMAL(24,6) DEFAULT 0,
"F2203" DECIMAL(24,6) DEFAULT 0,
"F2204" DECIMAL(24,6) DEFAULT 0,
"F2205" DECIMAL(24,6) DEFAULT 0,
"F2206" DECIMAL(24,6) DEFAULT 0,
"F2207" DECIMAL(24,6) DEFAULT 0,
"F2208" DECIMAL(24,6) DEFAULT 0,
"F2209" DECIMAL(24,6) DEFAULT 0,
"F22090" DECIMAL(24,6) DEFAULT 0,
"F2210" DECIMAL(24,6) DEFAULT 0,
"F2211" DECIMAL(24,6) DEFAULT 0,
"F2212" DECIMAL(24,6) DEFAULT 0,
"F2300" DECIMAL(24,6) DEFAULT 0,
"F2400" DECIMAL(24,6) DEFAULT 0,
"F2401" DECIMAL(24,6) DEFAULT 0,
"F2402" DECIMAL(24,6) DEFAULT 0,
"CLASSIFY" VARCHAR(1),
"DATA_STATUS" VARCHAR2(1),
"UPDATE_TIME" DATE,
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."BIZ_TYPE" IS '专项类型（0：双随机；1：吊销营业执照）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."CLASSIFY" IS '业务分类';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."DATA_STATUS" IS '数据状态（0：未采集特征；1：已采集特征）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."DATA_TYPE" IS '数据类型（0：训练数据；1：验证数据）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2000" IS '出资总额（特征编码：2000）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2001" IS '成员人数（特征编码：2001）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2002" IS '成立距今时长（特征编码：2002）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2003" IS '理事长（法定代表人）年龄（特征编码：2003）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2100" IS '各类许可和准入证件数量（特征编码：2100）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2101" IS '相关证照过期或失效（特征编码：2101）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2102" IS '登记事项频繁变更（特征编码：2102）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2103" IS '是否按时年报（特征编码：2103）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2104" IS '年报是否零申报或数据填报异常（特征编码：2104）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2105" IS '是否自我声明公开农专社执行的标准（特征编码：2105）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2106" IS '年报或登记状态显示已停业、歇业（特征编码：2106）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2107" IS '近一年亏损程度（特征编码：2107）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2108" IS '近三年内亏损次数（特征编码：2108）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2109" IS '是否纳税申报（特征编码：2109）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2110" IS '是否正常参加养老保险、失业保险、工伤保险等社会保险（特征编码：2110）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2111" IS '三年内农专社社保是否有累计欠费（特征编码：2111）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2112" IS '有效注册商标数量（特征编码：2112）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2113" IS '知识产权出质数量（特征编码：2113）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2114" IS '有效授权专利数量（特征编码：2114）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2115" IS '获得管理体系认证或服务认证证书、相关产品认证证书数量（特征编码：2115）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2116" IS '三年内因质量或诚信原因被撤销认证证书的数量（特征编码：2116）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2117" IS '当前是否存在违反承诺情形（特征编码：2117）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2201" IS '申请信用修复后再次受到同类信用约束或行政处罚（特征编码：2201）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2202" IS '三年内有过列入经营异常名录情形（特征编码：2202）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2203" IS '当前列入经营异常名录或三年内列入经营异常名录次数超过2次（特征编码：2203）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2204" IS '因通过登记的住所或者经营场所无法联系列入经营异常名录且近一年未年报（特征编码：2204）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2205" IS '三年内受到行政处罚次数（特征编码：2205）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2206" IS '三年内被罚没金额（特征编码：2206）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2207" IS '三年内所受行政处罚种类（特征编码：2207）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2208" IS '行政检查结果（特征编码：2208）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2209" IS '行政检查发现问题占比（特征编码：2209）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F22090" IS '农专社是否被列入严重违法失信名单（黑名单）（特征编码：22090）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2210" IS '三年内诉讼数量（特征编码：2210）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2211" IS '三年内诉讼金额（特征编码：2211）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2212" IS '农专社破产重组或清算（特征编码：2212）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2300" IS '理事长（法定代表人）是否为虚假登记责任人、失信被执行人、是否被列入严重违法失信名单（黑名单）（特征编码：2300）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2400" IS '一年内12345/12315等平台投诉次数变化情况（特征编码：2400）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2401" IS '一年内12345/12315等平台举报次数变化情况（特征编码：2401）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."F2402" IS '信用中国（广州）评级结果（特征编码：2402）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."MODEL_ID" IS '模型id';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_NZ"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."MODEL_VERIFY_DATASET_NZ_MODEL_ID_IDX" ON "CRGS"."MODEL_VERIFY_DATASET_NZ"("MODEL_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MODEL_VERIFY_DATASET_QY"
(
"ID" VARCHAR(32) NOT NULL,
"MODEL_ID" VARCHAR(32) NOT NULL,
"DATA_TYPE" VARCHAR2(1),
"BIZ_TYPE" VARCHAR2(1),
"DID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR2(255),
"F3" DECIMAL(24,6) DEFAULT 0,
"F4" DECIMAL(24,6) DEFAULT 0,
"F5" DECIMAL(24,6) DEFAULT 0,
"F6" DECIMAL(24,6) DEFAULT 0,
"F60" DECIMAL(24,6) DEFAULT 0,
"F6015" DECIMAL(24,6) DEFAULT 0,
"F6020" DECIMAL(24,6) DEFAULT 0,
"F6025" DECIMAL(24,6) DEFAULT 0,
"F6027" DECIMAL(24,6) DEFAULT 0,
"F61" DECIMAL(24,6) DEFAULT 0,
"F617" DECIMAL(24,6) DEFAULT 0,
"F6113" DECIMAL(24,6) DEFAULT 0,
"F6120" DECIMAL(24,6) DEFAULT 0,
"F6124" DECIMAL(24,6) DEFAULT 0,
"F6130" DECIMAL(24,6) DEFAULT 0,
"F6136" DECIMAL(24,6) DEFAULT 0,
"F6142" DECIMAL(24,6) DEFAULT 0,
"F624" DECIMAL(24,6) DEFAULT 0,
"F627" DECIMAL(24,6) DEFAULT 0,
"F6212" DECIMAL(24,6) DEFAULT 0,
"F6215" DECIMAL(24,6) DEFAULT 0,
"F6218" DECIMAL(24,6) DEFAULT 0,
"F633" DECIMAL(24,6) DEFAULT 0,
"F636" DECIMAL(24,6) DEFAULT 0,
"F6310" DECIMAL(24,6) DEFAULT 0,
"F6315" DECIMAL(24,6) DEFAULT 0,
"F6320" DECIMAL(24,6) DEFAULT 0,
"F6325" DECIMAL(24,6) DEFAULT 0,
"F6329" DECIMAL(24,6) DEFAULT 0,
"F643" DECIMAL(24,6) DEFAULT 0,
"F646" DECIMAL(24,6) DEFAULT 0,
"F6410" DECIMAL(24,6) DEFAULT 0,
"F656" DECIMAL(24,6) DEFAULT 0,
"F6512" DECIMAL(24,6) DEFAULT 0,
"F6518" DECIMAL(24,6) DEFAULT 0,
"F6523" DECIMAL(24,6) DEFAULT 0,
"F6528" DECIMAL(24,6) DEFAULT 0,
"F664" DECIMAL(24,6) DEFAULT 0,
"F661" DECIMAL(24,6) DEFAULT 0,
"F714" DECIMAL(24,6) DEFAULT 0,
"F711" DECIMAL(24,6) DEFAULT 0,
"F725" DECIMAL(24,6) DEFAULT 0,
"F723" DECIMAL(24,6) DEFAULT 0,
"F721" DECIMAL(24,6) DEFAULT 0,
"F736" DECIMAL(24,6) DEFAULT 0,
"F731" DECIMAL(24,6) DEFAULT 0,
"F7420" DECIMAL(24,6) DEFAULT 0,
"F7415" DECIMAL(24,6) DEFAULT 0,
"F741" DECIMAL(24,6) DEFAULT 0,
"F759" DECIMAL(24,6) DEFAULT 0,
"F751" DECIMAL(24,6) DEFAULT 0,
"F7611" DECIMAL(24,6) DEFAULT 0,
"F766" DECIMAL(24,6) DEFAULT 0,
"F764" DECIMAL(24,6) DEFAULT 0,
"F761" DECIMAL(24,6) DEFAULT 0,
"F8220" DECIMAL(24,6) DEFAULT 0,
"F8218" DECIMAL(24,6) DEFAULT 0,
"F8215" DECIMAL(24,6) DEFAULT 0,
"F8212" DECIMAL(24,6) DEFAULT 0,
"F828" DECIMAL(24,6) DEFAULT 0,
"F825" DECIMAL(24,6) DEFAULT 0,
"F821" DECIMAL(24,6) DEFAULT 0,
"F8111" DECIMAL(24,6) DEFAULT 0,
"F816" DECIMAL(24,6) DEFAULT 0,
"F811" DECIMAL(24,6) DEFAULT 0,
"F946" DECIMAL(24,6) DEFAULT 0,
"F941" DECIMAL(24,6) DEFAULT 0,
"F937" DECIMAL(24,6) DEFAULT 0,
"F931" DECIMAL(24,6) DEFAULT 0,
"F925" DECIMAL(24,6) DEFAULT 0,
"F921" DECIMAL(24,6) DEFAULT 0,
"F911" DECIMAL(24,6) DEFAULT 0,
"CLASSIFY" VARCHAR2(1),
"UPDATE_TIME" DATE,
"DATA_STATUS" VARCHAR2(1),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."BIZ_TYPE" IS '专项类型（0：双随机；1：吊销营业执照）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."CLASSIFY" IS '业务分类';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."DATA_STATUS" IS '数据状态（0：未采集特征；1：已采集特征）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."DATA_TYPE" IS '数据类型（0：训练数据；1：验证数据）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."DID" IS '数据id';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F3" IS '注册资本（特征编码：3）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F4" IS '法人股东数（特征编码：4）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F5" IS '对外投资企业和分支机构数（特征编码：5）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6" IS '从业人数（特征编码：6）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F60" IS '成立距今时长（特征编码：60）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6015" IS '法定代表人年龄（特征编码：6015）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6020" IS '股东类型（特征编码：6020）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6025" IS '企业类型（特征编码：6025）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6027" IS '经营范围及所属行业类型（特征编码：6027）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F61" IS '各类许可和准入证件数量（特征编码：61）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6113" IS '董监高多公司任职（特征编码：6113）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6120" IS '注册资本实缴比例（特征编码：6120）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6124" IS '注册资本大幅增长或减少（特征编码：6124）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6130" IS '登记事项频繁变更（特征编码：6130）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6136" IS '一人多企（特征编码：6136）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6142" IS '一址多照（特征编码：6142）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F617" IS '相关证照过期或失效（特征编码：617）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6212" IS '财务数据是否公示（特征编码：6212）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6215" IS '是否按时公示即时信息（特征编码：6215）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6218" IS '是否自我声明公开企业执行的标准（特征编码：6218）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F624" IS '是否按时年报（特征编码：624）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F627" IS '年报经营性指标是否申报或数据填报异常（特征编码：627）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6310" IS '最近一年亏损程度（特征编码：6310）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6315" IS '三年内亏损次数（特征编码：6315）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6320" IS '最近一年资产负债率（特征编码：6320）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6325" IS '三年内资不抵债次数（特征编码：6325）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6329" IS '三年内股权出质数量和比例（特征编码：6329）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F633" IS '企业账户开销户信息（特征编码：633）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F636" IS '年报或登记状态显示已停业、歇业（特征编码：636）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6410" IS '三年内企业社保是否有累计欠费（特征编码：6410）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F643" IS '是否纳税申报（特征编码：643）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F646" IS '是否正常参加养老保险、失业保险、工伤保险（特征编码：646）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6512" IS '知识产权出质数量（特征编码：6512）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6518" IS '有效授权专利数量（特征编码：6518）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6523" IS '获得管理体系认证或服务认证证书、相关产品认证证书数量（特征编码：6523）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F6528" IS '三年内因质量或诚信原因被撤销认证证书的数量（特征编码：6528）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F656" IS '有效注册商标数量（特征编码：656）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F661" IS '违反承诺次数（特征编码：661）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F664" IS '当前是否存在违反承诺情形（特征编码：664）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F711" IS '申请信用修复后再次受到同类信用约束或行政处罚（特征编码：711）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F714" IS '是否存在信用修复情形（特征编码：714）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F721" IS '因通过登记的住所或者经营场所无法联系列入经营异常名录且近一年未年报（特征编码：721）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F723" IS '当前列入经营异常名录或三年内列入次数超过2次（特征编码：723）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F725" IS '三年内有过列入经营异常名录情形（特征编码：725）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F731" IS '三年内被列入严重违失信名单（黑名单）、失信被执行人次数（特征编码：731）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F736" IS '当前是否被列入严重违失信名单（黑名单）、失信被执行人、纳税非正常户（特征编码：736）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F741" IS '三年内所受行政处罚种类（特征编码：741）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F7415" IS '三年内被罚没金额（特征编码：7415）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F7420" IS '三年内受到行政处罚次数（特征编码：7420）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F751" IS '行政检查发现问题占比（特征编码：751）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F759" IS '行政检查结果（特征编码：759）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F761" IS '三年内股权冻结次数（特征编码：761）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F7611" IS '三年内诉讼数量（特征编码：7611）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F764" IS '企业破产重组或清算（特征编码：764）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F766" IS '三年内诉讼金额（特征编码：766）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F811" IS '法定代表人及董监高关联企业的信用风险类别（特征编码：811）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F8111" IS '法人股东及本企业最高信用风险类别（特征编码：8111）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F816" IS '以股东身份参与的企业的最高信用风险类别（特征编码：816）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F821" IS '关联企业失信被执行人、被列入严重违法失信名单（黑名单）比例（特征编码：821）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F8212" IS '是否为虚假登记责任人关联企业（特征编码：8212）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F8215" IS '关联企业吊销比例（特征编码：8215）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F8218" IS '法定代表人是否为虚假登记责任人、失信被执行人、是否被列入严重违法失信名单（黑名单）（特征编码：8218）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F8220" IS '董监高或自然人股东为虚假登记责任人、失信被执行人、被列入严重违法失信名单（黑名单）人数（特征编码：8220）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F825" IS '关联企业行政处罚比例（特征编码：825）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F828" IS '关联企业列异比例（特征编码：828）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F911" IS '社会高度关注企业或短期内异常增长行业（特征编码：911）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F921" IS '三个月内网络监测提示需要关注的企业（特征编码：921）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F925" IS '三个月内负面舆情条数及占比（特征编码：925）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F931" IS '三个月内12315等平台投诉举报次数变化情况（特征编码：931）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F937" IS '一年内12315等平台投诉举报次数（特征编码：937）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F941" IS '公共信用综合评价或及其他相关行业信用结果（特征编码：941）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."F946" IS '“互联网+监管”评价结果（特征编码：946）';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."ID" IS '数据主键';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."MODEL_ID" IS '模型id';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."PRIPID" IS '市场主体主键';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MODEL_VERIFY_DATASET_QY"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."MODEL_VERIFY_DATASET_QY_MODEL_ID_IDX" ON "CRGS"."MODEL_VERIFY_DATASET_QY"("MODEL_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MOVEIN_AN_BASEINFO"
(
"ANCHEID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36),
"ANCHEDATE" TIMESTAMP(0),
"ANCHEYEAR" VARCHAR(8),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(50),
"ENTNAME" VARCHAR(100),
"ENTTYPE" VARCHAR(64),
"TEL" VARCHAR(30),
"ADDR" VARCHAR(512),
"POSTALCODE" VARCHAR(12),
"EMAIL" VARCHAR(100),
"BUSST" VARCHAR(2),
"BUSST_CN" VARCHAR(18),
"EMPNUM" VARCHAR(100),
"EMPNUMDIS" VARCHAR(2),
"ANTYPE" VARCHAR(6),
"COLGRANUM" VARCHAR(20),
"COLEMPLNUM" VARCHAR(20),
"RETSOLNUM" VARCHAR(20),
"RETEMPLNUM" VARCHAR(20),
"DISPERNUM" VARCHAR(20),
"DISEMPLNUM" VARCHAR(20),
"UNENUM" VARCHAR(20),
"UNEEMPLNUM" VARCHAR(20),
"DEPENDENTENTNAME" VARCHAR(100),
"ASSGRO" VARCHAR(40),
"ASSGRODIS" VARCHAR(2),
"LIAGRO" VARCHAR(40),
"LIAGRODIS" VARCHAR(2),
"VENDINC" VARCHAR(40),
"VENDINCDIS" VARCHAR(2),
"MAIBUSINC" VARCHAR(40),
"MAIBUSINCDIS" VARCHAR(2),
"PROGRO" VARCHAR(40),
"PROGRODIS" VARCHAR(2),
"NETINC" VARCHAR(40),
"NETINCDIS" VARCHAR(2),
"RATGRO" VARCHAR(40),
"RATGRODIS" VARCHAR(2),
"TOTEQU" VARCHAR(40),
"TOTEQUDIS" VARCHAR(2),
"NUMPARM" VARCHAR(20),
"PARINS" VARCHAR(2),
"PARINS_CN" VARCHAR(16),
"RESPARMSIGN" VARCHAR(2),
"RESPARSECSIGN" VARCHAR(2),
"LASTUPDATETIME" TIMESTAMP(0),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("ANCHEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."MOVEIN_AN_BASEINFO" IS '企业年报基本信息(迁入企业)';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."ADDR" IS '企业通信地址';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."ANCHEDATE" IS '年报时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."ANCHEYEAR" IS '年报年度';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."ANTYPE" IS '企业年报类别';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."ASSGRO" IS '资产总额';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."ASSGRODIS" IS '资产总额是否公示';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."BUSST" IS '经营状态';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."BUSST_CN" IS '经营状态（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."COLEMPLNUM" IS '其中高校毕业生人数(雇工)';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."COLGRANUM" IS '其中高校毕业生人数(经营者)';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."DEPENDENTENTNAME" IS '隶属企业名称';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."DISEMPLNUM" IS '其中残疾人人数(雇工)';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."DISPERNUM" IS '其中残疾人人数(经营者)';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."EMAIL" IS '电子邮箱';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."EMPNUM" IS '从业人数';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."EMPNUMDIS" IS '从业人数是否公示';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."ENTTYPE" IS '市场主体类型';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."LASTUPDATETIME" IS '最后一次修改时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."LIAGRO" IS '负债总额';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."LIAGRODIS" IS '负债总额是否公示';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."MAIBUSINC" IS '其中主营业务收入';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."MAIBUSINCDIS" IS '其中主营业务收入是否公示';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."NETINC" IS '净利润';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."NETINCDIS" IS '净利润是否公示';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."NUMPARM" IS '党员（预备党员）人数';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."PARINS" IS '党组织建制';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."PARINS_CN" IS '党组织建制（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."POSTALCODE" IS '邮政编码';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."PROGRO" IS '利润总额';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."PROGRODIS" IS '利润总额是否公示';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."RATGRO" IS '纳税总额';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."RATGRODIS" IS '纳税总额是否公示';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."RESPARMSIGN" IS '法定代表人是否党员';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."RESPARSECSIGN" IS '法定代表人是否党组织书记';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."RETEMPLNUM" IS '其中退役士兵人数(雇工)';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."RETSOLNUM" IS '其中退役士兵人数(经营者)';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."TEL" IS '企业联系电话';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."TOTEQU" IS '所有者权益合计';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."TOTEQUDIS" IS '所有者权益合计是否公示';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."UNEEMPLNUM" IS '其中失业人员再就业人数(雇工)';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."UNENUM" IS '其中失业人员再就业人数(经营者)';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."VENDINC" IS '营业总收入';
COMMENT ON COLUMN "CRGS"."MOVEIN_AN_BASEINFO"."VENDINCDIS" IS '营业总收入是否公示';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229171355304300" ON "CRGS"."MOVEIN_AN_BASEINFO"("ANCHEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MOVEIN_AO_OPA_DETAIL"
(
"BUSEXCLIST" VARCHAR(64) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"LEREP" VARCHAR(200),
"CERTYPE" VARCHAR(64),
"CERNO" VARCHAR(50),
"SPECAUSE" VARCHAR(2),
"SPECAUSE_CN" VARCHAR(200),
"ABNTIME" DATE,
"DECORG" VARCHAR(6),
"DECORG_CN" VARCHAR(128),
"ISMOVE" VARCHAR(1),
"REMEXCPRES" VARCHAR(1),
"REMEXCPRES_CN" VARCHAR(200),
"REMDATE" DATE,
"REDECORG" VARCHAR(6),
"REDECORG_CN" VARCHAR(128),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("BUSEXCLIST")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."MOVEIN_AO_OPA_DETAIL" IS '企业异常名录详细信息';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."BUSEXCLIST" IS '经营异常名录ID';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."CERNO" IS '证件号码';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."CERTYPE" IS '证件类型';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."DECORG" IS '列入决定机关';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."DECORG_CN" IS '列入决定机关（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."ISMOVE" IS '是否移出';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."LEREP" IS '法定代表人';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."REDECORG" IS '移出决定机关';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."REDECORG_CN" IS '移出决定机关（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."REMDATE" IS '移出日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."REMEXCPRES" IS '移出经营异常名录原因';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."REMEXCPRES_CN" IS '移出经营异常名录原因（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."SPECAUSE" IS '列入经营异常名录原因类型';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."SPECAUSE_CN" IS '列入经营异常名录原因类型（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_AO_OPA_DETAIL"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229170739479400" ON "CRGS"."MOVEIN_AO_OPA_DETAIL"("BUSEXCLIST" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MOVEIN_CASE_PUB_BASEINFO"
(
"CASEID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(32),
"ENTNAME" VARCHAR(200),
"UNISCID" VARCHAR(18),
"REG_NO" VARCHAR(20),
"PENDECNO" VARCHAR(256),
"ILLEGACTTYPE" VARCHAR(2000),
"PENTYPE" VARCHAR(2000),
"PENTYPE_CN" VARCHAR(2000),
"PENAM" VARCHAR(100),
"FORFAM" VARCHAR(100),
"PENCONTENT" TEXT,
"PENAUTH" VARCHAR(200),
"PENAUTH_CN" VARCHAR(200),
"PENDECISSDATE" TIMESTAMP(0),
"PUBLICDATE" TIMESTAMP(0),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("CASEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."MOVEIN_CASE_PUB_BASEINFO" IS '行政处罚信息(迁入企业)';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."CASEID" IS '案件基本信息ID';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."ENTNAME" IS '主体名称';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."FORFAM" IS '没收金额';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."ILLEGACTTYPE" IS '违法行为类型';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."PENAM" IS '罚款金额';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."PENAUTH" IS '作出行政处罚决定机关';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."PENAUTH_CN" IS '作出行政处罚决定机关（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."PENCONTENT" IS '处罚内容';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."PENDECISSDATE" IS '作出处罚决定书日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."PENDECNO" IS '处罚决定书文号';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."PENTYPE" IS '处罚种类';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."PENTYPE_CN" IS '处罚种类（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."PRIPID" IS '主体主键';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."REG_NO" IS '注册号';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_CASE_PUB_BASEINFO"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229169988312200" ON "CRGS"."MOVEIN_CASE_PUB_BASEINFO"("CASEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MOVEIN_DR_RANINSRES"
(
"CHECKRESID" VARCHAR(32) NOT NULL,
"INSENTERID" VARCHAR(32),
"RANINSPLANID" VARCHAR(64),
"RANINSPLANNAME" VARCHAR(200),
"RANINSTASKID" VARCHAR(64),
"RANINSTASKNAME" VARCHAR(200),
"RANINSTYPE" VARCHAR(64),
"RANINSTYPENAME" VARCHAR(128),
"PRIPID" VARCHAR(36),
"UNISCID" VARCHAR(50),
"REGNO" VARCHAR(50),
"ENTNAME" VARCHAR(200),
"INSAUTHCODE" VARCHAR(64),
"INSAUTH" VARCHAR(200),
"INSDATE" DATE,
"RANINSITEM" VARCHAR(64),
"RANINSITEMNAME" VARCHAR(500),
"RANINSCHECKRES" VARCHAR(64),
"RANINSCHECKRESNAME" VARCHAR(128),
"REMARK" VARCHAR(1000),
"PUBDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" DATE,
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("CHECKRESID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."MOVEIN_DR_RANINSRES" IS '双随机抽查结果信息';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."CHECKRESID" IS '抽查结果ID';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."INSAUTH" IS '检查机关';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."INSAUTHCODE" IS '检查机关代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."INSDATE" IS '检查完成日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."INSENTERID" IS '抽查市场主体ID';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."PUBDATE" IS '公告日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."RANINSCHECKRES" IS '检查结果';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."RANINSCHECKRESNAME" IS '检查结果（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."RANINSITEM" IS '抽查事项';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."RANINSITEMNAME" IS '抽查事项（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."RANINSPLANID" IS '抽查计划编号';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."RANINSPLANNAME" IS '抽查计划名称';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."RANINSTASKID" IS '抽查任务编号';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."RANINSTASKNAME" IS '抽查任务名称';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."RANINSTYPE" IS '抽查类型';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."RANINSTYPENAME" IS '抽查类型（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."REMARK" IS '备注';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_DR_RANINSRES"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229169088733700" ON "CRGS"."MOVEIN_DR_RANINSRES"("CHECKRESID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MOVEIN_E_BASEINFO"
(
"PRIPID" VARCHAR(36) NOT NULL,
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR(100),
"REGNO" VARCHAR(50),
"ENTTYPE" VARCHAR(4),
"ENTTYPE_CN" VARCHAR(128),
"INDUSTRYPHY" VARCHAR(64),
"INDUSTRYCO" VARCHAR(64),
"ESTDATE" DATE,
"REGORG" VARCHAR(64),
"REGORG_CN" VARCHAR(128),
"OPSCOTYPE" VARCHAR(128),
"OPSCOTYPE_CN" VARCHAR(128),
"OPSCOPE" VARCHAR(3000),
"OPFROM" DATE,
"OPTO" DATE,
"REGSTATE" VARCHAR(64),
"REGSTATE_CN" VARCHAR(128),
"DOMDISTRICT" VARCHAR(64),
"DOM" VARCHAR(512),
"REGCAP" DEC(24,6),
"REGCAPCUR" VARCHAR(64),
"REGCAPCUR_CN" VARCHAR(128),
"REGCAPUSD" DEC(18,6),
"RECCAP" DEC(18,6),
"RECCAPUSD" DEC(18,6),
"COUNTRY" VARCHAR(128),
"EMPNUM" DEC(10,0),
"TOWN" VARCHAR(64),
"NAME" VARCHAR(200),
"REPORTTYPE" VARCHAR(64),
"APPRDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."APPRDATE" IS '核准日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."COUNTRY" IS '国别(地区)';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."DOM" IS '住所';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."DOMDISTRICT" IS '住所所在行政区划';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."EMPNUM" IS '从业人员/农专成员总数';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."ENTTYPE" IS '市场主体类型';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."ENTTYPE_CN" IS '市场主体类型（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."ESTDATE" IS '成立日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."INDUSTRYCO" IS '行业代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."INDUSTRYPHY" IS '行业门类';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."NAME" IS '法定代表人';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."OPFROM" IS '经营(驻在)期限自';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."OPSCOPE" IS '经营范围';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."OPSCOTYPE" IS '业务范围类型';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."OPSCOTYPE_CN" IS '业务范围类型（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."OPTO" IS '经营(驻在)期限至';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."RECCAP" IS '实收资本';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."RECCAPUSD" IS '实收资本折万美元';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."REGCAP" IS '注册资本(金)';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."REGCAPCUR" IS '注册资本(金)币种';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."REGCAPCUR_CN" IS '注册资本(金)币种（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."REGCAPUSD" IS '注册资本(金)折万美元';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."REGORG" IS '登记机关';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."REGORG_CN" IS '登记机关（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."REGSTATE" IS '登记状态';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."REGSTATE_CN" IS '登记状态（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."REPORTTYPE" IS '统计企业类型';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."TOWN" IS '是否城镇';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_BASEINFO"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229168189329100" ON "CRGS"."MOVEIN_E_BASEINFO"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MOVEIN_E_IM_INVUPDATE"
(
"INVUID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(18),
"ALITEM" VARCHAR(512),
"ALTBE" VARCHAR(4000),
"ALTAF" VARCHAR(4000),
"ALTDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("INVUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."MOVEIN_E_IM_INVUPDATE" IS '企业公示_股东及出资修改信息';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_IM_INVUPDATE"."ALITEM" IS '变更事项';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_IM_INVUPDATE"."ALTAF" IS '变更后';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_IM_INVUPDATE"."ALTBE" IS '变更前';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_IM_INVUPDATE"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_IM_INVUPDATE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_IM_INVUPDATE"."ENTNAME" IS '企业(机构)名称';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_IM_INVUPDATE"."INVUID" IS '出资信息修改ID';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_IM_INVUPDATE"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_IM_INVUPDATE"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_IM_INVUPDATE"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_IM_INVUPDATE"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_IM_INVUPDATE"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_IM_INVUPDATE"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229167958903600" ON "CRGS"."MOVEIN_E_IM_INVUPDATE"("INVUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"
(
"ILLID" VARCHAR(64) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(100),
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"NAME" VARCHAR(200),
"CERTYPE" VARCHAR(64),
"CERNO" VARCHAR(50),
"SERILLREA" VARCHAR(36),
"SERILLREA_CN" VARCHAR(128),
"ABNTIME" DATE,
"DECORG" VARCHAR(6),
"DECORG_CN" VARCHAR(128),
"DEDOCNUM" VARCHAR(128),
"REMEXCPRES" VARCHAR(36),
"REMEXCPRES_CN" VARCHAR(128),
"REMDATE" DATE,
"RECORG" VARCHAR(6),
"RECORG_CN" VARCHAR(128),
"REDOCNUM" VARCHAR(128),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("ILLID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."MOVEIN_E_LI_ILLDISDETAIL" IS '严重违法失信企业详细信息';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."CERNO" IS '法定代表人/负责人证件号码';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."CERTYPE" IS '法定代表人/负责人证件类型';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."DECORG" IS '列入作出决定机关';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."DECORG_CN" IS '列入作出决定机关（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."DEDOCNUM" IS '列入文号';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."ILLID" IS '严重违法失信ID';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."NAME" IS '法定代表人/负责人人员姓名';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."RECORG" IS '移出作出决定机关';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."RECORG_CN" IS '移出作出决定机关（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."REDOCNUM" IS '移出文号';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."REMDATE" IS '移出日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."REMEXCPRES" IS '移出事由';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."REMEXCPRES_CN" IS '移出事由（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."SERILLREA" IS '列入事由/情形';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."SERILLREA_CN" IS '列入事由/情形（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229166392417200" ON "CRGS"."MOVEIN_E_LI_ILLDISDETAIL"("ILLID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MOVEIN_E_OT_CASE"
(
"CASEID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR(100),
"PENDECNO" VARCHAR(256),
"ILLEGACTTYPE" VARCHAR(2000),
"PENTYPE" VARCHAR(64),
"PENTYPE_CN" VARCHAR(500),
"PENAM" DEC(24,6),
"FORFAM" DEC(24,6),
"PENCONTENT" VARCHAR(4000),
"JUDAUTH" VARCHAR(100),
"PENDECISSDATE" DATE,
"REMARK" VARCHAR(1000),
"PUBLICDATE" DATE,
"DATADEPT" VARCHAR(200),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("CASEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."MOVEIN_E_OT_CASE" IS '其他部门公示_行政处罚信息';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."CASEID" IS '行政处罚ID';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."FORFAM" IS '没收金额';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."ILLEGACTTYPE" IS '违法行为类型';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."JUDAUTH" IS '作出行政处罚决定机关名称';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."PENAM" IS '罚款金额';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."PENCONTENT" IS '处罚内容';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."PENDECISSDATE" IS '作出处罚决定书日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."PENDECNO" IS '处罚决定书文号';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."PENTYPE" IS '处罚种类';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."PENTYPE_CN" IS '处罚种类（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."REMARK" IS '备注';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_CASE"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229165947983900" ON "CRGS"."MOVEIN_E_OT_CASE"("CASEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MOVEIN_E_OT_PERMIT"
(
"LICID" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(50),
"UNISCID" VARCHAR(18),
"ENTNAME" VARCHAR(100),
"LICNO" VARCHAR(200),
"LICNAME_CN" VARCHAR(256),
"VALFROM" DATE,
"VALTO" DATE,
"LICANTH" VARCHAR(200),
"LICITEM" VARCHAR(4000),
"TYPE" VARCHAR(1),
"CANDATE" DATE,
"EQUPLECANREA" VARCHAR(200),
"REVDATE" DATE,
"SUGREVREASON" VARCHAR(200),
"INVALIDDATE" DATE,
"INVALIDREA" VARCHAR(200),
"DATADEPT" VARCHAR(200),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("LICID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."MOVEIN_E_OT_PERMIT" IS '其他部门公示_行政许可信息';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."CANDATE" IS '注销日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."ENTNAME" IS '名称';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."EQUPLECANREA" IS '注销原因';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."INVALIDDATE" IS '其它无效日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."INVALIDREA" IS '其它无效原因';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."LICANTH" IS '许可机关';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."LICID" IS '许可ID';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."LICITEM" IS '许可内容';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."LICNAME_CN" IS '许可文件名称（中文名称）';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."LICNO" IS '许可文件编号';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."REVDATE" IS '吊销日期';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."SUGREVREASON" IS '吊销原因';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."TYPE" IS '状态';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."VALFROM" IS '有效期自';
COMMENT ON COLUMN "CRGS"."MOVEIN_E_OT_PERMIT"."VALTO" IS '有效期至';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229165292185700" ON "CRGS"."MOVEIN_E_OT_PERMIT"("LICID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."MTYC_NAME_LIST"
(
"ID" VARCHAR2(32) NOT NULL,
"UNISCID" VARCHAR2(18),
"ENTNAME" VARCHAR2(500),
"ENT_BIZ_TYPE" VARCHAR2(1),
"PERIOD" VARCHAR2(6),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."MTYC_NAME_LIST" IS '“名特优新”名单表';
COMMENT ON COLUMN "CRGS"."MTYC_NAME_LIST"."ENT_BIZ_TYPE" IS '市场主体业务类型（1：企业；2：个体户；3：农专）';
COMMENT ON COLUMN "CRGS"."MTYC_NAME_LIST"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "CRGS"."MTYC_NAME_LIST"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."MTYC_NAME_LIST"."PERIOD" IS '期次（格式4位年份或4位年份+季度，如：2024或2024Q1）';
COMMENT ON COLUMN "CRGS"."MTYC_NAME_LIST"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "CRGS"."MTYC_NAME_LIST_ENT_TYPE_IDX" ON "CRGS"."MTYC_NAME_LIST"("ENT_BIZ_TYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MTYC_NAME_LIST_UNISCID_IDX" ON "CRGS"."MTYC_NAME_LIST"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MTYC_NAME_LIST_PERIOD_IDX" ON "CRGS"."MTYC_NAME_LIST"("PERIOD" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."ORGGG"
(
"SUPERIDDD" VARCHAR(36)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."OT_NCASE_DOWNLOAD_LOG"
(
"LOGID" VARCHAR(32) NOT NULL,
"FILEPATH" VARCHAR(500) NOT NULL,
"CASEID" VARCHAR(100),
"REGNO" VARCHAR(100),
"UNISCID" VARCHAR(100),
"ENTNAME" VARCHAR(100),
"PENDECNO" VARCHAR(256),
"ILLEGACTTYPE" VARCHAR(2000),
"PENTYPE" VARCHAR(200),
"PENTYPE_CN" VARCHAR(2000),
"PENAM" VARCHAR(100),
"FORFAM" VARCHAR(100),
"PENCONTENT" TEXT,
"JUDAUTH" VARCHAR(255),
"PENDECISSDATE" VARCHAR(30),
"REMARK" VARCHAR(255),
"PUBLICDATE" VARCHAR(30),
"DATADEPT" VARCHAR(40),
"UPLOADPROV" VARCHAR(50),
"TARGETPROV" VARCHAR(50),
"OPFLAG" VARCHAR(50),
"IS_DOWNLOAD" VARCHAR(1) DEFAULT '0',
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("LOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."OT_NCASE_DOWNLOAD_LOG" IS '行政处罚信息下载清单记录';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."CASEID" IS '行政处罚ID';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."FILEPATH" IS '文件路径';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."FORFAM" IS '没收金额';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."ILLEGACTTYPE" IS '违法行为类型（中文名称）';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."IS_DOWNLOAD" IS '是否已下载（0否1是）';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."JUDAUTH" IS '作出行政处罚决定机关名称';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."LOGID" IS '记录id';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."OPFLAG" IS '操作标识';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."PENAM" IS '罚款金额';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."PENCONTENT" IS '处罚内容';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."PENDECISSDATE" IS '作出处罚决定书日期';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."PENDECNO" IS '行政处罚决定书文号';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."PENTYPE" IS '处罚种类';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."PENTYPE_CN" IS '处罚种类（中文名称）';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."REMARK" IS '备注';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."TARGETPROV" IS '数据目标省/市';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."OT_NCASE_DOWNLOAD_LOG"."UPLOADPROV" IS '数据上报省/市';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229164562171900" ON "CRGS"."OT_NCASE_DOWNLOAD_LOG"("LOGID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."OT_NCASE_DOWNLOAD_LOG_UPLOADPROV_IDX" ON "CRGS"."OT_NCASE_DOWNLOAD_LOG"("UPLOADPROV" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDEX7229164498846200" ON "CRGS"."OT_NCASE_DOWNLOAD_LOG"("FILEPATH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDEX7229164223970300" ON "CRGS"."OT_NCASE_DOWNLOAD_LOG"("IS_DOWNLOAD" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."OT_NCASE_DOWNLOAD_LOG_CREATE_TIME_IDX" ON "CRGS"."OT_NCASE_DOWNLOAD_LOG"("CREATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."OT_NCASE_UPLOAD_LOG"
(
"LOGID" VARCHAR(32) NOT NULL,
"BATCHID" VARCHAR(32) NOT NULL,
"CASEID" VARCHAR(100),
"REGNO" VARCHAR(100),
"UNISCID" VARCHAR(100),
"ENTNAME" VARCHAR(100),
"PENDECNO" VARCHAR(256),
"ILLEGACTTYPE" VARCHAR(2000),
"PENTYPE" VARCHAR(200),
"PENTYPE_CN" VARCHAR(2000),
"PENAM" VARCHAR(100),
"FORFAM" VARCHAR(100),
"PENCONTENT" TEXT,
"JUDAUTH" VARCHAR(255),
"PENDECISSDATE" VARCHAR(30),
"REMARK" VARCHAR(255),
"PUBLICDATE" VARCHAR(30),
"DATADEPT" VARCHAR(40),
"UPLOADPROV" VARCHAR(50),
"TARGETPROV" VARCHAR(50),
"OPFLAG" VARCHAR(50),
"IS_SUCCESS" VARCHAR(1),
"FAIL_REASON" TEXT,
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("LOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."OT_NCASE_UPLOAD_LOG" IS '行政处罚信息上传清单记录';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."BATCHID" IS '批次ID';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."CASEID" IS '行政处罚ID';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."FAIL_REASON" IS '失败原因';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."FORFAM" IS '没收金额';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."ILLEGACTTYPE" IS '违法行为类型（中文名称）';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."IS_SUCCESS" IS '是否成功（0否1是）';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."JUDAUTH" IS '作出行政处罚决定机关名称';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."LOGID" IS '记录id';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."OPFLAG" IS '操作标识';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."PENAM" IS '罚款金额';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."PENCONTENT" IS '处罚内容';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."PENDECISSDATE" IS '作出处罚决定书日期';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."PENDECNO" IS '行政处罚决定书文号';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."PENTYPE" IS '处罚种类';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."PENTYPE_CN" IS '处罚种类（中文名称）';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."REMARK" IS '备注';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."TARGETPROV" IS '数据目标省/市';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."OT_NCASE_UPLOAD_LOG"."UPLOADPROV" IS '数据上报省/市';

CREATE OR REPLACE  INDEX "CRGS"."INDEX_IS_FAIL" ON "CRGS"."OT_NCASE_UPLOAD_LOG"("IS_SUCCESS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDEX7229163267869000" ON "CRGS"."OT_NCASE_UPLOAD_LOG"("BATCHID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229163412044000" ON "CRGS"."OT_NCASE_UPLOAD_LOG"("LOGID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."OT_NCASE_UPLOAD_LOG_CREATE_TIME_IDX" ON "CRGS"."OT_NCASE_UPLOAD_LOG"("CREATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."OT_NCASE_UPLOAD_LOG_TARGETPROV_IDX" ON "CRGS"."OT_NCASE_UPLOAD_LOG"("TARGETPROV" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"
(
"LOGID" VARCHAR(64) NOT NULL,
"FILEPATH" VARCHAR(1000) NOT NULL,
"LICID" VARCHAR(200),
"REGNO" VARCHAR(200),
"UNISCID" VARCHAR(200),
"ENTNAME" VARCHAR(200),
"LICNO" VARCHAR(200),
"LICNAME_CN" VARCHAR(510),
"VALFROM" VARCHAR(200),
"VALTO" VARCHAR(200),
"LICANTH" VARCHAR(200),
"LICITEM" TEXT,
"TYPE" VARCHAR(200),
"CANDATE" VARCHAR(200),
"EQUPLECANREA" VARCHAR(200),
"REVDATE" VARCHAR(200),
"SUGREVREASON" VARCHAR(1000),
"INVALIDDATE" VARCHAR(200),
"INVALIDREA" VARCHAR(1000),
"DATADEPT" VARCHAR(200),
"UPLOADPROV" VARCHAR(100),
"TARGETPROV" VARCHAR(100),
"OPFLAG" VARCHAR(100),
"IS_DOWNLOAD" VARCHAR(2) DEFAULT '0',
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("LOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."OT_NPERMIT_DOWNLOAD_LOG" IS '行政许可信息下载清单记录';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."CANDATE" IS '注销日期';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."EQUPLECANREA" IS '注销原因';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."FILEPATH" IS '文件路径';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."INVALIDDATE" IS '其它无效日期';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."INVALIDREA" IS '其它无效原因';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."IS_DOWNLOAD" IS '是否成功（0否1是）';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."LICANTH" IS '许可机关';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."LICID" IS '许可ID';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."LICITEM" IS '许可内容';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."LICNAME_CN" IS '许可文件名称（中文名称）';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."LICNO" IS '许可文件编号';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."LOGID" IS '上传记录id';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."OPFLAG" IS '操作标识';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."REVDATE" IS '吊销日期';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."SUGREVREASON" IS '吊销原因';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."TARGETPROV" IS '数据目标省/市';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."TYPE" IS '状态';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."UPLOADPROV" IS '数据上报省/市';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."VALFROM" IS '有效期自';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"."VALTO" IS '有效期至';

CREATE OR REPLACE  INDEX "CRGS"."OT_NPERMIT_DOWNLOAD_LOG_CREATE_TIME_IDX" ON "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"("CREATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDEX_FILEPATH" ON "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"("FILEPATH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDEX_IS_DOWNLOAD" ON "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"("IS_DOWNLOAD" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229162404294600" ON "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"("LOGID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."OT_NPERMIT_DOWNLOAD_LOG_UPLOADPROV_IDX" ON "CRGS"."OT_NPERMIT_DOWNLOAD_LOG"("UPLOADPROV" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."OT_NPERMIT_UPLOAD_LOG"
(
"LOGID" VARCHAR(32) NOT NULL,
"BATCHID" VARCHAR(32) NOT NULL,
"LICID" VARCHAR(100),
"REGNO" VARCHAR(100),
"UNISCID" VARCHAR(100),
"ENTNAME" VARCHAR(100),
"LICNO" VARCHAR(100),
"LICNAME_CN" VARCHAR(255),
"VALFROM" VARCHAR(100),
"VALTO" VARCHAR(100),
"LICANTH" VARCHAR(100),
"LICITEM" VARCHAR(100),
"TYPE" VARCHAR(100),
"CANDATE" VARCHAR(100),
"EQUPLECANREA" VARCHAR(100),
"REVDATE" VARCHAR(100),
"SUGREVREASON" VARCHAR(500),
"INVALIDDATE" VARCHAR(100),
"INVALIDREA" VARCHAR(500),
"DATADEPT" VARCHAR(100),
"UPLOADPROV" VARCHAR(50),
"TARGETPROV" VARCHAR(50),
"OPFLAG" VARCHAR(50),
"IS_SUCCESS" VARCHAR(1),
"FAIL_REASON" TEXT,
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("LOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."OT_NPERMIT_UPLOAD_LOG" IS '行政许可信息上传清单记录';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."BATCHID" IS '批次id';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."CANDATE" IS '注销日期';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."EQUPLECANREA" IS '注销原因';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."FAIL_REASON" IS '失败原因';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."INVALIDDATE" IS '其它无效日期';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."INVALIDREA" IS '其它无效原因';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."IS_SUCCESS" IS '是否成功（0否1是）';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."LICANTH" IS '许可机关';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."LICID" IS '许可ID';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."LICITEM" IS '许可内容';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."LICNAME_CN" IS '许可文件名称（中文名称）';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."LICNO" IS '许可文件编号';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."LOGID" IS '上传记录id';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."OPFLAG" IS '操作标识';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."REVDATE" IS '吊销日期';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."SUGREVREASON" IS '吊销原因';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."TARGETPROV" IS '数据目标省/市';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."TYPE" IS '状态';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."UPLOADPROV" IS '数据上报省/市';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."VALFROM" IS '有效期自';
COMMENT ON COLUMN "CRGS"."OT_NPERMIT_UPLOAD_LOG"."VALTO" IS '有效期至';

CREATE OR REPLACE  INDEX "CRGS"."OT_NPERMIT_UPLOAD_LOG_CREATE_TIME_IDX" ON "CRGS"."OT_NPERMIT_UPLOAD_LOG"("CREATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDEX_BATCH_ID" ON "CRGS"."OT_NPERMIT_UPLOAD_LOG"("BATCHID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229161416169700" ON "CRGS"."OT_NPERMIT_UPLOAD_LOG"("LOGID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."OT_NPERMIT_UPLOAD_LOG_TARGETPROV_IDX" ON "CRGS"."OT_NPERMIT_UPLOAD_LOG"("TARGETPROV" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."OT_UPLOAD_BATCH_LOG"
(
"BATCHID" VARCHAR(32) NOT NULL,
"FILENAME" VARCHAR(255) NOT NULL,
"FILEPATH" VARCHAR(500) NOT NULL,
"UPLOADERID" VARCHAR(36) NOT NULL,
"UPLOADDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"UPLOADTYPE" VARCHAR(1) NOT NULL,
"ISUPLOADED" VARCHAR(1) NOT NULL,
"ISDELETED" VARCHAR(1) NOT NULL,
NOT CLUSTER PRIMARY KEY("BATCHID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."OT_UPLOAD_BATCH_LOG" IS '上传批次记录';
COMMENT ON COLUMN "CRGS"."OT_UPLOAD_BATCH_LOG"."BATCHID" IS '批次id';
COMMENT ON COLUMN "CRGS"."OT_UPLOAD_BATCH_LOG"."FILENAME" IS '上传文件名';
COMMENT ON COLUMN "CRGS"."OT_UPLOAD_BATCH_LOG"."FILEPATH" IS '文件上传路径';
COMMENT ON COLUMN "CRGS"."OT_UPLOAD_BATCH_LOG"."ISDELETED" IS '是否删除（0否1是）';
COMMENT ON COLUMN "CRGS"."OT_UPLOAD_BATCH_LOG"."ISUPLOADED" IS '是否完成上传（0否1是）';
COMMENT ON COLUMN "CRGS"."OT_UPLOAD_BATCH_LOG"."UPLOADDATE" IS '上传时间';
COMMENT ON COLUMN "CRGS"."OT_UPLOAD_BATCH_LOG"."UPLOADERID" IS '上传者id';
COMMENT ON COLUMN "CRGS"."OT_UPLOAD_BATCH_LOG"."UPLOADTYPE" IS '上传类型（0、行政处罚上传，1、行政许可上传）';

CREATE OR REPLACE  INDEX "CRGS"."IDX_UPLOADER_ID" ON "CRGS"."OT_UPLOAD_BATCH_LOG"("UPLOADERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229160728283000" ON "CRGS"."OT_UPLOAD_BATCH_LOG"("BATCHID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."QUOTA"
(
"CREATE_BY" VARCHAR(40),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(40),
"UPDATE_TIME" TIMESTAMP(0),
"ID" VARCHAR(500) NOT NULL,
"QUOTA_NAME" VARCHAR(200),
"QUOTA_LAYER" SMALLINT NOT NULL,
"P_ID" VARCHAR(500) NOT NULL,
"SCORE" DECIMAL(8,2),
"IS_USED" SMALLINT DEFAULT 1,
"QUOTA_CODE" VARCHAR(8),
"TYPE" VARCHAR(2) NOT NULL,
"WEIGHT" VARCHAR(50),
"SEGMENTATION_SCORE" VARCHAR(50),
"STRATEGY" VARCHAR(250),
"ORDER_ID" INT,
NOT CLUSTER PRIMARY KEY("ID", "P_ID", "TYPE")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "CRGS"."QUOTA_QUOTA_LAYER_IDX" ON "CRGS"."QUOTA"("QUOTA_LAYER" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."QUOTA_QUOTA_LAYER_P_ID_IDX" ON "CRGS"."QUOTA"("QUOTA_LAYER" ASC,"P_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."QUOTA_P_ID_IDX" ON "CRGS"."QUOTA"("P_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."QUOTA_BASE_INFO"
(
"ID" VARCHAR2(32) NOT NULL,
"TYPE" INTEGER,
"P_ID" VARCHAR2(32),
"QUOTA_CODE" VARCHAR2(32),
"QUOTA_NAME" VARCHAR2(255),
"QUOTA_LAYER" INTEGER,
"ORDER_IDX" INTEGER,
"WEIGHT" VARCHAR2(32),
"IS_USED" VARCHAR2(1),
"FEATURE_RANGE" VARCHAR2(100),
"CREATED_BY" VARCHAR2(32),
"CREATED_TIME" DATE,
"UPDATED_BY" VARCHAR2(32),
"UPDATED_TIME" DATE,
"QVERSION" VARCHAR(100),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."QUOTA_BASE_INFO" IS '指标基本信息';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."CREATED_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."CREATED_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."FEATURE_RANGE" IS '特征值范围';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."IS_USED" IS '是否采用（0否1是）';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."ORDER_IDX" IS '排序索引';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."P_ID" IS '父编码';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."QUOTA_CODE" IS '指标编码';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."QUOTA_LAYER" IS '指标层级';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."QUOTA_NAME" IS '指标名称';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."QVERSION" IS '指标版本';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."TYPE" IS '类型（1：企业；2：个体户；3：农专；）';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."UPDATED_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."UPDATED_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."QUOTA_BASE_INFO"."WEIGHT" IS '权重';

CREATE OR REPLACE  INDEX "CRGS"."quota_base_info_type_idx" ON "CRGS"."QUOTA_BASE_INFO"("TYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."QUOTA_ZS"
(
"CREATE_BY" VARCHAR(40),
"CREATE_TIME" TIMESTAMP(6),
"UPDATE_BY" VARCHAR(40),
"UPDATE_TIME" TIMESTAMP(6),
"ID" VARCHAR(500) NOT NULL,
"QUOTA_NAME" VARCHAR(200),
"QUOTA_LAYER" SMALLINT NOT NULL,
"P_ID" VARCHAR(500) NOT NULL,
"SCORE" DECIMAL(8,2),
"IS_USED" SMALLINT DEFAULT 1,
"QUOTA_CODE" VARCHAR(8),
"TYPE" VARCHAR(2) NOT NULL,
"WEIGHT" VARCHAR(50),
"SEGMENTATION_SCORE" VARCHAR(50),
"STRATEGY" VARCHAR(250),
"ORDER_ID" INT,
CLUSTER PRIMARY KEY("ID", "P_ID", "TYPE")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "CRGS"."QUOTA_ZS_QUOTA_LAYER_P_ID_IDX" ON "CRGS"."QUOTA_ZS"("QUOTA_LAYER" ASC,"P_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."QUOTA_ZS_P_ID_IDX" ON "CRGS"."QUOTA_ZS"("P_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."QUOTA_ZS_QUOTA_LAYER_IDX" ON "CRGS"."QUOTA_ZS"("QUOTA_LAYER" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."RANINSCROPOB"
(
"ENTNO" VARCHAR(36) NOT NULL,
"UNISCID" VARCHAR(18),
"REGNO" VARCHAR(50),
"ENTNAME" VARCHAR(200),
"ENTTYPE" VARCHAR(4),
"REGORG" VARCHAR(30),
"LEREP" VARCHAR(200),
"DOM" TEXT,
"OPSTATE" VARCHAR(1),
"ESTDATE" TIMESTAMP(0),
"OPSCOANDFORM" TEXT,
"AICID" VARCHAR(10),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"REMARK" TEXT,
"ISNORMAL" VARCHAR(1),
"RCOUNT" INT,
"LIANAME" VARCHAR(200),
"FIXEDTEL" VARCHAR(30),
"LEREPTEL" VARCHAR(30),
"BUSINESSMODE" VARCHAR(100),
"SUPERVISEDEPTID" VARCHAR(36),
"SUBENTITYTYPE" VARCHAR(4),
"INDUSTRYCODE" VARCHAR(4),
"INDUSTRYTYPE" VARCHAR(4),
"REGCAP" DEC(38,30),
"REGCAPITALCOIN" VARCHAR(3),
"REGCAPITALDOLLOR" DEC(38,30),
"REGCAPITAL" DEC(38,30),
"DSTATE" VARCHAR(1)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."RANINSCROPOBSS"
(
"SUPERVISEDEPTID" VARCHAR(36)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."RANINSINSPECTORS"
(
"ID" VARCHAR(18) NOT NULL,
"NAME" VARCHAR(50),
"SEX" VARCHAR(1),
"MOBTEL" VARCHAR(30),
"LAWOFFICE" VARCHAR(100),
"LAWDEP" VARCHAR(100),
"LAWPOSITION" VARCHAR(50),
"LAWCERNO" VARCHAR(100),
"LAWISSAUTH" VARCHAR(100),
"LAWEXPERT" VARCHAR(100),
"USERID" VARCHAR(36),
"DEPID" VARCHAR(36),
"DEPNAME" VARCHAR(100),
"DSTATE" VARCHAR(1),
"ORGUNITID" VARCHAR(36),
"ORGUNITTYPE" VARCHAR(100),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"LOCDISTRICT" VARCHAR(20),
"EMAIL" VARCHAR(30),
"LANDLINE" VARCHAR(15),
"ADDRESS" VARCHAR(60),
"JOBNUM" VARCHAR(20),
"BIRTHDAY" VARCHAR(30),
"JOBNATURE" VARCHAR(50),
"REGIONID" VARCHAR(10),
"LAWDEPID" VARCHAR(36),
"TEMPID" VARCHAR(100),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229159588919400" ON "CRGS"."RANINSINSPECTORS"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."REGULATORY_INCREMENT_HIGH"
(
"CREATE_BY" VARCHAR(80) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(80) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(80) NOT NULL,
"REGULATORY_CODE" VARCHAR(20) NOT NULL,
"REGULATORY_NAME" VARCHAR(100) NOT NULL,
"INCREMENT" INT NOT NULL,
"MONTH" VARCHAR(14) NOT NULL,
"MONTH_BASIC" INT NOT NULL,
"TOTAL_COUNT" BIGINT NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."REGULATORY_INCREMENT_HIGH" IS '市监局高风险，较高风险月总增量记录表';
COMMENT ON COLUMN "CRGS"."REGULATORY_INCREMENT_HIGH"."ID" IS '数据id';
COMMENT ON COLUMN "CRGS"."REGULATORY_INCREMENT_HIGH"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "CRGS"."REGULATORY_INCREMENT_HIGH"."MONTH" IS '统计月份，格式：yyyy-MM';
COMMENT ON COLUMN "CRGS"."REGULATORY_INCREMENT_HIGH"."MONTH_BASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "CRGS"."REGULATORY_INCREMENT_HIGH"."REGULATORY_CODE" IS '市监局码值';
COMMENT ON COLUMN "CRGS"."REGULATORY_INCREMENT_HIGH"."REGULATORY_NAME" IS '市监局名称';
COMMENT ON COLUMN "CRGS"."REGULATORY_INCREMENT_HIGH"."TOTAL_COUNT" IS '总企业量';

CREATE OR REPLACE  INDEX "CRGS"."IDX_MONTH_REGULATORY" ON "CRGS"."REGULATORY_INCREMENT_HIGH"("REGULATORY_CODE" ASC,"MONTH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229159298565800" ON "CRGS"."REGULATORY_INCREMENT_HIGH"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."REGULATORY_INCREMENT_HIGH_MONTH_IDX" ON "CRGS"."REGULATORY_INCREMENT_HIGH"("MONTH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."REPRESENTATIVE_INCREMENT_ALL"
(
"CREATE_BY" VARCHAR(160) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(160) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(160) NOT NULL,
"REPRESENTATIVE" VARCHAR(400) NOT NULL,
"INCREMENT" INT NOT NULL,
"MONTH" VARCHAR(28) NOT NULL,
"MONTH_BASIC" INT NOT NULL,
"TOTAL_COUNT" BIGINT NOT NULL,
"REGION" VARCHAR(200) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

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

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229158960645400" ON "CRGS"."REPRESENTATIVE_INCREMENT_ALL"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."SE_LIC_LIST"
(
"ID" INTEGER NOT NULL,
"PROVINCE" VARCHAR(32),
"ENTNAME" VARCHAR(200),
"LICNAME" VARCHAR(256),
"LICNO" VARCHAR(200),
"VALFROM" VARCHAR(50),
"VALTO" VARCHAR(50),
"UNISCID" VARCHAR(36),
"MTU_UNISCID" VARCHAR(18),
"MTC_ENTNAME" VARCHAR(100),
"MTC_NODENUM" VARCHAR(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."SHAREHOLDER_INCREMENT_ALL"
(
"CREATE_BY" VARCHAR(40) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(40) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(40) NOT NULL,
"SHAREHOLDER" VARCHAR(100) NOT NULL,
"INCREMENT" INT NOT NULL,
"MONTH" VARCHAR(7) NOT NULL,
"MONTH_BASIC" INT NOT NULL,
"TOTAL_COUNT" BIGINT NOT NULL,
"REGION" VARCHAR(50) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."SHAREHOLDER_INCREMENT_ALL"."ID" IS '数据id';
COMMENT ON COLUMN "CRGS"."SHAREHOLDER_INCREMENT_ALL"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "CRGS"."SHAREHOLDER_INCREMENT_ALL"."MONTH" IS '统计月份，格式：yyyy-MM';
COMMENT ON COLUMN "CRGS"."SHAREHOLDER_INCREMENT_ALL"."MONTH_BASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "CRGS"."SHAREHOLDER_INCREMENT_ALL"."REGION" IS '地区';
COMMENT ON COLUMN "CRGS"."SHAREHOLDER_INCREMENT_ALL"."SHAREHOLDER" IS '股东姓名';
COMMENT ON COLUMN "CRGS"."SHAREHOLDER_INCREMENT_ALL"."TOTAL_COUNT" IS '总企业量';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229158513941500" ON "CRGS"."SHAREHOLDER_INCREMENT_ALL"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."STATISTICS_RESULT"
(
"ID" VARCHAR(40) NOT NULL,
"MODULE_TAG" VARCHAR(50) NOT NULL,
"DATA_JSON" CLOB NOT NULL,
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."STATISTICS_RESULT" IS '定时统计结果存储表';
COMMENT ON COLUMN "CRGS"."STATISTICS_RESULT"."CREATE_TIME" IS '创建时间（统计时间）';
COMMENT ON COLUMN "CRGS"."STATISTICS_RESULT"."DATA_JSON" IS '统计结果json';
COMMENT ON COLUMN "CRGS"."STATISTICS_RESULT"."ID" IS 'id';
COMMENT ON COLUMN "CRGS"."STATISTICS_RESULT"."MODULE_TAG" IS '统计模块标识';

CREATE OR REPLACE  INDEX "CRGS"."CREATE_TIME_IDX" ON "CRGS"."STATISTICS_RESULT"("CREATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."MODULE_TAG_IDX" ON "CRGS"."STATISTICS_RESULT"("MODULE_TAG" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229158205301800" ON "CRGS"."STATISTICS_RESULT"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."STREET_INCREMENT_ALL"
(
"CREATE_BY" VARCHAR(160) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(160) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(160) NOT NULL,
"STREET_LONG" VARCHAR(240) NOT NULL,
"STREET_NAME" VARCHAR(200) NOT NULL,
"INCREMENT" INT NOT NULL,
"MONTH" VARCHAR(28) NOT NULL,
"MONTH_BASIC" INT NOT NULL,
"TOTAL_COUNT" BIGINT NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."STREET_INCREMENT_ALL" IS '街道月总增量记录表';
COMMENT ON COLUMN "CRGS"."STREET_INCREMENT_ALL"."ID" IS '数据id';
COMMENT ON COLUMN "CRGS"."STREET_INCREMENT_ALL"."INCREMENT" IS '月增量';
COMMENT ON COLUMN "CRGS"."STREET_INCREMENT_ALL"."MONTH" IS '统计月份，格式：yyyy-MM';
COMMENT ON COLUMN "CRGS"."STREET_INCREMENT_ALL"."MONTH_BASIC" IS '月环比（百分比的数值部分×100取整存储）';
COMMENT ON COLUMN "CRGS"."STREET_INCREMENT_ALL"."STREET_LONG" IS '街道长名称（地区+街道名称）';
COMMENT ON COLUMN "CRGS"."STREET_INCREMENT_ALL"."STREET_NAME" IS '街道名称';
COMMENT ON COLUMN "CRGS"."STREET_INCREMENT_ALL"."TOTAL_COUNT" IS '总企业量';

CREATE OR REPLACE  INDEX "CRGS"."STREET_INCREMENT_ALL_MONTH_IDX" ON "CRGS"."STREET_INCREMENT_ALL"("MONTH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."IDX_MONTH_STREET" ON "CRGS"."STREET_INCREMENT_ALL"("STREET_LONG" ASC,"MONTH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229157413011000" ON "CRGS"."STREET_INCREMENT_ALL"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."SYS_MENU"
(
"SYSMENUID" VARCHAR(36) NOT NULL,
"SYSMENUTYPEID" VARCHAR(36),
"MENUTYPEID" VARCHAR(36),
"SYSMENUNAME" VARCHAR(100),
"SYSMENUFILED" VARCHAR(100),
"RESOURCEURL" VARCHAR(200),
"PARENTID" VARCHAR(36),
"REMARK" TEXT,
"ORGLEVEL" INT,
"RESOURCETYPE" VARCHAR(1),
"SYSINDEX" INT,
NOT CLUSTER PRIMARY KEY("SYSMENUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229157270573100" ON "CRGS"."SYS_MENU"("SYSMENUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."SYS_MENUTYPE"
(
"MENUTYPEID" VARCHAR(36) NOT NULL,
"MENUTYPENAME" VARCHAR(100) NOT NULL,
"MENUSTATUS" INT NOT NULL,
NOT CLUSTER PRIMARY KEY("MENUTYPEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229157177313200" ON "CRGS"."SYS_MENUTYPE"("MENUTYPEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."SYSTEM_CONFIG"
(
"ID" VARCHAR(40) NOT NULL,
"CLASSIFY_TAG" VARCHAR(40) NOT NULL,
"CONFIG_KEY" VARCHAR(40) NOT NULL,
"CONFIG_VALUE" VARCHAR(40) NOT NULL,
"REMARK" VARCHAR(200) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."SYSTEM_CONFIG" IS '系统配置';
COMMENT ON COLUMN "CRGS"."SYSTEM_CONFIG"."CLASSIFY_TAG" IS '分类标签';
COMMENT ON COLUMN "CRGS"."SYSTEM_CONFIG"."CONFIG_KEY" IS '配置标签';
COMMENT ON COLUMN "CRGS"."SYSTEM_CONFIG"."CONFIG_VALUE" IS '配置值';
COMMENT ON COLUMN "CRGS"."SYSTEM_CONFIG"."ID" IS '数据id';
COMMENT ON COLUMN "CRGS"."SYSTEM_CONFIG"."REMARK" IS '备注信息';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229157021894200" ON "CRGS"."SYSTEM_CONFIG"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_BASECODE"
(
"BASECODEID" VARCHAR(36) NOT NULL,
"CODEID" VARCHAR(10),
"CODE" VARCHAR(100),
"NAME" TEXT,
"COMM" VARCHAR(255),
"ISGB" VARCHAR(1),
NOT CLUSTER PRIMARY KEY("BASECODEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229156907712200" ON "CRGS"."T_BASECODE"("BASECODEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_BASESTATUS"
(
"BASESTATUSID" VARCHAR(10) NOT NULL,
"BASEENAME" VARCHAR(20) NOT NULL,
"BASENAME" VARCHAR(50),
"STATUSNUMBER" INT,
"PARENTNAME" VARCHAR(20),
NOT CLUSTER PRIMARY KEY("BASESTATUSID", "BASEENAME")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229156827989300" ON "CRGS"."T_BASESTATUS"("BASESTATUSID" ASC,"BASEENAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_BUSINESS_PROCESS"
(
"ID" VARCHAR(36) NOT NULL,
"CASEGUID" VARCHAR(36) NOT NULL,
"NODE_NAME" VARCHAR(50),
"NODE_ID" VARCHAR(50),
"USER_NAME" VARCHAR(50),
"USER_ID" VARCHAR(50),
"DEPARTMENT_NAME" VARCHAR(50),
"DEPARTMENT_ID" VARCHAR(50),
"STATE" VARCHAR(50),
"START_DATE" TIMESTAMP(0),
"END_DATE" TIMESTAMP(0),
"FROM_NODE_ID" VARCHAR(50),
"ORGAN" VARCHAR(50),
"ORGAN_ID" VARCHAR(50),
"UPDATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(50),
"CREATE_TIME" TIMESTAMP(0),
"CREATE_BY" VARCHAR(50),
"OPINION" VARCHAR(255),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."T_BUSINESS_PROCESS" IS '业务流程表';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."CASEGUID" IS '业务主键';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."DEPARTMENT_ID" IS '处理部门id';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."DEPARTMENT_NAME" IS '处理部门';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."END_DATE" IS '结束时间';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."FROM_NODE_ID" IS '上一步骤id';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."NODE_ID" IS '步骤id';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."NODE_NAME" IS '步骤';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."OPINION" IS '意见';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."ORGAN" IS '处理机关';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."ORGAN_ID" IS '处理机关id';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."START_DATE" IS '开始时间';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."STATE" IS '流程状态';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."UPDATE_TIME" IS '最近一次同步时间';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."USER_ID" IS '处理人id';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_PROCESS"."USER_NAME" IS '处理人';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229156052617500" ON "CRGS"."T_BUSINESS_PROCESS"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_BUSINESS_RECORDS"
(
"ID" VARCHAR(72) NOT NULL,
"SERIALNUMBER" VARCHAR(100),
"NAME" VARCHAR(100),
"START_DATE" VARCHAR(100),
"END_DATE" VARCHAR(100),
"AUDIT" VARCHAR(100),
"CASEGUID" VARCHAR(72) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(100),
"CREATE_TIME" TIMESTAMP(0),
"CREATE_BY" VARCHAR(100),
"STATUS" VARCHAR(510),
"USCC" VARCHAR(510),
"COMPANY_NAME" VARCHAR(510),
"IS_END" SMALLINT NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."T_BUSINESS_RECORDS" IS '业务记录表';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."AUDIT" IS '任务审核';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."CASEGUID" IS '业务主键';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."COMPANY_NAME" IS '企业名称';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."END_DATE" IS '任务结束时间';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."IS_END" IS '是否已结束（0否1是）';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."NAME" IS '任务名称';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."SERIALNUMBER" IS '任务编号';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."START_DATE" IS '任务开始时间';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."STATUS" IS '状态';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."UPDATE_TIME" IS '最近一次同步时间';
COMMENT ON COLUMN "CRGS"."T_BUSINESS_RECORDS"."USCC" IS '社会统一信用代码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229155678010800" ON "CRGS"."T_BUSINESS_RECORDS"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_BUSSINESS_RECORD_IS_END_IDX" ON "CRGS"."T_BUSINESS_RECORDS"("IS_END" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_COMPANY_DETAILS"
(
"ID" VARCHAR(72) NOT NULL,
"NAME" VARCHAR(200),
"USCC" VARCHAR(200),
"TYPE" VARCHAR(200),
"REGULATORY" VARCHAR(200),
"REGISTRATION" VARCHAR(200),
"REPRESENTATIVE" VARCHAR(200),
"REGION" VARCHAR(200),
"SCOPE" TEXT,
"STATE" VARCHAR(200),
"LABEL" VARCHAR(200),
"PHONE" VARCHAR(200),
"EMAIL" VARCHAR(200),
"WEBSITE" VARCHAR(200),
"SCORE" INT,
"BRANCH" VARCHAR(200),
"INVESTMENT" VARCHAR(200),
"LEVEL" VARCHAR(200),
"INDUSTRY" VARCHAR(200),
"UPDATE_BY" VARCHAR(100),
"CREATE_TIME" TIMESTAMP(0),
"CREATE_BY" VARCHAR(510),
"UPDATE_TIME" TIMESTAMP(0),
"STREET_LONG" VARCHAR(200) NOT NULL,
"STREET_NAME" VARCHAR(200) NOT NULL,
"TYPE_NAME" VARCHAR(200),
"REGULATORY_NAME" VARCHAR(200),
"REGISTRATION_NAME" VARCHAR(200),
"INDUSTRY_NAME" VARCHAR(200),
"EST_DATE" VARCHAR(60),
"APPR_DATE" VARCHAR(60),
"REV_DATE" VARCHAR(60),
"OPEN_FROM" VARCHAR(60),
"OPEN_TO" VARCHAR(60),
"REG_CAP" VARCHAR(60),
"PRIPID" VARCHAR(80),
"REG_NO" VARCHAR(80),
"S_STATUS" VARCHAR(200),
"ADDRESS" VARCHAR(1024),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

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

CREATE OR REPLACE  INDEX "CRGS"."T_COMPANY_DETAILS_STREET_LONG_IDX" ON "CRGS"."T_COMPANY_DETAILS"("STREET_LONG" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_COMPANY_DETAILS_REG_NO_IDX" ON "CRGS"."T_COMPANY_DETAILS"("REG_NO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_COMPANY_DETAILS_PREV_ID_IDX" ON "CRGS"."T_COMPANY_DETAILS"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_COMPANY_DETAILS_USCC_IDX" ON "CRGS"."T_COMPANY_DETAILS"("USCC" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229154309174100" ON "CRGS"."T_COMPANY_DETAILS"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_COMPANY_DETAILS_REGION_IDX" ON "CRGS"."T_COMPANY_DETAILS"("REGION" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_COMPANY_DETAILS_LEVEL_IDX" ON "CRGS"."T_COMPANY_DETAILS"("LEVEL" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_COMPANY_DETAILS_INDUSTRY_EST_DATE_IDX" ON "CRGS"."T_COMPANY_DETAILS"("INDUSTRY" ASC,"EST_DATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."SCORE_IDEX" ON "CRGS"."T_COMPANY_DETAILS"("SCORE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_COMPANY_DETAILS_NAME_IDX" ON "CRGS"."T_COMPANY_DETAILS"("NAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_COMPANY_DETAILS_TYPE_IDX" ON "CRGS"."T_COMPANY_DETAILS"("TYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_COMPANY_DETAILS_UPDATE_TIME_IDX" ON "CRGS"."T_COMPANY_DETAILS"("UPDATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_COMPANY_EXCEL"
(
"ID" VARCHAR(40) NOT NULL,
"USCC" VARCHAR(40),
"NAME" VARCHAR(100),
"REPRESENTATIVE" VARCHAR(100),
"TYPE_NAME" VARCHAR(100),
"REG_NO" VARCHAR(40),
"REGULATORY_NAME" VARCHAR(100),
"ALERT_STATUS" VARCHAR(100),
"CAUSE" VARCHAR(100),
"ISSUCCESS" VARCHAR(1),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"NUM" VARCHAR(40),
"PRIPID" VARCHAR(40),
"FORM_ID" VARCHAR(40),
"UPDATE_TIME" TIMESTAMP(0),
"CREATE_BY" VARCHAR(100),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."T_COMPANY_EXCEL"."ALERT_STATUS" IS '提示类型';
COMMENT ON COLUMN "CRGS"."T_COMPANY_EXCEL"."CAUSE" IS '原因';
COMMENT ON COLUMN "CRGS"."T_COMPANY_EXCEL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."T_COMPANY_EXCEL"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."T_COMPANY_EXCEL"."ISSUCCESS" IS '是否查询成功，1 成功 0 失败';
COMMENT ON COLUMN "CRGS"."T_COMPANY_EXCEL"."NAME" IS '企业名称';
COMMENT ON COLUMN "CRGS"."T_COMPANY_EXCEL"."NUM" IS '查询批次';
COMMENT ON COLUMN "CRGS"."T_COMPANY_EXCEL"."REG_NO" IS '注册号';
COMMENT ON COLUMN "CRGS"."T_COMPANY_EXCEL"."REGULATORY_NAME" IS '登记机关';
COMMENT ON COLUMN "CRGS"."T_COMPANY_EXCEL"."REPRESENTATIVE" IS '法定代表人';
COMMENT ON COLUMN "CRGS"."T_COMPANY_EXCEL"."TYPE_NAME" IS '企业类型';
COMMENT ON COLUMN "CRGS"."T_COMPANY_EXCEL"."USCC" IS '统一社会信用代码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229151549802200" ON "CRGS"."T_COMPANY_EXCEL"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_COMPANY_RISKLEVEL"
(
"ID" VARCHAR(72) NOT NULL,
"ENTNAME" VARCHAR(200),
"UNISCID" VARCHAR(200),
"SCORE" INT,
"LEVEL" VARCHAR(200),
"PRIPID" VARCHAR(80),
"IFUSE" INT,
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."T_COMPANY_RISKLEVEL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."T_COMPANY_RISKLEVEL"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "CRGS"."T_COMPANY_RISKLEVEL"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."T_COMPANY_RISKLEVEL"."IFUSE" IS '数据状态 0  正常  1删除  2修改';
COMMENT ON COLUMN "CRGS"."T_COMPANY_RISKLEVEL"."LEVEL" IS '风险等级';
COMMENT ON COLUMN "CRGS"."T_COMPANY_RISKLEVEL"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "CRGS"."T_COMPANY_RISKLEVEL"."SCORE" IS '风险等级评分';
COMMENT ON COLUMN "CRGS"."T_COMPANY_RISKLEVEL"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "CRGS"."T_COMPANY_RISKLEVEL"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."T_COMPANY_RISKLEVEL_UNISCID_IDX" ON "CRGS"."T_COMPANY_RISKLEVEL"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_COMPANY_RISKLEVEL_PRIPID_IDX" ON "CRGS"."T_COMPANY_RISKLEVEL"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229150680342000" ON "CRGS"."T_COMPANY_RISKLEVEL"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_CREDIT_CODE"
(
"ID" VARCHAR(36) NOT NULL,
"NAME" VARCHAR(100),
"USCC" VARCHAR(36),
"CODE" VARCHAR(50),
"NUM" INT,
"CUR_TIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"LET_HIS_ID" VARCHAR(36),
"LEGAL_NAME" VARCHAR(250),
"IS_SERIOUS" VARCHAR(1),
"IS_ABNORMAL" VARCHAR(1),
"IS_PUNISH" VARCHAR(1),
"IS_CREDIT" VARCHAR(1),
"PERSON_NAME" VARCHAR(250),
"PERSON_CERT_TYPE" VARCHAR(5),
"PERSON_CERT_NO" VARCHAR(250),
"TEL" VARCHAR(25),
"ADDRESS" VARCHAR(500),
"IS_BLACK" VARCHAR(1),
"IS_LAOLAI" VARCHAR(1),
"IS_LOCK" VARCHAR(1),
"IS_REVOKE" VARCHAR(1),
"IS_PERSON_PUNISH" VARCHAR(1),
"PRIPIDS" VARCHAR(2000),
"PATH" VARCHAR(500),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."ADDRESS" IS '自然人住所';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."CODE" IS '生成的编码';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."CUR_TIME" IS '报告生成时间';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."IS_ABNORMAL" IS '经营异常';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."IS_BLACK" IS '吊销黑名单企业';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."IS_CREDIT" IS '行政处罚资信证明';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."IS_LAOLAI" IS '老赖';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."IS_LOCK" IS '锁定名单';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."IS_PERSON_PUNISH" IS '自然人行政处罚';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."IS_PUNISH" IS '行政处罚';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."IS_REVOKE" IS '是否吊销企业';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."IS_SERIOUS" IS '严重违法';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."LEGAL_NAME" IS '法定代表人';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."LET_HIS_ID" IS '市场主体信息历史查询id';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."NAME" IS '企业主体名称';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."NUM" IS '流水号（规则：每次生成加一）';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."PATH" IS 'pdf文件路径';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."PERSON_CERT_NO" IS '证件号码';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."PERSON_CERT_TYPE" IS '证件类型';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."PERSON_NAME" IS '姓名';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."PRIPIDS" IS '关联企业主键ids';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."TEL" IS '联系电话';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."UPDATE_TIME" IS '修改时间';
COMMENT ON COLUMN "CRGS"."T_CREDIT_CODE"."USCC" IS '统一社会信用代码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229147955403000" ON "CRGS"."T_CREDIT_CODE"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_DATA_ITEM"
(
"ID" VARCHAR(36) NOT NULL,
"PARENT_ID" VARCHAR(36),
"NAME" VARCHAR(50),
"UNIT" VARCHAR(50),
"TOTAL" VARCHAR(50),
"CYCLE" VARCHAR(50),
"UPDATE" TIMESTAMP(0),
"CREATE_BY" VARCHAR(50),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(50),
"UPDATE_TIME" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."T_DATA_ITEM" IS '数据项列表';
COMMENT ON COLUMN "CRGS"."T_DATA_ITEM"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."T_DATA_ITEM"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."T_DATA_ITEM"."CYCLE" IS '同步周期';
COMMENT ON COLUMN "CRGS"."T_DATA_ITEM"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."T_DATA_ITEM"."LAUPTIME" IS '最近一次同步时间';
COMMENT ON COLUMN "CRGS"."T_DATA_ITEM"."NAME" IS '数据项名称';
COMMENT ON COLUMN "CRGS"."T_DATA_ITEM"."PARENT_ID" IS '数据源code';
COMMENT ON COLUMN "CRGS"."T_DATA_ITEM"."TOTAL" IS '数据总量';
COMMENT ON COLUMN "CRGS"."T_DATA_ITEM"."UNIT" IS '数据提供单位';
COMMENT ON COLUMN "CRGS"."T_DATA_ITEM"."UPDATE" IS '最近更新时间';
COMMENT ON COLUMN "CRGS"."T_DATA_ITEM"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."T_DATA_ITEM"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229147296633000" ON "CRGS"."T_DATA_ITEM"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_DATA_SOURCES"
(
"ID" VARCHAR(36) NOT NULL,
"SOURCE" VARCHAR(100),
"PROVIDE_UNIT" VARCHAR(100),
"TOTAL" VARCHAR(100),
"CYCLE" VARCHAR(100),
"UPDATE" TIMESTAMP(0),
"CREATE_BY" VARCHAR(100),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(100),
"UPDATE_TIME" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."T_DATA_SOURCES" IS '源数据列表';
COMMENT ON COLUMN "CRGS"."T_DATA_SOURCES"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."T_DATA_SOURCES"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."T_DATA_SOURCES"."CYCLE" IS '同步周期';
COMMENT ON COLUMN "CRGS"."T_DATA_SOURCES"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."T_DATA_SOURCES"."LAUPTIME" IS '最近一次同步时间';
COMMENT ON COLUMN "CRGS"."T_DATA_SOURCES"."PROVIDE_UNIT" IS '数据提供单位';
COMMENT ON COLUMN "CRGS"."T_DATA_SOURCES"."SOURCE" IS '数据源';
COMMENT ON COLUMN "CRGS"."T_DATA_SOURCES"."TOTAL" IS '数据总量';
COMMENT ON COLUMN "CRGS"."T_DATA_SOURCES"."UPDATE" IS '最近一次同步时间';
COMMENT ON COLUMN "CRGS"."T_DATA_SOURCES"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."T_DATA_SOURCES"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229146821547500" ON "CRGS"."T_DATA_SOURCES"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_DATA_TYPE_CODE"
(
"ID" VARCHAR(72) NOT NULL,
"TYPE" VARCHAR(100),
"LEVEL" VARCHAR(100),
"CODE" VARCHAR(100),
"P_CODE" VARCHAR(100),
"NAME" VARCHAR(100),
"CREATE_BY" VARCHAR(100),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(100),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."T_DATA_TYPE_CODE" IS '数据类型码值表';
COMMENT ON COLUMN "CRGS"."T_DATA_TYPE_CODE"."CODE" IS '编码';
COMMENT ON COLUMN "CRGS"."T_DATA_TYPE_CODE"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."T_DATA_TYPE_CODE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."T_DATA_TYPE_CODE"."LEVEL" IS '等级';
COMMENT ON COLUMN "CRGS"."T_DATA_TYPE_CODE"."NAME" IS '名称';
COMMENT ON COLUMN "CRGS"."T_DATA_TYPE_CODE"."P_CODE" IS '父编码';
COMMENT ON COLUMN "CRGS"."T_DATA_TYPE_CODE"."TYPE" IS '类型';
COMMENT ON COLUMN "CRGS"."T_DATA_TYPE_CODE"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."T_DATA_TYPE_CODE"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "CRGS"."T_DATA_TYPE_CODE_CODE_IDX" ON "CRGS"."T_DATA_TYPE_CODE"("CODE" ASC,"TYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229146076513900" ON "CRGS"."T_DATA_TYPE_CODE"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_DOUBLE_RANDOM"
(
"ID" VARCHAR(255) NOT NULL,
"PRIPID" VARCHAR(255),
"UNISCID" VARCHAR(255),
"ENTNAME" VARCHAR(255),
"VERIFYSTATE" VARCHAR(255),
"CHECKTIME" VARCHAR(255),
"ESTDATE" VARCHAR(255),
"ADDRESS" VARCHAR(255),
"REPRESENTATIVE" VARCHAR(255),
"REGNO" VARCHAR(255),
"CHECKNUM" VARCHAR(50),
"TASKTIME" VARCHAR(50),
"IS_SYNC" VARCHAR(1) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."T_DOUBLE_RANDOM"."ADDRESS" IS '住所';
COMMENT ON COLUMN "CRGS"."T_DOUBLE_RANDOM"."CHECKNUM" IS '核查结果（1 未发现问题 2 未按规定公示应当公示的信息 3 公示信息隐瞒真实情况弄虚作假 4 通过登记的住所（经营场所）无法联系
    5 发现问题已责令改正 6 不配合检查情节严重 7 未发现开展本次抽查涉及的经营活动 8 发现问题待后续处理）';
COMMENT ON COLUMN "CRGS"."T_DOUBLE_RANDOM"."CHECKTIME" IS '核查时间';
COMMENT ON COLUMN "CRGS"."T_DOUBLE_RANDOM"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "CRGS"."T_DOUBLE_RANDOM"."ESTDATE" IS '企业成立时间';
COMMENT ON COLUMN "CRGS"."T_DOUBLE_RANDOM"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."T_DOUBLE_RANDOM"."IS_SYNC" IS '是否已同步风险评分（风险评分计算） 0否1是';
COMMENT ON COLUMN "CRGS"."T_DOUBLE_RANDOM"."PRIPID" IS '企业主键';
COMMENT ON COLUMN "CRGS"."T_DOUBLE_RANDOM"."REGNO" IS '注册号';
COMMENT ON COLUMN "CRGS"."T_DOUBLE_RANDOM"."REPRESENTATIVE" IS '法人名称';
COMMENT ON COLUMN "CRGS"."T_DOUBLE_RANDOM"."TASKTIME" IS '任务发起的抽查时间';
COMMENT ON COLUMN "CRGS"."T_DOUBLE_RANDOM"."UNISCID" IS '社会统一信用代码';
COMMENT ON COLUMN "CRGS"."T_DOUBLE_RANDOM"."VERIFYSTATE" IS '抽查状态 2表示已完成';

CREATE OR REPLACE  INDEX "CRGS"."UNISCID" ON "CRGS"."T_DOUBLE_RANDOM"("UNISCID" ASC,"PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229145256342500" ON "CRGS"."T_DOUBLE_RANDOM"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_ENTERPRISE_SCORE"
(
"ID" VARCHAR(36) NOT NULL,
"USCC" VARCHAR(50),
"REGISTERED_CAPITAL" VARCHAR(50),
"SURVIVAL_TIME" VARCHAR(50),
"BUSINESS_TERM" VARCHAR(50),
"INDUSTRY_CATEGORIES" VARCHAR(50),
"NUMBER_PUNISHMENT" VARCHAR(50),
"ILLEGAL_BREACH" VARCHAR(50),
"THE_BLACKLIST" VARCHAR(50),
"INCLUDED_ABNORMAL" VARCHAR(50),
"FOCUS" VARCHAR(50),
"RANDOM_INSPECTION" VARCHAR(50),
"OTHER_DEPARTMENTS" VARCHAR(50),
"ADMINISTRATION" VARCHAR(50),
"NATIONAL_DEVELOPMENT" VARCHAR(50),
"TAX_CREDIT" VARCHAR(50),
"REGULATORY" VARCHAR(50),
"REVOKED" VARCHAR(50),
"CREDIT_BLACKLIST" VARCHAR(50),
"FOCUS_SITUATION" VARCHAR(50),
"ADMINISTRATIVE_PUNISHMENT" VARCHAR(50),
"POOR_CREDIT" VARCHAR(50),
"GROSS_OPERATING_INCOME" VARCHAR(50),
"SOCIAL_SECURITY_NUMBER" VARCHAR(50),
"MONITORING_DATA" VARCHAR(50),
"PUBLIC_OPINION" VARCHAR(50),
"UPDATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(50),
"CREATE_TIME" TIMESTAMP(0),
"CREATE_BY" VARCHAR(50),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."ADMINISTRATION" IS '总局信用评价';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."ADMINISTRATIVE_PUNISHMENT" IS '近三年行政处罚情况';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."BUSINESS_TERM" IS '营业期限';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."CREDIT_BLACKLIST" IS '近三年列入信用黑名单情况';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."FOCUS" IS '列入其他重点关注名单情况';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."FOCUS_SITUATION" IS '近三年列入重点关注情况';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."GROSS_OPERATING_INCOME" IS '年报营业总收入';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."ILLEGAL_BREACH" IS '列入严重违法失信情况';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."INCLUDED_ABNORMAL" IS '近三年列异次数';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."INDUSTRY_CATEGORIES" IS '行业类别';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."MONITORING_DATA" IS '监测数据情况';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."NATIONAL_DEVELOPMENT" IS '发改委信用评价';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."NUMBER_PUNISHMENT" IS '近三年的处罚次数';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."OTHER_DEPARTMENTS" IS '其他部门的抽查检查情况';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."POOR_CREDIT" IS '信用评价为差情况';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."PUBLIC_OPINION" IS '舆情情况';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."RANDOM_INSPECTION" IS '双随机抽查情况';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."REGISTERED_CAPITAL" IS '注册资本';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."REGULATORY" IS '互联网+监管系统信用评价';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."REVOKED" IS '近三年吊销情况';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."SOCIAL_SECURITY_NUMBER" IS '年报社保缴纳人数';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."SURVIVAL_TIME" IS '存续时间';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."TAX_CREDIT" IS '纳税信用等级（税局）';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."THE_BLACKLIST" IS '列入其他信用黑名单情况';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."T_ENTERPRISE_SCORE"."USCC" IS '统一社会信用代码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229143321749700" ON "CRGS"."T_ENTERPRISE_SCORE"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_LABEL"
(
"ID" VARCHAR(36) NOT NULL,
"NAME" VARCHAR(50),
"TYPE" VARCHAR(50),
"ENAME" VARCHAR(50),
"USERID" VARCHAR(36),
"UPDATE" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."T_LABEL" IS '标签列表';
COMMENT ON COLUMN "CRGS"."T_LABEL"."ENAME" IS '发布人员';
COMMENT ON COLUMN "CRGS"."T_LABEL"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."T_LABEL"."NAME" IS '标签名称';
COMMENT ON COLUMN "CRGS"."T_LABEL"."TYPE" IS '标签定义';
COMMENT ON COLUMN "CRGS"."T_LABEL"."UPDATE" IS '更新时间';
COMMENT ON COLUMN "CRGS"."T_LABEL"."USERID" IS '发布人员id';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229142820546700" ON "CRGS"."T_LABEL"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_LAOLAI_GR"
(
"INFOACTIONTYPE" VARCHAR(200),
"ID" VARCHAR(200),
"CASE_CODE" VARCHAR(200),
"INAME" VARCHAR(400),
"SEX_NAME" VARCHAR(20),
"AGE" VARCHAR(20),
"CARDNUM" VARCHAR(200),
"BUESINESSENTITY" VARCHAR(200),
"COURT_NAME" VARCHAR(200),
"AREA_NAME" VARCHAR(800),
"PARTY_TYPE_NAME" VARCHAR(64),
"GIST_CID" VARCHAR(1000),
"GIST_UNIT" VARCHAR(1000),
"DUTY" VARCHAR(4000),
"PERFORMANCE" VARCHAR(2000),
"DISREPUT_TYPE_NAME" VARCHAR(2000),
"PUBLISH_DATE" TIMESTAMP(0),
"REG_DATE" TIMESTAMP(0),
"PERFORMED_PART" VARCHAR(2000),
"UNPERFORM_PART" VARCHAR(2000),
"S_EXT_SEQUENCE" VARCHAR(32) NOT NULL,
"S_EXT_TIMESTAMP" TIMESTAMP(0),
"S_EXT_NODENUM" VARCHAR(6),
"S_EXT_VALIDFLAG" VARCHAR(1),
"AREA_ID" VARCHAR(200),
"ETLTIMESTAMP" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("S_EXT_SEQUENCE")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."T_LAOLAI_GR" IS '失信被执行人名单表（个人）';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."AGE" IS '年龄';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."AREA_ID" IS '地域ID';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."AREA_NAME" IS '地域名称';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."BUESINESSENTITY" IS '企业法人姓名';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."CARDNUM" IS '身份证号码';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."CASE_CODE" IS '案号';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."COURT_NAME" IS '执行法院';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."DISREPUT_TYPE_NAME" IS '失信被执行人具体情形';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."DUTY" IS '法律生效文书确定的义务';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."GIST_CID" IS '执行依据文号';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."GIST_UNIT" IS '作出执行依据单位';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."ID" IS '信息唯一标识';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."INAME" IS '失信被执行人姓名';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."INFOACTIONTYPE" IS '信息操作类型';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."PARTY_TYPE_NAME" IS '标识自然人或企业法人';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."PERFORMANCE" IS '被执行人的履行情况';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."PERFORMED_PART" IS '已履行部分';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."PUBLISH_DATE" IS '发布时间';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."REG_DATE" IS '立案时间';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."S_EXT_NODENUM" IS '节点号';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."S_EXT_SEQUENCE" IS '业务主键';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."S_EXT_TIMESTAMP" IS '时间戳';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."S_EXT_VALIDFLAG" IS '有效标识';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."SEX_NAME" IS '性别';
COMMENT ON COLUMN "CRGS"."T_LAOLAI_GR"."UNPERFORM_PART" IS '未履行部分';

CREATE OR REPLACE  INDEX "CRGS"."IDX_CARDNUM_E_PRI_PERSON_INDEX" ON "CRGS"."T_LAOLAI_GR"("CARDNUM" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229139564690300" ON "CRGS"."T_LAOLAI_GR"("S_EXT_SEQUENCE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_LETTER_COMPANY"
(
"ID" VARCHAR(36) NOT NULL,
"NAME" VARCHAR(100),
"USCC" VARCHAR(40),
"OPERATOR" VARCHAR(10),
"OPERATOR_PHONE" VARCHAR(30),
"ID_NUMBER" VARCHAR(20),
"EMAIL" VARCHAR(30),
"QUERY_TIME" TIMESTAMP(0),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."T_LETTER_COMPANY"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."T_LETTER_COMPANY"."EMAIL" IS '邮箱';
COMMENT ON COLUMN "CRGS"."T_LETTER_COMPANY"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."T_LETTER_COMPANY"."ID_NUMBER" IS '身份证号码';
COMMENT ON COLUMN "CRGS"."T_LETTER_COMPANY"."NAME" IS '企业名称';
COMMENT ON COLUMN "CRGS"."T_LETTER_COMPANY"."OPERATOR" IS '经办人';
COMMENT ON COLUMN "CRGS"."T_LETTER_COMPANY"."OPERATOR_PHONE" IS '经办人联系电话';
COMMENT ON COLUMN "CRGS"."T_LETTER_COMPANY"."QUERY_TIME" IS '查询时间';
COMMENT ON COLUMN "CRGS"."T_LETTER_COMPANY"."USCC" IS '统一社会信用代码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229135263108900" ON "CRGS"."T_LETTER_COMPANY"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."USCC" ON "CRGS"."T_LETTER_COMPANY"("USCC" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_LOGLIST"
(
"LOGID" VARCHAR(36) NOT NULL,
"OPERATIONID" VARCHAR(36),
"OPERATIONTYPE" VARCHAR(1),
"OPERATIONINFO" TEXT,
"PROCESSTYPE" VARCHAR(1),
"PROCESSID" VARCHAR(36),
"OPERATIONTIME" DATE) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_MANAGERMENU"
(
"MANAGERMENUID" VARCHAR(36) NOT NULL,
"MANAGERID" VARCHAR(10),
"SYSMENUID" VARCHAR(36),
NOT CLUSTER PRIMARY KEY("MANAGERMENUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229135118154600" ON "CRGS"."T_MANAGERMENU"("MANAGERMENUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_ORGGROUP"
(
"ORGGROUPID" VARCHAR(36) NOT NULL,
"ORGGROUPNAME" VARCHAR(100),
"ORGNUMBER" VARCHAR(20),
"ORGGROUPTYPEID" VARCHAR(36),
"ORGUNITID" VARCHAR(36),
"REMARK" TEXT,
NOT CLUSTER PRIMARY KEY("ORGGROUPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229134921108400" ON "CRGS"."T_ORGGROUP"("ORGGROUPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_ORGGROUPTYPE"
(
"ORGGROUPTYPEID" VARCHAR(36) NOT NULL,
"ORGGROUPNAME" VARCHAR(100),
NOT CLUSTER PRIMARY KEY("ORGGROUPTYPEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229134854720200" ON "CRGS"."T_ORGGROUPTYPE"("ORGGROUPTYPEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_ORGGROUPUSER"
(
"ORGGROUPUSERID" VARCHAR(36) NOT NULL,
"USERID" VARCHAR(36),
"ORGGROUPID" VARCHAR(36),
NOT CLUSTER PRIMARY KEY("ORGGROUPUSERID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229134697932200" ON "CRGS"."T_ORGGROUPUSER"("ORGGROUPUSERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_ORGJOBS"
(
"ORGJOBSID" VARCHAR(36) NOT NULL,
"JOBNAME" VARCHAR(100) NOT NULL,
"REMARK" TEXT NOT NULL,
NOT CLUSTER PRIMARY KEY("ORGJOBSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229134628310600" ON "CRGS"."T_ORGJOBS"("ORGJOBSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


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

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229134480515300" ON "CRGS"."T_ORGNODESAPP"("ORGUNITID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_ORGUNITPOS"
(
"ORGUNITPOSID" VARCHAR(36) NOT NULL,
"ORGUNITNAME" VARCHAR(100),
"ORGDEPTID" VARCHAR(36),
"ORGUNITID" VARCHAR(36),
"ORGUNITPOSNO" VARCHAR(20),
NOT CLUSTER PRIMARY KEY("ORGUNITPOSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229134318674600" ON "CRGS"."T_ORGUNITPOS"("ORGUNITPOSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_ORGUNITS"
(
"ORGUNITID" VARCHAR(36) NOT NULL,
"ORGUNITNAME" VARCHAR(100),
"DELETED" VARCHAR(1),
"ORGNUMBER" VARCHAR(20),
"PARENTID" VARCHAR(36),
"UNITTYPE" VARCHAR(1),
"ORGLEVEL" INT,
NOT CLUSTER PRIMARY KEY("ORGUNITID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229133982805000" ON "CRGS"."T_ORGUNITS"("ORGUNITID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_PARENTORGAPP"
(
"ORGAPPID" VARCHAR(36) NOT NULL,
"ORGUNITID" VARCHAR(36) NOT NULL,
"PARENTORGAPPID" VARCHAR(36) NOT NULL,
"ORGNUMBER" VARCHAR(20),
"ORGUNITNAME" VARCHAR(100),
NOT CLUSTER PRIMARY KEY("ORGAPPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229133885765300" ON "CRGS"."T_PARENTORGAPP"("ORGAPPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_PATENT_INFORMATION"
(
"ID" BIGINT NOT NULL,
"UNISCID" VARCHAR(500),
"PID" VARCHAR(100),
"TITLE" VARCHAR(255),
"ABS" CLOB,
"PATTYPE" VARCHAR(20),
"IS_KEY_ENTERPRISES" CLOB,
"IS_KEY_INDUSTRIES" CLOB,
"LPRS" VARCHAR(300),
"STATUS" VARCHAR(5),
"STATUSCODE" VARCHAR(100),
"APPNUMBER" CLOB,
"ISVIOLATION" VARCHAR(10),
"PATENTDATATYPE" VARCHAR(10),
"KEYINDUSTRIES" VARCHAR(10),
"STREET" VARCHAR(255),
"LEGALCODE" VARCHAR(10),
"PROJECTNAME" VARCHAR(100),
"APPDATE" TIMESTAMP(0),
"PUBNUMBER" VARCHAR(200),
"PUBDATE" VARCHAR(30),
"GRANTDATE" TIMESTAMP(0),
"EXPIREDATE" VARCHAR(30),
"APPLICANTNAME" CLOB,
"APPLICANTTYPE" VARCHAR(100),
"INVENTORNAME" CLOB,
"PATENTEE" CLOB,
"NEC" CLOB,
"MAINIPC" VARCHAR(100),
"IPC" CLOB,
"IPCSECTION" VARCHAR(100),
"IPCCLASS" VARCHAR(100),
"IPCSUBCLASS" VARCHAR(100),
"IPCGROUP" VARCHAR(1000),
"IPCSUBGROUP" CLOB,
"CPC" VARCHAR(100),
"CPCSECTION" VARCHAR(100),
"CPCCLASS" VARCHAR(100),
"CPCSUBCLASS" VARCHAR(100),
"CPCGROUP" VARCHAR(100),
"CPCSUBGROUP" VARCHAR(100),
"AGENCYNAME" VARCHAR(200),
"AGENCYNAMEUNISCID" VARCHAR(100),
"AGENTNAME" VARCHAR(100),
"PRIORITYCOUNTRY" VARCHAR(100),
"PRIORITYNO" VARCHAR(100),
"PRIORITY" VARCHAR(100),
"FIRSTPRIORITY" VARCHAR(100),
"CITATIONIPC" VARCHAR(100),
"CITATIONNO" VARCHAR(50),
"CITATIONAPPLICANT" CLOB,
"CITATIONCOUNTRY" VARCHAR(100),
"CITATIONOTHER" CLOB,
"CITATIONFORWARD" VARCHAR(100),
"CITATIONFORWARDCOUNTRY" CLOB,
"CLAIMSPATH" BLOB,
"CLAIMSTYPE" VARCHAR(100),
"INDEPENDENTCLAIMS" CLOB,
"INSTRPATH" CLOB,
"INSTRTIF" CLOB,
"CL" CLOB,
"ADDRESS" CLOB,
"ADDRPROVINCE" VARCHAR(100),
"ADDRCITY" VARCHAR(100),
"ADDRCOUNTY" VARCHAR(100),
"APPCOUN" VARCHAR(100),
"PUBCOUNTRYCODE" VARCHAR(100),
"PROCODE" VARCHAR(100),
"COUNTRYCODE" VARCHAR(100),
"COUNTRYNAME" VARCHAR(100),
"PROVINCECODE" VARCHAR(100),
"PROVINCENAME" VARCHAR(100),
"PATENTWORDS" CLOB,
"TITLEKEY" VARCHAR(200),
"CLKEY" CLOB,
"BGKEY" CLOB,
"CLAIMSQUANTITY" VARCHAR(100),
"INDEPENDENTCLAIMSQUANTITY" VARCHAR(100),
"SUBCLAIMSQUANTITY" VARCHAR(100),
"PATENTRIGHTTRANSFERQUANTITY" VARCHAR(100),
"APPLICATIONRIGHTTRANSFERQUANTITY" VARCHAR(100),
"LICENSEQUANTITY" VARCHAR(100),
"PLEDGEQUANTITY" VARCHAR(100),
"PRESERVATIONQUANTITY" VARCHAR(100),
"CITQUANTITY" VARCHAR(100),
"PATCITEDQUANTITY" VARCHAR(100),
"NPLCITEDQUANTITY" VARCHAR(100),
"FWCITQUANTITY" VARCHAR(100),
"FAMILYQUANTITY" VARCHAR(100),
"REEXAMINATIONDECISIONQUANTITY" VARCHAR(100),
"REEXAMINATIONVALIDQUANTITY" VARCHAR(100),
"COURTDECISIONQUANTITY" VARCHAR(100),
"DIVIDEINITAPPNO" VARCHAR(100),
"SAMEAPP" VARCHAR(100),
"DBNAME" VARCHAR(100),
"CENSOR" VARCHAR(100),
"APPRESOURCE" VARCHAR(100),
"IAPP" VARCHAR(100),
"IPUB" VARCHAR(100),
"DEN" VARCHAR(100),
"DRAWS" CLOB,
"TIFDISTRIBUTEPATH" VARCHAR(100),
"PAGES" VARCHAR(100),
"DECLASSIFIEDPUBLICATIONDATE" VARCHAR(100),
"IAPPNO" VARCHAR(100),
"IAPPDATE" VARCHAR(100),
"IPUBNO" VARCHAR(100),
"IPUBDATE" VARCHAR(100),
"DRAWSPIC" CLOB,
"PCTCOUNTRY" VARCHAR(500),
"FIGURE" VARCHAR(100),
"PATENTEDTIME" VARCHAR(100),
"ADVANCEDPUBLISHEDDOCUMENT" VARCHAR(100),
"HISTORYPATENTEE" CLOB,
"DESCRIPTION" VARCHAR(100),
"INVENTORS" VARCHAR(100),
"SUBCLASS" VARCHAR(100),
"LEGALSTATUS" CLOB,
"ABSPIC" VARCHAR(100),
"DESIGNPIC" VARCHAR(100),
"INCPIC" CLOB,
"SIMPLEFAMILYNO" VARCHAR(100),
"SIMPLEFAMILY" VARCHAR(100),
"SIMPLEFAMILYQUANTITY" VARCHAR(100),
"SIMPLEFAMILYCOUNTRY" VARCHAR(100),
"SIMPLEFAMILYLIST" VARCHAR(100),
"EXTENDFAMILYNO" VARCHAR(100),
"EXTENDFAMILY" VARCHAR(100),
"EXTENDFAMILYQUANTITY" VARCHAR(100),
"EXTENDFAMILYCOUNTRY" VARCHAR(100),
"EXTENDFAMILYLIST" VARCHAR(100),
"PATENTEEADDR" CLOB,
"PATENTEEADDRPROVINCE" VARCHAR(100),
"PATENTEEADDRCITY" VARCHAR(100),
"PATENTEEADDRCOUNTY" VARCHAR(100),
"PATENTETYPE" VARCHAR(100),
"PRIMARYAPPLICANTNAME" VARCHAR(400),
"PRIMARYINVENTORNAME" VARCHAR(300),
"PRIMARYPATENTEE" VARCHAR(400),
"APPLICANTINFO" VARCHAR(100),
"CITATIONINFO" VARCHAR(100),
"EXPLOITATIONLIST" VARCHAR(100),
"FIRSTJUDGMENTLIST" VARCHAR(100),
"INVALIDLIST" VARCHAR(100),
"LEGALLIST" VARCHAR(100),
"PRESERVATIONLIST" VARCHAR(100),
"PRIORITYINFO" VARCHAR(100),
"REEXAMLIST" VARCHAR(100),
"SECONDJUDGMENTLIST" VARCHAR(100),
"TRANSFERLIST" VARCHAR(100),
"VERSIONLIST" VARCHAR(100),
"CUSTOMLIST" VARCHAR(100),
"JUDGMENTLIST" VARCHAR(100),
"DIVIDEINITAPP" VARCHAR(100),
"DIVIDEINITAPPDATE" VARCHAR(100),
"APPLICANTQUANTITY" VARCHAR(100),
"AGENTQUANTITY" VARCHAR(100),
"PATENTEEQUANTITY" VARCHAR(100),
"IPCQUANTITY" VARCHAR(100),
"INVALIDREASONCODE" VARCHAR(100),
"HIGHVALUEFLAG" VARCHAR(100),
"STRATEGICEMERGINGINDUSTRYFLAG" VARCHAR(100),
"OVERSEASFAMILYFLAG" VARCHAR(100),
"OVERSEASFAMILYQUANTITY" VARCHAR(100),
"OVERSEASFAMILYINFO" VARCHAR(100),
"MAINTENANCEPERIODFLAG" VARCHAR(100),
"HIGHFINANCINGQUOTAFLAG" VARCHAR(100),
"AWARDFLAG" VARCHAR(100),
"AWARDINFO" VARCHAR(100),
"EMERGINGINDUSTRIESCLASSIFICATIONS" VARCHAR(100),
"CREATE_BY" VARCHAR(100),
"CREATE_DATE" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(100),
"UPDATE_DATE" TIMESTAMP(0),
"IS_DELETED" INTEGER NOT NULL,
"PHOTO" VARCHAR(255),
"PRIMARYPATENTEECODE" VARCHAR(10),
"APPAREA" VARCHAR(30),
"IS_DENSE" VARCHAR(10),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_PMACCOUNTUSERS"
(
"USERID" VARCHAR(36) NOT NULL,
"ACCOUNTID" VARCHAR(36),
"ACCREDITTARGET" INT,
NOT CLUSTER PRIMARY KEY("USERID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229133820063300" ON "CRGS"."T_PMACCOUNTUSERS"("USERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_POSMENU"
(
"POSMENUID" VARCHAR(36) NOT NULL,
"ORGUNITPOSID" VARCHAR(36),
"SYSMENUID" VARCHAR(36),
NOT CLUSTER PRIMARY KEY("POSMENUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229133356051200" ON "CRGS"."T_POSMENU"("POSMENUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_POSUSERRELATE"
(
"POSUSERRELATEID" VARCHAR(36) NOT NULL,
"ORGUNITPOSID" VARCHAR(36),
"USERID" VARCHAR(36),
"POSTYPE" VARCHAR(1),
NOT CLUSTER PRIMARY KEY("POSUSERRELATEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229132516066600" ON "CRGS"."T_POSUSERRELATE"("POSUSERRELATEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_PROCESSINFO"
(
"ID" VARCHAR(36) NOT NULL,
"CASEGUID" VARCHAR(64) NOT NULL,
"NODEID" VARCHAR(255),
"NODENAME" VARCHAR(50),
"HANDLER" VARCHAR(64),
"HANDLER_USERID" VARCHAR(36),
"HANDLE_DEPT" VARCHAR(100),
"HANDLE_DEPTID" VARCHAR(36),
"STATUS" VARCHAR(2),
"START_DATE" TIMESTAMP(0),
"END_DATE" TIMESTAMP(0),
"UPDATE_DATE" TIMESTAMP(0),
"FROM_NODEID" VARCHAR(80),
"HANDLE_ORGID" VARCHAR(36),
"HANDLE_ORGNAME" VARCHAR(255),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."CASEGUID" IS '业务主键';
COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."END_DATE" IS '结束时间';
COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."FROM_NODEID" IS '上一步节点id';
COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."HANDLE_DEPT" IS '处理部门';
COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."HANDLE_DEPTID" IS '处理部门id';
COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."HANDLE_ORGID" IS '处理机关id';
COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."HANDLE_ORGNAME" IS '处理机关名称';
COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."HANDLER" IS '处理人';
COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."HANDLER_USERID" IS '处理人id';
COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."NODEID" IS '步骤id';
COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."NODENAME" IS '步骤';
COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."START_DATE" IS '开始时间';
COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."STATUS" IS '流程状态';
COMMENT ON COLUMN "CRGS"."T_PROCESSINFO"."UPDATE_DATE" IS '更新时间';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229131917210500" ON "CRGS"."T_PROCESSINFO"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_QRCODE_PATH"
(
"ID" VARCHAR(36) NOT NULL,
"USCC" VARCHAR(50),
"QRCODE_PATH" VARCHAR(100),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."T_QRCODE_PATH"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "CRGS"."T_QRCODE_PATH"."QRCODE_PATH" IS '二维码存储路径';
COMMENT ON COLUMN "CRGS"."T_QRCODE_PATH"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "CRGS"."T_QRCODE_PATH"."USCC" IS '统一社会信用代码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229131792162700" ON "CRGS"."T_QRCODE_PATH"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_RATING_DETAILS_NEW"
(
"ID" VARCHAR(108) NOT NULL,
"ENT_ID" VARCHAR(108) NOT NULL,
"QUOTA_ID" VARCHAR(108) NOT NULL,
"STRATEGY" VARCHAR(765),
"SCORE" VARCHAR(765),
"CREATE_BY" VARCHAR(96),
"CREATE_TIME" TIMESTAMP(6),
"UPDATE_BY" VARCHAR(96),
"UPDATE_TIME" TIMESTAMP(6),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "CRGS"."T_RATING_DETAILS_NEW_ENT_ID_IDX" ON "CRGS"."T_RATING_DETAILS_NEW"("ENT_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_ROLE"
(
"ROLEID" VARCHAR(36) NOT NULL,
"ROLENAME" VARCHAR(100),
"PARENTID" VARCHAR(36),
"REMARK" TEXT,
NOT CLUSTER PRIMARY KEY("ROLEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229131657638200" ON "CRGS"."T_ROLE"("ROLEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_ROLEMENU"
(
"ROLEMENUID" VARCHAR(36) NOT NULL,
"ROLEID" VARCHAR(36),
"SYSMENUID" VARCHAR(36),
NOT CLUSTER PRIMARY KEY("ROLEMENUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229131517002100" ON "CRGS"."T_ROLEMENU"("ROLEMENUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_TASKLIST"
(
"ID" VARCHAR(36) NOT NULL,
"CASEGUID" VARCHAR(64) NOT NULL,
"NAME" VARCHAR(255),
"USCC" VARCHAR(255),
"REPRESENTATIVE" VARCHAR(255),
"SCOPE" VARCHAR(255),
"SCORE" VARCHAR(255),
"LEVEL" VARCHAR(255),
"BEGIN_DATE" TIMESTAMP(0),
"SDEXPIRATION_DATE" TIMESTAMP(0),
"NEXT_NODEID" VARCHAR(255),
"FROM_NODEID" VARCHAR(255),
"HANDLE_REGION" VARCHAR(255),
"HANDLE_DEPTNAME" VARCHAR(255),
"HANDLE_DEPTID" VARCHAR(255),
"STATE" VARCHAR(2),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."T_TASKLIST"."BEGIN_DATE" IS '开始时间';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."CASEGUID" IS '业务主键';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."FROM_NODEID" IS '上一节点';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."HANDLE_DEPTID" IS '处理部门id';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."HANDLE_DEPTNAME" IS '处理部门名称';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."HANDLE_REGION" IS '处理机关';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."LEVEL" IS '风险等级';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."NAME" IS '企业名称';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."NEXT_NODEID" IS '当前节点';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."REPRESENTATIVE" IS '法定代表人';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."SCOPE" IS '经营范围';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."SCORE" IS '风险评分';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."SDEXPIRATION_DATE" IS '到期时间';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."STATE" IS '是否有效（1失效 0有效）';
COMMENT ON COLUMN "CRGS"."T_TASKLIST"."USCC" IS '统一社会信用代码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229130572324400" ON "CRGS"."T_TASKLIST"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_TRADEMARK_INFORMATION"
(
"ID" VARCHAR(255) NOT NULL,
"UNISCID" VARCHAR(255),
"TID" VARCHAR(255),
"UPDATE_TIME" TIMESTAMP(0),
"REG_NUM" VARCHAR(255),
"INT_CLS" VARCHAR(255),
"TM_NAME" VARCHAR(255),
"TM_NAME_CN" VARCHAR(255),
"TM_NAME_EN" VARCHAR(255),
"DESIGNATED_COUNTRY" VARCHAR(255),
"EFFECTIVE_DATE_START" TIMESTAMP(0),
"EFFECTIVE_DATE_END" TIMESTAMP(0),
"DESIGNATED_GOODS" VARCHAR(255),
"AGENCY_EN" VARCHAR(255),
"INT_REG_NUM" VARCHAR(255),
"INT_REG_DATE" VARCHAR(255),
"TM_NAME_PY" CLOB,
"TM_OPP_END_DATE" DATE,
"TM_TYPE" VARCHAR(255),
"TM_TYPE_NAME" VARCHAR(255),
"AGENT_CODE" VARCHAR(255),
"AGENT_NAME" VARCHAR(255),
"AGENT_UNISCID" VARCHAR(100),
"FIRST_ANNC_ISSUE" DATE,
"FIRST_ANNC_DATE" DATE,
"REG_ANNC_DATE" DATE,
"PROPERTY_BGN_DATE" VARCHAR(255),
"PROPERTY_END_DATE" VARCHAR(255),
"PROPERTY_PERIOD" VARCHAR(255),
"TM_DESIGN_DESC" VARCHAR(600),
"TM_COLOR_DESC" VARCHAR(255),
"ABAN_PROP_DESC" VARCHAR(255),
"IF_SOLID_TM" VARCHAR(255),
"IF_SHARE_TM" VARCHAR(255),
"TM_FORM_TYPE" VARCHAR(255),
"TM_FORM_TYPE_NAME" VARCHAR(255),
"TM_LANDMARK_INFO" VARCHAR(255),
"TM_COLOR_SIGN" VARCHAR(255),
"IF_WELLKNOW_TM" VARCHAR(255),
"IMG_PATH" VARCHAR(255),
"RIGHTS_STATUS" VARCHAR(255),
"APPLICANT_INFOS" VARCHAR(255),
"COOWNER_INFOS" VARCHAR(255),
"GOODS_INFOS" VARCHAR(255),
"TM_VIENNA" VARCHAR(255),
"VIENNA_INFOS" VARCHAR(255),
"PRIORITY_INFOS" VARCHAR(255),
"FLOW_INFOS" VARCHAR(255),
"NOTICE_INFOS" VARCHAR(255),
"INT_REG_INFOS" VARCHAR(255),
"ASSIGN_INFOS" VARCHAR(255),
"LICENSE_INFOS" VARCHAR(255),
"CUSTOMS_INFO" VARCHAR(255),
"PLEDGE_INFOS" VARCHAR(255),
"REVIEW_INFOS" VARCHAR(255),
"SCORE" VARCHAR(255),
"CREATE_BY" VARCHAR(255),
"CREATE_DATE" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(255),
"UPDATE_DATE" TIMESTAMP(0),
"IS_DELETE" INTEGER,
"PHOTO" VARCHAR(255),
"APP_NAME_CN" VARCHAR(255),
"APP_NAME_EN" VARCHAR(255),
"APP_ADDR_CN" VARCHAR(255),
"APP_AREA" VARCHAR(255),
"ZT_TYPE" VARCHAR(255),
"APP_DATE" DATE,
"APP_NAME_CODE" VARCHAR(255),
"ORG_NAME" VARCHAR(255),
"REG_ANNC_ISSUE" VARCHAR(255),
"COMMODITY" VARCHAR(255),
"APP_ADDR_EN" VARCHAR(255),
"TRADEMARK_IF" INTEGER,
"SIMILAR_GROUP" CLOB,
"TRADEMARK_FORM" VARCHAR(255),
"LATER_STAGE" DATE,
"PRIORITY" DATE,
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_USERMANAGER"
(
"USERMANAGERID" VARCHAR(36) NOT NULL,
"MANAGERID" VARCHAR(10),
"USERID" VARCHAR(36),
NOT CLUSTER PRIMARY KEY("USERMANAGERID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229130390163300" ON "CRGS"."T_USERMANAGER"("USERMANAGERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_USERMENU"
(
"USERMENUID" VARCHAR(36) NOT NULL,
"USERID" VARCHAR(36),
"SYSMENUID" VARCHAR(36),
"MENUSTATUS" VARCHAR(10),
"ALLOTSTATUS" VARCHAR(1),
NOT CLUSTER PRIMARY KEY("USERMENUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "CRGS"."T_USERMENU_USERID_IDX" ON "CRGS"."T_USERMENU"("USERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229129779689400" ON "CRGS"."T_USERMENU"("USERMENUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_USERMENU_SYSMENUID_IDX" ON "CRGS"."T_USERMENU"("SYSMENUID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_USERROLE"
(
"USERROLEID" VARCHAR(36) NOT NULL,
"ROLEID" VARCHAR(36),
"USERID" VARCHAR(36),
NOT CLUSTER PRIMARY KEY("USERROLEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229128153881400" ON "CRGS"."T_USERROLE"("USERROLEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_USERS"
(
"USERID" VARCHAR(36) NOT NULL,
"USERNAME" VARCHAR(100),
"PASSWORD" VARCHAR(100),
"REALNAME" VARCHAR(100),
"LOCKED" VARCHAR(1),
"DELETED" VARCHAR(1),
"ORGDEPTID" VARCHAR(36),
"ORGUNITID" VARCHAR(36),
"ORGJOBID" VARCHAR(10),
"USERPROP" INT,
"USERSTATUS" VARCHAR(1),
"GRADENUM" INT,
"CUSTOMINDEX" INT,
NOT CLUSTER PRIMARY KEY("USERID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "CRGS"."T_USERS_ORGDEPTID_IDX" ON "CRGS"."T_USERS"("ORGDEPTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229127945293100" ON "CRGS"."T_USERS"("USERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_USERS_ORGUNITID_IDX" ON "CRGS"."T_USERS"("ORGUNITID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."T_USERS_USERNAME_IDX" ON "CRGS"."T_USERS"("USERNAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_USERSAPP"
(
"USERID" VARCHAR(36) NOT NULL,
"GENDER" VARCHAR(1),
"PHONENUMBER" VARCHAR(80),
"MOBILE" VARCHAR(80),
"EMAIL" VARCHAR(100),
"ADDRESS" VARCHAR(80),
"WORKNO" VARCHAR(20),
"WORKTYPE" VARCHAR(1),
"BIRTHDAY" DATE,
"HIREDATE" DATE,
"LEAVEDATE" DATE,
"IDENTITYNO" VARCHAR(20),
"REMARK" TEXT,
NOT CLUSTER PRIMARY KEY("USERID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229126859864700" ON "CRGS"."T_USERSAPP"("USERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."T_USERSUPERROLE"
(
"SUPERROLEID" VARCHAR(36) NOT NULL,
"USERID" VARCHAR(36) NOT NULL,
"ROLEID" VARCHAR(36) NOT NULL,
NOT CLUSTER PRIMARY KEY("SUPERROLEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229126538311900" ON "CRGS"."T_USERSUPERROLE"("SUPERROLEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TAG"
(
"CREATE_BY" VARCHAR(80) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(80) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(80) NOT NULL,
"TAG_NAME" VARCHAR(40) NOT NULL,
"TAG_DEFINITION" VARCHAR(400),
"ISSUER" VARCHAR(100) NOT NULL,
"REMOVABLE" INT DEFAULT 1 NOT NULL,
"ISEXPIRED" VARCHAR(6),
"EXPIREDATE" TIMESTAMP(6),
"FORPRUTYPE" VARCHAR(12),
"ORGID" VARCHAR(96),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."TAG" IS '标签表';
COMMENT ON COLUMN "CRGS"."TAG"."EXPIREDATE" IS '到期时间';
COMMENT ON COLUMN "CRGS"."TAG"."FORPRUTYPE" IS '包容审慎类型（1.包容库；2.审慎库；3.白名单库）';
COMMENT ON COLUMN "CRGS"."TAG"."ID" IS 'id';
COMMENT ON COLUMN "CRGS"."TAG"."ISEXPIRED" IS '是否已到期';
COMMENT ON COLUMN "CRGS"."TAG"."ISSUER" IS '创建人名称';
COMMENT ON COLUMN "CRGS"."TAG"."ORGID" IS '归属地编码';
COMMENT ON COLUMN "CRGS"."TAG"."REMOVABLE" IS '可删除的（0否1是）';
COMMENT ON COLUMN "CRGS"."TAG"."TAG_DEFINITION" IS '标签定义';
COMMENT ON COLUMN "CRGS"."TAG"."TAG_NAME" IS '标签名';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229126442836800" ON "CRGS"."TAG"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TAG_TAG_NAME_IDX" ON "CRGS"."TAG"("TAG_NAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."tb_ilc_pun_info_query"
(
"ID" VARCHAR(40) NOT NULL,
"ZCH" VARCHAR(100),
"UNISCID" VARCHAR(50),
"SDSJ" TIMESTAMP(0),
"DSRMC" VARCHAR(200),
"WFXW" VARCHAR(4000),
"CFYJ" VARCHAR(1500),
"SPUNCONTENT" CLOB,
"CZSJ" TIMESTAMP(0),
"S_SIGN_DATA" VARCHAR(500),
"S_SIGN_CERT" VARCHAR(100),
"CFDJJG" VARCHAR(120),
"CFJDSJ" TIMESTAMP(0),
"XZCFLXFS" VARCHAR(120),
"XZCFLXSJ" TIMESTAMP(0),
"GSQX" TIMESTAMP(0),
"PENAM" DEC(12,2),
"FORFAM" DEC(12,2),
"DTUPDATE" TIMESTAMP(0),
"SCASECODE" VARCHAR(40),
"SREALCASECODE" VARCHAR(100),
"SBOOKCODE" VARCHAR(100),
"SFLAG" VARCHAR(1),
"UPDATETIME" TIMESTAMP(0),
"SSTATE" VARCHAR(2),
"SGISTTYPECODE" VARCHAR(100),
"SGISTTYPENAME" VARCHAR(200),
"SPUNTYPECODE" VARCHAR(100),
"SPUNTYPENAME" VARCHAR(200),
"DSRTYPE" VARCHAR(1),
"SYSTYPE" VARCHAR(1),
"DTCASEDATE" TIMESTAMP(0),
"SCHECKTYPE" VARCHAR(1),
"SCHECKTYPENAME" VARCHAR(100),
"SPRINCIPAL" VARCHAR(100),
"SPRINCIPALNO" VARCHAR(100),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."CFDJJG" IS '处罚登记机关';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."CFJDSJ" IS '做出处罚决定日期';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."CFYJ" IS '处罚依据';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."CZSJ" IS '操作时间';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."DSRMC" IS '当事人名称';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."DSRTYPE" IS '当事人类型；1-商事主体 2-自然人';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."DTCASEDATE" IS '立案时间';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."FORFAM" IS '没收金额';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."GSQX" IS '公示期限';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."ID" IS '主键';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."PENAM" IS '罚款金额';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."S_SIGN_CERT" IS '证书序列号';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."S_SIGN_DATA" IS '签名值字段';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SBOOKCODE" IS '处罚决定书文号';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SCASECODE" IS '案件编码';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SCHECKTYPE" IS '案件审批类型（1--行政处罚；2--不予行政处罚；3--销案；4--移送；5--当事人不确定财物处理 6-办理中 7-案';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SCHECKTYPENAME" IS '案件审批类型名称';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SDSJ" IS '送达时间';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SGISTTYPECODE" IS '违法类型编码，有多个时用逗号分隔';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SGISTTYPENAME" IS '违法类型名称，有多个时用逗号分隔';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SPRINCIPAL" IS '法定代表人';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SPRINCIPALNO" IS '法定代表人身份证号';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SPUNCONTENT" IS '处罚内容';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SPUNTYPECODE" IS '处罚种类编码，有多个时用逗号分隔';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SPUNTYPENAME" IS '处罚种类名称，有多个时用逗号分隔';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SREALCASECODE" IS '案件实际编号';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SSTATE" IS '公示状态，'4'表示不公示';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."SYSTYPE" IS '数据来源系统：1-工商 2-食药 3-质监 4-知识产权';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."UNISCID" IS '统一码';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."WFXW" IS '违法行为定性';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."XZCFLXFS" IS '行政处罚履行方式';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."XZCFLXSJ" IS '行政处罚履行期限';
COMMENT ON COLUMN "CRGS"."tb_ilc_pun_info_query"."ZCH" IS '注册码；当事人类型如果为1，为注册号/统一社会信用代码；当事人类型为2则是自然人身份证号码';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229125316391600" ON "CRGS"."tb_ilc_pun_info_query"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TB_TS_DW_BASE"
(
"UNIT_ID" VARCHAR(40) NOT NULL,
"UNIT_CODE" VARCHAR(100) NOT NULL,
"UNIT_NAME" VARCHAR(400),
"IN_COUNTRY" VARCHAR(100),
"IN_PRI" VARCHAR(100),
"IN_CITY" VARCHAR(100),
"IN_SECTION" VARCHAR(100),
"IN_STREET" VARCHAR(100),
"POST_CODE" VARCHAR(100),
"HOME_PAGE" VARCHAR(400),
"UNIT_ADDRESS" VARCHAR(400),
"LINK_MAN" VARCHAR(100),
"LINK_PHONE" VARCHAR(100),
"AREA_CODE" VARCHAR(100),
"LAW_DEPUTY" VARCHAR(100),
"WAY_CODE" VARCHAR(100),
"UNIT_PHONE" VARCHAR(100),
"UNIT_FOX" VARCHAR(100),
"EMAIL" VARCHAR(200),
"MANAGE_CODE" VARCHAR(1000),
"LITTEMANAGE_CODE" VARCHAR(1000),
"ECONOMY_TYPE" VARCHAR(100),
"CHECK_UNIT" VARCHAR(400),
"REC_VALID" VARCHAR(100),
"CREATE_DATE" TIMESTAMP(6),
"UPDATE_DATE" TIMESTAMP(6),
"UPDATE_MAN" VARCHAR(100),
"UNIT_TYPE" VARCHAR(100),
"SEAL" VARCHAR(510),
"IS_PERMISSION" INTEGER,
"IS_VALID" INTEGER,
"VALID_DATE" TIMESTAMP(6),
"IC_CARD" VARCHAR(100),
"IS_OVERDATE" INTEGER,
"IS_USE" INTEGER,
"IS_DESIGN" INTEGER,
"IS_MAKE" INTEGER,
"IS_INSTALL" INTEGER,
"IS_PUFF" INTEGER,
"IS_CHECK" INTEGER,
"IS_SERVICE" INTEGER,
"IS_SALE" INTEGER,
"REMARK" VARCHAR(400),
"SYDWMC" VARCHAR(200),
"LXR" VARCHAR(100),
"LXDH" VARCHAR(100),
"SQRQ" TIMESTAMP(6),
"GAS_NUM" VARCHAR(10),
"USE_CARD" VARCHAR(50),
"UPDATE_FLAG" VARCHAR(50),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("UNIT_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TB_ZC_ENTITY_MOVEIN"
(
"MIID" VARCHAR(80) NOT NULL,
"PRIPID" VARCHAR(72),
"MINLETNUM" VARCHAR(100),
"MINREA" TEXT,
"MINDATE" TIMESTAMP(0),
"MOUTAREA" VARCHAR(200),
"MOUTAREREGORG" VARCHAR(40),
"MINSIGN" VARCHAR(2),
"SCBZ" VARCHAR(2),
"ZHXGSJ" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("MIID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229125236770800" ON "CRGS"."TB_ZC_ENTITY_MOVEIN"("MIID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TRACK_TASK"
(
"CREATE_BY" VARCHAR(40) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(40) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(40) NOT NULL,
"TASK_NAME" VARCHAR(200) NOT NULL,
"TASK_CODE" VARCHAR(50) NOT NULL,
"START_TIME" TIMESTAMP(0) NOT NULL,
"END_TIME" TIMESTAMP(0),
"TASK_STATUS" INT NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."TRACK_TASK" IS '处置任务';
COMMENT ON COLUMN "CRGS"."TRACK_TASK"."END_TIME" IS '任务结束时间';
COMMENT ON COLUMN "CRGS"."TRACK_TASK"."ID" IS 'id';
COMMENT ON COLUMN "CRGS"."TRACK_TASK"."START_TIME" IS '任务开始时间';
COMMENT ON COLUMN "CRGS"."TRACK_TASK"."TASK_CODE" IS '任务编号';
COMMENT ON COLUMN "CRGS"."TRACK_TASK"."TASK_NAME" IS '任务名称';
COMMENT ON COLUMN "CRGS"."TRACK_TASK"."TASK_STATUS" IS '任务状态，暂定：-1审核不通过，0待审核（创建），1审核通过（待知会），2已知会';

CREATE OR REPLACE  INDEX "CRGS"."TRACK_TASK_START_TIME_IDX" ON "CRGS"."TRACK_TASK"("START_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229124999942800" ON "CRGS"."TRACK_TASK"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TRACK_TASK_PROCESS"
(
"CREATE_BY" VARCHAR(40) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(40) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
"ID" VARCHAR(40) NOT NULL,
"TASK_ID" VARCHAR(40) NOT NULL,
"PROCESS_TYPE" INT NOT NULL,
"SUBMIT_BATCH" INT NOT NULL,
"PROCESS_STATUS" INT NOT NULL,
"TARGET_USER_ID" VARCHAR(40) NOT NULL,
"REMARK" VARCHAR(500) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."TRACK_TASK_PROCESS" IS '处置任务流程';
COMMENT ON COLUMN "CRGS"."TRACK_TASK_PROCESS"."ID" IS '数据id';
COMMENT ON COLUMN "CRGS"."TRACK_TASK_PROCESS"."PROCESS_STATUS" IS '流程状态（-1：审核不通过，0：审核中/已通知，1：审核通过/已知会）';
COMMENT ON COLUMN "CRGS"."TRACK_TASK_PROCESS"."PROCESS_TYPE" IS '流程类型（0审核，1知会）';
COMMENT ON COLUMN "CRGS"."TRACK_TASK_PROCESS"."REMARK" IS '备注信息';
COMMENT ON COLUMN "CRGS"."TRACK_TASK_PROCESS"."SUBMIT_BATCH" IS '提交批次';
COMMENT ON COLUMN "CRGS"."TRACK_TASK_PROCESS"."TARGET_USER_ID" IS '流程指向用户id';
COMMENT ON COLUMN "CRGS"."TRACK_TASK_PROCESS"."TASK_ID" IS '任务id';

CREATE OR REPLACE  INDEX "CRGS"."TRACK_TASK_PROCESS_PROCESS_STATUS_IDX" ON "CRGS"."TRACK_TASK_PROCESS"("PROCESS_STATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229124658233800" ON "CRGS"."TRACK_TASK_PROCESS"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TRACK_TASK_PROCESS_TASK_ID_IDX" ON "CRGS"."TRACK_TASK_PROCESS"("TASK_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TRACK_TASK_PROCESS_TARGET_USER_ID_IDX" ON "CRGS"."TRACK_TASK_PROCESS"("TARGET_USER_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TRACK_TASK_PROCESS_PROCESS_TYPE_IDX" ON "CRGS"."TRACK_TASK_PROCESS"("PROCESS_TYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TRACK_TASK_PROCESS_SUBMIT_BATCH_IDX" ON "CRGS"."TRACK_TASK_PROCESS"("SUBMIT_BATCH" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


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

CREATE OR REPLACE  INDEX "CRGS"."TRENTBASEINFO_REGISTNO_IDX" ON "CRGS"."TRENTBASEINFO"("REGISTNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229123898953200" ON "CRGS"."TRENTBASEINFO"("ENTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TRENTTAXBUREAU"
(
"TAXBUREAUID" VARCHAR(36) NOT NULL,
"ENTID" VARCHAR(36) NOT NULL,
"ENTNO" VARCHAR(36) NOT NULL,
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(36),
"ENTNAME" VARCHAR(300),
"REPORTYEAR" VARCHAR(10),
"ZCZJ" VARCHAR(50),
"SYZQYHGDQYHJ" VARCHAR(50),
"FZHJ" VARCHAR(50),
"YYZSR" VARCHAR(50),
"ZYYWSR" VARCHAR(50),
"LRZE" VARCHAR(50),
"JLR" VARCHAR(50),
"NSZE" VARCHAR(50),
"CREATEDATE" DATETIME(6),
"UPDATEDATE" DATETIME(6),
"DSTATE" VARCHAR(4),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
CONSTRAINT "PK_TRENTTAXBUREAU" NOT CLUSTER PRIMARY KEY("TAXBUREAUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TRIDMAKER"
(
"MAKERID" VARCHAR(50) NOT NULL,
"CURNUM" INT,
"CURDATE" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6),
"OPTLOCK" INT,
NOT CLUSTER PRIMARY KEY("MAKERID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229123785313600" ON "CRGS"."TRIDMAKER"("MAKERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TRINVESTMENTENT"
(
"INVESTMENTID" VARCHAR(72) NOT NULL,
"ENTID" VARCHAR(72) NOT NULL,
"ENTITYNO" VARCHAR(72) NOT NULL,
"INVENAME" VARCHAR(200) NOT NULL,
"INVEREGISTNO" VARCHAR(60) NOT NULL,
"DEPARTMENT" VARCHAR(200),
"INVESTAMOUNT" DEC(24,6),
"ISSHOW" VARCHAR(2),
"CREATEDATE" TIMESTAMP(0),
"UPDATEDATE" TIMESTAMP(0),
"DSTATE" VARCHAR(2),
NOT CLUSTER PRIMARY KEY("INVESTMENTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "CRGS"."INDX_INVESTMENTENT_ENTID" ON "CRGS"."TRINVESTMENTENT"("ENTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."IDX_DS_TRINVEST34" ON "CRGS"."TRINVESTMENTENT"("DSTATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."INDX_INVESTMENTENT_ENTITYNO" ON "CRGS"."TRINVESTMENTENT"("ENTITYNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229123560592400" ON "CRGS"."TRINVESTMENTENT"("INVESTMENTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TS_TASK_LIST_ENTER_TYPE"
(
"UID" VARCHAR(36) NOT NULL,
"WORKFLOW_ID" VARCHAR(36) NOT NULL,
"ENTER_TYPE" VARCHAR(20) NOT NULL,
NOT CLUSTER PRIMARY KEY("UID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."TS_TASK_LIST_ENTER_TYPE" IS '工作流涉及主体分类关联表';
COMMENT ON COLUMN "CRGS"."TS_TASK_LIST_ENTER_TYPE"."ENTER_TYPE" IS '主体类型';
COMMENT ON COLUMN "CRGS"."TS_TASK_LIST_ENTER_TYPE"."UID" IS '工作流id';
COMMENT ON COLUMN "CRGS"."TS_TASK_LIST_ENTER_TYPE"."WORKFLOW_ID" IS '工作流id';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229123110159300" ON "CRGS"."TS_TASK_LIST_ENTER_TYPE"("UID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TSBIZSERILLEGAL"
(
"ILLEGALLISTID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(36),
"DISSENTID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(30),
"ENTNAME" VARCHAR(100),
"SERILLREA" VARCHAR(2),
"APPROVALDATE" DATE,
"DECORG" VARCHAR(9),
"AREA_CODE" VARCHAR(6) NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"LOSTCREDITEXPLAIN" TEXT,
"RECONSIDERATIONORG" VARCHAR(50),
"GOVERNMENTORG" VARCHAR(50),
"LITIORG" VARCHAR(50),
"STATUS" VARCHAR(1),
"INTOSPONSORILLEGAL" VARCHAR(50),
NOT CLUSTER PRIMARY KEY("ILLEGALLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "CRGS"."TSBIZSERILLEGAL"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "CRGS"."TSBIZSERILLEGAL"."DISSENTID" IS '异议申请ID';
COMMENT ON COLUMN "CRGS"."TSBIZSERILLEGAL"."GOVERNMENTORG" IS '人民政府';
COMMENT ON COLUMN "CRGS"."TSBIZSERILLEGAL"."ILLEGALLISTID" IS '编号ID';
COMMENT ON COLUMN "CRGS"."TSBIZSERILLEGAL"."INTOSPONSORILLEGAL" IS '列入主办人';
COMMENT ON COLUMN "CRGS"."TSBIZSERILLEGAL"."LITIORG" IS '诉讼机关';
COMMENT ON COLUMN "CRGS"."TSBIZSERILLEGAL"."RECONSIDERATIONORG" IS '行政复议机关';
COMMENT ON COLUMN "CRGS"."TSBIZSERILLEGAL"."STATUS" IS '9 受理中、1 审批中、2 已通过、3 不通过';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229122827066700" ON "CRGS"."TSBIZSERILLEGAL"("ILLEGALLISTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TSHWFPROCESS"
(
"PROCESSID" VARCHAR(36) NOT NULL,
"PARENTPROCESSID" VARCHAR(36),
"COMPLETEDON" DATE,
"CREATEDON" DATE,
"STATUS" INT,
"OPTLOCK" INT,
"DEFNAME" VARCHAR(50),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) NOT NULL,
"INDEPENDENT" INT,
NOT CLUSTER PRIMARY KEY("PROCESSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."TSHWFPROCESS" IS '流程实例';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESS"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESS"."COMPLETEDON" IS '完成时间';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESS"."CREATEDON" IS '启动时间';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESS"."DEFNAME" IS '流程名';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESS"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESS"."OPTLOCK" IS '版本标识';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESS"."PARENTPROCESSID" IS '父实例ID';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESS"."PROCESSID" IS '主键';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESS"."STATUS" IS '状态';

CREATE OR REPLACE  INDEX "CRGS"."TSHWFPROCESS_PARENTPROCESSID_IDX" ON "CRGS"."TSHWFPROCESS"("PARENTPROCESSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229122285515900" ON "CRGS"."TSHWFPROCESS"("PROCESSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TSHWFPROCESSNODE"
(
"PROCESSNODEID" VARCHAR(36) NOT NULL,
"PROCESSID" VARCHAR(36),
"CREATEDON" DATE,
"CURRENTNODE" VARCHAR(255),
"NODEFLOW" VARCHAR(255),
"STATUS" INT,
"OPTLOCK" INT,
"CURRUSERID" VARCHAR(255),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) NOT NULL,
NOT CLUSTER PRIMARY KEY("PROCESSNODEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."TSHWFPROCESSNODE" IS '流程实例节点';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESSNODE"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESSNODE"."CREATEDON" IS '创建时间';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESSNODE"."CURRENTNODE" IS '当前节点';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESSNODE"."CURRUSERID" IS '当前用户ID';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESSNODE"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESSNODE"."NODEFLOW" IS '节点流向';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESSNODE"."OPTLOCK" IS '版本标识';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESSNODE"."PROCESSID" IS '流程实例主键';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESSNODE"."PROCESSNODEID" IS '主键';
COMMENT ON COLUMN "CRGS"."TSHWFPROCESSNODE"."STATUS" IS '节点状态';

CREATE OR REPLACE  INDEX "CRGS"."TSHWFPROCESSNODE_CURRUSERID_IDX" ON "CRGS"."TSHWFPROCESSNODE"("CURRUSERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSHWFPROCESSNODE_PROCESSID_IDX" ON "CRGS"."TSHWFPROCESSNODE"("PROCESSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSHWFPROCESSNODE_STATUS_IDX" ON "CRGS"."TSHWFPROCESSNODE"("STATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSHWFPROCESSNODE_CREATEON_IDX" ON "CRGS"."TSHWFPROCESSNODE"("CREATEDON" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229121894129100" ON "CRGS"."TSHWFPROCESSNODE"("PROCESSNODEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSHWFPROCESSNODE_CURRENTNODE_IDX" ON "CRGS"."TSHWFPROCESSNODE"("CURRENTNODE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TSHWFTASK"
(
"TASKID" VARCHAR(36) NOT NULL,
"PROCESSID" VARCHAR(36),
"STATUS" INT,
"COMPLETEDON" DATE,
"CREATEDON" DATE,
"ACTUALOWNERID" VARCHAR(36),
"CREATEDBYID" VARCHAR(36),
"OPTLOCK" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) NOT NULL,
NOT CLUSTER PRIMARY KEY("TASKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."TSHWFTASK" IS '工作流任务表';
COMMENT ON COLUMN "CRGS"."TSHWFTASK"."ACTUALOWNERID" IS '签收者ID';
COMMENT ON COLUMN "CRGS"."TSHWFTASK"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "CRGS"."TSHWFTASK"."COMPLETEDON" IS '完成时间';
COMMENT ON COLUMN "CRGS"."TSHWFTASK"."CREATEDBYID" IS '创建者ID';
COMMENT ON COLUMN "CRGS"."TSHWFTASK"."CREATEDON" IS '创建时间';
COMMENT ON COLUMN "CRGS"."TSHWFTASK"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "CRGS"."TSHWFTASK"."OPTLOCK" IS '版本标识';
COMMENT ON COLUMN "CRGS"."TSHWFTASK"."PROCESSID" IS '主键';
COMMENT ON COLUMN "CRGS"."TSHWFTASK"."STATUS" IS '状态';
COMMENT ON COLUMN "CRGS"."TSHWFTASK"."TASKID" IS '主键';

CREATE OR REPLACE  INDEX "CRGS"."TSHWFTASK_CREATEDBYID_IDX" ON "CRGS"."TSHWFTASK"("CREATEDBYID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSHWFTASK_ACTUALOWNERID_IDX" ON "CRGS"."TSHWFTASK"("ACTUALOWNERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229121269885800" ON "CRGS"."TSHWFTASK"("TASKID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSHWFTASK_PROCESSID_IDX" ON "CRGS"."TSHWFTASK"("PROCESSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TSOPINION"
(
"OPINIONID" VARCHAR(36) NOT NULL,
"WORKFLOWID" VARCHAR(36),
"OPINIONTYPE" VARCHAR(1),
"HANDLER" VARCHAR(40),
"HANDLERID" VARCHAR(36),
"OPINIONCONTENT" TEXT,
"HANDLEDATE" TIMESTAMP(0),
"TRIALDATE" DATE,
"ISAGREE" VARCHAR(1),
"AREA_CODE" VARCHAR(6) NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("OPINIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."TSOPINION" IS '监管共用审批意见表';
COMMENT ON COLUMN "CRGS"."TSOPINION"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "CRGS"."TSOPINION"."HANDLEDATE" IS '承办时间';
COMMENT ON COLUMN "CRGS"."TSOPINION"."HANDLER" IS '承办人';
COMMENT ON COLUMN "CRGS"."TSOPINION"."HANDLERID" IS '承办人ID';
COMMENT ON COLUMN "CRGS"."TSOPINION"."ISAGREE" IS '是否同意';
COMMENT ON COLUMN "CRGS"."TSOPINION"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "CRGS"."TSOPINION"."OPINIONCONTENT" IS '审批意见';
COMMENT ON COLUMN "CRGS"."TSOPINION"."OPINIONID" IS '意见编号';
COMMENT ON COLUMN "CRGS"."TSOPINION"."OPINIONTYPE" IS '意见类型(审批部门)';
COMMENT ON COLUMN "CRGS"."TSOPINION"."TRIALDATE" IS '送审(退卷)日期';
COMMENT ON COLUMN "CRGS"."TSOPINION"."WORKFLOWID" IS '待办表id';

CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229120853160600" ON "CRGS"."TSOPINION"("OPINIONID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSOPINION_WORKFLOWID_IDX" ON "CRGS"."TSOPINION"("WORKFLOWID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TSTASKLIST"
(
"TASKLISTID" VARCHAR(36) DEFAULT '440400' NOT NULL,
"WORKFLOWID" VARCHAR(36),
"BIZSEQID" VARCHAR(36),
"SIGNUSERID" VARCHAR(36),
"SENDERORGID" VARCHAR(36),
"SENDERUSERID" VARCHAR(36),
"SENDTOORGID" VARCHAR(36),
"ACCEPTNO" VARCHAR(17),
"BUSNAME" VARCHAR(200),
"SIGNTIME" DATE,
"BUSTYPE" VARCHAR(2),
"BUSSTATUS" VARCHAR(4),
"LINKNAME" VARCHAR(50),
"AUDITDEPTTYPE" VARCHAR(2),
"ISSIGNON" VARCHAR(1),
"SIGNLOGINNAME" VARCHAR(30),
"SENDERTIME" DATE,
"SENDERNAME" VARCHAR(30),
"ACCEPTGROUPID" VARCHAR(255),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("TASKLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."TSTASKLIST" IS '待办列表';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."ACCEPTGROUPID" IS '接受组';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."ACCEPTNO" IS '受理号';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."AUDITDEPTTYPE" IS '当前审核部门';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."BIZSEQID" IS '业务主键';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."BUSNAME" IS '业务名称';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."BUSSTATUS" IS '业务状态';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."BUSTYPE" IS '业务类型';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."ISSIGNON" IS '是否签收';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."LINKNAME" IS '流程名称';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."SENDERNAME" IS '发送者中文名';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."SENDERORGID" IS '发送机构ID';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."SENDERTIME" IS '发送时间';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."SENDERUSERID" IS '发送者ID';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."SENDTOORGID" IS '发送到达机构ID';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."SIGNLOGINNAME" IS '签收者登入名';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."SIGNTIME" IS '签收/受理时间';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."SIGNUSERID" IS '签收者ID';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."TASKLISTID" IS '待办主键';
COMMENT ON COLUMN "CRGS"."TSTASKLIST"."WORKFLOWID" IS '流程主键';

CREATE OR REPLACE  INDEX "CRGS"."TSTASKLIST_SENDERUSERID_IDX" ON "CRGS"."TSTASKLIST"("SENDERUSERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSTASKLIST_WORKFLOWID_IDX" ON "CRGS"."TSTASKLIST"("WORKFLOWID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSTASKLIST_BIZSEQID_IDX" ON "CRGS"."TSTASKLIST"("BIZSEQID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSTASKLIST_SIGNUSERID_IDX" ON "CRGS"."TSTASKLIST"("SIGNUSERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSTASKLIST_SENDERORGID_IDX" ON "CRGS"."TSTASKLIST"("SENDERORGID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229120176322700" ON "CRGS"."TSTASKLIST"("TASKLISTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSTASKLIST_SENDTOORGID_IDX" ON "CRGS"."TSTASKLIST"("SENDTOORGID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TSTWFPROCESS"
(
"PROCESSID" VARCHAR(36) NOT NULL,
"PARENTPROCESSID" VARCHAR(36),
"COMPLETEDON" DATE,
"CREATEDON" DATE,
"STATUS" INT,
"OPTLOCK" INT,
"DEFNAME" VARCHAR(50),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"INDEPENDENT" INT,
NOT CLUSTER PRIMARY KEY("PROCESSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."TSTWFPROCESS" IS '流程实例';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESS"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESS"."COMPLETEDON" IS '完成时间';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESS"."CREATEDON" IS '启动时间';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESS"."DEFNAME" IS '流程名';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESS"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESS"."OPTLOCK" IS '版本标识';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESS"."PARENTPROCESSID" IS ' 父实例ID';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESS"."PROCESSID" IS '主键';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESS"."STATUS" IS '状态';

CREATE OR REPLACE  INDEX "CRGS"."TSTWFPROCESS_PARENTPROCESSID_IDX" ON "CRGS"."TSTWFPROCESS"("PARENTPROCESSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229119472352000" ON "CRGS"."TSTWFPROCESS"("PROCESSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TSTWFPROCESSNODE"
(
"PROCESSNODEID" VARCHAR(36) NOT NULL,
"PROCESSID" VARCHAR(36),
"CREATEDON" DATE,
"CURRENTNODE" VARCHAR(255),
"NODEFLOW" VARCHAR(255),
"STATUS" INT,
"OPTLOCK" INT,
"CURRUSERID" VARCHAR(255),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
NOT CLUSTER PRIMARY KEY("PROCESSNODEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."TSTWFPROCESSNODE" IS '流程实例节点';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESSNODE"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESSNODE"."CREATEDON" IS '创建时间';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESSNODE"."CURRENTNODE" IS '当前节点';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESSNODE"."CURRUSERID" IS '当前用户ID';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESSNODE"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESSNODE"."NODEFLOW" IS '节点流向';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESSNODE"."OPTLOCK" IS '版本标识';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESSNODE"."PROCESSID" IS '主键';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESSNODE"."PROCESSNODEID" IS '主键';
COMMENT ON COLUMN "CRGS"."TSTWFPROCESSNODE"."STATUS" IS '节点状态';

CREATE OR REPLACE  INDEX "CRGS"."TSTWFPROCESSNODE_STATUS_IDX" ON "CRGS"."TSTWFPROCESSNODE"("STATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSTWFPROCESSNODE_CREATEDON_IDX" ON "CRGS"."TSTWFPROCESSNODE"("CREATEDON" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSTWFPROCESSNODE_CURRENTNODE_IDX" ON "CRGS"."TSTWFPROCESSNODE"("CURRENTNODE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSTWFPROCESSNODE_PROCESSID_IDX" ON "CRGS"."TSTWFPROCESSNODE"("PROCESSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229119094836800" ON "CRGS"."TSTWFPROCESSNODE"("PROCESSNODEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSTWFPROCESSNODE_CURRUSERID_IDX" ON "CRGS"."TSTWFPROCESSNODE"("CURRUSERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."TSTWFTASK"
(
"TASKID" VARCHAR(36) NOT NULL,
"PROCESSID" VARCHAR(36),
"STATUS" INT,
"COMPLETEDON" DATE,
"CREATEDON" DATE,
"ACTUALOWNERID" VARCHAR(36),
"CREATEDBYID" VARCHAR(36),
"OPTLOCK" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
NOT CLUSTER PRIMARY KEY("TASKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."TSTWFTASK" IS '工作流任务表';
COMMENT ON COLUMN "CRGS"."TSTWFTASK"."ACTUALOWNERID" IS '签收者ID';
COMMENT ON COLUMN "CRGS"."TSTWFTASK"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "CRGS"."TSTWFTASK"."COMPLETEDON" IS '完成时间';
COMMENT ON COLUMN "CRGS"."TSTWFTASK"."CREATEDBYID" IS '创建者ID';
COMMENT ON COLUMN "CRGS"."TSTWFTASK"."CREATEDON" IS '创建时间';
COMMENT ON COLUMN "CRGS"."TSTWFTASK"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "CRGS"."TSTWFTASK"."OPTLOCK" IS '版本标识';
COMMENT ON COLUMN "CRGS"."TSTWFTASK"."PROCESSID" IS '主键';
COMMENT ON COLUMN "CRGS"."TSTWFTASK"."STATUS" IS '状态';
COMMENT ON COLUMN "CRGS"."TSTWFTASK"."TASKID" IS '主键';

CREATE OR REPLACE  INDEX "CRGS"."TSTWFTASK_ACTUALOWNERID_IDX" ON "CRGS"."TSTWFTASK"("ACTUALOWNERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229118536443800" ON "CRGS"."TSTWFTASK"("TASKID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSTWFTASK_PROCESSID_IDX" ON "CRGS"."TSTWFTASK"("PROCESSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "CRGS"."TSTWFTASK_CREATEDBYID_IDX" ON "CRGS"."TSTWFTASK"("CREATEDBYID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."USER_CUSTOM_MENU"
(
"ID" VARCHAR(40) NOT NULL,
"USER_ID" VARCHAR(40) NOT NULL,
"MENU_JSON" VARCHAR(500) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "CRGS"."USER_CUSTOM_MENU" IS '用户自定义菜单（应用定制）';
COMMENT ON COLUMN "CRGS"."USER_CUSTOM_MENU"."MENU_JSON" IS '自定义菜单json数据';
COMMENT ON COLUMN "CRGS"."USER_CUSTOM_MENU"."USER_ID" IS '用户id';

CREATE OR REPLACE  INDEX "CRGS"."USER_CUSTOM_MENU_USER_ID_IDX" ON "CRGS"."USER_CUSTOM_MENU"("USER_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "CRGS"."INDEX7229117430935400" ON "CRGS"."USER_CUSTOM_MENU"("ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "CRGS"."VA_PRO_LIST"
(
"ID" INTEGER NOT NULL,
"ENTNAME" VARCHAR(100),
"UNISCID" VARCHAR(18),
"LICNO" VARCHAR(200),
"VALDATE" VARCHAR(50),
"PROVINCE" VARCHAR(32),
"MTC_UNISCID" VARCHAR(18),
"MTC_ENTNAME" VARCHAR(100),
"MTC_NODENUM" VARCHAR(6),
"ETLCREATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLUPDATE" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ETLSTATUS" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


