CREATE TABLE "AICCS"."ABN_STATISTICS"
(
"STATID" VARCHAR(100) NOT NULL,
"XZQH" VARCHAR(200),
"ENTTYPE" VARCHAR(100),
"STATDATE" VARCHAR(100),
"TYPE1" INT,
"TYPE2" INT,
"TYPE3" INT,
"TYPE4" INT,
"TYPE5" INT,
"TYPE6" INT,
"TYPE7" INT,
"TYPE8" INT,
"TYPE9" INT,
"TYPE10" INT,
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP(),
CONSTRAINT "CONSABN_STATISTICS" NOT CLUSTER PRIMARY KEY("STATID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "AICCS"."INDEXABN_STATISTICS_STATID" ON "AICCS"."ABN_STATISTICS"("STATID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."ABNSERSMSLOG"
(
"ABNSERSMSID" VARCHAR(36) NOT NULL,
"USERNAME" VARCHAR(100),
"BIZSEQ" VARCHAR(36),
"ABNSERID" VARCHAR(36),
"HOST" VARCHAR(50),
"CONTENT" VARCHAR(1000),
"PHONES" VARCHAR(20),
"STATUS" VARCHAR(20),
"BACKINFO" VARCHAR(1000),
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP(),
CONSTRAINT "CONSABNSERSMSLOG" NOT CLUSTER PRIMARY KEY("ABNSERSMSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "AICCS"."INDEXABNSERSMSLOG" ON "AICCS"."ABNSERSMSLOG"("ABNSERSMSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."ADDRESS_ASSIGN"
(
"ID" VARCHAR(100) NOT NULL,
"ADDRESS" VARCHAR(200),
"ORG_NUMBER" VARCHAR(40),
"TYPE" VARCHAR(1),
"OPERATOR" VARCHAR(200),
"INSERT_TIME" TIMESTAMP(0),
"STATE" VARCHAR(1),
"REM_OPERATOR" VARCHAR(200),
"REM_TIME" VARCHAR(200),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_ALTERSTOCKINFODATA"
(
"INVALTID" VARCHAR2(50),
"ANCHEID" VARCHAR2(50),
"INV" VARCHAR2(100),
"TRANSAMPR" NUMBER(7,4),
"TRANSAMAFT" NUMBER(7,4),
"ALTDATE" DATE,
"S_EXT_FROMNODE" VARCHAR2(6)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_BASEINFODATA"
(
"ANCHEID" VARCHAR2(50),
"PRIPID" VARCHAR2(36),
"ANCHEDATE" DATE,
"ANCHEYEAR" VARCHAR2(8),
"REGNO" VARCHAR2(50),
"UNISCID" VARCHAR2(50),
"ENTNAME" VARCHAR2(100),
"ENTTYPE" VARCHAR2(64),
"TEL" VARCHAR2(30),
"ADDR" VARCHAR2(512),
"POSTALCODE" VARCHAR2(12),
"EMAIL" VARCHAR2(100),
"BUSST" VARCHAR2(2),
"BUSST_CN" VARCHAR2(18),
"EMPNUM" NUMBER(12,0),
"EMPNUMDIS" VARCHAR2(2),
"ANTYPE" VARCHAR2(6),
"COLGRANUM" NUMBER(12,0),
"COLEMPLNUM" NUMBER(12,0),
"RETSOLNUM" NUMBER(12,0),
"RETEMPLNUM" NUMBER(12,0),
"DISPERNUM" NUMBER(12,0),
"DISEMPLNUM" NUMBER(12,0),
"UNENUM" NUMBER(12,0),
"UNEEMPLNUM" NUMBER(12,0),
"DEPENDENTENTNAME" VARCHAR2(100),
"ASSGRO" NUMBER(24,6),
"ASSGRODIS" VARCHAR2(2),
"LIAGRO" NUMBER(24,6),
"LIAGRODIS" VARCHAR2(2),
"VENDINC" NUMBER(24,6),
"VENDINCDIS" VARCHAR2(2),
"MAIBUSINC" NUMBER(24,6),
"MAIBUSINCDIS" VARCHAR2(2),
"PROGRO" NUMBER(24,6),
"PROGRODIS" VARCHAR2(2),
"NETINC" NUMBER(24,6),
"NETINCDIS" VARCHAR2(2),
"RATGRO" NUMBER(24,6),
"RATGRODIS" VARCHAR2(2),
"TOTEQU" NUMBER(24,6),
"TOTEQUDIS" VARCHAR2(2),
"NUMPARM" NUMBER(12,0),
"PARINS" VARCHAR2(2),
"PARINS_CN" VARCHAR2(16),
"RESPARMSIGN" VARCHAR2(2),
"RESPARSECSIGN" VARCHAR2(2),
"LASTUPDATETIME" DATE) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_CHECK_FAIL_INFO"
(
"ID" VARCHAR2(50) NOT NULL,
"ANNUAL_SELF_CHECK_REPORT_ID" VARCHAR2(50),
"INSPECTION_UNIT" VARCHAR2(100),
"INSPECTION_DATE" DATE,
"PRODUCT_NAME" VARCHAR2(100),
"BATCH_NUMBER" VARCHAR2(100),
"CHECK_TYPE" VARCHAR2(100),
"IS_QUALIFIED" INTEGER,
"NON_QUALIFIED_REASON" VARCHAR2(512),
"FLG_DELETED" INTEGER DEFAULT 0,
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"S_EXT_FROMNODE" VARCHAR2(6) DEFAULT '440100',
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ISSYNC" VARCHAR2(2) DEFAULT 'wA',
"IP" VARCHAR2(100),
"ON_AICCIPS" VARCHAR2(2) DEFAULT 'y',
"DSTATE" VARCHAR2(1) DEFAULT '0',
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."ANNUAL_SELF_CHECK_REPORT_ID" IS '年度自查报告ID';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."BATCH_NUMBER" IS '批号';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."CHECK_TYPE" IS '检验类别';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."DSTATE" IS '数据状态（0：插入；1：更新；2：删除）';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."FLG_DELETED" IS '状态（0、正常，1、删除）';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."INSPECTION_DATE" IS '检查日期';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."INSPECTION_UNIT" IS '检查单位';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."IP" IS '报送的IP';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."IS_QUALIFIED" IS '是否合格（1、是，0、否）';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."ISSYNC" IS '同步标识（wA表示未同步，wB 表示已同步到省局，wC 表示从省局同步回来）';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."NON_QUALIFIED_REASON" IS '不合格原因说明';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."ON_AICCIPS" IS '区分内外网填报（n：内网不公示，y：外网填报公示），n表示已经提交纸质年报，w企业选择不公示，m 手工制造的年报';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "AICCS"."AN_CHECK_FAIL_INFO_ANCHEID_IDX" ON "AICCS"."AN_CHECK_FAIL_INFO"("ANNUAL_SELF_CHECK_REPORT_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AN_CHECK_FAIL_INFO_SEXTDATATIME_IDX" ON "AICCS"."AN_CHECK_FAIL_INFO"("S_EXT_DATATIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_CHECK_FAIL_INFO_TEMP"
(
"ID" VARCHAR2(50) NOT NULL,
"ANNUAL_SELF_CHECK_REPORT_ID" VARCHAR2(50),
"INSPECTION_UNIT" VARCHAR2(100),
"INSPECTION_DATE" DATE,
"PRODUCT_NAME" VARCHAR2(100),
"BATCH_NUMBER" VARCHAR2(100),
"CHECK_TYPE" VARCHAR2(100),
"IS_QUALIFIED" INTEGER,
"NON_QUALIFIED_REASON" VARCHAR2(512),
"FLG_DELETED" INTEGER DEFAULT 0,
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"S_EXT_FROMNODE" VARCHAR2(6) DEFAULT '440100',
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ISSYNC" VARCHAR2(2) DEFAULT 'wA',
"IP" VARCHAR2(100),
"ON_AICCIPS" VARCHAR2(2) DEFAULT 'y',
"DSTATE" VARCHAR2(1) DEFAULT '0',
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."ANNUAL_SELF_CHECK_REPORT_ID" IS '年度自查报告ID';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."BATCH_NUMBER" IS '批号';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."CHECK_TYPE" IS '检验类别';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."DSTATE" IS '数据状态（0：插入；1：更新；2：删除）';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."FLG_DELETED" IS '状态（0、正常，1、删除）';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."INSPECTION_DATE" IS '检查日期';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."INSPECTION_UNIT" IS '检查单位';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."IP" IS '报送的IP';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."IS_QUALIFIED" IS '是否合格（1、是，0、否）';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."ISSYNC" IS '同步标识（wA表示未同步，wB 表示已同步到省局，wC 表示从省局同步回来）';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."NON_QUALIFIED_REASON" IS '不合格原因说明';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."ON_AICCIPS" IS '区分内外网填报（n：内网不公示，y：外网填报公示），n表示已经提交纸质年报，w企业选择不公示，m 手工制造的年报';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICCS"."AN_CHECK_FAIL_INFO_TEMP"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "AICCS"."AN_CHECK_FAIL_INFO_TEMP_ANCHEID_IDX" ON "AICCS"."AN_CHECK_FAIL_INFO_TEMP"("ANNUAL_SELF_CHECK_REPORT_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AN_CHECK_FAIL_INFO_TEMP_SEXTDATATIME_IDX" ON "AICCS"."AN_CHECK_FAIL_INFO_TEMP"("S_EXT_DATATIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_FAIL_IMPROVE_INFO"
(
"ID" VARCHAR2(50) NOT NULL,
"ANNUAL_SELF_CHECK_REPORT_ID" VARCHAR2(50),
"NON_CONFORMANDCE_ITEM" VARCHAR2(200),
"NATURE" VARCHAR2(50),
"IMPROVEMENT_STATUS" VARCHAR2(512),
"IMPROVEMENT_MATERIALS" VARCHAR2(512),
"FLG_DELETED" INTEGER DEFAULT 0,
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"S_EXT_FROMNODE" VARCHAR2(6) DEFAULT '440100',
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ISSYNC" VARCHAR2(2) DEFAULT 'wA',
"IP" VARCHAR2(100),
"ON_AICCIPS" VARCHAR2(2) DEFAULT 'y',
"DSTATE" VARCHAR2(1) DEFAULT '0',
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."ANNUAL_SELF_CHECK_REPORT_ID" IS '年度自查报告ID';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."DSTATE" IS '数据状态（0：插入；1：更新；2：删除）';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."FLG_DELETED" IS '状态（0、正常，1、删除）';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."IMPROVEMENT_MATERIALS" IS '不符合项改进验证情况及相关证明材料';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."IMPROVEMENT_STATUS" IS '不符合项改进情况';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."IP" IS '报送的IP';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."ISSYNC" IS '同步标识（wA表示未同步，wB 表示已同步到省局，wC 表示从省局同步回来）';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."NATURE" IS '性质';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."NON_CONFORMANDCE_ITEM" IS '不符合项内容';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."ON_AICCIPS" IS '区分内外网填报（n：内网不公示，y：外网填报公示），n表示已经提交纸质年报，w企业选择不公示，m 手工制造的年报';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "AICCS"."AN_FAIL_IMPROVE_INFO_ANCHEID_IDX" ON "AICCS"."AN_FAIL_IMPROVE_INFO"("ANNUAL_SELF_CHECK_REPORT_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AN_FAIL_IMPROVE_INFO_SEXTDATATIME_IDX" ON "AICCS"."AN_FAIL_IMPROVE_INFO"("S_EXT_DATATIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"
(
"ID" VARCHAR2(50) NOT NULL,
"ANNUAL_SELF_CHECK_REPORT_ID" VARCHAR2(50),
"NON_CONFORMANDCE_ITEM" VARCHAR2(200),
"NATURE" VARCHAR2(50),
"IMPROVEMENT_STATUS" VARCHAR2(512),
"IMPROVEMENT_MATERIALS" VARCHAR2(512),
"FLG_DELETED" INTEGER DEFAULT 0,
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"S_EXT_FROMNODE" VARCHAR2(6) DEFAULT '440100',
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ISSYNC" VARCHAR2(2) DEFAULT 'wA',
"IP" VARCHAR2(100),
"ON_AICCIPS" VARCHAR2(2) DEFAULT 'y',
"DSTATE" VARCHAR2(1) DEFAULT '0',
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."ANNUAL_SELF_CHECK_REPORT_ID" IS '年度自查报告ID';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."DSTATE" IS '数据状态（0：插入；1：更新；2：删除）';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."FLG_DELETED" IS '状态（0、正常，1、删除）';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."IMPROVEMENT_MATERIALS" IS '不符合项改进验证情况及相关证明材料';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."IMPROVEMENT_STATUS" IS '不符合项改进情况';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."IP" IS '报送的IP';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."ISSYNC" IS '同步标识（wA表示未同步，wB 表示已同步到省局，wC 表示从省局同步回来）';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."NATURE" IS '性质';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."NON_CONFORMANDCE_ITEM" IS '不符合项内容';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."ON_AICCIPS" IS '区分内外网填报（n：内网不公示，y：外网填报公示），n表示已经提交纸质年报，w企业选择不公示，m 手工制造的年报';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP_ANCHEID_IDX" ON "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"("ANNUAL_SELF_CHECK_REPORT_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP_SEXTDATATIME_IDX" ON "AICCS"."AN_FAIL_IMPROVE_INFO_TEMP"("S_EXT_DATATIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_FORGUARANTEEINFODATA"
(
"MOREID" VARCHAR2(50),
"ANCHEID" VARCHAR2(50),
"MORE" VARCHAR2(512),
"MORTGAGOR" VARCHAR2(512),
"PRICLASECKIND" VARCHAR2(2),
"PRICLASECAM" NUMBER(24,6),
"PEFPERFORM" DATE,
"PEFPERTO" DATE,
"GUARANPERIOD" VARCHAR2(2),
"MOREDIS" VARCHAR2(2),
"GATYPE" VARCHAR2(2)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_FORINVESTMENTDATA"
(
"OUTINVID" VARCHAR2(50),
"ANCHEID" VARCHAR2(50),
"ENTNAME" VARCHAR2(200),
"UNISCID" VARCHAR2(200)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_INDUSTRY_PROD_CATALOG"
(
"ANCHEID" VARCHAR2(50) NOT NULL,
"COMPANY_NAME" VARCHAR2(100),
"SOCIAL_CREDIT_CODE" VARCHAR2(50),
"COMPANY_TYPE" VARCHAR2(20),
"COMPANY_AREA" VARCHAR2(50),
"PRODUCT_TYPE_CODE_NAME" VARCHAR2(10),
"BUSINESS_PRODUCT_TYPE" VARCHAR2(32),
"BUSINESS_MODE" INTEGER,
"SELL_METHOD" VARCHAR2(20),
"ANCHEYEAR" VARCHAR2(8),
"LASTUPDATETIME" DATE,
"S_EXT_FROMNODE" VARCHAR2(6) DEFAULT '440100',
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ISSYNC" VARCHAR2(2) DEFAULT 'wA',
"IP" VARCHAR2(100),
"ON_AICCIPS" VARCHAR2(2) DEFAULT 'y',
"DSTATE" VARCHAR2(1) DEFAULT '0',
CLUSTER PRIMARY KEY("ANCHEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."ANCHEID" IS '主键';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."ANCHEYEAR" IS '年报年度';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."BUSINESS_MODE" IS '经营方式（1、批发，2、零售（单选，企业类型为销售单位时，才出现该字段填写，为必填））';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."BUSINESS_PRODUCT_TYPE" IS '经营产品目录';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."COMPANY_AREA" IS '所属地区';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."COMPANY_NAME" IS '企业名称';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."COMPANY_TYPE" IS '企业类型（1、生产单位，2、销售单位（单选））';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."DSTATE" IS '数据状态（0：插入；1：更新；2：删除）';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."IP" IS '报送的IP';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."ISSYNC" IS '同步标识（wA表示未同步，wB 表示已同步到省局，wC 表示从省局同步回来）';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."LASTUPDATETIME" IS '最后一次修改时间';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."ON_AICCIPS" IS '区分内外网填报（n：内网不公示，y：外网填报公示），n表示已经提交纸质年报，w企业选择不公示，m 手工制造的年报';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."PRODUCT_TYPE_CODE_NAME" IS '经营产品类别（1：实施工业产品生产许可证管理的产品，2：实施强制性产品认证（CCC认证）管理的产品；3：涉及人身健康和生命财产安全并有强制性国家标准要求的产品；4：其他产品（可复选，以半角逗号分隔））';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."SELL_METHOD" IS '销售方式（1、销售，2、加工，3、修理，4、安装，5、装饰装修，6、线上（可复选，以半角逗号分隔，企业类型为销售单位时，才出现该字段填写，为必填））';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG"."SOCIAL_CREDIT_CODE" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "AICCS"."AN_INDUSTRY_PROD_CATALOG_S_EXT_DATATTIME_IDX" ON "AICCS"."AN_INDUSTRY_PROD_CATALOG"("S_EXT_DATATIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"
(
"ANCHEID" VARCHAR2(50) NOT NULL,
"COMPANY_NAME" VARCHAR2(100),
"SOCIAL_CREDIT_CODE" VARCHAR2(50),
"COMPANY_TYPE" VARCHAR2(20),
"COMPANY_AREA" VARCHAR2(50),
"PRODUCT_TYPE_CODE_NAME" VARCHAR2(10),
"BUSINESS_PRODUCT_TYPE" VARCHAR2(32),
"BUSINESS_MODE" INTEGER,
"SELL_METHOD" VARCHAR2(20),
"ANCHEYEAR" VARCHAR2(8),
"LASTUPDATETIME" DATE,
"S_EXT_FROMNODE" VARCHAR2(6) DEFAULT '440100',
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ISSYNC" VARCHAR2(2) DEFAULT 'wA',
"IP" VARCHAR2(100),
"ON_AICCIPS" VARCHAR2(2) DEFAULT 'y',
"DSTATE" VARCHAR2(1) DEFAULT '0',
CLUSTER PRIMARY KEY("ANCHEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."ANCHEID" IS '主键';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."ANCHEYEAR" IS '年报年度';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."BUSINESS_MODE" IS '经营方式（1、批发，2、零售（单选，企业类型为销售单位时，才出现该字段填写，为必填））';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."BUSINESS_PRODUCT_TYPE" IS '经营产品目录';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."COMPANY_AREA" IS '所属地区';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."COMPANY_NAME" IS '企业名称';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."COMPANY_TYPE" IS '企业类型（1、生产单位，2、销售单位（单选））';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."DSTATE" IS '数据状态（0：插入；1：更新；2：删除）';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."IP" IS '报送的IP';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."ISSYNC" IS '同步标识（wA表示未同步，wB 表示已同步到省局，wC 表示从省局同步回来）';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."LASTUPDATETIME" IS '最后一次修改时间';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."ON_AICCIPS" IS '区分内外网填报（n：内网不公示，y：外网填报公示），n表示已经提交纸质年报，w企业选择不公示，m 手工制造的年报';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."PRODUCT_TYPE_CODE_NAME" IS '经营产品类别（1：实施工业产品生产许可证管理的产品，2：实施强制性产品认证（CCC认证）管理的产品；3：涉及人身健康和生命财产安全并有强制性国家标准要求的产品；4：其他产品（可复选，以半角逗号分隔））';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."SELL_METHOD" IS '销售方式（1、销售，2、加工，3、修理，4、安装，5、装饰装修，6、线上（可复选，以半角逗号分隔，企业类型为销售单位时，才出现该字段填写，为必填））';
COMMENT ON COLUMN "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"."SOCIAL_CREDIT_CODE" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP_S_EXT_DATATTIME_IDX" ON "AICCS"."AN_INDUSTRY_PROD_CATALOG_TEMP"("S_EXT_DATATIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_MODIFY_PERMIT"
(
"ID" VARCHAR(32) NOT NULL,
"UNISCID" VARCHAR(18),
"ANCHEYEAR" VARCHAR(8),
"BEGIN_TIME" TIMESTAMP(6),
"END_TIME" TIMESTAMP(6),
"ALLOW_TIME" INTEGER DEFAULT 1,
"ISYNC" VARCHAR(8) DEFAULT 'wA',
"UPDATE_TIME" timestamp(6),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."AN_MODIFY_PERMIT" IS '年报修改许可';
COMMENT ON COLUMN "AICCS"."AN_MODIFY_PERMIT"."ALLOW_TIME" IS '允许次数';
COMMENT ON COLUMN "AICCS"."AN_MODIFY_PERMIT"."ANCHEYEAR" IS '年报年';
COMMENT ON COLUMN "AICCS"."AN_MODIFY_PERMIT"."BEGIN_TIME" IS '开始时间';
COMMENT ON COLUMN "AICCS"."AN_MODIFY_PERMIT"."END_TIME" IS '结束时间';
COMMENT ON COLUMN "AICCS"."AN_MODIFY_PERMIT"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."AN_MODIFY_PERMIT"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "AICCS"."AN_MODIFY_PERMIT_UNISCID_IDX" ON "AICCS"."AN_MODIFY_PERMIT"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_SELF_INSPECTION_ITEM"
(
"ID" VARCHAR2(50) NOT NULL,
"ANNUAL_SELF_CHECK_REPORT_ID" VARCHAR2(50),
"CHECK_ITEM_NO" VARCHAR2(20),
"CHECK_ITEM_CODE" VARCHAR2(50),
"CHECK_ITEM" VARCHAR2(200),
"CHECK_RESULT" INTEGER,
"CHECK_DESCRIPTION" VARCHAR2(512),
"REMARK" VARCHAR2(1024),
"FLG_DELETED" INTEGER DEFAULT 0,
"UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"S_EXT_FROMNODE" VARCHAR2(6) DEFAULT '440100',
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ISSYNC" VARCHAR2(2) DEFAULT 'wA',
"IP" VARCHAR2(100),
"ON_AICCIPS" VARCHAR2(2) DEFAULT 'y',
"DSTATE" VARCHAR2(1) DEFAULT '0',
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."ANNUAL_SELF_CHECK_REPORT_ID" IS '年度自查报告ID';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."CHECK_DESCRIPTION" IS '自查情况说明';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."CHECK_ITEM" IS '自查项目';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."CHECK_ITEM_CODE" IS '自查项目代码';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."CHECK_ITEM_NO" IS '自查项目条款号';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."CHECK_RESULT" IS '自查记录';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."DSTATE" IS '数据状态（0：插入；1：更新；2：删除）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."FLG_DELETED" IS '状态（0、正常，1、删除）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."IP" IS '报送的IP';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."ISSYNC" IS '同步标识（wA表示未同步，wB 表示已同步到省局，wC 表示从省局同步回来）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."ON_AICCIPS" IS '区分内外网填报（n：内网不公示，y：外网填报公示），n表示已经提交纸质年报，w企业选择不公示，m 手工制造的年报';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."REMARK" IS '备注';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "AICCS"."AN_SELF_INSPECTION_ITEM_ANCHEID_IDX" ON "AICCS"."AN_SELF_INSPECTION_ITEM"("ANNUAL_SELF_CHECK_REPORT_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AN_SELF_INSPECTION_ITEM_SEXTDATATIME_IDX" ON "AICCS"."AN_SELF_INSPECTION_ITEM"("S_EXT_DATATIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"
(
"ID" VARCHAR2(50) NOT NULL,
"ANNUAL_SELF_CHECK_REPORT_ID" VARCHAR2(50),
"CHECK_ITEM_NO" VARCHAR2(20),
"CHECK_ITEM_CODE" VARCHAR2(50),
"CHECK_ITEM" VARCHAR2(200),
"CHECK_RESULT" INTEGER,
"CHECK_DESCRIPTION" VARCHAR2(512),
"REMARK" VARCHAR2(1024),
"FLG_DELETED" INTEGER DEFAULT 0,
"UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"S_EXT_FROMNODE" VARCHAR2(6) DEFAULT '440100',
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ISSYNC" VARCHAR2(2) DEFAULT 'wA',
"IP" VARCHAR2(100),
"ON_AICCIPS" VARCHAR2(2) DEFAULT 'y',
"DSTATE" VARCHAR2(1) DEFAULT '0',
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."ANNUAL_SELF_CHECK_REPORT_ID" IS '年度自查报告ID';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."CHECK_DESCRIPTION" IS '自查情况说明';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."CHECK_ITEM" IS '自查项目';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."CHECK_ITEM_CODE" IS '自查项目代码';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."CHECK_ITEM_NO" IS '自查项目条款号';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."CHECK_RESULT" IS '自查记录';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."DSTATE" IS '数据状态（0：插入；1：更新；2：删除）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."FLG_DELETED" IS '状态（0、正常，1、删除）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."IP" IS '报送的IP';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."ISSYNC" IS '同步标识（wA表示未同步，wB 表示已同步到省局，wC 表示从省局同步回来）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."ON_AICCIPS" IS '区分内外网填报（n：内网不公示，y：外网填报公示），n表示已经提交纸质年报，w企业选择不公示，m 手工制造的年报';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."REMARK" IS '备注';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP_SEXTDATATIME_IDX" ON "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"("S_EXT_DATATIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP_ANCHEID_IDX" ON "AICCS"."AN_SELF_INSPECTION_ITEM_TEMP"("ANNUAL_SELF_CHECK_REPORT_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_SELF_INSPECTION_REPORT"
(
"ID" VARCHAR2(50) NOT NULL,
"ANCHEID" VARCHAR2(50),
"PRODUCTION_ADDRESS" VARCHAR2(200),
"CONTACT_PERSON" VARCHAR2(50),
"CONTACT_PHONE" VARCHAR2(50),
"LICENSE_CODE" VARCHAR2(50),
"PRODUCT_TYPE" VARCHAR2(100),
"PRODUCT_NAME" VARCHAR2(100),
"PRODUCT_UNIT" VARCHAR2(100),
"PRODUCT_CATALOG" VARCHAR2(100),
"CERTIFICATE_DATE" DATE,
"VALID_DATE" DATE,
"CERTIFIED_COMPANY_NAME" VARCHAR2(100),
"CURR_COMPANY_NAME" VARCHAR2(100),
"CERT_PRODUCTION_ADDRESS" VARCHAR2(512),
"CURR_COMPANY_ADDRESS" VARCHAR2(512),
"CERT_LEGAL_REP" VARCHAR2(100),
"CURR_LEGAL_REP" VARCHAR2(100),
"CERT_ECONOMIC_NATURE" VARCHAR2(50),
"CURR_ECONOMIC_NATURE" VARCHAR2(50),
"CERT_BUSINESS_LICENSE_NUM" VARCHAR2(50),
"CURR_BUSINESS_LICENSE_NUM" VARCHAR2(50),
"CERT_COMPANY_CODE" VARCHAR2(50),
"CURR_COMPANY_CODE" VARCHAR2(50),
"CERT_TOTAL_EMPLOYEES" INTEGER,
"CERT_TOTAL_EMPLOYEES_CHANGE" INTEGER,
"CURR_TOTAL_EMPLOYEES" INTEGER,
"CERT_TECH_STAFF_COUNT" INTEGER,
"CURR_TECH_STAFF_COUNT" INTEGER,
"CERT_LAND_AREA" DECIMAL(24,6),
"CURR_LAND_AREA" DECIMAL(24,6),
"CERT_BUILDING_AREA" DECIMAL(24,6),
"CURR_BUILDING_AREA" DECIMAL(24,6),
"CERT_FIXED_ASSETS" DECIMAL(24,6),
"CURR_FIXED_ASSETS" DECIMAL(24,6),
"CERT_CURR_FUNDS" DECIMAL(24,6),
"CURR_CURR_FUNDS" DECIMAL(24,6),
"ANNUAL_TOTAL_OUTPUT_VALUE" DECIMAL(24,6),
"ANNUAL_SALES_VOLUME" DECIMAL(24,6),
"ANNUAL_TAX_AMOUNT" DECIMAL(24,6),
"ANNUAL_PROFIT" DECIMAL(24,6),
"PROOF_MATERIALS" VARCHAR2(50),
"ANNUAL_SELF_INSPECT_REPORT" VARCHAR2(50),
"SELF_CHECK_START_DATE" DATE,
"SELF_CHECK_END_DATE" DATE,
"SELF_CHECK_NON_CONFORMANDCE" INTEGER,
"NON_CONFORMANDCE_COUNT" INTEGER,
"SELF_CHECK_CONCLUSION" VARCHAR2(1024),
"REMARK" VARCHAR2(1024),
"ANCHEYEAR" VARCHAR2(8),
"LASTUPDATETIME" DATE,
"S_EXT_FROMNODE" VARCHAR2(6) DEFAULT '440100',
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ISSYNC" VARCHAR2(2) DEFAULT 'wA',
"IP" VARCHAR2(100),
"ON_AICCIPS" VARCHAR2(2) DEFAULT 'y',
"DSTATE" VARCHAR2(1) DEFAULT '0',
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."ANCHEYEAR" IS '年报年度';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."ANNUAL_PROFIT" IS '年利润（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."ANNUAL_SALES_VOLUME" IS '年销售额（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."ANNUAL_SELF_INSPECT_REPORT" IS '年度自查报告';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."ANNUAL_TAX_AMOUNT" IS '年缴税金额（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."ANNUAL_TOTAL_OUTPUT_VALUE" IS '年总产值（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERT_BUILDING_AREA" IS '获证时建筑面积（单位：㎡）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERT_BUSINESS_LICENSE_NUM" IS '获证时营业执照编号';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERT_COMPANY_CODE" IS '获证时企业代码';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERT_CURR_FUNDS" IS '获证时流动资金（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERT_ECONOMIC_NATURE" IS '获证时经济性质';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERT_FIXED_ASSETS" IS '获证时固定资产（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERT_LAND_AREA" IS '获证时占地面积（单位：㎡）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERT_LEGAL_REP" IS '获证时法人代表';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERT_PRODUCTION_ADDRESS" IS '获证时企业生产场地地址';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERT_TECH_STAFF_COUNT" IS '获证时企业技术人员数';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERT_TOTAL_EMPLOYEES" IS '获证时企业总人数';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERT_TOTAL_EMPLOYEES_CHANGE" IS '获证时企业总人数变化值';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERTIFICATE_DATE" IS '发证日期';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CERTIFIED_COMPANY_NAME" IS '获证时企业名称';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CONTACT_PERSON" IS '联系人';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CONTACT_PHONE" IS '联系电话';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CURR_BUILDING_AREA" IS '现建筑面积（单位：㎡）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CURR_BUSINESS_LICENSE_NUM" IS '现营业执照编号';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CURR_COMPANY_ADDRESS" IS '现企业地址';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CURR_COMPANY_CODE" IS '现企业代码';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CURR_COMPANY_NAME" IS '现企业名称';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CURR_CURR_FUNDS" IS '现流动资金（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CURR_ECONOMIC_NATURE" IS '现经济性质';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CURR_FIXED_ASSETS" IS '现固定资产（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CURR_LAND_AREA" IS '现占地面积（单位：㎡）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CURR_LEGAL_REP" IS '现法人代表';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CURR_TECH_STAFF_COUNT" IS '现企业技术人员数';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."CURR_TOTAL_EMPLOYEES" IS '现企业总人数';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."DSTATE" IS '数据状态（0：插入；1：更新；2：删除）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."IP" IS '报送的IP';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."ISSYNC" IS '同步标识（wA表示未同步，wB 表示已同步到省局，wC 表示从省局同步回来）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."LASTUPDATETIME" IS '最后一次修改时间';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."LICENSE_CODE" IS '生产许可证编号';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."NON_CONFORMANDCE_COUNT" IS '自查不符合项数量';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."ON_AICCIPS" IS '区分内外网填报（n：内网不公示，y：外网填报公示），n表示已经提交纸质年报，w企业选择不公示，m 手工制造的年报';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."PRODUCT_CATALOG" IS '产品品种';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."PRODUCT_TYPE" IS '产品类别';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."PRODUCT_UNIT" IS '产品单元';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."PRODUCTION_ADDRESS" IS '生产地址';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."PROOF_MATERIALS" IS '证明材料';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."REMARK" IS '备注';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."SELF_CHECK_CONCLUSION" IS '自查结论';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."SELF_CHECK_END_DATE" IS '自查结束日期';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."SELF_CHECK_NON_CONFORMANDCE" IS '自查有无不符合项（1、有，0、无）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."SELF_CHECK_START_DATE" IS '自查开始日期';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT"."VALID_DATE" IS '证书有效期';

CREATE OR REPLACE  INDEX "AICCS"."AN_SELF_INSPECTION_REPORT_S_EXT_DATATIME_IDX" ON "AICCS"."AN_SELF_INSPECTION_REPORT"("S_EXT_DATATIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AN_SELF_INSPECTION_REPORT_ANCHEID_IDX" ON "AICCS"."AN_SELF_INSPECTION_REPORT"("ANCHEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"
(
"ID" VARCHAR2(50) NOT NULL,
"ANCHEID" VARCHAR2(50),
"PRODUCTION_ADDRESS" VARCHAR2(200),
"CONTACT_PERSON" VARCHAR2(50),
"CONTACT_PHONE" VARCHAR2(50),
"LICENSE_CODE" VARCHAR2(50),
"PRODUCT_TYPE" VARCHAR2(100),
"PRODUCT_NAME" VARCHAR2(100),
"PRODUCT_UNIT" VARCHAR2(100),
"PRODUCT_CATALOG" VARCHAR2(100),
"CERTIFICATE_DATE" DATE,
"VALID_DATE" DATE,
"CERTIFIED_COMPANY_NAME" VARCHAR2(100),
"CURR_COMPANY_NAME" VARCHAR2(100),
"CERT_PRODUCTION_ADDRESS" VARCHAR2(512),
"CURR_COMPANY_ADDRESS" VARCHAR2(512),
"CERT_LEGAL_REP" VARCHAR2(100),
"CURR_LEGAL_REP" VARCHAR2(100),
"CERT_ECONOMIC_NATURE" VARCHAR2(50),
"CURR_ECONOMIC_NATURE" VARCHAR2(50),
"CERT_BUSINESS_LICENSE_NUM" VARCHAR2(50),
"CURR_BUSINESS_LICENSE_NUM" VARCHAR2(50),
"CERT_COMPANY_CODE" VARCHAR2(50),
"CURR_COMPANY_CODE" VARCHAR2(50),
"CERT_TOTAL_EMPLOYEES" INTEGER,
"CERT_TOTAL_EMPLOYEES_CHANGE" INTEGER,
"CURR_TOTAL_EMPLOYEES" INTEGER,
"CERT_TECH_STAFF_COUNT" INTEGER,
"CURR_TECH_STAFF_COUNT" INTEGER,
"CERT_LAND_AREA" DECIMAL(24,6),
"CURR_LAND_AREA" DECIMAL(24,6),
"CERT_BUILDING_AREA" DECIMAL(24,6),
"CURR_BUILDING_AREA" DECIMAL(24,6),
"CERT_FIXED_ASSETS" DECIMAL(24,6),
"CURR_FIXED_ASSETS" DECIMAL(24,6),
"CERT_CURR_FUNDS" DECIMAL(24,6),
"CURR_CURR_FUNDS" DECIMAL(24,6),
"ANNUAL_TOTAL_OUTPUT_VALUE" DECIMAL(24,6),
"ANNUAL_SALES_VOLUME" DECIMAL(24,6),
"ANNUAL_TAX_AMOUNT" DECIMAL(24,6),
"ANNUAL_PROFIT" DECIMAL(24,6),
"PROOF_MATERIALS" VARCHAR2(50),
"ANNUAL_SELF_INSPECT_REPORT" VARCHAR2(50),
"SELF_CHECK_START_DATE" DATE,
"SELF_CHECK_END_DATE" DATE,
"SELF_CHECK_NON_CONFORMANDCE" INTEGER,
"NON_CONFORMANDCE_COUNT" INTEGER,
"SELF_CHECK_CONCLUSION" VARCHAR2(1024),
"REMARK" VARCHAR2(1024),
"ANCHEYEAR" VARCHAR2(8),
"LASTUPDATETIME" DATE,
"S_EXT_FROMNODE" VARCHAR2(6) DEFAULT '440100',
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ISSYNC" VARCHAR2(2) DEFAULT 'wA',
"IP" VARCHAR2(100),
"ON_AICCIPS" VARCHAR2(2) DEFAULT 'y',
"DSTATE" VARCHAR2(1) DEFAULT '0',
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."ANCHEYEAR" IS '年报年度';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."ANNUAL_PROFIT" IS '年利润（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."ANNUAL_SALES_VOLUME" IS '年销售额（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."ANNUAL_SELF_INSPECT_REPORT" IS '年度自查报告';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."ANNUAL_TAX_AMOUNT" IS '年缴税金额（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."ANNUAL_TOTAL_OUTPUT_VALUE" IS '年总产值（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERT_BUILDING_AREA" IS '获证时建筑面积（单位：㎡）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERT_BUSINESS_LICENSE_NUM" IS '获证时营业执照编号';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERT_COMPANY_CODE" IS '获证时企业代码';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERT_CURR_FUNDS" IS '获证时流动资金（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERT_ECONOMIC_NATURE" IS '获证时经济性质';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERT_FIXED_ASSETS" IS '获证时固定资产（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERT_LAND_AREA" IS '获证时占地面积（单位：㎡）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERT_LEGAL_REP" IS '获证时法人代表';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERT_PRODUCTION_ADDRESS" IS '获证时企业生产场地地址';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERT_TECH_STAFF_COUNT" IS '获证时企业技术人员数';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERT_TOTAL_EMPLOYEES" IS '获证时企业总人数';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERT_TOTAL_EMPLOYEES_CHANGE" IS '获证时企业总人数变化值';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERTIFICATE_DATE" IS '发证日期';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CERTIFIED_COMPANY_NAME" IS '获证时企业名称';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CONTACT_PERSON" IS '联系人';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CONTACT_PHONE" IS '联系电话';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CURR_BUILDING_AREA" IS '现建筑面积（单位：㎡）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CURR_BUSINESS_LICENSE_NUM" IS '现营业执照编号';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CURR_COMPANY_ADDRESS" IS '现企业地址';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CURR_COMPANY_CODE" IS '现企业代码';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CURR_COMPANY_NAME" IS '现企业名称';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CURR_CURR_FUNDS" IS '现流动资金（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CURR_ECONOMIC_NATURE" IS '现经济性质';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CURR_FIXED_ASSETS" IS '现固定资产（单位：万元）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CURR_LAND_AREA" IS '现占地面积（单位：㎡）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CURR_LEGAL_REP" IS '现法人代表';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CURR_TECH_STAFF_COUNT" IS '现企业技术人员数';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."CURR_TOTAL_EMPLOYEES" IS '现企业总人数';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."DSTATE" IS '数据状态（0：插入；1：更新；2：删除）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."IP" IS '报送的IP';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."ISSYNC" IS '同步标识（wA表示未同步，wB 表示已同步到省局，wC 表示从省局同步回来）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."LASTUPDATETIME" IS '最后一次修改时间';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."LICENSE_CODE" IS '生产许可证编号';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."NON_CONFORMANDCE_COUNT" IS '自查不符合项数量';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."ON_AICCIPS" IS '区分内外网填报（n：内网不公示，y：外网填报公示），n表示已经提交纸质年报，w企业选择不公示，m 手工制造的年报';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."PRODUCT_CATALOG" IS '产品品种';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."PRODUCT_NAME" IS '产品名称';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."PRODUCT_TYPE" IS '产品类别';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."PRODUCT_UNIT" IS '产品单元';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."PRODUCTION_ADDRESS" IS '生产地址';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."PROOF_MATERIALS" IS '证明材料';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."REMARK" IS '备注';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."SELF_CHECK_CONCLUSION" IS '自查结论';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."SELF_CHECK_END_DATE" IS '自查结束日期';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."SELF_CHECK_NON_CONFORMANDCE" IS '自查有无不符合项（1、有，0、无）';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."SELF_CHECK_START_DATE" IS '自查开始日期';
COMMENT ON COLUMN "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"."VALID_DATE" IS '证书有效期';

CREATE OR REPLACE  INDEX "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP_ANCHEID_IDX" ON "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"("ANCHEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP_S_EXT_DATATIME_IDX" ON "AICCS"."AN_SELF_INSPECTION_REPORT_TEMP"("S_EXT_DATATIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_SOCSECINFODATA"
(
"SOSEID" VARCHAR(50) NOT NULL,
"ANCHEID" VARCHAR(50),
"SO110" NUMBER(10,0),
"SO210" NUMBER(10,0),
"SO310" NUMBER(10,0),
"SO410" NUMBER(10,0),
"SO510" NUMBER(10,0),
"TOTALWAGES_SO110" NUMBER(24,6),
"TOTALWAGES_SO210" NUMBER(24,6),
"TOTALWAGES_SO310" NUMBER(24,6),
"TOTALWAGES_SO410" NUMBER(24,6),
"TOTALWAGES_SO510" NUMBER(24,6),
"TOTALWAGESDIS" VARCHAR2(2),
"TOTALPAYMENT_SO110" NUMBER(24,6),
"TOTALPAYMENT_SO210" NUMBER(24,6),
"TOTALPAYMENT_SO310" NUMBER(24,6),
"TOTALPAYMENT_SO410" NUMBER(24,6),
"TOTALPAYMENT_SO510" NUMBER(24,6),
"TOTALPAYMENTDIS" VARCHAR2(2),
"UNPAIDSOCIALINS_SO110" NUMBER(24,6),
"UNPAIDSOCIALINS_SO210" NUMBER(24,6),
"UNPAIDSOCIALINS_SO310" NUMBER(24,6),
"UNPAIDSOCIALINS_SO410" NUMBER(24,6),
"UNPAIDSOCIALINS_SO510" NUMBER(24,6),
"UNPAIDSOCIALINSDIS" VARCHAR2(2),
CONSTRAINT "PK_AN_SOCSECINFO" CLUSTER PRIMARY KEY("SOSEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_STATISTIC_ITEM"
(
"ANCHEID" VARCHAR2(50) NOT NULL,
"OPENINGDATE" DATE,
"IMENTACCSTSYSTEM" VARCHAR2(1),
"ENTGROSITUATIO" VARCHAR2(1),
"HIGHERENTUNISCID" VARCHAR2(18),
"MEMSTAENT" VARCHAR2(2),
"INVSITUATION" VARCHAR2(32),
"BUSWHORETACCCATENT" VARCHAR2(32),
"BRAND" VARCHAR2(100),
"RETFORRETENT" VARCHAR2(4),
"ACCINDENT" VARCHAR2(1),
"QUACONENT" VARCHAR2(4),
"QUAREALBUSENT" VARCHAR2(1),
"S_EXT_FROMNODE" VARCHAR2(6) DEFAULT '440100',
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ISSYNC" VARCHAR2(2) DEFAULT 'wA',
"IP" VARCHAR2(100),
"ON_AICCIPS" VARCHAR2(2) DEFAULT 'y',
"DSTATE" VARCHAR2(1) DEFAULT '0',
CLUSTER PRIMARY KEY("ANCHEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."ACCINDENT" IS '住宿业企业是星级评定情况';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."ANCHEID" IS '主键';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."BRAND" IS '批发和零售业、住宿和餐饮业企业连锁品牌（商标或商号）（仅批发和零售业、住宿和餐饮业企业经营形式选择2、3、4的单位填写此项）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."BUSWHORETACCCATENT" IS '批发和零售业、住宿和餐饮业企业经营形式';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."DSTATE" IS '数据状态（0：插入；1：更新；2：删除）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."ENTGROSITUATIO" IS '企业集团情况（限企业集团母公司及成员企业填写）本企业是（1 集团母公司（核心企业或集团总部） 2 成员企业）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."HIGHERENTUNISCID" IS '直接上级法人社会信用代码（仅企业集团情况（限企业集团母公司及成员企业填写）选2成员企业填写此项）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."IMENTACCSTSYSTEM" IS '执行企业会计准则制度情况';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."INVSITUATION" IS '港澳台商投资情况（限港澳台投资企业填报）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."IP" IS '报送的IP';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."ISSYNC" IS '同步标识（wA表示未同步，wB 表示已同步到省局，wC 表示从省局同步回来）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."MEMSTAENT" IS '国有控股企业隶属情况';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."ON_AICCIPS" IS '区分内外网填报（n：内网不公示，y：外网填报公示），n表示已经提交纸质年报，w企业选择不公示，m 手工制造的年报';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."OPENINGDATE" IS '开业时间（年月）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."QUACONENT" IS '建筑业企业资质等级编码（编码 建筑业企业资质等级编码(有资质的企业、请填写建筑业企业资质等级编码，没有资质的填写9999）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."QUAREALBUSENT" IS '房地产开发经营业企业资质等级';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."RETFORRETENT" IS '零售业企业零售业态（可多选、不超过三个）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM"."S_EXT_FROMNODE" IS '数据汇总单位';

CREATE OR REPLACE  INDEX "AICCS"."AN_STATISTIC_ITEM_SEXTDATATIME_IDX" ON "AICCS"."AN_STATISTIC_ITEM"("S_EXT_DATATIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AN_STATISTIC_ITEM_HIGHERENTUNISCID_IDX" ON "AICCS"."AN_STATISTIC_ITEM"("HIGHERENTUNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_STATISTIC_ITEM_TEMP"
(
"ANCHEID" VARCHAR2(50) NOT NULL,
"OPENINGDATE" DATE,
"IMENTACCSTSYSTEM" VARCHAR2(1),
"ENTGROSITUATIO" VARCHAR2(1),
"HIGHERENTUNISCID" VARCHAR2(18),
"MEMSTAENT" VARCHAR2(2),
"INVSITUATION" VARCHAR2(32),
"BUSWHORETACCCATENT" VARCHAR2(32),
"BRAND" VARCHAR2(100),
"RETFORRETENT" VARCHAR2(4),
"ACCINDENT" VARCHAR2(1),
"QUACONENT" VARCHAR2(4),
"QUAREALBUSENT" VARCHAR2(1),
"S_EXT_FROMNODE" VARCHAR2(6) DEFAULT '440100',
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ISSYNC" VARCHAR2(2) DEFAULT 'wA',
"IP" VARCHAR2(100),
"ON_AICCIPS" VARCHAR2(2) DEFAULT 'y',
"DSTATE" VARCHAR2(1) DEFAULT '0',
CLUSTER PRIMARY KEY("ANCHEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."ACCINDENT" IS '住宿业企业是星级评定情况';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."ANCHEID" IS '主键';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."BRAND" IS '批发和零售业、住宿和餐饮业企业连锁品牌（商标或商号）（仅批发和零售业、住宿和餐饮业企业经营形式选择2、3、4的单位填写此项）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."BUSWHORETACCCATENT" IS '批发和零售业、住宿和餐饮业企业经营形式';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."DSTATE" IS '数据状态（0：插入；1：更新；2：删除）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."ENTGROSITUATIO" IS '企业集团情况（限企业集团母公司及成员企业填写）本企业是（1 集团母公司（核心企业或集团总部） 2 成员企业）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."HIGHERENTUNISCID" IS '直接上级法人社会信用代码（仅企业集团情况（限企业集团母公司及成员企业填写）选2成员企业填写此项）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."IMENTACCSTSYSTEM" IS '执行企业会计准则制度情况';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."INVSITUATION" IS '港澳台商投资情况（限港澳台投资企业填报）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."IP" IS '报送的IP';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."ISSYNC" IS '同步标识（wA表示未同步，wB 表示已同步到省局，wC 表示从省局同步回来）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."MEMSTAENT" IS '国有控股企业隶属情况';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."ON_AICCIPS" IS '区分内外网填报（n：内网不公示，y：外网填报公示），n表示已经提交纸质年报，w企业选择不公示，m 手工制造的年报';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."OPENINGDATE" IS '开业时间（年月）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."QUACONENT" IS '建筑业企业资质等级编码（编码 建筑业企业资质等级编码(有资质的企业、请填写建筑业企业资质等级编码，没有资质的填写9999）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."QUAREALBUSENT" IS '房地产开发经营业企业资质等级';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."RETFORRETENT" IS '零售业企业零售业态（可多选、不超过三个）';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."AN_STATISTIC_ITEM_TEMP"."S_EXT_FROMNODE" IS '数据汇总单位';

CREATE OR REPLACE  INDEX "AICCS"."AN_STATISTIC_ITEM_TEMP_HIGHERENTUNISCID_IDX" ON "AICCS"."AN_STATISTIC_ITEM_TEMP"("HIGHERENTUNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AN_STATISTIC_ITEM_TEMP_SEXTDATATIME_IDX" ON "AICCS"."AN_STATISTIC_ITEM_TEMP"("S_EXT_DATATIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_SUBCAPITALDATA"
(
"INVID" VARCHAR2(100),
"ANCHEID" VARCHAR2(50),
"INVNAME" VARCHAR2(256),
"LISUBCONAM" NUMBER(24,6),
"SUBCONDATE" DATE,
"SUBCONFORM" VARCHAR2(200),
"SUBCONFORM_CN" VARCHAR2(128),
"LIACCONAM" NUMBER(24,6),
"ACCONDATE" DATE,
"ACCONFORM" VARCHAR2(200),
"ACCONFORM_CN" VARCHAR2(128)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_SUP_BASEINFODATA"
(
"ANCHEID" VARCHAR2(50),
"DEPENDENTENTNAME" VARCHAR2(100),
"UNISCID" VARCHAR2(50),
"MAINBUSIACT" VARCHAR2(2000),
"WOMEMPNUM" NUMBER(12,0),
"WOMEMPNUMDIS" VARCHAR2(2),
"HOLDINGSMSG" VARCHAR2(2),
"HOLDINGSMSG_CN" VARCHAR2(128),
"HOLDINGSMSGDIS" VARCHAR2(2)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_UPDATEINFODATA"
(
"ANCHEUID" VARCHAR(50),
"ANCHEID" VARCHAR(50),
"ALITEM" VARCHAR2(512),
"ALTBE" VARCHAR2(4000),
"ALTAF" VARCHAR2(4000),
"ALTDATE" DATE) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AN_WEBSITEINFODATA"
(
"WEBID" VARCHAR2(50),
"ANCHEID" VARCHAR2(50),
"WEBTYPE" VARCHAR2(2),
"WEBSITNAME" VARCHAR2(200),
"WEBSITE" VARCHAR2(500)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AO_OPA_DETAILDATA"
(
"BUSEXCLIST" VARCHAR2(64),
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"LEREP" VARCHAR2(200),
"CERTYPE" VARCHAR2(64),
"CERNO" VARCHAR2(200),
"SPECAUSE" VARCHAR2(2),
"SPECAUSE_CN" VARCHAR2(200),
"ABNTIME" DATE,
"DECORG" VARCHAR2(64),
"DECORG_CN" VARCHAR2(128),
"ISMOVE" VARCHAR2(1),
"REMEXCPRES" VARCHAR2(1),
"REMEXCPRES_CN" VARCHAR2(200),
"REMDATE" DATE,
"REDECORG" VARCHAR2(64),
"REDECORG_CN" VARCHAR2(128)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AO_OPANOMALY_INVDATA"
(
"BLINVID" VARCHAR2(100),
"BUSEXCLIST" VARCHAR2(64),
"PRIPID" VARCHAR2(36),
"INVID" VARCHAR2(100),
"INVTYPE" VARCHAR2(64),
"INV" VARCHAR2(100),
"CERTYPE" VARCHAR2(64),
"CERNO" VARCHAR2(50)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AO_OPANOMALYDATA"
(
"BUSEXCLIST" VARCHAR2(64),
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"LEREP" VARCHAR2(200),
"CERTYPE" VARCHAR2(64),
"CERNO" VARCHAR2(200),
"SPECAUSE" VARCHAR2(2),
"SPECAUSE_CN" VARCHAR2(200),
"ABNTIME" DATE,
"DECORG" VARCHAR2(64),
"DECORG_CN" VARCHAR2(128)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AREA_DSM"
(
"SAREA_CODE" VARCHAR(200) NOT NULL,
"SAREA_NAME" VARCHAR(400),
"SPARENT_CODE" VARCHAR(200),
"BEND" VARCHAR(20),
"BIS_UNIT" VARCHAR(20),
"SUNIT_ID" VARCHAR(72),
"SAREA_TYPE" VARCHAR(20),
"SEREA_USE" VARCHAR(20),
"SMAIN_CODE" VARCHAR(72),
"SIS_DELETE" VARCHAR(20),
"SAREA_LEVEL" VARCHAR(20),
"SENT_ID" VARCHAR(20),
"SMEMO" VARCHAR(1000),
"SLICE_ID" VARCHAR(72),
"ORG_NUMBER" VARCHAR(72),
"P_ORG_NUMBER" VARCHAR(72),
NOT CLUSTER PRIMARY KEY("SAREA_CODE")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."AREA_DSM" IS '旧片区信息表';
COMMENT ON COLUMN "AICCS"."AREA_DSM"."BIS_UNIT" IS '单位还是片区（0片区，1单位）';
COMMENT ON COLUMN "AICCS"."AREA_DSM"."ORG_NUMBER" IS '我们的组织架构机构编码';
COMMENT ON COLUMN "AICCS"."AREA_DSM"."P_ORG_NUMBER" IS '（父）我们的组织架构机构编码';
COMMENT ON COLUMN "AICCS"."AREA_DSM"."SAREA_CODE" IS '主键';
COMMENT ON COLUMN "AICCS"."AREA_DSM"."SAREA_LEVEL" IS '片区树层级';
COMMENT ON COLUMN "AICCS"."AREA_DSM"."SAREA_NAME" IS '名称';
COMMENT ON COLUMN "AICCS"."AREA_DSM"."SIS_DELETE" IS '是否删除 0-正常 1-删除';
COMMENT ON COLUMN "AICCS"."AREA_DSM"."SLICE_ID" IS '关联片区id';
COMMENT ON COLUMN "AICCS"."AREA_DSM"."SMEMO" IS '备注';
COMMENT ON COLUMN "AICCS"."AREA_DSM"."SPARENT_CODE" IS '父主键';
COMMENT ON COLUMN "AICCS"."AREA_DSM"."SUNIT_ID" IS '所属机构id';

CREATE OR REPLACE  INDEX "AICCS"."AREA_DSM_SLICE_ID_IDX" ON "AICCS"."AREA_DSM"("SLICE_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AREA_DSM_ORG_NUMBER_IDX" ON "AICCS"."AREA_DSM"("ORG_NUMBER" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AREA_DSM_P_ORG_NUMBER_IDX" ON "AICCS"."AREA_DSM"("P_ORG_NUMBER" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AREA_SLICE"
(
"SLICE_ID" VARCHAR(72) NOT NULL,
"SLICE_NAME" VARCHAR(400),
"SLICE_ADDR_KEY" VARCHAR(100),
"SLICE_ADDR" VARCHAR(510),
"SUPERVISOR_ID" VARCHAR(72),
"SUB_SUPERVISOR_ID" VARCHAR(72),
"REMARK" VARCHAR(1000),
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"CREATOR_ID" VARCHAR(72) NOT NULL,
"STATE" VARCHAR(1) DEFAULT '1' NOT NULL,
"IS_DELETED" VARCHAR(1) DEFAULT '0' NOT NULL,
"ORG_NUMBER" VARCHAR(72),
"SUB_START_TIME" TIMESTAMP(6),
"SUB_END_TIME" TIMESTAMP(6),
"SUB_USE" VARCHAR(2),
"SLICE_TYPE" VARCHAR(1) DEFAULT '2' NOT NULL,
"P_SLICE_ID" VARCHAR(72),
CONSTRAINT "AREA_SLICE_cons" NOT CLUSTER PRIMARY KEY("SLICE_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "AICCS"."AREA_SLICE_SLICE_ID" ON "AICCS"."AREA_SLICE"("SLICE_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AREA_SLICE_STATE_IS_DELETED_IDX" ON "AICCS"."AREA_SLICE"("STATE" ASC,"IS_DELETED" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AREA_SLICE_ORG_NUMBER_IDX" ON "AICCS"."AREA_SLICE"("ORG_NUMBER" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AREA_SLICE_SLICE_ADDR_KEY_IDX" ON "AICCS"."AREA_SLICE"("SLICE_ADDR_KEY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."AREA_SLICE_CREATE_TIME_IDX" ON "AICCS"."AREA_SLICE"("CREATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."AREA_SLICE_POLYGON"
(
"G_ID" VARCHAR(96) NOT NULL,
"SLICE_ID" VARCHAR(96),
"POLYGON_DATA" "sysgeo"."ST_POLYGON" NOT NULL,
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
CONSTRAINT "CONSAREA_SLICE_POLYGON" NOT CLUSTER PRIMARY KEY("G_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."INDEX_CREATE_TIME" ON "AICCS"."AREA_SLICE_POLYGON"("CREATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "AICCS"."AREA_SLICE_POLYGON_G_ID" ON "AICCS"."AREA_SLICE_POLYGON"("G_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."INDEX_AREA_SCLICE_ID" ON "AICCS"."AREA_SLICE_POLYGON"("SLICE_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."B_LOCK_ENTITY"
(
"ID" NVARCHAR(200) NOT NULL,
"PRIPID" NVARCHAR(96),
"REGISTER_NUMBER" NVARCHAR(120),
"CREDIT_CODE" NVARCHAR(96),
"ENTITY_NAME" NVARCHAR(800),
"LOCK_TYPE" NVARCHAR(12),
"LOCK_TYPE_DETAIL" NVARCHAR(200),
"LOCK_STATE" NVARCHAR(8),
"LOCK_STATE_DETAIL" NVARCHAR(200),
"LOCK_START_DATE" TIMESTAMP(6),
"LOCK_END_DATE" TIMESTAMP(6),
"LOCK_ITEM_CODES" NVARCHAR(800),
"LOCK_ITEM_DETAILS" NVARCHAR(800),
"LOCK_REASON" NVARCHAR(8000),
"LOCK_USER_ID" NVARCHAR(200),
"LOCK_USER_NAME" NVARCHAR(200),
"LOCK_ORG_ID" NVARCHAR(200),
"LOCK_ORG_NAME" NVARCHAR(200),
"LOCK_TIME" TIMESTAMP(6),
"UNLOCK_REASON" NVARCHAR(8000),
"UNLOCK_USER_ID" NVARCHAR(200),
"UNLOCK_USER_NAME" NVARCHAR(200),
"UNLOCK_TIME" TIMESTAMP(6),
"DELETE_FLAG" NVARCHAR(8),
"CREATOR" NVARCHAR(200),
"CREATOR_NAME" NVARCHAR(200),
"CREATOR_PART" NVARCHAR(200),
"CREATOR_PART_NAME" NVARCHAR(200),
"CREATE_TIME" TIMESTAMP(6),
"UPDATER" NVARCHAR(200),
"UPDATER_NAME" NVARCHAR(200),
"UPDATER_PART" NVARCHAR(200),
"UPDATER_PART_NAME" NVARCHAR(200),
"UPDATE_TIME" TIMESTAMP(6),
"DELETER" NVARCHAR(200),
"DELETER_NAME" NVARCHAR(200),
"DELETER_PART" NVARCHAR(200),
"DELETER_PART_NAME" NVARCHAR(200),
"DELETE_TIME" TIMESTAMP(6),
"ORGCODE" NVARCHAR(200),
"ORGNAME" NVARCHAR(200),
"ENTITY_CLASS" NVARCHAR(12),
"ENTITY_CLASS_DETAIL" NVARCHAR(200),
"PREPAIDOPERATE_FLAG" NVARCHAR(4),
CONSTRAINT "PK_B_LOCK_ENTITY" CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."CREATOR" IS '创建人';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."CREATOR_NAME" IS '创建人名称';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."CREATOR_PART" IS '创建人部门';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."CREATOR_PART_NAME" IS '创建人部门名称';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."CREDIT_CODE" IS '统一社会信息代码';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."DELETE_FLAG" IS '删除标志: 0未删除 1已删除';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."DELETE_TIME" IS '删除时间';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."DELETER" IS '删除人';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."DELETER_NAME" IS '删除人名称';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."DELETER_PART" IS '删除人部门';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."DELETER_PART_NAME" IS '删除人部门名称';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."ENTITY_CLASS" IS '企业分类';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."ENTITY_CLASS_DETAIL" IS '企业分类中文';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."ENTITY_NAME" IS '企业名称';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."ID" IS '主键ID';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_END_DATE" IS '锁定结束日期';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_ITEM_CODES" IS '锁定变更项编码';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_ITEM_DETAILS" IS '锁定变更项名称';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_ORG_ID" IS '锁定单位ID';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_ORG_NAME" IS '锁定单位名称';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_REASON" IS '锁定原因';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_START_DATE" IS '锁定开始日期';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_STATE" IS '锁定状态';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_STATE_DETAIL" IS '锁定状态名称';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_TIME" IS '锁定时间';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_TYPE" IS '锁定类型';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_TYPE_DETAIL" IS '锁定类型名称';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_USER_ID" IS '锁定用户ID';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."LOCK_USER_NAME" IS '锁定用户名称';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."ORGCODE" IS '所属部门';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."ORGNAME" IS '所属部门名称';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."PREPAIDOPERATE_FLAG" IS '是否采用预付费模式经营';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."REGISTER_NUMBER" IS '注册号';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."UNLOCK_REASON" IS '解锁原因';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."UNLOCK_TIME" IS '解锁时间';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."UNLOCK_USER_ID" IS '解锁用户ID';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."UNLOCK_USER_NAME" IS '解锁用户名称';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."UPDATE_TIME" IS '修改时间';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."UPDATER" IS '修改人';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."UPDATER_NAME" IS '修改人名称';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."UPDATER_PART" IS '修改人部门';
COMMENT ON COLUMN "AICCS"."B_LOCK_ENTITY"."UPDATER_PART_NAME" IS '修改人部门名称';

CREATE OR REPLACE  INDEX "AICCS"."IDX_B_LOCK_ENTITY_PRIPID" ON "AICCS"."B_LOCK_ENTITY"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_B_LOCK_ENTITY_DELETEFLAG" ON "AICCS"."B_LOCK_ENTITY"("DELETE_FLAG" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_B_LOCK_ENTITY_CREDITCODE" ON "AICCS"."B_LOCK_ENTITY"("CREDIT_CODE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_B_LOCK_ENTITY_LOCKSTATE" ON "AICCS"."B_LOCK_ENTITY"("LOCK_STATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."BIZ_ANNUAL_DISSENT_INFO"
(
"UID" VARCHAR(64) NOT NULL,
"BIZSEQ" VARCHAR(100) NOT NULL,
"INFO_ID" VARCHAR(64) NOT NULL,
"PRIPID" VARCHAR(64) NOT NULL,
"ENTNAME" VARCHAR(400),
"UNISCID" VARCHAR(36),
"REG_NO" VARCHAR(40),
"FINAL_FEEDBACK" VARCHAR(2000),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATE_TIME" TIMESTAMP(0),
"CREATOR_ID" VARCHAR(100),
"STATE" VARCHAR(1) DEFAULT '1',
"UNIT" VARCHAR(510),
"UNIT_CN" VARCHAR(510),
NOT CLUSTER PRIMARY KEY("UID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."BIZ_ANNUAL_DISSENT_INFO" IS '年报公示异议反馈业务记录信息';
COMMENT ON COLUMN "AICCS"."BIZ_ANNUAL_DISSENT_INFO"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."BIZ_ANNUAL_DISSENT_INFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."BIZ_ANNUAL_DISSENT_INFO"."CREATOR_ID" IS '创建人';
COMMENT ON COLUMN "AICCS"."BIZ_ANNUAL_DISSENT_INFO"."ENTNAME" IS '主体名称';
COMMENT ON COLUMN "AICCS"."BIZ_ANNUAL_DISSENT_INFO"."FINAL_FEEDBACK" IS '最终反馈信息';
COMMENT ON COLUMN "AICCS"."BIZ_ANNUAL_DISSENT_INFO"."INFO_ID" IS '反馈信息id';
COMMENT ON COLUMN "AICCS"."BIZ_ANNUAL_DISSENT_INFO"."PRIPID" IS '主体主键';
COMMENT ON COLUMN "AICCS"."BIZ_ANNUAL_DISSENT_INFO"."REG_NO" IS '注册号';
COMMENT ON COLUMN "AICCS"."BIZ_ANNUAL_DISSENT_INFO"."STATE" IS '状态（0不通过，1处理中，2通过）';
COMMENT ON COLUMN "AICCS"."BIZ_ANNUAL_DISSENT_INFO"."UID" IS '主键信息';
COMMENT ON COLUMN "AICCS"."BIZ_ANNUAL_DISSENT_INFO"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."BIZ_ANNUAL_DISSENT_INFO"."UNIT" IS '办理单位';
COMMENT ON COLUMN "AICCS"."BIZ_ANNUAL_DISSENT_INFO"."UNIT_CN" IS '办理单位名称';


CREATE TABLE "AICCS"."BIZ_CORRECTIONS"
(
"CORRECTIONS_ID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"BUS_ID" VARCHAR(72),
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(60),
"UNISCID" VARCHAR(36),
"ENTNAME" VARCHAR(200),
"P_REASON" VARCHAR(8),
"REASON" VARCHAR(8),
"P_FACT_DESC" VARCHAR(2000),
"FACT_DESC" VARCHAR(2000),
"BUSTYPE" VARCHAR(4) NOT NULL,
"CREATOR_ID" VARCHAR(72),
"STATE" VARCHAR(1) DEFAULT '1',
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP(),
"LAUPTIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP(),
"P_DECISION_CONTENT" VARCHAR(1000),
"DECISION_CONTENT" VARCHAR(1000),
"P_REMARK" VARCHAR(1000),
"REMARK" VARCHAR(1000),
"ENTTYPE" VARCHAR(100),
"REVOKE_HEAR_DATE" TIMESTAMP(6),
"REVOKE_DEC_DATE" TIMESTAMP(6),
CONSTRAINT "CONSBIZ_CORRECTIONS" NOT CLUSTER PRIMARY KEY("CORRECTIONS_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."BIZ_CORRECTIONS_PRIPID_IDX" ON "AICCS"."BIZ_CORRECTIONS"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."BIZ_CORRECTIONS_STATE_IDX" ON "AICCS"."BIZ_CORRECTIONS"("STATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."BIZ_CORRECTIONS_BIZSEQ_IDX" ON "AICCS"."BIZ_CORRECTIONS"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."BIZ_CORRECTIONS_BUS_ID_IDX" ON "AICCS"."BIZ_CORRECTIONS"("BUS_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "AICCS"."BIZ_CORRECTIONS__ID" ON "AICCS"."BIZ_CORRECTIONS"("CORRECTIONS_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."BIZ_OWNER_ASSIGN"
(
"ASSIGN_ID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(400),
"SLICE_ID" VARCHAR(400),
"ASSIGN_DATE" TIMESTAMP(6),
"ASSIGN_OPERATOR" VARCHAR(400),
"REM_DATE" TIMESTAMP(6),
"REM_OPERATOR" VARCHAR(400),
"UPDATER" VARCHAR(400),
"UPDATE_TIME" TIMESTAMP(6),
"REM_TYPE" VARCHAR(1),
"REM_REASON" VARCHAR(200),
"PHONE" VARCHAR(50),
"REM_OPERATOR_NAME" VARCHAR(500),
"ASSIGN_TYPE" VARCHAR(1),
CONSTRAINT "CONSBIZ_OWNER_ASSIGN" NOT CLUSTER PRIMARY KEY("ASSIGN_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."BIZ_OWNER_ASSIGN_PRIPID_IDX" ON "AICCS"."BIZ_OWNER_ASSIGN"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "AICCS"."BIZ_OWNER_ASSIGN_ASSIGN_ID" ON "AICCS"."BIZ_OWNER_ASSIGN"("ASSIGN_ID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."BIZ_PROBLEM_REPORT"
(
"PROBLEM_ID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PROBLEM_TITLE" VARCHAR(400),
"PROBLEM_DESC" VARCHAR(2000),
"REPORT_ORG" VARCHAR(72) NOT NULL,
"REPORTER_ID" VARCHAR(72) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"REPORT_TIME" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"URGENCY" VARCHAR(1) NOT NULL,
"IS_DELETED" VARCHAR(1) DEFAULT '0' NOT NULL,
"IS_REPORT" VARCHAR(1) DEFAULT '0' NOT NULL,
"STATE" VARCHAR(1) DEFAULT '0',
"FEEDBACK_RESULT" VARCHAR(1000),
NOT CLUSTER PRIMARY KEY("PROBLEM_ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."BIZ_PROBLEM_REPORT" IS '问题上报业务记录表';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."FEEDBACK_RESULT" IS '问题反馈结果';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."IS_DELETED" IS '是否删除（0否1是）';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."IS_REPORT" IS '是否上报（0否1是）';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."PROBLEM_DESC" IS '问题描述';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."PROBLEM_ID" IS '问题id';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."PROBLEM_TITLE" IS '问题标题';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."REPORT_ORG" IS '上报单位名称';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."REPORT_TIME" IS '上报时间';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."REPORTER_ID" IS '上报人id';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."STATE" IS '状态（0暂存，1，上报中，2完成）';
COMMENT ON COLUMN "AICCS"."BIZ_PROBLEM_REPORT"."URGENCY" IS '紧急程度';


CREATE TABLE "AICCS"."BIZ_REV_ENT"
(
"REVLISTID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"UNISCID" VARCHAR(36),
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"NAME" VARCHAR(400),
"ENTTYPE" VARCHAR(4),
"ENTTYPE_CN" VARCHAR(256),
"REMNO" INT,
"ISREMOVE" VARCHAR(8) DEFAULT '0',
"REMOVEREASON" VARCHAR(510),
"REMOVETIME" TIMESTAMP(0),
"REMHANDLER" VARCHAR(100),
"ISHEARING" VARCHAR(8),
"ISHEARINGPUBLISH" VARCHAR(1),
"HEARINGPUBLISHDATE" DATE,
"ISDECISIONPUBLISH" VARCHAR(1),
"DECISIONPUBLISHDATE" DATE,
"NOOPENSTATE" VARCHAR(1) DEFAULT '0',
"INSERTTIME" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"PRE_PUN_DEC_WRITSNO" VARCHAR(200),
"PRE_HEAR_NOT_WRITSNO" VARCHAR(200),
NOT CLUSTER PRIMARY KEY("REVLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."BIZ_REV_ENT" IS '批吊业务-主体信息表';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."DECISIONPUBLISHDATE" IS '决定公示日期';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."ENTNAME" IS '名称';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."ENTTYPE" IS '市场主体类型';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."ENTTYPE_CN" IS '市场主体类型（中文名称）';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."HEARINGPUBLISHDATE" IS '听证公示日期';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."INSERTTIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."ISDECISIONPUBLISH" IS '0-未决定公示1-决定公示中2-撤销公示';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."ISHEARING" IS ' “0”未生成听证报告 “1”已生成听证报告';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."ISHEARINGPUBLISH" IS '0-未听证公示1-听证公示中';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."ISREMOVE" IS '"0"未剔除 "1"已剔除';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."NAME" IS '法定代表人';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."NOOPENSTATE" IS '非开业状态 0-开业，1-非开业';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."PRE_HEAR_NOT_WRITSNO" IS '预生成的听证告知书文书号';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."PRE_PUN_DEC_WRITSNO" IS '预生成的行政处罚决定书文书号';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."REMHANDLER" IS '剔除处理人';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."REMNO" IS '剔除批次';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."REMOVEREASON" IS '剔除原因';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."REMOVETIME" IS '剔除时间';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."REVLISTID" IS '编号id';
COMMENT ON COLUMN "AICCS"."BIZ_REV_ENT"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "AICCS"."BIZREVENT_BIZSEQ_IDX" ON "AICCS"."BIZ_REV_ENT"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."CANCELREGISTERLIST"
(
"BIZFRAUDID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(72),
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"COURTNOTNO" VARCHAR(100),
"CANCELDOCNO" VARCHAR(100),
"CANCELDATE" VARCHAR(20),
"CANCELREGTYPE" VARCHAR(6),
"CANCELREA" VARCHAR(6),
"AUTOADDRESSLOCK" VARCHAR(2),
"USERNAME" VARCHAR(80),
"ATTACHMENT" VARCHAR(100),
"HANDLERID" VARCHAR(100),
"HANDLERNAME" VARCHAR(100),
"HANDLEDECORG" VARCHAR(100),
"CODE" VARCHAR(3),
"EXCODE" VARCHAR(3),
"MESSAGE" VARCHAR(510),
"RETURTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("BIZFRAUDID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."CANCELREGISTERLIST" IS '撤销设立结果表';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."ATTACHMENT" IS '文件';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."AUTOADDRESSLOCK" IS '该次撤销的企业住所（地址）均是否属于虚假（住宅）地址';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."BIZFRAUDID" IS '涉嫌冒用登记业务表id';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."CANCELDATE" IS '撤销日期';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."CANCELDOCNO" IS '撤销文书号';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."CANCELREA" IS '撤销原因';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."CANCELREGTYPE" IS '撤销登记类型';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."CODE" IS '撤销设立数据推送返回结果状态码';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."COURTNOTNO" IS '人民法院通知文书文号';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."EXCODE" IS '撤销设立数据推送返回异常代码';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."HANDLEDECORG" IS '作出决定机关';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."HANDLERID" IS '撤销设立经办人id';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."HANDLERNAME" IS '撤销设立经办人姓名';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."MESSAGE" IS '撤销设立数据推送返回详细的异常信息';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."PRIPID" IS '主体身份编码';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."RETURTIME" IS '撤销设立数据推送返回时间';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."CANCELREGISTERLIST"."USERNAME" IS '传：信用监管系统';


CREATE TABLE "AICCS"."CANCELREVOCATIONREGLIST"
(
"REVOKETBIZFRAUDID" VARCHAR(72) NOT NULL,
"PRIPID" VARCHAR(72),
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(200),
"ENTNAME" VARCHAR(200),
"CANCELDOCNO" VARCHAR(100),
"CANCELDATE" VARCHAR(20),
"CANCELREA" VARCHAR(2000),
"USERNAME" VARCHAR(80),
"ATTACHMENT" VARCHAR(100),
"HANDLERID" VARCHAR(100),
"HANDLERNAME" VARCHAR(100),
"CODE" VARCHAR(10),
"EXCODE" VARCHAR(10),
"MESSAGE" VARCHAR(510),
"RETURTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("REVOKETBIZFRAUDID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."CANCELREVOCATIONREGLIST" IS '撤销撤销设立结果表';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."ATTACHMENT" IS '文件';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."CANCELDATE" IS '处理日期（格式：YYYY-MM-DD）';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."CANCELDOCNO" IS '处理决定文书号';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."CANCELREA" IS '处理原因';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."CODE" IS '撤销撤销设立数据推送返回结果状态码(500:系统异常、参数异常；200：正常访问)';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."EXCODE" IS '撤销撤销设立数据推送返回异常代码 （code=500时才有值：000:参数问题；001企业不存在；002该企业不是已撤销企业，不允许撤销撤销设立；003该企业存在锁定信息，不允许撤销撤销设立; 004该企业存在未完结的业务流程，不允许撤销撤销设立;）';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."HANDLERID" IS '撤销撤销设立审批人id';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."HANDLERNAME" IS '撤销撤销设立审批人姓名';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."MESSAGE" IS '撤销设立数据推送返回详细的异常信息';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."PRIPID" IS '主体身份代码（唯一标识符）';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."RETURTIME" IS '撤销设立数据推送返回时间';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."REVOKETBIZFRAUDID" IS '撤销撤销案件业务表id';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."CANCELREVOCATIONREGLIST"."USERNAME" IS '经办人姓名（传：信用监管系统）';


CREATE TABLE "AICCS"."CANCELREVOKELIST"
(
"REVCANCELID" VARCHAR(72) NOT NULL,
"UNISCID" VARCHAR(36),
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"CANCELREVOKEDATE" VARCHAR(20),
"CANCELREVOKEOTHERREA" VARCHAR(200),
"CANCELAPPRDOCNO" VARCHAR(100),
"CANCELAPPRDEPT" VARCHAR(200),
"REMARKS" VARCHAR(200),
"USERNAME" VARCHAR(80),
"ATTACHMENT" VARCHAR(100),
"HANDLERID" VARCHAR(100),
"HANDLERNAME" VARCHAR(100),
"CANCELAPPRDEPTID" VARCHAR(100),
"CODE" VARCHAR(3),
"EXCODE" VARCHAR(3),
"MESSAGE" VARCHAR(510),
"RETURTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("REVCANCELID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."CANCELREVOKELIST" IS '撤销吊销结果表';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."ATTACHMENT" IS '文件';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."CANCELAPPRDEPT" IS '撤销吊销批准部门';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."CANCELAPPRDEPTID" IS '撤销吊销批准部门id';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."CANCELAPPRDOCNO" IS '撤销吊销批准文号';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."CANCELREVOKEDATE" IS '撤销吊销批准日期';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."CANCELREVOKEOTHERREA" IS '撤销吊销原因（同传批准文号即可）';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."CODE" IS '撤销吊销数据推送返回结果状态码';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."ENTNAME" IS '名称';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."EXCODE" IS '撤销吊销数据推送返回异常代码 （code=500时才有值：001企业不存在；002不允许做吊销登记（如企业状态不对、被完全锁定等）；003参数异常(如字段超长、格式不对)
）';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."HANDLERID" IS '撤销吊销审批人id';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."HANDLERNAME" IS '撤销吊销审批人姓名';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."MESSAGE" IS '撤销吊销数据推送返回详细的异常信息';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."REMARKS" IS '备注说明原因';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."RETURTIME" IS '撤销吊销数据推送返回时间';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."REVCANCELID" IS '撤销吊销id';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."CANCELREVOKELIST"."USERNAME" IS '经办人姓名（传：信用监管系统/综合执法系统）';


CREATE TABLE "AICCS"."CASE_CRE_INFORMATIONDATA"
(
"CASECREID" VARCHAR2(64) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"UNISCID" VARCHAR2(18),
"CASEID" VARCHAR2(100),
"REPAIRDATE" DATE,
"REPAUTH" VARCHAR2(6),
"REPAUTH_CN" VARCHAR2(200),
"REPDATE" DATE,
CONSTRAINT "PK_CASE_CRE_INFORMATION" CLUSTER PRIMARY KEY("CASECREID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."CASE_PUB_NALTERDATA"
(
"CASEALTID" VARCHAR2(100) NOT NULL,
"CASEID" VARCHAR2(100),
"ALT" VARCHAR2(512),
"ALTBE" VARCHAR2(4000),
"ALTAF" VARCHAR2(4000),
"ALTDATE" DATE,
"PENALTAUTH" VARCHAR2(64),
"PENALTAUTH_CN" VARCHAR2(200),
"DATADEPT" VARCHAR2(200),
"DATADEPTUNISCID" VARCHAR2(18),
CONSTRAINT "PK_CASE_PUB_NALTER" CLUSTER PRIMARY KEY("CASEALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."CASE_PUB_NBASEINFODATA"
(
"CASEID" VARCHAR2(100) NOT NULL,
"ACTYPE" VARCHAR2(1),
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"INSCERCODE" VARCHAR2(12),
"SOCORGCODE" VARCHAR2(50),
"ORGCODE" VARCHAR2(9),
"TAXID" VARCHAR2(20),
"LEREP" VARCHAR2(200),
"CERTYPE" VARCHAR2(2),
"CERNO" VARCHAR2(64),
"NAME" VARCHAR2(30),
"AC_CERTYPE" VARCHAR2(2),
"AC_CERNO" VARCHAR2(64),
"PENDECNO" VARCHAR2(256),
"ILLEGACTTYPECODE" VARCHAR2(6),
"ILLEGACTTYPE" VARCHAR2(2000),
"MAINILLEGFACT" VARCHAR2(4000),
"PENBASIS" VARCHAR2(200),
"PENBASIS_CN" VARCHAR2(4000),
"PENTYPE" VARCHAR2(4000),
"PENTYPE_CN" VARCHAR2(2000),
"PENAM" NUMBER(24,6),
"FORFAM" NUMBER(24,6),
"PENDECISSDATE" DATE,
"PENPERI" DATE,
"PENAUTH" VARCHAR2(64),
"PENAUTH_CN" VARCHAR2(200),
"PENAUTHUNISCID" VARCHAR2(18),
"PENCONTENT" VARCHAR2(4000),
"REVLICNUM" VARCHAR2(200),
"PUBLICDATE" DATE,
"PUBDEADLINE" DATE,
"DATADEPT" VARCHAR2(200),
"DATADEPTUNISCID" VARCHAR2(18),
"REMARK" VARCHAR2(1000),
CONSTRAINT "PK_CASE_PUB_NBASEINFO" CLUSTER PRIMARY KEY("CASEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."CASE_PUB_NDOCDATA"
(
"CASEDECBOOKID" VARCHAR2(100) NOT NULL,
"CASEID" VARCHAR2(100),
"FILENAME" VARCHAR2(256),
"REMARK" VARCHAR2(1000),
CONSTRAINT "PK_CASE_PUB_NDOC" CLUSTER PRIMARY KEY("CASEDECBOOKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."CASE_ZF_REPORT"
(
"ID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(50) NOT NULL,
"CASENO" VARCHAR(50) NOT NULL,
"CASESOU" VARCHAR(50),
"CASECON" CLOB,
"CLUETIME" DATETIME(6),
"CASEAREA" VARCHAR(100),
"CASENAME" VARCHAR(200),
"CASEREASON" CLOB,
"CASEFIAUTHNAME" VARCHAR(200),
"CASEFIDATE" DATETIME(6),
"CASEDEPNAME" VARCHAR(200),
"PENRESULT" VARCHAR(100),
"CASEENDTYPE" VARCHAR(100),
"CASEENDDATE" DATETIME(6),
"PARTYTYPE" VARCHAR(50),
"UNITNAME" VARCHAR(200),
"PRIPID" VARCHAR(50),
"UNISCID" VARCHAR(50),
"LEREP" VARCHAR(100),
"DOM" VARCHAR(500),
"TEL" VARCHAR(50),
"CERTYPE" VARCHAR(50),
"CERNO" VARCHAR(50),
"ILLEGFACT" CLOB,
"PENDECISSDATE" DATETIME(6),
"ILLEGACTTYPENAME" VARCHAR(500),
"PENBASIS" CLOB,
"DISCRETIONFACT" VARCHAR(1000),
"DISCRETIONAPP" VARCHAR(1000),
"PENCONTENT" CLOB,
"PENTYPENAME" VARCHAR(100),
"CASEVAL" DECIMAL(18,2),
"PENAM" DECIMAL(18,2),
"REFAMOORD" DECIMAL(18,2),
"FORFAM" DECIMAL(18,2),
"FORGOODS" VARCHAR(1000),
"PENAUTHNAME" VARCHAR(200),
"PENDECNO" VARCHAR(50),
"EXETYPE" VARCHAR(50),
"PUBLISH" VARCHAR(10),
"XTPATH" VARCHAR(300),
"ZFPATH" VARCHAR(300),
"ISFY" VARCHAR(10),
CONSTRAINT "PK_CASE_ZF_REPORT" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."IDX_CASE_ZF_REPORT_BIZSEQ" ON "AICCS"."CASE_ZF_REPORT"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_CASE_ZF_REPORT_CASENO" ON "AICCS"."CASE_ZF_REPORT"("CASENO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."CASEREPORT"
(
"CASEREPORTID" VARCHAR(72) NOT NULL,
"CASEID" VARCHAR(72),
"BIZSEQ" VARCHAR(72),
"CASESETDATE" VARCHAR(40),
"SUSPECTEDATC" VARCHAR(510),
"BASEINFO" VARCHAR(1000),
"CASEFROMSOON" VARCHAR(1000),
"INVESTRUTH" VARCHAR(1000),
"EVIDENCES" VARCHAR(1000),
"CASENATURE" VARCHAR(1000),
"DISCRETIONSOON" VARCHAR(1000),
"HANDLEBASIS" VARCHAR(1000),
"HANDLERONE" VARCHAR(40),
"HANDLERTWO" VARCHAR(40),
"HANDLEDATEONE" VARCHAR(40),
"HANDLEDATETWO" VARCHAR(40),
"ORGLEADER" VARCHAR(40),
"ORGLEADERHANDLEDATE" VARCHAR(40),
"AREACODE" VARCHAR(6),
"REPORTCONTENT" TEXT,
NOT CLUSTER PRIMARY KEY("CASEREPORTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."CASEREPORT" IS '案件调查终结报告信息表';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."AREACODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."BASEINFO" IS '当事人基本情况';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."BIZSEQ" IS '吊销业务id';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."CASEFROMSOON" IS '案件来源等情况';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."CASEID" IS '案件id';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."CASENATURE" IS '案件性质';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."CASEREPORTID" IS '主键id';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."CASESETDATE" IS '立案日期';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."DISCRETIONSOON" IS '自由裁量等事项';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."EVIDENCES" IS '证据证明';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."HANDLEBASIS" IS '处理意见及依据';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."HANDLEDATEONE" IS '办案人员1日期';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."HANDLEDATETWO" IS '办案人员2日期';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."HANDLERONE" IS '办案人员1';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."HANDLERTWO" IS '办案人员2';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."INVESTRUTH" IS '调查认定的事实';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."ORGLEADER" IS '办案机构负责人';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."ORGLEADERHANDLEDATE" IS '办案机构负责人日期';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."REPORTCONTENT" IS '调查报告内容';
COMMENT ON COLUMN "AICCS"."CASEREPORT"."SUSPECTEDATC" IS '涉嫌违法行为';


CREATE TABLE "AICCS"."CIPBIZENTLIAISONS"
(
"LIAISONSID" VARCHAR(72) NOT NULL,
"HISTORYINFOID" VARCHAR(72),
"ENTITYNO" VARCHAR(72),
"REGNO" VARCHAR(60),
"REGORG" VARCHAR(20),
"LIANAME" VARCHAR(200),
"CERTID" VARCHAR(80),
"MOBILETEL" VARCHAR(60),
"PWD" VARCHAR(64),
"ISSYNC" VARCHAR(4),
"CERIDTYPE" VARCHAR(60),
"FIXEDTEL" VARCHAR(60),
"EMAIL" VARCHAR(60),
"UNISCID" VARCHAR(72),
"ISPELORORG" VARCHAR(2) DEFAULT '0' NOT NULL,
"ORGNAME" VARCHAR(200),
"ORGADDRESS" VARCHAR(400),
"ORGPOSTCODE" VARCHAR(72),
"ORGMOBILETEL" VARCHAR(60),
"ORGCERTIDTYPE" VARCHAR(60),
"ORGCERTID" VARCHAR(72),
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("LIAISONSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."CIPENTLIAISONS"
(
"LIAISONSID" VARCHAR(72) NOT NULL,
"HISTORYINFOID" VARCHAR(72),
"ENTITYNO" VARCHAR(72),
"REGNO" VARCHAR(60),
"REGORG" VARCHAR(20),
"LIANAME" VARCHAR(200),
"CERTID" VARCHAR(80),
"MOBILETEL" VARCHAR(60),
"PWD" VARCHAR(64),
"ISSYNC" VARCHAR(4),
"CREATEDATE" TIMESTAMP(0),
"UPDATEDATE" TIMESTAMP(0),
"DSTATE" VARCHAR(1),
"SYNCDATE" TIMESTAMP(0),
"SYNCFLAG" VARCHAR(1),
"CERIDTYPE" VARCHAR(60),
"FIXEDTEL" VARCHAR(60),
"EMAIL" VARCHAR(60),
"UNISCID" VARCHAR(72),
NOT CLUSTER PRIMARY KEY("LIAISONSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."TRENTBASEINFO_UNISCID_IDX" ON "AICCS"."CIPENTLIAISONS"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TRENTBASEINFO_HISTORYINFOID_IDX" ON "AICCS"."CIPENTLIAISONS"("HISTORYINFOID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TRENTBASEINFO_ENTITYNO_IDX" ON "AICCS"."CIPENTLIAISONS"("ENTITYNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."CMS_DICT_CODE"
(
"ID" VARCHAR(72) NOT NULL,
"TYPE" VARCHAR(72) NOT NULL,
"LABEL" VARCHAR(510) NOT NULL,
"CODE" VARCHAR(72) NOT NULL,
"CONSTANT" VARCHAR(72),
"DESCRIPTION" TEXT,
"SORT" INT,
"LEVEL" INT,
"PARENT_ID" VARCHAR(72),
"IS_VALID" VARCHAR(1) NOT NULL,
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."CMS_DICT_CODE" IS '字典代码';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."CODE" IS '代码值';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."CONSTANT" IS '常量名';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."DESCRIPTION" IS '描述';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."IS_VALID" IS '是否有效 0：无效；1：有效';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."LABEL" IS '名称';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."LEVEL" IS '级别';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."PARENT_ID" IS '父ID';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."SORT" IS '排序';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."TYPE" IS '字典类型 关联dict_type表type字段';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."CMS_DICT_CODE"."UPDATE_TIME" IS '更新时间';


CREATE TABLE "AICCS"."CMS_DICT_TYPE"
(
"ID" VARCHAR(72) NOT NULL,
"MODULE" VARCHAR(72) NOT NULL,
"MODULE_DESCRIPTION" TEXT,
"TYPE" VARCHAR(72) NOT NULL,
"NAME" VARCHAR(510) NOT NULL,
"TYPE_DESCRIPTION" TEXT,
"IS_VALID" VARCHAR(1) NOT NULL,
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."CMS_DICT_TYPE" IS '字典类型';
COMMENT ON COLUMN "AICCS"."CMS_DICT_TYPE"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."CMS_DICT_TYPE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."CMS_DICT_TYPE"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."CMS_DICT_TYPE"."IS_VALID" IS '是否有效 0：无效；1：有效';
COMMENT ON COLUMN "AICCS"."CMS_DICT_TYPE"."MODULE" IS '模块 英文，例如某个业务的模块';
COMMENT ON COLUMN "AICCS"."CMS_DICT_TYPE"."MODULE_DESCRIPTION" IS '模块描述';
COMMENT ON COLUMN "AICCS"."CMS_DICT_TYPE"."NAME" IS '名称';
COMMENT ON COLUMN "AICCS"."CMS_DICT_TYPE"."TYPE" IS '类型代码';
COMMENT ON COLUMN "AICCS"."CMS_DICT_TYPE"."TYPE_DESCRIPTION" IS '类型描述';
COMMENT ON COLUMN "AICCS"."CMS_DICT_TYPE"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."CMS_DICT_TYPE"."UPDATE_TIME" IS '更新时间';


CREATE TABLE "AICCS"."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) ;

COMMENT ON COLUMN "AICCS"."CONTACT_LOG"."CONTENTTEXT" IS '展示内容';
COMMENT ON COLUMN "AICCS"."CONTACT_LOG"."CREATE_TIME" IS '创建时间，默认当前时间';
COMMENT ON COLUMN "AICCS"."CONTACT_LOG"."ID" IS '主键，自增';
COMMENT ON COLUMN "AICCS"."CONTACT_LOG"."OPERATIONTIME" IS '操作时间';
COMMENT ON COLUMN "AICCS"."CONTACT_LOG"."OPERATORID" IS '操作人ID';
COMMENT ON COLUMN "AICCS"."CONTACT_LOG"."OPERATORNAME" IS '操作人名称';
COMMENT ON COLUMN "AICCS"."CONTACT_LOG"."PRIPID" IS '企业主键';
COMMENT ON COLUMN "AICCS"."CONTACT_LOG"."UPDATE_TIME" IS '更新时间，默认当前时间，更新时自动更新';

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


CREATE TABLE "AICCS"."DB_LINK_CHECK_DETAIL"
(
"ID" VARCHAR(72) NOT NULL,
"CHECK_BATCH" VARCHAR(20) NOT NULL,
"CHECK_RULE" VARCHAR(200) NOT NULL,
"CHECK_OBJECT_ID" VARCHAR(72) NOT NULL,
"CHECK_OBJECT" VARCHAR(2000) NOT NULL,
"CHECK_RESULT" VARCHAR(1) NOT NULL,
"CHECK_RESULT_DETAIL" VARCHAR(4000) NOT NULL,
"CHECK_DATE" TIMESTAMP(0) NOT NULL,
"CREATE_BY" VARCHAR(64) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(64) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."DB_LINK_CHECK_DETAIL" IS '数据检测详情表';
COMMENT ON COLUMN "AICCS"."DB_LINK_CHECK_DETAIL"."CHECK_BATCH" IS '检测批次';
COMMENT ON COLUMN "AICCS"."DB_LINK_CHECK_DETAIL"."CHECK_DATE" IS '检测时间';
COMMENT ON COLUMN "AICCS"."DB_LINK_CHECK_DETAIL"."CHECK_OBJECT" IS '检测实例';
COMMENT ON COLUMN "AICCS"."DB_LINK_CHECK_DETAIL"."CHECK_OBJECT_ID" IS '检测实例主键';
COMMENT ON COLUMN "AICCS"."DB_LINK_CHECK_DETAIL"."CHECK_RESULT" IS '检测结果 1-成功,0-失败';
COMMENT ON COLUMN "AICCS"."DB_LINK_CHECK_DETAIL"."CHECK_RESULT_DETAIL" IS '检测详情';
COMMENT ON COLUMN "AICCS"."DB_LINK_CHECK_DETAIL"."CHECK_RULE" IS '检测规则';
COMMENT ON COLUMN "AICCS"."DB_LINK_CHECK_DETAIL"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."DB_LINK_CHECK_DETAIL"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."DB_LINK_CHECK_DETAIL"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."DB_LINK_CHECK_DETAIL"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."DB_LINK_CHECK_DETAIL"."UPDATE_TIME" IS '更新时间';


CREATE TABLE "AICCS"."DB_LINK_LOG"
(
"ID" VARCHAR(72) NOT NULL,
"LOG_TYPE" VARCHAR(1) NOT NULL,
"TASK_NAME" VARCHAR(200) NOT NULL,
"TASK_CONTENT" VARCHAR(2000) NOT NULL,
"LOG_DETAIL" VARCHAR(4000) NOT NULL,
"TASK_STATUS" VARCHAR(1) NOT NULL,
"LOG_DATE" TIMESTAMP(0) NOT NULL,
"CREATE_BY" VARCHAR(64) NOT NULL,
"CREATE_TIME" TIMESTAMP(0) NOT NULL,
"UPDATE_BY" VARCHAR(64) NOT NULL,
"UPDATE_TIME" TIMESTAMP(0) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."DB_LINK_LOG" IS '数据链路日志表';
COMMENT ON COLUMN "AICCS"."DB_LINK_LOG"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."DB_LINK_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."DB_LINK_LOG"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."DB_LINK_LOG"."LOG_DATE" IS '日志时间';
COMMENT ON COLUMN "AICCS"."DB_LINK_LOG"."LOG_DETAIL" IS '日志详情';
COMMENT ON COLUMN "AICCS"."DB_LINK_LOG"."LOG_TYPE" IS '日志类型 1 - 操作日志；2 - 运行日志';
COMMENT ON COLUMN "AICCS"."DB_LINK_LOG"."TASK_CONTENT" IS '任务内容';
COMMENT ON COLUMN "AICCS"."DB_LINK_LOG"."TASK_NAME" IS '执行任务';
COMMENT ON COLUMN "AICCS"."DB_LINK_LOG"."TASK_STATUS" IS '执行状态 1 - 执行成功，0 - 执行失败';
COMMENT ON COLUMN "AICCS"."DB_LINK_LOG"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."DB_LINK_LOG"."UPDATE_TIME" IS '更新时间';


CREATE TABLE "AICCS"."DEADLINESTAS"
(
"DEADLINEID" VARCHAR(72) NOT NULL,
"WORKFLOWID" VARCHAR(36),
"ACCEPTLEFTDAYS" VARCHAR(2),
"ACCEPTSTARTDATE" DATE,
"HANDLELEFTDAYS" VARCHAR(2),
"HANDLESTARTDATE" DATE,
"APPROVELEFTDAYS" VARCHAR(2),
"APPROVESTARTDATE" DATE,
NOT CLUSTER PRIMARY KEY("DEADLINEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."DEADLINESTAS"."ACCEPTLEFTDAYS" IS '经办人剩余工作日';
COMMENT ON COLUMN "AICCS"."DEADLINESTAS"."ACCEPTSTARTDATE" IS '经办起算日期';
COMMENT ON COLUMN "AICCS"."DEADLINESTAS"."APPROVELEFTDAYS" IS '审批人剩余工作日';
COMMENT ON COLUMN "AICCS"."DEADLINESTAS"."APPROVESTARTDATE" IS '审批起算日期';
COMMENT ON COLUMN "AICCS"."DEADLINESTAS"."DEADLINEID" IS '主键id';
COMMENT ON COLUMN "AICCS"."DEADLINESTAS"."HANDLELEFTDAYS" IS '审核人剩余工作日';
COMMENT ON COLUMN "AICCS"."DEADLINESTAS"."HANDLESTARTDATE" IS '审核起算日期';
COMMENT ON COLUMN "AICCS"."DEADLINESTAS"."WORKFLOWID" IS '流程主键';


CREATE TABLE "AICCS"."DR_RANINSRESDATA"
(
"CHECKRESID" VARCHAR2(32),
"INSENTERID" VARCHAR2(32),
"RANINSPLANID" VARCHAR2(64),
"RANINSPLANNAME" VARCHAR2(200),
"RANINSTASKID" VARCHAR2(64),
"RANINSTASKNAME" VARCHAR2(200),
"RANINSTYPE" VARCHAR2(64),
"RANINSTYPENAME" VARCHAR2(128),
"PRIPID" VARCHAR2(36),
"UNISCID" VARCHAR2(50),
"REGNO" VARCHAR2(50),
"ENTNAME" VARCHAR2(200),
"INSAUTHCODE" VARCHAR2(64),
"INSAUTH" VARCHAR2(200),
"INSDATE" DATE,
"RANINSITEM" VARCHAR2(64),
"RANINSITEMNAME" VARCHAR2(500),
"RANINSCHECKRES" VARCHAR2(64),
"RANINSCHECKRESNAME" VARCHAR2(128),
"REMARK" VARCHAR2(1000),
"PUBDATE" DATE) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."DRAFT_REVOKE_ENTITY"
(
"ID" VARCHAR(72) NOT NULL,
"PRIPID" VARCHAR(72),
"USCC" VARCHAR(100),
"REGNO" VARCHAR(100),
"TABTIME" TIMESTAMP(0),
"STATUS" VARCHAR(2),
"INTOORG" VARCHAR(100),
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."DRAFT_REVOKE_ENTITY" IS '拟撤销主体信息表';
COMMENT ON COLUMN "AICCS"."DRAFT_REVOKE_ENTITY"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."DRAFT_REVOKE_ENTITY"."CREATE_TIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."DRAFT_REVOKE_ENTITY"."ID" IS '主键ID';
COMMENT ON COLUMN "AICCS"."DRAFT_REVOKE_ENTITY"."INTOORG" IS '列入机关';
COMMENT ON COLUMN "AICCS"."DRAFT_REVOKE_ENTITY"."PRIPID" IS '企业主键';
COMMENT ON COLUMN "AICCS"."DRAFT_REVOKE_ENTITY"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."DRAFT_REVOKE_ENTITY"."STATUS" IS '状态 0-废弃 1-正常';
COMMENT ON COLUMN "AICCS"."DRAFT_REVOKE_ENTITY"."TABTIME" IS '标记时间';
COMMENT ON COLUMN "AICCS"."DRAFT_REVOKE_ENTITY"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."DRAFT_REVOKE_ENTITY"."UPDATE_TIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."DRAFT_REVOKE_ENTITY"."USCC" IS '统一社会信用代码';


CREATE TABLE "AICCS"."E_ALTER_RECODER"
(
"ALTID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(72),
"ALTITEM" VARCHAR(128),
"ALTITEM_CN" VARCHAR(256),
"ALTBE" VARCHAR(8000),
"ALTAF" VARCHAR(8000),
"ALTDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(12),
"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 "AICCS"."E_ALTER_RECODER" IS '变更备案信息';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER"."ALTAF" IS '变更后内容';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER"."ALTBE" IS '变更前内容';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER"."ALTID" IS '变更项ID';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER"."ALTITEM" IS '变更事项';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER"."ALTITEM_CN" IS '变更事项（中文名称）';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER"."UPDATE_TIME" IS '更新时间';

CREATE OR REPLACE  INDEX "AICCS"."E_ALTER_RECODER_UPDATE_TIME_IDX" ON "AICCS"."E_ALTER_RECODER"("UPDATE_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."E_ALTER_RECODER_PRIPID_IDX" ON "AICCS"."E_ALTER_RECODER"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_ALTER_RECODER_TEMP"
(
"ALTID" VARCHAR(50) NOT NULL,
"BIZSEQ" VARCHAR(50) NOT NULL,
"PRIPID" VARCHAR(50),
"ALTITEM" VARCHAR(255),
"ALTITEM_CN" VARCHAR(255),
"ALTBE" VARCHAR(4000),
"ALTAF" VARCHAR(4000),
"ALTDATE" DATE,
"CREATETIME" TIMESTAMP(6),
"UPDATETIME" TIMESTAMP(6),
CONSTRAINT "PK_E_ALTER_RECODER_TEMP" CLUSTER PRIMARY KEY("ALTID", "BIZSEQ")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."E_ALTER_RECODER_TEMP" IS '变更临时记录表';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER_TEMP"."ALTAF" IS '变更后内容';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER_TEMP"."ALTBE" IS '变更前内容';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER_TEMP"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER_TEMP"."ALTID" IS '变更项ID';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER_TEMP"."ALTITEM" IS '变更事项';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER_TEMP"."ALTITEM_CN" IS '变更事项（中文名称）';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER_TEMP"."BIZSEQ" IS '变更项ID';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER_TEMP"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER_TEMP"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."E_ALTER_RECODER_TEMP"."UPDATETIME" IS '更新时间';

CREATE OR REPLACE  INDEX "AICCS"."IDX_E_ALTER_RECODER_TEMP_ALTID" ON "AICCS"."E_ALTER_RECODER_TEMP"("ALTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_E_ALTER_RECODER_TEMP_BIZSEQ" ON "AICCS"."E_ALTER_RECODER_TEMP"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_ALTER_RECODERDATA"
(
"ALTID" VARCHAR2(50),
"PRIPID" VARCHAR2(36),
"ALTITEM" VARCHAR2(64),
"ALTITEM_CN" VARCHAR2(128),
"ALTBE" VARCHAR2(4000),
"ALTAF" VARCHAR2(4000),
"ALTDATE" DATE) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_BASEINFO"
(
"PRIPID" VARCHAR(72) NOT NULL,
"UNISCID" VARCHAR(36),
"ENTNAME" VARCHAR(400),
"REGNO" VARCHAR(200),
"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(8000),
"OPFROM" DATE,
"OPTO" DATE,
"REGSTATE" VARCHAR(2),
"REGSTATE_CN" VARCHAR(256),
"DOMDISTRICT" VARCHAR(128),
"DOM" VARCHAR(1024),
"REGCAP" DECIMAL(24,6),
"REGCAPCUR" VARCHAR(128),
"REGCAPCUR_CN" VARCHAR(256),
"REGCAPUSD" DECIMAL(24,6),
"RECCAP" DECIMAL(24,6),
"RECCAPUSD" DECIMAL(18,6),
"COUNTRY" VARCHAR(256),
"EMPNUM" DECIMAL(10,0),
"TOWN" VARCHAR(128),
"NAME" VARCHAR(400),
"REPORTTYPE" VARCHAR(128),
"APPRDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(6),
"INDUSTRY_NAME" VARCHAR(200),
"REV_DATE" VARCHAR(60),
"PHONE" VARCHAR(200),
"EMAIL" VARCHAR(200),
"ADDRESS" VARCHAR(600),
"WEBSITE" VARCHAR(200),
"REGULATORY" VARCHAR(200),
"REGULATORY_NAME" VARCHAR(200),
"OPEN_FROM" VARCHAR(60),
"OPEN_TO" VARCHAR(60),
"SCORE" INT,
"LEVEL" VARCHAR(200),
"UPDATE_BY" VARCHAR(100),
"UPDATE_TIME" TIMESTAMP(6),
"CREATE_BY" VARCHAR(510),
"CREATE_TIME" TIMESTAMP(6),
"LABEL" VARCHAR(200),
"BRANCH" VARCHAR(200),
"INVESTMENT" VARCHAR(200),
"TRANAME" VARCHAR(512),
"FUNDAM" DECIMAL(24,6),
"COMPFORM" VARCHAR(128),
"COMPFORM_CN" VARCHAR(256),
"LOCALADM" VARCHAR(128),
"OPLOCDISTRICT" VARCHAR(12),
"OPLOC" VARCHAR(400),
"TEL" VARCHAR(60),
"POSTALCODE" VARCHAR(20),
"REGION" VARCHAR(200),
"STREET_LONG" VARCHAR(200),
"STREET_NAME" VARCHAR(200),
"SAREACODE_JX" VARCHAR(800),
"SAREANAME_JX" VARCHAR(800),
"SAREACODE_JXMX" VARCHAR(800),
"SAREANAME_JXMX" VARCHAR(800),
"ACCEPTREGORG" VARCHAR(800),
"ACCEPTREGORG_CN" VARCHAR(800),
"LEREP" VARCHAR(200),
"CERTYPE" VARCHAR(20),
"CERNO" VARCHAR(80),
"SUPORG" VARCHAR(400),
"SUPORG_CN" VARCHAR(400),
"SAREACODE_TEMP" VARCHAR(200),
"SAREANAME_TEMP" VARCHAR(200),
"REGULATORY_TEMP" VARCHAR(200),
"REGULATORY_NAME_TEMP" VARCHAR(400),
"ASSIGN_ID" VARCHAR(72),
"ENTSTATUS" VARCHAR(200),
"ISQS" VARCHAR(1),
CONSTRAINT "E_BASEINFO_PK" CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."IDX_E_BASEINFO1_ENTNAME" ON "AICCS"."E_BASEINFO"("ENTNAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."E_BASEINFO1_REGULATORY_TEMP_IDX" ON "AICCS"."E_BASEINFO"("REGULATORY_TEMP" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."E_BASEINFO1_SAREACODE_TEMP_IDX" ON "AICCS"."E_BASEINFO"("SAREACODE_TEMP" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."E_BASEINFO1_UNISCID_IDX" ON "AICCS"."E_BASEINFO"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_NAME_E_BASEINFO1_INDEX" ON "AICCS"."E_BASEINFO"("NAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE UNIQUE  INDEX "AICCS"."E_BASEINFO1_E_BASEINFO" ON "AICCS"."E_BASEINFO"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."E_BASEINFO1_REGNO_IDX" ON "AICCS"."E_BASEINFO"("REGNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."E_BASEINFO1_ENTTYPE_IDX" ON "AICCS"."E_BASEINFO"("ENTTYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."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) ;

COMMENT ON TABLE "AICCS"."E_CONTACT" IS '该表用于存储联络员的相关信息';
COMMENT ON COLUMN "AICCS"."E_CONTACT"."CERNO" IS '证件号码，存储联络员证件的具体号码';
COMMENT ON COLUMN "AICCS"."E_CONTACT"."CERTYPE" IS '证件类型，标识联络员持有的证件类型';
COMMENT ON COLUMN "AICCS"."E_CONTACT"."EMAIL" IS '电子邮箱，存储联络员的电子邮箱地址';
COMMENT ON COLUMN "AICCS"."E_CONTACT"."LMID" IS '联络员ID，是表的主键，用于唯一标识每个联络员';
COMMENT ON COLUMN "AICCS"."E_CONTACT"."MOBTEL" IS '移动电话，存储联络员的移动电话信息';
COMMENT ON COLUMN "AICCS"."E_CONTACT"."NAME" IS '姓名，存储联络员的姓名信息';
COMMENT ON COLUMN "AICCS"."E_CONTACT"."PRIPID" IS '主体身份代码，用于标识联络员所属的主体或组织';
COMMENT ON COLUMN "AICCS"."E_CONTACT"."S_EXT_DATATIME" IS '数据汇总时间，记录数据汇总的日期和时间，默认为当前时间';
COMMENT ON COLUMN "AICCS"."E_CONTACT"."S_EXT_FROMNODE" IS '数据汇总单位，标识数据是由哪个单位汇总的';
COMMENT ON COLUMN "AICCS"."E_CONTACT"."TEL" IS '联系电话，存储联络员的固定电话信息';

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


CREATE TABLE "AICCS"."e_falper_info"
(
"FALPERID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(200),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"NAME" VARCHAR2(200),
"CERTYPE" VARCHAR2(64),
"CERNO" VARCHAR2(50),
"HANDLREST" VARCHAR2(512),
"HANDLREA" VARCHAR2(64),
"JUDAUTH" VARCHAR2(64),
"JUDAUTH_CN" VARCHAR2(128),
"JUDDATE" DATE,
"S_EXT_FROMNODE" VARCHAR2(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"dstate" VARCHAR2(1),
"create_by" VARCHAR2(36),
"create_time" DATE,
"update_by" VARCHAR2(36),
"update_time" DATE,
CONSTRAINT "PK_E_FALPER_INFO" NOT CLUSTER PRIMARY KEY("FALPERID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_GT_ALTER_RECODER"
(
"ALTID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(72),
"ALTITEM" VARCHAR(128),
"ALTITEM_CN" VARCHAR(256),
"ALTBE" VARCHAR(8000),
"ALTAF" VARCHAR(8000),
"ALTDATE" DATE,
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

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

CREATE OR REPLACE  INDEX "AICCS"."E_GT_ALTER_RECODER_PRIPID_IDX" ON "AICCS"."E_GT_ALTER_RECODER"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."E_GT_ALTER_RECODER_S_EXT_DATATIME_IDX" ON "AICCS"."E_GT_ALTER_RECODER"("S_EXT_DATATIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_IM_CASALTDATA"
(
"CASEALTID" VARCHAR2(100) NOT NULL,
"CASEID" VARCHAR2(100),
"PENAUTH" VARCHAR2(64),
"ALT" VARCHAR2(4000),
"ALTDATE" DATE,
"REMARK" VARCHAR2(1000),
CONSTRAINT "PK_E_IM_CASALT" CLUSTER PRIMARY KEY("CASEALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_IM_CASEDATA"
(
"CASEID" VARCHAR2(100) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"REGNO" VARCHAR2(50),
"UNISCID" VARCHAR2(18),
"PENDECNO" VARCHAR2(256),
"ILLEGACTTYPE" VARCHAR2(2000),
"PENTYPE" VARCHAR2(64),
"PENTYPE_CN" VARCHAR2(500),
"PENAM" NUMBER(24,6),
"FORFAM" NUMBER(24,6),
"PENCONTENT" VARCHAR2(4000),
"JUDAUTH" VARCHAR2(100),
"PENDECISSDATE" DATE,
"PUBLICDATE" DATE,
"REMARK" VARCHAR2(1000),
CONSTRAINT "PK_E_IM_CASE" CLUSTER PRIMARY KEY("CASEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_IM_INVACTDETAILDATA"
(
"PAIDID" VARCHAR2(100) NOT NULL,
"INVID" VARCHAR2(100),
"INV" VARCHAR2(100),
"ACCONAM" NUMBER(24,6),
"CONFORM" VARCHAR2(64),
"CONFORM_CN" VARCHAR2(128),
"CONDATE" DATE,
"PUBLICDATE" DATE,
CONSTRAINT "PK_E_IM_INVACTDETAIL" CLUSTER PRIMARY KEY("PAIDID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_IM_INVESTMENTDATA"
(
"INVID" VARCHAR2(100) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"REGNO" VARCHAR2(50),
"UNISCID" VARCHAR2(18),
"INV" VARCHAR2(100),
CONSTRAINT "PK_E_IM_INVESTMENT" CLUSTER PRIMARY KEY("INVID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_IM_INVPRODETAILDATA"
(
"SUBID" VARCHAR2(50) NOT NULL,
"INVID" VARCHAR2(100),
"INV" VARCHAR2(100),
"SUBCONAM" NUMBER(24,6),
"CONFORM" VARCHAR2(64),
"CONFORM_CN" VARCHAR2(128),
"CONDATE" DATE,
"PUBLICDATE" DATE,
CONSTRAINT "PK_E_IM_INVPRODETAIL" CLUSTER PRIMARY KEY("SUBID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_IM_INVSRALTDATA"
(
"INVALTID" VARCHAR2(50) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"REGNO" VARCHAR2(50),
"UNISCID" VARCHAR2(18),
"INV" VARCHAR2(100),
"TRANSAMPRBF" NUMBER(24,6),
"TRANSAMPRAF" NUMBER(24,6),
"ALTDATE" DATE,
"PUBLICDATE" DATE,
CONSTRAINT "PK_E_IM_INVSRALT" CLUSTER PRIMARY KEY("INVALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_IM_INVUPDATEDATA"
(
"INVUID" VARCHAR2(36) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"REGNO" VARCHAR2(50),
"UNISCID" VARCHAR2(18),
"ALITEM" VARCHAR2(512),
"ALTBE" VARCHAR2(4000),
"ALTAF" VARCHAR2(4000),
"ALTDATE" DATE,
CONSTRAINT "PK_E_IM_INVUPDATE" CLUSTER PRIMARY KEY("INVUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_IM_IPPLDGALTDATA"
(
"PLEALTID" VARCHAR2(100) NOT NULL,
"PLEID" VARCHAR2(100),
"ALT" VARCHAR2(512),
"ALTBE" VARCHAR2(4000),
"ALTAF" VARCHAR2(4000),
"ALTDATE" DATE,
CONSTRAINT "PK_E_IM_IPPLDGALT" CLUSTER PRIMARY KEY("PLEALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_IM_IPPLDGDATA"
(
"PLEID" VARCHAR2(100) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"REGNO" VARCHAR2(50),
"UNISCID" VARCHAR2(18),
"TMREGNO" VARCHAR2(100),
"TMNAME" VARCHAR2(200),
"KINDS" VARCHAR2(1),
"PLEDGOR" VARCHAR2(200),
"IMPORG" VARCHAR2(200),
"PLEREGPERFROM" DATE,
"PLEREGPERTO" DATE,
"TYPE" VARCHAR2(1),
"TYPENAME" VARCHAR2(8),
"CANDATE" DATE,
"EQUPLECANREA" VARCHAR2(200),
"INVALIDDATE" DATE,
"INVALIDREA" VARCHAR2(200),
"PUBLICDATE" DATE,
CONSTRAINT "PK_E_IM_IPPLDG" CLUSTER PRIMARY KEY("PLEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_IM_PERMITDATA"
(
"LICID" VARCHAR2(50) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"REGNO" VARCHAR2(50),
"UNISCID" VARCHAR2(50),
"LICNO" VARCHAR2(200),
"LICNAME_CN" VARCHAR2(256),
"VALFROM" DATE,
"VALTO" DATE,
"LICANTH" VARCHAR2(200),
"LICITEM" VARCHAR2(4000),
"TYPE" VARCHAR2(1),
"CANDATE" DATE,
"EQUPLECANREA" VARCHAR2(200),
"REVDATE" DATE,
"SUGREVREASON" VARCHAR2(200),
"INVALIDDATE" DATE,
"INVALIDREA" VARCHAR2(200),
"PUBLICDATE" DATE,
CONSTRAINT "PK_E_IM_PERMIT" CLUSTER PRIMARY KEY("LICID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_IM_PRMTALTDATA"
(
"LICALTID" VARCHAR2(50) NOT NULL,
"LICID" VARCHAR2(50),
"ALT" VARCHAR2(512),
"ALTBE" VARCHAR2(4000),
"ALTAF" VARCHAR2(4000),
"ALTDATE" DATE,
CONSTRAINT "PK_E_IM_PRMTALT" CLUSTER PRIMARY KEY("LICALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_INV_PERSON_SJZX"
(
"INVID" VARCHAR(200) NOT NULL,
"PRIPID" VARCHAR(72),
"INV" VARCHAR(200),
"CERTYPE" VARCHAR(128),
"CERTYPE_CN" VARCHAR(256),
"CERNO" VARCHAR(100),
"LISUBCONAM" DECIMAL(18,6),
"SUBCONAMUSD" DECIMAL(18,6),
"SUBCONFORM" VARCHAR(400),
"SUBCONPROP" DECIMAL(7,4),
"CONDATE" TIMESTAMP(3),
"LIACCONAM" DECIMAL(18,6),
"ACCONAMUSD" DECIMAL(18,6),
"DOM" VARCHAR(1024),
"CURRENCY" VARCHAR(128),
"CURRENCY_CN" VARCHAR(256),
"COUNTRY" VARCHAR(256),
"COUNTRY_CN" VARCHAR(256),
"EXEAFFSIGN" VARCHAR(128),
"RESPFORM" VARCHAR(128),
"RESPFORM_CN" VARCHAR(256),
"SCONFORM" VARCHAR(400),
"SEX" VARCHAR(128),
"NATION" VARCHAR(128),
"NATDATE" TIMESTAMP(3),
"LITDEG" VARCHAR(128),
"POLSTAND" VARCHAR(128),
"OCCST" VARCHAR(256),
"POSTALCODE" VARCHAR(12),
"TEL" VARCHAR(60),
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(3),
NOT CLUSTER PRIMARY KEY("INVID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_LI_BLACK"
(
"PRIPID" VARCHAR(72) NOT NULL,
"CERNO" VARCHAR(100),
"CERTYPE" VARCHAR(128),
"ENTNAME" VARCHAR(200),
"ENTTYPE" VARCHAR(128),
"ESDATE" DATE,
"ETLTIMESTAMP" TIMESTAMP(0),
"ILLEGACT" VARCHAR(4000),
"NAME" VARCHAR(400),
"OPSTATE" VARCHAR(128),
"REGNO" VARCHAR(100),
"REGORG" VARCHAR(128),
"REMARK" VARCHAR(2000),
"REVDATE" TIMESTAMP(0),
"S_EXT_DATATIME" TIMESTAMP(0),
"S_EXT_FROMNODE" VARCHAR(12),
"UNISCID" VARCHAR(36),
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

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


CREATE TABLE "AICCS"."E_LI_ILLDISDETAILDATA"
(
"ILLID" VARCHAR2(64) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"NAME" VARCHAR2(200),
"CERTYPE" VARCHAR2(64),
"CERNO" VARCHAR2(50),
"SERILLREA" VARCHAR2(36),
"SERILLREA_CN" VARCHAR2(128),
"ABNTIME" DATE,
"DECORG" VARCHAR2(6),
"DECORG_CN" VARCHAR2(128),
"DEDOCNUM" VARCHAR2(128),
"REMEXCPRES" VARCHAR2(36),
"REMEXCPRES_CN" VARCHAR2(128),
"REMDATE" DATE,
"RECORG" VARCHAR2(6),
"RECORG_CN" VARCHAR2(128),
"REDOCNUM" VARCHAR2(128),
CONSTRAINT "PK_E_LI_ILLDISDETAIL" CLUSTER PRIMARY KEY("ILLID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_LI_ILLDISHONESTYDATA"
(
"ILLID" VARCHAR2(64) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"NAME" VARCHAR2(200),
"CERTYPE" VARCHAR2(64),
"CERNO" VARCHAR2(50),
"SERILLREA" VARCHAR2(36),
"ABNTIME" DATE,
"DECORG" VARCHAR2(6),
"DECORG_CN" VARCHAR2(128),
"DEDOCNUM" VARCHAR2(128),
CONSTRAINT "PK_E_LI_ILLDISHONESTY" CLUSTER PRIMARY KEY("ILLID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."e_nate_operregdec"
(
"PERSONATERESID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(200),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"REGORG" VARCHAR2(64),
"REGORG_CN" VARCHAR2(128),
"NOTICECONTENT" VARCHAR2(4000),
"JUDAUTH" VARCHAR2(64),
"JUDAUTH_CN" VARCHAR2(128),
"JUDDATE" DATE,
"NOTICEDATE" DATE,
"S_EXT_FROMNODE" VARCHAR2(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"dstate" VARCHAR2(1),
"create_by" VARCHAR2(36),
"create_time" DATE,
"update_by" VARCHAR2(36),
"update_time" DATE,
CONSTRAINT "PK_E_NATE_OPERREGDEC" NOT CLUSTER PRIMARY KEY("PERSONATERESID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_OT_CASE"
(
"ID" VARCHAR(100) NOT NULL,
"CASEID" VARCHAR(400),
"REGNO" VARCHAR(400),
"UNISCID" VARCHAR(400),
"ENTNAME" VARCHAR(400),
"PENDECNO" VARCHAR(400),
"ILLEGACTTYPE" VARCHAR(400),
"PENTYPE" VARCHAR(400),
"PENTYPE_CN" VARCHAR(400),
"PENAM" VARCHAR(400),
"FORFAM" VARCHAR(400),
"PENCONTENT" VARCHAR(400),
"JUDAUTH" VARCHAR(400),
"PENDECISSDATE" DATE,
"REMARK" VARCHAR(1000),
"PUBLICDATE" DATE,
"DATADEPT" VARCHAR(400),
"UPLOADPROV" VARCHAR(400),
"TARGETPROV" VARCHAR(400),
"OPFLAG" VARCHAR(400),
"INSERT_TIME" TIMESTAMP(0),
"LASTUPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."E_OT_CASE" IS '行政处罚信息(临时)';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."CASEID" IS '行政处罚ID';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."FORFAM" IS '没收金额';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."ILLEGACTTYPE" IS '违法行为类型';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."JUDAUTH" IS '作出行政处罚决定机关名称';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."OPFLAG" IS '操作标识';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."PENAM" IS '罚款金额';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."PENCONTENT" IS '处罚内容';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."PENDECISSDATE" IS '作出处罚决定书日期';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."PENDECNO" IS '处罚决定书文号';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."PENTYPE" IS '处罚种类';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."PENTYPE_CN" IS '处罚种类（中文名称）';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."REMARK" IS '备注';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."TARGETPROV" IS '数据目标省/市';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."E_OT_CASE"."UPLOADPROV" IS '数据上报省/市';


CREATE TABLE "AICCS"."E_OT_NCASALTDATA"
(
"CASEALTID" VARCHAR2(100) NOT NULL,
"CASEID" VARCHAR2(100),
"ALT" VARCHAR2(512),
"ALTBE" VARCHAR2(4000),
"ALTAF" VARCHAR2(4000),
"ALTDATE" DATE,
"PENALTAUTH" VARCHAR2(64),
"PENALTAUTH_CN" VARCHAR2(200),
"DATADEPT" VARCHAR2(200),
"DATADEPTUNISCID" VARCHAR2(18),
CONSTRAINT "PK_E_OT_NCASALT" CLUSTER PRIMARY KEY("CASEALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_OT_NCASEDATA"
(
"CASEID" VARCHAR2(100) NOT NULL,
"ACTYPE" VARCHAR2(1),
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"INSCERCODE" VARCHAR2(12),
"SOCORGCODE" VARCHAR2(50),
"ORGCODE" VARCHAR2(9),
"TAXID" VARCHAR2(20),
"LEREP" VARCHAR2(200),
"CERTYPE" VARCHAR2(2),
"CERNO" VARCHAR2(64),
"NAME" VARCHAR2(30),
"AC_CERTYPE" VARCHAR2(2),
"AC_CERNO" VARCHAR2(64),
"PENDECNO" VARCHAR2(256),
"ILLEGACTTYPECODE" VARCHAR2(6),
"ILLEGACTTYPE" VARCHAR2(2000),
"MAINILLEGFACT" VARCHAR2(4000),
"PENBASIS" VARCHAR2(200),
"PENBASIS_CN" VARCHAR2(4000),
"PENTYPE" VARCHAR2(4000),
"PENTYPE_CN" VARCHAR2(2000),
"PENAM" NUMBER(24,6),
"FORFAM" NUMBER(24,6),
"PENDECISSDATE" DATE,
"PENPERI" DATE,
"PENAUTH" VARCHAR2(64),
"PENAUTH_CN" VARCHAR2(200),
"PENAUTHUNISCID" VARCHAR2(18),
"PENCONTENT" VARCHAR2(4000),
"REVLICNUM" VARCHAR2(200),
"PUBLICDATE" DATE,
"PUBDEADLINE" DATE,
"DATADEPT" VARCHAR2(200),
"DATADEPTUNISCID" VARCHAR2(18),
"REMARK" VARCHAR2(1000),
CONSTRAINT "PK_E_OT_NCASE" CLUSTER PRIMARY KEY("CASEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_OT_NPERMITDATA"
(
"LICID" VARCHAR2(50) NOT NULL,
"ACTYPE" VARCHAR2(1),
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"ORGCODE" VARCHAR2(9),
"TAXID" VARCHAR2(20),
"INSCERCODE" VARCHAR2(12),
"SOCORGCODE" VARCHAR2(50),
"LEREP" VARCHAR2(200),
"CERTYPE" VARCHAR2(2),
"CERNO" VARCHAR2(64),
"NAME" VARCHAR2(30),
"AC_CERTYPE" VARCHAR2(2),
"AC_CERNO" VARCHAR2(64),
"LICNAME" VARCHAR2(3),
"LICNAME_CN" VARCHAR2(256),
"LICNO" VARCHAR2(200),
"LICDECNAME" VARCHAR2(64),
"LICDECCODE" VARCHAR2(64),
"LICTYPE" VARCHAR2(1),
"LICTYPE_CN" VARCHAR2(256),
"LICITEM" VARCHAR2(4000),
"LICDECDATE" DATE,
"VALIPERIFROM" DATE,
"VALIPERITO" DATE,
"LICANTHNO" VARCHAR2(6),
"LICANTH" VARCHAR2(200),
"LICANTHUNISCID" VARCHAR2(18),
"DATADEPT" VARCHAR2(200),
"DATADEPTUNISCID" VARCHAR2(18),
"LICSTATE" VARCHAR2(1),
"INVALIDDATE" DATE,
"INVALIDREA" VARCHAR2(200),
"REMARK" VARCHAR2(1000),
CONSTRAINT "PK_E_OT_NPERMIT" CLUSTER PRIMARY KEY("LICID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_OT_NPRMTALTDATA"
(
"LICALTID" VARCHAR2(50) NOT NULL,
"LICID" VARCHAR2(50),
"ALT" VARCHAR2(512),
"ALTBE" VARCHAR2(4000),
"ALTAF" VARCHAR2(4000),
"ALTDATE" DATE,
"PENALTAUTH" VARCHAR2(64),
"PENALTAUTH_CN" VARCHAR2(200),
"DATADEPT" VARCHAR2(200),
"DATADEPTUNISCID" VARCHAR2(18),
CONSTRAINT "PK_E_OT_NPRMTALT" CLUSTER PRIMARY KEY("LICALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_OT_PERMIT"
(
"ID" VARCHAR(100) NOT NULL,
"LICID" VARCHAR(400),
"REGNO" VARCHAR(400),
"UNISCID" VARCHAR(400),
"ENTNAME" VARCHAR(400),
"LICNO" VARCHAR(400),
"LICNAME_CN" VARCHAR(400),
"VALFROM" DATE,
"VALTO" DATE,
"LICANTH" VARCHAR(400),
"LICITEM" VARCHAR(400),
"TYPE" VARCHAR(400),
"CANDATE" DATE,
"EQUPLECANREA" VARCHAR(400),
"REVDATE" DATE,
"SUGREVREASON" VARCHAR(400),
"INVALIDDATE" DATE,
"INVALIDREA" VARCHAR(400),
"DATADEPT" VARCHAR(400),
"UPLOADPROV" VARCHAR(400),
"TARGETPROV" VARCHAR(400),
"OPFLAG" VARCHAR(400),
"INSERT_TIME" TIMESTAMP(0),
"LASTUPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."E_OT_PERMIT" IS '行政许可信息(临时)';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."CANDATE" IS '注销日期';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."EQUPLECANREA" IS '注销原因';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."INVALIDDATE" IS '其它无效日期';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."INVALIDREA" IS '其它无效原因';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."LICANTH" IS '许可机关';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."LICID" IS '许可ID';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."LICITEM" IS '许可内容';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."LICNAME_CN" IS '许可文件名称（中文名称）';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."LICNO" IS '许可文件编号';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."OPFLAG" IS '操作标识';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."REVDATE" IS '吊销日期';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."SUGREVREASON" IS '吊销原因';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."TARGETPROV" IS '数据目标省/市';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."TYPE" IS '状态';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."UPLOADPROV" IS '数据上报省/市';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."VALFROM" IS '有效期自';
COMMENT ON COLUMN "AICCS"."E_OT_PERMIT"."VALTO" IS '有效期至';


CREATE TABLE "AICCS"."E_OT_SPOTCHECKDATA"
(
"INSID" VARCHAR2(50) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"INSAUTH" VARCHAR2(100),
"INSAUTH_CN" VARCHAR2(128),
"INSTYPE" VARCHAR2(64),
"INSDATE" DATE,
"INSCHECKRES" VARCHAR2(64),
"INSCHECKRES_CN" VARCHAR2(4000),
"DATADEPT" VARCHAR2(200),
CONSTRAINT "PK_E_OT_SPOTCHECK" CLUSTER PRIMARY KEY("INSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


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


CREATE TABLE "AICCS"."E_PRI_PERSON"
(
"PERSONID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(36) NOT NULL,
"NAME" VARCHAR(200),
"SEX" VARCHAR(64),
"NATDATE" TIMESTAMP(6),
"CERTYPE" VARCHAR(64),
"CERNO" VARCHAR(50),
"POSITION" VARCHAR(64),
"POSITION_CN" VARCHAR(128),
"POSBRFORM" VARCHAR(64),
"OCCSTBEAPP" VARCHAR(128),
"LEREPSIGN" VARCHAR(64),
"APPOUNIT" VARCHAR(200),
"TEL" VARCHAR(30),
"COUNTRY" VARCHAR(128),
"TELNUMBER" VARCHAR(30),
"MOBTEL" VARCHAR(64),
"EMAIL" VARCHAR(100),
"HOUSEADD" VARCHAR(600),
"ARRCHDATE" TIMESTAMP(6),
"REPCARFROM" TIMESTAMP(6),
"REPCARTO" TIMESTAMP(6),
"POSTALCODE" VARCHAR(64),
"S_EXT_FROMNODE" VARCHAR(6),
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "PK_E_PRI_PERSON" CLUSTER PRIMARY KEY("PERSONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."E_PRI_PERSON" IS '主要人员表';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."APPOUNIT" IS '任命单位/委派方，存储任命或委派人员的单位或组织';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."ARRCHDATE" IS '入境时间，记录人员入境的日期';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."CERNO" IS '证件号码，存储人员证件的具体号码';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."CERTYPE" IS '证件类型，标识人员持有的证件类型';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."COUNTRY" IS '国别(地区)，存储人员的国别或地区信息';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."EMAIL" IS '电子邮箱，存储人员的电子邮箱地址';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."HOUSEADD" IS '住址，存储人员的住址信息';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."LEREPSIGN" IS '法定代表人/首席代表/负责人标识，用于标识人员是否为法定代表人、首席代表或负责人';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."MOBTEL" IS '移动电话，存储人员的移动电话信息';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."NAME" IS '姓名，存储人员的姓名信息';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."NATDATE" IS '出生日期，存储人员的出生日期';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."OCCSTBEAPP" IS '申请前职业状况，描述人员在申请当前职务前的职业状况';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."PERSONID" IS '人员ID，是表的主键，用于唯一标识每个人员';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."POSBRFORM" IS '职务产生方式，描述职务是如何产生的';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."POSITION" IS '职务，标识人员在组织中的职务';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."POSITION_CN" IS '职务中文名称，提供职务的中文名称描述';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."POSTALCODE" IS '邮政编码，存储与住址相关的邮政编码信息';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."PRIPID" IS '主体身份代码，用于标识人员的身份或所属组织';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."REPCARFROM" IS '代表证期限自，存储代表证的有效起始日期';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."REPCARTO" IS '代表证期限至，存储代表证的有效截止日期';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."S_EXT_DATATIME" IS '数据汇总时间，记录数据汇总的日期和时间，默认为当前时间';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."S_EXT_FROMNODE" IS '数据汇总单位，标识数据是由哪个单位汇总的';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."SEX" IS '性别，存储人员的性别信息';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."TEL" IS '联系电话，存储人员的联系电话信息';
COMMENT ON COLUMN "AICCS"."E_PRI_PERSON"."TELNUMBER" IS '固定电话，存储人员的固定电话信息';

CREATE OR REPLACE  INDEX "AICCS"."IDX_E_PRI_PERSON_PRIPID" ON "AICCS"."E_PRI_PERSON"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_PUB_SPOTCHECKDATA"
(
"INSID" VARCHAR2(50),
"PRIPID" VARCHAR2(36),
"INSAUTH" VARCHAR2(100),
"INSAUTH_CN" VARCHAR2(128),
"INSTYPE" VARCHAR2(64),
"INSDATE" DATE,
"INSRES" VARCHAR2(128),
"INSRES_CN" VARCHAR2(4000)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."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,2),
"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),
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP NOT NULL,
"LAUPTIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP NOT NULL,
CONSTRAINT "PK_E_SP_PLEDGE" CLUSTER PRIMARY KEY("IMPORGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."CANCELDATE" IS '撤销日期';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."CANCELREA" IS '撤销原因';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."CANDATE" IS '注销日期';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."ENTNAME" IS '股权所在公司名称';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."EQUITYNO" IS '股权登记编号';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."EQUPLECANREA" IS '注销原因';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."EQUPLEDATE" IS '股权出质登记日期';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."IMPAM" IS '出质股权数额';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."IMPORG" IS '质权人';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."IMPORGBLICNO" IS '质权人证照号码';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."IMPORGBLICTYPE" IS '质权人证照类型';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."IMPORGBLICTYPE_CN" IS '质权人证照类型（中文名称）';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."IMPORGID" IS '股权出质信息ID';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."PLEDAMUNIT" IS '出质股权数额单位';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."PLEDBLICNO" IS '出质人证照号码';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."PLEDBLICTYPE" IS '出质人证照类型';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."PLEDBLICTYPE_CN" IS '出质人证照类型（中文名称）';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."PLEDGOR" IS '出质人';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."PRIPID" IS '股权所在公司主体身份代码';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."REGCAPCUR" IS '出质股权数额币种';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."REGCAPCUR_CN" IS '出质股权数额币种（中文名称）';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."REGNO" IS '股权所在公司注册号';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."S_EXT_DATATIME" IS '数据汇总时间';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."TYPE" IS '状态';
COMMENT ON COLUMN "AICCS"."E_SP_PLEDGE"."UNISCID" IS '股权所在公司统一社会信用代码';

CREATE OR REPLACE  INDEX "AICCS"."IDX_E_SP_PLEDGE_PLEDBLICNO" ON "AICCS"."E_SP_PLEDGE"("PLEDBLICNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_E_SP_PLEDGE_TYPE" ON "AICCS"."E_SP_PLEDGE"("TYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_E_SP_PLEDGE_UNISCID" ON "AICCS"."E_SP_PLEDGE"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_E_SP_PLEDGE_PRIPID" ON "AICCS"."E_SP_PLEDGE"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_E_SP_PLEDGE_IMPORGBLICNO" ON "AICCS"."E_SP_PLEDGE"("IMPORGBLICNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."E_SUSNATE_FILE"
(
"FILEID" VARCHAR(64) NOT NULL,
"PERSONATEID" VARCHAR(64) NOT NULL,
"FILENAME" VARCHAR(490),
"FILETYPE" VARCHAR(60),
"UPDATEDATE" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("FILEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."e_susnate_operreg"
(
"PERSONATEID" VARCHAR2(32) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(200),
"UNISCID" VARCHAR2(18),
"REGNO" VARCHAR2(50),
"REGTIME" DATE,
"REGITEM" VARCHAR2(200),
"REGORG" VARCHAR2(64),
"REGORG_CN" VARCHAR2(128),
"TEL" VARCHAR2(30),
"NOTICEFROM" DATE,
"NOTICETO" DATE,
"NAME" VARCHAR2(200),
"HANDLREST" VARCHAR2(512),
"HANDLREA" VARCHAR2(64),
"HANDLREACN" VARCHAR2(200),
"JUDAUTH" VARCHAR2(64),
"JUDAUTH_CN" VARCHAR2(128),
"JUDDATE" DATE,
"S_EXT_FROMNODE" VARCHAR2(6),
"S_EXT_DATATIME" TIMESTAMP(6),
"USERNAME" VARCHAR2(200),
"dstate" VARCHAR2(1),
"create_by" VARCHAR2(36),
"create_time" DATE,
"update_by" VARCHAR2(36),
"update_time" DATE,
CONSTRAINT "PK_E_SUSNATE_OPERREG" NOT CLUSTER PRIMARY KEY("PERSONATEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "AICCS"."INDEX3111558079" ON "AICCS"."e_susnate_operreg"("PERSONATEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."ENT_ADDRESS_CHANGE_LOG"
(
"ID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(100),
"BEFOREADDRESS" VARCHAR(4000),
"AFTERADDRESS" VARCHAR(4000),
"CHANGEDATE" TIMESTAMP(0),
"S_EXT_FROMNODE" VARCHAR(12),
"S_EXT_DATATIME" TIMESTAMP(0),
"STATUS" VARCHAR(2) DEFAULT '0',
"ASSIGNTIME" TIMESTAMP(0),
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."ENT_ADDRESS_CHANGE_LOG" IS '市场主体地址变更记录表';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_CHANGE_LOG"."AFTERADDRESS" IS '变更后地址';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_CHANGE_LOG"."ASSIGNTIME" IS '认领时间';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_CHANGE_LOG"."BEFOREADDRESS" IS '变更前地址';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_CHANGE_LOG"."CHANGEDATE" IS '变更时间';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_CHANGE_LOG"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_CHANGE_LOG"."CREATE_TIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_CHANGE_LOG"."ID" IS 'id';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_CHANGE_LOG"."PRIPID" IS '企业主键';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_CHANGE_LOG"."S_EXT_DATATIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_CHANGE_LOG"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_CHANGE_LOG"."STATUS" IS '0-未执行 1-已执行';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_CHANGE_LOG"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_CHANGE_LOG"."UPDATE_TIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';


CREATE TABLE "AICCS"."ENT_ADDRESS_GEO_LOG"
(
"PRIPID" VARCHAR(72) NOT NULL,
"UNISCID" VARCHAR(36),
"ADDRESS" VARCHAR(1000),
"POX" DECIMAL(10,6),
"POY" DECIMAL(10,6),
"LEVEL_WEIGHT" NUMBER(3,1),
"LEVEL_NAME" VARCHAR(20),
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."ENT_ADDRESS_GEO_LOG" IS '企业地址编码记录表';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_GEO_LOG"."ADDRESS" IS '地址';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_GEO_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_GEO_LOG"."LEVEL_NAME" IS 'api匹配等级名称';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_GEO_LOG"."LEVEL_WEIGHT" IS 'api匹配等级权重';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_GEO_LOG"."POX" IS '地址经度';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_GEO_LOG"."POY" IS '地址维度';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_GEO_LOG"."PRIPID" IS '数据id';
COMMENT ON COLUMN "AICCS"."ENT_ADDRESS_GEO_LOG"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "AICCS"."INDEX782119585131900" ON "AICCS"."ENT_ADDRESS_GEO_LOG"("ADDRESS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."INDEX_UNISCID" ON "AICCS"."ENT_ADDRESS_GEO_LOG"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."ENT_BASE_EXPELLED_INFO"
(
"ID" VARCHAR(36) NOT NULL,
"ENT_NAME" VARCHAR(200) NOT NULL,
"USCC" VARCHAR(18) NOT NULL,
"LEREP_NAME" VARCHAR(100) NOT NULL,
"ADDRESS" VARCHAR(2000) NOT NULL,
"IS_DELETE" VARCHAR(1) NOT NULL,
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(6),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(6),
CONSTRAINT "PK_ENT_BASE_EXPELLED_INFO" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."ENT_BASE_EXPELLED_INFO" IS '市场主体拟除名名单信息表';
COMMENT ON COLUMN "AICCS"."ENT_BASE_EXPELLED_INFO"."ADDRESS" IS '住所（经营场所）';
COMMENT ON COLUMN "AICCS"."ENT_BASE_EXPELLED_INFO"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."ENT_BASE_EXPELLED_INFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."ENT_BASE_EXPELLED_INFO"."ENT_NAME" IS '市场主体名称';
COMMENT ON COLUMN "AICCS"."ENT_BASE_EXPELLED_INFO"."ID" IS '主键ID（UUID）';
COMMENT ON COLUMN "AICCS"."ENT_BASE_EXPELLED_INFO"."IS_DELETE" IS '逻辑删除标识：0-未删除，1-已删除';
COMMENT ON COLUMN "AICCS"."ENT_BASE_EXPELLED_INFO"."LEREP_NAME" IS '法定代表人（负责人、经营者）';
COMMENT ON COLUMN "AICCS"."ENT_BASE_EXPELLED_INFO"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."ENT_BASE_EXPELLED_INFO"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "AICCS"."ENT_BASE_EXPELLED_INFO"."USCC" IS '统一社会信用代码';


CREATE TABLE "AICCS"."ENTLOCK"
(
"ELID" VARCHAR(80) NOT NULL,
"PRIPID" VARCHAR(48),
"UNISCID" VARCHAR(36),
"ENTNAME" VARCHAR(200),
"REGNO" VARCHAR(60),
"LOCKREASON" VARCHAR(4000),
"LOCKUSERNAME" VARCHAR(40),
"LOCKUSERID" VARCHAR(80),
"LOCKUSERDEPTID" VARCHAR(80),
"LOCKUSERUNITID" VARCHAR(80),
"LOCKSTARTDATE" TIMESTAMP(6),
"LOCKENDDATE" TIMESTAMP(6),
"UNLUSERNAME" VARCHAR(40),
"UNLUSERID" VARCHAR(80),
"ULDEPTID" VARCHAR(80),
"ULUNITID" VARCHAR(40),
"UNLDATE" TIMESTAMP(6),
"LOCKTIME" TIMESTAMP(0),
"LOCKTYPE" VARCHAR(6),
"LOCKSTATE" VARCHAR(1),
"INPUTDATE" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0),
"FILEPATH" VARCHAR(400),
"FILENAME" VARCHAR(400),
"ULOCKREASON" VARCHAR(4000),
"PUNISHFROM" VARCHAR(510),
"STATE" VARCHAR(1) DEFAULT '0',
"UNLOCKTIME" TIMESTAMP(0),
"MEASURE" VARCHAR(510),
"ULOCKSPECIFICREASON" VARCHAR(200),
"ULSRCODE" VARCHAR(20),
"REPRESENTATIVE" VARCHAR(200),
"REGORG" VARCHAR(200),
"CERNO" VARCHAR(200),
"CERTYPE" VARCHAR(200),
"ISDELETE" VARCHAR(4),
"DEPARTMENT" VARCHAR(200),
"TFLOCKID" VARCHAR(200),
"WARNINGCONTENT" VARCHAR(510),
NOT CLUSTER PRIMARY KEY("ELID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."ENTLOCK" IS '业户锁定';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."CERNO" IS '法定代表人证件号';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."CERTYPE" IS '证件类型';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."DEPARTMENT" IS '来源部门';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."ELID" IS '标识id';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."ENTNAME" IS '业户名称';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."FILENAME" IS '文件名';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."FILEPATH" IS '文件路径';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."INPUTDATE" IS '录入时间';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."ISDELETE" IS '是否删除 0未删除，1已删除';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."LAUPTIME" IS '最后修改时间';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."LOCKENDDATE" IS '锁定结束日期';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."LOCKREASON" IS '锁定原因';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."LOCKSTARTDATE" IS '锁定开始日期';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."LOCKSTATE" IS '锁定状态（1、有效；2、无效）';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."LOCKTIME" IS '锁定时间';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."LOCKTYPE" IS '锁定类型（001、警告；002、股权锁定；003、完全锁定；004、注销锁定；005变更事项锁定）';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."LOCKUSERDEPTID" IS '锁定人员部门ID';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."LOCKUSERID" IS '锁定人员ID';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."LOCKUSERNAME" IS '锁定人员姓名';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."LOCKUSERUNITID" IS '锁定人员单位ID';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."MEASURE" IS '惩戒措施';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."PUNISHFROM" IS '惩戒来源';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."REGORG" IS '登记机关';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."REPRESENTATIVE" IS '法定代表人';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."STATE" IS '状态：'0'未解锁 '1'拟解锁'2'解锁中'3'已解锁';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."TFLOCKID" IS '泰富锁定id';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."ULDEPTID" IS '解锁人员部门ID';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."ULOCKREASON" IS '解锁原因';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."ULOCKSPECIFICREASON" IS '解锁具体原因';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."ULSRCODE" IS '锁定具体原因代码值';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."ULUNITID" IS '解锁人员单位ID';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."UNLDATE" IS '解锁操作日期';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."UNLOCKTIME" IS '解锁时间';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."UNLUSERID" IS '解锁人员ID';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."UNLUSERNAME" IS '解锁人员姓名';
COMMENT ON COLUMN "AICCS"."ENTLOCK"."WARNINGCONTENT" IS '警示内容';

CREATE OR REPLACE  INDEX "AICCS"."IDX_CERNO_ENTLOCK_INDEX" ON "AICCS"."ENTLOCK"("CERNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."ENTWX_DAILY"
(
"JOURNAL_UUID" VARCHAR(256) NOT NULL,
"TEMPLATE_NAME" VARCHAR(510),
"USER_ID" VARCHAR(256),
"USER_NAME" VARCHAR(510),
"REPORT_TIME" TIMESTAMP(0),
"SUMMARY" VARCHAR(4000),
"PLAN" VARCHAR(2000),
"OTHER" VARCHAR(2000),
"CREATE_BY" VARCHAR(64),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(64),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("JOURNAL_UUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."EX_GONGAN_123_XDZKSSXQ"
(
"S_GUID" VARCHAR(38) DEFAULT NEWID() NOT NULL,
"S_CREATION_TIME" TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6) DEFAULT SYSTIMESTAMP,
"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),
"SYSTEMID" VARCHAR(50),
"SJXZQY_DZBM" VARCHAR(36),
"SJXZQY_DM" VARCHAR(6),
"SJXZQY_MC" VARCHAR(50),
"DZYSLXDM" VARCHAR(2),
"DZBM" VARCHAR(36),
"SSXQDM" VARCHAR(6),
"SSXQMC" VARCHAR(100),
"SSXQQC" VARCHAR(200),
"DZMC" VARCHAR(200),
"BMJC" VARCHAR(100),
"SYZT" VARCHAR(2),
"PFLB" VARCHAR(2),
"CXZT" VARCHAR(2),
"CXLB" VARCHAR(2),
"DJSJ" DATE,
"XGSJ" DATE,
"CXSJ" DATE,
"ZHGXSJ" DATE,
"GZDB_ADDTIME" TIMESTAMP(6),
CONSTRAINT "PK_EX_GONGAN_123_XDZKSSXQ" CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."EX_GONGAN_124_XDZKXZJD"
(
"S_GUID" VARCHAR(38) DEFAULT NEWID() NOT NULL,
"S_CREATION_TIME" TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6) DEFAULT SYSTIMESTAMP,
"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),
"SYSTEMID" VARCHAR(50),
"SJXZQY_DZBM" VARCHAR(36),
"SJXZQY_DM" VARCHAR(6),
"SJXZQY_MC" VARCHAR(50),
"DZYSLXDM" VARCHAR(2),
"DZBM" VARCHAR(36),
"XZJDDM" VARCHAR(9),
"XZJDMC" VARCHAR(100),
"XZJDQC" VARCHAR(200),
"DZMC" VARCHAR(200),
"BMJC" VARCHAR(100),
"SYZT" VARCHAR(2),
"PFLB" VARCHAR(2),
"CXZT" VARCHAR(2),
"CXLB" VARCHAR(2),
"DJSJ" DATE,
"XGSJ" DATE,
"CXSJ" DATE,
"ZHGXSJ" DATE,
"GZDB_ADDTIME" TIMESTAMP(6),
CONSTRAINT "EX_GONGAN_124_XDZKXZJD_PK" CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."EX_GONGAN_125_XDZKSQCJWH"
(
"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),
"SYSTEMID" VARCHAR2(50),
"SJXZQY_DZBM" VARCHAR2(36),
"SJXZQY_DM" VARCHAR2(15),
"SJXZQY_MC" VARCHAR2(50),
"DZYSLXDM" VARCHAR2(2),
"DZBM" VARCHAR2(36),
"SQCJDM" VARCHAR2(15),
"SQCJMC" VARCHAR2(100),
"SQCJQC" VARCHAR2(100),
"DZMC" VARCHAR2(200),
"DMJC" VARCHAR2(50),
"BMJC" VARCHAR2(100),
"DYCXSXDM" VARCHAR2(3),
"SYZT" VARCHAR2(2),
"PFLB" VARCHAR2(2),
"CXZT" VARCHAR2(2),
"CXLB" VARCHAR2(2),
"DJSJ" DATE,
"XGSJ" DATE,
"CXSJ" DATE,
"ZHGXSJ" DATE,
"GZDB_ADDTIME" TIMESTAMP(6),
CONSTRAINT "EX_GONGAN_125_XDZKSQCJWH_PK" CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."EX_GONGAN_128_XDZKDYFW"
(
"S_GUID" VARCHAR(50) DEFAULT SYS_GUID() NOT NULL,
"S_CREATION_TIME" TIMESTAMP(6) DEFAULT SYSTIMESTAMP NOT NULL,
"S_LAST_UPDATED" TIMESTAMP(6) DEFAULT SYSTIMESTAMP,
"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),
"SYSTEMID" VARCHAR(50),
"DZBM" VARCHAR(36),
"DZYSLXDM" VARCHAR(2),
"SSSSXQ" VARCHAR(6),
"SSXZJD" VARCHAR(9),
"SSSQCJ_DM" VARCHAR(15),
"SSSQCJ_DZBM" VARCHAR(50),
"SSJZW_DZBM" VARCHAR(50),
"SSJZW_DZMC" VARCHAR(200),
"SSMLP_DZBM" VARCHAR(50),
"SSFJDM" VARCHAR(12),
"SSPCSDM" VARCHAR(12),
"SSJWQDM" VARCHAR(50),
"SZLC" VARCHAR(50),
"FWYT" VARCHAR(2),
"DYFWH" VARCHAR(100),
"DYFWBC" VARCHAR(100),
"DZMC" VARCHAR(200),
"QHNXXDZ" VARCHAR(200),
"SYZT" VARCHAR(8),
"ZBX" VARCHAR(2),
"HZB" VARCHAR(20),
"ZZB" VARCHAR(20),
"HZBC" VARCHAR(20),
"ZZBC" VARCHAR(20),
"CXZT" VARCHAR(2),
"DJSJ" DATE,
"XGSJ" DATE,
"CXSJ" DATE,
"YYWXTDZBM" VARCHAR(128),
"ZHGXSJ" DATE,
"GZDB_ADDTIME" TIMESTAMP(6),
"LCLX" VARCHAR(2),
CONSTRAINT "EX_GONGAN_128_XDZKDYFW_PK" CLUSTER PRIMARY KEY("S_GUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."FILE_UPLOAD_RECORD"
(
"ID" VARCHAR2(64) NOT NULL,
"PRIPID" VARCHAR2(50),
"UNISCID" VARCHAR2(20),
"ENTNAME" VARCHAR2(200),
"REGNO" VARCHAR2(50),
"UPLOAD_DIR" VARCHAR2(500),
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"UPDATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"ISYN" CHAR(1) DEFAULT 'N',
"MIGRATIONTYPE" VARCHAR2(50),
"RECONCILIATIONPAR" VARCHAR2(2000),
"PROCESSRECORD" VARCHAR2(4000),
"MIN_ID" VARCHAR2(64),
"MOUT_ID" VARCHAR2(64),
"ENTNAMEBF" VARCHAR2(200),
CONSTRAINT "PK_FILE_UPLOAD_RECORD" CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."FORCE_LOGOUT_NOTICE"
(
"FORCEID" VARCHAR2(32) NOT NULL,
"BIZSEQID" VARCHAR2(36) NOT NULL,
"NOTICETITLE" VARCHAR2(200) NOT NULL,
"NOTICECONTENT" VARCHAR2(4000) NOT NULL,
"JUDAUTH" VARCHAR2(64),
"JUDAUTH_CN" VARCHAR2(128),
"NOTICEFROM" DATE NOT NULL,
"NOTICETO" DATE NOT NULL,
"S_EXT_FROMNODE" VARCHAR2(6),
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP NOT NULL,
"LAUPTIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP NOT NULL,
CONSTRAINT "PK_FORCE_LOGOUT_NOTICE" CLUSTER PRIMARY KEY("FORCEID"),
CONSTRAINT "CK_NOTICE_DATE" CHECK(NOTICETO >= NOTICEFROM)) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE"."BIZSEQID" IS '业务ID';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE"."FORCEID" IS '拟强制注销公告ID，作为主键唯一标识每条公告记录';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE"."JUDAUTH" IS '作出决定机关的编码，代码标识符：C01006，数据元标识符：D01016';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE"."JUDAUTH_CN" IS '作出决定机关的中文全称，与JUDAUTH编码一一对应';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE"."NOTICECONTENT" IS '公告详细内容，包含拟强制注销的企业名单、依据、异议方式等信息';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE"."NOTICEFROM" IS '公告开始日期，数据元标识符：D05030，用于界定公告的有效起始时间';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE"."NOTICETITLE" IS '公告标题，格式要求：XXX市场监管局（或行政审批局）XXXX年XX月XX日拟强制注销公告';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE"."NOTICETO" IS '公告结束日期，数据元标识符：D05031，用于界定公告的有效截止时间';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE"."S_EXT_DATATIME" IS '数据初始化或更新的时间戳，记录数据的最新操作时间';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE"."S_EXT_FROMNODE" IS '二级部署时区分不同地市系统的标识，采用6位登记机关编码';

CREATE OR REPLACE  INDEX "AICCS"."IDX_FORCE_LOGOUT_NOTICE_FORCEID" ON "AICCS"."FORCE_LOGOUT_NOTICE"("FORCEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_FORCE_LOGOUT_NOTICE_BIZSEQID" ON "AICCS"."FORCE_LOGOUT_NOTICE"("BIZSEQID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"
(
"FORCERESID" VARCHAR2(32) NOT NULL,
"FORCEID" VARCHAR2(32),
"BIZSEQID" VARCHAR2(36) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(200),
"UNISCID" VARCHAR2(18),
"ENTTYPE" VARCHAR2(2),
"ENTTYPE_CN" VARCHAR2(64),
"STATUS" VARCHAR2(1),
"ISREMOVE" VARCHAR2(1),
"REMNO" INTEGER,
"REMOVEREASON" VARCHAR2(512),
"REMOVETIME" TIMESTAMP(6),
"IS_CANCEL_NOTICE" VARCHAR2(1),
"INTOSPONSOR" VARCHAR2(64),
"INTOSPONSORID" VARCHAR2(32),
"REMHANDLER" VARCHAR2(64),
"ISDECISIONPUBLISH" VARCHAR2(1),
"DECISIONPUBLISHDATE" DATE,
"NOOPENSTATE" VARCHAR2(1),
"DECWRITSTARTNO" INTEGER,
"DECFIRSTWRIT" VARCHAR2(64),
"HANDLEORG" VARCHAR2(64),
"HANDLEORGCN" VARCHAR2(128),
"REGORG" VARCHAR2(64),
"REGORG_CN" VARCHAR2(128),
"DECDATE" DATE,
"ANNDATE" DATE,
"NOTICEFROM" DATE,
"NOTICETO" DATE,
"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,
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"LAUPTIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT "PK_FORCE_LOGOUT_DETAIL" CLUSTER PRIMARY KEY("FORCERESID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."ANNDATE" IS '公告正式发布的日期，数据元标识符：D05015，状态：废除，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."BIZSEQID" IS '业务ID';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."CREATE_TIME" IS '记录创建时间';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."DECDATE" IS '作出强制注销决定的日期，数据元标识符：D05003，状态：废除，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."DECFIRSTWRIT" IS '第一份决定书文书号';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."DECISIONPUBLISHDATE" IS '决定公示日期';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."DECWRITSTARTNO" IS '决定书起始流水号';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."DOM" IS '企业的法定注册地址，数据元标识符：D04001，新增字段，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."ENDFORCERRA" IS '终止拟强制注销的原因编码，代码标识符：C13043，新增字段；仅当FORCERES=“2”时填写';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."ENTNAME" IS '企业或机构的法定全称，数据元标识符：D01003，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."ENTTYPE" IS '市场主体类型编码';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."ENTTYPE_CN" IS '市场主体类型中文名称，与ENTTYPE编码一一对应';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCEID" IS '拟强制注销公告主键，关联公告主表（FORCE_LOGOUT_NOTICE）的FORCEID字段';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCEREGOPI" IS '登记意见说明，新增字段，固定值为“拟强制注销”，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCERES" IS '拟强制注销的处理结果编码，代码标识符：C13044，新增字段，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCERESDATE" IS '处理结果的确认日期，新增字段，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCERESID" IS '拟强制注销公告详细ID（主键）';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCERRA" IS '拟强制注销的法定事由编码，代码标识符：C13042；指标项名称由“强制注销事由”调整而来，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."FORCERRADATE" IS '法定事由对应的发生日期，状态：废除，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."HANDLEORG" IS '处理机关编码';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."HANDLEORGCN" IS '处理机关中文全称，与HANDLEORG编码一一对应';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."INTOSPONSOR" IS '主办人姓名';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."INTOSPONSORID" IS '主办人ID';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."IS_CANCEL_NOTICE" IS '是否注销公告：0=否，1=是';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."ISDECISIONPUBLISH" IS '是否决定公示："0"=未决定公示，"1"=决定公示中';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."ISREMOVE" IS '是否剔除："0"=未剔除，"1"=已剔除';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."LAUPTIME" IS '记录最后更新时间，更新时自动刷新';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."LEREP" IS '企业法定代表人姓名，数据元标识符：D02022，新增字段，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."NOOPENSTATE" IS '非开业状态："0"=开业，"1"=非开业';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."NOTICEFROM" IS '公告有效起始日期，数据元标识符：D05030，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."NOTICETO" IS '公告有效截止日期，数据元标识符：D05031，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."PRIPID" IS '主体身份唯一标识代码，代码标识符：C01007，数据元标识符：DA001';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."REGNO" IS '企业原注册号，代码标识符：C01008，数据元标识符：D13001，新增字段，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."REGORG" IS '企业登记机关编码，代码标识符：C01006，数据元标识符：D13023，状态：废除，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."REGORG_CN" IS '登记机关的中文全称，与REGORG编码一一对应，状态：废除，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."REMHANDLER" IS '剔除处理人姓名';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."REMNO" IS '剔除批次';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."REMOVEREASON" IS '剔除原因';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."REMOVETIME" IS '剔除时间';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."S_EXT_DATATIME" IS '数据初始化或更新的时间戳，记录数据最新操作时间（默认当前时间戳）';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."S_EXT_FROMNODE" IS '二级部署时的地市标识，采用6位登记机关编码区分不同地市数据';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."STATUS" IS '业务状态："0"=导入名单';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."UNISCID" IS '企业的统一社会信用代码，代码标识符：C01018，数据元标识符：D01012，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"."WEBSITE" IS '异议提交的网址（信息化系统路径），指标项名称由“异议途径”调整而来，需公示';

CREATE OR REPLACE  INDEX "AICCS"."IDX_FORCE_DETAIL_UNISCID" ON "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_FORCE_DETAIL_PRIPID" ON "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_FORCE_DETAIL_STATUS" ON "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"("STATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_FORCE_LOGOUT_NOTICE_DETAIL_BIZSEQID" ON "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"("BIZSEQID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_FORCE_LOGOUT_NOTICE_DETAIL_FORCERESID" ON "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"("FORCERESID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_FORCE_DETAIL_FORCERES" ON "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"("FORCERES" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_FORCE_LOGOUT_NOTICE_DETAIL_FORCEID" ON "AICCS"."FORCE_LOGOUT_NOTICE_DETAIL"("FORCEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."FORCE_LOGOUT_SERV_NOTICE"
(
"NOTICEID" VARCHAR2(32) NOT NULL,
"BIZSEQID" VARCHAR2(36) NOT NULL,
"NOTICETITLE" VARCHAR2(200) NOT NULL,
"NOTICECONTENT" VARCHAR2(4000) NOT NULL,
"JUDAUTH" VARCHAR2(64),
"JUDAUTH_CN" VARCHAR2(128),
"ANNDATE" DATE NOT NULL,
"NOTICEFROM" DATE NOT NULL,
"NOTICETO" DATE NOT NULL,
"WEBSITE" VARCHAR2(512),
"S_EXT_FROMNODE" VARCHAR2(6),
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP NOT NULL,
"LAUPTIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP NOT NULL,
CONSTRAINT "PK_FORCE_SERV_NOTICE" CLUSTER PRIMARY KEY("NOTICEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_SERV_NOTICE"."ANNDATE" IS '公告正式发布的日期，数据元标识符：D05015，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_SERV_NOTICE"."BIZSEQID" IS '业务ID';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_SERV_NOTICE"."JUDAUTH" IS '作出强制注销决定的机关编码，代码标识符：C01006，数据元标识符：D01016，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_SERV_NOTICE"."JUDAUTH_CN" IS '作出决定机关的中文全称，与JUDAUTH编码一一对应';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_SERV_NOTICE"."NOTICECONTENT" IS '公告详细内容，包含送达对象、送达依据、异议方式等信息，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_SERV_NOTICE"."NOTICEFROM" IS '公告有效起始日期，数据元标识符：D05030，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_SERV_NOTICE"."NOTICEID" IS '强制注销登记决定书送达公告唯一标识ID，作为主键';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_SERV_NOTICE"."NOTICETITLE" IS '公告标题，格式要求：xxx市场监管局（或行政审批局）xxxx年xx月xx日强制注销登记决定书送达公告，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_SERV_NOTICE"."NOTICETO" IS '公告有效截止日期，数据元标识符：D05031，需公示';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_SERV_NOTICE"."S_EXT_DATATIME" IS '数据初始化或更新的时间戳，记录数据最新操作时间';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_SERV_NOTICE"."S_EXT_FROMNODE" IS '二级部署时区分不同地市系统的标识，采用6位登记机关编码';
COMMENT ON COLUMN "AICCS"."FORCE_LOGOUT_SERV_NOTICE"."WEBSITE" IS '决定书的信息化系统下载地址，由公司登记机关指定，需公示';

CREATE OR REPLACE  INDEX "AICCS"."IDX_FORCE_LOGOUT_SERV_NOTICE_NOTICEID" ON "AICCS"."FORCE_LOGOUT_SERV_NOTICE"("NOTICEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_FORCE_LOGOUT_SERV_NOTICE_BIZSEQID" ON "AICCS"."FORCE_LOGOUT_SERV_NOTICE"("BIZSEQID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."FRAUD_BATCH_BASEINFO"
(
"ID" VARCHAR(100) NOT NULL,
"PRIPID" VARCHAR(100),
"UNISCID" VARCHAR(100),
"REGNO" VARCHAR(72),
"ENTNAME" VARCHAR(400),
"LEREP" VARCHAR(400),
"DOM" VARCHAR(4000),
"REGORG" VARCHAR(100),
"REGORG_CN" VARCHAR(100),
"ISNB" VARCHAR(20),
"ISREMOVE" VARCHAR(20),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."FRAUD_BATCH_BASEINFO" IS '批量撤销登记关联主体表';
COMMENT ON COLUMN "AICCS"."FRAUD_BATCH_BASEINFO"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."FRAUD_BATCH_BASEINFO"."DOM" IS '经营地址';
COMMENT ON COLUMN "AICCS"."FRAUD_BATCH_BASEINFO"."ENTNAME" IS '主体名称';
COMMENT ON COLUMN "AICCS"."FRAUD_BATCH_BASEINFO"."ISNB" IS '是否年报';
COMMENT ON COLUMN "AICCS"."FRAUD_BATCH_BASEINFO"."ISREMOVE" IS '是否剔除';
COMMENT ON COLUMN "AICCS"."FRAUD_BATCH_BASEINFO"."LEREP" IS '法定代表人';
COMMENT ON COLUMN "AICCS"."FRAUD_BATCH_BASEINFO"."PRIPID" IS '企业主键';
COMMENT ON COLUMN "AICCS"."FRAUD_BATCH_BASEINFO"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."FRAUD_BATCH_BASEINFO"."REGORG" IS '登记机关';
COMMENT ON COLUMN "AICCS"."FRAUD_BATCH_BASEINFO"."REGORG_CN" IS '登记机关';
COMMENT ON COLUMN "AICCS"."FRAUD_BATCH_BASEINFO"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."FRAUD_BATCH_BASEINFO"."UPDATE_TIME" IS '更新时间';


CREATE TABLE "AICCS"."GTNBLY"
(
"UNISCID" VARCHAR(100) NOT NULL,
NOT CLUSTER PRIMARY KEY("UNISCID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."GTNBLY" IS '个体户年报列入名单';
COMMENT ON COLUMN "AICCS"."GTNBLY"."UNISCID" IS 'ID';


CREATE TABLE "AICCS"."GZAICCODE"
(
"SREGORGCODE" VARCHAR(30) NOT NULL,
"SREGORGNAME" VARCHAR(100),
"SPARENTCODE" VARCHAR(30),
"BEND" VARCHAR(1),
"SLEVEL" VARCHAR(1),
"SCOUNTRYCODE" VARCHAR(20),
"SCOUNTRYEXTCODE" VARCHAR(40),
"NINDEX" DECIMAL(5,0),
"BSTOP" VARCHAR(1) NOT NULL,
"SHORTNAME" VARCHAR(20),
"ORGUNITID" VARCHAR(72),
NOT CLUSTER PRIMARY KEY("SREGORGCODE")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."GZAICCODE"."ORGUNITID" IS '本地组织架构单位ID';


CREATE TABLE "AICCS"."HEARINGNOTICE"
(
"HEARINGNOTICEID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PRIPID" VARCHAR(72),
"PUNISHCONTENT" VARCHAR(1000),
"ILLEGALFACTS" VARCHAR(1000),
"PUNISHREASON" VARCHAR(1000),
"PUNISHBASIS" VARCHAR(1000),
"RIGHTBASIS" VARCHAR(1000),
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"REMARKS" VARCHAR(510),
"AREACODE" VARCHAR(6),
"HEARINGCONTENT" TEXT,
NOT CLUSTER PRIMARY KEY("HEARINGNOTICEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."HEARINGNOTICE"."AREACODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."HEARINGNOTICE"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."HEARINGNOTICE"."HEARINGCONTENT" IS '告知书内容';
COMMENT ON COLUMN "AICCS"."HEARINGNOTICE"."HEARINGNOTICEID" IS '听证告知书id';
COMMENT ON COLUMN "AICCS"."HEARINGNOTICE"."ILLEGALFACTS" IS '违法事实';
COMMENT ON COLUMN "AICCS"."HEARINGNOTICE"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."HEARINGNOTICE"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."HEARINGNOTICE"."PUNISHBASIS" IS '处罚依据';
COMMENT ON COLUMN "AICCS"."HEARINGNOTICE"."PUNISHCONTENT" IS '处罚内容';
COMMENT ON COLUMN "AICCS"."HEARINGNOTICE"."PUNISHREASON" IS '处罚理由';
COMMENT ON COLUMN "AICCS"."HEARINGNOTICE"."REMARKS" IS '备注';
COMMENT ON COLUMN "AICCS"."HEARINGNOTICE"."RIGHTBASIS" IS '权利依据';


CREATE TABLE "AICCS"."HGSXRZQYMD"
(
"ID" VARCHAR(40) NOT NULL,
"HGBM" VARCHAR(200),
"QYZWMC" VARCHAR(510),
"ZZJGDM" VARCHAR(200),
"SCZCRQ" DATE,
"XYDJ" VARCHAR(200),
"DJRDSJ" DATE,
"FRDB" VARCHAR(200),
"ZCDZ" VARCHAR(2000),
"HYZL" VARCHAR(100),
"ZXBZ" VARCHAR(200),
"TRANS_DM_TONG_INSERDATE" DATE,
"TOPIC_UPDATE_TIME" DATE,
"TOPIC_ADD_TIME" DATE,
"OPERATIONTYPE" VARCHAR(1),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."HGSXRZQYMD" IS '海关失信认证企业名单（海关总署）';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."DJRDSJ" IS '等级认定时间';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."FRDB" IS '法人代表';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."HGBM" IS '海关编码';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."HYZL" IS '行业种类';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."ID" IS '主键id';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."OPERATIONTYPE" IS '操作类型（内部字段）';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."QYZWMC" IS '企业中文名称';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."SCZCRQ" IS '首次注册日期';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."TOPIC_ADD_TIME" IS '添加时间（内部字段）';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."TOPIC_UPDATE_TIME" IS '更新时间（内部字段）';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."TRANS_DM_TONG_INSERDATE" IS '入库时间';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."XYDJ" IS '信用等级';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."ZCDZ" IS '注册地址';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."ZXBZ" IS '注销标志';
COMMENT ON COLUMN "AICCS"."HGSXRZQYMD"."ZZJGDM" IS '组织机构代码';


CREATE TABLE "AICCS"."HOLIDAY_INFO"
(
"ID" VARCHAR(72) NOT NULL,
"HOLIDAY_NAME" VARCHAR(36),
"HOLIDAY_DATE" VARCHAR(510),
"TYPE" CHAR(1) NOT NULL,
"YEAR" INT,
"IS_DISABLED" BIT DEFAULT 0,
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."HOLIDAY_INFO" IS '节假日信息';
COMMENT ON COLUMN "AICCS"."HOLIDAY_INFO"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."HOLIDAY_INFO"."CREATE_TIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."HOLIDAY_INFO"."HOLIDAY_DATE" IS '节假日时间';
COMMENT ON COLUMN "AICCS"."HOLIDAY_INFO"."HOLIDAY_NAME" IS '节假日名称';
COMMENT ON COLUMN "AICCS"."HOLIDAY_INFO"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."HOLIDAY_INFO"."IS_DISABLED" IS '是否禁用';
COMMENT ON COLUMN "AICCS"."HOLIDAY_INFO"."TYPE" IS '1-节假日 2-工作日';
COMMENT ON COLUMN "AICCS"."HOLIDAY_INFO"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."HOLIDAY_INFO"."UPDATE_TIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."HOLIDAY_INFO"."YEAR" IS '年份';


CREATE TABLE "AICCS"."HOLIDAYS"
(
"ID" VARCHAR(36) NOT NULL,
"DATE" VARCHAR(255),
"TYPE" VARCHAR(255),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."HOLIDAYS"."DATE" IS '日期';
COMMENT ON COLUMN "AICCS"."HOLIDAYS"."ID" IS '节假日id';
COMMENT ON COLUMN "AICCS"."HOLIDAYS"."TYPE" IS '类型：‘1’节假日 ‘2’补班日';


CREATE TABLE "AICCS"."ILLEGALACT"
(
"ILLEGACTID" VARCHAR(100) NOT NULL,
"CASEID" VARCHAR(100),
"ILLEGACTTYPEL" VARCHAR(510),
"ILLEGACTTYPEM" VARCHAR(510),
"ILLEGACTTYPES" VARCHAR(510),
"ILLEGACT" VARCHAR(510),
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
NOT CLUSTER PRIMARY KEY("ILLEGACTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."ILLEGALACT" IS '违法行为';
COMMENT ON COLUMN "AICCS"."ILLEGALACT"."CASEID" IS '案件id';
COMMENT ON COLUMN "AICCS"."ILLEGALACT"."ILLEGACT" IS '具体违法行为';
COMMENT ON COLUMN "AICCS"."ILLEGALACT"."ILLEGACTID" IS '违法行为id';
COMMENT ON COLUMN "AICCS"."ILLEGALACT"."ILLEGACTTYPEL" IS '违法行为大类';
COMMENT ON COLUMN "AICCS"."ILLEGALACT"."ILLEGACTTYPEM" IS '违法行为中类';
COMMENT ON COLUMN "AICCS"."ILLEGALACT"."ILLEGACTTYPES" IS '违法行为小类';
COMMENT ON COLUMN "AICCS"."ILLEGALACT"."LAUPTIME" IS '最后更新时间';


CREATE TABLE "AICCS"."LICENSE_CANCELLATION_DECLARE"
(
"RECID" VARCHAR2(32) NOT NULL,
"BIZSEQID" VARCHAR2(36) NOT NULL,
"PRIPID" VARCHAR2(36),
"ENTNAME" VARCHAR2(100) NOT NULL,
"UNISCID" VARCHAR2(18),
"REGORG" VARCHAR2(64),
"REGORG_CN" VARCHAR2(128),
"REGTYPE" VARCHAR2(2),
"LICCANREASON" VARCHAR2(1),
"ISORICOP" VARCHAR2(1),
"LICCANSTA" VARCHAR2(2000) NOT NULL,
"LICCANDATE" DATE NOT NULL,
"LICCOPYNO" VARCHAR2(50),
"S_EXT_FROMNODE" VARCHAR2(6),
"S_EXT_DATATIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP,
"CREATE_TIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP NOT NULL,
"LAUPTIME" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP NOT NULL,
CONSTRAINT "PK_LICENSE_CANCEL_DECLARE" CLUSTER PRIMARY KEY("RECID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."BIZSEQID" IS '业务ID';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."ENTNAME" IS '市场主体的法定名称，数据元标识符：DA002';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."ISORICOP" IS '营业执照正副本标识，代码标识符：C13019，数据元标识符：D13137；编码说明：1=正副本，2=正本，3=副本';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."LICCANDATE" IS '作废声明的发布日期，数据元标识符：D13134';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."LICCANREASON" IS '营业执照作废原因编码，数据元标识符：D13202；编码说明：1=无法缴回，2=拒不缴回，3=未缴回';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."LICCANSTA" IS '作废声明的详细内容，数据元标识符：D13133';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."LICCOPYNO" IS '营业执照副本的唯一编号，数据元标识符：D13136';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."PRIPID" IS '市场主体身份唯一标识代码，代码标识符：C01007，数据元标识符：DA001';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."RECID" IS '营业执照作废声明唯一标识ID，作为主键';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."REGORG" IS '市场主体登记机关编码，代码标识符：C01006，数据元标识符：DA019';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."REGORG_CN" IS '登记机关的中文全称，与REGORG编码一一对应';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."REGTYPE" IS '登记注册业务类型代码，代码标识符：C13001，数据元标识符：D13204；新增“强制注销”业务类型';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."S_EXT_DATATIME" IS '数据初始化或更新的时间戳，记录数据最新操作时间';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."S_EXT_FROMNODE" IS '二级部署时区分不同地市系统的标识，采用6位登记机关编码';
COMMENT ON COLUMN "AICCS"."LICENSE_CANCELLATION_DECLARE"."UNISCID" IS '市场主体的统一社会信用代码，代码标识符：C01018，数据元标识符：DA063';

CREATE OR REPLACE  INDEX "AICCS"."IDX_LICENSE_CANCELLATION_DECLARE_RECID" ON "AICCS"."LICENSE_CANCELLATION_DECLARE"("RECID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_LICENSE_CANCELLATION_DECLARE_PRIPID" ON "AICCS"."LICENSE_CANCELLATION_DECLARE"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_LICENSE_CANCELLATION_DECLARE_BIZSEQID" ON "AICCS"."LICENSE_CANCELLATION_DECLARE"("BIZSEQID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."LWMP"
(
"PRECINCT" VARCHAR(400) NOT NULL,
"COMMUNITY" VARCHAR(400),
"MPNAME" VARCHAR(400),
"STREETCODE" VARCHAR(400) NOT NULL,
"MPTYPE" VARCHAR(400) NOT NULL,
"MPADDRESSNUM" VARCHAR(400) NOT NULL,
NOT CLUSTER PRIMARY KEY("MPADDRESSNUM")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."LWMP" IS '荔湾门牌信息';
COMMENT ON COLUMN "AICCS"."LWMP"."COMMUNITY" IS '所属社区';
COMMENT ON COLUMN "AICCS"."LWMP"."MPADDRESSNUM" IS '门牌地址代码';
COMMENT ON COLUMN "AICCS"."LWMP"."MPNAME" IS '门牌完整名称';
COMMENT ON COLUMN "AICCS"."LWMP"."MPTYPE" IS '门牌类型';
COMMENT ON COLUMN "AICCS"."LWMP"."PRECINCT" IS '所属派出所';
COMMENT ON COLUMN "AICCS"."LWMP"."STREETCODE" IS '所属街路巷代码';


CREATE TABLE "AICCS"."NOANNUALREPORT"
(
"ID" VARCHAR(72) NOT NULL,
"PRIPID" VARCHAR(72),
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(60),
"INCLUDETYPE" VARCHAR(1),
"STATE" VARCHAR(1),
"UPDATETIME" TIMESTAMP(0),
"INSERTTIME" TIMESTAMP(0),
"REPORTYEAR" VARCHAR(20),
"DATASTATE" VARCHAR(8),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."NOANNUALREPORT" IS '拟列异主体表';
COMMENT ON COLUMN "AICCS"."NOANNUALREPORT"."DATASTATE" IS '数据状态’0‘有效 '1'无效';
COMMENT ON COLUMN "AICCS"."NOANNUALREPORT"."ID" IS '主键id';
COMMENT ON COLUMN "AICCS"."NOANNUALREPORT"."INCLUDETYPE" IS '列异类型’1‘未年报 3 公示信息隐瞒真实情况弄虚作假 4 通过登记的住所（经营场所）无法联系';
COMMENT ON COLUMN "AICCS"."NOANNUALREPORT"."INSERTTIME" IS '数据插入时间';
COMMENT ON COLUMN "AICCS"."NOANNUALREPORT"."PRIPID" IS '主体主键id';
COMMENT ON COLUMN "AICCS"."NOANNUALREPORT"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."NOANNUALREPORT"."REPORTYEAR" IS '年报提交年份';
COMMENT ON COLUMN "AICCS"."NOANNUALREPORT"."STATE" IS '列异状态’0‘未列异’1‘列异审批中’2‘已列异';
COMMENT ON COLUMN "AICCS"."NOANNUALREPORT"."UNISCID" IS '社会统一码';
COMMENT ON COLUMN "AICCS"."NOANNUALREPORT"."UPDATETIME" IS '数据更新时间';

CREATE OR REPLACE  INDEX "AICCS"."PRIPID" ON "AICCS"."NOANNUALREPORT"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."NZNBLY"
(
"UNISCID" VARCHAR(100) NOT NULL,
NOT CLUSTER PRIMARY KEY("UNISCID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."NZNBLY" IS '农专年报列入名单';
COMMENT ON COLUMN "AICCS"."NZNBLY"."UNISCID" IS 'ID';


CREATE TABLE "AICCS"."PERSONLOCK"
(
"PLID" VARCHAR(80) NOT NULL,
"IDCARDNO" VARCHAR(40) NOT NULL,
"PERNAME" VARCHAR(100) NOT NULL,
"ENTNAME" VARCHAR(1000),
"REGNO" VARCHAR(52),
"DUTY" VARCHAR(40),
"ILLEGALITEM" VARCHAR(200),
"INVOLVEDATE" TIMESTAMP(6),
"INVOLVEDMONEY" DECIMAL(15,2),
"LOCKREASON" VARCHAR(4000),
"LOCKSTARTDATE" TIMESTAMP(6),
"LOCKENDDATE" TIMESTAMP(6),
"LOCKUSERNAME" VARCHAR(40),
"LOCKUSERID" VARCHAR(80),
"LOCKUSERDEPTID" VARCHAR(40),
"LOCKUSERUNITID" VARCHAR(40),
"UNLOCKUSERNAME" VARCHAR(40),
"UNLOCKUSERID" VARCHAR(80),
"ULDEPTID" VARCHAR(40),
"ULUNITID" VARCHAR(40),
"UNLDATE" TIMESTAMP(6),
"LOCKLEVEL" VARCHAR(1),
"LOCKSTATE" VARCHAR(1),
"INPUTDATE" TIMESTAMP(6),
"RLOCKUSERNAME" VARCHAR(40),
"RLOCKUSERID" VARCHAR(80),
"RLOCKUSERUNITID" VARCHAR(80),
"RLOCKUSERDEPID" VARCHAR(80),
"RLOCKDATE" TIMESTAMP(6),
"ULOCKSEASON" VARCHAR(4000),
"ENTTYPE" VARCHAR(30),
"REGNOID" VARCHAR(80),
"LOCKDUTY" VARCHAR(20),
"WHITELOCKTYPE" VARCHAR(2),
"TFLOCKID" VARCHAR(200),
NOT CLUSTER PRIMARY KEY("PLID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."PERSONLOCK" IS '个人锁定';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."DUTY" IS '在公司职务';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."ENTNAME" IS '所属公司';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."IDCARDNO" IS '身份证号码';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."ILLEGALITEM" IS '涉嫌违法项目';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."INPUTDATE" IS '录入时间';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."INVOLVEDATE" IS '涉案日期';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."INVOLVEDMONEY" IS '涉案金额';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."LOCKDUTY" IS '锁定职务';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."LOCKENDDATE" IS '锁定结束日期';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."LOCKLEVEL" IS '1-提示;2-限制';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."LOCKREASON" IS '锁定原因';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."LOCKSTARTDATE" IS '锁定开始日期';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."LOCKSTATE" IS '0-未锁;1-锁定';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."LOCKUSERDEPTID" IS '锁定人员部门ID';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."LOCKUSERID" IS '锁定人员ID';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."LOCKUSERNAME" IS '锁定人员姓名';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."LOCKUSERUNITID" IS '锁定人员单位ID';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."PERNAME" IS '姓名';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."PLID" IS '标识ID';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."REGNO" IS '所属公司注册号';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."TFLOCKID" IS '泰富锁定id';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."ULDEPTID" IS '解锁人员部门ID';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."ULUNITID" IS '解锁人员单位ID';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."UNLOCKUSERID" IS '解锁人员ID';
COMMENT ON COLUMN "AICCS"."PERSONLOCK"."UNLOCKUSERNAME" IS '解锁人员姓名';


CREATE TABLE "AICCS"."PUNISHDECISION"
(
"PUNISHDECISIONID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PRIPID" VARCHAR(72),
"CASEFROMSOON" VARCHAR(1000),
"CASEFACTS" VARCHAR(1000),
"EVIDENCES" VARCHAR(1000),
"PUNISHNOTICESOON" VARCHAR(1000),
"ILLEGALACTSOON" VARCHAR(1000),
"DISCRETIONSOON" VARCHAR(1000),
"PUNISHWAYSOON" VARCHAR(1000),
"RELIEFWAYSOON" VARCHAR(1000),
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"AREACODE" VARCHAR(6),
"PUNISHCONTENT" TEXT,
NOT CLUSTER PRIMARY KEY("PUNISHDECISIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."PUNISHDECISION" IS '批吊行政处罚决定书';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."AREACODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."CASEFACTS" IS '案件事实';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."CASEFROMSOON" IS '案件来源及调查经过';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."DISCRETIONSOON" IS '自由裁量的事实和理由';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."EVIDENCES" IS '证据证明';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."ILLEGALACTSOON" IS '违法行为性质及定性、处罚依据';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."PUNISHCONTENT" IS '决定书内容';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."PUNISHDECISIONID" IS '处罚决定书id';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."PUNISHNOTICESOON" IS '行政处罚告知情况，当事人陈述、申辩、听证意见 ，
复核以及采纳情况和理由';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."PUNISHWAYSOON" IS '行政处罚的履行方式和期限';
COMMENT ON COLUMN "AICCS"."PUNISHDECISION"."RELIEFWAYSOON" IS '救济途径和期限';


CREATE TABLE "AICCS"."PUNISHMEASURES"
(
"MEASUREID" VARCHAR(72) NOT NULL,
"MEASURE" VARCHAR(510),
"PUNISHOBJECT" VARCHAR(510),
"ILLEGALACT" VARCHAR(510),
"MEMORANDUMBASE" VARCHAR(510),
"DEPARTMENT" VARCHAR(510),
"REMARK" VARCHAR(510),
"CREATEUSERID" VARCHAR(72),
"CREATETIME" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0),
"DSTATE" VARCHAR(1) DEFAULT '0',
"UPDATEUSERID" VARCHAR(72),
"UPDATETIME" TIMESTAMP(0),
"DEPARTMENTCODE" VARCHAR(20),
NOT CLUSTER PRIMARY KEY("MEASUREID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."CREATEUSERID" IS '创建用户id';
COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."DEPARTMENT" IS '对象认定部门';
COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."DEPARTMENTCODE" IS '部门代码值';
COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."DSTATE" IS '是否删除 ‘0’未删‘1’已删';
COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."ILLEGALACT" IS '失信行为';
COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."MEASURE" IS '惩戒措施';
COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."MEASUREID" IS '惩戒措施id';
COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."MEMORANDUMBASE" IS '备忘录依据';
COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."PUNISHOBJECT" IS '惩戒对象';
COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."REMARK" IS '备注';
COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."UPDATETIME" IS '更新时间';
COMMENT ON COLUMN "AICCS"."PUNISHMEASURES"."UPDATEUSERID" IS '更新用户id';


CREATE TABLE "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"
(
"BUSI_NO" VARCHAR2(32) NOT NULL,
"SID" VARCHAR2(50) NOT NULL,
"MDMC" VARCHAR2(200),
"ZTMC" VARCHAR2(200),
"ZTLB" VARCHAR2(1),
"JCLB" VARCHAR2(1),
"TYSHXYDM" VARCHAR2(18),
"QYZCH" VARCHAR2(18),
"ZZJGDM" VARCHAR2(50),
"ZJLX" VARCHAR2(4),
"ZJHM" VARCHAR2(50),
"CSNR" CLOB,
"SJJE" VARCHAR2(50),
"JCSM" CLOB,
"QLBM" VARCHAR2(255),
"QLMC" VARCHAR2(255),
"CXCODE" VARCHAR2(32),
"CREATED_BY" VARCHAR2(36),
"CREATED_TIME" TIMESTAMP(6),
NOT CLUSTER PRIMARY KEY("BUSI_NO")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG" IS '奖惩措施反馈记录表';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."BUSI_NO" IS '业务流水号';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."CREATED_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."CREATED_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."CSNR" IS '执行措施内容（必填）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."CXCODE" IS '名单查询流水号';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."JCLB" IS '奖惩类别（必填）（1：惩戒；2：激励）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."JCSM" IS '奖惩说明（必填）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."MDMC" IS '奖惩名单名称（必填）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."QLBM" IS '事项编码（选填，执行措施对应的具体事项编码）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."QLMC" IS '事项名称（选填，执行措施对应的具体事项名称）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."QYZCH" IS '主体工商注册号（主体类别为0时，三项必填一项）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."SID" IS '执行措施编码';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."SJJE" IS '涉及金额（必填，单位为元，不涉及金额时填0）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."TYSHXYDM" IS '统一社会信用代码（主体类别为0时，三项必填一项）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."ZJHM" IS '主体证件号码（主体类别为1时必填）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."ZJLX" IS '主体证件类别（主体类别为1时必填。）（10：身份证；20：军人身份有效证件；30：港澳居民往来大陆通行证；40：台湾居民往来大陆通行证；50：护照；90：其他法定认可的证件）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."ZTLB" IS '主体类别（必填）（0：法人；1：自然人）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."ZTMC" IS '主体名称（必填）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"."ZZJGDM" IS '主体组织机构代码（主体类别为0时，三项必填一项）';

CREATE OR REPLACE  INDEX "AICCS"."MEASURE_FEEDBACK_LOG_CREATED_TIME_IDX" ON "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"("CREATED_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."MEASURE_FEEDBACK_LOG_CREATED_BY_IDX" ON "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"("CREATED_BY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."MEASURE_FEEDBACK_LOG_SID_IDX" ON "AICCS"."PUNISHMENT_MEASURE_FEEDBACK_LOG"("SID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."PUNISHMENT_SEARCH_LOG"
(
"CXCODE" VARCHAR2(32) NOT NULL,
"XXZTLB" INTEGER,
"XXZTMC" VARCHAR2(200),
"XXZTHM" VARCHAR2(32),
"RESPONSE_RESULT" CLOB,
"LOG_STATUS" VARCHAR2(1),
"CREATED_BY" VARCHAR2(32),
"CREATED_TIME" TIMESTAMP(6),
NOT CLUSTER PRIMARY KEY("CXCODE")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."PUNISHMENT_SEARCH_LOG" IS '查询奖惩名单记录表';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_SEARCH_LOG"."CREATED_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_SEARCH_LOG"."CREATED_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_SEARCH_LOG"."CXCODE" IS '名单查询流水号';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_SEARCH_LOG"."LOG_STATUS" IS '请求结果（0：失败，1：成功）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_SEARCH_LOG"."RESPONSE_RESULT" IS '响应结果';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_SEARCH_LOG"."XXZTHM" IS '信息主体号码';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_SEARCH_LOG"."XXZTLB" IS '信息主体类别（0：法人；1：自然人）';
COMMENT ON COLUMN "AICCS"."PUNISHMENT_SEARCH_LOG"."XXZTMC" IS '信息主体名称';

CREATE OR REPLACE  INDEX "AICCS"."PUNISHMENT_SEARCH_LOG_CREATED_TIME_IDX" ON "AICCS"."PUNISHMENT_SEARCH_LOG"("CREATED_TIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."PUNISHMENT_SEARCH_LOG_XXZTMC_IDX" ON "AICCS"."PUNISHMENT_SEARCH_LOG"("XXZTMC" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."PUNISHMENT_SEARCH_LOG_XXZTHM_IDX" ON "AICCS"."PUNISHMENT_SEARCH_LOG"("XXZTHM" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."PUNISHMENT_SEARCH_LOG_LOG_STATUS_IDX" ON "AICCS"."PUNISHMENT_SEARCH_LOG"("LOG_STATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."PUNISHMENT_SEARCH_LOG_CREATED_BY_IDX" ON "AICCS"."PUNISHMENT_SEARCH_LOG"("CREATED_BY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."PUNISHMENT_SEARCH_LOG_XXZTLB_IDX" ON "AICCS"."PUNISHMENT_SEARCH_LOG"("XXZTLB" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."QYNBLY"
(
"UNISCID" VARCHAR(100) NOT NULL,
NOT CLUSTER PRIMARY KEY("UNISCID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."QYNBLY" IS '企业年报列入名单';
COMMENT ON COLUMN "AICCS"."QYNBLY"."UNISCID" IS 'ID';


CREATE TABLE "AICCS"."RANINSINSPECTORS"
(
"ID" VARCHAR(72) NOT NULL,
"NAME" VARCHAR(100),
"SEX" VARCHAR(2),
"MOBTEL" VARCHAR(60),
"LAWOFFICE" VARCHAR(200),
"LAWDEP" VARCHAR(200),
"LAWPOSITION" VARCHAR(100),
"LAWCERNO" VARCHAR(200),
"LAWISSAUTH" VARCHAR(200),
"LAWEXPERT" VARCHAR(200),
"USERID" VARCHAR(72),
"DEPID" VARCHAR(72),
"DEPNAME" VARCHAR(200),
"DSTATE" VARCHAR(2),
"ORGUNITID" VARCHAR(72),
"ORGUNITTYPE" VARCHAR(32),
"CREATETIME" TIMESTAMP(0),
"UPDATETIME" TIMESTAMP(0),
"LOCDISTRICT" VARCHAR(40),
"EMAIL" VARCHAR(60),
"LANDLINE" VARCHAR(30),
"ADDRESS" VARCHAR(120),
"JOBNUM" VARCHAR(40),
"BIRTHDAY" VARCHAR(60),
"JOBNATURE" VARCHAR(100),
"REGIONID" VARCHAR(20),
"LAWDEPID" VARCHAR(72),
"SUSERID" VARCHAR(400),
"DEPARTMENTID" VARCHAR(200),
"CIVILSERVANT" VARCHAR(4),
"USERCARDID" VARCHAR(72),
"ISEEXPERT" VARCHAR(2),
"INSTYPE" VARCHAR(2),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

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


CREATE TABLE "AICCS"."RANINSRESULT"
(
"RESULTID" VARCHAR(72) NOT NULL,
"RANINSPLANID" VARCHAR(72),
"RANINSITEM" VARCHAR(28),
"RANINSTASKID" VARCHAR(36),
"RANINSITEMNAME" VARCHAR(600),
"REPID" VARCHAR(72),
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(60),
"RANINSCHECKRES" VARCHAR(1),
"REMARK" VARCHAR(2000),
"USERCARDID" VARCHAR(72),
"INSDATE" TIMESTAMP(0),
"DEPID" VARCHAR(72),
"DEPNAME" VARCHAR(200),
"REPTYPE" VARCHAR(2),
"ENTRYID" VARCHAR(72),
"DEPTYPE" VARCHAR(32),
"ISUPLOADED" DECIMAL(38,0) DEFAULT 0,
"CHECKACTIONSTATE" DECIMAL(38,0) DEFAULT 0,
"DATASOURCE" VARCHAR(20),
NOT CLUSTER PRIMARY KEY("RESULTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."INDEX_RANINSTASKID_DEPID" ON "AICCS"."RANINSRESULT"("RANINSTASKID" ASC,"DEPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."RANINSCHECKRES_IDX" ON "AICCS"."RANINSRESULT"("RANINSCHECKRES" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."INDEX_RANINSTASKID_ENTRYID" ON "AICCS"."RANINSRESULT"("RANINSTASKID" ASC,"ENTRYID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."INDEX_RANINSTASKID" ON "AICCS"."RANINSRESULT"("RANINSTASKID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."RANINSRESULT_ISUPLOADED_IDX" ON "AICCS"."RANINSRESULT"("ISUPLOADED" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."INDEX_RANINSRESULT_REPID" ON "AICCS"."RANINSRESULT"("REPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."INDEX_RANINSTASKID_REPID_DEPID" ON "AICCS"."RANINSRESULT"("RANINSTASKID" ASC,"REPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."REST_LOG"
(
"UUID" VARCHAR(64) NOT NULL,
"USERNAME" VARCHAR(64),
"DEVICE" VARCHAR(256),
"HOST" VARCHAR(40),
"URI" VARCHAR(510),
"METHOD" VARCHAR(40),
"QUERY" CLOB,
"BODY" CLOB,
"TIME_SPEND" BIGINT,
"TIME" TIMESTAMP(0),
"STATUS" INT,
"EX" CLOB,
"CREATE_BY" VARCHAR(64),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(64),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("UUID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."REST_LOG" IS '接口调用日志';
COMMENT ON COLUMN "AICCS"."REST_LOG"."BODY" IS 'Body';
COMMENT ON COLUMN "AICCS"."REST_LOG"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."REST_LOG"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."REST_LOG"."DEVICE" IS '操作设备 操作系统-浏览器';
COMMENT ON COLUMN "AICCS"."REST_LOG"."EX" IS '异常信息';
COMMENT ON COLUMN "AICCS"."REST_LOG"."HOST" IS 'IP';
COMMENT ON COLUMN "AICCS"."REST_LOG"."METHOD" IS '方法';
COMMENT ON COLUMN "AICCS"."REST_LOG"."QUERY" IS 'Query';
COMMENT ON COLUMN "AICCS"."REST_LOG"."STATUS" IS '状态码';
COMMENT ON COLUMN "AICCS"."REST_LOG"."TIME" IS '访问时间';
COMMENT ON COLUMN "AICCS"."REST_LOG"."TIME_SPEND" IS '运行耗时 单位毫秒';
COMMENT ON COLUMN "AICCS"."REST_LOG"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."REST_LOG"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "AICCS"."REST_LOG"."URI" IS 'URI';
COMMENT ON COLUMN "AICCS"."REST_LOG"."USERNAME" IS '用户名';
COMMENT ON COLUMN "AICCS"."REST_LOG"."UUID" IS '日志id';


CREATE TABLE "AICCS"."REVOKE_FRAUD_BATCH"
(
"ID" VARCHAR(100) NOT NULL,
"BIZSEQ" VARCHAR(100),
"WORKFLOWID" VARCHAR(200),
"ISCANCEL" VARCHAR(72),
"COMPLAINTREASON" VARCHAR(400),
"HANDLEREASON" VARCHAR(400),
"HANDLERESULT" VARCHAR(400),
"CXSLTZCONTENT" VARCHAR(8000),
"TZREMARKS" VARCHAR(400),
"CXSLDJCONTENT" VARCHAR(8000),
"DJREMARKS" VARCHAR(400),
"XZQH" VARCHAR(100),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_TIME" TIMESTAMP(0),
"USERID" VARCHAR(72),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."COMPLAINTREASON" IS '投诉原因';
COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."CXSLDJCONTENT" IS '案件文书临时保存文本';
COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."CXSLTZCONTENT" IS '案件文书保存文本';
COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."DJREMARKS" IS '撤销设立环节备注';
COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."HANDLEREASON" IS '处理原因';
COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."HANDLERESULT" IS '处理结果';
COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."ISCANCEL" IS '是否撤销';
COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."TZREMARKS" IS '听证环节备注';
COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."USERID" IS '用户id';
COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."WORKFLOWID" IS '流程id';
COMMENT ON COLUMN "AICCS"."REVOKE_FRAUD_BATCH"."XZQH" IS '行政区划';


CREATE TABLE "AICCS"."REVOKE_TBIZ_FRAUD"
(
"ID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"UNISCID" VARCHAR(200),
"REGNO" VARCHAR(200),
"ENTNAME" VARCHAR(400),
"USERID" VARCHAR(72),
"ORGUNITID" VARCHAR(500),
"STATUS" VARCHAR(2),
"LINKTYPE" VARCHAR(2),
"APPROVALTIME" DATE,
"INTOSPONSOR" VARCHAR(100),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_TIME" TIMESTAMP(0),
"REVOKEFRAUDCONTENT" VARCHAR(8000),
"REVOKEAPPLYNAME" VARCHAR(100),
"REVOKEAPPLYNO" VARCHAR(100),
"REMARK" VARCHAR(4000),
"UPDATE_BY" VARCHAR(100),
"CREATE_BY" VARCHAR(100),
"ENDREASON" VARCHAR(2000),
"BIZSEQOLD" VARCHAR(100),
"PRIPID" VARCHAR(100),
"CANCELDOCNO" VARCHAR(100),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."REVOKE_TBIZ_FRAUD" IS '撤销撤销案件业务表';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."APPROVALTIME" IS '核准时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."CANCELDOCNO" IS '处理文书号';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."CREATE_TIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."INTOSPONSOR" IS '主办人';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."LINKTYPE" IS '当前环节 1-业务受理 2-业务审核 3-业务审批';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."ORGUNITID" IS '创建业务人机构id';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."REMARK" IS '备注';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."REVOKEAPPLYNAME" IS '申请撤销联系人';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."REVOKEAPPLYNO" IS '申请撤销联系人电话';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."REVOKEFRAUDCONTENT" IS '撤销撤销核实情况';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."STATUS" IS '业务状态 1-受理中、2-审批中、3-已通过、4-不通过';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."UNISCID" IS '社会统一信用代码';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."UPDATE_TIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."REVOKE_TBIZ_FRAUD"."USERID" IS '创建业务人id';


CREATE TABLE "AICCS"."REVOKELIST"
(
"REVLISTID" VARCHAR(72) NOT NULL,
"UNISCID" VARCHAR(36),
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"INTOSPONSORID" VARCHAR(100),
"INTOSPONSORNAME" VARCHAR(100),
"REVOKEDATE" TIMESTAMP(0),
"REVOKEREA" VARCHAR(3),
"WRITSID" VARCHAR(72),
"CASENO" VARCHAR(100),
"STATE" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"HANDLERID" VARCHAR(100),
"HANDLERNAME" VARCHAR(100),
"HANDLERDATE" DATE,
"CANCELWRITSID" VARCHAR(72),
"PUNISHORG" VARCHAR(100),
"PUNISHORGCN" VARCHAR(510),
"CODE" VARCHAR(3),
"EXCODE" VARCHAR(3),
"MESSAGE" VARCHAR(510),
"RETURTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("REVLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."REVOKELIST" IS '批吊结果表';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."CANCELWRITSID" IS '撤销/复议/诉讼文书编号id';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."CASENO" IS '案件编号';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."CODE" IS '吊销数据推送返回结果状态码';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."ENTNAME" IS '名称';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."EXCODE" IS '吊销数据推送返回异常代码 （code=500时才有值：001企业不存在；002不允许做吊销登记（如企业状态不对、被完全锁定等）；003参数异常(如字段超长、格式不对)
）';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."HANDLERDATE" IS '撤销/复议/诉讼日期';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."HANDLERID" IS '撤销/复议/诉讼经办人id';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."HANDLERNAME" IS '撤销/复议/诉讼经办人';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."INTOSPONSORID" IS '吊销经办人id';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."INTOSPONSORNAME" IS '吊销经办人';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."MESSAGE" IS '吊销数据推送返回详细的异常信息';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."PUNISHORG" IS '处罚登记机关';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."PUNISHORGCN" IS '处罚登记机关中文名';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."RETURTIME" IS '吊销数据推送返回时间';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."REVLISTID" IS '吊销id';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."REVOKEDATE" IS '吊销日期';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."REVOKEREA" IS '吊销原因代码';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."STATE" IS ''1'吊销 '2'撤销 '3'复议'4'诉讼';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."REVOKELIST"."WRITSID" IS '处罚文书编号ID';


CREATE TABLE "AICCS"."REVOKETEMP"
(
"OPINIONID" VARCHAR(36) NOT NULL,
"WORKFLOWID" VARCHAR(36),
"OPINIONTYPE" VARCHAR(2),
"HANDLER" VARCHAR(80),
"HANDLERID" VARCHAR(36),
"OPINIONCONTENT" VARCHAR(4000),
"HANDLEDATE" TIMESTAMP(0),
"TRIALDATE" DATE,
"ISAGREE" VARCHAR(1),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"NEXTHANDLERID" VARCHAR(36),
NOT CLUSTER PRIMARY KEY("OPINIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."REVOKETEMP" IS '批吊业务信息暂存表';
COMMENT ON COLUMN "AICCS"."REVOKETEMP"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."REVOKETEMP"."HANDLEDATE" IS '承办时间';
COMMENT ON COLUMN "AICCS"."REVOKETEMP"."HANDLER" IS '承办人';
COMMENT ON COLUMN "AICCS"."REVOKETEMP"."HANDLERID" IS '承办人ID';
COMMENT ON COLUMN "AICCS"."REVOKETEMP"."ISAGREE" IS '是否同意 ”0“不同意”1“同意”2“回退';
COMMENT ON COLUMN "AICCS"."REVOKETEMP"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."REVOKETEMP"."NEXTHANDLERID" IS '下一操作人id';
COMMENT ON COLUMN "AICCS"."REVOKETEMP"."OPINIONCONTENT" IS '审批意见';
COMMENT ON COLUMN "AICCS"."REVOKETEMP"."OPINIONID" IS '意见编号';
COMMENT ON COLUMN "AICCS"."REVOKETEMP"."OPINIONTYPE" IS '意见类型(审批部门)';
COMMENT ON COLUMN "AICCS"."REVOKETEMP"."TRIALDATE" IS '送审(退卷)日期';
COMMENT ON COLUMN "AICCS"."REVOKETEMP"."WORKFLOWID" IS '工作流id';


CREATE TABLE "AICCS"."RS_DBVERSION"
(
"LAST_RSSD_VER" INT NOT NULL,
"MIN_COMPAT_VER" INT NOT NULL) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."RS_LASTCOMMIT"
(
"ORIGIN" INT NOT NULL,
"ORIGIN_QID" BINARY(36) NOT NULL,
"SECONDARY_QID" BINARY(36) NOT NULL,
"ORIGIN_TIME" TIMESTAMP(0) NOT NULL,
"DEST_COMMIT_TIME" TIMESTAMP(0) NOT NULL,
"CONN_ID" INT DEFAULT 0 NOT NULL,
"PAD1" BINARY(1) NOT NULL,
"PAD2" BINARY(1) NOT NULL,
"PAD3" BINARY(1) NOT NULL,
"PAD4" BINARY(1) NOT NULL,
"PAD5" BINARY(1) NOT NULL,
"PAD6" BINARY(1) NOT NULL,
"PAD7" BINARY(1) NOT NULL,
"PAD8" BINARY(1) NOT NULL) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."RS_MAT_STATUS"
(
"SCHEMANAME" VARCHAR(256) NOT NULL,
"TABLENAME" VARCHAR(256) NOT NULL,
"ACTION" VARCHAR(2) NOT NULL,
"STARTTIME" TIMESTAMP(0) NOT NULL,
"ENDTIME" TIMESTAMP(0),
"STATUS" VARCHAR(2) NOT NULL,
"TABLETYPE" VARCHAR(2) NOT NULL,
"COMMENTS" VARCHAR(2000),
"PERCENT" INT,
"BACKLOG" INT,
"SUBID" BINARY(8) NOT NULL) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."RS_THREADS"
(
"ID" INT NOT NULL,
"SEQ" INT NOT NULL,
"CONN_ID" INT DEFAULT 0 NOT NULL,
"PAD1" VARCHAR(1) NOT NULL,
"PAD2" VARCHAR(1) NOT NULL,
"PAD3" VARCHAR(1) NOT NULL,
"PAD4" VARCHAR(1) NOT NULL) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."RS_TICKET_HISTORY"
(
"CNT" DECIMAL(8,0) NOT NULL,
"H1" VARCHAR(20) NOT NULL,
"H2" VARCHAR(20) NOT NULL,
"H3" VARCHAR(20) NOT NULL,
"H4" VARCHAR(100) NOT NULL,
"PDB" VARCHAR(60) NOT NULL,
"PRS" VARCHAR(60) NOT NULL,
"RRS" VARCHAR(60) NOT NULL,
"RDB" VARCHAR(60) NOT NULL,
"PDB_T" TIMESTAMP(0) NOT NULL,
"EXEC_T" TIMESTAMP(0) NOT NULL,
"DIST_T" TIMESTAMP(0) NOT NULL,
"RSI_T" TIMESTAMP(0) NOT NULL,
"DSI_T" TIMESTAMP(0) NOT NULL,
"RDB_T" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"EXEC_B" DECIMAL(22,0) NOT NULL,
"RSI_B" DECIMAL(22,0) NOT NULL,
"DSI_TNX" DECIMAL(22,0) NOT NULL,
"DSI_CMD" DECIMAL(22,0) NOT NULL,
"TICKET" VARCHAR(2048) NOT NULL,
"CONN_ID" INT) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."STATISTICS_RESULT"
(
"ID" VARCHAR(80) NOT NULL,
"MODULE_TAG" VARCHAR(100) 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 "AICCS"."STATISTICS_RESULT" IS '定时统计结果存储表';
COMMENT ON COLUMN "AICCS"."STATISTICS_RESULT"."CREATE_TIME" IS '创建时间（统计时间）';
COMMENT ON COLUMN "AICCS"."STATISTICS_RESULT"."DATA_JSON" IS '统计结果json';
COMMENT ON COLUMN "AICCS"."STATISTICS_RESULT"."ID" IS 'id';
COMMENT ON COLUMN "AICCS"."STATISTICS_RESULT"."MODULE_TAG" IS '统计模块标识';

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


CREATE TABLE "AICCS"."STATUS_DETAIL_TEST"
(
"ID" INT IDENTITY(12, 1) NOT NULL,
"TRADE_ID" INT NOT NULL,
"STATUS_NAME" VARCHAR(20),
"BRIEF" TEXT,
"CREATE_AT" INT,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."STATUS_DETAIL_TEST" IS '交易状态详情表';
COMMENT ON COLUMN "AICCS"."STATUS_DETAIL_TEST"."BRIEF" IS '状态说明';
COMMENT ON COLUMN "AICCS"."STATUS_DETAIL_TEST"."CREATE_AT" IS '创建时间';


CREATE TABLE "AICCS"."STOP_ANNOUNCEMENT"
(
"ID" VARCHAR(36) NOT NULL,
"TABLENAME" VARCHAR(100),
"TABLEID" VARCHAR(100),
"STATUS" VARCHAR(1),
"UPDATETIME" TIMESTAMP(6),
"CREATETIME" TIMESTAMP(6),
"CREATEBY" VARCHAR(100),
"UPDATEBY" VARCHAR(100),
"SOURCE" VARCHAR(100),
"ISSYNC" VARCHAR(1),
"LAUPTIME" TIMESTAMP(6),
CONSTRAINT "STOP_ANNOUNCEMENT_PK" CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."STOP_ANNOUNCEMENT" IS '停止公告，主要由处室或相关文件要求对已公告的企业信息进行撤销停止公告，提供给到数据中心进行同步更新。';
COMMENT ON COLUMN "AICCS"."STOP_ANNOUNCEMENT"."CREATEBY" IS '创建人';
COMMENT ON COLUMN "AICCS"."STOP_ANNOUNCEMENT"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."STOP_ANNOUNCEMENT"."ID" IS '主键ID';
COMMENT ON COLUMN "AICCS"."STOP_ANNOUNCEMENT"."ISSYNC" IS '是否已抽取同步，1为是，0为否。由数据中心更新';
COMMENT ON COLUMN "AICCS"."STOP_ANNOUNCEMENT"."LAUPTIME" IS '同步更新时间';
COMMENT ON COLUMN "AICCS"."STOP_ANNOUNCEMENT"."SOURCE" IS '渠道来源：如处室发文、相关文件等';
COMMENT ON COLUMN "AICCS"."STOP_ANNOUNCEMENT"."STATUS" IS '是否有效，1为有效，0为失效';
COMMENT ON COLUMN "AICCS"."STOP_ANNOUNCEMENT"."TABLEID" IS '停止公告业务ID';
COMMENT ON COLUMN "AICCS"."STOP_ANNOUNCEMENT"."TABLENAME" IS '停止公告业务数据库表';
COMMENT ON COLUMN "AICCS"."STOP_ANNOUNCEMENT"."UPDATEBY" IS '修改人';
COMMENT ON COLUMN "AICCS"."STOP_ANNOUNCEMENT"."UPDATETIME" IS '修改时间';


CREATE TABLE "AICCS"."T_BIZ_FRAUD"
(
"ID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(72),
"USERID" VARCHAR(72),
"STATUS" VARCHAR(2),
"LINKTYPE" VARCHAR(2),
"COMPLAINTREASON" VARCHAR(1000),
"COMPLAINTTYPE" VARCHAR(100),
"ISCASE" VARCHAR(2),
"COMPLAINERTYPE" VARCHAR(2),
"COMPLAINERNAME" VARCHAR(500),
"COMPLAINERCERTTYPE" VARCHAR(20),
"COMPLAINERCERTNO" VARCHAR(100),
"COMPLAINERENTNAME" VARCHAR(500),
"COMPLAINERLEGALPHONE" VARCHAR(100),
"CONTACTS" VARCHAR(500),
"CONTACTSPHONE" VARCHAR(100),
"APPROVALTIME" DATE,
"INTOSPONSOR" VARCHAR(100),
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
"BIZHANDLERESULT" VARCHAR(100),
"COMPLAINERREGORG_CN" VARCHAR(500),
"ORGUNITID" VARCHAR(500),
"BUSINESS_TYPE" VARCHAR(4),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."T_BIZ_FRAUD" IS '涉嫌冒用登记业务表';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."APPROVALTIME" IS '核准时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."BIZHANDLERESULT" IS '处理结果-用于业务判断（撤销设立、撤销变更、撤销注销、终止撤销、不予撤销）';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."BUSINESS_TYPE" IS '业务类型';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."COMPLAINERCERTNO" IS '证件号码/统一社会信用代码';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."COMPLAINERCERTTYPE" IS '证件类型/主体类型';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."COMPLAINERENTNAME" IS '投诉企业主体名称';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."COMPLAINERLEGALPHONE" IS '投诉企业法人联系电话';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."COMPLAINERNAME" IS '自然人姓名/法人姓名';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."COMPLAINERREGORG_CN" IS '投诉企业登记机关';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."COMPLAINERTYPE" IS '投诉人类型 0-自然人 1-市场主体';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."COMPLAINTREASON" IS '投诉事由';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."COMPLAINTTYPE" IS '投诉类型';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."CONTACTS" IS '联系人';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."CONTACTSPHONE" IS '联系电话';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."CREATE_TIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."INTOSPONSOR" IS '主办人';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."ISCASE" IS '是否生成待检查任务 0-不生成 1-生成';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."LINKTYPE" IS '当前环节 1-业务受理 2-业务审核 3-业务审批 4-案件处理(录入)';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."ORGUNITID" IS '创建业务人机构id';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."STATUS" IS '业务状态 0-受理中、1-审批中、2-已通过、3-不通过';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."UPDATE_TIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."T_BIZ_FRAUD"."USERID" IS '创建业务人id';


CREATE TABLE "AICCS"."T_FRAUD_CHECK"
(
"ID" VARCHAR(64) NOT NULL,
"BIZSEQ" VARCHAR(72) NOT NULL,
"PRIPID" VARCHAR(72),
"ENTNAME" VARCHAR(500),
"USCC" VARCHAR(100),
"DOMDISTRICT" VARCHAR(24),
"SUPORG" VARCHAR(100),
"SUPORGCN" VARCHAR(500),
"CONTENT" VARCHAR(2000),
"NOTICE" VARCHAR(2000),
"REMARKS" VARCHAR(4000),
"ORG" VARCHAR(100),
"ORGCN" VARCHAR(500),
"USERNAME" VARCHAR(500),
"USERID" VARCHAR(72),
"HANDLETIME" TIMESTAMP(0),
"REASON" VARCHAR(2000) DEFAULT '撤销登记案件现场核查通知',
"STATUS" VARCHAR(20),
"SENDORG" VARCHAR(24),
"SENDUSERID" VARCHAR(72),
"INSPECTID" VARCHAR(72),
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."T_FRAUD_CHECK" IS '撤销登记案件转现场核查表';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."BIZSEQ" IS '业务主键ID';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."CONTENT" IS '重点核查内容';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."CREATE_TIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."DOMDISTRICT" IS '住所所在行政区划';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."HANDLETIME" IS '经办时间';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."ID" IS '主键ID';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."INSPECTID" IS '动态监管id';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."NOTICE" IS '现场核查通知';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."ORG" IS '来源单位';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."ORGCN" IS '来源单位名称';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."PRIPID" IS '企业主键';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."REASON" IS '原因';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."REMARKS" IS '备注';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."SENDORG" IS '分派接收监管所';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."SENDUSERID" IS '分派接收人员';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."STATUS" IS '状态';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."SUPORG" IS '属地监管所';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."SUPORGCN" IS '属地监管所名称';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."UPDATE_TIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."USCC" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."USERID" IS '经办人姓名ID';
COMMENT ON COLUMN "AICCS"."T_FRAUD_CHECK"."USERNAME" IS '经办人姓名';


CREATE TABLE "AICCS"."T_FRAUD_ENT"
(
"ID" VARCHAR(64) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PRIPID" VARCHAR(72),
"ENTNAME" VARCHAR(400),
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(100),
"REGTIME" VARCHAR(100),
"REGITEM" VARCHAR(400),
"REGORG" VARCHAR(128),
"REGORG_CN" VARCHAR(256),
"TEL" VARCHAR(60),
"NOTICEFROM" DATE,
"NOTICETO" DATE,
"NAME" VARCHAR(400),
"HANDLERESULT" VARCHAR(1024),
"HANDLEREA" VARCHAR(128),
"HANDLEREA_CN" VARCHAR(400),
"JUDAUTH" VARCHAR(128),
"JUDAUTH_CN" VARCHAR(256),
"JUDDATE" DATE,
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
"NOTICECONTENT" VARCHAR(8000),
"NOTICEDATE" DATE,
"CANCELDOCNO" VARCHAR(100),
"AUTOADDRESSLOCK" VARCHAR(2),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."T_FRAUD_ENT" IS '涉嫌冒用他人身份取得登记主体信息表';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."AUTOADDRESSLOCK" IS '该次撤销的企业住所（地址）均是否属于虚假（住宅）地址(0：否，1：是)';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."CANCELDOCNO" IS '撤销文书号';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."CREATE_TIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."HANDLEREA" IS '处理原因';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."HANDLEREA_CN" IS '处理原因（中文名称）';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."HANDLERESULT" IS '处理结果';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."ID" IS '冒用ID';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."JUDAUTH" IS '作出决定机关';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."JUDAUTH_CN" IS '作出决定机关（中文名称）';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."JUDDATE" IS '作出决定日期';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."NAME" IS '当事人姓名';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."NOTICECONTENT" IS '公告内容';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."NOTICEDATE" IS '公告日期';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."NOTICEFROM" IS '公告期自';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."NOTICETO" IS '公告期至';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."REGITEM" IS '冒名登记事项';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."REGORG" IS '登记机关';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."REGORG_CN" IS '登记机关（中文名称）';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."REGTIME" IS '冒名登记日期';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."TEL" IS '登记机关联系方式';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."T_FRAUD_ENT"."UPDATE_TIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';


CREATE TABLE "AICCS"."T_FRAUD_PERSON"
(
"ID" VARCHAR(64) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PRIPID" VARCHAR(72),
"ENTNAME" VARCHAR(400),
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(100),
"NAME" VARCHAR(400),
"PHONENUM" VARCHAR(200),
"CERTTYPE" VARCHAR(128),
"CERTNO" VARCHAR(100),
"HANDLERESULT" VARCHAR(1024),
"HANDLEREA" VARCHAR(128),
"JUDAUTH" VARCHAR(128),
"JUDAUTH_CN" VARCHAR(256),
"JUDDATE" DATE,
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."T_FRAUD_PERSON" IS '涉嫌冒用他人身份取得登记责任人信息表';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."CERTNO" IS '证件号码';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."CERTTYPE" IS '证件类型';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."CREATE_TIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."HANDLEREA" IS '处理原因';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."HANDLERESULT" IS '处理结果';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."ID" IS '虚假登记ID';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."JUDAUTH" IS '作出决定机关';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."JUDAUTH_CN" IS '作出决定机关（中文名称）';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."JUDDATE" IS '作出决定日期';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."NAME" IS '姓名';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."PHONENUM" IS '电话';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."T_FRAUD_PERSON"."UPDATE_TIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';


CREATE TABLE "AICCS"."T_PY_BLACKLIST"
(
"ID" VARCHAR(72) NOT NULL,
"UNISCID" VARCHAR(36),
"ENTNAME" VARCHAR(510),
"IS_DISABLED" BIT DEFAULT 0,
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
"TAGTYPE" CHAR(1) NOT NULL,
"SOURCE_ID" VARCHAR(510),
"SOURCE_ORG_NAME" VARCHAR(510),
"SOURCE_NAME" VARCHAR(510),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."T_PY_BLACKLIST" IS '番禺企业黑名单库';
COMMENT ON COLUMN "AICCS"."T_PY_BLACKLIST"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."T_PY_BLACKLIST"."CREATE_TIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."T_PY_BLACKLIST"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "AICCS"."T_PY_BLACKLIST"."ID" IS '主键';
COMMENT ON COLUMN "AICCS"."T_PY_BLACKLIST"."IS_DISABLED" IS '是否禁用';
COMMENT ON COLUMN "AICCS"."T_PY_BLACKLIST"."SOURCE_ID" IS '来源id，tagType为4记录';
COMMENT ON COLUMN "AICCS"."T_PY_BLACKLIST"."SOURCE_NAME" IS '来源人，tagType为4记录';
COMMENT ON COLUMN "AICCS"."T_PY_BLACKLIST"."SOURCE_ORG_NAME" IS '来源机构名称，tagType为4记录';
COMMENT ON COLUMN "AICCS"."T_PY_BLACKLIST"."TAGTYPE" IS '1-经济发展的重点企业 2-涉嫌逃避监管的企业 3-有多次被列入经营异常名录记录企业 4-现场核查被投诉企业';
COMMENT ON COLUMN "AICCS"."T_PY_BLACKLIST"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."T_PY_BLACKLIST"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."T_PY_BLACKLIST"."UPDATE_TIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';

CREATE OR REPLACE  INDEX "AICCS"."T_PY_BLACKLIST_ENTNAME_IDX" ON "AICCS"."T_PY_BLACKLIST"("ENTNAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."T_PY_BLACKLIST_UNISCID_IDX" ON "AICCS"."T_PY_BLACKLIST"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TASKLISTID_BAK"
(
"TASKLISTID" VARCHAR(200) NOT NULL,
NOT CLUSTER PRIMARY KEY("TASKLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TB_BATCH_GS_DETAIL"
(
"SNAME" VARCHAR(510),
"SLICENSECODE" VARCHAR(510),
"SPRINCIPAL" VARCHAR(510),
"SENTID" VARCHAR(510),
"SPLACE" VARCHAR(510),
"SFARERANGE" VARCHAR(510),
"SREGISTERTYPE" VARCHAR(510),
"SBOOKCODE" VARCHAR(510),
"SDATE" TIMESTAMP(0),
"SUNITNAME" VARCHAR(510),
"SMEMO" VARCHAR(4000),
"SID" VARCHAR(510),
"UPDATETIME" TIMESTAMP(0),
"DELFLAG" VARCHAR(510)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TB_BREAK_LAW_LIST"
(
"SAUTOID" VARCHAR(90),
"PRIPID" VARCHAR(80),
"SENTNAME" VARCHAR(400),
"SREGNO" VARCHAR(100),
"SPRINCIPAL" VARCHAR(100),
"SADDRESS" VARCHAR(400),
"SREGORGCODE" VARCHAR(80),
"SREGORGNAME" VARCHAR(120),
"TJOINTIME" TIMESTAMP(0),
"TEXPIRETIME" TIMESTAMP(0),
"SJOINCAUSE" TEXT,
"SPUBLICTIME" TIMESTAMP(0),
"SENDPUBLICTIME" TIMESTAMP(0),
"SGSSTATE" VARCHAR(1),
"SBOOKCODE" VARCHAR(200),
"NOTICETITLE" VARCHAR(400),
"NOTICECONTENT" TEXT,
"SGSTYPE" VARCHAR(4),
"SISDEL" VARCHAR(1),
"DTUPDATETIME" TIMESTAMP(0),
"SEQUENCENUMBER" INT,
"YEARNUMBER" INT,
"SENTTYPE" VARCHAR(20),
"SAPPROVECODE" VARCHAR(80),
"APPROVALSTATE" VARCHAR(1),
"SHSSAUTOID" VARCHAR(80),
"REVIEWID" VARCHAR(80)) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TB_DIC_INDUSTRY_TYPE"
(
"SINDTTYPECODE" VARCHAR(30) NOT NULL,
"SINDTNAME" VARCHAR(100),
"BEND" VARCHAR(1),
"SPARENTCODE" VARCHAR(30),
"SCOUNTRYCODE" VARCHAR(20),
"NINDEX" DECIMAL(5,0),
"BSTOP" VARCHAR(1) NOT NULL,
"BNAMESIGN" VARCHAR(1) DEFAULT '0' NOT NULL,
"SAPPRCOND" VARCHAR(2000),
"SSTANDARDICT" VARCHAR(4000),
"SOLDCOUNTRYCODE" VARCHAR(400) DEFAULT '',
"SOLDINDTTYPECODE" VARCHAR(410) DEFAULT '',
NOT CLUSTER PRIMARY KEY("SINDTTYPECODE")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TB_DIC_INDUSTRY_TYPE" IS '国民经济行业代码表';
COMMENT ON COLUMN "AICCS"."TB_DIC_INDUSTRY_TYPE"."BEND" IS '1：是；0：否';
COMMENT ON COLUMN "AICCS"."TB_DIC_INDUSTRY_TYPE"."BNAMESIGN" IS '0:不作为名称查询分类;1-作为名称查询分类';
COMMENT ON COLUMN "AICCS"."TB_DIC_INDUSTRY_TYPE"."BSTOP" IS '0:在用1:停用';
COMMENT ON COLUMN "AICCS"."TB_DIC_INDUSTRY_TYPE"."NINDEX" IS '排序索引';
COMMENT ON COLUMN "AICCS"."TB_DIC_INDUSTRY_TYPE"."SAPPRCOND" IS '审批条件';
COMMENT ON COLUMN "AICCS"."TB_DIC_INDUSTRY_TYPE"."SCOUNTRYCODE" IS '国家总局编码';
COMMENT ON COLUMN "AICCS"."TB_DIC_INDUSTRY_TYPE"."SINDTNAME" IS '行业代码名称';
COMMENT ON COLUMN "AICCS"."TB_DIC_INDUSTRY_TYPE"."SINDTTYPECODE" IS '行业代码编码';
COMMENT ON COLUMN "AICCS"."TB_DIC_INDUSTRY_TYPE"."SOLDCOUNTRYCODE" IS '旧国家编码';
COMMENT ON COLUMN "AICCS"."TB_DIC_INDUSTRY_TYPE"."SOLDINDTTYPECODE" IS '旧行业代码';
COMMENT ON COLUMN "AICCS"."TB_DIC_INDUSTRY_TYPE"."SPARENTCODE" IS '父级行业代码编码';
COMMENT ON COLUMN "AICCS"."TB_DIC_INDUSTRY_TYPE"."SSTANDARDICT" IS '规范用语';


CREATE TABLE "AICCS"."TB_DIC_REGISTER_ORGANIZATION"
(
"SREGORGCODE" VARCHAR(72) NOT NULL,
"SREGORGNAME" VARCHAR(510),
"SPARENTCODE" VARCHAR(510),
"BEND" VARCHAR(510),
"SLEVEL" VARCHAR(510),
"SCOUNTRYCODE" VARCHAR(510),
"SCOUNTRYEXTCODE" VARCHAR(510),
"NINDEX" VARCHAR(510),
"BSTOP" VARCHAR(510),
NOT CLUSTER PRIMARY KEY("SREGORGCODE")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TBIZREMPUNISHMENT"
(
"ID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PRIPID" VARCHAR(72),
"PUNISHMENTID" VARCHAR(72),
"USERID" VARCHAR(72),
"STATUS" VARCHAR(2),
"LINKTYPE" VARCHAR(2),
"APPLYDATE" DATE,
"REPAIRNO" VARCHAR(100),
"REPAIRDATE" TIMESTAMP(0),
"REPAIRORG" VARCHAR(100),
"REPAIRORGCN" VARCHAR(100),
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TBIZREMPUNISHMENT" IS '行政处罚修复业务表';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."APPLYDATE" IS '主体申请修复日期';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."CREATE_TIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."LINKTYPE" IS '当前环节 1-业务受理 2-业务审核 3-业务审批';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."PRIPID" IS '企业主键';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."PUNISHMENTID" IS '处罚id';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."REPAIRDATE" IS '信用修复决定时间';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."REPAIRNO" IS '准予修复决定书文号';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."REPAIRORG" IS '作出信用修复决定机关';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."REPAIRORGCN" IS '作出信用修复决定机关名称';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."STATUS" IS '业务状态 0-受理中、1-审批中、2-已通过、3-不通过';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."UPDATE_TIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."TBIZREMPUNISHMENT"."USERID" IS '创建业务人id';


CREATE TABLE "AICCS"."TCILLEGALACTION"
(
"ILLEGALACTIONID" VARCHAR(36) NOT NULL,
"ILLEGALCODE" VARCHAR(60),
"ILLEGALACTION" VARCHAR(1200) NOT NULL,
"REMARK" VARCHAR(600),
"REGION" VARCHAR(20),
"ISABOLISH" VARCHAR(1) DEFAULT '0' NOT NULL,
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ILLEGALACTIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TEMPLATEITEM"
(
"ITEMID" VARCHAR(36) NOT NULL,
"ITEMNAME" VARCHAR(400),
"MODELID" VARCHAR(36),
"ITEMDATATYPE" VARCHAR(1),
"ITEMLENGTH" INT,
"CUSTOMINDEX" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("ITEMID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TEMPORARY_PRIPID_REP"
(
"PRIPID" VARCHAR(80) NOT NULL,
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TEMPORARY_SAVE"
(
"ID" VARCHAR(80) NOT NULL,
"BIZSEQ" VARCHAR(72),
"MODULE_TAG" VARCHAR(100) NOT NULL,
"FLOW_TAG" VARCHAR(100) NOT NULL,
"DATA_JSON" CLOB NOT NULL,
"STATE" VARCHAR(1) NOT NULL,
"CREATOR" VARCHAR(100) NOT NULL,
"CREATOR_ID" VARCHAR(100) NOT NULL,
"SAVE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"CREATE_TIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TEMPORARY_SAVE" IS '业务暂存表';
COMMENT ON COLUMN "AICCS"."TEMPORARY_SAVE"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TEMPORARY_SAVE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."TEMPORARY_SAVE"."CREATOR" IS '暂存操作人';
COMMENT ON COLUMN "AICCS"."TEMPORARY_SAVE"."CREATOR_ID" IS '暂存操作人id';
COMMENT ON COLUMN "AICCS"."TEMPORARY_SAVE"."DATA_JSON" IS '暂存数据';
COMMENT ON COLUMN "AICCS"."TEMPORARY_SAVE"."FLOW_TAG" IS '流程标识';
COMMENT ON COLUMN "AICCS"."TEMPORARY_SAVE"."ID" IS 'id';
COMMENT ON COLUMN "AICCS"."TEMPORARY_SAVE"."MODULE_TAG" IS '业务模块标识';
COMMENT ON COLUMN "AICCS"."TEMPORARY_SAVE"."SAVE_TIME" IS '暂存时间';
COMMENT ON COLUMN "AICCS"."TEMPORARY_SAVE"."STATE" IS '0:作废，1:暂存，2:暂存失效';


CREATE TABLE "AICCS"."TEMPORARY_UNISCID_PY"
(
"UNISCID" VARCHAR(80) NOT NULL,
NOT CLUSTER PRIMARY KEY("UNISCID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TEMPREPAIRINFO"
(
"ID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"APPLYTIME" TIMESTAMP(0),
"APPLICANT" VARCHAR(510),
"APPLICANTNO" VARCHAR(100),
"ENTNAME" VARCHAR(510),
"UNISCID" VARCHAR(40),
"REGNO" VARCHAR(100),
"TYPE" VARCHAR(100),
"ACCEPTNO" VARCHAR(100),
"PRIPID" VARCHAR(100),
"PHONE" VARCHAR(510),
"ABNID" VARCHAR(100),
"FBFLAG" VARCHAR(8),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TEMPREPAIRINFO" IS '临时提交信息表';
COMMENT ON COLUMN "AICCS"."TEMPREPAIRINFO"."ABNID" IS '申请的记录id';
COMMENT ON COLUMN "AICCS"."TEMPREPAIRINFO"."ACCEPTNO" IS '办件编号';
COMMENT ON COLUMN "AICCS"."TEMPREPAIRINFO"."APPLICANT" IS '移动端申请人';
COMMENT ON COLUMN "AICCS"."TEMPREPAIRINFO"."APPLICANTNO" IS '移动端申请人电话号码';
COMMENT ON COLUMN "AICCS"."TEMPREPAIRINFO"."APPLYTIME" IS '移动端申请时间';
COMMENT ON COLUMN "AICCS"."TEMPREPAIRINFO"."BIZSEQ" IS '列入业务号';
COMMENT ON COLUMN "AICCS"."TEMPREPAIRINFO"."ENTNAME" IS '主体名称';
COMMENT ON COLUMN "AICCS"."TEMPREPAIRINFO"."ID" IS 'id';
COMMENT ON COLUMN "AICCS"."TEMPREPAIRINFO"."PHONE" IS '法人电话号码';
COMMENT ON COLUMN "AICCS"."TEMPREPAIRINFO"."PRIPID" IS '主体id';
COMMENT ON COLUMN "AICCS"."TEMPREPAIRINFO"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TEMPREPAIRINFO"."TYPE" IS '业务类型 企业：farmer;个体：individual严重违法：credit';
COMMENT ON COLUMN "AICCS"."TEMPREPAIRINFO"."UNISCID" IS '统一码';


CREATE TABLE "AICCS"."TMESPRVSNALERTLEVEL"
(
"PRIPID" VARCHAR(36) NOT NULL,
"CHECKPERIOD" INT,
"REVISITDATE" INT,
"INVESTEXPIREDATE" INT,
"REVISITAFTERCASEDATE" INT,
"ACCOUNTEXPIREDATE" INT,
"PARENTREVOKEDDATE" INT,
"PARENTCHANGEDATE" INT,
"REPRESENTATIVELIMITED" INT,
"PAYFEEDATE" INT,
"ANNUALCHECKEXPIREDATE" INT,
"OPEREXPIREDATE" INT,
"LICENSEEXPIREDATE" INT,
"CASEASISTFLAG" INT,
"STARTCASEFLAG" INT,
"REVIEWDATE" INT,
"DISAPPEARDATE" INT,
"SIMPLECASEIN1YEAR" INT,
"CASESUNDER30K" INT,
"CASESOVER30K" INT,
"MANDATECORRECTDATE" INT,
"SERIOUSCASEDATE" INT,
"STOCKFREEZEEXPIREDATE" INT,
"REGINFOCHANGECHECKDATE" INT,
"REQUIRECHANGEDATE" INT,
"INCLEWFLAG" INT,
"IN12315FLAG" INT,
"CONTRACTDISSENSIONFLAG" INT,
"STOCKHOLDERREVOKEDDATE" INT,
"BELONGREVOKEDDATE" INT,
"PARENTOPEREXPIREDATE" INT,
"SAMEADDRESSFLAG" INT,
"BELONGCHANGEFLAG" INT,
"COMMODITYDISQUALIFICATION" INT,
"APPEALCOUNT" INT,
"CREDITLEVEL" INT,
"IMPORTANTINDUSTRY" INT,
"NEXTCHECKDAY" INT,
"WARNINGCASE" INT,
"STOPBUSINESSDATE" INT,
"OVERDUEFLA" INT,
"AUTOSTOPBUSINESSFLAG" INT,
"CREDITLEVELART" INT,
"CASECOUNT3Y" INT,
"GENERICCASECOUNT5Y" INT,
"HIGHCASECOUNTUNTIL" INT,
"LIGHTCASECOUNT3Y" INT,
"LIGHTCASECOUNT1Y" INT,
"GENERICCASECOUNT2Y" INT,
"HIGHCASECOUNT3Y" INT,
"EASYCASECOUNT2Y" INT,
"COMMONCASECOUNT2Y" INT,
"CASECOUNT3Y1000" INT,
"CASECOUNT3Y13" INT,
"CASECOUNT3Y3000" INT,
"CASECOUNT1Y20KUNDER" INT,
"CASECOUNT1Y20KOVER" INT,
"CASECOUNT2Y1KUNDER" INT,
"CASECOUNT2Y1KOVER" INT,
"CASECOUNT2Y" INT,
"ALERTLEVEL" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TMESPRVSNOBJ"
(
"PRIPID" VARCHAR(36) NOT NULL,
"CHECKPERIOD" INT,
"REVISITDATE" DATE,
"INVESTEXPIREDATE" DATE,
"REVISITAFTERCASEDATE" DATE,
"ACCOUNTEXPIREDATE" DATE,
"PARENTREVOKEDDATE" DATE,
"PARENTCHANGEDATE" DATE,
"REPRESENTATIVELIMITED" INT,
"PAYFEEDATE" DATE,
"ANNUALCHECKEXPIREDATE" DATE,
"OPEREXPIREDATE" DATE,
"LICENSEEXPIREDATE" DATE,
"CASEASISTFLAG" INT,
"STARTCASEFLAG" INT,
"REVIEWDATE" DATE,
"DISAPPEARDATE" DATE,
"SIMPLECASEIN1YEAR" INT,
"CASESUNDER30K" INT,
"CASESOVER30K" INT,
"MANDATECORRECTDATE" DATE,
"SERIOUSCASEDATE" DATE,
"STOCKFREEZEEXPIREDATE" DATE,
"REGINFOCHANGECHECKDATE" DATE,
"REQUIRECHANGEDATE" DATE,
"INCLEWFLAG" INT,
"IN12315FLAG" INT,
"CONTRACTDISSENSIONFLAG" INT,
"STOCKHOLDERREVOKEDDATE" DATE,
"BELONGREVOKEDDATE" DATE,
"PARENTOPEREXPIREDATE" DATE,
"SAMEADDRESSFLAG" INT,
"BELONGCHANGEFLAG" INT,
"COMMODITYDISQUALIFICATION" INT,
"APPEALCOUNT" INT,
"CREDITLEVEL" INT,
"IMPORTANTINDUSTRY" INT,
"NEXTCHECKDAY" DATE,
"WARNINGCASE" DATE,
"STOPBUSINESSDATE" DATE,
"OVERDUEFLAG" INT,
"AUTOSTOPBUSINESSFLAG" INT,
"CREDITLEVELART" INT,
"LEVELARTTAG" INT DEFAULT 0 NOT NULL,
"CASECOUNT3Y" INT,
"GENERICCASECOUNT5Y" INT,
"HIGHCASECOUNTUNTIL" INT,
"LIGHTCASECOUNT3Y" INT,
"LIGHTCASECOUNT1Y" INT,
"GENERICCASECOUNT2Y" INT,
"HIGHCASECOUNT3Y" INT,
"EASYCASECOUNT2Y" INT,
"COMMONCASECOUNT2Y" INT,
"CASECOUNT3Y1000" INT,
"CASECOUNT3Y13" INT,
"CASECOUNT3Y3000" INT,
"CASECOUNT1Y20KUNDER" INT,
"CASECOUNT1Y20KOVER" INT,
"CASECOUNT2Y1KUNDER" INT,
"CASECOUNT2Y1KOVER" INT,
"CASECOUNT2Y" INT,
"NEXTCALCDATE" DATE,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TOINCLUDEABN"
(
"TOINCLUDEID" VARCHAR(72) NOT NULL,
"PRIPID" VARCHAR(72),
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(60),
"INCLUDETYPE" VARCHAR(1),
"STATE" VARCHAR(1),
"UPDATETIME" TIMESTAMP(0),
"INSERTTIME" TIMESTAMP(0),
"REPORTYEAR" VARCHAR(20),
"DATASTATE" VARCHAR(8),
"REGENTRYUSERID" VARCHAR(72),
"REGENTRYUSERNAME" VARCHAR(60),
"DATAFROM" VARCHAR(8),
"DATAFROMID" VARCHAR(72),
"ENTORGDER" VARCHAR(20),
"ANNCHEDEPT" VARCHAR(72),
"REGORG" VARCHAR(72),
"ACCEPTORG" VARCHAR(72),
"UPDATEUSERID" VARCHAR(72),
"INSPECTOBJID" VARCHAR(200),
"ISBATCH" VARCHAR(20),
NOT CLUSTER PRIMARY KEY("TOINCLUDEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TOINCLUDEABN" IS '拟列异主体表';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."ACCEPTORG" IS '受理机关';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."ANNCHEDEPT" IS '临时字段属地监管机关（来源47.7库）';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."DATAFROM" IS '数据来源（1、年报2、双随机3、日常检查4、应诉检查）';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."DATAFROMID" IS '数据来源主键';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."DATASTATE" IS '数据状态，0：正常，1：删除';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."ENTORGDER" IS '数据来源机关';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."INCLUDETYPE" IS '列异类型
2.未按规定公示应当公示的信息
3.公示信息隐瞒真实情况弄虚作假
4.通过登记的住所（经营场所〉无法联系

6.不配合检查情节严重

';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."INSERTTIME" IS '数据插入时间';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."INSPECTOBJID" IS '双随机的检查对象id';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."ISBATCH" IS '是否批量，1表示批量';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."PRIPID" IS '主体主键id';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."REGENTRYUSERID" IS '监管录入人员id';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."REGENTRYUSERNAME" IS '监管录入人员名';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."REGORG" IS '登记机关';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."REPORTYEAR" IS '年报提交年份';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."STATE" IS '列异状态’0‘未列异’1‘列异审批中’2‘已列异';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."TOINCLUDEID" IS '主键id';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."UNISCID" IS '社会统一码';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."UPDATETIME" IS '数据更新时间';
COMMENT ON COLUMN "AICCS"."TOINCLUDEABN"."UPDATEUSERID" IS '更新操作人员id';

CREATE OR REPLACE  INDEX "AICCS"."ANNCHEDEPT" ON "AICCS"."TOINCLUDEABN"("ANNCHEDEPT" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."INDEX783488217871600" ON "AICCS"."TOINCLUDEABN"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TOINROSTER"
(
"ID" VARCHAR(72) NOT NULL,
"TOINCLUDEID" VARCHAR(72) NOT NULL,
"PRIPID" VARCHAR(72),
"UNISCID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"REGORG" VARCHAR(72),
"ACCEPTORG" VARCHAR(72),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TOINROSTER" IS '拟列异线索关联名单';
COMMENT ON COLUMN "AICCS"."TOINROSTER"."ACCEPTORG" IS '受理机关';
COMMENT ON COLUMN "AICCS"."TOINROSTER"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICCS"."TOINROSTER"."ID" IS '主键id';
COMMENT ON COLUMN "AICCS"."TOINROSTER"."PRIPID" IS '主体主键id';
COMMENT ON COLUMN "AICCS"."TOINROSTER"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TOINROSTER"."REGORG" IS '登记机关';
COMMENT ON COLUMN "AICCS"."TOINROSTER"."TOINCLUDEID" IS '线索id';
COMMENT ON COLUMN "AICCS"."TOINROSTER"."UNISCID" IS '社会统一码';

CREATE OR REPLACE  INDEX "AICCS"."TOINCLUDEID" ON "AICCS"."TOINROSTER"("TOINCLUDEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."INDEX783488647104600" ON "AICCS"."TOINROSTER"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TOLOCKENTLIST"
(
"TOLOCKID" VARCHAR(80) NOT NULL,
"PRIPID" VARCHAR(72),
"UNISCID" VARCHAR(36),
"ENTNAME" VARCHAR(200),
"REGNO" VARCHAR(100),
"PUNISHFROM" VARCHAR(510),
"REGSTATE" VARCHAR(128),
"REGSTATECN" VARCHAR(256),
"PUNISHINFOID" VARCHAR(80),
"STATE" VARCHAR(1) DEFAULT '0',
"INSERTTIME" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0),
"REGORG" VARCHAR(200),
"DEPARTMENT" VARCHAR(20),
NOT CLUSTER PRIMARY KEY("TOLOCKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."TOLOCKENTLIST"."DEPARTMENT" IS '来源部门';
COMMENT ON COLUMN "AICCS"."TOLOCKENTLIST"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICCS"."TOLOCKENTLIST"."INSERTTIME" IS '插入时间';
COMMENT ON COLUMN "AICCS"."TOLOCKENTLIST"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TOLOCKENTLIST"."PUNISHFROM" IS '惩戒来源';
COMMENT ON COLUMN "AICCS"."TOLOCKENTLIST"."PUNISHINFOID" IS '惩戒详情id';
COMMENT ON COLUMN "AICCS"."TOLOCKENTLIST"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TOLOCKENTLIST"."REGORG" IS '登记机关';
COMMENT ON COLUMN "AICCS"."TOLOCKENTLIST"."REGSTATE" IS '登记状态';
COMMENT ON COLUMN "AICCS"."TOLOCKENTLIST"."REGSTATECN" IS '登记状态（中文名称）';
COMMENT ON COLUMN "AICCS"."TOLOCKENTLIST"."STATE" IS '状态：‘0’未办 ’1‘在办';
COMMENT ON COLUMN "AICCS"."TOLOCKENTLIST"."TOLOCKID" IS '主键id';
COMMENT ON COLUMN "AICCS"."TOLOCKENTLIST"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "AICCS"."TOLOCKENTLIST_ENTNAME_IDX" ON "AICCS"."TOLOCKENTLIST"("ENTNAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TPROPERTYDEF"
(
"NAME" VARCHAR(200) NOT NULL,
"CHINESENAME" VARCHAR(200),
"DESCRIPTION" VARCHAR(400),
"VALUETYPE" INT,
"TYPE" INT,
"STORETABLE" VARCHAR(100),
"STOREFIELD" VARCHAR(400),
"BIZTYPE" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("NAME")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRADE_TEST"
(
"ID" INT IDENTITY(4, 1) NOT NULL,
"USER_ID" INT NOT NULL,
"CREATE_AT" INT NOT NULL,
"TOTALMONEY" DECIMAL(10,2) NOT NULL,
"TID" INT NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TRADE_TEST" IS '交易发起表';
COMMENT ON COLUMN "AICCS"."TRADE_TEST"."CREATE_AT" IS '创建时间';
COMMENT ON COLUMN "AICCS"."TRADE_TEST"."TID" IS '交易编号';
COMMENT ON COLUMN "AICCS"."TRADE_TEST"."TOTALMONEY" IS '总金额';
COMMENT ON COLUMN "AICCS"."TRADE_TEST"."USER_ID" IS '用户ID';


CREATE TABLE "AICCS"."TRAICCODE"
(
"AICID" VARCHAR(18) NOT NULL,
"PAICID" VARCHAR(6),
"AICNAME" VARCHAR(200),
"SHORTNAME" VARCHAR(120),
"DISSHORTNAME" VARCHAR(100),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6),
NOT CLUSTER PRIMARY KEY("AICID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRAPPROVEFILE"
(
"APPROVEID" VARCHAR(36) NOT NULL,
"ENTID" VARCHAR(36),
"REPORTID" VARCHAR(36),
"APPROVEFILENAME" VARCHAR(200),
"APPROVEFILENO" VARCHAR(100),
"APPROVEORG" VARCHAR(100),
"APPROVEDATE" DATE,
"DEADLINE" DATE,
"ACCEPTCONTENT" VARCHAR(2000),
"ISSHOW" VARCHAR(1) DEFAULT '1' NOT NULL,
"CREATEDATE" DATE,
"UPDATEDATE" DATE,
"DSTATE" VARCHAR(1) DEFAULT '0' NOT NULL,
"SYNCDATE" DATE,
"SYNCFLAG" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ISSYNC" VARCHAR(2) DEFAULT 'nA' NOT NULL,
NOT CLUSTER PRIMARY KEY("APPROVEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRBASECODE"
(
"BASECODEID" VARCHAR(36) NOT NULL,
"CODEID" VARCHAR(20),
"CODE" VARCHAR(200),
"NAME" VARCHAR(2000),
"COMM" VARCHAR(1000),
"ISGB" VARCHAR(1),
"AREA_CODE" VARCHAR(6),
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("BASECODEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TRBASECODE" IS '基础代码表';
COMMENT ON COLUMN "AICCS"."TRBASECODE"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TRBASECODE"."BASECODEID" IS '基础代码表ID';
COMMENT ON COLUMN "AICCS"."TRBASECODE"."CODE" IS '代码';
COMMENT ON COLUMN "AICCS"."TRBASECODE"."CODEID" IS '代码标号';
COMMENT ON COLUMN "AICCS"."TRBASECODE"."COMM" IS '备注';
COMMENT ON COLUMN "AICCS"."TRBASECODE"."ISGB" IS '是否国标IsGB（0否1是）';
COMMENT ON COLUMN "AICCS"."TRBASECODE"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TRBASECODE"."NAME" IS '名称';


CREATE TABLE "AICCS"."TRBRANCHREP"
(
"BRANCHID" VARCHAR(36) NOT NULL,
"ENTID" VARCHAR(36),
"ENTITYNO" VARCHAR(36),
"FARSPEARTREGNO" VARCHAR(30),
"BRNAME" VARCHAR(200),
"ISSHOW" VARCHAR(1),
"CREATEDATE" DATE,
"UPDATEDATE" DATE,
"DSTATE" VARCHAR(1),
"SYNCDATE" DATE,
"SYNCFLAG" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ISSYNC" VARCHAR(2) DEFAULT 'nA' NOT NULL,
NOT CLUSTER PRIMARY KEY("BRANCHID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRCANCEL"
(
"BIZSEQ" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36) NOT NULL,
"CANID" VARCHAR(36) NOT NULL,
"CANREA" VARCHAR(6),
"CANDATE" TIMESTAMP(0),
"CANREAEXP" VARCHAR(2000),
"CANAUTH" VARCHAR(400),
"BUSTYPE" VARCHAR(60),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
NOT CLUSTER PRIMARY KEY("CANID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRCOIN"
(
"COINID" VARCHAR(3) NOT NULL,
"NAME" VARCHAR(100),
"COMMENT" VARCHAR(100),
"EXCHANGERATE" DECIMAL(16,6),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6),
NOT CLUSTER PRIMARY KEY("COINID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRCOMMOPINION"
(
"COMMOPINIONID" VARCHAR(72) NOT NULL,
"OPINIONTYPE" VARCHAR(1),
"USERID" VARCHAR(36),
"OPINIONINFO" VARCHAR(400),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6),
"BIZTYPE" VARCHAR(8),
NOT CLUSTER PRIMARY KEY("COMMOPINIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TRCOMMOPINION" IS '常用意见表';
COMMENT ON COLUMN "AICCS"."TRCOMMOPINION"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TRCOMMOPINION"."BIZTYPE" IS '业务类型';
COMMENT ON COLUMN "AICCS"."TRCOMMOPINION"."COMMOPINIONID" IS '常用意见主键';
COMMENT ON COLUMN "AICCS"."TRCOMMOPINION"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TRCOMMOPINION"."OPINIONINFO" IS '意见信息';
COMMENT ON COLUMN "AICCS"."TRCOMMOPINION"."OPINIONTYPE" IS '意见类型';
COMMENT ON COLUMN "AICCS"."TRCOMMOPINION"."USERID" IS '用户ID';

CREATE OR REPLACE  INDEX "AICCS"."TRCOMMOPINION_OPINIONTYPE_IDX" ON "AICCS"."TRCOMMOPINION"("OPINIONTYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TRCOMMOPINION_BIZTYPE_IDX" ON "AICCS"."TRCOMMOPINION"("BIZTYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TRCOMMOPINION_USERID_IDX" ON "AICCS"."TRCOMMOPINION"("USERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRCOOPREPORT"
(
"COOPID" VARCHAR(36) NOT NULL,
"ENTID" VARCHAR(36),
"USERNAME" VARCHAR(100),
"TOTALAMOUNT" DECIMAL(24,6),
"SCOPE" VARCHAR(1000),
"EMPNUMBER" DECIMAL(4,0),
"ADDNUMBER" DECIMAL(4,0),
"EXITNUMBER" DECIMAL(4,0),
"LEVELF" VARCHAR(1),
"CERTIFICATION" VARCHAR(1),
"SALESAMOUNT" DECIMAL(24,6),
"SALESISSHOW" VARCHAR(1),
"SURPLUSAMOUNT" DECIMAL(24,6),
"SURPLUSISSHOW" VARCHAR(1),
"SUBSIDIESAMOUNT" DECIMAL(24,6),
"SUBSIDIESISSHOW" VARCHAR(1),
"TAXAMOUNT" DECIMAL(24,6),
"TAXISSHOW" VARCHAR(1),
"LOANAMOUNT" DECIMAL(24,6),
"LOANISSHOW" VARCHAR(1),
"EMAIL" VARCHAR(200),
"USERISSAME" VARCHAR(1),
"REGCAPITALISSAME" VARCHAR(1),
"FARNUM" DECIMAL(4,0),
"ISWEB" VARCHAR(1),
"COINID" VARCHAR(3),
"CREATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"UPDATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"DSTATE" VARCHAR(1) DEFAULT '0' NOT NULL,
"SYNCDATE" TIMESTAMP(0),
"SYNCFLAG" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ISSYNC" VARCHAR(2) DEFAULT 'nA' NOT NULL,
NOT CLUSTER PRIMARY KEY("COOPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRENTASSETS"
(
"ASSETID" VARCHAR(72) NOT NULL,
"ENTID" VARCHAR(72),
"ENTITYNO" VARCHAR(72),
"ASSETSTOTALAMOUNT" DECIMAL(24,6),
"ASSETSISSHOW" VARCHAR(1),
"LIABILITIESAMOUNT" DECIMAL(24,6),
"LIABILITIESISSHOW" VARCHAR(1),
"SALESAMOUNT" DECIMAL(24,6),
"SALESISSHOW" VARCHAR(1),
"PROFITSAMOUNT" DECIMAL(24,6),
"PROFITSISSHOW" VARCHAR(1),
"NETPROFITAMOUNT" DECIMAL(24,6),
"NETPROFITISSHOW" VARCHAR(1),
"TAXAMOUNT" DECIMAL(24,6),
"TAXISSHOW" VARCHAR(1),
"EQUITYAMOUNT" DECIMAL(24,6),
"EQUITYISSHOW" VARCHAR(1),
"BUSINESSAMOUNT" DECIMAL(24,6),
"BUSINESSISSHOW" VARCHAR(1),
"COINID" VARCHAR(6),
"CREATEDATE" TIMESTAMP(0),
"UPDATEDATE" TIMESTAMP(0),
"DSTATE" VARCHAR(1),
"REPORTYEAR" VARCHAR(20),
NOT CLUSTER PRIMARY KEY("ASSETID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."INDEX784771851013300" ON "AICCS"."TRENTASSETS"("ENTITYNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TRENTBASEINFO_ENTID_IDX" ON "AICCS"."TRENTASSETS"("ENTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRENTBASE"
(
"PRIPID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PREENTNAMEID" VARCHAR(72),
"ENTNAME" VARCHAR(200),
"REGNO" VARCHAR(60),
"ENTTYPE" VARCHAR(6),
"SUBENTTYPE" VARCHAR(4),
"REGCAP" DECIMAL(18,6),
"NAMEDISTRICT" VARCHAR(120),
"ENTTRA" VARCHAR(80),
"NAMEIND" VARCHAR(60),
"ORGFORM" VARCHAR(60),
"NAMEORG" VARCHAR(4),
"INDUSTRYPHY" VARCHAR(1),
"INDUSTRYCO" VARCHAR(4),
"ESTDATE" TIMESTAMP(0),
"REGORG" VARCHAR(9),
"LOCALADM" VARCHAR(9),
"ENTSTATE" VARCHAR(1),
"ENTBIZSTATE" VARCHAR(4),
"ENTCAT" VARCHAR(1),
"APPRDATE" TIMESTAMP(0),
"LEREPNAME" VARCHAR(200),
"AICID" VARCHAR(18),
"LAUPTIME" TIMESTAMP(0),
"ENDBIZSTATE" VARCHAR(1),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"APPRSUBORG" VARCHAR(18),
"OPERATESTATUS" VARCHAR(4),
"RECORDMODIFYDATE" TIMESTAMP(0),
"USCC" VARCHAR(36),
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TRENTBASE" IS '主体基本信息表';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."AICID" IS '登记管辖机关编码';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."APPRDATE" IS '核准日期';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."APPRSUBORG" IS '核准下级机关';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."BIZSEQ" IS '企业历史业务号';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."ENDBIZSTATE" IS '业务办结标示';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."ENTBIZSTATE" IS '主体业务状态';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."ENTCAT" IS '主体分类';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."ENTSTATE" IS '主体资格状态';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."ENTTRA" IS '企业(机构)字号';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."ENTTYPE" IS '企业类型';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."ESTDATE" IS '成立日期';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."INDUSTRYCO" IS '行业代码';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."INDUSTRYPHY" IS '行业门类';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."LEREPNAME" IS '法定代表人名称';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."LOCALADM" IS '属地监管工商所';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."NAMEDISTRICT" IS '名称区划';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."NAMEIND" IS '名称行业';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."NAMEORG" IS '名称录入组织形式';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."OPERATESTATUS" IS '企业异常状态';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."ORGFORM" IS '组织形式';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."PREENTNAMEID" IS '名称基本信息表';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."RECORDMODIFYDATE" IS '备案/资料修改日期';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."REGCAP" IS '注册资本';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."REGORG" IS '登记机关';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."SUBENTTYPE" IS '子企业类型';
COMMENT ON COLUMN "AICCS"."TRENTBASE"."USCC" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "AICCS"."TRENTBASE_BIZSEQ_IDX" ON "AICCS"."TRENTBASE"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRENTBASEADDR"
(
"ENTBASEADDRID" VARCHAR(72) NOT NULL,
"PRIPID" VARCHAR(72),
"BIZSEQ" VARCHAR(72),
"ADDRESS" VARCHAR(400),
"ADDRPRORIGHT" VARCHAR(2),
"ADDRLOCDISTRICT" VARCHAR(6),
"ADDRLOCALADM" VARCHAR(9),
"ADDRTYPE" VARCHAR(1),
"ADDRSITU" VARCHAR(2) NOT NULL,
"TEMLEASESTART" TIMESTAMP(0),
"TERMLEASEEND" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"ADDRWHERE" VARCHAR(1),
"ADDRAREA" DECIMAL(10,2),
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ENTBASEADDRID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TRENTBASEADDR" IS '主体地址、经营场所信息';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."ADDRAREA" IS '面积';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."ADDRESS" IS '地址';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."ADDRLOCALADM" IS '属地管辖机关';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."ADDRLOCDISTRICT" IS '地址所在行政区划';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."ADDRPRORIGHT" IS '地址产权';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."ADDRSITU" IS '住址、场所情况';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."ADDRTYPE" IS '地址类型';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."ADDRWHERE" IS '所在地';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."BIZSEQ" IS '企业历史业务号';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."ENTBASEADDRID" IS '主体地址/经营场所ID';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."TEMLEASESTART" IS '租赁开始日期';
COMMENT ON COLUMN "AICCS"."TRENTBASEADDR"."TERMLEASEEND" IS '租赁结束日期';

CREATE OR REPLACE  INDEX "AICCS"."TRENTBASEADDR_PRIPID_IDX" ON "AICCS"."TRENTBASEADDR"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TRENTBASEADDR_BIZSEQ_IDX" ON "AICCS"."TRENTBASEADDR"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRENTBASEAPPEND"
(
"PRIPID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"RECCAP" DECIMAL(18,6),
"INSFORM" VARCHAR(2),
"PARFORM" VARCHAR(1),
"COPYNUM" DECIMAL(2,0),
"OPLOCAREA" DECIMAL(10,2),
"MANACATE" VARCHAR(20),
"MAINPRODUCTSOLD" VARCHAR(400),
"COMM" VARCHAR(400),
"HYPOTAXIS" VARCHAR(2),
"COMPFORM" VARCHAR(1),
"SINBIZPLAID" VARCHAR(1),
"POSTALCODE" VARCHAR(6),
"TEL" VARCHAR(60),
"EMAIL" VARCHAR(200),
"ABUITEMCO" VARCHAR(3),
"CBUITEM" VARCHAR(2000),
"OPSCOPE" VARCHAR(6000),
"OPFROM" TIMESTAMP(0),
"OPTO" TIMESTAMP(0),
"OPENDYEAR" DECIMAL(2,0),
"FILENO" VARCHAR(40),
"FAXNUM" VARCHAR(60),
"FORPCORPNAME" VARCHAR(200),
"FORPADDRESS" VARCHAR(400),
"BLOPSHONAME" VARCHAR(200),
"VALIDSTAYSTART" TIMESTAMP(0),
"VALIDSTAYEND" TIMESTAMP(0),
"BLOTOTALCAP" DECIMAL(18,6),
"ENTNAMEBEL" VARCHAR(200),
"LASCHEDATE" TIMESTAMP(0),
"INDIVIUP" VARCHAR(1),
"CHARGEDEP" VARCHAR(140),
"OPERATIONTYPE" VARCHAR(200),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"SANZHENGHEYI" VARCHAR(1),
"MSTYPE" VARCHAR(1),
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TRENTBASEAPPEND" IS '主体基本信息附加表';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."ABUITEMCO" IS '许可经营项目';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."BIZSEQ" IS '企业历史业务号';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."BLOPSHONAME" IS '集团简称';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."BLOTOTALCAP" IS '集团母公司和子总司投资总额';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."CBUITEM" IS '一般经营项目';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."CHARGEDEP" IS '主管部门';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."COMM" IS '备注';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."COMPFORM" IS '组成形式';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."COPYNUM" IS '副本数';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."EMAIL" IS '电子邮箱';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."ENTNAMEBEL" IS '隶属企业(机构)名称';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."FAXNUM" IS '传真号码';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."FILENO" IS '档案号';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."FORPADDRESS" IS '外国地区企业地址';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."FORPCORPNAME" IS '外国地区企业名称';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."HYPOTAXIS" IS '隶属关系';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."INDIVIUP" IS '个体户升级标识';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."INSFORM" IS '设立方式';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."LASCHEDATE" IS '最后年检时间';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."MAINPRODUCTSOLD" IS '主要产品';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."MANACATE" IS '经营类别';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."MSTYPE" IS '合并分立类型';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."OPENDYEAR" IS '经营期限截止年数';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."OPERATIONTYPE" IS '经营方式';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."OPFROM" IS '经营期限自';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."OPLOCAREA" IS '经营面积';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."OPSCOPE" IS '经营范围';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."OPTO" IS '经营期限至';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."PARFORM" IS '合伙方式';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."POSTALCODE" IS '邮政编码';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."RECCAP" IS '实收资本';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."SANZHENGHEYI" IS '是否三证合一';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."SINBIZPLAID" IS '内地港澳台';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."TEL" IS '联系电话';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."VALIDSTAYEND" IS '外国地区企业驻在期限至';
COMMENT ON COLUMN "AICCS"."TRENTBASEAPPEND"."VALIDSTAYSTART" IS '外国地区企业驻在期限自';

CREATE OR REPLACE  INDEX "AICCS"."TRENTBASEAPPENT_BIZSEQ_IDX" ON "AICCS"."TRENTBASEAPPEND"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRENTBASEFOR"
(
"PRIPID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"FORENTYPE" VARCHAR(4),
"FORCAPINDCODE" VARCHAR(14),
"MIDPREINDCODE" VARCHAR(4),
"CONGRO" DECIMAL(18,6),
"CONGROCUR" VARCHAR(3),
"CONGRORATE" DECIMAL(16,6),
"CONGROUSD" DECIMAL(18,6),
"REGCAPCUR" VARCHAR(3),
"REGCAPRATE" DECIMAL(16,6),
"REGCAPUSD" DECIMAL(18,6),
"REGCAPRMB" DECIMAL(18,6),
"RECCAPCUR" VARCHAR(3),
"RECCAPRATE" DECIMAL(16,6),
"RECCAPUSD" DECIMAL(18,6),
"RECCAPRMB" DECIMAL(18,6),
"DOMEREGCAP" DECIMAL(18,6),
"DOMEREGCAPCUR" VARCHAR(3),
"DOMEREGCAPRATE" DECIMAL(16,6),
"DOMEREGCAPUSD" DECIMAL(18,6),
"DOMEREGCAPINVPROP" DECIMAL(7,4),
"DOMERECCAP" DECIMAL(18,6),
"DOMERECCAPCUR" VARCHAR(3),
"DOMERECCAPRATE" DECIMAL(16,6),
"DOMERECCAPUSD" DECIMAL(18,6),
"DOMERECCAPCONPROP" DECIMAL(7,4),
"FORREGCAP" DECIMAL(18,6),
"FORREGCAPCUR" VARCHAR(3),
"FORREGCAPRATE" DECIMAL(16,6),
"FORREGCAPUSD" DECIMAL(18,6),
"FORREGCAPINVPROP" DECIMAL(7,4),
"FORRECCAP" DECIMAL(18,6),
"FORRECCAPCUR" VARCHAR(3),
"FORRECCAPRATE" DECIMAL(16,6),
"FORRECCAPUSD" DECIMAL(18,6),
"MGRITEM" VARCHAR(200),
"MGRINFO" VARCHAR(200),
"MGRCAP" DECIMAL(18,6),
"MGRCAPCUR" VARCHAR(3),
"MGRCAPRATE" DECIMAL(16,6),
"MGRCAPUSD" DECIMAL(18,6),
"OILCAP" DECIMAL(18,6),
"OILCAPCUR" VARCHAR(3),
"OILCAPRATE" DECIMAL(16,6),
"OILCAPUSD" DECIMAL(18,6),
"BANKCAP" DECIMAL(18,6),
"BANKCAPCUR" VARCHAR(3),
"BANKCAPRATE" DECIMAL(16,6),
"BANKCAPUSD" DECIMAL(18,6),
"COUNTRY" VARCHAR(3),
"LAWACCEPTNAME" VARCHAR(200),
"AICLIAISONNAME" VARCHAR(200),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TRENTBASEFOR" IS '主体基本信息外资附加表';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."AICLIAISONNAME" IS '工商登记联络人';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."BANKCAP" IS '外国(地区)银行分行、保险分公司营运资金额';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."BANKCAPCUR" IS '外国(地区)银行分行、保险分公司营运资币种';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."BANKCAPRATE" IS '外国(地区)银行分行、保险分公司营运资汇率';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."BANKCAPUSD" IS '外国(地区)银行分行、保险分公司营运资折美元';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."BIZSEQ" IS '企业历史业务号';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."CONGRO" IS '投资总额';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."CONGROCUR" IS '投资总额币种';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."CONGRORATE" IS '投资总额汇率';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."CONGROUSD" IS '投资总额折万美元';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."COUNTRY" IS '国别(地区';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."DOMERECCAP" IS '中方实收资本';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."DOMERECCAPCONPROP" IS '中方实收资本出资比例';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."DOMERECCAPCUR" IS '中方实收资本币种';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."DOMERECCAPRATE" IS '中方实收资本汇率';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."DOMERECCAPUSD" IS '中方实收资本折万美元';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."DOMEREGCAP" IS '中方注册资本';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."DOMEREGCAPCUR" IS '中方注册资本币种';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."DOMEREGCAPINVPROP" IS '中方注册资本出资比例';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."DOMEREGCAPRATE" IS '中方注册资本汇率';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."DOMEREGCAPUSD" IS '中方注册资本折万美元';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."FORCAPINDCODE" IS '外资产业代码';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."FORENTYPE" IS '外资企业类型';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."FORRECCAP" IS '外方实收资本';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."FORRECCAPCUR" IS '外方实收资本币种';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."FORRECCAPRATE" IS '外方实收资本汇率';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."FORRECCAPUSD" IS '外方实收资本折美元';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."FORREGCAP" IS '外方注册资本';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."FORREGCAPCUR" IS '外方注册资本币种';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."FORREGCAPINVPROP" IS '外方注册资本出资比例';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."FORREGCAPRATE" IS '外方注册资本汇率';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."FORREGCAPUSD" IS '外方注册资本折万美元';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."LAWACCEPTNAME" IS '法律文件接收人';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."MGRCAP" IS '承包工程合同额或管理费总额金额';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."MGRCAPCUR" IS '承包工程合同额或管理费总额币种';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."MGRCAPRATE" IS '承包工程合同额或管理费总额汇率';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."MGRCAPUSD" IS '承包工程合同额或管理费总额折美元';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."MGRINFO" IS '承包工程或经营管理内容';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."MGRITEM" IS '承包工程或经营管理项目';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."MIDPREINDCODE" IS '中西部优势产业代码';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."OILCAP" IS '从事石油勘探、开发和生产费用金额';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."OILCAPCUR" IS '从事石油勘探、开发和生产费用币种';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."OILCAPRATE" IS '从事石油勘探、开发和生产费用汇率';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."OILCAPUSD" IS '从事石油勘探、开发和生产费用折美元';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."RECCAPCUR" IS '实收资本币种';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."RECCAPRATE" IS '实收资本汇率';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."RECCAPRMB" IS '实收资本折人民币';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."RECCAPUSD" IS '实收资本折万美元';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."REGCAPCUR" IS '注册资本币种';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."REGCAPRATE" IS '注册资本汇率';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."REGCAPRMB" IS '注册资本折人民币';
COMMENT ON COLUMN "AICCS"."TRENTBASEFOR"."REGCAPUSD" IS '注册资本折万美元';

CREATE OR REPLACE  INDEX "AICCS"."TRENTBASEFOR_BIZSEQ_IDX" ON "AICCS"."TRENTBASEFOR"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRENTBASEINFO"
(
"ENTID" VARCHAR(36) NOT NULL,
"ENTITYNO" VARCHAR(36) NOT NULL,
"ENTTYPE" VARCHAR(1) NOT NULL,
"REGISTNO" VARCHAR(36) NOT NULL,
"ENTNAME" VARCHAR(400),
"EMPNUMBER" INT,
"ENTPHONE" VARCHAR(60),
"ENTADDRESS" VARCHAR(600),
"ENTZIP" VARCHAR(20),
"ENTEMAIL" VARCHAR(100),
"ENTSTATE" VARCHAR(1) NOT NULL,
"ISWEB" VARCHAR(1) NOT NULL,
"ISINVEINFO" VARCHAR(1) NOT NULL,
"REGISTDATE" TIMESTAMP(0) NOT NULL,
"REPORTYEAR" VARCHAR(20) NOT NULL,
"ISSUEDEPTID" VARCHAR(20),
"ISTRANSFERSTOCK" VARCHAR(1),
"EMPNUMBERISSHOW" VARCHAR(1),
"RELATIONS" VARCHAR(400),
"RELATIONSISSHOW" VARCHAR(1),
"ONAICCIPS" VARCHAR(1),
"CREATEDATE" TIMESTAMP(0),
"UPDATEDATE" TIMESTAMP(0),
"DSTATE" VARCHAR(1),
"ENTITYTYPE" VARCHAR(12),
"SUBENTITYTYPE" VARCHAR(12),
"ORGID" VARCHAR(18),
"ISSYNC" VARCHAR(4),
"MAINBUSIACT" VARCHAR(4000),
"WOMEMPNUM" INT,
"HOLDINGSMSG" VARCHAR(1),
"WOMEMPNUMWHETHER" VARCHAR(1),
"HOLDINGSMSGWHETHER" VARCHAR(1),
"ISSOCIALSECURITY" VARCHAR(1),
"ISGUARANTEE" VARCHAR(1),
"BELONGENTERPRISE" VARCHAR(72),
"IP" VARCHAR(30),
"ISPC" VARCHAR(1),
"IMSTANDMAC" VARCHAR(30),
NOT CLUSTER PRIMARY KEY("ENTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."TRENTBASEINFO_IDX" ON "AICCS"."TRENTBASEINFO"("ENTITYNO" ASC,"DSTATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_TRENTBASEINFO_ENTITYNO" ON "AICCS"."TRENTBASEINFO"("ENTITYNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRENTBASEQUR"
(
"PRIPID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"EMPNUM" DECIMAL(8,0),
"PARNUM" DECIMAL(8,0),
"LIMITPARNUM" DECIMAL(8,0),
"EXENUM" DECIMAL(8,0),
"TECHPERNUM" DECIMAL(8,0),
"UNEMPNUM" DECIMAL(8,0),
"WORKPRINUM" DECIMAL(8,0),
"ISINVCORP" VARCHAR(1),
"LOCUS" VARCHAR(1),
"ISADCORP" VARCHAR(1),
"ISSMALLCOALMINE" VARCHAR(1),
"ISAGR" VARCHAR(1),
"ISBROKER" VARCHAR(1),
"BRAPRICORPSIGN" VARCHAR(1),
"ISSECRECY" VARCHAR(1),
"ISCHANGEENTTYPE" VARCHAR(1),
"ECOPROPERTY" VARCHAR(1),
"ITEMTYPECODE" VARCHAR(2),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"DEVELOPCODE" VARCHAR(5),
"FOREIGNNUM" DECIMAL(8,0),
"ISCOMBINE" VARCHAR(1),
"AMERGE" VARCHAR(1),
"ISREGULATION" VARCHAR(400),
"CHATYPE" VARCHAR(2),
"AGRCATE" VARCHAR(10),
"ACCOUNTING" VARCHAR(1),
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TRENTBASEQUR" IS '主体查询统计附加表';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."ACCOUNTING" IS '核算方式';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."AGRCATE" IS '农资经营类别';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."AMERGE" IS 'A股并购';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."BIZSEQ" IS '企业历史业务号';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."BRAPRICORPSIGN" IS '商标印刷企业';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."CHATYPE" IS '连锁经营类';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."DEVELOPCODE" IS '开发区代码';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."ECOPROPERTY" IS '经济性质';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."EMPNUM" IS '从业人数';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."EXENUM" IS '执行人数';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."FOREIGNNUM" IS '其中外籍从业人数';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."ISADCORP" IS '是否广告企业';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."ISAGR" IS '是否经营农资';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."ISBROKER" IS '是否经纪人';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."ISCHANGEENTTYPE" IS '是否改制';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."ISCOMBINE" IS '是否资产并购';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."ISINVCORP" IS '是否投资公司';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."ISREGULATION" IS '章程备案';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."ISSECRECY" IS '是否保密';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."ISSMALLCOALMINE" IS '是否小煤矿';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."ITEMTYPECODE" IS '项目类型代码';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."LIMITPARNUM" IS '有限合伙人数';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."LOCUS" IS '所在地是否城镇';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."PARNUM" IS '合伙人数';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."TECHPERNUM" IS '技术人员';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."UNEMPNUM" IS '吸纳下岗失业人员就业人数';
COMMENT ON COLUMN "AICCS"."TRENTBASEQUR"."WORKPRINUM" IS '吸纳高校毕业生就业人数';

CREATE OR REPLACE  INDEX "AICCS"."TRENTBASEQUR_BIZSEQ_IDX" ON "AICCS"."TRENTBASEQUR"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRENTCAPITAL"
(
"CAPID" VARCHAR(36) NOT NULL,
"ENTITYNO" VARCHAR(36),
"ENTID" VARCHAR(36),
"USERNAME" VARCHAR(200),
"CAPSHOULD" DECIMAL(24,6),
"CAPREAL" DECIMAL(24,6),
"CAPDATE" DATE,
"CAPTYPE" VARCHAR(200),
"CAPSHOULDDATE" DATE,
"CAPSHOULDTYPE" VARCHAR(200),
"ISSHOW" VARCHAR(1) DEFAULT '1' NOT NULL,
"CREATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"UPDATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"DSTATE" VARCHAR(1) DEFAULT '0' NOT NULL,
"SYNCDATE" TIMESTAMP(0),
"SYNCFLAG" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ISSYNC" VARCHAR(2) DEFAULT 'nA' NOT NULL,
NOT CLUSTER PRIMARY KEY("CAPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRENTPRISETYPE"
(
"ENTTYPEID" VARCHAR(12) NOT NULL,
"DISPLAYVALUE" VARCHAR(200),
"PRINTVALUE" VARCHAR(100),
"PENTTYPEID" VARCHAR(12),
"ECOPROPERTY" VARCHAR(1),
"CORPORATION" VARCHAR(1),
"STANDARD" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6),
"PARTYTYPE" VARCHAR(4),
NOT CLUSTER PRIMARY KEY("ENTTYPEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRENTTYPE"
(
"ENTTYPEID" VARCHAR(12) NOT NULL,
"ENTTYPENAME" VARCHAR(120),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6),
"CLASSTYPE" VARCHAR(1),
"CLASSNAME" VARCHAR(40),
NOT CLUSTER PRIMARY KEY("ENTTYPEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRENTWEB"
(
"WEBID" VARCHAR(36) NOT NULL,
"ENTITYNO" VARCHAR(36),
"ENTID" VARCHAR(36),
"WEBTYPE" VARCHAR(1),
"WEBNAME" VARCHAR(200),
"WEBURL" VARCHAR(400),
"WEBIP" VARCHAR(200),
"WEBICP" VARCHAR(400),
"ISSHOW" VARCHAR(1) DEFAULT '1' NOT NULL,
"CREATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"UPDATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"DSTATE" VARCHAR(1) DEFAULT '0' NOT NULL,
"SYNCDATE" TIMESTAMP(0),
"SYNCFLAG" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ISSYNC" VARCHAR(2) DEFAULT 'nA' NOT NULL,
NOT CLUSTER PRIMARY KEY("WEBID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TREXEAFFPERSON"
(
"TREPID" VARCHAR(36) NOT NULL,
"INVPERSONID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"EPCERTYPE" VARCHAR(4),
"EPCERNO" VARCHAR(40),
"EPNAME" VARCHAR(200),
"EPNATION" VARCHAR(2),
"EPSEX" VARCHAR(1),
"EPADDR" VARCHAR(100),
"EPTEL" VARCHAR(30),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("TREPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRFOREIGNREPREREPORT"
(
"FOREIGNREPREID" VARCHAR(36) NOT NULL,
"ENTID" VARCHAR(36),
"USERNAME" VARCHAR(100),
"SCOPE" VARCHAR(1000),
"ANNFORENTAPPROFUND" DECIMAL(24,6),
"VENDINC" DECIMAL(24,6),
"ANNREDCOST" DECIMAL(24,6),
"VERCAPORG" VARCHAR(200),
"VERREPNUM" VARCHAR(100),
"REPNUM" DECIMAL(4,0),
"FOREMPNUM" DECIMAL(4,0),
"HKMACTWNUM" DECIMAL(4,0),
"CISPERNUM" DECIMAL(4,0),
"EMPNUM" DECIMAL(4,0),
"LAWAPPTAG" VARCHAR(1),
"APPDOCVALTAG" VARCHAR(1),
"PROACTTAG" VARCHAR(1),
"PROACT" VARCHAR(1),
"OTHERS" VARCHAR(1000),
"ISWEB" VARCHAR(1),
"COINID" VARCHAR(3),
"CREATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"UPDATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"DSTATE" VARCHAR(1) DEFAULT '0' NOT NULL,
"SYNCDATE" TIMESTAMP(0),
"SYNCFLAG" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ISSYNC" VARCHAR(2) DEFAULT 'nA' NOT NULL,
NOT CLUSTER PRIMARY KEY("FOREIGNREPREID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRGUARANTY"
(
"GAID" VARCHAR(36) NOT NULL,
"ENTID" VARCHAR(36),
"ENTITYNO" VARCHAR(36),
"DEBTORNAME" VARCHAR(200),
"NAMEISSHOW" VARCHAR(1),
"GATYPE" VARCHAR(1),
"GATYPEISSHOW" VARCHAR(1),
"RAGE" VARCHAR(2000),
"RAGEISSHOW" VARCHAR(1),
"PEFPERFROM" DATE,
"PEFPERTO" DATE,
"PEFPERISSHOW" VARCHAR(1),
"CREDITORNAME" VARCHAR(200),
"PRICLASECKIND" VARCHAR(2),
"PRICLASECAM" DECIMAL(24,6),
"GUARANPERIOD" VARCHAR(1),
"ISSHOWSTATUS" VARCHAR(1),
"CREATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"UPDATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"DSTATE" VARCHAR(1) DEFAULT '0' NOT NULL,
"SYNCDATE" TIMESTAMP(0),
"SYNCFLAG" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ISSYNC" VARCHAR(2) DEFAULT 'nA' NOT NULL,
"ISSHOW" VARCHAR(1) DEFAULT '1' NOT NULL,
NOT CLUSTER PRIMARY KEY("GAID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRIDMAKER"
(
"MAKERID" VARCHAR(100) 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 TABLE "AICCS"."TRINDIVIDUALREPORT"
(
"INDIVIDUALID" VARCHAR(36) NOT NULL,
"ENTID" VARCHAR(36),
"USERNAME" VARCHAR(100),
"SCOPE" VARCHAR(1000),
"ISPARTYMEMBER" VARCHAR(1),
"ISPARTYCOMMITTEE" VARCHAR(1),
"EMPNUMBER" INT,
"PARTYMEMBERNUM" INT,
"PARTYISSHOW" VARCHAR(1),
"GRADUATESNUM" INT,
"GRADUATESISSHOW" VARCHAR(1),
"SOLDIERSNUM" INT,
"SOLDIERSISSHOW" VARCHAR(1),
"DISABILITYNUM" INT,
"DISABILITYISSHOW" VARCHAR(1),
"UNEMPLOYMENTNUM" INT,
"UNEMPLOYMENTISSHOW" VARCHAR(1),
"TOTALFUNDS" DECIMAL(24,6),
"OUTPUTAMOUNT" DECIMAL(24,6),
"OUTPUTISSHOW" VARCHAR(1),
"SALESAMOUNT" DECIMAL(24,6),
"SALESISSHOW" VARCHAR(1),
"RETAILAMOUNT" DECIMAL(24,6),
"RETAILISSHOW" VARCHAR(1),
"MARKUPMODE" VARCHAR(1),
"REPORTISSHOW" VARCHAR(1),
"ENTNAMEISSAME" VARCHAR(1),
"USERISSAME" VARCHAR(1),
"MARKUPMODEISSAME" VARCHAR(1),
"SCOPEISSAME" VARCHAR(1),
"ADDRESSISSAME" VARCHAR(1),
"COLGRANUM" INT,
"RETSOLNUM" INT,
"DISPERNUM" INT,
"UNENUM" INT,
"RATGRO" DECIMAL(24,6),
"RATGROISSHOW" VARCHAR(1),
"ISWEB" VARCHAR(1),
"COINID" VARCHAR(3),
"CREATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"UPDATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"DSTATE" VARCHAR(1) DEFAULT '0' NOT NULL,
"SYNCDATE" TIMESTAMP(0),
"SYNCFLAG" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ISSYNC" VARCHAR(2) DEFAULT 'nA' NOT NULL,
NOT CLUSTER PRIMARY KEY("INDIVIDUALID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRINDUSTRYINFO"
(
"INDUSTRYINFOID" VARCHAR(36) NOT NULL,
"CHARENCODING" VARCHAR(1),
"FIRLAY" VARCHAR(2),
"SECLAY" VARCHAR(3),
"THILAY" VARCHAR(4),
"FULLCODE" VARCHAR(12),
"CODENAME" VARCHAR(400),
"CONTAIN" CLOB,
"NOCONTAIN" CLOB,
"BZ" VARCHAR(1),
"REMARKS" CLOB,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6),
NOT CLUSTER PRIMARY KEY("INDUSTRYINFOID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRINV"
(
"INVPERSONID" VARCHAR(36) NOT NULL,
"INVID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"INV" VARCHAR(200),
"INVTYPE" VARCHAR(2),
"CERTYPE" VARCHAR(2),
"CERNO" VARCHAR(80),
"BLICTYPE" VARCHAR(2),
"BLICNO" VARCHAR(52),
"SUBCONAM" DECIMAL(18,6),
"ACCONAM" DECIMAL(18,6),
"SUBCONDATE" TIMESTAMP(0),
"ACCONDATE" TIMESTAMP(0),
"CONPROP" DECIMAL(7,4),
"CONFORM" VARCHAR(40),
"BALDELPER" DECIMAL(2,0),
"EXEAFFSIGN" VARCHAR(1),
"COUNTRY" VARCHAR(3),
"ISORIGPERSON" VARCHAR(1),
"EVATYPE" VARCHAR(6),
"EXEPERSONID" VARCHAR(36),
"PARTNERPROP" VARCHAR(6),
"TAKEDUTYPE" VARCHAR(6),
"ISOFFIAFFAIR" VARCHAR(2),
"OCCUSTATUS" VARCHAR(400),
"NAME" VARCHAR(200),
"SEX" VARCHAR(1),
"NATDATE" TIMESTAMP(0),
"LITEDEG" VARCHAR(60),
"NATION" VARCHAR(2),
"DOM" VARCHAR(256),
"POSTALCODE" VARCHAR(6),
"TEL" VARCHAR(60),
"POLSTAND" VARCHAR(4),
"COINTYPE" VARCHAR(3),
"PAYDATE" TIMESTAMP(0),
"PERSON" VARCHAR(200),
"BALANCEPAIDDEADLINE" TIMESTAMP(0),
"CHORF" VARCHAR(1),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"FIXEDPHONE" VARCHAR(40),
"EMAIL" VARCHAR(100),
NOT CLUSTER PRIMARY KEY("INVPERSONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRINVESTMENTENT"
(
"INVESTMENTID" VARCHAR(36) NOT NULL,
"ENTITYNO" VARCHAR(36),
"ENTID" VARCHAR(36),
"INVENAME" VARCHAR(200),
"DEPARTMENT" VARCHAR(200),
"INVERSTAMOUNT" DECIMAL(24,6),
"INVEREGISTNO" VARCHAR(60),
"ISSHOW" VARCHAR(1) DEFAULT '1' NOT NULL,
"CREATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"UPDATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"DSTATE" VARCHAR(1) DEFAULT '0' NOT NULL,
"SYNCDATE" TIMESTAMP(0),
"SYNCFLAG" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ISSYNC" VARCHAR(2) DEFAULT 'nA' NOT NULL,
"INVESTAMOUNT" DECIMAL(24,6),
NOT CLUSTER PRIMARY KEY("INVESTMENTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRLICINFO"
(
"LICINFOID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"LICNO" VARCHAR(200),
"LICNAME" VARCHAR(240),
"VALFROM" TIMESTAMP(0),
"VALTO" TIMESTAMP(0),
"LICANTH" VARCHAR(200),
"LICSTATE" VARCHAR(1),
"APPRCONT" VARCHAR(400),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("LICINFOID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRPARTYBUILDINFO"
(
"PARTYID" VARCHAR(36) NOT NULL,
"ENTID" VARCHAR(36),
"ENTITYNO" VARCHAR(36),
"NUMPARM" DECIMAL(6,0),
"NUMPARMISSHOW" VARCHAR(1),
"PARINS" VARCHAR(1),
"PARINSISSHOW" VARCHAR(1),
"RESPARMSIGN" VARCHAR(1),
"RESPARMSIGNISSHOW" VARCHAR(1),
"RESPARSECSIGN" VARCHAR(1),
"RESPARSECSIGNISSHOW" VARCHAR(1),
"CREATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UPDATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"DSTATE" VARCHAR(1) DEFAULT '0' NOT NULL,
"SYNCDATE" TIMESTAMP(0),
"SYNCFLAG" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ISSYNC" VARCHAR(2) DEFAULT 'nA',
NOT CLUSTER PRIMARY KEY("PARTYID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRPRIPERSON"
(
"PRIPERSONID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"NAME" VARCHAR(200),
"SEX" VARCHAR(1),
"NATDATE" TIMESTAMP(0),
"CERTYPE" VARCHAR(4),
"CERNO" VARCHAR(80),
"POSITION" VARCHAR(4),
"OFFHFROM" TIMESTAMP(0),
"OFFHTO" TIMESTAMP(0),
"POSBRFORM" VARCHAR(2),
"LEREPSIGN" VARCHAR(1),
"APPOUNIT" VARCHAR(200),
"OFFSIGN" VARCHAR(1),
"COUNTRY" VARCHAR(3),
"ACCDSIDE" VARCHAR(200),
"TEL" VARCHAR(60),
"HOUSEADD" VARCHAR(256),
"NATION" VARCHAR(2),
"REPCARNO" VARCHAR(30),
"DATEOFINCHINA" TIMESTAMP(0),
"LITDEG" VARCHAR(2),
"POLSTAND" VARCHAR(2),
"DEPCARDFROM" TIMESTAMP(0),
"DEPCARDTO" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"FIXEDPHONE" VARCHAR(30),
"EMAIL" VARCHAR(100),
NOT CLUSTER PRIMARY KEY("PRIPERSONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRSOCIAL_QF"
(
"ENTID" VARCHAR(100) NOT NULL,
"ENTITYNO" VARCHAR(100),
"REPORTYEAR" VARCHAR(200),
"QJCS" VARCHAR(100),
NOT CLUSTER PRIMARY KEY("ENTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TRSOCIAL_QF" IS '企业社保累计欠费';
COMMENT ON COLUMN "AICCS"."TRSOCIAL_QF"."ENTID" IS '年报id';
COMMENT ON COLUMN "AICCS"."TRSOCIAL_QF"."ENTITYNO" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TRSOCIAL_QF"."QJCS" IS '累计次数';
COMMENT ON COLUMN "AICCS"."TRSOCIAL_QF"."REPORTYEAR" IS '年报年份';


CREATE TABLE "AICCS"."TRSOCIALSECURITY"
(
"SOCIALSECURITYID" VARCHAR(72) NOT NULL,
"ENTID" VARCHAR(72),
"REGNO" VARCHAR(72),
"SOCIALINSURANCETPTE" VARCHAR(6),
"SOCIALINSURANCETPTENO" INT,
"TOTALWAGES" DECIMAL(24,6),
"TOTALPAYMENT" DECIMAL(24,6),
"UNPAIDSOCIALINS" DECIMAL(24,6),
"TOTALWAGESWHETHER" VARCHAR(1),
"TOTALPAYMENTWHETHER" VARCHAR(1),
"UNPAIDSOCIALINSWHETHER" VARCHAR(1),
"CREATEDATE" TIMESTAMP(0),
"UPDATEDATE" TIMESTAMP(0),
"DSTATE" VARCHAR(1),
"TOWNNUM" INT,
"UNEMPLOYMENTNUM" INT,
"MEDICALNUM" INT,
"INJURYNUM" INT,
"BIRTHNUM" INT,
"ENTITYNO" VARCHAR(72),
"REPORTYEAR" VARCHAR(20),
"TOTALWAGES_SO110" DECIMAL(24,6),
"TOTALWAGES_SO210" DECIMAL(24,6),
"TOTALWAGES_SO310" DECIMAL(24,6),
"TOTALWAGES_SO510" DECIMAL(24,6),
"TOTALPAYMENT_SO110" DECIMAL(24,6),
"TOTALPAYMENT_SO210" DECIMAL(24,6),
"TOTALPAYMENT_SO310" DECIMAL(24,6),
"TOTALPAYMENT_SO410" DECIMAL(24,6),
"TOTALPAYMENT_SO510" DECIMAL(24,6),
"UNPAIDSOCIALINS_SO110" DECIMAL(24,6),
"UNPAIDSOCIALINS_SO210" DECIMAL(24,6),
"UNPAIDSOCIALINS_SO310" DECIMAL(24,6),
"UNPAIDSOCIALINS_SO410" DECIMAL(24,6),
"UNPAIDSOCIALINS_SO510" DECIMAL(24,6),
NOT CLUSTER PRIMARY KEY("SOCIALSECURITYID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TRSOCIALSECURITY" IS '社保信息表';

CREATE OR REPLACE  INDEX "AICCS"."TRSOCIALSECURITY_ENTITYNO_IDX" ON "AICCS"."TRSOCIALSECURITY"("ENTITYNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TRSOCIALSECURITY_REGNO_IDX" ON "AICCS"."TRSOCIALSECURITY"("REGNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TRSOCIALSECURITY_SOCIALSECURITYID_IDX" ON "AICCS"."TRSOCIALSECURITY"("SOCIALSECURITYID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TRSOCIALSECURITY_ENTID_IDX" ON "AICCS"."TRSOCIALSECURITY"("ENTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRSTOCKTRANSFER"
(
"STOCKID" VARCHAR(36) NOT NULL,
"ENTID" VARCHAR(36) NOT NULL,
"ENTITYNO" VARCHAR(36),
"INV" VARCHAR(200),
"AMPR" VARCHAR(20),
"TRANSINV" VARCHAR(200),
"TRANSAMPR" VARCHAR(20),
"TRANSFERDATE" DATE,
"ISSHOW" VARCHAR(1) DEFAULT '1' NOT NULL,
"CREATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"UPDATEDATE" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP() NOT NULL,
"DSTATE" VARCHAR(1) DEFAULT '0' NOT NULL,
"SYNCDATE" TIMESTAMP(0),
"SYNCFLAG" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ISSYNC" VARCHAR(2) DEFAULT 'nA' NOT NULL,
NOT CLUSTER PRIMARY KEY("STOCKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TRVERIFYCOMMON"
(
"VERIFYCOMMONID" VARCHAR(72) NOT NULL,
"USERID" VARCHAR(100),
"COMMONLANGUAGE" VARCHAR(1000),
"DSTATE" VARCHAR(2),
"CREATETIME" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0),
"TAG" VARCHAR(500),
"MODULE" VARCHAR(500),
NOT CLUSTER PRIMARY KEY("VERIFYCOMMONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."TRVERIFYCOMMON"."MODULE" IS '模块';
COMMENT ON COLUMN "AICCS"."TRVERIFYCOMMON"."TAG" IS '标签';


CREATE TABLE "AICCS"."TS_TASK_LIST_ENTER_TYPE"
(
"UID" VARCHAR(72) NOT NULL,
"WORKFLOW_ID" VARCHAR(72) NOT NULL,
"ENTER_TYPE" VARCHAR(40) DEFAULT '' NOT NULL,
NOT CLUSTER PRIMARY KEY("UID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

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


CREATE TABLE "AICCS"."TSABN_TAB"
(
"PRIPID" VARCHAR(72) NOT NULL,
"SFLY" VARCHAR(36),
"SNCS" VARCHAR(200),
"WNB" VARCHAR(100),
"WGS" VARCHAR(8),
"NXZJ" VARCHAR(8),
"SDCW" VARCHAR(8),
"QT" VARCHAR(8),
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSABN_TAB" IS '列异情况';
COMMENT ON COLUMN "AICCS"."TSABN_TAB"."NXZJ" IS '弄虚作假';
COMMENT ON COLUMN "AICCS"."TSABN_TAB"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TSABN_TAB"."QT" IS '其他';
COMMENT ON COLUMN "AICCS"."TSABN_TAB"."SDCW" IS '实地查无';
COMMENT ON COLUMN "AICCS"."TSABN_TAB"."SFLY" IS '是否列异';
COMMENT ON COLUMN "AICCS"."TSABN_TAB"."SNCS" IS '三年列入次数';
COMMENT ON COLUMN "AICCS"."TSABN_TAB"."WGS" IS '未公示';
COMMENT ON COLUMN "AICCS"."TSABN_TAB"."WNB" IS '未年报';


CREATE TABLE "AICCS"."TSABNLIST"
(
"ABNLISTID" VARCHAR(72) NOT NULL,
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"ENTTYPE" VARCHAR(4),
"SPECAUSE" VARCHAR(4),
"ABNTIME" DATE,
"SPEREASONS" VARCHAR(1000),
"REMEXCPRES" VARCHAR(4),
"REMDATE" DATE,
"REMREASONS" VARCHAR(1000),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"OPERATESTATUS" VARCHAR(1),
"RECONSIDERATIONORG" VARCHAR(100),
"GOVERNMENTORG" VARCHAR(100),
"LITIORG" VARCHAR(100),
"INTOSPONSOR" VARCHAR(100),
"REMSPONSOR" VARCHAR(100),
"INTOREMARK" VARCHAR(1000),
"REMREMARK" VARCHAR(1000),
"INTODECORG" VARCHAR(100),
"REMDECORG" VARCHAR(100),
"UNISCID" VARCHAR(36),
"REMWRITID" VARCHAR(90),
"INTOWRITID" VARCHAR(90),
"LEREP" VARCHAR(400),
"CERTYPE" VARCHAR(128),
"CERNO" VARCHAR(400),
"ISSHOW" VARCHAR(1) DEFAULT '1',
"DECORG" VARCHAR(128),
"REDECORG" VARCHAR(128),
"INTODECORGCODE" VARCHAR(100),
"SOURCETYPE" VARCHAR(10),
"CASESOURCE" VARCHAR(4),
"CONTACTENTITY" VARCHAR(200),
"CONTACTMETHODORG" VARCHAR(50),
NOT CLUSTER PRIMARY KEY("ABNLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

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

CREATE OR REPLACE  INDEX "AICCS"."IDX_TSABNLIST_LAUPTIME" ON "AICCS"."TSABNLIST"("LAUPTIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSABNLIST_UNISCID_IDX" ON "AICCS"."TSABNLIST"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSABNLIST_ABNTIME_IDX" ON "AICCS"."TSABNLIST"("ABNTIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSABNLIST_REGNO_IDX" ON "AICCS"."TSABNLIST"("REGNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_TSABNLIST_ENTNAME" ON "AICCS"."TSABNLIST"("ENTNAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSABNLIST_PRIPID_IDX" ON "AICCS"."TSABNLIST"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSABNLIST_REMDATE_IDX" ON "AICCS"."TSABNLIST"("REMDATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSABNLIST_INTODECORG_IDX" ON "AICCS"."TSABNLIST"("INTODECORG" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSABNLIST_SPEREASONS_IDX" ON "AICCS"."TSABNLIST"("SPEREASONS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_TSABNLIST_PRIPID_OPERATE" ON "AICCS"."TSABNLIST"("PRIPID" ASC,"OPERATESTATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSABNLIST_DECORG_IDX" ON "AICCS"."TSABNLIST"("DECORG" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSABNLIST_OPERATESTATUS_IDX" ON "AICCS"."TSABNLIST"("OPERATESTATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSABNOPERATINGLIST"
(
"SERIALID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"ADDRESS" VARCHAR(1000),
"LEREPNAME" VARCHAR(100),
"NOREPORT" VARCHAR(1),
"LOST" VARCHAR(1),
"UNDELIVERABLE" VARCHAR(1),
"DESCRIPTION" VARCHAR(1000),
"LOADINGDATE" DATE,
"STRUMENTNO" VARCHAR(200),
"ORGID" VARCHAR(36),
"AICID" VARCHAR(18),
"RESTORED" VARCHAR(1),
"INSTRUCTIONS" VARCHAR(1000),
"BIZSEQ" VARCHAR(36),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"RECOVERYBIZSEQ" VARCHAR(36),
NOT CLUSTER PRIMARY KEY("SERIALID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSAFTERAUCTION"
(
"BIZSEQID" VARCHAR(72) NOT NULL,
"AUCTIONID" VARCHAR(72),
"POSTAPPROVEDATE" TIMESTAMP(0),
"HASMONITOR" VARCHAR(1),
"BARGAINNUM" DECIMAL(3,0),
"BARGAINVALUE" DECIMAL(16,4),
"APPROVEDATE" TIMESTAMP(0),
"STATUS" VARCHAR(1),
"AICID" VARCHAR(18),
"ISSUEDEPTID" VARCHAR(18),
"LIST" VARCHAR(400),
"UNTRADEMSG" VARCHAR(1000),
"STRIFENUM" DECIMAL(3,0),
"ACCEPTNUM" DECIMAL(3,0),
"ISWEBSUBMIT" VARCHAR(1),
"AUCTION_CALENDAR" TIMESTAMP(0),
"HOUSE_ID" VARCHAR(72),
"REQUEST_ID" VARCHAR(72),
"CREATED_DATE" TIMESTAMP(0),
"ATTN" VARCHAR(100),
"PASS_NUM" DECIMAL(3,0),
"FLAG" VARCHAR(2),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("BIZSEQID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSALTREC"
(
"ALTID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"BIZSEQ" VARCHAR(36),
"LASTBIZSEQ" VARCHAR(36),
"ALTITEM" VARCHAR(3),
"ALTBE" VARCHAR(4000),
"ALTAF" VARCHAR(4000),
"ALTDATE" TIMESTAMP(0),
"ALTTIME" INT,
"CHANGETAG" VARCHAR(1),
"LOGTYPE" VARCHAR(2),
"TABLENAME" VARCHAR(100),
"FIELDNAME" VARCHAR(200),
"LISTBIZSEQ" VARCHAR(36),
"ISAPPR" VARCHAR(1),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ALTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSANNUALREPORT"
(
"ID" VARCHAR(36) NOT NULL,
"REPORTID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ANNUALYEAR" INT,
"REPORTEDDATE" DATE,
"ADDRESSCHANGE" VARCHAR(1),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"URL" VARCHAR(400),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSAPPINFO"
(
"SERIALID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(36),
"PRIPID" VARCHAR(36),
"NAME" VARCHAR(100),
"CERTYPE" VARCHAR(1),
"CERNO" VARCHAR(80),
"TEL" VARCHAR(60),
"MOBTEL" VARCHAR(60),
"APPDATE" DATE,
"EMAIL" VARCHAR(100),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("SERIALID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSAREA"
(
"AREAID" VARCHAR(36) NOT NULL,
"AREANAME" VARCHAR(200),
"ORGID" VARCHAR(36),
"AICID" VARCHAR(18),
"GROUPID" VARCHAR(36),
"AREADESC" VARCHAR(2000),
"STATUS" VARCHAR(1),
"CUSTOMINDEX" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("AREAID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSAREAALERTSTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"OBJTYPENO" VARCHAR(9),
"PROVINCEID" VARCHAR(18),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(18),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"TOWNNAME" VARCHAR(200),
"GROUPNAME" VARCHAR(100),
"AREANAME" VARCHAR(200),
"OBJNUM" INT,
"NEARDATE7" INT,
"NEARDATE15" INT,
"OVERDATE" INT,
"OVERDATE30" INT,
"DEBUTRETURNCHECKOVERDATE" INT,
"EVERYDAYCHECKOVERDATE" INT,
"SPECIALISATIONCHECKOVERDATE" INT,
"CASEAFTERCHECKOVERDATE" INT,
"CHECKOVERDATE" INT,
"MANAGENEARDATE30" INT,
"MANAGEOVERDATE" INT,
"PERMITNEARDATE30" INT,
"PERMITOVERDATE" INT,
"PAUSEOVERDATE" INT,
"DISAPPEARANCE" INT,
"REPORTTYPE" INT,
"RECORDTYPE" VARCHAR(1),
"AREANO" VARCHAR(36),
"GROUPNO" VARCHAR(36),
"PERILIMPORTINDUSTRYID" VARCHAR(36),
"PERILIMPORTINDUSTRYNAME" VARCHAR(200),
"FDSTATDATE" DATE,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSAREAORG"
(
"AREAORGID" VARCHAR(72) NOT NULL,
"AREAID" VARCHAR(72),
"ORGUNITID" VARCHAR(72),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(12) DEFAULT '440100',
NOT CLUSTER PRIMARY KEY("AREAORGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSAREASTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"INSOBJTYPE" VARCHAR(9),
"PROVINCEID" VARCHAR(18),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(18),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"TOWNNAME" VARCHAR(200),
"GROUPNAME" VARCHAR(100),
"AREANAME" VARCHAR(200),
"OBJNUM" INT,
"LEVELTYPEA" INT,
"LEVELTYPEB" INT,
"LEVELTYPEC" INT,
"LEVELTYPED" INT,
"RISKINDUSTRYJIA" INT,
"RISKINDUSTRYYI" INT,
"RISKINDUSTRYBING" INT,
"DEBUTRETURNCHECK" INT,
"EVERYDAYCHECK" INT,
"SPECIALISATIONCHECK" INT,
"COMPLAINCHECK" INT,
"CASEAFTERCHECK" INT,
"ORALEDUCATION" INT,
"WRITTENEDUCATION" INT,
"ORALCAUTION" INT,
"WRITTENCAUTION" INT,
"COUNSELING" INT,
"ORALCAVEAT" INT,
"WRITTENCAVEAT" INT,
"ORALCHARGE" INT,
"WRITTENCHARGE" INT,
"TOCASEKEYINFO" INT,
"TOEASYCASE" INT,
"TOMUTUALITYDEPT" INT,
"TERMPASSINREVIEW" INT,
"REGISTEREMPHASISCHECK" INT,
"ACCEPTEDEMPHASISCHECK" INT,
"ISLOSTOBJNUM" INT,
"ISNATURALOBJNUM" INT,
"NOFINISHTOTAL" INT,
"FINISHTOTAL" INT,
"AMERCEAMOUNT" INT,
"AMERCETOTAL" INT,
"COERCESTEP" INT,
"REVOKELICENCE" INT,
"REPORTTYPE" INT,
"RECORDTYPE" VARCHAR(1),
"AREANO" VARCHAR(36),
"GROUPNO" VARCHAR(36),
"PERILIMPORTINDUSTRYID" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSAREATYPE"
(
"TYPEID" VARCHAR(36) NOT NULL,
"TYPENAME" VARCHAR(200),
"SETUPAICID" VARCHAR(18),
"SETUPAICNAME" VARCHAR(200),
"SETUPDEPTID" VARCHAR(36),
"SETUPDEPTNAME" VARCHAR(200),
"SETUPUSERID" VARCHAR(36),
"SETUPUSERNAME" VARCHAR(200),
"SETUPBASIS" VARCHAR(1000),
"CUSTOMINDEX" INT,
"SETTIME" DATE,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("TYPEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSATTACHEDINFO"
(
"INFORMATIONID" VARCHAR(36) NOT NULL,
"BATCHID" VARCHAR(36),
"FILENO" VARCHAR(200),
"CREDITNAME" VARCHAR(200),
"ORIGINORG" VARCHAR(200),
"GRANTUNITS" VARCHAR(200),
"ORIGINTIME" DATE,
"GRANTDATE" DATE,
"CERTIFICATENAME" VARCHAR(200),
"VALIDENDTIME" DATE,
"VALIDYEARS" INT,
"REASONFACT" VARCHAR(1000),
"GIST" VARCHAR(1000),
"WRITCONTENT" VARCHAR(1000),
"OPERATORID" VARCHAR(128),
"OPERATORTIME" DATE,
"REMARK" VARCHAR(4000),
"STATUS" VARCHAR(1) DEFAULT '0' NOT NULL,
"BIZSEQ" VARCHAR(36),
"ATTACHEDTYPE" VARCHAR(2),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"OPERATORNAME" VARCHAR(200),
NOT CLUSTER PRIMARY KEY("INFORMATIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSATTACHMENT"
(
"ATTACHMENTID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"REMNO" INT,
"PRIPID" VARCHAR(72),
"FILENAME" VARCHAR(400),
"FILEURL" VARCHAR(400),
"TEMPPATH" VARCHAR(400),
"UPLOADDATE" DATE,
"USERID" VARCHAR(72),
"USERNAME" VARCHAR(100),
"FILEEXT" VARCHAR(40),
"FILETYPE" VARCHAR(20),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"ATTACHTYPE" VARCHAR(20),
"CREATETYPE" VARCHAR(10) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("ATTACHMENTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSATTACHMENT" IS '监管附件上传信息表';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."ATTACHMENTID" IS '附件Id';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."ATTACHTYPE" IS '附件类型';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."CREATETYPE" IS '生成类型 ”0“手动上传”1“系统生成';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."FILEEXT" IS '文件拓展名';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."FILENAME" IS '文件名/文件描述';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."FILETYPE" IS '上传材料类型';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."FILEURL" IS '文件相对路径';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."PRIPID" IS '主体身份ID';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."REMNO" IS '剔除批次 0为自动剔除';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."TEMPPATH" IS '文件临时路径';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."UPLOADDATE" IS '上传时间';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."USERID" IS '上传用户Id';
COMMENT ON COLUMN "AICCS"."TSATTACHMENT"."USERNAME" IS '上传用户名';

CREATE OR REPLACE  INDEX "AICCS"."TSATTACHMENT_PRIPID_IDX" ON "AICCS"."TSATTACHMENT"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSATTACHMENT_BIZSEQ_IDX" ON "AICCS"."TSATTACHMENT"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSAUCTION"
(
"BIZSEQID" VARCHAR(36) NOT NULL,
"AUCTIONCORP" VARCHAR(200),
"AUCTIONNAME" VARCHAR(200),
"AUCTIONDATE" TIMESTAMP(0),
"AUCTIONEER" VARCHAR(60),
"AUCTIONADDRESS" VARCHAR(200),
"PUBLICDATE" TIMESTAMP(0),
"PUBLICMEDIUM" VARCHAR(120),
"ITEMSHOWDATE" TIMESTAMP(0),
"ITEMSHOWADDRESS" VARCHAR(200),
"ISFOREIGN" VARCHAR(1),
"TURNOVERNUM" DECIMAL(3,0),
"TURNOVER" DECIMAL(16,4),
"REGISTERNO" VARCHAR(60),
"STATUS" VARCHAR(1),
"POSTBIZSEQUENCE" VARCHAR(72),
"CONTRACTNUM" DECIMAL(3,0),
"CONTRACTSUM" DECIMAL(16,4),
"SUPERVISEDEPTID" VARCHAR(72),
"AUCTIONEERCERTID" VARCHAR(80),
"AUCTIONPERIODNO" VARCHAR(20),
"APPROVEDATE" TIMESTAMP(0),
"ITEMSHOWENDDATE" TIMESTAMP(0),
"ISSUEDEPTID" VARCHAR(18),
"AICID" VARCHAR(18),
"POSTAPPROVEDATE" TIMESTAMP(0),
"HASMONITOR" VARCHAR(1),
"ENTITYTYPEID" VARCHAR(6),
"LASTAPPROVEDATE" TIMESTAMP(0),
"INDUSTRYTYPE" VARCHAR(1),
"AUCTIONCORPREGNO" VARCHAR(60),
"ITEMSOURCE" VARCHAR(4000),
"ITEM" VARCHAR(4000),
"ISWEBSUBMIT" VARCHAR(1),
"CREATED_DATE" TIMESTAMP(0),
"REQUEST_ID" VARCHAR(72),
"ENTITYNO" VARCHAR(72),
"ATTN" VARCHAR(100),
"POSTINFONUM" DECIMAL(3,0),
"FLAG" VARCHAR(2),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("BIZSEQID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSAUCTIONBUYER"
(
"BUYERID" VARCHAR(72) NOT NULL,
"RESULTID" VARCHAR(72),
"BUYERNAME" VARCHAR(40),
"CERTNAME" VARCHAR(100),
"CERTID" VARCHAR(100),
"MOBILEPHONE" VARCHAR(100),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("BUYERID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSAUCTIONBUYER" IS '买受人';
COMMENT ON COLUMN "AICCS"."TSAUCTIONBUYER"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSAUCTIONBUYER"."BUYERID" IS '买受人id';
COMMENT ON COLUMN "AICCS"."TSAUCTIONBUYER"."BUYERNAME" IS '买家姓名';
COMMENT ON COLUMN "AICCS"."TSAUCTIONBUYER"."CERTID" IS '证件号码';
COMMENT ON COLUMN "AICCS"."TSAUCTIONBUYER"."CERTNAME" IS '证件名称';
COMMENT ON COLUMN "AICCS"."TSAUCTIONBUYER"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSAUCTIONBUYER"."MOBILEPHONE" IS '联系电话';
COMMENT ON COLUMN "AICCS"."TSAUCTIONBUYER"."RESULTID" IS '拍卖结果主键';

CREATE OR REPLACE  INDEX "AICCS"."TSAUCTIONBUYER_RESULTID_IDX" ON "AICCS"."TSAUCTIONBUYER"("RESULTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSAUCTIONECDEMIC"
(
"AUCTIONECDEMICID" VARCHAR(72) NOT NULL,
"BIZSEQID" VARCHAR(72),
"REGISTERNO" VARCHAR(60),
"ENTITYTYPEID" VARCHAR(20),
"CORPNAME" VARCHAR(200),
"ADDRESS" VARCHAR(200),
"PRINCIPAL" VARCHAR(160),
"REGCAPITAL" DECIMAL(16,4),
"REGCAPITALCOIN" VARCHAR(40),
"BUSINESSSCOPE" VARCHAR(2112),
"AIC" VARCHAR(200),
"FOUNDINGDATE" TIMESTAMP(0),
"PHONE" VARCHAR(100),
"POSTCODE" VARCHAR(12),
"EMAIL" VARCHAR(140),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("AUCTIONECDEMICID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSAUCTIONPRINCIPAL"
(
"BRPRINCIPALID" VARCHAR(36) NOT NULL,
"BIZSEQID" VARCHAR(72),
"CATEGORY" VARCHAR(200),
"NAME" VARCHAR(40),
"UNITED" VARCHAR(1),
"OTHERPRINCIPAL" VARCHAR(600),
"MEMO" VARCHAR(400),
"FILE_NAME" VARCHAR(510),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("BRPRINCIPALID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSAUCTIONRESULT"
(
"RESULTID" VARCHAR(36) NOT NULL,
"BIZSEQID" VARCHAR(36),
"AUCTIONEERNAME" VARCHAR(40),
"AUCTIONEERLICENSENUMBER" VARCHAR(100),
"CONCLUSIVE" VARCHAR(1),
"FLOWSTANDARDREASONS" VARCHAR(2),
"FMEMO" VARCHAR(400),
"SUSPENSIONMEMO" VARCHAR(400),
"PLATENUMBER" VARCHAR(100),
"TARGETCATEGORY" VARCHAR(200),
"TARGETNAME" VARCHAR(400),
"TRANSACTIONPRICE" DECIMAL(18,6),
"AUCTIONEER_ID" VARCHAR(72),
"PASS_DESC" VARCHAR(200),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("RESULTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSAUDITING"
(
"AUDITINGID" VARCHAR(72) NOT NULL,
"WORKFLOWID" VARCHAR(72),
"CASEID" VARCHAR(72),
"AUDITINGTYPE" VARCHAR(8),
"AUDITINGTITLE" VARCHAR(200),
"AUDITINGCONTENT" VARCHAR(2000),
"HANDLER" VARCHAR(60),
"HANDLEORG" VARCHAR(200),
"HANDLEDEPT" VARCHAR(200),
"HANDLEDATE" DATE,
"HANDLEORGCODE" VARCHAR(40),
"ISAGREE" VARCHAR(1),
"DELCHEDATE" DATE,
"WITHTOMEDATE" DATE,
"ARCHIVESFLAG" VARCHAR(1),
"ARCHIVESNO" VARCHAR(60),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("AUDITINGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSAUDITING" IS '监管共用审批表';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."ARCHIVESFLAG" IS '归档标志';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."ARCHIVESNO" IS '电子档案编号';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."AUDITINGCONTENT" IS '审批内容';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."AUDITINGID" IS '审批表编号';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."AUDITINGTITLE" IS '审批主题';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."AUDITINGTYPE" IS '审批类型';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."CASEID" IS '案件编号';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."DELCHEDATE" IS '送审日期';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."HANDLEDATE" IS '承办日期';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."HANDLEDEPT" IS '承办部门';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."HANDLEORG" IS '承办机构';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."HANDLEORGCODE" IS '承办机构编码';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."HANDLER" IS '承办人';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."ISAGREE" IS '是否同意';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."WITHTOMEDATE" IS '退卷日期';
COMMENT ON COLUMN "AICCS"."TSAUDITING"."WORKFLOWID" IS '流程主键';

CREATE OR REPLACE  INDEX "AICCS"."TSAUDITING_CASEID_IDX" ON "AICCS"."TSAUDITING"("CASEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSAUDITING_WORKFLOWID_IDX" ON "AICCS"."TSAUDITING"("WORKFLOWID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSBIZABNOPERATINGLIST"
(
"SERIALID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(36),
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"ADDRESS" VARCHAR(400),
"LEREPNAME" VARCHAR(200),
"NOREPORT" VARCHAR(1),
"LOST" VARCHAR(1),
"UNDELIVERABLE" VARCHAR(1),
"DESCRIPTION" VARCHAR(1000),
"STRUMENTNO" VARCHAR(200),
"ORGID" VARCHAR(36),
"AICID" VARCHAR(18),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("SERIALID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSBIZABNREVOKE"
(
"BIZABNREVOKEID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"REVOKENAME" VARCHAR(400),
"REVOKEREASON" VARCHAR(2000),
"INITIATORID" VARCHAR(36),
"INITIATOR" VARCHAR(100),
"INITIATETIME" TIMESTAMP(0),
"AICID" VARCHAR(18),
"BIZTYPE" VARCHAR(4),
"STATUS" VARCHAR(1),
"APPRTIME" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(18) DEFAULT '440100',
NOT CLUSTER PRIMARY KEY("BIZABNREVOKEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSBIZABNREVOKE" IS '经营异常名录撤销业务表';
COMMENT ON COLUMN "AICCS"."TSBIZABNREVOKE"."AICID" IS '机构编码';
COMMENT ON COLUMN "AICCS"."TSBIZABNREVOKE"."APPRTIME" IS '核准时间';
COMMENT ON COLUMN "AICCS"."TSBIZABNREVOKE"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSBIZABNREVOKE"."BIZABNREVOKEID" IS '主键ID';
COMMENT ON COLUMN "AICCS"."TSBIZABNREVOKE"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSBIZABNREVOKE"."BIZTYPE" IS '业务类型';
COMMENT ON COLUMN "AICCS"."TSBIZABNREVOKE"."INITIATETIME" IS '发起时间';
COMMENT ON COLUMN "AICCS"."TSBIZABNREVOKE"."INITIATOR" IS '发起人';
COMMENT ON COLUMN "AICCS"."TSBIZABNREVOKE"."INITIATORID" IS '发起人ID';
COMMENT ON COLUMN "AICCS"."TSBIZABNREVOKE"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSBIZABNREVOKE"."REVOKENAME" IS '撤销主体名称';
COMMENT ON COLUMN "AICCS"."TSBIZABNREVOKE"."REVOKEREASON" IS '撤销原因';
COMMENT ON COLUMN "AICCS"."TSBIZABNREVOKE"."STATUS" IS '状态';

CREATE OR REPLACE  INDEX "AICCS"."TSBIZABNREVOKE_BIZSEQ_IDX" ON "AICCS"."TSBIZABNREVOKE"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSBIZAPPROVAL"
(
"BIZSEQ" VARCHAR(36) NOT NULL,
"APPROVALNAME" VARCHAR(200),
"STARTTIME" DATE,
"APPROVALTIME" DATE,
"BIZTYPE" VARCHAR(1),
"ORGID" VARCHAR(36),
"AICID" VARCHAR(18),
"SENDTIME" DATE,
"SENDUSERID" VARCHAR(36),
"SENDNAME" VARCHAR(100),
"APPROVALNODE" VARCHAR(1),
"UNDERTAKERID" VARCHAR(36),
"UNDERTAKERNAM" VARCHAR(100),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ACCEPTNO" VARCHAR(13),
NOT CLUSTER PRIMARY KEY("BIZSEQ")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSBIZATTACHEDINFO"
(
"INFORMATIONID" VARCHAR(36) NOT NULL,
"BATCHID" VARCHAR(36),
"BIZSEQ" VARCHAR(36),
"FILENO" VARCHAR(200),
"CREDITNAME" VARCHAR(200),
"ORIGINORG" VARCHAR(200),
"GRANTUNITS" VARCHAR(200),
"ORIGINTIME" DATE,
"GRANTDATE" DATE,
"CERTIFICATENAME" VARCHAR(200),
"VALIDENDTIME" DATE,
"VALIDYEARS" INT,
"REASONFACT" VARCHAR(1000),
"GIST" VARCHAR(1000),
"WRITCONTENT" VARCHAR(1000),
"OPERATORID" VARCHAR(128),
"OPERATORTIME" DATE,
"REMARK" VARCHAR(4000),
"STATUS" VARCHAR(1) DEFAULT '0',
"ATTACHEDTYPE" VARCHAR(2),
"INNERENTITYID" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100',
"OPERATORNAME" VARCHAR(200),
NOT CLUSTER PRIMARY KEY("INFORMATIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSBIZCHECKRESULT"
(
"BIZRESULTID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(36) NOT NULL,
"RESULTID" VARCHAR(36) NOT NULL,
"INSOBJID" VARCHAR(36),
"INSID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"INSAUTH" VARCHAR(18),
"ISCHECK" VARCHAR(1) DEFAULT '0',
"WRICHECK" VARCHAR(1),
"REALCHECK" VARCHAR(1),
"NETCHECK" VARCHAR(1),
"PROCHECK" VARCHAR(1),
"CHECKTYPE" VARCHAR(1),
"ISRECHECK" VARCHAR(1),
"INSTYPE" VARCHAR(1),
"INSDATE" TIMESTAMP(0),
"EMPID" VARCHAR(36),
"INSPECTDETAIL" VARCHAR(3),
"MEASURE" VARCHAR(1),
"WRITNO" VARCHAR(200),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100',
"ORDRECDATE" TIMESTAMP(0),
"OTHERDETAIL" VARCHAR(400),
"OTHERSTATUS" VARCHAR(1),
"ORDRECDAYS" INT,
"NOTCOOAUDSTATUS" VARCHAR(1),
"CHECKEDSUG" VARCHAR(40),
"INSPECTDETAILEXT" VARCHAR(400),
"CONTACTNUM" VARCHAR(40),
NOT CLUSTER PRIMARY KEY("BIZRESULTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSBIZDEBTOR"
(
"DEBTORID" VARCHAR(72) NOT NULL,
"BIZSEQID" VARCHAR(36),
"DEBTOR" VARCHAR(200),
"DEBTORREGNO" VARCHAR(64),
"DEBTORADD" VARCHAR(200),
"DEBTORCODEID" VARCHAR(72),
"DEBTORREGDEPT" VARCHAR(120),
"DEBTORLEGREP" VARCHAR(60),
"DEBTORLEGREPSEX" VARCHAR(1),
"DEBTORLEGREPCERTID" VARCHAR(36),
"DEBTORLEGREPCON" VARCHAR(6),
"DEBTORLEGREPADD" VARCHAR(200),
"DEBTORAGENT" VARCHAR(60),
"DEBTORAGENTSEX" VARCHAR(1),
"DEBTORAGENTCERTID" VARCHAR(36),
"DEBTORAGENTPHONE" VARCHAR(40),
"DEBTORAGENTADD" VARCHAR(200),
"DEBTORAGENTCON" VARCHAR(6),
"PERSONTYPE" VARCHAR(1),
"DEBTORREGDEPTID" VARCHAR(18),
"DEBTORENTITYTYPE" VARCHAR(12),
"ISFOREIGN" VARCHAR(1),
"DEBTORLEGREPCERTTYPE" VARCHAR(128),
"DEBTORAGENTCERTTYPE" VARCHAR(128),
"DEBTORPROPERTY" VARCHAR(1),
"APPLICANTCERNAME" VARCHAR(1),
"DEBTORCARDIDTYPE" VARCHAR(20),
"DEBTORCARDID" VARCHAR(20),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("DEBTORID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSBIZDISSENT"
(
"DISSENTID" VARCHAR(72) NOT NULL,
"ABNLISTID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(60),
"UNISCID" VARCHAR(36),
"ENTNAME" VARCHAR(200),
"LEREPNAME" VARCHAR(100),
"CONTACTS" VARCHAR(100),
"TELEPHONE" VARCHAR(60),
"SITUATION" VARCHAR(1000),
"APPROVALDATE" DATE,
"ACCEPTSTAT" VARCHAR(1),
"APPLYREMARK" VARCHAR(1000),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"APPROVALREMARK" VARCHAR(1000),
"ABNTIME" DATE,
"ABNREA" VARCHAR(4),
"ABNREA_CN" VARCHAR(1000),
"APPORPC" VARCHAR(1) DEFAULT 1,
"APPLICANT" VARCHAR(100),
"APPLICANTNO" VARCHAR(100),
"APPLICANTID" VARCHAR(100),
"STATUS" VARCHAR(1),
NOT CLUSTER PRIMARY KEY("DISSENTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSBIZDISSENT" IS '经营异常名录异议业务表';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."ABNLISTID" IS '经营异常名录ID';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."ABNREA" IS '列入原因（码值）';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."ABNREA_CN" IS '列入原因（中文）';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."ABNTIME" IS '列异日期';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."ACCEPTSTAT" IS '受理状态（0：不受理；1：受理）';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."APPLICANT" IS '移动端申请人';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."APPLICANTID" IS '移动端申请人身份证';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."APPLICANTNO" IS '移动端申请人电话号码';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."APPLYREMARK" IS '申请环节备注';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."APPORPC" IS '标识移动端或pc端  0:移动端，1：pc端';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."APPROVALDATE" IS '核准日期';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."APPROVALREMARK" IS '核准环节备注';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."CONTACTS" IS '联系人';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."DISSENTID" IS '编号ID';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."ENTNAME" IS '名称';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."LEREPNAME" IS '法定代表人';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."SITUATION" IS '核实情况';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."STATUS" IS '9-受理中 0-材料补正 1-审批中 2-通过 3-不通过 4-作废';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."TELEPHONE" IS '联系电话';
COMMENT ON COLUMN "AICCS"."TSBIZDISSENT"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "AICCS"."TSBIZDISSENT_ABNLISTID_IDX" ON "AICCS"."TSBIZDISSENT"("ABNLISTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSBIZDISSENT_PRIPID_IDX" ON "AICCS"."TSBIZDISSENT"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSBIZDISSENT_BIZSEQ_IDX" ON "AICCS"."TSBIZDISSENT"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSBIZEXCNAMELIST"
(
"SERIALID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(36),
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"ADDRESS" VARCHAR(1000),
"LEREPNAME" VARCHAR(100),
"SUBJECTMARK" VARCHAR(1),
"DESCRIPTION" VARCHAR(1000),
"STRUMENTNO" VARCHAR(200),
"ORGID" VARCHAR(36),
"AICID" VARCHAR(18),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("SERIALID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSBIZPLEDGE"
(
"BIZSEQID" VARCHAR(36) NOT NULL,
"PLEDGEID" VARCHAR(36),
"PLEDGEREGNO" VARCHAR(128),
"APPROVEDATE" TIMESTAMP(0),
"PAWNNAME" VARCHAR(120),
"OWNER" VARCHAR(400),
"EXPIREDATE" VARCHAR(200),
"SCOPE" VARCHAR(1200),
"APPLYDATE" TIMESTAMP(0),
"SUPERVISEDEPTID" VARCHAR(72),
"CONTRACTNO" VARCHAR(128),
"TOTALNUM" DECIMAL(8,0),
"APPROVECONTENT" VARCHAR(120),
"ISSUEDEPTID" VARCHAR(18),
"AICID" VARCHAR(18),
"SURETYMONEY" DECIMAL(16,4),
"UNIT" VARCHAR(12),
"DEBTORNAME" VARCHAR(400),
"CONTRACTNAME" VARCHAR(200),
"EXPIRESHOWMODE" VARCHAR(1),
"EXPIRESTARTDATE" TIMESTAMP(0),
"PMONEY" DECIMAL(16,4),
"CREDITORSRIGHTSTYPE" VARCHAR(400),
"PLEDGESTARTDATE" TIMESTAMP(0),
"REASON" VARCHAR(400),
"PRICLASECAM" DECIMAL(16,4),
"REMARK" VARCHAR(800),
"INTEREST" DECIMAL(18,6),
"DEFAM" DECIMAL(18,6),
"DAMCOMAM" DECIMAL(18,6),
"EXPENSE" DECIMAL(18,6),
"CONTOTHER" VARCHAR(200),
"STATUS" VARCHAR(2),
"BIZSTATUS" VARCHAR(2),
"CREDITBARGAINTYPE" VARCHAR(1),
"HOLD" VARCHAR(1600),
"FLAG" VARCHAR(2),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("BIZSEQID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSBIZPUNISHLOCK"
(
"LOCKID" VARCHAR(72) NOT NULL,
"PUNISHINFOID" VARCHAR(72),
"BIZSEQ" VARCHAR(72),
"UNISCID" VARCHAR(36),
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"PUNISHFROM" VARCHAR(510),
"LOCKREASON" VARCHAR(4000),
"LOCKUSERNAME" VARCHAR(40),
"LOCKUSERID" VARCHAR(80),
"LOCKUSERDEPTID" VARCHAR(80),
"LOCKUSERUNITID" VARCHAR(80),
"LOCKSTARTDATE" TIMESTAMP(6),
"LOCKENDDATE" TIMESTAMP(6),
"LOCKTYPE" VARCHAR(6),
"LOCKSTATE" VARCHAR(1),
"STATUS" VARCHAR(2),
"HANDLER" VARCHAR(100),
"LAUPTIME" TIMESTAMP(0),
"APPROVALDATE" DATE,
"LOCKTIME" TIMESTAMP(0),
"MEASURE" VARCHAR(510),
"TOLOCKENTLISTID" VARCHAR(200),
NOT CLUSTER PRIMARY KEY("LOCKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSBIZPUNISHLOCK" IS '联合惩戒锁定业务表';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."APPROVALDATE" IS '核准日期';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."ENTNAME" IS '主体名称';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."HANDLER" IS '主办人';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."LOCKENDDATE" IS '锁定结束日期';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."LOCKID" IS '锁定ID';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."LOCKREASON" IS '锁定原因';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."LOCKSTARTDATE" IS '锁定开始日期';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."LOCKSTATE" IS '锁定状态（1、有效；2、无效）';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."LOCKTIME" IS '锁定时间';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."LOCKTYPE" IS '锁定类型（001、警告；002、股权锁定；003、完全锁定；004、注销锁定；005变更事项锁定）';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."LOCKUSERDEPTID" IS '锁定人员部门ID';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."LOCKUSERID" IS '锁定人员ID';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."LOCKUSERNAME" IS '锁定人员姓名';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."LOCKUSERUNITID" IS '锁定人员单位ID';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."MEASURE" IS '惩戒措施';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."PUNISHFROM" IS '惩戒来源';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."STATUS" IS '9受理中、1审批中、2已通过、3不通过';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."TOLOCKENTLISTID" IS '拟锁定id';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHLOCK"."UNISCID" IS '统一社会信用代码';


CREATE TABLE "AICCS"."TSBIZPUNISHUNLOCK"
(
"UNLOCKID" VARCHAR(72) NOT NULL,
"ELID" VARCHAR(80),
"BIZSEQ" VARCHAR(72),
"UNISCID" VARCHAR(36),
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"UNLOCKREASON" VARCHAR(4000),
"UNLUSERNAME" VARCHAR(40),
"UNLUSERID" VARCHAR(80),
"ULDEPTID" VARCHAR(80),
"ULUNITID" VARCHAR(100),
"UNLDATE" TIMESTAMP(6),
"STATUS" VARCHAR(2),
"HANDLER" VARCHAR(100),
"LAUPTIME" TIMESTAMP(0),
"APPROVALDATE" DATE,
"UNLOCKTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("UNLOCKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSBIZPUNISHUNLOCK" IS '解锁业务表';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."APPROVALDATE" IS '核准日期';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."ELID" IS '业户锁定id';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."ENTNAME" IS '主体名称';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."HANDLER" IS '主办人';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."STATUS" IS '9受理中、1审批中、2已通过、3不通过';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."ULDEPTID" IS '解锁人员部门ID';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."ULUNITID" IS '解锁人员单位ID';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."UNLDATE" IS '解锁操作日期';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."UNLOCKID" IS '解锁ID';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."UNLOCKREASON" IS '解锁原因';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."UNLOCKTIME" IS '解锁时间';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."UNLUSERID" IS '解锁人员ID';
COMMENT ON COLUMN "AICCS"."TSBIZPUNISHUNLOCK"."UNLUSERNAME" IS '解锁人员姓名';


CREATE TABLE "AICCS"."TSBIZREMLIST"
(
"REMLISTID" VARCHAR(144) NOT NULL,
"BIZSEQ" VARCHAR(144),
"ABNLISTID" VARCHAR(144),
"PRIPID" VARCHAR(144),
"REGNO" VARCHAR(120),
"ENTNAME" VARCHAR(400),
"SPECAUSE" VARCHAR(8),
"ABNTIME" DATE,
"SPEREASONS" VARCHAR(2000),
"REMEXCPRES" VARCHAR(8),
"REMREASONS" VARCHAR(2000),
"APPROVALDATE" DATE,
"DECORG" VARCHAR(80),
"AREA_CODE" VARCHAR(12) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"RECONSIDERATIONORG" VARCHAR(200),
"GOVERNMENTORG" VARCHAR(200),
"LITIORG" VARCHAR(200),
"REMSPONSOR" VARCHAR(200),
"STATUS" VARCHAR(4),
"REMREMARK" VARCHAR(2000),
"APPLICANT" VARCHAR(400),
"APPLICANTNO" VARCHAR(120),
"DECORGNAME" VARCHAR(200),
"TYPE" VARCHAR(1020),
"REMSPONSORID" VARCHAR(200),
"ISACCEPT" VARCHAR(4),
"ISAGREEREPAIR" VARCHAR(4),
"APPLYTIME" TIMESTAMP(0),
"HANDLESTATUS" VARCHAR(8),
"BACKPROPOSAL" VARCHAR(16000),
"APPORPC" VARCHAR(16),
"APPLICANTID" VARCHAR(160),
"CERNO" VARCHAR(160),
"MBREMOVALREASON" VARCHAR(8),
NOT CLUSTER PRIMARY KEY("REMLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSBIZREMLIST" IS '移出经营异常名录业务表';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."ABNLISTID" IS '经营异常名录ID';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."APPLICANTID" IS '移动端申请人身份证';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."APPLYTIME" IS '移动端申请时间 ';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."APPORPC" IS '标识移动端或pc端  0:移动端，1：pc端';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."APPROVALDATE" IS '核准日期';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."BACKPROPOSAL" IS '回退建议 ';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."CERNO" IS '移出企业法人身份证';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."DECORG" IS '作出决定机关';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."DECORGNAME" IS '作出决定机关（中文名） ';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."ENTNAME" IS '名称';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."GOVERNMENTORG" IS '人民政府';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."HANDLESTATUS" IS '办理状态1办理中，2退回重办3予以修复4不予修复5作废 ';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."ISACCEPT" IS '信用修复申请是否受理0否1是 ';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."ISAGREEREPAIR" IS '信用修复申请是否予以信用修复0否1是 ';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."LITIORG" IS '诉讼机关';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."RECONSIDERATIONORG" IS '行政复议机关';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."REMEXCPRES" IS '移出经营异常名录原因';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."REMLISTID" IS '编号ID';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."REMREASONS" IS '移出事实理由';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."REMREMARK" IS '移出备注';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."REMSPONSOR" IS '移出主办人';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."REMSPONSORID" IS '移出主办人id ';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."SPECAUSE" IS '列入经营异常名录原因';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."SPEREASONS" IS '列入事实理由';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."STATUS" IS '9 受理中、1 审批中、2 已通过、3 不通过';
COMMENT ON COLUMN "AICCS"."TSBIZREMLIST"."TYPE" IS '类型：‘individual’个体户‘farmer’农专‘company’企业 ';

CREATE OR REPLACE  INDEX "AICCS"."TSBIZREMLIST_ABNLISTID_IDX" ON "AICCS"."TSBIZREMLIST"("ABNLISTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."INDEX785291573969300" ON "AICCS"."TSBIZREMLIST"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."INDEX785290596071300" ON "AICCS"."TSBIZREMLIST"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSBIZREVCANCEL"
(
"REVCANCELID" VARCHAR(72) NOT NULL,
"REVLISTID" VARCHAR(72),
"BIZSEQ" VARCHAR(72),
"PRIPID" VARCHAR(72),
"HANDLERID" VARCHAR(100),
"HANDLERNAME" VARCHAR(100),
"HANDLERDATE" DATE,
"CANCELWRITSCONTENT" VARCHAR(2000),
"CANCELWRITSNO" VARCHAR(72),
"HANDLETYPE" VARCHAR(1),
"HANDLEDECORG" VARCHAR(6),
"HANDLEDECORGCN" VARCHAR(100),
"LAUPTIME" TIMESTAMP(0),
"STATUS" VARCHAR(2),
"APPROVALDATE" DATE,
NOT CLUSTER PRIMARY KEY("REVCANCELID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."APPROVALDATE" IS '核准日期';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."CANCELWRITSCONTENT" IS '撤销/复议/诉讼决定书内容';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."CANCELWRITSNO" IS '撤销/复议/诉讼决定文书号';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."HANDLEDECORG" IS '撤销/复议/诉讼作出决定机关';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."HANDLEDECORGCN" IS '撤销/复议/诉讼作出决定机关名称';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."HANDLERDATE" IS '撤销/复议/诉讼决定日期';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."HANDLERID" IS '撤销/复议/诉讼经办人id';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."HANDLERNAME" IS '撤销/复议/诉讼经办人';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."HANDLETYPE" IS '处理方式'1'撤销 '2'复议'3'诉讼';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."REVCANCELID" IS '批吊撤销复议诉讼业务表id';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."REVLISTID" IS '吊销id';
COMMENT ON COLUMN "AICCS"."TSBIZREVCANCEL"."STATUS" IS '9受理中、1审批中、2已通过、3不通过';


CREATE TABLE "AICCS"."TSBIZREVLIST"
(
"REVLISTID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"UNISCID" VARCHAR(36),
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"NAME" VARCHAR(400),
"ENTTYPE" VARCHAR(4),
"ENTTYPE_CN" VARCHAR(256),
"SETTIME" DATE,
"STATUS" VARCHAR(4),
"INTOSPONSOR" VARCHAR(100),
"INTOSPONSORID" VARCHAR(100),
"REMNO" INT,
"ISREMOVE" VARCHAR(8) DEFAULT '0',
"REMOVEREASON" VARCHAR(510),
"REMOVETIME" TIMESTAMP(0),
"ISHEARING" VARCHAR(8),
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"ISHEARINGPUBLISH" VARCHAR(1),
"HEARINGPUBLISHDATE" DATE,
"ISDECISIONPUBLISH" VARCHAR(1),
"DECISIONPUBLISHDATE" DATE,
"BIZENTTYPE" VARCHAR(1),
"REMHANDLER" VARCHAR(100),
"REPORTCONTENT" TEXT,
"INSERTTIME" TIMESTAMP(0),
"NOOPENSTATE" VARCHAR(1) DEFAULT '0',
"DECWRITSTARTNO" INT,
"DECFIRSTWRIT" VARCHAR(200),
"HEARWRITSTARTNO" INT,
"HEARFIRSTWRIT" VARCHAR(200),
"HANDLEORG" VARCHAR(100),
"HANDLEORGCN" VARCHAR(100),
NOT CLUSTER PRIMARY KEY("REVLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSBIZREVLIST" IS '批吊业务表';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."BIZENTTYPE" IS '1-公司2-个人独资企业';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."DECFIRSTWRIT" IS '第一份决定书文书号';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."DECISIONPUBLISHDATE" IS '决定公示日期';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."DECWRITSTARTNO" IS '决定书起始流水号';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."ENTNAME" IS '名称';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."ENTTYPE" IS '市场主体类型';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."ENTTYPE_CN" IS '市场主体类型（中文名称）';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."HANDLEORG" IS '处理机关码值';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."HANDLEORGCN" IS '处理机关中文名';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."HEARFIRSTWRIT" IS '第一份听证告知书文书号';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."HEARINGPUBLISHDATE" IS '听证公示日期';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."HEARWRITSTARTNO" IS '听证告知书起始流水号';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."INSERTTIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."INTOSPONSOR" IS '主办人';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."INTOSPONSORID" IS '主办人id';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."ISDECISIONPUBLISH" IS '0-未决定公示1-决定公示中2-撤销公示';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."ISHEARING" IS ' “0”未生成听证报告 “1”已生成听证报告';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."ISHEARINGPUBLISH" IS '0-未听证公示1-听证公示中';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."ISREMOVE" IS '"0"未剔除 "1"已剔除';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."NAME" IS '法定代表人';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."NOOPENSTATE" IS '非开业状态 0-开业，1-非开业';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."REMHANDLER" IS '剔除处理人';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."REMNO" IS '剔除批次';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."REMOVEREASON" IS '剔除原因';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."REMOVETIME" IS '剔除时间';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."REPORTCONTENT" IS '调查报告内容';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."REVLISTID" IS '编号id';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."SETTIME" IS '立案时间';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."STATUS" IS '业务状态 "0"线索录入，"1"立案调查经办"2"立案调查审核"3"立案调查审批"4"听证告知与行政处罚建议经办"8"听证告知与行政处罚建议审核"9"听证告知与行政处罚建议审批"10"决定经办"11"决定审核"12"决定法规部门审查 "13"决定审批"14"送达经办20"流程结束通过"21"流程结束不通过"22"不予立案 "24"听证告知与行政处罚建议法规部门分派 "25"听证告知与行政处罚建议法规部门经办"26"听证告知与行政处罚建议法规部门审核"27"行政处罚决定法规部门分派 "28"行政处罚决定法规部门经办"29"行政处罚决定法规部门审核';
COMMENT ON COLUMN "AICCS"."TSBIZREVLIST"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "AICCS"."TSBIZREVLIST_PRIPID_IDX" ON "AICCS"."TSBIZREVLIST"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSBIZREVLIST_BIZSEQ_IDX" ON "AICCS"."TSBIZREVLIST"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSBIZSERDER"
(
"DEREGISTRATIONID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(72),
"CREATORID" VARCHAR(72),
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"APPROVALDATE" DATE,
"DECORG" VARCHAR(18),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"RECONSIDERATIONORG" VARCHAR(100),
"GOVERNMENTORG" VARCHAR(100),
"LITIORG" VARCHAR(100),
"STATUS" VARCHAR(2),
"INTOSPONSOR" VARCHAR(100),
"COMPLAINTREASON" VARCHAR(1000),
"COMPLAINTTYPE" VARCHAR(100),
"UNISCID" VARCHAR(36),
"RESEARCHRESULT" VARCHAR(510),
"REMARKS" VARCHAR(510),
"ISSET" VARCHAR(2),
"REGTIME" VARCHAR(100),
"REGITEM" VARCHAR(400),
"NOTICEFROM" VARCHAR(100),
"NOTICETO" VARCHAR(100),
"TEL" VARCHAR(60),
"NOTICECONTENT" VARCHAR(8000),
"JUDAUTH" VARCHAR(128),
"JUDAUTH_CN" VARCHAR(256),
"JUDDATE" DATE,
"HANDLREST" VARCHAR(1024),
"HANDLREA" VARCHAR(128),
"NOTICEDATE" DATE,
NOT CLUSTER PRIMARY KEY("DEREGISTRATIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."COMPLAINTREASON" IS '投诉事由';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."COMPLAINTTYPE" IS '投诉类型';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."CREATORID" IS '创建业务人id';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."GOVERNMENTORG" IS '人民政府';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."HANDLREA" IS '处理原因';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."HANDLREST" IS '处理结果';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."INTOSPONSOR" IS '主办人';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."ISSET" IS '是否立案”0“不予立案“1”立案';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."JUDAUTH" IS '作出决定机关';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."JUDAUTH_CN" IS '作出决定机关（中文名称）';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."JUDDATE" IS '作出决定日期';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."LITIORG" IS '诉讼机关';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."NOTICECONTENT" IS '公告内容';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."NOTICEDATE" IS '公告日期';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."NOTICEFROM" IS '公告期自';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."NOTICETO" IS '公告期至';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."RECONSIDERATIONORG" IS '行政复议机关';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."REGITEM" IS '冒名登记事项';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."REGTIME" IS '冒名登记日期';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."REMARKS" IS '备注';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."RESEARCHRESULT" IS '调查结果';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."STATUS" IS '9 受理中、1 审批中、2 已通过、3 不通过';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."TEL" IS '登记机关联系方式';
COMMENT ON COLUMN "AICCS"."TSBIZSERDER"."UNISCID" IS '统一社会信用代码';


CREATE TABLE "AICCS"."TSBIZSERILLEGAL"
(
"ILLEGALLISTID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(36),
"ABNLISTID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"SERILLREA" VARCHAR(8),
"APPROVALDATE" DATE,
"DECORG" VARCHAR(18),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"LOSTCREDITEXPLAIN" VARCHAR(2000),
"RECONSIDERATIONORG" VARCHAR(100),
"GOVERNMENTORG" VARCHAR(100),
"LITIORG" VARCHAR(100),
"STATUS" VARCHAR(2),
"INTOSPONSORILLEGAL" VARCHAR(100),
"BATCHANDCASE" VARCHAR(16),
"ENDAPPLY" VARCHAR(8),
"ENDREASON" VARCHAR(2000),
"SOURCETYPE" VARCHAR(8),
"UNISCID" VARCHAR(100),
"ABNTIME" TIMESTAMP(0),
"WRITSNO" VARCHAR(200),
"PARTY" VARCHAR(200),
"CERTIFICATE" VARCHAR(100),
"USCCID" VARCHAR(100),
"LEGALNAME" VARCHAR(100),
"IDNUMBER" VARCHAR(100),
"PHONE" VARCHAR(100),
"OTHERCERT" VARCHAR(100),
"RESIDENCE" VARCHAR(510),
"ISHEA" VARCHAR(2),
"HEAOP" VARCHAR(2000),
"JUDDOCTITLE" VARCHAR(200),
"JUDDOCNO" VARCHAR(200),
"CASE_ID" VARCHAR(80),
"CORRECTBIZSEQ" VARCHAR(72),
"HEAOPINIONL" VARCHAR(2000),
"ILLOPERATINGID" VARCHAR(200),
"SBOOKCODE" VARCHAR(200),
"SGISTTYPENAME" VARCHAR(200),
"SPUNTYPENAME" VARCHAR(200),
"PENAM" VARCHAR(100),
"FORFAM" VARCHAR(100),
"CFDJJG" VARCHAR(200),
"CFJDSJ" VARCHAR(200),
"DSRMC" VARCHAR(200),
"SPUNCONTENT" CLOB,
"SERIALID" VARCHAR(200),
NOT CLUSTER PRIMARY KEY("ILLEGALLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."ABNTIME" IS '列入日期（经办人选择领导审批时间）';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."CASE_ID" IS '行政处罚案件基本信息ID';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."CERTIFICATE" IS '主体资格证照名称（行政处罚线下进行录入）';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."CFDJJG" IS '行政处罚决定机关';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."CFJDSJ" IS '处罚决定书日期';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."CORRECTBIZSEQ" IS '最新勘误业务号';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."DSRMC" IS '当事人';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."FORFAM" IS '没收金额';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."HEAOP" IS '当事人听证中提出的主要意见';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."HEAOPINIONL" IS '听证意见';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."IDNUMBER" IS '身份证件号码（行政处罚线下进行录入）';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."ILLOPERATINGID" IS '拟列入清单id';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."ISHEA" IS '是否经过听证程序(1是0否)';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."JUDDOCNO" IS '作出判决的人民法院司法文书文号';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."JUDDOCTITLE" IS '作出判决的人民法院司法文书标题';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."LEGALNAME" IS '法定代表人姓名（行政处罚线下进行录入）';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."OTHERCERT" IS '其他联系方式（行政处罚线下进行录入）';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."PARTY" IS '当事人（行政处罚线下进行录入）';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."PENAM" IS '处罚金额';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."PHONE" IS '联系电话（行政处罚线下进行录入）';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."RESIDENCE" IS '住所/经营场所（住址）（行政处罚线下进行录入）';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."SBOOKCODE" IS '处罚决定书文号';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."SERIALID" IS '拟列入清单id';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."SGISTTYPENAME" IS '违法行为类型';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."SOURCETYPE" IS '来源类型 1:经营异常满三年；2:行政处罚；';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."SPUNCONTENT" IS '处罚内容';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."SPUNTYPENAME" IS '处罚种类';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."USCCID" IS '统一信用代码/身份证件号码（行政处罚线下进行录入）';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGAL"."WRITSNO" IS '文书号（一般对于行政处罚类型纸质录入使用）';


CREATE TABLE "AICCS"."TSBIZSERILLEGALDISS"
(
"SERILLEGALDISSID" VARCHAR(36) NOT NULL,
"ILLEGALLISTID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(36),
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"LEREPNAME" VARCHAR(100),
"CONTACTS" VARCHAR(100),
"TELEPHONE" VARCHAR(60),
"SITUATION" VARCHAR(1000),
"APPROVALDATE" DATE,
"ACCEPTSTAT" VARCHAR(1),
"DISSENTEXPLAIN" VARCHAR(2000),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"EXMAINEMATTER" VARCHAR(510),
"APPORPC" VARCHAR(1) DEFAULT 1,
"APPLICANT" VARCHAR(100),
"APPLICANTNO" VARCHAR(100),
"APPLICANTID" VARCHAR(100),
"STATUS" VARCHAR(1),
NOT CLUSTER PRIMARY KEY("SERILLEGALDISSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALDISS"."APPLICANT" IS '移动端申请人';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALDISS"."APPLICANTID" IS '移动端申请人身份证';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALDISS"."APPLICANTNO" IS '移动端申请人电话号码';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALDISS"."APPORPC" IS '标识移动端或pc端  0:移动端，1：pc端';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALDISS"."STATUS" IS '9-受理中 0-材料补正 1-审批中 2-通过 3-不通过 4-作废';


CREATE TABLE "AICCS"."TSBIZSERILLEGALREAS"
(
"SERILLEGALREASID" VARCHAR(36) NOT NULL,
"REACODE" VARCHAR(4) NOT NULL,
"REAPROVISION" VARCHAR(100),
"REANAME" VARCHAR(2000),
"REALAWS" VARCHAR(2000),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("SERILLEGALREASID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSBIZSERILLEGALREM"
(
"BIZSERREMID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"ILLEGALLISTID" VARCHAR(90),
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(120),
"ENTNAME" VARCHAR(400),
"SERILLREA" VARCHAR(16),
"ABNTIME" DATE,
"REMEXCPRES" VARCHAR(16),
"APPLYREMREA" VARCHAR(4000),
"REMTYPE" VARCHAR(8),
"APPROVALDATE" DATE,
"DECORG" VARCHAR(36),
"AREA_CODE" VARCHAR(12) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"LOSTCREDITEXPLAINREM" VARCHAR(4000),
"RECONSIDERATIONORG" VARCHAR(200),
"GOVERNMENTORG" VARCHAR(200),
"LITIORG" VARCHAR(200),
"REMSPONSORILLEGAL" VARCHAR(200),
"STATUS" VARCHAR(4),
"ISACCEPT" VARCHAR(4),
"ISAGREEREPAIR" VARCHAR(4),
"APPLYTIME" TIMESTAMP(0),
"APPLICANT" VARCHAR(400),
"APPLICANTNO" VARCHAR(120),
"HANDLESTATUS" VARCHAR(8),
"BACKPROPOSAL" VARCHAR(16000),
"NOTREPAIRED" VARCHAR(16000),
"REMARK" VARCHAR(2000),
"APPORPC" VARCHAR(16),
"APPLICANTID" VARCHAR(160),
"CERNO" VARCHAR(160),
NOT CLUSTER PRIMARY KEY("BIZSERREMID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSBIZSERILLEGALREM" IS '移出严重违法企业名单（业务表）';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALREM"."APPLICANTID" IS '移动端申请人身份证';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALREM"."APPLYTIME" IS '移动端申请时间';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALREM"."APPORPC" IS '标识移动端或pc端  0:移动端，1：pc端';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALREM"."CERNO" IS '移出企业法人身份证';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALREM"."HANDLESTATUS" IS '办理状态: 1办理中，2退回重办, 3予以修复, 4不予修复, 5作废';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALREM"."ISACCEPT" IS '信用修复申请是否受理0否1是';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALREM"."ISAGREEREPAIR" IS '信用修复申请是否予以信用修复0否1是';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALREM"."REMARK" IS '备注';
COMMENT ON COLUMN "AICCS"."TSBIZSERILLEGALREM"."STATUS" IS '流程状态：1 审批中、2 已通过、3 不通过、9 受理中';


CREATE TABLE "AICCS"."TSBIZSPELIST"
(
"SPELISTID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"ENTTYPE" VARCHAR(4),
"SPECAUSE" VARCHAR(4),
"APPROVALDATE" DATE,
"SPEREASONS" VARCHAR(2000),
"DECORG" VARCHAR(100),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"RECONSIDERATIONORG" VARCHAR(100),
"GOVERNMENTORG" VARCHAR(100),
"LITIORG" VARCHAR(100),
"STATUS" VARCHAR(2),
"INTOSPONSOR" VARCHAR(100),
"REMARK" VARCHAR(1000),
"DECISIONCONTENT" VARCHAR(1000),
"UNISCID" VARCHAR(36),
"ENDAPPLY" VARCHAR(4),
"ENDREASON" VARCHAR(1000),
"INTOSPONSORID" VARCHAR(510),
"DOM" VARCHAR(510),
"REPORTYEAR" VARCHAR(510),
"ISREMOVE" VARCHAR(200) DEFAULT '0',
"TOINCLUDEID" VARCHAR(200),
"LEREP" VARCHAR(200),
"CERTYPE" VARCHAR(200),
"CERNO" VARCHAR(200),
"REMOVEREASON" VARCHAR(510),
"REMOVETIME" TIMESTAMP(0),
"REMOVEHANDLER" VARCHAR(100),
"INSERTTIME" TIMESTAMP(0),
"CORRECTBIZSEQ" VARCHAR(72),
"TYPE" VARCHAR(100),
"CASESOURCE" VARCHAR(4),
"CONTACTENTITY" VARCHAR(200),
"CONTACTMETHODORG" VARCHAR(50),
NOT CLUSTER PRIMARY KEY("SPELISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSBIZSPELIST" IS '列入经营异常名录业务表';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."APPROVALDATE" IS '核准日期';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."CORRECTBIZSEQ" IS '最新勘误业务号';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."DECISIONCONTENT" IS '决定书内容';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."DECORG" IS '作出决定机关';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."DOM" IS '列入时经营地址';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."ENDAPPLY" IS '1，申请列入 2，申请结束';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."ENDREASON" IS '结束理由';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."ENTNAME" IS '名称';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."ENTTYPE" IS '企业类型';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."GOVERNMENTORG" IS '人民政府';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."INSERTTIME" IS '新增时间';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."INTOSPONSOR" IS '主办人';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."INTOSPONSORID" IS '列入主办人id';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."ISREMOVE" IS '是否删除’0‘未删除’1已删除‘';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."LITIORG" IS '讼诉机关';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."RECONSIDERATIONORG" IS '行政复议机关';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."REMARK" IS '备注';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."REMOVEHANDLER" IS '剔除处理人';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."REMOVEREASON" IS '剔除原因';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."REMOVETIME" IS '剔除时间';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."REPORTYEAR" IS '列入对应的未年报年度';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."SPECAUSE" IS '列入经营异常名录原因';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."SPELISTID" IS '编号ID';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."SPEREASONS" IS '列入事实理由';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."STATUS" IS '9受理中、0线索回退、1审批中、2已通过、3不通过、4线索作废';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."TOINCLUDEID" IS '拟列异表主键';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."TYPE" IS '业务主体类型：‘individual’个体户‘farmer’农专‘company’企业 ';
COMMENT ON COLUMN "AICCS"."TSBIZSPELIST"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "AICCS"."TSBIZSPELIST_INDEX_TOINCLUDEID" ON "AICCS"."TSBIZSPELIST"("TOINCLUDEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSBIZSPELIST_INDEX_APPROVALDATE" ON "AICCS"."TSBIZSPELIST"("APPROVALDATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSBIZSPELIST_ENTNAME_IDX" ON "AICCS"."TSBIZSPELIST"("ENTNAME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSBIZSPELIST_INDEX_PRIPID" ON "AICCS"."TSBIZSPELIST"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSBIZSPELIST_INDEX_SPECAUSE" ON "AICCS"."TSBIZSPELIST"("SPECAUSE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSBIZSPELIST_INDEX_BIZSEQ" ON "AICCS"."TSBIZSPELIST"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSBIZSPELIST_INDEX_STATUS" ON "AICCS"."TSBIZSPELIST"("STATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSCASE"
(
"CASEID" VARCHAR(72) NOT NULL,
"CASENO" VARCHAR(72),
"CASENAME" VARCHAR(510),
"BIZSEQ" VARCHAR(510),
"ILLEGALACT" VARCHAR(510),
"ILLEGALACTCN" VARCHAR(510),
"PLACE" VARCHAR(510),
"CASEFROM" VARCHAR(510),
"ISREGISTER" VARCHAR(1),
"REGISTTIME" TIMESTAMP(0),
"SITUATION" VARCHAR(4000),
"HANDLERNAME" VARCHAR(510),
"HANDLERDATE" DATE,
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"REMARKS" VARCHAR(510),
"ASSISTANTNAME" VARCHAR(510),
"BIZENTTYPE" VARCHAR(1),
"HEARINGTOAPPRREA" VARCHAR(2000),
"ISREVIEWHEARING" VARCHAR(1),
"ADVICEPUNISHCONTENT" VARCHAR(2000),
"PLEADOPINION" VARCHAR(2000),
"REVIEWHEARINGOPINION" VARCHAR(1000),
"DELIVERWAY" VARCHAR(1),
"ILLEGALTYPE" VARCHAR(1),
"HANDLERID" VARCHAR(72),
"ASSISTANTID" VARCHAR(72),
"SETTIME" TIMESTAMP(0),
"STATUS" VARCHAR(1) DEFAULT '0',
"REVOKEREA" VARCHAR(3),
"PUNISHBASIS" VARCHAR(4000),
"PUNISHPERFORMWAY" VARCHAR(510),
"PUNISHPERFORMDEADLINE" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("CASEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSCASE" IS '案件信息表';
COMMENT ON COLUMN "AICCS"."TSCASE"."ADVICEPUNISHCONTENT" IS '处罚决定环节建议作出行政处理决定的内容、主要事实、理由、依据';
COMMENT ON COLUMN "AICCS"."TSCASE"."ASSISTANTID" IS '协办人id';
COMMENT ON COLUMN "AICCS"."TSCASE"."ASSISTANTNAME" IS '立案协办人姓名';
COMMENT ON COLUMN "AICCS"."TSCASE"."BIZENTTYPE" IS '1-公司2-个人独资企业';
COMMENT ON COLUMN "AICCS"."TSCASE"."BIZSEQ" IS '吊销业务id';
COMMENT ON COLUMN "AICCS"."TSCASE"."CASEFROM" IS '案件来源';
COMMENT ON COLUMN "AICCS"."TSCASE"."CASEID" IS '案件id';
COMMENT ON COLUMN "AICCS"."TSCASE"."CASENAME" IS '案件名称';
COMMENT ON COLUMN "AICCS"."TSCASE"."CASENO" IS '案件编号';
COMMENT ON COLUMN "AICCS"."TSCASE"."HANDLERDATE" IS '承办时间';
COMMENT ON COLUMN "AICCS"."TSCASE"."HANDLERID" IS '主办人id';
COMMENT ON COLUMN "AICCS"."TSCASE"."HANDLERNAME" IS '主办人姓名';
COMMENT ON COLUMN "AICCS"."TSCASE"."HEARINGTOAPPRREA" IS '听证环节提请审批的理由 、依据及处理意见';
COMMENT ON COLUMN "AICCS"."TSCASE"."ILLEGALACT" IS '违法行为';
COMMENT ON COLUMN "AICCS"."TSCASE"."ILLEGALACTCN" IS '违法行为中文';
COMMENT ON COLUMN "AICCS"."TSCASE"."ILLEGALTYPE" IS '违法类型 1-一年未年报实地查无、2-连续两年未年报、3-因实地查无列入经营异常名录两年以上、9-其他';
COMMENT ON COLUMN "AICCS"."TSCASE"."ISREGISTER" IS '是否立案 "0"不予立案 "1"立案';
COMMENT ON COLUMN "AICCS"."TSCASE"."ISREVIEWHEARING" IS '是否经过复核（听证）程序 0-否1-是';
COMMENT ON COLUMN "AICCS"."TSCASE"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSCASE"."PLACE" IS '案发地';
COMMENT ON COLUMN "AICCS"."TSCASE"."PLEADOPINION" IS '当事人陈述、申辩或者听证中提出的主要意见';
COMMENT ON COLUMN "AICCS"."TSCASE"."PUNISHBASIS" IS '处罚依据';
COMMENT ON COLUMN "AICCS"."TSCASE"."PUNISHPERFORMDEADLINE" IS '行政处罚履行期限';
COMMENT ON COLUMN "AICCS"."TSCASE"."PUNISHPERFORMWAY" IS '行政处罚履行方式';
COMMENT ON COLUMN "AICCS"."TSCASE"."REGISTTIME" IS '发现线索时间';
COMMENT ON COLUMN "AICCS"."TSCASE"."REMARKS" IS '备注';
COMMENT ON COLUMN "AICCS"."TSCASE"."REVIEWHEARINGOPINION" IS '复核意见或者听证意见';
COMMENT ON COLUMN "AICCS"."TSCASE"."REVOKEREA" IS '吊销原因';
COMMENT ON COLUMN "AICCS"."TSCASE"."SETTIME" IS '立案时间';
COMMENT ON COLUMN "AICCS"."TSCASE"."STATUS" IS '是否暂存状态0-否1-是';


CREATE TABLE "AICCS"."TSCHANGEITEMTAG"
(
"TAGID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"BIZSEQ" VARCHAR(36),
"LASTBIZSEQ" VARCHAR(36),
"FIELDNAME" VARCHAR(100),
"TABLENAME" VARCHAR(120),
"CHANGETAG" VARCHAR(1),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("TAGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSCHECKRESULT"
(
"RESULTID" VARCHAR(36) NOT NULL,
"INSOBJID" VARCHAR(36),
"INSID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"INSAUTH" VARCHAR(18),
"ISCHECK" VARCHAR(1) DEFAULT '0',
"WRICHECK" VARCHAR(1),
"REALCHECK" VARCHAR(1),
"NETCHECK" VARCHAR(1),
"PROCHECK" VARCHAR(1),
"CHECKTYPE" VARCHAR(1),
"INSTYPE" VARCHAR(1),
"INSDATE" DATE,
"EMPID" VARCHAR(36),
"INSPECTDETAIL" VARCHAR(3),
"MEASURE" VARCHAR(1),
"WRITNO" VARCHAR(200),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100',
"ORDRECDATE" TIMESTAMP(0),
"OTHERDETAIL" VARCHAR(400),
"ISRECHECK" VARCHAR(1),
"BIZSEQ" VARCHAR(36),
"OTHERSTATUS" VARCHAR(1),
"ORDRECDAYS" INT,
"NOTCOOAUDSTATUS" VARCHAR(1),
"CHECKEDSUG" VARCHAR(40),
"INSPECTDETAILEXT" VARCHAR(400),
"CONTACTNUM" VARCHAR(40),
NOT CLUSTER PRIMARY KEY("RESULTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSCLAIM"
(
"CLAIMID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36) NOT NULL,
"ENTBASEADDRID" VARCHAR(36) NOT NULL,
"SENDORGID" VARCHAR(36),
"CLAIMORGID" VARCHAR(36),
"DEPTID" VARCHAR(36),
"CLAIMAICID" VARCHAR(18),
"SENDTIME" DATE,
"TCLAIMSTATUS" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("CLAIMID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSCLAIMOPINION"
(
"OPINIONID" VARCHAR(36) NOT NULL,
"CLAIMID" VARCHAR(36),
"OPINION" VARCHAR(700),
"USERID" VARCHAR(36),
"USERNAME" VARCHAR(100),
"CLAIMORGID" VARCHAR(36),
"CLAIMAICID" VARCHAR(18),
"CLAIMORGNAME" VARCHAR(200),
"CLAIMTIME" DATE,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"SENDORGID" VARCHAR(36),
"SENDORGNAME" VARCHAR(200),
NOT CLUSTER PRIMARY KEY("OPINIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSCOLCALCELINFO"
(
"COLCALCELINFOID" VARCHAR(36) NOT NULL,
"COLREGBASEID" VARCHAR(36) NOT NULL,
"BIZSEQID" VARCHAR(36) NOT NULL,
"CANREA" VARCHAR(1000),
"LICREVST" VARCHAR(510),
"CORREGCNO" VARCHAR(100),
"DEBTLIQUIDATOR" VARCHAR(100),
"PREAPPROVEOPINION" VARCHAR(800),
"CENSOROPINION" VARCHAR(600),
"COMMITTEEIDEA" VARCHAR(600),
"COMMENTS" VARCHAR(500),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("COLCALCELINFOID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSCOMPLAINTINFO"
(
"COMPLAINTINFOID" VARCHAR(36) NOT NULL,
"RECORDID" VARCHAR(36),
"COMPLAINTDATE" DATE,
"COMPLAINANT" VARCHAR(100),
"ADDRESS" VARCHAR(200),
"TELEPHONE" VARCHAR(60),
"ACCEPTNO" VARCHAR(40),
"ACCEPTOPINION" VARCHAR(1000),
"COMPLAINTDETAIL" VARCHAR(2000),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("COMPLAINTINFOID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSCONFORMOBJLIST"
(
"PKID" VARCHAR(36) NOT NULL,
"INSID" VARCHAR(36),
"INDEXS" INT,
"REGNO" VARCHAR(60),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSCONTACT"
(
"CONTACTID" VARCHAR(36) NOT NULL,
"BIZSEQID" VARCHAR(72),
"CELLPHONE" VARCHAR(40),
"LANDLINE" VARCHAR(40),
"NAME" VARCHAR(100),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("CONTACTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSCREDITALERTSTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"OBJTYPENO" VARCHAR(9),
"PROVINCEID" VARCHAR(18),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(258),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"TOWNNAME" VARCHAR(200),
"GROUPNAME" VARCHAR(100),
"LEVELTYPE" VARCHAR(1),
"OBJNUM" INT,
"NEARDATE7" INT,
"NEARDATE15" INT,
"OVERDATE" INT,
"OVERDATE30" INT,
"DEBUTRETURNCHECKOVERDATE" INT,
"EVERYDAYCHECKOVERDATE" INT,
"SPECIALISATIONCHECKOVERDATE" INT,
"CASEAFTERCHECKOVERDATE" INT,
"CHECKOVERDATE" INT,
"MANAGENEARDATE30" INT,
"MANAGEOVERDATE" INT,
"PERMITNEARDATE30" INT,
"PERMITOVERDATE" INT,
"PAUSEOVERDATE" INT,
"DISAPPEARANCE" INT,
"REPORTTYPE" INT,
"GROUPNO" VARCHAR(36),
"STATDATE" DATE,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSCREDITINFOOPINION"
(
"OPINIONID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(36),
"BATCHID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"OPINIONTYPE" VARCHAR(1),
"OPINIONCONTENT" VARCHAR(2000),
"SIGNNAME" VARCHAR(100),
"SIGNTIME" DATE,
"OPERATETYPE" VARCHAR(2),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("OPINIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSCREDITLEVELHISTORY"
(
"CREDITLEVLEHISID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(200),
"REGNO" VARCHAR(60),
"OLDLEVEL" VARCHAR(1),
"NEWLEVEL" VARCHAR(1),
"REASON" VARCHAR(2000),
"OPTNAME" VARCHAR(100),
"OPTDATE" DATE,
"OPTIP" VARCHAR(128),
"LEVELARTTAG" VARCHAR(1),
"STATUS" VARCHAR(1),
"AREA_CODE" VARCHAR(6),
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("CREDITLEVLEHISID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSDEBTOR"
(
"DEBTORID" VARCHAR(72) NOT NULL,
"PLEDGEID" VARCHAR(36),
"DEBTOR" VARCHAR(200),
"DEBTORREGNO" VARCHAR(64),
"DEBTORADD" VARCHAR(200),
"DEBTORCODEID" VARCHAR(72),
"DEBTORREGDEPT" VARCHAR(120),
"DEBTORLEGREP" VARCHAR(60),
"DEBTORLEGREPSEX" VARCHAR(1),
"DEBTORLEGREPCERTID" VARCHAR(36),
"DEBTORLEGREPCON" VARCHAR(6),
"DEBTORLEGREPADD" VARCHAR(200),
"DEBTORAGENT" VARCHAR(60),
"DEBTORAGENTSEX" VARCHAR(1),
"DEBTORAGENTCERTID" VARCHAR(36),
"DEBTORAGENTPHONE" VARCHAR(40),
"DEBTORAGENTADD" VARCHAR(200),
"DEBTORAGENTCON" VARCHAR(6),
"PERSONTYPE" VARCHAR(1),
"DEBTORREGDEPTID" VARCHAR(18),
"DEBTORENTITYTYPE" VARCHAR(12),
"ISFOREIGN" VARCHAR(1),
"DEBTORLEGREPCERTTYPE" VARCHAR(128),
"DEBTORAGENTCERTTYPE" VARCHAR(128),
"DEBTORPROPERTY" VARCHAR(1),
"APPLICANTCERNAME" VARCHAR(1),
"DEBTORCARDIDTYPE" VARCHAR(20),
"DEBTORCARDID" VARCHAR(20),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("DEBTORID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSEMPINDALERTSTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"OBJTYPENO" VARCHAR(9),
"PROVINCEID" VARCHAR(18),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(18),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"OWNNAME" VARCHAR(200),
"GROUPNAME" VARCHAR(200),
"EMPHASISINDUSTRY" VARCHAR(200),
"OBJNUM" INT,
"NEARDATE7" INT,
"NEARDATE15" INT,
"OVERDATE" INT,
"OVERDATE30" INT,
"DEBUTRETURNCHECKOVERDATE" INT,
"EVERYDAYCHECKOVERDATE" INT,
"SPECIALISATIONCHECKOVERDATE" INT,
"CASEAFTERCHECKOVERDATE" INT,
"MANAGENEARDATE30" INT,
"MANAGEOVERDATE" INT,
"PERMITNEARDATE30" INT,
"PERMITOVERDATE" INT,
"OVERDUENOOPEN" INT,
"SHUTOUTOVERDUE" INT,
"OVERDUEANNUALINSPECTION" INT,
"DISAPPEARANCE" INT,
"REPORTTYPE" INT,
"GROUPNO" VARCHAR(36),
"PERILIMPORTINDUSTRYID" VARCHAR(36),
"STATDATE" DATE,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSENTAREA"
(
"ENTAREAID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTBASEADDRID" VARCHAR(36),
"AREAID" VARCHAR(36),
"TYPEID" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("ENTAREAID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSENTBUSINESSLOG"
(
"LOGID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"ENTBASEADDRID" VARCHAR(36),
"OLDVALUE" VARCHAR(1000),
"NEWVALUE" VARCHAR(1000),
"SETUPUSERID" VARCHAR(36),
"SETUPUSERNAME" VARCHAR(200),
"SETUPTIME" DATE,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("LOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSENTCIPLIAISONS"
(
"LIAISONSID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(36),
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"LIANAME" VARCHAR(200),
"CERTID" VARCHAR(80),
"CERTTYPE" VARCHAR(60),
"MOBILETEL" VARCHAR(60),
"FIXEDPHONE" VARCHAR(30),
"EMAIL" VARCHAR(100),
"ISSYNC" VARCHAR(4),
"AREA_CODE" VARCHAR(12) DEFAULT '440100' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("LIAISONSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSENTINDUSTRY"
(
"ENTINDUSTRYID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"HIGHINDUSTRYID" VARCHAR(36),
"HIGHINDUSTRYCODE" VARCHAR(4),
"TYPEID" VARCHAR(36),
"AICID" VARCHAR(18),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("ENTINDUSTRYID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSENTINDUSTRYLOG"
(
"INDUSTRYLOGID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36) NOT NULL,
"OLDVALUE" VARCHAR(1000),
"NEWVALUE" VARCHAR(1000),
"SETUPUSERID" VARCHAR(36),
"SETUPUSERNAME" VARCHAR(200),
"SETUPTIME" DATE,
"LOGTYPE" VARCHAR(2),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("INDUSTRYLOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSEXCNAMELIST"
(
"SERIALID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"ADDRESS" VARCHAR(1000),
"LEREPNAME" VARCHAR(100),
"LOADINGMARK" VARCHAR(1),
"DESCRIPTION" VARCHAR(1000),
"LOADINGDATE" DATE,
"STRUMENTNO" VARCHAR(200),
"ORGID" VARCHAR(36),
"AICID" VARCHAR(18),
"RESTORED" VARCHAR(1),
"INSTRUCTIONS" VARCHAR(1000),
"BIZSEQ" VARCHAR(36),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("SERIALID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSFIELDCONF"
(
"FIELDCONFID" VARCHAR(36) NOT NULL,
"FIELDNAME" VARCHAR(100),
"VALTAGNAME" VARCHAR(100),
"FIELDTYPE" VARCHAR(40),
"FIELDDESC" VARCHAR(200),
"FIELDWIDTH" VARCHAR(400),
"FIELDSIZE" VARCHAR(400),
"DESCROWSPAN" INT,
"DESCCOLSPAN" INT,
"TYPEROWSPAN" INT,
"TYPECOLSPAN" INT,
"ISNEED" VARCHAR(1),
"ROWNUM" INT,
"SEQNUM" INT,
"ENTTYPE" VARCHAR(12),
"MATTYPE" VARCHAR(2),
"TABNAME" VARCHAR(200),
"USERTYPE" VARCHAR(5),
"CHILDRENTAG" VARCHAR(2),
"PARENTTAG" VARCHAR(2),
"GBCODE" VARCHAR(5),
"ISRECOR" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("FIELDCONFID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSFLOWINFO"
(
"FLOWINFOID" VARCHAR(72) NOT NULL,
"FLOWNODE" VARCHAR(80),
"FLOWNAME" VARCHAR(200),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("FLOWINFOID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSFLOWINFO" IS '工作流主信息表';
COMMENT ON COLUMN "AICCS"."TSFLOWINFO"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSFLOWINFO"."FLOWINFOID" IS '流程编号';
COMMENT ON COLUMN "AICCS"."TSFLOWINFO"."FLOWNAME" IS '流程名称';
COMMENT ON COLUMN "AICCS"."TSFLOWINFO"."FLOWNODE" IS '流程英文代码';
COMMENT ON COLUMN "AICCS"."TSFLOWINFO"."LAUPTIME" IS '最后更新时间';

CREATE OR REPLACE  INDEX "AICCS"."TSFLOWINFO_FLOWNODE_IDX" ON "AICCS"."TSFLOWINFO"("FLOWNODE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSFORABNOPERATINGLIST"
(
"SERIALID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"ADDRESS" VARCHAR(400),
"LEREPNAME" VARCHAR(200),
"NOREPORT" VARCHAR(1),
"LOST" VARCHAR(1),
"UNDELIVERABLE" VARCHAR(1),
"DESCRIPTION" VARCHAR(1000),
"LOADINGDATE" DATE,
"STRUMENTNO" VARCHAR(200),
"ORGID" VARCHAR(36),
"AICID" VARCHAR(18),
"RESTORED" VARCHAR(1),
"INSTRUCTIONS" VARCHAR(1000),
"BIZSEQ" VARCHAR(36),
"CANCELTIME" DATE,
"CANCELUSERID" VARCHAR(36),
"CANCELUSERNAME" VARCHAR(50),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("SERIALID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSFOREXCNAMELIST"
(
"SERIALID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"ADDRESS" VARCHAR(1000),
"LEREPNAME" VARCHAR(100),
"SUBJECTMARK" VARCHAR(1),
"DESCRIPTION" VARCHAR(1000),
"LOADINGDATE" DATE,
"STRUMENTNO" VARCHAR(200),
"ORGID" VARCHAR(36),
"AICID" VARCHAR(18),
"RESTORED" VARCHAR(1),
"INSTRUCTIONS" VARCHAR(1000),
"BIZSEQ" VARCHAR(36),
"CANCELTIME" DATE,
"CANCELUSERID" VARCHAR(36),
"CANCELUSERNAME" VARCHAR(50),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("SERIALID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSFORILLOPERATINGBN"
(
"ILLOPERATINGID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"ABNLISTID" VARCHAR(72),
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(60),
"UNISCID" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"SERILLREA" VARCHAR(8),
"ABNTIME" TIMESTAMP(0),
"DECORG" VARCHAR(18),
"AREA_CODE" VARCHAR(12),
"LAUPTIME" TIMESTAMP(0),
"LOSTCREDITEXPLAIN" VARCHAR(2000),
"RECONSIDERATIONORG" VARCHAR(100),
"GOVERNMENTORG" VARCHAR(100),
"LITIORG" VARCHAR(100),
"INTOSPONSORILLEGAL" VARCHAR(100),
"REMSPONSORILLEGAL" VARCHAR(100),
"OPERATIONSTATUS" VARCHAR(16),
"INTOWRITID" VARCHAR(72),
"BATCHANDCASE" VARCHAR(16),
NOT CLUSTER PRIMARY KEY("ILLOPERATINGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSFORILLOPERATINGLIST"
(
"SERIALID" VARCHAR(72) NOT NULL,
"PRIPID" VARCHAR(72) NOT NULL,
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"ENTTYPE" VARCHAR(4),
"ADDRESS" VARCHAR(400),
"LEREPNAME" VARCHAR(200),
"ABNTIME" DATE,
"SPECAUSE" VARCHAR(1) NOT NULL,
"SPEREASONS" VARCHAR(1000),
"INTOSPONSOR" VARCHAR(100),
"AREA_CODE" VARCHAR(6),
"OPERATIONSTATUS" VARCHAR(1) DEFAULT '0',
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"UNISCID" VARCHAR(36),
"ABNLISTID" VARCHAR(72),
NOT CLUSTER PRIMARY KEY("SERIALID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSFORILLOPERATINGLIST" IS '拟列入严重违法企业清单';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."ADDRESS" IS '经营地址';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."AREA_CODE" IS '地区编码';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."ENTNAME" IS '主体名称';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."ENTTYPE" IS '主体类型';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."INTOSPONSOR" IS '列入主办人';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."LEREPNAME" IS '法人名称';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."OPERATIONSTATUS" IS '操作状态（0录入，1已移出异常，2已列入严重违法）';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."PRIPID" IS '主体主键';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."SERIALID" IS '主键id';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."SPECAUSE" IS '列入原因';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."SPEREASONS" IS '列入事实依据';
COMMENT ON COLUMN "AICCS"."TSFORILLOPERATINGLIST"."UNISCID" IS '同一社会信用代码';

CREATE OR REPLACE  INDEX "AICCS"."TSFORILLOPERATINGLIST_UNISCID_IDX" ON "AICCS"."TSFORILLOPERATINGLIST"("UNISCID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSFORILLOPERATINGLIST_PRIPID_IDX" ON "AICCS"."TSFORILLOPERATINGLIST"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSFORILLOPERATINGLIST_ENTTYPE_IDX" ON "AICCS"."TSFORILLOPERATINGLIST"("ENTTYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSFOUNDPROBLIST"
(
"FOUNDPROBID" VARCHAR(36) NOT NULL,
"RECORDID" VARCHAR(36),
"FOUNDPROB" VARCHAR(3),
"PROBDESC" VARCHAR(600),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("FOUNDPROBID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSGROUP"
(
"GROUPID" VARCHAR(36) NOT NULL,
"GROUPNAME" VARCHAR(200),
"ORGID" VARCHAR(36),
"AICID" VARCHAR(18),
"PRINCIPAL" VARCHAR(100),
"CUSTOMINDEX" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ISABNLISTTEAM" VARCHAR(1),
"ISINSPECTTEAM" VARCHAR(1),
"ISVALID" VARCHAR(1),
NOT CLUSTER PRIMARY KEY("GROUPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSGROUP" IS '监管小组';
COMMENT ON COLUMN "AICCS"."TSGROUP"."AICID" IS '机构编码';
COMMENT ON COLUMN "AICCS"."TSGROUP"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSGROUP"."CUSTOMINDEX" IS '排序顺序号';
COMMENT ON COLUMN "AICCS"."TSGROUP"."GROUPID" IS '监管小组id';
COMMENT ON COLUMN "AICCS"."TSGROUP"."GROUPNAME" IS '小组名称';
COMMENT ON COLUMN "AICCS"."TSGROUP"."ISABNLISTTEAM" IS '是否异常名录审批小组（0否，1是）';
COMMENT ON COLUMN "AICCS"."TSGROUP"."ISVALID" IS '删除标识';
COMMENT ON COLUMN "AICCS"."TSGROUP"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSGROUP"."ORGID" IS '机构ID';
COMMENT ON COLUMN "AICCS"."TSGROUP"."PRINCIPAL" IS '小组负责人/组长姓名';

CREATE OR REPLACE  INDEX "AICCS"."TSGROUP_ORGID_IDX" ON "AICCS"."TSGROUP"("ORGID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSGROUPMEMBER"
(
"GROUPMEMBERID" VARCHAR(72) NOT NULL,
"USERID" VARCHAR(72),
"USERNAME" VARCHAR(100),
"GROUPID" VARCHAR(36),
"PRINCIPALFLAG" VARCHAR(1),
"CUSTOMINDEX" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("GROUPMEMBERID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSGROUPMEMBER" IS '监管小组成员';
COMMENT ON COLUMN "AICCS"."TSGROUPMEMBER"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSGROUPMEMBER"."CUSTOMINDEX" IS '排序顺序号';
COMMENT ON COLUMN "AICCS"."TSGROUPMEMBER"."GROUPID" IS '小组ID';
COMMENT ON COLUMN "AICCS"."TSGROUPMEMBER"."GROUPMEMBERID" IS '流水ID';
COMMENT ON COLUMN "AICCS"."TSGROUPMEMBER"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSGROUPMEMBER"."PRINCIPALFLAG" IS '负责人标识';
COMMENT ON COLUMN "AICCS"."TSGROUPMEMBER"."USERID" IS '小组成员ID';
COMMENT ON COLUMN "AICCS"."TSGROUPMEMBER"."USERNAME" IS '成员姓名';

CREATE OR REPLACE  INDEX "AICCS"."TSGROUPMEMBER_USERID_IDX" ON "AICCS"."TSGROUPMEMBER"("USERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSGROUPMEMBER_GROUPID_IDX" ON "AICCS"."TSGROUPMEMBER"("GROUPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSHANDINMAT"
(
"SERIALID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PRIPID" VARCHAR(72),
"DOCTIT" VARCHAR(300),
"DOCPAGES" INT,
"PIGSIGN" VARCHAR(1),
"HADHANDIN" VARCHAR(1),
"MATNUM" INT,
"ISCOPY" VARCHAR(1),
"HANDINMATDESCRIBE" VARCHAR(1000),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("SERIALID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSHANDINMAT" IS '业务材料提交情况业务表';
COMMENT ON COLUMN "AICCS"."TSHANDINMAT"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSHANDINMAT"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSHANDINMAT"."DOCPAGES" IS '文件页数';
COMMENT ON COLUMN "AICCS"."TSHANDINMAT"."DOCTIT" IS '文件标题';
COMMENT ON COLUMN "AICCS"."TSHANDINMAT"."HADHANDIN" IS '是否已提交';
COMMENT ON COLUMN "AICCS"."TSHANDINMAT"."HANDINMATDESCRIBE" IS '补充说明';
COMMENT ON COLUMN "AICCS"."TSHANDINMAT"."ISCOPY" IS '原件/复印件';
COMMENT ON COLUMN "AICCS"."TSHANDINMAT"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSHANDINMAT"."MATNUM" IS '材料份数';
COMMENT ON COLUMN "AICCS"."TSHANDINMAT"."PIGSIGN" IS '归档标记';
COMMENT ON COLUMN "AICCS"."TSHANDINMAT"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TSHANDINMAT"."SERIALID" IS '随机编号id';

CREATE OR REPLACE  INDEX "AICCS"."TSHANDINMAT_INDEX_PRIPID" ON "AICCS"."TSHANDINMAT"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSHANDINMAT_INDEX_BIZSEQ" ON "AICCS"."TSHANDINMAT"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSHEARINGREPORT"
(
"HEARINGREPORTID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PRIPID" VARCHAR(72),
"PUNISHCONTENT" VARCHAR(1000),
"ILLEGALFACTS" VARCHAR(1000),
"PUNISHREASON" VARCHAR(1000),
"PUNISHBASIS" VARCHAR(1000),
"RIGHTBASIS" VARCHAR(1000),
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"REMARKS" VARCHAR(510),
"AREACODE" VARCHAR(6) DEFAULT '440100',
NOT CLUSTER PRIMARY KEY("HEARINGREPORTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."TSHEARINGREPORT"."AREACODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSHEARINGREPORT"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSHEARINGREPORT"."HEARINGREPORTID" IS '听证报告id';
COMMENT ON COLUMN "AICCS"."TSHEARINGREPORT"."ILLEGALFACTS" IS '违法事实';
COMMENT ON COLUMN "AICCS"."TSHEARINGREPORT"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSHEARINGREPORT"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TSHEARINGREPORT"."PUNISHBASIS" IS '处罚依据';
COMMENT ON COLUMN "AICCS"."TSHEARINGREPORT"."PUNISHCONTENT" IS '处罚内容';
COMMENT ON COLUMN "AICCS"."TSHEARINGREPORT"."PUNISHREASON" IS '处罚理由';
COMMENT ON COLUMN "AICCS"."TSHEARINGREPORT"."REMARKS" IS '备注';
COMMENT ON COLUMN "AICCS"."TSHEARINGREPORT"."RIGHTBASIS" IS '权利依据';


CREATE TABLE "AICCS"."TSHIGHINDUSTRY"
(
"HIGHINDUSTRYID" VARCHAR(36) NOT NULL,
"HIGHINDUSTRYCODE" VARCHAR(20),
"INDUSTRYNAME" VARCHAR(600),
"INDUSTRYCODE" VARCHAR(8),
"TYPEID" VARCHAR(36),
"SUBITEMCODE" VARCHAR(20),
"SUBITEMNAME" VARCHAR(600),
"SETUPAICID" VARCHAR(18),
"SETUPAICNAME" VARCHAR(200),
"SETUPDEPTID" VARCHAR(36),
"SETUPDEPTNAME" VARCHAR(200),
"FREQUENCE" INT,
"SETUPUSERID" VARCHAR(36),
"SETUPUSERNAME" VARCHAR(200),
"FILENO" VARCHAR(100),
"DOCREASON" VARCHAR(600),
"CUSTOMINDEX" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("HIGHINDUSTRYID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSHSYSTEMOPLOG"
(
"SYSTEMOPLOGID" VARCHAR(36) NOT NULL,
"TASKLISTID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"OPERATORID" VARCHAR(72),
"OPERATOR" VARCHAR(100),
"OPERATETIME" TIMESTAMP(0),
"LOGNAME" VARCHAR(200),
"LOGCONTENT" VARCHAR(4000) NOT NULL,
"REMARK" VARCHAR(2000),
"LOGTYPE" VARCHAR(4),
"IPADDR" VARCHAR(100),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(18) DEFAULT '440100',
NOT CLUSTER PRIMARY KEY("SYSTEMOPLOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSHWFPROCESS"
(
"PROCESSID" VARCHAR(72) NOT NULL,
"PARENTPROCESSID" VARCHAR(72),
"COMPLETEDON" TIMESTAMP(0),
"CREATEDON" TIMESTAMP(0),
"STATUS" INT,
"OPTLOCK" INT,
"DEFNAME" VARCHAR(100),
"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 "AICCS"."TSHWFPROCESS" IS '流程实例（备份表）';
COMMENT ON COLUMN "AICCS"."TSHWFPROCESS"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSHWFPROCESS"."COMPLETEDON" IS '完成时间';
COMMENT ON COLUMN "AICCS"."TSHWFPROCESS"."CREATEDON" IS '启动时间';
COMMENT ON COLUMN "AICCS"."TSHWFPROCESS"."DEFNAME" IS '流程名';
COMMENT ON COLUMN "AICCS"."TSHWFPROCESS"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSHWFPROCESS"."OPTLOCK" IS '版本标识';
COMMENT ON COLUMN "AICCS"."TSHWFPROCESS"."PARENTPROCESSID" IS '父实例ID';
COMMENT ON COLUMN "AICCS"."TSHWFPROCESS"."PROCESSID" IS '主键';
COMMENT ON COLUMN "AICCS"."TSHWFPROCESS"."STATUS" IS '状态';

CREATE OR REPLACE  INDEX "AICCS"."TSHWFPROCESS_PARENTPROCESSID_IDX" ON "AICCS"."TSHWFPROCESS"("PARENTPROCESSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSHWFPROCESSNODE"
(
"PROCESSNODEID" VARCHAR(72) NOT NULL,
"PROCESSID" VARCHAR(72),
"CREATEDON" TIMESTAMP(0),
"CURRENTNODE" VARCHAR(510),
"NODEFLOW" VARCHAR(510),
"STATUS" INT,
"OPTLOCK" INT,
"CURRUSERID" VARCHAR(510),
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
NOT CLUSTER PRIMARY KEY("PROCESSNODEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

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

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


CREATE TABLE "AICCS"."TSHWFTASK"
(
"TASKID" VARCHAR(36) NOT NULL,
"PROCESSID" VARCHAR(36),
"STATUS" INT,
"COMPLETEDON" TIMESTAMP(0),
"CREATEDON" TIMESTAMP(0),
"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 "AICCS"."TSHWFTASK" IS '工作流任务表';
COMMENT ON COLUMN "AICCS"."TSHWFTASK"."ACTUALOWNERID" IS '签收者ID';
COMMENT ON COLUMN "AICCS"."TSHWFTASK"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSHWFTASK"."COMPLETEDON" IS '完成时间';
COMMENT ON COLUMN "AICCS"."TSHWFTASK"."CREATEDBYID" IS '创建者ID';
COMMENT ON COLUMN "AICCS"."TSHWFTASK"."CREATEDON" IS '创建时间';
COMMENT ON COLUMN "AICCS"."TSHWFTASK"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSHWFTASK"."OPTLOCK" IS '版本标识';
COMMENT ON COLUMN "AICCS"."TSHWFTASK"."PROCESSID" IS '主键';
COMMENT ON COLUMN "AICCS"."TSHWFTASK"."STATUS" IS '状态';
COMMENT ON COLUMN "AICCS"."TSHWFTASK"."TASKID" IS '主键';

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


CREATE TABLE "AICCS"."TSILLEGALACTIONLIST"
(
"ILLEGALACTIONID" VARCHAR(36) NOT NULL,
"RECORDID" VARCHAR(36),
"STANDARDCODE" VARCHAR(20),
"ILLEGALCODE" VARCHAR(72),
"ACTIONDESC" VARCHAR(800),
"CONVICTIONBASIS" VARCHAR(7200),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("ILLEGALACTIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSILLEGALRECORD"
(
"ILLEGALRECORDID" VARCHAR(36) NOT NULL,
"RECORDID" VARCHAR(36),
"INSOBJID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"AMERCE" DECIMAL(18,2),
"EASYCASEID" VARCHAR(36),
"FOLLOWPERIOD" INT,
"FOLLOWDATE" DATE,
"RECORDER" VARCHAR(60),
"RECORDDATE" DATE,
"KEYID" VARCHAR(36),
"RECEIVERID" VARCHAR(72),
"DOCNO" VARCHAR(36),
"LOCALADM" VARCHAR(72),
"MEASURETYPE" VARCHAR(100),
"INSPECTDETAIL" VARCHAR(1000),
"REMARK" VARCHAR(1000),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("ILLEGALRECORDID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSIMPORTANTAREA"
(
"AREAID" VARCHAR(36) NOT NULL,
"AREANAME" VARCHAR(600),
"TYPEID" VARCHAR(36),
"FREQUENCE" INT,
"SETUPAICID" VARCHAR(18),
"SETUPAICNAME" VARCHAR(200),
"SETUPDEPTID" VARCHAR(36),
"SETUPDEPTNAME" VARCHAR(200),
"SETUPUSERID" VARCHAR(36),
"SETUPUSERNAME" VARCHAR(200),
"REMARK" VARCHAR(3000),
"CUSTOMINDEX" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("AREAID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINDIVIDUALCREDITSTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"OBJTYPENO" VARCHAR(9),
"PROVINCEID" VARCHAR(18),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(18),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"TOWNNAME" VARCHAR(200),
"GROUPNAME" VARCHAR(200),
"LEVELTYPE" VARCHAR(1),
"INDIVIDUALNUM" INT,
"OBJNUM" INT,
"RISKINDUSTRYJIA" INT,
"RISKINDUSTRYYI" INT,
"RISKINDUSTRYBING" INT,
"DEBUTRETURNCHECK" INT,
"EVERYDAYCHECK" INT,
"SPECIALISATIONCHECK" INT,
"COMPLAINCHECK" INT,
"CASEAFTERCHECK" INT,
"ORALEDUCATION" INT,
"WRITTENEDUCATION" INT,
"ORALCAUTION" INT,
"WRITTENCAUTION" INT,
"COUNSELING" INT,
"ORALCAVEAT" INT,
"WRITTENCAVEAT" INT,
"ORALCHARGE" INT,
"WRITTENCHARGE" INT,
"TOCASEKEYINFO" INT,
"TOEASYCASE" INT,
"TOMUTUALITYDEPT" INT,
"TERMPASSINREVIEW" INT,
"REGISTEREMPHASISCHECK" INT,
"ACCEPTEDEMPHASISCHECK" INT,
"ISLOSTOBJNUM" INT,
"ISNATURALOBJNUM" INT,
"NOFINISHTOTAL" INT,
"FINISHTOTAL" INT,
"AMERCETOTAL" INT,
"AMERCEAMOUNT" INT,
"COERCESTEP" INT,
"REVOKELICENCE" INT,
"REPORTTYPE" INT,
"TYPES" VARCHAR(1),
"AREANO" VARCHAR(36),
"GROUPNO" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINDUSTRYTYPE"
(
"TYPEID" VARCHAR(36) NOT NULL,
"TYPENAME" VARCHAR(200),
"SETUPAICID" VARCHAR(18),
"SETUPAICNAME" VARCHAR(200),
"SETUPDEPTID" VARCHAR(36),
"SETUPDEPTNAME" VARCHAR(200),
"SETUPUSERID" VARCHAR(36),
"SETUPUSERNAME" VARCHAR(200),
"SETUPBASIS" VARCHAR(1000),
"CUSTOMINDEX" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("TYPEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINNERENTITYINFO"
(
"INNERENTITYID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"INFORMATIONID" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("INNERENTITYID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINNERINFO"
(
"INFORMATIONID" VARCHAR(36) NOT NULL,
"DETAILID" VARCHAR(20),
"INNERNAME" VARCHAR(200),
"DEPTID" VARCHAR(200),
"ASSESSDATE" DATE,
"STARTDATE" DATE,
"ENDDATE" DATE,
"INPUTPERSON" VARCHAR(36),
"INPUTORG" VARCHAR(36),
"INPUTDATE" DATE,
"STATUS" VARCHAR(1),
"REMARK" VARCHAR(3000),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("INFORMATIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSDESCBASE"
(
"INSDESCID" VARCHAR(9) NOT NULL,
"INSDESCNAME" VARCHAR(8000),
"PARENTID" VARCHAR(18),
"REMARKS" VARCHAR(400),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"SORTID" VARCHAR(12),
NOT CLUSTER PRIMARY KEY("INSDESCID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSPECT"
(
"INSID" VARCHAR(36) NOT NULL,
"PARENTID" VARCHAR(36),
"ROOTINSID" VARCHAR(36),
"INSNAME" VARCHAR(200),
"SELTYPE" VARCHAR(1),
"NUMTYPE" VARCHAR(1),
"SCALE" INT DEFAULT 0,
"ENTCNT" INT DEFAULT 0,
"CREAICID" VARCHAR(18),
"CREAICNAME" VARCHAR(200),
"CREATETIME" DATE,
"CREEMPID" VARCHAR(36),
"CREEMPNAME" VARCHAR(100),
"INSAICID" VARCHAR(18),
"INSAICNAME" VARCHAR(200),
"ENTITYTYPE" CLOB,
"ENTITYTYPENAME" CLOB,
"ENTTYPEGRP" VARCHAR(20),
"AICID" CLOB,
"AICNAME" CLOB,
"ISSUEDEPTID" CLOB,
"ISSUEDEPTNAME" CLOB,
"SUPDEPTID" CLOB,
"SUPDEPTNAME" CLOB,
"SENDAICID" VARCHAR(18),
"SENDAICNAME" VARCHAR(200),
"RANDOMMODE" VARCHAR(1),
"INDUSTRYCODE" CLOB,
"INDUSTRYCODENAME" CLOB,
"INDUSTRYTYPE" VARCHAR(200),
"INDUSTRYTYPENAME" CLOB,
"REGCAPMIN" DECIMAL(18,6),
"REGCAPMAX" DECIMAL(18,6),
"ESTDATEMIN" DATE,
"ESTDATEMAX" DATE,
"COMPLETE" VARCHAR(1),
"DATASOURCE" VARCHAR(1),
"ENTTOTAL" INT,
"ISSUED" VARCHAR(1),
"REMARKS" VARCHAR(1000),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100',
"SFNB" VARCHAR(1),
"REPORTYEAR" VARCHAR(400),
"ISPASS" VARCHAR(2),
"EXECUTETIME" DATE,
"PROPOSEDTIME" TIMESTAMP(0),
"PROPOSEDCONTEXT" VARCHAR(16000),
"RANDOMDEVICE" VARCHAR(1),
"INSDESC" VARCHAR(3),
"ABNLIST" VARCHAR(1),
"FIELDABNLIST" VARCHAR(1),
"EXCINS" VARCHAR(1),
"EXCWNB" VARCHAR(1),
NOT CLUSTER PRIMARY KEY("INSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSPECTINFO"
(
"RECORDID" VARCHAR(36) NOT NULL,
"INSOBJID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"ENTNAME" VARCHAR(200),
"REGNO" VARCHAR(60),
"ENTBASEADDRID" VARCHAR(36),
"INSTYPE" VARCHAR(1),
"PLANID" VARCHAR(36),
"SPEINSITEM" VARCHAR(200),
"RECORDERID" VARCHAR(36),
"INSPECTTIME" DATE,
"INSPECTOR" VARCHAR(400),
"TOBECHECKEDMAN" VARCHAR(200),
"CHECKEDMANSIGNDATE" DATE,
"TELEPHONE" VARCHAR(20),
"STAMP" VARCHAR(1) DEFAULT '0',
"MEASURETYPE" VARCHAR(2),
"REVIEWDATE" DATE,
"REGULARINSPECTION" VARCHAR(1) DEFAULT '0',
"DAILYSIGN" VARCHAR(1) DEFAULT '0',
"SPEINSSIGN" VARCHAR(1) DEFAULT '0',
"COMPLAINTSIGN" VARCHAR(1) DEFAULT '0',
"AFCASESIGN" VARCHAR(1) DEFAULT '0',
"ANNUALSIGN" VARCHAR(1) DEFAULT '0',
"LOST" VARCHAR(1),
"ISOPENEDOVERDUE" VARCHAR(1),
"ISSELFCLOSURE" VARCHAR(1),
"INSFOUNDPROB" VARCHAR(6),
"FOUNDPROB" VARCHAR(3),
"INSRES" VARCHAR(1),
"PREQUESIGN" VARCHAR(1) DEFAULT '2',
"CORRSIGN" VARCHAR(1),
"REGISTERCHANGE" VARCHAR(1),
"SETST" VARCHAR(1),
"INPUTFLAG" VARCHAR(1),
"INSAUTHID" VARCHAR(36),
"INSAUTH" VARCHAR(200),
"WRITNO" VARCHAR(200),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100',
"ISNATURAL" VARCHAR(1),
"ISCHECK" VARCHAR(1),
"REINSPECTDATE" DATE,
NOT CLUSTER PRIMARY KEY("RECORDID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSPECTMODEL"
(
"MODELID" VARCHAR(36) NOT NULL,
"MODELNAME" VARCHAR(200),
"TABLENAME" VARCHAR(100),
"SETUPAICID" VARCHAR(18),
"SETUPDEPTID" VARCHAR(36),
"VERSION" VARCHAR(40),
"ISDEFAULT" VARCHAR(1),
"ISDEL" VARCHAR(1),
"REMARK" VARCHAR(600),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("MODELID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSPECTOBJECT"
(
"INSOBJECTID" VARCHAR(36) NOT NULL,
"PLANID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"ENTBASEADDRID" VARCHAR(36),
"ADDRESS" VARCHAR(400),
"PLANSIGN" VARCHAR(1),
"ISCHECK" VARCHAR(1),
"CHECKTYPE" VARCHAR(1),
"RECORDID" VARCHAR(36),
"INSAUTH" VARCHAR(18),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"PLANSTATUSID" VARCHAR(36),
NOT CLUSTER PRIMARY KEY("INSOBJECTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSPECTOBJECTGROUP"
(
"GROUPID" VARCHAR(36) NOT NULL,
"USERNAMES" VARCHAR(400),
"INSID" VARCHAR(36),
"ORGID" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(12) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("GROUPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSPECTOBJECTGROUPUSER"
(
"GROUPID" VARCHAR(36) NOT NULL,
"USERID" VARCHAR(36) NOT NULL,
"USERNAME" VARCHAR(100) NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(12) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("GROUPID", "USERID", "USERNAME")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSPECTOBJECTLIST"
(
"INSOBJID" VARCHAR(36) NOT NULL,
"INSID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"ADDRESS" VARCHAR(400),
"LEREPNAME" VARCHAR(200),
"SELTYPE" VARCHAR(1),
"AICID" VARCHAR(18),
"AICNAME" VARCHAR(200),
"ISSUEDEPTID" VARCHAR(18),
"ISSUEDEPTNAME" VARCHAR(200),
"SUPDEPTID" VARCHAR(18),
"SUPDEPTNAME" VARCHAR(200),
"ENTITYTYPEID" VARCHAR(12),
"SUBENTITYTYPE" VARCHAR(12),
"DATASOURCE" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"RANDOMINDEX" INT,
NOT CLUSTER PRIMARY KEY("INSOBJID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSPECTOBJECTUSER"
(
"INSOBJUSERID" VARCHAR(36) NOT NULL,
"INSOBJID" VARCHAR(36),
"GROUPID" VARCHAR(36),
"INSID" VARCHAR(36),
"ROOTINSID" VARCHAR(36),
"AICID" VARCHAR(18),
"LAUPTIME" DATE,
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("INSOBJUSERID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSPECTOR"
(
"INSPECTORID" VARCHAR(36) NOT NULL,
"RECORDID" VARCHAR(36),
"USERID" VARCHAR(36),
"INSNAME" VARCHAR(200),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("INSPECTORID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSPECTRESULT"
(
"RECORDID" VARCHAR(36) NOT NULL,
"REALBUSINESS" VARCHAR(6000),
"SETSUG" VARCHAR(2000),
"INSPECTDETAIL" VARCHAR(1600),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"PRIPID" VARCHAR(36),
NOT CLUSTER PRIMARY KEY("RECORDID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSPECTUSERDEFINEDOBJECT"
(
"ID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"LEREPNAME" VARCHAR(200),
"INSID" VARCHAR(36),
"AICID" VARCHAR(18),
"REGORG" VARCHAR(9),
"ENTTYPE" VARCHAR(6),
"SUBENTTYPE" VARCHAR(4),
"CREAICID" VARCHAR(18),
"ADDTIME" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSPERCONAUDIT"
(
"AUDITID" VARCHAR(36) NOT NULL,
"INSID" VARCHAR(72),
"INSAICID" VARCHAR(18),
"STAAICID" VARCHAR(18),
"STATUS" VARCHAR(1),
"AUDITDATE" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100',
NOT CLUSTER PRIMARY KEY("AUDITID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSTASKDESC"
(
"INSID" VARCHAR(36) NOT NULL,
"INSDESCID" VARCHAR(9) NOT NULL,
"LAUPTIME" TIMESTAMP(0) NOT NULL,
"AREA_CODE" VARCHAR(6) DEFAULT '440100',
NOT CLUSTER PRIMARY KEY("INSID", "INSDESCID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINSTASKRESULT"
(
"RESULTID" VARCHAR(36) NOT NULL,
"INSID" VARCHAR(36),
"INSAICID" VARCHAR(18),
"INSAICNAME" VARCHAR(200),
"FINISHED" VARCHAR(1),
"SENDERID" VARCHAR(36),
"AUTHORID" VARCHAR(36),
"AUTHORNAME" VARCHAR(20),
"SITUATION" VARCHAR(6000),
"WRITNO" VARCHAR(200),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("RESULTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINTERLOPEINFO"
(
"PRIPID" VARCHAR(36) NOT NULL,
"ENTNAME" VARCHAR(200),
"ADDRESS" VARCHAR(400),
"ADDRLOCDISTRICT" VARCHAR(6),
"BUSINESS" VARCHAR(6000),
"INDUSTRYPHY" VARCHAR(1),
"INDUSTRYCO" VARCHAR(4),
"INSPECTCYCLE" DECIMAL(13,0),
"NEXTINSPECTDATE" DATE,
"DEMAND" VARCHAR(1000),
"PRINCIPAL" VARCHAR(200),
"IDCARDNO" VARCHAR(60),
"DEL" VARCHAR(2),
"DELREASON" VARCHAR(32),
"DETAILREASON" VARCHAR(1000),
"STARTDATE" DATE,
"ENDDATE" DATE,
"MODIFYREASON" VARCHAR(400),
"WORKAREA" DECIMAL(15,2),
"TELEPHONE" VARCHAR(30),
"NOLICENCETYPE" VARCHAR(30),
"DISCOVER" VARCHAR(1),
"REMARK" VARCHAR(1000),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSINTERLOPERECORD"
(
"RECORDID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"ILLEGPT" VARCHAR(200),
"PRINCIPAL" VARCHAR(200),
"IDCARD" VARCHAR(60),
"OPLOC" VARCHAR(200),
"FOLLOWUPTERM" DECIMAL(3,0),
"FOLLOWUPUNIT" DATE,
"PARTYNAME" VARCHAR(40),
"SIGNDATE" DATE,
"RECORDER" VARCHAR(40),
"RECORDDATE" DATE,
"DISCOVER" VARCHAR(1),
"STARTDATE" DATE,
"ENDDATE" DATE,
"ILLEGFACT" VARCHAR(2000),
"SETRESULT" VARCHAR(2000),
"SETDATE" DATE,
"EXEORG" VARCHAR(200),
"REMARK" VARCHAR(1000),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("RECORDID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSITEMRECORD"
(
"ITEMRECORDID" VARCHAR(36) NOT NULL,
"RECORDID" VARCHAR(36),
"MODELID" VARCHAR(36),
"ITEMID" VARCHAR(36),
"ITEMNAME" VARCHAR(400),
"ITEMDATATYPE" VARCHAR(1),
"ITEMLENGTH" INT,
"ITEMVALUE" VARCHAR(600),
"CUSTOMINDEX" INT,
"REGION" VARCHAR(18),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("ITEMRECORDID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSLICENCE"
(
"LICID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(36),
"PRIPID" VARCHAR(36),
"LICNO" VARCHAR(100),
"LICTYPE" VARCHAR(2),
"VALFROM" TIMESTAMP(0),
"VALTO" TIMESTAMP(0),
"ORICOPSIGN" VARCHAR(1),
"LICSTATE" VARCHAR(1),
"ISSLICREA" VARCHAR(2),
"ISSLICPER" VARCHAR(60),
"ISSLICDATE" TIMESTAMP(0),
"DRAPER" VARCHAR(60),
"TEL" VARCHAR(60),
"REILICREA" VARCHAR(600),
"CERLICENCEID" VARCHAR(3),
"DRAPERTYPE" VARCHAR(2),
"DRAPERNO" VARCHAR(60),
"LICCOPYNUM" INT,
"COPYCODE" VARCHAR(3),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("LICID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSLICINFO"
(
"LICINFOID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"LICNO" VARCHAR(100),
"LICNAME" VARCHAR(240),
"VALFROM" DATE,
"VALTO" DATE,
"LICANTH" VARCHAR(200),
"LICSTATE" VARCHAR(1),
"APPRCONT" VARCHAR(400),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("LICINFOID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSMAPADDR"
(
"MAPADDRID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36) NOT NULL,
"ADDRESS" VARCHAR(400) NOT NULL,
"CITY" VARCHAR(200),
"ADDRTYPE" VARCHAR(4) NOT NULL,
"LONGITUDE" VARCHAR(100),
"LATITUDE" VARCHAR(100),
"PRECISE" VARCHAR(1),
"CONFIDENCE" INT,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("MAPADDRID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSMATBAS"
(
"MATBASID" VARCHAR(36) NOT NULL,
"ENTTYPE" VARCHAR(18),
"BIZTYPE" VARCHAR(8),
"SEQ" INT,
"MATNAME" VARCHAR(400),
"ISCOPY" VARCHAR(1),
"ISINUSE" VARCHAR(1),
"AREA_CODE" VARCHAR(6),
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("MATBASID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSNOLICENCESTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"PROVINCEID" VARCHAR(9),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(18),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"TOWNNAME" VARCHAR(200),
"GROUPNAME" VARCHAR(100),
"OBJNUM" INT,
"NEEDMANAGENUM" INT,
"HAVELICENCENUM" INT,
"ISLOSTNUM" INT,
"ALREADYBANNUM" INT,
"DEBUTRETURNCHECK" INT,
"EVERYDAYCHECK" INT,
"SPECIALISATIONCHECK" INT,
"COMPLAINCHECK" INT,
"CASEAFTERCHECK" INT,
"IMPORTINDUSTRYOBJNUM" INT,
"ORALEDUCATION" INT,
"WRITTENEDUCATION" INT,
"ORALCAUTION" INT,
"WRITTENCAUTION" INT,
"COUNSELING" INT,
"ORALCAVEAT" INT,
"WRITTENCAVEAT" INT,
"ORALCHARGE" INT,
"WRITTENCHARGE" INT,
"TOCASEKEYINFO" INT,
"TOEASYCASE" INT,
"TOMUTUALITYDEPT" INT,
"TERMPASSINREVIEW" INT,
"REGISTEREMPHASISCHECK" INT,
"ACCEPTEDEMPHASISCHECK" INT,
"ISLOSTOBJNUM" INT,
"ISNATURALOBJNUM" INT,
"NOFINISHTOTAL" INT,
"FINISHTOTAL" INT,
"AMERCEAMOUNT" INT,
"AMERCETOTAL" INT,
"COERCESTEP" INT,
"REPORTTYPE" INT,
"AREANO" VARCHAR(36),
"GROUPNO" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSOPERATIONLOG"
(
"OPERATIONLOGID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(36),
"ACCEPTNO" VARCHAR(60),
"BUSNAME" VARCHAR(400),
"BUSTYPE" VARCHAR(4),
"OPERATORID" VARCHAR(72),
"OPERATOR" VARCHAR(100),
"OPERATETIME" TIMESTAMP(0),
"LOGTYPE" VARCHAR(4),
"REASON" VARCHAR(1000),
"REMARK" VARCHAR(1000),
"AGREETYPE" VARCHAR(1) DEFAULT '0' NOT NULL,
"STATUS" VARCHAR(1) DEFAULT '0' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(18) DEFAULT '440100',
NOT CLUSTER PRIMARY KEY("OPERATIONLOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSOPINION"
(
"OPINIONID" VARCHAR(36) NOT NULL,
"WORKFLOWID" VARCHAR(36),
"OPINIONTYPE" VARCHAR(2),
"HANDLER" VARCHAR(80),
"HANDLERID" VARCHAR(36),
"OPINIONCONTENT" VARCHAR(4000),
"HANDLEDATE" TIMESTAMP(0),
"TRIALDATE" DATE,
"ISAGREE" VARCHAR(1),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"OPER_OPINION" VARCHAR(2000),
"BIZSEQ" VARCHAR(72),
NOT CLUSTER PRIMARY KEY("OPINIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."TSOPINION_HANDLERID_IDX" ON "AICCS"."TSOPINION"("HANDLERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSOPINION_WORKFLOWID_IDX" ON "AICCS"."TSOPINION"("WORKFLOWID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSORGCONTACT"
(
"ORGUNITID" VARCHAR(36) NOT NULL,
"AICID" VARCHAR(60),
"ORGNAME" VARCHAR(100),
"ADDRESS" VARCHAR(200),
"POSTALCODE" VARCHAR(6),
"TELEPHONE" VARCHAR(60),
"SHORTNAME" VARCHAR(20),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ORGUNITID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSPERSON"
(
"PERSONID" VARCHAR(36) NOT NULL,
"CERTYPE" VARCHAR(4),
"CERNO" VARCHAR(80),
"NAME" VARCHAR(60),
"SEX" VARCHAR(1),
"NATDATE" TIMESTAMP(0),
"LITEDEG" VARCHAR(60),
"NATION" VARCHAR(2),
"DOM" VARCHAR(200),
"POSTALCODE" VARCHAR(6),
"TEL" VARCHAR(60),
"POLSTAND" VARCHAR(4),
"COUNTRY" VARCHAR(3),
"EMAIL" VARCHAR(60),
"PHONENUMBER" VARCHAR(60),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("PERSONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSPLANINSPECTORS"
(
"PLANINSPECTORSID" VARCHAR(36) NOT NULL,
"PLANSTATUSID" VARCHAR(36),
"USERID" VARCHAR(36),
"USERNAME" VARCHAR(60),
"PRINCIPALSIGN" VARCHAR(1) DEFAULT '0',
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100',
"PLANID" VARCHAR(36),
"ORGID" VARCHAR(36),
"AICID" VARCHAR(18),
"DEPTID" VARCHAR(36),
NOT CLUSTER PRIMARY KEY("PLANINSPECTORSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSPLANRESULT"
(
"PLANRESULTID" VARCHAR(36) NOT NULL,
"PLANSTATUSID" VARCHAR(36),
"PLANID" VARCHAR(72),
"ORGID" VARCHAR(36),
"ORGNAME" VARCHAR(200),
"DEPTID" VARCHAR(36),
"INSPECTSTARTDATE" DATE,
"INSPECTENDDATE" DATE,
"VEHICLE" INT,
"PEOPLE" INT,
"PLANNUM" INT,
"INSPECTNUM" INT,
"PREQUENUM" INT,
"INSPECTCIRCS" VARCHAR(2000),
"APPID" VARCHAR(72),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PLANRESULTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSPLANSTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"PROVINCEID" VARCHAR(18),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(18),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"TOWNNAME" VARCHAR(200),
"PLANNUM" INT,
"SPECIALPLANNUM" INT,
"CONSTITUTEPLANNUM" INT,
"RECORDINGPLANNUM" INT,
"RECORDEDPLANNUM" INT,
"TOTALOBJNUM" INT,
"CALLOUTPERSONNUM" INT,
"CALLOUTVEHICLENUM" INT,
"IMPORTINDUSTRYOBJNUM" INT,
"IMPORTAREAOBJNUM" INT,
"DEBUTRETURNCHECK" INT,
"EVERYDAYCHECK" INT,
"SPECIALISATIONCHECK" INT,
"COMPLAINCHECK" INT,
"CASEAFTERCHECK" INT,
"ORALEDUCATION" INT,
"WRITTENEDUCATION" INT,
"ORALCAUTION" INT,
"WRITTENCAUTION" INT,
"COUNSELING" INT,
"ORALCAVEAT" INT,
"WRITTENCAVEAT" INT,
"ORALCHARGE" INT,
"WRITTENCHARGE" INT,
"TOCASEKEYINFO" INT,
"TOEASYCASE" INT,
"TOMUTUALITYDEPT" INT,
"TERMPASSINREVIEW" INT,
"REGISTEREMPHASISCHECK" INT,
"ACCEPTEDEMPHASISCHECK" INT,
"ISLOSTOBJNUM" INT,
"ISNATURALOBJNUM" INT,
"REPORTTYPE" INT,
"AREANO" VARCHAR(36),
"GROUPNO" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSPLANSTATUS"
(
"PLANSTATUSID" VARCHAR(36) NOT NULL,
"PLANID" VARCHAR(72),
"SENDAICID" VARCHAR(18),
"ORGID" VARCHAR(36),
"AICID" VARCHAR(18),
"DEPTID" VARCHAR(36),
"STATUS" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PLANSTATUSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSPLANTEMPLATE"
(
"PLANTEMPLATEID" VARCHAR(36) NOT NULL,
"PLANID" VARCHAR(36),
"MODELID" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PLANTEMPLATEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSPLEDGE"
(
"PLEDGEID" VARCHAR(36) NOT NULL,
"BIZSEQID" VARCHAR(36) NOT NULL,
"PLEDGEREGNO" VARCHAR(128),
"APPROVEDATE" TIMESTAMP(0),
"PAWNNAME" VARCHAR(120),
"OWNER" VARCHAR(400),
"EXPIREDATE" VARCHAR(200),
"SCOPE" VARCHAR(1200),
"APPLYDATE" TIMESTAMP(0),
"SUPERVISEDEPTID" VARCHAR(72),
"CONTRACTNO" VARCHAR(128),
"TOTALNUM" DECIMAL(8,0),
"APPROVECONTENT" VARCHAR(120),
"ISSUEDEPTID" VARCHAR(18),
"AICID" VARCHAR(18),
"SURETYMONEY" DECIMAL(16,4),
"UNIT" VARCHAR(12),
"DEBTORNAME" VARCHAR(400),
"CONTRACTNAME" VARCHAR(200),
"EXPIRESHOWMODE" VARCHAR(1),
"EXPIRESTARTDATE" TIMESTAMP(0),
"PMONEY" DECIMAL(16,4),
"CREDITORSRIGHTSTYPE" VARCHAR(400),
"PLEDGESTARTDATE" TIMESTAMP(0),
"REASON" VARCHAR(400),
"PRICLASECAM" DECIMAL(16,4),
"REMARK" VARCHAR(800),
"INTEREST" DECIMAL(18,6),
"DEFAM" DECIMAL(18,6),
"DAMCOMAM" DECIMAL(18,6),
"EXPENSE" DECIMAL(18,6),
"CONTOTHER" VARCHAR(200),
"STATUS" VARCHAR(2),
"BIZSTATUS" VARCHAR(2),
"CREDITBARGAINTYPE" VARCHAR(1),
"HOLD" VARCHAR(1600),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("PLEDGEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSPROPOSEDTASK"
(
"INSID" VARCHAR(36) NOT NULL,
"INSNAME" VARCHAR(200) NOT NULL,
"PROCONTEXT" VARCHAR(500) NOT NULL,
"PROTIMESTART" TIMESTAMP(0) NOT NULL,
"PROTIMEEND" TIMESTAMP(0) NOT NULL,
"PROORGUNITID" VARCHAR(36) NOT NULL,
"PROAICID" VARCHAR(9) NOT NULL,
"PROAICNAME" VARCHAR(200) NOT NULL,
"PROUSERID" VARCHAR(36) NOT NULL,
"PROUSERNAME" VARCHAR(40) NOT NULL,
"PROUSERDEPTID" VARCHAR(36) NOT NULL,
"PROUSERDEPTNAME" VARCHAR(40) NOT NULL,
"SELTYPE" VARCHAR(1) NOT NULL,
"ISPASS" VARCHAR(1) NOT NULL,
"LAUPTIME" TIMESTAMP(0) NOT NULL,
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("INSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSRANDOMPERSON"
(
"PERSONID" VARCHAR(36) NOT NULL,
"PERSONNAME" VARCHAR(36) NOT NULL,
"ORGUNITID" VARCHAR(36) NOT NULL,
"AICID" VARCHAR(36) NOT NULL,
"ORGUNITNAME" VARCHAR(100),
"LICENSENUM" VARCHAR(50),
"ISRANDOMPERSON" VARCHAR(1),
"ALLOCATETIME" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PERSONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSREALINSPECTMODEL"
(
"REALINSPECTMODELID" VARCHAR(36) NOT NULL,
"RECORDID" VARCHAR(36),
"MODELID" VARCHAR(36) NOT NULL,
"MODELNAME" VARCHAR(200),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"TABLENAME" VARCHAR(100),
NOT CLUSTER PRIMARY KEY("REALINSPECTMODELID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSREFGROUPANDUSER"
(
"REFID" VARCHAR(36) NOT NULL,
"GROUPID" VARCHAR(510),
"USERID" VARCHAR(510),
"PROCESSID" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
NOT CLUSTER PRIMARY KEY("REFID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSREFGROUPANDUSER" IS '业务组用户与流程关系表';
COMMENT ON COLUMN "AICCS"."TSREFGROUPANDUSER"."AREA_CODE" IS '地区编码';
COMMENT ON COLUMN "AICCS"."TSREFGROUPANDUSER"."GROUPID" IS '组id';
COMMENT ON COLUMN "AICCS"."TSREFGROUPANDUSER"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSREFGROUPANDUSER"."PROCESSID" IS '流程id';
COMMENT ON COLUMN "AICCS"."TSREFGROUPANDUSER"."REFID" IS '关系主键';
COMMENT ON COLUMN "AICCS"."TSREFGROUPANDUSER"."USERID" IS '用户id';

CREATE OR REPLACE  INDEX "AICCS"."TSREFGROUPANDUSER_PROCESSID_IDX" ON "AICCS"."TSREFGROUPANDUSER"("PROCESSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSREFGROUPANDUSER_GROUPID_IDX" ON "AICCS"."TSREFGROUPANDUSER"("GROUPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSREFGROUPANDUSER_USERID_IDX" ON "AICCS"."TSREFGROUPANDUSER"("USERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSREGIONEMPINDALERTSTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"OBJTYPENO" VARCHAR(9),
"PROVINCEID" VARCHAR(18),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(18),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"TOWNNAME" VARCHAR(200),
"EMPHASISINDUSTRY" VARCHAR(200),
"OBJNUM" INT,
"NEARDATE7" INT,
"NEARDATE15" INT,
"OVERDATE" INT,
"OVERDATE30" INT,
"DEBUTRETURNCHECKOVERDATE" INT,
"EVERYDAYCHECKOVERDATE" INT,
"SPECIALISATIONCHECKOVERDATE" INT,
"CASEAFTERCHECKOVERDATE" INT,
"MANAGENEARDATE30" INT,
"MANAGEOVERDATE" INT,
"PERMITNEARDATE30" INT,
"PERMITOVERDATE" INT,
"OVERDUENOOPEN" INT,
"SHUTOUTOVERDUE" INT,
"OVERDUEANNUALINSPECTION" INT,
"DISAPPEARANCE" INT,
"REPORTTYPE" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSREGIONEMPINDSTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"OBJTYPENO" VARCHAR(9),
"PROVINCEID" VARCHAR(18),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(18),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"TOWNNAME" VARCHAR(200),
"GROUPNAME" VARCHAR(200),
"EMPHASISINDUSTRY" VARCHAR(200),
"OBJNUM" INT,
"LEVELTYPEA" INT,
"LEVELTYPEB" INT,
"LEVELTYPEC" INT,
"LEVELTYPED" INT,
"DEBUTRETURNCHECK" INT,
"EVERYDAYCHECK" INT,
"SPECIALISATIONCHECK" INT,
"COMPLAINCHECK" INT,
"CASEAFTERCHECK" INT,
"ORALEDUCATION" INT,
"WRITTENEDUCATION" INT,
"ORALCAUTION" INT,
"WRITTENCAUTION" INT,
"COUNSELING" INT,
"ORALCAVEAT" INT,
"WRITTENCAVEAT" INT,
"ORALCHARGE" INT,
"WRITTENCHARGE" INT,
"TOCASEKEYINFO" INT,
"TOEASYCASE" INT,
"TOMUTUALITYDEPT" INT,
"TERMPASSINREVIEW" INT,
"REGISTEREMPHASISCHECK" INT,
"ACCEPTEDEMPHASISCHECK" INT,
"ISLOSTOBJNUM" INT,
"ISNATURALOBJNUM" INT,
"NOFINISHTOTAL" INT,
"FINISHTOTAL" INT,
"AMERCEAMOUNT" INT,
"AMERCETOTAL" INT,
"COERCESTEP" INT,
"REVOKELICENCE" INT,
"REPORTTYPE" INT,
"AREANO" VARCHAR(36),
"GROUPNO" VARCHAR(36),
"PERILIMPORTINDUSTRYID" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSREGIONRISKSTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"OBJTYPENO" VARCHAR(9),
"PROVINCEID" VARCHAR(18),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(18),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"TOWNNAME" VARCHAR(200),
"ORGNAME" VARCHAR(100),
"CLASSTYPE" VARCHAR(4),
"RISKINDUSTRY" VARCHAR(200),
"OBJNUM" INT,
"LEVELTYPEA" INT,
"LEVELTYPEB" INT,
"LEVELTYPEC" INT,
"LEVELTYPED" INT,
"DEBUTRETURNCHECK" INT,
"EVERYDAYCHECK" INT,
"SPECIALISATIONCHECK" INT,
"COMPLAINCHECK" INT,
"CASEAFTERCHECK" INT,
"ORALEDUCATION" INT,
"WRITTENEDUCATION" INT,
"ORALCAUTION" INT,
"WRITTENCAUTION" INT,
"COUNSELING" INT,
"ORALCAVEAT" INT,
"WRITTENCAVEAT" INT,
"ORALCHARGE" INT,
"WRITTENCHARGE" INT,
"TOCASEKEYINFO" INT,
"TOEASYCASE" INT,
"TOMUTUALITYDEPT" INT,
"TERMPASSINREVIEW" INT,
"REGISTEREMPHASISCHECK" INT,
"ACCEPTEDEMPHASISCHECK" INT,
"ISLOSTOBJNUM" INT,
"ISNATURALOBJNUM" INT,
"NOFINISHTOTAL" INT,
"FINISHTOTAL" INT,
"AMERCEAMOUNT" INT,
"AMERCETOTAL" INT,
"COERCESTEP" INT,
"REVOKELICENCE" INT,
"REPORTTYPE" INT,
"AREANO" VARCHAR(36),
"GROUPNO" VARCHAR(36),
"PERILIMPORTINDUSTRYID" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSRESOUNDBRAND"
(
"RESOUNDBRANDID" VARCHAR(36) NOT NULL,
"COGNIZANCENO" VARCHAR(200),
"BRANDPERSON" VARCHAR(200),
"BRANDNAME" VARCHAR(200),
"BRANDADDRESS" VARCHAR(200),
"BRANDICO" VARCHAR(200),
"BRANDTYPE" VARCHAR(200),
"REGISTERNO" VARCHAR(200),
"COGNIZANCESERVER" VARCHAR(200),
"COGNIZANCEDATE" VARCHAR(200),
"STARTDATE" VARCHAR(200),
"ENDDATE" VARCHAR(200),
"COGNIZANCEORG" VARCHAR(200),
"COGNIZANCEMODE" VARCHAR(200),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("RESOUNDBRANDID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSRESTARTINFO"
(
"SERIALID" VARCHAR(36) NOT NULL,
"BIZSEQ" VARCHAR(36),
"PRIPID" VARCHAR(36),
"ANNUALYEAR" INT,
"REPORTEDDATE" DATE,
"ACCEPTNO" VARCHAR(13),
"CHANGEDATE" DATE,
"CASENO" VARCHAR(100),
"CASEINFO" VARCHAR(1300),
"ACCEPTSTRNO" VARCHAR(200),
"STRUMENTNO" VARCHAR(200),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("SERIALID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSREVOKEENTS"
(
"REVOKEENTSID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"REVOKEID" VARCHAR(72),
"PRIPID" VARCHAR(72),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(18) DEFAULT '440100',
NOT CLUSTER PRIMARY KEY("REVOKEENTSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSREVOKEENTS" IS '异常名录撤销主体表';
COMMENT ON COLUMN "AICCS"."TSREVOKEENTS"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSREVOKEENTS"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSREVOKEENTS"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSREVOKEENTS"."PRIPID" IS '市场主体ID';
COMMENT ON COLUMN "AICCS"."TSREVOKEENTS"."REVOKEENTSID" IS '主键ID';
COMMENT ON COLUMN "AICCS"."TSREVOKEENTS"."REVOKEID" IS '撤销业务表ID';

CREATE OR REPLACE  INDEX "AICCS"."TSREVOKEENTS_REVOKEID_IDX" ON "AICCS"."TSREVOKEENTS"("REVOKEID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSREVOKEENTS_PRIPID_IDX" ON "AICCS"."TSREVOKEENTS"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSREVOKEENTS_BIZSEQ_IDX" ON "AICCS"."TSREVOKEENTS"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSREVTASKLIST"
(
"TASKLISTID" VARCHAR(72) NOT NULL,
"CASEID" VARCHAR(72),
"WORKFLOWID" VARCHAR(72),
"BIZSEQID" VARCHAR(72),
"SIGNUSERID" VARCHAR(72),
"SENDERORGID" VARCHAR(72),
"SENDERUSERID" VARCHAR(72),
"SENDTOORGID" VARCHAR(72),
"ACCEPTNO" VARCHAR(34),
"BUSNAME" VARCHAR(400),
"SIGNTIME" DATE,
"BUSTYPE" VARCHAR(4),
"BUSSTATUS" VARCHAR(8),
"LINKNAME" VARCHAR(100),
"AUDITDEPTTYPE" VARCHAR(4),
"ISSIGNON" VARCHAR(1),
"SIGNLOGINNAME" VARCHAR(60),
"SENDERTIME" TIMESTAMP(0),
"SENDERNAME" VARCHAR(60),
"ACCEPTGROUPID" VARCHAR(510),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"CREATEUSERID" VARCHAR(72),
"CREATEUSERNAME" VARCHAR(60),
"CREATETIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("TASKLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

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


CREATE TABLE "AICCS"."TSRISKINDALERSTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"OBJTYPENO" VARCHAR(9),
"PROVINCEID" VARCHAR(18),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(18),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"TOWNNAME" VARCHAR(200),
"CLASSTYPE" VARCHAR(4),
"RISKINDUSTRY" VARCHAR(200),
"OBJNUM" INT,
"NEARDATE7" INT,
"NEARDATE15" INT,
"OVERDATE" INT,
"OVERDATE30" INT,
"DEBUTRETURNCHECKOVERDATE" INT,
"EVERYDAYCHECKOVERDATE" INT,
"SPECIALISATIONCHECKOVERDATE" INT,
"CASEAFTERCHECKOVERDATE" INT,
"MANAGENEARDATE30" INT,
"MANAGEOVERDATE" INT,
"PERMITNEARDATE30" INT,
"PERMITOVERDATE" INT,
"CHECKOVERDATE" INT,
"PAUSEOVERDATE" INT,
"DISAPPEARANCE" INT,
"REPORTTYPE" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSRISKINDALERTSTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"OBJTYPENO" VARCHAR(9),
"PROVINCEID" VARCHAR(18),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(18),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"TOWNNAME" VARCHAR(200),
"GROUPNAME" VARCHAR(200),
"CLASSTYPE" VARCHAR(4),
"RISKINDUSTRY" VARCHAR(200),
"OBJNUM" INT,
"NEARDATE7" INT,
"NEARDATE15" INT,
"OVERDATE" INT,
"OVERDATE30" INT,
"DEBUTRETURNCHECKOVERDATE" INT,
"EVERYDAYCHECKOVERDATE" INT,
"SPECIALISATIONCHECKOVERDATE" INT,
"CASEAFTERCHECKOVERDATE" INT,
"MANAGENEARDATE30" INT,
"MANAGEOVERDATE" INT,
"PERMITNEARDATE30" INT,
"PERMITOVERDATE" INT,
"CHECKOVERDATE" INT,
"PAUSEOVERDATE" INT,
"DISAPPEARANCE" INT,
"REPORTTYPE" INT,
"GROUPNO" VARCHAR(36),
"PERILIMPORTINDUSTRYID" VARCHAR(36),
"FDSTATDATE" DATE,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSRISKSTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"OBJTYPENO" VARCHAR(9),
"PROVINCEID" VARCHAR(18),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(18),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"TOWNNAME" VARCHAR(200),
"GROUPNAME" VARCHAR(100),
"RISKINDUSTRY" VARCHAR(200),
"CLASSTYPE" VARCHAR(4),
"OBJNUM" INT,
"LEVELTYPEA" INT,
"LEVELTYPEB" INT,
"LEVELTYPEC" INT,
"LEVELTYPED" INT,
"DEBUTRETURNCHECK" INT,
"EVERYDAYCHECK" INT,
"SPECIALISATIONCHECK" INT,
"COMPLAINCHECK" INT,
"CASEAFTERCHECK" INT,
"ORALEDUCATION" INT,
"WRITTENEDUCATION" INT,
"ORALCAUTION" INT,
"WRITTENCAUTION" INT,
"COUNSELING" INT,
"ORALCAVEAT" INT,
"WRITTENCAVEAT" INT,
"ORALCHARGE" INT,
"WRITTENCHARGE" INT,
"TOCASEKEYINFO" INT,
"TOEASYCASE" INT,
"TOMUTUALITYDEPT" INT,
"TERMPASSINREVIEW" INT,
"REGISTEREMPHASISCHECK" INT,
"ACCEPTEDEMPHASISCHECK" INT,
"ISLOSTOBJNUM" INT,
"ISNATURALOBJNUM" INT,
"NOFINISHTOTAL" INT,
"FINISHTOTAL" INT,
"AMERCEAMOUNT" INT,
"AMERCETOTAL" INT,
"COERCESTEP" INT,
"REVOKELICENCE" INT,
"REPORTTYPE" INT,
"AREANO" VARCHAR(36),
"GROUPNO" VARCHAR(36),
"PERILIMPORTINDUSTRYID" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSEALDEVICE"
(
"DEVICEID" VARCHAR(36) NOT NULL,
"SEALEDID" VARCHAR(36),
"PAWNNAME" VARCHAR(120),
"BRAND" VARCHAR(120),
"SPEC" VARCHAR(120),
"LEAVEFACTORYDATE" TIMESTAMP(0),
"WORKABLEYEAR" DECIMAL(3,0),
"QTY" DECIMAL(9,3),
"EVALUATIVEVALUE" DECIMAL(14,4),
"PRODUCTPLACE" VARCHAR(200),
"PLACE" VARCHAR(200),
"TYPE" VARCHAR(60),
"UNIT" VARCHAR(40),
"TITLEDEEDID" VARCHAR(40),
"OWNEXPIREDATE" TIMESTAMP(0),
"MANAGELIMIT" VARCHAR(60),
"ISLIMIT" VARCHAR(1),
"BILLNO" VARCHAR(200),
"BILLNUM" DECIMAL(9,2),
"NOTE" VARCHAR(400),
"COINTYPE" VARCHAR(200),
"NEWEVALUATIVEVALUE" DECIMAL(14,4),
"PAWNID" VARCHAR(200),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("DEVICEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSEALEDREGISTER"
(
"SEALEDID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"DOCUMENTNO" VARCHAR(128),
"COURT" VARCHAR(200),
"SEALEDDATE" TIMESTAMP(0),
"REASON" VARCHAR(400),
"PUTONRECORDS" VARCHAR(200),
"CLERK" VARCHAR(60),
"RECORDER" VARCHAR(60),
"RECORDDATE" TIMESTAMP(0),
"CORPNAME" VARCHAR(200),
"REGISTERID" VARCHAR(52),
"RESULT" VARCHAR(400),
"COMMENT" VARCHAR(400),
"UNSEALEDDATE" TIMESTAMP(0),
"AICID" VARCHAR(18),
"ADDRESS" VARCHAR(100),
"POSTCODE" VARCHAR(6),
"PHONE" VARCHAR(40),
"REGCAPITAL" DECIMAL(16,4),
"PRINCIPAL" VARCHAR(60),
"SEALEDEQUIPMENT" VARCHAR(510),
"SEALEDPRICE" DECIMAL(16,4),
"SEALEDCOINTYPE" VARCHAR(10),
"SEALEDVALUEINRMB" DECIMAL(16,4),
"ISGOREGISTER" VARCHAR(1),
"RECEIPTDATE" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("SEALEDID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSELFHELPUSER"
(
"SHUSERID" VARCHAR(36) NOT NULL,
"SHCERNO" VARCHAR(18),
"SHNAME" VARCHAR(100),
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("SHUSERID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSELFMACHINEINFO"
(
"SMACPK" VARCHAR(72) NOT NULL,
"MACIP" VARCHAR(30),
"REGIONID" VARCHAR(18),
NOT CLUSTER PRIMARY KEY("SMACPK")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSERILLEGALLIST"
(
"ILLEGALLISTID" VARCHAR(46) NOT NULL,
"BIZSEQ" VARCHAR(36),
"ABNLISTID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"SERILLREA" VARCHAR(8),
"ABNTIME" DATE,
"REMEXCPRES" VARCHAR(4),
"REMDATE" DATE,
"DECORG" VARCHAR(18),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"LOSTCREDITEXPLAIN" VARCHAR(2000),
"LOSTCREDITEXPLAINREM" VARCHAR(2000),
"RECONSIDERATIONORG" VARCHAR(100),
"GOVERNMENTORG" VARCHAR(100),
"LITIORG" VARCHAR(100),
"INTOSPONSORILLEGAL" VARCHAR(100),
"REMSPONSORILLEGAL" VARCHAR(100),
"BATCHANDCASE" VARCHAR(16),
"OPERATIONSTATUS" VARCHAR(16),
"UNISCID" VARCHAR(36),
"REMDECORG" VARCHAR(72),
"INTOWRITID" VARCHAR(92),
"REMWRITID" VARCHAR(72),
"INTOSPONSORILLEGALID" VARCHAR(72),
"YCBIZSEQ" VARCHAR(72),
"DECORGCN" VARCHAR(510),
"REMDECORGCN" VARCHAR(510),
"ISREV" VARCHAR(2),
"REVOP" VARCHAR(2000),
"ISHEA" VARCHAR(2),
"HEAOP" VARCHAR(2000),
"JUDDOCTITLE" VARCHAR(200),
"JUDDOCNO" VARCHAR(200),
"ISSHOW" VARCHAR(1),
"LEREP" VARCHAR(200),
"CERTYPE" VARCHAR(200),
"CERNO" VARCHAR(200),
"SOURCETYPE" VARCHAR(20),
"UPDATE_TIME" TIMESTAMP(6),
NOT CLUSTER PRIMARY KEY("ILLEGALLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."ABNLISTID" IS '经营异常名录ID';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."BATCHANDCASE" IS '批量与个案标识';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."BIZSEQ" IS '列入严重违法企业名单业务号';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."DECORG" IS '列入决定机关';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."ENTNAME" IS '主体名称';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."GOVERNMENTORG" IS '人民政府';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."HEAOP" IS '当事人听证中提出的主要意见';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."ILLEGALLISTID" IS '严重违法企业名单ID';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."INTOSPONSORILLEGAL" IS '列入主办人';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."INTOWRITID" IS '列入文书id';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."ISHEA" IS '是否经过听证程序(1是0否)';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."ISREV" IS '是否经过异议(1是0否)';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."JUDDOCNO" IS '作出判决的人民法院司法文书文号';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."JUDDOCTITLE" IS '作出判决的人民法院司法文书标题';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."LITIORG" IS '诉讼机关';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."LOSTCREDITEXPLAIN" IS '列入事实和法律依据';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."LOSTCREDITEXPLAINREM" IS '移出事实和法律依据';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."OPERATIONSTATUS" IS '操作状态操作状态（0列入，1已修复，2移出, 3撤销）';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."RECONSIDERATIONORG" IS '
行政复议机关';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."REMDATE" IS '移出日期';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."REMDECORG" IS '移除决定机关';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."REMEXCPRES" IS '移出严重违法企业名单原因（国标：CD74）';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."REMSPONSORILLEGAL" IS '列出主办人';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."REMWRITID" IS '移除文书id';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."REVOP" IS '当事人异议主要意见';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."SERILLREA" IS '列入严重违法企业名单原因（国标：CD73）';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."SOURCETYPE" IS '数据来源，1：总局迁入';
COMMENT ON COLUMN "AICCS"."TSSERILLEGALLIST"."UNISCID" IS '统一社会信用代码';

CREATE OR REPLACE  INDEX "AICCS"."IDX_ABNTIME_TSSERILLEGALLIST_INDEX" ON "AICCS"."TSSERILLEGALLIST"("ABNTIME" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_TSSERILLEGALLIST_PRIPID" ON "AICCS"."TSSERILLEGALLIST"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_BIZSEQ_TSSERILLEGALLIST_INDEX" ON "AICCS"."TSSERILLEGALLIST"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."IDX_REMDATE_TSSERILLEGALLIST_INDEX" ON "AICCS"."TSSERILLEGALLIST"("REMDATE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSPEINSPLAN"
(
"PLANID" VARCHAR(36) NOT NULL,
"SPEINSNAME" VARCHAR(160),
"SPEINSITEM" VARCHAR(200),
"SPEINSBASIS" VARCHAR(1000),
"SPEINSNO" VARCHAR(100),
"STADATE" DATE,
"ENDDATE" DATE,
"TASKREQ" VARCHAR(1000),
"ESTAUTHID" VARCHAR(36),
"ESTAUTH" VARCHAR(200),
"RELEASERID" VARCHAR(36),
"RELEASERNAME" VARCHAR(60),
"STATUS" VARCHAR(2),
"APPID" VARCHAR(72),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PLANID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSTEPDEF"
(
"STEPID" VARCHAR(72) NOT NULL,
"PARENTID" VARCHAR(72) NOT NULL,
"STEPNO" VARCHAR(40),
"STEPCODE" VARCHAR(40),
"STEPNAME" VARCHAR(200) NOT NULL,
"STEPLEVEL" DECIMAL(2,0) NOT NULL,
"STEPFLAG" VARCHAR(40),
"REMARK" VARCHAR(2000),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("STEPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSUEINSPECT"
(
"ID" VARCHAR(72) NOT NULL,
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(100),
"USCC" VARCHAR(100),
"ENTNAME" VARCHAR(500),
"LEGALNAME" VARCHAR(500),
"INSPECTORG" VARCHAR(100),
"INSPECTORGNAME" VARCHAR(510),
"INSPECTTYPE" VARCHAR(100),
"INSPECTRESULT" VARCHAR(2000),
"INSPECTDATE" TIMESTAMP(0),
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
"DOM" VARCHAR(500),
"CORRECTWRITENO" VARCHAR(500),
"CORRECTDATE" TIMESTAMP(0),
"STATUS" VARCHAR(2) DEFAULT '0',
"INSPECTORID" VARCHAR(100),
"INSPECTOR" VARCHAR(500),
"HELPER" VARCHAR(500),
"RECTDATE" VARCHAR(510),
"BACKOPINION" VARCHAR(500),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSSUEINSPECT" IS '应诉检查信息';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."BACKOPINION" IS '回退处理意见';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."CORRECTDATE" IS '责令改正期限';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."CORRECTWRITENO" IS '《责令限期履行公示义务通知书》文号';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."CREATE_TIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."DOM" IS '经营地址';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."HELPER" IS '协查人';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."ID" IS '主键id';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."INSPECTDATE" IS '检查日期';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."INSPECTOR" IS '检查人';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."INSPECTORG" IS '检查实施机关';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."INSPECTORGNAME" IS '检查实施机关中文';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."INSPECTORID" IS '检查人Id';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."INSPECTRESULT" IS '检查结果';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."INSPECTTYPE" IS '检查方式';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."LEGALNAME" IS '法人名称';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."PRIPID" IS '企业主键';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."RECTDATE" IS '整改时间';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."STATUS" IS '状态（0-待检查， 1-已检查）';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."UPDATE_TIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."TSSUEINSPECT"."USCC" IS '统一社会信用代码';


CREATE TABLE "AICCS"."TSSUPENTADDR"
(
"ENTBASEADDRID" VARCHAR(72) NOT NULL,
"PRIPID" VARCHAR(72),
"ADDRESS" VARCHAR(400),
"ADDRTYPE" VARCHAR(1),
"AREAID" VARCHAR(36),
"AREANAME" VARCHAR(200),
"MARKETID" VARCHAR(36),
"MARKETNAME" VARCHAR(200),
"LOCALADM" VARCHAR(18),
"LASTINSPECTDATE" DATE,
"INSSTARTDATE" DATE,
"INSENDDATE" DATE,
"REALBUSINESS" VARCHAR(6000),
"FOUNDPROB" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ISVALID" VARCHAR(1) DEFAULT '0',
NOT CLUSTER PRIMARY KEY("ENTBASEADDRID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSSUPENTADDR" IS '监管主体住址/经营场所';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."ADDRESS" IS '地址';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."ADDRTYPE" IS '地址类型';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."AREAID" IS '所属片区';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."AREANAME" IS '所属片区名称';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."ENTBASEADDRID" IS '主体地址/经营场所';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."FOUNDPROB" IS '检查发现问题（1：是/2：否）';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."INSENDDATE" IS '检查结束时间';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."INSSTARTDATE" IS '检查开始时间';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."ISVALID" IS '标识经营场所是否有效';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."LASTINSPECTDATE" IS '最近检查时间';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."LOCALADM" IS '属地监管工商所编码';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."MARKETID" IS '所属市场ID';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."MARKETNAME" IS '所属市场名称';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TSSUPENTADDR"."REALBUSINESS" IS '实际经营范围';

CREATE OR REPLACE  INDEX "AICCS"."TSSUPENTADDR_PRIPID_IDX" ON "AICCS"."TSSUPENTADDR"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSUPENTBASE"
(
"PRIPID" VARCHAR(72) NOT NULL,
"INSOBJTYPE" VARCHAR(9),
"INSOBJTYPENAME" VARCHAR(40),
"CLAIMDATE" DATE,
"INDUSTRYTYPE" VARCHAR(1),
"IMPORTANTAREA" VARCHAR(1),
"STATUS" VARCHAR(1) DEFAULT '0' NOT NULL,
"LEVELTYPE" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PRIPID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSSUPENTBASE" IS '监管主体基本信息表';
COMMENT ON COLUMN "AICCS"."TSSUPENTBASE"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSSUPENTBASE"."CLAIMDATE" IS '认领时间';
COMMENT ON COLUMN "AICCS"."TSSUPENTBASE"."IMPORTANTAREA" IS '重点区域（1：是；0：否）';
COMMENT ON COLUMN "AICCS"."TSSUPENTBASE"."INDUSTRYTYPE" IS '重点/风险行业类别';
COMMENT ON COLUMN "AICCS"."TSSUPENTBASE"."INSOBJTYPE" IS '监管对象类型';
COMMENT ON COLUMN "AICCS"."TSSUPENTBASE"."INSOBJTYPENAME" IS '监管对象类型名称';
COMMENT ON COLUMN "AICCS"."TSSUPENTBASE"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSSUPENTBASE"."LEVELTYPE" IS '信用等级';
COMMENT ON COLUMN "AICCS"."TSSUPENTBASE"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."TSSUPENTBASE"."STATUS" IS '主体监管状态';


CREATE TABLE "AICCS"."TSSUPERVISIONLOG"
(
"LOGID" VARCHAR(36) NOT NULL,
"PRIPID" VARCHAR(36),
"FILEDSNAME" VARCHAR(100),
"FILEDSCNNAME" VARCHAR(100),
"OLDVALUE" VARCHAR(1000),
"NEWVALUE" VARCHAR(1000),
"SETUPUSERID" VARCHAR(36),
"SETUPUSERNAME" VARCHAR(200),
"SETUPTIME" DATE,
"CHANGETYPE" VARCHAR(1),
"LOGTYPE" VARCHAR(2),
"FILEGIST" VARCHAR(200),
"FILENO" VARCHAR(100),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("LOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSUPERVISIONMEASURE"
(
"SUPMEASUREID" VARCHAR(36) NOT NULL,
"SUPMEASURECODE" VARCHAR(2) NOT NULL,
"SUPMEASURENAME" VARCHAR(200) NOT NULL,
"CLASSA" VARCHAR(1),
"CLASSB" VARCHAR(1),
"CLASSC" VARCHAR(1),
"CLASSD" VARCHAR(1),
"CLASSFIRST" VARCHAR(1),
"CLASSSECOND" VARCHAR(1),
"IMPORTANTAREA" VARCHAR(1),
"IMPORTANTINDUSTRY" VARCHAR(1),
"ENTERPRISE" VARCHAR(1),
"INDIVIDUAL" VARCHAR(1),
"NOLICENSE" VARCHAR(1),
"ISVALID" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("SUPMEASUREID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSUPERVISIONTASK"
(
"TASKID" VARCHAR(36) NOT NULL,
"TASKNO" VARCHAR(100),
"TASKNAME" VARCHAR(200),
"TASKCONTENT" VARCHAR(800),
"REMARK" VARCHAR(1000),
"CREDATE" DATE,
"CONSTITUTORID" VARCHAR(36),
"CONSTITUTOR" VARCHAR(40),
"PUBLISHERID" VARCHAR(36),
"PUBLISHER" VARCHAR(40),
"AICID" VARCHAR(12),
"AICNAME" VARCHAR(200),
"PUBLISHDATE" DATE,
"COMPLETEDATE" DATE,
"STATUS" VARCHAR(1),
"TASKTYPE" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("TASKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSUPOBJECTSTAT"
(
"PKID" VARCHAR(36) NOT NULL,
"OBJTYPENO" VARCHAR(9),
"PROVINCEID" VARCHAR(18),
"PROVINCENAME" VARCHAR(200),
"CITYID" VARCHAR(18),
"CITYNAME" VARCHAR(200),
"COUNTYID" VARCHAR(18),
"COUNTYNAME" VARCHAR(200),
"TOWNID" VARCHAR(18),
"TOWNNAME" VARCHAR(200),
"AREANAME" VARCHAR(200),
"GROUPNAME" VARCHAR(100),
"CLASSTYPE" VARCHAR(4),
"RISKINDUSTRY" VARCHAR(200),
"SUMOFOBJNUM" INT,
"ENTERPRISENUM" INT,
"INDIVIDUALNUM" INT,
"REPORTTYPE" INT,
"AREANO" VARCHAR(36),
"GROUPNO" VARCHAR(36),
"PERILIMPORTINDUSTRYID" VARCHAR(36),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("PKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSUPTASKSTATUS"
(
"TASKRECEIVEID" VARCHAR(36) NOT NULL,
"TASKID" VARCHAR(36),
"RECEIVEERID" VARCHAR(72),
"RECEIVEER" VARCHAR(40),
"REGION" VARCHAR(18),
"ORGNAME" VARCHAR(200),
"PUBLISHERDATE" DATE,
"CLAIMSTATUS" VARCHAR(1),
"TYPES" VARCHAR(1),
"PARENTREGION" VARCHAR(18),
"ISFINISHED" VARCHAR(1),
"OVERTIME" DATE,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("TASKRECEIVEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSSYSTEMOPLOG"
(
"SYSTEMOPLOGID" VARCHAR(36) NOT NULL,
"TASKLISTID" VARCHAR(36),
"PRIPID" VARCHAR(36),
"OPERATORID" VARCHAR(72),
"OPERATOR" VARCHAR(100),
"OPERATETIME" TIMESTAMP(0),
"LOGNAME" VARCHAR(200),
"LOGCONTENT" VARCHAR(4000) NOT NULL,
"REMARK" VARCHAR(2000),
"LOGTYPE" VARCHAR(4),
"IPADDR" VARCHAR(100),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(18) DEFAULT '440100',
NOT CLUSTER PRIMARY KEY("SYSTEMOPLOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSTARGET"
(
"TARGETID" VARCHAR(72) NOT NULL,
"PRINCIPALID" VARCHAR(72),
"BIZSEQID" VARCHAR(72),
"RESULTID" VARCHAR(72),
"CATETORY" VARCHAR(200),
"NAME" VARCHAR(400),
"DRAFTAUCTIONPRICE" DECIMAL(18,6),
"ISCULTURERELIC" VARCHAR(1),
"CULTURERELICDESC" VARCHAR(400),
"ISNATIONALASSET" VARCHAR(1),
"NATIONALASSETDESC" VARCHAR(400),
"SHOWDATETIMEBEGIN" TIMESTAMP(0),
"SHOWDATETIMEEND" TIMESTAMP(0),
"SHOWTIME" VARCHAR(22),
"AUCTIONEERNAME" VARCHAR(40),
"AUCTIONEERLICENSENUMBER" VARCHAR(100),
"DESCRIPTION" VARCHAR(400),
"HOUSE_ID" VARCHAR(72),
"AUCTIONEERID" VARCHAR(72),
"SHOWLOCATION" VARCHAR(300),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("TARGETID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSTARGET" IS '标的';
COMMENT ON COLUMN "AICCS"."TSTARGET"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSTARGET"."AUCTIONEERID" IS '拍卖师id';
COMMENT ON COLUMN "AICCS"."TSTARGET"."AUCTIONEERLICENSENUMBER" IS '拍卖师证书号';
COMMENT ON COLUMN "AICCS"."TSTARGET"."AUCTIONEERNAME" IS '拍卖师名字';
COMMENT ON COLUMN "AICCS"."TSTARGET"."BIZSEQID" IS '拍前ID';
COMMENT ON COLUMN "AICCS"."TSTARGET"."CATETORY" IS '分类';
COMMENT ON COLUMN "AICCS"."TSTARGET"."CULTURERELICDESC" IS '文物文号';
COMMENT ON COLUMN "AICCS"."TSTARGET"."DESCRIPTION" IS '标的描述';
COMMENT ON COLUMN "AICCS"."TSTARGET"."DRAFTAUCTIONPRICE" IS '拟拍价';
COMMENT ON COLUMN "AICCS"."TSTARGET"."HOUSE_ID" IS '拍卖主体id';
COMMENT ON COLUMN "AICCS"."TSTARGET"."ISCULTURERELIC" IS '是否文物（y是 n不是）';
COMMENT ON COLUMN "AICCS"."TSTARGET"."ISNATIONALASSET" IS '是否国有资产 （y是 n不是）';
COMMENT ON COLUMN "AICCS"."TSTARGET"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSTARGET"."NAME" IS '标的名称';
COMMENT ON COLUMN "AICCS"."TSTARGET"."NATIONALASSETDESC" IS '国有资产文号';
COMMENT ON COLUMN "AICCS"."TSTARGET"."PRINCIPALID" IS '委托人ID';
COMMENT ON COLUMN "AICCS"."TSTARGET"."RESULTID" IS '拍卖结果主键';
COMMENT ON COLUMN "AICCS"."TSTARGET"."SHOWDATETIMEBEGIN" IS '标的展示开始日期';
COMMENT ON COLUMN "AICCS"."TSTARGET"."SHOWDATETIMEEND" IS '标的展示结束日期';
COMMENT ON COLUMN "AICCS"."TSTARGET"."SHOWLOCATION" IS '展示地点';
COMMENT ON COLUMN "AICCS"."TSTARGET"."SHOWTIME" IS '标的展示时间';
COMMENT ON COLUMN "AICCS"."TSTARGET"."TARGETID" IS '标的ID';

CREATE OR REPLACE  INDEX "AICCS"."TSTARGET_RESULT_ID_IDX" ON "AICCS"."TSTARGET"("RESULTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSTARGET_PRINCIPALID_IDX" ON "AICCS"."TSTARGET"("PRINCIPALID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSTARGET_BIZSEQID_IDX" ON "AICCS"."TSTARGET"("BIZSEQID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSTARGET_CATETORY_IDX" ON "AICCS"."TSTARGET"("CATETORY" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSTASKLIST"
(
"TASKLISTID" VARCHAR(72) NOT NULL,
"WORKFLOWID" VARCHAR(72),
"BIZSEQID" VARCHAR(72),
"SIGNUSERID" VARCHAR(72),
"SENDERORGID" VARCHAR(72),
"SENDERUSERID" VARCHAR(72),
"SENDTOORGID" VARCHAR(72),
"ACCEPTNO" VARCHAR(34),
"BUSNAME" VARCHAR(400),
"SIGNTIME" TIMESTAMP(0),
"BUSTYPE" VARCHAR(4),
"BUSSTATUS" VARCHAR(8),
"LINKNAME" VARCHAR(100),
"AUDITDEPTTYPE" VARCHAR(4),
"ISSIGNON" VARCHAR(1),
"SIGNLOGINNAME" VARCHAR(120),
"SENDERTIME" TIMESTAMP(0),
"SENDERNAME" VARCHAR(60),
"ACCEPTGROUPID" VARCHAR(510),
"AREA_CODE" VARCHAR(10) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"CREATEUSERID" VARCHAR(72),
"CREATEUSERNAME" VARCHAR(60),
"CREATETIME" TIMESTAMP(0),
"ISDEADLINE" VARCHAR(1),
"REMARKS" VARCHAR(510),
"ISBACK" VARCHAR(1),
"DEADLINEDATE" TIMESTAMP(0),
"IS_SMART_PROCESSING" VARCHAR(1),
"ORIGIN" CHAR(1),
NOT CLUSTER PRIMARY KEY("TASKLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSTASKLIST" IS '待办列表';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."ACCEPTGROUPID" IS '接受组';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."ACCEPTNO" IS '受理号';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."AUDITDEPTTYPE" IS '当前审核部门';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."BIZSEQID" IS '业务主键';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."BUSNAME" IS '业务名称';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."BUSSTATUS" IS '业务状态';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."BUSTYPE" IS '业务类型';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."CREATEUSERID" IS '创建者id';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."CREATEUSERNAME" IS '创建者名字';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."DEADLINEDATE" IS '工作时限时间';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."IS_SMART_PROCESSING" IS '是否智能办理（0否1是）';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."ISBACK" IS '是否回退，1：是，0：否';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."ISDEADLINE" IS '是否超过工作时限’1‘是’0‘否';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."ISSIGNON" IS '是否签收';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."LINKNAME" IS '流程名称';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."ORIGIN" IS '数据来源';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."REMARKS" IS '备注';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."SENDERNAME" IS '发送者中文名';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."SENDERORGID" IS '发送机构ID';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."SENDERTIME" IS '发送时间';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."SENDERUSERID" IS '发送者ID';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."SENDTOORGID" IS '发送到达机构ID';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."SIGNLOGINNAME" IS '签收者登入名';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."SIGNTIME" IS '签收/受理时间';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."SIGNUSERID" IS '签收者ID';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."TASKLISTID" IS '待办主键';
COMMENT ON COLUMN "AICCS"."TSTASKLIST"."WORKFLOWID" IS '流程主键';

CREATE OR REPLACE  INDEX "AICCS"."TSTASKLIST_WORKFLOWID_IDX" ON "AICCS"."TSTASKLIST"("WORKFLOWID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSTASKLIST_SIGNUSERID_IDX" ON "AICCS"."TSTASKLIST"("SIGNUSERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSTASKLIST_SENDERORGID_IDX" ON "AICCS"."TSTASKLIST"("SENDERORGID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSTASKLIST_SENDTOORGID_IDX" ON "AICCS"."TSTASKLIST"("SENDTOORGID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSTASKLIST_SENDERUSERID_IDX" ON "AICCS"."TSTASKLIST"("SENDERUSERID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSTASKLIST_BUSSTATUS_IDX" ON "AICCS"."TSTASKLIST"("BUSSTATUS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSTASKLIST_BIZSEQID_IDX" ON "AICCS"."TSTASKLIST"("BIZSEQID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSTASKLIST_BUSTYPE_IDX" ON "AICCS"."TSTASKLIST"("BUSTYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSTEAMABNLIST"
(
"TEAMABNLISTID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"GROUPID" VARCHAR(72),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6),
NOT CLUSTER PRIMARY KEY("TEAMABNLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSTEAMABNLIST" IS '异常名录中间表';
COMMENT ON COLUMN "AICCS"."TSTEAMABNLIST"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSTEAMABNLIST"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSTEAMABNLIST"."GROUPID" IS '异常名录小组ID';
COMMENT ON COLUMN "AICCS"."TSTEAMABNLIST"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSTEAMABNLIST"."TEAMABNLISTID" IS '异常名录中间表ID';

CREATE OR REPLACE  INDEX "AICCS"."TSTEAMABNLIST_GROUPID_IDX" ON "AICCS"."TSTEAMABNLIST"("GROUPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSTEAMABNLIST_BIZSEQ_IDX" ON "AICCS"."TSTEAMABNLIST"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSTEMPLATEITEM"
(
"ITEMID" VARCHAR(36) NOT NULL,
"ITEMNAME" VARCHAR(200),
"MODELID" VARCHAR(36),
"ITEMDATATYPE" VARCHAR(1),
"CUSTOMINDEX" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"ITEMLENGTH" VARCHAR(20),
NOT CLUSTER PRIMARY KEY("ITEMID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSTEMPLATEMODEL"
(
"MODELID" VARCHAR(36) NOT NULL,
"MODELNAME" VARCHAR(200),
"CATEGORY" VARCHAR(200),
"CREATETIME" DATE,
"MODELTYPE" VARCHAR(2),
"STATUS" VARCHAR(2),
"CREATORID" VARCHAR(36),
"CREATORNAME" VARCHAR(60),
"ORGID" VARCHAR(36),
"ORGNAME" VARCHAR(200),
"DEPTID" VARCHAR(36),
"VERSION" INT,
"ISSHARE" VARCHAR(1),
"ISDEL" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("MODELID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSTWFPROCESS"
(
"PROCESSID" VARCHAR(72) NOT NULL,
"PARENTPROCESSID" VARCHAR(72),
"COMPLETEDON" TIMESTAMP(0),
"CREATEDON" TIMESTAMP(0),
"STATUS" INT,
"OPTLOCK" INT,
"DEFNAME" VARCHAR(100),
"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 "AICCS"."TSTWFPROCESS" IS '流程实例';
COMMENT ON COLUMN "AICCS"."TSTWFPROCESS"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSTWFPROCESS"."COMPLETEDON" IS '完成时间';
COMMENT ON COLUMN "AICCS"."TSTWFPROCESS"."CREATEDON" IS '启动时间';
COMMENT ON COLUMN "AICCS"."TSTWFPROCESS"."DEFNAME" IS '流程名';
COMMENT ON COLUMN "AICCS"."TSTWFPROCESS"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSTWFPROCESS"."OPTLOCK" IS '版本标识';
COMMENT ON COLUMN "AICCS"."TSTWFPROCESS"."PARENTPROCESSID" IS ' 父实例ID';
COMMENT ON COLUMN "AICCS"."TSTWFPROCESS"."PROCESSID" IS '主键';
COMMENT ON COLUMN "AICCS"."TSTWFPROCESS"."STATUS" IS '状态';

CREATE OR REPLACE  INDEX "AICCS"."TSTWFPROCESS_PARENTPROCESSID_IDX" ON "AICCS"."TSTWFPROCESS"("PARENTPROCESSID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


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

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

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


CREATE TABLE "AICCS"."TSTWFTASK"
(
"TASKID" VARCHAR(72) NOT NULL,
"PROCESSID" VARCHAR(72),
"STATUS" INT,
"COMPLETEDON" TIMESTAMP(0),
"CREATEDON" TIMESTAMP(0),
"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 "AICCS"."TSTWFTASK" IS '工作流任务表';
COMMENT ON COLUMN "AICCS"."TSTWFTASK"."ACTUALOWNERID" IS '签收者ID';
COMMENT ON COLUMN "AICCS"."TSTWFTASK"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSTWFTASK"."COMPLETEDON" IS '完成时间';
COMMENT ON COLUMN "AICCS"."TSTWFTASK"."CREATEDBYID" IS '创建者ID';
COMMENT ON COLUMN "AICCS"."TSTWFTASK"."CREATEDON" IS '创建时间';
COMMENT ON COLUMN "AICCS"."TSTWFTASK"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSTWFTASK"."OPTLOCK" IS '版本标识';
COMMENT ON COLUMN "AICCS"."TSTWFTASK"."PROCESSID" IS '主键';
COMMENT ON COLUMN "AICCS"."TSTWFTASK"."STATUS" IS '状态';
COMMENT ON COLUMN "AICCS"."TSTWFTASK"."TASKID" IS '主键';

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


CREATE TABLE "AICCS"."TSUNRECORDAUCTION"
(
"UAUCTIONID" VARCHAR(36) NOT NULL,
"UENTITYREGNO" VARCHAR(60),
"UENTITYCORPNAME" VARCHAR(1000),
"UINDUSTRYTYPE" VARCHAR(1),
"UENTITYTYPEID" VARCHAR(12),
"UAUCTIONNAME" VARCHAR(200),
"UAUCTIONADDRESS" VARCHAR(200),
"UAUCTIONDATE" TIMESTAMP(0),
"UAUCTIONEER" VARCHAR(100),
"UAUCTIONEERCERTID" VARCHAR(48),
"UPUBLICDATE" TIMESTAMP(0),
"UPUBLICMEDIUM" VARCHAR(120),
"UITEMSHOWSTARTDATE" TIMESTAMP(0),
"UITEMSHOWENDDATE" TIMESTAMP(0),
"UITEMSHOWADDRESS" VARCHAR(200),
"UAUCTIONPERIODNO" VARCHAR(20),
"UCONTRACTNUM" DECIMAL(3,0),
"UCONTRACTSUM" DECIMAL(16,4),
"USUCCEEDCONTRACTNUM" DECIMAL(3,0),
"USUCCEEDCONTRACTSUM" DECIMAL(16,4),
"URECORDDATE" TIMESTAMP(0),
"URECORDPERSON" VARCHAR(100),
"UPERSONORG" VARCHAR(100),
"MATTER" VARCHAR(400),
"PHONE" VARCHAR(200),
"BIZSEQID" VARCHAR(72),
"LAYOUTNAME" VARCHAR(200),
"SCANNED" VARCHAR(400),
"ISLOCAL" VARCHAR(1),
"HOUSE_ID" VARCHAR(510),
"CREATED_DATE" TIMESTAMP(0),
"STATUS" VARCHAR(1),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400',
NOT CLUSTER PRIMARY KEY("UAUCTIONID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSUSUALINSPECT"
(
"ID" VARCHAR(72) NOT NULL,
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(100),
"USCC" VARCHAR(100),
"ENTNAME" VARCHAR(500),
"LEGALNAME" VARCHAR(500),
"DOM" VARCHAR(1000),
"CONTACTS" VARCHAR(500),
"CONTACTPHONE" VARCHAR(500),
"MOBILEPHONE" VARCHAR(500),
"SCOPE" VARCHAR(4000),
"ACTUALSCOPE" VARCHAR(500),
"REMARKS" VARCHAR(500),
"AREA" DECIMAL(9,3),
"BUSMODE" VARCHAR(500),
"INSPECTTYPE" VARCHAR(500),
"INSPECTCONTENT" VARCHAR(2000),
"INSPECTRESULT" VARCHAR(500),
"OPINION" VARCHAR(500),
"INSPECTOR" VARCHAR(500),
"HELPER" VARCHAR(500),
"INSPECTEXPIREDATE" TIMESTAMP(0),
"INSPECTDATE" TIMESTAMP(0),
"INSPECTORG" VARCHAR(500),
"INSPECTORGNAME" VARCHAR(510),
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
"STATUS" VARCHAR(2) DEFAULT '0',
"INSPECTORID" VARCHAR(100),
"SOURCE" VARCHAR(100),
"BACKOPINION" VARCHAR(500),
"BACKINSPECTTYPE" VARCHAR(20),
"INSPECTSTARTDATE" DATE,
"BIZSEQ" VARCHAR(72),
"BUSTYPE" VARCHAR(2) DEFAULT '1',
"SOURCEID" VARCHAR(72),
"SOURCEINSPECTID" VARCHAR(72),
"SOURCEINSPECTRESULT" VARCHAR(100),
"CHECK_ADDRESS" VARCHAR(1000),
"IS_COMPLAINED" VARCHAR(2) DEFAULT '0',
"XYXFBIZSEQ" VARCHAR(50),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSUSUALINSPECT" IS '日常检查信息';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."ACTUALSCOPE" IS '实际经营项目';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."AREA" IS '实际经营项目面积';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."BACKINSPECTTYPE" IS '回退检查类型';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."BACKOPINION" IS '回退处理意见';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."BIZSEQ" IS '业务主键';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."BUSMODE" IS '经营方式';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."BUSTYPE" IS '业务类型 1-单独检查 2-批量检查';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."CHECK_ADDRESS" IS '同一地址的基准地址';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."CONTACTPHONE" IS '联系电话';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."CONTACTS" IS '联系人';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."CREATE_TIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."DOM" IS '地址';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."HELPER" IS '协查人';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."ID" IS '主键id';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."INSPECTCONTENT" IS '检查内容';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."INSPECTDATE" IS '检查日期';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."INSPECTEXPIREDATE" IS '检查到期时间';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."INSPECTOR" IS '检查人';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."INSPECTORG" IS '检查机关ID';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."INSPECTORGNAME" IS '检查机关中文';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."INSPECTORID" IS '检查人Id';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."INSPECTRESULT" IS '检查结果';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."INSPECTSTARTDATE" IS '检查开始日期';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."INSPECTTYPE" IS '检查类型';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."IS_COMPLAINED" IS '是否被投诉（番禺）';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."LEGALNAME" IS '法人名称';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."MOBILEPHONE" IS '手机号码';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."OPINION" IS '处理意见';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."PRIPID" IS '企业主键';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."REMARKS" IS '实际经营项目备注';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."SCOPE" IS '经营范围';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."SOURCE" IS '来源';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."SOURCEID" IS '来源id';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."SOURCEINSPECTID" IS '源监管Id';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."SOURCEINSPECTRESULT" IS '源检查结果';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."STATUS" IS '状态（0-待检查， 1-已检查）';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."UPDATE_TIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECT"."USCC" IS '统一社会信用代码';


CREATE TABLE "AICCS"."TSUSUALINSPECTENTLIST"
(
"ID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PRIPID" VARCHAR(72),
"USCC" VARCHAR(100),
"ENTNAME" VARCHAR(500),
"LEGALNAME" VARCHAR(500),
"REGSTATECN" VARCHAR(1000),
"REGORGCN" VARCHAR(1000),
"SUPORGCN" VARCHAR(1000),
"DOM" VARCHAR(1000),
"CREATE_BY" VARCHAR(72),
"CREATE_TIME" TIMESTAMP(0),
"UPDATE_BY" VARCHAR(72),
"UPDATE_TIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSUSUALINSPECTENTLIST" IS '现场核查企业列表';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."BIZSEQ" IS '业务主键';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."CREATE_BY" IS '创建人';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."CREATE_TIME" IS '创建时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."DOM" IS '住所';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."ENTNAME" IS '企业名称';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."ID" IS 'id';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."LEGALNAME" IS '法人名称';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."PRIPID" IS '企业主键';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."REGORGCN" IS '登记机关（中文名称）';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."REGSTATECN" IS '登记状态（中文名称）';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."SUPORGCN" IS '监管机关（中文名称）';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."UPDATE_BY" IS '更新人';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."UPDATE_TIME" IS '更新时间 yyyy-MM-dd HH:mm:ss';
COMMENT ON COLUMN "AICCS"."TSUSUALINSPECTENTLIST"."USCC" IS '统一社会信用代码';


CREATE TABLE "AICCS"."TSWFTREEINFO"
(
"TREEINFOID" VARCHAR(72) NOT NULL,
"AUDITINGID" VARCHAR(72),
"BIZSEQID" VARCHAR(72) NOT NULL,
"WFCODE" VARCHAR(200),
"WFNAME" VARCHAR(100),
"EXCUTETIME" DATE,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
NOT CLUSTER PRIMARY KEY("TREEINFOID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSWFTREEINFO" IS '用于显示流程树的表';
COMMENT ON COLUMN "AICCS"."TSWFTREEINFO"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSWFTREEINFO"."AUDITINGID" IS '审批表编号';
COMMENT ON COLUMN "AICCS"."TSWFTREEINFO"."BIZSEQID" IS '所关联的主业务编号';
COMMENT ON COLUMN "AICCS"."TSWFTREEINFO"."EXCUTETIME" IS '插入时间';
COMMENT ON COLUMN "AICCS"."TSWFTREEINFO"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSWFTREEINFO"."TREEINFOID" IS '编号';
COMMENT ON COLUMN "AICCS"."TSWFTREEINFO"."WFCODE" IS '流程树中的节点编号';
COMMENT ON COLUMN "AICCS"."TSWFTREEINFO"."WFNAME" IS '所属流程业务名称';

CREATE OR REPLACE  INDEX "AICCS"."TSWFTREEINFO_AUDITINGID_IDX" ON "AICCS"."TSWFTREEINFO"("AUDITINGID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSWFTREEINFO_BIZSEQID_IDX" ON "AICCS"."TSWFTREEINFO"("BIZSEQID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSWFTREEINFO_WFCODE_IDX" ON "AICCS"."TSWFTREEINFO"("WFCODE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSWORKNO"
(
"WORKNOID" VARCHAR(36) NOT NULL,
"AICID" VARCHAR(18),
"ORGID" VARCHAR(36),
"DEPTID" VARCHAR(36),
"SHORTNAME" VARCHAR(40),
"CURRENTNO" INT,
"YEARS" INT,
"WORKNOTYPE" VARCHAR(2),
"TYPECOMMENT" VARCHAR(80),
"GENRULE" VARCHAR(200),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("WORKNOID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSWORKNO" IS '系统当前已使用监管文书流水号';
COMMENT ON COLUMN "AICCS"."TSWORKNO"."AICID" IS '机构编码';
COMMENT ON COLUMN "AICCS"."TSWORKNO"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSWORKNO"."CURRENTNO" IS '系统当前已用流水号';
COMMENT ON COLUMN "AICCS"."TSWORKNO"."DEPTID" IS '部门ID';
COMMENT ON COLUMN "AICCS"."TSWORKNO"."GENRULE" IS '产生规则';
COMMENT ON COLUMN "AICCS"."TSWORKNO"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSWORKNO"."ORGID" IS '机构ID';
COMMENT ON COLUMN "AICCS"."TSWORKNO"."SHORTNAME" IS '机构简称';
COMMENT ON COLUMN "AICCS"."TSWORKNO"."TYPECOMMENT" IS '流水号类型说明';
COMMENT ON COLUMN "AICCS"."TSWORKNO"."WORKNOID" IS '文书号ID';
COMMENT ON COLUMN "AICCS"."TSWORKNO"."WORKNOTYPE" IS '流水号类型';
COMMENT ON COLUMN "AICCS"."TSWORKNO"."YEARS" IS '当前年份';

CREATE OR REPLACE  INDEX "AICCS"."TSWORKNO_DEPTID_IDX" ON "AICCS"."TSWORKNO"("DEPTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSWORKNO_AICID_IDX" ON "AICCS"."TSWORKNO"("AICID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSWORKNO_ORGID_IDX" ON "AICCS"."TSWORKNO"("ORGID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSWORKNOBASE"
(
"BASEID" VARCHAR(36) NOT NULL,
"CURRENTNO" INT,
"YEARS" INT,
"WORKNOTYPE" VARCHAR(2),
"TYPECOMMENT" VARCHAR(80),
"GENRULE" VARCHAR(200),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
NOT CLUSTER PRIMARY KEY("BASEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSWORKNOBASE" IS '监管系统文书类型';
COMMENT ON COLUMN "AICCS"."TSWORKNOBASE"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSWORKNOBASE"."BASEID" IS '文书类型ID';
COMMENT ON COLUMN "AICCS"."TSWORKNOBASE"."CURRENTNO" IS '当前流水号';
COMMENT ON COLUMN "AICCS"."TSWORKNOBASE"."GENRULE" IS '产生规则';
COMMENT ON COLUMN "AICCS"."TSWORKNOBASE"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSWORKNOBASE"."TYPECOMMENT" IS '文书类型描述';
COMMENT ON COLUMN "AICCS"."TSWORKNOBASE"."WORKNOTYPE" IS '文书号类型';
COMMENT ON COLUMN "AICCS"."TSWORKNOBASE"."YEARS" IS '当前年份';

CREATE OR REPLACE  INDEX "AICCS"."TSWORKNOBASE_YEARS_IDX" ON "AICCS"."TSWORKNOBASE"("YEARS" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSWORKNOBASE_CURRENTNO_IDX" ON "AICCS"."TSWORKNOBASE"("CURRENTNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSWRIT"
(
"WRITSID" VARCHAR(92) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PRIPID" VARCHAR(72),
"WRITSNO" VARCHAR(200),
"WRITSNAME" VARCHAR(400),
"WRITSTYPE" VARCHAR(2),
"CREATETIME" TIMESTAMP(0),
"PATH" VARCHAR(400),
"LAUPTIME" TIMESTAMP(0) DEFAULT CURRENT_TIMESTAMP(),
"AREA_CODE" VARCHAR(6) DEFAULT '440100' NOT NULL,
"CONTENT" VARCHAR(8000),
NOT CLUSTER PRIMARY KEY("WRITSID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSWRIT" IS '监管文书文号信息';
COMMENT ON COLUMN "AICCS"."TSWRIT"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSWRIT"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSWRIT"."CONTENT" IS '文书内容';
COMMENT ON COLUMN "AICCS"."TSWRIT"."CREATETIME" IS '文书生成时间';
COMMENT ON COLUMN "AICCS"."TSWRIT"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."TSWRIT"."PATH" IS '文书相对路径';
COMMENT ON COLUMN "AICCS"."TSWRIT"."PRIPID" IS '主体ID';
COMMENT ON COLUMN "AICCS"."TSWRIT"."WRITSID" IS '文书编号ID';
COMMENT ON COLUMN "AICCS"."TSWRIT"."WRITSNAME" IS '文书名/文书描述';
COMMENT ON COLUMN "AICCS"."TSWRIT"."WRITSNO" IS '文书号';
COMMENT ON COLUMN "AICCS"."TSWRIT"."WRITSTYPE" IS '文书类型';

CREATE OR REPLACE  INDEX "AICCS"."TSWRIT_BIZSEQ_IDX" ON "AICCS"."TSWRIT"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSWRIT_PRIPID_IDX" ON "AICCS"."TSWRIT"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSWRIT_WRITSNO_IDX" ON "AICCS"."TSWRIT"("WRITSNO" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSWRIT_WRITSTYPE_IDX" ON "AICCS"."TSWRIT"("WRITSTYPE" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSWRITSCONTENT"
(
"CONTENTID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"PARAGRAPHCONTENT" VARCHAR(4000),
"PARAGRAPHNO" VARCHAR(2),
"ISTEMPLATE" VARCHAR(1),
"WRITSTYPE" VARCHAR(2),
"CREATEUSERID" VARCHAR(72),
"CREATETIME" TIMESTAMP(0),
"UPDATEUSERID" VARCHAR(72),
"UPDATETIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("CONTENTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSWRITSCONTENT" IS '文书模板内容表';
COMMENT ON COLUMN "AICCS"."TSWRITSCONTENT"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSWRITSCONTENT"."CONTENTID" IS '主键id';
COMMENT ON COLUMN "AICCS"."TSWRITSCONTENT"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."TSWRITSCONTENT"."CREATEUSERID" IS '创建用户id';
COMMENT ON COLUMN "AICCS"."TSWRITSCONTENT"."ISTEMPLATE" IS '是否为模板';
COMMENT ON COLUMN "AICCS"."TSWRITSCONTENT"."PARAGRAPHCONTENT" IS '段落内容';
COMMENT ON COLUMN "AICCS"."TSWRITSCONTENT"."PARAGRAPHNO" IS '段落序号';
COMMENT ON COLUMN "AICCS"."TSWRITSCONTENT"."UPDATETIME" IS '更新时间';
COMMENT ON COLUMN "AICCS"."TSWRITSCONTENT"."UPDATEUSERID" IS '更新用户id';
COMMENT ON COLUMN "AICCS"."TSWRITSCONTENT"."WRITSTYPE" IS '文书类型';


CREATE TABLE "AICCS"."TSWRITTEMPLATE"
(
"TEMPLATEID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"ISTEMPLATE" VARCHAR(1),
"CONTENT" TEXT,
"WRITSTYPE" VARCHAR(2),
"CREATEUSERID" VARCHAR(72),
"CREATETIME" TIMESTAMP(0),
"UPDATEUSERID" VARCHAR(72),
"UPDATETIME" TIMESTAMP(0),
"AREACODE" VARCHAR(6),
NOT CLUSTER PRIMARY KEY("TEMPLATEID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."TSWRITTEMPLATE" IS '文书通用模板';
COMMENT ON COLUMN "AICCS"."TSWRITTEMPLATE"."AREACODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."TSWRITTEMPLATE"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."TSWRITTEMPLATE"."CONTENT" IS '文书内容';
COMMENT ON COLUMN "AICCS"."TSWRITTEMPLATE"."CREATETIME" IS '创建时间';
COMMENT ON COLUMN "AICCS"."TSWRITTEMPLATE"."CREATEUSERID" IS '创建用户id';
COMMENT ON COLUMN "AICCS"."TSWRITTEMPLATE"."ISTEMPLATE" IS '是否为模板';
COMMENT ON COLUMN "AICCS"."TSWRITTEMPLATE"."TEMPLATEID" IS '文书模板id';
COMMENT ON COLUMN "AICCS"."TSWRITTEMPLATE"."UPDATETIME" IS '更新时间';
COMMENT ON COLUMN "AICCS"."TSWRITTEMPLATE"."UPDATEUSERID" IS '更新用户id';
COMMENT ON COLUMN "AICCS"."TSWRITTEMPLATE"."WRITSTYPE" IS '文书类型';


CREATE TABLE "AICCS"."TSWSLOG"
(
"LOGID" VARCHAR(36) NOT NULL,
"SENDID" VARCHAR(36),
"SERVICEKEY" VARCHAR(200),
"SERVICETYPE" VARCHAR(4),
"SENDDATA" CLOB,
"DATATYPE" VARCHAR(20),
"RESULTMSG" CLOB,
"SENDSIGN" VARCHAR(4),
"LOGTYPE" VARCHAR(4),
"FAILURECOUNT" INT,
"CREATETIME" TIMESTAMP(0),
"SENDTIME" TIMESTAMP(0),
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(18) DEFAULT '440100',
NOT CLUSTER PRIMARY KEY("LOGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSYSADDRHELPER"
(
"ADDRID" VARCHAR(36) NOT NULL,
"REGION" VARCHAR(68),
"REGIONCN" VARCHAR(200),
"PREGION" VARCHAR(18),
"REGIONPY" VARCHAR(200),
"LOGICDEL" VARCHAR(1),
NOT CLUSTER PRIMARY KEY("ADDRID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSYSHELPER"
(
"HELPERID" VARCHAR(36) NOT NULL,
"FILENAME" VARCHAR(200),
"FILEPATH" VARCHAR(200),
"FILESUFFIX" VARCHAR(20),
"ISINURE" VARCHAR(1),
"SEQ" INT,
"TYP" VARCHAR(2),
NOT CLUSTER PRIMARY KEY("HELPERID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."TSYSRISK"
(
"RISKID" VARCHAR(36) NOT NULL,
"RISKTYPE" VARCHAR(20),
"RISKTYPEDESC" VARCHAR(200),
"PARENT" VARCHAR(36),
"BIZFLAG" VARCHAR(1),
"RISKDESC" VARCHAR(600),
"MEASURES" VARCHAR(2000),
"RESPONSIBLE" VARCHAR(1000),
"REGULATIONS" VARCHAR(1000),
"AREA_CODE" VARCHAR(18),
"LAUPTIME" TIMESTAMP(0),
NOT CLUSTER PRIMARY KEY("RISKID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."WSCONFIG"
(
"WSCONFIGID" VARCHAR(36) NOT NULL,
"SERVICENAME" VARCHAR(200),
"METHODNAME" VARCHAR(200),
"WSDLURI" VARCHAR(500),
"NAMESPACEURI" VARCHAR(500),
"ITEMCODE" VARCHAR(4),
"ITEMNAME" VARCHAR(200),
"SERVERCODE" VARCHAR(100),
"SERVERNAME" VARCHAR(100),
"CONFDESC" VARCHAR(1000),
"CONFUSERNAME" VARCHAR(200),
"CONFUSERID" VARCHAR(36),
"TIMEOUT" INT,
"LAUPTIME" TIMESTAMP(0),
"AREA_CODE" VARCHAR(18) DEFAULT '440100',
NOT CLUSTER PRIMARY KEY("WSCONFIGID")) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."xr_force_deregister"
(
"forceid" VARCHAR2(64) NOT NULL,
"notice_title" VARCHAR2(200),
"notice_content" VARCHAR2(4000),
"judauth" VARCHAR2(64),
"judauth_cn" VARCHAR2(128),
"notice_from" DATE,
"notice_to" DATE,
"create_by" VARCHAR2(36),
"create_time" DATE,
"update_by" VARCHAR2(36),
"update_time" DATE,
"s_ext_fromnode" VARCHAR2(6),
"s_ext_datatime" TIMESTAMP(6),
CONSTRAINT "PK_XR_FORCE_DEREGISTER" NOT CLUSTER PRIMARY KEY("forceid")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_judauth_IDX" ON "AICCS"."xr_force_deregister"("judauth" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."xr_force_deregister_rem"
(
"forceremid" VARCHAR2(64) NOT NULL,
"forceresid" VARCHAR2(64),
"forceid" VARCHAR2(64),
"pripid" VARCHAR2(36),
"entname" VARCHAR2(200),
"unisc_id" VARCHAR2(18),
"regno" VARCHAR2(15),
"reg_org" VARCHAR2(64),
"reg_org_cn" VARCHAR2(128),
"notice_title" VARCHAR2(200),
"notice_content" VARCHAR2(4000),
"status" VARCHAR2(1),
"biz_seq_no" VARCHAR2(36),
"judauth" VARCHAR2(64),
"judauth_cn" VARCHAR2(128),
"forcerra" VARCHAR2(2),
"forcerra_date" DATE,
"end_forcerra" VARCHAR2(2),
"forceres" VARCHAR2(2),
"forceres_date" DATE,
"apply_time" DATE,
"create_by" VARCHAR2(36),
"create_time" DATE,
"update_by" VARCHAR2(36),
"update_time" DATE,
"notice_from" DATE,
"notice_to" DATE,
"is_accept" VARCHAR2(1),
"back_proposal" VARCHAR2(4000),
"end_forcerra_cn" VARCHAR2(100),
"rem_type" VARCHAR2(1),
"force_rem_type" VARCHAR2(1),
"decision_content" VARCHAR2(4000),
"accept_org" VARCHAR2(10),
CONSTRAINT "PK_XR_FORCE_DEREGISTER_REM" NOT CLUSTER PRIMARY KEY("forceremid")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_rem_biz_seq_no_IDX" ON "AICCS"."xr_force_deregister_rem"("biz_seq_no" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_rem_forceid_IDX" ON "AICCS"."xr_force_deregister_rem"("forceid" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_rem_reg_org_IDX" ON "AICCS"."xr_force_deregister_rem"("reg_org" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_rem_forceresid_IDX" ON "AICCS"."xr_force_deregister_rem"("forceresid" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_rem_accept_org_IDX" ON "AICCS"."xr_force_deregister_rem"("accept_org" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."xr_force_deregister_res"
(
"forceresid" VARCHAR2(64) NOT NULL,
"forceid" VARCHAR2(64),
"pripid" VARCHAR2(36),
"entname" VARCHAR2(200),
"unisc_id" VARCHAR2(18),
"reg_org" VARCHAR2(64),
"reg_org_cn" VARCHAR2(128),
"notice_from" DATE,
"notice_to" DATE,
"forcerra" VARCHAR2(2),
"forcerra_date" DATE,
"website" VARCHAR2(512),
"regno" VARCHAR2(15),
"dom" VARCHAR2(512),
"lerep" VARCHAR2(200),
"forceregopi" VARCHAR2(512),
"forceres" VARCHAR2(2),
"forceres_date" DATE,
"end_forcerra" VARCHAR2(2),
"create_by" VARCHAR2(36),
"create_time" DATE,
"update_by" VARCHAR2(36),
"update_time" DATE,
"s_ext_fromnode" VARCHAR2(6),
"s_ext_datatime" TIMESTAMP(6),
"forcerra_cn" VARCHAR2(100),
"end_forcerra_cn" VARCHAR2(100),
CONSTRAINT "PK_XR_FORCE_DEREGISTER_RES" NOT CLUSTER PRIMARY KEY("forceresid")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_res_forceid_IDX" ON "AICCS"."xr_force_deregister_res"("forceid" ASC,"pripid" ASC,"unisc_id" ASC,"reg_org" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_res_regorg_IDX" ON "AICCS"."xr_force_deregister_res"("reg_org" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_res_pripid_IDX" ON "AICCS"."xr_force_deregister_res"("pripid" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_res_unisc_id_IDX" ON "AICCS"."xr_force_deregister_res"("unisc_id" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."xr_force_deregister_spe"
(
"forcespeid" VARCHAR2(64) NOT NULL,
"forceresid" VARCHAR2(64),
"forceid" VARCHAR2(64),
"pripid" VARCHAR2(36),
"entname" VARCHAR2(200),
"unisc_id" VARCHAR2(18),
"regno" VARCHAR2(15),
"reg_org" VARCHAR2(64),
"reg_org_cn" VARCHAR2(128),
"notice_title" VARCHAR2(200),
"notice_content" VARCHAR2(4000),
"status" VARCHAR2(1),
"biz_seq_no" VARCHAR2(36),
"judauth" VARCHAR2(64),
"judauth_cn" VARCHAR2(128),
"notice_from" DATE,
"notice_to" DATE,
"forcerra" VARCHAR2(2),
"forcerra_date" DATE,
"forceregopi" VARCHAR2(512),
"forceres" VARCHAR2(2),
"forceres_date" DATE,
"apply_time" DATE,
"create_by" VARCHAR2(36),
"create_time" DATE,
"update_by" VARCHAR2(36),
"update_time" DATE,
"force_type" VARCHAR2(1),
"forcerra_cn" VARCHAR2(100),
"decision_content" VARCHAR2(4000),
"force_notice_content" VARCHAR2(4000),
"accept_org" VARCHAR2(10),
CONSTRAINT "PK_XR_FORCE_DEREGISTER_SPE" NOT CLUSTER PRIMARY KEY("forcespeid")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_spe_unisc_id_IDX" ON "AICCS"."xr_force_deregister_spe"("unisc_id" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_spe_forceresid_IDX" ON "AICCS"."xr_force_deregister_spe"("forceresid" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_spe_biz_seq_no_IDX" ON "AICCS"."xr_force_deregister_spe"("biz_seq_no" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_spe_regno_IDX" ON "AICCS"."xr_force_deregister_spe"("regno" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_spe_reg_org_IDX" ON "AICCS"."xr_force_deregister_spe"("reg_org" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_spe_forceid_IDX" ON "AICCS"."xr_force_deregister_spe"("forceid" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_spe_accept_org_IDX" ON "AICCS"."xr_force_deregister_spe"("accept_org" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_force_deregister_spe_pripid_IDX" ON "AICCS"."xr_force_deregister_spe"("pripid" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."xr_force_notice"
(
"noticeid" VARCHAR2(64) NOT NULL,
"notice_title" VARCHAR2(200),
"notice_content" VARCHAR2(4000),
"judauth" VARCHAR2(64),
"judauth_cn" VARCHAR2(128),
"anndate" DATE,
"notice_from" DATE,
"notice_to" DATE,
"website" VARCHAR2(512),
"s_ext_fromnode" VARCHAR2(6),
"s_ext_datatime" TIMESTAMP(6),
"create_by" VARCHAR2(36),
"create_time" DATE,
"update_by" VARCHAR2(36),
"update_time" DATE,
CONSTRAINT "PK_XR_FORCE_NOTICE" NOT CLUSTER PRIMARY KEY("noticeid")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."xr_force_notice_judauth_IDX" ON "AICCS"."xr_force_notice"("judauth" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."xr_liccan_rec"
(
"recid" VARCHAR2(64) NOT NULL,
"pripid" VARCHAR2(36),
"entname" VARCHAR2(200),
"unisc_id" VARCHAR2(18),
"regno" VARCHAR2(15),
"reg_org" VARCHAR2(64),
"reg_org_cn" VARCHAR2(128),
"reg_type" VARCHAR2(2),
"lican_reason" VARCHAR2(1),
"isoricop" VARCHAR2(1),
"lican_sta" VARCHAR2(2000),
"lican_date" DATE,
"liccopy_no" VARCHAR2(50),
"s_ext_fromnode" VARCHAR2(6),
"s_ext_datatime" TIMESTAMP(6),
"create_by" VARCHAR2(36),
"create_time" DATE,
"update_by" VARCHAR2(36),
"update_time" DATE,
CONSTRAINT "PK_XR_LICCAN_REC" NOT CLUSTER PRIMARY KEY("recid")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."xr_liccan_rec_unisc_id_IDX" ON "AICCS"."xr_liccan_rec"("unisc_id" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_liccan_rec_pripid_IDX" ON "AICCS"."xr_liccan_rec"("pripid" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_liccan_rec_regorg_IDX" ON "AICCS"."xr_liccan_rec"("reg_org" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."xr_liccan_rec_task"
(
"taskid" VARCHAR2(64) NOT NULL,
"recid" VARCHAR2(64),
"pripid" VARCHAR2(36),
"entname" VARCHAR2(200),
"unisc_id" VARCHAR2(18),
"regno" VARCHAR2(15),
"reg_org" VARCHAR2(64),
"reg_org_cn" VARCHAR2(128),
"status" VARCHAR2(1),
"biz_seq_no" VARCHAR2(36),
"reg_type" VARCHAR2(2),
"lican_reason" VARCHAR2(1),
"isoricop" VARCHAR2(1),
"lican_sta" VARCHAR2(2000),
"lican_date" DATE,
"liccopy_no" VARCHAR2(50),
"forceresid" VARCHAR2(64),
"create_by" VARCHAR2(36),
"create_time" DATE,
"update_by" VARCHAR2(36),
"update_time" DATE,
"apply_time" DATE,
CONSTRAINT "PK_XR_LICCAN_REC_TASK" NOT CLUSTER PRIMARY KEY("taskid")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."xr_liccan_rec_task_biz_seq_no_IDX" ON "AICCS"."xr_liccan_rec_task"("biz_seq_no" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_liccan_rec_task_pripid_IDX" ON "AICCS"."xr_liccan_rec_task"("pripid" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_liccan_rec_task_recid_IDX" ON "AICCS"."xr_liccan_rec_task"("recid" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."xr_liccan_rec_task_forceresid_IDX" ON "AICCS"."xr_liccan_rec_task"("forceresid" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."xr_serious_illegal_person_list"
(
"illegal_list_id" VARCHAR2(46) NOT NULL,
"biz_seq" VARCHAR2(36),
"inv" VARCHAR2(200),
"cer_type" VARCHAR2(64),
"cer_no" VARCHAR2(50),
"reg_org" VARCHAR2(100),
"ser_ill_rea" VARCHAR2(4),
"ser_ill_rea_cn" VARCHAR2(255),
"abn_time" DATE,
"rem_excp_res" VARCHAR2(2),
"rem_excp_res_cn" VARCHAR2(255),
"rem_date" DATE,
"dec_org" VARCHAR2(36),
"area_code" VARCHAR2(6) DEFAULT '440400',
"laup_time" DATE DEFAULT SYSDATE,
"lost_credit_explain" CLOB,
"lost_credit_explain_rem" CLOB,
"reconsideration_org" VARCHAR2(50),
"government_org" VARCHAR2(50),
"liti_org" VARCHAR2(50),
"into_sponsor_illegal" VARCHAR2(50),
"rem_sponsor_illegal" VARCHAR2(50),
"batch_and_case" VARCHAR2(8),
"operation_status" VARCHAR2(8),
"rem_dec_org" VARCHAR2(36),
"rem_dec_org_cn" VARCHAR2(255),
"into_writ_id" VARCHAR2(46),
"rem_writ_id" VARCHAR2(36),
"into_sponsor_illegal_id" VARCHAR2(36),
"rem_biz_seq" VARCHAR2(36),
"dec_org_cn" VARCHAR2(255),
"is_rev" CHAR(1),
"rev_op" VARCHAR2(1000),
"is_hea" CHAR(1),
"hea_op" VARCHAR2(1000),
"jud_doc_title" VARCHAR2(100),
"jud_doc_no" VARCHAR2(100),
"is_displayed" CHAR(1) DEFAULT '0',
"create_time" DATE,
"add_dep_id" VARCHAR2(100),
"add_dep_name" VARCHAR2(100),
"rem_type" VARCHAR2(2),
"is_handling" CHAR(1),
"create_by" VARCHAR2(36),
"update_by" VARCHAR2(36),
"update_time" DATE,
CONSTRAINT "PK_XR_SERIOUS_ILLEGAL_PERSON_LIST" NOT CLUSTER PRIMARY KEY("illegal_list_id")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE  INDEX "AICCS"."idx_rem_date_tsserillegallist_index" ON "AICCS"."xr_serious_illegal_person_list"("rem_date" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."idx_abn_time_tsserillegallist_index" ON "AICCS"."xr_serious_illegal_person_list"("abn_time" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."idx_biz_seq_tsserillegallist_index" ON "AICCS"."xr_serious_illegal_person_list"("biz_seq" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."xr_serious_illegal_person_rem_list"
(
"biz_ser_rem_id" VARCHAR2(36) NOT NULL,
"biz_seq_no" VARCHAR2(36),
"illegal_list_id" VARCHAR2(45),
"inv" VARCHAR2(200),
"cer_type" VARCHAR2(30),
"cer_no" VARCHAR2(50),
"ser_ill_rea" VARCHAR2(4),
"abn_time" DATE,
"rem_excp_res" VARCHAR2(4),
"apply_rem_rea" VARCHAR2(30),
"rem_type" VARCHAR2(1),
"approval_date" DATE,
"dec_org" VARCHAR2(36),
"dec_org_cn" VARCHAR2(255),
"area_code" VARCHAR2(6) DEFAULT '150000' NOT NULL,
"lost_credit_explain_rem" VARCHAR2(1000),
"reconsideration_org" VARCHAR2(50),
"government_org" VARCHAR2(50),
"liti_org" VARCHAR2(50),
"rem_sponsor_illegal" VARCHAR2(50),
"status" VARCHAR2(1),
"is_accept" VARCHAR2(1),
"is_agree_repair" VARCHAR2(1),
"apply_time" DATE,
"applicant" VARCHAR2(100),
"applicant_no" VARCHAR2(100),
"applicant_id" VARCHAR2(40),
"handle_status" VARCHAR2(2),
"back_proposal" VARCHAR2(4000),
"not_repaired" VARCHAR2(4000),
"remark" VARCHAR2(500),
"app_or_pc" VARCHAR2(4),
"is_finished" VARCHAR2(1) DEFAULT '0',
"create_time" DATE,
"add_dep_name" VARCHAR2(100),
"add_dep_id" VARCHAR2(100),
"contacts" VARCHAR2(100),
"telephone" VARCHAR2(100),
"situation" VARCHAR2(1000),
"transfer" VARCHAR2(100),
"transfer_reason" VARCHAR2(100),
"auth_item" VARCHAR2(100),
"decision_content" VARCHAR2(1000),
"is_displayed" VARCHAR2(1) DEFAULT '0',
"create_by" VARCHAR2(36),
"update_by" VARCHAR2(36),
"update_time" DATE,
"laup_time" DATE,
"rem_date" DATE,
"rem_excp_res_cn" VARCHAR2(255),
CONSTRAINT "PK_XR_SERIOUS_ILLEGAL_PERSON_REM_LIST" NOT CLUSTER PRIMARY KEY("biz_ser_rem_id")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "AICCS"."INDEX31668078" ON "AICCS"."xr_serious_illegal_person_rem_list"("biz_ser_rem_id" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."xr_serious_illegal_person_spe_list"
(
"illegal_list_id" VARCHAR2(36) NOT NULL,
"biz_seq_no" VARCHAR2(36),
"inv" VARCHAR2(200),
"cer_type" VARCHAR2(64),
"cer_no" VARCHAR2(50),
"serill_rea" VARCHAR2(36),
"serill_rea_string" VARCHAR2(100),
"approval_date" DATE,
"dec_org" VARCHAR2(9),
"area_code" VARCHAR2(6) NOT NULL,
"laup_time" DATE,
"lost_credit_explain" CLOB,
"reconsideration_org" VARCHAR2(50),
"government_org" VARCHAR2(50),
"liti_org" VARCHAR2(50),
"status" VARCHAR2(1),
"into_sponsor_illegal" VARCHAR2(50),
"end_apply" VARCHAR2(1),
"end_reason" VARCHAR2(100),
"abn_time" DATE,
"writs_no" VARCHAR2(50),
"party" VARCHAR2(50),
"certificate" VARCHAR2(50),
"uscc_id" VARCHAR2(50),
"legal_name" VARCHAR2(50),
"id_number" VARCHAR2(50),
"phone" VARCHAR2(50),
"other_cert" VARCHAR2(100),
"residence" VARCHAR2(100),
"ill_operating_id" VARCHAR2(50),
"opinion" VARCHAR2(100),
"is_hea" VARCHAR2(2),
"hea_op" VARCHAR2(100),
"jud_doc_title" VARCHAR2(100),
"jud_doc_no" VARCHAR2(100),
"case_id" VARCHAR2(100),
"correct_biz_seq" VARCHAR2(100),
"hea_opinion" VARCHAR2(100),
"sbook_code" VARCHAR2(100),
"sgist_type_name" VARCHAR2(100),
"spun_type_name" VARCHAR2(100),
"pen_am" VARCHAR2(50),
"forf_am" VARCHAR2(50),
"penauth" VARCHAR2(50),
"penauth_cn" VARCHAR2(50),
"punishment_decision_date" DATE,
"party_name" VARCHAR2(50),
"spun_content" VARCHAR2(100),
"serial_id" VARCHAR2(50),
"create_time" DATE,
"add_dep_name" VARCHAR2(100),
"add_dep_id" VARCHAR2(100),
"is_finished" VARCHAR2(2),
"bus_type" VARCHAR2(100),
"is_displayed" VARCHAR2(1) DEFAULT '1',
"is_approve" VARCHAR2(1),
"transfer" VARCHAR2(100),
"transfer_reason" VARCHAR2(100),
"auth_item" VARCHAR2(100),
"create_by" VARCHAR2(36),
"update_by" VARCHAR2(36),
"update_time" DATE,
"source_type" VARCHAR2(8),
"dec_org_cn" VARCHAR2(255),
CONSTRAINT "PK_XR_SERIOUS_ILLEGAL_PERSON_SPE_LIST" NOT CLUSTER PRIMARY KEY("illegal_list_id")) STORAGE(ON "MAIN", CLUSTERBTR) ;

CREATE OR REPLACE UNIQUE  INDEX "AICCS"."INDEX335566666" ON "AICCS"."xr_serious_illegal_person_spe_list"("illegal_list_id" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."XR_TS_BIZ_REM_LIST"
(
"REMLISTID" VARCHAR(72) NOT NULL,
"BIZSEQ" VARCHAR(72),
"ABNLISTID" VARCHAR(72),
"PRIPID" VARCHAR(72),
"REGNO" VARCHAR(60),
"ENTNAME" VARCHAR(200),
"SPECAUSE" VARCHAR(4),
"ABNTIME" DATE,
"SPEREASONS" VARCHAR(1000),
"REMEXCPRES" VARCHAR(4),
"REMREASONS" VARCHAR(1000),
"APPROVALDATE" DATE,
"DECORG" VARCHAR(40),
"AREA_CODE" VARCHAR(6) DEFAULT '440400' NOT NULL,
"LAUPTIME" TIMESTAMP(0),
"RECONSIDERATIONORG" VARCHAR(100),
"GOVERNMENTORG" VARCHAR(100),
"LITIORG" VARCHAR(100),
"REMSPONSOR" VARCHAR(100),
"STATUS" VARCHAR(2),
"REMREMARK" VARCHAR(1000),
"APPLICANT" VARCHAR(200),
"APPLICANTNO" VARCHAR(60),
"DECORGNAME" VARCHAR(100),
"TYPE" VARCHAR(510),
"REMSPONSORID" VARCHAR(100),
"ISACCEPT" VARCHAR(2),
"ISAGREEREPAIR" VARCHAR(2),
"APPLYTIME" TIMESTAMP(0),
"HANDLESTATUS" VARCHAR(4),
"BACKPROPOSAL" VARCHAR(8000),
"APPORPC" VARCHAR(8),
"APPLICANTID" VARCHAR(80),
"CERNO" VARCHAR(80),
NOT CLUSTER PRIMARY KEY("REMLISTID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."XR_TS_BIZ_REM_LIST" IS '移出经营异常名录业务表';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."ABNLISTID" IS '经营异常名录ID';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."APPLICANTID" IS '移动端申请人身份证';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."APPLYTIME" IS '移动端申请时间 ';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."APPORPC" IS '标识移动端或pc端  0:移动端，1：pc端';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."APPROVALDATE" IS '核准日期';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."AREA_CODE" IS '地区代码';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."BACKPROPOSAL" IS '回退建议 ';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."BIZSEQ" IS '业务号';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."CERNO" IS '移出企业法人身份证';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."DECORG" IS '作出决定机关';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."DECORGNAME" IS '作出决定机关（中文名） ';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."ENTNAME" IS '名称';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."GOVERNMENTORG" IS '人民政府';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."HANDLESTATUS" IS '办理状态1办理中，2退回重办3予以修复4不予修复5作废 ';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."ISACCEPT" IS '信用修复申请是否受理0否1是 ';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."ISAGREEREPAIR" IS '信用修复申请是否予以信用修复0否1是 ';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."LAUPTIME" IS '最后更新时间';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."LITIORG" IS '诉讼机关';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."RECONSIDERATIONORG" IS '行政复议机关';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."REMEXCPRES" IS '移出经营异常名录原因';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."REMLISTID" IS '编号ID';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."REMREASONS" IS '移出事实理由';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."REMREMARK" IS '移出备注';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."REMSPONSOR" IS '移出主办人';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."REMSPONSORID" IS '移出主办人id ';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."SPECAUSE" IS '列入经营异常名录原因';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."SPEREASONS" IS '列入事实理由';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."STATUS" IS '9 受理中、1 审批中、2 已通过、3 不通过';
COMMENT ON COLUMN "AICCS"."XR_TS_BIZ_REM_LIST"."TYPE" IS '类型：‘individual’个体户‘farmer’农专‘company’企业 ';

CREATE OR REPLACE  INDEX "AICCS"."TSBIZREMLIST_BIZSEQ_IDX" ON "AICCS"."XR_TS_BIZ_REM_LIST"("BIZSEQ" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."TSBIZREMLIST_PRIPID_IDX" ON "AICCS"."XR_TS_BIZ_REM_LIST"("PRIPID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;
CREATE OR REPLACE  INDEX "AICCS"."INDEX786862800296400" ON "AICCS"."XR_TS_BIZ_REM_LIST"("ABNLISTID" ASC) STORAGE(ON "MAIN", CLUSTERBTR) ;


CREATE TABLE "AICCS"."YZWFJCX"
(
"ID" VARCHAR(100) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."YZWFJCX" IS 'yzwfjcx';
COMMENT ON COLUMN "AICCS"."YZWFJCX"."ID" IS 'ID';


CREATE TABLE "AICCS"."YZWFWZX"
(
"ID" VARCHAR(100) NOT NULL,
NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

COMMENT ON TABLE "AICCS"."YZWFWZX" IS 'yzwfwzx';
COMMENT ON COLUMN "AICCS"."YZWFWZX"."ID" IS 'ID';


