sql
stringlengths
6
1.05M
use TAQBenchmarks go create table dbo.ClusteredQueue ( Id int identity(1,1) not null ,Priority tinyint not null ,MessageTypeId int not null ,Payload varchar(1000) not null ); go create unique clustered index CUIX_ClusteredQueue on dbo.ClusteredQueue ( Priority desc, Id asc ) with (data_compression = page) go create procedure dbo.EnqueueMessage @id int ,@message_priority tinyint = 0 as begin set nocount on; declare @payload varchar(1000) = '<id>' + cast(@id as varchar(10)) + '</id>'; insert into dbo.ClusteredQueue ( Priority ,MessageTypeId ,Payload ) values ( 5 ,0 ,@payload ); end; go create procedure dbo.DequeueMessage as begin set nocount on; with cte as ( select top (1) q.Payload ,q.MessageTypeId from dbo.ClusteredQueue as q with (readpast, rowlock) order by q.Priority desc, q.Id asc ) delete from cte output deleted.Payload, deleted.MessageTypeId end; go
<filename>database.sql -- MariaDB dump 10.18 Distrib 10.4.17-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: tasteid -- ------------------------------------------------------ -- Server version 10.4.17-MariaDB /*!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 utf8mb4 */; /*!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 `artikel` -- DROP TABLE IF EXISTS `artikel`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `artikel` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) DEFAULT NULL, `penerbit` varchar(100) DEFAULT NULL, `tanggal` datetime DEFAULT NULL, `judul` varchar(100) DEFAULT NULL, `isi` text DEFAULT NULL, `gambar` varchar(100) DEFAULT NULL, `status` tinyint(1) DEFAULT 0, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `artikel` -- LOCK TABLES `artikel` WRITE; /*!40000 ALTER TABLE `artikel` DISABLE KEYS */; INSERT INTO `artikel` VALUES (1,1,'Aa Ezha','2021-06-10 10:10:10','Judulnya','Syalalala',NULL,0); /*!40000 ALTER TABLE `artikel` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `bahan` -- DROP TABLE IF EXISTS `bahan`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bahan` ( `id_bahan` int(100) NOT NULL AUTO_INCREMENT, `nama_bahan` varchar(100) NOT NULL, PRIMARY KEY (`id_bahan`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `bahan` -- LOCK TABLES `bahan` WRITE; /*!40000 ALTER TABLE `bahan` DISABLE KEYS */; /*!40000 ALTER TABLE `bahan` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `bahan_resep` -- DROP TABLE IF EXISTS `bahan_resep`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bahan_resep` ( `id_bahan_resep` int(100) NOT NULL AUTO_INCREMENT, `id_resep` int(100) NOT NULL, `id_bahan` int(100) NOT NULL, `kuantitas` int(100) NOT NULL, `id_unit` int(100) NOT NULL, PRIMARY KEY (`id_bahan_resep`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `bahan_resep` -- LOCK TABLES `bahan_resep` WRITE; /*!40000 ALTER TABLE `bahan_resep` DISABLE KEYS */; /*!40000 ALTER TABLE `bahan_resep` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `banner` -- DROP TABLE IF EXISTS `banner`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `banner` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nama` varchar(50) DEFAULT NULL, `url` varchar(255) DEFAULT NULL, `gambar` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `banner` -- LOCK TABLES `banner` WRITE; /*!40000 ALTER TABLE `banner` DISABLE KEYS */; INSERT INTO `banner` VALUES (5,'Testing Banner','https://bodoh.de/','images/d20b9b45422eded214af22284ecfb663.png'),(6,'Banner #2 Edit','https://bodoh.de/whatsapp','images/9ee868cd703dc2981c975c9581527edb.png'); /*!40000 ALTER TABLE `banner` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `bookmark` -- DROP TABLE IF EXISTS `bookmark`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `bookmark` ( `bookmark_id` int(11) NOT NULL AUTO_INCREMENT, `id_user` int(11) NOT NULL, `id_resep` int(11) NOT NULL, PRIMARY KEY (`bookmark_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `bookmark` -- LOCK TABLES `bookmark` WRITE; /*!40000 ALTER TABLE `bookmark` DISABLE KEYS */; /*!40000 ALTER TABLE `bookmark` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `daerah` -- DROP TABLE IF EXISTS `daerah`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `daerah` ( `id` int(11) NOT NULL AUTO_INCREMENT, `provinsi` varchar(255) DEFAULT NULL, `kab_kota` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=922 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `daerah` -- LOCK TABLES `daerah` WRITE; /*!40000 ALTER TABLE `daerah` DISABLE KEYS */; INSERT INTO `daerah` VALUES (1,'BALI','KAB. BADUNG'),(2,'BALI','KAB. BANGLI'),(3,'BALI','KAB. BULELENG'),(4,'BALI','KAB. GIANYAR'),(5,'BALI','KAB. JEMBRANA'),(6,'BALI','KAB. KARANGASEM'),(7,'BALI','KAB. KLUNGKUNG'),(8,'BALI','KAB. TABANAN'),(9,'BALI','KOTA DENPASAR'),(10,'BANGKA BELITUNG','KAB. BANGKA'),(11,'BANGKA BELITUNG','KAB. BANGKA BARAT'),(12,'BANGKA BELITUNG','KAB. BANGKA SELATAN'),(13,'BANGKA BELITUNG','KAB. BANGKA TENGAH'),(14,'BANGKA BELITUNG','KAB. BELITUNG'),(15,'BANGKA BELITUNG','KAB. BELITUNG TIMUR'),(16,'BANGKA BELITUNG','KOTA PANGKAL PINANG'),(17,'BANTEN','KAB. LEBAK'),(18,'BANTEN','KAB. PANDEGLANG'),(19,'BANTEN','KAB. SERANG'),(20,'BANTEN','KAB. TANGERANG'),(21,'BANTEN','KOTA CILEGON'),(22,'BANTEN','KOTA SERANG'),(23,'BANTEN','KOTA TANGERANG'),(24,'BANTEN','KOTA TANGERANG SELATAN'),(25,'BENGKULU','KAB. BENGKULU SELATAN'),(26,'BENGKULU','KAB. BENGKULU TENGAH'),(27,'BENGKULU','KAB. BENGKULU UTARA'),(28,'BENGKULU','KAB. KAUR'),(29,'BENGKULU','KAB. KEPAHIANG'),(30,'BENGKULU','KAB. LEBONG'),(31,'BENGKULU','KAB. MUKO MUKO'),(32,'BENGKULU','KAB. REJANG LEBONG'),(33,'BENGKULU','KAB. SELUMA'),(34,'BENGKULU','KOTA BENGKULU'),(35,'DI YOGYAKARTA','KAB. BANTUL'),(36,'DI YOGYAKARTA','KAB. GUNUNG KIDUL'),(37,'DI YOGYAKARTA','KAB. KULON PROGO'),(38,'DI YOGYAKARTA','KAB. SLEMAN'),(39,'DI YOGYAKARTA','KOTA YOGYAKARTA'),(40,'DKI JAKARTA','KAB. KEPULAUAN SERIBU'),(41,'DKI JAKARTA','KOTA JAKARTA BARAT'),(42,'DKI JAKARTA','KOTA JAKARTA PUSAT'),(43,'DKI JAKARTA','KOTA JAKARTA SELATAN'),(44,'DKI JAKARTA','KOTA JAKARTA TIMUR'),(45,'DKI JAKARTA','KOTA JAKARTA UTARA'),(46,'GORONTALO','KAB. BOALEMO'),(47,'GORONTALO','KAB. BONE BOLANGO'),(48,'GORONTALO','KAB. GORONTALO'),(49,'GORONTALO','KAB. GORONTALO UTARA'),(50,'GORONTALO','KAB. POHUWATO'),(51,'GORONTALO','KOTA GORONTALO'),(52,'JAMBI','KAB. BATANG HARI'),(53,'JAMBI','KAB. BUNGO'),(54,'JAMBI','KAB. KERINCI'),(55,'JAMBI','KAB. MERANGIN'),(56,'JAMBI','KAB. MUARO JAMBI'),(57,'JAMBI','KAB. SAROLANGUN'),(58,'JAMBI','KAB. TANJUNG JABUNG BARAT'),(59,'JAMBI','KAB. TANJUNG JABUNG TIMUR'),(60,'JAMBI','KAB. TEBO'),(61,'JAMBI','KOTA JAMBI'),(62,'JAMBI','KOTA SUNGAIPENUH'),(63,'JAWA BARAT','KAB. BANDUNG'),(64,'JAWA BARAT','KAB. BANDUNG BARAT'),(65,'JAWA BARAT','KAB. BEKASI'),(66,'JAWA BARAT','KAB. BOGOR'),(67,'JAWA BARAT','KAB. CIAMIS'),(68,'JAWA BARAT','KAB. CIANJUR'),(69,'JAWA BARAT','KAB. CIREBON'),(70,'JAWA BARAT','KAB. GARUT'),(71,'JAWA BARAT','KAB. INDRAMAYU'),(72,'JAWA BARAT','KAB. KARAWANG'),(73,'JAWA BARAT','KAB. KUNINGAN'),(74,'JAWA BARAT','KAB. MAJALENGKA'),(75,'JAWA BARAT','KAB. PANGANDARAN'),(76,'JAWA BARAT','KAB. PURWAKARTA'),(77,'JAWA BARAT','KAB. SUBANG'),(78,'JAWA BARAT','KAB. SUKABUMI'),(79,'JAWA BARAT','KAB. SUMEDANG'),(80,'JAWA BARAT','KAB. TASIKMALAYA'),(81,'JAWA BARAT','KOTA BANDUNG'),(82,'JAWA BARAT','KOTA BANJAR'),(83,'JAWA BARAT','KOTA BEKASI'),(84,'JAWA BARAT','KOTA BOGOR'),(85,'JAWA BARAT','KOTA CIMAHI'),(86,'JAWA BARAT','KOTA CIREBON'),(87,'JAWA BARAT','KOTA DEPOK'),(88,'JAWA BARAT','KOTA SUKABUMI'),(89,'JAWA BARAT','KOTA TASIKMALAYA'),(90,'JAWA TENGAH','KAB. BANJARNEGARA'),(91,'JAWA TENGAH','KAB. BANYUMAS'),(92,'JAWA TENGAH','KAB. BATANG'),(93,'JAWA TENGAH','KAB. BLORA'),(94,'JAWA TENGAH','KAB. BOYOLALI'),(95,'JAWA TENGAH','KAB. BREBES'),(96,'JAWA TENGAH','KAB. CILACAP'),(97,'JAWA TENGAH','KAB. DEMAK'),(98,'JAWA TENGAH','KAB. GROBOGAN'),(99,'JAWA TENGAH','KAB. JEPARA'),(100,'JAWA TENGAH','KAB. KARANGANYAR'),(101,'JAWA TENGAH','KAB. KEBUMEN'),(102,'JAWA TENGAH','KAB. KENDAL'),(103,'JAWA TENGAH','KAB. KLATEN'),(104,'JAWA TENGAH','KAB. KUDUS'),(105,'JAWA TENGAH','KAB. MAGELANG'),(106,'JAWA TENGAH','KAB. PATI'),(107,'JAWA TENGAH','KAB. PEKALONGAN'),(108,'JAWA TENGAH','KAB. PEMALANG'),(109,'JAWA TENGAH','KAB. PURBALINGGA'),(110,'JAWA TENGAH','KAB. PURWOREJO'),(111,'JAWA TENGAH','KAB. REMBANG'),(112,'JAWA TENGAH','KAB. SEMARANG'),(113,'JAWA TENGAH','KAB. SRAGEN'),(114,'JAWA TENGAH','KAB. SUKOHARJO'),(115,'JAWA TENGAH','KAB. TEGAL'),(116,'JAWA TENGAH','KAB. TEMANGGUNG'),(117,'JAWA TENGAH','KAB. WONOGIRI'),(118,'JAWA TENGAH','KAB. WONOSOBO'),(119,'JAWA TENGAH','KOTA MAGELANG'),(120,'JAWA TENGAH','KOTA PEKALONGAN'),(121,'JAWA TENGAH','KOTA SALATIGA'),(122,'JAWA TENGAH','KOTA SEMARANG'),(123,'JAWA TENGAH','KOTA SOLO'),(124,'JAWA TENGAH','KOTA TEGAL'),(125,'JAWA TIMUR','KAB. BANGKALAN'),(126,'JAWA TIMUR','KAB. BANYUWANGI'),(127,'JAWA TIMUR','KAB. BLITAR'),(128,'JAWA TIMUR','KAB. BOJONEGORO'),(129,'JAWA TIMUR','KAB. BONDOWOSO'),(130,'JAWA TIMUR','KAB. GRESIK'),(131,'JAWA TIMUR','KAB. JEMBER'),(132,'JAWA TIMUR','KAB. JOMBANG'),(133,'JAWA TIMUR','KAB. KEDIRI'),(134,'JAWA TIMUR','KAB. LAMONGAN'),(135,'JAWA TIMUR','KAB. LUMAJANG'),(136,'JAWA TIMUR','KAB. MADIUN'),(137,'JAWA TIMUR','KAB. MAGETAN'),(138,'JAWA TIMUR','KAB. MALANG'),(139,'JAWA TIMUR','KAB. MOJOKERTO'),(140,'JAWA TIMUR','KAB. NGANJUK'),(141,'JAWA TIMUR','KAB. NGAWI'),(142,'JAWA TIMUR','KAB. PACITAN'),(143,'JAWA TIMUR','KAB. PAMEKASAN'),(144,'JAWA TIMUR','KAB. PASURUAN'),(145,'JAWA TIMUR','KAB. PONOROGO'),(146,'JAWA TIMUR','KAB. PROBOLINGGO'),(147,'JAWA TIMUR','KAB. SAMPANG'),(148,'JAWA TIMUR','KAB. SIDOARJO'),(149,'JAWA TIMUR','KAB. SITUBONDO'),(150,'JAWA TIMUR','KAB. SUMENEP'),(151,'JAWA TIMUR','KAB. TRENGGALEK'),(152,'JAWA TIMUR','KAB. TUBAN'),(153,'JAWA TIMUR','KAB. TULUNGAGUNG'),(154,'JAWA TIMUR','KOTA BATU'),(155,'JAWA TIMUR','KOTA BLITAR'),(156,'JAWA TIMUR','KOTA KEDIRI'),(157,'JAWA TIMUR','KOTA MADIUN'),(158,'JAWA TIMUR','KOTA MALANG'),(159,'JAWA TIMUR','KOTA MOJOKERTO'),(160,'JAWA TIMUR','KOTA PASURUAN'),(161,'JAWA TIMUR','KOTA PROBOLINGGO'),(162,'JAWA TIMUR','KOTA SURABAYA'),(163,'KALIMANTAN BARAT','KAB. BENGKAYANG'),(164,'KALIMANTAN BARAT','KAB. KAPUAS HULU'),(165,'KALIMANTAN BARAT','KAB. KAYONG UTARA'),(166,'KALIMANTAN BARAT','KAB. KETAPANG'),(167,'KALIMANTAN BARAT','KAB. KUBU RAYA'),(168,'KALIMANTAN BARAT','KAB. LANDAK'),(169,'KALIMANTAN BARAT','KAB. MELAWI'),(170,'KALIMANTAN BARAT','KAB. PONTIANAK'),(171,'KALIMANTAN BARAT','KAB. SAMBAS'),(172,'KALIMANTAN BARAT','KAB. SANGGAU'),(173,'KALIMANTAN BARAT','KAB. SEKADAU'),(174,'KALIMANTAN BARAT','KAB. SINTANG'),(175,'KALIMANTAN BARAT','KOTA PONTIANAK'),(176,'KALIMANTAN BARAT','KOTA SINGKAWANG'),(177,'KALIMANTAN SELATAN','KAB. BALANGAN'),(178,'KALIMANTAN SELATAN','KAB. BANJAR'),(179,'KALIMANTAN SELATAN','KAB. BARITO KUALA'),(180,'KALIMANTAN SELATAN','KAB. HULU SUNGAI SELATAN'),(181,'KALIMANTAN SELATAN','KAB. HULU SUNGAI TENGAH'),(182,'KALIMANTAN SELATAN','KAB. HULU SUNGAI UTARA'),(183,'KALIMANTAN SELATAN','KAB. KOTABARU'),(184,'KALIMANTAN SELATAN','KAB. TABALONG'),(185,'KALIMANTAN SELATAN','KAB. TANAH BUMBU'),(186,'KALIMANTAN SELATAN','KAB. TANAH LAUT'),(187,'KALIMANTAN SELATAN','KAB. TAPIN'),(188,'KALIMANTAN SELATAN','KOTA BANJARBARU'),(189,'KALIMANTAN SELATAN','KOTA BANJARMASIN'),(190,'KALIMANTAN TENGAH','KAB. BARITO SELATAN'),(191,'KALIMANTAN TENGAH','KAB. BARITO TIMUR'),(192,'KALIMANTAN TENGAH','KAB. BARITO UTARA'),(193,'KALIMANTAN TENGAH','KAB. GUNUNG MAS'),(194,'KALIMANTAN TENGAH','KAB. KAPUAS'),(195,'KALIMANTAN TENGAH','KAB. KATINGAN'),(196,'KALIMANTAN TENGAH','KAB. KOTAWARINGIN BARAT'),(197,'KALIMANTAN TENGAH','KAB. KOTAWARINGIN TIMUR'),(198,'KALIMANTAN TENGAH','KAB. LAMANDAU'),(199,'KALIMANTAN TENGAH','KAB. MURUNG RAYA'),(200,'KALIMANTAN TENGAH','KAB. PULANG PISAU'),(201,'KALIMANTAN TENGAH','KAB. SERUYAN'),(202,'KALIMANTAN TENGAH','KAB. SUKAMARA'),(203,'KALIMANTAN TENGAH','KOTA PALANGKA RAYA'),(204,'KALIMANTAN TIMUR','KAB. BERAU'),(205,'KALIMANTAN TIMUR','KAB. KUTAI BARAT'),(206,'KALIMANTAN TIMUR','KAB. KUTAI KARTANEGARA'),(207,'KALIMANTAN TIMUR','KAB. KUTAI TIMUR'),(208,'KALIMANTAN TIMUR','KAB. PASER'),(209,'KALIMANTAN TIMUR','KAB. PENAJAM PASER UTARA'),(210,'KALIMANTAN TIMUR','KOTA BALIKPAPAN'),(211,'KALIMANTAN TIMUR','KOTA BONTANG'),(212,'KALIMANTAN TIMUR','KOTA SAMARINDA'),(213,'KEPULAUAN RIAU','KAB. BINTAN'),(214,'KEPULAUAN RIAU','KAB. KARIMUN'),(215,'KEPULAUAN RIAU','KAB. KEPULAUAN ANAMBAS'),(216,'KEPULAUAN RIAU','KAB. LINGGA'),(217,'KEPULAUAN RIAU','KAB. NATUNA'),(218,'KEPULAUAN RIAU','KOTA BATAM'),(219,'KEPULAUAN RIAU','KOTA TANJUNG PINANG'),(220,'LAMPUNG','KAB. LAMPUNG BARAT'),(221,'LAMPUNG','KAB. LAMPUNG SELATAN'),(222,'LAMPUNG','KAB. LAMPUNG TENGAH'),(223,'LAMPUNG','KAB. LAMPUNG TIMUR'),(224,'LAMPUNG','KAB. LAMPUNG UTARA'),(225,'LAMPUNG','KAB. MESUJI'),(226,'LAMPUNG','KAB. PESAWARAN'),(227,'LAMPUNG','KAB. PESISIR BARAT'),(228,'LAMPUNG','KAB. PRINGSEWU'),(229,'LAMPUNG','KAB. TANGGAMUS'),(230,'LAMPUNG','KAB. TULANG BAWANG'),(231,'LAMPUNG','KAB. TULANG BAWANG BARAT'),(232,'LAMPUNG','KAB. WAY KANAN'),(233,'LAMPUNG','KOTA BANDAR LAMPUNG'),(234,'LAMPUNG','KOTA METRO'),(235,'MALUKU','KAB. BURU'),(236,'MALUKU','KAB. BURU SELATAN'),(237,'MALUKU','KAB. KEPULAUAN ARU'),(238,'MALUKU','KAB. MALUKU BARAT DAYA'),(239,'MALUKU','KAB. MALUKU TENGAH'),(240,'MALUKU','KAB. MALUKU TENGGARA'),(241,'MALUKU','KAB. MALUKU TENGGARA BARAT'),(242,'MALUKU','KAB. SERAM BAGIAN BARAT'),(243,'MALUKU','KAB. SERAM BAGIAN TIMUR'),(244,'MALUKU','KOTA AMBON'),(245,'MALUKU','KOTA TUAL'),(246,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. ACEH BARAT'),(247,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. ACEH BARAT DAYA'),(248,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. ACEH BESAR'),(249,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. ACEH JAYA'),(250,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. ACEH SELATAN'),(251,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. ACEH SINGKIL'),(252,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. ACEH TAMIANG'),(253,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. ACEH TENGAH'),(254,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. ACEH TENGGARA'),(255,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. ACEH TIMUR'),(256,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. ACEH UTARA'),(257,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. BENER MERIAH'),(258,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. BIREUEN'),(259,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. GAYO LUES'),(260,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. NAGAN RAYA'),(261,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. PIDIE'),(262,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. PIDIE JAYA'),(263,'NANGGROE ACEH DARUSSALAM (NAD)','KAB. SIMEULUE'),(264,'NANGGROE ACEH DARUSSALAM (NAD)','KOTA BANDA ACEH'),(265,'NANGGROE ACEH DARUSSALAM (NAD)','KOTA LANGSA'),(266,'NANGGROE ACEH DARUSSALAM (NAD)','KOTA LHOKSEUMAWE'),(267,'NANGGROE ACEH DARUSSALAM (NAD)','KOTA SABANG'),(268,'NANGGROE ACEH DARUSSALAM (NAD)','KOTA SUBULUSSALAM'),(269,'NUSA TENGGARA BARAT (NTB)','KAB. BIMA'),(270,'NUSA TENGGARA BARAT (NTB)','KAB. DOMPU'),(271,'NUSA TENGGARA BARAT (NTB)','KAB. LOMBOK BARAT'),(272,'NUSA TENGGARA BARAT (NTB)','KAB. LOMBOK TENGAH'),(273,'NUSA TENGGARA BARAT (NTB)','KAB. LOMBOK TIMUR'),(274,'NUSA TENGGARA BARAT (NTB)','KAB. LOMBOK UTARA'),(275,'NUSA TENGGARA BARAT (NTB)','KAB. SUMBAWA'),(276,'NUSA TENGGARA BARAT (NTB)','KAB. SUMBAWA BARAT'),(277,'NUSA TENGGARA BARAT (NTB)','KOTA BIMA'),(278,'NUSA TENGGARA BARAT (NTB)','KOTA MATARAM'),(279,'NUSA TENGGARA TIMUR (NTT)','KAB. ALOR'),(280,'NUSA TENGGARA TIMUR (NTT)','KAB. BELU'),(281,'NUSA TENGGARA TIMUR (NTT)','KAB. ENDE'),(282,'NUSA TENGGARA TIMUR (NTT)','KAB. FLORES TIMUR'),(283,'NUSA TENGGARA TIMUR (NTT)','KAB. KUPANG'),(284,'NUSA TENGGARA TIMUR (NTT)','KAB. LEMBATA'),(285,'NUSA TENGGARA TIMUR (NTT)','KAB. MANGGARAI'),(286,'NUSA TENGGARA TIMUR (NTT)','KAB. MANGGARAI BARAT'),(287,'NUSA TENGGARA TIMUR (NTT)','KAB. MANGGARAI TIMUR'),(288,'NUSA TENGGARA TIMUR (NTT)','KAB. NAGEKEO'),(289,'NUSA TENGGARA TIMUR (NTT)','KAB. NGADA'),(290,'NUSA TENGGARA TIMUR (NTT)','KAB. ROTE NDAO'),(291,'NUSA TENGGARA TIMUR (NTT)','KAB. SABU RAIJUA'),(292,'NUSA TENGGARA TIMUR (NTT)','KAB. SIKKA'),(293,'NUSA TENGGARA TIMUR (NTT)','KAB. SUMBA BARAT'),(294,'NUSA TENGGARA TIMUR (NTT)','KAB. SUMBA BARAT DAYA'),(295,'NUSA TENGGARA TIMUR (NTT)','KAB. SUMBA TENGAH'),(296,'NUSA TENGGARA TIMUR (NTT)','KAB. SUMBA TIMUR'),(297,'NUSA TENGGARA TIMUR (NTT)','KAB. TIMOR TENGAH SELATAN'),(298,'NUSA TENGGARA TIMUR (NTT)','KAB. TIMOR TENGAH UTARA'),(299,'NUSA TENGGARA TIMUR (NTT)','KOTA KUPANG'),(300,'PAPUA','KAB. ASMAT'),(301,'PAPUA','KAB. BIAK NUMFOR'),(302,'PAPUA','KAB. BOVEN DIGOEL'),(303,'PAPUA','KAB. DEIYAI (DELIYAI)'),(304,'PAPUA','KAB. DOGIYAI'),(305,'PAPUA','KAB. INTAN JAYA'),(306,'PAPUA','KAB. JAYAPURA'),(307,'PAPUA','KAB. JAYAWIJAYA'),(308,'PAPUA','KAB. KEEROM'),(309,'PAPUA','KAB. KEPULAUAN YAPEN (YAPEN WAROPEN)'),(310,'PAPUA','KAB. LANNY JAYA'),(311,'PAPUA','KAB. MAMBERAMO RAYA'),(312,'PAPUA','KAB. MAMBERAMO TENGAH'),(313,'PAPUA','KAB. MAPPI'),(314,'PAPUA','KAB. MERAUKE'),(315,'PAPUA','KAB. MIMIKA'),(316,'PAPUA','KAB. NABIRE'),(317,'PAPUA','KAB. NDUGA'),(318,'PAPUA','KAB. PANIAI'),(319,'PAPUA','KAB. PEGUNUNGAN BINTANG'),(320,'PAPUA','KAB. PUNCAK'),(321,'PAPUA','KAB. PUNCAK JAYA'),(322,'PAPUA','KAB. SARMI'),(323,'PAPUA','KAB. SUPIORI'),(324,'PAPUA','KAB. TOLIKARA'),(325,'PAPUA','KAB. WAROPEN'),(326,'PAPUA','KAB. YAHUKIMO'),(327,'PAPUA','KAB. YALIMO'),(328,'PAPUA','KOTA JAYAPURA'),(329,'PAPUA BARAT','KAB. FAKFAK'),(330,'PAPUA BARAT','KAB. KAIMANA'),(331,'PAPUA BARAT','KAB. MANOKWARI'),(332,'PAPUA BARAT','KAB. MANOKWARI SELATAN'),(333,'PAPUA BARAT','KAB. MAYBRAT'),(334,'PAPUA BARAT','KAB. PEGUNUNGAN ARFAK'),(335,'PAPUA BARAT','KAB. RAJA AMPAT'),(336,'PAPUA BARAT','KAB. SORONG'),(337,'PAPUA BARAT','KAB. SORONG SELATAN'),(338,'PAPUA BARAT','KAB. TAMBRAUW'),(339,'PAPUA BARAT','KAB. TELUK BINTUNI'),(340,'PAPUA BARAT','KAB. TELUK WONDAMA'),(341,'PAPUA BARAT','KOTA SORONG'),(342,'RIAU','KAB. BENGKALIS'),(343,'RIAU','KAB. INDRAGIRI HILIR'),(344,'RIAU','KAB. INDRAGIRI HULU'),(345,'RIAU','KAB. KAMPAR'),(346,'RIAU','KAB. KEPULAUAN MERANTI'),(347,'RIAU','KAB. KUANTAN SINGINGI'),(348,'RIAU','KAB. PELALAWAN'),(349,'RIAU','KAB. ROKAN HILIR'),(350,'RIAU','KAB. ROKAN HULU'),(351,'RIAU','KAB. SIAK'),(352,'RIAU','KOTA DUMAI'),(353,'RIAU','KOTA PEKANBARU'),(354,'SULAWESI SELATAN','KAB. BANTAENG'),(355,'SULAWESI SELATAN','KAB. BARRU'),(356,'SULAWESI SELATAN','KAB. BONE'),(357,'SULAWESI SELATAN','KAB. BULUKUMBA'),(358,'SULAWESI SELATAN','KAB. ENREKANG'),(359,'SULAWESI SELATAN','KAB. GOWA'),(360,'SULAWESI SELATAN','KAB. JENEPONTO'),(361,'SULAWESI SELATAN','KAB. LUWU'),(362,'SULAWESI SELATAN','KAB. LUWU TIMUR'),(363,'SULAWESI SELATAN','KAB. LUWU UTARA'),(364,'SULAWESI SELATAN','KAB. MAROS'),(365,'SULAWESI SELATAN','KAB. PANGKAJENE KEPULAUAN'),(366,'SULAWESI SELATAN','KAB. PINRANG'),(367,'SULAWESI SELATAN','KAB. SELAYAR (KEPULAUAN SELAYAR)'),(368,'SULAWESI SELATAN','KAB. SIDENRENG RAPPANG/RAPANG'),(369,'SULAWESI SELATAN','KAB. SINJAI'),(370,'SULAWESI SELATAN','KAB. SOPPENG'),(371,'SULAWESI SELATAN','KAB. TAKALAR'),(372,'SULAWESI SELATAN','KAB. TANA TORAJA'),(373,'SULAWESI SELATAN','KAB. TORAJA UTARA'),(374,'SULAWESI SELATAN','KAB. WAJO'),(375,'SULAWESI SELATAN','KOTA MAKASSAR'),(376,'SULAWESI SELATAN','KOTA PALOPO'),(377,'SULAWESI SELATAN','KOTA PAREPARE'),(378,'SULAWESI TENGAH','KAB. BANGGAI'),(379,'SULAWESI TENGAH','KAB. BANGGAI KEPULAUAN'),(380,'SULAWESI TENGAH','KAB. BUOL'),(381,'SULAWESI TENGAH','KAB. DONGGALA'),(382,'SULAWESI TENGAH','KAB. MOROWALI'),(383,'SULAWESI TENGAH','KAB. PARIGI MOUTONG'),(384,'SULAWESI TENGAH','KAB. SIGI'),(385,'SULAWESI TENGAH','KAB. TOJO UNA-UNA'),(386,'SULAWESI TENGAH','KAB. TOLI-TOLI'),(387,'SULAWESI TENGAH','KOTA PALU'),(388,'SUMATERA BARAT','KAB. AGAM'),(389,'SUMATERA BARAT','KAB. DHARMASRAYA'),(390,'SUMATERA BARAT','KAB. KEPULAUAN MENTAWAI'),(391,'SUMATERA BARAT','KAB. LIMA PULUH KOTO/KOTA'),(392,'SUMATERA BARAT','KAB. PADANG PARIAMAN'),(393,'SUMATERA BARAT','KAB. PASAMAN'),(394,'SUMATERA BARAT','KAB. PASAMAN BARAT'),(395,'SUMATERA BARAT','KAB. PESISIR SELATAN'),(396,'SUMATERA BARAT','KAB. SIJUNJUNG (SAWAH LUNTO SIJUNJUNG)'),(397,'SUMATERA BARAT','KAB. SOLOK'),(398,'SUMATERA BARAT','KAB. SOLOK SELATAN'),(399,'SUMATERA BARAT','KAB. TANAH DATAR'),(400,'SUMATERA BARAT','KOTA BUKITTINGGI'),(401,'SUMATERA BARAT','KOTA PADANG'),(402,'SUMATERA BARAT','KOTA PADANG PANJANG'),(403,'SUMATERA BARAT','KOTA PARIAMAN'),(404,'SUMATERA BARAT','KOTA PAYAKUMBUH'),(405,'SUMATERA BARAT','KOTA SAWAH LUNTO'),(406,'SUMATERA BARAT','KOTA SOLOK'),(407,'SUMATERA SELATAN','KAB. BANYUASIN'),(408,'SUMATERA SELATAN','KAB. EMPAT LAWANG'),(409,'SUMATERA SELATAN','KAB. LAHAT'),(410,'SUMATERA SELATAN','KAB. MUARA ENIM'),(411,'SUMATERA SELATAN','KAB. MUSI BANYUASIN'),(412,'SUMATERA SELATAN','KAB. MUSI RAWAS'),(413,'SUMATERA SELATAN','KAB. MUSI RAWAS UTARA'),(414,'SUMATERA SELATAN','KAB. OGAN ILIR'),(415,'SUMATERA SELATAN','KAB. OGAN KOMERING ILIR'),(416,'SUMATERA SELATAN','KAB. OGAN KOMERING ULU'),(417,'SUMATERA SELATAN','KAB. OGAN KOMERING ULU SELATAN'),(418,'SUMATERA SELATAN','KAB. OGAN KOMERING ULU TIMUR'),(419,'SUMATERA SELATAN','KAB. PENUKAL ABAB LEMATANG ILIR'),(420,'SUMATERA SELATAN','KOTA LUBUK LINGGAU'),(421,'SUMATERA SELATAN','KOTA PAGAR ALAM'),(422,'SUMATERA SELATAN','KOTA PALEMBANG'),(423,'SUMATERA SELATAN','KOTA PRABUMULIH'),(424,'SUMATERA UTARA','KAB. ASAHAN'),(425,'SUMATERA UTARA','KAB. BATU BARA'),(426,'SUMATERA UTARA','KAB. DAIRI'),(427,'SUMATERA UTARA','KAB. DELI SERDANG'),(428,'SUMATERA UTARA','KAB. HUMBANG HASUNDUTAN'),(429,'SUMATERA UTARA','KAB. KARO'),(430,'SUMATERA UTARA','KAB. LABUHAN BATU'),(431,'SUMATERA UTARA','KAB. LABUHAN BATU SELATAN'),(432,'SUMATERA UTARA','KAB. LABUHAN BATU UTARA'),(433,'SUMATERA UTARA','KAB. LANGKAT'),(434,'SUMATERA UTARA','KAB. MANDAILING NATAL'),(435,'SUMATERA UTARA','KAB. NIAS'),(436,'SUMATERA UTARA','KAB. NIAS BARAT'),(437,'SUMATERA UTARA','KAB. NIAS SELATAN'),(438,'SUMATERA UTARA','KAB. NIAS UTARA'),(439,'SUMATERA UTARA','KAB. PADANG LAWAS'),(440,'SUMATERA UTARA','KAB. PADANG LAWAS UTARA'),(441,'SUMATERA UTARA','KAB. PAKPAK BHARAT'),(442,'SUMATERA UTARA','KAB. SAMOSIR'),(443,'SUMATERA UTARA','KAB. SERDANG BEDAGAI'),(444,'SUMATERA UTARA','KAB. SIMALUNGUN'),(445,'SUMATERA UTARA','KAB. TAPANULI SELATAN'),(446,'SUMATERA UTARA','KAB. TAPANULI TENGAH'),(447,'SUMATERA UTARA','KAB. TAPANULI UTARA'),(448,'SUMATERA UTARA','KAB. TOBA SAMOSIR'),(449,'SUMATERA UTARA','KOTA BINJAI'),(450,'SUMATERA UTARA','KOTA GUNUNGSITOLI'),(451,'SUMATERA UTARA','KOTA MEDAN'),(452,'SUMATERA UTARA','KOTA PADANG SIDEMPUAN'),(453,'SUMATERA UTARA','KOTA PEMATANG SIANTAR'),(454,'SUMATERA UTARA','KOTA SIBOLGA'),(455,'SUMATERA UTARA','KOTA TANJUNG BALAI'),(456,'SUMATERA UTARA','KOTA TEBING TINGGI'),(918,'ARAFAH','Wiwik'),(920,'ARAFAH','Reza'),(921,'ARAFAH','Fidzi'); /*!40000 ALTER TABLE `daerah` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `instruksi_resep` -- DROP TABLE IF EXISTS `instruksi_resep`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `instruksi_resep` ( `id_instruksi` int(11) NOT NULL AUTO_INCREMENT, `id_resep` int(11) NOT NULL, `instruksi` int(11) NOT NULL, PRIMARY KEY (`id_instruksi`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `instruksi_resep` -- LOCK TABLES `instruksi_resep` WRITE; /*!40000 ALTER TABLE `instruksi_resep` DISABLE KEYS */; /*!40000 ALTER TABLE `instruksi_resep` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `kategori` -- DROP TABLE IF EXISTS `kategori`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `kategori` ( `id_kategori` int(100) NOT NULL AUTO_INCREMENT, `nama_kategori` varchar(100) NOT NULL, PRIMARY KEY (`id_kategori`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `kategori` -- LOCK TABLES `kategori` WRITE; /*!40000 ALTER TABLE `kategori` DISABLE KEYS */; INSERT INTO `kategori` VALUES (1,'Makanan'),(2,'Minuman'),(3,'Provinsi'),(4,'Kota'); /*!40000 ALTER TABLE `kategori` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `rencana_memasak` -- DROP TABLE IF EXISTS `rencana_memasak`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `rencana_memasak` ( `id_rencana_memasak` int(100) NOT NULL AUTO_INCREMENT, `id_user` int(100) NOT NULL, `id_resep` int(100) NOT NULL, `hari` varchar(50) NOT NULL, `jam_makan` varchar(50) NOT NULL, PRIMARY KEY (`id_rencana_memasak`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `rencana_memasak` -- LOCK TABLES `rencana_memasak` WRITE; /*!40000 ALTER TABLE `rencana_memasak` DISABLE KEYS */; /*!40000 ALTER TABLE `rencana_memasak` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `resep` -- DROP TABLE IF EXISTS `resep`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `resep` ( `id_resep` int(100) NOT NULL AUTO_INCREMENT, `nama_resep` varchar(100) NOT NULL, `id_user` int(100) NOT NULL, `id_kategori` int(50) NOT NULL, `id_instruksi` int(50) NOT NULL, `porsi` int(100) NOT NULL, `caption` int(250) NOT NULL, `img_resep` varchar(100) NOT NULL, PRIMARY KEY (`id_resep`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `resep` -- LOCK TABLES `resep` WRITE; /*!40000 ALTER TABLE `resep` DISABLE KEYS */; /*!40000 ALTER TABLE `resep` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `unit` -- DROP TABLE IF EXISTS `unit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `unit` ( `id_unit` int(11) NOT NULL AUTO_INCREMENT, `unit` int(11) NOT NULL, PRIMARY KEY (`id_unit`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `unit` -- LOCK TABLES `unit` WRITE; /*!40000 ALTER TABLE `unit` DISABLE KEYS */; /*!40000 ALTER TABLE `unit` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user` ( `id_user` int(100) NOT NULL AUTO_INCREMENT, `nama_user` varchar(100) NOT NULL, `email_user` varchar(100) NOT NULL, `password_user` varchar(50) NOT NULL, `provinsi` varchar(50) DEFAULT NULL, `kota` text DEFAULT NULL, `img_user` varchar(100) DEFAULT NULL, `poin` int(11) DEFAULT 0, `hak_akses` varchar(100) DEFAULT 'member', PRIMARY KEY (`id_user`) ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user` -- LOCK TABLES `user` WRITE; /*!40000 ALTER TABLE `user` DISABLE KEYS */; INSERT INTO `user` VALUES (1,'<NAME>','<EMAIL>','<PASSWORD>','Banten','Tangerang','users/d20b9b45422eded214af22284ecfb663.png',0,'owner'),(9,'Aa Net','<EMAIL>','<PASSWORD>','BANTEN',NULL,'users/9ddddfe9160182ba10eca98151a0e4ea.png',0,'admin'),(10,'Admin','<EMAIL>','<PASSWORD>','BANTEN',NULL,'users/9d3b7f01ed3c81742a8ff924da534207.png',0,'admin'),(11,'Pengguna Baru Edit','<EMAIL>','<PASSWORD>','BENGKULU',NULL,'users/ab4097af0b0f6303cd0893b66fc602f2.png',0,'member'); /*!40000 ALTER TABLE `user` ENABLE KEYS */; UNLOCK TABLES; -- -- Dumping routines for database 'tasteid' -- /*!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 2021-06-05 7:38:41
SELECT P.ID, P.name FROM people as P INNER JOIN results as R ON R.peopleid = P.ID GROUP BY P.ID HAVING COUNT(*) >= 20
<reponame>rentadba/dbaTDPMon RAISERROR('Create procedure: [dbo].[usp_refreshMachineCatalogs]', 10, 1) WITH NOWAIT GO IF EXISTS ( SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[usp_refreshMachineCatalogs]') AND type in (N'P', N'PC')) DROP PROCEDURE [dbo].[usp_refreshMachineCatalogs] GO CREATE PROCEDURE [dbo].[usp_refreshMachineCatalogs] @projectCode [varchar](32)=NULL, @sqlServerName [sysname], @addNewDatabasesToProject [bit] = 1, @databaseNameFilter [sysname] = '%', @debugMode [bit] = 0 /* WITH ENCRYPTION */ AS -- ============================================================================ -- Copyright (c) 2004-2015 <NAME> (<EMAIL>) -- ============================================================================ -- Author : <NAME> -- Create date : 08.12.2014 -- Module : Database Analysis & Performance Monitoring -- ============================================================================ -- Change Date: 2015.04.03 / Andrei STEFAN -- Description: add domain name to machine information ----------------------------------------------------------------------------------------- SET NOCOUNT ON DECLARE @returnValue [smallint] , @errMessage [nvarchar](4000) , @errDescriptor [nvarchar](256) , @errNumber [int] DECLARE @queryToRun [nvarchar](max) -- used for dynamic statements , @projectID [smallint] , @isClustered [bit] , @isActive [bit] , @instanceID [smallint] , @domainName [sysname] , @optionXPValue [int] , @hostPlatform [sysname] , @dbFilter [sysname] , @isAzureSQLDatabase [bit] -- { sql_statement | statement_block } BEGIN TRY SET @returnValue=1 ----------------------------------------------------------------------------------------------------- SET @errMessage=N'Getting Instance information: [' + @sqlServerName + '] / project: [' + @projectCode + ']' EXEC [dbo].[usp_logPrintMessage] @customMessage = @errMessage, @raiseErrorAsPrint = 1, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 SET @errMessage=N'' ----------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------- --check that SQLServerName is defined as local or as a linked server to current sql server instance ----------------------------------------------------------------------------------------------------- IF (SELECT count(*) FROM sys.sysservers WHERE srvname=@sqlServerName)=0 begin SET @errMessage= N'Specified instance name is not defined as local or linked server: ' + @sqlServerName EXEC [dbo].[usp_logPrintMessage] @customMessage = @errMessage, @raiseErrorAsPrint = 1, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 SET @errMessage= N'Create a new linked server.' EXEC [dbo].[usp_logPrintMessage] @customMessage = @errMessage, @raiseErrorAsPrint = 1, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 /* create a linked server for the instance found */ EXEC [dbo].[usp_addLinkedSQLServer] @ServerName = @sqlServerName end ----------------------------------------------------------------------------------------------------- IF object_id('#serverPropertyConfig') IS NOT NULL DROP TABLE #serverPropertyConfig CREATE TABLE #serverPropertyConfig ( [value] [sysname] NULL ) ----------------------------------------------------------------------------------------------------- IF object_id('tempdb..#xpCMDShellOutput') IS NOT NULL DROP TABLE #xpCMDShellOutput CREATE TABLE #xpCMDShellOutput ( [output] [nvarchar](max) NULL ) ----------------------------------------------------------------------------------------------------- IF object_id('#catalogMachineNames') IS NOT NULL DROP TABLE #catalogMachineNames CREATE TABLE #catalogMachineNames ( [name] [sysname] NULL, [domain] [sysname] NULL, [host_platform] [sysname] NULL ) ----------------------------------------------------------------------------------------------------- IF object_id('#catalogInstanceNames') IS NOT NULL DROP TABLE #catalogInstanceNames CREATE TABLE #catalogInstanceNames ( [name] [sysname] NULL, [version] [sysname] NULL, [edition] [varchar](256) NULL, [machine_name] [sysname] NULL, [engine] [int] NULL, ) ----------------------------------------------------------------------------------------------------- IF object_id('#catalogDatabaseNames') IS NOT NULL DROP TABLE #catalogDatabaseNames CREATE TABLE #catalogDatabaseNames ( [database_id] [int] NULL, [name] [sysname] NULL, [state] [int] NULL, [state_desc] [nvarchar](64) NULL ) ------------------------------------------------------------------------------------------------------------------------------------------ --get default projectCode IF @projectCode IS NULL SET @projectCode = [dbo].[ufn_getProjectCode](@sqlServerName, NULL) SELECT @projectID = [id] , @dbFilter = [db_filter] FROM [dbo].[catalogProjects] WHERE [code] = @projectCode IF @projectID IS NULL begin SET @errMessage=N'ERROR: The value specifief for Project Code is not valid.' EXEC [dbo].[usp_logPrintMessage] @customMessage = @errMessage, @raiseErrorAsPrint = 1, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=1 end IF ISNULL(@dbFilter, '')='' SET @dbFilter = '%' IF @databaseNameFilter IS NOT NULL AND @databaseNameFilter <> '%' SET @dbFilter = @databaseNameFilter ----------------------------------------------------------------------------------------------------- --check if the connection to machine can be made & discover instance name ----------------------------------------------------------------------------------------------------- SET @queryToRun = N'SELECT @@SERVERNAME , [product_version] , [edition] , [machine_name] , [engine] FROM ( SELECT CAST(SERVERPROPERTY(''ProductVersion'') AS [sysname]) AS [product_version] , SUBSTRING(@@VERSION, 1, CHARINDEX(CAST(SERVERPROPERTY(''ProductVersion'') AS [sysname]), @@VERSION)-1) + CAST(SERVERPROPERTY(''Edition'') AS [sysname]) AS [edition] , CAST(SERVERPROPERTY(''ComputerNamePhysicalNetBIOS'') AS [sysname]) AS [machine_name] , CAST(SERVERPROPERTY(''EngineEdition'') AS [int]) AS [engine] )X' SET @queryToRun = [dbo].[ufn_formatSQLQueryForLinkedServer](@sqlServerName, @queryToRun) IF @debugMode = 1 EXEC [dbo].[usp_logPrintMessage] @customMessage = @queryToRun, @raiseErrorAsPrint = 0, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 BEGIN TRY INSERT INTO #catalogInstanceNames([name], [version], [edition], [machine_name], [engine]) EXEC sp_executesql @queryToRun SET @isActive=1 END TRY BEGIN CATCH SET @errMessage=ERROR_MESSAGE() SET @errDescriptor = 'dbo.usp_refreshMachineCatalogs - Offline' EXEC [dbo].[usp_logPrintMessage] @customMessage = @errMessage, @raiseErrorAsPrint = 1, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 SET @isActive=0 END CATCH IF @isActive=0 begin INSERT INTO #catalogMachineNames([name]) SELECT cmn.[name] FROM [dbo].[catalogMachineNames] cmn INNER JOIN [dbo].[catalogInstanceNames] cin ON cmn.[id] = cin.[machine_id] AND cmn.[project_id] = cin.[project_id] WHERE cin.[project_id] = @projectID AND cin.[name] = @sqlServerName IF @@ROWCOUNT=0 INSERT INTO #catalogMachineNames([name]) SELECT SUBSTRING(@sqlServerName, 1, CASE WHEN CHARINDEX('\', @sqlServerName) > 0 THEN CHARINDEX('\', @sqlServerName)-1 ELSE LEN(@sqlServerName) END) INSERT INTO #catalogInstanceNames([name], [version]) SELECT @sqlServerName, NULL SET @isClustered = 0 end ELSE begin DECLARE @SQLMajorVersion [int] BEGIN TRY SELECT @SQLMajorVersion = REPLACE(LEFT(ISNULL([version], ''), 2), '.', '') , @isAzureSQLDatabase = CASE WHEN [engine] IN (5, 6, 8) THEN 1 ELSE 0 END FROM #catalogInstanceNames END TRY BEGIN CATCH SET @SQLMajorVersion = 9 END CATCH ----------------------------------------------------------------------------------------------------- --discover machine names (if clustered instance is present, get all cluster nodes) ----------------------------------------------------------------------------------------------------- SET @isClustered=0 IF @isAzureSQLDatabase = 0 begin SET @queryToRun = N'SELECT [NodeName] FROM sys.dm_os_cluster_nodes WITH (NOLOCK)' SET @queryToRun = [dbo].[ufn_formatSQLQueryForLinkedServer](@sqlServerName, @queryToRun) IF @debugMode = 1 EXEC [dbo].[usp_logPrintMessage] @customMessage = @queryToRun, @raiseErrorAsPrint = 0, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 BEGIN TRY INSERT INTO #catalogMachineNames([name]) EXEC sp_executesql @queryToRun END TRY BEGIN CATCH IF @debugMode=1 begin SET @errMessage = 'An error occured. It will be ignored: ' + ERROR_MESSAGE() EXEC [dbo].[usp_logPrintMessage] @customMessage = @errMessage, @raiseErrorAsPrint = 1, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 end END CATCH IF (SELECT COUNT(*) FROM #catalogMachineNames)=0 begin SET @queryToRun = N'SELECT CASE WHEN [computer_name] IS NOT NULL THEN [computer_name] ELSE [machine_name] END FROM ( SELECT CAST(SERVERPROPERTY(''ComputerNamePhysicalNetBIOS'') AS [sysname]) AS [computer_name] )X, ( SELECT CAST(SERVERPROPERTY(''MachineName'') AS [sysname]) AS [machine_name] )Y' SET @queryToRun = [dbo].[ufn_formatSQLQueryForLinkedServer](@sqlServerName, @queryToRun) IF @debugMode = 1 EXEC [dbo].[usp_logPrintMessage] @customMessage = @queryToRun, @raiseErrorAsPrint = 0, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 BEGIN TRY INSERT INTO #catalogMachineNames([name]) EXEC sp_executesql @queryToRun END TRY BEGIN CATCH SET @errMessage=ERROR_MESSAGE() SET @errDescriptor = 'dbo.usp_refreshMachineCatalogs' EXEC [dbo].[usp_logPrintMessage] @customMessage = @errMessage, @raiseErrorAsPrint = 1, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=1 END CATCH end ELSE begin SET @isClustered = 1 end end ELSE begin /* On Azure managed SQL (SQL Database and Managed Instance), assume the machine name is the same as the server-name */ INSERT INTO #catalogMachineNames([name]) SELECT [name] FROM #catalogInstanceNames end ----------------------------------------------------------------------------------------------------- --discover database names ----------------------------------------------------------------------------------------------------- SET @queryToRun = N'SELECT sdb.[database_id], sdb.[name], sdb.[state], sdb.[state_desc] FROM sys.databases sdb WITH (NOLOCK) WHERE [is_read_only] = 0 AND [is_in_standby] = 0 UNION ALL SELECT sdb.[database_id], sdb.[name], sdb.[state], ''READ ONLY'' FROM sys.databases sdb WITH (NOLOCK) WHERE [is_read_only] = 1 AND [is_in_standby] = 0 UNION ALL SELECT sdb.[database_id], sdb.[name], sdb.[state], ''STANDBY'' FROM sys.databases sdb WITH (NOLOCK) WHERE [is_in_standby] = 1' SET @queryToRun = [dbo].[ufn_formatSQLQueryForLinkedServer](@sqlServerName, @queryToRun) IF @debugMode = 1 EXEC [dbo].[usp_logPrintMessage] @customMessage = @queryToRun, @raiseErrorAsPrint = 0, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 BEGIN TRY INSERT INTO #catalogDatabaseNames([database_id], [name], [state], [state_desc]) EXEC sp_executesql @queryToRun END TRY BEGIN CATCH SET @errMessage=ERROR_MESSAGE() SET @errDescriptor = 'dbo.usp_refreshMachineCatalogs' EXEC [dbo].[usp_logPrintMessage] @customMessage = @errMessage, @raiseErrorAsPrint = 1, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=1 END CATCH /*-------------------------------------------------------------------------------------------------------------------------------*/ /* check if xp_cmdshell is enabled or should be enabled */ IF @isAzureSQLDatabase = 0 BEGIN TRY SET @optionXPValue = 0 /* enable xp_cmdshell configuration option */ EXEC [dbo].[usp_changeServerOption_xp_cmdshell] @serverToRun = @sqlServerName , @flgAction = 1 -- 1=enable | 0=disable , @optionXPValue = @optionXPValue OUTPUT , @debugMode = @debugMode IF @optionXPValue=1 begin BEGIN TRY --run wmi to get the domain name SET @queryToRun = N'' SET @queryToRun = @queryToRun + N'DECLARE @cmdQuery [varchar](102); SET @cmdQuery=''wmic computersystem get Domain''; EXEC xp_cmdshell @cmdQuery;' IF @sqlServerName<>@@SERVERNAME IF @SQLMajorVersion < 11 SET @queryToRun = N'SELECT * FROM OPENQUERY([' + @sqlServerName + '], ''SET FMTONLY OFF; EXEC (''''' + REPLACE(@queryToRun, '''', '''''''''') + ''''')'')' ELSE SET @queryToRun = N'SELECT * FROM OPENQUERY([' + @sqlServerName + '], ''SET FMTONLY OFF; EXEC (''''' + REPLACE(@queryToRun, '''', '''''''''') + ''''') WITH RESULT SETS(([Output] [nvarchar](max)))'')x' IF @debugMode = 1 EXEC [dbo].[usp_logPrintMessage] @customMessage = @queryToRun, @raiseErrorAsPrint = 0, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 INSERT INTO #xpCMDShellOutput([output]) EXEC sp_executesql @queryToRun UPDATE #xpCMDShellOutput SET [output]=REPLACE(REPLACE(REPLACE(LTRIM(RTRIM([output])), ' ', ''), CHAR(10), ''), CHAR(13), '') DELETE FROM #xpCMDShellOutput WHERE LEN([output])<=3 OR [output] IS NULL DELETE FROM #xpCMDShellOutput WHERE [output] LIKE '%not recognized as an internal or external command%' DELETE FROM #xpCMDShellOutput WHERE [output] LIKE '%operable program or batch file%' DELETE TOP (1) FROM #xpCMDShellOutput WHERE SUBSTRING([output], 1, 8)='Domain' SELECT TOP 1 @domainName = LOWER([output]) FROM #xpCMDShellOutput END TRY BEGIN CATCH SET @queryToRun = N'' SET @queryToRun = @queryToRun + N'SELECT DEFAULT_DOMAIN()'; IF @sqlServerName<>@@SERVERNAME SET @queryToRun = N'SELECT * FROM OPENQUERY([' + @sqlServerName + '], ''SET FMTONLY OFF; EXEC (''''' + REPLACE(@queryToRun, '''', '''''''''') + ''''')'')' IF @debugMode = 1 EXEC [dbo].[usp_logPrintMessage] @customMessage = @queryToRun, @raiseErrorAsPrint = 0, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 INSERT INTO #xpCMDShellOutput([output]) EXEC sp_executesql @queryToRun SELECT TOP 1 @domainName = LOWER([output]) FROM #xpCMDShellOutput END CATCH UPDATE #catalogMachineNames SET [domain] = @domainName end /* disable xp_cmdshell configuration option */ EXEC [dbo].[usp_changeServerOption_xp_cmdshell] @serverToRun = @sqlServerName , @flgAction = 0 -- 1=enable | 0=disable , @optionXPValue = @optionXPValue OUTPUT , @debugMode = @debugMode END TRY BEGIN CATCH SET @errMessage = ERROR_MESSAGE() SET @errDescriptor = 'dbo.usp_refreshMachineCatalogs' EXEC [dbo].[usp_logPrintMessage] @customMessage = @errMessage, @raiseErrorAsPrint = 1, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 END CATCH ----------------------------------------------------------------------------------------------------- --discover platform type: windows/linux/azure ----------------------------------------------------------------------------------------------------- IF @SQLMajorVersion>=14 AND @isAzureSQLDatabase = 0 begin SET @queryToRun = N'SELECT [host_platform] FROM sys.dm_os_host_info WITH (NOLOCK)' SET @queryToRun = [dbo].[ufn_formatSQLQueryForLinkedServer](@sqlServerName, @queryToRun) IF @debugMode = 1 EXEC [dbo].[usp_logPrintMessage] @customMessage = @queryToRun, @raiseErrorAsPrint = 0, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 BEGIN TRY DELETE FROM #xpCMDShellOutput INSERT INTO #xpCMDShellOutput([output]) EXEC sp_executesql @queryToRun SELECT @hostPlatform = LOWER([output]) FROM #xpCMDShellOutput UPDATE #catalogMachineNames SET [host_platform] = @hostPlatform END TRY BEGIN CATCH SET @errMessage = ERROR_MESSAGE() EXEC [dbo].[usp_logPrintMessage] @customMessage = @errMessage, @raiseErrorAsPrint = 1, @messagRootLevel = 0, @messageTreelevel = 1, @stopExecution=0 END CATCH end ELSE IF @isAzureSQLDatabase = 1 UPDATE #catalogMachineNames SET [host_platform] = 'azure' end /* for Azure SQL database, consider the @@servername = UPPER(db_name()0 */ IF @isAzureSQLDatabase = 1 begin /* Azure SQL Database - linked server defined to a single database */ IF (SELECT COUNT(*) FROM #catalogDatabaseNames) = 2 begin DELETE FROM #catalogDatabaseNames WHERE [name] IN ('master') UPDATE ci SET ci.[name] = UPPER(cdn.[name]) FROM #catalogInstanceNames ci CROSS JOIN ( SELECT TOP 1 [name] FROM #catalogDatabaseNames ) cdn end ELSE /* Azure SQL Server or Pool - linked server defined to master */ begin UPDATE ci SET ci.[name] = UPPER(ci.[name]) FROM #catalogInstanceNames ci end end ----------------------------------------------------------------------------------------------------- --upsert catalog tables ----------------------------------------------------------------------------------------------------- UPDATE dest SET dest.[domain]=src.[domain] , dest.[host_platform] = src.[host_platform] FROM [dbo].[catalogMachineNames] AS dest INNER JOIN ( SELECT [name], [domain], [host_platform] FROM #catalogMachineNames ) src ON dest.[name] = src.[name] COLLATE DATABASE_DEFAULT AND dest.[project_id] = @projectID; INSERT INTO [dbo].[catalogMachineNames] ([project_id], [name], [domain], [host_platform]) SELECT @projectID, src.[name], src.[domain], src.[host_platform] FROM ( SELECT [name], [domain], [host_platform] FROM #catalogMachineNames ) src LEFT JOIN [dbo].[catalogMachineNames] AS dest ON dest.[name] = src.[name] COLLATE DATABASE_DEFAULT AND dest.[project_id] = @projectID WHERE dest.[name] IS NULL; UPDATE dest SET dest.[is_clustered] = src.[is_clustered] , dest.[version] = src.[version] , dest.[active] = CASE WHEN src.[is_clustered]=1 THEN CASE WHEN src.[active]=1 AND src.[machine_id]=src.[cluster_node_machine_id] THEN 1 ELSE 0 END ELSE src.[active] END , dest.[edition] = src.[edition] , dest.[engine] = src.[engine] , dest.[cluster_node_machine_id] = src.[cluster_node_machine_id] , dest.[last_refresh_date_utc] = GETUTCDATE() FROM [dbo].[catalogInstanceNames] AS dest INNER JOIN ( SELECT cmn.[id] AS [machine_id] , cin.[name] AS [name] , cin.[version] , cin.[edition] , cin.[engine] , @isClustered AS [is_clustered] , @isActive AS [active] , cmnA.[id] AS [cluster_node_machine_id] FROM #catalogInstanceNames cin INNER JOIN #catalogMachineNames src ON 1=1 INNER JOIN [dbo].[catalogMachineNames] cmn ON cmn.[name] = src.[name] COLLATE DATABASE_DEFAULT AND cmn.[project_id]=@projectID LEFT JOIN [dbo].[catalogMachineNames] cmnA ON cmnA.[name] = cin.[machine_name] COLLATE DATABASE_DEFAULT AND cmnA.[project_id]=@projectID AND @isClustered=1 ) AS src ON dest.[machine_id] = src.[machine_id] AND dest.[name] = src.[name] COLLATE DATABASE_DEFAULT AND dest.[project_id] = @projectID; INSERT INTO [dbo].[catalogInstanceNames]([machine_id], [project_id], [name], [version], [edition], [engine], [is_clustered], [active], [cluster_node_machine_id], [last_refresh_date_utc]) SELECT src.[machine_id], @projectID, src.[name], src.[version], src.[edition], src.[engine], src.[is_clustered] , CASE WHEN src.[is_clustered]=1 THEN CASE WHEN src.[active]=1 AND src.[machine_id]=src.[cluster_node_machine_id] THEN 1 ELSE 0 END ELSE src.[active] END , src.[cluster_node_machine_id] , GETUTCDATE() FROM ( SELECT cmn.[id] AS [machine_id] , cin.[name] AS [name] , cin.[version] , cin.[edition] , cin.[engine] , @isClustered AS [is_clustered] , @isActive AS [active] , cmnA.[id] AS [cluster_node_machine_id] FROM #catalogInstanceNames cin INNER JOIN #catalogMachineNames src ON 1=1 INNER JOIN [dbo].[catalogMachineNames] cmn ON cmn.[name] = src.[name] COLLATE DATABASE_DEFAULT AND cmn.[project_id]=@projectID LEFT JOIN [dbo].[catalogMachineNames] cmnA ON cmnA.[name] = cin.[machine_name] COLLATE DATABASE_DEFAULT AND cmnA.[project_id]=@projectID AND @isClustered=1 ) AS src LEFT JOIN [dbo].[catalogInstanceNames] AS dest ON dest.[machine_id] = src.[machine_id] AND dest.[name] = src.[name] COLLATE DATABASE_DEFAULT AND dest.[project_id] = @projectID WHERE dest.[machine_id] IS NULL; UPDATE cdn SET cdn.[active] = 0 FROM [dbo].[catalogDatabaseNames] cdn INNER JOIN [dbo].[catalogInstanceNames] cin ON cin.[id] = cdn.[instance_id] AND cin.[project_id] = cdn.[project_id] INNER JOIN #catalogInstanceNames srcIN ON cin.[name] = srcIN.[name] COLLATE DATABASE_DEFAULT WHERE cin.[project_id] = @projectID UPDATE dest SET dest.[database_id] = src.[database_id] , dest.[state] = src.[state] , dest.[state_desc] = src.[state_desc] , dest.[active] = 1 FROM [dbo].[catalogDatabaseNames] AS dest WITH (INDEX(UK_catalogDatabaseNames_Name)) INNER JOIN ( SELECT cin.[id] AS [instance_id] , src.[name] , src.[database_id] , src.[state] , src.[state_desc] FROM #catalogDatabaseNames src INNER JOIN #catalogMachineNames srcMn ON 1=1 INNER JOIN #catalogInstanceNames srcIN ON 1=1 INNER JOIN [dbo].[catalogMachineNames] cmn ON cmn.[name] = srcMn.[name] COLLATE DATABASE_DEFAULT AND cmn.[project_id]=@projectID INNER JOIN [dbo].[catalogInstanceNames] cin ON cin.[name] = srcIN.[name] COLLATE DATABASE_DEFAULT AND cin.[machine_id] = cmn.[id] WHERE cin.[project_id] = @projectID ) AS src ON dest.[instance_id] = src.[instance_id] AND dest.[name] = src.[name] COLLATE DATABASE_DEFAULT AND dest.[project_id] = @projectID;; IF @addNewDatabasesToProject = 1 /* add only databases not allocated to other projects */ INSERT INTO [dbo].[catalogDatabaseNames]([instance_id], [project_id], [database_id], [name], [state], [state_desc], [active]) SELECT src.[instance_id], @projectID, src.[database_id], src.[database_name], src.[state], src.[state_desc], 1 FROM ( SELECT cin.[id] AS [instance_id] , cin.[name] AS [instance_name] , src.[name] AS [database_name] , src.[database_id] , src.[state] , src.[state_desc] FROM #catalogDatabaseNames src INNER JOIN #catalogMachineNames srcMn ON 1=1 INNER JOIN #catalogInstanceNames srcIN ON 1=1 INNER JOIN [dbo].[catalogMachineNames] cmn ON cmn.[name] = srcMn.[name] COLLATE DATABASE_DEFAULT AND cmn.[project_id]=@projectID INNER JOIN [dbo].[catalogInstanceNames] cin ON cin.[name] = srcIN.[name] COLLATE DATABASE_DEFAULT AND cin.[machine_id] = cmn.[id] WHERE src.[name] LIKE @dbFilter COLLATE DATABASE_DEFAULT AND cin.[project_id] = @projectID ) AS src LEFT JOIN ( SELECT cin.[project_id], cin.[name] AS [instance_name], cdn.[name] AS [database_name] FROM [dbo].[catalogDatabaseNames] cdn INNER JOIN [dbo].[catalogInstanceNames] cin ON cdn.[project_id] = cin.[project_id] AND cdn.[instance_id] = cin.[id] ) AS dest ON dest.[instance_name] = src.[instance_name] COLLATE DATABASE_DEFAULT AND dest.[database_name] = src.[database_name] COLLATE DATABASE_DEFAULT WHERE dest.[project_id] IS NULL; SELECT TOP 1 @instanceID = cin.[id] FROM #catalogMachineNames srcMn INNER JOIN #catalogInstanceNames srcIN ON 1=1 INNER JOIN [dbo].[catalogMachineNames] cmn ON cmn.[name] = srcMn.[name] COLLATE DATABASE_DEFAULT AND cmn.[project_id]=@projectID INNER JOIN [dbo].[catalogInstanceNames] cin ON cin.[name] = srcIN.[name] COLLATE DATABASE_DEFAULT AND cin.[machine_id] = cmn.[id] IF @errMessage IS NOT NULL AND @errMessage<>'' INSERT INTO [dbo].[logAnalysisMessages]([instance_id], [project_id], [event_date_utc], [descriptor], [message]) SELECT @instanceID , @projectID , GETUTCDATE() , @errDescriptor , @errMessage RETURN @instanceID END TRY BEGIN CATCH DECLARE @ErrorMessage NVARCHAR(4000), @ErrorNumber INT, @ErrorSeverity INT, @ErrorState INT, @ErrorLine INT, @ErrorProcedure NVARCHAR(200); -- Assign variables to error-handling functions that -- capture information for RAISERROR. SELECT @ErrorNumber = ERROR_NUMBER(), @ErrorSeverity = ERROR_SEVERITY(), @ErrorState = CASE WHEN ERROR_STATE() BETWEEN 1 AND 127 THEN ERROR_STATE() ELSE 1 END , @ErrorLine = ERROR_LINE(), @ErrorProcedure = ISNULL(ERROR_PROCEDURE(), '-'); -- Building the message string that will contain original -- error information. SELECT @ErrorMessage = N'Error %d, Level %d, State %d, Procedure %s, Line %d, ' + 'Message: '+ ERROR_MESSAGE(); -- Raise an error: msg_str parameter of RAISERROR will contain -- the original error information. RAISERROR ( @ErrorMessage, @ErrorSeverity, @ErrorState, @ErrorNumber, -- parameter: original error number. @ErrorSeverity, -- parameter: original error severity. @ErrorState, -- parameter: original error state. @ErrorProcedure, -- parameter: original error procedure name. @ErrorLine -- parameter: original error line number. ); -- Test XACT_STATE: -- If 1, the transaction is committable. -- If -1, the transaction is uncommittable and should -- be rolled back. -- XACT_STATE = 0 means that there is no transaction and -- a COMMIT or ROLLBACK would generate an error. -- Test if the transaction is uncommittable. IF (XACT_STATE()) = -1 BEGIN PRINT N'The transaction is in an uncommittable state.' + 'Rolling back transaction.' ROLLBACK TRANSACTION END; END CATCH RETURN @returnValue GO
-- select1.test -- -- execsql {PRAGMA empty_result_callbacks=on} PRAGMA empty_result_callbacks=on
<reponame>jdkoren/sqlite-parser<filename>src/test/resources/insert3.test_7.sql -- insert3.test -- -- execsql { -- INSERT INTO t1(a) VALUES('xyz'); -- SELECT * FROM log ORDER BY x; -- } INSERT INTO t1(a) VALUES('xyz'); SELECT * FROM log ORDER BY x;
<reponame>Shuttl-Tech/antlr_psql -- file:strings.sql ln:519 expect:true select 'a\bcd' as f1, 'a\b''cd' as f2, 'a\b''''cd' as f3, 'abcd\' as f4, 'ab\''cd' as f5, '\\' as f6
ALTER TABLE chores ADD track_date_only TINYINT DEFAULT 0;
# datetime_val.sql # table of test date-and-time values (same values as timestamps table, # but as DATETIME values) DROP TABLE IF EXISTS datetime_val; CREATE TABLE datetime_val ( dt DATETIME ); # These values are the same for datetime_val and timestamp_val. # Don't change one without changing the other. INSERT INTO datetime_val (dt) VALUES('1970-01-01 00:00:00'); INSERT INTO datetime_val (dt) VALUES('1999-12-31 09:00:00'); INSERT INTO datetime_val (dt) VALUES('2000-06-04 15:45:30'); INSERT INTO datetime_val (dt) VALUES('2017-03-16 12:30:15'); SELECT * FROM datetime_val;
select count(*) as cnt from ship, port, ship_parameters where port.name = ship_parameters.portname AND (point(ship.latitude, ship.longitude) <@> point(port.latitude, port.longitude)) / ship.max_speed <= ship_parameters.deadline ;
<gh_stars>0 insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '366 Gateway Road'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '49302 Anhalt Parkway'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '08537 Eastlawn Drive'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '077 Johnson Terrace'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '29924 Fieldstone Avenue'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '82740 Victoria Circle'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '75 Vidon Pass'); insert into Vendor (vendorName, vendorAddress) values ('Natala Kingdom', '96965 Manitowish Road'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '9 Springs Pass'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '85478 Victoria Way'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '05 Dryden Hill'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '3210 Sherman Hill'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '02 Marcy Lane'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '65268 Old Shore Court'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '1 Randy Alley'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '90641 Sunbrook Avenue'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '431 Carey Lane'); insert into Vendor (vendorName, vendorAddress) values ('Nappie Padbery', '82409 Paget Way'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '8861 Everett Street'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '2363 Arizona Circle'); insert into Vendor (vendorName, vendorAddress) values ('Natala Kingdom', '937 Loeprich Place'); insert into Vendor (vendorName, vendorAddress) values ('T<NAME>', '45657 Sutherland Plaza'); insert into Vendor (vendorName, vendorAddress) values ('Am<NAME>', '1052 Tennessee Pass'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '73 Larry Place'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '87 Talmadge Crossing'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '88 Spohn Plaza'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '68868 Westport Lane'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '13 Sloan Park'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '446 Manitowish Place'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '99398 Kings Junction'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '990 Sundown Hill'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '522 Summit Avenue'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '3749 Lyons Pass'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '02 Debs Way'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '7877 Redwing Place'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '77081 Stuart Hill'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '8 Express Drive'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '4 Myrtle Pass'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '77983 West Center'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '7287 Waywood Place'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '5 Messerschmidt Court'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '659 Schiller Crossing'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '8640 Heath Crossing'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '34846 Pond Pass'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '895 Maple Wood Hill'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '962 Ilene Plaza'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '4 Heath Plaza'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '62 Brentwood Crossing'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '40 Oriole Street'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '630 Ronald Regan Park'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '1 Old Shore Avenue'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '200 Di Loreto Street'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '61591 Garrison Pass'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '2 Nevada Pass'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '6625 Ryan Point'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '572 Mitchell Terrace'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '06 Heffernan Park'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '61184 5th Junction'); insert into Vendor (vendorName, vendorAddress) values ('Meta Skey', '4814 Fremont Place'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '2602 Jana Place'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '352 Meadow Valley Crossing'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '76 Bashford Drive'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '27142 Namekagon Park'); insert into Vendor (vendorName, vendorAddress) values ('Meta Skey', '18 Spohn Way'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '36 Trailsway Road'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '11153 Vernon Terrace'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '2783 Chive Circle'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '80 Vera Lane'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '5496 Dunning Way'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '7664 Oneill Junction'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '9 Hoepker Street'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '61576 Hauk Way'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '17 Elka Drive'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '63 Amoth Alley'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '0 Hollow Ridge Court'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '465 Di Loreto Park'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '0 Stone Corner Trail'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '61 Mcbride Road'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '64 Brentwood Street'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '1 Quincy Trail'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '8653 Shoshone Trail'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '2 Bartelt Lane'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '351 Florence Road'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '3 Mandrake Hill'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '10265 Forest Center'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '61 Eliot Street'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '718 Butterfield Avenue'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '237 Shasta Park'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '80606 Dakota Alley'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '9390 Jana Lane'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '25703 Bellgrove Court'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '92 Londonderry Terrace'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '23158 Briar Crest Drive'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '860 Sullivan Center'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '626 Fulton Trail'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '0 Oriole Junction'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '7 Dovetail Hill'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '32 Maywood Plaza'); insert into Vendor (vendorName, vendorAddress) values ('B<NAME>t', '53 Summer Ridge Road'); insert into Vendor (vendorName, vendorAddress) values ('<NAME>', '5214 Stone Corner Road');
CREATE TABLE if not exists products ( id integer PRIMARY KEY NOT NULL, name varchar(24) NOT NULL, productRange varchar(16), added date NOT NULL); INSERT INTO products (id, name, productRange, added) values (1, 'Widget Basic', 'bronze', CURRENT_DATE); INSERT INTO products (id, name, productRange, added) values (2, 'Widget', 'silver', CURRENT_DATE); INSERT INTO products (id, name, productRange, added) values (3, 'Widget Pro', 'gold', CURRENT_DATE);
<filename>dots_server/db_models/template.sql # blocker # ------------------------------------------------------------ DROP TABLE IF EXISTS `blocker`; CREATE TABLE `blocker` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `blocker_type` VARCHAR(255) NOT NULL, `capacity` int(11) NOT NULL, `load` int(11) NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_blocker_IDX_LOAD` (`load`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ####### Add an insert query to add the basic data of your blockers here. # id: id is the identifier of the blocker object # blocker_type: currently only 'GoBGP-RTBH' is supported # capacity: capacity with which this blocker can deal with the attack traffics # load: load of the traffic this blocker is currently dealing with. # # example query: # INSERT INTO `blocker` (`id`, `blocker_type`, `capacity`, `load`, `created`, `updated`) # VALUES # (1,'GoBGP-RTBH', 100, 0,'2017-04-13 13:44:34','2017-04-13 13:44:34') # (2,'Arista-ACL', 100, 0,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (3,'GoBGP-FlowSpec', 100, 0,'2017-04-13 13:44:34','2017-04-13 13:44:34'); # blocker_parameters # ------------------------------------------------------------ DROP TABLE IF EXISTS `blocker_parameter`; CREATE TABLE `blocker_parameter` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `blocker_id` bigint(20) NOT NULL, `key` VARCHAR(255) NOT NULL, `value` VARCHAR(255) NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY(`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ####### Add an insert query to add detailed information about the blockers you inserted above # id: id of this blocker_parameter. note that this id is not the blocker's id. # blocker_id: id of the blocker this parameter corresponds to. # key: the parameter type of this blocker parameter. the values are 'nextHop', 'host' and 'port'. # nextHop: nextHop IP address of the DDoS traffic # host: the blocker's FQDN or IP address # port: the API port if exists # value: value for the key # # example query: # INSERT INTO `blocker_parameter` (`id`, `blocker_id`, `key`, `value`, `created`, `updated`) # VALUES # (1, 1, 'nextHop', '0.0.0.1','2017-04-13 13:44:34','2017-04-13 13:44:34'), # (2, 1, 'host', '127.0.0.1','2017-04-13 13:44:34','2017-04-13 13:44:34'), # (3, 1, 'port', '50051','2017-04-13 13:44:34','2017-04-13 13:44:34'), # (4, 2, 'nextHop', '0.0.0.1','2017-04-13 13:44:34','2017-04-13 13:44:34'), # (5, 2, 'host', '127.0.0.1','2017-04-13 13:44:34','2017-04-13 13:44:34'), # (6, 2, 'port', '50051','2017-04-13 13:44:34','2017-04-13 13:44:34'), # (7, 3, 'nextHop', '0.0.0.2','2017-04-13 13:44:34','2017-04-13 13:44:34'), # (8, 3, 'host', '127.0.0.1','2017-04-13 13:44:34','2017-04-13 13:44:34'), # (9, 3, 'port', '50051','2017-04-13 13:44:34','2017-04-13 13:44:34'); # customer # ------------------------------------------------------------ DROP TABLE IF EXISTS `customer`; CREATE TABLE `customer` ( `id` int(11) NOT NULL AUTO_INCREMENT, `common_name` varchar(255) NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ####### Add an insert query to add the basic data of the customers here. # id: id is the identifier of the customer object # common_name: name of the customer. this is for you to distinguish each customer easily. # # example query: # INSERT INTO `customer` (`id`, `common_name`, `created`, `updated`) # VALUES # (1,'name','2017-04-13 13:44:34','2017-04-13 13:44:34'), # (2,'localhost','2017-04-13 13:44:34','2017-04-13 13:44:34'), # (3,'local-host','2017-04-13 13:44:34','2017-04-13 13:44:34'); # parameter_value # ------------------------------------------------------------ DROP TABLE IF EXISTS `parameter_value`; CREATE TABLE `parameter_value` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `customer_id` int(11) DEFAULT NULL, `mitigation_scope_id` bigint(20) DEFAULT NULL, `type` enum('TARGET_PROTOCOL','FQDN','URI','TRAFFIC_PROTOCOL','ALIAS_NAME') NOT NULL, `string_value` varchar(255) DEFAULT NULL, `int_value` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ####### Add an insert query to add customer related parameters. ####### these parameters are to store the identifier parameters or mitigation scope parameters. # id: id of this login profile. # customer_id: id of the customer this parameter corresponds to. If specified, this parameter object is used for the validation use. # mitigation_scope_id: id of a mitigation scope the customer requested basically set by the system. if this parameter object is not for a mitigation scope, set this field to '0'. Note that this id is not the 'mitigation_id', but the database id. # type: type of this parameter. these are based on the internet drafts. # 'TARGET_PROTOCOL','FQDN','URI','TRAFFIC_PROTOCOL','ALIAS_NAME' # string_value: if this parameter is a type of string parameter, specify the value in the string format. # int_value: if this parameter is a type of int parameter, specify the value in the integer format. # # example query: # INSERT INTO `parameter_value` (`id`, `customer_id`, `mitigation_scope_id`, `type`, `string_value`, `int_value`, `created`, `updated`) # VALUES # (1,1,0,'FQDN','golang.org',0,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (3,2,0,'FQDN','client.sample.example.com',0,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (4,3,0,'FQDN','local-host',0,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (5,0,1,'FQDN','client.sample.example.com',0,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (6,0,2,'FQDN','client.sample.example.com',0,'2017-04-13 13:44:34','2017-04-13 13:44:34'); # port_range # ------------------------------------------------------------ DROP TABLE IF EXISTS `port_range`; CREATE TABLE `port_range` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `mitigation_scope_id` bigint(20) DEFAULT NULL, `type` enum('TARGET_PORT','SOURCE_PORT') NOT NULL, `lower_port` int(11) DEFAULT NULL, `upper_port` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `port_range` (`id`, `mitigation_scope_id`, `type`, `lower_port`, `upper_port`, `created`, `updated`) VALUES (1,1,'TARGET_PORT',10000,40000,'2017-04-13 13:44:34','2017-04-13 13:44:34'), (2,2,'SOURCE_PORT',10000,65535,'2017-04-13 13:44:34','2017-04-13 13:44:34'); ####### Basically the table 'port_range' is modified by the system only. # icmp_type_range # ------------------------------------------------------------ DROP TABLE IF EXISTS `icmp_type_range`; CREATE TABLE `icmp_type_range` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `mitigation_scope_id` bigint(20) DEFAULT NULL, `lower_type` int(11) DEFAULT NULL, `upper_type` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `icmp_type_range` (`id`, `mitigation_scope_id`, `lower_type`, `upper_type`, `created`, `updated`) VALUES (1,1,10,11,'2017-04-13 13:44:34','2017-04-13 13:44:34'), (2,2,12,13,'2017-04-13 13:44:34','2017-04-13 13:44:34'); # prefix # ------------------------------------------------------------ DROP TABLE IF EXISTS `prefix`; CREATE TABLE `prefix` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `customer_id` int(11) DEFAULT NULL, `mitigation_scope_id` bigint(20) DEFAULT NULL, `type` enum('TARGET_PREFIX','SOURCE_PREFIX','SOURCE_IPV4_NETWORK','DESTINATION_IPV4_NETWORK','IP','PREFIX','ADDRESS_RANGE','IP_ADDRESS','TARGET_IP') NOT NULL, `addr` varchar(255) DEFAULT NULL, `prefix_len` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; ####### Add an insert query to add customer related parameters. # id: id of this login profile. # customer_id: id of the customer this prefix corresponds to. If specified, this prefix object is used for the validation use. # mitigation_scope_id: id of a mitigation scope the customer requested. basically set by the system. if this prefix object is not for a mitigation scope, set this field to '0'. Note that this id is not the 'mitigation_id', but the database id. # type: type of this parameter. part of these are based on drafts of the data channel and the signal channel. # 'TARGET_PREFIX','SOURCE_IPV4_NETWORK','DESTINATION_IPV4_NETWORK','IP','PREFIX','ADDRESS_RANGE','IP_ADDRESS','TARGET_IP' # addr: address of the prefix # prefix_len: length of the prefix # # example query: # INSERT INTO `prefix` (`id`, `customer_id`, `mitigation_scope_id`, `type`, `addr`, `prefix_len`, `created`, `updated`) # VALUES # (1,1,0,'ADDRESS_RANGE','192.168.1.0',24,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (5,2,0,'ADDRESS_RANGE','127.0.0.1',32,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (6,2,0,'ADDRESS_RANGE','2002:db8:6401::',64,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (7,2,0,'ADDRESS_RANGE','2002:db8:6402::',64,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (8,2,0,'ADDRESS_RANGE','192.168.7.0',24,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (9,3,0,'ADDRESS_RANGE','192.168.127.12',32,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (10,3,0,'ADDRESS_RANGE','2003:db8:6401::',64,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (11,3,0,'ADDRESS_RANGE','2003:db8:6402::',64,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (12,0,1,'TARGET_IP','2002:db8:6401::',64,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (13,0,1,'TARGET_PREFIX','2002:db8:6401::',64,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (14,0,2,'TARGET_IP','2002:db8:6402::',64,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # (15,0,2,'TARGET_PREFIX','2002:db8:6402::',64,'2017-04-13 13:44:34','2017-04-13 13:44:34'), # mitigation_scope # ------------------------------------------------------------ DROP TABLE IF EXISTS `mitigation_scope`; CREATE TABLE `mitigation_scope` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `customer_id` int(11) DEFAULT NULL, `client_identifier` varchar(255) DEFAULT NULL, `client_domain_identifier` varchar(255) DEFAULT NULL, `mitigation_id` int(11) DEFAULT NULL, `status` int(1) DEFAULT NULL, `lifetime` int(11) DEFAULT NULL, `trigger-mitigation` tinyint(1) DEFAULT NULL, `attack-status` int(1) DEFAULT NULL, `acl_name` varchar(255) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ####### Basically the table 'mitigation_scope' is modified by the system only. # mitigation_scope trigger when status change # ------------------------------------------------------------ DROP FUNCTION IF EXISTS MySQLNotification; CREATE FUNCTION MySQLNotification RETURNS INTEGER SONAME 'mysql-notification.so'; DELIMITER @@ CREATE TRIGGER status_changed_trigger AFTER UPDATE ON mitigation_scope FOR EACH ROW BEGIN IF NEW.status <> OLD.status THEN SELECT MySQLNotification('mitigation_scope', NEW.id, NEW.customer_id, NEW.client_identifier, NEW.mitigation_id, NEW.client_domain_identifier, NEW.status) INTO @x; END IF; END@@ DELIMITER ; # signal_session_configuration # ------------------------------------------------------------ DROP TABLE IF EXISTS `signal_session_configuration`; CREATE TABLE `signal_session_configuration` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `customer_id` int(11) NOT NULL, `session_id` int(11) NOT NULL, `heartbeat_interval` int(11) DEFAULT NULL, `missing_hb_allowed` int(11) DEFAULT NULL, `max_retransmit` int(11) DEFAULT NULL, `ack_timeout` double DEFAULT NULL, `ack_random_factor` double DEFAULT NULL, `heartbeat_interval_idle` int(11) DEFAULT NULL, `missing_hb_allowed_idle` int(11) DEFAULT NULL, `max_retransmit_idle` int(11) DEFAULT NULL, `ack_timeout_idle` double DEFAULT NULL, `ack_random_factor_idle` double DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`), KEY `IDX_signal_session_configuration_idx_customer_id` (`customer_id`), KEY `IDX_signal_session_configuration_idx_session_id` (`session_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ####### Basically the table 'signal_session_configuration' is modified by the system only. # signal_session_configuration trigger when any configuration change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER session_configuration_changed_trigger AFTER UPDATE ON signal_session_configuration FOR EACH ROW BEGIN IF (NEW.heartbeat_interval <> OLD.heartbeat_interval) OR (NEW.missing_hb_allowed <> OLD.missing_hb_allowed) OR (NEW.max_retransmit <> OLD.max_retransmit) OR (NEW.ack_timeout <> OLD.ack_timeout) OR (NEW.ack_random_factor <> OLD.ack_random_factor) OR (NEW.heartbeat_interval_idle <> OLD.heartbeat_interval_idle) OR (NEW.missing_hb_allowed_idle <> OLD.missing_hb_allowed_idle) OR (NEW.max_retransmit_idle <> OLD.max_retransmit_idle) OR (NEW.ack_timeout_idle <> OLD.ack_timeout_idle) OR (NEW.ack_random_factor_idle <> OLD.ack_random_factor_idle) THEN SELECT MySQLNotification('signal_session_configuration', NEW.customer_id, NEW.session_id) INTO @x; END IF; END@@ DELIMITER ; # protection # ------------------------------------------------------------ DROP TABLE IF EXISTS `protection`; CREATE TABLE `protection` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `customer_id` INT(11) NOT NULL, `target_id` BIGINT(20) NOT NULL, `target_type` VARCHAR(255) NOT NULL, `acl_name` VARCHAR(255) DEFAULT NULL, `is_enabled` TINYINT(1) NOT NULL, `protection_type` VARCHAR(255) NOT NULL, `target_blocker_id` BIGINT(20) DEFAULT NULL, `started_at` DATETIME DEFAULT NULL, `finished_at` DATETIME DEFAULT NULL, `record_time` DATETIME DEFAULT NULL, `dropped_data_info_id` BIGINT(20) DEFAULT NULL, `created` DATETIME DEFAULT NULL, `updated` DATETIME DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8; ####### Basically the table 'protection' is modified by the system only. # gobgp_parameter # ------------------------------------------------------------ DROP TABLE IF EXISTS `go_bgp_parameter`; CREATE TABLE `go_bgp_parameter` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `protection_id` BIGINT(20) NOT NULL, `target_address` varchar(255) NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ####### Basically the table 'go_bgp_parameter' is modified by the system only. # protection_status # ------------------------------------------------------------ DROP TABLE IF EXISTS `protection_status`; CREATE TABLE `protection_status` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `bytes_dropped` int(11) DEFAULT NULL, `pkts_dropped` int(11) DEFAULT NULL, `bps_dropped` int(11) DEFAULT NULL, `pps_dropped` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ####### Basically the table 'protection_status' is modified by the system only. # data_clients # ------------------------------------------------------------ DROP TABLE IF EXISTS `data_clients`; CREATE TABLE `data_clients` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `customer_id` INT(11) NOT NULL, `cuid` VARCHAR(255) NOT NULL, `cdid` VARCHAR(255), PRIMARY KEY (`id`), KEY `IDX_data_clients_idx_customer_id_cuid` (`customer_id`, `cuid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `data_clients` ADD CONSTRAINT UC_dots_clients UNIQUE (`customer_id`, `cuid`); ####### Basically the table 'data_clients' is modified by the system only. # data_aliases # ------------------------------------------------------------ DROP TABLE IF EXISTS `data_aliases`; CREATE TABLE `data_aliases` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `data_client_id` BIGINT(20) NOT NULL, `name` VARCHAR(255) NOT NULL, `content` TEXT NOT NULL, `valid_through` DATETIME NOT NULL, PRIMARY KEY (`id`), KEY `IDX_data_aliases_idx_data_client_id_name` (`data_client_id`, `name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `data_aliases` ADD CONSTRAINT UC_dots_aliases UNIQUE (`data_client_id`, `name`); ####### Basically the table 'data_aliases' is modified by the system only. # data_acls # ------------------------------------------------------------ DROP TABLE IF EXISTS `data_acls`; CREATE TABLE `data_acls` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `data_client_id` BIGINT(20) NOT NULL, `name` VARCHAR(255) NOT NULL, `content` TEXT NOT NULL, `valid_through` DATETIME NOT NULL, PRIMARY KEY (`id`), KEY `IDX_data_acls_idx_data_client_id_name` (`data_client_id`, `name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ALTER TABLE `data_acls` ADD CONSTRAINT UC_dots_acls UNIQUE (`data_client_id`, `name`); # data_acls trigger when activaton_type change # ------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER activaton_type_changed_trigger AFTER UPDATE ON data_acls FOR EACH ROW BEGIN DECLARE newContent VARCHAR(255) DEFAULT NULL; DECLARE currentContent VARCHAR(255) DEFAULT NULL; SELECT SUBSTRING_INDEX(NEW.content,",", 3) INTO newContent FROM data_acls limit 1; SELECT SUBSTRING_INDEX(OLD.content,",", 3) INTO currentContent FROM data_acls limit 1; IF SUBSTRING_INDEX(newContent,"activation-type", -1) <> SUBSTRING_INDEX(currentContent,"activation-type", -1) THEN SELECT MySQLNotification('data_acls', NEW.id) INTO @x; END IF; END@@ DELIMITER ; ####### Basically the table 'data_acls' is modified by the system only. # arista_parameter # ------------------------------------------------------------ DROP TABLE IF EXISTS `arista_parameter`; CREATE TABLE `arista_parameter` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `protection_id` bigint(20) NOT NULL, `acl_type` varchar(255) NOT NULL, `acl_filtering_rule` text NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ####### Basically the table 'arista_parameter' is modified by the system only. # blocker_configuration # ------------------------------------------------------------ DROP TABLE IF EXISTS `blocker_configuration`; CREATE TABLE `blocker_configuration` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `customer_id` int(11) NOT NULL, `target_type` VARCHAR(255) NOT NULL, `blocker_type` VARCHAR(255) NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ####### Add an insert query to add detailed information about the configuration of blockers you inserted above for each customer # id: id of this blocker_configuration. note that this id is not the blocker's id. # customer_id: id of the customer that is configured # target_type: the type of target. the values are 'mitigation_request' or 'datachannel_acl'. # blocker_type: the type of blocker that is used for protecting the target above. the values are 'GoBGP-RTBH', 'Arista-ACL' or 'GoBGP-FlowSpec' # # example query: # INSERT INTO `blocker_configuration` (`id`, `customer_id`, `target_type`, `blocker_type`, `created`, `updated`) # VALUES # (1, 1, "mitigation_request", "GoBGP-RTBH", '2017-04-13 13:44:34', '2017-04-13 13:44:34'), # (2, 1, "datachannel_acl", "Arista-ACL", '2017-04-13 13:44:34', '2017-04-13 13:44:34'); # blocker_configuration_parameter # ------------------------------------------------------------ DROP TABLE IF EXISTS `blocker_configuration_parameter`; CREATE TABLE `blocker_configuration_parameter` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `blocker_configuration_id` int(11) NOT NULL, `key` VARCHAR(255) NOT NULL, `value` VARCHAR(255) NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ####### Add an insert query to add detailed information about the configuration of blockers you inserted above # id: id of this blocker_configuration_parameter. note that this id is not the blocker_configuration's id. # blocker_configuration_id: id of the blocker configuration this parameter corresponds to. # key: the parameter type of this blocker parameter. the values are 'vrf', 'aristaConnection' and 'aristaInterface'. # vrf: virtual routing forwarding address of the GoBGp-FlowSpec blocker # aristaConnection: the connection name that is used for Arista blocker # aristaInterface: the interface name that is used for registering Arista ACL # value: value for the key # # example query: # INSERT INTO `blocker_configuration_parameter` (`id`, `blocker_configuration_id`, `key`, `value`, `created`, `updated`) # VALUES # (1, 1, 'vrf', '1.1.1.1:100', '2017-04-13 13:44:34', '2017-04-13 13:44:34'), # (2, 1, 'aristaConnection', 'arista', '2017-04-13 13:44:34', '2017-04-13 13:44:34'), # (3, 1, 'aristaInterface', 'Ethernet 1', '2017-04-13 13:44:34', '2017-04-13 13:44:34'), # (4, 2, 'aristaConnection', 'arista', '2017-04-13 13:44:34', '2017-04-13 13:44:34'), # (5, 2, 'aristaInterface', 'Ethernet 1', '2017-04-13 13:44:34', '2017-04-13 13:44:34'); # flow_spec_parameter # ------------------------------------------------------------ DROP TABLE IF EXISTS `flow_spec_parameter`; CREATE TABLE `flow_spec_parameter` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `protection_id` bigint(20) NOT NULL, `flow_type` varchar(255) NOT NULL, `flow_specification` text NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ####### Basically the table 'flow_spec_parameter' is modified by the system only. # control_filtering # ------------------------------------------------------------ DROP TABLE IF EXISTS `control_filtering`; CREATE TABLE `control_filtering` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `mitigation_scope_id` bigint(20) DEFAULT NULL, `acl_name` varchar(255) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; ####### Basically the table 'control_filtering' is modified by the system only. # telemetry_setup # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_setup`; CREATE TABLE `telemetry_setup` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `customer_id` int(11) NOT NULL, `cuid` varchar(255) NOT NULL, `cdid` varchar(255) DEFAULT NULL, `tsid` int(11) NOT NULL, `setup_type` enum('TELEMETRY_CONFIGURATION','PIPE','BASELINE') NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # telemetry_configuration # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_configuration`; CREATE TABLE `telemetry_configuration` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_setup_id` bigint(20) NOT NULL, `measurement_interval` enum('HOUR','DAY','WEEK','MONTH') NOT NULL, `measurement_sample` enum('SECOND','5_SECONDS','30_SECONDS','ONE_MINUTE','5_MINUTES','10_MINUTES','30_MINUTES','ONE_HOUR') NOT NULL, `low_percentile` double DEFAULT NULL, `mid_percentile` double DEFAULT NULL, `high_percentile` double DEFAULT NULL, `server_originated_telemetry` tinyint(1) NOT NULL, `telemetry_notify_interval` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # unit_configuration # ------------------------------------------------------------ DROP TABLE IF EXISTS `unit_configuration`; CREATE TABLE `unit_configuration` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_config_id` bigint(20) NOT NULL, `unit` enum('PACKETS_PS','BITS_PS','BYTES_PS') NOT NULL, `unit_status` tinyint(1) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # total_pipe_capability # ------------------------------------------------------------ DROP TABLE IF EXISTS `total_pipe_capacity`; CREATE TABLE `total_pipe_capacity` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_setup_id` bigint(20) NOT NULL, `link_id` varchar(255) DEFAULT NULL, `capacity` int(11) DEFAULT NULL, `unit` enum('PACKETS_PS','BITS_PS','BYTES_PS','KILOPACKETS_PS','KILOBITS_PS','KILOBYTES_PS','MEGAPACKETS_PS','MEGABITS_PS','MEGABYTES_PS','GIGAPACKETS_PS','GIGABITS_PS','GIGABYTES_PS','TERAPACKETS_PS','TERABITS_PS','TERABYTES_PS') NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # baseline # ------------------------------------------------------------ DROP TABLE IF EXISTS `baseline`; CREATE TABLE `baseline` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_setup_id` bigint(20) NOT NULL, `baseline_id` int(11) NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # telemetry_prefix # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_prefix`; CREATE TABLE `telemetry_prefix` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `type` enum('TELEMETRY','TELEMETRY_SETUP') NOT NULL, `type_id` bigint(20) NOT NULL, `prefix_type` enum('TARGET_PREFIX','SOURCE_PREFIX') NOT NULL, `addr` varchar(255) DEFAULT NULL, `prefix_len` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; # telemetry_port_range # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_port_range`; CREATE TABLE `telemetry_port_range` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `type` enum('TELEMETRY','TELEMETRY_SETUP') NOT NULL, `type_id` bigint(20) NOT NULL, `prefix_type` enum('TARGET_PREFIX','SOURCE_PREFIX') NOT NULL, `lower_port` int(11) NOT NULL, `upper_port` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # telemetry_parameter_value # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_parameter_value`; CREATE TABLE `telemetry_parameter_value` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `type` enum('TELEMETRY','TELEMETRY_SETUP') NOT NULL, `type_id` bigint(20) NOT NULL, `parameter_type` enum('TARGET_PROTOCOL','FQDN','URI','ALIAS_NAME') NOT NULL, `string_value` varchar(255) DEFAULT NULL, `int_value` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # traffic # ------------------------------------------------------------ DROP TABLE IF EXISTS `traffic`; CREATE TABLE `traffic` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `type` enum('TELEMETRY','TELEMETRY_SETUP') NOT NULL, `prefix_type` enum('TARGET_PREFIX','SOURCE_PREFIX') NOT NULL, `type_id` bigint(20) NOT NULL, `traffic_type` enum('TOTAL_TRAFFIC_NORMAL','TOTAL_ATTACK_TRAFFIC','TOTAL_TRAFFIC') NOT NULL, `unit` enum('PACKETS_PS','BITS_PS','BYTES_PS','KILOPACKETS_PS','KILOBITS_PS','KILOBYTES_PS','MEGAPACKETS_PS','MEGABITS_PS','MEGABYTES_PS','GIGAPACKETS_PS','GIGABITS_PS','GIGABYTES_PS','TERAPACKETS_PS','TERABITS_PS','TERABYTES_PS') NOT NULL, `low_percentile_g` int(11) DEFAULT NULL, `mid_percentile_g` int(11) DEFAULT NULL, `high_percentile_g` int(11) DEFAULT NULL, `peak_g` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # traffic_per_protocol # ------------------------------------------------------------ DROP TABLE IF EXISTS `traffic_per_protocol`; CREATE TABLE `traffic_per_protocol` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `type` enum('TELEMETRY','TELEMETRY_SETUP') NOT NULL, `type_id` bigint(20) NOT NULL, `traffic_type` enum('TOTAL_TRAFFIC_NORMAL','TOTAL_ATTACK_TRAFFIC','TOTAL_TRAFFIC') NOT NULL, `unit` enum('PACKETS_PS','BITS_PS','BYTES_PS','KILOPACKETS_PS','KILOBITS_PS','KILOBYTES_PS','MEGAPACKETS_PS','MEGABITS_PS','MEGABYTES_PS','GIGAPACKETS_PS','GIGABITS_PS','GIGABYTES_PS','TERAPACKETS_PS','TERABITS_PS','TERABYTES_PS') NOT NULL, `protocol` int(11) NOT NULL, `low_percentile_g` int(11) DEFAULT NULL, `mid_percentile_g` int(11) DEFAULT NULL, `high_percentile_g` int(11) DEFAULT NULL, `peak_g` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # traffic_per_port # ------------------------------------------------------------ DROP TABLE IF EXISTS `traffic_per_port`; CREATE TABLE `traffic_per_port` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `type` enum('TELEMETRY','TELEMETRY_SETUP') NOT NULL, `type_id` bigint(20) NOT NULL, `traffic_type` enum('TOTAL_TRAFFIC_NORMAL','TOTAL_ATTACK_TRAFFIC','TOTAL_TRAFFIC') NOT NULL, `unit` enum('PACKETS_PS','BITS_PS','BYTES_PS','KILOPACKETS_PS','KILOBITS_PS','KILOBYTES_PS','MEGAPACKETS_PS','MEGABITS_PS','MEGABYTES_PS','GIGAPACKETS_PS','GIGABITS_PS','GIGABYTES_PS','TERAPACKETS_PS','TERABITS_PS','TERABYTES_PS') NOT NULL, `port` int(11) NOT NULL, `low_percentile_g` int(11) DEFAULT NULL, `mid_percentile_g` int(11) DEFAULT NULL, `high_percentile_g` int(11) DEFAULT NULL, `peak_g` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # total_connection_capacity # ------------------------------------------------------------ DROP TABLE IF EXISTS `total_connection_capacity`; CREATE TABLE `total_connection_capacity` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_baseline_id` bigint(20) NOT NULL, `protocol` int(11) NOT NULL, `connection` int(11) DEFAULT NULL, `connection_client` int(11) DEFAULT NULL, `embryonic` int(11) DEFAULT NULL, `embryonic_client` int(11) DEFAULT NULL, `connection_ps` int(11) DEFAULT NULL, `connection_client_ps` int(11) DEFAULT NULL, `request_ps` int(11) DEFAULT NULL, `request_client_ps` int(11) DEFAULT NULL, `partial_request_ps` int(11) DEFAULT NULL, `partial_request_client_ps` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # total_connection_capacity_per_port # ------------------------------------------------------------ DROP TABLE IF EXISTS `total_connection_capacity_per_port`; CREATE TABLE `total_connection_capacity_per_port` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_baseline_id` bigint(20) NOT NULL, `protocol` int(11) NOT NULL, `port` int(11) NOT NULL, `connection` int(11) DEFAULT NULL, `connection_client` int(11) DEFAULT NULL, `embryonic` int(11) DEFAULT NULL, `embryonic_client` int(11) DEFAULT NULL, `connection_ps` int(11) DEFAULT NULL, `connection_client_ps` int(11) DEFAULT NULL, `request_ps` int(11) DEFAULT NULL, `request_client_ps` int(11) DEFAULT NULL, `partial_request_ps` int(11) DEFAULT NULL, `partial_request_client_ps` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # telemetry_pre_mitigation # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_pre_mitigation`; CREATE TABLE `telemetry_pre_mitigation` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `customer_id` int(11) NOT NULL, `cuid` varchar(255) NOT NULL, `cdid` varchar(255) DEFAULT NULL, `tmid` int(11) NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # telemetry_pre_mitigation trigger when any attribute of telemetry_pre_mitigation change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER telemetry_pre_mitigation_trigger AFTER UPDATE ON telemetry_pre_mitigation FOR EACH ROW BEGIN IF NEW.updated <> OLD.updated THEN SELECT MySQLNotification('telemetry_pre_mitigation', NEW.id) INTO @x; END IF; END@@ DELIMITER ; # total_attack_connection # ------------------------------------------------------------ DROP TABLE IF EXISTS `total_attack_connection`; CREATE TABLE `total_attack_connection` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `prefix_type` enum('TARGET_PREFIX','SOURCE_PREFIX') NOT NULL, `prefix_type_id` bigint(20) NOT NULL, `percentile_type` enum('LOW_PERCENTILE_L','MID_PERCENTILE_L','HIGH_PERCENTILE_L','PEAK_L') NOT NULL, `protocol` int(11) NOT NULL, `connection` int(11) DEFAULT NULL, `embryonic` int(11) DEFAULT NULL, `connection_ps` int(11) DEFAULT NULL, `request_ps` int(11) DEFAULT NULL, `partial_request_ps`int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # total_attack_connection_port # ------------------------------------------------------------ DROP TABLE IF EXISTS `total_attack_connection_port`; CREATE TABLE `total_attack_connection_port` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_pre_mitigation_id` bigint(20) NOT NULL, `percentile_type` enum('LOW_PERCENTILE_L','MID_PERCENTILE_L','HIGH_PERCENTILE_L','PEAK_L') NOT NULL, `protocol` int(11) NOT NULL, `port` int(11) NOT NULL, `connection` int(11) DEFAULT NULL, `embryonic` int(11) DEFAULT NULL, `connection_ps` int(11) DEFAULT NULL, `request_ps` int(11) DEFAULT NULL, `partial_request_ps` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # attack_detail # ------------------------------------------------------------ DROP TABLE IF EXISTS `attack_detail`; CREATE TABLE `attack_detail` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_pre_mitigation_id` bigint(20), `vendor_id` int(11) NOT NULL, `attack_id` int(11) NOT NULL, `attack_name` varchar(255), `attack_severity` enum('NONE','LOW','MEDIUM','HIGH','UNKNOWN') NOT NULL, `start_time` int(11), `end_time` int(11), `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # source_count # ------------------------------------------------------------ DROP TABLE IF EXISTS `source_count`; CREATE TABLE `source_count` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_attack_detail_id` bigint(20) NOT NULL, `low_percentile_g` int(11), `mid_percentile_g` int(11), `high_percentile_g` int(11), `peak_g` int(11), `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # top_talker # ------------------------------------------------------------ DROP TABLE IF EXISTS `top_talker`; CREATE TABLE `top_talker` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_attack_detail_id` bigint(20) NOT NULL, `spoofed_status` tinyint(1), `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # telemetry_icmp_type_range # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_icmp_type_range`; CREATE TABLE `telemetry_icmp_type_range` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_top_talker_id` bigint(20) NOT NULL, `lower_type` int(11) NOT NULL, `upper_type` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # telemetry_traffic # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_traffic`; CREATE TABLE `telemetry_traffic` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `prefix_type` enum('TARGET_PREFIX','SOURCE_PREFIX') NOT NULL, `prefix_type_id` bigint(20) NOT NULL, `traffic_type` enum('TOTAL_ATTACK_TRAFFIC','TOTAL_TRAFFIC') NOT NULL, `unit` enum('PACKETS_PS','BITS_PS','BYTES_PS','KILOPACKETS_PS','KILOBITS_PS','KILOBYTES_PS','MEGAPACKETS_PS','MEGABITS_PS','MEGABYTES_PS','GIGAPACKETS_PS','GIGABITS_PS','GIGABYTES_PS','TERAPACKETS_PS','TERABITS_PS','TERABYTES_PS') NOT NULL, `protocol` int(11) NOT NULL, `low_percentile_g` int(11) DEFAULT NULL, `mid_percentile_g` int(11) DEFAULT NULL, `high_percentile_g` int(11) DEFAULT NULL, `peak_g` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `telemetry_traffic` (`id`, `prefix_type`, `prefix_type_id`, `traffic_type`, `unit`, `protocol`, `low_percentile_g`, `mid_percentile_g`, `high_percentile_g`, `peak_g`, `created`, `updated`) VALUES (1, 'TARGET_PREFIX', 1, 'TOTAL_TRAFFIC', 'PACKETS_PS', 6, 0, 100, 0, 0, '2017-04-13 13:44:34', '2017-04-13 13:44:34'); # telemetry_total_attack_connection # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_total_attack_connection`; CREATE TABLE `telemetry_total_attack_connection` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `prefix_type` enum('TARGET_PREFIX','SOURCE_PREFIX') NOT NULL, `prefix_type_id` bigint(20) NOT NULL, `percentile_type` enum('LOW_PERCENTILE_C','MID_PERCENTILE_C','HIGH_PERCENTILE_C','PEAK_C') NOT NULL, `connection` int(11) DEFAULT NULL, `embryonic` int(11) DEFAULT NULL, `connection_ps` int(11) DEFAULT NULL, `request_ps` int(11) DEFAULT NULL, `partial_request_ps`int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `telemetry_total_attack_connection` (`id`, `prefix_type`, `prefix_type_id`, `percentile_type`, `connection`, `embryonic`, `connection_ps`, `request_ps`, `partial_request_ps`, `created`, `updated`) VALUES (1, 'TARGET_PREFIX', 1, 'LOW_PERCENTILE_C', 200, 201, 202, 203, 204, '2017-04-13 13:44:34', '2017-04-13 13:44:34'); # telemetry_attack_detail # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_attack_detail`; CREATE TABLE `telemetry_attack_detail` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `mitigation_scope_id` bigint(20) NOT NULL, `vendor_id` int(11) NOT NULL, `attack_id` int(11) NOT NULL, `attack_name` varchar(255), `attack_severity` enum('NONE','LOW','MEDIUM','HIGH','UNKNOWN') NOT NULL, `start_time` int(11), `end_time` int(11), `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # telemetry_attack_detail trigger when any attribute of telemetry_attack_detail change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER telemetry_attack_detail_trigger AFTER UPDATE ON telemetry_attack_detail FOR EACH ROW BEGIN IF NEW.updated <> OLD.updated THEN SELECT MySQLNotification('telemetry_attack_detail', NEW.mitigation_scope_id) INTO @x; END IF; END@@ DELIMITER ; # telemetry_source_count # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_source_count`; CREATE TABLE `telemetry_source_count` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_attack_detail_id` bigint(20) NOT NULL, `low_percentile_g` int(11), `mid_percentile_g` int(11), `high_percentile_g` int(11), `peak_g` int(11), `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # telemetry_top_talker # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_top_talker`; CREATE TABLE `telemetry_top_talker` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_attack_detail_id` bigint(20) NOT NULL, `spoofed_status` tinyint(1), `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # telemetry_source_prefix # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_source_prefix`; CREATE TABLE `telemetry_source_prefix` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_top_talker_id` bigint(20) NOT NULL, `addr` varchar(255) DEFAULT NULL, `prefix_len` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; # telemetry_source_port_range # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_source_port_range`; CREATE TABLE `telemetry_source_port_range` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_top_talker_id` bigint(20) NOT NULL, `lower_port` int(11) NOT NULL, `upper_port` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # telemetry_source_icmp_type_range # ------------------------------------------------------------ DROP TABLE IF EXISTS `telemetry_source_icmp_type_range`; CREATE TABLE `telemetry_source_icmp_type_range` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_top_talker_id` bigint(20) NOT NULL, `lower_type` int(11) NOT NULL, `upper_type` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # uri_filtering_telemetry_pre_mitigation # ------------------------------------------------------------ DROP TABLE IF EXISTS `uri_filtering_telemetry_pre_mitigation`; CREATE TABLE `uri_filtering_telemetry_pre_mitigation` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `customer_id` int(11) NOT NULL, `cuid` varchar(255) NOT NULL, `cdid` varchar(255) DEFAULT NULL, `tmid` int(11) NOT NULL, `target_prefix` varchar(255) NOT NULL, `lower_port` int(11) NOT NULL, `upper_port` int(11) NOT NULL, `target_protocol` int(11) NOT NULL, `target_fqdn` varchar(255) NOT NULL, `alias_name` varchar(255) NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # uri_filtering_traffic # ------------------------------------------------------------ DROP TABLE IF EXISTS `uri_filtering_traffic`; CREATE TABLE `uri_filtering_traffic` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `prefix_type` enum('TARGET_PREFIX','SOURCE_PREFIX') NOT NULL, `prefix_type_id` bigint(20) NOT NULL, `traffic_type` enum('TOTAL_TRAFFIC_NORMAL','TOTAL_ATTACK_TRAFFIC','TOTAL_TRAFFIC') NOT NULL, `unit` enum('PACKETS_PS','BITS_PS','BYTES_PS','KILOPACKETS_PS','KILOBITS_PS','KILOBYTES_PS','MEGAPACKETS_PS','MEGABITS_PS','MEGABYTES_PS','GIGAPACKETS_PS','GIGABITS_PS','GIGABYTES_PS','TERAPACKETS_PS','TERABITS_PS','TERABYTES_PS') NOT NULL, `low_percentile_g` int(11) DEFAULT NULL, `mid_percentile_g` int(11) DEFAULT NULL, `high_percentile_g` int(11) DEFAULT NULL, `peak_g` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # uri_filtering_traffic trigger when any attribute of uri_filtering_traffic change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER uri_filtering_traffic_trigger AFTER UPDATE ON uri_filtering_traffic FOR EACH ROW BEGIN IF NEW.unit <> OLD.unit OR NEW.low_percentile_g <> OLD.low_percentile_g OR NEW.mid_percentile_g <> OLD.mid_percentile_g OR NEW.high_percentile_g <> OLD.high_percentile_g OR NEW.peak_g <> OLD.peak_g THEN SELECT MySQLNotification('uri_filtering_traffic', NEW.prefix_type, NEW.prefix_type_id) INTO @x; END IF; END@@ DELIMITER ; # uri_filtering_traffic_per_protocol # ------------------------------------------------------------ DROP TABLE IF EXISTS `uri_filtering_traffic_per_protocol`; CREATE TABLE `uri_filtering_traffic_per_protocol` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_pre_mitigation_id` bigint(20) NOT NULL, `traffic_type` enum('TOTAL_TRAFFIC_NORMAL','TOTAL_ATTACK_TRAFFIC','TOTAL_TRAFFIC') NOT NULL, `unit` enum('PACKETS_PS','BITS_PS','BYTES_PS','KILOPACKETS_PS','KILOBITS_PS','KILOBYTES_PS','MEGAPACKETS_PS','MEGABITS_PS','MEGABYTES_PS','GIGAPACKETS_PS','GIGABITS_PS','GIGABYTES_PS','TERAPACKETS_PS','TERABITS_PS','TERABYTES_PS') NOT NULL, `protocol` int(11) NOT NULL, `low_percentile_g` int(11) DEFAULT NULL, `mid_percentile_g` int(11) DEFAULT NULL, `high_percentile_g` int(11) DEFAULT NULL, `peak_g` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # uri_filtering_traffic_per_protocol trigger when any attribute of uri_filtering_traffic_per_protocol change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER uri_filtering_traffic_per_protocol_trigger AFTER UPDATE ON uri_filtering_traffic_per_protocol FOR EACH ROW BEGIN IF NEW.unit <> OLD.unit OR NEW.protocol <> OLD.protocol OR NEW.low_percentile_g <> OLD.low_percentile_g OR NEW.mid_percentile_g <> OLD.mid_percentile_g OR NEW.high_percentile_g <> OLD.high_percentile_g OR NEW.peak_g <> OLD.peak_g THEN SELECT MySQLNotification('uri_filtering_traffic_per_protocol', NEW.tele_pre_mitigation_id) INTO @x; END IF; END@@ DELIMITER ; # uri_filtering_traffic_per_port # ------------------------------------------------------------ DROP TABLE IF EXISTS `uri_filtering_traffic_per_port`; CREATE TABLE `uri_filtering_traffic_per_port` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_pre_mitigation_id` bigint(20) NOT NULL, `traffic_type` enum('TOTAL_TRAFFIC_NORMAL','TOTAL_ATTACK_TRAFFIC','TOTAL_TRAFFIC') NOT NULL, `unit` enum('PACKETS_PS','BITS_PS','BYTES_PS','KILOPACKETS_PS','KILOBITS_PS','KILOBYTES_PS','MEGAPACKETS_PS','MEGABITS_PS','MEGABYTES_PS','GIGAPACKETS_PS','GIGABITS_PS','GIGABYTES_PS','TERAPACKETS_PS','TERABITS_PS','TERABYTES_PS') NOT NULL, `port` int(11) NOT NULL, `low_percentile_g` int(11) DEFAULT NULL, `mid_percentile_g` int(11) DEFAULT NULL, `high_percentile_g` int(11) DEFAULT NULL, `peak_g` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # uri_filtering_traffic_per_port trigger when any attribute of uri_filtering_traffic_per_port change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER uri_filtering_traffic_per_port_trigger AFTER UPDATE ON uri_filtering_traffic_per_port FOR EACH ROW BEGIN IF NEW.unit <> OLD.unit OR NEW.port <> OLD.port OR NEW.low_percentile_g <> OLD.low_percentile_g OR NEW.mid_percentile_g <> OLD.mid_percentile_g OR NEW.high_percentile_g <> OLD.high_percentile_g OR NEW.peak_g <> OLD.peak_g THEN SELECT MySQLNotification('uri_filtering_traffic_per_port', NEW.tele_pre_mitigation_id) INTO @x; END IF; END@@ DELIMITER ; # uri_filtering_total_attack_connection # ------------------------------------------------------------ DROP TABLE IF EXISTS `uri_filtering_total_attack_connection`; CREATE TABLE `uri_filtering_total_attack_connection` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `prefix_type` enum('TARGET_PREFIX','SOURCE_PREFIX') NOT NULL, `prefix_type_id` bigint(20) NOT NULL, `percentile_type` enum('LOW_PERCENTILE_L','MID_PERCENTILE_L','HIGH_PERCENTILE_L','PEAK_L') NOT NULL, `protocol` int(11) NOT NULL, `connection` int(11) DEFAULT NULL, `embryonic` int(11) DEFAULT NULL, `connection_ps` int(11) DEFAULT NULL, `request_ps` int(11) DEFAULT NULL, `partial_request_ps`int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # uri_filtering_total_attack_connection trigger when any attribute of uri_filtering_total_attack_connection change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER uri_filtering_total_attack_connection_trigger AFTER UPDATE ON uri_filtering_total_attack_connection FOR EACH ROW BEGIN IF NEW.protocol <> OLD.protocol OR NEW.connection <> OLD.connection OR NEW.embryonic <> OLD.embryonic OR NEW.connection_ps <> OLD.connection_ps OR NEW.request_ps <> OLD.request_ps OR NEW.partial_request_ps <> OLD.partial_request_ps THEN SELECT MySQLNotification('uri_filtering_total_attack_connection', NEW.prefix_type, NEW.prefix_type_id) INTO @x; END IF; END@@ DELIMITER ; # uri_filtering_total_attack_connection_port # ------------------------------------------------------------ DROP TABLE IF EXISTS `uri_filtering_total_attack_connection_port`; CREATE TABLE `uri_filtering_total_attack_connection_port` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_pre_mitigation_id` bigint(20) NOT NULL, `percentile_type` enum('LOW_PERCENTILE_L','MID_PERCENTILE_L','HIGH_PERCENTILE_L','PEAK_L') NOT NULL, `protocol` int(11) NOT NULL, `port` int(11) NOT NULL, `connection` int(11) DEFAULT NULL, `embryonic` int(11) DEFAULT NULL, `connection_ps` int(11) DEFAULT NULL, `request_ps` int(11) DEFAULT NULL, `partial_request_ps` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # uri_filtering_total_attack_connection_port trigger when any attribute of uri_filtering_total_attack_connection_port change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER uri_filtering_total_attack_connection_port_trigger AFTER UPDATE ON uri_filtering_total_attack_connection_port FOR EACH ROW BEGIN IF NEW.protocol <> OLD.protocol OR NEW.port <> OLD.port OR NEW.connection <> OLD.connection OR NEW.embryonic <> OLD.embryonic OR NEW.connection_ps <> OLD.connection_ps OR NEW.request_ps <> OLD.request_ps OR NEW.partial_request_ps <> OLD.partial_request_ps THEN SELECT MySQLNotification('uri_filtering_total_attack_connection_port', NEW.tele_pre_mitigation_id) INTO @x; END IF; END@@ DELIMITER ; # uri_filtering_attack_detail # ------------------------------------------------------------ DROP TABLE IF EXISTS `uri_filtering_attack_detail`; CREATE TABLE `uri_filtering_attack_detail` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_pre_mitigation_id` bigint(20), `vendor_id` int(11) NOT NULL, `attack_id` int(11) NOT NULL, `attack_name` varchar(255), `attack_severity` enum('NONE','LOW','MEDIUM','HIGH','UNKNOWN') NOT NULL, `start_time` int(11), `end_time` int(11), `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # uri_filtering_attack_detail trigger when any attribute of uri_filtering_attack_detail change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER uri_filtering_attack_detail_trigger AFTER UPDATE ON uri_filtering_attack_detail FOR EACH ROW BEGIN IF NEW.vendor_id <> OLD.vendor_id OR NEW.attack_id <> OLD.attack_id OR NEW.attack_name <> OLD.attack_name OR NEW.attack_severity <> OLD.attack_severity OR NEW.start_time <> OLD.start_time OR NEW.end_time <> OLD.end_time THEN SELECT MySQLNotification('uri_filtering_attack_detail', NEW.tele_pre_mitigation_id) INTO @x; END IF; END@@ DELIMITER ; # uri_filtering_source_count # ------------------------------------------------------------ DROP TABLE IF EXISTS `uri_filtering_source_count`; CREATE TABLE `uri_filtering_source_count` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_attack_detail_id` bigint(20) NOT NULL, `low_percentile_g` int(11), `mid_percentile_g` int(11), `high_percentile_g` int(11), `peak_g` int(11), `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # uri_filtering_source_count trigger when any attribute of uri_filtering_source_count change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER uri_filtering_source_count_trigger AFTER UPDATE ON uri_filtering_source_count FOR EACH ROW BEGIN IF NEW.low_percentile_g <> OLD.low_percentile_g OR NEW.mid_percentile_g <> OLD.mid_percentile_g OR NEW.high_percentile_g <> OLD.high_percentile_g OR NEW.peak_g <> OLD.peak_g THEN SELECT MySQLNotification('uri_filtering_source_count', NEW.tele_attack_detail_id) INTO @x; END IF; END@@ DELIMITER ; # uri_filtering_top_talker # ------------------------------------------------------------ DROP TABLE IF EXISTS `uri_filtering_top_talker`; CREATE TABLE `uri_filtering_top_talker` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_attack_detail_id` bigint(20) NOT NULL, `spoofed_status` tinyint(1), `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # uri_filtering_top_talker trigger when any attribute of uri_filtering_top_talker change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER uri_filtering_top_talker_trigger AFTER UPDATE ON uri_filtering_top_talker FOR EACH ROW BEGIN IF NEW.spoofed_status <> OLD.spoofed_status THEN SELECT MySQLNotification('uri_filtering_top_talker', NEW.tele_attack_detail_id) INTO @x; END IF; END@@ DELIMITER ; # uri_filtering_source_prefix # ------------------------------------------------------------ DROP TABLE IF EXISTS `uri_filtering_source_prefix`; CREATE TABLE `uri_filtering_source_prefix` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_top_talker_id` bigint(20) NOT NULL, `addr` varchar(255) DEFAULT NULL, `prefix_len` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8; # uri_filtering_source_prefix trigger when any attribute of uri_filtering_source_prefix change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER uri_filtering_source_prefix_trigger AFTER UPDATE ON uri_filtering_source_prefix FOR EACH ROW BEGIN IF NEW.addr <> OLD.addr OR NEW.prefix_len <> OLD.prefix_len THEN SELECT MySQLNotification('uri_filtering_source_prefix', NEW.tele_top_talker_id) INTO @x; END IF; END@@ DELIMITER ; # uri_filtering_source_port_range # ------------------------------------------------------------ DROP TABLE IF EXISTS `uri_filtering_source_port_range`; CREATE TABLE `uri_filtering_source_port_range` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_top_talker_id` bigint(20) NOT NULL, `lower_port` int(11) NOT NULL, `upper_port` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # uri_filtering_source_port_range trigger when any attribute of uri_filtering_source_port_range change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER uri_filtering_source_port_range_trigger AFTER UPDATE ON uri_filtering_source_port_range FOR EACH ROW BEGIN IF NEW.lower_port <> OLD.lower_port OR NEW.upper_port <> OLD.upper_port THEN SELECT MySQLNotification('uri_filtering_source_port_range', NEW.tele_top_talker_id) INTO @x; END IF; END@@ DELIMITER ; # uri_filtering_icmp_type_range # ------------------------------------------------------------ DROP TABLE IF EXISTS `uri_filtering_icmp_type_range`; CREATE TABLE `uri_filtering_icmp_type_range` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `tele_top_talker_id` bigint(20) NOT NULL, `lower_type` int(11) NOT NULL, `upper_type` int(11) DEFAULT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # uri_filtering_icmp_type_range trigger when any attribute of uri_filtering_icmp_type_range change # ------------------------------------------------------------------------------ DELIMITER @@ CREATE TRIGGER uri_filtering_icmp_type_range_trigger AFTER UPDATE ON uri_filtering_icmp_type_range FOR EACH ROW BEGIN IF NEW.lower_type <> OLD.lower_type OR NEW.upper_type <> OLD.upper_type THEN SELECT MySQLNotification('uri_filtering_icmp_type_range', NEW.tele_top_talker_id) INTO @x; END IF; END@@ DELIMITER ; # vendor_mapping # ------------------------------------------------------------ DROP TABLE IF EXISTS `vendor_mapping`; CREATE TABLE `vendor_mapping` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `data_client_id` bigint(20) NOT NULL, `vendor_id` int(11) NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; # attack_mapping # ------------------------------------------------------------ DROP TABLE IF EXISTS `attack_mapping`; CREATE TABLE `attack_mapping` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `vendor_mapping_id` bigint(20) NOT NULL, `attack_id` int(11) NOT NULL, `attack_name` varchar(255) NOT NULL, `created` datetime DEFAULT NULL, `updated` datetime DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
<filename>database/modeling/role/teachers.sql drop table if exists teachers; create table teachers ( tch_id serial primary key, role_id int constraint teachers_role_id_fkey references roles (role_id), tch_name varchar, tch_no char(8) ); alter sequence teachers_tch_id_seq restart with 2;
CREATE TABLE TTO_RECORD ( IDT_TTO_RECORD VARCHAR(36) NOT NULL PRIMARY KEY, NAM_TOPIC VARCHAR(255), NUM_PARTITION NUMERIC(20, 0), IND_STATUS VARCHAR(8), IND_AGENT VARCHAR(8), TXT_KEY TEXT, TXT_VALUE TEXT, TXT_HEADERS TEXT, DAT_CREATED TIMESTAMP NOT NULL DEFAULT TIMEZONE('UTC', NOW()), DAT_SENT TIMESTAMP ); CREATE INDEX TTO_RECORD_IDX1 ON TTO_RECORD(DAT_CREATED); CREATE INDEX TTO_RECORD_IDX2 ON TTO_RECORD(TXT_KEY); CREATE INDEX TTO_RECORD_IDX3 ON TTO_RECORD(IND_STATUS, DAT_CREATED); CREATE VIEW TTO_RECORD_VW AS ( SELECT R.*, CONVERT_FROM(DECODE(TXT_KEY, 'BASE64'), 'UTF8') TXT_KEY_DECODED, CONVERT_FROM(DECODE(TXT_VALUE, 'BASE64'), 'UTF8') TXT_VALUE_DECODED FROM TTO_RECORD R ); CREATE TABLE TTO_PARAMETER( IDT_TTO_PARAMETER VARCHAR(255) NOT NULL PRIMARY KEY, VAL_PARAMETER TEXT, DAT_CREATED TIMESTAMP NOT NULL DEFAULT TIMEZONE('UTC', NOW()), DAT_UPDATED TIMESTAMP ); CREATE TABLE TTO_RECORD_PROCESSED( IDT_TTO_RECORD VARCHAR(36), NAM_TOPIC VARCHAR(255), NUM_PARTITION NUMERIC(20, 0), IND_STATUS VARCHAR(4), TXT_KEY TEXT, TXT_VALUE TEXT, TXT_HEADERS TEXT, DAT_CREATED TIMESTAMP NOT NULL DEFAULT TIMEZONE('UTC', NOW()), CONSTRAINT TTO_RECORD_PROCESSED_PK PRIMARY KEY (IDT_TTO_RECORD) ); CREATE INDEX TTO_RECORD_PROCESSED_IDX1 ON TTO_RECORD_PROCESSED(DAT_CREATED);
-- a temporary table to facilitate the creation of the green urls table CREATE TABLE urls ( url VARCHAR(255), PRIMARY KEY (url) ); -- LOAD DATA -- INFILE 'all_domains_outfile.txt' -- INTO TABLE -- urls -- FIELDS TERMINATED BY ',' -- ENCLOSED BY '' -- LINES TERMINATED BY '\n' -- IGNORE 1 ROWS;
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may not use this file except in compliance with -- the License. You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -- -- using default substitutions select s_name, s_address from supplier, nation where s_suppkey in ( select ps_suppkey from partsupp where ps_partkey in ( select p_partkey from part where p_name like 'forest%' ) and ps_availqty > ( select 0.5 * sum(l_quantity) from lineitem where l_partkey = ps_partkey and l_suppkey = ps_suppkey and l_shipdate >= date '1994-01-01' and l_shipdate < date '1994-01-01' + interval '1' year ) ) and s_nationkey = n_nationkey and n_name = 'CANADA' order by s_name
ALTER TABLE role ALTER COLUMN role_type SET NOT NULL; ALTER TABLE role_permissions ADD COLUMN permission varchar(50); UPDATE role_permissions SET permission = pt.permission_name FROM permission pt WHERE pt.id = permission_id; ALTER TABLE role_permissions ALTER COLUMN permission SET NOT NULL; ALTER TABLE role_permissions DROP COLUMN permission_id; DROP TABLE permission;
/* Schema for 2MASS Extended Source Catalog http://irsa.ipac.caltech.edu/2MASS/download/allsky/twomass_xsc_schema http://tdc-www.harvard.edu/catalogs/tmx.format.html */ CREATE TABLE catalogdb.twomass_xsc ( jdate double precision, designation text, ra double precision, decl double precision, sup_ra double precision, sup_dec double precision, glon real, glat real, density real, r_k20fe real, j_m_k20fe real, j_msig_k20fe real, j_flg_k20fe smallint, h_m_k20fe real, h_msig_k20fe real, h_flg_k20fe smallint, k_m_k20fe real, k_msig_k20fe real, k_flg_k20fe smallint, r_3sig real, j_ba real, j_phi smallint, h_ba real, h_phi smallint, k_ba real, k_phi smallint, sup_r_3sig real, sup_ba real, sup_phi smallint, r_fe real, j_m_fe real, j_msig_fe real, j_flg_fe smallint, h_m_fe real, h_msig_fe real, h_flg_fe smallint, k_m_fe real, k_msig_fe real, k_flg_fe smallint, r_ext real, j_m_ext real, j_msig_ext real, j_pchi real, h_m_ext real, h_msig_ext real, h_pchi real, k_m_ext real, k_msig_ext real, k_pchi real, j_r_eff real, j_mnsurfb_eff real, h_r_eff real, h_mnsurfb_eff real, k_r_eff real, k_mnsurfb_eff real, j_con_indx real, h_con_indx real, k_con_indx real, j_peak real, h_peak real, k_peak real, j_5surf real, h_5surf real, k_5surf real, e_score real, g_score real, vc smallint, cc_flg character(1), im_nx smallint, r_k20fc real, j_m_k20fc real, j_msig_k20fc real, j_flg_k20fc smallint, h_m_k20fc real, h_msig_k20fc real, h_flg_k20fc smallint, k_m_k20fc real, k_msig_k20fc real, k_flg_k20fc smallint, j_r_e real, j_m_e real, j_msig_e real, j_flg_e smallint, h_r_e real, h_m_e real, h_msig_e real, h_flg_e smallint, k_r_e real, k_m_e real, k_msig_e real, k_flg_e smallint, j_r_c real, j_m_c real, j_msig_c real, j_flg_c smallint, h_r_c real, h_m_c real, h_msig_c real, h_flg_c smallint, k_r_c real, k_m_c real, k_msig_c real, k_flg_c smallint, r_fc real, j_m_fc real, j_msig_fc real, j_flg_fc smallint, h_m_fc real, h_msig_fc real, h_flg_fc smallint, k_m_fc real, k_msig_fc real, k_flg_fc smallint, j_r_i20e real, j_m_i20e real, j_msig_i20e real, j_flg_i20e smallint, h_r_i20e real, h_m_i20e real, h_msig_i20e real, h_flg_i20e smallint, k_r_i20e real, k_m_i20e real, k_msig_i20e real, k_flg_i20e smallint, j_r_i20c real, j_m_i20c real, j_msig_i20c real, j_flg_i20c smallint, h_r_i20c real, h_m_i20c real, h_msig_i20c real, h_flg_i20c smallint, k_r_i20c real, k_m_i20c real, k_msig_i20c real, k_flg_i20c smallint, j_r_i21e real, j_m_i21e real, j_msig_i21e real, j_flg_i21e smallint, h_r_i21e real, h_m_i21e real, h_msig_i21e real, h_flg_i21e smallint, k_r_i21e real, k_m_i21e real, k_msig_i21e real, k_flg_i21e smallint, r_j21fe real, j_m_j21fe real, j_msig_j21fe real, j_flg_j21fe smallint, h_m_j21fe real, h_msig_j21fe real, h_flg_j21fe smallint, k_m_j21fe real, k_msig_j21fe real, k_flg_j21fe smallint, j_r_i21c real, j_m_i21c real, j_msig_i21c real, j_flg_i21c smallint, h_r_i21c real, h_m_i21c real, h_msig_i21c real, h_flg_i21c smallint, k_r_i21c real, k_m_i21c real, k_msig_i21c real, k_flg_i21c smallint, r_j21fc real, j_m_j21fc real, j_msig_j21fc real, j_flg_j21fc smallint, h_m_j21fc real, h_msig_j21fc real, h_flg_j21fc smallint, k_m_j21fc real, k_msig_j21fc real, k_flg_j21fc smallint, j_m_5 real, j_msig_5 real, j_flg_5 smallint, h_m_5 real, h_msig_5 real, h_flg_5 smallint, k_m_5 real, k_msig_5 real, k_flg_5 smallint, j_m_7 real, j_msig_7 real, j_flg_7 smallint, h_m_7 real, h_msig_7 real, h_flg_7 smallint, k_m_7 real, k_msig_7 real, k_flg_7 smallint, j_m_10 real, j_msig_10 real, j_flg_10 smallint, h_m_10 real, h_msig_10 real, h_flg_10 smallint, k_m_10 real, k_msig_10 real, k_flg_10 smallint, j_m_15 real, j_msig_15 real, j_flg_15 smallint, h_m_15 real, h_msig_15 real, h_flg_15 smallint, k_m_15 real, k_msig_15 real, k_flg_15 smallint, j_m_20 real, j_msig_20 real, j_flg_20 smallint, h_m_20 real, h_msig_20 real, h_flg_20 smallint, k_m_20 real, k_msig_20 real, k_flg_20 smallint, j_m_25 real, j_msig_25 real, j_flg_25 smallint, h_m_25 real, h_msig_25 real, h_flg_25 smallint, k_m_25 real, k_msig_25 real, k_flg_25 smallint, j_m_30 real, j_msig_30 real, j_flg_30 smallint, h_m_30 real, h_msig_30 real, h_flg_30 smallint, k_m_30 real, k_msig_30 real, k_flg_30 smallint, j_m_40 real, j_msig_40 real, j_flg_40 smallint, h_m_40 real, h_msig_40 real, h_flg_40 smallint, k_m_40 real, k_msig_40 real, k_flg_40 smallint, j_m_50 real, j_msig_50 real, j_flg_50 smallint, h_m_50 real, h_msig_50 real, h_flg_50 smallint, k_m_50 real, k_msig_50 real, k_flg_50 smallint, j_m_60 real, j_msig_60 real, j_flg_60 smallint, h_m_60 real, h_msig_60 real, h_flg_60 smallint, k_m_60 real, k_msig_60 real, k_flg_60 smallint, j_m_70 real, j_msig_70 real, j_flg_70 smallint, h_m_70 real, h_msig_70 real, h_flg_70 smallint, k_m_70 real, k_msig_70 real, k_flg_70 smallint, j_m_sys real, j_msig_sys real, h_m_sys real, h_msig_sys real, k_m_sys real, k_msig_sys real, sys_flg smallint, contam_flg smallint, j_5sig_ba real, j_5sig_phi smallint, h_5sig_ba real, h_5sig_phi smallint, k_5sig_ba real, k_5sig_phi smallint, j_d_area smallint, j_perc_darea smallint, h_d_area smallint, h_perc_darea smallint, k_d_area smallint, k_perc_darea smallint, j_bisym_rat real, j_bisym_chi real, h_bisym_rat real, h_bisym_chi real, k_bisym_rat real, k_bisym_chi real, j_sh0 real, j_sig_sh0 real, h_sh0 real, h_sig_sh0 real, k_sh0 real, k_sig_sh0 real, j_sc_mxdn real, j_sc_sh real, j_sc_wsh real, j_sc_r23 real, j_sc_1mm real, j_sc_2mm real, j_sc_vint real, j_sc_r1 real, j_sc_msh real, h_sc_mxdn real, h_sc_sh real, h_sc_wsh real, h_sc_r23 real, h_sc_1mm real, h_sc_2mm real, h_sc_vint real, h_sc_r1 real, h_sc_msh real, k_sc_mxdn real, k_sc_sh real, k_sc_wsh real, k_sc_r23 real, k_sc_1mm real, k_sc_2mm real, k_sc_vint real, k_sc_r1 real, k_sc_msh real, j_chif_ellf real, k_chif_ellf real, ellfit_flg smallint, sup_chif_ellf real, n_blank smallint, n_sub smallint, bl_sub_flg smallint, id_flg smallint, id_cat character(20), fg_flg character(6), blk_fac smallint, dup_src smallint, use_src smallint, prox real, pxpa smallint, pxcntr integer, dist_edge_ns integer, dist_edge_ew smallint, dist_edge_flg character(2), pts_key integer, mp_key integer, night_key smallint, scan_key integer, coadd_key integer, hemis character(1), date date, scan smallint, coadd smallint, id integer, x_coadd real, y_coadd real, j_subst2 real, h_subst2 real, k_subst2 real, j_back real, h_back real, k_back real, j_resid_ann real, h_resid_ann real, k_resid_ann real, j_bndg_per integer, j_bndg_amp real, h_bndg_per integer, h_bndg_amp real, k_bndg_per integer, k_bndg_amp real, j_seetrack real, h_seetrack real, k_seetrack real, ext_key integer ) WITHOUT OIDS;
use bugers_db; INSERT INTO burgers (name, devoured) VALUES ('Cheese Burger', false); INSERT INTO burgers (name, devoured) VALUES ('Bacon Burger', false); INSERT INTO burgers (name) VALUES ('Smokehouse Burger', false);
<reponame>CodeAperture/AdventureWorksSourceControl<filename>Database/AdventureWorks2014/Types/User-defined Data Types/dbo.AccountNumber.sql CREATE TYPE [dbo].[AccountNumber] FROM nvarchar (15) NULL GO
<filename>data/database/sql_adapter/postgres/scripts/user/GetUsersWithLesserRank.sql SELECT u."username", u."rank", u."password_hash" FROM "user" u WHERE u."rank" < $1 ORDER BY u."username"
/* This sql template creates a volatile table that calculates rolling mean of lab value, max lab value, mean acceleration (change since last lab divided by time since last lab), and max acceleration (change since last lab divided by time since last lab) using sequential lab values for each lab of interest for each person */ CREATE VOLATILE TABLE longitudinal_labs AS ( SELECT ptid, encid, test_name, result_date, test_result, rolling_mean, rolling_max, acc_value, -- rolling mean of accelerated value AVG(acc_value) OVER (PARTITION BY ptid, test_name ORDER BY result_date ROWS 1000 PRECEDING) AS rolling_mean_acc, -- rolling max of accelerated value MAX(acc_value) OVER (PARTITION BY ptid, test_name ORDER BY result_date ROWS 1000 PRECEDING) AS rolling_max_acc FROM ( SELECT ptid, encid, test_name, result_date, LAG(char_date, 1, 0) OVER (PARTITION BY ptid, test_name ORDER BY result_date) as lag_date, CASE WHEN lag_date <> 0 THEN result_date - CAST(lag_date AS DATE FORMAT 'YYYY-MM-DD') ELSE NULL END time_diff, test_result, -- moving average AVG(test_result) OVER (PARTITION BY ptid, test_name ORDER BY result_date ROWS 1000 PRECEDING) AS rolling_mean, -- moving max MAX(test_result) OVER (PARTITION BY ptid, test_name ORDER BY result_date ROWS 1000 PRECEDING) AS rolling_max, -- difference LAG(test_result, 1, 0) OVER (PARTITION BY ptid, test_name ORDER BY result_date) AS lag_value, -- calculate acceleration for time_diff not equal to 0 (labs on same day) CASE WHEN time_diff <> 0 THEN (test_result - lag_value)/time_diff ELSE NULL END acc_value FROM ( SELECT a.ptid, a.encid, a.test_name, b.first_ibd_date, a.result_date, CAST(a.result_date AS VARCHAR(12)) AS char_date, TRYCAST(a.test_result AS FLOAT) AS test_result FROM RWD_VDM_OPTUM_EHRIBD.IBD_LABS AS a INNER JOIN ibd_flare.ibd_cohort AS b ON a.ptid = b.ptid AND a.result_date >= b.first_ibd_date WHERE batch_title = 'OPTUM EHR IBD 2019 Apr' AND result_date IS NOT NULL AND encid IS NOT NULL AND value_within_range = 'Y' AND test_name IN ( {% for lab in labs %} {% if loop.first == True %} '{{ lab }}' {% else %} , '{{ lab }}' {% endif %} {% endfor %} ) ) AS temp ) AS temp2 ) WITH DATA ON COMMIT PRESERVE ROWS;
SET client_min_messages TO warning; CREATE EXTENSION IF NOT EXISTS pgtap; RESET client_min_messages; BEGIN; SELECT no_plan(); -- SELECT plan(1); SELECT pass('Test posts!'); select has_table('forum_example','posts','have posts table'); select has_pk('forum_example','posts','posts has pk'); SELECT has_column( 'forum_example', 'posts', 'id','posts has id col'); SELECT col_is_pk ( 'forum_example', 'posts', 'id','posts.id is pk'); SELECT col_type_is( 'forum_example','posts', 'id', 'integer','posts.id is integer' ); SELECT col_not_null( 'forum_example','posts','id','posts.id is not null' ); SELECT col_has_default('forum_example','posts', 'id','posts.id has default'); SELECT has_column( 'forum_example', 'posts', 'author_id','posts has author_id col'); SELECT fk_ok( 'forum_example', 'posts', 'author_id', 'forum_example', 'users', 'id','posts.author_id links fk to users.id' ); SELECT col_type_is( 'forum_example','posts', 'author_id', 'integer','posts.author_id is integer' ); SELECT col_not_null( 'forum_example','posts','author_id','posts.author_id is not null' ); SELECT col_hasnt_default('forum_example','posts', 'author_id','posts.author_id hasnt default'); SELECT has_column( 'forum_example','posts', 'headline','posts has headline col'); SELECT col_isnt_pk ( 'forum_example','posts', 'headline','posts.headline isnt pk'); SELECT col_type_is( 'forum_example','posts', 'headline', 'text','posts.headline is text' ); SELECT col_not_null( 'forum_example','posts', 'headline','posts.headline is not null' ); SELECT col_hasnt_default('forum_example','posts', 'headline','posts.headline hasnt default'); SELECT col_has_check('forum_example','posts', 'headline','posts.headline has check constraint' ); SELECT has_column( 'forum_example','posts', 'body','posts has body col'); SELECT col_isnt_pk ( 'forum_example','posts', 'body','posts.body isnt pk'); SELECT col_type_is( 'forum_example','posts', 'body', 'text','posts.body is text' ); -- SELECT col_not_null( 'forum_example','posts', 'body','posts.body is not null' ); SELECT col_hasnt_default('forum_example','posts', 'body','posts.body hasnt default'); SELECT has_column( 'forum_example','posts', 'topic','posts has topic col'); SELECT col_isnt_pk ( 'forum_example','posts', 'topic','posts.topic isnt pk'); SELECT col_type_is( 'forum_example','posts', 'topic', 'forum_example','post_topic','posts.topic is post_topic enum type' ); -- SELECT col_not_null( 'forum_example','posts', 'topic','posts.topic is not null' ); SELECT col_hasnt_default('forum_example','posts', 'topic','posts.topic hasnt default'); SELECT has_column( 'forum_example','posts', 'created_at','posts has created_at col'); SELECT col_isnt_pk ( 'forum_example','posts', 'created_at','posts.created_at isnt pk'); SELECT col_type_is( 'forum_example','posts', 'created_at', 'timestamp with time zone','posts.created_at is timestamp with time zone' ); SELECT col_not_null( 'forum_example','posts', 'created_at','posts.created_at is not null' ); SELECT col_has_default('forum_example','posts', 'created_at','posts.created_at has default'); -- check that headline check constraint works okay with a (id) as ( insert into forum_example.users (first_name,last_name) values ('Hermann','Munster') returning id ) select id as hermannid from a \gset PREPARE long_headline AS insert INTO forum_example.posts (author_id,headline,body) values (:hermannid::bigint,'A Reaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaly Long Headline', 'some body'); select throws_ok('long_headline','23514','new row for relation "posts" violates check constraint "posts_headline_check"','should fail headline length check'); SELECT finish(); ROLLBACK;
SET DEFINE OFF; CREATE INDEX AFW_25_JOURN_TRAVL_EXECT_FK1 ON AFW_25_JOURN_TRAVL_EXECT (REF_TRAVL) LOGGING /
<reponame>cityofasheville/simplicity-graphql-server -- View: simplicity.budget_parameters_view -- DROP VIEW simplicity.budget_parameters_view; CREATE OR REPLACE VIEW simplicity.budget_parameters_view AS SELECT a.defaultyear, a.currentyear, a.in_budget_season FROM ( SELECT glp1.defaultyear, glp1.currentyear, ( SELECT coa_app_parameters.value FROM simplicity.coa_app_parameters WHERE coa_app_parameters.name::text = 'in_budget_season'::text) AS in_budget_season FROM internal.general_ledger_parameters glp1) a;
<reponame>aliostad/deep-learning-lang-detection<gh_stars>10-100 DROP TABLE IF EXISTS SX_PRODUCTOS_LOG CREATE TABLE `sx_productos_log` ( `ID` bigint(20) NOT NULL auto_increment, `PRODUCTO_ID` bigint(20) NOT NULL , `ARTFACNECR` bit(1) default NULL, `ACABADO` varchar(20) default NULL, `activo` bit(1) NOT NULL, `ACTIVO_COM` bit(1) default NULL, `ACTIVO_COM_OBS` varchar(40) default NULL, `ACTIVO_INV` bit(1) default NULL, `ACTIVO_INV_OBS` varchar(40) default NULL, `ACTIVO_VEN` bit(1) default NULL, `ACTIVO_VEN_OBS` varchar(40) default NULL, `ancho` double NOT NULL, `calibre` int(11) NOT NULL, `caras` int(11) NOT NULL, `CLAVE` varchar(10) NOT NULL, `COLOR` varchar(25) default NULL, `deLinea` bit(1) NOT NULL, `DESCRIPCION` varchar(250) NOT NULL, `ELIMINADO` bit(1) default NULL, `GRAMOS` int(11) NOT NULL, `inventariable` bit(1) NOT NULL, `KILOS` double NOT NULL, `largo` double NOT NULL, `LIN_ORIG` varchar(10) default NULL, `modoDeVenta` varchar(255) default NULL, `nacional` bit(1) NOT NULL, `precioContado` double NOT NULL, `precioCredito` double NOT NULL, `PRESENTACION` varchar(15) NOT NULL, `servicio` bit(1) NOT NULL, `TRS` bit(1) default NULL, `CREADO` datetime default NULL, `CREADO_USERID` varchar(255) default NULL, `MODIFICADO` datetime default NULL, `MODIFICADO_USERID` varchar(255) default NULL, `version` int(11) NOT NULL, `LINEA_ID` bigint(20) NOT NULL, `UNIDAD` varchar(3) NOT NULL, `CLASE_ID` bigint(20) NOT NULL, `MARCA_ID` bigint(20) default NULL, `TX_IMPORTADO` datetime default NULL, `TX_REPLICADO` datetime default NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1 ; /** SOlO PARA PRODUCCION (OFICINAS) **/ DROP TRIGGER IF EXISTS PRODUCTOS_BEF_UPD DROP TRIGGER IF EXISTS PRODUCTOS_TRG_BU CREATE TRIGGER PRODUCTOS_TRG_BU BEFORE UPDATE ON SX_PRODUCTOS FOR EACH ROW BEGIN DECLARE CONTINUE HANDLER FOR SQLEXCEPTION SET NEW.MODIFICADO=NOW(),NEW.TX_REPLICADO=NULL; INSERT INTO sx_productos_log (PRODUCTO_ID,ARTFACNECR,ACABADO,activo,ACTIVO_COM,ACTIVO_COM_OBS,ACTIVO_INV,ACTIVO_INV_OBS,ACTIVO_VEN,ACTIVO_VEN_OBS,ancho,calibre,caras,CLAVE,COLOR,deLinea,DESCRIPCION,ELIMINADO,GRAMOS,inventariable,KILOS,largo,LIN_ORIG,modoDeVenta,nacional,precioContado,precioCredito,PRESENTACION,servicio,TRS,CREADO,CREADO_USERID,MODIFICADO,MODIFICADO_USERID,version,LINEA_ID,UNIDAD,CLASE_ID,MARCA_ID,TX_IMPORTADO,TX_REPLICADO) VALUES(NEW.PRODUCTO_ID ,NEW.ARTFACNECR ,NEW.ACABADO ,NEW.activo ,NEW.ACTIVO_COM ,NEW.ACTIVO_COM_OBS ,NEW.ACTIVO_INV ,NEW.ACTIVO_INV_OBS ,NEW.ACTIVO_VEN ,NEW.ACTIVO_VEN_OBS ,NEW.ancho ,NEW.calibre ,NEW.caras ,NEW.CLAVE ,NEW.COLOR ,NEW.deLinea ,NEW.DESCRIPCION ,NEW.ELIMINADO ,NEW.GRAMOS ,NEW.inventariable ,NEW.KILOS ,NEW.largo ,NEW.LIN_ORIG ,NEW.modoDeVenta ,NEW.nacional ,NEW.precioContado ,NEW.precioCredito ,NEW.PRESENTACION ,NEW.servicio ,NEW.TRS ,NEW.CREADO ,NEW.CREADO_USERID ,NEW.MODIFICADO ,NEW.MODIFICADO_USERID ,NEW.version ,NEW.LINEA_ID ,NEW.UNIDAD ,NEW.CLASE_ID ,NEW.MARCA_ID ,NULL ,NULL); END; DROP TRIGGER IF EXISTS PRODUCTOS_TRG_BI CREATE TRIGGER PRODUCTOS_TRG_BI BEFORE INSERT ON SX_PRODUCTOS FOR EACH ROW BEGIN SET NEW.MODIFICADO=NOW(),NEW.CREADO=NOW(); END; DROP TRIGGER IF EXISTS PRODUCTOS_TRG_AI CREATE TRIGGER PRODUCTOS_TRG_AI AFTER INSERT ON SX_PRODUCTOS FOR EACH ROW BEGIN --DECLARE CONTINUE HANDLER FOR SQLEXCEPTION INSERT INTO sx_productos_log (PRODUCTO_ID,ARTFACNECR,ACABADO,activo,ACTIVO_COM,ACTIVO_COM_OBS,ACTIVO_INV,ACTIVO_INV_OBS,ACTIVO_VEN,ACTIVO_VEN_OBS,ancho,calibre,caras,CLAVE,COLOR,deLinea,DESCRIPCION,ELIMINADO,GRAMOS,inventariable,KILOS,largo,LIN_ORIG,modoDeVenta,nacional,precioContado,precioCredito,PRESENTACION,servicio,TRS,CREADO,CREADO_USERID,MODIFICADO,MODIFICADO_USERID,version,LINEA_ID,UNIDAD,CLASE_ID,MARCA_ID,TX_IMPORTADO,TX_REPLICADO) VALUES(NEW.PRODUCTO_ID ,NEW.ARTFACNECR ,NEW.ACABADO ,NEW.activo ,NEW.ACTIVO_COM ,NEW.ACTIVO_COM_OBS ,NEW.ACTIVO_INV ,NEW.ACTIVO_INV_OBS ,NEW.ACTIVO_VEN ,NEW.ACTIVO_VEN_OBS ,NEW.ancho ,NEW.calibre ,NEW.caras ,NEW.CLAVE ,NEW.COLOR ,NEW.deLinea ,NEW.DESCRIPCION ,NEW.ELIMINADO ,NEW.GRAMOS ,NEW.inventariable ,NEW.KILOS ,NEW.largo ,NEW.LIN_ORIG ,NEW.modoDeVenta ,NEW.nacional ,NEW.precioContado ,NEW.precioCredito ,NEW.PRESENTACION ,NEW.servicio ,NEW.TRS ,NEW.CREADO ,NEW.CREADO_USERID ,NEW.MODIFICADO ,NEW.MODIFICADO_USERID ,NEW.version ,NEW.LINEA_ID ,NEW.UNIDAD ,NEW.CLASE_ID ,NEW.MARCA_ID ,NULL ,NULL); END;
<filename>src/main/webapp/database/insert_table.sql<gh_stars>1-10 use newservlet2020; insert into role(code, name) values('ADMIN', 'Quản trị'); INSERT INTO users(name, password, full_name, status, role_id) VALUES ('admin', '123456', 'admin', 1, 5); INSERT INTO users(name, password, full_name, status, role_id) VALUES ('lequangnhu', '<PASSWORD>', '<NAME> Như', 1, 6); INSERT INTO users(name, password, full_name, status, role_id) VALUES ('nguyenvanb', '123456', '<NAME>', 1, 6);
<gh_stars>1-10 CREATE EXTERNAL TABLE ${ATHENA_TABLE_NAME} ( eventversion STRING, useridentity STRUCT< type:STRING, principalid:STRING, arn:STRING, accountid:STRING, invokedby:STRING, accesskeyid:STRING, userName:STRING, sessioncontext:STRUCT< attributes:STRUCT< mfaauthenticated:STRING, creationdate:STRING>, sessionissuer:STRUCT< type:STRING, principalId:STRING, arn:STRING, accountId:STRING, userName:STRING>>>, eventtime STRING, eventsource STRING, eventname STRING, awsregion STRING, sourceipaddress STRING, useragent STRING, errorcode STRING, errormessage STRING, requestparameters STRING, responseelements STRING, additionaleventdata STRING, requestid STRING, eventid STRING, resources ARRAY<STRUCT< ARN:STRING, accountId:STRING, type:STRING>>, eventtype STRING, apiversion STRING, readonly STRING, recipientaccountid STRING, serviceeventdetails STRING, sharedeventid STRING, vpcendpointid STRING ) PARTITIONED BY (region string, year string, month string, day string) ROW FORMAT SERDE 'com.amazon.emr.hive.serde.CloudTrailSerde' STORED AS INPUTFORMAT 'com.amazon.emr.cloudtrail.CloudTrailInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' LOCATION 's3://${TRAIL_BUCKET_NAME}/AWSLogs/${ACCOUNT_ID}/CloudTrail/';
<reponame>schuyler/buendia<filename>tools/stress-testing/data-generator/output/1p1e.sql -- -- Working data -- SELECT @android := user_id FROM users WHERE username='android' LIMIT 1; SELECT @assigned_location_id := person_attribute_type_id FROM person_attribute_type WHERE name='assigned_location' LIMIT 1; SELECT @msf_type := patient_identifier_type_id FROM patient_identifier_type WHERE name='MSF' LIMIT 1; SELECT @root_location := location_id FROM location WHERE uuid='3449f5fe-8e6b-4250-bcaa-fca5df28ddbf' LIMIT 1; CREATE TEMPORARY TABLE locale_order (id INT PRIMARY KEY,locale VARCHAR(30));INSERT INTO locale_order (id, locale) VALUES (1, 'en_GB_client'), (2, 'en');-- -- Users -- -- Guest User INSERT INTO person (gender,creator,date_created) VALUES ('M',@android,NOW()); SELECT @person_id := LAST_INSERT_ID(); INSERT INTO person_name (person_id,given_name,family_name,creator,date_created,uuid) VALUES (@person_id,"Guest","User",@android,NOW(),UUID()); INSERT INTO users (system_id,username,password,<PASSWORD>,creator,date_created,person_id,uuid) VALUES ("20-8","guest","95151f0c72533553ae33030ad85513c18a48a<PASSWORD>","2<PASSWORD>18a59e<PASSWORD>32a5d26d3f<PASSWORD>888f42e<PASSWORD>d5a71aff<PASSWORD>c<PASSWORD>75a10e556c865b781c1edc8d360038",@android,NOW(),@person_id,UUID()); INSERT INTO provider (person_id,name,creator,date_created,uuid) VALUES (@person_id,"Guest User",@android,NOW(),UUID()); -- <NAME> INSERT INTO person (gender,creator,date_created) VALUES ('M',@android,NOW()); SELECT @person_id := LAST_INSERT_ID(); INSERT INTO person_name (person_id,given_name,family_name,creator,date_created,uuid) VALUES (@person_id,"Jay","Achar",@android,NOW(),UUID()); INSERT INTO users (system_id,username,password,salt,creator,date_created,person_id,uuid) VALUES ("21-6","jay","<PASSWORD>2b63a44655ccc4d8309b3cb068992518725c03ae023e77f0c707b9ca0f64b18ca7abce9b3363cfef393cef7d2c0ca3e3e3b7e5eab4a7605a16b7a55c69f78","c1e9fe0ebe2aca93f6d470f470eebb016ff67378d6043be60cb05449a5aa7b2254491606633c544ea0b76e75e1cb7af7d045aed2850b810cbd1df19fdc0dac3b",@android,NOW(),@person_id,UUID()); INSERT INTO provider (person_id,name,creator,date_created,uuid) VALUES (@person_id,"<NAME>",@android,NOW(),UUID()); -- <NAME> INSERT INTO person (gender,creator,date_created) VALUES ('M',@android,NOW()); SELECT @person_id := LAST_INSERT_ID(); INSERT INTO person_name (person_id,given_name,family_name,creator,date_created,uuid) VALUES (@person_id,"Simon","Collins",@android,NOW(),UUID()); INSERT INTO users (system_id,username,password,salt,creator,date_created,person_id,uuid) VALUES ("22-4","simon","<PASSWORD>c<PASSWORD>a<PASSWORD>c911c83203408ce911f8d34b33aa05fc98c44bb8f06df4307fdcf6a7486e8337aebd20cea2f3cb846213<PASSWORD>","<PASSWORD>46859<PASSWORD>e1c9ff4f023b45a6f1eeb44597868<PASSWORD>d2548<PASSWORD>",@android,NOW(),@person_id,UUID()); INSERT INTO provider (person_id,name,creator,date_created,uuid) VALUES (@person_id,"<NAME>",@android,NOW(),UUID()); -- <NAME> INSERT INTO person (gender,creator,date_created) VALUES ('M',@android,NOW()); SELECT @person_id := LAST_INSERT_ID(); INSERT INTO person_name (person_id,given_name,family_name,creator,date_created,uuid) VALUES (@person_id,"Jane","Greig",@android,NOW(),UUID()); INSERT INTO users (system_id,username,password,salt,creator,date_created,person_id,uuid) VALUES ("23-2","jane","4<PASSWORD>eb<PASSWORD>aa06597d67d56423b6f972e97ce994fa115dc9c30b5760c23247dd9b66ccb1821e6c654abd480ddb75c275cf189ae0abf39036b","<KEY>",@android,NOW(),@person_id,UUID()); INSERT INTO provider (person_id,name,creator,date_created,uuid) VALUES (@person_id,"<NAME>",@android,NOW(),UUID()); -- <NAME> INSERT INTO person (gender,creator,date_created) VALUES ('M',@android,NOW()); SELECT @person_id := LAST_INSERT_ID(); INSERT INTO person_name (person_id,given_name,family_name,creator,date_created,uuid) VALUES (@person_id,"Ivan","Gayton",@android,NOW(),UUID()); INSERT INTO users (system_id,username,password,salt,creator,date_created,person_id,uuid) VALUES ("24-0","<PASSWORD>","<KEY>","aa7b0f9a79b4b6529e1a296c6cb177accdf8c3558369a9ccf57e070bf7fa83485f95dd68dda837e5e5700fde59064b98c2ab9657ab7fe4dac26061f9d1b32db1",@android,NOW(),@person_id,UUID()); INSERT INTO provider (person_id,name,creator,date_created,uuid) VALUES (@person_id,"<NAME>",@android,NOW(),UUID()); -- -- Patients -- -- -- @firstname@ LastName INSERT INTO person (gender,birthdate,creator,date_created,uuid) VALUES ("F",DATE_SUB(CURDATE(), INTERVAL 318 MONTH),@android,DATE_SUB(CURDATE(), INTERVAL 8 DAY),UUID()); SELECT @person_id := LAST_INSERT_ID(); INSERT INTO person_name (person_id,given_name,family_name,creator,date_created,uuid) VALUES (@person_id,"@firstname@","LastName",@android,DATE_SUB(CURDATE(), INTERVAL 8 DAY),UUID()); INSERT INTO patient (patient_id,creator,date_created) VALUES (@person_id,@android,DATE_SUB(CURDATE(), INTERVAL 8 DAY)); INSERT INTO patient_identifier (patient_id,identifier,identifier_type,location_id,creator,date_created,uuid) VALUES (@person_id,"KH.0",@msf_type,@root_location,@android,NOW(),UUID()); SELECT @location_id := location_id FROM location WHERE name="Confirmed 1"; INSERT INTO person_attribute (person_id,value,person_attribute_type_id,creator,date_created,uuid) VALUES (@person_id,@location_id,@assigned_location_id,@android,NOW(),UUID()); SELECT @location_id := location_id FROM location WHERE name="Triage"; INSERT INTO encounter (encounter_type,patient_id,location_id,encounter_datetime,creator,date_created,uuid) VALUES (2,@person_id,@location_id,ADDTIME(CAST(DATE_SUB(CURDATE(), INTERVAL 8 DAY) AS DATETIME), "15:00"),@android,NOW(),UUID()); SELECT @encounter_id := LAST_INSERT_ID(); SELECT @encounter_datetime := encounter_datetime FROM encounter WHERE encounter_id=@encounter_id; SELECT @provider_id := provider_id FROM provider WHERE name="Guest User"; INSERT INTO encounter_provider (encounter_id,provider_id,encounter_role_id,creator,date_created,uuid) VALUES (@encounter_id,@provider_id,3,@android,NOW(),UUID()); SELECT @concept_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Temperature °C" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; INSERT INTO obs (person_id,concept_id,encounter_id,obs_datetime,value_numeric,creator,date_created,uuid) VALUES (@person_id,@concept_id,@encounter_id,@encounter_datetime,37.4,@android,NOW(),UUID()); SELECT @concept_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Pregnant" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; SELECT @value_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Yes" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; INSERT INTO obs (person_id,concept_id,encounter_id,obs_datetime,value_coded,creator,date_created,uuid) VALUES (@person_id,@concept_id,@encounter_id,@encounter_datetime,@value_id,@android,NOW(),UUID()); SELECT @concept_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Condition" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; SELECT @value_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Good" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; INSERT INTO obs (person_id,concept_id,encounter_id,obs_datetime,value_coded,creator,date_created,uuid) VALUES (@person_id,@concept_id,@encounter_id,@encounter_datetime,@value_id,@android,NOW(),UUID()); SELECT @concept_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Best Conscious State" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; SELECT @value_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Alert" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; INSERT INTO obs (person_id,concept_id,encounter_id,obs_datetime,value_coded,creator,date_created,uuid) VALUES (@person_id,@concept_id,@encounter_id,@encounter_datetime,@value_id,@android,NOW(),UUID()); SELECT @concept_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Mobility" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; SELECT @value_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Walking" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; INSERT INTO obs (person_id,concept_id,encounter_id,obs_datetime,value_coded,creator,date_created,uuid) VALUES (@person_id,@concept_id,@encounter_id,@encounter_datetime,@value_id,@android,NOW(),UUID()); SELECT @concept_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Tolerating Diet" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; SELECT @value_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Food" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; INSERT INTO obs (person_id,concept_id,encounter_id,obs_datetime,value_coded,creator,date_created,uuid) VALUES (@person_id,@concept_id,@encounter_id,@encounter_datetime,@value_id,@android,NOW(),UUID()); SELECT @concept_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Hydration" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; SELECT @value_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Well hydrated" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; INSERT INTO obs (person_id,concept_id,encounter_id,obs_datetime,value_coded,creator,date_created,uuid) VALUES (@person_id,@concept_id,@encounter_id,@encounter_datetime,@value_id,@android,NOW(),UUID()); SELECT @concept_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Vomiting" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; SELECT @value_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="None" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; INSERT INTO obs (person_id,concept_id,encounter_id,obs_datetime,value_coded,creator,date_created,uuid) VALUES (@person_id,@concept_id,@encounter_id,@encounter_datetime,@value_id,@android,NOW(),UUID()); SELECT @concept_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Diarrhoea" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; SELECT @value_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="None" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; INSERT INTO obs (person_id,concept_id,encounter_id,obs_datetime,value_coded,creator,date_created,uuid) VALUES (@person_id,@concept_id,@encounter_id,@encounter_datetime,@value_id,@android,NOW(),UUID()); SELECT @concept_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="Pain Assessment" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; SELECT @value_id := concept.concept_id FROM concept_name JOIN concept ON concept.concept_id=concept_name.concept_id INNER JOIN locale_order ON concept_name.locale=locale_order.locale WHERE name="None" AND voided=0 AND concept.retired=0 ORDER BY locale_order.id ASC LIMIT 1; INSERT INTO obs (person_id,concept_id,encounter_id,obs_datetime,value_coded,creator,date_created,uuid) VALUES (@person_id,@concept_id,@encounter_id,@encounter_datetime,@value_id,@android,NOW(),UUID());
-- AlterTable ALTER TABLE "Expense" ALTER COLUMN "amount" SET DATA TYPE TEXT;
CREATE DATABASE bd_atividade26; USE bd_atividade26; CREATE TABLE insalubridade( idinsalubridade INT NOT NULL AUTO_INCREMENT, tipo VARCHAR(15) NOT NULL, CONSTRAINT pk_insalubridade PRIMARY KEY(idinsalubridade) ); CREATE TABLE cargos( idcargos INT NOT NULL AUTO_INCREMENT, cargo VARCHAR(60) NOT NULL, CONSTRAINT pk_insalubridade PRIMARY KEY(idcargos) ); CREATE TABLE funcionario( idfuncionario INT NOT NULL AUTO_INCREMENT, nome VARCHAR(60) NOT NULL, cpf CHAR(11) NOT NULL UNIQUE, idcargos INT NOT NULL, valorHora INT NOT NULL, quantidadeHoras INT NOT NULL, horasExtras50 INT NULL, horasExtras100 INT NULL, dependentes TINYINT NULL, idinsalubridade INT NOT NULL, CONSTRAINT pk_funcionario PRIMARY KEY(idfuncionario), CONSTRAINT fk_insFuncionario FOREIGN KEY(idinsalubridade) REFERENCES insalubridade(idinsalubridade), CONSTRAINT fk_cargFuncionario FOREIGN KEY(idcargos) REFERENCES cargos(idcargos) ); INSERT INTO cargos(cargo) VALUES ('Dev Júnior'), ('Dev Pleno'), ('Dev Sênior'), ('Analista Pleno'), ('Testador de Software'), ('Gestor de Projetos'); INSERT INTO insalubridade(tipo) VALUES ('Nenhuma'), ('Mínima'), ('Média'), ('Máxima'); INSERT INTO funcionario(nome, cpf, idcargos, valorHora, quantidadeHoras, horasExtras50, horasExtras100, dependentes, idinsalubridade) VALUES ('Bruno', '12345678910', 1, 40, 220, 20, 10, 2, 1), ('Camilly', '12345678911', 1, 40, 220, 20, 10, 2, 1), ('José', '12345678912', 2, 20, 263, 31, 32, 1, 1), ('Marlin', '12345678913', 2, 35, 254, 25, 54, 3, 3), ('Rodrigo', '12345678914', 3, 95, 314, 12, 12, 0, 1), ('Maria', '12345678915', 3, 15, 15, 14, 16, 0, 1), ('Michell', '12345678916', 4, 55, 142, 15, 3, 2, 2), ('Minhoca', '12345678917', 4, 36, 234, 32, 32, 3, 2), ('Padaria', '12345678918', 5, 65, 361, 32, 34, 3, 1), ('Batata', '12345679819', 5, 26, 325, 12, 45, 2, 4), ('Frango', '12345678920', 6, 25, 65, 95, 65, 1, 4), ('Hipopotamo', '12345678921', 6, 24, 65, 5, 34, 1, 4); DELETE FROM funcionario WHERE nome = 'Maria'; UPDATE funcionario SET nome = 'Rodolfo' WHERE idfuncionario = 12; SELECT * FROM funcionario;
USE `hds_db`; INSERT INTO `products`(`productCode`, `productName`, `priceEach`, `textDescription`) VALUES (101, "tacos", 2.00, "Tacos de diferente tipos de carne"), (102, "tortas", 5.00, "Bolillo con carne, lechuga, tomate, etc"), (103, "hamburguesas", 7.00, "Carne de res con lechuga, tomate, aguacate, etc"), (104, "tapatios", 7.00, "Tapatios con crema, lechuga, tomate, salsa, etc"), (105, "gorditas", 2.00, "Gorditas de diferente tipos de carne, con lechuga, tomate, etc"), (106, "quesadillas", 5.00, "Quesadillas con diferente tipos de carne"), (201, "pastor", 0.00, "Carne de puerco"), (202, "asada", 0.00, "Carne de vaca"), (203, "barbacoa", 0.00, "Carne de borrego/vaca"), (204, "decebrada", 0.00, "Carne de "), (205, "buche", 0.00, "Carne de "), (206, "chicharron", 0.00, "Pellejo de puerco"), (207, "lengua", 0.00, "Lengua de vaca"), (208, "tripas", 0.00, "Tripa de vaca");
USE biuro --1 --DROP PROCEDURE PROCEDURA1 GO CREATE PROCEDURE PROCEDURA1 ( @imie varchar(30), @nazwisko varchar(30), @adres varchar(100), @telefon varchar(30) ) AS DECLARE @numerwlasciciela varchar(5), @numer int = 0, @warunek int = 0 DECLARE kur CURSOR FOR (select * from(SELECT TOP 999 wlascicielnr FROM wlasciciele ORDER BY wlascicielnr ASC) AS STH) OPEN kur DECLARE @fetch varchar(8) FETCH NEXT FROM kur INTO @fetch WHILE @@FETCH_STATUS = 0 and @warunek = 0 BEGIN IF(@numer < 10) SET @numerwlasciciela = 'CO0' + convert(varchar, @numer) IF(@numer >= 10) SET @numerwlasciciela = 'CO' + convert(varchar, @numer) PRINT @fetch + @numerwlasciciela IF @fetch != @numerwlasciciela BEGIN SET @warunek = 1 END SET @numer = @numer + 1 FETCH NEXT FROM kur INTO @fetch END CLOSE kur DEALLOCATE kur INSERT INTO wlasciciele VALUES (@numerwlasciciela,@imie,@nazwisko,@adres,@telefon) GO EXEC PROCEDURA1 'Piotr', 'Janicki', 'Lodz', '123123123' SELECT * FROM wlasciciele ORDER BY wlascicielnr ASC --2 GO --drop function fn_przychodybiura create function fn_przychodybiura(@biuro varchar(4)) returns int BEGIN RETURN (SELECT SUM(wynajecia.czynsz) FROM wynajecia, nieruchomosci WHERE wynajecia.nieruchomoscNr = nieruchomosci.nieruchomoscnr AND nieruchomosci.biuroNr = @biuro ) END GO SELECT DISTINCT biura.biuroNr, dbo.fn_przychodybiura(biura.biuroNr) AS przychody_z_wynajmu FROM biura WHERE dbo.fn_przychodybiura(biura.biuroNr) is not null --3 GO CREATE TRIGGER trigger1 ON wynajecia AFTER INSERT AS BEGIN IF (SELECT czynsz FROM inserted) > ( SELECT max_czynsz FROM klienci, inserted WHERE klienci.klientnr = inserted.klientnr) BEGIN UPDATE wynajecia SET wynajecia.czynsz = klienci.max_czynsz FROM klienci, inserted WHERE klienci.klientnr = inserted.klientnr PRINT('Wprowadzony czynsz jest zbyt wysoki! Dokonano poprawy') END END GO --4 GO CREATE TRIGGER trigger2 ON klienci AFTER INSERT AS BEGIN DECLARE @klient varchar(4) = (SELECT klientnr FROM inserted), @data varchar(10) = CONVERT(varchar(10), GETDATE()) INSERT INTO rejestracje VALUES (@klient, 'B003', 'SB21', @data) END GO --5 drop function fn_prowizja GO create function fn_prowizja(@pracownik varchar(4), @od SMALLDATETIME, @do SMALLDATETIME) returns int BEGIN RETURN( ( SELECT COUNT(wizyty.klientnr) FROM wizyty, nieruchomosci, rejestracje WHERE wizyty.nieruchomoscnr = nieruchomosci.nieruchomoscnr AND nieruchomosci.personelnr = @pracownik AND wizyty.data_wizyty >= @od )*0.25* ( SELECT pensja FROM personel WHERE personel.personelNr = @pracownik )*0.02 + ( SELECT COUNT(wynajecia.umowanr) FROM wynajecia, nieruchomosci WHERE wynajecia.nieruchomoscNr = nieruchomosci.nieruchomoscnr AND nieruchomosci.personelNr = @pracownik AND wynajecia.od_kiedy >= @od AND wynajecia.do_kiedy <= @do )*0.1* ( SELECT pensja FROM personel WHERE personel.personelNr = @pracownik ) ) END GO SELECT DISTINCT personel.personelNr, dbo.fn_prowizja(personel.personelNr,'2004-9-01','2020-11-01') AS prowizja FROM personel WHERE dbo.fn_prowizja(personel.personelNr,'2004-9-01','2020-11-01')is not null --6 drop procedure NIEZAPLACONE GO CREATE PROCEDURE NIEZAPLACONE AS DECLARE kur CURSOR FOR (select * from(SELECT TOP 999 zaplacona,nieruchomoscnr, od_kiedy, do_kiedy FROM wynajecia ORDER BY od_kiedy ASC) AS STH) OPEN kur DECLARE @fetch int, @nr varchar(4), @od datetime, @do datetime, @imie varchar(20) FETCH NEXT FROM kur INTO @fetch, @nr, @od, @do WHILE @@FETCH_STATUS = 0 BEGIN IF @fetch = 0 BEGIN SET @imie = (SELECT DISTINCT nazwisko FROM klienci, wynajecia WHERE klienci.klientnr = wynajecia.klientnr AND wynajecia.nieruchomoscnr = @nr) print('Brak wpaly od ' + @imie + ' za nieruchomosc nr ' + @nr + ' za okres ' + convert(varchar, DATEDIFF(MONTH, @od, @do)) + ' miesiecy.') END FETCH NEXT FROM kur INTO @fetch, @nr, @od, @do END CLOSE kur DEALLOCATE kur GO EXEC NIEZAPLACONE
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; USE jobskee; CREATE TABLE `user_group` ( `id` int(11) NOT NULL, `name` varchar(64) NOT NULL, `description` varchar(255) NULL, `permission` text NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; ALTER TABLE `user_group` ADD PRIMARY KEY (`id`), ADD KEY `id` (`id`); ALTER TABLE `user_group` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; USE jobskee; CREATE TABLE `user` ( `id` int(11) NOT NULL, `group_id` int(11) NOT NULL, `username` varchar(20) NOT NULL, `password` varchar(40) NOT NULL, `firstname` varchar(32) NOT NULL, `secondname` varchar(32) NULL, `lastname` varchar(32) NOT NULL, `email` varchar(96) NOT NULL, `image` varchar(255) NOT NULL, `status` tinyint(1) NOT NULL, `created` datetime NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; ALTER TABLE `user` ADD PRIMARY KEY (`id`), ADD KEY `username` (`username`); ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1;
INSERT INTO music_provider_settings ( [provider], [id], [value_type] ) SELECT "replacement_parameter_provider_id", "replacement_parameter_setting_id", "replacement_parmeter_value_type"
-- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.19 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 9.4.0.5125 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!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' */; -- Dumping structure for table fundasierra.payments_providers DROP TABLE IF EXISTS `payments_providers`; CREATE TABLE IF NOT EXISTS `payments_providers` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(150) NOT NULL, `active` tinyint(1) NOT NULL DEFAULT '1', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table fundasierra.payments_providers: ~0 rows (approximately) /*!40000 ALTER TABLE `payments_providers` DISABLE KEYS */; /*!40000 ALTER TABLE `payments_providers` ENABLE KEYS */; -- Dumping structure for table fundasierra.stripes DROP TABLE IF EXISTS `stripes`; CREATE TABLE IF NOT EXISTS `stripes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `object` text NOT NULL, `active` tinyint(1) NOT NULL DEFAULT '1', `balance_transaction` varchar(250) DEFAULT NULL, `stripe_id` varchar(250) DEFAULT NULL, `amount` decimal(10,2) DEFAULT NULL, `lastfour` varchar(50) DEFAULT NULL, `stripe_created` bigint(20) DEFAULT NULL, `brand` varchar(50) DEFAULT NULL, `exp_year` varchar(50) DEFAULT NULL, `exp_month` varchar(50) DEFAULT NULL, `zip` varchar(50) DEFAULT NULL, `funding` varchar(50) DEFAULT NULL, `description` text, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC; -- Dumping data for table fundasierra.stripes: ~0 rows (approximately) /*!40000 ALTER TABLE `stripes` DISABLE KEYS */; /*!40000 ALTER TABLE `stripes` ENABLE KEYS */; -- Dumping structure for table fundasierra.subscriptions DROP TABLE IF EXISTS `subscriptions`; CREATE TABLE IF NOT EXISTS `subscriptions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `name` varchar(50) NOT NULL, `stripe_id` varchar(50) NOT NULL, `stripe_plan` varchar(50) NOT NULL, `quantity` int(11) NOT NULL, `trial_ends_at` timestamp NULL DEFAULT NULL, `ends_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_bt` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_subscriptions_users` (`user_id`), CONSTRAINT `FK_subscriptions_users` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table fundasierra.subscriptions: ~0 rows (approximately) /*!40000 ALTER TABLE `subscriptions` DISABLE KEYS */; /*!40000 ALTER TABLE `subscriptions` ENABLE KEYS */; -- Dumping structure for table fundasierra.transactions DROP TABLE IF EXISTS `transactions`; CREATE TABLE IF NOT EXISTS `transactions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `invoice` varchar(50) NOT NULL, `payments_provider_id` int(10) unsigned NOT NULL, `stripe_id` int(10) unsigned NOT NULL, `amount` decimal(10,2) unsigned NOT NULL, `amount_less_commissions` decimal(10,2) unsigned NOT NULL, `comment` text, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, `created_by` int(11) DEFAULT NULL, `updated_by` int(11) DEFAULT NULL, `deleted_by` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FK_transactions_payments_providers` (`payments_provider_id`), KEY `FK_transactions_stripes` (`stripe_id`), CONSTRAINT `FK_transactions_payments_providers` FOREIGN KEY (`payments_provider_id`) REFERENCES `payments_providers` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `FK_transactions_stripes` FOREIGN KEY (`stripe_id`) REFERENCES `stripes` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- Dumping data for table fundasierra.transactions: ~0 rows (approximately) /*!40000 ALTER TABLE `transactions` DISABLE KEYS */; /*!40000 ALTER TABLE `transactions` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
-- Table: public.calendar_events -- DROP TABLE public.calendar_events; CREATE TABLE IF NOT EXISTS public.calendar_events ( id bigserial, event_id character varying, event_start timestamp without time zone, event_end timestamp without time zone, event_creator character varying, event_location character varying, event_location_name character varying, CONSTRAINT calendar_events_event_id_key UNIQUE (event_id) ); ALTER TABLE public.calendar_events OWNER to docker; -- Table: public.slack_logins -- DROP TABLE public.slack_logins; CREATE TABLE IF NOT EXISTS public.slack_logins ( id bigserial constraint slack_logins_pk primary key, user_id character varying not null, username character varying, ip character varying, office character varying, last_date timestamp, email character varying, user_tz character varying, pdate date not null ); create unique index slack_logins_user_id_pdate_uindex on public.slack_logins (user_id, pdate); ALTER TABLE public.slack_logins OWNER to docker;
<reponame>ikantspel9/DBOps USE [msdb] GO Declare @jobexists bit IF EXISTS (SELECT job_id FROM msdb.dbo.sysjobs_view WHERE name = N'DBA: Log Table Size') BEGIN Set @jobexists = 1 GOTO EndSave END DECLARE @ReturnCode INT, @ServerName varchar(100) SELECT @ReturnCode = 0, @ServerName = @@Servername IF NOT EXISTS (SELECT name FROM msdb.dbo.syscategories WHERE name=N'DBA Stats' AND category_class=1) BEGIN EXEC @ReturnCode = msdb.dbo.sp_add_category @class=N'JOB', @type=N'LOCAL', @name=N'DBA Stats' IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback END BEGIN TRANSACTION DECLARE @jobId BINARY(16) EXEC @ReturnCode = msdb.dbo.sp_add_job @job_name=N'DBA: Log Table Size', @enabled=1, @notify_level_eventlog=0, @notify_level_email=0, @notify_level_netsend=0, @notify_level_page=0, @delete_level=0, @description=N'This proc logs the size of all tables in limeade', @category_name=N'DBA Stats', @owner_login_name=N'sa', @job_id = @jobId OUTPUT IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback EXEC @ReturnCode = msdb.dbo.sp_add_jobstep @job_id=@jobId, @step_name=N'Log Table Size', @step_id=1, @cmdexec_success_code=0, @on_success_action=1, @on_success_step_id=0, @on_fail_action=2, @on_fail_step_id=0, @retry_attempts=0, @retry_interval=0, @os_run_priority=0, @subsystem=N'TSQL', @command=N'DECLARE @today DATE SET @today = CAST(GETDATE() AS DATE) DECLARE @canRun bit = 0 select @canRun = CASE role_desc when ''PRIMARY'' THEN 1 ELSE 0 END from sys.dm_hadr_availability_replica_states a inner join sys.dm_hadr_database_replica_states d on a.replica_id = d.replica_id and a.group_id = d.group_id JOIN sys.databases db ON db.database_id = d.database_id where db.name = ''DBNameYouCareAbout'' and d.is_local = 1 if (@canRun=1) Exec sp_TableSizeUsage @DbName =''limeade'', @LogResults = 1, @ObjectType = ''U,V'', @ShowInternalTable=''No''', @database_name=N'master', @flags=0 IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback EXEC @ReturnCode = msdb.dbo.sp_update_job @job_id = @jobId, @start_step_id = 1 IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback EXEC @ReturnCode = msdb.dbo.sp_add_jobschedule @job_id=@jobId, @name=N'Log Table Size', @enabled=1, @freq_type=4, @freq_interval=1, @freq_subday_type=1, @freq_subday_interval=0, @freq_relative_interval=0, @freq_recurrence_factor=0, @active_start_date=20150226, @active_end_date=99991231, @active_start_time=100, @active_end_time=235959 IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback EXEC @ReturnCode = msdb.dbo.sp_add_jobserver @job_id = @jobId, @server_name = @ServerName IF (@@ERROR <> 0 OR @ReturnCode <> 0) GOTO QuitWithRollback COMMIT TRANSACTION GOTO EndSave QuitWithRollback: IF (@@TRANCOUNT > 0) ROLLBACK TRANSACTION EndSave: If @jobexists = 1 Print 'Job DBA: Log Table Size exists, so skipping' GO
Select a.Unit, FCNumber, StartDate, Month(StartDate) as MonthRelease, YEAR(StartDate) as YearRelease, EndDate, Subject, IIF(c.DateCompleted Is Null, IIF(DateCompleteKA Is Null, DateCompleteSMS, DateCompleteKA), c.DateCompleted) as DateComplete, YEAR(CompletionDate) as YearComplete, MONTH(CompletionDate) as MonthComplete, [Hours], Classification, Notes From (FactoryCampaign a Inner Join UnitID b on a.Unit=b.Unit) Left Join EventLog c on a.UID=c.UID Where b.MineSite='FortHills' And Classification='M' And StartDate>='2017-01-01'
-- -- Database. -- DROP DATABASE IF EXISTS test; CREATE DATABASE test; USE test; -- -- Users. -- DROP TABLE IF EXISTS users; CREATE TABLE users ( id VARBINARY(24) NOT NULL, name VARBINARY(24), email VARBINARY(24), created TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL, enabled BOOLEAN DEFAULT TRUE NOT NULL, friends INT NOT NULL, project INT, PRIMARY KEY(id), INDEX(created), INDEX(enabled), INDEX(friends), INDEX(project) );
-- 更新分类下数量 DROP TRIGGER IF EXISTS blog_TAI; DELIMITER || CREATE TRIGGER blog_TAI AFTER INSERT ON blog FOR EACH ROW BEGIN UPDATE blog_type SET bt_blogcount = bt_blogcount + 1 WHERE id=NEW.b_type; END || DELIMITER; -- 创建新用户默认分配角色 DROP TRIGGER IF EXISTS blog_user_TAI; DELIMITER || CREATE TRIGGER blog_user_TAI AFTER INSERT ON blog_user FOR EACH ROW BEGIN INSERT ur_relation(ur_userid, ur_roleid) VALUES (NEW.id, 2); END || DELIMITER; -- 新增点赞更新文章或评论点赞量 DROP TRIGGER IF EXISTS blog_like_log_TAI; DELIMITER || CREATE TRIGGER blog_like_log_TAI AFTER INSERT ON blog_like_log FOR EACH ROW BEGIN IF (NEW.bll_blogcommentid IS NULL) THEN UPDATE blog SET b_likecount=b_likecount+1 WHERE id=NEW.bll_blogid; ELSE UPDATE blog_comment SET bc_likecount=bc_likecount+1 WHERE id=NEW.bll_blogcommentid; END IF; END || DELIMITER; -- 更新点赞 文章或评论点赞量 DROP TRIGGER IF EXISTS blog_like_log_TAU; DELIMITER || CREATE TRIGGER blog_like_log_TAU AFTER INSERT ON blog_like_log FOR EACH ROW BEGIN DECLARE add_like INT; IF NEW.bll_status = 1 THEN SET add_like = 1; ELSE SET add_like = -1; END IF; IF (NEW.bll_blogcommentid IS NULL) THEN UPDATE blog SET b_likecount=b_likecount+add_like WHERE id=NEW.bll_blogid; ELSE UPDATE blog_comment SET bc_likecount=bc_likecount+add_like WHERE id=NEW.bll_blogcommentid; END IF; END || DELIMITER;
DROP FUNCTION IF EXISTS backup_table(p_TableName text) ; CREATE OR REPLACE FUNCTION backup_table(p_TableName text) RETURNS text LANGUAGE plpgsql VOLATILE AS $$ DECLARE v_backupTableName text; v_rowcount numeric; BEGIN v_backupTableName = 'backup.' || p_TableName || '_bkp_' || TO_CHAR(NOW(), 'YYYYMMDD_HH24MISS_MS'); RAISE NOTICE 'Backup `%` to `%`...', p_TableName, v_backupTableName; EXECUTE 'CREATE TABLE ' || v_backupTableName || ' AS SELECT * FROM ' || p_TableName; GET DIAGNOSTICS v_rowcount = ROW_COUNT; RAISE NOTICE 'Backup done. % rows copied.', v_rowcount; RETURN v_backupTableName; END $$ ; /* * #%L * de.metas.adempiere.adempiere.migration-sql * %% * Copyright (C) 2022 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program. If not, see * <http://www.gnu.org/licenses/gpl-2.0.html>. * #L% */ -- Usage example: -- SELECT backup_table('C_BP_Group'); -- => select * from backup.C_BP_Group_bkp_20220303_084927_890
<gh_stars>0 DROP DATABASE IF EXISTS freecruiter_db; CREATE DATABASE freecruiter_db;
/* Campos de InfoCubo BW Troque SAPB03 pelo esquema de seu BW*/ select * from ( select i.INFOAREA ,i.INFOCUBE ,d.DIMENSION ,dt.TXTLG as DIM_NAME ,di.POSIT ,di.IOBJNM ,IFNULL(it.TXTLG, IFNULL(nt.TXTLG, it2.TXTLG)) as IOBJTXT from SAPB03.RSDCUBE as i inner join SAPB03.RSDDIME as d on (d.INFOCUBE = i.INFOCUBE and d.OBJVERS = i.OBJVERS) inner join SAPB03.RSDDIMEIOBJ as di on (di.INFOCUBE = d.INFOCUBE and di.OBJVERS = d.OBJVERS and di.DIMENSION = d.DIMENSION) left outer join SAPB03.RSDDIMET as dt on (dt.INFOCUBE = d.INFOCUBE and dt.OBJVERS = d.OBJVERS and dt.DIMENSION = d.DIMENSION and dt.langu = 'P') left outer join SAPB03.RSDIOBJT as it on (it.IOBJNM = di.IOBJNM and it.OBJVERS = i.OBJVERS and it.langu = 'P') left outer join SAPB03.RSDATRNAV as na on (na.ATRNAVNM = di.IOBJNM and na.OBJVERS = i.OBJVERS ) left outer join SAPB03.RSDATRNAVT as nt on (nt.ATTRINM = na.ATTRINM and nt.CHANM = na.CHANM and nt.LANGU = 'P' and nt.OBJVERS = i.OBJVERS ) left outer join SAPB03.RSDIOBJT as it2 on (it2.IOBJNM = na.ATTRINM and it2.OBJVERS = i.OBJVERS and it2.langu = 'P')
CREATE TABLE vacancy (id serial PRIMARY KEY, name varchar(1024), "text" text, link varchar(2028), created bigint, CONSTRAINT "unique_name" UNIQUE (name));
-- drop view ToolView create view ToolView as select t.id as ToolId, t.factoryid as FactoryToolId, ts.id as ToolStateId, ts.factoryid as FactoryToolStateId, tst.id as ToolSubTypeId, tst.factoryid as FactoryToolSubTypeId, tt.id as ToolTypeId, tt.factoryid as FactoryToolTypeId, tg1.FACTORYID as ToolGroup1, tg2.FACTORYID as ToolGroup2, t.MaxDegreeOfParallelism from Tool t WITH (NOLOCK) left join ToolState ts WITH (NOLOCK) on (ts.id = t.toolstate_id) left join ToolSubType tst WITH (NOLOCK) on (tst.id = t.toolsubtype_id) left join ToolType tt WITH (NOLOCK) on (tt.id = tst.tooltype_id) left join ToolGroup1 tg1 WITH (NOLOCK) on (tg1.ID = t.TOOLGROUP1_ID) left join ToolGroup2 tg2 WITH (NOLOCK) on (tg1.TOOLGROUP2_ID = tg2.ID) /* select * from ToolView; */
<gh_stars>1-10 -- This file and its contents are licensed under the Timescale License. -- Please see the included NOTICE for copyright information and -- LICENSE-TIMESCALE for a copy of the license. --telemetry tests that require a community license \c :TEST_DBNAME :ROLE_CLUSTER_SUPERUSER; SELECT setseed(1); -- Create a materialized view from the telemetry report so that we -- don't regenerate telemetry for every query. Filter heap_size for -- materialized views since PG14 reports a different heap size for -- them compared to earlier PG versions. CREATE MATERIALIZED VIEW telemetry_report AS SELECT (r #- '{relations,materialized_views,heap_size}') AS r FROM get_telemetry_report() r; CREATE VIEW relations AS SELECT r -> 'relations' AS rels FROM telemetry_report; SELECT rels -> 'continuous_aggregates' -> 'num_relations' AS num_continuous_aggs, rels -> 'hypertables' -> 'num_relations' AS num_hypertables FROM relations; -- check telemetry picks up flagged content from metadata SELECT r -> 'db_metadata' AS db_metadata FROM telemetry_report; -- check timescaledb_telemetry.cloud SELECT r -> 'instance_metadata' AS instance_metadata FROM telemetry_report r; CREATE TABLE normal (time timestamptz NOT NULL, device int, temp float); CREATE TABLE part (time timestamptz NOT NULL, device int, temp float) PARTITION BY RANGE (time); CREATE TABLE part_t1 PARTITION OF part FOR VALUES FROM ('2018-01-01') TO ('2018-02-01') PARTITION BY HASH (device); CREATE TABLE part_t2 PARTITION OF part FOR VALUES FROM ('2018-02-01') TO ('2018-03-01') PARTITION BY HASH (device); CREATE TABLE part_t1_d1 PARTITION OF part_t1 FOR VALUES WITH (MODULUS 2, REMAINDER 0); CREATE TABLE part_t1_d2 PARTITION OF part_t1 FOR VALUES WITH (MODULUS 2, REMAINDER 1); CREATE TABLE part_t2_d1 PARTITION OF part_t2 FOR VALUES WITH (MODULUS 2, REMAINDER 0); CREATE TABLE part_t2_d2 PARTITION OF part_t2 FOR VALUES WITH (MODULUS 2, REMAINDER 1); CREATE TABLE hyper (LIKE normal); SELECT table_name FROM create_hypertable('hyper', 'time'); CREATE MATERIALIZED VIEW contagg WITH (timescaledb.continuous) AS SELECT time_bucket('1 hour', time) AS hour, device, min(time) FROM hyper GROUP BY hour, device; -- Create another view (already have the "relations" view) CREATE VIEW devices AS SELECT DISTINCT ON (device) device FROM hyper; -- Show relations with no data REFRESH MATERIALIZED VIEW telemetry_report; SELECT jsonb_pretty(rels) AS relations FROM relations; -- Insert data INSERT INTO normal SELECT t, ceil(random() * 10)::int, random() * 30 FROM generate_series('2018-01-01'::timestamptz, '2018-02-28', '2h') t; INSERT INTO hyper SELECT * FROM normal; INSERT INTO part SELECT * FROM normal; CALL refresh_continuous_aggregate('contagg', NULL, NULL); -- ANALYZE to get updated reltuples stats ANALYZE normal, hyper, part; SELECT count(c) FROM show_chunks('hyper') c; SELECT count(c) FROM show_chunks('contagg') c; -- Update and show the telemetry report REFRESH MATERIALIZED VIEW telemetry_report; SELECT jsonb_pretty(rels) AS relations FROM relations; -- Actual row count should be the same as reltuples stats for all tables SELECT (SELECT count(*) FROM normal) num_inserted_rows, (SELECT rels -> 'tables' -> 'num_reltuples' FROM relations) normal_reltuples, (SELECT rels -> 'hypertables' -> 'num_reltuples' FROM relations) hyper_reltuples, (SELECT rels -> 'partitioned_tables' -> 'num_reltuples' FROM relations) part_reltuples; -- Add compression ALTER TABLE hyper SET (timescaledb.compress); SELECT compress_chunk(c) FROM show_chunks('hyper') c ORDER BY c LIMIT 4; ALTER MATERIALIZED VIEW contagg SET (timescaledb.compress); SELECT compress_chunk(c) FROM show_chunks('contagg') c ORDER BY c LIMIT 1; -- Turn of real-time aggregation ALTER MATERIALIZED VIEW contagg SET (timescaledb.materialized_only = true); ANALYZE normal, hyper, part; REFRESH MATERIALIZED VIEW telemetry_report; SELECT jsonb_pretty(rels) AS relations FROM relations; -- Add distributed hypertables \set DN_DBNAME_1 :TEST_DBNAME _1 \set DN_DBNAME_2 :TEST_DBNAME _2 -- Not an access node or data node SELECT r -> 'num_data_nodes' AS num_data_nodes, r -> 'distributed_member' AS distributed_member FROM telemetry_report; -- Become an access node by adding a data node SELECT * FROM add_data_node('data_node_1', host => 'localhost', database => :'DN_DBNAME_1'); -- Telemetry should show one data node and "acces node" status REFRESH MATERIALIZED VIEW telemetry_report; SELECT r -> 'num_data_nodes' AS num_data_nodes, r -> 'distributed_member' AS distributed_member FROM telemetry_report; -- See telemetry report from a data node \ir include/remote_exec.sql SELECT test.remote_exec(NULL, $$ SELECT t -> 'num_data_nodes' AS num_data_nodes, t -> 'distributed_member' AS distributed_member FROM get_telemetry_report() t; $$); SELECT * FROM add_data_node('data_node_2', host => 'localhost', database => :'DN_DBNAME_2'); CREATE TABLE disthyper (LIKE normal); SELECT create_distributed_hypertable('disthyper', 'time', 'device'); -- Show distributed hypertables stats with no data REFRESH MATERIALIZED VIEW telemetry_report; SELECT jsonb_pretty(rels -> 'distributed_hypertables_access_node') AS distributed_hypertables_an FROM relations; -- No datanode-related stats on the access node SELECT jsonb_pretty(rels -> 'distributed_hypertables_data_node') AS distributed_hypertables_dn FROM relations; -- Insert data into the distributed hypertable INSERT INTO disthyper SELECT * FROM normal; -- Update telemetry stats and show output on access node and data -- nodes. Note that the access node doesn't store data so shows -- zero. It should have stats from ANALYZE, though, like -- num_reltuples. ANALYZE disthyper; REFRESH MATERIALIZED VIEW telemetry_report; SELECT jsonb_pretty(rels -> 'distributed_hypertables_access_node') AS distributed_hypertables_an FROM relations; -- Show data node stats SELECT test.remote_exec(NULL, $$ SELECT jsonb_pretty(t -> 'relations' -> 'distributed_hypertables_data_node') AS distributed_hypertables_dn FROM get_telemetry_report() t; $$); -- Add compression ALTER TABLE disthyper SET (timescaledb.compress); SELECT compress_chunk(c) FROM show_chunks('disthyper') c ORDER BY c LIMIT 4; ANALYZE disthyper; -- Update telemetry stats and show updated compression stats REFRESH MATERIALIZED VIEW telemetry_report; SELECT jsonb_pretty(rels -> 'distributed_hypertables_access_node') AS distributed_hypertables_an FROM relations; -- Show data node stats SELECT test.remote_exec(NULL, $$ SELECT jsonb_pretty(t -> 'relations' -> 'distributed_hypertables_data_node') AS distributed_hypertables_dn FROM get_telemetry_report() t; $$); -- Create a replicated distributed hypertable and show replication stats CREATE TABLE disthyper_repl (LIKE normal); SELECT create_distributed_hypertable('disthyper_repl', 'time', 'device', replication_factor => 2); INSERT INTO disthyper_repl SELECT * FROM normal; REFRESH MATERIALIZED VIEW telemetry_report; SELECT jsonb_pretty(rels -> 'distributed_hypertables_access_node') AS distributed_hypertables_an FROM relations; -- Create a continuous aggregate on the distributed hypertable CREATE MATERIALIZED VIEW distcontagg WITH (timescaledb.continuous) AS SELECT time_bucket('1 hour', time) AS hour, device, min(time) FROM disthyper GROUP BY hour, device; REFRESH MATERIALIZED VIEW telemetry_report; SELECT jsonb_pretty(rels -> 'continuous_aggregates') AS continuous_aggregates FROM relations; DROP VIEW relations; DROP MATERIALIZED VIEW telemetry_report;
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. /****** Script for SelectTopNRows command from SSMS ******/ use EdFi_Sample_ODS_Data_For_Generate declare @StudentUSI int = 20004 -- add 20000 already INSERT INTO [edfi].[GeneralStudentProgramAssociation] ([BeginDate] ,[EducationOrganizationId] ,[ProgramEducationOrganizationId] ,[ProgramName] ,[ProgramTypeDescriptorId] ,[StudentUSI] ,[EndDate] ,[ReasonExitedDescriptorId] ) SELECT [BeginDate] ,[EducationOrganizationId] ,[ProgramEducationOrganizationId] ,[ProgramName] ,[ProgramTypeDescriptorId] ,@StudentUSI ,[EndDate] ,[ReasonExitedDescriptorId] FROM [EdFi_Sample_ODS_Data_For_Generate].[edfi].[GeneralStudentProgramAssociation] where [StudentUSI] = 20002 and [ProgramTypeDescriptorId] = 1623 INSERT INTO [edfi].[StudentLanguageInstructionProgramAssociation] ([BeginDate] ,[EducationOrganizationId] ,[ProgramEducationOrganizationId] ,[ProgramName] ,[ProgramTypeDescriptorId] ,[StudentUSI] ,[EnglishLearnerParticipation]) SELECT TOP (1000) [BeginDate] ,[EducationOrganizationId] ,[ProgramEducationOrganizationId] ,[ProgramName] ,[ProgramTypeDescriptorId] ,@StudentUSI ,[EnglishLearnerParticipation] FROM [EdFi_Sample_ODS_Data_For_Generate].[edfi].[StudentLanguageInstructionProgramAssociation] where [StudentUSI] = 20002 /****** Script for SelectTopNRows command from SSMS ******/ INSERT INTO [edfi].[StudentLanguageInstructionProgramAssociationEnglishLanguageProficiencyAssessment] ([BeginDate] ,[EducationOrganizationId] ,[ProgramEducationOrganizationId] ,[ProgramName] ,[ProgramTypeDescriptorId] ,[SchoolYear] ,[StudentUSI] ,[ParticipationDescriptorId] ,[ProficiencyDescriptorId] ,[ProgressDescriptorId] ,[MonitoredDescriptorId] ,[CreateDate]) SELECT TOP (1000) [BeginDate] ,[EducationOrganizationId] ,[ProgramEducationOrganizationId] ,[ProgramName] ,[ProgramTypeDescriptorId] ,[SchoolYear] ,@StudentUSI ,[ParticipationDescriptorId] ,[ProficiencyDescriptorId] ,[ProgressDescriptorId] ,[MonitoredDescriptorId] ,[CreateDate] FROM [EdFi_Sample_ODS_Data_For_Generate].[edfi].[StudentLanguageInstructionProgramAssociationEnglishLanguageProficiencyAssessment] where StudentUSI = 20002 /****** Script for SelectTopNRows command from SSMS ******/ INSERT INTO [edfi].[StudentLanguageInstructionProgramAssociationLanguageInstructionProgramService] ([BeginDate] ,[EducationOrganizationId] ,[LanguageInstructionProgramServiceDescriptorId] ,[ProgramEducationOrganizationId] ,[ProgramName] ,[ProgramTypeDescriptorId] ,[StudentUSI] ,[PrimaryIndicator] ,[ServiceBeginDate] ,[ServiceEndDate] ,[CreateDate]) SELECT TOP (1000) [BeginDate] ,[EducationOrganizationId] ,[LanguageInstructionProgramServiceDescriptorId] ,[ProgramEducationOrganizationId] ,[ProgramName] ,[ProgramTypeDescriptorId] ,@StudentUSI ,[PrimaryIndicator] ,[ServiceBeginDate] ,[ServiceEndDate] ,[CreateDate] FROM [EdFi_Sample_ODS_Data_For_Generate].[edfi].[StudentLanguageInstructionProgramAssociationLanguageInstructionProgramService] where [StudentUSI] = 20002
INSERT INTO tablename1 VALUES ("ok"); INSERT INTO tablename2 VALUES ("ok", 5);
<gh_stars>100-1000 -- Deploy delivery:projects_full_scm_module to pg -- requires: projects_add_type BEGIN; ALTER TABLE projects ALTER COLUMN type TYPE TEXT; ALTER TABLE projects RENAME COLUMN type TO scm_module; ALTER TABLE projects ALTER COLUMN scm_module SET DEFAULT 'deliv_scm_local'; UPDATE projects SET scm_module='deliv_scm_local' WHERE scm_module='local'; UPDATE projects SET scm_module='deliv_scm_github' WHERE scm_module='github'; DROP TYPE cd_project_type; COMMIT;
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 20, 2018 at 10:39 AM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.0.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!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 utf8mb4 */; -- -- Database: `yii_advanced` -- -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE TABLE `admin` ( `id` int(11) NOT NULL, `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `status` smallint(6) NOT NULL DEFAULT '10', `created_at` int(11) NOT NULL, `updated_at` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `admin` -- INSERT INTO `admin` (`id`, `username`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'admin', '<PASSWORD>lQlqhxvkciNPYSzZ1vIhu6Ds4j7em', <PASSWORD>', NULL, '<EMAIL>', 10, 1528341206, 1528341206); -- -------------------------------------------------------- -- -- Table structure for table `category` -- CREATE TABLE `category` ( `id` int(11) NOT NULL, `name` varchar(200) NOT NULL, `slug` varchar(200) NOT NULL, `description` text NOT NULL, `status` int(5) NOT NULL DEFAULT '1', `picture` varchar(256) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `category` -- INSERT INTO `category` (`id`, `name`, `slug`, `description`, `status`, `picture`, `created_at`, `updated_at`) VALUES (0, 'All Category', 'all-category', 'All Category', 0, '', '2018-06-13 02:57:42', '2018-06-13 02:57:42'), (1, 'book', 'book', 'Category for book collections', 1, 'uploads/book-1528774975.jpg', '2018-06-07 03:08:57', '2018-06-12 08:34:42'), (2, 'music', 'music', 'Category for music collections', 1, 'uploads/music-1528775036.png', '2018-06-07 03:37:42', '2018-06-12 03:43:56'), (3, 'movie', 'movie', 'Category for Movie Collections', 1, 'uploads/movie-1528775043.jpg', '2018-06-07 03:41:06', '2018-06-12 03:44:03'), (4, 'app', 'app', 'Category for App Collections', 1, 'uploads/app-1528775050.jpg', '2018-06-11 04:07:57', '2018-06-12 03:44:10'); -- -------------------------------------------------------- -- -- Table structure for table `forget_password` -- CREATE TABLE `forget_password` ( `id` int(11) NOT NULL, `user` int(11) NOT NULL, `encryption_key` varchar(64) NOT NULL, `code` varchar(254) NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `status` tinyint(3) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `forget_password` -- INSERT INTO `forget_password` (`id`, `user`, `encryption_key`, `code`, `created_at`, `updated_at`, `status`) VALUES (3, 4, '<KEY>', 'Wu1Nw4etfGa2MMObyQtTg-iXhUC693ba', '2018-06-13 03:56:49', '2018-06-13 03:56:49', 0), (4, 4, '-iys83pWVgTCgLcwbRC4paaxjWftrWpK', 'NAwONICHGHtUxRIbnOiioj5ex2Q0qmsS', '2018-06-13 03:57:20', '2018-06-13 03:57:20', 0), (5, 4, 'ZCYH5xYNz8XQUQFhTWOTDphVZtJR0rWE', '8EiaOHPOFzXSJBWDAnp4FGXcF4AsJmLT', '2018-06-13 03:59:38', '2018-06-13 03:59:38', 0), (6, 4, 'D2PbJNhR9DFNgoE2LjdMBaS0l_wxSU3o', 'LzfLDXaWhn3QFDhvHl4LjtZ3dxgFeZrt', '2018-06-13 04:00:42', '2018-06-13 04:00:42', 0), (7, 4, 'RTD7IuW6CuNnS0FdtA6oB1w9QVnbaRgP', 'YQYkfi5OGhvsOh4CYbRdjnmvWSZCtOmj', '2018-06-13 04:01:38', '2018-06-13 04:01:38', 1); -- -------------------------------------------------------- -- -- Table structure for table `migration` -- CREATE TABLE `migration` ( `version` varchar(180) NOT NULL, `apply_time` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `migration` -- INSERT INTO `migration` (`version`, `apply_time`) VALUES ('m000000_000000_base', 1528340411), ('m130524_201442_init', 1528340413); -- -------------------------------------------------------- -- -- Table structure for table `product` -- CREATE TABLE `product` ( `id` int(11) NOT NULL, `code` varchar(200) NOT NULL, `name` varchar(200) NOT NULL, `slug` varchar(200) NOT NULL, `description` text NOT NULL, `author` varchar(200) NOT NULL, `category_id` int(11) NOT NULL, `price` varchar(200) NOT NULL, `picture` varchar(256) NOT NULL, `status` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `product` -- INSERT INTO `product` (`id`, `code`, `name`, `slug`, `description`, `author`, `category_id`, `price`, `picture`, `status`, `created_at`, `updated_at`) VALUES (1, 'BKA0001', 'The Murder of Roger Ackroyd', 'the-murder-of-roger-ackroyd', 'The Murder of R<NAME> is a work of detective fiction by <NAME>, first published in June 1926 in the United Kingdom by William Collins, Sons and in the United States by Dodd, Mead and Company on 19 June 1926.', '<NAME>', 1, '60000', 'uploads/the-murder-of-roger-ackroyd-1529482301.jpg', 1, '2018-06-07 06:58:59', '2018-06-20 08:11:41'), (2, 'BKA0002', 'The Murder on the Orient Express', 'the-murder-on-the-orient-express', 'Murder on the Orient Express is a detective novel by <NAME> featuring the Belgian detective Hercule Poirot. It was first published in the United Kingdom by the Collins Crime Club on 1 January 1934.', '<NAME>', 1, '100000', 'uploads/the-murder-on-the-orient-express-1529483613.jpg', 1, '2018-06-07 07:21:10', '2018-06-20 08:33:33'), (3, 'BKA0003', 'Breaking Dawn', 'breaking-dawn', 'Breaking Dawn is the fourth and second to final novel in The Twilight Saga by American author <NAME>.', '<NAME>', 1, '150000', 'uploads/breaking-dawn-1529483738.jpg', 1, '2018-06-11 07:27:35', '2018-06-20 08:35:38'), (4, 'MCA0001', 'Almost Is Never Enough', 'almost-is-never-enough', '\"Almost Is Never Enough\" is a song recorded by American singer <NAME> and English singer <NAME>. The pop and soul-influenced track was written by Grande, <NAME>, <NAME>, <NAME>, Olaniyi-Akinpelu, and its producer, <NAME>. Two official versions of the song exist. The soundtrack version is included on the official soundtrack for the 2013 fantasy film The Mortal Instruments: City of Bones and was released August 19, 2013 via Republic Records as a second promotional single from the same, following <NAME>\'s \"When the Darkness Comes\" on July 10, and a longer version was remastered for inclusion on Grande\'s debut studio album, Yours Truly (2013).', 'Ariana Grande', 10, '50000', 'uploads/almost-is-never-enough-1529479991.jpg', 1, '2018-06-12 03:32:27', '2018-06-20 07:33:11'), (5, 'MVA0001', 'Incredibles 2', 'incredibles-2', 'Everyone’s favorite family of superheroes is back in “Incredibles 2” – but this time Helen (voice of <NAME>) is in the spotlight, leaving Bob (voice of <NAME>) at home with Violet (voice of <NAME>) and Dash (voice of <NAME>) to navigate the day-to-day heroics of “normal” life. It’s a tough transistion for everyone, made tougher by the fact that the family is still unaware of baby Jack-Jack’s emerging superpowers. When a new villain hatches a brilliant and dangerous plot, the family and Frozone (voice of <NAME>) must find a way to work together again—which is easier said than done, even when they’re all Incredible.', 'Walt Disney Studios', 13, '250000', 'uploads/incredibles-2-1529483793.jpg', 1, '2018-06-18 02:14:10', '2018-06-20 08:36:33'), (6, 'APA0001', 'Candy Crush Saga', 'candy-crush-saga', 'Candy Crush Saga is a free-to-play match-three puzzle video game released by King on April 12, 2012, for Facebook; other versions for iOS, Android, Windows Phone, and Windows 10 followed. It is a variation of their browser game Candy Crush.', 'King', 14, '50000', 'uploads/candy-crush-saga-1529483837.jpg', 1, '2018-06-18 02:16:19', '2018-06-20 08:37:17'); -- -------------------------------------------------------- -- -- Table structure for table `subcategory` -- CREATE TABLE `subcategory` ( `id` int(11) NOT NULL, `name` varchar(200) NOT NULL, `slug` varchar(200) NOT NULL, `status` int(5) NOT NULL DEFAULT '1', `category_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `subcategory` -- INSERT INTO `subcategory` (`id`, `name`, `slug`, `status`, `category_id`, `created_at`, `updated_at`) VALUES (1, 'novel', 'novel', 1, 1, '2018-06-07 03:09:23', '2018-06-07 07:23:05'), (2, 'pop', 'pop', 1, 2, '2018-06-07 05:20:31', '2018-06-07 05:20:31'), (3, 'teenlit', 'teenlit', 1, 1, '2018-06-20 07:29:08', '2018-06-20 07:29:08'), (4, 'comic', 'comic', 1, 1, '2018-06-20 07:29:41', '2018-06-20 07:29:41'), (5, 'biography', 'biography', 1, 1, '2018-06-20 07:29:55', '2018-06-20 07:29:55'), (6, 'rock', 'rock', 1, 2, '2018-06-20 07:30:02', '2018-06-20 07:30:02'), (7, 'jazz', 'jazz', 1, 2, '2018-06-20 07:30:18', '2018-06-20 07:30:18'), (8, 'blues', 'blues', 1, 2, '2018-06-20 07:30:25', '2018-06-20 07:30:25'), (9, 'reggae', 'reggae', 1, 2, '2018-06-20 07:30:37', '2018-06-20 07:30:37'), (10, 'R&B', 'rb', 1, 2, '2018-06-20 07:30:45', '2018-06-20 07:30:45'), (11, 'fairy tale', 'fairy-tale', 1, 1, '2018-06-20 07:31:24', '2018-06-20 07:31:24'), (12, 'action', 'action', 1, 3, '2018-06-20 08:36:10', '2018-06-20 08:36:10'), (13, 'animation', 'animation', 1, 3, '2018-06-20 08:36:18', '2018-06-20 08:36:18'), (14, 'game', 'game', 1, 4, '2018-06-20 08:37:07', '2018-06-20 08:37:07'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `status` smallint(6) NOT NULL DEFAULT '10', `created_at` int(11) NOT NULL, `updated_at` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id`, `username`, `auth_key`, `password_hash`, `password_reset_token`, `email`, `status`, `created_at`, `updated_at`) VALUES (1, 'iput', 'Ew5lQlqhxvkciNPYSzZ1vIhu6Ds4j7em', <PASSWORD>', 'SZbgBGejv6ZiIDM-NDB09btrW3qy8uJu_<PASSWORD>', '<EMAIL>', 10, 1528341206, 1528849535); -- -------------------------------------------------------- -- -- Table structure for table `usernew` -- CREATE TABLE `usernew` ( `id` int(11) NOT NULL, `name` varchar(64) NOT NULL, `address` varchar(128) NOT NULL, `email` varchar(64) NOT NULL, `picture` varchar(128) NOT NULL, `social_media_type` tinyint(1) DEFAULT NULL, `social_media_id` varchar(64) DEFAULT NULL, `password` varchar(256) NOT NULL, `created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `created_by` int(11) DEFAULT NULL, `updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP, `updated_by` int(11) DEFAULT NULL, `status` tinyint(3) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `usernew` -- INSERT INTO `usernew` (`id`, `name`, `address`, `email`, `picture`, `social_media_type`, `social_media_id`, `password`, `created_at`, `created_by`, `updated_at`, `updated_by`, `status`) VALUES (4, 'iput', '<NAME>', '<EMAIL>', '', NULL, NULL, 'e10adc3949ba59abbe56e057f20f883e', '0000-00-00 00:00:00', NULL, '0000-00-00 00:00:00', NULL, 1); -- -------------------------------------------------------- -- -- Table structure for table `voucher` -- CREATE TABLE `voucher` ( `id` int(11) NOT NULL, `name` varchar(200) NOT NULL, `slug` varchar(200) NOT NULL, `code` varchar(256) NOT NULL, `description` text NOT NULL, `discount_prosentase` int(3) NOT NULL DEFAULT '0', `discount_price` int(11) NOT NULL DEFAULT '0', `start_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `end_date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `status` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `voucher` -- INSERT INTO `voucher` (`id`, `name`, `slug`, `code`, `description`, `discount_prosentase`, `discount_price`, `start_date`, `end_date`, `status`, `created_at`, `updated_at`) VALUES (1, 'Book Discount', 'book-discount', 'BOOK123', 'Lorem ipsum dolor sit amet, ad ludus doming sed, quas mandamus argumentum te ius, ex dico libris incorrupte nec. Illud falli atomorum vis ut, te mei ipsum oporteat delicatissimi, in quem diceret partiendo has. Salutatus honestatis interpretaris an mea, dicunt latine minimum ut has. Mei alia quaeque volumus te, eu eros voluptatum eum.', 0, 10000, '2018-06-18 00:34:24', '2018-06-18 00:34:24', 1, '2018-06-13 05:27:18', '2018-06-13 05:27:18'); -- -- Indexes for dumped tables -- -- -- Indexes for table `admin` -- ALTER TABLE `admin` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `username` (`username`), ADD UNIQUE KEY `email` (`email`), ADD UNIQUE KEY `password_reset_token` (`password_reset_token`); -- -- Indexes for table `category` -- ALTER TABLE `category` ADD PRIMARY KEY (`id`); -- -- Indexes for table `forget_password` -- ALTER TABLE `forget_password` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migration` -- ALTER TABLE `migration` ADD PRIMARY KEY (`version`); -- -- Indexes for table `product` -- ALTER TABLE `product` ADD PRIMARY KEY (`id`), ADD KEY `fk_category_product` (`category_id`); -- -- Indexes for table `subcategory` -- ALTER TABLE `subcategory` ADD PRIMARY KEY (`id`), ADD KEY `fk_category_subcategory` (`category_id`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `username` (`username`), ADD UNIQUE KEY `email` (`email`), ADD UNIQUE KEY `password_reset_token` (`password_reset_token`); -- -- Indexes for table `usernew` -- ALTER TABLE `usernew` ADD PRIMARY KEY (`id`); -- -- Indexes for table `voucher` -- ALTER TABLE `voucher` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `admin` -- ALTER TABLE `admin` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `category` -- ALTER TABLE `category` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `forget_password` -- ALTER TABLE `forget_password` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `product` -- ALTER TABLE `product` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `subcategory` -- ALTER TABLE `subcategory` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `usernew` -- ALTER TABLE `usernew` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `voucher` -- ALTER TABLE `voucher` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- Constraints for dumped tables -- -- -- Constraints for table `subcategory` -- ALTER TABLE `subcategory` ADD CONSTRAINT `fk_category_subcategory` FOREIGN KEY (`category_id`) REFERENCES `category` (`id`); COMMIT; /*!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 */;
SELECT A.TABLESPACE_NAME, A.TABLE_NAME, A.INDEX_NAME, COUNT(B.COLUMN_POSITION) TOT_COLUMN_POSITION, SUM( DECODE( C.DATA_TYPE, 'NUMBER', DATA_PRECISION, DATA_LENGTH ) ) TAM_DADOS, MAX( A.NUM_ROWS) AS MAX_NUM_ROWS, MAX( D.BLOCKS) AS MAX_BLOCKS FROM DBA_INDEXES A INNER JOIN DBA_IND_COLUMNS B ON A.TABLE_OWNER = B.TABLE_OWNER AND A.TABLE_NAME = B.TABLE_NAME AND A.INDEX_NAME = B.INDEX_NAME INNER JOIN DBA_TAB_COLUMNS C ON B.TABLE_OWNER = C.OWNER AND B.TABLE_NAME = C.TABLE_NAME AND B.COLUMN_NAME = C.COLUMN_NAME INNER JOIN DBA_SEGMENTS D ON A.OWNER = D.OWNER AND A.INDEX_NAME = D.SEGMENT_NAME GROUP BY A.TABLESPACE_NAME, A.TABLE_NAME, A.INDEX_NAME ORDER BY A.TABLESPACE_NAME, A.TABLE_NAME, A.INDEX_NAME;
 CREATE VIEW [olap].[vDimDate] AS SELECT [Datekey] , [FullDateLabel] , [DateDescription] , [CalendarYearLabel] , [CalendarHalfYearLabel] , [CalendarQuarterLabel] , [CalendarMonthLabel] , [IsWorkDay] FROM [dbo].[DimDate]
CREATE TABLE Devices ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, name VARCHAR(64) NOT NULL, hardware_version VARCHAR(10) NOT NULL, PRIMARY KEY (id) );
<reponame>NimbusServices/SAEON.ObservationsDatabase<filename>SAEON.Observations.Database/dbo/Views/vStationObservations.sql<gh_stars>0 CREATE VIEW [dbo].[vStationObservations] AS Select ID, StationID, InstrumentID, InstrumentCode, InstrumentName, InstrumentDescription, SensorID, SensorCode, SensorName, SensorDescription, ValueDate, DataValue, TextValue, Latitude, Longitude, Elevation, PhenomenonID, PhenomenonCode, PhenomenonName, PhenomenonDescription, PhenomenonOfferingID, OfferingID, OfferingCode, OfferingName, OfferingDescription, PhenomenonUOMID, UnitOfMeasureID, UnitOfMeasureCode, UnitOfMeasureUnit, UnitOfMeasureSymbol, CorrelationID, Comment, StatusCode, StatusName, StatusDescription, StatusReasonCode, StatusReasonName, StatusReasonDescription from vObservationExpansion
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th12 14, 2021 lúc 02:57 PM -- Phiên bản máy phục vụ: 10.4.18-MariaDB -- Phiên bản PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!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 utf8mb4 */; -- -- Cơ sở dữ liệu: `subphimnhanh.net` -- -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Đang đổ dữ liệu cho bảng `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2021_11_03_132057_create_tbl_kinds_table', 1), (5, '2021_11_04_074723_create_tbl_countries_table', 1), (6, '2021_11_04_075020_create_tbl_translates_table', 1), (7, '2021_11_04_075239_create_tbl_film_odds_table', 1), (8, '2021_11_04_075706_create_tbl_film_series_table', 1), (9, '2021_11_04_075909_create_tbl_film_episodes_table', 1), (10, '2021_11_21_193203_create_tbl_ratings_table', 1); -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `tbl_countries` -- CREATE TABLE `tbl_countries` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(150) COLLATE utf8mb4_unicode_ci NOT NULL, `count_film` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Đang đổ dữ liệu cho bảng `tbl_countries` -- INSERT INTO `tbl_countries` (`id`, `name`, `slug`, `count_film`, `created_at`, `updated_at`) VALUES (1, '<NAME>', 'trung-quoc', 4, NULL, '2021-11-30 08:15:27'), (2, 'Mỹ', 'my\r\n', 23, NULL, '2021-11-30 07:10:21'), (3, '<NAME>', 'nhat-ban\r\n', NULL, NULL, '2021-11-27 07:22:40'), (4, '<NAME>', 'an-do', 8, NULL, '2021-11-30 07:53:21'), (5, '<NAME>', 'han-quoc', 7, NULL, '2021-11-30 19:28:24'), (6, 'Anh', 'anh', 1, NULL, '2021-11-30 07:57:35'), (7, 'Thái Lan', 'thai-lan', 3, NULL, '2021-11-30 08:11:35'), (8, 'Khác', 'khac\r\n', 2, NULL, '2021-11-30 07:50:37'); -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `tbl_film_episodes` -- CREATE TABLE `tbl_film_episodes` ( `id` bigint(20) UNSIGNED NOT NULL, `film_id` bigint(20) UNSIGNED NOT NULL, `film_episode` int(11) NOT NULL, `link` text COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Đang đổ dữ liệu cho bảng `tbl_film_episodes` -- INSERT INTO `tbl_film_episodes` (`id`, `film_id`, `film_episode`, `link`, `created_at`, `updated_at`) VALUES (4, 8, 1, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=615bc2dd569132062b2d1669&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638266411&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:03:01', '2021-11-30 03:03:01'), (5, 8, 2, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=615bf812569132062b2d44e1&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638266761&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:08:22', '2021-11-30 03:08:22'), (6, 8, 3, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=615bf814569132062b2d44e7&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267038&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:10:32', '2021-11-30 03:10:32'), (7, 8, 4, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=615bf816569132062b2d44ec&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638266918&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:10:58', '2021-11-30 03:10:58'), (8, 8, 5, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=615d20bb039a0b1e6da96311&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267094&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:11:27', '2021-11-30 03:11:27'), (9, 8, 6, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=615e7b85039a0b1e6da963d3&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267011&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:12:29', '2021-11-30 03:12:29'), (10, 8, 7, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616014c99e29215972879d05&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267032&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:12:53', '2021-11-30 03:12:53'), (11, 8, 8, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6162935a9e29215972879ed3&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267063&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:13:19', '2021-11-30 03:13:19'), (12, 8, 9, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6162935c9e29215972879ed6&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267234&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:13:41', '2021-11-30 03:13:41'), (13, 8, 10, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6162935e9e29215972879ed9&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267301&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:14:50', '2021-11-30 03:14:50'), (14, 8, 11, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616293619e29215972879edc&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267324&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:15:13', '2021-11-30 03:15:13'), (15, 8, 12, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616293639e29215972879edf&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267345&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:15:34', '2021-11-30 03:15:34'), (16, 8, 13, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6168e05241cb69b06c01695d&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267369&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:15:58', '2021-11-30 03:15:58'), (17, 8, 14, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6168e05241cb69b06c016960&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267243&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:16:18', '2021-11-30 03:16:18'), (18, 8, 15, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616a5e1841cb69b06c016a7d&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267265&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:16:38', '2021-11-30 03:16:38'), (19, 8, 16, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616a5e1841cb69b06c016a80&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267294&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:17:08', '2021-11-30 03:17:08'), (20, 8, 17, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616bba4541cb69b06c016b4d&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267316&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:17:30', '2021-11-30 03:17:30'), (21, 8, 18, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616d1b935eb90ce272a74bff&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267482&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:18:19', '2021-11-30 03:18:19'), (22, 8, 19, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616e3a1141cb69b06c016e65&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267532&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:18:40', '2021-11-30 03:18:40'), (23, 8, 20, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616e3a1241cb69b06c016e68&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267408&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:19:00', '2021-11-30 03:19:00'), (24, 8, 21, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616f6ac041cb69b06c016f93&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267427&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:19:23', '2021-11-30 03:19:23'), (25, 8, 22, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616f6ac141cb69b06c016f96&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267456&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:19:54', '2021-11-30 03:19:54'), (26, 8, 23, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=617120f441cb69b06c01725a&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267478&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:20:25', '2021-11-30 03:20:25'), (27, 8, 24, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=617120f441cb69b06c01725d&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267511&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:20:46', '2021-11-30 03:20:46'), (28, 8, 25, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6177cf4941cb69b06c0184fe&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267532&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:21:05', '2021-11-30 03:21:05'), (29, 8, 26, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6177cf4a41cb69b06c018501&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267551&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:21:25', '2021-11-30 03:21:25'), (30, 8, 27, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6178c522095baf9b6aa5213b&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267717&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:21:46', '2021-11-30 03:21:46'), (31, 8, 28, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6178c522095baf9b6aa5213e&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267594&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:22:07', '2021-11-30 03:22:07'), (32, 8, 29, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=617b6cca095baf9b6aa522dd&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267613&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:22:26', '2021-11-30 03:22:26'), (33, 8, 30, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=617b6ccb095baf9b6aa522e0&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267777&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:22:44', '2021-11-30 03:22:44'), (34, 8, 31, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6180de97095baf9b6aa52382&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267798&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:23:06', '2021-11-30 03:23:06'), (35, 8, 32, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6180de99095baf9b6aa52385&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267674&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:23:27', '2021-11-30 03:23:27'), (36, 8, 33, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61839a9d095baf9b6aa523c1&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267694&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:23:48', '2021-11-30 03:23:48'), (37, 8, 34, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61839a9e095baf9b6aa523c4&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267858&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:24:07', '2021-11-30 03:24:07'), (38, 8, 35, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61839a9e095baf9b6aa523c7&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267733&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:24:26', '2021-11-30 03:24:26'), (39, 8, 36, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61839a9f095baf9b6aa523ca&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267900&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:24:47', '2021-11-30 03:24:47'), (40, 8, 37, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=618b3f71095baf9b6aa52a15&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267920&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:25:10', '2021-11-30 03:25:10'), (41, 8, 38, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=618b3f71095baf9b6aa52a18&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267940&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:25:29', '2021-11-30 03:25:29'), (42, 8, 39, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=618b3f72095baf9b6aa52a1b&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267961&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:25:52', '2021-11-30 03:25:52'), (43, 8, 40, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=618b3f72095baf9b6aa52a1e&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638267988&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 03:26:21', '2021-11-30 03:26:21'), (44, 9, 1, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/fYdWKWLxiY.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 05:58:12', '2021-11-30 05:58:12'), (45, 9, 2, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/RpPfvNyOBe.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:09:06', '2021-11-30 06:09:06'), (46, 9, 3, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/zQNNtBvjPd.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:09:59', '2021-11-30 06:09:59'), (47, 9, 4, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/UEkGNtJeDm.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:10:32', '2021-11-30 06:10:32'), (48, 9, 5, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/vMmZkJnFnJ.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:11:12', '2021-11-30 06:11:12'), (49, 9, 6, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/nSyRauMwbV.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:11:48', '2021-11-30 06:11:48'), (50, 9, 7, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/qribzifFcb.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:12:27', '2021-11-30 06:12:27'), (51, 9, 8, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/kdgOYreAiu.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:13:05', '2021-11-30 06:13:05'), (52, 9, 9, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/XBdAuIlaMz.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:13:36', '2021-11-30 06:13:36'), (53, 9, 10, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://ok.ru/videoembed/2739948423877?autoplay=1\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\" __idm_id__=\"1344651265\"></iframe>', '2021-11-30 06:14:20', '2021-11-30 06:14:20'), (54, 9, 11, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/SzQbaqxXim.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:14:51', '2021-11-30 06:14:51'), (55, 9, 12, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/etXSUwEfYd.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:15:22', '2021-11-30 06:15:22'), (56, 9, 13, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/oAYSVeVFLI.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:15:59', '2021-11-30 06:15:59'), (57, 9, 14, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/ypmeolrZQY.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:16:35', '2021-11-30 06:16:35'), (58, 10, 1, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/HvkIWmcwQq.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:29:00', '2021-11-30 06:29:00'), (59, 9, 15, '<iframe id=\"iframe-player\" class=\"metaframe rptss\" src=\"https://zembed.net/v/HvkIWmcwQq.html\" frameborder=\"0\" scrolling=\"no\" allow=\"autoplay; encrypted-media\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:31:55', '2021-12-06 01:09:44'), (60, 11, 1, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=618b3f74095baf9b6aa52a27&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279143&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:34:52', '2021-11-30 06:34:52'), (61, 11, 2, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=618b3f74095baf9b6aa52a2a&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279328&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:35:19', '2021-11-30 06:35:19'), (62, 11, 3, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6194547d095baf9b6aa52c2d&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279360&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:35:51', '2021-11-30 06:35:51'), (63, 11, 4, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6194547e095baf9b6aa52c30&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279237&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:36:13', '2021-11-30 06:36:13'), (64, 11, 5, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619c4182095baf9b6aa52de8&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279262&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:36:39', '2021-11-30 06:36:39'), (65, 11, 6, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61a44c2b095baf9b6aa532a7&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279431&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:37:01', '2021-11-30 06:37:01'), (66, 11, 7, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61a5c44c095baf9b6aa53352&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279453&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:37:22', '2021-11-30 06:37:22'), (67, 12, 1, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6187ab83095baf9b6aa52752&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279715&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:44:58', '2021-11-30 06:44:58'), (68, 12, 2, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6187ab83095baf9b6aa52755&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279788&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:45:24', '2021-11-30 06:45:24'), (69, 12, 3, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619078ad095baf9b6aa52ac2&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279959&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:45:46', '2021-11-30 06:45:46'), (70, 12, 4, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6191bc62095baf9b6aa52be8&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279981&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:46:07', '2021-11-30 06:46:07'), (71, 12, 5, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6198f978095baf9b6aa52d34&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279999&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:46:26', '2021-11-30 06:46:26'), (72, 12, 6, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619a2354095baf9b6aa52d44&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279871&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:46:53', '2021-11-30 06:46:53'), (73, 12, 7, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61a20260095baf9b6aa531c2&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280043&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:47:10', '2021-11-30 06:47:10'), (74, 12, 8, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61a44c28095baf9b6aa53292&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638279916&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:47:30', '2021-11-30 06:47:30'), (75, 13, 1, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=615292e6569132062b23d479&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280186&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:52:09', '2021-11-30 06:52:09'), (76, 13, 2, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6152977e039a0b1e6da8b958&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280364&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:52:30', '2021-11-30 06:52:30'), (77, 13, 3, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616293659e29215972879ee2&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280235&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:52:50', '2021-11-30 06:52:50'), (78, 13, 4, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616293679e29215972879ee5&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280403&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:53:12', '2021-11-30 06:53:12'), (79, 13, 5, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6163c08c9e2921597287a05d&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280279&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:53:31', '2021-11-30 06:53:31'), (80, 13, 6, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616501a341cb69b06c0163f9&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280301&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:53:53', '2021-11-30 06:53:53'), (81, 13, 7, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616d1b845eb90ce272a74be9&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280320&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:54:19', '2021-11-30 06:54:19'), (82, 13, 8, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=616e3a1241cb69b06c016e6b&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280492&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:54:40', '2021-11-30 06:54:40'), (83, 13, 9, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6176298841cb69b06c018338&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280364&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:54:58', '2021-11-30 06:54:58'), (84, 13, 10, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6177cf4c41cb69b06c018513&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280381&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:55:16', '2021-11-30 06:55:16'), (85, 13, 11, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6180dfbb095baf9b6aa52391&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280547&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:55:33', '2021-11-30 06:55:33'), (86, 13, 12, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6180de9d095baf9b6aa5238b&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280563&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:55:51', '2021-11-30 06:55:51'), (87, 13, 13, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=618b3f73095baf9b6aa52a21&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280435&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:56:07', '2021-11-30 06:56:07'), (88, 13, 14, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=618b3f73095baf9b6aa52a24&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280598&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:58:59', '2021-11-30 06:58:59'), (89, 13, 15, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6191bc66095baf9b6aa52c00&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280625&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:59:18', '2021-11-30 06:59:18'), (90, 13, 16, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6194547d095baf9b6aa52c2a&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280646&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 06:59:45', '2021-11-30 06:59:45'), (91, 13, 17, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619aea1d095baf9b6aa52d9b&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280817&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:00:09', '2021-11-30 07:00:09'), (92, 13, 18, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619c4182095baf9b6aa52de5&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280843&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:00:31', '2021-11-30 07:00:31'), (93, 13, 19, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61a44c2a095baf9b6aa532a4&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280716&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:00:56', '2021-11-30 07:00:56'), (94, 13, 20, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61a5c44b095baf9b6aa5334f&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280742&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:01:17', '2021-11-30 07:01:17'), (95, 14, 1, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=618b3f6e095baf9b6aa52a06&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638281117&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:05:10', '2021-11-30 07:05:10'), (96, 14, 2, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=618b3f6f095baf9b6aa52a09&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638280997&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:05:30', '2021-11-30 07:05:30'), (97, 14, 3, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61945478095baf9b6aa52c0c&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638281019&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:05:52', '2021-11-30 07:05:52'), (98, 14, 4, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61945479095baf9b6aa52c0f&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638281184&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:06:10', '2021-11-30 07:06:10'), (99, 14, 5, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619c417f095baf9b6aa52dd6&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638281205&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:06:31', '2021-11-30 07:06:31'), (100, 14, 6, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619f17e8095baf9b6aa53096&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638281078&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:06:50', '2021-11-30 07:06:50'), (101, 14, 7, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61a5c44a095baf9b6aa53343&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638281098&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:07:14', '2021-11-30 07:07:14'), (102, 15, 1, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619f17e2095baf9b6aa53072&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638281458&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:11:03', '2021-11-30 07:11:03'), (103, 15, 2, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619f17e3095baf9b6aa53075&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638281357&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:11:30', '2021-11-30 07:11:30'), (104, 15, 3, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619f17e3095baf9b6aa53078&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638281377&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:11:52', '2021-11-30 07:11:52'), (105, 15, 4, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619f17e4095baf9b6aa5307b&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638281401&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:12:13', '2021-11-30 07:12:13'), (106, 15, 5, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619f17e4095baf9b6aa5307e&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638281419&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:12:32', '2021-11-30 07:12:32'), (107, 16, 1, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6128ea74adec9127f4ac6e0f&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638284185&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:58:46', '2021-11-30 07:58:46'), (108, 16, 2, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6128ea75adec9127f4ac6e13&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638284384&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:59:33', '2021-11-30 07:59:33'), (109, 16, 3, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6128ea75adec9127f4ac6e17&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638284406&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 07:59:54', '2021-11-30 07:59:54'), (110, 16, 4, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6128ea75adec9127f4ac6e20&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638284282&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:00:16', '2021-11-30 08:00:16'), (111, 16, 5, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6128ea76adec9127f4ac6e26&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638284449&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:00:35', '2021-11-30 08:00:35'), (112, 16, 6, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6128ea76adec9127f4ac6e2c&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638284322&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:00:53', '2021-11-30 08:00:53'), (113, 16, 7, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6128ea77adec9127f4ac6e31&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638284484&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:01:12', '2021-11-30 08:01:12'), (114, 16, 8, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6128ea77adec9127f4ac6e35&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638284351&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:01:31', '2021-11-30 08:01:31'), (115, 17, 1, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6144058b666fe2bbf0a15921&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285366&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:16:05', '2021-11-30 08:16:05'), (116, 17, 2, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61440daa666fe2bbf0a1679f&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285251&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:16:25', '2021-11-30 08:16:25'), (117, 17, 3, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61441392666fe2bbf0a171c9&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285417&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:16:46', '2021-11-30 08:16:46'), (118, 17, 4, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=614401ca666fe2bbf0a15268&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285430&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:17:00', '2021-11-30 08:17:00'), (119, 17, 5, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61441484666fe2bbf0a17386&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285298&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:17:12', '2021-11-30 08:17:12'), (120, 17, 6, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61441657666fe2bbf0a176f4&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285461&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:17:30', '2021-11-30 08:17:30'), (121, 17, 7, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61455b027fbbb6c7e1f7337f&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285474&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:17:44', '2021-11-30 08:17:44'), (122, 17, 8, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61455b027fbbb6c7e1f73382&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285342&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:17:57', '2021-11-30 08:17:57'), (123, 17, 9, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6146b3cf7fbbb6c7e1f73402&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285361&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:18:14', '2021-11-30 08:18:14'), (124, 17, 10, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6146b3cf7fbbb6c7e1f73405&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285381&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:18:35', '2021-11-30 08:18:35'), (125, 17, 11, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=614e6bcea3bf0b3c29e774ce&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285393&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:18:50', '2021-11-30 08:18:50'), (126, 17, 12, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=614e6bcea3bf0b3c29e774d1&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285415&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:19:06', '2021-11-30 08:19:06'), (127, 17, 13, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=614feda5a3bf0b3c29e777d3&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285576&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:19:24', '2021-11-30 08:19:24'), (128, 17, 14, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=614feda6a3bf0b3c29e777d6&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285442&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:19:38', '2021-11-30 08:19:38'); INSERT INTO `tbl_film_episodes` (`id`, `film_id`, `film_episode`, `link`, `created_at`, `updated_at`) VALUES (129, 17, 15, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=614feda7a3bf0b3c29e777dc&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285610&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:19:55', '2021-11-30 08:19:55'), (130, 17, 16, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=614feda7a3bf0b3c29e777dc&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285610&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:22:19', '2021-11-30 08:22:19'), (131, 17, 17, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61568c65039a0b1e6da8c5e5&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285773&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:22:41', '2021-11-30 08:22:41'), (132, 17, 18, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61568c65039a0b1e6da8c5e8&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285785&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:22:55', '2021-11-30 08:22:55'), (133, 17, 19, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6157dce5039a0b1e6da8d9f1&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285799&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:23:11', '2021-11-30 08:23:11'), (134, 17, 20, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6157dce5039a0b1e6da8d9f4&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285669&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:23:29', '2021-11-30 08:23:29'), (135, 17, 21, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61594e9a039a0b1e6da8ff4f&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285696&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:23:51', '2021-11-30 08:23:51'), (136, 17, 22, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61594e9a039a0b1e6da8ff52&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285717&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 08:24:09', '2021-11-30 08:24:09'), (137, 18, 1, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6189119b095baf9b6aa529d7&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638325779&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 19:29:29', '2021-11-30 19:29:29'), (138, 18, 2, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6191bc5e095baf9b6aa52bd0&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638325655&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 19:29:49', '2021-11-30 19:29:49'), (139, 18, 3, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619c417f095baf9b6aa52dd3&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638325675&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 19:30:09', '2021-11-30 19:30:09'), (140, 18, 4, '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61a44c24095baf9b6aa53277&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638325693&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', '2021-11-30 19:30:28', '2021-11-30 19:30:28'); -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `tbl_film_odds` -- CREATE TABLE `tbl_film_odds` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `intro` text COLLATE utf8mb4_unicode_ci NOT NULL, `rate` float NOT NULL, `total_rating` int(11) NOT NULL, `view` bigint(20) UNSIGNED DEFAULT NULL, `photo` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `link` text COLLATE utf8mb4_unicode_ci NOT NULL, `kind_id` varchar(3000) COLLATE utf8mb4_unicode_ci NOT NULL, `country_id` bigint(20) UNSIGNED NOT NULL, `translate_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Đang đổ dữ liệu cho bảng `tbl_film_odds` -- INSERT INTO `tbl_film_odds` (`id`, `name`, `slug`, `intro`, `rate`, `total_rating`, `view`, `photo`, `link`, `kind_id`, `country_id`, `translate_id`, `created_at`, `updated_at`) VALUES (9, 'Clifford: Chú Chó Đỏ Khổng Lồ – Clifford the Big Red Dog', 'clifford-chu-cho-do-khong-lo-clifford-the-big-red-dog', '<article id=\"post-110037\" class=\"item-content\">\r\n<h2>Clifford: Ch&uacute; Ch&oacute; Đỏ Khổng Lồ - Clifford the Big Red Dog, Clifford the Big Red Dog 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">T&igrave;nh y&ecirc;u của một c&ocirc; g&aacute;i trẻ d&agrave;nh cho ch&uacute; ch&oacute; con nhỏ t&ecirc;n Clifford đ&atilde; khiến ch&uacute; ch&oacute; ph&aacute;t triển với k&iacute;ch thước khổng lồ.</span></p>\r\n<div class=\"at-below-post addthis_tool\" data-url=\"https://phimgii.net/clifford-chu-cho-do-khong-lo-clifford-the-big-red-dog/\">&nbsp;</div>\r\n<div class=\"at-below-post-recommended addthis_tool\">&nbsp;</div>\r\n</article>\r\n<div class=\"item-content-toggle\">&nbsp;</div>', 8.4, 1, 7, 'public/uploads/photo/chu_cho_do.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61a20255095baf9b6aa53177&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638255077&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hai-huoc,tinh-cam,phieu-luu,chieu-rap', 2, 2, '2021-11-29 23:43:13', '2021-12-01 18:39:29'), (10, 'Venom 2: Đối Mặt Tử Thù – Venom 2: Let There Be Carnage', 'venom-2-doi-mat-tu-thu-venom-2-let-there-be-carnage', '<h2>Venom 2: Đối Mặt Tử Th&ugrave; - Venom 2: Let There Be Carnage, Venom 2: Let There Be Carnage 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\"><NAME> cố gắng phục hồi sự nghiệp của m&igrave;nh bằng c&aacute;ch phỏng vấn kẻ giết người h&agrave;ng loạt <NAME>, kẻ trở th&agrave;nh chủ nh&acirc;n của Cuộc t&agrave;n s&aacute;t symbiote v&agrave; trốn tho&aacute;t khỏi nh&agrave; t&ugrave; sau một vụ h&agrave;nh quyết thất bạ</span></p>', 8, 1, 6, 'public/uploads/photo/doi_mat_voi_tu_thu.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619cbcbe095baf9b6aa52e45&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638254748&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,kinh-di,vien-tuong,tam-ly,chieu-rap', 2, 1, '2021-11-29 23:46:07', '2021-11-30 20:07:39'), (11, 'Đêm Trước Ở Soho – Last Night in Soho', 'dem-truoc-o-soho-last-night-in-soho', '<h2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Đ&ecirc;m Trước Ở Soho - Last Night in Soho, Last Night in Soho 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Một nh&agrave; thiết kế thời trang đầy tham vọng c&oacute; thể bước v&agrave;o những năm 1960 một c&aacute;ch b&iacute; ẩn, nơi c&ocirc; ấy gặp một ca sĩ wannabe rực rỡ. Nhưng vẻ h&agrave;o nho&aacute;ng kh&ocirc;ng phải l&agrave; tất cả v&agrave; những giấc mơ trong qu&aacute; khứ bắt đầu rạn nứt v&agrave; biến th&agrave;nh một thứ g&igrave; đ&oacute; đen tối hơn.</span></p>', 7.8, 1, NULL, 'public/uploads/photo/dem_truoc_o_soho.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619b5523095baf9b6aa52db1&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638255148&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'kinh-di,vien-tuong,tam-ly,le,chieu-rap', 2, 2, '2021-11-29 23:54:20', '2021-11-29 23:54:20'), (12, 'Ở Nhà Một Mình 6 – Home Sweet Home Alone', 'o-nha-mot-minh-6-home-sweet-home-alone', '<h2>&nbsp; &nbsp; &nbsp;Ở Nh&agrave; Một M&igrave;nh 6 - Home Sweet Home Alone, Home Sweet Home Alone 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Một cặp vợ chồng cố gắng cướp lại một vật gia truyền c&oacute; gi&aacute; trị từ một đứa trẻ rắc rối.</span></p>', 9, 1, NULL, 'public/uploads/photo/o_nha_1_minh_6.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619da5d2095baf9b6aa52f9c&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638255227&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,hai-huoc,le,chieu-rap', 2, 1, '2021-11-29 23:57:34', '2021-11-29 23:57:34'), (13, 'Lệnh Truy Nã Đỏ – Red Notice Red Notice', 'lenh-truy-na-do-red-notice-red-notice', '<h2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Lệnh Truy N&atilde; Đỏ - Red Notice, Red Notice 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Một đặc vụ Interpol theo d&otilde;i t&ecirc;n trộm nghệ thuật bị truy n&atilde; gắt gao nhất thế giới.</span></p>', 9.2, 1, NULL, 'public/uploads/photo/truy_na_do.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619da5d8095baf9b6aa52fc9&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638255601&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,tinh-cam,hinh-su,phieu-luu,tam-ly,chieu-rap', 2, 1, '2021-11-30 00:00:40', '2021-11-30 00:00:40'), (14, 'Hậu Tận Thế – Finch', 'hau-tan-the-finch', '<h2>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Hậu Tận Thế - Finch, Finch 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Tr&ecirc;n một tr&aacute;i đất hậu khải huyền, một người m&aacute;y, được chế tạo để bảo vệ cuộc sống của ch&uacute; ch&oacute; y&ecirc;u qu&yacute; của người tạo ra m&igrave;nh, t&igrave;m hiểu về cuộc sống, t&igrave;nh y&ecirc;u, t&igrave;nh bạn v&agrave; &yacute; nghĩa của việc trở th&agrave;nh con người.</span></p>', 8.4, 1, 2, 'public/uploads/photo/hau_tan_the.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619da5cf095baf9b6aa52f8d&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638255786&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,vien-tuong,hinh-su,chieu-rap', 2, 1, '2021-11-30 00:03:12', '2021-11-30 00:16:50'), (15, 'Điệp Viên 007: Không Phải Lúc Chết – <NAME> 25: No Time to Die', 'diep-vien-007-khong-phai-luc-chet-james-bond-25-no-time-to-die', '<h2>&nbsp; Điệp Vi&ecirc;n 007: Kh&ocirc;ng Phải L&uacute;c Chết - <NAME> 25: No Time to Die, <NAME> 25: No Time to Die 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\"><NAME> đ&atilde; rời qu&acirc;n ngũ. Sự b&igrave;nh y&ecirc;n của anh ấy chỉ tồn tại trong thời gian ngắn khi <NAME>, một người bạn cũ từ CIA, đến nhờ gi&uacute;p đỡ, dẫn Bond v&agrave;o dấu vết của một nh&acirc;n vật phản diện b&iacute; ẩn được trang bị c&ocirc;ng nghệ mới nguy hiểm.</span></p>', 7.6, 1, NULL, 'public/uploads/photo/007.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619da5d6095baf9b6aa52fba&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638256837&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,hinh-su,le', 2, 1, '2021-11-30 00:20:51', '2021-11-30 00:20:51'), (16, 'Nữ Hoàng Lừa Đảo – Queenpins', 'nu-hoang-lua-dao-queenpins', '<h2>&nbsp; &nbsp; &nbsp; &nbsp; Nữ Ho&agrave;ng Lừa Đảo - Queenpins, Queenpins 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Một cặp b&agrave; nội trợ tạo ra một vụ lừa đảo phiếu giảm gi&aacute; trị gi&aacute; 40 triệu đ&ocirc; la.</span></p>', 7.2, 1, NULL, 'public/uploads/photo/nu_hoang_lua_dao.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619da5d8095baf9b6aa52fc6&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638256992&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hai-huoc,hinh-su,le', 2, 1, '2021-11-30 00:23:44', '2021-11-30 00:23:44'), (17, 'Từ Khi Có Anh 3 – After We Fell', 'tu-khi-co-anh-3-after-we-fell', '<article id=\"post-103044\" class=\"item-content\">\r\n<h2>Từ Khi C&oacute; Anh 3 - After We Fell, After We Fell 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Ngay khi Tessa đưa ra quyết định lớn nhất trong cuộc đời m&igrave;nh, mọi thứ đều thay đổi. Những tiết lộ về gia đ&igrave;nh của c&ocirc; ấy, v&agrave; sau đ&oacute; l&agrave; Hardin, n&eacute;m tất cả những g&igrave; họ biết trước đ&acirc;y v&agrave;o sự nghi ngờ v&agrave; khiến tương lai kh&oacute; gi&agrave;nh được của họ với nhau kh&oacute; khẳng định hơn.</span></p>\r\n<div class=\"at-below-post addthis_tool\" data-url=\"https://phimgii.net/tu-khi-co-anh-3-after-we-fell/\">&nbsp;</div>\r\n<div class=\"at-below-post-recommended addthis_tool\">&nbsp;</div>\r\n</article>\r\n<div class=\"item-content-toggle\">&nbsp;</div>', 6.9, 1, 2, 'public/uploads/photo/tu_khi_co_anh.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619da5cc095baf9b6aa52f78&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638257241&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'tinh-cam,tam-ly,le', 2, 1, '2021-11-30 00:27:30', '2021-11-30 06:20:56'), (18, 'Cảnh Báo – Warning', 'canh-bao-warning', '<h2>Cảnh B&aacute;o - Warning, Warning 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">&nbsp;&Yacute; nghĩa của cuộc sống được kh&aacute;m ph&aacute; th&ocirc;ng qua nhiều cuộc sống được kết nối với nhau được đặt ra trong tương lai gần.</span></p>', 7.4, 1, NULL, 'public/uploads/photo/canh_bao.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619da5cd095baf9b6aa52f81&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638257407&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,kinh-di,vien-tuong,chieu-rap', 2, 1, '2021-11-30 00:30:23', '2021-11-30 00:30:23'), (19, 'Hành Tinh Cát – Dune', 'hanh-tinh-cat-dune', '<h2>H&agrave;nh Tinh C&aacute;t - Dune, Dune 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Chuyển thể từ tiểu thuyết khoa học viễn tưởng của <NAME>, kể về con trai của một gia đ&igrave;nh qu&yacute; tộc quyền lực với việc bảo vệ t&agrave;i sản qu&yacute; gi&aacute; nhất v&agrave; nguy&ecirc;n tố quan trọng nhất trong thi&ecirc;n h&agrave;.</span></p>', 8, 1, NULL, 'public/uploads/photo/hanh_tinh_cat.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619da5ce095baf9b6aa52f84&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638257382&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,phieu-luu,tam-ly,le', 2, 1, '2021-11-30 00:32:20', '2021-11-30 00:32:20'), (20, '<NAME> – Robin Robin', 'chim-co-do-robin-robin-robin', '<article id=\"post-110061\" class=\"item-content\">\r\n<h2><NAME> - Robin Robin, Robin Robin 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Trong bộ phim ngắn chuyển động n&agrave;y, một con chim được chuột nu&ocirc;i bắt đầu đặt c&acirc;u hỏi về nơi m&igrave;nh thuộc về v&agrave; bắt đầu một h&agrave;nh tr&igrave;nh kh&aacute;m ph&aacute; bản th&acirc;n đầy t&aacute;o bạo.</span></p>\r\n<div class=\"at-below-post addthis_tool\" data-url=\"https://phimgii.net/chim-co-do-robin-robin-robin/\">&nbsp;</div>\r\n<div class=\"at-below-post-recommended addthis_tool\">&nbsp;</div>\r\n</article>\r\n<div class=\"item-content-toggle\">&nbsp;</div>', 8.4, 1, NULL, 'public/uploads/photo/chim_co_robin.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61a20267095baf9b6aa531ef&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638257643&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hai-huoc,phieu-luu,hoat-hinh,le', 2, 1, '2021-11-30 00:34:55', '2021-11-30 00:34:55'), (21, '<NAME>ng – Spencer', 'giang-sinh-cuoi-cung-spencer', '<h2>Gi&aacute;ng Sinh Cuối C&ugrave;ng - Spencer, Spencer 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Trong kỳ nghỉ Gi&aacute;<NAME> c&ugrave;ng gia đ&igrave;nh ho&agrave;ng gia tại điền trang Sandringham ở Norfolk, Anh, <NAME>, đang vật lộn với c&aacute;c vấn đề sức khỏe t&acirc;m thần, quyết định kết th&uacute;c cuộc h&ocirc;n nh&acirc;n k&eacute;o d&agrave;i một thập kỷ với Th&aacute;i tử Charles.</span></p>', 6, 1, NULL, 'public/uploads/photo/giang_sinh_cuoi_cung.png', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619f17ec095baf9b6aa530b1&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638257692&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'tam-ly,le', 2, 1, '2021-11-30 00:37:26', '2021-11-30 00:37:26'), (22, 'Adele One Night Only', 'adele-one-night-only', '<article id=\"post-110013\" class=\"item-content\">\r\n<h2>Adele One Night Only, Adele One Night Only 2021 Full</h2>\r\n<p>B&ecirc;n cạnh buổi tr&igrave;nh diễn những ca kh&uacute;c nổi tiếng của m&igrave;nh, ca sĩ Adele sẽ t&acirc;m sự về cuộc sống sau ly h&ocirc;n, b&iacute; k&iacute;p giảm c&acirc;n, trong chương tr&igrave;nh phỏng vấn độc quyền c&oacute; t&ecirc;n gọi Adele: One Night Only.</p>\r\n<div class=\"at-below-post addthis_tool\" data-url=\"https://phimgii.net/adele-one-night-only/\">&nbsp;</div>\r\n<div class=\"at-below-post-recommended addthis_tool\">&nbsp;</div>\r\n</article>\r\n<div class=\"item-content-toggle\">&nbsp;</div>', 7.6, 1, NULL, 'public/uploads/photo/adele.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619f17e5095baf9b6aa53081&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638257930&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hai-huoc,le', 2, 1, '2021-11-30 00:39:49', '2021-11-30 00:39:49'), (23, '<NAME> – <NAME> (Spoiled Brats)', 'dam-con-hu-don-pourris-gates-spoiled-brats', '<h2>Đ&aacute;<NAME> - <NAME>&acirc;t&eacute;s (Spoiled Brats), Pourris g&acirc;t&eacute;s (Spoiled Brats) 2021 Full</h2>\r\n<p>Ba anh em bị chiều hư buộc phải bươn chải kiếm sống sau khi &ocirc;ng bố gi&agrave;u c&oacute; muốn tốt cho con n&ecirc;n giả vờ m&igrave;nh đ&atilde; mất tất cả để dạy họ một b&agrave;i học.</p>', 7.8, 1, NULL, 'public/uploads/photo/dam_con_hu_don.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61a20266095baf9b6aa531ec&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638257968&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hai-huoc,tinh-cam,tam-ly,le', 2, 1, '2021-11-30 00:41:56', '2021-11-30 00:41:56'), (24, '<NAME> – Izla (Only You)', 'hon-dao-bi-an-izla-only-you', '<article id=\"post-110046\" class=\"item-content\">\r\n<h2>H&ograve;<NAME>&iacute; Ẩn - Izla (Only You), Izla 2021 Full</h2>\r\n<p>Hai anh em đồng h&agrave;nh c&ugrave;ng một nh&oacute;m vlogger tr&ecirc;n h&agrave;nh tr&igrave;nh t&igrave;m kiếm h&ograve;n đảo th&acirc;̀n thoại. Nhưng khi họ t&igrave;m thấy n&oacute;, những bí m&acirc;̣t hi&ecirc;̉m ác l&acirc;̀n lượt được l&acirc;̣t mở.</p>\r\n<div class=\"at-below-post addthis_tool\" data-url=\"https://phimgii.net/hon-dao-bi-an-izla-only-you/\">&nbsp;</div>\r\n<div class=\"at-below-post-recommended addthis_tool\">&nbsp;</div>\r\n</article>\r\n<div class=\"item-content-toggle\">&nbsp;</div>', 8.9, 1, NULL, 'public/uploads/photo/hon_dao_bi_an.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61a2025a095baf9b6aa53198&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638258235&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,kinh-di,vien-tuong,phieu-luu,le,chieu-rap', 2, 1, '2021-11-30 00:44:00', '2021-11-30 00:44:00'), (25, 'Olaf Presents', 'olaf-presents', '<h2>Olaf Presents, Olaf Presents 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Người tuyết của Frozen, Olaf, kể những c&acirc;u chuyện cổ điển của Disney.</span></p>', 6.7, 1, NULL, 'public/uploads/photo/olaf.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619c4181095baf9b6aa52de2&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638258368&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hoat-hinh,le', 2, 1, '2021-11-30 00:46:10', '2021-11-30 00:46:10'), (26, '<NAME> – Just Short Of Perfect', 'yeu-khong-do-dem-just-short-of-perfect', '<p>Một luật sư đ&atilde; ly h&ocirc;n phải l&ograve;ng một b&aacute;c sĩ tim mạch l&ocirc;i cuốn. Nhưng khi sự kh&aacute;c biệt về quy m&ocirc; của họ dẫn đến x&iacute;ch m&iacute;ch trong gia đ&igrave;nh, liệu c&ocirc; ấy c&oacute; sẵn s&agrave;ng lắng nghe tr&aacute;i tim m&igrave;nh?</p>', 8.7, 1, NULL, 'public/uploads/photo/yeu_khong_do_dem.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619aea1e095baf9b6aa52da3&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638258529&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'tinh-cam,le', 2, 1, '2021-11-30 00:48:49', '2021-11-30 00:48:49'), (27, 'Công Chúa Thế Vai 3: Chuyện Tình Ngôi Sao – The Princess Switch 3: Romancing the Star', 'cong-chua-the-vai-3-chuyen-tinh-ngoi-sao-the-princess-switch-3-romancing-the-star', '<h2>C&ocirc;ng Ch&uacute;a Thế Vai 3: Chuyện T&igrave;nh Ng&ocirc;i Sao - The Princess Switch 3: Romancing the Star, The Princess Switch 3: Romancing the Star 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Khi một di vật v&ocirc; gi&aacute; bị đ&aacute;nh cắp, <NAME>&agrave;ng Margaret v&agrave; C&ocirc;ng ch&uacute;a Stacy tranh thủ sự gi&uacute;p đỡ của Fiona, anh họ của Margaret, c&ugrave;ng với một người đ&agrave;n &ocirc;ng trong qu&aacute; khứ của c&ocirc; ấy để lấy lại n&oacute;, với sự l&atilde;ng mạn v&agrave; dẫn đến một sự thay đổi rất bất ngờ.</span></p>', 8.8, 1, NULL, 'public/uploads/photo/cong_chua_the_vai.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619890b7095baf9b6aa52cff&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638258510&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hai-huoc,tam-ly,le', 2, 1, '2021-11-30 00:51:02', '2021-11-30 00:51:02'), (28, 'Chị Dâu Trở Về – Return Of Sister-In-Law', 'chi-dau-tro-ve-return-of-sister-in-law', '<h2>Chị D&acirc;u Trở Về - Return Of Sister-In-Law, Return Of Sister-In-Law 2021 Full</h2>\r\n<p>Chị D&acirc;u Trở Về &ndash; Return of Sister-in-law c&ocirc; gi&aacute; Thanh Trừng từng l&agrave; một thiếu nữ xinh đẹp tốt bụng, nhưng khi người th&acirc;n của c&ocirc; bị s&aacute;t hại. C&ocirc; đ&atilde; quyết t&acirc;m tập luyện để trở th&agrave;nh một nữ s&aacute;t thủ chuy&ecirc;n nghiệp v&agrave; b&aacute;o th&ugrave;. Sau khi c&ocirc; giết hại nhiều người, c&ocirc; quyết định rửa tay g&aacute;c kiếm v&agrave; bỏ &yacute; định trả th&ugrave;, v&agrave; sống b&igrave;nh y&ecirc;n trong trại An Lạc. Tại đ&acirc;y, c&ocirc; gặp gỡ A Bang v&agrave; kết h&ocirc;n sống hạnh ph&uacute;c với anh ấy, Thanh Trừng cũng phải giả th&agrave;nh một c&ocirc; g&aacute;i ngoan hiền v&agrave; che giấu đi qu&aacute; khứ của m&igrave;nh. Thế nhưng, một h&ocirc;m giang hồ lại trỗi dậy v&agrave; tấn c&ocirc;ng trại An Lạc, v&igrave; thế Thanh Trừng đ&agrave;nh phải quay trở lại con đường cũ để bảo vệ sự an to&agrave;n cho An Lạc.</p>', 8.6, 1, NULL, 'public/uploads/photo/chi_dau_tro_ve.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61960f7d095baf9b6aa52c51&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638258798&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,hai-huoc,hinh-su,tam-ly,le', 1, 3, '2021-11-30 00:53:12', '2021-11-30 00:53:12'), (29, 'Ngôi Nhà Về Đêm – The Night House', 'ngoi-nha-ve-dem-the-night-house', '<h2>Ng&ocirc;i Nh&agrave; Về Đ&ecirc;m - The Night House, The Night House 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Một g&oacute;a phụ bắt đầu kh&aacute;m ph&aacute; ra những b&iacute; mật đ&aacute;ng lo ngại của người chồng mới qua đời của m&igrave;nh.</span></p>', 7.6, 1, NULL, 'public/uploads/photo/ngoi_nha_ve_dem.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619da5e0095baf9b6aa52fe1&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638265505&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'kinh-di,vien-tuong,chieu-rap', 2, 1, '2021-11-30 02:48:43', '2021-11-30 02:48:43'), (30, 'Chuyện Tình Thời Chiến – The Ottoman Lieutenant', 'chuyen-tinh-thoi-chien-the-ottoman-lieutenant', '<h2>Chuyện T&igrave;nh Thời Chiến - The Ottoman Lieutenant, 2017 FULL</h2>\r\n<div class=\"desc\"><span class=\"title-english\" title=\"Phim Chuyện T&igrave;nh Thời Chiến - The Ottoman Lieutenant\">THE OTTOMAN LIEUTENANT</span>&nbsp;:&nbsp;The Ottom<NAME> 2017 l&agrave; một c&acirc;u chuyện t&igrave;nh giữa một y t&aacute; người Mỹ l&yacute; tưởng ( <NAME> ) v&agrave; một sĩ quan Thổ Nhĩ Kỳ ( <NAME> ) trong Thế chiến thứ nhất. Một người phụ nữ xinh đẹp, mạnh mẽ, nản l&ograve;ng v&igrave; bất c&ocirc;ng ở nh&agrave;, đ&atilde; rời Hoa Kỳ sau khi gặp Jude, một b&aacute;c sĩ người Mỹ điều h&agrave;nh một sứ mệnh y tế từ xa trong Đế chế Ottoman &ndash; một thế giới kỳ lạ v&agrave; nguy hiểm, v&agrave; gần bờ biển Về những g&igrave; sắp trở th&agrave;nh Thế chiến thứ nhất. Ở đ&oacute;, c&ocirc; t&igrave;m thấy sự trung th&agrave;nh của m&igrave;nh đối với Jude v&agrave; người s&aacute;ng lập sứ mệnh đ&atilde; thử nghiệm khi c&ocirc; y&ecirc;u người th&ugrave; địch nhận thức của họ, một trung &uacute;y trong Qu&acirc;n đội Ho&agrave;ng gia Ottoman. B&acirc;y giờ, với c&aacute;c lực lượng qu&acirc;n x&acirc;m lược trước cửa nh&agrave; của họ, v&agrave; thế giới sắp rơi v&agrave;o &hellip;</div>', 7.8, 1, NULL, 'public/uploads/photo/chuyen_tinh_thoi_chien.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61841443338c714d7d1ea5c9&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638281766&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,tinh-cam,chien-tranh', 8, 1, '2021-11-30 07:16:13', '2021-11-30 07:16:13'), (31, 'Hành Trình Tìm Công Lý – Thimmarusu: Assignment Vali', 'hanh-trinh-tim-cong-ly-thimmarusu-assignment-vali', '<h2>H&agrave;nh Tr&igrave;nh T&igrave;m C&ocirc;ng L&yacute; - Thimmarusu: Assignment Vali, Thimmarusu: Assignment Vali 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Một luật sư chiến đấu với tham nhũng cả trong v&agrave; ngo&agrave;i ph&ograve;ng xử &aacute;n.</span></p>', 6.5, 1, NULL, 'public/uploads/photo/hanh_trinh_tim_lai_cong_ly.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61397370da6e9c4e338e61a5&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638282727&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hinh-su,tam-ly,le', 4, 1, '2021-11-30 07:34:23', '2021-11-30 07:34:23'), (32, 'Cuộc chiến Kargil – Shershaah', 'cuoc-chien-kargil-shershaah', '<h2>Cuộc chiến Kargil - Shershaah, Shershaah 2021 HD</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Đ&acirc;y l&agrave; c&acirc;u chuyện về một người l&iacute;nh Ấn Độ dũng cảm từng được giải thưởng PVC &ndash; Đại &uacute;y. <NAME>, người đ&atilde; nổi tiếng v&agrave; trở th&agrave;nh một c&aacute;i t&ecirc;n quen thuộc trong Chiến tranh Kargil năm 1999. Tinh thần bất khuất v&agrave; l&ograve;ng dũng cảm ki&ecirc;n cường của anh ta trong việc đ&aacute;nh đuổi h&agrave;ng loạt binh l&iacute;nh Pakistan ra khỏi l&atilde;nh thổ Ấn Độ đ&atilde; g&oacute;p phần gi&uacute;p Ấn Độ cuối c&ugrave;ng gi&agrave;nh chiến thắng trong Chiến tranh Kargil năm 1999.</span></p>', 7, 1, NULL, 'public/uploads/photo/cuoc_chien_cagil.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=612755d95145300e1fb89707&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638282836&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'chien-tranh,tam-ly,le', 4, 1, '2021-11-30 07:36:13', '2021-11-30 07:36:13'), (33, 'Peekay Ngây Thơ – PK', 'peekay-ngay-tho-pk', '<h2>Peekay Ng&acirc;y Thơ - PK, 2014 FULL</h2>\r\n<div class=\"desc\"><span class=\"title-english\" title=\"Phim Peekay Ng&acirc;y Thơ - Pk\">PK</span>&nbsp;:&nbsp;PK, bộ phim đ&aacute;nh dấu sự t&aacute;i hợp của đạo diễn Rajkumar Hirani v&agrave; nam diễn vi&ecirc;n <NAME> đ&atilde; lập n&ecirc;n kỷ lục mới khi đạt doanh thu to&agrave;n cầu hơn 77 triệu USD. Vượt doanh thu 63 triệu USD của bộ phim nổi tiếng trước đ&oacute; của họ 3 Idiots (Ba Ch&agrave;ng Ngốc), vốn l&agrave; phim c&oacute; doanh thu cao nhất mọi thời đại ở Ấn Độ v&agrave;o năm 2009.</div>', 6.9, 1, NULL, 'public/uploads/photo/packey_ngay_tho.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=617fae72338c714d7d1b28ea&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638283085&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hai-huoc,tinh-cam,le', 4, 1, '2021-11-30 07:37:57', '2021-11-30 07:37:57'), (34, 'Người <NAME> – Haseen Dillruba', 'nguoi-tinh-me-dam-haseen-dillruba', '<h2>Người T&igrave;nh M&ecirc; Đắm - Haseen Dillruba, Haseen Dillruba 2021 HD</h2>\r\n<div class=\"title-info-synopsis\" data-uia=\"title-info-synopsis\">Đang bị điều tra vì l&agrave; nghi phạm giết chồng, một người vợ tiết lộ những chi tiết về cuộc h&ocirc;n nh&acirc;n đầy ch&ocirc;ng gai của họ &ndash; nhưng dường như chỉ khiến sự thật nh&ograve;a đi th&ecirc;m.</div>', 7.6, 1, NULL, 'public/uploads/photo/người tình mê đắm.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=612761b0f3e6a90eb2d8f18a&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638283240&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'tam-ly,le', 4, 1, '2021-11-30 07:40:27', '2021-11-30 07:40:27'), (35, 'Cảnh Sát Siêu Hạng – Radhe', 'canh-sat-sieu-hang-radhe', '<h2>Cảnh S&aacute;t Si&ecirc;u Hạng - Radhe, Radhe 2021 HD</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Sau khi hạ gục t&ecirc;n tr&ugrave;m x&atilde; hội đen đ&aacute;ng sợ <NAME>, ACP <NAME> hay c&ograve;n gọi l&agrave; Radhe tiến h&agrave;nh một cuộc truy l&ugrave;ng để t&igrave;m ra người đ&agrave;n &ocirc;ng gi&agrave;u c&oacute; nhất của thị trấn đang b&iacute; mật điều h&agrave;nh một tổ chức tội phạm.</span></p>', 7.3, 1, NULL, 'public/uploads/photo/canh_sat_sieu_hang.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61276951f3e6a90eb2d90039&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638283196&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,hinh-su,le', 4, 1, '2021-11-30 07:42:18', '2021-11-30 07:42:18'), (36, 'Lòng Tham – Jallikattu', 'long-tham-jallikattu', '<h2>L&ograve;ng Tham - Jallikattu, Jallikattu 2019 SD</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Bức ch&acirc;n dung về một ng&ocirc;i l&agrave;ng hẻo l&aacute;nh, nơi một con tr&acirc;u chạy trốn v&agrave; g&acirc;y ra một trận bạo lực đi&ecirc;n cuồng.</span></p>', 6.9, 1, NULL, 'public/uploads/photo/long_tham.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=61292327adec9127f4ad3a65&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638283488&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,hinh-su,le', 4, 1, '2021-11-30 07:44:41', '2021-11-30 07:44:41'), (37, 'Cọp Trắng – The White Tiger', 'cop-trang-the-white-tiger', '<h2>Cọp Trắng - The White Tiger, The White Tiger 2021 HD</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span lang=\"vi\">H&agrave;nh tr&igrave;nh sử thi của một người l&aacute;i xe ngh&egrave;o người Ấn Độ, người phải sử dụng sự th&ocirc;ng minh v&agrave; xảo quyệt của m&igrave;nh để tho&aacute;t khỏi cảnh n&ocirc; lệ cho những người chủ gi&agrave;u c&oacute; của m&igrave;nh v&agrave; vươn l&ecirc;n đỉnh cao.</span></p>', 7, 1, NULL, 'public/uploads/photo/cop_trang.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6128e004adec9127f4ac45f8&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638283532&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hinh-su,tam-ly,le', 4, 1, '2021-11-30 07:47:46', '2021-11-30 07:47:46'), (38, 'Đường Trở Về – The Way Back', 'duong-tro-ve-the-way-back', '<h2>Đường Trở Về - The Way Back, The Way Back 2010 HD</h2>\r\n<p>Bỏ trốn gulag Siberia đi bốn ng&agrave;n dặm bằng ch&acirc;n tự do ở Ấn Độ.</p>', 7.8, 1, NULL, 'public/uploads/photo/way_back_home.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=612df1a65b5aeb2e67fa91c2&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638283845&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,phieu-luu,le', 8, 1, '2021-11-30 07:50:37', '2021-11-30 07:50:37'), (39, 'Tin Chấn Động – Dhamaka', 'tin-chan-dong-dhamaka', '<h2>Tin Chấn Động - Dhamaka, Dhamaka 2021 Full</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Được giao nhiệm vụ từ TV sang đ&agrave;i ph&aacute;t thanh, một mỏ neo thất vọng nh&igrave;n thấy cả nguy hiểm v&agrave; cơ hội khi anh ta nhận được c&aacute;c cuộc gọi đe dọa tr&ecirc;n s&oacute;ng.</span></p>', 7.8, 1, NULL, 'public/uploads/photo/dmmm.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=619890ab095baf9b6aa52cb1&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638284011&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hanh-dong,kinh-di,tam-ly,le', 4, 1, '2021-11-30 07:53:21', '2021-11-30 07:53:21'), (40, 'Ariya Jutanugarn: Nữ Hoàng Sân Golf – Tee Shot: Ariya Jutanugarn', 'ariya-jutanugarn-nu-hoang-san-golf-tee-shot-ariya-jutanugarn', '<h2>Ariya Jutanugarn: Nữ Ho&agrave;ng S&acirc;n Golf - Tee Shot: Ariya Jutanugarn, 2019 FULL</h2>\r\n<div class=\"desc\"><span class=\"title-english\" title=\"Phim Ariya Jutanugarn: Nữ Ho&agrave;ng S&acirc;n Golf - Tee Shot: Ariya Jutanugarn\">TEE SHOT: ARIYA JUTANUGARN</span>&nbsp;:&nbsp;Bộ phim tiểu sử ph&aacute;c họa h&agrave;nh tr&igrave;nh đến với giải LPGA của tay golf chuy&ecirc;n nghiệp Ariya Jutanugarn: từ thần đồng nhỏ tuổi cho đến vị tr&iacute; số một thế giới.</div>', 7.6, 1, NULL, 'public/uploads/photo/nu.jpg', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=618c789e338c714d7d2477ac&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638284724&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'tam-ly,le', 7, 1, '2021-11-30 08:07:38', '2021-11-30 08:07:38'), (41, 'Yêu Anh, Chàng Kiêu Kỳ – Love You My Arrogance', 'yeu-anh-chang-kieu-ky-love-you-my-arrogance', '<h2>Y&ecirc;u Anh, Ch&agrave;ng Ki&ecirc;u Kỳ - Love You My Arrogance, Love You My Arrogance 2021 HD</h2>\r\n<p>Bộ phim kể về Sun, một anh ch&agrave;ng Youtuber đẹp trai nổi tiếng, c&oacute; khả năng nghe được những suy nghĩ v&agrave; đọc được t&acirc;m tr&iacute; của người kh&aacute;c. Anh ấy cảm thấy kh&ocirc;ng h&agrave;i l&ograve;ng với khả năng n&agrave;y v&igrave; anh ta nghĩ rằng thật căng thẳng v&agrave; mệt mỏi khi nghe được suy nghĩ của mọi người.</p>', 6.9, 1, NULL, 'public/uploads/photo/yeu_anh_chang_kieu_ki.png', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=6127af0ec3b9b015cc2eb799&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638284833&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hai-huoc,tinh-cam,le', 7, 1, '2021-11-30 08:09:28', '2021-11-30 08:09:28'), (42, 'Lừa Đểu Gặp Lừa Đảo – The Con-Heartist', 'lua-deu-gap-lua-dao-the-con-heartist', '<h2>Lừa Đểu Gặp Lừa Đảo - The Con-Heartist, The Con-Heartist 2021 HD</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span lang=\"vi\">Ina, người m&agrave; bạn trai cũ bỏ trốn, khiến c&ocirc; nợ nần chồng chất, cố gắng bắt được một t&ecirc;n lừa đảo xảo quyệt đang cố lừa gạt c&ocirc;. Nhưng thay v&igrave; chuyển anh ta cho cảnh s&aacute;t, c&ocirc; thu&ecirc; kẻ lừa đảo n&agrave;y để lừa bạn trai cũ của m&igrave;nh để trả th&ugrave;.</span></p>', 7.8, 1, NULL, 'public/uploads/photo/lua_deu_gap_lua_dao.png', '<iframe class=\"embed-responsive-item\" src=\"https://play.gotphim.com/public/index.html?id=612755685145300e1fb895a2&amp;subs=&amp;lang=vietnam&amp;ads=https://toolpg.com/demo.xml&amp;v=1638285106&amp;logo=https://phimgii.net/player/dk.jpg&amp;link=https%3A%2F%2Fdk802.com%2F%3FinviteCode%3D34195598%26regAgentJumpFlag%3D0\" allowfullscreen=\"\"></iframe>', 'hai-huoc,tinh-cam,chieu-rap', 7, 1, '2021-11-30 08:11:35', '2021-11-30 08:11:35'); -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `tbl_film_series` -- CREATE TABLE `tbl_film_series` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `intro` text COLLATE utf8mb4_unicode_ci NOT NULL, `showtime` text COLLATE utf8mb4_unicode_ci NOT NULL, `rate` float NOT NULL, `total_rating` int(11) DEFAULT NULL, `view` bigint(20) UNSIGNED DEFAULT NULL, `update_episode` int(11) DEFAULT NULL, `end_episode` int(11) DEFAULT NULL, `photo` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `bg_photo` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `kind_id` varchar(3000) COLLATE utf8mb4_unicode_ci NOT NULL, `country_id` bigint(20) UNSIGNED NOT NULL, `translate_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Đang đổ dữ liệu cho bảng `tbl_film_series` -- INSERT INTO `tbl_film_series` (`id`, `name`, `slug`, `intro`, `showtime`, `rate`, `total_rating`, `view`, `update_episode`, `end_episode`, `photo`, `bg_photo`, `kind_id`, `country_id`, `translate_id`, `created_at`, `updated_at`) VALUES (8, 'Sáng như trăng trong mây', 'sang-nhu-trang-trong-may', '<h2>S&aacute;ng Như Trăng Trong M&acirc;y (Ho&agrave;n Khố Thế Tử Phi) - Bright As the Moon, Bright As the Moon 2021 Full (40/40) HD</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Người ta đồn rằng Yun Qian Yue, con g&aacute;i lớn của th&aacute;i tử Yun trang vi&ecirc;n; l&agrave; ăn chơi, ki&ecirc;u ngạo v&agrave; thất học. Tr&ecirc;n thực tế, tin đồn do ch&iacute;nh Qian Yue cố &yacute; lan truyền v&igrave; c&ocirc; kh&ocirc;ng muốn kết h&ocirc;n với Ho&agrave;ng gia. Qian Yue cũng đ&atilde; cải trang th&agrave;nh cấp dưới của Ye <NAME> trong gần một thập kỷ. C&ocirc; y&ecirc;u Rong Jing từ trang vi&ecirc;n <NAME> nhưng bị quyền lực của Ho&agrave;ng gia &aacute;p bức. Rong Jing, một người đ&agrave;n &ocirc;ng sở hữu ngoại h&igrave;nh đẹp một c&aacute;ch lạ thường, mắc một căn bệnh khiến anh yếu ớt v&agrave; ốm yếu trong nhiều năm do hậu quả của thuốc k&iacute;ch dục. Để t&igrave;m c&aacute;ch chữa trị cho anh ta, Qian Yue đ&atilde; khởi động chuyến bay Phoenix m&agrave; kh&ocirc;ng quan t&acirc;m đến hậu quả. Tuy nhi&ecirc;n c&ugrave;ng l&uacute;c đ&oacute;, Ho&agrave;ng đế Ye Qing Ran hiện tại lại y&ecirc;u Qian Yue s&acirc;u sắc v&agrave; để c&oacute; được t&igrave;nh y&ecirc;u của c&ocirc;, anh ta đ&atilde; đặt một loại thuốc độc tr&aacute;i tim kh&oacute;a sinh tử v&agrave;o cơ thể c&ocirc;, do đ&oacute; cấm c&ocirc; rời khỏi b&ecirc;n m&igrave;nh. Mặc d&ugrave; bị mất tr&iacute; nhớ do chất độc, Yun Qian Yue kh&ocirc;ng qu&ecirc;n được tr&aacute;i tim thật sự của m&igrave;nh.</span></p>', 'Đã cập nhật hết', 7.9, 1, 17, 40, 40, 'public/uploads/photo/sang-nhu-trang-trong-may_1.jpg', 'public/uploads/bg_img/banner_sang-nhu-trang-trong-may_1.jpg', 'co-trang', 1, 1, '2021-11-30 03:01:58', '2021-11-30 19:36:21'), (9, 'Luyến Mộ Vietsub, The King\'s Affection (2021)', 'luyen-mo-vietsub-the-kings-affection-2021', '<h2>Luyến Mộ VietSub, The King\'s Affection (2021)</h2>\r\n<p>Bộ phim kể về một vị phi tần sinh ra cặp song sinh trai g&aacute;i được coi l&agrave; điềm gở, nh&agrave; vua hạ lệnh giết con g&aacute;i (Park Eun Bin) . Để cứu đứa con g&aacute;i, người mẹ b&iacute; mật gửi đứa b&eacute; ra khỏi cung điện. V&agrave;i năm sau, người con trai sinh đ&ocirc;i Lee Hwi qua đời v&igrave; bạo bệnh. Che giấu c&aacute;i chết của đứa con trai song sinh, người mẹ mang con g&aacute;i trở lại v&agrave; nu&ocirc;i nấng c&ocirc; b&eacute; thế th&acirc;n cho Ho&agrave;ng tử <NAME>. Cuối c&ugrave;ng c&ocirc; trở th&agrave;nh một th&aacute;i tử. Lo sợ rằng danh t&iacute;nh thực sự của m&igrave;nh sẽ bị lộ, <NAME> kh&ocirc;ng để cho bất cứ ai gần gũi với m&igrave;nh v&agrave; che giấu cảm x&uacute;c của bản th&acirc;n với người kh&aacute;c, lu&ocirc;n tỏ ra lạnh l&ugrave;ng v&agrave; cứng rắn.</p>\r\n<p>Mặc d&ugrave; phải che giấu bản th&acirc;n nhưng c&ocirc; ấy vẫn kh&ocirc;ng tho&aacute;t khỏi được tiếng gọi của t&igrave;nh y&ecirc;u khi tiếp x&uacute;c với Jung Ji Woon (Rowoon) , gi&aacute;o vi&ecirc;n của c&ocirc; ấy, người xuất th&acirc;n từ một gia đ&igrave;nh qu&yacute; tộc. Jung Ji Woon l&agrave; gi&aacute;o vi&ecirc;n của Th&aacute;i tử sikangwon, một văn ph&ograve;ng ch&iacute;nh phủ với mục đ&iacute;ch duy nhất l&agrave; gi&aacute;o dục c&aacute;c th&aacute;i tử. Anh ấy được m&ocirc; tả l&agrave; một người đ&agrave;n &ocirc;ng đẹp trai, dũng cảm, ki&ecirc;n tr&igrave; v&agrave; ngoan cường, nhưng cũng c&oacute; xu hướng đ&oacute;n nhận cuộc sống v&agrave; sống kh&ocirc;ng vướng bận những lo lắng của thế gian như một người lạc quan, tận hưởng cuộc sống. L&agrave; con trai của một quan chức ch&iacute;nh phủ ở Saheonbu (một văn ph&ograve;ng ch&iacute;nh phủ điều tra), tương lai của anh ấy dường như đ&atilde; được định sẵn cho anh ấy. Tuy nhi&ecirc;n, c&oacute; một l&yacute; do khiến anh ấy chọn con đường ri&ecirc;ng của m&igrave;nh v&agrave; bỏ lại con đường dễ d&agrave;ng ph&iacute;a sau.</p>', 'Lịch chiếu: VietSub 21h40 Thứ 2,3 hàng tuần', 8.4, 1, 15, 15, NULL, 'public/uploads/photo/luyen-mo_1.jpg', 'public/uploads/bg_img/banner_luyen-mo_1.jpg', 'tinh-cam,co-trang,bo', 5, 1, '2021-11-30 05:56:11', '2021-11-30 06:31:55'), (10, 'Phía Sau Khung Cửa Sổ – Show Window: The Queen’s House', 'phia-sau-khung-cua-so-show-window-the-queens-house', '<h2>Ph&iacute;a Sau Khung Cửa Sổ - Show Window: The Queen\'s House, Show Window: The Queen\'s House 2021 HD</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Nh&igrave;n từ b&ecirc;n ngo&agrave;i, cuộc sống của Han Sun Joo lu&ocirc;n tỏ ra kh&ocirc;ng c&oacute; g&igrave; l&agrave; ho&agrave;n hảo. Sinh ra trong một gia đ&igrave;nh gi&agrave;u c&oacute;, Sun Joo v&agrave; em trai của c&ocirc;, Han Jung Won, được lớn l&ecirc;n m&agrave; kh&ocirc;ng c&oacute; sự chăm s&oacute;c của thế giới. Giờ đ&acirc;y khi trưởng th&agrave;nh, Jung Won đ&atilde; trưởng th&agrave;nh một c&aacute;ch phi thường với tr&aacute;i tim ấm &aacute;p, cho ph&eacute;p anh ấy duy tr&igrave; một tinh thần lạc quan vững chắc trong khi Sun Joo đ&atilde; trở th&agrave;nh một người phụ nữ kết h&ocirc;n l&yacute; tưởng, với một ng&ocirc;i nh&agrave; lộng lẫy, một người chồng tận tụy v&agrave; một đứa con xinh đẹp. Thật kh&ocirc;ng may, cuộc sống ho&agrave;n hảo của Sun Joo đang tr&ecirc;n bờ vực sụp đổ</span></p>', 'Lịch chiếu: VietSub 21h thứ 2,3 hàng tuần', 7.9, 1, NULL, 1, NULL, 'public/uploads/photo/phia-sau-khung-cua-so_1.jpg', 'public/uploads/bg_img/banner_phia-sau-khung-cua-so_1.jpg', 'tinh-cam,tam-ly,bo', 5, 1, '2021-11-30 06:27:44', '2021-11-30 06:29:00'), (11, 'Thần Tượng: Cuộc Đảo Chính Vietsub, Idol: The Coup (2021)', 'than-tuong-cuoc-dao-chinh-vietsub-idol-the-coup-2021', '<h2>Thần Tượng: Cuộc Đảo Ch&iacute;nh Vietsub, Idol: The Coup (2021)</h2>\r\n<p>Phim khắc họa c&acirc;u chuyện cuối c&ugrave;ng của những &ldquo;thần tượng cam chịu&rdquo;, những người cần một &ldquo;th&agrave;nh c&ocirc;ng&rdquo; duy nhất để kh&ocirc;ng &ldquo;tan r&atilde;&rdquo;. C&acirc;u chuyện về những người trẻ tuổi tự tin bu&ocirc;ng bỏ ước mơ khi trưởng th&agrave;nh vượt qua thất bại v&agrave; can đảm bước tới những mục ti&ecirc;u mới. <NAME> l&agrave; th&agrave;nh vi&ecirc;n của <NAME> trong 6 năm qua.</p>', 'Lịch chiếu: VietSub 21h thứ 2,3 hàng tuần', 7.4, 1, NULL, 7, NULL, 'public/uploads/photo/than-tuong-cuoc-dao-chinh_1.jpg', 'public/uploads/bg_img/banner_than-tuong-cuoc-dao-chinh_1.jpg', 'tam-ly,bo', 5, 1, '2021-11-30 06:33:52', '2021-11-30 06:37:22'), (12, 'Nắm Giữ Sinh Mệnh – Happiness', 'nam-giu-sinh-menh-happiness', '<h2>Nắm Giữ Sinh Mệnh - Happiness, Happiness 2021 HD</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Một loại vi r&uacute;t chết người mới lan truyền khắp th&agrave;nh phố, v&agrave; căn hộ nơi c&oacute; c&aacute;c tầng lớp x&atilde; hội kh&aacute;c nhau của người d&acirc;n bị phong tỏa. Với nỗi sợ h&atilde;i của vi r&uacute;t v&agrave; xung đột của c&aacute;c tầng lớp kh&aacute;c nhau, c&aacute;c cư d&acirc;n phải sống v&agrave; tồn tại trong m&ocirc;i trường sống mới. Yoon Sae Bom rất nhanh trong quyết định v&agrave; ph&aacute;n đo&aacute;n. C&ocirc; ấy đ&atilde; kh&ocirc;ng lớn l&ecirc;n trong một m&ocirc;i trường tốt. C&ocirc; ấy muốn sống thoải m&aacute;i trong thế giới phức tạp, nhưng c&ocirc; ấy ch&iacute;nh trực v&agrave; kh&ocirc;ng thể chịu đựng bất c&ocirc;ng. <NAME> l&agrave; một th&aacute;m tử cảnh s&aacute;t, người chủ yếu phụ tr&aacute;ch c&aacute;c tội phạm bạo lực. Anh từng l&agrave; một cầu thủ b&oacute;ng ch&agrave;y nhưng phải nghỉ thi đấu v&igrave; chấn thương đầu gối. Anh đấu tranh để bảo vệ mọi người khỏi nguy hiểm trong căn hộ. <NAME> l&agrave; một nh&acirc;n vi&ecirc;n th&ocirc;ng tin trong thời gian phục vụ trong qu&acirc;n đội, v&agrave; sau khi xuất ngũ, anh ấy l&agrave;m gi&aacute;m đốc điều h&agrave;nh tại một c&ocirc;ng ty dược phẩm. Anh ấy l&agrave; người ho&agrave;n hảo cho vị tr&iacute; đối ph&oacute; với c&aacute;c bệnh truyền nhiễm.</span></p>', 'Lịch chiếu: VietSub 11h trưa thứ 7, chủ nhật hàng tuần', 8.9, 1, 2, 8, NULL, 'public/uploads/photo/nam_giu_sinh_menh.jpg', NULL, 'hanh-dong,kinh-di,tinh-cam,tam-ly,bo', 5, 1, '2021-11-30 06:43:39', '2021-12-03 06:36:35'), (13, 'Th<NAME>ữ Và Quý Ông – A Gentleman and a Young Lady', 'thieu-nu-va-quy-ong-a-gentleman-and-a-young-lady', '<h2>Thiếu Nữ V&agrave; Qu&yacute; &Ocirc;ng - A Gentleman and a Young Lady, A Gentleman and a Young Lady 2021 HD</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Lee Yo<NAME> l&agrave; một g&oacute;a phụ c&oacute; ba người con. Anh ấy vẫn chưa vượt qua được c&aacute;i chết của vợ m&igrave;nh. Anh quyết định thu&ecirc; Park Dan Dan l&agrave;m gia sư trực tiếp cho con m&igrave;nh v&agrave; anh bị c&ocirc; ấy thu h&uacute;t. Trong khi đ&oacute;, Park Dan Dan c&oacute; một t&iacute;nh c&aacute;ch tươi s&aacute;ng v&agrave; t&iacute;ch cực bất chấp ho&agrave;n cảnh khắc nghiệt của c&ocirc;.</span></p>', 'Lịch chiếu: VietSub 20h Chủ nhật, Thứ 2 hàng tuần', 8.4, 1, NULL, 20, NULL, 'public/uploads/photo/thieu_nu_va_quy_ong.jpg', 'public/uploads/bg_img/banner_young-lady-and-gentleman_1.jpg', 'hai-huoc,tinh-cam,bo', 5, 1, '2021-11-30 06:51:33', '2021-11-30 07:01:17'), (14, 'Ngự Sử Tài Ba Và Quý Cô Thông Thái (Chuyện Về Ám Hành Ngự Sử Và Jo Yi)', 'ngu-su-tai-ba-va-quy-co-thong-thai-chuyen-ve-am-hanh-ngu-su-va-jo-yi', '<h2>Ngự Sử T&agrave;i Ba V&agrave; Qu&yacute; C&ocirc; Th&ocirc;ng Th&aacute;i (Chuyện Về &Aacute;m H&agrave;nh Ngự Sử V&agrave; Jo Yi) - Secret Royal Inspector and Joy, Secret Royal Inspector &amp; Joy 2021 HD</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Một thanh tra b&iacute; mật của ho&agrave;ng gia l&agrave;m việc như một quan chức ch&igrave;m thanh tra c&aacute;c tỉnh địa phương để vạch trần tham nhũng. Anh hợp t&aacute;c với một phụ nữ đang t&igrave;m kiếm hạnh ph&uacute;c bằng c&aacute;ch ly h&ocirc;n với người chồng hiện tại của c&ocirc; ấy. Sau đ&oacute;, bộ đ&ocirc;i thực hiện một kế hoạch lớn để kh&aacute;m ph&aacute; sự thật v&agrave; t&igrave;m ra những kẻ đồi bại.</span></p>', 'Lịch chiếu: VietSub 19h thứ 4,5,6 hàng tuần', 9.2, 1, NULL, 7, NULL, 'public/uploads/photo/ngu_su_tai_ba.jpg', NULL, 'hai-huoc,tinh-cam,co-trang,bo', 5, 1, '2021-11-30 07:04:38', '2021-11-30 07:07:14'), (15, 'Những Chủ Nhân Vũ Trụ: Khải Huyền (Phần 2)', 'nhung-chu-nhan-vu-tru-khai-huyen-phan-2', '<h2>Những Chủ Nh&acirc;n Vũ Trụ: Khải Huyền (Phần 2) - Masters Of The Universe: Revelation (Season 2), Masters Of The Universe: Revelation (Season 2) 2021 Full (5/5) Season 2</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\">Cuộc chiến tranh gi&agrave;nh Eternia lại bắt đầu trong trận chiến cuối c&ugrave;ng giữa He-Man v&agrave; Skeletor. Một loạt phim hoạt h&igrave;nh mới của nh&agrave; văn ki&ecirc;m đạo diễn <NAME>.</span></p>', 'Đã cập nhật full (5/5) tập session 2', 9.8, 1, NULL, 5, NULL, 'public/uploads/photo/hh_linh_chi.jpg', NULL, 'hoat-hinh,chieu-rap,bo', 2, 1, '2021-11-30 07:10:21', '2021-11-30 07:12:32'), (16, 'Chiến Bại (Phần 1) – The Defeated (Shadowplay) (Season 1)', 'chien-bai-phan-1-the-defeated-shadowplay-season-1', '<h2>Chiến Bại (Phần 1) - The Defeated (Shadowplay) (Season 1), The Defeated (Shadowplay) (Season 1) 2021 Ho&agrave;n tất (8/8) Season 1</h2>\r\n<p id=\"tw-target-text\" class=\"tw-data-text tw-text-large XcVN5d tw-ta\" dir=\"ltr\" data-placeholder=\"Bản dịch\"><span class=\"Y2IQFc\" lang=\"vi\"><NAME> l&agrave; một cảnh s&aacute;t người Mỹ đến Berlin v&agrave;o m&ugrave;a h&egrave; năm 1946 để gi&uacute;p th&agrave;nh lập lực lượng cảnh s&aacute;t trong hậu quả hỗn loạn của chiến tranh.</span></p>', 'Đã cập nhật full Chiến Bại (Phần 1) – The Defeated (Shadowplay) (Season 1)', 7.6, 1, 1, 8, NULL, 'public/uploads/photo/chien_bai_phan_1.jpg', NULL, 'tam-ly,bo', 6, 1, '2021-11-30 07:57:35', '2021-12-01 18:34:21'), (17, '<NAME>hà Đối Diện – Sweet Sweet', 'anh-trai-nha-doi-dien-sweet-sweet', '<h2>Anh Trai Nh&agrave; Đối Diện VietSub, Sweet Sweet (2021)</h2>\r\n<p>C&ocirc; g&aacute;i đ&aacute;ng y&ecirc;u vừa tốt nghiệp ng&agrave;nh thiết kế Điền Điềm trong một lần t&igrave;nh cờ đ&atilde; gặp ch&agrave;ng trai mắc chứng mất ng&ocirc;n ngữ T&ocirc; Mộ. Dưới sự tr&ugrave;ng hợp của vận mệnh, chỉ c&oacute; kem do ch&iacute;nh tay <NAME> l&agrave;m mới khiến t&acirc;m trạng T&ocirc; Mộ vui vẻ, n&oacute;i năng tr&ocirc;i chảy. Trong một lần thử nghiệm, m&aacute;y bay kh&ocirc;ng người l&aacute;i của T&ocirc; Mộ bay v&agrave;o nh&agrave; <NAME>, tưởng rằng nh&agrave; kh&ocirc;ng người n&ecirc;n anh tr&egrave;o v&agrave;o t&igrave;m, bị <NAME> đang tắm bắt quả tang, hai người thiếu ch&uacute;t nữa đ&atilde; \"Lo&atilde; lồ gặp nhau\".</p>', 'Đã cập nhật full <NAME> Diện – Sweet Sweet', 8.4, 1, 26, 22, NULL, 'public/uploads/photo/anh-trai-nha-doi-dien_1.jpg', 'public/uploads/bg_img/banner_anh-trai-nha-doi-dien_1.jpg', 'hai-huoc,tinh-cam,tam-ly,bo', 1, 1, '2021-11-30 08:15:27', '2021-12-11 01:30:11'), (18, 'Anh Là Hiệp Sĩ Bóng Đêm Của Em – Let Me Be Your Knight', 'anh-la-hiep-si-bong-dem-cua-em-let-me-be-your-knight', '<h2>Anh L&agrave; Hiệp Sĩ B&oacute;ng Đ&ecirc;m Của Em - Let Me Be Your Knight, Let Me Be Your Knight 2021 HD</h2>\r\n<p><strong>Anh L&agrave; Hiệp Sĩ B&oacute;ng Đ&ecirc;m Của Em</strong>&nbsp;(Let Me Be Your Knight 2021) l&agrave; bộ phim về thần tượng của H&agrave;n Quốc, phim kể về c&acirc;u chuyện l&atilde;ng mạn giữa nam thần tượng nổi tiếng thế giới mắc bệnh mộng du v&agrave; nữ b&aacute;c sĩ b&iacute; mật chữa trị cho anh.</p>', 'Lịch chiếu: VietSub 21h10 chủ nhật hàng tuần', 9.4, 1, NULL, 4, NULL, 'public/uploads/photo/anh_la_hsbd_cua_em.jpg', NULL, 'hai-huoc,tinh-cam,bo', 5, 1, '2021-11-30 19:28:24', '2021-11-30 19:30:28'); -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `tbl_kinds` -- CREATE TABLE `tbl_kinds` ( `id` bigint(20) UNSIGNED NOT NULL, `kind_film` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `slug` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `count_film` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Đang đổ dữ liệu cho bảng `tbl_kinds` -- INSERT INTO `tbl_kinds` (`id`, `kind_film`, `slug`, `count_film`, `created_at`, `updated_at`) VALUES (1, 'hành động', 'hanh-dong', 17, NULL, '2021-11-30 07:53:21'), (2, 'hài hước', 'hai-huoc', 18, NULL, '2021-11-30 19:28:24'), (3, 'kinh dị', 'kinh-di', 9, NULL, '2021-11-30 07:53:21'), (4, 'tình cảm', 'tinh-cam', 21, NULL, '2021-11-30 19:28:24'), (5, 'viễn tưởng', 'vien-tuong', 6, NULL, '2021-11-30 02:48:43'), (6, 'hình sự', 'hinh-su', 9, NULL, '2021-11-30 07:47:46'), (7, 'chiến tranh', 'chien-tranh', 2, NULL, '2021-11-30 07:36:13'), (8, 'cổ trang', 'co-trang', 4, NULL, '2021-11-30 19:36:21'), (9, 'thần thoại', 'than-thoai', NULL, NULL, '2021-11-27 06:01:39'), (10, 'phiêu lưu', 'phieu-luu', 9, NULL, '2021-11-30 07:50:37'), (11, 'hoạt hình', 'hoat-hinh', 3, NULL, '2021-11-30 07:10:21'), (12, 'tâm lý', 'tam-ly', 23, NULL, '2021-11-30 08:15:27'), (13, 'lẻ', 'le', 26, NULL, '2021-11-30 08:09:28'), (14, 'chiếu rạp', 'chieu-rap', 14, NULL, '2021-11-30 08:11:35'), (15, 'bộ', 'bo\r\n', 13, NULL, '2021-11-30 19:28:24'); -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `tbl_ratings` -- CREATE TABLE `tbl_ratings` ( `id` bigint(20) UNSIGNED NOT NULL, `film_id` bigint(20) UNSIGNED NOT NULL, `rating` double(8,2) NOT NULL, `kind_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `total_rating` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `tbl_translates` -- CREATE TABLE `tbl_translates` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Đang đổ dữ liệu cho bảng `tbl_translates` -- INSERT INTO `tbl_translates` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Vietsub', NULL, NULL), (2, 'Engsub', NULL, NULL), (3, '<NAME>', NULL, NULL); -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Đang đổ dữ liệu cho bảng `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (5, 'ducthu15012001', '<EMAIL>', '2021-11-28 01:42:37', '$2y$10$TCw.7qsChyLPOT7u45oRgunAIl7DIKOl9YU2Em6yavmM1AhaOQa0i', NULL, '2021-11-28 01:41:37', '2021-11-28 01:42:37'); -- -- Chỉ mục cho các bảng đã đổ -- -- -- Chỉ mục cho bảng `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Chỉ mục cho bảng `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Chỉ mục cho bảng `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Chỉ mục cho bảng `tbl_countries` -- ALTER TABLE `tbl_countries` ADD PRIMARY KEY (`id`); -- -- Chỉ mục cho bảng `tbl_film_episodes` -- ALTER TABLE `tbl_film_episodes` ADD PRIMARY KEY (`id`), ADD KEY `tbl_film_episodes_film_id_foreign` (`film_id`); -- -- Chỉ mục cho bảng `tbl_film_odds` -- ALTER TABLE `tbl_film_odds` ADD PRIMARY KEY (`id`), ADD KEY `tbl_film_odds_country_id_foreign` (`country_id`), ADD KEY `tbl_film_odds_translate_id_foreign` (`translate_id`); -- -- Chỉ mục cho bảng `tbl_film_series` -- ALTER TABLE `tbl_film_series` ADD PRIMARY KEY (`id`), ADD KEY `tbl_film_series_country_id_foreign` (`country_id`), ADD KEY `tbl_film_series_translate_id_foreign` (`translate_id`); -- -- Chỉ mục cho bảng `tbl_kinds` -- ALTER TABLE `tbl_kinds` ADD PRIMARY KEY (`id`); -- -- Chỉ mục cho bảng `tbl_ratings` -- ALTER TABLE `tbl_ratings` ADD PRIMARY KEY (`id`); -- -- Chỉ mục cho bảng `tbl_translates` -- ALTER TABLE `tbl_translates` ADD PRIMARY KEY (`id`); -- -- Chỉ mục cho bảng `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT cho các bảng đã đổ -- -- -- AUTO_INCREMENT cho bảng `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT cho bảng `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT cho bảng `tbl_countries` -- ALTER TABLE `tbl_countries` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT cho bảng `tbl_film_episodes` -- ALTER TABLE `tbl_film_episodes` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=141; -- -- AUTO_INCREMENT cho bảng `tbl_film_odds` -- ALTER TABLE `tbl_film_odds` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=43; -- -- AUTO_INCREMENT cho bảng `tbl_film_series` -- ALTER TABLE `tbl_film_series` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; -- -- AUTO_INCREMENT cho bảng `tbl_kinds` -- ALTER TABLE `tbl_kinds` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT cho bảng `tbl_ratings` -- ALTER TABLE `tbl_ratings` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT cho bảng `tbl_translates` -- ALTER TABLE `tbl_translates` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT cho bảng `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- Các ràng buộc cho các bảng đã đổ -- -- -- Các ràng buộc cho bảng `tbl_film_episodes` -- ALTER TABLE `tbl_film_episodes` ADD CONSTRAINT `tbl_film_episodes_film_id_foreign` FOREIGN KEY (`film_id`) REFERENCES `tbl_film_series` (`id`) ON DELETE CASCADE; -- -- Các ràng buộc cho bảng `tbl_film_odds` -- ALTER TABLE `tbl_film_odds` ADD CONSTRAINT `tbl_film_odds_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `tbl_countries` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `tbl_film_odds_translate_id_foreign` FOREIGN KEY (`translate_id`) REFERENCES `tbl_translates` (`id`) ON DELETE CASCADE; -- -- Các ràng buộc cho bảng `tbl_film_series` -- ALTER TABLE `tbl_film_series` ADD CONSTRAINT `tbl_film_series_country_id_foreign` FOREIGN KEY (`country_id`) REFERENCES `tbl_countries` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `tbl_film_series_translate_id_foreign` FOREIGN KEY (`translate_id`) REFERENCES `tbl_translates` (`id`) ON DELETE CASCADE; COMMIT; /*!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 */;
-- -- Learning SQL -- Exercise 5-3 -- -- select address pairs a1, a2 that exist in the same city city_id. SELECT a1.address, a2.address, a1.city_id FROM address a1 -- join addresses in the same city INNER JOIN address a2 ON a1.city_id = a2.city_id -- filter out duplicates where address a1 is the same as address a2 WHERE a1.address != a2.address;
-- Resposta URI: select name from lawyers where customers_number = max(customers_number) or customers_number = min(customers_number); -- Criando o Banco de Dados: CREATE DATABASE Uri_2737; CREATE TABLE lawyers( register INTEGER PRIMARY KEY, name VARCHAR(255), customers_number INTEGER ); INSERT INTO lawyers(register, name, customers_number) VALUES (1648, '<NAME>', 5), (2427, '<NAME>', 15), (3365, '<NAME>', 20), (4153, '<NAME>', 16), (5525, '<NAME>', 6);
<gh_stars>1-10 IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[PerfCounter]') AND type in (N'U')) BEGIN CREATE TABLE [dbo].[PerfCounter]( [collection_time] [datetime] NOT NULL, [processes_blocked] [bigint] NULL, [user_connections] [int] NULL, [free_list_stalls_sec] [bigint] NULL, [lazy_writes_sec] [bigint] NULL, [page_life_expectancy] [bigint] NULL, [full_scans_sec] [bigint] NULL, [index_searches_sec] [bigint] NULL, [batch_requests_sec] [bigint] NULL, [sql_compilations_sec] [bigint] NULL, [sql_re-compilations_sec] [bigint] NULL, [memory_grants_pending] [bigint] NULL) END GO IF NOT EXISTS (SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[PerfCounter]') AND name = N'CIX_PerfCounter_collection_time') CREATE CLUSTERED INDEX [CIX_PerfCounter_collection_time] ON [dbo].[PerfCounter] ([collection_time] ASC) GO
<filename>tests/migrations/goose/00001_users.sql -- +goose Up CREATE TABLE users ( id INT PRIMARY KEY, name VARCHAR(128), migastas INT NOT NULL DEFAULT 0 ); -- +goose Down DROP TABLE IF EXISTS users;
<gh_stars>1-10 insert into actors ( id, first_name, last_name ) -- facture_json: {"target_name": "actors", "position": "start"} -- THIS WILL BE REPLACED -- facture_json: {"target_name": "actors", "position": "end"} ; insert into films ( id, name, year ) -- facture_json: {"target_name": "films", "position": "start"} -- THIS WILL BE REPLACED -- facture_json: {"target_name": "films", "position": "end"} ; insert into roles ( id, actor_id, film_id ) -- facture_json: {"target_name": "roles", "position": "start"} -- THIS WILL BE REPLACED -- facture_json: {"target_name": "roles", "position": "end"} ;
<reponame>roaddee/dulkemot<filename>content/berkas/sql/3401_1475750583.sql INSERT INTO tweb_apbd(`rangkuman`,`berkas_id`,`lembaga_id`, `lembaga_kode`,`pemda_kode`, `wilayah_kode`,`tahun`, `rekening_kode`,`rekening`, `uraian`, `nominal`,`nominal_sebelum`, `nominal_sesudah`, `nominal_perubahan`, `nominal_persen`, `keterangan`, `created_by`, `updated_by`) VALUES ('1','66','30','0','00.00','3401','2016','4.','4.','PENDAPATAN','142856482340571.00','0','142856482340571.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.1.','4.1.','PENDAPATAN ASLI DAERAH','17243461125316.00','0','17243461125316.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.1.1.','4.1.1.','Pendapatan Pajak Daerah','3728940068836.00','0','3728940068836.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.1.2.','4.1.2.','Hasil Retribusi Daerah','10248938700.00','0','10248938700.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.1.3.','4.1.3.','Hasil Pengelolaan Kekayaan Daerah yang Dipisahkan','1303545152881.00','0','1303545152881.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.1.4.','4.1.4.','Lain-lain Pendapatan Asli Daerah yang Sah','11186082033599.00','0','11186082033599.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.2.','4.2.','DANA PERIMBANGAN','1062502098220.00','0','1062502098220.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.2.1.','4.2.1.','Bagi Hasil Pajak/Bagi Hasil Bukan Pajak','26100709000.00','0','26100709000.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.2.2.','4.2.2.','Dana Alokasi Umum','718490508000.00','0','718490508000.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.2.3.','4.2.3.','Dana Alokasi Khusus','317910881220.00','0','317910881220.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.3.','4.3.','LAIN-LAIN PENDAPATAN DAERAH YANG SAH','19362811393255.00','0','19362811393255.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.3.1.','4.3.1.','Pendapatan Hibah','1250000000.00','0','1250000000.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.3.3.','4.3.3.','Dana Bagi Hasil Pajak dari Provinsi dan Pemerintah Daerah Lainnya','6443403093255.00','0','6443403093255.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.3.4.','4.3.4.','Dana Penyesuaian dan Otonomi Khusus','99744600000.00','0','99744600000.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','4.3.5.','4.3.5.','Bantuan Keuangan dari Provinsi atau Pemerintah Daerah Lainnya','28199483000.00','0','28199483000.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','5.','5.','BELANJA','147768483869925.00','0','147768483869925.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','5.1.','5.1.','BELANJA TIDAK LANGSUNG','9229219618458.00','0','9229219618458.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','5.1.1.','5.1.1.','Belanja Pegawai','74794874069496.00','0','74794874069496.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','5.1.2.','5.1.2.','Belanja Bunga','3187500000.00','0','3187500000.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','5.1.4.','5.1.4.','Belanja Hibah','24248499400.00','0','24248499400.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','5.1.5.','5.1.5.','Belanja Bantuan Sosial','4652260000.00','0','4652260000.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','5.1.6.','5.1.6.','Belanja Bagi Hasil kepada Provinsi/Kabupaten/Kota dan Pemerintah Desa','444428105084.00','0','444428105084.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','5.1.7.','5.1.7.','Belanja Bantuan Keuangan kepada Provinsi/Kabupaten/Kota, Pemerintahan Desa dan Partai Politik','136440680700.00','0','136440680700.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','5.1.8.','5.1.8.','Belanja Tidak Terduga','2000000000.00','0','2000000000.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','5.2.','5.2.','BELANJA LANGSUNG','55476287685345.00','0','55476287685345.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','5.2.1.','5.2.1.','Belanja Pegawai','35856941620.00','0','35856941620.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','5.2.2.','5.2.2.','Belanja Barang dan Jasa','211316639990.00','0','211316639990.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','5.2.3.','5.2.3.','Belanja Modal','30758929524345.00','0','30758929524345.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','6.','6.','PEMBIAYAAN DAERAH','4912001529354.00','0','4912001529354.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','6.1.','6.1.','PENERIMAAN PEMBIAYAAN DAERAH','6491250965054.00','0','6491250965054.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','6.1.1.','6.1.1.','Sisa Lebih Perhitungan Anggaran Tahun Anggaran Sebelumnya','1464935965054.00','0','1464935965054.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','6.1.4.','6.1.4.','Penerimaan Pinjaman Daerah','50000000000.00','0','50000000000.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','6.1.6.','6.1.6.','Penerimaan Piutang Daerah','263150000.00','0','263150000.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','6.2.','6.2.','PENGELUARAN PEMBIAYAAN DAERAH','15792494357.00','0','15792494357.00','0','0','','2','2'), ('1','66','30','0','00.00','3401','2016','6.2.2.','6.2.2.','Penyertaan Modal (Investasi) Pemerintah Daerah','15792494357.00','0','15792494357.00','0','0','','2','2'),
<filename>cql-scripts/CREATE TABLE car_pricing log.cql CREATE TABLE car_pricing.log ( logtime timestamp, sessioncreatedtime timestamp, message text, PRIMARY KEY (sessioncreatedtime, logtime) ) WITH CLUSTERING ORDER BY (logtime DESC);
<filename>api/sql.sql CREATE DATABASE IF NOT EXISTS vue3_element_plus_admin DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_bin; use vue3_element_plus_admin; SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `admin` -- ---------------------------- DROP TABLE IF EXISTS `admin`; CREATE TABLE `admin` ( `id` int NOT NULL AUTO_INCREMENT, `username` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `password` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `avatar` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC; INSERT INTO `admin` VALUES ('1', 'admin', '<PASSWORD>',''); -- ---------------------------- -- Table structure for `power` -- ---------------------------- DROP TABLE IF EXISTS `power`; CREATE TABLE `power` ( `id` int NOT NULL AUTO_INCREMENT, `adminid` int NOT NULL DEFAULT '0', `roleid` int NOT NULL DEFAULT '0', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC; -- ---------------------------- -- Table structure for `role` -- ---------------------------- DROP TABLE IF EXISTS `role`; CREATE TABLE `role` ( `id` int NOT NULL AUTO_INCREMENT, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `remark` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `apis` varchar(500) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', `menus` varchar(500) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '', PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_bin ROW_FORMAT=DYNAMIC;
-- GENERATED from build/build.sh DO NOT modify this file. prompt *** APEX Installation *** prompt *** App: 130 *** @../scripts/apex_install.sql ILA ILA 130
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50553 Source Host : localhost:3306 Source Schema : thinkphp5 Target Server Type : MySQL Target Server Version : 50553 File Encoding : 65001 Date: 09/07/2020 13:33:26 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for qw_article -- ---------------------------- DROP TABLE IF EXISTS `qw_article`; CREATE TABLE `qw_article` ( `id` int(11) NOT NULL AUTO_INCREMENT, `art_title` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '文章标题', `art_tag` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '文章标签关键词', `art_description` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '文章描述', `art_thumb` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '文章缩略图', `art_content` text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '文章内容', `art_time` int(11) DEFAULT NULL COMMENT '文章发布时间', `art_editor` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '文章作者', `art_view` int(11) DEFAULT 0 COMMENT '文章浏览次数', `cate_id` int(11) DEFAULT NULL COMMENT '文章分类ID', `art_status` int(11) DEFAULT 2 COMMENT '文章是否加入推荐位 1是2否', `art_love` int(11) DEFAULT 0 COMMENT '文章点赞数', `art_collect` int(11) DEFAULT 0 COMMENT '文章收藏量', `art_pinglun` int(11) DEFAULT 0 COMMENT '文章评论数', `thumball` text CHARACTER SET utf8 COLLATE utf8_general_ci, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 73 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '文章表' ROW_FORMAT = Compact; -- ---------------------------- -- Records of qw_article -- ---------------------------- INSERT INTO `qw_article` VALUES (14, '文章一', '文章一', '文章一', 'uploads/2020-05-07/wIz1lA8MIsVdKgdh1CEVQVKw5AEeHaP14trqqEYw.jpeg', '<p>文章一文章一文章一</p>', NULL, '文章一', 6, 8, 2, 1, 0, 0, NULL); INSERT INTO `qw_article` VALUES (15, '文章二', '文章二', '文章二', '20200622\\a5dc0efb4e173ca4451e7c7c904dc2eb.jpg', '<p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">当金正恩上台的时候,外面的世界对这个不到30岁的年轻人还有些期待,希望有西方留学经历的他能为这个破败不堪的国家带去一些朝气,然而他除了把自己吃得越来越胖并娶了个貌美如花的乐团主唱之外,还大肆清洗对自己不敬的前朝元老,甚至传出了当众“炮决”“犬决”“机关枪扫射”等骇人听闻的杀人手段。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">更让外界感到忧虑的是,他带领下的朝鲜在“宇宙第一强国”的道路上越走越远,金正恩上任5年来射出去的导弹超过了此前几十年的总和,从今年年初到现在已经进行了两次核爆。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">如今的金正恩已经脱去了上台之初的一脸稚气,他指挥发射导弹核试验、视察军队、工地、渔场甚至养猪厂时开心大笑的照片频频登上国际媒体的版面,这是他在对外展现人民拥戴和政权稳固的自信。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \"><a href=\"http://www.boke.com/detail/images/jinzhengen.jpg\" class=\"prettyPhoto_gall\" style=\"box-sizing: border-box; margin: 0px; padding: 0px; border: 0px; outline: 0px; font-weight: inherit; font-style: inherit; vertical-align: baseline; background: transparent; list-style: none; color: rgb(66, 139, 202); transition: all 0.2s ease 0s; cursor: pointer;\"><img class=\"aligncenter size-full wp-image-5137\" src=\"http://www.boke.com/Home1/images/jinzhengen.jpg\" alt=\"金正恩\" title=\"这么多大国,为什么治不了一个朝鲜?\" width=\"547\" height=\"381\"/></a></p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">如果说前几次朝鲜核试验外界还是怀疑他的核技术,那么第五次核爆清楚地告诉世人,如果继续这样下去,朝鲜拿出可以打到美国本土的战略核导弹只是个时间问题,打到中日韩就更不用说了。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">朝鲜在研制核武器的道路上,只用了一个策略:明修栈道,暗度陈仓,嘴上反复说放弃,甚至还炸过冷却塔、允许国际组织进去核查,但实际上从来也没有住手;在六方会谈中也出尔反尔,签了停核协议,没几年就撕毁,宣布自己已是拥核国家,还要求大家都承认。在国际社会上,基本没有什么信誉可言。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">连肚子都填不饱,为什么还要一意孤行搞这些“大杀器”?朝鲜的行为常常令外界感到困惑。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">要知道朝鲜人脑子里装的什么,就要了解朝鲜这台国家机器的灵魂——主体思想,它控制了从国家领袖、党国精英直至大头百姓的一切行动。朝鲜的说法是,领袖是大脑,党和军队、政府是手足,人民是躯干,领袖指哪儿就打哪儿。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">“主体思想”是朝鲜开国领袖金日成创立的,地位相当于中国的“毛泽东思想”(水平高低另当别论),后被写入朝鲜宪法,成为国家和人民唯一的活动指导理论,至高无上。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">主体思想被确立为朝鲜的立国之本,核心可以概括为四个字:独立、自主。“主体”的意思就是以朝鲜自己为主体,政治上自主、经济上自足、国防上自卫。简单说,就是谁都不能信,只能靠自己。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">在外界看来是不守承诺,但在朝鲜看来,这就是主体思想的体现,谁的面子也不给,我自己决定自己的命运,爱怎么来怎么来,谁也管不着。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">朝鲜从战后直到80年代末取得的经济建设成就,为主体思想提供了合法性,然而到了90年代,因为苏联解体和东欧剧变,外来援助断绝,朝鲜国内经济急剧恶化,发生持续数年的饥荒,为了稳定政权,朝鲜领导人金正日在主体思想的基础上提出“先军政治”:一切工作都围绕军队展开,有限的资源要优先保障军队。只要控制好军队,对外保持武力威慑,对内确保政权根基稳固,因此即便发生大饥荒,朝鲜国内也没有发生动乱。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">朝鲜军队目前保持在110万人左右,数量仅次于中美印排第四位,军民比例世界第一。军队在朝鲜政治生活当中地位很高,生活待遇、政治待遇、社会声誉比工人、知识分子都好,年轻人一般都喜欢当兵,年轻的姑娘想找对象,也喜欢找军人。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">先军政治的逻辑就是,要先实现的独立自主地生存下去,然后再讨论生活的问题,小孩从小就被教育“没有糖果可以活下去,没有子弹就不能生存”。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">朝鲜最高领导人也多次公开表示“先军政治就是万能宝剑”,强化先军政治也是金氏政权维持合法性的唯一手段,一旦搞出核武器,对内可以证明先军思想和领袖的伟大英明,振奋民心,给人灌输“我日子过得没你好,但我比你厉害”的精神鸦片。对外,则可以此作为筹码,向国际社会要粮食要原油,反正光脚的不怕穿鞋的,大不了同归于尽。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">在朝鲜,主体思想和先军政治无处不在,比如朝鲜不使用公元纪年,而是使用主体纪年,以金日成诞生的1912年为主体元年,今年是主体105年;平壤地标叫“主体思想塔”,在日常生活中,主体思想标语随处可见。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">由于没有签订终战和平条约,理论上,朝鲜半岛是世界上不多的仍然处于战争状态的地方,官方宣传中,将美国、韩国、日本树立成无时不在的敌人,现在偶尔也指桑骂槐地捎上中国。这种几十年如一日洗脑式的宣传是成功的,普通民众对领袖的爱戴与宗教信仰几乎没有分别:</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">与主体思想相对的是,朝鲜从金日成至今,都坚决抵制“事大主义”,“事大”就小国侍奉大国以保存自身的策略。古代的朝鲜王朝从中国明初到清末,一直奉行“事大交邻”的政策,“事大”就是侍奉中原王朝,“交邻”则是指与日本等邻国的往来。因此“北不失礼,南不失信”成为朝鲜王朝的祖训,而“事大”则成为朝鲜对华政策的代名词。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">“事大”显然与主体思想是矛盾的,不论是朝鲜上世纪50年代对曾在中国延安、太行山从事抗日斗争的朝鲜共产党人进行清洗,还是官方宣传和教科书中向来极少提及朝鲜战争时的中国志愿军,都是在“树立主体,反对事大”,消除民间的中国崇拜,不断强调朝鲜民族的主体性,宣扬民族主义,这对于封闭的、强敌环饲的朝鲜来说,很容易培养起强大的群众基础。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">中朝关系历来也不是由双边关系来界定的。古代两国关系受制于日本,明朝万历年间的壬辰倭乱、清末的甲午战争,都因日本入侵朝鲜,中国出于保护藩属国的道义,出兵抗日,结果直接加速了两个王朝的灭亡;朝鲜战争中国出兵,是为对抗美国。冷战时期,中朝因为意识形态纽带,形成一种同志加兄弟的友谊,但当这种关系赖以为继的外部环境发生变化之后,就会变质。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">从70年代中美、中日关系正常化以及中国的改革开放开始,中国就从革命外交的思维中走出来,开始了以国家利益为核心的外交时代,融入到美国主导的国际经济体系之中去,这也是中国在40年来取得非凡成就的根本所在。而朝鲜则仍然致力于构建“主体思想”,反对“事大主义”,基于意识形态为纽带的亲密关系逐渐松弛了,现实利益让两国处于两个平行线上。1992年中韩建交,更引发了朝鲜对中国不满。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">朝鲜深知自己对中国的战略意义,也只有在需要帮助的时候才会想起中国。钱其琛在他的《外交十记》当中,回忆了他亲自去向金日成报告中韩建交的事情,当时钱其琛一行的专机到达平壤之后,机场没有按照惯例举行欢迎仪式,钱其琛一行改乘朝鲜准备的直升机,飞到金日成夏季常住的湖滨别墅。钱其琛向金日成转达了江泽民的口信。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">金日成当时说,中国的事情,中国定了就可以了,你们就按你们定的做,我们自己走自己的路。需要的时候,我们再请你们帮助吧,就这样吧。在钱其琛的记忆当中,这次会见是金日成历次会见中国代表团时间最短的一次。会见之后,没有举行任何例行的招待宴会,钱其琛一行当天就返回了北京。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">如今,包括美日韩在内,很多人将朝鲜日益壮大的核力量归罪于中国,认为中国没有对其施加影响力,这其实是没有认清中朝之间真实的关系。中方已经多次声明,中国和朝鲜是正常的国家关系,正常关系就是说,我跟他不存在军事同盟,也不会干涉他的内政。而且,历次核试后联合国对朝鲜的制裁决议,中国都是了投赞成票的,难道这还不够明显吗?</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \"><span style=\"box-sizing: border-box; margin: 0px; padding: 0px; border: none; outline: 0px; font-weight: 700; font-style: inherit; vertical-align: baseline; background: transparent; list-style: none;\">还有一些人说,当年中国试验原子弹,美国苏联也坚决反对,如今朝鲜是一个主权国家,为啥你能有原子弹,人家就不能有?这个逻辑忽视了一个国际道义的问题,核武器是一种终极武器,跟炮弹不一样,需要极强的控制能力,还得有大国担当,否则对全人类都是毁灭性的。曾有外国专家去朝鲜考察核设施,对他们的防护设施感到很担忧,虽然他坚决反对朝鲜搞核武器,但还是从人道主义出发,为他们提供了改进设备的技术手段。</span></p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">这就朝鲜核设施的现实情况,这些核设施距离中国边境不过百十公里,一旦发生泄漏,大片东北国土势必遭殃,全世界没有哪个国家在人口这么稠密的地方进行核试验。加上朝鲜的体制和领导人的行事风格,谁能保障他不乱来?万一玩火自焚,大量朝鲜人变成难民涌入中国怎么办?</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">如今中国的地位很尴尬,打,不可能,一言不合就动手的时代已经过去了,中国也绝不会允许有人在自己家门口放火,朝鲜又把2000多万人民和核武器一起绑在战车上,到时候跟你来个鱼死网破,大家就都吃不了兜着了;和,也很难,六方会谈基本破产,重新启动遥遥无期,美国要求朝鲜首先放弃核武器再谈判,朝鲜则要求美国先承认它的核地位再说,互相极度不信任,根本坐不下来。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">有人提出由中国提供核保护伞来换取朝鲜弃核,且不说这与中国一贯的不结盟政策相违背,朝鲜压根就没打算靠别人的保护伞,否则金氏的合法性在哪里?靠着核保护伞能统一国家吗?</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">因为主体思想,朝鲜不会允许任何大国插手本国事务,对自己施加影响,大国也很难像对叙利亚、伊拉克、利比亚那样,在内部扶植自己的力量。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">朝鲜领袖就是在这样的地缘格局中生存了下来,比萨达姆、卡扎菲甚至巴沙尔活得都好。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">如果把国际社会比作丛林,朝鲜就是眼镜蛇,它全身柔软,但有两颗令人胆颤毒牙,从民族国家进化的角度来看,朝鲜是成功的,不管是试射导弹还是核试验,他都是在把这两颗毒牙磨得更加锋利而已,这比上面那些穆斯林国家坐以待毙要高明。</p><p style=\"box-sizing: border-box; margin-top: 10px; margin-bottom: 10px; padding: 0px; border: none; outline: 0px; vertical-align: baseline; background: rgb(255, 255, 255); font-family: \">(来源:微信公众号“财经也疯狂”)</p><p><br/></p>', NULL, '文章二', 3, 6, 1, 1, 1, 0, NULL); INSERT INTO `qw_article` VALUES (16, '文章三', '文章三', '文章三', '20200622\\2141ae30434f28852aa25e06798f4490.jpg', '<p>文章三文章三</p>', NULL, '文章三', 0, 6, 2, 1, 0, 0, NULL); INSERT INTO `qw_article` VALUES (17, '文章一', '文章一', '文章一', '20200622\\8e0bbdca71d5ac6359e034d627d3601e.jpg', '<p>文章一</p>', NULL, '文章一', 2, 10, 1, 1, 0, 0, NULL); INSERT INTO `qw_article` VALUES (18, '文章二', '文章二', '文章二', 'uploads/2020-05-07/oovGAe1PoyCJFenR6CL7RZfjMiufpYfeQV3MV6AC.jpeg', '<p>文章二</p>', NULL, '文章二', 2, 8, 1, 1, 0, 0, NULL); INSERT INTO `qw_article` VALUES (19, '文章四', '文章四', '文章四', 'uploads/2020-05-07/wFz3BK7Hvo2YlMhvW5rok971rHjY5A5NUlCpADG3.jpeg', '<p>文章四</p>', NULL, '文章四', 0, 6, 2, 1, 0, 0, NULL); INSERT INTO `qw_article` VALUES (20, '文章三', '文章三', '文章三', 'uploads/2020-05-07/DmFetiFAhcy7P4jqul74Lz3RAL30en1aoMkMlNMK.jpeg', '<p>文章三</p>', NULL, '文章三', 0, 8, 2, 1, 0, 0, NULL); INSERT INTO `qw_article` VALUES (21, '文章五', '文章五', '文章五', 'uploads/2020-05-07/XrQcgHH0AaB7oEJ5GOfVhaQ3bfkLMNj4WMTrjp25.jpeg', '<p>文章五</p>', NULL, '文章五', 0, 6, 2, 1, 0, 0, NULL); INSERT INTO `qw_article` VALUES (22, '文章六', '文章六', '文章六', 'uploads/2020-05-07/BCDlVY8xkJ0iOG96YK44eimciJBbLcKMoj1CYxJJ.jpeg', '<p>文章六</p>', NULL, '文章六', 0, 6, 2, 1, 0, 0, NULL); INSERT INTO `qw_article` VALUES (23, '文章一', '文章一', '文章一', 'uploads/2020-05-07/b0Rpb102xiK5SXLOGkTaNApnAa5rO8fINMo5JImF.jpeg', '<p>文章一</p>', NULL, '文章一', 1, 9, 1, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (24, '文章一', '文章一', '文章一', 'uploads/2020-05-07/2kn8OgXBlxqJj0SYeQueHZ2fkEO8l6VDj2VnwrHj.jpeg', '<p>文章一</p>', NULL, '文章一', 1, 15, 1, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (25, '测试1', '测试1', '测试1测试1测试1测试1测试1测试1测试1测试1测试1测试1', 'uploads/2020-05-19/qArYC5K8IgHGuqjEaPmrEJtExkYUan5IMaHSSA7T.jpeg', '<p>测试1测试1测试1测试1</p>', NULL, '测试1', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (26, '测试2', '测试2', '测试2测试2测试2测试2', 'uploads/2020-05-19/Qx1OpfyDelldjlavDAkPr6kKaC2fkbXZUrb7XSGW.jpeg', '<p>测试2测试2测试2测试2测试2</p>', NULL, '测试2', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (27, '测试3', '测试3', '测试3', 'uploads/2020-05-19/Olz564veWu3ASFJgCZIYBY67oU0cC1VqFXu5edlg.jpeg', '<p>测试3测试3测试3测试3</p>', NULL, '测试3', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (28, '测试4', '测试4', '测试4测试4', 'uploads/2020-05-19/jGGBZXRniZCygWJk9lomu98nnofLnfKVVfTnzFgh.jpeg', '<p>测试4测试4测试4</p>', NULL, '测试4', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (29, '测试5', '测试5', '测试5', 'uploads/2020-05-19/8LortPXbJXGU7XFeSEEiimLeA1F9JCAbdedKKLpe.jpeg', '<p>测试5</p>', NULL, '测试5', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (30, '测试6', '测试6', '测试6', 'uploads/2020-05-19/vVh33lVcRJypha0GEsx0mhAtgcGJKlqX6MRrk9Ai.jpeg', '<p>测试6</p>', NULL, '测试6', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (31, '测试7', '测试7', '测试7', '20200622\\14aefb79af3910f4cac63198d4a5c423.jpg', '<p>测试7</p>', NULL, '测试7', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (32, '测试8', '测试8', '测试8', '20200622\\30425b936808f8462124da1d8c87deb8.jpg', '<p>测试8</p>', NULL, '测试8', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (33, '测试9', '测试9', '测试9', '20200622\\53189137121c9482b06b7aa6dabe2ffc.jpg', '<p>测试9测试9</p>', NULL, '测试9', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (34, '测试10', '测试10', '测试10测试10', '20200622\\9c1d1edae63516c351b4b284641b891e.jpg', '<p>测试10测试10</p>', NULL, '测试10', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (35, '测试11', '测试11', '测试11', '20200622\\deaf8f4fc41f952f26f6690b46b4be8c.jpg', '<p>测试11</p>', NULL, '测试11', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (36, '测试12', '测试12', '测试12', 'uploads/2020-05-19/YMdxUGRYChaIIBAa2gRtmOaUW56zKL8gZ3HoQfwO.jpeg', '<p>测试12</p>', NULL, '测试12', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (37, '测试13', '测试13', '测试13', '20200622\\012ab05f24e6d7ba22cd800ac8166708.jpg', '<p>测试13测试13</p>', NULL, '测试13', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (38, '测试14', '测试14', '测试14', '20200622\\c62703672c310f26aece8d6b1ba2e36f.jpg', '<p>测试14</p>', NULL, '测试14', 0, 6, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (55, 'dda', 'dda', 'dda', '20200608\\daeb3dc30c185056c7991c566f153a40.jpg', '<p>dda</p>', NULL, 'dda', 1, 11, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (56, '啥啥啥的啥啥啥的啥啥啥的啥啥啥的啥啥啥的', '啥啥啥的', '啥啥啥的', '20200608\\b8ef259ec9da751810649b1c3085c180.jpg', '<p>啥啥啥的</p>', 1591604999, '啥啥啥的', 0, 9, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (57, '对对对', '对对对', '对对对', '20200624\\85d920ee192f2bacf088b83c45223816.jpg', '<p>对对对对对对对对对</p>', 1592967590, '对对对', 0, 17, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (58, '豆豆说', '豆豆说', '豆豆说', '20200624\\a22d05af09ca0fd8eab568fccca4486b.jpg', '<p>豆豆说</p>', 1592967608, '豆豆说', 0, 17, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (59, '分分分', '分分分', '分分分', '20200624\\83f03a0aff61df20efbd5873440b40af.jpg', '<p>分分分</p>', 1592967779, '分分分', 0, 17, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (60, '颠倒是非', '颠倒是非', '颠倒是非', '20200624\\171ba79f2e1af7654543a39de0027836.jpg', '<p>颠倒是非</p>', 1592967795, '颠倒是非', 0, 17, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (61, '电饭锅', '电饭锅', '电饭锅', '20200624\\c229a6749d7eb49c9b3c0bd7c729aa09.jpg', '<p>电饭锅</p>', 1592967819, '电饭锅', 0, 17, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (62, '水电费', '水电费', '水电费', '20200624\\1ccf6e05150d0a47fc24e9f8b733439f.jpg', '<p>水电费</p>', 1592967843, '水电费', 0, 17, 2, 0, 0, 0, NULL); INSERT INTO `qw_article` VALUES (63, '安安生生', '安安生生', '安安生生', '20200624\\394bc51374f7edc31f612d179cc17306.jpg', '<p>安安生生</p>', 1592977850, '安安生生', 2, 19, 2, 0, 0, 0, NULL); -- ---------------------------- -- Table structure for qw_auth_group -- ---------------------------- DROP TABLE IF EXISTS `qw_auth_group`; CREATE TABLE `qw_auth_group` ( `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, `title` char(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '角色名称', `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1.启用0.未启用', `rules` char(80) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT '' COMMENT '权限的ID', PRIMARY KEY (`id`) USING BTREE ) ENGINE = MyISAM AUTO_INCREMENT = 15 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '角色' ROW_FORMAT = Fixed; -- ---------------------------- -- Records of qw_auth_group -- ---------------------------- INSERT INTO `qw_auth_group` VALUES (1, '超级管理员', 1, '2,7,9,13,14,17,20'); INSERT INTO `qw_auth_group` VALUES (6, '测试员', 1, '2,7'); INSERT INTO `qw_auth_group` VALUES (9, '数据录入', 1, '13,14'); INSERT INTO `qw_auth_group` VALUES (8, '经理', 1, '2,7,13,14'); -- ---------------------------- -- Table structure for qw_auth_group_access -- ---------------------------- DROP TABLE IF EXISTS `qw_auth_group_access`; CREATE TABLE `qw_auth_group_access` ( `uid` mediumint(8) UNSIGNED NOT NULL COMMENT '管理员ID', `group_id` mediumint(8) UNSIGNED NOT NULL COMMENT '角色ID' ) ENGINE = MyISAM CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户组 和规则关联表' ROW_FORMAT = Fixed; -- ---------------------------- -- Records of qw_auth_group_access -- ---------------------------- INSERT INTO `qw_auth_group_access` VALUES (1, 1); INSERT INTO `qw_auth_group_access` VALUES (2, 9); INSERT INTO `qw_auth_group_access` VALUES (2, 6); -- ---------------------------- -- Table structure for qw_auth_rule -- ---------------------------- DROP TABLE IF EXISTS `qw_auth_rule`; CREATE TABLE `qw_auth_rule` ( `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, `name` char(80) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '控制器 /方法名', `title` char(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '权限名称', `type` tinyint(1) NOT NULL DEFAULT 1, `status` tinyint(1) NOT NULL DEFAULT 1, `condition` char(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '权限描述', `pid` int(11) DEFAULT 0 COMMENT '上级ID', `level` tinyint(2) DEFAULT 0, `sort` int(11) DEFAULT 100 COMMENT '排序', PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `name`(`name`) USING BTREE ) ENGINE = MyISAM AUTO_INCREMENT = 22 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '规则表,' ROW_FORMAT = Fixed; -- ---------------------------- -- Records of qw_auth_rule -- ---------------------------- INSERT INTO `qw_auth_rule` VALUES (9, '1', '分类管理', 1, 1, '', 0, 0, 1); INSERT INTO `qw_auth_rule` VALUES (2, '2', '文章管理', 1, 1, '', 0, 0, 2); INSERT INTO `qw_auth_rule` VALUES (14, 'User/index', '用户列表', 1, 1, '', 13, 1, 1); INSERT INTO `qw_auth_rule` VALUES (13, '3', '用户管理', 1, 1, '', 0, 0, 3); INSERT INTO `qw_auth_rule` VALUES (7, 'Article/index', '文章列表', 1, 1, '', 2, 1, 1); INSERT INTO `qw_auth_rule` VALUES (17, 'Category/destroy', '删除分类POST', 1, 1, '', 9, 1, 4); INSERT INTO `qw_auth_rule` VALUES (20, 'Category/edit', '编辑分类', 1, 1, '', 9, 1, 5); -- ---------------------------- -- Table structure for qw_category -- ---------------------------- DROP TABLE IF EXISTS `qw_category`; CREATE TABLE `qw_category` ( `id` int(11) NOT NULL AUTO_INCREMENT, `cate_name` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '分类名称', `cate_title` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '分类别名', `cate_order` int(11) DEFAULT NULL COMMENT '排序', `cate_pid` int(11) DEFAULT NULL COMMENT '父ID', `cate_type` int(11) DEFAULT NULL COMMENT '类型1.文章列表2.单页3.图片列表', `cate_content` longtext CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '内容', `cate_keywords` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '关键字', `cate_des` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '描述', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 20 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '文章分类表' ROW_FORMAT = Compact; -- ---------------------------- -- Records of qw_category -- ---------------------------- INSERT INTO `qw_category` VALUES (3, '单车分类', '单车分类', 1, 0, 1, NULL, NULL, NULL); INSERT INTO `qw_category` VALUES (4, '骑行装备', '骑行装备', 2, 0, 1, NULL, NULL, NULL); INSERT INTO `qw_category` VALUES (6, '死飞车', '死飞车', 1, 3, 1, NULL, NULL, NULL); INSERT INTO `qw_category` VALUES (8, '复古骑行', '复古骑行', 2, 3, 1, NULL, NULL, NULL); INSERT INTO `qw_category` VALUES (9, '山地车', '山地车', 4, 3, 1, NULL, NULL, NULL); INSERT INTO `qw_category` VALUES (10, '公路车', '公路车', 3, 3, 1, NULL, NULL, NULL); INSERT INTO `qw_category` VALUES (11, '车身装备', '车身装备', 1, 4, 1, NULL, NULL, NULL); INSERT INTO `qw_category` VALUES (13, '人身装备', '人身装备', 2, 4, 1, NULL, NULL, NULL); INSERT INTO `qw_category` VALUES (15, '折叠/小径车', '折叠/小径车', 5, 3, 1, NULL, NULL, NULL); INSERT INTO `qw_category` VALUES (17, '单车生活', '单车生活', 3, 0, 3, NULL, NULL, NULL); INSERT INTO `qw_category` VALUES (18, 'BMX', 'BMX', 6, 3, 1, NULL, NULL, NULL); INSERT INTO `qw_category` VALUES (19, '行业资讯', '行业资讯', 4, 0, 2, NULL, NULL, NULL); -- ---------------------------- -- Table structure for qw_config -- ---------------------------- DROP TABLE IF EXISTS `qw_config`; CREATE TABLE `qw_config` ( `id` int(11) NOT NULL AUTO_INCREMENT, `conf_title` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '标题', `conf_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '变量名', `conf_content` text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '变量值', `conf_tips` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '描述', `fiele_type` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '字段类型', `fiele_value` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '类型值', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '网站配置表' ROW_FORMAT = Compact; -- ---------------------------- -- Records of qw_config -- ---------------------------- INSERT INTO `qw_config` VALUES (1, '网站标题', 'web_title', 'thinkphp5.0前台', NULL, 'input', ''); INSERT INTO `qw_config` VALUES (2, '网站网址', 'web_url', 'http://www.boke.com/admin', NULL, 'input', NULL); INSERT INTO `qw_config` VALUES (3, '备案', 'ICP', '备案备案备案备案备案备案备案', NULL, 'textarea', NULL); INSERT INTO `qw_config` VALUES (4, '网站状态', 'web_status', '开启', NULL, 'radio', '开启,关闭'); INSERT INTO `qw_config` VALUES (9, '下拉菜单', 'xiala', '菜单一', NULL, 'select', '菜单一,菜单二,菜单三,菜单四,菜单五'); -- ---------------------------- -- Table structure for qw_user -- ---------------------------- DROP TABLE IF EXISTS `qw_user`; CREATE TABLE `qw_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '用户名', `password` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '密码', PRIMARY KEY (`id`) USING BTREE ) ENGINE = MyISAM AUTO_INCREMENT = 22 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '管理员表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of qw_user -- ---------------------------- INSERT INTO `qw_user` VALUES (1, 'admin', 'e10adc3949ba59abbe56e057f20f883e'); INSERT INTO `qw_user` VALUES (2, 'qiuwei', 'e10adc3949ba59abbe56e057f20f883e'); INSERT INTO `qw_user` VALUES (3, 'aaaaaa', '0b4e7a0e5fe84ad35fb5f95b9ceeac79'); INSERT INTO `qw_user` VALUES (9, 'cccccc', '<PASSWORD>'); INSERT INTO `qw_user` VALUES (8, 'bbbbbb', '<PASSWORD>cecf20ceb4ca028263dec6'); INSERT INTO `qw_user` VALUES (6, 'dddddd', '980ac217c6b51e7dc41040bec1edfec8'); SET FOREIGN_KEY_CHECKS = 1;
<gh_stars>0 /****** Object: Table [T_Requested_Run_State_Name] ******/ /****** RowCount: 4 ******/ SET IDENTITY_INSERT [T_Requested_Run_State_Name] ON INSERT INTO [T_Requested_Run_State_Name] (State_Name, State_ID) VALUES ('Active',1) INSERT INTO [T_Requested_Run_State_Name] (State_Name, State_ID) VALUES ('Completed',2) INSERT INTO [T_Requested_Run_State_Name] (State_Name, State_ID) VALUES ('Inactive',3) INSERT INTO [T_Requested_Run_State_Name] (State_Name, State_ID) VALUES ('Holding',4) SET IDENTITY_INSERT [T_Requested_Run_State_Name] OFF
<gh_stars>0 select r.* from beijing_xxgl.tb_regist r , beijing_xxgl.tb_class c where c.cla_id = r.reg_class_id limit 1000 ; create table otter.tb_regist_bak select * from otter.tb_regist create table otter.tb_class_bak select * from otter.tb_class truncate table otter.tb_class ; truncate table otter.tb_regist ; create table otter.tb_regist_1 select r.* from beijing_xxgl.tb_regist r , beijing_xxgl.tb_class c where c.cla_id = r.reg_class_id limit 1000 ; insert into otter.tb_class
<gh_stars>1-10 alter table SAMLADDON_SAML_CONNECTION add column CREATE_USERS BOOLEAN DEFAULT true;
<filename>posda/posdatools/queries/sql/UpdateCopyInformation.sql -- Name: UpdateCopyInformation -- Schema: posda_files -- Columns: [] -- Args: ['status_of_copy', 'pid_of_running_process', 'copy_from_public_id'] -- Tags: ['bills_test', 'copy_from_public'] -- Description: Add a filter to a tab update copy_from_public set status_of_copy = ?, pid_of_running_process = ? where copy_from_public_id = ?
CREATE TABLE IF NOT EXISTS `order` ( `id` BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, `start_latitude` VARCHAR(255) NOT NULL, `start_longitude` VARCHAR(255) NOT NULL, `end_latitude` VARCHAR(255) NOT NULL, `end_longitude` VARCHAR(255) NOT NULL, `distance` INT NOT NULL, `status` enum ('UNASSIGNED', 'TAKEN') NOT NULL DEFAULT 'UNASSIGNED', `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE = InnoDB;
<reponame>AlfiyaRF/cloud-pipeline CREATE TABLE IF NOT EXISTS pipeline.group_status ( group_name TEXT NOT NULL PRIMARY KEY, blocked BOOLEAN DEFAULT FALSE );
with `wnation` as (select `n_name`, `n_nationkey`, `n_regionkey` from `nation`) (select `n1`.`n_name`, `n2`.`n_name` from `wnation` as `n1` inner join `wnation` as `n2` on `n1`.`n_nationkey` = `n2`.`n_regionkey`)
<reponame>LostPersonFinder/FaceMatch-2<filename>FM2Executive/installedConfig/sql/set_admin.sql -- ----------------------------------------------------------------------- -- Initialize static tables related to Facematch System Admin -- ------------------------------------------------------------------------ USE FM2DB; -- -- create a single administrator -- INSERT INTO fmadmin values( 1, -- id 'fmadmin', -- name '<password>' -- MD5 password of admin operator );
-- @testpoint:opengauss关键字rename(非保留),作为存储过程名 --关键字不带引号-成功 drop procedure if exists rename; create procedure rename( section number(6), salary_sum out number(8,2), staffs_count out integer) is begin select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; end; / drop procedure rename; --关键字带双引号-成功 drop procedure if exists "rename"; create procedure "rename"( section number(6), salary_sum out number(8,2), staffs_count out integer) is begin select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; end; / drop procedure "rename"; --关键字带单引号-合理报错 drop procedure if exists 'rename'; create procedure 'rename'( section number(6), salary_sum out number(8,2), staffs_count out integer) is begin select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; end; / --关键字带反引号-合理报错 drop procedure if exists `rename`; create procedure `rename`( section number(6), salary_sum out number(8,2), staffs_count out integer) is begin select sum(salary), count(*) into salary_sum, staffs_count from staffs where section_id = section; end; /
-- @testpoint: opengauss关键字Integer(非保留),作为函数名,部分测试点合理报错 --关键字不带引号-合理报错 drop function if exists Integer; create function Integer(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带双引号-成功 drop function if exists "Integer"; create function "Integer"(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带单引号-合理报错 drop function if exists 'Integer'; create function 'Integer'(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带反引号-合理报错 drop function if exists `Integer`; create function `Integer`(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --清理环境 drop function if exists "Integer"(integer);
<reponame>roystgnr/perfexpert<filename>tools/hound/hound.sql -- -- Copyright (c) 2011-2013 University of Texas at Austin. All rights reserved. -- -- $COPYRIGHT$ -- -- Additional copyrights may follow -- -- This file is part of PerfExpert. -- -- PerfExpert is free software: you can redistribute it and/or modify it under -- the terms of the The University of Texas at Austin Research License -- -- PerfExpert is distributed in the hope that it will be useful, but WITHOUT ANY -- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR -- A PARTICULAR PURPOSE. -- -- Authors: <NAME> and <NAME> -- -- $HEADER$ -- -- Generated using hound -- version 2.0 -- -- Create tables if not exist -- CREATE TABLE IF NOT EXISTS hound ( family INTEGER NOT NULL, model INTEGER NOT NULL, name VARCHAR NOT NULL, value REAL NOT NULL );
<gh_stars>0 # dest.prereq: db/changes/1520617866_quizzes ALTER TABLE quiz ADD COLUMN status TEXT NULL AFTER scheduled;
<gh_stars>0 CREATE DATABASE Movies CREATE TABLE Directors ( Id INT PRIMARY KEY, DirectorName NVARCHAR(50) NOT NULL, Notes NVARCHAR(MAX) ) CREATE TABLE Genres ( Id INT PRIMARY KEY NOT NULL, GenreName NVARCHAR(50) NOT NULL, Notes NVARCHAR(MAX) ) CREATE TABLE Categories ( Id INT PRIMARY KEY NOT NULL, CategoryName NVARCHAR(50) NOT NULL, Notes NVARCHAR(MAX) ) CREATE TABLE Movies ( Id INT PRIMARY KEY NOT NULL, Title NVARCHAR(77) NOT NULL, DirectorId INT FOREIGN KEY REFERENCES Directors(Id) NOT NULL, CopyrightYear INT NOT NULL, [Length] NVARCHAR(50) NOT NULL, GenreId INT FOREIGN KEY REFERENCES Genres(Id) NOT NULL, CategoryId INT FOREIGN KEY REFERENCES Categories(Id) NOT NULL, Rating INT, Notes NVARCHAR(MAX) ) INSERT INTO Directors(Id, DirectorName) VALUES (1, 'Director one'), (2, 'Director star'), (3, 'Director ops'), (4, 'Director four'), (5, 'Director five') INSERT INTO Genres(Id, GenreName) VALUES (1, 'comedy'), (2, 'action'), (3, 'drama'), (4, 'comedy two'), (5, 'comedy three') INSERT INTO Categories(Id, CategoryName) VALUES (1, 'category one'), (2, 'category two'), (3, 'category three'), (4, 'category four'), (5, 'category five') INSERT INTO Movies(Id, Title, DirectorId, CopyrightYear, [Length], GenreId, CategoryId) VALUES (1, 'title one', 1, '1999', 120, 1, 1), (2, 'title two', 2, '2001', 150, 2, 2), (3, 'title three', 3, '1997', 110, 3, 3), (4, 'title four', 4, '1999', 130, 4, 4), (5, 'title five', 5, '1999', 170, 5, 5)
<reponame>bidiana25/tolong1 -- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 15, 2020 at 03:02 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!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 utf8mb4 */; -- -- Database: `sia_sekolah` -- -- -------------------------------------------------------- -- -- Table structure for table `t_m_akun1` -- CREATE TABLE `t_m_akun1` ( `id_akun1` int(11) NOT NULL, `nama_akun1` varchar(30) NOT NULL, `kode_akun1` varchar(20) NOT NULL, `kategori_akun1` enum('Harta (Aktiva)','Kewajiban/Hutang (Liability)','Modal (equity)','Pendapatan','Beban/Biaya (Expense)') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `t_m_akun1` -- INSERT INTO `t_m_akun1` (`id_akun1`, `nama_akun1`, `kode_akun1`, `kategori_akun1`) VALUES (1, 'Aset tetap', '12000', 'Harta (Aktiva)'), (3, 'Aset Lancar', '11000', 'Harta (Aktiva)'), (4, 'Aset Lainnya', '13000', 'Harta (Aktiva)'), (5, 'Hutang Jangka Pendek', '21000', 'Kewajiban/Hutang (Liability)'), (6, 'Hutang Jangka Panjang', '22000', 'Kewajiban/Hutang (Liability)'), (7, 'Modal', '30000', 'Modal (equity)'), (8, 'Pendapatan', '40000', 'Pendapatan'), (9, 'Beban/Biaya', '50000', 'Beban/Biaya (Expense)'); -- -------------------------------------------------------- -- -- Table structure for table `t_m_akun2` -- CREATE TABLE `t_m_akun2` ( `id_akun2` int(11) NOT NULL, `rid_akun1` int(11) NOT NULL, `kode_akun2` varchar(30) NOT NULL, `nama_akun2` varchar(30) NOT NULL, `ket` varchar(100) NOT NULL, `saldo` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `t_m_akun2` -- INSERT INTO `t_m_akun2` (`id_akun2`, `rid_akun1`, `kode_akun2`, `nama_akun2`, `ket`, `saldo`) VALUES (35, 9, '51000', 'Beban Gaji Guru', '', 0), (36, 9, '51100', 'Beban Gaji Karyawan Lainnya', '', 0), (37, 9, '52000', 'THR Guru', '', 0), (38, 9, '52100', 'THR Karyawan Lainnya', '', 0), (39, 9, '52200', 'Bonus Guru', '', 0), (40, 9, '52300', 'Bonus Karyawan Lainnya', '', 0), (41, 9, '52400', 'Bonus Tour', '', 0), (42, 9, '53000', 'Gaji Pelatih', '', 0), (43, 9, '53100', 'Perlengkapan Eskul', '', 0), (44, 9, '54000', 'Beban Listrik', '', 0), (45, 9, '54100', 'Beban Penyusutan Peralatan', '', 0), (46, 9, '54200', 'Beban Sewa', '', 0), (47, 9, '54300', 'Beban Kendaraan', '', 0), (48, 9, '54400', 'Beban Internet/Pulsa', '', 0), (49, 9, '54500', 'Prive', '', 0), (50, 9, '55000', 'Beban Pelatihan/Workshop', '', 0), (51, 9, '55100', 'Beban Kegiatan Anak', '', 0), (52, 9, '55200', 'Beban Kegiatan OrangTua', '', 0), (53, 9, '55300', 'Beban Rapor', '', 0), (54, 9, '55400', 'Beban Barang Inventaris', '', 0), (55, 9, '55500', 'Beban Gedung', '', 0), (56, 9, '55600', 'Beban Operasional Lainnya', '', 0), (57, 9, '55700', 'Beban Rapat', '', 0), (58, 8, '41000', 'Uang Gedung', '', 0), (59, 8, '41100', 'Uang Baju', '', 0), (60, 8, '41200', 'Uang Buku', '', 0), (61, 8, '41300', 'Uang Tahunan', '', 0), (62, 8, '41400', 'Uang SPP', '', 0), (63, 8, '41500', 'Uang Eskul', '', 0), (64, 8, '41600', 'Uang Komite', '', 0), (65, 8, '42000', 'Infak Pembangunan', '', 0), (66, 8, '42100', 'Infak Sekolah', '', 0), (67, 8, '43000', 'Tabungan', '', 0), (68, 8, '44000', 'Hibah', '', 0), (69, 8, '45000', 'Pendapatan Lainnya', '', 0), (70, 7, '31000', 'Setoran Modal', '', 0), (71, 7, '32000', 'Prive', '', 0), (72, 7, '33000', 'Donasi/Hibah', '', 0), (73, 7, '34000', '<NAME>', '', 0), (74, 5, '21100', 'Hutang Usaha', '', 0), (75, 5, '21200', 'Hutang Gaji', '', 0), (76, 5, '21300', 'Hutang Listrik dan Air', '', 0), (77, 5, '21400', 'Hutang Telepon dan Internet', '', 0), (78, 5, '21500', 'Hutang Lancar Lainnya', '', 0), (79, 6, '22100', 'Hutang Bank', '', 0), (80, 3, '11110', 'Kas', '', 0), (82, 1, '11130', 'Piutang', '', 0), (83, 3, '11140', 'Perlengkapan', '', 0), (84, 1, '12100', 'Bangunan Sekolah', '', 0), (85, 1, '12200', 'Tanah', '', 0), (86, 1, '12300', 'Perabotan', '', 0), (87, 1, '12400', 'Kendaraan', '', 0), (88, 1, '12500', 'Teknologi', '', 0), (92, 3, '11120', 'Bank', '', 0); -- -------------------------------------------------------- -- -- Table structure for table `t_m_transaksi` -- CREATE TABLE `t_m_transaksi` ( `id_transaksi` int(11) NOT NULL, `tanggal_transaksi` date NOT NULL, `ket_transaksi` varchar(255) NOT NULL, `kode_transaksi` varchar(50) NOT NULL, `jenis_transaksi` varchar(20) NOT NULL COMMENT '1) Pemasukan 2) Pengeluaran' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `t_m_transaksi` -- INSERT INTO `t_m_transaksi` (`id_transaksi`, `tanggal_transaksi`, `ket_transaksi`, `kode_transaksi`, `jenis_transaksi`) VALUES (111, '2020-10-14', 'Hai kamu', 'BB0001', '2'), (115, '2020-10-15', 'Pemasukan bank', 'PM0002', '1'); -- -------------------------------------------------------- -- -- Table structure for table `t_t_jurnal` -- CREATE TABLE `t_t_jurnal` ( `id_jurnal` int(11) NOT NULL, `rid_akun` int(11) NOT NULL, `rid_transaksi` int(11) DEFAULT NULL, `debit` bigint(20) DEFAULT NULL, `kredit` bigint(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `t_t_jurnal` -- INSERT INTO `t_t_jurnal` (`id_jurnal`, `rid_akun`, `rid_transaksi`, `debit`, `kredit`) VALUES (45, 39, 111, 9000, NULL), (46, 80, 111, NULL, 9000), (47, 92, 115, 60000, NULL), (48, 58, 115, NULL, 60000); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `username` varchar(30) NOT NULL, `password` varchar(50) NOT NULL, `nama` varchar(200) NOT NULL, `email` varchar(50) NOT NULL, `role` enum('yayasan','bendahara','') NOT NULL, `photo` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id`, `username`, `password`, `nama`, `email`, `role`, `photo`) VALUES (1, 'yayasan', 'yayasan', '<PASSWORD>', '<EMAIL>', 'yayasan', 'avatar-1.jpg'), (2, 'bendahara', 'bendahara123', 'Bendahara', '<EMAIL>', 'bendahara', 'avatar-5.jpg'), (3, 'bidiana', 'bidiana', 'Bidiana ', '<EMAIL>', 'yayasan', 'bidiana.jpg'); -- -- Indexes for dumped tables -- -- -- Indexes for table `t_m_akun1` -- ALTER TABLE `t_m_akun1` ADD PRIMARY KEY (`id_akun1`); -- -- Indexes for table `t_m_akun2` -- ALTER TABLE `t_m_akun2` ADD PRIMARY KEY (`id_akun2`), ADD KEY `rid_akun1` (`rid_akun1`); -- -- Indexes for table `t_m_transaksi` -- ALTER TABLE `t_m_transaksi` ADD PRIMARY KEY (`id_transaksi`); -- -- Indexes for table `t_t_jurnal` -- ALTER TABLE `t_t_jurnal` ADD PRIMARY KEY (`id_jurnal`), ADD KEY `rid_akun` (`rid_akun`), ADD KEY `rid_beban` (`rid_transaksi`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `t_m_akun1` -- ALTER TABLE `t_m_akun1` MODIFY `id_akun1` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `t_m_akun2` -- ALTER TABLE `t_m_akun2` MODIFY `id_akun2` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=93; -- -- AUTO_INCREMENT for table `t_m_transaksi` -- ALTER TABLE `t_m_transaksi` MODIFY `id_transaksi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=116; -- -- AUTO_INCREMENT for table `t_t_jurnal` -- ALTER TABLE `t_t_jurnal` MODIFY `id_jurnal` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- Constraints for dumped tables -- -- -- Constraints for table `t_m_akun2` -- ALTER TABLE `t_m_akun2` ADD CONSTRAINT `t_m_akun2_ibfk_1` FOREIGN KEY (`rid_akun1`) REFERENCES `t_m_akun1` (`id_akun1`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!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 */;
SELECT a.FirstName, a.LastName, FORMAT(BirthDate,'MM-dd-yyyy') AS BirthDate, c.[Name] AS Hometown, a.Email FROM Accounts a LEFT JOIN Cities c ON c.Id = a.CityId WHERE a.Email LIKE 'e%' ORDER BY Hometown
<filename>database/migrations/00003_trivial_equity_table.sql -- +goose Up CREATE TABLE equity ( instrument_id SERIAL, pay_currency_id INTEGER, exercise_currency_id INTEGER, company_currency_id INTEGER, -- from_date TIMESTAMP(3) NOT NULL, thru_date TIMESTAMP(3), -- created_at TIMESTAMP(3) NOT NULL DEFAULT NOW(), created_by VARCHAR(25) NOT NULL, updated_at TIMESTAMP(3) NOT NULL DEFAULT NOW(), updated_by VARCHAR(25) NOT NULL, -- CONSTRAINT pk_equity PRIMARY KEY (instrument_id), CONSTRAINT fk_equity_instrument FOREIGN KEY (instrument_id) REFERENCES instrument (id), CONSTRAINT fk_equity_pay_currency FOREIGN KEY (pay_currency_id) REFERENCES instrument (id), CONSTRAINT fk_equity_exercise_currency FOREIGN KEY (exercise_currency_id) REFERENCES instrument (id), CONSTRAINT fk_equity_company_currency FOREIGN KEY (company_currency_id) REFERENCES instrument (id) ); CREATE INDEX idx_equity_instrument_id on equity(instrument_id); CREATE INDEX idx_equity_pay_currenty_id on equity(pay_currency_id); CREATE INDEX idx_equity_exercise_currency_id on equity(exercise_currency_id); CREATE INDEX idx_equity_company_currency_id on equity(company_currency_id); -- +goose Down DROP TABLE equity;
<reponame>fhdyt/gig<filename>db/GOLDEN_ISLAND_2021-05-06@06:18.sql -- MySQL dump 10.16 Distrib 10.1.48-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: GOLDEN_ISLAND -- ------------------------------------------------------ -- Server version 10.1.48-MariaDB-0+deb9u2 /*!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 utf8mb4 */; /*!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 `AKUN` -- DROP TABLE IF EXISTS `AKUN`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `AKUN` ( `AKUN_INDEX` int(11) NOT NULL AUTO_INCREMENT, `AKUN_ID` varchar(200) DEFAULT NULL, `AKUN_NAMA` varchar(200) DEFAULT NULL, `AKUN_KATEGORI` varchar(100) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`AKUN_INDEX`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `AKUN` -- LOCK TABLES `AKUN` WRITE; /*!40000 ALTER TABLE `AKUN` DISABLE KEYS */; INSERT INTO `AKUN` VALUES (1,'ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533','Kas Besar','Kas dan Bank','2021-04-28 05:33:36','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(2,'ebf31ee211222ac4a098c209272aa184046ffdea202104280533','Bank','Kas dan Bank','2021-04-28 05:33:42','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(3,'162657b0ade693b57d3c7c9480f2fed3ebcf2901202104280533','Kas Kecil','Kas dan Bank','2021-04-28 05:33:47','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(4,'e73012b450d436169c3047d17f75998207834780202104280533','Giro','Kas dan Bank','2021-04-28 05:33:54','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'); /*!40000 ALTER TABLE `AKUN` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `APLIKASI` -- DROP TABLE IF EXISTS `APLIKASI`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `APLIKASI` ( `APLIKASI_INDEX` int(11) NOT NULL AUTO_INCREMENT, `APLIKASI_ID` varchar(200) DEFAULT NULL, `APLIKASI_NAMA` varchar(50) DEFAULT NULL, `APLIKASI_LINK` varchar(50) DEFAULT NULL, `APLIKASI_ICON` varchar(50) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, PRIMARY KEY (`APLIKASI_INDEX`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `APLIKASI` -- LOCK TABLES `APLIKASI` WRITE; /*!40000 ALTER TABLE `APLIKASI` DISABLE KEYS */; INSERT INTO `APLIKASI` VALUES (1,'20210324033159197691698709640085196555710639272','Sistem','sistem','fas fa-cogs','2021-03-24 03:31:59','221122',NULL,NULL,NULL,NULL,'AKTIF'),(2,'20210324081851323641112453178166247190886925091','Distribusi','distribusi','fas fa-box-open','2021-03-24 08:18:33','221122',NULL,NULL,NULL,NULL,'AKTIF'),(3,'202103240821548682284734942601866135507990747741','Akuntansi','akuntansi','fas fa-calculator','2021-03-24 08:21:47','221122',NULL,NULL,NULL,NULL,'AKTIF'),(4,'202103241001208338571567833375608946797303992758','Master','master','fas fa-database','2021-03-24 10:01:43','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'),(5,'202103251028564773277796662616325216594','Konfigurasi','konfigurasi','fas fa-cog','2021-03-25 10:28:03','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'),(6,'202104090947287661991878353214208189575','Pembelian','pembelian','fas fa-shopping-cart','2021-04-09 09:47:58','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'),(7,'2a9f72caa1bd51782339fc4e802855f87a8f1e0f202104141019','Produksi','produksi','fas fa-warehouse','2021-04-14 10:19:11','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'),(8,'fa889941aa4c204f32fea23b2523f7d024e3cbd2202104220736','Laporan','laporan','fas fa-file-contract','2021-04-22 07:36:23','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'),(9,'ad8a49514a9637bff0d1fb1d5370eaafe81dd826202104240754','<NAME>','manajemen_tabung','fas fa-vail','2021-04-24 07:54:25','20210324091898698077937486910538048978852219159','2021-04-24 07:55:20','20210324091898698077937486910538048978852219159',NULL,NULL,'EDIT'),(10,'ad8a49514a9637bff0d1fb1d5370eaafe81dd826202104240754','<NAME>','manajemen_tabung','fas fa-vial','2021-04-24 07:55:20','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'); /*!40000 ALTER TABLE `APLIKASI` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `BUKU_BESAR` -- DROP TABLE IF EXISTS `BUKU_BESAR`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `BUKU_BESAR` ( `BUKU_BESAR_INDEX` int(10) NOT NULL AUTO_INCREMENT, `BUKU_BESAR_ID` varchar(200) DEFAULT NULL, `BUKU_BESAR_REF` varchar(200) DEFAULT NULL, `AKUN_ID` varchar(200) DEFAULT NULL, `BUKU_BESAR_TANGGAL` date DEFAULT NULL, `BUKU_BESAR_JENIS` varchar(50) DEFAULT NULL, `BUKU_BESAR_KREDIT` int(10) DEFAULT NULL, `BUKU_BESAR_DEBET` int(10) DEFAULT NULL, `BUKU_BESAR_SUMBER` varchar(100) DEFAULT NULL, `BUKU_BESAR_KETERANGAN` text, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`BUKU_BESAR_INDEX`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `BUKU_BESAR` -- LOCK TABLES `BUKU_BESAR` WRITE; /*!40000 ALTER TABLE `BUKU_BESAR` DISABLE KEYS */; INSERT INTO `BUKU_BESAR` VALUES (2,'726719315fc8337bcbe9a6b56e19a99df92f3fdb202105030739','ad7513d57d19d8ef279f378432c1607c9adb53c0202105030737','ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533','2021-05-03','KREDIT',30000000,0,'PEMBELIAN','Pembayaran Uang Muka 0001/PO/BBS/05-21','2021-05-03 07:39:08','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(3,'ca38b41bf059f4c82a7bc0b9d6d3f711a5b979ba202105030740','d0c7a6ac0274679feb294e566964832c0032d098202105030739','ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533','2021-05-03','KREDIT',2000000,0,'PEMBELIAN','Pembayaran Biaya Lainnya 0001/PD/BBS/05-21','2021-05-03 07:40:26','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(4,'f77b8a12785084d58ea96a0d32fa9947dfd380a4202105030741','6ee83009882ae653b2fef0c3cc87e9dd9cc8031c202105030740','ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533','2021-05-03',NULL,5000000,0,'PEMBELIAN','Pembayaran 0001/PI/BBS/05-21','2021-05-03 07:41:11','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(5,'ba8a6b597a01f1edcf734f130bfaa3281a35a378202105030743','','ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533','2021-05-03','KREDIT',0,2147483647,'BUKU BESAR','Saldo Awal','2021-05-03 07:43:16','202103251100891967627490214206329560',NULL,NULL,'2021-05-03 07:43:26','202103251100891967627490214206329560','DELETE','BBS'),(6,'8d59f0cc8a8cf16c3351a0dc7e84509ee306c1e4202105030743','','ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533','2021-05-03','KREDIT',0,1000000000,'BUKU BESAR','<NAME>','2021-05-03 07:43:40','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(7,'03ea37be22fb665da803cd360bbacab2e7416fb6202105030744','','ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533','2021-05-03','KREDIT',5700000,0,'PEMBELIAN','Pembayaran Hutang','2021-05-03 07:44:19','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(8,'d1433e8c6b9be9c50f61817db7281e48b79c5b09202105030745','47e79e71a252e14bdaa76f5060161d4efc8bffa3202105030744','ebf31ee211222ac4a098c209272aa184046ffdea202104280533','2021-05-03','KREDIT',10000000,0,'PEMBELIAN','Pembayaran Biaya Lainnya 0002/PD/BBS/05-21','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(9,'00bc7b5bc900eae68ec0420871fc6e15d65a1a00202105030746','5339ecd560a3d2007e37fdd978bc71c02aa5ae18202105030745','ebf31ee211222ac4a098c209272aa184046ffdea202104280533','2021-05-03',NULL,110000000,0,'PEMBELIAN','Pembayaran 0002/PI/BBS/05-21','2021-05-03 07:46:17','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(10,'f74eda8c3dd4ac10b4a13c6f5a797d12d7757735202105030749','6ea3d0e74b187e783861dd9e9057e63982b79c17202105030748','ebf31ee211222ac4a098c209272aa184046ffdea202104280533','2021-05-03','KREDIT',99000000,0,'PEMBELIAN','Pembayaran Uang Muka 0002/PO/BBS/05-21','2021-05-03 07:49:43','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(11,'6f0ef212ee10f1eb17e5921e0907bd5b8d82c561202105030751','1fa2d46a3f1edd94e68765cd87f656e99c90018a202105030750','ebf31ee211222ac4a098c209272aa184046ffdea202104280533','2021-05-03','KREDIT',0,0,'PEMBELIAN','Pembayaran Biaya Lainnya 0003/PD/BBS/05-21','2021-05-03 07:51:01','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(12,'0b36ff9a0cec6f28f6392e5a08810d656b32cb9a202105030751','de108f31fec3a01731ba2644f3532e58713fcc06202105030751','ebf31ee211222ac4a098c209272aa184046ffdea202104280533','2021-05-03',NULL,0,19800000,'PEMBELIAN','Pembayaran 0003/PI/BBS/05-21','2021-05-03 07:51:44','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(13,'cd86ebeebab1178fd53e981ab8e711c799119fc8202105030805','','ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533','2021-05-03','KREDIT',10000000,0,'BUKU BESAR','Untuk Kas Kecil','2021-05-03 08:05:40','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(14,'ba3c4641e4cc7d168ba333c5f20c6c36594a2350202105030805','','162657b0ade693b57d3c7c9480f2fed3ebcf2901202104280533','2021-05-03','KREDIT',0,10000000,'BUKU BESAR','Masuk dari kas besar','2021-05-03 08:05:59','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'); /*!40000 ALTER TABLE `BUKU_BESAR` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `DETAIL_TABUNG` -- DROP TABLE IF EXISTS `DETAIL_TABUNG`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `DETAIL_TABUNG` ( `DETAIL_TABUNG_INDEX` int(11) NOT NULL AUTO_INCREMENT, `DETAIL_TABUNG_ID` varchar(200) DEFAULT NULL, `GRUP_ID` varchar(50) DEFAULT NULL, `DETAIL_TABUNG_JENIS` varchar(50) DEFAULT NULL, `DETAIL_TABUNG_NOMOR` varchar(50) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`DETAIL_TABUNG_INDEX`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `DETAIL_TABUNG` -- LOCK TABLES `DETAIL_TABUNG` WRITE; /*!40000 ALTER TABLE `DETAIL_TABUNG` DISABLE KEYS */; /*!40000 ALTER TABLE `DETAIL_TABUNG` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `HUTANG` -- DROP TABLE IF EXISTS `HUTANG`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `HUTANG` ( `HUTANG_INDEX` int(10) NOT NULL AUTO_INCREMENT, `HUTANG_ID` varchar(200) DEFAULT NULL, `HUTANG_REF` varchar(200) DEFAULT NULL, `AKUN_ID` varchar(200) DEFAULT NULL, `MASTER_SUPPLIER_ID` varchar(200) DEFAULT NULL, `HUTANG_TANGGAL` date DEFAULT NULL, `HUTANG_KREDIT` int(10) DEFAULT NULL, `HUTANG_DEBET` int(10) DEFAULT NULL, `HUTANG_SUMBER` varchar(100) DEFAULT NULL, `HUTANG_KETERANGAN` text, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`HUTANG_INDEX`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `HUTANG` -- LOCK TABLES `HUTANG` WRITE; /*!40000 ALTER TABLE `HUTANG` DISABLE KEYS */; INSERT INTO `HUTANG` VALUES (2,'d08980db7617bcfb4938a36e4e3d46f23a699005202105030741','6ee83009882ae653b2fef0c3cc87e9dd9cc8031c202105030740','ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533','0e890276c880805319a45180e9cce3a4b0aa11b4202105030731','2021-05-03',0,5700000,'PEMBELIAN','Hutang Pembelian 0001/PI/BBS/05-21','2021-05-03 07:41:11','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(3,'6f93b561e2ab438e7722a400dcfb91da76baecb4202105030744','6ee83009882ae653b2fef0c3cc87e9dd9cc8031c202105030740','ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533','0e890276c880805319a45180e9cce3a4b0aa11b4202105030731','2021-05-03',5700000,0,'PEMBELIAN','Pembayaran Hutang','2021-05-03 07:44:19','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(4,'e37ab9f5a452a567894816a965d3a3c87b6d0f41202105030746','5339ecd560a3d2007e37fdd978bc71c02aa5ae18202105030745','ebf31ee211222ac4a098c209272aa184046ffdea202104280533','44e05ad66a19369f044620fd63823b0e9657917b202105030735','2021-05-03',0,0,'PEMBELIAN','Hutang Pembelian 0002/PI/BBS/05-21','2021-05-03 07:46:17','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(5,'ef7df73ec6a4c08903379a5da1e345fcddc30f7a202105030751','de108f31fec3a01731ba2644f3532e58713fcc06202105030751','ebf31ee211222ac4a098c209272aa184046ffdea202104280533','44e05ad66a19369f044620fd63823b0e9657917b202105030735','2021-05-03',0,0,'PEMBELIAN','Hutang Pembelian 0003/PI/BBS/05-21','2021-05-03 07:51:44','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'); /*!40000 ALTER TABLE `HUTANG` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `JURNAL_TABUNG` -- DROP TABLE IF EXISTS `JURNAL_TABUNG`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `JURNAL_TABUNG` ( `JURNAL_TABUNG_INDEX` int(11) NOT NULL AUTO_INCREMENT, `JURNAL_TABUNG_ID` varchar(200) DEFAULT NULL, `MASTER_BARANG_ID` varchar(200) DEFAULT NULL, `MASTER_RELASI_ID` varchar(200) DEFAULT NULL, `JURNAL_FORM_ID` varchar(200) NOT NULL, `SURAT_JALAN_NOMOR` varchar(200) NOT NULL, `TTBK_NOMOR` varchar(200) NOT NULL, `JURNAL_TABUNG_TANGGAL` date DEFAULT NULL, `JURNAL_TABUNG_TANGGAL_KEMBALI` date NOT NULL, `JURNAL_TABUNG_KIRIM` int(11) DEFAULT NULL, `JURNAL_TABUNG_KEMBALI` int(11) DEFAULT NULL, `JURNAL_TABUNG_STATUS` varchar(50) DEFAULT NULL, `JURNAL_TABUNG_KETERANGAN` text, `JURNAL_TABUNG_FILE` text NOT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`JURNAL_TABUNG_INDEX`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=174 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `JURNAL_TABUNG` -- LOCK TABLES `JURNAL_TABUNG` WRITE; /*!40000 ALTER TABLE `JURNAL_TABUNG` DISABLE KEYS */; INSERT INTO `JURNAL_TABUNG` VALUES (1,'79fa2288593014202c33022bd39e0fb6d6de33b6202104170340','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','c4c86f050a2f784dc69f8f3348969821c1fbc4bd202104170337','','','','2021-04-17','0000-00-00',10,0,'MP','','','2021-04-17 03:40:05','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-04-17 04:18:41','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(2,'a71913df8b2b668f45ea54d2352aec2a583913b6202104170340','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','c4c86f050a2f784dc69f8f3348969821c1fbc4bd202104170337','','','','2021-04-17','0000-00-00',10,0,'MP','','','2021-04-17 03:40:32','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-04-17 04:18:47','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(3,'a7cad06141aaa112d50c705d4edeca222eac644e202104170341','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','c4c86f050a2f784dc69f8f3348969821c1fbc4bd202104170337','','','','2021-04-18','0000-00-00',0,10,'MP','','','2021-04-17 03:41:26','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-04-17 03:46:17','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(4,'9a4a62a73b371a9708944cd670d0cd085d40ca70202104170417','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','c4c86f050a2f784dc69f8f3348969821c1fbc4bd202104170337','','','','2021-04-24','0000-00-00',0,20,'MP','','','2021-04-17 04:17:55','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-04-17 04:18:53','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(5,'6872dc52054e9269676f1bc4797dc735d8d71abd202104200214','a3894ae921df9771cf959fc25124434beb6cd34f202104170334','c4c86f050a2f784dc69f8f3348969821c1fbc4bd202104170337','','','','0000-00-00','0000-00-00',0,121,'MP','','','2021-04-20 02:14:53','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-04-20 02:15:28','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(6,'d6896f899ec221866427b42fbbabdb583e7dc70e202104200246','2bf0c028892571b26d166c81a4e72cef933050f5202104200246','9c4c13184b6c49454dfd3710a39fed96cd158547202104170319','','','','2021-04-20','0000-00-00',10,1,'MP','Saldo Awal (Manual)','88f9398a75013bdb80ad21617dd93900936c8e9f.png','2021-04-20 02:46:50','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(7,'09eb806bf6917d9e8a5b482e5d09cb5bc2052651202104200247','2bf0c028892571b26d166c81a4e72cef933050f5202104200246','9c4c13184b6c49454dfd3710a39fed96cd158547202104170319','','','','2021-04-21','0000-00-00',9,10,'MP','Saldo Awal (Manual)','empty','2021-04-20 02:47:12','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(8,'aef5efc538d7a6b941b04ed5c59f8a6f2d1bbebc202104220809','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','7413748c223aed1c810d57a9052a12ba06177bed202104170337','','','','2021-04-22','0000-00-00',22,0,'MP','Saldo fisik cuma ada 20 tbg, tetapi di ttbk relasi mengakui ada 22 tbg','empty','2021-04-22 08:09:56','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(9,'e669d9cca9f94ef3d94843ed78077e834756dfe6202104230657','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','99b447587eefbb29648f31e87b1a99b152697da8202104230655','','','','2021-04-23','0000-00-00',8,0,'MP','Saldo Awal ','empty','2021-04-23 06:57:45','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(10,'356baa9a3cc23ca52884bf32c39fbcb51945a213202104230658','e24984f37f4c7252f30e05d734ca2a0b278f39ca202104170333','99b447587eefbb29648f31e87b1a99b152697da8202104230655','','','','2021-04-23','0000-00-00',4,0,'MP','Saldo Awal ','empty','2021-04-23 06:58:25','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(11,'0ec7f58ac004d24b3ad490ca6e6fd7def2927e0f202104230703','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','99b447587eefbb29648f31e87b1a99b152697da8202104230655','','','','2021-04-23','0000-00-00',0,1,'MR','Tukar isi','empty','2021-04-23 07:03:15','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-04-23 07:08:59','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(12,'d932696a53146780996b4d55d7fb528662324c82202104230704','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','99b447587eefbb29648f31e87b1a99b152697da8202104230655','','','','2021-04-23','0000-00-00',1,0,'MP','Perorangan','empty','2021-04-23 07:04:06','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-04-23 07:09:03','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(13,'ac1ad433747851074d66b5c3138493482ac3999b202104230706','24e4e0da0d3c1b2ee635279b4c2b282d525ed763202104230705','99b447587eefbb29648f31e87b1a99b152697da8202104230655','','','','2021-04-23','0000-00-00',2,0,'MP','Saldo Awal (Manual)','empty','2021-04-23 07:06:51','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(14,'dc86ccba7db58ce73c46e661387645cf8c1c6a8a202104230707','24e4e0da0d3c1b2ee635279b4c2b282d525ed763202104230705','99b447587eefbb29648f31e87b1a99b152697da8202104230655','','','','2021-04-23','0000-00-00',0,1,'MR','Saldo Awal (Manual)','empty','2021-04-23 07:07:12','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-04-27 05:07:08','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(15,'f170b88b8d3ac97c225012acc20971af3664f105202104230710','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','6516177bc24f6849088978348ef0f4cc24cbb20f202104230702','','','','2021-04-23','0000-00-00',0,1,'MR','Tukar isi','empty','2021-04-23 07:10:49','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(16,'d38fa442a0149b59b1b5714462fae4eec9fb6586202104230712','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','6516177bc24f6849088978348ef0f4cc24cbb20f202104230702','','','','2021-04-23','0000-00-00',1,0,'MP','Tukar isi','empty','2021-04-23 07:12:16','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(17,'ba94f60e758d29755c740a3659d7a66f402429c2202104230721','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','7413748c223aed1c810d57a9052a12ba06177bed202104170337','','','','2021-04-23','0000-00-00',15,0,'MP','Saldo Awal (Manual)','371d68935c7f8f6335402855c4fa977d6459c560.jpg','2021-04-23 07:21:43','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,'2021-04-23 07:22:18','a967273870e7e060b4c977392acfec201080f106202104200249','DELETE','BGS'),(18,'7547c05c401642969c7b5a4f2b2cf9e5a42acef4202104230818','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','387066d4dd17408162e34e4abddd45070c559c37202104200331','','','','2021-04-23','0000-00-00',31,0,'MP','Saldo Awal, di cylinder control 37 tabung','empty','2021-04-23 08:18:49','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(19,'a40b35129031e9238a70aacf124c33596f1d26a2202104230819','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','7413748c223aed1c810d57a9052a12ba06177bed202104170337','','','','2021-04-23','0000-00-00',15,0,'MP','Supir deni.seklian bwa tbg bhyngkara','5c839ede9c9d14fa49c38155fc7a238a358a98c0.jpg','2021-04-23 08:19:04','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(20,'6e0f86dfabc354f3889913b66ba4adc66ab1f4c6202104230820','6a455a2f525b06f8ac2d36ebff7f223597a456a5202104230820','387066d4dd17408162e34e4abddd45070c559c37202104200331','','','','2021-04-23','0000-00-00',1,0,'MP','Saldo Awal ','empty','2021-04-23 08:20:50','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(21,'a49f94bbb88c7d06a7eba4d12eb4688a9a613068202104240455','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','7413748c223aed1c810d57a9052a12ba06177bed202104170337','','','','2021-04-23','0000-00-00',15,15,'MP','Supir deni','empty','2021-04-24 04:55:13','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,'2021-04-24 05:14:58','a967273870e7e060b4c977392acfec201080f106202104200249','DELETE','BGS'),(22,'9102aaa6ad6db70953829cb788981fcc434d14ec202104240456','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','83743a8f6b30cd66276b11a0ada31e4c99aecbe9202104240455','','','','2021-04-24','0000-00-00',4,0,'MP','Saldo Awal ','empty','2021-04-24 04:56:34','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(23,'53852650fcb1023a6c74b9282889e3ade6633f0e202104240456','94f18c7c47b645fce03fe4a1462ad9083287a2f3202104170335','83743a8f6b30cd66276b11a0ada31e4c99aecbe9202104240455','','','','2021-04-24','0000-00-00',4,0,'MP','Saldo Awal','empty','2021-04-24 04:56:59','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(24,'0118c47c33cb55e5fa575e0053eef9625d23fe97202104240500','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','fc4e9e6447ee235e40285735c496e8db79356958202104240459','','','','2021-04-24','0000-00-00',7,0,'MP','Saldo Awal ','empty','2021-04-24 05:00:10','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(25,'aac067cff68cb4587fbd4e4033c10628830e8a71202104240501','4e52bc9ed58d3ac82eb23447b21c39da77e01de2202104170334','fc4e9e6447ee235e40285735c496e8db79356958202104240459','','','','2021-04-24','0000-00-00',1,0,'MP','Saldo Awal cocok','empty','2021-04-24 05:01:28','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(26,'4fe18018b547ea3c64650a4ae0f42cd87f853ea3202104240507','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','f7d7e59e4b19079d69249f6ecfba1a90fcf300d3202104240502','','','','2021-04-24','0000-00-00',26,0,'MP','Cylinder control 24 fisik 26','empty','2021-04-24 05:07:46','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(27,'ebd2aef650144dd0a9abdb74b5df0eed030bc37d202104240510','6a455a2f525b06f8ac2d36ebff7f223597a456a5202104230820','f7d7e59e4b19079d69249f6ecfba1a90fcf300d3202104240502','','','','2021-04-24','0000-00-00',2,0,'MP','Saldo Awal cocok','empty','2021-04-24 05:10:48','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(28,'3c62d341c6bec8590563216f4bbb71bf773d9553202104240511','0597e06b6e5b76f42a85b477493c60c7701eed80202104170332','f7d7e59e4b19079d69249f6ecfba1a90fcf300d3202104240502','','','','2021-04-24','0000-00-00',6,0,'MP','Saldo Awal cocok','empty','2021-04-24 05:11:06','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(29,'d78231d159316b6a8e708c45fd5919697d4b06be202104240517','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','7413748c223aed1c810d57a9052a12ba06177bed202104170337','','','','2021-04-23','0000-00-00',0,15,'MP','Supir deni','empty','2021-04-24 05:17:03','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(30,'03c220f8c29949d95ed2b335f2494d9fda130738202104240523','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','5b38ca2670c59a3774cc551dfd20a617fc6bec65202104240522','','','','2021-04-24','0000-00-00',2,0,'MP','Saldo Awal cocok','empty','2021-04-24 05:23:27','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(31,'4978d24c68a26a5aca6e0f3e1ce435f15a0065b5202104240523','94f18c7c47b645fce03fe4a1462ad9083287a2f3202104170335','5b38ca2670c59a3774cc551dfd20a617fc6bec65202104240522','','','','2021-04-24','0000-00-00',1,0,'MP','Saldo Awal ','empty','2021-04-24 05:23:45','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(32,'2e0c5c8761917290492bc94b72262263eb109c9a202104240527','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','5b38ca2670c59a3774cc551dfd20a617fc6bec65202104240522','','','','2021-04-24','0000-00-00',1,1,'MP','jaminan tgl 20 mei 20 oxygen 2 tbg c2h2 1 tbg','empty','2021-04-24 05:27:08','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(33,'557c00b9e3ee5839d655b140db5e027af1788064202104240528','94f18c7c47b645fce03fe4a1462ad9083287a2f3202104170335','5b38ca2670c59a3774cc551dfd20a617fc6bec65202104240522','','','','2021-04-24','0000-00-00',1,1,'MP','','empty','2021-04-24 05:28:50','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(34,'afb21d9f4efcfea25c7fd29354ca557ec53b5706202104240756','08f8d48f91fbc136dd2ac55af069d6be0002b4fe202104240756','<KEY>','c7bd2dffd627ce765adf5209160cc1d6aea4b525202104240756','nomor surat jalan','nomor ttbk','2021-04-01','2021-04-03',10,0,'MP','Saldo Awal (Manual)','','2021-04-24 07:56:37','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-24 07:58:13','20210324091898698077937486910538048978852219159','DELETE','BBS'),(35,'1f23747a64e0d155047c065a88ca88451bd60697202104240756','<KEY>','<KEY>','<KEY>','nomor surat jalan','nomor ttbk','2021-04-01','2021-04-03',12,0,'MR','Saldo Awal (Manual)','','2021-04-24 07:56:43','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-24 07:58:31','20210324091898698077937486910538048978852219159','DELETE','BBS'),(36,'d8d02d50953c0b90c3f79abcf89bc49daf9ca022202104240758','<KEY>','<KEY>','f0d40d0189815cd8838f920a4c0f6c9cf8211a31202104240758','surat jalan','ttbk','2021-04-01','2021-04-03',10,0,'MP','Saldo Awal (Manual)','','2021-04-24 07:58:54','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-24 07:59:24','20210324091898698077937486910538048978852219159','DELETE','BBS'),(37,'d29a44ebd0a39c7072700cd79e9911a8f186d852202104240758','08f8d48f91fbc136dd2ac55af069d6be0002b4fe202104240756','9c4c13184b6c49454dfd3710a39fed96cd158547202104170319','f0d40d0189815cd8838f920a4c0f6c9cf8211a31202104240758','surat jalan','ttbk','2021-04-01','2021-04-03',11,0,'MR','Saldo Awal (Manual)','','2021-04-24 07:58:58','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-24 07:59:30','20210324091898698077937486910538048978852219159','DELETE','BBS'),(38,'9890ac95523e290e2ea9da603acf43d8f823c322202104240811','792f537d9ee47b3fa4e67ef4fb1762c08c66b1eb202104230725','','cfb8891484abe5159f399bfffd9952545779afef202104240809','','',NULL,'0000-00-00',1,0,'MP','','empty','2021-04-24 08:11:41','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-04-24 08:11:48','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(39,'376ddb158291e58ec0dc204e7ce503393bbc90df202104241104','08f8d48f91fbc136dd2ac55af069d6be0002b4fe202104240756','','700da6c354362fce6d5ccd06b52aab64898ec24a202104241103','','',NULL,'0000-00-00',10,0,'MP','','empty','2021-04-24 11:04:06','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'DRAFT','BBS'),(40,'45b7ce9f21155980db5bc151407da972f4f85153202104241104','08f8d48f91fbc136dd2ac55af069d6be0002b4fe202104240756','','700da6c354362fce6d5ccd06b52aab64898ec24a202104241103','','',NULL,'0000-00-00',0,10,'MR','','empty','2021-04-24 11:04:15','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'DRAFT','BBS'),(41,'f8234cc6adc1295f6389985cc432d859a5405c9d202104260254','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','2736a2008d51bb3d8eac65baa17e40742dbaab8a202104260252','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 02:54:49','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(42,'a3a3bb8961fe12be79282cf85bd5d872298e335b202104260300','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','69845efe9fef61a0117cc3b5b07dfcaf55607d5a202104260259','','','','2021-04-26','0000-00-00',3,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 03:00:09','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(43,'b89a00df0533de61187d6cde78c144e8ae6311ef202104260302','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','d3dafb700eb34b45db9f8f80c1e8890700953a5a202104260302','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 03:02:42','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(44,'f1f5f049ecd2f981aa4af7d3f9eb4d5b2dac1744202104260312','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','9906173ac0a27e6c22e9bdeb35bca19002430396202104260312','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 03:12:27','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(45,'c4940964234349c9c840e6ac4797d977d6d2178b202104260316','0597e06b6e5b76f42a85b477493c60c7701eed80202104170332','bdb5f25619bbb32d11def7d1fe9868930ad6a4c4202104260315','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 03:16:22','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(46,'877e63b9f90e81e0d1430b89c4095a24ac9bcf26202104260319','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','9e9dc3771d22999d7385dc37fe8d1b2340aa0170202104260318','','','','2021-04-26','0000-00-00',2,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 03:19:21','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(47,'f460e59116bf2f264ac0127a6f88180362d6569c202104260324','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','72ee64d295a7e4256447a5ff289980e08fb819b1202104260324','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual) dipinjamkan','empty','2021-04-26 03:24:53','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(48,'e0020a715ebee26103acda83294a69fa9bdab53d202104260331','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','5bee7f79209faa01be275ce83aa5faaf92d6811d202104260331','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual) Jaminan','empty','2021-04-26 03:31:54','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(49,'6f39ffa9dc9970f014f29eb28b23df4a99e61caf202104260335','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','611b14f378c5bae33d1914ede8a795e16a270bd3202104260334','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 03:35:17','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(50,'684092d7209027d9dd8a0a8c113ea761077a6e33202104260351','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','8b5005b958ecb874b4e3f3cbd90a621407c37b53202104260350','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 03:51:09','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(51,'2d989916172c5b7a591dbbab8f3e828beea7bd79202104260405','a3894ae921df9771cf959fc25124434beb6cd34f202104170334','2ef2991314cbde7d1c0cc4f6f6964d55898960f8202104260405','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 04:05:49','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(52,'604387091d2c6b2a9b0d14144ce3bd5f531d4baf202104260408','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','ac0fc4d431f0a0b310d4f732be99f8af671e33d4202104260407','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 04:08:19','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(53,'c600e09a746c9f7a8a33acffced8ea9d920bffb3202104260410','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','689731a3066bea474d2e94060427ba257479f2d2202104260410','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 04:10:35','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(54,'f753fdf4e91866c9abe4b4d82b04628649ad6838202104260413','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','cd72d4aeb1796723bd074df787637207e3d8f3a1202104260412','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 04:13:16','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(55,'96a613f3968f9d6ddb3649017064a05587d2c04c202104260420','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','a8154cdb476caa34d6ac9d6215c370e61bafb194202104260419','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 04:20:16','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(56,'dcf81409442d0bec35fc1d6c295d212ad5245511202104260439','94f18c7c47b645fce03fe4a1462ad9083287a2f3202104170335','995578d8ee41c36b14a01d06fd608fc8798cf6f5202104260439','','','','2021-04-26','0000-00-00',5,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 04:39:41','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(57,'6f74571b2bd1862b476e70d8a52a7a54045b3119202104260442','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','e46b1fc9589e25019eddb8aa2c8b7a5d8246b1d5202104260442','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan','empty','2021-04-26 04:42:44','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(58,'538bfc89e7d5377de05d077f19a33038ff955f97202104260459','a3894ae921df9771cf959fc25124434beb6cd34f202104170334','79012faf431aace4ac9e147a8b54f7554de453b1202104260458','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual) ','empty','2021-04-26 04:59:04','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(59,'a3157f48118eb0de287f0cbe9310971eacb6abff202104260502','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','e103a230212956cd55f831e0655b3b37d93075dc202104260502','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan','empty','2021-04-26 05:02:51','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(60,'22103a1a5f40cf50c0e2f233b6cbb604634386ea202104260513','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','d9ec437da7292c9a6aa66a30f5ebf655dd5fc5d4202104260512','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 05:13:11','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(61,'f6379683ee37fa4d79727743084801e2195854d9202104260520','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','e2ae0724c7259982ee58ce4b788da200cf54c7f2202104260520','','','','2021-04-26','0000-00-00',13,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 05:20:46','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(62,'3aa82f6cc6900dfd2a4e4772a3d5bab31086bcad202104260521','24e4e0da0d3c1b2ee635279b4c2b282d525ed763202104230705','e2ae0724c7259982ee58ce4b788da200cf54c7f2202104260520','','','','2021-04-26','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-26 05:21:01','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(63,'c49cb2515dc42c31839d240bff0e5f83963cf47a202104260652','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','dce59b278cdc626e44fb1a5a52623d30930673ee202104260651','','','','2021-04-26','0000-00-00',2,0,'MP','Saldo Awal (Manual) jaminan','empty','2021-04-26 06:52:42','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(64,'9bc4230df1052c8410b779697ebc6c0907191d36202104260751','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','','0b508fe39ff0ee80e21845c3165639fb65d9bfe9202104260749','','',NULL,'0000-00-00',1,1,'MP','','empty','2021-04-26 07:51:45','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'DRAFT','BGS'),(65,'24c1fb75ade642c01e3af369c384523385f414f6202104260754','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','ac0fc4d431f0a0b310d4f732be99f8af671e33d4202104260407','c3e25af42ac0ce6d4218b49bc88b9075cd966830202104260753','22116','109667','2021-04-24','2021-04-24',1,1,'MP','Saldo Awal (Manual)','empty','2021-04-26 07:54:52','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(66,'284565a4d84821cbad66d2dd4849544ea537c500202104260802','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','5b38ca2670c59a3774cc551dfd20a617fc6bec65202104240522','b1009670ae506aa82663a03eeb1bbfffecb0a2a7202104260759','22117','-','2021-04-24','2021-04-24',1,1,'MP','Saldo Awal (Manual)','empty','2021-04-26 08:02:19','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(67,'a0181ba075bd4586433107bef67e5d571df628a0202104260802','94f18c7c47b645fce03fe4a1462ad9083287a2f3202104170335','5b38ca2670c59a3774cc551dfd20a617fc6bec65202104240522','b1009670ae506aa82663a03eeb1bbfffecb0a2a7202104260759','22117','-','2021-04-24','2021-04-24',1,1,'MP','Saldo Awal (Manual)','empty','2021-04-26 08:02:35','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(68,'ea2e80180030c96745f4fc52aae1614d7f0a97bd202104260806','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','7413748c223aed1c810d57a9052a12ba06177bed202104170337','96581a02de3fdfad9d7560907288d3b2acd37e60202104260801','22146','-','2021-04-25','2021-04-25',13,13,'MP','Saldo Awal (Manual)','empty','2021-04-26 08:06:50','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(69,'e3079c8de243c94cd0b5b88e39e11b76dcf45bdc202104270243','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','f7d7e59e4b19079d69249f6ecfba1a90fcf300d3202104240502','41d0e976e65f6ce13cbfedfc4efef75bcb37be7a202104270242','22127','-','2021-04-24','2021-04-24',8,8,'MP','Saldo Awal (Manual)','empty','2021-04-27 02:43:47','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(70,'f2ded9cb2123d22ff8063e9054bcc377b28bb982202104270253','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','f16ed7feb663a607737f2cd48907a18b1a681ee2202104270253','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 02:53:41','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(71,'d399791fff3f5ef1198b0c7562cedb0af79afbfd202104270313','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','894526b9fde6dfd446bb48040c666aeefb56b179202104270312','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 03:13:20','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(72,'8ad10c12a3fcff543a378571a8cdac36e5f740d0202104270315','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','2e26166751198f3bc4d3464cf587ef0f9efbff09202104270314','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 03:15:10','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(73,'90bf0528983534d218e72953437d13f28d1851a9202104270316','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','9286d6441a3abdc5125b2346e85df228a1976dea202104270315','','','','2021-04-27','0000-00-00',2,0,'MP','Saldo Awal (Manual) jaminan 2 tabung','empty','2021-04-27 03:16:21','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(74,'1569010686ae833f61e1e1c3a5dfd82af0963e15202104270319','a3894ae921df9771cf959fc25124434beb6cd34f202104170334','92749cd7aeb78fc7384ce8b5dbed1f3609763256202104270319','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 03:19:55','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(75,'b5f8d5328ca63606a408492345d2753c4c2f6d52202104270322','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','2e502efe6eafeccf29f854e7cb1b35c0c0175947202104270321','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 03:22:20','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(76,'35795421d6dcbc8187a0168d66217df4660e3312202104270329','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','3cd296740ba7fc3409af4c34dfc9afe89854d065202104270323','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 03:29:03','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(77,'2a39ac2236f369bda779f67699e916c761316c39202104270347','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','df8b2e50bc7259cd98ef3d490503eec4e51105d9202104270345','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 03:47:42','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(78,'aa4de3dde3866f53cffce9c3d222175355a72f68202104270349','a3894ae921df9771cf959fc25124434beb6cd34f202104170334','e1f8090bd3605b5f53757aa236b65b96ea75b4d2202104270349','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-27 03:49:52','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-04-27 03:53:47','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(79,'1058a087d20271d2a10ee39e1367bd03c463c070202104270354','a3894ae921df9771cf959fc25124434beb6cd34f202104170334','e1f8090bd3605b5f53757aa236b65b96ea75b4d2202104270349','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 03:54:10','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(80,'e7b1e118e2b3d2d897f9347ea8d3f94526d09279202104270357','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','ee249e7d13ac9cbadaa8bc99a0804cc38998128b202104270356','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 03:57:25','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(81,'f2ba759e01b88f90e1c89a1130f581d9eeeda846202104270358','a3894ae921df9771cf959fc25124434beb6cd34f202104170334','a730e1759af3f24eb8ee4005713b26aba1d2b934202104270358','','','','2021-04-27','0000-00-00',2,0,'MP','Saldo Awal (Manual) jaminan 2 tabung','empty','2021-04-27 03:58:48','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(82,'1ddddbe8b2043d77526e30e2a1a9cf668d60bf88202104270401','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','ded4d8f2a7fe21f39a0db83979bac9cc88e424f2202104270400','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 04:01:33','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(83,'db1719713379874d9bee8cd0a1a9a336cb51b1f2202104270403','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','eb82ea5abd4d9befbb68319c8eb9fdc612b295e2202104270402','','','','2021-04-27','0000-00-00',3,0,'MP','Saldo Awal (Manual) 3 tabung jaminan','empty','2021-04-27 04:03:32','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(84,'6694764e12f3194de329604486b2ea779df10410202104270405','0597e06b6e5b76f42a85b477493c60c7701eed80202104170332','e15ed37e104af5d5b1e6e12cca7420d7cc6b74fd202104270404','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 04:05:49','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(85,'8f1ea470973bda23f96ee01d617e944d4a688b90202104270418','0597e06b6e5b76f42a85b477493c60c7701eed80202104170332','4e93618aee0c736d321c713a80f3a1ef8420616d202104270417','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) 1 jaminan tabung','empty','2021-04-27 04:18:02','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(86,'e56df6c9de792fa0fc62cde3ecc39added45d1a0202104270419','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','9c1dacc427406872466eb974af2fb5e751be9e1a202104270419','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 04:19:27','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(87,'b8ec64a0ae8a24ebafc2e9588a6b8cc4d5cadee4202104270420','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','b897cb2c05490a31778893a3cd5396ca1a5ae84b202104270420','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) 1 jaminan tabung','empty','2021-04-27 04:20:52','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(88,'0bf29126027ba50a822b293c3c9a87c22fb169e2202104270423','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','cf08b1c144ea4db7cc9f28f2db807d06643bab0c202104270423','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 04:23:56','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(89,'96971656094df992629f2143fbc47a0aa471018b202104270425','94f18c7c47b645fce03fe4a1462ad9083287a2f3202104170335','cf08b1c144ea4db7cc9f28f2db807d06643bab0c202104270423','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung c2h2','empty','2021-04-27 04:25:42','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(90,'b9d6562211eaf546f9cf4e622eefb284086f7672202104270426','a3894ae921df9771cf959fc25124434beb6cd34f202104170334','2172cab03a0b2157bb2232434b7b9a90c1682d83202104270426','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) 1 tabung jaminan','empty','2021-04-27 04:26:51','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(91,'8412d8ac04ac0ec927852c1a174479d741ff38b4202104270428','94f18c7c47b645fce03fe4a1462ad9083287a2f3202104170335','e78ca1b095c619e53d0ce1731856d38a6081d40f202104270427','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 04:28:21','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(92,'e2d054b17b227d1d834da9ba1e33a46b1d6d8a93202104270430','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','f8dc58640471f2204461c56a5c53d65c70925fa9202104270430','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 04:30:36','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(93,'27c797df21c00108d502b679209e18c9ee883256202104270431','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','f155605210f6e77b3d8ba934a6a60ef65b37e954202104270431','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) 1 jaminan tabung','empty','2021-04-27 04:31:23','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(94,'74c03dd591278b52c1cefd3d1fc70186c8a15c63202104270433','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','0f981cb96b7681d4113c8f6846485964022037a8202104270433','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) Jaminan 1 tabung','empty','2021-04-27 04:33:34','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(95,'e29671c0e979bd1169f57f7ff6e0a79615257634202104270434','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','25d05ceead69e6945bc6added805393323e153bf202104270434','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 04:34:56','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(96,'b05f6404debe0fd1f857efbf47773373a236b31f202104270437','4e52bc9ed58d3ac82eb23447b21c39da77e01de2202104170334','b59c109f6152d6b620cefee4f6038b567309c6d4202104270437','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) Jaminan 1 tabung','empty','2021-04-27 04:37:59','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(97,'bc1747fb51d57e79f3c5dccbb14dcdd0cf0258b5202104270440','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','71bf77a4d62edc7a68c3e3bad475f7ba810aca17202104270439','','','','2021-04-27','0000-00-00',4,0,'MP','Saldo Awal (Manual) 2 jaminan 2 dipinjamkan','empty','2021-04-27 04:40:35','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(98,'515a1aa92b7bc013986526055ffdfc18decab8da202104270443','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','5c435a54e51a78d8cfb8f5f856df69bb5a0ca6ef202104270443','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 04:43:28','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(99,'9a7f87643a54a5b34ac293272d165191b2b2a990202104270444','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','980c7b84cd950702a2c83b0dca52e6f5cef64542202104270444','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 04:44:24','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(100,'f84d89fa7df939283b56f9524d2c22d17a013f3d202104270455','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','7d027575b18391b0f25d93708e81792e9eb8dcb1202104270454','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 04:55:12','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(101,'b9e78db8a98f76a77023082d924ada02e8539e77202104270456','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','908544d632fd15e6d643e0ac2f54596a191305d7202104270455','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 04:56:08','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(102,'b27110094eb379a3eadae70dff1d96dfbe90f6dc202104270457','94f18c7c47b645fce03fe4a1462ad9083287a2f3202104170335','a32107a077d2bc02fa1dcfe2b1b2b8f877aa77b4202104270457','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 04:57:48','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(103,'56c1a6fbd5e8e7a49384dc8d420e2e3732d80a8a202104270459','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','69e948dd9f7b01b5e13975bcf73691ad7a703a7c202104270458','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung','empty','2021-04-27 04:59:01','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(104,'9d07fc941899c8fea0b1303262e2d55fbed67794202104270500','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','64424f41785ea5282605dbd1a3fb7616854e36c6202104270500','','','','2021-04-27','0000-00-00',1,0,'MP','Saldo Awal (Manual) jaminan 1 tabung ','empty','2021-04-27 05:00:26','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(105,'c773d99aeb35a0df42003917fba15a0c9fbaaeac202104270520','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','e2ae0724c7259982ee58ce4b788da200cf54c7f2202104260520','0f3585dbd6d42a3b21660709ed5211575cbae06d202104270519','22165','-','2021-04-26','2021-04-26',4,4,'MP','Saldo Awal (Manual)','empty','2021-04-27 05:20:36','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(106,'5fbaf809eb597c7d1c8f99f0df5a76c5e47607f5202104280241','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','3770164dcc832d5d0b16a7d6c7309aaddfee9ce1202104280239','','','','2021-04-28','0000-00-00',100,0,'MP','Saldo Awal (Manual) disewakan','empty','2021-04-28 02:41:23','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(107,'b6b715262fe70c0f7f9247b289ec2804388219ea202104280242','16f9c87b1402bc5ecd5d8c846c832f183295f46f202104170334','3770164dcc832d5d0b16a7d6c7309aaddfee9ce1202104280239','','','','2021-04-28','0000-00-00',20,0,'MP','Saldo Awal (Manual) disewakan','empty','2021-04-28 02:42:03','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(108,'f1457cc53f8250ee6e1ec007a3897c3d69199a05202104280242','94f18c7c47b645fce03fe4a1462ad9083287a2f3202104170335','3770164dcc832d5d0b16a7d6c7309aaddfee9ce1202104280239','','','','2021-04-28','0000-00-00',1,0,'MP','Saldo Awal (Manual) disewakan','empty','2021-04-28 02:42:22','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(109,'0a0e6abdbf1074afce761402945b3da94224c2b1202104280724','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','f7d7e59e4b19079d69249f6ecfba1a90fcf300d3202104240502','aa1120921b6d05de92a28d3a890bcfa3b1e1a50f202104280723','22190','-','2021-04-27','2021-04-27',10,10,'MP','Saldo Awal (Manual)','empty','2021-04-28 07:24:45','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(110,'b14d8a85cd2b1bf0d7dda9c30e0cf6076dc9b674202104290739','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','f16ed7feb663a607737f2cd48907a18b1a681ee2202104270253','2774f692afbeecc6b1b766309dc4a8a59dbba248202104290738','22200','-','2021-04-28','2021-04-28',1,1,'MP','Saldo Awal (Manual)','empty','2021-04-29 07:39:17','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(111,'f8ecb0b54886f3d5155d2cb480e9628915b38a1e202104290743','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','387066d4dd17408162e34e4abddd45070c559c37202104200331','7a638a327e51f06e2c0b4511ea523893b614f6ce202104290739','22205','-','2021-04-28','2021-04-28',9,9,'MP','Saldo Awal (Manual)','empty','2021-04-29 07:43:34','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(112,'ab1fa1ffcd9021a19550880cca4facb9b2b8161d202104290759','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','fc4e9e6447ee235e40285735c496e8db79356958202104240459','cfef12468a1098593ff40fdb0f81d28e86e55d2e202104290754','22211','-','2021-04-28','2021-04-28',5,5,'MP','Saldo Awal (Manual)','empty','2021-04-29 07:59:08','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(113,'22df6536c593ef311eddd005704a8c110a2ce701202104290800','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','e103a230212956cd55f831e0655b3b37d93075dc202104260502','ee2c70774e7fc32035e5a2cafe74abd2fccb5e66202104290759','22212','-','2021-04-28','2021-04-28',1,1,'MP','Saldo Awal (Manual)','empty','2021-04-29 08:00:27','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,'2021-04-29 08:01:07','a967273870e7e060b4c977392acfec201080f106202104200249','AKTIF','BGS'),(114,'4c7ef237be28193bf9e6ecfce010aefdfc7c10ef202104290801','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','e103a230212956cd55f831e0655b3b37d93075dc202104260502','ee2c70774e7fc32035e5a2cafe74abd2fccb5e66202104290759','22212','-','2021-04-28','2021-04-28',1,1,'MP','Saldo Awal (Manual)','empty','2021-04-29 08:01:23','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,'2021-04-29 08:09:24','a967273870e7e060b4c977392acfec201080f106202104200249','DELETE','BGS'),(115,'caf764def6f798189b623eecefdeafd54ca488d1202104290801','0597e06b6e5b76f42a85b477493c60c7701eed80202104170332','e103a230212956cd55f831e0655b3b37d93075dc202104260502','c7b62b5b5f1ae497a22f77130cf92762fd59d4f6202104290801','22212','-','2021-04-28','2021-04-28',1,1,'MP','Saldo Awal (Manual)','empty','2021-04-29 08:01:47','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(116,'94537d4125286b34e3fa8e783c8237c3eec30dfe202104290803','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','7413748c223aed1c810d57a9052a12ba06177bed202104170337','5e2fd68fe940d7c64301f50ac6063ea3a9f3b567202104290802','22217','-','2021-04-28','2021-04-28',17,17,'MP','Saldo Awal (Manual)','empty','2021-04-29 08:03:52','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(117,'940e91567a701556819de294c89c744dd70c75f8202104300301','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','a6d5336a3b5a1ecc0d8f2c4aa41542ddc1a36b34202104300300','','','','2021-04-29','0000-00-00',54,0,'MP','Saldo Awal (Manual) fisik 54 cylinder control 59 ( belum cocok )','empty','2021-04-30 03:01:04','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(118,'d4270f4ad042212de9a33ecc9829d3a46bff9650202104300304','6a455a2f525b06f8ac2d36ebff7f223597a456a5202104230820','a6d5336a3b5a1ecc0d8f2c4aa41542ddc1a36b34202104300300','','','','2021-04-29','0000-00-00',2,0,'MP','Saldo Awal (Manual) cocok','empty','2021-04-30 03:04:54','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(119,'ef23393374c620258eb4f442e9af0c5afaed59a0202104300324','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','d61d896519d02672728c623a99294078c6e1f041202104300323','','','','2021-04-28','0000-00-00',2,0,'MP','Saldo Awal (Manual) jaminan 1 pinjam 1 ( cocok titi )','empty','2021-04-30 03:24:25','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(120,'de9e3438236f383ef3e2da39006e363df6c55e60202104300325','a3894ae921df9771cf959fc25124434beb6cd34f202104170334','92b0235edd6cb00cdd1d257e7031047428752b5a202104300325','','','','2021-04-28','0000-00-00',2,0,'MP','Saldo Awal (Manual) cocok jaminan','empty','2021-04-30 03:25:46','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(121,'478de92c30bc7450893aa1e2ecc435e8a6f3e8ec202104300331','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','602dbeb5b1814844389a312b28dd8142b2ffec04202104300331','','','','2021-04-28','0000-00-00',22,0,'MP',' Saldo Awal (Manual) cocok','empty','2021-04-30 03:31:52','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(122,'7b074b0b7c2d4da5dc1b49f21ab043d8537af420202104300333','f8e83f0671c7c84efc57e5497bd0953cef26a318202104170335','6f7e119ef37b29e5816a1dc78d3a6ec5ded78a47202104300332','','','','2021-04-28','0000-00-00',2,0,'MP','Saldo Awal (Manual) cocok','empty','2021-04-30 03:33:03','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(123,'12b4b0c371975e937781e28364e52d67590fa9fe202104300333','b56cbf59e06bf3a676a8443c93a1e40148f35c9b202104170334','6f7e119ef37b29e5816a1dc78d3a6ec5ded78a47202104300332','','','','2021-04-28','0000-00-00',6,0,'MP','Saldo Awal (Manual) lapangan 6 cylinder control 4','empty','2021-04-30 03:33:42','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(124,'6711e5e5d586624a5788fb355c85a0973b1e82ca202104300334','7de9e5ac8c8c5fa192aa47e38b4653077741b0df202104230725','6f7e119ef37b29e5816a1dc78d3a6ec5ded78a47202104300332','','','','2021-04-28','0000-00-00',1,0,'MP','Saldo Awal (Manual) cocok','empty','2021-04-30 03:34:15','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(125,'390e824a47ac26f153e91f9502cedfffd83dce67202104300335','c37060706aa9e83f8a127a5848b7627c9dc0f5bf202104170336','6f7e119ef37b29e5816a1dc78d3a6ec5ded78a47202104300332','','','','2021-04-28','0000-00-00',1,0,'MP','Saldo Awal (Manual) tabung tidak ada pada saat cek fisik','empty','2021-04-30 03:35:59','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(126,'74bd9a7222a1ffb0d970488cbf421b95114757d9202104300336','5a4fa232c3a04d0f19b79f149295c09aa2945216202104170333','6f7e119ef37b29e5816a1dc78d3a6ec5ded78a47202104300332','','','','2021-04-28','0000-00-00',3,0,'MP','Saldo Awal (Manual) cocok','empty','2021-04-30 03:36:33','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(127,'a57831d84048a888f1c75d4b4d9b744c8001a9bf202104300339','4bd652c015a72499c7f21fc7081cd3baaddc0f3c202104230724','6f7e119ef37b29e5816a1dc78d3a6ec5ded78a47202104300332','','','','2021-04-28','0000-00-00',1,0,'MP','Saldo Awal (Manual) cocok','empty','2021-04-30 03:39:15','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(128,'ea44d22406184ccf2289148bb5e1091eb5c02a33202104300342','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','415840645ba1e2ab119712509b929d3d51c1b08c202104300342','','','','2021-04-28','0000-00-00',10,0,'MP','Saldo Awal (Manual) cocok jaminan 5','empty','2021-04-30 03:42:33','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(129,'62c6ec96c64fec11303eaa24c9454b521fa3d7d1202104300349','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','11bca81b44c4aaaae629f2b48df6a8f06da70b37202104300348','','','','2021-04-28','0000-00-00',6,0,'MP','Saldo Awal (Manual) fisik 6 cc 5','empty','2021-04-30 03:49:20','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(130,'c9ab737208dc62af10a73a96c9a1d102d506ca0e202104300350','4e52bc9ed58d3ac82eb23447b21c39da77e01de2202104170334','11bca81b44c4aaaae629f2b48df6a8f06da70b37202104300348','','','','2021-04-28','0000-00-00',1,0,'MP','Saldo Awal (Manual) cocok','empty','2021-04-30 03:50:43','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(131,'3a42072405e63b410742a50a7812714550c27638202104300359','94f18c7c47b645fce03fe4a1462ad9083287a2f3202104170335','3c3a92e4d0849cbaeeab2145370fdfe338bb4921202104300358','','','','2021-04-30','0000-00-00',1,0,'MP','Saldo Awal (Manual) cocok jaminan 1 tabung','empty','2021-04-30 03:59:24','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(132,'edcff09a0d9525062e195abce41f03e66665f464202104300359','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','3c3a92e4d0849cbaeeab2145370fdfe338bb4921202104300358','','','','2021-04-30','0000-00-00',2,0,'MP','Saldo Awal (Manual) jaminan 2 tabung','empty','2021-04-30 03:59:43','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(133,'ac463ba13304f6a93a7ddba244c899df34196b3d202104300404','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','4b42ba24e1213213f8b7568c9c74adc398009268202104300404','','','','2021-04-30','0000-00-00',3,0,'MP','Saldo Awal (Manual) cocok','empty','2021-04-30 04:04:42','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(134,'a56a712905188f1d258d0d17559b78cc65f23ef9202104300407','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','1c3de8c05d81de6c981bd6931b79d1e9ea548b43202104300407','','','','2021-04-30','0000-00-00',85,0,'MP','Saldo Awal (Manual) cocok','empty','2021-04-30 04:07:58','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(135,'6c76abf35f248a77de4df0c1cc9f3169ee57c588202104300408','24e4e0da0d3c1b2ee635279b4c2b282d525ed763202104230705','1c3de8c05d81de6c981bd6931b79d1e9ea548b43202104300407','','','','2021-04-30','0000-00-00',3,0,'MP','Saldo Awal (Manual) cocok','empty','2021-04-30 04:08:30','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(136,'f27f2aef90d01731ebf7758a1ee8d3815358554a202104300422','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','e03e79acd4309a336dec189027400d221906a071202104300422','','','','2021-04-30','0000-00-00',2,0,'MP','Saldo Awal (Manual) cocok','empty','2021-04-30 04:22:55','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(137,'a0375d88397e3ea0144feb9f580000138fe1ba44202104300423','4e52bc9ed58d3ac82eb23447b21c39da77e01de2202104170334','e03e79acd4309a336dec189027400d221906a071202104300422','','','','2021-04-30','0000-00-00',2,0,'MP','Saldo Awal (Manual)','empty','2021-04-30 04:23:08','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(138,'59e7c17fb6a4c1753662c8e8a77cc62998f96969202104300425','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','5329b65f5fe7490ea03080e4844572a98b24f8d5202104300425','','','','2021-04-30','0000-00-00',4,0,'MP','Saldo Awal (Manual) cocok','empty','2021-04-30 04:25:44','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(139,'8aa43da75c4aff78faf7a4bbb117743b3b2854d0202104300425','0597e06b6e5b76f42a85b477493c60c7701eed80202104170332','5329b65f5fe7490ea03080e4844572a98b24f8d5202104300425','','','','2021-04-30','0000-00-00',1,0,'MP','Saldo Awal (Manual)','empty','2021-04-30 04:25:57','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(140,'c501c2abd52cf92d4f3705f70b91dc8765ac9013202104300430','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','97aeea4eca6dec8e2443400512f911cab9234a46202104300429','','','','2021-04-30','0000-00-00',0,86,'MP','Saldo Awal (Manual) saldo dipanggung, dipinjamkan 84 tbg','empty','2021-04-30 04:30:23','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(141,'98deeb1d6e53200a41e68315877b2414b27a8e3d202104300437','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','6ba1f667801e2e4c01569165ea22f949e9603db2202104300437','','','','2021-04-30','0000-00-00',45,0,'MP','Saldo Awal (Manual) fisik 45 cc 57','empty','2021-04-30 04:37:55','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(142,'85e75fe9f45998906cd33d3b09c72dc5bd8ac930202104300438','0597e06b6e5b76f42a85b477493c60c7701eed80202104170332','6ba1f667801e2e4c01569165ea22f949e9603db2202104300437','','','','2021-04-30','0000-00-00',5,0,'MP','Saldo Awal (Manual)','empty','2021-04-30 04:38:13','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(143,'fdf6bafbd7849b94f243a89bd9e28ec9d88bdb2c202104300438','6a455a2f525b06f8ac2d36ebff7f223597a456a5202104230820','6ba1f667801e2e4c01569165ea22f949e9603db2202104300437','','','','2021-04-30','0000-00-00',6,0,'MP','Saldo Awal (Manual) fisik 6 cc 5','empty','2021-04-30 04:38:55','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(144,'c0775b21bc78b3e666032e983fc06cd4aab5effe202105050139','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','f16ed7feb663a607737f2cd48907a18b1a681ee2202104270253','548f44b8182523422b9d6a7a990ed32029648cb5202105050133','22222','-','2021-04-29','2021-04-29',0,2,'MP','Saldo Awal (Manual)','empty','2021-05-05 01:39:25','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(145,'f24f209148d8a39638fa38f672886c66dac7cf99202105050139','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','f16ed7feb663a607737f2cd48907a18b1a681ee2202104270253','548f44b8182523422b9d6a7a990ed32029648cb5202105050133','22222','-','2021-04-29','2021-04-29',2,0,'MR','Saldo Awal (Manual)','empty','2021-05-05 01:39:57','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(146,'7530002ee72c70bcd928f701d0fa1c21b2ef346c202105050142','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','a6d5336a3b5a1ecc0d8f2c4aa41542ddc1a36b34202104300300','64f8b2252718a374ca5d65db35d560647c432b95202105050142','22229','-','2021-05-29','2021-05-29',18,18,'MP','Saldo Awal (Manual)','empty','2021-05-05 01:42:42','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-05-05 01:43:27','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(147,'7e708f892cb33151cc52473aa81b89115b632e3e202105050144','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','a6d5336a3b5a1ecc0d8f2c4aa41542ddc1a36b34202104300300','20519ff89b34bdfe91faed987969bdfa845bcf5e202105050143','22229','-','2021-04-29','2021-04-29',18,18,'MP','Saldo Awal (Manual)','empty','2021-05-05 01:44:42','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(148,'3d944dafd0b728d227f428b5d4beab83a8306d8c202105050147','','f66ae358b573e65095e1e215e985d375c62ab334202104280217','e475be32ad73515f783087a45e8216252afc40c1202105050146','22256','-','2021-04-30','2021-04-30',25,11,'MP','Saldo Awal (Manual)','empty','2021-05-05 01:47:38','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(149,'c4bd23e08b5637f44e78e9ac464f65f90db73ac8202105050148','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','f7d7e59e4b19079d69249f6ecfba1a90fcf300d3202104240502','62e09cd20090125daacf95c89ccff2fe2f194c15202105050148','22257','-','2021-04-30','2021-04-30',10,10,'MP','Saldo Awal (Manual)','empty','2021-05-05 01:48:47','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(150,'f5f80f21eba5619038d2ad949b73d44134bca4b3202105050158','<KEY>','17347b22e604561a35cdcab671b7c669259af515202105050156','da177eb60bd7d666af28d369d0d9a1f6e53929ea202105050158','-','-','2021-05-01','2021-05-01',12,0,'MP','Saldo Awal (Manual)','empty','2021-05-05 01:58:24','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF','TEST'),(151,'81d353a7dc23c5620ffa6f6c06c78e88613684d2202105050212','fdb52ca78a1ee7cf2a48e867e57d50c244af724d202105050156','17347b22e604561a35cdcab671b7c669259af515202105050156','54fe41adb7bc2a219e5c2499c712a743e4380c25202105050212','-','-','2021-05-01','2021-05-01',12,0,'MP','Saldo Awal (Manual)','empty','2021-05-05 02:12:31','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF','TEST'),(152,'dff1a044c87cbc150d4ecd38f24a16d6ac2b62ea202105050229','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','97aeea4eca6dec8e2443400512f911cab9234a46202104300429','9f0186f27ca14637caf0e5f5533cfe73120814a3202105050228','22256','-','2021-04-30','2021-04-30',25,11,'MP','Saldo Awal (Manual)','empty','2021-05-05 02:29:33','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(153,'5da76e25da8f6ce60b959d1c9799caae7f9d1bbd202105050231','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','7413748c223aed1c810d57a9052a12ba06177bed202104170337','d3fb59331c53c4a2b90ad5c42348cd79aecc854e202105050230','22253','-','2021-05-30','2021-05-30',16,16,'MP','Saldo Awal (Manual)','empty','2021-05-05 02:31:15','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(154,'4c22f3c4448898af07b200af182994b0fc99c246202105050316','fdb52ca78a1ee7cf2a48e867e57d50c244af724d202105050156','17347b22e604561a35cdcab671b7c669259af515202105050156','a443b206331e6b01410600dcf9e29ad062cd4c5e202105050315','12','12','2021-05-05','2021-05-05',11,2,'MP','Saldo Awal (Manual)','empty','2021-05-05 03:16:12','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF','TEST'),(155,'591154f49bb1bb60d7a12eddfd531d112c380960202105050612','a3894ae921df9771cf959fc25124434beb6cd34f202104170334','fc4e9e6447ee235e40285735c496e8db79356958202104240459','f060cf034e5bd41f4f288b71d79797ca99e48549202105050611','22261','-','2021-05-01','2021-05-01',1,1,'MP','Saldo Awal (Manual)','empty','2021-05-05 06:12:54','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(156,'d4ae0d83ae857dfccd959c07cfc06189e0f92afc202105050644','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','f16ed7feb663a607737f2cd48907a18b1a681ee2202104270253','2eee0e9967da5595105765e6f700bb4ebe210d1a202105050642','22268','-','2021-05-01','2021-05-01',2,2,'MP','Saldo Awal (Manual)','empty','2021-05-05 06:44:59','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(157,'955df2379297469b109fc81159fcf8057a093839202105060343','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','e03e79acd4309a336dec189027400d221906a071202104300422','fe46a91f3458b8d2bc792e47fc505d474b1c8be8202105060339','22270','-','2021-05-01','2021-05-01',3,3,'MP','Saldo Awal (Manual)','empty','2021-05-06 03:43:05','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(158,'a4514a9ca0993dcc5c06bccdf32c99376f4c0b43202105060356','bdb3ac22465bea01a18c62c3aa349fb5652cff39202105060348','e03e79acd4309a336dec189027400d221906a071202104300422','2fed15ba6f8322fe3c901c716f9fbb287c6721b7202105060354','22270','-','2021-05-01','2021-05-01',2,2,'MR','Saldo Awal (Manual)','empty','2021-05-06 03:56:09','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(159,'110ede498dde5295ee6ee6f8f069296c89048c3e202105060404','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','e03e79acd4309a336dec189027400d221906a071202104300422','e155aa11b1417dcb528933835b70ae132e399bdd202105060402','22276','-','2021-05-01','2021-05-01',4,4,'MP','Saldo Awal (Manual)','empty','2021-05-06 04:04:46','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(160,'3586ea79e0582ec55d2c05057fe22663570b1d35202105060407','bdb3ac22465bea01a18c62c3aa349fb5652cff39202105060348','e03e79acd4309a336dec189027400d221906a071202104300422','daaf248ef35cd8037d94e1e8e0b7c7617f6a9d9b202105060406','22276','-','2021-05-01','2021-05-01',1,1,'MR','Saldo Awal (Manual)','empty','2021-05-06 04:07:49','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(161,'947ebbde10ae29fb57500248e2e1c729e8947f9f202105060422','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','f7d7e59e4b19079d69249f6ecfba1a90fcf300d3202104240502','4024c23df2e91cc4e49c8acb3c89fb5396f6cc1d202105060421','22279','-','2021-05-01','2021-05-01',10,10,'MP','Saldo Awal (Manual)','empty','2021-05-06 04:22:33','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(162,'eae352ade5022bb1f5a341df26d5637a0a129942202105060538','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','387066d4dd17408162e34e4abddd45070c559c37202104200331','9116f1f2b0274ae6470471d66d898ec64c081a86202105060535','22295','-','2021-05-02','2021-05-02',10,10,'MP','Saldo Awal (Manual)','empty','2021-05-06 05:38:39','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(163,'881704e6471f9661d9ffa2af466463a2535a1f50202105060542','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','1c3de8c05d81de6c981bd6931b79d1e9ea548b43202104300407','38fd0860165b3b20f4def5bf24d66d84b42939cf202105060540','22297','-','2021-05-02','2021-05-02',107,107,'MP','Saldo Awal (Manual)','empty','2021-05-06 05:42:00','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(164,'8718f85e8cc43429a0e4c3ca35c962f9f5c5257a202105060545','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','f7d7e59e4b19079d69249f6ecfba1a90fcf300d3202104240502','bf225e329b9f3f4b6e3a6cdfd49dd28f61a668c6202105060543','22299','-','2021-05-02','2021-05-02',12,12,'MP','Saldo Awal (Manual)','empty','2021-05-06 05:45:10','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(165,'c4edc07a2d79ee1a950c9362ac0d7b7461da83ca202105060548','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','11bca81b44c4aaaae629f2b48df6a8f06da70b37202104300348','45cff71dcdd99da99902ae8e442bdf02256d40b1202105060546','22303','-','2021-05-03','2021-05-03',5,5,'MP','Saldo Awal (Manual)','empty','2021-05-06 05:48:31','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(166,'9cae2620d96d223d994d417b83db26664b0db8ba202105060550','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','<KEY>','bff352f21d3d55e6ab111c144547e011dab131cc202105060548','22308','-','2021-05-03','2021-05-03',1,1,'MP','Saldo Awal (Manual)','empty','2021-05-06 05:50:03','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(167,'f178c817bbaa6cbd57bef4a1ba94f5e39461877b202105060551','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','9e9dc3771d22999d7385dc37fe8d1b2340aa0170202104260318','6335ee5f90935b7591fd5244ade82d5362144baf202105060550','22309','-','2021-05-03','2021-05-03',1,1,'MP','Saldo Awal (Manual)','empty','2021-05-06 05:51:09','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(168,'19079e52a1024331e117b6e7db78b4a7ed69d4f1202105060553','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','7413748c223aed1c810d57a9052a12ba06177bed202104170337','e40ef2386545208ccbac1d3eb93b5da60e2b3ce0202105060551','22314','-','2021-05-03','2021-05-03',18,18,'MP','Saldo Awal (Manual)','empty','2021-05-06 05:53:20','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(169,'7bf832b941e996a954f9bffa1ee87c8f5d71c91d202105060558','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','ee249e7d13ac9cbadaa8bc99a0804cc38998128b202104270356','ea9c5ad3fbdfa4f83f5df9f37178406c8d1a691f202105060553','22316','-','2021-05-02','2021-05-02',1,1,'MP','Saldo Awal (Manual)','empty','2021-05-06 05:58:15','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(170,'3c94d6221640b0b14ed8876f93dfb1a5b18656fe202105060603','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','a6d5336a3b5a1ecc0d8f2c4aa41542ddc1a36b34202104300300','71d2d86e000ae931e3cadbcb14975acd548f3a14202105060558','22324','-','2021-05-03','2021-05-03',25,25,'MP','Saldo Awal (Manual)','empty','2021-05-06 06:03:35','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(171,'1d6e591442ed2cb3994db1ab258eaeb5f7b3bb3c202105060605','a3894ae921df9771cf959fc25124434beb6cd34f202104170334','894526b9fde6dfd446bb48040c666aeefb56b179202104270312','47f29753d8715a6faea2873e6a16ee98f673b02c202105060603','22326','-','2021-05-03','2021-05-03',1,1,'MP','Saldo Awal (Manual)','empty','2021-05-06 06:05:26','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(172,'77566133a523a63d17acd4323525efd5e0a42541202105060617','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','e103a230212956cd55f831e0655b3b37d93075dc202104260502','7f69ef0fcf9eee0066514895d920a8d53ad7aabb202105060608','22338','-','2021-05-04','2021-05-04',1,1,'MP','Saldo Awal (Manual)','empty','2021-05-06 06:17:00','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(173,'dd3c8717cc52b3731d97408c49ded605c6d327e7202105060618','0597e06b6e5b76f42a85b477493c60c7701eed80202104170332','e103a230212956cd55f831e0655b3b37d93075dc202104260502','de09f3e35d5987340a92ac0625590f1e2105cb6b202105060617','22338','-','2021-05-04','2021-05-04',1,1,'MP','Saldo Awal (Manual)','empty','2021-05-06 06:18:17','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'); /*!40000 ALTER TABLE `JURNAL_TABUNG` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `KAS_KECIL` -- DROP TABLE IF EXISTS `KAS_KECIL`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `KAS_KECIL` ( `KAS_KECIL_INDEX` int(11) NOT NULL AUTO_INCREMENT, `KAS_KECIL_ID` varchar(200) DEFAULT NULL, `KAS_KECIL_TANGGAL` date DEFAULT NULL, `KAS_KECIL_JENIS` varchar(50) DEFAULT NULL, `KAS_KECIL_KETERANGAN` text, `KAS_KECIL_RUPIAH` int(11) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`KAS_KECIL_INDEX`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `KAS_KECIL` -- LOCK TABLES `KAS_KECIL` WRITE; /*!40000 ALTER TABLE `KAS_KECIL` DISABLE KEYS */; /*!40000 ALTER TABLE `KAS_KECIL` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `MASTER_BARANG` -- DROP TABLE IF EXISTS `MASTER_BARANG`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `MASTER_BARANG` ( `MASTER_BARANG_INDEX` int(11) NOT NULL AUTO_INCREMENT, `MASTER_BARANG_ID` varchar(200) DEFAULT NULL, `MASTER_BARANG_NAMA` varchar(200) DEFAULT NULL, `MASTER_BARANG_JENIS` varchar(200) DEFAULT NULL, `MASTER_BARANG_KETERANGAN` text, `MASTER_BARANG_STOK` int(10) NOT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`MASTER_BARANG_INDEX`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=37 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `MASTER_BARANG` -- LOCK TABLES `MASTER_BARANG` WRITE; /*!40000 ALTER TABLE `MASTER_BARANG` DISABLE KEYS */; INSERT INTO `MASTER_BARANG` VALUES (1,'33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','Oxygen 6 m3','gas','',0,'2021-04-17 03:32:01','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','2021-04-17 03:32:45','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'EDIT','BGS'),(2,'0597e06b6e5b76f42a85b477493c60c7701eed80202104170332','Oxygen 1 m3','gas','',0,'2021-04-17 03:32:11','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(3,'33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332','Oxygen 6 m3','gas','',0,'2021-04-17 03:32:45','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(4,'2dfa01d0fdc38369da9834aba1f962187945d24e202104170332','Oxygen 6 m3 HP','gas','',0,'2021-04-17 03:32:57','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(5,'12f8e312a2ee2c531f45d86883043ac294f38d0f202104170333','Oxygen 6 m3 UHP','gas','',0,'2021-04-17 03:33:09','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(6,'e24984f37f4c7252f30e05d734ca2a0b278f39ca202104170333','N2 ','gas','',0,'2021-04-17 03:33:21','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(7,'5a4fa232c3a04d0f19b79f149295c09aa2945216202104170333','N2 HP','gas','',0,'2021-04-17 03:33:28','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(8,'da7674e8addab90d428aabca5dfc1ee6be880af1202104170333','N2O 18 kg','gas','',0,'2021-04-17 03:33:40','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-04-23 08:20:04','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(9,'2798667665ba1147f778b4e3d0f50b24289428c4202104170333','N2O 20 kg','gas','',0,'2021-04-17 03:33:50','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-04-23 08:20:09','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(10,'4e52bc9ed58d3ac82eb23447b21c39da77e01de2202104170334','CO2','gas','',0,'2021-04-17 03:34:02','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(11,'a3894ae921df9771cf959fc25124434beb6cd34f202104170334','Argon 6 m3','gas','',0,'2021-04-17 03:34:14','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(12,'16f9c87b1402bc5ecd5d8c846c832f183295f46f202104170334','Argon HP','gas','',0,'2021-04-17 03:34:50','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(13,'b56cbf59e06bf3a676a8443c93a1e40148f35c9b202104170334','Argon UHP','gas','',0,'2021-04-17 03:34:58','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(14,'94f18c7c47b645fce03fe4a1462ad9083287a2f3202104170335','C2H2','gas','',0,'2021-04-17 03:35:10','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(15,'f8e83f0671c7c84efc57e5497bd0953cef26a318202104170335','C2H2 UHP','gas','',0,'2021-04-17 03:35:18','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(16,'012036f8d08954350c8d4306786726f3ef52feb1202104170335','C2H2 HP','gas','',0,'2021-04-17 03:35:30','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(17,'b1b418c923b19485dee472c77a11e9857b233b16202104170335','Helium','gas','',0,'2021-04-17 03:35:47','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(18,'c37060706aa9e83f8a127a5848b7627c9dc0f5bf202104170336','H2','gas','',0,'2021-04-17 03:36:20','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(20,'24e4e0da0d3c1b2ee635279b4c2b282d525ed763202104230705','LPG 50 KG','gas','',0,'2021-04-23 07:05:50','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(21,'6e8c3855a25e9017b8f0973f9f3b7264497d3a52202104230706','LPG 18 KG','gas','',0,'2021-04-23 07:06:02','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(22,'4bd652c015a72499c7f21fc7081cd3baaddc0f3c202104230724','Air Sintetik','gas','',0,'2021-04-23 07:24:37','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(23,'792f537d9ee47b3fa4e67ef4fb1762c08c66b1eb202104230725','UDT MINI','gas','',0,'2021-04-23 07:25:01','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(24,'7de9e5ac8c8c5fa192aa47e38b4653077741b0df202104230725','UDT 6 M3','gas','',0,'2021-04-23 07:25:17','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(25,'6a455a2f525b06f8ac2d36ebff7f223597a456a5202104230820','N2O','gas','',0,'2021-04-23 08:20:21','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(30,'c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','O2','gas','\r\n',0,'2021-05-03 07:31:02','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(31,'8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','N2O','gas','',0,'2021-05-03 07:31:13','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(32,'d101efab700a9bd9c4d5659e75dc647c773e66db202105030731','H2','gas','',0,'2021-05-03 07:31:25','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(33,'3a3130e0c8976235ec8540fdb0697a4f32dbdd2a202105030732','LOX','liquid','',0,'2021-05-03 07:32:11','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(34,'fdb52ca78a1ee7cf2a48e867e57d50c244af724d202105050156','tabung','gas','',0,'2021-05-05 01:56:55','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-05-06 05:44:08','20210324091898698077937486910538048978852219159','DELETE','TEST'),(35,'<KEY>','LPG 15 KG','gas','',0,'2021-05-06 03:48:01','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','2021-05-06 03:48:12','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'EDIT','BGS'),(36,'<KEY>','LPG 12 KG','gas','',0,'2021-05-06 03:48:12','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'); /*!40000 ALTER TABLE `MASTER_BARANG` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `MASTER_HARGA` -- DROP TABLE IF EXISTS `MASTER_HARGA`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `MASTER_HARGA` ( `MASTER_HARGA_INDEX` int(11) NOT NULL AUTO_INCREMENT, `MASTER_HARGA_ID` varchar(200) DEFAULT NULL, `MASTER_RELASI_ID` varchar(200) DEFAULT NULL, `MASTER_BARANG_ID` varchar(200) DEFAULT NULL, `MASTER_HARGA_HARGA` int(11) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`MASTER_HARGA_INDEX`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `MASTER_HARGA` -- LOCK TABLES `MASTER_HARGA` WRITE; /*!40000 ALTER TABLE `MASTER_HARGA` DISABLE KEYS */; INSERT INTO `MASTER_HARGA` VALUES (1,'19667534ccd92c3ca2569e571bcc635450dccd9d202104220804','7413748c223aed1c810d57a9052a12ba06177bed202104170337','33c6cb7ea768ed07d04aa4206f24bb237600a1c0202104170332',85000,'2021-04-22 08:04:52','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(2,'d66da59ba2b0dc601952d7c8c79e32db264e7d19202104220814','7413748c223aed1c810d57a9052a12ba06177bed202104170337','da7674e8addab90d428aabca5dfc1ee6be880af1202104170333',450000,'2021-04-22 08:14:06','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'); /*!40000 ALTER TABLE `MASTER_HARGA` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `MASTER_KARYAWAN` -- DROP TABLE IF EXISTS `MASTER_KARYAWAN`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `MASTER_KARYAWAN` ( `MASTER_KARYAWAN_INDEX` int(11) NOT NULL AUTO_INCREMENT, `MASTER_KARYAWAN_ID` varchar(200) DEFAULT NULL, `MASTER_KARYAWAN_NAMA` varchar(200) DEFAULT NULL, `MASTER_KARYAWAN_JABATAN` varchar(200) DEFAULT NULL, `MASTER_KARYAWAN_ALAMAT` text, `MASTER_KARYAWAN_KTP` varchar(50) DEFAULT NULL, `MASTER_KARYAWAN_HP` varchar(50) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`MASTER_KARYAWAN_INDEX`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `MASTER_KARYAWAN` -- LOCK TABLES `MASTER_KARYAWAN` WRITE; /*!40000 ALTER TABLE `MASTER_KARYAWAN` DISABLE KEYS */; /*!40000 ALTER TABLE `MASTER_KARYAWAN` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `MASTER_KENDARAAN` -- DROP TABLE IF EXISTS `MASTER_KENDARAAN`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `MASTER_KENDARAAN` ( `MASTER_KENDARAAN_INDEX` int(11) NOT NULL AUTO_INCREMENT, `MASTER_KENDARAAN_ID` varchar(200) DEFAULT NULL, `MASTER_KENDARAAN_NOMOR` varchar(200) DEFAULT NULL, `MASTER_KENDARAAN_SURAT` varchar(200) DEFAULT NULL, `MASTER_KENDARAAN_PRODUSEN` varchar(50) DEFAULT NULL, `MASTER_KENDARAAN_JENIS` varchar(50) DEFAULT NULL, `MASTER_KENDARAAN_TAHUN` varchar(50) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`MASTER_KENDARAAN_INDEX`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `MASTER_KENDARAAN` -- LOCK TABLES `MASTER_KENDARAAN` WRITE; /*!40000 ALTER TABLE `MASTER_KENDARAAN` DISABLE KEYS */; /*!40000 ALTER TABLE `MASTER_KENDARAAN` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `MASTER_RELASI` -- DROP TABLE IF EXISTS `MASTER_RELASI`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `MASTER_RELASI` ( `MASTER_RELASI_INDEX` int(11) NOT NULL AUTO_INCREMENT, `MASTER_RELASI_ID` varchar(200) DEFAULT NULL, `MASTER_RELASI_NAMA` varchar(200) DEFAULT NULL, `MASTER_RELASI_ALAMAT` text, `MASTER_RELASI_KTP` varchar(50) DEFAULT NULL, `MASTER_RELASI_NPWP` varchar(50) DEFAULT NULL, `MASTER_RELASI_HP` varchar(50) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`MASTER_RELASI_INDEX`) ) ENGINE=InnoDB AUTO_INCREMENT=90 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `MASTER_RELASI` -- LOCK TABLES `MASTER_RELASI` WRITE; /*!40000 ALTER TABLE `MASTER_RELASI` DISABLE KEYS */; INSERT INTO `MASTER_RELASI` VALUES (1,'9c4c13184b6c49454dfd3710a39fed96cd158547202104170319','RS TIARA SELA','Bengkulu','-','-','-','2021-04-17 03:19:24','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(2,'7413748c223aed1c810d57a9052a12ba06177bed202104170337','RS TIARA SELLA','Bengkulu','','','','2021-04-17 03:37:10','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(3,'c4c86f050a2f784dc69f8f3348969821c1fbc4bd202104170337','RSUD KOTA BENGKULU','Bengkulu','','','','2021-04-17 03:37:24','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-04-20 03:30:35','a967273870e7e060b4c977392acfec201080f106202104200249','DELETE','BGS'),(4,'c523e1c7d2349bfb03eccd1beb680e1d5d7b5668202104200330','RS KOTA','','','','','2021-04-20 03:30:53','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,'2021-04-23 07:00:28','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(5,'0085968b04203c1112a082c10534cccd313ee1ae202104200331','RS M YUNUS LQ','','','','','2021-04-20 03:31:09','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,'2021-04-23 07:00:33','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(6,'a82c1ce50c63ec1be2eee0b6ffca24815bd12fdd202104200331','RS M YUNUS TB','','','','','2021-04-20 03:31:22','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,'2021-04-23 07:00:36','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(7,'387066d4dd17408162e34e4abddd45070c559c37202104200331','RS RAFLESSIA','','','','','2021-04-20 03:31:48','a967273870e7e060b4c977392acfec201080f106202104200249',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(8,'99b447587eefbb29648f31e87b1a99b152697da8202104230655','Bengkulu Indah Mall ( BIM )','','','','','2021-04-23 06:55:46','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(9,'6516177bc24f6849088978348ef0f4cc24cbb20f202104230702','ALI ','','','','','2021-04-23 07:02:02','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(10,'a35bff3bf4737389dfc521a9133370e984e420a8202104230933','RS BHAYANGKARA','','','','','2021-04-23 09:33:14','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(11,'83743a8f6b30cd66276b11a0ada31e4c99aecbe9202104240455','AUTO DIAMOND','','','','','2021-04-24 04:55:58','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(12,'fc4e9e6447ee235e40285735c496e8db79356958202104240459','CV. PANCA LOGAM','','','','','2021-04-24 04:59:40','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(13,'f7d7e59e4b19079d69249f6ecfba1a90fcf300d3202104240502','RS GADING MEDIKA','','','','','2021-04-24 05:02:06','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(14,'5b38ca2670c59a3774cc551dfd20a617fc6bec65202104240522','PT. PETRONESIA BENIMEL','','','','','2021-04-24 05:22:03','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(15,'2736a2008d51bb3d8eac65baa17e40742dbaab8a202104260252','SOLEH','','','','','2021-04-26 02:52:28','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(16,'69845efe9fef61a0117cc3b5b07dfcaf55607d5a202104260259','PAMAN YUK RINA','','','','','2021-04-26 02:59:22','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(17,'d3dafb700eb34b45db9f8f80c1e8890700953a5a202104260302','EKO SOPRI','','','','081368458802','2021-04-26 03:02:21','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(18,'9906173ac0a27e6c22e9bdeb35bca19002430396202104260312','BENGKEL MAS ENGGANO ( IRWANSYAH SIHOMBING )','','','','082281342041','2021-04-26 03:12:06','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(19,'bdb5f25619bbb32d11def7d1fe9868930ad6a4c4202104260315','POLWAN/SARI','','','','','2021-04-26 03:15:13','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(20,'9e9dc3771d22999d7385dc37fe8d1b2340aa0170202104260318','HENGKY ( SAHABAT TEKNIK )','','','','','2021-04-26 03:18:53','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(21,'72ee64d295a7e4256447a5ff289980e08fb819b1202104260324','AMAN ( Kawan Satria )','','','','08117300995','2021-04-26 03:24:18','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(22,'5bee7f79209faa01be275ce83aa5faaf92d6811d202104260331','NINI','','','','','2021-04-26 03:31:32','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(23,'611b14f378c5bae33d1914ede8a795e16a270bd3202104260334','ZALBANI ( Kawan Pak Yono )','','','','082365261583','2021-04-26 03:34:40','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(24,'8b5005b958ecb874b4e3f3cbd90a621407c37b53202104260350','UD. Amanah Barokah','Simpang Kandis','','','082183283784','2021-04-26 03:50:32','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(25,'2ef2991314cbde7d1c0cc4f6f6964d55898960f8202104260405','ANEKA KEMBANG','','','','08127363383','2021-04-26 04:05:09','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(26,'ac0fc4d431f0a0b310d4f732be99f8af671e33d4202104260407','HK ASTON','','','','','2021-04-26 04:07:44','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(27,'689731a3066bea474d2e94060427ba257479f2d2202104260410','PAK SUSIYANTO','','','','081272712614','2021-04-26 04:10:09','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(28,'cd72d4aeb1796723bd074df787637207e3d8f3a1202104260412','HERI','','','','','2021-04-26 04:12:56','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','2021-04-26 04:13:36','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'EDIT','BGS'),(29,'cd72d4aeb1796723bd074df787637207e3d8f3a1202104260412','HERI ( Pak Yono )','','','','','2021-04-26 04:13:36','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(30,'a8154cdb476caa34d6ac9d6215c370e61bafb194202104260419','HERMANSYAH','','','','','2021-04-26 04:19:49','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(31,'995578d8ee41c36b14a01d06fd608fc8798cf6f5202104260439','SGA LINGGAU','','','','','2021-04-26 04:39:06','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(32,'e46b1fc9589e25019eddb8aa2c8b7a5d8246b1d5202104260442','Bu DEWI','','','','085273123445','2021-04-26 04:42:14','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(33,'79012faf431aace4ac9e147a8b54f7554de453b1202104260458','Rusdi ( BENGKEL LAS SINAR BAJA )','','','','','2021-04-26 04:58:24','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','2021-04-26 05:01:17','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'EDIT','BGS'),(34,'79012faf431aace4ac9e147a8b54f7554de453b1202104260458','Rusdi ( BENGKEL LAS SINAR BAJA )','','','','081271134377','2021-04-26 05:01:17','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(35,'e103a230212956cd55f831e0655b3b37d93075dc202104260502','NAZUARDI','','','','','2021-04-26 05:02:15','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(36,'d9ec437da7292c9a6aa66a30f5ebf655dd5fc5d4202104260512','DIKA TEBENG','','','','','2021-04-26 05:12:44','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(37,'e2ae0724c7259982ee58ce4b788da200cf54c7f2202104260520','CSR','','','','','2021-04-26 05:20:13','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(38,'dce59b278cdc626e44fb1a5a52623d30930673ee202104260651','MEGI LAMPUNG','','','','','2021-04-26 06:51:59','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(39,'f16ed7feb663a607737f2cd48907a18b1a681ee2202104270253','PATRI','','','','','2021-04-27 02:53:15','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(40,'894526b9fde6dfd446bb48040c666aeefb56b179202104270312','ARIF','','','','','2021-04-27 03:12:46','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(41,'2e26166751198f3bc4d3464cf587ef0f9efbff09202104270314','GUNAWAN','','','','','2021-04-27 03:14:35','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(42,'9286d6441a3abdc5125b2346e85df228a1976dea202104270315','PAK JON','','','','','2021-04-27 03:15:49','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(43,'92749cd7aeb78fc7384ce8b5dbed1f3609763256202104270319','ARIES GROUP','','','','','2021-04-27 03:19:03','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(44,'2e502efe6eafeccf29f854e7cb1b35c0c0175947202104270321','Pangkalan Brimop','','','','','2021-04-27 03:21:55','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(45,'3cd296740ba7fc3409af4c34dfc9afe89854d065202104270323','GALI SAPUTRA','','','','','2021-04-27 03:23:02','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(46,'df8b2e50bc7259cd98ef3d490503eec4e51105d9202104270345','ADIN SURYO','','','','','2021-04-27 03:45:38','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(47,'e1f8090bd3605b5f53757aa236b65b96ea75b4d2202104270349','AGUS ANDRIKO','','','','','2021-04-27 03:49:28','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(48,'ee249e7d13ac9cbadaa8bc99a0804cc38998128b202104270356','PAK SUMIRAN','','','','','2021-04-27 03:56:35','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(49,'a730e1759af3f24eb8ee4005713b26aba1d2b934202104270358','ANDRI','','','','','2021-04-27 03:58:27','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(50,'ded4d8f2a7fe21f39a0db83979bac9cc88e424f2202104270400','DEDI TALO','','','','081540414482','2021-04-27 04:00:21','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(51,'eb82ea5abd4d9befbb68319c8eb9fdc612b295e2202104270402','KLINIK GMC MANNA','','','','','2021-04-27 04:02:51','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(52,'e15ed37e104af5d5b1e6e12cca7420d7cc6b74fd202104270404','GADMIN','','','','','2021-04-27 04:04:55','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(53,'4e93618aee0c736d321c713a80f3a1ef8420616d202104270417','PAK EMARTO','','','','','2021-04-27 04:17:19','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(54,'9c1dacc427406872466eb974af2fb5e751be9e1a202104270419','WIDIARTO','','','','','2021-04-27 04:19:06','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(55,'b897cb2c05490a31778893a3cd5396ca1a5ae84b202104270420','KUSNADI','','','','','2021-04-27 04:20:26','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(56,'cf08b1c144ea4db7cc9f28f2db807d06643bab0c202104270423','EDI HANDOKO','','','','','2021-04-27 04:23:18','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(57,'2172cab03a0b2157bb2232434b7b9a90c1682d83202104270426','ANJAS','','','','','2021-04-27 04:26:29','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(58,'e78ca1b095c619e53d0ce1731856d38a6081d40f202104270427','JOKO LAS','','','','','2021-04-27 04:27:48','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(59,'f8dc58640471f2204461c56a5c53d65c70925fa9202104270430','PAK AGUS','','','','','2021-04-27 04:30:09','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(60,'f155605210f6e77b3d8ba934a6a60ef65b37e954202104270431','ABDUL BENGKEL','','','','','2021-04-27 04:31:01','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(61,'0f981cb96b7681d4113c8f6846485964022037a8202104270433','WAHYU','','','','','2021-04-27 04:33:10','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(62,'25d05ceead69e6945bc6added805393323e153bf202104270434','SAPRI','','','','','2021-04-27 04:34:35','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(63,'b59c109f6152d6b620cefee4f6038b567309c6d4202104270437','MALIBU','','','','','2021-04-27 04:37:38','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(64,'71bf77a4d62edc7a68c3e3bad475f7ba810aca17202104270439','RADIUS PRAWIRO ( Anak Pak Soleh )','','','','','2021-04-27 04:39:39','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(65,'5c435a54e51a78d8cfb8f5f856df69bb5a0ca6ef202104270443','PAK ALI SIREN HIJAB','','','','','2021-04-27 04:43:04','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(66,'980c7b84cd950702a2c83b0dca52e6f5cef64542202104270444','BU ISNAH','','','','','2021-04-27 04:44:01','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(67,'7d027575b18391b0f25d93708e81792e9eb8dcb1202104270454','RIKO','','','','','2021-04-27 04:54:47','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(68,'908544d632fd15e6d643e0ac2f54596a191305d7202104270455','BUNDA AZHAR','','','','','2021-04-27 04:55:47','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(69,'a32107a077d2bc02fa1dcfe2b1b2b8f877aa77b4202104270457','JAYA MAKMUR','','','','','2021-04-27 04:57:19','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(70,'69e948dd9f7b01b5e13975bcf73691ad7a703a7c202104270458','ALAMSYAH','','','','','2021-04-27 04:58:40','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(71,'64424f41785ea5282605dbd1a3fb7616854e36c6202104270500','MAULANA ( IPRS DKT )','','','','','2021-04-27 05:00:01','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(72,'f66ae358b573e65095e1e215e985d375c62ab334202104280217','KBK','','','','','2021-04-28 02:17:30','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'2021-05-05 02:01:22','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','DELETE','BGS'),(73,'3770164dcc832d5d0b16a7d6c7309aaddfee9ce1202104280239','CV. RIZKY','','','','','2021-04-28 02:39:13','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(74,'a6d5336a3b5a1ecc0d8f2c4aa41542ddc1a36b34202104300300','RS UMMI','Jl Hibrida Raya No 1 Bengkulu','','','','2021-04-30 03:00:21','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(75,'d61d896519d02672728c623a99294078c6e1f041202104300323','PT BANGUN BAJA BETON','','','','','2021-04-30 03:23:54','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(76,'92b0235edd6cb00cdd1d257e7031047428752b5a202104300325','BENGKEL KEMBAR','','','','','2021-04-30 03:25:17','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(77,'602dbeb5b1814844389a312b28dd8142b2ffec04202104300331','BENGKEL TEGUH','','','','','2021-04-30 03:31:28','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(78,'6f7e119ef37b29e5816a1dc78d3a6ec5ded78a47202104300332','LAP POM','','','','','2021-04-30 03:32:28','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','2021-04-30 03:47:39','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,'EDIT','BGS'),(79,'415840645ba1e2ab119712509b929d3d51c1b08c202104300342','RPB','','','','','2021-04-30 03:42:10','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(80,'6f7e119ef37b29e5816a1dc78d3a6ec5ded78a47202104300332','LAB POM','','','','','2021-04-30 03:47:39','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(81,'11bca81b44c4aaaae629f2b48df6a8f06da70b37202104300348','EDI BUBUT','','','','','2021-04-30 03:48:07','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(82,'3c3a92e4d0849cbaeeab2145370fdfe338bb4921202104300358','PT. KITARO','','','','','2021-04-30 03:58:58','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(83,'4b42ba24e1213213f8b7568c9c74adc398009268202104300404','RAHMAT VILAS ADVERTISING','','','','','2021-04-30 04:04:20','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(84,'1c3de8c05d81de6c981bd6931b79d1e9ea548b43202104300407','SAHRIL MUKO MUKO','','','','','2021-04-30 04:07:36','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(85,'e03e79acd4309a336dec189027400d221906a071202104300422','SEMEN MERAH PUTIH','','','','','2021-04-30 04:22:25','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(86,'5329b65f5fe7490ea03080e4844572a98b24f8d5202104300425','KLINIK ARMINA BAKTI','','','','','2021-04-30 04:25:11','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(87,'97aeea4eca6dec8e2443400512f911cab9234a46202104300429','KBK','','','','','2021-04-30 04:29:08','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(88,'6ba1f667801e2e4c01569165ea22f949e9603db2202104300437','RS. BHAYANGKARA','','','','','2021-04-30 04:37:23','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418',NULL,NULL,NULL,NULL,'AKTIF','BGS'),(89,'17347b22e604561a35cdcab671b7c669259af515202105050156','test','alamat','','','','2021-05-05 01:56:10','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF','TEST'); /*!40000 ALTER TABLE `MASTER_RELASI` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `MASTER_SUPPLIER` -- DROP TABLE IF EXISTS `MASTER_SUPPLIER`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `MASTER_SUPPLIER` ( `MASTER_SUPPLIER_INDEX` int(11) NOT NULL AUTO_INCREMENT, `MASTER_SUPPLIER_ID` varchar(200) DEFAULT NULL, `MASTER_SUPPLIER_NAMA` varchar(200) DEFAULT NULL, `MASTER_SUPPLIER_ALAMAT` text, `MASTER_SUPPLIER_NPWP` varchar(50) DEFAULT NULL, `MASTER_SUPPLIER_HP` varchar(50) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`MASTER_SUPPLIER_INDEX`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `MASTER_SUPPLIER` -- LOCK TABLES `MASTER_SUPPLIER` WRITE; /*!40000 ALTER TABLE `MASTER_SUPPLIER` DISABLE KEYS */; INSERT INTO `MASTER_SUPPLIER` VALUES (2,'0e890276c880805319a45180e9cce3a4b0aa11b4202105030731','PT SAMATOR','','','','2021-05-03 07:31:58','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(3,'44e05ad66a19369f044620fd63823b0e9657917b202105030735','PT HEISZCO','','','','2021-05-03 07:35:56','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'); /*!40000 ALTER TABLE `MASTER_SUPPLIER` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `MASTER_TABUNG` -- DROP TABLE IF EXISTS `MASTER_TABUNG`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `MASTER_TABUNG` ( `MASTER_TABUNG_INDEX` int(11) NOT NULL AUTO_INCREMENT, `MASTER_TABUNG_ID` varchar(200) DEFAULT NULL, `MASTER_TABUNG_KODE` varchar(200) DEFAULT NULL, `MASTER_BARANG_ID` varchar(200) DEFAULT NULL, `STOK_BARANG_ID` varchar(200) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`MASTER_TABUNG_INDEX`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=411 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `MASTER_TABUNG` -- LOCK TABLES `MASTER_TABUNG` WRITE; /*!40000 ALTER TABLE `MASTER_TABUNG` DISABLE KEYS */; INSERT INTO `MASTER_TABUNG` VALUES (301,'46749db90705bfaa50f7a10bff09b7672876f666202105030745','BBS/0001','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(302,'a8aefa2cf215dc0732314fc2eed67dae287dc663202105030745','BBS/0002','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(303,'fd2c7aac2d98d906b687ad27afb69483b8fbd346202105030745','BBS/0003','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(304,'83081feffdba26eba9be195c26afe3f4fbc3f8e0202105030745','BBS/0004','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(305,'2c1ec23507cae94b92b1e4d7443bdfdc89504f32202105030745','BBS/0005','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(306,'56b64ff5f2a339d4912be4c3511693dbb62a01fe202105030745','BBS/0006','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(307,'1bebf947c43b690133c99fd478c1f8911969be17202105030745','BBS/0007','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(308,'a33f40eb638a26182e1cfd27f49ff35b4a362a76202105030745','BBS/0008','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(309,'dc83916db9d7fbfcea4d21b0ab2bb8207605d74c202105030745','BBS/0009','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(310,'067a6e00240fc9362be303f06720e372fbbba1a1202105030745','BBS/0010','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(311,'c775a055aeb2c3f59090dd150e707cff63d34d74202105030745','BBS/0011','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(312,'a536cd5892bce1c3d2516e10e08b65c20509575b202105030745','BBS/0012','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(313,'2fef84d220c8c4b554b692fdce374bdc507b36e8202105030745','BBS/0013','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(314,'673e998b7cae366fbc2465813028b5da8a2551ad202105030745','BBS/0014','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(315,'25f95f6d8be018cb671b92bd26dcc37f321b7292202105030745','BBS/0015','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(316,'3aa804783a703e9ab62f7225954c83fea5cfc9c1202105030745','BBS/0016','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(317,'f38e62f9309b762c610af18a2d2383520450ae83202105030745','BBS/0017','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(318,'f0c8812131258bbd04fb987f015f0c42e114106f202105030745','BBS/0018','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(319,'9377c28d76e522614af291471c8676725694bb14202105030745','BBS/0019','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(320,'4700d13d022bc0c810861274237f48ad2da63ad1202105030745','BBS/0020','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(321,'d3b7838c95fab24003320c1624c0659821ad6d5e202105030745','BBS/0021','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(322,'d9314e74aca43bb48f1b4a660c7f403d106894a9202105030745','BBS/0022','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(323,'4fa4a72ad71d084b8fb4bfa25d3ba62156274e90202105030745','BBS/0023','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(324,'045542417a9c5867c01f79ab6cb34ebc8f8fd2b4202105030745','BBS/0024','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(325,'2d42b2a5d0eb65132f120420e00d860cbdb5ba37202105030745','BBS/0025','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(326,'e16204ee86870a58070d79555b042365880833b7202105030745','BBS/0026','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(327,'51cd81ead4eeeb384a726386fa453a77b1f8ecf3202105030745','BBS/0027','<KEY>','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(328,'96f5e212847a52ddd78d6c978af19f41f3da7a76202105030745','BBS/0028','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(329,'59f07c67b3f643b419992fca03e021607728278d202105030745','BBS/0029','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(330,'a453a3edbbb1402aa3adada861a24a31d50c9806202105030745','BBS/0030','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(331,'39ba4408490a8e8326ebca478fba6de7b8db10fa202105030745','BBS/0031','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(332,'4f93b9a8465c7507c331055c4158524c3c3a45b1202105030745','BBS/0032','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(333,'171f2f3659067b51aff80131b861544585da9698202105030745','BBS/0033','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(334,'91156a9489585defd82db0deb8503e29f42e8545202105030745','BBS/0034','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(335,'04f3e401807d9d108d6fd695dfa9f09ee0e33598202105030745','BBS/0035','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(336,'9ab8ea97a95827d43e20bc865a07ba30d476ff56202105030745','BBS/0036','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(337,'e0a23aefef29c74922812c02d67a0f2c1fbc1024202105030745','BBS/0037','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(338,'4ebab4571ea5c6f9a3058237ae84c8258e6a201d202105030745','BBS/0038','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(339,'e8349692f466692019711e29874bc37b3c70a04f202105030745','BBS/0039','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(340,'73b72cd91b9fecbebdc5613a077608a8f674cc4b202105030745','BBS/0040','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(341,'4fb776b5842ca246d2e18ef25086c64d81441f36202105030745','BBS/0041','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(342,'c61973bcd1af1a338d2ecd073362ae3366d035fc202105030745','BBS/0042','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(343,'665bec1beef07bfc5689245b24b4929e253aa81d202105030745','BBS/0043','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(344,'bb34d178cc5c4056b658e8e1866f57d331d973b7202105030745','BBS/0044','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(345,'53b80c5d4233f56bf696faae6a46571120a67e30202105030745','BBS/0045','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(346,'f87f29376c65546baf051dbb5db5e6ffda3d6f16202105030745','BBS/0046','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(347,'d5a86035b6bfe121665afd7b52afd1e3d832d4ce202105030745','BBS/0047','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(348,'262d15a252f965bf6fa6b66228da87462aa56063202105030745','BBS/0048','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(349,'75196ed82b8f581b22d76b0a1ddc802452a61763202105030745','BBS/0049','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(350,'6b32365a13eed2ec32e0d2d9835e27100f50cd8e202105030745','BBS/0050','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(351,'2ca3cb8f0438de17985f02225f3dc82a6464e741202105030745','BBS/0051','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(352,'43fe048f6168d96ac4a7b87ce4531970c0c2ddea202105030745','BBS/0052','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(353,'31e450e0cb93c65dc13564145a8fb6f85d349257202105030745','BBS/0053','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(354,'e95b47bba81768ce123faa0344dc8b2e6d8b772f202105030745','BBS/0054','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(355,'c3afceace5d1586c5080bf96405c8bf597651d90202105030745','BBS/0055','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(356,'15ecced2a7624e902034da572cf53bf8aae249ad202105030745','BBS/0056','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(357,'63cfa67d882513f0a2f67b9ed95c7cba1071ddc1202105030745','BBS/0057','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(358,'3a4942cc41091626c4ecc447a637d1475eb62390202105030745','BBS/0058','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(359,'d5ba6f1aa96e63ce5244c1624bb92a6c6e741402202105030745','BBS/0059','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(360,'62c9005018aaa778f8ef47ba92677b8b34363a75202105030745','BBS/0060','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(361,'d11587ce2c55ab9b20dd378b9949ae20ccf98eba202105030745','BBS/0061','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(362,'926cd13cc77d19300d0e723b7dd30b2eb11ae890202105030745','BBS/0062','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(363,'12a9d99097e0131fbf4e651c0ff99c98693c4df0202105030745','BBS/0063','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(364,'6e39ce3d6a64ed37b0588523ca797a96021e835a202105030745','BBS/0064','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(365,'b4d24439068a664dfde8ff20c2092000bb2e424e202105030745','BBS/0065','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(366,'ec4ca660dfd9f97f156907c3e65ef9044320a619202105030745','BBS/0066','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(367,'36559b025040aba6ee2fa85241e6bf0d07ce3bc1202105030745','BBS/0067','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(368,'81aef5d1864cb246393903f187fc4622a4b2ead3202105030745','BBS/0068','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(369,'ef08351d3e4db8c91da2454d94ad9909fca86e3f202105030745','BBS/0069','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(370,'60b1a82b38d87c3956d9159d74a0f89ad3b4fe5e202105030745','BBS/0070','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(371,'b018fb7524fe275fa65f75b9a023ea4f4e1d0007202105030745','BBS/0071','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(372,'fb220719beafd5bbef0966a6962e496e8f9efc01202105030745','BBS/0072','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(373,'cee0a7120d569d53d382d2b851422b97c11303d4202105030745','BBS/0073','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(374,'bd1aea2383b926a0804e344a4457d6aacc9b0171202105030745','BBS/0074','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(375,'a39ee6999c10adde75791a83c7d0289516fc4fb1202105030745','BBS/0075','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(376,'707afcc0f28905e8f9e6900f49571666591b69c5202105030745','BBS/0076','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(377,'1d4b9664895172ca94cfb0f30a6d93a00cccab8d202105030745','BBS/0077','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(378,'10d6723ce5aa65f073a1ddf440d67c55467baf11202105030745','BBS/0078','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(379,'4fe8a75a719fefe4ee289aba6688059d779af220202105030745','BBS/0079','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(380,'b17e12ab02f39289a1d3daf93d3e7f1393ab5e22202105030745','BBS/0080','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(381,'c832dea5e4e44955628ecb9f2e644ab1b793d530202105030745','BBS/0081','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(382,'de9f6f403048e618829be2ef2690b1a108fa7213202105030745','BBS/0082','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(383,'a8b51cbc3568afeeda94c4777fefb2142fbf5d41202105030745','BBS/0083','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(384,'e1963ec305ded063059df4c9457650ae55cd51db202105030745','BBS/0084','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(385,'a19245187e05fb4151b1108dc35976d41b559858202105030745','BBS/0085','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(386,'cf57469cfe22b7cef252932de7199ce9174b3869202105030745','BBS/0086','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(387,'285d939c96b79e8982c585ff2c5e03148a20651b202105030745','BBS/0087','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(388,'8e12a2c4a3c3aee40228647f59da928844f0b5a0202105030745','BBS/0088','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(389,'5f45110f900795e3b06e027cc3fabdd4d8f225fe202105030745','BBS/0089','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(390,'c4e8f6f4f77a756fe137aea99a7233c29042c514202105030745','BBS/0090','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(391,'468f34362f0d57bd6b37350c6d45a64ef9171b3c202105030745','BBS/0091','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(392,'b1d2becf95ad12e87c0d563f3d9ae5707c6081ad202105030745','BBS/0092','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(393,'123324f48dec504ff916f759d79108bea2e1a16f202105030745','BBS/0093','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(394,'5dbaf5aa21ef2653379a9963bef233ad95b54e75202105030745','BBS/0094','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(395,'dc544618aff17225a0f3e46726849093f44e47d2202105030745','BBS/0095','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(396,'a77c7337fb645085ef9a378cbad42319442fa148202105030745','BBS/0096','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(397,'bb5c3b7e996cd4babb571cad03d8842537c64ee9202105030745','BBS/0097','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(398,'d29f43a891b1297ffcd751c41c62795e3dd39537202105030745','BBS/0098','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(399,'df43664079f7c188ba2b1b33fc4622b5ad3202a5202105030745','BBS/0099','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(400,'fd2bded6230d45a88008db5ce0474a8a71e9f43b202105030745','BBS/0100','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(401,'e1ed20b4ab9165a30fcf78e14cd87b06f2f26ec4202105030747','BBS/0101','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','','2021-05-03 07:47:29','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(402,'612ee49b99b11ad947f6b67305806b0562b5f66d202105030747','BBS/0102','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','','2021-05-03 07:47:29','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(403,'e1c9dced66ca47dfcc4df26e29f88bb433a64982202105030747','BBS/0103','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','','2021-05-03 07:47:29','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(404,'8706918ab18e5a50343071f588f1621d5c647542202105030747','BBS/0104','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','','2021-05-03 07:47:29','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(405,'7c52834e3145908e594f8567e2d70b0c06d42ed0202105030747','BBS/0105','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','','2021-05-03 07:47:29','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(406,'7da758e172a451a20e19e0122fd6eb71f2efa391202105030747','BBS/0106','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','','2021-05-03 07:47:29','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(407,'11281a82cc392ac5c91d230750c7156c51a8b9ba202105030747','BBS/0107','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','','2021-05-03 07:47:29','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(408,'68ef15b063d2760aab731179a93a8ec72ba69715202105030747','BBS/0108','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','','2021-05-03 07:47:29','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(409,'8e453a1e72d258f7be2b1bebdc62557f703a61ec202105030747','BBS/0109','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','','2021-05-03 07:47:29','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(410,'cadf01b0e99d4d782232f99070cd69fc1a3cc66c202105030747','BBS/0110','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','','2021-05-03 07:47:29','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'); /*!40000 ALTER TABLE `MASTER_TABUNG` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `MASTER_TANGKI` -- DROP TABLE IF EXISTS `MASTER_TANGKI`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `MASTER_TANGKI` ( `MASTER_TANGKI_INDEX` int(11) NOT NULL AUTO_INCREMENT, `MASTER_TANGKI_ID` varchar(200) DEFAULT NULL, `MASTER_TANGKI_KODE` varchar(200) DEFAULT NULL, `MASTER_BARANG_ID` varchar(200) DEFAULT NULL, `PEMBELIAN_NOMOR_SURAT` varchar(200) DEFAULT NULL, `MASTER_TANGKI_LOKASI` varchar(200) DEFAULT NULL, `MASTER_TANGKI_SATUAN` varchar(50) DEFAULT NULL, `MASTER_TANGKI_KAPASITAS` varchar(50) NOT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`MASTER_TANGKI_INDEX`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `MASTER_TANGKI` -- LOCK TABLES `MASTER_TANGKI` WRITE; /*!40000 ALTER TABLE `MASTER_TANGKI` DISABLE KEYS */; /*!40000 ALTER TABLE `MASTER_TANGKI` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `MENU` -- DROP TABLE IF EXISTS `MENU`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `MENU` ( `MENU_INDEX` int(11) NOT NULL AUTO_INCREMENT, `APLIKASI_ID` varchar(200) DEFAULT NULL, `MENU_ID` varchar(200) DEFAULT NULL, `MENU_NAMA` varchar(50) DEFAULT NULL, `MENU_LINK` varchar(50) DEFAULT NULL, `MENU_ICON` varchar(50) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`MENU_INDEX`) ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `MENU` -- LOCK TABLES `MENU` WRITE; /*!40000 ALTER TABLE `MENU` DISABLE KEYS */; INSERT INTO `MENU` VALUES (1,'20210324033159197691698709640085196555710639272','202103240332600046075847073905619552387991663482','Aplikasi','aplikasi','fas fa-desktop','2021-03-24 03:32:17','221122',NULL,NULL,NULL,NULL,'AKTIF',NULL),(2,'20210324033159197691698709640085196555710639272','202103240335339653810825136026524793597510361520','Menu','menu','fas fa-bars','2021-03-24 03:35:39','221122',NULL,NULL,NULL,NULL,'AKTIF',NULL),(3,'20210324033159197691698709640085196555710639272','202103240335462346840457793879315224354224780826','User','user','fas fa-users','2021-03-24 03:35:50','221122',NULL,NULL,NULL,NULL,'AKTIF',NULL),(4,'20210324081851323641112453178166247190886925091','202103240841317817668847229836471469143358782796','Surat Jalan & TTBK','surat_jalan','fas fa-truck','2021-03-24 08:41:48','221122',NULL,NULL,NULL,NULL,'AKTIF',NULL),(5,'202103241001208338571567833375608946797303992758','20210324100370148269994951947084622361722576274','Relasi','relasi','fas fa-users','2021-03-24 10:03:35','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(6,'202103241001208338571567833375608946797303992758','202103241003197640068750723599477595534566145986','Harga','harga','fas fa-money-bill-wave-alt','2021-03-24 10:03:51','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-03-25 01:45:27','20210324091898698077937486910538048978852219159','DELETE',NULL),(7,'202103241001208338571567833375608946797303992758','2021032410044762430898106776438983155358721602','Barang','barang','fas fa-cubes','2021-03-24 10:04:06','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(8,'202103241001208338571567833375608946797303992758','202103250855428221678731007310739942873','Karyawan','karyawan','fas fa-car-alt','2021-03-25 08:55:46','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(9,'202103241001208338571567833375608946797303992758','202103251058866510618850970517841884126','Kendaraan','kendaraan','fas fa-truck-moving','2021-03-25 10:58:54','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(10,'20210324033159197691698709640085196555710639272','202103250434913453808436324109856748307','Perusahaan','perusahaan','fas fa-building','2021-03-25 04:34:13','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(11,'20210324081851323641112453178166247190886925091','202103311050851182173322228357182642568','Pembelian','pembelian','fas fa-file-invoice','2021-03-31 10:50:04','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-12 10:31:01','20210324091898698077937486910538048978852219159','DELETE',NULL),(12,'202103241001208338571567833375608946797303992758','202103311114892379113739333269540532836','Supplier','supplier','fas fa-id-badge','2021-03-31 11:14:22','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(13,'202103241001208338571567833375608946797303992758','202104011108662264333431702716496641239','Tabung','tabung','fas fa-vial','2021-04-01 11:08:44','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(14,'202103241001208338571567833375608946797303992758','202104071028351592800241419120181979294','Tangki','tangki','fas fa-vials','2021-04-07 10:28:01','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(15,'20210324081851323641112453178166247190886925091','202104091047669090543435066770902896729','Purchase Order','po','fas fa-clock','2021-04-09 10:47:50','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-12 10:31:06','20210324091898698077937486910538048978852219159','DELETE',NULL),(16,'202103240821548682284734942601866135507990747741','202104101026390452008835310551674000242','Kas Kecil','kas_kecil','fas fa-wallet','2021-04-10 10:26:37','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(17,'202104090947287661991878353214208189575','2497623e68d4d705561b63a2dc53232d1ce4d699202104121031','Pembelian','pembelian','fas fa-cash-register','2021-04-12 10:31:53','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(18,'202104090947287661991878353214208189575','c364f17a979af68c02dc1eff742bf21c334bb8e4202104121032','Pemesanan','po','fas fa-shopping-cart','2021-04-12 10:32:12','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(19,'202104090947287661991878353214208189575','a0139942e76aadc5ce377c7ac1cee22e9bff088b202104120941','Satuan','satuan','fas fa-file','2021-04-12 09:41:50','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-12 09:42:09','20210324091898698077937486910538048978852219159','DELETE',NULL),(20,'202103251028564773277796662616325216594','6234558f004862b9a6596f2ebb37e43d615bf52b202104120942','Satuan','satuan','fas fa-file','2021-04-12 09:42:27','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(21,'202103251028564773277796662616325216594','517bc08fe722bd59e718f084a6334457351a4534202104120942','Pajak','pajak','fas fa-file','2021-04-12 09:42:55','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(22,'2a9f72caa1bd51782339fc4e802855f87a8f1e0f202104141019','28cd2371aad999deb93928caeae2128b3ce60610202104141019','Stok','stok','far fa-circle','2021-04-14 10:19:54','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(23,'202104090947287661991878353214208189575','36d9327732a2de00e9bc5167d869dd8891e97cfd202104141151','Pengiriman','pd','fas fa-circle','2021-04-14 11:51:30','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(24,'202103240821548682284734942601866135507990747741','465722bf14b93c1cc99b8495b9817aef91dce86e202104151019','Akun','akun','fas fa-circle','2021-04-15 10:19:02','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(25,'202104090947287661991878353214208189575','2f7d39d6ffc90de14ece2984c0a702e012d78d49202104200438','Faktur','pi','fas fa-circle','2021-04-20 04:38:07','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(26,'fa889941aa4c204f32fea23b2523f7d024e3cbd2202104220736','2b2f9ae12305dcfe7df5be8bb567e8b5445fbe37202104220737','Kontrol Tabung','kontrol_tabung','fas fa-vial','2021-04-22 07:37:00','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(27,'ad8a49514a9637bff0d1fb1d5370eaafe81dd826202104240754','c428bb300eecaef47590baa35c88ac74cb90f0cd202104240754','Kontrol Tabung','kontrol_tabung','fas fa-circle','2021-04-24 07:54:52','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(28,'202103240821548682284734942601866135507990747741','e2f5b07374810eb9cb2cb32200230381affb962e202104300903','Buku Besar','buku_besar','fas fa-circle','2021-04-30 09:03:42','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(29,'202103240821548682284734942601866135507990747741','67547c2f5060fc8a4f48139c84f1eaa34bb3bc10202104300903','Hutang','hutang','fas fa-circle','2021-04-30 09:03:59','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL); /*!40000 ALTER TABLE `MENU` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `NOTIFIKASI` -- DROP TABLE IF EXISTS `NOTIFIKASI`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `NOTIFIKASI` ( `NOTIFIKASI_INDEX` int(10) NOT NULL AUTO_INCREMENT, `NOTIFIKASI_ID` varchar(200) DEFAULT NULL, `NOTIFIKASI_JUDUL` varchar(200) DEFAULT NULL, `NOTIFIKASI_FROM` varchar(200) DEFAULT NULL, `NOTIFIKASI_TO` varchar(200) DEFAULT NULL, `NOTIFIKASI_URL` text, `NOTIFIKASI_KETERANGAN` text, `NOTIFIKASI_TANGGAL` datetime DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`NOTIFIKASI_INDEX`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `NOTIFIKASI` -- LOCK TABLES `NOTIFIKASI` WRITE; /*!40000 ALTER TABLE `NOTIFIKASI` DISABLE KEYS */; /*!40000 ALTER TABLE `NOTIFIKASI` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `PAJAK` -- DROP TABLE IF EXISTS `PAJAK`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `PAJAK` ( `PAJAK_INDEX` int(11) NOT NULL AUTO_INCREMENT, `PAJAK_ID` varchar(200) DEFAULT NULL, `PAJAK_NAMA` varchar(200) DEFAULT NULL, `PAJAK_NILAI` double(10,2) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`PAJAK_INDEX`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `PAJAK` -- LOCK TABLES `PAJAK` WRITE; /*!40000 ALTER TABLE `PAJAK` DISABLE KEYS */; INSERT INTO `PAJAK` VALUES (1,'9cfc2efeb301548ef78611593c66f49922452bb8202104210223','PPN',10.00,'2021-04-21 02:23:36','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF','BBS'); /*!40000 ALTER TABLE `PAJAK` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `PEMBELIAN` -- DROP TABLE IF EXISTS `PEMBELIAN`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `PEMBELIAN` ( `PEMBELIAN_INDEX` int(11) NOT NULL AUTO_INCREMENT, `PEMBELIAN_ID` varchar(200) DEFAULT NULL, `PEMBELIAN_JENIS` varchar(50) DEFAULT NULL, `PEMBELIAN_NOMOR` varchar(50) DEFAULT NULL, `PO_ID` varchar(200) DEFAULT NULL, `PD_ID` varchar(200) DEFAULT NULL, `PI_ID` varchar(200) DEFAULT NULL, `AKUN_ID` varchar(200) DEFAULT NULL, `PEMBELIAN_NOMOR_SURAT` varchar(50) DEFAULT NULL, `PEMBELIAN_NOMOR_PEMBELIAN` varchar(50) DEFAULT NULL, `PEMBELIAN_BARANG` varchar(50) DEFAULT NULL, `PEMBELIAN_TANGGAL` date DEFAULT NULL, `MASTER_SUPPLIER_ID` varchar(200) DEFAULT NULL, `PEMBELIAN_KETERANGAN` text, `PEMBELIAN_FILE` varchar(200) DEFAULT NULL, `PEMBELIAN_STATUS` varchar(100) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`PEMBELIAN_INDEX`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `PEMBELIAN` -- LOCK TABLES `PEMBELIAN` WRITE; /*!40000 ALTER TABLE `PEMBELIAN` DISABLE KEYS */; INSERT INTO `PEMBELIAN` VALUES (1,'1199525d2825e34c8ad24518f60e63d27caaedab202105030737','PO','0001/PO/BBS/05-21','ad7513d57d19d8ef279f378432c1607c9adb53c0202105030737',NULL,NULL,'ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533',NULL,NULL,'gas','2021-05-03','0e890276c880805319a45180e9cce3a4b0aa11b4202105030731','1. Harga franco pekanbaru\r\n2. Harga sudah termassuk Ppn',NULL,'close','2021-05-03 07:39:08','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(2,'1199525d2825e34c8ad24518f60e63d27caaedab202105030737','PD','0001/PD/BBS/05-21',NULL,'d0c7a6ac0274679feb294e566964832c0032d098202105030739',NULL,'ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533',NULL,NULL,'gas','2021-05-03','0e890276c880805319a45180e9cce3a4b0aa11b4202105030731','1. Harga franco pekanbaru\r\n2. Harga sudah termassuk Ppn',NULL,'close','2021-05-03 07:39:53','202103251100891967627490214206329560','2021-05-03 07:40:26','202103251100891967627490214206329560',NULL,NULL,'EDIT','BBS'),(3,'1199525d2825e34c8ad24518f60e63d27caaedab202105030737','PD','0001/PD/BBS/05-21',NULL,'d0c7a6ac0274679feb294e566964832c0032d098202105030739',NULL,'ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533','101',NULL,'gas','2021-05-03','0e890276c880805319a45180e9cce3a4b0aa11b4202105030731','1. Harga franco pekanbaru\r\n2. Harga sudah termassuk Ppn','95ce0aefe4bcdee1839fc7f11ca791024f94bec5.png','close','2021-05-03 07:40:26','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(4,'1199525d2825e34c8ad24518f60e63d27caaedab202105030737','PI','0001/PI/BBS/05-21',NULL,NULL,'6ee83009882ae653b2fef0c3cc87e9dd9cc8031c202105030740','ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533','101',NULL,'gas','2021-05-03','0e890276c880805319a45180e9cce3a4b0aa11b4202105030731','1. Harga franco pekanbaru\r\n2. Harga sudah termassuk Ppn',NULL,'open','2021-05-03 07:40:50','202103251100891967627490214206329560','2021-05-03 07:41:10','202103251100891967627490214206329560',NULL,NULL,'EDIT','BBS'),(5,'1199525d2825e34c8ad24518f60e63d27caaedab202105030737','PI','0001/PI/BBS/05-21',NULL,NULL,'6ee83009882ae653b2fef0c3cc87e9dd9cc8031c202105030740','ee3ad44ea13365b74fd7cec5a737c0c4f3a562c0202104280533',NULL,NULL,'gas','2021-05-03','0e890276c880805319a45180e9cce3a4b0aa11b4202105030731','1. Harga franco pekanbaru\r\n2. Harga sudah termassuk Ppn',NULL,'open','2021-05-03 07:41:11','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(6,'f47c1a06f387e12c68679410d5d58830b75c217c202105030744','PD','0002/PD/BBS/05-21',NULL,'47e79e71a252e14bdaa76f5060161d4efc8bffa3202105030744',NULL,'ebf31ee211222ac4a098c209272aa184046ffdea202104280533','101',NULL,'tabung','2021-05-03','44e05ad66a19369f044620fd63823b0e9657917b202105030735','','','close','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(7,'f47c1a06f387e12c68679410d5d58830b75c217c202105030744','PI','0002/PI/BBS/05-21',NULL,NULL,'5339ecd560a3d2007e37fdd978bc71c02aa5ae18202105030745','ebf31ee211222ac4a098c209272aa184046ffdea202104280533','101',NULL,'tabung','2021-05-03','44e05ad66a19369f044620fd63823b0e9657917b202105030735','',NULL,'open','2021-05-03 07:45:37','202103251100891967627490214206329560','2021-05-03 07:46:17','202103251100891967627490214206329560',NULL,NULL,'EDIT','BBS'),(8,'f47c1a06f387e12c68679410d5d58830b75c217c202105030744','PI','0002/PI/BBS/05-21',NULL,NULL,'5339ecd560a3d2007e37fdd978bc71c02aa5ae18202105030745','ebf31ee211222ac4a098c209272aa184046ffdea202104280533',NULL,NULL,'tabung','2021-05-03','44e05ad66a19369f044620fd63823b0e9657917b202105030735','',NULL,'open','2021-05-03 07:46:17','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(9,'68f870d98464a189ff5f2c94a6e7c280ad976cfd202105030748','PO','0002/PO/BBS/05-21','6ea3d0e74b187e783861dd9e9057e63982b79c17202105030748',NULL,NULL,'ebf31ee211222ac4a098c209272aa184046ffdea202104280533',NULL,NULL,'gas','2021-05-03','44e05ad66a19369f044620fd63823b0e9657917b202105030735','',NULL,'close','2021-05-03 07:49:43','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(10,'68f870d98464a189ff5f2c94a6e7c280ad976cfd202105030748','PD','0003/PD/BBS/05-21',NULL,'1fa2d46a3f1edd94e68765cd87f656e99c90018a202105030750',NULL,'ebf31ee211222ac4a098c209272aa184046ffdea202104280533',NULL,NULL,'gas','2021-05-03','44e05ad66a19369f044620fd63823b0e9657917b202105030735','',NULL,'close','2021-05-03 07:50:41','202103251100891967627490214206329560','2021-05-03 07:51:01','202103251100891967627490214206329560',NULL,NULL,'EDIT','BBS'),(11,'68f870d98464a189ff5f2c94a6e7c280ad976cfd202105030748','PD','0003/PD/BBS/05-21',NULL,'1fa2d46a3f1edd94e68765cd87f656e99c90018a202105030750',NULL,'ebf31ee211222ac4a098c209272aa184046ffdea202104280533','1011',NULL,'gas','2021-05-03','44e05ad66a19369f044620fd63823b0e9657917b202105030735','','','close','2021-05-03 07:51:01','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(12,'68f870d98464a189ff5f2c94a6e7c280ad976cfd202105030748','PI','0003/PI/BBS/05-21',NULL,NULL,'de108f31fec3a01731ba2644f3532e58713fcc06202105030751','ebf31ee211222ac4a098c209272aa184046ffdea202104280533','1011',NULL,'gas','2021-05-03','44e05ad66a19369f044620fd63823b0e9657917b202105030735','',NULL,'open','2021-05-03 07:51:11','202103251100891967627490214206329560','2021-05-03 07:51:44','202103251100891967627490214206329560',NULL,NULL,'EDIT','BBS'),(13,'68f870d98464a189ff5f2c94a6e7c280ad976cfd202105030748','PI','0003/PI/BBS/05-21',NULL,NULL,'de108f31fec3a01731ba2644f3532e58713fcc06202105030751','ebf31ee211222ac4a098c209272aa184046ffdea202104280533',NULL,NULL,'gas','2021-05-03','44e05ad66a19369f044620fd63823b0e9657917b202105030735','',NULL,'open','2021-05-03 07:51:44','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'); /*!40000 ALTER TABLE `PEMBELIAN` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `PEMBELIAN_BARANG` -- DROP TABLE IF EXISTS `PEMBELIAN_BARANG`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `PEMBELIAN_BARANG` ( `PEMBELIAN_BARANG_INDEX` int(11) NOT NULL AUTO_INCREMENT, `PEMBELIAN_BARANG_ID` varchar(200) DEFAULT NULL, `PEMBELIAN_ID` varchar(200) DEFAULT NULL, `PO_ID` varchar(200) DEFAULT NULL, `PD_ID` varchar(200) DEFAULT NULL, `PI_ID` varchar(200) DEFAULT NULL, `MASTER_BARANG_ID` varchar(200) DEFAULT NULL, `PEMBELIAN_BARANG_SATUAN` varchar(50) DEFAULT NULL, `PEMBELIAN_BARANG_HARGA` int(11) DEFAULT NULL, `PEMBELIAN_BARANG_QUANTITY` int(11) DEFAULT NULL, `PEMBELIAN_BARANG_TOTAL` int(11) DEFAULT NULL, `PEMBELIAN_BARANG_REALISASI` varchar(50) NOT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`PEMBELIAN_BARANG_INDEX`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `PEMBELIAN_BARANG` -- LOCK TABLES `PEMBELIAN_BARANG` WRITE; /*!40000 ALTER TABLE `PEMBELIAN_BARANG` DISABLE KEYS */; INSERT INTO `PEMBELIAN_BARANG` VALUES (1,'ec3e929976be190b9870f2349f392ae88f568779202105030738','1199525d2825e34c8ad24518f60e63d27caaedab202105030737','ad7513d57d19d8ef279f378432c1607c9adb53c0202105030737',NULL,NULL,'8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','Cyl',1800000,20,36000000,'','2021-05-03 07:38:37','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(2,'e46a52fecfc0bbb6db0a984b2a1ae51aa881c4bf202105030738','1199525d2825e34c8ad24518f60e63d27caaedab202105030737','ad7513d57d19d8ef279f378432c1607c9adb53c0202105030737',NULL,NULL,'d101efab700a9bd9c4d5659e75dc647c773e66db202105030731','Cyl',50000,20,1000000,'','2021-05-03 07:38:49','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(3,'44b0fa81e7e2734ff84dd0051f6c678c946d3627202105030739','1199525d2825e34c8ad24518f60e63d27caaedab202105030737',NULL,'d0c7a6ac0274679feb294e566964832c0032d098202105030739',NULL,'8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','Cyl',1800000,20,36000000,'','2021-05-03 07:39:53','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(4,'3ccf727fc5a4e1a54a2ab6fdc2d68393edd105c8202105030739','1199525d2825e34c8ad24518f60e63d27caaedab202105030737',NULL,'d0c7a6ac0274679feb294e566964832c0032d098202105030739',NULL,'d101efab700a9bd9c4d5659e75dc647c773e66db202105030731','Cyl',50000,20,1000000,'','2021-05-03 07:39:53','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(5,'e7b7ae2b1285657c22c9f7f2220113f61b98f856202105030740','1199525d2825e34c8ad24518f60e63d27caaedab202105030737',NULL,NULL,'6ee83009882ae653b2fef0c3cc87e9dd9cc8031c202105030740','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','Cyl',1800000,20,36000000,'','2021-05-03 07:40:50','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(6,'44b3729170f84f0f99dfc39653308df79d4cc7dd202105030740','1199525d2825e34c8ad24518f60e63d27caaedab202105030737',NULL,NULL,'6ee83009882ae653b2fef0c3cc87e9dd9cc8031c202105030740','d101efab700a9bd9c4d5659e75dc647c773e66db202105030731','Cyl',50000,20,1000000,'','2021-05-03 07:40:50','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(7,'14e4a3281c0815c27d84a18a26c628c327ec6e1c202105030745','f47c1a06f387e12c68679410d5d58830b75c217c202105030744',NULL,'47e79e71a252e14bdaa76f5060161d4efc8bffa3202105030744',NULL,'c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','Cyl',0,100,0,'','2021-05-03 07:45:19','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(8,'f0e1b122e7c7364be96c2b40d3d7cd54a2acbbfe202105030745','f47c1a06f387e12c68679410d5d58830b75c217c202105030744',NULL,NULL,'5339ecd560a3d2007e37fdd978bc71c02aa5ae18202105030745','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','Cyl',1000000,100,100000000,'','2021-05-03 07:45:37','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(9,'4cf818aab47e3fc65392d358be7356c3cec2d759202105030749','68f870d98464a189ff5f2c94a6e7c280ad976cfd202105030748','6ea3d0e74b187e783861dd9e9057e63982b79c17202105030748',NULL,NULL,'8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','Cyl',1800000,50,90000000,'','2021-05-03 07:49:27','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(10,'b2b0c6a9307cbc77f2fe31eca5bca3fe6e417791202105030750','68f870d98464a189ff5f2c94a6e7c280ad976cfd202105030748',NULL,'1fa2d46a3f1edd94e68765cd87f656e99c90018a202105030750',NULL,'8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','Cyl',1800000,40,72000000,'','2021-05-03 07:50:41','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(11,'103b3abdc07e51832cc72ca1773666682688f816202105030751','68f870d98464a189ff5f2c94a6e7c280ad976cfd202105030748',NULL,NULL,'de108f31fec3a01731ba2644f3532e58713fcc06202105030751','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','Cyl',1800000,40,72000000,'','2021-05-03 07:51:11','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'); /*!40000 ALTER TABLE `PEMBELIAN_BARANG` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `PEMBELIAN_TRANSAKSI` -- DROP TABLE IF EXISTS `PEMBELIAN_TRANSAKSI`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `PEMBELIAN_TRANSAKSI` ( `PEMBELIAN_TRANSAKSI_INDEX` int(11) NOT NULL AUTO_INCREMENT, `PEMBELIAN_ID` varchar(200) DEFAULT NULL, `PO_ID` varchar(200) DEFAULT NULL, `PD_ID` varchar(200) DEFAULT NULL, `PI_ID` varchar(200) DEFAULT NULL, `PEMBELIAN_TRANSAKSI_ID` varchar(200) DEFAULT NULL, `PEMBELIAN_JENIS` varchar(200) NOT NULL, `PEMBELIAN_TRANSAKSI_TOTAL` int(11) DEFAULT '0', `PEMBELIAN_TRANSAKSI_POTONGAN` int(11) DEFAULT '0', `PEMBELIAN_TRANSAKSI_LAINNYA` int(10) DEFAULT '0', `PEMBELIAN_TRANSAKSI_PAJAK` double(10,2) DEFAULT NULL, `PEMBELIAN_TRANSAKSI_PAJAK_RUPIAH` int(11) DEFAULT '0', `PEMBELIAN_TRANSAKSI_UANG_MUKA` int(11) DEFAULT '0', `PEMBELIAN_TRANSAKSI_BAYAR` int(10) NOT NULL DEFAULT '0', `PEMBELIAN_TRANSAKSI_BIAYA_TAMBAHAN` int(10) NOT NULL DEFAULT '0', `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`PEMBELIAN_TRANSAKSI_INDEX`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `PEMBELIAN_TRANSAKSI` -- LOCK TABLES `PEMBELIAN_TRANSAKSI` WRITE; /*!40000 ALTER TABLE `PEMBELIAN_TRANSAKSI` DISABLE KEYS */; INSERT INTO `PEMBELIAN_TRANSAKSI` VALUES (1,'1199525d2825e34c8ad24518f60e63d27caaedab202105030737','ad7513d57d19d8ef279f378432c1607c9adb53c0202105030737',NULL,NULL,NULL,'PO',37000000,0,0,10.00,3700000,30000000,0,0,'2021-05-03 07:39:08','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(2,'1199525d2825e34c8ad24518f60e63d27caaedab202105030737',NULL,'d0c7a6ac0274679feb294e566964832c0032d098202105030739',NULL,NULL,'PD',0,0,2000000,NULL,0,0,0,0,'2021-05-03 07:40:26','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(3,'1199525d2825e34c8ad24518f60e63d27caaedab202105030737',NULL,NULL,'6ee83009882ae653b2fef0c3cc87e9dd9cc8031c202105030740',NULL,'PI',37000000,0,2000000,10.00,3700000,30000000,5000000,0,'2021-05-03 07:41:11','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(4,'f47c1a06f387e12c68679410d5d58830b75c217c202105030744',NULL,'47e79e71a252e14bdaa76f5060161d4efc8bffa3202105030744',NULL,NULL,'PD',0,0,10000000,NULL,0,0,0,0,'2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(5,'f47c1a06f387e12c68679410d5d58830b75c217c202105030744',NULL,NULL,'5339ecd560a3d2007e37fdd978bc71c02aa5ae18202105030745',NULL,'PI',100000000,0,10000000,10.00,10000000,0,110000000,0,'2021-05-03 07:46:17','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(6,'68f870d98464a189ff5f2c94a6e7c280ad976cfd202105030748','6ea3d0e74b187e783861dd9e9057e63982b79c17202105030748',NULL,NULL,NULL,'PO',90000000,0,0,10.00,9000000,99000000,0,0,'2021-05-03 07:49:43','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(7,'68f870d98464a189ff5f2c94a6e7c280ad976cfd202105030748',NULL,'1fa2d46a3f1edd94e68765cd87f656e99c90018a202105030750',NULL,NULL,'PD',0,0,0,NULL,0,0,0,0,'2021-05-03 07:51:01','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(8,'68f870d98464a189ff5f2c94a6e7c280ad976cfd202105030748',NULL,NULL,'de108f31fec3a01731ba2644f3532e58713fcc06202105030751',NULL,'PI',72000000,0,0,10.00,7200000,99000000,0,19800000,'2021-05-03 07:51:44','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'); /*!40000 ALTER TABLE `PEMBELIAN_TRANSAKSI` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `PERUSAHAAN` -- DROP TABLE IF EXISTS `PERUSAHAAN`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `PERUSAHAAN` ( `PERUSAHAAN_INDEX` int(11) NOT NULL AUTO_INCREMENT, `PERUSAHAAN_ID` varchar(200) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(50) DEFAULT NULL, `PERUSAHAAN_NAMA` varchar(200) DEFAULT NULL, `PERUSAHAAN_ALAMAT` text, `PERUSAHAAN_TELP` varchar(50) DEFAULT NULL, `PERUSAHAAN_KOTA` varchar(50) NOT NULL, `PERUSAHAAN_LOGO` varchar(50) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, PRIMARY KEY (`PERUSAHAAN_INDEX`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `PERUSAHAAN` -- LOCK TABLES `PERUSAHAAN` WRITE; /*!40000 ALTER TABLE `PERUSAHAAN` DISABLE KEYS */; INSERT INTO `PERUSAHAAN` VALUES (1,'2ba631668f715fa9b10c6346073b9f4c1941cc37202104140239','BBS','PT. BINTANG BUMI SUMATERA','Jalan Yos Sudarso, KM 13,5 RT 03 RW 01, Kel. Rumbai Bukit, Kec Rumbai - Pekanbaru','+6281272229960','','','2021-04-14 02:39:25','20210324091898698077937486910538048978852219159','2021-05-03 06:09:49','20210324091898698077937486910538048978852219159',NULL,NULL,'EDIT'),(2,'8596e32efa748e89721d016bf56c38ca0e21e44d202104140239','SG','CV. STARGAS INTI PERKASA','Jalan Kubang Raya, KM 12, Kec. Siak Hulu, Kampar - Riau','+62851002716','','','2021-04-14 02:39:56','20210324091898698077937486910538048978852219159','2021-05-03 06:10:08','20210324091898698077937486910538048978852219159',NULL,NULL,'EDIT'),(3,'b01d6ddd1687e1d2ac2f57cedd513515884ef92e202104140240','SGA','CV. <NAME>I','Jalan Poros Lingkar Selatan RT 04 Kel. Tanjung Indah, Lubuk Linggau - Sumsel','+6281374992099','','','2021-04-14 02:40:48','20210324091898698077937486910538048978852219159','2021-05-03 06:10:40','20210324091898698077937486910538048978852219159',NULL,NULL,'EDIT'),(4,'2d4a4bd00aec808f826c4ff5b2263c661669efc1202104140241','BGS','PT. BUMI GASINDO SUMATERA','Jalan Padang Makmur 1, RT 8, RW 6 Kec. Selebar, Kel Bentungan, Bengkulu','+6282374777693','','','2021-04-14 02:41:14','20210324091898698077937486910538048978852219159','2021-05-03 06:10:30','20210324091898698077937486910538048978852219159',NULL,NULL,'EDIT'),(5,'59316a1f75014a1074ff5395e5a88612d17b3cdc202105030551','TEST','PERUSAHAAN TEST','Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam et.','08 8888 8888','','','2021-05-03 05:51:29','20210324091898698077937486910538048978852219159','2021-05-03 06:10:19','20210324091898698077937486910538048978852219159',NULL,NULL,'EDIT'),(6,'2ba631668f715fa9b10c6346073b9f4c1941cc37202104140239','BBS','PT. BINTANG BUMI SUMATERA','Jalan Yos Sudarso, KM 13,5 RT 03 RW 01, <NAME>, Kec Rumbai - Pekanbaru','+6281272229960','Pekanbaru','','2021-05-03 06:09:49','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'),(7,'8596e32efa748e89721d016bf56c38ca0e21e44d202104140239','SG','CV. STARGAS INTI PERKASA','Jalan Kubang Raya, KM 12, Kec. Siak Hulu, Kampar - Riau','+62851002716','Pekanbaru','','2021-05-03 06:10:08','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'),(8,'59316a1f75014a1074ff5395e5a88612d17b3cdc202105030551','TEST','PERUSAHAAN TEST','Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam et.','08 8888 8888','KOTA','','2021-05-03 06:10:19','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'),(9,'2d4a4bd00aec808f826c4ff5b2263c661669efc1202104140241','BGS','PT. BUMI GASINDO SUMATERA','Jalan Padang Makmur 1, RT 8, RW 6 Kec. Selebar, Kel Bentungan, Bengkulu','+6282374777693','Bengkulu','','2021-05-03 06:10:30','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'),(10,'b01d6ddd1687e1d2ac2f57cedd513515884ef92e202104140240','SGA','CV. SUMBER GASINDO ABADI','Jalan Poros Lingkar Selatan RT 04 Kel. Tanjung Indah, Lubuk Linggau - Sumsel','+6281374992099','Lubuk Linggau','','2021-05-03 06:10:40','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'); /*!40000 ALTER TABLE `PERUSAHAAN` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `RIWAYAT_TABUNG` -- DROP TABLE IF EXISTS `RIWAYAT_TABUNG`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `RIWAYAT_TABUNG` ( `RIWAYAT_TABUNG_INDEX` int(10) NOT NULL AUTO_INCREMENT, `RIWAYAT_TABUNG_ID` varchar(200) DEFAULT NULL, `MASTER_TABUNG_ID` varchar(200) DEFAULT NULL, `RIWAYAT_TABUNG_TANGGAL` date DEFAULT NULL, `RIWAYAT_TABUNG_STATUS` varchar(200) DEFAULT NULL, `MASTER_RELASI_ID` varchar(200) DEFAULT NULL, `MASTER_SUPPLIER_ID` varchar(200) DEFAULT NULL, `RIWAYAT_TABUNG_KETERANGAN` varchar(200) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`RIWAYAT_TABUNG_INDEX`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `RIWAYAT_TABUNG` -- LOCK TABLES `RIWAYAT_TABUNG` WRITE; /*!40000 ALTER TABLE `RIWAYAT_TABUNG` DISABLE KEYS */; /*!40000 ALTER TABLE `RIWAYAT_TABUNG` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `RIWAYAT_TANGKI` -- DROP TABLE IF EXISTS `RIWAYAT_TANGKI`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `RIWAYAT_TANGKI` ( `RIWAYAT_TANGKI_INDEX` int(11) NOT NULL AUTO_INCREMENT, `RIWAYAT_TANGKI_ID` varchar(200) DEFAULT NULL, `MASTER_TANGKI_ID` varchar(200) DEFAULT NULL, `RIWAYAT_TANGKI_TANGGAL` date DEFAULT NULL, `RIWAYAT_TANGKI_KAPASITAS` varchar(200) DEFAULT NULL, `RIWAYAT_TANGKI_KETERANGAN` varchar(200) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`RIWAYAT_TANGKI_INDEX`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `RIWAYAT_TANGKI` -- LOCK TABLES `RIWAYAT_TANGKI` WRITE; /*!40000 ALTER TABLE `RIWAYAT_TANGKI` DISABLE KEYS */; /*!40000 ALTER TABLE `RIWAYAT_TANGKI` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SATUAN` -- DROP TABLE IF EXISTS `SATUAN`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SATUAN` ( `SATUAN_INDEX` int(11) NOT NULL AUTO_INCREMENT, `SATUAN_ID` varchar(200) DEFAULT NULL, `SATUAN_NAMA` varchar(200) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`SATUAN_INDEX`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SATUAN` -- LOCK TABLES `SATUAN` WRITE; /*!40000 ALTER TABLE `SATUAN` DISABLE KEYS */; INSERT INTO `SATUAN` VALUES (1,'9a38780f5ad5f305062ae30cabad7be6948accf6202104210236','Kg','2021-04-21 02:36:46','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF','TEST'),(2,'7c43190797d416c6f6a93ce2a4ee502e08fbd30e202104280533','Tbg','2021-04-28 05:33:19','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','TEST'),(3,'51fffdac2115769d70783f5c8c507b8aac92fbe6202105030737','KG','2021-05-03 07:37:20','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(4,'83c875efa0ef983354b1f3ee6ea819c72151109f202105030737','M3','2021-05-03 07:37:28','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(5,'54eed489afbcb6f2e2a7ff90e777df26308f7358202105030737','Cyl','2021-05-03 07:37:34','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'); /*!40000 ALTER TABLE `SATUAN` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `STOK_BARANG` -- DROP TABLE IF EXISTS `STOK_BARANG`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `STOK_BARANG` ( `STOK_BARANG_INDEX` int(10) NOT NULL AUTO_INCREMENT, `STOK_BARANG_ID` varchar(200) DEFAULT NULL, `MASTER_BARANG_ID` varchar(200) DEFAULT NULL, `STOK_BARANG_REF` varchar(200) DEFAULT NULL, `STOK_BARANG_TANGGAL` date DEFAULT NULL, `STOK_BARANG_MASUK` int(10) DEFAULT NULL, `STOK_BARANG_KELUAR` int(10) DEFAULT NULL, `STOK_BARANG_KETERANGAN` text, `STOK_BARANG_POSISI` varchar(50) NOT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`STOK_BARANG_INDEX`) USING BTREE ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `STOK_BARANG` -- LOCK TABLES `STOK_BARANG` WRITE; /*!40000 ALTER TABLE `STOK_BARANG` DISABLE KEYS */; INSERT INTO `STOK_BARANG` VALUES (1,'c2b4a46d0d392cbdfc12b4d6fd9ce7e17d172ae6202105030740','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','d0c7a6ac0274679feb294e566964832c0032d098202105030739','2021-05-03',20,0,NULL,'GUDANG','2021-05-03 07:40:27','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(2,'92137de7e9b1bae291279fea31ca9ad54e770e5e202105030740','d101efab700a9bd9c4d5659e75dc647c773e66db202105030731','d0c7a6ac0274679feb294e566964832c0032d098202105030739','2021-05-03',20,0,NULL,'GUDANG','2021-05-03 07:40:27','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(3,'8652eaf39e05f9a745dd3eacf69ebb78613b0152202105030745','c3022408c4df2fbcc0b2e4b4bfc6c7f02f726058202105030731','47e79e71a252e14bdaa76f5060161d4efc8bffa3202105030744','2021-05-03',100,0,NULL,'GUDANG','2021-05-03 07:45:31','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'),(4,'a95c7d282d873ac49f436eea350dec41e18882be202105030751','8c31d5816efc78c99a0f346f81f26efed04fc5fd202105030731','1fa2d46a3f1edd94e68765cd87f656e99c90018a202105030750','2021-05-03',40,0,NULL,'GUDANG','2021-05-03 07:51:01','202103251100891967627490214206329560',NULL,NULL,NULL,NULL,'AKTIF','BBS'); /*!40000 ALTER TABLE `STOK_BARANG` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SURAT_JALAN` -- DROP TABLE IF EXISTS `SURAT_JALAN`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SURAT_JALAN` ( `SURAT_JALAN_INDEX` int(11) NOT NULL AUTO_INCREMENT, `SURAT_JALAN_ID` varchar(200) DEFAULT NULL, `SURAT_JALAN_JENIS` varchar(50) DEFAULT NULL, `SURAT_JALAN_NOMOR` varchar(50) DEFAULT NULL, `SURAT_JALAN_TTBK` varchar(50) DEFAULT NULL, `SURAT_JALAN_TANGGAL` date DEFAULT NULL, `MASTER_RELASI_ID` varchar(50) DEFAULT NULL, `SURAT_JALAN_NAMA_PELANGGAN` varchar(50) DEFAULT NULL, `MASTER_DRIVER_ID` varchar(50) DEFAULT NULL, `MASTER_KENDARAAN_ID` varchar(50) DEFAULT NULL, `SURAT_JALAN_JUMLAH` int(11) DEFAULT NULL, `SURAT_JALAN_TOTAL` int(11) DEFAULT NULL, `SURAT_JALAN_TOTAL_PPN` int(11) DEFAULT NULL, `SURAT_JALAN_TOTAL_BAYAR` int(11) DEFAULT NULL, `SURAT_JALAN_SISA_BAYAR` int(11) DEFAULT NULL, `SURAT_JALAN_KETERANGAN` text, `SURAT_JALAN_PPN` varchar(50) DEFAULT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`SURAT_JALAN_INDEX`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SURAT_JALAN` -- LOCK TABLES `SURAT_JALAN` WRITE; /*!40000 ALTER TABLE `SURAT_JALAN` DISABLE KEYS */; /*!40000 ALTER TABLE `SURAT_JALAN` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `SURAT_JALAN_BARANG` -- DROP TABLE IF EXISTS `SURAT_JALAN_BARANG`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SURAT_JALAN_BARANG` ( `SURAT_JALAN_BARANG_INDEX` int(11) NOT NULL AUTO_INCREMENT, `SURAT_JALAN_BARANG_ID` varchar(200) DEFAULT NULL, `SURAT_JALAN_ID` varchar(50) DEFAULT NULL, `MASTER_JENIS_BARANG_ID` varchar(50) DEFAULT NULL, `MASTER_JENIS_BARANG_DETAIL_ID` varchar(50) DEFAULT NULL, `SURAT_JALAN_BARANG_QTY` int(11) DEFAULT NULL, `SURAT_JALAN_BARANG_QTY_KOSONG` int(11) DEFAULT NULL, `SURAT_JALAN_BARANG_QTY_KLAIM` int(11) DEFAULT NULL, `SURAT_JALAN_BARANG_HARGA` int(11) DEFAULT NULL, `SURAT_JALAN_BARANG_TOTAL` int(11) DEFAULT NULL, `SURAT_JALAN_BARANG_KEPEMILIKAN` varchar(50) DEFAULT NULL, `SURAT_JALAN_BARANG_KLAIM_TANGGAL` date DEFAULT NULL, `SURAT_JALAN_BARANG_KLAIM_KETERANGAN` text, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`SURAT_JALAN_BARANG_INDEX`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `SURAT_JALAN_BARANG` -- LOCK TABLES `SURAT_JALAN_BARANG` WRITE; /*!40000 ALTER TABLE `SURAT_JALAN_BARANG` DISABLE KEYS */; /*!40000 ALTER TABLE `SURAT_JALAN_BARANG` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `TTBK` -- DROP TABLE IF EXISTS `TTBK`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `TTBK` ( `TTBK_INDEX` int(11) NOT NULL AUTO_INCREMENT, `TTBK_ID` varchar(200) DEFAULT NULL, `SURAT_JALAN_ID` varchar(50) DEFAULT NULL, `MASTER_JENIS_BARANG_ID` varchar(50) DEFAULT NULL, `MASTER_JENIS_BARANG_DETAIL_ID` varchar(50) DEFAULT NULL, `TTBK_QTY_KOSONG` varchar(50) DEFAULT NULL, `TTBK_QTY_KLAIM` varchar(50) DEFAULT NULL, `TTBK_KEPEMILIKAN` varchar(50) DEFAULT NULL, `TTBK_KLAIM_TANGGAL` date DEFAULT NULL, `TTBK_KLAIM_KETERANGAN` text, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`TTBK_INDEX`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `TTBK` -- LOCK TABLES `TTBK` WRITE; /*!40000 ALTER TABLE `TTBK` DISABLE KEYS */; /*!40000 ALTER TABLE `TTBK` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `USER` -- DROP TABLE IF EXISTS `USER`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `USER` ( `USER_INDEX` int(11) NOT NULL AUTO_INCREMENT, `USER_ID` varchar(200) DEFAULT NULL, `USER_NAMA` varchar(200) DEFAULT NULL, `MASTER_KARYAWAN_ID` varchar(200) NOT NULL, `USER_USERNAME` varchar(200) DEFAULT NULL, `USER_PASSWORD` text, `PERUSAHAAN_KODE` varchar(50) DEFAULT NULL, `USER_BAHASA` varchar(50) NOT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, PRIMARY KEY (`USER_INDEX`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `USER` -- LOCK TABLES `USER` WRITE; /*!40000 ALTER TABLE `USER` DISABLE KEYS */; INSERT INTO `USER` VALUES (1,'20210324091898698077937486910538048978852219159','<NAME>','','admin','$2y$10$VaLO1/g.4/ygKHBWnZ5ty.lHAK/SYEp52YC5yo7RxK4cU6or5mbdu','TEST','bahasa','2021-05-03 05:51:53','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-03-25 09:12:33','20210324091898698077937486910538048978852219159','AKTIF'),(3,'20210324092398848920679480245633572468398181693','FIKRI','','fikri','$2y$10$NUnErLKNQywr/GelvoRpCenxlDeQUHJA9k/a3LD3onHlZoD0nKm9G','BBS','','2021-03-24 09:23:42','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-03-25 08:54:20','20210324091898698077937486910538048978852219159','DELETE'),(4,'202103250912988033640950581900810147759','test','','teta','$2y$10$vECxdrSNgc/Y0SVqNZQKe.03m/cErxo5.L3B07tFNv0l/MaJOZ7FG','BBS','','2021-03-25 09:12:27','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-03-25 10:59:58','20210324091898698077937486910538048978852219159','DELETE'),(5,'202103251100891967627490214206329560','EKO','','eko','$2y$10$dRo2iP7AQfJHx3xd.WPeOuhfwV/BrnznnrBIzYjCuIXQZ4hx/XFjO','TEST','bahasa','2021-05-03 05:51:45','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'),(6,'ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','Rasyid','','rasyid','$2y$10$.Iyr4fl0qeUIBKH8xGx3R.GKPAxgZ1mbbcVCoJpCF3eNtBqJ4wyHK','BGS','bahasa','2021-04-14 04:18:20','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'),(7,'a967273870e7e060b4c977392acfec201080f106202104200249','Tytie','','tytie','$2y$10$wa9jx4puZBu6UBPWv9iaquFnsc13DneXGINz7F3zq0OG7LY2mYVnq','BGS','','2021-04-20 02:49:46','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'),(8,'8f94cb494fdfc4e5f3dd88e498a02cae1309fb58202104200250','Rekop','','rekop','$2y$10$y3IrTbeErHJf9dp1Iuto8OiI4wn7tHixKz/NQFg26YPce5zXLkUU2','BBS','','2021-04-20 02:50:07','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-20 02:53:03','20210324091898698077937486910538048978852219159','DELETE'),(9,'17111b773e5051d40572bbae0a492af6d24d38e4202104200253','Rekop','','rekop','$2y$10$6AN1sa4LqxvgCqnPu85QDOnucRfNQi/4/1pcCSliV1mcnlVVYOXb.','BGS','','2021-04-20 02:53:18','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF'); /*!40000 ALTER TABLE `USER` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `USER_AKSES` -- DROP TABLE IF EXISTS `USER_AKSES`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `USER_AKSES` ( `USER_AKSES_INDEX` int(11) NOT NULL AUTO_INCREMENT, `USER_AKSES_ID` varchar(200) DEFAULT NULL, `USER_ID` varchar(200) DEFAULT NULL, `MENU_ID` varchar(200) DEFAULT NULL, `APLIKASI_ID` varchar(200) DEFAULT NULL, `USER_AKSES_LINK` varchar(200) NOT NULL, `ENTRI_WAKTU` datetime DEFAULT NULL, `ENTRI_USER` varchar(100) DEFAULT NULL, `EDIT_WAKTU` datetime DEFAULT NULL, `EDIT_USER` varchar(100) DEFAULT NULL, `DELETE_WAKTU` datetime DEFAULT NULL, `DELETE_USER` varchar(100) DEFAULT NULL, `RECORD_STATUS` varchar(100) DEFAULT NULL, `PERUSAHAAN_KODE` varchar(100) DEFAULT NULL, PRIMARY KEY (`USER_AKSES_INDEX`) ) ENGINE=InnoDB AUTO_INCREMENT=91 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `USER_AKSES` -- LOCK TABLES `USER_AKSES` WRITE; /*!40000 ALTER TABLE `USER_AKSES` DISABLE KEYS */; INSERT INTO `USER_AKSES` VALUES (10,'202103251103180836890978272015891014483','202103251100891967627490214206329560','202103251058866510618850970517841884126','202103241001208338571567833375608946797303992758','','2021-03-25 11:03:03','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-03-25 11:44:09','20210324091898698077937486910538048978852219159','DELETE',NULL),(11,'2021032511033933799928743079207755326','202103251100891967627490214206329560','202103250855428221678731007310739942873','202103241001208338571567833375608946797303992758','','2021-03-25 11:03:06','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-03-25 11:44:11','20210324091898698077937486910538048978852219159','DELETE',NULL),(12,'202103251103686625828968300926593645374','202103251100891967627490214206329560','2021032410044762430898106776438983155358721602','202103241001208338571567833375608946797303992758','','2021-03-25 11:03:09','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-03-25 11:44:14','20210324091898698077937486910538048978852219159','DELETE',NULL),(13,'202103251103729823999397249767650064883','202103251100891967627490214206329560','202103241003197640068750723599477595534566145986','202103241001208338571567833375608946797303992758','','2021-03-25 11:03:12','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-03-25 11:44:17','20210324091898698077937486910538048978852219159','DELETE',NULL),(14,'202103251103827295765558701431388499450','202103251100891967627490214206329560','20210324100370148269994951947084622361722576274','202103241001208338571567833375608946797303992758','','2021-03-25 11:03:15','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-03-25 11:44:19','20210324091898698077937486910538048978852219159','DELETE',NULL),(20,'202104071247714132788693097158124243154','202103251100891967627490214206329560','202103311050851182173322228357182642568','20210324081851323641112453178166247190886925091','','2021-04-07 12:47:00','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(21,'20210408023526032955242903313081890939','202103251100891967627490214206329560','20210324100370148269994951947084622361722576274','202103241001208338571567833375608946797303992758','','2021-04-08 02:35:37','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-21 06:52:40','20210324091898698077937486910538048978852219159','DELETE',NULL),(33,'9394376c841e5061059ed7b968f9238d8badff29202104140418','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','2021032410044762430898106776438983155358721602','202103241001208338571567833375608946797303992758','','2021-04-14 04:18:33','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-21 06:53:12','20210324091898698077937486910538048978852219159','DELETE',NULL),(34,'decd0b3944c350922c4e711046e04086fbf51176202104140418','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','20210324100370148269994951947084622361722576274','202103241001208338571567833375608946797303992758','','2021-04-14 04:18:36','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-21 06:53:19','20210324091898698077937486910538048978852219159','DELETE',NULL),(36,'025f008eec14aba6c74ab24aad35a4cac3898c0b202104170158','202103251100891967627490214206329560','517bc08fe722bd59e718f084a6334457351a4534202104120942','202103251028564773277796662616325216594','','2021-04-17 01:58:08','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-21 06:52:30','20210324091898698077937486910538048978852219159','DELETE',NULL),(37,'8acf58e825bd8058feb890bac20900ece6c16e44202104170158','202103251100891967627490214206329560','6234558f004862b9a6596f2ebb37e43d615bf52b202104120942','202103251028564773277796662616325216594','','2021-04-17 01:58:11','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-21 06:52:36','20210324091898698077937486910538048978852219159','DELETE',NULL),(38,'ce69b631338faca2cc948e34ff9dc438ac1eec88202104170158','202103251100891967627490214206329560','c364f17a979af68c02dc1eff742bf21c334bb8e4202104121032','202104090947287661991878353214208189575','','2021-04-17 01:58:21','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-21 06:52:46','20210324091898698077937486910538048978852219159','DELETE',NULL),(39,'e8c19d617f9e9c3b30838e1542435cbb96e76df3202104200251','8f94cb494fdfc4e5f3dd88e498a02cae1309fb58202104200250','20210324100370148269994951947084622361722576274','202103241001208338571567833375608946797303992758','','2021-04-20 02:51:04','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-21 07:02:00','20210324091898698077937486910538048978852219159','DELETE',NULL),(40,'de1b8f07534f52b342066635851d6850b2ec5f23202104200251','a967273870e7e060b4c977392acfec201080f106202104200249','20210324100370148269994951947084622361722576274','202103241001208338571567833375608946797303992758','','2021-04-20 02:51:19','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-21 06:53:36','20210324091898698077937486910538048978852219159','DELETE',NULL),(41,'47c00630bc5b72d536b1fc135da26a1c3bf5ac6d202104200253','17111b773e5051d40572bbae0a492af6d24d38e4202104200253','20210324100370148269994951947084622361722576274','202103241001208338571567833375608946797303992758','','2021-04-20 02:53:53','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-21 06:05:20','20210324091898698077937486910538048978852219159','DELETE',NULL),(43,'8341c6a487b261f39e5ac3889522dcbdb3ca6746202104210653','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','2021032410044762430898106776438983155358721602','202103241001208338571567833375608946797303992758','master/barang','2021-04-21 06:53:16','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-21 07:03:52','20210324091898698077937486910538048978852219159','DELETE',NULL),(44,'da0fdd161c488de82949a15a7422690d25c25a72202104210653','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','20210324100370148269994951947084622361722576274','202103241001208338571567833375608946797303992758','master/relasi','2021-04-21 06:53:23','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-21 07:03:55','20210324091898698077937486910538048978852219159','DELETE',NULL),(45,'3cb7bb791c1e68d6e24dbe03c6694bc48a220543202104210653','a967273870e7e060b4c977392acfec201080f106202104200249','20210324100370148269994951947084622361722576274','202103241001208338571567833375608946797303992758','master/relasi','2021-04-21 06:53:42','20210324091898698077937486910538048978852219159',NULL,NULL,'2021-04-21 07:03:28','20210324091898698077937486910538048978852219159','DELETE',NULL),(46,'1182f6f860304389825270e0abcdf824a9eeaa32202104210656','20210324091898698077937486910538048978852219159','202104101026390452008835310551674000242','202103240821548682284734942601866135507990747741','akuntansi/kas_kecil','2021-04-21 06:56:22','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(47,'27ab8d7fb0b104c793b58cf924be95ed048fd3d5202104210657','20210324091898698077937486910538048978852219159','465722bf14b93c1cc99b8495b9817aef91dce86e202104151019','202103240821548682284734942601866135507990747741','akuntansi/akun','2021-04-21 06:57:30','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(48,'07a6756dab2c33283b23bd8acfbb239e1bd9e265202104210657','20210324091898698077937486910538048978852219159','517bc08fe722bd59e718f084a6334457351a4534202104120942','202103251028564773277796662616325216594','konfigurasi/pajak','2021-04-21 06:57:36','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(49,'ab44efad7fccd5309a8b49358b71ed7413f9bb53202104210657','20210324091898698077937486910538048978852219159','6234558f004862b9a6596f2ebb37e43d615bf52b202104120942','202103251028564773277796662616325216594','konfigurasi/satuan','2021-04-21 06:57:40','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(50,'4ab6abaa69e2121861a6c9fe9e5aee6ff87d2e36202104210657','20210324091898698077937486910538048978852219159','202103251058866510618850970517841884126','202103241001208338571567833375608946797303992758','master/kendaraan','2021-04-21 06:57:46','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(51,'9a875429d3f032697c4b8cacb5f1b12c5e937263202104210657','20210324091898698077937486910538048978852219159','2021032410044762430898106776438983155358721602','202103241001208338571567833375608946797303992758','master/barang','2021-04-21 06:57:50','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(52,'a978adcf538d0717430c1f42514014175a215d05202104210657','20210324091898698077937486910538048978852219159','202104011108662264333431702716496641239','202103241001208338571567833375608946797303992758','master/tabung','2021-04-21 06:57:54','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(53,'97b217895debf7ce2a9ae209af3943c9a4b54e89202104210657','20210324091898698077937486910538048978852219159','202103250855428221678731007310739942873','202103241001208338571567833375608946797303992758','master/karyawan','2021-04-21 06:57:58','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(54,'1f2598191b7b1aafd1b414b4f4a60f299811ef3c202104210658','20210324091898698077937486910538048978852219159','20210324100370148269994951947084622361722576274','202103241001208338571567833375608946797303992758','master/relasi','2021-04-21 06:58:04','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(55,'093a5e55238d6ba9312b3acaae031eccb9645b1c202104210658','20210324091898698077937486910538048978852219159','202104071028351592800241419120181979294','202103241001208338571567833375608946797303992758','master/tangki','2021-04-21 06:58:07','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(56,'b9e69d0c4deb3f8124abf793f44f9f41a2d5a3a9202104210658','20210324091898698077937486910538048978852219159','202103311114892379113739333269540532836','202103241001208338571567833375608946797303992758','master/supplier','2021-04-21 06:58:10','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(57,'4d27131be9c737af7fade39b105e96c36e9501bb202104210658','20210324091898698077937486910538048978852219159','36d9327732a2de00e9bc5167d869dd8891e97cfd202104141151','202104090947287661991878353214208189575','pembelian/pd','2021-04-21 06:58:16','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(58,'bda16f0fd229c503b12f1cb572dd038a23c2e9a6202104210658','20210324091898698077937486910538048978852219159','c364f17a979af68c02dc1eff742bf21c334bb8e4202104121032','202104090947287661991878353214208189575','pembelian/po','2021-04-21 06:58:20','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(59,'4cbb61f149e86f321541df0c463beedef7767c36202104210658','20210324091898698077937486910538048978852219159','2f7d39d6ffc90de14ece2984c0a702e012d78d49202104200438','202104090947287661991878353214208189575','pembelian/pi','2021-04-21 06:58:23','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(60,'89b0305622e21efdd57953cc6d7bf19ef435a493202104210658','20210324091898698077937486910538048978852219159','202103240332600046075847073905619552387991663482','20210324033159197691698709640085196555710639272','sistem/aplikasi','2021-04-21 06:58:32','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(61,'1db94235745975ecea3f384fd30b9620e2ee4601202104210658','20210324091898698077937486910538048978852219159','202103240335339653810825136026524793597510361520','20210324033159197691698709640085196555710639272','sistem/menu','2021-04-21 06:58:36','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(62,'d6d8bd35b51515817183c8f535ec3fe07b73bb42202104210658','20210324091898698077937486910538048978852219159','202103250434913453808436324109856748307','20210324033159197691698709640085196555710639272','sistem/perusahaan','2021-04-21 06:58:39','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(63,'37fca672057e168e105f243435a148964898b657202104210658','20210324091898698077937486910538048978852219159','202103240335462346840457793879315224354224780826','20210324033159197691698709640085196555710639272','sistem/user','2021-04-21 06:58:43','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(64,'c2358102ee38831faead7bd7ef51f62e1f034c0e202104210703','a967273870e7e060b4c977392acfec201080f106202104200249','20210324100370148269994951947084622361722576274','202103241001208338571567833375608946797303992758','master/relasi','2021-04-21 07:03:33','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(65,'fe4465d4c0606380759ad8fdcee0c34b3f5959dd202104210704','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','2021032410044762430898106776438983155358721602','202103241001208338571567833375608946797303992758','master/barang','2021-04-21 07:04:01','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(66,'6eeecea34d7ea7e9f874ec32bd7b2017e3376c16202104210704','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','20210324100370148269994951947084622361722576274','202103241001208338571567833375608946797303992758','master/relasi','2021-04-21 07:04:07','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(67,'3f5ecb289a74affcc9396df252d9e8f63816cd27202104220737','20210324091898698077937486910538048978852219159','2b2f9ae12305dcfe7df5be8bb567e8b5445fbe37202104220737','<KEY>','laporan/kontrol_tabung','2021-04-22 07:37:28','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(68,'69d3ecfab4b24d821fd0388168f10a8a4957ec60202104220740','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','2b2f9ae12305dcfe7df5be8bb567e8b5445fbe37202104220737','<KEY>','laporan/kontrol_tabung','2021-04-22 07:40:43','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(69,'aa3c34f5c283061758fdb1ff8c8ef53139a5054e202104240755','20210324091898698077937486910538048978852219159','<KEY>','ad8a49514a9637bff0d1fb1d5370eaafe81dd826202104240754','manajemen_tabung/kontrol_tabung','2021-04-24 07:55:05','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(70,'da1ff753bcedf3d57583ad4e985368912be1a4bd202104240759','ac76f432a7eb6553ff93c8ed459e22355788ef14202104140418','<KEY>','ad8a49514a9637bff0d1fb1d5370eaafe81dd826202104240754','manajemen_tabung/kontrol_tabung','2021-04-24 07:59:51','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(71,'292e0b462c4b88fef0c080c5e564cfc81486fde8202104240800','a967273870e7e060b4c977392acfec201080f106202104200249','c428bb300eecaef47590baa35c88ac74cb90f0cd202104240754','ad8a49514a9637bff0d1fb1d5370eaafe81dd826202104240754','manajemen_tabung/kontrol_tabung','2021-04-24 08:00:02','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(72,'18b0e75998fb3e3fc73a03268fdee24862cb93d7202104280529','202103251100891967627490214206329560','2f7d39d6ffc90de14ece2984c0a702e012d78d49202104200438','202104090947287661991878353214208189575','pembelian/pi','2021-04-28 05:29:45','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(73,'265e38650d7299dd2529c29f8d7fe2bf724d8301202104280529','202103251100891967627490214206329560','c364f17a979af68c02dc1eff742bf21c334bb8e4202104121032','202104090947287661991878353214208189575','pembelian/po','2021-04-28 05:29:48','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(74,'048c91b1159d73a622f62212c724476cd4a5f9e6202104280529','202103251100891967627490214206329560','36d9327732a2de00e9bc5167d869dd8891e97cfd202104141151','202104090947287661991878353214208189575','pembelian/pd','2021-04-28 05:29:52','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(75,'4509adbe57d50d79203ba289da9f3a56427a66ee202104280530','202103251100891967627490214206329560','202103311114892379113739333269540532836','202103241001208338571567833375608946797303992758','master/supplier','2021-04-28 05:30:45','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(76,'9a82b0cf5d6b26aa8514639610c3bf9a8d0aa6ac202104280530','202103251100891967627490214206329560','6234558f004862b9a6596f2ebb37e43d615bf52b202104120942','202103251028564773277796662616325216594','konfigurasi/satuan','2021-04-28 05:30:52','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(77,'f89f262af687659214526b62b22f2980262ae7e3202104280530','202103251100891967627490214206329560','517bc08fe722bd59e718f084a6334457351a4534202104120942','202103251028564773277796662616325216594','konfigurasi/pajak','2021-04-28 05:30:54','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(78,'98dcf5175c2648b31ddea853b4370824b95f7453202104280533','202103251100891967627490214206329560','465722bf14b93c1cc99b8495b9817aef91dce86e202104151019','202103240821548682284734942601866135507990747741','akuntansi/akun','2021-04-28 05:33:10','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(79,'d206dfd02a3b0c7819c2bb26dffc205e26c7a0fc202104280533','202103251100891967627490214206329560','2021032410044762430898106776438983155358721602','202103241001208338571567833375608946797303992758','master/barang','2021-04-28 05:33:17','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(80,'37473de1a1caeedcc1216fed537b0ddcb6e0796c202104300904','20210324091898698077937486910538048978852219159','67547c2f5060fc8a4f48139c84f1eaa34bb3bc10202104300903','202103240821548682284734942601866135507990747741','akuntansi/hutang','2021-04-30 09:04:18','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(81,'abbb2469ffb77c1e6e30669600afaef1643675f9202104300904','20210324091898698077937486910538048978852219159','e2f5b07374810eb9cb2cb32200230381affb962e202104300903','202103240821548682284734942601866135507990747741','akuntansi/buku_besar','2021-04-30 09:04:22','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(82,'d5846479cef16269cc8a6d29f3ee86aaf340622c202104300913','202103251100891967627490214206329560','67547c2f5060fc8a4f48139c84f1eaa34bb3bc10202104300903','202103240821548682284734942601866135507990747741','akuntansi/hutang','2021-04-30 09:13:07','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(83,'566a78997f912259752a138569cd8d67052973f4202104300913','202103251100891967627490214206329560','e2f5b07374810eb9cb2cb32200230381affb962e202104300903','202103240821548682284734942601866135507990747741','akuntansi/buku_besar','2021-04-30 09:13:09','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(84,'96f2efd2d21a55f792c9db97a80da6999d5e9f06202104300913','202103251100891967627490214206329560','202104011108662264333431702716496641239','202103241001208338571567833375608946797303992758','master/tabung','2021-04-30 09:13:24','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(85,'d81bca89d3f5fd31388cdab2b6e05832b1579df5202104300913','202103251100891967627490214206329560','202103250855428221678731007310739942873','202103241001208338571567833375608946797303992758','master/karyawan','2021-04-30 09:13:28','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(86,'41c7cb3ff6ad7427619d8768e2c95360b01b4955202104300913','202103251100891967627490214206329560','20210324100370148269994951947084622361722576274','202103241001208338571567833375608946797303992758','master/relasi','2021-04-30 09:13:31','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(87,'ef16a8b75419140ef98ae1a46733e3c827db3eb7202104300913','202103251100891967627490214206329560','202104071028351592800241419120181979294','202103241001208338571567833375608946797303992758','master/tangki','2021-04-30 09:13:33','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(88,'99a486e236ccd17948128e5c924987a976a1586b202104300913','202103251100891967627490214206329560','202103251058866510618850970517841884126','202103241001208338571567833375608946797303992758','master/kendaraan','2021-04-30 09:13:37','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(89,'efef65345dcbdbad05dac0de2793fbcc55170ec3202104300913','202103251100891967627490214206329560','c428bb300eecaef47590baa35c88ac74cb90f0cd202104240754','ad8a49514a9637bff0d1fb1d5370eaafe81dd826202104240754','manajemen_tabung/kontrol_tabung','2021-04-30 09:13:40','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL),(90,'982d29679f52dfa61d74b2e038931b01255db37d202104300913','202103251100891967627490214206329560','2b2f9ae12305dcfe7df5be8bb567e8b5445fbe37202104220737','<KEY>','laporan/kontrol_tabung','2021-04-30 09:13:54','20210324091898698077937486910538048978852219159',NULL,NULL,NULL,NULL,'AKTIF',NULL); /*!40000 ALTER TABLE `USER_AKSES` 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 2021-05-06 6:18:58
<reponame>noemiperezv/Service_Now<filename>gasto_mes.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 07-12-2021 a las 19:45:02 -- Versión del servidor: 10.4.21-MariaDB -- Versión de PHP: 7.3.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!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 utf8mb4 */; -- -- Base de datos: `asignaciontareas` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `gasto_mes` -- CREATE TABLE `gasto_mes` ( `id` bigint(20) UNSIGNED NOT NULL, `mes` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `importe` double(8,2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `gasto_mes` -- INSERT INTO `gasto_mes` (`id`, `mes`, `importe`) VALUES (1, 'Enero', 3859.00), (2, 'Febrero', 4059.00), (3, 'Marzo', 4009.00), (4, 'Abril', 4049.00), (5, 'Mayo', 3209.00), (6, 'Junio', 2959.00), (7, 'Julio', 3459.00), (8, 'Agosto', 3209.00), (9, 'Septiembre', 2759.00), (10, 'Octubre', 2909.00), (11, 'Noviembre', 3059.00), (12, 'Diciembre', 3059.00); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `gasto_mes` -- ALTER TABLE `gasto_mes` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `gasto_mes` -- ALTER TABLE `gasto_mes` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; COMMIT; /*!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 */;
<filename>examples/select.0002.sql<gh_stars>1-10 SELECT * FROM mytable
<filename>Hackerrank/Easy/weather-observation-17.sql<gh_stars>1-10 /* Enter your query here. */ select round(long_w,4) from station where lat_n = (select min(lat_n) from station where lat_n>38.7780);
INSERT INTO `[#DB_PREFIX#]system_setting` (`varname`, `value`) VALUES ('integral_system_config_answer_change_source', 's:1:"Y";');
<reponame>ryanmaclean/treasure-boxes<filename>analytics-box/weblog-analytics/queries/proc_2301_extract_target_pvs_step1.sql<gh_stars>10-100 -- set session distributed_join = 'true' WITH log_pvs AS ( SELECT * FROM tmp_log_pvs WHERE TD_TIME_RANGE(time, ${td.each.start_time}, ${moment.unix(td.each.end_time).add(3, "h").unix()}, 'JST') ) , mst_uid AS ( SELECT time , td_client_id , td_uid , first_access_time FROM map_tduid_tdclientid_daily WHERE TD_TIME_RANGE(time, ${td.each.start_time}, ${moment.unix(td.each.end_time).add(3, "h").unix()}, 'JST') ) SELECT t2.td_uid , t2.first_access_time , t1.* FROM log_pvs AS t1 INNER JOIN mst_uid AS t2 ON t1.time = t2.time AND t1.td_client_id = t2.td_client_id
<gh_stars>10-100 -- file:rules.sql ln:484 expect:true create table rtest_comp ( part text, unit char(4), size float )
-- original: savepoint3.test -- credit: http://www.sqlite.org/src/tree?ci=trunk&name=test CREATE TABLE t1(a, b, c); INSERT INTO t1 VALUES(1, 2, 3) ;PRAGMA cache_size = 10; CREATE TABLE t1(a, b, c); INSERT INTO t1 VALUES(randstr(400,400), randstr(400,400), randstr(400,400)); INSERT INTO t1 SELECT randstr(400,400), randstr(400,400), randstr(400,400) FROM t1; INSERT INTO t1 SELECT randstr(400,400), randstr(400,400), randstr(400,400) FROM t1; INSERT INTO t1 SELECT randstr(400,400), randstr(400,400), randstr(400,400) FROM t1; INSERT INTO t1 SELECT randstr(400,400), randstr(400,400), randstr(400,400) FROM t1; INSERT INTO t1 SELECT randstr(400,400), randstr(400,400), randstr(400,400) FROM t1; INSERT INTO t1 SELECT randstr(400,400), randstr(400,400), randstr(400,400) FROM t1; INSERT INTO t1 SELECT randstr(400,400), randstr(400,400), randstr(400,400) FROM t1; INSERT INTO t1 SELECT randstr(400,400), randstr(400,400), randstr(400,400) FROM t1 ;CREATE TABLE t1(a, b, c); INSERT INTO t1 VALUES(1, randstr(1000,1000), randstr(1000,1000)); INSERT INTO t1 VALUES(2, randstr(1000,1000), randstr(1000,1000)) ;SAVEPOINT one; RELEASE one ;PRAGMA auto_vacuum = incremental; PRAGMA cache_size = 1000; CREATE TABLE t1(a, b); CREATE TABLE t2(a, b); CREATE TABLE t3(a, b); INSERT INTO t1 VALUES(1, randstr(500,500)); INSERT INTO t1 VALUES(2, randstr(500,500)); INSERT INTO t1 VALUES(3, randstr(500,500)); DELETE FROM t1; BEGIN; INSERT INTO t1 VALUES(1, randstr(500,500)); INSERT INTO t1 VALUES(2, randstr(500,500)); INSERT INTO t1 VALUES(3, randstr(500,500)); DROP TABLE t3; -- Page 5 of the database file is now free. DROP TABLE t2; -- Page 4 of the database file is now free. SAVEPOINT abc; PRAGMA incremental_vacuum;
<reponame>ytyaru/Rust.Diesel.PersonalPronoun.20190731072900 drop table SecondPersons;
Drop schema if exists cdl cascade; create schema cdl; set search_path=cdl,public; create table cat ( cat_id integer primary key, category text, crop boolean ); \COPY cat (cat_id,category,crop) from category.csv CSV HEADER
CREATE TABLE `cities` ( `id` varchar(36) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL, `name` varchar(50) DEFAULT NULL, `country` varchar(2) DEFAULT NULL, `parentCityId` varchar(36) CHARACTER SET ascii COLLATE ascii_general_ci DEFAULT NULL, `provinceId` varchar(36) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; CREATE TABLE `postal_codes` ( `id` varchar(36) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL, `postalCode` varchar(36) NOT NULL, `cityId` varchar(36) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL, `country` varchar(2) DEFAULT NULL, PRIMARY KEY (`id`), KEY `postalCode` (`postalCode`,`country`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; CREATE TABLE `provinces` ( `id` varchar(36) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL, `name` varchar(50) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL, `country` varchar(2) CHARACTER SET ascii COLLATE ascii_general_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
-- 500 Number of persons with death, by cause_concept_id --HINT DISTRIBUTE_ON_KEY(stratum_1) select 500 as analysis_id, CAST(d1.cause_concept_id AS VARCHAR(255)) as stratum_1, cast(null as varchar(255)) as stratum_2, cast(null as varchar(255)) as stratum_3, cast(null as varchar(255)) as stratum_4, cast(null as varchar(255)) as stratum_5, COUNT_BIG(distinct d1.PERSON_ID) as count_value into @scratchDatabaseSchema@schemaDelim@tempAchillesPrefix_500 from @cdmDatabaseSchema.death d1 group by d1.cause_concept_id ;
DROP TABLE received_messages;
CREATE VIEW lucky_fulltime_employee AS SELECT name FROM fulltime_employee WHERE lucky_number=(SELECT MIN(lucky_number) FROM fulltime_employee); CREATE VIEW fulltime_employee AS SELECT lucky_function(name) lucky_number, name, salary FROM employee WHERE type='full time'; CREATE FUNCTION lucky_function (p_name VARCHAR(30)) RETURNS DECFLOAT RETURN SELECT sysfun.rand() FROM employee WHERE name=p_name; CREATE TABLE employee ( employe_id INTEGER NOT NULL, name VARCHAR(30) NOT NULL, type VARCHAR(10) NOT NULL, salary INTEGER NOT NULL, CONSTRAINT pk_name PRIMARY KEY (name)); INSERT INTO employee VALUES (1, '<NAME>', 'part time', 10000), (2, '<NAME>', 'part time', 13000), (3, '<NAME>', 'part time', 12500), (4, '<NAME>', 'full time', 70000), (5, '<NAME>', 'full time', 81500), (6, '<NAME>', 'part time', 43600), (7, '<NAME>', 'full time', 50000), (8, '<NAME>', 'full time', 110000), (9, '<NAME>', 'full time', 90000), (10, '<NAME>', 'full time', 55000);
<gh_stars>0 insert into t_vrv_config (id, ip, name, cycle, last_refresh_date) values ('1','192.168.1.1','吉安', 10000,0); insert into t_vrv_config (id, ip, name, cycle, last_refresh_date) values ('2','192.168.1.2','九江', 10000,0);
/* Navicat Premium Data Transfer Source Server : mysqllocal Source Server Type : MySQL Source Server Version : 50717 Source Host : localhost:3306 Source Schema : sys Target Server Type : MySQL Target Server Version : 50717 File Encoding : 65001 Date: 07/02/2019 23:01:38 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for Access -- ---------------------------- DROP TABLE IF EXISTS `Access`; CREATE TABLE `Access` ( `id` bigint(15) NOT NULL AUTO_INCREMENT COMMENT '唯一标识', `schema` varchar(20) NOT NULL DEFAULT 'sys' COMMENT '集合空间', `name` varchar(50) NOT NULL COMMENT '实际表名,例如 apijson_user', `alias` varchar(20) DEFAULT NULL COMMENT '外部调用的表别名,例如 User', `get` varchar(100) NOT NULL DEFAULT '["UNKNOWN", "LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]' COMMENT '允许 get 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]\n用 JSON 类型不能设置默认值,反正权限对应的需求是明确的,也不需要自动转 JSONArray。', `head` varchar(100) NOT NULL DEFAULT '["UNKNOWN", "LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]' COMMENT '允许 head 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]', `gets` varchar(100) NOT NULL DEFAULT '["LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]' COMMENT '允许 gets 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]', `heads` varchar(100) NOT NULL DEFAULT '["LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]' COMMENT '允许 heads 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]', `post` varchar(100) NOT NULL DEFAULT '["OWNER", "ADMIN"]' COMMENT '允许 post 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]', `put` varchar(100) NOT NULL DEFAULT '["OWNER", "ADMIN"]' COMMENT '允许 put 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]', `delete` varchar(100) NOT NULL DEFAULT '["OWNER", "ADMIN"]' COMMENT '允许 delete 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]', `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`), UNIQUE KEY `name_UNIQUE` (`name`) ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8 COMMENT='权限配置'; -- ---------------------------- -- Records of Access -- ---------------------------- BEGIN; INSERT INTO `Access` VALUES (1, 'sys', 'Table', NULL, '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[]', '[]', '[]', '2018-11-28 16:38:14'); INSERT INTO `Access` VALUES (2, 'sys', 'Column', NULL, '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[]', '[]', '[]', '2018-11-28 16:38:14'); INSERT INTO `Access` VALUES (3, 'sys', 'Request', NULL, '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[]', '[]', '[]', '2018-11-28 16:38:14'); INSERT INTO `Access` VALUES (4, 'sys', 'Response', NULL, '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[]', '[]', '[]', '2018-11-28 16:38:15'); INSERT INTO `Access` VALUES (5, 'sys', 'Function', NULL, '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[]', '[]', '[]', '2018-11-28 16:38:15'); INSERT INTO `Access` VALUES (6, 'sys', 'Document', NULL, '[\"LOGIN\", \"ADMIN\"]', '[\"LOGIN\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '2018-11-28 16:38:15'); INSERT INTO `Access` VALUES (7, 'sys', 'Test', NULL, '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[]', '[]', '[]', '2018-11-28 16:38:15'); INSERT INTO `Access` VALUES (8, 'sys', 'TestRecord', NULL, '[\"LOGIN\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '2018-11-28 16:38:15'); INSERT INTO `Access` VALUES (11, 'sys', 'apijson_user', 'User', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '2018-11-28 16:28:53'); INSERT INTO `Access` VALUES (12, 'sys', 'apijson_privacy', 'Privacy', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '2018-11-28 16:29:48'); INSERT INTO `Access` VALUES (13, 'sys', 'Moment', NULL, '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '2018-11-28 16:29:19'); INSERT INTO `Access` VALUES (14, 'sys', 'Comment', NULL, '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '[\"OWNER\", \"ADMIN\"]', '2018-11-28 16:29:19'); INSERT INTO `Access` VALUES (15, 'sys', 'Login', NULL, '[]', '[]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[ \"ADMIN\"]', '[ \"ADMIN\"]', '[\"ADMIN\"]', '2018-11-28 16:29:48'); INSERT INTO `Access` VALUES (16, 'sys', 'Verify', NULL, '[]', '[]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[\"UNKNOWN\", \"LOGIN\", \"CONTACT\", \"CIRCLE\", \"OWNER\", \"ADMIN\"]', '[ \"ADMIN\"]', '[\"ADMIN\"]', '2018-11-28 16:29:48'); COMMIT; -- ---------------------------- -- Table structure for Comment -- ---------------------------- DROP TABLE IF EXISTS `Comment`; CREATE TABLE `Comment` ( `id` bigint(15) NOT NULL COMMENT '唯一标识', `toId` bigint(15) NOT NULL DEFAULT '0' COMMENT '被回复的id', `userId` bigint(15) NOT NULL COMMENT '评论人id', `momentId` bigint(15) NOT NULL COMMENT '动态id', `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期', `content` varchar(1000) NOT NULL COMMENT '内容', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='评论'; -- ---------------------------- -- Records of Comment -- ---------------------------- BEGIN; INSERT INTO `Comment` VALUES (4, 0, 38710, 470, '2017-02-01 11:20:50', 'This is a Content...-4'); INSERT INTO `Comment` VALUES (13, 0, 82005, 58, '2017-02-01 11:20:50', 'This is a Content...-13'); INSERT INTO `Comment` VALUES (22, 221, 82001, 470, '2017-02-01 11:20:50', '测试修改评论'); INSERT INTO `Comment` VALUES (44, 0, 82003, 170, '2017-02-01 11:20:50', 'This is a Content...-44'); INSERT INTO `Comment` VALUES (45, 0, 93793, 301, '2017-02-01 11:20:50', 'This is a Content...-45'); INSERT INTO `Comment` VALUES (47, 4, 70793, 470, '2017-02-01 11:20:50', 'This is a Content...-47'); INSERT INTO `Comment` VALUES (51, 45, 82003, 301, '2017-02-01 11:20:50', 'This is a Content...-51'); INSERT INTO `Comment` VALUES (54, 0, 82004, 170, '2017-02-01 11:20:50', 'This is a Content...-54'); INSERT INTO `Comment` VALUES (68, 0, 82005, 371, '2017-02-01 11:20:50', 'This is a Content...-68'); INSERT INTO `Comment` VALUES (76, 45, 93793, 301, '2017-02-01 11:20:50', 'This is a Content...-76'); INSERT INTO `Comment` VALUES (77, 13, 93793, 58, '2017-02-01 11:20:50', 'This is a Content...-77'); INSERT INTO `Comment` VALUES (97, 13, 82006, 58, '2017-02-01 11:20:50', 'This is a Content...-97'); INSERT INTO `Comment` VALUES (99, 44, 70793, 170, '2017-02-01 11:20:50', 'This is a Content...-99'); INSERT INTO `Comment` VALUES (110, 0, 93793, 371, '2017-02-01 11:23:24', 'This is a Content...-110'); INSERT INTO `Comment` VALUES (114, 0, 82001, 371, '2017-03-02 05:56:06', 'This is a Content...-114'); INSERT INTO `Comment` VALUES (115, 0, 38710, 371, '2017-03-02 05:56:06', 'This is a Content...-115'); INSERT INTO `Comment` VALUES (116, 0, 70793, 371, '2017-03-02 05:56:06', 'This is a Content...-116'); INSERT INTO `Comment` VALUES (120, 0, 93793, 301, '2017-03-02 05:56:06', 'This is a Content...-110'); INSERT INTO `Comment` VALUES (124, 0, 82001, 301, '2017-03-02 05:56:06', 'This is a Content...-114'); INSERT INTO `Comment` VALUES (157, 0, 93793, 371, '2017-02-01 11:20:50', 'This is a Content...-157'); INSERT INTO `Comment` VALUES (158, 0, 93793, 301, '2018-07-12 17:28:23', 'This is a Content...-157'); INSERT INTO `Comment` VALUES (160, 0, 82001, 235, '2017-03-02 05:56:06', 'This is a Content...-160'); INSERT INTO `Comment` VALUES (162, 0, 93793, 12, '2017-03-06 05:03:45', 'This is a Content...-162'); INSERT INTO `Comment` VALUES (163, 0, 82001, 235, '2017-03-02 05:56:06', 'This is a Content...-163'); INSERT INTO `Comment` VALUES (164, 0, 93793, 12, '2017-03-06 05:03:45', 'This is a Content...-164'); INSERT INTO `Comment` VALUES (167, 0, 82001, 58, '2017-03-25 11:48:41', 'Nice!'); INSERT INTO `Comment` VALUES (168, 1490442545077, 82001, 235, '2017-03-25 11:49:14', '???'); INSERT INTO `Comment` VALUES (172, 162, 82001, 12, '2017-03-25 12:22:58', 'OK'); INSERT INTO `Comment` VALUES (173, 0, 38710, 58, '2017-03-25 12:25:13', 'Good'); INSERT INTO `Comment` VALUES (175, 0, 38710, 12, '2017-03-25 12:26:53', 'Java is the best program language!'); INSERT INTO `Comment` VALUES (176, 166, 38710, 15, '2017-03-25 12:28:03', 'thank you'); INSERT INTO `Comment` VALUES (178, 0, 38710, 511, '2017-03-25 12:30:55', 'wbw'); INSERT INTO `Comment` VALUES (182, 110, 82001, 371, '2017-03-26 06:12:52', 'hahaha'); INSERT INTO `Comment` VALUES (188, 97, 82001, 58, '2017-03-26 07:21:32', '1646'); INSERT INTO `Comment` VALUES (190, 0, 82001, 58, '2017-03-26 07:22:13', 'dbdj'); INSERT INTO `Comment` VALUES (206, 54, 82001, 170, '2017-03-29 03:04:23', 'ejej'); INSERT INTO `Comment` VALUES (209, 13, 82001, 58, '2017-03-29 03:05:59', 'hehj'); INSERT INTO `Comment` VALUES (300, 97, 82001, 58, '2017-03-29 03:06:07', 'hj'); INSERT INTO `Comment` VALUES (301, 194, 82001, 235, '2017-03-29 03:06:24', 'jj'); INSERT INTO `Comment` VALUES (4001, 0, 82001, 58, '2017-03-29 08:39:52', 'I would like to say …'); INSERT INTO `Comment` VALUES (1490776944301, 0, 82001, 58, '2017-03-29 08:42:24', 'hello'); INSERT INTO `Comment` VALUES (1490776966828, 173, 82001, 58, '2017-03-29 08:42:46', 'me too'); INSERT INTO `Comment` VALUES (1490777905437, 0, 82001, 543, '2017-03-29 08:58:25', 'rr'); INSERT INTO `Comment` VALUES (1490778122719, 175, 82001, 12, '2017-03-29 09:02:02', 'Yeah! I think so!'); INSERT INTO `Comment` VALUES (1490778494751, 1490778122719, 82001, 12, '2017-03-29 09:08:14', 'reply Android82001'); INSERT INTO `Comment` VALUES (1490778681337, 166, 82001, 12, '2017-03-29 09:11:21', 'gg'); INSERT INTO `Comment` VALUES (1490780759866, 99, 82001, 170, '2017-03-29 09:45:59', '99'); INSERT INTO `Comment` VALUES (1490781009548, 51, 82001, 301, '2017-03-29 09:50:09', '3'); INSERT INTO `Comment` VALUES (1490781032005, 45, 82001, 301, '2017-03-29 09:50:32', '93793'); INSERT INTO `Comment` VALUES (1490781817044, 209, 38710, 58, '2017-03-29 10:03:37', '82001'); INSERT INTO `Comment` VALUES (1490781850893, 1490776966828, 38710, 58, '2017-03-29 10:04:10', 'haha!'); INSERT INTO `Comment` VALUES (1490781857242, 190, 38710, 58, '2017-03-29 10:04:17', 'nice'); INSERT INTO `Comment` VALUES (1490781865407, 1490781857242, 38710, 58, '2017-03-29 10:04:25', 'wow'); INSERT INTO `Comment` VALUES (1490781899147, 197, 38710, 12, '2017-03-29 10:04:59', 'kaka'); INSERT INTO `Comment` VALUES (1490794439561, 1490778681337, 82001, 12, '2017-03-29 13:33:59', 'gg?'); INSERT INTO `Comment` VALUES (1490794610632, 172, 82001, 12, '2017-03-29 13:36:50', 'All right'); INSERT INTO `Comment` VALUES (1490794937137, 1490794919957, 82001, 12, '2017-03-29 13:42:17', 'All right ok ok'); INSERT INTO `Comment` VALUES (1490794953438, 1490794937137, 82001, 12, '2017-03-29 13:42:33', 'All right ok ok ll'); INSERT INTO `Comment` VALUES (1490796241178, 0, 38710, 58, '2017-03-29 14:04:01', 'Anything else?'); INSERT INTO `Comment` VALUES (1490796629591, 175, 38710, 12, '2017-03-29 14:10:29', 'well'); INSERT INTO `Comment` VALUES (1490798710678, 110, 38710, 371, '2017-03-29 14:45:10', '110'); INSERT INTO `Comment` VALUES (1490800971064, 175, 38710, 12, '2017-03-29 15:22:51', 'I do'); INSERT INTO `Comment` VALUES (1490848396072, 175, 82001, 12, '2017-03-30 04:33:16', 'Lemon'); INSERT INTO `Comment` VALUES (1490848581424, 166, 82001, 12, '2017-03-30 04:36:21', '82001ejej'); INSERT INTO `Comment` VALUES (1490850764448, 162, 82001, 12, '2017-03-30 05:12:44', '-162'); INSERT INTO `Comment` VALUES (1490850844016, 0, 82001, 12, '2017-03-30 05:14:04', 'I like it'); INSERT INTO `Comment` VALUES (1490850876656, 1490800971064, 82001, 12, '2017-03-30 05:14:36', 'I do so'); INSERT INTO `Comment` VALUES (1490854894566, 175, 82001, 12, '2017-03-30 06:21:34', 'it does be a good lang'); INSERT INTO `Comment` VALUES (1490863443219, 1490850844016, 82002, 12, '2017-03-30 08:44:03', 'me too!'); INSERT INTO `Comment` VALUES (1490863469638, 0, 82002, 15, '2017-03-30 08:44:29', 'Just do it'); INSERT INTO `Comment` VALUES (1490863507114, 4, 82003, 470, '2017-03-30 08:45:07', 'yes'); INSERT INTO `Comment` VALUES (1490863563124, 0, 82003, 704, '2017-03-30 08:46:03', 'I want one'); INSERT INTO `Comment` VALUES (1490863651493, 0, 70793, 595, '2017-03-30 08:47:31', 'wow'); INSERT INTO `Comment` VALUES (1490863661426, 1490780759866, 70793, 170, '2017-03-30 08:47:41', '66'); INSERT INTO `Comment` VALUES (1490863676989, 0, 70793, 12, '2017-03-30 08:47:56', 'Shy'); INSERT INTO `Comment` VALUES (1490863711703, 0, 70793, 511, '2017-03-30 08:48:31', 'I hope I can join'); INSERT INTO `Comment` VALUES (1490863717947, 178, 70793, 511, '2017-03-30 08:48:37', 'what?'); INSERT INTO `Comment` VALUES (1490863783276, 1490863711703, 93793, 511, '2017-03-30 08:49:43', 'haha welcome'); INSERT INTO `Comment` VALUES (1490863903900, 0, 82006, 470, '2017-03-30 08:51:43', 'SOGA'); INSERT INTO `Comment` VALUES (1490863915675, 0, 82006, 235, '2017-03-30 08:51:55', 'Good boy'); INSERT INTO `Comment` VALUES (1490863938712, 0, 82006, 12, '2017-03-30 08:52:18', 'Handsome!'); INSERT INTO `Comment` VALUES (1490863978239, 1490796241178, 82006, 58, '2017-03-30 08:52:58', 'there still remains a question…'); INSERT INTO `Comment` VALUES (1490864016738, 0, 82006, 511, '2017-03-30 08:53:36', 'I want to have a try!'); INSERT INTO `Comment` VALUES (1490864023700, 0, 82006, 543, '2017-03-30 08:53:43', 'oops'); INSERT INTO `Comment` VALUES (1490864039264, 0, 82006, 551, '2017-03-30 08:53:59', 'Wonderful!'); INSERT INTO `Comment` VALUES (1490864152008, 0, 82006, 58, '2017-03-30 08:55:52', 'U R ugly( ´?` )'); INSERT INTO `Comment` VALUES (1490864254400, 1490863915675, 82044, 235, '2017-03-30 08:57:34', 'And I have no idea'); INSERT INTO `Comment` VALUES (1490864276824, 0, 82044, 12, '2017-03-30 08:57:56', 'Oh my God!'); INSERT INTO `Comment` VALUES (1490864292184, 1490864152008, 82044, 58, '2017-03-30 08:58:12', 'haha!'); INSERT INTO `Comment` VALUES (1490864379424, 1490863938712, 82001, 12, '2017-03-30 08:59:39', 'Thank you~'); INSERT INTO `Comment` VALUES (1490864400210, 1490864276824, 82001, 12, '2017-03-30 09:00:00', 'Amazing, isnt it?'); INSERT INTO `Comment` VALUES (1490874908570, 1490864023700, 82055, 543, '2017-03-30 11:55:08', 'yeah'); INSERT INTO `Comment` VALUES (1490874930994, 1490777905437, 82055, 543, '2017-03-30 11:55:30', 'yy'); INSERT INTO `Comment` VALUES (1490874968779, 0, 82055, 12, '2017-03-30 11:56:08', 'I love it'); INSERT INTO `Comment` VALUES (1490875033494, 0, 82055, 301, '2017-03-30 11:57:13', 'More Comments'); INSERT INTO `Comment` VALUES (1490875040761, 158, 82055, 301, '2017-03-30 11:57:20', '157'); INSERT INTO `Comment` VALUES (1490875046704, 120, 82055, 301, '2017-03-30 11:57:26', '110'); INSERT INTO `Comment` VALUES (1490875660259, 1490863469638, 82055, 15, '2017-03-30 12:07:40', 'I prove wht you said(??????)'); INSERT INTO `Comment` VALUES (1490879678127, 0, 82001, 543, '2017-03-30 13:14:38', 'Baby you are a firework!'); INSERT INTO `Comment` VALUES (1490973736662, 1490973715568, 70793, 170, '2017-03-31 15:22:16', 'Hello, I am a fresh man'); INSERT INTO `Comment` VALUES (1490973890875, 1490864039264, 93793, 551, '2017-03-31 15:24:50', 'While I donot think so…'); INSERT INTO `Comment` VALUES (1491014830404, 1490864016738, 82001, 511, '2017-04-01 02:47:10', 'Have a nice day!'); INSERT INTO `Comment` VALUES (1491119615611, 1490864023700, 82001, 543, '2017-04-02 07:53:35', '$$'); INSERT INTO `Comment` VALUES (1491119670185, 68, 82001, 371, '2017-04-02 07:54:30', 'Leave a word'); INSERT INTO `Comment` VALUES (1491119695580, 0, 82001, 371, '2017-04-02 07:54:55', 'leave a word'); INSERT INTO `Comment` VALUES (1491130701902, 0, 38710, 511, '2017-04-02 10:58:21', 'Thanks for your supports (-^?^-)'); INSERT INTO `Comment` VALUES (1491209763162, 0, 82001, 1491200468898, '2017-04-03 08:56:03', 'How do you do'); INSERT INTO `Comment` VALUES (1491277552385, 0, 82001, 58, '2017-04-04 03:45:52', 'Seven'); INSERT INTO `Comment` VALUES (1491312438951, 1490863651493, 82001, 595, '2017-04-04 13:27:18', 'WaKaKa!'); INSERT INTO `Comment` VALUES (1491709064513, 0, 82001, 551, '2017-04-09 03:37:44', 'soga'); INSERT INTO `Comment` VALUES (1491740899179, 0, 82001, 470, '2017-04-09 12:28:19', 'www'); INSERT INTO `Comment` VALUES (1491798370749, 0, 82002, 551, '2017-04-10 04:26:10', 'Nice!'); INSERT INTO `Comment` VALUES (1491798499667, 115, 82002, 371, '2017-04-10 04:28:19', 'I do not understand…'); INSERT INTO `Comment` VALUES (1491830543193, 0, 82001, 170, '2017-04-10 13:22:23', 'What is the hell?'); INSERT INTO `Comment` VALUES (1492932228287, 1491209763162, 38710, 1491200468898, '2017-04-23 07:23:48', 'fine,thanks'); INSERT INTO `Comment` VALUES (1493094307810, 0, 82001, 551, '2017-04-25 04:25:04', '删除或修改数据请先创建,不要动原来的,谢谢'); INSERT INTO `Comment` VALUES (1493094307910, 0, 82001, 551, '2017-04-25 04:26:04', '用POST新增数据'); INSERT INTO `Comment` VALUES (1493186363132, 1490850764448, 82001, 12, '2017-04-26 05:59:23', 'sndnd'); INSERT INTO `Comment` VALUES (1502632433970, 0, 82002, 1493835799335, '2017-08-13 13:53:53', 'just have fun!'); INSERT INTO `Comment` VALUES (1508053783278, 0, 82001, 1508053762227, '2017-10-15 07:49:43', '可以的'); INSERT INTO `Comment` VALUES (1508072695833, 0, 82003, 1508072633830, '2017-10-15 13:04:55', '心疼地抱住自己(๑´ㅂ`๑)'); INSERT INTO `Comment` VALUES (1508227456407, 0, 82001, 15, '2017-10-17 08:04:16', 'hsh'); INSERT INTO `Comment` VALUES (1508227498578, 1491798370749, 82001, 551, '2017-10-17 08:04:58', 'g'); INSERT INTO `Comment` VALUES (1508462026394, 1490850844016, 82001, 12, '2017-10-20 01:13:46', '欧'); INSERT INTO `Comment` VALUES (1508492585904, 1508462026394, 82001, 12, '2017-10-20 09:43:05', 'my god'); INSERT INTO `Comment` VALUES (1509003045509, 0, 82001, 1508072633830, '2017-10-26 07:30:45', 'hhh'); INSERT INTO `Comment` VALUES (1509346549158, 0, 82001, 170, '2017-10-30 06:55:49', '呵呵'); INSERT INTO `Comment` VALUES (1509346556395, 0, 82001, 170, '2017-10-30 06:55:56', '测试'); INSERT INTO `Comment` VALUES (1509346606036, 0, 82001, 15, '2017-10-30 06:56:46', '测'); INSERT INTO `Comment` VALUES (1509518079106, 0, 82001, 1508073178489, '2017-11-01 06:34:39', '哦哦哦'); INSERT INTO `Comment` VALUES (1510795816462, 162, 82001, 12, '2017-11-16 01:30:16', '赞'); INSERT INTO `Comment` VALUES (1510795933629, 0, 82001, 1508073178489, '2017-11-16 01:32:13', 'cc'); INSERT INTO `Comment` VALUES (1510813284894, 0, 82001, 12, '2017-11-16 06:21:24', 'asdasdasdas'); INSERT INTO `Comment` VALUES (1510813295700, 162, 82001, 12, '2017-11-16 06:21:35', 'adsdasdasdasd'); INSERT INTO `Comment` VALUES (1511374269759, 99, 82001, 170, '2017-11-22 18:11:09', '记录里'); INSERT INTO `Comment` VALUES (1511374274194, 0, 82001, 170, '2017-11-22 18:11:14', '哦哦哦'); INSERT INTO `Comment` VALUES (1511407695342, 0, 1511407581570, 371, '2017-11-23 03:28:15', '好的'); INSERT INTO `Comment` VALUES (1511407702981, 157, 1511407581570, 371, '2017-11-23 03:28:22', '你好'); INSERT INTO `Comment` VALUES (1511878024415, 0, 1511761906715, 12, '2017-11-28 14:07:04', '你今年'); INSERT INTO `Comment` VALUES (1511878031610, 1511878024415, 1511761906715, 12, '2017-11-28 14:07:11', '不鸟你'); INSERT INTO `Comment` VALUES (1512035094555, 0, 82001, 12, '2017-11-30 09:44:54', '呵呵呵'); INSERT INTO `Comment` VALUES (1512035117021, 0, 82001, 32, '2017-11-30 09:45:17', '图片看不了啊'); INSERT INTO `Comment` VALUES (1512038831617, 1512035117021, 82001, 32, '2017-11-30 10:47:11', '代码截屏都是2k分辨率的,并且还放在GitHub上,可以等一会儿,或者更新下ZBLibray(图片加载库从UIL换成了Glide)就行'); INSERT INTO `Comment` VALUES (1512039030970, 1512035117021, 82001, 32, '2017-11-30 10:50:30', '一般九宫格图片都是压缩图,分辨率在300*300左右,加载很快,点击放大后才是原图,1080P左右'); INSERT INTO `Comment` VALUES (1512531859019, 0, 1512531601485, 1512314438990, '2017-12-06 03:44:19', '666'); INSERT INTO `Comment` VALUES (1512533520832, 1512531859019, 38710, 1512314438990, '2017-12-06 04:12:00', '嘿嘿'); INSERT INTO `Comment` VALUES (1513656045399, 0, 82001, 1508072633830, '2017-12-19 04:00:45', '444444'); INSERT INTO `Comment` VALUES (1514425796195, 0, 82001, 1513094436910, '2017-12-28 01:49:56', '一起'); INSERT INTO `Comment` VALUES (1514473034425, 1514425796195, 93793, 1513094436910, '2017-12-28 14:57:14', '干啥?'); INSERT INTO `Comment` VALUES (1514478784653, 0, 82001, 1513094436910, '2017-12-28 16:33:04', 'bug很多'); INSERT INTO `Comment` VALUES (1514506206319, 1514478784653, 38710, 1513094436910, '2017-12-29 00:10:06', '碰到哪些了呢?欢迎指出,尽快解决^_^'); INSERT INTO `Comment` VALUES (1514617131036, 0, 82005, 1513094436910, '2017-12-30 06:58:51', '口子'); INSERT INTO `Comment` VALUES (1514858592813, 0, 82001, 1514858533480, '2018-01-02 02:03:12', '铁人'); INSERT INTO `Comment` VALUES (1514858640958, 0, 38710, 1514858533480, '2018-01-02 02:04:00', '斯塔克工业'); INSERT INTO `Comment` VALUES (1514858707767, 0, 70793, 1514858533480, '2018-01-02 02:05:07', '壕友乎?'); INSERT INTO `Comment` VALUES (1514960713300, 0, 82001, 1513094436910, '2018-01-03 06:25:13', '1'); INSERT INTO `Comment` VALUES (1514960744185, 1512531859019, 82001, 1512314438990, '2018-01-03 06:25:44', '哇'); INSERT INTO `Comment` VALUES (1515057852156, 0, 82001, 58, '2018-01-04 09:24:12', '你说'); INSERT INTO `Comment` VALUES (1515057857464, 0, 82001, 58, '2018-01-04 09:24:17', '你说'); INSERT INTO `Comment` VALUES (1515057861094, 0, 82001, 58, '2018-01-04 09:24:21', '蓉蓉'); INSERT INTO `Comment` VALUES (1515057864174, 1515057857464, 82001, 58, '2018-01-04 09:24:24', '哦轻松'); INSERT INTO `Comment` VALUES (1515057869554, 0, 82001, 58, '2018-01-04 09:24:29', ',王者荣耀'); INSERT INTO `Comment` VALUES (1515313792063, 162, 82001, 12, '2018-01-07 08:29:52', 'you'); INSERT INTO `Comment` VALUES (1515313823155, 164, 82001, 12, '2018-01-07 08:30:23', 'you'); INSERT INTO `Comment` VALUES (1516190557098, 0, 82001, 1513094436910, '2018-01-17 12:02:37', '哦婆婆'); INSERT INTO `Comment` VALUES (1516629533520, 0, 82001, 1508072633830, '2018-01-22 13:58:53', '小臭臭'); INSERT INTO `Comment` VALUES (1516686985310, 0, 82001, 1516086423441, '2018-01-23 05:56:25', 'hologram'); INSERT INTO `Comment` VALUES (1516687072270, 1516629533520, 82001, 1508072633830, '2018-01-23 05:57:52', '咯我就'); INSERT INTO `Comment` VALUES (1516687437251, 1516686985310, 82001, 1516086423441, '2018-01-23 06:03:57', '你家里好哦'); INSERT INTO `Comment` VALUES (1516691119239, 1516686985310, 38710, 1516086423441, '2018-01-23 07:05:19', '我喜欢Hololens嘿嘿'); INSERT INTO `Comment` VALUES (1516780129884, 0, 82001, 1516086423441, '2018-01-24 07:48:49', 'aaa'); INSERT INTO `Comment` VALUES (1516783920998, 0, 82001, 1513094436910, '2018-01-24 08:52:00', '这个是实时的吗'); INSERT INTO `Comment` VALUES (1516785657724, 0, 82001, 1516086423441, '2018-01-24 09:20:57', 'hj'); INSERT INTO `Comment` VALUES (1516805226757, 1516785657724, 38710, 1516086423441, '2018-01-24 14:47:06', '滑稽?'); INSERT INTO `Comment` VALUES (1516805340593, 1516783920998, 38710, 1513094436910, '2018-01-24 14:49:00', '看怎么定义 实时 。这个是仿微信朋友圈列表和QQ空间说说详情,在线同步的,但没做推送,所以不是QQ微信聊天那种即时通讯。'); INSERT INTO `Comment` VALUES (1516843720270, 1516780129884, 82001, 1516086423441, '2018-01-25 01:28:40', 'ghj'); INSERT INTO `Comment` VALUES (1516862537978, 1515057869554, 70793, 58, '2018-01-25 06:42:17', '绝地逃亡吃鸡'); INSERT INTO `Comment` VALUES (1516931850067, 0, 82001, 1516086423441, '2018-01-26 01:57:30', '1111111111111'); INSERT INTO `Comment` VALUES (1516951734010, 1514506206319, 82001, 1513094436910, '2018-01-26 07:28:54', '火锅'); INSERT INTO `Comment` VALUES (1516951754620, 0, 82001, 1513094436910, '2018-01-26 07:29:14', '凤飞飞刚刚好'); INSERT INTO `Comment` VALUES (1516951826863, 0, 82001, 170, '2018-01-26 07:30:26', '黑珍珠'); INSERT INTO `Comment` VALUES (1517193267472, 1513656045399, 82001, 1508072633830, '2018-01-29 02:34:27', '1'); INSERT INTO `Comment` VALUES (1517193278459, 0, 82001, 1508072633830, '2018-01-29 02:34:38', '112'); INSERT INTO `Comment` VALUES (1517229342303, 0, 82001, 1516086423441, '2018-01-29 12:35:42', '几号抢的'); INSERT INTO `Comment` VALUES (1517234768450, 1517229342303, 93793, 1516086423441, '2018-01-29 14:06:08', '9号'); INSERT INTO `Comment` VALUES (1517303775429, 1490863903900, 82001, 470, '2018-01-30 09:16:15', '???'); INSERT INTO `Comment` VALUES (1517375165233, 0, 82001, 1508053762227, '2018-01-31 05:06:05', '666'); INSERT INTO `Comment` VALUES (1517730034960, 0, 82001, 170, '2018-02-04 07:40:34', '陌陌陌陌'); INSERT INTO `Comment` VALUES (1518365470893, 44, 82001, 170, '2018-02-11 16:11:10', '野蜂飞舞'); INSERT INTO `Comment` VALUES (1518614899681, 0, 82001, 301, '2018-02-14 13:28:19', 'https://goo.gl/search/JJB+Sports\nJJB Sports,'); INSERT INTO `Comment` VALUES (1519719341810, 0, 82001, 1516086423441, '2018-02-27 08:15:41', '我也想抢一张'); INSERT INTO `Comment` VALUES (1519793574249, 1519719341810, 93793, 1516086423441, '2018-02-28 04:52:54', '哈哈,春运都过了啊'); INSERT INTO `Comment` VALUES (1519813825959, 0, 82001, 1516086423441, '2018-02-28 10:30:25', '距P民'); INSERT INTO `Comment` VALUES (1519974842508, 0, 82001, 1516086423441, '2018-03-02 07:14:02', '1111'); INSERT INTO `Comment` VALUES (1519974868848, 1516691119239, 82001, 1516086423441, '2018-03-02 07:14:28', '1111'); INSERT INTO `Comment` VALUES (1519979533242, 0, 82001, 1508072633830, '2018-03-02 08:32:13', 'hj'); INSERT INTO `Comment` VALUES (1520231250819, 0, 82001, 12, '2018-03-05 06:27:30', '浑身难受呢'); INSERT INTO `Comment` VALUES (1520264640815, 0, 70793, 1520242333325, '2018-03-05 15:44:00', '兰博基尼'); INSERT INTO `Comment` VALUES (1520330788006, 0, 1520242280259, 1514017444961, '2018-03-06 10:06:28', '八组'); INSERT INTO `Comment` VALUES (1520578883309, 0, 82001, 12, '2018-03-09 07:01:23', '我用流量'); INSERT INTO `Comment` VALUES (1520699466219, 1520578883309, 82001, 12, '2018-03-10 16:31:06', '壕'); INSERT INTO `Comment` VALUES (1522074343188, 1513656045399, 82001, 1508072633830, '2018-03-26 14:25:43', 'rrrrr'); INSERT INTO `Comment` VALUES (1522074360206, 1519979533242, 82001, 1508072633830, '2018-03-26 14:26:00', 'tttt'); INSERT INTO `Comment` VALUES (1522657767636, 120, 82001, 301, '2018-04-02 08:29:27', '云画'); INSERT INTO `Comment` VALUES (1522741138316, 1517193278459, 82001, 1508072633830, '2018-04-03 07:38:58', '哦哦哦'); INSERT INTO `Comment` VALUES (1522986959852, 1508072695833, 82001, 1508072633830, '2018-04-06 03:55:59', '!????'); INSERT INTO `Comment` VALUES (1523936378484, 0, 1523935772553, 1523936332614, '2018-04-17 03:39:38', '不错不错哦'); INSERT INTO `Comment` VALUES (1524032180807, 1519719341810, 82001, 1516086423441, '2018-04-18 06:16:20', '你好啊'); INSERT INTO `Comment` VALUES (1524032244441, 1519974842508, 82001, 1516086423441, '2018-04-18 06:17:24', '干嘛,单身吗?'); INSERT INTO `Comment` VALUES (1524032255755, 1519974842508, 82001, 1516086423441, '2018-04-18 06:17:35', '单身到底吗?'); INSERT INTO `Comment` VALUES (1524032299622, 0, 82001, 1516086423441, '2018-04-18 06:18:19', '别给我得怂'); INSERT INTO `Comment` VALUES (1524032305810, 1524032299622, 82001, 1516086423441, '2018-04-18 06:18:25', '你好'); INSERT INTO `Comment` VALUES (1524178495587, 0, 1524042900591, 1524178455305, '2018-04-19 22:54:55', '嘻嘻'); INSERT INTO `Comment` VALUES (1524178500568, 1524178495587, 1524042900591, 1524178455305, '2018-04-19 22:55:00', '哈哈哈'); INSERT INTO `Comment` VALUES (1524190367904, 0, 38710, 1524178455305, '2018-04-20 02:12:47', '你头像用的是本地的路径,只有你能看到,别人看不到哦,可以换一个url'); INSERT INTO `Comment` VALUES (1524190412418, 1524190367904, 38710, 1524178455305, '2018-04-20 02:13:32', '我的资料>编辑>改下备注'); INSERT INTO `Comment` VALUES (1524190941111, 1524032244441, 82003, 1516086423441, '2018-04-20 02:22:21', '单身约吗?'); INSERT INTO `Comment` VALUES (1524190981549, 1522657767636, 82003, 301, '2018-04-20 02:23:01', '这个6'); INSERT INTO `Comment` VALUES (1524191012552, 0, 82003, 1524178455305, '2018-04-20 02:23:32', '早上好小姐姐'); INSERT INTO `Comment` VALUES (1524214012015, 1524190367904, 1524042900591, 1524178455305, '2018-04-20 08:46:52', '怎么换url'); INSERT INTO `Comment` VALUES (1524235902970, 1524214012015, 82003, 1524178455305, '2018-04-20 14:51:42', '在我的资料界面编辑备注'); INSERT INTO `Comment` VALUES (1524297798490, 0, 82001, 1513094436910, '2018-04-21 08:03:18', 'gg'); INSERT INTO `Comment` VALUES (1524461430874, 1519979533242, 82001, 1508072633830, '2018-04-23 05:30:30', '哦哦哦'); INSERT INTO `Comment` VALUES (1524461436914, 0, 82001, 1508072633830, '2018-04-23 05:30:36', '莫'); INSERT INTO `Comment` VALUES (1524461441914, 0, 82001, 1508072633830, '2018-04-23 05:30:41', '默默'); INSERT INTO `Comment` VALUES (1524488068926, 1524178500568, 82001, 1524178455305, '2018-04-23 12:54:28', '哦哦哦'); INSERT INTO `Comment` VALUES (1524582671132, 1524461441914, 82003, 1508072633830, '2018-04-24 15:11:11', '陌陌'); INSERT INTO `Comment` VALUES (1524582716289, 1524461441914, 70793, 1508072633830, '2018-04-24 15:11:56', '脉脉'); INSERT INTO `Comment` VALUES (1524798402799, 0, 1523626157302, 1524178455305, '2018-04-27 03:06:42', '能不能把本地的图片传到服务器,这样大家都能看到了,用url换头像不太习惯'); INSERT INTO `Comment` VALUES (1524799118232, 0, 1523626157302, 1512314438990, '2018-04-27 03:18:38', '这些图片是怎么发上去的呢?我发动态只有默认的两张图'); INSERT INTO `Comment` VALUES (1524843908458, 1524799118232, 82001, 1512314438990, '2018-04-27 15:45:08', '在HttpRequest.addMoment中加的,因为APIJSON的Server Demo没做图片存储,所以目前只能自己传图片的url,可以百度图片上找哈'); INSERT INTO `Comment` VALUES (1524844181029, 1524798402799, 82001, 1524178455305, '2018-04-27 15:49:41', '确实有这样的问题,但这个Demo仅供展示APIJSON的接口数据增删改查的能力,又拍云,七牛等平台又需要对接及付费,所以Demo暂时不提供哈,需要的话可以自己搞。建议先把图片上传到又拍云等平台,拿回url再传到自己的服务器^_^'); INSERT INTO `Comment` VALUES (1524844222775, 1524798402799, 82001, 1524178455305, '2018-04-27 15:50:22', '目前也可以百度一张图,把对应的url传上去,大家就都能看到了哈哈'); INSERT INTO `Comment` VALUES (1525658333654, 0, 82001, 1513094436910, '2018-05-07 01:58:53', 'q'); INSERT INTO `Comment` VALUES (1527821844576, 0, 1527821445610, 1527821296110, '2018-06-01 02:57:24', '好不好用啊'); INSERT INTO `Comment` VALUES (1527821876802, 1527821844576, 1527495857924, 1527821296110, '2018-06-01 02:57:56', '当然好用啊'); INSERT INTO `Comment` VALUES (1527837906576, 0, 38710, 1527830331780, '2018-06-01 07:25:06', '哇,好漂亮'); INSERT INTO `Comment` VALUES (1527837965006, 0, 82002, 1527830474378, '2018-06-01 07:26:05', '像平板电脑哈哈'); INSERT INTO `Comment` VALUES (1527862540820, 0, 1527495857924, 1527830331780, '2018-06-01 14:15:40', '谢谢你'); INSERT INTO `Comment` VALUES (1527862609352, 1527837965006, 1527495857924, 1527830474378, '2018-06-01 14:16:49', 'ㄟ(≧◇≦)ㄏ'); INSERT INTO `Comment` VALUES (1528105592852, 0, 82001, 1516086423441, '2018-06-04 09:46:32', 'aaaaa'); INSERT INTO `Comment` VALUES (1528250648974, 0, 82001, 1523936332614, '2018-06-06 02:04:08', 'hshdv'); INSERT INTO `Comment` VALUES (1528270188205, 0, 1528250827953, 1527830474378, '2018-06-06 07:29:48', '这个图片是怎么发出来的啊,我发动态就只是那两张默认图片'); INSERT INTO `Comment` VALUES (1528278187969, 0, 82001, 470, '2018-06-06 09:43:07', '啊啊啊啊'); INSERT INTO `Comment` VALUES (1528289446172, 0, 82001, 1528269988360, '2018-06-06 12:50:46', '因为没做前端上传和后端保存图片的功能,APIJSONApp主要是用来展示APIJSON的自动化接口的'); INSERT INTO `Comment` VALUES (1528289580140, 0, 38710, 1528274037224, '2018-06-06 12:53:00', '这两张图片的url错了哦,都是网页url,所以小图加载不出来,只能点击后用WebView查看'); INSERT INTO `Comment` VALUES (1528327885509, 1528289580140, 1528250827953, 1528274037224, '2018-06-06 23:31:25', '噢噢,没想到你能这么快回复,谢谢'); INSERT INTO `Comment` VALUES (1528333168328, 0, 82001, 1514017444961, '2018-06-07 00:59:28', 'zj'); INSERT INTO `Comment` VALUES (1528333174811, 0, 82001, 1514017444961, '2018-06-07 00:59:34', 'xj'); INSERT INTO `Comment` VALUES (1528393204569, 1528270188205, 38710, 1527830474378, '2018-06-07 17:40:04', '把接口里的pictureList的值改下,里面包含图片url'); INSERT INTO `Comment` VALUES (1528463152459, 1528463135762, 1528339692804, 1528462217322, '2018-06-08 13:05:52', '我想去'); INSERT INTO `Comment` VALUES (1528463165903, 0, 1528339692804, 1528462217322, '2018-06-08 13:06:05', '我想去'); INSERT INTO `Comment` VALUES (1528516951218, 0, 82001, 1528462217322, '2018-06-09 04:02:31', '这里能约到小姐姐算我输୧(๑•̀⌄•́๑)૭'); INSERT INTO `Comment` VALUES (1528531711651, 0, 82001, 543, '2018-06-09 08:08:31', 'fn'); INSERT INTO `Comment` VALUES (1528554476310, 0, 82001, 1516086423441, '2018-06-09 14:27:56', 'thS'); INSERT INTO `Comment` VALUES (1528676480604, 0, 1528339692804, 1528356421201, '2018-06-11 00:21:20', 'nihshs'); INSERT INTO `Comment` VALUES (1528677257985, 0, 1528339692804, 1528676875139, '2018-06-11 00:34:17', 'aaa'); INSERT INTO `Comment` VALUES (1528679814166, 0, 1528339692804, 1528676875139, '2018-06-11 01:16:54', '12'); INSERT INTO `Comment` VALUES (1528681265496, 1528516951218, 1528339692804, 1528462217322, '2018-06-11 01:41:05', '你输了有什么惩罚吗?'); INSERT INTO `Comment` VALUES (1528698907535, 0, 82001, 1516086423441, '2018-06-11 06:35:07', 'yhbv'); INSERT INTO `Comment` VALUES (1528703971675, 1528681265496, 82001, 1528462217322, '2018-06-11 07:59:31', '一起陪小姐姐出游*。٩(ˊωˋ*)و✧'); INSERT INTO `Comment` VALUES (1528799506317, 1516805340593, 82001, 1513094436910, '2018-06-12 10:31:46', '摩恩'); INSERT INTO `Comment` VALUES (1528972547638, 0, 82001, 1528462217322, '2018-06-14 10:35:47', '古古怪怪'); INSERT INTO `Comment` VALUES (1528972555336, 0, 82001, 1528462217322, '2018-06-14 10:35:55', '合计怕v就怕vi'); INSERT INTO `Comment` VALUES (1529730035521, 0, 82001, 1527830331780, '2018-06-23 05:00:35', '还有别的吗?'); INSERT INTO `Comment` VALUES (1530528524447, 0, 38710, 1528269988360, '2018-07-02 10:48:44', '所以HttpRequest里写死了两张图片url,你可以改下'); INSERT INTO `Comment` VALUES (1531063660028, 0, 82003, 1531062713966, '2018-07-08 15:27:40', '这是哪里啊?我也想去'); INSERT INTO `Comment` VALUES (1531412238453, 0, 82001, 1528356378455, '2018-07-12 16:17:18', '去啊'); INSERT INTO `Comment` VALUES (1531412264667, 0, 82003, 1528356378455, '2018-07-12 16:17:44', '去哪呢?'); INSERT INTO `Comment` VALUES (1531887938362, 1531063660028, 82001, 1531062713966, '2018-07-18 04:25:38', '是呀'); INSERT INTO `Comment` VALUES (1531894411487, 0, 82001, 1520242333325, '2018-07-18 06:13:31', 'sssx'); INSERT INTO `Comment` VALUES (1531983163150, 0, 1531969715979, 1531969818357, '2018-07-19 06:52:43', 'http://q18idc.com'); INSERT INTO `Comment` VALUES (1532057419100, 0, 38710, 1531969818357, '2018-07-20 03:30:19', '可以加上标题哦'); INSERT INTO `Comment` VALUES (1533008631299, 1532057419100, 82001, 1531969818357, '2018-07-31 03:43:51', '加上'); INSERT INTO `Comment` VALUES (1533120405110, 1516780129884, 82001, 1516086423441, '2018-08-01 10:46:45', 'eeeeee'); INSERT INTO `Comment` VALUES (1533120420498, 1528105592852, 82001, 1516086423441, '2018-08-01 10:47:00', 'eeeeeee'); INSERT INTO `Comment` VALUES (1533186909764, 0, 82001, 1531969818357, '2018-08-02 05:15:09', 'hello'); INSERT INTO `Comment` VALUES (1533187733941, 0, 82001, 1508072633830, '2018-08-02 05:28:53', '好好'); INSERT INTO `Comment` VALUES (1533188056603, 1531887938362, 82001, 1531062713966, '2018-08-02 05:34:16', '顺带'); INSERT INTO `Comment` VALUES (1533195207026, 0, 82001, 1531062713966, '2018-08-02 07:33:27', 'JJ'); INSERT INTO `Comment` VALUES (1533202426013, 1533186909764, 82003, 1531969818357, '2018-08-02 09:33:46', 'world'); INSERT INTO `Comment` VALUES (1533202917743, 1533186909764, 82001, 1531969818357, '2018-08-02 09:41:57', '00'); INSERT INTO `Comment` VALUES (1533629063261, 0, 82001, 1531969818357, '2018-08-07 08:04:23', '大鸡鸡'); INSERT INTO `Comment` VALUES (1533631893738, 0, 82001, 1531969818357, '2018-08-07 08:51:33', '哈哈哈哈哈哈'); INSERT INTO `Comment` VALUES (1533809879340, 1533186909764, 82001, 1531969818357, '2018-08-09 10:17:59', '434'); INSERT INTO `Comment` VALUES (1533889646344, 0, 82001, 1508072491570, '2018-08-10 08:27:26', '11111111'); INSERT INTO `Comment` VALUES (1533902815448, 0, 82001, 1531969818357, '2018-08-10 12:06:55', '很不要吃'); INSERT INTO `Comment` VALUES (1533902902749, 0, 82001, 1531969818357, '2018-08-10 12:08:22', '性能还可以'); INSERT INTO `Comment` VALUES (1534053913157, 1524190941111, 1508072160401, 1516086423441, '2018-08-12 06:05:13', '怎么约?'); INSERT INTO `Comment` VALUES (1534128014211, 0, 82001, 1520242333325, '2018-08-13 02:40:14', 'zxxx'); INSERT INTO `Comment` VALUES (1534412022857, 0, 82001, 1531969818357, '2018-08-16 09:33:42', 'dgf'); INSERT INTO `Comment` VALUES (1534684074665, 1531983163150, 82001, 1531969818357, '2018-08-19 13:07:54', 'ggggg'); INSERT INTO `Comment` VALUES (1534684209052, 110, 82001, 371, '2018-08-19 13:10:09', '44444444444444444444444444'); INSERT INTO `Comment` VALUES (1534926143012, 0, 82001, 1508053762227, '2018-08-22 08:22:23', '治标不治本在不在不在不'); INSERT INTO `Comment` VALUES (1534926149638, 1517375165233, 82001, 1508053762227, '2018-08-22 08:22:29', '把标准版申报表上班设备'); INSERT INTO `Comment` VALUES (1534992151350, 0, 82001, 1516086423441, '2018-08-23 02:42:31', '你咋不'); INSERT INTO `Comment` VALUES (1535279823332, 0, 82001, 1520242333325, '2018-08-26 10:37:03', '斤斤计较'); INSERT INTO `Comment` VALUES (1535279827983, 0, 82001, 1520242333325, '2018-08-26 10:37:07', '斤斤计较'); INSERT INTO `Comment` VALUES (1535598334136, 1534992151350, 82003, 1516086423441, '2018-08-30 03:05:34', '啥?'); INSERT INTO `Comment` VALUES (1535600352436, 0, 82001, 1520242333325, '2018-08-30 03:39:12', '6666666'); INSERT INTO `Comment` VALUES (1535600430479, 0, 82001, 1520242333325, '2018-08-30 03:40:30', '法拉利'); INSERT INTO `Comment` VALUES (1535785537390, 1535279823332, 82003, 1520242333325, '2018-09-01 07:05:37', '不好哦'); INSERT INTO `Comment` VALUES (1535785585222, 1534926143012, 82003, 1508053762227, '2018-09-01 07:06:25', '啥?'); INSERT INTO `Comment` VALUES (1535963519864, 0, 82001, 1535781636403, '2018-09-03 08:31:59', 'gghhh'); INSERT INTO `Comment` VALUES (1535963525135, 1535963519864, 82001, 1535781636403, '2018-09-03 08:32:05', 'gyuji'); INSERT INTO `Comment` VALUES (1536337000073, 1516686985310, 82001, 1516086423441, '2018-09-07 16:16:40', 'heh'); INSERT INTO `Comment` VALUES (1536378833060, 0, 82001, 1508072633830, '2018-09-08 03:53:53', '真的嘛'); INSERT INTO `Comment` VALUES (1536469270492, 0, 82001, 1528356496939, '2018-09-09 05:01:10', '这是啥表情?Σ(ŎдŎ|||)ノノ'); INSERT INTO `Comment` VALUES (1536805661269, 0, 70793, 1536805585275, '2018-09-13 02:27:41', '6s再战一年'); INSERT INTO `Comment` VALUES (1537373307627, 0, 82001, 1516086423441, '2018-09-19 16:08:27', '。。。'); INSERT INTO `Comment` VALUES (1537410620002, 0, 82001, 1536805585275, '2018-09-20 02:30:20', '不一样'); INSERT INTO `Comment` VALUES (1537710348414, 0, 82001, 1516086423441, '2018-09-23 13:45:48', 'hhj'); INSERT INTO `Comment` VALUES (1537710359760, 0, 82001, 1516086423441, '2018-09-23 13:45:59', '锵锵锵'); INSERT INTO `Comment` VALUES (1537857324518, 0, 82001, 1536805585275, '2018-09-25 06:35:24', '嗯呢'); INSERT INTO `Comment` VALUES (1537857334299, 1537857324518, 82001, 1536805585275, '2018-09-25 06:35:34', '嗯嗯'); INSERT INTO `Comment` VALUES (1539252343243, 1539252313711, 82001, 15, '2018-10-11 10:05:43', 'dxdf'); INSERT INTO `Comment` VALUES (1539252350604, 1539252337210, 82001, 15, '2018-10-11 10:05:50', 'djdnjd'); INSERT INTO `Comment` VALUES (1539592963862, 0, 82001, 1516086423441, '2018-10-15 08:42:43', '1111'); INSERT INTO `Comment` VALUES (1539868250267, 1531063660028, 82001, 1531062713966, '2018-10-18 13:10:50', '555555555555555555'); INSERT INTO `Comment` VALUES (1539868258868, 1533188056603, 82001, 1531062713966, '2018-10-18 13:10:58', '555555555'); INSERT INTO `Comment` VALUES (1539868269471, 1539868250267, 82001, 1531062713966, '2018-10-18 13:11:09', '4444444444444'); INSERT INTO `Comment` VALUES (1539868275645, 1531887938362, 82001, 1531062713966, '2018-10-18 13:11:15', '22222222222222222'); INSERT INTO `Comment` VALUES (1539960436993, 0, 82001, 1539868023868, '2018-10-19 14:47:16', '111'); INSERT INTO `Comment` VALUES (1540459429565, 0, 82001, 1540459361744, '2018-10-25 09:23:49', '哦破'); INSERT INTO `Comment` VALUES (1541496033857, 0, 82001, 301, '2018-11-06 09:20:33', '能解决'); INSERT INTO `Comment` VALUES (1541651688961, 1539960436993, 82001, 1539868023868, '2018-11-08 04:34:48', '哈哈'); INSERT INTO `Comment` VALUES (1541814609499, 0, 82001, 1541667920272, '2018-11-10 01:50:09', '11'); INSERT INTO `Comment` VALUES (1541814627709, 0, 82001, 1540459361744, '2018-11-10 01:50:27', '1111'); INSERT INTO `Comment` VALUES (1541815269164, 0, 82001, 1541667945772, '2018-11-10 02:01:09', '11'); INSERT INTO `Comment` VALUES (1541816372114, 0, 82001, 1541684010904, '2018-11-10 02:19:32', '111'); INSERT INTO `Comment` VALUES (1543193682067, 0, 1528339692804, 1528269822710, '2018-11-26 00:54:42', 'ss'); INSERT INTO `Comment` VALUES (1543463677434, 1541816372114, 82001, 1541684010904, '2018-11-29 03:54:37', 'djdjjj'); INSERT INTO `Comment` VALUES (1544496611006, 0, 82001, 15, '2018-12-11 02:50:11', '测试新增评论'); INSERT INTO `Comment` VALUES (1544496618728, 0, 82001, 15, '2018-12-11 02:50:18', '测试新增评论'); INSERT INTO `Comment` VALUES (1544496620126, 0, 82001, 15, '2018-12-11 02:50:20', '测试新增评论'); INSERT INTO `Comment` VALUES (1544503960414, 1537410620002, 1544503822963, 1536805585275, '2018-12-11 04:52:40', '664984'); INSERT INTO `Comment` VALUES (1544514743789, 0, 82001, 1544497353863, '2018-12-11 07:52:23', '墨迹'); INSERT INTO `Comment` VALUES (1544514759556, 1544514743789, 82001, 1544497353863, '2018-12-11 07:52:39', '路路通'); INSERT INTO `Comment` VALUES (1544514788248, 1544514743789, 82001, 1544497353863, '2018-12-11 07:53:08', '啦啦啦'); INSERT INTO `Comment` VALUES (1544514802708, 0, 82001, 1544497355630, '2018-12-11 07:53:22', '秃头'); INSERT INTO `Comment` VALUES (1544514806180, 1544514802708, 82001, 1544497355630, '2018-12-11 07:53:26', '啦咯啦咯啦咯'); INSERT INTO `Comment` VALUES (1544519833507, 1544514788248, 82001, 1544497353863, '2018-12-11 09:17:13', '呃呃呃'); INSERT INTO `Comment` VALUES (1544520025670, 1544514743789, 82001, 1544497353863, '2018-12-11 09:20:25', '考虑考虑1'); INSERT INTO `Comment` VALUES (1544520033768, 1544520025670, 82001, 1544497353863, '2018-12-11 09:20:33', '考虑考虑'); INSERT INTO `Comment` VALUES (1544520037107, 1544520025670, 82001, 1544497353863, '2018-12-11 09:20:37', '噢噢噢哦哦'); INSERT INTO `Comment` VALUES (1544520040994, 1544520037107, 82001, 1544497353863, '2018-12-11 09:20:40', '空空'); INSERT INTO `Comment` VALUES (1544520078377, 0, 82001, 1544265482923, '2018-12-11 09:21:18', '路路通'); INSERT INTO `Comment` VALUES (1544520083950, 1544520078377, 82001, 1544265482923, '2018-12-11 09:21:23', '记录贴'); INSERT INTO `Comment` VALUES (1544520088507, 1544520078377, 82001, 1544265482923, '2018-12-11 09:21:28', '旅途我'); INSERT INTO `Comment` VALUES (1544581157084, 1544514743789, 82001, 1544497353863, '2018-12-12 02:19:17', '111'); INSERT INTO `Comment` VALUES (1544581171474, 0, 82001, 1544497353863, '2018-12-12 02:19:31', '333'); INSERT INTO `Comment` VALUES (1544581181353, 1544581171474, 82001, 1544497353863, '2018-12-12 02:19:41', '444'); INSERT INTO `Comment` VALUES (1544581186743, 1544514743789, 82001, 1544497353863, '2018-12-12 02:19:46', '555'); INSERT INTO `Comment` VALUES (1544617314076, 0, 82001, 1544497355630, '2018-12-12 12:21:54', 'hubby'); INSERT INTO `Comment` VALUES (1544617322784, 1544514802708, 82001, 1544497355630, '2018-12-12 12:22:02', 'we see'); INSERT INTO `Comment` VALUES (1545102266463, 0, 82001, 1544497355630, '2018-12-18 03:04:26', '厉害呀'); INSERT INTO `Comment` VALUES (1545209831932, 0, 82001, 1544537838100, '2018-12-19 08:57:11', '牛逼的'); INSERT INTO `Comment` VALUES (1545527888416, 0, 82001, 1545508011343, '2018-12-23 01:18:08', 'hello'); INSERT INTO `Comment` VALUES (1545527898986, 1545527888416, 82001, 1545508011343, '2018-12-23 01:18:18', 'world'); INSERT INTO `Comment` VALUES (1545527923036, 1545527888416, 82001, 1545508011343, '2018-12-23 01:18:43', '还差还差还差'); INSERT INTO `Comment` VALUES (1545802151172, 0, 82001, 1545560428650, '2018-12-26 05:29:11', '输入了'); INSERT INTO `Comment` VALUES (1545811395533, 1545802151172, 82001, 1545560428650, '2018-12-26 08:03:15', '呵呵'); INSERT INTO `Comment` VALUES (1545904207328, 1545802151172, 82001, 1545560428650, '2018-12-27 09:50:07', '!!!'); INSERT INTO `Comment` VALUES (1545918307310, 0, 82001, 15, '2018-12-27 13:45:07', '测试新增评论'); INSERT INTO `Comment` VALUES (1545927001999, 1545895875719, 82001, 1545893190636, '2018-12-27 16:10:02', '哦哦哦www'); INSERT INTO `Comment` VALUES (1545961973331, 0, 82001, 15, '2018-12-28 01:52:53', '测试新增评论'); INSERT INTO `Comment` VALUES (1546050359778, 0, 82001, 15, '2018-12-29 02:25:59', '测试新增评论'); INSERT INTO `Comment` VALUES (1546050386785, 0, 82001, 1516086423441, '2018-12-29 02:26:26', '不鸟你'); INSERT INTO `Comment` VALUES (1546934031755, 0, 82001, 1544497355630, '2019-01-08 07:53:51', '厉害+1'); INSERT INTO `Comment` VALUES (1546934145366, 0, 82001, 15, '2019-01-08 07:55:45', '测试新增评论'); INSERT INTO `Comment` VALUES (1546935903414, 0, 82001, 15, '2019-01-08 08:25:03', '测试新增评论'); INSERT INTO `Comment` VALUES (1546999088223, 0, 82001, 1546934384440, '2019-01-09 01:58:08', '哈哈'); INSERT INTO `Comment` VALUES (1547479596730, 0, 82001, 15, '2019-01-14 15:26:36', '测试新增评论'); INSERT INTO `Comment` VALUES (1547542463183, 1546999088223, 82001, 1546934384440, '2019-01-15 08:54:23', '急急急'); INSERT INTO `Comment` VALUES (1547542491318, 0, 82001, 1547479596460, '2019-01-15 08:54:51', 'YY'); INSERT INTO `Comment` VALUES (1547549161954, 0, 82001, 1547479596460, '2019-01-15 10:46:01', 'Ggh'); INSERT INTO `Comment` VALUES (1547559759283, 0, 82002, 15, '2019-01-15 13:42:39', '测试新增评论'); INSERT INTO `Comment` VALUES (1547627710657, 0, 82001, 15, '2019-01-16 08:35:10', '测试新增评论'); INSERT INTO `Comment` VALUES (1547627714193, 0, 82001, 15, '2019-01-16 08:35:14', '测试新增评论'); INSERT INTO `Comment` VALUES (1547629888747, 0, 82002, 15, '2019-01-16 09:11:28', '测试新增评论'); INSERT INTO `Comment` VALUES (1547629914001, 0, 82001, 15, '2019-01-16 09:11:54', '测试新增评论'); INSERT INTO `Comment` VALUES (1547630122254, 0, 82001, 15, '2019-01-16 09:15:22', '测试新增评论'); INSERT INTO `Comment` VALUES (1547630243666, 0, 82001, 15, '2019-01-16 09:17:23', '测试新增评论'); INSERT INTO `Comment` VALUES (1547691041482, 0, 82001, 15, '2019-01-17 02:10:41', '测试新增评论'); INSERT INTO `Comment` VALUES (1547713184681, 0, 82001, 15, '2019-01-17 08:19:44', '测试新增评论'); INSERT INTO `Comment` VALUES (1547723265947, 0, 82001, 15, '2019-01-17 11:07:45', '测试新增评论'); INSERT INTO `Comment` VALUES (1547782483094, 0, 82001, 15, '2019-01-18 03:34:43', '测试新增评论'); INSERT INTO `Comment` VALUES (1547783370682, 0, 82001, 15, '2019-01-18 03:49:30', '测试新增评论'); INSERT INTO `Comment` VALUES (1547889930890, 0, 82001, 1544276121218, '2019-01-19 09:25:30', '@'); INSERT INTO `Comment` VALUES (1547975064126, 0, 82001, 15, '2019-01-20 09:04:24', '测试新增评论'); INSERT INTO `Comment` VALUES (1548118482563, 1547542463183, 82001, 1546934384440, '2019-01-22 00:54:42', '啦啦啦'); INSERT INTO `Comment` VALUES (1548138917327, 0, 82001, 1545560428650, '2019-01-22 06:35:17', '摸摸'); INSERT INTO `Comment` VALUES (1548382620695, 0, 82001, 15, '2019-01-25 02:17:00', '测试新增评论'); INSERT INTO `Comment` VALUES (1548599385881, 0, 82001, 1548599375288, '2019-01-27 14:29:45', '不喜欢好像就地解决'); INSERT INTO `Comment` VALUES (1548643322337, 0, 82001, 15, '2019-01-28 02:42:02', '测试新增评论'); INSERT INTO `Comment` VALUES (1548653580883, 1548599385881, 82001, 1548599375288, '2019-01-28 05:33:00', '哈哈哈哈'); INSERT INTO `Comment` VALUES (1548728775182, 0, 82001, 15, '2019-01-29 02:26:15', '测试新增评论'); INSERT INTO `Comment` VALUES (1548822634508, 0, 82002, 15, '2019-01-30 04:30:34', '测试新增评论'); INSERT INTO `Comment` VALUES (1548822671709, 0, 82001, 15, '2019-01-30 04:31:11', '测试新增评论'); INSERT INTO `Comment` VALUES (1548828580032, 1548653580883, 82001, 1548599375288, '2019-01-30 06:09:40', '嗯'); INSERT INTO `Comment` VALUES (1548828610840, 0, 82001, 1545819752556, '2019-01-30 06:10:10', '啦啦啦'); INSERT INTO `Comment` VALUES (1549549983638, 0, 82001, 15, '2019-02-07 14:33:11', '测试新增评论'); COMMIT; -- ---------------------------- -- Table structure for Document -- ---------------------------- DROP TABLE IF EXISTS `Document`; CREATE TABLE `Document` ( `id` bigint(15) NOT NULL COMMENT '唯一标识', `userId` bigint(15) NOT NULL COMMENT '用户id\n应该用adminId,只有当登录账户是管理员时才能操作文档。\n需要先建Admin表,新增登录等相关接口。', `version` tinyint(4) NOT NULL DEFAULT '2' COMMENT '接口版本号\n<=0 - 不限制版本,任意版本都可用这个接口\n>0 - 在这个版本添加的接口', `name` varchar(100) NOT NULL COMMENT '接口名称', `url` varchar(250) NOT NULL COMMENT '请求地址', `request` text NOT NULL COMMENT '请求\n用json格式会导致强制排序,而请求中引用赋值只能引用上面的字段,必须有序。', `response` text COMMENT '标准返回结果JSON\n用json格式会导致强制排序,而请求中引用赋值只能引用上面的字段,必须有序。', `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='测试用例文档\n后端开发者在测试好后,把选好的测试用例上传,这样就能共享给前端/客户端开发者'; -- ---------------------------- -- Records of Document -- ---------------------------- BEGIN; INSERT INTO `Document` VALUES (1, 0, 1, '登录', '/login', '{\"type\": 0, \"phone\": \"13000082001\", \"version\": 1, \"password\": \"<PASSWORD>\"}', NULL, '2017-11-26 07:35:19'); INSERT INTO `Document` VALUES (2, 0, 1, '注册(先获取验证码type:1)', '/register', '{\n \"Privacy\": {\n \"phone\": \"13000083333\",\n \"_password\": \"<PASSWORD>\"\n },\n \"User\": {\n \"name\": \"APIJSONUser\"\n },\n \"verify\": \"6840\"\n}', '{\"code\":412,\"msg\":\"手机号或验证码错误!\"}', '2017-11-26 06:56:10'); INSERT INTO `Document` VALUES (3, 0, 1, '退出登录', '/logout', '{}', NULL, '2017-11-26 09:36:10'); INSERT INTO `Document` VALUES (1511689914598, 0, 1, '获取用户隐私信息', '/gets', '{\"tag\": \"Privacy\", \"Privacy\": {\"id\": 82001}}', '{\"Privacy\":{\"id\":82001,\"more\":true,\"certified\":1,\"phone\":13000082001,\"balance\":9835.11},\"code\":200,\"msg\":\"success\"}', '2017-11-26 09:51:54'); INSERT INTO `Document` VALUES (1511796155276, 0, 1, '获取验证码', '/post/verify', '{\"type\": 0, \"phone\": \"13000082001\"}', '{\"Verify\":{\"id\":1533396718012,\"type\":0,\"phone\":13000082001,\"verify\":4995,\"date\":\"2018-08-04 23:31:58.0\"},\"tag\":\"Verify\",\"code\":200,\"msg\":\"success\"}', '2017-11-27 15:22:35'); INSERT INTO `Document` VALUES (1511796208669, 0, 1, '检查验证码是否存在', '/heads/verify', '{\"type\": 0, \"phone\": \"13000082001\"}', '{\"Verify\":{\"code\":200,\"msg\":\"success\",\"count\":1},\"code\":200,\"msg\":\"success\"}', '2017-11-27 15:23:28'); INSERT INTO `Document` VALUES (1511796589078, 0, 1, '修改登录密码(先获取验证码type:2)-手机号+验证码', '/put/password', '{\"verify\": \"10322\", \"Privacy\": {\"phone\": \"13000082001\", \"_password\": \"<PASSWORD>\"}}', '{\"code\":412,\"msg\":\"手机号或验证码错误!\"}', '2017-11-27 15:29:49'); INSERT INTO `Document` VALUES (1511796882183, 0, 1, '充值(需要支付密码)/提现', '/put/balance', '{\"tag\": \"Privacy\", \"Privacy\": {\"id\": 82001, \"balance+\": 100.15, \"_payPassword\": \"<PASSWORD>\"}}', '{\"Privacy\":{\"code\":200,\"msg\":\"success\",\"id\":82001,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2017-11-27 15:34:42'); INSERT INTO `Document` VALUES (1511963330794, 0, 2, '获取文档列表(即在线解析网页上的共享)-API调用方式', '/get', '{\n \"Document[]\": {\n \"Document\": {\n \"@role\": \"login\",\n \"@order\": \"version-,date-\"\n }\n }\n}', NULL, '2017-11-29 13:48:50'); INSERT INTO `Document` VALUES (1511963677324, 0, 1, '获取用户', '/get', '{\"User\": {\"id\": 82001}}', '{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793,70793],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2017-11-29 13:54:37'); INSERT INTO `Document` VALUES (1511963722969, 0, 1, '获取用户列表(\"id{}\":contactIdList)-朋友页', '/get', '{\n \"User[]\": {\n \"count\": 10,\n \"page\": 0,\n \"User\": {\n \"@column\": \"id,sex,name,tag,head\",\n \"@order\": \"name+\",\n \"id{}\": [\n 82002,\n 82004,\n 70793\n ]\n }\n }\n}', '{\"User[]\":[{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},{\"id\":82004,\"sex\":0,\"name\":\"Tommy\",\"tag\":\"fasef\",\"head\":\"http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000\"}],\"code\":200,\"msg\":\"success\"}', '2017-11-29 13:55:22'); INSERT INTO `Document` VALUES (1511963990071, 0, 1, '获取动态Moment+User+praiseUserList', '/get', '{\n \"Moment\": {\n \"id\": 15\n },\n \"User\": {\n \"id@\": \"Moment/userId\",\n \"@column\": \"id,name,head\"\n },\n \"User[]\": {\n \"count\": 10,\n \"User\": {\n \"id{}@\": \"Moment/praiseUserIdList\",\n \"@column\": \"id,name\"\n }\n }\n}', '{\"Moment\":{\"id\":15,\"userId\":70793,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"APIJSON is a JSON Transmission Structure Protocol…\",\"praiseUserIdList\":[82055,82002,38710],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"User[]\":[{\"id\":38710,\"name\":\"TommyLemon\"},{\"id\":82002,\"name\":\"Happy~\"},{\"id\":82055,\"name\":\"Solid\"}],\"code\":200,\"msg\":\"success\"}', '2017-11-29 13:59:50'); INSERT INTO `Document` VALUES (1511964176688, 0, 1, '获取评论列表-动态详情页Comment+User', '/get', '{\n \"[]\": {\n \"count\": 20,\n \"page\": 0,\n \"Comment\": {\n \"@order\": \"date+\",\n \"momentId\": 15\n },\n \"User\": {\n \"id@\": \"/Comment/userId\",\n \"@column\": \"id,name,head\"\n }\n }\n}', '{\"[]\":[{\"Comment\":{\"id\":176,\"toId\":166,\"userId\":38710,\"momentId\":15,\"date\":\"2017-03-25 20:28:03.0\",\"content\":\"thank you\"},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"}},{\"Comment\":{\"id\":1490863469638,\"toId\":0,\"userId\":82002,\"momentId\":15,\"date\":\"2017-03-30 16:44:29.0\",\"content\":\"Just do it\"},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"}},{\"Comment\":{\"id\":1490875660259,\"toId\":1490863469638,\"userId\":82055,\"momentId\":15,\"date\":\"2017-03-30 20:07:40.0\",\"content\":\"I prove wht you said(??????)\"},\"User\":{\"id\":82055,\"name\":\"Solid\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1508227456407,\"toId\":0,\"userId\":82001,\"momentId\":15,\"date\":\"2017-10-17 16:04:16.0\",\"content\":\"hsh\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1509346606036,\"toId\":0,\"userId\":82001,\"momentId\":15,\"date\":\"2017-10-30 14:56:46.0\",\"content\":\"测\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1525933255901,\"userId\":82001,\"momentId\":15,\"date\":\"2018-05-10 14:20:55.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1527949266037,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-02 22:21:06.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1528339777338,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-07 10:49:37.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1528366915282,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-07 18:21:55.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1528366931410,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-07 18:22:11.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1528392773597,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-08 01:32:53.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529034360708,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-15 11:46:00.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529078537044,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-16 00:02:17.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529401004622,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-19 17:36:44.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529401505690,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-19 17:45:05.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529468113356,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-20 12:15:13.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529724026842,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-23 11:20:26.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529909214303,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-25 14:46:54.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1530276831779,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-29 20:53:51.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1531365764793,\"userId\":82001,\"momentId\":15,\"date\":\"2018-07-12 11:22:44.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}}],\"code\":200,\"msg\":\"success\"}', '2017-11-29 14:02:56'); INSERT INTO `Document` VALUES (1511967853339, 0, 1, '获取动态列表Moment+User+User:parise[]+Comment[]', '/get', '{ \"[]\": { \"count\": 5, \"page\": 0, \"Moment\": { \"@order\": \"date+\" }, \"User\": { \"id@\": \"/Moment/userId\", \"@column\": \"id,name,head\" }, \"User[]\": { \"count\": 10, \"User\": { \"id{}@\": \"[]/Moment/praiseUserIdList\", \"@column\": \"id,name\" } }, \"[]\": { \"count\": 6, \"Comment\": { \"@order\": \"date+\", \"momentId@\": \"[]/Moment/id\" }, \"User\": { \"id@\": \"/Comment/userId\", \"@column\": \"id,name\" } } } }', '{\"[]\":[{\"Moment\":{\"id\":301,\"userId\":93793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-301\",\"praiseUserIdList\":[38710,93793,82003,82005,82040,82055,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":93793,\"name\":\"Mike\",\"head\":\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"},\"User[]\":[{\"id\":38710,\"name\":\"TommyLemon\"},{\"id\":82001,\"name\":\"测试改名\"},{\"id\":82002,\"name\":\"Happy~\"},{\"id\":82003,\"name\":\"Wechat\"},{\"id\":82005,\"name\":\"Jan\"},{\"id\":82040,\"name\":\"Dream\"},{\"id\":82055,\"name\":\"Solid\"},{\"id\":93793,\"name\":\"Mike\"}],\"[]\":[{\"Comment\":{\"id\":45,\"toId\":0,\"userId\":93793,\"momentId\":301,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-45\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":51,\"toId\":45,\"userId\":82003,\"momentId\":301,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-51\"},\"User\":{\"id\":82003,\"name\":\"Wechat\"}},{\"Comment\":{\"id\":76,\"toId\":45,\"userId\":93793,\"momentId\":301,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-76\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":120,\"toId\":0,\"userId\":93793,\"momentId\":301,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-110\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":124,\"toId\":0,\"userId\":82001,\"momentId\":301,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-114\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":1490781009548,\"toId\":51,\"userId\":82001,\"momentId\":301,\"date\":\"2017-03-29 17:50:09.0\",\"content\":\"3\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}}]},{\"Moment\":{\"id\":58,\"userId\":90814,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-435\",\"praiseUserIdList\":[38710,82003,82005,93793,82006,82044,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\"]},\"User\":{\"id\":90814,\"name\":\"007\",\"head\":\"http://static.oschina.net/uploads/user/51/102723_50.jpg?t=1449212504000\"},\"User[]\":[{\"id\":38710,\"name\":\"TommyLemon\"},{\"id\":82001,\"name\":\"测试改名\"},{\"id\":82003,\"name\":\"Wechat\"},{\"id\":82005,\"name\":\"Jan\"},{\"id\":82006,\"name\":\"Meria\"},{\"id\":82044,\"name\":\"Love\"},{\"id\":93793,\"name\":\"Mike\"}],\"[]\":[{\"Comment\":{\"id\":13,\"toId\":0,\"userId\":82005,\"momentId\":58,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-13\"},\"User\":{\"id\":82005,\"name\":\"Jan\"}},{\"Comment\":{\"id\":77,\"toId\":13,\"userId\":93793,\"momentId\":58,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-77\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":97,\"toId\":13,\"userId\":82006,\"momentId\":58,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-97\"},\"User\":{\"id\":82006,\"name\":\"Meria\"}},{\"Comment\":{\"id\":167,\"userId\":82001,\"momentId\":58,\"date\":\"2017-03-25 19:48:41.0\",\"content\":\"Nice!\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":173,\"userId\":38710,\"momentId\":58,\"date\":\"2017-03-25 20:25:13.0\",\"content\":\"Good\"},\"User\":{\"id\":38710,\"name\":\"TommyLemon\"}},{\"Comment\":{\"id\":188,\"toId\":97,\"userId\":82001,\"momentId\":58,\"date\":\"2017-03-26 15:21:32.0\",\"content\":\"1646\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}}]},{\"Moment\":{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},\"User[]\":[{\"id\":82001,\"name\":\"测试改名\"},{\"id\":82002,\"name\":\"Happy~\"},{\"id\":82003,\"name\":\"Wechat\"},{\"id\":82005,\"name\":\"Jan\"},{\"id\":82006,\"name\":\"Meria\"},{\"id\":82040,\"name\":\"Dream\"},{\"id\":90814,\"name\":\"007\"},{\"id\":93793,\"name\":\"Mike\"}],\"[]\":[{\"Comment\":{\"id\":68,\"toId\":0,\"userId\":82005,\"momentId\":371,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-68\"},\"User\":{\"id\":82005,\"name\":\"Jan\"}},{\"Comment\":{\"id\":157,\"userId\":93793,\"momentId\":371,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-157\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":110,\"toId\":0,\"userId\":93793,\"momentId\":371,\"date\":\"2017-02-01 19:23:24.0\",\"content\":\"This is a Content...-110\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":114,\"toId\":0,\"userId\":82001,\"momentId\":371,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-114\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":115,\"toId\":0,\"userId\":38710,\"momentId\":371,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-115\"},\"User\":{\"id\":38710,\"name\":\"TommyLemon\"}},{\"Comment\":{\"id\":116,\"toId\":0,\"userId\":70793,\"momentId\":371,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-116\"},\"User\":{\"id\":70793,\"name\":\"Strong\"}}]},{\"Moment\":{\"id\":170,\"userId\":70793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-73\",\"praiseUserIdList\":[82044,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"User[]\":[{\"id\":82001,\"name\":\"测试改名\"},{\"id\":82002,\"name\":\"Happy~\"},{\"id\":82044,\"name\":\"Love\"}],\"[]\":[{\"Comment\":{\"id\":44,\"toId\":0,\"userId\":82003,\"momentId\":170,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-44\"},\"User\":{\"id\":82003,\"name\":\"Wechat\"}},{\"Comment\":{\"id\":54,\"toId\":0,\"userId\":82004,\"momentId\":170,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-54\"},\"User\":{\"id\":82004,\"name\":\"Tommy\"}},{\"Comment\":{\"id\":99,\"toId\":44,\"userId\":70793,\"momentId\":170,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-99\"},\"User\":{\"id\":70793,\"name\":\"Strong\"}},{\"Comment\":{\"id\":206,\"toId\":54,\"userId\":82001,\"momentId\":170,\"date\":\"2017-03-29 11:04:23.0\",\"content\":\"ejej\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":1490780759866,\"toId\":99,\"userId\":82001,\"momentId\":170,\"date\":\"2017-03-29 17:45:59.0\",\"content\":\"99\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":1490863661426,\"toId\":1490780759866,\"userId\":70793,\"momentId\":170,\"date\":\"2017-03-30 16:47:41.0\",\"content\":\"66\"},\"User\":{\"id\":70793,\"name\":\"Strong\"}}]},{\"Moment\":{\"id\":470,\"userId\":38710,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-470\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"},\"User[]\":[{\"id\":82001,\"name\":\"测试改名\"}],\"[]\":[{\"Comment\":{\"id\":4,\"toId\":0,\"userId\":38710,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-4\"},\"User\":{\"id\":38710,\"name\":\"TommyLemon\"}},{\"Comment\":{\"id\":22,\"toId\":221,\"userId\":82001,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"测试修改评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":47,\"toId\":4,\"userId\":70793,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-47\"},\"User\":{\"id\":70793,\"name\":\"Strong\"}},{\"Comment\":{\"id\":1490863507114,\"toId\":4,\"userId\":82003,\"momentId\":470,\"date\":\"2017-03-30 16:45:07.0\",\"content\":\"yes\"},\"User\":{\"id\":82003,\"name\":\"Wechat\"}},{\"Comment\":{\"id\":1490863903900,\"toId\":0,\"userId\":82006,\"momentId\":470,\"date\":\"2017-03-30 16:51:43.0\",\"content\":\"SOGA\"},\"User\":{\"id\":82006,\"name\":\"Meria\"}},{\"Comment\":{\"id\":1491740899179,\"toId\":0,\"userId\":82001,\"momentId\":470,\"date\":\"2017-04-09 20:28:19.0\",\"content\":\"www\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}}]}],\"code\":200,\"msg\":\"success\"}', '2017-11-29 15:04:13'); INSERT INTO `Document` VALUES (1511969181103, 0, 1, '添加朋友', '/put', '{\n \"User\": {\n \"id\": 82001,\n \"contactIdList+\": [93793]\n },\n \"tag\": \"User\"\n}', '{\"User\":{\"id\":82001,\"contactIdList+\":[93793],\"@role\":\"owner\"},\"code\":409,\"msg\":\"PUT User, contactIdList:93793 已存在!\"}', '2017-11-29 15:26:21'); INSERT INTO `Document` VALUES (1511969417632, 0, 1, '点赞/取消点赞', '/put', '{\n \"Moment\": {\n \"id\": 15,\n \"praiseUserIdList-\": [\n 82001\n ]\n },\n \"tag\": \"Moment\"\n}', '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"id\":15,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2017-11-29 15:30:17'); INSERT INTO `Document` VALUES (1511969630371, 0, 1, '新增评论', '/post', '{ \"Comment\": { \"momentId\": 15, \"content\": \"测试新增评论\" }, \"tag\": \"Comment\" }', '{\"Comment\":{\"code\":200,\"msg\":\"success\",\"id\":1533140610714,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2017-11-29 15:33:50'); INSERT INTO `Document` VALUES (1511970009071, 0, 1, '新增动态', '/post', '{ \"Moment\": { \"content\": \"测试新增动态\", \"pictureList\": [\"http://static.oschina.net/uploads/user/48/96331_50.jpg\" ] }, \"tag\": \"Moment\" }', '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"id\":1533140610716,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2017-11-29 15:40:09'); INSERT INTO `Document` VALUES (1511970224332, 0, 1, '修改用户信息', '/put', '{\r \"User\": {\r \"id\": 82001,\r \"name\": \"测试账号\"\r },\r \"tag\": \"User\"\r }', '{\"User\":{\"code\":200,\"msg\":\"success\",\"id\":82001,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2017-11-29 15:43:44'); INSERT INTO `Document` VALUES (1512216131854, 0, 1, '获取文档列表(即在线解析网页上的文档)-表和字段、请求格式限制', '/get', '{\n \"[]\": {\n \"Table\": {\n \"TABLE_SCHEMA\": \"sys\",\n \"TABLE_TYPE\": \"BASE TABLE\",\n \"TABLE_NAME!$\": [\n \"\\\\_%\",\n \"sys\\\\_%\",\n \"system\\\\_%\"\n ],\n \"@order\": \"TABLE_NAME+\",\n \"@column\": \"TABLE_NAME,TABLE_COMMENT\"\n },\n \"Column[]\": {\n \"Column\": {\n \"TABLE_NAME@\": \"[]/Table/TABLE_NAME\",\n \"@column\": \"COLUMN_NAME,COLUMN_TYPE,IS_NULLABLE,COLUMN_COMMENT\"\n }\n }\n },\n \"Request[]\": {\n \"Request\": {\n \"@order\": \"version-,method-\"\n }\n }\n}', NULL, '2017-12-02 12:02:11'); INSERT INTO `Document` VALUES (1521901518764, 0, 2, '功能符(对象关键词): ⑤从pictureList获取第0张图片:', '/get', '{ \"User\": { \"id\": 38710, \"@position\": 0, \"firstPicture()\": \"getFromArray(pictureList,@position)\" } }', '{\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\",\"@position\":0,\"firstPicture\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"},\"code\":200,\"msg\":\"success\"}', '2018-03-24 14:25:18'); INSERT INTO `Document` VALUES (1521901610783, 0, 2, '功能符(对象关键词): ④查询 按userId分组、id最大值>=100 的Moment数组', '/get', '{\"[]\":{\"count\":10,\"Moment\":{\"@column\":\"userId;max(id):maxId\",\"@group\":\"userId\",\"@having\":\"maxId>=100\"}}}', '{\"[]\":[{\"Moment\":{\"userId\":38710,\"maxId\":1537025707417}},{\"Moment\":{\"userId\":70793,\"maxId\":551}},{\"Moment\":{\"userId\":82001,\"maxId\":1537025634931}},{\"Moment\":{\"userId\":82002,\"maxId\":1531062713966}},{\"Moment\":{\"userId\":82003,\"maxId\":1536805585275}},{\"Moment\":{\"userId\":82045,\"maxId\":1508073178489}},{\"Moment\":{\"userId\":82056,\"maxId\":1514858533480}},{\"Moment\":{\"userId\":93793,\"maxId\":1516086423441}},{\"Moment\":{\"userId\":1520242280259,\"maxId\":1520242333325}},{\"Moment\":{\"userId\":1523626157302,\"maxId\":1523936332614}}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 14:26:50'); INSERT INTO `Document` VALUES (1521901682845, 0, 2, '功能符(对象关键词): ③查询按userId分组的Moment数组', '/get', '{\"[]\":{\"count\":10,\"Moment\":{\"@column\":\"userId,id\",\"@group\":\"userId,id\"}}}', '{\"[]\":[{\"Moment\":{\"userId\":38710,\"id\":235}},{\"Moment\":{\"userId\":38710,\"id\":470}},{\"Moment\":{\"userId\":38710,\"id\":511}},{\"Moment\":{\"userId\":38710,\"id\":595}},{\"Moment\":{\"userId\":38710,\"id\":704}},{\"Moment\":{\"userId\":38710,\"id\":1491200468898}},{\"Moment\":{\"userId\":38710,\"id\":1493835799335}},{\"Moment\":{\"userId\":38710,\"id\":1512314438990}},{\"Moment\":{\"userId\":38710,\"id\":1513094436910}},{\"Moment\":{\"userId\":38710,\"id\":1537025625613}}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 14:28:02'); INSERT INTO `Document` VALUES (1521901746808, 0, 2, '功能符(对象关键词): ②查询按 name降序、id默认顺序 排序的User数组', '/get', '{\"[]\":{\"count\":10,\"User\":{\"@column\":\"name,id\",\"@order\":\"name-,id\"}}}', '{\"[]\":[{\"User\":{\"name\":\"赵钱孙李\",\"id\":1508072071492}},{\"User\":{\"name\":\"测试改名\",\"id\":82001}},{\"User\":{\"name\":\"梦\",\"id\":1528264711016}},{\"User\":{\"name\":\"宁旭\",\"id\":1532188114543}},{\"User\":{\"name\":\"四五六\",\"id\":1508072160401}},{\"User\":{\"name\":\"哈哈哈\",\"id\":1524042900591}},{\"User\":{\"name\":\"周吴郑王\",\"id\":1508072105320}},{\"User\":{\"name\":\"七八九十\",\"id\":1508072202871}},{\"User\":{\"name\":\"一二三\",\"id\":1499057230629}},{\"User\":{\"name\":\"Yong\",\"id\":82027}}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 14:29:06'); INSERT INTO `Document` VALUES (1521901787202, 0, 2, '功能符(对象关键词): ①只查询id,sex,name这几列并且请求结果也按照这个顺序', '/get', '{\"User\":{\"@column\":\"id,sex,name\",\"id\":38710}}', '{\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\"},\"code\":200,\"msg\":\"success\"}', '2018-03-24 14:29:47'); INSERT INTO `Document` VALUES (1521902033331, 0, 2, '功能符(数组关键词): ③查询User数组和对应的User总数', '/get', '{\"[]\":{\"query\":2,\"count\":5,\"User\":{}},\"total@\":\"/[]/total\"}', '{\"[]\":[{\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793,82012,82028,82021,82006,82030,82035],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82003,\"sex\":1,\"name\":\"Wechat\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}}],\"total\":121,\"code\":200,\"msg\":\"success\"}', '2018-03-24 14:33:53'); INSERT INTO `Document` VALUES (1521902069870, 0, 2, '功能符(数组关键词): ②查询第3页的User数组,每页5个', '/get', '{\"[]\":{\"count\":5,\"page\":3,\"User\":{}}}', '{\"[]\":[{\"User\":{\"id\":82025,\"sex\":1,\"name\":\"Tommy\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82026,\"sex\":0,\"name\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82027,\"sex\":0,\"name\":\"Yong\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82028,\"sex\":1,\"name\":\"gaeg\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82029,\"sex\":0,\"name\":\"GASG\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 14:34:29'); INSERT INTO `Document` VALUES (1521902110679, 0, 2, '功能符(数组关键词): ①查询User数组,最多5个', '/get', '{\"[]\":{\"count\":5,\"User\":{}}}', '{\"[]\":[{\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793,82012,82028,82021,82006,82030,82035],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82003,\"sex\":1,\"name\":\"Wechat\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 14:35:10'); INSERT INTO `Document` VALUES (1521903761688, 0, 2, '功能符(逻辑运算): ③ ! 非运算', '/head', '{\"User\":{\"id!{}\":[82001,38710]}}', '{\"User\":{\"code\":200,\"msg\":\"success\",\"count\":119},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:02:41'); INSERT INTO `Document` VALUES (1521903828409, 0, 2, '功能符(逻辑运算): ② | 或运算', '/head', '{\"User\":{\"id|{}\":\">90000,<=80000\"}}', '{\"User\":{\"code\":200,\"msg\":\"success\",\"count\":72},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:03:48'); INSERT INTO `Document` VALUES (1521903882829, 0, 2, '功能符(逻辑运算): ① & 与运算', '/head', '{\"User\":{\"id&{}\":\">80000,<=90000\"}}', '{\"User\":{\"code\":200,\"msg\":\"success\",\"count\":49},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:04:42'); INSERT INTO `Document` VALUES (1521904098110, 0, 2, '功能符: 减少 或 去除', '/put/balance', '{\n \n \"Privacy\": {\n \"id\": 82001,\n \"balance+\": -100,\n \"_payPassword\": \"<PASSWORD>56\"\n },\"tag\": \"Privacy\"\n}', '{\"Privacy\":{\"code\":200,\"msg\":\"success\",\"id\":82001,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:08:18'); INSERT INTO `Document` VALUES (1521904162065, 0, 2, '功能符: 增加 或 扩展', '/put', '{\n \"Moment\": {\n \"id\": 15,\n \"praiseUserIdList+\": [\n 82001\n ]\n },\n \"tag\": \"Moment\"\n}', '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"id\":15,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:09:22'); INSERT INTO `Document` VALUES (1521904337053, 0, 2, '功能符: 新建别名', '/get', '{\"Comment\":{\"@column\":\"id,toId:parentId\",\"id\":51}}', '{\"Comment\":{\"id\":51,\"parentId\":45},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:12:17'); INSERT INTO `Document` VALUES (1521904394041, 0, 2, '功能符: 正则匹配', '/get', '{\"User[]\":{\"count\":3,\"User\":{\"name?\":\"^[0-9]+$\"}}}', '{\"User[]\":[{\"id\":90814,\"sex\":0,\"name\":\"007\",\"head\":\"http://static.oschina.net/uploads/user/51/102723_50.jpg?t=1449212504000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":1528339692804,\"sex\":1,\"name\":\"568599\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[1528250827953,1528264711016],\"date\":\"2018-06-07 10:48:12.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:13:14'); INSERT INTO `Document` VALUES (1521904437583, 0, 2, '功能符: 模糊搜索', '/get', '{\"User[]\":{\"count\":3,\"User\":{\"name$\":\"%m%\"}}}', '{\"User[]\":[{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82004,\"sex\":0,\"name\":\"Tommy\",\"tag\":\"fasef\",\"head\":\"http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82006,\"sex\":1,\"name\":\"Meria\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:13:57'); INSERT INTO `Document` VALUES (1521904547991, 0, 2, '功能符: 引用赋值', '/get', '{\"Moment\":{\n \"userId\":38710\n},\n\"User\":{\n \"id@\":\"/Moment/userId\"\n}}', '{\"Moment\":{\"id\":235,\"userId\":38710,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"APIJSON,let interfaces and documents go to hell !\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\",\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\"]},\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:15:47'); INSERT INTO `Document` VALUES (1521904617126, 0, 2, '功能符: 远程调用函数', '/get', '{ \"Moment\": { \"id\": 301, \"@column\": \"userId,praiseUserIdList\", \"isPraised()\": \"isContain(praiseUserIdList,userId)\" } }', '{\"Moment\":{\"userId\":93793,\"praiseUserIdList\":[38710,93793,82003,82005,82040,82055,82002,82001],\"isPraised\":true},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:16:57'); INSERT INTO `Document` VALUES (1521904653621, 0, 2, '功能符: 包含选项范围', '/get', '{\"User[]\":{\"count\":3,\"User\":{\"contactIdList<>\":38710}}}', '{\"User[]\":[{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82005,\"sex\":1,\"name\":\"Jan\",\"tag\":\"AG\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82001,38710,1532439021068],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:17:33'); INSERT INTO `Document` VALUES (1521904698934, 0, 2, '功能符: 匹配条件范围', '/get', '{\"User[]\":{\"count\":3,\"User\":{\"id{}\":\"<=80000,>90000\"}}}', '{\"User[]\":[{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":90814,\"sex\":0,\"name\":\"007\",\"head\":\"http://static.oschina.net/uploads/user/51/102723_50.jpg?t=1449212504000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:18:18'); INSERT INTO `Document` VALUES (1521904756673, 0, 2, '功能符: 查询数组', '/get', '{\"User[]\":{\"count\":3,\"User\":{}}}', '{\"User[]\":[{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:19:16'); INSERT INTO `Document` VALUES (1521905263827, 0, 2, '操作方法(DELETE): 删除数据', '/delete', '{\n \"Moment\":{\n \"id\":120\n },\n \"tag\":\"Moment\"\n}', '{\"Moment\":{\"code\":404,\"msg\":\"可能对象不存在!\",\"id\":120,\"count\":0},\"Comment\":{\"code\":404,\"msg\":\"可能对象不存在!\",\"count\":0},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:27:43'); INSERT INTO `Document` VALUES (1521905599149, 0, 2, '操作方法(PUT): 修改数据,只修改所传的字段', '/put', '{\n \"Moment\":{\n \"id\":235,\n \"content\":\"APIJSON,let interfaces and documents go to hell !\"\n },\n \"tag\":\"Moment\"\n}', '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"id\":235,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:33:19'); INSERT INTO `Document` VALUES (1521905680679, 0, 2, '操作方法(POST): 新增数据', '/post', '{ \"Moment\": { \"content\": \"APIJSON,let interfaces and documents go to hell !\" }, \"tag\": \"Moment\" }', '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"id\":1538112282445,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:34:40'); INSERT INTO `Document` VALUES (1521905787849, 0, 2, '操作方法(HEADS): 安全/私密获取数量,用于获取银行卡数量等 对安全性要求高的数据总数', '/heads', '{\n \"Login\": {\n \"userId\": 38710,\"type\":1\n },\n \"tag\": \"Login\"\n}', '{\"Login\":{\"code\":200,\"msg\":\"success\",\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:36:27'); INSERT INTO `Document` VALUES (1521905868718, 0, 2, '操作方法(GETS): 安全/私密获取数据,用于获取钱包等 对安全性要求高的数据', '/gets', '{\n \"Privacy\": {\n \"id\": 82001\n },\n \"tag\": \"Privacy\"\n}', '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":9832.86},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:37:48'); INSERT INTO `Document` VALUES (1521905895590, 0, 2, '操作方法(HEAD): 普通获取数量,可用浏览器调试', '/head', '{\n \"Moment\":{\n \"userId\":38710\n }\n}', '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"count\":10},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:38:15'); INSERT INTO `Document` VALUES (1521905913187, 0, 2, '操作方法(GET): 普通获取数据,可用浏览器调试', '/get', '{\n \"Moment\":{\n \"id\":235\n }\n}', '{\"Moment\":{\"id\":235,\"userId\":38710,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"APIJSON,let interfaces and documents go to hell !\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\",\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\"]},\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:38:33'); INSERT INTO `Document` VALUES (1521906240331, 0, 2, 'User发布的Moment列表,每个Moment包括 1.发布者User 2.前3条Comment: ③不查已获取的User', '/get', '{\n \"[]\":{\n \"page\":0,\n \"count\":3, \n \"Moment\":{\n \"userId\":38710\n },\n \"Comment[]\":{\n \"count\":3,\n \"Comment\":{\n \"momentId@\":\"[]/Moment/id\"\n }\n }\n }\n}', '{\"[]\":[{\"Moment\":{\"id\":235,\"userId\":38710,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"APIJSON,let interfaces and documents go to hell !\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\",\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\"]},\"Comment[]\":[{\"id\":160,\"toId\":0,\"userId\":82001,\"momentId\":235,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-160\"},{\"id\":163,\"toId\":0,\"userId\":82001,\"momentId\":235,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-163\"},{\"id\":168,\"toId\":1490442545077,\"userId\":82001,\"momentId\":235,\"date\":\"2017-03-25 19:49:14.0\",\"content\":\"???\"}]},{\"Moment\":{\"id\":470,\"userId\":38710,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-470\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"Comment[]\":[{\"id\":4,\"toId\":0,\"userId\":38710,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-4\"},{\"id\":22,\"toId\":221,\"userId\":82001,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"测试修改评论\"},{\"id\":47,\"toId\":4,\"userId\":70793,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-47\"}]},{\"Moment\":{\"id\":511,\"userId\":38710,\"date\":\"2017-02-08 16:06:11.0\",\"praiseUserIdList\":[70793,93793,82001],\"pictureList\":[\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\"]},\"Comment[]\":[{\"id\":178,\"userId\":38710,\"momentId\":511,\"date\":\"2017-03-25 20:30:55.0\",\"content\":\"wbw\"},{\"id\":1490863711703,\"toId\":0,\"userId\":70793,\"momentId\":511,\"date\":\"2017-03-30 16:48:31.0\",\"content\":\"I hope I can join\"},{\"id\":1490863717947,\"toId\":178,\"userId\":70793,\"momentId\":511,\"date\":\"2017-03-30 16:48:37.0\",\"content\":\"what?\"}]}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:44:00'); INSERT INTO `Document` VALUES (1521906265959, 0, 2, 'User发布的Moment列表,每个Moment包括 1.发布者User 2.前3条Comment: ②省去重复的User', '/get', '{\n \"User\":{\n \"id\":38710\n },\n \"[]\":{\n \"page\":0,\n \"count\":3, \n \"Moment\":{\n \"userId\":38710\n }, \n \"Comment[]\":{\n \"count\":3,\n \"Comment\":{\n \"momentId@\":\"[]/Moment/id\"\n }\n }\n }\n}', '{\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"[]\":[{\"Moment\":{\"id\":235,\"userId\":38710,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"APIJSON,let interfaces and documents go to hell !\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\",\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\"]},\"Comment[]\":[{\"id\":160,\"toId\":0,\"userId\":82001,\"momentId\":235,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-160\"},{\"id\":163,\"toId\":0,\"userId\":82001,\"momentId\":235,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-163\"},{\"id\":168,\"toId\":1490442545077,\"userId\":82001,\"momentId\":235,\"date\":\"2017-03-25 19:49:14.0\",\"content\":\"???\"}]},{\"Moment\":{\"id\":470,\"userId\":38710,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-470\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"Comment[]\":[{\"id\":4,\"toId\":0,\"userId\":38710,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-4\"},{\"id\":22,\"toId\":221,\"userId\":82001,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"测试修改评论\"},{\"id\":47,\"toId\":4,\"userId\":70793,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-47\"}]},{\"Moment\":{\"id\":511,\"userId\":38710,\"date\":\"2017-02-08 16:06:11.0\",\"praiseUserIdList\":[70793,93793,82001],\"pictureList\":[\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\"]},\"Comment[]\":[{\"id\":178,\"userId\":38710,\"momentId\":511,\"date\":\"2017-03-25 20:30:55.0\",\"content\":\"wbw\"},{\"id\":1490863711703,\"toId\":0,\"userId\":70793,\"momentId\":511,\"date\":\"2017-03-30 16:48:31.0\",\"content\":\"I hope I can join\"},{\"id\":1490863717947,\"toId\":178,\"userId\":70793,\"momentId\":511,\"date\":\"2017-03-30 16:48:37.0\",\"content\":\"what?\"}]}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:44:25'); INSERT INTO `Document` VALUES (1521906517000, 0, 2, 'User发布的Moment列表,每个Moment包括 1.发布者User 2.前3条Comment: ①指定id', '/get', '{\n \"[]\": {\n \"page\": 0,\n \"count\": 3,\n \"Moment\":{\"userId\":38710}, \"User\":{\"id\":38710} ,\n \"Comment[]\": {\n \"count\": 3,\n \"Comment\": {\n \"momentId@\": \"[]/Moment/id\"\n }\n }\n }\n}', '{\"[]\":[{\"Moment\":{\"id\":235,\"userId\":38710,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"APIJSON,let interfaces and documents go to hell !\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\",\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\"]},\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"Comment[]\":[{\"id\":160,\"toId\":0,\"userId\":82001,\"momentId\":235,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-160\"},{\"id\":163,\"toId\":0,\"userId\":82001,\"momentId\":235,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-163\"},{\"id\":168,\"toId\":1490442545077,\"userId\":82001,\"momentId\":235,\"date\":\"2017-03-25 19:49:14.0\",\"content\":\"???\"}]},{\"Moment\":{\"id\":470,\"userId\":38710,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-470\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"Comment[]\":[{\"id\":4,\"toId\":0,\"userId\":38710,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-4\"},{\"id\":22,\"toId\":221,\"userId\":82001,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"测试修改评论\"},{\"id\":47,\"toId\":4,\"userId\":70793,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-47\"}]},{\"Moment\":{\"id\":511,\"userId\":38710,\"date\":\"2017-02-08 16:06:11.0\",\"praiseUserIdList\":[70793,93793,82001],\"pictureList\":[\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\"]},\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"Comment[]\":[{\"id\":178,\"userId\":38710,\"momentId\":511,\"date\":\"2017-03-25 20:30:55.0\",\"content\":\"wbw\"},{\"id\":1490863711703,\"toId\":0,\"userId\":70793,\"momentId\":511,\"date\":\"2017-03-30 16:48:31.0\",\"content\":\"I hope I can join\"},{\"id\":1490863717947,\"toId\":178,\"userId\":70793,\"momentId\":511,\"date\":\"2017-03-30 16:48:37.0\",\"content\":\"what?\"}]}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:48:37'); INSERT INTO `Document` VALUES (1521907009307, 0, 2, 'Moment列表,每个Moment包括 1.发布者User 2.前3条Comment', '/get', '{\n \"[]\":{\n \"page\":0, \n \"count\":3, \n \"Moment\":{}, \n \"User\":{\n \"id@\":\"/Moment/userId\"\n },\n \"Comment[]\":{\n \"count\":3,\n \"Comment\":{\n \"momentId@\":\"[]/Moment/id\"\n }\n }\n }\n}', '{\"[]\":[{\"Moment\":{\"id\":12,\"userId\":70793,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"1111534034\",\"praiseUserIdList\":[70793,93793,82044,82040,82055,90814,38710,82002,82006,1508072105320,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a4f5aadef3c886f028c79b4808613a/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343932353935372d313732303737333630382e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\"]},\"User\":{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},\"Comment[]\":[{\"id\":162,\"toId\":0,\"userId\":93793,\"momentId\":12,\"date\":\"2017-03-06 13:03:45.0\",\"content\":\"This is a Content...-162\"},{\"id\":164,\"toId\":0,\"userId\":93793,\"momentId\":12,\"date\":\"2017-03-06 13:03:45.0\",\"content\":\"This is a Content...-164\"},{\"id\":172,\"toId\":162,\"userId\":82001,\"momentId\":12,\"date\":\"2017-03-25 20:22:58.0\",\"content\":\"OK\"}]},{\"Moment\":{\"id\":15,\"userId\":70793,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"APIJSON is a JSON Transmission Structure Protocol…\",\"praiseUserIdList\":[82055,82002,38710],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},\"User\":{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},\"Comment[]\":[{\"id\":176,\"toId\":166,\"userId\":38710,\"momentId\":15,\"date\":\"2017-03-25 20:28:03.0\",\"content\":\"thank you\"},{\"id\":1490863469638,\"toId\":0,\"userId\":82002,\"momentId\":15,\"date\":\"2017-03-30 16:44:29.0\",\"content\":\"Just do it\"},{\"id\":1490875660259,\"toId\":1490863469638,\"userId\":82055,\"momentId\":15,\"date\":\"2017-03-30 20:07:40.0\",\"content\":\"I prove wht you said(??????)\"}]},{\"Moment\":{\"id\":32,\"userId\":82002,\"date\":\"2017-02-08 16:06:11.0\",\"praiseUserIdList\":[38710,82002,82001],\"pictureList\":[\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\",\"https://camo.githubusercontent.com/5f5c4e0c4dc539c34e8eae8ac0cbc6dccdfee5d3/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343533333831362d323032373434343231382e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},\"Comment[]\":[{\"id\":1512035117021,\"toId\":0,\"userId\":82001,\"momentId\":32,\"date\":\"2017-11-30 17:45:17.0\",\"content\":\"图片看不了啊\"},{\"id\":1512038831617,\"toId\":1512035117021,\"userId\":82001,\"momentId\":32,\"date\":\"2017-11-30 18:47:11.0\",\"content\":\"代码截屏都是2k分辨率的,并且还放在GitHub上,可以等一会儿,或者更新下ZBLibray(图片加载库从UIL换成了Glide)就行\"},{\"id\":1512039030970,\"toId\":1512035117021,\"userId\":82001,\"momentId\":32,\"date\":\"2017-11-30 18:50:30.0\",\"content\":\"一般九宫格图片都是压缩图,分辨率在300*300左右,加载很快,点击放大后才是原图,1080P左右\"}]}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 15:56:49'); INSERT INTO `Document` VALUES (1521907303539, 0, 2, 'User列表', '/get', '{\n \"User[]\":{\n \"page\":0,\n \"count\":3, \n \"User\":{\n \"sex\":0\n }\n }\n}', '{\"User[]\":[{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 16:01:43'); INSERT INTO `Document` VALUES (1521907317870, 0, 2, 'Moment和对应的User', '/get', '{\n \"Moment\":{\n \"userId\":38710\n }, \n \"User\":{\n \"id\":38710\n }\n}', '{\"Moment\":{\"id\":235,\"userId\":38710,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"APIJSON,let interfaces and documents go to hell !\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\",\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\"]},\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-03-24 16:01:57'); INSERT INTO `Document` VALUES (1521907333044, 0, 2, 'User', '/get', '{\n \"User\":{\n \"id\":38710\n }\n}', '{\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-03-24 16:02:13'); INSERT INTO `Document` VALUES (1521907333046, 0, 2, 'Moment INNER JOIN User LEFT JOIN Comment', '/get', '{\n \"[]\": {\n \"count\": 10,\n \"page\": 0,\n \"join\": \"&/User/id@,</Comment/momentId@\",\n \"Moment\": {\n \"@order\": \"date+\"\n },\n \"User\": {\n \"name?\": [\n \"a\",\n \"t\"\n ],\n \"id@\": \"/Moment/userId\",\n \"@column\": \"id,name,head\"\n },\n \"Comment\": {\n \"momentId@\": \"/Moment/id\",\n \"@column\": \"id,momentId,content\"\n }\n }\n}', '{\"[]\":[{\"Moment\":{\"id\":470,\"userId\":38710,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-470\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"},\"Comment\":{\"id\":47,\"momentId\":470,\"content\":\"This is a Content...-47\"}},{\"Moment\":{\"id\":470,\"userId\":38710,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-470\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"},\"Comment\":{\"id\":47,\"momentId\":470,\"content\":\"This is a Content...-47\"}},{\"Moment\":{\"id\":170,\"userId\":70793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-73\",\"praiseUserIdList\":[82044,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"Comment\":{\"id\":99,\"momentId\":170,\"content\":\"This is a Content...-99\"}},{\"Moment\":{\"id\":470,\"userId\":38710,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-470\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"},\"Comment\":{\"id\":47,\"momentId\":470,\"content\":\"This is a Content...-47\"}},{\"Moment\":{\"id\":170,\"userId\":70793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-73\",\"praiseUserIdList\":[82044,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"Comment\":{\"id\":99,\"momentId\":170,\"content\":\"This is a Content...-99\"}},{\"Moment\":{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},\"Comment\":{\"id\":115,\"momentId\":371,\"content\":\"This is a Content...-115\"}},{\"Moment\":{\"id\":170,\"userId\":70793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-73\",\"praiseUserIdList\":[82044,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"Comment\":{\"id\":99,\"momentId\":170,\"content\":\"This is a Content...-99\"}},{\"Moment\":{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},\"Comment\":{\"id\":115,\"momentId\":371,\"content\":\"This is a Content...-115\"}},{\"Moment\":{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},\"Comment\":{\"id\":115,\"momentId\":371,\"content\":\"This is a Content...-115\"}},{\"Moment\":{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},\"Comment\":{\"id\":115,\"momentId\":371,\"content\":\"This is a Content...-115\"}}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 16:02:43'); INSERT INTO `Document` VALUES (1521907333047, 0, 2, '获取粉丝的动态列表', '/get', '{ \"Moment[]\": { \"join\": \"&/User/id@\", \"Moment\": {}, \"User\": { \"id@\": \"/Moment/userId\", \"contactIdList<>\": 82001, \"@column\": \"id\" } } }', '{\"User-id[]\":[82002,82003,82005,82041,82045,82058,1512531601485,1528254173621],\"Moment[]\":[{\"id\":32,\"userId\":82002,\"date\":\"2017-02-08 16:06:11.0\",\"praiseUserIdList\":[38710,82002,82001],\"pictureList\":[\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\",\"https://camo.githubusercontent.com/5f5c4e0c4dc539c34e8eae8ac0cbc6dccdfee5d3/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343533333831362d323032373434343231382e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},{\"id\":1508053762227,\"userId\":82003,\"date\":\"2017-10-15 15:49:22.0\",\"content\":\"我也试试\",\"praiseUserIdList\":[1515565976140],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},{\"id\":1508072491570,\"userId\":82002,\"date\":\"2017-10-15 21:01:31.0\",\"content\":\"有点冷~\",\"praiseUserIdList\":[82001,82002],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},{\"id\":1508073178489,\"userId\":82045,\"date\":\"2017-10-15 21:12:58.0\",\"content\":\"发动态\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},{\"id\":1514017444961,\"userId\":82002,\"date\":\"2017-12-23 16:24:04.0\",\"content\":\"123479589679\",\"praiseUserIdList\":[82002,1520242280259,82001,70793,1524042900591,1528264711016],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},{\"id\":1531062713966,\"userId\":82002,\"date\":\"2018-07-08 23:11:53.0\",\"content\":\"云南好美啊( ◞˟૩˟)◞\",\"praiseUserIdList\":[82001,82005,38710,70793,93793,82003,1531969715979],\"pictureList\":[\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1531072366455&di=c0d4b15b2c4b70aad49e6ae747f60742&imgtype=0&src=http%3A%2F%2Fpic1.win4000.com%2Fwallpaper%2F3%2F57a2a41f57d09.jpg\",\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1531072499167&di=5b5621d117edbc5d344a03ba0a6b580b&imgtype=0&src=http%3A%2F%2Fi0.szhomeimg.com%2FUploadFiles%2FBBS%2F2006%2F08%2F05%2F24752199_79122.91.jpg\"]},{\"id\":1536805585275,\"userId\":82003,\"date\":\"2018-09-13 10:26:25.0\",\"content\":\"iPhone Xs发布了,大家怎么看?\",\"praiseUserIdList\":[82002,82005,70793,82003,82001],\"pictureList\":[\"https://pic1.zhimg.com/80/v2-e129b40810070443add1c28e6185c894_hd.jpg\"]}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 16:03:13'); INSERT INTO `Document` VALUES (1521907546128, 0, 2, '获取类似微信朋友圈的动态列表', '/get', '{\n \"[]\": {\n \"page\": 0,\n \"count\": 2,\n \"Moment\": {\n \"content$\": \"%a%\"\n },\n \"User\": {\n \"id@\": \"/Moment/userId\",\n \"@column\": \"id,name,head\"\n },\n \"Comment[]\": {\n \"count\": 2,\n \"Comment\": {\n \"momentId@\": \"[]/Moment/id\"\n }\n }\n }\n}', '{\"[]\":[{\"Moment\":{\"id\":15,\"userId\":70793,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"APIJSON is a JSON Transmission Structure Protocol…\",\"praiseUserIdList\":[82055,82002,38710],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"Comment[]\":[{\"id\":176,\"toId\":166,\"userId\":38710,\"momentId\":15,\"date\":\"2017-03-25 20:28:03.0\",\"content\":\"thank you\"},{\"id\":1490863469638,\"toId\":0,\"userId\":82002,\"momentId\":15,\"date\":\"2017-03-30 16:44:29.0\",\"content\":\"Just do it\"}]},{\"Moment\":{\"id\":58,\"userId\":90814,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-435\",\"praiseUserIdList\":[38710,82003,82005,93793,82006,82044,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\"]},\"User\":{\"id\":90814,\"name\":\"007\",\"head\":\"http://static.oschina.net/uploads/user/51/102723_50.jpg?t=1449212504000\"},\"Comment[]\":[{\"id\":13,\"toId\":0,\"userId\":82005,\"momentId\":58,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-13\"},{\"id\":77,\"toId\":13,\"userId\":93793,\"momentId\":58,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-77\"}]}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 16:05:46'); INSERT INTO `Document` VALUES (1521907570451, 0, 2, '获取动态及发布者用户', '/get', '{\n \"Moment\": {},\n \"User\": {\n \"id@\": \"Moment/userId\"\n }\n}', '{\"Moment\":{\"id\":12,\"userId\":70793,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"1111534034\",\"praiseUserIdList\":[70793,93793,82044,82040,82055,90814,38710,82002,82006,1508072105320],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a4f5aadef3c886f028c79b4808613a/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343932353935372d313732303737333630382e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\"]},\"User\":{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-03-24 16:06:10'); INSERT INTO `Document` VALUES (1521907587429, 0, 2, '获取用户列表', '/get', '{\n \"[]\": {\n \"count\": 3,\n \"User\": {\n \"@column\": \"id,name\"\n }\n }\n}', '{\"[]\":[{\"User\":{\"id\":38710,\"name\":\"TommyLemon\"}},{\"User\":{\"id\":70793,\"name\":\"Strong\"}},{\"User\":{\"id\":82001,\"name\":\"测试账号\"}}],\"code\":200,\"msg\":\"success\"}', '2018-03-24 16:06:27'); INSERT INTO `Document` VALUES (1521907601298, 0, 2, '获取用户', '/get', '{\n \"User\":{\n }\n}', '{\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-03-24 16:06:41'); COMMIT; -- ---------------------------- -- Table structure for Function -- ---------------------------- DROP TABLE IF EXISTS `Function`; CREATE TABLE `Function` ( `id` bigint(15) NOT NULL AUTO_INCREMENT, `userId` bigint(15) NOT NULL COMMENT '管理员用户Id', `name` varchar(20) NOT NULL COMMENT '方法名', `arguments` varchar(100) DEFAULT NULL COMMENT '参数列表,每个参数的类型都是 String。\n用 , 分割的字符串 比 [JSONArray] 更好,例如 array,item ,更直观,还方便拼接函数。', `demo` json NOT NULL COMMENT '可用的示例。', `detail` varchar(1000) DEFAULT NULL COMMENT '详细描述', `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8 COMMENT='远程函数。强制在启动时校验所有demo是否能正常运行通过'; -- ---------------------------- -- Records of Function -- ---------------------------- BEGIN; INSERT INTO `Function` VALUES (3, 0, 'countArray', 'array', '{\"array\": [1, 2, 3]}', '获取数组长度。没写调用键值对,会自动补全 \"result()\": \"countArray(array)\"', '2018-10-13 08:23:23'); INSERT INTO `Function` VALUES (4, 0, 'countObject', 'object', '{\"object\": {\"key0\": 1, \"key1\": 2}}', '获取对象长度。', '2018-10-13 08:23:23'); INSERT INTO `Function` VALUES (5, 0, 'isContain', 'array,value', '{\"array\": [1, 2, 3], \"value\": 2}', '判断是否数组包含值。', '2018-10-13 08:23:23'); INSERT INTO `Function` VALUES (6, 0, 'isContainKey', 'object,key', '{\"key\": \"id\", \"object\": {\"id\": 1}}', '判断是否对象包含键。', '2018-10-13 08:30:31'); INSERT INTO `Function` VALUES (7, 0, 'isContainValue', 'object,value', '{\"value\": 1, \"object\": {\"id\": 1}}', '判断是否对象包含值。', '2018-10-13 08:30:31'); INSERT INTO `Function` VALUES (8, 0, 'getFromArray', 'array,position', '{\"array\": [1, 2, 3], \"result()\": \"getFromArray(array,1)\"}', '根据下标获取数组里的值。position 传数字时直接作为值,而不是从所在对象 request 中取值', '2018-10-13 08:30:31'); INSERT INTO `Function` VALUES (9, 0, 'getFromObject', 'object,key', '{\"key\": \"id\", \"object\": {\"id\": 1}}', '根据键获取对象里的值。', '2018-10-13 08:30:31'); COMMIT; -- ---------------------------- -- Table structure for Login -- ---------------------------- DROP TABLE IF EXISTS `Login`; CREATE TABLE `Login` ( `id` bigint(15) NOT NULL COMMENT '唯一标识', `userId` bigint(15) NOT NULL COMMENT '用户id', `type` tinyint(2) NOT NULL COMMENT '类型\n0-密码登录\n1-验证码登录', `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='@deprecated,登录信息存session'; -- ---------------------------- -- Records of Login -- ---------------------------- BEGIN; INSERT INTO `Login` VALUES (1488365732208, 0, 0, '2017-03-01 10:55:32'); INSERT INTO `Login` VALUES (1488379391681, 1488378558927, 0, '2017-03-01 14:43:11'); INSERT INTO `Login` VALUES (1488379908786, 1488378449469, 0, '2017-03-01 14:51:48'); INSERT INTO `Login` VALUES (1488379961820, 1488379935755, 0, '2017-03-01 14:52:41'); INSERT INTO `Login` VALUES (1488386227319, 1488380023998, 0, '2017-03-01 16:37:07'); INSERT INTO `Login` VALUES (1488387166592, 1488378449469, 0, '2017-03-01 16:52:46'); INSERT INTO `Login` VALUES (1488423710531, 1488423676823, 0, '2017-03-02 03:01:50'); INSERT INTO `Login` VALUES (1488428867991, 1488428734202, 0, '2017-03-02 04:27:47'); INSERT INTO `Login` VALUES (1488473261705, 1488473066471, 0, '2017-03-02 16:47:41'); INSERT INTO `Login` VALUES (1488516623869, 1488378449469, 0, '2017-03-03 04:50:23'); INSERT INTO `Login` VALUES (1488540997715, 1488540991808, 0, '2017-03-03 11:36:37'); INSERT INTO `Login` VALUES (1488541075533, 1488541028865, 0, '2017-03-03 11:37:55'); INSERT INTO `Login` VALUES (1488541560585, 1488541531131, 0, '2017-03-03 11:46:00'); INSERT INTO `Login` VALUES (1488569711657, 1488569508197, 0, '2017-03-03 19:35:11'); INSERT INTO `Login` VALUES (1488569782719, 1488569732797, 0, '2017-03-03 19:36:22'); INSERT INTO `Login` VALUES (1488569807192, 1488569798561, 0, '2017-03-03 19:36:47'); INSERT INTO `Login` VALUES (1488572273190, 1488572225956, 0, '2017-03-03 20:17:53'); INSERT INTO `Login` VALUES (1488572823466, 1488569798561, 0, '2017-03-03 20:27:03'); INSERT INTO `Login` VALUES (1488572844863, 1488572838263, 0, '2017-03-03 20:27:24'); INSERT INTO `Login` VALUES (1488572852849, 1488572838263, 0, '2017-03-03 20:27:32'); INSERT INTO `Login` VALUES (1488572994566, 1488572838263, 0, '2017-03-03 20:29:54'); INSERT INTO `Login` VALUES (1488602587483, 1488602583693, 0, '2017-03-04 04:43:07'); INSERT INTO `Login` VALUES (1488602732477, 1488602583693, 0, '2017-03-04 04:45:32'); INSERT INTO `Login` VALUES (1488602739644, 1488569508197, 0, '2017-03-04 04:45:39'); INSERT INTO `Login` VALUES (1488616804093, 82012, 0, '2017-03-04 09:30:21'); INSERT INTO `Login` VALUES (1488619853762, 82012, 0, '2017-03-04 09:30:53'); INSERT INTO `Login` VALUES (1488619853763, 1488621574081, 0, '2017-03-04 09:59:34'); INSERT INTO `Login` VALUES (1488621807871, 1488621574081, 0, '2017-03-04 10:03:27'); INSERT INTO `Login` VALUES (1488621807872, 1488621574081, 0, '2017-03-04 10:03:43'); INSERT INTO `Login` VALUES (1488621827734, 1488621574081, 0, '2017-03-04 10:03:47'); INSERT INTO `Login` VALUES (1488621827735, 1488621574081, 0, '2017-03-04 10:04:03'); INSERT INTO `Login` VALUES (1488621846267, 1488621574081, 0, '2017-03-04 10:04:06'); INSERT INTO `Login` VALUES (1488621846268, 1488621873562, 0, '2017-03-04 10:04:33'); INSERT INTO `Login` VALUES (1488621876782, 1488621873562, 0, '2017-03-04 10:04:36'); INSERT INTO `Login` VALUES (1488621876783, 1488621904086, 0, '2017-03-04 10:05:04'); INSERT INTO `Login` VALUES (1488622533567, 1488621904086, 0, '2017-03-04 10:15:33'); INSERT INTO `Login` VALUES (1488622533568, 1488622827857, 0, '2017-03-04 10:20:27'); INSERT INTO `Login` VALUES (1488622831418, 1488622827857, 0, '2017-03-04 10:20:31'); INSERT INTO `Login` VALUES (1488622831419, 1488473066471, 0, '2017-03-04 10:21:52'); INSERT INTO `Login` VALUES (1488622919890, 1488473066471, 0, '2017-03-04 10:21:59'); INSERT INTO `Login` VALUES (1488622919891, 1488622959038, 0, '2017-03-04 10:22:39'); INSERT INTO `Login` VALUES (1488623021260, 1488622959038, 0, '2017-03-04 10:23:41'); INSERT INTO `Login` VALUES (1488623021261, 1488622959038, 0, '2017-03-04 10:25:02'); INSERT INTO `Login` VALUES (1488623107782, 1488622959038, 0, '2017-03-04 10:25:07'); INSERT INTO `Login` VALUES (1488623107783, 1488622959038, 0, '2017-03-04 14:23:31'); INSERT INTO `Login` VALUES (1488638599393, 1488622959038, 0, '2017-03-04 14:43:19'); INSERT INTO `Login` VALUES (1488638599394, 1488622959038, 0, '2017-03-04 15:07:50'); INSERT INTO `Login` VALUES (1488640073476, 1488622959038, 0, '2017-03-04 15:07:53'); INSERT INTO `Login` VALUES (1488640255126, 1488640277910, 0, '2017-03-04 15:11:18'); INSERT INTO `Login` VALUES (1488640325578, 1488640277910, 0, '2017-03-04 15:12:05'); INSERT INTO `Login` VALUES (1488640325579, 1488640277910, 0, '2017-03-04 15:12:08'); INSERT INTO `Login` VALUES (1488640330490, 1488640277910, 0, '2017-03-04 15:12:10'); INSERT INTO `Login` VALUES (1488640330491, 1488640277910, 0, '2017-03-04 15:59:25'); INSERT INTO `Login` VALUES (1488643309485, 1488640277910, 0, '2017-03-04 16:01:49'); INSERT INTO `Login` VALUES (1488643309486, 1488643325534, 0, '2017-03-04 16:02:05'); INSERT INTO `Login` VALUES (1488643330578, 1488643325534, 0, '2017-03-04 16:02:10'); INSERT INTO `Login` VALUES (1488643414031, 1488643442503, 0, '2017-03-04 16:04:02'); INSERT INTO `Login` VALUES (1488643446184, 1488643442503, 0, '2017-03-04 16:04:06'); INSERT INTO `Login` VALUES (1488645359252, 82012, 0, '2017-03-04 16:43:41'); INSERT INTO `Login` VALUES (1488645825647, 82012, 0, '2017-03-04 16:43:45'); INSERT INTO `Login` VALUES (1488645825648, 82012, 0, '2017-03-04 16:44:32'); INSERT INTO `Login` VALUES (1488645964496, 82012, 0, '2017-03-04 16:46:04'); INSERT INTO `Login` VALUES (1488645964497, 82012, 0, '2017-03-04 16:46:06'); INSERT INTO `Login` VALUES (1488645968694, 82012, 0, '2017-03-04 16:46:08'); INSERT INTO `Login` VALUES (1488707458563, 1488643442503, 0, '2017-03-05 09:51:32'); INSERT INTO `Login` VALUES (1488707494290, 1488643442503, 0, '2017-03-05 09:51:34'); INSERT INTO `Login` VALUES (1488707494291, 1488707511472, 0, '2017-03-05 09:51:51'); INSERT INTO `Login` VALUES (1488707514358, 1488707511472, 0, '2017-03-05 09:51:54'); INSERT INTO `Login` VALUES (1488707514359, 1488707511472, 1, '2017-03-05 09:52:15'); INSERT INTO `Login` VALUES (1488707539344, 1488707511472, 0, '2017-03-05 09:52:19'); INSERT INTO `Login` VALUES (1488707539345, 1488707572184, 0, '2017-03-05 09:52:52'); INSERT INTO `Login` VALUES (1488707575181, 1488707572184, 0, '2017-03-05 09:52:55'); INSERT INTO `Login` VALUES (1488707575182, 1488707617655, 0, '2017-03-05 09:53:37'); INSERT INTO `Login` VALUES (1488707626071, 1488707617655, 0, '2017-03-05 09:53:46'); INSERT INTO `Login` VALUES (1488707626072, 1488707617655, 0, '2017-03-05 09:53:52'); INSERT INTO `Login` VALUES (1488707635801, 1488707617655, 0, '2017-03-05 09:53:55'); INSERT INTO `Login` VALUES (1488707635802, 1488707617655, 0, '2017-03-05 09:57:26'); INSERT INTO `Login` VALUES (1488707850222, 1488707617655, 0, '2017-03-05 09:57:30'); INSERT INTO `Login` VALUES (1488707850223, 1488707874944, 0, '2017-03-05 09:57:55'); INSERT INTO `Login` VALUES (1488707877660, 1488707874944, 0, '2017-03-05 09:57:57'); INSERT INTO `Login` VALUES (1488707877661, 1488707874944, 1, '2017-03-05 09:58:27'); INSERT INTO `Login` VALUES (1488707915649, 1488707874944, 0, '2017-03-05 09:58:35'); INSERT INTO `Login` VALUES (1488727516722, 1488727542397, 0, '2017-03-05 15:25:42'); INSERT INTO `Login` VALUES (1488727548031, 1488727542397, 0, '2017-03-05 15:25:48'); INSERT INTO `Login` VALUES (1488803302239, 1488727542397, 0, '2017-03-06 12:28:24'); INSERT INTO `Login` VALUES (1488803306640, 1488727542397, 0, '2017-03-06 12:28:26'); INSERT INTO `Login` VALUES (1488803306641, 1488803343874, 0, '2017-03-06 12:29:04'); INSERT INTO `Login` VALUES (1488803346374, 1488803343874, 0, '2017-03-06 12:29:06'); INSERT INTO `Login` VALUES (1488803346375, 1488803343874, 0, '2017-03-06 15:06:09'); INSERT INTO `Login` VALUES (1488812773144, 1488803343874, 0, '2017-03-06 15:06:13'); INSERT INTO `Login` VALUES (1489244600336, 1489244640435, 0, '2017-03-11 15:04:00'); INSERT INTO `Login` VALUES (1489244647438, 1489244640435, 0, '2017-03-11 15:04:07'); INSERT INTO `Login` VALUES (1489244647439, 1489244640435, 1, '2017-03-11 15:04:25'); INSERT INTO `Login` VALUES (1489244669153, 1489244640435, 0, '2017-03-11 15:04:29'); INSERT INTO `Login` VALUES (1489246281612, 1489244640435, 0, '2017-03-11 15:31:37'); INSERT INTO `Login` VALUES (1489246300085, 1489244640435, 0, '2017-03-11 15:31:40'); INSERT INTO `Login` VALUES (1489246300086, 1489244640435, 0, '2017-03-11 15:32:00'); INSERT INTO `Login` VALUES (1489246323014, 1489244640435, 0, '2017-03-11 15:32:03'); INSERT INTO `Login` VALUES (1489246323015, 1489246345610, 0, '2017-03-11 15:32:25'); INSERT INTO `Login` VALUES (1489246350667, 1489246345610, 0, '2017-03-11 15:32:30'); INSERT INTO `Login` VALUES (1489298452742, 1488727542397, 0, '2017-03-12 06:01:02'); INSERT INTO `Login` VALUES (1489298464822, 1488727542397, 0, '2017-03-12 06:01:04'); INSERT INTO `Login` VALUES (1489298464823, 1489298483829, 0, '2017-03-12 06:01:23'); INSERT INTO `Login` VALUES (1489298490008, 1489298483829, 0, '2017-03-12 06:01:30'); INSERT INTO `Login` VALUES (1489298490009, 82005, 0, '2017-03-12 06:02:12'); INSERT INTO `Login` VALUES (1489298931649, 82005, 0, '2017-03-12 06:08:53'); INSERT INTO `Login` VALUES (1489298971069, 82005, 0, '2017-03-12 06:09:31'); INSERT INTO `Login` VALUES (1489298971070, 82005, 0, '2017-03-12 06:09:40'); INSERT INTO `Login` VALUES (1489299084011, 82005, 0, '2017-03-12 06:11:24'); INSERT INTO `Login` VALUES (1489299139305, 90814, 0, '2017-03-12 06:12:23'); INSERT INTO `Login` VALUES (1489317763943, 1489317784114, 0, '2017-03-12 11:23:04'); INSERT INTO `Login` VALUES (1489317856607, 1489317784114, 0, '2017-03-12 11:24:16'); INSERT INTO `Login` VALUES (1489934937901, 1489934955220, 0, '2017-03-19 14:49:15'); INSERT INTO `Login` VALUES (1489934967736, 1489934955220, 0, '2017-03-19 14:49:27'); INSERT INTO `Login` VALUES (1490105370959, 1490105418731, 0, '2017-03-21 14:10:18'); INSERT INTO `Login` VALUES (1490105432172, 1490105418731, 0, '2017-03-21 14:10:32'); INSERT INTO `Login` VALUES (1490109211714, 1490109742863, 0, '2017-03-21 15:22:23'); INSERT INTO `Login` VALUES (1490109746858, 1490109742863, 0, '2017-03-21 15:22:26'); INSERT INTO `Login` VALUES (1490109746859, 1490109845208, 0, '2017-03-21 15:24:05'); INSERT INTO `Login` VALUES (1490109847412, 1490109845208, 0, '2017-03-21 15:24:07'); INSERT INTO `Login` VALUES (1490109847413, 1490109845208, 1, '2017-03-21 15:25:39'); INSERT INTO `Login` VALUES (1490109943463, 1490109845208, 0, '2017-03-21 15:25:43'); INSERT INTO `Login` VALUES (1490420549513, 1488707874944, 0, '2017-03-25 05:43:30'); INSERT INTO `Login` VALUES (1490420612726, 1488707874944, 0, '2017-03-25 05:43:32'); INSERT INTO `Login` VALUES (1490420612727, 1490420651686, 0, '2017-03-25 05:44:11'); INSERT INTO `Login` VALUES (1490420694018, 1490420651686, 0, '2017-03-25 05:44:54'); INSERT INTO `Login` VALUES (1490425995551, 1490427139175, 0, '2017-03-25 07:32:19'); INSERT INTO `Login` VALUES (1490427142481, 1490427139175, 0, '2017-03-25 07:32:22'); INSERT INTO `Login` VALUES (1490427142482, 1490427139175, 0, '2017-03-25 07:32:25'); INSERT INTO `Login` VALUES (1490427147907, 1490427139175, 0, '2017-03-25 07:32:27'); INSERT INTO `Login` VALUES (1490427147908, 1490427139175, 1, '2017-03-25 07:32:46'); INSERT INTO `Login` VALUES (1490427169820, 1490427139175, 0, '2017-03-25 07:32:49'); INSERT INTO `Login` VALUES (1490427169821, 1490427139175, 1, '2017-03-25 07:36:09'); INSERT INTO `Login` VALUES (1490427460928, 1490427139175, 0, '2017-03-25 07:37:40'); INSERT INTO `Login` VALUES (1490427550424, 1490427577823, 0, '2017-03-25 07:39:37'); INSERT INTO `Login` VALUES (1490427581040, 1490427577823, 0, '2017-03-25 07:39:41'); INSERT INTO `Login` VALUES (1490584927873, 1490584952968, 0, '2017-03-27 03:22:33'); INSERT INTO `Login` VALUES (1490584967616, 1490584952968, 0, '2017-03-27 03:22:47'); INSERT INTO `Login` VALUES (1490585175679, 1490585192903, 0, '2017-03-27 03:26:33'); INSERT INTO `Login` VALUES (1490585175680, 1490585226494, 0, '2017-03-27 03:27:06'); INSERT INTO `Login` VALUES (1490585175681, 1490586230028, 0, '2017-03-27 03:43:50'); INSERT INTO `Login` VALUES (1490586242829, 1490586230028, 0, '2017-03-27 03:44:02'); INSERT INTO `Login` VALUES (1490586242830, 1490586417277, 0, '2017-03-27 03:46:57'); INSERT INTO `Login` VALUES (1490586420868, 1490586417277, 0, '2017-03-27 03:47:00'); INSERT INTO `Login` VALUES (1490586420869, 1490587219677, 0, '2017-03-27 04:00:20'); INSERT INTO `Login` VALUES (1490587222853, 1490587219677, 0, '2017-03-27 04:00:22'); INSERT INTO `Login` VALUES (1490587222854, 1490587219677, 0, '2017-03-27 04:00:30'); INSERT INTO `Login` VALUES (1490587232018, 1490587219677, 0, '2017-03-27 04:00:32'); INSERT INTO `Login` VALUES (1490763654616, 1489317784114, 0, '2017-03-29 05:01:03'); INSERT INTO `Login` VALUES (1490763665719, 1489317784114, 0, '2017-03-29 05:01:05'); INSERT INTO `Login` VALUES (1490763665720, 1490763680229, 0, '2017-03-29 05:01:20'); INSERT INTO `Login` VALUES (1490763684749, 1490763680229, 0, '2017-03-29 05:01:24'); INSERT INTO `Login` VALUES (1490763684750, 1490763889677, 0, '2017-03-29 05:04:49'); INSERT INTO `Login` VALUES (1490763892907, 1490763889677, 0, '2017-03-29 05:04:52'); INSERT INTO `Login` VALUES (1490763892908, 1490763889677, 1, '2017-03-29 05:09:04'); INSERT INTO `Login` VALUES (1490764146839, 1490763889677, 0, '2017-03-29 05:09:06'); INSERT INTO `Login` VALUES (1490764146840, 1490763889677, 0, '2017-03-29 05:09:17'); INSERT INTO `Login` VALUES (1490764160920, 1490763889677, 0, '2017-03-29 05:09:20'); INSERT INTO `Login` VALUES (1490796426168, 1490796536716, 0, '2017-03-29 14:08:56'); INSERT INTO `Login` VALUES (1490796539768, 1490796536716, 0, '2017-03-29 14:08:59'); INSERT INTO `Login` VALUES (1490796539769, 1490796536716, 1, '2017-03-29 14:09:25'); INSERT INTO `Login` VALUES (1490796612462, 1490796536716, 0, '2017-03-29 14:10:12'); INSERT INTO `Login` VALUES (1490796612463, 1490796536716, 0, '2017-03-29 14:10:14'); INSERT INTO `Login` VALUES (1490797130482, 1490796536716, 0, '2017-03-29 14:18:50'); INSERT INTO `Login` VALUES (1490797130483, 1490796536716, 0, '2017-03-29 14:21:17'); INSERT INTO `Login` VALUES (1490799078694, 1490796536716, 0, '2017-03-29 14:51:18'); INSERT INTO `Login` VALUES (1490799078695, 1490796536716, 0, '2017-03-29 15:04:49'); INSERT INTO `Login` VALUES (1490863478648, 82003, 0, '2017-03-30 08:44:40'); INSERT INTO `Login` VALUES (1490863574695, 82003, 0, '2017-03-30 08:46:14'); INSERT INTO `Login` VALUES (1490863574696, 82005, 0, '2017-03-30 08:46:16'); INSERT INTO `Login` VALUES (1490863617906, 82005, 0, '2017-03-30 08:46:57'); INSERT INTO `Login` VALUES (1490863617907, 70793, 1, '2017-03-30 08:47:12'); INSERT INTO `Login` VALUES (1490863735458, 70793, 0, '2017-03-30 08:48:55'); INSERT INTO `Login` VALUES (1490863735459, 93793, 0, '2017-03-30 08:49:01'); INSERT INTO `Login` VALUES (1490863793209, 93793, 0, '2017-03-30 08:49:53'); INSERT INTO `Login` VALUES (1490863793210, 82006, 0, '2017-03-30 08:50:07'); INSERT INTO `Login` VALUES (1490864162242, 82006, 0, '2017-03-30 08:56:02'); INSERT INTO `Login` VALUES (1490864162243, 82044, 1, '2017-03-30 08:56:39'); INSERT INTO `Login` VALUES (1490864359458, 82044, 0, '2017-03-30 08:59:19'); INSERT INTO `Login` VALUES (1490874790302, 82040, 0, '2017-03-30 11:53:14'); INSERT INTO `Login` VALUES (1490874856899, 82040, 0, '2017-03-30 11:54:16'); INSERT INTO `Login` VALUES (1490874856900, 82055, 0, '2017-03-30 11:54:22'); INSERT INTO `Login` VALUES (1490875711368, 82055, 0, '2017-03-30 12:08:31'); INSERT INTO `Login` VALUES (1490875711369, 82056, 0, '2017-03-30 12:08:37'); INSERT INTO `Login` VALUES (1490875721491, 82056, 0, '2017-03-30 12:08:41'); INSERT INTO `Login` VALUES (1490875721492, 82060, 0, '2017-03-30 12:08:43'); INSERT INTO `Login` VALUES (1490875725467, 82060, 0, '2017-03-30 12:08:45'); INSERT INTO `Login` VALUES (1490875725468, 1490875855144, 0, '2017-03-30 12:10:55'); INSERT INTO `Login` VALUES (1490875857334, 1490875855144, 0, '2017-03-30 12:10:57'); INSERT INTO `Login` VALUES (1490880027108, 82054, 0, '2017-03-30 13:20:27'); INSERT INTO `Login` VALUES (1490880030859, 82054, 0, '2017-03-30 13:20:30'); INSERT INTO `Login` VALUES (1490880030860, 1490880220255, 0, '2017-03-30 13:23:40'); INSERT INTO `Login` VALUES (1490880236865, 1490880220255, 0, '2017-03-30 13:23:56'); INSERT INTO `Login` VALUES (1490880236866, 1490880254410, 0, '2017-03-30 13:24:14'); INSERT INTO `Login` VALUES (1490880256555, 1490880254410, 0, '2017-03-30 13:24:16'); INSERT INTO `Login` VALUES (1490973548451, 1490973670928, 0, '2017-03-31 15:21:11'); INSERT INTO `Login` VALUES (1490974102842, 1490973670928, 0, '2017-03-31 15:28:22'); INSERT INTO `Login` VALUES (1490974212206, 70793, 0, '2017-03-31 15:30:27'); INSERT INTO `Login` VALUES (1490974347168, 70793, 0, '2017-03-31 15:32:27'); INSERT INTO `Login` VALUES (1491014963729, 82049, 0, '2017-04-01 02:49:29'); INSERT INTO `Login` VALUES (1491014970908, 82049, 0, '2017-04-01 02:49:30'); INSERT INTO `Login` VALUES (1491014970909, 82051, 0, '2017-04-01 02:49:32'); INSERT INTO `Login` VALUES (1491014975055, 82051, 0, '2017-04-01 02:49:35'); INSERT INTO `Login` VALUES (1491014975056, 1490420651686, 0, '2017-04-01 02:49:37'); INSERT INTO `Login` VALUES (1491014978929, 1490420651686, 0, '2017-04-01 02:49:38'); INSERT INTO `Login` VALUES (1491014978930, 1491015049274, 0, '2017-04-01 02:50:49'); INSERT INTO `Login` VALUES (1491015064226, 1491015049274, 0, '2017-04-01 02:51:04'); INSERT INTO `Login` VALUES (1491015064227, 70793, 0, '2017-04-01 02:57:27'); INSERT INTO `Login` VALUES (1491130974601, 82049, 0, '2017-04-02 11:03:06'); INSERT INTO `Login` VALUES (1491130988304, 82049, 0, '2017-04-02 11:03:08'); INSERT INTO `Login` VALUES (1491130988305, 82050, 0, '2017-04-02 11:03:10'); INSERT INTO `Login` VALUES (1491130992091, 82050, 0, '2017-04-02 11:03:12'); INSERT INTO `Login` VALUES (1491130992092, 1490420651686, 0, '2017-04-02 11:03:13'); INSERT INTO `Login` VALUES (1491130996226, 1490420651686, 0, '2017-04-02 11:03:16'); INSERT INTO `Login` VALUES (1491130996227, 1491131016872, 0, '2017-04-02 11:03:37'); INSERT INTO `Login` VALUES (1491131020967, 1491131016872, 0, '2017-04-02 11:03:40'); INSERT INTO `Login` VALUES (1491131114629, 1491131208618, 0, '2017-04-02 11:06:48'); INSERT INTO `Login` VALUES (1491131215621, 1491131208618, 0, '2017-04-02 11:06:55'); INSERT INTO `Login` VALUES (1491131215622, 1491131208618, 0, '2017-04-02 12:32:26'); INSERT INTO `Login` VALUES (1491136484469, 1491131208618, 0, '2017-04-02 12:34:44'); INSERT INTO `Login` VALUES (1491137049692, 1491137170621, 0, '2017-04-02 12:46:10'); INSERT INTO `Login` VALUES (1491137175158, 1491137170621, 0, '2017-04-02 12:46:15'); INSERT INTO `Login` VALUES (1491137175159, 70793, 0, '2017-04-02 12:46:27'); INSERT INTO `Login` VALUES (1491210186666, 82046, 0, '2017-04-03 09:05:37'); INSERT INTO `Login` VALUES (1491210340156, 82046, 0, '2017-04-03 09:05:40'); INSERT INTO `Login` VALUES (1491210340157, 82041, 0, '2017-04-03 09:05:41'); INSERT INTO `Login` VALUES (1491210344197, 82041, 0, '2017-04-03 09:05:44'); INSERT INTO `Login` VALUES (1491210344198, 1491210361659, 1, '2017-04-03 09:06:23'); INSERT INTO `Login` VALUES (1491210385826, 1491210361659, 0, '2017-04-03 09:06:25'); INSERT INTO `Login` VALUES (1491210385827, 1491210948591, 0, '2017-04-03 09:15:48'); INSERT INTO `Login` VALUES (1491210951970, 1491210948591, 0, '2017-04-03 09:15:51'); INSERT INTO `Login` VALUES (1491210951971, 1491210948591, 1, '2017-04-03 09:16:01'); INSERT INTO `Login` VALUES (1491210964359, 1491210948591, 0, '2017-04-03 09:16:04'); INSERT INTO `Login` VALUES (1491210964360, 1491210948591, 0, '2017-04-03 09:16:07'); INSERT INTO `Login` VALUES (1491210969546, 1491210948591, 0, '2017-04-03 09:16:09'); INSERT INTO `Login` VALUES (1491231490642, 82003, 0, '2017-04-03 14:58:13'); INSERT INTO `Login` VALUES (1491231560497, 82003, 0, '2017-04-03 14:59:20'); INSERT INTO `Login` VALUES (1491231560498, 93793, 0, '2017-04-03 14:59:31'); INSERT INTO `Login` VALUES (1491231602048, 93793, 0, '2017-04-03 15:00:02'); INSERT INTO `Login` VALUES (1491231602049, 93793, 0, '2017-04-03 15:09:42'); INSERT INTO `Login` VALUES (1491232187135, 93793, 0, '2017-04-03 15:09:47'); INSERT INTO `Login` VALUES (1491278106043, 1490109742863, 0, '2017-04-04 03:55:15'); INSERT INTO `Login` VALUES (1491278117918, 1490109742863, 0, '2017-04-04 03:55:17'); INSERT INTO `Login` VALUES (1491278117919, 1490427577823, 0, '2017-04-04 03:55:19'); INSERT INTO `Login` VALUES (1491278121481, 1490427577823, 0, '2017-04-04 03:55:21'); INSERT INTO `Login` VALUES (1491278121482, 1491278203315, 0, '2017-04-04 03:56:43'); INSERT INTO `Login` VALUES (1491283571224, 1491278203315, 0, '2017-04-04 05:26:11'); INSERT INTO `Login` VALUES (1491283708324, 1491210314249, 1, '2017-04-04 05:28:55'); INSERT INTO `Login` VALUES (1491283800948, 1491210314249, 0, '2017-04-04 05:30:00'); INSERT INTO `Login` VALUES (1491706177615, 1491706263570, 0, '2017-04-09 02:51:03'); INSERT INTO `Login` VALUES (1491713830487, 1491713931091, 0, '2017-04-09 04:58:51'); INSERT INTO `Login` VALUES (1491713972850, 1491713931091, 0, '2017-04-09 04:59:32'); INSERT INTO `Login` VALUES (1491728210153, 1490427139175, 0, '2017-04-09 08:56:53'); INSERT INTO `Login` VALUES (1491728216317, 1490427139175, 0, '2017-04-09 08:56:56'); INSERT INTO `Login` VALUES (1491728216318, 82054, 0, '2017-04-09 08:56:58'); INSERT INTO `Login` VALUES (1491728221137, 82054, 0, '2017-04-09 08:57:01'); INSERT INTO `Login` VALUES (1491728221138, 1491728303733, 0, '2017-04-09 08:58:23'); INSERT INTO `Login` VALUES (1491728316688, 1491728303733, 0, '2017-04-09 08:58:36'); INSERT INTO `Login` VALUES (1491798585269, 1490420651686, 0, '2017-04-10 04:30:17'); INSERT INTO `Login` VALUES (1491798619163, 1490420651686, 0, '2017-04-10 04:30:19'); INSERT INTO `Login` VALUES (1491798619164, 1491015049274, 0, '2017-04-10 04:30:21'); INSERT INTO `Login` VALUES (1491798623156, 1491015049274, 0, '2017-04-10 04:30:23'); INSERT INTO `Login` VALUES (1491798623157, 1491798705995, 0, '2017-04-10 04:31:46'); INSERT INTO `Login` VALUES (1491798824157, 1491798705995, 0, '2017-04-10 04:33:44'); INSERT INTO `Login` VALUES (1491830822528, 1491830893899, 0, '2017-04-10 13:28:14'); INSERT INTO `Login` VALUES (1491831356223, 1491830893899, 0, '2017-04-10 13:35:56'); INSERT INTO `Login` VALUES (1491838437130, 1491838521279, 0, '2017-04-10 15:35:21'); INSERT INTO `Login` VALUES (1491838535040, 1491838521279, 0, '2017-04-10 15:35:35'); INSERT INTO `Login` VALUES (1491917352614, 1491728303733, 0, '2017-04-11 13:29:22'); INSERT INTO `Login` VALUES (1491917364596, 1491728303733, 0, '2017-04-11 13:29:24'); INSERT INTO `Login` VALUES (1491917364597, 1491917447333, 0, '2017-04-11 13:30:47'); INSERT INTO `Login` VALUES (1491917916123, 1491917447333, 0, '2017-04-11 13:38:36'); INSERT INTO `Login` VALUES (1492865677465, 82058, 0, '2017-04-22 12:54:45'); INSERT INTO `Login` VALUES (1492865687807, 82058, 0, '2017-04-22 12:54:47'); INSERT INTO `Login` VALUES (1492865687808, 1492866224074, 0, '2017-04-22 13:03:44'); INSERT INTO `Login` VALUES (1492866227861, 1492866224074, 0, '2017-04-22 13:03:47'); INSERT INTO `Login` VALUES (1492866227862, 1492866224074, 0, '2017-04-22 13:03:52'); INSERT INTO `Login` VALUES (1492866235005, 1492866224074, 0, '2017-04-22 13:03:55'); INSERT INTO `Login` VALUES (1492866235006, 1492866322486, 0, '2017-04-22 13:05:22'); INSERT INTO `Login` VALUES (1492866325550, 1492866322486, 0, '2017-04-22 13:05:25'); INSERT INTO `Login` VALUES (1492936150349, 1492936169722, 0, '2017-04-23 08:29:30'); INSERT INTO `Login` VALUES (1492936172897, 1492936169722, 0, '2017-04-23 08:29:32'); INSERT INTO `Login` VALUES (1492936172898, 1492936169722, 0, '2017-04-23 08:33:44'); INSERT INTO `Login` VALUES (1492936427137, 1492936169722, 0, '2017-04-23 08:33:47'); INSERT INTO `Login` VALUES (1492936427138, 1492936169722, 0, '2017-04-23 08:37:29'); INSERT INTO `Login` VALUES (1492936651770, 1492936169722, 0, '2017-04-23 08:37:31'); INSERT INTO `Login` VALUES (1493456282571, 90814, 0, '2017-04-29 08:58:09'); INSERT INTO `Login` VALUES (1493457036233, 90814, 0, '2017-04-29 09:10:36'); INSERT INTO `Login` VALUES (1493480121888, 1490427139175, 0, '2017-04-29 15:35:26'); INSERT INTO `Login` VALUES (1493480129111, 1490427139175, 0, '2017-04-29 15:35:29'); INSERT INTO `Login` VALUES (1493480129112, 1493480142628, 0, '2017-04-29 15:35:42'); INSERT INTO `Login` VALUES (1493480148564, 1493480142628, 0, '2017-04-29 15:35:48'); INSERT INTO `Login` VALUES (1493480148565, 1493480142628, 0, '2017-04-29 15:35:54'); INSERT INTO `Login` VALUES (1493480156757, 1493480142628, 0, '2017-04-29 15:35:56'); INSERT INTO `Login` VALUES (1493480156758, 90814, 0, '2017-04-29 15:36:01'); INSERT INTO `Login` VALUES (1493480162695, 90814, 0, '2017-04-29 15:36:02'); INSERT INTO `Login` VALUES (1493480162696, 93793, 0, '2017-04-29 15:36:06'); INSERT INTO `Login` VALUES (1493480189011, 93793, 0, '2017-04-29 15:36:29'); INSERT INTO `Login` VALUES (1493747501699, 1493747512860, 0, '2017-05-02 17:51:53'); INSERT INTO `Login` VALUES (1493747519493, 1493747512860, 0, '2017-05-02 17:51:59'); INSERT INTO `Login` VALUES (1493747519494, 1493747777770, 0, '2017-05-02 17:56:17'); INSERT INTO `Login` VALUES (1493747780534, 1493747777770, 0, '2017-05-02 17:56:20'); INSERT INTO `Login` VALUES (1493748571679, 1493748594003, 0, '2017-05-02 18:09:54'); INSERT INTO `Login` VALUES (1493748596459, 1493748594003, 0, '2017-05-02 18:09:56'); INSERT INTO `Login` VALUES (1493748596460, 1493748615711, 0, '2017-05-02 18:10:15'); INSERT INTO `Login` VALUES (1493748617966, 1493748615711, 0, '2017-05-02 18:10:17'); INSERT INTO `Login` VALUES (1493748617967, 1493749090643, 0, '2017-05-02 18:18:10'); INSERT INTO `Login` VALUES (1493749100206, 1493749090643, 0, '2017-05-02 18:18:20'); INSERT INTO `Login` VALUES (1493836047659, 1493836043151, 0, '2017-05-03 18:27:27'); INSERT INTO `Login` VALUES (1493836049490, 1493836043151, 0, '2017-05-03 18:27:29'); INSERT INTO `Login` VALUES (1493883116023, 1493883110132, 0, '2017-05-04 07:31:56'); INSERT INTO `Login` VALUES (1493883118007, 1493883110132, 0, '2017-05-04 07:31:58'); INSERT INTO `Login` VALUES (1493890214303, 1493890214167, 0, '2017-05-04 09:30:14'); INSERT INTO `Login` VALUES (1493890216183, 1493890214167, 0, '2017-05-04 09:30:16'); INSERT INTO `Login` VALUES (1493890699755, 1493890303473, 0, '2017-05-04 09:38:19'); INSERT INTO `Login` VALUES (1493890702129, 1493890303473, 0, '2017-05-04 09:38:22'); INSERT INTO `Login` VALUES (1493891565732, 82001, 0, '2017-05-04 09:52:45'); INSERT INTO `Login` VALUES (1493891782837, 82001, 0, '2017-05-04 09:56:22'); INSERT INTO `Login` VALUES (1493891784591, 82002, 0, '2017-05-04 09:56:24'); INSERT INTO `Login` VALUES (1493891793881, 82002, 0, '2017-05-04 09:56:33'); INSERT INTO `Login` VALUES (1493891806372, 38710, 1, '2017-05-04 09:56:46'); COMMIT; -- ---------------------------- -- Table structure for Moment -- ---------------------------- DROP TABLE IF EXISTS `Moment`; CREATE TABLE `Moment` ( `id` bigint(15) NOT NULL COMMENT '唯一标识', `userId` bigint(15) NOT NULL COMMENT '用户id', `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期', `content` varchar(300) DEFAULT NULL COMMENT '内容', `praiseUserIdList` json NOT NULL COMMENT '点赞的用户id列表', `pictureList` json NOT NULL COMMENT '图片列表', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='动态'; -- ---------------------------- -- Records of Moment -- ---------------------------- BEGIN; INSERT INTO `Moment` VALUES (12, 70793, '2017-02-08 08:06:11', 'APIJSON,let interfaces and documents go to hell !', '[70793, 93793, 82044, 82040, 82055, 90814, 38710, 82002, 82006, 1508072105320, 82001]', '[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\", \"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\", \"https://camo.githubusercontent.com/788c0a7e11a4f5aadef3c886f028c79b4808613a/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343932353935372d313732303737333630382e6a7067\", \"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\", \"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\", \"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\", \"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\", \"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\"]'); INSERT INTO `Moment` VALUES (15, 70793, '2017-02-08 08:06:11', 'APIJSON is a JSON Transmission Structure Protocol…', '[82002, 70793, 38710, 93793, 82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (32, 82002, '2017-02-08 08:06:11', NULL, '[38710, 82002, 82001]', '[\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\", \"https://camo.githubusercontent.com/5f5c4e0c4dc539c34e8eae8ac0cbc6dccdfee5d3/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343533333831362d323032373434343231382e6a7067\", \"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]'); INSERT INTO `Moment` VALUES (58, 90814, '2017-02-01 11:14:31', 'This is a Content...-435', '[38710, 82003, 82005, 93793, 82006, 82044, 82001]', '[\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\"]'); INSERT INTO `Moment` VALUES (170, 70793, '2017-02-01 11:14:31', 'This is a Content...-73', '[82044, 82002, 82001]', '[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\", \"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\", \"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]'); INSERT INTO `Moment` VALUES (235, 38710, '2017-02-08 08:06:11', 'APIJSON,let interfaces and documents go to hell !', '[82001]', '[\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\", \"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\"]'); INSERT INTO `Moment` VALUES (301, 93793, '2017-02-01 11:14:31', 'This is a Content...-301', '[38710, 93793, 82003, 82005, 82040, 82055, 82002, 82001]', '[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]'); INSERT INTO `Moment` VALUES (371, 82002, '2017-02-01 11:14:31', 'This is a Content...-371', '[90814, 93793, 82003, 82005, 82006, 82040, 82002, 82001]', '[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\", \"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\", \"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\", \"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\", \"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]'); INSERT INTO `Moment` VALUES (470, 38710, '2017-02-01 11:14:31', 'This is a Content...-470', '[82001]', '[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]'); INSERT INTO `Moment` VALUES (511, 38710, '2017-02-08 08:06:11', NULL, '[70793, 93793, 82001]', '[\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\", \"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\", \"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\", \"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\", \"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\", \"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\"]'); INSERT INTO `Moment` VALUES (543, 93793, '2017-02-08 08:06:11', NULL, '[82001]', '[\"https://camo.githubusercontent.com/5f5c4e0c4dc539c34e8eae8ac0cbc6dccdfee5d3/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343533333831362d323032373434343231382e6a7067\", \"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\", \"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\", \"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\", \"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]'); INSERT INTO `Moment` VALUES (551, 70793, '2017-02-08 08:06:11', 'test', '[82001]', '[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]'); INSERT INTO `Moment` VALUES (595, 38710, '2017-03-05 05:29:19', NULL, '[70793, 82002, 82001]', '[\"http://common.cnblogs.com/images/icon_weibo_24.png\", \"http://static.oschina.net/uploads/user/19/39085_50.jpg\"]'); INSERT INTO `Moment` VALUES (704, 38710, '2017-03-12 09:39:44', 'APIJSON is a JSON Transmission Structure Protocol…', '[82003, 82002, 82001]', '[\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\", \"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\"]'); INSERT INTO `Moment` VALUES (1491200468898, 38710, '2017-04-03 06:21:08', 'APIJSON, let interfaces go to hell!', '[82001]', '[\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\", \"http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000\"]'); INSERT INTO `Moment` VALUES (1493835799335, 38710, '2017-05-03 18:23:19', 'APIJSON is a JSON Transmission Structure Protocol…', '[82002, 82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1508053762227, 82003, '2017-10-15 07:49:22', '我也试试', '[1515565976140, 82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1508072491570, 82002, '2017-10-15 13:01:31', '有点冷~', '[82001, 82002]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1508072633830, 93793, '2017-10-15 13:03:53', '天凉了\n有男朋友的抱男盆友\n有女朋友的抱女朋友\n而我就比较牛逼了\n我不冷。', '[82005, 82002, 70793, 38710, 82045, 82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1508073178489, 82045, '2017-10-15 13:12:58', '发动态', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1512314438990, 38710, '2017-12-03 15:20:38', 'APIJSON iOS-Swift版发布,自动生成请求代码,欢迎使用^_^ \n https://github.com/TommyLemon/APIJSON', '[82001, 82002, 70793, 1512531601485]', '[\"https://images2018.cnblogs.com/blog/660067/201712/660067-20171203231829476-1202860128.jpg\"]'); INSERT INTO `Moment` VALUES (1513094436910, 38710, '2017-12-12 16:00:36', 'APIJSON-Python已发布,欢迎体验^_^\nhttps://github.com/TommyLemon/APIJSON', '[82005, 82001]', '[\"https://raw.githubusercontent.com/TommyLemon/APIJSON/master/picture/APIJSON_Auto_get.jpg\", \"https://raw.githubusercontent.com/TommyLemon/APIJSON/master/picture/APIJSON_Auto_code.jpg\", \"https://raw.githubusercontent.com/TommyLemon/APIJSON/master/picture/APIJSON_Auto_doc.jpg\"]'); INSERT INTO `Moment` VALUES (1514017444961, 82002, '2017-12-23 08:24:04', '123479589679', '[82002, 1520242280259, 82001, 70793, 1524042900591, 1528264711016]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1514858533480, 82056, '2018-01-02 02:02:13', 'I am the Iron Man', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1516086423441, 93793, '2018-01-16 07:07:03', '抢到票了,开心ପ( ˘ᵕ˘ ) ੭ ☆', '[93793, 38710, 82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1520242333325, 1520242280259, '2018-03-05 09:32:13', '法拉利', '[1520242280259, 70793, 82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1523935589834, 1523626157302, '2018-04-17 03:26:29', 'by第一条动态', '[]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1523936332614, 1523626157302, '2018-04-17 03:38:52', 'by第二条', '[82001, 1523935772553]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1524178455305, 1524042900591, '2018-04-19 22:54:15', '早上好啊', '[1524042900591, 38710, 82003, 82001, 1523626157302]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1524298780222, 1524298730523, '2018-04-21 08:19:40', 'e说点什么吧~', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1524826652626, 1524298730523, '2018-04-27 10:57:32', '说点什么吧~哈哈哈', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1527498273102, 1527498229991, '2018-05-28 09:04:33', '说点什么吧~yui', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1527821296110, 1527495857924, '2018-06-01 02:48:16', '这是我的商品1号', '[1527821445610, 82003, 82001]', '[\"http://pic31.nipic.com/20130710/13151003_093759013311_2.jpg\", \"https://cbu01.alicdn.com/img/ibank/2013/514/580/740085415_2101098104.310x310.jpg\"]'); INSERT INTO `Moment` VALUES (1527830331780, 1527495857924, '2018-06-01 05:18:51', '各种购物袋', '[38710, 82002, 1527495857924, 82003]', '[\"https://cbu01.alicdn.com/img/ibank/2018/292/335/8058533292_57202994.310x310.jpg\", \"https://cbu01.alicdn.com/img/ibank/2018/089/747/8586747980_1843977904.310x310.jpg\", \"https://cbu01.alicdn.com/img/ibank/2016/025/123/3012321520_471514049.310x310.jpg\", \"https://cbu01.alicdn.com/img/ibank/2017/729/995/4800599927_69233977.310x310.jpg\", \"https://cbu01.alicdn.com/img/ibank/2016/377/263/3755362773_609022431.310x310.jpg\"]'); INSERT INTO `Moment` VALUES (1527830474378, 1527495857924, '2018-06-01 05:21:14', '电视机', '[1527495857924]', '[\"https://cbu01.alicdn.com/img/ibank/2017/231/077/4524770132_781046171.310x310.jpg\"]'); INSERT INTO `Moment` VALUES (1528251335464, 1528250827953, '2018-06-06 02:15:35', 'meiyou', '[1528250827953]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1528260617722, 1528255497767, '2018-06-06 04:50:17', '。。。。', '[]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1528269822710, 1528264711016, '2018-06-06 07:23:42', 'hhhhhhh', '[1528250827953, 82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1528269988360, 1528250827953, '2018-06-06 07:26:28', '为什么发动态默认会有这两张图片啊?不可以选择自己的图片', '[1528250827953]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1528274037224, 1528250827953, '2018-06-06 08:33:57', '说点什么吧~hgdsryh', '[]', '[\"https://image.baidu.com/search/detail?ct=503316480&z=0&ipn=d&word=%E4%BA%91%E5%8D%97%E9%A3%8E%E6%99%AF%E5%9B%BE%E7%89%87&step_word=&hs=0&pn=0&spn=0&di=163958046450&pi=0&rn=1&tn=baiduimagedetail&is=0%2C0&istype=2&ie=utf-8&oe=utf-8&in=&cl=2&lm=-1&st=-1&cs=1403824732%2C1921310327&os=1571651475%2C3950546936&simid=3426978648%2C550887139&adpicid=0&lpn=0&ln=1985&fr=&fmq=1528273681226_R&fm=result&ic=0&s=undefined&se=&sme=&tab=0&width=&height=&face=undefined&ist=&jit=&cg=&bdtype=0&oriquery=&objurl=http%3A%2F%2Fpic1.win4000.com%2Fwallpaper%2F3%2F57a2a41f57d09.jpg&fromurl=ippr_z2C%24qAzdH3FAzdH3Fooo_z%26e3Botg9aaa_z%26e3Bv54AzdH3Fowssrwrj6_kt2_88an88_8_z%26e3Bip4s&gsm=0&rpstart=0&rpnum=0&islist=&querylist=\", \"https://image.baidu.com/search/detail?ct=503316480&z=0&ipn=d&word=%E4%BA%91%E5%8D%97%E9%A3%8E%E6%99%AF%E5%9B%BE%E7%89%87&step_word=&hs=0&pn=12&spn=0&di=105575240210&pi=0&rn=1&tn=baiduimagedetail&is=0%2C0&istype=2&ie=utf-8&oe=utf-8&in=&cl=2&lm=-1&st=-1&cs=832573604%2C2847830718&os=1862795828%2C1682403963&simid=4268934412%2C608274877&adpicid=0&lpn=0&ln=1985&fr=&fmq=1528273681226_R&fm=result&ic=0&s=undefined&se=&sme=&tab=0&width=&height=&face=undefined&ist=&jit=&cg=&bdtype=0&oriquery=&objurl=http%3A%2F%2Fi0.szhomeimg.com%2FUploadFiles%2FBBS%2F2006%2F08%2F05%2F24752199_79122.91.jpg&fromurl=ippr_z2C%24qAzdH3FAzdH3Fkkf_z%26e3Bfzi54j_z%26e3Bv54AzdH3Fna-ccbaa-1jpwts-d90cd8ll-a-8_z%26e3Bip4s&gsm=0&rpstart=0&rpnum=0&islist=&querylist=\"]'); INSERT INTO `Moment` VALUES (1528356378455, 1528264711016, '2018-06-07 07:26:18', '去旅游嘛~', '[82001]', '[]'); INSERT INTO `Moment` VALUES (1528356421201, 1528264711016, '2018-06-07 07:27:01', '(ง •̀_•́)ง', '[]', '[]'); INSERT INTO `Moment` VALUES (1528356496939, 1528356470041, '2018-06-07 07:28:16', '(๑•ั็ω•็ั๑)', '[]', '[]'); INSERT INTO `Moment` VALUES (1528462217322, 1528339692804, '2018-06-08 12:50:17', '有没有小姐姐准备端午出游的?\n地点:北戴河', '[]', '[\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1531072366455&di=c0d4b15b2c4b70aad49e6ae747f60742&imgtype=0&src=http%3A%2F%2Fpic1.win4000.com%2Fwallpaper%2F3%2F57a2a41f57d09.jpg\", \"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1531072499167&di=5b5621d117edbc5d344a03ba0a6b580b&imgtype=0&src=http%3A%2F%2Fi0.szhomeimg.com%2FUploadFiles%2FBBS%2F2006%2F08%2F05%2F24752199_79122.91.jpg\"]'); INSERT INTO `Moment` VALUES (1528676875139, 1528339692804, '2018-06-11 00:27:55', '123456', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1531062713966, 82002, '2018-07-08 15:11:53', '云南好美啊( ◞˟૩˟)◞', '[82001, 82005, 38710, 70793, 93793, 82003, 1531969715979]', '[\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1531072366455&di=c0d4b15b2c4b70aad49e6ae747f60742&imgtype=0&src=http%3A%2F%2Fpic1.win4000.com%2Fwallpaper%2F3%2F57a2a41f57d09.jpg\", \"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1531072499167&di=5b5621d117edbc5d344a03ba0a6b580b&imgtype=0&src=http%3A%2F%2Fi0.szhomeimg.com%2FUploadFiles%2FBBS%2F2006%2F08%2F05%2F24752199_79122.91.jpg\"]'); INSERT INTO `Moment` VALUES (1531969818357, 1531969715979, '2018-07-19 03:10:18', 'http://q18idc.com', '[1531969715979, 82001, 38710, 1534926301956]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1533908589726, 1533835176109, '2018-08-10 13:43:09', '我的', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1535781636403, 1532188114543, '2018-09-01 06:00:36', '这是一个测试', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1536064087117, 1532188114543, '2018-09-04 12:28:07', '说点什么吧~奥哈达', '[]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1536805585275, 82003, '2018-09-13 02:26:25', 'iPhone Xs发布了,大家怎么看?', '[82002, 82005, 70793, 82003]', '[\"https://pic1.zhimg.com/80/v2-e129b40810070443add1c28e6185c894_hd.jpg\"]'); INSERT INTO `Moment` VALUES (1539868023868, 82001, '2018-10-18 13:07:03', '说点什么吧~3', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1540459349460, 82001, '2018-10-25 09:22:29', '说点什么吧~而你', '[]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1540459361744, 82001, '2018-10-25 09:22:41', '说点什么吧~哦哦', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1540634282433, 82001, '2018-10-27 09:58:02', 'https://gss2.bdstatic.com/-fo3dSag_xI4khGkpoWK1HF6hhy/baike/c0%3Dbaike92%2C5%2C5%2C92%2C30/sign=c31ae7219525bc313f5009ca3fb6e6d4/42a98226cffc1e17646dbede4690f603728de90b.jpg', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1541557989440, 38710, '2018-11-07 02:33:09', '自动化接口和文档 APIJSON 3.0.0 发布\nhttps://www.oschina.net/news/101548/apijson-3-0-released', '[82001]', '[\"https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Auto_get.jpg\"]'); INSERT INTO `Moment` VALUES (1541667920272, 82001, '2018-11-08 09:05:20', '说点什么吧~???', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1541667945772, 82001, '2018-11-08 09:05:45', '说点什么吧~都有', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1541684010904, 82001, '2018-11-08 13:33:30', '说点什么吧~A man can be destroyed but not defeated', '[82002, 38710, 82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1544265482923, 82001, '2018-12-08 10:38:02', 'APIJSON is a JSON Transmission Structure Protocol…', '[82002, 82003, 82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1544276121218, 82001, '2018-12-08 13:35:21', '说点什么吧~ajhs', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1544276216289, 1544276209348, '2018-12-08 13:36:56', '说点什么吧~ey', '[1544276209348]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1544497353863, 82001, '2018-12-11 03:02:33', 'APIJSON,let interfaces and documents go to hell !', '[82001]', '[]'); INSERT INTO `Moment` VALUES (1544497355630, 82001, '2018-12-11 03:02:35', 'APIJSON,let interfaces and documents go to hell !', '[]', '[]'); INSERT INTO `Moment` VALUES (1544537838100, 82001, '2018-12-11 14:17:18', '说点什么吧~logo灭了也可', '[]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1545187924367, 1544503822963, '2018-12-19 02:52:04', '说哼哼唧唧点什么吧~', '[1544503822963, 82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1545490282104, 82001, '2018-12-22 14:51:22', '说点什么吧~apijson', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1545560428650, 82001, '2018-12-23 10:20:28', 'APIJSON,let interfaces and documents go to hell !', '[82001]', '[]'); INSERT INTO `Moment` VALUES (1545564986045, 82003, '2018-12-23 11:36:26', '测试新增动态', '[82001]', '[\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"]'); INSERT INTO `Moment` VALUES (1545819572448, 82002, '2018-12-26 10:19:32', 'APIJSON,let interfaces and documents go to hell !', '[82001]', '[]'); INSERT INTO `Moment` VALUES (1545819572637, 82002, '2018-12-26 10:19:32', '测试新增动态', '[82001]', '[\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"]'); INSERT INTO `Moment` VALUES (1545819752556, 82001, '2018-12-26 10:22:32', '说点什么吧~hello world', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1546934384440, 82001, '2019-01-08 07:59:44', 'APIJSON,let interfaces and documents go to hell !', '[82001]', '[]'); INSERT INTO `Moment` VALUES (1547436860950, 82001, '2019-01-14 03:34:20', '测试新增动态', '[82001]', '[\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"]'); INSERT INTO `Moment` VALUES (1547479596460, 82001, '2019-01-14 15:26:36', 'APIJSON,let interfaces and documents go to hell !', '[82001]', '[]'); INSERT INTO `Moment` VALUES (1547559758939, 82002, '2019-01-15 13:42:38', 'APIJSON,let interfaces and documents go to hell !', '[]', '[]'); INSERT INTO `Moment` VALUES (1548145750536, 82003, '2019-01-22 08:29:10', 'APIJSON,let interfaces and documents go to hell !', '[82001]', '[]'); INSERT INTO `Moment` VALUES (1548145750829, 82003, '2019-01-22 08:29:10', '测试新增动态', '[]', '[\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"]'); INSERT INTO `Moment` VALUES (1548236953106, 82001, '2019-01-23 09:49:13', '{@}', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1548300581350, 82002, '2019-01-24 03:29:41', 'APIJSON,let interfaces and documents go to hell !', '[]', '[]'); INSERT INTO `Moment` VALUES (1548599361342, 82001, '2019-01-27 14:29:21', '说点什么吧~好)不会徐下节课斜挎包', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1548599375288, 82001, '2019-01-27 14:29:35', '说点什么吧~告诉v是v就瞎几把想表达华西坝你撒几哈', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1548822634246, 82002, '2019-01-30 04:30:34', 'APIJSON,let interfaces and documents go to hell !', '[]', '[]'); INSERT INTO `Moment` VALUES (1548822634518, 82002, '2019-01-30 04:30:34', '测试新增动态', '[]', '[\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"]'); INSERT INTO `Moment` VALUES (1549017200628, 82001, '2019-02-01 10:33:20', '说点什么吧~快捷键', '[82001]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]'); INSERT INTO `Moment` VALUES (1549549981723, 82001, '2019-02-07 14:33:09', 'APIJSON,let interfaces and documents go to hell !', '[]', '[]'); INSERT INTO `Moment` VALUES (1549549983315, 82001, '2019-02-07 14:33:10', '测试新增动态', '[]', '[\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"]'); INSERT INTO `Moment` VALUES (1549550007404, 82001, '2019-02-07 14:33:34', 'APIJSON,let interfaces and documents go to hell !', '[]', '[]'); COMMIT; -- ---------------------------- -- Table structure for Praise -- ---------------------------- DROP TABLE IF EXISTS `Praise`; CREATE TABLE `Praise` ( `id` bigint(15) NOT NULL AUTO_INCREMENT COMMENT '动态id', `momentId` bigint(15) NOT NULL COMMENT '唯一标识', `userId` bigint(15) NOT NULL COMMENT '用户id', `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '点赞时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8 COMMENT='如果对Moment写安全要求高,可以将Moment内praiserUserIdList分离到Praise表中,作为userIdList。\n权限注解也改下:\n@MethodAccess(\n PUT = {OWNER, ADMIN}\n )\nclass Moment {\n …\n}\n\n@MethodAccess(\n PUT = {LOGIN, CONTACT, CIRCLE, OWNER, ADMIN}\n )\n class Praise {\n …\n }\n'; -- ---------------------------- -- Records of Praise -- ---------------------------- BEGIN; INSERT INTO `Praise` VALUES (1, 12, 82001, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (2, 15, 82002, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (3, 32, 82003, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (4, 58, 82004, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (5, 170, 82005, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (6, 235, 82006, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (7, 301, 82007, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (8, 371, 82008, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (9, 470, 82009, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (10, 511, 82010, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (11, 543, 82011, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (12, 551, 82012, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (13, 594, 82013, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (14, 595, 82014, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (15, 704, 82015, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (16, 1491200468898, 82016, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (17, 1491277116776, 82017, '2017-11-19 13:02:30'); INSERT INTO `Praise` VALUES (18, 1493835799335, 82018, '2017-11-19 13:02:30'); COMMIT; -- ---------------------------- -- Table structure for Request -- ---------------------------- DROP TABLE IF EXISTS `Request`; CREATE TABLE `Request` ( `id` bigint(15) NOT NULL COMMENT '唯一标识', `version` tinyint(4) NOT NULL DEFAULT '1' COMMENT 'GET,HEAD可用任意结构访问任意开放内容,不需要这个字段。\n其它的操作因为写入了结构和内容,所以都需要,按照不同的version选择对应的structure。\n\n自动化版本管理:\nRequest JSON最外层可以传 “version”:Integer 。\n1.未传或 <= 0,用最新版。 “@order”:”version-“\n2.已传且 > 0,用version以上的可用版本的最低版本。 “@order”:”version+”, “version{}”:”>={version}”', `method` varchar(10) DEFAULT 'GETS' COMMENT '只限于GET,HEAD外的操作方法。', `tag` varchar(20) NOT NULL COMMENT '标签', `structure` json NOT NULL COMMENT '结构。\nTODO 里面的 PUT 改为 UPDATE,避免和请求 PUT 搞混。', `detail` varchar(10000) DEFAULT NULL COMMENT '详细说明', `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='最好编辑完后删除主键,这样就是只读状态,不能随意更改。需要更改就重新加上主键。\n\n每次启动服务器时加载整个表到内存。\n这个表不可省略,model内注解的权限只是客户端能用的,其它可以保证即便服务端代码错误时也不会误删数据。'; -- ---------------------------- -- Records of Request -- ---------------------------- BEGIN; 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'); INSERT INTO `Request` VALUES (2, 1, 'POST', 'Moment', '{\"ADD\": {\"@role\": \"owner\", \"pictureList\": [], \"praiseUserIdList\": []}, \"PUT\": {\"verifyIdList-()\": \"verifyIdList(praiseUserIdList)\", \"verifyURLList-()\": \"verifyURLList(pictureList)\"}, \"DISALLOW\": \"id\"}', 'ADD当没传pictureList和praiseUserIdList时用空数组[]补全,保证不会为null', '2017-02-01 11:19:51'); INSERT INTO `Request` VALUES (3, 1, 'POST', 'Comment', '{\"PUT\": {\"@role\": \"owner\"}, \"DISALLOW\": \"id\", \"NECESSARY\": \"momentId,content\"}', '必须传userId,momentId,content,不允许传id', '2017-02-01 11:19:51'); INSERT INTO `Request` VALUES (4, 1, 'PUT', 'User', '{\"ADD\": {\"@role\": \"owner\"}, \"DISALLOW\": \"phone\", \"NECESSARY\": \"id\"}', '必须传id,不允许传phone。ADD当没传@role时用owner补全', '2017-02-01 11:19:51'); INSERT INTO `Request` VALUES (5, 1, 'DELETE', 'Moment', '{\"Moment\": {\"ADD\": {\"@role\": \"owner\"}, \"PUT\": {\"commentCount()\": \"deleteCommentOfMoment(id)\"}, \"NECESSARY\": \"id\"}}', NULL, '2017-02-01 11:19:51'); INSERT INTO `Request` VALUES (6, 1, 'DELETE', 'Comment', '{\"ADD\": {\"@role\": \"owner\"}, \"PUT\": {\"childCount()\": \"deleteChildComment(id)\"}, \"NECESSARY\": \"id\"}', 'disallow没必要用于DELETE', '2017-02-01 11:19:51'); INSERT INTO `Request` VALUES (8, 1, 'PUT', 'User-phone', '{\"User\": {\"ADD\": {\"@role\": \"owner\"}, \"PUT\": {\"@combine\": \"_password\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,phone,_password\"}}', '! 表示其它所有,这里指necessary所有未包含的字段', '2017-02-01 11:19:51'); INSERT INTO `Request` VALUES (14, 1, 'POST', 'Verify', '{\"DISALLOW\": \"!\", \"NECESSARY\": \"phone,verify\"}', '必须传phone,verify,其它都不允许传', '2017-02-18 14:20:43'); INSERT INTO `Request` VALUES (15, 1, 'GETS', 'Verify', '{\"NECESSARY\": \"phone\"}', '必须传phone', '2017-02-18 14:20:43'); INSERT INTO `Request` VALUES (16, 1, 'HEADS', 'Verify', '{}', '允许任意内容', '2017-02-18 14:20:43'); INSERT INTO `Request` VALUES (17, 1, 'PUT', 'Moment', '{\"DISALLOW\": \"userId,date\", \"NECESSARY\": \"id\"}', NULL, '2017-02-01 11:19:51'); INSERT INTO `Request` VALUES (21, 1, 'HEADS', 'Login', '{\"DISALLOW\": \"!\", \"NECESSARY\": \"userId,type\"}', NULL, '2017-02-18 14:20:43'); INSERT INTO `Request` VALUES (22, 1, 'GETS', 'User', '{}', '允许传任何内容,除了表对象', '2017-02-18 14:20:43'); INSERT INTO `Request` VALUES (23, 1, 'PUT', 'Privacy', '{\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}', 'ADD当没传@role时用owner补全', '2017-02-01 11:19:51'); INSERT INTO `Request` VALUES (25, 1, 'PUT', 'Praise', '{\"NECESSARY\": \"id\"}', '必须传id', '2017-02-01 11:19:51'); INSERT INTO `Request` VALUES (26, 1, 'DELETE', 'Comment[]', '{\"Comment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id{}\"}}', 'DISALLOW没必要用于DELETE', '2017-02-01 11:19:51'); INSERT INTO `Request` VALUES (27, 1, 'PUT', 'Comment[]', '{\"Comment\": {\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id{}\"}}', 'DISALLOW没必要用于DELETE', '2017-02-01 11:19:51'); INSERT INTO `Request` VALUES (28, 1, 'PUT', 'Comment', '{\"ADD\": {\"@role\": \"owner\"}, \"NECESSARY\": \"id\"}', '这里省略了Comment,因为tag就是Comment,Parser.getCorrectRequest会自动补全', '2017-02-01 11:19:51'); INSERT INTO `Request` VALUES (29, 1, 'GETS', 'login', '{\"Privacy\": {\"DISALLOW\": \"id\", \"NECESSARY\": \"phone,_password\"}}', NULL, '2017-10-15 10:04:52'); INSERT INTO `Request` VALUES (30, 1, 'PUT', 'balance+', '{\"Privacy\": {\"VERIFY\": {\"balance+&{}\": \">=1,<=100000\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id,balance+\"}}', '验证balance+对应的值是否满足>=1且<=100000', '2017-10-21 08:48:34'); INSERT INTO `Request` VALUES (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'); INSERT INTO `Request` VALUES (32, 2, 'GETS', 'Privacy', '{\"ADD\": {\"@role\": \"owner\"}, \"DISALLOW\": \"_password,_payPassword\", \"NECESSARY\": \"id\"}', NULL, '2017-06-12 16:05:51'); INSERT INTO `Request` VALUES (33, 2, 'GETS', 'Privacy-CIRCLE', '{\"Privacy\": {\"PUT\": {\"@role\": \"CIRCLE\", \"@column\": \"phone\"}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id\"}}', NULL, '2017-06-12 16:05:51'); INSERT INTO `Request` VALUES (35, 2, 'POST', 'Document', '{\"DISALLOW\": \"id\", \"NECESSARY\": \"userId,name,url,request\"}', NULL, '2017-11-26 08:34:41'); INSERT INTO `Request` VALUES (36, 2, 'PUT', 'Document', '{\"DISALLOW\": \"userId\", \"NECESSARY\": \"id\"}', NULL, '2017-11-26 08:35:15'); INSERT INTO `Request` VALUES (37, 2, 'DELETE', 'Document', '{\"ADD\": {\"@role\": \"owner\"}, \"PUT\": {\"TestRecord\": {\"@role\": \"owner\", \"documentId@\": \"Document/id\"}}, \"DISALLOW\": \"!\", \"NECESSARY\": \"id\"}', NULL, '2017-11-26 00:36:20'); INSERT INTO `Request` VALUES (38, 2, 'POST', 'TestRecord', '{\"DISALLOW\": \"id\", \"NECESSARY\": \"userId,documentId,response\"}', NULL, '2018-06-16 23:44:36'); COMMIT; -- ---------------------------- -- Table structure for Response -- ---------------------------- DROP TABLE IF EXISTS `Response`; CREATE TABLE `Response` ( `id` bigint(15) NOT NULL COMMENT '唯一标识', `method` varchar(10) DEFAULT 'GET' COMMENT '方法', `model` varchar(20) NOT NULL COMMENT '表名,table是SQL关键词不能用', `structure` json NOT NULL COMMENT '结构', `detail` varchar(10000) DEFAULT NULL COMMENT '详细说明', `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期', PRIMARY KEY (`id`), UNIQUE KEY `id_UNIQUE` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='每次启动服务器时加载整个表到内存。'; -- ---------------------------- -- Records of Response -- ---------------------------- BEGIN; INSERT INTO `Response` VALUES (1, 'GET', 'User', '{\"put\": {\"extra\": \"Response works! Test:He(She) is lazy and wrote nothing here\"}, \"remove\": \"phone\"}', NULL, '2017-05-22 12:36:47'); INSERT INTO `Response` VALUES (2, 'DELETE', 'Comment', '{\"remove\": \"Comment:child\"}', NULL, '2017-05-03 17:51:26'); INSERT INTO `Response` VALUES (3, 'DELETE', 'Moment', '{\"remove\": \"Comment\"}', NULL, '2017-05-03 17:51:26'); COMMIT; -- ---------------------------- -- Table structure for Test -- ---------------------------- DROP TABLE IF EXISTS `Test`; CREATE TABLE `Test` ( `id` tinyint(2) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='测试及验证用的表,可以用 SELECT condition替代 SELECT * FROM Test WHERE condition,这样就不需要这张表了'; -- ---------------------------- -- Records of Test -- ---------------------------- BEGIN; INSERT INTO `Test` VALUES (1); COMMIT; -- ---------------------------- -- Table structure for TestRecord -- ---------------------------- DROP TABLE IF EXISTS `TestRecord`; CREATE TABLE `TestRecord` ( `id` bigint(15) NOT NULL COMMENT '唯一标识', `userId` bigint(15) NOT NULL COMMENT '用户id', `documentId` bigint(15) NOT NULL COMMENT '测试用例文档id', `response` text NOT NULL COMMENT '接口返回结果JSON', `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期', `compare` text COMMENT '对比结果', `standard` text COMMENT 'response 的校验标准,是一个 JSON 格式的 AST ,描述了正确 Response 的结构、里面的字段名称、类型、长度、取值范围 等属性。', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='测试记录\n主要用于保存自动化接口回归测试'; -- ---------------------------- -- Records of TestRecord -- ---------------------------- BEGIN; INSERT INTO `TestRecord` VALUES (1520087199083, 82001, 1519526273822, '{\"[]\":[{\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82003,\"sex\":1,\"name\":\"Wechat\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82005,\"sex\":1,\"name\":\"Jan\",\"tag\":\"AG\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82006,\"sex\":1,\"name\":\"Meria\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82021,\"sex\":1,\"name\":\"Tommy\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82025,\"sex\":1,\"name\":\"Tommy\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82028,\"sex\":1,\"name\":\"gaeg\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82030,\"sex\":1,\"name\":\"Fun\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82033,\"sex\":1,\"name\":\"GAS\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82034,\"sex\":1,\"name\":\"Jump\",\"head\":\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82035,\"sex\":1,\"name\":\"Tab\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82039,\"sex\":1,\"name\":\"Everyday\",\"head\":\"http://common.cnblogs.com/images/icon_weibo_24.png\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-19 21:57:56.0\"}},{\"User\":{\"id\":82040,\"sex\":1,\"name\":\"Dream\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793],\"pictureList\":[],\"date\":\"2017-03-03 00:44:26.0\"}},{\"User\":{\"id\":82042,\"sex\":1,\"name\":\"Why\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-04 18:04:33.0\"}},{\"User\":{\"id\":82044,\"sex\":1,\"name\":\"Love\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82006],\"pictureList\":[],\"date\":\"2017-03-04 18:20:27.0\"}},{\"User\":{\"id\":82055,\"sex\":1,\"name\":\"Solid\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[38710,82002],\"pictureList\":[],\"date\":\"2017-03-11 23:04:00.0\"}},{\"User\":{\"id\":82056,\"sex\":1,\"name\":\"IronMan\",\"head\":\"http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-11 23:32:25.0\"}},{\"User\":{\"id\":82059,\"sex\":1,\"name\":\"He&She\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-19 22:49:15.0\"}},{\"User\":{\"id\":82060,\"sex\":1,\"name\":\"Anyway~\",\"head\":\"http://static.oschina.net/uploads/user/1/3064_50.jpg?t=1449566001000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 22:10:18.0\"}},{\"User\":{\"id\":1490109742863,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 23:22:22.0\"}},{\"User\":{\"id\":1490420651686,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793],\"pictureList\":[],\"date\":\"2017-03-25 13:44:11.0\"}},{\"User\":{\"id\":1490973670928,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793,93793],\"pictureList\":[],\"date\":\"2017-03-31 23:21:10.0\"}},{\"User\":{\"id\":1508072105320,\"sex\":1,\"name\":\"周吴郑王\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-15 20:55:05.0\"}}],\"code\":200,\"msg\":\"success\"}', '2018-03-03 14:26:39', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520087202299, 82001, 1519368532249, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":21927.05},\"code\":200,\"msg\":\"success\"}', '2018-03-03 14:26:42', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520087205329, 82001, 1511969630372, '{\"Comment\":{\"code\":200,\"msg\":\"success\",\"id\":1520087181598,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-03-03 14:26:45', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520088798322, 82001, 1519526273822, '{\"Document[]\":[{\"id\":1519526273822,\"userId\":82001,\"version\":2,\"compare\":2,\"name\":\"gets请求\",\"url\":\"/gets\",\"request\":\"{\n \"Privacy\": {\n \"id\": 82001\n },\n \"tag\": \"Privacy\"\n}\",\"date\":\"2018-02-25 10:37:53.0\"},{\"id\":1519368532249,\"userId\":82001,\"version\":2,\"compare\":1,\"name\":\"login请求\",\"url\":\"/login\",\"request\":\"{\n \"type\": 0,\n \"phone\": \"13000082001\",\n \"password\": \"<PASSWORD>\",\n \"version\": 1\n}\",\"date\":\"2018-02-23 14:48:52.0\"},{\"id\":1516325614520,\"userId\":82001,\"version\":2,\"compare\":0,\"name\":\"get请求\",\"url\":\"/get\",\"request\":\" {\n \"[]\":{\n \"User\":{\n \"sex\":1\n }\n }\n }\n \",\"date\":\"2018-01-19 09:33:34.0\"},{\"id\":1511963330795,\"userId\":0,\"version\":2,\"compare\":0,\"name\":\"获取文档列表(即在线解析网页上的共享)-API调用方式\",\"url\":\"/get\",\"request\":\"{\n \"Document[]\": {\n \"Document\": {\n \"@role\": \"login\",\n \"@order\": \"version-,date-\"\n }\n }\n}\",\"date\":\"2017-11-29 21:48:50.0\"},{\"id\":1512216131855,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取文档列表(即在线解析网页上的文档)-表和字段、请求格式限制\",\"url\":\"/get\",\"request\":\"{\n \"[]\": {\n \"Table\": {\n \"TABLE_SCHEMA\": \"sys\",\n \"TABLE_TYPE\": \"BASE TABLE\",\n \"TABLE_NAME!$\": [\n \"\\\\_%\",\n \"sys\\\\_%\",\n \"system\\\\_%\"\n ],\n \"@order\": \"TABLE_NAME+\",\n \"@column\": \"TABLE_NAME,TABLE_COMMENT\"\n },\n \"Column[]\": {\n \"Column\": {\n \"TABLE_NAME@\": \"[]/Table/TABLE_NAME\",\n \"@column\": \"COLUMN_NAME,COLUMN_TYPE,IS_NULLABLE,COLUMN_COMMENT\"\n }\n }\n },\n \"Request[]\": {\n \"Request\": {\n \"@order\": \"version-,method-\"\n }\n }\n}\",\"date\":\"2017-12-02 20:02:11.0\"},{\"id\":1511970224333,\"userId\":0,\"version\":1,\"compare\":3,\"name\":\"修改用户信息\",\"url\":\"/put\",\"request\":\"{\n \"User\": {\n \"id\": 82001,\n \"name\": \"测试改名\"\n },\n \"tag\": \"User\"\n}\",\"date\":\"2017-11-29 23:43:44.0\"},{\"id\":1511970009072,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"新增动态\",\"url\":\"/post\",\"request\":\"{\n \"Moment\": {\n \"userId\": 82001,\n \"content\": \"测试新增动态\",\n \"pictureList\": [\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"\n ]\n },\n \"tag\": \"Moment\"\n}\",\"date\":\"2017-11-29 23:40:09.0\"},{\"id\":1511969630372,\"userId\":0,\"version\":1,\"compare\":4,\"name\":\"新增评论\",\"url\":\"/post\",\"request\":\"{\n \"Comment\": {\n \"userId\": 82001,\n \"momentId\": 15,\n \"content\": \"测试新增评论\"\n },\n \"tag\": \"Comment\"\n}\",\"date\":\"2017-11-29 23:33:50.0\"},{\"id\":1511969417633,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"点赞/取消点赞\",\"url\":\"/put\",\"request\":\"{\n \"Moment\": {\n \"id\": 15,\n \"praiseUserIdList-\": [\n 82001\n ]\n },\n \"tag\": \"Moment\"\n}\",\"date\":\"2017-11-29 23:30:17.0\"},{\"id\":1511969181104,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"添加朋友\",\"url\":\"/put\",\"request\":\"{\n \"User\": {\n \"id\": 82001,\n \"contactIdList+\": [93793]\n },\n \"tag\": \"User\"\n}\",\"date\":\"2017-11-29 23:26:21.0\"},{\"id\":1511967853340,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取动态列表Moment+User+User:parise[]+Comment[]\",\"url\":\"/get\",\"request\":\"{\n \"[]\": {\n \"count\": 5,\n \"page\": 0,\n \"Moment\": {\n \"@order\": \"date-\"\n },\n \"User\": {\n \"id@\": \"/Moment/userId\",\n \"@column\": \"id,name,head\"\n },\n \"User[]\": {\n \"count\": 10,\n \"User\": {\n \"id{}@\": \"[]/Moment/praiseUserIdList\",\n \"@column\": \"id,name\"\n }\n },\n \"[]\": {\n \"count\": 6,\n \"Comment\": {\n \"@order\": \"date+\",\n \"momentId@\": \"[]/Moment/id\"\n },\n \"User\": {\n \"id@\": \"/Comment/userId\",\n \"@column\": \"id,name\"\n }\n }\n }\n}\",\"date\":\"2017-11-29 23:04:13.0\"},{\"id\":1511964176689,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取评论列表-动态详情页Comment+User\",\"url\":\"/get\",\"request\":\"{\n \"[]\": {\n \"count\": 20,\n \"page\": 0,\n \"Comment\": {\n \"@order\": \"date+\",\n \"momentId\": 15\n },\n \"User\": {\n \"id@\": \"/Comment/userId\",\n \"@column\": \"id,name,head\"\n }\n }\n}\",\"date\":\"2017-11-29 22:02:56.0\"},{\"id\":1511963990072,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取动态Moment+User+praiseUserList\",\"url\":\"/get\",\"request\":\"{\n \"Moment\": {\n \"id\": 15\n },\n \"User\": {\n \"id@\": \"Moment/userId\",\n \"@column\": \"id,name,head\"\n },\n \"User[]\": {\n \"count\": 10,\n \"User\": {\n \"id{}@\": \"Moment/praiseUserIdList\",\n \"@column\": \"id,name\"\n }\n }\n}\",\"date\":\"2017-11-29 21:59:50.0\"},{\"id\":1511963722970,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取用户列表(\"id{}\":contactIdList)-朋友页\",\"url\":\"/get\",\"request\":\"{\n \"User[]\": {\n \"count\": 10,\n \"page\": 0,\n \"User\": {\n \"@column\": \"id,sex,name,tag,head\",\n \"@order\": \"name+\",\n \"id{}\": [\n 82002,\n 82004,\n 70793\n ]\n }\n }\n}\",\"date\":\"2017-11-29 21:55:22.0\"},{\"id\":1511963677325,\"userId\":0,\"version\":1,\"compare\":1,\"name\":\"获取用户\",\"url\":\"/get\",\"request\":\"{\"User\": {\"id\": 82001}}\",\"date\":\"2017-11-29 21:54:37.0\"},{\"id\":1511796882184,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"充值(需要支付密码)/提现\",\"url\":\"/put/balance\",\"request\":\"{\"tag\": \"Privacy\", \"Privacy\": {\"id\": 82001, \"balance+\": 100.15, \"_payPassword\": \"<PASSWORD>\"}}\",\"date\":\"2017-11-27 23:34:42.0\"},{\"id\":1511796589079,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"修改登录密码(先获取验证码type:2)-手机号+验证码\",\"url\":\"/put/password\",\"request\":\"{\"verify\": \"10322\", \"Privacy\": {\"phone\": \"13000082001\", \"_password\": \"<PASSWORD>\"}}\",\"date\":\"2017-11-27 23:29:49.0\"},{\"id\":1511796208670,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"检查验证码是否存在\",\"url\":\"/heads/verify\",\"request\":\"{\"type\": 0, \"phone\": \"13000082001\"}\",\"date\":\"2017-11-27 23:23:28.0\"},{\"id\":1511796155277,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取验证码\",\"url\":\"/post/verify\",\"request\":\"{\"type\": 0, \"phone\": \"13000082001\"}\",\"date\":\"2017-11-27 23:22:35.0\"},{\"id\":3,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"退出登录\",\"url\":\"/logout\",\"request\":\"{}\",\"date\":\"2017-11-26 17:56:10.0\"},{\"id\":1511689914599,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取用户隐私信息\",\"url\":\"/gets\",\"request\":\"{\"tag\": \"Privacy\", \"Privacy\": {\"id\": 82001}}\",\"date\":\"2017-11-26 17:51:54.0\"},{\"id\":1,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"登录\",\"url\":\"/login\",\"request\":\"{\"type\": 0, \"phone\": \"13000082001\", \"version\": 1, \"password\": \"<PASSWORD>\"}\",\"date\":\"2017-11-26 15:35:19.0\"},{\"id\":2,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"注册(先获取验证码type:1)\",\"url\":\"/register\",\"request\":\"{\n \"Privacy\": {\n \"phone\": \"13000083333\",\n \"_password\": \"<PASSWORD>\"\n },\n \"User\": {\n \"name\": \"APIJSONUser\"\n },\n \"verify\": \"6840\"\n}\"}],\"code\":200,\"msg\":\"success\"}', '2018-03-03 14:53:18', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520088802486, 82001, 1511970224333, '{\"Comment\":{\"code\":200,\"msg\":\"success\",\"id\":1520088770429,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-03-03 14:53:22', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520088813403, 82001, 1511969630372, '{\"Moment\":{\"id\":15,\"praiseUserIdList-\":[82001]},\"code\":417,\"msg\":\"PUT Moment, praiseUserIdList:82001 不存在!\"}', '2018-03-03 14:53:33', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520088985525, 82001, 1511963677325, '{\"code\":412,\"msg\":\"手机号或验证码错误!\"}', '2018-03-03 14:56:25', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520089316891, 82001, 1519368532249, '{\"User\":{\"code\":200,\"msg\":\"success\",\"id\":82001,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:01:56', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520089324108, 82001, 1511970224333, '{\"Comment\":{\"code\":200,\"msg\":\"success\",\"id\":1520089307634,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:02:04', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520089326569, 82001, 1511969630372, '{\"[]\":[{\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82003,\"sex\":1,\"name\":\"Wechat\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82005,\"sex\":1,\"name\":\"Jan\",\"tag\":\"AG\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82006,\"sex\":1,\"name\":\"Meria\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82021,\"sex\":1,\"name\":\"Tommy\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82025,\"sex\":1,\"name\":\"Tommy\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82028,\"sex\":1,\"name\":\"gaeg\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82030,\"sex\":1,\"name\":\"Fun\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82033,\"sex\":1,\"name\":\"GAS\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82034,\"sex\":1,\"name\":\"Jump\",\"head\":\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82035,\"sex\":1,\"name\":\"Tab\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82039,\"sex\":1,\"name\":\"Everyday\",\"head\":\"http://common.cnblogs.com/images/icon_weibo_24.png\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-19 21:57:56.0\"}},{\"User\":{\"id\":82040,\"sex\":1,\"name\":\"Dream\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793],\"pictureList\":[],\"date\":\"2017-03-03 00:44:26.0\"}},{\"User\":{\"id\":82042,\"sex\":1,\"name\":\"Why\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-04 18:04:33.0\"}},{\"User\":{\"id\":82044,\"sex\":1,\"name\":\"Love\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82006],\"pictureList\":[],\"date\":\"2017-03-04 18:20:27.0\"}},{\"User\":{\"id\":82055,\"sex\":1,\"name\":\"Solid\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[38710,82002],\"pictureList\":[],\"date\":\"2017-03-11 23:04:00.0\"}},{\"User\":{\"id\":82056,\"sex\":1,\"name\":\"IronMan\",\"head\":\"http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-11 23:32:25.0\"}},{\"User\":{\"id\":82059,\"sex\":1,\"name\":\"He&She\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-19 22:49:15.0\"}},{\"User\":{\"id\":82060,\"sex\":1,\"name\":\"Anyway~\",\"head\":\"http://static.oschina.net/uploads/user/1/3064_50.jpg?t=1449566001000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 22:10:18.0\"}},{\"User\":{\"id\":1490109742863,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 23:22:22.0\"}},{\"User\":{\"id\":1490420651686,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793],\"pictureList\":[],\"date\":\"2017-03-25 13:44:11.0\"}},{\"User\":{\"id\":1490973670928,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793,93793],\"pictureList\":[],\"date\":\"2017-03-31 23:21:10.0\"}},{\"User\":{\"id\":1508072105320,\"sex\":1,\"name\":\"周吴郑王\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-15 20:55:05.0\"}}],\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:02:06', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520089328891, 82001, 1511963677325, '{\"code\":412,\"msg\":\"手机号或验证码错误!\"}', '2018-03-03 15:02:08', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520089695229, 82001, 2, '{\"Document[]\":[{\"id\":1519526273822,\"userId\":82001,\"version\":2,\"name\":\"gets请求\",\"url\":\"/gets\",\"request\":\"{\n \"Privacy\": {\n \"id\": 82001\n },\n \"tag\": \"Privacy\"\n}\",\"response\":\"{\"Document[]\":[{\"id\":1519526273822,\"userId\":82001,\"version\":2,\"compare\":2,\"name\":\"gets请求\",\"url\":\"/gets\",\"request\":\"{\n \"Privacy\": {\n \"id\": 82001\n },\n \"tag\": \"Privacy\"\n}\",\"date\":\"2018-02-25 10:37:53.0\"},{\"id\":1519368532249,\"userId\":82001,\"version\":2,\"compare\":1,\"name\":\"login请求\",\"url\":\"/login\",\"request\":\"{\n \"type\": 0,\n \"phone\": \"13000082001\",\n \"password\": \"<PASSWORD>\",\n \"version\": 1\n}\",\"date\":\"2018-02-23 14:48:52.0\"},{\"id\":1516325614520,\"userId\":82001,\"version\":2,\"compare\":0,\"name\":\"get请求\",\"url\":\"/get\",\"request\":\" {\n \"[]\":{\n \"User\":{\n \"sex\":1\n }\n }\n }\n \",\"date\":\"2018-01-19 09:33:34.0\"},{\"id\":1511963330795,\"userId\":0,\"version\":2,\"compare\":0,\"name\":\"获取文档列表(即在线解析网页上的共享)-API调用方式\",\"url\":\"/get\",\"request\":\"{\n \"Document[]\": {\n \"Document\": {\n \"@role\": \"login\",\n \"@order\": \"version-,date-\"\n }\n }\n}\",\"date\":\"2017-11-29 21:48:50.0\"},{\"id\":1512216131855,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取文档列表(即在线解析网页上的文档)-表和字段、请求格式限制\",\"url\":\"/get\",\"request\":\"{\n \"[]\": {\n \"Table\": {\n \"TABLE_SCHEMA\": \"sys\",\n \"TABLE_TYPE\": \"BASE TABLE\",\n \"TABLE_NAME!$\": [\n \"\\\\_%\",\n \"sys\\\\_%\",\n \"system\\\\_%\"\n ],\n \"@order\": \"TABLE_NAME+\",\n \"@column\": \"TABLE_NAME,TABLE_COMMENT\"\n },\n \"Column[]\": {\n \"Column\": {\n \"TABLE_NAME@\": \"[]/Table/TABLE_NAME\",\n \"@column\": \"COLUMN_NAME,COLUMN_TYPE,IS_NULLABLE,COLUMN_COMMENT\"\n }\n }\n },\n \"Request[]\": {\n \"Request\": {\n \"@order\": \"version-,method-\"\n }\n }\n}\",\"date\":\"2017-12-02 20:02:11.0\"},{\"id\":1511970224333,\"userId\":0,\"version\":1,\"compare\":3,\"name\":\"修改用户信息\",\"url\":\"/put\",\"request\":\"{\n \"User\": {\n \"id\": 82001,\n \"name\": \"测试改名\"\n },\n \"tag\": \"User\"\n}\",\"date\":\"2017-11-29 23:43:44.0\"},{\"id\":1511970009072,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"新增动态\",\"url\":\"/post\",\"request\":\"{\n \"Moment\": {\n \"userId\": 82001,\n \"content\": \"测试新增动态\",\n \"pictureList\": [\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"\n ]\n },\n \"tag\": \"Moment\"\n}\",\"date\":\"2017-11-29 23:40:09.0\"},{\"id\":1511969630372,\"userId\":0,\"version\":1,\"compare\":4,\"name\":\"新增评论\",\"url\":\"/post\",\"request\":\"{\n \"Comment\": {\n \"userId\": 82001,\n \"momentId\": 15,\n \"content\": \"测试新增评论\"\n },\n \"tag\": \"Comment\"\n}\",\"date\":\"2017-11-29 23:33:50.0\"},{\"id\":1511969417633,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"点赞/取消点赞\",\"url\":\"/put\",\"request\":\"{\n \"Moment\": {\n \"id\": 15,\n \"praiseUserIdList-\": [\n 82001\n ]\n },\n \"tag\": \"Moment\"\n}\",\"date\":\"2017-11-29 23:30:17.0\"},{\"id\":1511969181104,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"添加朋友\",\"url\":\"/put\",\"request\":\"{\n \"User\": {\n \"id\": 82001,\n \"contactIdList+\": [93793]\n },\n \"tag\": \"User\"\n}\",\"date\":\"2017-11-29 23:26:21.0\"},{\"id\":1511967853340,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取动态列表Moment+User+User:parise[]+Comment[]\",\"url\":\"/get\",\"request\":\"{\n \"[]\": {\n \"count\": 5,\n \"page\": 0,\n \"Moment\": {\n \"@order\": \"date-\"\n },\n \"User\": {\n \"id@\": \"/Moment/userId\",\n \"@column\": \"id,name,head\"\n },\n \"User[]\": {\n \"count\": 10,\n \"User\": {\n \"id{}@\": \"[]/Moment/praiseUserIdList\",\n \"@column\": \"id,name\"\n }\n },\n \"[]\": {\n \"count\": 6,\n \"Comment\": {\n \"@order\": \"date+\",\n \"momentId@\": \"[]/Moment/id\"\n },\n \"User\": {\n \"id@\": \"/Comment/userId\",\n \"@column\": \"id,name\"\n }\n }\n }\n}\",\"date\":\"2017-11-29 23:04:13.0\"},{\"id\":1511964176689,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取评论列表-动态详情页Comment+User\",\"url\":\"/get\",\"request\":\"{\n \"[]\": {\n \"count\": 20,\n \"page\": 0,\n \"Comment\": {\n \"@order\": \"date+\",\n \"momentId\": 15\n },\n \"User\": {\n \"id@\": \"/Comment/userId\",\n \"@column\": \"id,name,head\"\n }\n }\n}\",\"date\":\"2017-11-29 22:02:56.0\"},{\"id\":1511963990072,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取动态Moment+User+praiseUserList\",\"url\":\"/get\",\"request\":\"{\n \"Moment\": {\n \"id\": 15\n },\n \"User\": {\n \"id@\": \"Moment/userId\",\n \"@column\": \"id,name,head\"\n },\n \"User[]\": {\n \"count\": 10,\n \"User\": {\n \"id{}@\": \"Moment/praiseUserIdList\",\n \"@column\": \"id,name\"\n }\n }\n}\",\"date\":\"2017-11-29 21:59:50.0\"},{\"id\":1511963722970,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取用户列表(\"id{}\":contactIdList)-朋友页\",\"url\":\"/get\",\"request\":\"{\n \"User[]\": {\n \"count\": 10,\n \"page\": 0,\n \"User\": {\n \"@column\": \"id,sex,name,tag,head\",\n \"@order\": \"name+\",\n \"id{}\": [\n 82002,\n 82004,\n 70793\n ]\n }\n }\n}\",\"date\":\"2017-11-29 21:55:22.0\"},{\"id\":1511963677325,\"userId\":0,\"version\":1,\"compare\":1,\"name\":\"获取用户\",\"url\":\"/get\",\"request\":\"{\"User\": {\"id\": 82001}}\",\"date\":\"2017-11-29 21:54:37.0\"},{\"id\":1511796882184,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"充值(需要支付密码)/提现\",\"url\":\"/put/balance\",\"request\":\"{\"tag\": \"Privacy\", \"Privacy\": {\"id\": 82001, \"balance+\": 100.15, \"_payPassword\": \"<PASSWORD>\"}}\",\"date\":\"2017-11-27 23:34:42.0\"},{\"id\":1511796589079,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"修改登录密码(先获取验证码type:2)-手机号+验证码\",\"url\":\"/put/password\",\"request\":\"{\"verify\": \"10322\", \"Privacy\": {\"phone\": \"13000082001\", \"_password\": \"<PASSWORD>\"}}\",\"date\":\"2017-11-27 23:29:49.0\"},{\"id\":1511796208670,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"检查验证码是否存在\",\"url\":\"/heads/verify\",\"request\":\"{\"type\": 0, \"phone\": \"13000082001\"}\",\"date\":\"2017-11-27 23:23:28.0\"},{\"id\":1511796155277,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取验证码\",\"url\":\"/post/verify\",\"request\":\"{\"type\": 0, \"phone\": \"13000082001\"}\",\"date\":\"2017-11-27 23:22:35.0\"},{\"id\":3,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"退出登录\",\"url\":\"/logout\",\"request\":\"{}\",\"date\":\"2017-11-26 17:56:10.0\"},{\"id\":1511689914599,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"获取用户隐私信息\",\"url\":\"/gets\",\"request\":\"{\"tag\": \"Privacy\", \"Privacy\": {\"id\": 82001}}\",\"date\":\"2017-11-26 17:51:54.0\"},{\"id\":1,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"登录\",\"url\":\"/login\",\"request\":\"{\"type\": 0, \"phone\": \"13000082001\", \"version\": 1, \"password\": \"<PASSWORD>\"}\",\"date\":\"2017-11-26 15:35:19.0\"},{\"id\":2,\"userId\":0,\"version\":1,\"compare\":0,\"name\":\"注册(先获取验证码type:1)\",\"url\":\"/register\",\"request\":\"{\n \"Privacy\": {\n \"phone\": \"13000083333\",\n \"_password\": \"<PASSWORD>\"\n },\n \"User\": {\n \"name\": \"APIJSONUser\"\n },\n \"verify\": \"6840\"\n}\"}],\"code\":200,\"msg\":\"success\"}\",\"date\":\"2018-02-25 10:37:53.0\"},{\"id\":1519368532249,\"userId\":82001,\"version\":2,\"name\":\"login请求\",\"url\":\"/login\",\"request\":\"{\n \"type\": 0,\n \"phone\": \"13000082001\",\n \"password\": \"<PASSWORD>\",\n \"version\": 1\n}\",\"response\":\"{\"User\":{\"code\":200,\"msg\":\"success\",\"id\":82001,\"count\":1},\"code\":200,\"msg\":\"success\"}\",\"date\":\"2018-02-23 14:48:52.0\"},{\"id\":1516325614520,\"userId\":82001,\"version\":2,\"name\":\"get请求\",\"url\":\"/get\",\"request\":\" {\n \"[]\":{\n \"User\":{\n \"sex\":1\n }\n }\n }\n \",\"date\":\"2018-01-19 09:33:34.0\"},{\"id\":1511963330795,\"userId\":0,\"version\":2,\"name\":\"获取文档列表(即在线解析网页上的共享)-API调用方式\",\"url\":\"/get\",\"request\":\"{\n \"Document[]\": {\n \"Document\": {\n \"@role\": \"login\",\n \"@order\": \"version-,date-\"\n }\n }\n}\",\"date\":\"2017-11-29 21:48:50.0\"},{\"id\":1512216131855,\"userId\":0,\"version\":1,\"name\":\"获取文档列表(即在线解析网页上的文档)-表和字段、请求格式限制\",\"url\":\"/get\",\"request\":\"{\n \"[]\": {\n \"Table\": {\n \"TABLE_SCHEMA\": \"sys\",\n \"TABLE_TYPE\": \"BASE TABLE\",\n \"TABLE_NAME!$\": [\n \"\\\\_%\",\n \"sys\\\\_%\",\n \"system\\\\_%\"\n ],\n \"@order\": \"TABLE_NAME+\",\n \"@column\": \"TABLE_NAME,TABLE_COMMENT\"\n },\n \"Column[]\": {\n \"Column\": {\n \"TABLE_NAME@\": \"[]/Table/TABLE_NAME\",\n \"@column\": \"COLUMN_NAME,COLUMN_TYPE,IS_NULLABLE,COLUMN_COMMENT\"\n }\n }\n },\n \"Request[]\": {\n \"Request\": {\n \"@order\": \"version-,method-\"\n }\n }\n}\",\"date\":\"2017-12-02 20:02:11.0\"},{\"id\":1511970224333,\"userId\":0,\"version\":1,\"name\":\"修改用户信息\",\"url\":\"/put\",\"request\":\"{\n \"User\": {\n \"id\": 82001,\n \"name\": \"测试改名\"\n },\n \"tag\": \"User\"\n}\",\"date\":\"2017-11-29 23:43:44.0\"},{\"id\":1511970009072,\"userId\":0,\"version\":1,\"name\":\"新增动态\",\"url\":\"/post\",\"request\":\"{\n \"Moment\": {\n \"userId\": 82001,\n \"content\": \"测试新增动态\",\n \"pictureList\": [\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"\n ]\n },\n \"tag\": \"Moment\"\n}\",\"date\":\"2017-11-29 23:40:09.0\"},{\"id\":1511969630372,\"userId\":0,\"version\":1,\"name\":\"新增评论\",\"url\":\"/post\",\"request\":\"{\n \"Comment\": {\n \"userId\": 82001,\n \"momentId\": 15,\n \"content\": \"测试新增评论\"\n },\n \"tag\": \"Comment\"\n}\",\"date\":\"2017-11-29 23:33:50.0\"},{\"id\":1511969417633,\"userId\":0,\"version\":1,\"name\":\"点赞/取消点赞\",\"url\":\"/put\",\"request\":\"{\n \"Moment\": {\n \"id\": 15,\n \"praiseUserIdList-\": [\n 82001\n ]\n },\n \"tag\": \"Moment\"\n}\",\"date\":\"2017-11-29 23:30:17.0\"},{\"id\":1511969181104,\"userId\":0,\"version\":1,\"name\":\"添加朋友\",\"url\":\"/put\",\"request\":\"{\n \"User\": {\n \"id\": 82001,\n \"contactIdList+\": [93793]\n },\n \"tag\": \"User\"\n}\",\"date\":\"2017-11-29 23:26:21.0\"},{\"id\":1511967853340,\"userId\":0,\"version\":1,\"name\":\"获取动态列表Moment+User+User:parise[]+Comment[]\",\"url\":\"/get\",\"request\":\"{\n \"[]\": {\n \"count\": 5,\n \"page\": 0,\n \"Moment\": {\n \"@order\": \"date-\"\n },\n \"User\": {\n \"id@\": \"/Moment/userId\",\n \"@column\": \"id,name,head\"\n },\n \"User[]\": {\n \"count\": 10,\n \"User\": {\n \"id{}@\": \"[]/Moment/praiseUserIdList\",\n \"@column\": \"id,name\"\n }\n },\n \"[]\": {\n \"count\": 6,\n \"Comment\": {\n \"@order\": \"date+\",\n \"momentId@\": \"[]/Moment/id\"\n },\n \"User\": {\n \"id@\": \"/Comment/userId\",\n \"@column\": \"id,name\"\n }\n }\n }\n}\",\"date\":\"2017-11-29 23:04:13.0\"},{\"id\":1511964176689,\"userId\":0,\"version\":1,\"name\":\"获取评论列表-动态详情页Comment+User\",\"url\":\"/get\",\"request\":\"{\n \"[]\": {\n \"count\": 20,\n \"page\": 0,\n \"Comment\": {\n \"@order\": \"date+\",\n \"momentId\": 15\n },\n \"User\": {\n \"id@\": \"/Comment/userId\",\n \"@column\": \"id,name,head\"\n }\n }\n}\",\"date\":\"2017-11-29 22:02:56.0\"},{\"id\":1511963990072,\"userId\":0,\"version\":1,\"name\":\"获取动态Moment+User+praiseUserList\",\"url\":\"/get\",\"request\":\"{\n \"Moment\": {\n \"id\": 15\n },\n \"User\": {\n \"id@\": \"Moment/userId\",\n \"@column\": \"id,name,head\"\n },\n \"User[]\": {\n \"count\": 10,\n \"User\": {\n \"id{}@\": \"Moment/praiseUserIdList\",\n \"@column\": \"id,name\"\n }\n }\n}\",\"date\":\"2017-11-29 21:59:50.0\"},{\"id\":1511963722970,\"userId\":0,\"version\":1,\"name\":\"获取用户列表(\"id{}\":contactIdList)-朋友页\",\"url\":\"/get\",\"request\":\"{\n \"User[]\": {\n \"count\": 10,\n \"page\": 0,\n \"User\": {\n \"@column\": \"id,sex,name,tag,head\",\n \"@order\": \"name+\",\n \"id{}\": [\n 82002,\n 82004,\n 70793\n ]\n }\n }\n}\",\"date\":\"2017-11-29 21:55:22.0\"},{\"id\":1511963677325,\"userId\":0,\"version\":1,\"name\":\"获取用户\",\"url\":\"/get\",\"request\":\"{\"User\": {\"id\": 82001}}\",\"date\":\"2017-11-29 21:54:37.0\"},{\"id\":1511796882184,\"userId\":0,\"version\":1,\"name\":\"充值(需要支付密码)/提现\",\"url\":\"/put/balance\",\"request\":\"{\"tag\": \"Privacy\", \"Privacy\": {\"id\": 82001, \"balance+\": 100.15, \"_payPassword\": \"<PASSWORD>\"}}\",\"date\":\"2017-11-27 23:34:42.0\"},{\"id\":1511796589079,\"userId\":0,\"version\":1,\"name\":\"修改登录密码(先获取验证码type:2)-手机号+验证码\",\"url\":\"/put/password\",\"request\":\"{\"verify\": \"10322\", \"Privacy\": {\"phone\": \"13000082001\", \"_password\": \"<PASSWORD>\"}}\",\"date\":\"2017-11-27 23:29:49.0\"},{\"id\":1511796208670,\"userId\":0,\"version\":1,\"name\":\"检查验证码是否存在\",\"url\":\"/heads/verify\",\"request\":\"{\"type\": 0, \"phone\": \"13000082001\"}\",\"date\":\"2017-11-27 23:23:28.0\"},{\"id\":1511796155277,\"userId\":0,\"version\":1,\"name\":\"获取验证码\",\"url\":\"/post/verify\",\"request\":\"{\"type\": 0, \"phone\": \"13000082001\"}\",\"date\":\"2017-11-27 23:22:35.0\"},{\"id\":3,\"userId\":0,\"version\":1,\"name\":\"退出登录\",\"url\":\"/logout\",\"request\":\"{}\",\"date\":\"2017-11-26 17:56:10.0\"},{\"id\":1511689914599,\"userId\":0,\"version\":1,\"name\":\"获取用户隐私信息\",\"url\":\"/gets\",\"request\":\"{\"tag\": \"Privacy\", \"Privacy\": {\"id\": 82001}}\",\"date\":\"2017-11-26 17:51:54.0\"},{\"id\":1,\"userId\":0,\"version\":1,\"name\":\"登录\",\"url\":\"/login\",\"request\":\"{\"type\": 0, \"phone\": \"13000082001\", \"version\": 1, \"password\": \"<PASSWORD>\"}\",\"date\":\"2017-11-26 15:35:19.0\"},{\"id\":2,\"userId\":0,\"version\":1,\"name\":\"注册(先获取验证码type:1)\",\"url\":\"/register\",\"request\":\"{\n \"Privacy\": {\n \"phone\": \"13000083333\",\n \"_password\": \"<PASSWORD>\"\n },\n \"User\": {\n \"name\": \"APIJSONUser\"\n },\n \"verify\": \"6840\"\n}\"}],\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:08:15', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520090219049, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":22628.1},\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:16:59', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520090220914, 82001, 1516325614520, '{\"[]\":[{\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82003,\"sex\":1,\"name\":\"Wechat\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82005,\"sex\":1,\"name\":\"Jan\",\"tag\":\"AG\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82006,\"sex\":1,\"name\":\"Meria\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82021,\"sex\":1,\"name\":\"Tommy\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82025,\"sex\":1,\"name\":\"Tommy\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82028,\"sex\":1,\"name\":\"gaeg\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82030,\"sex\":1,\"name\":\"Fun\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82033,\"sex\":1,\"name\":\"GAS\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82034,\"sex\":1,\"name\":\"Jump\",\"head\":\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82035,\"sex\":1,\"name\":\"Tab\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82039,\"sex\":1,\"name\":\"Everyday\",\"head\":\"http://common.cnblogs.com/images/icon_weibo_24.png\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-19 21:57:56.0\"}},{\"User\":{\"id\":82040,\"sex\":1,\"name\":\"Dream\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793],\"pictureList\":[],\"date\":\"2017-03-03 00:44:26.0\"}},{\"User\":{\"id\":82042,\"sex\":1,\"name\":\"Why\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-04 18:04:33.0\"}},{\"User\":{\"id\":82044,\"sex\":1,\"name\":\"Love\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82006],\"pictureList\":[],\"date\":\"2017-03-04 18:20:27.0\"}},{\"User\":{\"id\":82055,\"sex\":1,\"name\":\"Solid\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[38710,82002],\"pictureList\":[],\"date\":\"2017-03-11 23:04:00.0\"}},{\"User\":{\"id\":82056,\"sex\":1,\"name\":\"IronMan\",\"head\":\"http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-11 23:32:25.0\"}},{\"User\":{\"id\":82059,\"sex\":1,\"name\":\"He&She\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-19 22:49:15.0\"}},{\"User\":{\"id\":82060,\"sex\":1,\"name\":\"Anyway~\",\"head\":\"http://static.oschina.net/uploads/user/1/3064_50.jpg?t=1449566001000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 22:10:18.0\"}},{\"User\":{\"id\":1490109742863,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 23:22:22.0\"}},{\"User\":{\"id\":1490420651686,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793],\"pictureList\":[],\"date\":\"2017-03-25 13:44:11.0\"}},{\"User\":{\"id\":1490973670928,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793,93793],\"pictureList\":[],\"date\":\"2017-03-31 23:21:10.0\"}},{\"User\":{\"id\":1508072105320,\"sex\":1,\"name\":\"周吴郑王\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-15 20:55:05.0\"}}],\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:17:00', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520090222151, 82001, 1519368532249, '{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,70793,82034,93793,82021,82033],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:17:02', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520090430596, 82001, 1516325614520, '{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,70793,82034,93793,82021,82033],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:20:30', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520090633508, 82001, 1516325614520, '{\"code\":412,\"msg\":\"手机号或验证码错误!\"}', '2018-03-03 15:23:53', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520091069489, 82001, 1516325614520, '{\"code\":412,\"msg\":\"手机号或验证码错误!\"}', '2018-03-03 15:31:09', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520091190755, 82001, 1519368532249, '{\"code\":412,\"msg\":\"手机号或验证码错误!\"}', '2018-03-03 15:33:10', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520091349017, 82001, 1519526273822, '{\"code\":412,\"msg\":\"手机号或验证码错误!\"}', '2018-03-03 15:35:49', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520091550804, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":22628.1},\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:39:10', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520091551472, 82001, 1519368532249, '{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,70793,82034,93793,82021,82033],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:39:11', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520091552062, 82001, 1516325614520, '{\"[]\":[{\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82003,\"sex\":1,\"name\":\"Wechat\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82005,\"sex\":1,\"name\":\"Jan\",\"tag\":\"AG\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82006,\"sex\":1,\"name\":\"Meria\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82021,\"sex\":1,\"name\":\"Tommy\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82025,\"sex\":1,\"name\":\"Tommy\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82028,\"sex\":1,\"name\":\"gaeg\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82030,\"sex\":1,\"name\":\"Fun\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82033,\"sex\":1,\"name\":\"GAS\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82034,\"sex\":1,\"name\":\"Jump\",\"head\":\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82035,\"sex\":1,\"name\":\"Tab\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82039,\"sex\":1,\"name\":\"Everyday\",\"head\":\"http://common.cnblogs.com/images/icon_weibo_24.png\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-19 21:57:56.0\"}},{\"User\":{\"id\":82040,\"sex\":1,\"name\":\"Dream\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793],\"pictureList\":[],\"date\":\"2017-03-03 00:44:26.0\"}},{\"User\":{\"id\":82042,\"sex\":1,\"name\":\"Why\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-04 18:04:33.0\"}},{\"User\":{\"id\":82044,\"sex\":1,\"name\":\"Love\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82006],\"pictureList\":[],\"date\":\"2017-03-04 18:20:27.0\"}},{\"User\":{\"id\":82055,\"sex\":1,\"name\":\"Solid\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[38710,82002],\"pictureList\":[],\"date\":\"2017-03-11 23:04:00.0\"}},{\"User\":{\"id\":82056,\"sex\":1,\"name\":\"IronMan\",\"head\":\"http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-11 23:32:25.0\"}},{\"User\":{\"id\":82059,\"sex\":1,\"name\":\"He&She\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-19 22:49:15.0\"}},{\"User\":{\"id\":82060,\"sex\":1,\"name\":\"Anyway~\",\"head\":\"http://static.oschina.net/uploads/user/1/3064_50.jpg?t=1449566001000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 22:10:18.0\"}},{\"User\":{\"id\":1490109742863,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 23:22:22.0\"}},{\"User\":{\"id\":1490420651686,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793],\"pictureList\":[],\"date\":\"2017-03-25 13:44:11.0\"}},{\"User\":{\"id\":1490973670928,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793,93793],\"pictureList\":[],\"date\":\"2017-03-31 23:21:10.0\"}},{\"User\":{\"id\":1508072105320,\"sex\":1,\"name\":\"周吴郑王\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-15 20:55:05.0\"}}],\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:39:12', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520091900844, 82001, 1516325614520, '{\"[]\":[{\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82003,\"sex\":1,\"name\":\"Wechat\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82005,\"sex\":1,\"name\":\"Jan\",\"tag\":\"AG\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82006,\"sex\":1,\"name\":\"Meria\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82021,\"sex\":1,\"name\":\"Tommy\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82025,\"sex\":1,\"name\":\"Tommy\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82028,\"sex\":1,\"name\":\"gaeg\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82030,\"sex\":1,\"name\":\"Fun\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82033,\"sex\":1,\"name\":\"GAS\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82034,\"sex\":1,\"name\":\"Jump\",\"head\":\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82035,\"sex\":1,\"name\":\"Tab\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82039,\"sex\":1,\"name\":\"Everyday\",\"head\":\"http://common.cnblogs.com/images/icon_weibo_24.png\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-19 21:57:56.0\"}},{\"User\":{\"id\":82040,\"sex\":1,\"name\":\"Dream\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793],\"pictureList\":[],\"date\":\"2017-03-03 00:44:26.0\"}},{\"User\":{\"id\":82042,\"sex\":1,\"name\":\"Why\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-04 18:04:33.0\"}},{\"User\":{\"id\":82044,\"sex\":1,\"name\":\"Love\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82006],\"pictureList\":[],\"date\":\"2017-03-04 18:20:27.0\"}},{\"User\":{\"id\":82055,\"sex\":1,\"name\":\"Solid\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[38710,82002],\"pictureList\":[],\"date\":\"2017-03-11 23:04:00.0\"}},{\"User\":{\"id\":82056,\"sex\":1,\"name\":\"IronMan\",\"head\":\"http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-11 23:32:25.0\"}},{\"User\":{\"id\":82059,\"sex\":1,\"name\":\"He&She\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-19 22:49:15.0\"}},{\"User\":{\"id\":82060,\"sex\":1,\"name\":\"Anyway~\",\"head\":\"http://static.oschina.net/uploads/user/1/3064_50.jpg?t=1449566001000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 22:10:18.0\"}},{\"User\":{\"id\":1490109742863,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 23:22:22.0\"}},{\"User\":{\"id\":1490420651686,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793],\"pictureList\":[],\"date\":\"2017-03-25 13:44:11.0\"}},{\"User\":{\"id\":1490973670928,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793,93793],\"pictureList\":[],\"date\":\"2017-03-31 23:21:10.0\"}},{\"User\":{\"id\":1508072105320,\"sex\":1,\"name\":\"周吴郑王\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-15 20:55:05.0\"}}],\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:45:00', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520092115128, 82001, 1520091922118, '{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,70793,82034,93793,82021,82033],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:48:35', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520092224195, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":22628.1},\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:50:24', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520092385815, 82001, 1520091922118, '{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,70793,82034,93793,82021,82033],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:53:05', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520092411345, 82001, 1516325614520, '{\"[]\":[{\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82003,\"sex\":1,\"name\":\"Wechat\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82005,\"sex\":1,\"name\":\"Jan\",\"tag\":\"AG\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82006,\"sex\":1,\"name\":\"Meria\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82021,\"sex\":1,\"name\":\"Tommy\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82025,\"sex\":1,\"name\":\"Tommy\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82028,\"sex\":1,\"name\":\"gaeg\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82030,\"sex\":1,\"name\":\"Fun\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82033,\"sex\":1,\"name\":\"GAS\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82034,\"sex\":1,\"name\":\"Jump\",\"head\":\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82035,\"sex\":1,\"name\":\"Tab\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82039,\"sex\":1,\"name\":\"Everyday\",\"head\":\"http://common.cnblogs.com/images/icon_weibo_24.png\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-19 21:57:56.0\"}},{\"User\":{\"id\":82040,\"sex\":1,\"name\":\"Dream\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793],\"pictureList\":[],\"date\":\"2017-03-03 00:44:26.0\"}},{\"User\":{\"id\":82042,\"sex\":1,\"name\":\"Why\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-04 18:04:33.0\"}},{\"User\":{\"id\":82044,\"sex\":1,\"name\":\"Love\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82006],\"pictureList\":[],\"date\":\"2017-03-04 18:20:27.0\"}},{\"User\":{\"id\":82055,\"sex\":1,\"name\":\"Solid\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[38710,82002],\"pictureList\":[],\"date\":\"2017-03-11 23:04:00.0\"}},{\"User\":{\"id\":82056,\"sex\":1,\"name\":\"IronMan\",\"head\":\"http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-11 23:32:25.0\"}},{\"User\":{\"id\":82059,\"sex\":1,\"name\":\"He&She\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-19 22:49:15.0\"}},{\"User\":{\"id\":82060,\"sex\":1,\"name\":\"Anyway~\",\"head\":\"http://static.oschina.net/uploads/user/1/3064_50.jpg?t=1449566001000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 22:10:18.0\"}},{\"User\":{\"id\":1490109742863,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 23:22:22.0\"}},{\"User\":{\"id\":1490420651686,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793],\"pictureList\":[],\"date\":\"2017-03-25 13:44:11.0\"}},{\"User\":{\"id\":1490973670928,\"sex\":1,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[70793,93793],\"pictureList\":[],\"date\":\"2017-03-31 23:21:10.0\"}},{\"User\":{\"id\":1508072105320,\"sex\":1,\"name\":\"周吴郑王\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-15 20:55:05.0\"}}],\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:53:31', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520092528119, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":22628.1},\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:55:28', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520092670553, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":22628.1},\"code\":200,\"msg\":\"success\"}', '2018-03-03 15:57:50', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520092819799, 82001, 1520091922118, '{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,70793,82034,93793,82021,82033],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-03-03 16:00:19', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173868568, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":26734.25},\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:31:08', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173870784, 82001, 1512216131855, '{\"[]\":[{\"Table\":{\"TABLE_NAME\":\"apijson_privacy\",\"TABLE_COMMENT\":\"用户隐私信息表。\n对安全要求高,不想泄漏真实名称。对外名称为 Privacy\"},\"Column[]\":[{\"COLUMN_NAME\":\"id\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"唯一标识\"},{\"COLUMN_NAME\":\"certified\",\"COLUMN_TYPE\":\"tinyint(2)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"已认证\"},{\"COLUMN_NAME\":\"phone\",\"COLUMN_TYPE\":\"bigint(11)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"手机号,仅支持 11 位数的。不支持 +86 这种国家地区开头的。如果要支持就改为 VARCHAR(14)\"},{\"COLUMN_NAME\":\"balance\",\"COLUMN_TYPE\":\"decimal(10,2)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"余额\"},{\"COLUMN_NAME\":\"_password\",\"COLUMN_TYPE\":\"varchar(20)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"登录密码\"},{\"COLUMN_NAME\":\"_payPassword\",\"COLUMN_TYPE\":\"int(6)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"支付密码\"}]},{\"Table\":{\"TABLE_NAME\":\"apijson_user\",\"TABLE_COMMENT\":\"用户公开信息表。\n对安全要求高,不想泄漏真实名称。对外名称为 User\"},\"Column[]\":[{\"COLUMN_NAME\":\"id\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"唯一标识\"},{\"COLUMN_NAME\":\"sex\",\"COLUMN_TYPE\":\"tinyint(2)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"性别:\n0-男\n1-女\"},{\"COLUMN_NAME\":\"name\",\"COLUMN_TYPE\":\"varchar(20)\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"名称\"},{\"COLUMN_NAME\":\"tag\",\"COLUMN_TYPE\":\"varchar(45)\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"标签\"},{\"COLUMN_NAME\":\"head\",\"COLUMN_TYPE\":\"varchar(300)\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"头像url\"},{\"COLUMN_NAME\":\"contactIdList\",\"COLUMN_TYPE\":\"json\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"联系人id列表\"},{\"COLUMN_NAME\":\"pictureList\",\"COLUMN_TYPE\":\"json\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"照片列表\"},{\"COLUMN_NAME\":\"date\",\"COLUMN_TYPE\":\"timestamp\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"创建日期\"}]},{\"Table\":{\"TABLE_NAME\":\"Comment\",\"TABLE_COMMENT\":\"评论\"},\"Column[]\":[{\"COLUMN_NAME\":\"id\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"唯一标识\"},{\"COLUMN_NAME\":\"toId\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"被回复的id\"},{\"COLUMN_NAME\":\"userId\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"评论人id\"},{\"COLUMN_NAME\":\"momentId\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"动态id\"},{\"COLUMN_NAME\":\"date\",\"COLUMN_TYPE\":\"timestamp\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"创建日期\"},{\"COLUMN_NAME\":\"content\",\"COLUMN_TYPE\":\"varchar(1000)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"内容\"}]},{\"Table\":{\"TABLE_NAME\":\"Document\",\"TABLE_COMMENT\":\"测试用例文档\n后端开发者在测试好后,把选好的测试用例上传,这样就能共享给前端/客户端开发者\"},\"Column[]\":[{\"COLUMN_NAME\":\"id\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"唯一标识\"},{\"COLUMN_NAME\":\"userId\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"用户id\n应该用adminId,只有当登录账户是管理员时才能操作文档。\n需要先建Admin表,新增登录等相关接口。\"},{\"COLUMN_NAME\":\"version\",\"COLUMN_TYPE\":\"tinyint(4)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"接口版本号\n<=0 - 不限制版本,任意版本都可用这个接口\n>0 - 在这个版本添加的接口\"},{\"COLUMN_NAME\":\"name\",\"COLUMN_TYPE\":\"varchar(50)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"接口名称\"},{\"COLUMN_NAME\":\"url\",\"COLUMN_TYPE\":\"varchar(250)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"请求地址\"},{\"COLUMN_NAME\":\"request\",\"COLUMN_TYPE\":\"text\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"请求\n用json格式会导致强制排序,而请求中引用赋值只能引用上面的字段,必须有序。\"},{\"COLUMN_NAME\":\"response\",\"COLUMN_TYPE\":\"text\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"标准返回结果JSON\n用json格式会导致强制排序,而请求中引用赋值只能引用上面的字段,必须有序。\"},{\"COLUMN_NAME\":\"date\",\"COLUMN_TYPE\":\"timestamp\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"创建日期\"}]},{\"Table\":{\"TABLE_NAME\":\"Login\",\"TABLE_COMMENT\":\"@deprecated,登录信息存session\"},\"Column[]\":[{\"COLUMN_NAME\":\"id\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"唯一标识\"},{\"COLUMN_NAME\":\"userId\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"用户id\"},{\"COLUMN_NAME\":\"type\",\"COLUMN_TYPE\":\"tinyint(2)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"类型\n0-密码登录\n1-验证码登录\"},{\"COLUMN_NAME\":\"date\",\"COLUMN_TYPE\":\"timestamp\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"创建日期\"}]},{\"Table\":{\"TABLE_NAME\":\"Moment\",\"TABLE_COMMENT\":\"动态\"},\"Column[]\":[{\"COLUMN_NAME\":\"id\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"唯一标识\"},{\"COLUMN_NAME\":\"userId\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"用户id\"},{\"COLUMN_NAME\":\"date\",\"COLUMN_TYPE\":\"timestamp\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"创建日期\"},{\"COLUMN_NAME\":\"content\",\"COLUMN_TYPE\":\"varchar(300)\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"内容\"},{\"COLUMN_NAME\":\"praiseUserIdList\",\"COLUMN_TYPE\":\"json\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"点赞的用户id列表\"},{\"COLUMN_NAME\":\"pictureList\",\"COLUMN_TYPE\":\"json\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"图片列表\"}]},{\"Table\":{\"TABLE_NAME\":\"Praise\",\"TABLE_COMMENT\":\"如果对Moment写安全要求高,可以将Moment内praiserUserIdList分离到Praise表中,作为userIdList。\n权限注解也改下:\n@MethodAccess(\n PUT = {OWNER, ADMIN}\n )\nclass Moment {\n …\n}\n\n@MethodAccess(\n PUT = {LOGIN, CONTACT, CIRCLE, OWNER, ADMIN}\n )\n class Praise {\n …\n }\n\"},\"Column[]\":[{\"COLUMN_NAME\":\"id\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"动态id\"},{\"COLUMN_NAME\":\"momentId\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"唯一标识\"},{\"COLUMN_NAME\":\"userId\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"用户id\"},{\"COLUMN_NAME\":\"date\",\"COLUMN_TYPE\":\"timestamp\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"点赞时间\"}]},{\"Table\":{\"TABLE_NAME\":\"Request\",\"TABLE_COMMENT\":\"最好编辑完后删除主键,这样就是只读状态,不能随意更改。需要更改就重新加上主键。\n\n每次启动服务器时加载整个表到内存。\n这个表不可省略,model内注解的权限只是客户端能用的,其它可以保证即便服务端代码错误时也不会误删数据。\"},\"Column[]\":[{\"COLUMN_NAME\":\"id\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"唯一标识\"},{\"COLUMN_NAME\":\"version\",\"COLUMN_TYPE\":\"tinyint(4)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"GET,HEAD可用任意结构访问任意开放内容,不需要这个字段。\n其它的操作因为写入了结构和内容,所以都需要,按照不同的version选择对应的structure。\n\n自动化版本管理:\nRequest JSON最外层可以传 “version”:Integer 。\n1.未传或 <= 0,用最新版。 “@order”:”version-“\n2.已传且 > 0,用version以上的可用版本的最低版本。 “@order”:”version+”, “version{}”:”>={version}”\"},{\"COLUMN_NAME\":\"method\",\"COLUMN_TYPE\":\"varchar(10)\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"只限于GET,HEAD外的操作方法。\"},{\"COLUMN_NAME\":\"tag\",\"COLUMN_TYPE\":\"varchar(20)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"标签\"},{\"COLUMN_NAME\":\"structure\",\"COLUMN_TYPE\":\"json\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"结构\"},{\"COLUMN_NAME\":\"detail\",\"COLUMN_TYPE\":\"varchar(10000)\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"详细说明\"},{\"COLUMN_NAME\":\"date\",\"COLUMN_TYPE\":\"timestamp\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"创建日期\"}]},{\"Table\":{\"TABLE_NAME\":\"Response\",\"TABLE_COMMENT\":\"每次启动服务器时加载整个表到内存。\"},\"Column[]\":[{\"COLUMN_NAME\":\"id\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"唯一标识\"},{\"COLUMN_NAME\":\"method\",\"COLUMN_TYPE\":\"varchar(10)\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"方法\"},{\"COLUMN_NAME\":\"model\",\"COLUMN_TYPE\":\"varchar(20)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"表名,table是SQL关键词不能用\"},{\"COLUMN_NAME\":\"structure\",\"COLUMN_TYPE\":\"json\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"结构\"},{\"COLUMN_NAME\":\"detail\",\"COLUMN_TYPE\":\"varchar(10000)\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"详细说明\"},{\"COLUMN_NAME\":\"date\",\"COLUMN_TYPE\":\"timestamp\",\"IS_NULLABLE\":\"YES\",\"COLUMN_COMMENT\":\"创建日期\"}]},{\"Table\":{\"TABLE_NAME\":\"Test\",\"TABLE_COMMENT\":\"测试及验证用的表,可以用 SELECT condition替代 SELECT * FROM Test WHERE condition,这样就不需要这张表了\"},\"Column[]\":[{\"COLUMN_NAME\":\"id\",\"COLUMN_TYPE\":\"tinyint(2)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"\"}]},{\"Table\":{\"TABLE_NAME\":\"TestRecord\",\"TABLE_COMMENT\":\"测试记录\n主要用于保存自动化接口回归测试\"},\"Column[]\":[{\"COLUMN_NAME\":\"id\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"唯一标识\"},{\"COLUMN_NAME\":\"userId\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"用户id\"},{\"COLUMN_NAME\":\"documentId\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"测试用例文档id\"},{\"COLUMN_NAME\":\"response\",\"COLUMN_TYPE\":\"text\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"接口返回结果JSON\"},{\"COLUMN_NAME\":\"date\",\"COLUMN_TYPE\":\"timestamp\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"创建日期\"}]},{\"Table\":{\"TABLE_NAME\":\"Verify\",\"TABLE_COMMENT\":\"\"},\"Column[]\":[{\"COLUMN_NAME\":\"id\",\"COLUMN_TYPE\":\"bigint(15)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"唯一标识\"},{\"COLUMN_NAME\":\"type\",\"COLUMN_TYPE\":\"int(2)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"类型:\n0-登录\n1-注册\n2-修改登录密码\n3-修改支付密码\"},{\"COLUMN_NAME\":\"phone\",\"COLUMN_TYPE\":\"bigint(11)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"手机号\"},{\"COLUMN_NAME\":\"verify\",\"COLUMN_TYPE\":\"int(6)\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"验证码\"},{\"COLUMN_NAME\":\"date\",\"COLUMN_TYPE\":\"timestamp\",\"IS_NULLABLE\":\"NO\",\"COLUMN_COMMENT\":\"创建时间\"}]}],\"Request[]\":[{\"id\":36,\"version\":2,\"method\":\"PUT\",\"tag\":\"Document\",\"structure\":{\"ADD\":{\"@role\":\"owner\"},\"DISALLOW\":\"userId\",\"NECESSARY\":\"id\"},\"date\":\"2017-11-26 16:35:15.0\"},{\"id\":35,\"version\":2,\"method\":\"POST\",\"tag\":\"Document\",\"structure\":{\"DISALLOW\":\"id\",\"NECESSARY\":\"userId,name,url,request\"},\"date\":\"2017-11-26 16:34:41.0\"},{\"id\":32,\"version\":2,\"method\":\"GETS\",\"tag\":\"Privacy\",\"structure\":{\"ADD\":{\"@role\":\"owner\"},\"DISALLOW\":\"_password,_payPassword\",\"NECESSARY\":\"id\"},\"date\":\"2017-06-13 00:05:51.0\"},{\"id\":33,\"version\":2,\"method\":\"GETS\",\"tag\":\"Privacy-CIRCLE\",\"structure\":{\"Privacy\":{\"DISALLOW\":\"!\",\"NECESSARY\":\"id\",\"PUT\":{\"@column\":\"phone\",\"@role\":\"CIRCLE\"}}},\"date\":\"2017-06-13 00:05:51.0\"},{\"id\":37,\"version\":2,\"method\":\"DELETE\",\"tag\":\"Document\",\"structure\":{\"ADD\":{\"@role\":\"owner\"},\"DISALLOW\":\"!\",\"NECESSARY\":\"id\"},\"date\":\"2017-11-26 16:36:20.0\"},{\"id\":4,\"version\":1,\"method\":\"PUT\",\"tag\":\"User\",\"structure\":{\"ADD\":{\"@role\":\"owner\"},\"DISALLOW\":\"phone\",\"NECESSARY\":\"id\"},\"detail\":\"必须传id,不允许传phone。ADD当没传@role时用owner补全\",\"date\":\"2017-02-01 19:19:51.0\"},{\"id\":8,\"version\":1,\"method\":\"PUT\",\"tag\":\"User-phone\",\"structure\":{\"User\":{\"ADD\":{\"@role\":\"owner\"},\"DISALLOW\":\"!\",\"NECESSARY\":\"id,phone,_password\",\"PUT\":{\"@condition\":\"_password\"}}},\"detail\":\"! 表示其它所有,这里指necessary所有未包含的字段\",\"date\":\"2017-02-01 19:19:51.0\"},{\"id\":17,\"version\":1,\"method\":\"PUT\",\"tag\":\"Moment\",\"structure\":{\"DISALLOW\":\"userId,date\",\"NECESSARY\":\"id\"},\"date\":\"2017-02-01 19:19:51.0\"},{\"id\":23,\"version\":1,\"method\":\"PUT\",\"tag\":\"Privacy\",\"structure\":{\"ADD\":{\"@role\":\"owner\"},\"NECESSARY\":\"id\"},\"detail\":\"ADD当没传@role时用owner补全\",\"date\":\"2017-02-01 19:19:51.0\"},{\"id\":25,\"version\":1,\"method\":\"PUT\",\"tag\":\"Praise\",\"structure\":{\"NECESSARY\":\"id\"},\"detail\":\"必须传id\",\"date\":\"2017-02-01 19:19:51.0\"},{\"id\":27,\"version\":1,\"method\":\"PUT\",\"tag\":\"Comment[]\",\"structure\":{\"Comment\":{\"ADD\":{\"@role\":\"owner\"},\"NECESSARY\":\"id{}\"}},\"detail\":\"DISALLOW没必要用于DELETE\",\"date\":\"2017-02-01 19:19:51.0\"},{\"id\":28,\"version\":1,\"method\":\"PUT\",\"tag\":\"Comment\",\"structure\":{\"ADD\":{\"@role\":\"owner\"},\"NECESSARY\":\"id\"},\"detail\":\"这里省略了Comment,因为tag就是Comment,Parser.getCorrectRequest会自动补全\",\"date\":\"2017-02-01 19:19:51.0\"},{\"id\":30,\"version\":1,\"method\":\"PUT\",\"tag\":\"balance+\",\"structure\":{\"Privacy\":{\"VERIFY\":{\"balance+&{}\":\">=1,<=100000\"},\"DISALLOW\":\"!\",\"NECESSARY\":\"id,balance+\"}},\"detail\":\"验证balance+对应的值是否满足>=1且<=100000\",\"date\":\"2017-10-21 16:48:34.0\"},{\"id\":31,\"version\":1,\"method\":\"PUT\",\"tag\":\"balance-\",\"structure\":{\"Privacy\":{\"VERIFY\":{\"balance-&{}\":\">=1,<=10000\"},\"DISALLOW\":\"!\",\"NECESSARY\":\"id,balance-,_password\",\"PUT\":{\"@condition\":\"_password\"}}},\"detail\":\"PUT强制把_password作为WHERE条件\",\"date\":\"2017-10-21 16:48:34.0\"},{\"id\":1,\"version\":1,\"method\":\"POST\",\"tag\":\"register\",\"structure\":{\"Privacy\":{\"UNIQUE\":\"phone\",\"VERIFY\":{\"phone?\":\"phone\"},\"DISALLOW\":\"id\",\"NECESSARY\":\"_password,phone\"},\"User\":{\"DISALLOW\":\"id\",\"NECESSARY\":\"name\",\"PUT\":{\"id@\":\"Privacy/id\"}}},\"detail\":\"UNIQUE校验phone是否已存在。VERIFY校验phone是否符合手机号的格式\",\"date\":\"2017-02-01 19:19:51.0\"},{\"id\":2,\"version\":1,\"method\":\"POST\",\"tag\":\"Moment\",\"structure\":{\"ADD\":{\"praiseUserIdList\":[],\"pictureList\":[]},\"DISALLOW\":\"id\",\"NECESSARY\":\"userId,pictureList\"},\"detail\":\"ADD当没传pictureList和praiseUserIdList时用空数组[]补全,保证不会为null\",\"date\":\"2017-02-01 19:19:51.0\"},{\"id\":3,\"version\":1,\"method\":\"POST\",\"tag\":\"Comment\",\"structure\":{\"DISALLOW\":\"id\",\"NECESSARY\":\"userId,momentId,content\"},\"detail\":\"必须传userId,momentId,content,不允许传id\",\"date\":\"2017-02-01 19:19:51.0\"},{\"id\":14,\"version\":1,\"method\":\"POST\",\"tag\":\"Verify\",\"structure\":{\"DISALLOW\":\"!\",\"NECESSARY\":\"phone,verify\"},\"detail\":\"必须传phone,verify,其它都不允许传\",\"date\":\"2017-02-18 22:20:43.0\"},{\"id\":38,\"version\":1,\"method\":\"POST\",\"tag\":\"TestRecord\",\"structure\":{\"DISALLOW\":\"id\",\"NECESSARY\":\"userId,documentId,response\"},\"date\":\"2017-11-26 16:34:41.0\"},{\"id\":16,\"version\":1,\"method\":\"HEADS\",\"tag\":\"Verify\",\"structure\":{},\"detail\":\"允许任意内容\",\"date\":\"2017-02-18 22:20:43.0\"},{\"id\":21,\"version\":1,\"method\":\"HEADS\",\"tag\":\"Login\",\"structure\":{\"DISALLOW\":\"!\",\"NECESSARY\":\"userId,type\"},\"date\":\"2017-02-18 22:20:43.0\"},{\"id\":15,\"version\":1,\"method\":\"GETS\",\"tag\":\"Verify\",\"structure\":{\"NECESSARY\":\"phone\"},\"detail\":\"必须传phone\",\"date\":\"2017-02-18 22:20:43.0\"},{\"id\":22,\"version\":1,\"method\":\"GETS\",\"tag\":\"User\",\"structure\":{},\"detail\":\"允许传任何内容,除了表对象\",\"date\":\"2017-02-18 22:20:43.0\"},{\"id\":29,\"version\":1,\"method\":\"GETS\",\"tag\":\"login\",\"structure\":{\"Privacy\":{\"DISALLOW\":\"id\",\"NECESSARY\":\"phone,_password\"}},\"date\":\"2017-10-15 18:04:52.0\"},{\"id\":5,\"version\":1,\"method\":\"DELETE\",\"tag\":\"Moment\",\"structure\":{\"Moment\":{\"ADD\":{\"@role\":\"owner\"},\"NECESSARY\":\"id\"},\"PUT\":{\"Comment\":{\"@role\":\"admin\",\"momentId@\":\"Moment/id\"}}},\"date\":\"2017-02-01 19:19:51.0\"},{\"id\":6,\"version\":1,\"method\":\"DELETE\",\"tag\":\"Comment\",\"structure\":{\"Comment\":{\"ADD\":{\"@role\":\"owner\"},\"NECESSARY\":\"id\"},\"PUT\":{\"Comment:child\":{\"toId@\":\"Comment/id\",\"@role\":\"admin\"}}},\"detail\":\"disallow没必要用于DELETE\",\"date\":\"2017-02-01 19:19:51.0\"},{\"id\":26,\"version\":1,\"method\":\"DELETE\",\"tag\":\"Comment[]\",\"structure\":{\"Comment\":{\"ADD\":{\"@role\":\"owner\"},\"NECESSARY\":\"id{}\"}},\"detail\":\"DISALLOW没必要用于DELETE\",\"date\":\"2017-02-01 19:19:51.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:31:10', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173872976, 82001, 1511970224333, '{\"User\":{\"code\":200,\"msg\":\"success\",\"id\":82001,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:31:12', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173873719, 82001, 1511970009072, '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"id\":1520173865791,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:31:13', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173875424, 82001, 1511969181104, '{\"User\":{\"id\":82001,\"contactIdList+\":[93793],\"@role\":\"owner\"},\"code\":409,\"msg\":\"PUT User, contactIdList:93793 已存在!\"}', '2018-03-04 14:31:15', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173877914, 82001, 1511969630372, '{\"Comment\":{\"code\":200,\"msg\":\"success\",\"id\":1520173865916,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:31:17', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173878817, 82001, 1511967853340, '{\"[]\":[{\"Moment\":{\"id\":1520173760960,\"userId\":82001,\"date\":\"2018-03-04 22:29:20.0\",\"content\":\"测试新增动态\",\"praiseUserIdList\":[],\"pictureList\":[\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"]},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Moment\":{\"id\":1520173720451,\"userId\":82001,\"date\":\"2018-03-04 22:28:40.0\",\"content\":\"测试新增动态\",\"praiseUserIdList\":[],\"pictureList\":[\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"]},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Moment\":{\"id\":1520173672910,\"userId\":82001,\"date\":\"2018-03-04 22:27:52.0\",\"content\":\"测试新增动态\",\"praiseUserIdList\":[],\"pictureList\":[\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"]},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Moment\":{\"id\":1520173667947,\"userId\":82001,\"date\":\"2018-03-04 22:27:47.0\",\"content\":\"测试新增动态\",\"praiseUserIdList\":[],\"pictureList\":[\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"]},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Moment\":{\"id\":1520173666384,\"userId\":82001,\"date\":\"2018-03-04 22:27:46.0\",\"content\":\"测试新增动态\",\"praiseUserIdList\":[],\"pictureList\":[\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"]},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}}],\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:31:18', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173879493, 82001, 1511964176689, '{\"[]\":[{\"Comment\":{\"id\":176,\"toId\":166,\"userId\":38710,\"momentId\":15,\"date\":\"2017-03-25 20:28:03.0\",\"content\":\"thank you\"},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"}},{\"Comment\":{\"id\":1490863469638,\"toId\":0,\"userId\":82002,\"momentId\":15,\"date\":\"2017-03-30 16:44:29.0\",\"content\":\"Just do it\"},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"}},{\"Comment\":{\"id\":1490875660259,\"toId\":1490863469638,\"userId\":82055,\"momentId\":15,\"date\":\"2017-03-30 20:07:40.0\",\"content\":\"I prove wht you said(??????)\"},\"User\":{\"id\":82055,\"name\":\"Solid\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1508227456407,\"toId\":0,\"userId\":82001,\"momentId\":15,\"date\":\"2017-10-17 16:04:16.0\",\"content\":\"hsh\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1509346606036,\"toId\":0,\"userId\":82001,\"momentId\":15,\"date\":\"2017-10-30 14:56:46.0\",\"content\":\"测\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520086403693,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-03 22:13:23.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520086647789,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-03 22:17:27.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520086858159,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-03 22:20:58.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520087089611,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-03 22:24:49.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520087181598,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-03 22:26:21.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520088770429,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-03 22:52:50.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520089307634,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-03 23:01:47.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520089508692,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-03 23:05:08.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520089597667,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-03 23:06:37.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520089619339,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-03 23:06:59.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520089621208,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-03 23:07:01.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520171621453,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-04 21:53:41.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520171658156,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-04 21:54:18.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520171697409,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-04 21:54:57.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520171714260,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-04 21:55:14.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}}],\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:31:19', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173881709, 82001, 1511796208670, '{\"code\":408,\"msg\":\"验证码已过期!\"}', '2018-03-04 14:31:21', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173883243, 82001, 1511689914599, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":26834.4},\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:31:23', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173889466, 82001, 1, '{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,70793,82034,93793,82021,82033],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:31:29', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173915650, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":27134.85},\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:31:55', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173922657, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":27235},\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:32:02', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520173935008, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":27435.3},\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:32:15', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520174017925, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":29939.05},\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:33:37', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520174362871, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":30039.2},\"code\":200,\"msg\":\"success\"}', '2018-03-04 14:39:22', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520176947082, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":28699.05},\"code\":200,\"msg\":\"success\"}', '2018-03-04 15:22:27', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520177104344, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":28709.2},\"code\":200,\"msg\":\"success\"}', '2018-03-04 15:25:04', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520177328250, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":28809.35},\"code\":200,\"msg\":\"success\"}', '2018-03-04 15:28:48', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520177426424, 82001, 1520177221844, '{\"[]\":[{\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,70793,82034,93793,82021,82033,93794],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82004,\"sex\":0,\"name\":\"Tommy\",\"tag\":\"fasef\",\"head\":\"http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82009,\"sex\":0,\"name\":\"God\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82012,\"sex\":0,\"name\":\"Steve\",\"tag\":\"FEWE\",\"head\":\"http://static.oschina.net/uploads/user/1/3064_50.jpg?t=1449566001000\",\"contactIdList\":[82004,82002,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82020,\"sex\":0,\"name\":\"ORANGE\",\"head\":\"http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82022,\"sex\":0,\"name\":\"Internet\",\"head\":\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82023,\"sex\":0,\"name\":\"No1\",\"head\":\"http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82024,\"sex\":0,\"name\":\"Lemon\",\"head\":\"http://static.oschina.net/uploads/user/427/855532_50.jpg?t=1435030876000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82026,\"sex\":0,\"name\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82027,\"sex\":0,\"name\":\"Yong\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82029,\"sex\":0,\"name\":\"GASG\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82031,\"sex\":0,\"name\":\"Lemon\",\"head\":\"http://static.oschina.net/uploads/user/48/96331_50.jpg\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82032,\"sex\":0,\"name\":\"Stack\",\"tag\":\"fasdg\",\"head\":\"http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82036,\"sex\":0,\"name\":\"SAG\",\"head\":\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82037,\"sex\":0,\"name\":\"Test\",\"head\":\"http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82038,\"sex\":0,\"name\":\"Battle\",\"head\":\"http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82041,\"sex\":0,\"name\":\"Holo\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[38710,82001],\"pictureList\":[],\"date\":\"2017-03-04 17:59:34.0\"}},{\"User\":{\"id\":82043,\"sex\":0,\"name\":\"Holiday\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[70793,82006],\"pictureList\":[],\"date\":\"2017-03-04 18:05:04.0\"}},{\"User\":{\"id\":82045,\"sex\":0,\"name\":\"Green\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,82002,82003,1485246481130],\"pictureList\":[],\"date\":\"2017-03-04 18:22:39.0\"}},{\"User\":{\"id\":82046,\"sex\":0,\"name\":\"Team\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[38710,82002,1485246481130],\"pictureList\":[],\"date\":\"2017-03-04 23:11:17.0\"}},{\"User\":{\"id\":82047,\"sex\":0,\"name\":\"Tesla\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 00:02:05.0\"}},{\"User\":{\"id\":82048,\"sex\":0,\"name\":\"Moto\",\"head\":\"http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 00:04:02.0\"}},{\"User\":{\"id\":82049,\"sex\":0,\"name\":\"ITMan\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 17:51:51.0\"}},{\"User\":{\"id\":82050,\"sex\":0,\"name\":\"Parl\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 17:52:52.0\"}},{\"User\":{\"id\":82051,\"sex\":0,\"name\":\"Girl\",\"head\":\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 17:53:37.0\"}},{\"User\":{\"id\":82052,\"sex\":0,\"name\":\"Unbrella\",\"head\":\"http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 17:57:54.0\"}},{\"User\":{\"id\":82053,\"sex\":0,\"name\":\"Alice\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 23:25:42.0\"}},{\"User\":{\"id\":82054,\"sex\":0,\"name\":\"Harvey\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-06 20:29:03.0\"}},{\"User\":{\"id\":82057,\"sex\":0,\"name\":\"NullPointerExeption\",\"head\":\"http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-12 14:01:23.0\"}},{\"User\":{\"id\":82058,\"sex\":0,\"name\":\"StupidBird\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82001,82002],\"pictureList\":[],\"date\":\"2017-03-12 19:23:04.0\"}},{\"User\":{\"id\":90814,\"sex\":0,\"name\":\"007\",\"head\":\"http://static.oschina.net/uploads/user/51/102723_50.jpg?t=1449212504000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":93793,\"sex\":0,\"name\":\"Mike\",\"tag\":\"GES\",\"head\":\"http://static.oschina.net/uploads/user/48/96331_50.jpg\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":93794,\"sex\":0,\"name\":\"Lemon\",\"head\":\"http://static.oschina.net/uploads/user/48/97721_50.jpg?t=1451544779000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":1490109845208,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 23:24:05.0\"}},{\"User\":{\"id\":1490427139175,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[38710,70793],\"pictureList\":[],\"date\":\"2017-03-25 15:32:19.0\"}},{\"User\":{\"id\":1490427577823,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-25 15:39:37.0\"}},{\"User\":{\"id\":1490584952968,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-27 11:22:32.0\"}},{\"User\":{\"id\":1492936169722,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-04-23 16:29:29.0\"}},{\"User\":{\"id\":1493480142628,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-04-29 23:35:42.0\"}},{\"User\":{\"id\":1493747512860,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-03 01:51:52.0\"}},{\"User\":{\"id\":1493747777770,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-03 01:56:17.0\"}},{\"User\":{\"id\":1493748594003,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-03 02:09:54.0\"}},{\"User\":{\"id\":1493748615711,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-03 02:10:15.0\"}},{\"User\":{\"id\":1493749090643,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-03 02:18:10.0\"}},{\"User\":{\"id\":1493836043151,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-04 02:27:23.0\"}},{\"User\":{\"id\":1493883110132,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-04 15:31:50.0\"}},{\"User\":{\"id\":1493890214167,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-04 17:30:14.0\"}},{\"User\":{\"id\":1493890303473,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-04 17:31:43.0\"}},{\"User\":{\"id\":1493890303474,\"sex\":0,\"name\":\"Test Post\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-06-12 23:50:44.0\"}},{\"User\":{\"id\":1493890303475,\"sex\":0,\"name\":\"Test Post\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-06-12 23:51:23.0\"}},{\"User\":{\"id\":1497792972314,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-06-18 21:36:12.0\"}},{\"User\":{\"id\":1497792972315,\"sex\":0,\"name\":\"一二三\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-06-25 18:42:33.0\"}},{\"User\":{\"id\":1499057230629,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-07-03 12:47:10.0\"}},{\"User\":{\"id\":1500825221910,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-07-23 23:53:41.0\"}},{\"User\":{\"id\":1502638023483,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-08-13 23:27:03.0\"}},{\"User\":{\"id\":1502639062900,\"sex\":0,\"name\":\"TESLA\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-08-13 23:44:22.0\"}},{\"User\":{\"id\":1502639424119,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-08-13 23:50:24.0\"}},{\"User\":{\"id\":1507220582167,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-06 00:23:02.0\"}},{\"User\":{\"id\":1508072071492,\"sex\":0,\"name\":\"赵钱孙李\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-15 20:54:31.0\"}},{\"User\":{\"id\":1508072160401,\"sex\":0,\"name\":\"四五六\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-15 20:56:00.0\"}},{\"User\":{\"id\":1508072202871,\"sex\":0,\"name\":\"七八九十\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-15 20:56:42.0\"}},{\"User\":{\"id\":1510495628760,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-11-12 22:07:08.0\"}},{\"User\":{\"id\":1511407581570,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82002,82003,82005,82006,82021,82023,82036,82033],\"pictureList\":[],\"date\":\"2017-11-23 11:26:21.0\"}},{\"User\":{\"id\":1511761906715,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-11-27 13:51:46.0\"}},{\"User\":{\"id\":1511965911349,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-11-29 22:31:51.0\"}},{\"User\":{\"id\":1512387063078,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-12-04 19:31:03.0\"}},{\"User\":{\"id\":1512531601485,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82001],\"pictureList\":[],\"date\":\"2017-12-06 11:40:01.0\"}},{\"User\":{\"id\":1514623064133,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"date\":\"2017-12-30 16:37:44.0\"}},{\"User\":{\"id\":1514625918255,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82002,93793],\"date\":\"2017-12-30 17:25:18.0\"}},{\"User\":{\"id\":1514626163032,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"date\":\"2017-12-30 17:29:23.0\"}},{\"User\":{\"id\":1514858422969,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[93793,82056],\"date\":\"2018-01-02 10:00:22.0\"}},{\"User\":{\"id\":1515565976140,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"傻\",\"contactIdList\":[82003,82021],\"date\":\"2018-01-10 14:32:56.0\"}},{\"User\":{\"id\":1518218350585,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"date\":\"2018-02-10 07:19:10.0\"}},{\"User\":{\"id\":1519778917280,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"date\":\"2018-02-28 08:48:37.0\"}}],\"code\":200,\"msg\":\"success\"}', '2018-03-04 15:30:26', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520680590422, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":28709.2},\"code\":200,\"msg\":\"success\"}', '2018-03-10 11:16:30', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520681233526, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":28809.35},\"code\":200,\"msg\":\"success\"}', '2018-03-10 11:27:13', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520681278572, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":28809.35,\"test\":\"gda\"},\"code\":200,\"msg\":\"success\"}', '2018-03-10 11:27:58', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520681315261, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":28809.35},\"code\":200,\"msg\":\"success\"}', '2018-03-10 11:28:35', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520681361520, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":28809.35,\"test\":\"sfgr\"},\"code\":200,\"msg\":\"success\"}', '2018-03-10 11:29:21', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520681493656, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":28809.35},\"code\":200,\"msg\":\"success\"}', '2018-03-10 11:31:33', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520681641244, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":28809},\"code\":200,\"msg\":\"success\"}', '2018-03-10 11:34:01', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520681770042, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":28808.5},\"code\":200,\"msg\":\"success\"}', '2018-03-10 11:36:10', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520682056396, 82001, 1520680656479, '{\"User[]\":[{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82001,\"sex\":0,\"name\":\"测试改名2\",\"tag\":\"APIJSON User\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,70793,82034,93793,82021,82033,93794],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82004,\"sex\":0,\"name\":\"Tommy\",\"tag\":\"fasef\",\"head\":\"http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82009,\"sex\":0,\"name\":\"God\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82012,\"sex\":0,\"name\":\"Steve\",\"tag\":\"FEWE\",\"head\":\"http://static.oschina.net/uploads/user/1/3064_50.jpg?t=1449566001000\",\"contactIdList\":[82004,82002,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82020,\"sex\":0,\"name\":\"ORANGE\",\"head\":\"http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82022,\"sex\":0,\"name\":\"Internet\",\"head\":\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82023,\"sex\":0,\"name\":\"No1\",\"head\":\"http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82024,\"sex\":0,\"name\":\"Lemon\",\"head\":\"http://static.oschina.net/uploads/user/427/855532_50.jpg?t=1435030876000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82026,\"sex\":0,\"name\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82027,\"sex\":0,\"name\":\"Yong\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82029,\"sex\":0,\"name\":\"GASG\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82031,\"sex\":0,\"name\":\"Lemon\",\"head\":\"http://static.oschina.net/uploads/user/48/96331_50.jpg\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82032,\"sex\":0,\"name\":\"Stack\",\"tag\":\"fasdg\",\"head\":\"http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82036,\"sex\":0,\"name\":\"SAG\",\"head\":\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82037,\"sex\":0,\"name\":\"Test\",\"head\":\"http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82038,\"sex\":0,\"name\":\"Battle\",\"head\":\"http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82041,\"sex\":0,\"name\":\"Holo\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[38710,82001],\"pictureList\":[],\"date\":\"2017-03-04 17:59:34.0\"},{\"id\":82043,\"sex\":0,\"name\":\"Holiday\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[70793,82006],\"pictureList\":[],\"date\":\"2017-03-04 18:05:04.0\"},{\"id\":82045,\"sex\":0,\"name\":\"Green\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,82002,82003,1485246481130],\"pictureList\":[],\"date\":\"2017-03-04 18:22:39.0\"},{\"id\":82046,\"sex\":0,\"name\":\"Team\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[38710,82002,1485246481130],\"pictureList\":[],\"date\":\"2017-03-04 23:11:17.0\"},{\"id\":82047,\"sex\":0,\"name\":\"Tesla\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 00:02:05.0\"},{\"id\":82048,\"sex\":0,\"name\":\"Moto\",\"head\":\"http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 00:04:02.0\"},{\"id\":82049,\"sex\":0,\"name\":\"ITMan\",\"head\":\"http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 17:51:51.0\"},{\"id\":82050,\"sex\":0,\"name\":\"Parl\",\"head\":\"http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 17:52:52.0\"},{\"id\":82051,\"sex\":0,\"name\":\"Girl\",\"head\":\"http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 17:53:37.0\"},{\"id\":82052,\"sex\":0,\"name\":\"Unbrella\",\"head\":\"http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 17:57:54.0\"},{\"id\":82053,\"sex\":0,\"name\":\"Alice\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-05 23:25:42.0\"},{\"id\":82054,\"sex\":0,\"name\":\"Harvey\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-06 20:29:03.0\"},{\"id\":82057,\"sex\":0,\"name\":\"NullPointerExeption\",\"head\":\"http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-12 14:01:23.0\"},{\"id\":82058,\"sex\":0,\"name\":\"StupidBird\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82001,82002],\"pictureList\":[],\"date\":\"2017-03-12 19:23:04.0\"},{\"id\":90814,\"sex\":0,\"name\":\"007\",\"head\":\"http://static.oschina.net/uploads/user/51/102723_50.jpg?t=1449212504000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":93793,\"sex\":0,\"name\":\"Mike\",\"tag\":\"GES\",\"head\":\"http://static.oschina.net/uploads/user/48/96331_50.jpg\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":93794,\"sex\":0,\"name\":\"Lemon\",\"head\":\"http://static.oschina.net/uploads/user/48/97721_50.jpg?t=1451544779000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":1490109845208,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-21 23:24:05.0\"},{\"id\":1490427139175,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[38710,70793],\"pictureList\":[],\"date\":\"2017-03-25 15:32:19.0\"},{\"id\":1490427577823,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-25 15:39:37.0\"},{\"id\":1490584952968,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-03-27 11:22:32.0\"},{\"id\":1492936169722,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-04-23 16:29:29.0\"},{\"id\":1493480142628,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-04-29 23:35:42.0\"},{\"id\":1493747512860,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-03 01:51:52.0\"},{\"id\":1493747777770,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-03 01:56:17.0\"},{\"id\":1493748594003,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-03 02:09:54.0\"},{\"id\":1493748615711,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-03 02:10:15.0\"},{\"id\":1493749090643,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-03 02:18:10.0\"},{\"id\":1493836043151,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-04 02:27:23.0\"},{\"id\":1493883110132,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-04 15:31:50.0\"},{\"id\":1493890214167,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-04 17:30:14.0\"},{\"id\":1493890303473,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-05-04 17:31:43.0\"},{\"id\":1493890303474,\"sex\":0,\"name\":\"Test Post\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-06-12 23:50:44.0\"},{\"id\":1493890303475,\"sex\":0,\"name\":\"Test Post\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-06-12 23:51:23.0\"},{\"id\":1497792972314,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-06-18 21:36:12.0\"},{\"id\":1497792972315,\"sex\":0,\"name\":\"一二三\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-06-25 18:42:33.0\"},{\"id\":1499057230629,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-07-03 12:47:10.0\"},{\"id\":1500825221910,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-07-23 23:53:41.0\"},{\"id\":1502638023483,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-08-13 23:27:03.0\"},{\"id\":1502639062900,\"sex\":0,\"name\":\"TESLA\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-08-13 23:44:22.0\"},{\"id\":1502639424119,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-08-13 23:50:24.0\"},{\"id\":1507220582167,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-06 00:23:02.0\"},{\"id\":1508072071492,\"sex\":0,\"name\":\"赵钱孙李\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-15 20:54:31.0\"},{\"id\":1508072160401,\"sex\":0,\"name\":\"四五六\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-15 20:56:00.0\"},{\"id\":1508072202871,\"sex\":0,\"name\":\"七八九十\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-10-15 20:56:42.0\"},{\"id\":1510495628760,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-11-12 22:07:08.0\"},{\"id\":1511407581570,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82002,82003,82005,82006,82021,82023,82036,82033],\"pictureList\":[],\"date\":\"2017-11-23 11:26:21.0\"},{\"id\":1511761906715,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-11-27 13:51:46.0\"},{\"id\":1511965911349,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-11-29 22:31:51.0\"},{\"id\":1512387063078,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[],\"pictureList\":[],\"date\":\"2017-12-04 19:31:03.0\"},{\"id\":1512531601485,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82001],\"pictureList\":[],\"date\":\"2017-12-06 11:40:01.0\"},{\"id\":1514623064133,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"date\":\"2017-12-30 16:37:44.0\"},{\"id\":1514625918255,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82002,93793],\"date\":\"2017-12-30 17:25:18.0\"},{\"id\":1514626163032,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"date\":\"2017-12-30 17:29:23.0\"},{\"id\":1514858422969,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[93793,82056],\"date\":\"2018-01-02 10:00:22.0\"},{\"id\":1515565976140,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"傻\",\"contactIdList\":[82003,82021],\"date\":\"2018-01-10 14:32:56.0\"},{\"id\":1518218350585,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"date\":\"2018-02-10 07:19:10.0\"},{\"id\":1519778917280,\"sex\":0,\"name\":\"APIJSONUser\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"date\":\"2018-02-28 08:48:37.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-03-10 11:40:56', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520682589957, 82001, 1520682468690, '{\"Moment\":{\"id\":1520086403692,\"userId\":82001,\"date\":\"2018-03-03 22:13:23.0\",\"content\":\"测试新增动态\",\"praiseUserIdList\":[],\"pictureList\":[\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"]},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"},\"code\":200,\"msg\":\"success\"}', '2018-03-10 11:49:49', NULL, NULL); INSERT INTO `TestRecord` VALUES (1520682742215, 82001, 1519526273822, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":28808},\"code\":200,\"msg\":\"success\"}', '2018-03-10 11:52:22', NULL, NULL); INSERT INTO `TestRecord` VALUES (1532879615717, 82001, 1521907333048, '{\"User-id[]\":[82002,82003,82005,82041,82045,82058,1512531601485,1528254173621],\"Moment[]\":[{\"id\":32,\"userId\":82002,\"date\":\"2017-02-08 16:06:11.0\",\"praiseUserIdList\":[38710,82002,82001],\"pictureList\":[\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\",\"https://camo.githubusercontent.com/5f5c4e0c4dc539c34e8eae8ac0cbc6dccdfee5d3/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343533333831362d323032373434343231382e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},{\"id\":1508053762227,\"userId\":82003,\"date\":\"2017-10-15 15:49:22.0\",\"content\":\"我也试试\",\"praiseUserIdList\":[1515565976140,82001],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},{\"id\":1508072491570,\"userId\":82002,\"date\":\"2017-10-15 21:01:31.0\",\"content\":\"有点冷~\",\"praiseUserIdList\":[82001,82002],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},{\"id\":1508073178489,\"userId\":82045,\"date\":\"2017-10-15 21:12:58.0\",\"content\":\"发动态\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},{\"id\":1514017444961,\"userId\":82002,\"date\":\"2017-12-23 16:24:04.0\",\"content\":\"123479589679\",\"praiseUserIdList\":[82002,1520242280259,82001,70793,1524042900591,1528264711016],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},{\"id\":1531062713966,\"userId\":82002,\"date\":\"2018-07-08 23:11:53.0\",\"content\":\"云南好美啊( ◞˟૩˟)◞\",\"praiseUserIdList\":[82001,82005,38710,70793,93793,82003,1531969715979],\"pictureList\":[\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1531072366455&di=c0d4b15b2c4b70aad49e6ae747f60742&imgtype=0&src=http%3A%2F%2Fpic1.win4000.com%2Fwallpaper%2F3%2F57a2a41f57d09.jpg\",\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1531072499167&di=5b5621d117edbc5d344a03ba0a6b580b&imgtype=0&src=http%3A%2F%2Fi0.szhomeimg.com%2FUploadFiles%2FBBS%2F2006%2F08%2F05%2F24752199_79122.91.jpg\"]}],\"code\":200,\"msg\":\"success\"}', '2018-07-29 15:53:35', NULL, NULL); INSERT INTO `TestRecord` VALUES (1532879625816, 82001, 1521907333047, '{\"[]\":[{\"Moment\":{\"id\":301,\"userId\":93793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-301\",\"praiseUserIdList\":[38710,93793,82003,82005,82040,82055,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"Comment\":{\"id\":45,\"momentId\":301,\"content\":\"This is a Content...-45\"},\"join\":\"&/User/id@,</Comment/momentId@\"},{\"Moment\":{\"id\":58,\"userId\":90814,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-435\",\"praiseUserIdList\":[38710,82003,82005,93793,82006,82044,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\"]},\"Comment\":{\"id\":13,\"momentId\":58,\"content\":\"This is a Content...-13\"},\"join\":\"&/User/id@,</Comment/momentId@\"},{\"Moment\":{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},\"Comment\":{\"id\":68,\"momentId\":371,\"content\":\"This is a Content...-68\"},\"join\":\"&/User/id@,</Comment/momentId@\"},{\"Moment\":{\"id\":170,\"userId\":70793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-73\",\"praiseUserIdList\":[82044,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"Comment\":{\"id\":44,\"momentId\":170,\"content\":\"This is a Content...-44\"},\"join\":\"&/User/id@,</Comment/momentId@\"},{\"Moment\":{\"id\":470,\"userId\":38710,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-470\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"},\"Comment\":{\"id\":4,\"momentId\":470,\"content\":\"This is a Content...-4\"},\"join\":\"&/User/id@,</Comment/momentId@\"},{\"Moment\":{\"id\":12,\"userId\":70793,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"1111534034\",\"praiseUserIdList\":[70793,93793,82044,82040,82055,90814,38710,82002,82006,1508072105320,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a4f5aadef3c886f028c79b4808613a/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343932353935372d313732303737333630382e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"Comment\":{\"id\":162,\"momentId\":12,\"content\":\"This is a Content...-162\"},\"join\":\"&/User/id@,</Comment/momentId@\"},{\"Moment\":{\"id\":15,\"userId\":70793,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"APIJSON is a JSON Transmission Structure Protocol…\",\"praiseUserIdList\":[82055,82002,38710],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"Comment\":{\"id\":176,\"momentId\":15,\"content\":\"thank you\"},\"join\":\"&/User/id@,</Comment/momentId@\"},{\"Moment\":{\"id\":543,\"userId\":93793,\"date\":\"2017-02-08 16:06:11.0\",\"praiseUserIdList\":[82001],\"pictureList\":[\"https://camo.githubusercontent.com/5f5c4e0c4dc539c34e8eae8ac0cbc6dccdfee5d3/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343533333831362d323032373434343231382e6a7067\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"Comment\":{\"id\":1490777905437,\"momentId\":543,\"content\":\"rr\"},\"join\":\"&/User/id@,</Comment/momentId@\"},{\"Moment\":{\"id\":32,\"userId\":82002,\"date\":\"2017-02-08 16:06:11.0\",\"praiseUserIdList\":[38710,82002,82001],\"pictureList\":[\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\",\"https://camo.githubusercontent.com/5f5c4e0c4dc539c34e8eae8ac0cbc6dccdfee5d3/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343533333831362d323032373434343231382e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},\"Comment\":{\"id\":1512035117021,\"momentId\":32,\"content\":\"图片看不了啊\"},\"join\":\"&/User/id@,</Comment/momentId@\"},{\"Moment\":{\"id\":551,\"userId\":70793,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"test\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"Comment\":{\"id\":1490864039264,\"momentId\":551,\"content\":\"Wonderful!\"},\"join\":\"&/User/id@,</Comment/momentId@\"}],\"code\":200,\"msg\":\"success\"}', '2018-07-29 15:53:45', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140211536, 82001, 1521907303540, '{\"User[]\":[{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[1520242280259,82030,82025,82003,93793,82002,1531969715979,82006,82005],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:16:51', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140331684, 82001, 1521905895591, '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"count\":11},\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:18:51', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140553624, 82001, 1521903828410, '{\"User\":{\"code\":200,\"msg\":\"success\",\"count\":70},\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:22:33', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140565380, 82001, 1511796208670, '{\"Verify\":{\"code\":200,\"msg\":\"success\",\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:22:45', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140569777, 82001, 1511796155277, '{\"Verify\":{\"id\":1533140566615,\"type\":0,\"phone\":13000082001,\"verify\":10867,\"date\":\"2018-08-02 00:22:46.0\"},\"tag\":\"Verify\",\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:22:49', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140576601, 82001, 1511796155277, '{\"Verify\":{\"id\":1533140571205,\"type\":0,\"phone\":13000082001,\"verify\":2383,\"date\":\"2018-08-02 00:22:51.0\"},\"tag\":\"Verify\",\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:22:56', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140600338, 82001, 1511967853340, '{\"[]\":[{\"Moment\":{\"id\":301,\"userId\":93793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-301\",\"praiseUserIdList\":[38710,93793,82003,82005,82040,82055,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":93793,\"name\":\"Mike\",\"head\":\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"},\"User[]\":[{\"id\":38710,\"name\":\"TommyLemon\"},{\"id\":82002,\"name\":\"Happy~\"},{\"id\":82003,\"name\":\"Wechat\"},{\"id\":82005,\"name\":\"Jan\"},{\"id\":82040,\"name\":\"Dream\"},{\"id\":82055,\"name\":\"Solid\"},{\"id\":93793,\"name\":\"Mike\"}],\"[]\":[{\"Comment\":{\"id\":45,\"toId\":0,\"userId\":93793,\"momentId\":301,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-45\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":51,\"toId\":45,\"userId\":82003,\"momentId\":301,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-51\"},\"User\":{\"id\":82003,\"name\":\"Wechat\"}},{\"Comment\":{\"id\":76,\"toId\":45,\"userId\":93793,\"momentId\":301,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-76\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":120,\"toId\":0,\"userId\":93793,\"momentId\":301,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-110\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":124,\"toId\":0,\"userId\":82001,\"momentId\":301,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-114\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":1490781009548,\"toId\":51,\"userId\":82001,\"momentId\":301,\"date\":\"2017-03-29 17:50:09.0\",\"content\":\"3\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}}]},{\"Moment\":{\"id\":58,\"userId\":90814,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-435\",\"praiseUserIdList\":[38710,82003,82005,93793,82006,82044,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\"]},\"User\":{\"id\":90814,\"name\":\"007\",\"head\":\"http://static.oschina.net/uploads/user/51/102723_50.jpg?t=1449212504000\"},\"User[]\":[{\"id\":38710,\"name\":\"TommyLemon\"},{\"id\":82001,\"name\":\"测试改名\"},{\"id\":82003,\"name\":\"Wechat\"},{\"id\":82005,\"name\":\"Jan\"},{\"id\":82006,\"name\":\"Meria\"},{\"id\":82044,\"name\":\"Love\"},{\"id\":93793,\"name\":\"Mike\"}],\"[]\":[{\"Comment\":{\"id\":13,\"toId\":0,\"userId\":82005,\"momentId\":58,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-13\"},\"User\":{\"id\":82005,\"name\":\"Jan\"}},{\"Comment\":{\"id\":77,\"toId\":13,\"userId\":93793,\"momentId\":58,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-77\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":97,\"toId\":13,\"userId\":82006,\"momentId\":58,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-97\"},\"User\":{\"id\":82006,\"name\":\"Meria\"}},{\"Comment\":{\"id\":167,\"userId\":82001,\"momentId\":58,\"date\":\"2017-03-25 19:48:41.0\",\"content\":\"Nice!\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":173,\"userId\":38710,\"momentId\":58,\"date\":\"2017-03-25 20:25:13.0\",\"content\":\"Good\"},\"User\":{\"id\":38710,\"name\":\"TommyLemon\"}},{\"Comment\":{\"id\":188,\"toId\":97,\"userId\":82001,\"momentId\":58,\"date\":\"2017-03-26 15:21:32.0\",\"content\":\"1646\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}}]},{\"Moment\":{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},\"User[]\":[{\"id\":82001,\"name\":\"测试改名\"},{\"id\":82002,\"name\":\"Happy~\"},{\"id\":82003,\"name\":\"Wechat\"},{\"id\":82005,\"name\":\"Jan\"},{\"id\":82006,\"name\":\"Meria\"},{\"id\":82040,\"name\":\"Dream\"},{\"id\":90814,\"name\":\"007\"},{\"id\":93793,\"name\":\"Mike\"}],\"[]\":[{\"Comment\":{\"id\":68,\"toId\":0,\"userId\":82005,\"momentId\":371,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-68\"},\"User\":{\"id\":82005,\"name\":\"Jan\"}},{\"Comment\":{\"id\":157,\"userId\":93793,\"momentId\":371,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-157\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":110,\"toId\":0,\"userId\":93793,\"momentId\":371,\"date\":\"2017-02-01 19:23:24.0\",\"content\":\"This is a Content...-110\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":114,\"toId\":0,\"userId\":82001,\"momentId\":371,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-114\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":115,\"toId\":0,\"userId\":38710,\"momentId\":371,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-115\"},\"User\":{\"id\":38710,\"name\":\"TommyLemon\"}},{\"Comment\":{\"id\":116,\"toId\":0,\"userId\":70793,\"momentId\":371,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-116\"},\"User\":{\"id\":70793,\"name\":\"Strong\"}}]},{\"Moment\":{\"id\":170,\"userId\":70793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-73\",\"praiseUserIdList\":[82044,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"User[]\":[{\"id\":82001,\"name\":\"测试改名\"},{\"id\":82002,\"name\":\"Happy~\"},{\"id\":82044,\"name\":\"Love\"}],\"[]\":[{\"Comment\":{\"id\":44,\"toId\":0,\"userId\":82003,\"momentId\":170,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-44\"},\"User\":{\"id\":82003,\"name\":\"Wechat\"}},{\"Comment\":{\"id\":54,\"toId\":0,\"userId\":82004,\"momentId\":170,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-54\"},\"User\":{\"id\":82004,\"name\":\"Tommy\"}},{\"Comment\":{\"id\":99,\"toId\":44,\"userId\":70793,\"momentId\":170,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-99\"},\"User\":{\"id\":70793,\"name\":\"Strong\"}},{\"Comment\":{\"id\":206,\"toId\":54,\"userId\":82001,\"momentId\":170,\"date\":\"2017-03-29 11:04:23.0\",\"content\":\"ejej\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":1490780759866,\"toId\":99,\"userId\":82001,\"momentId\":170,\"date\":\"2017-03-29 17:45:59.0\",\"content\":\"99\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":1490863661426,\"toId\":1490780759866,\"userId\":70793,\"momentId\":170,\"date\":\"2017-03-30 16:47:41.0\",\"content\":\"66\"},\"User\":{\"id\":70793,\"name\":\"Strong\"}}]},{\"Moment\":{\"id\":470,\"userId\":38710,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-470\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"},\"User[]\":[{\"id\":82001,\"name\":\"测试改名\"}],\"[]\":[{\"Comment\":{\"id\":4,\"toId\":0,\"userId\":38710,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-4\"},\"User\":{\"id\":38710,\"name\":\"TommyLemon\"}},{\"Comment\":{\"id\":22,\"toId\":221,\"userId\":82001,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"测试修改评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":47,\"toId\":4,\"userId\":70793,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-47\"},\"User\":{\"id\":70793,\"name\":\"Strong\"}},{\"Comment\":{\"id\":1490863507114,\"toId\":4,\"userId\":82003,\"momentId\":470,\"date\":\"2017-03-30 16:45:07.0\",\"content\":\"yes\"},\"User\":{\"id\":82003,\"name\":\"Wechat\"}},{\"Comment\":{\"id\":1490863903900,\"toId\":0,\"userId\":82006,\"momentId\":470,\"date\":\"2017-03-30 16:51:43.0\",\"content\":\"SOGA\"},\"User\":{\"id\":82006,\"name\":\"Meria\"}},{\"Comment\":{\"id\":1491740899179,\"toId\":0,\"userId\":82001,\"momentId\":470,\"date\":\"2017-04-09 20:28:19.0\",\"content\":\"www\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}}]}],\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:23:20', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140607459, 82001, 1511964176689, '{\"[]\":[{\"Comment\":{\"id\":176,\"toId\":166,\"userId\":38710,\"momentId\":15,\"date\":\"2017-03-25 20:28:03.0\",\"content\":\"thank you\"},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"}},{\"Comment\":{\"id\":1490863469638,\"toId\":0,\"userId\":82002,\"momentId\":15,\"date\":\"2017-03-30 16:44:29.0\",\"content\":\"Just do it\"},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"}},{\"Comment\":{\"id\":1490875660259,\"toId\":1490863469638,\"userId\":82055,\"momentId\":15,\"date\":\"2017-03-30 20:07:40.0\",\"content\":\"I prove wht you said(??????)\"},\"User\":{\"id\":82055,\"name\":\"Solid\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1508227456407,\"toId\":0,\"userId\":82001,\"momentId\":15,\"date\":\"2017-10-17 16:04:16.0\",\"content\":\"hsh\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1509346606036,\"toId\":0,\"userId\":82001,\"momentId\":15,\"date\":\"2017-10-30 14:56:46.0\",\"content\":\"测\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1520332892486,\"userId\":82001,\"momentId\":15,\"date\":\"2018-03-06 18:41:32.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1525933236313,\"userId\":82001,\"momentId\":15,\"date\":\"2018-05-10 14:20:36.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1525933255901,\"userId\":82001,\"momentId\":15,\"date\":\"2018-05-10 14:20:55.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1527949266037,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-02 22:21:06.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1528339777338,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-07 10:49:37.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1528366915282,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-07 18:21:55.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1528366931410,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-07 18:22:11.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1528392773597,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-08 01:32:53.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529034360708,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-15 11:46:00.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529078537044,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-16 00:02:17.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529401004622,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-19 17:36:44.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529401505690,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-19 17:45:05.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529468113356,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-20 12:15:13.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529724026842,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-23 11:20:26.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529909214303,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-25 14:46:54.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}}],\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:23:27', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140610051, 82001, 1511969630372, '{\"Comment\":{\"code\":200,\"msg\":\"success\",\"id\":1533140601544,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:23:30', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140615913, 82001, 1521905895591, '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"count\":19},\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:23:35', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140617466, 82001, 1521905868719, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":9832.86},\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:23:37', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140619001, 82001, 1521905680680, '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"id\":1533140610656,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:23:39', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140623032, 82001, 1521904756674, '{\"User[]\":[{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[1520242280259,82030,82025,82003,93793,82002,1531969715979,82006,82005],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:23:43', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140626067, 82001, 1521904653622, '{\"User[]\":[{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82005,\"sex\":1,\"name\":\"Jan\",\"tag\":\"AG\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:23:46', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140629710, 82001, 1521903761689, '{\"User\":{\"code\":200,\"msg\":\"success\",\"count\":117},\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:23:49', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140633031, 82001, 1521902110680, '{\"[]\":[{\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[1520242280259,82030,82025,82003,93793,82002,1531969715979,82006,82005],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82003,\"sex\":1,\"name\":\"Wechat\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}}],\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:23:53', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140636466, 82001, 1521902033332, '{\"[]\":[{\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[1520242280259,82030,82025,82003,93793,82002,1531969715979,82006,82005],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82003,\"sex\":1,\"name\":\"Wechat\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}}],\"total\":119,\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:23:56', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140640270, 82001, 1521901682846, '{\"[]\":[{\"Moment\":{\"userId\":38710,\"id\":235}},{\"Moment\":{\"userId\":38710,\"id\":470}},{\"Moment\":{\"userId\":38710,\"id\":511}},{\"Moment\":{\"userId\":38710,\"id\":595}},{\"Moment\":{\"userId\":38710,\"id\":704}},{\"Moment\":{\"userId\":38710,\"id\":1491200468898}},{\"Moment\":{\"userId\":38710,\"id\":1493835799335}},{\"Moment\":{\"userId\":38710,\"id\":1512314438990}},{\"Moment\":{\"userId\":38710,\"id\":1513094436910}},{\"Moment\":{\"userId\":38710,\"id\":1533140171134}}],\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:24:00', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140662591, 82001, 1511970009072, '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"id\":1533140610716,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:24:22', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140664191, 82001, 1511969630372, '{\"Comment\":{\"code\":200,\"msg\":\"success\",\"id\":1533140610714,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:24:24', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140666518, 82001, 1511963677325, '{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[1520242280259,82030,82025,82003,93793,82002,1531969715979,82006,82005],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:24:26', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140668867, 82001, 1511689914599, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":9833.01},\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:24:28', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140694117, 82001, 1511963990072, '{\"Moment\":{\"id\":15,\"userId\":70793,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"APIJSON is a JSON Transmission Structure Protocol…\",\"praiseUserIdList\":[82055,82002,38710,82001],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"User[]\":[{\"id\":38710,\"name\":\"TommyLemon\"},{\"id\":82001,\"name\":\"测试改名\"},{\"id\":82002,\"name\":\"Happy~\"},{\"id\":82055,\"name\":\"Solid\"}],\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:24:54', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533140697885, 82001, 1511963990072, '{\"Moment\":{\"id\":15,\"userId\":70793,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"APIJSON is a JSON Transmission Structure Protocol…\",\"praiseUserIdList\":[82055,82002,38710],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"User[]\":[{\"id\":38710,\"name\":\"TommyLemon\"},{\"id\":82002,\"name\":\"Happy~\"},{\"id\":82055,\"name\":\"Solid\"}],\"code\":200,\"msg\":\"success\"}', '2018-08-01 16:24:57', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533396720929, 82001, 1511796155277, '{\"Verify\":{\"id\":1533396718012,\"type\":0,\"phone\":13000082001,\"verify\":4995,\"date\":\"2018-08-04 23:31:58.0\"},\"tag\":\"Verify\",\"code\":200,\"msg\":\"success\"}', '2018-08-04 15:32:00', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533396731930, 82001, 1521901682846, '{\"[]\":[{\"Moment\":{\"userId\":38710,\"id\":235}},{\"Moment\":{\"userId\":38710,\"id\":470}},{\"Moment\":{\"userId\":38710,\"id\":511}},{\"Moment\":{\"userId\":38710,\"id\":595}},{\"Moment\":{\"userId\":38710,\"id\":704}},{\"Moment\":{\"userId\":38710,\"id\":1491200468898}},{\"Moment\":{\"userId\":38710,\"id\":1493835799335}},{\"Moment\":{\"userId\":38710,\"id\":1512314438990}},{\"Moment\":{\"userId\":38710,\"id\":1513094436910}},{\"Moment\":{\"userId\":38710,\"id\":1533395051809}}],\"code\":200,\"msg\":\"success\"}', '2018-08-04 15:32:11', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533396739099, 82001, 1511689914599, '{\"Privacy\":{\"id\":82001,\"certified\":1,\"phone\":13000082001,\"balance\":9835.11},\"code\":200,\"msg\":\"success\"}', '2018-08-04 15:32:19', NULL, NULL); INSERT INTO `TestRecord` VALUES (1533396867840, 82001, 1511964176689, '{\"[]\":[{\"Comment\":{\"id\":176,\"toId\":166,\"userId\":38710,\"momentId\":15,\"date\":\"2017-03-25 20:28:03.0\",\"content\":\"thank you\"},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"}},{\"Comment\":{\"id\":1490863469638,\"toId\":0,\"userId\":82002,\"momentId\":15,\"date\":\"2017-03-30 16:44:29.0\",\"content\":\"Just do it\"},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"}},{\"Comment\":{\"id\":1490875660259,\"toId\":1490863469638,\"userId\":82055,\"momentId\":15,\"date\":\"2017-03-30 20:07:40.0\",\"content\":\"I prove wht you said(??????)\"},\"User\":{\"id\":82055,\"name\":\"Solid\",\"head\":\"http://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1508227456407,\"toId\":0,\"userId\":82001,\"momentId\":15,\"date\":\"2017-10-17 16:04:16.0\",\"content\":\"hsh\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1509346606036,\"toId\":0,\"userId\":82001,\"momentId\":15,\"date\":\"2017-10-30 14:56:46.0\",\"content\":\"测\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1525933255901,\"userId\":82001,\"momentId\":15,\"date\":\"2018-05-10 14:20:55.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1527949266037,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-02 22:21:06.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1528339777338,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-07 10:49:37.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1528366915282,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-07 18:21:55.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1528366931410,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-07 18:22:11.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1528392773597,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-08 01:32:53.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529034360708,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-15 11:46:00.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529078537044,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-16 00:02:17.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529401004622,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-19 17:36:44.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529401505690,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-19 17:45:05.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529468113356,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-20 12:15:13.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529724026842,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-23 11:20:26.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1529909214303,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-25 14:46:54.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1530276831779,\"userId\":82001,\"momentId\":15,\"date\":\"2018-06-29 20:53:51.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}},{\"Comment\":{\"id\":1531365764793,\"userId\":82001,\"momentId\":15,\"date\":\"2018-07-12 11:22:44.0\",\"content\":\"测试新增评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\"}}],\"code\":200,\"msg\":\"success\"}', '2018-08-04 15:34:27', NULL, NULL); INSERT INTO `TestRecord` VALUES (1534152309932, 82001, 1521905895591, '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"count\":9},\"code\":200,\"msg\":\"success\"}', '2018-08-13 09:25:09', NULL, NULL); INSERT INTO `TestRecord` VALUES (1534152344226, 82001, 1521903828410, '{\"User\":{\"code\":200,\"msg\":\"success\",\"count\":71},\"code\":200,\"msg\":\"success\"}', '2018-08-13 09:25:44', NULL, NULL); INSERT INTO `TestRecord` VALUES (1534152350031, 82001, 1521903761689, '{\"User\":{\"code\":200,\"msg\":\"success\",\"count\":118},\"code\":200,\"msg\":\"success\"}', '2018-08-13 09:25:50', NULL, NULL); INSERT INTO `TestRecord` VALUES (1534152388437, 82001, 1521905895591, '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"count\":10},\"code\":200,\"msg\":\"success\"}', '2018-08-13 09:26:28', NULL, NULL); INSERT INTO `TestRecord` VALUES (1534152406351, 82001, 1521902033332, '{\"[]\":[{\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82030,82025,82003,93793,82006,82002,1520242280259,82005,1531969715979,1532188114543,82024],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82003,\"sex\":1,\"name\":\"Wechat\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}}],\"total\":120,\"code\":200,\"msg\":\"success\"}', '2018-08-13 09:26:46', NULL, NULL); INSERT INTO `TestRecord` VALUES (1534152424378, 82001, 1521901682846, '{\"[]\":[{\"Moment\":{\"userId\":38710,\"id\":235}},{\"Moment\":{\"userId\":38710,\"id\":470}},{\"Moment\":{\"userId\":38710,\"id\":511}},{\"Moment\":{\"userId\":38710,\"id\":595}},{\"Moment\":{\"userId\":38710,\"id\":704}},{\"Moment\":{\"userId\":38710,\"id\":1491200468898}},{\"Moment\":{\"userId\":38710,\"id\":1493835799335}},{\"Moment\":{\"userId\":38710,\"id\":1512314438990}},{\"Moment\":{\"userId\":38710,\"id\":1513094436910}},{\"Moment\":{\"userId\":38710,\"id\":1534152251941}}],\"code\":200,\"msg\":\"success\"}', '2018-08-13 09:27:04', NULL, NULL); INSERT INTO `TestRecord` VALUES (1534241166066, 82001, 1521901682846, '{\"[]\":[{\"Moment\":{\"userId\":38710,\"id\":235}},{\"Moment\":{\"userId\":38710,\"id\":470}},{\"Moment\":{\"userId\":38710,\"id\":511}},{\"Moment\":{\"userId\":38710,\"id\":595}},{\"Moment\":{\"userId\":38710,\"id\":704}},{\"Moment\":{\"userId\":38710,\"id\":1491200468898}},{\"Moment\":{\"userId\":38710,\"id\":1493835799335}},{\"Moment\":{\"userId\":38710,\"id\":1512314438990}},{\"Moment\":{\"userId\":38710,\"id\":1513094436910}},{\"Moment\":{\"userId\":38710,\"id\":1534241152403}}],\"code\":200,\"msg\":\"success\"}', '2018-08-14 10:06:06', NULL, NULL); INSERT INTO `TestRecord` VALUES (1534477342518, 82001, 1521907303540, '{\"User[]\":[{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82030,82025,82003,93793,82006,82002,1520242280259,82005,1531969715979,82024],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-08-17 03:42:22', NULL, NULL); INSERT INTO `TestRecord` VALUES (1534776475640, 82001, 1521901610784, '{\"[]\":[{\"Moment\":{\"userId\":38710,\"maxId\":1534776429151}},{\"Moment\":{\"userId\":70793,\"maxId\":551}},{\"Moment\":{\"userId\":82001,\"maxId\":1534776370291}},{\"Moment\":{\"userId\":82002,\"maxId\":1531062713966}},{\"Moment\":{\"userId\":82003,\"maxId\":1508053762227}},{\"Moment\":{\"userId\":82045,\"maxId\":1508073178489}},{\"Moment\":{\"userId\":82056,\"maxId\":1514858533480}},{\"Moment\":{\"userId\":93793,\"maxId\":1516086423441}},{\"Moment\":{\"userId\":1520242280259,\"maxId\":1520242333325}},{\"Moment\":{\"userId\":1523626157302,\"maxId\":1523936332614}}],\"code\":200,\"msg\":\"success\"}', '2018-08-20 14:47:55', NULL, NULL); INSERT INTO `TestRecord` VALUES (1534780207036, 82001, 1521907333047, '{\"[]\":[{\"Moment\":{\"id\":470,\"userId\":38710,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-470\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"},\"Comment\":{\"id\":47,\"momentId\":470,\"content\":\"This is a Content...-47\"}},{\"Moment\":{\"id\":470,\"userId\":38710,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-470\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"},\"Comment\":{\"id\":47,\"momentId\":470,\"content\":\"This is a Content...-47\"}},{\"Moment\":{\"id\":170,\"userId\":70793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-73\",\"praiseUserIdList\":[82044,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"Comment\":{\"id\":99,\"momentId\":170,\"content\":\"This is a Content...-99\"}},{\"Moment\":{\"id\":470,\"userId\":38710,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-470\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"},\"Comment\":{\"id\":47,\"momentId\":470,\"content\":\"This is a Content...-47\"}},{\"Moment\":{\"id\":170,\"userId\":70793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-73\",\"praiseUserIdList\":[82044,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"Comment\":{\"id\":99,\"momentId\":170,\"content\":\"This is a Content...-99\"}},{\"Moment\":{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},\"Comment\":{\"id\":115,\"momentId\":371,\"content\":\"This is a Content...-115\"}},{\"Moment\":{\"id\":170,\"userId\":70793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-73\",\"praiseUserIdList\":[82044,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"Comment\":{\"id\":99,\"momentId\":170,\"content\":\"This is a Content...-99\"}},{\"Moment\":{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},\"Comment\":{\"id\":115,\"momentId\":371,\"content\":\"This is a Content...-115\"}},{\"Moment\":{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},\"Comment\":{\"id\":115,\"momentId\":371,\"content\":\"This is a Content...-115\"}},{\"Moment\":{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},\"Comment\":{\"id\":115,\"momentId\":371,\"content\":\"This is a Content...-115\"}}],\"code\":200,\"msg\":\"success\"}', '2018-08-20 15:50:07', NULL, NULL); INSERT INTO `TestRecord` VALUES (1536484351109, 82001, 1511963677325, '{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793,82012,82028,82034,82021,82006,82005,82030,82035],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-09-09 09:12:31', NULL, NULL); INSERT INTO `TestRecord` VALUES (1536484428955, 82001, 1511963677325, '{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793,82012,82028,82034,82021,82006,82005,82030,82035],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-09-09 09:13:48', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025782935, 82001, 1521901746809, '{\"[]\":[{\"User\":{\"name\":\"赵钱孙李\",\"id\":1508072071492}},{\"User\":{\"name\":\"测试改名\",\"id\":82001}},{\"User\":{\"name\":\"梦\",\"id\":1528264711016}},{\"User\":{\"name\":\"宁旭\",\"id\":1532188114543}},{\"User\":{\"name\":\"四五六\",\"id\":1508072160401}},{\"User\":{\"name\":\"哈哈哈\",\"id\":1524042900591}},{\"User\":{\"name\":\"周吴郑王\",\"id\":1508072105320}},{\"User\":{\"name\":\"七八九十\",\"id\":1508072202871}},{\"User\":{\"name\":\"一二三\",\"id\":1499057230629}},{\"User\":{\"name\":\"Yong\",\"id\":82027}}],\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:36:22', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025788659, 82001, 1521901682846, '{\"[]\":[{\"Moment\":{\"userId\":38710,\"id\":235}},{\"Moment\":{\"userId\":38710,\"id\":470}},{\"Moment\":{\"userId\":38710,\"id\":511}},{\"Moment\":{\"userId\":38710,\"id\":595}},{\"Moment\":{\"userId\":38710,\"id\":704}},{\"Moment\":{\"userId\":38710,\"id\":1491200468898}},{\"Moment\":{\"userId\":38710,\"id\":1493835799335}},{\"Moment\":{\"userId\":38710,\"id\":1512314438990}},{\"Moment\":{\"userId\":38710,\"id\":1513094436910}},{\"Moment\":{\"userId\":38710,\"id\":1537025625613}}],\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:36:28', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025791504, 82001, 1521901610784, '{\"[]\":[{\"Moment\":{\"userId\":38710,\"maxId\":1537025707417}},{\"Moment\":{\"userId\":70793,\"maxId\":551}},{\"Moment\":{\"userId\":82001,\"maxId\":1537025634931}},{\"Moment\":{\"userId\":82002,\"maxId\":1531062713966}},{\"Moment\":{\"userId\":82003,\"maxId\":1536805585275}},{\"Moment\":{\"userId\":82045,\"maxId\":1508073178489}},{\"Moment\":{\"userId\":82056,\"maxId\":1514858533480}},{\"Moment\":{\"userId\":93793,\"maxId\":1516086423441}},{\"Moment\":{\"userId\":1520242280259,\"maxId\":1520242333325}},{\"Moment\":{\"userId\":1523626157302,\"maxId\":1523936332614}}],\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:36:31', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025795194, 82001, 1521902033332, '{\"[]\":[{\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793,82012,82028,82021,82006,82030,82035],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82003,\"sex\":1,\"name\":\"Wechat\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}}],\"total\":121,\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:36:35', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025798273, 82001, 1521903828410, '{\"User\":{\"code\":200,\"msg\":\"success\",\"count\":72},\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:36:38', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025799810, 82001, 1521903761689, '{\"User\":{\"code\":200,\"msg\":\"success\",\"count\":119},\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:36:39', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025801244, 82001, 1521902110680, '{\"[]\":[{\"User\":{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793,82012,82028,82021,82006,82030,82035],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}},{\"User\":{\"id\":82003,\"sex\":1,\"name\":\"Wechat\",\"head\":\"http://common.cnblogs.com/images/wechat.png\",\"contactIdList\":[82001,93793],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}}],\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:36:41', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025812404, 82001, 1521904653622, '{\"User[]\":[{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82002,\"sex\":1,\"name\":\"Happy~\",\"tag\":\"iOS\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\",\"contactIdList\":[82005,82001,38710],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82005,\"sex\":1,\"name\":\"Jan\",\"tag\":\"AG\",\"head\":\"http://my.oschina.net/img/portrait.gif?t=1451961935000\",\"contactIdList\":[82001,38710,1532439021068],\"pictureList\":[],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:36:52', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025813024, 82001, 1521904617127, '{\"Moment\":{\"userId\":93793,\"praiseUserIdList\":[38710,93793,82003,82005,82040,82055,82002,82001],\"isPraised\":true},\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:36:53', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025814838, 82001, 1521904756674, '{\"User[]\":[{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793,82012,82028,82021,82006,82030,82035],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:36:54', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025828828, 82001, 1521907303540, '{\"User[]\":[{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793,82012,82028,82021,82006,82030,82035],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:37:08', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025834254, 82001, 1521907333048, '{\"User-id[]\":[82002,82003,82005,82041,82045,82058,1512531601485,1528254173621],\"Moment[]\":[{\"id\":32,\"userId\":82002,\"date\":\"2017-02-08 16:06:11.0\",\"praiseUserIdList\":[38710,82002,82001],\"pictureList\":[\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\",\"https://camo.githubusercontent.com/5f5c4e0c4dc539c34e8eae8ac0cbc6dccdfee5d3/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343533333831362d323032373434343231382e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},{\"id\":1508053762227,\"userId\":82003,\"date\":\"2017-10-15 15:49:22.0\",\"content\":\"我也试试\",\"praiseUserIdList\":[1515565976140],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},{\"id\":1508072491570,\"userId\":82002,\"date\":\"2017-10-15 21:01:31.0\",\"content\":\"有点冷~\",\"praiseUserIdList\":[82001,82002],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},{\"id\":1508073178489,\"userId\":82045,\"date\":\"2017-10-15 21:12:58.0\",\"content\":\"发动态\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},{\"id\":1514017444961,\"userId\":82002,\"date\":\"2017-12-23 16:24:04.0\",\"content\":\"123479589679\",\"praiseUserIdList\":[82002,1520242280259,82001,70793,1524042900591,1528264711016],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"]},{\"id\":1531062713966,\"userId\":82002,\"date\":\"2018-07-08 23:11:53.0\",\"content\":\"云南好美啊( ◞˟૩˟)◞\",\"praiseUserIdList\":[82001,82005,38710,70793,93793,82003,1531969715979],\"pictureList\":[\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1531072366455&di=c0d4b15b2c4b70aad49e6ae747f60742&imgtype=0&src=http%3A%2F%2Fpic1.win4000.com%2Fwallpaper%2F3%2F57a2a41f57d09.jpg\",\"https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1531072499167&di=5b5621d117edbc5d344a03ba0a6b580b&imgtype=0&src=http%3A%2F%2Fi0.szhomeimg.com%2FUploadFiles%2FBBS%2F2006%2F08%2F05%2F24752199_79122.91.jpg\"]},{\"id\":1536805585275,\"userId\":82003,\"date\":\"2018-09-13 10:26:25.0\",\"content\":\"iPhone Xs发布了,大家怎么看?\",\"praiseUserIdList\":[82002,82005,70793,82003,82001],\"pictureList\":[\"https://pic1.zhimg.com/80/v2-e129b40810070443add1c28e6185c894_hd.jpg\"]}],\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:37:14', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025841443, 82001, 1511967853340, '{\"[]\":[{\"Moment\":{\"id\":301,\"userId\":93793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-301\",\"praiseUserIdList\":[38710,93793,82003,82005,82040,82055,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":93793,\"name\":\"Mike\",\"head\":\"http://static.oschina.net/uploads/user/48/96331_50.jpg\"},\"User[]\":[{\"id\":38710,\"name\":\"TommyLemon\"},{\"id\":82001,\"name\":\"测试改名\"},{\"id\":82002,\"name\":\"Happy~\"},{\"id\":82003,\"name\":\"Wechat\"},{\"id\":82005,\"name\":\"Jan\"},{\"id\":82040,\"name\":\"Dream\"},{\"id\":82055,\"name\":\"Solid\"},{\"id\":93793,\"name\":\"Mike\"}],\"[]\":[{\"Comment\":{\"id\":45,\"toId\":0,\"userId\":93793,\"momentId\":301,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-45\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":51,\"toId\":45,\"userId\":82003,\"momentId\":301,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-51\"},\"User\":{\"id\":82003,\"name\":\"Wechat\"}},{\"Comment\":{\"id\":76,\"toId\":45,\"userId\":93793,\"momentId\":301,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-76\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":120,\"toId\":0,\"userId\":93793,\"momentId\":301,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-110\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":124,\"toId\":0,\"userId\":82001,\"momentId\":301,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-114\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":1490781009548,\"toId\":51,\"userId\":82001,\"momentId\":301,\"date\":\"2017-03-29 17:50:09.0\",\"content\":\"3\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}}]},{\"Moment\":{\"id\":58,\"userId\":90814,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-435\",\"praiseUserIdList\":[38710,82003,82005,93793,82006,82044,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\"]},\"User\":{\"id\":90814,\"name\":\"007\",\"head\":\"http://static.oschina.net/uploads/user/51/102723_50.jpg?t=1449212504000\"},\"User[]\":[{\"id\":38710,\"name\":\"TommyLemon\"},{\"id\":82001,\"name\":\"测试改名\"},{\"id\":82003,\"name\":\"Wechat\"},{\"id\":82005,\"name\":\"Jan\"},{\"id\":82006,\"name\":\"Meria\"},{\"id\":82044,\"name\":\"Love\"},{\"id\":93793,\"name\":\"Mike\"}],\"[]\":[{\"Comment\":{\"id\":13,\"toId\":0,\"userId\":82005,\"momentId\":58,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-13\"},\"User\":{\"id\":82005,\"name\":\"Jan\"}},{\"Comment\":{\"id\":77,\"toId\":13,\"userId\":93793,\"momentId\":58,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-77\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":97,\"toId\":13,\"userId\":82006,\"momentId\":58,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-97\"},\"User\":{\"id\":82006,\"name\":\"Meria\"}},{\"Comment\":{\"id\":167,\"userId\":82001,\"momentId\":58,\"date\":\"2017-03-25 19:48:41.0\",\"content\":\"Nice!\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":173,\"userId\":38710,\"momentId\":58,\"date\":\"2017-03-25 20:25:13.0\",\"content\":\"Good\"},\"User\":{\"id\":38710,\"name\":\"TommyLemon\"}},{\"Comment\":{\"id\":188,\"toId\":97,\"userId\":82001,\"momentId\":58,\"date\":\"2017-03-26 15:21:32.0\",\"content\":\"1646\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}}]},{\"Moment\":{\"id\":371,\"userId\":82002,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-371\",\"praiseUserIdList\":[90814,93793,82003,82005,82006,82040,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\"]},\"User\":{\"id\":82002,\"name\":\"Happy~\",\"head\":\"http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000\"},\"User[]\":[{\"id\":82001,\"name\":\"测试改名\"},{\"id\":82002,\"name\":\"Happy~\"},{\"id\":82003,\"name\":\"Wechat\"},{\"id\":82005,\"name\":\"Jan\"},{\"id\":82006,\"name\":\"Meria\"},{\"id\":82040,\"name\":\"Dream\"},{\"id\":90814,\"name\":\"007\"},{\"id\":93793,\"name\":\"Mike\"}],\"[]\":[{\"Comment\":{\"id\":68,\"toId\":0,\"userId\":82005,\"momentId\":371,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-68\"},\"User\":{\"id\":82005,\"name\":\"Jan\"}},{\"Comment\":{\"id\":157,\"userId\":93793,\"momentId\":371,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-157\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":110,\"toId\":0,\"userId\":93793,\"momentId\":371,\"date\":\"2017-02-01 19:23:24.0\",\"content\":\"This is a Content...-110\"},\"User\":{\"id\":93793,\"name\":\"Mike\"}},{\"Comment\":{\"id\":114,\"toId\":0,\"userId\":82001,\"momentId\":371,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-114\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":115,\"toId\":0,\"userId\":38710,\"momentId\":371,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-115\"},\"User\":{\"id\":38710,\"name\":\"TommyLemon\"}},{\"Comment\":{\"id\":116,\"toId\":0,\"userId\":70793,\"momentId\":371,\"date\":\"2017-03-02 13:56:06.0\",\"content\":\"This is a Content...-116\"},\"User\":{\"id\":70793,\"name\":\"Strong\"}}]},{\"Moment\":{\"id\":170,\"userId\":70793,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-73\",\"praiseUserIdList\":[82044,82002,82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172508_mpwj.jpg\"]},\"User\":{\"id\":70793,\"name\":\"Strong\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\"},\"User[]\":[{\"id\":82001,\"name\":\"测试改名\"},{\"id\":82002,\"name\":\"Happy~\"},{\"id\":82044,\"name\":\"Love\"}],\"[]\":[{\"Comment\":{\"id\":44,\"toId\":0,\"userId\":82003,\"momentId\":170,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-44\"},\"User\":{\"id\":82003,\"name\":\"Wechat\"}},{\"Comment\":{\"id\":54,\"toId\":0,\"userId\":82004,\"momentId\":170,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-54\"},\"User\":{\"id\":82004,\"name\":\"Tommy\"}},{\"Comment\":{\"id\":99,\"toId\":44,\"userId\":70793,\"momentId\":170,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-99\"},\"User\":{\"id\":70793,\"name\":\"Strong\"}},{\"Comment\":{\"id\":206,\"toId\":54,\"userId\":82001,\"momentId\":170,\"date\":\"2017-03-29 11:04:23.0\",\"content\":\"ejej\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":1490780759866,\"toId\":99,\"userId\":82001,\"momentId\":170,\"date\":\"2017-03-29 17:45:59.0\",\"content\":\"99\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":1490863661426,\"toId\":1490780759866,\"userId\":70793,\"momentId\":170,\"date\":\"2017-03-30 16:47:41.0\",\"content\":\"66\"},\"User\":{\"id\":70793,\"name\":\"Strong\"}}]},{\"Moment\":{\"id\":470,\"userId\":38710,\"date\":\"2017-02-01 19:14:31.0\",\"content\":\"This is a Content...-470\",\"praiseUserIdList\":[82001],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\"]},\"User\":{\"id\":38710,\"name\":\"TommyLemon\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\"},\"User[]\":[{\"id\":82001,\"name\":\"测试改名\"}],\"[]\":[{\"Comment\":{\"id\":4,\"toId\":0,\"userId\":38710,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-4\"},\"User\":{\"id\":38710,\"name\":\"TommyLemon\"}},{\"Comment\":{\"id\":22,\"toId\":221,\"userId\":82001,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"测试修改评论\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}},{\"Comment\":{\"id\":47,\"toId\":4,\"userId\":70793,\"momentId\":470,\"date\":\"2017-02-01 19:20:50.0\",\"content\":\"This is a Content...-47\"},\"User\":{\"id\":70793,\"name\":\"Strong\"}},{\"Comment\":{\"id\":1490863507114,\"toId\":4,\"userId\":82003,\"momentId\":470,\"date\":\"2017-03-30 16:45:07.0\",\"content\":\"yes\"},\"User\":{\"id\":82003,\"name\":\"Wechat\"}},{\"Comment\":{\"id\":1490863903900,\"toId\":0,\"userId\":82006,\"momentId\":470,\"date\":\"2017-03-30 16:51:43.0\",\"content\":\"SOGA\"},\"User\":{\"id\":82006,\"name\":\"Meria\"}},{\"Comment\":{\"id\":1491740899179,\"toId\":0,\"userId\":82001,\"momentId\":470,\"date\":\"2017-04-09 20:28:19.0\",\"content\":\"www\"},\"User\":{\"id\":82001,\"name\":\"测试改名\"}}]}],\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:37:21', NULL, NULL); INSERT INTO `TestRecord` VALUES (1537025843337, 82001, 1511963677325, '{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793,82012,82028,82021,82006,82030,82035],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-09-15 15:37:23', NULL, NULL); INSERT INTO `TestRecord` VALUES (1538112293306, 82001, 1521907303540, '{\"User[]\":[{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-09-28 05:24:53', NULL, NULL); INSERT INTO `TestRecord` VALUES (1538112310565, 82001, 1521905680680, '{\"Moment\":{\"code\":200,\"msg\":\"success\",\"id\":1538112282445,\"count\":1},\"code\":200,\"msg\":\"success\"}', '2018-09-28 05:25:10', NULL, NULL); INSERT INTO `TestRecord` VALUES (1538112311450, 82001, 1521904756674, '{\"User[]\":[{\"id\":38710,\"sex\":0,\"name\":\"TommyLemon\",\"tag\":\"Android&Java\",\"head\":\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"contactIdList\":[82003,82005,90814,82004,82009,82002,82044,93793,70793],\"pictureList\":[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\",\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"}],\"code\":200,\"msg\":\"success\"}', '2018-09-28 05:25:11', NULL, NULL); INSERT INTO `TestRecord` VALUES (1538731040138, 82001, 1511963677325, '{\"User\":{\"id\":82001,\"sex\":0,\"name\":\"测试改名\",\"tag\":\"APIJSON User\",\"head\":\"https://static.oschina.net/uploads/user/19/39085_50.jpg\",\"contactIdList\":[82025,82024,82003,93793,70793],\"pictureList\":[\"http://common.cnblogs.com/images/icon_weibo_24.png\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-10-05 09:17:20', NULL, NULL); INSERT INTO `TestRecord` VALUES (1538731046687, 82001, 1521907570452, '{\"Moment\":{\"id\":12,\"userId\":70793,\"date\":\"2017-02-08 16:06:11.0\",\"content\":\"1111534034\",\"praiseUserIdList\":[70793,93793,82044,82040,82055,90814,38710,82002,82006,1508072105320],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a4f5aadef3c886f028c79b4808613a/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343932353935372d313732303737333630382e6a7067\",\"http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\",\"https://camo.githubusercontent.com/c98b1c86af136745cc4626c6ece830f76de9ee83/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343930383036362d313837323233393236352e6a7067\",\"https://camo.githubusercontent.com/f513fa631bd780dc0ec3cf2663777e356dc3664f/687474703a2f2f696d61676573323031352e636e626c6f67732e636f6d2f626c6f672f3636303036372f3230313630342f3636303036372d32303136303431343232343733323232332d3337333933303233322e6a7067\"]},\"User\":{\"id\":70793,\"sex\":0,\"name\":\"Strong\",\"tag\":\"djdj\",\"head\":\"http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000\",\"contactIdList\":[38710,82002],\"pictureList\":[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\",\"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\",\"https://camo.githubusercontent.com/788c0a7e11a\",\"https://camo.githubusercontent.com/f513f67\"],\"date\":\"2017-02-01 19:21:50.0\"},\"code\":200,\"msg\":\"success\"}', '2018-10-05 09:17:27', NULL, NULL); COMMIT; -- ---------------------------- -- Table structure for Verify -- ---------------------------- DROP TABLE IF EXISTS `Verify`; CREATE TABLE `Verify` ( `id` bigint(15) NOT NULL AUTO_INCREMENT COMMENT '唯一标识', `type` int(2) NOT NULL DEFAULT '0' COMMENT '类型:\n0-登录\n1-注册\n2-修改登录密码\n3-修改支付密码', `phone` bigint(11) NOT NULL COMMENT '手机号', `verify` int(6) NOT NULL COMMENT '验证码', `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1549549983792 DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of Verify -- ---------------------------- BEGIN; INSERT INTO `Verify` VALUES (1527950171719, 1, 130000844444, 10375, '2018-06-02 14:36:11'); INSERT INTO `Verify` VALUES (1528250810515, 1, 15122820115, 2586, '2018-06-06 02:06:50'); INSERT INTO `Verify` VALUES (1528254139866, 1, 15225556855, 8912, '2018-06-06 03:02:19'); INSERT INTO `Verify` VALUES (1528255485691, 1, 15822798927, 2101, '2018-06-06 03:24:45'); INSERT INTO `Verify` VALUES (1528264687329, 1, 15620878773, 3991, '2018-06-06 05:58:07'); INSERT INTO `Verify` VALUES (1528269508031, 1, 18616024605, 4901, '2018-06-06 07:18:28'); INSERT INTO `Verify` VALUES (1528289406640, 1, 13142033348, 3005, '2018-06-06 12:50:06'); INSERT INTO `Verify` VALUES (1528327843188, 0, 15122820115, 4912, '2018-06-06 23:30:43'); INSERT INTO `Verify` VALUES (1528330720259, 2, 15122820115, 5267, '2018-06-07 00:18:40'); INSERT INTO `Verify` VALUES (1528339646013, 1, 15122541683, 6112, '2018-06-07 02:47:26'); INSERT INTO `Verify` VALUES (1528344962707, 1, 15188899797, 4540, '2018-06-07 04:16:02'); INSERT INTO `Verify` VALUES (1528345364195, 2, 15122541683, 10500, '2018-06-07 04:22:44'); INSERT INTO `Verify` VALUES (1528345372998, 0, 15122541683, 9940, '2018-06-07 04:22:53'); INSERT INTO `Verify` VALUES (1528356342784, 2, 15620878773, 2076, '2018-06-07 07:25:42'); INSERT INTO `Verify` VALUES (1528356449927, 1, 15620878772, 4733, '2018-06-07 07:27:29'); INSERT INTO `Verify` VALUES (1528411937273, 0, 15620878772, 7375, '2018-06-07 22:52:17'); INSERT INTO `Verify` VALUES (1531793525394, 1, 15629184762, 9737, '2018-07-17 02:12:05'); INSERT INTO `Verify` VALUES (1531969702694, 1, 13800138000, 8213, '2018-07-19 03:08:22'); INSERT INTO `Verify` VALUES (1531983017848, 2, 13800138000, 1552, '2018-07-19 06:50:17'); INSERT INTO `Verify` VALUES (1532188103364, 1, 13977757845, 8753, '2018-07-21 15:48:23'); INSERT INTO `Verify` VALUES (1532439015405, 1, 18779607703, 10136, '2018-07-24 13:30:15'); INSERT INTO `Verify` VALUES (1533450371245, 1, 18911061423, 5795, '2018-08-05 06:26:11'); INSERT INTO `Verify` VALUES (1533618759900, 1, 13977757843, 10204, '2018-08-07 05:12:39'); INSERT INTO `Verify` VALUES (1533627819054, 1, 13107695518, 7515, '2018-08-07 07:43:39'); INSERT INTO `Verify` VALUES (1533693421836, 1, 15901373410, 4884, '2018-08-08 01:57:01'); INSERT INTO `Verify` VALUES (1533698902309, 1, 18664900086, 3654, '2018-08-08 03:28:22'); INSERT INTO `Verify` VALUES (1533723898511, 1, 8881816, 5272, '2018-08-08 10:24:58'); INSERT INTO `Verify` VALUES (1533835163777, 1, 13977757846, 9332, '2018-08-09 17:19:23'); INSERT INTO `Verify` VALUES (1534142797624, 2, 13977757845, 4136, '2018-08-13 06:46:37'); INSERT INTO `Verify` VALUES (1534142802751, 0, 13977757845, 5754, '2018-08-13 06:46:42'); INSERT INTO `Verify` VALUES (1534671951719, 1, 13000082023, 5869, '2018-08-19 09:45:51'); INSERT INTO `Verify` VALUES (1534671960833, 1, 13000082013, 6169, '2018-08-19 09:46:00'); INSERT INTO `Verify` VALUES (1534671980295, 1, 13000082032, 10171, '2018-08-19 09:46:20'); INSERT INTO `Verify` VALUES (1534672028733, 0, 13000093793, 6478, '2018-08-19 09:47:08'); INSERT INTO `Verify` VALUES (1534898613829, 1, 17755531490, 3961, '2018-08-22 00:43:33'); INSERT INTO `Verify` VALUES (1534926287534, 1, 17602120205, 5297, '2018-08-22 08:24:47'); INSERT INTO `Verify` VALUES (1535345181813, 1, 13000082022, 8145, '2018-08-27 04:46:21'); INSERT INTO `Verify` VALUES (1536220749108, 1, 13241042199, 9916, '2018-09-06 07:59:09'); INSERT INTO `Verify` VALUES (1536583466723, 1, 18013819609, 2483, '2018-09-10 12:44:26'); INSERT INTO `Verify` VALUES (1536805630726, 0, 13000070793, 1798, '2018-09-13 02:27:10'); INSERT INTO `Verify` VALUES (1537515268266, 2, 13000038710, 4171, '2018-09-21 07:34:28'); INSERT INTO `Verify` VALUES (1537515280163, 2, 13000038713, 5877, '2018-09-21 07:34:40'); INSERT INTO `Verify` VALUES (1537515287973, 2, 13000038714, 10441, '2018-09-21 07:34:47'); INSERT INTO `Verify` VALUES (1537515337629, 1, 13000033333, 7353, '2018-09-21 07:35:37'); INSERT INTO `Verify` VALUES (1537521279290, 1, 13000049499, 2854, '2018-09-21 09:14:39'); INSERT INTO `Verify` VALUES (1538114970328, 1, 15855512382, 10359, '2018-09-28 06:09:30'); INSERT INTO `Verify` VALUES (1538504245612, 1, 13000087654, 10791, '2018-10-02 18:17:25'); INSERT INTO `Verify` VALUES (1538504485798, 1, 13000087655, 4776, '2018-10-02 18:21:25'); INSERT INTO `Verify` VALUES (1538987940551, 1, 18662327672, 1800, '2018-10-08 08:39:00'); INSERT INTO `Verify` VALUES (1539076064496, 1, 15094295280, 3361, '2018-10-09 09:07:44'); INSERT INTO `Verify` VALUES (1539076102284, 1, 15094395280, 1562, '2018-10-09 09:08:22'); INSERT INTO `Verify` VALUES (1540364623910, 1, 13000085001, 4382, '2018-10-24 07:03:43'); INSERT INTO `Verify` VALUES (1540966375865, 1, 13122091271, 3880, '2018-10-31 06:12:55'); INSERT INTO `Verify` VALUES (1541427928139, 0, 13759127249, 5913, '2018-11-05 14:25:28'); INSERT INTO `Verify` VALUES (1541500666143, 1, 15280239960, 9142, '2018-11-06 10:37:46'); INSERT INTO `Verify` VALUES (1541510152560, 1, 13000099999, 1097, '2018-11-06 13:15:52'); INSERT INTO `Verify` VALUES (1541510270190, 1, 13000077777, 8192, '2018-11-06 13:17:50'); INSERT INTO `Verify` VALUES (1541583746916, 1, 18689846285, 8724, '2018-11-07 09:42:26'); INSERT INTO `Verify` VALUES (1541724338244, 0, 13000038710, 8283, '2018-11-09 00:45:38'); INSERT INTO `Verify` VALUES (1541757538733, 1, 17717112856, 2268, '2018-11-09 09:58:58'); INSERT INTO `Verify` VALUES (1542261432641, 1, 15800506515, 2586, '2018-11-15 05:57:12'); INSERT INTO `Verify` VALUES (1542265654497, 1, 18010001000, 5666, '2018-11-15 07:07:34'); INSERT INTO `Verify` VALUES (1542337959344, 1, 13000012345, 4981, '2018-11-16 03:12:39'); INSERT INTO `Verify` VALUES (1542352629436, 1, 13000082002, 10212, '2018-11-16 07:17:09'); INSERT INTO `Verify` VALUES (1542548523509, 1, 13317833374, 8921, '2018-11-18 13:42:03'); INSERT INTO `Verify` VALUES (1542702268195, 1, 123123, 8055, '2018-11-20 08:24:28'); INSERT INTO `Verify` VALUES (1542840424025, 1, 13818118257, 7126, '2018-11-21 22:47:04'); INSERT INTO `Verify` VALUES (1543377157089, 1, 18622250185, 6620, '2018-11-28 03:52:37'); INSERT INTO `Verify` VALUES (1543966631575, 1, 13466260815, 5835, '2018-12-04 23:37:11'); INSERT INTO `Verify` VALUES (1544276193603, 1, 13000087656, 4078, '2018-12-08 13:36:33'); INSERT INTO `Verify` VALUES (1544276277509, 2, 13000087656, 9356, '2018-12-08 13:37:57'); INSERT INTO `Verify` VALUES (1544276305800, 0, 13000087656, 8708, '2018-12-08 13:38:25'); INSERT INTO `Verify` VALUES (1544276475231, 1, 15988125475, 8940, '2018-12-08 13:41:15'); INSERT INTO `Verify` VALUES (1544503797981, 1, 13000082968, 6965, '2018-12-11 04:49:57'); INSERT INTO `Verify` VALUES (1545038887447, 1, 13000083333, 4527, '2018-12-17 09:28:07'); INSERT INTO `Verify` VALUES (1545238881566, 1, 13166059778, 4434, '2018-12-19 17:01:21'); INSERT INTO `Verify` VALUES (1545269417538, 1, 18124099720, 4882, '2018-12-20 01:30:17'); INSERT INTO `Verify` VALUES (1545464407106, 1, 17755015200, 3870, '2018-12-22 07:40:07'); INSERT INTO `Verify` VALUES (1545707514503, 1, 13533039558, 3941, '2018-12-25 03:11:54'); INSERT INTO `Verify` VALUES (1545895656481, 1, 13533039550, 4968, '2018-12-27 07:27:36'); INSERT INTO `Verify` VALUES (1546701633801, 1, 13534201057, 8487, '2019-01-05 15:20:33'); INSERT INTO `Verify` VALUES (1547177422559, 1, 18980210241, 7012, '2019-01-11 03:30:22'); INSERT INTO `Verify` VALUES (1548068010027, 1, 17181595855, 10716, '2019-01-21 10:53:30'); INSERT INTO `Verify` VALUES (1548310439111, 1, 13059203278, 9438, '2019-01-24 06:13:59'); INSERT INTO `Verify` VALUES (1548398132694, 1, 15050529772, 9276, '2019-01-25 06:35:32'); INSERT INTO `Verify` VALUES (1548742004597, 1, 13738007826, 6318, '2019-01-29 06:06:44'); INSERT INTO `Verify` VALUES (1548742060130, 1, 13000082001, 8387, '2019-01-29 06:07:40'); INSERT INTO `Verify` VALUES (1548742087417, 2, 13000082001, 8685, '2019-01-29 06:08:07'); INSERT INTO `Verify` VALUES (1548742124507, 6, 13000082001, 4901, '2019-01-29 06:08:44'); INSERT INTO `Verify` VALUES (1548742151361, 10, 13000082001, 8513, '2019-01-29 06:09:11'); INSERT INTO `Verify` VALUES (1549549983791, 0, 13000082001, 3640, '2019-02-07 14:33:11'); COMMIT; -- ---------------------------- -- Table structure for _Visit -- ---------------------------- DROP TABLE IF EXISTS `_Visit`; CREATE TABLE `_Visit` ( `model` varchar(15) NOT NULL, `id` bigint(15) NOT NULL, `operate` tinyint(4) NOT NULL COMMENT '1-增\n2-删\n3-改\n4-查', `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Table structure for apijson_privacy -- ---------------------------- DROP TABLE IF EXISTS `apijson_privacy`; CREATE TABLE `apijson_privacy` ( `id` bigint(15) NOT NULL COMMENT '唯一标识', `certified` tinyint(2) NOT NULL DEFAULT '0' COMMENT '已认证', `phone` bigint(11) NOT NULL COMMENT '手机号,仅支持 11 位数的。不支持 +86 这种国家地区开头的。如果要支持就改为 VARCHAR(14)', `balance` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '余额', `_password` varchar(20) NOT NULL COMMENT '登录密码', `_payPassword` int(6) NOT NULL DEFAULT '<PASSWORD>6' COMMENT '支付密码', PRIMARY KEY (`id`), UNIQUE KEY `phone_UNIQUE` (`phone`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户隐私信息表。\n对安全要求高,不想泄漏真实名称。对外名称为 Privacy'; -- ---------------------------- -- Records of apijson_privacy -- ---------------------------- BEGIN; INSERT INTO `apijson_privacy` VALUES (38710, 1, 13000038710, 33376.00, 'apijson', 123456); INSERT INTO `apijson_privacy` VALUES (70793, 0, 13000070793, 56000.00, 'apijson', 123456); INSERT INTO `apijson_privacy` VALUES (82001, 1, 13000082001, 53317.55, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82002, 1, 13000082002, 6817.23, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82003, 1, 13000082003, 2000.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82004, 0, 13000082004, 2000.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82005, 0, 13000082005, 1923.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82006, 0, 13000082006, 2000.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82009, 0, 13000082009, 2000.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82012, 0, 13000082012, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82020, 0, 12345678900, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82021, 0, 12345678901, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82022, 0, 12345678902, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82023, 0, 12345678903, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82024, 0, 12345678904, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82025, 0, 12345678905, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82026, 0, 12345678906, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82027, 0, 12345678907, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82028, 0, 12345678908, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82029, 0, 12345678909, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82030, 0, 12345678910, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82031, 0, 12345678911, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82032, 0, 12345678912, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82033, 0, 12345678913, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82034, 0, 12345678914, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82035, 0, 12345678915, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82036, 0, 12345678916, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82037, 0, 12345678917, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82038, 0, 12345678918, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82039, 0, 12345678919, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82040, 0, 13000082019, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82041, 0, 13000082015, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82042, 0, 13000082016, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82043, 0, 13000082017, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82044, 0, 13000082018, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82045, 0, 13000082020, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82046, 0, 13000082010, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82047, 0, 13000082021, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82048, 0, 13000038711, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82049, 0, 13000038712, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82050, 0, 13000038713, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82051, 0, 13000038714, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82052, 0, 13000038715, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82053, 0, 13000038720, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82054, 0, 13000038721, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82055, 0, 13000082030, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82056, 0, 13000082040, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82057, 0, 13000038730, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82058, 0, 13000038750, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82059, 0, 13000082033, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (82060, 0, 13000082050, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (90814, 1, 13000090814, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (93793, 1, 13000093793, 3000.00, 'apijson', 123456); INSERT INTO `apijson_privacy` VALUES (93794, 0, 99999999999, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1490109742863, 0, 13000082100, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1490109845208, 0, 13000082101, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1490420651686, 0, 13000038716, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1490427139175, 0, 13000038717, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1490427577823, 0, 13000082102, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1490584952968, 0, 13000038790, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1490973670928, 0, 13000082051, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1492936169722, 0, 13000093794, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1493480142628, 0, 13000038888, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1493747512860, 0, 13000038777, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1493747777770, 0, 13000038778, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1493748594003, 0, 13000038779, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1493748615711, 0, 13000038780, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1493749090643, 0, 13000038781, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1493836043151, 0, 13000038999, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1493883110132, 0, 13000039999, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1493890214167, 0, 13000031000, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1493890303473, 0, 13000031001, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1493890303474, 0, 13000088888, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1497792972314, 0, 13000082111, 0.00, '654321', 123456); INSERT INTO `apijson_privacy` VALUES (1499057230629, 0, 13000082011, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1500825221910, 0, 13000099999, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1502639062900, 0, 13000082222, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1502639424119, 0, 13000082333, 0.00, '12345678', 123456); INSERT INTO `apijson_privacy` VALUES (1507220582167, 0, 13000011111, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1508072071492, 0, 13000071492, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1508072105320, 0, 13000082008, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1508072160401, 0, 13000082007, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1508072202871, 0, 13000082031, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1510495628760, 0, 13000082000, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1511407581570, 0, 17610725819, 0.00, '123123', 123456); INSERT INTO `apijson_privacy` VALUES (1511761906715, 0, 13708222312, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1511965911349, 0, 13000083333, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1512387063078, 0, 15858585858, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1512531601485, 0, 18210847727, 0.00, '5816136', 123456); INSERT INTO `apijson_privacy` VALUES (1514623064133, 0, 13000038725, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1514625918255, 0, 13000038726, 255.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1514626163032, 0, 13000038727, 4951.37, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1514858422969, 0, 13000082041, 164.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1515565976140, 0, 15009257563, 0.00, 'qazwsx', 123456); INSERT INTO `apijson_privacy` VALUES (1518218350585, 0, 18663689263, 0.00, 'cherish751220', 123456); INSERT INTO `apijson_privacy` VALUES (1519778917280, 0, 15000536915, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1520242280259, 0, 18917212395, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1521274648008, 0, 18989491914, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1521371722416, 0, 13000088889, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1521374327542, 0, 13000056789, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1523626157302, 0, 15603313259, 0.00, '15603313259', 123456); INSERT INTO `apijson_privacy` VALUES (1523935772553, 0, 15603313258, 0.00, '15603313258', 123456); INSERT INTO `apijson_privacy` VALUES (1524042900591, 0, 15222297100, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1524298730523, 0, 17854217949, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1524878698882, 0, 13917451840, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1525677515673, 0, 13390935538, 10000.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1527495857924, 0, 13142033345, 15.00, 'qweasd', 123456); INSERT INTO `apijson_privacy` VALUES (1527498229991, 0, 13142033342, 0.00, 'qweasd', 123456); INSERT INTO `apijson_privacy` VALUES (1527821445610, 0, 13142033346, 0.00, 'qweasd', 123456); INSERT INTO `apijson_privacy` VALUES (1528250827953, 0, 15122820115, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1528254173621, 0, 15225556855, 200.00, 'lmt970208', 123456); INSERT INTO `apijson_privacy` VALUES (1528255497767, 0, 15822798927, 0.00, '111111', 123456); INSERT INTO `apijson_privacy` VALUES (1528264711016, 0, 15620878773, 0.00, '111111', 123456); INSERT INTO `apijson_privacy` VALUES (1528339692804, 0, 15122541683, 0.00, '568599', 123456); INSERT INTO `apijson_privacy` VALUES (1528344980598, 0, 15188899797, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1528356470041, 0, 15620878772, 0.00, '111111', 123456); INSERT INTO `apijson_privacy` VALUES (1531969715979, 0, 13800138000, 10000.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1532188114543, 0, 13977757845, 20360.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1532439021068, 0, 18779607703, 0.00, '15879684798qq', 123456); INSERT INTO `apijson_privacy` VALUES (1533835176109, 0, 13977757846, 1700.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1534926301956, 0, 17602120205, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1538504264944, 0, 13000087654, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1538504500574, 0, 13000087655, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1538987952996, 0, 18662327672, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1541583762603, 0, 18689846285, 0.00, 'jyt123456', 123456); INSERT INTO `apijson_privacy` VALUES (1544276209348, 0, 13000087656, 1050.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1544503822963, 0, 13000082968, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1545707526805, 0, 13533039558, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1545895694424, 0, 13533039550, 357.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1547177436600, 0, 18980210241, 0.00, '123456', 123456); INSERT INTO `apijson_privacy` VALUES (1548068043688, 0, 17181595855, 0.00, '0812563993gg', 123456); COMMIT; -- ---------------------------- -- Table structure for apijson_user -- ---------------------------- DROP TABLE IF EXISTS `apijson_user`; CREATE TABLE `apijson_user` ( `id` bigint(15) NOT NULL AUTO_INCREMENT COMMENT '唯一标识', `sex` tinyint(2) NOT NULL DEFAULT '0' COMMENT '性别:\n0-男\n1-女', `name` varchar(20) DEFAULT NULL COMMENT '名称', `tag` varchar(45) DEFAULT NULL COMMENT '标签', `head` varchar(300) DEFAULT 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png' COMMENT '头像url', `contactIdList` json DEFAULT NULL COMMENT '联系人id列表', `pictureList` json DEFAULT NULL COMMENT '照片列表', `date` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建日期', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1548068043689 DEFAULT CHARSET=utf8 COMMENT='用户公开信息表。\n对安全要求高,不想泄漏真实名称。对外名称为 User'; -- ---------------------------- -- Records of apijson_user -- ---------------------------- BEGIN; INSERT INTO `apijson_user` VALUES (38710, 0, 'TommyLemon', 'Android&Java', 'http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000', '[82003, 82005, 90814, 82004, 82009, 82002, 82044, 93793, 70793]', '[\"http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000\", \"http://common.cnblogs.com/images/icon_weibo_24.png\"]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (70793, 0, 'Strong', 'djdj', 'http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000', '[38710, 82002]', '[\"http://static.oschina.net/uploads/img/201604/22172508_eGDi.jpg\", \"http://static.oschina.net/uploads/img/201604/22172507_rrZ5.jpg\", \"https://camo.githubusercontent.com/788c0a7e11a\", \"https://camo.githubusercontent.com/f513f67\"]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82001, 0, '测试账号', 'Dev', 'https://gss2.bdstatic.com/-fo3dSag_xI4khGkpoWK1HF6hhy/baike/c0%3Dbaike92%2C5%2C5%2C92%2C30/sign=c31ae7219525bc313f5009ca3fb6e6d4/42a98226cffc1e17646dbede4690f603728de90b.jpg', '[82028, 82006, 82034, 93793, 82036, 82048]', '[\"http://common.cnblogs.com/images/icon_weibo_24.png\"]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82002, 1, 'Happy~', 'iOS', 'http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000', '[82005, 82001, 38710]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82003, 1, 'Wechat', NULL, 'http://common.cnblogs.com/images/wechat.png', '[82001, 93793]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82004, 0, 'Tommy', 'fasef', 'http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82005, 1, 'Jan', 'AG', 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82001, 38710, 1532439021068]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82006, 1, 'Meria', NULL, 'http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82009, 0, 'God', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82012, 0, 'Steve', 'FEWE', 'http://static.oschina.net/uploads/user/1/3064_50.jpg?t=1449566001000', '[82004, 82002, 93793]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82020, 0, 'ORANGE', NULL, 'http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82021, 1, 'Tommy', NULL, 'http://static.oschina.net/uploads/user/19/39085_50.jpg', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82022, 0, 'Internet', NULL, 'http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82023, 0, 'No1', NULL, 'http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82024, 0, 'Lemon', NULL, 'http://static.oschina.net/uploads/user/427/855532_50.jpg?t=1435030876000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82025, 1, 'Tommy', NULL, 'http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82026, 0, 'iOS', NULL, 'http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82027, 0, 'Yong', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82028, 1, 'gaeg', NULL, 'http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82029, 0, 'GASG', NULL, 'http://common.cnblogs.com/images/wechat.png', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82030, 1, 'Fun', NULL, 'http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82031, 0, 'Lemon', NULL, 'http://static.oschina.net/uploads/user/48/96331_50.jpg', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82032, 0, 'Stack', 'fasdg', 'http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82033, 1, 'GAS', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82034, 1, 'Jump', NULL, 'http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82035, 1, 'Tab', NULL, 'http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82036, 0, 'SAG', NULL, 'http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82037, 0, 'Test', NULL, 'http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82038, 0, 'Battle', NULL, 'http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (82039, 1, 'Everyday', NULL, 'http://common.cnblogs.com/images/icon_weibo_24.png', '[]', '[]', '2017-02-19 13:57:56'); INSERT INTO `apijson_user` VALUES (82040, 1, 'Dream', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[70793]', '[]', '2017-03-02 16:44:26'); INSERT INTO `apijson_user` VALUES (82041, 0, 'Holo', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[38710, 82001]', '[]', '2017-03-04 09:59:34'); INSERT INTO `apijson_user` VALUES (82042, 1, 'Why', NULL, 'http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000', '[]', '[]', '2017-03-04 10:04:33'); INSERT INTO `apijson_user` VALUES (82043, 0, 'Holiday', NULL, 'http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000', '[70793, 82006]', '[]', '2017-03-04 10:05:04'); INSERT INTO `apijson_user` VALUES (82044, 1, 'Love', NULL, 'http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000', '[82006]', '[]', '2017-03-04 10:20:27'); INSERT INTO `apijson_user` VALUES (82045, 0, 'Green', NULL, 'http://common.cnblogs.com/images/wechat.png', '[82001, 82002, 82003, 1485246481130]', '[]', '2017-03-04 10:22:39'); INSERT INTO `apijson_user` VALUES (82046, 0, 'Team', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[38710, 82002, 1485246481130]', '[]', '2017-03-04 15:11:17'); INSERT INTO `apijson_user` VALUES (82047, 0, 'Tesla', NULL, 'http://common.cnblogs.com/images/wechat.png', '[]', '[]', '2017-03-04 16:02:05'); INSERT INTO `apijson_user` VALUES (82048, 0, 'Moto', NULL, 'http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000', '[]', '[]', '2017-03-04 16:04:02'); INSERT INTO `apijson_user` VALUES (82049, 0, 'ITMan', NULL, 'http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000', '[]', '[]', '2017-03-05 09:51:51'); INSERT INTO `apijson_user` VALUES (82050, 0, 'Parl', NULL, 'http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000', '[]', '[]', '2017-03-05 09:52:52'); INSERT INTO `apijson_user` VALUES (82051, 0, 'Girl', NULL, 'http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000', '[]', '[]', '2017-03-05 09:53:37'); INSERT INTO `apijson_user` VALUES (82052, 0, 'Unbrella', NULL, 'http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000', '[]', '[]', '2017-03-05 09:57:54'); INSERT INTO `apijson_user` VALUES (82053, 0, 'Alice', NULL, 'http://common.cnblogs.com/images/wechat.png', '[]', '[]', '2017-03-05 15:25:42'); INSERT INTO `apijson_user` VALUES (82054, 0, 'Harvey', NULL, 'http://static.oschina.net/uploads/user/19/39085_50.jpg', '[]', '[]', '2017-03-06 12:29:03'); INSERT INTO `apijson_user` VALUES (82055, 1, 'Solid', NULL, 'http://static.oschina.net/uploads/user/19/39085_50.jpg', '[38710, 82002]', '[]', '2017-03-11 15:04:00'); INSERT INTO `apijson_user` VALUES (82056, 1, 'IronMan', NULL, 'http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000', '[]', '[]', '2017-03-11 15:32:25'); INSERT INTO `apijson_user` VALUES (82057, 0, 'NullPointerExeption', NULL, 'http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000', '[]', '[]', '2017-03-12 06:01:23'); INSERT INTO `apijson_user` VALUES (82058, 0, 'StupidBird', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82001, 82002]', '[]', '2017-03-12 11:23:04'); INSERT INTO `apijson_user` VALUES (82059, 1, 'He&She', NULL, 'http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000', '[]', '[]', '2017-03-19 14:49:15'); INSERT INTO `apijson_user` VALUES (82060, 1, 'Anyway~', NULL, 'http://static.oschina.net/uploads/user/1/3064_50.jpg?t=1449566001000', '[]', '[]', '2017-03-21 14:10:18'); INSERT INTO `apijson_user` VALUES (90814, 0, '007', NULL, 'http://static.oschina.net/uploads/user/51/102723_50.jpg?t=1449212504000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (93793, 0, 'Mike', 'GES', 'http://static.oschina.net/uploads/user/48/96331_50.jpg', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (93794, 0, 'Lemon', NULL, 'http://static.oschina.net/uploads/user/48/97721_50.jpg?t=1451544779000', '[]', '[]', '2017-02-01 11:21:50'); INSERT INTO `apijson_user` VALUES (1490109742863, 1, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-03-21 15:22:22'); INSERT INTO `apijson_user` VALUES (1490109845208, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-03-21 15:24:05'); INSERT INTO `apijson_user` VALUES (1490420651686, 1, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[70793]', '[]', '2017-03-25 05:44:11'); INSERT INTO `apijson_user` VALUES (1490427139175, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[38710, 70793]', '[]', '2017-03-25 07:32:19'); INSERT INTO `apijson_user` VALUES (1490427577823, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-03-25 07:39:37'); INSERT INTO `apijson_user` VALUES (1490584952968, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-03-27 03:22:32'); INSERT INTO `apijson_user` VALUES (1490973670928, 1, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[70793, 93793]', '[]', '2017-03-31 15:21:10'); INSERT INTO `apijson_user` VALUES (1492936169722, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-04-23 08:29:29'); INSERT INTO `apijson_user` VALUES (1493480142628, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-04-29 15:35:42'); INSERT INTO `apijson_user` VALUES (1493747512860, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-02 17:51:52'); INSERT INTO `apijson_user` VALUES (1493747777770, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-02 17:56:17'); INSERT INTO `apijson_user` VALUES (1493748594003, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-02 18:09:54'); INSERT INTO `apijson_user` VALUES (1493748615711, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-02 18:10:15'); INSERT INTO `apijson_user` VALUES (1493749090643, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-02 18:18:10'); INSERT INTO `apijson_user` VALUES (1493836043151, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-03 18:27:23'); INSERT INTO `apijson_user` VALUES (1493883110132, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-04 07:31:50'); INSERT INTO `apijson_user` VALUES (1493890214167, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-04 09:30:14'); INSERT INTO `apijson_user` VALUES (1493890303473, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-04 09:31:43'); INSERT INTO `apijson_user` VALUES (1493890303474, 0, 'Test Post', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-06-12 15:50:44'); INSERT INTO `apijson_user` VALUES (1497792972314, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-06-18 13:36:12'); INSERT INTO `apijson_user` VALUES (1499057230629, 0, '一二三', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-07-03 04:47:10'); INSERT INTO `apijson_user` VALUES (1500825221910, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-07-23 15:53:41'); INSERT INTO `apijson_user` VALUES (1502639062900, 0, 'TESLA', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-08-13 15:44:22'); INSERT INTO `apijson_user` VALUES (1502639424119, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-08-13 15:50:24'); INSERT INTO `apijson_user` VALUES (1507220582167, 0, 'APIJSONUser', '通过APIJSONAuto的图像化界面注册,按Enter而不是Register', 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-10-05 16:23:02'); INSERT INTO `apijson_user` VALUES (1508072071492, 0, '赵钱孙李', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-10-15 12:54:31'); INSERT INTO `apijson_user` VALUES (1508072105320, 1, '周吴郑王', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-10-15 12:55:05'); INSERT INTO `apijson_user` VALUES (1508072160401, 0, '四五六', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-10-15 12:56:00'); INSERT INTO `apijson_user` VALUES (1508072202871, 0, '七八九十', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-10-15 12:56:42'); INSERT INTO `apijson_user` VALUES (1510495628760, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-11-12 14:07:08'); INSERT INTO `apijson_user` VALUES (1511407581570, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82002, 82003, 82005, 82006, 82021, 82023, 82036, 82033]', '[]', '2017-11-23 03:26:21'); INSERT INTO `apijson_user` VALUES (1511761906715, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-11-27 05:51:46'); INSERT INTO `apijson_user` VALUES (1511965911349, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-11-29 14:31:51'); INSERT INTO `apijson_user` VALUES (1512387063078, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-12-04 11:31:03'); INSERT INTO `apijson_user` VALUES (1512531601485, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82001]', '[]', '2017-12-06 03:40:01'); INSERT INTO `apijson_user` VALUES (1514623064133, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2017-12-30 08:37:44'); INSERT INTO `apijson_user` VALUES (1514625918255, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82002, 93793]', NULL, '2017-12-30 09:25:18'); INSERT INTO `apijson_user` VALUES (1514626163032, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2017-12-30 09:29:23'); INSERT INTO `apijson_user` VALUES (1514858422969, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[93793, 82056]', NULL, '2018-01-02 02:00:22'); INSERT INTO `apijson_user` VALUES (1515565976140, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82003, 82021]', NULL, '2018-01-10 06:32:56'); INSERT INTO `apijson_user` VALUES (1518218350585, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-02-09 23:19:10'); INSERT INTO `apijson_user` VALUES (1519778917280, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-02-28 00:48:37'); INSERT INTO `apijson_user` VALUES (1520242280259, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82002]', NULL, '2018-03-05 09:31:20'); INSERT INTO `apijson_user` VALUES (1521274648008, 0, 'Kiro', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-03-17 08:17:28'); INSERT INTO `apijson_user` VALUES (1521371722416, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-03-18 11:15:22'); INSERT INTO `apijson_user` VALUES (1521374327542, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-03-18 11:58:47'); INSERT INTO `apijson_user` VALUES (1523626157302, 1, 'Charlie_brown', '', 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1523935772553, 93793]', NULL, '2018-04-13 13:29:17'); INSERT INTO `apijson_user` VALUES (1523935772553, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1523626157302]', NULL, '2018-04-17 03:29:32'); INSERT INTO `apijson_user` VALUES (1524042900591, 1, '哈哈哈', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82002, 82003]', NULL, '2018-04-18 09:15:00'); INSERT INTO `apijson_user` VALUES (1524298730523, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', NULL, '2018-04-21 08:18:50'); INSERT INTO `apijson_user` VALUES (1524878698882, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-04-28 01:24:58'); INSERT INTO `apijson_user` VALUES (1525677515673, 0, 'APIJSONUser', NULL, 'http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000', '[82003, 82002, 38710]', NULL, '2018-05-07 07:18:35'); INSERT INTO `apijson_user` VALUES (1527495857924, 0, 'account', NULL, 'https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=2510057322,2452415311&fm=27&gp=0.jpg', '[1527821445610, 82012]', NULL, '2018-05-28 08:24:17'); INSERT INTO `apijson_user` VALUES (1527498229991, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1499057230629]', NULL, '2018-05-28 09:03:50'); INSERT INTO `apijson_user` VALUES (1527821445610, 0, 'accountt', NULL, 'http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000', '[1527495857924]', NULL, '2018-06-01 02:50:45'); INSERT INTO `apijson_user` VALUES (1528250827953, 1, 'limengt', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1528264711016]', NULL, '2018-06-06 02:07:07'); INSERT INTO `apijson_user` VALUES (1528254173621, 1, 'A', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82001, 38710]', NULL, '2018-06-06 03:02:53'); INSERT INTO `apijson_user` VALUES (1528255497767, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82002]', NULL, '2018-06-06 03:24:57'); INSERT INTO `apijson_user` VALUES (1528264711016, 0, '梦', NULL, 'http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000', '[82021, 1528250827953]', NULL, '2018-06-06 05:58:31'); INSERT INTO `apijson_user` VALUES (1528339692804, 1, '568599', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1528250827953, 1528264711016]', NULL, '2018-06-07 02:48:12'); INSERT INTO `apijson_user` VALUES (1528344980598, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-06-07 04:16:20'); INSERT INTO `apijson_user` VALUES (1528356470041, 0, 'aaaa', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1528339692804]', NULL, '2018-06-07 07:27:50'); INSERT INTO `apijson_user` VALUES (1531969715979, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82002, 82003, 82005]', NULL, '2018-07-19 03:08:35'); INSERT INTO `apijson_user` VALUES (1532188114543, 0, '宁旭', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-07-21 15:48:34'); INSERT INTO `apijson_user` VALUES (1532439021068, 0, 'huxiaofan', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[38710, 82002, 82003, 82006, 82021]', NULL, '2018-07-24 13:30:21'); INSERT INTO `apijson_user` VALUES (1533835176109, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1532188114543]', NULL, '2018-08-09 17:19:36'); INSERT INTO `apijson_user` VALUES (1534926301956, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82003, 82002, 82025]', NULL, '2018-08-22 08:25:01'); INSERT INTO `apijson_user` VALUES (1538504264944, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-10-02 18:17:44'); INSERT INTO `apijson_user` VALUES (1538504500574, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-10-02 18:21:40'); INSERT INTO `apijson_user` VALUES (1538987952996, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-10-08 08:39:13'); INSERT INTO `apijson_user` VALUES (1541583762603, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-11-07 09:42:42'); INSERT INTO `apijson_user` VALUES (1544276209348, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82002, 38710]', NULL, '2018-12-08 13:36:49'); INSERT INTO `apijson_user` VALUES (1544503822963, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[93793, 82003]', NULL, '2018-12-11 04:50:22'); INSERT INTO `apijson_user` VALUES (1545707526805, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-12-25 03:12:06'); INSERT INTO `apijson_user` VALUES (1545895694424, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2018-12-27 07:28:14'); INSERT INTO `apijson_user` VALUES (1547177436600, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2019-01-11 03:30:36'); INSERT INTO `apijson_user` VALUES (1548068043688, 0, 'APIJSONUser', NULL, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', NULL, NULL, '2019-01-21 10:54:03'); COMMIT; -- ---------------------------- -- Table structure for sys_config -- ---------------------------- DROP TABLE IF EXISTS `sys_config`; CREATE TABLE `sys_config` ( `variable` varchar(128) NOT NULL, `value` varchar(128) DEFAULT NULL, `set_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `set_by` varchar(128) DEFAULT NULL, PRIMARY KEY (`variable`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of sys_config -- ---------------------------- BEGIN; INSERT INTO `sys_config` VALUES ('diagnostics.allow_i_s_tables', 'OFF', '2018-05-31 13:11:56', NULL); INSERT INTO `sys_config` VALUES ('diagnostics.include_raw', 'OFF', '2018-05-31 13:11:56', NULL); INSERT INTO `sys_config` VALUES ('ps_thread_trx_info.max_length', '65535', '2018-05-31 13:11:56', NULL); INSERT INTO `sys_config` VALUES ('statement_performance_analyzer.limit', '100', '2018-05-31 13:11:56', NULL); INSERT INTO `sys_config` VALUES ('statement_performance_analyzer.view', NULL, '2018-05-31 13:11:56', NULL); INSERT INTO `sys_config` VALUES ('statement_truncate_len', '64', '2018-05-31 13:11:56', NULL); COMMIT; -- ---------------------------- -- View structure for host_summary -- ---------------------------- DROP VIEW IF EXISTS `host_summary`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `host_summary` AS select if(isnull(`performance_schema`.`accounts`.`HOST`),'background',`performance_schema`.`accounts`.`HOST`) AS `host`,sum(`stmt`.`total`) AS `statements`,`sys`.`format_time`(sum(`stmt`.`total_latency`)) AS `statement_latency`,`sys`.`format_time`(ifnull((sum(`stmt`.`total_latency`) / nullif(sum(`stmt`.`total`),0)),0)) AS `statement_avg_latency`,sum(`stmt`.`full_scans`) AS `table_scans`,sum(`io`.`ios`) AS `file_ios`,`sys`.`format_time`(sum(`io`.`io_latency`)) AS `file_io_latency`,sum(`performance_schema`.`accounts`.`CURRENT_CONNECTIONS`) AS `current_connections`,sum(`performance_schema`.`accounts`.`TOTAL_CONNECTIONS`) AS `total_connections`,count(distinct `performance_schema`.`accounts`.`USER`) AS `unique_users`,`sys`.`format_bytes`(sum(`mem`.`current_allocated`)) AS `current_memory`,`sys`.`format_bytes`(sum(`mem`.`total_allocated`)) AS `total_memory_allocated` from (((`performance_schema`.`accounts` join `sys`.`x$host_summary_by_statement_latency` `stmt` on((`performance_schema`.`accounts`.`HOST` = `stmt`.`host`))) join `sys`.`x$host_summary_by_file_io` `io` on((`performance_schema`.`accounts`.`HOST` = `io`.`host`))) join `sys`.`x$memory_by_host_by_current_bytes` `mem` on((`performance_schema`.`accounts`.`HOST` = `mem`.`host`))) group by if(isnull(`performance_schema`.`accounts`.`HOST`),'background',`performance_schema`.`accounts`.`HOST`); -- ---------------------------- -- View structure for host_summary_by_file_io -- ---------------------------- DROP VIEW IF EXISTS `host_summary_by_file_io`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `host_summary_by_file_io` AS select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR`) AS `ios`,`sys`.`format_time`(sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`)) AS `io_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` like 'wait/io/file/%') group by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) order by sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) desc; -- ---------------------------- -- View structure for host_summary_by_file_io_type -- ---------------------------- DROP VIEW IF EXISTS `host_summary_by_file_io_type`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `host_summary_by_file_io_type` AS select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where ((`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` like 'wait/io/file%') and (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` > 0)) order by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for host_summary_by_stages -- ---------------------------- DROP VIEW IF EXISTS `host_summary_by_stages`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `host_summary_by_stages` AS select if(isnull(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`AVG_TIMER_WAIT`) AS `avg_latency` from `performance_schema`.`events_stages_summary_by_host_by_event_name` where (`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` <> 0) order by if(isnull(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for host_summary_by_statement_latency -- ---------------------------- DROP VIEW IF EXISTS `host_summary_by_statement_latency`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `host_summary_by_statement_latency` AS select if(isnull(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`) AS `host`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`COUNT_STAR`) AS `total`,`sys`.`format_time`(sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`)) AS `total_latency`,`sys`.`format_time`(max(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`MAX_TIMER_WAIT`)) AS `max_latency`,`sys`.`format_time`(sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_LOCK_TIME`)) AS `lock_latency`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_SENT`) AS `rows_sent`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_EXAMINED`) AS `rows_examined`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_AFFECTED`) AS `rows_affected`,(sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_NO_INDEX_USED`) + sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_NO_GOOD_INDEX_USED`)) AS `full_scans` from `performance_schema`.`events_statements_summary_by_host_by_event_name` group by if(isnull(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`) order by sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) desc; -- ---------------------------- -- View structure for host_summary_by_statement_type -- ---------------------------- DROP VIEW IF EXISTS `host_summary_by_statement_type`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `host_summary_by_statement_type` AS select if(isnull(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`) AS `host`,substring_index(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`EVENT_NAME`,'/',-(1)) AS `statement`,`performance_schema`.`events_statements_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency`,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_LOCK_TIME`) AS `lock_latency`,`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_SENT` AS `rows_sent`,`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_EXAMINED` AS `rows_examined`,`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_AFFECTED` AS `rows_affected`,(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_NO_INDEX_USED` + `performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_NO_GOOD_INDEX_USED`) AS `full_scans` from `performance_schema`.`events_statements_summary_by_host_by_event_name` where (`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` <> 0) order by if(isnull(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for innodb_buffer_stats_by_schema -- ---------------------------- DROP VIEW IF EXISTS `innodb_buffer_stats_by_schema`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `innodb_buffer_stats_by_schema` AS select if((locate('.',`ibp`.`TABLE_NAME`) = 0),'InnoDB System',replace(substring_index(`ibp`.`TABLE_NAME`,'.',1),'`','')) AS `object_schema`,`sys`.`format_bytes`(sum(if((`ibp`.`COMPRESSED_SIZE` = 0),16384,`ibp`.`COMPRESSED_SIZE`))) AS `allocated`,`sys`.`format_bytes`(sum(`ibp`.`DATA_SIZE`)) AS `data`,count(`ibp`.`PAGE_NUMBER`) AS `pages`,count(if((`ibp`.`IS_HASHED` = 'YES'),1,NULL)) AS `pages_hashed`,count(if((`ibp`.`IS_OLD` = 'YES'),1,NULL)) AS `pages_old`,round((sum(`ibp`.`NUMBER_RECORDS`) / count(distinct `ibp`.`INDEX_NAME`)),0) AS `rows_cached` from `information_schema`.`innodb_buffer_page` `ibp` where (`ibp`.`TABLE_NAME` is not null) group by `object_schema` order by sum(if((`ibp`.`COMPRESSED_SIZE` = 0),16384,`ibp`.`COMPRESSED_SIZE`)) desc; -- ---------------------------- -- View structure for innodb_buffer_stats_by_table -- ---------------------------- DROP VIEW IF EXISTS `innodb_buffer_stats_by_table`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `innodb_buffer_stats_by_table` AS select if((locate('.',`ibp`.`TABLE_NAME`) = 0),'InnoDB System',replace(substring_index(`ibp`.`TABLE_NAME`,'.',1),'`','')) AS `object_schema`,replace(substring_index(`ibp`.`TABLE_NAME`,'.',-(1)),'`','') AS `object_name`,`sys`.`format_bytes`(sum(if((`ibp`.`COMPRESSED_SIZE` = 0),16384,`ibp`.`COMPRESSED_SIZE`))) AS `allocated`,`sys`.`format_bytes`(sum(`ibp`.`DATA_SIZE`)) AS `data`,count(`ibp`.`PAGE_NUMBER`) AS `pages`,count(if((`ibp`.`IS_HASHED` = 'YES'),1,NULL)) AS `pages_hashed`,count(if((`ibp`.`IS_OLD` = 'YES'),1,NULL)) AS `pages_old`,round((sum(`ibp`.`NUMBER_RECORDS`) / count(distinct `ibp`.`INDEX_NAME`)),0) AS `rows_cached` from `information_schema`.`innodb_buffer_page` `ibp` where (`ibp`.`TABLE_NAME` is not null) group by `object_schema`,`object_name` order by sum(if((`ibp`.`COMPRESSED_SIZE` = 0),16384,`ibp`.`COMPRESSED_SIZE`)) desc; -- ---------------------------- -- View structure for innodb_lock_waits -- ---------------------------- DROP VIEW IF EXISTS `innodb_lock_waits`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `innodb_lock_waits` AS select `r`.`trx_wait_started` AS `wait_started`,timediff(now(),`r`.`trx_wait_started`) AS `wait_age`,timestampdiff(SECOND,`r`.`trx_wait_started`,now()) AS `wait_age_secs`,`rl`.`lock_table` AS `locked_table`,`rl`.`lock_index` AS `locked_index`,`rl`.`lock_type` AS `locked_type`,`r`.`trx_id` AS `waiting_trx_id`,`r`.`trx_started` AS `waiting_trx_started`,timediff(now(),`r`.`trx_started`) AS `waiting_trx_age`,`r`.`trx_rows_locked` AS `waiting_trx_rows_locked`,`r`.`trx_rows_modified` AS `waiting_trx_rows_modified`,`r`.`trx_mysql_thread_id` AS `waiting_pid`,`sys`.`format_statement`(`r`.`trx_query`) AS `waiting_query`,`rl`.`lock_id` AS `waiting_lock_id`,`rl`.`lock_mode` AS `waiting_lock_mode`,`b`.`trx_id` AS `blocking_trx_id`,`b`.`trx_mysql_thread_id` AS `blocking_pid`,`sys`.`format_statement`(`b`.`trx_query`) AS `blocking_query`,`bl`.`lock_id` AS `blocking_lock_id`,`bl`.`lock_mode` AS `blocking_lock_mode`,`b`.`trx_started` AS `blocking_trx_started`,timediff(now(),`b`.`trx_started`) AS `blocking_trx_age`,`b`.`trx_rows_locked` AS `blocking_trx_rows_locked`,`b`.`trx_rows_modified` AS `blocking_trx_rows_modified`,concat('KILL QUERY ',`b`.`trx_mysql_thread_id`) AS `sql_kill_blocking_query`,concat('KILL ',`b`.`trx_mysql_thread_id`) AS `sql_kill_blocking_connection` from ((((`information_schema`.`innodb_lock_waits` `w` join `information_schema`.`innodb_trx` `b` on((`b`.`trx_id` = `w`.`blocking_trx_id`))) join `information_schema`.`innodb_trx` `r` on((`r`.`trx_id` = `w`.`requesting_trx_id`))) join `information_schema`.`innodb_locks` `bl` on((`bl`.`lock_id` = `w`.`blocking_lock_id`))) join `information_schema`.`innodb_locks` `rl` on((`rl`.`lock_id` = `w`.`requested_lock_id`))) order by `r`.`trx_wait_started`; -- ---------------------------- -- View structure for io_by_thread_by_latency -- ---------------------------- DROP VIEW IF EXISTS `io_by_thread_by_latency`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `io_by_thread_by_latency` AS select if(isnull(`performance_schema`.`threads`.`PROCESSLIST_ID`),substring_index(`performance_schema`.`threads`.`NAME`,'/',-(1)),concat(`performance_schema`.`threads`.`PROCESSLIST_USER`,'@',`performance_schema`.`threads`.`PROCESSLIST_HOST`)) AS `user`,sum(`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`COUNT_STAR`) AS `total`,`sys`.`format_time`(sum(`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`SUM_TIMER_WAIT`)) AS `total_latency`,`sys`.`format_time`(min(`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`MIN_TIMER_WAIT`)) AS `min_latency`,`sys`.`format_time`(avg(`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`AVG_TIMER_WAIT`)) AS `avg_latency`,`sys`.`format_time`(max(`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`MAX_TIMER_WAIT`)) AS `max_latency`,`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`THREAD_ID` AS `thread_id`,`performance_schema`.`threads`.`PROCESSLIST_ID` AS `processlist_id` from (`performance_schema`.`events_waits_summary_by_thread_by_event_name` left join `performance_schema`.`threads` on((`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`THREAD_ID` = `performance_schema`.`threads`.`THREAD_ID`))) where ((`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`EVENT_NAME` like 'wait/io/file/%') and (`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`SUM_TIMER_WAIT` > 0)) group by `performance_schema`.`events_waits_summary_by_thread_by_event_name`.`THREAD_ID`,`performance_schema`.`threads`.`PROCESSLIST_ID`,`user` order by sum(`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`SUM_TIMER_WAIT`) desc; -- ---------------------------- -- View structure for io_global_by_file_by_bytes -- ---------------------------- DROP VIEW IF EXISTS `io_global_by_file_by_bytes`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `io_global_by_file_by_bytes` AS select `sys`.`format_path`(`performance_schema`.`file_summary_by_instance`.`FILE_NAME`) AS `file`,`performance_schema`.`file_summary_by_instance`.`COUNT_READ` AS `count_read`,`sys`.`format_bytes`(`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_READ`) AS `total_read`,`sys`.`format_bytes`(ifnull((`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_READ` / nullif(`performance_schema`.`file_summary_by_instance`.`COUNT_READ`,0)),0)) AS `avg_read`,`performance_schema`.`file_summary_by_instance`.`COUNT_WRITE` AS `count_write`,`sys`.`format_bytes`(`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_WRITE`) AS `total_written`,`sys`.`format_bytes`(ifnull((`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_WRITE` / nullif(`performance_schema`.`file_summary_by_instance`.`COUNT_WRITE`,0)),0.00)) AS `avg_write`,`sys`.`format_bytes`((`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_READ` + `performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_WRITE`)) AS `total`,ifnull(round((100 - ((`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_READ` / nullif((`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_READ` + `performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_WRITE`),0)) * 100)),2),0.00) AS `write_pct` from `performance_schema`.`file_summary_by_instance` order by (`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_READ` + `performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_WRITE`) desc; -- ---------------------------- -- View structure for io_global_by_file_by_latency -- ---------------------------- DROP VIEW IF EXISTS `io_global_by_file_by_latency`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `io_global_by_file_by_latency` AS select `sys`.`format_path`(`performance_schema`.`file_summary_by_instance`.`FILE_NAME`) AS `file`,`performance_schema`.`file_summary_by_instance`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_WAIT`) AS `total_latency`,`performance_schema`.`file_summary_by_instance`.`COUNT_READ` AS `count_read`,`sys`.`format_time`(`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_READ`) AS `read_latency`,`performance_schema`.`file_summary_by_instance`.`COUNT_WRITE` AS `count_write`,`sys`.`format_time`(`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_WRITE`) AS `write_latency`,`performance_schema`.`file_summary_by_instance`.`COUNT_MISC` AS `count_misc`,`sys`.`format_time`(`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_MISC`) AS `misc_latency` from `performance_schema`.`file_summary_by_instance` order by `performance_schema`.`file_summary_by_instance`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for io_global_by_wait_by_bytes -- ---------------------------- DROP VIEW IF EXISTS `io_global_by_wait_by_bytes`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `io_global_by_wait_by_bytes` AS select substring_index(`performance_schema`.`file_summary_by_event_name`.`EVENT_NAME`,'/',-(2)) AS `event_name`,`performance_schema`.`file_summary_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`file_summary_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`file_summary_by_event_name`.`MIN_TIMER_WAIT`) AS `min_latency`,`sys`.`format_time`(`performance_schema`.`file_summary_by_event_name`.`AVG_TIMER_WAIT`) AS `avg_latency`,`sys`.`format_time`(`performance_schema`.`file_summary_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency`,`performance_schema`.`file_summary_by_event_name`.`COUNT_READ` AS `count_read`,`sys`.`format_bytes`(`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_READ`) AS `total_read`,`sys`.`format_bytes`(ifnull((`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_READ` / nullif(`performance_schema`.`file_summary_by_event_name`.`COUNT_READ`,0)),0)) AS `avg_read`,`performance_schema`.`file_summary_by_event_name`.`COUNT_WRITE` AS `count_write`,`sys`.`format_bytes`(`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_WRITE`) AS `total_written`,`sys`.`format_bytes`(ifnull((`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_WRITE` / nullif(`performance_schema`.`file_summary_by_event_name`.`COUNT_WRITE`,0)),0)) AS `avg_written`,`sys`.`format_bytes`((`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_WRITE` + `performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_READ`)) AS `total_requested` from `performance_schema`.`file_summary_by_event_name` where ((`performance_schema`.`file_summary_by_event_name`.`EVENT_NAME` like 'wait/io/file/%') and (`performance_schema`.`file_summary_by_event_name`.`COUNT_STAR` > 0)) order by (`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_WRITE` + `performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_READ`) desc; -- ---------------------------- -- View structure for io_global_by_wait_by_latency -- ---------------------------- DROP VIEW IF EXISTS `io_global_by_wait_by_latency`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `io_global_by_wait_by_latency` AS select substring_index(`performance_schema`.`file_summary_by_event_name`.`EVENT_NAME`,'/',-(2)) AS `event_name`,`performance_schema`.`file_summary_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`file_summary_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`file_summary_by_event_name`.`AVG_TIMER_WAIT`) AS `avg_latency`,`sys`.`format_time`(`performance_schema`.`file_summary_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency`,`sys`.`format_time`(`performance_schema`.`file_summary_by_event_name`.`SUM_TIMER_READ`) AS `read_latency`,`sys`.`format_time`(`performance_schema`.`file_summary_by_event_name`.`SUM_TIMER_WRITE`) AS `write_latency`,`sys`.`format_time`(`performance_schema`.`file_summary_by_event_name`.`SUM_TIMER_MISC`) AS `misc_latency`,`performance_schema`.`file_summary_by_event_name`.`COUNT_READ` AS `count_read`,`sys`.`format_bytes`(`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_READ`) AS `total_read`,`sys`.`format_bytes`(ifnull((`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_READ` / nullif(`performance_schema`.`file_summary_by_event_name`.`COUNT_READ`,0)),0)) AS `avg_read`,`performance_schema`.`file_summary_by_event_name`.`COUNT_WRITE` AS `count_write`,`sys`.`format_bytes`(`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_WRITE`) AS `total_written`,`sys`.`format_bytes`(ifnull((`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_WRITE` / nullif(`performance_schema`.`file_summary_by_event_name`.`COUNT_WRITE`,0)),0)) AS `avg_written` from `performance_schema`.`file_summary_by_event_name` where ((`performance_schema`.`file_summary_by_event_name`.`EVENT_NAME` like 'wait/io/file/%') and (`performance_schema`.`file_summary_by_event_name`.`COUNT_STAR` > 0)) order by `performance_schema`.`file_summary_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for latest_file_io -- ---------------------------- DROP VIEW IF EXISTS `latest_file_io`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `latest_file_io` AS select if(isnull(`information_schema`.`processlist`.`ID`),concat(substring_index(`performance_schema`.`threads`.`NAME`,'/',-(1)),':',`performance_schema`.`events_waits_history_long`.`THREAD_ID`),concat(`information_schema`.`processlist`.`USER`,'@',`information_schema`.`processlist`.`HOST`,':',`information_schema`.`processlist`.`ID`)) AS `thread`,`sys`.`format_path`(`performance_schema`.`events_waits_history_long`.`OBJECT_NAME`) AS `file`,`sys`.`format_time`(`performance_schema`.`events_waits_history_long`.`TIMER_WAIT`) AS `latency`,`performance_schema`.`events_waits_history_long`.`OPERATION` AS `operation`,`sys`.`format_bytes`(`performance_schema`.`events_waits_history_long`.`NUMBER_OF_BYTES`) AS `requested` from ((`performance_schema`.`events_waits_history_long` join `performance_schema`.`threads` on((`performance_schema`.`events_waits_history_long`.`THREAD_ID` = `performance_schema`.`threads`.`THREAD_ID`))) left join `information_schema`.`processlist` on((`performance_schema`.`threads`.`PROCESSLIST_ID` = `information_schema`.`processlist`.`ID`))) where ((`performance_schema`.`events_waits_history_long`.`OBJECT_NAME` is not null) and (`performance_schema`.`events_waits_history_long`.`EVENT_NAME` like 'wait/io/file/%')) order by `performance_schema`.`events_waits_history_long`.`TIMER_START`; -- ---------------------------- -- View structure for memory_by_host_by_current_bytes -- ---------------------------- DROP VIEW IF EXISTS `memory_by_host_by_current_bytes`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `memory_by_host_by_current_bytes` AS select if(isnull(`performance_schema`.`memory_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`memory_summary_by_host_by_event_name`.`HOST`) AS `host`,sum(`performance_schema`.`memory_summary_by_host_by_event_name`.`CURRENT_COUNT_USED`) AS `current_count_used`,`sys`.`format_bytes`(sum(`performance_schema`.`memory_summary_by_host_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`)) AS `current_allocated`,`sys`.`format_bytes`(ifnull((sum(`performance_schema`.`memory_summary_by_host_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) / nullif(sum(`performance_schema`.`memory_summary_by_host_by_event_name`.`CURRENT_COUNT_USED`),0)),0)) AS `current_avg_alloc`,`sys`.`format_bytes`(max(`performance_schema`.`memory_summary_by_host_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`)) AS `current_max_alloc`,`sys`.`format_bytes`(sum(`performance_schema`.`memory_summary_by_host_by_event_name`.`SUM_NUMBER_OF_BYTES_ALLOC`)) AS `total_allocated` from `performance_schema`.`memory_summary_by_host_by_event_name` group by if(isnull(`performance_schema`.`memory_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`memory_summary_by_host_by_event_name`.`HOST`) order by sum(`performance_schema`.`memory_summary_by_host_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) desc; -- ---------------------------- -- View structure for memory_by_thread_by_current_bytes -- ---------------------------- DROP VIEW IF EXISTS `memory_by_thread_by_current_bytes`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `memory_by_thread_by_current_bytes` AS select `mt`.`THREAD_ID` AS `thread_id`,if((`t`.`NAME` = 'thread/sql/one_connection'),concat(`t`.`PROCESSLIST_USER`,'@',`t`.`PROCESSLIST_HOST`),replace(`t`.`NAME`,'thread/','')) AS `user`,sum(`mt`.`CURRENT_COUNT_USED`) AS `current_count_used`,`sys`.`format_bytes`(sum(`mt`.`CURRENT_NUMBER_OF_BYTES_USED`)) AS `current_allocated`,`sys`.`format_bytes`(ifnull((sum(`mt`.`CURRENT_NUMBER_OF_BYTES_USED`) / nullif(sum(`mt`.`CURRENT_COUNT_USED`),0)),0)) AS `current_avg_alloc`,`sys`.`format_bytes`(max(`mt`.`CURRENT_NUMBER_OF_BYTES_USED`)) AS `current_max_alloc`,`sys`.`format_bytes`(sum(`mt`.`SUM_NUMBER_OF_BYTES_ALLOC`)) AS `total_allocated` from (`performance_schema`.`memory_summary_by_thread_by_event_name` `mt` join `performance_schema`.`threads` `t` on((`mt`.`THREAD_ID` = `t`.`THREAD_ID`))) group by `mt`.`THREAD_ID`,if((`t`.`NAME` = 'thread/sql/one_connection'),concat(`t`.`PROCESSLIST_USER`,'@',`t`.`PROCESSLIST_HOST`),replace(`t`.`NAME`,'thread/','')) order by sum(`mt`.`CURRENT_NUMBER_OF_BYTES_USED`) desc; -- ---------------------------- -- View structure for memory_by_user_by_current_bytes -- ---------------------------- DROP VIEW IF EXISTS `memory_by_user_by_current_bytes`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `memory_by_user_by_current_bytes` AS select if(isnull(`performance_schema`.`memory_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`memory_summary_by_user_by_event_name`.`USER`) AS `user`,sum(`performance_schema`.`memory_summary_by_user_by_event_name`.`CURRENT_COUNT_USED`) AS `current_count_used`,`sys`.`format_bytes`(sum(`performance_schema`.`memory_summary_by_user_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`)) AS `current_allocated`,`sys`.`format_bytes`(ifnull((sum(`performance_schema`.`memory_summary_by_user_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) / nullif(sum(`performance_schema`.`memory_summary_by_user_by_event_name`.`CURRENT_COUNT_USED`),0)),0)) AS `current_avg_alloc`,`sys`.`format_bytes`(max(`performance_schema`.`memory_summary_by_user_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`)) AS `current_max_alloc`,`sys`.`format_bytes`(sum(`performance_schema`.`memory_summary_by_user_by_event_name`.`SUM_NUMBER_OF_BYTES_ALLOC`)) AS `total_allocated` from `performance_schema`.`memory_summary_by_user_by_event_name` group by if(isnull(`performance_schema`.`memory_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`memory_summary_by_user_by_event_name`.`USER`) order by sum(`performance_schema`.`memory_summary_by_user_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) desc; -- ---------------------------- -- View structure for memory_global_by_current_bytes -- ---------------------------- DROP VIEW IF EXISTS `memory_global_by_current_bytes`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `memory_global_by_current_bytes` AS select `performance_schema`.`memory_summary_global_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_COUNT_USED` AS `current_count`,`sys`.`format_bytes`(`performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) AS `current_alloc`,`sys`.`format_bytes`(ifnull((`performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED` / nullif(`performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_COUNT_USED`,0)),0)) AS `current_avg_alloc`,`performance_schema`.`memory_summary_global_by_event_name`.`HIGH_COUNT_USED` AS `high_count`,`sys`.`format_bytes`(`performance_schema`.`memory_summary_global_by_event_name`.`HIGH_NUMBER_OF_BYTES_USED`) AS `high_alloc`,`sys`.`format_bytes`(ifnull((`performance_schema`.`memory_summary_global_by_event_name`.`HIGH_NUMBER_OF_BYTES_USED` / nullif(`performance_schema`.`memory_summary_global_by_event_name`.`HIGH_COUNT_USED`,0)),0)) AS `high_avg_alloc` from `performance_schema`.`memory_summary_global_by_event_name` where (`performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED` > 0) order by `performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED` desc; -- ---------------------------- -- View structure for memory_global_total -- ---------------------------- DROP VIEW IF EXISTS `memory_global_total`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `memory_global_total` AS select `sys`.`format_bytes`(sum(`performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`)) AS `total_allocated` from `performance_schema`.`memory_summary_global_by_event_name`; -- ---------------------------- -- View structure for metrics -- ---------------------------- DROP VIEW IF EXISTS `metrics`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `metrics` AS (select lower(`performance_schema`.`global_status`.`VARIABLE_NAME`) AS `Variable_name`,`performance_schema`.`global_status`.`VARIABLE_VALUE` AS `Variable_value`,'Global Status' AS `Type`,'YES' AS `Enabled` from `performance_schema`.`global_status`) union all (select `information_schema`.`INNODB_METRICS`.`NAME` AS `Variable_name`,`information_schema`.`INNODB_METRICS`.`COUNT` AS `Variable_value`,concat('InnoDB Metrics - ',`information_schema`.`INNODB_METRICS`.`SUBSYSTEM`) AS `Type`,if((`information_schema`.`INNODB_METRICS`.`STATUS` = 'enabled'),'YES','NO') AS `Enabled` from `information_schema`.`INNODB_METRICS` where (`information_schema`.`INNODB_METRICS`.`NAME` not in ('lock_row_lock_time','lock_row_lock_time_avg','lock_row_lock_time_max','lock_row_lock_waits','buffer_pool_reads','buffer_pool_read_requests','buffer_pool_write_requests','buffer_pool_wait_free','buffer_pool_read_ahead','buffer_pool_read_ahead_evicted','buffer_pool_pages_total','buffer_pool_pages_misc','buffer_pool_pages_data','buffer_pool_bytes_data','buffer_pool_pages_dirty','buffer_pool_bytes_dirty','buffer_pool_pages_free','buffer_pages_created','buffer_pages_written','buffer_pages_read','buffer_data_reads','buffer_data_written','file_num_open_files','os_log_bytes_written','os_log_fsyncs','os_log_pending_fsyncs','os_log_pending_writes','log_waits','log_write_requests','log_writes','innodb_dblwr_writes','innodb_dblwr_pages_written','innodb_page_size'))) union all (select 'memory_current_allocated' AS `Variable_name`,sum(`performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) AS `Variable_value`,'Performance Schema' AS `Type`,if(((select count(0) from `performance_schema`.`setup_instruments` where ((`performance_schema`.`setup_instruments`.`NAME` like 'memory/%') and (`performance_schema`.`setup_instruments`.`ENABLED` = 'YES'))) = 0),'NO',if(((select count(0) from `performance_schema`.`setup_instruments` where ((`performance_schema`.`setup_instruments`.`NAME` like 'memory/%') and (`performance_schema`.`setup_instruments`.`ENABLED` = 'YES'))) = (select count(0) from `performance_schema`.`setup_instruments` where (`performance_schema`.`setup_instruments`.`NAME` like 'memory/%'))),'YES','PARTIAL')) AS `Enabled` from `performance_schema`.`memory_summary_global_by_event_name`) union all (select 'memory_total_allocated' AS `Variable_name`,sum(`performance_schema`.`memory_summary_global_by_event_name`.`SUM_NUMBER_OF_BYTES_ALLOC`) AS `Variable_value`,'Performance Schema' AS `Type`,if(((select count(0) from `performance_schema`.`setup_instruments` where ((`performance_schema`.`setup_instruments`.`NAME` like 'memory/%') and (`performance_schema`.`setup_instruments`.`ENABLED` = 'YES'))) = 0),'NO',if(((select count(0) from `performance_schema`.`setup_instruments` where ((`performance_schema`.`setup_instruments`.`NAME` like 'memory/%') and (`performance_schema`.`setup_instruments`.`ENABLED` = 'YES'))) = (select count(0) from `performance_schema`.`setup_instruments` where (`performance_schema`.`setup_instruments`.`NAME` like 'memory/%'))),'YES','PARTIAL')) AS `Enabled` from `performance_schema`.`memory_summary_global_by_event_name`) union all (select 'NOW()' AS `Variable_name`,now(3) AS `Variable_value`,'System Time' AS `Type`,'YES' AS `Enabled`) union all (select 'UNIX_TIMESTAMP()' AS `Variable_name`,round(unix_timestamp(now(3)),3) AS `Variable_value`,'System Time' AS `Type`,'YES' AS `Enabled`) order by `Type`,`Variable_name`; -- ---------------------------- -- View structure for processlist -- ---------------------------- DROP VIEW IF EXISTS `processlist`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `processlist` AS select `pps`.`THREAD_ID` AS `thd_id`,`pps`.`PROCESSLIST_ID` AS `conn_id`,if((`pps`.`NAME` = 'thread/sql/one_connection'),concat(`pps`.`PROCESSLIST_USER`,'@',`pps`.`PROCESSLIST_HOST`),replace(`pps`.`NAME`,'thread/','')) AS `user`,`pps`.`PROCESSLIST_DB` AS `db`,`pps`.`PROCESSLIST_COMMAND` AS `command`,`pps`.`PROCESSLIST_STATE` AS `state`,`pps`.`PROCESSLIST_TIME` AS `time`,`sys`.`format_statement`(`pps`.`PROCESSLIST_INFO`) AS `current_statement`,if(isnull(`esc`.`END_EVENT_ID`),`sys`.`format_time`(`esc`.`TIMER_WAIT`),NULL) AS `statement_latency`,if(isnull(`esc`.`END_EVENT_ID`),round((100 * (`estc`.`WORK_COMPLETED` / `estc`.`WORK_ESTIMATED`)),2),NULL) AS `progress`,`sys`.`format_time`(`esc`.`LOCK_TIME`) AS `lock_latency`,`esc`.`ROWS_EXAMINED` AS `rows_examined`,`esc`.`ROWS_SENT` AS `rows_sent`,`esc`.`ROWS_AFFECTED` AS `rows_affected`,`esc`.`CREATED_TMP_TABLES` AS `tmp_tables`,`esc`.`CREATED_TMP_DISK_TABLES` AS `tmp_disk_tables`,if(((`esc`.`NO_GOOD_INDEX_USED` > 0) or (`esc`.`NO_INDEX_USED` > 0)),'YES','NO') AS `full_scan`,if((`esc`.`END_EVENT_ID` is not null),`sys`.`format_statement`(`esc`.`SQL_TEXT`),NULL) AS `last_statement`,if((`esc`.`END_EVENT_ID` is not null),`sys`.`format_time`(`esc`.`TIMER_WAIT`),NULL) AS `last_statement_latency`,`sys`.`format_bytes`(`mem`.`current_allocated`) AS `current_memory`,`ewc`.`EVENT_NAME` AS `last_wait`,if((isnull(`ewc`.`END_EVENT_ID`) and (`ewc`.`EVENT_NAME` is not null)),'Still Waiting',`sys`.`format_time`(`ewc`.`TIMER_WAIT`)) AS `last_wait_latency`,`ewc`.`SOURCE` AS `source`,`sys`.`format_time`(`etc`.`TIMER_WAIT`) AS `trx_latency`,`etc`.`STATE` AS `trx_state`,`etc`.`AUTOCOMMIT` AS `trx_autocommit`,`conattr_pid`.`ATTR_VALUE` AS `pid`,`conattr_progname`.`ATTR_VALUE` AS `program_name` from (((((((`performance_schema`.`threads` `pps` left join `performance_schema`.`events_waits_current` `ewc` on((`pps`.`THREAD_ID` = `ewc`.`THREAD_ID`))) left join `performance_schema`.`events_stages_current` `estc` on((`pps`.`THREAD_ID` = `estc`.`THREAD_ID`))) left join `performance_schema`.`events_statements_current` `esc` on((`pps`.`THREAD_ID` = `esc`.`THREAD_ID`))) left join `performance_schema`.`events_transactions_current` `etc` on((`pps`.`THREAD_ID` = `etc`.`THREAD_ID`))) left join `sys`.`x$memory_by_thread_by_current_bytes` `mem` on((`pps`.`THREAD_ID` = `mem`.`thread_id`))) left join `performance_schema`.`session_connect_attrs` `conattr_pid` on(((`conattr_pid`.`PROCESSLIST_ID` = `pps`.`PROCESSLIST_ID`) and (`conattr_pid`.`ATTR_NAME` = '_pid')))) left join `performance_schema`.`session_connect_attrs` `conattr_progname` on(((`conattr_progname`.`PROCESSLIST_ID` = `pps`.`PROCESSLIST_ID`) and (`conattr_progname`.`ATTR_NAME` = 'program_name')))) order by `pps`.`PROCESSLIST_TIME` desc,`last_wait_latency` desc; -- ---------------------------- -- View structure for ps_check_lost_instrumentation -- ---------------------------- DROP VIEW IF EXISTS `ps_check_lost_instrumentation`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `ps_check_lost_instrumentation` AS select `performance_schema`.`global_status`.`VARIABLE_NAME` AS `variable_name`,`performance_schema`.`global_status`.`VARIABLE_VALUE` AS `variable_value` from `performance_schema`.`global_status` where ((`performance_schema`.`global_status`.`VARIABLE_NAME` like 'perf%lost') and (`performance_schema`.`global_status`.`VARIABLE_VALUE` > 0)); -- ---------------------------- -- View structure for schema_auto_increment_columns -- ---------------------------- DROP VIEW IF EXISTS `schema_auto_increment_columns`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `schema_auto_increment_columns` AS select `information_schema`.`COLUMNS`.`TABLE_SCHEMA` AS `table_schema`,`information_schema`.`COLUMNS`.`TABLE_NAME` AS `table_name`,`information_schema`.`COLUMNS`.`COLUMN_NAME` AS `column_name`,`information_schema`.`COLUMNS`.`DATA_TYPE` AS `data_type`,`information_schema`.`COLUMNS`.`COLUMN_TYPE` AS `column_type`,(locate('unsigned',`information_schema`.`COLUMNS`.`COLUMN_TYPE`) = 0) AS `is_signed`,(locate('unsigned',`information_schema`.`COLUMNS`.`COLUMN_TYPE`) > 0) AS `is_unsigned`,((case `information_schema`.`COLUMNS`.`DATA_TYPE` when 'tinyint' then 255 when 'smallint' then 65535 when 'mediumint' then 16777215 when 'int' then 4294967295 when 'bigint' then 18446744073709551615 end) >> if((locate('unsigned',`information_schema`.`COLUMNS`.`COLUMN_TYPE`) > 0),0,1)) AS `max_value`,`information_schema`.`TABLES`.`AUTO_INCREMENT` AS `auto_increment`,(`information_schema`.`TABLES`.`AUTO_INCREMENT` / ((case `information_schema`.`COLUMNS`.`DATA_TYPE` when 'tinyint' then 255 when 'smallint' then 65535 when 'mediumint' then 16777215 when 'int' then 4294967295 when 'bigint' then 18446744073709551615 end) >> if((locate('unsigned',`information_schema`.`COLUMNS`.`COLUMN_TYPE`) > 0),0,1))) AS `auto_increment_ratio` from (`INFORMATION_SCHEMA`.`COLUMNS` join `INFORMATION_SCHEMA`.`TABLES` on(((`information_schema`.`COLUMNS`.`TABLE_SCHEMA` = `information_schema`.`TABLES`.`TABLE_SCHEMA`) and (`information_schema`.`COLUMNS`.`TABLE_NAME` = `information_schema`.`TABLES`.`TABLE_NAME`)))) where ((`information_schema`.`COLUMNS`.`TABLE_SCHEMA` not in ('mysql','sys','INFORMATION_SCHEMA','performance_schema')) and (`information_schema`.`TABLES`.`TABLE_TYPE` = 'BASE TABLE') and (`information_schema`.`COLUMNS`.`EXTRA` = 'auto_increment')) order by (`information_schema`.`TABLES`.`AUTO_INCREMENT` / ((case `information_schema`.`COLUMNS`.`DATA_TYPE` when 'tinyint' then 255 when 'smallint' then 65535 when 'mediumint' then 16777215 when 'int' then 4294967295 when 'bigint' then 18446744073709551615 end) >> if((locate('unsigned',`information_schema`.`COLUMNS`.`COLUMN_TYPE`) > 0),0,1))) desc,((case `information_schema`.`COLUMNS`.`DATA_TYPE` when 'tinyint' then 255 when 'smallint' then 65535 when 'mediumint' then 16777215 when 'int' then 4294967295 when 'bigint' then 18446744073709551615 end) >> if((locate('unsigned',`information_schema`.`COLUMNS`.`COLUMN_TYPE`) > 0),0,1)); -- ---------------------------- -- View structure for schema_index_statistics -- ---------------------------- DROP VIEW IF EXISTS `schema_index_statistics`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `schema_index_statistics` AS select `performance_schema`.`table_io_waits_summary_by_index_usage`.`OBJECT_SCHEMA` AS `table_schema`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`OBJECT_NAME` AS `table_name`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`INDEX_NAME` AS `index_name`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_FETCH` AS `rows_selected`,`sys`.`format_time`(`performance_schema`.`table_io_waits_summary_by_index_usage`.`SUM_TIMER_FETCH`) AS `select_latency`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_INSERT` AS `rows_inserted`,`sys`.`format_time`(`performance_schema`.`table_io_waits_summary_by_index_usage`.`SUM_TIMER_INSERT`) AS `insert_latency`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_UPDATE` AS `rows_updated`,`sys`.`format_time`(`performance_schema`.`table_io_waits_summary_by_index_usage`.`SUM_TIMER_UPDATE`) AS `update_latency`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_DELETE` AS `rows_deleted`,`sys`.`format_time`(`performance_schema`.`table_io_waits_summary_by_index_usage`.`SUM_TIMER_INSERT`) AS `delete_latency` from `performance_schema`.`table_io_waits_summary_by_index_usage` where (`performance_schema`.`table_io_waits_summary_by_index_usage`.`INDEX_NAME` is not null) order by `performance_schema`.`table_io_waits_summary_by_index_usage`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for schema_object_overview -- ---------------------------- DROP VIEW IF EXISTS `schema_object_overview`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `schema_object_overview` AS select `information_schema`.`routines`.`ROUTINE_SCHEMA` AS `db`,`information_schema`.`routines`.`ROUTINE_TYPE` AS `object_type`,count(0) AS `count` from `information_schema`.`routines` group by `information_schema`.`routines`.`ROUTINE_SCHEMA`,`information_schema`.`routines`.`ROUTINE_TYPE` union select `information_schema`.`tables`.`TABLE_SCHEMA` AS `TABLE_SCHEMA`,`information_schema`.`tables`.`TABLE_TYPE` AS `TABLE_TYPE`,count(0) AS `COUNT(*)` from `information_schema`.`tables` group by `information_schema`.`tables`.`TABLE_SCHEMA`,`information_schema`.`tables`.`TABLE_TYPE` union select `information_schema`.`statistics`.`TABLE_SCHEMA` AS `TABLE_SCHEMA`,concat('INDEX (',`information_schema`.`statistics`.`INDEX_TYPE`,')') AS `CONCAT('INDEX (', INDEX_TYPE, ')')`,count(0) AS `COUNT(*)` from `information_schema`.`statistics` group by `information_schema`.`statistics`.`TABLE_SCHEMA`,`information_schema`.`statistics`.`INDEX_TYPE` union select `information_schema`.`triggers`.`TRIGGER_SCHEMA` AS `TRIGGER_SCHEMA`,'TRIGGER' AS `TRIGGER`,count(0) AS `COUNT(*)` from `information_schema`.`triggers` group by `information_schema`.`triggers`.`TRIGGER_SCHEMA` union select `information_schema`.`events`.`EVENT_SCHEMA` AS `EVENT_SCHEMA`,'EVENT' AS `EVENT`,count(0) AS `COUNT(*)` from `information_schema`.`events` group by `information_schema`.`events`.`EVENT_SCHEMA` order by `db`,`object_type`; -- ---------------------------- -- View structure for schema_redundant_indexes -- ---------------------------- DROP VIEW IF EXISTS `schema_redundant_indexes`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `schema_redundant_indexes` AS select `redundant_keys`.`table_schema` AS `table_schema`,`redundant_keys`.`table_name` AS `table_name`,`redundant_keys`.`index_name` AS `redundant_index_name`,`redundant_keys`.`index_columns` AS `redundant_index_columns`,`redundant_keys`.`non_unique` AS `redundant_index_non_unique`,`dominant_keys`.`index_name` AS `dominant_index_name`,`dominant_keys`.`index_columns` AS `dominant_index_columns`,`dominant_keys`.`non_unique` AS `dominant_index_non_unique`,if((`redundant_keys`.`subpart_exists` or `dominant_keys`.`subpart_exists`),1,0) AS `subpart_exists`,concat('ALTER TABLE `',`redundant_keys`.`table_schema`,'`.`',`redundant_keys`.`table_name`,'` DROP INDEX `',`redundant_keys`.`index_name`,'`') AS `sql_drop_index` from (`sys`.`x$schema_flattened_keys` `redundant_keys` join `sys`.`x$schema_flattened_keys` `dominant_keys` on(((`redundant_keys`.`table_schema` = `dominant_keys`.`table_schema`) and (`redundant_keys`.`table_name` = `dominant_keys`.`table_name`)))) where ((`redundant_keys`.`index_name` <> `dominant_keys`.`index_name`) and (((`redundant_keys`.`index_columns` = `dominant_keys`.`index_columns`) and ((`redundant_keys`.`non_unique` > `dominant_keys`.`non_unique`) or ((`redundant_keys`.`non_unique` = `dominant_keys`.`non_unique`) and (if((`redundant_keys`.`index_name` = 'PRIMARY'),'',`redundant_keys`.`index_name`) > if((`dominant_keys`.`index_name` = 'PRIMARY'),'',`dominant_keys`.`index_name`))))) or ((locate(concat(`redundant_keys`.`index_columns`,','),`dominant_keys`.`index_columns`) = 1) and (`redundant_keys`.`non_unique` = 1)) or ((locate(concat(`dominant_keys`.`index_columns`,','),`redundant_keys`.`index_columns`) = 1) and (`dominant_keys`.`non_unique` = 0)))); -- ---------------------------- -- View structure for schema_tables_with_full_table_scans -- ---------------------------- DROP VIEW IF EXISTS `schema_tables_with_full_table_scans`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `schema_tables_with_full_table_scans` AS select `performance_schema`.`table_io_waits_summary_by_index_usage`.`OBJECT_SCHEMA` AS `object_schema`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`OBJECT_NAME` AS `object_name`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_READ` AS `rows_full_scanned`,`sys`.`format_time`(`performance_schema`.`table_io_waits_summary_by_index_usage`.`SUM_TIMER_WAIT`) AS `latency` from `performance_schema`.`table_io_waits_summary_by_index_usage` where (isnull(`performance_schema`.`table_io_waits_summary_by_index_usage`.`INDEX_NAME`) and (`performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_READ` > 0)) order by `performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_READ` desc; -- ---------------------------- -- View structure for schema_table_lock_waits -- ---------------------------- DROP VIEW IF EXISTS `schema_table_lock_waits`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `schema_table_lock_waits` AS select `g`.`OBJECT_SCHEMA` AS `object_schema`,`g`.`OBJECT_NAME` AS `object_name`,`pt`.`THREAD_ID` AS `waiting_thread_id`,`pt`.`PROCESSLIST_ID` AS `waiting_pid`,`sys`.`ps_thread_account`(`p`.`OWNER_THREAD_ID`) AS `waiting_account`,`p`.`LOCK_TYPE` AS `waiting_lock_type`,`p`.`LOCK_DURATION` AS `waiting_lock_duration`,`sys`.`format_statement`(`pt`.`PROCESSLIST_INFO`) AS `waiting_query`,`pt`.`PROCESSLIST_TIME` AS `waiting_query_secs`,`ps`.`ROWS_AFFECTED` AS `waiting_query_rows_affected`,`ps`.`ROWS_EXAMINED` AS `waiting_query_rows_examined`,`gt`.`THREAD_ID` AS `blocking_thread_id`,`gt`.`PROCESSLIST_ID` AS `blocking_pid`,`sys`.`ps_thread_account`(`g`.`OWNER_THREAD_ID`) AS `blocking_account`,`g`.`LOCK_TYPE` AS `blocking_lock_type`,`g`.`LOCK_DURATION` AS `blocking_lock_duration`,concat('KILL QUERY ',`gt`.`PROCESSLIST_ID`) AS `sql_kill_blocking_query`,concat('KILL ',`gt`.`PROCESSLIST_ID`) AS `sql_kill_blocking_connection` from (((((`performance_schema`.`metadata_locks` `g` join `performance_schema`.`metadata_locks` `p` on(((`g`.`OBJECT_TYPE` = `p`.`OBJECT_TYPE`) and (`g`.`OBJECT_SCHEMA` = `p`.`OBJECT_SCHEMA`) and (`g`.`OBJECT_NAME` = `p`.`OBJECT_NAME`) and (`g`.`LOCK_STATUS` = 'GRANTED') and (`p`.`LOCK_STATUS` = 'PENDING')))) join `performance_schema`.`threads` `gt` on((`g`.`OWNER_THREAD_ID` = `gt`.`THREAD_ID`))) join `performance_schema`.`threads` `pt` on((`p`.`OWNER_THREAD_ID` = `pt`.`THREAD_ID`))) left join `performance_schema`.`events_statements_current` `gs` on((`g`.`OWNER_THREAD_ID` = `gs`.`THREAD_ID`))) left join `performance_schema`.`events_statements_current` `ps` on((`p`.`OWNER_THREAD_ID` = `ps`.`THREAD_ID`))) where (`g`.`OBJECT_TYPE` = 'TABLE'); -- ---------------------------- -- View structure for schema_table_statistics -- ---------------------------- DROP VIEW IF EXISTS `schema_table_statistics`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `schema_table_statistics` AS select `pst`.`OBJECT_SCHEMA` AS `table_schema`,`pst`.`OBJECT_NAME` AS `table_name`,`sys`.`format_time`(`pst`.`SUM_TIMER_WAIT`) AS `total_latency`,`pst`.`COUNT_FETCH` AS `rows_fetched`,`sys`.`format_time`(`pst`.`SUM_TIMER_FETCH`) AS `fetch_latency`,`pst`.`COUNT_INSERT` AS `rows_inserted`,`sys`.`format_time`(`pst`.`SUM_TIMER_INSERT`) AS `insert_latency`,`pst`.`COUNT_UPDATE` AS `rows_updated`,`sys`.`format_time`(`pst`.`SUM_TIMER_UPDATE`) AS `update_latency`,`pst`.`COUNT_DELETE` AS `rows_deleted`,`sys`.`format_time`(`pst`.`SUM_TIMER_DELETE`) AS `delete_latency`,`fsbi`.`count_read` AS `io_read_requests`,`sys`.`format_bytes`(`fsbi`.`sum_number_of_bytes_read`) AS `io_read`,`sys`.`format_time`(`fsbi`.`sum_timer_read`) AS `io_read_latency`,`fsbi`.`count_write` AS `io_write_requests`,`sys`.`format_bytes`(`fsbi`.`sum_number_of_bytes_write`) AS `io_write`,`sys`.`format_time`(`fsbi`.`sum_timer_write`) AS `io_write_latency`,`fsbi`.`count_misc` AS `io_misc_requests`,`sys`.`format_time`(`fsbi`.`sum_timer_misc`) AS `io_misc_latency` from (`performance_schema`.`table_io_waits_summary_by_table` `pst` left join `sys`.`x$ps_schema_table_statistics_io` `fsbi` on(((`pst`.`OBJECT_SCHEMA` = `fsbi`.`table_schema`) and (`pst`.`OBJECT_NAME` = `fsbi`.`table_name`)))) order by `pst`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for schema_table_statistics_with_buffer -- ---------------------------- DROP VIEW IF EXISTS `schema_table_statistics_with_buffer`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `schema_table_statistics_with_buffer` AS select `pst`.`OBJECT_SCHEMA` AS `table_schema`,`pst`.`OBJECT_NAME` AS `table_name`,`pst`.`COUNT_FETCH` AS `rows_fetched`,`sys`.`format_time`(`pst`.`SUM_TIMER_FETCH`) AS `fetch_latency`,`pst`.`COUNT_INSERT` AS `rows_inserted`,`sys`.`format_time`(`pst`.`SUM_TIMER_INSERT`) AS `insert_latency`,`pst`.`COUNT_UPDATE` AS `rows_updated`,`sys`.`format_time`(`pst`.`SUM_TIMER_UPDATE`) AS `update_latency`,`pst`.`COUNT_DELETE` AS `rows_deleted`,`sys`.`format_time`(`pst`.`SUM_TIMER_DELETE`) AS `delete_latency`,`fsbi`.`count_read` AS `io_read_requests`,`sys`.`format_bytes`(`fsbi`.`sum_number_of_bytes_read`) AS `io_read`,`sys`.`format_time`(`fsbi`.`sum_timer_read`) AS `io_read_latency`,`fsbi`.`count_write` AS `io_write_requests`,`sys`.`format_bytes`(`fsbi`.`sum_number_of_bytes_write`) AS `io_write`,`sys`.`format_time`(`fsbi`.`sum_timer_write`) AS `io_write_latency`,`fsbi`.`count_misc` AS `io_misc_requests`,`sys`.`format_time`(`fsbi`.`sum_timer_misc`) AS `io_misc_latency`,`sys`.`format_bytes`(`ibp`.`allocated`) AS `innodb_buffer_allocated`,`sys`.`format_bytes`(`ibp`.`data`) AS `innodb_buffer_data`,`sys`.`format_bytes`((`ibp`.`allocated` - `ibp`.`data`)) AS `innodb_buffer_free`,`ibp`.`pages` AS `innodb_buffer_pages`,`ibp`.`pages_hashed` AS `innodb_buffer_pages_hashed`,`ibp`.`pages_old` AS `innodb_buffer_pages_old`,`ibp`.`rows_cached` AS `innodb_buffer_rows_cached` from ((`performance_schema`.`table_io_waits_summary_by_table` `pst` left join `sys`.`x$ps_schema_table_statistics_io` `fsbi` on(((`pst`.`OBJECT_SCHEMA` = `fsbi`.`table_schema`) and (`pst`.`OBJECT_NAME` = `fsbi`.`table_name`)))) left join `sys`.`x$innodb_buffer_stats_by_table` `ibp` on(((`pst`.`OBJECT_SCHEMA` = `ibp`.`object_schema`) and (`pst`.`OBJECT_NAME` = `ibp`.`object_name`)))) order by `pst`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for schema_unused_indexes -- ---------------------------- DROP VIEW IF EXISTS `schema_unused_indexes`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `schema_unused_indexes` AS select `performance_schema`.`table_io_waits_summary_by_index_usage`.`OBJECT_SCHEMA` AS `object_schema`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`OBJECT_NAME` AS `object_name`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`INDEX_NAME` AS `index_name` from `performance_schema`.`table_io_waits_summary_by_index_usage` where ((`performance_schema`.`table_io_waits_summary_by_index_usage`.`INDEX_NAME` is not null) and (`performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_STAR` = 0) and (`performance_schema`.`table_io_waits_summary_by_index_usage`.`OBJECT_SCHEMA` <> 'mysql') and (`performance_schema`.`table_io_waits_summary_by_index_usage`.`INDEX_NAME` <> 'PRIMARY')) order by `performance_schema`.`table_io_waits_summary_by_index_usage`.`OBJECT_SCHEMA`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`OBJECT_NAME`; -- ---------------------------- -- View structure for session -- ---------------------------- DROP VIEW IF EXISTS `session`; CREATE ALGORITHM = UNDEFINED SQL SECURITY INVOKER VIEW `session` AS select `processlist`.`thd_id` AS `thd_id`,`processlist`.`conn_id` AS `conn_id`,`processlist`.`user` AS `user`,`processlist`.`db` AS `db`,`processlist`.`command` AS `command`,`processlist`.`state` AS `state`,`processlist`.`time` AS `time`,`processlist`.`current_statement` AS `current_statement`,`processlist`.`statement_latency` AS `statement_latency`,`processlist`.`progress` AS `progress`,`processlist`.`lock_latency` AS `lock_latency`,`processlist`.`rows_examined` AS `rows_examined`,`processlist`.`rows_sent` AS `rows_sent`,`processlist`.`rows_affected` AS `rows_affected`,`processlist`.`tmp_tables` AS `tmp_tables`,`processlist`.`tmp_disk_tables` AS `tmp_disk_tables`,`processlist`.`full_scan` AS `full_scan`,`processlist`.`last_statement` AS `last_statement`,`processlist`.`last_statement_latency` AS `last_statement_latency`,`processlist`.`current_memory` AS `current_memory`,`processlist`.`last_wait` AS `last_wait`,`processlist`.`last_wait_latency` AS `last_wait_latency`,`processlist`.`source` AS `source`,`processlist`.`trx_latency` AS `trx_latency`,`processlist`.`trx_state` AS `trx_state`,`processlist`.`trx_autocommit` AS `trx_autocommit`,`processlist`.`pid` AS `pid`,`processlist`.`program_name` AS `program_name` from `sys`.`processlist` where ((`processlist`.`conn_id` is not null) and (`processlist`.`command` <> 'Daemon')); -- ---------------------------- -- View structure for session_ssl_status -- ---------------------------- DROP VIEW IF EXISTS `session_ssl_status`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `session_ssl_status` AS select `sslver`.`THREAD_ID` AS `thread_id`,`sslver`.`VARIABLE_VALUE` AS `ssl_version`,`sslcip`.`VARIABLE_VALUE` AS `ssl_cipher`,`sslreuse`.`VARIABLE_VALUE` AS `ssl_sessions_reused` from ((`performance_schema`.`status_by_thread` `sslver` left join `performance_schema`.`status_by_thread` `sslcip` on(((`sslcip`.`THREAD_ID` = `sslver`.`THREAD_ID`) and (`sslcip`.`VARIABLE_NAME` = 'Ssl_cipher')))) left join `performance_schema`.`status_by_thread` `sslreuse` on(((`sslreuse`.`THREAD_ID` = `sslver`.`THREAD_ID`) and (`sslreuse`.`VARIABLE_NAME` = 'Ssl_sessions_reused')))) where (`sslver`.`VARIABLE_NAME` = 'Ssl_version'); -- ---------------------------- -- View structure for statements_with_errors_or_warnings -- ---------------------------- DROP VIEW IF EXISTS `statements_with_errors_or_warnings`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `statements_with_errors_or_warnings` AS select `sys`.`format_statement`(`performance_schema`.`events_statements_summary_by_digest`.`DIGEST_TEXT`) AS `query`,`performance_schema`.`events_statements_summary_by_digest`.`SCHEMA_NAME` AS `db`,`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR` AS `exec_count`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ERRORS` AS `errors`,(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ERRORS` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0) * 100) AS `error_pct`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_WARNINGS` AS `warnings`,(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_WARNINGS` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0) * 100) AS `warning_pct`,`performance_schema`.`events_statements_summary_by_digest`.`FIRST_SEEN` AS `first_seen`,`performance_schema`.`events_statements_summary_by_digest`.`LAST_SEEN` AS `last_seen`,`performance_schema`.`events_statements_summary_by_digest`.`DIGEST` AS `digest` from `performance_schema`.`events_statements_summary_by_digest` where ((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ERRORS` > 0) or (`performance_schema`.`events_statements_summary_by_digest`.`SUM_WARNINGS` > 0)) order by `performance_schema`.`events_statements_summary_by_digest`.`SUM_ERRORS` desc,`performance_schema`.`events_statements_summary_by_digest`.`SUM_WARNINGS` desc; -- ---------------------------- -- View structure for statements_with_full_table_scans -- ---------------------------- DROP VIEW IF EXISTS `statements_with_full_table_scans`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `statements_with_full_table_scans` AS select `sys`.`format_statement`(`performance_schema`.`events_statements_summary_by_digest`.`DIGEST_TEXT`) AS `query`,`performance_schema`.`events_statements_summary_by_digest`.`SCHEMA_NAME` AS `db`,`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR` AS `exec_count`,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT`) AS `total_latency`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_INDEX_USED` AS `no_index_used_count`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_GOOD_INDEX_USED` AS `no_good_index_used_count`,round((ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_INDEX_USED` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0) * 100),0) AS `no_index_used_pct`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_SENT` AS `rows_sent`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_EXAMINED` AS `rows_examined`,round((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_SENT` / `performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`),0) AS `rows_sent_avg`,round((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_EXAMINED` / `performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`),0) AS `rows_examined_avg`,`performance_schema`.`events_statements_summary_by_digest`.`FIRST_SEEN` AS `first_seen`,`performance_schema`.`events_statements_summary_by_digest`.`LAST_SEEN` AS `last_seen`,`performance_schema`.`events_statements_summary_by_digest`.`DIGEST` AS `digest` from `performance_schema`.`events_statements_summary_by_digest` where (((`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_INDEX_USED` > 0) or (`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_GOOD_INDEX_USED` > 0)) and (not((`performance_schema`.`events_statements_summary_by_digest`.`DIGEST_TEXT` like 'SHOW%')))) order by round((ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_INDEX_USED` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0) * 100),0) desc,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT`) desc; -- ---------------------------- -- View structure for statements_with_runtimes_in_95th_percentile -- ---------------------------- DROP VIEW IF EXISTS `statements_with_runtimes_in_95th_percentile`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `statements_with_runtimes_in_95th_percentile` AS select `sys`.`format_statement`(`stmts`.`DIGEST_TEXT`) AS `query`,`stmts`.`SCHEMA_NAME` AS `db`,if(((`stmts`.`SUM_NO_GOOD_INDEX_USED` > 0) or (`stmts`.`SUM_NO_INDEX_USED` > 0)),'*','') AS `full_scan`,`stmts`.`COUNT_STAR` AS `exec_count`,`stmts`.`SUM_ERRORS` AS `err_count`,`stmts`.`SUM_WARNINGS` AS `warn_count`,`sys`.`format_time`(`stmts`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`stmts`.`MAX_TIMER_WAIT`) AS `max_latency`,`sys`.`format_time`(`stmts`.`AVG_TIMER_WAIT`) AS `avg_latency`,`stmts`.`SUM_ROWS_SENT` AS `rows_sent`,round(ifnull((`stmts`.`SUM_ROWS_SENT` / nullif(`stmts`.`COUNT_STAR`,0)),0),0) AS `rows_sent_avg`,`stmts`.`SUM_ROWS_EXAMINED` AS `rows_examined`,round(ifnull((`stmts`.`SUM_ROWS_EXAMINED` / nullif(`stmts`.`COUNT_STAR`,0)),0),0) AS `rows_examined_avg`,`stmts`.`FIRST_SEEN` AS `first_seen`,`stmts`.`LAST_SEEN` AS `last_seen`,`stmts`.`DIGEST` AS `digest` from (`performance_schema`.`events_statements_summary_by_digest` `stmts` join `sys`.`x$ps_digest_95th_percentile_by_avg_us` `top_percentile` on((round((`stmts`.`AVG_TIMER_WAIT` / 1000000),0) >= `top_percentile`.`avg_us`))) order by `stmts`.`AVG_TIMER_WAIT` desc; -- ---------------------------- -- View structure for statements_with_sorting -- ---------------------------- DROP VIEW IF EXISTS `statements_with_sorting`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `statements_with_sorting` AS select `sys`.`format_statement`(`performance_schema`.`events_statements_summary_by_digest`.`DIGEST_TEXT`) AS `query`,`performance_schema`.`events_statements_summary_by_digest`.`SCHEMA_NAME` AS `db`,`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR` AS `exec_count`,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT`) AS `total_latency`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_MERGE_PASSES` AS `sort_merge_passes`,round(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_MERGE_PASSES` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0),0) AS `avg_sort_merges`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_SCAN` AS `sorts_using_scans`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_RANGE` AS `sort_using_range`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_ROWS` AS `rows_sorted`,round(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_ROWS` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0),0) AS `avg_rows_sorted`,`performance_schema`.`events_statements_summary_by_digest`.`FIRST_SEEN` AS `first_seen`,`performance_schema`.`events_statements_summary_by_digest`.`LAST_SEEN` AS `last_seen`,`performance_schema`.`events_statements_summary_by_digest`.`DIGEST` AS `digest` from `performance_schema`.`events_statements_summary_by_digest` where (`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_ROWS` > 0) order by `performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for statements_with_temp_tables -- ---------------------------- DROP VIEW IF EXISTS `statements_with_temp_tables`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `statements_with_temp_tables` AS select `sys`.`format_statement`(`performance_schema`.`events_statements_summary_by_digest`.`DIGEST_TEXT`) AS `query`,`performance_schema`.`events_statements_summary_by_digest`.`SCHEMA_NAME` AS `db`,`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR` AS `exec_count`,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT`) AS `total_latency`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_TABLES` AS `memory_tmp_tables`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_DISK_TABLES` AS `disk_tmp_tables`,round(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_TABLES` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0),0) AS `avg_tmp_tables_per_query`,round((ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_DISK_TABLES` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_TABLES`,0)),0) * 100),0) AS `tmp_tables_to_disk_pct`,`performance_schema`.`events_statements_summary_by_digest`.`FIRST_SEEN` AS `first_seen`,`performance_schema`.`events_statements_summary_by_digest`.`LAST_SEEN` AS `last_seen`,`performance_schema`.`events_statements_summary_by_digest`.`DIGEST` AS `digest` from `performance_schema`.`events_statements_summary_by_digest` where (`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_TABLES` > 0) order by `performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_DISK_TABLES` desc,`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_TABLES` desc; -- ---------------------------- -- View structure for statement_analysis -- ---------------------------- DROP VIEW IF EXISTS `statement_analysis`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `statement_analysis` AS select `sys`.`format_statement`(`performance_schema`.`events_statements_summary_by_digest`.`DIGEST_TEXT`) AS `query`,`performance_schema`.`events_statements_summary_by_digest`.`SCHEMA_NAME` AS `db`,if(((`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_GOOD_INDEX_USED` > 0) or (`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_INDEX_USED` > 0)),'*','') AS `full_scan`,`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR` AS `exec_count`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ERRORS` AS `err_count`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_WARNINGS` AS `warn_count`,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_digest`.`MAX_TIMER_WAIT`) AS `max_latency`,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_digest`.`AVG_TIMER_WAIT`) AS `avg_latency`,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_digest`.`SUM_LOCK_TIME`) AS `lock_latency`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_SENT` AS `rows_sent`,round(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_SENT` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0),0) AS `rows_sent_avg`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_EXAMINED` AS `rows_examined`,round(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_EXAMINED` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0),0) AS `rows_examined_avg`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_AFFECTED` AS `rows_affected`,round(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_AFFECTED` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0),0) AS `rows_affected_avg`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_TABLES` AS `tmp_tables`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_DISK_TABLES` AS `tmp_disk_tables`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_ROWS` AS `rows_sorted`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_MERGE_PASSES` AS `sort_merge_passes`,`performance_schema`.`events_statements_summary_by_digest`.`DIGEST` AS `digest`,`performance_schema`.`events_statements_summary_by_digest`.`FIRST_SEEN` AS `first_seen`,`performance_schema`.`events_statements_summary_by_digest`.`LAST_SEEN` AS `last_seen` from `performance_schema`.`events_statements_summary_by_digest` order by `performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for user_summary -- ---------------------------- DROP VIEW IF EXISTS `user_summary`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `user_summary` AS select if(isnull(`performance_schema`.`accounts`.`USER`),'background',`performance_schema`.`accounts`.`USER`) AS `user`,sum(`stmt`.`total`) AS `statements`,`sys`.`format_time`(sum(`stmt`.`total_latency`)) AS `statement_latency`,`sys`.`format_time`(ifnull((sum(`stmt`.`total_latency`) / nullif(sum(`stmt`.`total`),0)),0)) AS `statement_avg_latency`,sum(`stmt`.`full_scans`) AS `table_scans`,sum(`io`.`ios`) AS `file_ios`,`sys`.`format_time`(sum(`io`.`io_latency`)) AS `file_io_latency`,sum(`performance_schema`.`accounts`.`CURRENT_CONNECTIONS`) AS `current_connections`,sum(`performance_schema`.`accounts`.`TOTAL_CONNECTIONS`) AS `total_connections`,count(distinct `performance_schema`.`accounts`.`HOST`) AS `unique_hosts`,`sys`.`format_bytes`(sum(`mem`.`current_allocated`)) AS `current_memory`,`sys`.`format_bytes`(sum(`mem`.`total_allocated`)) AS `total_memory_allocated` from (((`performance_schema`.`accounts` left join `sys`.`x$user_summary_by_statement_latency` `stmt` on((if(isnull(`performance_schema`.`accounts`.`USER`),'background',`performance_schema`.`accounts`.`USER`) = `stmt`.`user`))) left join `sys`.`x$user_summary_by_file_io` `io` on((if(isnull(`performance_schema`.`accounts`.`USER`),'background',`performance_schema`.`accounts`.`USER`) = `io`.`user`))) left join `sys`.`x$memory_by_user_by_current_bytes` `mem` on((if(isnull(`performance_schema`.`accounts`.`USER`),'background',`performance_schema`.`accounts`.`USER`) = `mem`.`user`))) group by if(isnull(`performance_schema`.`accounts`.`USER`),'background',`performance_schema`.`accounts`.`USER`) order by sum(`stmt`.`total_latency`) desc; -- ---------------------------- -- View structure for user_summary_by_file_io -- ---------------------------- DROP VIEW IF EXISTS `user_summary_by_file_io`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `user_summary_by_file_io` AS select if(isnull(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`) AS `user`,sum(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`COUNT_STAR`) AS `ios`,`sys`.`format_time`(sum(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT`)) AS `io_latency` from `performance_schema`.`events_waits_summary_by_user_by_event_name` where (`performance_schema`.`events_waits_summary_by_user_by_event_name`.`EVENT_NAME` like 'wait/io/file/%') group by if(isnull(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`) order by sum(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT`) desc; -- ---------------------------- -- View structure for user_summary_by_file_io_type -- ---------------------------- DROP VIEW IF EXISTS `user_summary_by_file_io_type`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `user_summary_by_file_io_type` AS select if(isnull(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`) AS `user`,`performance_schema`.`events_waits_summary_by_user_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_waits_summary_by_user_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT`) AS `latency`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency` from `performance_schema`.`events_waits_summary_by_user_by_event_name` where ((`performance_schema`.`events_waits_summary_by_user_by_event_name`.`EVENT_NAME` like 'wait/io/file%') and (`performance_schema`.`events_waits_summary_by_user_by_event_name`.`COUNT_STAR` > 0)) order by if(isnull(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for user_summary_by_stages -- ---------------------------- DROP VIEW IF EXISTS `user_summary_by_stages`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `user_summary_by_stages` AS select if(isnull(`performance_schema`.`events_stages_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_stages_summary_by_user_by_event_name`.`USER`) AS `user`,`performance_schema`.`events_stages_summary_by_user_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_stages_summary_by_user_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_stages_summary_by_user_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_stages_summary_by_user_by_event_name`.`AVG_TIMER_WAIT`) AS `avg_latency` from `performance_schema`.`events_stages_summary_by_user_by_event_name` where (`performance_schema`.`events_stages_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` <> 0) order by if(isnull(`performance_schema`.`events_stages_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_stages_summary_by_user_by_event_name`.`USER`),`performance_schema`.`events_stages_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for user_summary_by_statement_latency -- ---------------------------- DROP VIEW IF EXISTS `user_summary_by_statement_latency`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `user_summary_by_statement_latency` AS select if(isnull(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`) AS `user`,sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`COUNT_STAR`) AS `total`,`sys`.`format_time`(sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_TIMER_WAIT`)) AS `total_latency`,`sys`.`format_time`(sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`MAX_TIMER_WAIT`)) AS `max_latency`,`sys`.`format_time`(sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_LOCK_TIME`)) AS `lock_latency`,sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_ROWS_SENT`) AS `rows_sent`,sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_ROWS_EXAMINED`) AS `rows_examined`,sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_ROWS_AFFECTED`) AS `rows_affected`,(sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_NO_INDEX_USED`) + sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_NO_GOOD_INDEX_USED`)) AS `full_scans` from `performance_schema`.`events_statements_summary_by_user_by_event_name` group by if(isnull(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`) order by sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_TIMER_WAIT`) desc; -- ---------------------------- -- View structure for user_summary_by_statement_type -- ---------------------------- DROP VIEW IF EXISTS `user_summary_by_statement_type`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `user_summary_by_statement_type` AS select if(isnull(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`) AS `user`,substring_index(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`EVENT_NAME`,'/',-(1)) AS `statement`,`performance_schema`.`events_statements_summary_by_user_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency`,`sys`.`format_time`(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_LOCK_TIME`) AS `lock_latency`,`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_ROWS_SENT` AS `rows_sent`,`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_ROWS_EXAMINED` AS `rows_examined`,`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_ROWS_AFFECTED` AS `rows_affected`,(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_NO_INDEX_USED` + `performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_NO_GOOD_INDEX_USED`) AS `full_scans` from `performance_schema`.`events_statements_summary_by_user_by_event_name` where (`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` <> 0) order by if(isnull(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`),`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for version -- ---------------------------- DROP VIEW IF EXISTS `version`; CREATE ALGORITHM = UNDEFINED SQL SECURITY INVOKER VIEW `version` AS select '1.5.1' AS `sys_version`,version() AS `mysql_version`; -- ---------------------------- -- View structure for waits_by_host_by_latency -- ---------------------------- DROP VIEW IF EXISTS `waits_by_host_by_latency`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `waits_by_host_by_latency` AS select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` AS `event`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`AVG_TIMER_WAIT`) AS `avg_latency`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where ((`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` <> 'idle') and (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` > 0)) order by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for waits_by_user_by_latency -- ---------------------------- DROP VIEW IF EXISTS `waits_by_user_by_latency`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `waits_by_user_by_latency` AS select if(isnull(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`) AS `user`,`performance_schema`.`events_waits_summary_by_user_by_event_name`.`EVENT_NAME` AS `event`,`performance_schema`.`events_waits_summary_by_user_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`AVG_TIMER_WAIT`) AS `avg_latency`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency` from `performance_schema`.`events_waits_summary_by_user_by_event_name` where ((`performance_schema`.`events_waits_summary_by_user_by_event_name`.`EVENT_NAME` <> 'idle') and (`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER` is not null) and (`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` > 0)) order by if(isnull(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for waits_global_by_latency -- ---------------------------- DROP VIEW IF EXISTS `waits_global_by_latency`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `waits_global_by_latency` AS select `performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME` AS `events`,`performance_schema`.`events_waits_summary_global_by_event_name`.`COUNT_STAR` AS `total`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_global_by_event_name`.`AVG_TIMER_WAIT`) AS `avg_latency`,`sys`.`format_time`(`performance_schema`.`events_waits_summary_global_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency` from `performance_schema`.`events_waits_summary_global_by_event_name` where ((`performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME` <> 'idle') and (`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT` > 0)) order by `performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for wait_classes_global_by_avg_latency -- ---------------------------- DROP VIEW IF EXISTS `wait_classes_global_by_avg_latency`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `wait_classes_global_by_avg_latency` AS select substring_index(`performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME`,'/',3) AS `event_class`,sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`COUNT_STAR`) AS `total`,`sys`.`format_time`(cast(sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT`) as unsigned)) AS `total_latency`,`sys`.`format_time`(min(`performance_schema`.`events_waits_summary_global_by_event_name`.`MIN_TIMER_WAIT`)) AS `min_latency`,`sys`.`format_time`(ifnull((sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT`) / nullif(sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`COUNT_STAR`),0)),0)) AS `avg_latency`,`sys`.`format_time`(cast(max(`performance_schema`.`events_waits_summary_global_by_event_name`.`MAX_TIMER_WAIT`) as unsigned)) AS `max_latency` from `performance_schema`.`events_waits_summary_global_by_event_name` where ((`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT` > 0) and (`performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME` <> 'idle')) group by `event_class` order by ifnull((sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT`) / nullif(sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`COUNT_STAR`),0)),0) desc; -- ---------------------------- -- View structure for wait_classes_global_by_latency -- ---------------------------- DROP VIEW IF EXISTS `wait_classes_global_by_latency`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `wait_classes_global_by_latency` AS select substring_index(`performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME`,'/',3) AS `event_class`,sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`COUNT_STAR`) AS `total`,`sys`.`format_time`(sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT`)) AS `total_latency`,`sys`.`format_time`(min(`performance_schema`.`events_waits_summary_global_by_event_name`.`MIN_TIMER_WAIT`)) AS `min_latency`,`sys`.`format_time`(ifnull((sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT`) / nullif(sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`COUNT_STAR`),0)),0)) AS `avg_latency`,`sys`.`format_time`(max(`performance_schema`.`events_waits_summary_global_by_event_name`.`MAX_TIMER_WAIT`)) AS `max_latency` from `performance_schema`.`events_waits_summary_global_by_event_name` where ((`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT` > 0) and (`performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME` <> 'idle')) group by substring_index(`performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME`,'/',3) order by sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT`) desc; -- ---------------------------- -- View structure for x$host_summary -- ---------------------------- DROP VIEW IF EXISTS `x$host_summary`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$host_summary` AS select if(isnull(`performance_schema`.`accounts`.`HOST`),'background',`performance_schema`.`accounts`.`HOST`) AS `host`,sum(`stmt`.`total`) AS `statements`,sum(`stmt`.`total_latency`) AS `statement_latency`,(sum(`stmt`.`total_latency`) / sum(`stmt`.`total`)) AS `statement_avg_latency`,sum(`stmt`.`full_scans`) AS `table_scans`,sum(`io`.`ios`) AS `file_ios`,sum(`io`.`io_latency`) AS `file_io_latency`,sum(`performance_schema`.`accounts`.`CURRENT_CONNECTIONS`) AS `current_connections`,sum(`performance_schema`.`accounts`.`TOTAL_CONNECTIONS`) AS `total_connections`,count(distinct `performance_schema`.`accounts`.`USER`) AS `unique_users`,sum(`mem`.`current_allocated`) AS `current_memory`,sum(`mem`.`total_allocated`) AS `total_memory_allocated` from (((`performance_schema`.`accounts` join `sys`.`x$host_summary_by_statement_latency` `stmt` on((`performance_schema`.`accounts`.`HOST` = `stmt`.`host`))) join `sys`.`x$host_summary_by_file_io` `io` on((`performance_schema`.`accounts`.`HOST` = `io`.`host`))) join `sys`.`x$memory_by_host_by_current_bytes` `mem` on((`performance_schema`.`accounts`.`HOST` = `mem`.`host`))) group by if(isnull(`performance_schema`.`accounts`.`HOST`),'background',`performance_schema`.`accounts`.`HOST`); -- ---------------------------- -- View structure for x$host_summary_by_file_io -- ---------------------------- DROP VIEW IF EXISTS `x$host_summary_by_file_io`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$host_summary_by_file_io` AS select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR`) AS `ios`,sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `io_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` like 'wait/io/file/%') group by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) order by sum(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) desc; -- ---------------------------- -- View structure for x$host_summary_by_file_io_type -- ---------------------------- DROP VIEW IF EXISTS `x$host_summary_by_file_io_type`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$host_summary_by_file_io_type` AS select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`MAX_TIMER_WAIT` AS `max_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where ((`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` like 'wait/io/file%') and (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` > 0)) order by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$host_summary_by_stages -- ---------------------------- DROP VIEW IF EXISTS `x$host_summary_by_stages`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$host_summary_by_stages` AS select if(isnull(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`events_stages_summary_by_host_by_event_name`.`AVG_TIMER_WAIT` AS `avg_latency` from `performance_schema`.`events_stages_summary_by_host_by_event_name` where (`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` <> 0) order by if(isnull(`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_stages_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_stages_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$host_summary_by_statement_latency -- ---------------------------- DROP VIEW IF EXISTS `x$host_summary_by_statement_latency`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$host_summary_by_statement_latency` AS select if(isnull(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`) AS `host`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`COUNT_STAR`) AS `total`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,max(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_LOCK_TIME`) AS `lock_latency`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_SENT`) AS `rows_sent`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_EXAMINED`) AS `rows_examined`,sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_AFFECTED`) AS `rows_affected`,(sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_NO_INDEX_USED`) + sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_NO_GOOD_INDEX_USED`)) AS `full_scans` from `performance_schema`.`events_statements_summary_by_host_by_event_name` group by if(isnull(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`) order by sum(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT`) desc; -- ---------------------------- -- View structure for x$host_summary_by_statement_type -- ---------------------------- DROP VIEW IF EXISTS `x$host_summary_by_statement_type`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$host_summary_by_statement_type` AS select if(isnull(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`) AS `host`,substring_index(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`EVENT_NAME`,'/',-(1)) AS `statement`,`performance_schema`.`events_statements_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`events_statements_summary_by_host_by_event_name`.`MAX_TIMER_WAIT` AS `max_latency`,`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_LOCK_TIME` AS `lock_latency`,`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_SENT` AS `rows_sent`,`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_EXAMINED` AS `rows_examined`,`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_ROWS_AFFECTED` AS `rows_affected`,(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_NO_INDEX_USED` + `performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_NO_GOOD_INDEX_USED`) AS `full_scans` from `performance_schema`.`events_statements_summary_by_host_by_event_name` where (`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` <> 0) order by if(isnull(`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_statements_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_statements_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$innodb_buffer_stats_by_schema -- ---------------------------- DROP VIEW IF EXISTS `x$innodb_buffer_stats_by_schema`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$innodb_buffer_stats_by_schema` AS select if((locate('.',`ibp`.`TABLE_NAME`) = 0),'InnoDB System',replace(substring_index(`ibp`.`TABLE_NAME`,'.',1),'`','')) AS `object_schema`,sum(if((`ibp`.`COMPRESSED_SIZE` = 0),16384,`ibp`.`COMPRESSED_SIZE`)) AS `allocated`,sum(`ibp`.`DATA_SIZE`) AS `data`,count(`ibp`.`PAGE_NUMBER`) AS `pages`,count(if((`ibp`.`IS_HASHED` = 'YES'),1,NULL)) AS `pages_hashed`,count(if((`ibp`.`IS_OLD` = 'YES'),1,NULL)) AS `pages_old`,round(ifnull((sum(`ibp`.`NUMBER_RECORDS`) / nullif(count(distinct `ibp`.`INDEX_NAME`),0)),0),0) AS `rows_cached` from `information_schema`.`innodb_buffer_page` `ibp` where (`ibp`.`TABLE_NAME` is not null) group by `object_schema` order by sum(if((`ibp`.`COMPRESSED_SIZE` = 0),16384,`ibp`.`COMPRESSED_SIZE`)) desc; -- ---------------------------- -- View structure for x$innodb_buffer_stats_by_table -- ---------------------------- DROP VIEW IF EXISTS `x$innodb_buffer_stats_by_table`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$innodb_buffer_stats_by_table` AS select if((locate('.',`ibp`.`TABLE_NAME`) = 0),'InnoDB System',replace(substring_index(`ibp`.`TABLE_NAME`,'.',1),'`','')) AS `object_schema`,replace(substring_index(`ibp`.`TABLE_NAME`,'.',-(1)),'`','') AS `object_name`,sum(if((`ibp`.`COMPRESSED_SIZE` = 0),16384,`ibp`.`COMPRESSED_SIZE`)) AS `allocated`,sum(`ibp`.`DATA_SIZE`) AS `data`,count(`ibp`.`PAGE_NUMBER`) AS `pages`,count(if((`ibp`.`IS_HASHED` = 'YES'),1,NULL)) AS `pages_hashed`,count(if((`ibp`.`IS_OLD` = 'YES'),1,NULL)) AS `pages_old`,round(ifnull((sum(`ibp`.`NUMBER_RECORDS`) / nullif(count(distinct `ibp`.`INDEX_NAME`),0)),0),0) AS `rows_cached` from `information_schema`.`innodb_buffer_page` `ibp` where (`ibp`.`TABLE_NAME` is not null) group by `object_schema`,`object_name` order by sum(if((`ibp`.`COMPRESSED_SIZE` = 0),16384,`ibp`.`COMPRESSED_SIZE`)) desc; -- ---------------------------- -- View structure for x$innodb_lock_waits -- ---------------------------- DROP VIEW IF EXISTS `x$innodb_lock_waits`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$innodb_lock_waits` AS select `r`.`trx_wait_started` AS `wait_started`,timediff(now(),`r`.`trx_wait_started`) AS `wait_age`,timestampdiff(SECOND,`r`.`trx_wait_started`,now()) AS `wait_age_secs`,`rl`.`lock_table` AS `locked_table`,`rl`.`lock_index` AS `locked_index`,`rl`.`lock_type` AS `locked_type`,`r`.`trx_id` AS `waiting_trx_id`,`r`.`trx_started` AS `waiting_trx_started`,timediff(now(),`r`.`trx_started`) AS `waiting_trx_age`,`r`.`trx_rows_locked` AS `waiting_trx_rows_locked`,`r`.`trx_rows_modified` AS `waiting_trx_rows_modified`,`r`.`trx_mysql_thread_id` AS `waiting_pid`,`r`.`trx_query` AS `waiting_query`,`rl`.`lock_id` AS `waiting_lock_id`,`rl`.`lock_mode` AS `waiting_lock_mode`,`b`.`trx_id` AS `blocking_trx_id`,`b`.`trx_mysql_thread_id` AS `blocking_pid`,`b`.`trx_query` AS `blocking_query`,`bl`.`lock_id` AS `blocking_lock_id`,`bl`.`lock_mode` AS `blocking_lock_mode`,`b`.`trx_started` AS `blocking_trx_started`,timediff(now(),`b`.`trx_started`) AS `blocking_trx_age`,`b`.`trx_rows_locked` AS `blocking_trx_rows_locked`,`b`.`trx_rows_modified` AS `blocking_trx_rows_modified`,concat('KILL QUERY ',`b`.`trx_mysql_thread_id`) AS `sql_kill_blocking_query`,concat('KILL ',`b`.`trx_mysql_thread_id`) AS `sql_kill_blocking_connection` from ((((`information_schema`.`innodb_lock_waits` `w` join `information_schema`.`innodb_trx` `b` on((`b`.`trx_id` = `w`.`blocking_trx_id`))) join `information_schema`.`innodb_trx` `r` on((`r`.`trx_id` = `w`.`requesting_trx_id`))) join `information_schema`.`innodb_locks` `bl` on((`bl`.`lock_id` = `w`.`blocking_lock_id`))) join `information_schema`.`innodb_locks` `rl` on((`rl`.`lock_id` = `w`.`requested_lock_id`))) order by `r`.`trx_wait_started`; -- ---------------------------- -- View structure for x$io_by_thread_by_latency -- ---------------------------- DROP VIEW IF EXISTS `x$io_by_thread_by_latency`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$io_by_thread_by_latency` AS select if(isnull(`performance_schema`.`threads`.`PROCESSLIST_ID`),substring_index(`performance_schema`.`threads`.`NAME`,'/',-(1)),concat(`performance_schema`.`threads`.`PROCESSLIST_USER`,'@',`performance_schema`.`threads`.`PROCESSLIST_HOST`)) AS `user`,sum(`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`COUNT_STAR`) AS `total`,sum(`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,min(`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`MIN_TIMER_WAIT`) AS `min_latency`,avg(`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`AVG_TIMER_WAIT`) AS `avg_latency`,max(`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency`,`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`THREAD_ID` AS `thread_id`,`performance_schema`.`threads`.`PROCESSLIST_ID` AS `processlist_id` from (`performance_schema`.`events_waits_summary_by_thread_by_event_name` left join `performance_schema`.`threads` on((`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`THREAD_ID` = `performance_schema`.`threads`.`THREAD_ID`))) where ((`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`EVENT_NAME` like 'wait/io/file/%') and (`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`SUM_TIMER_WAIT` > 0)) group by `performance_schema`.`events_waits_summary_by_thread_by_event_name`.`THREAD_ID`,`performance_schema`.`threads`.`PROCESSLIST_ID`,`user` order by sum(`performance_schema`.`events_waits_summary_by_thread_by_event_name`.`SUM_TIMER_WAIT`) desc; -- ---------------------------- -- View structure for x$io_global_by_file_by_bytes -- ---------------------------- DROP VIEW IF EXISTS `x$io_global_by_file_by_bytes`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$io_global_by_file_by_bytes` AS select `performance_schema`.`file_summary_by_instance`.`FILE_NAME` AS `file`,`performance_schema`.`file_summary_by_instance`.`COUNT_READ` AS `count_read`,`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_READ` AS `total_read`,ifnull((`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_READ` / nullif(`performance_schema`.`file_summary_by_instance`.`COUNT_READ`,0)),0) AS `avg_read`,`performance_schema`.`file_summary_by_instance`.`COUNT_WRITE` AS `count_write`,`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_WRITE` AS `total_written`,ifnull((`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_WRITE` / nullif(`performance_schema`.`file_summary_by_instance`.`COUNT_WRITE`,0)),0.00) AS `avg_write`,(`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_READ` + `performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_WRITE`) AS `total`,ifnull(round((100 - ((`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_READ` / nullif((`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_READ` + `performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_WRITE`),0)) * 100)),2),0.00) AS `write_pct` from `performance_schema`.`file_summary_by_instance` order by (`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_READ` + `performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_WRITE`) desc; -- ---------------------------- -- View structure for x$io_global_by_file_by_latency -- ---------------------------- DROP VIEW IF EXISTS `x$io_global_by_file_by_latency`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$io_global_by_file_by_latency` AS select `performance_schema`.`file_summary_by_instance`.`FILE_NAME` AS `file`,`performance_schema`.`file_summary_by_instance`.`COUNT_STAR` AS `total`,`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`file_summary_by_instance`.`COUNT_READ` AS `count_read`,`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_READ` AS `read_latency`,`performance_schema`.`file_summary_by_instance`.`COUNT_WRITE` AS `count_write`,`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_WRITE` AS `write_latency`,`performance_schema`.`file_summary_by_instance`.`COUNT_MISC` AS `count_misc`,`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_MISC` AS `misc_latency` from `performance_schema`.`file_summary_by_instance` order by `performance_schema`.`file_summary_by_instance`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$io_global_by_wait_by_bytes -- ---------------------------- DROP VIEW IF EXISTS `x$io_global_by_wait_by_bytes`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$io_global_by_wait_by_bytes` AS select substring_index(`performance_schema`.`file_summary_by_event_name`.`EVENT_NAME`,'/',-(2)) AS `event_name`,`performance_schema`.`file_summary_by_event_name`.`COUNT_STAR` AS `total`,`performance_schema`.`file_summary_by_event_name`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`file_summary_by_event_name`.`MIN_TIMER_WAIT` AS `min_latency`,`performance_schema`.`file_summary_by_event_name`.`AVG_TIMER_WAIT` AS `avg_latency`,`performance_schema`.`file_summary_by_event_name`.`MAX_TIMER_WAIT` AS `max_latency`,`performance_schema`.`file_summary_by_event_name`.`COUNT_READ` AS `count_read`,`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_READ` AS `total_read`,ifnull((`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_READ` / nullif(`performance_schema`.`file_summary_by_event_name`.`COUNT_READ`,0)),0) AS `avg_read`,`performance_schema`.`file_summary_by_event_name`.`COUNT_WRITE` AS `count_write`,`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_WRITE` AS `total_written`,ifnull((`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_WRITE` / nullif(`performance_schema`.`file_summary_by_event_name`.`COUNT_WRITE`,0)),0) AS `avg_written`,(`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_WRITE` + `performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_READ`) AS `total_requested` from `performance_schema`.`file_summary_by_event_name` where ((`performance_schema`.`file_summary_by_event_name`.`EVENT_NAME` like 'wait/io/file/%') and (`performance_schema`.`file_summary_by_event_name`.`COUNT_STAR` > 0)) order by (`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_WRITE` + `performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_READ`) desc; -- ---------------------------- -- View structure for x$io_global_by_wait_by_latency -- ---------------------------- DROP VIEW IF EXISTS `x$io_global_by_wait_by_latency`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$io_global_by_wait_by_latency` AS select substring_index(`performance_schema`.`file_summary_by_event_name`.`EVENT_NAME`,'/',-(2)) AS `event_name`,`performance_schema`.`file_summary_by_event_name`.`COUNT_STAR` AS `total`,`performance_schema`.`file_summary_by_event_name`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`file_summary_by_event_name`.`AVG_TIMER_WAIT` AS `avg_latency`,`performance_schema`.`file_summary_by_event_name`.`MAX_TIMER_WAIT` AS `max_latency`,`performance_schema`.`file_summary_by_event_name`.`SUM_TIMER_READ` AS `read_latency`,`performance_schema`.`file_summary_by_event_name`.`SUM_TIMER_WRITE` AS `write_latency`,`performance_schema`.`file_summary_by_event_name`.`SUM_TIMER_MISC` AS `misc_latency`,`performance_schema`.`file_summary_by_event_name`.`COUNT_READ` AS `count_read`,`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_READ` AS `total_read`,ifnull((`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_READ` / nullif(`performance_schema`.`file_summary_by_event_name`.`COUNT_READ`,0)),0) AS `avg_read`,`performance_schema`.`file_summary_by_event_name`.`COUNT_WRITE` AS `count_write`,`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_WRITE` AS `total_written`,ifnull((`performance_schema`.`file_summary_by_event_name`.`SUM_NUMBER_OF_BYTES_WRITE` / nullif(`performance_schema`.`file_summary_by_event_name`.`COUNT_WRITE`,0)),0) AS `avg_written` from `performance_schema`.`file_summary_by_event_name` where ((`performance_schema`.`file_summary_by_event_name`.`EVENT_NAME` like 'wait/io/file/%') and (`performance_schema`.`file_summary_by_event_name`.`COUNT_STAR` > 0)) order by `performance_schema`.`file_summary_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$latest_file_io -- ---------------------------- DROP VIEW IF EXISTS `x$latest_file_io`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$latest_file_io` AS select if(isnull(`information_schema`.`processlist`.`ID`),concat(substring_index(`performance_schema`.`threads`.`NAME`,'/',-(1)),':',`performance_schema`.`events_waits_history_long`.`THREAD_ID`),concat(`information_schema`.`processlist`.`USER`,'@',`information_schema`.`processlist`.`HOST`,':',`information_schema`.`processlist`.`ID`)) AS `thread`,`performance_schema`.`events_waits_history_long`.`OBJECT_NAME` AS `file`,`performance_schema`.`events_waits_history_long`.`TIMER_WAIT` AS `latency`,`performance_schema`.`events_waits_history_long`.`OPERATION` AS `operation`,`performance_schema`.`events_waits_history_long`.`NUMBER_OF_BYTES` AS `requested` from ((`performance_schema`.`events_waits_history_long` join `performance_schema`.`threads` on((`performance_schema`.`events_waits_history_long`.`THREAD_ID` = `performance_schema`.`threads`.`THREAD_ID`))) left join `information_schema`.`processlist` on((`performance_schema`.`threads`.`PROCESSLIST_ID` = `information_schema`.`processlist`.`ID`))) where ((`performance_schema`.`events_waits_history_long`.`OBJECT_NAME` is not null) and (`performance_schema`.`events_waits_history_long`.`EVENT_NAME` like 'wait/io/file/%')) order by `performance_schema`.`events_waits_history_long`.`TIMER_START`; -- ---------------------------- -- View structure for x$memory_by_host_by_current_bytes -- ---------------------------- DROP VIEW IF EXISTS `x$memory_by_host_by_current_bytes`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$memory_by_host_by_current_bytes` AS select if(isnull(`performance_schema`.`memory_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`memory_summary_by_host_by_event_name`.`HOST`) AS `host`,sum(`performance_schema`.`memory_summary_by_host_by_event_name`.`CURRENT_COUNT_USED`) AS `current_count_used`,sum(`performance_schema`.`memory_summary_by_host_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) AS `current_allocated`,ifnull((sum(`performance_schema`.`memory_summary_by_host_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) / nullif(sum(`performance_schema`.`memory_summary_by_host_by_event_name`.`CURRENT_COUNT_USED`),0)),0) AS `current_avg_alloc`,max(`performance_schema`.`memory_summary_by_host_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) AS `current_max_alloc`,sum(`performance_schema`.`memory_summary_by_host_by_event_name`.`SUM_NUMBER_OF_BYTES_ALLOC`) AS `total_allocated` from `performance_schema`.`memory_summary_by_host_by_event_name` group by if(isnull(`performance_schema`.`memory_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`memory_summary_by_host_by_event_name`.`HOST`) order by sum(`performance_schema`.`memory_summary_by_host_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) desc; -- ---------------------------- -- View structure for x$memory_by_thread_by_current_bytes -- ---------------------------- DROP VIEW IF EXISTS `x$memory_by_thread_by_current_bytes`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$memory_by_thread_by_current_bytes` AS select `t`.`THREAD_ID` AS `thread_id`,if((`t`.`NAME` = 'thread/sql/one_connection'),concat(`t`.`PROCESSLIST_USER`,'@',`t`.`PROCESSLIST_HOST`),replace(`t`.`NAME`,'thread/','')) AS `user`,sum(`mt`.`CURRENT_COUNT_USED`) AS `current_count_used`,sum(`mt`.`CURRENT_NUMBER_OF_BYTES_USED`) AS `current_allocated`,ifnull((sum(`mt`.`CURRENT_NUMBER_OF_BYTES_USED`) / nullif(sum(`mt`.`CURRENT_COUNT_USED`),0)),0) AS `current_avg_alloc`,max(`mt`.`CURRENT_NUMBER_OF_BYTES_USED`) AS `current_max_alloc`,sum(`mt`.`SUM_NUMBER_OF_BYTES_ALLOC`) AS `total_allocated` from (`performance_schema`.`memory_summary_by_thread_by_event_name` `mt` join `performance_schema`.`threads` `t` on((`mt`.`THREAD_ID` = `t`.`THREAD_ID`))) group by `t`.`THREAD_ID`,if((`t`.`NAME` = 'thread/sql/one_connection'),concat(`t`.`PROCESSLIST_USER`,'@',`t`.`PROCESSLIST_HOST`),replace(`t`.`NAME`,'thread/','')) order by sum(`mt`.`CURRENT_NUMBER_OF_BYTES_USED`) desc; -- ---------------------------- -- View structure for x$memory_by_user_by_current_bytes -- ---------------------------- DROP VIEW IF EXISTS `x$memory_by_user_by_current_bytes`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$memory_by_user_by_current_bytes` AS select if(isnull(`performance_schema`.`memory_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`memory_summary_by_user_by_event_name`.`USER`) AS `user`,sum(`performance_schema`.`memory_summary_by_user_by_event_name`.`CURRENT_COUNT_USED`) AS `current_count_used`,sum(`performance_schema`.`memory_summary_by_user_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) AS `current_allocated`,ifnull((sum(`performance_schema`.`memory_summary_by_user_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) / nullif(sum(`performance_schema`.`memory_summary_by_user_by_event_name`.`CURRENT_COUNT_USED`),0)),0) AS `current_avg_alloc`,max(`performance_schema`.`memory_summary_by_user_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) AS `current_max_alloc`,sum(`performance_schema`.`memory_summary_by_user_by_event_name`.`SUM_NUMBER_OF_BYTES_ALLOC`) AS `total_allocated` from `performance_schema`.`memory_summary_by_user_by_event_name` group by if(isnull(`performance_schema`.`memory_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`memory_summary_by_user_by_event_name`.`USER`) order by sum(`performance_schema`.`memory_summary_by_user_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) desc; -- ---------------------------- -- View structure for x$memory_global_by_current_bytes -- ---------------------------- DROP VIEW IF EXISTS `x$memory_global_by_current_bytes`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$memory_global_by_current_bytes` AS select `performance_schema`.`memory_summary_global_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_COUNT_USED` AS `current_count`,`performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED` AS `current_alloc`,ifnull((`performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED` / nullif(`performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_COUNT_USED`,0)),0) AS `current_avg_alloc`,`performance_schema`.`memory_summary_global_by_event_name`.`HIGH_COUNT_USED` AS `high_count`,`performance_schema`.`memory_summary_global_by_event_name`.`HIGH_NUMBER_OF_BYTES_USED` AS `high_alloc`,ifnull((`performance_schema`.`memory_summary_global_by_event_name`.`HIGH_NUMBER_OF_BYTES_USED` / nullif(`performance_schema`.`memory_summary_global_by_event_name`.`HIGH_COUNT_USED`,0)),0) AS `high_avg_alloc` from `performance_schema`.`memory_summary_global_by_event_name` where (`performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED` > 0) order by `performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED` desc; -- ---------------------------- -- View structure for x$memory_global_total -- ---------------------------- DROP VIEW IF EXISTS `x$memory_global_total`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$memory_global_total` AS select sum(`performance_schema`.`memory_summary_global_by_event_name`.`CURRENT_NUMBER_OF_BYTES_USED`) AS `total_allocated` from `performance_schema`.`memory_summary_global_by_event_name`; -- ---------------------------- -- View structure for x$processlist -- ---------------------------- DROP VIEW IF EXISTS `x$processlist`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$processlist` AS select `pps`.`THREAD_ID` AS `thd_id`,`pps`.`PROCESSLIST_ID` AS `conn_id`,if((`pps`.`NAME` = 'thread/sql/one_connection'),concat(`pps`.`PROCESSLIST_USER`,'@',`pps`.`PROCESSLIST_HOST`),replace(`pps`.`NAME`,'thread/','')) AS `user`,`pps`.`PROCESSLIST_DB` AS `db`,`pps`.`PROCESSLIST_COMMAND` AS `command`,`pps`.`PROCESSLIST_STATE` AS `state`,`pps`.`PROCESSLIST_TIME` AS `time`,`pps`.`PROCESSLIST_INFO` AS `current_statement`,if(isnull(`esc`.`END_EVENT_ID`),`esc`.`TIMER_WAIT`,NULL) AS `statement_latency`,if(isnull(`esc`.`END_EVENT_ID`),round((100 * (`estc`.`WORK_COMPLETED` / `estc`.`WORK_ESTIMATED`)),2),NULL) AS `progress`,`esc`.`LOCK_TIME` AS `lock_latency`,`esc`.`ROWS_EXAMINED` AS `rows_examined`,`esc`.`ROWS_SENT` AS `rows_sent`,`esc`.`ROWS_AFFECTED` AS `rows_affected`,`esc`.`CREATED_TMP_TABLES` AS `tmp_tables`,`esc`.`CREATED_TMP_DISK_TABLES` AS `tmp_disk_tables`,if(((`esc`.`NO_GOOD_INDEX_USED` > 0) or (`esc`.`NO_INDEX_USED` > 0)),'YES','NO') AS `full_scan`,if((`esc`.`END_EVENT_ID` is not null),`esc`.`SQL_TEXT`,NULL) AS `last_statement`,if((`esc`.`END_EVENT_ID` is not null),`esc`.`TIMER_WAIT`,NULL) AS `last_statement_latency`,`mem`.`current_allocated` AS `current_memory`,`ewc`.`EVENT_NAME` AS `last_wait`,if((isnull(`ewc`.`END_EVENT_ID`) and (`ewc`.`EVENT_NAME` is not null)),'Still Waiting',`ewc`.`TIMER_WAIT`) AS `last_wait_latency`,`ewc`.`SOURCE` AS `source`,`etc`.`TIMER_WAIT` AS `trx_latency`,`etc`.`STATE` AS `trx_state`,`etc`.`AUTOCOMMIT` AS `trx_autocommit`,`conattr_pid`.`ATTR_VALUE` AS `pid`,`conattr_progname`.`ATTR_VALUE` AS `program_name` from (((((((`performance_schema`.`threads` `pps` left join `performance_schema`.`events_waits_current` `ewc` on((`pps`.`THREAD_ID` = `ewc`.`THREAD_ID`))) left join `performance_schema`.`events_stages_current` `estc` on((`pps`.`THREAD_ID` = `estc`.`THREAD_ID`))) left join `performance_schema`.`events_statements_current` `esc` on((`pps`.`THREAD_ID` = `esc`.`THREAD_ID`))) left join `performance_schema`.`events_transactions_current` `etc` on((`pps`.`THREAD_ID` = `etc`.`THREAD_ID`))) left join `sys`.`x$memory_by_thread_by_current_bytes` `mem` on((`pps`.`THREAD_ID` = `mem`.`thread_id`))) left join `performance_schema`.`session_connect_attrs` `conattr_pid` on(((`conattr_pid`.`PROCESSLIST_ID` = `pps`.`PROCESSLIST_ID`) and (`conattr_pid`.`ATTR_NAME` = '_pid')))) left join `performance_schema`.`session_connect_attrs` `conattr_progname` on(((`conattr_progname`.`PROCESSLIST_ID` = `pps`.`PROCESSLIST_ID`) and (`conattr_progname`.`ATTR_NAME` = 'program_name')))) order by `pps`.`PROCESSLIST_TIME` desc,`last_wait_latency` desc; -- ---------------------------- -- View structure for x$ps_digest_95th_percentile_by_avg_us -- ---------------------------- DROP VIEW IF EXISTS `x$ps_digest_95th_percentile_by_avg_us`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$ps_digest_95th_percentile_by_avg_us` AS select `s2`.`avg_us` AS `avg_us`,ifnull((sum(`s1`.`cnt`) / nullif((select count(0) from `performance_schema`.`events_statements_summary_by_digest`),0)),0) AS `percentile` from (`sys`.`x$ps_digest_avg_latency_distribution` `s1` join `sys`.`x$ps_digest_avg_latency_distribution` `s2` on((`s1`.`avg_us` <= `s2`.`avg_us`))) group by `s2`.`avg_us` having (ifnull((sum(`s1`.`cnt`) / nullif((select count(0) from `performance_schema`.`events_statements_summary_by_digest`),0)),0) > 0.95) order by `percentile` limit 1; -- ---------------------------- -- View structure for x$ps_digest_avg_latency_distribution -- ---------------------------- DROP VIEW IF EXISTS `x$ps_digest_avg_latency_distribution`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$ps_digest_avg_latency_distribution` AS select count(0) AS `cnt`,round((`performance_schema`.`events_statements_summary_by_digest`.`AVG_TIMER_WAIT` / 1000000),0) AS `avg_us` from `performance_schema`.`events_statements_summary_by_digest` group by `avg_us`; -- ---------------------------- -- View structure for x$ps_schema_table_statistics_io -- ---------------------------- DROP VIEW IF EXISTS `x$ps_schema_table_statistics_io`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$ps_schema_table_statistics_io` AS select `extract_schema_from_file_name`(`performance_schema`.`file_summary_by_instance`.`FILE_NAME`) AS `table_schema`,`extract_table_from_file_name`(`performance_schema`.`file_summary_by_instance`.`FILE_NAME`) AS `table_name`,sum(`performance_schema`.`file_summary_by_instance`.`COUNT_READ`) AS `count_read`,sum(`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_READ`) AS `sum_number_of_bytes_read`,sum(`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_READ`) AS `sum_timer_read`,sum(`performance_schema`.`file_summary_by_instance`.`COUNT_WRITE`) AS `count_write`,sum(`performance_schema`.`file_summary_by_instance`.`SUM_NUMBER_OF_BYTES_WRITE`) AS `sum_number_of_bytes_write`,sum(`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_WRITE`) AS `sum_timer_write`,sum(`performance_schema`.`file_summary_by_instance`.`COUNT_MISC`) AS `count_misc`,sum(`performance_schema`.`file_summary_by_instance`.`SUM_TIMER_MISC`) AS `sum_timer_misc` from `performance_schema`.`file_summary_by_instance` group by `table_schema`,`table_name`; -- ---------------------------- -- View structure for x$schema_flattened_keys -- ---------------------------- DROP VIEW IF EXISTS `x$schema_flattened_keys`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$schema_flattened_keys` AS select `information_schema`.`STATISTICS`.`TABLE_SCHEMA` AS `table_schema`,`information_schema`.`STATISTICS`.`TABLE_NAME` AS `table_name`,`information_schema`.`STATISTICS`.`INDEX_NAME` AS `index_name`,max(`information_schema`.`STATISTICS`.`NON_UNIQUE`) AS `non_unique`,max(if(isnull(`information_schema`.`STATISTICS`.`SUB_PART`),0,1)) AS `subpart_exists`,group_concat(`information_schema`.`STATISTICS`.`COLUMN_NAME` order by `information_schema`.`STATISTICS`.`SEQ_IN_INDEX` ASC separator ',') AS `index_columns` from `INFORMATION_SCHEMA`.`STATISTICS` where ((`information_schema`.`STATISTICS`.`INDEX_TYPE` = 'BTREE') and (`information_schema`.`STATISTICS`.`TABLE_SCHEMA` not in ('mysql','sys','INFORMATION_SCHEMA','PERFORMANCE_SCHEMA'))) group by `information_schema`.`STATISTICS`.`TABLE_SCHEMA`,`information_schema`.`STATISTICS`.`TABLE_NAME`,`information_schema`.`STATISTICS`.`INDEX_NAME`; -- ---------------------------- -- View structure for x$schema_index_statistics -- ---------------------------- DROP VIEW IF EXISTS `x$schema_index_statistics`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$schema_index_statistics` AS select `performance_schema`.`table_io_waits_summary_by_index_usage`.`OBJECT_SCHEMA` AS `table_schema`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`OBJECT_NAME` AS `table_name`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`INDEX_NAME` AS `index_name`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_FETCH` AS `rows_selected`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`SUM_TIMER_FETCH` AS `select_latency`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_INSERT` AS `rows_inserted`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`SUM_TIMER_INSERT` AS `insert_latency`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_UPDATE` AS `rows_updated`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`SUM_TIMER_UPDATE` AS `update_latency`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_DELETE` AS `rows_deleted`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`SUM_TIMER_INSERT` AS `delete_latency` from `performance_schema`.`table_io_waits_summary_by_index_usage` where (`performance_schema`.`table_io_waits_summary_by_index_usage`.`INDEX_NAME` is not null) order by `performance_schema`.`table_io_waits_summary_by_index_usage`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$schema_tables_with_full_table_scans -- ---------------------------- DROP VIEW IF EXISTS `x$schema_tables_with_full_table_scans`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$schema_tables_with_full_table_scans` AS select `performance_schema`.`table_io_waits_summary_by_index_usage`.`OBJECT_SCHEMA` AS `object_schema`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`OBJECT_NAME` AS `object_name`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_READ` AS `rows_full_scanned`,`performance_schema`.`table_io_waits_summary_by_index_usage`.`SUM_TIMER_WAIT` AS `latency` from `performance_schema`.`table_io_waits_summary_by_index_usage` where (isnull(`performance_schema`.`table_io_waits_summary_by_index_usage`.`INDEX_NAME`) and (`performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_READ` > 0)) order by `performance_schema`.`table_io_waits_summary_by_index_usage`.`COUNT_READ` desc; -- ---------------------------- -- View structure for x$schema_table_lock_waits -- ---------------------------- DROP VIEW IF EXISTS `x$schema_table_lock_waits`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$schema_table_lock_waits` AS select `g`.`OBJECT_SCHEMA` AS `object_schema`,`g`.`OBJECT_NAME` AS `object_name`,`pt`.`THREAD_ID` AS `waiting_thread_id`,`pt`.`PROCESSLIST_ID` AS `waiting_pid`,`sys`.`ps_thread_account`(`p`.`OWNER_THREAD_ID`) AS `waiting_account`,`p`.`LOCK_TYPE` AS `waiting_lock_type`,`p`.`LOCK_DURATION` AS `waiting_lock_duration`,`pt`.`PROCESSLIST_INFO` AS `waiting_query`,`pt`.`PROCESSLIST_TIME` AS `waiting_query_secs`,`ps`.`ROWS_AFFECTED` AS `waiting_query_rows_affected`,`ps`.`ROWS_EXAMINED` AS `waiting_query_rows_examined`,`gt`.`THREAD_ID` AS `blocking_thread_id`,`gt`.`PROCESSLIST_ID` AS `blocking_pid`,`sys`.`ps_thread_account`(`g`.`OWNER_THREAD_ID`) AS `blocking_account`,`g`.`LOCK_TYPE` AS `blocking_lock_type`,`g`.`LOCK_DURATION` AS `blocking_lock_duration`,concat('KILL QUERY ',`gt`.`PROCESSLIST_ID`) AS `sql_kill_blocking_query`,concat('KILL ',`gt`.`PROCESSLIST_ID`) AS `sql_kill_blocking_connection` from (((((`performance_schema`.`metadata_locks` `g` join `performance_schema`.`metadata_locks` `p` on(((`g`.`OBJECT_TYPE` = `p`.`OBJECT_TYPE`) and (`g`.`OBJECT_SCHEMA` = `p`.`OBJECT_SCHEMA`) and (`g`.`OBJECT_NAME` = `p`.`OBJECT_NAME`) and (`g`.`LOCK_STATUS` = 'GRANTED') and (`p`.`LOCK_STATUS` = 'PENDING')))) join `performance_schema`.`threads` `gt` on((`g`.`OWNER_THREAD_ID` = `gt`.`THREAD_ID`))) join `performance_schema`.`threads` `pt` on((`p`.`OWNER_THREAD_ID` = `pt`.`THREAD_ID`))) left join `performance_schema`.`events_statements_current` `gs` on((`g`.`OWNER_THREAD_ID` = `gs`.`THREAD_ID`))) left join `performance_schema`.`events_statements_current` `ps` on((`p`.`OWNER_THREAD_ID` = `ps`.`THREAD_ID`))) where (`g`.`OBJECT_TYPE` = 'TABLE'); -- ---------------------------- -- View structure for x$schema_table_statistics -- ---------------------------- DROP VIEW IF EXISTS `x$schema_table_statistics`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$schema_table_statistics` AS select `pst`.`OBJECT_SCHEMA` AS `table_schema`,`pst`.`OBJECT_NAME` AS `table_name`,`pst`.`SUM_TIMER_WAIT` AS `total_latency`,`pst`.`COUNT_FETCH` AS `rows_fetched`,`pst`.`SUM_TIMER_FETCH` AS `fetch_latency`,`pst`.`COUNT_INSERT` AS `rows_inserted`,`pst`.`SUM_TIMER_INSERT` AS `insert_latency`,`pst`.`COUNT_UPDATE` AS `rows_updated`,`pst`.`SUM_TIMER_UPDATE` AS `update_latency`,`pst`.`COUNT_DELETE` AS `rows_deleted`,`pst`.`SUM_TIMER_DELETE` AS `delete_latency`,`fsbi`.`count_read` AS `io_read_requests`,`fsbi`.`sum_number_of_bytes_read` AS `io_read`,`fsbi`.`sum_timer_read` AS `io_read_latency`,`fsbi`.`count_write` AS `io_write_requests`,`fsbi`.`sum_number_of_bytes_write` AS `io_write`,`fsbi`.`sum_timer_write` AS `io_write_latency`,`fsbi`.`count_misc` AS `io_misc_requests`,`fsbi`.`sum_timer_misc` AS `io_misc_latency` from (`performance_schema`.`table_io_waits_summary_by_table` `pst` left join `sys`.`x$ps_schema_table_statistics_io` `fsbi` on(((`pst`.`OBJECT_SCHEMA` = `fsbi`.`table_schema`) and (`pst`.`OBJECT_NAME` = `fsbi`.`table_name`)))) order by `pst`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$schema_table_statistics_with_buffer -- ---------------------------- DROP VIEW IF EXISTS `x$schema_table_statistics_with_buffer`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$schema_table_statistics_with_buffer` AS select `pst`.`OBJECT_SCHEMA` AS `table_schema`,`pst`.`OBJECT_NAME` AS `table_name`,`pst`.`COUNT_FETCH` AS `rows_fetched`,`pst`.`SUM_TIMER_FETCH` AS `fetch_latency`,`pst`.`COUNT_INSERT` AS `rows_inserted`,`pst`.`SUM_TIMER_INSERT` AS `insert_latency`,`pst`.`COUNT_UPDATE` AS `rows_updated`,`pst`.`SUM_TIMER_UPDATE` AS `update_latency`,`pst`.`COUNT_DELETE` AS `rows_deleted`,`pst`.`SUM_TIMER_DELETE` AS `delete_latency`,`fsbi`.`count_read` AS `io_read_requests`,`fsbi`.`sum_number_of_bytes_read` AS `io_read`,`fsbi`.`sum_timer_read` AS `io_read_latency`,`fsbi`.`count_write` AS `io_write_requests`,`fsbi`.`sum_number_of_bytes_write` AS `io_write`,`fsbi`.`sum_timer_write` AS `io_write_latency`,`fsbi`.`count_misc` AS `io_misc_requests`,`fsbi`.`sum_timer_misc` AS `io_misc_latency`,`ibp`.`allocated` AS `innodb_buffer_allocated`,`ibp`.`data` AS `innodb_buffer_data`,(`ibp`.`allocated` - `ibp`.`data`) AS `innodb_buffer_free`,`ibp`.`pages` AS `innodb_buffer_pages`,`ibp`.`pages_hashed` AS `innodb_buffer_pages_hashed`,`ibp`.`pages_old` AS `innodb_buffer_pages_old`,`ibp`.`rows_cached` AS `innodb_buffer_rows_cached` from ((`performance_schema`.`table_io_waits_summary_by_table` `pst` left join `sys`.`x$ps_schema_table_statistics_io` `fsbi` on(((`pst`.`OBJECT_SCHEMA` = `fsbi`.`table_schema`) and (`pst`.`OBJECT_NAME` = `fsbi`.`table_name`)))) left join `sys`.`x$innodb_buffer_stats_by_table` `ibp` on(((`pst`.`OBJECT_SCHEMA` = `ibp`.`object_schema`) and (`pst`.`OBJECT_NAME` = `ibp`.`object_name`)))) order by `pst`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$session -- ---------------------------- DROP VIEW IF EXISTS `x$session`; CREATE ALGORITHM = UNDEFINED SQL SECURITY INVOKER VIEW `x$session` AS select `x$processlist`.`thd_id` AS `thd_id`,`x$processlist`.`conn_id` AS `conn_id`,`x$processlist`.`user` AS `user`,`x$processlist`.`db` AS `db`,`x$processlist`.`command` AS `command`,`x$processlist`.`state` AS `state`,`x$processlist`.`time` AS `time`,`x$processlist`.`current_statement` AS `current_statement`,`x$processlist`.`statement_latency` AS `statement_latency`,`x$processlist`.`progress` AS `progress`,`x$processlist`.`lock_latency` AS `lock_latency`,`x$processlist`.`rows_examined` AS `rows_examined`,`x$processlist`.`rows_sent` AS `rows_sent`,`x$processlist`.`rows_affected` AS `rows_affected`,`x$processlist`.`tmp_tables` AS `tmp_tables`,`x$processlist`.`tmp_disk_tables` AS `tmp_disk_tables`,`x$processlist`.`full_scan` AS `full_scan`,`x$processlist`.`last_statement` AS `last_statement`,`x$processlist`.`last_statement_latency` AS `last_statement_latency`,`x$processlist`.`current_memory` AS `current_memory`,`x$processlist`.`last_wait` AS `last_wait`,`x$processlist`.`last_wait_latency` AS `last_wait_latency`,`x$processlist`.`source` AS `source`,`x$processlist`.`trx_latency` AS `trx_latency`,`x$processlist`.`trx_state` AS `trx_state`,`x$processlist`.`trx_autocommit` AS `trx_autocommit`,`x$processlist`.`pid` AS `pid`,`x$processlist`.`program_name` AS `program_name` from `sys`.`x$processlist` where ((`x$processlist`.`conn_id` is not null) and (`x$processlist`.`command` <> 'Daemon')); -- ---------------------------- -- View structure for x$statements_with_errors_or_warnings -- ---------------------------- DROP VIEW IF EXISTS `x$statements_with_errors_or_warnings`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$statements_with_errors_or_warnings` AS select `performance_schema`.`events_statements_summary_by_digest`.`DIGEST_TEXT` AS `query`,`performance_schema`.`events_statements_summary_by_digest`.`SCHEMA_NAME` AS `db`,`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR` AS `exec_count`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ERRORS` AS `errors`,(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ERRORS` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0) * 100) AS `error_pct`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_WARNINGS` AS `warnings`,(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_WARNINGS` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0) * 100) AS `warning_pct`,`performance_schema`.`events_statements_summary_by_digest`.`FIRST_SEEN` AS `first_seen`,`performance_schema`.`events_statements_summary_by_digest`.`LAST_SEEN` AS `last_seen`,`performance_schema`.`events_statements_summary_by_digest`.`DIGEST` AS `digest` from `performance_schema`.`events_statements_summary_by_digest` where ((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ERRORS` > 0) or (`performance_schema`.`events_statements_summary_by_digest`.`SUM_WARNINGS` > 0)) order by `performance_schema`.`events_statements_summary_by_digest`.`SUM_ERRORS` desc,`performance_schema`.`events_statements_summary_by_digest`.`SUM_WARNINGS` desc; -- ---------------------------- -- View structure for x$statements_with_full_table_scans -- ---------------------------- DROP VIEW IF EXISTS `x$statements_with_full_table_scans`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$statements_with_full_table_scans` AS select `performance_schema`.`events_statements_summary_by_digest`.`DIGEST_TEXT` AS `query`,`performance_schema`.`events_statements_summary_by_digest`.`SCHEMA_NAME` AS `db`,`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR` AS `exec_count`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_INDEX_USED` AS `no_index_used_count`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_GOOD_INDEX_USED` AS `no_good_index_used_count`,round((ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_INDEX_USED` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0) * 100),0) AS `no_index_used_pct`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_SENT` AS `rows_sent`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_EXAMINED` AS `rows_examined`,round((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_SENT` / `performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`),0) AS `rows_sent_avg`,round((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_EXAMINED` / `performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`),0) AS `rows_examined_avg`,`performance_schema`.`events_statements_summary_by_digest`.`FIRST_SEEN` AS `first_seen`,`performance_schema`.`events_statements_summary_by_digest`.`LAST_SEEN` AS `last_seen`,`performance_schema`.`events_statements_summary_by_digest`.`DIGEST` AS `digest` from `performance_schema`.`events_statements_summary_by_digest` where (((`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_INDEX_USED` > 0) or (`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_GOOD_INDEX_USED` > 0)) and (not((`performance_schema`.`events_statements_summary_by_digest`.`DIGEST_TEXT` like 'SHOW%')))) order by round((ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_INDEX_USED` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0) * 100),0) desc,`performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$statements_with_runtimes_in_95th_percentile -- ---------------------------- DROP VIEW IF EXISTS `x$statements_with_runtimes_in_95th_percentile`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$statements_with_runtimes_in_95th_percentile` AS select `stmts`.`DIGEST_TEXT` AS `query`,`stmts`.`SCHEMA_NAME` AS `db`,if(((`stmts`.`SUM_NO_GOOD_INDEX_USED` > 0) or (`stmts`.`SUM_NO_INDEX_USED` > 0)),'*','') AS `full_scan`,`stmts`.`COUNT_STAR` AS `exec_count`,`stmts`.`SUM_ERRORS` AS `err_count`,`stmts`.`SUM_WARNINGS` AS `warn_count`,`stmts`.`SUM_TIMER_WAIT` AS `total_latency`,`stmts`.`MAX_TIMER_WAIT` AS `max_latency`,`stmts`.`AVG_TIMER_WAIT` AS `avg_latency`,`stmts`.`SUM_ROWS_SENT` AS `rows_sent`,round(ifnull((`stmts`.`SUM_ROWS_SENT` / nullif(`stmts`.`COUNT_STAR`,0)),0),0) AS `rows_sent_avg`,`stmts`.`SUM_ROWS_EXAMINED` AS `rows_examined`,round(ifnull((`stmts`.`SUM_ROWS_EXAMINED` / nullif(`stmts`.`COUNT_STAR`,0)),0),0) AS `rows_examined_avg`,`stmts`.`FIRST_SEEN` AS `first_seen`,`stmts`.`LAST_SEEN` AS `last_seen`,`stmts`.`DIGEST` AS `digest` from (`performance_schema`.`events_statements_summary_by_digest` `stmts` join `sys`.`x$ps_digest_95th_percentile_by_avg_us` `top_percentile` on((round((`stmts`.`AVG_TIMER_WAIT` / 1000000),0) >= `top_percentile`.`avg_us`))) order by `stmts`.`AVG_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$statements_with_sorting -- ---------------------------- DROP VIEW IF EXISTS `x$statements_with_sorting`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$statements_with_sorting` AS select `performance_schema`.`events_statements_summary_by_digest`.`DIGEST_TEXT` AS `query`,`performance_schema`.`events_statements_summary_by_digest`.`SCHEMA_NAME` AS `db`,`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR` AS `exec_count`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_MERGE_PASSES` AS `sort_merge_passes`,round(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_MERGE_PASSES` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0),0) AS `avg_sort_merges`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_SCAN` AS `sorts_using_scans`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_RANGE` AS `sort_using_range`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_ROWS` AS `rows_sorted`,round(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_ROWS` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0),0) AS `avg_rows_sorted`,`performance_schema`.`events_statements_summary_by_digest`.`FIRST_SEEN` AS `first_seen`,`performance_schema`.`events_statements_summary_by_digest`.`LAST_SEEN` AS `last_seen`,`performance_schema`.`events_statements_summary_by_digest`.`DIGEST` AS `digest` from `performance_schema`.`events_statements_summary_by_digest` where (`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_ROWS` > 0) order by `performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$statements_with_temp_tables -- ---------------------------- DROP VIEW IF EXISTS `x$statements_with_temp_tables`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$statements_with_temp_tables` AS select `performance_schema`.`events_statements_summary_by_digest`.`DIGEST_TEXT` AS `query`,`performance_schema`.`events_statements_summary_by_digest`.`SCHEMA_NAME` AS `db`,`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR` AS `exec_count`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_TABLES` AS `memory_tmp_tables`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_DISK_TABLES` AS `disk_tmp_tables`,round(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_TABLES` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0),0) AS `avg_tmp_tables_per_query`,round((ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_DISK_TABLES` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_TABLES`,0)),0) * 100),0) AS `tmp_tables_to_disk_pct`,`performance_schema`.`events_statements_summary_by_digest`.`FIRST_SEEN` AS `first_seen`,`performance_schema`.`events_statements_summary_by_digest`.`LAST_SEEN` AS `last_seen`,`performance_schema`.`events_statements_summary_by_digest`.`DIGEST` AS `digest` from `performance_schema`.`events_statements_summary_by_digest` where (`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_TABLES` > 0) order by `performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_DISK_TABLES` desc,`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_TABLES` desc; -- ---------------------------- -- View structure for x$statement_analysis -- ---------------------------- DROP VIEW IF EXISTS `x$statement_analysis`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$statement_analysis` AS select `performance_schema`.`events_statements_summary_by_digest`.`DIGEST_TEXT` AS `query`,`performance_schema`.`events_statements_summary_by_digest`.`SCHEMA_NAME` AS `db`,if(((`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_GOOD_INDEX_USED` > 0) or (`performance_schema`.`events_statements_summary_by_digest`.`SUM_NO_INDEX_USED` > 0)),'*','') AS `full_scan`,`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR` AS `exec_count`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ERRORS` AS `err_count`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_WARNINGS` AS `warn_count`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`events_statements_summary_by_digest`.`MAX_TIMER_WAIT` AS `max_latency`,`performance_schema`.`events_statements_summary_by_digest`.`AVG_TIMER_WAIT` AS `avg_latency`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_LOCK_TIME` AS `lock_latency`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_SENT` AS `rows_sent`,round(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_SENT` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0),0) AS `rows_sent_avg`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_EXAMINED` AS `rows_examined`,round(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_EXAMINED` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0),0) AS `rows_examined_avg`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_AFFECTED` AS `rows_affected`,round(ifnull((`performance_schema`.`events_statements_summary_by_digest`.`SUM_ROWS_AFFECTED` / nullif(`performance_schema`.`events_statements_summary_by_digest`.`COUNT_STAR`,0)),0),0) AS `rows_affected_avg`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_TABLES` AS `tmp_tables`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_CREATED_TMP_DISK_TABLES` AS `tmp_disk_tables`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_ROWS` AS `rows_sorted`,`performance_schema`.`events_statements_summary_by_digest`.`SUM_SORT_MERGE_PASSES` AS `sort_merge_passes`,`performance_schema`.`events_statements_summary_by_digest`.`DIGEST` AS `digest`,`performance_schema`.`events_statements_summary_by_digest`.`FIRST_SEEN` AS `first_seen`,`performance_schema`.`events_statements_summary_by_digest`.`LAST_SEEN` AS `last_seen` from `performance_schema`.`events_statements_summary_by_digest` order by `performance_schema`.`events_statements_summary_by_digest`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$user_summary -- ---------------------------- DROP VIEW IF EXISTS `x$user_summary`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$user_summary` AS select if(isnull(`performance_schema`.`accounts`.`USER`),'background',`performance_schema`.`accounts`.`USER`) AS `user`,sum(`stmt`.`total`) AS `statements`,sum(`stmt`.`total_latency`) AS `statement_latency`,ifnull((sum(`stmt`.`total_latency`) / nullif(sum(`stmt`.`total`),0)),0) AS `statement_avg_latency`,sum(`stmt`.`full_scans`) AS `table_scans`,sum(`io`.`ios`) AS `file_ios`,sum(`io`.`io_latency`) AS `file_io_latency`,sum(`performance_schema`.`accounts`.`CURRENT_CONNECTIONS`) AS `current_connections`,sum(`performance_schema`.`accounts`.`TOTAL_CONNECTIONS`) AS `total_connections`,count(distinct `performance_schema`.`accounts`.`HOST`) AS `unique_hosts`,sum(`mem`.`current_allocated`) AS `current_memory`,sum(`mem`.`total_allocated`) AS `total_memory_allocated` from (((`performance_schema`.`accounts` left join `sys`.`x$user_summary_by_statement_latency` `stmt` on((if(isnull(`performance_schema`.`accounts`.`USER`),'background',`performance_schema`.`accounts`.`USER`) = `stmt`.`user`))) left join `sys`.`x$user_summary_by_file_io` `io` on((if(isnull(`performance_schema`.`accounts`.`USER`),'background',`performance_schema`.`accounts`.`USER`) = `io`.`user`))) left join `sys`.`x$memory_by_user_by_current_bytes` `mem` on((if(isnull(`performance_schema`.`accounts`.`USER`),'background',`performance_schema`.`accounts`.`USER`) = `mem`.`user`))) group by if(isnull(`performance_schema`.`accounts`.`USER`),'background',`performance_schema`.`accounts`.`USER`) order by sum(`stmt`.`total_latency`) desc; -- ---------------------------- -- View structure for x$user_summary_by_file_io -- ---------------------------- DROP VIEW IF EXISTS `x$user_summary_by_file_io`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$user_summary_by_file_io` AS select if(isnull(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`) AS `user`,sum(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`COUNT_STAR`) AS `ios`,sum(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT`) AS `io_latency` from `performance_schema`.`events_waits_summary_by_user_by_event_name` where (`performance_schema`.`events_waits_summary_by_user_by_event_name`.`EVENT_NAME` like 'wait/io/file/%') group by if(isnull(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`) order by sum(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT`) desc; -- ---------------------------- -- View structure for x$user_summary_by_file_io_type -- ---------------------------- DROP VIEW IF EXISTS `x$user_summary_by_file_io_type`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$user_summary_by_file_io_type` AS select if(isnull(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`) AS `user`,`performance_schema`.`events_waits_summary_by_user_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_waits_summary_by_user_by_event_name`.`COUNT_STAR` AS `total`,`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` AS `latency`,`performance_schema`.`events_waits_summary_by_user_by_event_name`.`MAX_TIMER_WAIT` AS `max_latency` from `performance_schema`.`events_waits_summary_by_user_by_event_name` where ((`performance_schema`.`events_waits_summary_by_user_by_event_name`.`EVENT_NAME` like 'wait/io/file%') and (`performance_schema`.`events_waits_summary_by_user_by_event_name`.`COUNT_STAR` > 0)) order by if(isnull(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$user_summary_by_stages -- ---------------------------- DROP VIEW IF EXISTS `x$user_summary_by_stages`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$user_summary_by_stages` AS select if(isnull(`performance_schema`.`events_stages_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_stages_summary_by_user_by_event_name`.`USER`) AS `user`,`performance_schema`.`events_stages_summary_by_user_by_event_name`.`EVENT_NAME` AS `event_name`,`performance_schema`.`events_stages_summary_by_user_by_event_name`.`COUNT_STAR` AS `total`,`performance_schema`.`events_stages_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`events_stages_summary_by_user_by_event_name`.`AVG_TIMER_WAIT` AS `avg_latency` from `performance_schema`.`events_stages_summary_by_user_by_event_name` where (`performance_schema`.`events_stages_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` <> 0) order by if(isnull(`performance_schema`.`events_stages_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_stages_summary_by_user_by_event_name`.`USER`),`performance_schema`.`events_stages_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$user_summary_by_statement_latency -- ---------------------------- DROP VIEW IF EXISTS `x$user_summary_by_statement_latency`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$user_summary_by_statement_latency` AS select if(isnull(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`) AS `user`,sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`COUNT_STAR`) AS `total`,sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency`,sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_LOCK_TIME`) AS `lock_latency`,sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_ROWS_SENT`) AS `rows_sent`,sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_ROWS_EXAMINED`) AS `rows_examined`,sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_ROWS_AFFECTED`) AS `rows_affected`,(sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_NO_INDEX_USED`) + sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_NO_GOOD_INDEX_USED`)) AS `full_scans` from `performance_schema`.`events_statements_summary_by_user_by_event_name` group by if(isnull(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`) order by sum(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_TIMER_WAIT`) desc; -- ---------------------------- -- View structure for x$user_summary_by_statement_type -- ---------------------------- DROP VIEW IF EXISTS `x$user_summary_by_statement_type`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$user_summary_by_statement_type` AS select if(isnull(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`) AS `user`,substring_index(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`EVENT_NAME`,'/',-(1)) AS `statement`,`performance_schema`.`events_statements_summary_by_user_by_event_name`.`COUNT_STAR` AS `total`,`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`events_statements_summary_by_user_by_event_name`.`MAX_TIMER_WAIT` AS `max_latency`,`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_LOCK_TIME` AS `lock_latency`,`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_ROWS_SENT` AS `rows_sent`,`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_ROWS_EXAMINED` AS `rows_examined`,`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_ROWS_AFFECTED` AS `rows_affected`,(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_NO_INDEX_USED` + `performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_NO_GOOD_INDEX_USED`) AS `full_scans` from `performance_schema`.`events_statements_summary_by_user_by_event_name` where (`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` <> 0) order by if(isnull(`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_statements_summary_by_user_by_event_name`.`USER`),`performance_schema`.`events_statements_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$waits_by_host_by_latency -- ---------------------------- DROP VIEW IF EXISTS `x$waits_by_host_by_latency`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$waits_by_host_by_latency` AS select if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`) AS `host`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` AS `event`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`COUNT_STAR` AS `total`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`AVG_TIMER_WAIT` AS `avg_latency`,`performance_schema`.`events_waits_summary_by_host_by_event_name`.`MAX_TIMER_WAIT` AS `max_latency` from `performance_schema`.`events_waits_summary_by_host_by_event_name` where ((`performance_schema`.`events_waits_summary_by_host_by_event_name`.`EVENT_NAME` <> 'idle') and (`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` > 0)) order by if(isnull(`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),'background',`performance_schema`.`events_waits_summary_by_host_by_event_name`.`HOST`),`performance_schema`.`events_waits_summary_by_host_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$waits_by_user_by_latency -- ---------------------------- DROP VIEW IF EXISTS `x$waits_by_user_by_latency`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$waits_by_user_by_latency` AS select if(isnull(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`) AS `user`,`performance_schema`.`events_waits_summary_by_user_by_event_name`.`EVENT_NAME` AS `event`,`performance_schema`.`events_waits_summary_by_user_by_event_name`.`COUNT_STAR` AS `total`,`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`events_waits_summary_by_user_by_event_name`.`AVG_TIMER_WAIT` AS `avg_latency`,`performance_schema`.`events_waits_summary_by_user_by_event_name`.`MAX_TIMER_WAIT` AS `max_latency` from `performance_schema`.`events_waits_summary_by_user_by_event_name` where ((`performance_schema`.`events_waits_summary_by_user_by_event_name`.`EVENT_NAME` <> 'idle') and (`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER` is not null) and (`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` > 0)) order by if(isnull(`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),'background',`performance_schema`.`events_waits_summary_by_user_by_event_name`.`USER`),`performance_schema`.`events_waits_summary_by_user_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$waits_global_by_latency -- ---------------------------- DROP VIEW IF EXISTS `x$waits_global_by_latency`; CREATE ALGORITHM = MERGE SQL SECURITY INVOKER VIEW `x$waits_global_by_latency` AS select `performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME` AS `events`,`performance_schema`.`events_waits_summary_global_by_event_name`.`COUNT_STAR` AS `total`,`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT` AS `total_latency`,`performance_schema`.`events_waits_summary_global_by_event_name`.`AVG_TIMER_WAIT` AS `avg_latency`,`performance_schema`.`events_waits_summary_global_by_event_name`.`MAX_TIMER_WAIT` AS `max_latency` from `performance_schema`.`events_waits_summary_global_by_event_name` where ((`performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME` <> 'idle') and (`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT` > 0)) order by `performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT` desc; -- ---------------------------- -- View structure for x$wait_classes_global_by_avg_latency -- ---------------------------- DROP VIEW IF EXISTS `x$wait_classes_global_by_avg_latency`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$wait_classes_global_by_avg_latency` AS select substring_index(`performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME`,'/',3) AS `event_class`,sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`COUNT_STAR`) AS `total`,sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,min(`performance_schema`.`events_waits_summary_global_by_event_name`.`MIN_TIMER_WAIT`) AS `min_latency`,ifnull((sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT`) / nullif(sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`COUNT_STAR`),0)),0) AS `avg_latency`,max(`performance_schema`.`events_waits_summary_global_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency` from `performance_schema`.`events_waits_summary_global_by_event_name` where ((`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT` > 0) and (`performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME` <> 'idle')) group by `event_class` order by ifnull((sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT`) / nullif(sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`COUNT_STAR`),0)),0) desc; -- ---------------------------- -- View structure for x$wait_classes_global_by_latency -- ---------------------------- DROP VIEW IF EXISTS `x$wait_classes_global_by_latency`; CREATE ALGORITHM = TEMPTABLE SQL SECURITY INVOKER VIEW `x$wait_classes_global_by_latency` AS select substring_index(`performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME`,'/',3) AS `event_class`,sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`COUNT_STAR`) AS `total`,sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT`) AS `total_latency`,min(`performance_schema`.`events_waits_summary_global_by_event_name`.`MIN_TIMER_WAIT`) AS `min_latency`,ifnull((sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT`) / nullif(sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`COUNT_STAR`),0)),0) AS `avg_latency`,max(`performance_schema`.`events_waits_summary_global_by_event_name`.`MAX_TIMER_WAIT`) AS `max_latency` from `performance_schema`.`events_waits_summary_global_by_event_name` where ((`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT` > 0) and (`performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME` <> 'idle')) group by substring_index(`performance_schema`.`events_waits_summary_global_by_event_name`.`EVENT_NAME`,'/',3) order by sum(`performance_schema`.`events_waits_summary_global_by_event_name`.`SUM_TIMER_WAIT`) desc; -- ---------------------------- -- Procedure structure for create_synonym_db -- ---------------------------- DROP PROCEDURE IF EXISTS `create_synonym_db`; delimiter ;; CREATE PROCEDURE `sys`.`create_synonym_db`(IN in_db_name VARCHAR(64), IN in_synonym VARCHAR(64)) MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Takes a source database name and synonym name, and then creates the \n synonym database with views that point to all of the tables within\n the source database.\n \n Useful for creating a \"ps\" synonym for \"performance_schema\",\n or \"is\" instead of \"information_schema\", for example.\n \n Parameters\n \n in_db_name (VARCHAR(64)):\n The database name that you would like to create a synonym for.\n in_synonym (VARCHAR(64)):\n The database synonym name.\n \n Example\n \n mysql> SHOW DATABASES;\n +--------------------+\n | Database |\n +--------------------+\n | information_schema |\n | mysql |\n | performance_schema |\n | sys |\n | test |\n +--------------------+\n 5 rows in set (0.00 sec)\n \n mysql> CALL sys.create_synonym_db(\'performance_schema\', \'ps\');\n +---------------------------------------+\n | summary |\n +---------------------------------------+\n | Created 74 views in the `ps` database |\n +---------------------------------------+\n 1 row in set (8.57 sec)\n \n Query OK, 0 rows affected (8.57 sec)\n \n mysql> SHOW DATABASES;\n +--------------------+\n | Database |\n +--------------------+\n | information_schema |\n | mysql |\n | performance_schema |\n | ps |\n | sys |\n | test |\n +--------------------+\n 6 rows in set (0.00 sec)\n \n mysql> SHOW FULL TABLES FROM ps;\n +------------------------------------------------------+------------+\n | Tables_in_ps | Table_type |\n +------------------------------------------------------+------------+\n | accounts | VIEW |\n | cond_instances | VIEW |\n | events_stages_current | VIEW |\n | events_stages_history | VIEW |\n ...\n ' BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_db_name_check VARCHAR(64); DECLARE v_db_err_msg TEXT; DECLARE v_table VARCHAR(64); DECLARE v_views_created INT DEFAULT 0; DECLARE db_doesnt_exist CONDITION FOR SQLSTATE '42000'; DECLARE db_name_exists CONDITION FOR SQLSTATE 'HY000'; DECLARE c_table_names CURSOR FOR SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = in_db_name; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; SELECT SCHEMA_NAME INTO v_db_name_check FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = in_db_name; IF v_db_name_check IS NULL THEN SET v_db_err_msg = CONCAT('Unknown database ', in_db_name); SIGNAL SQLSTATE 'HY000' SET MESSAGE_TEXT = v_db_err_msg; END IF; SELECT SCHEMA_NAME INTO v_db_name_check FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = in_synonym; IF v_db_name_check = in_synonym THEN SET v_db_err_msg = CONCAT('Can\'t create database ', in_synonym, '; database exists'); SIGNAL SQLSTATE 'HY000' SET MESSAGE_TEXT = v_db_err_msg; END IF; SET @create_db_stmt := CONCAT('CREATE DATABASE ', sys.quote_identifier(in_synonym)); PREPARE create_db_stmt FROM @create_db_stmt; EXECUTE create_db_stmt; DEALLOCATE PREPARE create_db_stmt; SET v_done = FALSE; OPEN c_table_names; c_table_names: LOOP FETCH c_table_names INTO v_table; IF v_done THEN LEAVE c_table_names; END IF; SET @create_view_stmt = CONCAT( 'CREATE SQL SECURITY INVOKER VIEW ', sys.quote_identifier(in_synonym), '.', sys.quote_identifier(v_table), ' AS SELECT * FROM ', sys.quote_identifier(in_db_name), '.', sys.quote_identifier(v_table) ); PREPARE create_view_stmt FROM @create_view_stmt; EXECUTE create_view_stmt; DEALLOCATE PREPARE create_view_stmt; SET v_views_created = v_views_created + 1; END LOOP; CLOSE c_table_names; SELECT CONCAT( 'Created ', v_views_created, ' view', IF(v_views_created != 1, 's', ''), ' in the ', sys.quote_identifier(in_synonym), ' database' ) AS summary; END ;; delimiter ; -- ---------------------------- -- Procedure structure for diagnostics -- ---------------------------- DROP PROCEDURE IF EXISTS `diagnostics`; delimiter ;; CREATE PROCEDURE `sys`.`diagnostics`(IN in_max_runtime int unsigned, IN in_interval int unsigned, IN in_auto_config enum ('current', 'medium', 'full')) READS SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Create a report of the current status of the server for diagnostics purposes. Data collected includes (some items depends on versions and settings):\n \n * The GLOBAL VARIABLES\n * Several sys schema views including metrics or equivalent (depending on version and settings)\n * Queries in the 95th percentile\n * Several ndbinfo views for MySQL Cluster\n * Replication (both master and slave) information.\n \n Some of the sys schema views are calculated as initial (optional), overall, delta:\n \n * The initial view is the content of the view at the start of this procedure.\n This output will be the same as the the start values used for the delta view.\n The initial view is included if @sys.diagnostics.include_raw = \'ON\'.\n * The overall view is the content of the view at the end of this procedure.\n This output is the same as the end values used for the delta view.\n The overall view is always included.\n * The delta view is the difference from the beginning to the end. Note that for min and max values\n they are simply the min or max value from the end view respectively, so does not necessarily reflect\n the minimum/maximum value in the monitored period.\n Note: except for the metrics views the delta is only calculation between the first and last outputs.\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Versions supported:\n * MySQL 5.6: 5.6.10 and later\n * MySQL 5.7: 5.7.9 and later\n \n Parameters\n \n in_max_runtime (INT UNSIGNED):\n The maximum time to keep collecting data.\n Use NULL to get the default which is 60 seconds, otherwise enter a value greater than 0.\n in_interval (INT UNSIGNED):\n How long to sleep between data collections.\n Use NULL to get the default which is 30 seconds, otherwise enter a value greater than 0.\n in_auto_config (ENUM(\'current\', \'medium\', \'full\'))\n Automatically enable Performance Schema instruments and consumers.\n NOTE: The more that are enabled, the more impact on the performance.\n Supported values are:\n * current - use the current settings.\n * medium - enable some settings.\n * full - enables all settings. This will have a big impact on the\n performance - be careful using this option.\n If another setting the \'current\' is chosen, the current settings\n are restored at the end of the procedure.\n \n \n Configuration Options\n \n sys.diagnostics.allow_i_s_tables\n Specifies whether it is allowed to do table scan queries on information_schema.TABLES. This can be expensive if there\n are many tables. Set to \'ON\' to allow, \'OFF\' to not allow.\n Default is \'OFF\'.\n \n sys.diagnostics.include_raw\n Set to \'ON\' to include the raw data (e.g. the original output of \"SELECT * FROM sys.metrics\").\n Use this to get the initial values of the various views.\n Default is \'OFF\'.\n \n sys.statement_truncate_len\n How much of queries in the process list output to include.\n Default is 64.\n \n sys.debug\n Whether to provide debugging output.\n Default is \'OFF\'. Set to \'ON\' to include.\n \n \n Example\n \n To create a report and append it to the file diag.out:\n \n mysql> TEE diag.out;\n mysql> CALL sys.diagnostics(120, 30, \'current\');\n ...\n mysql> NOTEE;\n ' BEGIN DECLARE v_start, v_runtime, v_iter_start, v_sleep DECIMAL(20,2) DEFAULT 0.0; DECLARE v_has_innodb, v_has_ndb, v_has_ps, v_has_replication, v_has_ps_replication VARCHAR(8) CHARSET utf8 DEFAULT 'NO'; DECLARE v_this_thread_enabled, v_has_ps_vars, v_has_metrics ENUM('YES', 'NO'); DECLARE v_table_name, v_banner VARCHAR(64) CHARSET utf8; DECLARE v_sql_status_summary_select, v_sql_status_summary_delta, v_sql_status_summary_from, v_no_delta_names TEXT; DECLARE v_output_time, v_output_time_prev DECIMAL(20,3) UNSIGNED; DECLARE v_output_count, v_count, v_old_group_concat_max_len INT UNSIGNED DEFAULT 0; DECLARE v_status_summary_width TINYINT UNSIGNED DEFAULT 50; DECLARE v_done BOOLEAN DEFAULT FALSE; DECLARE c_ndbinfo CURSOR FOR SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'ndbinfo' AND TABLE_NAME NOT IN ( 'blocks', 'config_params', 'dict_obj_types', 'disk_write_speed_base', 'memory_per_fragment', 'memoryusage', 'operations_per_fragment', 'threadblocks' ); DECLARE c_sysviews_w_delta CURSOR FOR SELECT table_name FROM tmp_sys_views_delta ORDER BY table_name; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; SELECT INSTRUMENTED INTO v_this_thread_enabled FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); IF (v_this_thread_enabled = 'YES') THEN CALL sys.ps_setup_disable_thread(CONNECTION_ID()); END IF; IF (in_max_runtime < in_interval) THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'in_max_runtime must be greater than or equal to in_interval'; END IF; IF (in_max_runtime = 0) THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'in_max_runtime must be greater than 0'; END IF; IF (in_interval = 0) THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'in_interval must be greater than 0'; END IF; IF (@sys.diagnostics.allow_i_s_tables IS NULL) THEN SET @sys.diagnostics.allow_i_s_tables = sys.sys_get_config('diagnostics.allow_i_s_tables', 'OFF'); END IF; IF (@sys.diagnostics.include_raw IS NULL) THEN SET @sys.diagnostics.include_raw = sys.sys_get_config('diagnostics.include_raw' , 'OFF'); END IF; IF (@sys.debug IS NULL) THEN SET @sys.debug = sys.sys_get_config('debug' , 'OFF'); END IF; IF (@sys.statement_truncate_len IS NULL) THEN SET @sys.statement_truncate_len = sys.sys_get_config('statement_truncate_len' , '64' ); END IF; SET @log_bin := @@sql_log_bin; IF (@log_bin = 1) THEN SET sql_log_bin = 0; END IF; SET v_no_delta_names = CONCAT('s%{COUNT}.Variable_name NOT IN (', '''innodb_buffer_pool_pages_total'', ', '''innodb_page_size'', ', '''last_query_cost'', ', '''last_query_partial_plans'', ', '''qcache_total_blocks'', ', '''slave_last_heartbeat'', ', '''ssl_ctx_verify_depth'', ', '''ssl_ctx_verify_mode'', ', '''ssl_session_cache_size'', ', '''ssl_verify_depth'', ', '''ssl_verify_mode'', ', '''ssl_version'', ', '''buffer_flush_lsn_avg_rate'', ', '''buffer_flush_pct_for_dirty'', ', '''buffer_flush_pct_for_lsn'', ', '''buffer_pool_pages_total'', ', '''lock_row_lock_time_avg'', ', '''lock_row_lock_time_max'', ', '''innodb_page_size''', ')'); IF (in_auto_config <> 'current') THEN IF (@sys.debug = 'ON') THEN SELECT CONCAT('Updating Performance Schema configuration to ', in_auto_config) AS 'Debug'; END IF; CALL sys.ps_setup_save(0); IF (in_auto_config = 'medium') THEN UPDATE performance_schema.setup_consumers SET ENABLED = 'YES' WHERE NAME NOT LIKE '%\_history%'; UPDATE performance_schema.setup_instruments SET ENABLED = 'YES', TIMED = 'YES' WHERE NAME NOT LIKE 'wait/synch/%'; ELSEIF (in_auto_config = 'full') THEN UPDATE performance_schema.setup_consumers SET ENABLED = 'YES'; UPDATE performance_schema.setup_instruments SET ENABLED = 'YES', TIMED = 'YES'; END IF; UPDATE performance_schema.threads SET INSTRUMENTED = 'YES' WHERE PROCESSLIST_ID <> CONNECTION_ID(); END IF; SET v_start = UNIX_TIMESTAMP(NOW(2)), in_interval = IFNULL(in_interval, 30), in_max_runtime = IFNULL(in_max_runtime, 60); SET v_banner = REPEAT( '-', LEAST( GREATEST( 36, CHAR_LENGTH(VERSION()), CHAR_LENGTH(<EMAIL>), CHAR_LENGTH(@@global.version_compile_os), CHAR_LENGTH(@@global.version_compile_machine), CHAR_LENGTH(@@global.socket), CHAR_LENGTH(@@global.datadir) ), 64 ) ); SELECT 'Hostname' AS 'Name', @@global.hostname AS 'Value' UNION ALL SELECT 'Port' AS 'Name', @@global.port AS 'Value' UNION ALL SELECT 'Socket' AS 'Name', @@global.socket AS 'Value' UNION ALL SELECT 'Datadir' AS 'Name', @@global.datadir AS 'Value' UNION ALL SELECT 'Server UUID' AS 'Name', @@global.server_uuid AS 'Value' UNION ALL SELECT REPEAT('-', 23) AS 'Name', v_banner AS 'Value' UNION ALL SELECT 'MySQL Version' AS 'Name', VERSION() AS 'Value' UNION ALL SELECT 'Sys Schema Version' AS 'Name', (SELECT sys_version FROM sys.version) AS 'Value' UNION ALL SELECT 'Version Comment' AS 'Name', @@global.version_comment AS 'Value' UNION ALL SELECT 'Version Compile OS' AS 'Name', @@global.version_compile_os AS 'Value' UNION ALL SELECT 'Version Compile Machine' AS 'Name', @@global.version_compile_machine AS 'Value' UNION ALL SELECT REPEAT('-', 23) AS 'Name', v_banner AS 'Value' UNION ALL SELECT 'UTC Time' AS 'Name', UTC_TIMESTAMP() AS 'Value' UNION ALL SELECT 'Local Time' AS 'Name', NOW() AS 'Value' UNION ALL SELECT 'Time Zone' AS 'Name', @@global.time_zone AS 'Value' UNION ALL SELECT 'System Time Zone' AS 'Name', @@global.system_time_zone AS 'Value' UNION ALL SELECT 'Time Zone Offset' AS 'Name', TIMEDIFF(NOW(), UTC_TIMESTAMP()) AS 'Value'; SET v_has_innodb = IFNULL((SELECT SUPPORT FROM information_schema.ENGINES WHERE ENGINE = 'InnoDB'), 'NO'), v_has_ndb = IFNULL((SELECT SUPPORT FROM information_schema.ENGINES WHERE ENGINE = 'NDBCluster'), 'NO'), v_has_ps = IFNULL((SELECT SUPPORT FROM information_schema.ENGINES WHERE ENGINE = 'PERFORMANCE_SCHEMA'), 'NO'), v_has_ps_replication = IF(v_has_ps = 'YES' AND EXISTS(SELECT 1 FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'performance_schema' AND TABLE_NAME = 'replication_applier_status'), 'YES', 'NO' ), v_has_replication = IF(v_has_ps_replication = 'YES', IF((SELECT COUNT(*) FROM performance_schema.replication_connection_status) > 0, 'YES', 'NO'), IF(@@master_info_repository = 'TABLE', IF((SELECT COUNT(*) FROM mysql.slave_master_info) > 0, 'YES', 'NO'), IF(@@relay_log_info_repository = 'TABLE', IF((SELECT COUNT(*) FROM mysql.slave_relay_log_info) > 0, 'YES', 'NO'), 'MAYBE')) ) , v_has_metrics = IF(v_has_ps = 'YES' OR (sys.version_major() = 5 AND sys.version_minor() = 6), 'YES', 'NO'), v_has_ps_vars = 'NO'; SET v_has_ps_vars = IF(@@global.show_compatibility_56, 'NO', 'YES'); SET v_has_ps_vars = 'YES'; IF (@sys.debug = 'ON') THEN SELECT v_has_innodb AS 'Has_InnoDB', v_has_ndb AS 'Has_NDBCluster', v_has_ps AS 'Has_Performance_Schema', v_has_ps_vars AS 'Has_P_S_SHOW_Variables', v_has_metrics AS 'Has_metrics', v_has_ps_replication 'AS Has_P_S_Replication', v_has_replication AS 'Has_Replication'; END IF; IF (v_has_innodb IN ('DEFAULT', 'YES')) THEN SET @sys.diagnostics.sql = 'SHOW ENGINE InnoDB STATUS'; PREPARE stmt_innodb_status FROM @sys.diagnostics.sql; END IF; IF (v_has_ps = 'YES') THEN SET @sys.diagnostics.sql = 'SHOW ENGINE PERFORMANCE_SCHEMA STATUS'; PREPARE stmt_ps_status FROM @sys.diagnostics.sql; END IF; IF (v_has_ndb IN ('DEFAULT', 'YES')) THEN SET @sys.diagnostics.sql = 'SHOW ENGINE NDBCLUSTER STATUS'; PREPARE stmt_ndbcluster_status FROM @sys.diagnostics.sql; END IF; SET @sys.diagnostics.sql_gen_query_template = 'SELECT CONCAT( ''SELECT '', GROUP_CONCAT( CASE WHEN (SUBSTRING(TABLE_NAME, 3), COLUMN_NAME) IN ( (''io_global_by_file_by_bytes'', ''total''), (''io_global_by_wait_by_bytes'', ''total_requested'') ) THEN CONCAT(''sys.format_bytes('', COLUMN_NAME, '') AS '', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -8) = ''_latency'' THEN CONCAT(''sys.format_time('', COLUMN_NAME, '') AS '', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -7) = ''_memory'' OR SUBSTRING(COLUMN_NAME, -17) = ''_memory_allocated'' OR ((SUBSTRING(COLUMN_NAME, -5) = ''_read'' OR SUBSTRING(COLUMN_NAME, -8) = ''_written'' OR SUBSTRING(COLUMN_NAME, -6) = ''_write'') AND SUBSTRING(COLUMN_NAME, 1, 6) <> ''COUNT_'') THEN CONCAT(''sys.format_bytes('', COLUMN_NAME, '') AS '', COLUMN_NAME) ELSE COLUMN_NAME END ORDER BY ORDINAL_POSITION SEPARATOR '',\n '' ), ''\n FROM tmp_'', SUBSTRING(TABLE_NAME FROM 3), ''_%{OUTPUT}'' ) AS Query INTO @sys.diagnostics.sql_select FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = ''sys'' AND TABLE_NAME = ? GROUP BY TABLE_NAME'; SET @sys.diagnostics.sql_gen_query_delta = 'SELECT CONCAT( ''SELECT '', GROUP_CONCAT( CASE WHEN FIND_IN_SET(COLUMN_NAME, diag.pk) THEN COLUMN_NAME WHEN diag.TABLE_NAME = ''io_global_by_file_by_bytes'' AND COLUMN_NAME = ''write_pct'' THEN CONCAT(''IFNULL(ROUND(100-(((e.total_read-IFNULL(s.total_read, 0))'', ''/NULLIF(((e.total_read-IFNULL(s.total_read, 0))+(e.total_written-IFNULL(s.total_written, 0))), 0))*100), 2), 0.00) AS '', COLUMN_NAME) WHEN (diag.TABLE_NAME, COLUMN_NAME) IN ( (''io_global_by_file_by_bytes'', ''total''), (''io_global_by_wait_by_bytes'', ''total_requested'') ) THEN CONCAT(''sys.format_bytes(e.'', COLUMN_NAME, ''-IFNULL(s.'', COLUMN_NAME, '', 0)) AS '', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, 1, 4) IN (''max_'', ''min_'') AND SUBSTRING(COLUMN_NAME, -8) = ''_latency'' THEN CONCAT(''sys.format_time(e.'', COLUMN_NAME, '') AS '', COLUMN_NAME) WHEN COLUMN_NAME = ''avg_latency'' THEN CONCAT(''sys.format_time((e.total_latency - IFNULL(s.total_latency, 0))'', ''/NULLIF(e.total - IFNULL(s.total, 0), 0)) AS '', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -12) = ''_avg_latency'' THEN CONCAT(''sys.format_time((e.'', SUBSTRING(COLUMN_NAME FROM 1 FOR CHAR_LENGTH(COLUMN_NAME)-12), ''_latency - IFNULL(s.'', SUBSTRING(COLUMN_NAME FROM 1 FOR CHAR_LENGTH(COLUMN_NAME)-12), ''_latency, 0))'', ''/NULLIF(e.'', SUBSTRING(COLUMN_NAME FROM 1 FOR CHAR_LENGTH(COLUMN_NAME)-12), ''s - IFNULL(s.'', SUBSTRING(COLUMN_NAME FROM 1 FOR CHAR_LENGTH(COLUMN_NAME)-12), ''s, 0), 0)) AS '', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -8) = ''_latency'' THEN CONCAT(''sys.format_time(e.'', COLUMN_NAME, '' - IFNULL(s.'', COLUMN_NAME, '', 0)) AS '', COLUMN_NAME) WHEN COLUMN_NAME IN (''avg_read'', ''avg_write'', ''avg_written'') THEN CONCAT(''sys.format_bytes(IFNULL((e.total_'', IF(COLUMN_NAME = ''avg_read'', ''read'', ''written''), ''-IFNULL(s.total_'', IF(COLUMN_NAME = ''avg_read'', ''read'', ''written''), '', 0))'', ''/NULLIF(e.count_'', IF(COLUMN_NAME = ''avg_read'', ''read'', ''write''), ''-IFNULL(s.count_'', IF(COLUMN_NAME = ''avg_read'', ''read'', ''write''), '', 0), 0), 0)) AS '', COLUMN_NAME) WHEN SUBSTRING(COLUMN_NAME, -7) = ''_memory'' OR SUBSTRING(COLUMN_NAME, -17) = ''_memory_allocated'' OR ((SUBSTRING(COLUMN_NAME, -5) = ''_read'' OR SUBSTRING(COLUMN_NAME, -8) = ''_written'' OR SUBSTRING(COLUMN_NAME, -6) = ''_write'') AND SUBSTRING(COLUMN_NAME, 1, 6) <> ''COUNT_'') THEN CONCAT(''sys.format_bytes(e.'', COLUMN_NAME, '' - IFNULL(s.'', COLUMN_NAME, '', 0)) AS '', COLUMN_NAME) ELSE CONCAT(''(e.'', COLUMN_NAME, '' - IFNULL(s.'', COLUMN_NAME, '', 0)) AS '', COLUMN_NAME) END ORDER BY ORDINAL_POSITION SEPARATOR '',\n '' ), ''\n FROM tmp_'', diag.TABLE_NAME, ''_end e LEFT OUTER JOIN tmp_'', diag.TABLE_NAME, ''_start s USING ('', diag.pk, '')'' ) AS Query INTO @sys.diagnostics.sql_select FROM tmp_sys_views_delta diag INNER JOIN information_schema.COLUMNS c ON c.TABLE_NAME = CONCAT(''x$'', diag.TABLE_NAME) WHERE c.TABLE_SCHEMA = ''sys'' AND diag.TABLE_NAME = ? GROUP BY diag.TABLE_NAME'; IF (v_has_ps = 'YES') THEN DROP TEMPORARY TABLE IF EXISTS tmp_sys_views_delta; CREATE TEMPORARY TABLE tmp_sys_views_delta ( TABLE_NAME varchar(64) NOT NULL, order_by text COMMENT 'ORDER BY clause for the initial and overall views', order_by_delta text COMMENT 'ORDER BY clause for the delta views', where_delta text COMMENT 'WHERE clause to use for delta views to only include rows with a "count" > 0', limit_rows int unsigned COMMENT 'The maximum number of rows to include for the view', pk varchar(128) COMMENT 'Used with the FIND_IN_SET() function so use comma separated list without whitespace', PRIMARY KEY (TABLE_NAME) ); IF (@sys.debug = 'ON') THEN SELECT 'Populating tmp_sys_views_delta' AS 'Debug'; END IF; INSERT INTO tmp_sys_views_delta VALUES ('host_summary' , '%{TABLE}.statement_latency DESC', '(e.statement_latency-IFNULL(s.statement_latency, 0)) DESC', '(e.statements - IFNULL(s.statements, 0)) > 0', NULL, 'host'), ('host_summary_by_file_io' , '%{TABLE}.io_latency DESC', '(e.io_latency-IFNULL(s.io_latency, 0)) DESC', '(e.ios - IFNULL(s.ios, 0)) > 0', NULL, 'host'), ('host_summary_by_file_io_type' , '%{TABLE}.host, %{TABLE}.total_latency DESC', 'e.host, (e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'host,event_name'), ('host_summary_by_stages' , '%{TABLE}.host, %{TABLE}.total_latency DESC', 'e.host, (e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'host,event_name'), ('host_summary_by_statement_latency' , '%{TABLE}.total_latency DESC', '(e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'host'), ('host_summary_by_statement_type' , '%{TABLE}.host, %{TABLE}.total_latency DESC', 'e.host, (e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'host,statement'), ('io_by_thread_by_latency' , '%{TABLE}.total_latency DESC', '(e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'user,thread_id,processlist_id'), ('io_global_by_file_by_bytes' , '%{TABLE}.total DESC', '(e.total-IFNULL(s.total, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', 100, 'file'), ('io_global_by_file_by_latency' , '%{TABLE}.total_latency DESC', '(e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', 100, 'file'), ('io_global_by_wait_by_bytes' , '%{TABLE}.total_requested DESC', '(e.total_requested-IFNULL(s.total_requested, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'event_name'), ('io_global_by_wait_by_latency' , '%{TABLE}.total_latency DESC', '(e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'event_name'), ('schema_index_statistics' , '(%{TABLE}.select_latency+%{TABLE}.insert_latency+%{TABLE}.update_latency+%{TABLE}.delete_latency) DESC', '((e.select_latency+e.insert_latency+e.update_latency+e.delete_latency)-IFNULL(s.select_latency+s.insert_latency+s.update_latency+s.delete_latency, 0)) DESC', '((e.rows_selected+e.insert_latency+e.rows_updated+e.rows_deleted)-IFNULL(s.rows_selected+s.rows_inserted+s.rows_updated+s.rows_deleted, 0)) > 0', 100, 'table_schema,table_name,index_name'), ('schema_table_statistics' , '%{TABLE}.total_latency DESC', '(e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total_latency-IFNULL(s.total_latency, 0)) > 0', 100, 'table_schema,table_name'), ('schema_tables_with_full_table_scans', '%{TABLE}.rows_full_scanned DESC', '(e.rows_full_scanned-IFNULL(s.rows_full_scanned, 0)) DESC', '(e.rows_full_scanned-IFNULL(s.rows_full_scanned, 0)) > 0', 100, 'object_schema,object_name'), ('user_summary' , '%{TABLE}.statement_latency DESC', '(e.statement_latency-IFNULL(s.statement_latency, 0)) DESC', '(e.statements - IFNULL(s.statements, 0)) > 0', NULL, 'user'), ('user_summary_by_file_io' , '%{TABLE}.io_latency DESC', '(e.io_latency-IFNULL(s.io_latency, 0)) DESC', '(e.ios - IFNULL(s.ios, 0)) > 0', NULL, 'user'), ('user_summary_by_file_io_type' , '%{TABLE}.user, %{TABLE}.latency DESC', 'e.user, (e.latency-IFNULL(s.latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'user,event_name'), ('user_summary_by_stages' , '%{TABLE}.user, %{TABLE}.total_latency DESC', 'e.user, (e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'user,event_name'), ('user_summary_by_statement_latency' , '%{TABLE}.total_latency DESC', '(e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'user'), ('user_summary_by_statement_type' , '%{TABLE}.user, %{TABLE}.total_latency DESC', 'e.user, (e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'user,statement'), ('wait_classes_global_by_avg_latency' , 'IFNULL(%{TABLE}.total_latency / NULLIF(%{TABLE}.total, 0), 0) DESC', 'IFNULL((e.total_latency-IFNULL(s.total_latency, 0)) / NULLIF((e.total - IFNULL(s.total, 0)), 0), 0) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'event_class'), ('wait_classes_global_by_latency' , '%{TABLE}.total_latency DESC', '(e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'event_class'), ('waits_by_host_by_latency' , '%{TABLE}.host, %{TABLE}.total_latency DESC', 'e.host, (e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'host,event'), ('waits_by_user_by_latency' , '%{TABLE}.user, %{TABLE}.total_latency DESC', 'e.user, (e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'user,event'), ('waits_global_by_latency' , '%{TABLE}.total_latency DESC', '(e.total_latency-IFNULL(s.total_latency, 0)) DESC', '(e.total - IFNULL(s.total, 0)) > 0', NULL, 'events') ; END IF; SELECT ' ======================= Configuration ======================= ' AS ''; SELECT 'GLOBAL VARIABLES' AS 'The following output is:'; IF (v_has_ps_vars = 'YES') THEN SELECT LOWER(VARIABLE_NAME) AS Variable_name, VARIABLE_VALUE AS Variable_value FROM performance_schema.global_variables ORDER BY VARIABLE_NAME; ELSE SELECT LOWER(VARIABLE_NAME) AS Variable_name, VARIABLE_VALUE AS Variable_value FROM information_schema.GLOBAL_VARIABLES ORDER BY VARIABLE_NAME; END IF; IF (v_has_ps = 'YES') THEN SELECT 'Performance Schema Setup - Actors' AS 'The following output is:'; SELECT * FROM performance_schema.setup_actors; SELECT 'Performance Schema Setup - Consumers' AS 'The following output is:'; SELECT NAME AS Consumer, ENABLED, sys.ps_is_consumer_enabled(NAME) AS COLLECTS FROM performance_schema.setup_consumers; SELECT 'Performance Schema Setup - Instruments' AS 'The following output is:'; SELECT SUBSTRING_INDEX(NAME, '/', 2) AS 'InstrumentClass', ROUND(100*SUM(IF(ENABLED = 'YES', 1, 0))/COUNT(*), 2) AS 'EnabledPct', ROUND(100*SUM(IF(TIMED = 'YES', 1, 0))/COUNT(*), 2) AS 'TimedPct' FROM performance_schema.setup_instruments GROUP BY SUBSTRING_INDEX(NAME, '/', 2) ORDER BY SUBSTRING_INDEX(NAME, '/', 2); SELECT 'Performance Schema Setup - Objects' AS 'The following output is:'; SELECT * FROM performance_schema.setup_objects; SELECT 'Performance Schema Setup - Threads' AS 'The following output is:'; SELECT `TYPE` AS ThreadType, COUNT(*) AS 'Total', ROUND(100*SUM(IF(INSTRUMENTED = 'YES', 1, 0))/COUNT(*), 2) AS 'InstrumentedPct' FROM performance_schema.threads GROUP BY TYPE; END IF; IF (v_has_replication = 'NO') THEN SELECT 'No Replication Configured' AS 'Replication Status'; ELSE SELECT CONCAT('Replication Configured: ', v_has_replication, ' - Performance Schema Replication Tables: ', v_has_ps_replication) AS 'Replication Status'; IF (v_has_ps_replication = 'YES') THEN SELECT 'Replication - Connection Configuration' AS 'The following output is:'; SELECT * FROM performance_schema.replication_connection_configuration ORDER BY CHANNEL_NAME ; END IF; IF (v_has_ps_replication = 'YES') THEN SELECT 'Replication - Applier Configuration' AS 'The following output is:'; SELECT * FROM performance_schema.replication_applier_configuration ORDER BY CHANNEL_NAME; END IF; IF (@@master_info_repository = 'TABLE') THEN SELECT 'Replication - Master Info Repository Configuration' AS 'The following output is:'; SELECT Channel_name, Host, User_name, Port, Connect_retry, Enabled_ssl, Ssl_ca, Ssl_capath, Ssl_cert, Ssl_cipher, Ssl_key, Ssl_verify_server_cert, Heartbeat, Bind, Ignored_server_ids, Uuid, Retry_count, Ssl_crl, Ssl_crlpath, Tls_version, Enabled_auto_position FROM mysql.slave_master_info ORDER BY Channel_name ; END IF; IF (@@relay_log_info_repository = 'TABLE') THEN SELECT 'Replication - Relay Log Repository Configuration' AS 'The following output is:'; SELECT Channel_name, Sql_delay, Number_of_workers, Id FROM mysql.slave_relay_log_info ORDER BY Channel_name ; END IF; END IF; IF (v_has_ndb IN ('DEFAULT', 'YES')) THEN SELECT 'Cluster Thread Blocks' AS 'The following output is:'; SELECT * FROM ndbinfo.threadblocks; END IF; IF (v_has_ps = 'YES') THEN IF (@sys.diagnostics.include_raw = 'ON') THEN SELECT ' ======================== Initial Status ======================== ' AS ''; END IF; DROP TEMPORARY TABLE IF EXISTS tmp_digests_start; CALL sys.statement_performance_analyzer('create_tmp', 'tmp_digests_start', NULL); CALL sys.statement_performance_analyzer('snapshot', NULL, NULL); CALL sys.statement_performance_analyzer('save', 'tmp_digests_start', NULL); IF (@sys.diagnostics.include_raw = 'ON') THEN SET @sys.diagnostics.sql = REPLACE(@sys.diagnostics.sql_gen_query_template, '%{OUTPUT}', 'start'); IF (@sys.debug = 'ON') THEN SELECT 'The following query will be used to generate the query for each sys view' AS 'Debug'; SELECT @sys.diagnostics.sql AS 'Debug'; END IF; PREPARE stmt_gen_query FROM @sys.diagnostics.sql; END IF; SET v_done = FALSE; OPEN c_sysviews_w_delta; c_sysviews_w_delta_loop: LOOP FETCH c_sysviews_w_delta INTO v_table_name; IF v_done THEN LEAVE c_sysviews_w_delta_loop; END IF; IF (@sys.debug = 'ON') THEN SELECT CONCAT('The following queries are for storing the initial content of ', v_table_name) AS 'Debug'; END IF; CALL sys.execute_prepared_stmt(CONCAT('DROP TEMPORARY TABLE IF EXISTS `tmp_', v_table_name, '_start`')); CALL sys.execute_prepared_stmt(CONCAT('CREATE TEMPORARY TABLE `tmp_', v_table_name, '_start` SELECT * FROM `sys`.`x$', v_table_name, '`')); IF (@sys.diagnostics.include_raw = 'ON') THEN SET @sys.diagnostics.table_name = CONCAT('x$', v_table_name); EXECUTE stmt_gen_query USING @sys.diagnostics.table_name; SELECT CONCAT(@sys.diagnostics.sql_select, IF(order_by IS NOT NULL, CONCAT('\n ORDER BY ', REPLACE(order_by, '%{TABLE}', CONCAT('tmp_', v_table_name, '_start'))), ''), IF(limit_rows IS NOT NULL, CONCAT('\n LIMIT ', limit_rows), '') ) INTO @sys.diagnostics.sql_select FROM tmp_sys_views_delta WHERE TABLE_NAME = v_table_name; SELECT CONCAT('Initial ', v_table_name) AS 'The following output is:'; CALL sys.execute_prepared_stmt(@sys.diagnostics.sql_select); END IF; END LOOP; CLOSE c_sysviews_w_delta; IF (@sys.diagnostics.include_raw = 'ON') THEN DEALLOCATE PREPARE stmt_gen_query; END IF; END IF; SET v_sql_status_summary_select = 'SELECT Variable_name', v_sql_status_summary_delta = '', v_sql_status_summary_from = ''; REPEAT SET v_output_count = v_output_count + 1; IF (v_output_count > 1) THEN SET v_sleep = in_interval-(UNIX_TIMESTAMP(NOW(2))-v_iter_start); SELECT NOW() AS 'Time', CONCAT('Going to sleep for ', v_sleep, ' seconds. Please do not interrupt') AS 'The following output is:'; DO SLEEP(in_interval); END IF; SET v_iter_start = UNIX_TIMESTAMP(NOW(2)); SELECT NOW(), CONCAT('Iteration Number ', IFNULL(v_output_count, 'NULL')) AS 'The following output is:'; IF (@@log_bin = 1) THEN SELECT 'SHOW MASTER STATUS' AS 'The following output is:'; SHOW MASTER STATUS; END IF; IF (v_has_replication <> 'NO') THEN SELECT 'SHOW SLAVE STATUS' AS 'The following output is:'; SHOW SLAVE STATUS; IF (v_has_ps_replication = 'YES') THEN SELECT 'Replication Connection Status' AS 'The following output is:'; SELECT * FROM performance_schema.replication_connection_status; SELECT 'Replication Applier Status' AS 'The following output is:'; SELECT * FROM performance_schema.replication_applier_status ORDER BY CHANNEL_NAME; SELECT 'Replication Applier Status - Coordinator' AS 'The following output is:'; SELECT * FROM performance_schema.replication_applier_status_by_coordinator ORDER BY CHANNEL_NAME; SELECT 'Replication Applier Status - Worker' AS 'The following output is:'; SELECT * FROM performance_schema.replication_applier_status_by_worker ORDER BY CHANNEL_NAME, WORKER_ID; END IF; IF (@@master_info_repository = 'TABLE') THEN SELECT 'Replication - Master Log Status' AS 'The following output is:'; SELECT Master_log_name, Master_log_pos FROM mysql.slave_master_info; END IF; IF (@@relay_log_info_repository = 'TABLE') THEN SELECT 'Replication - Relay Log Status' AS 'The following output is:'; SELECT sys.format_path(Relay_log_name) AS Relay_log_name, Relay_log_pos, Master_log_name, Master_log_pos FROM mysql.slave_relay_log_info; SELECT 'Replication - Worker Status' AS 'The following output is:'; SELECT Id, sys.format_path(Relay_log_name) AS Relay_log_name, Relay_log_pos, Master_log_name, Master_log_pos, sys.format_path(Checkpoint_relay_log_name) AS Checkpoint_relay_log_name, Checkpoint_relay_log_pos, Checkpoint_master_log_name, Checkpoint_master_log_pos, Checkpoint_seqno, Checkpoint_group_size, HEX(Checkpoint_group_bitmap) AS Checkpoint_group_bitmap , Channel_name FROM mysql.slave_worker_info ORDER BY Channel_name, Id; END IF; END IF; SET v_table_name = CONCAT('tmp_metrics_', v_output_count); CALL sys.execute_prepared_stmt(CONCAT('DROP TEMPORARY TABLE IF EXISTS ', v_table_name)); CALL sys.execute_prepared_stmt(CONCAT('CREATE TEMPORARY TABLE ', v_table_name, ' ( Variable_name VARCHAR(193) NOT NULL, Variable_value VARCHAR(1024), Type VARCHAR(225) NOT NULL, Enabled ENUM(''YES'', ''NO'', ''PARTIAL'') NOT NULL, PRIMARY KEY (Type, Variable_name) ) ENGINE = InnoDB DEFAULT CHARSET=utf8')); IF (v_has_metrics) THEN SET @sys.diagnostics.sql = CONCAT( 'INSERT INTO ', v_table_name, ' SELECT Variable_name, REPLACE(Variable_value, ''\n'', ''\\\\n'') AS Variable_value, Type, Enabled FROM sys.metrics' ); ELSE SET @sys.diagnostics.sql = CONCAT( 'INSERT INTO ', v_table_name, '(SELECT LOWER(VARIABLE_NAME) AS Variable_name, REPLACE(VARIABLE_VALUE, ''\n'', ''\\\\n'') AS Variable_value, ''Global Status'' AS Type, ''YES'' AS Enabled FROM performance_schema.global_status ) UNION ALL ( SELECT NAME AS Variable_name, COUNT AS Variable_value, CONCAT(''InnoDB Metrics - '', SUBSYSTEM) AS Type, IF(STATUS = ''enabled'', ''YES'', ''NO'') AS Enabled FROM information_schema.INNODB_METRICS WHERE NAME NOT IN ( ''lock_row_lock_time'', ''lock_row_lock_time_avg'', ''lock_row_lock_time_max'', ''lock_row_lock_waits'', ''buffer_pool_reads'', ''buffer_pool_read_requests'', ''buffer_pool_write_requests'', ''buffer_pool_wait_free'', ''buffer_pool_read_ahead'', ''buffer_pool_read_ahead_evicted'', ''buffer_pool_pages_total'', ''buffer_pool_pages_misc'', ''buffer_pool_pages_data'', ''buffer_pool_bytes_data'', ''buffer_pool_pages_dirty'', ''buffer_pool_bytes_dirty'', ''buffer_pool_pages_free'', ''buffer_pages_created'', ''buffer_pages_written'', ''buffer_pages_read'', ''buffer_data_reads'', ''buffer_data_written'', ''file_num_open_files'', ''os_log_bytes_written'', ''os_log_fsyncs'', ''os_log_pending_fsyncs'', ''os_log_pending_writes'', ''log_waits'', ''log_write_requests'', ''log_writes'', ''innodb_dblwr_writes'', ''innodb_dblwr_pages_written'', ''innodb_page_size'') ) UNION ALL ( SELECT ''NOW()'' AS Variable_name, NOW(3) AS Variable_value, ''System Time'' AS Type, ''YES'' AS Enabled ) UNION ALL ( SELECT ''UNIX_TIMESTAMP()'' AS Variable_name, ROUND(UNIX_TIMESTAMP(NOW(3)), 3) AS Variable_value, ''System Time'' AS Type, ''YES'' AS Enabled ) ORDER BY Type, Variable_name;' ); END IF; CALL sys.execute_prepared_stmt(@sys.diagnostics.sql); CALL sys.execute_prepared_stmt( CONCAT('(SELECT Variable_value INTO @sys.diagnostics.output_time FROM ', v_table_name, ' WHERE Type = ''System Time'' AND Variable_name = ''UNIX_TIMESTAMP()'')') ); SET v_output_time = @sys.diagnostics.output_time; SET v_sql_status_summary_select = CONCAT(v_sql_status_summary_select, ', CONCAT( LEFT(s', v_output_count, '.Variable_value, ', v_status_summary_width, '), IF(', REPLACE(v_no_delta_names, '%{COUNT}', v_output_count), ' AND s', v_output_count, '.Variable_value REGEXP ''^[0-9]+(\\\\.[0-9]+)?$'', CONCAT('' ('', ROUND(s', v_output_count, '.Variable_value/', v_output_time, ', 2), ''/sec)''), '''') ) AS ''Output ', v_output_count, ''''), v_sql_status_summary_from = CONCAT(v_sql_status_summary_from, ' ', IF(v_output_count = 1, ' FROM ', ' INNER JOIN '), v_table_name, ' s', v_output_count, IF (v_output_count = 1, '', ' USING (Type, Variable_name)')); IF (v_output_count > 1) THEN SET v_sql_status_summary_delta = CONCAT(v_sql_status_summary_delta, ', IF(', REPLACE(v_no_delta_names, '%{COUNT}', v_output_count), ' AND s', (v_output_count-1), '.Variable_value REGEXP ''^[0-9]+(\\\\.[0-9]+)?$'' AND s', v_output_count, '.Variable_value REGEXP ''^[0-9]+(\\\\.[0-9]+)?$'', CONCAT(IF(s', (v_output_count-1), '.Variable_value REGEXP ''^[0-9]+\\\\.[0-9]+$'' OR s', v_output_count, '.Variable_value REGEXP ''^[0-9]+\\\\.[0-9]+$'', ROUND((s', v_output_count, '.Variable_value-s', (v_output_count-1), '.Variable_value), 2), (s', v_output_count, '.Variable_value-s', (v_output_count-1), '.Variable_value) ), '' ('', ROUND((s', v_output_count, '.Variable_value-s', (v_output_count-1), '.Variable_value)/(', v_output_time, '-', v_output_time_prev, '), 2), ''/sec)'' ), '''' ) AS ''Delta (', (v_output_count-1), ' -> ', v_output_count, ')'''); END IF; SET v_output_time_prev = v_output_time; IF (@sys.diagnostics.include_raw = 'ON') THEN IF (v_has_metrics) THEN SELECT 'SELECT * FROM sys.metrics' AS 'The following output is:'; ELSE SELECT 'sys.metrics equivalent' AS 'The following output is:'; END IF; CALL sys.execute_prepared_stmt(CONCAT('SELECT Type, Variable_name, Enabled, Variable_value FROM ', v_table_name, ' ORDER BY Type, Variable_name')); END IF; IF (v_has_innodb IN ('DEFAULT', 'YES')) THEN SELECT 'SHOW ENGINE INNODB STATUS' AS 'The following output is:'; EXECUTE stmt_innodb_status; SELECT 'InnoDB - Transactions' AS 'The following output is:'; SELECT * FROM information_schema.INNODB_TRX; END IF; IF (v_has_ndb IN ('DEFAULT', 'YES')) THEN SELECT 'SHOW ENGINE NDBCLUSTER STATUS' AS 'The following output is:'; EXECUTE stmt_ndbcluster_status; SELECT 'ndbinfo.memoryusage' AS 'The following output is:'; SELECT node_id, memory_type, sys.format_bytes(used) AS used, used_pages, sys.format_bytes(total) AS total, total_pages, ROUND(100*(used/total), 2) AS 'Used %' FROM ndbinfo.memoryusage; SET v_done = FALSE; OPEN c_ndbinfo; c_ndbinfo_loop: LOOP FETCH c_ndbinfo INTO v_table_name; IF v_done THEN LEAVE c_ndbinfo_loop; END IF; SELECT CONCAT('SELECT * FROM ndbinfo.', v_table_name) AS 'The following output is:'; CALL sys.execute_prepared_stmt(CONCAT('SELECT * FROM `ndbinfo`.`', v_table_name, '`')); END LOOP; CLOSE c_ndbinfo; SELECT * FROM information_schema.FILES; END IF; SELECT 'SELECT * FROM sys.processlist' AS 'The following output is:'; SELECT processlist.* FROM sys.processlist; IF (v_has_ps = 'YES') THEN IF (sys.ps_is_consumer_enabled('events_waits_history_long') = 'YES') THEN SELECT 'SELECT * FROM sys.latest_file_io' AS 'The following output is:'; SELECT * FROM sys.latest_file_io; END IF; IF (EXISTS(SELECT 1 FROM performance_schema.setup_instruments WHERE NAME LIKE 'memory/%' AND ENABLED = 'YES')) THEN SELECT 'SELECT * FROM sys.memory_by_host_by_current_bytes' AS 'The following output is:'; SELECT * FROM sys.memory_by_host_by_current_bytes; SELECT 'SELECT * FROM sys.memory_by_thread_by_current_bytes' AS 'The following output is:'; SELECT * FROM sys.memory_by_thread_by_current_bytes; SELECT 'SELECT * FROM sys.memory_by_user_by_current_bytes' AS 'The following output is:'; SELECT * FROM sys.memory_by_user_by_current_bytes; SELECT 'SELECT * FROM sys.memory_global_by_current_bytes' AS 'The following output is:'; SELECT * FROM sys.memory_global_by_current_bytes; END IF; END IF; SET v_runtime = (UNIX_TIMESTAMP(NOW(2)) - v_start); UNTIL (v_runtime + in_interval >= in_max_runtime) END REPEAT; IF (v_has_ps = 'YES') THEN SELECT 'SHOW ENGINE PERFORMANCE_SCHEMA STATUS' AS 'The following output is:'; EXECUTE stmt_ps_status; END IF; IF (v_has_innodb IN ('DEFAULT', 'YES')) THEN DEALLOCATE PREPARE stmt_innodb_status; END IF; IF (v_has_ps = 'YES') THEN DEALLOCATE PREPARE stmt_ps_status; END IF; IF (v_has_ndb IN ('DEFAULT', 'YES')) THEN DEALLOCATE PREPARE stmt_ndbcluster_status; END IF; SELECT ' ============================ Schema Information ============================ ' AS ''; SELECT COUNT(*) AS 'Total Number of Tables' FROM information_schema.TABLES; IF (@sys.diagnostics.allow_i_s_tables = 'ON') THEN SELECT 'Storage Engine Usage' AS 'The following output is:'; SELECT ENGINE, COUNT(*) AS NUM_TABLES, sys.format_bytes(SUM(DATA_LENGTH)) AS DATA_LENGTH, sys.format_bytes(SUM(INDEX_LENGTH)) AS INDEX_LENGTH, sys.format_bytes(SUM(DATA_LENGTH+INDEX_LENGTH)) AS TOTAL FROM information_schema.TABLES GROUP BY ENGINE; SELECT 'Schema Object Overview' AS 'The following output is:'; SELECT * FROM sys.schema_object_overview; SELECT 'Tables without a PRIMARY KEY' AS 'The following output is:'; SELECT TABLES.TABLE_SCHEMA, ENGINE, COUNT(*) AS NumTables FROM information_schema.TABLES LEFT OUTER JOIN information_schema.STATISTICS ON STATISTICS.TABLE_SCHEMA = TABLES.TABLE_SCHEMA AND STATISTICS.TABLE_NAME = TABLES.TABLE_NAME AND STATISTICS.INDEX_NAME = 'PRIMARY' WHERE STATISTICS.TABLE_NAME IS NULL AND TABLES.TABLE_SCHEMA NOT IN ('mysql', 'information_schema', 'performance_schema', 'sys') AND TABLES.TABLE_TYPE = 'BASE TABLE' GROUP BY TABLES.TABLE_SCHEMA, ENGINE; END IF; IF (v_has_ps = 'YES') THEN SELECT 'Unused Indexes' AS 'The following output is:'; SELECT object_schema, COUNT(*) AS NumUnusedIndexes FROM performance_schema.table_io_waits_summary_by_index_usage WHERE index_name IS NOT NULL AND count_star = 0 AND object_schema NOT IN ('mysql', 'sys') AND index_name != 'PRIMARY' GROUP BY object_schema; END IF; IF (v_has_ps = 'YES') THEN SELECT ' ========================= Overall Status ========================= ' AS ''; SELECT 'CALL sys.ps_statement_avg_latency_histogram()' AS 'The following output is:'; CALL sys.ps_statement_avg_latency_histogram(); CALL sys.statement_performance_analyzer('snapshot', NULL, NULL); CALL sys.statement_performance_analyzer('overall', NULL, 'with_runtimes_in_95th_percentile'); SET @sys.diagnostics.sql = REPLACE(@sys.diagnostics.sql_gen_query_template, '%{OUTPUT}', 'end'); IF (@sys.debug = 'ON') THEN SELECT 'The following query will be used to generate the query for each sys view' AS 'Debug'; SELECT @sys.diagnostics.sql AS 'Debug'; END IF; PREPARE stmt_gen_query FROM @sys.diagnostics.sql; SET v_done = FALSE; OPEN c_sysviews_w_delta; c_sysviews_w_delta_loop: LOOP FETCH c_sysviews_w_delta INTO v_table_name; IF v_done THEN LEAVE c_sysviews_w_delta_loop; END IF; IF (@sys.debug = 'ON') THEN SELECT CONCAT('The following queries are for storing the final content of ', v_table_name) AS 'Debug'; END IF; CALL sys.execute_prepared_stmt(CONCAT('DROP TEMPORARY TABLE IF EXISTS `tmp_', v_table_name, '_end`')); CALL sys.execute_prepared_stmt(CONCAT('CREATE TEMPORARY TABLE `tmp_', v_table_name, '_end` SELECT * FROM `sys`.`x$', v_table_name, '`')); IF (@sys.diagnostics.include_raw = 'ON') THEN SET @sys.diagnostics.table_name = CONCAT('x$', v_table_name); EXECUTE stmt_gen_query USING @sys.diagnostics.table_name; SELECT CONCAT(@sys.diagnostics.sql_select, IF(order_by IS NOT NULL, CONCAT('\n ORDER BY ', REPLACE(order_by, '%{TABLE}', CONCAT('tmp_', v_table_name, '_end'))), ''), IF(limit_rows IS NOT NULL, CONCAT('\n LIMIT ', limit_rows), '') ) INTO @sys.diagnostics.sql_select FROM tmp_sys_views_delta WHERE TABLE_NAME = v_table_name; SELECT CONCAT('Overall ', v_table_name) AS 'The following output is:'; CALL sys.execute_prepared_stmt(@sys.diagnostics.sql_select); END IF; END LOOP; CLOSE c_sysviews_w_delta; DEALLOCATE PREPARE stmt_gen_query; SELECT ' ====================== Delta Status ====================== ' AS ''; CALL sys.statement_performance_analyzer('delta', 'tmp_digests_start', 'with_runtimes_in_95th_percentile'); CALL sys.statement_performance_analyzer('cleanup', NULL, NULL); DROP TEMPORARY TABLE tmp_digests_start; IF (@sys.debug = 'ON') THEN SELECT 'The following query will be used to generate the query for each sys view delta' AS 'Debug'; SELECT @sys.diagnostics.sql_gen_query_delta AS 'Debug'; END IF; PREPARE stmt_gen_query_delta FROM @sys.diagnostics.sql_gen_query_delta; SET v_old_group_concat_max_len = @@session.group_concat_max_len; SET @@session.group_concat_max_len = 2048; SET v_done = FALSE; OPEN c_sysviews_w_delta; c_sysviews_w_delta_loop: LOOP FETCH c_sysviews_w_delta INTO v_table_name; IF v_done THEN LEAVE c_sysviews_w_delta_loop; END IF; SET @sys.diagnostics.table_name = v_table_name; EXECUTE stmt_gen_query_delta USING @sys.diagnostics.table_name; SELECT CONCAT(@sys.diagnostics.sql_select, IF(where_delta IS NOT NULL, CONCAT('\n WHERE ', where_delta), ''), IF(order_by_delta IS NOT NULL, CONCAT('\n ORDER BY ', order_by_delta), ''), IF(limit_rows IS NOT NULL, CONCAT('\n LIMIT ', limit_rows), '') ) INTO @sys.diagnostics.sql_select FROM tmp_sys_views_delta WHERE TABLE_NAME = v_table_name; SELECT CONCAT('Delta ', v_table_name) AS 'The following output is:'; CALL sys.execute_prepared_stmt(@sys.diagnostics.sql_select); CALL sys.execute_prepared_stmt(CONCAT('DROP TEMPORARY TABLE `tmp_', v_table_name, '_end`')); CALL sys.execute_prepared_stmt(CONCAT('DROP TEMPORARY TABLE `tmp_', v_table_name, '_start`')); END LOOP; CLOSE c_sysviews_w_delta; SET @@session.group_concat_max_len = v_old_group_concat_max_len; DEALLOCATE PREPARE stmt_gen_query_delta; DROP TEMPORARY TABLE tmp_sys_views_delta; END IF; IF (v_has_metrics) THEN SELECT 'SELECT * FROM sys.metrics' AS 'The following output is:'; ELSE SELECT 'sys.metrics equivalent' AS 'The following output is:'; END IF; CALL sys.execute_prepared_stmt( CONCAT(v_sql_status_summary_select, v_sql_status_summary_delta, ', Type, s1.Enabled', v_sql_status_summary_from, ' ORDER BY Type, Variable_name' ) ); SET v_count = 0; WHILE (v_count < v_output_count) DO SET v_count = v_count + 1; SET v_table_name = CONCAT('tmp_metrics_', v_count); CALL sys.execute_prepared_stmt(CONCAT('DROP TEMPORARY TABLE IF EXISTS ', v_table_name)); END WHILE; IF (in_auto_config <> 'current') THEN CALL sys.ps_setup_reload_saved(); SET sql_log_bin = @log_bin; END IF; SET @sys.diagnostics.output_time = NULL, @sys.diagnostics.sql = NULL, @sys.diagnostics.sql_gen_query_delta = NULL, @sys.diagnostics.sql_gen_query_template = NULL, @sys.diagnostics.sql_select = NULL, @sys.diagnostics.table_name = NULL; IF (v_this_thread_enabled = 'YES') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF; IF (@log_bin = 1) THEN SET sql_log_bin = @log_bin; END IF; END ;; delimiter ; -- ---------------------------- -- Procedure structure for execute_prepared_stmt -- ---------------------------- DROP PROCEDURE IF EXISTS `execute_prepared_stmt`; delimiter ;; CREATE PROCEDURE `sys`.`execute_prepared_stmt`(IN in_query longtext CHARACTER SET UTF8) READS SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Takes the query in the argument and executes it using a prepared statement. The prepared statement is deallocated,\n so the procedure is mainly useful for executing one off dynamically created queries.\n \n The sys_execute_prepared_stmt prepared statement name is used for the query and is required not to exist.\n \n \n Parameters\n \n in_query (longtext CHARACTER SET UTF8):\n The query to execute.\n \n \n Configuration Options\n \n sys.debug\n Whether to provide debugging output.\n Default is \'OFF\'. Set to \'ON\' to include.\n \n \n Example\n \n mysql> CALL sys.execute_prepared_stmt(\'SELECT * FROM sys.sys_config\');\n +------------------------+-------+---------------------+--------+\n | variable | value | set_time | set_by |\n +------------------------+-------+---------------------+--------+\n | statement_truncate_len | 64 | 2015-06-30 13:06:00 | NULL |\n +------------------------+-------+---------------------+--------+\n 1 row in set (0.00 sec)\n \n Query OK, 0 rows affected (0.00 sec)\n ' BEGIN IF (@sys.debug IS NULL) THEN SET @sys.debug = sys.sys_get_config('debug', 'OFF'); END IF; IF (in_query IS NULL OR LENGTH(in_query) < 4) THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = "The @sys.execute_prepared_stmt.sql must contain a query"; END IF; SET @sys.execute_prepared_stmt.sql = in_query; IF (@sys.debug = 'ON') THEN SELECT @sys.execute_prepared_stmt.sql AS 'Debug'; END IF; PREPARE sys_execute_prepared_stmt FROM @sys.execute_prepared_stmt.sql; EXECUTE sys_execute_prepared_stmt; DEALLOCATE PREPARE sys_execute_prepared_stmt; SET @sys.execute_prepared_stmt.sql = NULL; END ;; delimiter ; -- ---------------------------- -- Function structure for extract_schema_from_file_name -- ---------------------------- DROP FUNCTION IF EXISTS `extract_schema_from_file_name`; delimiter ;; CREATE FUNCTION `sys`.`extract_schema_from_file_name`(path VARCHAR(512)) RETURNS varchar(64) CHARSET utf8 NO SQL DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Takes a raw file path, and attempts to extract the schema name from it.\n \n Useful for when interacting with Performance Schema data \n concerning IO statistics, for example.\n \n Currently relies on the fact that a table data file will be within a \n specified database directory (will not work with partitions or tables\n that specify an individual DATA_DIRECTORY).\n \n Parameters\n \n path (VARCHAR(512)):\n The full file path to a data file to extract the schema name from.\n \n Returns\n \n VARCHAR(64)\n \n Example\n \n mysql> SELECT sys.extract_schema_from_file_name(\'/var/lib/mysql/employees/employee.ibd\');\n +----------------------------------------------------------------------------+\n | sys.extract_schema_from_file_name(\'/var/lib/mysql/employees/employee.ibd\') |\n +----------------------------------------------------------------------------+\n | employees |\n +----------------------------------------------------------------------------+\n 1 row in set (0.00 sec)\n ' BEGIN RETURN LEFT(SUBSTRING_INDEX(SUBSTRING_INDEX(REPLACE(path, '\\', '/'), '/', -2), '/', 1), 64); END ;; delimiter ; -- ---------------------------- -- Function structure for extract_table_from_file_name -- ---------------------------- DROP FUNCTION IF EXISTS `extract_table_from_file_name`; delimiter ;; CREATE FUNCTION `sys`.`extract_table_from_file_name`(path VARCHAR(512)) RETURNS varchar(64) CHARSET utf8 NO SQL DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Takes a raw file path, and extracts the table name from it.\n \n Useful for when interacting with Performance Schema data \n concerning IO statistics, for example.\n \n Parameters\n \n path (VARCHAR(512)):\n The full file path to a data file to extract the table name from.\n \n Returns\n \n VARCHAR(64)\n \n Example\n \n mysql> SELECT sys.extract_table_from_file_name(\'/var/lib/mysql/employees/employee.ibd\');\n +---------------------------------------------------------------------------+\n | sys.extract_table_from_file_name(\'/var/lib/mysql/employees/employee.ibd\') |\n +---------------------------------------------------------------------------+\n | employee |\n +---------------------------------------------------------------------------+\n 1 row in set (0.02 sec)\n ' BEGIN RETURN LEFT(SUBSTRING_INDEX(REPLACE(SUBSTRING_INDEX(REPLACE(path, '\\', '/'), '/', -1), '@0024', '$'), '.', 1), 64); END ;; delimiter ; -- ---------------------------- -- Function structure for format_bytes -- ---------------------------- DROP FUNCTION IF EXISTS `format_bytes`; delimiter ;; CREATE FUNCTION `sys`.`format_bytes`(bytes TEXT) RETURNS text CHARSET utf8 NO SQL DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Takes a raw bytes value, and converts it to a human readable format.\n \n Parameters\n \n bytes (TEXT):\n A raw bytes value.\n \n Returns\n \n TEXT\n \n Example\n \n mysql> SELECT sys.format_bytes(2348723492723746) AS size;\n +----------+\n | size |\n +----------+\n | 2.09 PiB |\n +----------+\n 1 row in set (0.00 sec)\n \n mysql> SELECT sys.format_bytes(2348723492723) AS size;\n +----------+\n | size |\n +----------+\n | 2.14 TiB |\n +----------+\n 1 row in set (0.00 sec)\n \n mysql> SELECT sys.format_bytes(23487234) AS size;\n +-----------+\n | size |\n +-----------+\n | 22.40 MiB |\n +-----------+\n 1 row in set (0.00 sec)\n ' BEGIN IF bytes IS NULL THEN RETURN NULL; ELSEIF bytes >= 1125899906842624 THEN RETURN CONCAT(ROUND(bytes / 1125899906842624, 2), ' PiB'); ELSEIF bytes >= 1099511627776 THEN RETURN CONCAT(ROUND(bytes / 1099511627776, 2), ' TiB'); ELSEIF bytes >= 1073741824 THEN RETURN CONCAT(ROUND(bytes / 1073741824, 2), ' GiB'); ELSEIF bytes >= 1048576 THEN RETURN CONCAT(ROUND(bytes / 1048576, 2), ' MiB'); ELSEIF bytes >= 1024 THEN RETURN CONCAT(ROUND(bytes / 1024, 2), ' KiB'); ELSE RETURN CONCAT(ROUND(bytes, 0), ' bytes'); END IF; END ;; delimiter ; -- ---------------------------- -- Function structure for format_path -- ---------------------------- DROP FUNCTION IF EXISTS `format_path`; delimiter ;; CREATE FUNCTION `sys`.`format_path`(in_path VARCHAR(512)) RETURNS varchar(512) CHARSET utf8 NO SQL DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Takes a raw path value, and strips out the datadir or tmpdir\n replacing with @@datadir and @@tmpdir respectively. \n \n Also normalizes the paths across operating systems, so backslashes\n on Windows are converted to forward slashes\n \n Parameters\n \n path (VARCHAR(512)):\n The raw file path value to format.\n \n Returns\n \n VARCHAR(512) CHARSET UTF8\n \n Example\n \n mysql> select @@datadir;\n +-----------------------------------------------+\n | @@datadir |\n +-----------------------------------------------+\n | /Users/mark/sandboxes/SmallTree/AMaster/data/ |\n +-----------------------------------------------+\n 1 row in set (0.06 sec)\n \n mysql> select format_path(\'/Users/mark/sandboxes/SmallTree/AMaster/data/mysql/proc.MYD\') AS path;\n +--------------------------+\n | path |\n +--------------------------+\n | @@datadir/mysql/proc.MYD |\n +--------------------------+\n 1 row in set (0.03 sec)\n ' BEGIN DECLARE v_path VARCHAR(512); DECLARE v_undo_dir VARCHAR(1024); DECLARE path_separator CHAR(1) DEFAULT '/'; IF @@global.version_compile_os LIKE 'win%' THEN SET path_separator = '\\'; END IF; IF in_path LIKE '/private/%' THEN SET v_path = REPLACE(in_path, '/private', ''); ELSE SET v_path = in_path; END IF; SET v_undo_dir = IFNULL((SELECT VARIABLE_VALUE FROM performance_schema.global_variables WHERE VARIABLE_NAME = 'innodb_undo_directory'), ''); IF v_path IS NULL THEN RETURN NULL; ELSEIF v_path LIKE CONCAT(@@global.datadir, IF(SUBSTRING(@@global.datadir, -1) = path_separator, '%', CONCAT(path_separator, '%'))) ESCAPE '|' THEN SET v_path = REPLACE(v_path, @@global.datadir, CONCAT('@@datadir', IF(SUBSTRING(@@global.datadir, -1) = path_separator, path_separator, ''))); ELSEIF v_path LIKE CONCAT(@@global.tmpdir, IF(SUBSTRING(@@global.tmpdir, -1) = path_separator, '%', CONCAT(path_separator, '%'))) ESCAPE '|' THEN SET v_path = REPLACE(v_path, @@global.tmpdir, CONCAT('@@tmpdir', IF(SUBSTRING(@@global.tmpdir, -1) = path_separator, path_separator, ''))); ELSEIF v_path LIKE CONCAT(@@global.slave_load_tmpdir, IF(SUBSTRING(@@global.slave_load_tmpdir, -1) = path_separator, '%', CONCAT(path_separator, '%'))) ESCAPE '|' THEN SET v_path = REPLACE(v_path, @@global.slave_load_tmpdir, CONCAT('@@slave_load_tmpdir', IF(SUBSTRING(@@global.slave_load_tmpdir, -1) = path_separator, path_separator, ''))); ELSEIF v_path LIKE CONCAT(@@global.innodb_data_home_dir, IF(SUBSTRING(@@global.innodb_data_home_dir, -1) = path_separator, '%', CONCAT(path_separator, '%'))) ESCAPE '|' THEN SET v_path = REPLACE(v_path, @@global.innodb_data_home_dir, CONCAT('@@innodb_data_home_dir', IF(SUBSTRING(@@global.innodb_data_home_dir, -1) = path_separator, path_separator, ''))); ELSEIF v_path LIKE CONCAT(@@global.innodb_log_group_home_dir, IF(SUBSTRING(@@global.innodb_log_group_home_dir, -1) = path_separator, '%', CONCAT(path_separator, '%'))) ESCAPE '|' THEN SET v_path = REPLACE(v_path, @@global.innodb_log_group_home_dir, CONCAT('@@innodb_log_group_home_dir', IF(SUBSTRING(@@global.innodb_log_group_home_dir, -1) = path_separator, path_separator, ''))); ELSEIF v_path LIKE CONCAT(v_undo_dir, IF(SUBSTRING(v_undo_dir, -1) = path_separator, '%', CONCAT(path_separator, '%'))) ESCAPE '|' THEN SET v_path = REPLACE(v_path, v_undo_dir, CONCAT('@@innodb_undo_directory', IF(SUBSTRING(v_undo_dir, -1) = path_separator, path_separator, ''))); ELSEIF v_path LIKE CONCAT(@@global.basedir, IF(SUBSTRING(@@global.basedir, -1) = path_separator, '%', CONCAT(path_separator, '%'))) ESCAPE '|' THEN SET v_path = REPLACE(v_path, @@global.basedir, CONCAT('@@basedir', IF(SUBSTRING(@@global.basedir, -1) = path_separator, path_separator, ''))); END IF; RETURN v_path; END ;; delimiter ; -- ---------------------------- -- Function structure for format_statement -- ---------------------------- DROP FUNCTION IF EXISTS `format_statement`; delimiter ;; CREATE FUNCTION `sys`.`format_statement`(statement LONGTEXT) RETURNS longtext CHARSET utf8 NO SQL DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Formats a normalized statement, truncating it if it is > 64 characters long by default.\n \n To configure the length to truncate the statement to by default, update the `statement_truncate_len`\n variable with `sys_config` table to a different value. Alternatively, to change it just for just \n your particular session, use `SET @sys.statement_truncate_len := <some new value>`.\n \n Useful for printing statement related data from Performance Schema from \n the command line.\n \n Parameters\n \n statement (LONGTEXT): \n The statement to format.\n \n Returns\n \n LONGTEXT\n \n Example\n \n mysql> SELECT sys.format_statement(digest_text)\n -> FROM performance_schema.events_statements_summary_by_digest\n -> ORDER by sum_timer_wait DESC limit 5;\n +-------------------------------------------------------------------+\n | sys.format_statement(digest_text) |\n +-------------------------------------------------------------------+\n | CREATE SQL SECURITY INVOKER VI ... KE ? AND `variable_value` > ? |\n | CREATE SQL SECURITY INVOKER VI ... ait` IS NOT NULL , `esc` . ... |\n | CREATE SQL SECURITY INVOKER VI ... ait` IS NOT NULL , `sys` . ... |\n | CREATE SQL SECURITY INVOKER VI ... , `compressed_size` ) ) DESC |\n | CREATE SQL SECURITY INVOKER VI ... LIKE ? ORDER BY `timer_start` |\n +-------------------------------------------------------------------+\n 5 rows in set (0.00 sec)\n ' BEGIN IF @sys.statement_truncate_len IS NULL THEN SET @sys.statement_truncate_len = sys_get_config('statement_truncate_len', 64); END IF; IF CHAR_LENGTH(statement) > @sys.statement_truncate_len THEN RETURN REPLACE(CONCAT(LEFT(statement, (@sys.statement_truncate_len/2)-2), ' ... ', RIGHT(statement, (@sys.statement_truncate_len/2)-2)), '\n', ' '); ELSE RETURN REPLACE(statement, '\n', ' '); END IF; END ;; delimiter ; -- ---------------------------- -- Function structure for format_time -- ---------------------------- DROP FUNCTION IF EXISTS `format_time`; delimiter ;; CREATE FUNCTION `sys`.`format_time`(picoseconds TEXT) RETURNS text CHARSET utf8 NO SQL DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Takes a raw picoseconds value, and converts it to a human readable form.\n \n Picoseconds are the precision that all latency values are printed in \n within Performance Schema, however are not user friendly when wanting\n to scan output from the command line.\n \n Parameters\n \n picoseconds (TEXT): \n The raw picoseconds value to convert.\n \n Returns\n \n TEXT\n \n Example\n \n mysql> select format_time(342342342342345);\n +------------------------------+\n | format_time(342342342342345) |\n +------------------------------+\n | 00:05:42 |\n +------------------------------+\n 1 row in set (0.00 sec)\n \n mysql> select format_time(342342342);\n +------------------------+\n | format_time(342342342) |\n +------------------------+\n | 342.34 us |\n +------------------------+\n 1 row in set (0.00 sec)\n \n mysql> select format_time(34234);\n +--------------------+\n | format_time(34234) |\n +--------------------+\n | 34.23 ns |\n +--------------------+\n 1 row in set (0.00 sec)\n ' BEGIN IF picoseconds IS NULL THEN RETURN NULL; ELSEIF picoseconds >= 604800000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 604800000000000000, 2), ' w'); ELSEIF picoseconds >= 86400000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 86400000000000000, 2), ' d'); ELSEIF picoseconds >= 3600000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 3600000000000000, 2), ' h'); ELSEIF picoseconds >= 60000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 60000000000000, 2), ' m'); ELSEIF picoseconds >= 1000000000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000000000, 2), ' s'); ELSEIF picoseconds >= 1000000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000000, 2), ' ms'); ELSEIF picoseconds >= 1000000 THEN RETURN CONCAT(ROUND(picoseconds / 1000000, 2), ' us'); ELSEIF picoseconds >= 1000 THEN RETURN CONCAT(ROUND(picoseconds / 1000, 2), ' ns'); ELSE RETURN CONCAT(picoseconds, ' ps'); END IF; END ;; delimiter ; -- ---------------------------- -- Function structure for list_add -- ---------------------------- DROP FUNCTION IF EXISTS `list_add`; delimiter ;; CREATE FUNCTION `sys`.`list_add`(in_list TEXT, in_add_value TEXT) RETURNS text CHARSET utf8 DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Takes a list, and a value to add to the list, and returns the resulting list.\n \n Useful for altering certain session variables, like sql_mode or optimizer_switch for instance.\n \n Parameters\n \n in_list (TEXT):\n The comma separated list to add a value to\n \n in_add_value (TEXT):\n The value to add to the input list\n \n Returns\n \n TEXT\n \n Example\n \n mysql> select @@sql_mode;\n +-----------------------------------------------------------------------------------+\n | @@sql_mode |\n +-----------------------------------------------------------------------------------+\n | ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |\n +-----------------------------------------------------------------------------------+\n 1 row in set (0.00 sec)\n \n mysql> set sql_mode = sys.list_add(@@sql_mode, \'ANSI_QUOTES\');\n Query OK, 0 rows affected (0.06 sec)\n \n mysql> select @@sql_mode;\n +-----------------------------------------------------------------------------------------------+\n | @@sql_mode |\n +-----------------------------------------------------------------------------------------------+\n | ANSI_QUOTES,ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |\n +-----------------------------------------------------------------------------------------------+\n 1 row in set (0.00 sec)\n \n ' BEGIN IF (in_add_value IS NULL) THEN SIGNAL SQLSTATE '02200' SET MESSAGE_TEXT = 'Function sys.list_add: in_add_value input variable should not be NULL', MYSQL_ERRNO = 1138; END IF; IF (in_list IS NULL OR LENGTH(in_list) = 0) THEN RETURN in_add_value; END IF; RETURN (SELECT CONCAT(TRIM(BOTH ',' FROM TRIM(in_list)), ',', in_add_value)); END ;; delimiter ; -- ---------------------------- -- Function structure for list_drop -- ---------------------------- DROP FUNCTION IF EXISTS `list_drop`; delimiter ;; CREATE FUNCTION `sys`.`list_drop`(in_list TEXT, in_drop_value TEXT) RETURNS text CHARSET utf8 DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Takes a list, and a value to attempt to remove from the list, and returns the resulting list.\n \n Useful for altering certain session variables, like sql_mode or optimizer_switch for instance.\n \n Parameters\n \n in_list (TEXT):\n The comma separated list to drop a value from\n \n in_drop_value (TEXT):\n The value to drop from the input list\n \n Returns\n \n TEXT\n \n Example\n \n mysql> select @@sql_mode;\n +-----------------------------------------------------------------------------------------------+\n | @@sql_mode |\n +-----------------------------------------------------------------------------------------------+\n | ANSI_QUOTES,ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |\n +-----------------------------------------------------------------------------------------------+\n 1 row in set (0.00 sec)\n \n mysql> set sql_mode = sys.list_drop(@@sql_mode, \'ONLY_FULL_GROUP_BY\');\n Query OK, 0 rows affected (0.03 sec)\n \n mysql> select @@sql_mode;\n +----------------------------------------------------------------------------+\n | @@sql_mode |\n +----------------------------------------------------------------------------+\n | ANSI_QUOTES,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |\n +----------------------------------------------------------------------------+\n 1 row in set (0.00 sec)\n \n ' BEGIN IF (in_drop_value IS NULL) THEN SIGNAL SQLSTATE '02200' SET MESSAGE_TEXT = 'Function sys.list_drop: in_drop_value input variable should not be NULL', MYSQL_ERRNO = 1138; END IF; IF (in_list IS NULL OR LENGTH(in_list) = 0) THEN RETURN in_list; END IF; RETURN (SELECT TRIM(BOTH ',' FROM REPLACE(REPLACE(CONCAT(',', in_list), CONCAT(',', in_drop_value), ''), CONCAT(', ', in_drop_value), ''))); END ;; delimiter ; -- ---------------------------- -- Function structure for ps_is_account_enabled -- ---------------------------- DROP FUNCTION IF EXISTS `ps_is_account_enabled`; delimiter ;; CREATE FUNCTION `sys`.`ps_is_account_enabled`(in_host VARCHAR(60), in_user VARCHAR(32)) RETURNS enum('YES','NO') CHARSET utf8 READS SQL DATA DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Determines whether instrumentation of an account is enabled \n within Performance Schema.\n \n Parameters\n \n in_host VARCHAR(60): \n The hostname of the account to check.\n in_user VARCHAR(32):\n The username of the account to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\', \'PARTIAL\')\n \n Example\n \n mysql> SELECT sys.ps_is_account_enabled(\'localhost\', \'root\');\n +------------------------------------------------+\n | sys.ps_is_account_enabled(\'localhost\', \'root\') |\n +------------------------------------------------+\n | YES |\n +------------------------------------------------+\n 1 row in set (0.01 sec)\n ' BEGIN RETURN IF(EXISTS(SELECT 1 FROM performance_schema.setup_actors WHERE (`HOST` = '%' OR in_host LIKE `HOST`) AND (`USER` = '%' OR `USER` = in_user) AND (`ENABLED` = 'YES') ), 'YES', 'NO' ); END ;; delimiter ; -- ---------------------------- -- Function structure for ps_is_consumer_enabled -- ---------------------------- DROP FUNCTION IF EXISTS `ps_is_consumer_enabled`; delimiter ;; CREATE FUNCTION `sys`.`ps_is_consumer_enabled`(in_consumer varchar(64)) RETURNS enum('YES','NO') CHARSET utf8 READS SQL DATA DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Determines whether a consumer is enabled (taking the consumer hierarchy into consideration)\n within the Performance Schema.\n \n Parameters\n \n in_consumer VARCHAR(64): \n The name of the consumer to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\')\n \n Example\n \n mysql> SELECT sys.ps_is_consumer_enabled(\'events_stages_history\');\n +-----------------------------------------------------+\n | sys.ps_is_consumer_enabled(\'events_stages_history\') |\n +-----------------------------------------------------+\n | NO |\n +-----------------------------------------------------+\n 1 row in set (0.00 sec)\n ' BEGIN RETURN ( SELECT (CASE WHEN c.NAME = 'global_instrumentation' THEN c.ENABLED WHEN c.NAME = 'thread_instrumentation' THEN IF(cg.ENABLED = 'YES' AND c.ENABLED = 'YES', 'YES', 'NO') WHEN c.NAME LIKE '%\_digest' THEN IF(cg.ENABLED = 'YES' AND c.ENABLED = 'YES', 'YES', 'NO') WHEN c.NAME LIKE '%\_current' THEN IF(cg.ENABLED = 'YES' AND ct.ENABLED = 'YES' AND c.ENABLED = 'YES', 'YES', 'NO') ELSE IF(cg.ENABLED = 'YES' AND ct.ENABLED = 'YES' AND c.ENABLED = 'YES' AND ( SELECT cc.ENABLED FROM performance_schema.setup_consumers cc WHERE NAME = CONCAT(SUBSTRING_INDEX(c.NAME, '_', 2), '_current') ) = 'YES', 'YES', 'NO') END) AS IsEnabled FROM performance_schema.setup_consumers c INNER JOIN performance_schema.setup_consumers cg INNER JOIN performance_schema.setup_consumers ct WHERE cg.NAME = 'global_instrumentation' AND ct.NAME = 'thread_instrumentation' AND c.NAME = in_consumer ); END ;; delimiter ; -- ---------------------------- -- Function structure for ps_is_instrument_default_enabled -- ---------------------------- DROP FUNCTION IF EXISTS `ps_is_instrument_default_enabled`; delimiter ;; CREATE FUNCTION `sys`.`ps_is_instrument_default_enabled`(in_instrument VARCHAR(128)) RETURNS enum('YES','NO') CHARSET utf8 READS SQL DATA DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Returns whether an instrument is enabled by default in this version of MySQL.\n \n Parameters\n \n in_instrument VARCHAR(128): \n The instrument to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\')\n \n Example\n \n mysql> SELECT sys.ps_is_instrument_default_enabled(\'statement/sql/select\');\n +--------------------------------------------------------------+\n | sys.ps_is_instrument_default_enabled(\'statement/sql/select\') |\n +--------------------------------------------------------------+\n | YES |\n +--------------------------------------------------------------+\n 1 row in set (0.00 sec)\n ' BEGIN DECLARE v_enabled ENUM('YES', 'NO'); SET v_enabled = IF(in_instrument LIKE 'wait/io/file/%' OR in_instrument LIKE 'wait/io/table/%' OR in_instrument LIKE 'statement/%' OR in_instrument LIKE 'memory/performance_schema/%' OR in_instrument IN ('wait/lock/table/sql/handler', 'idle') OR in_instrument LIKE 'stage/innodb/%' OR in_instrument = 'stage/sql/copy to tmp table' , 'YES', 'NO' ); RETURN v_enabled; END ;; delimiter ; -- ---------------------------- -- Function structure for ps_is_instrument_default_timed -- ---------------------------- DROP FUNCTION IF EXISTS `ps_is_instrument_default_timed`; delimiter ;; CREATE FUNCTION `sys`.`ps_is_instrument_default_timed`(in_instrument VARCHAR(128)) RETURNS enum('YES','NO') CHARSET utf8 READS SQL DATA DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Returns whether an instrument is timed by default in this version of MySQL.\n \n Parameters\n \n in_instrument VARCHAR(128): \n The instrument to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\')\n \n Example\n \n mysql> SELECT sys.ps_is_instrument_default_timed(\'statement/sql/select\');\n +------------------------------------------------------------+\n | sys.ps_is_instrument_default_timed(\'statement/sql/select\') |\n +------------------------------------------------------------+\n | YES |\n +------------------------------------------------------------+\n 1 row in set (0.00 sec)\n ' BEGIN DECLARE v_timed ENUM('YES', 'NO'); SET v_timed = IF(in_instrument LIKE 'wait/io/file/%' OR in_instrument LIKE 'wait/io/table/%' OR in_instrument LIKE 'statement/%' OR in_instrument IN ('wait/lock/table/sql/handler', 'idle') OR in_instrument LIKE 'stage/innodb/%' OR in_instrument = 'stage/sql/copy to tmp table' , 'YES', 'NO' ); RETURN v_timed; END ;; delimiter ; -- ---------------------------- -- Function structure for ps_is_thread_instrumented -- ---------------------------- DROP FUNCTION IF EXISTS `ps_is_thread_instrumented`; delimiter ;; CREATE FUNCTION `sys`.`ps_is_thread_instrumented`(in_connection_id BIGINT UNSIGNED) RETURNS enum('YES','NO','UNKNOWN') CHARSET utf8 READS SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Checks whether the provided connection id is instrumented within Performance Schema.\n \n Parameters\n \n in_connection_id (BIGINT UNSIGNED):\n The id of the connection to check.\n \n Returns\n \n ENUM(\'YES\', \'NO\', \'UNKNOWN\')\n \n Example\n \n mysql> SELECT sys.ps_is_thread_instrumented(CONNECTION_ID());\n +------------------------------------------------+\n | sys.ps_is_thread_instrumented(CONNECTION_ID()) |\n +------------------------------------------------+\n | YES |\n +------------------------------------------------+\n ' BEGIN DECLARE v_enabled ENUM('YES', 'NO', 'UNKNOWN'); IF (in_connection_id IS NULL) THEN RETURN NULL; END IF; SELECT INSTRUMENTED INTO v_enabled FROM performance_schema.threads WHERE PROCESSLIST_ID = in_connection_id; IF (v_enabled IS NULL) THEN RETURN 'UNKNOWN'; ELSE RETURN v_enabled; END IF; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_disable_background_threads -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_disable_background_threads`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_disable_background_threads`() MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Disable all background thread instrumentation within Performance Schema.\n \n Parameters\n \n None.\n \n Example\n \n mysql> CALL sys.ps_setup_disable_background_threads();\n +--------------------------------+\n | summary |\n +--------------------------------+\n | Disabled 18 background threads |\n +--------------------------------+\n 1 row in set (0.00 sec)\n ' BEGIN UPDATE performance_schema.threads SET instrumented = 'NO' WHERE type = 'BACKGROUND'; SELECT CONCAT('Disabled ', @rows := ROW_COUNT(), ' background thread', IF(@rows != 1, 's', '')) AS summary; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_disable_consumer -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_disable_consumer`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_disable_consumer`(IN consumer VARCHAR(128)) MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Disables consumers within Performance Schema \n matching the input pattern.\n \n Parameters\n \n consumer (VARCHAR(128)):\n A LIKE pattern match (using \"%consumer%\") of consumers to disable\n \n Example\n \n To disable all consumers:\n \n mysql> CALL sys.ps_setup_disable_consumer(\'\');\n +--------------------------+\n | summary |\n +--------------------------+\n | Disabled 15 consumers |\n +--------------------------+\n 1 row in set (0.02 sec)\n \n To disable just the event_stage consumers:\n \n mysql> CALL sys.ps_setup_disable_comsumers(\'stage\');\n +------------------------+\n | summary |\n +------------------------+\n | Disabled 3 consumers |\n +------------------------+\n 1 row in set (0.00 sec)\n ' BEGIN UPDATE performance_schema.setup_consumers SET enabled = 'NO' WHERE name LIKE CONCAT('%', consumer, '%'); SELECT CONCAT('Disabled ', @rows := ROW_COUNT(), ' consumer', IF(@rows != 1, 's', '')) AS summary; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_disable_instrument -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_disable_instrument`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_disable_instrument`(IN in_pattern VARCHAR(128)) MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Disables instruments within Performance Schema \n matching the input pattern.\n \n Parameters\n \n in_pattern (VARCHAR(128)):\n A LIKE pattern match (using \"%in_pattern%\") of events to disable\n \n Example\n \n To disable all mutex instruments:\n \n mysql> CALL sys.ps_setup_disable_instrument(\'wait/synch/mutex\');\n +--------------------------+\n | summary |\n +--------------------------+\n | Disabled 155 instruments |\n +--------------------------+\n 1 row in set (0.02 sec)\n \n To disable just a specific TCP/IP based network IO instrument:\n \n mysql> CALL sys.ps_setup_disable_instrument(\'wait/io/socket/sql/server_tcpip_socket\');\n +------------------------+\n | summary |\n +------------------------+\n | Disabled 1 instruments |\n +------------------------+\n 1 row in set (0.00 sec)\n \n To disable all instruments:\n \n mysql> CALL sys.ps_setup_disable_instrument(\'\');\n +--------------------------+\n | summary |\n +--------------------------+\n | Disabled 547 instruments |\n +--------------------------+\n 1 row in set (0.01 sec)\n ' BEGIN UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'NO' WHERE name LIKE CONCAT('%', in_pattern, '%'); SELECT CONCAT('Disabled ', @rows := ROW_COUNT(), ' instrument', IF(@rows != 1, 's', '')) AS summary; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_disable_thread -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_disable_thread`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_disable_thread`(IN in_connection_id BIGINT) MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Disable the given connection/thread in Performance Schema.\n \n Parameters\n \n in_connection_id (BIGINT):\n The connection ID (PROCESSLIST_ID from performance_schema.threads\n or the ID shown within SHOW PROCESSLIST)\n \n Example\n \n mysql> CALL sys.ps_setup_disable_thread(3);\n +-------------------+\n | summary |\n +-------------------+\n | Disabled 1 thread |\n +-------------------+\n 1 row in set (0.01 sec)\n \n To disable the current connection:\n \n mysql> CALL sys.ps_setup_disable_thread(CONNECTION_ID());\n +-------------------+\n | summary |\n +-------------------+\n | Disabled 1 thread |\n +-------------------+\n 1 row in set (0.00 sec)\n ' BEGIN UPDATE performance_schema.threads SET instrumented = 'NO' WHERE processlist_id = in_connection_id; SELECT CONCAT('Disabled ', @rows := ROW_COUNT(), ' thread', IF(@rows != 1, 's', '')) AS summary; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_enable_background_threads -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_enable_background_threads`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_enable_background_threads`() MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Enable all background thread instrumentation within Performance Schema.\n \n Parameters\n \n None.\n \n Example\n \n mysql> CALL sys.ps_setup_enable_background_threads();\n +-------------------------------+\n | summary |\n +-------------------------------+\n | Enabled 18 background threads |\n +-------------------------------+\n 1 row in set (0.00 sec)\n ' BEGIN UPDATE performance_schema.threads SET instrumented = 'YES' WHERE type = 'BACKGROUND'; SELECT CONCAT('Enabled ', @rows := ROW_COUNT(), ' background thread', IF(@rows != 1, 's', '')) AS summary; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_enable_consumer -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_enable_consumer`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_enable_consumer`(IN consumer VARCHAR(128)) MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Enables consumers within Performance Schema \n matching the input pattern.\n \n Parameters\n \n consumer (VARCHAR(128)):\n A LIKE pattern match (using \"%consumer%\") of consumers to enable\n \n Example\n \n To enable all consumers:\n \n mysql> CALL sys.ps_setup_enable_consumer(\'\');\n +-------------------------+\n | summary |\n +-------------------------+\n | Enabled 10 consumers |\n +-------------------------+\n 1 row in set (0.02 sec)\n \n Query OK, 0 rows affected (0.02 sec)\n \n To enable just \"waits\" consumers:\n \n mysql> CALL sys.ps_setup_enable_consumer(\'waits\');\n +-----------------------+\n | summary |\n +-----------------------+\n | Enabled 3 consumers |\n +-----------------------+\n 1 row in set (0.00 sec)\n \n Query OK, 0 rows affected (0.00 sec)\n ' BEGIN UPDATE performance_schema.setup_consumers SET enabled = 'YES' WHERE name LIKE CONCAT('%', consumer, '%'); SELECT CONCAT('Enabled ', @rows := ROW_COUNT(), ' consumer', IF(@rows != 1, 's', '')) AS summary; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_enable_instrument -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_enable_instrument`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_enable_instrument`(IN in_pattern VARCHAR(128)) MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Enables instruments within Performance Schema \n matching the input pattern.\n \n Parameters\n \n in_pattern (VARCHAR(128)):\n A LIKE pattern match (using \"%in_pattern%\") of events to enable\n \n Example\n \n To enable all mutex instruments:\n \n mysql> CALL sys.ps_setup_enable_instrument(\'wait/synch/mutex\');\n +-------------------------+\n | summary |\n +-------------------------+\n | Enabled 155 instruments |\n +-------------------------+\n 1 row in set (0.02 sec)\n \n Query OK, 0 rows affected (0.02 sec)\n \n To enable just a specific TCP/IP based network IO instrument:\n \n mysql> CALL sys.ps_setup_enable_instrument(\'wait/io/socket/sql/server_tcpip_socket\');\n +-----------------------+\n | summary |\n +-----------------------+\n | Enabled 1 instruments |\n +-----------------------+\n 1 row in set (0.00 sec)\n \n Query OK, 0 rows affected (0.00 sec)\n \n To enable all instruments:\n \n mysql> CALL sys.ps_setup_enable_instrument(\'\');\n +-------------------------+\n | summary |\n +-------------------------+\n | Enabled 547 instruments |\n +-------------------------+\n 1 row in set (0.01 sec)\n \n Query OK, 0 rows affected (0.01 sec)\n ' BEGIN UPDATE performance_schema.setup_instruments SET enabled = 'YES', timed = 'YES' WHERE name LIKE CONCAT('%', in_pattern, '%'); SELECT CONCAT('Enabled ', @rows := ROW_COUNT(), ' instrument', IF(@rows != 1, 's', '')) AS summary; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_enable_thread -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_enable_thread`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_enable_thread`(IN in_connection_id BIGINT) MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Enable the given connection/thread in Performance Schema.\n \n Parameters\n \n in_connection_id (BIGINT):\n The connection ID (PROCESSLIST_ID from performance_schema.threads\n or the ID shown within SHOW PROCESSLIST)\n \n Example\n \n mysql> CALL sys.ps_setup_enable_thread(3);\n +------------------+\n | summary |\n +------------------+\n | Enabled 1 thread |\n +------------------+\n 1 row in set (0.01 sec)\n \n To enable the current connection:\n \n mysql> CALL sys.ps_setup_enable_thread(CONNECTION_ID());\n +------------------+\n | summary |\n +------------------+\n | Enabled 1 thread |\n +------------------+\n 1 row in set (0.00 sec)\n ' BEGIN UPDATE performance_schema.threads SET instrumented = 'YES' WHERE processlist_id = in_connection_id; SELECT CONCAT('Enabled ', @rows := ROW_COUNT(), ' thread', IF(@rows != 1, 's', '')) AS summary; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_reload_saved -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_reload_saved`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_reload_saved`() MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Reloads a saved Performance Schema configuration,\n so that you can alter the setup for debugging purposes, \n but restore it to a previous state.\n \n Use the companion procedure - ps_setup_save(), to \n save a configuration.\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Parameters\n \n None.\n \n Example\n \n mysql> CALL sys.ps_setup_save();\n Query OK, 0 rows affected (0.08 sec)\n \n mysql> UPDATE performance_schema.setup_instruments SET enabled = \'YES\', timed = \'YES\';\n Query OK, 547 rows affected (0.40 sec)\n Rows matched: 784 Changed: 547 Warnings: 0\n \n /* Run some tests that need more detailed instrumentation here */\n \n mysql> CALL sys.ps_setup_reload_saved();\n Query OK, 0 rows affected (0.32 sec)\n ' BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_lock_result INT; DECLARE v_lock_used_by BIGINT; DECLARE v_signal_message TEXT; DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN SIGNAL SQLSTATE VALUE '90001' SET MESSAGE_TEXT = 'An error occurred, was sys.ps_setup_save() run before this procedure?'; END; SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0; SELECT IS_USED_LOCK('sys.ps_setup_save') INTO v_lock_used_by; IF (v_lock_used_by != CONNECTION_ID()) THEN SET v_signal_message = CONCAT('The sys.ps_setup_save lock is currently owned by ', v_lock_used_by); SIGNAL SQLSTATE VALUE '90002' SET MESSAGE_TEXT = v_signal_message; END IF; DELETE FROM performance_schema.setup_actors; INSERT INTO performance_schema.setup_actors SELECT * FROM tmp_setup_actors; BEGIN DECLARE v_name varchar(64); DECLARE v_enabled enum('YES', 'NO'); DECLARE c_consumers CURSOR FOR SELECT NAME, ENABLED FROM tmp_setup_consumers; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; SET v_done = FALSE; OPEN c_consumers; c_consumers_loop: LOOP FETCH c_consumers INTO v_name, v_enabled; IF v_done THEN LEAVE c_consumers_loop; END IF; UPDATE performance_schema.setup_consumers SET ENABLED = v_enabled WHERE NAME = v_name; END LOOP; CLOSE c_consumers; END; UPDATE performance_schema.setup_instruments INNER JOIN tmp_setup_instruments USING (NAME) SET performance_schema.setup_instruments.ENABLED = tmp_setup_instruments.ENABLED, performance_schema.setup_instruments.TIMED = tmp_setup_instruments.TIMED; BEGIN DECLARE v_thread_id bigint unsigned; DECLARE v_instrumented enum('YES', 'NO'); DECLARE c_threads CURSOR FOR SELECT THREAD_ID, INSTRUMENTED FROM tmp_threads; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; SET v_done = FALSE; OPEN c_threads; c_threads_loop: LOOP FETCH c_threads INTO v_thread_id, v_instrumented; IF v_done THEN LEAVE c_threads_loop; END IF; UPDATE performance_schema.threads SET INSTRUMENTED = v_instrumented WHERE THREAD_ID = v_thread_id; END LOOP; CLOSE c_threads; END; UPDATE performance_schema.threads SET INSTRUMENTED = IF(PROCESSLIST_USER IS NOT NULL, sys.ps_is_account_enabled(PROCESSLIST_HOST, PROCESSLIST_USER), 'YES') WHERE THREAD_ID NOT IN (SELECT THREAD_ID FROM tmp_threads); DROP TEMPORARY TABLE tmp_setup_actors; DROP TEMPORARY TABLE tmp_setup_consumers; DROP TEMPORARY TABLE tmp_setup_instruments; DROP TEMPORARY TABLE tmp_threads; SELECT RELEASE_LOCK('sys.ps_setup_save') INTO v_lock_result; SET sql_log_bin = @log_bin; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_reset_to_default -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_reset_to_default`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_reset_to_default`(IN in_verbose BOOLEAN) MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Resets the Performance Schema setup to the default settings.\n \n Parameters\n \n in_verbose (BOOLEAN):\n Whether to print each setup stage (including the SQL) whilst running.\n \n Example\n \n mysql> CALL sys.ps_setup_reset_to_default(true)\\G\n *************************** 1. row ***************************\n status: Resetting: setup_actors\n DELETE\n FROM performance_schema.setup_actors\n WHERE NOT (HOST = \'%\' AND USER = \'%\' AND ROLE = \'%\')\n 1 row in set (0.00 sec)\n \n *************************** 1. row ***************************\n status: Resetting: setup_actors\n INSERT IGNORE INTO performance_schema.setup_actors\n VALUES (\'%\', \'%\', \'%\')\n 1 row in set (0.00 sec)\n ...\n \n mysql> CALL sys.ps_setup_reset_to_default(false)\\G\n Query OK, 0 rows affected (0.00 sec)\n ' BEGIN SET @query = 'DELETE FROM performance_schema.setup_actors WHERE NOT (HOST = ''%'' AND USER = ''%'' AND ROLE = ''%'')'; IF (in_verbose) THEN SELECT CONCAT('Resetting: setup_actors\n', REPLACE(@query, ' ', '')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = 'INSERT IGNORE INTO performance_schema.setup_actors VALUES (''%'', ''%'', ''%'', ''YES'', ''YES'')'; IF (in_verbose) THEN SELECT CONCAT('Resetting: setup_actors\n', REPLACE(@query, ' ', '')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = 'UPDATE performance_schema.setup_instruments SET ENABLED = sys.ps_is_instrument_default_enabled(NAME), TIMED = sys.ps_is_instrument_default_timed(NAME)'; IF (in_verbose) THEN SELECT CONCAT('Resetting: setup_instruments\n', REPLACE(@query, ' ', '')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = 'UPDATE performance_schema.setup_consumers SET ENABLED = IF(NAME IN (''events_statements_current'', ''events_transactions_current'', ''global_instrumentation'', ''thread_instrumentation'', ''statements_digest''), ''YES'', ''NO'')'; IF (in_verbose) THEN SELECT CONCAT('Resetting: setup_consumers\n', REPLACE(@query, ' ', '')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = 'DELETE FROM performance_schema.setup_objects WHERE NOT (OBJECT_TYPE IN (''EVENT'', ''FUNCTION'', ''PROCEDURE'', ''TABLE'', ''TRIGGER'') AND OBJECT_NAME = ''%'' AND (OBJECT_SCHEMA = ''mysql'' AND ENABLED = ''NO'' AND TIMED = ''NO'' ) OR (OBJECT_SCHEMA = ''performance_schema'' AND ENABLED = ''NO'' AND TIMED = ''NO'' ) OR (OBJECT_SCHEMA = ''information_schema'' AND ENABLED = ''NO'' AND TIMED = ''NO'' ) OR (OBJECT_SCHEMA = ''%'' AND ENABLED = ''YES'' AND TIMED = ''YES''))'; IF (in_verbose) THEN SELECT CONCAT('Resetting: setup_objects\n', REPLACE(@query, ' ', '')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = 'INSERT IGNORE INTO performance_schema.setup_objects VALUES (''EVENT'' , ''mysql'' , ''%'', ''NO'' , ''NO'' ), (''EVENT'' , ''performance_schema'', ''%'', ''NO'' , ''NO'' ), (''EVENT'' , ''information_schema'', ''%'', ''NO'' , ''NO'' ), (''EVENT'' , ''%'' , ''%'', ''YES'', ''YES''), (''FUNCTION'' , ''mysql'' , ''%'', ''NO'' , ''NO'' ), (''FUNCTION'' , ''performance_schema'', ''%'', ''NO'' , ''NO'' ), (''FUNCTION'' , ''information_schema'', ''%'', ''NO'' , ''NO'' ), (''FUNCTION'' , ''%'' , ''%'', ''YES'', ''YES''), (''PROCEDURE'', ''mysql'' , ''%'', ''NO'' , ''NO'' ), (''PROCEDURE'', ''performance_schema'', ''%'', ''NO'' , ''NO'' ), (''PROCEDURE'', ''information_schema'', ''%'', ''NO'' , ''NO'' ), (''PROCEDURE'', ''%'' , ''%'', ''YES'', ''YES''), (''TABLE'' , ''mysql'' , ''%'', ''NO'' , ''NO'' ), (''TABLE'' , ''performance_schema'', ''%'', ''NO'' , ''NO'' ), (''TABLE'' , ''information_schema'', ''%'', ''NO'' , ''NO'' ), (''TABLE'' , ''%'' , ''%'', ''YES'', ''YES''), (''TRIGGER'' , ''mysql'' , ''%'', ''NO'' , ''NO'' ), (''TRIGGER'' , ''performance_schema'', ''%'', ''NO'' , ''NO'' ), (''TRIGGER'' , ''information_schema'', ''%'', ''NO'' , ''NO'' ), (''TRIGGER'' , ''%'' , ''%'', ''YES'', ''YES'')'; IF (in_verbose) THEN SELECT CONCAT('Resetting: setup_objects\n', REPLACE(@query, ' ', '')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; SET @query = 'UPDATE performance_schema.threads SET INSTRUMENTED = ''YES'''; IF (in_verbose) THEN SELECT CONCAT('Resetting: threads\n', REPLACE(@query, ' ', '')) AS status; END IF; PREPARE reset_stmt FROM @query; EXECUTE reset_stmt; DEALLOCATE PREPARE reset_stmt; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_save -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_save`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_save`(IN in_timeout INT) MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Saves the current configuration of Performance Schema, \n so that you can alter the setup for debugging purposes, \n but restore it to a previous state.\n \n Use the companion procedure - ps_setup_reload_saved(), to \n restore the saved config.\n \n The named lock \"sys.ps_setup_save\" is taken before the\n current configuration is saved. If the attempt to get the named\n lock times out, an error occurs.\n \n The lock is released after the settings have been restored by\n calling ps_setup_reload_saved().\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Parameters\n \n in_timeout INT\n The timeout in seconds used when trying to obtain the lock.\n A negative timeout means infinite timeout.\n \n Example\n \n mysql> CALL sys.ps_setup_save(-1);\n Query OK, 0 rows affected (0.08 sec)\n \n mysql> UPDATE performance_schema.setup_instruments \n -> SET enabled = \'YES\', timed = \'YES\';\n Query OK, 547 rows affected (0.40 sec)\n Rows matched: 784 Changed: 547 Warnings: 0\n \n /* Run some tests that need more detailed instrumentation here */\n \n mysql> CALL sys.ps_setup_reload_saved();\n Query OK, 0 rows affected (0.32 sec)\n ' BEGIN DECLARE v_lock_result INT; SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0; SELECT GET_LOCK('sys.ps_setup_save', in_timeout) INTO v_lock_result; IF v_lock_result THEN DROP TEMPORARY TABLE IF EXISTS tmp_setup_actors; DROP TEMPORARY TABLE IF EXISTS tmp_setup_consumers; DROP TEMPORARY TABLE IF EXISTS tmp_setup_instruments; DROP TEMPORARY TABLE IF EXISTS tmp_threads; CREATE TEMPORARY TABLE tmp_setup_actors LIKE performance_schema.setup_actors; CREATE TEMPORARY TABLE tmp_setup_consumers LIKE performance_schema.setup_consumers; CREATE TEMPORARY TABLE tmp_setup_instruments LIKE performance_schema.setup_instruments; CREATE TEMPORARY TABLE tmp_threads (THREAD_ID bigint unsigned NOT NULL PRIMARY KEY, INSTRUMENTED enum('YES','NO') NOT NULL); INSERT INTO tmp_setup_actors SELECT * FROM performance_schema.setup_actors; INSERT INTO tmp_setup_consumers SELECT * FROM performance_schema.setup_consumers; INSERT INTO tmp_setup_instruments SELECT * FROM performance_schema.setup_instruments; INSERT INTO tmp_threads SELECT THREAD_ID, INSTRUMENTED FROM performance_schema.threads; ELSE SIGNAL SQLSTATE VALUE '90000' SET MESSAGE_TEXT = 'Could not lock the sys.ps_setup_save user lock, another thread has a saved configuration'; END IF; SET sql_log_bin = @log_bin; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_show_disabled -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_show_disabled`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_show_disabled`(IN in_show_instruments BOOLEAN, IN in_show_threads BOOLEAN) READS SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Shows all currently disable Performance Schema configuration.\n \n Disabled users is only available for MySQL 5.7.6 and later.\n In earlier versions it was only possible to enable users.\n \n Parameters\n \n in_show_instruments (BOOLEAN):\n Whether to print disabled instruments (can print many items)\n \n in_show_threads (BOOLEAN):\n Whether to print disabled threads\n \n Example\n \n mysql> CALL sys.ps_setup_show_disabled(TRUE, TRUE);\n +----------------------------+\n | performance_schema_enabled |\n +----------------------------+\n | 1 |\n +----------------------------+\n 1 row in set (0.00 sec)\n \n +--------------------+\n | disabled_users |\n +--------------------+\n | \'mark\'@\'localhost\' |\n +--------------------+\n 1 row in set (0.00 sec)\n \n +-------------+----------------------+---------+-------+\n | object_type | objects | enabled | timed |\n +-------------+----------------------+---------+-------+\n | EVENT | mysql.% | NO | NO |\n | EVENT | performance_schema.% | NO | NO |\n | EVENT | information_schema.% | NO | NO |\n | FUNCTION | mysql.% | NO | NO |\n | FUNCTION | performance_schema.% | NO | NO |\n | FUNCTION | information_schema.% | NO | NO |\n | PROCEDURE | mysql.% | NO | NO |\n | PROCEDURE | performance_schema.% | NO | NO |\n | PROCEDURE | information_schema.% | NO | NO |\n | TABLE | mysql.% | NO | NO |\n | TABLE | performance_schema.% | NO | NO |\n | TABLE | information_schema.% | NO | NO |\n | TRIGGER | mysql.% | NO | NO |\n | TRIGGER | performance_schema.% | NO | NO |\n | TRIGGER | information_schema.% | NO | NO |\n +-------------+----------------------+---------+-------+\n 15 rows in set (0.00 sec)\n \n +----------------------------------+\n | disabled_consumers |\n +----------------------------------+\n | events_stages_current |\n | events_stages_history |\n | events_stages_history_long |\n | events_statements_history |\n | events_statements_history_long |\n | events_transactions_history |\n | events_transactions_history_long |\n | events_waits_current |\n | events_waits_history |\n | events_waits_history_long |\n +----------------------------------+\n 10 rows in set (0.00 sec)\n \n Empty set (0.00 sec)\n \n +---------------------------------------------------------------------------------------+-------+\n | disabled_instruments | timed |\n +---------------------------------------------------------------------------------------+-------+\n | wait/synch/mutex/sql/TC_LOG_MMAP::LOCK_tc | NO |\n | wait/synch/mutex/sql/LOCK_des_key_file | NO |\n | wait/synch/mutex/sql/MYSQL_BIN_LOG::LOCK_commit | NO |\n ...\n | memory/sql/servers_cache | NO |\n | memory/sql/udf_mem | NO |\n | wait/lock/metadata/sql/mdl | NO |\n +---------------------------------------------------------------------------------------+-------+\n 547 rows in set (0.00 sec)\n \n Query OK, 0 rows affected (0.01 sec)\n ' BEGIN SELECT @@performance_schema AS performance_schema_enabled; SELECT CONCAT('\'', user, '\'@\'', host, '\'') AS disabled_users FROM performance_schema.setup_actors WHERE enabled = 'NO' ORDER BY disabled_users; SELECT object_type, CONCAT(object_schema, '.', object_name) AS objects, enabled, timed FROM performance_schema.setup_objects WHERE enabled = 'NO' ORDER BY object_type, objects; SELECT name AS disabled_consumers FROM performance_schema.setup_consumers WHERE enabled = 'NO' ORDER BY disabled_consumers; IF (in_show_threads) THEN SELECT IF(name = 'thread/sql/one_connection', CONCAT(processlist_user, '@', processlist_host), REPLACE(name, 'thread/', '')) AS disabled_threads, TYPE AS thread_type FROM performance_schema.threads WHERE INSTRUMENTED = 'NO' ORDER BY disabled_threads; END IF; IF (in_show_instruments) THEN SELECT name AS disabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = 'NO' ORDER BY disabled_instruments; END IF; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_show_disabled_consumers -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_show_disabled_consumers`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_show_disabled_consumers`() READS SQL DATA DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Shows all currently disabled consumers.\n \n Parameters\n \n None\n \n Example\n \n mysql> CALL sys.ps_setup_show_disabled_consumers();\n \n +---------------------------+\n | disabled_consumers |\n +---------------------------+\n | events_statements_current |\n | global_instrumentation |\n | thread_instrumentation |\n | statements_digest |\n +---------------------------+\n 4 rows in set (0.05 sec)\n ' BEGIN SELECT name AS disabled_consumers FROM performance_schema.setup_consumers WHERE enabled = 'NO' ORDER BY disabled_consumers; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_show_disabled_instruments -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_show_disabled_instruments`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_show_disabled_instruments`() READS SQL DATA DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Shows all currently disabled instruments.\n \n Parameters\n \n None\n \n Example\n \n mysql> CALL sys.ps_setup_show_disabled_instruments();\n ' BEGIN SELECT name AS disabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = 'NO' ORDER BY disabled_instruments; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_show_enabled -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_show_enabled`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_show_enabled`(IN in_show_instruments BOOLEAN, IN in_show_threads BOOLEAN) READS SQL DATA DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Shows all currently enabled Performance Schema configuration.\n \n Parameters\n \n in_show_instruments (BOOLEAN):\n Whether to print enabled instruments (can print many items)\n \n in_show_threads (BOOLEAN):\n Whether to print enabled threads\n \n Example\n \n mysql> CALL sys.ps_setup_show_enabled(TRUE, TRUE);\n +----------------------------+\n | performance_schema_enabled |\n +----------------------------+\n | 1 |\n +----------------------------+\n 1 row in set (0.00 sec)\n \n +---------------+\n | enabled_users |\n +---------------+\n | \'%\'@\'%\' |\n +---------------+\n 1 row in set (0.01 sec)\n \n +-------------+---------+---------+-------+\n | object_type | objects | enabled | timed |\n +-------------+---------+---------+-------+\n | EVENT | %.% | YES | YES |\n | FUNCTION | %.% | YES | YES |\n | PROCEDURE | %.% | YES | YES |\n | TABLE | %.% | YES | YES |\n | TRIGGER | %.% | YES | YES |\n +-------------+---------+---------+-------+\n 5 rows in set (0.01 sec)\n \n +---------------------------+\n | enabled_consumers |\n +---------------------------+\n | events_statements_current |\n | global_instrumentation |\n | thread_instrumentation |\n | statements_digest |\n +---------------------------+\n 4 rows in set (0.05 sec)\n \n +---------------------------------+-------------+\n | enabled_threads | thread_type |\n +---------------------------------+-------------+\n | sql/main | BACKGROUND |\n | sql/thread_timer_notifier | BACKGROUND |\n | innodb/io_ibuf_thread | BACKGROUND |\n | innodb/io_log_thread | BACKGROUND |\n | innodb/io_read_thread | BACKGROUND |\n | innodb/io_read_thread | BACKGROUND |\n | innodb/io_write_thread | BACKGROUND |\n | innodb/io_write_thread | BACKGROUND |\n | innodb/page_cleaner_thread | BACKGROUND |\n | innodb/srv_lock_timeout_thread | BACKGROUND |\n | innodb/srv_error_monitor_thread | BACKGROUND |\n | innodb/srv_monitor_thread | BACKGROUND |\n | innodb/srv_master_thread | BACKGROUND |\n | innodb/srv_purge_thread | BACKGROUND |\n | innodb/srv_worker_thread | BACKGROUND |\n | innodb/srv_worker_thread | BACKGROUND |\n | innodb/srv_worker_thread | BACKGROUND |\n | innodb/buf_dump_thread | BACKGROUND |\n | innodb/dict_stats_thread | BACKGROUND |\n | sql/signal_handler | BACKGROUND |\n | sql/compress_gtid_table | FOREGROUND |\n | root@localhost | FOREGROUND |\n +---------------------------------+-------------+\n 22 rows in set (0.01 sec)\n \n +-------------------------------------+-------+\n | enabled_instruments | timed |\n +-------------------------------------+-------+\n | wait/io/file/sql/map | YES |\n | wait/io/file/sql/binlog | YES |\n ...\n | statement/com/Error | YES |\n | statement/com/ | YES |\n | idle | YES |\n +-------------------------------------+-------+\n 210 rows in set (0.08 sec)\n \n Query OK, 0 rows affected (0.89 sec)\n ' BEGIN SELECT @@performance_schema AS performance_schema_enabled; SELECT CONCAT('\'', user, '\'@\'', host, '\'') AS enabled_users FROM performance_schema.setup_actors WHERE enabled = 'YES' ORDER BY enabled_users; SELECT object_type, CONCAT(object_schema, '.', object_name) AS objects, enabled, timed FROM performance_schema.setup_objects WHERE enabled = 'YES' ORDER BY object_type, objects; SELECT name AS enabled_consumers FROM performance_schema.setup_consumers WHERE enabled = 'YES' ORDER BY enabled_consumers; IF (in_show_threads) THEN SELECT IF(name = 'thread/sql/one_connection', CONCAT(processlist_user, '@', processlist_host), REPLACE(name, 'thread/', '')) AS enabled_threads, TYPE AS thread_type FROM performance_schema.threads WHERE INSTRUMENTED = 'YES' ORDER BY enabled_threads; END IF; IF (in_show_instruments) THEN SELECT name AS enabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = 'YES' ORDER BY enabled_instruments; END IF; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_show_enabled_consumers -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_show_enabled_consumers`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_show_enabled_consumers`() READS SQL DATA DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Shows all currently enabled consumers.\n \n Parameters\n \n None\n \n Example\n \n mysql> CALL sys.ps_setup_show_enabled_consumers();\n \n +---------------------------+\n | enabled_consumers |\n +---------------------------+\n | events_statements_current |\n | global_instrumentation |\n | thread_instrumentation |\n | statements_digest |\n +---------------------------+\n 4 rows in set (0.05 sec)\n ' BEGIN SELECT name AS enabled_consumers FROM performance_schema.setup_consumers WHERE enabled = 'YES' ORDER BY enabled_consumers; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_setup_show_enabled_instruments -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_setup_show_enabled_instruments`; delimiter ;; CREATE PROCEDURE `sys`.`ps_setup_show_enabled_instruments`() READS SQL DATA DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Shows all currently enabled instruments.\n \n Parameters\n \n None\n \n Example\n \n mysql> CALL sys.ps_setup_show_enabled_instruments();\n ' BEGIN SELECT name AS enabled_instruments, timed FROM performance_schema.setup_instruments WHERE enabled = 'YES' ORDER BY enabled_instruments; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_statement_avg_latency_histogram -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_statement_avg_latency_histogram`; delimiter ;; CREATE PROCEDURE `sys`.`ps_statement_avg_latency_histogram`() READS SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Outputs a textual histogram graph of the average latency values\n across all normalized queries tracked within the Performance Schema\n events_statements_summary_by_digest table.\n \n Can be used to show a very high level picture of what kind of \n latency distribution statements running within this instance have.\n \n Parameters\n \n None.\n \n Example\n \n mysql> CALL sys.ps_statement_avg_latency_histogram()\\G\n *************************** 1. row ***************************\n Performance Schema Statement Digest Average Latency Histogram:\n \n . = 1 unit\n * = 2 units\n # = 3 units\n \n (0 - 38ms) 240 | ################################################################################\n (38 - 77ms) 38 | ......................................\n (77 - 115ms) 3 | ...\n (115 - 154ms) 62 | *******************************\n (154 - 192ms) 3 | ...\n (192 - 231ms) 0 |\n (231 - 269ms) 0 |\n (269 - 307ms) 0 |\n (307 - 346ms) 0 |\n (346 - 384ms) 1 | .\n (384 - 423ms) 1 | .\n (423 - 461ms) 0 |\n (461 - 499ms) 0 |\n (499 - 538ms) 0 |\n (538 - 576ms) 0 |\n (576 - 615ms) 1 | .\n \n Total Statements: 350; Buckets: 16; Bucket Size: 38 ms;\n ' BEGIN SELECT CONCAT('\n', '\n . = 1 unit', '\n * = 2 units', '\n # = 3 units\n', @label := CONCAT(@label_inner := CONCAT('\n(0 - ', ROUND((@bucket_size := (SELECT ROUND((MAX(avg_us) - MIN(avg_us)) / (@buckets := 16)) AS size FROM sys.x$ps_digest_avg_latency_distribution)) / (@unit_div := 1000)), (@unit := 'ms'), ')'), REPEAT(' ', (@max_label_size := ((1 + LENGTH(ROUND((@bucket_size * 15) / @unit_div)) + 3 + LENGTH(ROUND(@bucket_size * 16) / @unit_div)) + 1)) - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us <= @bucket_size), 0)), REPEAT(' ', (@max_label_len := (@max_label_size + LENGTH((@total_queries := (SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution)))) + 1) - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < (@one_unit := 40), '.', IF(@count_in_bucket < (@two_unit := 80), '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND(@bucket_size / @unit_div), ' - ', ROUND((@bucket_size * 2) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size AND b1.avg_us <= @bucket_size * 2), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 2) / @unit_div), ' - ', ROUND((@bucket_size * 3) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 2 AND b1.avg_us <= @bucket_size * 3), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 3) / @unit_div), ' - ', ROUND((@bucket_size * 4) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 3 AND b1.avg_us <= @bucket_size * 4), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 4) / @unit_div), ' - ', ROUND((@bucket_size * 5) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 4 AND b1.avg_us <= @bucket_size * 5), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 5) / @unit_div), ' - ', ROUND((@bucket_size * 6) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 5 AND b1.avg_us <= @bucket_size * 6), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 6) / @unit_div), ' - ', ROUND((@bucket_size * 7) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 6 AND b1.avg_us <= @bucket_size * 7), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 7) / @unit_div), ' - ', ROUND((@bucket_size * 8) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 7 AND b1.avg_us <= @bucket_size * 8), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 8) / @unit_div), ' - ', ROUND((@bucket_size * 9) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 8 AND b1.avg_us <= @bucket_size * 9), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 9) / @unit_div), ' - ', ROUND((@bucket_size * 10) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 9 AND b1.avg_us <= @bucket_size * 10), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 10) / @unit_div), ' - ', ROUND((@bucket_size * 11) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 10 AND b1.avg_us <= @bucket_size * 11), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 11) / @unit_div), ' - ', ROUND((@bucket_size * 12) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 11 AND b1.avg_us <= @bucket_size * 12), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 12) / @unit_div), ' - ', ROUND((@bucket_size * 13) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 12 AND b1.avg_us <= @bucket_size * 13), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 13) / @unit_div), ' - ', ROUND((@bucket_size * 14) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 13 AND b1.avg_us <= @bucket_size * 14), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 14) / @unit_div), ' - ', ROUND((@bucket_size * 15) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 14 AND b1.avg_us <= @bucket_size * 15), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), @label := CONCAT(@label_inner := CONCAT('\n(', ROUND((@bucket_size * 15) / @unit_div), ' - ', ROUND((@bucket_size * 16) / @unit_div), @unit, ')'), REPEAT(' ', @max_label_size - LENGTH(@label_inner)), @count_in_bucket := IFNULL((SELECT SUM(cnt) FROM sys.x$ps_digest_avg_latency_distribution AS b1 WHERE b1.avg_us > @bucket_size * 15 AND b1.avg_us <= @bucket_size * 16), 0)), REPEAT(' ', @max_label_len - LENGTH(@label)), '| ', IFNULL(REPEAT(IF(@count_in_bucket < @one_unit, '.', IF(@count_in_bucket < @two_unit, '*', '#')), IF(@count_in_bucket < @one_unit, @count_in_bucket, IF(@count_in_bucket < @two_unit, @count_in_bucket / 2, @count_in_bucket / 3))), ''), '\n\n Total Statements: ', @total_queries, '; Buckets: ', @buckets , '; Bucket Size: ', ROUND(@bucket_size / @unit_div) , ' ', @unit, ';\n' ) AS `Performance Schema Statement Digest Average Latency Histogram`; END ;; delimiter ; -- ---------------------------- -- Function structure for ps_thread_account -- ---------------------------- DROP FUNCTION IF EXISTS `ps_thread_account`; delimiter ;; CREATE FUNCTION `sys`.`ps_thread_account`(in_thread_id BIGINT UNSIGNED) RETURNS text CHARSET utf8 READS SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Return the user@host account for the given Performance Schema thread id.\n \n Parameters\n \n in_thread_id (BIGINT UNSIGNED):\n The id of the thread to return the account for.\n \n Example\n \n mysql> select thread_id, processlist_user, processlist_host from performance_schema.threads where type = \'foreground\';\n +-----------+------------------+------------------+\n | thread_id | processlist_user | processlist_host |\n +-----------+------------------+------------------+\n | 23 | NULL | NULL |\n | 30 | root | localhost |\n | 31 | msandbox | localhost |\n | 32 | msandbox | localhost |\n +-----------+------------------+------------------+\n 4 rows in set (0.00 sec)\n \n mysql> select sys.ps_thread_account(31);\n +---------------------------+\n | sys.ps_thread_account(31) |\n +---------------------------+\n | msandbox@localhost |\n +---------------------------+\n 1 row in set (0.00 sec)\n ' BEGIN RETURN (SELECT IF( type = 'FOREGROUND', CONCAT(processlist_user, '@', processlist_host), type ) AS account FROM `performance_schema`.`threads` WHERE thread_id = in_thread_id); END ;; delimiter ; -- ---------------------------- -- Function structure for ps_thread_id -- ---------------------------- DROP FUNCTION IF EXISTS `ps_thread_id`; delimiter ;; CREATE FUNCTION `sys`.`ps_thread_id`(in_connection_id BIGINT UNSIGNED) RETURNS bigint(20) unsigned READS SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Return the Performance Schema THREAD_ID for the specified connection ID.\n \n Parameters\n \n in_connection_id (BIGINT UNSIGNED):\n The id of the connection to return the thread id for. If NULL, the current\n connection thread id is returned.\n \n Example\n \n mysql> SELECT sys.ps_thread_id(79);\n +----------------------+\n | sys.ps_thread_id(79) |\n +----------------------+\n | 98 |\n +----------------------+\n 1 row in set (0.00 sec)\n \n mysql> SELECT sys.ps_thread_id(CONNECTION_ID());\n +-----------------------------------+\n | sys.ps_thread_id(CONNECTION_ID()) |\n +-----------------------------------+\n | 98 |\n +-----------------------------------+\n 1 row in set (0.00 sec)\n ' BEGIN RETURN (SELECT THREAD_ID FROM `performance_schema`.`threads` WHERE PROCESSLIST_ID = IFNULL(in_connection_id, CONNECTION_ID()) ); END ;; delimiter ; -- ---------------------------- -- Function structure for ps_thread_stack -- ---------------------------- DROP FUNCTION IF EXISTS `ps_thread_stack`; delimiter ;; CREATE FUNCTION `sys`.`ps_thread_stack`(thd_id BIGINT UNSIGNED, debug BOOLEAN) RETURNS longtext CHARSET latin1 READS SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Outputs a JSON formatted stack of all statements, stages and events\n within Performance Schema for the specified thread.\n \n Parameters\n \n thd_id (BIGINT UNSIGNED):\n The id of the thread to trace. This should match the thread_id\n column from the performance_schema.threads table.\n in_verbose (BOOLEAN):\n Include file:lineno information in the events.\n \n Example\n \n (line separation added for output)\n \n mysql> SELECT sys.ps_thread_stack(37, FALSE) AS thread_stack\\G\n *************************** 1. row ***************************\n thread_stack: {\"rankdir\": \"LR\",\"nodesep\": \"0.10\",\"stack_created\": \"2014-02-19 13:39:03\",\n \"mysql_version\": \"5.7.3-m13\",\"mysql_user\": \"root@localhost\",\"events\": \n [{\"nesting_event_id\": \"0\", \"event_id\": \"10\", \"timer_wait\": 256.35, \"event_info\": \n \"sql/select\", \"wait_info\": \"select @@version_comment limit 1\\nerrors: 0\\nwarnings: 0\\nlock time:\n ...\n ' BEGIN DECLARE json_objects LONGTEXT; UPDATE performance_schema.threads SET instrumented = 'NO' WHERE processlist_id = CONNECTION_ID(); SET SESSION group_concat_max_len=@@global.max_allowed_packet; SELECT GROUP_CONCAT(CONCAT( '{' , CONCAT_WS( ', ' , CONCAT('"nesting_event_id": "', IF(nesting_event_id IS NULL, '0', nesting_event_id), '"') , CONCAT('"event_id": "', event_id, '"') , CONCAT( '"timer_wait": ', ROUND(timer_wait/1000000, 2)) , CONCAT( '"event_info": "' , CASE WHEN event_name NOT LIKE 'wait/io%' THEN REPLACE(SUBSTRING_INDEX(event_name, '/', -2), '\\', '\\\\') WHEN event_name NOT LIKE 'wait/io/file%' OR event_name NOT LIKE 'wait/io/socket%' THEN REPLACE(SUBSTRING_INDEX(event_name, '/', -4), '\\', '\\\\') ELSE event_name END , '"' ) , CONCAT( '"wait_info": "', IFNULL(wait_info, ''), '"') , CONCAT( '"source": "', IF(true AND event_name LIKE 'wait%', IFNULL(wait_info, ''), ''), '"') , CASE WHEN event_name LIKE 'wait/io/file%' THEN '"event_type": "io/file"' WHEN event_name LIKE 'wait/io/table%' THEN '"event_type": "io/table"' WHEN event_name LIKE 'wait/io/socket%' THEN '"event_type": "io/socket"' WHEN event_name LIKE 'wait/synch/mutex%' THEN '"event_type": "synch/mutex"' WHEN event_name LIKE 'wait/synch/cond%' THEN '"event_type": "synch/cond"' WHEN event_name LIKE 'wait/synch/rwlock%' THEN '"event_type": "synch/rwlock"' WHEN event_name LIKE 'wait/lock%' THEN '"event_type": "lock"' WHEN event_name LIKE 'statement/%' THEN '"event_type": "stmt"' WHEN event_name LIKE 'stage/%' THEN '"event_type": "stage"' WHEN event_name LIKE '%idle%' THEN '"event_type": "idle"' ELSE '' END ) , '}' ) ORDER BY event_id ASC SEPARATOR ',') event INTO json_objects FROM ( (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, CONCAT(sql_text, '\\n', 'errors: ', errors, '\\n', 'warnings: ', warnings, '\\n', 'lock time: ', ROUND(lock_time/1000000, 2),'us\\n', 'rows affected: ', rows_affected, '\\n', 'rows sent: ', rows_sent, '\\n', 'rows examined: ', rows_examined, '\\n', 'tmp tables: ', created_tmp_tables, '\\n', 'tmp disk tables: ', created_tmp_disk_tables, '\\n', 'select scan: ', select_scan, '\\n', 'select full join: ', select_full_join, '\\n', 'select full range join: ', select_full_range_join, '\\n', 'select range: ', select_range, '\\n', 'select range check: ', select_range_check, '\\n', 'sort merge passes: ', sort_merge_passes, '\\n', 'sort rows: ', sort_rows, '\\n', 'sort range: ', sort_range, '\\n', 'sort scan: ', sort_scan, '\\n', 'no index used: ', IF(no_index_used, 'TRUE', 'FALSE'), '\\n', 'no good index used: ', IF(no_good_index_used, 'TRUE', 'FALSE'), '\\n' ) AS wait_info FROM performance_schema.events_statements_history_long WHERE thread_id = thd_id) UNION (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, null AS wait_info FROM performance_schema.events_stages_history_long WHERE thread_id = thd_id) UNION (SELECT thread_id, event_id, CONCAT(event_name , IF(event_name NOT LIKE 'wait/synch/mutex%', IFNULL(CONCAT(' - ', operation), ''), ''), IF(number_of_bytes IS NOT NULL, CONCAT(' ', number_of_bytes, ' bytes'), ''), IF(event_name LIKE 'wait/io/file%', '\\n', ''), IF(object_schema IS NOT NULL, CONCAT('\\nObject: ', object_schema, '.'), ''), IF(object_name IS NOT NULL, IF (event_name LIKE 'wait/io/socket%', CONCAT(IF (object_name LIKE ':0%', @@socket, object_name)), object_name), ''), IF(index_name IS NOT NULL, CONCAT(' Index: ', index_name), ''), '\\n' ) AS event_name, timer_wait, timer_start, nesting_event_id, source AS wait_info FROM performance_schema.events_waits_history_long WHERE thread_id = thd_id)) events ORDER BY event_id; RETURN CONCAT('{', CONCAT_WS(',', '"rankdir": "LR"', '"nodesep": "0.10"', CONCAT('"stack_created": "', NOW(), '"'), CONCAT('"mysql_version": "', VERSION(), '"'), CONCAT('"mysql_user": "', CURRENT_USER(), '"'), CONCAT('"events": [', IFNULL(json_objects,''), ']') ), '}'); END ;; delimiter ; -- ---------------------------- -- Function structure for ps_thread_trx_info -- ---------------------------- DROP FUNCTION IF EXISTS `ps_thread_trx_info`; delimiter ;; CREATE FUNCTION `sys`.`ps_thread_trx_info`(in_thread_id BIGINT UNSIGNED) RETURNS longtext CHARSET utf8 READS SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Returns a JSON object with info on the given threads current transaction, \n and the statements it has already executed, derived from the\n performance_schema.events_transactions_current and\n performance_schema.events_statements_history tables (so the consumers \n for these also have to be enabled within Performance Schema to get full\n data in the object).\n \n When the output exceeds the default truncation length (65535), a JSON error\n object is returned, such as:\n \n { \"error\": \"Trx info truncated: Row 6 was cut by GROUP_CONCAT()\" }\n \n Similar error objects are returned for other warnings/and exceptions raised\n when calling the function.\n \n The max length of the output of this function can be controlled with the\n ps_thread_trx_info.max_length variable set via sys_config, or the\n @sys.ps_thread_trx_info.max_length user variable, as appropriate.\n \n Parameters\n \n in_thread_id (BIGINT UNSIGNED):\n The id of the thread to return the transaction info for.\n \n Example\n \n SELECT sys.ps_thread_trx_info(48)\\G\n *************************** 1. row ***************************\n sys.ps_thread_trx_info(48): [\n {\n \"time\": \"790.70 us\",\n \"state\": \"COMMITTED\",\n \"mode\": \"READ WRITE\",\n \"autocommitted\": \"NO\",\n \"gtid\": \"AUTOMATIC\",\n \"isolation\": \"REPEATABLE READ\",\n \"statements_executed\": [\n {\n \"sql_text\": \"INSERT INTO info VALUES (1, \'foo\')\",\n \"time\": \"471.02 us\",\n \"schema\": \"trx\",\n \"rows_examined\": 0,\n \"rows_affected\": 1,\n \"rows_sent\": 0,\n \"tmp_tables\": 0,\n \"tmp_disk_tables\": 0,\n \"sort_rows\": 0,\n \"sort_merge_passes\": 0\n },\n {\n \"sql_text\": \"COMMIT\",\n \"time\": \"254.42 us\",\n \"schema\": \"trx\",\n \"rows_examined\": 0,\n \"rows_affected\": 0,\n \"rows_sent\": 0,\n \"tmp_tables\": 0,\n \"tmp_disk_tables\": 0,\n \"sort_rows\": 0,\n \"sort_merge_passes\": 0\n }\n ]\n },\n {\n \"time\": \"426.20 us\",\n \"state\": \"COMMITTED\",\n \"mode\": \"READ WRITE\",\n \"autocommitted\": \"NO\",\n \"gtid\": \"AUTOMATIC\",\n \"isolation\": \"REPEATABLE READ\",\n \"statements_executed\": [\n {\n \"sql_text\": \"INSERT INTO info VALUES (2, \'bar\')\",\n \"time\": \"107.33 us\",\n \"schema\": \"trx\",\n \"rows_examined\": 0,\n \"rows_affected\": 1,\n \"rows_sent\": 0,\n \"tmp_tables\": 0,\n \"tmp_disk_tables\": 0,\n \"sort_rows\": 0,\n \"sort_merge_passes\": 0\n },\n {\n \"sql_text\": \"COMMIT\",\n \"time\": \"213.23 us\",\n \"schema\": \"trx\",\n \"rows_examined\": 0,\n \"rows_affected\": 0,\n \"rows_sent\": 0,\n \"tmp_tables\": 0,\n \"tmp_disk_tables\": 0,\n \"sort_rows\": 0,\n \"sort_merge_passes\": 0\n }\n ]\n }\n ]\n 1 row in set (0.03 sec)\n ' BEGIN DECLARE v_output LONGTEXT DEFAULT '{}'; DECLARE v_msg_text TEXT DEFAULT ''; DECLARE v_signal_msg TEXT DEFAULT ''; DECLARE v_mysql_errno INT; DECLARE v_max_output_len BIGINT; DECLARE EXIT HANDLER FOR SQLWARNING, SQLEXCEPTION BEGIN GET DIAGNOSTICS CONDITION 1 v_msg_text = MESSAGE_TEXT, v_mysql_errno = MYSQL_ERRNO; IF v_mysql_errno = 1260 THEN SET v_signal_msg = CONCAT('{ "error": "Trx info truncated: ', v_msg_text, '" }'); ELSE SET v_signal_msg = CONCAT('{ "error": "', v_msg_text, '" }'); END IF; RETURN v_signal_msg; END; IF (@sys.ps_thread_trx_info.max_length IS NULL) THEN SET @sys.ps_thread_trx_info.max_length = sys.sys_get_config('ps_thread_trx_info.max_length', 65535); END IF; IF (@sys.ps_thread_trx_info.max_length != @@session.group_concat_max_len) THEN SET @old_group_concat_max_len = @@session.group_concat_max_len; SET v_max_output_len = (@sys.ps_thread_trx_info.max_length - 5); SET SESSION group_concat_max_len = v_max_output_len; END IF; SET v_output = ( SELECT CONCAT('[', IFNULL(GROUP_CONCAT(trx_info ORDER BY event_id), ''), '\n]') AS trx_info FROM (SELECT trxi.thread_id, trxi.event_id, GROUP_CONCAT( IFNULL( CONCAT('\n {\n', ' "time": "', IFNULL(sys.format_time(trxi.timer_wait), ''), '",\n', ' "state": "', IFNULL(trxi.state, ''), '",\n', ' "mode": "', IFNULL(trxi.access_mode, ''), '",\n', ' "autocommitted": "', IFNULL(trxi.autocommit, ''), '",\n', ' "gtid": "', IFNULL(trxi.gtid, ''), '",\n', ' "isolation": "', IFNULL(trxi.isolation_level, ''), '",\n', ' "statements_executed": [', IFNULL(s.stmts, ''), IF(s.stmts IS NULL, ' ]\n', '\n ]\n'), ' }' ), '') ORDER BY event_id) AS trx_info FROM ( (SELECT thread_id, event_id, timer_wait, state,access_mode, autocommit, gtid, isolation_level FROM performance_schema.events_transactions_current WHERE thread_id = in_thread_id AND end_event_id IS NULL) UNION (SELECT thread_id, event_id, timer_wait, state,access_mode, autocommit, gtid, isolation_level FROM performance_schema.events_transactions_history WHERE thread_id = in_thread_id) ) AS trxi LEFT JOIN (SELECT thread_id, nesting_event_id, GROUP_CONCAT( IFNULL( CONCAT('\n {\n', ' "sql_text": "', IFNULL(sys.format_statement(REPLACE(sql_text, '\\', '\\\\')), ''), '",\n', ' "time": "', IFNULL(sys.format_time(timer_wait), ''), '",\n', ' "schema": "', IFNULL(current_schema, ''), '",\n', ' "rows_examined": ', IFNULL(rows_examined, ''), ',\n', ' "rows_affected": ', IFNULL(rows_affected, ''), ',\n', ' "rows_sent": ', IFNULL(rows_sent, ''), ',\n', ' "tmp_tables": ', IFNULL(created_tmp_tables, ''), ',\n', ' "tmp_disk_tables": ', IFNULL(created_tmp_disk_tables, ''), ',\n', ' "sort_rows": ', IFNULL(sort_rows, ''), ',\n', ' "sort_merge_passes": ', IFNULL(sort_merge_passes, ''), '\n', ' }'), '') ORDER BY event_id) AS stmts FROM performance_schema.events_statements_history WHERE sql_text IS NOT NULL AND thread_id = in_thread_id GROUP BY thread_id, nesting_event_id ) AS s ON trxi.thread_id = s.thread_id AND trxi.event_id = s.nesting_event_id WHERE trxi.thread_id = in_thread_id GROUP BY trxi.thread_id, trxi.event_id ) trxs GROUP BY thread_id ); IF (@old_group_concat_max_len IS NOT NULL) THEN SET SESSION group_concat_max_len = @old_group_concat_max_len; END IF; RETURN v_output; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_trace_statement_digest -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_trace_statement_digest`; delimiter ;; CREATE PROCEDURE `sys`.`ps_trace_statement_digest`(IN in_digest VARCHAR(32), IN in_runtime INT, IN in_interval DECIMAL(2,2), IN in_start_fresh BOOLEAN, IN in_auto_enable BOOLEAN) MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Traces all instrumentation within Performance Schema for a specific\n Statement Digest. \n \n When finding a statement of interest within the \n performance_schema.events_statements_summary_by_digest table, feed\n the DIGEST MD5 value in to this procedure, set how long to poll for, \n and at what interval to poll, and it will generate a report of all \n statistics tracked within Performance Schema for that digest for the\n interval.\n \n It will also attempt to generate an EXPLAIN for the longest running \n example of the digest during the interval. Note this may fail, as:\n \n * Performance Schema truncates long SQL_TEXT values (and hence the \n EXPLAIN will fail due to parse errors)\n * the default schema is sys (so tables that are not fully qualified\n in the query may not be found)\n * some queries such as SHOW are not supported in EXPLAIN.\n \n When the EXPLAIN fails, the error will be ignored and no EXPLAIN\n output generated.\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Parameters\n \n in_digest (VARCHAR(32)):\n The statement digest identifier you would like to analyze\n in_runtime (INT):\n The number of seconds to run analysis for\n in_interval (DECIMAL(2,2)):\n The interval (in seconds, may be fractional) at which to try\n and take snapshots\n in_start_fresh (BOOLEAN):\n Whether to TRUNCATE the events_statements_history_long and\n events_stages_history_long tables before starting\n in_auto_enable (BOOLEAN):\n Whether to automatically turn on required consumers\n \n Example\n \n mysql> call ps_trace_statement_digest(\'891ec6860f98ba46d89dd20b0c03652c\', 10, 0.1, true, true);\n +--------------------+\n | SUMMARY STATISTICS |\n +--------------------+\n | SUMMARY STATISTICS |\n +--------------------+\n 1 row in set (9.11 sec)\n \n +------------+-----------+-----------+-----------+---------------+------------+------------+\n | executions | exec_time | lock_time | rows_sent | rows_examined | tmp_tables | full_scans |\n +------------+-----------+-----------+-----------+---------------+------------+------------+\n | 21 | 4.11 ms | 2.00 ms | 0 | 21 | 0 | 0 |\n +------------+-----------+-----------+-----------+---------------+------------+------------+\n 1 row in set (9.11 sec)\n \n +------------------------------------------+-------+-----------+\n | event_name | count | latency |\n +------------------------------------------+-------+-----------+\n | stage/sql/checking query cache for query | 16 | 724.37 us |\n | stage/sql/statistics | 16 | 546.92 us |\n | stage/sql/freeing items | 18 | 520.11 us |\n | stage/sql/init | 51 | 466.80 us |\n ...\n | stage/sql/cleaning up | 18 | 11.92 us |\n | stage/sql/executing | 16 | 6.95 us |\n +------------------------------------------+-------+-----------+\n 17 rows in set (9.12 sec)\n \n +---------------------------+\n | LONGEST RUNNING STATEMENT |\n +---------------------------+\n | LONGEST RUNNING STATEMENT |\n +---------------------------+\n 1 row in set (9.16 sec)\n \n +-----------+-----------+-----------+-----------+---------------+------------+-----------+\n | thread_id | exec_time | lock_time | rows_sent | rows_examined | tmp_tables | full_scan |\n +-----------+-----------+-----------+-----------+---------------+------------+-----------+\n | 166646 | 618.43 us | 1.00 ms | 0 | 1 | 0 | 0 |\n +-----------+-----------+-----------+-----------+---------------+------------+-----------+\n 1 row in set (9.16 sec)\n \n // Truncated for clarity...\n +-----------------------------------------------------------------+\n | sql_text |\n +-----------------------------------------------------------------+\n | select hibeventhe0_.id as id1382_, hibeventhe0_.createdTime ... |\n +-----------------------------------------------------------------+\n 1 row in set (9.17 sec)\n \n +------------------------------------------+-----------+\n | event_name | latency |\n +------------------------------------------+-----------+\n | stage/sql/init | 8.61 us |\n | stage/sql/Waiting for query cache lock | 453.23 us |\n | stage/sql/init | 331.07 ns |\n | stage/sql/checking query cache for query | 43.04 us |\n ...\n | stage/sql/freeing items | 30.46 us |\n | stage/sql/cleaning up | 662.13 ns |\n +------------------------------------------+-----------+\n 18 rows in set (9.23 sec)\n \n +----+-------------+--------------+-------+---------------+-----------+---------+-------------+------+-------+\n | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |\n +----+-------------+--------------+-------+---------------+-----------+---------+-------------+------+-------+\n | 1 | SIMPLE | hibeventhe0_ | const | fixedTime | fixedTime | 775 | const,const | 1 | NULL |\n +----+-------------+--------------+-------+---------------+-----------+---------+-------------+------+-------+\n 1 row in set (9.27 sec)\n \n Query OK, 0 rows affected (9.28 sec)\n ' BEGIN DECLARE v_start_fresh BOOLEAN DEFAULT false; DECLARE v_auto_enable BOOLEAN DEFAULT false; DECLARE v_explain BOOLEAN DEFAULT true; DECLARE v_this_thread_enabed ENUM('YES', 'NO'); DECLARE v_runtime INT DEFAULT 0; DECLARE v_start INT DEFAULT 0; DECLARE v_found_stmts INT; SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0; SELECT INSTRUMENTED INTO v_this_thread_enabed FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); CALL sys.ps_setup_disable_thread(CONNECTION_ID()); DROP TEMPORARY TABLE IF EXISTS stmt_trace; CREATE TEMPORARY TABLE stmt_trace ( thread_id BIGINT UNSIGNED, timer_start BIGINT UNSIGNED, event_id BIGINT UNSIGNED, sql_text longtext, timer_wait BIGINT UNSIGNED, lock_time BIGINT UNSIGNED, errors BIGINT UNSIGNED, mysql_errno INT, rows_sent BIGINT UNSIGNED, rows_affected BIGINT UNSIGNED, rows_examined BIGINT UNSIGNED, created_tmp_tables BIGINT UNSIGNED, created_tmp_disk_tables BIGINT UNSIGNED, no_index_used BIGINT UNSIGNED, PRIMARY KEY (thread_id, timer_start) ); DROP TEMPORARY TABLE IF EXISTS stmt_stages; CREATE TEMPORARY TABLE stmt_stages ( event_id BIGINT UNSIGNED, stmt_id BIGINT UNSIGNED, event_name VARCHAR(128), timer_wait BIGINT UNSIGNED, PRIMARY KEY (event_id) ); SET v_start_fresh = in_start_fresh; IF v_start_fresh THEN TRUNCATE TABLE performance_schema.events_statements_history_long; TRUNCATE TABLE performance_schema.events_stages_history_long; END IF; SET v_auto_enable = in_auto_enable; IF v_auto_enable THEN CALL sys.ps_setup_save(0); UPDATE performance_schema.threads SET INSTRUMENTED = IF(PROCESSLIST_ID IS NOT NULL, 'YES', 'NO'); UPDATE performance_schema.setup_consumers SET ENABLED = 'YES' WHERE NAME NOT LIKE '%\_history' AND NAME NOT LIKE 'events_wait%' AND NAME NOT LIKE 'events_transactions%' AND NAME <> 'statements_digest'; UPDATE performance_schema.setup_instruments SET ENABLED = 'YES', TIMED = 'YES' WHERE NAME LIKE 'statement/%' OR NAME LIKE 'stage/%'; END IF; WHILE v_runtime < in_runtime DO SELECT UNIX_TIMESTAMP() INTO v_start; INSERT IGNORE INTO stmt_trace SELECT thread_id, timer_start, event_id, sql_text, timer_wait, lock_time, errors, mysql_errno, rows_sent, rows_affected, rows_examined, created_tmp_tables, created_tmp_disk_tables, no_index_used FROM performance_schema.events_statements_history_long WHERE digest = in_digest; INSERT IGNORE INTO stmt_stages SELECT stages.event_id, stmt_trace.event_id, stages.event_name, stages.timer_wait FROM performance_schema.events_stages_history_long AS stages JOIN stmt_trace ON stages.nesting_event_id = stmt_trace.event_id; SELECT SLEEP(in_interval) INTO @sleep; SET v_runtime = v_runtime + (UNIX_TIMESTAMP() - v_start); END WHILE; SELECT "SUMMARY STATISTICS"; SELECT COUNT(*) executions, sys.format_time(SUM(timer_wait)) AS exec_time, sys.format_time(SUM(lock_time)) AS lock_time, SUM(rows_sent) AS rows_sent, SUM(rows_affected) AS rows_affected, SUM(rows_examined) AS rows_examined, SUM(created_tmp_tables) AS tmp_tables, SUM(no_index_used) AS full_scans FROM stmt_trace; SELECT event_name, COUNT(*) as count, sys.format_time(SUM(timer_wait)) as latency FROM stmt_stages GROUP BY event_name ORDER BY SUM(timer_wait) DESC; SELECT "LONGEST RUNNING STATEMENT"; SELECT thread_id, sys.format_time(timer_wait) AS exec_time, sys.format_time(lock_time) AS lock_time, rows_sent, rows_affected, rows_examined, created_tmp_tables AS tmp_tables, no_index_used AS full_scan FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1; SELECT sql_text FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1; SELECT sql_text, event_id INTO @sql, @sql_id FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1; IF (@sql_id IS NOT NULL) THEN SELECT event_name, sys.format_time(timer_wait) as latency FROM stmt_stages WHERE stmt_id = @sql_id ORDER BY event_id; END IF; DROP TEMPORARY TABLE stmt_trace; DROP TEMPORARY TABLE stmt_stages; IF (@sql IS NOT NULL) THEN SET @stmt := CONCAT("EXPLAIN FORMAT=JSON ", @sql); BEGIN DECLARE CONTINUE HANDLER FOR 1064, 1146 SET v_explain = false; PREPARE explain_stmt FROM @stmt; END; IF (v_explain) THEN EXECUTE explain_stmt; DEALLOCATE PREPARE explain_stmt; END IF; END IF; IF v_auto_enable THEN CALL sys.ps_setup_reload_saved(); END IF; IF (v_this_thread_enabed = 'YES') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF; SET sql_log_bin = @log_bin; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_trace_thread -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_trace_thread`; delimiter ;; CREATE PROCEDURE `sys`.`ps_trace_thread`(IN in_thread_id BIGINT UNSIGNED, IN in_outfile VARCHAR(255), IN in_max_runtime DECIMAL(20,2), IN in_interval DECIMAL(20,2), IN in_start_fresh BOOLEAN, IN in_auto_setup BOOLEAN, IN in_debug BOOLEAN) MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\n Description\n \n Dumps all data within Performance Schema for an instrumented thread,\n to create a DOT formatted graph file. \n \n Each resultset returned from the procedure should be used for a complete graph\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Parameters\n \n in_thread_id (BIGINT UNSIGNED):\n The thread that you would like a stack trace for\n in_outfile (VARCHAR(255)):\n The filename the dot file will be written to\n in_max_runtime (DECIMAL(20,2)):\n The maximum time to keep collecting data.\n Use NULL to get the default which is 60 seconds.\n in_interval (DECIMAL(20,2)): \n How long to sleep between data collections. \n Use NULL to get the default which is 1 second.\n in_start_fresh (BOOLEAN):\n Whether to reset all Performance Schema data before tracing.\n in_auto_setup (BOOLEAN):\n Whether to disable all other threads and enable all consumers/instruments. \n This will also reset the settings at the end of the run.\n in_debug (BOOLEAN):\n Whether you would like to include file:lineno in the graph\n \n Example\n \n mysql> CALL sys.ps_trace_thread(25, CONCAT(\'/tmp/stack-\', REPLACE(NOW(), \' \', \'-\'), \'.dot\'), NULL, NULL, TRUE, TRUE, TRUE);\n +-------------------+\n | summary |\n +-------------------+\n | Disabled 1 thread |\n +-------------------+\n 1 row in set (0.00 sec)\n \n +---------------------------------------------+\n | Info |\n +---------------------------------------------+\n | Data collection starting for THREAD_ID = 25 |\n +---------------------------------------------+\n 1 row in set (0.03 sec)\n \n +-----------------------------------------------------------+\n | Info |\n +-----------------------------------------------------------+\n | Stack trace written to /tmp/stack-2014-02-16-21:18:41.dot |\n +-----------------------------------------------------------+\n 1 row in set (60.07 sec)\n \n +-------------------------------------------------------------------+\n | Convert to PDF |\n +-------------------------------------------------------------------+\n | dot -Tpdf -o /tmp/stack_25.pdf /tmp/stack-2014-02-16-21:18:41.dot |\n +-------------------------------------------------------------------+\n 1 row in set (60.07 sec)\n \n +-------------------------------------------------------------------+\n | Convert to PNG |\n +-------------------------------------------------------------------+\n | dot -Tpng -o /tmp/stack_25.png /tmp/stack-2014-02-16-21:18:41.dot |\n +-------------------------------------------------------------------+\n 1 row in set (60.07 sec)\n \n +------------------+\n | summary |\n +------------------+\n | Enabled 1 thread |\n +------------------+\n 1 row in set (60.32 sec)\n ' BEGIN DECLARE v_done bool DEFAULT FALSE; DECLARE v_start, v_runtime DECIMAL(20,2) DEFAULT 0.0; DECLARE v_min_event_id bigint unsigned DEFAULT 0; DECLARE v_this_thread_enabed ENUM('YES', 'NO'); DECLARE v_event longtext; DECLARE c_stack CURSOR FOR SELECT CONCAT(IF(nesting_event_id IS NOT NULL, CONCAT(nesting_event_id, ' -> '), ''), event_id, '; ', event_id, ' [label="', '(', sys.format_time(timer_wait), ') ', IF (event_name NOT LIKE 'wait/io%', SUBSTRING_INDEX(event_name, '/', -2), IF (event_name NOT LIKE 'wait/io/file%' OR event_name NOT LIKE 'wait/io/socket%', SUBSTRING_INDEX(event_name, '/', -4), event_name) ), IF (event_name LIKE 'transaction', IFNULL(CONCAT('\\n', wait_info), ''), ''), IF (event_name LIKE 'statement/%', IFNULL(CONCAT('\\n', wait_info), ''), ''), IF (in_debug AND event_name LIKE 'wait%', wait_info, ''), '", ', CASE WHEN event_name LIKE 'wait/io/file%' THEN 'shape=box, style=filled, color=red' WHEN event_name LIKE 'wait/io/table%' THEN 'shape=box, style=filled, color=green' WHEN event_name LIKE 'wait/io/socket%' THEN 'shape=box, style=filled, color=yellow' WHEN event_name LIKE 'wait/synch/mutex%' THEN 'style=filled, color=lightskyblue' WHEN event_name LIKE 'wait/synch/cond%' THEN 'style=filled, color=darkseagreen3' WHEN event_name LIKE 'wait/synch/rwlock%' THEN 'style=filled, color=orchid' WHEN event_name LIKE 'wait/synch/sxlock%' THEN 'style=filled, color=palevioletred' WHEN event_name LIKE 'wait/lock%' THEN 'shape=box, style=filled, color=tan' WHEN event_name LIKE 'statement/%' THEN CONCAT('shape=box, style=bold', CASE WHEN event_name LIKE 'statement/com/%' THEN ' style=filled, color=darkseagreen' ELSE IF((timer_wait/1000000000000) > @@long_query_time, ' style=filled, color=red', ' style=filled, color=lightblue') END ) WHEN event_name LIKE 'transaction' THEN 'shape=box, style=filled, color=lightblue3' WHEN event_name LIKE 'stage/%' THEN 'style=filled, color=slategray3' WHEN event_name LIKE '%idle%' THEN 'shape=box, style=filled, color=firebrick3' ELSE '' END, '];\n' ) event, event_id FROM ( (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, CONCAT('trx_id: ', IFNULL(trx_id, ''), '\\n', 'gtid: ', IFNULL(gtid, ''), '\\n', 'state: ', state, '\\n', 'mode: ', access_mode, '\\n', 'isolation: ', isolation_level, '\\n', 'autocommit: ', autocommit, '\\n', 'savepoints: ', number_of_savepoints, '\\n' ) AS wait_info FROM performance_schema.events_transactions_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) UNION (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, CONCAT('statement: ', sql_text, '\\n', 'errors: ', errors, '\\n', 'warnings: ', warnings, '\\n', 'lock time: ', sys.format_time(lock_time),'\\n', 'rows affected: ', rows_affected, '\\n', 'rows sent: ', rows_sent, '\\n', 'rows examined: ', rows_examined, '\\n', 'tmp tables: ', created_tmp_tables, '\\n', 'tmp disk tables: ', created_tmp_disk_tables, '\\n' 'select scan: ', select_scan, '\\n', 'select full join: ', select_full_join, '\\n', 'select full range join: ', select_full_range_join, '\\n', 'select range: ', select_range, '\\n', 'select range check: ', select_range_check, '\\n', 'sort merge passes: ', sort_merge_passes, '\\n', 'sort rows: ', sort_rows, '\\n', 'sort range: ', sort_range, '\\n', 'sort scan: ', sort_scan, '\\n', 'no index used: ', IF(no_index_used, 'TRUE', 'FALSE'), '\\n', 'no good index used: ', IF(no_good_index_used, 'TRUE', 'FALSE'), '\\n' ) AS wait_info FROM performance_schema.events_statements_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) UNION (SELECT thread_id, event_id, event_name, timer_wait, timer_start, nesting_event_id, null AS wait_info FROM performance_schema.events_stages_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) UNION (SELECT thread_id, event_id, CONCAT(event_name, IF(event_name NOT LIKE 'wait/synch/mutex%', IFNULL(CONCAT(' - ', operation), ''), ''), IF(number_of_bytes IS NOT NULL, CONCAT(' ', number_of_bytes, ' bytes'), ''), IF(event_name LIKE 'wait/io/file%', '\\n', ''), IF(object_schema IS NOT NULL, CONCAT('\\nObject: ', object_schema, '.'), ''), IF(object_name IS NOT NULL, IF (event_name LIKE 'wait/io/socket%', CONCAT('\\n', IF (object_name LIKE ':0%', @@socket, object_name)), object_name), '' ), IF(index_name IS NOT NULL, CONCAT(' Index: ', index_name), ''), '\\n' ) AS event_name, timer_wait, timer_start, nesting_event_id, source AS wait_info FROM performance_schema.events_waits_history_long WHERE thread_id = in_thread_id AND event_id > v_min_event_id) ) events ORDER BY event_id; DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0; SELECT INSTRUMENTED INTO v_this_thread_enabed FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); CALL sys.ps_setup_disable_thread(CONNECTION_ID()); IF (in_auto_setup) THEN CALL sys.ps_setup_save(0); DELETE FROM performance_schema.setup_actors; UPDATE performance_schema.threads SET INSTRUMENTED = IF(THREAD_ID = in_thread_id, 'YES', 'NO'); UPDATE performance_schema.setup_consumers SET ENABLED = 'YES' WHERE NAME NOT LIKE '%\_history'; UPDATE performance_schema.setup_instruments SET ENABLED = 'YES', TIMED = 'YES'; END IF; IF (in_start_fresh) THEN TRUNCATE performance_schema.events_transactions_history_long; TRUNCATE performance_schema.events_statements_history_long; TRUNCATE performance_schema.events_stages_history_long; TRUNCATE performance_schema.events_waits_history_long; END IF; DROP TEMPORARY TABLE IF EXISTS tmp_events; CREATE TEMPORARY TABLE tmp_events ( event_id bigint unsigned NOT NULL, event longblob, PRIMARY KEY (event_id) ); INSERT INTO tmp_events VALUES (0, CONCAT('digraph events { rankdir=LR; nodesep=0.10;\n', '// Stack created .....: ', NOW(), '\n', '// MySQL version .....: ', VERSION(), '\n', '// MySQL hostname ....: ', @@hostname, '\n', '// MySQL port ........: ', @@port, '\n', '// MySQL socket ......: ', @@socket, '\n', '// MySQL user ........: ', CURRENT_USER(), '\n')); SELECT CONCAT('Data collection starting for THREAD_ID = ', in_thread_id) AS 'Info'; SET v_min_event_id = 0, v_start = UNIX_TIMESTAMP(), in_interval = IFNULL(in_interval, 1.00), in_max_runtime = IFNULL(in_max_runtime, 60.00); WHILE (v_runtime < in_max_runtime AND (SELECT INSTRUMENTED FROM performance_schema.threads WHERE THREAD_ID = in_thread_id) = 'YES') DO SET v_done = FALSE; OPEN c_stack; c_stack_loop: LOOP FETCH c_stack INTO v_event, v_min_event_id; IF v_done THEN LEAVE c_stack_loop; END IF; IF (LENGTH(v_event) > 0) THEN INSERT INTO tmp_events VALUES (v_min_event_id, v_event); END IF; END LOOP; CLOSE c_stack; SELECT SLEEP(in_interval) INTO @sleep; SET v_runtime = (UNIX_TIMESTAMP() - v_start); END WHILE; INSERT INTO tmp_events VALUES (v_min_event_id+1, '}'); SET @query = CONCAT('SELECT event FROM tmp_events ORDER BY event_id INTO OUTFILE ''', in_outfile, ''' FIELDS ESCAPED BY '''' LINES TERMINATED BY '''''); PREPARE stmt_output FROM @query; EXECUTE stmt_output; DEALLOCATE PREPARE stmt_output; SELECT CONCAT('Stack trace written to ', in_outfile) AS 'Info'; SELECT CONCAT('dot -Tpdf -o /tmp/stack_', in_thread_id, '.pdf ', in_outfile) AS 'Convert to PDF'; SELECT CONCAT('dot -Tpng -o /tmp/stack_', in_thread_id, '.png ', in_outfile) AS 'Convert to PNG'; DROP TEMPORARY TABLE tmp_events; IF (in_auto_setup) THEN CALL sys.ps_setup_reload_saved(); END IF; IF (v_this_thread_enabed = 'YES') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF; SET sql_log_bin = @log_bin; END ;; delimiter ; -- ---------------------------- -- Procedure structure for ps_truncate_all_tables -- ---------------------------- DROP PROCEDURE IF EXISTS `ps_truncate_all_tables`; delimiter ;; CREATE PROCEDURE `sys`.`ps_truncate_all_tables`(IN in_verbose BOOLEAN) MODIFIES SQL DATA DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Truncates all summary tables within Performance Schema, \n resetting all aggregated instrumentation as a snapshot.\n \n Parameters\n \n in_verbose (BOOLEAN):\n Whether to print each TRUNCATE statement before running\n \n Example\n \n mysql> CALL sys.ps_truncate_all_tables(false);\n +---------------------+\n | summary |\n +---------------------+\n | Truncated 44 tables |\n +---------------------+\n 1 row in set (0.10 sec)\n \n Query OK, 0 rows affected (0.10 sec)\n ' BEGIN DECLARE v_done INT DEFAULT FALSE; DECLARE v_total_tables INT DEFAULT 0; DECLARE v_ps_table VARCHAR(64); DECLARE ps_tables CURSOR FOR SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_schema = 'performance_schema' AND (table_name LIKE '%summary%' OR table_name LIKE '%history%'); DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = TRUE; OPEN ps_tables; ps_tables_loop: LOOP FETCH ps_tables INTO v_ps_table; IF v_done THEN LEAVE ps_tables_loop; END IF; SET @truncate_stmt := CONCAT('TRUNCATE TABLE performance_schema.', v_ps_table); IF in_verbose THEN SELECT CONCAT('Running: ', @truncate_stmt) AS status; END IF; PREPARE truncate_stmt FROM @truncate_stmt; EXECUTE truncate_stmt; DEALLOCATE PREPARE truncate_stmt; SET v_total_tables = v_total_tables + 1; END LOOP; CLOSE ps_tables; SELECT CONCAT('Truncated ', v_total_tables, ' tables') AS summary; END ;; delimiter ; -- ---------------------------- -- Function structure for quote_identifier -- ---------------------------- DROP FUNCTION IF EXISTS `quote_identifier`; delimiter ;; CREATE FUNCTION `sys`.`quote_identifier`(in_identifier TEXT) RETURNS text CHARSET utf8 NO SQL DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Takes an unquoted identifier (schema name, table name, etc.) and\n returns the identifier quoted with backticks.\n \n Parameters\n \n in_identifier (TEXT):\n The identifier to quote.\n \n Returns\n \n TEXT\n \n Example\n \n mysql> SELECT sys.quote_identifier(\'my_identifier\') AS Identifier;\n +-----------------+\n | Identifier |\n +-----------------+\n | `my_identifier` |\n +-----------------+\n 1 row in set (0.00 sec)\n \n mysql> SELECT sys.quote_identifier(\'my`idenfier\') AS Identifier;\n +----------------+\n | Identifier |\n +----------------+\n | `my``idenfier` |\n +----------------+\n 1 row in set (0.00 sec)\n ' BEGIN RETURN CONCAT('`', REPLACE(in_identifier, '`', '``'), '`'); END ;; delimiter ; -- ---------------------------- -- Procedure structure for statement_performance_analyzer -- ---------------------------- DROP PROCEDURE IF EXISTS `statement_performance_analyzer`; delimiter ;; CREATE PROCEDURE `sys`.`statement_performance_analyzer`(IN in_action ENUM('snapshot', 'overall', 'delta', 'create_table', 'create_tmp', 'save', 'cleanup'), IN in_table VARCHAR(129), IN in_views SET ('with_runtimes_in_95th_percentile', 'analysis', 'with_errors_or_warnings', 'with_full_table_scans', 'with_sorting', 'with_temp_tables', 'custom')) SQL SECURITY INVOKER COMMENT '\n Description\n \n Create a report of the statements running on the server.\n \n The views are calculated based on the overall and/or delta activity.\n \n Requires the SUPER privilege for \"SET sql_log_bin = 0;\".\n \n Parameters\n \n in_action (ENUM(\'snapshot\', \'overall\', \'delta\', \'create_tmp\', \'create_table\', \'save\', \'cleanup\')):\n The action to take. Supported actions are:\n * snapshot Store a snapshot. The default is to make a snapshot of the current content of\n performance_schema.events_statements_summary_by_digest, but by setting in_table\n this can be overwritten to copy the content of the specified table.\n The snapshot is stored in the sys.tmp_digests temporary table.\n * overall Generate analyzis based on the content specified by in_table. For the overall analyzis,\n in_table can be NOW() to use a fresh snapshot. This will overwrite an existing snapshot.\n Use NULL for in_table to use the existing snapshot. If in_table IS NULL and no snapshot\n exists, a new will be created.\n See also in_views and @sys.statement_performance_analyzer.limit.\n * delta Generate a delta analysis. The delta will be calculated between the reference table in\n in_table and the snapshot. An existing snapshot must exist.\n The action uses the sys.tmp_digests_delta temporary table.\n See also in_views and @sys.statement_performance_analyzer.limit.\n * create_table Create a regular table suitable for storing the snapshot for later use, e.g. for\n calculating deltas.\n * create_tmp Create a temporary table suitable for storing the snapshot for later use, e.g. for\n calculating deltas.\n * save Save the snapshot in the table specified by in_table. The table must exists and have\n the correct structure.\n If no snapshot exists, a new is created.\n * cleanup Remove the temporary tables used for the snapshot and delta.\n \n in_table (VARCHAR(129)):\n The table argument used for some actions. Use the format \'db1.t1\' or \'t1\' without using any backticks (`)\n for quoting. Periods (.) are not supported in the database and table names.\n \n The meaning of the table for each action supporting the argument is:\n \n * snapshot The snapshot is created based on the specified table. Set to NULL or NOW() to use\n the current content of performance_schema.events_statements_summary_by_digest.\n * overall The table with the content to create the overall analyzis for. The following values\n can be used:\n - A table name - use the content of that table.\n - NOW() - create a fresh snapshot and overwrite the existing snapshot.\n - NULL - use the last stored snapshot.\n * delta The table name is mandatory and specified the reference view to compare the currently\n stored snapshot against. If no snapshot exists, a new will be created.\n * create_table The name of the regular table to create.\n * create_tmp The name of the temporary table to create.\n * save The name of the table to save the currently stored snapshot into.\n \n in_views (SET (\'with_runtimes_in_95th_percentile\', \'analysis\', \'with_errors_or_warnings\',\n \'with_full_table_scans\', \'with_sorting\', \'with_temp_tables\', \'custom\'))\n Which views to include: * with_runtimes_in_95th_percentile Based on the sys.statements_with_runtimes_in_95th_percentile view * analysis Based on the sys.statement_analysis view * with_errors_or_warnings Based on the sys.statements_with_errors_or_warnings view * with_full_table_scans Based on the sys.statements_with_full_table_scans view * with_sorting Based on the sys.statements_with_sorting view * with_temp_tables Based on the sys.statements_with_temp_tables view * custom Use a custom view. This view must be specified in @sys.statement_performance_analyzer.view to an existing view or a query Default is to include all except \'custom\'. Configuration Options sys.statement_performance_analyzer.limit The maximum number of rows to include for the views that does not have a built-in limit (e.g. the 95th percentile view). If not set the limit is 100. sys.statement_performance_analyzer.view Used together with the \'custom\' view. If the value contains a space, it is considered a query, otherwise it must be an existing view querying the performance_schema.events_statements_summary_by_digest table. There cannot be any limit clause including in the query or view definition if @sys.statement_performance_analyzer.limit > 0. If specifying a view, use the same format as for in_table. sys.debug Whether to provide debugging output. Default is \'OFF\'. Set to \'ON\' to include. Example To create a report with the queries in the 95th percentile since last truncate of performance_schema.events_statements_summary_by_digest and the delta for a 1 minute period: 1. Create a temporary table to store the initial snapshot. 2. Create the initial snapshot. 3. Save the initial snapshot in the temporary table. 4. Wait one minute. 5. Create a new snapshot. 6. Perform analyzis based on the new snapshot. 7. Perform analyzis based on the delta between the initial and new snapshots. mysql> CALL sys.statement_performance_analyzer(\'create_tmp\', \'mydb.tmp_digests_ini\', NULL); Query OK, 0 rows affected (0.08 sec) mysql> CALL sys.statement_performance_analyzer(\'snapshot\', NULL, NULL); Query OK, 0 rows affected (0.02 sec) mysql> CALL sys.statement_performance_analyzer(\'save\', \'mydb.tmp_digests_ini\', NULL); Query OK, 0 rows affected (0.00 sec) mysql> DO SLEEP(60); Query OK, 0 rows affected (1 min 0.00 sec) mysql> CALL sys.statement_performance_analyzer(\'snapshot\', NULL, NULL); Query OK, 0 rows affected (0.02 sec) mysql> CALL sys.statement_performance_analyzer(\'overall\', NULL, \'with_runtimes_in_95th_percentile\'); +-----------------------------------------+ | Next Output | +-----------------------------------------+ | Queries with Runtime in 95th Percentile | +-----------------------------------------+ 1 row in set (0.05 sec) ... mysql> CALL sys.statement_performance_analyzer(\'delta\', \'mydb.tmp_digests_ini\', \'with_runtimes_in_95th_percentile\'); +-----------------------------------------+ | Next Output | +-----------------------------------------+ | Queries with Runtime in 95th Percentile | +-----------------------------------------+ 1 row in set (0.03 sec) ... To create an overall report of the 95th percentile queries and the top 10 queries with full table scans: mysql> CALL sys.statement_performance_analyzer(\'snapshot\', NULL, NULL); Query OK, 0 rows affected (0.01 sec) mysql> SET @sys.statement_performance_analyzer.limit = 10; Query OK, 0 rows affected (0.00 sec) mysql> CALL sys.statement_performance_analyzer(\'overall\', NULL, \'with_runtimes_in_95th_percentile,with_full_table_scans\'); +-----------------------------------------+ | Next Output | +-----------------------------------------+ | Queries with Runtime in 95th Percentile | +-----------------------------------------+ 1 row in set (0.01 sec) ... +-------------------------------------+ | Next Output | +-------------------------------------+ | Top 10 Queries with Full Table Scan | +-------------------------------------+ 1 row in set (0.09 sec) ... Use a custom view showing the top 10 query sorted by total execution time refreshing the view every minute using the watch command in Linux. mysql> CREATE OR REPLACE VIEW mydb.my_statements AS -> SELECT sys.format_statement(DIGEST_TEXT) AS query, -> SCHEMA_NAME AS db, -> COUNT_STAR AS exec_count, -> sys.format_time(SUM_TIMER_WAIT) AS total_latency, -> sys.format_time(AVG_TIMER_WAIT) AS avg_latency, -> ROUND(IFNULL(SUM_ROWS_SENT / NULLIF(COUNT_STAR, 0), 0)) AS rows_sent_avg, -> ROUND(IFNULL(SUM_ROWS_EXAMINED / NULLIF(COUNT_STAR, 0), 0)) AS rows_examined_avg, -> ROUND(IFNULL(SUM_ROWS_AFFECTED / NULLIF(COUNT_STAR, 0), 0)) AS rows_affected_avg, -> DIGEST AS digest -> FROM performance_schema.events_statements_summary_by_digest -> ORDER BY SUM_TIMER_WAIT DESC; Query OK, 0 rows affected (0.01 sec) mysql> CALL sys.statement_performance_analyzer(\'create_table\', \'mydb.digests_prev\', NULL); Query OK, 0 rows affected (0.10 sec) shell$ watch -n 60 \"mysql sys --table -e \" > SET @sys.statement_performance_analyzer.view = \'mydb.my_statements\'; > SET @sys.statement_performance_analyzer.limit = 10; > CALL statement_performance_analyzer(\'snapshot\', NULL, NULL); > CALL statement_performance_analyzer(\'delta\', \'mydb.digests_prev\', \'custom\'); > CALL statement_performance_analyzer(\'save\', \'mydb.digests_prev\', NULL); > \"\" Every 60.0s: mysql sys --table -e \" ... Mon Dec 22 10:58:51 2014 +----------------------------------+ | Next Output | +----------------------------------+ | Top 10 Queries Using Custom View | +----------------------------------+ +-------------------+-------+------------+---------------+-------------+---------------+-------------------+-------------------+----------------------------------+ | query | db | exec_count | total_latency | avg_latency | rows_sent_avg | rows_examined_avg | rows_affected_avg | digest | +-------------------+-------+------------+---------------+-------------+---------------+-------------------+-------------------+----------------------------------+ ... ' BEGIN DECLARE v_table_exists, v_tmp_digests_table_exists, v_custom_view_exists ENUM('', 'BASE TABLE', 'VIEW', 'TEMPORARY') DEFAULT ''; DECLARE v_this_thread_enabled ENUM('YES', 'NO'); DECLARE v_force_new_snapshot BOOLEAN DEFAULT FALSE; DECLARE v_digests_table VARCHAR(133); DECLARE v_quoted_table, v_quoted_custom_view VARCHAR(133) DEFAULT ''; DECLARE v_table_db, v_table_name, v_custom_db, v_custom_name VARCHAR(64); DECLARE v_digest_table_template, v_checksum_ref, v_checksum_table text; DECLARE v_sql longtext; DECLARE v_error_msg VARCHAR(128); SELECT INSTRUMENTED INTO v_this_thread_enabled FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); IF (v_this_thread_enabled = 'YES') THEN CALL sys.ps_setup_disable_thread(CONNECTION_ID()); END IF; SET @log_bin := @@sql_log_bin; IF (@log_bin = 1) THEN SET sql_log_bin = 0; END IF; IF (@sys.statement_performance_analyzer.limit IS NULL) THEN SET @sys.statement_performance_analyzer.limit = sys.sys_get_config('statement_performance_analyzer.limit', '100'); END IF; IF (@sys.debug IS NULL) THEN SET @sys.debug = sys.sys_get_config('debug' , 'OFF'); END IF; IF (in_table = 'NOW()') THEN SET v_force_new_snapshot = TRUE, in_table = NULL; ELSEIF (in_table IS NOT NULL) THEN IF (NOT INSTR(in_table, '.')) THEN SET v_table_db = DATABASE(), v_table_name = in_table; ELSE SET v_table_db = SUBSTRING_INDEX(in_table, '.', 1); SET v_table_name = SUBSTRING(in_table, CHAR_LENGTH(v_table_db)+2); END IF; SET v_quoted_table = CONCAT('`', v_table_db, '`.`', v_table_name, '`'); IF (@sys.debug = 'ON') THEN SELECT CONCAT('in_table is: db = ''', v_table_db, ''', table = ''', v_table_name, '''') AS 'Debug'; END IF; IF (v_table_db = DATABASE() AND (v_table_name = 'tmp_digests' OR v_table_name = 'tmp_digests_delta')) THEN SET v_error_msg = CONCAT('Invalid value for in_table: ', v_quoted_table, ' is reserved table name.'); SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = v_error_msg; END IF; CALL sys.table_exists(v_table_db, v_table_name, v_table_exists); IF (@sys.debug = 'ON') THEN SELECT CONCAT('v_table_exists = ', v_table_exists) AS 'Debug'; END IF; IF (v_table_exists = 'BASE TABLE') THEN SET v_checksum_ref = ( SELECT GROUP_CONCAT(CONCAT(COLUMN_NAME, COLUMN_TYPE) ORDER BY ORDINAL_POSITION) AS Checksum FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = 'performance_schema' AND TABLE_NAME = 'events_statements_summary_by_digest' ), v_checksum_table = ( SELECT GROUP_CONCAT(CONCAT(COLUMN_NAME, COLUMN_TYPE) ORDER BY ORDINAL_POSITION) AS Checksum FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = v_table_db AND TABLE_NAME = v_table_name ); IF (v_checksum_ref <> v_checksum_table) THEN SET v_error_msg = CONCAT('The table ', IF(CHAR_LENGTH(v_quoted_table) > 93, CONCAT('...', SUBSTRING(v_quoted_table, -90)), v_quoted_table), ' has the wrong definition.'); SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = v_error_msg; END IF; END IF; END IF; IF (in_views IS NULL OR in_views = '') THEN SET in_views = 'with_runtimes_in_95th_percentile,analysis,with_errors_or_warnings,with_full_table_scans,with_sorting,with_temp_tables'; END IF; CALL sys.table_exists(DATABASE(), 'tmp_digests', v_tmp_digests_table_exists); IF (@sys.debug = 'ON') THEN SELECT CONCAT('v_tmp_digests_table_exists = ', v_tmp_digests_table_exists) AS 'Debug'; END IF; CASE WHEN in_action IN ('snapshot', 'overall') THEN IF (in_table IS NOT NULL) THEN IF (NOT v_table_exists IN ('TEMPORARY', 'BASE TABLE')) THEN SET v_error_msg = CONCAT('The ', in_action, ' action requires in_table to be NULL, NOW() or specify an existing table.', ' The table ', IF(CHAR_LENGTH(v_quoted_table) > 16, CONCAT('...', SUBSTRING(v_quoted_table, -13)), v_quoted_table), ' does not exist.'); SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = v_error_msg; END IF; END IF; WHEN in_action IN ('delta', 'save') THEN IF (v_table_exists NOT IN ('TEMPORARY', 'BASE TABLE')) THEN SET v_error_msg = CONCAT('The ', in_action, ' action requires in_table to be an existing table.', IF(in_table IS NOT NULL, CONCAT(' The table ', IF(CHAR_LENGTH(v_quoted_table) > 39, CONCAT('...', SUBSTRING(v_quoted_table, -36)), v_quoted_table), ' does not exist.'), '')); SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = v_error_msg; END IF; IF (in_action = 'delta' AND v_tmp_digests_table_exists <> 'TEMPORARY') THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'An existing snapshot generated with the statement_performance_analyzer() must exist.'; END IF; WHEN in_action = 'create_tmp' THEN IF (v_table_exists = 'TEMPORARY') THEN SET v_error_msg = CONCAT('Cannot create the table ', IF(CHAR_LENGTH(v_quoted_table) > 72, CONCAT('...', SUBSTRING(v_quoted_table, -69)), v_quoted_table), ' as it already exists.'); SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = v_error_msg; END IF; WHEN in_action = 'create_table' THEN IF (v_table_exists <> '') THEN SET v_error_msg = CONCAT('Cannot create the table ', IF(CHAR_LENGTH(v_quoted_table) > 52, CONCAT('...', SUBSTRING(v_quoted_table, -49)), v_quoted_table), ' as it already exists', IF(v_table_exists = 'TEMPORARY', ' as a temporary table.', '.')); SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = v_error_msg; END IF; WHEN in_action = 'cleanup' THEN DO (SELECT 1); ELSE SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Unknown action. Supported actions are: cleanup, create_table, create_tmp, delta, overall, save, snapshot'; END CASE; SET v_digest_table_template = 'CREATE %{TEMPORARY}TABLE %{TABLE_NAME} ( `SCHEMA_NAME` varchar(64) DEFAULT NULL, `DIGEST` varchar(32) DEFAULT NULL, `DIGEST_TEXT` longtext, `COUNT_STAR` bigint(20) unsigned NOT NULL, `SUM_TIMER_WAIT` bigint(20) unsigned NOT NULL, `MIN_TIMER_WAIT` bigint(20) unsigned NOT NULL, `AVG_TIMER_WAIT` bigint(20) unsigned NOT NULL, `MAX_TIMER_WAIT` bigint(20) unsigned NOT NULL, `SUM_LOCK_TIME` bigint(20) unsigned NOT NULL, `SUM_ERRORS` bigint(20) unsigned NOT NULL, `SUM_WARNINGS` bigint(20) unsigned NOT NULL, `SUM_ROWS_AFFECTED` bigint(20) unsigned NOT NULL, `SUM_ROWS_SENT` bigint(20) unsigned NOT NULL, `SUM_ROWS_EXAMINED` bigint(20) unsigned NOT NULL, `SUM_CREATED_TMP_DISK_TABLES` bigint(20) unsigned NOT NULL, `SUM_CREATED_TMP_TABLES` bigint(20) unsigned NOT NULL, `SUM_SELECT_FULL_JOIN` bigint(20) unsigned NOT NULL, `SUM_SELECT_FULL_RANGE_JOIN` bigint(20) unsigned NOT NULL, `SUM_SELECT_RANGE` bigint(20) unsigned NOT NULL, `SUM_SELECT_RANGE_CHECK` bigint(20) unsigned NOT NULL, `SUM_SELECT_SCAN` bigint(20) unsigned NOT NULL, `SUM_SORT_MERGE_PASSES` bigint(20) unsigned NOT NULL, `SUM_SORT_RANGE` bigint(20) unsigned NOT NULL, `SUM_SORT_ROWS` bigint(20) unsigned NOT NULL, `SUM_SORT_SCAN` bigint(20) unsigned NOT NULL, `SUM_NO_INDEX_USED` bigint(20) unsigned NOT NULL, `SUM_NO_GOOD_INDEX_USED` bigint(20) unsigned NOT NULL, `FIRST_SEEN` timestamp NULL DEFAULT NULL, `LAST_SEEN` timestamp NULL DEFAULT NULL, INDEX (SCHEMA_NAME, DIGEST) ) DEFAULT CHARSET=utf8'; IF (v_force_new_snapshot OR in_action = 'snapshot' OR (in_action = 'overall' AND in_table IS NULL) OR (in_action = 'save' AND v_tmp_digests_table_exists <> 'TEMPORARY') ) THEN IF (v_tmp_digests_table_exists = 'TEMPORARY') THEN IF (@sys.debug = 'ON') THEN SELECT 'DROP TEMPORARY TABLE IF EXISTS tmp_digests' AS 'Debug'; END IF; DROP TEMPORARY TABLE IF EXISTS tmp_digests; END IF; CALL sys.execute_prepared_stmt(REPLACE(REPLACE(v_digest_table_template, '%{TEMPORARY}', 'TEMPORARY '), '%{TABLE_NAME}', 'tmp_digests')); SET v_sql = CONCAT('INSERT INTO tmp_digests SELECT * FROM ', IF(in_table IS NULL OR in_action = 'save', 'performance_schema.events_statements_summary_by_digest', v_quoted_table)); CALL sys.execute_prepared_stmt(v_sql); END IF; IF (in_action IN ('create_table', 'create_tmp')) THEN IF (in_action = 'create_table') THEN CALL sys.execute_prepared_stmt(REPLACE(REPLACE(v_digest_table_template, '%{TEMPORARY}', ''), '%{TABLE_NAME}', v_quoted_table)); ELSE CALL sys.execute_prepared_stmt(REPLACE(REPLACE(v_digest_table_template, '%{TEMPORARY}', 'TEMPORARY '), '%{TABLE_NAME}', v_quoted_table)); END IF; ELSEIF (in_action = 'save') THEN CALL sys.execute_prepared_stmt(CONCAT('DELETE FROM ', v_quoted_table)); CALL sys.execute_prepared_stmt(CONCAT('INSERT INTO ', v_quoted_table, ' SELECT * FROM tmp_digests')); ELSEIF (in_action = 'cleanup') THEN DROP TEMPORARY TABLE IF EXISTS sys.tmp_digests; DROP TEMPORARY TABLE IF EXISTS sys.tmp_digests_delta; ELSEIF (in_action IN ('overall', 'delta')) THEN IF (in_action = 'overall') THEN IF (in_table IS NULL) THEN SET v_digests_table = 'tmp_digests'; ELSE SET v_digests_table = v_quoted_table; END IF; ELSE SET v_digests_table = 'tmp_digests_delta'; DROP TEMPORARY TABLE IF EXISTS tmp_digests_delta; CREATE TEMPORARY TABLE tmp_digests_delta LIKE tmp_digests; SET v_sql = CONCAT('INSERT INTO tmp_digests_delta SELECT `d_end`.`SCHEMA_NAME`, `d_end`.`DIGEST`, `d_end`.`DIGEST_TEXT`, `d_end`.`COUNT_STAR`-IFNULL(`d_start`.`COUNT_STAR`, 0) AS ''COUNT_STAR'', `d_end`.`SUM_TIMER_WAIT`-IFNULL(`d_start`.`SUM_TIMER_WAIT`, 0) AS ''SUM_TIMER_WAIT'', `d_end`.`MIN_TIMER_WAIT` AS ''MIN_TIMER_WAIT'', IFNULL((`d_end`.`SUM_TIMER_WAIT`-IFNULL(`d_start`.`SUM_TIMER_WAIT`, 0))/NULLIF(`d_end`.`COUNT_STAR`-IFNULL(`d_start`.`COUNT_STAR`, 0), 0), 0) AS ''AVG_TIMER_WAIT'', `d_end`.`MAX_TIMER_WAIT` AS ''MAX_TIMER_WAIT'', `d_end`.`SUM_LOCK_TIME`-IFNULL(`d_start`.`SUM_LOCK_TIME`, 0) AS ''SUM_LOCK_TIME'', `d_end`.`SUM_ERRORS`-IFNULL(`d_start`.`SUM_ERRORS`, 0) AS ''SUM_ERRORS'', `d_end`.`SUM_WARNINGS`-IFNULL(`d_start`.`SUM_WARNINGS`, 0) AS ''SUM_WARNINGS'', `d_end`.`SUM_ROWS_AFFECTED`-IFNULL(`d_start`.`SUM_ROWS_AFFECTED`, 0) AS ''SUM_ROWS_AFFECTED'', `d_end`.`SUM_ROWS_SENT`-IFNULL(`d_start`.`SUM_ROWS_SENT`, 0) AS ''SUM_ROWS_SENT'', `d_end`.`SUM_ROWS_EXAMINED`-IFNULL(`d_start`.`SUM_ROWS_EXAMINED`, 0) AS ''SUM_ROWS_EXAMINED'', `d_end`.`SUM_CREATED_TMP_DISK_TABLES`-IFNULL(`d_start`.`SUM_CREATED_TMP_DISK_TABLES`, 0) AS ''SUM_CREATED_TMP_DISK_TABLES'', `d_end`.`SUM_CREATED_TMP_TABLES`-IFNULL(`d_start`.`SUM_CREATED_TMP_TABLES`, 0) AS ''SUM_CREATED_TMP_TABLES'', `d_end`.`SUM_SELECT_FULL_JOIN`-IFNULL(`d_start`.`SUM_SELECT_FULL_JOIN`, 0) AS ''SUM_SELECT_FULL_JOIN'', `d_end`.`SUM_SELECT_FULL_RANGE_JOIN`-IFNULL(`d_start`.`SUM_SELECT_FULL_RANGE_JOIN`, 0) AS ''SUM_SELECT_FULL_RANGE_JOIN'', `d_end`.`SUM_SELECT_RANGE`-IFNULL(`d_start`.`SUM_SELECT_RANGE`, 0) AS ''SUM_SELECT_RANGE'', `d_end`.`SUM_SELECT_RANGE_CHECK`-IFNULL(`d_start`.`SUM_SELECT_RANGE_CHECK`, 0) AS ''SUM_SELECT_RANGE_CHECK'', `d_end`.`SUM_SELECT_SCAN`-IFNULL(`d_start`.`SUM_SELECT_SCAN`, 0) AS ''SUM_SELECT_SCAN'', `d_end`.`SUM_SORT_MERGE_PASSES`-IFNULL(`d_start`.`SUM_SORT_MERGE_PASSES`, 0) AS ''SUM_SORT_MERGE_PASSES'', `d_end`.`SUM_SORT_RANGE`-IFNULL(`d_start`.`SUM_SORT_RANGE`, 0) AS ''SUM_SORT_RANGE'', `d_end`.`SUM_SORT_ROWS`-IFNULL(`d_start`.`SUM_SORT_ROWS`, 0) AS ''SUM_SORT_ROWS'', `d_end`.`SUM_SORT_SCAN`-IFNULL(`d_start`.`SUM_SORT_SCAN`, 0) AS ''SUM_SORT_SCAN'', `d_end`.`SUM_NO_INDEX_USED`-IFNULL(`d_start`.`SUM_NO_INDEX_USED`, 0) AS ''SUM_NO_INDEX_USED'', `d_end`.`SUM_NO_GOOD_INDEX_USED`-IFNULL(`d_start`.`SUM_NO_GOOD_INDEX_USED`, 0) AS ''SUM_NO_GOOD_INDEX_USED'', `d_end`.`FIRST_SEEN`, `d_end`.`LAST_SEEN` FROM tmp_digests d_end LEFT OUTER JOIN ', v_quoted_table, ' d_start ON `d_start`.`DIGEST` = `d_end`.`DIGEST` AND (`d_start`.`SCHEMA_NAME` = `d_end`.`SCHEMA_NAME` OR (`d_start`.`SCHEMA_NAME` IS NULL AND `d_end`.`SCHEMA_NAME` IS NULL) ) WHERE `d_end`.`COUNT_STAR`-IFNULL(`d_start`.`COUNT_STAR`, 0) > 0'); CALL sys.execute_prepared_stmt(v_sql); END IF; IF (FIND_IN_SET('with_runtimes_in_95th_percentile', in_views)) THEN SELECT 'Queries with Runtime in 95th Percentile' AS 'Next Output'; DROP TEMPORARY TABLE IF EXISTS tmp_digest_avg_latency_distribution1; DROP TEMPORARY TABLE IF EXISTS tmp_digest_avg_latency_distribution2; DROP TEMPORARY TABLE IF EXISTS tmp_digest_95th_percentile_by_avg_us; CREATE TEMPORARY TABLE tmp_digest_avg_latency_distribution1 ( cnt bigint unsigned NOT NULL, avg_us decimal(21,0) NOT NULL, PRIMARY KEY (avg_us) ) ENGINE=InnoDB; SET v_sql = CONCAT('INSERT INTO tmp_digest_avg_latency_distribution1 SELECT COUNT(*) cnt, ROUND(avg_timer_wait/1000000) AS avg_us FROM ', v_digests_table, ' GROUP BY avg_us'); CALL sys.execute_prepared_stmt(v_sql); CREATE TEMPORARY TABLE tmp_digest_avg_latency_distribution2 LIKE tmp_digest_avg_latency_distribution1; INSERT INTO tmp_digest_avg_latency_distribution2 SELECT * FROM tmp_digest_avg_latency_distribution1; CREATE TEMPORARY TABLE tmp_digest_95th_percentile_by_avg_us ( avg_us decimal(21,0) NOT NULL, percentile decimal(46,4) NOT NULL, PRIMARY KEY (avg_us) ) ENGINE=InnoDB; SET v_sql = CONCAT('INSERT INTO tmp_digest_95th_percentile_by_avg_us SELECT s2.avg_us avg_us, IFNULL(SUM(s1.cnt)/NULLIF((SELECT COUNT(*) FROM ', v_digests_table, '), 0), 0) percentile FROM tmp_digest_avg_latency_distribution1 AS s1 JOIN tmp_digest_avg_latency_distribution2 AS s2 ON s1.avg_us <= s2.avg_us GROUP BY s2.avg_us HAVING percentile > 0.95 ORDER BY percentile LIMIT 1'); CALL sys.execute_prepared_stmt(v_sql); SET v_sql = REPLACE( REPLACE( (SELECT VIEW_DEFINITION FROM information_schema.VIEWS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'statements_with_runtimes_in_95th_percentile' ), '`performance_schema`.`events_statements_summary_by_digest`', v_digests_table ), 'sys.x$ps_digest_95th_percentile_by_avg_us', '`sys`.`x$ps_digest_95th_percentile_by_avg_us`' ); CALL sys.execute_prepared_stmt(v_sql); DROP TEMPORARY TABLE tmp_digest_avg_latency_distribution1; DROP TEMPORARY TABLE tmp_digest_avg_latency_distribution2; DROP TEMPORARY TABLE tmp_digest_95th_percentile_by_avg_us; END IF; IF (FIND_IN_SET('analysis', in_views)) THEN SELECT CONCAT('Top ', @sys.statement_performance_analyzer.limit, ' Queries Ordered by Total Latency') AS 'Next Output'; SET v_sql = REPLACE( (SELECT VIEW_DEFINITION FROM information_schema.VIEWS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'statement_analysis' ), '`performance_schema`.`events_statements_summary_by_digest`', v_digests_table ); IF (@sys.statement_performance_analyzer.limit > 0) THEN SET v_sql = CONCAT(v_sql, ' LIMIT ', @sys.statement_performance_analyzer.limit); END IF; CALL sys.execute_prepared_stmt(v_sql); END IF; IF (FIND_IN_SET('with_errors_or_warnings', in_views)) THEN SELECT CONCAT('Top ', @sys.statement_performance_analyzer.limit, ' Queries with Errors') AS 'Next Output'; SET v_sql = REPLACE( (SELECT VIEW_DEFINITION FROM information_schema.VIEWS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'statements_with_errors_or_warnings' ), '`performance_schema`.`events_statements_summary_by_digest`', v_digests_table ); IF (@sys.statement_performance_analyzer.limit > 0) THEN SET v_sql = CONCAT(v_sql, ' LIMIT ', @sys.statement_performance_analyzer.limit); END IF; CALL sys.execute_prepared_stmt(v_sql); END IF; IF (FIND_IN_SET('with_full_table_scans', in_views)) THEN SELECT CONCAT('Top ', @sys.statement_performance_analyzer.limit, ' Queries with Full Table Scan') AS 'Next Output'; SET v_sql = REPLACE( (SELECT VIEW_DEFINITION FROM information_schema.VIEWS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'statements_with_full_table_scans' ), '`performance_schema`.`events_statements_summary_by_digest`', v_digests_table ); IF (@sys.statement_performance_analyzer.limit > 0) THEN SET v_sql = CONCAT(v_sql, ' LIMIT ', @sys.statement_performance_analyzer.limit); END IF; CALL sys.execute_prepared_stmt(v_sql); END IF; IF (FIND_IN_SET('with_sorting', in_views)) THEN SELECT CONCAT('Top ', @sys.statement_performance_analyzer.limit, ' Queries with Sorting') AS 'Next Output'; SET v_sql = REPLACE( (SELECT VIEW_DEFINITION FROM information_schema.VIEWS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'statements_with_sorting' ), '`performance_schema`.`events_statements_summary_by_digest`', v_digests_table ); IF (@sys.statement_performance_analyzer.limit > 0) THEN SET v_sql = CONCAT(v_sql, ' LIMIT ', @sys.statement_performance_analyzer.limit); END IF; CALL sys.execute_prepared_stmt(v_sql); END IF; IF (FIND_IN_SET('with_temp_tables', in_views)) THEN SELECT CONCAT('Top ', @sys.statement_performance_analyzer.limit, ' Queries with Internal Temporary Tables') AS 'Next Output'; SET v_sql = REPLACE( (SELECT VIEW_DEFINITION FROM information_schema.VIEWS WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'statements_with_temp_tables' ), '`performance_schema`.`events_statements_summary_by_digest`', v_digests_table ); IF (@sys.statement_performance_analyzer.limit > 0) THEN SET v_sql = CONCAT(v_sql, ' LIMIT ', @sys.statement_performance_analyzer.limit); END IF; CALL sys.execute_prepared_stmt(v_sql); END IF; IF (FIND_IN_SET('custom', in_views)) THEN SELECT CONCAT('Top ', @sys.statement_performance_analyzer.limit, ' Queries Using Custom View') AS 'Next Output'; IF (@sys.statement_performance_analyzer.view IS NULL) THEN SET @sys.statement_performance_analyzer.view = sys.sys_get_config('statement_performance_analyzer.view', NULL); END IF; IF (@sys.statement_performance_analyzer.view IS NULL) THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'The @sys.statement_performance_analyzer.view user variable must be set with the view or query to use.'; END IF; IF (NOT INSTR(@sys.statement_performance_analyzer.view, ' ')) THEN IF (NOT INSTR(@sys.statement_performance_analyzer.view, '.')) THEN SET v_custom_db = DATABASE(), v_custom_name = @sys.statement_performance_analyzer.view; ELSE SET v_custom_db = SUBSTRING_INDEX(@sys.statement_performance_analyzer.view, '.', 1); SET v_custom_name = SUBSTRING(@sys.statement_performance_analyzer.view, CHAR_LENGTH(v_custom_db)+2); END IF; CALL sys.table_exists(v_custom_db, v_custom_name, v_custom_view_exists); IF (v_custom_view_exists <> 'VIEW') THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'The @sys.statement_performance_analyzer.view user variable is set but specified neither an existing view nor a query.'; END IF; SET v_sql = REPLACE( (SELECT VIEW_DEFINITION FROM information_schema.VIEWS WHERE TABLE_SCHEMA = v_custom_db AND TABLE_NAME = v_custom_name ), '`performance_schema`.`events_statements_summary_by_digest`', v_digests_table ); ELSE SET v_sql = REPLACE(@sys.statement_performance_analyzer.view, '`performance_schema`.`events_statements_summary_by_digest`', v_digests_table); END IF; IF (@sys.statement_performance_analyzer.limit > 0) THEN SET v_sql = CONCAT(v_sql, ' LIMIT ', @sys.statement_performance_analyzer.limit); END IF; CALL sys.execute_prepared_stmt(v_sql); END IF; END IF; IF (v_this_thread_enabled = 'YES') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF; IF (@log_bin = 1) THEN SET sql_log_bin = @log_bin; END IF; END ;; delimiter ; -- ---------------------------- -- Function structure for sys_get_config -- ---------------------------- DROP FUNCTION IF EXISTS `sys_get_config`; delimiter ;; CREATE FUNCTION `sys`.`sys_get_config`(in_variable_name VARCHAR(128), in_default_value VARCHAR(128)) RETURNS varchar(128) CHARSET utf8 READS SQL DATA DETERMINISTIC SQL SECURITY INVOKER COMMENT '\n Description\n \n Returns the value for the requested variable using the following logic:\n \n 1. If the option exists in sys.sys_config return the value from there.\n 2. Else fall back on the provided default value.\n \n Notes for using sys_get_config():\n \n * If the default value argument to sys_get_config() is NULL and case 2. is reached, NULL is returned.\n It is then expected that the caller is able to handle NULL for the given configuration option.\n * The convention is to name the user variables @sys.<name of variable>. It is <name of variable> that\n is stored in the sys_config table and is what is expected as the argument to sys_get_config().\n * If you want to check whether the configuration option has already been set and if not assign with\n the return value of sys_get_config() you can use IFNULL(...) (see example below). However this should\n not be done inside a loop (e.g. for each row in a result set) as for repeated calls where assignment\n is only needed in the first iteration using IFNULL(...) is expected to be significantly slower than\n using an IF (...) THEN ... END IF; block (see example below).\n \n Parameters\n \n in_variable_name (VARCHAR(128)):\n The name of the config option to return the value for.\n \n in_default_value (VARCHAR(128)):\n The default value to return if the variable does not exist in sys.sys_config.\n \n Returns\n \n VARCHAR(128)\n \n Example\n \n mysql> SELECT sys.sys_get_config(\'statement_truncate_len\', 128) AS Value;\n +-------+\n | Value |\n +-------+\n | 64 |\n +-------+\n 1 row in set (0.00 sec)\n \n mysql> SET @sys.statement_truncate_len = IFNULL(@sys.statement_truncate_len, sys.sys_get_config(\'statement_truncate_len\', 64));\n Query OK, 0 rows affected (0.00 sec)\n \n IF (@sys.statement_truncate_len IS NULL) THEN\n SET @sys.statement_truncate_len = sys.sys_get_config(\'statement_truncate_len\', 64);\n END IF;\n ' BEGIN DECLARE v_value VARCHAR(128) DEFAULT NULL; SET v_value = (SELECT value FROM sys.sys_config WHERE variable = in_variable_name); IF (v_value IS NULL) THEN SET v_value = in_default_value; END IF; RETURN v_value; END ;; delimiter ; -- ---------------------------- -- Procedure structure for table_exists -- ---------------------------- DROP PROCEDURE IF EXISTS `table_exists`; delimiter ;; CREATE PROCEDURE `sys`.`table_exists`(IN in_db VARCHAR(64), IN in_table VARCHAR(64), OUT out_exists ENUM('', 'BASE TABLE', 'VIEW', 'TEMPORARY')) SQL SECURITY INVOKER COMMENT '\n Description\n \n Tests whether the table specified in in_db and in_table exists either as a regular\n table, or as a temporary table. The returned value corresponds to the table that\n will be used, so if there\'s both a temporary and a permanent table with the given\n name, then \'TEMPORARY\' will be returned.\n \n Parameters\n \n in_db (VARCHAR(64)):\n The database name to check for the existance of the table in.\n \n in_table (VARCHAR(64)):\n The name of the table to check the existance of.\n \n out_exists ENUM(\'\', \'BASE TABLE\', \'VIEW\', \'TEMPORARY\'):\n The return value: whether the table exists. The value is one of:\n * \'\' - the table does not exist neither as a base table, view, nor temporary table.\n * \'BASE TABLE\' - the table name exists as a permanent base table table.\n * \'VIEW\' - the table name exists as a view.\n * \'TEMPORARY\' - the table name exists as a temporary table.\n \n Example\n \n mysql> CREATE DATABASE db1;\n Query OK, 1 row affected (0.07 sec)\n \n mysql> use db1;\n Database changed\n mysql> CREATE TABLE t1 (id INT PRIMARY KEY);\n Query OK, 0 rows affected (0.08 sec)\n \n mysql> CREATE TABLE t2 (id INT PRIMARY KEY);\n Query OK, 0 rows affected (0.08 sec)\n \n mysql> CREATE view v_t1 AS SELECT * FROM t1;\n Query OK, 0 rows affected (0.00 sec)\n \n mysql> CREATE TEMPORARY TABLE t1 (id INT PRIMARY KEY);\n Query OK, 0 rows affected (0.00 sec)\n \n mysql> CALL sys.table_exists(\'db1\', \'t1\', @exists); SELECT @exists;\n Query OK, 0 rows affected (0.00 sec)\n \n +------------+\n | @exists |\n +------------+\n | TEMPORARY |\n +------------+\n 1 row in set (0.00 sec)\n \n mysql> CALL sys.table_exists(\'db1\', \'t2\', @exists); SELECT @exists;\n Query OK, 0 rows affected (0.00 sec)\n \n +------------+\n | @exists |\n +------------+\n | BASE TABLE |\n +------------+\n 1 row in set (0.01 sec)\n \n mysql> CALL sys.table_exists(\'db1\', \'v_t1\', @exists); SELECT @exists;\n Query OK, 0 rows affected (0.00 sec)\n \n +---------+\n | @exists |\n +---------+\n | VIEW |\n +---------+\n 1 row in set (0.00 sec)\n \n mysql> CALL sys.table_exists(\'db1\', \'t3\', @exists); SELECT @exists;\n Query OK, 0 rows affected (0.01 sec)\n \n +---------+\n | @exists |\n +---------+\n | |\n +---------+\n 1 row in set (0.00 sec)\n ' BEGIN DECLARE v_error BOOLEAN DEFAULT FALSE; DECLARE CONTINUE HANDLER FOR 1050 SET v_error = TRUE; DECLARE CONTINUE HANDLER FOR 1146 SET v_error = TRUE; SET out_exists = ''; IF (EXISTS(SELECT 1 FROM information_schema.TABLES WHERE TABLE_SCHEMA = in_db AND TABLE_NAME = in_table)) THEN SET @sys.tmp.table_exists.SQL = CONCAT('CREATE TEMPORARY TABLE `', in_db, '`.`', in_table, '` (id INT PRIMARY KEY)'); PREPARE stmt_create_table FROM @sys.tmp.table_exists.SQL; EXECUTE stmt_create_table; DEALLOCATE PREPARE stmt_create_table; IF (v_error) THEN SET out_exists = 'TEMPORARY'; ELSE SET @sys.tmp.table_exists.SQL = CONCAT('DROP TEMPORARY TABLE `', in_db, '`.`', in_table, '`'); PREPARE stmt_drop_table FROM @sys.tmp.table_exists.SQL; EXECUTE stmt_drop_table; DEALLOCATE PREPARE stmt_drop_table; SET out_exists = (SELECT TABLE_TYPE FROM information_schema.TABLES WHERE TABLE_SCHEMA = in_db AND TABLE_NAME = in_table); END IF; ELSE SET @sys.tmp.table_exists.SQL = CONCAT('SELECT COUNT(*) FROM `', in_db, '`.`', in_table, '`'); PREPARE stmt_select FROM @sys.tmp.table_exists.SQL; IF (NOT v_error) THEN DEALLOCATE PREPARE stmt_select; SET out_exists = 'TEMPORARY'; END IF; END IF; END ;; delimiter ; -- ---------------------------- -- Function structure for version_major -- ---------------------------- DROP FUNCTION IF EXISTS `version_major`; delimiter ;; CREATE FUNCTION `sys`.`version_major`() RETURNS tinyint(3) unsigned NO SQL SQL SECURITY INVOKER COMMENT '\n Description\n \n Returns the major version of MySQL Server.\n \n Returns\n \n TINYINT UNSIGNED\n \n Example\n \n mysql> SELECT VERSION(), sys.version_major();\n +--------------------------------------+---------------------+\n | VERSION() | sys.version_major() |\n +--------------------------------------+---------------------+\n | 5.7.9-enterprise-commercial-advanced | 5 |\n +--------------------------------------+---------------------+\n 1 row in set (0.00 sec)\n ' BEGIN RETURN SUBSTRING_INDEX(SUBSTRING_INDEX(VERSION(), '-', 1), '.', 1); END ;; delimiter ; -- ---------------------------- -- Function structure for version_minor -- ---------------------------- DROP FUNCTION IF EXISTS `version_minor`; delimiter ;; CREATE FUNCTION `sys`.`version_minor`() RETURNS tinyint(3) unsigned NO SQL SQL SECURITY INVOKER COMMENT '\n Description\n \n Returns the minor (release series) version of MySQL Server.\n \n Returns\n \n TINYINT UNSIGNED\n \n Example\n \n mysql> SELECT VERSION(), sys.server_minor();\n +--------------------------------------+---------------------+\n | VERSION() | sys.version_minor() |\n +--------------------------------------+---------------------+\n | 5.7.9-enterprise-commercial-advanced | 7 |\n +--------------------------------------+---------------------+\n 1 row in set (0.00 sec)\n ' BEGIN RETURN SUBSTRING_INDEX(SUBSTRING_INDEX(SUBSTRING_INDEX(VERSION(), '-', 1), '.', 2), '.', -1); END ;; delimiter ; -- ---------------------------- -- Function structure for version_patch -- ---------------------------- DROP FUNCTION IF EXISTS `version_patch`; delimiter ;; CREATE FUNCTION `sys`.`version_patch`() RETURNS tinyint(3) unsigned NO SQL SQL SECURITY INVOKER COMMENT '\n Description\n \n Returns the patch release version of MySQL Server.\n \n Returns\n \n TINYINT UNSIGNED\n \n Example\n \n mysql> SELECT VERSION(), sys.version_patch();\n +--------------------------------------+---------------------+\n | VERSION() | sys.version_patch() |\n +--------------------------------------+---------------------+\n | 5.7.9-enterprise-commercial-advanced | 9 |\n +--------------------------------------+---------------------+\n 1 row in set (0.00 sec)\n ' BEGIN RETURN SUBSTRING_INDEX(SUBSTRING_INDEX(VERSION(), '-', 1), '.', -1); END ;; delimiter ; -- ---------------------------- -- Triggers structure for table sys_config -- ---------------------------- DROP TRIGGER IF EXISTS `sys_config_insert_set_user`; delimiter ;; CREATE TRIGGER `sys_config_insert_set_user` BEFORE INSERT ON `sys_config` FOR EACH ROW BEGIN IF @sys.ignore_sys_config_triggers != true AND NEW.set_by IS NULL THEN SET NEW.set_by = USER(); END IF; END ;; delimiter ; -- ---------------------------- -- Triggers structure for table sys_config -- ---------------------------- DROP TRIGGER IF EXISTS `sys_config_update_set_user`; delimiter ;; CREATE TRIGGER `sys_config_update_set_user` BEFORE UPDATE ON `sys_config` FOR EACH ROW BEGIN IF @sys.ignore_sys_config_triggers != true AND NEW.set_by IS NULL THEN SET NEW.set_by = USER(); END IF; END ;; delimiter ; SET FOREIGN_KEY_CHECKS = 1;
-- -- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may not use this file except in compliance with -- the License. You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agreed to in writing, software -- distributed under the License is distributed on an "AS IS" BASIS, -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -- See the License for the specific language governing permissions and -- limitations under the License. -- -- -- Consolidated BEFORE trigger tests from all trigger tests. -- The following tests moved from TriggerValidate.sql to here. create table x (x int, constraint ck check (x > 0)); create table unrelated (x int, constraint ckunrelated check (x > 0)); create index x on x(x); ------------------------------------ -- DDL ------------------------------------ create trigger tbad NO CASCADE before insert on x for each statement drop table x; create trigger tbad NO CASCADE before insert on x for each statement drop index x; create trigger tbad NO CASCADE before insert on x for each statement alter table x add column y int; create trigger tbad NO CASCADE before insert on x for each statement alter table x add constraint ck2 check(x > 0); create trigger tbad NO CASCADE before insert on x for each statement alter table x drop constraint ck; create trigger tbad NO CASCADE before insert on x for each statement create index x2 on x (x); create trigger tbad NO CASCADE before insert on x for each statement create index xunrelated on unrelated(x); create trigger tbad NO CASCADE before insert on x for each statement drop index xunrelated; create trigger tbad NO CASCADE before insert on x for each statement drop trigger tbad; create trigger tbad NO CASCADE before insert on x for each statement create trigger tbad2 NO CASCADE before insert on x for each statement values 1; create trigger tokv1 NO CASCADE before insert on x for each statement values 1; insert into x values 1; select * from x; drop trigger tokv1; ------------------------------------ -- MISC ------------------------------------ create trigger tbad NO CASCADE before insert on x for each statement set isolation to rr; create trigger tbad NO CASCADE before insert on x for each statement lock table x in share mode; ------------------------------------ -- DML, cannot perform dml on same -- table for before trigger, of for -- after ------------------------------------ -- before create trigger tbadX NO CASCADE before insert on x for each statement insert into x values 1; create trigger tbadX NO CASCADE before insert on x for each statement delete from x; create trigger tbadX NO CASCADE before insert on x for each statement update x set x = x; -- Following tests moved here from triggerRefClause, since these use BEFORE triggers -- syntax create trigger t1 NO CASCADE before update on x referencing badtoken as oldtable for each row values 1; create trigger t1 NO CASCADE before update on x referencing old as oldrow new for each row values 1; -- dup names create trigger t1 NO CASCADE before update on x referencing old as oldrow new as newrow old as oldrow2 for each row values 1; create trigger t1 NO CASCADE before update on x referencing new as newrow new as newrow2 old as oldrow2 for each row values 1; -- mismatch: row->for each statement, table->for each row create trigger t1 NO CASCADE before update on x referencing new_table as newtab for each row values 1; create trigger t1 NO CASCADE before update on x referencing new as newrow for each statement values 1; -- same as above, but using old create trigger t1 NO CASCADE before update on x referencing old_table as old for each row select * from old; create trigger t1 NO CASCADE before update on x referencing old_table as old for each statement values old.x; -- old and new cannot be used once they have been redefined create trigger t1 NO CASCADE before update on x referencing old_table as oldtable for each statement select * from old; create trigger t1 NO CASCADE before update on x referencing old as oldtable for each row values old.x; -- try some other likely uses create table y (x int); create trigger t1 NO CASCADE before insert on x referencing new_table as newrowtab for each statement insert into y select x from newrowtab; drop table x; drop table y;