同步table
This commit is contained in:
parent
a56ad31eab
commit
2768d7b3c3
@ -54,4 +54,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2017-03-01 12:33:40
|
||||
-- Dump completed on 2017-03-02 12:31:57
|
||||
|
@ -25,10 +25,10 @@ DROP TABLE IF EXISTS `Login`;
|
||||
CREATE TABLE `Login` (
|
||||
`id` bigint(10) NOT NULL AUTO_INCREMENT,
|
||||
`userId` bigint(15) NOT NULL,
|
||||
`type` tinyint(2) NOT NULL,
|
||||
`type` tinyint(1) NOT NULL,
|
||||
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=1488428891642 DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
@ -37,6 +37,7 @@ CREATE TABLE `Login` (
|
||||
|
||||
LOCK TABLES `Login` WRITE;
|
||||
/*!40000 ALTER TABLE `Login` DISABLE KEYS */;
|
||||
INSERT INTO `Login` VALUES (1488364481245,82001,0,'2017-03-01 10:34:41'),(1488364492505,82001,0,'2017-03-01 10:34:52'),(1488364526194,82001,0,'2017-03-01 10:35:26'),(1488364559063,82001,0,'2017-03-01 10:35:59'),(1488364651645,82001,0,'2017-03-01 10:37:31'),(1488364754738,82001,0,'2017-03-01 10:39:14'),(1488364860440,82001,0,'2017-03-01 10:41:00'),(1488364956150,82001,0,'2017-03-01 10:42:36'),(1488364962529,82001,0,'2017-03-01 10:42:42'),(1488365716746,82001,0,'2017-03-01 10:55:16'),(1488365732208,0,0,'2017-03-01 10:55:32'),(1488365796614,82001,0,'2017-03-01 10:56:36'),(1488365830506,82001,0,'2017-03-01 10:57:10'),(1488365865366,82001,0,'2017-03-01 10:57:45'),(1488368913127,82001,0,'2017-03-01 11:48:33'),(1488368925105,82001,0,'2017-03-01 11:48:45'),(1488368950806,82001,0,'2017-03-01 11:49:10'),(1488379391681,1488378558927,0,'2017-03-01 14:43:11'),(1488379908786,1488378449469,0,'2017-03-01 14:51:48'),(1488379961820,1488379935755,0,'2017-03-01 14:52:41'),(1488386227319,1488380023998,0,'2017-03-01 16:37:07'),(1488386452893,82001,0,'2017-03-01 16:40:52'),(1488386525081,82001,0,'2017-03-01 16:42:05'),(1488386595743,82001,0,'2017-03-01 16:43:15'),(1488386713599,82001,0,'2017-03-01 16:45:13'),(1488387166592,1488378449469,0,'2017-03-01 16:52:46'),(1488423710531,1488423676823,0,'2017-03-02 03:01:50'),(1488425664244,82001,0,'2017-03-02 03:34:24'),(1488426261713,82001,0,'2017-03-02 03:44:21'),(1488426370251,82001,0,'2017-03-02 03:46:10'),(1488426526302,82001,0,'2017-03-02 03:48:46'),(1488427645678,82001,0,'2017-03-02 04:07:25'),(1488428692387,82001,0,'2017-03-02 04:24:52'),(1488428867991,1488428734202,0,'2017-03-02 04:27:47'),(1488428891641,82001,0,'2017-03-02 04:28:11');
|
||||
/*!40000 ALTER TABLE `Login` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||
@ -49,4 +50,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2017-03-01 12:33:41
|
||||
-- Dump completed on 2017-03-02 12:31:57
|
||||
|
@ -53,4 +53,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2017-03-01 12:33:41
|
||||
-- Dump completed on 2017-03-02 12:31:56
|
||||
|
@ -53,4 +53,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2017-03-01 12:33:41
|
||||
-- Dump completed on 2017-03-02 12:31:57
|
||||
|
@ -31,7 +31,7 @@ CREATE TABLE `Request` (
|
||||
`date` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`mapedStructure` json DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=23 DEFAULT CHARSET=utf8;
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
@ -40,7 +40,7 @@ CREATE TABLE `Request` (
|
||||
|
||||
LOCK TABLES `Request` WRITE;
|
||||
/*!40000 ALTER TABLE `Request` DISABLE KEYS */;
|
||||
INSERT INTO `Request` VALUES (1,'POST','User','{\"disallowColumns\":\"id\", \"necessaryColumns\":\"name,phone\"}','\"User:toUser\":{}转化为\"toUser\":User的JSONObject ?','2017-02-01 11:19:51',NULL),(2,'POST','Moment','{\"disallowColumns\":\"id\", \"necessaryColumns\":\"userId,title,content,picture\"}',NULL,'2017-02-01 11:19:51',NULL),(3,'POST','Comment','{\"disallowColumns\":\"id\", \"necessaryColumns\":\"userId,workId,content\"}',NULL,'2017-02-01 11:19:51',NULL),(4,'PUT','User','{\"disallowColumns\":\"phone\", \"necessaryColumns\":\"id\"}',NULL,'2017-02-01 11:19:51',NULL),(6,'PUT','userPhone','{\"User\":{\"disallowColumns\":\"!\", \"necessaryColumns\":\"id,phone\"}}','! 表示其它所有,这里指necessaryColumns所有未包含的字段','2017-02-01 11:19:51',NULL),(7,'DELETE','Moment','{\"necessaryColumns\":\"id\"}','所有删除都要有currentUserId和loginPassword?','2017-02-01 11:19:51',NULL),(8,'DELETE','Comment','{\"necessaryColumns\":\"id\"}','disallowColumns没必要用于DELETE','2017-02-01 11:19:51',NULL),(9,'PUT','Password','{\"Password\":{\"disallowColumns\":\"!\", \"necessaryColumns\":\"id,value\"}, \"necessaryColumns\":\"oldPassword\"}','对安全要求高,不允许客户端改type,date等字段','2017-02-01 11:19:51',NULL),(10,'PUT','User.phone','{\"User\":{\"disallowColumns\":\"!\", \"necessaryColumns\":\"id,phone\"}}','! 表示其它所有,这里指necessaryColumns所有未包含的字段','2017-02-01 11:19:51',NULL),(13,'POST','MomentWithComment','{\"Moment\":{\"disallowColumns\":\"id\", \"necessaryColumns\":\"userId,title,content,picture\", \"Comment\":{\"disallowColumns\":\"id\", \"necessaryColumns\":\"userId,workId,content\"}}}','用的极少,可能根本用不上','2017-02-01 11:19:51',NULL),(14,'DELETE','Comment[]','{table:\"Comment\", \"id[]\":\",\"}','用的极少。多个table不好处理','2017-02-01 11:19:51',NULL),(15,'POST','User[]','{\"id[]\":\",\"}','用的比较少,导入联系人、添加进群常用。特殊处理:服务端指定table','2017-02-01 11:19:51',NULL),(16,'POST','User[]','{\"[]\":{\"User\":{\"id\":\"\"}}}','不用RequetParser,用单独的方法批量处理','2017-02-01 11:19:51',NULL),(17,'POST','User[]','{\"User\":[\"id\":\"\"]}','解释成16这种','2017-02-01 11:19:51',NULL),(18,'DELETE','User','{\"necessaryColumns\":\"id\"}','','2017-02-01 11:19:51',NULL),(19,'POST_GET','Password','{\"disallowColumns\":\"!\", \"necessaryColumns\":\"table,tableId\"}','table:String, tableId:Long 表示类型?还是String:table反过来写?','2017-02-18 12:03:17',NULL),(20,'POST_GET','Wallet','{\"Wallet\":{\"disallowColumns\":\"!\", \"necessaryColumns\":\"userId\"}, \"necessaryColumns\":\"currentUserId,loginPassword\"}',NULL,'2017-02-18 14:20:43',NULL),(21,'POST_GET','Wallet2','*','*表示接受任何形式的请求','2017-02-18 14:26:38',NULL),(22,'POST_GET','Login','{\"Password\":{\"disallowColumns\":\"!\", \"necessaryColumns\":\"table,phone,value\"}, \"User\":{\"necessaryColumns\":\"phone\"}}',NULL,'2017-02-18 14:20:43',NULL);
|
||||
INSERT INTO `Request` VALUES (1,'POST','User','{\"disallowColumns\":\"id\", \"necessaryColumns\":\"name,phone\"}','\"User:toUser\":{}转化为\"toUser\":User的JSONObject ?','2017-02-01 11:19:51',NULL),(2,'POST','Moment','{\"disallowColumns\":\"id\", \"necessaryColumns\":\"userId,title,content,picture\"}',NULL,'2017-02-01 11:19:51',NULL),(3,'POST','Comment','{\"disallowColumns\":\"id\", \"necessaryColumns\":\"userId,workId,content\"}',NULL,'2017-02-01 11:19:51',NULL),(4,'PUT','User','{\"disallowColumns\":\"phone\", \"necessaryColumns\":\"id\"}',NULL,'2017-02-01 11:19:51',NULL),(6,'PUT','userPhone','{\"User\":{\"disallowColumns\":\"!\", \"necessaryColumns\":\"id,phone\"}}','! 表示其它所有,这里指necessaryColumns所有未包含的字段','2017-02-01 11:19:51',NULL),(7,'DELETE','Moment','{\"necessaryColumns\":\"id\"}','所有删除都要有currentUserId和loginPassword?','2017-02-01 11:19:51',NULL),(8,'DELETE','Comment','{\"necessaryColumns\":\"id\"}','disallowColumns没必要用于DELETE','2017-02-01 11:19:51',NULL),(9,'PUT','Password','{\"Password\":{\"disallowColumns\":\"!\", \"necessaryColumns\":\"id,value\"}, \"necessaryColumns\":\"oldPassword\"}','对安全要求高,不允许客户端改type,date等字段','2017-02-01 11:19:51',NULL),(10,'PUT','User.phone','{\"User\":{\"disallowColumns\":\"!\", \"necessaryColumns\":\"id,phone\"}}','! 表示其它所有,这里指necessaryColumns所有未包含的字段','2017-02-01 11:19:51',NULL),(13,'POST','MomentWithComment','{\"Moment\":{\"disallowColumns\":\"id\", \"necessaryColumns\":\"userId,title,content,picture\", \"Comment\":{\"disallowColumns\":\"id\", \"necessaryColumns\":\"userId,workId,content\"}}}','用的极少,可能根本用不上','2017-02-01 11:19:51',NULL),(14,'DELETE','Comment[]','{table:\"Comment\", \"id[]\":\",\"}','用的极少。多个table不好处理','2017-02-01 11:19:51',NULL),(15,'POST','User[]','{\"id[]\":\",\"}','用的比较少,导入联系人、添加进群常用。特殊处理:服务端指定table','2017-02-01 11:19:51',NULL),(16,'POST','User[]','{\"[]\":{\"User\":{\"id\":\"\"}}}','不用RequetParser,用单独的方法批量处理','2017-02-01 11:19:51',NULL),(17,'POST','User[]','{\"User\":[\"id\":\"\"]}','解释成16这种','2017-02-01 11:19:51',NULL),(18,'DELETE','User','{\"necessaryColumns\":\"id\"}','','2017-02-01 11:19:51',NULL),(19,'POST_GET','Password','{\"disallowColumns\":\"!\", \"necessaryColumns\":\"table,tableId\"}','table:String, tableId:Long 表示类型?还是String:table反过来写?','2017-02-18 12:03:17',NULL),(20,'POST_GET','Wallet','{\"Wallet\":{\"disallowColumns\":\"!\", \"necessaryColumns\":\"userId\"}, \"necessaryColumns\":\"currentUserId,loginPassword\"}',NULL,'2017-02-18 14:20:43',NULL),(21,'POST_GET','Wallet2','*','*表示接受任何形式的请求','2017-02-18 14:26:38',NULL),(22,'POST_GET','Login','{\"Password\":{\"disallowColumns\":\"!\", \"necessaryColumns\":\"table,phone,value\"}, \"User\":{\"necessaryColumns\":\"phone\"}}',NULL,'2017-02-18 14:20:43',NULL),(23,'POST','Login','{\"disallowColumns\":\"!\", \"necessaryColumns\":\"userId,type\"}',NULL,'2017-02-18 14:20:43',NULL),(24,'POST','Verify','{\"disallowColumns\":\"!\", \"necessaryColumns\":\"id,code\"}',NULL,'2017-02-18 14:20:43',NULL),(25,'POST_GET','Verify','{\"necessaryColumns\":\"id\"}',NULL,'2017-02-18 14:20:43',NULL),(26,'DELETE','Verify','{\"disallowColumns\":\"!\", \"necessaryColumns\":\"id\"}',NULL,'2017-02-18 14:20:43',NULL);
|
||||
/*!40000 ALTER TABLE `Request` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||
@ -53,4 +53,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2017-03-01 12:33:40
|
||||
-- Dump completed on 2017-03-02 12:31:57
|
||||
|
File diff suppressed because one or more lines are too long
52
table/sys_Verify.sql
Normal file
52
table/sys_Verify.sql
Normal file
@ -0,0 +1,52 @@
|
||||
-- MySQL dump 10.13 Distrib 5.7.12, for osx10.9 (x86_64)
|
||||
--
|
||||
-- Host: localhost Database: sys
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 5.7.16
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8 */;
|
||||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
||||
/*!40103 SET TIME_ZONE='+00:00' */;
|
||||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
||||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
||||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
||||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
||||
|
||||
--
|
||||
-- Table structure for table `Verify`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `Verify`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `Verify` (
|
||||
`code` int(6) NOT NULL,
|
||||
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`id` bigint(15) NOT NULL COMMENT '一般存phone',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Dumping data for table `Verify`
|
||||
--
|
||||
|
||||
LOCK TABLES `Verify` WRITE;
|
||||
/*!40000 ALTER TABLE `Verify` DISABLE KEYS */;
|
||||
INSERT INTO `Verify` VALUES (5387,'2017-03-02 03:01:01',13000082001),(5542,'2017-03-02 04:25:23',15988125475);
|
||||
/*!40000 ALTER TABLE `Verify` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||
|
||||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
||||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2017-03-02 12:31:56
|
@ -51,4 +51,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2017-03-01 12:33:40
|
||||
-- Dump completed on 2017-03-02 12:31:56
|
||||
|
@ -50,4 +50,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2017-03-01 12:33:40
|
||||
-- Dump completed on 2017-03-02 12:31:57
|
||||
|
@ -51,4 +51,4 @@ UNLOCK TABLES;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
||||
|
||||
-- Dump completed on 2017-03-01 12:33:40
|
||||
-- Dump completed on 2017-03-02 12:31:57
|
||||
|
Loading…
Reference in New Issue
Block a user