fabricexplorer.sql 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /*
  2. Navicat MySQL Data Transfer
  3. Source Server : 172.16.10.162
  4. Source Server Type : MySQL
  5. Source Server Version : 50635
  6. Source Host : 172.16.10.162
  7. Source Database : fabricexplorer
  8. Target Server Type : MySQL
  9. Target Server Version : 50635
  10. File Encoding : utf-8
  11. Date: 07/07/2017 10:14:31 AM
  12. */
  13. DROP DATABASE IF EXISTS `fabricexplorer`;
  14. CREATE DATABASE fabricexplorer;
  15. use fabricexplorer;
  16. SET NAMES utf8;
  17. SET FOREIGN_KEY_CHECKS = 0;
  18. -- ----------------------------
  19. -- Table structure for `blocks`
  20. -- ----------------------------
  21. DROP TABLE IF EXISTS `blocks`;
  22. CREATE TABLE `blocks` (
  23. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  24. `blocknum` int(11) DEFAULT NULL,
  25. `datahash` varchar(256) DEFAULT NULL,
  26. `prehash` varchar(256) DEFAULT NULL,
  27. `channelname` varchar(128) DEFAULT NULL,
  28. `txcount` int(11) DEFAULT NULL,
  29. PRIMARY KEY (`id`)
  30. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='blocks';
  31. -- ----------------------------
  32. -- Table structure for `chaincodes`
  33. -- ----------------------------
  34. DROP TABLE IF EXISTS `chaincodes`;
  35. CREATE TABLE `chaincodes` (
  36. `id` int(11) NOT NULL AUTO_INCREMENT,
  37. `name` varchar(255) DEFAULT NULL,
  38. `version` varchar(255) DEFAULT NULL,
  39. `path` varchar(255) DEFAULT NULL,
  40. `channelname` varchar(255) DEFAULT NULL,
  41. `txcount` int(11) DEFAULT '0',
  42. PRIMARY KEY (`id`)
  43. ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
  44. -- ----------------------------
  45. -- Table structure for `channel`
  46. -- ----------------------------
  47. DROP TABLE IF EXISTS `channel`;
  48. CREATE TABLE `channel` (
  49. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  50. `name` varchar(64) DEFAULT NULL,
  51. `blocks` int(11) DEFAULT NULL,
  52. `trans` int(11) DEFAULT NULL,
  53. PRIMARY KEY (`id`)
  54. ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='channel';
  55. -- ----------------------------
  56. -- Table structure for `peer`
  57. -- ----------------------------
  58. DROP TABLE IF EXISTS `peer`;
  59. CREATE TABLE `peer` (
  60. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  61. `org` int(11) DEFAULT NULL,
  62. `name` varchar(64) DEFAULT NULL,
  63. `mspid` varchar(64) DEFAULT NULL,
  64. `requests` varchar(64) DEFAULT NULL,
  65. `events` varchar(64) DEFAULT NULL,
  66. `server_hostname` varchar(64) DEFAULT NULL,
  67. `createdt` datetime DEFAULT NULL,
  68. PRIMARY KEY (`id`)
  69. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='peer';
  70. -- ----------------------------
  71. -- Table structure for `peer_ref_channel`
  72. -- ----------------------------
  73. DROP TABLE IF EXISTS `peer_ref_channel`;
  74. CREATE TABLE `peer_ref_channel` (
  75. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  76. `peerid` int(11) DEFAULT NULL,
  77. `channelid` int(11) DEFAULT NULL,
  78. PRIMARY KEY (`id`)
  79. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='';
  80. -- ----------------------------
  81. -- Table structure for `transaction`
  82. -- ----------------------------
  83. DROP TABLE IF EXISTS `transaction`;
  84. CREATE TABLE `transaction` (
  85. `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id',
  86. `channelname` varchar(64) DEFAULT NULL,
  87. `blockid` int(11) DEFAULT NULL,
  88. `txhash` varchar(256) DEFAULT NULL,
  89. `createdt` datetime DEFAULT NULL,
  90. `chaincodename` varchar(255) DEFAULT NULL,
  91. PRIMARY KEY (`id`)
  92. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='transtaion';
  93. -- ----------------------------
  94. -- Table structure for `write_lock`
  95. -- ----------------------------
  96. DROP TABLE IF EXISTS `write_lock`;
  97. CREATE TABLE `write_lock` (
  98. `write_lock` int(1) NOT NULL AUTO_INCREMENT,
  99. PRIMARY KEY (`write_lock`)
  100. ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
  101. SET FOREIGN_KEY_CHECKS = 1;