sql stringlengths 6 1.05M |
|---|
SELECT x
FROM
(
SELECT if((number % NULL) = -2147483648, NULL, if(toInt64(toInt64(now64(if((number % NULL) = -2147483648, NULL, if(toInt64(now64(toInt64(9223372036854775807, now64(plus(NULL, NULL))), plus(NULL, NULL))) = (number % NULL), nan, toFloat64(number))), toInt64(9223372036854775807, toInt64(9223372036854775807, now64(plus(NULL, NULL))), now64(plus(NULL, NULL))), plus(NULL, NULL))), now64(toInt64(9223372036854775807, toInt64(0, now64(plus(NULL, NULL))), now64(plus(NULL, NULL))), plus(NULL, NULL))) = (number % NULL), nan, toFloat64(number))) AS x
FROM system.numbers
LIMIT 3
)
ORDER BY x DESC NULLS LAST
|
-- date time functions
-- [SPARK-16836] current_date and current_timestamp literals
select current_date = current_date(), current_timestamp = current_timestamp();
select to_date(null), to_date('2016-12-31'), to_date('2016-12-31', 'yyyy-MM-dd');
select to_timestamp(null), to_timestamp('2016-12-31 00:12:00'), to_timestamp('2016-12-31', 'yyyy-MM-dd');
select dayofweek('2007-02-03'), dayofweek('2009-07-30'), dayofweek('2017-05-27'), dayofweek(null), dayofweek('1582-10-15 13:10:15');
-- [SPARK-22333]: timeFunctionCall has conflicts with columnReference
create temporary view ttf1 as select * from values
(1, 2),
(2, 3)
as ttf1(current_date, current_timestamp);
select current_date, current_timestamp from ttf1;
create temporary view ttf2 as select * from values
(1, 2),
(2, 3)
as ttf2(a, b);
select current_date = current_date(), current_timestamp = current_timestamp(), a, b from ttf2;
select a, b from ttf2 order by a, current_date;
select weekday('2007-02-03'), weekday('2009-07-30'), weekday('2017-05-27'), weekday(null), weekday('1582-10-15 13:10:15');
select year('1500-01-01'), month('1500-01-01'), dayOfYear('1500-01-01');
select date '2001-09-28' + 7;
select 7 + date '2001-09-28';
select date '2001-10-01' - 7;
select date '2001-10-01' - date '2001-09-28';
select date'2020-01-01' - timestamp'2019-10-06 10:11:12.345678';
select timestamp'2019-10-06 10:11:12.345678' - date'2020-01-01';
select date '2019-01-01\t';
select timestamp '2019-01-01\t';
|
SET send_logs_level = 'none';
select lcase('FOO');
select ucase('foo');
select LOWER('Foo');
select UPPER('Foo');
select REPLACE('bar', 'r', 'z');
select Locate('foo', 'o');
select SUBSTRING('foo', 1, 2);
select Substr('foo', 2);
select mid('foo', 3);
select IF(3>2, 1, 0);
|
<filename>server/src/main/resources/db/migration/V5__add_text_source_id_url_coloumns.sql
ALTER TABLE MEMES ADD text VARCHAR (150);
ALTER TABLE MEMES ADD source_id VARCHAR (50);
ALTER TABLE MEMES ADD source_url VARCHAR (150); |
<filename>leet.sql
SELECT REPLACE(REPLACE(REPLACE(REPLACE(title, 'a', '4'), 'o', '0'), 'e', '3'), 'i', '1') FROM books; |
/*
RETURN Category
ID NVARCHAR(36) NOT
Category NVARCHAR(50) NOT
ParentCategoryID NVARCHAR(36) NULL
*/
DROP PROCEDURE IF EXISTS `GetCategoryByName`;
CREATE PROCEDURE `GetCategoryByName` (_Name NVARCHAR(50))
#BEGIN#
SELECT
C.Id,
C.Category,
C.ParentCategoryId
FROM Category C
WHERE C.Category = _Name; |
drop if exists t;
create table t(
a int primary key,
b date on update current_timestamp,
c time on update current_timestamp,
d timestamp on update current_timestamp,
e datetime on update current_timestamp,
f timestampltz on update current_timestamp,
g timestamptz on update current_timestamp,
h datetimeltz on update current_timestamp,
i datetimetz on update current_timestamp
);
insert into t(a) values(1),(2);
select * from t order by 1;
insert into t(a) values(3),(1) on duplicate key update a=4;
select if(b is not null && c is not null && d is not null && e is not null && f is not null && g is not null && h is not null && i is not null,'ok','nok') from t where a=4;
truncate table t;
insert into t(a) values(1),(2);
insert into t(a) select rownum from db_root connect by level<=10 on duplicate key update a=a-20;
select if(b is not null && c is not null && d is not null && e is not null && f is not null && g is not null && h is not null && i is not null,'ok','nok') from t where a<3;
drop if exists t;
create table t(
a int primary key,
b timestamp default current_timestamp on update current_timestamp,
c timestamp on update current_timestamp);
insert into t(a) values(1),(2);
set @a=(select b from t where a=1);
set @b=(select b from t where a=2);
select sleep(2);
insert into t(a) values(3),(1) on duplicate key update a=4;
set @c=(select b from t where a=3);
set @d=(select b from t where a=4);
select if(cast(@d as timestamp)-cast(@c as timestamp)=0 && cast(@b as timestamp)-cast(@a as timestamp)=0 &&cast(@d as timestamp)-cast(@b as timestamp)>=2,'ok','nok' );
select if( c is not null,'ok','nok' ) from t where a=4;
drop variable @a,@b,@c,@d;
drop if exists t;
|
<filename>booking.sql<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 1192.168.3.11
-- Generation Time: Jul 07, 2020 at 04:31 AM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.2.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 */;
--
-- Database: `booking`
--
-- --------------------------------------------------------
--
-- Table structure for table `approve`
--
CREATE TABLE `approve` (
`ap_id` int(2) NOT NULL,
`ap_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
`ap_descriptions` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `approve`
--
INSERT INTO `approve` (`ap_id`, `ap_name`, `ap_descriptions`) VALUES
(1, 'Approve', '-'),
(2, 'Disapproves', '-');
-- --------------------------------------------------------
--
-- Table structure for table `bk_car`
--
CREATE TABLE `bk_car` (
`bkcar_id` int(5) NOT NULL,
`bk_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`bk_idcode` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`bk_tel` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`bk_email` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`bk_position` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`bk_dept` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`bktime_start` datetime NOT NULL,
`bktime_end` datetime NOT NULL,
`bk_destination` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`bk_purpose` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`car_id` int(5) DEFAULT NULL,
`bk_factory` int(2) NOT NULL,
`bkemp_id` int(5) DEFAULT NULL,
`bk_mgr_ap` int(2) DEFAULT NULL,
`bk_hr_ap` int(2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci ROW_FORMAT=COMPRESSED;
--
-- Dumping data for table `bk_car`
--
INSERT INTO `bk_car` (`bkcar_id`, `bk_name`, `bk_idcode`, `bk_tel`, `bk_email`, `bk_position`, `bk_dept`, `bktime_start`, `bktime_end`, `bk_destination`, `bk_purpose`, `car_id`, `bk_factory`, `bkemp_id`, `bk_mgr_ap`, `bk_hr_ap`) VALUES
(24, 'w', 'w', '1252', 'w@w', 'GM', 'w', '2017-08-23 11:00:00', '2017-08-23 16:00:00', 'w', 'w', NULL, 1, 2, NULL, NULL),
(25, 'w', 'w', '1252', 'w@w', 'Staff', 'w', '2017-08-24 08:00:00', '2017-08-24 09:00:00', 'w', 'w', NULL, 1, 2, NULL, NULL),
(26, 'w', 'w', '1252', 'w@w', 'Staff', 'w', '2017-08-25 08:00:00', '2017-08-25 08:30:00', 'w', 'w', NULL, 1, 2, NULL, NULL),
(27, 'w', 'w', '1252', 'w@w', 'Staff', 'w', '2017-08-28 08:00:00', '2017-08-28 08:30:00', 'w', 'w', 7, 1, 2, 1, 1),
(28, 'w', 'w', '1252', 'w@w', 'Staff', 'w', '2017-08-28 08:00:00', '2017-08-28 08:30:00', 'w', 'w', NULL, 1, 3, 2, 2),
(29, 'w', 'w', '1252', 'w@w', 'Staff', 'w', '2017-08-29 11:00:00', '2017-08-29 12:00:00', 'w', 'w', 7, 1, 3, 1, 1),
(30, '1', '1', '1', '1@1', 'Staff', '1', '2017-08-29 11:00:00', '2017-08-29 14:30:00', '1', '1', 8, 1, 3, 1, 1),
(31, 'สมชาย ใจดี', '99999', '1252', '<EMAIL>', 'Staff', 'TEST', '2017-08-31 08:00:00', '2017-08-31 15:00:00', 'tgas / kittipong', 'test system', 7, 1, 8, 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `bk_interpreter`
--
CREATE TABLE `bk_interpreter` (
`bkitp_id` int(5) NOT NULL,
`bk_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`bk_dept` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`bk_tel` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`bk_email` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`bktime_start` datetime NOT NULL,
`bktime_end` datetime NOT NULL,
`itp_id` int(5) DEFAULT NULL,
`bk_factory` int(2) NOT NULL,
`bkemp_id` int(5) NOT NULL,
`bk_mgr_ap` int(2) DEFAULT NULL,
`bk_hr_ap` int(2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `bk_interpreter`
--
INSERT INTO `bk_interpreter` (`bkitp_id`, `bk_name`, `bk_dept`, `bk_tel`, `bk_email`, `bktime_start`, `bktime_end`, `itp_id`, `bk_factory`, `bkemp_id`, `bk_mgr_ap`, `bk_hr_ap`) VALUES
(9, 'w', 'w', '1252', 'w@w', '2017-08-23 10:00:00', '2017-08-23 12:30:00', NULL, 1, 2, 1, NULL),
(10, 'w', 'w', '1252', 'w@w', '2017-08-24 10:00:00', '2017-08-24 14:00:00', NULL, 1, 2, 1, NULL),
(11, 'w', 'w', '1252', 'w@w', '2017-08-25 08:00:00', '2017-08-25 08:30:00', NULL, 1, 2, 1, NULL),
(12, 'w', 'w', '1252', 'w@w', '2017-08-28 08:00:00', '2017-08-28 08:30:00', NULL, 1, 2, 1, NULL),
(13, 'w', 'w', '1252', 'w@w', '2017-08-28 08:00:00', '2017-08-28 09:00:00', 1, 1, 3, 1, 1),
(14, 'w', 'w', '1252', 'w@w', '2017-08-29 11:00:00', '2017-08-29 14:00:00', 1, 1, 3, 1, 1),
(15, '1', '1', '1', '1@1', '2017-08-29 11:00:00', '2017-08-29 14:00:00', NULL, 1, 3, NULL, NULL),
(16, '2', '2', '2', '2@2', '2017-08-29 13:00:00', '2017-08-29 16:00:00', NULL, 1, 2, NULL, NULL),
(17, '3', '3', '3', '3@3', '2017-08-29 13:30:00', '2017-08-29 15:30:00', 2, 1, 2, 1, 1),
(18, 'สมชาย ใจดี', 'TEST', '1252', '<EMAIL>', '2017-08-31 08:00:00', '2017-08-31 09:30:00', NULL, 1, 7, 2, 2);
-- --------------------------------------------------------
--
-- Table structure for table `bk_mtr`
--
CREATE TABLE `bk_mtr` (
`bkmtr_id` int(5) NOT NULL,
`bk_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`bk_dept` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`bk_tel` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`bk_email` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`bktime_start` datetime NOT NULL,
`bktime_end` datetime NOT NULL,
`mtr_id` int(5) NOT NULL,
`bk_item_request` text COLLATE utf8_unicode_ci DEFAULT NULL,
`bk_objective` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`bk_factory` int(2) NOT NULL,
`bkemp_id` int(5) DEFAULT NULL,
`bk_mgr_ap` int(2) DEFAULT NULL,
`bk_hr_ap` int(2) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `bk_mtr`
--
INSERT INTO `bk_mtr` (`bkmtr_id`, `bk_name`, `bk_dept`, `bk_tel`, `bk_email`, `bktime_start`, `bktime_end`, `mtr_id`, `bk_item_request`, `bk_objective`, `bk_factory`, `bkemp_id`, `bk_mgr_ap`, `bk_hr_ap`) VALUES
(27, 'w', 'w', '1252', 'w@w', '2017-08-23 08:00:00', '2017-08-23 09:00:00', 3, 'Refreshing Towel - , ', 'w', 1, 2, NULL, NULL),
(28, 'w', 'w', '12345', 'w@w', '2017-08-23 12:00:00', '2017-08-23 14:00:00', 3, '', '', 1, 2, NULL, NULL),
(29, 'w', 'w', '213123', 'w@w', '2017-08-23 14:00:00', '2017-08-23 16:00:00', 3, 'Coffee - , Refreshing Towel - , ', 'w', 1, 2, NULL, NULL),
(33, 'w', 'w', '1252', 'w@w', '2017-08-24 11:00:00', '2017-08-24 15:30:00', 3, '', '', 1, 2, NULL, NULL),
(34, 'w', 'w', '12', 'w@w', '2017-08-25 09:00:00', '2017-08-25 13:30:00', 3, 'Coffee - 5, ', '5', 1, 2, 2, 2),
(35, 'w', 'w', '1252', 'w@w', '2017-08-25 08:00:00', '2017-08-25 08:30:00', 3, '', '', 1, 2, 2, 2),
(36, 'w', 'w', '1252', 'w@w', '2017-08-25 08:00:00', '2017-08-25 08:30:00', 3, '', '', 1, 2, 2, 2),
(38, 'w', 'w', '1252', 'w@w', '2017-08-25 08:00:00', '2017-08-25 08:30:00', 1, '', '', 1, 2, NULL, NULL),
(39, 'w', 'w', '1252', 'w@w', '2017-08-28 08:00:00', '2017-08-28 09:00:00', 2, '', '', 1, 2, 1, 1),
(40, 'w', 'w', '1252', 'w@w', '2017-08-29 11:00:00', '2017-08-29 12:00:00', 1, 'Coffee - 5, ', 'w', 1, 3, 1, 1),
(41, '1', '1', '1', '1@1', '2017-08-29 11:00:00', '2017-08-29 13:00:00', 4, 'Coffee - 1, Tea - 1, Drinking Water - 1, Refreshing Towel - 1, Projector - 1, ', '1', 1, 3, 1, 1);
-- --------------------------------------------------------
--
-- Table structure for table `car`
--
CREATE TABLE `car` (
`car_id` int(5) NOT NULL,
`license_plate` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
`driver_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`driver_tel` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`car_brand` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
`car_color` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
`car_options` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`car_factory` int(2) NOT NULL,
`car_status` int(2) NOT NULL,
`car_descriptions` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `car`
--
INSERT INTO `car` (`car_id`, `license_plate`, `driver_name`, `driver_tel`, `car_brand`, `car_color`, `car_options`, `car_factory`, `car_status`, `car_descriptions`) VALUES
(7, '5กล-7261', '1', '1', 'Revo', '#000000', '597164b35364f5.48281428.png', 1, 1, ''),
(8, '4กษ-2291', '2', '2', 'City', '#ffffff', '597164c3761aa5.60900383.png', 1, 1, ''),
(9, '5กร-9343', '3', '3', 'Mazda 2', '#00ffff', '597164d06ea7d4.62117341.png', 1, 1, ''),
(10, '5กจ-4301', '1', '1', 'Atrage', '#1cabe1', '597164db103462.22989698.png', 1, 1, '');
-- --------------------------------------------------------
--
-- Table structure for table `employee`
--
CREATE TABLE `employee` (
`emp_id` int(5) NOT NULL,
`emp_fname` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
`emp_lname` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
`emp_tel` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`emp_email` varchar(200) COLLATE utf8_unicode_ci NOT NULL,
`emp_position` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
`emp_factory` int(2) NOT NULL,
`emp_dept` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`emp_user` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
`emp_pass` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
`emp_status` int(2) NOT NULL,
`emp_descriptions` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `employee`
--
INSERT INTO `employee` (`emp_id`, `emp_fname`, `emp_lname`, `emp_tel`, `emp_email`, `emp_position`, `emp_factory`, `emp_dept`, `emp_user`, `emp_pass`, `emp_status`, `emp_descriptions`) VALUES
(1, 'Chusak', 'Chatsopon', '1215', '<EMAIL>', 'HR Approval', 1, 'HR', '11HR00', 'HR00', 1, NULL),
(2, 'Sawinee', 'Somkliang', '1251', '<EMAIL>', 'Manager', 1, 'HR', '11HR01', 'HR01', 1, NULL),
(3, 'Siriporn', 'Yai-in', '1252', '<EMAIL>', 'User', 1, 'HR', '11HR02', 'HR02', 1, NULL),
(4, 'TESTER', 'Admin', '1251', '<EMAIL>', 'Administrator', 1, 'IS', 'admin', 'admin', 1, NULL),
(5, 'Koson', 'Ratana', '1215', '<EMAIL>', 'Manager', 1, 'IS', '11IS01', 'IS01', 1, NULL),
(6, 'IS', 'Support', '1252', '<EMAIL>', 'User', 1, 'IS', '11IS02', 'IS02', 1, NULL),
(7, 'TESTER', 'IS', '1252', '<EMAIL>', 'Manager', 1, 'TEST', 'TESTER', '01', 1, NULL),
(8, 'TESTER', 'IS', '1252', '<EMAIL>', 'User', 1, 'TEST', 'TESTER', '02', 1, NULL),
(10, 'TESTER', 'IS', NULL, '<EMAIL>', 'HR Approval', 1, 'TEST', 'TESTER', '00', 1, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `factory`
--
CREATE TABLE `factory` (
`ft_id` int(2) NOT NULL,
`ft_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`ft_descriptions` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `factory`
--
INSERT INTO `factory` (`ft_id`, `ft_name`, `ft_descriptions`) VALUES
(1, 'Toyoda Gosei Asia Co,. Ltd. (TGAS)', '-'),
(2, 'Toyoda Gosei (Thailand) Co,. Ltd. (TGT)', '-'),
(3, '<NAME> (Thailand) Co,. Ltd. (TGRT)', '-');
-- --------------------------------------------------------
--
-- Table structure for table `interpreter`
--
CREATE TABLE `interpreter` (
`itp_id` int(5) NOT NULL,
`itp_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`itp_tel` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
`itp_options` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`itp_factory` int(2) NOT NULL,
`itp_status` int(2) NOT NULL,
`itp_descriptions` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `interpreter`
--
INSERT INTO `interpreter` (`itp_id`, `itp_name`, `itp_tel`, `itp_options`, `itp_factory`, `itp_status`, `itp_descriptions`) VALUES
(1, '<NAME>', '0872301893', '5971afd78b2cc0.60760062.png', 1, 1, NULL),
(2, '<NAME>', '0661506948', '5971afd78b2cc0.60760062.png', 1, 1, NULL),
(3, '<NAME>', '0616956329', '5971afd78b2cc0.60760062.png', 1, 1, NULL),
(4, '<NAME>', '0837814195', '5971afd78b2cc0.60760062.png', 1, 1, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `meeting_room`
--
CREATE TABLE `meeting_room` (
`mtr_id` int(5) NOT NULL,
`mtr_number` varchar(5) COLLATE utf8_unicode_ci NOT NULL,
`mtr_options` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
`mtr_factory` int(2) NOT NULL,
`mtr_status` int(2) NOT NULL,
`mtr_descriptions` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `meeting_room`
--
INSERT INTO `meeting_room` (`mtr_id`, `mtr_number`, `mtr_options`, `mtr_factory`, `mtr_status`, `mtr_descriptions`) VALUES
(1, '201', '5971aff6885af6.67057574.png', 1, 1, NULL),
(2, '202', '59715e26104263.48348778.png', 1, 1, NULL),
(3, '203', '59715e330795f3.52080498.png', 1, 1, NULL),
(4, '204', '59715e3d958374.25417369.png', 1, 1, NULL),
(5, '301', '59715e567ceba1.24042523.png', 1, 1, NULL),
(6, '302', '59715e993d73e7.32072803.png', 1, 1, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `status`
--
CREATE TABLE `status` (
`st_id` int(2) NOT NULL,
`st_name` varchar(25) COLLATE utf8_unicode_ci NOT NULL,
`st_descriptions` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `status`
--
INSERT INTO `status` (`st_id`, `st_name`, `st_descriptions`) VALUES
(1, 'Enable', '-'),
(2, 'Disable', '-');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `approve`
--
ALTER TABLE `approve`
ADD PRIMARY KEY (`ap_id`);
--
-- Indexes for table `bk_car`
--
ALTER TABLE `bk_car`
ADD PRIMARY KEY (`bkcar_id`),
ADD KEY `car_id` (`car_id`),
ADD KEY `bk_factory` (`bk_factory`),
ADD KEY `bkemp_id` (`bkemp_id`),
ADD KEY `bk_mgr_ap` (`bk_mgr_ap`),
ADD KEY `bk_hr_ap` (`bk_hr_ap`);
--
-- Indexes for table `bk_interpreter`
--
ALTER TABLE `bk_interpreter`
ADD PRIMARY KEY (`bkitp_id`),
ADD KEY `itp_id` (`itp_id`),
ADD KEY `bk_factory` (`bk_factory`),
ADD KEY `bkemp_id` (`bkemp_id`),
ADD KEY `bk_mgr_ap` (`bk_mgr_ap`),
ADD KEY `bk_hr_ap` (`bk_hr_ap`);
--
-- Indexes for table `bk_mtr`
--
ALTER TABLE `bk_mtr`
ADD PRIMARY KEY (`bkmtr_id`),
ADD KEY `mtr_id` (`mtr_id`),
ADD KEY `bk_factory` (`bk_factory`),
ADD KEY `bkemp_id` (`bkemp_id`),
ADD KEY `bk_mgr_ap` (`bk_mgr_ap`),
ADD KEY `bk_hr_ap` (`bk_hr_ap`);
--
-- Indexes for table `car`
--
ALTER TABLE `car`
ADD PRIMARY KEY (`car_id`),
ADD UNIQUE KEY `license_plate` (`license_plate`),
ADD KEY `car_factory` (`car_factory`),
ADD KEY `car_status` (`car_status`);
--
-- Indexes for table `employee`
--
ALTER TABLE `employee`
ADD PRIMARY KEY (`emp_id`),
ADD KEY `emp_factory` (`emp_factory`),
ADD KEY `emp_status` (`emp_status`);
--
-- Indexes for table `factory`
--
ALTER TABLE `factory`
ADD PRIMARY KEY (`ft_id`);
--
-- Indexes for table `interpreter`
--
ALTER TABLE `interpreter`
ADD PRIMARY KEY (`itp_id`),
ADD KEY `itp_factory` (`itp_factory`),
ADD KEY `itp_status` (`itp_status`);
--
-- Indexes for table `meeting_room`
--
ALTER TABLE `meeting_room`
ADD PRIMARY KEY (`mtr_id`),
ADD KEY `mtr_factory` (`mtr_factory`),
ADD KEY `mtr_status` (`mtr_status`);
--
-- Indexes for table `status`
--
ALTER TABLE `status`
ADD PRIMARY KEY (`st_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `approve`
--
ALTER TABLE `approve`
MODIFY `ap_id` int(2) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `bk_car`
--
ALTER TABLE `bk_car`
MODIFY `bkcar_id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32;
--
-- AUTO_INCREMENT for table `bk_interpreter`
--
ALTER TABLE `bk_interpreter`
MODIFY `bkitp_id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `bk_mtr`
--
ALTER TABLE `bk_mtr`
MODIFY `bkmtr_id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44;
--
-- AUTO_INCREMENT for table `car`
--
ALTER TABLE `car`
MODIFY `car_id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `employee`
--
ALTER TABLE `employee`
MODIFY `emp_id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `interpreter`
--
ALTER TABLE `interpreter`
MODIFY `itp_id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `meeting_room`
--
ALTER TABLE `meeting_room`
MODIFY `mtr_id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `status`
--
ALTER TABLE `status`
MODIFY `st_id` int(2) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `bk_car`
--
ALTER TABLE `bk_car`
ADD CONSTRAINT `bk_car_ibfk_1` FOREIGN KEY (`car_id`) REFERENCES `car` (`car_id`),
ADD CONSTRAINT `bk_car_ibfk_2` FOREIGN KEY (`bk_factory`) REFERENCES `factory` (`ft_id`),
ADD CONSTRAINT `bk_car_ibfk_3` FOREIGN KEY (`bkemp_id`) REFERENCES `employee` (`emp_id`),
ADD CONSTRAINT `bk_car_ibfk_4` FOREIGN KEY (`bk_mgr_ap`) REFERENCES `approve` (`ap_id`),
ADD CONSTRAINT `bk_car_ibfk_5` FOREIGN KEY (`bk_hr_ap`) REFERENCES `approve` (`ap_id`);
--
-- Constraints for table `bk_interpreter`
--
ALTER TABLE `bk_interpreter`
ADD CONSTRAINT `bk_interpreter_ibfk_1` FOREIGN KEY (`itp_id`) REFERENCES `interpreter` (`itp_id`),
ADD CONSTRAINT `bk_interpreter_ibfk_2` FOREIGN KEY (`bk_factory`) REFERENCES `factory` (`ft_id`),
ADD CONSTRAINT `bk_interpreter_ibfk_3` FOREIGN KEY (`bkemp_id`) REFERENCES `employee` (`emp_id`),
ADD CONSTRAINT `bk_interpreter_ibfk_4` FOREIGN KEY (`bk_mgr_ap`) REFERENCES `approve` (`ap_id`),
ADD CONSTRAINT `bk_interpreter_ibfk_5` FOREIGN KEY (`bk_hr_ap`) REFERENCES `approve` (`ap_id`);
--
-- Constraints for table `bk_mtr`
--
ALTER TABLE `bk_mtr`
ADD CONSTRAINT `bk_mtr_ibfk_1` FOREIGN KEY (`mtr_id`) REFERENCES `meeting_room` (`mtr_id`),
ADD CONSTRAINT `bk_mtr_ibfk_2` FOREIGN KEY (`bk_factory`) REFERENCES `factory` (`ft_id`),
ADD CONSTRAINT `bk_mtr_ibfk_3` FOREIGN KEY (`bkemp_id`) REFERENCES `employee` (`emp_id`),
ADD CONSTRAINT `bk_mtr_ibfk_4` FOREIGN KEY (`bk_mgr_ap`) REFERENCES `approve` (`ap_id`),
ADD CONSTRAINT `bk_mtr_ibfk_5` FOREIGN KEY (`bk_hr_ap`) REFERENCES `approve` (`ap_id`);
--
-- Constraints for table `car`
--
ALTER TABLE `car`
ADD CONSTRAINT `car_ibfk_1` FOREIGN KEY (`car_factory`) REFERENCES `factory` (`ft_id`),
ADD CONSTRAINT `car_ibfk_2` FOREIGN KEY (`car_status`) REFERENCES `status` (`st_id`);
--
-- Constraints for table `employee`
--
ALTER TABLE `employee`
ADD CONSTRAINT `employee_ibfk_1` FOREIGN KEY (`emp_factory`) REFERENCES `factory` (`ft_id`),
ADD CONSTRAINT `employee_ibfk_2` FOREIGN KEY (`emp_status`) REFERENCES `status` (`st_id`);
--
-- Constraints for table `interpreter`
--
ALTER TABLE `interpreter`
ADD CONSTRAINT `interpreter_ibfk_1` FOREIGN KEY (`itp_factory`) REFERENCES `factory` (`ft_id`),
ADD CONSTRAINT `interpreter_ibfk_2` FOREIGN KEY (`itp_status`) REFERENCES `status` (`st_id`);
--
-- Constraints for table `meeting_room`
--
ALTER TABLE `meeting_room`
ADD CONSTRAINT `meeting_room_ibfk_1` FOREIGN KEY (`mtr_factory`) REFERENCES `factory` (`ft_id`),
ADD CONSTRAINT `meeting_room_ibfk_2` FOREIGN KEY (`mtr_status`) REFERENCES `status` (`st_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 */;
|
GIAOVIEN
MAGV chuỗi (5);
HOTEN chuỗi_UNICODE(40);
LUONG số_thực;
PHAI nchuỗi(3);
NGSINH ngày_giờ;
DIACHI chuỗi_UNICODE(100);
GVQLCM chuỗi(5);
MABM nchuỗi(5)
GV_DT
MAGV chuỗi(5);
DIENTHOAI chuỗi(12);
BOMON
MABM nchuỗi(5);
TENBM chuỗi_UNICODE(40);
PHONG chuỗi(5);
DIENTHOAI chuỗi(12);
TRUONGBM chuỗi(5);
MAKHOA chuỗi(4);
NGAYNHANCHUC ngày_giờ;
KHOA
MAKHOA chuỗi(4);
TENKHOA chuỗi_UNICODE(40);
NAMTL số_nguyên;
PHONG chuỗi(5);
DIENTHOAI chuỗi(12);
TRUONGKHOA chuỗi(5);
NGAYNHANCHUC ngày_giờ;
DETAI
MADT chuỗi(3);
TENDT chuỗi_UNICODE(100);
CAPQL chuỗi_UNICODE(40);
KINHPHI số_thực;
NGAYBD ngày_giờ;
NGAYKT ngày_giờ;
MACD nchuỗi(4);
GVCNDT chuỗi(5);
CHUDE
MACD nchuỗi(4);
TENCD chuỗi_UNICODE(50);
CONGVIEC
MADT chuỗi(3);
SOTT số_nguyên;
TENCV chuỗi_UNICODE(40);
NGAYBD ngày_giờ;
NGAYKT ngày_giờ;
THAMGIADT
MAGV chuỗi(5);
MADT chuỗi(3);
STT số_nguyên;
PHUCAP số_thực ;
KETQUA chuỗi_UNICODE(40);
NGUOITHAN
MAGV chuỗi(5);
TEN chuỗi_UNICODE(20);
NGSINH ngày_giờ;
PHAI nchuỗi(3);
|
<gh_stars>0
USE anax;
SET NAMES utf8;
DROP TABLE IF EXISTS User;
CREATE TABLE User (
`id` INTEGER PRIMARY KEY AUTO_INCREMENT NOT NULL,
`username` VARCHAR(80) UNIQUE NOT NULL,
`email` VARCHAR(225) UNIQUE NOT NULL,
`password` VARCHAR(255) NOT NULL,
`admin` INTEGER NOT NULL
) ENGINE INNODB CHARACTER SET utf8 COLLATE utf8_swedish_ci;
INSERT INTO `User` (`username`, `email`, `password`, `admin`) VALUES
('user', '<EMAIL>', <PASSWORD>', 0),
('admin', '<EMAIL>', <PASSWORD>', 1)
;
|
<reponame>hutornow/ITMO_FSPO_DataBases_2020-2021
-- MySQL dump 10.13 Distrib 5.5.23, for Win32 (x86)
--
-- Host: localhost Database: library
-- ------------------------------------------------------
-- Server version 5.5.23
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `attachment_in_room`
--
DROP TABLE IF EXISTS `attachment_in_room`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `attachment_in_room` (
`id_attachment` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`date_attachment` date NOT NULL,
`library_card` int(11) DEFAULT NULL,
`transfer_date` date DEFAULT NULL,
`room_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id_attachment`),
UNIQUE KEY `id_attachment` (`id_attachment`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `attachment_in_room`
--
LOCK TABLES `attachment_in_room` WRITE;
/*!40000 ALTER TABLE `attachment_in_room` DISABLE KEYS */;
INSERT INTO `attachment_in_room` VALUES (1,'2010-10-20',1,NULL,1),(2,'2010-10-20',2,NULL,2),(3,'2010-10-20',3,NULL,3);
/*!40000 ALTER TABLE `attachment_in_room` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `books`
--
DROP TABLE IF EXISTS `books`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `books` (
`id_book` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(50) NOT NULL,
`authors` varchar(50) NOT NULL,
`publishing_house` varchar(50) NOT NULL,
`year_of_publishing` date NOT NULL,
`section` varchar(50) NOT NULL,
`number_of_copies` int(11) NOT NULL,
`attachment_date` date DEFAULT NULL,
`date_of_receiving` date DEFAULT NULL,
`writeoff_date` date DEFAULT NULL,
PRIMARY KEY (`id_book`),
UNIQUE KEY `id_book` (`id_book`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `books`
--
LOCK TABLES `books` WRITE;
/*!40000 ALTER TABLE `books` DISABLE KEYS */;
INSERT INTO `books` VALUES (1,'1st part','Pushkin','OOO Roga i Kopita','2010-10-20','horror',10,'2012-12-20','2013-12-20',NULL),(2,'2st part','Pushkin','OOO Roga i Kopita','2010-10-20','horror',10,'2012-12-20','2013-12-20',NULL),(3,'3st part','Pushkin','OOO Roga i Kopita','2010-10-20','horror',10,'2012-12-20','2013-12-20',NULL);
/*!40000 ALTER TABLE `books` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `copy_of_book`
--
DROP TABLE IF EXISTS `copy_of_book`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `copy_of_book` (
`id_copy` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`copy_status` varchar(50) NOT NULL,
`collection_and_issue_dates` varchar(50) NOT NULL,
`copy_of_book_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id_copy`),
UNIQUE KEY `id_copy` (`id_copy`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `copy_of_book`
--
LOCK TABLES `copy_of_book` WRITE;
/*!40000 ALTER TABLE `copy_of_book` DISABLE KEYS */;
INSERT INTO `copy_of_book` VALUES (1,'active','asfdf',1),(2,'active','asfdf',2),(3,'active','asfdf',3),(4,'active','asfdf',1),(5,'active','asfdf',2),(6,'active','asfdf',3);
/*!40000 ALTER TABLE `copy_of_book` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `issue_of_book`
--
DROP TABLE IF EXISTS `issue_of_book`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `issue_of_book` (
`current_copy_id` int(11) DEFAULT NULL,
`current_library_card` int(11) DEFAULT NULL,
`current_worker` int(11) DEFAULT NULL,
`date_of_issue` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `issue_of_book`
--
LOCK TABLES `issue_of_book` WRITE;
/*!40000 ALTER TABLE `issue_of_book` DISABLE KEYS */;
INSERT INTO `issue_of_book` VALUES (1,1,1,'2001-12-12'),(2,2,2,'2002-03-11'),(3,3,3,'2002-12-01');
/*!40000 ALTER TABLE `issue_of_book` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reader`
--
DROP TABLE IF EXISTS `reader`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reader` (
`id_library_card` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`fio` varchar(50) NOT NULL,
`date_of_birth` date NOT NULL,
`passport_number` int(11) NOT NULL,
`adress` varchar(50) NOT NULL,
`education` varchar(50) NOT NULL,
`academic_degree` varchar(50) DEFAULT NULL,
`status` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id_library_card`),
UNIQUE KEY `id_library_card` (`id_library_card`),
UNIQUE KEY `passport_number` (`passport_number`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reader`
--
LOCK TABLES `reader` WRITE;
/*!40000 ALTER TABLE `reader` DISABLE KEYS */;
INSERT INTO `reader` VALUES (1,'<NAME>','2010-10-20',123456,'Pushkina 15','high-school',NULL,'active'),(2,'<NAME>','2010-10-20',134456,'Pushkina 21','high-school',NULL,'active'),(3,'<NAME>-tu-tu-tu','2010-10-20',124546,'Pushkina 11','high-school',NULL,'active');
/*!40000 ALTER TABLE `reader` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `reading_rooms`
--
DROP TABLE IF EXISTS `reading_rooms`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `reading_rooms` (
`id_room` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name_room` varchar(50) NOT NULL,
`capacity` int(11) NOT NULL,
PRIMARY KEY (`id_room`),
UNIQUE KEY `id_room` (`id_room`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `reading_rooms`
--
LOCK TABLES `reading_rooms` WRITE;
/*!40000 ALTER TABLE `reading_rooms` DISABLE KEYS */;
INSERT INTO `reading_rooms` VALUES (1,'Zal',100),(2,'Lobby',10),(3,'Zal_2',150),(4,'Zal',100),(5,'Lobby',10),(6,'Zal_2',150);
/*!40000 ALTER TABLE `reading_rooms` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `worker`
--
DROP TABLE IF EXISTS `worker`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `worker` (
`id_worker` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`date_of_receipt` date NOT NULL,
`timetable` varchar(50) NOT NULL,
`fio_worker` varchar(50) NOT NULL,
`id_library` int(11) NOT NULL,
PRIMARY KEY (`id_worker`),
UNIQUE KEY `id_worker` (`id_worker`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `worker`
--
LOCK TABLES `worker` WRITE;
/*!40000 ALTER TABLE `worker` DISABLE KEYS */;
INSERT INTO `worker` VALUES (1,'2010-10-20','pn-pt','<NAME>',1),(2,'2010-11-20','pn-pt','<NAME>',1),(3,'2010-12-20','pn-pt','<NAME>',1);
/*!40000 ALTER TABLE `worker` 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-06-16 0:48:56
|
-- Creating tables for PH-EmployeeDB
CREATE TABLE departments (
dept_no VARCHAR(4) NOT NULL,
dept_name VARCHAR(40) NOT NULL,
PRIMARY KEY (dept_no),
UNIQUE (dept_name)
);
-- Creating tables for the Employees
CREATE TABLE employees (
emp_no INT NOT NULL,
birth_date DATE NOT NULL,
first_name VARCHAR NOT NULL,
last_name VARCHAR NOT NULL,
gender VARCHAR NOT NULL,
hire_date DATE NOT NULL,
PRIMARY KEY (emp_no)
);
CREATE TABLE manager (
dept_no VARCHAR(4) NOT NULL,
emp_no INT NOT NULL,
from_date DATE NOT NULL,
to_date DATE NOT NULL,
FOREIGN KEY (emp_no) REFERENCES employees (emp_no),
FOREIGN KEY (dept_no) REFERENCES departments (dept_no),
PRIMARY KEY (emp_no, dept_no)
);
CREATE TABLE salaries (
emp_no INT NOT NULL,
salary INT NOT NULL,
from_date DATE NOT NULL,
to_date DATE NOT NULL,
FOREIGN KEY (emp_no) REFERENCES employees (emp_no),
PRIMARY KEY (emp_no)
);
-- I'll drop this table since the PK is returning a duplication error when importing the data
CREATE TABLE titles (
emp_no INT NOT NULL,
title VARCHAR NOT NULL,
from_date DATE NOT NULL,
to_date DATE NOT NULL,
FOREIGN KEY (emp_no) REFERENCES employees (emp_no),
PRIMARY KEY (emp_no)
);
CREATE TABLE deptemp (
emp_no INT NOT NULL,
dept_no VARCHAR NOT NULL,
from_date DATE NOT NULL,
to_date DATE NOT NULL,
FOREIGN KEY (emp_no) REFERENCES employees (emp_no),
FOREIGN KEY (dept_no) REFERENCES departments (dept_no),
PRIMARY KEY (emp_no, dept_no)
);
SELECT * FROM departments;
SELECT * FROM employees;
SELECT * FROM manager;
SELECT * FROM salaries;
SELECT * FROM titles;
SELECT * FROM deptemp;
-- 7.2.4
DROP TABLE titles CASCADE;
-- I create again this table as the PK was repeated and an error was ocurring when importing the data
CREATE TABLE titles (
emp_no INT NOT NULL,
title VARCHAR NOT NULL,
from_date DATE NOT NULL,
to_date DATE NOT NULL,
FOREIGN KEY (emp_no) REFERENCES employees (emp_no)
);
-- 7.3.1
SELECT first_name, last_name
FROM employees
WHERE birth_date BETWEEN '1952-01-01' AND '1955-12-31';
SELECT first_name, last_name
FROM employees
WHERE birth_date BETWEEN '1952-01-01' AND '1952-12-31';
-- SKILL DRILL
SELECT first_name, last_name
FROM employees
WHERE birth_date BETWEEN '1953-01-01' AND '1953-12-31';
SELECT first_name, last_name
FROM employees
WHERE birth_date BETWEEN '1954-01-01' AND '1954-12-31';
SELECT first_name, last_name
FROM employees
WHERE birth_date BETWEEN '1955-01-01' AND '1955-12-31';
-- Retirement eligibility
SELECT first_name, last_name
FROM employees
WHERE birth_date BETWEEN '1952-01-01' AND '1955-12-31';
-- Retirement eligibility narrowing elegibility with two variables
SELECT first_name, last_name
FROM employees
WHERE (birth_date BETWEEN '1952-01-01' AND '1955-12-31')
AND (hire_date BETWEEN '1985-01-01' AND '1988-12-31');
-- Counting the number of queries
-- Number of employees retiring
SELECT COUNT(first_name)
FROM employees
WHERE (birth_date BETWEEN '1952-01-01' AND '1955-12-31')
AND (hire_date BETWEEN '1985-01-01' AND '1988-12-31');
-- Creating a new table
SELECT first_name, last_name
INTO retirement_info
FROM employees
WHERE (birth_date BETWEEN '1952-01-01' AND '1955-12-31')
AND (hire_date BETWEEN '1985-01-01' AND '1988-12-31');
-- Looking at the new table
SELECT * FROM retirement_info;
-- EXPORT DATA |
--@Autor(es): <NAME>, <NAME>
--@Fecha creación: 23/06/2020
--@Descripción: Prueba para procedimiento que hace auditorías sobre tipos de paquetes.
set serveroutput on;
declare
v_clave_tipo_paquete varchar2(5);
v_fecha_auditoria date;
begin
v_clave_tipo_paquete := 'ALIM';
v_fecha_auditoria := to_date('06/2018','MM/YYYY');
sp_auditoria_tipo_paquete(v_clave_tipo_paquete,v_fecha_auditoria);
end;
/
show errors; |
CREATE PROCEDURE [dbo].[EPAO_Register_list_of_standards]
AS
SET NOCOUNT ON;
------------------------------------------------------------------------------------------------------------------------------------------------------
-- Get all the effective standards for each organisation in a sequenced order
------------------------------------------------------------------------------------------------------------------------------------------------------
SELECT
StandardCode, EndPointAssessorName,
row_number() over(partition by StandardCode order by StandardCode) Seq
INTO
#SequencedOrgStandardDetails
FROM
(
SELECT
os.StandardCode, EndPointAssessorName
FROM
OrganisationStandard os
INNER JOIN Organisations o on os.EndPointAssessorOrganisationId = o.EndPointAssessorOrganisationId AND o.[Status] = 'Live'
LEFT OUTER JOIN StandardCollation sc on os.StandardCode = sc.StandardId
WHERE
o.EndPointAssessorOrganisationId <> 'EPA0000'
AND (os.EffectiveTo is null OR os.EffectiveTo > GETDATE())
AND
(
JSON_Value(StandardData,'$.EffectiveTo') is null OR
JSON_Value(StandardData,'$.EffectiveTo') > GETDATE()
)
AND os.[Status] = 'Live'
)
AS OrgStandards
DECLARE @EP_AAO_Columns VARCHAR(MAX);
DECLARE @Dynamic_sql NVARCHAR(max);
------------------------------------------------------------------------------------------------------------------------------------------------------
-- Identify a list of pivot columns for each of the distinct sequence numbers for effective standards; there will be columns upto the maximum number
-- of organisations for any given standard
------------------------------------------------------------------------------------------------------------------------------------------------------
WITH DistinctEPAAOColumns AS
(
SELECT DISTINCT Seq
FROM #SequencedOrgStandardDetails
)
SELECT
@EP_AAO_Columns =
(
STUFF
(
(
SELECT ',EP_AAO_' + CAST(seq AS VARCHAR)
FROM DistinctEPAAOColumns
ORDER BY Seq
FOR XML PATH(''), TYPE
).value('.','varchar(max)'),1,1,''
)
);
------------------------------------------------------------------------------------------------------------------------------------------------------
-- Create a pivot table to hold each of the distinct sequence numbers for effective standards
--
-- The pivot table is dynamically created so must be global; generate a unique name for the table
------------------------------------------------------------------------------------------------------------------------------------------------------
DECLARE @OrganisationStandardTableSummary VARCHAR(32) = REPLACE(CAST(NEWID() AS VARCHAR(36)), '-', '');
WITH DistinctEPAAOColumns AS
(
SELECT DISTINCT Seq
FROM #SequencedOrgStandardDetails
)
SELECT
@Dynamic_sql = 'CREATE TABLE ##' + @OrganisationStandardTableSummary + ' (StandardCode INT,' +
(
STUFF
(
(
SELECT ',EP_AAO_' + CAST(seq AS VARCHAR) + ' NVARCHAR(500)'
FROM DistinctEPAAOColumns
ORDER BY Seq
FOR XML PATH(''), TYPE
).value('.','varchar(max)'),1,1,''
)
) + ')';
EXECUTE sp_executesql @Dynamic_sql;
------------------------------------------------------------------------------------------------------------------------------------------------------
-- Populate the pivot table with all the organisations for each standard
------------------------------------------------------------------------------------------------------------------------------------------------------
DECLARE @StandardCode INT
DECLARE DistinctStandardCodesCursor CURSOR
FOR SELECT DISTINCT StandardCode FROM #SequencedOrgStandardDetails
OPEN DistinctStandardCodesCursor
FETCH NEXT FROM DistinctStandardCodesCursor INTO @StandardCode
WHILE @@FETCH_STATUS = 0
BEGIN
WITH DistinctStandardCodesCTE AS
(
SELECT DISTINCT StandardCode
FROM #SequencedOrgStandardDetails
)
SELECT
@Dynamic_sql =
'INSERT INTO ##' + @OrganisationStandardTableSummary + '(StandardCode,' +
(
STUFF
(
(
SELECT ',EP_AAO_' + CAST(seq AS VARCHAR)
FROM #SequencedOrgStandardDetails
WHERE StandardCode = DistinctStandardCodesCTE.StandardCode
ORDER BY StandardCode, Seq
FOR XML PATH(''), TYPE
).value('.','varchar(max)'),1,1,''
)
) + ') VALUES (' +
(SELECT CAST(StandardCode AS VARCHAR) + ',' +
STUFF
(
(
SELECT ',''' + REPLACE(EndPointAssessorName, '''', '''''') + ''''
FROM #SequencedOrgStandardDetails
WHERE StandardCode = DistinctStandardCodesCTE.StandardCode
ORDER BY StandardCode, Seq
FOR XML PATH(''), TYPE
).value('.','varchar(max)'),1,1,''
)
) + ')'
FROM DistinctStandardCodesCTE
WHERE DistinctStandardCodesCTE.StandardCode = @StandardCode
EXECUTE sp_executesql @Dynamic_sql;
FETCH NEXT FROM DistinctStandardCodesCursor
INTO @StandardCode
END
CLOSE DistinctStandardCodesCursor;
DEALLOCATE DistinctStandardCodesCursor;
DROP TABLE #SequencedOrgStandardDetails
------------------------------------------------------------------------------------------------------------------------------------------------------
-- Produce the report to list all the effective standards with each organisation which has registered to assess a given standard
------------------------------------------------------------------------------------------------------------------------------------------------------
SELECT @Dynamic_sql =
'
SELECT
'''' as Trailblazer,
isnull(JSON_VALUE(StandardData,''$.Category''),'''') [Industry Sector],
Title as Apprentice_standards,
StandardId as LARS_Code,
ReferenceNumber as IFA_Code,
isnull(JSON_VALUE(StandardData,''$.Level''),'''') [Level],' +
@EP_AAO_Columns +
' FROM
StandardCollation sc
LEFT OUTER JOIN ##' + @OrganisationStandardTableSummary +' sts on sts.StandardCode = sc.StandardId
WHERE
ISJSON(StandardData) > 0
and ReferenceNumber is not null
and JSON_Value(StandardData, ''$.EffectiveFrom'') is not null
and
(
JSON_Value(StandardData,''$.EffectiveTo'') is null OR
JSON_Value(StandardData,''$.EffectiveTo'') > GETDATE()
)
ORDER BY
Title
'
EXECUTE sp_executesql @Dynamic_sql;
------------------------------------------------------------------------------------------------------------------------------------------------------
-- Cleanup of dynamically created pivot table
------------------------------------------------------------------------------------------------------------------------------------------------------
SELECT @Dynamic_sql = 'IF OBJECT_ID(''tempdb..##' + @OrganisationStandardTableSummary + ''') IS NOT NULL DROP TABLE ##' + @OrganisationStandardTableSummary
EXECUTE sp_executesql @Dynamic_sql;
|
CREATE TABLE [dbo].[api_TargetFieldValues] (
[ID] INT NOT NULL IDENTITY(1,1),
[TargetID] INT NOT NULL,
[FieldName] NVARCHAR (100) NOT NULL,
[FieldValue] NVARCHAR (4000) NOT NULL,
CONSTRAINT [PK_api_TargetFieldValues] PRIMARY KEY CLUSTERED ([ID] ASC),
CONSTRAINT [FK_api_TargetFieldValues_Target] FOREIGN KEY ([TargetID]) REFERENCES [dbo].[api_Target] ([ID]) ON DELETE CASCADE
);
GO
CREATE UNIQUE INDEX [UQ_api_TargetFieldValues] ON [dbo].[api_TargetFieldValues] ([TargetID], [FieldName])
|
CREATE TABLE MV_OFFENDER_MATCH_DETAILS (
OFFENDER_ID_DISPLAY VARCHAR2(10),
OFFENDER_ID NUMBER(10),
LAST_NAME_KEY VARCHAR2(35),
FIRST_NAME_KEY VARCHAR2(35),
BIRTH_DATE DATE,
BIRTH_PLACE VARCHAR2(25),
AVG_HEIGHT NUMBER(6, 0),
FLAT VARCHAR2(30),
PREMISE VARCHAR2(50),
STREET VARCHAR2(160),
LOCALITY VARCHAR2(70),
CITY_CODE VARCHAR2(12),
COUNTY_CODE VARCHAR2(12),
POSTAL_CODE VARCHAR2(12),
ADDRESS_USAGE VARCHAR2(12)
);
-- The reference offender:
INSERT INTO MV_OFFENDER_MATCH_DETAILS VALUES ('A1234AA', 001, 'Smith', 'John', to_date('1990-01-02', 'YYYY-MM-DD'), 'YORKSHIRE', 190, 'Flat 1', 'The Flats', 'Flat Street', 'Flatland', 'Sheffield', 'S YORKSHIRE', 'S1 0OO', 'HOME');
-- Matches:
INSERT INTO MV_OFFENDER_MATCH_DETAILS VALUES ('B1234BB', 002, 'Smith', 'John', to_date('1990-01-02', 'YYYY-MM-DD'), 'YORKSHIRE', 190, 'Flat 1', 'The Flats', 'Flat Street', 'Flatland', 'Sheffield', 'S YORKSHIRE', 'S1 0OO', 'HOME');
INSERT INTO MV_OFFENDER_MATCH_DETAILS VALUES ('C1234CC', 003, 'Smith', 'Alias', to_date('1999-01-01', 'YYYY-MM-DD'), 'YORKSHIRE', 191, 'Flat 1', 'The Flats', 'Flat Street', 'Flatland', 'Sheffield', 'S YORKSHIRE', 'S1 0OO', 'HOME');
INSERT INTO MV_OFFENDER_MATCH_DETAILS VALUES ('D1234DD', 004, 'Alias', 'John', to_date('1990-01-02', 'YYYY-MM-DD'), 'LANCASHIRE', 188, NULL, 'Other', 'Flat Street', NULL, 'Sheffield', 'S YORKSHIRE', 'S1 0OO', 'HOME');
-- Matches when taking into account data across all aliases,
-- even though none would individually be counted as a match
-- (see the 'Not a match' section for proof)
INSERT INTO MV_OFFENDER_MATCH_DETAILS VALUES ('E1234EE', 005, 'Someother', 'Alias', to_date('1990-01-02', 'YYYY-MM-DD'), 'YORKSHIRE', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'HOME');
INSERT INTO MV_OFFENDER_MATCH_DETAILS VALUES ('E1234EE', 006, 'Smith', 'Alias', to_date('2005-06-07', 'YYYY-MM-DD'), 'LANCASHIRE', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'HOME');
INSERT INTO MV_OFFENDER_MATCH_DETAILS VALUES ('E1234EE', 007, 'Alias', 'John', to_date('2006-07-08', 'YYYY-MM-DD'), 'LANCASHIRE', 190, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'HOME');
INSERT INTO MV_OFFENDER_MATCH_DETAILS VALUES ('E1234EE', 008, 'Alias', 'Alias', to_date('2007-08-09', 'YYYY-MM-DD'), 'LANCASHIRE', 200, 'Flat 1', 'The Flats', 'Flat Street', 'Flatland', 'Sheffield', 'S YORKSHIRE', 'S1 0OO', 'HOME');
-- Not a match:
INSERT INTO MV_OFFENDER_MATCH_DETAILS VALUES ('V1234VV', 005, 'Someother', 'Alias', to_date('1990-01-02', 'YYYY-MM-DD'), 'YORKSHIRE', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'HOME');
INSERT INTO MV_OFFENDER_MATCH_DETAILS VALUES ('W1234WW', 006, 'Smith', 'Alias', to_date('2005-06-07', 'YYYY-MM-DD'), 'LANCASHIRE', 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'HOME');
INSERT INTO MV_OFFENDER_MATCH_DETAILS VALUES ('X1234XX', 007, 'Alias', 'John', to_date('2006-07-08', 'YYYY-MM-DD'), 'LANCASHIRE', 190, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'HOME');
INSERT INTO MV_OFFENDER_MATCH_DETAILS VALUES ('Y1234YY', 008, 'Alias', 'Alias', to_date('2007-08-09', 'YYYY-MM-DD'), 'LANCASHIRE', 200, 'Flat 1', 'The Flats', 'Flat Street', 'Flatland', 'Sheffield', 'S YORKSHIRE', 'S1 0OO', 'HOME');
-- Not a match (entirely different):
INSERT INTO MV_OFFENDER_MATCH_DETAILS VALUES ('Z1234ZZ', 009, 'Bloggs', 'Joe', to_date('1935-12-13', 'YYYY-MM-DD'), 'LANCASHIRE', 150, 'Apartment 999', 'Apartment Complex', 'Apartment Place', 'Apartmentville', 'Manchester', 'MANCHESTER', 'M2 3AB', 'HOME');
|
-- file:triggers.sql ln:1299 expect:true
create trigger my_trigger after update on my_view referencing old table as old_table
for each statement execute procedure my_trigger_function()
|
<gh_stars>10-100
-- file:triggers.sql ln:1814 expect:true
create trigger trig_table_before_trig
before insert or update or delete on trig_table
for each statement execute procedure trigger_func('trig_table')
|
DROP TABLE project_team_members;
|
DELETE FROM `{project}.{dataset}.{table}` WHERE TRUE |
<reponame>BaiShaoqi/geospatial
----------------------------------------------------------------------
--
--
-- Copyright (c) 2009-2010 <NAME> <<EMAIL>>
-- Modifications Copyright (c) 2017 - Present Pivotal Software, Inc. All Rights Reserved.
--
----------------------------------------------------------------------
-- NOTE: The ST_Histogram() function is already implemented in C. This plpgsql script is provided only as an example.
-- Defining the plpgsql function below might overwrite the current C implementation and brake other functions dependent on it.
-- Use with caution.
----------------------------------------------------------------------
-- _ST_Values(rast raster, band int)
-- Return all rast pixels values which center are in a geometry
-- Values are returned as groups of identical adjacent values (value, count)
-- in order to reduce the number of row returned.
----------------------------------------------------------------------
CREATE OR REPLACE FUNCTION _ST_Values(rast raster, band int, geom geometry, OUT val float8, OUT count int)
RETURNS SETOF record AS
$$
DECLARE
geomintersect geometry;
m int[];
x integer := 0;
y integer := 0;
curval float8;
BEGIN
m := ST_GeomExtent2RasterCoord(rast, geom);
-- Get the intersection between with the geometry.
geomintersect := ST_Intersection(geom, ST_ConvexHull(rast));
-- If the intersection is empty, return false
IF m[1] IS NULL AND m[2] IS NULL AND m[3] IS NULL AND m[4] IS NULL THEN
RETURN;
END IF;
count := 0;
val := ST_Value(rast, band, m[1], m[2]);
FOR x IN m[1]..m[3] LOOP
FOR y IN m[2]..m[4] LOOP
-- Check first if the pixel intersects with the geometry. Many won't.
IF ST_Intersects(geom, ST_Centroid(ST_PixelAsPolygon(rast, x, y))) THEN
curval = ST_Value(rast, band, x, y);
IF NOT curval IS NULL THEN
IF curval = val THEN
count := count + 1;
ELSE
RETURN NEXT;
val := curval;
count := 1;
END IF;
END IF;
END IF;
END LOOP;
END LOOP;
RETURN NEXT;
RETURN;
END;
$$
LANGUAGE 'plpgsql' IMMUTABLE STRICT;
----------------------------------------------------------------------
-- _ST_Values(rast raster, band int)
-- Return all rast pixels values
-- Values are returned as groups of identical adjacent values (value, count)
-- in order to reduce the number of row returned.
----------------------------------------------------------------------
CREATE OR REPLACE FUNCTION _ST_Values(rast raster, band int, OUT val float8, OUT count int)
RETURNS SETOF record AS
$$
DECLARE
x int;
y int;
width int := ST_Width(rast);
height int := ST_Height(rast);
curval float8;
BEGIN
count := 0;
val := ST_Value(rast, band, 1, 1);
FOR x IN 1..width LOOP
FOR y IN 1..height LOOP
curval = ST_Value(rast, band, x, y);
IF NOT curval IS NULL THEN
IF curval = val THEN
count := count + 1;
ELSE
RETURN NEXT;
val := curval;
count := 1;
END IF;
END IF;
END LOOP;
END LOOP;
RETURN NEXT;
RETURN;
END;
$$
LANGUAGE 'plpgsql';
----------------------------------------------------------------------
-- ST_Histogram(rast raster, band int) group
-- Return a set of (val, count) rows forming the value histogram for a raster
----------------------------------------------------------------------
CREATE OR REPLACE FUNCTION ST_Histogram(rast raster, band int, OUT val double precision, OUT count bigint)
RETURNS SETOF record
AS $$
SELECT (vc).val val, sum((vc).count)::bigint count
FROM (SELECT _ST_Values($1, $2) vc) foo GROUP BY (vc).val;
$$
LANGUAGE SQL;
CREATE OR REPLACE FUNCTION ST_Histogram(rast raster, OUT val double precision, OUT count bigint)
RETURNS SETOF record
AS $$
SELECT (vc).val val, sum((vc).count)::bigint count
FROM (SELECT _ST_Values($1, 1) vc) foo GROUP BY (vc).val;
$$
LANGUAGE SQL;
----------------------------------------------------------------------
-- ST_Histogram(rast raster, band int, geom geometry) group
-- Return a set of (val, count) rows forming the value histogram for the area of a raster covered by a polygon geometry.
-- Pixels are selected only when their center intersects the polygon
----------------------------------------------------------------------
CREATE OR REPLACE FUNCTION ST_Histogram(rast raster, band int, geom geometry, OUT val double precision, OUT count bigint)
RETURNS SETOF record
AS $$
SELECT (vc).val val, sum((vc).count)::bigint count
FROM (SELECT _ST_Values($1, $2, $3) vc) foo GROUP BY (vc).val;
$$
LANGUAGE SQL;
CREATE OR REPLACE FUNCTION ST_Histogram(rast raster, geom geometry, OUT val double precision, OUT count bigint)
RETURNS SETOF record
AS $$
SELECT (vc).val val, sum((vc).count)::bigint count
FROM (SELECT _ST_Values($1, 1, $2) vc) foo GROUP BY (vc).val;
$$
LANGUAGE SQL;
----------------------------------------------------------------------
-- This variant might be faster (not using an intermediate _ST_Values function)
----------------------------------------------------------------------
CREATE OR REPLACE FUNCTION ST_Histogram2(rast raster, band int, OUT val double precision, OUT count bigint)
RETURNS SETOF record
AS $$
SELECT val, count(*) count
FROM (SELECT ST_Value($1, $2, x, y) val FROM generate_series(1, ST_Width($1)) x , generate_series(1, ST_Height($1)) y) foo
GROUP BY val;
$$
LANGUAGE SQL IMMUTABLE;
SELECT (hist).val val, sum((hist).count) count
FROM (SELECT ST_Histogram2(rast, 1) hist FROM srtm_22_03_tiled_10x10) foo
GROUP BY val
ORDER BY count DESC
----------------------------------------------------------------------
-- Other variant (not grouping in the function) (not using an intermediate _ST_Values function)
----------------------------------------------------------------------
CREATE OR REPLACE FUNCTION ST_Histogram3(rast raster, band int, OUT val double precision)
RETURNS SETOF double precision
AS $$
SELECT ST_Value($1, $2, x, y) val FROM generate_series(1, ST_Width($1)) x , generate_series(1, ST_Height($1)) y;
$$
LANGUAGE SQL IMMUTABLE;
SELECT val, count(*) count
FROM (SELECT ST_Histogram3(rast, 1) val FROM srtm_22_03_tiled_10x10) foo
GROUP BY val
ORDER BY count DESC
SELECT ST_Histogram3(rast, 1) val, count(*) count FROM srtm_22_03_tiled_10x10
GROUP BY val
ORDER BY count DESC
----------------------------------------------------------------------
-- This might actually be the fasters query to get the histogram
----------------------------------------------------------------------
SELECT val, count(*) count
FROM (SELECT ST_Value(rast, 1, x, y) val
FROM generate_series(1, 10) x, generate_series(1, 10) y, srtm_22_03_tiled_10x10
) foo
GROUP BY val
ORDER BY count DESC
----------------------------------------------------------------------
-- Example 1: Query returning the histogram for a raster tile (one at a time)
----------------------------------------------------------------------
-------------------------------
-- The subquery gets the histogram for each tile
-- The main query split the resulting records in their two components (val & count)
-------------------------------
SELECT rid,
(hist).val,
(hist).count
FROM (SELECT rid,
ST_Histogram(rast) hist
FROM srtm_22_03_tiled_25x25
WHERE rid = 234
) foo
ORDER BY (hist).count DESC
----------------------------------------------------------------------
-- Example 2: Query returning the complete histogram for a tiled raster coverage
- (might be very long)
----------------------------------------------------------------------
-------------------------------
-- The subquery gets the histogram for each tile
-- The main query split the resulting records in their two
-- components (val & count) and sum the count over all the tiles
-------------------------------
SELECT (hist).val,
SUM((hist).count) count
FROM (SELECT rid,
ST_Histogram(rast) hist
FROM srtm_22_03_tiled_25x25
) foo
GROUP BY (hist).val
ORDER BY count DESC
----------------------------------------------------------------------
-- Example 3: Query returning the mean pixel value for each tile of a
-- tiled raster (might be very long)
----------------------------------------------------------------------
-------------------------------
-- The subquery gets the histogram for each tile
-- The main query split the resulting records in their two
-- components (val & count) computing a mean value per tile at the same time
-------------------------------
SELECT rid,
geom,
round(((SUM((hist).val * (hist).count)) / SUM((hist).count))::numeric, 2) meanval
FROM (SELECT rid,
rast::geometry geom,
ST_Histogram(rast) hist
FROM srtm_22_03_tiled_25x25
) foo
GROUP BY rid, geom
ORDER BY rid;
----------------------------------------------------------------------
-- Example 4: Query returning the most frequent pixel value for each tile
-- of a tiled raster (might be very long)
-- This example requires an aggregate function tracking the value
-- associated with the maximum count
----------------------------------------------------------------------
CREATE TYPE dblIntSet AS (
maxval double precision,
val int
);
CREATE OR REPLACE FUNCTION maxFromDblIntSet(dblIntSet, dblIntSet) RETURNS dblIntSet AS
$$ SELECT CASE WHEN $1.maxval>$2.maxval THEN $1 ELSE $2 END $$
LANGUAGE sql;
CREATE OR REPLACE FUNCTION valFromDblIntSet(dblIntSet) RETURNS int AS
$$ SELECT $1.val $$
LANGUAGE sql;
CREATE AGGREGATE maxFromDblIntSet (
BASETYPE = dblIntSet,
SFUNC = maxFromDblIntSet,
STYPE = dblIntSet,
INITCOND = '(0,0)',
FINALFUNC = valFromDblIntSet
);
-------------------------------
-- Actual query
-- The subquery gets the histogram for each tile
-- The main query split the resulting records in their two
-- components (val & count) and compute the maximum count and its associated value
-------------------------------
SELECT rid,
geom,
maxFromDblIntSet(ROW((hist).count, (hist).val::int)) mostfreqval,
MAX((hist).count) count
FROM (SELECT rid,
rast::geometry geom,
ST_Histogram(rast) hist
FROM srtm_22_03_tiled_25x25
) foo
GROUP BY rid, geom
ORDER BY rid
----------------------------------------------------------------------
-- Example 5: Query returning the most frequent pixel value per polygon from a raster
-- Do not use when the raster is big, in this case it should be tiled and
-- the next example (6) should be used instead
----------------------------------------------------------------------
SELECT polyid,
geom,
maxFromDblIntSet(ROW((hist).count, (hist).val::int)) mostfreqval,
MAX((hist).count) count
FROM (
SELECT polyid,
geom,
ST_Histogram(rast, geom) hist
FROM srtm_22_03, mypolygons
WHERE ST_Intersects(rast, geom)
) foo
GROUP BY polyid, geom
----------------------------------------------------------------------
-- Example 6: Query returning the most frequent pixel value per polygon on a tiled raster coverage
----------------------------------------------------------------------
-------------------------------
-- The first subquery gets the histogram for each tile
-- The second subquery split the resulting records in their two
-- components (val & count) and sum the count for each polygon-value couple
-- The main query compute the maximum count and its associated value
-------------------------------
SELECT polyid,
geom,
maxFromDblIntSet(ROW(count, val)) mostfreqval,
MAX(count) count
FROM (SELECT polyid,
geom, (hist).val::int val,
SUM((hist).count) count
FROM (SELECT polyid,
geom,
ST_Histogram(rast, geom) hist
FROM srtm_22_03_tiled_25x25, mypolygons
WHERE ST_Intersects(rast, geom)
) foo
GROUP BY polyid, geom, (hist).val
) bar
GROUP BY polyid, geom
----------------------------------------------------------------------
-- Example 7: Query returning the mean pixel value per polygon on a tiled raster coverage
----------------------------------------------------------------------
-------------------------------
-- The first subquery gets the histogram for each tile
-- The second subquery split the resulting records in their two
-- components (val & count) and sum the count for each polygon-value couple
-- The main query compute the mean pixel value
-------------------------------
SELECT polyid,
geom,
round((SUM(val * count) / SUM(count))::numeric, 2) meanval
FROM (SELECT polyid,
geom, (hist).val::int val,
SUM((hist).count) count
FROM (SELECT polyid,
geom,
ST_Histogram(rast, geom) hist
FROM srtm_22_03_tiled_25x25, mypolygons
WHERE ST_Intersects(rast, geom)
) foo
GROUP BY polyid, geom, (hist).val
) bar
GROUP BY polyid, geom |
DO
$$
BEGIN
IF (SELECT 1
FROM information_schema.tables
WHERE table_schema = 'public'
AND table_name = 'any_table'
) THEN
REVOKE select on table "public"."any_table" from "postgres";
END IF;
END
$$;
drop view if exists "public"."any_other_view";
grant update on table "public"."any_table" to "postgres";
|
-- 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.
PRINT N'Creating primary key [LevelOfEducationDescriptor_PK] on [edfi].[LevelOfEducationDescriptor]'
GO
ALTER TABLE [edfi].[LevelOfEducationDescriptor] ADD CONSTRAINT [LevelOfEducationDescriptor_PK] PRIMARY KEY CLUSTERED ([LevelOfEducationDescriptorId])
GO
PRINT N'Creating index [FK_LevelOfEducationDescriptor_Descriptor] on [edfi].[LevelOfEducationDescriptor]'
GO
CREATE NONCLUSTERED INDEX [FK_LevelOfEducationDescriptor_Descriptor] ON [edfi].[LevelOfEducationDescriptor] ([LevelOfEducationDescriptorId])
GO
PRINT N'Creating index [FK_LevelOfEducationDescriptor_LevelOfEducationType] on [edfi].[LevelOfEducationDescriptor]'
GO
CREATE NONCLUSTERED INDEX [FK_LevelOfEducationDescriptor_LevelOfEducationType] ON [edfi].[LevelOfEducationDescriptor] ([LevelOfEducationTypeId])
GO
|
<reponame>LieroLarryfier/project_book
# Projects schema
# --- !Ups
CREATE TABLE project (
id integer primary key AUTOINCREMENT,
label varchar(255) NOT NULL,
categories varchar(255),
progress integer NOT NULL DEFAULT 0,
description varchar(255),
contributors varchar(255),
tags varchar(255)
);
# --- !Downs
DROP TABLE project;
|
USE burgers_db;
INSERT burgers (burger_name,devoured)
VALUES ("Spicy Chedar",false),("Veggie's Nightmare", true),("Mushroom Heaven", true); |
<filename>migrations/frontend/1528395749_add_expired_at_and_last_valid_at_columns_to_user_external_accounts.down.sql
BEGIN;
ALTER TABLE user_external_accounts DROP COLUMN IF EXISTS expired_at;
ALTER TABLE user_external_accounts DROP COLUMN IF EXISTS last_valid_at;
COMMIT;
|
/*OPTIMIZE = 1 HERE MEANS IT IS GOOD TO KEEP!*/
IF OBJECT_ID('@storeData', 'U') IS NOT NULL DROP TABLE @storeData;
IF OBJECT_ID('EVIDENCE.TEMP_NC_SUMMARY_OPT', 'U') IS NOT NULL DROP TABLE EVIDENCE.TEMP_NC_SUMMARY_OPT;
WITH CTE_NOT_PREVELANT_CONCEPTS AS (
SELECT OUTCOME_OF_INTEREST_CONCEPT_ID, OUTCOME_OF_INTEREST_CONCEPT_NAME, SORT_ORDER, USER_INCLUDED
FROM @summaryData
WHERE SORT_ORDER > 100000000000000000
),
CTE_CONCEPTS AS (
/*FIND ALL CANDIDATE NEGATIVE CONTROLS TO OPTIMIZE*/
SELECT OUTCOME_OF_INTEREST_CONCEPT_ID, OUTCOME_OF_INTEREST_CONCEPT_NAME, SORT_ORDER, USER_INCLUDED
FROM @summaryData
WHERE DESCENDANT_PMID_COUNT = 0
AND EXACT_PMID_COUNT = 0
AND PARENT_PMID_COUNT = 0
AND ANCESTOR_PMID_COUNT = 0
AND IND_CI = 0
{@outcomeOfInterest=='condition'}?{AND TOO_BROAD = 0}
AND DRUG_INDUCED = 0
{@outcomeOfInterest=='condition'}?{AND PREGNANCY = 0}
AND DESCENDANT_SPLICER = 0
AND EXACT_SPLICER = 0
AND PARENT_SPLICER = 0
AND ANCESTOR_SPLICER = 0
AND DESCENDANT_FAERS = 0
AND EXACT_FAERS = 0
AND PARENT_FAERS = 0
AND ANCESTOR_FAERS = 0
AND USER_EXCLUDED = 0
),
/*************************OPTIMIZATION LOGIC************************************/
conceptSetConcepts AS (
-- Concepts that are part of the concept set definition that are "EXCLUDED = N, DECENDANTS = Y or N"
select DISTINCT concept_id
from @vocabulary.CONCEPT
where concept_id in (
/*OUR LIST OF NEGATIVE CONTROLS*/
SELECT OUTCOME_OF_INTEREST_CONCEPT_ID FROM CTE_CONCEPTS
)
and invalid_reason is null
),
conceptSetDescendants AS (
select distinct ancestor_concept_id, descendant_concept_id concept_id
from @vocabulary.concept_ancestor
where ancestor_concept_id in (
SELECT OUTCOME_OF_INTEREST_CONCEPT_ID FROM CTE_CONCEPTS
)
and ancestor_concept_id != descendant_concept_id -- Exclude the selected ancestor itself
),
conceptSetAnalysis AS (
SELECT
a.concept_id original_concept_id
, c1.concept_name original_concept_name
, b.ancestor_concept_id
, c3.concept_name ancestor_concept_name
, b.concept_id subsumed_concept_id
, c2.concept_name subsumed_concept_name
FROM conceptSetConcepts a
LEFT JOIN conceptSetDescendants b ON a.concept_id = b.concept_id
LEFT JOIN @vocabulary.concept c1 ON a.concept_id = c1.concept_id
LEFT JOIN @vocabulary.concept c2 ON b.concept_id = c2.concept_id
LEFT JOIN @vocabulary.concept c3 ON b.ancestor_concept_id = c3.concept_id
),
conceptSetOptimized AS (
SELECT
original_concept_id concept_id
, original_concept_name concept_name
FROM conceptSetAnalysis
WHERE subsumed_concept_id is null
),
conceptSetRemoved AS (
SELECT DISTINCT
subsumed_concept_id concept_id
, subsumed_concept_name concept_name
FROM conceptSetAnalysis
WHERE subsumed_concept_id is not null
)
SELECT *
INTO EVIDENCE.TEMP_NC_SUMMARY_OPT
FROM (
SELECT *,
CASE WHEN c.OUTCOME_OF_INTEREST_CONCEPT_ID IN ( SELECT CONCEPT_ID FROM conceptSetOptimized ) THEN 1 ELSE 0 END AS OPTIMIZED,
0 AS NOT_PREVELANT
FROM CTE_CONCEPTS c
UNION ALL
SELECT *,
0 AS OPTIMIZED,
1 AS NOT_PREVELANT
FROM CTE_NOT_PREVELANT_CONCEPTS
) z
ORDER BY 1 DESC, SORT_ORDER, OUTCOME_OF_INTEREST_CONCEPT_NAME;
/*ELIMINATE SIBLINGS*/
WITH CTE_LIST AS (
/*Using the rows that were okay from above, let's further filter siblings*/
SELECT *, OUTCOME_OF_INTEREST_CONCEPT_ID AS CONCEPT_ID, OUTCOME_OF_INTEREST_CONCEPT_NAME AS CONCEPT_NAME
FROM EVIDENCE.TEMP_NC_SUMMARY_OPT
WHERE OPTIMIZED = 1
AND NOT_PREVELANT = 0
),
CTE_PARENTS AS (
/*Who are your parents?*/
SELECT DISTINCT l.*, c.CONCEPT_ID AS PARENT_CONCEPT_ID, c.CONCEPT_NAME AS PARENT_CONCEPT_NAME
FROM CTE_LIST l
LEFT OUTER JOIN @vocabulary.CONCEPT_RELATIONSHIP cr
ON cr.CONCEPT_ID_2 = l.CONCEPT_ID
LEFT OUTER JOIN @vocabulary.CONCEPT c
ON c.CONCEPT_ID = cr.CONCEPT_ID_1
AND c.STANDARD_CONCEPT = 'S'
AND c.CONCEPT_ID != l.CONCEPT_ID
),
CTE_POSSIBLE_DUPLICATES AS (
/*Parent has more than one child*/
SELECT PARENT_CONCEPT_ID, PARENT_CONCEPT_NAME, COUNT(*) AS ROW_COUNT
FROM CTE_PARENTS
GROUP BY PARENT_CONCEPT_ID, PARENT_CONCEPT_NAME
HAVING COUNT(*) > 1
),
CTE_SELECTING_DUPLICATES AS (
/*When a parent has more than one child, pick one*/
SELECT CONCEPT_ID, CONCEPT_NAME, SORT_ORDER, PARENT_CONCEPT_ID, PARENT_CONCEPT_NAME,
ROW_NUMBER() OVER(PARTITION BY PARENT_CONCEPT_ID ORDER BY PARENT_CONCEPT_ID, SORT_ORDER, CONCEPT_ID) AS ROW_NUM
FROM CTE_PARENTS
WHERE PARENT_CONCEPT_ID IN (
SELECT PARENT_CONCEPT_ID
FROM CTE_POSSIBLE_DUPLICATES
)
),
CTE_KEEP_CONTROL AS (
SELECT l.CONCEPT_ID, l.CONCEPT_NAME, l.SORT_ORDER,
MAX(d.ROW_NUM) AS ROW_NUM
FROM CTE_LIST l
JOIN CTE_SELECTING_DUPLICATES d
ON d.CONCEPT_ID = l.CONCEPT_ID
GROUP BY l.CONCEPT_ID, l.CONCEPT_NAME, l.SORT_ORDER
)
SELECT o.OUTCOME_OF_INTEREST_CONCEPT_ID,
o.OUTCOME_OF_INTEREST_CONCEPT_NAME,
o.SORT_ORDER,
o.USER_INCLUDED,
CASE
WHEN c.ROW_NUM IS NULL THEN o.OPTIMIZED
WHEN c.ROW_NUM = 1 THEN 1
WHEN c.ROW_NUM > 1 THEN 0
ELSE o.OPTIMIZED
END AS OPTIMIZED,
o.NOT_PREVELANT
INTO @storeData
FROM EVIDENCE.TEMP_NC_SUMMARY_OPT o
LEFT OUTER JOIN CTE_KEEP_CONTROL c
ON c.CONCEPT_ID = OUTCOME_OF_INTEREST_CONCEPT_ID
ORDER BY 1 DESC, SORT_ORDER, OUTCOME_OF_INTEREST_CONCEPT_NAME;
DROP TABLE EVIDENCE.TEMP_NC_SUMMARY_OPT;
ALTER TABLE @storeData OWNER TO RW_GRP;
|
ALTER TYPE action_type ADD VALUE 'SUBMIT_FINAL_BIZ_CASE';
|
-- Copyright 2018 <NAME>. All rights reserved. More info at http://tanelpoder.com
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
@@saveset
column _ti_sequence noprint new_value _ti_sequence
set feedback off heading off
select trim(to_char( &_ti_sequence + 1 , '0999' )) "_ti_sequence" from dual;
alter session set tracefile_identifier="&_ti_sequence";
set feedback on heading on
set termout off
column tracefile noprint new_value trc
SELECT value tracefile FROM v$diag_info WHERE name = 'Default Trace File';
-- this is from from old 9i/10g days...
--
-- select value ||'/'||(select instance_name from v$instance) ||'_ora_'||
-- (select spid||case when traceid is not null then '_'||traceid else null end
-- from v$process where addr = (select paddr from v$session
-- where sid = (select sid from v$mystat
-- where rownum = 1
-- )
-- )
-- ) || '.trc' tracefile
-- from v$parameter where name = 'user_dump_dest';
set termout on
@@loadset
prompt New tracefile_identifier=&trc
col tracefile print
|
<gh_stars>10-100
set current schema ASN;
update command options using c off;
--
-- 1st trans
--
update stock_prices set (trading_price, trading_time) = (124.15, current time)
where symbol='IBM' and ccy='CAD' and trading_date='04-01-2004';
update stock_prices set (trading_price, trading_time) = (59.01, current time)
where symbol='MSFT' and ccy='CAD' and trading_date='04-01-2004';
update stock_prices set (trading_price, trading_time) = (93.75, current time)
where symbol='ORCL' and ccy='CAD' and trading_date='04-01-2004';
commit;
--
-- 2nd trans
--
update stock_prices set (trading_price, trading_time) = (84.33, current time)
where symbol='IBM' and ccy='EUR' and trading_date='04-01-2004';
update stock_prices set (trading_price, trading_time) = (40.88, current time)
where symbol='MSFT' and ccy='EUR' and trading_date='04-01-2004';
update stock_prices set (trading_price, trading_time) = (50.11, current time)
where symbol='ORCL' and ccy='EUR' and trading_date='04-01-2004';
commit;
--
-- 3rd trans
--
update stock_prices set (trading_price, trading_time) = (94.33, current time)
where symbol='IBM' and ccy='USD' and trading_date='04-01-2004';
update stock_prices set (trading_price, trading_time) = (45.01, current time)
where symbol='MSFT' and ccy='USD' and trading_date='04-01-2004';
update stock_prices set (trading_price, trading_time) = (64.85, current time)
where symbol='ORCL' and ccy='USD' and trading_date='04-01-2004';
commit;
|
<gh_stars>100-1000
CREATE TABLE sys."_Visit"
(
model varchar(15) NOT NULL,
id bigint NOT NULL,
operate smallint NOT NULL,
date timestamp(6) NOT NULL
);
COMMENT ON COLUMN sys."_Visit".operate IS '1-增
2-删
3-改
4-查';
CREATE TABLE sys."Access"
(
id integer PRIMARY KEY NOT NULL,
debug integer DEFAULT 0 NOT NULL,
name varchar(50) DEFAULT '实际表名,例如 apijson_user'::character varying NOT NULL,
alias text,
get text DEFAULT '["UNKNOWN", "LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]'::text NOT NULL,
head text DEFAULT '["UNKNOWN", "LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]'::text NOT NULL,
gets text DEFAULT '["LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]'::text NOT NULL,
heads text DEFAULT '["LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]'::text NOT NULL,
post text DEFAULT '["OWNER", "ADMIN"]'::text NOT NULL,
put text DEFAULT '["OWNER", "ADMIN"]'::text NOT NULL,
delete text DEFAULT '["OWNER", "ADMIN"]'::text NOT NULL,
date text DEFAULT CURRENT_TIMESTAMP NOT NULL
);
COMMENT ON COLUMN sys."Access".id IS '唯一标识';
COMMENT ON COLUMN sys."Access".debug IS '是否为调试表,只允许在开发环境使用,测试和线上环境禁用';
COMMENT ON COLUMN sys."Access".alias IS '外部调用的表别名,例如 User';
COMMENT ON COLUMN sys."Access".get IS '允许 get 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]
用 JSON 类型不能设置默认值,反正权限对应的需求是明确的,也不需要自动转 JSONArray。
TODO: 直接 LOGIN,CONTACT,CIRCLE,OWNER 更简单,反正是开发内部用,不需要复杂查询。';
COMMENT ON COLUMN sys."Access".head IS '允许 head 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]';
COMMENT ON COLUMN sys."Access".gets IS '允许 gets 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]';
COMMENT ON COLUMN sys."Access".heads IS '允许 heads 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]';
COMMENT ON COLUMN sys."Access".post IS '允许 post 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]';
COMMENT ON COLUMN sys."Access".put IS '允许 put 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]';
COMMENT ON COLUMN sys."Access".delete IS '允许 delete 的角色列表,例如 ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]';
COMMENT ON COLUMN sys."Access".date IS '创建时间';
CREATE UNIQUE INDEX access_alias_uindex ON sys."Access" (alias);
INSERT INTO sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (1, 1, 'Access', '', '["UNKNOWN", "LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]', '["UNKNOWN", "LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]', '["UNKNOWN", "LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]', '["UNKNOWN", "LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]', '[]', '[]', '[]', '2019-07-21 12:21:36');
INSERT INTO sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (2, 1, '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 sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (3, 1, '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 sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (4, 1, '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 sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (5, 1, '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 sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (6, 1, '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 sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (7, 1, '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 sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (8, 1, '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 sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (9, 0, '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 sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (10, 1, 'PgAttribute', 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 sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (11, 1, 'PgClass', 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 sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (12, 0, '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 sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (13, 0, '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');
INSERT INTO sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (14, 0, '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"]', '["UNKNOWN","LOGIN","OWNER", "ADMIN"]', '["OWNER", "ADMIN"]', '["ADMIN"]', '2018-11-28 16:28:53');
INSERT INTO sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (15, 0, 'apijson_privacy', 'Privacy', '[]', '[]', '["OWNER", "ADMIN"]', '["OWNER", "ADMIN"]', '["UNKNOWN","LOGIN","OWNER", "ADMIN"]', '["OWNER", "ADMIN"]', '["ADMIN"]', '2018-11-28 16:29:48');
INSERT INTO sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (16, 0, '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"]', '["LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]', '["OWNER", "ADMIN"]', '2018-11-28 16:29:19');
INSERT INTO sys."Access" (id, debug, name, alias, get, head, gets, heads, post, put, delete, date) VALUES (17, 0, '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');
CREATE TABLE sys.apijson_privacy
(
id bigint PRIMARY KEY NOT NULL,
certified smallint NOT NULL,
phone varchar(64) NOT NULL,
balance numeric(10,2) NOT NULL,
_password varchar(20) NOT NULL,
"_payPassword" varchar(32) NOT NULL
);
COMMENT ON COLUMN sys.apijson_privacy.id IS '唯一标识';
COMMENT ON COLUMN sys.apijson_privacy.certified IS '已认证';
COMMENT ON COLUMN sys.apijson_privacy.phone IS '手机号,仅支持 11 位数的。不支持 +86 这种国家地区开头的。如果要支持就改为 VARCHAR(14)';
COMMENT ON COLUMN sys.apijson_privacy.balance IS '余额';
COMMENT ON COLUMN sys.apijson_privacy._password IS '<PASSWORD>';
COMMENT ON COLUMN sys.apijson_privacy."_payPassword" IS '支付密码';
CREATE INDEX "phone_UNIQUE" ON sys.apijson_privacy (phone);
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (38710, 1, '13000038710', 33376.00, 'apijson', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (70793, 0, '13000070793', 56000.00, 'apijson', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82002, 1, '13000082002', 6817.23, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82003, 1, '13000082003', 2000.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82004, 0, '13000082004', 2000.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82005, 0, '13000082005', 1923.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82006, 0, '13000082006', 2000.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82009, 0, '13000082009', 2000.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82012, 0, '13000082012', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82020, 0, '12345678900', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82021, 0, '<PASSWORD>5678901', 0.00, '123456', '<PASSWORD>');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82022, 0, '12345678902', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82023, 0, '<PASSWORD>5678903', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82024, 0, '12345678904', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82025, 0, '12345678905', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82026, 0, '12345678906', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82027, 0, '12345678907', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82028, 0, '12345678908', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82029, 0, '12345678909', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82030, 0, '12345678910', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82031, 0, '<PASSWORD>', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82032, 0, '12345678912', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82033, 0, '12345678913', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82034, 0, '12345678914', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82035, 0, '12345678915', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82036, 0, '12345678916', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82037, 0, '12345678917', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82038, 0, '12345678918', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82039, 0, '12345678919', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82040, 0, '13000082019', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82041, 0, '13000082015', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82042, 0, '13000082016', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82043, 0, '13000082017', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82044, 0, '13000082018', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82045, 0, '13000082020', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82046, 0, '1<PASSWORD>0082010', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82047, 0, '13000082021', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82048, 0, '13000038711', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82049, 0, '13000038712', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82050, 0, '13000038713', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82051, 0, '13000038714', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82052, 0, '13000038715', 0.00, '123456', '<PASSWORD>');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82053, 0, '13000038720', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82054, 0, '13000038721', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82055, 0, '13000082030', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82056, 0, '13000082040', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82057, 0, '13000038730', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82058, 0, '13000038750', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82059, 0, '13000082033', 0.00, '123456', '<PASSWORD>');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82060, 0, '13000082050', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (90814, 1, '13000090814', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (93793, 1, '13000093793', 3000.00, 'apijson', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (93794, 0, '99999999999', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1490109742863, 0, '13000082100', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1490109845208, 0, '13000082101', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1490420651686, 0, '13000038716', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1490427139175, 0, '<PASSWORD>', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1490427577823, 0, '13000082102', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1490584952968, 0, '13000038790', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1490973670928, 0, '13000082051', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1492936169722, 0, '13000093794', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1493480142628, 0, '13000038888', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1493747512860, 0, '13000038777', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1493747777770, 0, '13000038778', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1493748594003, 0, '13000038779', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1493748615711, 0, '13000038780', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1493749090643, 0, '13000038781', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1493836043151, 0, '<PASSWORD>00038999', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1493883110132, 0, '<PASSWORD>', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1493890214167, 0, '13000031000', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1493890303473, 0, '13000031001', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1493890303474, 0, '1<PASSWORD>0088888', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1497792972314, 0, '13000082111', 0.00, '654321', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1499057230629, 0, '<PASSWORD>', 0.00, '123456', '<PASSWORD>');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1500825221910, 0, '13000099999', 0.00, '123456', '<PASSWORD>');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1502639062900, 0, '13000082222', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1502639424119, 0, '13000082333', 0.00, '12345678', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1507220582167, 0, '13000011111', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1508072071492, 0, '13000071492', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1508072105320, 0, '13000082008', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1508072160401, 0, '13000082007', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1508072202871, 0, '13000082031', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1510495628760, 0, '13000082000', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1511407581570, 0, '17610725819', 0.00, '123123', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1511761906715, 0, '13708222312', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1511965911349, 0, '13000083333', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1512387063078, 0, '<PASSWORD>', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1512531601485, 0, '18210847727', 0.00, '5816136', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1514623064133, 0, '<PASSWORD>038725', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1514625918255, 0, '13000038726', 255.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1514626163032, 0, '13000038727', 4951.37, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1514858422969, 0, '13000082041', 164.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1515565976140, 0, '15009257563', 0.00, 'qazwsx', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1518218350585, 0, '18663689263', 0.00, 'cherish751220', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1519778917280, 0, '15000536915', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1520242280259, 0, '18917212395', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1521274648008, 0, '18989491914', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1521371722416, 0, '13000088889', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1521374327542, 0, '13000056789', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1523626157302, 0, '15603313259', 0.00, '15603313259', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1523935772553, 0, '15603313258', 0.00, '15603313258', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1524042900591, 0, '15222297100', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1524298730523, 0, '17854217949', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1524878698882, 0, '13917451840', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1525677515673, 0, '13390935538', 10000.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1527495857924, 0, '<PASSWORD>', 15.00, 'qweasd', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1527498229991, 0, '13142033342', 0.00, 'qweasd', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1527821445610, 0, '<PASSWORD>', 0.00, 'qweasd', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1528250827953, 0, '15122820115', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1528254173621, 0, '15225556855', 200.00, 'lmt970208', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1528255497767, 0, '<PASSWORD>', 0.00, '111111', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1528264711016, 0, '15620878773', 0.00, '111111', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1528339692804, 0, '15122541683', 0.00, '568599', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1528344980598, 0, '15188899797', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1528356470041, 0, '15620878772', 0.00, '111111', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1531969715979, 0, '13800138000', 10000.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1532188114543, 0, '13977757845', 20360.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1532439021068, 0, '18779607703', 0.00, '15879684798qq', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1533835176109, 0, '13977757846', 1700.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1534926301956, 0, '17602120205', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1538504264944, 0, '13000087654', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1538504500574, 0, '13000087655', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1538987952996, 0, '18662327672', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1541583762603, 0, '18689846285', 0.00, 'jyt123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1544276209348, 0, '13000087656', 1050.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1544503822963, 0, '13000082968', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1545707526805, 0, '13533039558', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1545895694424, 0, '13533039550', 357.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1547177436600, 0, '18980210241', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1548068043688, 0, '17<PASSWORD>', 0.00, '0812563993gg', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1553095415917, 0, '<PASSWORD>', 0.00, '123456', '123<PASSWORD>');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1553527700480, 0, '<PASSWORD>', 0.00, '3802489', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1559129626356, 0, '13000000000', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1560409157504, 0, '18030546471', 0.00, '123456789', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1561539257158, 0, '15870873323', 0.00, '123qwe', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1563605318975, 0, '13590330481', 0.00, '123456', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1566064943195, 0, '13111182001', 0.00, '6733', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1566065271307, 0, '13111182002', 0.00, '6733', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1566065319823, 0, '13111182003', 0.00, '6733', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (1566065621308, 0, '13111182008', 0.00, '6733', '123456');
INSERT INTO sys.apijson_privacy (id, certified, phone, balance, _password, "_payPassword") VALUES (82001, 1, '13000082001', 98729.15, '123456', '123456');
CREATE TABLE sys.apijson_user
(
id bigint PRIMARY KEY NOT NULL,
sex smallint NOT NULL,
name varchar(20),
tag varchar(45),
head varchar(300),
"contactIdList" jsonb,
"pictureList" jsonb,
date timestamp(6)
);
COMMENT ON COLUMN sys.apijson_user.id IS '唯一标识';
COMMENT ON COLUMN sys.apijson_user.sex IS '性别:
0-男
1-女';
COMMENT ON COLUMN sys.apijson_user.name IS '名称';
COMMENT ON COLUMN sys.apijson_user.tag IS '标签';
COMMENT ON COLUMN sys.apijson_user.head IS '头像url';
COMMENT ON COLUMN sys.apijson_user."contactIdList" IS '联系人id列表';
COMMENT ON COLUMN sys.apijson_user."pictureList" IS '照片列表';
COMMENT ON COLUMN sys.apijson_user.date IS '创建日期';
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) 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.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) 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.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) 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.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82045, 0, 'Green', null, 'http://common.cnblogs.com/images/wechat.png', '[82001, 82002, 82003, 1485246481130]', '[]', '2017-03-04 10:22:39.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82005, 1, 'Jan', 'AG', 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82001, 38710, 1532439021068]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82046, 0, 'Team', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[38710, 82002, 1485246481130]', '[]', '2017-03-04 15:11:17.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) 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.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) 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.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) 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.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) 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.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) 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.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) 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.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) 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.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1544276209348, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82002, 38710]', null, '2018-12-08 13:36:49.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82003, 1, 'Wechat', null, 'http://common.cnblogs.com/images/wechat.png', '[82001, 93793]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82041, 0, 'Holo', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[38710, 82001]', '[]', '2017-03-04 09:59:34.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82058, 0, 'StupidBird', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82001, 82002]', '[]', '2017-03-12 11:23:04.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82055, 1, 'Solid', null, 'http://static.oschina.net/uploads/user/19/39085_50.jpg', '[38710, 82002]', '[]', '2017-03-11 15:04:00.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) 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.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1544503822963, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[93793, 82003]', null, '2018-12-11 04:50:22.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1514625918255, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82002, 93793]', null, '2017-12-30 09:25:18.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) 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.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1528339692804, 1, '568599', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1528250827953, 1528264711016]', null, '2018-06-07 02:48:12.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1524042900591, 1, '哈哈哈', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82002, 82003]', null, '2018-04-18 09:15:00.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1514858422969, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[93793, 82056]', null, '2018-01-02 02:00:22.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1490973670928, 1, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[70793, 93793]', '[]', '2017-03-31 15:21:10.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1490427139175, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[38710, 70793]', '[]', '2017-03-25 07:32:19.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1515565976140, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82003, 82021]', null, '2018-01-10 06:32:56.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1523626157302, 1, 'Charlie_brown', '', 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1523935772553, 93793]', null, '2018-04-13 13:29:17.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1528254173621, 1, 'A', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82001, 38710]', null, '2018-06-06 03:02:53.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1523935772553, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1523626157302]', null, '2018-04-17 03:29:32.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1512531601485, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82001]', '[]', '2017-12-06 03:40:01.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1553095415917, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82001]', null, '2019-03-20 15:23:35.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1528255497767, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82002]', null, '2018-06-06 03:24:57.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1520242280259, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82002]', null, '2018-03-05 09:31:20.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1528250827953, 1, 'limengt', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1528264711016]', null, '2018-06-06 02:07:07.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) 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.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82044, 1, 'Love', null, 'http://static.oschina.net/uploads/user/1174/2348263_50.png?t=1439773471000', '[82006]', '[]', '2017-03-04 10:20:27.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1527498229991, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1499057230629]', null, '2018-05-28 09:03:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1528356470041, 0, 'aaaa', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1528339692804]', null, '2018-06-07 07:27:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82040, 1, 'Dream', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[70793]', '[]', '2017-03-02 16:44:26.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1490420651686, 1, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[70793]', '[]', '2017-03-25 05:44:11.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1559129626356, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1507220582167]', null, '2019-05-29 11:33:46.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1533835176109, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[1532188114543]', null, '2018-08-09 17:19:36.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1490109742863, 1, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-03-21 15:22:22.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1500825221910, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-07-23 15:53:41.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1493890214167, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-04 09:30:14.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1507220582167, 0, 'APIJSONUser', '通过APIJSONAuto的图像化界面注册,按Enter而不是Register', 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-10-05 16:23:02.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1497792972314, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-06-18 13:36:12.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1511761906715, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-11-27 05:51:46.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1524298730523, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', null, '2018-04-21 08:18:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1493747512860, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-02 17:51:52.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1493748615711, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-02 18:10:15.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1493480142628, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-04-29 15:35:42.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1499057230629, 0, '一二三', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-07-03 04:47:10.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1512387063078, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-12-04 11:31:03.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1511965911349, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-11-29 14:31:51.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1508072071492, 0, '赵钱孙李', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-10-15 12:54:31.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1493749090643, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-02 18:18:10.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1493748594003, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-02 18:09:54.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82004, 0, 'Tommy', 'fasef', 'http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82006, 1, 'Meria', null, 'http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82009, 0, 'God', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (93793, 0, 'Mike', 'GES', 'http://static.oschina.net/uploads/user/48/96331_50.jpg', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (93794, 0, 'Lemon', null, 'http://static.oschina.net/uploads/user/48/97721_50.jpg?t=1451544779000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82020, 0, 'ORANGE', null, 'http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82021, 1, 'Tommy', null, 'http://static.oschina.net/uploads/user/19/39085_50.jpg', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82022, 0, 'Internet', null, 'http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82023, 0, 'No1', null, 'http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1508072105320, 1, '周吴郑王', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-10-15 12:55:05.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82024, 0, 'Lemon', null, 'http://static.oschina.net/uploads/user/427/855532_50.jpg?t=1435030876000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82025, 1, 'Tommy', null, 'http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82026, 0, 'iOS', null, 'http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82027, 0, 'Yong', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82028, 1, 'gaeg', null, 'http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82029, 0, 'GASG', null, 'http://common.cnblogs.com/images/wechat.png', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82030, 1, 'Fun', null, 'http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82031, 0, 'Lemon', null, 'http://static.oschina.net/uploads/user/48/96331_50.jpg', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82032, 0, 'Stack', 'fasdg', 'http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82033, 1, 'GAS', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82034, 1, 'Jump', null, 'http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82035, 1, 'Tab', null, 'http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82036, 0, 'SAG', null, 'http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1502639062900, 0, 'TESLA', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-08-13 15:44:22.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82037, 0, 'Test', null, 'http://static.oschina.net/uploads/user/1200/2400261_50.png?t=1439638750000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82038, 0, 'Battle', null, 'http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1502639424119, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-08-13 15:50:24.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82039, 1, 'Everyday', null, 'http://common.cnblogs.com/images/icon_weibo_24.png', '[]', '[]', '2017-02-19 13:57:56.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1508072202871, 0, '七八九十', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-10-15 12:56:42.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82042, 1, 'Why', null, 'http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000', '[]', '[]', '2017-03-04 10:04:33.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82047, 0, 'Tesla', null, 'http://common.cnblogs.com/images/wechat.png', '[]', '[]', '2017-03-04 16:02:05.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82048, 0, 'Moto', null, 'http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000', '[]', '[]', '2017-03-04 16:04:02.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82049, 0, 'ITMan', null, 'http://static.oschina.net/uploads/user/629/1258821_50.jpg?t=1378063141000', '[]', '[]', '2017-03-05 09:51:51.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82050, 0, 'Parl', null, 'http://static.oschina.net/uploads/user/998/1997902_50.jpg?t=1407806577000', '[]', '[]', '2017-03-05 09:52:52.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82051, 0, 'Girl', null, 'http://static.oschina.net/uploads/user/1332/2664107_50.jpg?t=1457405500000', '[]', '[]', '2017-03-05 09:53:37.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82052, 0, 'Unbrella', null, 'http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000', '[]', '[]', '2017-03-05 09:57:54.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82053, 0, 'Alice', null, 'http://common.cnblogs.com/images/wechat.png', '[]', '[]', '2017-03-05 15:25:42.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82054, 0, 'Harvey', null, 'http://static.oschina.net/uploads/user/19/39085_50.jpg', '[]', '[]', '2017-03-06 12:29:03.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82056, 1, 'IronMan', null, 'http://static.oschina.net/uploads/user/48/96289_50.jpg?t=1452751699000', '[]', '[]', '2017-03-11 15:32:25.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1490584952968, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-03-27 03:22:32.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82057, 0, 'NullPointerExeption', null, 'http://static.oschina.net/uploads/user/1385/2770216_50.jpg?t=1464405516000', '[]', '[]', '2017-03-12 06:01:23.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82059, 1, 'He&She', null, 'http://static.oschina.net/uploads/user/585/1170143_50.jpg?t=1390226446000', '[]', '[]', '2017-03-19 14:49:15.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82060, 1, 'Anyway~', null, 'http://static.oschina.net/uploads/user/1/3064_50.jpg?t=1449566001000', '[]', '[]', '2017-03-21 14:10:18.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1493836043151, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-03 18:27:23.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1508072160401, 0, '四五六', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-10-15 12:56:00.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (90814, 0, '007', null, 'http://static.oschina.net/uploads/user/51/102723_50.jpg?t=1449212504000', '[]', '[]', '2017-02-01 11:21:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1510495628760, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-11-12 14:07:08.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1490109845208, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-03-21 15:24:05.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1490427577823, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-03-25 07:39:37.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1493747777770, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-02 17:56:17.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1493890303473, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-04 09:31:43.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1493890303474, 0, 'Test Post', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-06-12 15:50:44.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1493883110132, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-05-04 07:31:50.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1492936169722, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[]', '[]', '2017-04-23 08:29:29.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1553527700480, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2019-03-25 15:28:20.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1566065271307, 0, 'new APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2019-08-17 18:08:04.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1566065621308, 0, 'new APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2019-08-17 18:13:55.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1563605318975, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2019-07-20 06:48:38.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1514623064133, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2017-12-30 08:37:44.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1561539257158, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2019-06-26 08:54:17.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1514626163032, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2017-12-30 09:29:23.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1545895694424, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-12-27 07:28:14.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1566064943195, 0, 'new APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2019-08-17 18:02:36.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1538504500574, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-10-02 18:21:40.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1538987952996, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-10-08 08:39:13.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1532188114543, 0, '宁旭', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-07-21 15:48:34.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1528344980598, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-06-07 04:16:20.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1560409157504, 0, '上邪', null, '最好的时光', null, null, '2019-06-13 06:59:17.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1524878698882, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-04-28 01:24:58.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1566065319823, 0, 'new APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2019-08-17 18:08:53.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1545707526805, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-12-25 03:12:06.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1519778917280, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-02-28 00:48:37.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1548068043688, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2019-01-21 10:54:03.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1541583762603, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-11-07 09:42:42.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1521371722416, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-03-18 11:15:22.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1547177436600, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2019-01-11 03:30:36.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1521274648008, 0, 'Kiro', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-03-17 08:17:28.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1538504264944, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-10-02 18:17:44.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1521374327542, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-03-18 11:58:47.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (1518218350585, 0, 'APIJSONUser', null, 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', null, null, '2018-02-09 23:19:10.000000');
INSERT INTO sys.apijson_user (id, sex, name, tag, head, "contactIdList", "pictureList", date) VALUES (82001, 1, '测试账号', 'Dev', 'https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png', '[82012, 82003, 93794, 82006, 38710, 82004]', '["http://common.cnblogs.com/images/icon_weibo_24.png"]', '2017-02-01 11:21:50.000000');
CREATE TABLE sys."Comment"
(
id bigint PRIMARY KEY NOT NULL,
"toId" bigint DEFAULT 0 NOT NULL,
"userId" bigint NOT NULL,
"momentId" bigint NOT NULL,
date timestamp(6),
content varchar(1000) NOT NULL
);
COMMENT ON COLUMN sys."Comment".id IS '唯一标识';
COMMENT ON COLUMN sys."Comment"."toId" IS '被回复的id';
COMMENT ON COLUMN sys."Comment"."userId" IS '评论人id';
COMMENT ON COLUMN sys."Comment"."momentId" IS '动态id';
COMMENT ON COLUMN sys."Comment".date IS '创建日期';
COMMENT ON COLUMN sys."Comment".content IS '内容';
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (4, 0, 38710, 470, '2017-02-01 11:20:50.000000', 'This is a Content...-4');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (13, 0, 82005, 58, '2017-02-01 11:20:50.000000', 'This is a Content...-13');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (22, 221, 82001, 470, '2017-02-01 11:20:50.000000', '测试修改评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (44, 0, 82003, 170, '2017-02-01 11:20:50.000000', 'This is a Content...-44');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (45, 0, 93793, 301, '2017-02-01 11:20:50.000000', 'This is a Content...-45');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (47, 4, 70793, 470, '2017-02-01 11:20:50.000000', 'This is a Content...-47');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (51, 45, 82003, 301, '2017-02-01 11:20:50.000000', 'This is a Content...-51');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (54, 0, 82004, 170, '2017-02-01 11:20:50.000000', 'This is a Content...-54');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (68, 0, 82005, 371, '2017-02-01 11:20:50.000000', 'This is a Content...-68');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (76, 45, 93793, 301, '2017-02-01 11:20:50.000000', 'This is a Content...-76');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (77, 13, 93793, 58, '2017-02-01 11:20:50.000000', 'This is a Content...-77');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (97, 13, 82006, 58, '2017-02-01 11:20:50.000000', 'This is a Content...-97');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (99, 44, 70793, 170, '2017-02-01 11:20:50.000000', 'This is a Content...-99');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (110, 0, 93793, 371, '2017-02-01 11:23:24.000000', 'This is a Content...-110');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (114, 0, 82001, 371, '2017-03-02 05:56:06.000000', 'This is a Content...-114');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (115, 0, 38710, 371, '2017-03-02 05:56:06.000000', 'This is a Content...-115');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (116, 0, 70793, 371, '2017-03-02 05:56:06.000000', 'This is a Content...-116');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (120, 0, 93793, 301, '2017-03-02 05:56:06.000000', 'This is a Content...-110');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (124, 0, 82001, 301, '2017-03-02 05:56:06.000000', 'This is a Content...-114');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (157, 0, 93793, 371, '2017-02-01 11:20:50.000000', 'This is a Content...-157');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (158, 0, 93793, 301, '2018-07-12 17:28:23.000000', 'This is a Content...-157');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (160, 0, 82001, 235, '2017-03-02 05:56:06.000000', 'This is a Content...-160');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (162, 0, 93793, 12, '2017-03-06 05:03:45.000000', 'This is a Content...-162');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (163, 0, 82001, 235, '2017-03-02 05:56:06.000000', 'This is a Content...-163');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (164, 0, 93793, 12, '2017-03-06 05:03:45.000000', 'This is a Content...-164');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (167, 0, 82001, 58, '2017-03-25 11:48:41.000000', 'Nice!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (168, 1490442545077, 82001, 235, '2017-03-25 11:49:14.000000', '???');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (172, 162, 82001, 12, '2017-03-25 12:22:58.000000', 'OK');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (173, 0, 38710, 58, '2017-03-25 12:25:13.000000', 'Good');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (175, 0, 38710, 12, '2017-03-25 12:26:53.000000', 'Java is the best program language!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (176, 166, 38710, 15, '2017-03-25 12:28:03.000000', 'thank you');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (178, 0, 38710, 511, '2017-03-25 12:30:55.000000', 'wbw');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (182, 110, 82001, 371, '2017-03-26 06:12:52.000000', 'hahaha');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (188, 97, 82001, 58, '2017-03-26 07:21:32.000000', '1646');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (190, 0, 82001, 58, '2017-03-26 07:22:13.000000', 'dbdj');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (206, 54, 82001, 170, '2017-03-29 03:04:23.000000', 'ejej');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (209, 13, 82001, 58, '2017-03-29 03:05:59.000000', 'hehj');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (300, 97, 82001, 58, '2017-03-29 03:06:07.000000', 'hj');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (301, 194, 82001, 235, '2017-03-29 03:06:24.000000', 'jj');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (4001, 0, 82001, 58, '2017-03-29 08:39:52.000000', 'I would like to say …');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490776944301, 0, 82001, 58, '2017-03-29 08:42:24.000000', 'hello');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490776966828, 173, 82001, 58, '2017-03-29 08:42:46.000000', 'me too');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490777905437, 0, 82001, 543, '2017-03-29 08:58:25.000000', 'rr');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490778122719, 175, 82001, 12, '2017-03-29 09:02:02.000000', 'Yeah! I think so!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490778494751, 1490778122719, 82001, 12, '2017-03-29 09:08:14.000000', 'reply Android82001');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490778681337, 166, 82001, 12, '2017-03-29 09:11:21.000000', 'gg');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490780759866, 99, 82001, 170, '2017-03-29 09:45:59.000000', '99');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490781009548, 51, 82001, 301, '2017-03-29 09:50:09.000000', '3');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490781032005, 45, 82001, 301, '2017-03-29 09:50:32.000000', '93793');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490781817044, 209, 38710, 58, '2017-03-29 10:03:37.000000', '82001');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490781850893, 1490776966828, 38710, 58, '2017-03-29 10:04:10.000000', 'haha!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490781857242, 190, 38710, 58, '2017-03-29 10:04:17.000000', 'nice');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490781865407, 1490781857242, 38710, 58, '2017-03-29 10:04:25.000000', 'wow');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490781899147, 197, 38710, 12, '2017-03-29 10:04:59.000000', 'kaka');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490794439561, 1490778681337, 82001, 12, '2017-03-29 13:33:59.000000', 'gg?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490794610632, 172, 82001, 12, '2017-03-29 13:36:50.000000', 'All right');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490794937137, 1490794919957, 82001, 12, '2017-03-29 13:42:17.000000', 'All right ok ok');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490794953438, 1490794937137, 82001, 12, '2017-03-29 13:42:33.000000', 'All right ok ok ll');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490796241178, 0, 38710, 58, '2017-03-29 14:04:01.000000', 'Anything else?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490796629591, 175, 38710, 12, '2017-03-29 14:10:29.000000', 'well');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490798710678, 110, 38710, 371, '2017-03-29 14:45:10.000000', '110');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490800971064, 175, 38710, 12, '2017-03-29 15:22:51.000000', 'I do');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490848396072, 175, 82001, 12, '2017-03-30 04:33:16.000000', 'Lemon');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490848581424, 166, 82001, 12, '2017-03-30 04:36:21.000000', '82001ejej');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490850764448, 162, 82001, 12, '2017-03-30 05:12:44.000000', '-162');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490850844016, 0, 82001, 12, '2017-03-30 05:14:04.000000', 'I like it');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490850876656, 1490800971064, 82001, 12, '2017-03-30 05:14:36.000000', 'I do so');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490854894566, 175, 82001, 12, '2017-03-30 06:21:34.000000', 'it does be a good lang');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863443219, 1490850844016, 82002, 12, '2017-03-30 08:44:03.000000', 'me too!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863469638, 0, 82002, 15, '2017-03-30 08:44:29.000000', 'Just do it');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863507114, 4, 82003, 470, '2017-03-30 08:45:07.000000', 'yes');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863563124, 0, 82003, 704, '2017-03-30 08:46:03.000000', 'I want one');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863651493, 0, 70793, 595, '2017-03-30 08:47:31.000000', 'wow');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863661426, 1490780759866, 70793, 170, '2017-03-30 08:47:41.000000', '66');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863676989, 0, 70793, 12, '2017-03-30 08:47:56.000000', 'Shy');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863711703, 0, 70793, 511, '2017-03-30 08:48:31.000000', 'I hope I can join');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863717947, 178, 70793, 511, '2017-03-30 08:48:37.000000', 'what?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863783276, 1490863711703, 93793, 511, '2017-03-30 08:49:43.000000', 'haha welcome');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863903900, 0, 82006, 470, '2017-03-30 08:51:43.000000', 'SOGA');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863915675, 0, 82006, 235, '2017-03-30 08:51:55.000000', 'Good boy');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863938712, 0, 82006, 12, '2017-03-30 08:52:18.000000', 'Handsome!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490863978239, 1490796241178, 82006, 58, '2017-03-30 08:52:58.000000', 'there still remains a question…');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490864016738, 0, 82006, 511, '2017-03-30 08:53:36.000000', 'I want to have a try!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490864023700, 0, 82006, 543, '2017-03-30 08:53:43.000000', 'oops');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490864039264, 0, 82006, 551, '2017-03-30 08:53:59.000000', 'Wonderful!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490864152008, 0, 82006, 58, '2017-03-30 08:55:52.000000', 'U R ugly( ´?` )');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490864254400, 1490863915675, 82044, 235, '2017-03-30 08:57:34.000000', 'And I have no idea');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490864276824, 0, 82044, 12, '2017-03-30 08:57:56.000000', 'Oh my God!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490864292184, 1490864152008, 82044, 58, '2017-03-30 08:58:12.000000', 'haha!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490864379424, 1490863938712, 82001, 12, '2017-03-30 08:59:39.000000', 'Thank you~');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490864400210, 1490864276824, 82001, 12, '2017-03-30 09:00:00.000000', 'Amazing, isnt it?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490874908570, 1490864023700, 82055, 543, '2017-03-30 11:55:08.000000', 'yeah');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490874930994, 1490777905437, 82055, 543, '2017-03-30 11:55:30.000000', 'yy');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490874968779, 0, 82055, 12, '2017-03-30 11:56:08.000000', 'I love it');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490875033494, 0, 82055, 301, '2017-03-30 11:57:13.000000', 'More Comments');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490875040761, 158, 82055, 301, '2017-03-30 11:57:20.000000', '157');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490875046704, 120, 82055, 301, '2017-03-30 11:57:26.000000', '110');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490875660259, 1490863469638, 82055, 15, '2017-03-30 12:07:40.000000', 'I prove wht you said(??????)');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490879678127, 0, 82001, 543, '2017-03-30 13:14:38.000000', 'Baby you are a firework!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490973736662, 1490973715568, 70793, 170, '2017-03-31 15:22:16.000000', 'Hello, I am a fresh man');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1490973890875, 1490864039264, 93793, 551, '2017-03-31 15:24:50.000000', 'While I donot think so…');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1491014830404, 1490864016738, 82001, 511, '2017-04-01 02:47:10.000000', 'Have a nice day!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1491119615611, 1490864023700, 82001, 543, '2017-04-02 07:53:35.000000', '$$');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1491119670185, 68, 82001, 371, '2017-04-02 07:54:30.000000', 'Leave a word');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1491119695580, 0, 82001, 371, '2017-04-02 07:54:55.000000', 'leave a word');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1491130701902, 0, 38710, 511, '2017-04-02 10:58:21.000000', 'Thanks for your supports (-^?^-)');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1491209763162, 0, 82001, 1491200468898, '2017-04-03 08:56:03.000000', 'How do you do');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1491277552385, 0, 82001, 58, '2017-04-04 03:45:52.000000', 'Seven');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1491312438951, 1490863651493, 82001, 595, '2017-04-04 13:27:18.000000', 'WaKaKa!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1491709064513, 0, 82001, 551, '2017-04-09 03:37:44.000000', 'soga');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1491740899179, 0, 82001, 470, '2017-04-09 12:28:19.000000', 'www');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1491798370749, 0, 82002, 551, '2017-04-10 04:26:10.000000', 'Nice!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1491798499667, 115, 82002, 371, '2017-04-10 04:28:19.000000', 'I do not understand…');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1491830543193, 0, 82001, 170, '2017-04-10 13:22:23.000000', 'What is the hell?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1492932228287, 1491209763162, 38710, 1491200468898, '2017-04-23 07:23:48.000000', 'fine,thanks');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1493094307810, 0, 82001, 551, '2017-04-25 04:25:04.000000', '删除或修改数据请先创建,不要动原来的,谢谢');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1493094307910, 0, 82001, 551, '2017-04-25 04:26:04.000000', '用POST新增数据');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1493186363132, 1490850764448, 82001, 12, '2017-04-26 05:59:23.000000', 'sndnd');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1502632433970, 0, 82002, 1493835799335, '2017-08-13 13:53:53.000000', 'just have fun!');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1508053783278, 0, 82001, 1508053762227, '2017-10-15 07:49:43.000000', '可以的');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1508072695833, 0, 82003, 1508072633830, '2017-10-15 13:04:55.000000', '心疼地抱住自己(๑´ㅂ`๑)');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1508227456407, 0, 82001, 15, '2017-10-17 08:04:16.000000', 'hsh');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1508227498578, 1491798370749, 82001, 551, '2017-10-17 08:04:58.000000', 'g');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1508462026394, 1490850844016, 82001, 12, '2017-10-20 01:13:46.000000', '欧');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1508492585904, 1508462026394, 82001, 12, '2017-10-20 09:43:05.000000', 'my god');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1509003045509, 0, 82001, 1508072633830, '2017-10-26 07:30:45.000000', 'hhh');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1509346549158, 0, 82001, 170, '2017-10-30 06:55:49.000000', '呵呵');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1509346556395, 0, 82001, 170, '2017-10-30 06:55:56.000000', '测试');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1509346606036, 0, 82001, 15, '2017-10-30 06:56:46.000000', '测');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1509518079106, 0, 82001, 1508073178489, '2017-11-01 06:34:39.000000', '哦哦哦');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1510795816462, 162, 82001, 12, '2017-11-16 01:30:16.000000', '赞');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1510795933629, 0, 82001, 1508073178489, '2017-11-16 01:32:13.000000', 'cc');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1510813284894, 0, 82001, 12, '2017-11-16 06:21:24.000000', 'asdasdasdas');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1510813295700, 162, 82001, 12, '2017-11-16 06:21:35.000000', 'adsdasdasdasd');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1511374269759, 99, 82001, 170, '2017-11-22 18:11:09.000000', '记录里');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1511374274194, 0, 82001, 170, '2017-11-22 18:11:14.000000', '哦哦哦');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1511407695342, 0, 1511407581570, 371, '2017-11-23 03:28:15.000000', '好的');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1511407702981, 157, 1511407581570, 371, '2017-11-23 03:28:22.000000', '你好');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1511878024415, 0, 1511761906715, 12, '2017-11-28 14:07:04.000000', '你今年');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1511878031610, 1511878024415, 1511761906715, 12, '2017-11-28 14:07:11.000000', '不鸟你');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1512035094555, 0, 82001, 12, '2017-11-30 09:44:54.000000', '呵呵呵');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1512035117021, 0, 82001, 32, '2017-11-30 09:45:17.000000', '图片看不了啊');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1512039030970, 1512035117021, 82001, 32, '2017-11-30 10:50:30.000000', '一般九宫格图片都是压缩图,分辨率在300*300左右,加载很快,点击放大后才是原图,1080P左右');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1512531859019, 0, 1512531601485, 1512314438990, '2017-12-06 03:44:19.000000', '666');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1512533520832, 1512531859019, 38710, 1512314438990, '2017-12-06 04:12:00.000000', '嘿嘿');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1513656045399, 0, 82001, 1508072633830, '2017-12-19 04:00:45.000000', '444444');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1514425796195, 0, 82001, 1513094436910, '2017-12-28 01:49:56.000000', '一起');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1514473034425, 1514425796195, 93793, 1513094436910, '2017-12-28 14:57:14.000000', '干啥?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1514478784653, 0, 82001, 1513094436910, '2017-12-28 16:33:04.000000', 'bug很多');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1514506206319, 1514478784653, 38710, 1513094436910, '2017-12-29 00:10:06.000000', '碰到哪些了呢?欢迎指出,尽快解决^_^');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1514617131036, 0, 82005, 1513094436910, '2017-12-30 06:58:51.000000', '口子');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1514858592813, 0, 82001, 1514858533480, '2018-01-02 02:03:12.000000', '铁人');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1514858640958, 0, 38710, 1514858533480, '2018-01-02 02:04:00.000000', '斯塔克工业');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1514858707767, 0, 70793, 1514858533480, '2018-01-02 02:05:07.000000', '壕友乎?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1514960713300, 0, 82001, 1513094436910, '2018-01-03 06:25:13.000000', '1');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1514960744185, 1512531859019, 82001, 1512314438990, '2018-01-03 06:25:44.000000', '哇');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1515057852156, 0, 82001, 58, '2018-01-04 09:24:12.000000', '你说');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1515057857464, 0, 82001, 58, '2018-01-04 09:24:17.000000', '你说');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1515057861094, 0, 82001, 58, '2018-01-04 09:24:21.000000', '蓉蓉');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1515057864174, 1515057857464, 82001, 58, '2018-01-04 09:24:24.000000', '哦轻松');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1515057869554, 0, 82001, 58, '2018-01-04 09:24:29.000000', ',王者荣耀');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1515313792063, 162, 82001, 12, '2018-01-07 08:29:52.000000', 'you');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1515313823155, 164, 82001, 12, '2018-01-07 08:30:23.000000', 'you');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516190557098, 0, 82001, 1513094436910, '2018-01-17 12:02:37.000000', '哦婆婆');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516629533520, 0, 82001, 1508072633830, '2018-01-22 13:58:53.000000', '小臭臭');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516686985310, 0, 82001, 1516086423441, '2018-01-23 05:56:25.000000', 'hologram');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516687072270, 1516629533520, 82001, 1508072633830, '2018-01-23 05:57:52.000000', '咯我就');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516687437251, 1516686985310, 82001, 1516086423441, '2018-01-23 06:03:57.000000', '你家里好哦');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516691119239, 1516686985310, 38710, 1516086423441, '2018-01-23 07:05:19.000000', '我喜欢Hololens嘿嘿');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516780129884, 0, 82001, 1516086423441, '2018-01-24 07:48:49.000000', 'aaa');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516783920998, 0, 82001, 1513094436910, '2018-01-24 08:52:00.000000', '这个是实时的吗');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516785657724, 0, 82001, 1516086423441, '2018-01-24 09:20:57.000000', 'hj');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516805226757, 1516785657724, 38710, 1516086423441, '2018-01-24 14:47:06.000000', '滑稽?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516805340593, 1516783920998, 38710, 1513094436910, '2018-01-24 14:49:00.000000', '看怎么定义 实时 。这个是仿微信朋友圈列表和QQ空间说说详情,在线同步的,但没做推送,所以不是QQ微信聊天那种即时通讯。');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516843720270, 1516780129884, 82001, 1516086423441, '2018-01-25 01:28:40.000000', 'ghj');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516862537978, 1515057869554, 70793, 58, '2018-01-25 06:42:17.000000', '绝地逃亡吃鸡');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516931850067, 0, 82001, 1516086423441, '2018-01-26 01:57:30.000000', '1111111111111');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516951734010, 1514506206319, 82001, 1513094436910, '2018-01-26 07:28:54.000000', '火锅');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516951754620, 0, 82001, 1513094436910, '2018-01-26 07:29:14.000000', '凤飞飞刚刚好');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1516951826863, 0, 82001, 170, '2018-01-26 07:30:26.000000', '黑珍珠');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1517193267472, 1513656045399, 82001, 1508072633830, '2018-01-29 02:34:27.000000', '1');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1517193278459, 0, 82001, 1508072633830, '2018-01-29 02:34:38.000000', '112');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1517229342303, 0, 82001, 1516086423441, '2018-01-29 12:35:42.000000', '几号抢的');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1517234768450, 1517229342303, 93793, 1516086423441, '2018-01-29 14:06:08.000000', '9号');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1517303775429, 1490863903900, 82001, 470, '2018-01-30 09:16:15.000000', '???');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1517375165233, 0, 82001, 1508053762227, '2018-01-31 05:06:05.000000', '666');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1517730034960, 0, 82001, 170, '2018-02-04 07:40:34.000000', '陌陌陌陌');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1518365470893, 44, 82001, 170, '2018-02-11 16:11:10.000000', '野蜂飞舞');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1518614899681, 0, 82001, 301, '2018-02-14 13:28:19.000000', 'https://goo.gl/search/JJB+Sports
JJB Sports,');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1519719341810, 0, 82001, 1516086423441, '2018-02-27 08:15:41.000000', '我也想抢一张');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1519793574249, 1519719341810, 93793, 1516086423441, '2018-02-28 04:52:54.000000', '哈哈,春运都过了啊');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1519813825959, 0, 82001, 1516086423441, '2018-02-28 10:30:25.000000', '距P民');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1519974842508, 0, 82001, 1516086423441, '2018-03-02 07:14:02.000000', '1111');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1519974868848, 1516691119239, 82001, 1516086423441, '2018-03-02 07:14:28.000000', '1111');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1519979533242, 0, 82001, 1508072633830, '2018-03-02 08:32:13.000000', 'hj');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1520231250819, 0, 82001, 12, '2018-03-05 06:27:30.000000', '浑身难受呢');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1520264640815, 0, 70793, 1520242333325, '2018-03-05 15:44:00.000000', '兰博基尼');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1520330788006, 0, 1520242280259, 1514017444961, '2018-03-06 10:06:28.000000', '八组');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1520578883309, 0, 82001, 12, '2018-03-09 07:01:23.000000', '我用流量');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1520699466219, 1520578883309, 82001, 12, '2018-03-10 16:31:06.000000', '壕');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1522074343188, 1513656045399, 82001, 1508072633830, '2018-03-26 14:25:43.000000', 'rrrrr');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1522074360206, 1519979533242, 82001, 1508072633830, '2018-03-26 14:26:00.000000', 'tttt');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1522657767636, 120, 82001, 301, '2018-04-02 08:29:27.000000', '云画');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1522741138316, 1517193278459, 82001, 1508072633830, '2018-04-03 07:38:58.000000', '哦哦哦');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1522986959852, 1508072695833, 82001, 1508072633830, '2018-04-06 03:55:59.000000', '!????');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1523936378484, 0, 1523935772553, 1523936332614, '2018-04-17 03:39:38.000000', '不错不错哦');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524032180807, 1519719341810, 82001, 1516086423441, '2018-04-18 06:16:20.000000', '你好啊');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524032244441, 1519974842508, 82001, 1516086423441, '2018-04-18 06:17:24.000000', '干嘛,单身吗?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524032255755, 1519974842508, 82001, 1516086423441, '2018-04-18 06:17:35.000000', '单身到底吗?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524032299622, 0, 82001, 1516086423441, '2018-04-18 06:18:19.000000', '别给我得怂');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524032305810, 1524032299622, 82001, 1516086423441, '2018-04-18 06:18:25.000000', '你好');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524178495587, 0, 1524042900591, 1524178455305, '2018-04-19 22:54:55.000000', '嘻嘻');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524178500568, 1524178495587, 1524042900591, 1524178455305, '2018-04-19 22:55:00.000000', '哈哈哈');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524190367904, 0, 38710, 1524178455305, '2018-04-20 02:12:47.000000', '你头像用的是本地的路径,只有你能看到,别人看不到哦,可以换一个url');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524190412418, 1524190367904, 38710, 1524178455305, '2018-04-20 02:13:32.000000', '我的资料>编辑>改下备注');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524190941111, 1524032244441, 82003, 1516086423441, '2018-04-20 02:22:21.000000', '单身约吗?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524190981549, 1522657767636, 82003, 301, '2018-04-20 02:23:01.000000', '这个6');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524191012552, 0, 82003, 1524178455305, '2018-04-20 02:23:32.000000', '早上好小姐姐');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524214012015, 1524190367904, 1524042900591, 1524178455305, '2018-04-20 08:46:52.000000', '怎么换url');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524235902970, 1524214012015, 82003, 1524178455305, '2018-04-20 14:51:42.000000', '在我的资料界面编辑备注');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524297798490, 0, 82001, 1513094436910, '2018-04-21 08:03:18.000000', 'gg');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524461430874, 1519979533242, 82001, 1508072633830, '2018-04-23 05:30:30.000000', '哦哦哦');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524461436914, 0, 82001, 1508072633830, '2018-04-23 05:30:36.000000', '莫');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524461441914, 0, 82001, 1508072633830, '2018-04-23 05:30:41.000000', '默默');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524488068926, 1524178500568, 82001, 1524178455305, '2018-04-23 12:54:28.000000', '哦哦哦');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524582671132, 1524461441914, 82003, 1508072633830, '2018-04-24 15:11:11.000000', '陌陌');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524582716289, 1524461441914, 70793, 1508072633830, '2018-04-24 15:11:56.000000', '脉脉');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524798402799, 0, 1523626157302, 1524178455305, '2018-04-27 03:06:42.000000', '能不能把本地的图片传到服务器,这样大家都能看到了,用url换头像不太习惯');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524799118232, 0, 1523626157302, 1512314438990, '2018-04-27 03:18:38.000000', '这些图片是怎么发上去的呢?我发动态只有默认的两张图');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524843908458, 1524799118232, 82001, 1512314438990, '2018-04-27 15:45:08.000000', '在HttpRequest.addMoment中加的,因为APIJSON的Server Demo没做图片存储,所以目前只能自己传图片的url,可以百度图片上找哈');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524844181029, 1524798402799, 82001, 1524178455305, '2018-04-27 15:49:41.000000', '确实有这样的问题,但这个Demo仅供展示APIJSON的接口数据增删改查的能力,又拍云,七牛等平台又需要对接及付费,所以Demo暂时不提供哈,需要的话可以自己搞。建议先把图片上传到又拍云等平台,拿回url再传到自己的服务器^_^');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1524844222775, 1524798402799, 82001, 1524178455305, '2018-04-27 15:50:22.000000', '目前也可以百度一张图,把对应的url传上去,大家就都能看到了哈哈');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1525658333654, 0, 82001, 1513094436910, '2018-05-07 01:58:53.000000', 'q');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1527821844576, 0, 1527821445610, 1527821296110, '2018-06-01 02:57:24.000000', '好不好用啊');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1527821876802, 1527821844576, 1527495857924, 1527821296110, '2018-06-01 02:57:56.000000', '当然好用啊');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1527837906576, 0, 38710, 1527830331780, '2018-06-01 07:25:06.000000', '哇,好漂亮');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1527837965006, 0, 82002, 1527830474378, '2018-06-01 07:26:05.000000', '像平板电脑哈哈');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1527862540820, 0, 1527495857924, 1527830331780, '2018-06-01 14:15:40.000000', '谢谢你');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1527862609352, 1527837965006, 1527495857924, 1527830474378, '2018-06-01 14:16:49.000000', 'ㄟ(≧◇≦)ㄏ');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528105592852, 0, 82001, 1516086423441, '2018-06-04 09:46:32.000000', 'aaaaa');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528250648974, 0, 82001, 1523936332614, '2018-06-06 02:04:08.000000', 'hshdv');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528270188205, 0, 1528250827953, 1527830474378, '2018-06-06 07:29:48.000000', '这个图片是怎么发出来的啊,我发动态就只是那两张默认图片');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528278187969, 0, 82001, 470, '2018-06-06 09:43:07.000000', '啊啊啊啊');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528289446172, 0, 82001, 1528269988360, '2018-06-06 12:50:46.000000', '因为没做前端上传和后端保存图片的功能,APIJSONApp主要是用来展示APIJSON的自动化接口的');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528289580140, 0, 38710, 1528274037224, '2018-06-06 12:53:00.000000', '这两张图片的url错了哦,都是网页url,所以小图加载不出来,只能点击后用WebView查看');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528327885509, 1528289580140, 1528250827953, 1528274037224, '2018-06-06 23:31:25.000000', '噢噢,没想到你能这么快回复,谢谢');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528333168328, 0, 82001, 1514017444961, '2018-06-07 00:59:28.000000', 'zj');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528333174811, 0, 82001, 1514017444961, '2018-06-07 00:59:34.000000', 'xj');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528393204569, 1528270188205, 38710, 1527830474378, '2018-06-07 17:40:04.000000', '把接口里的pictureList的值改下,里面包含图片url');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528463152459, 1528463135762, 1528339692804, 1528462217322, '2018-06-08 13:05:52.000000', '我想去');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528463165903, 0, 1528339692804, 1528462217322, '2018-06-08 13:06:05.000000', '我想去');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528516951218, 0, 82001, 1528462217322, '2018-06-09 04:02:31.000000', '这里能约到小姐姐算我输୧(๑•̀⌄•́๑)૭');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528554476310, 0, 82001, 1516086423441, '2018-06-09 14:27:56.000000', 'thS');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528676480604, 0, 1528339692804, 1528356421201, '2018-06-11 00:21:20.000000', 'nihshs');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528677257985, 0, 1528339692804, 1528676875139, '2018-06-11 00:34:17.000000', 'aaa');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528679814166, 0, 1528339692804, 1528676875139, '2018-06-11 01:16:54.000000', '12');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528681265496, 1528516951218, 1528339692804, 1528462217322, '2018-06-11 01:41:05.000000', '你输了有什么惩罚吗?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528698907535, 0, 82001, 1516086423441, '2018-06-11 06:35:07.000000', 'yhbv');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528703971675, 1528681265496, 82001, 1528462217322, '2018-06-11 07:59:31.000000', '一起陪小姐姐出游*。٩(ˊωˋ*)و✧');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528799506317, 1516805340593, 82001, 1513094436910, '2018-06-12 10:31:46.000000', '摩恩');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528972547638, 0, 82001, 1528462217322, '2018-06-14 10:35:47.000000', '古古怪怪');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1528972555336, 0, 82001, 1528462217322, '2018-06-14 10:35:55.000000', '合计怕v就怕vi');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1529730035521, 0, 82001, 1527830331780, '2018-06-23 05:00:35.000000', '还有别的吗?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1530528524447, 0, 38710, 1528269988360, '2018-07-02 10:48:44.000000', '所以HttpRequest里写死了两张图片url,你可以改下');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1531063660028, 0, 82003, 1531062713966, '2018-07-08 15:27:40.000000', '这是哪里啊?我也想去');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1531412238453, 0, 82001, 1528356378455, '2018-07-12 16:17:18.000000', '去啊');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1531412264667, 0, 82003, 1528356378455, '2018-07-12 16:17:44.000000', '去哪呢?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1531887938362, 1531063660028, 82001, 1531062713966, '2018-07-18 04:25:38.000000', '是呀');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1531894411487, 0, 82001, 1520242333325, '2018-07-18 06:13:31.000000', 'sssx');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1531983163150, 0, 1531969715979, 1531969818357, '2018-07-19 06:52:43.000000', 'http://q18idc.com');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1532057419100, 0, 38710, 1531969818357, '2018-07-20 03:30:19.000000', '可以加上标题哦');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533008631299, 1532057419100, 82001, 1531969818357, '2018-07-31 03:43:51.000000', '加上');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533120405110, 1516780129884, 82001, 1516086423441, '2018-08-01 10:46:45.000000', 'eeeeee');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533120420498, 1528105592852, 82001, 1516086423441, '2018-08-01 10:47:00.000000', 'eeeeeee');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533186909764, 0, 82001, 1531969818357, '2018-08-02 05:15:09.000000', 'hello');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533187733941, 0, 82001, 1508072633830, '2018-08-02 05:28:53.000000', '好好');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533188056603, 1531887938362, 82001, 1531062713966, '2018-08-02 05:34:16.000000', '顺带');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533195207026, 0, 82001, 1531062713966, '2018-08-02 07:33:27.000000', 'JJ');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533202426013, 1533186909764, 82003, 1531969818357, '2018-08-02 09:33:46.000000', 'world');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533202917743, 1533186909764, 82001, 1531969818357, '2018-08-02 09:41:57.000000', '00');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533629063261, 0, 82001, 1531969818357, '2018-08-07 08:04:23.000000', '大鸡鸡');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533631893738, 0, 82001, 1531969818357, '2018-08-07 08:51:33.000000', '哈哈哈哈哈哈');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533809879340, 1533186909764, 82001, 1531969818357, '2018-08-09 10:17:59.000000', '434');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533889646344, 0, 82001, 1508072491570, '2018-08-10 08:27:26.000000', '11111111');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533902815448, 0, 82001, 1531969818357, '2018-08-10 12:06:55.000000', '很不要吃');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1533902902749, 0, 82001, 1531969818357, '2018-08-10 12:08:22.000000', '性能还可以');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1534053913157, 1524190941111, 1508072160401, 1516086423441, '2018-08-12 06:05:13.000000', '怎么约?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1534128014211, 0, 82001, 1520242333325, '2018-08-13 02:40:14.000000', 'zxxx');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1534412022857, 0, 82001, 1531969818357, '2018-08-16 09:33:42.000000', 'dgf');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1534684074665, 1531983163150, 82001, 1531969818357, '2018-08-19 13:07:54.000000', 'ggggg');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1534684209052, 110, 82001, 371, '2018-08-19 13:10:09.000000', '44444444444444444444444444');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1534926143012, 0, 82001, 1508053762227, '2018-08-22 08:22:23.000000', '治标不治本在不在不在不');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1534926149638, 1517375165233, 82001, 1508053762227, '2018-08-22 08:22:29.000000', '把标准版申报表上班设备');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1534992151350, 0, 82001, 1516086423441, '2018-08-23 02:42:31.000000', '你咋不');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1535279823332, 0, 82001, 1520242333325, '2018-08-26 10:37:03.000000', '斤斤计较');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1535279827983, 0, 82001, 1520242333325, '2018-08-26 10:37:07.000000', '斤斤计较');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1535598334136, 1534992151350, 82003, 1516086423441, '2018-08-30 03:05:34.000000', '啥?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1535600352436, 0, 82001, 1520242333325, '2018-08-30 03:39:12.000000', '6666666');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1535600430479, 0, 82001, 1520242333325, '2018-08-30 03:40:30.000000', '法拉利');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1535785537390, 1535279823332, 82003, 1520242333325, '2018-09-01 07:05:37.000000', '不好哦');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1535785585222, 1534926143012, 82003, 1508053762227, '2018-09-01 07:06:25.000000', '啥?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1535963519864, 0, 82001, 1535781636403, '2018-09-03 08:31:59.000000', 'gghhh');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1535963525135, 1535963519864, 82001, 1535781636403, '2018-09-03 08:32:05.000000', 'gyuji');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1536337000073, 1516686985310, 82001, 1516086423441, '2018-09-07 16:16:40.000000', 'heh');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1536378833060, 0, 82001, 1508072633830, '2018-09-08 03:53:53.000000', '真的嘛');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1536469270492, 0, 82001, 1528356496939, '2018-09-09 05:01:10.000000', '这是啥表情?Σ(ŎдŎ|||)ノノ');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1536805661269, 0, 70793, 1536805585275, '2018-09-13 02:27:41.000000', '6s再战一年');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1537373307627, 0, 82001, 1516086423441, '2018-09-19 16:08:27.000000', '。。。');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1537410620002, 0, 82001, 1536805585275, '2018-09-20 02:30:20.000000', '不一样');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1537710348414, 0, 82001, 1516086423441, '2018-09-23 13:45:48.000000', 'hhj');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1537710359760, 0, 82001, 1516086423441, '2018-09-23 13:45:59.000000', '锵锵锵');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1537857324518, 0, 82001, 1536805585275, '2018-09-25 06:35:24.000000', '嗯呢');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1537857334299, 1537857324518, 82001, 1536805585275, '2018-09-25 06:35:34.000000', '嗯嗯');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1539252343243, 1539252313711, 82001, 15, '2018-10-11 10:05:43.000000', 'dxdf');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1539252350604, 1539252337210, 82001, 15, '2018-10-11 10:05:50.000000', 'djdnjd');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1539868250267, 1531063660028, 82001, 1531062713966, '2018-10-18 13:10:50.000000', '555555555555555555');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1539868258868, 1533188056603, 82001, 1531062713966, '2018-10-18 13:10:58.000000', '555555555');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1539868269471, 1539868250267, 82001, 1531062713966, '2018-10-18 13:11:09.000000', '4444444444444');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1539868275645, 1531887938362, 82001, 1531062713966, '2018-10-18 13:11:15.000000', '22222222222222222');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1539960436993, 0, 82001, 1539868023868, '2018-10-19 14:47:16.000000', '111');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1541496033857, 0, 82001, 301, '2018-11-06 09:20:33.000000', '能解决');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1541651688961, 1539960436993, 82001, 1539868023868, '2018-11-08 04:34:48.000000', '哈哈');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1541815269164, 0, 82001, 1541667945772, '2018-11-10 02:01:09.000000', '11');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1543193682067, 0, 1528339692804, 1528269822710, '2018-11-26 00:54:42.000000', 'ss');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1544496611006, 0, 82001, 15, '2018-12-11 02:50:11.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1544496618728, 0, 82001, 15, '2018-12-11 02:50:18.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1544496620126, 0, 82001, 15, '2018-12-11 02:50:20.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1544503960414, 1537410620002, 1544503822963, 1536805585275, '2018-12-11 04:52:40.000000', '664984');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1545527888416, 0, 82001, 1553096819293, '2018-12-23 01:18:08.000000', 'hello');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1545527898986, 1545527888416, 82001, 1553096819293, '2018-12-23 01:18:18.000000', 'world');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1545527923036, 1545527888416, 82001, 1553096819293, '2018-12-23 01:18:43.000000', '还差还差还差');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1545918307310, 0, 82001, 15, '2018-12-27 13:45:07.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1545927001999, 1545895875719, 82001, 1553096819293, '2018-12-27 16:10:02.000000', '哦哦哦www');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1545961973331, 0, 82001, 15, '2018-12-28 01:52:53.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1546050359778, 0, 82001, 15, '2018-12-29 02:25:59.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1546050386785, 0, 82001, 1516086423441, '2018-12-29 02:26:26.000000', '不鸟你');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1546934145366, 0, 82001, 15, '2019-01-08 07:55:45.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1546935903414, 0, 82001, 15, '2019-01-08 08:25:03.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551061659233, 0, 82001, 15, '2019-02-25 02:27:39.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551080228544, 0, 82001, 1553096819293, '2019-02-25 07:37:08.000000', '几何画板');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551080263524, 0, 82001, 1516086423441, '2019-02-25 07:37:43.000000', '你就看看');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551146130246, 0, 82001, 15, '2019-02-26 01:55:30.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551325753556, 0, 82001, 15, '2019-02-28 03:49:13.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551409858047, 0, 82001, 301, '2019-03-01 03:10:58.000000', '您');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551430453424, 0, 82001, 1553096819293, '2019-03-01 08:54:13.000000', '啊啊');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551430465241, 1551430453424, 82001, 1553096819293, '2019-03-01 08:54:25.000000', '123');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551430474490, 1551430453424, 82001, 1553096819293, '2019-03-01 08:54:34.000000', '444');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551430485689, 1551430453424, 82001, 1553096819293, '2019-03-01 08:54:45.000000', '品牌');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551430485828, 0, 82001, 1553096819293, '2019-03-01 08:54:45.000000', '品牌');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551430579358, 1516691119239, 82001, 1516086423441, '2019-03-01 08:56:19.000000', '555555');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551683545557, 1490863711703, 82001, 511, '2019-03-04 07:12:25.000000', '科技');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1551777156494, 0, 82001, 15, '2019-03-05 09:12:36.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1552215780595, 0, 82001, 15, '2019-03-10 11:03:00.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1552297994119, 0, 82001, 1512314438990, '2019-03-11 09:53:14.000000', '小米');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1552298015880, 1524799118232, 82001, 1512314438990, '2019-03-11 09:53:35.000000', '评论真的假的');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1552378943273, 0, 82001, 1551251234369, '2019-03-12 08:22:23.000000', '123');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1552381508342, 0, 82001, 15, '2019-03-12 09:05:08.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1552532948487, 0, 82001, 15, '2019-03-14 03:09:08.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1552980434725, 0, 82001, 15, '2019-03-19 07:27:14.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1553053346095, 0, 82001, 1553096819293, '2019-03-20 03:42:26.000000', '启');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1553053362233, 1551430485689, 82001, 1553096819293, '2019-03-20 03:42:42.000000', '集合vyih');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1553065269448, 0, 82001, 1553096819293, '2019-03-20 07:01:09.000000', '3333');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1553094325098, 0, 82001, 1550825876665, '2019-03-20 15:05:25.000000', '哦哦哦');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1553095251058, 0, 82001, 1552879777083, '2019-03-20 15:20:51.000000', '1111');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1553233020780, 0, 82001, 15, '2019-03-22 05:37:00.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1553433076832, 0, 82001, 1552879777083, '2019-03-24 13:11:16.000000', 'ggg');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1553676470274, 0, 82001, 1551184480247, '2019-03-27 08:47:50.000000', 'hhhhhh');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1553739854431, 0, 82001, 1539868023868, '2019-03-28 02:24:14.000000', '。。。。');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1553837780458, 0, 82001, 1548145750536, '2019-03-29 05:36:20.000000', '王八蛋');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1553837842352, 0, 82001, 1541557989440, '2019-03-29 05:37:22.000000', '小赤佬');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554051650026, 0, 82001, 15, '2019-03-31 17:00:50.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554263554592, 0, 82001, 15, '2019-04-03 03:52:34.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554263558562, 0, 82001, 15, '2019-04-03 03:52:38.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554286215772, 0, 82001, 301, '2019-04-03 10:10:15.000000', 'hjkj');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554309729462, 0, 82001, 1554263554668, '2019-04-03 16:42:09.000000', '没有我');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554309735842, 1554309729462, 82001, 1554263554668, '2019-04-03 16:42:15.000000', '哦下午');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554372265517, 0, 82001, 1554263554668, '2019-04-04 10:04:25.000000', '测试');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554373265740, 0, 82001, 543, '2019-04-04 10:21:05.000000', '那你');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554373282941, 0, 82001, 543, '2019-04-04 10:21:22.000000', '。');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554374987602, 1554372265517, 82001, 1554263554668, '2019-04-04 10:49:47.000000', '@jj');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554548838567, 0, 82001, 1554263558104, '2019-04-06 11:07:18.000000', 'Yyhgy');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554564631059, 0, 82001, 15, '2019-04-06 15:30:31.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554564640129, 0, 82001, 15, '2019-04-06 15:30:40.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554629321427, 0, 82001, 15, '2019-04-07 09:28:41.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554704296003, 0, 82001, 1554564640071, '2019-04-08 06:18:16.000000', '吃');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554707281257, 0, 82001, 1554688976001, '2019-04-08 07:08:01.000000', '要');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554777053552, 0, 82001, 15, '2019-04-09 02:30:53.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554864037995, 0, 82001, 15, '2019-04-10 02:40:37.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554965019923, 0, 82001, 15, '2019-04-11 06:43:39.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1554976816197, 0, 82001, 1554688976001, '2019-04-11 10:00:16.000000', '到现在');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1555136064488, 0, 82001, 1555080161904, '2019-04-13 06:14:24.000000', '。。。');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1555136143476, 0, 82001, 1554564639808, '2019-04-13 06:15:43.000000', '。。。');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1555140354828, 0, 82001, 15, '2019-04-13 07:25:54.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1555414582495, 0, 82001, 15, '2019-04-16 11:36:22.000000', '新增一条评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1555414840945, 0, 82001, 15, '2019-04-16 11:40:40.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1555414849052, 0, 82001, 15, '2019-04-16 11:40:49.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1555414888850, 0, 82001, 15, '2019-04-16 11:41:28.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1555557851140, 1512035117021, 82001, 32, '2019-04-18 03:24:11.000000', '1545456');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1555557860778, 1512035117021, 82001, 32, '2019-04-18 03:24:20.000000', '11564546');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1555557868075, 0, 82001, 32, '2019-04-18 03:24:28.000000', '121212312456');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1555557877452, 1555557868075, 82001, 32, '2019-04-18 03:24:37.000000', '123121545645');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1555572659357, 0, 82001, 15, '2019-04-18 07:30:59.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556073175252, 0, 82001, 1555842172364, '2019-04-24 02:32:55.000000', '卡罗拉');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556088728850, 0, 82001, 1555660645705, '2019-04-24 06:52:08.000000', '啦');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556088739682, 0, 82001, 1555842172364, '2019-04-24 06:52:19.000000', '叫姐姐');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556088750041, 1556088739682, 82001, 1555842172364, '2019-04-24 06:52:30.000000', '哼╯^╰');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556109617193, 0, 82001, 15, '2019-04-24 12:40:17.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556179911249, 0, 82001, 1555146101956, '2019-04-25 08:11:51.000000', '莫有样在真');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556179917534, 1556179911249, 82001, 1555146101956, '2019-04-25 08:11:57.000000', '你以为走咯');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556179921272, 1556179911249, 82001, 1555146101956, '2019-04-25 08:12:01.000000', '匿名');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556187596511, 0, 82001, 15, '2019-04-25 10:19:56.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556192437849, 0, 82001, 1555826433407, '2019-04-25 11:40:37.000000', '哈哈哈');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556264166448, 0, 82001, 15, '2019-04-26 07:36:06.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556434477631, 0, 82001, 1556416532140, '2019-04-28 06:54:37.000000', '叶圣陶');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556438316917, 0, 82001, 15, '2019-04-28 07:58:36.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556447474223, 0, 82001, 15, '2019-04-28 10:31:14.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556447629955, 0, 82001, 1556447474076, '2019-04-28 10:33:49.000000', '啦啦');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556447642188, 0, 82001, 1556447473966, '2019-04-28 10:34:02.000000', '啦啦');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556606726466, 0, 82001, 15, '2019-04-30 06:45:26.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556608158926, 0, 82001, 1556607959204, '2019-04-30 07:09:18.000000', '佛祖');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556852777588, 0, 82001, 15, '2019-05-03 03:06:17.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556953335513, 0, 82001, 1556387217941, '2019-05-04 07:02:15.000000', '嘻嘻嘻');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556953340357, 1556953335513, 82001, 1556387217941, '2019-05-04 07:02:20.000000', '额额额');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556987652879, 0, 82001, 15, '2019-05-04 16:34:12.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556987738892, 0, 82001, 15, '2019-05-04 16:35:38.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1556988311205, 0, 82001, 15, '2019-05-04 16:45:11.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557024488300, 1556953340357, 82001, 1556387217941, '2019-05-05 02:48:08.000000', '222');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557133819296, 0, 82001, 1555146150581, '2019-05-06 09:10:19.000000', '988');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557239093145, 0, 82001, 15, '2019-05-07 14:24:53.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557254398378, 0, 82002, 15, '2019-05-07 18:39:58.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557254443156, 0, 82001, 15, '2019-05-07 18:40:43.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557254466593, 0, 82001, 15, '2019-05-07 18:41:06.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557254474819, 0, 82001, 15, '2019-05-07 18:41:14.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557367770352, 0, 82001, 1508072633830, '2019-05-09 02:09:30.000000', '哈哈');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557396836045, 0, 82001, 15, '2019-05-09 10:13:56.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557415832512, 0, 82001, 15, '2019-05-09 15:30:32.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557707040335, 0, 82001, 1550825876665, '2019-05-13 00:24:00.000000', '帅吗?');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557754720666, 0, 82001, 1557754680146, '2019-05-13 13:38:40.000000', '卧槽(*`へ´*)');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557754765785, 0, 70793, 1557754680146, '2019-05-13 13:39:25.000000', '链接发下');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557754909538, 1557754765785, 82012, 1557754680146, '2019-05-13 13:41:49.000000', 'https://baijiahao.baidu.com/s?id=1633129683262867786&wfr=spider&for=pc&isFailFlag=1');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1557838424004, 0, 1508072105320, 1557754680146, '2019-05-14 12:53:44.000000', '666');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1558059734104, 0, 82001, 15, '2019-05-17 02:22:14.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1558059843115, 0, 82001, 15, '2019-05-17 02:24:03.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1558150056102, 0, 82001, 1557754680146, '2019-05-18 03:27:36.000000', '哈哈哈');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1558251372701, 0, 82001, 15, '2019-05-19 07:36:12.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1558275517613, 0, 82001, 15, '2019-05-19 14:18:37.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1558275862700, 0, 82001, 15, '2019-05-19 14:24:22.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1558440302601, 0, 82001, 1557415707105, '2019-05-21 12:05:02.000000', '咔咔咔');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1558440307225, 0, 82001, 1557415707105, '2019-05-21 12:05:07.000000', 'i我看');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1558440318878, 0, 82001, 1555146144094, '2019-05-21 12:05:18.000000', '哦啊就是计算机');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1558440335644, 0, 82001, 1557754680146, '2019-05-21 12:05:35.000000', '就是就是觉得奖学金');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1558440349435, 0, 82001, 1557754680146, '2019-05-21 12:05:49.000000', '解决');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1558440357141, 1558440335644, 82001, 1557754680146, '2019-05-21 12:05:57.000000', '惊声尖叫额');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1558444517410, 0, 82001, 15, '2019-05-21 13:15:17.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559479971167, 0, 82001, 15, '2019-06-02 12:52:51.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559512310810, 0, 82001, 1559479693309, '2019-06-02 21:51:50.000000', 'gggh');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559512315277, 1559512310810, 82001, 1559479693309, '2019-06-02 21:51:55.000000', 'ghhh');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559531009662, 0, 82001, 15, '2019-06-03 03:03:29.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559532427131, 0, 82001, 15, '2019-06-03 03:27:07.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559533505750, 0, 82001, 15, '2019-06-03 03:45:05.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559533513284, 0, 82001, 15, '2019-06-03 03:45:13.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559553148600, 0, 82001, 1559479693309, '2019-06-03 09:12:28.000000', 'cbnxn');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559570720109, 0, 82001, 1555146144094, '2019-06-03 14:05:20.000000', '你妹');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559616306248, 0, 82001, 15, '2019-06-04 02:45:06.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559617707946, 0, 82001, 15, '2019-06-04 03:08:27.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559628052667, 0, 82001, 1559479693309, '2019-06-04 06:00:52.000000', '发放');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559729189116, 0, 82001, 1559479693309, '2019-06-05 10:06:29.000000', '你真的牛逼');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1559731136559, 0, 82001, 15, '2019-06-05 10:38:56.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1560090719699, 0, 82001, 15, '2019-06-09 14:31:59.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1560168492719, 0, 82001, 15, '2019-06-10 12:08:12.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1560239593640, 0, 82001, 1559479693309, '2019-06-11 07:53:13.000000', '11');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1560262370938, 0, 82001, 15, '2019-06-11 14:12:50.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1560482772803, 0, 82001, 15, '2019-06-14 03:26:12.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1560482961067, 0, 82001, 1555842172364, '2019-06-14 03:29:21.000000', '3');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1560619772678, 0, 82001, 15, '2019-06-15 17:29:32.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1560736990682, 0, 82001, 15, '2019-06-17 02:03:10.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1561018625380, 1559512310810, 82001, 1559479693309, '2019-06-20 08:17:05.000000', 'ggggg');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1561364926819, 0, 82001, 15, '2019-06-24 08:28:46.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1561533263049, 1559729189116, 82001, 1559479693309, '2019-06-26 07:14:23.000000', '6666');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1561630666744, 0, 82001, 15, '2019-06-27 10:17:46.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1561949926841, 0, 82001, 15, '2019-07-01 02:58:46.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1561975421299, 1555136064488, 82001, 1555080161904, '2019-07-01 10:03:41.000000', '是不是');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562134664290, 0, 82001, 15, '2019-07-03 06:17:44.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562226345097, 0, 82001, 15, '2019-07-04 07:45:45.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562248764054, 1559729189116, 82001, 1559479693309, '2019-07-04 13:59:24.000000', 'fdd');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562307396087, 0, 82001, 1559479693309, '2019-07-05 06:16:36.000000', '我顶我顶');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562392250526, 0, 82001, 1559479693309, '2019-07-06 05:50:50.000000', '发个方
刚刚方法');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562392269174, 1559512310810, 82001, 1559479693309, '2019-07-06 05:51:09.000000', '古古怪怪');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562392274283, 1559553148600, 82001, 1559479693309, '2019-07-06 05:51:14.000000', '工业园');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562392278403, 1562307396087, 82001, 1559479693309, '2019-07-06 05:51:18.000000', '凤阳花鼓');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562495721307, 0, 82001, 15, '2019-07-07 10:35:21.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562662400473, 0, 82001, 15, '2019-07-09 08:53:20.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562684469790, 0, 82001, 1559125514307, '2019-07-09 15:01:09.000000', '发广告');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562684482831, 1562684469790, 82001, 1559125514307, '2019-07-09 15:01:22.000000', '厉害厉害');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562684488544, 0, 82001, 1559125514307, '2019-07-09 15:01:28.000000', '发过火');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562736873122, 1534926143012, 82001, 1508053762227, '2019-07-10 05:34:33.000000', '早睡早起');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562814013816, 0, 82001, 1562556720665, '2019-07-11 03:00:13.000000', 'xxxx');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1562814021942, 1562814013816, 82001, 1562556720665, '2019-07-11 03:00:21.000000', 'xxxx');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1563506794618, 0, 82001, 15, '2019-07-19 03:26:34.000000', '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1563641514400, 0, 82001, 1563605336326, '2019-07-20 16:51:54.000000', '年轻人不要想不开');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1570199485130, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1570357593954, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1570357613617, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1570524542455, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1570611593196, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1570611884292, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127141506, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127146874, 0, 82002, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127152654, 0, 82003, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127171390, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127176972, 0, 82002, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127182660, 0, 82003, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127220673, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127225286, 0, 82002, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127230152, 0, 82003, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127564313, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127568513, 0, 82002, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127573536, 0, 82003, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127695250, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127699686, 0, 82002, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127704277, 0, 82003, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127720172, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127724383, 0, 82002, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601127728638, 0, 82003, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1601132118675, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1612038997561, 0, 82001, 15, null, '测试新增评论');
INSERT INTO sys."Comment" (id, "toId", "userId", "momentId", date, content) VALUES (1612039188938, 0, 82001, 15, null, '测试新增评论');
CREATE TABLE sys."Document"
(
id bigint PRIMARY KEY NOT NULL,
"userId" bigint NOT NULL,
version smallint NOT NULL,
name varchar(100) NOT NULL,
url varchar(250) NOT NULL,
request text NOT NULL,
response text,
header text,
date timestamp
);
COMMENT ON COLUMN sys."Document".id IS '唯一标识';
COMMENT ON COLUMN sys."Document"."userId" IS '用户id
应该用adminId,只有当登录账户是管理员时才能操作文档。
需要先建Admin表,新增登录等相关接口。';
COMMENT ON COLUMN sys."Document".version IS '接口版本号
<=0 - 不限制版本,任意版本都可用这个接口
>0 - 在这个版本添加的接口';
COMMENT ON COLUMN sys."Document".name IS '接口名称';
COMMENT ON COLUMN sys."Document".url IS '请求地址';
COMMENT ON COLUMN sys."Document".request IS '请求
用json格式会导致强制排序,而请求中引用赋值只能引用上面的字段,必须有序。';
COMMENT ON COLUMN sys."Document".response IS '标准返回结果JSON
用json格式会导致强制排序,而请求中引用赋值只能引用上面的字段,必须有序。';
COMMENT ON COLUMN sys."Document".header IS '请求头 Request Header:
key: value //注释';
COMMENT ON COLUMN sys."Document".date IS '创建时间';
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1, 0, 1, '登录', '/login', '{"type": 0, "phone": "13000082001", "version": 1, "password": "<PASSWORD>"}', null, null, '2017-11-26 07:35:19.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (2, 0, 1, '注册(先获取验证码type:1)', '/register', '{
"Privacy": {
"phone": "13000083333",
"_password": "<PASSWORD>"
},
"User": {
"name": "APIJSONUser"
},
"verify": "6840"
}', '{"code":412,"msg":"手机号或验证码错误!"}', null, '2017-11-26 06:56:10.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (3, 0, 1, '退出登录', '/logout', '{}', null, null, '2017-11-26 09:36:10.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2017-11-26 09:51:54.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2017-11-27 15:22:35.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1511796208669, 0, 1, '检查验证码是否存在', '/heads/verify', '{"type": 0, "phone": "13000082001"}', '{"Verify":{"code":200,"msg":"success","count":1},"code":200,"msg":"success"}', null, '2017-11-27 15:23:28.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1511796589078, 0, 1, '修改登录密码(先获取验证码type:2)-手机号+验证码', '/put/password', '{"verify": "10<PASSWORD>", "Privacy": {"phone": "13000082001", "_password": "<PASSWORD>"}}', '{"code":412,"msg":"手机号或验证码错误!"}', null, '2017-11-27 15:29:49.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2017-11-27 15:34:42.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1511963330794, 0, 2, '获取文档列表(即在线解析网页上的共享)-API调用方式', '/get', '{
"Document[]": {
"Document": {
"@role": "login",
"@order": "version-,date-"
}
}
}', null, null, '2017-11-29 13:48:50.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2017-11-29 13:54:37.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1511963722969, 0, 1, '获取用户列表("id{}":contactIdList)-朋友页', '/get', '{
"User[]": {
"count": 10,
"page": 0,
"User": {
"@column": "id,sex,name,tag,head",
"@order": "name+",
"id{}": [
82002,
82004,
70793
]
}
}
}', '{"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"}', null, '2017-11-29 13:55:22.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1511963990071, 0, 1, '获取动态Moment+User+praiseUserList', '/get', '{
"Moment": {
"id": 15
},
"User": {
"id@": "Moment/userId",
"@column": "id,name,head"
},
"User[]": {
"count": 10,
"User": {
"id{}@": "Moment/praiseUserIdList",
"@column": "id,name"
}
}
}', '{"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"}', null, '2017-11-29 13:59:50.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1511964176688, 0, 1, '获取评论列表-动态详情页Comment+User', '/get', '{
"[]": {
"count": 20,
"page": 0,
"Comment": {
"@order": "date+",
"momentId": 15
},
"User": {
"id@": "/Comment/userId",
"@column": "id,name,head"
}
}
}', '{"[]":[{"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"}', null, '2017-11-29 14:02:56.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2017-11-29 15:04:13.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1511969181103, 0, 1, '添加朋友', '/put', '{
"User": {
"id": 82001,
"contactIdList+": [93793]
},
"tag": "User"
}', '{"User":{"id":82001,"contactIdList+":[93793],"@role":"owner"},"code":409,"msg":"PUT User, contactIdList:93793 已存在!"}', null, '2017-11-29 15:26:21.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1511969417632, 0, 1, '点赞/取消点赞', '/put', '{
"Moment": {
"id": 15,
"praiseUserIdList-": [
82001
]
},
"tag": "Moment"
}', '{"Moment":{"code":200,"msg":"success","id":15,"count":1},"code":200,"msg":"success"}', null, '2017-11-29 15:30:17.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1511969630371, 0, 1, '新增评论', '/post', '{ "Comment": { "momentId": 15, "content": "测试新增评论" }, "tag": "Comment" }', '{"Comment":{"code":200,"msg":"success","id":1533140610714,"count":1},"code":200,"msg":"success"}', null, '2017-11-29 15:33:50.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2017-11-29 15:40:09.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1511970224332, 0, 1, '修改用户信息', '/put', '{
"User": {
"id": 82001,
"name": "测试账号"
},
"tag": "User"
}', '{"User":{"code":200,"msg":"success","id":82001,"count":1},"code":200,"msg":"success"}', null, '2017-11-29 15:43:44.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1512216131854, 0, 1, '获取文档列表(即在线解析网页上的文档)-表和字段、请求格式限制', '/get', '{
"[]": {
"Table": {
"TABLE_SCHEMA": "sys",
"TABLE_TYPE": "BASE TABLE",
"TABLE_NAME!$": [
"\\_%",
"sys\\_%",
"system\\_%"
],
"@order": "TABLE_NAME+",
"@column": "TABLE_NAME,TABLE_COMMENT"
},
"Column[]": {
"Column": {
"TABLE_NAME@": "[]/Table/TABLE_NAME",
"@column": "COLUMN_NAME,COLUMN_TYPE,IS_NULLABLE,COLUMN_COMMENT"
}
}
},
"Request[]": {
"Request": {
"@order": "version-,method-"
}
}
}', null, null, '2017-12-02 12:02:11.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 14:25:18.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 14:26:50.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 14:28:02.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 14:29:06.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 14:29:47.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 14:33:53.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 14:34:29.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 14:35:10.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521903761688, 0, 2, '功能符(逻辑运算): ③ ! 非运算', '/head', '{"User":{"id!{}":[82001,38710]}}', '{"User":{"code":200,"msg":"success","count":119},"code":200,"msg":"success"}', null, '2018-03-24 15:02:41.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521903828409, 0, 2, '功能符(逻辑运算): ② | 或运算', '/head', '{"User":{"id|{}":">90000,<=80000"}}', '{"User":{"code":200,"msg":"success","count":72},"code":200,"msg":"success"}', null, '2018-03-24 15:03:48.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521903882829, 0, 2, '功能符(逻辑运算): ① & 与运算', '/head', '{"User":{"id&{}":">80000,<=90000"}}', '{"User":{"code":200,"msg":"success","count":49},"code":200,"msg":"success"}', null, '2018-03-24 15:04:42.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521904098110, 0, 2, '功能符: 减少 或 去除', '/put/balance', '{
"Privacy": {
"id": 82001,
"balance+": -100,
"_payPassword": "<PASSWORD>"
},"tag": "Privacy"
}', '{"Privacy":{"code":200,"msg":"success","id":82001,"count":1},"code":200,"msg":"success"}', null, '2018-03-24 15:08:18.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521904162065, 0, 2, '功能符: 增加 或 扩展', '/put', '{
"Moment": {
"id": 15,
"praiseUserIdList+": [
82001
]
},
"tag": "Moment"
}', '{"Moment":{"code":200,"msg":"success","id":15,"count":1},"code":200,"msg":"success"}', null, '2018-03-24 15:09:22.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521904337053, 0, 2, '功能符: 新建别名', '/get', '{"Comment":{"@column":"id,toId:parentId","id":51}}', '{"Comment":{"id":51,"parentId":45},"code":200,"msg":"success"}', null, '2018-03-24 15:12:17.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 15:13:14.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 15:13:57.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521904547991, 0, 2, '功能符: 引用赋值', '/get', '{"Moment":{
"userId":38710
},
"User":{
"id@":"/Moment/userId"
}}', '{"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"}', null, '2018-03-24 15:15:47.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 15:16:57.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 15:17:33.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 15:18:18.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 15:19:16.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521905263827, 0, 2, '操作方法(DELETE): 删除数据', '/delete', '{
"Moment":{
"id":120
},
"tag":"Moment"
}', '{"Moment":{"code":404,"msg":"可能对象不存在!","id":120,"count":0},"Comment":{"code":404,"msg":"可能对象不存在!","count":0},"code":200,"msg":"success"}', null, '2018-03-24 15:27:43.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521905599149, 0, 2, '操作方法(PUT): 修改数据,只修改所传的字段', '/put', '{
"Moment":{
"id":235,
"content":"APIJSON,let interfaces and documents go to hell !"
},
"tag":"Moment"
}', '{"Moment":{"code":200,"msg":"success","id":235,"count":1},"code":200,"msg":"success"}', null, '2018-03-24 15:33:19.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) 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"}', null, '2018-03-24 15:34:40.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521905787849, 0, 2, '操作方法(HEADS): 安全/私密获取数量,用于获取银行卡数量等 对安全性要求高的数据总数', '/heads', '{
"Login": {
"userId": 38710,"type":1
},
"tag": "Login"
}', '{"Login":{"code":200,"msg":"success","count":1},"code":200,"msg":"success"}', null, '2018-03-24 15:36:27.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521905868718, 0, 2, '操作方法(GETS): 安全/私密获取数据,用于获取钱包等 对安全性要求高的数据', '/gets', '{
"Privacy": {
"id": 82001
},
"tag": "Privacy"
}', '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":9832.86},"code":200,"msg":"success"}', null, '2018-03-24 15:37:48.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521905895590, 0, 2, '操作方法(HEAD): 普通获取数量,可用浏览器调试', '/head', '{
"Moment":{
"userId":38710
}
}', '{"Moment":{"code":200,"msg":"success","count":10},"code":200,"msg":"success"}', null, '2018-03-24 15:38:15.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521905913187, 0, 2, '操作方法(GET): 普通获取数据,可用浏览器调试', '/get', '{
"Moment":{
"id":235
}
}', '{"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"}', null, '2018-03-24 15:38:33.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521906240331, 0, 2, 'User发布的Moment列表,每个Moment包括 1.发布者User 2.前3条Comment: ③不查已获取的User', '/get', '{
"[]":{
"page":0,
"count":3,
"Moment":{
"userId":38710
},
"Comment[]":{
"count":3,
"Comment":{
"momentId@":"[]/Moment/id"
}
}
}
}', '{"[]":[{"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"}', null, '2018-03-24 15:44:00.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521906265959, 0, 2, 'User发布的Moment列表,每个Moment包括 1.发布者User 2.前3条Comment: ②省去重复的User', '/get', '{
"User":{
"id":38710
},
"[]":{
"page":0,
"count":3,
"Moment":{
"userId":38710
},
"Comment[]":{
"count":3,
"Comment":{
"momentId@":"[]/Moment/id"
}
}
}
}', '{"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"}', null, '2018-03-24 15:44:25.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521906517000, 0, 2, 'User发布的Moment列表,每个Moment包括 1.发布者User 2.前3条Comment: ①指定id', '/get', '{
"[]": {
"page": 0,
"count": 3,
"Moment":{"userId":38710}, "User":{"id":38710} ,
"Comment[]": {
"count": 3,
"Comment": {
"momentId@": "[]/Moment/id"
}
}
}
}', '{"[]":[{"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"}', null, '2018-03-24 15:48:37.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521907009307, 0, 2, 'Moment列表,每个Moment包括 1.发布者User 2.前3条Comment', '/get', '{
"[]":{
"page":0,
"count":3,
"Moment":{},
"User":{
"id@":"/Moment/userId"
},
"Comment[]":{
"count":3,
"Comment":{
"momentId@":"[]/Moment/id"
}
}
}
}', '{"[]":[{"Moment":{"id":12,"userId":70793,"date":"2017-02-08 16:06:11.0","content":"APIJSON,let interfaces and documents go to hell !","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":[82002,70793,38710,93793,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,"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":1512039030970,"toId":1512035117021,"userId":82001,"momentId":32,"date":"2017-11-30 18:50:30.0","content":"一般九宫格图片都是压缩图,分辨率在300*300左右,加载很快,点击放大后才是原图,1080P左右"},{"id":1555557851140,"toId":1512035117021,"userId":82001,"momentId":32,"date":"2019-04-18 11:24:11.0","content":"1545456"}]}],"code":200,"msg":"success","time:start/duration/end":"1556501639028/18/1556501639046","query:depth/max":"5/5","sql:generate/cache/execute/maxExecute":"15/9/6/200"}', null, '2018-03-24 15:56:49.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521907303539, 0, 2, 'User列表', '/get', '{
"User[]":{
"page":0,
"count":3,
"User":{
"sex":0
}
}
}', '{"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":"Dev","head":"https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Logo.png","contactIdList":[82034,82006,82030,82021,82038],"pictureList":["http://common.cnblogs.com/images/icon_weibo_24.png"],"date":"2017-02-01 19:21:50.0"}],"code":200,"msg":"success","time:start/duration/end":"1556501639031/9/1556501639040","query:depth/max":"3/5","sql:generate/cache/execute/maxExecute":"3/2/1/200"}', null, '2018-03-24 16:01:43.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521907317870, 0, 2, 'Moment和对应的User', '/get', '{
"Moment":{
"userId":38710
},
"User":{
"id":38710
}
}', '{"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","time:start/duration/end":"1556501639026/16/1556501639042","query:depth/max":"1/5","sql:generate/cache/execute/maxExecute":"2/0/2/200"}', null, '2018-03-24 16:01:57.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521907333044, 0, 2, 'User', '/get', '{
"User":{
"id":38710
}
}', '{"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","time:start/duration/end":"1556501639010/3/1556501639013","query:depth/max":"1/5","sql:generate/cache/execute/maxExecute":"1/0/1/200"}', null, '2018-03-24 16:02:13.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521907333046, 0, 2, 'Moment INNER JOIN User LEFT JOIN Comment', '/get', '{
"[]": {
"count": 10,
"page": 0,
"join": "&/User/id@,</Comment/momentId@",
"Moment": {
"@order": "date+"
},
"User": {
"name?": [
"a",
"t"
],
"id@": "/Moment/userId",
"@column": "id,name,head"
},
"Comment": {
"momentId@": "/Moment/id",
"@column": "id,momentId,content"
}
}
}', '{"[]":[{"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":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":182,"momentId":371,"content":"hahaha"}},{"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":182,"momentId":371,"content":"hahaha"}},{"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":182,"momentId":371,"content":"hahaha"}},{"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":182,"momentId":371,"content":"hahaha"}},{"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":182,"momentId":371,"content":"hahaha"}},{"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":182,"momentId":371,"content":"hahaha"}},{"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":182,"momentId":371,"content":"hahaha"}}],"code":200,"msg":"success","time:start/duration/end":"1556501638957/51/1556501639008","query:depth/max":"3/5","sql:generate/cache/execute/maxExecute":"30/27/3/200"}', null, '2018-03-24 16:02:43.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521907333047, 0, 2, '获取粉丝的动态列表', '/get', '{ "Moment[]": { "join": "&/User/id@", "Moment": {}, "User": { "id@": "/Moment/userId", "contactIdList<>": 82001, "@column": "id" } } }', '{"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"]},{"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"]},{"id":1545564986045,"userId":82003,"date":"2018-12-23 19:36:26.0","content":"测试新增动态","praiseUserIdList":[82001],"pictureList":["http://static.oschina.net/uploads/user/48/96331_50.jpg"]},{"id":1548145750536,"userId":82003,"date":"2019-01-22 16:29:10.0","content":"APIJSON,let interfaces and documents go to hell !","praiseUserIdList":[82001],"pictureList":[]}],"code":200,"msg":"success","time:start/duration/end":"1556501638963/39/1556501639002","query:depth/max":"3/5","sql:generate/cache/execute/maxExecute":"20/16/4/200"}', null, '2018-03-24 16:03:13.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521907546128, 0, 2, '获取类似微信朋友圈的动态列表', '/get', '{
"[]": {
"page": 0,
"count": 2,
"Moment": {
"content$": "%a%"
},
"User": {
"id@": "/Moment/userId",
"@column": "id,name,head"
},
"Comment[]": {
"count": 2,
"Comment": {
"momentId@": "[]/Moment/id"
}
}
}
}', '{"[]":[{"Moment":{"id":12,"userId":70793,"date":"2017-02-08 16:06:11.0","content":"APIJSON,let interfaces and documents go to hell !","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,"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"}]},{"Moment":{"id":15,"userId":70793,"date":"2017-02-08 16:06:11.0","content":"APIJSON is a JSON Transmission Structure Protocol…","praiseUserIdList":[82002,70793,38710,93793,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"},"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"}]}],"code":200,"msg":"success","time:start/duration/end":"1556501638962/38/1556501639000","query:depth/max":"5/5","sql:generate/cache/execute/maxExecute":"8/4/4/200"}', null, '2018-03-24 16:05:46.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521907570451, 0, 2, '获取动态及发布者用户', '/get', '{
"Moment": {},
"User": {
"id@": "Moment/userId"
}
}', '{"Moment":{"id":12,"userId":70793,"date":"2017-02-08 16:06:11.0","content":"APIJSON,let interfaces and documents go to hell !","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"},"code":200,"msg":"success","time:start/duration/end":"1556501638952/40/1556501638992","query:depth/max":"1/5","sql:generate/cache/execute/maxExecute":"2/0/2/200"}', null, '2018-03-24 16:06:10.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521907587429, 0, 2, '获取用户列表', '/get', '{
"[]": {
"count": 3,
"User": {
"@column": "id,name"
}
}
}', '{"[]":[{"User":{"id":38710,"name":"TommyLemon"}},{"User":{"id":70793,"name":"Strong"}},{"User":{"id":82001,"name":"测试账号"}}],"code":200,"msg":"success","time:start/duration/end":"1556501638960/37/1556501638997","query:depth/max":"3/5","sql:generate/cache/execute/maxExecute":"3/2/1/200"}', null, '2018-03-24 16:06:27.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1521907601298, 0, 2, '获取用户', '/get', '{
"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"},"code":200,"msg":"success","time:start/duration/end":"1556501638955/17/1556501638972","query:depth/max":"1/5","sql:generate/cache/execute/maxExecute":"1/0/1/200"}', null, '2018-03-24 16:06:41.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1569382296303, 82001, 2, '登录', '/login', '{
"type": 0,
"phone": "13000082001",
"password": "<PASSWORD>",
"version": 1,
"remember": false,
"defaults": {
"@database": "MYSQL",
"@schema": "sys"
}
}', null, '', '2019-09-25 03:31:36.000000');
INSERT INTO sys."Document" (id, "userId", version, name, url, request, response, header, date) VALUES (1569382305979, 82001, 2, '测试查询', '/get', '{
"User": {
"id": 82001
},
"[]": {
"Comment": {
"userId@": "User/id"
}
}
}', null, '', '2019-09-25 03:31:45.000000');
CREATE TABLE sys."Function"
(
id bigint PRIMARY KEY NOT NULL,
name varchar(30) NOT NULL,
arguments varchar(100),
demo text NOT NULL,
detail varchar(1000),
date timestamp(6) NOT NULL,
back varchar(45),
requestlist varchar(45),
"userId" bigint DEFAULT 0,
type varchar(45) DEFAULT 'Object'::character varying
);
COMMENT ON COLUMN sys."Function".name IS '方法名';
COMMENT ON COLUMN sys."Function".arguments IS '参数列表,每个参数的类型都是 String。
用 , 分割的字符串 比 [JSONArray] 更好,例如 array,item ,更直观,还方便拼接函数。';
COMMENT ON COLUMN sys."Function".demo IS '可用的示例。';
COMMENT ON COLUMN sys."Function".detail IS '详细描述';
COMMENT ON COLUMN sys."Function".date IS '创建时间';
COMMENT ON COLUMN sys."Function".back IS '返回类型';
COMMENT ON COLUMN sys."Function".requestlist IS 'Request 的 id 列表';
COMMENT ON COLUMN sys."Function"."userId" IS '用户id';
COMMENT ON COLUMN sys."Function".type IS '返回类型';
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (3, 'countArray', 'array', '{"array": [1, 2, 3]}', '获取数组长度。没写调用键值对,会自动补全 "result()": "countArray(array)"', '2018-10-13 08:23:23.000000', null, null, 0, 'Object');
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (4, 'countObject', 'object', '{"object": {"key0": 1, "key1": 2}}', '获取对象长度。', '2018-10-13 08:23:23.000000', null, null, 0, 'Object');
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (5, 'isContain', 'array,value', '{"array": [1, 2, 3], "value": 2}', '判断是否数组包含值。', '2018-10-13 08:23:23.000000', null, null, 0, 'Object');
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (6, 'isContainKey', 'object,key', '{"key": "id", "object": {"id": 1}}', '判断是否对象包含键。', '2018-10-13 08:30:31.000000', null, null, 0, 'Object');
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (7, 'isContainValue', 'object,value', '{"value": 1, "object": {"id": 1}}', '判断是否对象包含值。', '2018-10-13 08:30:31.000000', null, null, 0, 'Object');
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (8, 'getFromArray', 'array,position', '{"array": [1, 2, 3], "result()": "getFromArray(array,1)"}', '根据下标获取数组里的值。position 传数字时直接作为值,而不是从所在对象 request 中取值', '2018-10-13 08:30:31.000000', null, null, 0, 'Object');
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (9, 'getFromObject', 'object,key', '{"key": "id", "object": {"id": 1}}', '根据键获取对象里的值。', '2018-10-13 08:30:31.000000', null, null, 0, 'Object');
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (11, 'verifyIdList', 'array', '{"array": [1, 2, 3], "result()": "verifyIdList(array)"}', '校验类型为 id 列表', '2019-08-17 19:58:33.000000', null, null, 0, 'Object');
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (12, 'verifyURLList', 'array', '{"array": ["http://123.com/1.jpg", "http://123.com/a.png", "http://www.abc.com/test.gif"], "result()": "verifyURLList(array)"}', '校验类型为 URL 列表', '2019-08-17 19:58:33.000000', null, null, 0, 'Object');
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (13, 'getWithDefault', 'value,defaultValue', '{"value": null, "defaultValue": 1}', '如果 value 为 null,则返回 defaultValue', '2019-08-20 15:26:36.000000', null, null, 0, 'Object');
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (14, 'removeKey', 'key', '{"key": "s", "key2": 2}', '从对象里移除 key', '2019-08-20 15:26:36.000000', null, null, 0, 'Object');
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (15, 'getFunctionDemo', null, '{}', '获取远程函数的 Demo', '2019-08-20 15:26:36.000000', null, null, 0, 'Object');
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (16, 'getFunctionDetail', null, '{}', '获取远程函数的详情', '2019-08-20 15:26:36.000000', null, null, 0, 'Object');
INSERT INTO sys."Function" (id, name, arguments, demo, detail, date, back, requestlist, "userId", type) VALUES (10, 'deleteCommentOfMoment', 'momentId', '{"momentId": 1}', '根据动态 id 删除它的所有评论', '2019-08-17 18:46:56.000000', null, null, 0, 'Object');
CREATE TABLE sys."Login"
(
id bigint PRIMARY KEY NOT NULL,
"userId" bigint NOT NULL,
type smallint NOT NULL,
date timestamp(6) NOT NULL
);
COMMENT ON COLUMN sys."Login".id IS '唯一标识';
COMMENT ON COLUMN sys."Login"."userId" IS '用户id';
COMMENT ON COLUMN sys."Login".type IS '类型
0-密码登录
1-验证码登录';
COMMENT ON COLUMN sys."Login".date IS '创建日期';
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488365732208, 0, 0, '2017-03-01 10:55:32.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488379391681, 1488378558927, 0, '2017-03-01 14:43:11.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488379908786, 1488378449469, 0, '2017-03-01 14:51:48.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488379961820, 1488379935755, 0, '2017-03-01 14:52:41.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488386227319, 1488380023998, 0, '2017-03-01 16:37:07.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488387166592, 1488378449469, 0, '2017-03-01 16:52:46.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488423710531, 1488423676823, 0, '2017-03-02 03:01:50.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488428867991, 1488428734202, 0, '2017-03-02 04:27:47.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488473261705, 1488473066471, 0, '2017-03-02 16:47:41.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488516623869, 1488378449469, 0, '2017-03-03 04:50:23.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488540997715, 1488540991808, 0, '2017-03-03 11:36:37.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488541075533, 1488541028865, 0, '2017-03-03 11:37:55.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488541560585, 1488541531131, 0, '2017-03-03 11:46:00.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488569711657, 1488569508197, 0, '2017-03-03 19:35:11.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488569782719, 1488569732797, 0, '2017-03-03 19:36:22.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488569807192, 1488569798561, 0, '2017-03-03 19:36:47.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488572273190, 1488572225956, 0, '2017-03-03 20:17:53.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488572823466, 1488569798561, 0, '2017-03-03 20:27:03.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488572844863, 1488572838263, 0, '2017-03-03 20:27:24.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488572852849, 1488572838263, 0, '2017-03-03 20:27:32.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488572994566, 1488572838263, 0, '2017-03-03 20:29:54.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488602587483, 1488602583693, 0, '2017-03-04 04:43:07.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488602732477, 1488602583693, 0, '2017-03-04 04:45:32.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488602739644, 1488569508197, 0, '2017-03-04 04:45:39.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488616804093, 82012, 0, '2017-03-04 09:30:21.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488619853762, 82012, 0, '2017-03-04 09:30:53.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488619853763, 1488621574081, 0, '2017-03-04 09:59:34.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488621807871, 1488621574081, 0, '2017-03-04 10:03:27.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488621807872, 1488621574081, 0, '2017-03-04 10:03:43.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488621827734, 1488621574081, 0, '2017-03-04 10:03:47.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488621827735, 1488621574081, 0, '2017-03-04 10:04:03.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488621846267, 1488621574081, 0, '2017-03-04 10:04:06.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488621846268, 1488621873562, 0, '2017-03-04 10:04:33.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488621876782, 1488621873562, 0, '2017-03-04 10:04:36.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488621876783, 1488621904086, 0, '2017-03-04 10:05:04.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488622533567, 1488621904086, 0, '2017-03-04 10:15:33.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488622533568, 1488622827857, 0, '2017-03-04 10:20:27.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488622831418, 1488622827857, 0, '2017-03-04 10:20:31.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488622831419, 1488473066471, 0, '2017-03-04 10:21:52.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488622919890, 1488473066471, 0, '2017-03-04 10:21:59.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488622919891, 1488622959038, 0, '2017-03-04 10:22:39.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488623021260, 1488622959038, 0, '2017-03-04 10:23:41.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488623021261, 1488622959038, 0, '2017-03-04 10:25:02.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488623107782, 1488622959038, 0, '2017-03-04 10:25:07.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488623107783, 1488622959038, 0, '2017-03-04 14:23:31.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488638599393, 1488622959038, 0, '2017-03-04 14:43:19.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488638599394, 1488622959038, 0, '2017-03-04 15:07:50.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488640073476, 1488622959038, 0, '2017-03-04 15:07:53.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488640255126, 1488640277910, 0, '2017-03-04 15:11:18.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488640325578, 1488640277910, 0, '2017-03-04 15:12:05.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488640325579, 1488640277910, 0, '2017-03-04 15:12:08.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488640330490, 1488640277910, 0, '2017-03-04 15:12:10.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488640330491, 1488640277910, 0, '2017-03-04 15:59:25.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488643309485, 1488640277910, 0, '2017-03-04 16:01:49.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488643309486, 1488643325534, 0, '2017-03-04 16:02:05.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488643330578, 1488643325534, 0, '2017-03-04 16:02:10.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488643414031, 1488643442503, 0, '2017-03-04 16:04:02.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488643446184, 1488643442503, 0, '2017-03-04 16:04:06.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488645359252, 82012, 0, '2017-03-04 16:43:41.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488645825647, 82012, 0, '2017-03-04 16:43:45.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488645825648, 82012, 0, '2017-03-04 16:44:32.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488645964496, 82012, 0, '2017-03-04 16:46:04.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488645964497, 82012, 0, '2017-03-04 16:46:06.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488645968694, 82012, 0, '2017-03-04 16:46:08.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707458563, 1488643442503, 0, '2017-03-05 09:51:32.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707494290, 1488643442503, 0, '2017-03-05 09:51:34.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707494291, 1488707511472, 0, '2017-03-05 09:51:51.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707514358, 1488707511472, 0, '2017-03-05 09:51:54.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707514359, 1488707511472, 1, '2017-03-05 09:52:15.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707539344, 1488707511472, 0, '2017-03-05 09:52:19.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707539345, 1488707572184, 0, '2017-03-05 09:52:52.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707575181, 1488707572184, 0, '2017-03-05 09:52:55.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707575182, 1488707617655, 0, '2017-03-05 09:53:37.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707626071, 1488707617655, 0, '2017-03-05 09:53:46.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707626072, 1488707617655, 0, '2017-03-05 09:53:52.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707635801, 1488707617655, 0, '2017-03-05 09:53:55.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707635802, 1488707617655, 0, '2017-03-05 09:57:26.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707850222, 1488707617655, 0, '2017-03-05 09:57:30.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707850223, 1488707874944, 0, '2017-03-05 09:57:55.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707877660, 1488707874944, 0, '2017-03-05 09:57:57.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707877661, 1488707874944, 1, '2017-03-05 09:58:27.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488707915649, 1488707874944, 0, '2017-03-05 09:58:35.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488727516722, 1488727542397, 0, '2017-03-05 15:25:42.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488727548031, 1488727542397, 0, '2017-03-05 15:25:48.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488803302239, 1488727542397, 0, '2017-03-06 12:28:24.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488803306640, 1488727542397, 0, '2017-03-06 12:28:26.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488803306641, 1488803343874, 0, '2017-03-06 12:29:04.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488803346374, 1488803343874, 0, '2017-03-06 12:29:06.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488803346375, 1488803343874, 0, '2017-03-06 15:06:09.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1488812773144, 1488803343874, 0, '2017-03-06 15:06:13.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489244600336, 1489244640435, 0, '2017-03-11 15:04:00.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489244647438, 1489244640435, 0, '2017-03-11 15:04:07.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489244647439, 1489244640435, 1, '2017-03-11 15:04:25.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489244669153, 1489244640435, 0, '2017-03-11 15:04:29.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489246281612, 1489244640435, 0, '2017-03-11 15:31:37.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489246300085, 1489244640435, 0, '2017-03-11 15:31:40.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489246300086, 1489244640435, 0, '2017-03-11 15:32:00.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489246323014, 1489244640435, 0, '2017-03-11 15:32:03.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489246323015, 1489246345610, 0, '2017-03-11 15:32:25.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489246350667, 1489246345610, 0, '2017-03-11 15:32:30.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489298452742, 1488727542397, 0, '2017-03-12 06:01:02.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489298464822, 1488727542397, 0, '2017-03-12 06:01:04.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489298464823, 1489298483829, 0, '2017-03-12 06:01:23.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489298490008, 1489298483829, 0, '2017-03-12 06:01:30.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489298490009, 82005, 0, '2017-03-12 06:02:12.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489298931649, 82005, 0, '2017-03-12 06:08:53.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489298971069, 82005, 0, '2017-03-12 06:09:31.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489298971070, 82005, 0, '2017-03-12 06:09:40.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489299084011, 82005, 0, '2017-03-12 06:11:24.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489299139305, 90814, 0, '2017-03-12 06:12:23.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489317763943, 1489317784114, 0, '2017-03-12 11:23:04.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489317856607, 1489317784114, 0, '2017-03-12 11:24:16.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489934937901, 1489934955220, 0, '2017-03-19 14:49:15.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1489934967736, 1489934955220, 0, '2017-03-19 14:49:27.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490105370959, 1490105418731, 0, '2017-03-21 14:10:18.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490105432172, 1490105418731, 0, '2017-03-21 14:10:32.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490109211714, 1490109742863, 0, '2017-03-21 15:22:23.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490109746858, 1490109742863, 0, '2017-03-21 15:22:26.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490109746859, 1490109845208, 0, '2017-03-21 15:24:05.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490109847412, 1490109845208, 0, '2017-03-21 15:24:07.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490109847413, 1490109845208, 1, '2017-03-21 15:25:39.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490109943463, 1490109845208, 0, '2017-03-21 15:25:43.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490420549513, 1488707874944, 0, '2017-03-25 05:43:30.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490420612726, 1488707874944, 0, '2017-03-25 05:43:32.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490420612727, 1490420651686, 0, '2017-03-25 05:44:11.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490420694018, 1490420651686, 0, '2017-03-25 05:44:54.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490425995551, 1490427139175, 0, '2017-03-25 07:32:19.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490427142481, 1490427139175, 0, '2017-03-25 07:32:22.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490427142482, 1490427139175, 0, '2017-03-25 07:32:25.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490427147907, 1490427139175, 0, '2017-03-25 07:32:27.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490427147908, 1490427139175, 1, '2017-03-25 07:32:46.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490427169820, 1490427139175, 0, '2017-03-25 07:32:49.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490427169821, 1490427139175, 1, '2017-03-25 07:36:09.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490427460928, 1490427139175, 0, '2017-03-25 07:37:40.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490427550424, 1490427577823, 0, '2017-03-25 07:39:37.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490427581040, 1490427577823, 0, '2017-03-25 07:39:41.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490584927873, 1490584952968, 0, '2017-03-27 03:22:33.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490584967616, 1490584952968, 0, '2017-03-27 03:22:47.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490585175679, 1490585192903, 0, '2017-03-27 03:26:33.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490585175680, 1490585226494, 0, '2017-03-27 03:27:06.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490585175681, 1490586230028, 0, '2017-03-27 03:43:50.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490586242829, 1490586230028, 0, '2017-03-27 03:44:02.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490586242830, 1490586417277, 0, '2017-03-27 03:46:57.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490586420868, 1490586417277, 0, '2017-03-27 03:47:00.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490586420869, 1490587219677, 0, '2017-03-27 04:00:20.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490587222853, 1490587219677, 0, '2017-03-27 04:00:22.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490587222854, 1490587219677, 0, '2017-03-27 04:00:30.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490587232018, 1490587219677, 0, '2017-03-27 04:00:32.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490763654616, 1489317784114, 0, '2017-03-29 05:01:03.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490763665719, 1489317784114, 0, '2017-03-29 05:01:05.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490763665720, 1490763680229, 0, '2017-03-29 05:01:20.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490763684749, 1490763680229, 0, '2017-03-29 05:01:24.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490763684750, 1490763889677, 0, '2017-03-29 05:04:49.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490763892907, 1490763889677, 0, '2017-03-29 05:04:52.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490763892908, 1490763889677, 1, '2017-03-29 05:09:04.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490764146839, 1490763889677, 0, '2017-03-29 05:09:06.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490764146840, 1490763889677, 0, '2017-03-29 05:09:17.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490764160920, 1490763889677, 0, '2017-03-29 05:09:20.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490796426168, 1490796536716, 0, '2017-03-29 14:08:56.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490796539768, 1490796536716, 0, '2017-03-29 14:08:59.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490796539769, 1490796536716, 1, '2017-03-29 14:09:25.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490796612462, 1490796536716, 0, '2017-03-29 14:10:12.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490796612463, 1490796536716, 0, '2017-03-29 14:10:14.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490797130482, 1490796536716, 0, '2017-03-29 14:18:50.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490797130483, 1490796536716, 0, '2017-03-29 14:21:17.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490799078694, 1490796536716, 0, '2017-03-29 14:51:18.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490799078695, 1490796536716, 0, '2017-03-29 15:04:49.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490863478648, 82003, 0, '2017-03-30 08:44:40.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490863574695, 82003, 0, '2017-03-30 08:46:14.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490863574696, 82005, 0, '2017-03-30 08:46:16.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490863617906, 82005, 0, '2017-03-30 08:46:57.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490863617907, 70793, 1, '2017-03-30 08:47:12.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490863735458, 70793, 0, '2017-03-30 08:48:55.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490863735459, 93793, 0, '2017-03-30 08:49:01.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490863793209, 93793, 0, '2017-03-30 08:49:53.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490863793210, 82006, 0, '2017-03-30 08:50:07.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490864162242, 82006, 0, '2017-03-30 08:56:02.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490864162243, 82044, 1, '2017-03-30 08:56:39.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490864359458, 82044, 0, '2017-03-30 08:59:19.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490874790302, 82040, 0, '2017-03-30 11:53:14.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490874856899, 82040, 0, '2017-03-30 11:54:16.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490874856900, 82055, 0, '2017-03-30 11:54:22.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490875711368, 82055, 0, '2017-03-30 12:08:31.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490875711369, 82056, 0, '2017-03-30 12:08:37.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490875721491, 82056, 0, '2017-03-30 12:08:41.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490875721492, 82060, 0, '2017-03-30 12:08:43.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490875725467, 82060, 0, '2017-03-30 12:08:45.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490875725468, 1490875855144, 0, '2017-03-30 12:10:55.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490875857334, 1490875855144, 0, '2017-03-30 12:10:57.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490880027108, 82054, 0, '2017-03-30 13:20:27.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490880030859, 82054, 0, '2017-03-30 13:20:30.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490880030860, 1490880220255, 0, '2017-03-30 13:23:40.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490880236865, 1490880220255, 0, '2017-03-30 13:23:56.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490880236866, 1490880254410, 0, '2017-03-30 13:24:14.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490880256555, 1490880254410, 0, '2017-03-30 13:24:16.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490973548451, 1490973670928, 0, '2017-03-31 15:21:11.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490974102842, 1490973670928, 0, '2017-03-31 15:28:22.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490974212206, 70793, 0, '2017-03-31 15:30:27.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1490974347168, 70793, 0, '2017-03-31 15:32:27.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491014963729, 82049, 0, '2017-04-01 02:49:29.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491014970908, 82049, 0, '2017-04-01 02:49:30.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491014970909, 82051, 0, '2017-04-01 02:49:32.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491014975055, 82051, 0, '2017-04-01 02:49:35.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491014975056, 1490420651686, 0, '2017-04-01 02:49:37.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491014978929, 1490420651686, 0, '2017-04-01 02:49:38.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491014978930, 1491015049274, 0, '2017-04-01 02:50:49.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491015064226, 1491015049274, 0, '2017-04-01 02:51:04.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491015064227, 70793, 0, '2017-04-01 02:57:27.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491130974601, 82049, 0, '2017-04-02 11:03:06.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491130988304, 82049, 0, '2017-04-02 11:03:08.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491130988305, 82050, 0, '2017-04-02 11:03:10.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491130992091, 82050, 0, '2017-04-02 11:03:12.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491130992092, 1490420651686, 0, '2017-04-02 11:03:13.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491130996226, 1490420651686, 0, '2017-04-02 11:03:16.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491130996227, 1491131016872, 0, '2017-04-02 11:03:37.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491131020967, 1491131016872, 0, '2017-04-02 11:03:40.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491131114629, 1491131208618, 0, '2017-04-02 11:06:48.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491131215621, 1491131208618, 0, '2017-04-02 11:06:55.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491131215622, 1491131208618, 0, '2017-04-02 12:32:26.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491136484469, 1491131208618, 0, '2017-04-02 12:34:44.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491137049692, 1491137170621, 0, '2017-04-02 12:46:10.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491137175158, 1491137170621, 0, '2017-04-02 12:46:15.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491137175159, 70793, 0, '2017-04-02 12:46:27.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491210186666, 82046, 0, '2017-04-03 09:05:37.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491210340156, 82046, 0, '2017-04-03 09:05:40.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491210340157, 82041, 0, '2017-04-03 09:05:41.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491210344197, 82041, 0, '2017-04-03 09:05:44.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491210344198, 1491210361659, 1, '2017-04-03 09:06:23.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491210385826, 1491210361659, 0, '2017-04-03 09:06:25.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491210385827, 1491210948591, 0, '2017-04-03 09:15:48.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491210951970, 1491210948591, 0, '2017-04-03 09:15:51.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491210951971, 1491210948591, 1, '2017-04-03 09:16:01.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491210964359, 1491210948591, 0, '2017-04-03 09:16:04.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491210964360, 1491210948591, 0, '2017-04-03 09:16:07.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491210969546, 1491210948591, 0, '2017-04-03 09:16:09.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491231490642, 82003, 0, '2017-04-03 14:58:13.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491231560497, 82003, 0, '2017-04-03 14:59:20.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491231560498, 93793, 0, '2017-04-03 14:59:31.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491231602048, 93793, 0, '2017-04-03 15:00:02.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491231602049, 93793, 0, '2017-04-03 15:09:42.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491232187135, 93793, 0, '2017-04-03 15:09:47.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491278106043, 1490109742863, 0, '2017-04-04 03:55:15.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491278117918, 1490109742863, 0, '2017-04-04 03:55:17.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491278117919, 1490427577823, 0, '2017-04-04 03:55:19.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491278121481, 1490427577823, 0, '2017-04-04 03:55:21.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491278121482, 1491278203315, 0, '2017-04-04 03:56:43.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491283571224, 1491278203315, 0, '2017-04-04 05:26:11.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491283708324, 1491210314249, 1, '2017-04-04 05:28:55.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491283800948, 1491210314249, 0, '2017-04-04 05:30:00.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491706177615, 1491706263570, 0, '2017-04-09 02:51:03.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491713830487, 1491713931091, 0, '2017-04-09 04:58:51.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491713972850, 1491713931091, 0, '2017-04-09 04:59:32.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491728210153, 1490427139175, 0, '2017-04-09 08:56:53.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491728216317, 1490427139175, 0, '2017-04-09 08:56:56.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491728216318, 82054, 0, '2017-04-09 08:56:58.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491728221137, 82054, 0, '2017-04-09 08:57:01.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491728221138, 1491728303733, 0, '2017-04-09 08:58:23.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491728316688, 1491728303733, 0, '2017-04-09 08:58:36.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491798585269, 1490420651686, 0, '2017-04-10 04:30:17.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491798619163, 1490420651686, 0, '2017-04-10 04:30:19.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491798619164, 1491015049274, 0, '2017-04-10 04:30:21.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491798623156, 1491015049274, 0, '2017-04-10 04:30:23.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491798623157, 1491798705995, 0, '2017-04-10 04:31:46.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491798824157, 1491798705995, 0, '2017-04-10 04:33:44.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491830822528, 1491830893899, 0, '2017-04-10 13:28:14.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491831356223, 1491830893899, 0, '2017-04-10 13:35:56.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491838437130, 1491838521279, 0, '2017-04-10 15:35:21.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491838535040, 1491838521279, 0, '2017-04-10 15:35:35.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491917352614, 1491728303733, 0, '2017-04-11 13:29:22.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491917364596, 1491728303733, 0, '2017-04-11 13:29:24.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491917364597, 1491917447333, 0, '2017-04-11 13:30:47.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1491917916123, 1491917447333, 0, '2017-04-11 13:38:36.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492865677465, 82058, 0, '2017-04-22 12:54:45.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492865687807, 82058, 0, '2017-04-22 12:54:47.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492865687808, 1492866224074, 0, '2017-04-22 13:03:44.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492866227861, 1492866224074, 0, '2017-04-22 13:03:47.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492866227862, 1492866224074, 0, '2017-04-22 13:03:52.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492866235005, 1492866224074, 0, '2017-04-22 13:03:55.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492866235006, 1492866322486, 0, '2017-04-22 13:05:22.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492866325550, 1492866322486, 0, '2017-04-22 13:05:25.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492936150349, 1492936169722, 0, '2017-04-23 08:29:30.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492936172897, 1492936169722, 0, '2017-04-23 08:29:32.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492936172898, 1492936169722, 0, '2017-04-23 08:33:44.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492936427137, 1492936169722, 0, '2017-04-23 08:33:47.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492936427138, 1492936169722, 0, '2017-04-23 08:37:29.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1492936651770, 1492936169722, 0, '2017-04-23 08:37:31.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493456282571, 90814, 0, '2017-04-29 08:58:09.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493457036233, 90814, 0, '2017-04-29 09:10:36.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493480121888, 1490427139175, 0, '2017-04-29 15:35:26.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493480129111, 1490427139175, 0, '2017-04-29 15:35:29.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493480129112, 1493480142628, 0, '2017-04-29 15:35:42.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493480148564, 1493480142628, 0, '2017-04-29 15:35:48.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493480148565, 1493480142628, 0, '2017-04-29 15:35:54.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493480156757, 1493480142628, 0, '2017-04-29 15:35:56.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493480156758, 90814, 0, '2017-04-29 15:36:01.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493480162695, 90814, 0, '2017-04-29 15:36:02.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493480162696, 93793, 0, '2017-04-29 15:36:06.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493480189011, 93793, 0, '2017-04-29 15:36:29.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493747501699, 1493747512860, 0, '2017-05-02 17:51:53.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493747519493, 1493747512860, 0, '2017-05-02 17:51:59.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493747519494, 1493747777770, 0, '2017-05-02 17:56:17.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493747780534, 1493747777770, 0, '2017-05-02 17:56:20.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493748571679, 1493748594003, 0, '2017-05-02 18:09:54.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493748596459, 1493748594003, 0, '2017-05-02 18:09:56.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493748596460, 1493748615711, 0, '2017-05-02 18:10:15.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493748617966, 1493748615711, 0, '2017-05-02 18:10:17.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493748617967, 1493749090643, 0, '2017-05-02 18:18:10.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493749100206, 1493749090643, 0, '2017-05-02 18:18:20.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493836047659, 1493836043151, 0, '2017-05-03 18:27:27.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493836049490, 1493836043151, 0, '2017-05-03 18:27:29.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493883116023, 1493883110132, 0, '2017-05-04 07:31:56.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493883118007, 1493883110132, 0, '2017-05-04 07:31:58.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493890214303, 1493890214167, 0, '2017-05-04 09:30:14.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493890216183, 1493890214167, 0, '2017-05-04 09:30:16.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493890699755, 1493890303473, 0, '2017-05-04 09:38:19.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493890702129, 1493890303473, 0, '2017-05-04 09:38:22.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493891565732, 82001, 0, '2017-05-04 09:52:45.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493891782837, 82001, 0, '2017-05-04 09:56:22.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493891784591, 82002, 0, '2017-05-04 09:56:24.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493891793881, 82002, 0, '2017-05-04 09:56:33.000000');
INSERT INTO sys."Login" (id, "userId", type, date) VALUES (1493891806372, 38710, 1, '2017-05-04 09:56:46.000000');
CREATE TABLE sys."Moment"
(
id bigint PRIMARY KEY NOT NULL,
"userId" bigint NOT NULL,
date timestamp(6),
content varchar(300),
"praiseUserIdList" jsonb NOT NULL,
"pictureList" jsonb NOT NULL
);
COMMENT ON COLUMN sys."Moment".id IS '唯一标识';
COMMENT ON COLUMN sys."Moment"."userId" IS '用户id';
COMMENT ON COLUMN sys."Moment".date IS '创建日期';
COMMENT ON COLUMN sys."Moment".content IS '内容';
COMMENT ON COLUMN sys."Moment"."praiseUserIdList" IS '点赞的用户id列表';
COMMENT ON COLUMN sys."Moment"."pictureList" IS '图片列表';
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (12, 70793, '2017-02-08 08:06:11.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (32, 82002, '2017-02-08 08:06:11.000000', 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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (58, 90814, '2017-02-01 11:14:31.000000', 'This is a Content...-435', '[38710, 82003, 82005, 93793, 82006, 82044, 82001]', '["http://static.oschina.net/uploads/img/201604/22172507_aMmH.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (170, 70793, '2017-02-01 11:14:31.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (301, 93793, '2017-02-01 11:14:31.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (371, 82002, '2017-02-01 11:14:31.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (470, 38710, '2017-02-01 11:14:31.000000', 'This is a Content...-470', '[82001]', '["http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (511, 38710, '2017-02-08 08:06:11.000000', 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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (543, 93793, '2017-02-08 08:06:11.000000', 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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (551, 70793, '2017-02-08 08:06:11.000000', 'test', '[82001]', '["http://static.oschina.net/uploads/img/201604/22172507_Pz9Y.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (595, 38710, '2017-03-05 05:29:19.000000', 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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (704, 38710, '2017-03-12 09:39:44.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1491200468898, 38710, '2017-04-03 06:21:08.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1493835799335, 38710, '2017-05-03 18:23:19.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1508053762227, 82003, '2017-10-15 07:49:22.000000', '我也试试', '[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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1508072491570, 82002, '2017-10-15 13:01:31.000000', '有点冷~', '[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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1548145750829, 82003, '2019-01-22 08:29:10.000000', '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1549017200628, 82001, '2019-02-01 10:33:20.000000', '说点什么吧~快捷键', '[82001]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1508072633830, 93793, '2017-10-15 13:03:53.000000', '天凉了
有男朋友的抱男盆友
有女朋友的抱女朋友
而我就比较牛逼了
我不冷。', '[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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1508073178489, 82045, '2017-10-15 13:12:58.000000', '发动态', '[82001]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1512314438990, 38710, '2017-12-03 15:20:38.000000', 'APIJSON iOS-Swift版发布,自动生成请求代码,欢迎使用^_^
https://github.com/TommyLemon/APIJSON', '[82001, 82002, 70793, 1512531601485]', '["https://images2018.cnblogs.com/blog/660067/201712/660067-20171203231829476-1202860128.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1513094436910, 38710, '2017-12-12 16:00:36.000000', 'APIJSON-Python已发布,欢迎体验^_^
https://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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1514017444961, 82002, '2017-12-23 08:24:04.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1514858533480, 82056, '2018-01-02 02:02:13.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1516086423441, 93793, '2018-01-16 07:07:03.000000', '抢到票了,开心ପ( ˘ᵕ˘ ) ੭ ☆', '[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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1520242333325, 1520242280259, '2018-03-05 09:32:13.000000', '法拉利', '[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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1523935589834, 1523626157302, '2018-04-17 03:26:29.000000', 'by第一条动态', '[]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1523936332614, 1523626157302, '2018-04-17 03:38:52.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1524178455305, 1524042900591, '2018-04-19 22:54:15.000000', '早上好啊', '[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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1524298780222, 1524298730523, '2018-04-21 08:19:40.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1524826652626, 1524298730523, '2018-04-27 10:57:32.000000', '说点什么吧~哈哈哈', '[82001]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1527498273102, 1527498229991, '2018-05-28 09:04:33.000000', '说点什么吧~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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1527821296110, 1527495857924, '2018-06-01 02:48:16.000000', '这是我的商品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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1527830331780, 1527495857924, '2018-06-01 05:18:51.000000', '各种购物袋', '[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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1527830474378, 1527495857924, '2018-06-01 05:21:14.000000', '电视机', '[1527495857924]', '["https://cbu01.alicdn.com/img/ibank/2017/231/077/4524770132_781046171.310x310.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1528251335464, 1528250827953, '2018-06-06 02:15:35.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1528260617722, 1528255497767, '2018-06-06 04:50:17.000000', '。。。。', '[]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1528269822710, 1528264711016, '2018-06-06 07:23:42.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1528269988360, 1528250827953, '2018-06-06 07:26:28.000000', '为什么发动态默认会有这两张图片啊?不可以选择自己的图片', '[1528250827953]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1528274037224, 1528250827953, '2018-06-06 08:33:57.000000', '说点什么吧~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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1528356378455, 1528264711016, '2018-06-07 07:26:18.000000', '去旅游嘛~', '[82001]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1528356421201, 1528264711016, '2018-06-07 07:27:01.000000', '(ง •̀_•́)ง', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1528356496939, 1528356470041, '2018-06-07 07:28:16.000000', '(๑•ั็ω•็ั๑)', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1528462217322, 1528339692804, '2018-06-08 12:50:17.000000', '有没有小姐姐准备端午出游的?
地点:北戴河', '[]', '["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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1528676875139, 1528339692804, '2018-06-11 00:27:55.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1531062713966, 82002, '2018-07-08 15:11:53.000000', '云南好美啊( ◞˟૩˟)◞', '[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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1531969818357, 1531969715979, '2018-07-19 03:10:18.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1533908589726, 1533835176109, '2018-08-10 13:43:09.000000', '我的', '[82001]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1535781636403, 1532188114543, '2018-09-01 06:00:36.000000', '这是一个测试', '[82001]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1536064087117, 1532188114543, '2018-09-04 12:28:07.000000', '说点什么吧~奥哈达', '[]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1536805585275, 82003, '2018-09-13 02:26:25.000000', 'iPhone Xs发布了,大家怎么看?', '[82002, 82005, 70793, 82003]', '["https://pic1.zhimg.com/80/v2-e129b40810070443add1c28e6185c894_hd.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1539868023868, 82001, '2018-10-18 13:07:03.000000', '说点什么吧~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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1540459349460, 82001, '2018-10-25 09:22:29.000000', '说点什么吧~而你', '[]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1540459361744, 82001, '2018-10-25 09:22:41.000000', '说点什么吧~哦哦', '[82001]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1540634282433, 82001, '2018-10-27 09:58:02.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1541557989440, 38710, '2018-11-07 02:33:09.000000', '自动化接口和文档 APIJSON 3.0.0 发布
https://www.oschina.net/news/101548/apijson-3-0-released', '[82001]', '["https://raw.githubusercontent.com/TommyLemon/StaticResources/master/APIJSON_Auto_get.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1541667920272, 82001, '2018-11-08 09:05:20.000000', '说点什么吧~???', '[82001]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1541667945772, 82001, '2018-11-08 09:05:45.000000', '说点什么吧~都有', '[82001]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1541684010904, 82001, '2018-11-08 13:33:30.000000', '说点什么吧~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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1544265482923, 82001, '2018-12-08 10:38:02.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1544276121218, 82001, '2018-12-08 13:35:21.000000', '说点什么吧~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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1544276216289, 1544276209348, '2018-12-08 13:36:56.000000', '说点什么吧~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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1544497353863, 82001, '2018-12-11 03:02:33.000000', 'APIJSON,let interfaces and documents go to hell !', '[82001]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1544497355630, 82001, '2018-12-11 03:02:35.000000', 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1544537838100, 82001, '2018-12-11 14:17:18.000000', '说点什么吧~logo灭了也可', '[]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1545187924367, 1544503822963, '2018-12-19 02:52:04.000000', '说哼哼唧唧点什么吧~', '[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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1545490282104, 82001, '2018-12-22 14:51:22.000000', '说点什么吧~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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1545560428650, 82001, '2018-12-23 10:20:28.000000', 'APIJSON,let interfaces and documents go to hell !', '[82001]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1545564986045, 82003, '2018-12-23 11:36:26.000000', '测试新增动态', '[82001]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1545819572448, 82002, '2018-12-26 10:19:32.000000', 'APIJSON,let interfaces and documents go to hell !', '[82001]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1545819572637, 82002, '2018-12-26 10:19:32.000000', '测试新增动态', '[82001]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1545819752556, 82001, '2018-12-26 10:22:32.000000', '说点什么吧~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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1546934384440, 82001, '2019-01-08 07:59:44.000000', 'APIJSON,let interfaces and documents go to hell !', '[82001]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1547436860950, 82001, '2019-01-14 03:34:20.000000', '测试新增动态', '[82001]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1547479596460, 82001, '2019-01-14 15:26:36.000000', 'APIJSON,let interfaces and documents go to hell !', '[82001]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1547559758939, 82002, '2019-01-15 13:42:38.000000', 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1548145750536, 82003, '2019-01-22 08:29:10.000000', 'APIJSON,let interfaces and documents go to hell !', '[82001]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1548236953106, 82001, '2019-01-23 09:49:13.000000', '{@}', '[82001]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1548300581350, 82002, '2019-01-24 03:29:41.000000', 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1548599361342, 82001, '2019-01-27 14:29:21.000000', '说点什么吧~好)不会徐下节课斜挎包', '[82001]', '["http://static.oschina.net/uploads/user/1218/2437072_100.jpg?t=1461076033000", "http://common.cnblogs.com/images/icon_weibo_24.png"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1548599375288, 82001, '2019-01-27 14:29:35.000000', '说点什么吧~告诉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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1548822634246, 82002, '2019-01-30 04:30:34.000000', 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1548822634518, 82002, '2019-01-30 04:30:34.000000', '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560096399488, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1557721145964, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560093312615, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560093312921, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1558891221463, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1558891221788, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560096269459, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560094319618, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560093326180, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560092284174, 82003, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560092284508, 82003, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560094319934, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560093326539, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560094350737, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560092302827, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560092303319, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560094351045, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560094254821, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560094329746, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560093270103, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560093270358, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560096270069, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560094330083, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560094255148, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560096575905, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560096208964, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560094315580, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560096419027, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560094315886, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560096209271, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560094334838, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560094335132, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560096419392, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560096295559, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1561120326228, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560096295867, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560096576289, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560690276182, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560096399446, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1561120257647, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1561120257326, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1560690275764, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1561120218108, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1561120224955, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1561120326572, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1561120386111, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1561120385763, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1561120405667, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1561120405325, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1561630616406, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1561630616075, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1568458531964, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1568458532641, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1568461871469, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1568461872933, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1570199366451, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1570199483864, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601132117007, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1570199485028, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127225291, 82002, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1570357591525, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1570357593773, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127152533, 82003, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1570357610747, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127169887, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1570357613596, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127573677, 82003, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1570357703386, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127704144, 82003, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1570524449714, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127171392, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1570524540256, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127175330, 82002, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1570524542006, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127228481, 82003, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1570611580381, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127229998, 82003, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127176958, 82002, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1570611591924, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127693561, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127139970, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127181043, 82003, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127141514, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127724249, 82002, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127562784, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127146655, 82002, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127146920, 82002, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127150976, 82003, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127564192, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127182673, 82003, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127718645, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127219423, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127695115, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127220674, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601132118551, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127223899, 82002, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127698292, 82002, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127567029, 82002, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127568512, 82002, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (15, 70793, '2017-02-08 08:06:11.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127572138, 82003, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127720271, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127699686, 82002, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127727257, 82003, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127702649, 82003, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127722886, 82002, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1612038994612, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1601127728639, 82003, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1612038997550, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1612039185041, 82001, null, 'APIJSON,let interfaces and documents go to hell !', '[]', '[]');
INSERT INTO sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (235, 38710, '2017-02-08 08:06:11.000000', '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 sys."Moment" (id, "userId", date, content, "praiseUserIdList", "pictureList") VALUES (1612039188935, 82001, null, '测试新增动态', '[]', '["http://static.oschina.net/uploads/user/48/96331_50.jpg"]');
CREATE TABLE sys."Praise"
(
id bigint PRIMARY KEY NOT NULL,
"momentId" bigint NOT NULL,
"userId" bigint NOT NULL,
date timestamp(6)
);
COMMENT ON COLUMN sys."Praise".id IS '动态id';
COMMENT ON COLUMN sys."Praise"."momentId" IS '唯一标识';
COMMENT ON COLUMN sys."Praise"."userId" IS '用户id';
COMMENT ON COLUMN sys."Praise".date IS '点赞时间';
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (1, 12, 82001, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (2, 15, 82002, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (3, 32, 82003, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (4, 58, 82004, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (5, 170, 82005, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (6, 235, 82006, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (7, 301, 82007, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (8, 371, 82008, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (9, 470, 82009, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (10, 511, 82010, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (11, 543, 82011, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (12, 551, 82012, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (13, 594, 82013, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (14, 595, 82014, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (15, 704, 82015, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (16, 1491200468898, 82016, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (17, 1491277116776, 82017, '2017-11-19 13:02:30.000000');
INSERT INTO sys."Praise" (id, "momentId", "userId", date) VALUES (18, 1493835799335, 82018, '2017-11-19 13:02:30.000000');
CREATE TABLE sys."Request"
(
id bigint PRIMARY KEY NOT NULL,
version smallint NOT NULL,
method varchar(10),
tag varchar(20) NOT NULL,
structure jsonb NOT NULL,
detail varchar(10000),
date timestamp(6)
);
COMMENT ON COLUMN sys."Request".id IS '唯一标识';
COMMENT ON COLUMN sys."Request".version IS 'GET,HEAD可用任意结构访问任意开放内容,不需要这个字段。
其它的操作因为写入了结构和内容,所以都需要,按照不同的version选择对应的structure。
自动化版本管理:
Request JSON最外层可以传 "version":Integer 。
1.未传或 <= 0,用最新版。 "@order":"version-"
2.已传且 > 0,用version以上的可用版本的最低版本。 "@order":"version+", "version{}":">={version}"';
COMMENT ON COLUMN sys."Request".method IS '只限于GET,HEAD外的操作方法。';
COMMENT ON COLUMN sys."Request".tag IS '标签';
COMMENT ON COLUMN sys."Request".structure IS '结构';
COMMENT ON COLUMN sys."Request".detail IS '详细说明';
COMMENT ON COLUMN sys."Request".date IS '创建时间';
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (1, 1, 'POST', 'register', '{"User": {"UPDATE": {"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.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (2, 1, 'POST', 'Moment', '{"INSERT": {"@role": "OWNER", "pictureList": [], "praiseUserIdList": []}, "UPDATE": {"verifyIdList-()": "verifyIdList(praiseUserIdList)", "verifyURLList-()": "verifyURLList(pictureList)"}, "DISALLOW": "id"}', 'INSERT当没传pictureList和praiseUserIdList时用空数组[]补全,保证不会为null', '2017-02-01 11:19:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (3, 1, 'POST', 'Comment', '{"UPDATE": {"@role": "OWNER"}, "DISALLOW": "id", "NECESSARY": "momentId,content"}', '必须传userId,momentId,content,不允许传id', '2017-02-01 11:19:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (4, 1, 'PUT', 'User', '{"INSERT": {"@role": "OWNER"}, "DISALLOW": "phone", "NECESSARY": "id"}', '必须传id,不允许传phone。INSERT当没传@role时用OWNER补全', '2017-02-01 11:19:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (5, 1, 'DELETE', 'Moment', '{"Moment": {"INSERT": {"@role": "OWNER"}, "UPDATE": {"commentCount()": "deleteCommentOfMoment(id)"}, "NECESSARY": "id"}}', null, '2017-02-01 11:19:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (6, 1, 'DELETE', 'Comment', '{"INSERT": {"@role": "OWNER"}, "UPDATE": {"childCount()": "deleteChildComment(id)"}, "NECESSARY": "id"}', 'disallow没必要用于DELETE', '2017-02-01 11:19:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (8, 1, 'PUT', 'User-phone', '{"User": {"INSERT": {"@role": "OWNER"}, "UPDATE": {"@combine": "_password"}, "DISALLOW": "!", "NECESSARY": "id,phone,_password"}}', '! 表示其它所有,这里指necessary所有未包含的字段', '2017-02-01 11:19:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (14, 1, 'POST', 'Verify', '{"DISALLOW": "!", "NECESSARY": "phone,verify"}', '必须传phone,verify,其它都不允许传', '2017-02-18 14:20:43.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (15, 1, 'GETS', 'Verify', '{"NECESSARY": "phone"}', '必须传phone', '2017-02-18 14:20:43.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (16, 1, 'HEADS', 'Verify', '{}', '允许任意内容', '2017-02-18 14:20:43.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (17, 1, 'PUT', 'Moment', '{"DISALLOW": "userId,date", "NECESSARY": "id"}', null, '2017-02-01 11:19:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (21, 1, 'HEADS', 'Login', '{"DISALLOW": "!", "NECESSARY": "userId,type"}', null, '2017-02-18 14:20:43.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (22, 1, 'GETS', 'User', '{}', '允许传任何内容,除了表对象', '2017-02-18 14:20:43.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (23, 1, 'PUT', 'Privacy', '{"INSERT": {"@role": "OWNER"}, "NECESSARY": "id"}', 'INSERT当没传@role时用OWNER补全', '2017-02-01 11:19:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (25, 1, 'PUT', 'Praise', '{"NECESSARY": "id"}', '必须传id', '2017-02-01 11:19:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (26, 1, 'DELETE', 'Comment[]', '{"Comment": {"INSERT": {"@role": "OWNER"}, "NECESSARY": "id{}"}}', 'DISALLOW没必要用于DELETE', '2017-02-01 11:19:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (27, 1, 'PUT', 'Comment[]', '{"Comment": {"INSERT": {"@role": "OWNER"}, "NECESSARY": "id{}"}}', 'DISALLOW没必要用于DELETE', '2017-02-01 11:19:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (28, 1, 'PUT', 'Comment', '{"INSERT": {"@role": "OWNER"}, "NECESSARY": "id"}', '这里省略了Comment,因为tag就是Comment,Parser.getCorrectRequest会自动补全', '2017-02-01 11:19:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (29, 1, 'GETS', 'login', '{"Privacy": {"DISALLOW": "id", "NECESSARY": "phone,_password"}}', null, '2017-10-15 10:04:52.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (30, 1, 'PUT', 'balance+', '{"Privacy": {"VERIFY": {"balance+&{}": ">=1,<=100000"}, "DISALLOW": "!", "NECESSARY": "id,balance+"}}', '验证balance+对应的值是否满足>=1且<=100000', '2017-10-21 08:48:34.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (31, 1, 'PUT', 'balance-', '{"Privacy": {"UPDATE": {"@combine": "_password"}, "VERIFY": {"balance-&{}": ">=1,<=10000"}, "DISALLOW": "!", "NECESSARY": "id,balance-,_password"}}', 'UPDATE强制把_password作为WHERE条件', '2017-10-21 08:48:34.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (32, 2, 'GETS', 'Privacy', '{"INSERT": {"@role": "OWNER"}, "DISALLOW": "_password,_payPassword", "NECESSARY": "id"}', null, '2017-06-12 16:05:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (33, 2, 'GETS', 'Privacy-CIRCLE', '{"Privacy": {"UPDATE": {"@role": "CIRCLE", "@column": "phone"}, "DISALLOW": "!", "NECESSARY": "id"}}', null, '2017-06-12 16:05:51.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (35, 2, 'POST', 'Document', '{"Document": {"INSERT": {"@role": "OWNER"}, "DISALLOW": "id", "NECESSARY": "userId,name,url,request"}, "TestRecord": {"INSERT": {"@role": "OWNER"}, "UPDATE": {"documentId@": "Document/id"}, "DISALLOW": "id,documentId", "NECESSARY": "userId,response"}}', null, '2017-11-26 08:34:41.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (36, 2, 'PUT', 'Document', '{"DISALLOW": "userId", "NECESSARY": "id"}', null, '2017-11-26 08:35:15.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (37, 2, 'DELETE', 'Document', '{"INSERT": {"@role": "OWNER"}, "UPDATE": {"TestRecord": {"@role": "OWNER", "documentId@": "Document/id"}}, "DISALLOW": "!", "NECESSARY": "id"}', null, '2017-11-26 00:36:20.000000');
INSERT INTO sys."Request" (id, version, method, tag, structure, detail, date) VALUES (38, 2, 'POST', 'TestRecord', '{"DISALLOW": "id", "NECESSARY": "userId,documentId,response"}', null, '2018-06-16 23:44:36.000000');
CREATE TABLE sys."Response"
(
id bigint PRIMARY KEY NOT NULL,
method varchar(10),
model varchar(20) NOT NULL,
structure text NOT NULL,
detail varchar(10000),
date timestamp(6)
);
COMMENT ON COLUMN sys."Response".id IS '唯一标识';
COMMENT ON COLUMN sys."Response".method IS '方法';
COMMENT ON COLUMN sys."Response".model IS '表名,table是SQL关键词不能用';
COMMENT ON COLUMN sys."Response".structure IS '结构';
COMMENT ON COLUMN sys."Response".detail IS '详细说明';
COMMENT ON COLUMN sys."Response".date IS '创建日期';
CREATE INDEX "id_UNIQUE" ON sys."Response" (id);
INSERT INTO sys."Response" (id, method, model, structure, detail, date) 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.000000');
INSERT INTO sys."Response" (id, method, model, structure, detail, date) VALUES (2, 'DELETE', 'Comment', '{"remove": "Comment:child"}', null, '2017-05-03 17:51:26.000000');
INSERT INTO sys."Response" (id, method, model, structure, detail, date) VALUES (3, 'DELETE', 'Moment', '{"remove": "Comment"}', null, '2017-05-03 17:51:26.000000');
CREATE TABLE sys."Test"
(
id smallint PRIMARY KEY NOT NULL
);
INSERT INTO sys."Test" (id) VALUES (1);
CREATE TABLE sys."TestRecord"
(
id bigint PRIMARY KEY NOT NULL,
"userId" bigint NOT NULL,
"documentId" bigint NOT NULL,
response text NOT NULL,
date timestamp(6) NOT NULL,
compare text,
standard text,
"randomId" bigint DEFAULT 0
);
COMMENT ON COLUMN sys."TestRecord".id IS '唯一标识';
COMMENT ON COLUMN sys."TestRecord"."userId" IS '用户id';
COMMENT ON COLUMN sys."TestRecord"."documentId" IS '测试用例文档id';
COMMENT ON COLUMN sys."TestRecord".response IS '接口返回结果JSON';
COMMENT ON COLUMN sys."TestRecord".date IS '创建日期';
COMMENT ON COLUMN sys."TestRecord".compare IS '对比结果';
COMMENT ON COLUMN sys."TestRecord".standard IS 'response 的校验标准,是一个 JSON 格式的 AST ,描述了正确 Response 的结构、里面的字段名称、类型、长度、取值范围 等属性。';
COMMENT ON COLUMN sys."TestRecord"."randomId" IS '随机配置 id';
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520087202299, 82001, 1519368532249, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":21927.05},"code":200,"msg":"success"}', '2018-03-03 14:26:42.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520087205329, 82001, 1511969630372, '{"Comment":{"code":200,"msg":"success","id":1520087181598,"count":1},"code":200,"msg":"success"}', '2018-03-03 14:26:45.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520088798322, 82001, 1519526273822, '{"Document[]":[{"id":1519526273822,"userId":82001,"version":2,"compare":2,"name":"gets请求","url":"/gets","request":"{
"Privacy": {
"id": 82001
},
"tag": "Privacy"
}","date":"2018-02-25 10:37:53.0"},{"id":1519368532249,"userId":82001,"version":2,"compare":1,"name":"login请求","url":"/login","request":"{
"type": 0,
"phone": "13000082001",
"password": "<PASSWORD>",
"version": 1
}","date":"2018-02-23 14:48:52.0"},{"id":1516325614520,"userId":82001,"version":2,"compare":0,"name":"get请求","url":"/get","request":" {
"[]":{
"User":{
"sex":1
}
}
}
","date":"2018-01-19 09:33:34.0"},{"id":1511963330795,"userId":0,"version":2,"compare":0,"name":"获取文档列表(即在线解析网页上的共享)-API调用方式","url":"/get","request":"{
"Document[]": {
"Document": {
"@role": "login",
"@order": "version-,date-"
}
}
}","date":"2017-11-29 21:48:50.0"},{"id":1512216131855,"userId":0,"version":1,"compare":0,"name":"获取文档列表(即在线解析网页上的文档)-表和字段、请求格式限制","url":"/get","request":"{
"[]": {
"Table": {
"TABLE_SCHEMA": "sys",
"TABLE_TYPE": "BASE TABLE",
"TABLE_NAME!$": [
"\\_%",
"sys\\_%",
"system\\_%"
],
"@order": "TABLE_NAME+",
"@column": "TABLE_NAME,TABLE_COMMENT"
},
"Column[]": {
"Column": {
"TABLE_NAME@": "[]/Table/TABLE_NAME",
"@column": "COLUMN_NAME,COLUMN_TYPE,IS_NULLABLE,COLUMN_COMMENT"
}
}
},
"Request[]": {
"Request": {
"@order": "version-,method-"
}
}
}","date":"2017-12-02 20:02:11.0"},{"id":1511970224333,"userId":0,"version":1,"compare":3,"name":"修改用户信息","url":"/put","request":"{
"User": {
"id": 82001,
"name": "测试改名"
},
"tag": "User"
}","date":"2017-11-29 23:43:44.0"},{"id":1511970009072,"userId":0,"version":1,"compare":0,"name":"新增动态","url":"/post","request":"{
"Moment": {
"userId": 82001,
"content": "测试新增动态",
"pictureList": ["http://static.oschina.net/uploads/user/48/96331_50.jpg"
]
},
"tag": "Moment"
}","date":"2017-11-29 23:40:09.0"},{"id":1511969630372,"userId":0,"version":1,"compare":4,"name":"新增评论","url":"/post","request":"{
"Comment": {
"userId": 82001,
"momentId": 15,
"content": "测试新增评论"
},
"tag": "Comment"
}","date":"2017-11-29 23:33:50.0"},{"id":1511969417633,"userId":0,"version":1,"compare":0,"name":"点赞/取消点赞","url":"/put","request":"{
"Moment": {
"id": 15,
"praiseUserIdList-": [
82001
]
},
"tag": "Moment"
}","date":"2017-11-29 23:30:17.0"},{"id":1511969181104,"userId":0,"version":1,"compare":0,"name":"添加朋友","url":"/put","request":"{
"User": {
"id": 82001,
"contactIdList+": [93793]
},
"tag": "User"
}","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":"{
"[]": {
"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"
}
}
}
}","date":"2017-11-29 23:04:13.0"},{"id":1511964176689,"userId":0,"version":1,"compare":0,"name":"获取评论列表-动态详情页Comment+User","url":"/get","request":"{
"[]": {
"count": 20,
"page": 0,
"Comment": {
"@order": "date+",
"momentId": 15
},
"User": {
"id@": "/Comment/userId",
"@column": "id,name,head"
}
}
}","date":"2017-11-29 22:02:56.0"},{"id":1511963990072,"userId":0,"version":1,"compare":0,"name":"获取动态Moment+User+praiseUserList","url":"/get","request":"{
"Moment": {
"id": 15
},
"User": {
"id@": "Moment/userId",
"@column": "id,name,head"
},
"User[]": {
"count": 10,
"User": {
"id{}@": "Moment/praiseUserIdList",
"@column": "id,name"
}
}
}","date":"2017-11-29 21:59:50.0"},{"id":1511963722970,"userId":0,"version":1,"compare":0,"name":"获取用户列表("id{}":contactIdList)-朋友页","url":"/get","request":"{
"User[]": {
"count": 10,
"page": 0,
"User": {
"@column": "id,sex,name,tag,head",
"@order": "name+",
"id{}": [
82002,
82004,
70793
]
}
}
}","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":"{
"Privacy": {
"phone": "13000083333",
"_password": "<PASSWORD>"
},
"User": {
"name": "APIJSONUser"
},
"verify": "6840"
}"}],"code":200,"msg":"success"}', '2018-03-03 14:53:18.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520088802486, 82001, 1511970224333, '{"Comment":{"code":200,"msg":"success","id":1520088770429,"count":1},"code":200,"msg":"success"}', '2018-03-03 14:53:22.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520088813403, 82001, 1511969630372, '{"Moment":{"id":15,"praiseUserIdList-":[82001]},"code":417,"msg":"PUT Moment, praiseUserIdList:82001 不存在!"}', '2018-03-03 14:53:33.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520088985525, 82001, 1511963677325, '{"code":412,"msg":"手机号或验证码错误!"}', '2018-03-03 14:56:25.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520089316891, 82001, 1519368532249, '{"User":{"code":200,"msg":"success","id":82001,"count":1},"code":200,"msg":"success"}', '2018-03-03 15:01:56.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520089324108, 82001, 1511970224333, '{"Comment":{"code":200,"msg":"success","id":1520089307634,"count":1},"code":200,"msg":"success"}', '2018-03-03 15:02:04.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520089328891, 82001, 1511963677325, '{"code":412,"msg":"手机号或验证码错误!"}', '2018-03-03 15:02:08.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520089695229, 82001, 2, '{"Document[]":[{"id":1519526273822,"userId":82001,"version":2,"name":"gets请求","url":"/gets","request":"{
"Privacy": {
"id": 82001
},
"tag": "Privacy"
}","response":"{"Document[]":[{"id":1519526273822,"userId":82001,"version":2,"compare":2,"name":"gets请求","url":"/gets","request":"{
"Privacy": {
"id": 82001
},
"tag": "Privacy"
}","date":"2018-02-25 10:37:53.0"},{"id":1519368532249,"userId":82001,"version":2,"compare":1,"name":"login请求","url":"/login","request":"{
"type": 0,
"phone": "13000082001",
"password": "<PASSWORD>",
"version": 1
}","date":"2018-02-23 14:48:52.0"},{"id":1516325614520,"userId":82001,"version":2,"compare":0,"name":"get请求","url":"/get","request":" {
"[]":{
"User":{
"sex":1
}
}
}
","date":"2018-01-19 09:33:34.0"},{"id":1511963330795,"userId":0,"version":2,"compare":0,"name":"获取文档列表(即在线解析网页上的共享)-API调用方式","url":"/get","request":"{
"Document[]": {
"Document": {
"@role": "login",
"@order": "version-,date-"
}
}
}","date":"2017-11-29 21:48:50.0"},{"id":1512216131855,"userId":0,"version":1,"compare":0,"name":"获取文档列表(即在线解析网页上的文档)-表和字段、请求格式限制","url":"/get","request":"{
"[]": {
"Table": {
"TABLE_SCHEMA": "sys",
"TABLE_TYPE": "BASE TABLE",
"TABLE_NAME!$": [
"\\_%",
"sys\\_%",
"system\\_%"
],
"@order": "TABLE_NAME+",
"@column": "TABLE_NAME,TABLE_COMMENT"
},
"Column[]": {
"Column": {
"TABLE_NAME@": "[]/Table/TABLE_NAME",
"@column": "COLUMN_NAME,COLUMN_TYPE,IS_NULLABLE,COLUMN_COMMENT"
}
}
},
"Request[]": {
"Request": {
"@order": "version-,method-"
}
}
}","date":"2017-12-02 20:02:11.0"},{"id":1511970224333,"userId":0,"version":1,"compare":3,"name":"修改用户信息","url":"/put","request":"{
"User": {
"id": 82001,
"name": "测试改名"
},
"tag": "User"
}","date":"2017-11-29 23:43:44.0"},{"id":1511970009072,"userId":0,"version":1,"compare":0,"name":"新增动态","url":"/post","request":"{
"Moment": {
"userId": 82001,
"content": "测试新增动态",
"pictureList": ["http://static.oschina.net/uploads/user/48/96331_50.jpg"
]
},
"tag": "Moment"
}","date":"2017-11-29 23:40:09.0"},{"id":1511969630372,"userId":0,"version":1,"compare":4,"name":"新增评论","url":"/post","request":"{
"Comment": {
"userId": 82001,
"momentId": 15,
"content": "测试新增评论"
},
"tag": "Comment"
}","date":"2017-11-29 23:33:50.0"},{"id":1511969417633,"userId":0,"version":1,"compare":0,"name":"点赞/取消点赞","url":"/put","request":"{
"Moment": {
"id": 15,
"praiseUserIdList-": [
82001
]
},
"tag": "Moment"
}","date":"2017-11-29 23:30:17.0"},{"id":1511969181104,"userId":0,"version":1,"compare":0,"name":"添加朋友","url":"/put","request":"{
"User": {
"id": 82001,
"contactIdList+": [93793]
},
"tag": "User"
}","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":"{
"[]": {
"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"
}
}
}
}","date":"2017-11-29 23:04:13.0"},{"id":1511964176689,"userId":0,"version":1,"compare":0,"name":"获取评论列表-动态详情页Comment+User","url":"/get","request":"{
"[]": {
"count": 20,
"page": 0,
"Comment": {
"@order": "date+",
"momentId": 15
},
"User": {
"id@": "/Comment/userId",
"@column": "id,name,head"
}
}
}","date":"2017-11-29 22:02:56.0"},{"id":1511963990072,"userId":0,"version":1,"compare":0,"name":"获取动态Moment+User+praiseUserList","url":"/get","request":"{
"Moment": {
"id": 15
},
"User": {
"id@": "Moment/userId",
"@column": "id,name,head"
},
"User[]": {
"count": 10,
"User": {
"id{}@": "Moment/praiseUserIdList",
"@column": "id,name"
}
}
}","date":"2017-11-29 21:59:50.0"},{"id":1511963722970,"userId":0,"version":1,"compare":0,"name":"获取用户列表("id{}":contactIdList)-朋友页","url":"/get","request":"{
"User[]": {
"count": 10,
"page": 0,
"User": {
"@column": "id,sex,name,tag,head",
"@order": "name+",
"id{}": [
82002,
82004,
70793
]
}
}
}","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":"{
"Privacy": {
"phone": "13000083333",
"_password": "<PASSWORD>"
},
"User": {
"name": "APIJSONUser"
},
"verify": "6840"
}"}],"code":200,"msg":"success"}","date":"2018-02-25 10:37:53.0"},{"id":1519368532249,"userId":82001,"version":2,"name":"login请求","url":"/login","request":"{
"type": 0,
"phone": "13000082001",
"password": "<PASSWORD>",
"version": 1
}","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":" {
"[]":{
"User":{
"sex":1
}
}
}
","date":"2018-01-19 09:33:34.0"},{"id":1511963330795,"userId":0,"version":2,"name":"获取文档列表(即在线解析网页上的共享)-API调用方式","url":"/get","request":"{
"Document[]": {
"Document": {
"@role": "login",
"@order": "version-,date-"
}
}
}","date":"2017-11-29 21:48:50.0"},{"id":1512216131855,"userId":0,"version":1,"name":"获取文档列表(即在线解析网页上的文档)-表和字段、请求格式限制","url":"/get","request":"{
"[]": {
"Table": {
"TABLE_SCHEMA": "sys",
"TABLE_TYPE": "BASE TABLE",
"TABLE_NAME!$": [
"\\_%",
"sys\\_%",
"system\\_%"
],
"@order": "TABLE_NAME+",
"@column": "TABLE_NAME,TABLE_COMMENT"
},
"Column[]": {
"Column": {
"TABLE_NAME@": "[]/Table/TABLE_NAME",
"@column": "COLUMN_NAME,COLUMN_TYPE,IS_NULLABLE,COLUMN_COMMENT"
}
}
},
"Request[]": {
"Request": {
"@order": "version-,method-"
}
}
}","date":"2017-12-02 20:02:11.0"},{"id":1511970224333,"userId":0,"version":1,"name":"修改用户信息","url":"/put","request":"{
"User": {
"id": 82001,
"name": "测试改名"
},
"tag": "User"
}","date":"2017-11-29 23:43:44.0"},{"id":1511970009072,"userId":0,"version":1,"name":"新增动态","url":"/post","request":"{
"Moment": {
"userId": 82001,
"content": "测试新增动态",
"pictureList": ["http://static.oschina.net/uploads/user/48/96331_50.jpg"
]
},
"tag": "Moment"
}","date":"2017-11-29 23:40:09.0"},{"id":1511969630372,"userId":0,"version":1,"name":"新增评论","url":"/post","request":"{
"Comment": {
"userId": 82001,
"momentId": 15,
"content": "测试新增评论"
},
"tag": "Comment"
}","date":"2017-11-29 23:33:50.0"},{"id":1511969417633,"userId":0,"version":1,"name":"点赞/取消点赞","url":"/put","request":"{
"Moment": {
"id": 15,
"praiseUserIdList-": [
82001
]
},
"tag": "Moment"
}","date":"2017-11-29 23:30:17.0"},{"id":1511969181104,"userId":0,"version":1,"name":"添加朋友","url":"/put","request":"{
"User": {
"id": 82001,
"contactIdList+": [93793]
},
"tag": "User"
}","date":"2017-11-29 23:26:21.0"},{"id":1511967853340,"userId":0,"version":1,"name":"获取动态列表Moment+User+User:parise[]+Comment[]","url":"/get","request":"{
"[]": {
"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"
}
}
}
}","date":"2017-11-29 23:04:13.0"},{"id":1511964176689,"userId":0,"version":1,"name":"获取评论列表-动态详情页Comment+User","url":"/get","request":"{
"[]": {
"count": 20,
"page": 0,
"Comment": {
"@order": "date+",
"momentId": 15
},
"User": {
"id@": "/Comment/userId",
"@column": "id,name,head"
}
}
}","date":"2017-11-29 22:02:56.0"},{"id":1511963990072,"userId":0,"version":1,"name":"获取动态Moment+User+praiseUserList","url":"/get","request":"{
"Moment": {
"id": 15
},
"User": {
"id@": "Moment/userId",
"@column": "id,name,head"
},
"User[]": {
"count": 10,
"User": {
"id{}@": "Moment/praiseUserIdList",
"@column": "id,name"
}
}
}","date":"2017-11-29 21:59:50.0"},{"id":1511963722970,"userId":0,"version":1,"name":"获取用户列表("id{}":contactIdList)-朋友页","url":"/get","request":"{
"User[]": {
"count": 10,
"page": 0,
"User": {
"@column": "id,sex,name,tag,head",
"@order": "name+",
"id{}": [
82002,
82004,
70793
]
}
}
}","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>56"}}","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":"{
"Privacy": {
"phone": "13000083333",
"_password": "<PASSWORD>"
},
"User": {
"name": "APIJSONUser"
},
"verify": "6840"
}"}],"code":200,"msg":"success"}', '2018-03-03 15:08:15.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520090219049, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":22628.1},"code":200,"msg":"success"}', '2018-03-03 15:16:59.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520090633508, 82001, 1516325614520, '{"code":412,"msg":"手机号或验证码错误!"}', '2018-03-03 15:23:53.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520091069489, 82001, 1516325614520, '{"code":412,"msg":"手机号或验证码错误!"}', '2018-03-03 15:31:09.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520091190755, 82001, 1519368532249, '{"code":412,"msg":"手机号或验证码错误!"}', '2018-03-03 15:33:10.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520091349017, 82001, 1519526273822, '{"code":412,"msg":"手机号或验证码错误!"}', '2018-03-03 15:35:49.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520091550804, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":22628.1},"code":200,"msg":"success"}', '2018-03-03 15:39:10.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520173915650, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":27134.85},"code":200,"msg":"success"}', '2018-03-04 14:31:55.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520092224195, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":22628.1},"code":200,"msg":"success"}', '2018-03-03 15:50:24.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520092528119, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":22628.1},"code":200,"msg":"success"}', '2018-03-03 15:55:28.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520092670553, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":22628.1},"code":200,"msg":"success"}', '2018-03-03 15:57:50.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520173868568, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":26734.25},"code":200,"msg":"success"}', '2018-03-04 14:31:08.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520173870784, 82001, 1512216131855, '{"[]":[{"Table":{"TABLE_NAME":"apijson_privacy","TABLE_COMMENT":"用户隐私信息表。
对安全要求高,不想泄漏真实名称。对外名称为 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":"用户公开信息表。
对安全要求高,不想泄漏真实名称。对外名称为 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":"性别:
0-男
1-女"},{"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":"测试用例文档
后端开发者在测试好后,把选好的测试用例上传,这样就能共享给前端/客户端开发者"},"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
应该用adminId,只有当登录账户是管理员时才能操作文档。
需要先建Admin表,新增登录等相关接口。"},{"COLUMN_NAME":"version","COLUMN_TYPE":"tinyint(4)","IS_NULLABLE":"NO","COLUMN_COMMENT":"接口版本号
<=0 - 不限制版本,任意版本都可用这个接口
>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":"请求
用json格式会导致强制排序,而请求中引用赋值只能引用上面的字段,必须有序。"},{"COLUMN_NAME":"response","COLUMN_TYPE":"text","IS_NULLABLE":"YES","COLUMN_COMMENT":"标准返回结果JSON
用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":"类型
0-密码登录
1-验证码登录"},{"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。
权限注解也改下:
@MethodAccess(
PUT = {OWNER, ADMIN}
)
class Moment {
…
}
@MethodAccess(
PUT = {LOGIN, CONTACT, CIRCLE, OWNER, ADMIN}
)
class Praise {
…
}
"},"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":"最好编辑完后删除主键,这样就是只读状态,不能随意更改。需要更改就重新加上主键。
每次启动服务器时加载整个表到内存。
这个表不可省略,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可用任意结构访问任意开放内容,不需要这个字段。
其它的操作因为写入了结构和内容,所以都需要,按照不同的version选择对应的structure。
自动化版本管理:
Request JSON最外层可以传 “version”:Integer 。
1.未传或 <= 0,用最新版。 “@order”:”version-“
2.已传且 > 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":"测试记录
主要用于保存自动化接口回归测试"},"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":"类型:
0-登录
1-注册
2-修改登录密码
3-修改支付密码"},{"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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520173872976, 82001, 1511970224333, '{"User":{"code":200,"msg":"success","id":82001,"count":1},"code":200,"msg":"success"}', '2018-03-04 14:31:12.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520173873719, 82001, 1511970009072, '{"Moment":{"code":200,"msg":"success","id":1520173865791,"count":1},"code":200,"msg":"success"}', '2018-03-04 14:31:13.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520173875424, 82001, 1511969181104, '{"User":{"id":82001,"contactIdList+":[93793],"@role":"owner"},"code":409,"msg":"PUT User, contactIdList:93793 已存在!"}', '2018-03-04 14:31:15.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520173877914, 82001, 1511969630372, '{"Comment":{"code":200,"msg":"success","id":1520173865916,"count":1},"code":200,"msg":"success"}', '2018-03-04 14:31:17.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520173881709, 82001, 1511796208670, '{"code":408,"msg":"验证码已过期!"}', '2018-03-04 14:31:21.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520173883243, 82001, 1511689914599, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":26834.4},"code":200,"msg":"success"}', '2018-03-04 14:31:23.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520173922657, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":27235},"code":200,"msg":"success"}', '2018-03-04 14:32:02.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520173935008, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":27435.3},"code":200,"msg":"success"}', '2018-03-04 14:32:15.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520174017925, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":29939.05},"code":200,"msg":"success"}', '2018-03-04 14:33:37.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520174362871, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":30039.2},"code":200,"msg":"success"}', '2018-03-04 14:39:22.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520176947082, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":28699.05},"code":200,"msg":"success"}', '2018-03-04 15:22:27.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520177104344, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":28709.2},"code":200,"msg":"success"}', '2018-03-04 15:25:04.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520177328250, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":28809.35},"code":200,"msg":"success"}', '2018-03-04 15:28:48.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520680590422, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":28709.2},"code":200,"msg":"success"}', '2018-03-10 11:16:30.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520681233526, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":28809.35},"code":200,"msg":"success"}', '2018-03-10 11:27:13.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520681315261, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":28809.35},"code":200,"msg":"success"}', '2018-03-10 11:28:35.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520681493656, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":28809.35},"code":200,"msg":"success"}', '2018-03-10 11:31:33.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520681641244, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":28809},"code":200,"msg":"success"}', '2018-03-10 11:34:01.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520681770042, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":28808.5},"code":200,"msg":"success"}', '2018-03-10 11:36:10.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1520682742215, 82001, 1519526273822, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":28808},"code":200,"msg":"success"}', '2018-03-10 11:52:22.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1533140331684, 82001, 1521905895591, '{"Moment":{"code":200,"msg":"success","count":11},"code":200,"msg":"success"}', '2018-08-01 16:18:51.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1533140553624, 82001, 1521903828410, '{"User":{"code":200,"msg":"success","count":70},"code":200,"msg":"success"}', '2018-08-01 16:22:33.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1533140565380, 82001, 1511796208670, '{"Verify":{"code":200,"msg":"success","count":1},"code":200,"msg":"success"}', '2018-08-01 16:22:45.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1533140610051, 82001, 1511969630372, '{"Comment":{"code":200,"msg":"success","id":1533140601544,"count":1},"code":200,"msg":"success"}', '2018-08-01 16:23:30.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1533140615913, 82001, 1521905895591, '{"Moment":{"code":200,"msg":"success","count":19},"code":200,"msg":"success"}', '2018-08-01 16:23:35.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1533140617466, 82001, 1521905868719, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":9832.86},"code":200,"msg":"success"}', '2018-08-01 16:23:37.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1533140619001, 82001, 1521905680680, '{"Moment":{"code":200,"msg":"success","id":1533140610656,"count":1},"code":200,"msg":"success"}', '2018-08-01 16:23:39.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1533140629710, 82001, 1521903761689, '{"User":{"code":200,"msg":"success","count":117},"code":200,"msg":"success"}', '2018-08-01 16:23:49.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1533140662591, 82001, 1511970009072, '{"Moment":{"code":200,"msg":"success","id":1533140610716,"count":1},"code":200,"msg":"success"}', '2018-08-01 16:24:22.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1533140664191, 82001, 1511969630372, '{"Comment":{"code":200,"msg":"success","id":1533140610714,"count":1},"code":200,"msg":"success"}', '2018-08-01 16:24:24.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1533140668867, 82001, 1511689914599, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":9833.01},"code":200,"msg":"success"}', '2018-08-01 16:24:28.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1533396739099, 82001, 1511689914599, '{"Privacy":{"id":82001,"certified":1,"phone":13000082001,"balance":9835.11},"code":200,"msg":"success"}', '2018-08-04 15:32:19.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1534152309932, 82001, 1521905895591, '{"Moment":{"code":200,"msg":"success","count":9},"code":200,"msg":"success"}', '2018-08-13 09:25:09.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1534152344226, 82001, 1521903828410, '{"User":{"code":200,"msg":"success","count":71},"code":200,"msg":"success"}', '2018-08-13 09:25:44.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1534152350031, 82001, 1521903761689, '{"User":{"code":200,"msg":"success","count":118},"code":200,"msg":"success"}', '2018-08-13 09:25:50.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1534152388437, 82001, 1521905895591, '{"Moment":{"code":200,"msg":"success","count":10},"code":200,"msg":"success"}', '2018-08-13 09:26:28.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1537025798273, 82001, 1521903828410, '{"User":{"code":200,"msg":"success","count":72},"code":200,"msg":"success"}', '2018-09-15 15:36:38.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1537025799810, 82001, 1521903761689, '{"User":{"code":200,"msg":"success","count":119},"code":200,"msg":"success"}', '2018-09-15 15:36:39.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") VALUES (1538112310565, 82001, 1521905680680, '{"Moment":{"code":200,"msg":"success","id":1538112282445,"count":1},"code":200,"msg":"success"}', '2018-09-28 05:25:10.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
INSERT INTO sys."TestRecord" (id, "userId", "documentId", response, date, compare, standard, "randomId") 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.000000', null, null, 0);
CREATE TABLE sys."Verify"
(
id bigint PRIMARY KEY NOT NULL,
type integer NOT NULL,
phone varchar(11) NOT NULL,
verify varchar(32) NOT NULL,
date timestamp(6) DEFAULT CURRENT_TIMESTAMP NOT NULL
);
COMMENT ON COLUMN sys."Verify".id IS '唯一标识';
COMMENT ON COLUMN sys."Verify".type IS '类型:
0-登录
1-注册
2-修改登录密码
3-修改支付密码';
COMMENT ON COLUMN sys."Verify".phone IS '手机号';
COMMENT ON COLUMN sys."Verify".verify IS '验证码';
COMMENT ON COLUMN sys."Verify".date IS '创建时间';
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1527950171719, 1, '13000084444', '10375', '2018-06-02 14:36:11.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528250810515, 1, '15122820115', '2586', '2018-06-06 02:06:50.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528254139866, 1, '15225556855', '8912', '2018-06-06 03:02:19.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528255485691, 1, '15822798927', '2101', '2018-06-06 03:24:45.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528264687329, 1, '15620878773', '3991', '2018-06-06 05:58:07.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528269508031, 1, '18616024605', '4901', '2018-06-06 07:18:28.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528289406640, 1, '13142033348', '3005', '2018-06-06 12:50:06.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528327843188, 0, '15122820115', '4912', '2018-06-06 23:30:43.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528330720259, 2, '15122820115', '5267', '2018-06-07 00:18:40.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528339646013, 1, '15122541683', '6112', '2018-06-07 02:47:26.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528344962707, 1, '15188899797', '4540', '2018-06-07 04:16:02.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528345364195, 2, '15122541683', '10500', '2018-06-07 04:22:44.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528345372998, 0, '15122541683', '9940', '2018-06-07 04:22:53.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528356342784, 2, '15620878773', '2076', '2018-06-07 07:25:42.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528356449927, 1, '15620878772', '4733', '2018-06-07 07:27:29.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1528411937273, 0, '15620878772', '7375', '2018-06-07 22:52:17.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1531793525394, 1, '15629184762', '9737', '2018-07-17 02:12:05.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1531969702694, 1, '13800138000', '8213', '2018-07-19 03:08:22.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1531983017848, 2, '13800138000', '1552', '2018-07-19 06:50:17.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1532188103364, 1, '13977757845', '8753', '2018-07-21 15:48:23.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1532439015405, 1, '18779607703', '10136', '2018-07-24 13:30:15.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1533450371245, 1, '18911061423', '5795', '2018-08-05 06:26:11.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1533618759900, 1, '13977757843', '10204', '2018-08-07 05:12:39.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1533627819054, 1, '13107695518', '7515', '2018-08-07 07:43:39.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1533693421836, 1, '15901373410', '4884', '2018-08-08 01:57:01.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1533698902309, 1, '18664900086', '3654', '2018-08-08 03:28:22.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1533723898511, 1, '8881816', '5272', '2018-08-08 10:24:58.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1533835163777, 1, '13977757846', '9332', '2018-08-09 17:19:23.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1534142797624, 2, '13977757845', '4136', '2018-08-13 06:46:37.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1534142802751, 0, '13977757845', '5754', '2018-08-13 06:46:42.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1534671951719, 1, '13000082023', '5869', '2018-08-19 09:45:51.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1534671960833, 1, '13000082013', '6169', '2018-08-19 09:46:00.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1534671980295, 1, '13000082032', '10171', '2018-08-19 09:46:20.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1534672028733, 0, '13000093793', '6478', '2018-08-19 09:47:08.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1534898613829, 1, '17755531490', '3961', '2018-08-22 00:43:33.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1534926287534, 1, '17602120205', '5297', '2018-08-22 08:24:47.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1535345181813, 1, '13000082022', '8145', '2018-08-27 04:46:21.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1536220749108, 1, '13241042199', '9916', '2018-09-06 07:59:09.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1536583466723, 1, '18013819609', '2483', '2018-09-10 12:44:26.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1536805630726, 0, '13000070793', '1798', '2018-09-13 02:27:10.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1537515268266, 2, '13000038710', '4171', '2018-09-21 07:34:28.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1537515280163, 2, '13000038713', '5877', '2018-09-21 07:34:40.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1537515287973, 2, '13000038714', '10441', '2018-09-21 07:34:47.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1537515337629, 1, '13000033333', '7353', '2018-09-21 07:35:37.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1537521279290, 1, '13000049499', '2854', '2018-09-21 09:14:39.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1538114970328, 1, '15855512382', '10359', '2018-09-28 06:09:30.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1538504245612, 1, '13000087654', '10791', '2018-10-02 18:17:25.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1538504485798, 1, '13000087655', '4776', '2018-10-02 18:21:25.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1538987940551, 1, '18662327672', '1800', '2018-10-08 08:39:00.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1539076064496, 1, '15094295280', '3361', '2018-10-09 09:07:44.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1539076102284, 1, '15094395280', '1562', '2018-10-09 09:08:22.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1540364623910, 1, '13000085001', '4382', '2018-10-24 07:03:43.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1540966375865, 1, '13122091271', '3880', '2018-10-31 06:12:55.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1541427928139, 0, '13759127249', '5913', '2018-11-05 14:25:28.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1541500666143, 1, '15280239960', '9142', '2018-11-06 10:37:46.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1541510152560, 1, '13000099999', '1097', '2018-11-06 13:15:52.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1541510270190, 1, '13000077777', '8192', '2018-11-06 13:17:50.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1541583746916, 1, '18689846285', '8724', '2018-11-07 09:42:26.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1541724338244, 0, '13000038710', '8283', '2018-11-09 00:45:38.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1541757538733, 1, '17717112856', '2268', '2018-11-09 09:58:58.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1542261432641, 1, '15800506515', '2586', '2018-11-15 05:57:12.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1542265654497, 1, '18010001000', '5666', '2018-11-15 07:07:34.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1542337959344, 1, '13000012345', '4981', '2018-11-16 03:12:39.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1542352629436, 1, '13000082002', '10212', '2018-11-16 07:17:09.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1542548523509, 1, '13317833374', '8921', '2018-11-18 13:42:03.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1542702268195, 1, '123123', '8055', '2018-11-20 08:24:28.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1542840424025, 1, '13818118257', '7126', '2018-11-21 22:47:04.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1543377157089, 1, '18622250185', '6620', '2018-11-28 03:52:37.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1543966631575, 1, '13466260815', '5835', '2018-12-04 23:37:11.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1544276193603, 1, '13000087656', '4078', '2018-12-08 13:36:33.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1544276277509, 2, '13000087656', '9356', '2018-12-08 13:37:57.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1544276305800, 0, '13000087656', '8708', '2018-12-08 13:38:25.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1544276475231, 1, '15988125475', '8940', '2018-12-08 13:41:15.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1544503797981, 1, '13000082968', '6965', '2018-12-11 04:49:57.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1545238881566, 1, '13166059778', '4434', '2018-12-19 17:01:21.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1545269417538, 1, '18124099720', '4882', '2018-12-20 01:30:17.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1545464407106, 1, '17755015200', '3870', '2018-12-22 07:40:07.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1545707514503, 1, '13533039558', '3941', '2018-12-25 03:11:54.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1545895656481, 1, '13533039550', '4968', '2018-12-27 07:27:36.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1546701633801, 1, '13534201057', '8487', '2019-01-05 15:20:33.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1547177422559, 1, '18980210241', '7012', '2019-01-11 03:30:22.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1548068010027, 1, '17181595855', '10716', '2019-01-21 10:53:30.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1548310439111, 1, '13059203278', '9438', '2019-01-24 06:13:59.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1548398132694, 1, '15050529772', '9276', '2019-01-25 06:35:32.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1548742004597, 1, '13738007826', '6318', '2019-01-29 06:06:44.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1548742060130, 1, '13000082001', '8387', '2019-01-29 06:07:40.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1548742124507, 6, '13000082001', '4901', '2019-01-29 06:08:44.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1548742151361, 10, '13000082001', '8513', '2019-01-29 06:09:11.000000');
INSERT INTO sys."Verify" (id, type, phone, verify, date) VALUES (1549548031095, 4, '13000082001', '1234', '2019-09-14 22:00:31.115000'); |
-- @testpoint:opengauss关键字numstr(非保留),作为模式名
--关键字不带引号-成功
drop schema if exists numstr;
create schema numstr;
drop schema numstr;
--关键字带双引号-成功
drop schema if exists "numstr";
create schema "numstr";
drop schema "numstr";
--关键字带单引号-合理报错
drop schema if exists 'numstr';
create schema 'numstr';
--关键字带反引号-合理报错
drop schema if exists `numstr`;
create schema `numstr`;
|
<filename>Database.sql
/*
SQLyog Ultimate v11.11 (64 bit)
MySQL - 5.5.5-10.1.30-MariaDB : Database - bhl
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!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 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`bhl` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */;
USE `bhl`;
/*Table structure for table `ki_admin` */
DROP TABLE IF EXISTS `ki_admin`;
CREATE TABLE `ki_admin` (
`admin_id` int(11) NOT NULL AUTO_INCREMENT,
`remitterId` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`remitterName` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`email` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`user_name` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
`password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`remitterAddress` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
`remitterCity` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`remitterCountry` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`remitterDateIssue` date DEFAULT NULL,
`remitterDateExpiry` date DEFAULT NULL,
`remitterNationality` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`remitterDob` date DEFAULT NULL,
`remitterPhone` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`is_active` tinyint(1) DEFAULT NULL COMMENT '1 = "active", 0 = "inactive"',
PRIMARY KEY (`admin_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `ki_admin` */
insert into `ki_admin`(`admin_id`,`remitterId`,`remitterName`,`email`,`user_name`,`password`,`remitterAddress`,`remitterCity`,`remitterCountry`,`remitterDateIssue`,`remitterDateExpiry`,`remitterNationality`,`remitterDob`,`remitterPhone`,`is_active`) values (1,'Naeem',NULL,'<EMAIL>','admin','<KEY>NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1),(4,'XYZ','Naeem','<EMAIL>','Naeem','45c43d0dbeac1af0e247a9eb9e786cb330f477967e4d58db034f336cadb25ff41f23a16509a3b63da404b946042986ef4bec7f45b34557ca1ceae657817da8d2IIuqiMFtdJCvj7Jsem16Y3Dbvm3nDpAINWbTa83/+Qo=','Street 112','Islamabd','Pakistan','2020-10-06','2020-10-06','Pakistan','2000-09-08','03348295371',1);
/*Table structure for table `ki_beneficiary_detail` */
DROP TABLE IF EXISTS `ki_beneficiary_detail`;
CREATE TABLE `ki_beneficiary_detail` (
`bene_id` int(20) NOT NULL AUTO_INCREMENT,
`fk_admin_id` int(20) DEFAULT NULL,
`reference_number` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`valueDate` date DEFAULT NULL,
`fk_benType_id` int(5) DEFAULT NULL,
`beneficiaryName` varchar(120) COLLATE utf8_unicode_ci DEFAULT NULL,
`beneficiaryIdNumber` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL,
`transactionAmountPkr` double DEFAULT NULL,
`transactionCurrencyCode` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`transactionAmount` double DEFAULT NULL,
`fk_deliveryMode_id` int(20) DEFAULT NULL,
`transactionDate` date DEFAULT NULL,
`beneficiaryBank` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`beneficiaryBranchName` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`beneficiaryAccountNumber` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`beneficiaryAddress` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`beneficiaryCity` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`beneficiaryCountry` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`beneficiaryPhone` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`purposeTransaction` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`sourceOfIncome` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`transactionOriginatorName` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
`iban` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`bene_id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `ki_beneficiary_detail` */
insert into `ki_beneficiary_detail`(`bene_id`,`fk_admin_id`,`reference_number`,`valueDate`,`fk_benType_id`,`beneficiaryName`,`beneficiaryIdNumber`,`transactionAmountPkr`,`transactionCurrencyCode`,`transactionAmount`,`fk_deliveryMode_id`,`transactionDate`,`beneficiaryBank`,`beneficiaryBranchName`,`beneficiaryAccountNumber`,`beneficiaryAddress`,`beneficiaryCity`,`beneficiaryCountry`,`beneficiaryPhone`,`purposeTransaction`,`sourceOfIncome`,`transactionOriginatorName`,`iban`,`status`) values (1,4,'bJOgo','2020-10-16',1,'Muneeb','16101-5555551-1',100000,'AUS',1000,1,'2020-10-07','MCb','F10','000000083','street 150','Pindi','Pakistansss','04545121584','Loan Payment','Business','Khalako Khan','IBAN00005511546',1);
/*Table structure for table `ki_benificiarytype` */
DROP TABLE IF EXISTS `ki_benificiarytype`;
CREATE TABLE `ki_benificiarytype` (
`benType_id` int(5) NOT NULL AUTO_INCREMENT,
`benType_name` varchar(10) COLLATE utf8_unicode_ci DEFAULT NULL,
`benType_status` tinyint(1) DEFAULT NULL,
PRIMARY KEY (`benType_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `ki_benificiarytype` */
insert into `ki_benificiarytype`(`benType_id`,`benType_name`,`benType_status`) values (1,'CNIC',1),(2,'Passport',1),(3,'Other',1);
/*Table structure for table `ki_ci_sessions` */
DROP TABLE IF EXISTS `ki_ci_sessions`;
CREATE TABLE `ki_ci_sessions` (
`id` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
`ip_address` varchar(45) COLLATE utf8_unicode_ci NOT NULL,
`timestamp` int(10) unsigned NOT NULL DEFAULT '0',
`data` blob NOT NULL,
KEY `ci_sessions_timestamp` (`timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `ki_ci_sessions` */
insert into `ki_ci_sessions`(`id`,`ip_address`,`timestamp`,`data`) values ('eqgn9qrjqmj3293ioscj3q70qflq1ip5','127.0.0.1',1572004246,'__ci_last_regenerate|i:1572004246;'),('rul7c9vhrt8glsp818d60497s49dnllc','127.0.0.1',1572004718,'__ci_last_regenerate|i:1572004718;'),('cbied0j1cf3c8u0sj7aha874a1hkssjg','127.0.0.1',1572004721,'__ci_last_regenerate|i:1572004718;'),('gim1lcaqo0v11ium8joiefampqcjugpf','127.0.0.1',1572017085,'__ci_last_regenerate|i:1572017085;'),('ieganvt92ubo2afme4dab9ubd0dl3t1a','127.0.0.1',1572017428,'__ci_last_regenerate|i:1572017428;'),('2u2p4h3kjddv3j2tdfpa91jedf39lnie','127.0.0.1',1572017780,'__ci_last_regenerate|i:1572017780;'),('5ciasp6qt46uiclaecifnjrhg48jf8ha','127.0.0.1',1572018301,'__ci_last_regenerate|i:1572018301;'),('pd0kc1fbpof9525ksbf4usidtthatmpr','127.0.0.1',1572018713,'__ci_last_regenerate|i:1572018713;'),('h0f3m9lvdresuu921lqh42ssae0jp1i4','127.0.0.1',1572019070,'__ci_last_regenerate|i:1572019070;'),('4jqaqgk5k8p77s639fr71nskvhnea2ul','127.0.0.1',1572019397,'__ci_last_regenerate|i:1572019397;'),('rd96op1565chv3hpff6ivrkc3lth04jt','127.0.0.1',1572019816,'__ci_last_regenerate|i:1572019816;'),('6rrdbs67cli1vesrqst75bffhg15k7vg','127.0.0.1',1572019872,'__ci_last_regenerate|i:1572019816;'),('ets7hbag4e9n910co7ibkg0srnenlbf3','127.0.0.1',1574242460,'__ci_last_regenerate|i:1574242419;'),('gukubjkqk8nqo13pq5hmrur1n80mrd18','127.0.0.1',1599801525,'__ci_last_regenerate|i:1599801525;email|s:21:\"<EMAIL>\";user_name|s:12:\"<NAME>\";admin_id|s:1:\"1\";type|s:9:\"Gandharan\";'),('qngup9jcu5bfeg5oarqkkufqi6971sg3','127.0.0.1',1599801525,'__ci_last_regenerate|i:1599801525;'),('aejlnf32nsk3dki6b2gh3j8901d4cdcd','127.0.0.1',1600407154,'__ci_last_regenerate|i:1600407154;'),('hpop0grl16ql6lubcvo0l0u6safb7ufg','127.0.0.1',1600407316,'__ci_last_regenerate|i:1600407305;'),('p1c6jkpme3joip2n29a2032cbjmbh136','127.0.0.1',1600407311,'__ci_last_regenerate|i:1600407311;'),('bu7eqk87akhhs58d5lgl0bmgbn0c8tub','127.0.0.1',1600409333,'__ci_last_regenerate|i:1600409333;'),('ihban7jl5t6cl1s0f91cn4ofgpph21jc','127.0.0.1',1600409824,'__ci_last_regenerate|i:1600409824;'),('krna7olno48ab4m199koik86cpcbph2n','127.0.0.1',1600413819,'__ci_last_regenerate|i:1600413819;'),('9of488lva3r32tr5lq9f7q2maeeei370','127.0.0.1',1600414249,'__ci_last_regenerate|i:1600414249;'),('n4mpvvdl32qu51uh23dat0t2kgq4gc83','127.0.0.1',1600414840,'__ci_last_regenerate|i:1600414840;'),('9pot6tahadggshkjl7sqjfbddtdk0spu','127.0.0.1',1600415171,'__ci_last_regenerate|i:1600415171;'),('on75894b7imdp1e72r9gt55o5i5t68u9','127.0.0.1',1600416418,'__ci_last_regenerate|i:1600416418;'),('4007rlrcl3096cp0orjj9f1f9s4cj82k','127.0.0.1',1600416723,'__ci_last_regenerate|i:1600416723;'),('68gs7hfmagvbq5lqorm8rmpo3njuu6em','127.0.0.1',1600417281,'__ci_last_regenerate|i:1600417281;'),('vn2pg2c55mojpvrm28dciq6b9jkb7kli','127.0.0.1',1600424316,'__ci_last_regenerate|i:1600424316;'),('d362eeh0kajtfjjsif377ssde4ahc54e','127.0.0.1',1600424708,'__ci_last_regenerate|i:1600424708;'),('4hs8nq9t8rrsge81hdasson9urffa0la','127.0.0.1',1600425697,'__ci_last_regenerate|i:1600425697;'),('49ggevhkc44fql5hi4kiqee5q8vlmvt7','127.0.0.1',1600425741,'__ci_last_regenerate|i:1600425697;'),('b5ieprqvrceudani7is158u5d9811rfe','127.0.0.1',1600434081,'__ci_last_regenerate|i:1600433794;'),('m1fkvk067k5su8k3e2ul4ck27o9lhp5h','127.0.0.1',1600688887,'__ci_last_regenerate|i:1600688887;'),('ogemcfg91fm999hkia19hkfqf7p19hdu','127.0.0.1',1600688887,'__ci_last_regenerate|i:1600688887;'),('igiv3qj0njdk33brjgpb7kecrf9ailkl','127.0.0.1',1600959780,'__ci_last_regenerate|i:1600959780;'),('12t13hnfb1t095gv5spgfm4vitgduup3','127.0.0.1',1600959780,'__ci_last_regenerate|i:1600959780;'),('hvtsf4dmcocvt3ungl1vf7rncppcupl7','127.0.0.1',1601022053,'__ci_last_regenerate|i:1601022053;'),('ckk5k4bk6b6ais6dtkp528pdh36dm3qh','127.0.0.1',1601269922,'__ci_last_regenerate|i:1601269922;'),('b5tvrvrs0foiu4kci5he5r6to26cnc0p','127.0.0.1',1601271228,'__ci_last_regenerate|i:1601271228;'),('hun8nln6si01p57dkn7pbhdud826khsn','127.0.0.1',1601271567,'__ci_last_regenerate|i:1601271567;'),('ehuhjc9gnco2avv8jg9tjd3fm54c3djf','127.0.0.1',1601272355,'__ci_last_regenerate|i:1601272355;'),('6p37bfac8vj5kj4ct2d817j88p1iaf4t','127.0.0.1',1601272364,'__ci_last_regenerate|i:1601272355;'),('gs03bda2i01i4257gmpun7c52b0ird0p','127.0.0.1',1601280969,'__ci_last_regenerate|i:1601280969;sign_in_redirect|s:15:\"admin/dashboard\";'),('u8iiu12n59st2kt7pbpaupqlgul794mg','127.0.0.1',1601282373,'__ci_last_regenerate|i:1601282373;email|s:21:\"<EMAIL>\";user_name|N;admin_id|N;sign_in_redirect|s:15:\"admin/dashboard\";'),('f72vkqbslb4q55mumr4nchof32ji0ak8','127.0.0.1',1601284244,'__ci_last_regenerate|i:1601284244;email|s:21:\"<EMAIL>\";user_name|N;admin_id|N;sign_in_redirect|s:15:\"admin/dashboard\";'),('il6rl14ll0hlnvap29tbsqk4opf4ncn9','127.0.0.1',1601284938,'__ci_last_regenerate|i:1601284938;email|s:21:\"<EMAIL>\";user_name|N;admin_id|N;sign_in_redirect|s:15:\"admin/dashboard\";'),('bg4cneormc8t2g0dn5nmloid2dordmmv','127.0.0.1',1601285255,'__ci_last_regenerate|i:1601285255;email|s:21:\"<EMAIL>\";user_name|s:5:\"Naeem\";admin_id|s:1:\"6\";sign_in_redirect|s:15:\"admin/dashboard\";'),('bguiq6r3qk19aa32851l8565eipnvk06','127.0.0.1',1601291962,'__ci_last_regenerate|i:1601291962;email|s:21:\"<EMAIL>\";user_name|s:5:\"Naeem\";admin_id|s:1:\"6\";sign_in_redirect|s:15:\"admin/dashboard\";'),('tc64h2jcvaim4sijckf19dn5l78lp3es','127.0.0.1',1601291962,'__ci_last_regenerate|i:1601291962;email|s:21:\"<EMAIL>\";user_name|s:5:\"Naeem\";admin_id|s:1:\"6\";sign_in_redirect|s:15:\"admin/dashboard\";'),('v6gcunaf0hc4r7ki0fsi2rau0fhplfdm','127.0.0.1',1601356060,'__ci_last_regenerate|i:1601356059;sign_in_redirect|s:15:\"admin/dashboard\";'),('s69irrocl6s1mmpmv1unghvbhhs198hp','127.0.0.1',1601379234,'__ci_last_regenerate|i:1601379234;'),('r6rf3gcsf9hupr0mu6c7fvdt21o6sq8c','127.0.0.1',1601379245,'__ci_last_regenerate|i:1601379234;'),('cn2fh6vmoupvcfk9sshrkobk7j80tels','127.0.0.1',1601880785,'__ci_last_regenerate|i:1601880784;sign_in_redirect|s:15:\"admin/dashboard\";'),('e4v7gvm7cgfkoap2fdboun8mrmfc9toq','127.0.0.1',1601968596,'__ci_last_regenerate|i:1601968596;success_msg|s:46:\"<strong>Success!</strong> Successfully Message\";__ci_vars|a:1:{s:11:\"success_msg\";s:3:\"old\";}email|s:19:\"<EMAIL>\";user_name|s:5:\"Naeem\";admin_id|s:1:\"3\";'),('5fj5f73n3dljkat7mlg9u1m4jog412ob','127.0.0.1',1601970359,'__ci_last_regenerate|i:1601970359;email|s:19:\"<EMAIL>\";user_name|s:5:\"Naeem\";admin_id|s:1:\"4\";success_msg|s:46:\"<strong>Success!</strong> Successfully Message\";__ci_vars|a:1:{s:11:\"success_msg\";s:3:\"old\";}'),('s9qa4lth909tkv4gbqpb564ko588us99','127.0.0.1',1601971896,'__ci_last_regenerate|i:1601971896;email|s:19:\"<EMAIL>\";user_name|s:5:\"Naeem\";admin_id|s:1:\"4\";'),('6shg1v60kkv7cq4r30so71mt236t5ucv','127.0.0.1',1601972201,'__ci_last_regenerate|i:1601972201;'),('76e7on1jpj3u1og2uocftii8hf3girfd','127.0.0.1',1601973918,'__ci_last_regenerate|i:1601973918;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('1aim0ku81mibpk6mfdhnqsv6ld2a8dur','127.0.0.1',1601977366,'__ci_last_regenerate|i:1601977366;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('p12as92a04n85kknr8hooep7ncnouf6h','127.0.0.1',1601977370,'__ci_last_regenerate|i:1601977366;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('9uq1pi6or9dl4d2e2m9c643d5jk72e7t','127.0.0.1',1602049565,'__ci_last_regenerate|i:1602049564;sign_in_redirect|s:15:\"admin/dashboard\";'),('a3g3bnkh9lm6gmc577abu7so9thaj6es','127.0.0.1',1602058205,'__ci_last_regenerate|i:1602058205;'),('d9n7m5sjvr9td5vl35ugf7vsqaavcglq','127.0.0.1',1602839295,'__ci_last_regenerate|i:1602839164;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('4vasif43jkj0r5vhb7r38lnckcmskdpo','127.0.0.1',1605072406,'__ci_last_regenerate|i:1605072155;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('gi04blu2t9vna7o7qbg00bmca65imvpt','127.0.0.1',1605081714,'__ci_last_regenerate|i:1605081714;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('4rmvmch4ukb06mklu9im8ub3fb39irhh','127.0.0.1',1605082050,'__ci_last_regenerate|i:1605082050;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('3fhol9jri4qr0dp4o1lj7cc15sm2d7oh','127.0.0.1',1605084456,'__ci_last_regenerate|i:1605084456;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('e4tti892v0rfu6hdc81h0bol1551ubhh','127.0.0.1',1605084546,'__ci_last_regenerate|i:1605084456;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('sug6pmst9qrpdgrscikgl1p7f9h3fid6','127.0.0.1',1605246650,'__ci_last_regenerate|i:1605246650;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('ncmk8cbmpdq7n5bcgfmet73g2o6d3bcj','127.0.0.1',1605246650,'__ci_last_regenerate|i:1605246650;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('fb6gnlp5odv2229m3p4ukfssaul81thq','127.0.0.1',1605258150,'__ci_last_regenerate|i:1605258150;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('vj62k3bv5s72vp7q8uhjob6h9rgarutq','127.0.0.1',1605258910,'__ci_last_regenerate|i:1605258910;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('dbe45lkmetvhlqs2kja6a9q96rpjk0u5','127.0.0.1',1605260270,'__ci_last_regenerate|i:1605260270;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('s9e8ud5ji4peoufsif0okklipmb7sm3f','127.0.0.1',1605260616,'__ci_last_regenerate|i:1605260616;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('r09d0i67cvp9e1mn7ejsb4s42ssqt5sv','127.0.0.1',1605260917,'__ci_last_regenerate|i:1605260917;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('akk1crv5cfeq4cjgfvhfcc4k91e3qi4p','127.0.0.1',1605261351,'__ci_last_regenerate|i:1605261351;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('kci4p1ft47ll2212l9qef6me8i30ojkd','127.0.0.1',1605261730,'__ci_last_regenerate|i:1605261730;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('sntg7ddm5as1nrsfa4s2ptf6r11cgu95','127.0.0.1',1605262049,'__ci_last_regenerate|i:1605262049;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('9d3nhasd6uscuq0k1g3soom8f40a3dei','127.0.0.1',1605262385,'__ci_last_regenerate|i:1605262385;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('nb2e2uacfpqnqasnf16j0imlml5h9g1c','127.0.0.1',1605263453,'__ci_last_regenerate|i:1605263453;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('lma7jaen6d033cssug86dvpdhihjapeo','127.0.0.1',1605264156,'__ci_last_regenerate|i:1605264156;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('0dp9phe8nfec9olop1elk70m4b9ndeg5','127.0.0.1',1605264344,'__ci_last_regenerate|i:1605264156;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('j9tg7sp4gt5n47el9gcsrcfj6moaq8do','127.0.0.1',1605511934,'__ci_last_regenerate|i:1605511934;'),('n8b3a7iimnh93g52d37qg4h6sar87eok','127.0.0.1',1605512278,'__ci_last_regenerate|i:1605512278;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('jm06vvekpqrt5o5857gk6m3pcheo9r75','127.0.0.1',1605512641,'__ci_last_regenerate|i:1605512641;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('5im3irmra22ffda80in7gp8n5a0i2dar','127.0.0.1',1605513242,'__ci_last_regenerate|i:1605513242;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('bqht8c7ptaj3jkq24ejs0vs1cjtje3tl','127.0.0.1',1605513561,'__ci_last_regenerate|i:1605513561;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('aobmqh79mped8ll3dlrilt6deq2jrq0d','127.0.0.1',1605515649,'__ci_last_regenerate|i:1605515649;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('en6dfl5u4omf7qrampg5frqt4c4vv3fp','127.0.0.1',1605519079,'__ci_last_regenerate|i:1605519079;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('md8b7qls5aqqmbst1du5a505qfbvilu7','127.0.0.1',1605524735,'__ci_last_regenerate|i:1605524735;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('cc20agmspcccevsql852d2cc93gu2536','127.0.0.1',1605526477,'__ci_last_regenerate|i:1605526477;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('ns8ac496lfgulr92i0jn7aohhgif4fl8','127.0.0.1',1605526479,'__ci_last_regenerate|i:1605526477;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('lgi9t2qqbprit10r24ao84nlguefme9p','127.0.0.1',1605596243,'__ci_last_regenerate|i:1605596243;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";'),('nmiruti84v4t992usrif0grdpbi3kfkl','127.0.0.1',1605596243,'__ci_last_regenerate|i:1605596243;email|s:19:\"<EMAIL>\";user_name|s:5:\"admin\";admin_id|s:1:\"1\";');
/*Table structure for table `ki_deliverymode` */
DROP TABLE IF EXISTS `ki_deliverymode`;
CREATE TABLE `ki_deliverymode` (
`mode_id` int(11) NOT NULL AUTO_INCREMENT,
`mode_name` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL,
`status` tinyint(1) DEFAULT NULL COMMENT '1:Active, 0:Inactive',
PRIMARY KEY (`mode_id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*Data for the table `ki_deliverymode` */
insert into `ki_deliverymode`(`mode_id`,`mode_name`,`status`) values (1,'Cash',1),(2,'Credit to BAHL ',1),(3,'Credit Other Bank’s ',1);
/*Table structure for table `ki_settings` */
DROP TABLE IF EXISTS `ki_settings`;
CREATE TABLE `ki_settings` (
`setting_id` int(10) NOT NULL AUTO_INCREMENT,
`name` varchar(300) DEFAULT '',
`value` text,
`description` varchar(500) DEFAULT '',
PRIMARY KEY (`setting_id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
/*Data for the table `ki_settings` */
insert into `ki_settings`(`setting_id`,`name`,`value`,`description`) values (1,'company_name','Irfan Behsodi and Company',''),(2,'company_email','<EMAIL>',''),(3,'company_address','Civil Secretariat, Peshawar, Khyber Pakhtunkhwa',''),(4,'company_mobile','+92 334 8295371',''),(7,'facebook_page','',''),(9,'google_plus_page','',''),(16,'twitter_page','',''),(17,'linkedin_page','asdsad','asdasdsad'),(18,'instagram_page',NULL,''),(19,'timings','Monday To Sunday:10 Am-5pm','');
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
<reponame>Howard86/line-blockchain
-- CreateTable
CREATE TABLE "User" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"lineUserId" TEXT NOT NULL,
"displayName" TEXT NOT NULL,
"profileUrl" TEXT NOT NULL,
"statusMessage" TEXT NOT NULL,
"createdAt" DATETIME NOT NULL,
"updatedAt" DATETIME NOT NULL
);
-- CreateIndex
CREATE UNIQUE INDEX "User.lineUserId_unique" ON "User"("lineUserId");
|
SELECT FirstName, LastName FROM Employees
WHERE LEN(LastName) = 5 |
<filename>fastfood.sql
-- phpMyAdmin SQL Dump
-- version 4.2.10
-- http://www.phpmyadmin.net
--
-- Client : localhost:8889
-- Généré le : Mer 18 Mars 2015 à 17:18
-- Version du serveur : 5.5.38
-- Version de PHP : 5.6.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Base de données : `fastfood`
--
-- --------------------------------------------------------
--
-- Structure de la table `Categorie`
--
CREATE TABLE `Categorie` (
`IDCATEGORIE` int(2) NOT NULL,
`LIBELLECAT` char(255) DEFAULT NULL,
`image` varchar(40) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `Categorie`
--
INSERT INTO `Categorie` (`IDCATEGORIE`, `LIBELLECAT`, `image`) VALUES
(1, 'Boisson', ''),
(2, 'Accompagnement', ''),
(3, 'Hamburger', ''),
(4, 'Dessert', ''),
(5, 'Salade', '');
-- --------------------------------------------------------
--
-- Structure de la table `Commande`
--
CREATE TABLE `Commande` (
`IDCOMMANDE` int(2) NOT NULL,
`HEURERECUP` time DEFAULT NULL,
`ETATCOMMANDE` char(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `CommandeMenu`
--
CREATE TABLE `CommandeMenu` (
`IDCOMMANDE` int(2) NOT NULL,
`IDMENU` int(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `CommandeProdHorsMenu`
--
CREATE TABLE `CommandeProdHorsMenu` (
`IDCOMMANDE` int(2) NOT NULL,
`IdProduit` int(2) NOT NULL,
`quantiteprod` bigint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `Compose`
--
CREATE TABLE `Compose` (
`IdProduit` int(2) NOT NULL,
`LibelleProd` char(32) NOT NULL,
`PrixUnitProduit` decimal(10,2) NOT NULL,
`TypeUnit` char(32) NOT NULL,
`SeuilPrep` int(2) NOT NULL,
`TpsConso` time NOT NULL,
`Image` longblob
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `Compose`
--
INSERT INTO `Compose` (`IdProduit`, `LibelleProd`, `PrixUnitProduit`, `TypeUnit`, `SeuilPrep`, `TpsConso`, `Image`) VALUES
(3, 'Big Krac', 4.50, '', 4, '01:00:00', NULL),
(11, 'Fish', 4.00, '', 2, '00:30:00', NULL),
(12, 'Cheese', 4.50, '', 4, '00:30:00', NULL),
(13, 'Farmer', 4.50, '', 3, '00:30:00', NULL),
(14, 'Salade de Fruits', 2.50, '', 3, '10:00:00', NULL),
(18, 'César', 4.50, '', 2, '01:00:00', NULL),
(19, 'Campagnarde', 5.00, '', 1, '02:00:00', NULL);
-- --------------------------------------------------------
--
-- Structure de la table `Contient`
--
CREATE TABLE `Contient` (
`IdProduit` int(2) NOT NULL,
`IdIngredient` int(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `Defini`
--
CREATE TABLE `Defini` (
`IDMENU` int(2) NOT NULL,
`IdResto` int(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `DemandeReappro`
--
CREATE TABLE `DemandeReappro` (
`IdResto` int(2) NOT NULL,
`IdProduit` int(2) NOT NULL,
`IdIngredient` int(2) NOT NULL,
`quantitereappro` bigint(4) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `Formule`
--
CREATE TABLE `Formule` (
`IDCATEGORIE` int(2) NOT NULL,
`IDMENU` int(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Contenu de la table `Formule`
--
INSERT INTO `Formule` (`IDCATEGORIE`, `IDMENU`) VALUES
(1, 1),
(2, 1),
(3, 1),
(1, 2),
(2, 2),
(3, 2),
(4, 2),
(1, 4),
(5, 4);
-- --------------------------------------------------------
--
-- Structure de la table `Ingredient`
--
CREATE TABLE `Ingredient` (
`IdIngredient` int(2) NOT NULL,
`LibelleIngr` char(255) NOT NULL,
`SeuilStock` int(2) NOT NULL,
`Stock` int(2) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `Ingredient`
--
INSERT INTO `Ingredient` (`IdIngredient`, `LibelleIngr`, `SeuilStock`, `Stock`) VALUES
(1, 'Pain', 100, 66),
(2, 'Tomate', 30, 46),
(3, '<NAME>', 60, 78),
(4, 'Cheddar', 50, 70),
(5, 'Bacon', 49, 66),
(6, 'Salade', 15, 35),
(7, '<NAME>', 45, 78),
(8, 'Oignon', 20, 30);
-- --------------------------------------------------------
--
-- Structure de la table `Manager`
--
CREATE TABLE `Manager` (
`idManager` int(2) NOT NULL,
`IdResto` int(2) NOT NULL,
`nom` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`login` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`mdp` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `Menu`
--
CREATE TABLE `Menu` (
`IDMENU` int(2) NOT NULL,
`LIBELLEMENU` char(255) DEFAULT NULL,
`PRIXUNITMENU` decimal(4,2) NOT NULL,
`image` varchar(40) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `Menu`
--
INSERT INTO `Menu` (`IDMENU`, `LIBELLEMENU`, `PRIXUNITMENU`, `image`) VALUES
(1, '<NAME>', 7.00, 'img/menu1.jpg'),
(2, '<NAME>', 8.00, 'img/menu1.jpg'),
(4, 'Vegetarien', 6.00, 'saladeceaser.png');
-- --------------------------------------------------------
--
-- Structure de la table `Preparation`
--
CREATE TABLE `Preparation` (
`Idprep` int(2) NOT NULL,
`IdProduit` int(2) NOT NULL,
`HeureDebut` time NOT NULL,
`HeureDispo` time NOT NULL,
`Dispo` tinyint(1) NOT NULL,
`HeureFin` time NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `ProdAuxChoixDansMenu`
--
CREATE TABLE `ProdAuxChoixDansMenu` (
`IDMENU` int(2) NOT NULL,
`IdProduit` int(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `Produit`
--
CREATE TABLE `Produit` (
`IdProduit` int(2) NOT NULL,
`IDCATEGORIE` int(2) NOT NULL,
`LibelleProd` char(32) NOT NULL,
`PrixUnitProduit` decimal(10,2) NOT NULL,
`TypeUnit` char(32) NOT NULL,
`SeuilPrep` int(2) NOT NULL,
`TpsConso` time NOT NULL,
`Image` varchar(40) DEFAULT NULL
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `Produit`
--
INSERT INTO `Produit` (`IdProduit`, `IDCATEGORIE`, `LibelleProd`, `PrixUnitProduit`, `TypeUnit`, `SeuilPrep`, `TpsConso`, `Image`) VALUES
(1, 1, 'Coca-Cola', 2.50, 'ml', 0, '00:30:00', 'img/coca.jpg'),
(2, 2, '<NAME>', 3.00, 'g', 6, '00:30:00', 'img/frite.jpg'),
(3, 3, '<NAME>', 4.50, '', 4, '01:00:00', 'img/bigkrac.jpg'),
(4, 1, 'Coca-Cola light', 2.50, 'ml', 0, '00:30:00', 'img/cocal.jpg'),
(5, 1, 'Coca-Cola zero', 2.50, 'ml', 0, '00:30:00', 'img/cocaz.jpg'),
(6, 1, '<NAME>', 2.50, 'ml', 0, '00:30:00', 'img/orange.jpg'),
(7, 1, 'Perrier', 2.50, 'ml', 0, '00:30:00', 'img/per.png'),
(8, 2, '<NAME>', 4.00, 'g', 6, '00:30:00', 'img/frite.jpg'),
(9, 2, '<NAME>', 5.00, 'g', 5, '00:30:00', 'img/frite.jpg'),
(10, 2, '<NAME>', 3.50, 'g', 0, '00:30:00', 'img/salade.jpg'),
(11, 3, 'Fish', 4.00, '', 2, '00:30:00', 'img/fish.jpg'),
(12, 3, 'Cheese', 4.50, '', 4, '00:30:00', 'img/Cheese.jpg'),
(13, 3, 'Farmer', 4.50, '', 3, '00:30:00', 'img/Farmer.jpg'),
(14, 4, '<NAME>', 2.50, '', 3, '10:00:00', 'img/fruit.png'),
(15, 4, '<NAME>', 3.00, '', 0, '00:05:00', 'img/cho.jpg'),
(16, 4, '<NAME>', 3.00, '', 0, '00:05:00', 'img/van.jpg'),
(17, 4, 'Brownie', 3.50, '', 5, '15:00:00', 'img/brow.png'),
(18, 5, 'César', 4.50, '', 2, '01:00:00', 'img/saladecesar.jpg'),
(19, 5, 'Campagnarde', 5.00, '', 1, '02:00:00', 'img/saladecampagnarde.jpg');
-- --------------------------------------------------------
--
-- Structure de la table `Restaurant`
--
CREATE TABLE `Restaurant` (
`IdResto` int(2) NOT NULL
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `Restaurant`
--
INSERT INTO `Restaurant` (`IdResto`) VALUES
(1);
-- --------------------------------------------------------
--
-- Structure de la table `Simple`
--
CREATE TABLE `Simple` (
`IdProduit` int(2) NOT NULL,
`SeuilStock` int(2) NOT NULL,
`Stock` int(2) NOT NULL,
`LibelleProd` char(32) NOT NULL,
`PrixUnitProduit` decimal(10,2) NOT NULL,
`TypeUnit` char(32) NOT NULL,
`SeuilPrep` int(2) NOT NULL,
`TpsConso` time NOT NULL,
`Image` longblob
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=latin1;
--
-- Contenu de la table `Simple`
--
INSERT INTO `Simple` (`IdProduit`, `SeuilStock`, `Stock`, `LibelleProd`, `PrixUnitProduit`, `TypeUnit`, `SeuilPrep`, `TpsConso`, `Image`) VALUES
(1, 30, 47, 'Coca-Cola', 2.50, 'ml', 0, '00:30:00', NULL),
(2, 0, 0, 'Petite Frite', 3.00, 'g', 6, '00:30:00', NULL),
(4, 30, 46, 'Coca-Cola light', 2.50, 'ml', 0, '00:30:00', NULL),
(5, 30, 47, 'Coca-Cola zero', 2.50, 'ml', 0, '00:30:00', NULL),
(6, 39, 65, '<NAME>', 2.50, 'ml', 0, '00:30:00', NULL),
(7, 20, 35, 'Perrier', 2.50, 'ml', 0, '00:30:00', NULL),
(8, 0, 0, '<NAME>', 4.00, 'g', 6, '00:30:00', NULL),
(9, 68, 145, '<NAME>', 5.00, 'g', 5, '00:30:00', NULL),
(10, 34, 56, '<NAME>', 3.50, 'g', 0, '00:30:00', NULL),
(15, 37, 56, '<NAME>', 3.00, '', 0, '00:05:00', NULL),
(16, 36, 45, '<NAME>', 3.00, '', 0, '00:05:00', NULL),
(17, 35, 45, 'Brownie', 3.50, '', 5, '15:00:00', NULL);
--
-- Index pour les tables exportées
--
--
-- Index pour la table `Categorie`
--
ALTER TABLE `Categorie`
ADD PRIMARY KEY (`IDCATEGORIE`);
--
-- Index pour la table `Commande`
--
ALTER TABLE `Commande`
ADD PRIMARY KEY (`IDCOMMANDE`);
--
-- Index pour la table `CommandeMenu`
--
ALTER TABLE `CommandeMenu`
ADD PRIMARY KEY (`IDCOMMANDE`,`IDMENU`), ADD KEY `FK_CommandeMenu_Menu` (`IDMENU`);
--
-- Index pour la table `CommandeProdHorsMenu`
--
ALTER TABLE `CommandeProdHorsMenu`
ADD PRIMARY KEY (`IDCOMMANDE`,`IdProduit`), ADD KEY `FK_CommandeProdHorsMenu_Produit` (`IdProduit`);
--
-- Index pour la table `Compose`
--
ALTER TABLE `Compose`
ADD PRIMARY KEY (`IdProduit`);
--
-- Index pour la table `Contient`
--
ALTER TABLE `Contient`
ADD PRIMARY KEY (`IdProduit`,`IdIngredient`), ADD KEY `FK_contient_Ingredient` (`IdIngredient`);
--
-- Index pour la table `Defini`
--
ALTER TABLE `Defini`
ADD PRIMARY KEY (`IDMENU`,`IdResto`), ADD KEY `FK_defini_restaurant` (`IdResto`);
--
-- Index pour la table `DemandeReappro`
--
ALTER TABLE `DemandeReappro`
ADD PRIMARY KEY (`IdResto`,`IdProduit`,`IdIngredient`), ADD KEY `FK_DemandeReappro_Simple` (`IdProduit`), ADD KEY `FK_DemandeReappro_Ingredient` (`IdIngredient`);
--
-- Index pour la table `Formule`
--
ALTER TABLE `Formule`
ADD PRIMARY KEY (`IDCATEGORIE`,`IDMENU`), ADD KEY `FK_Formule_Menu` (`IDMENU`);
--
-- Index pour la table `Ingredient`
--
ALTER TABLE `Ingredient`
ADD PRIMARY KEY (`IdIngredient`);
--
-- Index pour la table `Manager`
--
ALTER TABLE `Manager`
ADD PRIMARY KEY (`idManager`), ADD KEY `Restaurant` (`IdResto`);
--
-- Index pour la table `Menu`
--
ALTER TABLE `Menu`
ADD PRIMARY KEY (`IDMENU`);
--
-- Index pour la table `Preparation`
--
ALTER TABLE `Preparation`
ADD PRIMARY KEY (`Idprep`), ADD KEY `FK_Preparation_Produit` (`IdProduit`);
--
-- Index pour la table `ProdAuxChoixDansMenu`
--
ALTER TABLE `ProdAuxChoixDansMenu`
ADD PRIMARY KEY (`IDMENU`,`IdProduit`), ADD KEY `FK_ProdAuxChoixDansMenu_Produit` (`IdProduit`);
--
-- Index pour la table `Produit`
--
ALTER TABLE `Produit`
ADD PRIMARY KEY (`IdProduit`), ADD KEY `FK_Produit_Categorie` (`IDCATEGORIE`);
--
-- Index pour la table `Restaurant`
--
ALTER TABLE `Restaurant`
ADD PRIMARY KEY (`IdResto`);
--
-- Index pour la table `Simple`
--
ALTER TABLE `Simple`
ADD PRIMARY KEY (`IdProduit`);
--
-- AUTO_INCREMENT pour les tables exportées
--
--
-- AUTO_INCREMENT pour la table `Categorie`
--
ALTER TABLE `Categorie`
MODIFY `IDCATEGORIE` int(2) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT pour la table `Commande`
--
ALTER TABLE `Commande`
MODIFY `IDCOMMANDE` int(2) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `Compose`
--
ALTER TABLE `Compose`
MODIFY `IdProduit` int(2) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT pour la table `Ingredient`
--
ALTER TABLE `Ingredient`
MODIFY `IdIngredient` int(2) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT pour la table `Manager`
--
ALTER TABLE `Manager`
MODIFY `idManager` int(2) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `Menu`
--
ALTER TABLE `Menu`
MODIFY `IDMENU` int(2) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT pour la table `Preparation`
--
ALTER TABLE `Preparation`
MODIFY `Idprep` int(2) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `Produit`
--
ALTER TABLE `Produit`
MODIFY `IdProduit` int(2) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=20;
--
-- AUTO_INCREMENT pour la table `Restaurant`
--
ALTER TABLE `Restaurant`
MODIFY `IdResto` int(2) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT pour la table `Simple`
--
ALTER TABLE `Simple`
MODIFY `IdProduit` int(2) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=18;
--
-- Contraintes pour les tables exportées
--
--
-- Contraintes pour la table `CommandeMenu`
--
ALTER TABLE `CommandeMenu`
ADD CONSTRAINT `commandemenu_ibfk_1` FOREIGN KEY (`IDCOMMANDE`) REFERENCES `Commande` (`IDCOMMANDE`),
ADD CONSTRAINT `commandemenu_ibfk_2` FOREIGN KEY (`IDMENU`) REFERENCES `Menu` (`IDMENU`);
--
-- Contraintes pour la table `CommandeProdHorsMenu`
--
ALTER TABLE `CommandeProdHorsMenu`
ADD CONSTRAINT `commandeprodhorsmenu_ibfk_1` FOREIGN KEY (`IDCOMMANDE`) REFERENCES `Commande` (`IDCOMMANDE`),
ADD CONSTRAINT `commandeprodhorsmenu_ibfk_2` FOREIGN KEY (`IdProduit`) REFERENCES `Produit` (`IdProduit`);
--
-- Contraintes pour la table `Compose`
--
ALTER TABLE `Compose`
ADD CONSTRAINT `compose_ibfk_1` FOREIGN KEY (`IdProduit`) REFERENCES `Produit` (`IdProduit`);
--
-- Contraintes pour la table `Contient`
--
ALTER TABLE `Contient`
ADD CONSTRAINT `contient_ibfk_1` FOREIGN KEY (`IdProduit`) REFERENCES `Compose` (`IdProduit`),
ADD CONSTRAINT `contient_ibfk_2` FOREIGN KEY (`IdIngredient`) REFERENCES `Ingredient` (`IdIngredient`);
--
-- Contraintes pour la table `Defini`
--
ALTER TABLE `Defini`
ADD CONSTRAINT `defini_ibfk_1` FOREIGN KEY (`IDMENU`) REFERENCES `Menu` (`IDMENU`),
ADD CONSTRAINT `defini_ibfk_2` FOREIGN KEY (`IdResto`) REFERENCES `restaurant` (`IdResto`);
--
-- Contraintes pour la table `DemandeReappro`
--
ALTER TABLE `DemandeReappro`
ADD CONSTRAINT `demandereappro_ibfk_1` FOREIGN KEY (`IdResto`) REFERENCES `restaurant` (`IdResto`),
ADD CONSTRAINT `demandereappro_ibfk_2` FOREIGN KEY (`IdProduit`) REFERENCES `Simple` (`IdProduit`),
ADD CONSTRAINT `demandereappro_ibfk_3` FOREIGN KEY (`IdIngredient`) REFERENCES `Ingredient` (`IdIngredient`);
--
-- Contraintes pour la table `Formule`
--
ALTER TABLE `Formule`
ADD CONSTRAINT `formule_ibfk_1` FOREIGN KEY (`IDCATEGORIE`) REFERENCES `Categorie` (`IDCATEGORIE`),
ADD CONSTRAINT `formule_ibfk_2` FOREIGN KEY (`IDMENU`) REFERENCES `Menu` (`IDMENU`);
--
-- Contraintes pour la table `Preparation`
--
ALTER TABLE `Preparation`
ADD CONSTRAINT `preparation_ibfk_1` FOREIGN KEY (`IdProduit`) REFERENCES `Produit` (`IdProduit`);
--
-- Contraintes pour la table `ProdAuxChoixDansMenu`
--
ALTER TABLE `ProdAuxChoixDansMenu`
ADD CONSTRAINT `prodauxchoixdansmenu_ibfk_1` FOREIGN KEY (`IDMENU`) REFERENCES `Menu` (`IDMENU`),
ADD CONSTRAINT `prodauxchoixdansmenu_ibfk_2` FOREIGN KEY (`IdProduit`) REFERENCES `Produit` (`IdProduit`);
--
-- Contraintes pour la table `Produit`
--
ALTER TABLE `Produit`
ADD CONSTRAINT `produit_ibfk_1` FOREIGN KEY (`IDCATEGORIE`) REFERENCES `Categorie` (`IDCATEGORIE`);
--
-- Contraintes pour la table `Simple`
--
ALTER TABLE `Simple`
ADD CONSTRAINT `simple_ibfk_1` FOREIGN KEY (`IdProduit`) REFERENCES `Produit` (`IdProduit`);
|
<filename>sql/msl_software.sql
-- phpMyAdmin SQL Dump
-- version 4.8.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 22, 2019 at 12:45 PM
-- Server version: 10.1.34-MariaDB
-- PHP Version: 7.2.7
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: `msl_software`
--
CREATE DATABASE IF NOT EXISTS `msl_software` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `msl_software`;
-- --------------------------------------------------------
--
-- Table structure for table `rooms`
--
DROP TABLE IF EXISTS `rooms`;
CREATE TABLE IF NOT EXISTS `rooms` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`room_type_name` varchar(30) NOT NULL,
`room_type_id` varchar(10) NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
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 */;
|
<gh_stars>0
SET @user_email = "<EMAIL>"
INSERT INTO creator (name, description, avatarUrl, createdAt, updatedAt)
VALUES ("creator_name",
"Default description for creator",
'https://source.unsplash.com/random/300x300',
NOW(),
NOW());
SET @creator_id = LAST_INSERT_ID();
INSERT INTO daily_top_up (createdAt, updatedAt)
VALUES (NOW(), NOW());
SET @daily_top_up_id = LAST_INSERT_ID();
INSERT INTO user (email, creatorId, dailyTopUpId, createdAt, updatedAt)
VALUES (@user_email,
@creator_id,
@daily_top_up_id,
NOW(),
NOW());
SET @user_id = LAST_INSERT_ID(); |
SELECT * FROM test;
SELECT
*
FROM test;
WITH cte1 AS (
SELECT a, z and e AS b
FROM cte
WHERE x IN (1, 2, 3) AND z < -1 OR z > 1 AND w = 'AND'
), cte2 AS (
SELECT RANK() OVER(PARTITION BY a, b ORDER BY x DESC) a, b
FROM cte
CROSS JOIN (
SELECT 1
UNION ALL
SELECT 2
UNION ALL
SELECT CASE x AND 1 + 1 = 2
WHEN TRUE THEN 1
WHEN x and y THEN 2
ELSE 3 END
UNION ALL
SELECT 1
FROM (SELECT 1) AS x, y, (SELECT 2) z
) x
)
SELECT a, b c FROM (
SELECT a w, 1 + 1 AS c
FROM foo
WHERE w IN (SELECT z FROM q)
GROUP BY a, b
) x
LEFT JOIN (
SELECT a, b
FROM (SELECT * FROM bar WHERE (c > 1 AND d > 1) OR e > 1 GROUP BY a HAVING a > 1 LIMIT 10) z
) y ON x.a = y.b AND x.a > 1 OR (x.c = y.d OR x.c = y.e);
WITH cte1 AS (
SELECT
a,
z AND e AS b
FROM cte
WHERE
x IN (1, 2, 3)
AND z < -1
OR z > 1
AND w = 'AND'
), cte2 AS (
SELECT
RANK() OVER(PARTITION BY a, b ORDER BY x DESC) AS a,
b
FROM cte
CROSS JOIN (
SELECT
1
UNION ALL
SELECT
2
UNION ALL
SELECT
CASE x AND 1 + 1 = 2
WHEN TRUE THEN 1
WHEN x AND y THEN 2
ELSE 3
END
UNION ALL
SELECT
1
FROM (
SELECT
1
) AS x, y, (
SELECT
2
) AS z
) AS x
)
SELECT
a,
b AS c
FROM (
SELECT
a AS w,
1 + 1 AS c
FROM foo
WHERE
w IN (
SELECT
z
FROM q
)
GROUP BY
a,
b
) AS x
LEFT JOIN (
SELECT
a,
b
FROM (
SELECT
*
FROM bar
WHERE
(c > 1 AND d > 1)
OR e > 1
GROUP BY
a
HAVING
a > 1
LIMIT 10
) AS z
) AS y
ON x.a = y.b
AND x.a > 1
OR (x.c = y.d OR x.c = y.e);
SELECT myCol1, myCol2 FROM baseTable LATERAL VIEW OUTER explode(col1) myTable1 AS myCol1 LATERAL VIEW explode(col2) myTable2 AS myCol2
where a > 1 and b > 2 or c > 3;
SELECT
myCol1,
myCol2
FROM baseTable
LATERAL VIEW OUTER
EXPLODE(col1) myTable1 AS myCol1
LATERAL VIEW
EXPLODE(col2) myTable2 AS myCol2
WHERE
a > 1
AND b > 2
OR c > 3;
SELECT * FROM (WITH y AS ( SELECT 1 AS z) SELECT z from y) x;
SELECT
*
FROM (
WITH y AS (
SELECT
1 AS z
)
SELECT
z
FROM y
) AS x;
INSERT OVERWRITE TABLE x VALUES (1, 2.0, '3.0'), (4, 5.0, '6.0');
INSERT OVERWRITE TABLE x VALUES
(1, 2.0, '3.0'),
(4, 5.0, '6.0');
WITH regional_sales AS (
SELECT region, SUM(amount) AS total_sales
FROM orders
GROUP BY region
), top_regions AS (
SELECT region
FROM regional_sales
WHERE total_sales > (SELECT SUM(total_sales)/10 FROM regional_sales)
)
SELECT region,
product,
SUM(quantity) AS product_units,
SUM(amount) AS product_sales
FROM orders
WHERE region IN (SELECT region FROM top_regions)
GROUP BY region, product;
WITH regional_sales AS (
SELECT
region,
SUM(amount) AS total_sales
FROM orders
GROUP BY
region
), top_regions AS (
SELECT
region
FROM regional_sales
WHERE
total_sales > (
SELECT
SUM(total_sales) / 10
FROM regional_sales
)
)
SELECT
region,
product,
SUM(quantity) AS product_units,
SUM(amount) AS product_sales
FROM orders
WHERE
region IN (
SELECT
region
FROM top_regions
)
GROUP BY
region,
product;
CREATE TABLE `t_customer_account` ( `id` int, `customer_id` int, `bank` varchar(100), `account_no` varchar(100));
CREATE TABLE `t_customer_account` (
`id` INT,
`customer_id` INT,
`bank` VARCHAR(100),
`account_no` VARCHAR(100)
);
CREATE TABLE `t_customer_account` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`customer_id` int(11) DEFAULT NULL COMMENT '客户id',
`bank` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '行别',
`account_no` varchar(100) COLLATE utf8_bin DEFAULT NULL COMMENT '账号',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARACTER SET=utf8 COLLATE=utf8_bin COMMENT='客户账户表';
CREATE TABLE `t_customer_account` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`customer_id` INT(11) DEFAULT NULL COMMENT '客户id',
`bank` VARCHAR(100) DEFAULT NULL COLLATE utf8_bin COMMENT '行别',
`account_no` VARCHAR(100) DEFAULT NULL COLLATE utf8_bin COMMENT '账号',
PRIMARY KEY(`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARACTER SET=utf8 COLLATE=utf8_bin COMMENT='客户账户表';
|
<filename>DATA_BACKUP/BD5W6_424P_INFORMATION_SCHEMA_TABLES.sql
CREATE TABLE INFORMATION_SCHEMA.TABLES
(
TABLE_CATALOG nvarchar(128),
TABLE_SCHEMA sysname,
TABLE_NAME sysname NOT NULL,
TABLE_TYPE varchar(10)
);
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'Langues', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'Preferences', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'Producteurs', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'Realisateurs', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'SousTitres', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'Supplements', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'TypesUtilisateur', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'Categories', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'FilmsActeurs', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'Films', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'EmpruntsFilms', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'FilmsSousTitres', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'FilmsSupplements', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'FilmsLangues', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'UtilisateursPreferences', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'Utilisateurs', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'Exemplaires', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'ValeursPreferences', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'sysdiagrams', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'Acteurs', 'BASE TABLE');
INSERT INTO INFORMATION_SCHEMA.TABLES (TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, TABLE_TYPE) VALUES ('BD5W6_424P', 'dbo', 'Formats', 'BASE TABLE'); |
SELECT COUNT(*) FROM city
WHERE city ~~* '%r';
|
SELECT wt.id "ID", tt.sym "Task", tst.sym "Task Status", tass.userid "Owner", mud.summary "Change"
FROM wf wt
LEFT JOIN chg mud
ON wt.object_id = mud.id
LEFT JOIN tskty tt
ON wt.task = tt.code
LEFT JOIN tskstat tst
ON wt.status=tst.code
LEFT JOIN ca_contact tass
ON wt.assignee=tass.contact_uuid
WHERE wt.persid = 'wf:407398' --Task Persistent ID
|
select * from dbo.startup_funding;
go
select InvestmentType,
count(InvestmentType) as Total_Investment
from dbo.startup_funding
group by InvestmentType
order by Total_Investment desc;
go
|
<filename>Service/Build/templates/settings.sql<gh_stars>1-10
update "Setting" set "Value"='http://localhost/msvc/v1/messaging' where "Category"='Microservice' AND "Config"='MessagingServiceEndpoint';
update "Setting" set "Value"='http://localhost/papi/v1/telemetryDataSinkSetup' where "Category"='Microservice' AND "Config"='TelemetrySetupServiceEndpoint';
update "Setting" set "Value"='http://ubuntuthriottesthost/api/v1' where "Category"='PublicUrl' AND "Config"='ManagementApiUrl';
update "Setting" set "Value"='http://ubuntuthriottesthost/papi/v1' where "Category"='PublicUrl' AND "Config"='PlatformApiUrl';
update "Setting" set "Value"='http://ubuntuthriottesthost:8080' where "Category"='PublicUrl' AND "Config"='PlatformWsUrl';
update "Setting" set "Value"='http://ubuntuthriottesthost/rapi/v1' where "Category"='PublicUrl' AND "Config"='ReportingApiUrl';
update "Setting" set "Value"='http://ubuntuthriottesthost/central' where "Category"='PublicUrl' AND "Config"='WebsiteUrl';
|
create table foo (id int identity, bar varchar(64)); |
`table`
INNER JOIN
(
SELECT
`joined1`.`c`
FROM
`joined1`
) AS `subQuery`
ON
`subQuery`.`c` = `table`.`y` |
{# quote ---------------------------------- #}
{% macro quote(column_name) -%}
{{ adapter.dispatch('quote')(column_name) }}
{%- endmacro %}
{% macro default__quote(column_name) -%}
adapter.quote(column_name)
{%- endmacro %}
{% macro oracle__quote(column_name) -%}
{{ '\"' ~ column_name ~ '\"'}}
{%- endmacro %}
{% macro clickhouse__quote(column_name) -%}
{{ '\"' ~ column_name ~ '\"'}}
{%- endmacro %}
|
/****** Object: Stored Procedure dbo.b4nGetReferentialData2 Script Date: 23/06/2005 13:32:01 ******/
CREATE proc dbo.b4nGetReferentialData2
@referentialType varchar(50),
@linkFrom varchar(50),
@customerid int = 0
as
begin
declare @maxProducts int
declare @countProducts int
set @maxProducts = isnull( ( select top 1 maxproducts from b4nreferentialtype witH(nolock) where referentialType = @referentialType),1)
SET ROWCOUNT @maxproducts
CREATE TABLE #TemporaryTable
(
Row int IDENTITY(1,1) PRIMARY KEY,
productfamilyid int,
random real,
displayMultiValues smallInt
)
create table #temporarytable2
(
viewtypeid int,
attributeid int,
attributename varchar(50),
attributesource varchar(1),
attributetypeid int,
multivalue smallint,
attributevalue varchar(8000),
productid int,
attributerowid int,
productfamilyid int,
categoryid varchar(50),
attributecollectionid int,
labeldescription varchar(100),
random real,
priority int,
displayvalue varchar(500),
displayMultiValues SMALLINT,
colspan int,
rowspan int )
insert into #TemporaryTable
select pf.productfamilyid, (rand(datepart(ms,getdate()) * (pf.productfamilyid/2)) ) * rand() , ac.displayMultiValues
From b4nReferential r, b4nProductFamily pf, b4nProduct p, b4nattributecollection ac
where r.referentialType = @referentialType
and r.linkFrom = @linkFrom
and cast(r.linkTo as int) = p.productid
and p.productfamilyid = pf.productfamilyid
and p.deleted = 0
and pf.attributeCollectionID = ac.attributeCollectionID
order by (rand(datepart(ms,getdate()) * (pf.productfamilyid/2)) ) * rand()
SET ROWCOUNT 0
insert into #temporarytable2
Select b.viewtypeid, a.attributeId,a.attributeName,a.attributeSource,a.attributeTypeId,a.multivalue,
rtrim(f.attributeValue) ,p.productId,
f.attributerowid,pf.productfamilyid,
(select top 1 cp.categoryid from b4ncategoryproduct cp with(nolock), b4ncategory ct witH(nolock)
where ct.categoryid = cp.categoryid and cp.productid = p.productid and ct.deleted = 0) as categoryid
,pf.attributecollectionid,a.labeldescription, tt.random,r.priority,ab.displayvalue,tt.displayMultiValues
,b.colspan,b.rowspan
From b4nCollectionDisplay b, b4nAttribute a
left outer join b4nAttributeProductFamily af with(nolock) on a.attributeID = af.attributeID join #TemporaryTable ttt on ttt.productfamilyid = af.productfamilyid
left outer join b4nAttributeBase ab with(nolock) on a.attributeID = ab.attributeID
and ab.attributeValue = af.attributeValue,
b4nAttributeProductFamily f,
b4nReferential r, b4nProductFamily pf, b4nProduct p,b4nAttributeType t,
b4nAttributeInCollection c, b4nViewType v,#TemporaryTable tt with(nolock)
where v.viewTypeId = b.viewTypeId
and v.viewTypeId = r.viewTypeId
and r.referentialType = @referentialType
and r.linkFrom = @linkFrom
and (b.attributeCollectionId = c.attributeCollectionID or b.attributecollectionid = 1)
and cast(r.linkTo as int) = p.productid
and p.productfamilyid = pf.productfamilyid
and p.deleted = 0
and pf.productFamilyId = f.productFamilyID
and pf.attributeCollectionID = c.attributeCollectionID
and c.attributeId = a.attributeId
and a.attributeid = f.attributeid
and a.attributeTypeId = t.attributeTypeId
and b.contentType = 'A'
and cast(b.content as int) = a.attributeId
and a.attributeSource = 'C'
and tt.productfamilyid = pf.productfamilyid
union
Select b.viewtypeid,a.attributeId,a.attributeName,a.attributeSource,a.attributeTypeId,a.multivalue,
'' as attributevalue ,p.productId,
0 as attributerowid,pf.productfamilyid,
(select top 1 cp.categoryid from b4ncategoryproduct cp with(nolock), b4ncategory ct witH(nolock)
where ct.categoryid = cp.categoryid and cp.productid = p.productid and ct.deleted = 0) as categoryid
,pf.attributecollectionid,a.labeldescription, tt.random,r.priority,ab.displayvalue,tt.displayMultiValues
,b.colspan,b.rowspan
From b4nCollectionDisplay b, b4nAttribute a
left outer join b4nAttributeProductFamily af with(nolock) on a.attributeID = af.attributeID
left outer join b4nAttributeBase ab with(nolock) on a.attributeID = ab.attributeID
and ab.attributeValue = af.attributeValue,
b4nReferential r, b4nProductFamily pf, b4nProduct p,b4nAttributeType t,
b4nAttributeInCollection c, b4nViewType v,#TemporaryTable tt with(nolock)
where v.viewTypeId = b.viewTypeId
and v.viewTypeId = r.viewTypeId
and r.referentialType = @referentialType
and r.linkFrom = @linkFrom
and (b.attributeCollectionId = c.attributeCollectionID or b.attributecollectionid = 1)
-- and pf.attributecollectionid = b.attributecollectionid
and cast(r.linkTo as int) = p.productid
and p.productfamilyid = pf.productfamilyid
and p.deleted = 0
and c.attributeId = a.attributeId
and a.attributeTypeId = t.attributeTypeId
and b.contentType = 'A'
and cast(b.content as int) = a.attributeId
and a.attributeSource = 'S'
and tt.productfamilyid = pf.productfamilyid
select * from #temporarytable2
order by priority asc,random asc
drop table #TemporaryTable
drop table #temporarytable2
end
GRANT EXECUTE ON b4nGetReferentialData2 TO b4nuser
GO
GRANT EXECUTE ON b4nGetReferentialData2 TO helpdesk
GO
GRANT EXECUTE ON b4nGetReferentialData2 TO ofsuser
GO
GRANT EXECUTE ON b4nGetReferentialData2 TO reportuser
GO
GRANT EXECUTE ON b4nGetReferentialData2 TO b4nexcel
GO
GRANT EXECUTE ON b4nGetReferentialData2 TO b4nloader
GO
|
<reponame>amery/trackingco<gh_stars>10-100
CREATE TABLE days (
domain text NOT NULL,
day text NOT NULL, -- 20060102
sessions jsonb NOT NULL DEFAULT '[]',
PRIMARY KEY (domain, day)
);
CREATE TABLE months (
domain text NOT NULL,
month text NOT NULL, -- 200601
nbounces int NOT NULL,
nsessions int NOT NULL,
npageviews int NOT NULL,
score int NOT NULL,
top_referrers jsonb NOT NULL,
top_referrers_scores jsonb NOT NULL,
top_pages jsonb NOT NULL,
PRIMARY KEY (domain, month)
);
CREATE TABLE temp_migration (
domain text,
code text,
UNIQUE (domain, code)
);
|
DROP TABLE IF EXISTS public.cargos_per_container;
CREATE TABLE IF NOT EXISTS public.cargos_per_container(
containerId VARCHAR(255) NOT NULL,
cargos BIGINT NOT NULL,
PRIMARY KEY (containerId)); |
/*Usamos la base de datos DAW202DBDepartamentos*/
use DB202DWESProyectoTema5;
/*insert datos en la tabla departamento*/
INSERT INTO T02_Departamento(T02_CodDepartamento,T02_DescDepartamento,T02_FechaCreacionDepartamento,T02_VolumenNegocio) VALUES
('FOL', 'departamento FOL', 1406149672, 102.4),
('DAW', 'departamento DAW', 1406149672, 1000.3),
('DIW', 'departamento DIW', 1406149672, 289.3);
/*insert datos en la tabla usuarios*/
INSERT INTO T01_Usuario(T01_CodUsuario,T01_Password,T01_DescUsuario) VALUES
('albertoF',SHA2('albertoFpaso',256),'ALBERTOF'),
('outmane',SHA2('outmanepaso',256),'OUTMANE'),
('rodrigo',SHA2('rodrigopaso',256),'RODRIGO'),
('isabel',SHA2('isabelpaso',256),'ISABEL'),
('david',SHA2('davidpaso',256),'DAVID'),
('aroa',SHA2('aroapaso',256),'AROA'),
('johanna',SHA2('johannapaso',256),'JOHANNA'),
('oscar',SHA2('oscarpaso',256),'OSCAR'),
('sonia',SHA2('soniapaso',256),'SONIA'),
('heraclio',SHA2('heracliopaso',256),'HERACLIO'),
('amor',SHA2('amorpaso',256),'AMOR'),
('antonio',SHA2('antoniopaso',256),'ANTONIO'),
('albertoB',SHA2('albertoBpaso',256),'ALBERTOB');
|
<reponame>infamousjoeg/DNAmicAnalysis
SELECT LOWER(Accounts.Name) as UserName
FROM Accounts
LEFT OUTER JOIN OSAccounts
ON Accounts.Id = OSAccounts.AccountBase_id
LEFT OUTER JOIN SshData
ON OSAccounts.SshData_id = SshData.Id
LEFT OUTER JOIN SshKeys
ON SshData.Id = SshKeys.SshData_id
LEFT OUTER JOIN Machines
ON Accounts.Machine_id = Machines.Id
WHERE Machines.Platform = 'Nix'
AND SshKeys.SshKeyType = 'Public'
AND Accounts.Name = 'root'
AND OSAccounts.Enabled = {disabled}
GROUP BY LOWER(Machines.Address)
ORDER BY UserName ASC |
-- file:foreign_key.sql ln:981 expect:true
insert into defc values (2)
|
<filename>Patches/Pre_Alpha_1/Raw_SQL/startup_standalone.sql<gh_stars>1-10
USE [perpetuumsa]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[startup_standalone]
AS
BEGIN
SET NOCOUNT ON;
--exec dbo.debug_disablezones
--exec dbo.debug_enablenpcs
--enabled zones
UPDATE zones SET [enabled]=1 WHERE active=1
--disable debug presences
update npcpresence set enabled=0 where [name] in ( 'random_flock_gatherer','debug_presence')
END
GO
|
<filename>labs/rdb-mesh/egopolis1/0001/test/projects/view_projects_list.sql
CREATE OR REPLACE FUNCTION test.view_projects_list()
RETURNS
SETOF mesh.node_view_brief
AS $$
SELECT
*
FROM
mesh.node_view_brief
WHERE
prototype = 'project'
$$ LANGUAGE SQL;
|
<reponame>wutzebaer/cardano-db-sync
-- Hand written migration to create the custom types with 'DOMAIN' statements.
CREATE FUNCTION migrate() RETURNS void AS $$
DECLARE
next_version int;
BEGIN
SELECT stage_one + 1 INTO next_version FROM "schema_version";
IF next_version = 5 THEN
-- Would normally put this inside an "EXECUTE" statement, but that does not work for some
-- reason and this does.
CREATE TYPE rewardtype AS ENUM ('leader', 'member');
UPDATE "schema_version" SET stage_one = next_version;
RAISE NOTICE 'DB has been migrated to stage_one version %', next_version;
END IF;
END;
$$ LANGUAGE plpgsql;
SELECT migrate();
DROP FUNCTION migrate();
|
CREATE OR REPLACE VIEW v_turnover_yearly AS
select pr.year
, sum(pr.cost) as cost
, sum(pr.amount) as amount
, sum(pr.turnover_amount) as turnover_amount
, sum(pr.tax_amount) as tax_amount
, sum(pr.expenses_amount) as expenses_amount
, sum(pr.turnover_amount) - sum(pr.cost) as profit_amount
, round((sum(pr.turnover_amount) - sum(pr.cost)) / sum(pr.turnover_amount), 1) * 100 as profit_rate
from eb_projectrequest pr
join eb_projectrequestheading prh on prh.project_request_id = pr.id
group by pr.year
order by pr.year |
--Add memory volume into snapshots
SELECT fn_db_add_column('snapshots', 'memory_volume', 'character varying(255)');
|
/*
Navicat Premium Data Transfer
Source Server : lyorcw2017.mysql.rds.aliyuncs.com
Source Server Type : MySQL
Source Server Version : 50718
Source Host : lyorcw2017.mysql.rds.aliyuncs.com:3306
Source Schema : model
Target Server Type : MySQL
Target Server Version : 50718
File Encoding : 65001
Date: 19/02/2019 14:29:19
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for demo_cate
-- ----------------------------
DROP TABLE IF EXISTS `demo_cate`;
CREATE TABLE `demo_cate` (
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`catename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '分类名称',
`type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '栏目顺序',
`pid` int(11) NOT NULL COMMENT '父ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
-- ----------------------------
-- Records of demo_cate
-- ----------------------------
INSERT INTO `demo_cate` VALUES (1, '中国', '1', 0);
INSERT INTO `demo_cate` VALUES (2, '美国', '1', 0);
INSERT INTO `demo_cate` VALUES (5, '山东', '1', 1);
INSERT INTO `demo_cate` VALUES (7, '江西', '', 1);
INSERT INTO `demo_cate` VALUES (11, '深圳', '', 1);
INSERT INTO `demo_cate` VALUES (18, '赣州', '', 7);
SET FOREIGN_KEY_CHECKS = 1;
|
DROP TABLE IF EXISTS defaults;
CREATE TABLE defaults
(
n Int32,
s String
)ENGINE = Memory();
INSERT INTO defaults VALUES(1, '1') (2, '2') (3, '3') (4, '4') (5, '5');
SELECT * FROM defaults;
ALTER TABLE defaults UPDATE n = 100 WHERE s = '1';
SELECT * FROM defaults;
SELECT count(*) FROM defaults;
ALTER TABLE defaults DELETE WHERE n = 100;
SELECT * FROM defaults;
SELECT count(*) FROM defaults;
DROP TABLE defaults;
|
-- Create syntax for TABLE 'ecommerce_cart_positions'
CREATE TABLE `ecommerce_cart_positions` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ecommerce_cart_id` int(11) unsigned NOT NULL,
`ecommerce_product_id` int(11) unsigned NOT NULL,
`quantity` int(10) unsigned NOT NULL DEFAULT '0',
`method` varchar(50) NOT NULL DEFAULT '',
`created` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `ecommerce_cart_id` (`ecommerce_cart_id`),
KEY `ecommerce_product_id` (`ecommerce_product_id`)
) ENGINE=InnoDB;
-- Create syntax for TABLE 'ecommerce_carts'
CREATE TABLE `ecommerce_carts` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) unsigned DEFAULT NULL,
`user_session_key` varchar(250) DEFAULT NULL,
`status` varchar(20) NOT NULL DEFAULT 'open',
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `status` (`status`),
KEY `user_id` (`user_id`)
) ENGINE=InnoDB;
-- Create syntax for TABLE 'ecommerce_orders'
CREATE TABLE `ecommerce_orders` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`uuid` varchar(200) NOT NULL,
`user_id` int(11) unsigned DEFAULT NULL,
`user_session_key` varchar(250) DEFAULT '',
`number` varchar(100) NOT NULL,
`status` varchar(20) NOT NULL DEFAULT 'created',
`ecommerce_cart_id` int(11) NOT NULL,
`ecommerce_shipment_id` int(11) unsigned DEFAULT NULL,
`billing_invoice_id` int(11) unsigned DEFAULT NULL,
`shipping_method` varchar(100) NOT NULL,
`shipping_address_id` int(11) unsigned DEFAULT NULL,
`payment_method` varchar(100) NOT NULL DEFAULT '',
`billing_address_id` int(11) unsigned DEFAULT NULL,
`user_note` text,
`internal_note` text,
`has_accepted_terms` tinyint(1) unsigned DEFAULT '0',
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `number` (`number`),
KEY `ecommerce_cart_id` (`ecommerce_cart_id`),
KEY `ecommerce_shipment_id` (`ecommerce_shipment_id`),
KEY `user_id` (`user_id`),
KEY `billing_invoice_id` (`billing_invoice_id`),
KEY `billing_address_id` (`billing_address_id`)
) ENGINE=InnoDB;
-- Create syntax for TABLE 'ecommerce_product_attributes'
CREATE TABLE `ecommerce_product_attributes` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ecommerce_product_id` int(11) unsigned NOT NULL,
`key` varchar(50) NOT NULL DEFAULT '',
`value` varchar(250) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
UNIQUE KEY `id_key` (`ecommerce_product_id`,`key`)
) ENGINE=InnoDB;
-- Create syntax for TABLE 'ecommerce_product_groups'
CREATE TABLE `ecommerce_product_groups` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(200) NOT NULL DEFAULT '',
`description` text,
`tags` varchar(250) DEFAULT NULL,
`is_published` tinyint(1) unsigned NOT NULL DEFAULT '0',
`is_promoted` tinyint(1) unsigned NOT NULL DEFAULT '0',
`access` varchar(250) NOT NULL DEFAULT 'any',
`cover_media_id` int(11) unsigned DEFAULT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `is_published` (`is_published`),
KEY `cover_media_id` (`cover_media_id`)
) ENGINE=InnoDB;
-- Create syntax for TABLE 'ecommerce_product_prices'
CREATE TABLE `ecommerce_product_prices` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ecommerce_product_id` int(11) unsigned NOT NULL,
`group` varchar(20) NOT NULL,
`tax_type` varchar(20) NOT NULL DEFAULT '',
`amount_currency` char(3) NOT NULL DEFAULT 'EUR',
`amount_type` char(5) NOT NULL DEFAULT 'net',
`amount_rate` int(5) unsigned NOT NULL DEFAULT '0',
`amount` int(10) unsigned NOT NULL,
`method` varchar(100) NOT NULL DEFAULT '',
PRIMARY KEY (`id`),
KEY `ecommerce_product_id` (`ecommerce_product_id`)
) ENGINE=InnoDB COMMENT='no fixed tax_rate';
-- Create syntax for TABLE 'ecommerce_products'
CREATE TABLE `ecommerce_products` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ecommerce_product_group_id` int(11) unsigned DEFAULT NULL,
`number` varchar(100) NOT NULL DEFAULT '',
`title` varchar(250) NOT NULL DEFAULT '',
`description` text,
`cover_media_id` int(11) unsigned DEFAULT NULL,
`stock` int(10) NOT NULL DEFAULT '0',
`stock_reserved` int(10) NOT NULL DEFAULT '0',
`stock_target` int(10) NOT NULL DEFAULT '0',
`is_published` tinyint(1) unsigned NOT NULL DEFAULT '0',
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `number` (`number`),
KEY `is_published` (`is_published`),
KEY `ecommerce_product_group_id` (`ecommerce_product_group_id`),
KEY `cover_media_id` (`cover_media_id`)
) ENGINE=InnoDB;
-- Create syntax for TABLE 'ecommerce_shipment_positions'
CREATE TABLE `ecommerce_shipment_positions` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`ecommerce_shipment_id` int(11) unsigned DEFAULT NULL COMMENT 'NULL until assigned to shipment',
`description` varchar(250) NOT NULL,
`quantity` decimal(10,2) unsigned NOT NULL DEFAULT '1.00',
`tax_type` varchar(20) NOT NULL DEFAULT '',
`tax_rate` int(5) unsigned NOT NULL,
`amount_currency` char(3) NOT NULL DEFAULT 'EUR',
`amount_type` char(5) NOT NULL DEFAULT 'net' COMMENT 'will always be net',
`amount` int(10) NOT NULL COMMENT 'the net value of the item',
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
PRIMARY KEY (`id`),
KEY `billing_invoice_id` (`ecommerce_shipment_id`)
) ENGINE=InnoDB;
-- Create syntax for TABLE 'ecommerce_shipments'
CREATE TABLE `ecommerce_shipments` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) unsigned NOT NULL,
`status` varchar(20) NOT NULL DEFAULT 'created',
`number` varchar(100) DEFAULT NULL,
`tracking` varchar(200) DEFAULT NULL,
`method` varchar(100) NOT NULL DEFAULT '',
`address_recipient` varchar(250) DEFAULT '',
`address_organization` varchar(250) DEFAULT NULL,
`address_address_line_1` varchar(250) DEFAULT NULL,
`address_address_line_2` varchar(250) DEFAULT NULL,
`address_locality` varchar(100) DEFAULT NULL,
`address_dependent_locality` varchar(100) DEFAULT NULL,
`address_postal_code` varchar(100) DEFAULT NULL,
`address_sorting_code` varchar(100) DEFAULT NULL,
`address_country` char(2) DEFAULT 'DE',
`address_administrative_area` varchar(200) DEFAULT NULL,
`address_phone` varchar(200) DEFAULT NULL,
`terms` text,
`note` text,
`created` datetime NOT NULL,
`modified` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `number` (`number`),
KEY `status` (`status`)
) ENGINE=InnoDB;
-- Augment other tables
ALTER TABLE `users` ADD `has_accepted_terms` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'ecommerce' AFTER `is_notified`;
ALTER TABLE `users` ADD `shipping_address_id` int(11) unsigned DEFAULT NULL COMMENT 'ecommerce' AFTER `billing_address_id`;
|
<gh_stars>0
-- Adminer 4.8.1 MySQL 8.0.25-0ubuntu0.20.10.1 dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
SET NAMES utf8mb4;
TRUNCATE `books`;
INSERT INTO `books` (`id`, `uuid`, `title`, `author`, `priority`, `publish_date`, `pages`, `rating`, `file`, `url`, `created_at`, `updated_at`) VALUES
(1, 'eb1ee980-4de2-11e9-ab96-2b0906be7e2d', 'Learning Laravel\'s Eloquent', '<NAME>', 3, '2015-07-27', 202, NULL, 'learning_eloquent.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/databases/9781784391584', '2019-03-24 03:14:21', '2019-05-10 16:00:17'),
(2, 'fc4b5370-4de6-11e9-ac3b-054e70b678cb', 'Full-Stack Vue.js 2 and Laravel 5', '<NAME>', 5, '2017-12-28', 376, NULL, 'full_stack.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781788299589', '2019-03-24 03:43:28', '2019-07-28 17:04:49'),
(3, 'c95ba8a0-568b-11e9-89ca-8920533731bb', 'Design Patterns in PHP and Laravel', '<NAME>', 3, '2016-12-27', 238, NULL, 'design_patterns_laravel.png', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/9781484224519', '2019-04-04 03:43:19', '2019-04-08 18:17:58'),
(4, 'ca599e60-57c4-11e9-bc87-bbb80021336f', 'Vue.js 2 Design Patterns and Best Practices', '<NAME>', 3, '2018-03-14', 344, NULL, 'design_patterns.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781788839792', '2019-04-05 12:03:53', '2019-05-10 15:18:36'),
(5, '0281eca0-57c5-11e9-a31c-53b3363e7419', 'Complete Vue.js 2 Web Development', 'Mike Street; <NAME>; <NAME>', 5, '2018-12-24', 704, NULL, 'complete_vue.js.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781789959901', '2019-04-05 12:05:27', '2019-05-10 14:58:22'),
(6, '3d64e3e0-57c5-11e9-8277-ed096eb232ee', 'Pro Vue.js 2', '<NAME>', 5, '2018-09-10', 728, NULL, 'pro_vue.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781484238059', '2019-04-05 12:07:06', '2019-05-10 15:10:15'),
(7, '6e454060-57c5-11e9-83ba-5b22d8098ba3', 'Vue.js 2 Cookbook', '<NAME>', 2, '2017-04-28', 454, NULL, 'vue_cookbook.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781786468093', '2019-04-05 12:08:28', '2019-05-10 15:58:12'),
(8, 'a5605810-57c5-11e9-bf1b-1d46a2a654e3', 'Vue.js in Action', '<NAME>; <NAME>', 3, '2018-09-29', 304, NULL, 'vue_in_action.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781617294624', '2019-04-05 12:10:00', '2019-05-10 15:08:03'),
(9, 'dd95ffe0-57c5-11e9-827c-3b1183c0ac5b', 'Testing Vue.js Applications', '<NAME>', 3, '2018-12-11', 272, NULL, 'testing_vue.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781617295249', '2019-04-05 12:11:34', '2019-05-10 14:59:38'),
(10, '0ba18600-57d5-11e9-b1ed-3d20bca981db', 'Vue.js Quick Start Guide', '<NAME>', 1, '2018-10-25', 186, NULL, 'quick_start.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781789344103', '2019-04-05 14:00:14', '2019-05-10 15:03:10'),
(11, '3c3a38d0-57d5-11e9-8bf6-1bdb43b3e18d', 'Vuex Quick Start Guide', '<NAME>', 2, '2018-04-11', 152, NULL, 'vuex_quick_start.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781788999939', '2019-04-05 14:01:36', '2019-05-10 15:15:02'),
(12, 'd92f3d80-57da-11e9-b107-eb78219f6198', 'Vue.js 2 and Bootstrap 4 Web Development', '<NAME>', 2, '2017-09-29', 310, NULL, 'vue_and_bootstrap.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781788290920', '2019-04-05 14:41:46', '2019-05-10 15:50:45'),
(13, '82f31340-57dc-11e9-907f-83d3cb0d0625', 'Vue.js 2 Web Development Projects', '<NAME>', 5, '2017-11-30', 398, NULL, 'vue_web_development.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781787127463', '2019-04-05 14:53:41', '2019-05-10 15:48:43'),
(14, '8da10270-5973-11e9-afeb-2d1034ca2ade', 'Learning Vue.js 2', '<NAME>', 1, '2016-12-13', 334, NULL, 'learning_vue.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/9781786469946', '2019-04-07 15:27:24', '2019-04-07 15:27:24'),
(18, '68118320-59c9-11e9-844b-3f0c7fcd6ddb', 'Jump Start Vue.js', '<NAME>', 1, '2019-02-05', 146, NULL, 'jump_start.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781492071303', '2019-04-08 01:41:58', '2019-04-09 20:55:40'),
(19, '84599c20-5d41-11e9-96d8-271f817b4226', 'Getting to Know Vue.js: Learn to Build Single Page Applications in Vue from Scratch', '<NAME>', 1, '2018-08-30', 268, NULL, 'getting_to_know.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/9781484237816', '2019-04-12 11:39:18', '2019-04-12 11:39:18'),
(25, '89163620-5ed8-11e9-b34f-898653defcd8', 'Full-stack Web Development With Vue.js and Node', '<NAME>', 1, '2018-01-01', NULL, NULL, 'full_stack_with_node.jpeg', NULL, '2019-04-14 12:12:51', '2019-04-14 12:12:51'),
(58, 'a2d32ee0-6776-11e9-a425-8949cf0e2c6a', 'Vue.js: Understanding its Tools and Ecosystem', '<NAME>', 3, '2018-11-05', 194, NULL, 'tools_and_ecosystem.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781939902597', '2019-04-25 11:24:44', '2019-05-10 15:02:17'),
(59, '62a40850-677a-11e9-8be2-cd61e3246501', 'Vue.js: Up and Running', '<NAME>', 1, '2018-03-13', 171, NULL, 'up_and_running.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781491997239', '2019-04-25 11:51:35', '2019-04-25 11:51:35'),
(60, 'aa87ed70-677a-11e9-b2fc-4b42d4a6b9de', 'Vue.js 2.x by Example', '<NAME>', 5, '2017-12-27', 412, NULL, 'by_example.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781788293464', '2019-04-25 11:53:35', '2019-05-10 15:47:13'),
(61, 'eeb942e0-677a-11e9-ba68-015a9daced03', 'The Majesty of Vue.js', '<NAME>; <NAME>', 1, '2016-11-14', 240, NULL, 'majesty.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781787124370', '2019-04-25 11:55:30', '2019-04-25 11:55:30'),
(62, '97801cd0-677b-11e9-a5a1-cfb5bcf13c68', 'Hands-On RESTful Web Services with TypeScript 3', '<NAME>', 3, '2019-03-27', 470, NULL, 'r_e_s_tful_web_services_with_type_script3.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781789956276', '2019-04-25 12:00:13', '2019-05-10 14:50:57'),
(63, 'bdd00610-677c-11e9-9b32-7f91dcfded74', 'MongoDB, Express, Angular, and Node.js Fundamentals', '<NAME>', 2, '2019-03-07', 362, NULL, 'mean_fundamentals.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781789808735', '2019-04-25 12:08:26', '2019-05-10 14:51:49'),
(64, '47661b20-677d-11e9-a293-93ffe5d7c765', 'Node.js: Related Tools & Skills', '<NAME>; <NAME>; <NAME>; <NAME>; <NAME>; <NAME>; <NAME>; <NAME>', 1, '2018-11-20', 129, NULL, 'node_tools_skills.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781492071150', '2019-04-25 12:12:17', '2019-04-25 12:12:17'),
(65, '86e54850-677d-11e9-8b06-ddc3b49a7b56', 'Web Development with MongoDB and Node - Third Edition', '<NAME>; <NAME>', 4, '2017-09-29', 330, NULL, 'mongo_d_b_and_node.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781788395083', '2019-04-25 12:14:04', '2019-05-10 15:54:12'),
(66, 'b2deef30-677d-11e9-a50e-c55614d3cc9f', 'Hands-On Full-Stack Web Development with GraphQL and React', '<NAME>', 4, '2019-01-31', 468, NULL, 'graph_q_l_and_react.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781789134520', '2019-04-25 12:15:18', '2019-05-10 14:52:27'),
(67, '1a50c200-677e-11e9-ad5e-0b31aebbc1ea', 'MEAN Cookbook', '<NAME>', 1, '2017-09-28', 450, NULL, 'mean_cookbook.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781787286573', '2019-04-25 12:18:11', '2019-04-25 12:18:11'),
(68, '0a5c9fd0-6780-11e9-820e-557724b291e3', 'MERN Quick Start Guide', '<NAME>', 4, '2018-03-31', 302, NULL, 'mern_quick_start_guide.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781787281080', '2019-04-25 12:32:03', '2019-05-10 15:17:32'),
(69, '55eeca60-6780-11e9-84ab-5d0d5db95831', 'Building an E-Commerce Application with MEAN', '<NAME>', 1, '2015-12-23', 224, NULL, 'ecommerce_with_mean.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/ecommerce/9781785286551', '2019-04-25 12:34:10', '2019-04-25 12:34:10'),
(70, '907f35f0-6780-11e9-8dc5-e38c71c050ba', 'Full-Stack React Projects', 'Shama Hoque', 5, '2018-05-29', 470, NULL, 'full-_stack_react_projects.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781788835534', '2019-04-25 12:35:48', '2019-05-10 15:14:25'),
(72, 'f6b41540-72e9-11e9-ad34-894d6e527584', 'Laravel: Up & Running, 2nd Edition', '<NAME>', 1, '2019-04-23', 542, NULL, 'laravel_up_and_running.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781492041207', '2019-05-10 01:08:00', '2019-05-10 01:08:00'),
(73, '5acadcf0-7362-11e9-bc0d-49b0df8c21f7', 'Hands-On Full Stack Web Development with Aurelia', '<NAME>; <NAME>', 1, '2018-06-15', 348, NULL, 'full_stack_web_development_with_aurelia.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781788833202', '2019-05-10 15:29:47', '2019-05-10 15:29:47'),
(74, 'd8cfb450-737a-11e9-a6e1-77655525ab62', 'Pro MERN Stack: Full Stack Web App Development with Mongo, Express, React, and Node', '<NAME>', 1, '2017-03-02', 335, NULL, 'pro_m_e_r_n_stack.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781484226537', '2019-05-10 18:25:07', '2019-05-10 18:25:07'),
(75, '07152340-737b-11e9-b4dd-19c39e0b168d', 'Beginning React', '<NAME>', 1, '2018-07-25', 96, NULL, 'beginning_react.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781789530520', '2019-05-10 18:26:24', '2019-05-10 18:26:24'),
(76, '27906230-737b-11e9-b85c-df18c700cd87', 'React Cookbook', '<NAME>', 4, '2018-08-30', 580, NULL, 'react_cookbook.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/software-engineering-and-development/user-interface/9781783980727', '2019-05-10 18:27:19', '2019-05-10 18:27:19'),
(77, '621952a0-737b-11e9-bd79-db10a600b21e', 'Learn React with TypeScript 3', '<NAME>', 2, '2018-11-29', 502, NULL, 'react_with_type_script3.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781789610253', '2019-05-10 18:28:57', '2019-05-10 18:28:57'),
(78, '913a5860-737b-11e9-a0f1-3d8fb9ef0a04', 'Create React App 2 Quick Start Guide', '<NAME>', 2, '2019-02-27', 188, NULL, 'react_app2_quick_start_guide.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781789952766', '2019-05-10 18:30:16', '2019-05-10 18:30:16'),
(79, 'c969f960-737b-11e9-a14d-a7db07dc288c', 'React Design Patterns and Best Practices - Second Edition', '<NAME>', 3, '2019-03-30', 350, NULL, 'react_design_patterns.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781789530179', '2019-05-10 18:31:50', '2019-05-10 18:31:50'),
(80, '54009c40-74fe-11e9-b473-a5117ec26f99', 'CRM Fundamentals', '<NAME>; <NAME>; <NAME>', 3, '2011-09-30', 193, NULL, 'crm_fundamentals.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/quality-management/9781430235903', '2019-05-12 16:38:49', '2019-05-12 16:38:49'),
(81, 'f31ccb80-7515-11e9-b8d2-0583649e4aac', 'Integrating CRM Across Your Organization for Business Success', '<NAME>', 2, '2016-01-27', 180, NULL, 'integrating_crm.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/office-and-productivity-applications/9781783001040', '2019-05-12 19:27:54', '2019-05-12 19:27:54'),
(82, '014a6f40-7519-11e9-ae57-0f6ab3f8c633', 'CRM Automation', '<NAME>', 1, '2002-02-01', 320, NULL, 'crm_automation.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/operations/013008851x', '2019-05-12 19:49:46', '2019-05-12 19:49:46'),
(83, '7c224f80-7519-11e9-8ef8-f7e0dac65bae', 'Connected CRM: Implementing a Data-Driven, Customer-Centric Business Strategy', '<NAME>', 3, '2014-03-03', 256, NULL, 'connected_crm.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/sales-and-marketing/9781118835807', '2019-05-12 19:53:12', '2019-05-12 19:53:12'),
(84, '6c659330-7527-11e9-98b8-1f1ac5a32c9a', 'The Small Business\' Guide to Social CRM', '<NAME>', 4, '2014-10-01', 174, NULL, 'social_crm.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-applications-and-services/social-media/9781783001200', '2019-05-12 21:32:59', '2019-05-12 21:32:59'),
(85, 'a528fbf0-75b3-11e9-876a-9d2cbd4ee7e5', 'Hands-On Agile Software Development with JIRA', '<NAME>', 3, '2018-07-30', 158, NULL, 'agile_software_development.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/software-engineering-and-development/agile-development/9781789532135', '2019-05-13 14:16:44', '2019-05-13 14:16:44'),
(86, '123e06e0-75b4-11e9-96b5-516e0558dc88', 'Agile Software Development with Distributed Teams: Staying Agile in a Global World', '<NAME>', 2, '2013-07-12', 144, NULL, 'agile_software_development_with_distributed_teams.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/software-engineering-and-development/agile-development/9780133492385', '2019-05-13 14:19:47', '2019-05-13 14:19:47'),
(87, '5a427480-75b4-11e9-8a94-374f37a98a90', 'Software Architect\'s Handbook', '<NAME>', 2, '2018-08-30', 594, NULL, 'software_architects_handbook.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/software-engineering-and-development/9781788624060', '2019-05-13 14:21:48', '2019-05-13 14:21:48'),
(88, '891a69c0-75b5-11e9-bed0-f35bc02481ef', 'Create Your Successful Agile Project', '<NAME>', 2, '2017-10-18', 292, NULL, 'create_your_successful_agile_project.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/project-management/9781680502947', '2019-05-13 14:30:16', '2019-05-13 14:30:16'),
(89, 'f197f320-75b5-11e9-a248-bdac930b9a8f', 'The Project Manager\'s Guide to Mastering Agile: Principles and Practices for an Adaptive Approach', '<NAME>', 3, '2015-01-27', 432, NULL, 'mastering_agile.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/project-management/9781118991046', '2019-05-13 14:33:11', '2019-05-13 14:33:11'),
(90, '2058dcd0-7c22-11e9-bacd-fb7f2103ed64', 'Building Enterprise JavaScript Applications', '<NAME>', 2, '2018-09-29', 764, NULL, 'building_enterprise_java_script_applications.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781788477321', '2019-05-21 18:42:42', '2019-05-21 18:42:42'),
(91, '344dac80-7c23-11e9-a2b8-7fa90ad2b457', 'Isomorphic Web Applications: Universal Development with React', '<NAME>', 3, '2018-07-02', 320, NULL, 'isomorphic.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781617294396', '2019-05-21 18:50:25', '2019-10-02 09:20:46'),
(92, 'fe4a91c0-7c77-11e9-b8b3-ff8a8d07d5bc', 'Isomorphic JavaScript Web Development', '<NAME>; <NAME>', 2, '2017-10-11', 226, NULL, 'isomorphic_java_script_web_development.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781785889769', '2019-05-22 04:57:22', '2019-05-22 04:57:22'),
(93, 'fd4a63e0-7c78-11e9-98fb-f95f533f35cc', 'The Definitive Guide to AdonisJs: Building Node.js Applications with JavaScript', '<NAME>', 3, '2018-03-14', 254, NULL, 'adonis_js.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781484233900', '2019-05-22 05:04:29', '2019-05-22 05:04:29'),
(94, '5dca4320-857a-11e9-825f-bbd433b47793', 'Full Stack Development with JHipster', '<NAME>; <NAME>', 2, '2018-03-23', 380, NULL, 'j_hipster.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/java/9781788476317', '2019-06-02 16:07:01', '2019-06-02 16:07:01'),
(95, 'bc8b4d50-857a-11e9-8ab0-55c4ec53117d', 'Progressive Web Apps with React', '<NAME>', 3, '2017-10-24', 302, NULL, 'progressive.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781788297554', '2019-06-02 16:09:40', '2019-06-02 16:09:40'),
(96, 'bd6cbe00-857b-11e9-a78f-eba5019bc14e', 'Progressive Web Application Development by Example', '<NAME>', 1, '2018-07-24', 354, NULL, 'progressive_web_development.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781787125421', '2019-06-02 16:16:51', '2019-06-02 16:16:51'),
(97, '7bf8b140-857c-11e9-8c44-ad8ea40c7f39', 'Beginning DevOps with Docker', '<NAME>', 1, '2018-03-29', 96, NULL, 'docker.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/operating-systems-and-server-administration/9781789532401', '2019-06-02 16:22:11', '2019-06-02 16:22:11'),
(98, '450d96f0-8658-11e9-b5b8-b74c999cc695', 'Hands-On Full Stack Web Development with Angular 6 and Laravel 5', '<NAME>', 2, '2018-07-31', 420, NULL, 'full_stack_web_development_with_angular6_and_laravel5.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781788833912', '2019-06-03 18:35:28', '2019-06-03 18:35:28'),
(99, '8e6107c0-9adb-11e9-868b-018ac8fe39ff', 'Beginning GraphQL', '<NAME>', 3, '2018-07-26', 128, NULL, 'intro_graph_q_l.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781789610543', '2019-06-29 21:05:38', '2019-06-29 21:05:38'),
(100, 'c2ce3ec0-9adb-11e9-aa23-5d82f707aa22', 'Learning GraphQL and Relay', 'Learning GraphQL and Relay', 3, '2016-08-30', 218, NULL, 'learning_graph_q_l_and_relay.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/software-engineering-and-development/9781786465757', '2019-06-29 21:07:06', '2019-06-29 21:07:06'),
(101, '58034fd0-9ae1-11e9-86ac-6d3b8a9bd74e', 'Mastering Windows PowerShell Scripting - Third Edition', '<NAME>', 1, '2019-02-28', 626, NULL, 'power_shell_scripting.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/microsoft-windows-powershell/9781789536669', '2019-06-29 21:47:04', '2019-11-16 15:47:44'),
(102, 'b0965f10-b183-11e9-87e5-e7d4251ed1e5', 'Laravel 5.x Cookbook', '<NAME>', 4, '2016-09-14', 402, NULL, 'laravel_cook_book.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781786462084', '2019-07-28 17:04:37', '2019-07-28 17:04:37'),
(103, 'd47c45d0-e4b1-11e9-85eb-d50ebeee86bd', 'Test-Driven React', '<NAME>', 2, '2019-06-06', 192, NULL, 'test-_driven_react.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/software-engineering-and-development/9781680507058', '2019-10-01 20:13:23', '2019-10-01 20:13:23'),
(104, '288e9a20-e520-11e9-a331-bdd7a390c58a', 'Pro React 16', '<NAME>', 2, '2019-03-19', 750, NULL, 'pro_react16.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781484244517', '2019-10-02 09:23:09', '2019-10-02 09:23:09'),
(105, '99311660-e523-11e9-91e6-6fff3166f433', 'React in Action', '<NAME>', 4, '2018-06-05', 360, NULL, 'react_in_action.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781617293856', '2019-10-02 09:47:46', '2019-10-02 09:47:46'),
(106, '5cf37b40-e524-11e9-a338-f7e4c9f4b631', 'Learning React: A Hands-On Guide to Building Web Applications Using React and Redux, Second edition', '<NAME>', 2, '2018-05-23', 304, NULL, 'learning_react.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9780134843582', '2019-10-02 09:53:15', '2019-10-02 09:53:15'),
(107, '63730550-e525-11e9-84b4-3dc7343ad147', 'Serverless Web Applications with React and Firebase', '<NAME>; <NAME>', 4, '2018-04-10', 284, NULL, 'serverless_web_applications.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781788477413', '2019-10-02 10:00:35', '2019-10-02 10:00:35'),
(108, '9008b860-0683-11ea-b863-79b0be19e6da', 'Vue.js: 11 Practical Projects', '<NAME>; <NAME>; <NAME>; <NAME>; <NAME>; <NAME>; <NAME>', 5, '2019-06-06', 363, NULL, '11_projects.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781492071341', '2019-11-13 20:07:51', '2019-11-13 20:07:51'),
(109, 'f04f7f30-0683-11ea-959c-dba683d0a5c5', 'Google Flutter Mobile Development Quick Start Guide', '<NAME>; <NAME>', 5, '2019-03-30', 152, NULL, 'google_flutter_mobile_development.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/mobile/9781789344967', '2019-11-13 20:10:33', '2019-11-13 20:10:33'),
(110, 'd378e6a0-0684-11ea-b735-c71dd21eef94', 'Building Forms with Vue.js', '<NAME>', 4, '2019-10-24', 108, NULL, 'building_forms_with_vuejs.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781839213335', '2019-11-13 20:16:54', '2019-11-13 20:16:54'),
(111, '969491d0-0685-11ea-ad5b-2b6341ac78ab', 'Beginning Laravel : Build Websites with Laravel 5.8', '<NAME>', 3, '2019-09-06', 429, NULL, 'build_websites_with_laravel58.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781484249918', '2019-11-13 20:22:21', '2019-11-13 20:22:21'),
(112, 'a94cf230-3c94-11ea-8c58-61bbc7b6a9a4', 'Building Progressive Web Applications with Vue.js : Reliable, Fast, and Engaging Apps with Vue.js', '<NAME>', 3, '2019-12-14', 242, NULL, 'building_progressive.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781484253342', '2020-01-21 15:26:18', '2020-01-21 15:26:18'),
(113, '53d69c47-7ed8-476e-af61-97819ba8a5f9', 'Vue.js 3 Cookbook', '<NAME>', 5, '2020-09-17', 562, NULL, 'vue.js3_cookbook.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/programming/javascript/9781838826222', '2021-01-05 05:31:37', '2021-06-21 20:02:29'),
(114, '9a1eeb27-c7f3-4843-ab40-f8a8b90b6b26', 'Hands-on Nuxt.js Web Development', 'Lau Tiam Kok', 3, '2020-08-14', 698, NULL, 'nuxt.js_web_development.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781789952698', '2021-01-05 05:43:44', '2021-01-05 05:43:44'),
(115, 'a26805bc-3344-43d0-ad0a-4c137f52208e', 'Building Micro-Frontends', '<NAME>', 1, '2021-08-25', 350, NULL, 'building_micro-_frontends.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/software-engineering-and-development/9781492082989', '2021-01-05 05:48:32', '2021-01-05 05:48:32'),
(116, 'dead9720-50b4-4b5a-8e9e-c1593df37183', 'Web Application Security', '<NAME>', 4, '2020-03-04', 327, NULL, 'web_application_security.jpg', 'https://proquestcombo-safaribooksonline-com.mcpl.idm.oclc.org/book/web-development/9781492053101', '2021-01-05 05:50:26', '2021-01-05 05:50:26'),
(117, '693c5653-a272-41a2-a480-55e724fecf83', 'Domain-Driven Laravel: Learn to Implement Domain-Driven Design Using Laravel', '<NAME>', 4, '2020-10-01', NULL, NULL, 'domain-_driven_laravel.jpeg', 'https://learning-oreilly-com.mcpl.idm.oclc.org/library/view/domain-driven-laravel-learn/9781484260234/', '2021-01-20 02:52:41', '2021-01-20 02:52:41'),
(118, '58c2d770-c0e8-43ae-b145-c27804c7d52d', 'Full-Stack Web Development with Jakarta EE and Vue.js: Your One-Stop Guide to Building Modern Full-Stack Applications with Jakarta EE and Vue.js', '<NAME>', 3, '2020-12-01', NULL, NULL, 'jakarta_e_e_and_vue.js.jpeg', 'https://learning-oreilly-com.mcpl.idm.oclc.org/library/view/full-stack-web-development/9781484263426/', '2021-01-20 03:49:46', '2021-01-20 03:49:46'),
(119, '76b5cefb-798b-401b-90e2-63e08a0189ed', 'Front-End Development Projects with Vue.js', '<NAME>, <NAME>, <NAME>, <NAME>, <NAME>', 3, '2020-11-01', NULL, NULL, 'front-_end_development_projects_with_vue.js.jpeg', 'https://learning-oreilly-com.mcpl.idm.oclc.org/library/view/front-end-development-projects/9781838984823/', '2021-01-20 04:15:38', '2021-01-20 04:15:38'),
(120, '2a85c755-c2f1-4233-9b32-df5ae466b585', 'Learning React, 2nd Edition', '<NAME>, <NAME>', 3, '2020-06-01', 300, NULL, '60ca89788631a_learning_react.jpeg', 'https://learning-oreilly-com.mcpl.idm.oclc.org/library/view/learning-react-2nd/9781492051718/', '2021-06-17 04:30:00', '2021-06-17 04:30:00'),
(121, 'e6814ef3-b887-4a2d-a72a-a957b1f2752e', 'React Cookbook ii', '<NAME>, <NAME>', 4, '2021-10-01', 300, NULL, '60cabd58f3a74_react_cookbook.jpeg', 'https://learning-oreilly-com.mcpl.idm.oclc.org/library/view/react-cookbook/9781492085836/', '2021-06-17 08:11:21', '2021-06-17 08:11:21'),
(122, 'e63295e2-171f-44e4-a420-16b99cf679ad', 'Full-Stack React, TypeScript, and Node', '<NAME>', 3, NULL, 300, NULL, '60cabe27dbbfb_full-_stack_react,_type_script,_and_node.jpeg', 'https://learning-oreilly-com.mcpl.idm.oclc.org/library/view/full-stack-react-typescript/9781839219931/', '2021-06-17 08:14:47', '2021-06-17 08:14:47'),
(123, 'ef699fe0-bc38-492e-8c3a-61f481578efb', 'React 17 Design Patterns and Best Practices - Third Edition', '<NAME>', 3, '2021-05-01', 333, NULL, '60cabeb0de068_react17.jpeg', 'https://learning-oreilly-com.mcpl.idm.oclc.org/library/view/react-17-design/9781800560444/', '2021-06-17 08:17:04', '2021-06-17 08:17:04'),
(124, '31afcd37-e9e4-4261-944c-5e22d170db06', 'React Hooks in Action', '<NAME>', 4, '2021-04-01', 333, NULL, '60cabf8c27e4b_react_hooks_in_action.jpeg', 'https://learning-oreilly-com.mcpl.idm.oclc.org/library/view/react-hooks-in/9781617297632/', '2021-06-17 08:20:44', '2021-06-17 08:20:44'),
(125, '8307871a-d201-40d3-a138-d38e8b9e4c83', 'Building Vue.js Applications with GraphQL', '<NAME>', 5, '2021-01-01', 333, NULL, '60ce648dbb4c9_building_vue.js_applications_with_graph_q_l.jpeg', 'https://learning-oreilly-com.mcpl.idm.oclc.org/library/view/building-vuejs-applications/9781800565074/', '2021-06-20 02:41:33', '2021-06-20 02:41:33'),
(126, '8390ff9e-0169-4b9a-b3df-4ed20bdc0c75', 'Learn TypeScript 3 by Building Web Applications', '<NAME>, <NAME>', 3, '2019-11-01', 333, NULL, '60d760523586b_learn_type_script3_by_building_web_applications.jpeg', 'https://learning-oreilly-com.mcpl.idm.oclc.org/library/view/learn-typescript-3/9781789615869/', '2021-06-26 22:13:55', '2021-06-26 22:13:55'),
(127, '78d5fed3-97c5-4cc0-a1fa-e02890417af8', 'Vue.js 3 By Example', '<NAME>', 5, '2021-04-02', 333, NULL, '60d762ddeb467_vue.js3_by_example.jpeg', 'https://learning-oreilly-com.mcpl.idm.oclc.org/library/view/vuejs-3-by/9781838826345/', '2021-06-26 22:24:45', '2021-06-26 22:24:45');
-- 2021-07-08 01:55:11
|
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jan 16, 2018 at 11:03 AM
-- Server version: 5.5.57-0ubuntu0.14.04.1
-- PHP Version: 5.5.9-1ubuntu4.22
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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 utf8 */;
--
-- Database: `desa`
--
-- --------------------------------------------------------
--
-- Table structure for table `agenda`
--
CREATE TABLE IF NOT EXISTS `agenda` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tanggal` date NOT NULL,
`image` varchar(100) NOT NULL,
`lokasi` varchar(100) NOT NULL,
`agenda` varchar(100) NOT NULL,
`anggaran` int(11) NOT NULL,
`keterangan` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;
--
-- Dumping data for table `agenda`
--
INSERT INTO `agenda` (`id`, `tanggal`, `image`, `lokasi`, `agenda`, `anggaran`, `keterangan`) VALUES
(1, '2017-10-23', 'Capture-1.PNG', 'Jalan Raya Kedung', 'khoul masal', 10000000, 'dimeriahkan oleh K H Anwar Zahid'),
(4, '2017-11-22', 'FB_IMG_14876744093005870.jpg', 'Balai Desa', 'Ulang Tahun Desa', 20000000, 'Ulang tahun desa yang diselenggarakan setiap tahunnya'),
(5, '2017-12-14', 'Capture.PNG', 'Balai Desa', 'Ulang tahun desa', 1000000, 'Khajatan Desa'),
(6, '2017-03-28', 'noimage.jpg', 'Balai Desa', 'Ulang Tahun Desa', 10000000, 'Perayaan tahunan Ulang Tahun Desa yang ke sekian');
-- --------------------------------------------------------
--
-- Table structure for table `coment_agenda`
--
CREATE TABLE IF NOT EXISTS `coment_agenda` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_agenda` int(11) NOT NULL,
`waktu` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`nama` varchar(50) NOT NULL,
`email` varchar(100) NOT NULL,
`komentar` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
--
-- Dumping data for table `coment_agenda`
--
INSERT INTO `coment_agenda` (`id`, `id_agenda`, `waktu`, `nama`, `email`, `komentar`) VALUES
(1, 6, '2017-12-30 14:38:02', '<NAME>', '<EMAIL>', 'acara yang hebat');
-- --------------------------------------------------------
--
-- Table structure for table `coment_pembangunan`
--
CREATE TABLE IF NOT EXISTS `coment_pembangunan` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_pembangunan` int(11) NOT NULL,
`waktu` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`nama` varchar(50) NOT NULL,
`email` varchar(100) NOT NULL,
`komentar` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `coment_pembangunan`
--
INSERT INTO `coment_pembangunan` (`id`, `id_pembangunan`, `waktu`, `nama`, `email`, `komentar`) VALUES
(1, 7, '2017-12-29 15:26:48', 'siapa', '<EMAIL>', 'pembangunan yang baik\r\n'),
(2, 7, '2018-01-16 02:49:42', 'testing', '<EMAIL>', 'finish'),
(3, 6, '2018-01-16 07:55:11', 'saya', '<EMAIL>', 'Sudah selesai');
-- --------------------------------------------------------
--
-- Table structure for table `feedback`
--
CREATE TABLE IF NOT EXISTS `feedback` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`waktu` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`nama` varchar(100) NOT NULL,
`email` varchar(100) NOT NULL,
`pesan` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ;
--
-- Dumping data for table `feedback`
--
INSERT INTO `feedback` (`id`, `waktu`, `nama`, `email`, `pesan`) VALUES
(3, '2017-10-23 07:37:25', 'gombal', '<EMAIL>', 'belum jadi ya.., Kasihan....!'),
(4, '2017-12-13 09:19:09', 'ahmad noo<NAME>', '<EMAIL>', 'Test');
-- --------------------------------------------------------
--
-- Table structure for table `keuangan`
--
CREATE TABLE IF NOT EXISTS `keuangan` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tanggal` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`aksi` varchar(20) NOT NULL,
`nominal` int(11) NOT NULL,
`saldo` int(11) NOT NULL,
`keterangan` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;
--
-- Dumping data for table `keuangan`
--
INSERT INTO `keuangan` (`id`, `tanggal`, `aksi`, `nominal`, `saldo`, `keterangan`) VALUES
(1, '2017-10-23 00:00:00', 'Pemasukkan', 0, 0, 'Masih Kosong'),
(11, '2017-10-23 00:00:00', 'Pemasukan', 500000, 500000, 'Pemasukkan Dari President'),
(12, '2017-10-23 00:00:00', 'Pengeluaran', 100000, 400000, 'Santunan anak yatim'),
(13, '2017-10-23 00:00:00', 'Pemasukan', 1000000, 1400000, 'Sumbangan Desa Sebelah'),
(14, '2017-12-13 09:21:09', 'Pemasukan', 1000000000, 1001400000, 'Dana Pembangunan Dari Pemerintah Pusat'),
(15, '2017-12-13 09:21:59', 'Pengeluaran', 500000000, 501400000, 'Perbaikan Jalan Desa ke Kota'),
(18, '2017-12-30 13:27:28', 'Pengeluaran', 10000000, 491400000, 'Pembangunan Musholah Baitul Muttaqin'),
(19, '2017-12-30 13:32:02', 'Pengeluaran', 10000000, 481400000, 'Mencoba membangun kembali'),
(20, '2017-12-30 14:21:26', 'Pengeluaran', 10000000, 471400000, 'Perayaan tahunan Ulang Tahun Desa yang ke sekian');
-- --------------------------------------------------------
--
-- Table structure for table `pembangunan`
--
CREATE TABLE IF NOT EXISTS `pembangunan` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tanggal` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`image` varchar(100) NOT NULL,
`lokasi` varchar(100) NOT NULL,
`bangun` varchar(100) NOT NULL,
`anggaran` int(11) NOT NULL,
`keterangan` text NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=8 ;
--
-- Dumping data for table `pembangunan`
--
INSERT INTO `pembangunan` (`id`, `tanggal`, `image`, `lokasi`, `bangun`, `anggaran`, `keterangan`) VALUES
(5, '2017-10-24 00:00:00', '15088546498811699019673.jpg', 'Masjid besar baitul muqorrabin', 'Pembangunan masjid bugel', 20000000, 'Pembangunan ulang masjid besar'),
(6, '2017-12-13 00:00:00', 'Capture1.PNG', 'RT 01', 'Pembangunan akses jembatan utama desa', 500000000, 'Pembangunan ulang jembatan yang telah rusak'),
(7, '2017-01-28 00:00:00', 'jadwal_uas_gasal.PNG', 'Disini', 'Mencoba', 10000000, 'Mencoba membangun kembali');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE IF NOT EXISTS `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`tgl_daftar` date NOT NULL,
`nama` varchar(250) NOT NULL,
`email` varchar(250) NOT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `tgl_daftar`, `nama`, `email`, `username`, `password`) VALUES
(1, '2016-11-05', 'Saya sendiri', '<EMAIL>', 'admin', '<PASSWORD>'),
(2, '2017-10-23', '<NAME>', '<EMAIL>', 'afifi', '20f29ca2790482f685224482ead91763'),
(3, '2017-12-13', 'test', '<EMAIL>', 'test', '<PASSWORD>');
/*!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 */;
|
CREATE TABLE IF NOT EXISTS "users"
(
"id" SERIAL PRIMARY KEY NOT NULL
);
CREATE TABLE IF NOT EXISTS "user_password"
(
"id" SERIAL PRIMARY KEY NOT NULL
);
DROP TRIGGER IF EXISTS some_table_update_date ON "user_password";
CREATE OR REPLACE FUNCTION update_modified_column() RETURNS TRIGGER AS
$$
BEGIN
IF row (NEW.*) IS DISTINCT FROM row (OLD.*) THEN
NEW.updated_at = now();
RETURN NEW;
ELSE
RETURN OLD;
END IF;
END;
$$ language 'plpgsql';
CREATE TRIGGER some_table_update_date
BEFORE UPDATE
ON "user_password"
FOR ROW
EXECUTE PROCEDURE update_modified_column(); |
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Hôte : localhost
-- Généré le : Dim 01 juil. 2018 à 15:04
-- Version du serveur : 5.7.19-log
-- Version de PHP : 7.1.9
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 */;
--
-- Base de données : `structure`
--
CREATE DATABASE IF NOT EXISTS `structure` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
USE `structure`;
-- --------------------------------------------------------
--
-- Structure de la table `authcookieremember`
--
DROP TABLE IF EXISTS `authcookieremember`;
CREATE TABLE IF NOT EXISTS `authcookieremember` (
`ID` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`ID_user` int(11) UNSIGNED NOT NULL,
`token` varchar(255) NOT NULL,
`expire` int(10) UNSIGNED NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `authsess`
--
DROP TABLE IF EXISTS `authsess`;
CREATE TABLE IF NOT EXISTS `authsess` (
`ID` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`ID_user` int(11) UNSIGNED NOT NULL,
`token` varchar(255) NOT NULL,
`IP` varchar(100) NOT NULL,
`PHPSESSID` varchar(255) NOT NULL,
`expire` int(10) UNSIGNED NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `chat`
--
DROP TABLE IF EXISTS `chat`;
CREATE TABLE IF NOT EXISTS `chat` (
`ID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`ID_user` int(10) UNSIGNED NOT NULL,
`content` varchar(255) NOT NULL,
`date_post` datetime NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `error`
--
DROP TABLE IF EXISTS `error`;
CREATE TABLE IF NOT EXISTS `error` (
`ID` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`error` text NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `image`
--
DROP TABLE IF EXISTS `image`;
CREATE TABLE IF NOT EXISTS `image` (
`ID` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`hash` varchar(255) NOT NULL,
`path` text NOT NULL,
`extension` varchar(255) NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `pdf`
--
DROP TABLE IF EXISTS `pdf`;
CREATE TABLE IF NOT EXISTS `pdf` (
`ID` int(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`hash` varchar(255) NOT NULL,
`path` text NOT NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Structure de la table `user`
--
DROP TABLE IF EXISTS `user`;
CREATE TABLE IF NOT EXISTS `user` (
`ID` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`login` varchar(255) CHARACTER SET ascii NOT NULL DEFAULT 'Bob',
`name` varchar(255) NOT NULL,
`firstname` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`pass` varchar(255) NOT NULL,
`date_register` datetime NOT NULL,
`avatar_path` varchar(255) DEFAULT '1',
`description` text,
`rank` enum('user','admin','webmaster') NOT NULL DEFAULT 'user',
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
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 */;
|
DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
`user_id` INTEGER PRIMARY KEY,
`name` TEXT NOT NULL,
`gender` INTEGER NOT NULL,
`birthday` TEXT NOT NULL,
`email` TEXT NOT NULL,
`role` TEXT NOT NULL DEFAULT 'user',
`password` TEXT NOT NULL,
`api_token` TEXT,
`created_at` TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` TEXT
);
DROP TABLE IF EXISTS `remember_tokens`;
CREATE TABLE `remember_tokens` (
`provider` TEXT NOT NULL,
`remember_token` TEXT NOT NULL,
`remember_id` TEXT NOT NULL,
`expires_at` TEXT NOT NULL,
`created_at` TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` TEXT,
PRIMARY KEY(`provider`, `remember_token`)
);
|
<filename>db/queries/user.sql
-- name: GetUserByID :one
SELECT * FROM users
WHERE id = $1 LIMIT 1;
-- name: GetUserByEmail :one
SELECT * FROM users
WHERE email = $1 LIMIT 1; |
<reponame>zubliquzaini/ITS332-Sales-Management-System
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Jun 12, 2020 at 07:05 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.2.28
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: `sales`
--
-- --------------------------------------------------------
--
-- Table structure for table `customer`
--
CREATE TABLE `customer` (
`custid` varchar(10) NOT NULL,
`custname` varchar(50) NOT NULL,
`custphone` int(15) NOT NULL,
`custadd` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `customer`
--
INSERT INTO `customer` (`custid`, `custname`, `custphone`, `custadd`) VALUES
('123456', 'Abu', 197649482, '16 Jalan Kelubi 4/7A'),
('1500442', 'Kamal', 197649488, '14 Jalan Tenaga 5/6A'),
('1669906', 'Zub', 197649482, '14 Jalan Kelubi 4/7A'),
('2172912', 'Cincan', 184484392, '15 Jalan Limau 5/4A');
-- --------------------------------------------------------
--
-- Table structure for table `product`
--
CREATE TABLE `product` (
`prodid` varchar(10) NOT NULL,
`prodname` varchar(50) NOT NULL,
`prodcost` double NOT NULL,
`prodprice` double NOT NULL,
`prodtype` varchar(30) NOT NULL,
`prodquantity` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `product`
--
INSERT INTO `product` (`prodid`, `prodname`, `prodcost`, `prodprice`, `prodtype`, `prodquantity`) VALUES
('2020165', 'Caliburn', 20, 100, 'Mod', 250),
('2020475', 'Artery', 20, 50, 'Mod', 100);
-- --------------------------------------------------------
--
-- Table structure for table `product_sales`
--
CREATE TABLE `product_sales` (
`psalesid` varchar(10) NOT NULL,
`salesid` varchar(10) NOT NULL,
`psalesquantity` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `product_sales`
--
INSERT INTO `product_sales` (`psalesid`, `salesid`, `psalesquantity`) VALUES
('2022576456', '2020556291', 1),
('2022596811', '2020576646', 1),
('2022597121', '2020576646', 2),
('2022601775', '2020581610', 1),
('2022666338', '2020646173', 1),
('2022666648', '2020646173', 2),
('2022691607', '2020671442', 1),
('2022748938', '2020728773', 1),
('2022756001', '2020735836', 22);
-- --------------------------------------------------------
--
-- Table structure for table `sales`
--
CREATE TABLE `sales` (
`salesid` varchar(10) NOT NULL,
`custid` varchar(10) NOT NULL,
`staffid` varchar(10) NOT NULL,
`psalesid` varchar(10) DEFAULT NULL,
`salesquantity` int(11) DEFAULT NULL,
`salesdate` date DEFAULT NULL,
`salesprofit` double DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `sales`
--
INSERT INTO `sales` (`salesid`, `custid`, `staffid`, `psalesid`, `salesquantity`, `salesdate`, `salesprofit`) VALUES
('2020556291', '123456', '2020198436', '0', 0, '2020-06-12', 1),
('2020576646', '123456', '2020198436', '0', 0, '2020-06-12', 1),
('2020581610', '123456', '2020198436', '0', 0, '2020-06-12', 1),
('2020646173', '123456', '2020198436', '0', 0, '2020-06-12', 1),
('2020671442', '123456', '2020198436', '0', 0, '2020-06-12', 1),
('2020710889', '123456', '2020198436', '0', 0, '2020-06-12', 1),
('2020728773', '123456', '2020198436', '0', 0, '2020-06-12', 1),
('2020735836', '123456', '2020198436', '0', 0, '2020-06-12', 1);
-- --------------------------------------------------------
--
-- Table structure for table `staff`
--
CREATE TABLE `staff` (
`staffid` varchar(10) NOT NULL,
`staffname` varchar(50) NOT NULL,
`staffphone` int(11) NOT NULL,
`staffadd` varchar(50) NOT NULL,
`staffsalary` double NOT NULL,
`staffrole` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `staff`
--
INSERT INTO `staff` (`staffid`, `staffname`, `staffphone`, `staffadd`, `staffsalary`, `staffrole`) VALUES
('2020198436', 'Siti', 197649482, '15 Jalan Batu 5/5A', 4000, 'Manager');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `customer`
--
ALTER TABLE `customer`
ADD PRIMARY KEY (`custid`);
--
-- Indexes for table `product`
--
ALTER TABLE `product`
ADD PRIMARY KEY (`prodid`);
--
-- Indexes for table `product_sales`
--
ALTER TABLE `product_sales`
ADD PRIMARY KEY (`psalesid`),
ADD KEY `salesid` (`salesid`);
--
-- Indexes for table `sales`
--
ALTER TABLE `sales`
ADD PRIMARY KEY (`salesid`),
ADD KEY `custid` (`custid`),
ADD KEY `staffid` (`staffid`);
--
-- Indexes for table `staff`
--
ALTER TABLE `staff`
ADD PRIMARY KEY (`staffid`);
--
-- Constraints for dumped tables
--
--
-- Constraints for table `product_sales`
--
ALTER TABLE `product_sales`
ADD CONSTRAINT `salesid` FOREIGN KEY (`salesid`) REFERENCES `sales` (`salesid`);
--
-- Constraints for table `sales`
--
ALTER TABLE `sales`
ADD CONSTRAINT `custid` FOREIGN KEY (`custid`) REFERENCES `customer` (`custid`),
ADD CONSTRAINT `staffid` FOREIGN KEY (`staffid`) REFERENCES `staff` (`staffid`);
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>category_view.sql
DROP TABLE IF EXISTS `category_view`;
CREATE VIEW `category_view` AS SELECT `a`.`id` AS `id`, `a`.`category_name` AS `category_name`, `a`.`description` AS `description`,`a`.`parent_id` AS `parent_id`, `b`.`category_name` AS `parent`, `a`.`active` AS `active` FROM (`categories` `a` left join `categories` `b` on(`a`.`parent_id` = `b`.`id`)) ;
|
<reponame>DimitarDKirov/Data-Bases
-- 3.Write a SQL query to find the full name, salary and department of the employees that take the minimal salary in their department.
--Use a nested SELECT statement.
USE TelerikAcademy
SELECT emp.FirstName +' '+ emp.LastName AS 'Full Name', emp.Salary, dep.Name
FROM Employees emp
INNER JOIN Departments dep
ON emp.DepartmentID = dep.DepartmentID
WHERE emp.Salary =
(SELECT MIN(e.Salary) FROM Employees e
WHERE e.DepartmentID = emp.DepartmentID)
|
<gh_stars>0
-- This SQL script only creates the database schema
-- All the rest (tables and data) are created by EntityFramework
CREATE DATABASE user_mgmt_db;
|
<reponame>TSalaam/ServiceMonitor.NetCore
USE [RAMServiceMonitor]
GO
create table [dbo].[ServiceCategory]
(
[ID] smallint not null identity(100, 100),
[Name] nvarchar(100) null
)
create table [dbo].[Service]
(
[ID] smallint not null identity(1000, 1000),
[ServiceCategoryID] smallint not null,
[Name] nvarchar(100) not null
)
create table [dbo].[ServiceUser]
(
[ID] smallint not null identity(1, 1),
[ServiceID] smallint not null,
[UserID] uniqueidentifier not null
)
create table [dbo].[Watcher]
(
[ID] smallint not null identity(1000, 1000),
[Name] nvarchar(100) not null,
[Description] nvarchar(max) null,
[AssemblyQualifiedName] nvarchar(255) not null
)
create table [dbo].[ServiceWatcher]
(
[ID] smallint not null identity(1, 1),
[ServiceID] smallint not null,
[WatcherID] smallint not null,
)
create table [dbo].[Environment]
(
[ID] smallint not null identity(100, 100),
[Name] nvarchar(50) not null
)
create table [dbo].[ServiceEnvironment]
(
[ID] smallint not null identity(1, 1),
[ServiceID] smallint not null,
[EnvironmentID] smallint not null,
[Interval] int not null,
[Description] nvarchar(max) null,
[Url] nvarchar(max) null,
[Address] nvarchar(max) null,
[ConnectionString] nvarchar(max) null,
[Active] bit not null
)
create table [dbo].[ServiceEnvironmentStatus]
(
[ID] int not null identity(1, 1),
[ServiceEnvironmentID] smallint not null,
[Successful] bit not null,
[WatchCount] int not null,
[LastWatch] datetime not null
)
create table [dbo].[ServiceEnvironmentStatusLog]
(
[ID] int not null identity(1, 1),
[ServiceEnvironmentStatusID] int not null,
[Target] nvarchar(255) null,
[ActionName] nvarchar(50) null,
[Successful] bit not null,
[ShortMessage] nvarchar(max) null,
[FullMessage] nvarchar(max) null,
[Date] datetime not null
)
|
create table TOKEN_SCHEMA.TOKEN_TABLE_NAME
(
id uuid default uuid_generate_v4() not null
constraint TOKEN_TABLE_NAME_pkey
primary key,
parent_id uuid,
former_parent_id uuid,
status_id integer default 1
constraint TOKEN_TABLE_NAME_content_node_statuses_id_fk
references core.content_node_statuses,
TOKEN_DISPLAY_COLUMN_NAME text,
created_at timestamp default CURRENT_TIMESTAMP,
created_by uuid,
updated_at timestamp,
updated_by uuid,
deleted_at timestamp,
deleted_by uuid
);
alter table TOKEN_SCHEMA.TOKEN_TABLE_NAME owner to TOKEN_DB_USER;
create unique index if not exists TOKEN_TABLE_NAME_id_cindex
on TOKEN_SCHEMA.TOKEN_TABLE_NAME (id);
|
DROP TABLE IF EXISTS notifications; |
<reponame>whackingMUFN/Employee_Manager<filename>db/employeeSeed.sql
USE employee_db;
INSERT INTO employee (first_name, last_name, role_id, manager_id)
VALUES
("Cathy", "Johnson", 3, null),
("Vanessa", "Ambrose", 1, null),
("Derek", "Zoolander", 5, null),
("Steve", "Isaacs", 2, 2),
("Nancy", "Hampton", 4, 1),
("Caius", "Engels", 6, 3);
INSERT INTO role (title, salary, department_id)
VALUES
("Access Manager", 90000, 1),
("Access Analyst", 60000, 1),
("Sales Manager", 70000, 2),
("Sales person", 45000, 2),
("HR Manager", 100000, 3),
("HR Analyst", 72000, 3),
("Legal Analyst", 85000, 4);
INSERT INTO department (name)
VALUES
("IT Operations"),
("Sales"),
("Human Resources"),
("Legal");
|
<reponame>mvelasquezp/tablero
-- MySQL dump 10.13 Distrib 5.6.23, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: tc_minsa
-- ------------------------------------------------------
-- Server version 5.5.5-10.1.32-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 utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `ma_campos`
--
DROP TABLE IF EXISTS `ma_campos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ma_campos` (
`id_campo` int(11) NOT NULL AUTO_INCREMENT,
`id_empresa` int(11) NOT NULL,
`id_tipo` int(11) NOT NULL,
`des_campo` varchar(50) NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id_campo`,`id_empresa`),
KEY `id_tipo` (`id_tipo`),
KEY `id_empresa` (`id_empresa`),
CONSTRAINT `ma_campos_ibfk_1` FOREIGN KEY (`id_tipo`) REFERENCES `sys_tipos_dato` (`id_tipo`),
CONSTRAINT `ma_campos_ibfk_2` FOREIGN KEY (`id_empresa`) REFERENCES `ma_empresa` (`id_empresa`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ma_campos`
--
LOCK TABLES `ma_campos` WRITE;
/*!40000 ALTER TABLE `ma_campos` DISABLE KEYS */;
INSERT INTO `ma_campos` VALUES (1,1,4,'Fecha registro','2018-09-08 17:38:35',NULL),(2,1,4,'Fecha salida','2018-09-08 17:38:54',NULL),(3,1,1,'Valor','2018-09-08 17:39:04',NULL),(4,1,3,'Observación','2018-09-08 17:39:16',NULL),(5,1,3,'Situación','2018-09-08 17:39:22',NULL);
/*!40000 ALTER TABLE `ma_campos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ma_empresa`
--
DROP TABLE IF EXISTS `ma_empresa`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ma_empresa` (
`id_empresa` int(11) NOT NULL AUTO_INCREMENT,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
`st_vigente` varchar(10) NOT NULL DEFAULT 'Vigente',
`cod_entidad` varchar(15) DEFAULT NULL,
PRIMARY KEY (`id_empresa`),
KEY `R_1` (`cod_entidad`),
CONSTRAINT `R_1` FOREIGN KEY (`cod_entidad`) REFERENCES `ma_entidad` (`cod_entidad`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ma_empresa`
--
LOCK TABLES `ma_empresa` WRITE;
/*!40000 ALTER TABLE `ma_empresa` DISABLE KEYS */;
INSERT INTO `ma_empresa` VALUES (1,'2018-09-02 11:27:54',NULL,'Vigente','20131373237');
/*!40000 ALTER TABLE `ma_empresa` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ma_entidad`
--
DROP TABLE IF EXISTS `ma_entidad`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ma_entidad` (
`cod_entidad` varchar(15) NOT NULL,
`des_nombre_1` varchar(50) NOT NULL,
`des_nombre_2` varchar(50) DEFAULT NULL,
`des_nombre_3` varchar(50) DEFAULT NULL,
`tp_documento` varchar(3) NOT NULL,
`st_vigente` varchar(10) NOT NULL DEFAULT 'Vigente',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`cod_entidad`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ma_entidad`
--
LOCK TABLES `ma_entidad` WRITE;
/*!40000 ALTER TABLE `ma_entidad` DISABLE KEYS */;
INSERT INTO `ma_entidad` VALUES ('20131373237','MINISTERIO DE SALUD','MINISTERIO DE SALUD',NULL,'RUC','Vigente','2018-09-02 11:25:55',NULL);
/*!40000 ALTER TABLE `ma_entidad` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ma_hitos_control`
--
DROP TABLE IF EXISTS `ma_hitos_control`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ma_hitos_control` (
`id_hito` int(11) NOT NULL AUTO_INCREMENT,
`id_empresa` int(11) NOT NULL,
`des_hito` varchar(50) NOT NULL,
`st_vigente` varchar(10) DEFAULT 'Vigente',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
`id_responsable` int(11) DEFAULT NULL,
PRIMARY KEY (`id_hito`,`id_empresa`),
KEY `ma_hitos_control_ibfk_2_idx` (`id_empresa`,`id_responsable`),
CONSTRAINT `ma_hitos_control_ibfk_1` FOREIGN KEY (`id_empresa`) REFERENCES `ma_empresa` (`id_empresa`),
CONSTRAINT `ma_hitos_control_ibfk_2` FOREIGN KEY (`id_empresa`, `id_responsable`) REFERENCES `ma_puesto` (`id_empresa`, `id_puesto`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ma_hitos_control`
--
LOCK TABLES `ma_hitos_control` WRITE;
/*!40000 ALTER TABLE `ma_hitos_control` DISABLE KEYS */;
INSERT INTO `ma_hitos_control` VALUES (1,1,'Solicitud del pedido','Vigente','2018-09-08 18:18:43',NULL,5),(2,1,'Disponibilidad presupuestaria','Vigente','2018-09-08 18:19:07',NULL,3),(3,1,'Aprobación del requerimiento','Vigente','2018-09-08 18:19:51',NULL,1),(4,1,'Estudio de mercado','Vigente','2018-09-08 18:20:04',NULL,7),(5,1,'Certificación presupuestal','Vigente','2018-09-08 18:20:22',NULL,2),(6,1,'Emisión de la orden','Vigente','2018-09-08 18:20:40',NULL,1),(7,1,'Pago','Vigente','2018-09-15 12:51:24',NULL,3);
/*!40000 ALTER TABLE `ma_hitos_control` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ma_menu`
--
DROP TABLE IF EXISTS `ma_menu`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ma_menu` (
`id_item` int(11) NOT NULL AUTO_INCREMENT,
`des_nombre` varchar(30) NOT NULL,
`st_vigente` varchar(15) NOT NULL DEFAULT 'Vigente',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
`id_ancestro` int(11) DEFAULT NULL,
`des_url` varchar(30) NOT NULL,
PRIMARY KEY (`id_item`)
) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ma_menu`
--
LOCK TABLES `ma_menu` WRITE;
/*!40000 ALTER TABLE `ma_menu` DISABLE KEYS */;
INSERT INTO `ma_menu` VALUES (1,'Registros','Vigente','2018-09-02 14:09:55',NULL,NULL,'registros'),(2,'Estandarización de procesos','Vigente','2018-09-02 14:09:55',NULL,NULL,'estandarizacion'),(3,'Control y seguimiento','Vigente','2018-09-02 14:09:55',NULL,NULL,'seguimiento'),(4,'Reportes e informes','Vigente','2018-09-02 14:09:55',NULL,NULL,'reportes'),(5,'Lista de usuarios','Vigente','2018-09-02 14:12:19',NULL,1,'usuarios'),(6,'Organigrama','Vigente','2018-09-02 14:12:19',NULL,1,'organigrama'),(7,'Administradores','Vigente','2018-09-02 14:12:19',NULL,1,'administradores'),(8,'Maestros','Vigente','2018-09-08 12:01:08',NULL,2,'maestros'),(9,'Procesos','Vigente','2018-09-15 11:03:44',NULL,2,'procesos'),(10,'Matriz de valoración','Vigente','2018-09-15 17:28:34',NULL,2,'valoracion'),(11,'Protal de requerimientos','Vigente','2018-09-15 20:01:55',NULL,3,'resumen'),(12,'Control de cambios','Vigente','2018-09-15 20:01:55',NULL,3,'cambios');
/*!40000 ALTER TABLE `ma_menu` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ma_oficina`
--
DROP TABLE IF EXISTS `ma_oficina`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ma_oficina` (
`id_oficina` int(11) NOT NULL AUTO_INCREMENT,
`des_oficina` varchar(50) NOT NULL,
`st_vigente` varchar(10) NOT NULL DEFAULT 'Vigente',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
`num_jerarquia` int(11) DEFAULT NULL,
`id_encargado` int(11) DEFAULT NULL,
`id_ancestro` int(11) DEFAULT NULL,
`id_empresa` int(11) NOT NULL,
PRIMARY KEY (`id_oficina`,`id_empresa`),
KEY `R_12` (`id_empresa`),
CONSTRAINT `R_12` FOREIGN KEY (`id_empresa`) REFERENCES `ma_empresa` (`id_empresa`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ma_oficina`
--
LOCK TABLES `ma_oficina` WRITE;
/*!40000 ALTER TABLE `ma_oficina` DISABLE KEYS */;
/*!40000 ALTER TABLE `ma_oficina` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ma_puesto`
--
DROP TABLE IF EXISTS `ma_puesto`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ma_puesto` (
`id_puesto` int(11) NOT NULL AUTO_INCREMENT,
`des_puesto` varchar(50) DEFAULT NULL,
`num_jerarquia` int(11) DEFAULT NULL,
`st_vigente` varchar(10) DEFAULT 'Vigente',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
`id_empresa` int(11) NOT NULL,
`id_oficina` int(11) DEFAULT NULL,
`id_superior` int(11) DEFAULT NULL,
PRIMARY KEY (`id_puesto`,`id_empresa`),
KEY `R_11` (`id_empresa`),
KEY `R_13` (`id_oficina`,`id_empresa`),
CONSTRAINT `R_11` FOREIGN KEY (`id_empresa`) REFERENCES `ma_empresa` (`id_empresa`),
CONSTRAINT `R_13` FOREIGN KEY (`id_oficina`, `id_empresa`) REFERENCES `ma_oficina` (`id_oficina`, `id_empresa`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ma_puesto`
--
LOCK TABLES `ma_puesto` WRITE;
/*!40000 ALTER TABLE `ma_puesto` DISABLE KEYS */;
INSERT INTO `ma_puesto` VALUES (1,'Gerente General',1,'Vigente','2018-09-08 10:23:43',NULL,1,NULL,NULL),(2,'Gerente de TI',2,'Vigente','2018-09-08 10:38:42',NULL,1,NULL,1),(3,'Gerente de Finanzas',2,'Vigente','2018-09-08 17:50:53',NULL,1,NULL,1),(4,'Gerente de RRHH',2,'Vigente','2018-09-08 17:51:06',NULL,1,NULL,1),(5,'Analista TI',3,'Vigente','2018-09-08 17:51:27',NULL,1,NULL,2),(6,'<NAME>',3,'Vigente','2018-09-08 17:51:47',NULL,1,NULL,2),(7,'Gerente Comercial',2,'Vigente','2018-09-15 18:55:31',NULL,1,NULL,1);
/*!40000 ALTER TABLE `ma_puesto` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ma_usuarios`
--
DROP TABLE IF EXISTS `ma_usuarios`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ma_usuarios` (
`id_usuario` int(11) NOT NULL AUTO_INCREMENT,
`des_alias` varchar(30) NOT NULL,
`des_email` varchar(100) NOT NULL,
`des_telefono` varchar(15) DEFAULT NULL,
`tp_usuario` char(1) NOT NULL DEFAULT 'U',
`st_vigente` varchar(10) NOT NULL DEFAULT 'Vigente',
`password` varchar(200) NOT NULL,
`remember_token` varchar(200) DEFAULT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
`fe_ingreso` datetime DEFAULT NULL,
`st_verifica_mail` char(1) NOT NULL,
`fe_ultimo_acceso` datetime DEFAULT NULL,
`cod_entidad` varchar(15) DEFAULT NULL,
`id_empresa` int(11) NOT NULL,
PRIMARY KEY (`id_usuario`,`id_empresa`),
KEY `R_2` (`cod_entidad`),
KEY `R_3` (`id_empresa`),
CONSTRAINT `R_2` FOREIGN KEY (`cod_entidad`) REFERENCES `ma_entidad` (`cod_entidad`),
CONSTRAINT `R_3` FOREIGN KEY (`id_empresa`) REFERENCES `ma_empresa` (`id_empresa`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ma_usuarios`
--
LOCK TABLES `ma_usuarios` WRITE;
/*!40000 ALTER TABLE `ma_usuarios` DISABLE KEYS */;
INSERT INTO `ma_usuarios` VALUES (1,'admin','<EMAIL>','989 845 561','S','Vigente','$2y$10$7Eua2KNIbltGjLeLSKIY3.LsdmW.rPqLc5O25S8dZ2LvYaRYdCK5y','fyuGBVWyOUj7q5SirDIRul2L9a0AzKlqP8FfQ7Oscs0kp0w42YaqpcwLodsx','2018-09-02 11:28:52',NULL,NULL,'S',NULL,'20131373237',1);
/*!40000 ALTER TABLE `ma_usuarios` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pr_catalogo_hitos`
--
DROP TABLE IF EXISTS `pr_catalogo_hitos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pr_catalogo_hitos` (
`id_hito` int(11) NOT NULL,
`id_empresa` int(11) NOT NULL,
`id_catalogo` int(11) NOT NULL,
`id_usuario_registra` int(11) NOT NULL,
`nu_peso` decimal(4,2) NOT NULL,
`st_vigente` varchar(10) NOT NULL DEFAULT 'Vigente',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id_hito`,`id_empresa`,`id_catalogo`),
KEY `id_usuario_registra` (`id_usuario_registra`,`id_empresa`),
KEY `id_catalogo` (`id_catalogo`,`id_empresa`),
CONSTRAINT `pr_catalogo_hitos_ibfk_1` FOREIGN KEY (`id_usuario_registra`, `id_empresa`) REFERENCES `ma_usuarios` (`id_usuario`, `id_empresa`),
CONSTRAINT `pr_catalogo_hitos_ibfk_2` FOREIGN KEY (`id_hito`, `id_empresa`) REFERENCES `ma_hitos_control` (`id_hito`, `id_empresa`),
CONSTRAINT `pr_catalogo_hitos_ibfk_3` FOREIGN KEY (`id_catalogo`, `id_empresa`) REFERENCES `pr_catalogo_proyecto` (`id_catalogo`, `id_empresa`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pr_catalogo_hitos`
--
LOCK TABLES `pr_catalogo_hitos` WRITE;
/*!40000 ALTER TABLE `pr_catalogo_hitos` DISABLE KEYS */;
INSERT INTO `pr_catalogo_hitos` VALUES (1,1,1,1,2.00,'Vigente','2018-09-15 16:42:04',NULL),(1,1,2,1,3.00,'Vigente','2018-09-15 17:05:53',NULL),(2,1,1,1,1.00,'Vigente','2018-09-15 16:43:48',NULL),(3,1,2,1,1.00,'Vigente','2018-09-15 17:05:57',NULL),(4,1,1,1,3.00,'Vigente','2018-09-15 16:57:55','2018-09-15 22:05:37'),(6,1,1,1,1.00,'Vigente','2018-09-15 17:03:14',NULL),(6,1,2,1,1.00,'Vigente','2018-09-15 17:06:02',NULL),(7,1,1,1,4.00,'Vigente','2018-09-15 17:03:56',NULL),(7,1,2,1,5.00,'Vigente','2018-09-15 17:06:05',NULL);
/*!40000 ALTER TABLE `pr_catalogo_hitos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pr_catalogo_proyecto`
--
DROP TABLE IF EXISTS `pr_catalogo_proyecto`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pr_catalogo_proyecto` (
`id_catalogo` int(11) NOT NULL AUTO_INCREMENT,
`id_empresa` int(11) NOT NULL,
`des_catalogo` varchar(30) NOT NULL,
`st_vigente` varchar(10) NOT NULL DEFAULT 'Vigente',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id_catalogo`,`id_empresa`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pr_catalogo_proyecto`
--
LOCK TABLES `pr_catalogo_proyecto` WRITE;
/*!40000 ALTER TABLE `pr_catalogo_proyecto` DISABLE KEYS */;
INSERT INTO `pr_catalogo_proyecto` VALUES (1,1,'ASP','Vigente','2018-09-15 12:58:32',NULL),(2,1,'Terceros','Vigente','2018-09-15 12:58:33',NULL);
/*!40000 ALTER TABLE `pr_catalogo_proyecto` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pr_hitos_campo`
--
DROP TABLE IF EXISTS `pr_hitos_campo`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pr_hitos_campo` (
`id_hito` int(11) NOT NULL,
`id_empresa` int(11) NOT NULL,
`id_campo` int(11) NOT NULL,
`id_usuario_asigna` int(11) NOT NULL,
`st_vigente` varchar(10) DEFAULT 'Vigente',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id_hito`,`id_empresa`,`id_campo`),
KEY `id_campo` (`id_campo`,`id_empresa`),
KEY `id_usuario_asigna` (`id_usuario_asigna`,`id_empresa`),
CONSTRAINT `pr_hitos_campo_ibfk_1` FOREIGN KEY (`id_hito`, `id_empresa`) REFERENCES `ma_hitos_control` (`id_hito`, `id_empresa`),
CONSTRAINT `pr_hitos_campo_ibfk_2` FOREIGN KEY (`id_campo`, `id_empresa`) REFERENCES `ma_campos` (`id_campo`, `id_empresa`),
CONSTRAINT `pr_hitos_campo_ibfk_3` FOREIGN KEY (`id_usuario_asigna`, `id_empresa`) REFERENCES `ma_usuarios` (`id_usuario`, `id_empresa`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pr_hitos_campo`
--
LOCK TABLES `pr_hitos_campo` WRITE;
/*!40000 ALTER TABLE `pr_hitos_campo` DISABLE KEYS */;
INSERT INTO `pr_hitos_campo` VALUES (1,1,1,1,'Vigente','2018-09-09 18:45:20',NULL),(1,1,3,1,'Vigente','2018-09-09 18:45:22',NULL),(1,1,4,1,'Vigente','2018-09-09 18:47:06',NULL),(1,1,5,1,'Vigente','2018-09-09 18:47:00',NULL),(2,1,2,1,'Vigente','2018-09-09 18:48:48',NULL),(2,1,3,1,'Vigente','2018-09-09 18:48:48',NULL),(3,1,2,1,'Vigente','2018-09-09 18:50:12',NULL),(3,1,4,1,'Vigente','2018-09-09 18:50:12',NULL),(3,1,5,1,'Vigente','2018-09-09 18:50:13',NULL),(4,1,1,1,'Vigente','2018-09-09 18:50:20',NULL),(4,1,2,1,'Vigente','2018-09-09 18:50:20',NULL),(4,1,5,1,'Vigente','2018-09-09 18:50:19',NULL),(5,1,1,1,'Vigente','2018-09-09 18:50:29',NULL),(5,1,3,1,'Vigente','2018-09-09 18:50:30',NULL),(5,1,4,1,'Vigente','2018-09-09 18:50:31',NULL),(6,1,1,1,'Vigente','2018-09-09 18:50:37',NULL),(6,1,2,1,'Vigente','2018-09-09 18:50:38',NULL),(6,1,5,1,'Vigente','2018-09-09 18:50:39',NULL),(7,1,3,1,'Vigente','2018-09-15 12:51:29',NULL),(7,1,4,1,'Vigente','2018-09-15 12:51:31',NULL),(7,1,5,1,'Vigente','2018-09-15 12:51:32',NULL);
/*!40000 ALTER TABLE `pr_hitos_campo` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pr_proyecto`
--
DROP TABLE IF EXISTS `pr_proyecto`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pr_proyecto` (
`id_proyecto` int(11) NOT NULL AUTO_INCREMENT,
`id_empresa` int(11) NOT NULL,
`id_oficina` int(11) NOT NULL,
`id_catalogo` int(11) NOT NULL,
`des_codigo` varchar(15) NOT NULL,
`des_proyecto` varchar(100) NOT NULL,
`des_descripcion` varchar(150) DEFAULT NULL,
`des_expediente` varchar(30) DEFAULT NULL,
`des_hoja_tramite` varchar(30) DEFAULT NULL,
`num_valor` decimal(10,2) DEFAULT NULL,
`des_observaciones` varchar(150) DEFAULT NULL,
`fe_inicio` datetime NOT NULL,
`num_dias` int(11) NOT NULL,
`fe_fin` datetime NOT NULL,
`st_vigente` varchar(10) NOT NULL DEFAULT 'Vigente',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id_proyecto`,`id_empresa`),
KEY `id_empresa` (`id_empresa`),
KEY `id_catalogo` (`id_catalogo`,`id_empresa`),
KEY `id_oficina` (`id_oficina`,`id_empresa`),
CONSTRAINT `pr_proyecto_ibfk_1` FOREIGN KEY (`id_empresa`) REFERENCES `ma_empresa` (`id_empresa`),
CONSTRAINT `pr_proyecto_ibfk_2` FOREIGN KEY (`id_catalogo`, `id_empresa`) REFERENCES `pr_catalogo_proyecto` (`id_catalogo`, `id_empresa`),
CONSTRAINT `pr_proyecto_ibfk_3` FOREIGN KEY (`id_oficina`, `id_empresa`) REFERENCES `ma_oficina` (`id_oficina`, `id_empresa`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pr_proyecto`
--
LOCK TABLES `pr_proyecto` WRITE;
/*!40000 ALTER TABLE `pr_proyecto` DISABLE KEYS */;
/*!40000 ALTER TABLE `pr_proyecto` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pr_proyecto_hitos`
--
DROP TABLE IF EXISTS `pr_proyecto_hitos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pr_proyecto_hitos` (
`id_detalle` int(11) NOT NULL,
`id_proyecto` int(11) NOT NULL,
`id_hito` int(11) NOT NULL,
`id_empresa` int(11) NOT NULL,
`id_catalogo` int(11) NOT NULL,
`id_estado_proceso` int(11) NOT NULL,
`id_estado_documentacion` int(11) NOT NULL,
`id_responsable` int(11) NOT NULL,
`des_observaciones` varchar(150) DEFAULT NULL,
`fe_inicio` datetime NOT NULL,
`nu_dias` int(11) NOT NULL,
`fe_fin` datetime NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id_detalle`,`id_proyecto`,`id_hito`,`id_empresa`,`id_catalogo`),
KEY `id_responsable` (`id_responsable`,`id_empresa`),
KEY `id_estado_proceso` (`id_estado_proceso`),
KEY `id_estado_documentacion` (`id_estado_documentacion`),
KEY `id_proyecto` (`id_proyecto`,`id_empresa`),
KEY `id_hito` (`id_hito`,`id_empresa`,`id_catalogo`),
CONSTRAINT `pr_proyecto_hitos_ibfk_1` FOREIGN KEY (`id_responsable`, `id_empresa`) REFERENCES `ma_puesto` (`id_puesto`, `id_empresa`),
CONSTRAINT `pr_proyecto_hitos_ibfk_2` FOREIGN KEY (`id_estado_proceso`) REFERENCES `sys_estados` (`id_estado`),
CONSTRAINT `pr_proyecto_hitos_ibfk_3` FOREIGN KEY (`id_estado_documentacion`) REFERENCES `sys_estados` (`id_estado`),
CONSTRAINT `pr_proyecto_hitos_ibfk_4` FOREIGN KEY (`id_proyecto`, `id_empresa`) REFERENCES `pr_proyecto` (`id_proyecto`, `id_empresa`),
CONSTRAINT `pr_proyecto_hitos_ibfk_5` FOREIGN KEY (`id_hito`, `id_empresa`, `id_catalogo`) REFERENCES `pr_catalogo_hitos` (`id_hito`, `id_empresa`, `id_catalogo`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pr_proyecto_hitos`
--
LOCK TABLES `pr_proyecto_hitos` WRITE;
/*!40000 ALTER TABLE `pr_proyecto_hitos` DISABLE KEYS */;
/*!40000 ALTER TABLE `pr_proyecto_hitos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `pr_valoracion`
--
DROP TABLE IF EXISTS `pr_valoracion`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pr_valoracion` (
`id_estado_p` int(11) NOT NULL,
`id_estado_c` int(11) NOT NULL,
`num_puntaje` int(11) NOT NULL,
`id_usuario_registra` int(11) NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id_estado_p`,`id_estado_c`),
KEY `id_estado_c` (`id_estado_c`),
CONSTRAINT `pr_valoracion_ibfk_1` FOREIGN KEY (`id_estado_p`) REFERENCES `sys_estados` (`id_estado`),
CONSTRAINT `pr_valoracion_ibfk_2` FOREIGN KEY (`id_estado_c`) REFERENCES `sys_estados` (`id_estado`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pr_valoracion`
--
LOCK TABLES `pr_valoracion` WRITE;
/*!40000 ALTER TABLE `pr_valoracion` DISABLE KEYS */;
INSERT INTO `pr_valoracion` VALUES (1,2,1,1,'2018-09-15 18:48:15','2018-09-15 23:49:52'),(1,4,2,1,'2018-09-15 18:48:15','2018-09-15 23:49:52'),(1,5,3,1,'2018-09-15 18:48:15','2018-09-15 23:49:53'),(3,2,4,1,'2018-09-15 18:48:15','2018-09-15 23:49:53'),(3,4,5,1,'2018-09-15 18:48:15','2018-09-15 23:49:53'),(3,5,6,1,'2018-09-15 18:43:07','2018-09-15 23:49:53'),(6,2,7,1,'2018-09-15 18:49:53',NULL),(6,4,8,1,'2018-09-15 18:49:53',NULL),(6,5,9,1,'2018-09-15 18:49:53',NULL);
/*!40000 ALTER TABLE `pr_valoracion` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sys_estados`
--
DROP TABLE IF EXISTS `sys_estados`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_estados` (
`id_estado` int(11) NOT NULL AUTO_INCREMENT,
`cod_estado` varchar(30) NOT NULL,
`des_estado` varchar(30) NOT NULL,
`tp_estado` char(1) NOT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id_estado`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sys_estados`
--
LOCK TABLES `sys_estados` WRITE;
/*!40000 ALTER TABLE `sys_estados` DISABLE KEYS */;
INSERT INTO `sys_estados` VALUES (1,'0-Por iniciar','Por iniciar','P','2018-09-09 11:41:41',NULL),(2,'1-Sin documentacion','Sin documentación','C','2018-09-09 11:49:03',NULL),(3,'2-En proceso','En proceso','P','2018-09-09 11:49:38',NULL),(4,'2-Pendiente','Pendiente','C','2018-09-09 11:49:50',NULL),(5,'3-Completo','Completo','C','2018-09-09 11:49:57',NULL),(6,'3-Cerrado','Cerrado','P','2018-09-09 11:50:14',NULL);
/*!40000 ALTER TABLE `sys_estados` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sys_permisos`
--
DROP TABLE IF EXISTS `sys_permisos`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_permisos` (
`id_item` int(11) NOT NULL,
`st_habilitado` char(1) NOT NULL DEFAULT 'S',
`st_vigente` varchar(15) NOT NULL DEFAULT 'Vigente',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
`id_usuario` int(11) NOT NULL,
`id_empresa` int(11) NOT NULL,
PRIMARY KEY (`id_item`,`id_usuario`,`id_empresa`),
KEY `R_6` (`id_usuario`,`id_empresa`),
CONSTRAINT `R_6` FOREIGN KEY (`id_usuario`, `id_empresa`) REFERENCES `ma_usuarios` (`id_usuario`, `id_empresa`),
CONSTRAINT `R_7` FOREIGN KEY (`id_item`) REFERENCES `ma_menu` (`id_item`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sys_permisos`
--
LOCK TABLES `sys_permisos` WRITE;
/*!40000 ALTER TABLE `sys_permisos` DISABLE KEYS */;
INSERT INTO `sys_permisos` VALUES (1,'S','Vigente','2018-09-02 14:16:00',NULL,1,1),(2,'S','Vigente','2018-09-02 14:16:00',NULL,1,1),(3,'S','Vigente','2018-09-02 14:16:00',NULL,1,1),(4,'S','Vigente','2018-09-02 14:16:00',NULL,1,1),(5,'S','Vigente','2018-09-02 14:16:00',NULL,1,1),(6,'S','Vigente','2018-09-02 14:16:00',NULL,1,1),(7,'S','Vigente','2018-09-02 14:16:00',NULL,1,1),(8,'S','Vigente','2018-09-08 12:01:29',NULL,1,1),(9,'S','Vigente','2018-09-15 11:04:08',NULL,1,1),(10,'S','Vigente','2018-09-15 17:28:48',NULL,1,1),(11,'S','Vigente','2018-09-15 20:02:12',NULL,1,1),(12,'S','Vigente','2018-09-15 20:02:13',NULL,1,1);
/*!40000 ALTER TABLE `sys_permisos` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `sys_tipos_dato`
--
DROP TABLE IF EXISTS `sys_tipos_dato`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `sys_tipos_dato` (
`id_tipo` int(11) NOT NULL AUTO_INCREMENT,
`des_tipo` varchar(30) DEFAULT NULL,
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id_tipo`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `sys_tipos_dato`
--
LOCK TABLES `sys_tipos_dato` WRITE;
/*!40000 ALTER TABLE `sys_tipos_dato` DISABLE KEYS */;
INSERT INTO `sys_tipos_dato` VALUES (1,'Número entero','2018-09-08 16:29:06',NULL),(2,'Número decimal','2018-09-08 16:29:07',NULL),(3,'Texto','2018-09-08 16:29:07',NULL),(4,'Fecha','2018-09-08 16:29:07',NULL),(5,'Caracter','2018-09-08 16:29:07',NULL),(6,'Lógico','2018-09-08 16:29:07',NULL);
/*!40000 ALTER TABLE `sys_tipos_dato` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `us_usuario_puesto`
--
DROP TABLE IF EXISTS `us_usuario_puesto`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `us_usuario_puesto` (
`st_vigente` varchar(10) DEFAULT 'Vigente',
`created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_at` datetime DEFAULT NULL,
`id_usuario` int(11) NOT NULL,
`id_empresa` int(11) NOT NULL,
`id_puesto` int(11) NOT NULL,
PRIMARY KEY (`id_usuario`,`id_empresa`,`id_puesto`),
KEY `R_10` (`id_puesto`,`id_empresa`),
CONSTRAINT `R_10` FOREIGN KEY (`id_puesto`, `id_empresa`) REFERENCES `ma_puesto` (`id_puesto`, `id_empresa`),
CONSTRAINT `R_9` FOREIGN KEY (`id_usuario`, `id_empresa`) REFERENCES `ma_usuarios` (`id_usuario`, `id_empresa`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `us_usuario_puesto`
--
LOCK TABLES `us_usuario_puesto` WRITE;
/*!40000 ALTER TABLE `us_usuario_puesto` DISABLE KEYS */;
/*!40000 ALTER TABLE `us_usuario_puesto` 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 2018-09-16 21:15:25
|
UPDATE casesvc.category
SET oldcasesampleunittypes = 'B,BI,H'
WHERE categorypk = 'OFFLINE_RESPONSE_PROCESSED'; |
--Chapter 6
--Recipe 2
--How to do it
--Step 1.
WITH astar AS (
SELECT * FROM pgr_astar(
'SELECT gid AS id, source, target,
length AS cost, x1, y1, x2, y2 FROM chp06.cleveland_ways',
89475,
14584,
false
))SELECT
gid,
the_geom
FROM chp06.cleveland_ways w, astar a
WHERE w.gid = a.edge;
|
CREATE VIEW v_UserWithCountries
AS
SELECT CONCAT(c.FirstName, ' ', c.LastName) AS CustomerName,
c.Age, c.Gender, cc.Name
FROM Customers AS c
JOIN Countries AS cc
ON cc.Id = c.CountryId |
<reponame>leisterfrancisco/eos-rate
CREATE TABLE producers (
owner text PRIMARY KEY,
system jsonb NOT NULL,
bpjson jsonb NOT NULL
); |
SELECT "MLB_62"."batter_name" AS "batter_name", (SUM(CAST("MLB_62"."wRC." AS SIGNED)) * -1) AS "usr:Calculation_541206061053120513:ok" FROM "MLB_62" WHERE ((CAST("MLB_62"."PA" AS SIGNED) >= 0) AND (CAST("MLB_62"."PA" AS SIGNED) <= 668) AND ("MLB_62"."parentteam" = 'NYM') AND (CAST("MLB_62"."year" AS SIGNED) = 2015)) GROUP BY "MLB_62"."batter_name";
|
<reponame>pktlq2014/ReactJS-ThemXoaSua
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 11, 2020 at 08:20 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.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: `biometricattendace`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(11) NOT NULL,
`admin_name` varchar(30) NOT NULL,
`admin_email` varchar(80) NOT NULL,
`admin_pwd` longtext NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `admin_name`, `admin_email`, `admin_pwd`) VALUES
(1, 'Admin', '<EMAIL>', <PASSWORD>');
-- --------------------------------------------------------
--
-- Table structure for table `devices`
--
CREATE TABLE `devices` (
`id` int(11) NOT NULL,
`device_name` varchar(50) NOT NULL,
`device_dep` varchar(20) NOT NULL,
`device_uid` text NOT NULL,
`device_date` date NOT NULL,
`device_mode` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `pwd_reset`
--
CREATE TABLE `pwd_reset` (
`pwd_reset_id` int(11) NOT NULL,
`pwd_reset_email` varchar(50) NOT NULL,
`pwd_reset_selector` text NOT NULL,
`pwd_reset_token` longtext NOT NULL,
`pwd_reset_expires` varchar(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`username` varchar(30) NOT NULL DEFAULT 'None',
`serialnumber` double NOT NULL DEFAULT '0',
`gender` varchar(10) NOT NULL DEFAULT 'None',
`email` varchar(50) NOT NULL DEFAULT 'None',
`fingerprint_id` int(11) NOT NULL,
`fingerprint_select` tinyint(1) NOT NULL DEFAULT '0',
`user_date` date NOT NULL,
`device_uid` varchar(20) NOT NULL DEFAULT '0',
`device_dep` varchar(20) NOT NULL DEFAULT '0',
`del_fingerid` tinyint(1) NOT NULL DEFAULT '0',
`add_fingerid` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `users_logs`
--
CREATE TABLE `users_logs` (
`id` int(11) NOT NULL,
`username` varchar(100) NOT NULL,
`serialnumber` double NOT NULL,
`fingerprint_id` int(5) NOT NULL,
`device_uid` varchar(20) NOT NULL,
`device_dep` varchar(20) NOT NULL,
`checkindate` date NOT NULL,
`timein` time NOT NULL,
`timeout` time NOT NULL,
`fingerout` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `devices`
--
ALTER TABLE `devices`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `pwd_reset`
--
ALTER TABLE `pwd_reset`
ADD PRIMARY KEY (`pwd_reset_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users_logs`
--
ALTER TABLE `users_logs`
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 `devices`
--
ALTER TABLE `devices`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `pwd_reset`
--
ALTER TABLE `pwd_reset`
MODIFY `pwd_reset_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users_logs`
--
ALTER TABLE `users_logs`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
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 */;
|
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.1
-- Dumped by pg_dump version 12.1
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- Name: farm_datasource; Type: TABLE; Schema: public; Owner: dairybrain
--
CREATE TABLE public.farm_datasource (
id integer NOT NULL,
farm_id integer,
software_id integer,
software_version text,
file_location text,
datasource_type text,
script_name text,
script_arguments text,
active boolean
);
ALTER TABLE public.farm_datasource OWNER TO dairybrain;
--
-- Name: farm_datasource_id_seq; Type: SEQUENCE; Schema: public; Owner: dairybrain
--
CREATE SEQUENCE public.farm_datasource_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.farm_datasource_id_seq OWNER TO dairybrain;
--
-- Name: farm_datasource_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dairybrain
--
ALTER SEQUENCE public.farm_datasource_id_seq OWNED BY public.farm_datasource.id;
--
-- Name: farm_ingest_status; Type: TABLE; Schema: public; Owner: dairybrain
--
CREATE TABLE public.farm_ingest_status (
farm_id integer,
active boolean DEFAULT false NOT NULL
);
ALTER TABLE public.farm_ingest_status OWNER TO dairybrain;
--
-- Name: farms; Type: TABLE; Schema: public; Owner: dairybrain
--
CREATE TABLE public.farms (
farm_id integer NOT NULL,
name character varying(50) NOT NULL,
owner text NOT NULL,
address text,
phone character varying(20),
create_date date DEFAULT CURRENT_DATE NOT NULL,
dialect text DEFAULT 'postgres'::text,
ingest_user text,
host text DEFAULT 'dairy-db-2.discovery.wisc.edu'::text,
port integer DEFAULT 5432,
database text
);
ALTER TABLE public.farms OWNER TO dairybrain;
--
-- Name: farms_farm_id_seq; Type: SEQUENCE; Schema: public; Owner: dairybrain
--
CREATE SEQUENCE public.farms_farm_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.farms_farm_id_seq OWNER TO dairybrain;
--
-- Name: farms_farm_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dairybrain
--
ALTER SEQUENCE public.farms_farm_id_seq OWNED BY public.farms.farm_id;
--
-- Name: ingest_log; Type: TABLE; Schema: public; Owner: dairybrain
--
CREATE TABLE public.ingest_log (
id integer NOT NULL,
farm_id integer,
farm_datasource_id integer,
run_date date DEFAULT CURRENT_DATE,
ingest_file_name text,
export_date date,
message text,
success boolean
);
ALTER TABLE public.ingest_log OWNER TO dairybrain;
--
-- Name: ingest_log_id_seq; Type: SEQUENCE; Schema: public; Owner: dairybrain
--
CREATE SEQUENCE public.ingest_log_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.ingest_log_id_seq OWNER TO dairybrain;
--
-- Name: ingest_log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dairybrain
--
ALTER SEQUENCE public.ingest_log_id_seq OWNED BY public.ingest_log.id;
--
-- Name: software; Type: TABLE; Schema: public; Owner: dairybrain
--
CREATE TABLE public.software (
id integer NOT NULL,
name text,
vendor text
);
ALTER TABLE public.software OWNER TO dairybrain;
--
-- Name: software_id_seq; Type: SEQUENCE; Schema: public; Owner: dairybrain
--
CREATE SEQUENCE public.software_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.software_id_seq OWNER TO dairybrain;
--
-- Name: software_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: dairybrain
--
ALTER SEQUENCE public.software_id_seq OWNED BY public.software.id;
--
-- Name: farm_datasource id; Type: DEFAULT; Schema: public; Owner: dairybrain
--
ALTER TABLE ONLY public.farm_datasource ALTER COLUMN id SET DEFAULT nextval('public.farm_datasource_id_seq'::regclass);
--
-- Name: farms farm_id; Type: DEFAULT; Schema: public; Owner: dairybrain
--
ALTER TABLE ONLY public.farms ALTER COLUMN farm_id SET DEFAULT nextval('public.farms_farm_id_seq'::regclass);
--
-- Name: ingest_log id; Type: DEFAULT; Schema: public; Owner: dairybrain
--
ALTER TABLE ONLY public.ingest_log ALTER COLUMN id SET DEFAULT nextval('public.ingest_log_id_seq'::regclass);
--
-- Name: software id; Type: DEFAULT; Schema: public; Owner: dairybrain
--
ALTER TABLE ONLY public.software ALTER COLUMN id SET DEFAULT nextval('public.software_id_seq'::regclass);
--
-- Data for Name: farm_datasource; Type: TABLE DATA; Schema: public; Owner: dairybrain
--
COPY public.farm_datasource (id, farm_id, software_id, software_version, file_location, datasource_type, script_name, script_arguments, active) FROM stdin;
2 1 1 \N /usr/local/airflow/test/larson/feedwatch feed feed_data_ingest.py \N t
8 6 \N \N /usr/local/airflow/test/arlington/dairycomp event event_data_ingest.py \N t
3 1 1 \N /usr/local/airflow/test/temp_farm/feedwatch feed feed_data_ingest.py \N t
7 6 \N \N /usr/local/airflow/test/arlington/agsource agsource agsource_data_ingest.py \N t
5 3 \N \N /usr/local/airflow/test/mystic_valley/dairycomp event event_data_ingest.py t
6 3 \N \N /usr/local/airflow/test/mystic_valley/tmrtracker feed feed_data_ingest.py t
4 2 1 /usr/local/airflow/test/wangen/dairycomp event event_data_ingest.py f
\.
--
-- Data for Name: farm_ingest_status; Type: TABLE DATA; Schema: public; Owner: dairybrain
--
COPY public.farm_ingest_status (farm_id, active) FROM stdin;
1 t
2 f
3 t
6 t
\.
--
-- Data for Name: farms; Type: TABLE DATA; Schema: public; Owner: dairybrain
--
COPY public.farms (farm_id, name, owner, address, phone, create_date, dialect, ingest_user, host, port, database) FROM stdin;
1 <NAME> <NAME> 2018-07-26 postgres ingest_user dairy-db-2.discovery.wisc.edu 5432 larson
2 Wangen Farms <NAME> 2018-07-26 postgres ingest_user dairy-db-2.discovery.wisc.edu 5432 wangen
3 Mystic Valley Dairy <NAME> 2018-07-26 postgres ingest_user dairy-db-2.discovery.wisc.edu 5432 mystic
5 Hazy Farms <NAME> 1234 Hazy Ln (608) 320-0459 2019-01-07 postgres \N dairy-db-2.discovery.wisc.edu 5432 \N
6 Arlington University of Wisconsin - Madison 2019-01-22 postgres \N dairy-db-2.discovery.wisc.edu 5432 arlington
\.
--
-- Data for Name: ingest_log; Type: TABLE DATA; Schema: public; Owner: dairybrain
--
COPY public.ingest_log (id, farm_id, farm_datasource_id, run_date, ingest_file_name, export_date, message, success) FROM stdin;
\.
--
-- Data for Name: software; Type: TABLE DATA; Schema: public; Owner: dairybrain
--
COPY public.software (id, name, vendor) FROM stdin;
1 DairyCOMP 305 Valley Ag Software
2 FeedWatch DairyOne
\.
--
-- Name: farm_datasource_id_seq; Type: SEQUENCE SET; Schema: public; Owner: dairybrain
--
SELECT pg_catalog.setval('public.farm_datasource_id_seq', 7, true);
--
-- Name: farms_farm_id_seq; Type: SEQUENCE SET; Schema: public; Owner: dairybrain
--
SELECT pg_catalog.setval('public.farms_farm_id_seq', 6, true);
--
-- Name: ingest_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: dairybrain
--
SELECT pg_catalog.setval('public.ingest_log_id_seq', 1, false);
--
-- Name: software_id_seq; Type: SEQUENCE SET; Schema: public; Owner: dairybrain
--
SELECT pg_catalog.setval('public.software_id_seq', 2, true);
--
-- Name: farm_datasource farm_datasource_pkey; Type: CONSTRAINT; Schema: public; Owner: dairybrain
--
ALTER TABLE ONLY public.farm_datasource
ADD CONSTRAINT farm_datasource_pkey PRIMARY KEY (id);
--
-- Name: farms farms_pkey; Type: CONSTRAINT; Schema: public; Owner: dairybrain
--
ALTER TABLE ONLY public.farms
ADD CONSTRAINT farms_pkey PRIMARY KEY (farm_id);
--
-- Name: ingest_log ingest_log_pkey; Type: CONSTRAINT; Schema: public; Owner: dairybrain
--
ALTER TABLE ONLY public.ingest_log
ADD CONSTRAINT ingest_log_pkey PRIMARY KEY (id);
--
-- Name: software software_pkey; Type: CONSTRAINT; Schema: public; Owner: dairybrain
--
ALTER TABLE ONLY public.software
ADD CONSTRAINT software_pkey PRIMARY KEY (id);
--
-- Name: farm_datasource farm_datasource_farm_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dairybrain
--
ALTER TABLE ONLY public.farm_datasource
ADD CONSTRAINT farm_datasource_farm_id_fkey FOREIGN KEY (farm_id) REFERENCES public.farms(farm_id);
--
-- Name: farm_datasource farm_datasource_software_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dairybrain
--
ALTER TABLE ONLY public.farm_datasource
ADD CONSTRAINT farm_datasource_software_id_fkey FOREIGN KEY (software_id) REFERENCES public.software(id);
--
-- Name: farm_ingest_status farm_ingest_status_farm_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dairybrain
--
ALTER TABLE ONLY public.farm_ingest_status
ADD CONSTRAINT farm_ingest_status_farm_id_fkey FOREIGN KEY (farm_id) REFERENCES public.farms(farm_id);
--
-- Name: ingest_log ingest_log_farm_datasource_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dairybrain
--
ALTER TABLE ONLY public.ingest_log
ADD CONSTRAINT ingest_log_farm_datasource_id_fkey FOREIGN KEY (farm_datasource_id) REFERENCES public.farm_datasource(id);
--
-- Name: ingest_log ingest_log_farm_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: dairybrain
--
ALTER TABLE ONLY public.ingest_log
ADD CONSTRAINT ingest_log_farm_id_fkey FOREIGN KEY (farm_id) REFERENCES public.farms(farm_id);
--
-- Name: SCHEMA public; Type: ACL; Schema: -; Owner: postgres
--
GRANT USAGE ON SCHEMA public TO ingest;
--
-- Name: TABLE farm_datasource; Type: ACL; Schema: public; Owner: dairybrain
--
GRANT SELECT ON TABLE public.farm_datasource TO ingest;
--
-- Name: TABLE farm_ingest_status; Type: ACL; Schema: public; Owner: dairybrain
--
GRANT SELECT ON TABLE public.farm_ingest_status TO ingest;
--
-- Name: TABLE farms; Type: ACL; Schema: public; Owner: dairybrain
--
GRANT SELECT,INSERT,UPDATE ON TABLE public.farms TO ingest;
--
-- Name: SEQUENCE farms_farm_id_seq; Type: ACL; Schema: public; Owner: dairybrain
--
GRANT USAGE ON SEQUENCE public.farms_farm_id_seq TO ingest;
--
-- Name: TABLE ingest_log; Type: ACL; Schema: public; Owner: dairybrain
--
GRANT SELECT ON TABLE public.ingest_log TO ingest;
--
-- Name: TABLE software; Type: ACL; Schema: public; Owner: dairybrain
--
GRANT SELECT ON TABLE public.software TO ingest;
--
-- PostgreSQL database dump complete
--
|
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Проблемы хакеров', 'Неспособность держать коннект в матрице, тяжелые последствия после подключения, особое внимание GOD, особое внимание корпораций, перенесенные дамп-шоки', -20, -40, -60,
true, 5)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Проблемы риггеров', 'Тяжелые последствия после подключения в дрона, шанс повредить пациенту при лечении, шанс сломать мод при установке \ снятии ...', -20, -40, -60, true, 2)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Проблемы самураев', 'Отторжение хрома (его проще вырезать), чувствительность к химоте (уменьшает порог кризисного эффекта), ...', -20, -40, -60, true, 1)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Проблемы магов',
'К магу плохо относятся духи, кому-то известна аура персонажа, откат сильнее бьет по магу, неэффективно тратятся реагенты, сложности при входе в астрал и астральных путешествиях', -20, -40,
-60, true, 4)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Проблемы фейсов', 'Увеличенное время восстановления после использования способностей, уменьшенный размер группы ДМ, хуже скидки ГМ, …', -20, -40, -60, true, 3)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Улучшенное снаряжение хакера', 'Чипы апгрейда к кибердеке, импланты, препараты улучшающие способности хакера, коллекция токенов-спрайтов, …', 20, 40, 60, false, 5)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Ценная информация хакера', 'коллекция SIN/хост, наличие бэкдоров, контакты по продаже CVE, известные уязвимости IC, ...', 20, 40, 60, false, 5)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Контроль - специализация', 'Специалист по базам/системам данных контроля.
Уровень пакета добавляет систему на выбор из экономика, имущество, геолокация, медицина и хром
* навык с 1 системой Контроля
** навык с 2 системами Контроля
*** навык с 3 системами Контроля', 30, 60, 90, false, 5)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Moar дронов!', 'Больше! Еще больше дронов! Дроны будут выбраны в соответствии с веткой навыков риггера (Боевой медик \ Air Craft \ Ground Craft )
* медикарт ИЛИ коптеры (3 шт) ИЛИ бульдозер
** голопроектор ИЛИ камикадзе ИЛИ турель
*** вертолет ИЛИ экзоскелет', 20, 40, 60, false, 2)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Улучшенное снаряжение риггера', 'Чипы апгрейда к дронам, препараты улучшающие способности риггера …', 20, 40, 60, false, 2)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Ценная информация риггера', 'Состав препаратов, эффективные комбинации, свойства веществ ...', 20, 40, 60, false, 2)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Импланты для брони', 'Укрепление систем организма, позволяющие носить Броню
* имплант "крепкая спина" - нужны для Средней брони
** имплант "усиленные кости" - нужен для Тяжелой брони
*** имплант "MedKit" - позволяет вставать из КС.', 20, 40, 60, false, 1)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Броня (снаряжение)', 'Может стартовать с броней выбранного типа
* получает запас аптечек
** легкая броня
*** тяжелая броня', 20, 40, 60, false, 1)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Импланты для оружия', 'Укрепление систем организма, позволяющие пользоваться Оружием
* одна обычная киберрука
** две обычные киберруки
*** одна магнитная киберрука (позволяет использовать гранаты)', 20, 40, 60, false, 1)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Дистанционное оружие (снаряжение)', 'Может стартовать с дистанционным оружием выбранного типа
* винтовка
** автомат или снайперская винтовка
*** пулемет', 20, 40, 60, false, 1)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Холодное оружие (снаряжение)', 'Может стартовать с холодным оружием выбранного типа
* дубинки
** мечи, топоры
*** двуручные мечи, топоры, молоты, дубины', 20, 40, 60, false, 1)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Улучшенное снаряжение мага', 'Сильные реагенты, артефакты, фокусы, гримуары, …', 20, 40, 60, false, 4)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Ценная информация мага', '* знание путей и аур некоторых духов
** знание некоторых путей маны, знание аур некоторых персонажей
*** знание о редких заклинаниях и способностях', 20, 40, 60, false, 4)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Улучшенное снаряжение фейса', 'Препараты, улучшающие способности фейсов и позволяющие чаще их использовать.', 20, 40, 60, false, 3)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
INSERT INTO archetype_feature (name, description, cost1, cost2, cost3, is_problem, archetype)
VALUES ('Ценная информация фейса',
'Непубличный контракт с объявленной наградой. Информация по системе скоринга: что, кому и почему стоит дешевле\дороже и как это исправить. Компромат. Грязная информация о чужом имуществе. (кто пользуется не своим). Грязная информация о договорах. (кто заказывал определенный ран)',
20, 40, 60, false, 3)
ON CONFLICT (name)
DO UPDATE SET name = EXCLUDED.name,
description = EXCLUDED.description,
cost1 = EXCLUDED.cost1,
cost2 = EXCLUDED.cost2,
cost3 = EXCLUDED.cost3,
is_problem = EXCLUDED.is_problem,
archetype = EXCLUDED.archetype;
|
use datastax_portfolio_demo;
truncate portfolio;
drop keyspace datastax_portfolio_demo;
|
/*
** Copyright (c) 2007-2008, by the California Institute of Technology.
** ALL RIGHTS RESERVED. U.S. Government sponsorship acknowledged.
**
** $Id: create_schema.sql 13817 2015-01-29 18:22:24Z gangl $
*/
/*
** This SQL script creates the database objects for the Inventory schema.
*/
/*
** Create Tables
*/
/*
** collection
*/
CREATE TABLE collection
(
collection_id NUMBER NOT NULL,
short_name VARCHAR2(80) NOT NULL,
long_name VARCHAR2(1024) ,
type VARCHAR2(20) NOT NULL,
description VARCHAR2(4000) ,
full_description CLOB ,
aggregate CHAR(1) DEFAULT 'N',
CONSTRAINT collection_pk PRIMARY KEY (collection_id)
);
/*
** collection_contact
*/
CREATE TABLE collection_contact
(
collection_id NUMBER NOT NULL,
contact_id NUMBER NOT NULL,
CONSTRAINT collection_contact_pk PRIMARY KEY (collection_id, contact_id)
);
/*
** collection_dataset
*/
CREATE TABLE collection_dataset
(
collection_id NUMBER NOT NULL,
dataset_id NUMBER NOT NULL,
granule_flag CHAR(1) NOT NULL,
granule_range_360 CHAR(1) default 'N' NOT NULL,
start_granule_id NUMBER ,
stop_granule_id NUMBER ,
CONSTRAINT collection_dataset_pk PRIMARY KEY (collection_id, dataset_id)
);
/*
** collection_element
*/
CREATE TABLE collection_element
(
collection_id NUMBER NOT NULL,
element_id NUMBER NOT NULL,
character_value VARCHAR2(255) ,
datatime_value_long NUMBER ,
integer_value NUMBER ,
real_value NUMBER
);
/*
** collection_element_dd
*/
CREATE TABLE collection_element_dd
(
element_id NUMBER NOT NULL,
short_name VARCHAR2(30) NOT NULL,
long_name VARCHAR2(80) ,
type VARCHAR2(20) NOT NULL,
description VARCHAR2(1024) ,
CONSTRAINT collection_element_dd_pk PRIMARY KEY (element_id)
);
CREATE TABLE collection_legacy_product
(
collection_id NUMBER NOT NULL,
legacy_product_id NUMBER NOT NULL,
CONSTRAINT collection_legacy_product_pk PRIMARY KEY (collection_id, legacy_product_id)
);
/*
** collection_product
*/
CREATE TABLE collection_product
(
collection_id NUMBER NOT NULL,
visible_flag CHAR(1) NOT NULL,
product_id VARCHAR2(20) ,
echo_submit_date_long NUMBER ,
gcmd_submit_date_long NUMBER ,
CONSTRAINT collection_product_pk PRIMARY KEY (collection_id)
);
/*
** contact
*/
CREATE TABLE contact
(
contact_id NUMBER NOT NULL,
role VARCHAR2(40) NOT NULL,
first_name VARCHAR2(80) NOT NULL,
middle_name VARCHAR2(80) ,
last_name VARCHAR2(80) NOT NULL,
email VARCHAR2(255) NOT NULL,
phone VARCHAR2(80) ,
fax VARCHAR2(80) ,
address VARCHAR2(512) ,
provider_id NUMBER ,
notify_type VARCHAR2(20) ,
CONSTRAINT contact_pk PRIMARY KEY (contact_id)
);
/*
** dataset
*/
CREATE TABLE dataset
(
dataset_id NUMBER NOT NULL,
persistent_id VARCHAR2(24) ,
provider_id NUMBER NOT NULL,
short_name VARCHAR2(160) NOT NULL,
long_name VARCHAR2(255) NOT NULL,
original_provider VARCHAR2(160) ,
provider_dataset_name VARCHAR2(160) ,
processing_level VARCHAR2(10) ,
latitude_resolution FLOAT ,
longitude_resolution FLOAT ,
across_track_resolution NUMBER ,
along_track_resolution NUMBER ,
ascending_node_time VARCHAR2(80) ,
horizontal_resolution_range VARCHAR2(80) ,
altitude_resolution VARCHAR2(80) ,
depth_resolution VARCHAR2(80) ,
temporal_resolution VARCHAR2(1024) ,
temporal_resolution_range VARCHAR2(80) ,
ellipsoid_type VARCHAR2(160) ,
projection_type VARCHAR2(160) ,
projection_detail VARCHAR2(1024) ,
reference VARCHAR2(1024) ,
description CLOB ,
remote_dataset CHAR(1) DEFAULT 'L',
metadata VARCHAR(1024) ,
sample_frequency NUMBER,
swath_width NUMBER,
temporal_repeat VARCHAR2(1024) NULL,
temporal_repeat_min VARCHAR2(1024) NULL,
temporal_repeat_max VARCHAR2(1024) NULL,
note CLOB NULL,
CONSTRAINT dataset_pk PRIMARY KEY (dataset_id)
);
/*
** dataset_character
*/
CREATE TABLE dataset_character
(
dataset_id NUMBER NOT NULL,
de_id NUMBER NOT NULL,
value VARCHAR2(1024)
);
/*
** dataset_citation
*/
CREATE TABLE dataset_citation
(
dataset_id NUMBER NOT NULL,
title VARCHAR2(255) NOT NULL,
creator VARCHAR2(255) NOT NULL,
version VARCHAR2(80) NOT NULL,
publisher VARCHAR2(160) ,
series_name VARCHAR2(160) ,
release_date_long NUMBER ,
release_place VARCHAR2(160) ,
citation_detail VARCHAR2(255) ,
online_resource VARCHAR2(255)
);
/*
** dataset_contact
*/
CREATE TABLE dataset_contact
(
dataset_id NUMBER NOT NULL,
contact_id NUMBER NOT NULL,
CONSTRAINT dataset_contact_pk PRIMARY KEY (dataset_id, contact_id)
);
/*
** dataset_coverage
*/
CREATE TABLE dataset_coverage
(
dataset_id NUMBER NOT NULL,
start_time_long NUMBER NOT NULL,
stop_time_long NUMBER ,
north_lat NUMBER ,
south_lat NUMBER ,
east_lon NUMBER ,
west_lon NUMBER ,
min_altitude NUMBER ,
max_altitude NUMBER ,
min_depth NUMBER ,
max_depth NUMBER ,
CONSTRAINT dataset_coverage_pk PRIMARY KEY (dataset_id)
);
/*
** dataset_datetime
*/
CREATE TABLE dataset_datetime
(
dataset_id NUMBER NOT NULL,
de_id NUMBER NOT NULL,
value_long NUMBER
);
/*
** dataset_element
*/
CREATE TABLE dataset_element
(
de_id NUMBER NOT NULL,
dataset_id NUMBER NOT NULL,
element_id NUMBER NOT NULL,
obligation_flag CHAR(1) NOT NULL,
scope VARCHAR2(20) DEFAULT 'DATASET' NOT NULL,
CONSTRAINT dataset_element_pk PRIMARY KEY (de_id)
);
/*
** dataset_integer
*/
CREATE TABLE dataset_integer
(
dataset_id NUMBER NOT NULL,
de_id NUMBER NOT NULL,
value NUMBER,
units VARCHAR2(10)
);
/*
** dataset_location_policy
*/
CREATE TABLE dataset_location_policy
(
dataset_id NUMBER NOT NULL,
type VARCHAR2(20) NOT NULL,
base_path VARCHAR2(255) NOT NULL
);
/*
** dataset_meta_history
*/
CREATE TABLE dataset_meta_history
(
dataset_id NUMBER NOT NULL,
version_id NUMBER NOT NULL,
creation_date_long NUMBER NOT NULL,
last_revision_date_long NUMBER NOT NULL,
revision_history VARCHAR2(1024) NOT NULL,
CONSTRAINT dataset_meta_history_pk PRIMARY KEY (dataset_id, version_id)
);
/*
** dataset_parameter
*/
CREATE TABLE dataset_parameter
(
dataset_id NUMBER NOT NULL,
category VARCHAR2(80) NOT NULL,
topic VARCHAR2(80) NOT NULL,
term VARCHAR2(80) NOT NULL,
variable VARCHAR2(80) NOT NULL,
variable_detail VARCHAR2(160)
);
/*
** dataset_policy
*/
CREATE TABLE dataset_policy
(
dataset_id NUMBER NOT NULL,
data_class VARCHAR2(20) NOT NULL,
data_frequency NUMBER ,
data_volume NUMBER ,
data_duration NUMBER ,
data_latency NUMBER ,
access_type VARCHAR2(20) NOT NULL,
base_path_append_type VARCHAR2(20) NOT NULL,
data_format VARCHAR2(20) NOT NULL,
compress_type VARCHAR2(20) NOT NULL,
checksum_type VARCHAR2(20) NOT NULL,
spatial_type VARCHAR2(20) NOT NULL,
access_constraint VARCHAR2(1024) NOT NULL,
use_constraint VARCHAR2(1024) NOT NULL,
view_online VARCHAR2(1) DEFAULT 'Y',
versioned VARCHAR2(1) DEFAULT 'N' NOT NULL,
version_policy VARCHAR(20) ,
CONSTRAINT dataset_policy_pk PRIMARY KEY (dataset_id)
);
CREATE TABLE DATASET_REGION
(
DATASET_ID NUMBER NOT NULL,
REGION VARCHAR2(128) NOT NULL,
REGION_DETAIL VARCHAR2(1024)
);
ALTER TABLE DATASET_REGION
ADD CONSTRAINT dataset_region_fk1
FOREIGN KEY (dataset_id)
REFERENCES DATASET;
/*
** dataset_project
*/
CREATE TABLE dataset_project
(
dataset_id NUMBER NOT NULL,
project_id NUMBER NOT NULL,
CONSTRAINT dataset_project_pk PRIMARY KEY (dataset_id, project_id)
);
/*
** dataset_real
*/
CREATE TABLE dataset_real
(
dataset_id NUMBER NOT NULL,
de_id NUMBER NOT NULL,
value NUMBER,
units VARCHAR2(10)
);
/*
** dataset_resource
*/
CREATE TABLE dataset_resource
(
dataset_id NUMBER NOT NULL,
name VARCHAR2(80) ,
path VARCHAR2(255) NOT NULL,
type VARCHAR2(31) ,
description VARCHAR2(1024)
);
/*
** dataset_source
*/
CREATE TABLE dataset_source
(
dataset_id NUMBER NOT NULL,
source_id NUMBER NOT NULL,
sensor_id NUMBER NOT NULL,
CONSTRAINT dataset_source_pk PRIMARY KEY (dataset_id, source_id, sensor_id)
);
/*
** dataset_software
*/
CREATE TABLE dataset_software
(
dataset_id NUMBER NOT NULL,
name VARCHAR2(80) NOT NULL,
type VARCHAR2(31) NOT NULL,
path VARCHAR2(255) NOT NULL,
release_date_long NUMBER ,
version VARCHAR2(20) ,
language VARCHAR2(20) ,
platform VARCHAR2(20) ,
description VARCHAR2(1024)
);
/*
** dataset_version
*/
CREATE TABLE dataset_version
(
dataset_id NUMBER NOT NULL,
version_id NUMBER NOT NULL,
version VARCHAR2(80) NOT NULL,
version_date_long NUMBER ,
description VARCHAR2(1024) ,
CONSTRAINT dataset_version_pk PRIMARY KEY (dataset_id, version_id)
);
/*
** granule
*/
CREATE TABLE granule
(
granule_id NUMBER NOT NULL,
dataset_id NUMBER NOT NULL,
name VARCHAR2(120) NOT NULL,
official_name VARCHAR2(120) ,
start_time_long NUMBER NOT NULL ,
stop_time_long NUMBER ,
create_time_long NUMBER NOT NULL,
ingest_time_long NUMBER NOT NULL,
archive_time_long NUMBER ,
verify_time_long NUMBER ,
acquired_time_long NUMBER ,
requested_time_long NUMBER ,
version NUMBER NOT NULL,
access_type VARCHAR2(20) NOT NULL,
data_format VARCHAR2(20) NOT NULL,
compress_type VARCHAR2(20) NOT NULL,
checksum_type VARCHAR2(20) NOT NULL,
status VARCHAR2(10) NOT NULL,
root_path VARCHAR2(765) ,
rel_path VARCHAR2(20) ,
CONSTRAINT granule_pk PRIMARY KEY (granule_id)
);
/*
** granule_archive
*/
CREATE TABLE granule_archive
(
granule_id NUMBER NOT NULL,
type VARCHAR2(20) NOT NULL,
file_size NUMBER NOT NULL,
compress_flag CHAR(1) NOT NULL,
checksum CHAR(32) ,
name VARCHAR2(250) ,
status VARCHAR2(10) NOT NULL
);
/*
** granule_character
*/
CREATE TABLE granule_character
(
granule_id NUMBER NOT NULL,
de_id NUMBER NOT NULL,
value VARCHAR2(255)
);
/*
** granule_contact
*/
CREATE TABLE granule_contact
(
granule_id NUMBER NOT NULL,
contact_id NUMBER NOT NULL,
CONSTRAINT granule_contact_pk PRIMARY KEY (granule_id, contact_id)
);
/*
** granule_datetime
*/
CREATE TABLE granule_datetime
(
granule_id NUMBER NOT NULL,
de_id NUMBER NOT NULL,
value_long NUMBER
);
/*
** granule_element
*/
CREATE TABLE granule_element
(
dataset_id NUMBER NOT NULL,
element_id NUMBER NOT NULL,
obligation_flag CHAR(1) NOT NULL,
CONSTRAINT granule_element_pk PRIMARY KEY (dataset_id, element_id)
);
/*
** element_dd
*/
CREATE TABLE element_dd
(
element_id NUMBER NOT NULL,
short_name VARCHAR2(30) NOT NULL,
long_name VARCHAR2(80) ,
type VARCHAR2(20) NOT NULL,
description VARCHAR2(1024) ,
max_length NUMBER ,
scope VARCHAR2(20) ,
CONSTRAINT element_dd_pk PRIMARY KEY (element_id)
);
/*
** granule_integer
*/
CREATE TABLE granule_integer
(
granule_id NUMBER NOT NULL,
de_id NUMBER NOT NULL,
value NUMBER,
units VARCHAR2(10)
);
/*
** granule_meta_history
*/
CREATE TABLE granule_meta_history
(
granule_id NUMBER NOT NULL,
version_id NUMBER NOT NULL,
creation_date_long NUMBER NOT NULL,
last_revision_date_long NUMBER NOT NULL,
revision_history VARCHAR2(1024) NOT NULL,
echo_submit_date_long NUMBER ,
CONSTRAINT granule_meta_history_pk PRIMARY KEY (granule_id, version_id)
);
/*
** granule_real
*/
CREATE TABLE granule_real
(
granule_id NUMBER NOT NULL,
de_id NUMBER NOT NULL,
value NUMBER,
units VARCHAR2(10)
);
/*
** granule_reference
*/
CREATE TABLE granule_reference
(
granule_id NUMBER NOT NULL,
path VARCHAR2(1024) NOT NULL,
type VARCHAR2(31) ,
status VARCHAR2(10) NOT NULL,
description VARCHAR2(1024)
);
/*
** granule_sip
*/
CREATE TABLE granule_sip
(
granule_id NUMBER NOT NULL,
sip CLOB NOT NULL,
CONSTRAINT granule_sip_pk PRIMARY KEY (granule_id)
);
/*
** project
*/
CREATE TABLE project
(
project_id NUMBER NOT NULL,
short_name VARCHAR2(31) NOT NULL,
long_name VARCHAR2(80) ,
CONSTRAINT project_pk PRIMARY KEY (project_id)
);
/*
** provider
*/
CREATE TABLE provider
(
provider_id NUMBER NOT NULL,
short_name VARCHAR2(31) NOT NULL,
long_name VARCHAR2(160) NOT NULL,
type VARCHAR2(20) NOT NULL,
CONSTRAINT provider_pk PRIMARY KEY (provider_id)
);
/*
** provider_resource
*/
CREATE TABLE provider_resource
(
provider_id NUMBER NOT NULL,
path VARCHAR2(255) NOT NULL
);
/*
** sensor
*/
CREATE TABLE sensor
(
sensor_id NUMBER NOT NULL,
short_name VARCHAR2(31) NOT NULL,
long_name VARCHAR2(80) ,
swath_width NUMBER ,
description VARCHAR2(1024) ,
sample_frequency NUMBER,
CONSTRAINT sensor_pk PRIMARY KEY (sensor_id)
);
/*
** source
*/
CREATE TABLE source
(
source_id NUMBER NOT NULL,
short_name VARCHAR2(31) NOT NULL,
long_name VARCHAR2(80) ,
type VARCHAR2(80) ,
orbit_period NUMBER ,
incl_angle NUMBER ,
description VARCHAR2(1024) ,
CONSTRAINT source_pk PRIMARY KEY (source_id)
);
/*
** METADATA MANIFEST
*/
CREATE TABLE metadata_manifest
(
manifest_id NUMBER NOT NULL,
item_id NUMBER NOT NULL,
type VARCHAR2(10 BYTE) NOT NULL,
username VARCHAR2(20) NOT NULL,
submission_date_long NUMBER NOT NULL,
manifest CLOB NOT NULL,
diff CLOB ,
CONSTRAINT metadata_manifest_pk PRIMARY KEY (manifest_id)
);
/*
** Alter Tables by Adding Foreign Key References
*/
/*
** collection_contact
*/
ALTER TABLE collection_contact
ADD CONSTRAINT collection_contact_fk1
FOREIGN KEY (collection_id)
REFERENCES collection;
ALTER TABLE collection_contact
ADD CONSTRAINT collection_contact_fk2
FOREIGN KEY (contact_id)
REFERENCES contact;
/*
** collection_dataset
*/
ALTER TABLE collection_dataset
ADD CONSTRAINT collection_dataset_fk1
FOREIGN KEY (collection_id)
REFERENCES collection;
ALTER TABLE collection_dataset
ADD CONSTRAINT collection_dataset_fk2
FOREIGN KEY (dataset_id)
REFERENCES dataset;
/*
** collection_element
*/
ALTER TABLE collection_element
ADD CONSTRAINT collection_element_fk1
FOREIGN KEY (collection_id)
REFERENCES collection;
ALTER TABLE collection_element
ADD CONSTRAINT collection_element_fk2
FOREIGN KEY (element_id)
REFERENCES collection_element_dd;
/*
** collection_product
*/
ALTER TABLE collection_product
ADD CONSTRAINT collection_product_fk1
FOREIGN KEY (collection_id)
REFERENCES collection;
/*
** contact
*/
ALTER TABLE contact
ADD CONSTRAINT contact_fk1
FOREIGN KEY (provider_id)
REFERENCES provider;
ALTER TABLE COLLECTION_LEGACY_PRODUCT
ADD CONSTRAINT COLLECTION_LEGACY_PRODUCT_FK1
FOREIGN KEY (COLLECTION_ID)
REFERENCES COLLECTION;
/*
** dataset
*/
ALTER TABLE dataset
ADD CONSTRAINT dataset_fk1
FOREIGN KEY (provider_id)
REFERENCES provider;
/*
** dataset_citation
*/
ALTER TABLE dataset_citation
ADD CONSTRAINT dataset_citation_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
/*
** dataset_contact
*/
ALTER TABLE dataset_contact
ADD CONSTRAINT dataset_contact_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
ALTER TABLE dataset_contact
ADD CONSTRAINT dataset_contact_fk2
FOREIGN KEY (contact_id)
REFERENCES contact;
/*
** dataset_coverage
*/
ALTER TABLE dataset_coverage
ADD CONSTRAINT dataset_coverage_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset
ON DELETE CASCADE;
/*
** dataset_location_policy
*/
ALTER TABLE dataset_location_policy
ADD CONSTRAINT dataset_location_policy_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
/*
** dataset_meta_history
*/
ALTER TABLE dataset_meta_history
ADD CONSTRAINT dataset_meta_history_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
/*
** dataset_parameter
*/
ALTER TABLE dataset_parameter
ADD CONSTRAINT dataset_parameter_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
/*
** dataset_policy
*/
ALTER TABLE dataset_policy
ADD CONSTRAINT dataset_policy_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset
ON DELETE CASCADE;
/*
** dataset_project
*/
ALTER TABLE dataset_project
ADD CONSTRAINT dataset_project_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
ALTER TABLE dataset_project
ADD CONSTRAINT dataset_project_fk2
FOREIGN KEY (project_id)
REFERENCES project;
/*
** dataset_resource
*/
ALTER TABLE dataset_resource
ADD CONSTRAINT dataset_resource_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
/*
** dataset_source
*/
ALTER TABLE dataset_source
ADD CONSTRAINT dataset_source_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
ALTER TABLE dataset_source
ADD CONSTRAINT dataset_source_fk2
FOREIGN KEY (source_id)
REFERENCES source;
ALTER TABLE dataset_source
ADD CONSTRAINT dataset_source_fk3
FOREIGN KEY (sensor_id)
REFERENCES sensor;
/*
** dataset_software
*/
ALTER TABLE dataset_software
ADD CONSTRAINT dataset_software_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
/*
** dataset_spatial
*/
ALTER TABLE dataset_spatial
ADD CONSTRAINT dataset_spatial_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset
ON DELETE CASCADE;
/*
** dataset_version
*/
ALTER TABLE dataset_version
ADD CONSTRAINT dataset_version_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
/*
** granule
*/
ALTER TABLE granule
ADD CONSTRAINT granule_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
/*
** granule_archive
*/
ALTER TABLE granule_archive
ADD CONSTRAINT granule_archive_fk1
FOREIGN KEY (granule_id)
REFERENCES granule;
/*
** granule_character
*/
ALTER TABLE granule_character
ADD CONSTRAINT granule_character_fk1
FOREIGN KEY (granule_id)
REFERENCES granule;
ALTER TABLE granule_character
ADD CONSTRAINT granule_character_fk2
FOREIGN KEY (de_id)
REFERENCES dataset_element;
/*
** dataset_character
*/
ALTER TABLE dataset_character
ADD CONSTRAINT dataset_character_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
ALTER TABLE dataset_character
ADD CONSTRAINT dataset_character_fk2
FOREIGN KEY (de_id)
REFERENCES dataset_element;
/*
** granule_contact
*/
ALTER TABLE granule_contact
ADD CONSTRAINT granule_contact_fk1
FOREIGN KEY (granule_id)
REFERENCES granule;
ALTER TABLE granule_contact
ADD CONSTRAINT granule_contact_fk2
FOREIGN KEY (contact_id)
REFERENCES contact;
/*
** granule_datetime
*/
ALTER TABLE granule_datetime
ADD CONSTRAINT granule_datetime_fk1
FOREIGN KEY (granule_id)
REFERENCES granule;
ALTER TABLE granule_datetime
ADD CONSTRAINT granule_datetime_fk2
FOREIGN KEY (de_id)
REFERENCES dataset_element;
/*
** granule_integer
*/
ALTER TABLE granule_integer
ADD CONSTRAINT granule_integer_fk1
FOREIGN KEY (granule_id)
REFERENCES granule;
ALTER TABLE granule_integer
ADD CONSTRAINT granule_integer_fk2
FOREIGN KEY (de_id)
REFERENCES dataset_element;
/*
** dataset_datetime
*/
ALTER TABLE dataset_datetime
ADD CONSTRAINT dataset_datetime_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
ALTER TABLE dataset_datetime
ADD CONSTRAINT dataset_datetime_fk2
FOREIGN KEY (de_id)
REFERENCES dataset_element;
/*
** dataset_element
*/
ALTER TABLE dataset_element
ADD CONSTRAINT dataset_element_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
ALTER TABLE dataset_element
ADD CONSTRAINT dataset_element_fk2
FOREIGN KEY (element_id)
REFERENCES element_dd;
/*
** dataset_integer
*/
ALTER TABLE dataset_integer
ADD CONSTRAINT dataset_integer_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
ALTER TABLE dataset_integer
ADD CONSTRAINT dataset_integer_fk2
FOREIGN KEY (de_id)
REFERENCES dataset_element;
/*
** granule_meta_history
*/
ALTER TABLE granule_meta_history
ADD CONSTRAINT granule_meta_history_fk1
FOREIGN KEY (granule_id)
REFERENCES granule
ON DELETE CASCADE;
/*
** granule_real
*/
ALTER TABLE granule_real
ADD CONSTRAINT granule_real_fk1
FOREIGN KEY (granule_id)
REFERENCES granule;
ALTER TABLE granule_real
ADD CONSTRAINT granule_real_fk2
FOREIGN KEY (de_id)
REFERENCES dataset_element;
/*
** dataset_real
*/
ALTER TABLE dataset_real
ADD CONSTRAINT dataset_real_fk1
FOREIGN KEY (dataset_id)
REFERENCES dataset;
ALTER TABLE dataset_real
ADD CONSTRAINT dataset_real_fk2
FOREIGN KEY (de_id)
REFERENCES dataset_element;
/*
** granule_reference
*/
ALTER TABLE granule_reference
ADD CONSTRAINT granule_reference_fk1
FOREIGN KEY (granule_id)
REFERENCES granule;
/*
** granule_sip
*/
ALTER TABLE granule_sip
ADD CONSTRAINT granule_sip_fk1
FOREIGN KEY (granule_id)
REFERENCES granule;
/*
** granule_spatial
*/
ALTER TABLE granule_spatial
ADD CONSTRAINT granule_spatial_fk1
FOREIGN KEY (granule_id)
REFERENCES granule;
ALTER TABLE granule_spatial
ADD CONSTRAINT granule_spatial_fk2
FOREIGN KEY (de_id)
REFERENCES dataset_element;
/*
** provider_resource
*/
ALTER TABLE provider_resource
ADD CONSTRAINT provider_resource_fk1
FOREIGN KEY (provider_id)
REFERENCES provider;
/*
** UPDATES for version 1.3.1
*/
/*
** Add REMOTE-FTP and REMOTE-ODAP paths to the dataset_location_policy table
*/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/AMSRE/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-AMSRE';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/AMSRE/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-AMSRE';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/ATS_NR_2P/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-ATS_NR_2P';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/ATS_NR_2P/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-ATS_NR_2P';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/AVHRR16_G/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-AVHRR16_G';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/AVHRR16_G/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-AVHRR16_G';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/AVHRR16_L/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-AVHRR16_L';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/AVHRR16_L/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-AVHRR16_L';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/AVHRR17_G/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-AVHRR17_G';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/AVHRR17_G/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-AVHRR17_G';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/AVHRR17_L/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-AVHRR17_L';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/AVHRR17_L/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-AVHRR17_L';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/NAR16_SST/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-NAR16_SST';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/NAR16_SST/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-NAR16_SST';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/NAR17_SST/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-NAR17_SST';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/NAR17_SST/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-NAR17_SST';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/NAR18_SST/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-NAR18_SST';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/NAR18_SST/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-NAR18_SST';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/SEVIRI_SST/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-SEVIRI_SST';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/SEVIRI_SST/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-SEVIRI_SST';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/TMI/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-TMI';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/TMI/EUR'
FROM dataset
WHERE short_name = 'EUR-L2P-TMI';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/MODIS_A/JPL'
FROM dataset
WHERE short_name = 'JPL-L2P-MODIS_A';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/MODIS_A/JPL'
FROM dataset
WHERE short_name = 'JPL-L2P-MODIS_A';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/MODIS_T/JPL'
FROM dataset
WHERE short_name = 'JPL-L2P-MODIS_T';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/MODIS_T/JPL'
FROM dataset
WHERE short_name = 'JPL-L2P-MODIS_T';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/AVHRR17_G/NAVO'
FROM dataset
WHERE short_name = 'NAVO-L2P-AVHRR17_G';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/AVHRR17_G/NAVO'
FROM dataset
WHERE short_name = 'NAVO-L2P-AVHRR17_G';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/AVHRR17_L/NAVO'
FROM dataset
WHERE short_name = 'NAVO-L2P-AVHRR17_L';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/AVHRR17_L/NAVO'
FROM dataset
WHERE short_name = 'NAVO-L2P-AVHRR17_L';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/AVHRR18_G/NAVO'
FROM dataset
WHERE short_name = 'NAVO-L2P-AVHRR18_G';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/AVHRR18_G/NAVO'
FROM dataset
WHERE short_name = 'NAVO-L2P-AVHRR18_G';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/AVHRR18_L/NAVO'
FROM dataset
WHERE short_name = 'NAVO-L2P-AVHRR18_L';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/AVHRR18_L/NAVO'
FROM dataset
WHERE short_name = 'NAVO-L2P-AVHRR18_L';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/AVHRRMTA_G/NAVO'
FROM dataset
WHERE short_name = 'NAVO-L2P-AVHRRMTA_G';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/AVHRRMTA_G/NAVO'
FROM dataset
WHERE short_name = 'NAVO-L2P-AVHRRMTA_G';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/AVHRR17_L/NEODAAS'
FROM dataset
WHERE short_name = 'NEODAAS-L2P-AVHRR17_L';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/AVHRR17_L/NEODAAS'
FROM dataset
WHERE short_name = 'NEODAAS-L2P-AVHRR17_L';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/AVHRR18_L/NEODAAS'
FROM dataset
WHERE short_name = 'NEODAAS-L2P-AVHRR18_L';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/AVHRR18_L/NEODAAS'
FROM dataset
WHERE short_name = 'NEODAAS-L2P-AVHRR18_L';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/GOES11/OSDPD'
FROM dataset
WHERE short_name = 'OSDPD-L2P-GOES11';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/GOES11/OSDPD'
FROM dataset
WHERE short_name = 'OSDPD-L2P-GOES11';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/GOES12/OSDPD'
FROM dataset
WHERE short_name = 'OSDPD-L2P-GOES12';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/GOES12/OSDPD'
FROM dataset
WHERE short_name = 'OSDPD-L2P-GOES12';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/AMSRE/REMSS'
FROM dataset
WHERE short_name = 'REMSS-L2P-AMSRE';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/AMSRE/REMSS'
FROM dataset
WHERE short_name = 'REMSS-L2P-AMSRE';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/TMI/REMSS'
FROM dataset
WHERE short_name = 'REMSS-L2P-TMI';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/TMI/REMSS'
FROM dataset
WHERE short_name = 'REMSS-L2P-TMI';
/**/
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-FTP', 'ftp://data.nodc.noaa.gov/pub/data.nodc/ghrsst/L2P/ATS-NR_2P/UPA'
FROM dataset
WHERE short_name = 'UPA-L2P-ATS-NR_2P';
INSERT INTO dataset_location_policy (dataset_id, type, base_path)
SELECT dataset_id, 'REMOTE-OPENDAP', 'http://data.nodc.noaa.gov/cgi-bin/nph-dods/ghrsst/L2P/ATS-NR_2P/UPA'
FROM dataset
WHERE short_name = 'UPA-L2P-ATS-NR_2P';
/*
**
** Changes for the new Directory Structure only JASON-1_GDR_*, JASON-1_IGDR*, JASON-1_OSDR, and QSCAT_LEVEL_3 are affected
**
*/
/*Change DATASET_POLICY.ACCESS_TYPE from X to open*/
/*
** Note: This seemingly changes some Restricted items to 'open'
** based on new DIR structure. See JASON-1_GDR for example.
*/
UPDATE dataset_policy
SET ACCESS_TYPE='OPEN'
WHERE DATASET_ID IN(
SELECT DATASET_ID from DATASET WHERE SHORT_NAME LIKE 'JASON-1_GDR_%'
OR SHORT_NAME LIKE 'JASON-1_IGDR%'
OR SHORT_NAME LIKE 'JASON-1_OSDR'
OR SHORT_NAME LIKE 'QSCAT_LEVEL_3'
);
/*Change DATASET_LOCATION_POLICY type to ARCHIVE-OPEN*/
UPDATE dataset_location_policy
SET TYPE='ARCHIVE-OPEN'
WHERE TYPE='ARCHIVE-PUBLIC'
AND DATASET_ID IN(
SELECT DATASET_ID from DATASET WHERE SHORT_NAME LIKE 'JASON-1_GDR_%'
OR SHORT_NAME LIKE 'JASON-1_IGDR%'
OR SHORT_NAME LIKE 'JASON-1_OSDR'
OR SHORT_NAME LIKE 'QSCAT_LEVEL_3'
);
/*Change DATASET_LOCATION_POLICY type to ARCHIVE-CONTROLLED*/
UPDATE dataset_location_policy
SET TYPE='ARCHIVE-CONTROLLED'
WHERE TYPE='ARCHIVE-RESTRICTED'
AND DATASET_ID IN(
SELECT DATASET_ID from DATASET WHERE SHORT_NAME LIKE 'JASON-1_GDR_%'
OR SHORT_NAME LIKE 'JASON-1_IGDR%'
OR SHORT_NAME LIKE 'JASON-1_OSDR'
OR SHORT_NAME LIKE 'QSCAT_LEVEL_3'
);
/*Change GRANULE.ACCESS_TYPE type to OPEN*/
UPDATE granule
SET ACCESS_TYPE='OPEN'
WHERE DATASET_ID IN(
SELECT DATASET_ID from DATASET WHERE SHORT_NAME LIKE 'JASON-1_GDR_%'
OR SHORT_NAME LIKE 'JASON-1_IGDR%'
OR SHORT_NAME LIKE 'JASON-1_OSDR'
OR SHORT_NAME LIKE 'QSCAT_LEVEL_3'
);
/*change DATASET_LOCATION_POLICY.BASE_PATH to mimic new dir structure
** First we'll do "public" -> "open"
** i.e. file:///store/quikscat/public/L3/data -> file:///store/quikscat/open/L3/data
*/
UPDATE dataset_location_policy
SET BASE_PATH=REPLACE(base_path,'public','open')
WHERE TYPE='ARCHIVE-OPEN'
AND DATASET_ID IN(
SELECT DATASET_ID from DATASET WHERE SHORT_NAME LIKE 'JASON-1_GDR_%'
OR SHORT_NAME LIKE 'JASON-1_IGDR%'
OR SHORT_NAME LIKE 'JASON-1_OSDR'
OR SHORT_NAME LIKE 'QSCAT_LEVEL_3'
);
/*change DATASET_LOCATION_POLICY.BASE_PATH to mimic new dir structure
** First we'll do "restricted" -> "controlled"
** i.e. file:///store/quikscat/restricted/L3/data -> file:///store/quikscat/controlled/L3/data
*/
UPDATE dataset_location_policy
SET BASE_PATH=REPLACE(base_path,'restricted','controlled')
WHERE TYPE='ARCHIVE-CONTROLLED'
AND DATASET_ID IN(
SELECT DATASET_ID from DATASET WHERE SHORT_NAME LIKE 'JASON-1_GDR_%'
OR SHORT_NAME LIKE 'JASON-1_IGDR%'
OR SHORT_NAME LIKE 'JASON-1_OSDR'
OR SHORT_NAME LIKE 'QSCAT_LEVEL_3'
);
/*
** GHRSST ACCESS_TYPE
*/
/*
** GHRSST DATASET_POLICY ACCESS_TYPE fix
*/
UPDATE dataset_policy
SET ACCESS_TYPE='OPEN'
WHERE DATASET_ID IN(
select dataset_id from dataset
where SHORT_NAME not like 'JASON%'
AND SHORT_NAME not like 'QSCAT%'
AND SHORT_NAME not like 'OCO%'
);
/*
** And GHRSST associated granules
*/
/*Change GRANULE.ACCESS_TYPE type to OPEN*/
UPDATE granule
SET ACCESS_TYPE='OPEN'
WHERE DATASET_ID IN(
select dataset_id from dataset
where SHORT_NAME not like 'JASON%'
AND SHORT_NAME not like 'QSCAT%'
AND SHORT_NAME not like 'OCO%'
);
/*
** Create Indexes
*/
/*
** Create Sequences
*/
CREATE SEQUENCE metadata_manifest_id_seq
NOCACHE;
CREATE SEQUENCE dataset_element_id_seq
NOCACHE;
CREATE SEQUENCE collection_id_seq
NOCACHE;
CREATE SEQUENCE contact_id_seq
NOCACHE;
CREATE SEQUENCE dataset_id_seq
NOCACHE;
CREATE SEQUENCE element_id_collection_seq
NOCACHE;
CREATE SEQUENCE element_id_granule_seq
NOCACHE;
CREATE SEQUENCE granule_id_seq
CACHE 100;
CREATE SEQUENCE product_id_seq
START WITH 300
NOCACHE;
CREATE SEQUENCE project_id_seq
NOCACHE;
CREATE SEQUENCE provider_id_seq
NOCACHE;
CREATE SEQUENCE sensor_id_seq
NOCACHE;
CREATE SEQUENCE source_id_seq
NOCACHE;
|
CREATE TABLE client (
id integer NOT NULL,
namePerson character varying(100) NOT NULL,
);
INSERT INTO client VALUES (111, 'Mark');
INSERT INTO client VALUES (112, 'Andrew');
ALTER TABLE client
ADD CONSTRAINT table1_pkey PRIMARY KEY (id);
|
<reponame>bcgov/cas-ciip-portal
-- Revert ggircs-portal:tables/connect_session from pg
begin;
drop table ggircs_portal_private.connect_session;
commit;
|
<gh_stars>10-100
CREATE VIEW VIEW27 (C1) AS SELECT 1 FROM TABLE201 UNION SELECT 1 FROM TABLE456 UNION SELECT 1 FROM TABLE292 UNION SELECT 1 FROM VIEW69 UNION SELECT 1 FROM VIEW2 UNION SELECT 1 FROM VIEW85
GO |
select name, id, type
from azure.azure_compute_disk_encryption_set
where name = 'dummy{{resourceName}}' and resource_group = '{{resourceName}}' |
select sum(lo_extendedprice*lo_discount) as revenue
from lineorder, date
where lo_orderdate = d_datekey
and d_year = 1993
and lo_discount between 1 and 3
and lo_quantity < 25
|
<reponame>Zhaojia2019/cubrid-testcases<gh_stars>1-10
-- must accept strings of length 16383
autocommit off;
create class cs(s char(16383));
select count(*) from cs;
insert into cs
values(
' 1 2 3 4 5 6 7 001'
'12345678901234567890123456789012345678901234567890123456789012345678901234567002'
'12345678901234567890123456789012345678901234567890123456789012345678901234567003'
'12345678901234567890123456789012345678901234567890123456789012345678901234567004'
'12345678901234567890123456789012345678901234567890123456789012345678901234567005'
'12345678901234567890123456789012345678901234567890123456789012345678901234567006'
'12345678901234567890123456789012345678901234567890123456789012345678901234567007'
'12345678901234567890123456789012345678901234567890123456789012345678901234567008'
'12345678901234567890123456789012345678901234567890123456789012345678901234567009'
' 1 2 3 4 5 6 7 010'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567012'
'12345678901234567890123456789012345678901234567890123456789012345678901234567013'
'12345678901234567890123456789012345678901234567890123456789012345678901234567014'
'12345678901234567890123456789012345678901234567890123456789012345678901234567015'
'12345678901234567890123456789012345678901234567890123456789012345678901234567016'
'12345678901234567890123456789012345678901234567890123456789012345678901234567017'
'12345678901234567890123456789012345678901234567890123456789012345678901234567018'
'12345678901234567890123456789012345678901234567890123456789012345678901234567019'
' 1 2 3 4 5 6 7 020'
'12345678901234567890123456789012345678901234567890123456789012345678901234567021'
'12345678901234567890123456789012345678901234567890123456789012345678901234567022'
'12345678901234567890123456789012345678901234567890123456789012345678901234567023'
'12345678901234567890123456789012345678901234567890123456789012345678901234567024'
'12345678901234567890123456789012345678901234567890123456789012345678901234567025'
'12345678901234567890123456789012345678901234567890123456789012345678901234567026'
'12345678901234567890123456789012345678901234567890123456789012345678901234567027'
'12345678901234567890123456789012345678901234567890123456789012345678901234567028'
'12345678901234567890123456789012345678901234567890123456789012345678901234567029'
' 1 2 3 4 5 6 7 030'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567012'
'12345678901234567890123456789012345678901234567890123456789012345678901234567013'
'12345678901234567890123456789012345678901234567890123456789012345678901234567014'
'12345678901234567890123456789012345678901234567890123456789012345678901234567015'
'12345678901234567890123456789012345678901234567890123456789012345678901234567016'
'12345678901234567890123456789012345678901234567890123456789012345678901234567017'
'12345678901234567890123456789012345678901234567890123456789012345678901234567018'
'12345678901234567890123456789012345678901234567890123456789012345678901234567019'
' 1 2 3 4 5 6 7 040'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567002'
'12345678901234567890123456789012345678901234567890123456789012345678901234567003'
'12345678901234567890123456789012345678901234567890123456789012345678901234567004'
'12345678901234567890123456789012345678901234567890123456789012345678901234567005'
'12345678901234567890123456789012345678901234567890123456789012345678901234567006'
'12345678901234567890123456789012345678901234567890123456789012345678901234567007'
'12345678901234567890123456789012345678901234567890123456789012345678901234567008'
'12345678901234567890123456789012345678901234567890123456789012345678901234567009'
' 1 2 3 4 5 6 7 050'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567012'
'12345678901234567890123456789012345678901234567890123456789012345678901234567013'
'12345678901234567890123456789012345678901234567890123456789012345678901234567014'
'12345678901234567890123456789012345678901234567890123456789012345678901234567015'
'12345678901234567890123456789012345678901234567890123456789012345678901234567016'
'12345678901234567890123456789012345678901234567890123456789012345678901234567017'
'12345678901234567890123456789012345678901234567890123456789012345678901234567018'
'12345678901234567890123456789012345678901234567890123456789012345678901234567019'
' 1 2 3 4 5 6 7 060'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567002'
'12345678901234567890123456789012345678901234567890123456789012345678901234567003'
'12345678901234567890123456789012345678901234567890123456789012345678901234567004'
'12345678901234567890123456789012345678901234567890123456789012345678901234567005'
'12345678901234567890123456789012345678901234567890123456789012345678901234567006'
'12345678901234567890123456789012345678901234567890123456789012345678901234567007'
'12345678901234567890123456789012345678901234567890123456789012345678901234567008'
'12345678901234567890123456789012345678901234567890123456789012345678901234567009'
' 1 2 3 4 5 6 7 070'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567012'
'12345678901234567890123456789012345678901234567890123456789012345678901234567013'
'12345678901234567890123456789012345678901234567890123456789012345678901234567014'
'12345678901234567890123456789012345678901234567890123456789012345678901234567015'
'12345678901234567890123456789012345678901234567890123456789012345678901234567016'
'12345678901234567890123456789012345678901234567890123456789012345678901234567017'
'12345678901234567890123456789012345678901234567890123456789012345678901234567018'
'12345678901234567890123456789012345678901234567890123456789012345678901234567019'
' 1 2 3 4 5 6 7 080'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567002'
'12345678901234567890123456789012345678901234567890123456789012345678901234567003'
'12345678901234567890123456789012345678901234567890123456789012345678901234567004'
'12345678901234567890123456789012345678901234567890123456789012345678901234567005'
'12345678901234567890123456789012345678901234567890123456789012345678901234567006'
'12345678901234567890123456789012345678901234567890123456789012345678901234567007'
'12345678901234567890123456789012345678901234567890123456789012345678901234567008'
'12345678901234567890123456789012345678901234567890123456789012345678901234567009'
' 1 2 3 4 5 6 7 090'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567012'
'12345678901234567890123456789012345678901234567890123456789012345678901234567013'
'12345678901234567890123456789012345678901234567890123456789012345678901234567014'
'12345678901234567890123456789012345678901234567890123456789012345678901234567015'
'12345678901234567890123456789012345678901234567890123456789012345678901234567016'
'12345678901234567890123456789012345678901234567890123456789012345678901234567017'
'12345678901234567890123456789012345678901234567890123456789012345678901234567018'
'12345678901234567890123456789012345678901234567890123456789012345678901234567019'
' 1 2 3 4 5 6 7 100'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567002'
'12345678901234567890123456789012345678901234567890123456789012345678901234567003'
'12345678901234567890123456789012345678901234567890123456789012345678901234567004'
'12345678901234567890123456789012345678901234567890123456789012345678901234567005'
'12345678901234567890123456789012345678901234567890123456789012345678901234567006'
'12345678901234567890123456789012345678901234567890123456789012345678901234567007'
'12345678901234567890123456789012345678901234567890123456789012345678901234567008'
'12345678901234567890123456789012345678901234567890123456789012345678901234567009'
' 1 2 3 4 5 6 7 110'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567012'
'12345678901234567890123456789012345678901234567890123456789012345678901234567013'
'12345678901234567890123456789012345678901234567890123456789012345678901234567014'
'12345678901234567890123456789012345678901234567890123456789012345678901234567015'
'12345678901234567890123456789012345678901234567890123456789012345678901234567016'
'12345678901234567890123456789012345678901234567890123456789012345678901234567017'
'12345678901234567890123456789012345678901234567890123456789012345678901234567018'
'12345678901234567890123456789012345678901234567890123456789012345678901234567019'
' 1 2 3 4 5 6 7 120'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567002'
'12345678901234567890123456789012345678901234567890123456789012345678901234567003'
'12345678901234567890123456789012345678901234567890123456789012345678901234567004'
'12345678901234567890123456789012345678901234567890123456789012345678901234567005'
'12345678901234567890123456789012345678901234567890123456789012345678901234567006'
'12345678901234567890123456789012345678901234567890123456789012345678901234567007'
'12345678901234567890123456789012345678901234567890123456789012345678901234567008'
'12345678901234567890123456789012345678901234567890123456789012345678901234567009'
' 1 2 3 4 5 6 7 130'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567012'
'12345678901234567890123456789012345678901234567890123456789012345678901234567013'
'12345678901234567890123456789012345678901234567890123456789012345678901234567014'
'12345678901234567890123456789012345678901234567890123456789012345678901234567015'
'12345678901234567890123456789012345678901234567890123456789012345678901234567016'
'12345678901234567890123456789012345678901234567890123456789012345678901234567017'
'12345678901234567890123456789012345678901234567890123456789012345678901234567018'
'12345678901234567890123456789012345678901234567890123456789012345678901234567019'
' 1 2 3 4 5 6 7 140'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567002'
'12345678901234567890123456789012345678901234567890123456789012345678901234567003'
'12345678901234567890123456789012345678901234567890123456789012345678901234567004'
'12345678901234567890123456789012345678901234567890123456789012345678901234567005'
'12345678901234567890123456789012345678901234567890123456789012345678901234567006'
'12345678901234567890123456789012345678901234567890123456789012345678901234567007'
'12345678901234567890123456789012345678901234567890123456789012345678901234567008'
'12345678901234567890123456789012345678901234567890123456789012345678901234567009'
' 1 2 3 4 5 6 7 150'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567012'
'12345678901234567890123456789012345678901234567890123456789012345678901234567013'
'12345678901234567890123456789012345678901234567890123456789012345678901234567014'
'12345678901234567890123456789012345678901234567890123456789012345678901234567015'
'12345678901234567890123456789012345678901234567890123456789012345678901234567016'
'12345678901234567890123456789012345678901234567890123456789012345678901234567017'
'12345678901234567890123456789012345678901234567890123456789012345678901234567018'
'12345678901234567890123456789012345678901234567890123456789012345678901234567019'
' 1 2 3 4 5 6 7 160'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567002'
'12345678901234567890123456789012345678901234567890123456789012345678901234567003'
'12345678901234567890123456789012345678901234567890123456789012345678901234567004'
'12345678901234567890123456789012345678901234567890123456789012345678901234567005'
'12345678901234567890123456789012345678901234567890123456789012345678901234567006'
'12345678901234567890123456789012345678901234567890123456789012345678901234567007'
'12345678901234567890123456789012345678901234567890123456789012345678901234567008'
'12345678901234567890123456789012345678901234567890123456789012345678901234567009'
' 1 2 3 4 5 6 7 170'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567012'
'12345678901234567890123456789012345678901234567890123456789012345678901234567013'
'12345678901234567890123456789012345678901234567890123456789012345678901234567014'
'12345678901234567890123456789012345678901234567890123456789012345678901234567015'
'12345678901234567890123456789012345678901234567890123456789012345678901234567016'
'12345678901234567890123456789012345678901234567890123456789012345678901234567017'
'12345678901234567890123456789012345678901234567890123456789012345678901234567018'
'12345678901234567890123456789012345678901234567890123456789012345678901234567019'
' 1 2 3 4 5 6 7 180'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567002'
'12345678901234567890123456789012345678901234567890123456789012345678901234567003'
'12345678901234567890123456789012345678901234567890123456789012345678901234567004'
'12345678901234567890123456789012345678901234567890123456789012345678901234567005'
'12345678901234567890123456789012345678901234567890123456789012345678901234567006'
'12345678901234567890123456789012345678901234567890123456789012345678901234567007'
'12345678901234567890123456789012345678901234567890123456789012345678901234567008'
'12345678901234567890123456789012345678901234567890123456789012345678901234567009'
' 1 2 3 4 5 6 7 190'
'12345678901234567890123456789012345678901234567890123456789012345678901234567011'
'12345678901234567890123456789012345678901234567890123456789012345678901234567012'
'12345678901234567890123456789012345678901234567890123456789012345678901234567013'
'12345678901234567890123456789012345678901234567890123456789012345678901234567014'
'12345678901234567890123456789012345678901234567890123456789012345678901234567015'
'12345678901234567890123456789012345678901234567890123456789012345678901234567016'
'12345678901234567890123456789012345678901234567890123456789012345678901234567017'
'12345678901234567890123456789012345678901234567890123456789012345678901234567018'
'12345678901234567890123456789012345678901234567890123456789012345678901234567019'
' 1 2 3 4 5 6 7 200'
'12345678901234567890123456789012345678901234567890123456789012345678901234567201'
'12345678901234567890123456789012345678901234567890123456789012345678901234567202'
'12345678901234567890123456789012345678901234567890123456789012345678901234567203'
'12345678901234567890123456789012345678901234567890123456789012345678901234567204'
'123456789012345678901234567890123456789012345678901234567890123'
);
select * from cs;
select count(*) from cs;
rollback;
|
-- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 13, 2017 at 08:27 PM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 7.1.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
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: `theproject`
--
CREATE DATABASE IF NOT EXISTS `theproject` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `theproject`;
-- --------------------------------------------------------
--
-- Table structure for table `logininfo`
--
CREATE TABLE `logininfo` (
`username` varchar(20) NOT NULL,
`password` varchar(20) NOT NULL,
`id` int(11) NOT NULL,
`level` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `logininfo`
--
INSERT INTO `logininfo` (`username`, `password`, `id`, `level`) VALUES
('peter', '<PASSWORD>', 1, 3),
('natash', '<PASSWORD>', 2, 1),
('johhnyboi', 'hello', 3, 3),
('hop3', '1324', 4, 1),
('Nostic', '<PASSWORD>', 5, 1);
-- --------------------------------------------------------
--
-- Table structure for table `members`
--
CREATE TABLE `members` (
`id` int(11) NOT NULL,
`firstname` varchar(50) NOT NULL,
`lastname` varchar(50) NOT NULL,
`status` text NOT NULL,
`mail` text,
`email` text,
`homeno` text,
`cellno` text NOT NULL,
`employment` text NOT NULL,
`position` text NOT NULL,
`dob` date NOT NULL,
`timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `members`
--
INSERT INTO `members` (`id`, `firstname`, `lastname`, `status`, `mail`, `email`, `homeno`, `cellno`, `employment`, `position`, `dob`, `timestamp`) VALUES
(1, 'Peter', 'Griffin', 'Censored', NULL, NULL, NULL, '', 'Hehehehhee - Work', 'Pastor', '1969-06-09', '2017-08-13 15:48:32'),
(2, 'Natasha', 'Brown', 'Regular Standing', NULL, NULL, NULL, '', 'Manager - The Knocks', 'Head Deacon', '1990-11-12', '2017-08-13 15:50:36'),
(3, 'John', 'Howard', 'Regular Standing', NULL, NULL, NULL, '', 'Lifeguard - Indian Bay', 'Pastor', '1996-10-14', '2017-08-13 16:03:30'),
(4, 'Hope', 'Dickson', 'Censored', NULL, NULL, NULL, '', 'Financial Aid - Generic Bank ', 'Elder', '1986-08-16', '2017-08-13 16:05:25'),
(5, 'Nostagic', 'Bach', 'Regular Standing', NULL, NULL, NULL, '', 'Historian - Library', 'Member', '1962-02-25', '2017-08-13 16:06:59');
-- --------------------------------------------------------
--
-- Table structure for table `skills`
--
CREATE TABLE `skills` (
`skillid` int(11) NOT NULL,
`id` int(11) NOT NULL,
`skill` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `skills`
--
INSERT INTO `skills` (`skillid`, `id`, `skill`) VALUES
(1, 1, 'hehehehehhe'),
(2, 1, 'Eating'),
(3, 2, 'Eating'),
(4, 2, 'Keeping Church Board Short'),
(5, 3, 'Helping the needy/poor'),
(6, 4, 'Resourceful'),
(7, 5, 'Record Keeping');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `logininfo`
--
ALTER TABLE `logininfo`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `members`
--
ALTER TABLE `members`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `skills`
--
ALTER TABLE `skills`
ADD PRIMARY KEY (`skillid`);
/*!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>[MIA]InstruccionesDDL.sql
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
-- -----------------------------------------------------
-- Schema mydb
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema Practica_MIA
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema Practica_MIA
-- -----------------------------------------------------
CREATE SCHEMA IF NOT EXISTS `Practica_MIA` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci ;
USE `Practica_MIA` ;
-- -----------------------------------------------------
-- Table `Practica_MIA`.`Carga`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `Practica_MIA`.`Carga` ;
CREATE TABLE IF NOT EXISTS `Practica_MIA`.`Carga` (
`idCarga` INT NOT NULL AUTO_INCREMENT,
`nombre_compania` VARCHAR(60) NULL DEFAULT NULL,
`contacto_compania` VARCHAR(60) NULL DEFAULT NULL,
`correo_compania` VARCHAR(60) NULL DEFAULT NULL,
`telefono_compania` VARCHAR(60) NULL DEFAULT NULL,
`tipo` VARCHAR(1) NULL DEFAULT NULL,
`nombre` VARCHAR(60) NULL DEFAULT NULL,
`correo` VARCHAR(60) NULL DEFAULT NULL,
`telefono` VARCHAR(60) NULL DEFAULT NULL,
`fecha_registro` VARCHAR(60) NULL DEFAULT NULL,
`direccion` VARCHAR(60) NULL DEFAULT NULL,
`ciudad` VARCHAR(60) NULL DEFAULT NULL,
`codigo_postal` VARCHAR(60) NULL DEFAULT NULL,
`region` VARCHAR(60) NULL DEFAULT NULL,
`producto` VARCHAR(60) NULL DEFAULT NULL,
`categoria_producto` VARCHAR(60) NULL DEFAULT NULL,
`cantidad` INT NULL DEFAULT NULL,
`precio_unitario` DECIMAL(10,2) NULL DEFAULT NULL,
PRIMARY KEY (`idCarga`))
ENGINE = InnoDB
AUTO_INCREMENT = 14299
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `Practica_MIA`.`categoria_producto`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `Practica_MIA`.`categoria_producto` ;
CREATE TABLE IF NOT EXISTS `Practica_MIA`.`categoria_producto` (
`id_categoria` INT NOT NULL AUTO_INCREMENT,
`nombre` VARCHAR(60) NULL DEFAULT NULL,
PRIMARY KEY (`id_categoria`))
ENGINE = InnoDB
AUTO_INCREMENT = 125
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `Practica_MIA`.`ciudad`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `Practica_MIA`.`ciudad` ;
CREATE TABLE IF NOT EXISTS `Practica_MIA`.`ciudad` (
`id_ciudad` INT NOT NULL AUTO_INCREMENT,
`nombre` VARCHAR(60) NULL DEFAULT NULL,
PRIMARY KEY (`id_ciudad`))
ENGINE = InnoDB
AUTO_INCREMENT = 32
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `Practica_MIA`.`region`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `Practica_MIA`.`region` ;
CREATE TABLE IF NOT EXISTS `Practica_MIA`.`region` (
`id_region` INT NOT NULL AUTO_INCREMENT,
`nombre` VARCHAR(60) NULL DEFAULT NULL,
PRIMARY KEY (`id_region`))
ENGINE = InnoDB
AUTO_INCREMENT = 32
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `Practica_MIA`.`cliente`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `Practica_MIA`.`cliente` ;
CREATE TABLE IF NOT EXISTS `Practica_MIA`.`cliente` (
`id_cliente` INT NOT NULL AUTO_INCREMENT,
`nombre` VARCHAR(60) NULL DEFAULT NULL,
`correo` VARCHAR(60) NULL DEFAULT NULL,
`telefono` VARCHAR(30) NULL DEFAULT NULL,
`fecha_registro` DATE NULL DEFAULT NULL,
`direccion` VARCHAR(60) NULL DEFAULT NULL,
`codigo_postal` INT NULL DEFAULT NULL,
`region` INT NOT NULL,
`ciudad` INT NOT NULL,
PRIMARY KEY (`id_cliente`),
INDEX `fk_cliente_region1_idx` (`region` ASC) VISIBLE,
INDEX `fk_cliente_ciudad1_idx` (`ciudad` ASC) VISIBLE,
CONSTRAINT `fk_cliente_region1`
FOREIGN KEY (`region`)
REFERENCES `Practica_MIA`.`region` (`id_region`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_cliente_ciudad1`
FOREIGN KEY (`ciudad`)
REFERENCES `Practica_MIA`.`ciudad` (`id_ciudad`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
AUTO_INCREMENT = 128
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `Practica_MIA`.`compania`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `Practica_MIA`.`compania` ;
CREATE TABLE IF NOT EXISTS `Practica_MIA`.`compania` (
`id_compania` INT NOT NULL AUTO_INCREMENT,
`nombre` VARCHAR(60) NULL DEFAULT NULL,
`contacto` VARCHAR(60) NULL DEFAULT NULL,
`correo` VARCHAR(60) NULL DEFAULT NULL,
`telefono` VARCHAR(30) NULL DEFAULT NULL,
PRIMARY KEY (`id_compania`))
ENGINE = InnoDB
AUTO_INCREMENT = 255
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `Practica_MIA`.`proveedor`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `Practica_MIA`.`proveedor` ;
CREATE TABLE IF NOT EXISTS `Practica_MIA`.`proveedor` (
`id_proveedor` INT NOT NULL AUTO_INCREMENT,
`nombre` VARCHAR(60) NULL DEFAULT NULL,
`correo` VARCHAR(60) NULL DEFAULT NULL,
`telefono` VARCHAR(30) NULL DEFAULT NULL,
`fecha_registro` DATE NULL DEFAULT NULL,
`direccion` VARCHAR(60) NULL DEFAULT NULL,
`codigo_postal` INT NULL DEFAULT NULL,
`region` INT NOT NULL,
`ciudad` INT NOT NULL,
PRIMARY KEY (`id_proveedor`),
INDEX `fk_proveedor_region1_idx` (`region` ASC) VISIBLE,
INDEX `fk_proveedor_ciudad1_idx` (`ciudad` ASC) VISIBLE,
CONSTRAINT `fk_proveedor_region1`
FOREIGN KEY (`region`)
REFERENCES `Practica_MIA`.`region` (`id_region`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_proveedor_ciudad1`
FOREIGN KEY (`ciudad`)
REFERENCES `Practica_MIA`.`ciudad` (`id_ciudad`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
AUTO_INCREMENT = 64
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `Practica_MIA`.`detalle_compania`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `Practica_MIA`.`detalle_compania` ;
CREATE TABLE IF NOT EXISTS `Practica_MIA`.`detalle_compania` (
`ID_DetCompania` INT NOT NULL AUTO_INCREMENT,
`proveedor` INT NOT NULL,
`compania` INT NOT NULL,
PRIMARY KEY (`ID_DetCompania`),
INDEX `fk_detalle_compania_proveedor1_idx` (`proveedor` ASC) VISIBLE,
INDEX `fk_detalle_compania_compania1_idx` (`compania` ASC) VISIBLE,
CONSTRAINT `fk_detalle_compania_compania1`
FOREIGN KEY (`compania`)
REFERENCES `Practica_MIA`.`compania` (`id_compania`),
CONSTRAINT `fk_detalle_compania_proveedor1`
FOREIGN KEY (`proveedor`)
REFERENCES `Practica_MIA`.`proveedor` (`id_proveedor`))
ENGINE = InnoDB
AUTO_INCREMENT = 1024
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `Practica_MIA`.`orden`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `Practica_MIA`.`orden` ;
CREATE TABLE IF NOT EXISTS `Practica_MIA`.`orden` (
`id_orden` INT NOT NULL AUTO_INCREMENT,
`proveedor` INT NOT NULL,
PRIMARY KEY (`id_orden`),
INDEX `fk_orden_proveedor1_idx` (`proveedor` ASC) VISIBLE,
CONSTRAINT `fk_orden_proveedor1`
FOREIGN KEY (`proveedor`)
REFERENCES `Practica_MIA`.`proveedor` (`id_proveedor`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
AUTO_INCREMENT = 64
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `Practica_MIA`.`producto`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `Practica_MIA`.`producto` ;
CREATE TABLE IF NOT EXISTS `Practica_MIA`.`producto` (
`id_producto` INT NOT NULL AUTO_INCREMENT,
`nombre` VARCHAR(60) NULL DEFAULT NULL,
`precio` DECIMAL(10,2) NULL DEFAULT NULL,
`categoria` INT NOT NULL,
PRIMARY KEY (`id_producto`),
INDEX `fk_producto_categoria_producto1_idx` (`categoria` ASC) VISIBLE,
CONSTRAINT `fk_producto_categoria_producto1`
FOREIGN KEY (`categoria`)
REFERENCES `Practica_MIA`.`categoria_producto` (`id_categoria`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
AUTO_INCREMENT = 256
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `Practica_MIA`.`detalle_orden`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `Practica_MIA`.`detalle_orden` ;
CREATE TABLE IF NOT EXISTS `Practica_MIA`.`detalle_orden` (
`id_detorden` INT NOT NULL AUTO_INCREMENT,
`cantidad` INT NULL DEFAULT NULL,
`orden` INT NOT NULL,
`producto` INT NOT NULL,
`precio` DECIMAL(10,2) NULL,
PRIMARY KEY (`id_detorden`),
INDEX `fk_detalle_orden_orden1_idx` (`orden` ASC) VISIBLE,
INDEX `fk_detalle_orden_producto1_idx` (`producto` ASC) VISIBLE,
CONSTRAINT `fk_detalle_orden_orden1`
FOREIGN KEY (`orden`)
REFERENCES `Practica_MIA`.`orden` (`id_orden`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_detalle_orden_producto1`
FOREIGN KEY (`producto`)
REFERENCES `Practica_MIA`.`producto` (`id_producto`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `Practica_MIA`.`venta`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `Practica_MIA`.`venta` ;
CREATE TABLE IF NOT EXISTS `Practica_MIA`.`venta` (
`id_venta` INT NOT NULL AUTO_INCREMENT,
`cliente` INT NOT NULL,
PRIMARY KEY (`id_venta`),
INDEX `fk_venta_cliente1_idx` (`cliente` ASC) VISIBLE,
CONSTRAINT `fk_venta_cliente1`
FOREIGN KEY (`cliente`)
REFERENCES `Practica_MIA`.`cliente` (`id_cliente`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
AUTO_INCREMENT = 128
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
-- -----------------------------------------------------
-- Table `Practica_MIA`.`detalle_venta`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `Practica_MIA`.`detalle_venta` ;
CREATE TABLE IF NOT EXISTS `Practica_MIA`.`detalle_venta` (
`id_detventa` INT NOT NULL AUTO_INCREMENT,
`cantidad` INT NULL DEFAULT NULL,
`venta` INT NOT NULL,
`producto` INT NOT NULL,
`precio` DECIMAL(10,2) NULL,
PRIMARY KEY (`id_detventa`),
INDEX `fk_detalle_venta_venta1_idx` (`venta` ASC) VISIBLE,
INDEX `fk_detalle_venta_producto1_idx` (`producto` ASC) VISIBLE,
CONSTRAINT `fk_detalle_venta_venta1`
FOREIGN KEY (`venta`)
REFERENCES `Practica_MIA`.`venta` (`id_venta`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_detalle_venta_producto1`
FOREIGN KEY (`producto`)
REFERENCES `Practica_MIA`.`producto` (`id_producto`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8mb4
COLLATE = utf8mb4_0900_ai_ci;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
|
USE [WheelChair]
GO
/****** Object: Table [dbo].[Wheelchair_Information] Script Date: 17/8/20 3:26:55 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Wheelchair_Information](
[WheelchairNo] [nvarchar](6) NOT NULL,
[WheelchairModel] [nvarchar](255) NOT NULL,
[Availability] [bit] NOT NULL,
[Status] [nvarchar](50) NULL,
[Supplier] [nvarchar](50) NULL,
[Color] [nvarchar](12) NULL,
[PandaSize] [real] NULL,
[SeatWidth] [float] NULL,
[SeatDepth] [float] NULL,
[Recliner] [bit] NOT NULL,
[ElevatingFR] [bit] NOT NULL,
[RearWheelSize] [nvarchar](3) NULL,
[Price] [money] NULL,
[AcqusitionDate] [datetime] NULL,
[Inventory] [int] NULL,
[FundedBy] [nvarchar](255) NULL,
[LabelPrinted] [bit] NOT NULL,
[condemnDate] [datetime] NULL
) ON [PRIMARY]
GO
|
<reponame>yunzhan2014/One-week-challenge
show tables;
# 排序语句
select prod_name from products;
select prod_name,prod_id,prod_price FROM products;
SELECT * FROM products;
SELECT vend_id FROM products;
SELECT distinct vend_id FROM products;
SELECT prod_name,prod_price FROM products ORDER BY prod_price DESC, prod_name DESC;
SELECT * FROM customers;
SELECT cust_id,cust_name, cust_country FROM customers where cust_email IS NULL;
SELECT prod_name,prod_price FROM products WHERE (vend_id=1003 OR vend_id=1002)
AND prod_price<=10;
SELECT vend_id, prod_name, prod_price FROM products
WHERE vend_id IN (1002,1003) AND prod_price<10 ORDER BY prod_name;
###################
# 12章 聚集函数
###################
## 所有货物的平均价格
SELECT AVG(prod_price) AS avg_price FROM products;
## 供货商1003的货物平均价格
SELECT vend_id, AVG(prod_price) AS avg_price FROM products
WHERE vend_id = 1003;
## 供货商1003不同品类货物的平均价格
SELECT vend_id, AVG(DISTINCT prod_price) AS avg_price
FROM products
WHERE vend_id = 1003;
## COUNT(*) 忽略空值,COUNT(column) 则不统计空值
SELECT COUNT(*) AS cust_num FROM customers;
SELECT COUNT(cust_email) AS cust_num FROM customers;
########################
## 13章 分组数据
## GROUP BY 和 HAVING
########################
# 显示每个供货商的供货数
SELECT vend_id, COUNT(*) AS num_prods FROM products
GROUP BY vend_id;
# ROLLUP 显示总数
SELECT vend_id, COUNT(*) AS num_prods FROM products
K=GROUP BY vend_id WITH ROLLBACK;
## HAVING 是先分组再过滤,WHERE 是直接过滤
SELECT cust_id, COUNT(*) AS orders FROM orders
GROUP BY cust_id
HAVING COUNT(*) >= 2;
## 同时使用 WHERE 和 HAVING
SELECT vend_id, COUNT(*) AS num_prods FROM products
WHERE prod_price >= 10
GROUP BY vend_id
HAVING COUNT(*) >= 2;
## 使用 ORDER BY 对分组查询后的结果进行排序
SELECT order_num, SUM(quantity*item_price) AS ordertotal
FROM orderitems
GROUP BY order_num
HAVING SUM(quantity*item_price)>=50
ORDER BY ordertotal;
######################
## 子查询
######################
/*这三条语句是组合查询购买了‘TNT2’的客户信息*/
SELECT order_num FROM orderitems
WHERE prod_id = 'TNT2';
SELECT cust_id FROM orders
WHERE order_num = 20005 OR order_num = 20007;
SELECT * FROM customers
WHERE cust_id = 10001 OR cust_id = 10004;
/*利用子查询来组合这三条语句如下所示,其实就是层层嵌套,
使用 WHERE IN 来构造*/
SELECT * FROM customers
WHERE cust_id in (SELECT cust_id
FROM orders
WHERE order_num IN (SELECT order_num
FROM orderitems
WHERE prod_id = 'TNT2'));
/*对客户10001所有订单数的查询*/
SELECT COUNT(*) orderstotal
FROM orders
WHERE cust_id = 10001;
/* 作为计算字段的子查询*/
SELECT cust_name, cust_country, (SELECT COUNT(*) FROM orders
WHERE customers.cust_id = orders.cust_id)
AS orderstotal
FROM customers
ORDER BY orderstotal;
#################################
## 15 联结表 内部联结 叉联结(笛卡尔积)
#################################
/* 等值联结 也成为 内部联结,INNER JOIN*/
SELECT vend_name, prod_name, prod_price
FROM products, vendors
WHERE vendors.vend_id = products.vend_id
ORDER BY vend_name;
SELECT vend_name, prod_name, prod_price
FROM vendors INNER JOIN products
ON vendors.vend_id = products.vend_id
ORDER BY vend_name;
/*连接多个表找出订单2005中所有prod_id|vend_name|prod_price|quantity,这里采用三种方式实现
1.通过逐条查询
2.将逐条查询改为子查询语句
3.用联结表的方式进行,待定留成作业*/
SELECT prod_name, vend_name, prod_price, quantity
FROM orderitems, vendors, products
WHERE vendors.vend_id = products.vend_id
AND orderitems.prod_id = products.prod_id
AND orderitems.order_num = 20005;
##############################
## 16章 高级联结
## 自联结
## 自然链接
## 外部连接(左联和右联)
##############################
## 自联结
SELECT prod_id, prod_name FROM products
WHERE vend_id = (SELECT vend_id FROM products WHERE prod_id = 'DTNTR' );
SELECT p1.prod_id, p1.prod_name
FROM products as p1, products AS p2
WHERE p2.prod_id = 'DTNTR'
AND p1.vend_id = p2.vend_id;
## 自然联结:自动匹配同名的列,不用指定匹配的列
|
\connect @@CON@@
-- schema.search_table_name -- automplete keresés: SCHEMA tabla_szerepenek_ismertetese
-- https://wiki.mithrandir.hu/foswiki/bin/view/SchemaDocHu/SchemaSqlViewSchemaSearchTableName
-- DROP FUNCTION IF EXISTS schema.search_table_name( varchar );
CREATE OR REPLACE FUNCTION schema.search_table_name(
_Tag varchar
) RETURNS TABLE (priority bigint, eid bob.ref, tag varchar) AS $$
WITH
e AS (
SELECT
*
FROM schema.list_table_name AS e
WHERE e.user_id = bob.get_current_user_id()
AND is_active
)
SELECT
CAST( 0 AS bigint ) AS priority,
e.eid,
e.tag
FROM e
WHERE e.tag = _Tag
UNION
SELECT
CAST( 1 AS bigint ) AS priority,
e.eid,
e.tag
FROM e
WHERE e.tag ILIKE _Tag || '%'
AND e.tag != _Tag
UNION
SELECT
CAST( 2 AS bigint ) AS priority,
e.eid,
e.tag
FROM e
WHERE e.tag ILIKE '%' || _Tag || '%'
AND e.tag NOT ILIKE _Tag || '%'
AND e.tag != _Tag
UNION
SELECT
CAST( 3 AS bigint ) AS priority,
e.eid,
e.tag
FROM e
WHERE soundex(e.tag) = soundex(_Tag)
AND e.tag NOT ILIKE '%' || _Tag || '%'
AND e.tag != _Tag
ORDER BY priority, tag;
$$ LANGUAGE SQL;
COMMENT ON FUNCTION schema.search_table_name( varchar ) IS 'automplete keresés: SCHEMA tabla_szerepenek_ismertetese';
GRANT EXECUTE
ON FUNCTION schema.search_table_name( varchar )
TO role_bob5admin, role_bob5user;
-- END schema.search_table_name.sql
|
<filename>db/schema/schema.sql
CREATE DATABASE IF NOT EXISTS choose_your_fighter_db;
USE choose_your_fighter_db;
CREATE TABLE IF NOT EXISTS users (
id INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY (id),
user_name VARCHAR(255)
character
);
CREATE TABLE IF NOT EXISTS characters (
id INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY (id),
character_name VARCHAR (255),
advantage VARCHAR(255),
avatar_image VARCHAR(255),
wins INT,
losses INT,
hp INT,
atk INT,
def INT,
user_id INT
); |
use burgers_db;
insert into burgers(burger_name, devoured)
values ("big mac", false), ("whopper", false), ("baconator", false) |
--- Lists all users by how many times they have mentioned others.
--- For context, it also lists how many messages total.
SELECT
mention_counts.*,
message_counts.count AS total_messages
FROM (
SELECT
users.real_user_id,
users.int_user_id,
users.name,
mentions.count AS total_mentions
FROM (
SELECT
message_id,
mentioned_id
FROM mentions
WHERE guild_id = 181866934353133570 -- Programming
) AS mentions
JOIN messages
ON messages.message_id = mentions.message_id
JOIN users
ON users.int_user_id = messages.int_user_id
GROUP BY users.real_user_id, users.int_user_id
) AS mention_counts
JOIN (
SELECT
user_id,
COUNT(user_id)
FROM messages
GROUP BY messages.user_id
) AS message_counts
mention_counts.int_user_id = message_counts.int_user_id
ORDER BY total_mentions DESC, total_messages DESC;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.