Skip to content

Commit

Permalink
更新table
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyLemon committed Jun 9, 2018
1 parent 3f04c57 commit e3ddeb6
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions table/sys_Comment.sql

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions table/sys_Document.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion table/sys_Login.sql
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2018-06-03 0:13:12
-- Dump completed on 2018-06-10 6:03:01
4 changes: 2 additions & 2 deletions table/sys_Moment.sql

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion table/sys_Praise.sql
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2018-06-03 0:13:11
-- Dump completed on 2018-06-10 6:02:59
4 changes: 2 additions & 2 deletions table/sys_Request.sql
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ CREATE TABLE `Request` (

LOCK TABLES `Request` WRITE;
/*!40000 ALTER TABLE `Request` DISABLE KEYS */;
INSERT INTO `Request` VALUES (1,1,'POST','register','{\"User\": {\"PUT\": {\"id@\": \"Privacy/id\"}, \"DISALLOW\": \"id\", \"NECESSARY\": \"name\"}, \"Privacy\": {\"UNIQUE\": \"phone\", \"VERIFY\": {\"phone?\": \"phone\"}, \"DISALLOW\": \"id\", \"NECESSARY\": \"_password,phone\"}}','UNIQUE校验phone是否已存在。VERIFY校验phone是否符合手机号的格式','2017-02-01 11:19:51'),(2,1,'POST','Moment','{\"ADD\": {\"pictureList\": [], \"praiseUserIdList\": []}, \"DISALLOW\": \"id\", \"NECESSARY\": \"userId\"}','ADD当没传pictureList和praiseUserIdList时用空数组[]补全,保证不会为null','2017-02-01 11:19:51'),(3,1,'POST','Comment','{\"DISALLOW\": \"id\", \"NECESSARY\": \"userId,momentId,content\"}','必须传userId,momentId,content,不允许传id','2017-02-01 11:19:51'),(4,1,'PUT','User','{\"ADD\": {\"@role\": \"owner\"}, \"DISALLOW\": \"phone\", \"NECESSARY\": \"id\"}','必须传id,不允许传phone。ADD当没传@role时用owner补全','2017-02-01 11:19:51'),(5,1,'DELETE','Moment','{\"PUT\": {\"Comment\": {\"@role\": \"admin\", \"momentId@\": \"Moment/id\"}}, \"Moment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}}',NULL,'2017-02-01 11:19:51'),(6,1,'DELETE','Comment','{\"PUT\": {\"Comment:child\": {\"@role\": \"admin\", \"toId@\": \"Comment/id\"}}, \"Comment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}}','disallow没必要用于DELETE','2017-02-01 11:19:51'),(8,1,'PUT','User-phone','{\"User\": {\"ADD\": {\"@role\": \"owner\"}, \"PUT\": {\"@condition\": \"_password\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,phone,_password\"}}','! 表示其它所有,这里指necessary所有未包含的字段','2017-02-01 11:19:51'),(14,1,'POST','Verify','{\"DISALLOW\": \"!\", \"NECESSARY\": \"phone,verify\"}','必须传phone,verify,其它都不允许传','2017-02-18 14:20:43'),(15,1,'GETS','Verify','{\"NECESSARY\": \"phone\"}','必须传phone','2017-02-18 14:20:43'),(16,1,'HEADS','Verify','{}','允许任意内容','2017-02-18 14:20:43'),(17,1,'PUT','Moment','{\"DISALLOW\": \"userId,date\", \"NECESSARY\": \"id\"}',NULL,'2017-02-01 11:19:51'),(21,1,'HEADS','Login','{\"DISALLOW\": \"!\", \"NECESSARY\": \"userId,type\"}',NULL,'2017-02-18 14:20:43'),(22,1,'GETS','User','{}','允许传任何内容,除了表对象','2017-02-18 14:20:43'),(23,1,'PUT','Privacy','{\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}','ADD当没传@role时用owner补全','2017-02-01 11:19:51'),(25,1,'PUT','Praise','{\"NECESSARY\": \"id\"}','必须传id','2017-02-01 11:19:51'),(26,1,'DELETE','Comment[]','{\"Comment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id{}\"}}','DISALLOW没必要用于DELETE','2017-02-01 11:19:51'),(27,1,'PUT','Comment[]','{\"Comment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id{}\"}}','DISALLOW没必要用于DELETE','2017-02-01 11:19:51'),(28,1,'PUT','Comment','{\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}','这里省略了Comment,因为tag就是Comment,Parser.getCorrectRequest会自动补全','2017-02-01 11:19:51'),(29,1,'GETS','login','{\"Privacy\": {\"DISALLOW\": \"id\", \"NECESSARY\": \"phone,_password\"}}',NULL,'2017-10-15 10:04:52'),(30,1,'PUT','balance+','{\"Privacy\": {\"VERIFY\": {\"balance+&{}\": \">=1,<=100000\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,balance+\"}}','验证balance+对应的值是否满足>=1且<=100000','2017-10-21 08:48:34'),(31,1,'PUT','balance-','{\"Privacy\": {\"PUT\": {\"@condition\": \"_password\"}, \"VERIFY\": {\"balance-&{}\": \">=1,<=10000\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,balance-,_password\"}}','PUT强制把_password作为WHERE条件','2017-10-21 08:48:34'),(32,2,'GETS','Privacy','{\"ADD\": {\"@role\": \"owner\"}, \"DISALLOW\": \"_password,_payPassword\", \"NECESSARY\": \"id\"}',NULL,'2017-06-12 16:05:51'),(33,2,'GETS','Privacy-CIRCLE','{\"Privacy\": {\"PUT\": {\"@role\": \"CIRCLE\", \"@column\": \"phone\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id\"}}',NULL,'2017-06-12 16:05:51'),(35,2,'POST','Document','{\"DISALLOW\": \"id\", \"NECESSARY\": \"userId,name,url,request\"}',NULL,'2017-11-26 08:34:41'),(36,2,'PUT','Document','{\"DISALLOW\": \"userId\", \"NECESSARY\": \"id\"}',NULL,'2017-11-26 08:35:15'),(37,2,'DELETE','Document','{\"ADD\": {\"@role\": \"owner\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id\"}',NULL,'2017-11-26 08:36:20');
INSERT INTO `Request` VALUES (1,1,'POST','register','{\"User\": {\"PUT\": {\"id@\": \"Privacy/id\"}, \"DISALLOW\": \"id\", \"NECESSARY\": \"name\"}, \"Privacy\": {\"UNIQUE\": \"phone\", \"VERIFY\": {\"phone?\": \"phone\"}, \"DISALLOW\": \"id\", \"NECESSARY\": \"_password,phone\"}}','UNIQUE校验phone是否已存在。VERIFY校验phone是否符合手机号的格式','2017-02-01 11:19:51'),(2,1,'POST','Moment','{\"ADD\": {\"pictureList\": [], \"praiseUserIdList\": []}, \"DISALLOW\": \"id\", \"NECESSARY\": \"userId\"}','ADD当没传pictureList和praiseUserIdList时用空数组[]补全,保证不会为null','2017-02-01 11:19:51'),(3,1,'POST','Comment','{\"DISALLOW\": \"id\", \"NECESSARY\": \"userId,momentId,content\"}','必须传userId,momentId,content,不允许传id','2017-02-01 11:19:51'),(4,1,'PUT','User','{\"ADD\": {\"@role\": \"owner\"}, \"DISALLOW\": \"phone\", \"NECESSARY\": \"id\"}','必须传id,不允许传phone。ADD当没传@role时用owner补全','2017-02-01 11:19:51'),(5,1,'DELETE','Moment','{\"PUT\": {\"Comment\": {\"@role\": \"admin\", \"momentId@\": \"Moment/id\"}}, \"Moment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}}',NULL,'2017-02-01 11:19:51'),(6,1,'DELETE','Comment','{\"PUT\": {\"Comment:child\": {\"@role\": \"admin\", \"toId@\": \"Comment/id\"}}, \"Comment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}}','disallow没必要用于DELETE','2017-02-01 11:19:51'),(8,1,'PUT','User-phone','{\"User\": {\"ADD\": {\"@role\": \"owner\"}, \"PUT\": {\"@combine\": \"_password\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,phone,_password\"}}','! 表示其它所有,这里指necessary所有未包含的字段','2017-02-01 11:19:51'),(14,1,'POST','Verify','{\"DISALLOW\": \"!\", \"NECESSARY\": \"phone,verify\"}','必须传phone,verify,其它都不允许传','2017-02-18 14:20:43'),(15,1,'GETS','Verify','{\"NECESSARY\": \"phone\"}','必须传phone','2017-02-18 14:20:43'),(16,1,'HEADS','Verify','{}','允许任意内容','2017-02-18 14:20:43'),(17,1,'PUT','Moment','{\"DISALLOW\": \"userId,date\", \"NECESSARY\": \"id\"}',NULL,'2017-02-01 11:19:51'),(21,1,'HEADS','Login','{\"DISALLOW\": \"!\", \"NECESSARY\": \"userId,type\"}',NULL,'2017-02-18 14:20:43'),(22,1,'GETS','User','{}','允许传任何内容,除了表对象','2017-02-18 14:20:43'),(23,1,'PUT','Privacy','{\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}','ADD当没传@role时用owner补全','2017-02-01 11:19:51'),(25,1,'PUT','Praise','{\"NECESSARY\": \"id\"}','必须传id','2017-02-01 11:19:51'),(26,1,'DELETE','Comment[]','{\"Comment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id{}\"}}','DISALLOW没必要用于DELETE','2017-02-01 11:19:51'),(27,1,'PUT','Comment[]','{\"Comment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id{}\"}}','DISALLOW没必要用于DELETE','2017-02-01 11:19:51'),(28,1,'PUT','Comment','{\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}','这里省略了Comment,因为tag就是Comment,Parser.getCorrectRequest会自动补全','2017-02-01 11:19:51'),(29,1,'GETS','login','{\"Privacy\": {\"DISALLOW\": \"id\", \"NECESSARY\": \"phone,_password\"}}',NULL,'2017-10-15 10:04:52'),(30,1,'PUT','balance+','{\"Privacy\": {\"VERIFY\": {\"balance+&{}\": \">=1,<=100000\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,balance+\"}}','验证balance+对应的值是否满足>=1且<=100000','2017-10-21 08:48:34'),(31,1,'PUT','balance-','{\"Privacy\": {\"PUT\": {\"@combine\": \"_password\"}, \"VERIFY\": {\"balance-&{}\": \">=1,<=10000\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,balance-,_password\"}}','PUT强制把_password作为WHERE条件','2017-10-21 08:48:34'),(32,2,'GETS','Privacy','{\"ADD\": {\"@role\": \"owner\"}, \"DISALLOW\": \"_password,_payPassword\", \"NECESSARY\": \"id\"}',NULL,'2017-06-12 16:05:51'),(33,2,'GETS','Privacy-CIRCLE','{\"Privacy\": {\"PUT\": {\"@role\": \"CIRCLE\", \"@column\": \"phone\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id\"}}',NULL,'2017-06-12 16:05:51'),(35,2,'POST','Document','{\"DISALLOW\": \"id\", \"NECESSARY\": \"userId,name,url,request\"}',NULL,'2017-11-26 08:34:41'),(36,2,'PUT','Document','{\"DISALLOW\": \"userId\", \"NECESSARY\": \"id\"}',NULL,'2017-11-26 08:35:15'),(37,2,'DELETE','Document','{\"ADD\": {\"@role\": \"owner\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id\"}',NULL,'2017-11-26 08:36:20');
/*!40000 ALTER TABLE `Request` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
Expand All @@ -53,4 +53,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2018-06-03 0:13:10
-- Dump completed on 2018-06-10 6:02:58
2 changes: 1 addition & 1 deletion table/sys_Response.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2018-06-03 0:13:13
-- Dump completed on 2018-06-10 6:03:02
2 changes: 1 addition & 1 deletion table/sys_Test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2018-06-03 0:13:11
-- Dump completed on 2018-06-10 6:03:00
2 changes: 1 addition & 1 deletion table/sys_TestRecord.sql
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2018-06-03 0:13:07
-- Dump completed on 2018-06-10 6:02:56
6 changes: 3 additions & 3 deletions table/sys_Verify.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CREATE TABLE `Verify` (
`verify` int(6) NOT NULL COMMENT '验证码',
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1527950240376 DEFAULT CHARSET=utf8;
) ENGINE=InnoDB AUTO_INCREMENT=1528531819132 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;

--
Expand All @@ -38,7 +38,7 @@ CREATE TABLE `Verify` (

LOCK TABLES `Verify` WRITE;
/*!40000 ALTER TABLE `Verify` DISABLE KEYS */;
INSERT INTO `Verify` VALUES (1527950118954,0,13000082001,10720,'2018-06-02 14:35:18'),(1527950125227,1,13000082001,7574,'2018-06-02 14:35:25'),(1527950171719,1,130000844444,10375,'2018-06-02 14:36:11'),(1527950240375,0,13000038710,4712,'2018-06-02 14:37:20');
INSERT INTO `Verify` VALUES (1527950171719,1,130000844444,10375,'2018-06-02 14:36:11'),(1528250810515,1,15122820115,2586,'2018-06-06 02:06:50'),(1528254139866,1,15225556855,8912,'2018-06-06 03:02:19'),(1528255485691,1,15822798927,2101,'2018-06-06 03:24:45'),(1528264687329,1,15620878773,3991,'2018-06-06 05:58:07'),(1528269508031,1,18616024605,4901,'2018-06-06 07:18:28'),(1528289406640,1,13142033348,3005,'2018-06-06 12:50:06'),(1528289521131,0,13000038710,9176,'2018-06-06 12:52:01'),(1528327843188,0,15122820115,4912,'2018-06-06 23:30:43'),(1528330720259,2,15122820115,5267,'2018-06-07 00:18:40'),(1528339646013,1,15122541683,6112,'2018-06-07 02:47:26'),(1528344962707,1,15188899797,4540,'2018-06-07 04:16:02'),(1528345364195,2,15122541683,10500,'2018-06-07 04:22:44'),(1528345372998,0,15122541683,9940,'2018-06-07 04:22:53'),(1528356342784,2,15620878773,2076,'2018-06-07 07:25:42'),(1528356449927,1,15620878772,4733,'2018-06-07 07:27:29'),(1528357951835,2,13000082001,9684,'2018-06-07 07:52:31'),(1528411937273,0,15620878772,7375,'2018-06-07 22:52:17'),(1528531819131,1,13000082001,6373,'2018-06-09 08:10:19');
/*!40000 ALTER TABLE `Verify` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
Expand All @@ -51,4 +51,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2018-06-03 0:13:08
-- Dump completed on 2018-06-10 6:02:57
2 changes: 1 addition & 1 deletion table/sys__Visit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2018-06-03 0:13:09
-- Dump completed on 2018-06-10 6:02:58
Loading

0 comments on commit e3ddeb6

Please sign in to comment.