Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
P
project-credit
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 2
    • Issues 2
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • 互联网应用开发
  • project-credit
  • Wiki
  • db

db · Changes

Page history
xiaolong.jin created page: db authored Sep 18, 2016 by 金小龙's avatar 金小龙
Hide whitespace changes
Inline Side-by-side
Showing with 24 additions and 1 deletion
+24 -1
  • db.md db.md +24 -1
  • No files found.
db.md
View page @ a7b90c17
......@@ -9,7 +9,7 @@ CREATE TABLE `api` (
`create_time` int(11) NOT NULL DEFAULT '0',
`last_upadte` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='接口表'
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='接口表';
INSERT INTO personal_credit.api (name, cn_name, `desc`, url, status, create_time, last_upadte) VALUES ('overdueClassify', '逾期', '逾期信息', 'https://i.trustutn.org/b/overdueClassify', 1, 0, '2016-08-15 09:35:23');
INSERT INTO personal_credit.api (name, cn_name, `desc`, url, status, create_time, last_upadte) VALUES ('loanClassify', '共债', '共债信息', 'https://i.trustutn.org/b/loanClassify', 1, 0, '2016-08-15 09:35:46');
......@@ -21,4 +21,27 @@ INSERT INTO personal_credit.api (name, cn_name, `desc`, url, status, create_time
INSERT INTO personal_credit.api (name, cn_name, `desc`, url, status, create_time, last_upadte) VALUES ('phoneinfo', '电话号码信息', '电话号码相关查询', 'https://i.trustutn.org/b/phoneinfo', 1, 0, '2016-09-01 06:25:41');
INSERT INTO personal_credit.api (name, cn_name, `desc`, url, status, create_time, last_upadte) VALUES ('phonetag', '电话号码标记', '电话号码标记查询', 'https://i.trustutn.org/phonetag', 1, 0, '2016-09-01 06:25:42');
INSERT INTO personal_credit.api (name, cn_name, `desc`, url, status, create_time, last_upadte) VALUES ('phoneMatch', '设备号匹配', '手机号设备号匹配查询', 'https://i.trustutn.org/b/phoneMatch', 1, 0, '2016-09-01 06:25:45');
```
```
CREATE TABLE `api_log` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
`api_id` int(11) NOT NULL DEFAULT '0' COMMENT '接口id',
`time_index` int(11) DEFAULT '0',
`id_card` bigint(20) DEFAULT '0' COMMENT '身份证号',
`name` varchar(50) DEFAULT '' COMMENT '姓名',
`phone` bigint(20) NOT NULL DEFAULT '0' COMMENT '手机号',
`imsi` bigint(20) NOT NULL DEFAULT '0' COMMENT '国际移动用户识别码',
`imei` bigint(20) NOT NULL DEFAULT '0',
`input_params` varchar(2000) NOT NULL DEFAULT '' COMMENT '传入参数',
`output_params` varchar(2000) NOT NULL DEFAULT '' COMMENT '返回结果',
`response_time` bigint(20) DEFAULT '0' COMMENT '接口响应时间',
`status` tinyint(4) NOT NULL DEFAULT '1' COMMENT '返回状态 0 调用失败 2 调用成功,但未命中 1调用成功且命中',
`create_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `idx_uast` (`user_id`,`api_id`,`status`,`time_index`),
KEY `idx_tuas` (`time_index`,`user_id`,`api_id`,`status`)
) ENGINE=InnoDB AUTO_INCREMENT=280043 DEFAULT CHARSET=utf8 COMMENT='接口调用日志表';
```
\ No newline at end of file
Clone repository
  • api
  • crontab
  • db
  • doc
  • files
  • Home
  • sql