CREATE TABLE "AICRI"."CMS_DICT_TYPE"
(
"ID" VARCHAR2(32) NOT NULL,
"MODULE" VARCHAR2(32) NOT NULL,
"MODULE_DESCRIPTION" NVARCHAR2(1024),
"TYPE" VARCHAR2(32) NOT NULL,
"NAME" VARCHAR(255) NOT NULL,
"TYPE_DESCRIPTION" NVARCHAR2(1024),
"IS_VALID" CHAR(1) NOT NULL,
"CREATE_BY" VARCHAR2(32),
"CREATE_TIME" TIMESTAMP(6),
"UPDATE_BY" VARCHAR2(32),
"UPDATE_TIME" TIMESTAMP(6),
CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;

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


CREATE TABLE "AICRI"."KSQY_AN_ALTERSTOCKINFO"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_AN_ALTERSTOCKINFO"."ALTDATE" IS '股权变更日期';
COMMENT ON COLUMN "AICRI"."KSQY_AN_ALTERSTOCKINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "AICRI"."KSQY_AN_ALTERSTOCKINFO"."INV" IS '股东名称';
COMMENT ON COLUMN "AICRI"."KSQY_AN_ALTERSTOCKINFO"."INVALTID" IS '股东变更标识';
COMMENT ON COLUMN "AICRI"."KSQY_AN_ALTERSTOCKINFO"."S_EXT_FROMNODE" IS '数据汇总单位';
COMMENT ON COLUMN "AICRI"."KSQY_AN_ALTERSTOCKINFO"."TRANSAMAFT" IS '转让后股权比例';
COMMENT ON COLUMN "AICRI"."KSQY_AN_ALTERSTOCKINFO"."TRANSAMPR" IS '转让前股权比例';


CREATE TABLE "AICRI"."KSQY_AN_BASEINFO"
(
"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) ;

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


CREATE TABLE "AICRI"."KSQY_AN_FORGUARANTEEINFO"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_AN_FORGUARANTEEINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "AICRI"."KSQY_AN_FORGUARANTEEINFO"."GATYPE" IS '保证的方式';
COMMENT ON COLUMN "AICRI"."KSQY_AN_FORGUARANTEEINFO"."GUARANPERIOD" IS '保证的期间';
COMMENT ON COLUMN "AICRI"."KSQY_AN_FORGUARANTEEINFO"."MORE" IS '债权人';
COMMENT ON COLUMN "AICRI"."KSQY_AN_FORGUARANTEEINFO"."MOREDIS" IS '对外担保是否公示';
COMMENT ON COLUMN "AICRI"."KSQY_AN_FORGUARANTEEINFO"."MOREID" IS '对外担保标识ID';
COMMENT ON COLUMN "AICRI"."KSQY_AN_FORGUARANTEEINFO"."MORTGAGOR" IS '债务人';
COMMENT ON COLUMN "AICRI"."KSQY_AN_FORGUARANTEEINFO"."PEFPERFORM" IS '履行债务的期限自';
COMMENT ON COLUMN "AICRI"."KSQY_AN_FORGUARANTEEINFO"."PEFPERTO" IS '履行债务的期限至';
COMMENT ON COLUMN "AICRI"."KSQY_AN_FORGUARANTEEINFO"."PRICLASECAM" IS '主债权数额';
COMMENT ON COLUMN "AICRI"."KSQY_AN_FORGUARANTEEINFO"."PRICLASECKIND" IS '主债权种类（代码标识符：CD55）';


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

COMMENT ON COLUMN "AICRI"."KSQY_AN_FORINVESTMENT"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "AICRI"."KSQY_AN_FORINVESTMENT"."ENTNAME" IS '所投资企业名称';
COMMENT ON COLUMN "AICRI"."KSQY_AN_FORINVESTMENT"."OUTINVID" IS '企业对外投资标识';
COMMENT ON COLUMN "AICRI"."KSQY_AN_FORINVESTMENT"."UNISCID" IS '所投资企业统一社会信用代码/所投资企业注册号';


CREATE TABLE "AICRI"."KSQY_AN_SOCSECINFO"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."SO110" IS '城镇职工基本养老保险参保人数';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."SO210" IS '失业保险参保人数';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."SO310" IS '职工基本医疗保险参保人数';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."SO410" IS '工伤保险参保人数';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."SO510" IS '生育保险参保人数';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."SOSEID" IS '物理主键';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."TOTALPAYMENT_SO110" IS '参加城镇职工基本养老保险本期实际缴费金额';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."TOTALPAYMENT_SO210" IS '参加失业保险本期实际缴费金额';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."TOTALPAYMENT_SO310" IS '参加职工基本医疗保险本期实际缴费金额';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."TOTALPAYMENT_SO410" IS '参加工伤保险本期实际缴费金额';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."TOTALPAYMENT_SO510" IS '参加生育保险本期实际缴费金额';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."TOTALPAYMENTDIS" IS '本期实际缴费金额是否公示';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."TOTALWAGES_SO110" IS '单位参加城镇职工基本养老保险缴费基数';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."TOTALWAGES_SO210" IS '单位参加失业保险缴费基数';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."TOTALWAGES_SO310" IS '单位参加职工基本医疗保险缴费基数';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."TOTALWAGES_SO410" IS '单位参加工伤保险缴费基数';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."TOTALWAGES_SO510" IS '单位参加生育保险缴费基数';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."TOTALWAGESDIS" IS '单位缴费基数是否公示';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."UNPAIDSOCIALINS_SO110" IS '单位参加城镇职工基本养老保险累计欠缴金额';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."UNPAIDSOCIALINS_SO210" IS '单位参加失业保险累计欠缴金额';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."UNPAIDSOCIALINS_SO310" IS '单位参加职工基本医疗保险累计欠缴金额';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."UNPAIDSOCIALINS_SO410" IS '参加工伤保险累计欠缴金额';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."UNPAIDSOCIALINS_SO510" IS '单位参加生育保险累计欠缴金额';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SOCSECINFO"."UNPAIDSOCIALINSDIS" IS '单位累计欠缴金额是否公示';


CREATE TABLE "AICRI"."KSQY_AN_SUBCAPITAL"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_AN_SUBCAPITAL"."ACCONDATE" IS '实缴出资日期';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUBCAPITAL"."ACCONFORM" IS '实缴出资方式（代码标识符：CA22）';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUBCAPITAL"."ACCONFORM_CN" IS '实缴出资方式（中文名称）（代码标识符：CA22）';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUBCAPITAL"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUBCAPITAL"."INVID" IS '投资人ID';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUBCAPITAL"."INVNAME" IS '股东/发起人名称';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUBCAPITAL"."LIACCONAM" IS '累计实缴额';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUBCAPITAL"."LISUBCONAM" IS '累计认缴额';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUBCAPITAL"."SUBCONDATE" IS '认缴出资日期';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUBCAPITAL"."SUBCONFORM" IS '认缴出资方式（代码标识符：CA22）';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUBCAPITAL"."SUBCONFORM_CN" IS '认缴出资方式（中文名称）（代码标识符：CA22）';


CREATE TABLE "AICRI"."KSQY_AN_SUP_BASEINFO"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_AN_SUP_BASEINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUP_BASEINFO"."DEPENDENTENTNAME" IS '隶属企业名称';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUP_BASEINFO"."HOLDINGSMSG" IS '企业控股情况（代码标识符：CW06）';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUP_BASEINFO"."HOLDINGSMSG_CN" IS '企业控股情况（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUP_BASEINFO"."HOLDINGSMSGDIS" IS '企业控股情况是否公示';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUP_BASEINFO"."MAINBUSIACT" IS '主营业务活动';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUP_BASEINFO"."UNISCID" IS '隶属企业统一社会信用代码/注册号';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUP_BASEINFO"."WOMEMPNUM" IS '女性从业人员';
COMMENT ON COLUMN "AICRI"."KSQY_AN_SUP_BASEINFO"."WOMEMPNUMDIS" IS '女性从业人数是否公示';


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

COMMENT ON COLUMN "AICRI"."KSQY_AN_UPDATEINFO"."ALITEM" IS '修改事项';
COMMENT ON COLUMN "AICRI"."KSQY_AN_UPDATEINFO"."ALTAF" IS '修改后';
COMMENT ON COLUMN "AICRI"."KSQY_AN_UPDATEINFO"."ALTBE" IS '修改前';
COMMENT ON COLUMN "AICRI"."KSQY_AN_UPDATEINFO"."ALTDATE" IS '修改日期';
COMMENT ON COLUMN "AICRI"."KSQY_AN_UPDATEINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "AICRI"."KSQY_AN_UPDATEINFO"."ANCHEUID" IS '年报修改ID';


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

COMMENT ON COLUMN "AICRI"."KSQY_AN_WEBSITEINFO"."ANCHEID" IS '年报ID';
COMMENT ON COLUMN "AICRI"."KSQY_AN_WEBSITEINFO"."WEBID" IS '网站标识';
COMMENT ON COLUMN "AICRI"."KSQY_AN_WEBSITEINFO"."WEBSITE" IS '网站（网店）网址';
COMMENT ON COLUMN "AICRI"."KSQY_AN_WEBSITEINFO"."WEBSITNAME" IS '网站（网店）名称';
COMMENT ON COLUMN "AICRI"."KSQY_AN_WEBSITEINFO"."WEBTYPE" IS '网站网店类型';


CREATE TABLE "AICRI"."KSQY_AO_OPA_DETAIL"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."BUSEXCLIST" IS '经营异常名录ID';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."CERNO" IS '证件号码';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."CERTYPE" IS '证件类型（代码标识符：CB16）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."DECORG" IS '列入决定机关（代码标识符：CA11）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."DECORG_CN" IS '列入决定机关（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."ISMOVE" IS '是否移出';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."LEREP" IS '法定代表人';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."PRIPID" IS '主体身份代码（代码标识符：CA14）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."REDECORG" IS '移出决定机关（代码标识符：CA11）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."REDECORG_CN" IS '移出决定机关（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."REMDATE" IS '移出日期';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."REMEXCPRES" IS '移出经营异常名录原因（代码标识符：CD72）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."REMEXCPRES_CN" IS '移出经营异常名录原因（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."SPECAUSE" IS '列入经营异常名录原因类型（代码标识符：CD71）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."SPECAUSE_CN" IS '列入经营异常名录原因类型（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPA_DETAIL"."UNISCID" IS '统一社会信用代码';


CREATE TABLE "AICRI"."KSQY_AO_OPANOMALY"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY"."BUSEXCLIST" IS '经营异常名录ID';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY"."CERNO" IS '证件号码';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY"."CERTYPE" IS '证件类型（代码标识符：CB16）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY"."DECORG" IS '列入决定机关（代码标识符：CA11）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY"."DECORG_CN" IS '列入决定机关（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY"."LEREP" IS '法定代表人';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY"."SPECAUSE" IS '列入经营异常名录原因类型（代码标识符：CD71）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY"."SPECAUSE_CN" IS '列入经营异常名录原因类型（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY"."UNISCID" IS '统一社会信用代码';


CREATE TABLE "AICRI"."KSQY_AO_OPANOMALY_INV"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY_INV"."BLINVID" IS '经营异常名录股东ID';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY_INV"."BUSEXCLIST" IS '经营异常名录ID';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY_INV"."CERNO" IS '证件号码';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY_INV"."CERTYPE" IS '证件类型（代码标识符：CB16）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY_INV"."INV" IS '股东/发起人名称';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY_INV"."INVID" IS '股东/发起人ID';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY_INV"."INVTYPE" IS '股东/发起人类型（代码标识符：CA24）';
COMMENT ON COLUMN "AICRI"."KSQY_AO_OPANOMALY_INV"."PRIPID" IS '主体身份代码';


CREATE TABLE "AICRI"."KSQY_CASE_CRE_INFORMATION"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_CASE_CRE_INFORMATION"."CASECREID" IS '行政处罚修复ID';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_CRE_INFORMATION"."CASEID" IS '行政处罚ID';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_CRE_INFORMATION"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_CRE_INFORMATION"."PRIPID" IS '主体身份代码（代码标识符：CA14）';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_CRE_INFORMATION"."REPAIRDATE" IS '申请修复日期';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_CRE_INFORMATION"."REPAUTH" IS '作出信用修复决定的机关';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_CRE_INFORMATION"."REPAUTH_CN" IS '作出信用修复决定的机关（中文）';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_CRE_INFORMATION"."REPDATE" IS '信用修复决定时间';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_CRE_INFORMATION"."UNISCID" IS '统一社会信用代码';


CREATE TABLE "AICRI"."KSQY_CASE_PUB_NALTER"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NALTER"."ALT" IS '变更事项';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NALTER"."ALTAF" IS '变更后内容';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NALTER"."ALTBE" IS '变更前内容';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NALTER"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NALTER"."CASEALTID" IS '变更ID';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NALTER"."CASEID" IS '案件基本信息ID';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NALTER"."DATADEPT" IS '数据来源单位名称';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NALTER"."DATADEPTUNISCID" IS '数据来源单位统一社会信用代码';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NALTER"."PENALTAUTH" IS '作出变更决定机关代码（代码标识符：CA11）';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NALTER"."PENALTAUTH_CN" IS '作出变更决定机关（中文名称）';


CREATE TABLE "AICRI"."KSQY_CASE_PUB_NBASEINFO"
(
"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) ;

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


CREATE TABLE "AICRI"."KSQY_CASE_PUB_NDOC"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NDOC"."CASEDECBOOKID" IS '处罚决定书ID';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NDOC"."CASEID" IS '案件基本信息ID';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NDOC"."FILENAME" IS '行政处罚决定书文件名称';
COMMENT ON COLUMN "AICRI"."KSQY_CASE_PUB_NDOC"."REMARK" IS '备注';


CREATE TABLE "AICRI"."KSQY_DR_RANINSRES"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."CHECKRESID" IS '抽查结果ID';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."ENTNAME" IS '市场主体名称';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."INSAUTH" IS '检查机关';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."INSAUTHCODE" IS '检查机关代码（代码标识符：CA11）';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."INSDATE" IS '检查完成日期';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."INSENTERID" IS '抽查市场主体ID';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."PRIPID" IS '主体身份代码（代码标识符：CA14）';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."PUBDATE" IS '公告日期';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."RANINSCHECKRES" IS '检查结果（代码标识符：CD88）';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."RANINSCHECKRESNAME" IS '检查结果（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."RANINSITEM" IS '抽查事项（代码标识符：CD89）';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."RANINSITEMNAME" IS '抽查事项（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."RANINSPLANID" IS '抽查计划编号（代码标识符：CD86）';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."RANINSPLANNAME" IS '抽查计划名称';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."RANINSTASKID" IS '抽查任务编号（代码标识符：CD87）';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."RANINSTASKNAME" IS '抽查任务名称';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."RANINSTYPE" IS '抽查类型（代码标识符：CD90）';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."RANINSTYPENAME" IS '抽查类型（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."REGNO" IS '注册号（代码标识符：CA15）';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."REMARK" IS '备注';
COMMENT ON COLUMN "AICRI"."KSQY_DR_RANINSRES"."UNISCID" IS '统一社会信用代码（代码标识符：CA91）';


CREATE TABLE "AICRI"."KSQY_E_ALTER_RECODER"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_ALTER_RECODER"."ALTAF" IS '变更后内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_ALTER_RECODER"."ALTBE" IS '变更前内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_ALTER_RECODER"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_ALTER_RECODER"."ALTID" IS '变更项ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_ALTER_RECODER"."ALTITEM" IS '变更事项（代码标识符：CD04）';
COMMENT ON COLUMN "AICRI"."KSQY_E_ALTER_RECODER"."ALTITEM_CN" IS '变更事项（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_ALTER_RECODER"."PRIPID" IS '主体身份代码';


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

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


CREATE TABLE "AICRI"."KSQY_E_IM_CASALT"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASALT"."ALT" IS '变更内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASALT"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASALT"."CASEALTID" IS '行政处罚变更ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASALT"."CASEID" IS '行政处罚ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASALT"."PENAUTH" IS '作出变更决定机关名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASALT"."REMARK" IS '备注';


CREATE TABLE "AICRI"."KSQY_E_IM_CASE"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."CASEID" IS '行政处罚ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."FORFAM" IS '没收金额';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."ILLEGACTTYPE" IS '违法行为类型';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."JUDAUTH" IS '作出行政处罚决定机关名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."PENAM" IS '罚款金额';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."PENCONTENT" IS '处罚内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."PENDECISSDATE" IS '作出处罚决定书日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."PENDECNO" IS '处罚决定书文号';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."PENTYPE" IS '处罚种类（代码标识符：CE16）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."PENTYPE_CN" IS '处罚种类（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."PRIPID" IS '主体身份代码（代码标识符：CA14）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."REGNO" IS '注册号（代码标识符：CA15）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."REMARK" IS '备注';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_CASE"."UNISCID" IS '统一社会信用代码（代码标识符：CA91）';


CREATE TABLE "AICRI"."KSQY_E_IM_INVACTDETAIL"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVACTDETAIL"."ACCONAM" IS '实缴出资额';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVACTDETAIL"."CONDATE" IS '实缴出资日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVACTDETAIL"."CONFORM" IS '实缴出资方式（代码标识符：CA22）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVACTDETAIL"."CONFORM_CN" IS '实缴出资方式（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVACTDETAIL"."INV" IS '股东/发起人名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVACTDETAIL"."INVID" IS '出资人ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVACTDETAIL"."PAIDID" IS '实缴ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVACTDETAIL"."PUBLICDATE" IS '公示日期';


CREATE TABLE "AICRI"."KSQY_E_IM_INVESTMENT"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVESTMENT"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVESTMENT"."INV" IS '股东/发起人名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVESTMENT"."INVID" IS '出资人ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVESTMENT"."PRIPID" IS '主体身份代码（代码标识符：CA14）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVESTMENT"."REGNO" IS '注册号（代码标识符：CA15）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVESTMENT"."UNISCID" IS '统一社会信用代码（代码标识符：CA91）';


CREATE TABLE "AICRI"."KSQY_E_IM_INVPRODETAIL"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVPRODETAIL"."CONDATE" IS '认缴出资日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVPRODETAIL"."CONFORM" IS '认缴出资方式（代码标识符：CA22）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVPRODETAIL"."CONFORM_CN" IS '认缴出资方式（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVPRODETAIL"."INV" IS '股东/发起人名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVPRODETAIL"."INVID" IS '出资人ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVPRODETAIL"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVPRODETAIL"."SUBCONAM" IS '认缴出资额';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVPRODETAIL"."SUBID" IS '认缴ID';


CREATE TABLE "AICRI"."KSQY_E_IM_INVSRALT"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVSRALT"."ALTDATE" IS '股权变更日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVSRALT"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVSRALT"."INV" IS '股东名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVSRALT"."INVALTID" IS '股权变更信息代码';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVSRALT"."PRIPID" IS '主体身份代码（代码标识符：CA14）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVSRALT"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVSRALT"."REGNO" IS '注册号（代码标识符：CA15）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVSRALT"."TRANSAMPRAF" IS '转让后股权比例';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVSRALT"."TRANSAMPRBF" IS '转让前股权比例';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVSRALT"."UNISCID" IS '统一社会信用代码（代码标识符：CA91）';


CREATE TABLE "AICRI"."KSQY_E_IM_INVUPDATE"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVUPDATE"."ALITEM" IS '变更事项';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVUPDATE"."ALTAF" IS '变更后内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVUPDATE"."ALTBE" IS '变更前内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVUPDATE"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVUPDATE"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVUPDATE"."INVUID" IS '出资信息修改ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVUPDATE"."PRIPID" IS '主体身份代码（代码标识符：CA14）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVUPDATE"."REGNO" IS '注册号（代码标识符：CA15）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_INVUPDATE"."UNISCID" IS '统一社会信用代码（代码标识符：CA91）';


CREATE TABLE "AICRI"."KSQY_E_IM_IPPLDG"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."CANDATE" IS '注销日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."EQUPLECANREA" IS '注销原因';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."IMPORG" IS '知识产权质权人名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."INVALIDDATE" IS '其它无效日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."INVALIDREA" IS '其它无效原因';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."KINDS" IS '种类代码';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."PLEDGOR" IS '知识产权出质人名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."PLEID" IS '出质ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."PLEREGPERFROM" IS '知识产权质权登记期限自';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."PLEREGPERTO" IS '知识产权质权登记期限至';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."PRIPID" IS '主体身份代码（代码标识符：CA14）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."REGNO" IS '注册号（代码标识符：CA15）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."TMNAME" IS '名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."TMREGNO" IS '商品注册号';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."TYPE" IS '状态';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."TYPENAME" IS '状态名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDG"."UNISCID" IS '统一社会信用代码（代码标识符：CA91）';


CREATE TABLE "AICRI"."KSQY_E_IM_IPPLDGALT"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDGALT"."ALT" IS '变更事项';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDGALT"."ALTAF" IS '变更后内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDGALT"."ALTBE" IS '变更前内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDGALT"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDGALT"."PLEALTID" IS '知识产权出质变更ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_IPPLDGALT"."PLEID" IS '知识产权出质ID';


CREATE TABLE "AICRI"."KSQY_E_IM_PERMIT"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."CANDATE" IS '注销日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."EQUPLECANREA" IS '注销原因';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."INVALIDDATE" IS '其它无效日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."INVALIDREA" IS '其它无效原因';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."LICANTH" IS '许可机关';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."LICID" IS '许可信息ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."LICITEM" IS '许可内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."LICNAME_CN" IS '许可文件名称（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."LICNO" IS '许可文件编号';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."PRIPID" IS '主体身份代码（代码标识符：CA14）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."PUBLICDATE" IS '公示日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."REGNO" IS '注册号（代码标识符：CA15）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."REVDATE" IS '被吊销日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."SUGREVREASON" IS '被吊销原因';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."TYPE" IS '状态';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."UNISCID" IS '统一社会信用代码（代码标识符：CA91）';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."VALFROM" IS '有效期自';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PERMIT"."VALTO" IS '有效期至';


CREATE TABLE "AICRI"."KSQY_E_IM_PRMTALT"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PRMTALT"."ALT" IS '变更事项';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PRMTALT"."ALTAF" IS '变更后内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PRMTALT"."ALTBE" IS '变更前内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PRMTALT"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PRMTALT"."LICALTID" IS '许可变更ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_IM_PRMTALT"."LICID" IS '许可ID';


CREATE TABLE "AICRI"."KSQY_E_LI_ILLDISDETAIL"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."CERNO" IS '法定代表人/负责人证件号码';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."CERTYPE" IS '法定代表人/负责人证件类型（代码标识符：CB16）';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."DECORG" IS '列入作出决定机关（代码标识符：CA11）';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."DECORG_CN" IS '列入作出决定机关（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."DEDOCNUM" IS '列入文号';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."ILLID" IS '严重违法失信ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."NAME" IS '法定代表人/负责人人员姓名';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."RECORG" IS '移出作出决定机关（代码标识符：CA11）';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."RECORG_CN" IS '移出作出决定机关（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."REDOCNUM" IS '移出文号';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."REMDATE" IS '移出日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."REMEXCPRES" IS '移出事由（代码标识符：CD74）';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."REMEXCPRES_CN" IS '移出事由（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."SERILLREA" IS '列入事由/情形（代码标识符：CD73）';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."SERILLREA_CN" IS '列入事由/情形（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISDETAIL"."UNISCID" IS '统一社会信用代码（代码标识符：CA91）';


CREATE TABLE "AICRI"."KSQY_E_LI_ILLDISHONESTY"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISHONESTY"."ABNTIME" IS '列入日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISHONESTY"."CERNO" IS '法定代表人/负责人证件号码';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISHONESTY"."CERTYPE" IS '法定代表人/负责人证件类型（代码标识符：CB16）';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISHONESTY"."DECORG" IS '列入作出决定机关（代码标识符：CA11）';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISHONESTY"."DECORG_CN" IS '列入作出决定机关（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISHONESTY"."DEDOCNUM" IS '列入文号';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISHONESTY"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISHONESTY"."ILLID" IS '严重违法失信ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISHONESTY"."NAME" IS '法定代表人/负责人人员姓名';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISHONESTY"."PRIPID" IS '主体身份代码';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISHONESTY"."REGNO" IS '注册号';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISHONESTY"."SERILLREA" IS '列入事由/情形（代码标识符：CD73）';
COMMENT ON COLUMN "AICRI"."KSQY_E_LI_ILLDISHONESTY"."UNISCID" IS '统一社会信用代码（代码标识符：CA91）';


CREATE TABLE "AICRI"."KSQY_E_OT_NCASALT"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NCASALT"."ALT" IS '变更事项';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NCASALT"."ALTAF" IS '变更后内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NCASALT"."ALTBE" IS '变更前内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NCASALT"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NCASALT"."CASEALTID" IS '变更ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NCASALT"."CASEID" IS '案件基本信息ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NCASALT"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NCASALT"."DATADEPTUNISCID" IS '数据来源单位统一社会信用代码';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NCASALT"."PENALTAUTH" IS '作出变更决定机关代码（代码标识符：CA11）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NCASALT"."PENALTAUTH_CN" IS '作出变更决定机关（中文名称）';


CREATE TABLE "AICRI"."KSQY_E_OT_NCASE"
(
"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 "AICRI"."KSQY_E_OT_NPERMIT"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."AC_CERNO" IS '行政相对人（自然人）证件号码';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."AC_CERTYPE" IS '行政相对人（自然人）证件类型（代码标识符：CB16）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."ACTYPE" IS '行政相对人类型';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."CERNO" IS '证件号码';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."CERTYPE" IS '证件类型（代码标识符：CB16）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."DATADEPT" IS '数据来源单位名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."DATADEPTUNISCID" IS '数据来源单位统一社会信用代码';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."INSCERCODE" IS '行政相对人代码_5（事业单位证书号）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."INVALIDDATE" IS '无效日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."INVALIDREA" IS '无效原因';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LEREP" IS '法定代表人';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICANTH" IS '许可机关（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICANTHNO" IS '许可机关（代码）（代码标识符：CA11）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICANTHUNISCID" IS '许可机关统一社会信用代码';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICDECCODE" IS '行政许可决定文书号';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICDECDATE" IS '许可决定日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICDECNAME" IS '行政许可决定文书名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICID" IS '许可ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICITEM" IS '许可内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICNAME" IS '许可文件名称（代码标识符：CA25）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICNAME_CN" IS '许可文件名称(中文名称)';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICNO" IS '许可文件编号';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICSTATE" IS '许可文件状态（代码标识符：CA26）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICTYPE" IS '许可类别代码（代码标识符：CA33）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."LICTYPE_CN" IS '许可类别（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."NAME" IS '行政相对人（自然人）姓名';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."ORGCODE" IS '组织机构代码（代码标识符：CA03）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."PRIPID" IS '主体身份代码（代码标识符：CA14）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."REGNO" IS '注册号（代码标识符：CA15）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."REMARK" IS '备注';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."SOCORGCODE" IS '行政相对人代码_6（社会组织登记证号）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."TAXID" IS '税务登记号';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."UNISCID" IS '统一社会信用代码';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."VALIPERIFROM" IS '有效期自';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPERMIT"."VALIPERITO" IS '有效期至';


CREATE TABLE "AICRI"."KSQY_E_OT_NPRMTALT"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPRMTALT"."ALT" IS '变更事项';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPRMTALT"."ALTAF" IS '变更后内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPRMTALT"."ALTBE" IS '变更前内容';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPRMTALT"."ALTDATE" IS '变更日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPRMTALT"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPRMTALT"."DATADEPTUNISCID" IS '数据来源单位统一社会信用代码';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPRMTALT"."LICALTID" IS '许可变更ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPRMTALT"."LICID" IS '许可ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPRMTALT"."PENALTAUTH" IS '作出变更决定机关代码（代码标识符：CA11）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_NPRMTALT"."PENALTAUTH_CN" IS '作出变更决定机关（中文名称）';


CREATE TABLE "AICRI"."KSQY_E_OT_SPOTCHECK"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_OT_SPOTCHECK"."DATADEPT" IS '数据来源单位';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_SPOTCHECK"."ENTNAME" IS '企业（机构）名称';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_SPOTCHECK"."INSAUTH" IS '检查实施机关';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_SPOTCHECK"."INSAUTH_CN" IS '检查实施机关（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_SPOTCHECK"."INSCHECKRES" IS '抽查检查结果';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_SPOTCHECK"."INSCHECKRES_CN" IS '抽查检查结果（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_SPOTCHECK"."INSDATE" IS '抽查检查日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_SPOTCHECK"."INSID" IS '抽查检查ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_SPOTCHECK"."INSTYPE" IS '抽查检查类型';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_SPOTCHECK"."PRIPID" IS '主体身份代码（代码标识符：CA14）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_SPOTCHECK"."REGNO" IS '注册号（代码标识符：CA15）';
COMMENT ON COLUMN "AICRI"."KSQY_E_OT_SPOTCHECK"."UNISCID" IS '统一社会信用代码（代码标识符：CA91）';


CREATE TABLE "AICRI"."KSQY_E_PUB_SPOTCHECK"
(
"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) ;

COMMENT ON COLUMN "AICRI"."KSQY_E_PUB_SPOTCHECK"."INSAUTH" IS '检查实施机关（代码标识符：CA11）';
COMMENT ON COLUMN "AICRI"."KSQY_E_PUB_SPOTCHECK"."INSAUTH_CN" IS '检查实施机关（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_PUB_SPOTCHECK"."INSDATE" IS '抽查检查日期';
COMMENT ON COLUMN "AICRI"."KSQY_E_PUB_SPOTCHECK"."INSID" IS '抽查检查ID';
COMMENT ON COLUMN "AICRI"."KSQY_E_PUB_SPOTCHECK"."INSRES" IS '抽查检查结果（代码标识符：CD81）';
COMMENT ON COLUMN "AICRI"."KSQY_E_PUB_SPOTCHECK"."INSRES_CN" IS '抽查检查结果（中文名称）';
COMMENT ON COLUMN "AICRI"."KSQY_E_PUB_SPOTCHECK"."INSTYPE" IS '抽查检查类型';
COMMENT ON COLUMN "AICRI"."KSQY_E_PUB_SPOTCHECK"."PRIPID" IS '主体身份代码（代码标识符：CA14）';


