GeezerVison is showing github.com — 更新table · jonike/APIJSON@513dd8c
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: table/sys_Comment.sql +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -52,4 +52,4 @@ UNLOCK TABLES; | 52 | 52 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | 53 | 53 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | 54 | 54 |
| 55 | | --- Dump completed on 2017-05-08 15:54:34 | | 55 | +-- Dump completed on 2017-06-17 23:02:16 |
Collapse file Copy file name to clipboardExpand all lines: table/sys_Login.sql +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -28,7 +28,7 @@ CREATE TABLE `Login` ( | 28 | 28 | `type` tinyint(1) NOT NULL, | 29 | 29 | `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | 30 | 30 | PRIMARY KEY (`id`) | 31 | | -) ENGINE=InnoDB AUTO_INCREMENT=1493891806373 DEFAULT CHARSET=utf8; | | 31 | +) ENGINE=InnoDB AUTO_INCREMENT=1493891806373 DEFAULT CHARSET=utf8 COMMENT='@deprecated,登录信息存session'; | 32 | 32 | /*!40101 SET character_set_client = @saved_cs_client */; | 33 | 33 |
| 34 | 34 | -- | @@ -50,4 +50,4 @@ UNLOCK TABLES; | 50 | 50 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | 51 | 51 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | 52 | 52 |
| 53 | | --- Dump completed on 2017-05-08 15:54:34 | | 53 | +-- Dump completed on 2017-06-17 23:02:18 |
Collapse file Copy file name to clipboardExpand all lines: table/sys_Moment.sql +2-2Lines changed: 2 additions & 2 deletions Large diffs are not rendered by default. Collapse file Copy file name to clipboardExpand all lines: table/sys_Pair.sql +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -49,4 +49,4 @@ UNLOCK TABLES; | 49 | 49 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | 50 | 50 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | 51 | 51 |
| 52 | | --- Dump completed on 2017-05-08 15:54:34 | | 52 | +-- Dump completed on 2017-06-17 23:02:18 |
Collapse file Copy file name to clipboardExpand all lines: table/sys_Password.sql +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -30,7 +30,7 @@ CREATE TABLE `Password` ( | 30 | 30 | `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | 31 | 31 | PRIMARY KEY (`_index`), | 32 | 32 | UNIQUE KEY `_index_UNIQUE` (`_index`) | 33 | | -) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8; | | 33 | +) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8 COMMENT='@deprecated,合并至UserPrivacy'; | 34 | 34 | /*!40101 SET character_set_client = @saved_cs_client */; | 35 | 35 |
| 36 | 36 | -- | @@ -52,4 +52,4 @@ UNLOCK TABLES; | 52 | 52 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | 53 | 53 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | 54 | 54 |
| 55 | | --- Dump completed on 2017-05-13 0:12:27 | | 55 | +-- Dump completed on 2017-06-17 23:02:19 |
Collapse file Copy file name to clipboardExpand all lines: table/sys_Request.sql +5-5Lines changed: 5 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,14 +24,14 @@ DROP TABLE IF EXISTS `Request`; | 24 | 24 | /*!40101 SET character_set_client = utf8 */; | 25 | 25 | CREATE TABLE `Request` ( | 26 | 26 | `id` int(11) NOT NULL AUTO_INCREMENT, | 27 | | - `version` tinyint(4) DEFAULT '0', | | 27 | + `version` tinyint(4) DEFAULT '0' COMMENT 'GET,HEAD可用任意结构访问任意开放内容,不需要这个字段。\n其它的操作因为写入了结构和内容,所以都需要,按照不同的version选择对应的structure。\n\n自动化版本管理:\nRequest JSON最外层可以传 “version”:Integer 。\n1.未传或 <= 0,用最新版。 “@order”:”version-“\n2.已传且 > 0,用version以上的可用版本的最低版本。 “@order”:”version+”, “version{}”:”>={version}”', | 28 | 28 | `tag` varchar(20) NOT NULL, | 29 | | - `method` varchar(10) DEFAULT 'GET', | | 29 | + `method` varchar(10) DEFAULT 'GET' COMMENT '只限于GET,HEAD外的操作方法。', | 30 | 30 | `structure` json NOT NULL, | 31 | 31 | `description` varchar(10000) DEFAULT NULL, | 32 | 32 | `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP, | 33 | 33 | PRIMARY KEY (`id`) | 34 | | -) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8 COMMENT='最好编辑完后删除主键,这样就是只读状态,不能随意更改。需要更改就重新加上主键。\n\n每次启动服务器时加载整个表到内存。\n这个表不可省略,model内注解的权限只是客户端能用的,其它可以保证即便服务端代码错误时也不会误删数据。'; | | 34 | +) ENGINE=InnoDB AUTO_INCREMENT=38 DEFAULT CHARSET=utf8 COMMENT='最好编辑完后删除主键,这样就是只读状态,不能随意更改。需要更改就重新加上主键。\n\n每次启动服务器时加载整个表到内存。\n这个表不可省略,model内注解的权限只是客户端能用的,其它可以保证即便服务端代码错误时也不会误删数据。'; | 35 | 35 | /*!40101 SET character_set_client = @saved_cs_client */; | 36 | 36 |
| 37 | 37 | -- | @@ -40,7 +40,7 @@ CREATE TABLE `Request` ( | 40 | 40 |
| 41 | 41 | LOCK TABLES `Request` WRITE; | 42 | 42 | /*!40000 ALTER TABLE `Request` DISABLE KEYS */; | 43 | | -INSERT INTO `Request` VALUES (1,0,'User','POST','{\"User\": {\"disallow\": \"id\", \"necessary\": \"name,phone\"}, \"necessary\": \"password,verify\"}','\"User:toUser\":{}转化为\"toUser\":User的JSONObject ?','2017-02-01 11:19:51'),(2,0,'Moment','POST','{\"disallow\": \"id\", \"necessary\": \"userId,pictureList\"}',NULL,'2017-02-01 11:19:51'),(3,0,'Comment','POST','{\"disallow\": \"id\", \"necessary\": \"userId,momentId,content\"}',NULL,'2017-02-01 11:19:51'),(4,0,'User','PUT','{\"disallow\": \"phone\", \"necessary\": \"id\"}',NULL,'2017-02-01 11:19:51'),(6,0,'Moment','DELETE','{\"put\": {\"Comment\": {\"momentId@\": \"Moment/id\"}}, \"Moment\": {\"necessary\": \"id\"}}','所有删除都要有currentUserId和loginPassword?','2017-02-01 11:19:51'),(7,0,'Comment','DELETE','{\"put\": {\"Comment:child\": {\"toId@\": \"Comment/id\"}}, \"Comment\": {\"necessary\": \"id\"}}','disallow没必要用于DELETE','2017-02-01 11:19:51'),(8,0,'Password','PUT','{\"Password\": {\"disallow\": \"!\", \"necessary\": \"id,password\"}, \"necessary\": \"oldPassword\"}','对安全要求高,不允许客户端改type,date等字段','2017-02-01 11:19:51'),(9,0,'User.phone','PUT','{\"User\": {\"disallow\": \"!\", \"necessary\": \"id,phone\"}}','! 表示其它所有,这里指necessary所有未包含的字段','2017-02-01 11:19:51'),(10,0,'MomentWithComment','POST','{\"Moment\": {\"Comment\": {\"disallow\": \"id\", \"necessary\": \"userId,workId,content\"}, \"disallow\": \"id\", \"necessary\": \"userId,title,content,picture\"}}','用的极少,可能根本用不上','2017-02-01 11:19:51'),(11,0,'User','DELETE','{\"necessary\": \"id\"}','','2017-02-01 11:19:51'),(12,0,'Password','POST_GET','{\"disallow\": \"!\", \"necessary\": \"id,model\"}','String:table, Long: tableId 限制类型?','2017-02-18 12:03:17'),(13,0,'Wallet','POST_GET','{\"Wallet\": {\"disallow\": \"!\", \"necessary\": \"id\"}, \"necessary\": \"currentUserId,loginPassword\"}',NULL,'2017-02-18 14:20:43'),(14,0,'Login','POST_GET','{\"User\": {\"necessary\": \"phone\"}, \"Password\": {\"disallow\": \"!\", \"necessary\": \"table,phone,value\"}}',NULL,'2017-02-18 14:20:43'),(15,0,'Login','POST','{\"disallow\": \"!\", \"necessary\": \"userId,type\"}',NULL,'2017-02-18 14:20:43'),(16,0,'Verify','POST','{\"disallow\": \"!\", \"necessary\": \"id,code\"}',NULL,'2017-02-18 14:20:43'),(17,0,'Verify','POST_GET','{\"necessary\": \"id\"}',NULL,'2017-02-18 14:20:43'),(18,0,'Verify','DELETE','{\"disallow\": \"!\", \"necessary\": \"id\"}',NULL,'2017-02-18 14:20:43'),(19,0,'Verify','POST_HEAD','{}',NULL,'2017-02-18 14:20:43'),(20,0,'Moment','PUT','{\"disallow\": \"userId,date\", \"necessary\": \"id\"}',NULL,'2017-02-01 11:19:51'),(30,0,'Wallet','POST','{\"Wallet\": {\"disallow\": \"!\", \"necessary\": \"id\"}, \"necessary\": \"payPassword\"}',NULL,'2017-02-18 14:20:43'),(31,0,'Wallet','PUT','{\"Wallet\": {\"verify\": {\"balance+&{}\": \">=-10000,<=10000\"}, \"disallow\": \"!\", \"necessary\": \"id,balance+\"}, \"Password\": {\"disallow\": \"!\", \"necessary\": \"id,password,type\"}}',NULL,'2017-02-18 14:20:43'),(32,0,'Wallet','DELETE','{\"Wallet\": {\"disallow\": \"!\", \"necessary\": \"id\"}, \"necessary\": \"payPassword\"}',NULL,'2017-02-18 14:20:43'),(33,0,'Login','POST_HEAD','{\"disallow\": \"!\", \"necessary\": \"userId,type\"}',NULL,'2017-02-18 14:20:43'),(34,0,'User','POST_GET','{}',NULL,NULL); | | 43 | +INSERT INTO `Request` VALUES (1,0,'User','POST','{\"User\": {\"disallow\": \"id\"}, \"necessary\": \"phone,password,verify\"}','\"User:toUser\":{}转化为\"toUser\":User的JSONObject ?','2017-02-01 11:19:51'),(2,0,'Moment','POST','{\"disallow\": \"id\", \"necessary\": \"userId,pictureList\"}',NULL,'2017-02-01 11:19:51'),(3,0,'Comment','POST','{\"disallow\": \"id\", \"necessary\": \"userId,momentId,content\"}',NULL,'2017-02-01 11:19:51'),(4,0,'User','PUT','{\"add\": {\"@role\": \"owner\"}, \"disallow\": \"phone\", \"necessary\": \"id\"}',NULL,'2017-02-01 11:19:51'),(6,0,'Moment','DELETE','{\"put\": {\"Comment\": {\"@role\": \"admin\", \"momentId@\": \"Moment/id\"}}, \"Moment\": {\"add\": {\"@role\": \"owner\"}, \"necessary\": \"id\"}}','所有删除都要有currentUserId和loginPassword?','2017-02-01 11:19:51'),(7,0,'Comment','DELETE','{\"put\": {\"Comment:child\": {\"@role\": \"admin\", \"toId@\": \"Comment/id\"}}, \"Comment\": {\"add\": {\"@role\": \"owner\"}, \"necessary\": \"id\"}}','disallow没必要用于DELETE','2017-02-01 11:19:51'),(8,0,'Password','PUT','{\"Password\": {\"disallow\": \"!\", \"necessary\": \"id,password\"}, \"necessary\": \"oldPassword\"}','对安全要求高,不允许客户端改type,date等字段','2017-02-01 11:19:51'),(9,0,'User.phone','PUT','{\"User\": {\"add\": {\"@role\": \"owner\"}, \"disallow\": \"!\", \"necessary\": \"id,phone\"}}','! 表示其它所有,这里指necessary所有未包含的字段','2017-02-01 11:19:51'),(10,0,'MomentWithComment','POST','{\"Moment\": {\"Comment\": {\"disallow\": \"id\", \"necessary\": \"userId,workId,content\"}, \"disallow\": \"id\", \"necessary\": \"userId,title,content,picture\"}}','用的极少,可能根本用不上','2017-02-01 11:19:51'),(12,0,'Password','POST_GET','{\"disallow\": \"!\", \"necessary\": \"id,model\"}','String:table, Long: tableId 限制类型?','2017-02-18 12:03:17'),(13,0,'Wallet','POST_GET','{\"Wallet\": {\"disallow\": \"!\", \"necessary\": \"id\"}}',NULL,'2017-02-18 14:20:43'),(14,0,'Login','POST_GET','{\"User\": {\"necessary\": \"phone\"}, \"Password\": {\"disallow\": \"!\", \"necessary\": \"table,phone,value\"}}',NULL,'2017-02-18 14:20:43'),(15,0,'Login','POST','{\"disallow\": \"!\", \"necessary\": \"userId,type\"}',NULL,'2017-02-18 14:20:43'),(16,0,'Verify','POST','{\"disallow\": \"!\", \"necessary\": \"id,code\"}',NULL,'2017-02-18 14:20:43'),(17,0,'Verify','POST_GET','{\"necessary\": \"id\"}',NULL,'2017-02-18 14:20:43'),(19,0,'Verify','POST_HEAD','{}','允许任意内容','2017-02-18 14:20:43'),(20,0,'Moment','PUT','{\"add\": {\"@role\": \"owner\"}, \"disallow\": \"userId,date\", \"necessary\": \"id\"}',NULL,'2017-02-01 11:19:51'),(30,0,'Wallet','POST','{\"Wallet\": {\"disallow\": \"!\", \"necessary\": \"id\"}, \"necessary\": \"payPassword\"}',NULL,'2017-02-18 14:20:43'),(31,0,'Wallet','PUT','{\"Wallet\": {\"verify\": {\"balance+&{}\": \">=-10000,<=10000\"}, \"disallow\": \"!\", \"necessary\": \"id,balance+\"}, \"Password\": {\"disallow\": \"!\", \"necessary\": \"id,password,type\"}}',NULL,'2017-02-18 14:20:43'),(32,0,'Wallet','DELETE','{\"Wallet\": {\"disallow\": \"!\", \"necessary\": \"id\"}, \"necessary\": \"payPassword\"}',NULL,'2017-02-18 14:20:43'),(33,0,'Login','POST_HEAD','{\"disallow\": \"!\", \"necessary\": \"userId,type\"}',NULL,'2017-02-18 14:20:43'),(34,0,'User','POST_GET','{}','允许任意内容',NULL),(35,0,'UserPrivacy','PUT','{\"add\": {\"@role\": \"owner\"}, \"necessary\": \"id\"}',NULL,'2017-02-01 11:19:51'),(37,0,'UserPrivacy','POST_GET','{\"add\": {\"@role\": \"owner\"}, \"necessary\": \"id\"}',NULL,'2017-06-12 16:05:51'); | 44 | 44 | /*!40000 ALTER TABLE `Request` ENABLE KEYS */; | 45 | 45 | UNLOCK TABLES; | 46 | 46 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | @@ -53,4 +53,4 @@ UNLOCK TABLES; | 53 | 53 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | 54 | 54 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | 55 | 55 |
| 56 | | --- Dump completed on 2017-05-22 21:06:42 | | 56 | +-- Dump completed on 2017-06-17 23:02:17 |
Collapse file Copy file name to clipboardExpand all lines: table/sys_Response.sql +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -53,4 +53,4 @@ UNLOCK TABLES; | 53 | 53 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | 54 | 54 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | 55 | 55 |
| 56 | | --- Dump completed on 2017-05-22 21:06:42 | | 56 | +-- Dump completed on 2017-06-17 23:02:19 |
Collapse file Copy file name to clipboardExpand all lines: table/sys_Verify.sql +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -25,7 +25,7 @@ DROP TABLE IF EXISTS `Verify`; | 25 | 25 | CREATE TABLE `Verify` ( | 26 | 26 | `id` bigint(15) NOT NULL COMMENT '一般存phone', | 27 | 27 | `type` int(2) DEFAULT NULL COMMENT '类型:\n验证码登录、注册验证手机、修改密码验证手机...', | 28 | | - `code` int(6) NOT NULL, | | 28 | + `verify` int(6) NOT NULL, | 29 | 29 | `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, | 30 | 30 | PRIMARY KEY (`id`) | 31 | 31 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | @@ -37,7 +37,7 @@ CREATE TABLE `Verify` ( | 37 | 37 |
| 38 | 38 | LOCK TABLES `Verify` WRITE; | 39 | 39 | /*!40000 ALTER TABLE `Verify` DISABLE KEYS */; | 40 | | -INSERT INTO `Verify` VALUES (13000031000,NULL,10442,'2017-05-04 09:30:02'),(13000031001,NULL,9445,'2017-05-04 09:31:30'),(13000038710,NULL,6002,'2017-05-04 09:56:38'),(13000038752,NULL,5879,'2017-04-22 13:03:37'),(13000038758,NULL,10077,'2017-04-22 13:09:06'),(13000038777,NULL,9175,'2017-05-02 17:51:45'),(13000038778,NULL,1191,'2017-05-02 17:56:13'),(13000038779,NULL,10350,'2017-05-02 18:09:41'),(13000038780,NULL,4200,'2017-05-02 18:10:00'),(13000038781,NULL,6674,'2017-05-02 18:18:02'),(13000038888,NULL,8186,'2017-04-29 15:35:33'),(13000038999,NULL,6167,'2017-05-03 18:27:16'),(13000039999,NULL,8566,'2017-05-04 07:31:38'),(13000082081,NULL,6760,'2017-05-04 07:32:01'),(13000093794,NULL,7563,'2017-04-23 08:29:20'); | | 40 | +INSERT INTO `Verify` VALUES (13000031000,NULL,10442,'2017-05-04 09:30:02'),(13000031001,NULL,9445,'2017-05-04 09:31:30'),(13000038710,NULL,6500,'2017-06-17 14:46:47'),(13000038752,NULL,5879,'2017-04-22 13:03:37'),(13000038758,NULL,10077,'2017-04-22 13:09:06'),(13000038777,NULL,9175,'2017-05-02 17:51:45'),(13000038778,NULL,1191,'2017-05-02 17:56:13'),(13000038779,NULL,10350,'2017-05-02 18:09:41'),(13000038780,NULL,4200,'2017-05-02 18:10:00'),(13000038781,NULL,6674,'2017-05-02 18:18:02'),(13000038888,NULL,8186,'2017-04-29 15:35:33'),(13000038999,NULL,6167,'2017-05-03 18:27:16'),(13000039999,NULL,8566,'2017-05-04 07:31:38'),(13000082001,NULL,4253,'2017-06-17 14:39:45'),(13000082011,NULL,5482,'2017-06-17 14:02:47'),(13000082013,NULL,1229,'2017-06-17 14:04:59'),(13000082081,NULL,6760,'2017-05-04 07:32:01'),(13000093794,NULL,7563,'2017-04-23 08:29:20'); | 41 | 41 | /*!40000 ALTER TABLE `Verify` ENABLE KEYS */; | 42 | 42 | UNLOCK TABLES; | 43 | 43 | /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; | @@ -50,4 +50,4 @@ UNLOCK TABLES; | 50 | 50 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | 51 | 51 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | 52 | 52 |
| 53 | | --- Dump completed on 2017-05-08 15:54:34 | | 53 | +-- Dump completed on 2017-06-17 23:02:17 |
Collapse file Copy file name to clipboardExpand all lines: table/sys_Wallet.sql +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -26,7 +26,7 @@ CREATE TABLE `Wallet` ( | 26 | 26 | `id` bigint(15) NOT NULL, | 27 | 27 | `balance` decimal(10,2) DEFAULT NULL, | 28 | 28 | `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP | 29 | | -) ENGINE=InnoDB DEFAULT CHARSET=utf8; | | 29 | +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='@deprecated,合并至UserPrivacy'; | 30 | 30 | /*!40101 SET character_set_client = @saved_cs_client */; | 31 | 31 |
| 32 | 32 | -- | @@ -48,4 +48,4 @@ UNLOCK TABLES; | 48 | 48 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | 49 | 49 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | 50 | 50 |
| 51 | | --- Dump completed on 2017-05-13 0:12:27 | | 51 | +-- Dump completed on 2017-06-17 23:02:18 |
Collapse file Copy file name to clipboardExpand all lines: table/sys__Statistics.sql +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -23,7 +23,7 @@ DROP TABLE IF EXISTS `_Statistics`; | 23 | 23 | /*!40101 SET @saved_cs_client = @@character_set_client */; | 24 | 24 | /*!40101 SET character_set_client = utf8 */; | 25 | 25 | CREATE TABLE `_Statistics` ( | 26 | | - `_index` int(11) NOT NULL AUTO_INCREMENT, | | 26 | + `id` int(11) NOT NULL AUTO_INCREMENT, | 27 | 27 | `model` varchar(20) NOT NULL, | 28 | 28 | `min` int(11) NOT NULL, | 29 | 29 | `max` int(11) NOT NULL, | @@ -32,7 +32,7 @@ CREATE TABLE `_Statistics` ( | 32 | 32 | `update` int(11) DEFAULT NULL, | 33 | 33 | `select` int(11) DEFAULT NULL, | 34 | 34 | `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP, | 35 | | - PRIMARY KEY (`_index`) | | 35 | + PRIMARY KEY (`id`) | 36 | 36 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='table的统计。\n貌似可以直接遍历每个表. min = min(_index); max = max(_index)\n增删改查统计可以遍历_Visit: SELECT count(0) WHERE operate = {operate} AND model = {model} \n\n每次启动服务器时加载整个表到内存。每次对其它表有操作都写入这里\n\n_index最大值max、最小值min。\n增删改查次数\n最后修改时间\n\n做分页优化能用到min,max,delete\n'; | 37 | 37 | /*!40101 SET character_set_client = @saved_cs_client */; | 38 | 38 |
| @@ -54,4 +54,4 @@ UNLOCK TABLES; | 54 | 54 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | 55 | 55 | /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | 56 | 56 |
| 57 | | --- Dump completed on 2017-05-08 15:54:34 | | 57 | +-- Dump completed on 2017-06-17 23:02:17 |
|