CREATE TABLE sy_cs_mm_cn_bond_risk_detail
(
id
bigint(20) NOT NULL AUTO_INCREMENT COMMENT ‘自增id’,
bondId
int(11) DEFAULT NULL COMMENT ‘债券id’,
secuCode
varchar(10) DEFAULT NULL COMMENT ‘债券代码’,
sname
varchar(100) DEFAULT NULL COMMENT ‘债券简称’,
cname
varchar(200) DEFAULT NULL COMMENT ‘债券全称’,
issuer
varchar(200) DEFAULT NULL COMMENT ‘债券发行人’,
secuMarket
int(11) DEFAULT NULL COMMENT ‘证券市场’,
underwriter
varchar(200) DEFAULT NULL COMMENT ‘债券主承销商’,
startDate
datetime DEFAULT NULL COMMENT ‘债券起息日’,
endDate
datetime DEFAULT NULL COMMENT ‘债券到期日’,
subjectType
varchar(50) DEFAULT NULL COMMENT ‘事项主体类型’,
websiteSnapshot
varchar(1000) DEFAULT NULL COMMENT ‘网站截图url’,
eventId
varchar(100) NOT NULL COMMENT ‘事件标识’,
eventType
varchar(50) DEFAULT NULL COMMENT ‘事件类型’,
eventSubject
varchar(100) DEFAULT NULL COMMENT ‘事件主体’,
eventNum1
varchar(100) DEFAULT NULL COMMENT ‘文书号1’,
eventNum2
varchar(100) DEFAULT NULL COMMENT ‘文书号2’,
eventNum3
varchar(100) DEFAULT NULL COMMENT ‘文书号3’,
party1
varchar(1000) DEFAULT NULL COMMENT ‘涉事方1’,
party2
varchar(1000) DEFAULT NULL COMMENT ‘涉事方2’,
party3
varchar(1000) DEFAULT NULL COMMENT ‘涉事方3’,
cash1
decimal(19,4) DEFAULT NULL COMMENT ‘涉事金额1(人民币元)’,
cash2
decimal(19,4) DEFAULT NULL COMMENT ‘涉事金额2(人民币元)’,
cash3
decimal(19,4) DEFAULT NULL COMMENT ‘涉事金额3(人民币元)’,
label1
varchar(100) DEFAULT NULL COMMENT ‘事件标签1’,
label2
varchar(100) DEFAULT NULL COMMENT ‘事件标签2’,
label3
varchar(100) DEFAULT NULL COMMENT ‘事件标签3’,
priority
varchar(50) DEFAULT NULL COMMENT ‘重要程度’,
eventDesc
text DEFAULT NULL COMMENT ‘事件描述’,
detail
text DEFAULT NULL COMMENT ‘事件详情’,
eventSrc
varchar(100) DEFAULT NULL COMMENT ‘事件来源’,
eventUrl
varchar(1000) DEFAULT NULL COMMENT ‘事件来源链接’,
eventTime
datetime DEFAULT NULL COMMENT ‘事件发生时间’,
endTime
datetime DEFAULT NULL COMMENT ‘事件结束时间’,
pubTime
datetime DEFAULT NULL COMMENT ‘事件发布时间’,
subTime
datetime DEFAULT NULL COMMENT ‘事件获取时间’,
relationLink
text DEFAULT NULL COMMENT ‘关系链路’,
createDate
date DEFAULT NULL COMMENT ‘生成日期’,
secuMarket2
varchar(50) NOT NULL COMMENT ‘债券市场-zxjt’,
fingerId
varchar(100) NOT NULL COMMENT ‘数据指纹id’,
dataStatus
int(4) NOT NULL COMMENT ‘数据状态’,
createTime
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT ‘创建时间’,
modifyTime
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT ‘修改时间’,
PRIMARY KEY (id
),
UNIQUE KEY fingerId_unique
(fingerId
),
KEY eventType_index
(eventType
),
KEY eventSubject_index
(eventSubject
),
KEY bondId_index
(bondId
),
KEY pubTime_index
(pubTime
),
KEY modifyTime_idx
(modifyTime
),
KEY index_pei
(startDate
,eventId
,issuer
),
KEY startDate_index
(startDate
),
KEY underwriter_index
(underwriter
),
KEY subTime_index
(subTime
),
KEY issuer_index
(issuer
),
KEY pub_eventid_issuer_idx
(pubTime
,eventId
,issuer
)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=1209327404 COMMENT=‘债券信批表’