sliced_test.sql 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. -- MySQL dump 10.16 Distrib 10.3.10-MariaDB, for Linux (x86_64)
  2. --
  3. -- Host: localhost Database: test
  4. -- ------------------------------------------------------
  5. -- Server version 10.3.10-MariaDB-log
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!40101 SET NAMES utf8 */;
  10. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  11. /*!40103 SET TIME_ZONE='+00:00' */;
  12. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  13. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  14. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  15. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  16. --
  17. -- Table structure for table `contents`
  18. --
  19. DROP TABLE IF EXISTS `contents`;
  20. /*!40101 SET @saved_cs_client = @@character_set_client */;
  21. /*!40101 SET character_set_client = utf8 */;
  22. CREATE TABLE `contents` (
  23. `id` int(11) NOT NULL AUTO_INCREMENT,
  24. `title` varchar(255) DEFAULT NULL,
  25. `data` text DEFAULT NULL,
  26. `createdAt` datetime NOT NULL,
  27. `updatedAt` datetime NOT NULL,
  28. PRIMARY KEY (`id`)
  29. ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
  30. /*!40101 SET character_set_client = @saved_cs_client */;
  31. --
  32. -- Dumping data for table `contents`
  33. --
  34. LOCK TABLES `contents` WRITE;
  35. /*!40000 ALTER TABLE `contents` DISABLE KEYS */;
  36. INSERT INTO `contents` VALUES (1,'Hidden','HIDDEN','2019-02-03 13:49:29','2019-02-03 13:49:29'),(2,'Role','SLICED by SAME USER BY OWNER ID','2019-02-03 13:49:29','2019-02-03 14:48:44'),(3,'Group','GROUP','2019-02-03 13:49:29','2019-02-03 13:49:29'),(4,'SLiced',NULL,'2019-02-03 14:00:59','2019-02-03 14:00:59'),(5,'SLiced','sliced2','2019-02-03 14:11:56','2019-02-03 14:11:56'),(6,'SLiced','SLICED 6','2019-02-03 14:41:52','2019-02-03 14:41:52'),(7,'SLiced','SLICED by WRITE permission for groupzzz #1','2019-02-03 14:42:31','2019-02-03 14:54:12');
  37. /*!40000 ALTER TABLE `contents` ENABLE KEYS */;
  38. UNLOCK TABLES;
  39. --
  40. -- Table structure for table `slice`
  41. --
  42. DROP TABLE IF EXISTS `slice`;
  43. /*!40101 SET @saved_cs_client = @@character_set_client */;
  44. /*!40101 SET character_set_client = utf8 */;
  45. CREATE TABLE `slice` (
  46. `id` int(11) NOT NULL AUTO_INCREMENT,
  47. `permission` varchar(255) DEFAULT NULL,
  48. `model` varchar(255) DEFAULT NULL,
  49. `modelId` int(11) DEFAULT NULL,
  50. `ownerId` int(11) DEFAULT NULL,
  51. `slice` text DEFAULT NULL,
  52. `createdAt` datetime NOT NULL,
  53. `updatedAt` datetime NOT NULL,
  54. PRIMARY KEY (`id`),
  55. KEY `slice_model_id_model_permission` (`modelId`,`model`,`permission`)
  56. ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8;
  57. /*!40101 SET character_set_client = @saved_cs_client */;
  58. --
  59. -- Dumping data for table `slice`
  60. --
  61. LOCK TABLES `slice` WRITE;
  62. /*!40000 ALTER TABLE `slice` DISABLE KEYS */;
  63. INSERT INTO `slice` VALUES (1,'group','group',NULL,NULL,'1,2','2019-02-03 13:49:29','2019-02-03 13:49:29'),(2,'user','user',1,NULL,'user,#1','2019-02-03 13:49:29','2019-02-03 13:49:29'),(3,'user','user',3,NULL,'user','2019-02-03 13:49:29','2019-02-03 13:49:29'),(4,'user','user',2,NULL,'user,#1','2019-02-03 13:49:29','2019-02-03 13:49:29'),(5,'read','contents',1,3,'','2019-02-03 13:49:29','2019-02-03 13:49:29'),(6,'read','contents',2,1,'user','2019-02-03 13:49:29','2019-02-03 13:49:29'),(7,'read','contents',3,2,'#1','2019-02-03 13:49:29','2019-02-03 13:49:29'),(8,'create','contents',NULL,NULL,'user','2019-02-03 13:49:29','2019-02-03 13:49:29'),(9,'read','contents',4,3,'user','2019-02-03 14:00:59','2019-02-03 14:00:59'),(10,'read','contents',5,3,'user','2019-02-03 14:11:56','2019-02-03 14:11:56'),(11,'read','contents',6,3,'user','2019-02-03 14:41:52','2019-02-03 14:41:52'),(12,'read','contents',7,1,'user','2019-02-03 14:42:31','2019-02-03 14:42:31'),(13,'write','contents',7,1,'#1','2019-02-03 16:50:54','2019-02-03 16:50:54');
  64. /*!40000 ALTER TABLE `slice` ENABLE KEYS */;
  65. UNLOCK TABLES;
  66. --
  67. -- Table structure for table `users`
  68. --
  69. DROP TABLE IF EXISTS `users`;
  70. /*!40101 SET @saved_cs_client = @@character_set_client */;
  71. /*!40101 SET character_set_client = utf8 */;
  72. CREATE TABLE `users` (
  73. `id` int(11) NOT NULL AUTO_INCREMENT,
  74. `login` varchar(255) DEFAULT NULL,
  75. `password` varchar(255) DEFAULT NULL,
  76. `createdAt` datetime NOT NULL,
  77. `updatedAt` datetime NOT NULL,
  78. PRIMARY KEY (`id`)
  79. ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
  80. /*!40101 SET character_set_client = @saved_cs_client */;
  81. --
  82. -- Dumping data for table `users`
  83. --
  84. LOCK TABLES `users` WRITE;
  85. /*!40000 ALTER TABLE `users` DISABLE KEYS */;
  86. INSERT INTO `users` VALUES (1,'Vasya','qwe','2019-02-03 13:49:29','2019-02-03 13:49:29'),(2,'Petya','qwe','2019-02-03 13:49:29','2019-02-03 13:49:29'),(3,'Kolya','qwe','2019-02-03 13:49:29','2019-02-03 13:49:29');
  87. /*!40000 ALTER TABLE `users` ENABLE KEYS */;
  88. UNLOCK TABLES;
  89. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  90. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  91. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  92. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  93. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  94. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  95. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  96. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  97. -- Dump completed on 2019-02-03 18:00:20