sql stringlengths 6 1.05M |
|---|
<filename>contrib/gp_internal_tools/uninstall_gp_session_state.sql
SET search_path = session_state;
BEGIN;
DROP VIEW session_level_memory_consumption;
DROP FUNCTION session_state_memory_entries_f();
DROP SCHEMA session_state;
COMMIT;
|
create table users (login varbinary(256) not null, passhash varbinary(256) not null, id integer primary key auto_increment not null, time integer not null);
create unique index users_idx on users (login);
|
DO
$$
BEGIN
IF register_patch('CreatingSampleBasisQuestion', 'jekabskarklins', 'Create sample basis special question', '2020-10-05') THEN
BEGIN
INSERT INTO questions(
question_id,
data_type,
question,
default_config,
natural_key,
category_id
)
VALUES(
'sample_basis',
'SAMPLE_BASIS',
'Sample basic information',
'{"titlePlaceholder":"Title","required":false,"small_label":"","tooltip":""}',
'sample_basis',
2
);
INSERT INTO questions(
question_id,
data_type,
question,
default_config,
natural_key,
category_id
)
VALUES(
'proposal_basis',
'PROPOSAL_BASIS',
'Proposal basic information',
'{"required":false,"small_label":"","tooltip":""}',
'proposal_basis',
1
);
UPDATE topics
SET sort_order = sort_order + 1
WHERE template_id IN
(SELECT template_id
FROM templates
WHERE category_id = 1 ); /* Make space for new topic at position 0 */
INSERT INTO topics(topic_title, is_enabled, sort_order, template_id)
SELECT 'New proposal',
TRUE,
0,
template_id
FROM templates
WHERE category_id = 1; /* Insert new topic for every proposal template at position 0 */
INSERT INTO templates_has_questions(question_id, template_id, topic_id, sort_order, config)
SELECT 'proposal_basis',
template_id,
topic_id,
0,
'{"required":false,"small_label":"","tooltip":""}'
FROM topics
WHERE sort_order = 0
AND template_id IN
(SELECT template_id
FROM templates
WHERE category_id = 1 ); /* Add one question with ID proposal_basis to newly created topic */
END;
END IF;
END;
$$ LANGUAGE plpgsql; |
<reponame>blukitas/SQL-pills
USE emt_supervielle_desa_prueba
GO
IF EXISTS (SELECT 1 FROM tablas_depurar_SPV WHERE atd_tabla='wf_cmb_objetos' )
BEGIN
UPDATE tablas_depurar_SPV set
atd_SP='wf_p_pase_historico_cob_SPV',
atd_orden = 1,
atd_baja_fecha = null,
atd_periodicidad = 7,
atd_ultima_ejecucion = '19010101'
WHERE atd_tabla='wf_cmb_objetos'
END
ELSE
BEGIN
INSERT INTO tablas_depurar_SPV VALUES('wf_cmb_objetos', 'wf_p_pase_historico_cob_SPV', 1, '19010101', 7, '', '20190626', null, null, 1, '')
END
IF EXISTS (SELECT 1 FROM tablas_depurar_SPV WHERE atd_tabla='cmb_saldos' )
BEGIN
UPDATE tablas_depurar_SPV set
atd_SP = 'wf_p_pase_historico_csa_SPV',
atd_orden = 2,
atd_baja_fecha = null,
atd_periodicidad = 28,
atd_ultima_ejecucion = '19010101'
WHERE atd_tabla='cmb_saldos'
END
ELSE
BEGIN
INSERT INTO tablas_depurar_SPV VALUES('cmb_saldos', 'wf_p_pase_historico_csa_SPV', 2, '19010101', 28, '', '20190626', null, null, 1, '')
END
IF EXISTS (SELECT 1 FROM tablas_depurar_SPV WHERE atd_tabla='cmb_cta' )
BEGIN
UPDATE tablas_depurar_SPV set
atd_SP = 'wf_p_pase_historico_cct_SPV',
atd_orden = 3,
atd_baja_fecha = null,
atd_periodicidad = 7,
atd_ultima_ejecucion = '19010101'
WHERE atd_tabla='cmb_cta'
END
ELSE
BEGIN
INSERT INTO tablas_depurar_SPV VALUES('cmb_cta', 'wf_p_pase_historico_cct_SPV', 3, '19010101', 7, '', '20190626', null, null, 1, '')
END
IF EXISTS (SELECT 1 FROM tablas_depurar_SPV WHERE atd_tabla='cmb_pte' )
BEGIN
UPDATE tablas_depurar_SPV set
atd_SP = 'wf_p_pase_historico_ctf_SPV',
atd_orden = 4,
atd_baja_fecha = null,
atd_periodicidad = 7,
atd_ultima_ejecucion = '19010101'
WHERE atd_tabla='cmb_pte'
END
ELSE
BEGIN
INSERT INTO tablas_depurar_SPV VALUES('cmb_pte', 'wf_p_pase_historico_ctf_SPV', 4, '19010101', 7, '', '20190626', null, null, 1, '')
END |
/****** Object: View [dbo].[MessagesComplete] Script Date: 09/21/2011 16:45:15 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[MessagesComplete]
AS
SELECT
M.TopicId
,M.MessageId
,M.MessageBody
,M.MessageCreationDate
,M.MessageLastEditDate
,M.ParentId
,M.UserId
,M.Active
,U.UserName
,U.UserSignature
,U.UserGroupId
,G.UserGroupName
,U.UserPhoto
,U.UserRegistrationDate
FROM
dbo.Messages M
INNER JOIN dbo.Users U ON U.UserId = M.UserId
INNER JOIN dbo.UsersGroups G ON G.UserGroupId = U.UserGroupId
LEFT JOIN dbo.Messages P ON P.TopicId = M.TopicId AND P.MessageId = M.ParentId AND P.Active = 1
GO
|
<reponame>seushermsft/active-learning-detect
-- Set up table
CREATE TABLE Image_Tags (
ImageTagId SERIAL UNIQUE,
ImageId integer REFERENCES Image_Info(ImageId) ON DELETE RESTRICT,
X_Min decimal(6,2) NOT NULL,
X_Max decimal(6,2) NOT NULL,
Y_Min decimal(6,2) NOT NULL,
Y_Max decimal(6,2) NOT NULL,
CreatedByUser integer REFERENCES User_Info(UserId),
CreatedDtim timestamp NOT NULL default current_timestamp,
--VOTT_Data json NOT NULL
PRIMARY KEY (ImageId,X_Min,X_Max,Y_Min,Y_Max) --Should we include the bounded box as well?
); |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 03, 2021 at 03:24 AM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.2.33
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: `spkgadungan`
--
-- --------------------------------------------------------
--
-- Table structure for table `tbl_training`
--
CREATE TABLE `tbl_training` (
`id_training` int(20) NOT NULL,
`nama` varchar(50) NOT NULL,
`b_indo` varchar(10) NOT NULL,
`agama` varchar(10) NOT NULL,
`pancasila` varchar(20) NOT NULL,
`umum` varchar(50) NOT NULL,
`kasi_pem` varchar(10) NOT NULL,
`wawancara` varchar(20) NOT NULL,
`status_kelayakan` varchar(15) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tbl_training`
--
INSERT INTO `tbl_training` (`id_training`, `nama`, `b_indo`, `agama`, `pancasila`, `umum`, `kasi_pem`, `wawancara`, `status_kelayakan`) VALUES
(1, 'watiem', '65', '76', '55', '77', '87', '43', 'tidak layak'),
(2, 'Tugimin', '65', '88', '98', '89', '87', '43', 'layak'),
(3, 'Samino', '55', '67', '84', '85', '76', '77', 'layak'),
(4, '<NAME>', '56', '76', '55', '44', '65', '43', 'tidak layak'),
(5, 'Arianto', '55', '33', '34', '76', '56', '90', 'tidak layak'),
(119, '<NAME>', '81', '88', '98', '85', '87', '98', 'layak'),
(130, 'Boniem', '90', '76', '98', '89', '87', '98', 'layak'),
(131, '<NAME>', '65', '67', '84', '77', '87', '90', 'layak'),
(135, 'Nuriatik', '85', '84', '85', '89', '76', '98', 'layak'),
(136, 'Edo', '81', '88', '98', '89', '71', '98', 'layak'),
(137, 'Danang', '78', '67', '90', '88', '80', '89', 'layak'),
(138, 'Indra', '77', '56', '67', '45', '55', '49', 'tidak layak'),
(139, 'Jaya', '88', '99', '82', '78', '92', '88', 'layak'),
(140, 'Rangga', '89', '87', '67', '89', '88', '88', 'layak'),
(141, 'Rizky', '64', '77', '54', '45', '34', '23', 'tidak layak'),
(142, 'Tama', '76', '78', '77', '89', '90', '78', 'layak'),
(143, 'Anisa', '23', '34', '45', '43', '56', '67', 'tidak layak'),
(144, 'Fitri', '89', '76', '90', '67', '89', '88', 'layak'),
(145, 'Ningrum', '67', '56', '89', '77', '56', '90', 'layak'),
(146, 'Dwi', '89', '88', '78', '67', '90', '96', 'layak'),
(147, 'Bintoro', '78', '56', '45', '34', '55', '77', 'tidak layak'),
(148, 'Puji', '77', '90', '88', '77', '67', '89', 'layak'),
(149, 'Annas', '77', '67', '89', '90', '89', '88', 'layak'),
(150, 'Woro', '34', '45', '65', '47', '58', '36', 'tidak layak'),
(151, 'Maria', '89', '77', '90', '90', '78', '69', 'layak'),
(152, 'Kuncoro', '46', '56', '35', '67', '45', '40', 'tidak layak'),
(153, 'Bambang', '89', '78', '89', '67', '90', '90', 'layak'),
(154, 'Wistri', '90', '89', '76', '89', '90', '81', 'layak'),
(155, 'Kukilo', '84', '90', '88', '78', '90', '89', 'layak'),
(156, 'Masentiko', '45', '78', '45', '34', '67', '34', 'tidak layak'),
(157, 'Wagiman', '78', '90', '89', '78', '90', '92', 'layak'),
(158, 'Sumi', '78', '89', '77', '90', '88', '90', 'layak'),
(159, 'Suwargi', '66', '90', '88', '78', '90', '88', 'layak'),
(160, 'Wilie', '89', '88', '78', '90', '78', '92', 'layak'),
(161, 'Maya', '90', '88', '90', '78', '89', '90', 'layak'),
(162, 'Larissa', '78', '90', '88', '78', '90', '83', 'layak'),
(163, 'Ririn', '56', '45', '67', '34', '67', '34', 'tidak layak'),
(164, 'Pipik', '67', '90', '88', '90', '88', '90', 'layak'),
(165, 'Aurelia', '89', '81', '80', '82', '82', '81', 'layak'),
(166, 'Vivi', '87', '80', '78', '90', '77', '90', 'layak');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(5) NOT NULL,
`username` varchar(20) NOT NULL,
`password` varchar(128) NOT NULL,
`nama_lengkap` varchar(40) NOT NULL,
`email` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `username`, `password`, `nama_lengkap`, `email`) VALUES
(1, 'admin', '<PASSWORD>', 'Mega', '<EMAIL>');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tbl_training`
--
ALTER TABLE `tbl_training`
ADD PRIMARY KEY (`id_training`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tbl_training`
--
ALTER TABLE `tbl_training`
MODIFY `id_training` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=170;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(5) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
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 */;
|
-- MS SQL
-- Database Name: Fiesta
-- ------------------------------------------------------
--
--
-- Table structure for table `products`
--
DROP TABLE IF EXISTS [products];
CREATE TABLE products (
[id] INT PRIMARY KEY IDENTITY (1, 1),
[product_name] varchar(255) NOT NULL,
[product_price] decimal(5,2) NOT NULL,
[product_image_url] varchar(max) NOT NULL,
[product_comment] varchar(255) DEFAULT NULL,
);
--
-- Dumping data for table `products`
--
INSERT INTO products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('12 large ballons',2.30,'https://cdn.shopify.com/s/files/1/1832/6341/products/BLOON_MET_GOLD__01_1000x.jpg?v=1571327220','On back order');
INSERT INTO products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('Single Banquet Chair Cover',2.99,'https://cdn.shopify.com/s/files/1/1832/6341/products/SASH_71_046_D04_0a16a508-5cd5-422f-ab7d-45acee11f6d1_1000x.jpg?v=1571323936','Vendor in on Wednesdays only.');
INSERT INTO products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('90x132 Rectangle Table Cloth',24.50,'https://cdn.shopify.com/s/files/1/1832/6341/products/TAB_02_5454_SILV__02_7bb66485-2943-489e-a7c7-8d3f2d810fc5.progressive.jpg?v=1571325198','Table cloth quality issues. Need to talk to vendor.');
INSERT INTO products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('120" Round Table Cloth',14.00,'https://cdn.shopify.com/s/files/1/1832/6341/products/TAB_120_WHT-2_1000x.jpg?v=1571323057','Need double order next time.');
INSERT INTO products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('5 Pack Linen Napkins',5.25,'https://cdn.shopify.com/s/files/1/1832/6341/products/NAP_OSC_WHT_1000x.jpg?v=1571323239','Dont buy the gray ones. Only Beige or white colors sell.');
INSERT INTO products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('12"x108" Inch Table Runner',2.42,'https://cdn.shopify.com/s/files/1/1832/6341/products/RUN_STN_CHMP-2_large.progressive.jpg?v=1571323435','Vendor is discontinuing these July 2020.');
INSERT INTO products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('21 FT Table Skirt',15.00,'https://cdn.shopify.com/s/files/1/1832/6341/products/SKT_POLY_WHT_21__01_1000x.jpg?v=1571323258','Get more variety from vendor as per customers feedback. ');
INSERT INTO products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('Pretty Flowers Center Piece',25.50,'https://cdn.shopify.com/s/files/1/1832/6341/products/PROP_CUPK_001__02_1000x.jpg?v=1571323944',NULL);
INSERT INTO products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('10 Champagne Flutes',4.50,'https://cdn.shopify.com/s/files/1/1832/6341/products/PLST_CU0071_GOLD_1000x.jpg?v=1571325883','Place an order with vendor of 24 packets by next Saturday.');
INSERT INTO products ([product_name],[product_price],[product_image_url],[product_comment]) VALUES ('Confetti Squares',3.99,'https://cdn.shopify.com/s/files/1/1832/6341/products/BOTT_GLIT_002_GOLD__02_1000x.jpg?v=1571327289','On back order.');
--
-- Table structure for table `stores`
--
DROP TABLE IF EXISTS [stores];
CREATE TABLE stores (
[id] INT PRIMARY KEY IDENTITY (1, 1),
[store_name] varchar(255) NOT NULL,
[store_city] varchar(255) NOT NULL,
[store_state] varchar(255) NOT NULL,
) ;
--
-- Dumping data for table `stores`
--
INSERT INTO stores ([store_name],[store_city],[store_state]) VALUES ('Party Xtravaganza','Durham','NC');
INSERT INTO stores ([store_name],[store_city],[store_state]) VALUES ('Party Xperience','San Jose','CA');
INSERT INTO stores ([store_name],[store_city],[store_state]) VALUES ('Party with Us','New York','NY');
INSERT INTO stores ([store_name],[store_city],[store_state]) VALUES ('IneXpensive Party','Northboro','Iowa');
--
-- Table structure for table `inventory`
--
DROP TABLE IF EXISTS [inventory];
CREATE TABLE inventory (
[id] INT PRIMARY KEY IDENTITY (1, 1),
[product_id] int NOT NULL,
[store_id] int NOT NULL,
[quantity] int DEFAULT '0',
[local_price] decimal(5,2) NOT NULL,
[comment] varchar(max)
,
CONSTRAINT [inventory_ibfk_1] FOREIGN KEY ([product_id]) REFERENCES products ([id]) ON UPDATE CASCADE,
CONSTRAINT [inventory_ibfk_2] FOREIGN KEY ([store_id]) REFERENCES stores ([id]) ON UPDATE CASCADE
) ;
CREATE INDEX [product_id] ON inventory ([product_id]);
CREATE INDEX [store_id] ON inventory ([store_id]);
--
-- Dumping data for table `inventory`
--
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (2,1,30,4.05,'These chair cover sell a lot in beige and dont sell enough in other colors. ');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (3,1,100,29.99,'');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (5,1,10,6.99,'The best napkins, believe me. ');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (7,1,56,17.99,'');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (8,1,100,29.99,'If not sold within first 24 hrs. Advertise as 50% off.');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (9,1,98,7.99,'Clear Plastic.');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (1,2,47,2.99,'The biggest ballons');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (2,2,16,3.66,'Stretchy kind.');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (3,2,60,25.95,'These table cloths are not popular in this store.');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (4,2,1,15.99,'Good quality materials. popular product. Re-order.');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (5,2,100,5.99,'');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (6,2,23,3.99,'');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (7,2,0,18.99,'Sold out');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (8,2,2,29.99,'If not sold within first 24 hrs. Advertise as 50% off.');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (9,2,100,7.99,'');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (1,3,100,3.99,'');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (2,3,100,4.99,'');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (3,3,100,20.00,'On sale, discontinuing product.');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (4,3,3,15.95,'Popular item.');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (5,3,64,4.99,'Order only light beige color next time.');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (6,3,0,5.99,'Sold out. ');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (7,3,100,0.00,'');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (8,3,3,25.99,'If not sold within first 24 hrs. Advertize as 50% off.');
INSERT INTO inventory ([product_id],[store_id],[quantity],[local_price],[comment]) VALUES (9,3,87,5.99,'Clear Plastic');
|
--4
USE SoftUni
GO
SELECT [FirstName], [LastName]
FROM [Employees]
WHERE [JobTitle] NOT LIKE '%engineer%'
|
-- manual load because for r2dbc not created core migration
CREATE TABLE IF NOT EXISTS STORES (
store_id VARCHAR(18) DEFAULT GEN_RANDOM_UUID() PRIMARY KEY,
name VARCHAR(120) NOT NULL,
phone VARCHAR(14) NOT NULL
);
CREATE TABLE IF NOT EXISTS ORDERS (
order_id VARCHAR(18) DEFAULT GEN_RANDOM_UUID() PRIMARY KEY,
user_id NUMERIC(20) NOT NULL,
store_id VARCHAR(18) NOT NULL,
name VARCHAR(240) NOT NULL,
amount DECIMAL NOT NULL,
description TEXT DEFAULT '',
state VARCHAR(10) DEFAULT 'NEW' NOT NULL
); |
<reponame>ludhrani/Online-Bookstore
-- MySQL stored procedures for database manipulation
DELIMITER //
DROP PROCEDURE IF EXISTS add_new_user//
CREATE PROCEDURE add_new_user(
IN uname VARCHAR(30),
IN sname VARCHAR(30),
IN bname VARCHAR(30),
IN addr VARCHAR(50),
IN bkg_card_nr VARCHAR(19),
IN pass VARCHAR(10) )
BEGIN
INSERT INTO Users(userName, firstName, familyName, email, bankingCardNumber, password)
VALUES (uname, sname, bname, addr, bkg_card_nr, pass) ;
END//
DELIMITER ;
DELIMITER $$
DROP PROCEDURE IF EXISTS log_in$$
CREATE PROCEDURE log_in(
IN uName VARCHAR(30),
OUT fName VARCHAR(30),
OUT sName VARCHAR(30),
OUT emal VARCHAR(30),
OUT pass VARCHAR(30)
)
BEGIN
SELECT firstName, familyName, email, password
INTO fName, sName, emal, pass
FROM Users
WHERE userName = uName;
END$$
DROP PROCEDURE IF EXISTS getAllBooks$$
CREATE PROCEDURE getAllBooks()
BEGIN
SELECT title, author, genre, price, stock FROM Books;
END$$
DROP PROCEDURE IF EXISTS isBook$$
CREATE PROCEDURE isBook(IN bName VARCHAR(30), OUT bExist INT)
BEGIN
SELECT count(*) INTO bExist
FROM Books
WHERE title = bName;
END$$
DROP PROCEDURE IF EXISTS insertBook$$
CREATE PROCEDURE insertBook(
IN bName VARCHAR(30),
IN bGenre VARCHAR(30),
IN bAuthor VARCHAR(30),
IN bYear VARCHAR(20),
IN bSock INT,
IN bPrice DOUBLE
)
BEGIN
INSERT INTO Books(title, genre, author, published_year, stock, price)
VALUES (bName, bGenre, bAuthor, bYear, bSock, bPrice);
END$$
DROP FUNCTION IF EXISTS bookScore$$
CREATE FUNCTION bookScore(idBook INT)
RETURNS DOUBLE
BEGIN
DECLARE sumScore INT;
DECLARE nrReviews INT;
DECLARE bookGrade DOUBLE DEFAULT 0.0;
SELECT COUNT(*) INTO nrReviews
FROM ReviewedBooks
WHERE bookId = idBook;
SELECT IFNULL(SUM(score), 0) INTO sumScore
FROM ReviewedBooks
WHERE bookId = idBook;
IF nrReviews = 0
THEN
SET bookGrade = 0;
ELSE
SET bookGrade = sumScore / nrReviews;
END IF;
RETURN bookGrade;
END$$
DROP PROCEDURE IF EXISTS getBooksUser$$
CREATE PROCEDURE getBooksUser()
BEGIN
SELECT title, author, genre, price, stock, bookScore(bookId) FROM Books;
END$$
DROP PROCEDURE IF EXISTS getUsersBooks$$
CREATE PROCEDURE getUsersBooks(IN uName VARCHAR(30))
BEGIN
DECLARE idUser INT;
SELECT userId INTO idUser FROM Users WHERE userName=uName;
SELECT b.title, b.author, b.genre, bb.quantity, bookScore(b.bookId)
FROM Books b, BuyedBooks bb
WHERE b.bookId = bb.bookId
AND bb.userId = idUser ;
END$$
DROP PROCEDURE IF EXISTS buyBook$$
CREATE PROCEDURE buyBook(
IN bookName VARCHAR(30),
IN userNm VARCHAR(30)
)
BEGIN
DECLARE nrBooks INT;
DECLARE idBook INT;
DECLARE idUser INT;
SELECT userId INTO idUser FROM Users WHERE userName = userNm;
SELECT bookId INTO idBook FROM Books WHERE title = bookName;
SELECT IFNULL(count(*), 0) INTO nrBooks
FROM BuyedBooks
WHERE userId = idUser
AND bookId = idBook;
IF nrBooks = 0
THEN
INSERT INTO BuyedBooks(userId, bookId, quantity)
VALUES (idUser, idBook, 1);
ELSE
UPDATE BuyedBooks SET quantity = quantity + 1
WHERE userId = idUser
AND bookId = idBook;
END IF;
END$$
DROP PROCEDURE IF EXISTS getBookInfo$$
CREATE PROCEDURE getBookInfo(IN bookName VARCHAR(30))
BEGIN
SELECT title, author, genre, published_year, price, bookScore(bookId)
FROM Books
WHERE title = bookName;
END$$
DROP PROCEDURE IF EXISTS getBookReviews$$
CREATE PROCEDURE getBookReviews(IN bookName VARCHAR(30))
BEGIN
DECLARE idBook INT;
SELECT bookId INTO idBook FROM Books WHERE title=bookName;
SELECT u.userName, bb.score
FROM ReviewedBooks bb, Users u
WHERE bb.bookId = idBook
AND bb.userId = u.userId;
END$$
DROP PROCEDURE IF EXISTS insertReview$$
CREATE PROCEDURE insertReview(
IN uName VARCHAR(30),
IN bookName VARCHAR(30),
IN uScore DOUBLE,
IN uReview VARCHAR(100) )
BEGIN
DECLARE idBook INT;
DECLARE idUser INT;
DECLARE idReview INT;
SELECT bookId INTO idBook FROM Books WHERE title=bookName;
SELECT userId INTO idUser FROM Users WHERE userName=uName;
INSERT INTO Reviews(reviewText)
VALUES (uReview);
SELECT reviewId INTO idReview FROM Reviews WHERE reviewText=uReview;
INSERT INTO ReviewedBooks(reviewId, bookId, userId, score)
VALUES(idReview, idBook, idUser, uScore);
END$$
DROP TRIGGER IF EXISTS updateStock1$$
CREATE TRIGGER updateStock1
AFTER UPDATE ON BuyedBooks FOR EACH ROW
BEGIN
UPDATE Books SET stock = stock - 1
WHERE bookId = NEW.bookId;
END$$
DROP TRIGGER IF EXISTS updateStock2$$
CREATE TRIGGER updateStock2
AFTER INSERT ON BuyedBooks FOR EACH ROW
BEGIN
UPDATE Books SET stock = stock - 1
WHERE bookId = NEW.bookId;
END$$
DELIMITER ;
|
<filename>db_siakuntansi.sql
-- phpMyAdmin SQL Dump
-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Host: 1172.16.31.10
-- Generation Time: Aug 26, 2019 at 03:24 PM
-- Server version: 10.1.37-MariaDB
-- PHP Version: 7.3.0
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: `db_siakuntansi`
--
-- --------------------------------------------------------
--
-- Table structure for table `jenisakun`
--
CREATE TABLE `jenisakun` (
`id` int(11) NOT NULL,
`nama` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `jenisakun`
--
INSERT INTO `jenisakun` (`id`, `nama`) VALUES
(1, 'aset'),
(2, 'liabilitas'),
(3, 'ekuitas'),
(4, 'beban'),
(5, 'pendapatan');
-- --------------------------------------------------------
--
-- Table structure for table `jurnal`
--
CREATE TABLE `jurnal` (
`id_jurnal` varchar(12) NOT NULL,
`id_namaAkun` int(11) NOT NULL,
`tanggal` date NOT NULL,
`keterangan` varchar(150) DEFAULT NULL,
`nominal` int(11) NOT NULL,
`jenisTransaksi` tinyint(1) NOT NULL,
`saldo` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Triggers `jurnal`
--
DELIMITER $$
CREATE TRIGGER `id_jurnal` BEFORE INSERT ON `jurnal` FOR EACH ROW BEGIN
DECLARE nr integer DEFAULT 0;
set nr=(select count(*) from jurnal where tanggal = CURRENT_DATE)+1;
set new.id_jurnal=concat("jrl",DATE_FORMAT(CURRENT_DATE, '%y%m%d'), LPAD((select nr),3,'0'));
end
$$
DELIMITER ;
-- --------------------------------------------------------
--
-- Table structure for table `namaakun`
--
CREATE TABLE `namaakun` (
`id` int(11) NOT NULL,
`id_jenisAkun` int(11) NOT NULL,
`nama` varchar(50) NOT NULL,
`tambahDengan` tinyint(1) NOT NULL,
`status` tinyint(1) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `namaakun`
--
INSERT INTO `namaakun` (`id`, `id_jenisAkun`, `nama`, `tambahDengan`, `status`) VALUES
(1, 1, 'bank', 1, 0),
(2, 1, 'bank bca', 1, 1),
(3, 1, 'bank mandiri', 1, 1),
(4, 2, '<NAME>', 0, 1),
(5, 3, 'Modal', 0, 1),
(6, 3, '<NAME>', 0, 1),
(7, 5, 'Penjualan', 0, 1),
(8, 4, '<NAME>', 1, 1),
(9, 4, '<NAME>', 1, 1);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `jenisakun`
--
ALTER TABLE `jenisakun`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `jurnal`
--
ALTER TABLE `jurnal`
ADD PRIMARY KEY (`id_jurnal`),
ADD KEY `id_namaAkun` (`id_namaAkun`);
--
-- Indexes for table `namaakun`
--
ALTER TABLE `namaakun`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `nama` (`nama`),
ADD KEY `id_jenisAkun` (`id_jenisAkun`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `jenisakun`
--
ALTER TABLE `jenisakun`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `namaakun`
--
ALTER TABLE `namaakun`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `jurnal`
--
ALTER TABLE `jurnal`
ADD CONSTRAINT `jurnal_ibfk_1` FOREIGN KEY (`id_namaAkun`) REFERENCES `namaakun` (`id`);
--
-- Constraints for table `namaakun`
--
ALTER TABLE `namaakun`
ADD CONSTRAINT `namaakun_ibfk_1` FOREIGN KEY (`id_jenisAkun`) REFERENCES `jenisakun` (`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 */;
|
--Mapping details per classifier + effective grants + specified grants
SELECT * FROM
(SELECT
wc.name AS 'ClassifierName'
,wc.group_name AS 'GroupName'
,wc.importance AS 'ClassifierImportance'
,wg.importance AS 'GroupImportance'
,wcd.classifier_type
,wcd.classifier_value
,wg.min_percentage_resource
,wgs.effective_min_percentage_resource
,wg.cap_percentage_resource
,wgs.effective_cap_percentage_resource
,wg.request_min_resource_grant_percent
,wgs.effective_request_min_resource_grant_percent
,wg.request_max_resource_grant_percent
,wgs.effective_request_max_resource_grant_percent
,wgs.total_request_count
,wgs.total_shared_resource_requests
,wgs.total_queued_request_count
,wgs.total_request_execution_timeouts
,wgs.total_resource_grant_timeouts
FROM sys.workload_management_workload_classifiers wc
JOIN sys.workload_management_workload_classifier_details wcd
ON wc.classifier_id = wcd.classifier_id
JOIN sys.dm_workload_management_workload_groups_stats wgs
ON wgs.name = wc.group_name
JOIN sys.workload_management_workload_groups wg
ON wg.group_id = wgs.group_id
) AS Source
PIVOT (max(Classifier_Value) FOR Classifier_Type in ([membername],[wlm_label],[wlm_context],[start_time],[end_time])) AS PivotTable
|
CREATE TABLE users
(
uid INT NOT NULL PRIMARY KEY,
state VARCHAR(50) NOT NULL,
state_data text NOT NULL
);
CREATE TABLE event_classes
(
ecid SERIAL NOT NULL PRIMARY KEY,
uid INT NOT NULL,
text_id VARCHAR(50) NOT NULL,
name VARCHAR(50) NOT NULL,
description VARCHAR(50) DEFAULT NULL,
type VARCHAR(10) NOT NULL
);
CREATE TABLE events
(
eid SERIAL NOT NULL PRIMARY KEY,
ecid INT NOT NULL,
begin TIMESTAMP DEFAULT NULL,
"end" TIMESTAMP DEFAULT NULL,
count INT DEFAULT NULL,
comment text DEFAULT NULL
);
|
<gh_stars>1-10
-- миграция с основними таблицами
-- файлы
CREATE TABLE files
(
id bigserial NOT NULL,
created timestamp DEFAULT timezone('UTC'::text, NOW()) NOT NULL, -- по умолчанию задаёт время создания создания сущности
user_id bigint NOT NULL,
user_file_name varchar(200) NOT NULL,
storage_file_path varchar(200) NOT NULL,
storage_file_name varchar(200) NOT NULL,
CONSTRAINT pk_files PRIMARY KEY (id),
CONSTRAINT fk_files_to_users FOREIGN KEY (user_id) REFERENCES "AspNetUsers"("Id") ON DELETE CASCADE -- ссылка на другую таблицу
);
CREATE UNIQUE INDEX uix_files_storagefilename ON files USING btree (lower((storage_file_name)::text)); -- уникальный индекс (гарантия консистентности данных)
CREATE INDEX fki_files_userid ON files USING btree (user_id); -- индекс для оптимизации FOREIGN KEY
ALTER TABLE files OWNER TO %USER%;
|
CREATE TABLE Models(
ModelID INT NOT NULL,
Name VARCHAR(50) NOT NULL,
ManufacturerID INT NOT NULL
)
CREATE TABLE Manufacturers(
ManufacturerID INT NOT NULL,
Name VARCHAR(50) NOT NULL,
EstablishedOn DATE
)
INSERT INTO Models (ModelID, Name, ManufacturerID)
VALUES
(101,'X1', 1),
(102, 'i6', 1),
(103, 'Model S', 2),
(104, 'Model X', 2),
(105, 'Model 3', 2),
(106, 'Nova', 3)
INSERT INTO Manufacturers (ManufacturerID, Name, EstablishedOn)
VALUES
(1, 'BMW', '1916-03-07'),
(2, 'Tesla', '2003-01-01'),
(3, 'Lada', '1966-05-01')
ALTER TABLE Models
ADD PRIMARY KEY (ModelID)
ALTER TABLE Manufacturers
ADD PRIMARY KEY (ManufacturerID)
ALTER TABLE Models
ADD CONSTRAINT FK_Models_Manufacturers
FOREIGN KEY (ManufacturerID)
REFERENCES Manufacturers(ManufacturerID) |
create database `niko-prod` default character set utf8 collate utf8_general_ci;
use niko-prod;
-- ----------------------------
-- Table structure for ab_test
-- ----------------------------
DROP TABLE IF EXISTS `ab_test`;
CREATE TABLE `ab_test` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`method` varchar(255) NOT NULL DEFAULT 'get',
`origin` varchar(255) NOT NULL DEFAULT '/' COMMENT 'gateway api',
`server` varchar(255) NOT NULL DEFAULT 'localhost' COMMENT 'server url',
`dest` varchar(255) NOT NULL DEFAULT '/' COMMENT 'micro service router',
`suspend` tinyint(4) NOT NULL DEFAULT '0',
`increase` int(11) NOT NULL COMMENT 'proxy ratio percent for 2 digits at each increasement',
`current` int(11) NOT NULL COMMENT 'current proxy ratio',
`timeGap` int(11) NOT NULL COMMENT 'increasement time gap hours',
`comment` varchar(255) NOT NULL,
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
PRIMARY KEY (`id`),
UNIQUE KEY `IDX_9bada810e70958ad6f4655b7c5` (`origin`,`method`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;
-- ----------------------------
-- Table structure for api
-- ----------------------------
DROP TABLE IF EXISTS `api`;
CREATE TABLE `api` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`comment` varchar(255) NOT NULL,
`allowGroup` varchar(255) NOT NULL,
`method` varchar(255) NOT NULL DEFAULT 'get',
`origin` varchar(255) NOT NULL DEFAULT '/' COMMENT 'gateway api',
`server` varchar(255) NOT NULL COMMENT 'server address (and port)',
`dest` varchar(255) NOT NULL COMMENT 'destination service api',
`customHeader` varchar(2000) NOT NULL COMMENT 'custom headers',
`switch` tinyint(4) NOT NULL DEFAULT '0',
`abTest` tinyint(4) NOT NULL DEFAULT '0',
`isPublic` tinyint(4) NOT NULL DEFAULT '0',
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
PRIMARY KEY (`id`),
UNIQUE KEY `IDX_1898842839d2081ec177f168bd` (`origin`,`method`,`switch`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;
-- ----------------------------
-- Table structure for auth_log
-- ----------------------------
DROP TABLE IF EXISTS `auth_log`;
CREATE TABLE `auth_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` int(11) NOT NULL,
`service` varchar(255) NOT NULL,
`device` varchar(255) NOT NULL,
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;
-- ----------------------------
-- Table structure for biz
-- ----------------------------
DROP TABLE IF EXISTS `biz`;
CREATE TABLE `biz` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`comment` varchar(255) NOT NULL,
`url` varchar(255) NOT NULL,
`api` varchar(255) NOT NULL DEFAULT 'localhost',
`allowGroup` varchar(255) NOT NULL,
`isOpen` tinyint(4) NOT NULL DEFAULT '1',
`isPublic` tinyint(4) NOT NULL DEFAULT '0',
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
PRIMARY KEY (`id`),
UNIQUE KEY `IDX_ab6bbd35778fbfe9f469b7e633` (`api`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;
-- ----------------------------
-- Table structure for group
-- ----------------------------
DROP TABLE IF EXISTS `group`;
CREATE TABLE `group` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL DEFAULT 'no name',
`comment` varchar(255) NOT NULL,
`default` tinyint(4) NOT NULL DEFAULT '0',
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
PRIMARY KEY (`id`),
UNIQUE KEY `IDX_8a45300fd825918f3b40195fbd` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;
-- ----------------------------
-- Table structure for system
-- ----------------------------
DROP TABLE IF EXISTS `system`;
CREATE TABLE `system` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`key` varchar(255) NOT NULL,
`value` varchar(2000) NOT NULL,
`comment` varchar(255) NOT NULL,
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
PRIMARY KEY (`id`),
UNIQUE KEY `IDX_f63cf64f5604ba53befd7bfaf9` (`key`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;
-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`refreshToken` varchar(255) NOT NULL,
`refreshTokenExp` datetime NOT NULL,
`accessToken` varchar(255) NOT NULL,
`accessTokenExp` datetime NOT NULL,
`staffId` varchar(255) NOT NULL,
`staffName` varchar(255) NOT NULL,
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
PRIMARY KEY (`id`),
UNIQUE KEY `IDX_03585d421deb10bbc326fffe4c` (`refreshToken`),
UNIQUE KEY `IDX_7b0580ed0bf7364a7d4d11d5b2` (`accessToken`),
UNIQUE KEY `IDX_8f18060284824a8516b6bc325f` (`staffId`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;
-- ----------------------------
-- Table structure for user_group_map
-- ----------------------------
DROP TABLE IF EXISTS `user_group_map`;
CREATE TABLE `user_group_map` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` varchar(255) NOT NULL,
`groupId` varchar(255) NOT NULL,
`createdAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6),
`updatedAt` datetime(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),
PRIMARY KEY (`id`),
UNIQUE KEY `IDX_0ea202166b387dac9de91b1b68` (`userId`,`groupId`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
SET FOREIGN_KEY_CHECKS = 1;
|
CREATE OR REPLACE
PACKAGE BODY json_UT IS
----------------------------------------------------------
-- PRIVATE TYPES
----------------------------------------------------------
----------------------------------------------------------
-- LOCAL MODULES
----------------------------------------------------------
PROCEDURE checkNode(theTitle IN VARCHAR2 DEFAULT NULL, theNodes IN jsonNodes, theNodeID IN NUMBER, theType IN VARCHAR2, theName IN VARCHAR2 DEFAULT NULL, theString IN VARCHAR2 DEFAULT NULL, theNumber IN NUMBER DEFAULT NULL, theDate IN DATE DEFAULT NULL, theParent IN NUMBER DEFAULT NULL, theNext IN NUMBER DEFAULT NULL, theSub IN NUMBER DEFAULT NULL);
PROCEDURE getComplexObject(theJsonObject IN OUT NOCOPY jsonObject, theJsonString IN OUT NOCOPY CLOB);
PROCEDURE clearLob(theLob IN OUT NOCOPY CLOB);
PROCEDURE setLob(theLob IN OUT NOCOPY CLOB, theValue IN VARCHAR2);
PROCEDURE fillLob(theLob IN OUT NOCOPY CLOB);
FUNCTION toJSON(theDate IN DATE) RETURN VARCHAR2;
----------------------------------------------------------
-- GLOBAL MODULES
----------------------------------------------------------
----------------------------------------------------------
-- test the convertion of simple values (private)
--
PROCEDURE UT_Values
IS
TYPE TestValueType IS RECORD (
typ VARCHAR2(1), -- 0, S, N, D, B
str VARCHAR2(2000),
num NUMBER,
dat DATE,
bln BOOLEAN,
result VARCHAR2(32767)
);
TYPE TestValueList IS TABLE OF TestValueType INDEX BY BINARY_INTEGER;
aList TestValueList;
aObject jsonObject := jsonObject();
aLob CLOB := empty_clob();
THIS_DATE DATE := TO_DATE('19990101', 'YYYYMMDD');
PROCEDURE add(typ IN VARCHAR2, str IN VARCHAR2 DEFAULT NULL, num IN NUMBER DEFAULT NULL, dat IN DATE DEFAULT NULL, bln IN BOOLEAN DEFAULT NULL, result IN VARCHAR2)
IS
c BINARY_INTEGER := aList.COUNT + 1;
BEGIN
aList(c).typ := typ;
aList(c).str := str;
aList(c).num := num;
aList(c).dat := dat;
aList(c).bln := bln;
aList(c).result := result;
END add;
BEGIN
UT_util.module('UT_Values');
-- allocate clob
dbms_lob.createtemporary(aLob, TRUE);
-- test data
add(typ=>'0', result=>'{"value":null}');
add(typ=>'S', str=>NULL, result=>'{"value":""}');
add(typ=>'S', str=>'', result=>'{"value":""}');
add(typ=>'S', str=>'a', result=>'{"value":"a"}');
add(typ=>'S', str=>CHR(8), result=>'{"value":"\b"}');
add(typ=>'S', str=>CHR(9), result=>'{"value":"\t"}');
add(typ=>'S', str=>CHR(10), result=>'{"value":"\n"}');
add(typ=>'S', str=>CHR(12), result=>'{"value":"\f"}');
add(typ=>'S', str=>CHR(13), result=>'{"value":"\r"}');
add(typ=>'S', str=>CHR(34), result=>'{"value":"\""}');
add(typ=>'S', str=>CHR(92), result=>'{"value":"\\"}');
add(typ=>'S', str=>CHR(1), result=>'{"value":"\u0001"}');
add(typ=>'S', str=>CHR(2), result=>'{"value":"\u0002"}');
add(typ=>'S', str=>CHR(30), result=>'{"value":"\u001E"}');
add(typ=>'S', str=>CHR(31), result=>'{"value":"\u001F"}');
add(typ=>'N', num=>0, result=>'{"value":0}');
add(typ=>'N', num=>-1, result=>'{"value":-1}');
add(typ=>'N', num=>1, result=>'{"value":1}');
add(typ=>'N', num=>0.1, result=>'{"value":0.1}');
add(typ=>'N', num=>0.001, result=>'{"value":0.001}');
add(typ=>'N', num=>-0.1, result=>'{"value":-0.1}');
add(typ=>'N', num=>-0.001, result=>'{"value":-0.001}');
add(typ=>'N', num=>99E10, result=>'{"value":990000000000}');
add(typ=>'N', num=>-99E10, result=>'{"value":-990000000000}');
add(typ=>'N', num=>99E15, result=>'{"value":99000000000000000}');
add(typ=>'N', num=>-99E15, result=>'{"value":-99000000000000000}');
add(typ=>'D', dat=>THIS_DATE, result=>'{"value":"'||toJSON(THIS_DATE)||'"}');
add(typ=>'D', dat=>THIS_DATE + 1, result=>'{"value":"'||toJSON(THIS_DATE + 1)||'"}');
add(typ=>'B', bln=>FALSE, result=>'{"value":false}');
add(typ=>'B', bln=>TRUE, result=>'{"value":true}');
-- check JSON string
FOR i IN 1 .. aList.COUNT LOOP
aObject := jsonObject();
CASE aList(i).typ
WHEN '0' THEN
aObject.put('value');
WHEN 'S' THEN
aObject.put('value', aList(i).str);
WHEN 'N' THEN
aObject.put('value', aList(i).num);
WHEN 'D' THEN
aObject.put('value', aList(i).dat);
WHEN 'B' THEN
aObject.put('value', aList(i).bln);
END CASE;
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => '#'||i,
theComputed => aLob,
theExpected => TO_CLOB(aList(i).result),
theNullOK => TRUE
);
END LOOP;
-- cleanup
dbms_lob.freetemporary(aLob);
END UT_Values;
----------------------------------------------------------
-- test the convertion of CLOB values (private)
--
PROCEDURE UT_LobValues
IS
aValue CLOB := EMPTY_CLOB();
aOutput CLOB := EMPTY_CLOB();
aExpected CLOB := EMPTY_CLOB();
aObj jsonObject := jsonObject();
BEGIN
UT_util.module('UT_LobValues');
--allocate clob
dbms_lob.createtemporary(lob_loc=>aValue, cache=>TRUE, dur=>dbms_lob.session);
dbms_lob.createtemporary(lob_loc=>aOutput, cache=>TRUE, dur=>dbms_lob.session);
dbms_lob.createtemporary(lob_loc=>aExpected, cache=>TRUE, dur=>dbms_lob.session);
-- EMPTY_CLOB()
aObj := jsonObject();
aObj.put('value', EMPTY_CLOB());
aObj.to_clob(theLobBuf=>aOutput);
clearLob(theLob=>aExpected);
dbms_lob.append(dest_lob=>aExpected, src_lob=>TO_CLOB('{"value":""}'));
UT_util.eqLOB(theTitle=>'1: EMPTY_CLOB()', theComputed=>aOutput, theExpected=>aExpected, theNullOK=>TRUE);
-- empty CLOB
aObj := jsonObject();
setLob(aValue, '');
aObj.put('value', aValue);
aObj.to_clob(theLobBuf=>aOutput);
clearLob(theLob=>aExpected);
dbms_lob.append(dest_lob=>aExpected, src_lob=>TO_CLOB('{"value":""}'));
UT_util.eqLOB(theTitle=>'2: NULL', theComputed=>aOutput, theExpected=>aExpected, theNullOK=>TRUE);
-- #
aObj := jsonObject();
setLob(aValue, '#');
aObj.put('value', aValue);
aObj.to_clob(theLobBuf=>aOutput);
clearLob(theLob=>aExpected);
dbms_lob.append(dest_lob=>aExpected, src_lob=>TO_CLOB('{"value":"#"}'));
UT_util.eqLOB(theTitle=>'3: #', theComputed=>aOutput, theExpected=>aExpected, theNullOK=>TRUE);
-- special characters
aObj := jsonObject();
setLob(aValue, CHR(8)||CHR(9)||CHR(10)||CHR(12)||CHR(13)||CHR(34)||CHR(92));
aObj.put('value', aValue);
aObj.to_clob(theLobBuf=>aOutput);
clearLob(theLob=>aExpected);
dbms_lob.append(dest_lob=>aExpected, src_lob=>TO_CLOB('{"value":"\b\t\n\f\r\"\\"}'));
UT_util.eqLOB(theTitle=>'4: \b\t\n\f\r\"\\', theComputed=>aOutput, theExpected=>aExpected, theNullOK=>TRUE);
-- hex
aObj := jsonObject();
clearLob(theLob=>aValue);
setLob(aValue, CHR(1)||CHR(2)||CHR(30)||CHR(31));
aObj.put('value', aValue);
aObj.to_clob(theLobBuf=>aOutput);
clearLob(theLob=>aExpected);
dbms_lob.append(dest_lob=>aExpected, src_lob=>TO_CLOB('{"value":"\u0001\u0002\u001E\u001F"}'));
UT_util.eqLOB(theTitle=>'5: \u0001\u0002\u001E\u001F', theComputed=>aOutput, theExpected=>aExpected, theNullOK=>TRUE);
-- ##########!!!!!!!!!!**********##########
aObj := jsonObject();
setLob(aValue, '##########!!!!!!!!!!**********##########');
aObj.put('value', aValue);
aObj.to_clob(theLobBuf=>aOutput);
clearLob(theLob=>aExpected);
dbms_lob.append(dest_lob=>aExpected, src_lob=>TO_CLOB('{"value":"##########!!!!!!!!!!**********##########"}'));
UT_util.eqLOB(theTitle=>'6: ##########!!!!!!!!!!**********##########', theComputed=>aOutput, theExpected=>aExpected, theNullOK=>TRUE);
-- 32767 * 10 x #
aObj := jsonObject();
fillLob(theLob=>aValue); -- 32767 * 2
aObj.put('value', aValue);
aObj.to_clob(theLobBuf=>aOutput);
clearLob(theLob=>aExpected);
dbms_lob.append(dest_lob=>aExpected, src_lob=>TO_CLOB('{"value":"'));
dbms_lob.append(dest_lob=>aExpected, src_lob=>aValue);
dbms_lob.append(dest_lob=>aExpected, src_lob=>TO_CLOB('"}'));
UT_util.eqLOB(theTitle=>'7: 32767*10...#', theComputed=>aOutput, theExpected=>aExpected, theNullOK=>TRUE);
-- cleanup
dbms_lob.freetemporary(lob_loc=>aValue);
dbms_lob.freetemporary(lob_loc=>aOutput);
dbms_lob.freetemporary(lob_loc=>aExpected);
END UT_LobValues;
----------------------------------------------------------
-- check the internal representation using nodes
--
PROCEDURE UT_Nodes
IS
aObject1 jsonObject := jsonObject();
aArray1 jsonArray := jsonArray();
aObject2 jsonObject := jsonObject();
aArray2 jsonArray := jsonArray();
aLob CLOB := empty_clob();
aTitle VARCHAR2(80);
BEGIN
UT_util.module('UT_Nodes');
-- allocate clob
dbms_lob.createtemporary(aLob, TRUE);
--
-- aArray2
--
aArray2.append('a1');
aArray2.append(8.11);
json_utils.validate(aArray2.nodes);
aTitle := 'aArray2';
aArray2.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle||': json-string',
theComputed => aLob,
theExpected => '["a1",8.11]',
theNullOK => TRUE
);
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>2, theComputed=>aArray2.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>2, theComputed=>aArray2.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aArray2.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>NULL, theString=>'a1');
checkNode( theTitle=>aTitle, theNodes=>aArray2.nodes, theNodeID=>2, theType=>'N', theSub=>NULL, theParent=>NULL, theNext=>NULL, theName=>NULL, theNumber=>8.11);
--
-- aObject2
--
aObject2.put('p1', aArray2.to_jsonValue());
aObject2.put('p2', aArray2.to_jsonValue());
json_utils.validate(aObject2.nodes);
aTitle := 'aObject2';
aObject2.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle||': json-string',
theComputed => aLob,
theExpected => '{"p1":["a1",8.11],"p2":["a1",8.11]}',
theNullOK => TRUE
);
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>6, theComputed=>aObject2.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>4, theComputed=>aObject2.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject2.nodes, theNodeID=>1, theType=>'A', theSub=>2, theParent=>NULL, theNext=>4, theName=>'p1');
checkNode( theTitle=>aTitle, theNodes=>aObject2.nodes, theNodeID=>2, theType=>'S', theSub=>NULL, theParent=>1, theNext=>3, theName=>NULL, theString=>'a1');
checkNode( theTitle=>aTitle, theNodes=>aObject2.nodes, theNodeID=>3, theType=>'N', theSub=>NULL, theParent=>1, theNext=>NULL, theName=>NULL, theNumber=>8.11);
checkNode( theTitle=>aTitle, theNodes=>aObject2.nodes, theNodeID=>4, theType=>'A', theSub=>5, theParent=>NULL, theNext=>NULL, theName=>'p2');
checkNode( theTitle=>aTitle, theNodes=>aObject2.nodes, theNodeID=>5, theType=>'S', theSub=>NULL, theParent=>4, theNext=>6, theName=>NULL, theString=>'a1');
checkNode( theTitle=>aTitle, theNodes=>aObject2.nodes, theNodeID=>6, theType=>'N', theSub=>NULL, theParent=>4, theNext=>NULL, theName=>NULL, theNumber=>8.11);
--
-- aArray1
--
aArray1.append(aObject2);
aArray1.append(aObject2);
json_utils.validate(aArray1.nodes);
aTitle := 'aArray1';
aArray1.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle||': json-string',
theComputed => aLob,
theExpected => '[{"p1":["a1",8.11],"p2":["a1",8.11]},{"p1":["a1",8.11],"p2":["a1",8.11]}]',
theNullOK => FALSE
);
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>14, theComputed=>aArray1.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>8, theComputed=>aArray1.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>1, theType=>'O', theSub=>2, theParent=>NULL, theNext=>8, theName=>NULL);
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>2, theType=>'A', theSub=>3, theParent=>1, theNext=>5, theName=>'p1');
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>3, theType=>'S', theSub=>NULL, theParent=>2, theNext=>4, theName=>NULL, theString=>'a1');
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>4, theType=>'N', theSub=>NULL, theParent=>2, theNext=>NULL, theName=>NULL, theNumber=>8.11);
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>5, theType=>'A', theSub=>6, theParent=>1, theNext=>NULL, theName=>'p2');
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>6, theType=>'S', theSub=>NULL, theParent=>5, theNext=>7, theName=>NULL, theString=>'a1');
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>7, theType=>'N', theSub=>NULL, theParent=>5, theNext=>NULL, theName=>NULL, theNumber=>8.11);
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>8, theType=>'O', theSub=>9, theParent=>NULL, theNext=>NULL, theName=>NULL);
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>9, theType=>'A', theSub=>10, theParent=>8, theNext=>12, theName=>'p1');
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>10, theType=>'S', theSub=>NULL, theParent=>9, theNext=>11, theName=>NULL, theString=>'a1');
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>11, theType=>'N', theSub=>NULL, theParent=>9, theNext=>NULL, theName=>NULL, theNumber=>8.11);
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>12, theType=>'A', theSub=>13, theParent=>8, theNext=>NULL, theName=>'p2');
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>13, theType=>'S', theSub=>NULL, theParent=>12, theNext=>14, theName=>NULL, theString=>'a1');
checkNode( theTitle=>aTitle, theNodes=>aArray1.nodes, theNodeID=>14, theType=>'N', theSub=>NULL, theParent=>12, theNext=>NULL, theName=>NULL, theNumber=>8.11);
--
-- aObject1
--
aObject1.put('data', aArray1.to_jsonValue());
json_utils.validate(aObject1.nodes);
aTitle := 'aObject1';
aObject1.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle||': json-string',
theComputed => aLob,
theExpected => '{"data":[{"p1":["a1",8.11],"p2":["a1",8.11]},{"p1":["a1",8.11],"p2":["a1",8.11]}]}',
theNullOK => FALSE
);
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>15, theComputed=>aObject1.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>1, theComputed=>aObject1.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>1, theType=>'A', theSub=>2, theParent=>NULL, theNext=>NULL, theName=>'data');
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>2, theType=>'O', theSub=>3, theParent=>1, theNext=>9, theName=>NULL);
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>3, theType=>'A', theSub=>4, theParent=>2, theNext=>6, theName=>'p1');
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>4, theType=>'S', theSub=>NULL, theParent=>3, theNext=>5, theName=>NULL, theString=>'a1');
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>5, theType=>'N', theSub=>NULL, theParent=>3, theNext=>NULL, theName=>NULL, theNumber=>8.11);
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>6, theType=>'A', theSub=>7, theParent=>2, theNext=>NULL, theName=>'p2');
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>7, theType=>'S', theSub=>NULL, theParent=>6, theNext=>8, theName=>NULL, theString=>'a1');
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>8, theType=>'N', theSub=>NULL, theParent=>6, theNext=>NULL, theName=>NULL, theNumber=>8.11);
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>9, theType=>'O', theSub=>10, theParent=>1, theNext=>NULL, theName=>NULL);
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>10, theType=>'A', theSub=>11, theParent=>9, theNext=>13, theName=>'p1');
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>11, theType=>'S', theSub=>NULL, theParent=>10, theNext=>12, theName=>NULL, theString=>'a1');
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>12, theType=>'N', theSub=>NULL, theParent=>10, theNext=>NULL, theName=>NULL, theNumber=>8.11);
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>13, theType=>'A', theSub=>14, theParent=>9, theNext=>NULL, theName=>'p2');
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>14, theType=>'S', theSub=>NULL, theParent=>13, theNext=>15, theName=>NULL, theString=>'a1');
checkNode( theTitle=>aTitle, theNodes=>aObject1.nodes, theNodeID=>15, theType=>'N', theSub=>NULL, theParent=>13, theNext=>NULL, theName=>NULL, theNumber=>8.11);
-- cleanup
dbms_lob.freetemporary(aLob);
END UT_Nodes;
----------------------------------------------------------
-- UT_RemoveNode
--
PROCEDURE UT_RemoveNode
IS
aJsonObject jsonObject := jsonObject();
aJsonString CLOB := empty_clob();
aObject jsonObject := jsonObject();
aLob CLOB := empty_clob();
aNodeID BINARY_INTEGER;
aLastID BINARY_INTEGER;
aTitle VARCHAR2(32767);
BEGIN
UT_util.module('UT_RemoveNode');
-- allocate clob
dbms_lob.createtemporary(aJsonString, TRUE);
dbms_lob.createtemporary(aLob, TRUE);
-- construct a complex json object
getComplexObject(theJsonObject=>aJsonObject, theJsonString=>aJsonString);
-- create sub object
aTitle := 'create sub object';
aObject := aJsonObject;
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>12, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>7, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'fname', theString=>'john');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'0', theSub=>NULL, theParent=>NULL, theNext=>3, theName=>'mname');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>4, theName=>'lname', theString=>'doe');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>4, theType=>'A', theSub=>5, theParent=>NULL, theNext=>7, theName=>'email');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>5, theType=>'S', theSub=>NULL, theParent=>4, theNext=>6, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>6, theType=>'S', theSub=>NULL, theParent=>4, theNext=>NULL, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>7, theType=>'O', theSub=>8, theParent=>NULL, theNext=>NULL, theName=>'address');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>8, theType=>'A', theSub=>9, theParent=>7, theNext=>10, theName=>'street');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>9, theType=>'S', theSub=>NULL, theParent=>8, theNext=>NULL, theName=>NULL, theString=>'n. russmore av.');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>10, theType=>'S', theSub=>NULL, theParent=>7, theNext=>11, theName=>'city', theString=>'los angeles');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>11, theType=>'S', theSub=>NULL, theParent=>7, theNext=>12, theName=>'state', theString=>'ca');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>12, theType=>'S', theSub=>NULL, theParent=>7, theNext=>NULL, theName=>'zip', theString=>'90004');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => aJsonString,
theNullOK => TRUE
);
aTitle := 'create complex object';
aObject := jsonObject();
aObject.put(theName=>'p1', theValue=>'v1');
aObject.put(theName=>'p2', theValue=>aJsonObject);
aObject.put(theName=>'p3', theValue=>'v3');
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>15, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>15, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'p1', theString=>'v1');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'O', theSub=>3, theParent=>NULL, theNext=>15, theName=>'p2');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'S', theSub=>NULL, theParent=>2, theNext=>4, theName=>'fname', theString=>'john');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>4, theType=>'0', theSub=>NULL, theParent=>2, theNext=>5, theName=>'mname');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>5, theType=>'S', theSub=>NULL, theParent=>2, theNext=>6, theName=>'lname', theString=>'doe');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>6, theType=>'A', theSub=>7, theParent=>2, theNext=>9, theName=>'email');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>7, theType=>'S', theSub=>NULL, theParent=>6, theNext=>8, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>8, theType=>'S', theSub=>NULL, theParent=>6, theNext=>NULL, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>9, theType=>'O', theSub=>10, theParent=>2, theNext=>NULL, theName=>'address');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>10, theType=>'A', theSub=>11, theParent=>9, theNext=>12, theName=>'street');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>11, theType=>'S', theSub=>NULL, theParent=>10, theNext=>NULL, theName=>NULL, theString=>'n. russmore av.');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>12, theType=>'S', theSub=>NULL, theParent=>9, theNext=>13, theName=>'city', theString=>'los angeles');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>13, theType=>'S', theSub=>NULL, theParent=>9, theNext=>14, theName=>'state', theString=>'ca');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>14, theType=>'S', theSub=>NULL, theParent=>9, theNext=>NULL, theName=>'zip', theString=>'90004');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>15, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>NULL, theName=>'p3', theString=>'v3');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p1":"v1","p2":'||aJsonString||',"p3":"v3"}',
theNullOK => TRUE
);
-- get node id of property p3
aNodeID := json_utils.getNodeIDByName(theNodes=>aObject.nodes, thePropertyName=>'p3');
UT_util.eq(theTitle=>'get node id of property p3', theExpected=>15, theComputed=>aNodeID, theNullOK=>TRUE);
-- remove nodes of property p3
aTitle := 'remove property p3';
aObject.lastID := json_utils.removeNode(theNodes=>aObject.nodes, theNodeID=>aNodeID);
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>14, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>2, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'p1', theString=>'v1');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'O', theSub=>3, theParent=>NULL, theNext=>NULL, theName=>'p2');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'S', theSub=>NULL, theParent=>2, theNext=>4, theName=>'fname', theString=>'john');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>4, theType=>'0', theSub=>NULL, theParent=>2, theNext=>5, theName=>'mname');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>5, theType=>'S', theSub=>NULL, theParent=>2, theNext=>6, theName=>'lname', theString=>'doe');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>6, theType=>'A', theSub=>7, theParent=>2, theNext=>9, theName=>'email');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>7, theType=>'S', theSub=>NULL, theParent=>6, theNext=>8, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>8, theType=>'S', theSub=>NULL, theParent=>6, theNext=>NULL, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>9, theType=>'O', theSub=>10, theParent=>2, theNext=>NULL, theName=>'address');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>10, theType=>'A', theSub=>11, theParent=>9, theNext=>12, theName=>'street');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>11, theType=>'S', theSub=>NULL, theParent=>10, theNext=>NULL, theName=>NULL, theString=>'n. russmore av.');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>12, theType=>'S', theSub=>NULL, theParent=>9, theNext=>13, theName=>'city', theString=>'los angeles');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>13, theType=>'S', theSub=>NULL, theParent=>9, theNext=>14, theName=>'state', theString=>'ca');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>14, theType=>'S', theSub=>NULL, theParent=>9, theNext=>NULL, theName=>'zip', theString=>'90004');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p1":"v1","p2":'||aJsonString||'}',
theNullOK => TRUE
);
-- get node id of property p1
aNodeID := json_utils.getNodeIDByName(theNodes=>aObject.nodes, thePropertyName=>'p1');
UT_util.eq(theTitle=>'get node id of property p1', theExpected=>1, theComputed=>aNodeID, theNullOK=>TRUE);
-- remove nodes of property p1
aTitle := 'remove property p1';
aObject.lastID := json_utils.removeNode(theNodes=>aObject.nodes, theNodeID=>aNodeID);
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>13, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>1, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'O', theSub=>2, theParent=>NULL, theNext=>NULL, theName=>'p2');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'S', theSub=>NULL, theParent=>1, theNext=>3, theName=>'fname', theString=>'john');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'0', theSub=>NULL, theParent=>1, theNext=>4, theName=>'mname');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>4, theType=>'S', theSub=>NULL, theParent=>1, theNext=>5, theName=>'lname', theString=>'doe');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>5, theType=>'A', theSub=>6, theParent=>1, theNext=>8, theName=>'email');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>6, theType=>'S', theSub=>NULL, theParent=>5, theNext=>7, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>7, theType=>'S', theSub=>NULL, theParent=>5, theNext=>NULL, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>8, theType=>'O', theSub=>9, theParent=>1, theNext=>NULL, theName=>'address');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>9, theType=>'A', theSub=>10, theParent=>8, theNext=>11, theName=>'street');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>10, theType=>'S', theSub=>NULL, theParent=>9, theNext=>NULL, theName=>NULL, theString=>'n. russmore av.');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>11, theType=>'S', theSub=>NULL, theParent=>8, theNext=>12, theName=>'city', theString=>'los angeles');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>12, theType=>'S', theSub=>NULL, theParent=>8, theNext=>13, theName=>'state', theString=>'ca');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>13, theType=>'S', theSub=>NULL, theParent=>8, theNext=>NULL, theName=>'zip', theString=>'90004');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p2":'||aJsonString||'}',
theNullOK => TRUE
);
-- remove nodes of property p1
aTitle := 'remove property p1#2';
aObject := jsonObject();
aObject.put(theName=>'p1', theValue=>'v1');
aObject.put(theName=>'p2', theValue=>aJsonObject);
aObject.put(theName=>'p3', theValue=>'v3');
aNodeID := json_utils.getNodeIDByName(theNodes=>aObject.nodes, thePropertyName=>'p1');
aObject.lastID := json_utils.removeNode(theNodes=>aObject.nodes, theNodeID=>aNodeID);
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>14, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>14, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'O', theSub=>2, theParent=>NULL, theNext=>14, theName=>'p2');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'S', theSub=>NULL, theParent=>1, theNext=>3, theName=>'fname', theString=>'john');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'0', theSub=>NULL, theParent=>1, theNext=>4, theName=>'mname');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>4, theType=>'S', theSub=>NULL, theParent=>1, theNext=>5, theName=>'lname', theString=>'doe');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>5, theType=>'A', theSub=>6, theParent=>1, theNext=>8, theName=>'email');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>6, theType=>'S', theSub=>NULL, theParent=>5, theNext=>7, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>7, theType=>'S', theSub=>NULL, theParent=>5, theNext=>NULL, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>8, theType=>'O', theSub=>9, theParent=>1, theNext=>NULL, theName=>'address');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>9, theType=>'A', theSub=>10, theParent=>8, theNext=>11, theName=>'street');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>10, theType=>'S', theSub=>NULL, theParent=>9, theNext=>NULL, theName=>NULL, theString=>'n. russmore av.');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>11, theType=>'S', theSub=>NULL, theParent=>8, theNext=>12, theName=>'city', theString=>'los angeles');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>12, theType=>'S', theSub=>NULL, theParent=>8, theNext=>13, theName=>'state', theString=>'ca');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>13, theType=>'S', theSub=>NULL, theParent=>8, theNext=>NULL, theName=>'zip', theString=>'90004');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>14, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>NULL, theName=>'p3', theString=>'v3');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p2":'||aJsonString||',"p3":"v3"}',
theNullOK => TRUE
);
-- remove nodes of property p1
aTitle := 'remove property p2#2';
aObject := jsonObject();
aObject.put(theName=>'p1', theValue=>'v1');
aObject.put(theName=>'p2', theValue=>aJsonObject);
aObject.put(theName=>'p3', theValue=>'v3');
aNodeID := json_utils.getNodeIDByName(theNodes=>aObject.nodes, thePropertyName=>'p2');
aObject.lastID := json_utils.removeNode(theNodes=>aObject.nodes, theNodeID=>aNodeID);
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>2, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>2, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'p1', theString=>'v1');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>NULL, theName=>'p3', theString=>'v3');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p1":"v1","p3":"v3"}',
theNullOK => TRUE
);
-- cleanup
dbms_lob.freetemporary(aJsonString);
dbms_lob.freetemporary(aLob);
END UT_RemoveNode;
----------------------------------------------------------
-- check the getters (private)
--
PROCEDURE UT_getter
IS
aObject jsonObject := jsonObject();
aSubObject jsonObject := jsonObject();
aArray jsonArray := jsonArray();
aSubArray jsonArray := jsonArray();
CURRENT_DATE CONSTANT DATE := SYSDATE;
PROCEDURE testString(theDate IN jsonValue, theTitle IN VARCHAR2, theValue IN VARCHAR2)
IS
BEGIN
UT_util.eq(theTitle=>theTitle||'(get_type)', theExpected=>'STRING', theComputed=>theDate.get_type(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_null)', theExpected=>FALSE, theComputed=>theDate.is_null(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_string)', theExpected=>TRUE, theComputed=>theDate.is_string(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_number)', theExpected=>FALSE, theComputed=>theDate.is_number(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_date)', theExpected=>FALSE, theComputed=>theDate.is_date(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_bool)', theExpected=>FALSE, theComputed=>theDate.is_bool(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_object)', theExpected=>FALSE, theComputed=>theDate.is_object(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_array)', theExpected=>FALSE, theComputed=>theDate.is_array(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(get_string)', theExpected=>theValue, theComputed=>theDate.get_string(), theNullOK=>TRUE);
UT_util.eq(theTitle=>theTitle||'(COUNT)', theExpected=>1, theComputed=>theDate.nodes.COUNT, theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(jsonNode)', theExpected=>'S', theComputed=>theDate.nodes(1).typ, theNullOK=>FALSE);
END testString;
PROCEDURE testNumber(theDate IN jsonValue, theTitle IN VARCHAR2, theValue IN NUMBER)
IS
BEGIN
UT_util.eq(theTitle=>theTitle||'(get_type)', theExpected=>'NUMBER', theComputed=>theDate.get_type(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_null)', theExpected=>FALSE, theComputed=>theDate.is_null(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_string)', theExpected=>FALSE, theComputed=>theDate.is_string(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_number)', theExpected=>TRUE, theComputed=>theDate.is_number(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_date)', theExpected=>FALSE, theComputed=>theDate.is_date(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_bool)', theExpected=>FALSE, theComputed=>theDate.is_bool(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_object)', theExpected=>FALSE, theComputed=>theDate.is_object(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_array)', theExpected=>FALSE, theComputed=>theDate.is_array(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(get_number)', theExpected=>theValue, theComputed=>theDate.get_number(), theNullOK=>TRUE);
UT_util.eq(theTitle=>theTitle||'(COUNT)', theExpected=>1, theComputed=>theDate.nodes.COUNT, theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(jsonNode)', theExpected=>'N', theComputed=>theDate.nodes(1).typ, theNullOK=>FALSE);
END testNumber;
PROCEDURE testDate(theDate IN jsonValue, theTitle IN VARCHAR2, theValue IN DATE)
IS
BEGIN
UT_util.eq(theTitle=>theTitle||'(get_type)', theExpected=>'DATE', theComputed=>theDate.get_type(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_null)', theExpected=>FALSE, theComputed=>theDate.is_null(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_string)', theExpected=>FALSE, theComputed=>theDate.is_string(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_number)', theExpected=>FALSE, theComputed=>theDate.is_number(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_date)', theExpected=>TRUE, theComputed=>theDate.is_date(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_bool)', theExpected=>FALSE, theComputed=>theDate.is_bool(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_object)', theExpected=>FALSE, theComputed=>theDate.is_object(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_array)', theExpected=>FALSE, theComputed=>theDate.is_array(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(get_date)', theExpected=>theValue, theComputed=>theDate.get_date(), theNullOK=>TRUE);
UT_util.eq(theTitle=>theTitle||'(COUNT)', theExpected=>1, theComputed=>theDate.nodes.COUNT, theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(jsonNode)', theExpected=>'D', theComputed=>theDate.nodes(1).typ, theNullOK=>FALSE);
END testDate;
PROCEDURE testBool(theDate IN jsonValue, theTitle IN VARCHAR2, theValue IN BOOLEAN)
IS
BEGIN
UT_util.eq(theTitle=>theTitle||'(get_type)', theExpected=>'BOOLEAN', theComputed=>theDate.get_type(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_null)', theExpected=>FALSE, theComputed=>theDate.is_null(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_string)', theExpected=>FALSE, theComputed=>theDate.is_string(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_number)', theExpected=>FALSE, theComputed=>theDate.is_number(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_date)', theExpected=>FALSE, theComputed=>theDate.is_date(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_bool)', theExpected=>TRUE, theComputed=>theDate.is_bool(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_object)', theExpected=>FALSE, theComputed=>theDate.is_object(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_array)', theExpected=>FALSE, theComputed=>theDate.is_array(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(get_bool)', theExpected=>theValue, theComputed=>theDate.get_bool(), theNullOK=>TRUE);
UT_util.eq(theTitle=>theTitle||'(COUNT)', theExpected=>1, theComputed=>theDate.nodes.COUNT, theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(jsonNode)', theExpected=>'B', theComputed=>theDate.nodes(1).typ, theNullOK=>FALSE);
END testBool;
PROCEDURE testNull(theDate IN jsonValue, theTitle IN VARCHAR2)
IS
BEGIN
UT_util.eq(theTitle=>theTitle||'(get_type)', theExpected=>'NULL', theComputed=>theDate.get_type(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_null)', theExpected=>TRUE, theComputed=>theDate.is_null(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_string)', theExpected=>FALSE, theComputed=>theDate.is_string(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_number)', theExpected=>FALSE, theComputed=>theDate.is_number(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_date)', theExpected=>FALSE, theComputed=>theDate.is_date(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_bool)', theExpected=>FALSE, theComputed=>theDate.is_bool(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_object)', theExpected=>FALSE, theComputed=>theDate.is_object(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_array)', theExpected=>FALSE, theComputed=>theDate.is_array(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(COUNT)', theExpected=>1, theComputed=>theDate.nodes.COUNT, theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(jsonNode)', theExpected=>'0', theComputed=>theDate.nodes(1).typ, theNullOK=>FALSE);
END testNull;
PROCEDURE testType(theDate IN jsonValue, theTitle IN VARCHAR2, theType IN VARCHAR2)
IS
isObject BOOLEAN := (theType = 'OBJECT');
isArray BOOLEAN := (theType = 'ARRAY');
BEGIN
UT_util.eq(theTitle=>theTitle||'(get_type)', theExpected=>theType, theComputed=>theDate.get_type(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_null)', theExpected=>FALSE, theComputed=>theDate.is_null(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_string)', theExpected=>FALSE, theComputed=>theDate.is_string(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_number)', theExpected=>FALSE, theComputed=>theDate.is_number(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_date)', theExpected=>FALSE, theComputed=>theDate.is_date(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_bool)', theExpected=>FALSE, theComputed=>theDate.is_bool(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_object)', theExpected=>isObject, theComputed=>theDate.is_object(), theNullOK=>FALSE);
UT_util.eq(theTitle=>theTitle||'(is_array)', theExpected=>isArray, theComputed=>theDate.is_array(), theNullOK=>FALSE);
END testType;
BEGIN
UT_util.module('UT_getter(object)');
-- aObject
aObject.put('p1');
aObject.put('p2', 'string');
aObject.put('p3', '');
aObject.put('p4', -0.4711);
aObject.put('p5', 0);
aObject.put('p6', CURRENT_DATE);
aObject.put('p7', TRUE);
aObject.put('p8', FALSE);
-- validate
json_utils.validate(aObject.nodes);
-- test
testNull( aObject.get('p1'), 'p1');
testString( aObject.get('p2'), 'p2', 'string');
testString( aObject.get('p3'), 'p3', '');
testNumber( aObject.get('p4'), 'p4', -0.4711);
testNumber( aObject.get('p5'), 'p5', 0);
testDate( aObject.get('p6'), 'p6', CURRENT_DATE);
testBool( aObject.get('p7'), 'p7', TRUE);
testBool( aObject.get('p8'), 'p8', FALSE);
UT_util.module('UT_getter(array)');
-- aArray
aArray.append();
aArray.append('string');
aArray.append('');
aArray.append(-0.4711);
aArray.append(0);
aArray.append(CURRENT_DATE);
aArray.append(TRUE);
aArray.append(FALSE);
-- validate
json_utils.validate(aArray.nodes);
-- test
testNull( aArray.get(1), '1');
testString( aArray.get(2), '2', 'string');
testString( aArray.get(3), '3', '');
testNumber( aArray.get(4), '4', -0.4711);
testNumber( aArray.get(5), '5', 0);
testDate( aArray.get(6), '6', CURRENT_DATE);
testBool( aArray.get(7), '7', TRUE);
testBool( aArray.get(8), '8', FALSE);
UT_util.module('UT_getter(nested objects)');
-- sub object
aObject := jsonObject();
aSubObject := jsonObject();
aSubObject.put('sp1', 'string');
aSubObject.put('sp2', -0.4711);
aObject.put('p1', 's');
aObject.put('p2', aSubObject);
aObject.put('p3', 0);
aObject.put('p4', aSubObject);
-- validate
json_utils.validate(aSubObject.nodes);
json_utils.validate(aObject.nodes);
-- test
testString( aObject.get('p1'), 'p1', 's');
testType( aObject.get('p2'), 'p2', 'OBJECT');
testNumber( aObject.get('p3'), 'p3', 0);
testType( aObject.get('p4'), 'p4', 'OBJECT');
UT_util.module('UT_getter(nested array)');
-- sub array
aObject := jsonObject();
aArray := jsonArray();
aArray.append();
aArray.append('string');
aArray.append('');
aArray.append(-0.4711);
aArray.append(0);
aArray.append(CURRENT_DATE);
aArray.append(TRUE);
aArray.append(FALSE);
aObject.put('p1', aArray.to_jsonValue());
-- validate
json_utils.validate(aArray.nodes);
json_utils.validate(aObject.nodes);
-- test
aArray := jsonArray(aObject.get('p1'));
testNull( aArray.get(1), '1');
testString( aArray.get(2), '2', 'string');
testString( aArray.get(3), '3', '');
testNumber( aArray.get(4), '4', -0.4711);
testNumber( aArray.get(5), '5', 0);
testDate( aArray.get(6), '6', CURRENT_DATE);
testBool( aArray.get(7), '7', TRUE);
testBool( aArray.get(8), '8', FALSE);
END UT_getter;
----------------------------------------------------------
-- UT_Object (private)
--
PROCEDURE UT_Object
IS
aObject jsonObject := jsonObject();
aObject2 jsonObject := jsonObject();
aArray jsonArray := jsonArray();
aNumber NUMBER;
aDate DATE;
aBoolean BOOLEAN;
aLob CLOB := empty_clob();
BEGIN
UT_util.module('UT_Object');
-- allocate clob
dbms_lob.createtemporary(aLob, TRUE);
-- empty object
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'empty',
theComputed => aLob,
theExpected => '{}',
theNullOK => FALSE
);
-- put constants to an object
aObject := jsonObject();
aObject.put(theName=>'p1');
aObject.put(theName=>'p2', theValue=>'string');
aObject.put(theName=>'p3', theValue=>'');
aObject.put(theName=>'p4', theValue=>0);
aObject.put(theName=>'p5', theValue=>-1);
aObject.put(theName=>'p6', theValue=>+2);
aObject.put(theName=>'p7', theValue=>.14);
aDate := TO_DATE('20141111 111213', 'YYYYMMDD HH24MISS');
aObject.put(theName=>'p8', theValue=>aDate);
aObject.put(theName=>'p9', theValue=>FALSE);
aObject.put(theName=>'p10', theValue=>TRUE);
json_utils.validate(aObject.nodes);
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'constants',
theComputed => aLob,
theExpected => '{"p1":null,"p2":"string","p3":"","p4":0,"p5":-1,"p6":2,"p7":0.14,"p8":"'||toJSON(aDate)||'","p9":false,"p10":true}',
theNullOK => FALSE
);
-- put variables to an object
aObject := jsonObject();
aNumber := NULL;
aDate := NULL;
aBoolean := NULL;
aObject.put(theName=>'p1', theValue=>aNumber);
aObject.put(theName=>'p2', theValue=>aDate);
aObject.put(theName=>'p3', theValue=>aBoolean);
aNumber := 0;
aDate := TO_DATE('20141111 111213', 'YYYYMMDD HH24MISS');
aBoolean := FALSE;
aObject.put(theName=>'p4', theValue=>aNumber);
aObject.put(theName=>'p5', theValue=>aDate);
aObject.put(theName=>'p6', theValue=>aBoolean);
json_utils.validate(aObject.nodes);
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'variables',
theComputed => aLob,
theExpected => '{"p1":null,"p2":null,"p3":null,"p4":0,"p5":"'||toJSON(aDate)||'","p6":false}',
theNullOK => FALSE
);
-- do not empty the objects adds parameter and creates an invalid JSON object
-- (please note that is is done on purpose)
aObject.put(theName=>'p6', theValue=>'v6');
json_utils.validate(aObject.nodes);
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'add',
theComputed => aLob,
theExpected => '{"p1":null,"p2":null,"p3":null,"p4":0,"p5":"'||toJSON(aDate)||'","p6":"v6"}',
theNullOK => FALSE
);
-- put objects to an object
aObject := jsonObject();
aObject.put(theName=>'p1', theValue=>'v1');
aObject2 := jsonObject();
aObject2.put('p2', aObject);
json_utils.validate(aObject.nodes);
aObject2.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'objects',
theComputed => aLob,
theExpected => '{"p2":{"p1":"v1"}}',
theNullOK => FALSE
);
-- put objects to an object (using to_jsonValue)
aObject := jsonObject();
aObject.put(theName=>'p1', theValue=>'v1');
aObject2 := jsonObject();
aObject2.put('p2', aObject.to_jsonValue());
json_utils.validate(aObject.nodes);
aObject2.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'objects(to_jsonValue)',
theComputed => aLob,
theExpected => '{"p2":{"p1":"v1"}}',
theNullOK => FALSE
);
-- put arrays to an object
aArray.append();
aArray.append(1);
aObject := jsonObject();
aObject.put(theName=>'p1', theValue=>'v1');
aObject.put(theName=>'p2', theValue=>aArray.to_jsonValue());
json_utils.validate(aObject.nodes);
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'arrays',
theComputed => aLob,
theExpected => '{"p1":"v1","p2":[null,1]}',
theNullOK => FALSE
);
-- cleanup
dbms_lob.freetemporary(aLob);
END UT_Object;
----------------------------------------------------------
-- UT_Duplicates (private)
--
PROCEDURE UT_Duplicates
IS
aJsonObject jsonObject := jsonObject();
aJsonString CLOB := empty_clob();
aObject jsonObject := jsonObject();
aArray jsonArray := jsonArray();
aNumber NUMBER;
aDate DATE;
aBoolean BOOLEAN;
aLob CLOB := empty_clob();
aTitle VARCHAR2(32767);
i BINARY_INTEGER;
BEGIN
UT_util.module('UT_Duplicates');
-- allocate clob
dbms_lob.createtemporary(aJsonString, TRUE);
dbms_lob.createtemporary(aLob, TRUE);
-- construct a complex json object
getComplexObject(theJsonObject=>aJsonObject, theJsonString=>aJsonString);
-- empty object
aTitle := 'empty object';
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>0, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>NULL, theComputed=>aObject.lastID, theNullOK=>TRUE);
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'empty',
theComputed => aLob,
theExpected => '{}',
theNullOK => TRUE
);
aArray.append(1);
aArray.append(2);
aArray.append(3);
aTitle := 'duplicates#1';
aObject := jsonObject();
aObject.put(theName=>'p1', theValue=>'v1');
aObject.put(theName=>'p2', theValue=>'v2');
aObject.put(theName=>'p3', theValue=>'v3');
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>3, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>3, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'p1', theString=>'v1');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>3, theName=>'p2', theString=>'v2');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>NULL, theName=>'p3', theString=>'v3');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p1":"v1","p2":"v2","p3":"v3"}',
theNullOK => TRUE
);
aTitle := 'duplicates#2';
aObject.put(theName=>'p1', theValue=>'v1!');
aObject.put(theName=>'p3', theValue=>'v3!');
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>3, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>3, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'p2', theString=>'v2');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>3, theName=>'p1', theString=>'v1!');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>NULL, theName=>'p3', theString=>'v3!');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p2":"v2","p1":"v1!","p3":"v3!"}',
theNullOK => TRUE
);
aTitle := 'duplicates#3';
aObject.put(theName=>'p1', theValue=>'v1');
aObject.put(theName=>'p3', theValue=>'v3');
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>3, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>3, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'p2', theString=>'v2');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>3, theName=>'p1', theString=>'v1');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>NULL, theName=>'p3', theString=>'v3');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p2":"v2","p1":"v1","p3":"v3"}',
theNullOK => TRUE
);
aTitle := 'duplicates#4';
aObject := jsonObject();
aObject.put(theName=>'p1', theValue=>'v1');
aObject.put(theName=>'p2', theValue=>'v2');
aObject.put(theName=>'p2', theValue=>aArray.to_jsonValue());
aObject.put(theName=>'p3', theValue=>'v3');
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>6, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>6, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'p1', theString=>'v1');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'A', theSub=>3, theParent=>NULL, theNext=>6, theName=>'p2');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'N', theSub=>NULL, theParent=>2, theNext=>4, theName=>NULL, theNumber=>1);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>4, theType=>'N', theSub=>NULL, theParent=>2, theNext=>5, theName=>NULL, theNumber=>2);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>5, theType=>'N', theSub=>NULL, theParent=>2, theNext=>NULL, theName=>NULL, theNumber=>3);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>6, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>NULL, theName=>'p3', theString=>'v3');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p1":"v1","p2":[1,2,3],"p3":"v3"}',
theNullOK => TRUE
);
aTitle := 'duplicates#5';
aObject.put(theName=>'p3', theValue=>aArray.to_jsonValue());
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>9, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>6, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'p1', theString=>'v1');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'A', theSub=>3, theParent=>NULL, theNext=>6, theName=>'p2');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'N', theSub=>NULL, theParent=>2, theNext=>4, theName=>NULL, theNumber=>1);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>4, theType=>'N', theSub=>NULL, theParent=>2, theNext=>5, theName=>NULL, theNumber=>2);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>5, theType=>'N', theSub=>NULL, theParent=>2, theNext=>NULL, theName=>NULL, theNumber=>3);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>6, theType=>'A', theSub=>7, theParent=>NULL, theNext=>NULL, theName=>'p3');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>7, theType=>'N', theSub=>NULL, theParent=>6, theNext=>8, theName=>NULL, theNumber=>1);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>8, theType=>'N', theSub=>NULL, theParent=>6, theNext=>9, theName=>NULL, theNumber=>2);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>9, theType=>'N', theSub=>NULL, theParent=>6, theNext=>NULL, theName=>NULL, theNumber=>3);
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p1":"v1","p2":[1,2,3],"p3":[1,2,3]}',
theNullOK => TRUE
);
aTitle := 'duplicates#6';
aObject.put(theName=>'p3', theValue=>'v3!');
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>6, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>6, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'p1', theString=>'v1');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'A', theSub=>3, theParent=>NULL, theNext=>6, theName=>'p2');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'N', theSub=>NULL, theParent=>2, theNext=>4, theName=>NULL, theNumber=>1);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>4, theType=>'N', theSub=>NULL, theParent=>2, theNext=>5, theName=>NULL, theNumber=>2);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>5, theType=>'N', theSub=>NULL, theParent=>2, theNext=>NULL, theName=>NULL, theNumber=>3);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>6, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>NULL, theName=>'p3', theString=>'v3!');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p1":"v1","p2":[1,2,3],"p3":"v3!"}',
theNullOK => TRUE
);
aTitle := 'duplicates#7';
aObject.put(theName=>'p2', theValue=>'v2!');
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>3, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>3, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'p1', theString=>'v1');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>3, theName=>'p3', theString=>'v3!');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>NULL, theName=>'p2', theString=>'v2!');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p1":"v1","p3":"v3!","p2":"v2!"}',
theNullOK => TRUE
);
aTitle := 'duplicates#8';
aObject := aJsonObject;
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>12, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>7, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'fname', theString=>'john');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'0', theSub=>NULL, theParent=>NULL, theNext=>3, theName=>'mname');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>4, theName=>'lname', theString=>'doe');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>4, theType=>'A', theSub=>5, theParent=>NULL, theNext=>7, theName=>'email');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>5, theType=>'S', theSub=>NULL, theParent=>4, theNext=>6, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>6, theType=>'S', theSub=>NULL, theParent=>4, theNext=>NULL, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>7, theType=>'O', theSub=>8, theParent=>NULL, theNext=>NULL, theName=>'address');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>8, theType=>'A', theSub=>9, theParent=>7, theNext=>10, theName=>'street');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>9, theType=>'S', theSub=>NULL, theParent=>8, theNext=>NULL, theName=>NULL, theString=>'n. russmore av.');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>10, theType=>'S', theSub=>NULL, theParent=>7, theNext=>11, theName=>'city', theString=>'los angeles');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>11, theType=>'S', theSub=>NULL, theParent=>7, theNext=>12, theName=>'state', theString=>'ca');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>12, theType=>'S', theSub=>NULL, theParent=>7, theNext=>NULL, theName=>'zip', theString=>'90004');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => aJsonString,
theNullOK => TRUE
);
aTitle := 'duplicates#9';
aObject := jsonObject();
aObject.put(theName=>'p1', theValue=>'v1');
aObject.put(theName=>'p2', theValue=>aJsonObject);
aObject.put(theName=>'p3', theValue=>'v3');
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>15, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>15, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'p1', theString=>'v1');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'O', theSub=>3, theParent=>NULL, theNext=>15, theName=>'p2');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'S', theSub=>NULL, theParent=>2, theNext=>4, theName=>'fname', theString=>'john');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>4, theType=>'0', theSub=>NULL, theParent=>2, theNext=>5, theName=>'mname');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>5, theType=>'S', theSub=>NULL, theParent=>2, theNext=>6, theName=>'lname', theString=>'doe');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>6, theType=>'A', theSub=>7, theParent=>2, theNext=>9, theName=>'email');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>7, theType=>'S', theSub=>NULL, theParent=>6, theNext=>8, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>8, theType=>'S', theSub=>NULL, theParent=>6, theNext=>NULL, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>9, theType=>'O', theSub=>10, theParent=>2, theNext=>NULL, theName=>'address');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>10, theType=>'A', theSub=>11, theParent=>9, theNext=>12, theName=>'street');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>11, theType=>'S', theSub=>NULL, theParent=>10, theNext=>NULL, theName=>NULL, theString=>'n. russmore av.');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>12, theType=>'S', theSub=>NULL, theParent=>9, theNext=>13, theName=>'city', theString=>'los angeles');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>13, theType=>'S', theSub=>NULL, theParent=>9, theNext=>14, theName=>'state', theString=>'ca');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>14, theType=>'S', theSub=>NULL, theParent=>9, theNext=>NULL, theName=>'zip', theString=>'90004');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>15, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>NULL, theName=>'p3', theString=>'v3');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p1":"v1","p2":'||aJsonString||',"p3":"v3"}',
theNullOK => TRUE
);
aTitle := 'duplicates#10';
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>15, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>15, theComputed=>aObject.lastID, theNullOK=>TRUE);
aObject.put(theName=>'p3', theValue=>'v3!');
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p1":"v1","p2":'||aJsonString||',"p3":"v3!"}',
theNullOK => TRUE
);
-- repeat put
aObject := jsonObject();
aObject.put(theName=>'p', theValue=>0);
i := 0;
WHILE (i < 1000) LOOP
i := i + 1;
aTitle := 'repeat#'||i;
aObject.put(theName=>'p', theValue=>i);
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>1, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>1, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode(theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'N', theSub=>NULL, theParent=>NULL, theNext=>NULL, theName=>'p', theNumber=>i);
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p":'||i||'}',
theNullOK => TRUE
);
END LOOP;
aTitle := 'repeat#done';
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>1, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>1, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode(theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'N', theSub=>NULL, theParent=>NULL, theNext=>NULL, theName=>'p', theNumber=>i);
UT_util.eqLOB( theTitle => aTitle,
theComputed => aLob,
theExpected => '{"p":'||i||'}',
theNullOK => TRUE
);
-- cleanup
dbms_lob.freetemporary(aJsonString);
dbms_lob.freetemporary(aLob);
END UT_Duplicates;
----------------------------------------------------------
-- UT_Array (private)
--
PROCEDURE UT_Array
IS
aObject jsonObject := jsonObject();
aArray jsonArray := jsonArray();
aArray2 jsonArray := jsonArray();
aLob CLOB := empty_clob();
aDate DATE;
BEGIN
UT_util.module('UT_Array');
-- allocate clob
dbms_lob.createtemporary(aLob, TRUE);
-- empty array
json_utils.validate(aArray.nodes);
aArray.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'empty',
theComputed => aLob,
theExpected => '[]',
theNullOK => FALSE
);
-- array of values
aArray.append();
aArray.append('string');
aArray.append(47.11);
aDate := TO_DATE('20141111 111213', 'YYYYMMDD HH24MISS');
aArray.append(aDate);
aArray.append(FALSE);
aArray.append(aObject);
json_utils.validate(aArray.nodes);
aArray.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'values',
theComputed => aLob,
theExpected => '[null,"string",47.11,"'||toJSON(aDate)||'",false,{}]',
theNullOK => FALSE
);
-- array of objects
aObject.put('id', 10);
aObject.put('name', '<NAME>');
aArray := jsonArray();
aArray.append(aObject);
json_utils.validate(aArray.nodes);
aArray.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'objects',
theComputed => aLob,
theExpected => '[{"id":10,"name":"<NAME>"}]',
theNullOK => FALSE
);
-- array of arrays
aArray := jsonArray();
aArray.append(0);
aArray.append('0');
aArray2 := jsonArray();
aArray2.append(aArray);
aArray2.append(aArray);
json_utils.validate(aArray2.nodes);
aArray2.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'arrays',
theComputed => aLob,
theExpected => '[[0,"0"],[0,"0"]]',
theNullOK => FALSE
);
-- free temporary CLOB
dbms_lob.freetemporary(aLob);
END UT_Array;
----------------------------------------------------------
-- UT_DeepRecursion (private)
--
PROCEDURE UT_DeepRecursion
IS
aObject0 jsonObject := jsonObject();
aObject1 jsonObject := jsonObject();
aObject2 jsonObject := jsonObject();
aObject3 jsonObject := jsonObject();
aObject4 jsonObject := jsonObject();
aObject5 jsonObject := jsonObject();
aObject6 jsonObject := jsonObject();
aObject7 jsonObject := jsonObject();
aObject8 jsonObject := jsonObject();
aObject9 jsonObject := jsonObject();
aLob CLOB := empty_clob();
BEGIN
UT_util.module('UT_DeepRecursion');
-- allocate clob
dbms_lob.createtemporary(aLob, TRUE);
-- deep recursion of objects
aObject9.put('p9', 'v9');
aObject8.put('p8', aObject9);
aObject7.put('p7', aObject8);
aObject6.put('p6', aObject7);
aObject5.put('p5', aObject6);
aObject4.put('p4', aObject5);
aObject3.put('p3', aObject4);
aObject2.put('p2', aObject3);
aObject1.put('p1', aObject2);
aObject0.put('p0', aObject1);
json_utils.validate(aObject0.nodes);
aObject0.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'object',
theComputed => aLob,
theExpected => '{"p0":{"p1":{"p2":{"p3":{"p4":{"p5":{"p6":{"p7":{"p8":{"p9":"v9"}}}}}}}}}}',
theNullOK => FALSE
);
-- free temporary CLOB
dbms_lob.freetemporary(aLob);
END UT_DeepRecursion;
----------------------------------------------------------
-- UT_ComplexObject (private)
--
PROCEDURE UT_ComplexObject
IS
aNameObject jsonObject := jsonObject();
aEmailArray jsonArray := jsonArray();
aPersonObject jsonObject := jsonObject();
aNull jsonObject := jsonObject();
aPersonArray jsonArray := jsonArray();
aLob CLOB := empty_clob();
BEGIN
UT_util.module('UT_ComplexObject');
-- allocate clob
dbms_lob.createtemporary(aLob, TRUE);
-- create aNameObject
aNameObject.put('given', 'Jon');
aNameObject.put('middle');
aNameObject.put('last', 'Doe');
aNameObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'aNameObject',
theComputed => aLob,
theExpected => '{"given":"Jon","middle":null,"last":"Doe"}',
theNullOK => FALSE
);
-- create aEmailArray
aEmailArray := jsonArray();
aEmailArray.append('<EMAIL>');
aEmailArray.append('<EMAIL>');
aEmailArray.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'aEmailArray',
theComputed => aLob,
theExpected => '["<EMAIL>","<EMAIL>"]',
theNullOK => FALSE
);
-- prepare array
aPersonArray.append(aNull);
FOR i IN 1 .. 3 LOOP
aPersonObject := jsonObject();
aPersonObject.put('id', i);
aPersonObject.put('name', aNameObject);
aPersonObject.put('male', TRUE);
aPersonObject.put('email', aEmailArray.to_jsonValue());
aPersonArray.append();
aPersonArray.append(i);
aPersonArray.append(3.14);
aPersonArray.append(FALSE);
aPersonArray.append(aPersonObject);
END LOOP;
-- serialize object
json_utils.validate(aPersonArray.nodes);
aPersonArray.to_clob(theLobBuf=>aLob);
-- test array
UT_util.eqLOB( theTitle => 'test array',
theComputed => aLob,
theExpected => '[{},null,1,3.14,false,{"id":1,"name":{"given":"Jon","middle":null,"last":"Doe"},"male":true,"email":["<EMAIL>","<EMAIL>"]},null,2,3.14,false,{"id":2,"name":{"given":"Jon","middle":null,"last":"Doe"},"male":true,"email":["<EMAIL>","<EMAIL>"]},null,3,3.14,false,{"id":3,"name":{"given":"Jon","middle":null,"last":"Doe"},"male":true,"email":["<EMAIL>","<EMAIL>"]}]',
theNullOK => FALSE
);
-- free temporary CLOB
dbms_lob.freetemporary(aLob);
END UT_ComplexObject;
----------------------------------------------------------
-- UT_BigObject (private)
--
PROCEDURE UT_BigObject
IS
aArray jsonArray := jsonArray();
aString VARCHAR2(32767);
aResult CLOB := empty_clob();
aLob CLOB := empty_clob();
BEGIN
UT_util.module('UT_BigObject');
-- allocate clob
dbms_lob.createtemporary(aResult, true);
dbms_lob.createtemporary(aLob, TRUE);
-- big object
aString := '[';
dbms_lob.writeappend(aResult, LENGTH(aString), aString);
FOR i IN 1 .. 20000 LOOP
aString := TO_CHAR(i);
aArray.append(aString);
aString := '"' || aString || '"';
IF (i > 1) THEN
aString := ',' || aString;
END IF;
dbms_lob.writeappend(aResult, LENGTH(aString), aString);
END LOOP;
aString := ']';
dbms_lob.writeappend(aResult, LENGTH(aString), aString);
json_utils.validate(aArray.nodes);
aArray.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'big',
theComputed => aLob,
theExpected => aResult,
theNullOK => FALSE
);
-- free temporary CLOB
dbms_lob.freetemporary(aResult);
dbms_lob.freetemporary(aLob);
END UT_BigObject;
----------------------------------------------------------
-- UT_PrettyOutput (private)
--
PROCEDURE UT_PrettyOutput
IS
aOldOptions json_utils.outputOptionsType := json_utils.get_options();
aOptions json_utils.outputOptionsType := json_utils.get_options();
aObject1 jsonObject := jsonObject();
aObject2 jsonObject := jsonObject();
aObject3 jsonObject := jsonObject();
aArray jsonArray := jsonArray();
aLob CLOB := empty_clob();
aResult CLOB;
BEGIN
UT_util.module('UT_PrettyOutput');
-- set pretty output
aOptions.Pretty := TRUE;
json_utils.set_options(aOptions);
-- result
aResult :=
'{'||aOptions.newline_char||
aOptions.indentation_char||'"o": {'||aOptions.newline_char||
aOptions.indentation_char||aOptions.indentation_char||'"a": ['||aOptions.newline_char||
aOptions.indentation_char||aOptions.indentation_char||aOptions.indentation_char||'1,'||aOptions.newline_char||
aOptions.indentation_char||aOptions.indentation_char||aOptions.indentation_char||'{'||aOptions.newline_char||
aOptions.indentation_char||aOptions.indentation_char||aOptions.indentation_char||aOptions.indentation_char||'"e": "1"'||aOptions.newline_char||
aOptions.indentation_char||aOptions.indentation_char||aOptions.indentation_char||'},'||aOptions.newline_char||
aOptions.indentation_char||aOptions.indentation_char||aOptions.indentation_char||'3'||aOptions.newline_char||
aOptions.indentation_char||aOptions.indentation_char||']'||aOptions.newline_char||
aOptions.indentation_char||'},'||aOptions.newline_char||
aOptions.indentation_char||'"string": "string"'||aOptions.newline_char||
'}';
-- allocate clob
dbms_lob.createtemporary(aLob, TRUE);
-- create object
aObject3.put('e', '1');
aArray.append(1);
aArray.append(aObject3);
aArray.append(3);
aObject2.put('a', aArray.to_jsonValue());
aObject1.put('o', aObject2.to_jsonValue());
aObject1.put('string', 'string');
-- validate output
aObject1.to_clob(theLobBuf=>aLob);
UT_util.eqLOB(theTitle=>'pretty', theComputed=>aLob, theExpected=>aResult, theNullOK=>FALSE);
-- free temporary CLOB
dbms_lob.freetemporary(aLob);
-- restore options
json_utils.set_options(aOldOptions);
END UT_PrettyOutput;
----------------------------------------------------------
-- UT_ParseBasic (private)
--
PROCEDURE UT_ParseBasic
IS
TYPE TestValueType IS RECORD (v VARCHAR2(32767), r VARCHAR2(32767));
TYPE TestValueList IS TABLE OF TestValueType INDEX BY BINARY_INTEGER;
aList TestValueList;
aObject jsonObject := jsonObject();
aLob CLOB := empty_clob();
i BINARY_INTEGER;
PROCEDURE addPair(theValue IN VARCHAR2, theResult IN VARCHAR2 DEFAULT NULL)
IS
c BINARY_INTEGER := aList.COUNT + 1;
BEGIN
aList(c).v := theValue;
aList(c).r := NVL(theResult, REPLACE(theValue, ' ', ''));
END addPair;
BEGIN
UT_util.module('UT_ParseBasic');
-- allocate clob
dbms_lob.createtemporary(aLob, TRUE);
addPair('{ }');
addPair('{"p1": null}');
addPair('{"p1": "v1"}');
addPair('{"p1": -0.4711}');
addPair('{"p1": true}');
addPair('{"p1": false}');
addPair('{"p1": "v1", "p2": 2, "p3": true}');
addPair('{"p1": [{"a1p1": "a1v1", "a1p2": {}}, {"a2p1": "a2v2", "a2p2": []}, {"a3p1": "a3v1", "a3p2": [1, 2, 3]}]}');
addPair('{"p1": {}}');
addPair('{"p1": []}');
addPair('{"p1": [{}, {}, {}, [[], {}, [[]]]]}');
FOR i IN 1 .. aList.COUNT LOOP
-- parse the json string
aObject := jsonObject(aList(i).v);
-- validate the resulting object
json_utils.validate(aObject.nodes);
-- convert the object back to a version string
aObject.to_clob(aLob);
-- test
UT_util.eqLOB( theTitle => '#'||i||': '||aList(i).v,
theComputed => aLob,
theExpected => aList(i).r,
theNullOK => TRUE
);
END LOOP;
-- free temporary CLOB
dbms_lob.freetemporary(aLob);
END UT_ParseBasic;
----------------------------------------------------------
-- UT_ParseSimple (private)
--
PROCEDURE UT_ParseSimple
IS
JSONSource CONSTANT VARCHAR2(32767) := '{
"id": 2,
"name": {
"first": "Jon",
"middle": "",
"last": "Doe"
},
"age": 40,
"active": true,
"email": [
"<EMAIL>",
"<EMAIL>"
]
}';
aObject jsonObject := jsonObject();
aResult CLOB := empty_clob();
aParsed CLOB := empty_clob();
FUNCTION createObject RETURN jsonObject
IS
aPerson jsonObject := jsonObject();
aName jsonObject := jsonObject();
aEmails jsonArray := jsonArray();
BEGIN
aName.put('first', 'Jon');
aName.put('middle', '');
aName.put('last', 'Doe');
aEmails.append('<EMAIL>');
aEmails.append('<EMAIL>');
aPerson.put('id', 2);
aPerson.put('name', aName);
aPerson.put('age', 40);
aPerson.put('active', TRUE);
aPerson.put('email', aEmails.to_jsonValue());
RETURN aPerson;
END createObject;
BEGIN
UT_util.module('UT_ParseSimple');
-- allocate clob
dbms_lob.createtemporary(aResult, TRUE);
dbms_lob.createtemporary(aParsed, TRUE);
-- create a person progrmmatically
aObject := createObject();
json_utils.validate(aObject.nodes);
aObject.to_clob(theLobBuf=>aResult);
-- parse
aObject := jsonObject(JSONSource);
json_utils.validate(aObject.nodes);
-- serialize again
aObject.to_clob(theLobBuf=>aParsed);
UT_util.eqLOB( theTitle => 'equal',
theComputed => aParsed,
theExpected => aResult,
theNullOK => FALSE
);
-- free temporary CLOB
dbms_lob.freetemporary(aResult);
dbms_lob.freetemporary(aParsed);
END UT_ParseSimple;
----------------------------------------------------------
-- UT_ParseComplex (private)
--
PROCEDURE UT_ParseComplex
IS
aJsonObject jsonObject := jsonObject();
aJsonString CLOB := empty_clob();
aObject jsonObject := jsonObject();
aLob CLOB := empty_clob();
aTitle VARCHAR2(32767) := 'parsed nodes';
BEGIN
UT_util.module('UT_ParseComplex');
-- allocate clob
dbms_lob.createtemporary(aJsonString, TRUE);
dbms_lob.createtemporary(aLob, TRUE);
-- construct a complex json object
getComplexObject(theJsonObject=>aJsonObject, theJsonString=>aJsonString);
-- convert json object to string
aJsonObject.to_clob(theLobBuf=>aLob);
aJsonObject := jsonObject();
-- parse json string
aObject := jsonObject(aLob);
json_utils.validate(aObject.nodes);
-- validate nodes in parse object
UT_util.eq(theTitle=>aTitle||': COUNT', theExpected=>12, theComputed=>aObject.nodes.COUNT, theNullOK=>TRUE);
/*
WHEN PARSING A COMPLEX OBJECT, THE "PAR" PROPERTIES ARE NOT (YET) FILLED CORRECTLY FOR OBJECT NODES!!!
UT_util.eq(theTitle=>aTitle||': lastID', theExpected=>7, theComputed=>aObject.lastID, theNullOK=>TRUE);
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>1, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>2, theName=>'fname', theString=>'john');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>2, theType=>'0', theSub=>NULL, theParent=>NULL, theNext=>3, theName=>'mname');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>3, theType=>'S', theSub=>NULL, theParent=>NULL, theNext=>4, theName=>'lname', theString=>'doe');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>4, theType=>'A', theSub=>5, theParent=>NULL, theNext=>7, theName=>'email');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>5, theType=>'S', theSub=>NULL, theParent=>4, theNext=>6, theName=>NULL, theString=>'<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>6, theType=>'S', theSub=>NULL, theParent=>4, theNext=>NULL, theName=>NULL, theString=>'john.<EMAIL>');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>7, theType=>'O', theSub=>8, theParent=>NULL, theNext=>NULL, theName=>'address');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>8, theType=>'A', theSub=>9, theParent=>7, theNext=>10, theName=>'street');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>9, theType=>'S', theSub=>NULL, theParent=>8, theNext=>NULL, theName=>NULL, theString=>'n. russmore av.');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>10, theType=>'S', theSub=>NULL, theParent=>7, theNext=>11, theName=>'city', theString=>'los angeles');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>11, theType=>'S', theSub=>NULL, theParent=>7, theNext=>12, theName=>'state', theString=>'ca');
checkNode( theTitle=>aTitle, theNodes=>aObject.nodes, theNodeID=>12, theType=>'S', theSub=>NULL, theParent=>7, theNext=>NULL, theName=>'zip', theString=>'90004');
*/
-- compare strings
aObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'equal',
theComputed => aLob,
theExpected => aJsonString,
theNullOK => FALSE
);
-- free temporary CLOB
dbms_lob.freetemporary(aJsonString);
dbms_lob.freetemporary(aLob);
END UT_ParseComplex;
----------------------------------------------------------
-- UT_ParseAndDestruct (private)
--
PROCEDURE UT_ParseAndDestruct
IS
JSONSource CONSTANT VARCHAR2(32767) := '{
"layout": "layout1",
"data": [
{
"id": 1,
"column": "first",
"metadata": {}
},
{
"id": 2,
"column": "second",
"metadata": {}
},
{
"id": 3,
"column": "first",
"metadata": {
"url": "http://google.com",
"height": "200px"
}
}
]
}';
aMainObject jsonObject := jsonObject();
aDataArray jsonArray := jsonArray();
aDataObject jsonObject := jsonObject();
aMetaObject jsonObject := jsonObject();
aMetaKeys jsonKeys;
aLob CLOB := empty_clob();
aID NUMBER;
i NUMBER;
j NUMBER;
BEGIN
UT_util.module('UT_ParseAndDestruct');
-- allocate clob
dbms_lob.createtemporary(aLob, TRUE);
-- parse
aMainObject := jsonObject(JSONSource);
json_utils.validate(aMainObject.nodes);
aMainObject.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'aMainObject',
theComputed => aLob,
theExpected => '{"layout":"layout1","data":[{"id":1,"column":"first","metadata":{}},{"id":2,"column":"second","metadata":{}},{"id":3,"column":"first","metadata":{"url":"http://google.com","height":"200px"}}]}',
theNullOK => TRUE
);
json_debug.output(aMainObject);
json_debug.output(aMainObject.get('layout'));
-- tests
UT_util.eq( theTitle => 'layout',
theComputed => aMainObject.get('layout').get_string(),
theExpected => 'layout1',
theNullOK => FALSE
);
aDataArray := jsonArray(aMainObject.get('data'));
json_utils.validate(aDataArray.nodes);
aDataArray.to_clob(theLobBuf=>aLob);
UT_util.eqLOB( theTitle => 'aDataArray',
theComputed => aLob,
theExpected => '[{"id":1,"column":"first","metadata":{}},{"id":2,"column":"second","metadata":{}},{"id":3,"column":"first","metadata":{"url":"http://google.com","height":"200px"}}]',
theNullOK => TRUE
);
FOR i IN 1 .. aDataArray.COUNT LOOP
aDataObject := jsonObject(aDataArray.get(i));
json_utils.validate(aDataObject.nodes);
aDataObject.to_clob(theLobBuf=>aLob);
aID := aDataObject.get('id').get_number();
UT_util.eq( theTitle => 'id',
theComputed => aID,
theExpected => i,
theNullOK => TRUE
);
UT_util.eq( theTitle => 'column',
theComputed => aDataObject.get('column').get_string(),
theExpected => CASE i WHEN 2 THEN 'second' ELSE 'first' END,
theNullOK => TRUE
);
aMetaObject := jsonObject(aDataObject.get('metadata'));
json_utils.validate(aMetaObject.nodes);
aMetaObject.to_clob(theLobBuf=>aLob);
aMetaKeys := aMetaObject.get_keys();
IF (aID IN (1, 2)) THEN
UT_util.eq( theTitle => 'id#'||aID||'(count)',
theComputed => aMetaKeys.COUNT,
theExpected => 0,
theNullOK => TRUE
);
ELSIF (aID = 3) THEN
UT_util.eq( theTitle => 'id#'||aID||'(count)',
theComputed => aMetaKeys.COUNT,
theExpected => 2,
theNullOK => TRUE
);
FOR j IN 1 .. aMetaKeys.COUNT LOOP
UT_util.ok('id#'||aID||'(keys)', (aMetaKeys(j) IN ('url', 'height')));
END LOOP;
UT_util.eq( theTitle => 'id#'||aID||'(url)',
theComputed => aMetaObject.get('url').get_string(),
theExpected => 'http://google.com',
theNullOK => TRUE
);
UT_util.eq( theTitle => 'id#'||aID||'(height)',
theComputed => aMetaObject.get('height').get_string(),
theExpected => '200px',
theNullOK => TRUE
);
ELSE
RAISE VALUE_ERROR;
END IF;
END LOOP;
-- free temporary CLOB
dbms_lob.freetemporary(aLob);
END UT_ParseAndDestruct;
----------------------------------------------------------
-- UT_Debug (private)
--
PROCEDURE UT_Debug
IS
aObject jsonObject := jsonObject();
aLob CLOB := empty_clob();
BEGIN
UT_util.module('UT_Debug');
-- allocate clob
dbms_lob.createtemporary(aLob, TRUE);
-- create object
aObject.put('p1', 'v1');
aObject.put('p2', 47.11);
aObject.put('p3', SYSDATE);
aObject.put('p4', TRUE);
aObject.put('p5');
json_utils.validate(aObject.nodes);
json_debug.output(aObject.nodes);
-- free temporary CLOB
dbms_lob.freetemporary(aLob);
END UT_Debug;
----------------------------------------------------------
-- getJSON
--
PROCEDURE getJSON(theCount IN NUMBER)
IS
aObject jsonObject := jsonObject();
aArray jsonArray := jsonArray();
BEGIN
UT_util.module('getJSON');
-- create subobject
aObject.put('string', 'this is a string value');
aObject.put('number', 47.11);
aObject.put('boolean', TRUE);
-- create object
FOR i IN 1 .. theCount LOOP
aArray.append(aObject);
END LOOP;
-- output array
aArray.htp();
END getJSON;
----------------------------------------------------------
-- checkNode (private)
--
PROCEDURE checkNode(theTitle IN VARCHAR2 DEFAULT NULL, theNodes IN jsonNodes, theNodeID IN NUMBER, theType IN VARCHAR2, theName IN VARCHAR2 DEFAULT NULL, theString IN VARCHAR2 DEFAULT NULL, theNumber IN NUMBER DEFAULT NULL, theDate IN DATE DEFAULT NULL, theParent IN NUMBER DEFAULT NULL, theNext IN NUMBER DEFAULT NULL, theSub IN NUMBER DEFAULT NULL)
IS
aTitle VARCHAR2(32767) := '#'||theNodeID;
BEGIN
IF (theTitle IS NOT NULL) THEN
aTitle := theTitle||': '||aTitle;
END IF;
UT_util.ok(theTitle=>aTitle||'(nodid='||theNodeID||')', theValue=>theNodeID >= 1 AND theNodeID <= theNodes.COUNT);
UT_util.eq(theTitle=>aTitle||'(type)', theExpected=>theType, theComputed=>theNodes(theNodeID).typ, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||'(name)', theExpected=>theName, theComputed=>theNodes(theNodeID).nam, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||'(string)', theExpected=>theString, theComputed=>theNodes(theNodeID).str, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||'(number)', theExpected=>theNumber, theComputed=>theNodes(theNodeID).num, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||'(date)', theExpected=>theDate, theComputed=>theNodes(theNodeID).dat, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||'(parent)', theExpected=>theParent, theComputed=>theNodes(theNodeID).par, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||'(next)', theExpected=>theNext, theComputed=>theNodes(theNodeID).nex, theNullOK=>TRUE);
UT_util.eq(theTitle=>aTitle||'(sub)', theExpected=>theSub, theComputed=>theNodes(theNodeID).sub, theNullOK=>TRUE);
END checkNode;
----------------------------------------------------------
-- getComplexObject (private)
--
PROCEDURE getComplexObject(theJsonObject IN OUT NOCOPY jsonObject, theJsonString IN OUT NOCOPY CLOB)
IS
aObj jsonObject := jsonObject();
aArr jsonArray := jsonArray();
BEGIN
-- clean
theJsonObject := jsonObject();
-- create object
theJsonObject.put('fname', 'john');
theJsonObject.put('mname');
theJsonObject.put('lname', 'doe');
aArr := jsonArray();
aArr.append('<EMAIL>');
aArr.append('<EMAIL>');
theJsonObject.put('email', aArr.to_jsonValue());
aArr := jsonArray();
aArr.append('n. russmore av.');
aObj := jsonObject();
aObj.put('street', aArr.to_jsonValue());
aObj.put('city', 'los angeles');
aObj.put('state', 'ca');
aObj.put('zip', '90004');
theJsonObject.put('address', aObj.to_jsonValue());
-- convert to string
theJsonObject.to_clob(theLobBuf=>theJsonString);
END getComplexObject;
----------------------------------------------------------
-- clearLob (private)
--
PROCEDURE clearLob(theLob IN OUT NOCOPY CLOB)
IS
BEGIN
IF (dbms_lob.getlength(lob_loc=>theLob) > 0) THEN
dbms_lob.trim(lob_loc=>theLob, newlen=>0);
END IF;
END clearLob;
----------------------------------------------------------
-- setLob (private)
--
PROCEDURE setLob(theLob IN OUT NOCOPY CLOB, theValue IN VARCHAR2)
IS
BEGIN
clearLob(theLob=>theLob);
IF (theValue IS NOT NULL) THEN
dbms_lob.append(dest_lob=>theLob, src_lob=>TO_CLOB(theValue));
END IF;
END setLob;
----------------------------------------------------------
-- fillLob (private)
--
PROCEDURE fillLob(theLob IN OUT NOCOPY CLOB)
IS
CHUNK CONSTANT CLOB := TO_CLOB(LPAD('#', 32767, '#'));
BEGIN
clearLob(theLob=>theLob);
FOR i IN 1 .. 2 LOOP
dbms_lob.append(dest_lob=>theLob, src_lob=>CHUNK);
END LOOP;
END fillLob;
----------------------------------------------------------
-- toJSON (private)
--
FUNCTION toJSON(theDate IN DATE) RETURN VARCHAR2
IS
BEGIN
RETURN TO_CHAR(theDate, 'FXYYYY-MM-DD"T"HH24:MI:SS');
END toJSON;
----------------------------------------------------------
-- Run unit tests
--
PROCEDURE run
IS
BEGIN
UT_values;
UT_LobValues;
UT_Nodes;
UT_RemoveNode;
UT_getter;
UT_Object;
UT_Duplicates;
UT_Array;
UT_DeepRecursion;
UT_ComplexObject;
UT_BigObject;
UT_PrettyOutput;
UT_ParseBasic;
UT_ParseSimple;
UT_ParseComplex;
UT_ParseAndDestruct;
UT_Debug;
END run;
----------------------------------------------------------
-- Prepare unit test
--
PROCEDURE prepare
IS
BEGIN
NULL;
END prepare;
----------------------------------------------------------
-- Cleanup unit test
--
PROCEDURE cleanup
IS
BEGIN
NULL;
END cleanup;
END json_UT;
/
|
CREATE TABLE "departments" (
"dept_no" VARCHAR(10) NOT NULL,
"dept_name" VARCHAR(30) NOT NULL,
CONSTRAINT "pk_departments" PRIMARY KEY (
"dept_no"
)
);
CREATE TABLE "dept_emp" (
"emp_no" INT NOT NULL,
"dept_no" VARCHAR(10) NOT NULL,
CONSTRAINT "pk_dept_emp" PRIMARY KEY (
"emp_no","dept_no"
)
);
CREATE TABLE "dept_manager" (
"dept_no" VARCHAR(10) NOT NULL,
"emp_no" INT NOT NULL,
CONSTRAINT "pk_dept_manager" PRIMARY KEY (
"dept_no","emp_no"
)
);
CREATE TABLE "employees" (
"emp_no" INT NOT NULL,
"emp_title_id" VARCHAR(10) NOT NULL,
"birth_date" VARCHAR(10) NOT NULL,
"first_name" VARCHAR(30) NOT NULL,
"last_name" VARCHAR(30) NOT NULL,
"sex" VARCHAR(1) NOT NULL,
"hire_date" VARCHAR(10) NOT NULL,
CONSTRAINT "pk_employees" PRIMARY KEY (
"emp_no"
)
);
CREATE TABLE "salaries" (
"emp_no" INT NOT NULL,
"salary" INT NOT NULL
);
CREATE TABLE "titles" (
"emp_title_id" VARCHAR(10) NOT NULL,
"title" VARCHAR(30) NOT NULL,
CONSTRAINT "pk_titles" PRIMARY KEY (
"emp_title_id"
)
);
ALTER TABLE "dept_emp" ADD CONSTRAINT "fk_dept_emp_emp_no" FOREIGN KEY("emp_no")
REFERENCES "employees" ("emp_no");
ALTER TABLE "dept_emp" ADD CONSTRAINT "fk_dept_emp_dept_no" FOREIGN KEY("dept_no")
REFERENCES "departments" ("dept_no");
ALTER TABLE "dept_manager" ADD CONSTRAINT "fk_dept_manager_dept_no" FOREIGN KEY("dept_no")
REFERENCES "departments" ("dept_no");
ALTER TABLE "dept_manager" ADD CONSTRAINT "fk_dept_manager_emp_no" FOREIGN KEY("emp_no")
REFERENCES "employees" ("emp_no");
ALTER TABLE "employees" ADD CONSTRAINT "fk_employees_emp_title_id" FOREIGN KEY("emp_title_id")
REFERENCES "titles" ("emp_title_id");
ALTER TABLE "salaries" ADD CONSTRAINT "fk_salaries_emp_no" FOREIGN KEY("emp_no")
REFERENCES "employees" ("emp_no");
SELECT * FROM employees
SELECT employees.emp_no, employees.first_name, employees.last_name, employees.sex, salaries.salary
FROM employees
INNER JOIN salaries
ON employees.emp_no=salaries.emp_no
;
SELECT first_name, last_name, hire_date
FROM employees
WHERE hire_date like '%1986'
;
SELECT dept_manager.dept_no, departments.dept_name, dept_manager.emp_no, employees.last_name, employees.first_name
FROM dept_manager
INNER JOIN departments
ON dept_manager.dept_no=departments.dept_no
INNER JOIN employees
ON dept_manager.emp_no=employees.emp_no
;
SELECT employees.emp_no, employees.last_name, employees.first_name, departments.dept_name
FROM employees
INNER JOIN dept_emp
ON employees.emp_no=dept_emp.emp_no
INNER JOIN departments
ON dept_emp.dept_no=departments.dept_no
;
SELECT first_name, last_name, sex
FROM employees
WHERE first_name='Hercules'
AND last_name like 'B%'
;
SELECT employees.emp_no, employees.last_name, employees.first_name, departments.dept_name
FROM employees
INNER JOIN dept_emp
ON employees.emp_no=dept_emp.emp_no
INNER JOIN departments
ON dept_emp.dept_no=departments.dept_no
WHERE departments.dept_name='Sales'
;
SELECT employees.emp_no, employees.last_name, employees.first_name, departments.dept_name
FROM employees
INNER JOIN dept_emp
ON employees.emp_no=dept_emp.emp_no
INNER JOIN departments
ON dept_emp.dept_no=departments.dept_no
WHERE departments.dept_name='Sales'
OR departments.dept_name='Development'
;
SELECT COUNT(last_name) as last_name_frequency, last_name
FROM employees
GROUP BY last_name
ORDER BY last_name_frequency DESC
; |
<filename>SQL/1264. Page Recommendations.sql
/*
1264. Page Recommendations
Table: Friendship
+---------------+---------+
| Column Name | Type |
+---------------+---------+
| user1_id | int |
| user2_id | int |
+---------------+---------+
(user1_id, user2_id) is the primary key for this table.
Each row of this table indicates that there is a friendship relation between user1_id and user2_id.
Table: Likes
+-------------+---------+
| Column Name | Type |
+-------------+---------+
| user_id | int |
| page_id | int |
+-------------+---------+
(user_id, page_id) is the primary key for this table.
Each row of this table indicates that user_id likes page_id.
Write an SQL query to recommend pages to the user with user_id = 1 using the pages that your friends liked. It should not recommend pages you already liked.
Return result table in any order without duplicates.
The query result format is in the following example:
Friendship table:
+----------+----------+
| user1_id | user2_id |
+----------+----------+
| 1 | 2 |
| 1 | 3 |
| 1 | 4 |
| 2 | 3 |
| 2 | 4 |
| 2 | 5 |
| 6 | 1 |
+----------+----------+
Likes table:
+---------+---------+
| user_id | page_id |
+---------+---------+
| 1 | 88 |
| 2 | 23 |
| 3 | 24 |
| 4 | 56 |
| 5 | 11 |
| 6 | 33 |
| 2 | 77 |
| 3 | 77 |
| 6 | 88 |
+---------+---------+
Result table:
+------------------+
| recommended_page |
+------------------+
| 23 |
| 24 |
| 56 |
| 33 |
| 77 |
+------------------+
User one is friend with users 2, 3, 4 and 6.
Suggested pages are 23 from user 2, 24 from user 3, 56 from user 3 and 33 from user 6.
Page 77 is suggested from both user 2 and user 3.
Page 88 is not suggested because user 1 already likes it.
*/
SELECT DISTINCT page_id recommended_page
FROM likes
WHERE user_id IN (
SELECT DISTINCT user2_id
FROM friendship
WHERE user1_id = 1
UNION
SELECT DISTINCT user1_id
FROM friendship
WHERE user2_id = 1)
AND page_id NOT IN (
SELECT page_id
FROM likes
WHERE user_id = 1)
;
|
-- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: 1192.168.127.12
-- Erstellungszeit: 21. Dez 2017 um 08:55
-- Server-Version: 10.1.25-MariaDB
-- PHP-Version: 5.6.31
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 */;
--
-- Datenbank: `music`
--
-- --------------------------------------------------------
--
-- Tabellenstruktur für Tabelle `menu`
--
CREATE TABLE `menu` (
`MenuID` int(11) NOT NULL,
`MenuName` text NOT NULL,
`MenuLink` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Daten für Tabelle `menu`
--
INSERT INTO `menu` (`MenuID`, `MenuName`, `MenuLink`) VALUES
(1, 'Guitar CS', 'http://www.halfhill.com/cheatsheet.gif');
--
-- Indizes der exportierten Tabellen
--
--
-- Indizes für die Tabelle `menu`
--
ALTER TABLE `menu`
ADD PRIMARY KEY (`MenuID`);
--
-- AUTO_INCREMENT für exportierte Tabellen
--
--
-- AUTO_INCREMENT für Tabelle `menu`
--
ALTER TABLE `menu`
MODIFY `MenuID` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;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>1-10
INSERT INTO
sso.user_password_table("user_id", "hash", "allow_reset", "require_update", "static")
VALUES
($1, $2, $3, $4, $5)
ON CONFLICT
("user_id")
DO UPDATE SET
"hash" = $2,
"allow_reset" = $3,
"require_update" = $4,
"static" = $5
RETURNING
"created_at",
"updated_at",
"user_id",
"allow_reset",
"require_update",
"static"
|
-- 1330 Number of visit_detail records inside a valid observation period
SELECT
1330 AS analysis_id,
CAST(NULL AS VARCHAR(255)) AS stratum_1,
CAST(NULL AS VARCHAR(255)) AS stratum_2,
CAST(NULL AS VARCHAR(255)) AS stratum_3,
CAST(NULL AS VARCHAR(255)) AS stratum_4,
CAST(NULL AS VARCHAR(255)) AS stratum_5,
COUNT_BIG(*) AS count_value
INTO
@scratchDatabaseSchema@schemaDelim@tempAchillesPrefix_1330
FROM
@cdmDatabaseSchema.visit_detail vd
JOIN
@cdmDatabaseSchema.observation_period op
ON
op.person_id = vd.person_id
AND
vd.visit_detail_start_date >= op.observation_period_start_date
AND
vd.visit_detail_start_date <= op.observation_period_end_date
;
|
-- Function: stratcon.delete_metrics(integer, text)
-- DROP FUNCTION stratcon.delete_metrics(integer, text);
CREATE OR REPLACE FUNCTION stratcon.delete_metrics(IN in_sid integer, IN in_metric text)
RETURNS TABLE(table_name text, deleted_rows numeric) AS
$BODY$DECLARE
delcount numeric;
metriccount numeric;
graphcount numeric;
BEGIN
-- check if the input matches any metrics
SELECT count(*) INTO metriccount FROM noit.metric_name_summary WHERE sid=in_sid AND metric_name LIKE in_metric;
IF metriccount=0 THEN
RAISE EXCEPTION 'No metrics match provided criteria: SID=%, Metric name=%', in_sid, in_metric;
END IF;
RAISE NOTICE 'Deleting % metrics data', metriccount;
-- check if the metrics are used in any graph, if yes, refuse to delete them
SELECT count(*) INTO graphcount FROM prism.saved_graphs_dep WHERE sid=in_sid and metric_name LIKE in_metric;
IF graphcount>0 THEN
RAISE EXCEPTION 'Cannot delete metrics (sid=%, metric=%), % graphs depend on them', in_sid, in_metric, graphcount;
END IF;
-- do the deletes
DELETE FROM noit.metric_numeric_rollup_5m WHERE sid=in_sid and name LIKE in_metric;
GET DIAGNOSTICS delcount = ROW_COUNT;
return query select 'metric_numeric_rollup_5m'::text, delcount;
DELETE FROM noit.metric_numeric_rollup_20m WHERE sid=in_sid and name LIKE in_metric;
GET DIAGNOSTICS delcount = ROW_COUNT;
return query select 'metric_numeric_rollup_20m'::text, delcount;
DELETE FROM noit.metric_numeric_rollup_30m WHERE sid=in_sid and name LIKE in_metric;
GET DIAGNOSTICS delcount = ROW_COUNT;
return query select 'metric_numeric_rollup_30m'::text, delcount;
DELETE FROM noit.metric_numeric_rollup_1hour WHERE sid=in_sid and name LIKE in_metric;
GET DIAGNOSTICS delcount = ROW_COUNT;
return query select 'metric_numeric_rollup_1hour'::text, delcount;
DELETE FROM noit.metric_numeric_rollup_4hour WHERE sid=in_sid and name LIKE in_metric;
GET DIAGNOSTICS delcount = ROW_COUNT;
return query select 'metric_numeric_rollup_4hour'::text, delcount;
DELETE FROM noit.metric_numeric_rollup_1day WHERE sid=in_sid and name LIKE in_metric;
GET DIAGNOSTICS delcount = ROW_COUNT;
return query select 'metric_numeric_rollup_1day'::text, delcount;
DELETE FROM noit.metric_tag WHERE sid=in_sid and metric_name LIKE in_metric;
GET DIAGNOSTICS delcount = ROW_COUNT;
return query select 'metric_tag'::text, delcount;
DELETE FROM noit.metric_text_changelog WHERE sid=in_sid and name LIKE in_metric;
GET DIAGNOSTICS delcount = ROW_COUNT;
return query select 'metric_text_changelog'::text, delcount;
DELETE FROM noit.metric_text_currently WHERE sid=in_sid and name LIKE in_metric;
GET DIAGNOSTICS delcount = ROW_COUNT;
return query select 'metric_text_currently'::text, delcount;
DELETE FROM noit.metric_name_summary WHERE sid=in_sid and metric_name LIKE in_metric;
GET DIAGNOSTICS delcount = ROW_COUNT;
return query select 'metric_name_summary'::text, delcount;
END$BODY$
LANGUAGE plpgsql VOLATILE
COST 10000
ROWS 1000;
ALTER FUNCTION stratcon.delete_metrics(integer, text)
OWNER TO reconnoiter;
COMMENT ON FUNCTION stratcon.delete_metrics(integer, text) IS 'Delete unwanted metric data. Will refuse to delete metrics used in graphs. Does not delete from metric archives, as these should be deleted separately.
Input:
in_sid - SID of the check, if uknown, the SID can be derived from check UUID by map_uuid_to_sid function
in_metric - metric name pattern, can use the standard LIKE % wildcard';
|
-- +goose Up
-- SQL in this section is executed when the migration is applied.
ALTER TABLE payment_template
ALTER COLUMN amount TYPE character varying(64),
ALTER COLUMN amount SET DEFAULT '',
ALTER COLUMN amount SET NOT NULL;
-- +goose Down
-- SQL in this section is executed when the migration is rolled back. |
DELETE FROM indexes;
|
<gh_stars>1-10
DROP VIEW IF EXISTS application;
DROP VIEW IF EXISTS codestyle;
DROP VIEW IF EXISTS codetext;
DROP VIEW IF EXISTS codetextraw;
DROP VIEW IF EXISTS codetype;
DROP VIEW IF EXISTS domain;
DROP VIEW IF EXISTS labeltext;
DROP VIEW IF EXISTS text;
|
-- Revert ggircs-portal:trigger_functions/signature_md5 from pg
begin;
drop function ggircs_portal_private.signature_md5;
commit;
|
select * from {{ var('test_create_table') }}
union all
select * from {{ var('test_create_second_table') }}
|
<filename>system-database/tms/testdata/h2_load_bank_demo_data.sql
INSERT INTO DIMENSIONS.ACCOUNT SELECT * FROM CSVREAD('/home/rtws/accounts.csv');
INSERT INTO DIMENSIONS.BRANCH SELECT * FROM CSVREAD('/home/rtws/branch.csv');
INSERT INTO DIMENSIONS.BANK SELECT * FROM CSVREAD('/home/rtws/bank.csv');
INSERT INTO DIMENSIONS.TELLER SELECT * FROM CSVREAD('/home/rtws/teller.csv'); |
<gh_stars>1000+
ALTER TABLE {$NAMESPACE}_diviner.diviner_livebook
ADD configurationData LONGTEXT COLLATE utf8_bin NOT NULL;
UPDATE {$NAMESPACE}_diviner.diviner_livebook
SET configurationData = '{}' WHERE configurationData = '';
ALTER TABLE {$NAMESPACE}_diviner.diviner_livesymbol
ADD title VARCHAR(255);
ALTER TABLE {$NAMESPACE}_diviner.diviner_livesymbol
ADD groupName VARCHAR(255);
ALTER TABLE {$NAMESPACE}_diviner.diviner_livesymbol
ADD summary LONGTEXT COLLATE utf8_bin;
ALTER TABLE {$NAMESPACE}_diviner.diviner_livesymbol
ADD isDocumentable BOOL NOT NULL;
|
-- @testpoint:opengauss关键字returns(非保留),作为用户组名
--关键字不带引号-成功
drop group if exists returns;
create group returns with password '<PASSWORD>';
drop group returns;
--关键字带双引号-成功
drop group if exists "returns";
create group "returns" with password '<PASSWORD>';
drop group "returns";
--关键字带单引号-合理报错
drop group if exists 'returns';
--关键字带反引号-合理报错
drop group if exists `returns`;
|
<filename>SMPP/SmppClient/DataTypes/spSMPP_Pdu_Insert.sql
USE [Database]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[spSMPP_Pdu_Insert]
@SMSCServiceID INT,
@LogKey NVARCHAR(128),
@Direction SMALLINT,
@CommandLength BIGINT,
@CommandId NVARCHAR(30),
@CommandStatusID NVARCHAR(30),
@SequenceNumber BIGINT,
@PduPropertyDetails SMPPPduPropertyDetailType READONLY,
@PduDataBlocks SMPPPduDataBlockType READONLY,
@PduHeaderID UNIQUEIDENTIFIER OUTPUT
AS
BEGIN
SET NOCOUNT ON;
-- Capture the current time
DECLARE @ReceivedSentDate DATETIME = GETUTCDATE()
SET @PduHeaderId = NEWID()
BEGIN TRY
BEGIN TRANSACTION
-- Insert the header record
INSERT SMPPPduHeader
(PduHeaderID, SMSCServiceID, LogKey, Direction, ReceivedSentDate, CommandLength, CommandId, CommandStatusId, SequenceNumber)
VALUES
(@PduHeaderId, @SMSCServiceID, @LogKey, @Direction, @ReceivedSentDate, @CommandLength, @CommandId, @CommandStatusId, @SequenceNumber)
-- Check for low severity errors
IF (@@ERROR != 0)
BEGIN
RAISERROR ('Error Inserting Header Record', 16, 1)
END
-- Insert the detail records
INSERT
SMPPPduDetails
SELECT
@PduHeaderId,
PPD.StartingBytePosition,
PPD.PduDataTypeId,
PPD.DataBlock,
PPD.PropertyName,
PPD.Value
FROM
@PduPropertyDetails PPD
-- Check for low severity errors
IF (@@ERROR != 0)
BEGIN
RAISERROR('Error Inserting Detail Records', 16, 1)
END
-- Insert the Pdu Data
INSERT
SMPPPduData
SELECT
@PduHeaderId,
PDB.SequenceId,
PDB.DataBlock
FROM
@PduDataBlocks PDB
-- Check for low severity errors
IF (@@ERROR != 0)
BEGIN
RAISERROR('Error Inserting Data Records', 16, 1)
END
-- Update the header with phone number
UPDATE
SMPPPduHeader
SET
DestAddr = PPD.Value
FROM
@PduPropertyDetails PPD
WHERE
PropertyName = 'DestAddr' AND
PduHeaderId = @PduHeaderId
-- Update the header with phone number
UPDATE
SMPPPduHeader
SET
SourceAddr = PPD.Value
FROM
@PduPropertyDetails PPD
WHERE
PropertyName = 'SourceAddr' AND
PduHeaderId = @PduHeaderId
-- Update the header with message
UPDATE
SMPPPduHeader
SET
ShortMessage = PPD.Value
FROM
@PduPropertyDetails PPD
WHERE
PropertyName = 'ShortMessage' AND
PduHeaderId = @PduHeaderId
COMMIT TRANSACTION
END TRY
BEGIN CATCH
DECLARE @ErrorSeverity INT = ERROR_SEVERITY()
DECLARE @ErrorState INT = ERROR_STATE()
DECLARE @ErrorMessage VARCHAR(MAX) = ERROR_MESSAGE()
IF (XACT_STATE() != 0)
BEGIN
ROLLBACK TRANSACTION
END
RAISERROR(@ErrorMessage, @ErrorState, @ErrorSeverity)
END CATCH
END
|
<gh_stars>0
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64)
--
-- Host: 192.168.2.254 Database: proyectosfa
-- ------------------------------------------------------
-- Server version 5.7.12-0ubuntu1.1
/*!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 `facturaimport`
--
DROP TABLE IF EXISTS `facturaimport`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `facturaimport` (
`idfactura` int(11) NOT NULL AUTO_INCREMENT,
`nofactura` int(11) NOT NULL,
`estado` int(11) NOT NULL,
`fecha_documento` date DEFAULT NULL,
`fecha_creacion` date DEFAULT NULL,
`proveedor_id` int(11) NOT NULL,
`total` decimal(11,2) NOT NULL,
PRIMARY KEY (`idfactura`),
KEY `fk_factimport_proveedor_idx` (`proveedor_id`),
CONSTRAINT `fk_factimport_proveedor` FOREIGN KEY (`proveedor_id`) REFERENCES `proveedor` (`idproveedor`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `facturaimport`
--
LOCK TABLES `facturaimport` WRITE;
/*!40000 ALTER TABLE `facturaimport` DISABLE KEYS */;
INSERT INTO `facturaimport` VALUES (1,123456789,1,'2017-10-31','2017-10-26',2,0.00),(2,123456,1,'2017-10-24','2017-10-26',2,0.00),(3,123456,1,'2017-11-28','2017-10-26',2,0.00),(4,2147483647,1,'2017-10-31','2017-10-26',2,0.00),(5,650368,1,'2017-10-31','2017-10-26',2,0.00),(6,50652048,1,'2017-10-25','2017-10-26',2,0.00);
/*!40000 ALTER TABLE `facturaimport` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2017-10-26 18:41:49
|
with diffs as (
SELECT
old.[SurveyID]
,old.[ShotInfoID]
,old.[InlineDeviation] [OldInlineDeviation], new.[InlineDeviation] [NewInlineDeviation], old.[InlineDeviation] - new.[InlineDeviation] [DiffInlineDeviation], ABS(old.[InlineDeviation]) - ABS(new.[InlineDeviation]) [DiffAbsInlineDeviation]
,old.[CrosslineDeviation] [OldCrosslineDeviation], new.[CrosslineDeviation] [NewCrosslineDeviation], old.[CrosslineDeviation] - new.[CrosslineDeviation] [DiffCrosslineDeviation], ABS(old.[CrosslineDeviation]) - ABS(new.[CrosslineDeviation]) [DiffAbsCrosslineDeviation]
,old.[RadialDeviation] [OldRadialDeviation], new.[RadialDeviation] [NewRadialDeviation], old.[RadialDeviation] - new.[RadialDeviation] [DiffRadialDeviation], ABS(old.[RadialDeviation]) - ABS(new.[RadialDeviation]) [DiffAbsRadialDeviation]
,old.[Latency] [OldLatency], new.[Latency] [NewLatency], old.[Latency] - new.[Latency] [DiffLatency], ABS(old.[Latency]) - ABS(new.[Latency]) [DiffAbsLatency]
---- this is really apples and oranges
--,old.[MinGunDepthDeviation] [OldMinGunDepthDeviation], new.[MinGunDepth] [NewMinGunDepth], old.[MinGunDepthDeviation] - new.[MinGunDepth]
--,old.[MaxGunDepthDeviation] [OldMaxGunDepthDeviation], new.[MaxGunDepth] [NewMaxGunDepth], old.[MaxGunDepthDeviation] - new.[MaxGunDepth]
--,old.[AverageGunDepthDeviation] [OldAverageGunDepthDeviation], new.[MeanGunDepth] [NewMeanGunDepth], old.[AverageGunDepthDeviation] - new.[MeanGunDepth]
--,[MinGunPressureDeviation]
--,[MaxGunPressureDeviation]
--,[AverageGunPressureDeviation]
--,[StdevGunDepthDeviation]
--,[StdevGunPressureDeviation]
--,[GunPressureOutOfSpec]
--,[InlineDeviationOutOfSpec]
--,[CrosslineDeviationOutOfSpec]
--,[GunDepthOutOfSpec]
--,old.[Created] [OldCreated], new.[Created] [NewCreated]
FROM
[acquisition].[ShotInfoDeviation_prev] old
join [acquisition].[ShotInfoDeviation] new
on new.SurveyID = old.SurveyID
and new.ShotInfoID = old.ShotInfoID
)
select * from diffs
where
DiffAbsCrosslineDeviation > 0
or DiffAbsInlineDeviation > 0
or DiffAbsRadialDeviation > 0
or DiffAbsLatency > 0
order by
SurveyID,
ShotInfoID |
DROP DATABASE IF EXISTS adidas;
CREATE DATABASE adidas;
USE adidas;
DROP TABLE IF EXISTS shoes;
DROP TABLE IF EXISTS looks;
DROP TABLE IF EXISTS shares;
CREATE TABLE shoes (
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(50) NOT NULL,
img_url VARCHAR(150),
short_desc VARCHAR(150),
long_desc VARCHAR(1000),
type VARCHAR (70),
price INT,
rating DECIMAL(5,2),
review_count INT,
details VARCHAR (1000)
);
CREATE TABLE looks (
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
pant_name VARCHAR(200),
pant_url VARCHAR(200),
pant_price INT,
shirt_name VARCHAR(200),
shirt_url VARCHAR(200),
shirt_price INT,
jacket_name VARCHAR(200),
jacket_url VARCHAR(200),
jacket_price INT
);
CREATE TABLE shares (
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
user1 VARCHAR(150),
img1 VARCHAR(300),
user2 VARCHAR(150),
img2 VARCHAR(300),
user3 VARCHAR(150),
img3 VARCHAR(300),
user4 VARCHAR(150),
img4 VARCHAR(300),
user5 VARCHAR(150),
img5 VARCHAR(300)
)
/* mysql -u root < database/schema.sql */
|
-- from surveys database to check id/name
--select * from survey.Survey
-- check counts
SELECT COUNT(*) FROM [acquisition].[ShotInfo]
SELECT COUNT(*) FROM [acquisition].[ShotInfoDeviation]
SELECT COUNT(*) FROM [acquisition].[ShotInfoDeviation2]
-- to do
-- check the events count
select count(*) from (select distinct seq_num, sailline_num from acquisition.ShotInfo) si
select count(*) from survey.Events where type = 'event.qc.shotinfo.aggregated'
-- missing | orphaned events
select
si.seq_num,
si.sailline_num,
si.count,
e.seq_num,
e.sailline_num,
e.type
from
(
select seq_num, sailline_num, count(*) count
from acquisition.ShotInfo
group by seq_num, sailline_num
) si
left join survey.Events e
on si.seq_num = e.seq_num
and si.sailline_num = e.sailline_num
and e.type = 'event.qc.shotinfo.aggregated'
where
si.seq_num is null
or e.seq_num is null
order by
si.seq_num,
si.sailline_num
-- check for duplicated sequence numbers
select
seq_num,
sailline_num,
count(*) DuplicateCount
from
survey.Events
where
type = 'event.qc.shotinfo.aggregated'
group by
seq_num,
sailline_num
having
COUNT(*) > 1
-- compare deviations
|
ALTER TABLE public.transfers ALTER COLUMN messagePayload VARBINARY(322);
|
<reponame>maysincerity/GradLab<gh_stars>0
create table test1 (uid int not null primary key, uname char(20) not null);
create table test2 (uid int not null, lid int not null
foreign key (uid) references test1 (uid));
|
<reponame>grglucastr/api-agenda-springboot<filename>contatos.sql
DROP database if EXISTS agenda;
CREATE DATABASE agenda;
use agenda;
CREATE TABLE `contatos` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`email` varchar(100) NOT NULL,
`nome` varchar(255) NOT NULL,
`sexo` char(1) NOT NULL,
`telefone` varchar(100) NOT NULL,
PRIMARY KEY (`id`)
);
INSERT INTO agenda.contatos (email, nome, sexo, telefone) VALUES('<EMAIL>', 'Contato 1', 'M', '(11) 11111-1111');
INSERT INTO agenda.contatos (email, nome, sexo, telefone) VALUES('<EMAIL>', 'Contato 2', 'F', '(22) 22222-22222');
INSERT INTO agenda.contatos (email, nome, sexo, telefone) VALUES('<EMAIL>', 'Contato 3', 'M', '(32) 33333-33333');
|
<filename>lib/sql/getUserGroupsOwner.sql
SELECT
m.AttributeName as Role,
m.ID as GroupID,
m.StringValue as Username,
o.ObjectType,
o.GroupType,
o.Description,
n.StringValue as Unit
FROM
dbMetakatalog.dbo.tblMultiValue m,
dbMetakatalog.dbo.tblObjects o
INNER JOIN
dbMetakatalog.dbo.tblMultiValue n ON n.ID = o.ID
WHERE
n.AttributeName = 'Enhet'
AND
o.ID = m.ID
AND
m.StringValue LIKE '@username'
AND
m.AttributeName = 'Owner'
AND
m.ID NOT LIKE '%@username'
|
<filename>src/routes/features/sql/get-features-list.sql
WITH columns AS (
SELECT
ns.nspname AS table_schema,
class.relname AS table_name,
attr.attname AS column_name,
trim(leading '_' from tp.typname) AS type_name
FROM pg_attribute attr
JOIN pg_catalog.pg_class AS class ON class.oid = attr.attrelid
JOIN pg_catalog.pg_namespace AS ns ON ns.oid = class.relnamespace
JOIN pg_catalog.pg_type AS tp ON tp.oid = attr.atttypid
WHERE NOT attr.attisdropped AND attr.attnum > 0)
SELECT
f_table_schema AS schema_name,
f_table_name AS table_name,
f_geometry_column AS geometry_column,
srid,
type,
COALESCE(
jsonb_object_agg(columns.column_name, columns.type_name) FILTER (WHERE columns.column_name IS NOT NULL),
'{}'::jsonb
) as properties
FROM geometry_columns
LEFT JOIN columns ON
geometry_columns.f_table_schema = columns.table_schema AND
geometry_columns.f_table_name = columns.table_name AND
geometry_columns.f_geometry_column != columns.column_name
WHERE f_table_schema = 'public'
GROUP BY f_table_schema, f_table_name, f_geometry_column, srid, type; |
<filename>sqlData/libros.sql
-- phpMyAdmin SQL Dump
-- version 4.9.5deb2
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Feb 19, 2022 at 06:30 PM
-- Server version: 8.0.25-0ubuntu0.20.04.1
-- PHP Version: 7.4.3
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: `biblioteca`
--
-- --------------------------------------------------------
--
-- Table structure for table `libros`
--
CREATE TABLE `libros` (
`id` bigint UNSIGNED NOT NULL,
`titulo` varchar(250) COLLATE utf8mb4_unicode_ci NOT NULL,
`imagen` varchar(2500) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `libros`
--
INSERT INTO `libros` (`id`, `titulo`, `imagen`, `created_at`, `updated_at`) VALUES
(1, 'Harry Potter and The Sorcerer\'s Stone', 'harry1.jpg', '2022-02-19 21:25:33', '2022-02-19 21:25:33'),
(2, 'Harry Potter and the Chamber of Secrets', 'harry2.jpg', '2022-02-19 21:23:40', '2022-02-19 21:23:40'),
(3, 'Harry Potter and The Prisioner of Azkaban', 'harry3.jpg', '2022-02-19 21:26:15', '2022-02-19 21:26:15'),
(4, 'Harry Potter and The Globet of Fire', 'harry4.jpg', '2022-02-19 21:26:15', '2022-02-19 21:26:15'),
(5, 'Harry Potter and The Order of the Phoenix', 'harry5.jpg', '2022-02-19 21:27:45', '2022-02-19 21:27:45'),
(6, 'Harry Potter and the Half-blood Prince', 'harry6.jpg', '2022-02-19 21:27:45', '2022-02-19 21:27:45'),
(7, 'Harry Potter and The Deathly Hallows', 'harry7.jpg', '2022-02-19 21:29:30', '2022-02-19 21:29:30');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `libros`
--
ALTER TABLE `libros`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `libros`
--
ALTER TABLE `libros`
MODIFY `id` bigint UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
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 [dbo].[Teams]
GO
CREATE TABLE [dbo].[Teams]
(
[TeamId] INT NOT NULL PRIMARY KEY,
[TeamName] NVARCHAR(50) NOT NULL,
[Location] NVARCHAR(50) NULL,
[TimeZone] NVARCHAR(50) NOT NULL
)
GO
DROP TABLE [dbo].[Games]
GO
CREATE TABLE [dbo].[Games]
(
[GameId] INT NOT NULL PRIMARY KEY,
[TeamId] INT FOREIGN KEY REFERENCES Teams(TeamId),
[StartTime] DATETIME NOT NULL,
[Location] NVARCHAR(50) NOT NULL,
[Description] NVARCHAR(MAX) NULL
)
GO
Drop table [dbo].[Players]
GO
CREATE TABLE [dbo].[Players] (
[PlayerId] INT IDENTITY (1, 1) NOT NULL,
[FirstName] NVARCHAR (MAX) NOT NULL,
[LastName] NVARCHAR (MAX) NOT NULL,
[Position] NVARCHAR (MAX) NULL,
[JerseyNumber] INT NOT NULL,
[PhoneNumber] NVARCHAR (MAX) NOT NULL,
[Status] NVARCHAR (MAX) NOT NULL,
[TeamId] INT FOREIGN KEY REFERENCES Teams(TeamId)
CONSTRAINT [PK_Players] PRIMARY KEY CLUSTERED ([PlayerId] ASC)
);
GO
DROP TABLE [dbo].[Attendances]
GO
CREATE TABLE [dbo].[Attendances]
(
[AttendanceId] INT NOT NULL PRIMARY KEY,
[GameId] INT NOT NULL FOREIGN KEY REFERENCES Games(GameId),
[PlayerId] INT NOT NULL FOREIGN KEY REFERENCES Players(PlayerId),
[Status] INT NOT NULL,
[Note] NVARCHAR(50) NULL
);
GO |
SELECT COUNT(*)
FROM
tag as t,
site as s,
question as q,
tag_question as tq
WHERE
t.site_id = s.site_id
AND q.site_id = s.site_id
AND tq.site_id = s.site_id
AND tq.question_id = q.id
AND tq.tag_id = t.id
AND (s.site_name in ('stackoverflow'))
AND (t.name in ('.net-4.0','angular2-routing','angularjs-scope','big-o','c++17','calendar','ios4','paypal','polymorphism','sapui5','substring','windows-installer'))
AND (q.favorite_count >= 0)
AND (q.favorite_count <= 1)
|
-- Populate Acts and Venues here, but not Events (which are date-dependant;
-- those are created by the FakeDataLoaderEjb
-- ACTS
-- Movies are Acts but in a joined table.
insert into acts(id, title, type, year) values( -100, 'Star Wars Episode 15: The Next Jedi', 0, 2021);
insert into movies (id, director) values (-100, '<NAME>');
-- Regular singers
insert into acts(id, title, type, year) values( -63, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -62, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -61, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -60, 'Sun Never Sets: The Musical', 2, 0);
insert into acts(id, title, type, year) values( -49, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -43, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -42, 'Coldplay', 2, 0);
insert into acts(id, title, type, year) values( -41, 'AC/DC', 2, 0);
insert into acts(id, title, type, year) values( -39, 'Metallica', 2, 0);
insert into acts(id, title, type, year) values( -38, 'One Direction', 2, 0);
insert into acts(id, title, type, year) values( -37, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -36, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -35, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -34, 'H<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -33, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -32, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -31, 'F<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -30, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -29, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -28, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -27, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -26, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -25, 'U2', 2, 0);
insert into acts(id, title, type, year) values( -24, 'Toronto Symphony Orchestra', 2, 0);
insert into acts(id, title, type, year) values( -23, 'The Who', 2, 0);
insert into acts(id, title, type, year) values( -22, 'The Twinkies', 2, 0);
insert into acts(id, title, type, year) values( -21, 'The Script', 2, 0);
insert into acts(id, title, type, year) values( -20, 'The Eagles', 2, 0);
insert into acts(id, title, type, year) values( -19, 'The Clash', 2, 0);
insert into acts(id, title, type, year) values( -18, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -17, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -16, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -15, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -14, 'Maroon 5', 2, 0);
insert into acts(id, title, type, year) values( -13, 'Los Angeles Philharmonic', 2, 0);
insert into acts(id, title, type, year) values( -12, 'London Symphony', 2, 0);
insert into acts(id, title, type, year) values( -11, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -10, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -9, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -8, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -7, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -6, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -5, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -4, '<NAME>', 2, 0);
insert into acts(id, title, type, year) values( -3, 'Boston Pops', 2, 0);
insert into acts(id, title, type, year) values( -2, 'Beach Boys', 2, 0);
insert into acts(id, title, type, year) values( -1, 'Rush', 2, 1980);
insert into acts(id, title, type, year) values( 1, 'Act One', 2, 2018);
-- Sports Events (should be a new type with home and visitor teams. Someday)
insert into acts(id, title, type, year) values( -54, 'Real Madrid vs Barcelona', 3, 0);
insert into acts(id, title, type, year) values( -53, 'Blackhawks vs Canucks', 3, 0);
insert into acts(id, title, type, year) values( -52, 'Red Sox vs Maple Leafs', 3, 0);
insert into acts(id, title, type, year) values( -51, 'Blue Jays vs Mets', 3, 0);
insert into acts(id, title, type, year) values( -50, 'Nicks vs Raptors', 3, 0);
-- VENUES
insert into venues(id, city, country, lat, lng, name, provstate, streetaddress) values ( 6, 'Flippingdon', null, null, null, 'United Centre', null, null);
insert into venues(id, city, country, lat, lng, name, provstate, streetaddress) values ( 7, 'London', 'UK', null, null, 'London Palladium', null, null);
insert into venues(id, city, country, lat, lng, name, provstate, streetaddress) values ( 1, 'New York', 'US', 40.764938, -73.979897, 'Carnegie Hall', 'NY', '881 Seventh Avenue');
insert into venues(id, city, country, lat, lng, name, provstate, streetaddress) values ( 4, 'San Francisco', 'US', null, null, 'Candlestick Park', null, null);
insert into venues(id, city, country, lat, lng, name, provstate, streetaddress) values ( 2, 'Toronto', 'CA', 43.646596, -79.386413, '<NAME>', 'ON', '60 Simcoe Street');
insert into venues(id, city, country, lat, lng, name, provstate, streetaddress) values ( 5, 'Toronto', 'CA', null, null, 'Maple Leaf Gardens', null, null);
insert into venues(id, city, country, lat, lng, name, provstate, streetaddress) values ( 3, 'Toronto', 'CA', null, null, 'Rogers Stadium', null, null);
insert into venues(id, city, country, lat, lng, name, provstate, streetaddress) values ( 8, 'Toronto', 'CA', null, null, 'Air Canada Centre', null, null);
-- PEOPLE
insert into people(id, firstName, lastName) values(-17, 'System', 'Administrator');
insert into members(id) values(-17);
|
<gh_stars>1-10
--select * from testflowitem
select testflowitem_id, testflowdef_id, testflowdef_name, testflowitem_item_id, item_number, item_description, testtype_name, testflowitem_override,
testflowitem_created_timestamp, testflowitem_modified_timestamp
from testflowitem
inner join testflowdef on testflowitem_flow_id = testflowdef_id
inner join item on testflowitem_item_id = item_id
inner join testtype on testflowitem_type_id = testtype_id
order by testflowdef_name
select item_number from item inner join testflowitem on item_id = testflowitem_item_id
where testflowitem_id = 20
and testflowitem_item_id = item_id;-- into _item_number;
select exists(select 1 from testflowitem where testflowitem_id = 20 and testflowitem_void_timestamp is null)
SELECT testflowitem_id,
testflowitem_flow_id,
testflowitem_item_id,
testflowitem_type_id,
testflowitem_override,
item_number,
item_description,
testflowdef_name,
testflowitem_created_timestamp,
testflowitem_modified_timestamp
FROM testflowitem
INNER JOIN item ON testflowitem_item_id = item_id
INNER JOIN testflowdef ON testflowitem_flow_id = testflowdef_id
--WHERE testflowitem_flow_id = 9
ORDER BY testflowitem_id;
SELECT removeflowitem(2)
select * from item
select * from testtype
select * from testflowdef
select * from testflowitem
select * from part
select addflowitem(9, 1, false)
select testtype_id, testtype_name, testflowdef_id, testflowdef_name, item_id, item_number, item_description, testflowitem_override, testflowitem_modified_timestamp
from testflowitem
inner join testtype on testflowitem_type_id = testtype_id
inner join testflowdef on testflowitem_flow_id = testflowdef_id
inner join item on testflowitem_item_id = item_id
order by testtype_name
select * from testflowseq
alter table testflowseq
ALTER Column testflowseq_name SET not null
SELECT testflowseq_id,
testflowseq_flow_id,
testflowseq_name,
testflowseq_description,
testflowseq_test_seq,
testflowseq_default,
testflowseq_created_timestamp CreatedTimestamp,
testflowseq_modified_timestamp ModifiedTimestamp,
testflowseq_void_timestamp VoidTimestamp
FROM testflowseq
INNER JOIN testflowdef on testflowseq_flow_id = testflowdef_id
--where testflowdef_id = 9
ORDER BY testflowseq_id
select createtestflow(9, 'Test Dev Seq 3', 'test dev seq 3 desc', '{}', false)
select updateflowseq(7, 9, '', '', '{11,12,13}', true)
SELECT testdef_id TestId,
testdef_name TestName,
testdef_description TestDescription,
testdef_created_timestamp CreatedTimestamp,
testdef_modified_timestamp ModifiedTimestamp,
testdef_void_timestamp VoidTimestamp,
testdef_locked TestLocked,
testdef_type_id TestTypeId
FROM testdef
ORDER BY testdef_id
select * from testdef
select * from testflowseq
select * from testflowitem
select * from part order by part_id
select * from item
select * from testtype
select * from partstate
select item_number, testtype_name, testflowseq_test_seq
from testflowseq
inner join testflowitem on testflowseq_flow_id = testflowitem_flow_id
inner join item on testflowitem_item_id = item_id
inner join testtype on testflowitem_type_id = testtype_id
where testflowitem_item_id = 10
and testflowitem_flow_id = testflowseq_flow_id
and testflowseq_default = true
and testflowitem_type_id = testtype_id
and upper(testtype_name) = 'TEST'
/* Part Test Sequences */
SELECT testflowseq_id FlowSeqId,
testflowseq_flow_id FlowSeqFlowId,
testflowseq_name FlowSeqName,
testflowseq_description FlowSeqDescription,
testflowseq_test_seq FlowTestSeq,
testflowseq_default FlowSeqDefault,
testflowseq_created_timestamp CreatedTimestamp,
testflowseq_modified_timestamp ModifiedTimestamp,
testflowseq_void_timestamp VoidTimestamp
FROM testflowseq
INNER JOIN testflowitem on testflowseq_flow_id = testflowitem_flow_id
INNER JOIN testtype on testflowitem_type_id = testtype_id
WHERE testflowitem_item_id = 1 -- ItemId
AND testflowitem_flow_id = testflowseq_flow_id
AND upper(testtype_name) = upper('Test') -- PartStateName
ORDER BY testflowseq_id;
select * from testdef
select * from part
select * from item
select * from testentry
select testdef_name, part_serialnumber, item_number, testentry_orig_serialnumber, testentry_result, testentry_created_timestamp
from testentry
inner join testdef on testentry_test_id = testdef_id
inner join part on testentry_part_id = part_id
inner join item on testentry_orig_item_id = item_id
order by part_serialnumber, testentry_created_timestamp
/* FIELD ENTRY */
select * from viewfieldentry where testdef_id = 1
select * from viewfieldentry;
SELECT testdef_id TestId,
testdef_name TestName,
testfield_id FieldId,
testfield_name FieldName,
testfield_description FieldDescription,
datatype_id DataTypeID,
datatype_type DataTypeName,
testfield_uom UnitOfMeasure,
testfield_min_limit MinLimit,
testfield_max_limit MaxLimit,
testfield_position FieldPosition,
testfield_defaultvalue DefaultValue,
testfield_comborestricted ComboRestricted
FROM viewfieldentry
WHERE testdef_id = 1;
select * from partstate
select * from testvalue
select * from datatype
select * from testvalue
select * from testentry
/* Test Record View Query */
Select testentry_id,
testtype_name,
item_number,
testentry_orig_serialnumber,
testdef_name,
testdef_description,
testentry_result,
testentry_created_timestamp,
usr_username,
testentry_completed_timestamp
from viewtestrecords
order by testentry_id;
|
SET NOCOUNT ON;
SELECT Count(*) AS 'Total',
CASE
WHEN ch.lastevaluationhealthy = 1 THEN 'Healthy Client'
WHEN ch.lastevaluationhealthy = 2 THEN 'Unhealthy Client'
WHEN ch.lastevaluationhealthy = 3 THEN 'Unknown'
END AS 'Health',
ch.lastevaluationhealthy
FROM v_r_system sys INNER JOIN v_ch_clientsummary ch ON sys.resourceid=ch.resourceid AND sys.client0=1 AND sys.obsolete0=0 AND sys.decommissioned0=0
GROUP BY ch.lastevaluationhealthy; |
<filename>src/Cms/Resource/incremental/mysql/0056_widget_relation_added_section.sql
ALTER TABLE `cms_category_widget_category`
ADD `cms_category_section_id` int(11) NULL AFTER `cms_category_id`,
ADD FOREIGN KEY (`cms_category_section_id`) REFERENCES `cms_category_section` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;
DROP TABLE `cms_category_widget_section_widget`; |
alter table users add column access jsonb not null default '{"all":"a"}';
|
<filename>airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/postgres/test_simple_streams/second_output/airbyte_incremental/test_normalization/renamed_dedup_cdc_excluded.sql
delete
from "postgres".test_normalization."renamed_dedup_cdc_excluded"
where (_airbyte_unique_key) in (
select (_airbyte_unique_key)
from "renamed_dedup_cdc_excluded__dbt_tmp"
);
insert into "postgres".test_normalization."renamed_dedup_cdc_excluded" ("_airbyte_unique_key", "id", "_ab_cdc_updated_at", "_airbyte_ab_id", "_airbyte_emitted_at", "_airbyte_normalized_at", "_airbyte_renamed_dedup_cdc_excluded_hashid")
(
select "_airbyte_unique_key", "id", "_ab_cdc_updated_at", "_airbyte_ab_id", "_airbyte_emitted_at", "_airbyte_normalized_at", "_airbyte_renamed_dedup_cdc_excluded_hashid"
from "renamed_dedup_cdc_excluded__dbt_tmp"
);
|
<gh_stars>100-1000
CREATE TABLE [dbo].[RelatedBug] (
[RelatedBugID] [int] IDENTITY (1, 1) NOT NULL ,
[BugID] [int] NOT NULL ,
[LinkedBugID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RelatedBug] ADD
CONSTRAINT [PK_BugRelation] PRIMARY KEY CLUSTERED
(
[RelatedBugID]
) ON [PRIMARY]
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS OFF
GO
CREATE PROCEDURE BugNet_RelatedBug_CreateNewRelatedBug
@BugId Int,
@LinkedBugId int
AS
IF NOT EXISTS( SELECT RelatedBugId FROM RelatedBug WHERE @BugId = @BugId AND LinkedBugId = @LinkedBugId)
BEGIN
INSERT RelatedBug
(
BugId,
LinkedBugId
)
VALUES
(
@BugId,
@LinkedBugId
)
INSERT RelatedBug
(
BugId,
LinkedBugId
)
VALUES
(
@LinkedBugId,
@BugId
)
END
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS OFF
GO
CREATE PROCEDURE BugNet_RelatedBug_DeleteRelatedBug
@BugId Int,
@LinkedBugId int
AS
DELETE
RelatedBug
WHERE
BugId = @BugId AND
LinkedBugId = @LinkedBugId
DELETE
RelatedBug
WHERE
BugId = @LinkedBugId AND
LinkedBugId = @BugId
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS OFF
GO
CREATE PROCEDURE BugNet_RelatedBug_GetRelatedBugsByBugId
@BugId int
As
Select * from BugsView join RelatedBug on BugsView.BugId = RelatedBug.LinkedBugId
WHERE RelatedBug.BugId = @BugId
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
|
<filename>inst/sql/cr_openalex_inst_full_raw.sql
WITH
first_aff AS (
SELECT
doi,
author_position,
id,
country_code,
display_name
FROM (
SELECT
doi,
author_position,
institutions
FROM
`subugoe-collaborative.openalex.works`,
UNNEST(authorships)
WHERE
author_position = "first" ),
UNNEST(institutions) )
SELECT
cr_raw.doi,
cr_journal_id,
cr_year,
id,
country_code,
display_name
FROM
`hoad-dash.oam.cr_raw` AS cr_raw
LEFT OUTER JOIN
first_aff
ON
cr_raw.doi = LOWER(first_aff.doi)
|
-- on the purposes tables, add a uuid id field and rename the existing
-- unique id from NALD
alter table water.purposes_primary
drop constraint "purposes_primary_pkey",
add column "purpose_primary_id" uuid default public.gen_random_uuid(),
add primary key ("purpose_primary_id");
alter table water.purposes_primary rename column "id" to "legacy_id";
alter table water.purposes_primary
add constraint purposes_primary_unq_legacy_id unique (legacy_id);
alter table water.purposes_secondary
drop constraint "purposes_secondary_pkey",
add column "purpose_secondary_id" uuid default public.gen_random_uuid(),
add primary key ("purpose_secondary_id");
alter table water.purposes_secondary rename column "id" to "legacy_id";
alter table water.purposes_secondary
add constraint purposes_secondary_unq_legacy_id unique (legacy_id);
alter table water.purposes_uses
drop constraint "purposes_uses_pkey",
add column "purpose_use_id" uuid default public.gen_random_uuid(),
add primary key ("purpose_use_id");
alter table water.purposes_uses rename column "id" to "legacy_id";
alter table water.purposes_uses
add constraint purposes_uses_unq_legacy_id unique (legacy_id);
-- now update the charge_elements table to use the new ids
alter table "water"."charge_elements"
add column "purpose_primary_id" uuid,
add column "purpose_secondary_id" uuid,
add column "purpose_tertiary_id" uuid;
-- copy the id data from the purposes tables
update water.charge_elements as ce
set purpose_primary_id = p.purpose_primary_id
from water.purposes_primary as p
where purpose_primary = p.legacy_id;
update water.charge_elements as ce
set purpose_secondary_id = p.purpose_secondary_id
from water.purposes_secondary as p
where purpose_secondary = p.legacy_id;
update water.charge_elements as ce
set purpose_tertiary_id = p.purpose_use_id
from water.purposes_uses as p
where purpose_tertiary = p.legacy_id;
-- remove the unwanted fields and establish foriegn key relationships
-- with the new uuid ids in the purposes tables.
alter table "water"."charge_elements"
drop column "purpose_primary",
drop column "purpose_secondary",
drop column "purpose_tertiary",
alter column "purpose_primary_id" set not null,
add foreign key ("purpose_primary_id") references water.purposes_primary("purpose_primary_id"),
alter column "purpose_secondary_id" set not null,
add foreign key ("purpose_secondary_id") references water.purposes_secondary("purpose_secondary_id"),
alter column "purpose_tertiary_id" set not null,
add foreign key ("purpose_tertiary_id") references water.purposes_uses("purpose_use_id");
|
CREATE TABLE ontime ( Yearss int, Monthss int, DayofMonthss int, DayOfWeek int, DepTime int, CRSDepTime int, ArrTime int, CRSArrTime int, UniqueCarrier varchar(5), FlightNum int, TailNum String, ActualElapsedTime int, CRSElapsedTime int, AirTime int, ArrDelay int, DepDelay int, Origin String, Dest String, Distance int, TaxiIn int, TaxiOut int, Cancelled int, CancellationCode String, Diverted String, CarrierDelay int, WeatherDelay int, NASDelay int, SecurityDelay int, LateAircraftDelay int) COMMENT 'ontime details' ROW FORMAT DELIMITED FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' STORED AS TEXTFILE; |
<reponame>BernardIgiri/archive-RaffleTicketApp
INSERT INTO `raffle` SET
`title` = 'Hidden Raffle',
`description` = 'Example 1 Raffle description goes here',
`isPublic` = 0,
`date` = ADDDATE(NOW(), INTERVAL 10 DAY),
`drawingTime` = ADDDATE(NOW(), INTERVAL 10 DAY);
INSERT INTO `raffle` SET
`title` = 'Soon Raffle',
`description` = 'Example 2 Raffle description goes here',
`isPublic` = 1,
`date` = ADDDATE(NOW(), INTERVAL 10 DAY),
`drawingTime` = ADDDATE(NOW(), INTERVAL 10 DAY);
INSERT INTO `raffle` SET
`title` = 'Next Raffle',
`description` = 'Example 3 Raffle description goes here',
`isPublic` = 1,
`date` = ADDDATE(NOW(), INTERVAL 2 MONTH),
`drawingTime` = ADDDATE(NOW(), INTERVAL 2 MONTH);
INSERT INTO `raffle` SET
`title` = 'DISTANT Raffle',
`description` = 'Example 4 Raffle description goes here',
`isPublic` = 1,
`date` = ADDDATE(NOW(), INTERVAL 7 MONTH),
`drawingTime` = ADDDATE(NOW(), INTERVAL 7 MONTH);
INSERT INTO `raffleTicketPrice` SET
`raffleId` = 2,
`quantity` = 1,
`price` = 5.00;
INSERT INTO `raffleTicketPrice` SET
`raffleId` = 2,
`quantity` = 3,
`price` = 10.00;
INSERT INTO `raffleTicketPrice` SET
`raffleId` = 2,
`quantity` = 10,
`price` = 20.00;
INSERT INTO `raffleTicketPrice` SET
`raffleId` = 2,
`quantity` = 30,
`price` = 50.00;
INSERT INTO `rafflePrize` SET
`raffleId` = 2,
`placement` = 1,
`quantity` = 1,
`name` = 'Ride in Ferrari and iPhone 6',
`description` = 'Ride in a Ferrari, get your photo taken, and get a new iPhone 6.';
INSERT INTO `rafflePrize` SET
`raffleId` = 2,
`placement` = 2,
`quantity` = 4,
`name` = 'iPhone 6',
`description` = 'Get a new iPhone 6.';
INSERT INTO `rafflePrize` SET
`raffleId` = 2,
`placement` = 3,
`quantity` = 10,
`name` = '$20 iTunes Gift Card',
`description` = 'Get a $20 iTunes Gift Card.';
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8572536256',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9531600109',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5771945658',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6828849616',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3499776328',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7272689618',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7860022093',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6217340391',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3000167102',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1969821843',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5037148446',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8543566959',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4213470238',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5466608782',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6295853071',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2160677445',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1154447879',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1551222520',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 18',
`phoneNumber` = '1035909726',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 19',
`phoneNumber` = '8667391183',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 20',
`phoneNumber` = '6847894788',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 21',
`phoneNumber` = '2283145038',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6174872471',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 23',
`phoneNumber` = '3292138943',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5063519100',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4673407867',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8447034596',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6757132250',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5250083748',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4472146419',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 30',
`phoneNumber` = '2922059779',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3651659358',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5606866583',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9773003702',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7138248463',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7787920862',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9421740497',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1104064703',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4585649829',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3614304262',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2081327296',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7307064285',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9894630700',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4514397139',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9375701794',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4314185908',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9081556611',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3259565755',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2847765308',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3422792833',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3843819966',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9909620988',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8855267540',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6130533565',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5181775063',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5904052834',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7906585439',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 57',
`phoneNumber` = '7834715204',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 58',
`phoneNumber` = '6235119902',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1056097580',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 60',
`phoneNumber` = '3564634033',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1357338601',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7696549153',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 63',
`phoneNumber` = '3277986374',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 64',
`phoneNumber` = '2306547142',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 65',
`phoneNumber` = '1798578511',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 66',
`phoneNumber` = '8310284311',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 67',
`phoneNumber` = '7709954796',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 68',
`phoneNumber` = '4137776344',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 69',
`phoneNumber` = '1042776047',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6071275392',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8271303017',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6637496531',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3154517726',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5103991725',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4376199178',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 76',
`phoneNumber` = '1377245627',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3259541399',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2971280731',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 79',
`phoneNumber` = '9710283828',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 80',
`phoneNumber` = '1304426834',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 81',
`phoneNumber` = '4534718537',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6143690475',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 83',
`phoneNumber` = '7029580841',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 84',
`phoneNumber` = '7690499843',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 85',
`phoneNumber` = '3751073229',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 86',
`phoneNumber` = '8085727027',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 87',
`phoneNumber` = '2248462055',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 88',
`phoneNumber` = '7271935605',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 89',
`phoneNumber` = '8387794100',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5080201637',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1005538899',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4145117580',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8237925233',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6156336156',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8221192495',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5195200919',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8952331699',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4148077685',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5019898427',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2702387534',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3650446404',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 102',
`phoneNumber` = '4023505990',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3311138163',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8363165313',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8006540315',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8241174725',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5811910528',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5793888699',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8276153231',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6079886089',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5717484743',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7885097116',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2914227352',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7639798275',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>am 115',
`phoneNumber` = '9933734933',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 116',
`phoneNumber` = '9591713516',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 117',
`phoneNumber` = '5354572274',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 118',
`phoneNumber` = '8585210733',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 119',
`phoneNumber` = '5018966625',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 120',
`phoneNumber` = '2815346545',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 121',
`phoneNumber` = '5751544745',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6195378005',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7472576280',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2508220562',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4303993872',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1674896043',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3917517782',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 128',
`phoneNumber` = '6671143986',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5951693499',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3327761786',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3230272162',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3389282533',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7271914790',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2786206358',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9330044943',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2303166873',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2419102519',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5884398526',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6578186161',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3158953228',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 141',
`phoneNumber` = '2776447449',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 142',
`phoneNumber` = '3167628751',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 143',
`phoneNumber` = '3371086603',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 144',
`phoneNumber` = '5799903293',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 145',
`phoneNumber` = '7811369653',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5839869557',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 147',
`phoneNumber` = '9423698181',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7187139107',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6857226834',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2427770551',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2193784428',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5151104567',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4790251593',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7974430118',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9633313701',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8731935617',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8213486967',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8440983996',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4596306516',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9439713902',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6259526854',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 162',
`phoneNumber` = '2177598466',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 163',
`phoneNumber` = '9103130263',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 164',
`phoneNumber` = '5622380937',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3283321244',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 166',
`phoneNumber` = '7126952805',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3372646186',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9193243350',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6570674968',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3338377814',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9240165160',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 172',
`phoneNumber` = '2763400048',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3075271177',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8973148067',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1554511648',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 176',
`phoneNumber` = '7274705664',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 177',
`phoneNumber` = '8778181050',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2215109021',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5413085152',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 180',
`phoneNumber` = '6979735237',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 181',
`phoneNumber` = '8862176290',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 182',
`phoneNumber` = '9700649494',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 183',
`phoneNumber` = '5492438249',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 184',
`phoneNumber` = '5238955217',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 185',
`phoneNumber` = '8961835279',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 186',
`phoneNumber` = '5839736563',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2101801656',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2007647247',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6628046520',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9255324502',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9429521407',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8798051709',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 193',
`phoneNumber` = '2525999757',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8854178810',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7534559884',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 196',
`phoneNumber` = '6899827769',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5512982914',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 198',
`phoneNumber` = '9510830459',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6288473245',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7194854659',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4187654290',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5750261096',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8032265399',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7044259429',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1790748290',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9718734125',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3023965904',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2485928604',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8580203160',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8661749453',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2119402158',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6078580338',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 213',
`phoneNumber` = '8264214406',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 214',
`phoneNumber` = '9595504998',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 215',
`phoneNumber` = '2403515814',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 216',
`phoneNumber` = '9638960824',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 217',
`phoneNumber` = '1689817519',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 218',
`phoneNumber` = '1559505812',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 219',
`phoneNumber` = '1264541778',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 220',
`phoneNumber` = '6284600278',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 221',
`phoneNumber` = '3142506662',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 222',
`phoneNumber` = '6585535821',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 223',
`phoneNumber` = '9499536809',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 224',
`phoneNumber` = '9527046600',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 225',
`phoneNumber` = '5634133788',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7440831100',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1408035694',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1121242182',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8056807565',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1766716827',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2374839603',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 232',
`phoneNumber` = '9326275618',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 233',
`phoneNumber` = '6924161191',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 234',
`phoneNumber` = '8646654530',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 235',
`phoneNumber` = '4828440604',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 236',
`phoneNumber` = '7397540840',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 237',
`phoneNumber` = '1260618787',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 238',
`phoneNumber` = '1603662137',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4010718861',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6540001721',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8103714445',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8218909754',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9741423593',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3716055209',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6384603681',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1802659599',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5645189093',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9726419299',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4081931663',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5449974539',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4925748243',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4710993622',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7665604300',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4643226710',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4564767880',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7963113371',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4758261969',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6842135987',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5394252124',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '4041628197',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1976564849',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 262',
`phoneNumber` = '1188067376',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 263',
`phoneNumber` = '6405569606',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 264',
`phoneNumber` = '9550610877',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 265',
`phoneNumber` = '3121809792',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 266',
`phoneNumber` = '5139632380',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 267',
`phoneNumber` = '6621998795',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 268',
`phoneNumber` = '5979218674',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 269',
`phoneNumber` = '4852903434',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 270',
`phoneNumber` = '3273056063',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7722028456',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1707799482',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7132540555',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2645846151',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7663143474',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5235625307',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 277',
`phoneNumber` = '7812715372',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 278',
`phoneNumber` = '8711677760',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 279',
`phoneNumber` = '8474972087',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 280',
`phoneNumber` = '3343543707',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 281',
`phoneNumber` = '3543578686',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 282',
`phoneNumber` = '2721587477',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 283',
`phoneNumber` = '1483994478',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 284',
`phoneNumber` = '6125102524',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 285',
`phoneNumber` = '7939714716',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 286',
`phoneNumber` = '8706488473',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 287',
`phoneNumber` = '1149826100',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 288',
`phoneNumber` = '6242231222',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 289',
`phoneNumber` = '7198712451',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 290',
`phoneNumber` = '7487261899',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 291',
`phoneNumber` = '5590820433',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 292',
`phoneNumber` = '6792112512',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 293',
`phoneNumber` = '6077067991',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 294',
`phoneNumber` = '9021105428',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 295',
`phoneNumber` = '3709176361',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 296',
`phoneNumber` = '5109683163',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 297',
`phoneNumber` = '1943338528',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 298',
`phoneNumber` = '4731567362',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 299',
`phoneNumber` = '1293528603',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 300',
`phoneNumber` = '4970181030',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 301',
`phoneNumber` = '6637257532',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 302',
`phoneNumber` = '5864057441',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 303',
`phoneNumber` = '7597306451',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 304',
`phoneNumber` = '2002861945',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 305',
`phoneNumber` = '2382627060',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 306',
`phoneNumber` = '2353826354',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 307',
`phoneNumber` = '2777178581',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 308',
`phoneNumber` = '2431958990',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 309',
`phoneNumber` = '6058203087',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '1585305172',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 311',
`phoneNumber` = '3816561719',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6006962721',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 313',
`phoneNumber` = '8738473971',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '2436315652',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6160449791',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 316',
`phoneNumber` = '9557557183',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 317',
`phoneNumber` = '2847819201',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 318',
`phoneNumber` = '7240638861',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 319',
`phoneNumber` = '1965709658',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 320',
`phoneNumber` = '1916722253',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 321',
`phoneNumber` = '4262544028',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 322',
`phoneNumber` = '8230200668',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 323',
`phoneNumber` = '1330003811',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 324',
`phoneNumber` = '9145212478',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6170651399',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 326',
`phoneNumber` = '3753648602',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9090053206',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 328',
`phoneNumber` = '3336354249',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 329',
`phoneNumber` = '3937631595',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 330',
`phoneNumber` = '5160833063',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 331',
`phoneNumber` = '6916638805',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 332',
`phoneNumber` = '5643510106',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 333',
`phoneNumber` = '9768493174',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 334',
`phoneNumber` = '5420229700',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 335',
`phoneNumber` = '9793038869',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 336',
`phoneNumber` = '6563763176',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 337',
`phoneNumber` = '9308923972',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 338',
`phoneNumber` = '9936971370',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 339',
`phoneNumber` = '6486525501',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5884583909',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 341',
`phoneNumber` = '7903030881',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 342',
`phoneNumber` = '1652091373',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 343',
`phoneNumber` = '4465904560',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 344',
`phoneNumber` = '1296926889',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 345',
`phoneNumber` = '8018387222',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 346',
`phoneNumber` = '9948022836',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 347',
`phoneNumber` = '6142443070',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 348',
`phoneNumber` = '5272827399',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 349',
`phoneNumber` = '1793090600',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 350',
`phoneNumber` = '1603255325',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 351',
`phoneNumber` = '3796194640',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 352',
`phoneNumber` = '6983291287',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 353',
`phoneNumber` = '4222341883',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 354',
`phoneNumber` = '6398389225',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 355',
`phoneNumber` = '4440004953',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = 'Leif Level 356',
`phoneNumber` = '7010568617',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 357',
`phoneNumber` = '6346294119',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 358',
`phoneNumber` = '7329435542',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 359',
`phoneNumber` = '6247250785',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 360',
`phoneNumber` = '8126214937',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 361',
`phoneNumber` = '5260348753',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 362',
`phoneNumber` = '6109951085',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 363',
`phoneNumber` = '3271564382',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 364',
`phoneNumber` = '5448930512',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 365',
`phoneNumber` = '3544856232',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 366',
`phoneNumber` = '8450506944',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 367',
`phoneNumber` = '3639329641',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 368',
`phoneNumber` = '1936889947',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 369',
`phoneNumber` = '2410146122',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 370',
`phoneNumber` = '7503273358',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 371',
`phoneNumber` = '9068420949',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 372',
`phoneNumber` = '4099468583',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 373',
`phoneNumber` = '3034106685',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 374',
`phoneNumber` = '1085261330',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 375',
`phoneNumber` = '8657280118',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 376',
`phoneNumber` = '9927147541',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 377',
`phoneNumber` = '4832811461',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 378',
`phoneNumber` = '2332306436',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 379',
`phoneNumber` = '3737586325',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 380',
`phoneNumber` = '1830320845',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 381',
`phoneNumber` = '5935322938',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 382',
`phoneNumber` = '4337699550',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 383',
`phoneNumber` = '6269999195',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 384',
`phoneNumber` = '5014055599',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 385',
`phoneNumber` = '4824685928',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 386',
`phoneNumber` = '4940978337',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 387',
`phoneNumber` = '7856083443',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 388',
`phoneNumber` = '4183406736',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 389',
`phoneNumber` = '9370242958',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 390',
`phoneNumber` = '1259134918',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 391',
`phoneNumber` = '2711853341',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 392',
`phoneNumber` = '4299718645',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 393',
`phoneNumber` = '4215518888',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 394',
`phoneNumber` = '3212330122',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 395',
`phoneNumber` = '9042531044',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 396',
`phoneNumber` = '8313103585',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3156410230',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '5236501578',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3874529390',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 400',
`phoneNumber` = '9631188983',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 401',
`phoneNumber` = '4735894938',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 402',
`phoneNumber` = '5486357575',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 403',
`phoneNumber` = '6851506801',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 404',
`phoneNumber` = '7636974105',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 405',
`phoneNumber` = '6822025119',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 406',
`phoneNumber` = '2607962329',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 407',
`phoneNumber` = '3188279351',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 408',
`phoneNumber` = '8999829101',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 409',
`phoneNumber` = '8025001780',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 410',
`phoneNumber` = '6591782690',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 411',
`phoneNumber` = '9822282673',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 412',
`phoneNumber` = '8519952925',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 413',
`phoneNumber` = '4655701832',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 414',
`phoneNumber` = '9176740001',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 415',
`phoneNumber` = '9113490197',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 416',
`phoneNumber` = '3321130446',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 417',
`phoneNumber` = '9763130026',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 418',
`phoneNumber` = '9264977043',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 419',
`phoneNumber` = '6509573983',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 420',
`phoneNumber` = '5719708636',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 421',
`phoneNumber` = '2508937295',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 422',
`phoneNumber` = '5627054625',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 423',
`phoneNumber` = '4735846891',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 424',
`phoneNumber` = '8123192469',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 425',
`phoneNumber` = '6537532173',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 426',
`phoneNumber` = '5647491032',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 427',
`phoneNumber` = '5378550632',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 428',
`phoneNumber` = '8634115477',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 429',
`phoneNumber` = '2694048146',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 430',
`phoneNumber` = '9423810664',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 431',
`phoneNumber` = '2535609594',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 432',
`phoneNumber` = '1364668818',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 433',
`phoneNumber` = '7517354737',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 434',
`phoneNumber` = '4620305811',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 435',
`phoneNumber` = '9362695968',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 436',
`phoneNumber` = '7425766299',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 437',
`phoneNumber` = '8921744814',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 438',
`phoneNumber` = '7055187507',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 439',
`phoneNumber` = '2092688188',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 440',
`phoneNumber` = '3853035829',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 441',
`phoneNumber` = '7604622059',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 442',
`phoneNumber` = '7480350016',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 443',
`phoneNumber` = '1259636841',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 444',
`phoneNumber` = '3180884804',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 445',
`phoneNumber` = '5095232064',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 446',
`phoneNumber` = '1229653686',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 447',
`phoneNumber` = '6903164928',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 448',
`phoneNumber` = '4152957346',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 449',
`phoneNumber` = '2544135417',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 450',
`phoneNumber` = '5589371714',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 451',
`phoneNumber` = '4715802829',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 452',
`phoneNumber` = '8147196716',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 453',
`phoneNumber` = '5999866277',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 454',
`phoneNumber` = '7401910131',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 455',
`phoneNumber` = '9948793112',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 456',
`phoneNumber` = '5146325380',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 457',
`phoneNumber` = '8140482923',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 458',
`phoneNumber` = '1053560352',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 459',
`phoneNumber` = '8699489727',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 460',
`phoneNumber` = '9124476779',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 461',
`phoneNumber` = '6791339960',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 462',
`phoneNumber` = '7913792767',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 463',
`phoneNumber` = '3174288735',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 464',
`phoneNumber` = '1036035082',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 465',
`phoneNumber` = '3530351137',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 466',
`phoneNumber` = '9938483507',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 467',
`phoneNumber` = '6034708719',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 468',
`phoneNumber` = '5032827982',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 469',
`phoneNumber` = '1186181643',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 470',
`phoneNumber` = '6744722776',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 471',
`phoneNumber` = '6418269363',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 472',
`phoneNumber` = '5949896876',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 473',
`phoneNumber` = '2242365040',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 474',
`phoneNumber` = '6377846308',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 475',
`phoneNumber` = '9995648959',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 476',
`phoneNumber` = '2792536893',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 477',
`phoneNumber` = '9906562423',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 478',
`phoneNumber` = '2396287381',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 479',
`phoneNumber` = '4989712046',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 480',
`phoneNumber` = '3865853577',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 481',
`phoneNumber` = '1883918066',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 482',
`phoneNumber` = '7055598147',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 483',
`phoneNumber` = '6965391749',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 484',
`phoneNumber` = '6358769310',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 485',
`phoneNumber` = '6732484212',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 486',
`phoneNumber` = '6556551352',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 487',
`phoneNumber` = '7768498108',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 488',
`phoneNumber` = '8234408996',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 489',
`phoneNumber` = '6195381012',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 490',
`phoneNumber` = '7123505777',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 491',
`phoneNumber` = '4485118032',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 492',
`phoneNumber` = '3446556143',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 493',
`phoneNumber` = '4764806635',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 494',
`phoneNumber` = '1941820595',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 495',
`phoneNumber` = '8495014634',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 496',
`phoneNumber` = '4886507060',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 497',
`phoneNumber` = '7776228576',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 498',
`phoneNumber` = '1061541565',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 499',
`phoneNumber` = '1192944485',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 500',
`phoneNumber` = '2620065026',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 501',
`phoneNumber` = '9202771313',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 502',
`phoneNumber` = '8629926628',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 503',
`phoneNumber` = '2061282301',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 504',
`phoneNumber` = '7522914234',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 505',
`phoneNumber` = '3410196138',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 506',
`phoneNumber` = '7761724780',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 507',
`phoneNumber` = '1212723312',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 508',
`phoneNumber` = '1390233223',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 509',
`phoneNumber` = '1230848222',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>ten 510',
`phoneNumber` = '5422640268',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 511',
`phoneNumber` = '9198999890',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 512',
`phoneNumber` = '3038930690',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 513',
`phoneNumber` = '2392094818',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 514',
`phoneNumber` = '3970065717',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 515',
`phoneNumber` = '5567708540',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 516',
`phoneNumber` = '7077019266',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 517',
`phoneNumber` = '9399059999',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 518',
`phoneNumber` = '1518499387',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 519',
`phoneNumber` = '6232761063',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 520',
`phoneNumber` = '9952420714',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 521',
`phoneNumber` = '9918549705',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 522',
`phoneNumber` = '3503497793',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>ford 523',
`phoneNumber` = '5487242182',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 524',
`phoneNumber` = '9634392683',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 525',
`phoneNumber` = '4764712977',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 526',
`phoneNumber` = '2017797178',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 527',
`phoneNumber` = '1661857978',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 528',
`phoneNumber` = '5490771210',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 529',
`phoneNumber` = '2056481803',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 530',
`phoneNumber` = '6749245940',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 531',
`phoneNumber` = '4897908024',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 532',
`phoneNumber` = '2955411014',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 533',
`phoneNumber` = '4863231703',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 534',
`phoneNumber` = '3061340859',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 535',
`phoneNumber` = '6424537153',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = 'Ilse Eddins 536',
`phoneNumber` = '7462037012',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 537',
`phoneNumber` = '5279117594',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 538',
`phoneNumber` = '2844219176',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 539',
`phoneNumber` = '5158812546',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 540',
`phoneNumber` = '7796708667',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 541',
`phoneNumber` = '2393950776',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 542',
`phoneNumber` = '3598622493',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 543',
`phoneNumber` = '1031576758',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 544',
`phoneNumber` = '6872836126',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 545',
`phoneNumber` = '6547694216',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 546',
`phoneNumber` = '9236887997',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 547',
`phoneNumber` = '5474056017',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 548',
`phoneNumber` = '9747298532',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 549',
`phoneNumber` = '8401678869',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 550',
`phoneNumber` = '8229360142',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 551',
`phoneNumber` = '4069373948',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 552',
`phoneNumber` = '7435238219',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 553',
`phoneNumber` = '1433003097',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 554',
`phoneNumber` = '5982424121',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 555',
`phoneNumber` = '5049132678',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = 'Leif Level 556',
`phoneNumber` = '9659276676',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 557',
`phoneNumber` = '2513011038',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 558',
`phoneNumber` = '8031166866',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 559',
`phoneNumber` = '9421582486',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 560',
`phoneNumber` = '3563762885',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 561',
`phoneNumber` = '5407379023',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 562',
`phoneNumber` = '6972015844',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 563',
`phoneNumber` = '5985494110',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 564',
`phoneNumber` = '1024805299',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 565',
`phoneNumber` = '9323447706',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 566',
`phoneNumber` = '7247073577',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 567',
`phoneNumber` = '4010151370',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 568',
`phoneNumber` = '1615764796',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 569',
`phoneNumber` = '1979227725',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 570',
`phoneNumber` = '3662804169',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 571',
`phoneNumber` = '3863770492',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 572',
`phoneNumber` = '8778249075',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 573',
`phoneNumber` = '4902813329',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 574',
`phoneNumber` = '8579503831',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 575',
`phoneNumber` = '2834637145',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 576',
`phoneNumber` = '8595179394',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 577',
`phoneNumber` = '1946893243',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 578',
`phoneNumber` = '5597187930',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 579',
`phoneNumber` = '6874104783',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 580',
`phoneNumber` = '9075953072',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 581',
`phoneNumber` = '7513752650',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 582',
`phoneNumber` = '3233041193',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 583',
`phoneNumber` = '5268138116',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 584',
`phoneNumber` = '4325903228',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 585',
`phoneNumber` = '8583580596',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 586',
`phoneNumber` = '1619127335',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 587',
`phoneNumber` = '5405836170',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 588',
`phoneNumber` = '5568681608',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 589',
`phoneNumber` = '3027752643',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 590',
`phoneNumber` = '1262136746',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 591',
`phoneNumber` = '6394992956',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 592',
`phoneNumber` = '4139552285',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 593',
`phoneNumber` = '4636254050',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 594',
`phoneNumber` = '6810722489',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 595',
`phoneNumber` = '7115006734',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 596',
`phoneNumber` = '8322358988',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 597',
`phoneNumber` = '5346157612',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 598',
`phoneNumber` = '6578373767',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 599',
`phoneNumber` = '5897652633',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '8229377580',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 601',
`phoneNumber` = '3518793314',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 602',
`phoneNumber` = '9611968969',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 603',
`phoneNumber` = '6050852541',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 604',
`phoneNumber` = '1603802909',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 605',
`phoneNumber` = '8075722319',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 606',
`phoneNumber` = '8305934506',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 607',
`phoneNumber` = '3323983710',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 608',
`phoneNumber` = '9189253706',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 609',
`phoneNumber` = '3022321136',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 610',
`phoneNumber` = '8577268010',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 611',
`phoneNumber` = '1099423153',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 612',
`phoneNumber` = '4917069851',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 613',
`phoneNumber` = '9246290405',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 614',
`phoneNumber` = '5611404303',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 615',
`phoneNumber` = '8171545941',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 616',
`phoneNumber` = '2340544453',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 617',
`phoneNumber` = '2648682845',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 618',
`phoneNumber` = '8742799869',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 619',
`phoneNumber` = '1808585223',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 620',
`phoneNumber` = '1487103592',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 621',
`phoneNumber` = '8790101032',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 622',
`phoneNumber` = '2825240028',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 623',
`phoneNumber` = '9595284261',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 624',
`phoneNumber` = '6266379240',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 625',
`phoneNumber` = '9078663563',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 626',
`phoneNumber` = '8105110874',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 627',
`phoneNumber` = '9098740107',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 628',
`phoneNumber` = '4908348233',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 629',
`phoneNumber` = '7316540156',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 630',
`phoneNumber` = '7601163801',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 631',
`phoneNumber` = '1425930533',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 632',
`phoneNumber` = '5344830206',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>ault 633',
`phoneNumber` = '8746276481',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 634',
`phoneNumber` = '8943706941',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 635',
`phoneNumber` = '9541221897',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 636',
`phoneNumber` = '3397053442',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 637',
`phoneNumber` = '3062058649',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 638',
`phoneNumber` = '3764809156',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 639',
`phoneNumber` = '1698458541',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 640',
`phoneNumber` = '2608874269',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 641',
`phoneNumber` = '4727667421',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 642',
`phoneNumber` = '9506662051',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 643',
`phoneNumber` = '8583728327',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 644',
`phoneNumber` = '3191603683',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 645',
`phoneNumber` = '8805932506',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = 'Jerrell Judge 646',
`phoneNumber` = '3111273627',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 647',
`phoneNumber` = '8701402092',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 648',
`phoneNumber` = '7910349490',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 649',
`phoneNumber` = '6082238577',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 650',
`phoneNumber` = '8010265774',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 651',
`phoneNumber` = '6911720562',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 652',
`phoneNumber` = '8624930339',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 653',
`phoneNumber` = '9999167422',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 654',
`phoneNumber` = '7632933018',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 655',
`phoneNumber` = '8578533923',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 656',
`phoneNumber` = '6873961237',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 657',
`phoneNumber` = '1916457201',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 658',
`phoneNumber` = '4746437499',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 659',
`phoneNumber` = '7176322445',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 660',
`phoneNumber` = '3151933933',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 661',
`phoneNumber` = '6794971284',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 662',
`phoneNumber` = '2855464278',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 663',
`phoneNumber` = '6138267105',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 664',
`phoneNumber` = '7858345342',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 665',
`phoneNumber` = '4793715664',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 666',
`phoneNumber` = '5078640866',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 667',
`phoneNumber` = '7627030543',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 668',
`phoneNumber` = '9786661376',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 669',
`phoneNumber` = '6935148271',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 670',
`phoneNumber` = '9321253491',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 671',
`phoneNumber` = '8046347715',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 672',
`phoneNumber` = '6763796084',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 673',
`phoneNumber` = '3337459784',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 674',
`phoneNumber` = '5559143411',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 675',
`phoneNumber` = '8802939993',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 676',
`phoneNumber` = '7167738350',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 677',
`phoneNumber` = '8899540092',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 678',
`phoneNumber` = '2900566004',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 679',
`phoneNumber` = '1520723496',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 680',
`phoneNumber` = '4557316829',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 681',
`phoneNumber` = '3149869468',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 682',
`phoneNumber` = '4245307240',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 683',
`phoneNumber` = '5825898623',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 684',
`phoneNumber` = '8878626601',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 685',
`phoneNumber` = '5071922557',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 686',
`phoneNumber` = '4909680444',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 687',
`phoneNumber` = '3727900282',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 688',
`phoneNumber` = '1263794387',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 689',
`phoneNumber` = '4172476420',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 690',
`phoneNumber` = '3028892973',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 691',
`phoneNumber` = '4884361018',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 692',
`phoneNumber` = '1599002469',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 693',
`phoneNumber` = '8686748934',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 694',
`phoneNumber` = '7250699435',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 695',
`phoneNumber` = '7443114438',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 696',
`phoneNumber` = '3365733344',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 697',
`phoneNumber` = '6175492468',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '3166257780',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 699',
`phoneNumber` = '3205598169',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 700',
`phoneNumber` = '2145178007',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 701',
`phoneNumber` = '9933728982',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 702',
`phoneNumber` = '2308304314',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 703',
`phoneNumber` = '6424389342',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 704',
`phoneNumber` = '9124008103',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 705',
`phoneNumber` = '4633629716',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 706',
`phoneNumber` = '7606785229',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 707',
`phoneNumber` = '8121206356',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 708',
`phoneNumber` = '4359822957',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 709',
`phoneNumber` = '9756838165',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 710',
`phoneNumber` = '6668609406',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 711',
`phoneNumber` = '9973719826',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 712',
`phoneNumber` = '8092794003',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 713',
`phoneNumber` = '2428579930',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 714',
`phoneNumber` = '3522398375',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 715',
`phoneNumber` = '7917455715',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 716',
`phoneNumber` = '6444027613',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 717',
`phoneNumber` = '9235458705',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 718',
`phoneNumber` = '4970041511',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 719',
`phoneNumber` = '3760590660',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 720',
`phoneNumber` = '7934680116',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 721',
`phoneNumber` = '2945578993',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 722',
`phoneNumber` = '8521889784',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 723',
`phoneNumber` = '7587624655',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 724',
`phoneNumber` = '3036637856',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 725',
`phoneNumber` = '3190597848',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 726',
`phoneNumber` = '5391398836',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 727',
`phoneNumber` = '6357279450',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 728',
`phoneNumber` = '1363019086',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 729',
`phoneNumber` = '7115533344',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 730',
`phoneNumber` = '2081957169',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 731',
`phoneNumber` = '5831935113',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 732',
`phoneNumber` = '9801568422',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 733',
`phoneNumber` = '2773055083',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 734',
`phoneNumber` = '3585508016',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 735',
`phoneNumber` = '8743859027',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 736',
`phoneNumber` = '9919102515',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 737',
`phoneNumber` = '9757670446',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 738',
`phoneNumber` = '8547242661',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 739',
`phoneNumber` = '2687857779',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 740',
`phoneNumber` = '8184923425',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 741',
`phoneNumber` = '4424420382',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 742',
`phoneNumber` = '4443482735',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 743',
`phoneNumber` = '4296199786',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 744',
`phoneNumber` = '1508448235',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 745',
`phoneNumber` = '9260811784',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 746',
`phoneNumber` = '2409315475',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 747',
`phoneNumber` = '3927610162',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 748',
`phoneNumber` = '1109787114',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 749',
`phoneNumber` = '8464540128',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6120358136',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 751',
`phoneNumber` = '9664769513',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '9597636820',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 753',
`phoneNumber` = '1401617448',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '6877781750',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>',
`phoneNumber` = '7567281432',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = 'Leif Level 756',
`phoneNumber` = '4573403126',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 757',
`phoneNumber` = '2313667192',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 758',
`phoneNumber` = '6059719427',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 759',
`phoneNumber` = '9529502341',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 760',
`phoneNumber` = '4827813703',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 761',
`phoneNumber` = '8355644514',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 762',
`phoneNumber` = '2406610778',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 763',
`phoneNumber` = '3215150184',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 764',
`phoneNumber` = '6108612420',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 765',
`phoneNumber` = '5475769169',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 766',
`phoneNumber` = '5398787436',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 767',
`phoneNumber` = '9164774901',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 768',
`phoneNumber` = '9553085523',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 769',
`phoneNumber` = '2623636852',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 770',
`phoneNumber` = '8800809695',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 771',
`phoneNumber` = '7653815057',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 772',
`phoneNumber` = '2658189077',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 773',
`phoneNumber` = '2129007754',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 774',
`phoneNumber` = '5771074881',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 775',
`phoneNumber` = '3866930834',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 776',
`phoneNumber` = '8424952720',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 777',
`phoneNumber` = '4604310175',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 778',
`phoneNumber` = '6572289828',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 779',
`phoneNumber` = '1404459467',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 780',
`phoneNumber` = '7119546780',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 781',
`phoneNumber` = '6340594346',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 782',
`phoneNumber` = '4064355550',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 783',
`phoneNumber` = '1081564832',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 784',
`phoneNumber` = '6497512192',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 785',
`phoneNumber` = '4245366868',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 786',
`phoneNumber` = '8245535079',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 787',
`phoneNumber` = '6824978292',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 788',
`phoneNumber` = '7829651384',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 789',
`phoneNumber` = '5095228328',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 790',
`phoneNumber` = '7722693497',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 791',
`phoneNumber` = '1960740924',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 792',
`phoneNumber` = '3938897603',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 793',
`phoneNumber` = '7295223532',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 794',
`phoneNumber` = '2270778284',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 795',
`phoneNumber` = '8092864681',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 796',
`phoneNumber` = '3241044001',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 797',
`phoneNumber` = '9178707189',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 798',
`phoneNumber` = '4352687179',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 799',
`phoneNumber` = '9000551084',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 800',
`phoneNumber` = '3645505218',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 801',
`phoneNumber` = '1661859063',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 802',
`phoneNumber` = '7265186421',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 803',
`phoneNumber` = '2938310963',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 804',
`phoneNumber` = '2412163101',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 805',
`phoneNumber` = '9015230841',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 806',
`phoneNumber` = '8775107423',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 807',
`phoneNumber` = '9818962287',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 808',
`phoneNumber` = '8291641435',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 809',
`phoneNumber` = '7476166226',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 810',
`phoneNumber` = '4953793102',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 811',
`phoneNumber` = '9685126356',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 812',
`phoneNumber` = '8895107350',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 813',
`phoneNumber` = '3106243695',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 814',
`phoneNumber` = '4100928394',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 815',
`phoneNumber` = '3211210283',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 816',
`phoneNumber` = '1832416499',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 817',
`phoneNumber` = '5026986539',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 818',
`phoneNumber` = '7222848537',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 819',
`phoneNumber` = '3287670479',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 820',
`phoneNumber` = '6442381959',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 821',
`phoneNumber` = '6831751965',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 822',
`phoneNumber` = '9537356019',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 823',
`phoneNumber` = '4001784326',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 824',
`phoneNumber` = '1658086869',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 825',
`phoneNumber` = '8872568748',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 826',
`phoneNumber` = '2161242823',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 827',
`phoneNumber` = '1628147319',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 828',
`phoneNumber` = '9720087545',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 829',
`phoneNumber` = '3566184217',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 830',
`phoneNumber` = '4459081561',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 831',
`phoneNumber` = '8175440800',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 832',
`phoneNumber` = '4751519110',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 833',
`phoneNumber` = '2403068535',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 834',
`phoneNumber` = '8823002405',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 835',
`phoneNumber` = '2023327124',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 836',
`phoneNumber` = '6799932664',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 837',
`phoneNumber` = '6557618233',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 838',
`phoneNumber` = '5004886222',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 839',
`phoneNumber` = '2396414436',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 840',
`phoneNumber` = '6757100955',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 841',
`phoneNumber` = '8416028991',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 842',
`phoneNumber` = '9267173473',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 843',
`phoneNumber` = '7846709301',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 844',
`phoneNumber` = '6977129911',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 845',
`phoneNumber` = '9327759877',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 846',
`phoneNumber` = '6107949755',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 847',
`phoneNumber` = '5444263464',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 848',
`phoneNumber` = '9830045594',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 849',
`phoneNumber` = '8340187174',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 850',
`phoneNumber` = '1773337547',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 851',
`phoneNumber` = '7625497989',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 852',
`phoneNumber` = '2415517241',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 853',
`phoneNumber` = '6793804345',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 854',
`phoneNumber` = '9754797796',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 855',
`phoneNumber` = '9660222769',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 856',
`phoneNumber` = '9661121434',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 857',
`phoneNumber` = '3007355514',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 858',
`phoneNumber` = '1658926855',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 859',
`phoneNumber` = '3552989486',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 860',
`phoneNumber` = '4983352397',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 861',
`phoneNumber` = '7951553346',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 862',
`phoneNumber` = '4168513001',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 863',
`phoneNumber` = '9011535254',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 864',
`phoneNumber` = '5384018904',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 865',
`phoneNumber` = '3484202995',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 866',
`phoneNumber` = '3503536352',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 867',
`phoneNumber` = '6922994063',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 868',
`phoneNumber` = '1571760506',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 869',
`phoneNumber` = '2534646578',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 870',
`phoneNumber` = '2720367064',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 871',
`phoneNumber` = '7363920571',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 872',
`phoneNumber` = '4485114248',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 873',
`phoneNumber` = '3334433444',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 874',
`phoneNumber` = '4500663250',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 875',
`phoneNumber` = '3681449501',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 876',
`phoneNumber` = '9321589920',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 877',
`phoneNumber` = '6449400361',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 878',
`phoneNumber` = '6009411456',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>iccum 879',
`phoneNumber` = '3967237474',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 880',
`phoneNumber` = '7075425189',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 881',
`phoneNumber` = '8111281504',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 882',
`phoneNumber` = '7115288117',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 883',
`phoneNumber` = '6426549665',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 884',
`phoneNumber` = '8716711730',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 885',
`phoneNumber` = '3262987480',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 886',
`phoneNumber` = '2386548053',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 887',
`phoneNumber` = '2358154824',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 888',
`phoneNumber` = '3148393824',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 889',
`phoneNumber` = '6762723481',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 890',
`phoneNumber` = '5770406567',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 891',
`phoneNumber` = '7991729767',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME>te 892',
`phoneNumber` = '5504029196',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 893',
`phoneNumber` = '9724462974',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 894',
`phoneNumber` = '8620805068',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 895',
`phoneNumber` = '6269630176',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 896',
`phoneNumber` = '5578648020',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 897',
`phoneNumber` = '5504914899',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 898',
`phoneNumber` = '6231120370',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 899',
`phoneNumber` = '4555642050',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 900',
`phoneNumber` = '8988240843',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 901',
`phoneNumber` = '3608606486',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 902',
`phoneNumber` = '3768088526',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 903',
`phoneNumber` = '3716629455',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 904',
`phoneNumber` = '4997535807',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = 'Arletta Lepore 905',
`phoneNumber` = '1038159638',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 906',
`phoneNumber` = '2292116011',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 907',
`phoneNumber` = '8293617951',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 908',
`phoneNumber` = '6259026073',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 909',
`phoneNumber` = '4954100210',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 910',
`phoneNumber` = '8085754193',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 911',
`phoneNumber` = '1113365355',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 912',
`phoneNumber` = '3680120481',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 913',
`phoneNumber` = '5079354958',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 914',
`phoneNumber` = '6324109908',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 915',
`phoneNumber` = '1115598135',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 916',
`phoneNumber` = '4038496827',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 917',
`phoneNumber` = '7770281186',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 20;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 918',
`phoneNumber` = '3962922588',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 919',
`phoneNumber` = '1526537698',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 920',
`phoneNumber` = '9275630600',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 921',
`phoneNumber` = '4926104130',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 922',
`phoneNumber` = '5528205039',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 923',
`phoneNumber` = '6345817654',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 924',
`phoneNumber` = '3930882419',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 925',
`phoneNumber` = '8540529783',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 926',
`phoneNumber` = '2840371909',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 15;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 927',
`phoneNumber` = '1336323451',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 928',
`phoneNumber` = '1428374979',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 929',
`phoneNumber` = '9112058249',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 0;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 930',
`phoneNumber` = '4835142195',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 931',
`phoneNumber` = '1136452499',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 932',
`phoneNumber` = '9033913923',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 933',
`phoneNumber` = '4743295564',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 934',
`phoneNumber` = '8769213918',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 7;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 935',
`phoneNumber` = '1836393241',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 936',
`phoneNumber` = '5507026080',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 937',
`phoneNumber` = '2264250418',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 938',
`phoneNumber` = '6924330069',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 939',
`phoneNumber` = '7522014560',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 5;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 940',
`phoneNumber` = '7121701300',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 941',
`phoneNumber` = '4705123668',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 942',
`phoneNumber` = '1330966389',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 943',
`phoneNumber` = '7356374392',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 944',
`phoneNumber` = '7207403345',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 11;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 945',
`phoneNumber` = '2575123415',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 17;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 946',
`phoneNumber` = '9326482045',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 947',
`phoneNumber` = '1546304434',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 948',
`phoneNumber` = '6743208212',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 949',
`phoneNumber` = '8050995193',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 950',
`phoneNumber` = '4043418890',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 951',
`phoneNumber` = '9607751097',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 952',
`phoneNumber` = '3467263119',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 14;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 953',
`phoneNumber` = '7901402952',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 16;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 954',
`phoneNumber` = '5870463472',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 955',
`phoneNumber` = '8889811597',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 956',
`phoneNumber` = '2884702370',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 957',
`phoneNumber` = '7844141761',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 29;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 958',
`phoneNumber` = '9270560286',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 959',
`phoneNumber` = '8124334748',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 960',
`phoneNumber` = '8623175740',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 961',
`phoneNumber` = '6867160079',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 962',
`phoneNumber` = '6443725458',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 21;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 963',
`phoneNumber` = '1492869145',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 964',
`phoneNumber` = '3253886204',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 965',
`phoneNumber` = '1957357311',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 4;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 966',
`phoneNumber` = '8041083494',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 967',
`phoneNumber` = '8880626533',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 968',
`phoneNumber` = '1960845690',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 969',
`phoneNumber` = '4975860853',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 970',
`phoneNumber` = '6936469808',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 2;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 971',
`phoneNumber` = '8215002985',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 972',
`phoneNumber` = '5646522834',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 30;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 973',
`phoneNumber` = '1560202203',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 24;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 974',
`phoneNumber` = '3141557300',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 22;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 975',
`phoneNumber` = '7722104318',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 976',
`phoneNumber` = '6066532475',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 3;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 977',
`phoneNumber` = '6331093171',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 978',
`phoneNumber` = '6003227785',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 1;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 979',
`phoneNumber` = '5247694034',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 980',
`phoneNumber` = '9874526244',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 981',
`phoneNumber` = '6840081804',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 982',
`phoneNumber` = '5551470545',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 10;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 983',
`phoneNumber` = '2477882515',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 984',
`phoneNumber` = '2287828936',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 8;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 985',
`phoneNumber` = '7869018218',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 986',
`phoneNumber` = '9420635228',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 12;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 987',
`phoneNumber` = '7341506197',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 25;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 988',
`phoneNumber` = '8964779502',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 9;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 989',
`phoneNumber` = '8010485742',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 6;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 990',
`phoneNumber` = '7699341169',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 991',
`phoneNumber` = '5470218138',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 27;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 992',
`phoneNumber` = '9618229723',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 993',
`phoneNumber` = '2729323482',
`os` = 'iOS',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 26;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 994',
`phoneNumber` = '1910089823',
`os` = 'iOS',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 18;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 995',
`phoneNumber` = '9462737548',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 28;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 996',
`phoneNumber` = '1142645814',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 997',
`phoneNumber` = '3014355069',
`os` = 'Android',
`isPaymentConfirmed` = 0,
`numberOfTickets` = 13;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 998',
`phoneNumber` = '4998238766',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 23;
INSERT INTO `entry` SET
`raffleId` = 2,
`name` = '<NAME> 999',
`phoneNumber` = '4685339602',
`os` = 'Android',
`isPaymentConfirmed` = 1,
`numberOfTickets` = 19;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 1,
`order` = 1;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 2,
`order` = 2;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 3,
`order` = 3;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 4,
`order` = 4;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 5,
`order` = 5;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 6,
`order` = 6;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 7,
`order` = 7;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 8,
`order` = 8;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 9,
`order` = 9;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 10,
`order` = 10;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 11,
`order` = 11;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 12,
`order` = 12;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 14,
`order` = 13;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 15,
`order` = 14;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 16,
`order` = 15;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 18,
`order` = 16;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 19,
`order` = 17;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 20,
`order` = 18;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 21,
`order` = 19;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 23,
`order` = 20;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 24,
`order` = 21;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 26,
`order` = 22;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 28,
`order` = 23;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 29,
`order` = 24;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 30,
`order` = 25;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 31,
`order` = 26;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 32,
`order` = 27;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 33,
`order` = 28;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 36,
`order` = 29;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 37,
`order` = 30;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 38,
`order` = 31;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 39,
`order` = 32;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 40,
`order` = 33;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 41,
`order` = 34;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 42,
`order` = 35;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 43,
`order` = 36;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 44,
`order` = 37;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 45,
`order` = 38;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 48,
`order` = 39;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 50,
`order` = 40;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 51,
`order` = 41;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 52,
`order` = 42;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 53,
`order` = 43;
INSERT INTO `raffleWinner` SET
`raffleId` = 2,
`entryId` = 55,
`order` = 44; |
-- Add repository groups
update gha_repos set repo_group = 'Kubernetes' where name in (
'kubernetes/kubernetes',
'GoogleCloudPlatform/kubernetes',
'kubernetes',
'kubernetes/'
);
update gha_repos set repo_group = 'SIG API Machinery' where name in (
'kubernetes-client/csharp',
'kubernetes-client/gen',
'kubernetes-client/go',
'kubernetes-client/go-base',
'kubernetes-client/haskell',
'kubernetes-client/java',
'kubernetes-client/javascript',
'kubernetes-client/python-base',
'kubernetes-client/ruby',
'kubernetes-incubator/apiserver-builder',
'kubernetes-incubator/client-python',
'kubernetes-sigs/controller-runtime',
'kubernetes-sigs/controller-tools',
'kubernetes-sigs/kube-storage-version-migrator',
'kubernetes-sigs/kubebuilder',
'kubernetes-sigs/structured-merge-diff',
'kubernetes/apiextensions-apiserver',
'kubernetes/apimachinery',
'kubernetes/apiserver',
'kubernetes/client-go',
'kubernetes/code-generator',
'kubernetes/gengo',
'kubernetes/kube-aggregator',
'kubernetes/kube-openapi',
'kubernetes/sample-apiserver',
'kubernetes/sample-controller'
);
update gha_repos set repo_group = 'SIG Apps' where name in (
'kubernetes-sigs/application',
'kubernetes/examples',
'kubernetes/kompose'
);
update gha_repos set repo_group = 'SIG Architecture' where name in (
'kubernetes-incubator/spartakus',
'kubernetes-sigs/architecture-tracking',
'kubernetes/api',
'kubernetes/contrib',
'kubernetes/kubernetes-template-project',
'kubernetes/steering',
'kubernetes/utils'
);
update gha_repos set repo_group = 'SIG Autoscaling' where name in (
'kubernetes-incubator/cluster-proportional-autoscaler',
'kubernetes-incubator/cluster-proportional-vertical-autoscaler',
'kubernetes/autoscaler'
);
update gha_repos set repo_group = 'SIG AWS' where name in (
'kubernetes-sigs/aws-alb-ingress-controller',
'kubernetes-sigs/aws-encryption-provider',
'kubernetes-sigs/aws-iam-authenticator',
'kubernetes/cloud-provider-aws'
);
update gha_repos set repo_group = 'SIG Azure' where name in (
'kubernetes/cloud-provider-azure'
);
update gha_repos set repo_group = 'SIG CLI' where name in (
'kubernetes-sigs/kustomize',
'kubernetes/cli-runtime',
'kubernetes/kubectl',
'kubernetes/sample-cli-plugin'
);
update gha_repos set repo_group = 'SIG Cloud Provider' where name in (
'kubernetes/cloud-provider',
'kubernetes/cloud-provider-gcp',
'kubernetes/cloud-provider-openstack',
'kubernetes/cloud-provider-vsphere'
);
update gha_repos set repo_group = 'SIG Cluster Lifecycle' where name in (
'kubernetes-incubator/bootkube',
'kubernetes-incubator/kube-aws',
'kubernetes-incubator/kubespray',
'kubernetes-sigs/cluster-api',
'kubernetes-sigs/cluster-api-provider-aws',
'kubernetes-sigs/cluster-api-provider-gcp',
'kubernetes-sigs/cluster-api-provider-openstack',
'kubernetes-sigs/kubeadm-dind-cluster',
'kubernetes/kops',
'kubernetes/kube-deploy',
'kubernetes/kubeadm',
'kubernetes/kubernetes-anywhere',
'kubernetes/minikube'
);
update gha_repos set repo_group = 'SIG Contributor Experience' where name in (
'kubernetes-sigs/contributor-playground',
'kubernetes-sigs/contributor-site',
'kubernetes/community',
'kubernetes/k8s.io',
'kubernetes/org',
'kubernetes/repo-infra'
);
update gha_repos set repo_group = 'SIG Docs' where name in (
'kubernetes-incubator/reference-docs',
'kubernetes/kubernetes-docs-ja',
'kubernetes/kubernetes-docs-ko',
'kubernetes/kubernetes-docs-zh',
'kubernetes/website'
);
update gha_repos set repo_group = 'SIG GCP' where name in (
'kubernetes-sigs/gcp-compute-persistent-disk-csi-driver',
'kubernetes-sigs/gcp-filestore-csi-driver'
);
update gha_repos set repo_group = 'SIG Instrumentation' where name in (
'kubernetes-incubator/custom-metrics-apiserver',
'kubernetes-incubator/metrics-server',
'kubernetes/heapster',
'kubernetes/kube-state-metrics',
'kubernetes/metrics'
);
update gha_repos set repo_group = 'SIG Multicluster' where name in (
'GoogleCloudPlatform/k8s-multicluster-ingress',
'kubernetes-sigs/federation-v2',
'kubernetes/cluster-registry',
'kubernetes/federation'
);
update gha_repos set repo_group = 'SIG Network' where name in (
'kubernetes-incubator/external-dns',
'kubernetes-incubator/ip-masq-agent',
'kubernetes/dns',
'kubernetes/ingress-gce',
'kubernetes/ingress-nginx',
'kubernetes/pkg'
);
update gha_repos set repo_group = 'SIG Node' where name in (
'kubernetes-incubator/node-feature-discovery',
'kubernetes-incubator/rktlet',
'kubernetes-sigs/cri-tools',
'kubernetes/frakti',
'kubernetes/node-problem-detector'
);
update gha_repos set repo_group = 'SIG PM' where name in (
'kubernetes/features'
);
update gha_repos set repo_group = 'SIG Release' where name in (
'kubernetes/release',
'kubernetes/sig-release'
);
update gha_repos set repo_group = 'SIG Scalability' where name in (
'kubernetes/perf-tests'
);
update gha_repos set repo_group = 'SIG Scheduling' where name in (
'kubernetes-incubator/cluster-capacity',
'kubernetes-incubator/descheduler',
'kubernetes-sigs/kube-batch',
'kubernetes-sigs/poseidon'
);
update gha_repos set repo_group = 'SIG Service Catalog' where name in (
'kubernetes-incubator/service-catalog'
);
update gha_repos set repo_group = 'SIG Storage' where name in (
'kubernetes-csi/csi-driver-cinder',
'kubernetes-csi/csi-driver-flex',
'kubernetes-csi/csi-driver-host-path',
'kubernetes-csi/csi-driver-iscsi',
'kubernetes-csi/csi-driver-nfs',
'kubernetes-csi/csi-lib-common',
'kubernetes-csi/csi-lib-fc',
'kubernetes-csi/csi-lib-iscsi',
'kubernetes-csi/csi-test',
'kubernetes-csi/docs',
'kubernetes-csi/driver-registrar',
'kubernetes-csi/drivers',
'kubernetes-csi/external-attacher',
'kubernetes-csi/external-provisioner',
'kubernetes-csi/external-snapshotter',
'kubernetes-csi/kubernetes-csi-migration-library',
'kubernetes-csi/kubernetes-csi.github.io',
'kubernetes-csi/livenessprobe',
'kubernetes-incubator/external-storage',
'kubernetes-incubator/nfs-provisioner',
'kubernetes-sigs/sig-storage-lib-external-provisioner',
'kubernetes/csi-api',
'kubernetes/git-sync'
);
update gha_repos set repo_group = 'SIG Testing' where name in (
'kubernetes-sigs/kind',
'kubernetes-sigs/testing_frameworks',
'kubernetes/publishing-bot',
'kubernetes/test-infra'
);
update gha_repos set repo_group = 'SIG UI' where name in (
'kubernetes/dashboard'
);
update gha_repos set repo_group = 'SIG VMware' where name in (
'kubernetes-sigs/cluster-api-provider-vsphere'
);
-- All other unknown repositories should have 'Other' repository group
-- update gha_repos set repo_group = 'Other' where repo_group is null;
-- By default alias is the newest repo name for given repo ID
update
gha_repos r
set
alias = coalesce((
select e.dup_repo_name
from
gha_events e
where
e.repo_id = r.id
order by
e.created_at desc
limit 1
), name)
;
update gha_repos set alias = 'kubernetes/kubernetes' where name like '%kubernetes' or name = 'kubernetes/';
select
repo_group,
count(*) as number_of_repos
from
gha_repos
where
repo_group is not null
group by
repo_group
order by
number_of_repos desc,
repo_group asc;
|
-- Large REDCap Projects
--
-- Requirements
-- This query requires the last_user concept be added via the Report Production Candidates module. See https://github.com/ctsit/report_production_candidates
SELECT rcps.project_id, rcp.app_title, last_user, rcp.purpose, rcp.status, rcp.last_logged_event FROM redcap_project_stats as rcps
inner join redcap_projects as rcp on (rcps.project_id = rcp.project_id)
where rcps.saved_attribute_count > 4000
and rcp.app_title not like "%copy%"
and rcp.app_title not like "% test %"
and rcp.purpose != 0
and rcp.status in (0,1);
|
SELECT number, number / 2 AS n, j1, j2 FROM remote('127.0.0.{2,3}', system.numbers) ANY LEFT JOIN (SELECT number / 3 AS n, number AS j1, 'Hello' AS j2 FROM system.numbers LIMIT 0) USING n LIMIT 10;
SELECT dummy + 2 AS number, number / 2 AS n, j1, j2 FROM remote('127.0.0.{2,3}', system.one) ANY INNER JOIN (SELECT number / 3 AS n, number AS j1, 'Hello' AS j2 FROM system.numbers LIMIT 0) USING n LIMIT 10;
SELECT number, number / 2 AS n, j1, j2 FROM remote('127.0.0.{2,3}', system.numbers) GLOBAL ANY LEFT JOIN (SELECT number / 3 AS n, number AS j1, 'Hello' AS j2 FROM system.numbers LIMIT 0) USING n LIMIT 10;
SELECT dummy + 2 AS number, number / 2 AS n, j1, j2 FROM remote('127.0.0.{2,3}', system.one) GLOBAL ANY INNER JOIN (SELECT number / 3 AS n, number AS j1, 'Hello' AS j2 FROM system.numbers LIMIT 0) USING n LIMIT 10;
|
ALTER TABLE t_user DROP COLUMN encrypted_backup_key; |
<reponame>actiontech/txle<gh_stars>10-100
INSERT INTO `txle_sample_merchant` VALUES (1, 'merchant_1', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (2, 'merchant_2', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (3, 'merchant_3', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (4, 'merchant_4', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (5, 'merchant_5', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (6, 'merchant_6', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (7, 'merchant_7', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (8, 'merchant_8', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (9, 'merchant_9', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (10, 'merchant_10', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (11, 'merchant_11', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (12, 'merchant_12', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (13, 'merchant_13', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (14, 'merchant_14', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (15, 'merchant_15', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (16, 'merchant_16', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (17, 'merchant_17', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (18, 'merchant_18', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (19, 'merchant_19', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (20, 'merchant_20', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (21, 'merchant_21', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (22, 'merchant_22', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (23, 'merchant_23', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (24, 'merchant_24', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (25, 'merchant_25', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (26, 'merchant_26', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (27, 'merchant_27', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (28, 'merchant_28', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (29, 'merchant_29', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (30, 'merchant_30', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (31, 'merchant_31', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (32, 'merchant_32', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (33, 'merchant_33', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (34, 'merchant_34', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (35, 'merchant_35', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (36, 'merchant_36', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (37, 'merchant_37', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (38, 'merchant_38', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (39, 'merchant_39', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (40, 'merchant_40', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (41, 'merchant_41', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (42, 'merchant_42', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (43, 'merchant_43', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (44, 'merchant_44', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (45, 'merchant_45', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (46, 'merchant_46', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (47, 'merchant_47', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (48, 'merchant_48', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (49, 'merchant_49', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (50, 'merchant_50', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (51, 'merchant_51', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (52, 'merchant_52', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (53, 'merchant_53', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (54, 'merchant_54', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (55, 'merchant_55', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (56, 'merchant_56', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (57, 'merchant_57', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (58, 'merchant_58', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (59, 'merchant_59', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (60, 'merchant_60', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (61, 'merchant_61', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (62, 'merchant_62', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (63, 'merchant_63', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (64, 'merchant_64', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (65, 'merchant_65', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (66, 'merchant_66', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (67, 'merchant_67', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (68, 'merchant_68', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (69, 'merchant_69', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (70, 'merchant_70', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (71, 'merchant_71', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (72, 'merchant_72', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (73, 'merchant_73', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (74, 'merchant_74', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (75, 'merchant_75', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (76, 'merchant_76', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (77, 'merchant_77', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (78, 'merchant_78', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (79, 'merchant_79', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (80, 'merchant_80', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (81, 'merchant_81', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (82, 'merchant_82', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (83, 'merchant_83', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (84, 'merchant_84', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (85, 'merchant_85', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (86, 'merchant_86', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (87, 'merchant_87', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (88, 'merchant_88', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (89, 'merchant_89', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (90, 'merchant_90', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (91, 'merchant_91', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (92, 'merchant_92', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (93, 'merchant_93', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (94, 'merchant_94', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (95, 'merchant_95', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (96, 'merchant_96', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (97, 'merchant_97', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (98, 'merchant_98', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (99, 'merchant_99', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (100, 'merchant_100', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (101, 'merchant_101', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (102, 'merchant_102', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (103, 'merchant_103', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (104, 'merchant_104', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (105, 'merchant_105', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (106, 'merchant_106', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (107, 'merchant_107', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (108, 'merchant_108', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (109, 'merchant_109', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (110, 'merchant_110', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (111, 'merchant_111', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (112, 'merchant_112', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (113, 'merchant_113', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (114, 'merchant_114', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (115, 'merchant_115', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (116, 'merchant_116', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (117, 'merchant_117', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (118, 'merchant_118', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (119, 'merchant_119', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (120, 'merchant_120', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (121, 'merchant_121', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (122, 'merchant_122', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (123, 'merchant_123', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (124, 'merchant_124', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (125, 'merchant_125', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (126, 'merchant_126', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (127, 'merchant_127', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (128, 'merchant_128', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (129, 'merchant_129', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (130, 'merchant_130', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (131, 'merchant_131', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (132, 'merchant_132', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (133, 'merchant_133', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (134, 'merchant_134', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (135, 'merchant_135', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (136, 'merchant_136', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (137, 'merchant_137', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (138, 'merchant_138', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (139, 'merchant_139', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (140, 'merchant_140', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (141, 'merchant_141', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (142, 'merchant_142', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (143, 'merchant_143', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (144, 'merchant_144', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (145, 'merchant_145', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (146, 'merchant_146', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (147, 'merchant_147', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (148, 'merchant_148', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (149, 'merchant_149', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (150, 'merchant_150', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (151, 'merchant_151', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (152, 'merchant_152', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (153, 'merchant_153', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (154, 'merchant_154', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (155, 'merchant_155', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (156, 'merchant_156', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (157, 'merchant_157', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (158, 'merchant_158', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (159, 'merchant_159', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (160, 'merchant_160', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (161, 'merchant_161', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (162, 'merchant_162', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (163, 'merchant_163', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (164, 'merchant_164', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (165, 'merchant_165', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (166, 'merchant_166', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (167, 'merchant_167', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (168, 'merchant_168', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (169, 'merchant_169', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (170, 'merchant_170', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (171, 'merchant_171', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (172, 'merchant_172', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (173, 'merchant_173', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (174, 'merchant_174', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (175, 'merchant_175', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (176, 'merchant_176', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (177, 'merchant_177', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (178, 'merchant_178', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (179, 'merchant_179', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (180, 'merchant_180', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (181, 'merchant_181', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (182, 'merchant_182', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (183, 'merchant_183', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (184, 'merchant_184', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (185, 'merchant_185', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (186, 'merchant_186', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (187, 'merchant_187', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (188, 'merchant_188', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (189, 'merchant_189', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (190, 'merchant_190', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (191, 'merchant_191', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (192, 'merchant_192', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (193, 'merchant_193', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (194, 'merchant_194', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (195, 'merchant_195', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (196, 'merchant_196', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (197, 'merchant_197', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (198, 'merchant_198', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (199, 'merchant_199', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (200, 'merchant_200', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (201, 'merchant_201', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (202, 'merchant_202', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (203, 'merchant_203', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (204, 'merchant_204', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (205, 'merchant_205', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (206, 'merchant_206', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (207, 'merchant_207', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (208, 'merchant_208', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (209, 'merchant_209', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (210, 'merchant_210', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (211, 'merchant_211', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (212, 'merchant_212', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (213, 'merchant_213', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (214, 'merchant_214', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (215, 'merchant_215', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (216, 'merchant_216', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (217, 'merchant_217', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (218, 'merchant_218', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (219, 'merchant_219', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (220, 'merchant_220', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (221, 'merchant_221', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (222, 'merchant_222', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (223, 'merchant_223', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (224, 'merchant_224', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (225, 'merchant_225', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (226, 'merchant_226', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (227, 'merchant_227', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (228, 'merchant_228', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (229, 'merchant_229', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (230, 'merchant_230', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (231, 'merchant_231', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (232, 'merchant_232', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (233, 'merchant_233', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (234, 'merchant_234', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (235, 'merchant_235', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (236, 'merchant_236', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (237, 'merchant_237', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (238, 'merchant_238', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (239, 'merchant_239', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (240, 'merchant_240', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (241, 'merchant_241', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (242, 'merchant_242', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (243, 'merchant_243', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (244, 'merchant_244', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (245, 'merchant_245', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (246, 'merchant_246', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (247, 'merchant_247', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (248, 'merchant_248', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (249, 'merchant_249', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (250, 'merchant_250', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (251, 'merchant_251', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (252, 'merchant_252', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (253, 'merchant_253', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (254, 'merchant_254', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (255, 'merchant_255', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (256, 'merchant_256', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (257, 'merchant_257', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (258, 'merchant_258', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (259, 'merchant_259', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (260, 'merchant_260', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (261, 'merchant_261', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (262, 'merchant_262', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (263, 'merchant_263', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (264, 'merchant_264', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (265, 'merchant_265', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (266, 'merchant_266', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (267, 'merchant_267', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (268, 'merchant_268', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (269, 'merchant_269', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (270, 'merchant_270', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (271, 'merchant_271', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (272, 'merchant_272', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (273, 'merchant_273', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (274, 'merchant_274', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (275, 'merchant_275', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (276, 'merchant_276', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (277, 'merchant_277', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (278, 'merchant_278', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (279, 'merchant_279', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (280, 'merchant_280', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (281, 'merchant_281', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (282, 'merchant_282', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (283, 'merchant_283', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (284, 'merchant_284', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (285, 'merchant_285', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (286, 'merchant_286', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (287, 'merchant_287', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (288, 'merchant_288', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (289, 'merchant_289', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (290, 'merchant_290', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (291, 'merchant_291', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (292, 'merchant_292', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (293, 'merchant_293', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (294, 'merchant_294', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (295, 'merchant_295', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (296, 'merchant_296', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (297, 'merchant_297', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (298, 'merchant_298', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (299, 'merchant_299', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (300, 'merchant_300', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (301, 'merchant_301', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (302, 'merchant_302', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (303, 'merchant_303', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (304, 'merchant_304', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (305, 'merchant_305', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (306, 'merchant_306', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (307, 'merchant_307', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (308, 'merchant_308', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (309, 'merchant_309', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (310, 'merchant_310', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (311, 'merchant_311', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (312, 'merchant_312', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (313, 'merchant_313', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (314, 'merchant_314', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (315, 'merchant_315', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (316, 'merchant_316', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (317, 'merchant_317', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (318, 'merchant_318', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (319, 'merchant_319', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (320, 'merchant_320', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (321, 'merchant_321', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (322, 'merchant_322', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (323, 'merchant_323', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (324, 'merchant_324', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (325, 'merchant_325', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (326, 'merchant_326', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (327, 'merchant_327', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (328, 'merchant_328', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (329, 'merchant_329', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (330, 'merchant_330', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (331, 'merchant_331', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (332, 'merchant_332', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (333, 'merchant_333', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (334, 'merchant_334', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (335, 'merchant_335', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (336, 'merchant_336', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (337, 'merchant_337', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (338, 'merchant_338', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (339, 'merchant_339', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (340, 'merchant_340', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (341, 'merchant_341', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (342, 'merchant_342', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (343, 'merchant_343', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (344, 'merchant_344', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (345, 'merchant_345', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (346, 'merchant_346', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (347, 'merchant_347', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (348, 'merchant_348', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (349, 'merchant_349', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (350, 'merchant_350', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (351, 'merchant_351', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (352, 'merchant_352', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (353, 'merchant_353', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (354, 'merchant_354', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (355, 'merchant_355', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (356, 'merchant_356', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (357, 'merchant_357', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (358, 'merchant_358', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (359, 'merchant_359', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (360, 'merchant_360', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (361, 'merchant_361', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (362, 'merchant_362', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (363, 'merchant_363', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (364, 'merchant_364', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (365, 'merchant_365', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (366, 'merchant_366', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (367, 'merchant_367', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (368, 'merchant_368', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (369, 'merchant_369', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (370, 'merchant_370', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (371, 'merchant_371', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (372, 'merchant_372', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (373, 'merchant_373', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (374, 'merchant_374', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (375, 'merchant_375', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (376, 'merchant_376', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (377, 'merchant_377', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (378, 'merchant_378', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (379, 'merchant_379', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (380, 'merchant_380', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (381, 'merchant_381', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (382, 'merchant_382', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (383, 'merchant_383', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (384, 'merchant_384', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (385, 'merchant_385', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (386, 'merchant_386', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (387, 'merchant_387', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (388, 'merchant_388', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (389, 'merchant_389', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (390, 'merchant_390', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (391, 'merchant_391', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (392, 'merchant_392', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (393, 'merchant_393', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (394, 'merchant_394', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (395, 'merchant_395', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (396, 'merchant_396', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (397, 'merchant_397', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (398, 'merchant_398', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (399, 'merchant_399', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (400, 'merchant_400', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (401, 'merchant_401', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (402, 'merchant_402', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (403, 'merchant_403', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (404, 'merchant_404', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (405, 'merchant_405', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (406, 'merchant_406', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (407, 'merchant_407', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (408, 'merchant_408', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (409, 'merchant_409', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (410, 'merchant_410', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (411, 'merchant_411', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (412, 'merchant_412', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (413, 'merchant_413', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (414, 'merchant_414', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (415, 'merchant_415', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (416, 'merchant_416', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (417, 'merchant_417', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (418, 'merchant_418', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (419, 'merchant_419', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (420, 'merchant_420', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (421, 'merchant_421', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (422, 'merchant_422', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (423, 'merchant_423', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (424, 'merchant_424', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (425, 'merchant_425', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (426, 'merchant_426', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (427, 'merchant_427', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (428, 'merchant_428', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (429, 'merchant_429', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (430, 'merchant_430', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (431, 'merchant_431', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (432, 'merchant_432', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (433, 'merchant_433', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (434, 'merchant_434', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (435, 'merchant_435', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (436, 'merchant_436', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (437, 'merchant_437', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (438, 'merchant_438', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (439, 'merchant_439', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (440, 'merchant_440', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (441, 'merchant_441', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (442, 'merchant_442', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (443, 'merchant_443', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (444, 'merchant_444', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (445, 'merchant_445', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (446, 'merchant_446', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (447, 'merchant_447', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (448, 'merchant_448', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (449, 'merchant_449', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (450, 'merchant_450', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (451, 'merchant_451', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (452, 'merchant_452', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (453, 'merchant_453', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (454, 'merchant_454', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (455, 'merchant_455', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (456, 'merchant_456', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (457, 'merchant_457', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (458, 'merchant_458', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (459, 'merchant_459', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (460, 'merchant_460', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (461, 'merchant_461', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (462, 'merchant_462', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (463, 'merchant_463', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (464, 'merchant_464', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (465, 'merchant_465', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (466, 'merchant_466', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (467, 'merchant_467', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (468, 'merchant_468', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (469, 'merchant_469', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (470, 'merchant_470', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (471, 'merchant_471', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (472, 'merchant_472', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (473, 'merchant_473', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (474, 'merchant_474', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (475, 'merchant_475', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (476, 'merchant_476', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (477, 'merchant_477', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (478, 'merchant_478', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (479, 'merchant_479', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (480, 'merchant_480', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (481, 'merchant_481', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (482, 'merchant_482', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (483, 'merchant_483', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (484, 'merchant_484', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (485, 'merchant_485', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (486, 'merchant_486', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (487, 'merchant_487', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (488, 'merchant_488', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (489, 'merchant_489', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (490, 'merchant_490', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (491, 'merchant_491', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (492, 'merchant_492', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (493, 'merchant_493', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (494, 'merchant_494', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (495, 'merchant_495', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (496, 'merchant_496', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (497, 'merchant_497', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (498, 'merchant_498', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (499, 'merchant_499', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (500, 'merchant_500', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (501, 'merchant_501', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (502, 'merchant_502', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (503, 'merchant_503', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (504, 'merchant_504', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (505, 'merchant_505', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (506, 'merchant_506', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (507, 'merchant_507', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (508, 'merchant_508', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (509, 'merchant_509', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (510, 'merchant_510', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (511, 'merchant_511', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (512, 'merchant_512', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (513, 'merchant_513', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (514, 'merchant_514', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (515, 'merchant_515', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (516, 'merchant_516', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (517, 'merchant_517', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (518, 'merchant_518', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (519, 'merchant_519', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (520, 'merchant_520', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (521, 'merchant_521', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (522, 'merchant_522', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (523, 'merchant_523', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (524, 'merchant_524', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (525, 'merchant_525', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (526, 'merchant_526', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (527, 'merchant_527', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (528, 'merchant_528', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (529, 'merchant_529', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (530, 'merchant_530', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (531, 'merchant_531', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (532, 'merchant_532', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (533, 'merchant_533', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (534, 'merchant_534', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (535, 'merchant_535', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (536, 'merchant_536', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (537, 'merchant_537', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (538, 'merchant_538', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (539, 'merchant_539', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (540, 'merchant_540', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (541, 'merchant_541', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (542, 'merchant_542', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (543, 'merchant_543', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (544, 'merchant_544', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (545, 'merchant_545', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (546, 'merchant_546', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (547, 'merchant_547', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (548, 'merchant_548', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (549, 'merchant_549', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (550, 'merchant_550', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (551, 'merchant_551', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (552, 'merchant_552', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (553, 'merchant_553', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (554, 'merchant_554', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (555, 'merchant_555', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (556, 'merchant_556', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (557, 'merchant_557', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (558, 'merchant_558', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (559, 'merchant_559', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (560, 'merchant_560', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (561, 'merchant_561', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (562, 'merchant_562', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (563, 'merchant_563', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (564, 'merchant_564', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (565, 'merchant_565', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (566, 'merchant_566', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (567, 'merchant_567', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (568, 'merchant_568', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (569, 'merchant_569', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (570, 'merchant_570', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (571, 'merchant_571', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (572, 'merchant_572', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (573, 'merchant_573', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (574, 'merchant_574', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (575, 'merchant_575', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (576, 'merchant_576', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (577, 'merchant_577', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (578, 'merchant_578', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (579, 'merchant_579', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (580, 'merchant_580', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (581, 'merchant_581', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (582, 'merchant_582', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (583, 'merchant_583', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (584, 'merchant_584', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (585, 'merchant_585', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (586, 'merchant_586', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (587, 'merchant_587', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (588, 'merchant_588', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (589, 'merchant_589', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (590, 'merchant_590', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (591, 'merchant_591', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (592, 'merchant_592', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (593, 'merchant_593', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (594, 'merchant_594', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (595, 'merchant_595', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (596, 'merchant_596', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (597, 'merchant_597', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (598, 'merchant_598', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (599, 'merchant_599', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (600, 'merchant_600', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (601, 'merchant_601', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (602, 'merchant_602', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (603, 'merchant_603', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (604, 'merchant_604', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (605, 'merchant_605', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (606, 'merchant_606', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (607, 'merchant_607', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (608, 'merchant_608', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (609, 'merchant_609', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (610, 'merchant_610', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (611, 'merchant_611', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (612, 'merchant_612', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (613, 'merchant_613', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (614, 'merchant_614', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (615, 'merchant_615', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (616, 'merchant_616', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (617, 'merchant_617', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (618, 'merchant_618', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (619, 'merchant_619', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (620, 'merchant_620', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (621, 'merchant_621', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (622, 'merchant_622', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (623, 'merchant_623', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (624, 'merchant_624', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (625, 'merchant_625', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (626, 'merchant_626', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (627, 'merchant_627', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (628, 'merchant_628', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (629, 'merchant_629', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (630, 'merchant_630', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (631, 'merchant_631', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (632, 'merchant_632', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (633, 'merchant_633', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (634, 'merchant_634', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (635, 'merchant_635', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (636, 'merchant_636', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (637, 'merchant_637', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (638, 'merchant_638', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (639, 'merchant_639', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (640, 'merchant_640', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (641, 'merchant_641', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (642, 'merchant_642', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (643, 'merchant_643', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (644, 'merchant_644', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (645, 'merchant_645', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (646, 'merchant_646', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (647, 'merchant_647', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (648, 'merchant_648', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (649, 'merchant_649', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (650, 'merchant_650', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (651, 'merchant_651', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (652, 'merchant_652', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (653, 'merchant_653', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (654, 'merchant_654', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (655, 'merchant_655', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (656, 'merchant_656', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (657, 'merchant_657', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (658, 'merchant_658', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (659, 'merchant_659', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (660, 'merchant_660', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (661, 'merchant_661', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (662, 'merchant_662', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (663, 'merchant_663', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (664, 'merchant_664', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (665, 'merchant_665', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (666, 'merchant_666', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (667, 'merchant_667', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (668, 'merchant_668', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (669, 'merchant_669', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (670, 'merchant_670', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (671, 'merchant_671', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (672, 'merchant_672', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (673, 'merchant_673', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (674, 'merchant_674', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (675, 'merchant_675', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (676, 'merchant_676', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (677, 'merchant_677', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (678, 'merchant_678', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (679, 'merchant_679', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (680, 'merchant_680', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (681, 'merchant_681', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (682, 'merchant_682', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (683, 'merchant_683', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (684, 'merchant_684', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (685, 'merchant_685', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (686, 'merchant_686', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (687, 'merchant_687', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (688, 'merchant_688', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (689, 'merchant_689', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (690, 'merchant_690', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (691, 'merchant_691', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (692, 'merchant_692', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (693, 'merchant_693', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (694, 'merchant_694', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (695, 'merchant_695', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (696, 'merchant_696', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (697, 'merchant_697', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (698, 'merchant_698', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (699, 'merchant_699', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (700, 'merchant_700', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (701, 'merchant_701', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (702, 'merchant_702', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (703, 'merchant_703', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (704, 'merchant_704', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (705, 'merchant_705', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (706, 'merchant_706', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (707, 'merchant_707', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (708, 'merchant_708', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (709, 'merchant_709', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (710, 'merchant_710', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (711, 'merchant_711', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (712, 'merchant_712', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (713, 'merchant_713', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (714, 'merchant_714', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (715, 'merchant_715', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (716, 'merchant_716', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (717, 'merchant_717', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (718, 'merchant_718', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (719, 'merchant_719', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (720, 'merchant_720', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (721, 'merchant_721', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (722, 'merchant_722', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (723, 'merchant_723', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (724, 'merchant_724', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (725, 'merchant_725', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (726, 'merchant_726', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (727, 'merchant_727', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (728, 'merchant_728', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (729, 'merchant_729', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (730, 'merchant_730', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (731, 'merchant_731', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (732, 'merchant_732', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (733, 'merchant_733', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (734, 'merchant_734', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (735, 'merchant_735', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (736, 'merchant_736', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (737, 'merchant_737', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (738, 'merchant_738', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (739, 'merchant_739', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (740, 'merchant_740', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (741, 'merchant_741', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (742, 'merchant_742', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (743, 'merchant_743', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (744, 'merchant_744', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (745, 'merchant_745', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (746, 'merchant_746', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (747, 'merchant_747', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (748, 'merchant_748', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (749, 'merchant_749', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (750, 'merchant_750', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (751, 'merchant_751', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (752, 'merchant_752', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (753, 'merchant_753', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (754, 'merchant_754', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (755, 'merchant_755', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (756, 'merchant_756', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (757, 'merchant_757', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (758, 'merchant_758', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (759, 'merchant_759', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (760, 'merchant_760', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (761, 'merchant_761', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (762, 'merchant_762', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (763, 'merchant_763', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (764, 'merchant_764', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (765, 'merchant_765', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (766, 'merchant_766', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (767, 'merchant_767', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (768, 'merchant_768', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (769, 'merchant_769', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (770, 'merchant_770', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (771, 'merchant_771', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (772, 'merchant_772', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (773, 'merchant_773', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (774, 'merchant_774', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (775, 'merchant_775', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (776, 'merchant_776', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (777, 'merchant_777', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (778, 'merchant_778', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (779, 'merchant_779', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (780, 'merchant_780', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (781, 'merchant_781', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (782, 'merchant_782', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (783, 'merchant_783', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (784, 'merchant_784', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (785, 'merchant_785', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (786, 'merchant_786', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (787, 'merchant_787', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (788, 'merchant_788', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (789, 'merchant_789', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (790, 'merchant_790', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (791, 'merchant_791', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (792, 'merchant_792', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (793, 'merchant_793', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (794, 'merchant_794', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (795, 'merchant_795', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (796, 'merchant_796', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (797, 'merchant_797', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (798, 'merchant_798', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (799, 'merchant_799', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (800, 'merchant_800', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (801, 'merchant_801', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (802, 'merchant_802', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (803, 'merchant_803', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (804, 'merchant_804', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (805, 'merchant_805', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (806, 'merchant_806', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (807, 'merchant_807', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (808, 'merchant_808', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (809, 'merchant_809', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (810, 'merchant_810', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (811, 'merchant_811', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (812, 'merchant_812', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (813, 'merchant_813', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (814, 'merchant_814', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (815, 'merchant_815', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (816, 'merchant_816', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (817, 'merchant_817', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (818, 'merchant_818', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (819, 'merchant_819', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (820, 'merchant_820', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (821, 'merchant_821', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (822, 'merchant_822', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (823, 'merchant_823', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (824, 'merchant_824', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (825, 'merchant_825', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (826, 'merchant_826', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (827, 'merchant_827', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (828, 'merchant_828', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (829, 'merchant_829', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (830, 'merchant_830', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (831, 'merchant_831', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (832, 'merchant_832', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (833, 'merchant_833', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (834, 'merchant_834', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (835, 'merchant_835', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (836, 'merchant_836', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (837, 'merchant_837', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (838, 'merchant_838', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (839, 'merchant_839', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (840, 'merchant_840', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (841, 'merchant_841', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (842, 'merchant_842', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (843, 'merchant_843', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (844, 'merchant_844', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (845, 'merchant_845', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (846, 'merchant_846', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (847, 'merchant_847', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (848, 'merchant_848', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (849, 'merchant_849', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (850, 'merchant_850', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (851, 'merchant_851', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (852, 'merchant_852', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (853, 'merchant_853', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (854, 'merchant_854', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (855, 'merchant_855', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (856, 'merchant_856', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (857, 'merchant_857', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (858, 'merchant_858', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (859, 'merchant_859', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (860, 'merchant_860', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (861, 'merchant_861', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (862, 'merchant_862', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (863, 'merchant_863', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (864, 'merchant_864', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (865, 'merchant_865', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (866, 'merchant_866', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (867, 'merchant_867', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (868, 'merchant_868', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (869, 'merchant_869', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (870, 'merchant_870', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (871, 'merchant_871', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (872, 'merchant_872', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (873, 'merchant_873', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (874, 'merchant_874', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (875, 'merchant_875', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (876, 'merchant_876', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (877, 'merchant_877', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (878, 'merchant_878', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (879, 'merchant_879', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (880, 'merchant_880', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (881, 'merchant_881', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (882, 'merchant_882', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (883, 'merchant_883', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (884, 'merchant_884', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (885, 'merchant_885', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (886, 'merchant_886', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (887, 'merchant_887', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (888, 'merchant_888', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (889, 'merchant_889', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (890, 'merchant_890', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (891, 'merchant_891', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (892, 'merchant_892', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (893, 'merchant_893', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (894, 'merchant_894', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (895, 'merchant_895', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (896, 'merchant_896', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (897, 'merchant_897', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (898, 'merchant_898', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (899, 'merchant_899', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (900, 'merchant_900', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (901, 'merchant_901', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (902, 'merchant_902', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (903, 'merchant_903', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (904, 'merchant_904', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (905, 'merchant_905', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (906, 'merchant_906', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (907, 'merchant_907', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (908, 'merchant_908', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (909, 'merchant_909', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (910, 'merchant_910', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (911, 'merchant_911', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (912, 'merchant_912', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (913, 'merchant_913', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (914, 'merchant_914', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (915, 'merchant_915', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (916, 'merchant_916', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (917, 'merchant_917', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (918, 'merchant_918', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (919, 'merchant_919', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (920, 'merchant_920', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (921, 'merchant_921', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (922, 'merchant_922', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (923, 'merchant_923', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (924, 'merchant_924', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (925, 'merchant_925', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (926, 'merchant_926', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (927, 'merchant_927', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (928, 'merchant_928', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (929, 'merchant_929', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (930, 'merchant_930', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (931, 'merchant_931', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (932, 'merchant_932', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (933, 'merchant_933', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (934, 'merchant_934', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (935, 'merchant_935', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (936, 'merchant_936', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (937, 'merchant_937', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (938, 'merchant_938', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (939, 'merchant_939', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (940, 'merchant_940', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (941, 'merchant_941', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (942, 'merchant_942', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (943, 'merchant_943', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (944, 'merchant_944', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (945, 'merchant_945', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (946, 'merchant_946', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (947, 'merchant_947', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (948, 'merchant_948', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (949, 'merchant_949', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (950, 'merchant_950', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (951, 'merchant_951', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (952, 'merchant_952', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (953, 'merchant_953', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (954, 'merchant_954', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (955, 'merchant_955', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (956, 'merchant_956', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (957, 'merchant_957', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (958, 'merchant_958', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (959, 'merchant_959', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (960, 'merchant_960', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (961, 'merchant_961', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (962, 'merchant_962', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (963, 'merchant_963', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (964, 'merchant_964', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (965, 'merchant_965', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (966, 'merchant_966', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (967, 'merchant_967', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (968, 'merchant_968', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (969, 'merchant_969', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (970, 'merchant_970', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (971, 'merchant_971', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (972, 'merchant_972', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (973, 'merchant_973', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (974, 'merchant_974', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (975, 'merchant_975', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (976, 'merchant_976', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (977, 'merchant_977', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (978, 'merchant_978', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (979, 'merchant_979', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (980, 'merchant_980', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (981, 'merchant_981', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (982, 'merchant_982', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (983, 'merchant_983', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (984, 'merchant_984', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (985, 'merchant_985', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (986, 'merchant_986', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (987, 'merchant_987', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (988, 'merchant_988', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (989, 'merchant_989', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (990, 'merchant_990', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (991, 'merchant_991', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (992, 'merchant_992', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (993, 'merchant_993', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (994, 'merchant_994', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (995, 'merchant_995', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (996, 'merchant_996', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (997, 'merchant_997', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (998, 'merchant_998', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (999, 'merchant_999', 0.00000, 1, now());
INSERT INTO `txle_sample_merchant` VALUES (1000, 'merchant_1000', 0.00000, 1, now());
|
----------------------------
------------------ TRIGGERS:
----------------------------
CREATE OR REPLACE FUNCTION muckwork.project_progress() RETURNS TRIGGER AS $$
BEGIN
IF NEW.quoted_at IS NULL THEN
NEW.progress := 'created';
ELSIF NEW.approved_at IS NULL THEN
NEW.progress := 'quoted';
ELSIF NEW.started_at IS NULL THEN
NEW.progress := 'approved';
ELSIF NEW.finished_at IS NULL THEN
NEW.progress := 'started';
ELSE
NEW.progress := 'finished';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS project_progress ON muckwork.projects CASCADE;
CREATE TRIGGER project_progress BEFORE UPDATE OF
quoted_at, approved_at, started_at, finished_at ON muckwork.projects
FOR EACH ROW EXECUTE PROCEDURE muckwork.project_progress();
-- Dates must always exist in this order:
-- created_at, quoted_at, approved_at, started_at, finished_at
CREATE OR REPLACE FUNCTION muckwork.project_dates_in_order() RETURNS TRIGGER AS $$
BEGIN
IF (NEW.approved_at IS NOT NULL AND NEW.quoted_at IS NULL)
OR (NEW.started_at IS NOT NULL AND NEW.approved_at IS NULL)
OR (NEW.finished_at IS NOT NULL AND NEW.started_at IS NULL)
THEN RAISE 'dates_out_of_order';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS project_dates_in_order ON muckwork.projects CASCADE;
CREATE TRIGGER project_dates_in_order BEFORE UPDATE OF
quoted_at, approved_at, started_at, finished_at ON muckwork.projects
FOR EACH ROW EXECUTE PROCEDURE muckwork.project_dates_in_order();
-- can't update existing timestamps
-- not sure what's better: one trigger for all dates, or one trigger per field.
CREATE OR REPLACE FUNCTION muckwork.dates_cant_change_pc() RETURNS TRIGGER AS $$
BEGIN
IF (NEW.created_at IS NOT NULL AND OLD.created_at IS NOT NULL)
THEN RAISE 'dates_cant_change';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS dates_cant_change_pc ON muckwork.projects CASCADE;
CREATE TRIGGER dates_cant_change_pc BEFORE UPDATE OF created_at ON muckwork.projects
FOR EACH ROW EXECUTE PROCEDURE muckwork.dates_cant_change_pc();
CREATE OR REPLACE FUNCTION muckwork.dates_cant_change_pq() RETURNS TRIGGER AS $$
BEGIN
IF (NEW.quoted_at IS NOT NULL AND OLD.quoted_at IS NOT NULL)
THEN RAISE 'dates_cant_change';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS dates_cant_change_pq ON muckwork.projects CASCADE;
CREATE TRIGGER dates_cant_change_pq BEFORE UPDATE OF quoted_at ON muckwork.projects
FOR EACH ROW EXECUTE PROCEDURE muckwork.dates_cant_change_pq();
CREATE OR REPLACE FUNCTION muckwork.dates_cant_change_pa() RETURNS TRIGGER AS $$
BEGIN
IF (NEW.approved_at IS NOT NULL AND OLD.approved_at IS NOT NULL)
THEN RAISE 'dates_cant_change';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS dates_cant_change_pa ON muckwork.projects CASCADE;
CREATE TRIGGER dates_cant_change_pa BEFORE UPDATE OF approved_at ON muckwork.projects
FOR EACH ROW EXECUTE PROCEDURE muckwork.dates_cant_change_pa();
CREATE OR REPLACE FUNCTION muckwork.dates_cant_change_ps() RETURNS TRIGGER AS $$
BEGIN
IF (NEW.started_at IS NOT NULL AND OLD.started_at IS NOT NULL)
THEN RAISE 'dates_cant_change';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS dates_cant_change_ps ON muckwork.projects CASCADE;
CREATE TRIGGER dates_cant_change_ps BEFORE UPDATE OF started_at ON muckwork.projects
FOR EACH ROW EXECUTE PROCEDURE muckwork.dates_cant_change_ps();
CREATE OR REPLACE FUNCTION muckwork.dates_cant_change_pf() RETURNS TRIGGER AS $$
BEGIN
IF (NEW.finished_at IS NOT NULL AND OLD.finished_at IS NOT NULL)
THEN RAISE 'dates_cant_change';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS dates_cant_change_pf ON muckwork.projects CASCADE;
CREATE TRIGGER dates_cant_change_pf BEFORE UPDATE OF finished_at ON muckwork.projects
FOR EACH ROW EXECUTE PROCEDURE muckwork.dates_cant_change_pf();
CREATE OR REPLACE FUNCTION muckwork.dates_cant_change_tc() RETURNS TRIGGER AS $$
BEGIN
IF (NEW.created_at IS NOT NULL AND OLD.created_at IS NOT NULL)
THEN RAISE 'dates_cant_change';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS dates_cant_change_tc ON muckwork.tasks CASCADE;
CREATE TRIGGER dates_cant_change_tc BEFORE UPDATE OF created_at ON muckwork.tasks
FOR EACH ROW EXECUTE PROCEDURE muckwork.dates_cant_change_tc();
CREATE OR REPLACE FUNCTION muckwork.dates_cant_change_tl() RETURNS TRIGGER AS $$
BEGIN
IF (NEW.claimed_at IS NOT NULL AND OLD.claimed_at IS NOT NULL)
THEN RAISE 'dates_cant_change';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS dates_cant_change_tl ON muckwork.tasks CASCADE;
CREATE TRIGGER dates_cant_change_tl BEFORE UPDATE OF claimed_at ON muckwork.tasks
FOR EACH ROW EXECUTE PROCEDURE muckwork.dates_cant_change_tl();
CREATE OR REPLACE FUNCTION muckwork.dates_cant_change_ts() RETURNS TRIGGER AS $$
BEGIN
IF (NEW.started_at IS NOT NULL AND OLD.started_at IS NOT NULL)
THEN RAISE 'dates_cant_change';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS dates_cant_change_ts ON muckwork.tasks CASCADE;
CREATE TRIGGER dates_cant_change_ts BEFORE UPDATE OF started_at ON muckwork.tasks
FOR EACH ROW EXECUTE PROCEDURE muckwork.dates_cant_change_ts();
CREATE OR REPLACE FUNCTION muckwork.dates_cant_change_tf() RETURNS TRIGGER AS $$
BEGIN
IF (NEW.finished_at IS NOT NULL AND OLD.finished_at IS NOT NULL)
THEN RAISE 'dates_cant_change';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS dates_cant_change_tf ON muckwork.tasks CASCADE;
CREATE TRIGGER dates_cant_change_tf BEFORE UPDATE OF finished_at ON muckwork.tasks
FOR EACH ROW EXECUTE PROCEDURE muckwork.dates_cant_change_tf();
CREATE OR REPLACE FUNCTION muckwork.task_progress() RETURNS TRIGGER AS $$
BEGIN
IF NEW.started_at IS NULL THEN
NEW.progress := 'created';
ELSIF NEW.finished_at IS NULL THEN
NEW.progress := 'started';
ELSE
NEW.progress := 'finished';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS task_progress ON muckwork.tasks CASCADE;
CREATE TRIGGER task_progress BEFORE UPDATE OF
started_at, finished_at ON muckwork.tasks
FOR EACH ROW EXECUTE PROCEDURE muckwork.task_progress();
-- Dates must always exist in this order:
-- created_at, started_at, finished_at
CREATE OR REPLACE FUNCTION muckwork.task_dates_in_order() RETURNS TRIGGER AS $$
BEGIN
IF (NEW.finished_at IS NOT NULL AND NEW.started_at IS NULL)
OR (NEW.started_at IS NOT NULL AND NEW.claimed_at IS NULL)
THEN RAISE 'dates_out_of_order';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS task_dates_in_order ON muckwork.tasks CASCADE;
CREATE TRIGGER task_dates_in_order BEFORE UPDATE OF
claimed_at, started_at, finished_at ON muckwork.tasks
FOR EACH ROW EXECUTE PROCEDURE muckwork.task_dates_in_order();
-- tasks.claimed_at and tasks.worker_id must match (both|neither)
-- also means can't update a worker_id to another. have to go NULL inbetween.
CREATE OR REPLACE FUNCTION muckwork.tasks_claimed_pair() RETURNS TRIGGER AS $$
BEGIN
IF (NEW.claimed_at IS NOT NULL AND NEW.worker_id IS NULL)
OR (NEW.worker_id IS NOT NULL AND NEW.claimed_at IS NULL)
OR (NEW.worker_id IS NOT NULL AND OLD.worker_id IS NOT NULL)
THEN RAISE 'tasks_claimed_pair';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS tasks_claimed_pair ON muckwork.tasks CASCADE;
CREATE TRIGGER tasks_claimed_pair BEFORE UPDATE OF
worker_id, claimed_at ON muckwork.tasks
FOR EACH ROW EXECUTE PROCEDURE muckwork.tasks_claimed_pair();
-- can't claim a task unless it's approved
CREATE OR REPLACE FUNCTION muckwork.only_claim_approved_task() RETURNS TRIGGER AS $$
BEGIN
IF (OLD.progress != 'approved') THEN
RAISE 'only_claim_approved_task';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS only_claim_approved_task ON muckwork.tasks CASCADE;
CREATE TRIGGER only_claim_approved_task
BEFORE UPDATE OF worker_id ON muckwork.tasks
FOR EACH ROW WHEN (NEW.worker_id IS NOT NULL)
EXECUTE PROCEDURE muckwork.only_claim_approved_task();
-- Controversial business rule: can't claim a task unless available
CREATE OR REPLACE FUNCTION muckwork.only_claim_when_done() RETURNS TRIGGER AS $$
BEGIN
IF muckwork.is_worker_available(NEW.worker_id) IS FALSE THEN
RAISE 'only_claim_when_done';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS only_claim_when_done ON muckwork.tasks CASCADE;
CREATE TRIGGER only_claim_when_done
BEFORE UPDATE OF worker_id ON muckwork.tasks
FOR EACH ROW WHEN (NEW.worker_id IS NOT NULL)
EXECUTE PROCEDURE muckwork.only_claim_when_done();
-- can't delete started projects or tasks
CREATE OR REPLACE FUNCTION muckwork.no_delete_started() RETURNS TRIGGER AS $$
BEGIN
IF OLD.started_at IS NOT NULL
THEN RAISE 'no_delete_started';
END IF;
RETURN OLD;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS no_delete_started_project ON muckwork.projects CASCADE;
CREATE TRIGGER no_delete_started_project BEFORE DELETE ON muckwork.projects
FOR EACH ROW EXECUTE PROCEDURE muckwork.no_delete_started();
DROP TRIGGER IF EXISTS no_delete_started_task ON muckwork.tasks CASCADE;
CREATE TRIGGER no_delete_started_task BEFORE DELETE ON muckwork.tasks
FOR EACH ROW EXECUTE PROCEDURE muckwork.no_delete_started();
-- can't update title, description of quoted project
CREATE OR REPLACE FUNCTION muckwork.no_update_quoted_project() RETURNS TRIGGER AS $$
BEGIN
IF OLD.quoted_at IS NOT NULL
THEN RAISE 'no_update_quoted';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS no_update_quoted_project ON muckwork.projects CASCADE;
CREATE TRIGGER no_update_quoted_project BEFORE UPDATE OF
title, description ON muckwork.projects
FOR EACH ROW EXECUTE PROCEDURE muckwork.no_update_quoted_project();
-- can't update title, description of started task
CREATE OR REPLACE FUNCTION muckwork.no_update_started_task() RETURNS TRIGGER AS $$
BEGIN
IF OLD.started_at IS NOT NULL
THEN RAISE 'no_update_started';
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS no_update_started_task ON muckwork.tasks CASCADE;
CREATE TRIGGER no_update_started_task BEFORE UPDATE OF
title, description ON muckwork.tasks
FOR EACH ROW EXECUTE PROCEDURE muckwork.no_update_started_task();
-- first task started marks project as started (see reverse below)
CREATE OR REPLACE FUNCTION muckwork.task_starts_project() RETURNS TRIGGER AS $$
BEGIN
UPDATE muckwork.projects SET started_at=NOW()
WHERE id=OLD.project_id AND started_at IS NULL;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS task_starts_project ON muckwork.tasks CASCADE;
CREATE TRIGGER task_starts_project AFTER UPDATE OF started_at ON muckwork.tasks
FOR EACH ROW WHEN (NEW.started_at IS NOT NULL)
EXECUTE PROCEDURE muckwork.task_starts_project();
-- only started task un-started marks project as un-started
CREATE OR REPLACE FUNCTION muckwork.task_unstarts_project() RETURNS TRIGGER AS $$
DECLARE
pi integer;
BEGIN
SELECT project_id INTO pi FROM muckwork.tasks
WHERE project_id=OLD.project_id
AND started_at IS NOT NULL LIMIT 1;
IF pi IS NULL THEN
UPDATE muckwork.projects SET started_at=NULL WHERE id=OLD.project_id;
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS task_unstarts_project ON muckwork.tasks CASCADE;
CREATE TRIGGER task_unstarts_project AFTER UPDATE OF started_at ON muckwork.tasks
FOR EACH ROW WHEN (NEW.started_at IS NULL)
EXECUTE PROCEDURE muckwork.task_unstarts_project();
-- last task finished marks project as finished (see reverse below)
CREATE OR REPLACE FUNCTION muckwork.task_finishes_project() RETURNS TRIGGER AS $$
DECLARE
pi integer;
BEGIN
-- any unfinished tasks left for this project?
SELECT project_id INTO pi FROM muckwork.tasks
WHERE project_id=OLD.project_id
AND finished_at IS NULL LIMIT 1;
-- ... if not, then mark project as finished_at time of last finished_at task
IF pi IS NULL THEN
UPDATE muckwork.projects SET finished_at =
(SELECT MAX(finished_at) FROM tasks WHERE project_id=OLD.project_id)
WHERE id=OLD.project_id AND finished_at IS NULL;
END IF;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS task_finishes_project ON muckwork.tasks CASCADE;
CREATE TRIGGER task_finishes_project AFTER UPDATE OF finished_at ON muckwork.tasks
FOR EACH ROW WHEN (NEW.finished_at IS NOT NULL)
EXECUTE PROCEDURE muckwork.task_finishes_project();
-- last finished task un-finished marks project as un-finished again
CREATE OR REPLACE FUNCTION muckwork.task_unfinishes_project() RETURNS TRIGGER AS $$
BEGIN
UPDATE muckwork.projects SET finished_at=NULL
WHERE id=OLD.project_id AND finished_at IS NOT NULL;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS task_unfinishes_project ON muckwork.tasks CASCADE;
CREATE TRIGGER task_unfinishes_project AFTER UPDATE OF finished_at ON muckwork.tasks
FOR EACH ROW WHEN (NEW.finished_at IS NULL)
EXECUTE PROCEDURE muckwork.task_unfinishes_project();
-- task finished creates worker_charge (see reverse below)
CREATE OR REPLACE FUNCTION muckwork.task_creates_charge() RETURNS TRIGGER AS $$
BEGIN
WITH x AS (
SELECT NEW.id AS task_id, muckwork.worker_charge_for_task(NEW.id) AS money)
INSERT INTO muckwork.worker_charges (task_id, money) SELECT * FROM x;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS task_creates_charge ON muckwork.tasks CASCADE;
CREATE TRIGGER task_creates_charge AFTER UPDATE OF finished_at ON muckwork.tasks
FOR EACH ROW WHEN (NEW.finished_at IS NOT NULL)
EXECUTE PROCEDURE muckwork.task_creates_charge();
-- task UN-finished deletes associated charge
CREATE OR REPLACE FUNCTION muckwork.task_uncreates_charge() RETURNS TRIGGER AS $$
BEGIN
DELETE FROM muckwork.worker_charges WHERE task_id = NEW.id;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS task_uncreates_charge ON muckwork.tasks CASCADE;
CREATE TRIGGER task_uncreates_charge AFTER UPDATE OF finished_at ON muckwork.tasks
FOR EACH ROW WHEN (NEW.finished_at IS NULL)
EXECUTE PROCEDURE muckwork.task_uncreates_charge();
-- approving project makes tasks approved
CREATE OR REPLACE FUNCTION muckwork.approve_project_tasks() RETURNS TRIGGER AS $$
BEGIN
UPDATE muckwork.tasks SET progress='approved'
WHERE project_id=OLD.id;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS approve_project_tasks ON muckwork.projects CASCADE;
CREATE TRIGGER approve_project_tasks AFTER UPDATE OF approved_at ON muckwork.projects
FOR EACH ROW WHEN (NEW.approved_at IS NOT NULL)
EXECUTE PROCEDURE muckwork.approve_project_tasks();
-- UN-approving project makes tasks UN-approved
CREATE OR REPLACE FUNCTION muckwork.unapprove_project_tasks() RETURNS TRIGGER AS $$
BEGIN
UPDATE muckwork.tasks SET progress='quoted'
WHERE project_id=OLD.id;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS unapprove_project_tasks ON muckwork.projects CASCADE;
CREATE TRIGGER unapprove_project_tasks AFTER UPDATE OF approved_at ON muckwork.projects
FOR EACH ROW WHEN (NEW.approved_at IS NULL)
EXECUTE PROCEDURE muckwork.unapprove_project_tasks();
-- project finished creates charge
-- SOME DAY: fixed vs hourly (& hey maybe I should profit?)
CREATE OR REPLACE FUNCTION muckwork.project_creates_charge() RETURNS TRIGGER AS $$
BEGIN
UPDATE muckwork.projects
SET final_money = muckwork.final_project_charges(NEW.id)
WHERE id = NEW.id;
INSERT INTO muckwork.client_charges (project_id, money)
VALUES (NEW.id, muckwork.final_project_charges(NEW.id));
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS project_creates_charge ON muckwork.projects CASCADE;
CREATE TRIGGER project_creates_charge AFTER UPDATE OF finished_at ON muckwork.projects
FOR EACH ROW WHEN (NEW.finished_at IS NOT NULL)
EXECUTE PROCEDURE muckwork.project_creates_charge();
-- project UN-finished UN-creates charge
CREATE OR REPLACE FUNCTION muckwork.project_uncreates_charge() RETURNS TRIGGER AS $$
BEGIN
UPDATE muckwork.projects SET final_money = NULL WHERE id = NEW.id;
DELETE FROM muckwork.client_charges WHERE project_id = NEW.id;
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS project_uncreates_charge ON muckwork.projects CASCADE;
CREATE TRIGGER project_uncreates_charge AFTER UPDATE OF finished_at ON muckwork.projects
FOR EACH ROW WHEN (NEW.finished_at IS NULL)
EXECUTE PROCEDURE muckwork.project_uncreates_charge();
-- get the sortid for the tasks
CREATE OR REPLACE FUNCTION muckwork.auto_sortid() RETURNS TRIGGER AS $$
DECLARE
i integer;
BEGIN
SELECT COALESCE(MAX(sortid), 0) INTO i
FROM muckwork.tasks WHERE project_id=NEW.project_id;
NEW.sortid = (i + 1);
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
DROP TRIGGER IF EXISTS auto_sortid ON muckwork.tasks CASCADE;
CREATE TRIGGER auto_sortid BEFORE INSERT ON muckwork.tasks
FOR EACH ROW WHEN (NEW.sortid IS NULL)
EXECUTE PROCEDURE muckwork.auto_sortid();
-- template
-- CREATE OR REPLACE FUNCTION muckwork.xx() RETURNS TRIGGER AS $$
-- BEGIN
-- RETURN NEW;
-- END;
-- $$ LANGUAGE plpgsql;
-- DROP TRIGGER IF EXISTS xx ON muckwork.projects CASCADE;
-- CREATE TRIGGER xx AFTER UPDATE OF yy ON muckwork.projects
-- FOR EACH ROW WHEN (NEW.yy IS NULL)
-- EXECUTE PROCEDURE muckwork.xx();
|
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1:3306
-- Generation Time: Jun 30, 2021 at 01:43 PM
-- Server version: 5.7.21
-- PHP Version: 7.2.4
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: `employee_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `employee`
--
DROP TABLE IF EXISTS `employee`;
CREATE TABLE IF NOT EXISTS `employee` (
`employeeId` int(11) NOT NULL AUTO_INCREMENT,
`employeeCode` varchar(255) DEFAULT NULL,
`employeeName` varchar(255) DEFAULT NULL,
`employeeDepartment` varchar(255) DEFAULT NULL,
`employeeAge` int(11) DEFAULT NULL,
`experienceInOrganization` float DEFAULT NULL,
`addedDate` datetime DEFAULT CURRENT_TIMESTAMP,
`addedBy` varchar(255) DEFAULT NULL,
`updatedDate` datetime DEFAULT CURRENT_TIMESTAMP,
`updatedBy` varchar(255) DEFAULT NULL,
`employeeStatus` varchar(255) DEFAULT NULL,
PRIMARY KEY (`employeeId`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
DROP TABLE IF EXISTS `users`;
CREATE TABLE IF NOT EXISTS `users` (
`userId` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) DEFAULT NULL,
`password` varchar(255) DEFAULT NULL,
`addedDate` datetime DEFAULT CURRENT_TIMESTAMP,
`addedBy` varchar(255) DEFAULT NULL,
`userStatus` varchar(255) NOT NULL,
PRIMARY KEY (`userId`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`userId`, `username`, `password`, `addedDate`, `addedBy`, `userStatus`) VALUES
(1, '<EMAIL>', '<PASSWORD>', '2021-06-30 19:12:53', 'admin', 'active');
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 */;
|
CREATE function SQL_SalesAvg15D (@xcase int,@mat nvarchar(18),@NEng nvarchar(40))
returns nvarchar(Max)
as
begin
declare @sql nvarchar(max),@sql1 nvarchar(max)
set @sql1 =
case @xcase
when 1 then ',mcomp, mplant_location,mplant_salezone '
when 2 then ',mplant_location,mplant_salezone '
when 3 then ',mcomp, mplant_salezone '
when 4 then ',mcomp, mplant_location '
when 5 then ',mcomp '
when 6 then ',mplant_location '
when 7 then ',mplant_salezone '
when 8 then ''
end
set @sql = ''
set @sql += 'select mmatno '
set @sql += @sql1
set @sql += ',sum(AvgQty) as AvgRolling ' + char(13)
set @sql += 'into ##tmpSalesAvg15D ' + Char(13)
set @sql += 'from SalesAvg15D ' + char(13)
set @sql += 'group by mmatno'
set @sql += @sql1
return @sql
end |
<gh_stars>0
CREATE FUNCTION [SqlNet].[StringInsert]
(@text NVARCHAR (MAX), @startIndex INT, @value NVARCHAR (MAX))
RETURNS NVARCHAR (MAX)
AS
EXTERNAL NAME [SqlNet].[Sql.Net.Types.StringType].[StringInsert]
|
<gh_stars>0
DROP TABLE IF EXISTS `test_064`; |
CREATE TABLE IF NOT EXISTS checklists (
todo_id INT PRIMARY KEY,
name VARCHAR(255),
cost DECIMAL (7,2),
initiated_on VARCHAR(255),
is_completed INT NOT NULL DEFAULT 0
);
CREATE TABLE IF NOT EXISTS products (
product_id INT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
description VARCHAR(2000),
list_price DECIMAL(9, 2),
category_id INT NOT NULL
);
CREATE TABLE IF NOT EXISTS customers (
customer_id INT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
address VARCHAR(255),
website VARCHAR(255),
credit_limit DECIMAL(8, 2)
);
INSERT INTO checklists (todo_id, name, cost, initiated_on, is_completed) VALUES (1, 'Riddikulus', 2468.7947760776037, '2020-10-14', 0);
INSERT INTO customers (customer_id, name, address, website, credit_limit) VALUES (1, '<NAME>', '06042 M<NAME>', 'www.joi-kovacek.org', 994.4532890340373);
INSERT INTO products (product_id, name, description, list_price, category_id) VALUES (1, '<NAME>', 'Revelio', 392.90350373743536, 78);
INSERT INTO checklists (todo_id, name, cost, initiated_on, is_completed) VALUES (2, '<NAME>', 6627.287051442771, '2021-07-15', 0);
INSERT INTO customers (customer_id, name, address, website, credit_limit) VALUES (2, 'Olive Branch', '871 Julienne Village', 'www.don-volkman.com', 487.9727555420489);
INSERT INTO products (product_id, name, description, list_price, category_id) VALUES (2, '<NAME>', 'Stupefy', 52.42882687553496, 128);
INSERT INTO checklists (todo_id, name, cost, initiated_on, is_completed) VALUES (3, 'Accio', 8221.695123669071, '2021-05-06', 0);
INSERT INTO customers (customer_id, name, address, website, credit_limit) VALUES (3, '<NAME>', '0603 <NAME>', 'www.weldon-grimes.info', 199.47094880456552);
INSERT INTO products (product_id, name, description, list_price, category_id) VALUES (3, '<NAME>', 'Wingardium Leviosa', 273.36538748807305, 169);
INSERT INTO checklists (todo_id, name, cost, initiated_on, is_completed) VALUES (4, 'Expelliarmus', 385.0942933193769, '2020-10-17', 0);
INSERT INTO customers (customer_id, name, address, website, credit_limit) VALUES (4, '<NAME>', '792 Marlon Trail', 'www.jordon-weber.io', 750.9615994846445);
INSERT INTO products (product_id, name, description, list_price, category_id) VALUES (4, '<NAME>', 'Revelio', 282.55613672491836, 46);
INSERT INTO checklists (todo_id, name, cost, initiated_on, is_completed) VALUES (5, 'Reparo', 4995.210265482756, '2020-11-25', 0);
INSERT INTO customers (customer_id, name, address, website, credit_limit) VALUES (5, '<NAME>', '27337 Ruthann Gateway', 'www.sanford-bahringer.biz', 689.8734707812316);
INSERT INTO products (product_id, name, description, list_price, category_id) VALUES (5, '<NAME>', 'Sectumsempra', 332.2931192763568, 64);
INSERT INTO checklists (todo_id, name, cost, initiated_on, is_completed) VALUES (6, 'Alohomora', 3994.0201089761076, '2021-07-25', 0);
INSERT INTO customers (customer_id, name, address, website, credit_limit) VALUES (6, '<NAME>', '537 Tillman Shores', 'www.lenna-becker.io', 286.4570578401441);
INSERT INTO products (product_id, name, description, list_price, category_id) VALUES (6, '<NAME>', 'Alohomora', 40.194957852705194, 18);
INSERT INTO checklists (todo_id, name, cost, initiated_on, is_completed) VALUES (7, '<NAME>', 283.7472721678892, '2021-09-07', 0);
INSERT INTO customers (customer_id, name, address, website, credit_limit) VALUES (7, '<NAME>', '7099 Tracy Burgs', 'www.ivory-gottlieb.co', 889.5657610080436);
INSERT INTO products (product_id, name, description, list_price, category_id) VALUES (7, '<NAME>', 'Confundo', 322.2071744673652, 105);
INSERT INTO checklists (todo_id, name, cost, initiated_on, is_completed) VALUES (8, 'Confundo', 2255.0997707718316, '2021-06-06', 0);
INSERT INTO customers (customer_id, name, address, website, credit_limit) VALUES (8, '<NAME>', '15983 Skiles Vista', 'www.long-hahn.biz', 132.73012383878216);
INSERT INTO products (product_id, name, description, list_price, category_id) VALUES (8, 'Helen Highwater', 'Riddikulus', 476.4651907884161, 131);
INSERT INTO checklists (todo_id, name, cost, initiated_on, is_completed) VALUES (9, 'Expelliarmus', 1031.8426638451076, '2020-11-19', 0);
INSERT INTO customers (customer_id, name, address, website, credit_limit) VALUES (9, '<NAME>', '37657 Bednar Field', 'www.tammy-fay.biz', 736.3256583856308);
INSERT INTO products (product_id, name, description, list_price, category_id) VALUES (9, '<NAME>', 'Expelliarmus', 186.76726968938968, 90);
INSERT INTO checklists (todo_id, name, cost, initiated_on, is_completed) VALUES (10, 'Obliviate', 4669.960405095531, '2020-10-16', 0);
INSERT INTO customers (customer_id, name, address, website, credit_limit) VALUES (10, 'Emerald Stone', '677 Rhett Burg', 'www.cleo-bradtke.name', 472.2989757060925);
INSERT INTO products (product_id, name, description, list_price, category_id) VALUES (10, 'Ricky T. Ladder', 'Alohomora', 221.4974217305628, 202); |
<filename>migrations/0003_extend_game_session.up.sql<gh_stars>0
ALTER TABLE game_sessions
ADD COLUMN deposit VARCHAR(64) NOT NULL DEFAULT '0.0000 BET',
ADD COLUMN last_update NUMERIC NOT NULL DEFAULT 0,
ADD COLUMN player_win_amount VARCHAR(64) DEFAULT NULL; |
/*========================================================================================================================
-- Description: Determining the SET options for the current session in SQL Server
-- Scope: Session
-- Author: <NAME>, Madeira Data Solutions
-- Create Date: 07/11/2021
-- Last Update: 07/11/2021
-- Applies To: SQL Server (all versions), Azure SQL Database, Azure SQL Managed Instance
=========================================================================================================================*/
DECLARE @SetOptions AS INT = @@OPTIONS;
SELECT
OptionName = OptionName ,
OptionValue =
CASE
WHEN BitLocation = @SetOptions & BitLocation
THEN N'ON'
ELSE
N'OFF'
END ,
OptionDescription = OptionDescription
FROM
(
VALUES
(N'DISABLE_DEF_CNST_CHK' , 1 , N'Controls interim or deferred constraint checking') ,
(N'IMPLICIT_TRANSACTIONS' , 2 , N'For dblib network library connections, controls whether a transaction is started implicitly when a statement is executed. The IMPLICIT_TRANSACTIONS setting has no effect on ODBC or OLEDB connections.') ,
(N'CURSOR_CLOSE_ON_COMMIT' , 4 , N'Controls behavior of cursors after a commit operation has been performed') ,
(N'ANSI_WARNINGS' , 8 , N'Controls truncation and NULL in aggregate warnings') ,
(N'ANSI_PADDING' , 16 , N'Controls padding of fixed-length variables') ,
(N'ANSI_NULLS' , 32 , N'Controls NULL handling when using equality operators') ,
(N'ARITHABORT' , 64 , N'Terminates a query when an overflow or divide-by-zero error occurs during query execution') ,
(N'ARITHIGNORE' , 128 , N'Returns NULL when an overflow or divide-by-zero error occurs during a query') ,
(N'QUOTED_IDENTIFIER' , 256 , N'Differentiates between single and double quotation marks when evaluating an expression') ,
(N'NOCOUNT' , 512 , N'Turns off the message returned at the end of each statement that states how many rows were affected') ,
(N'ANSI_NULL_DFLT_ON' , 1024 , N'Alters the session''s behavior to use ANSI compatibility for nullability. New columns defined without explicit nullability are defined to allow nulls.') ,
(N'ANSI_NULL_DFLT_OFF' , 2048 , N'Alters the session''s behavior not to use ANSI compatibility for nullability. New columns defined without explicit nullability do not allow nulls.') ,
(N'CONCAT_NULL_YIELDS_NULL' , 4096 , N'Returns NULL when concatenating a NULL value with a string') ,
(N'NUMERIC_ROUNDABORT' , 8192 , N'Generates an error when a loss of precision occurs in an expression') ,
(N'XACT_ABORT' , 16384 , N'Rolls back a transaction if a Transact-SQL statement raises a run-time error')
)
AS
SetOptions (OptionName , BitLocation , OptionDescription)
ORDER BY
BitLocation ASC;
GO
|
-- Eg. psql -h 127.0.0.1 -U meteo -d vocab -f views.sql
set search_path = contr_vocab_db, public;
-- Types
drop view if exists rdf;
drop view if exists rdf_types;
create view rdf_types as
select classification_scheme_name as subject,
'rdf:type'::varchar as predicate,
'skos:ConceptScheme'::varchar as object
from classification_scheme_table
union all
-- is this a category, concept or top concept?
-- how do we identify the topConcept ?
-- select classification_scheme_category_name as subject,
-- 'rdf:type'::varchar as predicate,
-- 'skos:Category ?'::varchar as object
-- from classification_scheme_category_table
-- Not convinced we even need the association table.
select c.classification_scheme_category_name as subject,
'rdf:type'::varchar as predicate,
'skos:TopConcept'::varchar as object
from classification_scheme_category_table c
join classification_scheme_association_table a
on c.classification_scheme_category_id = a.classification_scheme_category_id
where a.parent_category_code is null
-- where a.hierarchy_level = '1'
;
-- CONCEPT SCHEME
DONE
drop view if exists dc_publisher;
create view dc_publisher as
select
c.classification_scheme_name as subject,
'dc:publisher'::varchar as predicate,
p.person_name as object
from classification_scheme_table c
join person_table p on c.person_id = p.person_id
;
DONE
drop view if exists dc_title;
create view dc_title as
select
classification_scheme_name as subject,
'dc:title'::varchar as predicate,
classification_scheme_title as object
from classification_scheme_table
;
drop view if exists dc_description;
create view dc_description as
select
classification_scheme_name as subject,
'dc:description'::varchar as predicate,
classification_scheme_description as object
from classification_scheme_table
;
-- TOP CONCEPT
drop view if exists skos_definition;
create view skos_definition as
select
classification_scheme_category_name as subject,
'skos:definition'::varchar as predicate,
classification_scheme_category_description as object
from classification_scheme_category_table;
;
drop view if exists dcterms_issued;
create view dcterms_issued as
select
classification_scheme_category_name as subject,
'dcterms:issued'::varchar as predicate,
date_added::varchar as object -- do we really want to do this cast?
from classification_scheme_category_table;
;
---- It might be possible to avoid the union, and instead do
---- left joins ?
--- several ways to do this ...
--- actually using some explain's it looks pretty good
-- psql -h 127.0.0.1 -U meteo -d vocab -c 'explain select * from contr_vocab_db. rdf where predicate = $$dcterms:issued$$ '
create view rdf as
select * from dc_title
union all select * from dc_publisher
union all select * from dc_description
union all select * from skos_definition
union all select * from dcterms_issued
order by predicate;
;
|
CREATE TABLE Job(
Job_ID int PRIMARY KEY NOT NULL IDENTITY(1000,1),
Start_Location varchar(50),
End_Location varchar(50),
Job_Date datetime,
Load_ID int FOREIGN KEY REFERENCES Load(Load_ID),
Customer_ID int FOREIGN KEY REFERENCES Customer(Customer_ID)
);
|
<gh_stars>0
CREATE TABLE [Valid].[LLDDandHealthProblem] (
[UKPRN] INT NOT NULL,
[LearnRefNumber] VARCHAR (12) NOT NULL,
[LLDDCat] INT NOT NULL,
[PrimaryLLDD] INT NULL,
[LLDDandHealthProblem_ID] BIGINT NOT NULL,
PRIMARY KEY CLUSTERED ([UKPRN], [LearnRefNumber], [LLDDCat],[LLDDandHealthProblem_ID])
);
GO
ALTER TABLE [Valid].[LLDDandHealthProblem] ADD CONSTRAINT [FK_LLDDandHealthProblem_Learner] FOREIGN KEY([UKPRN], [LearnRefNumber])
REFERENCES [Valid].[Learner] ([UKPRN], [LearnRefNumber]);
GO
ALTER TABLE [Valid].[LLDDandHealthProblem] CHECK CONSTRAINT [FK_LLDDandHealthProblem_Learner];
GO |
-- phpMyAdmin SQL Dump
-- version 4.5.0.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 17, 2016 at 06:40 PM
-- Server version: 5.6.21-log
-- PHP Version: 5.6.11
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: `svnpqa`
--
-- --------------------------------------------------------
--
-- Table structure for table `access_action`
--
CREATE TABLE `access_action` (
`id` int(10) NOT NULL COMMENT '主键',
`uri` varchar(100) COLLATE utf8_bin DEFAULT '' COMMENT '权限控制URI',
`desc` tinytext COLLATE utf8_bin NOT NULL COMMENT 'action 描述当前action功能'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='action';
--
-- Dumping data for table `access_action`
--
INSERT INTO `access_action` (`id`, `uri`, `desc`) VALUES
(45, '*', 'root');
-- --------------------------------------------------------
--
-- Table structure for table `repository`
--
CREATE TABLE `repository` (
`id` int(10) UNSIGNED NOT NULL,
`address` tinytext NOT NULL COMMENT '地址',
`user` varchar(50) NOT NULL COMMENT '用户名',
`password` varchar(50) NOT NULL COMMENT '密码',
`update_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='资源库';
--
-- Dumping data for table `repository`
--
INSERT INTO `repository` (`id`, `address`, `user`, `password`, `update_time`, `create_time`) VALUES
(2, 'http://192.168.127.12/svn/chinaerp/trunk/www', 'sasumi', '123456', '2015-12-23 02:20:30', '2015-12-22 01:50:33'),
(3, 'http://192.168.127.12/svn/chinaerp/trunk/frontend', 'sasumi', '123456', '2015-12-23 02:20:30', '2015-12-22 01:50:33');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(11) NOT NULL,
`user_group_id` int(10) NOT NULL COMMENT '用户组',
`name` varchar(32) NOT NULL COMMENT '用户名',
`password` varchar(32) NOT NULL COMMENT '密码',
`real_name` varchar(45) NOT NULL COMMENT '真实姓名',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`last_login_time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT '最后登录时间',
`last_login_ip` varchar(15) NOT NULL DEFAULT '' COMMENT '最后登录IP',
`state` enum('0','1') NOT NULL DEFAULT '0' COMMENT '状态(禁用,启用)'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户';
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `user_group_id`, `name`, `password`, `real_name`, `create_time`, `update_time`, `last_login_time`, `last_login_ip`, `state`) VALUES
(2, 1, 'admin', '<PASSWORD>', '123', '0000-00-00 00:00:00', '2015-11-30 07:45:10', '2015-10-27 20:16:43', '', '1'),
(3, 2, 'user00', '<PASSWORD>', '<PASSWORD>', '0000-00-00 00:00:00', '2015-11-30 07:46:20', '2015-10-27 20:54:26', '', '1');
-- --------------------------------------------------------
--
-- Table structure for table `user_group`
--
CREATE TABLE `user_group` (
`id` int(10) NOT NULL,
`name` varchar(40) NOT NULL COMMENT '组名',
`description` tinytext COMMENT '描述',
`state` enum('0','1') NOT NULL DEFAULT '0' COMMENT '状态(禁用,启用)'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用户组';
--
-- Dumping data for table `user_group`
--
INSERT INTO `user_group` (`id`, `name`, `description`, `state`) VALUES
(1, '管理员', '管理员\r\n', '1'),
(2, '部门管理员', 'test', '1');
-- --------------------------------------------------------
--
-- Table structure for table `user_group_auth`
--
CREATE TABLE `user_group_auth` (
`id` int(10) NOT NULL COMMENT '主键',
`user_group_id` int(10) NOT NULL COMMENT '用户组',
`action_id` int(10) NOT NULL COMMENT '权限',
`type` enum('0','1') NOT NULL DEFAULT '0' COMMENT '类型(白名单,黑名单)'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户组权限';
--
-- Dumping data for table `user_group_auth`
--
INSERT INTO `user_group_auth` (`id`, `user_group_id`, `action_id`, `type`) VALUES
(24, 1, 45, '0');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `access_action`
--
ALTER TABLE `access_action`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `repository`
--
ALTER TABLE `repository`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_group`
--
ALTER TABLE `user_group`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_group_auth`
--
ALTER TABLE `user_group_auth`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `access_action`
--
ALTER TABLE `access_action`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '主键', AUTO_INCREMENT=46;
--
-- AUTO_INCREMENT for table `repository`
--
ALTER TABLE `repository`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `user_group`
--
ALTER TABLE `user_group`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `user_group_auth`
--
ALTER TABLE `user_group_auth`
MODIFY `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '主键', AUTO_INCREMENT=25;
/*!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 */;
|
-- phpMyAdmin SQL Dump
-- version 4.8.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 04, 2018 at 03:47 AM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.4
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: `appleshop`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(11) NOT NULL,
`username` varchar(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`password` varchar(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '',
`name` varchar(128) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`admin_group_id` int(64) NOT NULL,
`permissions` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`id`, `username`, `password`, `name`, `admin_group_id`, `permissions`) VALUES
(1, 'hotanmy', '<PASSWORD>', '<PASSWORD>', 1, ''),
(2, 'tanmy', '<PASSWORD>2', '<NAME>', 2, ''),
(3, 'admincp', '02c4a5285150c832039c36cc1982bc92', 'admin cpanel', 0, '{\"admin\":[\"index\",\"add\",\"edit\",\"delete\"],\"categories\":[\"index\"],\"products\":[\"index\"],\"news\":[\"index\"],\"order\":[\"index\"],\"transaction\":[\"index\"],\"slide\":[\"index\"],\"support\":[\"index\"],\"contact\":[\"index\"]}');
-- --------------------------------------------------------
--
-- Table structure for table `admin_group`
--
CREATE TABLE `admin_group` (
`id` int(11) NOT NULL,
`name` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`sort_order` tinyint(4) NOT NULL DEFAULT '0',
`permissions` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `admin_group`
--
INSERT INTO `admin_group` (`id`, `name`, `sort_order`, `permissions`) VALUES
(1, 'Admin', 1, 'a:14:{s:4:\"tran\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:13:\"product_order\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:3:\"cat\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:7:\"product\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:11:\"admin_group\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:5:\"admin\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:4:\"user\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:4:\"news\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:4:\"info\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:7:\"support\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:7:\"contact\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:7:\"comment\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:5:\"slide\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:5:\"video\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}}'),
(2, 'Mod', 2, 'a:9:{s:3:\"cat\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:7:\"product\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:4:\"news\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:4:\"info\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:7:\"support\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:7:\"contact\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:7:\"comment\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:5:\"slide\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}s:5:\"video\";a:2:{i:0;s:4:\"list\";i:1;s:6:\"change\";}}');
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` int(11) NOT NULL,
`name` varchar(128) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`site_title` varchar(128) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`meta_desc` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`meta_key` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`parent_id` int(11) NOT NULL DEFAULT '0',
`sort_order` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `name`, `site_title`, `meta_desc`, `meta_key`, `parent_id`, `sort_order`) VALUES
(1, 'iPhone', 'iphone', '', '', 0, 1),
(2, 'iPad', 'ipad', '', '', 0, 2),
(3, 'Mac', 'mac', '', '', 0, 3),
(4, 'iPhone 7', 'iphone-7', '', '', 1, 1),
(5, 'iPhone 8', 'iphone-8', '', '', 1, 2),
(6, 'iPhone X', 'iphone-x', '', '', 1, 3),
(7, 'iPad Pro', 'ipad-pro', '', '', 2, 1),
(8, 'iPad Air', 'ipad-air', '', '', 2, 2),
(9, 'iPad Mini', 'ipad-mini', '', '', 2, 3),
(10, 'iMac Pro Retina', 'imac-pro-retina', '', '', 3, 1),
(11, 'Macbook Pro Retina', 'macbook-pro-retina', '', '', 3, 2),
(12, 'Macbook Air', 'macbook-air', '', '', 3, 3);
-- --------------------------------------------------------
--
-- Table structure for table `comment`
--
CREATE TABLE `comment` (
`id` int(255) NOT NULL,
`product_id` int(255) NOT NULL,
`parent_id` int(255) NOT NULL,
`user_name` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`user_email` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`user_id` int(11) NOT NULL,
`user_ip` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`content` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`created` date NOT NULL,
`count_like` int(255) NOT NULL,
`status` tinyint(2) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `comment`
--
INSERT INTO `comment` (`id`, `product_id`, `parent_id`, `user_name`, `user_email`, `user_id`, `user_ip`, `content`, `created`, `count_like`, `status`) VALUES
(1, 7, 0, '<NAME>', '<EMAIL>', 0, '', 'San pham noi con khong admin? ', '0000-00-00', 10, 1),
(2, 7, 1, '<NAME>', '<EMAIL>', 0, '', 'San pham nay van con hang', '0000-00-00', 3, 1),
(3, 7, 0, 'abc', '<EMAIL>', 0, '', 'Test comment ', '0000-00-00', 8, 1);
-- --------------------------------------------------------
--
-- Table structure for table `contact`
--
CREATE TABLE `contact` (
`id` int(128) NOT NULL,
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`content` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`created` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `contact`
--
INSERT INTO `contact` (`id`, `name`, `email`, `content`, `phone`, `created`) VALUES
(1, '<NAME>', '<EMAIL>', 'Shop hay tư vấn mình mua hàng nhé!', '0986829823', '2018-05-20'),
(2, '<NAME>', '<EMAIL>', 'Shop có bán hàng trả góp không? Liên hệ tôi qua số điện thooại để tư vấn rõ nhé', '0909331442', '2018-05-20'),
(3, '<PASSWORD>', '<EMAIL>', 'admin test contact', '0964082598', '2018-05-20');
-- --------------------------------------------------------
--
-- Table structure for table `info`
--
CREATE TABLE `info` (
`id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`content` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`meta_desc` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`meta_key` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`created` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `menu`
--
CREATE TABLE `menu` (
`id` int(11) NOT NULL,
`parent_id` int(255) NOT NULL,
`title` varchar(128) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`url` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`sort_order` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `news`
--
CREATE TABLE `news` (
`id` int(11) NOT NULL,
`title` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`short_desc` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`content` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`meta_desc` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`meta_key` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`image_link` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`created` date NOT NULL,
`view_count` int(11) NOT NULL DEFAULT '0',
`site_title` varchar(256) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `news`
--
INSERT INTO `news` (`id`, `title`, `short_desc`, `content`, `meta_desc`, `meta_key`, `image_link`, `created`, `view_count`, `site_title`) VALUES
(5, 'Trải nghiệm nhanh ASUS ZenBook Flip 14', 'ZenBook Flip UX461UA là phiên bản mới nhất của dòng ZenBook Flip 14\", sở hữu thiết kế mới đạt giải thưởng RedDot Design Award và cấu hình mới với vi xử lý Core I thế hệ 8 tiết kiệm điện nhưng 4 nhân', '<p><a href=\"https://tinhte.vn/tags/zenbook-flip-ux461ua/\">ZenBook Flip UX461UA</a> là phiên bản mới nhất của dòng ZenBook Flip 14", sở hữu thiết kế mới đạt giải thưởng RedDot Design Award và cấu hình mới với vi xử lý Core I thế hệ 8 tiết kiệm điện nhưng 4 nhân, mang lại hiệu năng tốt hơn và đáp ứng được nhu cầu sử dụng đa dạng hơn. UX461UA cũng là dòng ZenBook Flip đầu tiên được ASUS tặng kèm bút cảm ứng. Nay mình mượn được phiên bản cơ bản của dòng máy này, giá bán khoảng 27 triệu và mời anh em xem qua.</p>\r\n\r\n<p><br />\r\nZenBook Flip là dòng máy tính lai với thiết kế màn hình xoay 360 độ (<a href=\"https://tinhte.vn/tags/laptop-convertible/\">laptop convertible</a>) và ASUS cung cấp nhiều kích cỡ màn hình từ 13,3" đến 14", 15,6". Trong phân khúc laptop lai thì mình thấy 13,3" - 14" là phù hợp nhất bởi tính di động của nó vẫn cao, việc xoay lật màn hình để sử dụng ở chế độ máy tính bảng vẫn thoải mái hơn nhiều so với kích thước 15,6" hơi đặc thù. </p>\r\n\r\n<p>ZenBook Flip UX461UA được thiết kế theo triết lý Zen - một ngôn ngữ thiết kế được ASUS sử dụng từ lâu, kết hợp giữa nhôm, họa tiết vòng tròn đồng tâm và phần cứng mạnh mẽ bên trong một thân hình mỏng, nhẹ. ZenBook Flip UX461UA cũng được chế tạo theo mô tuýp này với vỏ full nhôm, trọng lượng chỉ 1,4 kg với màn hình 14" cảm ứng.</p>\r\n\r\n<p>Nắp máy thiết kế đặc trưng của ZenBook với logo ASUS chính giữa cùng vân tròn đồng tâm tỏa ra. Tuy nhiên, ZenBook Flip UX461UA vẫn có nét riêng so với phiên bản trước đó là phần nắp máy này giờ đã vuông và phẳng hơn, không còn bo cong ôm cong lên màn hình quá nhiều. Tại các cạnh ASUS bo cong nhẹ sau đó vát diamond, từ đó khiến chiếc máy trông cứng cáp và hiện đại hơn. </p>\r\n\r\n<p>Bản lề của ZenBook Flip UX461UA dạng bản lề kép thường thấy trên những chiếc máy convertible như HP Envy x360 hay Dell Inspiron 2 in 1 nhưng ASUS đã cải tiến đôi chút để mang lại trải nghiệm mới mẻ hơn. Khi mở nắp máy ra một góc trên 90 độ thì cạnh dưới màn hình sẽ tì xuống bàn, bản lề vẫn không mở phẳng ra hoàn toàn từ đó nâng bàn phím lên một chút để tạo độ nghiêng, giúp chúng ta gõ phím tự nhiên hơn. ASUS gọi thiết kế bản lề này là ErgoLift - nâng công thái học.<br />\r\n <br />\r\nKhu vực phía trên đáy máy có các khe lấy gió, kết hợp với thiết kế bản lề nâng ErgoLift rất hợp lý khi máy có thêm không gian để lấy khí bên ngoài làm mát cho linh kiện bên trong. Hệ thống tản nhiệt nằm ở cạnh trái máy với một quạt.</p>\r\n\r\n<p>Nói đến các cạnh thì ZenBook Flip UX461UA có độ mỏng 13,9 mm, một độ mỏng tương đối đối với máy tính màn hình xoay và đủ không giản để tích hợp nhiều cổng kết nối từ cũ đến mới. Như tại cạnh trái ngoài khe tản nhiệt còn có cổng USB 3.1 Gen1 (USB-A), nút tăng giảm âm lượng, nút nguồn. Cạnh phải có thêm khe đọc thẻ microSD, USB 3.1 Gen1 (USB-C), jack âm thanh 3,5 mm 2 trong 1, thêm một cổng USB 3.1 Gen1 (USB-A) nữa, HDMI và cổng nguồn.<br />\r\n<br />\r\nTrang bị cổng kết nối trên ZenBook Flip UX461UA có thể nói là khá đầy đủ. Riêng mình không thích khe đọc thẻ microSD, khe SD tiêu chuẩn vẫn hay hơn. Thêm nữa là máy vẫn dùng cổng sạc tròn thay vì USB-C, năm 2018 rồi nhưng ASUS vẫn chậm thay đổi điều này trên dòng ZenBook cao cấp của mình, rất đáng tiếc. </p>\r\n\r\n<p>Bên trong ZenBook Flip UX461UA là màn hình 14" với thiết kế viền mỏng NanoEdge 7,15 mm ở 2 bên, tỉ lệ màn hình với thân máy là 80%. Tuy nhiên thực sự mà nói thì phần viền này vẫn còn dày hơn khoảng 1 mm so với chiếc ZenBook UX430 mà mình từng <a href=\"https://tinhte.vn/tags/danh-gia/\">đánh giá</a> cách đây không lâu, chiếc UX430 vẫn mỏng ấn tượng hơn. </p>\r\n\r\n<p>Phủ toàn bộ màn hình là một lớp kính và dĩ nhiên là màn hình cảm ứng hỗ trợ 10 điểm cùng với bút cảm ứng ASUS Pen. Đây cũng là dòng máy đầu tiên được ASUS tặng kèm bút cảm ứng, cây bút này dùng công nghệ của Wacom nhưng đáng tiếc nó chỉ hỗ trợ 1024 cấp độ lực. Trải nghiệm thực tế mình thấy bút có độ trễ lớn, thành ra nó chỉ phù hợp để ghi chú, vẽ vời sơ sơ thôi, không thể làm đồ họa chuyên nghiệp được. Dù sao vẫn rất đáng khen cho ASUS ở điểm này, có bút còn hơn không <img alt=\":D\" src=\"https://tinhte.vn/styles/default/xenforo/clear.png\" />. </p>\r\n\r\n<p>Có một điều phát sinh khi sử dụng ở chế độ máy tính bảng đó là bản lề không giữ chắc màn hình khi gập lại. Mình thường cầm máy chỗ có logo ASUS dưới màn hình bằng tay trái, cầm hơi chắc một chút tức là đặt lên một lực thì màn hình và thân máy sẽ hở ra 1 khoảng, không khép sát vào nhau được. </p>\r\n\r\n<p>Màn hình dùng tấm nền của BOEhydis, mã tấm nền NV140FHM-N62, loại tấm nền IPS với độ phân giải FHD. ASUS công bố tấm nền có độ sáng tối đa 300 nit, tương phản 1000:1, độ bao phủ 100% sRGB và 72% NTSC. Mình kiểm tra lại bằng Spyder4Elite thì độ sáng màn hình cao nhất ở 260 nit, trung bình 233 nit, độ tương phản 700:1 ở độ sáng tối đa và 13050:1 ở độ sáng thấp nhất. Khả năng tái tạo màu đen (black level) rất tốt ở tỉ lệ 0.34 với độ sáng tối đa và 0.15 ở độ sáng 50%. </p>\r\n\r\n<p>Độ bao phủ màu sắc của màn hình mình đo 2 lần bằng Spyder4Elite thì kết quả là dải màu Adobe RGB đạt độ bao phủ 72 - 73%, 68% NTSC và 94% sRGB. Như vậy độ bao phủ dải màu này khá gần với con số được ASUS công bố. Tuy nhiên, chiếc màn hình này khi mới nhìn vào có thể nhận ra nó hơi ám xanh và kiểm tra Delta-E thì độ sai lệch của màu xanh đậm lên đến 6.8, trong khi màu xanh nhạt như da trời vẫn có tỉ lệ 0.61. Các màu sắc còn lại chỉ có độ sai lệch từ 0.29 đến 1.32, dưới 2. Thật sự rất tiếc khi màn hình này ám xanh khiến màu sắc trở nên khá lạnh. Có một điều khiến mình ngạc nhiên là gamma mặc định của màn hình bám rất sát với thang gamma 2.2 tiêu chuẩn nhưng white point vẫn cao, ở mức 7800K. </p>\r\n\r\n<p>Độ sáng không quá cao nhưng đáp ứng được hầu hết các tình huống sử dụng, dùng ngoài trời thì không lý lắm tưởng bởi màn hình gương phản chiếu mạnh. Độ tương phản của màn hình chỉ ở mức gần 700:1, nếu tăng đến 1000:1 như con số mà ASUS đưa ra thì trải nghiệm hình ảnh sẽ còn hút mắt hơn. </p>\r\n\r\n<p>Mình chỉ đo ra để biết được chất lượng hiển thị cụ thể của nó ra sao còn với số đông người dùng chọn mua chiếc máy này thì mình nghĩ những thông số về white point hay Delta-E không cần thiết. Chỉ những ai cần làm đồ họa chuyên nghiệp hay in ấn thì mới quan tâm nhiều đến các chỉ số này thôi. Nhìn chung, màn hình của <a href=\"https://tinhte.vn/tags/asus-zenbook-flip-ux461ua/\">ASUS ZenBook Flip UX461UA</a> tốt với dải màu sắc rộng, màu đen đã mắt và góc nhìn rộng, rất phù hợp với nhu cầu làm việc văn phòng hay giải trí với phim ảnh. </p>\r\n\r\n<p>Về âm thanh, ZenBook Flip UX461UA có 2 loa đặt tại mặt dưới, gần rìa 2 bên máy và âm thanh đầu ra lớn, rất ấn tượng. Hệ thống loa này được tinh chỉnh bởi Harman/Kardon, nhờ đó âm thanh đạt được sự cân bằng, treble cao, mid rõ, các dải khi mở tối đa âm lượng ít rối và bass ít, phẳng, đặc điểm chung của dàn loa trên những chiếc laptop mỏng. </p>\r\n\r\n<p>Bàn phím của ZenBook Flip UX461UA có layout quen thuộc của những chiếc laptop 14" đến từ ASUS, không có phím số, các phím kích thước lớn, khoảng cách phím dàn trải, các phím điều hướng lớn và hành trình phím 1,5 mm. Trải nghiệm gõ phím trên chiếc ZenBook Flip UX461UA thoải mái, mình đặt tay vào gõ ngay lần đầu với 10fastfingers được 118 WPM, sai chỉ 6 từ tiếng Việt. Cảm giác gõ tốt nhờ độ nẩy của phím cao, hành trình hợp lý và xương phím chắc chắn không bị rung lắc khi gõ nhanh. Có một điều mình không thích là vỉ phím hơi flex do lớp nhôm này mỏng. Khi gõ nhanh mình có cảm giác lún ở giữa bàn phím nhưng nhìn chung vẫn gõ ngon lành, không ảnh hưởng quá nhiều đến trải nghiệm gõ phím. </p>\r\n\r\n<p>Bàn phím hỗ trợ đèn nền backlit 3 mức sáng, ánh sáng tỏa ra đều và dịu, dễ chịu khi sử dụng trong môi trường tối hoàn toàn. </p>\r\n\r\n<p>Bàn rê của ZenBook Flip UX461UA có kích thước lớn, chiều ngang hơn 10 cm và được làm rất rất tốt. Thực sự trên dòng ZenBook gần đây thì mình thấy bàn rê con nào cũng đã được ASUS nâng cấp với bề mặt phủ kính cho độ rít thấp, tăng cảm giác chạm và độ mượt khi thao tác đa điểm và hỗ trợ driver Microsoft Precision Touchpad cho độ trễ thấp khi thao tác. 2 phím chuột được tích hợp bên dưới bàn rê có hành trình vừa phải, dễ bấm. Ngoài ra cảm biến vân tay 1 chạm còn được tích hợp trên góc phải bàn rê, tốc độ nhận diện nhanh mà anh em có thể thấy trong video.<br />\r\n<br />\r\n<strong>Cấu hình của ZenBook Flip UX461UA và hiệu năng ra sao?</strong><br />\r\n<br />\r\nVào thời điểm này thì ASUS đã nâng cấp cấu hình mới cho hàng loạt các phiên bản dòng ZenBook và UX461UA cũng tương tự với CPU Intel Core I thế hệ 8, dòng ULV nhưng 4 nhân 8 luồng, nhờ đó mang lại trải nghiệm tốt hơn đáng kể so với dòng Core I thế hệ 7 với chỉ 2 nhân 4 luồng. Cụ thể cấu hình:</p>\r\n\r\n<ul>\r\n <li>CPU: Intel <a href=\"https://tinhte.vn/tags/core-i5-8250u/\">Core i5-8250U</a> (Kaby Lake Refresh), 4 nhân 8 luồng, 1,6 GHz > 3,4 GHz (Turbo Boost), 6 MB Cache, TDP 15 W;</li>\r\n <li>GPU: Intel UHD Graphics 620 1,10 GHz;</li>\r\n <li>RAM: 8 GB DDR3-2133 chạy dual-channel, hàn chết trên bo và không có khe SO-DIMM để nâng cấp;</li>\r\n <li>SSD: 512 GB SanDisk SD8SN8U M.2 SATA;</li>\r\n <li>OS: Windows 10 Home 64-bit bản quyền.</li>\r\n</ul>\r\n\r\n<p><br />\r\nCấu hình của ZenBook Flip UX461UA có thể đáp ứng tốt nhu cầu làm việc văn phòng, chạy đa nhiệm một vài ứng dụng và giải trí nhẹ nhàng. Điều mình thích là ổ SSD 512 GB, dù là ổ SATA 6 Gbps nhưng đây vẫn là trang bị hợp lý, cân đối giữa nhu cầu lưu trữ và tốc độ. Chiếc ổ này có tốc độ khá tốt với tốc độ đọc tuần tự 557,8 MB/s, ghi tuần tự 532,8 MB/s. Tốc độ truy xuất tập tin cỡ nhỏ ngẫu nhiên cũng rất tốt, lần lượt đọc/ghi là 239,8 MB/s và 258,7 MB/s. Tốc độ này cùng với vi xử lý 4 nhân Core i5-8250U mang lại trải nghiệm nhanh, mượt mà khi tao tác với các tác vụ văn phòng thông thường. Mình cũng thường dùng trình duyệt Edge trên ZenBook Flip UX461UA để tận dụng màn hình cảm ứng và cây bút. Với 5 6 tab thì không thành vấn đề với ZenBook Flip UX461UA nhưng nếu chuyển sang Chrome thì bộ nhớ sẽ bị ăn mất khá đáng kể nếu chúng ta mở nhiều tab.</p>\r\n', 'ZenBook Flip UX461UA là phiên bản mới nhất của dòng ZenBook Flip 14\", sở hữu thiết kế mới đạt giải thưởng RedDot Design Award và cấu hình mới với vi xử lý Core I thế hệ 8 tiết kiệm điện nhưng 4 nhân', 'ZenBook Flip UX461UA', 'asus.jpg', '2018-05-01', 0, 'trai-nghiem-nhanh-asus-zenbook-flip-14-cau-hinh-van-phong');
-- --------------------------------------------------------
--
-- Table structure for table `order`
--
CREATE TABLE `order` (
`transaction_id` int(255) NOT NULL,
`id` int(255) NOT NULL,
`product_id` int(255) NOT NULL,
`qty` int(11) NOT NULL DEFAULT '0',
`amount` decimal(15,4) NOT NULL DEFAULT '0.0000',
`data` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`status` int(4) NOT NULL,
`createdDate` date DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `order`
--
INSERT INTO `order` (`transaction_id`, `id`, `product_id`, `qty`, `amount`, `data`, `status`, `createdDate`) VALUES
(1, 1, 22, 1, '17500.0000', '', 2, NULL),
(2, 2, 20, 1, '5500.0000', '', 1, NULL),
(3, 3, 22, 1, '17500.0000', '', 1, NULL),
(3, 4, 21, 1, '10000.0000', '', 1, NULL),
(3, 5, 20, 1, '5500.0000', '', 1, NULL),
(4, 6, 22, 5, '87500.0000', '', 0, NULL),
(5, 7, 22, 1, '17500.0000', '', 0, NULL),
(6, 8, 22, 2, '35000.0000', '', 0, NULL),
(7, 9, 25, 2, '29400.0000', '', 0, NULL),
(7, 10, 20, 2, '11000.0000', '', 0, NULL),
(7, 11, 23, 3, '52500.0000', '', 0, NULL),
(8, 12, 22, 1, '17500.0000', '', 0, NULL),
(8, 13, 25, 1, '14700.0000', '', 0, NULL),
(10, 14, 26, 1, '7000000.0000', '', 0, '2018-06-04');
-- --------------------------------------------------------
--
-- Table structure for table `product`
--
CREATE TABLE `product` (
`id` int(255) NOT NULL,
`categories_id` int(11) NOT NULL,
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`price` decimal(15,4) NOT NULL DEFAULT '0.0000',
`content` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`discount` int(11) NOT NULL,
`image_link` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`image_list` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`created` date NOT NULL,
`view` int(11) NOT NULL DEFAULT '0',
`meta_key` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`site_title` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`warranty` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`quantity` int(255) NOT NULL,
`buyed` int(255) NOT NULL,
`rate_total` int(255) NOT NULL,
`rate_count` int(255) NOT NULL,
`gifts` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`meta_desc` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `product`
--
INSERT INTO `product` (`id`, `categories_id`, `name`, `price`, `content`, `discount`, `image_link`, `image_list`, `created`, `view`, `meta_key`, `site_title`, `warranty`, `quantity`, `buyed`, `rate_total`, `rate_count`, `gifts`, `meta_desc`) VALUES
(20, 10, 'iMac 5K 27-inch 2017 i5 8GB Ram 1TB', '8900000.0000', '<h3>Chi tiết sản phẩm</h3>\r\n\r\n<p> </p>\r\n\r\n<p>Trải nghiệm trên iMac chưa bao giờ chững lại. Qua từng năm, iMac luôn được cải tiến cả về phần cứng lẫn phần mềm để nâng cao trải nghiệm người dùng lên mức cao nhất. Và thế hệ iMac 2017 cũng vậy, một cỗ máy tính bàn mang sức mạnh đáng kinh ngạc đã sẵn sàng trên bàn làm việc của bạn.</p>\r\n\r\n<p> </p>\r\n\r\n<h3>TỐC ĐỘ XỬ LÝ TUYỆT VỜI</h3>\r\n\r\n<p>Nhanh hơn và mạnh hơn, iMac thế hệ 2017 giờ đây được trang bị vi xử lý Intel thế hệ thứ 7 cùng bộ xử lý đồ họa Redeon Pro hiệu năng vượt trội. Kết hợp với ổ cứng Fusion Drive (trên các model iMac Retina), tốc độ truy xuất dữ liệu cũng nhanh hơn đáng kể, thời gian làm việc với các tác vụ xử lý nặng cũng được rút ngắn hơn bao giờ hết.</p>\r\n\r\n<p> </p>\r\n\r\n<h3>MÀN HÌNH RETINA HOẢN HẢO </h3>\r\n\r\n<p>Chất lượng của màn hình Retina trên các thế hệ máy Macbook hay iMac là điều không cần bàn cãi. Nay với khả năng hiển thị đến 1 tỉ màu, độ sáng đạt 500 nits, những hình ảnh đồ họa trên iMac luôn ở mức chân thực nhất. Các đoạn văn bản cũng hiển thị cực sắc nét, nhờ đó mà tệp tài liệu của bạn trông chuyên nghiệp hơn. Tất cả những thứ ấy đều nằm gọn trong tấm màn hình có độ mỏng chỉ 1.4mm, đó là điều luôn gây ấn tượng mỗi khi nói về iMac.</p>\r\n', 18999, 'imac-215-inch-2017-i5-8gb-1tb.jpg', '[\"imac-215-inch-2017-i5-8gb-1tb2.jpg\",\"imac-215-inch-2017-i5-8gb-1tb3.jpg\",\"imac-215-inch-2017-i5-8gb-1tb4.jpg\"]', '0000-00-00', 30, 'imac pro, imac pro giá rẻ', 'imac-5k-27-inch-2017-i5-8gb-ram-1tb', '2 năm', 100, 3, 0, 0, '', 'Màn hình trên iMac thế hệ mới đã sở hữu độ phân giải 4K và 5K. Vẫn giữ thiết kế vát cạnh sắc sảo đã tạo nên một huyền thoại. Ổ cứng Fusion Drive với khả năng lưu trữ dữ liệu siêu nhanh'),
(21, 4, 'iPhone 7 - 256GB nhập khẩu chính hãng', '11000.0000', '', 1000, 'iphone-7-256gb.jpg', '[\"iphone-7-256gb-2.jpg\",\"iphone-7-256gb-3.jpg\"]', '0000-00-00', 11, 'iphone 7, iphone 7 plus, iphone giá rẻ', 'iphone-7-256gb-nhap-khau-chinh-hang', '1 năm', 100, 10, 4, 1, '', 'Siêu phẩm iPhone 7 chính thức trình làng cùng những cải tiến vượt bậc.'),
(22, 6, 'iPhone X 256GB Space Gray (Nhập khẩu chính Hãng)', '18000.0000', '<p>iPhone 7 đã ra mắt và mang đến vô số những thay đổi to lớn trong ngành công nghệ. Giờ đây, bạn không chỉ cầm trên tay và cảm nhận iPhone 7 như một chiếc smartphone, mà đó là một chiếc camera chụp ảnh siêu việt, cỗ máy chơi game hoàn hảo, dàn âm thanh mini chất lượng cao hay thiết bị điện tử siêu bền bỉ miễn nhiễm với nước và bụi bẩn.</p>\r\n\r\n<p> </p>\r\n\r\n<h3>THIẾT KẾ KHÁC BIỆT VÀ VƯỢT TRỘI</h3>\r\n\r\n<p>iPhone 7 đạt đến độ hoàn thiện cao nhất, với hình mẫu thiết kế như một siêu phẩm đi trước thời đại. Bổ sung thêm màu sắc Jet Black không chỉ làm phong phú cho bộ sưu tập iPhone 7 mà còn là điểm nhấn trong khâu thiết kế. Bên cạnh đó, nút Home trên iPhone 7 cũng được thiết kế lại, bổ sung thêm tính năng cảm ứng lực cũng như trông hoàn hảo hơn khi đặt lên bộ khung của flag-ship nhà Apple.</p>\r\n\r\n<p> </p>\r\n\r\n<p>Vật liệu được sử dụng chính là nhôm 7000 Series siêu cứng, siêu bền, giảm trầy xước cùng 5 màu sắc, 2 kích thước khiến bộ đôi iPhone 7 và iPhone 7 Plus luôn mang tính thời trang và thể hiện được cá tính riêng của người sử dụng. Khả năng chống nước và bụi lần đầu tiên được mang lên một chiếc iPhone.</p>\r\n\r\n<p>Thách thức thời tiết bây giờ không còn là vấn đề với iPhone 7 với chuẩn IP67. Những chuyến dã ngoại, pool party vô tư cùng bạn bè mà vẫn yên tâm vì luôn có người bạn iPhone 7 bên cạnh.</p>\r\n', 500, 'iphone-x-64gb-space-gray-nhap-khau-chinh-hang.jpg', '[\"iphone-x-64gb-space-gray-nhap-khau-chinh-hang-2.jpg\",\"iphone-x-64gb-space-gray-nhap-khau-chinh-hang-3.jpg\"]', '0000-00-00', 71, 'iphone 10, iphone giá rẻ, iphone x', 'iphone-x-256gb-space-gray-nhap-khau-chinh-hang', '1 năm', 100, 5, 12, 3, '', 'iPhone X 256GB Black (Nhập khẩu chính Hãng) giá rẻ cực hót tại AppleShop giao hàng nhanh thanh toán trực tuyến nhiều ưu đãi'),
(23, 6, 'iPhone X 256GB Silver (Nhập khẩu chính Hãng)', '18000.0000', '<p>Apple đã giới thiệu iPhone X (iPhone 10) sở hữu màn hình OLED 5”8 với viền mỏng, FaceID nhận dạng 3D, Chip A11 Bionic, Camera hỗ trợ Portrait Mode trước và sau, lớp vỏ kim loại sáng bóng, sạc không dây QI. Không còn TouchID và nút Home cứng nên mọi thao tác sẽ thực hiện trên màn hình.</p>\r\n\r\n<p><img alt=\"iphone-x-256gb-silver-nhap-khau-chinh-hang\" src=\"/ckfinder/userfiles/images/iPhoneX/iphone-x-64gb-space-gray-nhap-khau-chinh-hang.png\" /></p>\r\n\r\n<h3>Màn hình</h3>\r\n\r\n<p>Màn hình là sự thay đổi nhiều nhất của iPhone X với các thế iPhone trước đây. Apple sử dụng màn hình OLED và đặt tên là Super Retina HD. Với kích thước 5”8, mật độ điểm ảnh 458 ppi, độ phân giải 2436 x 1125, cao hơn so với mức 1920 x 1080 đang sử dụng cho iPhone 7 Plus và iPhone 8 Plus. Apple nói rằng màn hình OLED của họ khắc phục được tất cả nhược điểm của các thế hệ màn hình trước như độ sáng kém, màu sắc không chính xác. Viền của iPhone X rất mỏng và màn hình chiếm gần như toàn bộ diện tích của mặt trước.</p>\r\n\r\n<p><img alt=\"iphone-x-256gb-silver-nhap-khau-chinh-hang 2\" src=\"/ckfinder/userfiles/images/iPhoneX/iphone-x-64gb-silver-nhap-khau-chinh-hang3.jpg\" /></p>\r\n\r\n<p>Apple không nói về cấu trúc điểm ảnh trên màn hình của iPhone X là RGB hay Pentile. Tuy nhiên trong phần đánh giá về màn hình của Ninay Patel từ The Verge nói không thấy sự rực màu hay rỗ điểm ảnh như các màn hình OLED khác.</p>\r\n\r\n<p><img alt=\"iphone-x-256gb-silver-nhap-khau-chinh-hang 3\" src=\"/ckfinder/userfiles/images/iPhoneX/iphone-x-64gb-space-gray-nhap-khau-chinh-hang-2.png\" /></p>\r\n\r\n<h3>FaceID: bảo mật khuôn mặt, thay cho TouchID</h3>\r\n\r\n<p>FaceID là tên của hệ thống nhận dạng khuôn mặt mới. Face ID có thể nhận dạng khuôn mặt ngay trong bóng tối và khả năng nhầm lẫn chỉ là 1/1.000.000 tức là an toàn hơn cả TouchID. Để làm được điều này ngoài hệ thống camera, cảm biến phía trước thì vi xử lý A11 Bionic cũng làm theo dõi liên tục để thấy được các thay đổi trên khuôn mặt người dùng. Ví dụ bạn để râu dài hơn, hay thay đổi kiểu tóc, đeo kính thì nó vẫn nhận ra.</p>\r\n\r\n<p> </p>\r\n', 500, 'iphone-x-64gb-silver-nhap-khau-chinh-hang.jpg', '[\"iphone-x-64gb-silver-nhap-khau-chinh-hang2.jpg\",\"iphone-x-64gb-silver-nhap-khau-chinh-hang3.jpg\",\"iphone-x-64gb-space-gray-nhap-khau-chinh-hang1.png\"]', '2018-05-31', 12, 'iPhone x giá rẻ, iphone x chính hãng', 'iphone-x-256gb-silver-nhap-khau-chinh-hang', '1 năm', 100, 0, 0, 0, '', 'iPhone X 256GB Silver (Nhập khẩu chính Hãng) giá rẻ cực hót tại AppleShop giao hàng nhanh thanh toán trực tuyến nhiều ưu đãi'),
(24, 6, 'iPhone X 64GB Silver (Nhập khẩu chính Hãng)', '15000.0000', '<p>Apple đã giới thiệu iPhone X (iPhone 10) sở hữu màn hình OLED 5”8 với viền mỏng, FaceID nhận dạng 3D, Chip A11 Bionic, Camera hỗ trợ Portrait Mode trước và sau, lớp vỏ kim loại sáng bóng, sạc không dây QI. Không còn TouchID và nút Home cứng nên mọi thao tác sẽ thực hiện trên màn hình.</p>\r\n\r\n<p><img alt=\"iphone-x-256gb-silver-nhap-khau-chinh-hang\" src=\"/ckfinder/userfiles/images/iPhoneX/iphone-x-64gb-space-gray-nhap-khau-chinh-hang.png\" /></p>\r\n\r\n<h3>Màn hình</h3>\r\n\r\n<p>Màn hình là sự thay đổi nhiều nhất của iPhone X với các thế iPhone trước đây. Apple sử dụng màn hình OLED và đặt tên là Super Retina HD. Với kích thước 5”8, mật độ điểm ảnh 458 ppi, độ phân giải 2436 x 1125, cao hơn so với mức 1920 x 1080 đang sử dụng cho iPhone 7 Plus và iPhone 8 Plus. Apple nói rằng màn hình OLED của họ khắc phục được tất cả nhược điểm của các thế hệ màn hình trước như độ sáng kém, màu sắc không chính xác. Viền của iPhone X rất mỏng và màn hình chiếm gần như toàn bộ diện tích của mặt trước.</p>\r\n\r\n<p><img alt=\"iphone-x-256gb-silver-nhap-khau-chinh-hang 2\" src=\"/ckfinder/userfiles/images/iPhoneX/iphone-x-64gb-silver-nhap-khau-chinh-hang3.jpg\" /></p>\r\n\r\n<p>Apple không nói về cấu trúc điểm ảnh trên màn hình của iPhone X là RGB hay Pentile. Tuy nhiên trong phần đánh giá về màn hình của Ninay Patel từ The Verge nói không thấy sự rực màu hay rỗ điểm ảnh như các màn hình OLED khác.</p>\r\n\r\n<p><img alt=\"iphone-x-256gb-silver-nhap-khau-chinh-hang 3\" src=\"/ckfinder/userfiles/images/iPhoneX/iphone-x-64gb-space-gray-nhap-khau-chinh-hang-2.png\" /></p>\r\n\r\n<h3>FaceID: bảo mật khuôn mặt, thay cho TouchID</h3>\r\n\r\n<p>FaceID là tên của hệ thống nhận dạng khuôn mặt mới. Face ID có thể nhận dạng khuôn mặt ngay trong bóng tối và khả năng nhầm lẫn chỉ là 1/1.000.000 tức là an toàn hơn cả TouchID. Để làm được điều này ngoài hệ thống camera, cảm biến phía trước thì vi xử lý A11 Bionic cũng làm theo dõi liên tục để thấy được các thay đổi trên khuôn mặt người dùng. Ví dụ bạn để râu dài hơn, hay thay đổi kiểu tóc, đeo kính thì nó vẫn nhận ra.</p>\r\n', 300, 'iphone-x-64gb-silver-nhap-khau-chinh-hang1.jpg', '[\"iphone-x-64gb-silver-nhap-khau-chinh-hang21.jpg\",\"iphone-x-64gb-silver-nhap-khau-chinh-hang31.jpg\"]', '2018-05-31', 0, 'iPhone x giá rẻ, iphone x chính hãng', 'iphone-x-64gb-silver-nhap-khau-chinh-hang', '1 năm', 100, 0, 0, 0, '', 'iPhone X 64GB Silver (Nhập khẩu chính Hãng) giá rẻ cực hót tại AppleShop giao hàng nhanh thanh toán trực tuyến nhiều ưu đãi'),
(25, 6, 'iPhone X 64GB Space Gray (Nhập khẩu chính Hãng)', '15000.0000', '<p>Apple đã giới thiệu iPhone X (iPhone 10) sở hữu màn hình OLED 5”8 với viền mỏng, FaceID nhận dạng 3D, Chip A11 Bionic, Camera hỗ trợ Portrait Mode trước và sau, lớp vỏ kim loại sáng bóng, sạc không dây QI. Không còn TouchID và nút Home cứng nên mọi thao tác sẽ thực hiện trên màn hình.</p>\r\n\r\n<p><img alt=\"iphone-x-64gb-space-gray-nhap-khau-chinh-hang\" src=\"/ckfinder/userfiles/images/iPhoneX/iphone-x-64gb-space-gray-nhap-khau-chinh-hang.png\" style=\"height:334px; width:450px\" /></p>\r\n\r\n<h3>Màn hình</h3>\r\n\r\n<p>Màn hình là sự thay đổi nhiều nhất của iPhone X với các thế iPhone trước đây. Apple sử dụng màn hình OLED và đặt tên là Super Retina HD. Với kích thước 5”8, mật độ điểm ảnh 458 ppi, độ phân giải 2436 x 1125, cao hơn so với mức 1920 x 1080 đang sử dụng cho iPhone 7 Plus và iPhone 8 Plus. Apple nói rằng màn hình OLED của họ khắc phục được tất cả nhược điểm của các thế hệ màn hình trước như độ sáng kém, màu sắc không chính xác. Viền của iPhone X rất mỏng và màn hình chiếm gần như toàn bộ diện tích của mặt trước.</p>\r\n\r\n<p><img alt=\"iphone-x-64gb-space-gray-nhap-khau-chinh-hang\" src=\"/ckfinder/userfiles/images/iPhoneX/iphone-x-64gb-space-gray-nhap-khau-chinh-hang-3.jpg\" style=\"height:450px; width:450px\" /></p>\r\n\r\n<p>Apple không nói về cấu trúc điểm ảnh trên màn hình của iPhone X là RGB hay Pentile. Tuy nhiên trong phần đánh giá về màn hình của Ninay Patel từ The Verge nói không thấy sự rực màu hay rỗ điểm ảnh như các màn hình OLED khác.</p>\r\n\r\n<p><img alt=\"iphone-x-64gb-space-gray-nhap-khau-chinh-hang 3\" src=\"/ckfinder/userfiles/images/iPhoneX/iphone-x-64gb-space-gray-nhap-khau-chinh-hang-2.png\" style=\"height:304px; width:450px\" /></p>\r\n\r\n<h3>FaceID: bảo mật khuôn mặt, thay cho TouchID</h3>\r\n\r\n<p>FaceID là tên của hệ thống nhận dạng khuôn mặt mới. Face ID có thể nhận dạng khuôn mặt ngay trong bóng tối và khả năng nhầm lẫn chỉ là 1/1.000.000 tức là an toàn hơn cả TouchID. Để làm được điều này ngoài hệ thống camera, cảm biến phía trước thì vi xử lý A11 Bionic cũng làm theo dõi liên tục để thấy được các thay đổi trên khuôn mặt người dùng. Ví dụ bạn để râu dài hơn, hay thay đổi kiểu tóc, đeo kính thì nó vẫn nhận ra.</p>\r\n\r\n<p> </p>\r\n', 300, 'iphone-x-64gb-space-gray-nhap-khau-chinh-hang1.jpg', '[\"iphone-x-64gb-space-gray-nhap-khau-chinh-hang-21.jpg\",\"iphone-x-64gb-space-gray-nhap-khau-chinh-hang-31.jpg\"]', '2018-05-31', 3, 'iPhone x giá rẻ, iphone x chính hãng', 'iphone-x-64gb-space-gray-nhap-khau-chinh-hang', '1 năm', 100, 0, 0, 0, '', 'iPhone X 64GB Space Gray (Nhập khẩu chính Hãng) giá rẻ hơn thị trường chỉ có tại AppleShop, đặt hàng và thanh toán nhanh chóng'),
(26, 5, 'iPhone 8 Plus - 256GB RED chính hãng', '7700000.0000', '<p>iPhone 8 ra mắt chứng kiến sự trở lại của thiết kế mặt kính tuyệt đẹp. Mạnh mẽ hơn, thông minh hơn, cải tiến nhiều hơn nữa để mang lại những trải nghiệm tuyệt vời nhất, chính là sứ mệnh của iPhone 8</p>\r\n\r\n<p><img alt=\"iphone-8-plus-256gb-red\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-256gb-red.jpg\" style=\"height:450px; width:450px\" /></p>\r\n\r\n<h3>SỰ TRỞ LẠI CỦA CHẤT LIỆU KÍNH TRÊN MỘT CHIẾC IPHONE</h3>\r\n\r\n<p>iPhone 8 cùng chất liệu kính cả mặt trước và mặt sau đều đạt đến độ hoàn thiện cao nhất. Nhờ vậy, tính năng sạc không dây được ra mắt mang đến trải nghiệm tiện dụng nhất cho người dùng. Khả năng chống nước và bụi vẫn được trang bị trên iPhone 8.</p>\r\n\r\n<p><img alt=\"iphone-8-plus-256gb-red 2 \" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-256gb-red-2.jpg\" style=\"height:450px; width:450px\" /></p>\r\n\r\n<h3>MÀN HÌNH RETINA HD TRUE TONE</h3>\r\n\r\n<p>Công nghệ Retina HD trên màn hình iPhone 8 vẫn đẹp một cách trung thực và giờ đây với True Tone, công nghệ mới sẽ giúp dải màu hiển thị rộng hơn, tự động căn chỉnh màu cho phù hợp với môi trường xung quanh.</p>\r\n\r\n<p><img alt=\"iphone-8-plus-256gb-red 3\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-256gb-red-1.jpg\" style=\"height:450px; width:450px\" /></p>\r\n\r\n<h3>CAMERA NÂNG CẤP MẠNH MẼ</h3>\r\n\r\n<p>Hệ thống camera mới với cùng độ phân giải, cùng chức năng nhưng cấu hình thay đổi nhiều giúp nó mạnh mẽ hơn. Giờ đây khả năng quay video 4K 60fps hay 1080 240fps đã nằm trong cảm biến camera của iPhone 8. iPhone 8 Plus vẫn trang bị hai camera và khả năng chụp chân dung như iPhone 7 Plus. Nhưng hệ thống chống rung giờ đây có cả trên hai camera. Bổ sung Portrait Lightning là chế độ mới bên cạnh chế độ Portrait</p>\r\n\r\n<p> </p>\r\n\r\n<p> </p>\r\n', 700000, 'iphone-8-plus-256gb-red.jpg', '[\"iphone-8-plus-256gb-red-1.jpg\",\"iphone-8-plus-256gb-red-2.jpg\"]', '2018-05-31', 2, 'iPhone 8 giá rẻ, iphone 8 red chính hãng', 'iphone-8-plus-256gb-red-chinh-hang', '1 năm', 100, 0, 0, 0, '', 'Apple Shop cung cấp các sản phẩm iphone 8 chính hãng giá rẻ, iphone 8 red cấu hình siêu mạnh giá cực tốt'),
(27, 4, 'iPhone 7 32GB Black Quốc Tế (LIKE NEW)', '8500000.0000', '<p>iPhone 7 có thiết kế giống với iPhone 6s (và iPhone 6 trước đó) với thân kim loại bo tròn. Nhưng điểm mới trong thiết kế của điện thoại này là khả năng chống nước đạt chuẩn IP67, nghĩa là nó có thể trụ được 30 phút dưới nước ở độ sâu 1 mét. Các chi tiết mới đáng kể nữa trong thiết kế là vị trí dải ăng ten thay đổi, hiện nằm ở sát phía trên và dưới mặt lưng khiến iPhone mới trông thoáng đạt hơn. iPhone 7 có thêm lựa chọn màu đen bóng và đen nhám lạ mắt cùng với các lựa chọn màu cũ là vàng, vàng hồng và bạc.</p>\r\n\r\n<p><img alt=\"iphone-7-32gb-black-quoc-te-like-new\" src=\"/ckfinder/userfiles/images/iPhone%207/iphone-7-32gb-quoc-te-like-new.jpg\" style=\"height:675px; width:450px\" /></p>\r\n\r\n<p>Giắc âm thanh 3.5mm đã không còn. Như vậy, tai nghe có dây sẽ phải cắm qua cổng Lightning. Tất nhiên, chúng ta có thể sử dụng tai nghe Bluetooth để kết nối với iPhone mới. Apple cũng đi kèm tai nghe Earpod mới, cáp Lightning và bộ chuyển đổi Lightning sang 3.5mm trong hộp máy iPhone 7 và 7 Plus.</p>\r\n\r\n<p><img alt=\"iphone-7-32gb-black-quoc-te-like-new2\" src=\"/ckfinder/userfiles/images/iPhone%207/iphone-7-32gb-quoc-te-like-new2.jpg\" style=\"height:242px; width:450px\" /></p>\r\n\r\n<p>Nút Home trên iPhone 7 đã được thiết kế lại, trở thành nút cảm ứng với hệ thống phản hồi xúc giác giống như bàn di Force Touch trên các laptop Macbook gần đây.</p>\r\n\r\n<p><img alt=\"iphone-7-32gb-black-quoc-te-like-new3\" src=\"/ckfinder/userfiles/images/iPhone%207/iphone-7-32gb-quoc-te-like-new3.jpg\" style=\"height:216px; width:450px\" /></p>\r\n\r\n<p>Camera trên phiên bản iPhone 7 thường được nâng cấp mạnh với khả năng chống rung quang học, khẩu mở lớn f/1.8 thu sáng nhiều hơn 50% so với ống kính f/2.2 của iPhone 6s. Apple cho biết cảm biến camera trên iPhone 7 vẫn là 12MP như thế hệ cũ nhưng tốc độ nhanh hơn 60% và tiêu hao điện năng thấp hơn 30%. Cùng với đó là chip xử lý hình ảnh do Apple tự thiết kế và hệ thống 4 đèn flash tạo ra lượng ánh sáng nhiều hơn 50%. Trong khi đó, camera trước cũng được nâng lên 7MP với khả năng chống rung ảnh tự động để cải thiện chất lượng ảnh tự sướng và video.</p>\r\n\r\n<p><img alt=\"iphone-7-32gb-black-quoc-te-like-new4\" src=\"/ckfinder/userfiles/images/iPhone%207/iphone-7-32gb-quoc-te-like-new4.jpg\" style=\"height:191px; width:450px\" /></p>\r\n\r\n<p>iPhone mới cũng có màn hình nâng cấp sáng hơn 25%, dải màu rộng hơn với khả năng tái tạo màu tốt hơn. Máy cũng có màn hình cảm ứng lực 3D Touch giống như iPhone 6s. Nhưng Apple không nâng cấp độ phân giải lẫn kích thước màn hình của các iPhone mới, nghĩa là iPhone 7 năm nay vẫn có số lượng điểm ảnh tương tự iPhone 6 của năm 2014. Cụ thể, iPhone 7 có màn hình độ phân giải 750 x 1334 pixel kích thước 4.7 inch với mật độ điểm ảnh 326 PPI.</p>\r\n', 150000, 'iphone-7-32gb-quoc-te-like-new.jpg', '[\"iphone-7-32gb-quoc-te-like-new2.jpg\",\"iphone-7-32gb-quoc-te-like-new3.jpg\",\"iphone-7-32gb-quoc-te-like-new4.jpg\"]', '2018-06-03', 0, 'iPhone 7 giá rẻ, iphone 7 chính hãng', 'iphone-7-32gb-black-quoc-te-like-new', '1 năm', 100, 0, 0, 0, '', 'Apple đã chính thức ra mắt bộ đôi iPhone 7 và iPhone 7 Plus chấm dứt những đồn đoán kéo dài nhiều tháng qua. Cả thiết kế lẫn cấu hình của cả hai sản phẩm iPhone mới đều không khác nhiều so với những thông tin rò rỉ trước đó'),
(28, 4, 'iPhone 7 128GB Black Quốc Tế (LIKE NEW)', '9200000.0000', '<p>iPhone 7 có thiết kế giống với iPhone 6s (và iPhone 6 trước đó) với thân kim loại bo tròn. Nhưng điểm mới trong thiết kế của điện thoại này là khả năng chống nước đạt chuẩn IP67, nghĩa là nó có thể trụ được 30 phút dưới nước ở độ sâu 1 mét. Các chi tiết mới đáng kể nữa trong thiết kế là vị trí dải ăng ten thay đổi, hiện nằm ở sát phía trên và dưới mặt lưng khiến iPhone mới trông thoáng đạt hơn. iPhone 7 có thêm lựa chọn màu đen bóng và đen nhám lạ mắt cùng với các lựa chọn màu cũ là vàng, vàng hồng và bạc.</p>\r\n\r\n<p><img alt=\"iphone-7-32gb-black-quoc-te-like-new\" src=\"/ckfinder/userfiles/images/iPhone%207/iphone-7-32gb-quoc-te-like-new.jpg\" /></p>\r\n\r\n<p>Giắc âm thanh 3.5mm đã không còn. Như vậy, tai nghe có dây sẽ phải cắm qua cổng Lightning. Tất nhiên, chúng ta có thể sử dụng tai nghe Bluetooth để kết nối với iPhone mới. Apple cũng đi kèm tai nghe Earpod mới, cáp Lightning và bộ chuyển đổi Lightning sang 3.5mm trong hộp máy iPhone 7 và 7 Plus.</p>\r\n\r\n<p><img alt=\"iphone-7-32gb-black-quoc-te-like-new2\" src=\"/ckfinder/userfiles/images/iPhone%207/iphone-7-32gb-quoc-te-like-new2.jpg\" /></p>\r\n\r\n<p>Nút Home trên iPhone 7 đã được thiết kế lại, trở thành nút cảm ứng với hệ thống phản hồi xúc giác giống như bàn di Force Touch trên các laptop Macbook gần đây.</p>\r\n\r\n<p><img alt=\"iphone-7-32gb-black-quoc-te-like-new3\" src=\"/ckfinder/userfiles/images/iPhone%207/iphone-7-32gb-quoc-te-like-new3.jpg\" /></p>\r\n\r\n<p>Camera trên phiên bản iPhone 7 thường được nâng cấp mạnh với khả năng chống rung quang học, khẩu mở lớn f/1.8 thu sáng nhiều hơn 50% so với ống kính f/2.2 của iPhone 6s. Apple cho biết cảm biến camera trên iPhone 7 vẫn là 12MP như thế hệ cũ nhưng tốc độ nhanh hơn 60% và tiêu hao điện năng thấp hơn 30%. Cùng với đó là chip xử lý hình ảnh do Apple tự thiết kế và hệ thống 4 đèn flash tạo ra lượng ánh sáng nhiều hơn 50%. Trong khi đó, camera trước cũng được nâng lên 7MP với khả năng chống rung ảnh tự động để cải thiện chất lượng ảnh tự sướng và video.</p>\r\n\r\n<p><img alt=\"iphone-7-32gb-black-quoc-te-like-new4\" src=\"/ckfinder/userfiles/images/iPhone%207/iphone-7-32gb-quoc-te-like-new4.jpg\" /></p>\r\n\r\n<p>iPhone mới cũng có màn hình nâng cấp sáng hơn 25%, dải màu rộng hơn với khả năng tái tạo màu tốt hơn. Máy cũng có màn hình cảm ứng lực 3D Touch giống như iPhone 6s. Nhưng Apple không nâng cấp độ phân giải lẫn kích thước màn hình của các iPhone mới, nghĩa là iPhone 7 năm nay vẫn có số lượng điểm ảnh tương tự iPhone 6 của năm 2014. Cụ thể, iPhone 7 có màn hình độ phân giải 750 x 1334 pixel kích thước 4.7 inch với mật độ điểm ảnh 326 PPI.</p>\r\n', 50000, 'iphone-7-128gb-quoc-te-like-new.jpg', '[\"iphone-7-128gb-quoc-te-like-new2.jpg\",\"iphone-7-128gb-quoc-te-like-new3.jpg\",\"iphone-7-128gb-quoc-te-like-new4.jpg\"]', '2018-06-03', 1, 'iPhone 7 giá rẻ, iphone 7 chính hãng', 'iphone-7-128gb-black-quoc-te-like-new', '1 năm', 100, 0, 0, 0, '', 'Apple đã chính thức ra mắt bộ đôi iPhone 7 và iPhone 7 Plus chấm dứt những đồn đoán kéo dài nhiều tháng qua. Cả thiết kế lẫn cấu hình của cả hai sản phẩm iPhone mới đều không khác nhiều so với những thông tin rò rỉ trước đó'),
(29, 4, 'iPhone 7 Plus Red 128GB LL/A Quốc Tế (Like New)', '9500000.0000', '<p>iPhone 7 có thiết kế giống với iPhone 6s (và iPhone 6 trước đó) với thân kim loại bo tròn. Nhưng điểm mới trong thiết kế của điện thoại này là khả năng chống nước đạt chuẩn IP67, nghĩa là nó có thể trụ được 30 phút dưới nước ở độ sâu 1 mét. Các chi tiết mới đáng kể nữa trong thiết kế là vị trí dải ăng ten thay đổi, hiện nằm ở sát phía trên và dưới mặt lưng khiến iPhone mới trông thoáng đạt hơn. iPhone 7 có thêm lựa chọn màu đen bóng và đen nhám lạ mắt cùng với các lựa chọn màu cũ là vàng, vàng hồng và bạc.</p>\r\n\r\n<p><img alt=\"iphone-7-plus-red-128gb-ll-a-quoc-te\" src=\"/ckfinder/userfiles/images/iPhone%207/iphone-7-plus-128gb-ll-a-quoc-te2.png\" style=\"height:518px; width:450px\" /></p>\r\n\r\n<p>Giắc âm thanh 3.5mm đã không còn. Như vậy, tai nghe có dây sẽ phải cắm qua cổng Lightning. Tất nhiên, chúng ta có thể sử dụng tai nghe Bluetooth để kết nối với iPhone mới. Apple cũng đi kèm tai nghe Earpod mới, cáp Lightning và bộ chuyển đổi Lightning sang 3.5mm trong hộp máy iPhone 7 và 7 Plus.</p>\r\n\r\n<p><img alt=\"iphone-7-plus-red-128gb-ll-a-quoc-te\" src=\"/ckfinder/userfiles/images/iPhone%207/iphone-7-plus-128gb-ll-a-quoc-te3.jpg\" style=\"height:450px; width:450px\" /></p>\r\n\r\n<p>Nút Home trên iPhone 7 đã được thiết kế lại, trở thành nút cảm ứng với hệ thống phản hồi xúc giác giống như bàn di Force Touch trên các laptop Macbook gần đây.</p>\r\n\r\n<p> </p>\r\n\r\n<p>Camera trên phiên bản iPhone 7 thường được nâng cấp mạnh với khả năng chống rung quang học, khẩu mở lớn f/1.8 thu sáng nhiều hơn 50% so với ống kính f/2.2 của iPhone 6s. Apple cho biết cảm biến camera trên iPhone 7 vẫn là 12MP như thế hệ cũ nhưng tốc độ nhanh hơn 60% và tiêu hao điện năng thấp hơn 30%. Cùng với đó là chip xử lý hình ảnh do Apple tự thiết kế và hệ thống 4 đèn flash tạo ra lượng ánh sáng nhiều hơn 50%. Trong khi đó, camera trước cũng được nâng lên 7MP với khả năng chống rung ảnh tự động để cải thiện chất lượng ảnh tự sướng và video.</p>\r\n\r\n<p><img alt=\"iphone-7-plus-red-128gb-ll-a-quoc-te3\" src=\"/ckfinder/userfiles/images/iPhone%207/iphone-7-plus-128gb-ll-a-quoc-te4.jpg\" style=\"height:450px; width:450px\" /></p>\r\n\r\n<p>iPhone mới cũng có màn hình nâng cấp sáng hơn 25%, dải màu rộng hơn với khả năng tái tạo màu tốt hơn. Máy cũng có màn hình cảm ứng lực 3D Touch giống như iPhone 6s. Nhưng Apple không nâng cấp độ phân giải lẫn kích thước màn hình của các iPhone mới, nghĩa là iPhone 7 năm nay vẫn có số lượng điểm ảnh tương tự iPhone 6 của năm 2014. Cụ thể, iPhone 7 có màn hình độ phân giải 750 x 1334 pixel kích thước 4.7 inch với mật độ điểm ảnh 326 PPI.</p>\r\n', 120000, 'iphone-7-plus-red-128gb-ll-a-quoc-te.jpg', '[\"iphone-7-plus-128gb-ll-a-quoc-te3.jpg\",\"iphone-7-plus-128gb-ll-a-quoc-te4.jpg\"]', '2018-06-03', 0, 'iPhone 7 plus giá rẻ, iphone 7 plus like new', 'iphone-7-plus-red-128gb-ll-a-quoc-te-like-new', '1 năm', 100, 0, 0, 0, '', 'iPhone 7 Plus 128GB LL/A Quốc tế là được xách tay trực tiếp từ thị trường uy tín của Mỹ. Máy Like New y như mới, trầy xước không đáng kể, máy đẹp và hiệu năng ổn định cho trải nghiệm hoàn hảo đáp ứng mọi công việc học tập và làm việc của bạn.'),
(30, 5, 'iPhone 8 64GB Red (Nhập khẩu chính Hãng)', '7000000.0000', '<p>iPhone 8 ra mắt chứng kiến sự trở lại của thiết kế mặt kính tuyệt đẹp. Mạnh mẽ hơn, thông minh hơn, cải tiến nhiều hơn nữa để mang lại những trải nghiệm tuyệt vời nhất, chính là sứ mệnh của iPhone 8</p>\r\n\r\n<p><img alt=\"iphone-8-plus-256gb-red\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-256gb-red.jpg\" /></p>\r\n\r\n<h3>SỰ TRỞ LẠI CỦA CHẤT LIỆU KÍNH TRÊN MỘT CHIẾC IPHONE</h3>\r\n\r\n<p>iPhone 8 cùng chất liệu kính cả mặt trước và mặt sau đều đạt đến độ hoàn thiện cao nhất. Nhờ vậy, tính năng sạc không dây được ra mắt mang đến trải nghiệm tiện dụng nhất cho người dùng. Khả năng chống nước và bụi vẫn được trang bị trên iPhone 8.</p>\r\n\r\n<p><img alt=\"iphone-8-plus-256gb-red 2 \" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-256gb-red-2.jpg\" /></p>\r\n\r\n<h3>MÀN HÌNH RETINA HD TRUE TONE</h3>\r\n\r\n<p>Công nghệ Retina HD trên màn hình iPhone 8 vẫn đẹp một cách trung thực và giờ đây với True Tone, công nghệ mới sẽ giúp dải màu hiển thị rộng hơn, tự động căn chỉnh màu cho phù hợp với môi trường xung quanh.</p>\r\n\r\n<p><img alt=\"iphone-8-plus-256gb-red 3\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-256gb-red-1.jpg\" /></p>\r\n\r\n<h3>CAMERA NÂNG CẤP MẠNH MẼ</h3>\r\n\r\n<p>Hệ thống camera mới với cùng độ phân giải, cùng chức năng nhưng cấu hình thay đổi nhiều giúp nó mạnh mẽ hơn. Giờ đây khả năng quay video 4K 60fps hay 1080 240fps đã nằm trong cảm biến camera của iPhone 8. iPhone 8 Plus vẫn trang bị hai camera và khả năng chụp chân dung như iPhone 7 Plus. Nhưng hệ thống chống rung giờ đây có cả trên hai camera. Bổ sung Portrait Lightning là chế độ mới bên cạnh chế độ Portrait</p>\r\n\r\n<p> </p>\r\n', 300000, 'iphone-8-plus-256gb-red3.jpg', '[\"iphone-8-64gb-red-nhap-khau-chinh-hang.jpg\",\"iphone-8-64gb-red-nhap-khau-chinh-hang2.jpg\"]', '2018-06-03', 0, 'iPhone 8 giá rẻ, iphone 8 red chính hãng', 'iphone-8-64gb-red-nhap-khau-chinh-hang', '1 năm', 50, 0, 0, 0, '', 'Apple Shop cung cấp các sản phẩm iphone 8 chính hãng giá rẻ, iphone 8 red cấu hình siêu mạnh giá cực tốt'),
(31, 5, 'iPhone 8 Plus 256GB Space Gray Chính Hãng', '7700000.0000', '<p>iPhone 8 ra mắt chứng kiến sự trở lại của thiết kế mặt kính tuyệt đẹp. Mạnh mẽ hơn, thông minh hơn, cải tiến nhiều hơn nữa để mang lại những trải nghiệm tuyệt vời nhất, chính là sứ mệnh của iPhone 8</p>\r\n\r\n<p><img alt=\"iphone-8-plus-256gb-space-gray-nhap-khau-chinh-hang\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-256gb-space-gray-nhap-khau-chinh-hang.jpg\" style=\"height:450px; width:450px\" /></p>\r\n\r\n<h3>SỰ TRỞ LẠI CỦA CHẤT LIỆU KÍNH TRÊN MỘT CHIẾC IPHONE</h3>\r\n\r\n<p>iPhone 8 cùng chất liệu kính cả mặt trước và mặt sau đều đạt đến độ hoàn thiện cao nhất. Nhờ vậy, tính năng sạc không dây được ra mắt mang đến trải nghiệm tiện dụng nhất cho người dùng. Khả năng chống nước và bụi vẫn được trang bị trên iPhone 8.</p>\r\n\r\n<p><img alt=\"iphone-8-plus-256gb-space-gray-nhap-khau-chinh-hang2\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-256gb-space-gray-nhap-khau-chinh-hang2.png\" style=\"height:335px; width:450px\" /></p>\r\n\r\n<h3>MÀN HÌNH RETINA HD TRUE TONE</h3>\r\n\r\n<p>Công nghệ Retina HD trên màn hình iPhone 8 vẫn đẹp một cách trung thực và giờ đây với True Tone, công nghệ mới sẽ giúp dải màu hiển thị rộng hơn, tự động căn chỉnh màu cho phù hợp với môi trường xung quanh.</p>\r\n\r\n<p><img alt=\"iphone-8-plus-256gb-space-gray-nhap-khau-chinh-hang3\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-256gb-space-gray-nhap-khau-chinh-hang3.png\" style=\"height:287px; width:450px\" /></p>\r\n\r\n<h3>CAMERA NÂNG CẤP MẠNH MẼ</h3>\r\n\r\n<p>Hệ thống camera mới với cùng độ phân giải, cùng chức năng nhưng cấu hình thay đổi nhiều giúp nó mạnh mẽ hơn. Giờ đây khả năng quay video 4K 60fps hay 1080 240fps đã nằm trong cảm biến camera của iPhone 8. iPhone 8 Plus vẫn trang bị hai camera và khả năng chụp chân dung như iPhone 7 Plus. Nhưng hệ thống chống rung giờ đây có cả trên hai camera. Bổ sung Portrait Lightning là chế độ mới bên cạnh chế độ Portrait</p>\r\n\r\n<p><img alt=\"iphone-8-plus-256gb-space-gray-nhap-khau-chinh-hang4\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-256gb-space-gray-nhap-khau-chinh-hang4.png\" style=\"height:361px; width:450px\" /></p>\r\n', 700000, 'iphone-8-plus-256gb-space-gray-chinh-hang.jpg', '[\"iphone-8-plus-256gb-space-gray-nhap-khau-chinh-hang2.png\",\"iphone-8-plus-256gb-space-gray-nhap-khau-chinh-hang3.png\"]', '2018-06-03', 0, 'iPhone 8 giá rẻ, iphone 8 red chính hãng', 'iphone-8-plus-256gb-space-gray-chinh-hang', '1 năm', 90, 0, 0, 0, '', 'Apple Shop cung cấp các sản phẩm iphone 8 chính hãng giá rẻ, iphone 8 red cấu hình siêu mạnh giá cực tốt'),
(32, 5, 'iPhone 8 Plus 64GB Silver Nhập Khẩu Chính Hãng', '8890000.0000', '<p>iPhone 8 ra mắt chứng kiến sự trở lại của thiết kế mặt kính tuyệt đẹp. Mạnh mẽ hơn, thông minh hơn, cải tiến nhiều hơn nữa để mang lại những trải nghiệm tuyệt vời nhất, chính là sứ mệnh của iPhone 8</p>\r\n\r\n<p><img alt=\"iphone-8-plus-64gb-silver-chinh-hang\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-64gb-silver-chinh-hang4.jpg\" style=\"height:253px; width:450px\" /></p>\r\n\r\n<h3>SỰ TRỞ LẠI CỦA CHẤT LIỆU KÍNH TRÊN MỘT CHIẾC IPHONE</h3>\r\n\r\n<p>iPhone 8 cùng chất liệu kính cả mặt trước và mặt sau đều đạt đến độ hoàn thiện cao nhất. Nhờ vậy, tính năng sạc không dây được ra mắt mang đến trải nghiệm tiện dụng nhất cho người dùng. Khả năng chống nước và bụi vẫn được trang bị trên iPhone 8.</p>\r\n\r\n<p><img alt=\"iphone-8-plus-64gb-silver-chinh-hang4\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-256gb-space-gray-nhap-khau-chinh-hang4.png\" style=\"height:361px; width:450px\" /></p>\r\n\r\n<h3>MÀN HÌNH RETINA HD TRUE TONE</h3>\r\n\r\n<p>Công nghệ Retina HD trên màn hình iPhone 8 vẫn đẹp một cách trung thực và giờ đây với True Tone, công nghệ mới sẽ giúp dải màu hiển thị rộng hơn, tự động căn chỉnh màu cho phù hợp với môi trường xung quanh.</p>\r\n\r\n<p><img alt=\"iphone-8-plus-64gb-silver-chinh-hang\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-64gb-silver-chinh-hang3.jpg\" style=\"height:253px; width:450px\" /></p>\r\n\r\n<h3>CAMERA NÂNG CẤP MẠNH MẼ</h3>\r\n\r\n<p>Hệ thống camera mới với cùng độ phân giải, cùng chức năng nhưng cấu hình thay đổi nhiều giúp nó mạnh mẽ hơn. Giờ đây khả năng quay video 4K 60fps hay 1080 240fps đã nằm trong cảm biến camera của iPhone 8. iPhone 8 Plus vẫn trang bị hai camera và khả năng chụp chân dung như iPhone 7 Plus. Nhưng hệ thống chống rung giờ đây có cả trên hai camera. Bổ sung Portrait Lightning là chế độ mới bên cạnh chế độ Portrait</p>\r\n\r\n<p><img alt=\"iphone-8-plus-64gb-silver-chinh-hang2\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-64gb-silver-chinh-hang5.jpg\" style=\"height:253px; width:450px\" /></p>\r\n', 100000, 'iphone-8-plus-64gb-silver-chinh-hang.jpg', '[\"iphone-8-plus-64gb-silver-chinh-hang1.jpg\",\"iphone-8-plus-64gb-silver-chinh-hang2.jpg\"]', '2018-06-03', 0, 'iPhone 8 giá rẻ, iphone 8 red chính hãng', 'iphone-8-plus-64gb-silver-nhap-khau-chinh-hang', '1 năm', 100, 0, 0, 0, '', 'Apple Shop cung cấp các sản phẩm iphone 8 chính hãng giá rẻ, iphone 8 red cấu hình siêu mạnh giá cực tốt'),
(33, 5, 'iPhone 8 Plus 256GB Gold Chính Hãng', '8900000.0000', '<p>iPhone 8 ra mắt chứng kiến sự trở lại của thiết kế mặt kính tuyệt đẹp. Mạnh mẽ hơn, thông minh hơn, cải tiến nhiều hơn nữa để mang lại những trải nghiệm tuyệt vời nhất, chính là sứ mệnh của iPhone 8</p>\r\n\r\n<p><img alt=\"iphone-8-plus-256gb-gold-chinh-hang\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-256gb-space-gray-nhap-khau-chinh-hang3.png\" style=\"height:287px; width:450px\" /></p>\r\n\r\n<h3>SỰ TRỞ LẠI CỦA CHẤT LIỆU KÍNH TRÊN MỘT CHIẾC IPHONE</h3>\r\n\r\n<p>iPhone 8 cùng chất liệu kính cả mặt trước và mặt sau đều đạt đến độ hoàn thiện cao nhất. Nhờ vậy, tính năng sạc không dây được ra mắt mang đến trải nghiệm tiện dụng nhất cho người dùng. Khả năng chống nước và bụi vẫn được trang bị trên iPhone 8.</p>\r\n\r\n<p><img alt=\"iphone-8-plus-64gb-silver-chinh-hang4\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-256gb-space-gray-nhap-khau-chinh-hang4.png\" /></p>\r\n\r\n<h3>MÀN HÌNH RETINA HD TRUE TONE</h3>\r\n\r\n<p>Công nghệ Retina HD trên màn hình iPhone 8 vẫn đẹp một cách trung thực và giờ đây với True Tone, công nghệ mới sẽ giúp dải màu hiển thị rộng hơn, tự động căn chỉnh màu cho phù hợp với môi trường xung quanh.</p>\r\n\r\n<p><img alt=\"iphone-8-plus-256gb-gold-chinh-hang\" src=\"/ckfinder/userfiles/images/iPhone%208/iphone-8-plus-64gb-silver-chinh-hang3.jpg\" style=\"height:253px; width:450px\" /></p>\r\n\r\n<h3>CAMERA NÂNG CẤP MẠNH MẼ</h3>\r\n\r\n<p>Hệ thống camera mới với cùng độ phân giải, cùng chức năng nhưng cấu hình thay đổi nhiều giúp nó mạnh mẽ hơn. Giờ đây khả năng quay video 4K 60fps hay 1080 240fps đã nằm trong cảm biến camera của iPhone 8. iPhone 8 Plus vẫn trang bị hai camera và khả năng chụp chân dung như iPhone 7 Plus. Nhưng hệ thống chống rung giờ đây có cả trên hai camera. Bổ sung Portrait Lightning là chế độ mới bên cạnh chế độ Portrait</p>\r\n\r\n<p> </p>\r\n', 890000, 'iphone-8-plus-256gb-gold-chinh-hang.jpg', '[\"iphone-8-plus-256gb-gold-chinh-hang2.jpg\",\"iphone-8-plus-256gb-gold-chinh-hang3.jpg\"]', '2018-06-03', 0, 'iPhone 8 giá rẻ, iphone 8 red chính hãng', 'iphone-8-plus-256gb-gold-chinh-hang', '1 năm', 100, 0, 0, 0, '', 'Apple Shop cung cấp các sản phẩm iphone 8 chính hãng giá rẻ, iphone 8 red cấu hình siêu mạnh giá cực tốt'),
(34, 7, 'iPad Pro 10.5 WI-FI 64GB (2017) Chính Hãng', '7900000.0000', '<p>Apple đã làm cho máy tính bảng của mình hoàn hảo hơn các model trước đây khi tinh chỉnh kể cả thiết kế, phần mềm và nâng cấp phần cứng trên iPad Pro 10.5 inch. Với cấu hình ấn tượng, màn hình sáng hơn, chip mạnh mẽ hơn và một tính năng ProMotion làm tăng tốc độ tươi của màn hình.</p>\r\n\r\n<p><img alt=\"ipad-pro-10-5-wi-fi-64gb-2017-chinh-hang\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-10-5-wi-fi-64gb-2017-chinh-hang2.jpg\" style=\"height:300px; width:450px\" /></p>\r\n\r\n<p> </p>\r\n\r\n<p>Mặc dù mang trên mình màn hình kích thước lớn hơn thế hệ trước, nhưng iPad Pro 10.5 inch Wifi 64 GB 2017 vẫn không có sự khác biệt nhiều về trọng lượng, chỉ nặng 469g (hơn 32 gram so với model tiền nhiệm - iPad Pro 9.7 inch). Ngôn ngữ thiết kế mỏng nhẹ đáng kinh ngạc với lớp vỏ máy được làm hoàn toàn bằng chất liệu nhôm nguyên khối cao cấp cùng các đường cắt kim cương tinh tế, tỉ mỉ dọc theo thân máy cho cảm giác cực kì sang trọng và rất chắc chắn, thu hút mọi ánh nhìn xung quanh. Các viền bezels mỏng hơn đáng kể và khung kim loại được kéo dài thêm lên 0.5 inch.</p>\r\n\r\n<p><img alt=\"ipad-pro-10-5-wi-fi-64gb-2017-chinh-hang2\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-10-5-wi-fi-64gb-2017-chinh-hang3.jpg\" style=\"height:277px; width:450px\" /></p>\r\n\r\n<p> </p>\r\n\r\n<p>Như tên gọi, màn hình của iPad Pro 2017 có kích thước 10.5 inch, độ phân giải 1668 x 2224 pixels, sử dụng tấm nền IPS cùng công nghệ màn hình Retina. Ngoài ra, Apple cũng áp dụng công nghệ ProMotion giúp tốc độ làm tươi đạt mức 120 Hz (có nghĩa màn hình hiển thị LED có khả năng hiển thị 120 khung hình mỗi giây), hạn chế được hiện tượng rung, giật mà còn giảm hiện tượng bóng mờ khi chuyển động trên các màn LCD, một con số rất ấn tượng.</p>\r\n', 790000, 'ipad-pro-10-5-wi-fi-64gb-2017-chinh-hang.jpg', '[\"ipad-pro-10-5-wi-fi-64gb-2017-chinh-hang2.jpg\",\"ipad-pro-10-5-wi-fi-64gb-2017-chinh-hang3.jpg\"]', '2018-06-03', 3, 'iPad pro giá rẻ, ipad chính hãng', 'ipad-pro-10-5-wi-fi-64gb-2017-chinh-hang', '1 năm', 100, 0, 0, 0, '', 'Apple đã làm cho máy tính bảng của mình hoàn hảo hơn các model trước đây khi tinh chỉnh kể cả thiết kế, phần mềm và nâng cấp phần cứng trên iPad Pro 10.5 inch. Với cấu hình ấn tượng, màn hình sáng hơn, chip mạnh mẽ hơn và một tính năng ProMotion làm tăng '),
(35, 7, 'iPad Pro 12.9 WI-FI 4G 256GB (2017) Chính Hãng', '9800000.0000', '<p>Một chiếc máy tính bảng với màn hình lên đến 12.9 inch là điều không tưởng đã được Apple thiết kế thành công, mang đến trải nghiệm mạnh mẽ không khác gì một chiếc laptop nhưng lại gọn và nhẹ nhàng hơn rất nhiều. iPad Pro 12.9 phiên bản mới 2017 cung cấp thông số kỹ thuật được cải tiến đáng kể, bao gồm một màn hình mới với một tốc độ tốc độ phản hồi nhanh hơn và hỗ trợ tốt hơn Apple Pencil. Hiệu suất cũng được nâng cấp mới so với các model trước.</p>\r\n\r\n<p><img alt=\"ipad-pro-129-wi-fi-4g-256gb-20175\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang3.jpg\" style=\"height:258px; width:450px\" /></p>\r\n\r\n<p>Ngay cả khi sở hữu màn hình khổng lồ, iPad Pro vẫn có một thiết kế mỏng nhẹ đến kinh ngạc - chỉ 6.9 mm độ mỏng và 692g cân nặng. iPad Pro 12.9 WI-FI 4G 256 GB (2017) thậm chí còn nhẹ hơn phiên bản 2015 một chút (723g). Nhờ thiết kế vỏ nhôm nguyên khối kết hợp với những đường cắt kim cường sắc xảo đến từng chi tiết, iPad Pro gần như thu hút mọi ánh nhìn không chỉ bởi sự sang trọng, tỉ mỉ, nét đẹp cao cấp mà còn là kích thước quá khổ của nó.</p>\r\n\r\n<p><img alt=\"ipad-pro-129-wi-fi-4g-256gb-20173\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang7.jpg\" style=\"height:258px; width:450px\" /></p>\r\n\r\n<p>Màn hình trên iPad Pro 12.9 inch 2017 mới mặc dù có cùng kích thước và mật độ điểm ảnh (12.9 inch, 2.732 x 2.048 pixels, 264 ppi) nhưng hỗ trợ video HDR với tốc độ làm tươi 120 Hz với dải động cao hơn. Nói cách khác, Apple cung cấp cho màn hình máy tính bảng mới khả năng xử lý nhiều khung hình mỗi giây nhiều hơn gấp đôi so với bản 2015 giúp cho việc chơi game mượt mà và cải thiện sự tương tác với Pencil. Ngoài ra công nghệ True Tone Display vẫn được sử dụng để nâng cao khả năng hiển thị với màu sắc chính xác, độ tương phản tốt và độ sáng cao ở mức 600 nits.</p>\r\n\r\n<p><img alt=\"ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang2.jpg\" style=\"height:258px; width:450px\" /></p>\r\n\r\n<p> </p>\r\n\r\n<p>Một trong những nâng cấp đáng giá khác chính là hệ thống camera trên iPad Pro 12.9 inch (2017) với các cảm biến tương tự như iPhone 7 và gần như là tuyệt vời nhất trên máy tính bảng hiện nay. Bạn sẽ có một camera phía sau 12 MP, với khẩu độ F1.8, ống kính sáu phần tử và đèn quad-LED True Tone. Camera ở mặt trước đến với độ phân giải 7 MP và đi kèm tính năng Retina Flash. Đây một cải tiến lớn so với phiên bản năm 2015 với camera 8 MP/1.2 MP và không có đèn flash.</p>\r\n\r\n<p> </p>\r\n\r\n<p><img alt=\"ipad-pro-129-wi-fi-4g-256gb-2017\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang5.jpg\" style=\"height:258px; width:450px\" /></p>\r\n\r\n<p> </p>\r\n', 908000, 'ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang.jpg', '[\"ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang3.jpg\",\"ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang5.jpg\",\"ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang6.jpg\",\"ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang7.jpg\"]', '2018-06-03', 2, 'iPad pro giá rẻ, ipad chính hãng', 'ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang', '1 năm', 100, 0, 0, 0, '', 'Pad Pro 12.9 inch (2017) được trang bị một phiên bản chip A10X Fusion. Con chipset này có sáu lõi CPU: ba lõi hiệu suất cao + ba lõi tiết kiệm năng lượng và GPU đồ họa 12 lõi.');
INSERT INTO `product` (`id`, `categories_id`, `name`, `price`, `content`, `discount`, `image_link`, `image_list`, `created`, `view`, `meta_key`, `site_title`, `warranty`, `quantity`, `buyed`, `rate_total`, `rate_count`, `gifts`, `meta_desc`) VALUES
(36, 7, 'iPad Pro 12.9 WI-FI 64GB (2017) Chính Hãng', '999000.0000', '<p>Một chiếc máy tính bảng với màn hình lên đến 12.9 inch là điều không tưởng đã được Apple thiết kế thành công, mang đến trải nghiệm mạnh mẽ không khác gì một chiếc laptop nhưng lại gọn và nhẹ nhàng hơn rất nhiều. iPad Pro 12.9 phiên bản mới 2017 cung cấp thông số kỹ thuật được cải tiến đáng kể, bao gồm một màn hình mới với một tốc độ tốc độ phản hồi nhanh hơn và hỗ trợ tốt hơn Apple Pencil. Hiệu suất cũng được nâng cấp mới so với các model trước.</p>\r\n\r\n<p><img alt=\"ipad-pro-129-wi-fi-4g-256gb-20175\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang3.jpg\" style=\"height:258px; width:450px\" /></p>\r\n\r\n<p>Ngay cả khi sở hữu màn hình khổng lồ, iPad Pro vẫn có một thiết kế mỏng nhẹ đến kinh ngạc - chỉ 6.9 mm độ mỏng và 692g cân nặng. iPad Pro 12.9 WI-FI 4G 256 GB (2017) thậm chí còn nhẹ hơn phiên bản 2015 một chút (723g). Nhờ thiết kế vỏ nhôm nguyên khối kết hợp với những đường cắt kim cường sắc xảo đến từng chi tiết, iPad Pro gần như thu hút mọi ánh nhìn không chỉ bởi sự sang trọng, tỉ mỉ, nét đẹp cao cấp mà còn là kích thước quá khổ của nó.</p>\r\n\r\n<p><img alt=\"ipad-pro-129-wi-fi-4g-256gb-20173\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang7.jpg\" style=\"height:258px; width:450px\" /></p>\r\n\r\n<p>Màn hình trên iPad Pro 12.9 inch 2017 mới mặc dù có cùng kích thước và mật độ điểm ảnh (12.9 inch, 2.732 x 2.048 pixels, 264 ppi) nhưng hỗ trợ video HDR với tốc độ làm tươi 120 Hz với dải động cao hơn. Nói cách khác, Apple cung cấp cho màn hình máy tính bảng mới khả năng xử lý nhiều khung hình mỗi giây nhiều hơn gấp đôi so với bản 2015 giúp cho việc chơi game mượt mà và cải thiện sự tương tác với Pencil. Ngoài ra công nghệ True Tone Display vẫn được sử dụng để nâng cao khả năng hiển thị với màu sắc chính xác, độ tương phản tốt và độ sáng cao ở mức 600 nits.</p>\r\n\r\n<p><img alt=\"ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang2.jpg\" style=\"height:258px; width:450px\" /></p>\r\n\r\n<p> </p>\r\n\r\n<p>Một trong những nâng cấp đáng giá khác chính là hệ thống camera trên iPad Pro 12.9 inch (2017) với các cảm biến tương tự như iPhone 7 và gần như là tuyệt vời nhất trên máy tính bảng hiện nay. Bạn sẽ có một camera phía sau 12 MP, với khẩu độ F1.8, ống kính sáu phần tử và đèn quad-LED True Tone. Camera ở mặt trước đến với độ phân giải 7 MP và đi kèm tính năng Retina Flash. Đây một cải tiến lớn so với phiên bản năm 2015 với camera 8 MP/1.2 MP và không có đèn flash.</p>\r\n\r\n<p> </p>\r\n\r\n<p><img alt=\"ipad-pro-129-wi-fi-4g-256gb-2017\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang5.jpg\" style=\"height:258px; width:450px\" /></p>\r\n', 99000, 'ipad-pro-12-9-wi-fi-64gb-2017-chinh-hang.jpg', '[\"ipad-pro-12-9-wi-fi-64gb-2017-chinh-hang2.jpg\",\"ipad-pro-12-9-wi-fi-64gb-2017-chinh-hang3.jpg\",\"ipad-pro-12-9-wi-fi-64gb-2017-chinh-hang4.jpg\"]', '2018-06-03', 2, 'iPad pro giá rẻ, ipad chính hãng', 'ipad-pro-12-9-wi-fi-64gb-2017-chinh-hang', '1 năm', 100, 0, 0, 0, '', 't chiếc máy tính bảng với màn hình lên đến 12.9 inch là điều không tưởng đã được Apple thiết kế thành công, mang đến trải nghiệm mạnh mẽ không khác gì một chiếc laptop nhưng lại gọn và nhẹ nhàng hơn rất nhiều'),
(37, 9, 'iPad 2018 Mini WiFi+4G 128GB Chính Hãng ', '7800000.0000', '<p>Một chiếc máy tính bảng với màn hình lên đến 12.9 inch là điều không tưởng đã được Apple thiết kế thành công, mang đến trải nghiệm mạnh mẽ không khác gì một chiếc laptop nhưng lại gọn và nhẹ nhàng hơn rất nhiều. iPad Pro 12.9 phiên bản mới 2017 cung cấp thông số kỹ thuật được cải tiến đáng kể, bao gồm một màn hình mới với một tốc độ tốc độ phản hồi nhanh hơn và hỗ trợ tốt hơn Apple Pencil. Hiệu suất cũng được nâng cấp mới so với các model trước.</p>\r\n\r\n<p><img alt=\"ipad-pro-129-wi-fi-4g-256gb-20175\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang3.jpg\" /></p>\r\n\r\n<p>Ngay cả khi sở hữu màn hình khổng lồ, iPad Pro vẫn có một thiết kế mỏng nhẹ đến kinh ngạc - chỉ 6.9 mm độ mỏng và 692g cân nặng. iPad Pro 12.9 WI-FI 4G 256 GB (2017) thậm chí còn nhẹ hơn phiên bản 2015 một chút (723g). Nhờ thiết kế vỏ nhôm nguyên khối kết hợp với những đường cắt kim cường sắc xảo đến từng chi tiết, iPad Pro gần như thu hút mọi ánh nhìn không chỉ bởi sự sang trọng, tỉ mỉ, nét đẹp cao cấp mà còn là kích thước quá khổ của nó.</p>\r\n\r\n<p><img alt=\"ipad-pro-129-wi-fi-4g-256gb-20173\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang7.jpg\" /></p>\r\n\r\n<p>Màn hình trên iPad Pro 12.9 inch 2017 mới mặc dù có cùng kích thước và mật độ điểm ảnh (12.9 inch, 2.732 x 2.048 pixels, 264 ppi) nhưng hỗ trợ video HDR với tốc độ làm tươi 120 Hz với dải động cao hơn. Nói cách khác, Apple cung cấp cho màn hình máy tính bảng mới khả năng xử lý nhiều khung hình mỗi giây nhiều hơn gấp đôi so với bản 2015 giúp cho việc chơi game mượt mà và cải thiện sự tương tác với Pencil. Ngoài ra công nghệ True Tone Display vẫn được sử dụng để nâng cao khả năng hiển thị với màu sắc chính xác, độ tương phản tốt và độ sáng cao ở mức 600 nits.</p>\r\n\r\n<p><img alt=\"ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang2.jpg\" /></p>\r\n\r\n<p> </p>\r\n\r\n<p>Một trong những nâng cấp đáng giá khác chính là hệ thống camera trên iPad Pro 12.9 inch (2017) với các cảm biến tương tự như iPhone 7 và gần như là tuyệt vời nhất trên máy tính bảng hiện nay. Bạn sẽ có một camera phía sau 12 MP, với khẩu độ F1.8, ống kính sáu phần tử và đèn quad-LED True Tone. Camera ở mặt trước đến với độ phân giải 7 MP và đi kèm tính năng Retina Flash. Đây một cải tiến lớn so với phiên bản năm 2015 với camera 8 MP/1.2 MP và không có đèn flash.</p>\r\n\r\n<p> </p>\r\n\r\n<p><img alt=\"ipad-pro-129-wi-fi-4g-256gb-2017\" src=\"/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang5.jpg\" /></p>\r\n', 780000, 'ipad-2018-wifi-4g-128gb-chinh-hang.jpg', '[]', '2018-06-03', 0, 'iPad Mini giá rẻ, ipad chính hãng', 'ipad-2018-mini-wifi-4g-128gb-chinh-hang', '1 năm', 100, 0, 0, 0, '', 'Apple đã làm cho máy tính bảng của mình hoàn hảo hơn các model trước đây khi tinh chỉnh kể cả thiết kế, phần mềm và nâng cấp phần cứng trên iPad Mini'),
(38, 7, 'iPad Pro 10.5 WI-FI 4G 512GB (2017) Chính Hãng', '11000000.0000', '<p>Một chiếc máy tính bảng với màn hình lên đến 12.9 inch là điều không tưởng đã được Apple thiết kế thành công, mang đến trải nghiệm mạnh mẽ không khác gì một chiếc laptop nhưng lại gọn và nhẹ nhàng hơn rất nhiều. iPad Pro 12.9 phiên bản mới 2017 cung cấp thông số kỹ thuật được cải tiến đáng kể, bao gồm một màn hình mới với một tốc độ tốc độ phản hồi nhanh hơn và hỗ trợ tốt hơn Apple Pencil. Hiệu suất cũng được nâng cấp mới so với các model trước.</p>\r\n\r\n<p><img alt=\"ipad-pro-129-wi-fi-4g-256gb-20175\" src=\"http://localhost:88/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang3.jpg\" /></p>\r\n\r\n<p>Ngay cả khi sở hữu màn hình khổng lồ, iPad Pro vẫn có một thiết kế mỏng nhẹ đến kinh ngạc - chỉ 6.9 mm độ mỏng và 692g cân nặng. iPad Pro 12.9 WI-FI 4G 256 GB (2017) thậm chí còn nhẹ hơn phiên bản 2015 một chút (723g). Nhờ thiết kế vỏ nhôm nguyên khối kết hợp với những đường cắt kim cường sắc xảo đến từng chi tiết, iPad Pro gần như thu hút mọi ánh nhìn không chỉ bởi sự sang trọng, tỉ mỉ, nét đẹp cao cấp mà còn là kích thước quá khổ của nó.</p>\r\n\r\n<p><img alt=\"ipad-pro-129-wi-fi-4g-256gb-20173\" src=\"http://localhost:88/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang7.jpg\" /></p>\r\n\r\n<p>Màn hình trên iPad Pro 12.9 inch 2017 mới mặc dù có cùng kích thước và mật độ điểm ảnh (12.9 inch, 2.732 x 2.048 pixels, 264 ppi) nhưng hỗ trợ video HDR với tốc độ làm tươi 120 Hz với dải động cao hơn. Nói cách khác, Apple cung cấp cho màn hình máy tính bảng mới khả năng xử lý nhiều khung hình mỗi giây nhiều hơn gấp đôi so với bản 2015 giúp cho việc chơi game mượt mà và cải thiện sự tương tác với Pencil. Ngoài ra công nghệ True Tone Display vẫn được sử dụng để nâng cao khả năng hiển thị với màu sắc chính xác, độ tương phản tốt và độ sáng cao ở mức 600 nits.</p>\r\n\r\n<p><img alt=\"ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang\" src=\"http://localhost:88/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang2.jpg\" /></p>\r\n\r\n<p> </p>\r\n\r\n<p>Một trong những nâng cấp đáng giá khác chính là hệ thống camera trên iPad Pro 12.9 inch (2017) với các cảm biến tương tự như iPhone 7 và gần như là tuyệt vời nhất trên máy tính bảng hiện nay. Bạn sẽ có một camera phía sau 12 MP, với khẩu độ F1.8, ống kính sáu phần tử và đèn quad-LED True Tone. Camera ở mặt trước đến với độ phân giải 7 MP và đi kèm tính năng Retina Flash. Đây một cải tiến lớn so với phiên bản năm 2015 với camera 8 MP/1.2 MP và không có đèn flash.</p>\r\n\r\n<p> </p>\r\n\r\n<p><img alt=\"ipad-pro-129-wi-fi-4g-256gb-2017\" src=\"http://localhost:88/ckfinder/userfiles/images/iPad%20Pro/ipad-pro-12-9-wi-fi-4g-256gb-2017-chinh-hang5.jpg\" /></p>\r\n', 0, 'ipad-pro-10-5-wi-fi-4g-512gb-2017-chinh-hang.jpg', '[]', '2018-06-03', 0, 'iPad pro giá rẻ, ipad chính hãng', 'ipad-pro-10-5-wi-fi-4g-512gb-2017-chinh-hang', '1 năm', 49, 0, 0, 0, '', 'Chiếc máy tính bảng với màn hình lên đến 12.9 inch là điều không tưởng đã được Apple thiết kế thành công, mang đến trải nghiệm mạnh mẽ không khác gì một chiếc laptop nhưng lại gọn và nhẹ nhàng hơn rất nhiều'),
(39, 10, 'iMac 21.5‑inch Retina 4K MNE02- NEW 2017 (Hàng chính hãng)', '9990000.0000', '<p>Bên cạnh việc ra mắt iMac Pro "siêu cấp", Apple còn nâng cấp cấu hình cho toàn bộ dòng iMac cũ và đó là một nâng cấp khá lớn. Cụ thể, chuyển CPU sang thế hệ mới nhất Core i7 Kaby Lake, RAM từ 32 - 64 GB, có hai cổng USB-C (Thunderbolt 3), card đồ họa tối đa Radeon Pro 580 (tương đương GTX 1060) và hỗ trợ VR, sẵn sàng để bạn làm việc và giải trí trong thế giới ảo.</p>\r\n\r\n<p><img alt=\"imac-21-5-inch-retina-4k-mne02-new-2017-hang-chinh-hang\" src=\"/ckfinder/userfiles/images/iMac/imac-21-5-inch-retina-4k-mne02-new-2017-hang-chinh-hang2.jpg\" style=\"height:254px; width:450px\" /></p>\r\n\r\n<p>Màn hình của iMac mới có độ sáng 500 nits, sáng hơn đời cũ 43%. iMac 2017 vẫn có hai kích thước màn hình 21,5" và 27". Trong đó bản 21,5" gồm hai độ phân giải 1080p hoặc 4K, bản 27" thì được 5K. iMac 2017 cũng được trang bị 2 cổng USB-C tương tự như iMac Pro có thể xuất cùng lúc 2 màn hình 4K@60Hz.</p>\r\n\r\n<p><img alt=\"imac-21-5-inch-retina-4k-mne02-new-2017-hang-chinh-hang2\" src=\"/ckfinder/userfiles/images/iMac/imac-21-5-inch-retina-4k-mne02-new-2017-hang-chinh-hang3.jpg\" style=\"height:341px; width:450px\" /></p>\r\n\r\n<p>Trong toàn bộ iMac mới, chỉ có bản 21,5" 1080p là dùng VGA tích hợp (Intel Iris Plus 640), các phiên bản còn lại dùng VGA Radeon Pro từ 555 đến cao nhất là 580 8 GB (có sức mạnh tương đương với GTX 1060), hỗ trợ VR đầy đủ. Tại buổi demo, Apple đã cho người ta thấy iMac chạy rất mượt với kính HTC Vive, điều mà các máy tính trước đây cần phải có một cấu hình rất cao để làm được điều đó.</p>\r\n\r\n<p> </p>\r\n\r\n<p> </p>\r\n', 100000, 'imac-21-5-inch-retina-4k-mne02-new-2017-hang-chinh-hang3.jpg', '[\"imac-21-5-inch-retina-4k-mne02-new-2017-hang-chinh-hang.jpg\",\"imac-21-5-inch-retina-4k-mne02-new-2017-hang-chinh-hang2.jpg\"]', '2018-06-03', 0, 'iMac pro giá rẻ, iMac retina cao cấpp', 'imac-21-5-inch-retina-4k-mne02-new-2017-hang-chinh-hang', '1 năm', 100, 0, 0, 0, '', 'Bên cạnh việc ra mắt iMac Pro \"siêu cấp\", Apple còn nâng cấp cấu hình cho toàn bộ dòng iMac cũ và đó là một nâng cấp khá lớn. Cụ thể, chuyển CPU sang thế hệ mới nhất C'),
(40, 10, 'iMac Pro – MQ2Y2 (8Core/32G/1TB/Vega 56) – New', '9900000.0000', '<p>Giống như dòng sản phầm iMac, iMac Pro cũng là dòng All-In-One, kết hợp hài hoà giữa dòng iMac truyền thống và sự mạnh mẽ của Mac Pro. Đây có thể coi là dòng máy All-In-One mạnh nhất trên thị trường hiện nay. Apple đã giới thiệu dòng sản phẩm này tại sự kiện WWDC17 và bắt đầu bán ra cuối năm 2017 phục vụ cho dân xử lý đồ hoạ cao cấp, đáp ứng sự phát triển mạnh mẽ của công nghệ VR, cũng như trí tuệ nhân tạo…</p>\r\n\r\n<p><img alt=\"imac-pro-mq2y2-8core-32g-1tb-vega-56-new\" src=\"/ckfinder/userfiles/images/iMac/imac-pro-mq2y2-8core-32g-1tb-vega-56-new.jpg\" style=\"height:450px; width:450px\" /></p>\r\n\r\n<p>Màn hình của iMac mới có độ sáng 500 nits, iMac Pro chỉ có một kích thước màn hình 27 inch, võ nhôm chuyển sang màu “space gray” chứ không dùng màu silver như các dòng iMac trước đây. Imac Pro cũng được trang bị 4 cổng USB-C và 4 cổng USB 3.0.</p>\r\n\r\n<p><img alt=\"imac-pro-mq2y2-8core-32g-1tb-vega-56-new2\" src=\"/ckfinder/userfiles/images/iMac/imac-pro-mq2y2-8core-32g-1tb-vega-56-new3.jpg\" style=\"height:338px; width:450px\" /></p>\r\n\r\n<p>Chiếc iMac Pro có thể xuất ra cùng lúc 2 màn hình có độ phân giải 5K hoặc 4 màn hình có độ phân giải 4K. CPU được sử dụng trong iMac Pro được hãng Intel tuỳ biến riêng và SSD cũng được thiết kế độc quyền cho Apple. Đứng ở góc nhìn kỹ thuật mà nói việc tạo ra iMac Pro là một kết quả xuất sắc vì Apple đã nhét một cấu hình siêu mạnh vào một thân máy mõng nhẹ, ít tiêu thụ điện năng, bên cạnh chi phí không hề thấp tí nào.</p>\r\n\r\n<p><img alt=\"imac-pro-mq2y2-8core-32g-1tb-vega-56-new3\" src=\"/ckfinder/userfiles/images/iMac/imac-pro-mq2y2-8core-32g-1tb-vega-56-new4.jpg\" style=\"height:372px; width:450px\" /></p>\r\n\r\n<p> </p>\r\n\r\n<p><strong>Tóm gọn cấu hình của iMac Pro:</strong></p>\r\n\r\n<ul>\r\n <li>Màn hình: 27″ Retina 5K, 5.120 x 2.880, độ sáng 500 nits, Wide color (P3)</li>\r\n <li>CPU: Xeon 8 nhân, 10 nhân, 14 nhân hoặc 18 nhân</li>\r\n <li>RAM: 32 GB 2.666MHz DDR4 có ECC, 64 GB hoặc 128 GB</li>\r\n <li>Lưu trữ: 1 TB SSD, 2 TB hoặc 4 TB SSD</li>\r\n <li>VGA: Radeon Pro Vega, 56 nhân, bộ nhớ 8 GB HBM2, tối đa 64 nhân và 16 GB HBM2</li>\r\n <li>Webcam: 1080p FaceTime</li>\r\n <li>4 x cổng Thunderbolt 3 (USB-C): Xuất được thêm 2 màn hình 5K@60Hz (5.120 x 2.880) hoặc 4 màn hình 4K@60Hz (3.840 x 2.160) hoặc 4 màn hình 4K@60Hz (4.096 x 2.304)</li>\r\n <li>4 x USB 3.0</li>\r\n <li>Cổng 3.5mm, khe thẻ nhớ, Ethernet 10Gbps, Wi-Fi ac, BT 4.2</li>\r\n <li>Kích thước: 650 x 516 x 203 mm</li>\r\n <li>Khối lượng: 9,7 kg</li>\r\n</ul>\r\n\r\n<p> </p>\r\n', 100000, 'imac-pro-mq2y2-8core-32g-1tb-vega-56-new.jpg', '[\"imac-pro-mq2y2-8core-32g-1tb-vega-56-new3.jpg\",\"imac-pro-mq2y2-8core-32g-1tb-vega-56-new4.jpg\"]', '2018-06-04', 0, 'iMac pro giá rẻ, iMac retina cao cấpp', 'imac-pro-mq2y2-8core-32g-1tb-vega-56-new', '1 năm', 100, 0, 0, 0, '', 'Apple đã giới thiệu dòng sản phẩm này tại sự kiện WWDC17 và bắt đầu bán ra cuối năm 2017 phục vụ cho dân xử lý đồ hoạ cao cấp, đáp ứng sự phát triển mạnh mẽ của công nghệ VR, cũng như trí tuệ nhân tạo'),
(41, 10, 'iMac 5K 27 inch 2014 – MF886 Max Option', '9890000.0000', '<p>Dòng sản phẩm All-in-One của Apple lâu nay vẫn luôn là sự lựa chọn hàng đầu của các chuyên gia nhiếp ảnh và điện ảnh nhờ có thiết kế tinh tế và hiệu năng cao. Chiếc Apple iMac 5K 27 inch màn hình Retina 5K mới vừa ra mắt cũng không ngoại lệ. Với màn hình 5K, chip xử lí Intel Core i7 thế hệ 4. Trong đó loại bỏ dòng iMac 27 inch không màn hình Retina và thay vào đó là toàn bộ cấu hình đều được nâng lên Retina 5K, cùng các thiết bị ngoại vi được nâng cấp thì iMac 2014 xứng đáng là người kế nhiệm dòng máy desktop của Apple.</p>\r\n\r\n<p><img alt=\"imac-5k-27-inch-2014-mf886-max-option\" src=\"/ckfinder/userfiles/images/iMac/imac-5k-27-inch-2014-mf886-max-option4.jpeg\" style=\"height:419px; width:450px\" /></p>\r\n\r\n<p>Bên cạnh việc lên đời với màn hình độ phân giải khủng, mẫu iMac 27 inch mới còn được Apple nâng cấp lên bộ xử lý Intel Core thế hệ thứ 4 mới nhất – tên mã Haswell và card đồ họa AMD. Bộ đôi iMac mới nói trên đều sở hữu kết nối Thunderbolt 2, Wi-Fi 802.11ac, ổ cứng Fusion Drive kèm 16GB bộ nhớ flash tốc độ cao.</p>\r\n\r\n<p><img alt=\"imac-5k-27-inch-2014-mf886-max-option2\" src=\"/ckfinder/userfiles/images/iMac/imac-5k-27-inch-2014-mf886-max-option5.jpeg\" style=\"height:338px; width:450px\" /></p>\r\n\r\n<p>Các cổng kết nối hiện diện trên iMac 27 inch Retina 5K tương tự như thế hệ trước, gồm một cổng Gigabit Ethernet, jack cắm tai nghe, 2 cổng Thunderbolt 2, đầu đọc thẻ nhớ SDXC và 4 cổng USB 3.0, tất cả đều nằm ở mặt sau của máy. Chữ “tất cả” cũng mang nghĩa cạnh bên thiết bị cũng không có cổng kết nối nào do Apple đã ưu tiên cho thiết kế mỏng. Hơi tiếc vì các sản phẩm cạnh tranh như Lenovo B50 và Dell XPS 18 (1820) đều có đầu đọc thẻ nhớ và cổng USB ở cạnh bên, như thế sẽ tiện hơn khi cần cắm thêm USB, thiết bị ngoại vi hoặc thẻ nhớ.</p>\r\n\r\n<p> </p>\r\n\r\n<p> </p>\r\n', 890000, 'imac-5k-27-inch-2014-mf886-max-option.jpg', '[\"imac-5k-27-inch-2014-mf886-max-option2.jpg\"]', '2018-06-04', 1, 'iMac pro giá rẻ, iMac retina cao cấpp', 'imac-5k-27-inch-2014-mf886-max-option', '1 năm', 100, 0, 0, 0, '', 'Dòng sản phẩm All-in-One của Apple lâu nay vẫn luôn là sự lựa chọn hàng đầu của các chuyên gia nhiếp ảnh và điện ảnh nhờ có thiết kế tinh tế và hiệu năng cao. Chiếc Apple iMac 5K 27 inch màn hình Retina 5K mới vừa ra mắt cũng không ngoại lệ'),
(42, 11, 'MacBook Pro 13in MPXQ2 Space Gray- Model 2017', '8900000.0000', '<p>Laptop Apple Macbook Pro 2017 được trang bị lớp vỏ nhôm nguyên khối Unibody rất đẹp và chắc chắn. Thiết kế mỏng, nhẹ và cực gọn gàng chỉ 1.49 cm, trọng lượng là 1.37 kg rất tiện lợi khi di chuyển.</p>\r\n\r\n<p> </p>\r\n\r\n<p>Apple Macbook Pro 2017 mang trong mình một sự sang trọng và đẳng cấp vượt trội đúng nghĩa của từ "Pro" so với phần còn lại.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang.jpg\" style=\"height:450px; width:450px\" /></p>\r\n\r\n<p>Đèn LED nền đẹp mắt trên bàn phím giúp tăng độ chính xác khi dùng phím nhất là vào ban đêm, ngoài ra đèn phím còn tạo điểm nhấn khác biệt và đầy sang trọng giúp chiếc Macbook Pro 2017 càng long lanh hơn.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang2\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang2.jpg\" style=\"height:281px; width:450px\" /></p>\r\n\r\n<p>Macbook Pro 2017 có bộ xử lý Intel Core i5 Kabylake tốc độ 2.30 GHz, card đồ họa tích hợp Intel® Iris™ Graphics 640, bộ nhớ RAM 8 GB, cùng ổ cứng lưu trữ SSD 128 GB giúp máy chạy mượt mà các thao tác sử dụng.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang3\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang3.jpg\" style=\"height:250px; width:450px\" /></p>\r\n\r\n<p>Apple Macbook Pro 2017 được trang bị thêm chuột cảm ứng lực (Force Touch) mới, giúp đem lại cho người dùng một cảm giác siêu mượt mà và cực tiện lợi để xem thông tin nhanh khi sử dụng nữa.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang5\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang4.jpg\" style=\"height:250px; width:450px\" /></p>\r\n', 900000, 'macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang.jpg', '[\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang2.jpg\",\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang3.jpg\",\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang4.jpg\"]', '2018-06-04', 0, 'Macbook Pro giá rẻ, Macbook Retina', 'macbook-pro-13in-mpxq2-space-gray-model-2017', '1 năm', 100, 0, 0, 0, '', 'Apple Macbook Pro 2017 là dòng sản phẩm cao cấp với thiết kế kim loại nguyên khối, chip i5 thế hệ thứ 7 và dùng ổ SSD dung lượng 128 GB mang đến sự bền bỉ và mạnh mẽ khi sử dụng.'),
(43, 11, 'MacBook Pro 13in MPXR2 Silver- Model 2017', '8900000.0000', '<p>Laptop Apple Macbook Pro 2017 được trang bị lớp vỏ nhôm nguyên khối Unibody rất đẹp và chắc chắn. Thiết kế mỏng, nhẹ và cực gọn gàng chỉ 1.49 cm, trọng lượng là 1.37 kg rất tiện lợi khi di chuyển.</p>\r\n\r\n<p> </p>\r\n\r\n<p>Apple Macbook Pro 2017 mang trong mình một sự sang trọng và đẳng cấp vượt trội đúng nghĩa của từ "Pro" so với phần còn lại.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang.jpg\" /></p>\r\n\r\n<p>Đèn LED nền đẹp mắt trên bàn phím giúp tăng độ chính xác khi dùng phím nhất là vào ban đêm, ngoài ra đèn phím còn tạo điểm nhấn khác biệt và đầy sang trọng giúp chiếc Macbook Pro 2017 càng long lanh hơn.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang2\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang2.jpg\" /></p>\r\n\r\n<p>Macbook Pro 2017 có bộ xử lý Intel Core i5 Kabylake tốc độ 2.30 GHz, card đồ họa tích hợp Intel® Iris™ Graphics 640, bộ nhớ RAM 8 GB, cùng ổ cứng lưu trữ SSD 128 GB giúp máy chạy mượt mà các thao tác sử dụng.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang3\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang3.jpg\" /></p>\r\n\r\n<p>Apple Macbook Pro 2017 được trang bị thêm chuột cảm ứng lực (Force Touch) mới, giúp đem lại cho người dùng một cảm giác siêu mượt mà và cực tiện lợi để xem thông tin nhanh khi sử dụng nữa.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang5\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang4.jpg\" /></p>\r\n', 900000, 'macbook-pro-13in-mpxr2-silver-model-2017-hang-chinh-hang.jpg', '[\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang21.jpg\",\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang31.jpg\",\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang41.jpg\"]', '2018-06-04', 0, 'Macbook Pro giá rẻ, Macbook Retina', 'macbook-pro-13in-mpxr2-silver-model-2017', '1 năm', 100, 0, 0, 0, '', ''),
(44, 11, 'MacBook Pro 15in Touch Bar MPTT2 Space Gray 2017', '9900000.0000', '<p>Apple cho ra mắt MacBook Pro 15in Touch Bar MPTT2 Space Gray với nhiều đột phá cả về thiết kế lẫn cấu hình. Điều đầu tiền cảm nhận được là dòng máy mới nhanh hơn, mạnh mẽ hơn, mỏng hơn và nhẹ hơn. Đặc biệt là sự đột phá khi Apple cho thêm thanh Touch Bar - là một dải OLED cảm ứng cho phép truy cập công cụ nhanh hơn.</p>\r\n\r\n<p><img alt=\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang.jpeg\" style=\"height:450px; width:450px\" /></p>\r\n\r\n<p> </p>\r\n\r\n<h3>Thiết kế cao cấp</h3>\r\n\r\n<p>MacBook Pro 15in Touch Bar MPTT2 Space Gray vẫn được tạo nên từ kim loại nguyên khối với thiết kế hoàn toàn mới, không còn sử dụng bản lề nhựa nhìn “không liên quan” như trên các thế hệ trước và đặc biệt là mỏng nhẹ hơn rất nhiều so với các sản phẩm trước đó. Apple còn bổ sung thêm lựa chọn cho người dùng khi không chi giữ màu bạc truyền thống mà còn thêm màu xám không gian (Space Gray). Logo quả táo không còn phát sáng nữa mà thay vào đó là táo bằng kim loại như bản Macbook 12 inch trước đó.</p>\r\n\r\n<p><img alt=\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang2\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang3.png\" style=\"height:253px; width:450px\" /></p>\r\n\r\n<h3>Touch Bar và Touch ID</h3>\r\n\r\n<p>Điểm khác biệt tiếp theo của MacBook Pro 15in Touch Bar MPTT2 Space Gray là bàn phím được thay thế hoàn toàn sang bàn phím thế hệ thứ 2 với thiết kế lẫy dạng cánh bướm, cùng với đó là Trackpad ForceTouch có kích thước rất lớn, lớn gấp đôi so với thế hệ cũ giúp người dùng thao tác thoải mái và dễ dàng hơn rất nhiều.</p>\r\n\r\n<p><img alt=\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang2.png\" style=\"height:450px; width:450px\" /></p>\r\n\r\n<h3>Kết nối với cổng Thunderbolt 3</h3>\r\n\r\n<p>Tích hợp cổng Thunderbolt 3 cung cấp kết nối với tốc độ cao và linh hoạt, so với băng thông Thunderbolt 2 có tốc độ nhanh gấp đôi khả năng truyền dữ liệu, video, sạc chỉ trong một kết nối duy nhật. Tốc độ chuyển dữ liệu của cổng Thunderbolt có tốc độ lên đến 40 Gbps.</p>\r\n\r\n<p> </p>\r\n\r\n<p><img alt=\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang4\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang4.jpg\" style=\"height:276px; width:450px\" /></p>\r\n', 900000, 'macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017.jpg', '[\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang2.png\",\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang3.png\",\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang4.jpg\"]', '2018-06-04', 0, 'Macbook Pro giá rẻ, Macbook Retina', 'macbook-pro-15in-touch-bar-mptt2-space-gray-2017', '1 năm', 100, 0, 0, 0, '', ''),
(45, 11, 'MacBook Pro 15in Touch Bar MPTU2 SILVER 2017', '9900000.0000', '<p>Apple cho ra mắt MacBook Pro 15in Touch Bar MPTT2 Space Gray với nhiều đột phá cả về thiết kế lẫn cấu hình. Điều đầu tiền cảm nhận được là dòng máy mới nhanh hơn, mạnh mẽ hơn, mỏng hơn và nhẹ hơn. Đặc biệt là sự đột phá khi Apple cho thêm thanh Touch Bar - là một dải OLED cảm ứng cho phép truy cập công cụ nhanh hơn.</p>\r\n\r\n<p><img alt=\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang.jpeg\" /></p>\r\n\r\n<p> </p>\r\n\r\n<h3>Thiết kế cao cấp</h3>\r\n\r\n<p>MacBook Pro 15in Touch Bar MPTT2 Space Gray vẫn được tạo nên từ kim loại nguyên khối với thiết kế hoàn toàn mới, không còn sử dụng bản lề nhựa nhìn “không liên quan” như trên các thế hệ trước và đặc biệt là mỏng nhẹ hơn rất nhiều so với các sản phẩm trước đó. Apple còn bổ sung thêm lựa chọn cho người dùng khi không chi giữ màu bạc truyền thống mà còn thêm màu xám không gian (Space Gray). Logo quả táo không còn phát sáng nữa mà thay vào đó là táo bằng kim loại như bản Macbook 12 inch trước đó.</p>\r\n\r\n<p><img alt=\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang2\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang3.png\" /></p>\r\n\r\n<h3>Touch Bar và Touch ID</h3>\r\n\r\n<p>Điểm khác biệt tiếp theo của MacBook Pro 15in Touch Bar MPTT2 Space Gray là bàn phím được thay thế hoàn toàn sang bàn phím thế hệ thứ 2 với thiết kế lẫy dạng cánh bướm, cùng với đó là Trackpad ForceTouch có kích thước rất lớn, lớn gấp đôi so với thế hệ cũ giúp người dùng thao tác thoải mái và dễ dàng hơn rất nhiều.</p>\r\n\r\n<p><img alt=\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang2.png\" /></p>\r\n\r\n<h3>Kết nối với cổng Thunderbolt 3</h3>\r\n\r\n<p>Tích hợp cổng Thunderbolt 3 cung cấp kết nối với tốc độ cao và linh hoạt, so với băng thông Thunderbolt 2 có tốc độ nhanh gấp đôi khả năng truyền dữ liệu, video, sạc chỉ trong một kết nối duy nhật. Tốc độ chuyển dữ liệu của cổng Thunderbolt có tốc độ lên đến 40 Gbps.</p>\r\n\r\n<p> </p>\r\n\r\n<p><img alt=\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang4\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang4.jpg\" /></p>\r\n', 900000, 'macbook-pro-15in-touch-bar-mptt2-space-gray-model-20171.jpg', '[\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang21.png\",\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang31.png\",\"macbook-pro-15in-touch-bar-mptt2-space-gray-model-2017-hang-chinh-hang41.jpg\"]', '2018-06-04', 0, '', 'macbook-pro-15in-touch-bar-mptu2-silver-2017', '1 năm', 100, 0, 0, 0, '', ''),
(46, 11, 'MacBook Pro 13in Touch Bar MNQF2 (SPACE GREY)', '8800000.0000', '<p>Laptop Apple Macbook Pro 2017 được trang bị lớp vỏ nhôm nguyên khối Unibody rất đẹp và chắc chắn. Thiết kế mỏng, nhẹ và cực gọn gàng chỉ 1.49 cm, trọng lượng là 1.37 kg rất tiện lợi khi di chuyển.</p>\r\n\r\n<p> </p>\r\n\r\n<p>Apple Macbook Pro 2017 mang trong mình một sự sang trọng và đẳng cấp vượt trội đúng nghĩa của từ "Pro" so với phần còn lại.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang.jpg\" /></p>\r\n\r\n<p>Đèn LED nền đẹp mắt trên bàn phím giúp tăng độ chính xác khi dùng phím nhất là vào ban đêm, ngoài ra đèn phím còn tạo điểm nhấn khác biệt và đầy sang trọng giúp chiếc Macbook Pro 2017 càng long lanh hơn.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang2\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang2.jpg\" /></p>\r\n\r\n<p>Macbook Pro 2017 có bộ xử lý Intel Core i5 Kabylake tốc độ 2.30 GHz, card đồ họa tích hợp Intel® Iris™ Graphics 640, bộ nhớ RAM 8 GB, cùng ổ cứng lưu trữ SSD 128 GB giúp máy chạy mượt mà các thao tác sử dụng.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang3\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang3.jpg\" /></p>\r\n\r\n<p>Apple Macbook Pro 2017 được trang bị thêm chuột cảm ứng lực (Force Touch) mới, giúp đem lại cho người dùng một cảm giác siêu mượt mà và cực tiện lợi để xem thông tin nhanh khi sử dụng nữa.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang5\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang4.jpg\" /></p>\r\n', 800000, 'macbook-pro-13in-touch-bar-mnqf2-space-grey.jpg', '[\"macbook-pro-13in-touch-bar-mnqf2-space-grey2.jpg\",\"macbook-pro-13in-touch-bar-mnqf2-space-grey3.jpg\"]', '2018-06-04', 0, '', 'macbook-pro-13in-touch-bar-mnqf2-space-grey', '1 năm', 100, 0, 0, 0, '', ''),
(47, 11, 'MacBook Pro 13in Touch Bar MPXY2 Silver 2017', '8800000.0000', '<p>Laptop Apple Macbook Pro 2017 được trang bị lớp vỏ nhôm nguyên khối Unibody rất đẹp và chắc chắn. Thiết kế mỏng, nhẹ và cực gọn gàng chỉ 1.49 cm, trọng lượng là 1.37 kg rất tiện lợi khi di chuyển.</p>\r\n\r\n<p> </p>\r\n\r\n<p>Apple Macbook Pro 2017 mang trong mình một sự sang trọng và đẳng cấp vượt trội đúng nghĩa của từ "Pro" so với phần còn lại.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang.jpg\" /></p>\r\n\r\n<p>Đèn LED nền đẹp mắt trên bàn phím giúp tăng độ chính xác khi dùng phím nhất là vào ban đêm, ngoài ra đèn phím còn tạo điểm nhấn khác biệt và đầy sang trọng giúp chiếc Macbook Pro 2017 càng long lanh hơn.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang2\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang2.jpg\" /></p>\r\n\r\n<p>Macbook Pro 2017 có bộ xử lý Intel Core i5 Kabylake tốc độ 2.30 GHz, card đồ họa tích hợp Intel® Iris™ Graphics 640, bộ nhớ RAM 8 GB, cùng ổ cứng lưu trữ SSD 128 GB giúp máy chạy mượt mà các thao tác sử dụng.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang3\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang3.jpg\" /></p>\r\n\r\n<p>Apple Macbook Pro 2017 được trang bị thêm chuột cảm ứng lực (Force Touch) mới, giúp đem lại cho người dùng một cảm giác siêu mượt mà và cực tiện lợi để xem thông tin nhanh khi sử dụng nữa.</p>\r\n\r\n<p><img alt=\"macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang5\" src=\"/ckfinder/userfiles/images/Macbook%20Pro/macbook-pro-13in-mpxq2-space-gray-model-2017-hang-chinh-hang4.jpg\" /></p>\r\n', 800000, 'macbook-pro-13in-touch-bar-mpxy2-silver-2017.jpg', '[\"macbook-pro-13in-touch-bar-mnqf2-space-grey21.jpg\",\"macbook-pro-13in-touch-bar-mnqf2-space-grey31.jpg\"]', '2018-06-04', 0, 'Macbook Pro giá rẻ, Macbook Retina', 'macbook-pro-13in-touch-bar-mpxy2-silver-2017', '1 năm', 100, 0, 0, 0, '', 'Apple Macbook Pro đã được rất nhiều người dùng yêu thích và tin dùng và giờ đây với phiên bản được trang bị Touch Bar cùng cảm biến vân tay độc đáo thì Macbook Pro Touch chắc chắn sẽ lại tạo nên cơn sốt trên thị trường.'),
(48, 12, 'Macbook Air 13-in MQD32- Model 2017 chính hãng', '7800000.0000', '<p>Apple Macbook Air 2017 có thiết kế tối giản nhưng lại vô cùng sang trọng. Toàn thân máy được gia công từ nhôm nguyên khối một cách tỉ mỉ và chính xác, tạo nên vẻ liền lạc và chắc chắn lại vừa thanh thoát, sang trọng. Nút Power khởi động máy được tích hợp luôn vào góc trên bên phải của bàn phím, vừa gọn vừa thẩm mỹ. Cả phần màn hình cũng được gia công kiểu Unibody hợp kim nhôm nguyên khối, các cạnh được bo tròn và dát mỏng tạo nên tổng thể máy một thiết kế tuyệt mỹ, có thể nói là đẹp nhất trong các dòng Ultrabook.</p>\r\n\r\n<p><img alt=\"macbook-air-13-inch-mqd32-model-2017\" src=\"/ckfinder/userfiles/images/Macbook%20Air/macbook-air-13-in-mqd32-model-2017-hang-chinh-hang2.jpg\" style=\"height:184px; width:450px\" /></p>\r\n\r\n<p>Apple Macbook Air 2017 MQD32 được trang bị bộ vi xử lý Intel Core i5 dual-core 1.8GHz, đạt tối đa 2.9GHz, Cache 3MB, RAM 8GB 1600MHz, card đồ họa Intel HD Graphics 6000 giúp máy có thể xử lý nhanh chóng và mượt mà các tác vụ của người dùng như soạn thảo văn bản, chơi game, lướt web, nghe nhạc, Autocad, Photoshop… Ngoài ra, máy còn được trang bị ổ cứng 128GB SSD cung cấp cho người dùng không gian rộng rãi để lưu trữ dữ liệu hay những bộ phim yêu thích.</p>\r\n\r\n<p><img alt=\"macbook-air-13-inch-mqd32-model-20172\" src=\"/ckfinder/userfiles/images/Macbook%20Air/macbook-air-13-in-mqd32-model-2017-hang-chinh-hang3.jpg\" style=\"height:184px; width:450px\" /></p>\r\n\r\n<p>Máy sử dụng hệ điều hành macOS Sierra có giao diện đẹp, bố cục được sắp xếp gọn gàng. Thiết bị còn cho phép đồng bộ dữ liệu giữa Mac và các thiết bị chạy iOS, hỗ trợ nhiều ứng dụng chuyên biệt. Hơn nữa, thiết bị trang bị 1 cổng Thunderbolt độc quyền có tốc độ truyền tải dữ liệu nhanh gấp 2 lần USB 3.0 hiện nay, 2 cổng USB 3.0 nên bạn có thể chuyển đổi dễ dàng từ cổng Thunderbolt thông qua cáp chuyển đổi.</p>\r\n\r\n<p><img alt=\"macbook-air-13-inch-mqd32-model-20173\" src=\"/ckfinder/userfiles/images/Macbook%20Air/macbook-air-13-in-mqd32-model-2017-hang-chinh-hang4.jpg\" style=\"height:184px; width:450px\" /></p>\r\n\r\n<p>Các động tác của Multi-Touch trong macOS Sierra làm cho tất cả mọi thứ bạn làm trên MacBook Air trực quan hơn, trực tiếp, và vui vẻ. Và Multi-Touch trackpad rộng rãi được thiết kế hoàn hảo cho họ, cho dù đó là một swipe ba ngón tay để kích hoạt Mission Control hoặc một nhúm bốn ngón tay để xem tất cả các ứng dụng của bạn trong Launchpad. Phản ứng cử chỉ được mịn màng và thực tế.</p>\r\n', 700000, 'macbook-air-13-in-mqd32-model-2017-hang-chinh-hang.jpg', '[\"macbook-air-13-in-mqd32-model-2017-hang-chinh-hang2.jpg\",\"macbook-air-13-in-mqd32-model-2017-hang-chinh-hang3.jpg\",\"macbook-air-13-in-mqd32-model-2017-hang-chinh-hang4.jpg\"]', '2018-06-04', 0, 'Macbook Air giá rẻ, Macbook air chính hãng', 'macbook-air-13-in-mqd32-model-2017-chinh-hang', '1 năm', 100, 0, 0, 0, '', 'Apple Macbook Air 2017 có thiết kế tối giản nhưng lại vô cùng sang trọng. Toàn thân máy được gia công từ nhôm nguyên khối một cách tỉ mỉ và chính xác'),
(49, 12, 'Macbook Air 13-in MQD42- Model 2017 chính hãng', '7800000.0000', '<p>Apple Macbook Air 2017 có thiết kế tối giản nhưng lại vô cùng sang trọng. Toàn thân máy được gia công từ nhôm nguyên khối một cách tỉ mỉ và chính xác, tạo nên vẻ liền lạc và chắc chắn lại vừa thanh thoát, sang trọng. Nút Power khởi động máy được tích hợp luôn vào góc trên bên phải của bàn phím, vừa gọn vừa thẩm mỹ. Cả phần màn hình cũng được gia công kiểu Unibody hợp kim nhôm nguyên khối, các cạnh được bo tròn và dát mỏng tạo nên tổng thể máy một thiết kế tuyệt mỹ, có thể nói là đẹp nhất trong các dòng Ultrabook.</p>\r\n\r\n<p><img alt=\"macbook-air-13-inch-mqd32-model-2017\" src=\"/ckfinder/userfiles/images/Macbook%20Air/macbook-air-13-in-mqd32-model-2017-hang-chinh-hang2.jpg\" /></p>\r\n\r\n<p>Apple Macbook Air 2017 MQD32 được trang bị bộ vi xử lý Intel Core i5 dual-core 1.8GHz, đạt tối đa 2.9GHz, Cache 3MB, RAM 8GB 1600MHz, card đồ họa Intel HD Graphics 6000 giúp máy có thể xử lý nhanh chóng và mượt mà các tác vụ của người dùng như soạn thảo văn bản, chơi game, lướt web, nghe nhạc, Autocad, Photoshop… Ngoài ra, máy còn được trang bị ổ cứng 128GB SSD cung cấp cho người dùng không gian rộng rãi để lưu trữ dữ liệu hay những bộ phim yêu thích.</p>\r\n\r\n<p><img alt=\"macbook-air-13-inch-mqd32-model-20172\" src=\"/ckfinder/userfiles/images/Macbook%20Air/macbook-air-13-in-mqd32-model-2017-hang-chinh-hang3.jpg\" /></p>\r\n\r\n<p>Máy sử dụng hệ điều hành macOS Sierra có giao diện đẹp, bố cục được sắp xếp gọn gàng. Thiết bị còn cho phép đồng bộ dữ liệu giữa Mac và các thiết bị chạy iOS, hỗ trợ nhiều ứng dụng chuyên biệt. Hơn nữa, thiết bị trang bị 1 cổng Thunderbolt độc quyền có tốc độ truyền tải dữ liệu nhanh gấp 2 lần USB 3.0 hiện nay, 2 cổng USB 3.0 nên bạn có thể chuyển đổi dễ dàng từ cổng Thunderbolt thông qua cáp chuyển đổi.</p>\r\n\r\n<p><img alt=\"macbook-air-13-inch-mqd32-model-20173\" src=\"/ckfinder/userfiles/images/Macbook%20Air/macbook-air-13-in-mqd32-model-2017-hang-chinh-hang4.jpg\" /></p>\r\n\r\n<p>Các động tác của Multi-Touch trong macOS Sierra làm cho tất cả mọi thứ bạn làm trên MacBook Air trực quan hơn, trực tiếp, và vui vẻ. Và Multi-Touch trackpad rộng rãi được thiết kế hoàn hảo cho họ, cho dù đó là một swipe ba ngón tay để kích hoạt Mission Control hoặc một nhúm bốn ngón tay để xem tất cả các ứng dụng của bạn trong Launchpad. Phản ứng cử chỉ được mịn màng và thực tế.</p>\r\n', 700000, 'macbook-air-13-in-mqd42-model-2017-hang-chinh-hang.jpg', '[\"macbook-air-13-in-mqd32-model-2017-hang-chinh-hang21.jpg\",\"macbook-air-13-in-mqd32-model-2017-hang-chinh-hang31.jpg\",\"macbook-air-13-in-mqd32-model-2017-hang-chinh-hang41.jpg\"]', '2018-06-04', 0, 'Macbook Air giá rẻ, Macbook air chính hãng', 'macbook-air-13-in-mqd42-model-2017-chinh-hang', '1 năm', 100, 0, 0, 0, '', 'Apple Macbook Air 2017 có thiết kế tối giản nhưng lại vô cùng sang trọng. Toàn thân máy được gia công từ nhôm nguyên khối một cách tỉ mỉ và chính xác');
-- --------------------------------------------------------
--
-- Table structure for table `slide`
--
CREATE TABLE `slide` (
`id` int(11) NOT NULL,
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`description` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`image_link` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`link` varchar(150) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`info` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
`sort_order` int(10) NOT NULL,
`status` tinyint(4) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `slide`
--
INSERT INTO `slide` (`id`, `name`, `description`, `image_link`, `link`, `info`, `sort_order`, `status`) VALUES
(1, 'iMac Pro', 'Sức Mạnh Ưu Việt', 'banner_3.jpg', '', '0', 1, 1),
(2, 'Macbook Pro 2018', 'Chuẩn bị chào hàng', 'banner_2.jpg', '', '', 2, 1),
(3, 'Giảm giá 30%', 'iPad Pro Mới', 'banner_1.jpg', '', '', 3, 1);
-- --------------------------------------------------------
--
-- Table structure for table `support`
--
CREATE TABLE `support` (
`id` int(255) NOT NULL,
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`gmail` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`facebook` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`sort_order` tinyint(4) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `support`
--
INSERT INTO `support` (`id`, `name`, `gmail`, `facebook`, `phone`, `sort_order`) VALUES
(1, '<NAME>', '<EMAIL>', 'mymyho', '0986829823', 0);
-- --------------------------------------------------------
--
-- Table structure for table `transaction`
--
CREATE TABLE `transaction` (
`id` bigint(20) NOT NULL,
`type` tinyint(4) NOT NULL DEFAULT '0',
`status` tinyint(4) NOT NULL DEFAULT '0',
`user_id` int(11) NOT NULL DEFAULT '0',
`user_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`user_email` varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`user_phone` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`amount` decimal(15,4) NOT NULL DEFAULT '0.0000',
`payment` varchar(32) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`payment_info` text CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`message` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`security` varchar(16) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`created` date DEFAULT NULL,
`user_address` varchar(255) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `transaction`
--
INSERT INTO `transaction` (`id`, `type`, `status`, `user_id`, `user_name`, `user_email`, `user_phone`, `amount`, `payment`, `payment_info`, `message`, `security`, `created`, `user_address`) VALUES
(1, 0, 2, 1, '<PASSWORD>', '<EMAIL>', '0964082598', '17500.0000', 'offline', '', 'add order', '', '2018-05-16', '71/50 TL 08 P.Thạnh Lộc Quận 12 Tp.HCM'),
(2, 0, 1, 1, '<PASSWORD>', '<EMAIL>', '0964082598', '5500.0000', 'offline', '', 'order add', '', '2018-05-16', '71/50 TL 08 P.Thạnh Lộc Quận 12 Tp.HCM'),
(3, 0, 1, 1, '<PASSWORD>', '<EMAIL>', '0964082598', '33000.0000', 'offline', '', 'checkout v3', '', '2018-05-16', '71/50 TL 08 P.Thạnh Lộc Quận 12 Tp.HCM'),
(4, 0, 2, 1, '<PASSWORD>', '<EMAIL>', '0964082598', '87500.0000', 'offline', '', 'Tui cần giao hang vào ngày mai', '', '2018-05-20', '71/50 TL 08 P.Thạnh Lộc Quận 12 Tp.HCM'),
(5, 0, 0, 1, '<PASSWORD>', '<EMAIL>', '0964082598', '17500.0000', 'NL', '', 'Thanh toán khi nhận hàng', '', '2018-05-30', '71/50 TL 08 P.Thạnh Lộc Quận 12 Tp.HCM'),
(6, 0, 0, 1, '<PASSWORD>', '<EMAIL>', '0964082598', '35000.0000', 'ATM_ONLINE', '', 'Thanh toán rồi nghe', '', '2018-05-30', '71/50 TL 08 P.Thạnh Lộc Quận 12 Tp.HCM'),
(7, 0, 1, 2, '<NAME>', '<EMAIL>', '0987654321', '92900.0000', 'NL', '', 'Giao hàng nhanh vào ngày mai nhé', '', '2018-05-31', '309/3 nguyễn thái sơn phường 5 gò vấp'),
(8, 0, 0, 1, '<PASSWORD>', '<EMAIL>', '0964082598', '32200.0000', 'IB_ONLINE', '', 'giao hang nhanh ', '', '2018-06-02', '71/50 TL 08 P.Thạnh Lộc Quận 12 Tp.HCM'),
(9, 0, 0, 2, '<NAME>', '<EMAIL>', '0987654321', '7000000.0000', 'offline', '', 'Giao hàng nhanh vào chủ nhật', '', '2018-06-04', '309/3 nguyễn thái sơn phường 5 gò vấp'),
(10, 0, 0, 2, '<NAME>', '<EMAIL>', '0987654321', '7000000.0000', 'offline', '', 'Giao hàng nhanh vào chủ nhật', '', '2018-06-04', '309/3 nguyễn thái sơn phường 5 gò vấp');
-- --------------------------------------------------------
--
-- Table structure for table `user`
--
CREATE TABLE `user` (
`id` int(255) NOT NULL,
`name` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`email` varchar(50) COLLATE utf8_unicode_ci NOT NULL,
`phone` varchar(15) COLLATE utf8_unicode_ci NOT NULL,
`address` varchar(128) COLLATE utf8_unicode_ci NOT NULL,
`password` varchar(40) COLLATE utf8_unicode_ci NOT NULL,
`created` date NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
--
-- Dumping data for table `user`
--
INSERT INTO `user` (`id`, `name`, `email`, `phone`, `address`, `password`, `created`) VALUES
(1, '<PASSWORD>', '<EMAIL>', '<PASSWORD>', '71/50 TL 08 P.Thạnh Lộc Quận 12 Tp.HCM', '<PASSWORD>', '2018-05-01'),
(2, '<NAME>', '<EMAIL>', '0987654321', '309/3 nguyễn thái sơn phường 5 gò vấp', '<PASSWORD>', '2018-05-29'),
(3, '<NAME>', '<EMAIL>', '0909336622', '309/3 Nguyễn Thái Sơn Phường 5 Quận Gò Vấp', '<PASSWORD>', '2018-06-01');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`oauth_provider` varchar(255) NOT NULL,
`oauth_uid` varchar(255) NOT NULL,
`first_name` varchar(255) NOT NULL,
`last_name` varchar(255) NOT NULL,
`email` varchar(255) NOT NULL,
`gender` varchar(10) NOT NULL,
`locale` varchar(10) NOT NULL,
`picture_url` varchar(255) NOT NULL,
`profile_url` varchar(255) NOT NULL,
`created` datetime NOT NULL,
`modified` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `oauth_provider`, `oauth_uid`, `first_name`, `last_name`, `email`, `gender`, `locale`, `picture_url`, `profile_url`, `created`, `modified`) VALUES
(1, 'google', '113594903429420748260', '<NAME>', 'Hồ', '<EMAIL>', '', 'vi', 'https://lh4.googleusercontent.com/-FYPmkOnUARs/AAAAAAAAAAI/AAAAAAAAAwg/CE_jBbgWYDo/photo.jpg', 'https://plus.google.com/113594903429420748260', '2018-05-29 07:44:02', '2018-05-29 13:50:24'),
(2, 'google', '102879696542009488572', 'nhok', 'romk', '<EMAIL>', '', 'vi', 'https://lh6.googleusercontent.com/-i1PY0TBIuW4/AAAAAAAAAAI/AAAAAAAAAEc/yNzdTx8FqZ8/photo.jpg', 'https://plus.google.com/102879696542009488572', '2018-05-29 07:47:36', '2018-05-29 13:54:27');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `admin_group`
--
ALTER TABLE `admin_group`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `comment`
--
ALTER TABLE `comment`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `contact`
--
ALTER TABLE `contact`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `info`
--
ALTER TABLE `info`
ADD PRIMARY KEY (`id`);
ALTER TABLE `info` ADD FULLTEXT KEY `title` (`title`);
--
-- Indexes for table `menu`
--
ALTER TABLE `menu`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `news`
--
ALTER TABLE `news`
ADD PRIMARY KEY (`id`);
ALTER TABLE `news` ADD FULLTEXT KEY `title` (`title`);
--
-- Indexes for table `order`
--
ALTER TABLE `order`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `product`
--
ALTER TABLE `product`
ADD PRIMARY KEY (`id`);
ALTER TABLE `product` ADD FULLTEXT KEY `name` (`name`);
--
-- Indexes for table `slide`
--
ALTER TABLE `slide`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `support`
--
ALTER TABLE `support`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `transaction`
--
ALTER TABLE `transaction`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user`
--
ALTER TABLE `user`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
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=4;
--
-- AUTO_INCREMENT for table `admin_group`
--
ALTER TABLE `admin_group`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `comment`
--
ALTER TABLE `comment`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `contact`
--
ALTER TABLE `contact`
MODIFY `id` int(128) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `info`
--
ALTER TABLE `info`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `menu`
--
ALTER TABLE `menu`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `news`
--
ALTER TABLE `news`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `order`
--
ALTER TABLE `order`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `product`
--
ALTER TABLE `product`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50;
--
-- AUTO_INCREMENT for table `slide`
--
ALTER TABLE `slide`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `support`
--
ALTER TABLE `support`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `transaction`
--
ALTER TABLE `transaction`
MODIFY `id` bigint(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `user`
--
ALTER TABLE `user`
MODIFY `id` int(255) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
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>delivery2/trigger_2.sql
-- =================================================================================================
-- Author: <NAME>
-- <NAME>
-- <NAME>
--
-- Description: Triggers for wear insertion and update
-- A device cannot be associated with a patient in overlapping time periods
-- A patient may have several devices at the same time but a device is only associated
-- with a single patient during a given time period.
-- =================================================================================================
DROP TRIGGER IF EXISTS check_overlap_insert;
DELIMITER $$
CREATE TRIGGER check_overlap_insert BEFORE INSERT ON wears
FOR EACH row
BEGIN
IF EXISTS (SELECT *
FROM wears
WHERE snum = new.snum
AND manuf = new.manuf
AND DATEDIFF(end,new.start) > 0
AND DATEDIFF(start,new.end) < 0) THEN
SIGNAL SQLSTATE '45000' set message_text = 'Overlapping Periods.';
END IF;
END;
$$
DELIMITER ;
DROP TRIGGER IF EXISTS check_overlap_update;
DELIMITER $$
CREATE TRIGGER check_overlap_update BEFORE UPDATE ON wears
FOR EACH row
BEGIN
IF EXISTS (SELECT *
FROM wears
WHERE snum = new.snum
AND manuf = new.manuf
AND DATEDIFF(end,new.start) > 0
AND DATEDIFF(start,new.end) < 0) THEN
SIGNAL SQLSTATE '45000' set message_text = 'Overlapping Periods.';
END IF;
END;
$$
DELIMITER ; |
SELECT DISTINCT INV.NAME "Investment Name",
SRM.FULL_NAME "Resource",
(
SELECT PROLE.LAST_NAME
FROM SRM_RESOURCES PROLE
WHERE PROLE.ID = TEAM.PRROLEID
) "Project Role",
DECODE (TEAM.PRBOOKING, 15, 'Hard', 10, 'Mixed', 5, 'Soft') "Booking Status",
DECODE (TEAM.PRISOPEN, 1, 'False', 0, 'True') "Open for Time"
FROM INV_INVESTMENTS INV
INNER JOIN PRTEAM TEAM
ON TEAM.PRPROJECTID = INV.ID
INNER JOIN SRM_RESOURCES SRM
ON SRM.ID = TEAM.PRRESOURCEID
WHERE INV.CODE = 'PR1002' --Altere pelo código do seu projeto
|
USE [Koski_SA]
GO
/****** Object: StoredProcedure [sa].[p_lataa_lukio_paatason_suoritus] Script Date: 22.12.2021 11:24:57 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [sa].[p_lataa_lukio_paatason_suoritus] AS
TRUNCATE TABLE sa.sa_lukio_paatason_suoritus
INSERT INTO sa.sa_lukio_paatason_suoritus
SELECT
a.opiskeluoikeus_oid
,a.paatason_suoritus_id
,a.suorituksen_tyyppi
,a.tavoitetutkinto
,a.oppimaara
,a.koulutus
,a.toimipiste_oid
,a.suorituskieli_koodiarvo
,a.vahvistus_paiva
,a.alku
,jarj_koulutus
,jarj_tavoitetutkinto
,a.rnk
FROM
(
SELECT *, RANK() OVER (PARTITION BY opiskeluoikeus_oid ORDER BY suorituksen_tyyppi,tavoitetutkinto) as rnk
FROM
(
SELECT DISTINCT
ps.opiskeluoikeus_oid
,paatason_suoritus_id
,suorituksen_tyyppi
-- ,koulutusmoduuli_koodiarvo
,CASE
WHEN oo.koulutusmuoto IN ('diatutkinto') THEN 'Deutsche Internationale Abitur; Reifeprüfung'
WHEN ps.suorituksen_tyyppi = 'preiboppimaara' THEN 'IB-tutkinto (International Baccalaureate)'
WHEN ps.suorituksen_tyyppi = 'internationalschoolmypvuosiluokka'
AND ps.koulutusmoduuli_koodiarvo IN ('10', '11', '12') THEN 'IB-tutkinto (International Baccalaureate)'
WHEN ps.suorituksen_tyyppi = 'internationalschooldiplomavuosiluokka' THEN 'IB-tutkinto (International Baccalaureate)'
WHEN koulutusluokitus_fi IS NULL THEN 'Ei tutkintotavoitetta'
WHEN [koulutusluokitus_fi] = 'Lukion oppimäärä' THEN 'Ylioppilastutkinto'
WHEN [koulutusluokitus_fi] IN ('Lukion aineen oppimäärä', 'Lukiokoulutukseen valmistava koulutus') THEN 'Ei tutkintotavoitetta'
WHEN [koulutusluokitus_fi] IS NOT NULL THEN koulutusluokitus_fi
ELSE 'Ei tietoa' END
AS tavoitetutkinto
,CASE
WHEN ps.suorituksen_tyyppi = 'luva' THEN 'Aineopiskelija (ei tutkintotavoitetta)'
WHEN ps.suorituksen_tyyppi LIKE 'internati%' THEN 'Ulkomainen tutkinto'
WHEN ps.suorituksen_tyyppi IN ('ibtutkinto', 'preiboppimaara', 'diatutkintovaihe', 'diavalmistavavaihe') THEN 'Ulkomainen tutkinto'
WHEN ps.[oppimaara] = 'nuortenops' THEN 'Nuorten oppimäärä'
WHEN ps.[oppimaara] = 'aikuistenops' THEN 'Aikuisten oppimäärä'
WHEN ps.suorituksen_tyyppi = 'lukionoppiaineenoppimaara' THEN 'Aineopiskelija (ei tutkintotavoitetta)'
WHEN ps.[oppimaara] = 'Ulkomainen tutkinto' THEN 'Ulkomainen tutkinto'
ELSE 'Ei tietoa' END
AS oppimaara
,CASE
WHEN koulutusluokitus_fi = 'Lukiokoulutukseen valmistava koulutus' THEN 'Lukiokoulutukseen valmistava koulutus'
ELSE 'Yleissivistävä lukiokoulutus' END
AS koulutus
,CASE
WHEN oo.koulutusmuoto IN ('diatutkinto') THEN 2
WHEN oo.koulutusmuoto = 'ibtutkinto' THEN 3
WHEN ps.suorituksen_tyyppi = 'preiboppimaara' THEN 3
WHEN ps.suorituksen_tyyppi = 'internationalschoolmypvuosiluokka'
AND ps.koulutusmoduuli_koodiarvo IN ('10', '11', '12') THEN 3
WHEN ps.suorituksen_tyyppi = 'internationalschooldiplomavuosiluokka' THEN 3
WHEN koulutusluokitus_fi IS NULL THEN 4
WHEN [koulutusluokitus_fi] = 'Lukion oppimäärä' THEN 1
WHEN [koulutusluokitus_fi] IN ('Lukion aineen oppimäärä', 'Lukiokoulutukseen valmistava koulutus') THEN 4
WHEN [koulutusluokitus_fi] IS NOT NULL THEN 8
ELSE 9 END
AS jarj_tavoitetutkinto
,CASE
WHEN koulutusluokitus_fi = 'Lukiokoulutukseen valmistava koulutus' THEN 2
ELSE 1 END
AS jarj_koulutus
,toimipiste_oid
,suorituskieli_koodiarvo
,vahvistus_paiva
,alku
,rnk1
FROM sa.sa_koski_paatason_suoritus ps
JOIN sa.sa_koski_opiskeluoikeus oo on oo.opiskeluoikeus_oid = ps.opiskeluoikeus_oid
LEFT JOIN (SELECT * ,
rnk1 = RANK() OVER (PARTITION BY opiskeluoikeus_oid ORDER BY alku)
FROM
sa.sa_koski_opiskeluoikeus_aikajakso
WHERE tila = 'lasna') ooa ON ooa.opiskeluoikeus_oid = oo.opiskeluoikeus_oid
LEFT JOIN ANTERO.dw.d_koulutusluokitus AS d5 ON ps.koulutusmoduuli_koodiarvo = d5.koulutusluokitus_koodi
WHERE ((ps.suorituksen_tyyppi IN ('ibtutkinto', 'preiboppimaara', 'lukionoppiaineenoppimaara',
'lukionoppimaara', 'diatutkintovaihe', 'diavalmistavavaihe', 'luva', 'internationalschooldiplomavuosiluokka'))
OR
(ps.suorituksen_tyyppi = 'internationalschoolmypvuosiluokka' AND ps.koulutusmoduuli_koodiarvo IN ('10', '11', '12')))
AND rnk1 = 1
) b ) a
|
-- phpMyAdmin SQL Dump
-- version 4.8.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Waktu pembuatan: 01 Bulan Mei 2020 pada 16.02
-- Versi server: 10.1.37-MariaDB
-- Versi PHP: 7.2.12
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: `toko_bangunan`
--
-- --------------------------------------------------------
--
-- Struktur dari tabel `barang`
--
CREATE TABLE `barang` (
`id` int(11) NOT NULL,
`nama` varchar(250) NOT NULL,
`harga` int(250) NOT NULL,
`stok` int(250) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `barang`
--
INSERT INTO `barang` (`id`, `nama`, `harga`, `stok`) VALUES
(1, 'Semen 3 Roda 1kg', 65000, 10),
(2, 'Genteng', 10000, 50),
(4, 'Pipa PVC Wavin D 1.50?', 29000, 50),
(5, 'batako ringan', 3500, 80),
(6, 'Paku Payung', 5000, 200);
-- --------------------------------------------------------
--
-- Struktur dari tabel `karyawan`
--
CREATE TABLE `karyawan` (
`id` int(11) NOT NULL,
`nama` varchar(255) NOT NULL,
`jk` varchar(8) NOT NULL,
`alamat` varchar(255) NOT NULL,
`kontak` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `karyawan`
--
INSERT INTO `karyawan` (`id`, `nama`, `jk`, `alamat`, `kontak`) VALUES
(1, 'Angelan', 'Wanita', 'solo', '081322890736'),
(2, 'Andrean', 'pria', 'Magelang', '087892990326'),
(3, 'Fahrudin', 'Pria', 'Umbulharjo', '081335490090'),
(4, 'Sintia', 'Wanita', 'Jakarta', '085772441357'),
(5, 'Dodi', 'Pria', 'Madiun', '081448556721');
-- --------------------------------------------------------
--
-- Struktur dari tabel `pembelian`
--
CREATE TABLE `pembelian` (
`id` int(11) NOT NULL,
`id_barang` int(11) NOT NULL,
`tgl_transaksi` date NOT NULL,
`stok` int(11) NOT NULL,
`harga` int(11) NOT NULL,
`total` int(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data untuk tabel `pembelian`
--
INSERT INTO `pembelian` (`id`, `id_barang`, `tgl_transaksi`, `stok`, `harga`, `total`) VALUES
(1, 5, '2020-05-01', 10, 3500, 35000),
(2, 5, '2020-05-01', 10, 3500, 35000),
(5, 5, '2020-05-01', 10, 3500, 35000);
--
-- Trigger `pembelian`
--
DELIMITER $$
CREATE TRIGGER `pembelian_barang` AFTER INSERT ON `pembelian` FOR EACH ROW BEGIN
UPDATE barang SET stok=stok-NEW.stok
WHERE id = NEW.id_barang;
END
$$
DELIMITER ;
--
-- Indexes for dumped tables
--
--
-- Indeks untuk tabel `barang`
--
ALTER TABLE `barang`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `karyawan`
--
ALTER TABLE `karyawan`
ADD PRIMARY KEY (`id`);
--
-- Indeks untuk tabel `pembelian`
--
ALTER TABLE `pembelian`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT untuk tabel yang dibuang
--
--
-- AUTO_INCREMENT untuk tabel `barang`
--
ALTER TABLE `barang`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT untuk tabel `karyawan`
--
ALTER TABLE `karyawan`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT untuk tabel `pembelian`
--
ALTER TABLE `pembelian`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
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>database/db_v2/laravel_ecommerce.sql
-- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 15, 2020 at 05:05 PM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.3.10
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: `laravel_ecommerce`
--
-- --------------------------------------------------------
--
-- Table structure for table `admins`
--
CREATE TABLE `admins` (
`id` bigint(20) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `brands`
--
CREATE TABLE `brands` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `brands`
--
INSERT INTO `brands` (`id`, `name`, `description`, `image`, `created_at`, `updated_at`) VALUES
(2, 'Sony', NULL, '1599578876.png', '2020-09-08 08:32:35', '2020-09-08 09:27:56'),
(3, 'Samsung', NULL, '1599578955.jpeg', '2020-09-08 08:33:57', '2020-09-08 09:29:15'),
(4, 'Others', NULL, '1599575771.jpg', '2020-09-08 08:36:11', '2020-09-08 08:36:11'),
(5, 'Ray Ban', 'Ray Ban Products', '1599584202.png', '2020-09-08 10:56:42', '2020-09-08 10:56:42'),
(6, 'Xiaomi', NULL, '1599591666.png', '2020-09-08 13:01:06', '2020-09-08 13:01:06');
-- --------------------------------------------------------
--
-- Table structure for table `carts`
--
CREATE TABLE `carts` (
`id` int(10) UNSIGNED NOT NULL,
`product_id` int(10) UNSIGNED NOT NULL,
`user_id` int(10) UNSIGNED DEFAULT NULL,
`order_id` int(10) UNSIGNED DEFAULT NULL,
`ip_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`product_quantity` int(11) NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `carts`
--
INSERT INTO `carts` (`id`, `product_id`, `user_id`, `order_id`, `ip_address`, `product_quantity`, `created_at`, `updated_at`) VALUES
(4, 13, 1, NULL, '127.0.0.1', 2, '2020-09-19 10:22:12', '2020-10-06 09:21:17'),
(5, 15, 1, NULL, '127.0.0.1', 1, '2020-09-19 10:22:28', '2020-09-19 10:22:28'),
(6, 10, NULL, NULL, '127.0.0.1', 1, '2020-09-24 05:40:43', '2020-09-24 05:40:43');
-- --------------------------------------------------------
--
-- Table structure for table `categories`
--
CREATE TABLE `categories` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`parent_id` int(11) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `name`, `description`, `image`, `parent_id`, `created_at`, `updated_at`) VALUES
(9, 'Fashion', 'Fashion Category', '1599382548.jpg', NULL, '2020-09-06 02:55:48', '2020-09-06 02:55:48'),
(10, 'Sunglass', 'good sunglasses', '1599382839.jpg', 9, '2020-09-06 03:00:39', '2020-09-06 03:00:39'),
(11, 'Household', 'All household products', '1599384617.jpg', NULL, '2020-09-06 03:04:31', '2020-09-06 03:30:18'),
(12, 'Electronics', NULL, '1599590989.jpg', NULL, '2020-09-08 12:49:49', '2020-09-08 12:49:49'),
(13, 'Camera', NULL, '1599591036.jpg', 12, '2020-09-08 12:50:36', '2020-09-08 12:50:36'),
(14, 'Cell Phones', NULL, '1599591598.png', 12, '2020-09-08 12:59:58', '2020-09-08 13:00:22'),
(15, 'Smartwatch', NULL, '1602059408.png', 12, '2020-10-07 02:30:08', '2020-10-07 02:30:08');
-- --------------------------------------------------------
--
-- Table structure for table `districts`
--
CREATE TABLE `districts` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`division_id` int(10) UNSIGNED NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `districts`
--
INSERT INTO `districts` (`id`, `name`, `division_id`, `created_at`, `updated_at`) VALUES
(1, 'Brahmanbaria', 3, '2020-09-14 14:05:19', '2020-09-14 14:05:49'),
(3, 'Bandarban', 3, '2020-09-14 14:06:40', '2020-09-14 14:06:40'),
(4, 'Chittagong', 3, '2020-09-14 14:06:53', '2020-09-14 14:06:53'),
(5, 'Dhaka', 2, '2020-09-14 14:07:05', '2020-09-14 14:07:05');
-- --------------------------------------------------------
--
-- Table structure for table `divisions`
--
CREATE TABLE `divisions` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`priority` tinyint(3) UNSIGNED NOT NULL DEFAULT 1,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `divisions`
--
INSERT INTO `divisions` (`id`, `name`, `priority`, `created_at`, `updated_at`) VALUES
(2, 'Dhaka', 1, '2020-09-14 14:04:46', '2020-09-14 14:04:46'),
(3, 'Chittagong', 2, '2020-09-14 14:05:02', '2020-09-14 14:05:02'),
(4, 'Rajshahi', 3, '2020-09-14 14:08:27', '2020-09-14 14:08:27'),
(5, 'Khulna', 4, '2020-09-14 14:09:57', '2020-09-14 14:09:57'),
(6, 'Barisal', 5, '2020-09-14 14:10:14', '2020-09-14 14:10:14'),
(7, 'Sylhet', 6, '2020-09-14 14:10:40', '2020-09-14 14:10:40'),
(8, 'Rangpur', 7, '2020-09-14 14:10:53', '2020-09-14 14:10:53'),
(9, 'Mymensingh', 8, '2020-09-14 14:11:08', '2020-09-14 14:11:08');
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(2, '2019_08_19_000000_create_failed_jobs_table', 1),
(9, '2020_04_21_081939_create_products_table', 3),
(10, '2020_05_09_165516_create_categories_table', 4),
(11, '2020_05_09_165858_create_brands_table', 4),
(12, '2020_05_09_165937_create_admins_table', 4),
(13, '2020_05_09_172631_create_product_images_table', 4),
(14, '2014_10_12_100000_create_password_resets_table', 5),
(17, '2020_09_14_170011_create_divisions_table', 6),
(18, '2020_09_14_170223_create_districts_table', 6),
(21, '2014_10_12_000000_create_users_table', 7),
(27, '2020_09_19_055924_create_orders_table', 10),
(28, '2020_09_19_060113_create_carts_table', 11);
-- --------------------------------------------------------
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id` int(10) UNSIGNED NOT NULL,
`user_id` int(10) UNSIGNED DEFAULT NULL,
`ip_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`shipping_address` text COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`message` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_paid` tinyint(1) NOT NULL DEFAULT 0,
`is_completed` tinyint(1) NOT NULL DEFAULT 0,
`is_seen_by_admin` tinyint(1) NOT NULL DEFAULT 0,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `password_resets`
--
INSERT INTO `password_resets` (`email`, `token`, `created_at`) VALUES
('<EMAIL>', <PASSWORD>dIcf0lhTlGw2nozuARquTSRiCPdu7krHvlsStLSQWRThKjE8CX6', '2020-09-12 08:30:16'),
('<EMAIL>', <PASSWORD>', '2020-09-14 00:49:35');
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` int(10) UNSIGNED NOT NULL,
`category_id` int(10) UNSIGNED NOT NULL,
`brand_id` int(10) UNSIGNED NOT NULL,
`title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` text COLLATE utf8mb4_unicode_ci NOT NULL,
`slug` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`quantity` int(11) NOT NULL DEFAULT 1,
`price` int(11) NOT NULL,
`status` tinyint(4) NOT NULL DEFAULT 0,
`offer_price` int(11) DEFAULT NULL,
`admin_id` int(10) UNSIGNED NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `products`
--
INSERT INTO `products` (`id`, `category_id`, `brand_id`, `title`, `description`, `slug`, `quantity`, `price`, `status`, `offer_price`, `admin_id`, `created_at`, `updated_at`) VALUES
(10, 13, 2, 'Sony Shot+', 'Sony Cybershot\r\n20 Megapixel\r\n20X Zoom', 'sony-camera', 18, 28000, 0, NULL, 1, '2020-09-08 09:23:18', '2020-09-08 13:14:21'),
(13, 13, 3, 'Samsung S1', 'Samsung digital camera\r\n16 megapixel\r\n16X zoom', 'samsung-s1', 16, 20000, 0, NULL, 1, '2020-09-08 13:15:32', '2020-09-08 13:15:32'),
(15, 14, 6, 'Xiaomi POCO F1', 'Mobile Type Smartphone\r\nGSM/CDMA Yes\r\nNetwork 4G / LTE\r\nSIM Dual SIM\r\nDisplay 6.18\" IPS LCD Capacitive Touchscreen, 1080 x 2246 Resolution\r\nSound Loudspeaker\r\nRAM 6 GB\r\nBuilt In Memory 64 GB\r\nExternal Memory Up To 256 GB\r\nCPU Qualcomm SDM845 Snapdragon 845\r\nGPU Adreno 630\r\nGPRS/EDGE Yes\r\nWLAN Yes\r\nBluetooth 5.0, A2DP, LE, aptX HD\r\nUSB 2.0, Type-C 1.0 Reversible Connector, USB On-The-Go\r\nCamera 12 MP + 5 MP\r\nFront Camera 20 MP\r\nVideo 2160p@30fps, 1080p@30fps, 1080p@240fps\r\nOS Android 8.0 Oreo\r\nGPS Yes\r\nSensor Infrared Face Recognition, Fingerprint Rear-mounted, Accelerometer, Gyro, Proximity, Barometer, Compass\r\nFM Radio FM Radio, Recording\r\nBattery Capacity Non-Removable Li-Po 4000 mAh Battery\r\nBattery Type Fixed\r\nStand By Dual Standby\r\nWeight 180 g', 'xiaomi-poco-f1', 10, 28000, 0, NULL, 1, '2020-09-08 13:42:21', '2020-09-08 13:42:21'),
(16, 10, 5, 'Ray Ban wayfarers', 'wayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarerswayfarers', 'ray-ban-wayfarers', 3, 20000, 0, NULL, 1, '2020-10-06 10:05:32', '2020-10-06 10:05:32'),
(17, 14, 6, 'Xiaomi POCO C3', 'LAUNCH Announced 2020, October 06\r\nStatus Coming soon. Exp. release 2020, October 16\r\nBODY Dimensions 164.9 x 77.1 x 9 mm (6.49 x 3.04 x 0.35 in)\r\nWeight 194 g (6.84 oz)\r\nSIM Dual SIM (Nano-SIM, dual stand-by)\r\nDISPLAY Type IPS LCD capacitive touchscreen, 16M colors\r\nSize 6.43 inches, 102.1 cm2 (~80.3% screen-to-body ratio)\r\nResolution 720 x 1600 pixels, 20:9 ratio (~270 ppi density)\r\nProtection Panda Glass\r\n 400 nits typ. brightness (advertised)\r\nPLATFORM OS Android 10, MIUI 12\r\nChipset MediaTek Helio G35 (12 nm)\r\nCPU Octa-core (4x2.3 GHz Cortex-A53 & 4x1.8 GHz Cortex-A53)\r\nGPU PowerVR GE8320\r\nMEMORY Card slot microSDXC (dedicated slot)\r\nInternal 32GB 3GB RAM, 64GB 4GB RAM\r\n eMMC 5.1\r\nMAIN CAMERA Triple 13 MP, f/2.2, 28mm (wide), 1.0µm, PDAF\r\n2 MP, f/2.4, (macro)\r\n2 MP, f/2.4, (depth)\r\nFeatures LED flash, HDR\r\nVideo 1080p@30fps\r\nSELFIE CAMERA Single 5 MP, f/2.2, (wide), 1.12µm\r\nFeatures HDR\r\nVideo 1080p@30fps\r\nSOUND Loudspeaker Yes\r\n3.5mm jack Yes\r\nCOMMS WLAN Wi-Fi 802.11 a/b/g/n, Wi-Fi Direct, hotspot\r\nBluetooth 5.0, A2DP, LE\r\nGPS Yes, with A-GPS, GLONASS, BDS\r\nRadio FM radio\r\nUSB microUSB 2.0, USB On-The-Go\r\nFEATURES Sensors Accelerometer, proximity\r\nBATTERY Type Li-Po 5000 mAh, non-removable', 'xiaomi-poco-c3', 6, 35000, 0, NULL, 1, '2020-10-07 02:17:39', '2020-10-07 02:17:39'),
(18, 14, 6, 'Xiaomi Mi 10T Pro', 'LAUNCH Announced 2020, September 30\r\nStatus Coming soon. Exp. release 2020, October\r\nBODY Dimensions 165.1 x 76.4 x 9.3 mm (6.5 x 3.01 x 0.37 in)\r\nWeight 218 g (7.69 oz)\r\nBuild Glass front (Gorilla Glass 5), glass back (Gorilla Glass 5), aluminum frame\r\nSIM Dual SIM (Nano-SIM, dual stand-by)\r\nDISPLAY Type IPS LCD capacitive touchscreen, 16M colors\r\nSize 6.67 inches, 107.4 cm2 (~85.2% screen-to-body ratio)\r\nResolution 1080 x 2400 pixels, 20:9 ratio (~395 ppi density)\r\nProtection Corning Gorilla Glass 5\r\n HDR10+\r\n144Hz refresh rate\r\n500 nits typ. brightness (advertised)\r\nPLATFORM OS Android 10, MIUI 12\r\nChipset Qualcomm SM8250 Snapdragon 865 (7 nm+)\r\nCPU Octa-core (1x2.84 GHz Kryo 585 & 3x2.42 GHz Kryo 585 & 4x1.80 GHz Kryo 585)\r\nGPU Adreno 650\r\nMEMORY Card slot No\r\nInternal 128GB 8GB RAM, 256GB 8GB RAM\r\n UFS 3.1\r\nMAIN CAMERA Triple 108 MP, f/1.7, 26mm (wide), 1/1.33\", 0.8µm, PDAF, OIS\r\n13 MP, f/2.4, 123˚ (ultrawide), 1.12µm\r\n5 MP, f/2.4, (macro), AF\r\nFeatures LED flash, HDR, panorama\r\nVideo 8K@30fps, 4K@30/60fps, 1080p@30/60/120/240/960fps; gyro-EIS\r\nSELFIE CAMERA Single 20 MP, f/2.2, 27mm (wide), 1/3.4\", 0.8µm\r\nFeatures HDR\r\nVideo 1080p@30fps, 720p@120fps\r\nSOUND Loudspeaker Yes, with stereo speakers\r\n3.5mm jack No\r\n 24-bit/192kHz audio\r\nCOMMS WLAN Wi-Fi 802.11 a/b/g/n/ac/6, dual-band, Wi-Fi Direct, hotspot\r\nBluetooth 5.1, A2DP, LE, aptX HD, aptX Adaptive\r\nGPS Yes, with dual-band A-GPS, GLONASS, BDS, GALILEO, QZSS\r\nNFC Yes\r\nInfrared port Yes\r\nRadio No\r\nUSB USB Type-C 2.0, USB On-The-Go\r\nFEATURES Sensors Fingerprint (side-mounted), accelerometer, gyro, proximity, compass, barometer\r\nBATTERY Type Li-Po 5000 mAh, non-removable\r\nCharging Fast charging 33W\r\nPower Delivery 3.0', 'xiaomi-mi-10t-pro', 5, 28000, 0, NULL, 1, '2020-10-07 02:20:11', '2020-10-07 02:20:11'),
(19, 14, 6, 'Redmi 9 Prime', 'LAUNCH Announced 2020, August 04\r\nStatus Available. Released 2020, August 06\r\nBODY Dimensions 163.3 x 77 x 9.1 mm (6.43 x 3.03 x 0.36 in)\r\nWeight 198 g (6.98 oz)\r\nBuild Glass front (Gorilla Glass 3), plastic back, plastic frame\r\nSIM Dual SIM (Nano-SIM, dual stand-by)\r\n Water-repellent coating\r\nDISPLAY Type IPS LCD capacitive touchscreen, 16M colors\r\nSize 6.53 inches, 104.7 cm2 (~83.2% screen-to-body ratio)\r\nResolution 1080 x 2340 pixels, 19.5:9 ratio (~395 ppi density)\r\nProtection Corning Gorilla Glass 3\r\n 400 nits typ. brightness (advertised)\r\nPLATFORM OS Android 10, MIUI 11\r\nChipset Mediatek Helio G80 (12 nm)\r\nCPU Octa-core (2x2.0 GHz Cortex-A75 & 6x1.8 GHz Cortex-A55)\r\nGPU Mali-G52 MC2\r\nMEMORY Card slot microSDXC (dedicated slot)\r\nInternal 64GB 4GB RAM, 128GB 4GB RAM\r\n eMMC 5.1\r\nMAIN CAMERA Quad 13 MP, f/2.2, 28mm (wide), 1/3.1\", 1.12µm, PDAF\r\n8 MP, f/2.2, 118˚ (ultrawide), 1/4.0\", 1.12µm\r\n5 MP, f/2.4, (macro)\r\n2 MP, f/2.4, (depth)\r\nFeatures LED flash, HDR, panorama\r\nVideo 1080p@30fps\r\nSELFIE CAMERA Single 8 MP, f/2.0, 27mm (wide), 1/4.0\", 1.12µm\r\nFeatures HDR\r\nVideo 1080p@30fps\r\nSOUND Loudspeaker Yes\r\n3.5mm jack Yes\r\nCOMMS WLAN Wi-Fi 802.11 a/b/g/n/ac, dual-band, Wi-Fi Direct, hotspot\r\nBluetooth 5.0, A2DP, LE\r\nGPS Yes, with A-GPS, GLONASS, BDS\r\nInfrared port Yes\r\nRadio Wireless FM radio (no wired headphones required)\r\nUSB USB Type-C 2.0, USB On-The-Go\r\nFEATURES Sensors Fingerprint (rear-mounted), accelerometer, proximity, compass\r\nBATTERY Type Li-Po 5020 mAh, non-removable\r\nCharging Fast charging 18W', 'xiaomi-redmi-9-prime', 7, 15000, 0, NULL, 1, '2020-10-07 02:22:47', '2020-10-07 02:52:15'),
(20, 13, 3, 'Samsung EV-NXF', '20.4MP Black', 'samsung-ev-nxf', 3, 30000, 0, NULL, 1, '2020-10-07 02:27:50', '2020-10-07 02:27:50'),
(21, 15, 3, 'Samsung Watch', 'Weight 12.0000\r\nOffer \r\n EMI Available\r\n Free Home/Office Delivery\r\n Original Accessories\r\nColor No\r\nCustom Attribute Sample Value', 'samsung-galaxy-watch', 7, 23000, 0, NULL, 1, '2020-10-07 02:31:10', '2020-10-07 02:51:58'),
(22, 14, 2, 'Sony Xperia XZ3', 'LAUNCH Announced 2018, August 30\r\nStatus Available. Released 2018, October 05\r\nBODY Dimensions 158 x 73 x 9.9 mm (6.22 x 2.87 x 0.39 in)\r\nWeight 193 g (6.81 oz)\r\nBuild Glass front (Gorilla Glass 5), glass back (Gorilla Glass 5), aluminum frame\r\nSIM Single SIM (Nano-SIM) or Hybrid Dual SIM (Nano-SIM, dual stand-by)\r\n IP65/IP68 dust/water resistant (up to 1.5m for 30 mins)\r\nDISPLAY Type P-OLED capacitive touchscreen, 16M colors\r\nSize 6.0 inches, 92.9 cm2 (~80.5% screen-to-body ratio)\r\nResolution 1440 x 2880 pixels, 18:9 ratio (~537 ppi density)\r\nProtection Corning Gorilla Glass 5\r\n HDR BT.2020\r\nTriluminos display\r\nX-Reality Engine\r\nPLATFORM OS Android 9.0 (Pie), upgradable to Android 10\r\nChipset Qualcomm SDM845 Snapdragon 845 (10 nm)\r\nCPU Octa-core (4x2.7 GHz Kryo 385 Gold & 4x1.7 GHz Kryo 385 Silver)\r\nGPU Adreno 630\r\nMEMORY Card slot microSDXC (uses shared SIM slot) - dual SIM model only\r\nInternal 64GB 4GB RAM, 64GB 6GB RAM\r\n UFS 2.1\r\nMAIN CAMERA Single 19 MP, f/2.0, 25mm (wide), 1/2.3\", 1.22µm, predictive PDAF, Laser AF\r\nFeatures LED flash, panorama, HDR\r\nVideo 4K@30fps, 1080p@60fps, 1080p@30fps (5-axis gyro-EIS), 1080p@960fps, HDR\r\nSELFIE CAMERA Single 13 MP, f/1.9, 23mm (wide), 1/3.1\", 1.12µm\r\nFeatures HDR\r\nVideo 1080p@30fps (5-axis gyro-EIS)\r\nSOUND Loudspeaker Yes, with stereo speakers', 'sony-xperia-xz3', 3, 18000, 0, NULL, 1, '2020-10-07 02:34:59', '2020-10-07 02:34:59'),
(23, 15, 3, 'Samsung Watch3', 'LAUNCH Announced 2020, August 05\r\nStatus Available. Released 2020, August 06\r\nBODY Dimensions 46.2 x 45 x 11.1 mm (1.82 x 1.77 x 0.44 in)\r\nWeight 53.8 (45mm), 48.2 g (41mm), 43 g (45mm tt.) (1.90 oz)\r\nBuild Glass front (Gorilla Glass DX), stainless steel frame 316L or titanium frame\r\nSIM eSIM\r\n Samsung Pay\r\nMIL-STD-810G compliant*\r\n50m water resistant (IP68)\r\nECG certified\r\nBlood pressure monitor\r\nCompatible with standard 20/22mm straps\r\nRotating bezel\r\n*does not guarantee ruggedness or use in extreme conditions\r\nDISPLAY Type Super AMOLED capacitive touchscreen, 16M colors\r\nSize 1.4 inches, 6.3 cm2 (~30.4% screen-to-body ratio)\r\nResolution 360 x 360 pixels, 1:1 ratio (~364 ppi density)\r\nProtection Corning Gorilla Glass DX\r\n Always-on display\r\nPLATFORM OS Tizen-based wearable OS 5.5\r\nChipset Exynos 9110 (10 nm)\r\nCPU Dual-core 1.15 GHz Cortex-A53\r\nGPU Mali-T720\r\nMEMORY Card slot No\r\nInternal 8GB 1GB RAM\r\n eMMC\r\nCAMERA No\r\nSOUND Loudspeaker Yes\r\n3.5mm jack No\r\nCOMMS WLAN Wi-Fi 802.11 b/g/n\r\nBluetooth 5.0, A2DP, LE\r\nGPS Yes, with A-GPS, GLONASS, GALILEO, BDS\r\nNFC Yes\r\nRadio No\r\nUSB No\r\nFEATURES Sensors Accelerometer, gyro, heart rate, barometer\r\n Natural language commands and dictation\r\nBATTERY Type Li-Ion 340 mAh, non-removable\r\nCharging Qi wireless charging', 'samsung-galaxy-watch3', 5, 30000, 0, NULL, 1, '2020-10-07 02:39:33', '2020-10-07 02:51:34'),
(24, 14, 3, 'Samsung Note20', 'LAUNCH Announced 2020, August 05\r\nStatus Available. Released 2020, August 21\r\nBODY Dimensions 164.8 x 77.2 x 8.1 mm (6.49 x 3.04 x 0.32 in)\r\nWeight 208 g (7.34 oz)\r\nBuild Glass front (Gorilla Glass Victus), glass back (Gorilla Glass Victus), stainless steel frame\r\nSIM Single SIM (Nano-SIM and/or eSIM) or Hybrid Dual SIM (Nano-SIM, dual stand-by)\r\n Samsung Pay (Visa, MasterCard certified)\r\nIP68 dust/water resistant (up to 1.5m for 30 mins)\r\nStylus, 9ms latency (Bluetooth integration, accelerometer, gyro)\r\nDISPLAY Type Dynamic AMOLED 2X capacitive touchscreen, 16M colors\r\nSize 6.9 inches, 116.7 cm2 (~91.7% screen-to-body ratio)\r\nResolution 1440 x 3088 pixels (~496 ppi density)\r\nProtection Corning Gorilla Glass Victus\r\n HDR10+\r\nAlways-on display\r\n120Hz@FHD/60Hz@QHD refresh rate\r\nPLATFORM OS Android 10, One UI 2.5\r\nChipset Exynos 990 (7 nm+) - Global\r\nQualcomm SM8250 Snapdragon 865+ (7 nm+) - USA\r\nCPU Octa-core (2x2.73 GHz Mongoose M5 & 2x2.50 GHz Cortex-A76 & 4x2.0 GHz Cortex-A55) - Global\r\nOcta-core (1x3.0 GHz Kryo 585 & 3x2.42 GHz Kryo 585 & 4x1.8 GHz Kryo 585) - USA\r\nGPU Mali-G77 MP11 - Global\r\nAdreno 650 - USA\r\nMEMORY Card slot microSDXC (uses shared SIM slot)\r\nInternal 256GB 8GB RAM, 512GB 8GB RAM\r\n UFS 3.0\r\nMAIN CAMERA Triple 108 MP, f/1.8, 26mm (wide), 1/1.33\", 0.8µm, PDAF, Laser AF, OIS\r\n12 MP, f/3.0, 120mm (periscope telephoto), 1.0µm, PDAF, OIS, 5x optical zoom, 50x hybrid zoom\r\n12 MP, f/2.2, 120˚, 13mm (ultrawide), 1/2.55\", 1.4µm\r\nFeatures LED flash, auto-HDR, panorama\r\nVideo 8K@24fps, 4K@30/60fps, 1080p@30/60/240fps, 720p@960fps, HDR10+, stereo sound rec., gyro-EIS & OIS\r\nSELFIE CAMERA Single 10 MP, f/2.2, 26mm (wide), 1/3.2\", 1.22µm, Dual Pixel PDAF\r\nFeatures Dual video call, Auto-HDR\r\nVideo 4K@30/60fps, 1080p@30fps\r\nSOUND Loudspeaker Yes, with stereo speakers\r\n3.5mm jack No\r\n 32-bit/384kHz audio\r\nTuned by AKG\r\nCOMMS WLAN Wi-Fi 802.11 a/b/g/n/ac/6, dual-band, Wi-Fi Direct, hotspot\r\nBluetooth 5.0, A2DP, LE, aptX\r\nGPS Yes, with A-GPS, GLONASS, BDS, GALILEO\r\nNFC Yes\r\nRadio FM radio (Snapdragon model only; market/operator dependent)\r\nUSB USB Type-C 3.2, USB On-The-Go\r\nFEATURES Sensors Fingerprint (under display, ultrasonic), accelerometer, gyro, proximity, compass, barometer\r\n Samsung Wireless DeX (desktop experience support)\r\nANT+\r\nBixby natural language commands and dictation', 'samsung-note20-ult', 2, 60000, 0, NULL, 1, '2020-10-07 02:47:14', '2020-10-07 02:51:24'),
(25, 10, 5, 'Aviator Classic', 'ray ban aviator ray ban aviator ray ban aviator', 'aviator-classic', 1, 21000, 0, NULL, 1, '2020-10-07 02:50:43', '2020-10-07 02:50:43');
-- --------------------------------------------------------
--
-- Table structure for table `product_images`
--
CREATE TABLE `product_images` (
`id` int(10) UNSIGNED NOT NULL,
`product_id` int(10) UNSIGNED NOT NULL,
`image` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `product_images`
--
INSERT INTO `product_images` (`id`, `product_id`, `image`, `created_at`, `updated_at`) VALUES
(1, 1, '1.png', NULL, NULL),
(2, 2, '2.png', NULL, NULL),
(3, 1, '3.png', NULL, NULL),
(4, 6, '1594736024.png', '2020-07-14 08:13:45', '2020-07-14 08:13:45'),
(5, 7, '1594737277.png', '2020-07-14 08:34:37', '2020-07-14 08:34:37'),
(6, 8, '1594737277.png', '2020-07-14 08:34:38', '2020-07-14 08:34:38'),
(7, 8, '1599336186.png', '2020-09-05 14:03:07', '2020-09-05 14:03:07'),
(8, 9, '1599577594.jpg', '2020-09-08 09:06:34', '2020-09-08 09:06:34'),
(9, 9, '1599577594.jpg', '2020-09-08 09:06:34', '2020-09-08 09:06:34'),
(10, 10, '1599578598.jpg', '2020-09-08 09:23:18', '2020-09-08 09:23:18'),
(11, 10, '1599578598.jpg', '2020-09-08 09:23:18', '2020-09-08 09:23:18'),
(12, 11, '1599584305.jpg', '2020-09-08 10:58:25', '2020-09-08 10:58:25'),
(15, 13, '1599592532.jpg', '2020-09-08 13:15:32', '2020-09-08 13:15:32'),
(16, 14, '1599593416.png', '2020-09-08 13:30:16', '2020-09-08 13:30:16'),
(17, 14, '1599591980.jpg', '2020-09-08 13:30:16', '2020-09-08 13:30:16'),
(18, 15, '1599594141.jpg', '2020-09-08 13:42:21', '2020-09-08 13:42:21'),
(19, 16, '1602000332.jpg', '2020-10-06 10:05:33', '2020-10-06 10:05:33'),
(20, 17, '1602058659.jpg', '2020-10-07 02:17:39', '2020-10-07 02:17:39'),
(21, 18, '1602058811.jpg', '2020-10-07 02:20:11', '2020-10-07 02:20:11'),
(22, 19, '1602058967.jpg', '2020-10-07 02:22:47', '2020-10-07 02:22:47'),
(23, 20, '1602059270.jpg', '2020-10-07 02:27:50', '2020-10-07 02:27:50'),
(24, 21, '1602059470.png', '2020-10-07 02:31:10', '2020-10-07 02:31:10'),
(25, 22, '1602059699.jpg', '2020-10-07 02:34:59', '2020-10-07 02:34:59'),
(26, 23, '1602059973.webp', '2020-10-07 02:39:33', '2020-10-07 02:39:33'),
(27, 24, '1602060434.jpg', '2020-10-07 02:47:14', '2020-10-07 02:47:14'),
(28, 25, '1602060643.jpg', '2020-10-07 02:50:43', '2020-10-07 02:50:43');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`last_name` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`username` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone_no` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`street_address` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`division_id` int(10) UNSIGNED NOT NULL COMMENT 'Division Table ID',
`district_id` int(10) UNSIGNED NOT NULL COMMENT 'District Table ID',
`status` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '0=Inactive|1=Active|2=Ban',
`ip_address` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`avatar` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`shipping_address` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `first_name`, `last_name`, `username`, `phone_no`, `email`, `password`, `street_address`, `division_id`, `district_id`, `status`, `ip_address`, `avatar`, `shipping_address`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, 'Akil', 'Ahmed', '<PASSWORD>', '0125469778', '<EMAIL>', <PASSWORD>$T498.HMtp7ZReqqXEe..buxd3EJmlVS0DH9Ph3vztEre3RE./Ybd2', '353 west paikpara', 3, 1, 1, '127.0.0.1', NULL, '8th floor', '6D0mvzyDQO4XGsSEtweWyaIcwDDiEKEuO4If72dKn3r9ENUB6pgk5MQHBlkT', '2020-09-16 08:13:43', '2020-09-18 13:35:03');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admins`
--
ALTER TABLE `admins`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `brands`
--
ALTER TABLE `brands`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `carts`
--
ALTER TABLE `carts`
ADD PRIMARY KEY (`id`),
ADD KEY `carts_user_id_foreign` (`user_id`),
ADD KEY `carts_product_id_foreign` (`product_id`),
ADD KEY `carts_order_id_foreign` (`order_id`);
--
-- Indexes for table `categories`
--
ALTER TABLE `categories`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `districts`
--
ALTER TABLE `districts`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `divisions`
--
ALTER TABLE `divisions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`),
ADD KEY `orders_user_id_foreign` (`user_id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `products`
--
ALTER TABLE `products`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `product_images`
--
ALTER TABLE `product_images`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_username_unique` (`username`),
ADD UNIQUE KEY `users_phone_no_unique` (`phone_no`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admins`
--
ALTER TABLE `admins`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `brands`
--
ALTER TABLE `brands`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `carts`
--
ALTER TABLE `carts`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `categories`
--
ALTER TABLE `categories`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16;
--
-- AUTO_INCREMENT for table `districts`
--
ALTER TABLE `districts`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
--
-- AUTO_INCREMENT for table `divisions`
--
ALTER TABLE `divisions`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `product_images`
--
ALTER TABLE `product_images`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `carts`
--
ALTER TABLE `carts`
ADD CONSTRAINT `carts_order_id_foreign` FOREIGN KEY (`order_id`) REFERENCES `orders` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `carts_product_id_foreign` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`) ON DELETE CASCADE,
ADD CONSTRAINT `carts_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
--
-- Constraints for table `orders`
--
ALTER TABLE `orders`
ADD CONSTRAINT `orders_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>Chickey49/Bantr
CREATE DATABASE IF NOT EXISTS `bantr_db` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */;
USE `bantr_db`;
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64)
--
-- Host: localhost Database: bantr_db
-- ------------------------------------------------------
-- Server version 8.0.22
/*!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 */;
/*!50503 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 `buzz`
--
DROP TABLE IF EXISTS `buzz`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `buzz` (
`id` int NOT NULL AUTO_INCREMENT,
`body` varchar(255) NOT NULL,
`reply_to` int DEFAULT NULL,
`createdAt` datetime NOT NULL,
`updatedAt` datetime NOT NULL,
`UserId` int NOT NULL,
PRIMARY KEY (`id`),
KEY `UserId` (`UserId`),
CONSTRAINT `buzz_ibfk_1` FOREIGN KEY (`UserId`) REFERENCES `users` (`id`) ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=326 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `buzz`
--
LOCK TABLES `buzz` WRITE;
/*!40000 ALTER TABLE `buzz` DISABLE KEYS */;
INSERT INTO `buzz` VALUES (1,'in hac habitasse platea dictumst etiam faucibus cursus urna ut tellus nulla ut erat id mauris vulputate elementum nullam varius nulla',NULL,'2020-06-18 10:28:32','2020-06-18 10:28:32',28),(2,'eget nunc donec quis orci eget orci vehicula condimentum curabitur in libero ut massa volutpat convallis morbi odio odio elementum eu interdum eu tincidunt',31,'2020-06-22 03:50:31','2020-06-22 03:50:31',80),(3,'quis odio consequat varius integer ac leo pellentesque ultrices mattis odio donec vitae nisi nam ultrices libero non mattis pulvinar nulla pede ullamcorper augue a',NULL,'2020-07-07 10:24:53','2020-07-07 10:24:53',31),(4,'id ligula suspendisse ornare consequat lectus in est risus auctor',22,'2020-07-10 11:32:24','2020-07-10 11:32:24',15),(5,'ornare imperdiet sapien urna pretium nisl ut volutpat sapien arcu sed augue aliquam erat volutpat in congue etiam justo etiam pretium iaculis',NULL,'2020-07-08 01:26:15','2020-07-08 01:26:15',7),(6,'amet consectetuer adipiscing elit proin interdum mauris non ligula pellentesque ultrices phasellus id sapien in',NULL,'2020-06-20 12:58:05','2020-06-20 12:58:05',74),(7,'platea dictumst morbi vestibulum velit id pretium iaculis diam erat fermentum justo nec condimentum neque sapien placerat ante nulla justo aliquam quis',NULL,'2020-07-06 14:16:05','2020-07-06 14:16:05',61),(8,'nascetur ridiculus mus etiam vel augue vestibulum rutrum rutrum neque aenean auctor gravida sem praesent id massa id nisl venenatis',67,'2020-06-14 21:20:23','2020-06-14 21:20:23',2),(9,'ultrices mattis odio donec vitae nisi nam ultrices libero non mattis pulvinar nulla pede ullamcorper augue a suscipit nulla elit ac nulla sed vel enim',93,'2020-07-11 14:22:08','2020-07-11 14:22:08',24),(10,'sit amet cursus id turpis integer aliquet massa id lobortis convallis tortor',NULL,'2020-06-24 03:21:09','2020-06-24 03:21:09',35),(11,'nisl duis ac nibh fusce lacus purus aliquet at feugiat non pretium quis lectus suspendisse potenti in eleifend',232,'2020-06-16 01:05:41','2020-06-16 01:05:41',62),(12,'nulla eget eros elementum pellentesque quisque porta volutpat erat quisque erat eros viverra eget',217,'2020-06-19 02:58:04','2020-06-19 02:58:04',37),(13,'ut blandit non interdum in ante vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae duis faucibus',NULL,'2020-06-19 14:17:01','2020-06-19 14:17:01',2),(14,'sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus etiam vel augue vestibulum rutrum rutrum neque aenean auctor',NULL,'2020-07-11 10:45:34','2020-07-11 10:45:34',62),(15,'sodales scelerisque mauris sit amet eros suspendisse accumsan tortor quis turpis sed ante vivamus tortor duis mattis egestas metus',NULL,'2020-07-14 17:26:59','2020-07-14 17:26:59',61),(16,'sed interdum venenatis turpis enim blandit mi in porttitor pede justo eu massa donec dapibus duis',NULL,'2020-06-25 12:34:27','2020-06-25 12:34:27',48),(17,'etiam justo etiam pretium iaculis justo in hac habitasse platea dictumst etiam faucibus cursus urna ut tellus nulla ut erat',NULL,'2020-06-14 14:03:52','2020-06-14 14:03:52',54),(18,'lorem ipsum dolor sit amet consectetuer adipiscing elit proin risus praesent lectus vestibulum',216,'2020-06-24 23:00:15','2020-06-24 23:00:15',23),(19,'aenean auctor gravida sem praesent id massa id nisl venenatis lacinia aenean sit amet justo morbi',277,'2020-06-13 02:55:40','2020-06-13 02:55:40',48),(20,'vitae ipsum aliquam non mauris morbi non lectus aliquam sit amet diam in magna bibendum imperdiet nullam orci pede venenatis non sodales sed tincidunt eu',NULL,'2020-06-29 19:08:06','2020-06-29 19:08:06',20),(21,'praesent blandit nam nulla integer pede justo lacinia eget tincidunt eget tempus vel pede',NULL,'2020-07-08 16:44:38','2020-07-08 16:44:38',23),(22,'consectetuer adipiscing elit proin interdum mauris non ligula pellentesque ultrices phasellus id sapien in',NULL,'2020-06-17 13:47:48','2020-06-17 13:47:48',76),(23,'duis mattis egestas metus aenean fermentum donec ut mauris eget massa tempor convallis nulla neque libero convallis eget eleifend luctus ultricies eu nibh quisque id',157,'2020-06-26 20:53:57','2020-06-26 20:53:57',56),(24,'in magna bibendum imperdiet nullam orci pede venenatis non sodales sed tincidunt eu felis fusce posuere',8,'2020-06-29 18:32:31','2020-06-29 18:32:31',57),(25,'praesent lectus vestibulum quam sapien varius ut blandit non interdum in ante vestibulum ante ipsum primis in faucibus orci luctus',12,'2020-07-07 13:19:29','2020-07-07 13:19:29',24),(26,'dui vel nisl duis ac nibh fusce lacus purus aliquet',NULL,'2020-07-02 03:04:59','2020-07-02 03:04:59',43),(27,'quis augue luctus tincidunt nulla mollis molestie lorem quisque ut erat curabitur gravida nisi',92,'2020-06-17 15:39:18','2020-06-17 15:39:18',50),(28,'enim blandit mi in porttitor pede justo eu massa donec dapibus duis',250,'2020-07-03 11:26:08','2020-07-03 11:26:08',64),(29,'ut nulla sed accumsan felis ut at dolor quis odio consequat varius integer ac leo pellentesque ultrices mattis',86,'2020-07-04 13:57:52','2020-07-04 13:57:52',73),(30,'elit sodales scelerisque mauris sit amet eros suspendisse accumsan tortor quis turpis sed ante vivamus tortor duis mattis egestas metus aenean fermentum donec ut',NULL,'2020-07-12 07:27:22','2020-07-12 07:27:22',34),(31,'at velit eu est congue elementum in hac habitasse platea dictumst morbi vestibulum velit id pretium iaculis diam erat fermentum justo nec condimentum neque sapien',65,'2020-06-30 09:10:05','2020-06-30 09:10:05',71),(32,'nulla mollis molestie lorem quisque ut erat curabitur gravida nisi at nibh in hac habitasse',NULL,'2020-06-24 15:14:05','2020-06-24 15:14:05',38),(33,'enim leo rhoncus sed vestibulum sit amet cursus id turpis integer aliquet massa id lobortis convallis tortor risus dapibus augue',NULL,'2020-06-29 11:26:10','2020-06-29 11:26:10',34),(34,'eu tincidunt in leo maecenas pulvinar lobortis est phasellus sit amet erat nulla tempus vivamus in felis eu sapien cursus vestibulum proin',NULL,'2020-07-12 06:23:27','2020-07-12 06:23:27',72),(35,'magna bibendum imperdiet nullam orci pede venenatis non sodales sed tincidunt eu felis fusce posuere felis sed lacus morbi sem',NULL,'2020-06-21 22:10:32','2020-06-21 22:10:32',7),(36,'neque libero convallis eget eleifend luctus ultricies eu nibh quisque id justo sit amet sapien dignissim vestibulum vestibulum ante ipsum',NULL,'2020-06-29 16:08:05','2020-06-29 16:08:05',56),(37,'blandit nam nulla integer pede justo lacinia eget tincidunt eget tempus vel pede morbi porttitor lorem id ligula suspendisse ornare consequat lectus',NULL,'2020-06-17 01:58:45','2020-06-17 01:58:45',14),(38,'accumsan felis ut at dolor quis odio consequat varius integer ac leo pellentesque ultrices mattis odio donec vitae nisi nam ultrices',NULL,'2020-06-29 20:44:04','2020-06-29 20:44:04',9),(39,'curabitur in libero ut massa volutpat convallis morbi odio odio elementum eu interdum eu tincidunt in leo maecenas pulvinar',5,'2020-07-07 05:28:57','2020-07-07 05:28:57',72),(40,'nulla suscipit ligula in lacus curabitur at ipsum ac tellus semper interdum mauris ullamcorper purus sit amet nulla quisque',84,'2020-07-06 22:29:37','2020-07-06 22:29:37',62),(41,'mi sit amet lobortis sapien sapien non mi integer ac neque duis bibendum morbi non quam nec dui luctus rutrum nulla tellus in',NULL,'2020-07-11 21:32:40','2020-07-11 21:32:40',35),(42,'in congue etiam justo etiam pretium iaculis justo in hac habitasse platea dictumst etiam faucibus cursus urna',NULL,'2020-06-14 09:03:21','2020-06-14 09:03:21',1),(43,'primis in faucibus orci luctus et ultrices posuere cubilia curae donec pharetra magna vestibulum aliquet',252,'2020-06-15 07:10:28','2020-06-15 07:10:28',37),(44,'curae donec pharetra magna vestibulum aliquet ultrices erat tortor sollicitudin mi sit amet lobortis sapien sapien non mi integer ac neque duis bibendum morbi',142,'2020-07-04 15:32:26','2020-07-04 15:32:26',54),(45,'elementum pellentesque quisque porta volutpat erat quisque erat eros viverra eget congue eget semper rutrum nulla nunc purus phasellus in felis donec',68,'2020-06-18 00:31:44','2020-06-18 00:31:44',9),(46,'sit amet turpis elementum ligula vehicula consequat morbi a ipsum integer a nibh in quis justo maecenas rhoncus aliquam lacus morbi',183,'2020-07-10 03:56:57','2020-07-10 03:56:57',30),(47,'in felis donec semper sapien a libero nam dui proin leo odio porttitor id consequat in consequat',NULL,'2020-06-13 15:59:52','2020-06-13 15:59:52',61),(48,'consectetuer eget rutrum at lorem integer tincidunt ante vel ipsum praesent blandit lacinia erat vestibulum sed magna at nunc commodo placerat praesent blandit nam',220,'2020-06-26 07:50:21','2020-06-26 07:50:21',43),(49,'diam id ornare imperdiet sapien urna pretium nisl ut volutpat sapien arcu sed augue aliquam erat volutpat',NULL,'2020-06-17 00:35:46','2020-06-17 00:35:46',80),(50,'vestibulum vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae nulla dapibus dolor',NULL,'2020-07-13 16:15:41','2020-07-13 16:15:41',35),(51,'ut odio cras mi pede malesuada in imperdiet et commodo vulputate justo in blandit ultrices enim lorem ipsum dolor sit amet',NULL,'2020-07-03 18:11:19','2020-07-03 18:11:19',67),(52,'metus vitae ipsum aliquam non mauris morbi non lectus aliquam sit amet diam in',NULL,'2020-07-02 20:36:11','2020-07-02 20:36:11',29),(53,'elementum ligula vehicula consequat morbi a ipsum integer a nibh in quis justo maecenas rhoncus aliquam lacus morbi quis tortor',NULL,'2020-07-08 22:17:49','2020-07-08 22:17:49',41),(54,'mauris non ligula pellentesque ultrices phasellus id sapien in sapien iaculis congue vivamus metus arcu adipiscing molestie hendrerit at vulputate',NULL,'2020-07-08 10:42:24','2020-07-08 10:42:24',5),(55,'lectus pellentesque at nulla suspendisse potenti cras in purus eu magna vulputate luctus cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus',28,'2020-06-13 14:42:34','2020-06-13 14:42:34',39),(56,'sagittis nam congue risus semper porta volutpat quam pede lobortis ligula sit amet eleifend pede libero quis orci nullam',237,'2020-06-14 07:26:33','2020-06-14 07:26:33',42),(57,'integer pede justo lacinia eget tincidunt eget tempus vel pede morbi porttitor',NULL,'2020-06-27 03:16:16','2020-06-27 03:16:16',52),(58,'erat vestibulum sed magna at nunc commodo placerat praesent blandit nam nulla integer pede justo lacinia eget',24,'2020-07-10 06:50:46','2020-07-10 06:50:46',15),(59,'nunc donec quis orci eget orci vehicula condimentum curabitur in libero ut massa volutpat convallis morbi odio odio',5,'2020-06-14 13:31:44','2020-06-14 13:31:44',3),(60,'urna pretium nisl ut volutpat sapien arcu sed augue aliquam erat volutpat in congue etiam justo etiam pretium iaculis',NULL,'2020-07-02 20:40:12','2020-07-02 20:40:12',28),(61,'diam in magna bibendum imperdiet nullam orci pede venenatis non sodales sed tincidunt eu felis fusce posuere felis sed lacus',NULL,'2020-06-16 04:21:27','2020-06-16 04:21:27',67),(62,'mattis nibh ligula nec sem duis aliquam convallis nunc proin at turpis a',1,'2020-06-26 03:07:35','2020-06-26 03:07:35',66),(63,'nulla nunc purus phasellus in felis donec semper sapien a libero nam dui proin leo odio porttitor id consequat in consequat ut nulla sed accumsan',81,'2020-06-25 16:13:15','2020-06-25 16:13:15',38),(64,'dapibus nulla suscipit ligula in lacus curabitur at ipsum ac',NULL,'2020-06-19 12:03:42','2020-06-19 12:03:42',74),(65,'duis consequat dui nec nisi volutpat eleifend donec ut dolor morbi vel lectus in quam fringilla rhoncus mauris enim',NULL,'2020-07-07 20:45:22','2020-07-07 20:45:22',51),(66,'risus auctor sed tristique in tempus sit amet sem fusce consequat',160,'2020-06-17 14:39:19','2020-06-17 14:39:19',69),(67,'porttitor id consequat in consequat ut nulla sed accumsan felis',NULL,'2020-06-20 15:58:27','2020-06-20 15:58:27',12),(68,'ut volutpat sapien arcu sed augue aliquam erat volutpat in',NULL,'2020-06-13 05:39:46','2020-06-13 05:39:46',29),(69,'fusce lacus purus aliquet at feugiat non pretium quis lectus suspendisse',NULL,'2020-06-30 09:03:36','2020-06-30 09:03:36',4),(70,'nisi volutpat eleifend donec ut dolor morbi vel lectus in quam fringilla rhoncus mauris enim leo',NULL,'2020-06-17 12:02:53','2020-06-17 12:02:53',16),(71,'posuere cubilia curae mauris viverra diam vitae quam suspendisse potenti nullam',NULL,'2020-06-23 01:49:55','2020-06-23 01:49:55',42),(72,'at nunc commodo placerat praesent blandit nam nulla integer pede justo lacinia eget tincidunt eget tempus vel pede',NULL,'2020-06-22 07:49:00','2020-06-22 07:49:00',23),(73,'risus praesent lectus vestibulum quam sapien varius ut blandit non interdum in ante vestibulum ante ipsum primis in faucibus',NULL,'2020-06-30 22:30:42','2020-06-30 22:30:42',39),(74,'rutrum nulla tellus in sagittis dui vel nisl duis ac nibh fusce lacus purus aliquet at feugiat non pretium quis lectus suspendisse potenti in eleifend',NULL,'2020-06-22 04:46:12','2020-06-22 04:46:12',65),(75,'maecenas ut massa quis augue luctus tincidunt nulla mollis molestie lorem quisque ut erat curabitur gravida nisi at nibh in hac habitasse',NULL,'2020-07-11 23:00:32','2020-07-11 23:00:32',67),(76,'arcu sed augue aliquam erat volutpat in congue etiam justo etiam pretium iaculis',NULL,'2020-07-10 05:15:09','2020-07-10 05:15:09',48),(77,'elit proin interdum mauris non ligula pellentesque ultrices phasellus id sapien in',NULL,'2020-07-07 16:00:57','2020-07-07 16:00:57',77),(78,'porttitor pede justo eu massa donec dapibus duis at velit',275,'2020-06-24 06:23:47','2020-06-24 06:23:47',29),(79,'adipiscing elit proin interdum mauris non ligula pellentesque ultrices phasellus id sapien in sapien iaculis congue vivamus metus arcu adipiscing molestie hendrerit at vulputate',NULL,'2020-06-19 15:38:45','2020-06-19 15:38:45',25),(80,'dolor morbi vel lectus in quam fringilla rhoncus mauris enim leo rhoncus sed vestibulum sit amet cursus id turpis integer aliquet massa id lobortis',NULL,'2020-07-04 18:02:52','2020-07-04 18:02:52',62),(81,'lectus pellentesque at nulla suspendisse potenti cras in purus eu magna vulputate luctus cum sociis natoque penatibus et',266,'2020-06-24 04:34:02','2020-06-24 04:34:02',11),(82,'ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae donec pharetra magna',NULL,'2020-07-12 07:48:15','2020-07-12 07:48:15',51),(83,'praesent id massa id nisl venenatis lacinia aenean sit amet justo morbi ut odio cras mi pede malesuada in imperdiet et commodo vulputate justo in',32,'2020-06-16 11:31:42','2020-06-16 11:31:42',29),(84,'morbi sem mauris laoreet ut rhoncus aliquet pulvinar sed nisl nunc rhoncus dui vel sem sed sagittis nam congue risus semper porta volutpat quam pede',238,'2020-07-11 18:04:01','2020-07-11 18:04:01',24),(85,'in tempus sit amet sem fusce consequat nulla nisl nunc nisl duis bibendum felis sed interdum venenatis turpis enim blandit mi in porttitor pede',128,'2020-06-25 02:21:17','2020-06-25 02:21:17',11),(86,'vel sem sed sagittis nam congue risus semper porta volutpat quam',299,'2020-07-12 00:27:06','2020-07-12 00:27:06',44),(87,'in blandit ultrices enim lorem ipsum dolor sit amet consectetuer adipiscing elit proin interdum mauris non ligula',NULL,'2020-06-19 02:46:02','2020-06-19 02:46:02',63),(88,'sapien non mi integer ac neque duis bibendum morbi non quam nec dui luctus',132,'2020-06-25 11:25:40','2020-06-25 11:25:40',51),(89,'duis ac nibh fusce lacus purus aliquet at feugiat non pretium quis lectus suspendisse potenti in eleifend quam a',37,'2020-07-08 10:59:59','2020-07-08 10:59:59',71),(90,'nulla suspendisse potenti cras in purus eu magna vulputate luctus cum sociis natoque',22,'2020-06-29 17:49:35','2020-06-29 17:49:35',49),(91,'molestie lorem quisque ut erat curabitur gravida nisi at nibh in hac habitasse platea dictumst aliquam augue quam sollicitudin vitae consectetuer eget rutrum',245,'2020-07-09 06:40:30','2020-07-09 06:40:30',44),(92,'amet sapien dignissim vestibulum vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae nulla dapibus dolor vel est donec odio',NULL,'2020-07-12 02:25:52','2020-07-12 02:25:52',26),(93,'pretium iaculis diam erat fermentum justo nec condimentum neque sapien placerat ante nulla justo aliquam quis turpis eget elit sodales scelerisque mauris sit',144,'2020-07-13 04:04:17','2020-07-13 04:04:17',80),(94,'luctus nec molestie sed justo pellentesque viverra pede ac diam cras pellentesque volutpat dui maecenas tristique est et tempus semper est quam',29,'2020-06-27 02:33:19','2020-06-27 02:33:19',59),(95,'id sapien in sapien iaculis congue vivamus metus arcu adipiscing',NULL,'2020-07-08 22:17:20','2020-07-08 22:17:20',60),(96,'donec diam neque vestibulum eget vulputate ut ultrices vel augue vestibulum ante ipsum primis',NULL,'2020-06-28 03:03:32','2020-06-28 03:03:32',12),(97,'et eros vestibulum ac est lacinia nisi venenatis tristique fusce congue diam id ornare imperdiet sapien urna pretium nisl ut volutpat sapien',188,'2020-06-30 12:49:55','2020-06-30 12:49:55',65),(98,'aliquet massa id lobortis convallis tortor risus dapibus augue vel accumsan tellus nisi eu orci mauris lacinia sapien quis libero nullam sit amet turpis',NULL,'2020-06-16 17:37:21','2020-06-16 17:37:21',77),(99,'dui maecenas tristique est et tempus semper est quam pharetra magna ac consequat metus sapien ut nunc vestibulum ante ipsum',NULL,'2020-06-18 14:51:45','2020-06-18 14:51:45',33),(100,'in eleifend quam a odio in hac habitasse platea dictumst maecenas ut massa quis augue luctus',NULL,'2020-07-06 23:32:23','2020-07-06 23:32:23',12),(101,'elementum in hac habitasse platea dictumst morbi vestibulum velit id pretium iaculis diam erat fermentum justo nec condimentum neque sapien placerat ante nulla',NULL,'2020-07-09 03:03:38','2020-07-09 03:03:38',20),(102,'dui vel nisl duis ac nibh fusce lacus purus aliquet at feugiat non pretium quis lectus suspendisse potenti in eleifend quam a odio in hac',NULL,'2020-07-04 20:28:34','2020-07-04 20:28:34',9),(103,'justo in blandit ultrices enim lorem ipsum dolor sit amet consectetuer adipiscing elit proin interdum mauris non ligula pellentesque ultrices phasellus id',NULL,'2020-06-25 13:23:41','2020-06-25 13:23:41',77),(104,'sem fusce consequat nulla nisl nunc nisl duis bibendum felis sed interdum venenatis turpis enim blandit mi in porttitor pede justo eu massa donec dapibus',NULL,'2020-06-25 19:45:58','2020-06-25 19:45:58',53),(105,'ultrices erat tortor sollicitudin mi sit amet lobortis sapien sapien non mi integer ac neque duis bibendum morbi non quam',82,'2020-07-03 00:16:59','2020-07-03 00:16:59',18),(106,'pede ac diam cras pellentesque volutpat dui maecenas tristique est et tempus semper est quam pharetra',232,'2020-07-08 16:28:29','2020-07-08 16:28:29',76),(107,'donec pharetra magna vestibulum aliquet ultrices erat tortor sollicitudin mi sit amet lobortis sapien sapien non mi integer ac neque duis bibendum morbi non quam',236,'2020-06-20 05:07:50','2020-06-20 05:07:50',80),(108,'est quam pharetra magna ac consequat metus sapien ut nunc vestibulum ante ipsum primis in faucibus',NULL,'2020-07-05 18:07:12','2020-07-05 18:07:12',60),(109,'sed augue aliquam erat volutpat in congue etiam justo etiam pretium iaculis justo in hac habitasse platea dictumst etiam faucibus',145,'2020-06-16 06:08:37','2020-06-16 06:08:37',39),(110,'vestibulum proin eu mi nulla ac enim in tempor turpis nec euismod scelerisque quam',184,'2020-07-05 05:56:03','2020-07-05 05:56:03',67),(111,'habitasse platea dictumst aliquam augue quam sollicitudin vitae consectetuer eget rutrum at lorem integer tincidunt ante vel ipsum praesent blandit lacinia erat vestibulum',91,'2020-07-11 11:58:07','2020-07-11 11:58:07',21),(112,'leo pellentesque ultrices mattis odio donec vitae nisi nam ultrices libero non',NULL,'2020-07-13 19:28:05','2020-07-13 19:28:05',67),(113,'id turpis integer aliquet massa id lobortis convallis tortor risus dapibus augue vel accumsan tellus',NULL,'2020-06-28 20:55:30','2020-06-28 20:55:30',53),(114,'iaculis congue vivamus metus arcu adipiscing molestie hendrerit at vulputate vitae nisl aenean lectus pellentesque eget nunc donec quis orci eget orci vehicula',NULL,'2020-07-08 02:57:44','2020-07-08 02:57:44',47),(115,'pede ac diam cras pellentesque volutpat dui maecenas tristique est et tempus semper est',NULL,'2020-06-27 13:08:44','2020-06-27 13:08:44',68),(116,'at velit eu est congue elementum in hac habitasse platea dictumst morbi vestibulum',196,'2020-06-13 16:30:50','2020-06-13 16:30:50',50),(117,'elementum eu interdum eu tincidunt in leo maecenas pulvinar lobortis est phasellus sit amet erat nulla tempus vivamus in felis',11,'2020-06-21 01:08:54','2020-06-21 01:08:54',6),(118,'non pretium quis lectus suspendisse potenti in eleifend quam a odio in hac habitasse platea dictumst maecenas ut',NULL,'2020-06-27 00:29:29','2020-06-27 00:29:29',48),(119,'consequat ut nulla sed accumsan felis ut at dolor quis odio consequat varius integer ac leo pellentesque ultrices',NULL,'2020-07-01 10:01:15','2020-07-01 10:01:15',74),(120,'lectus vestibulum quam sapien varius ut blandit non interdum in ante vestibulum ante ipsum primis in',NULL,'2020-06-17 08:10:25','2020-06-17 08:10:25',47),(121,'nulla pede ullamcorper augue a suscipit nulla elit ac nulla sed vel enim sit amet nunc',NULL,'2020-07-03 09:18:12','2020-07-03 09:18:12',52),(122,'porttitor pede justo eu massa donec dapibus duis at velit eu est congue elementum in hac habitasse platea dictumst',NULL,'2020-06-21 18:59:36','2020-06-21 18:59:36',58),(123,'venenatis turpis enim blandit mi in porttitor pede justo eu',NULL,'2020-07-07 04:35:07','2020-07-07 04:35:07',34),(124,'libero non mattis pulvinar nulla pede ullamcorper augue a suscipit nulla elit ac nulla sed vel enim',NULL,'2020-06-24 21:04:37','2020-06-24 21:04:37',46),(125,'enim leo rhoncus sed vestibulum sit amet cursus id turpis integer aliquet massa id lobortis convallis tortor risus dapibus augue vel accumsan tellus',NULL,'2020-07-14 03:55:58','2020-07-14 03:55:58',46),(126,'vitae nisl aenean lectus pellentesque eget nunc donec quis orci eget orci vehicula condimentum curabitur in libero ut massa volutpat convallis morbi',NULL,'2020-07-07 07:48:40','2020-07-07 07:48:40',53),(127,'convallis nulla neque libero convallis eget eleifend luctus ultricies eu nibh quisque id justo sit amet sapien dignissim',NULL,'2020-06-30 09:55:19','2020-06-30 09:55:19',77),(128,'sit amet turpis elementum ligula vehicula consequat morbi a ipsum integer a nibh in quis justo maecenas rhoncus aliquam lacus',NULL,'2020-07-13 15:57:07','2020-07-13 15:57:07',38),(129,'suspendisse potenti in eleifend quam a odio in hac habitasse platea dictumst maecenas ut massa',NULL,'2020-07-14 17:18:12','2020-07-14 17:18:12',14),(130,'id mauris vulputate elementum nullam varius nulla facilisi cras non velit nec nisi vulputate nonummy maecenas',89,'2020-06-22 22:56:30','2020-06-22 22:56:30',45),(131,'quam pharetra magna ac consequat metus sapien ut nunc vestibulum ante',197,'2020-06-22 18:00:39','2020-06-22 18:00:39',36),(132,'nisi venenatis tristique fusce congue diam id ornare imperdiet sapien urna pretium nisl ut volutpat sapien arcu sed augue aliquam erat',295,'2020-06-24 02:09:55','2020-06-24 02:09:55',46),(133,'sit amet eros suspendisse accumsan tortor quis turpis sed ante vivamus tortor duis mattis',NULL,'2020-06-13 11:57:53','2020-06-13 11:57:53',34),(134,'neque sapien placerat ante nulla justo aliquam quis turpis eget elit sodales scelerisque',252,'2020-07-05 04:22:25','2020-07-05 04:22:25',76),(135,'montes nascetur ridiculus mus vivamus vestibulum sagittis sapien cum sociis natoque',87,'2020-07-06 02:02:25','2020-07-06 02:02:25',5),(136,'massa donec dapibus duis at velit eu est congue elementum in hac habitasse platea dictumst morbi vestibulum velit id pretium iaculis diam erat fermentum justo',105,'2020-07-14 10:07:27','2020-07-14 10:07:27',7),(137,'magnis dis parturient montes nascetur ridiculus mus etiam vel augue vestibulum rutrum rutrum',1,'2020-06-21 04:27:23','2020-06-21 04:27:23',63),(138,'proin at turpis a pede posuere nonummy integer non velit donec',13,'2020-06-20 05:40:14','2020-06-20 05:40:14',47),(139,'placerat praesent blandit nam nulla integer pede justo lacinia eget',NULL,'2020-06-30 13:39:29','2020-06-30 13:39:29',75),(140,'leo pellentesque ultrices mattis odio donec vitae nisi nam ultrices libero non mattis',254,'2020-07-03 19:27:04','2020-07-03 19:27:04',12),(141,'fusce consequat nulla nisl nunc nisl duis bibendum felis sed interdum venenatis turpis enim blandit mi in porttitor pede justo eu massa',136,'2020-07-02 05:37:17','2020-07-02 05:37:17',19),(142,'sapien urna pretium nisl ut volutpat sapien arcu sed augue aliquam erat',NULL,'2020-07-04 03:17:41','2020-07-04 03:17:41',27),(143,'lacus at velit vivamus vel nulla eget eros elementum pellentesque quisque porta volutpat erat quisque',NULL,'2020-06-13 02:55:24','2020-06-13 02:55:24',9),(144,'elementum eu interdum eu tincidunt in leo maecenas pulvinar lobortis est phasellus sit amet erat nulla tempus vivamus in',NULL,'2020-06-21 16:05:16','2020-06-21 16:05:16',59),(145,'lacinia nisi venenatis tristique fusce congue diam id ornare imperdiet sapien urna pretium nisl ut volutpat sapien arcu sed augue aliquam erat',NULL,'2020-06-17 01:03:24','2020-06-17 01:03:24',2),(146,'at velit vivamus vel nulla eget eros elementum pellentesque quisque porta',NULL,'2020-07-09 19:06:46','2020-07-09 19:06:46',13),(147,'orci nullam molestie nibh in lectus pellentesque at nulla suspendisse potenti cras in purus eu magna vulputate luctus cum sociis natoque penatibus',153,'2020-06-21 13:59:20','2020-06-21 13:59:20',32),(148,'dolor morbi vel lectus in quam fringilla rhoncus mauris enim leo rhoncus sed vestibulum sit amet cursus',133,'2020-07-14 06:51:46','2020-07-14 06:51:46',18),(149,'montes nascetur ridiculus mus etiam vel augue vestibulum rutrum rutrum neque aenean auctor gravida sem praesent',NULL,'2020-06-14 01:23:05','2020-06-14 01:23:05',80),(150,'curabitur in libero ut massa volutpat convallis morbi odio odio elementum eu interdum eu tincidunt in leo maecenas pulvinar lobortis est phasellus sit amet erat',75,'2020-07-08 11:36:21','2020-07-08 11:36:21',46),(151,'nulla ultrices aliquet maecenas leo odio condimentum id luctus nec molestie sed',113,'2020-06-14 01:40:49','2020-06-14 01:40:49',40),(152,'varius ut blandit non interdum in ante vestibulum ante ipsum',232,'2020-06-15 21:38:50','2020-06-15 21:38:50',32),(153,'consequat lectus in est risus auctor sed tristique in tempus sit amet sem fusce consequat nulla nisl nunc nisl duis bibendum felis sed interdum venenatis',NULL,'2020-06-24 07:00:21','2020-06-24 07:00:21',41),(154,'volutpat sapien arcu sed augue aliquam erat volutpat in congue etiam justo etiam pretium iaculis justo in hac habitasse platea dictumst',NULL,'2020-06-19 03:42:01','2020-06-19 03:42:01',33),(155,'habitasse platea dictumst maecenas ut massa quis augue luctus tincidunt nulla mollis molestie lorem quisque',283,'2020-06-28 18:54:00','2020-06-28 18:54:00',12),(156,'tempus vel pede morbi porttitor lorem id ligula suspendisse ornare consequat lectus in est risus auctor sed',194,'2020-07-03 13:23:14','2020-07-03 13:23:14',23),(157,'phasellus sit amet erat nulla tempus vivamus in felis eu sapien cursus',NULL,'2020-07-11 17:13:19','2020-07-11 17:13:19',10),(158,'accumsan tortor quis turpis sed ante vivamus tortor duis mattis egestas metus aenean fermentum donec ut mauris',NULL,'2020-06-24 16:52:48','2020-06-24 16:52:48',48),(159,'ac diam cras pellentesque volutpat dui maecenas tristique est et tempus semper est quam pharetra magna ac consequat',NULL,'2020-06-24 18:28:19','2020-06-24 18:28:19',47),(160,'nibh quisque id justo sit amet sapien dignissim vestibulum vestibulum ante ipsum primis',NULL,'2020-06-28 12:49:13','2020-06-28 12:49:13',73),(161,'sit amet cursus id turpis integer aliquet massa id lobortis convallis tortor risus dapibus',NULL,'2020-07-07 01:18:30','2020-07-07 01:18:30',20),(162,'natoque penatibus et magnis dis parturient montes nascetur ridiculus mus etiam vel augue vestibulum rutrum rutrum neque aenean auctor gravida sem praesent',NULL,'2020-07-13 21:11:05','2020-07-13 21:11:05',37),(163,'porttitor lacus at turpis donec posuere metus vitae ipsum aliquam non mauris morbi non lectus aliquam sit amet diam in magna bibendum imperdiet nullam',NULL,'2020-06-15 05:02:27','2020-06-15 05:02:27',45),(164,'non interdum in ante vestibulum ante ipsum primis in faucibus',NULL,'2020-07-05 06:08:18','2020-07-05 06:08:18',11),(165,'sed accumsan felis ut at dolor quis odio consequat varius integer',32,'2020-06-22 22:37:40','2020-06-22 22:37:40',20),(166,'scelerisque quam turpis adipiscing lorem vitae mattis nibh ligula nec sem duis aliquam convallis nunc proin at',272,'2020-06-22 04:46:24','2020-06-22 04:46:24',58),(167,'quam suspendisse potenti nullam porttitor lacus at turpis donec posuere metus vitae ipsum aliquam non',49,'2020-06-25 09:15:54','2020-06-25 09:15:54',63),(168,'orci luctus et ultrices posuere cubilia curae donec pharetra magna vestibulum aliquet ultrices erat tortor sollicitudin mi',NULL,'2020-07-13 16:23:31','2020-07-13 16:23:31',66),(169,'eget tempus vel pede morbi porttitor lorem id ligula suspendisse ornare consequat',NULL,'2020-07-12 02:20:06','2020-07-12 02:20:06',28),(170,'non interdum in ante vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae duis faucibus accumsan odio curabitur',52,'2020-06-22 16:57:59','2020-06-22 16:57:59',42),(171,'lacinia eget tincidunt eget tempus vel pede morbi porttitor lorem id ligula suspendisse ornare consequat lectus in est risus auctor sed tristique in tempus',100,'2020-06-21 06:05:55','2020-06-21 06:05:55',12),(172,'commodo placerat praesent blandit nam nulla integer pede justo lacinia eget tincidunt eget tempus vel pede morbi porttitor lorem id ligula suspendisse',NULL,'2020-06-22 18:37:26','2020-06-22 18:37:26',75),(173,'in consequat ut nulla sed accumsan felis ut at dolor quis odio',259,'2020-06-19 20:56:56','2020-06-19 20:56:56',51),(174,'in faucibus orci luctus et ultrices posuere cubilia curae duis faucibus accumsan',NULL,'2020-06-24 23:34:07','2020-06-24 23:34:07',43),(175,'massa volutpat convallis morbi odio odio elementum eu interdum eu tincidunt in leo maecenas pulvinar lobortis est phasellus sit amet erat nulla tempus vivamus in',148,'2020-07-11 00:56:10','2020-07-11 00:56:10',45),(176,'lacus morbi quis tortor id nulla ultrices aliquet maecenas leo odio condimentum id luctus nec molestie sed justo',NULL,'2020-06-29 19:08:18','2020-06-29 19:08:18',65),(177,'integer non velit donec diam neque vestibulum eget vulputate ut ultrices vel augue vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere',221,'2020-07-11 15:45:13','2020-07-11 15:45:13',58),(178,'pede ac diam cras pellentesque volutpat dui maecenas tristique est et tempus semper est quam pharetra magna ac consequat metus',NULL,'2020-06-23 05:55:19','2020-06-23 05:55:19',15),(179,'sit amet lobortis sapien sapien non mi integer ac neque duis bibendum morbi non quam nec dui luctus',281,'2020-06-27 23:23:48','2020-06-27 23:23:48',7),(180,'vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae donec pharetra magna vestibulum aliquet ultrices',183,'2020-06-27 09:50:18','2020-06-27 09:50:18',30),(181,'ullamcorper augue a suscipit nulla elit ac nulla sed vel enim sit amet nunc viverra',NULL,'2020-06-25 04:13:31','2020-06-25 04:13:31',10),(182,'odio donec vitae nisi nam ultrices libero non mattis pulvinar nulla pede ullamcorper augue a suscipit',NULL,'2020-06-17 07:30:27','2020-06-17 07:30:27',16),(183,'suscipit nulla elit ac nulla sed vel enim sit amet nunc viverra dapibus nulla suscipit ligula in lacus curabitur at',NULL,'2020-07-07 15:29:43','2020-07-07 15:29:43',66),(184,'ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae duis faucibus accumsan odio curabitur convallis duis consequat',30,'2020-06-17 16:09:02','2020-06-17 16:09:02',4),(185,'blandit ultrices enim lorem ipsum dolor sit amet consectetuer adipiscing elit proin interdum mauris non ligula pellentesque ultrices phasellus id',NULL,'2020-06-19 10:11:50','2020-06-19 10:11:50',1),(186,'quis augue luctus tincidunt nulla mollis molestie lorem quisque ut erat curabitur gravida nisi at nibh in hac',199,'2020-07-13 05:27:47','2020-07-13 05:27:47',14),(187,'quis libero nullam sit amet turpis elementum ligula vehicula consequat morbi a ipsum integer a',NULL,'2020-06-25 01:21:34','2020-06-25 01:21:34',76),(188,'vestibulum proin eu mi nulla ac enim in tempor turpis nec euismod scelerisque quam turpis adipiscing lorem vitae mattis nibh ligula nec',NULL,'2020-07-12 10:06:41','2020-07-12 10:06:41',54),(189,'amet lobortis sapien sapien non mi integer ac neque duis bibendum morbi non quam',NULL,'2020-06-18 18:51:59','2020-06-18 18:51:59',42),(190,'vestibulum aliquet ultrices erat tortor sollicitudin mi sit amet lobortis sapien sapien non mi integer ac neque duis bibendum morbi',36,'2020-06-22 17:14:16','2020-06-22 17:14:16',47),(191,'mauris laoreet ut rhoncus aliquet pulvinar sed nisl nunc rhoncus dui vel sem sed sagittis nam congue risus semper porta',NULL,'2020-07-04 14:13:36','2020-07-04 14:13:36',32),(192,'diam erat fermentum justo nec condimentum neque sapien placerat ante nulla justo',NULL,'2020-06-29 19:45:28','2020-06-29 19:45:28',13),(193,'in libero ut massa volutpat convallis morbi odio odio elementum eu interdum eu tincidunt in leo maecenas pulvinar lobortis est phasellus',NULL,'2020-06-16 17:52:24','2020-06-16 17:52:24',38),(194,'purus aliquet at feugiat non pretium quis lectus suspendisse potenti in eleifend quam a odio in hac habitasse platea dictumst maecenas ut',NULL,'2020-06-19 03:12:54','2020-06-19 03:12:54',73),(195,'dictumst aliquam augue quam sollicitudin vitae consectetuer eget rutrum at lorem integer tincidunt ante vel ipsum praesent',NULL,'2020-07-12 17:02:24','2020-07-12 17:02:24',76),(196,'euismod scelerisque quam turpis adipiscing lorem vitae mattis nibh ligula nec sem duis aliquam convallis',NULL,'2020-06-19 16:38:49','2020-06-19 16:38:49',71),(197,'erat eros viverra eget congue eget semper rutrum nulla nunc',102,'2020-06-30 03:40:50','2020-06-30 03:40:50',62),(198,'mauris enim leo rhoncus sed vestibulum sit amet cursus id turpis integer aliquet massa id lobortis convallis tortor risus dapibus augue vel',NULL,'2020-07-07 11:42:23','2020-07-07 11:42:23',49),(199,'nisl nunc nisl duis bibendum felis sed interdum venenatis turpis',NULL,'2020-06-24 19:29:01','2020-06-24 19:29:01',44),(200,'primis in faucibus orci luctus et ultrices posuere cubilia curae nulla dapibus dolor vel est donec',65,'2020-07-01 22:59:11','2020-07-01 22:59:11',3),(201,'tristique in tempus sit amet sem fusce consequat nulla nisl nunc nisl duis bibendum felis sed interdum venenatis turpis enim blandit mi in porttitor pede',120,'2020-07-03 05:46:15','2020-07-03 05:46:15',14),(202,'eros elementum pellentesque quisque porta volutpat erat quisque erat eros viverra eget congue eget semper rutrum nulla nunc purus phasellus',NULL,'2020-06-16 22:17:01','2020-06-16 22:17:01',68),(203,'ipsum dolor sit amet consectetuer adipiscing elit proin interdum mauris',NULL,'2020-06-17 10:55:51','2020-06-17 10:55:51',68),(204,'amet cursus id turpis integer aliquet massa id lobortis convallis tortor risus dapibus augue vel accumsan',NULL,'2020-06-22 02:30:02','2020-06-22 02:30:02',12),(205,'tempor convallis nulla neque libero convallis eget eleifend luctus ultricies eu nibh quisque id justo sit',51,'2020-06-13 01:05:21','2020-06-13 01:05:21',33),(206,'condimentum curabitur in libero ut massa volutpat convallis morbi odio odio elementum eu interdum eu tincidunt in leo maecenas pulvinar lobortis est phasellus',130,'2020-06-29 04:33:00','2020-06-29 04:33:00',31),(207,'sed magna at nunc commodo placerat praesent blandit nam nulla integer pede',NULL,'2020-06-24 14:49:35','2020-06-24 14:49:35',78),(208,'augue vestibulum rutrum rutrum neque aenean auctor gravida sem praesent id massa id nisl venenatis lacinia aenean sit',NULL,'2020-06-19 00:04:39','2020-06-19 00:04:39',28),(209,'id mauris vulputate elementum nullam varius nulla facilisi cras non velit nec nisi',NULL,'2020-07-14 04:43:30','2020-07-14 04:43:30',38),(210,'vestibulum quam sapien varius ut blandit non interdum in ante vestibulum ante ipsum',51,'2020-06-22 18:57:04','2020-06-22 18:57:04',22),(211,'ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae donec pharetra magna vestibulum',NULL,'2020-07-14 12:12:44','2020-07-14 12:12:44',22),(212,'in leo maecenas pulvinar lobortis est phasellus sit amet erat nulla tempus vivamus in',NULL,'2020-06-19 20:05:13','2020-06-19 20:05:13',14),(213,'phasellus sit amet erat nulla tempus vivamus in felis eu sapien cursus vestibulum proin eu mi nulla ac enim',99,'2020-07-06 20:12:37','2020-07-06 20:12:37',79),(214,'erat curabitur gravida nisi at nibh in hac habitasse platea dictumst aliquam augue',192,'2020-07-10 14:28:56','2020-07-10 14:28:56',26),(215,'sagittis nam congue risus semper porta volutpat quam pede lobortis',NULL,'2020-06-24 22:16:44','2020-06-24 22:16:44',11),(216,'in lacus curabitur at ipsum ac tellus semper interdum mauris ullamcorper purus sit amet nulla quisque arcu libero rutrum',NULL,'2020-06-23 02:47:10','2020-06-23 02:47:10',55),(217,'consequat ut nulla sed accumsan felis ut at dolor quis odio consequat varius integer ac leo pellentesque ultrices mattis',NULL,'2020-06-25 06:21:38','2020-06-25 06:21:38',30),(218,'sapien arcu sed augue aliquam erat volutpat in congue etiam justo etiam pretium iaculis justo in hac habitasse platea dictumst etiam faucibus cursus urna ut',2,'2020-07-06 15:37:11','2020-07-06 15:37:11',68),(219,'amet sapien dignissim vestibulum vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere',NULL,'2020-07-13 20:54:47','2020-07-13 20:54:47',76),(220,'dui vel sem sed sagittis nam congue risus semper porta volutpat quam pede',274,'2020-07-06 21:31:41','2020-07-06 21:31:41',28),(221,'natoque penatibus et magnis dis parturient montes nascetur ridiculus mus vivamus',NULL,'2020-07-02 06:19:12','2020-07-02 06:19:12',67),(222,'odio in hac habitasse platea dictumst maecenas ut massa quis augue luctus tincidunt',53,'2020-07-01 23:20:58','2020-07-01 23:20:58',71),(223,'a nibh in quis justo maecenas rhoncus aliquam lacus morbi quis tortor id',10,'2020-06-27 21:49:53','2020-06-27 21:49:53',32),(224,'sapien placerat ante nulla justo aliquam quis turpis eget elit sodales scelerisque mauris sit amet eros suspendisse accumsan tortor quis',265,'2020-07-10 09:27:26','2020-07-10 09:27:26',22),(225,'libero convallis eget eleifend luctus ultricies eu nibh quisque id justo sit amet sapien dignissim vestibulum vestibulum ante ipsum primis in faucibus orci',NULL,'2020-07-13 09:04:26','2020-07-13 09:04:26',68),(226,'erat volutpat in congue etiam justo etiam pretium iaculis justo in hac habitasse platea dictumst etiam faucibus',NULL,'2020-07-13 10:38:22','2020-07-13 10:38:22',43),(227,'donec pharetra magna vestibulum aliquet ultrices erat tortor sollicitudin mi sit amet lobortis sapien sapien non mi integer ac neque duis bibendum',NULL,'2020-06-21 20:50:10','2020-06-21 20:50:10',50),(228,'odio justo sollicitudin ut suscipit a feugiat et eros vestibulum ac est lacinia nisi venenatis tristique fusce congue diam id ornare imperdiet',NULL,'2020-06-14 14:18:41','2020-06-14 14:18:41',32),(229,'sit amet justo morbi ut odio cras mi pede malesuada in imperdiet et commodo vulputate justo in blandit ultrices enim lorem ipsum dolor sit',NULL,'2020-07-10 20:45:22','2020-07-10 20:45:22',33),(230,'aliquet maecenas leo odio condimentum id luctus nec molestie sed justo pellentesque viverra pede ac diam cras',NULL,'2020-06-15 04:46:33','2020-06-15 04:46:33',77),(231,'suscipit a feugiat et eros vestibulum ac est lacinia nisi venenatis tristique fusce congue diam id ornare imperdiet sapien urna pretium',NULL,'2020-07-05 18:03:57','2020-07-05 18:03:57',25),(232,'primis in faucibus orci luctus et ultrices posuere cubilia curae nulla dapibus dolor vel est donec odio justo sollicitudin ut suscipit a feugiat et',175,'2020-06-17 05:57:08','2020-06-17 05:57:08',28),(233,'tellus nisi eu orci mauris lacinia sapien quis libero nullam',NULL,'2020-07-05 10:03:51','2020-07-05 10:03:51',23),(234,'erat fermentum justo nec condimentum neque sapien placerat ante nulla justo aliquam',NULL,'2020-06-24 13:46:40','2020-06-24 13:46:40',57),(235,'eget congue eget semper rutrum nulla nunc purus phasellus in felis donec',95,'2020-07-12 02:24:40','2020-07-12 02:24:40',77),(236,'volutpat in congue etiam justo etiam pretium iaculis justo in hac habitasse platea dictumst etiam faucibus cursus urna ut tellus nulla ut erat',NULL,'2020-06-30 22:30:24','2020-06-30 22:30:24',69),(237,'luctus et ultrices posuere cubilia curae donec pharetra magna vestibulum aliquet ultrices erat tortor sollicitudin',285,'2020-06-27 07:50:41','2020-06-27 07:50:41',30),(238,'id ligula suspendisse ornare consequat lectus in est risus auctor sed tristique in tempus sit amet sem fusce consequat nulla',NULL,'2020-06-25 22:11:10','2020-06-25 22:11:10',48),(239,'justo sit amet sapien dignissim vestibulum vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae nulla dapibus dolor',NULL,'2020-07-05 05:49:41','2020-07-05 05:49:41',3),(240,'in hac habitasse platea dictumst etiam faucibus cursus urna ut tellus nulla ut erat id mauris vulputate elementum nullam varius',209,'2020-07-05 19:10:16','2020-07-05 19:10:16',26),(241,'ipsum dolor sit amet consectetuer adipiscing elit proin interdum mauris non ligula pellentesque ultrices phasellus id sapien in sapien iaculis congue vivamus metus',188,'2020-06-23 20:14:03','2020-06-23 20:14:03',29),(242,'massa tempor convallis nulla neque libero convallis eget eleifend luctus ultricies eu nibh quisque id justo sit amet sapien dignissim',NULL,'2020-07-10 20:12:30','2020-07-10 20:12:30',37),(243,'lobortis ligula sit amet eleifend pede libero quis orci nullam molestie nibh in lectus pellentesque at nulla suspendisse',NULL,'2020-07-04 00:03:10','2020-07-04 00:03:10',4),(244,'vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae donec pharetra magna vestibulum aliquet',62,'2020-06-24 03:45:09','2020-06-24 03:45:09',66),(245,'in consequat ut nulla sed accumsan felis ut at dolor',NULL,'2020-06-25 21:40:57','2020-06-25 21:40:57',20),(246,'justo in blandit ultrices enim lorem ipsum dolor sit amet consectetuer adipiscing elit proin interdum',NULL,'2020-07-07 12:14:26','2020-07-07 12:14:26',14),(247,'eu orci mauris lacinia sapien quis libero nullam sit amet turpis elementum ligula vehicula consequat morbi a ipsum integer a',288,'2020-07-02 02:59:53','2020-07-02 02:59:53',70),(248,'accumsan odio curabitur convallis duis consequat dui nec nisi volutpat eleifend donec ut dolor morbi vel lectus',18,'2020-06-22 20:23:26','2020-06-22 20:23:26',51),(249,'luctus et ultrices posuere cubilia curae duis faucibus accumsan odio',268,'2020-06-22 14:26:40','2020-06-22 14:26:40',24),(250,'justo sollicitudin ut suscipit a feugiat et eros vestibulum ac est lacinia nisi venenatis tristique fusce congue diam id ornare imperdiet sapien urna',NULL,'2020-07-05 02:28:33','2020-07-05 02:28:33',72),(251,'suscipit nulla elit ac nulla sed vel enim sit amet nunc viverra',197,'2020-06-19 07:16:13','2020-06-19 07:16:13',45),(252,'hendrerit at vulputate vitae nisl aenean lectus pellentesque eget nunc donec quis orci eget orci vehicula',NULL,'2020-06-22 02:45:14','2020-06-22 02:45:14',8),(253,'nunc rhoncus dui vel sem sed sagittis nam congue risus semper porta volutpat quam pede lobortis ligula sit amet eleifend pede',79,'2020-07-13 09:56:20','2020-07-13 09:56:20',25),(254,'ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae',247,'2020-07-06 07:36:33','2020-07-06 07:36:33',18),(255,'morbi ut odio cras mi pede malesuada in imperdiet et commodo vulputate justo in blandit ultrices enim lorem ipsum dolor sit amet consectetuer',31,'2020-07-07 19:44:57','2020-07-07 19:44:57',8),(256,'lectus pellentesque at nulla suspendisse potenti cras in purus eu magna vulputate luctus cum',107,'2020-07-01 13:35:30','2020-07-01 13:35:30',35),(257,'lobortis ligula sit amet eleifend pede libero quis orci nullam molestie nibh in',295,'2020-07-06 12:16:41','2020-07-06 12:16:41',9),(258,'massa tempor convallis nulla neque libero convallis eget eleifend luctus',NULL,'2020-07-09 20:39:15','2020-07-09 20:39:15',58),(259,'quisque erat eros viverra eget congue eget semper rutrum nulla nunc purus phasellus in felis donec semper sapien a libero nam dui proin leo',255,'2020-07-10 21:01:44','2020-07-10 21:01:44',46),(260,'leo rhoncus sed vestibulum sit amet cursus id turpis integer aliquet massa id lobortis convallis tortor risus dapibus augue vel accumsan tellus nisi',271,'2020-07-14 16:44:10','2020-07-14 16:44:10',19),(261,'aliquam lacus morbi quis tortor id nulla ultrices aliquet maecenas leo odio condimentum id luctus nec molestie sed justo pellentesque',NULL,'2020-06-20 14:27:32','2020-06-20 14:27:32',70),(262,'adipiscing lorem vitae mattis nibh ligula nec sem duis aliquam convallis nunc proin at turpis a pede posuere nonummy integer non velit donec diam neque',179,'2020-06-29 17:24:09','2020-06-29 17:24:09',21),(263,'in tempor turpis nec euismod scelerisque quam turpis adipiscing lorem vitae',NULL,'2020-06-29 03:43:43','2020-06-29 03:43:43',52),(264,'in blandit ultrices enim lorem ipsum dolor sit amet consectetuer adipiscing elit proin interdum mauris',195,'2020-06-18 03:56:06','2020-06-18 03:56:06',21),(265,'fermentum donec ut mauris eget massa tempor convallis nulla neque libero convallis eget eleifend luctus ultricies eu nibh quisque id justo sit',NULL,'2020-06-26 01:10:21','2020-06-26 01:10:21',11),(266,'orci eget orci vehicula condimentum curabitur in libero ut massa volutpat convallis morbi odio odio elementum eu interdum eu tincidunt in',12,'2020-06-13 11:33:01','2020-06-13 11:33:01',22),(267,'id ornare imperdiet sapien urna pretium nisl ut volutpat sapien arcu sed augue aliquam erat volutpat in congue',NULL,'2020-06-14 14:30:29','2020-06-14 14:30:29',7),(268,'primis in faucibus orci luctus et ultrices posuere cubilia curae duis',NULL,'2020-06-17 07:07:42','2020-06-17 07:07:42',75),(269,'ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae duis faucibus accumsan odio curabitur convallis duis consequat',NULL,'2020-06-26 03:23:43','2020-06-26 03:23:43',43),(270,'purus phasellus in felis donec semper sapien a libero nam dui proin leo odio porttitor id consequat in consequat ut nulla',NULL,'2020-06-26 05:42:13','2020-06-26 05:42:13',36),(271,'est phasellus sit amet erat nulla tempus vivamus in felis eu sapien cursus vestibulum proin eu mi nulla ac enim',203,'2020-06-15 04:30:35','2020-06-15 04:30:35',11),(272,'suscipit nulla elit ac nulla sed vel enim sit amet nunc viverra dapibus nulla suscipit ligula in',199,'2020-06-24 06:53:18','2020-06-24 06:53:18',62),(273,'eget tincidunt eget tempus vel pede morbi porttitor lorem id ligula suspendisse ornare',186,'2020-06-18 03:33:24','2020-06-18 03:33:24',44),(274,'tortor risus dapibus augue vel accumsan tellus nisi eu orci mauris',125,'2020-06-25 15:32:46','2020-06-25 15:32:46',16),(275,'eget congue eget semper rutrum nulla nunc purus phasellus in felis donec semper sapien a libero nam dui proin leo odio porttitor id consequat',57,'2020-07-12 10:08:17','2020-07-12 10:08:17',6),(276,'suscipit a feugiat et eros vestibulum ac est lacinia nisi venenatis tristique fusce congue diam id ornare imperdiet sapien urna pretium nisl ut',66,'2020-06-13 05:10:38','2020-06-13 05:10:38',76),(277,'sit amet consectetuer adipiscing elit proin interdum mauris non ligula pellentesque ultrices phasellus id sapien in sapien iaculis congue vivamus metus arcu adipiscing',NULL,'2020-07-02 09:26:13','2020-07-02 09:26:13',11),(278,'neque vestibulum eget vulputate ut ultrices vel augue vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia',NULL,'2020-07-07 03:09:14','2020-07-07 03:09:14',27),(279,'vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae duis faucibus',NULL,'2020-07-06 23:58:58','2020-07-06 23:58:58',28),(280,'amet sem fusce consequat nulla nisl nunc nisl duis bibendum felis sed interdum venenatis turpis enim',NULL,'2020-06-23 03:00:42','2020-06-23 03:00:42',73),(281,'potenti in eleifend quam a odio in hac habitasse platea dictumst maecenas ut massa quis augue',NULL,'2020-07-13 19:09:16','2020-07-13 19:09:16',11),(282,'integer a nibh in quis justo maecenas rhoncus aliquam lacus morbi quis tortor id nulla ultrices aliquet maecenas leo odio condimentum id',NULL,'2020-07-02 17:14:00','2020-07-02 17:14:00',18),(283,'vel lectus in quam fringilla rhoncus mauris enim leo rhoncus sed vestibulum sit amet cursus id turpis integer aliquet massa id',NULL,'2020-06-19 12:57:15','2020-06-19 12:57:15',67),(284,'fusce lacus purus aliquet at feugiat non pretium quis lectus suspendisse potenti in eleifend quam a odio in hac habitasse platea dictumst maecenas ut',NULL,'2020-07-01 13:55:38','2020-07-01 13:55:38',56),(285,'ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae donec pharetra magna vestibulum aliquet ultrices erat tortor sollicitudin mi sit amet',NULL,'2020-06-23 21:38:11','2020-06-23 21:38:11',65),(286,'duis mattis egestas metus aenean fermentum donec ut mauris eget massa tempor convallis nulla neque',64,'2020-06-20 22:53:49','2020-06-20 22:53:49',52),(287,'ac tellus semper interdum mauris ullamcorper purus sit amet nulla quisque arcu libero',299,'2020-06-27 20:20:13','2020-06-27 20:20:13',58),(288,'et ultrices posuere cubilia curae mauris viverra diam vitae quam suspendisse potenti nullam porttitor lacus',NULL,'2020-06-26 17:25:04','2020-06-26 17:25:04',8),(289,'felis donec semper sapien a libero nam dui proin leo odio porttitor id consequat in consequat ut nulla sed accumsan felis ut at dolor quis',NULL,'2020-06-26 12:53:24','2020-06-26 12:53:24',19),(290,'accumsan tellus nisi eu orci mauris lacinia sapien quis libero nullam sit amet turpis elementum ligula vehicula consequat morbi a ipsum integer a',10,'2020-06-28 02:26:38','2020-06-28 02:26:38',43),(291,'pharetra magna ac consequat metus sapien ut nunc vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia',NULL,'2020-06-19 12:08:06','2020-06-19 12:08:06',69),(292,'ante vivamus tortor duis mattis egestas metus aenean fermentum donec ut mauris',206,'2020-06-19 01:08:20','2020-06-19 01:08:20',23),(293,'vitae nisi nam ultrices libero non mattis pulvinar nulla pede ullamcorper augue a suscipit nulla elit ac nulla sed vel enim sit',NULL,'2020-06-13 00:02:11','2020-06-13 00:02:11',5),(294,'posuere cubilia curae donec pharetra magna vestibulum aliquet ultrices erat tortor sollicitudin mi sit',NULL,'2020-07-07 21:56:24','2020-07-07 21:56:24',59),(295,'vulputate ut ultrices vel augue vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere',195,'2020-07-03 01:39:03','2020-07-03 01:39:03',10),(296,'fusce lacus purus aliquet at feugiat non pretium quis lectus suspendisse',264,'2020-06-13 06:42:00','2020-06-13 06:42:00',15),(297,'adipiscing lorem vitae mattis nibh ligula nec sem duis aliquam convallis nunc proin at turpis',NULL,'2020-06-15 16:53:55','2020-06-15 16:53:55',48),(298,'parturient montes nascetur ridiculus mus etiam vel augue vestibulum rutrum rutrum neque aenean auctor gravida sem praesent',155,'2020-07-04 14:13:00','2020-07-04 14:13:00',48),(299,'sapien cum sociis natoque penatibus et magnis dis parturient montes nascetur',NULL,'2020-06-22 21:25:50','2020-06-22 21:25:50',55),(300,'erat tortor sollicitudin mi sit amet lobortis sapien sapien non mi integer ac neque duis',134,'2020-07-13 08:25:23','2020-07-13 08:25:23',22),(301,'elementum nullam varius nulla facilisi cras non velit nec nisi vulputate nonummy maecenas tincidunt lacus at velit vivamus vel nulla eget eros',260,'2020-07-14 17:20:30','2020-07-14 17:20:30',77),(302,'non mattis pulvinar nulla pede ullamcorper augue a suscipit nulla',NULL,'2020-07-06 21:50:46','2020-07-06 21:50:46',78),(303,'magna vulputate luctus cum sociis natoque penatibus et magnis dis parturient montes nascetur ridiculus mus vivamus vestibulum sagittis sapien cum sociis natoque penatibus',58,'2020-07-05 02:23:18','2020-07-05 02:23:18',22),(304,'morbi a ipsum integer a nibh in quis justo maecenas rhoncus aliquam lacus morbi quis tortor id nulla ultrices aliquet maecenas leo odio',NULL,'2020-06-23 03:29:14','2020-06-23 03:29:14',62),(305,'turpis enim blandit mi in porttitor pede justo eu massa donec dapibus',NULL,'2020-06-15 02:41:35','2020-06-15 02:41:35',6),(306,'ultrices libero non mattis pulvinar nulla pede ullamcorper augue a suscipit nulla elit ac nulla sed',NULL,'2020-06-15 08:30:56','2020-06-15 08:30:56',13),(307,'donec semper sapien a libero nam dui proin leo odio porttitor id consequat in consequat ut nulla',108,'2020-06-15 04:38:22','2020-06-15 04:38:22',49),(308,'tincidunt lacus at velit vivamus vel nulla eget eros elementum pellentesque quisque porta volutpat erat quisque erat eros',62,'2020-07-04 10:48:53','2020-07-04 10:48:53',79),(309,'eget congue eget semper rutrum nulla nunc purus phasellus in felis donec semper sapien a',NULL,'2020-06-29 03:17:21','2020-06-29 03:17:21',62),(310,'ridiculus mus etiam vel augue vestibulum rutrum rutrum neque aenean auctor gravida sem praesent id massa id nisl venenatis lacinia aenean sit',NULL,'2020-06-15 03:31:07','2020-06-15 03:31:07',77),(311,'enim blandit mi in porttitor pede justo eu massa donec dapibus duis',NULL,'2020-06-22 10:33:17','2020-06-22 10:33:17',75),(312,'donec ut mauris eget massa tempor convallis nulla neque libero convallis eget eleifend luctus ultricies eu nibh quisque id justo sit amet',270,'2020-07-12 07:40:34','2020-07-12 07:40:34',19),(313,'rhoncus mauris enim leo rhoncus sed vestibulum sit amet cursus id turpis integer aliquet massa id lobortis convallis tortor risus',258,'2020-06-20 15:34:49','2020-06-20 15:34:49',34),(314,'blandit ultrices enim lorem ipsum dolor sit amet consectetuer adipiscing elit proin interdum mauris non ligula pellentesque ultrices phasellus id sapien in',273,'2020-07-07 14:14:21','2020-07-07 14:14:21',2),(315,'at velit eu est congue elementum in hac habitasse platea dictumst morbi',NULL,'2020-06-19 06:18:12','2020-06-19 06:18:12',7),(316,'leo rhoncus sed vestibulum sit amet cursus id turpis integer aliquet massa id lobortis convallis tortor risus dapibus augue vel accumsan tellus nisi eu',128,'2020-07-02 06:54:20','2020-07-02 06:54:20',12),(317,'ut tellus nulla ut erat id mauris vulputate elementum nullam varius nulla facilisi cras non velit nec nisi vulputate nonummy maecenas tincidunt lacus',NULL,'2020-06-14 02:39:19','2020-06-14 02:39:19',18),(318,'libero rutrum ac lobortis vel dapibus at diam nam tristique tortor eu',267,'2020-07-05 14:31:21','2020-07-05 14:31:21',64),(319,'id lobortis convallis tortor risus dapibus augue vel accumsan tellus nisi eu orci mauris lacinia sapien quis libero nullam sit amet turpis',NULL,'2020-06-23 05:25:51','2020-06-23 05:25:51',50),(320,'facilisi cras non velit nec nisi vulputate nonummy maecenas tincidunt lacus at velit vivamus vel',229,'2020-06-24 13:53:45','2020-06-24 13:53:45',33),(321,'nulla eget eros elementum pellentesque quisque porta volutpat erat quisque erat eros viverra eget congue eget semper rutrum nulla nunc purus phasellus',78,'2020-06-23 14:18:02','2020-06-23 14:18:02',24),(322,'duis faucibus accumsan odio curabitur convallis duis consequat dui nec',NULL,'2020-07-07 13:28:52','2020-07-07 13:28:52',49),(323,'dolor vel est donec odio justo sollicitudin ut suscipit a feugiat et eros vestibulum ac est lacinia nisi venenatis tristique fusce',NULL,'2020-06-25 16:27:00','2020-06-25 16:27:00',58),(324,'donec semper sapien a libero nam dui proin leo odio porttitor id consequat in consequat ut nulla sed accumsan felis ut at dolor quis',NULL,'2020-06-27 04:40:14','2020-06-27 04:40:14',79),(325,'nibh ligula nec sem duis aliquam convallis nunc proin at turpis a pede posuere nonummy integer non velit',205,'2020-06-30 07:20:51','2020-06-30 07:20:51',53);
/*!40000 ALTER TABLE `buzz` 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 2020-12-18 14:38:21
|
<gh_stars>1-10
create database airdnd_DB;
use airdnd_DB; |
<gh_stars>1-10
insert into user_contact (user_id, type, value, verified)
select user_id, 'MOBILE_PHONE', mobile, mobile_verified from users where mobile is not null;
|
-- Revert seattleflu/schema:roles/enrollment-processor/rename from pg
begin;
alter role "enrollment-processor" rename to enrollment_processor;
commit;
|
<filename>src/test/resources/e_select.test_2.sql
-- e_select.test
--
-- execsql {SELECT * FROM x2 JOIN x3}
SELECT * FROM x2 JOIN x3 |
<filename>src/test/resources/minmax3.test_15.sql
-- minmax3.test
--
-- execsql { DROP INDEX i1 ; CREATE INDEX i1 ON t1(y DESC) }
DROP INDEX i1 ; CREATE INDEX i1 ON t1(y DESC) |
<gh_stars>1000+
-- 2021-06-29T16:06:17.582442200Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_UI_Element WHERE AD_UI_Element_ID=584479
;
-- 2021-06-29T16:06:17.599442400Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Field_ID=645197
;
-- 2021-06-29T16:06:17.605450100Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Field_Trl WHERE AD_Field_ID=645197
;
-- 2021-06-29T16:06:17.608007600Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Field WHERE AD_Field_ID=645197
;
-- 2021-06-29T16:06:57.974162Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ SELECT public.db_alter_table('API_Audit_Config','ALTER TABLE API_Audit_Config DROP COLUMN IF EXISTS AD_User_InCharge_ID')
;
-- 2021-06-29T16:06:58.076952900Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Column_Trl WHERE AD_Column_ID=573791
;
-- 2021-06-29T16:06:58.085906700Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Column WHERE AD_Column_ID=573791
;
-- 2021-06-29T16:07:54.968414200Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column values('api_audit_config','NotifyUserInCharge','VARCHAR(255)',null,null)
;
-- 2021-06-29T16:12:01.228610400Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,579404,0,'AD_UserGroup_InCharge_ID',TO_TIMESTAMP('2021-06-29 19:12:01','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat','Y','User group in charge','User group in charge',TO_TIMESTAMP('2021-06-29 19:12:01','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-06-29T16:12:01.278217900Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,IsActive) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,'Y' FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=579404 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;
-- 2021-06-29T16:12:17.697854200Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Name='Betreuende Nutzergruppe', PrintName='Betreuende Nutzergruppe',Updated=TO_TIMESTAMP('2021-06-29 19:12:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579404 AND AD_Language='de_CH'
;
-- 2021-06-29T16:12:17.704078400Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579404,'de_CH')
;
-- 2021-06-29T16:12:34.952179900Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET Name='Betreuende Nutzergruppe', PrintName='Betreuende Nutzergruppe',Updated=TO_TIMESTAMP('2021-06-29 19:12:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=579404 AND AD_Language='de_DE'
;
-- 2021-06-29T16:12:34.953177600Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(579404,'de_DE')
;
-- 2021-06-29T16:12:34.969183500Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(579404,'de_DE')
;
-- 2021-06-29T16:12:34.971186800Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName='AD_UserGroup_InCharge_ID', Name='Betreuende Nutzergruppe', Description=NULL, Help=NULL WHERE AD_Element_ID=579404
;
-- 2021-06-29T16:12:34.972187Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='AD_UserGroup_InCharge_ID', Name='Betreuende Nutzergruppe', Description=NULL, Help=NULL, AD_Element_ID=579404 WHERE UPPER(ColumnName)='AD_USERGROUP_INCHARGE_ID' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
;
-- 2021-06-29T16:12:34.973187400Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName='AD_UserGroup_InCharge_ID', Name='Betreuende Nutzergruppe', Description=NULL, Help=NULL WHERE AD_Element_ID=579404 AND IsCentrallyMaintained='Y'
;
-- 2021-06-29T16:12:34.974184800Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Betreuende Nutzergruppe', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=579404) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 579404)
;
-- 2021-06-29T16:12:34.992186300Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Betreuende Nutzergruppe', Name='Betreuende Nutzergruppe' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=579404)
;
-- 2021-06-29T16:12:34.994183700Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Betreuende Nutzergruppe', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 579404
;
-- 2021-06-29T16:12:34.995185400Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_WINDOW SET Name='Betreuende Nutzergruppe', Description=NULL, Help=NULL WHERE AD_Element_ID = 579404
;
-- 2021-06-29T16:12:34.996186400Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET Name = 'Betreuende Nutzergruppe', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 579404
;
-- 2021-06-29T16:23:41.618771900Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,Description,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,541355,TO_TIMESTAMP('2021-06-29 19:23:41','YYYY-MM-DD HH24:MI:SS'),100,'User group selection','D','Y','N','AD_User - Group',TO_TIMESTAMP('2021-06-29 19:23:41','YYYY-MM-DD HH24:MI:SS'),100,'T')
;
-- 2021-06-29T16:23:41.621791500Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,IsActive) SELECT l.AD_Language, t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,'Y' FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Reference_ID=541355 AND NOT EXISTS (SELECT 1 FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
;
-- 2021-06-29T16:24:36.787939700Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_Table (AD_Client_ID,AD_Display,AD_Key,AD_Org_ID,AD_Reference_ID,AD_Table_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,OrderByClause,ShowInactiveValues,Updated,UpdatedBy) VALUES (0,564371,564370,0,541355,541187,TO_TIMESTAMP('2021-06-29 19:24:36','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','AD_UserGroup.Name','N',TO_TIMESTAMP('2021-06-29 19:24:36','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-06-29T16:26:22.396792300Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Reference_Value_ID,AD_Table_ID,ColumnName,Created,CreatedBy,DDL_NoForeignKey,EntityType,FacetFilterSeqNo,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsExcludeFromZoomTargets,IsFacetFilter,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsShowFilterIncrementButtons,IsShowFilterInline,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,MaxFacetsToFetch,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,574810,579404,0,30,541355,541635,'AD_UserGroup_InCharge_ID',TO_TIMESTAMP('2021-06-29 19:26:22','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.swat',0,255,'Y','N','Y','N','N','N','N','N','N','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','Y','N',0,'Betreuende Nutzergruppe',0,0,TO_TIMESTAMP('2021-06-29 19:26:22','YYYY-MM-DD HH24:MI:SS'),100,0)
;
-- 2021-06-29T16:26:22.399791200Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,IsActive) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,'Y' FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Column_ID=574810 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID)
;
-- 2021-06-29T16:26:22.402789700Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_Column_Translation_From_AD_Element(579404)
;
-- 2021-06-29T16:26:32.132795800Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ SELECT public.db_alter_table('API_Audit_Config','ALTER TABLE public.API_Audit_Config ADD COLUMN AD_UserGroup_InCharge_ID NUMERIC(10)')
;
-- 2021-06-29T16:26:32.145817100Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
ALTER TABLE API_Audit_Config ADD CONSTRAINT ADUserGroupInCharge_APIAuditConfig FOREIGN KEY (AD_UserGroup_InCharge_ID) REFERENCES public.AD_UserGroup DEFERRABLE INITIALLY DEFERRED
;
-- 2021-06-29T16:29:09.536475Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column values('api_audit_config','AD_UserGroup_InCharge_ID','NUMERIC(10)',null,null)
;
-- 2021-06-29T16:29:22.292734100Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET FieldLength=10,Updated=TO_TIMESTAMP('2021-06-29 19:29:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=574810
;
-- 2021-06-29T16:29:25.323532Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column values('api_audit_config','AD_UserGroup_InCharge_ID','NUMERIC(10)',null,null)
;
-- 2021-06-29T16:31:51.847600800Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column values('api_audit_config','AD_UserGroup_InCharge_ID','NUMERIC(10)',null,null)
;
-- 2021-06-29T16:34:11.284687600Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET FieldLength=255,Updated=TO_TIMESTAMP('2021-06-29 19:34:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=574810
;
-- 2021-06-29T16:34:12.709802600Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column values('api_audit_config','AD_UserGroup_InCharge_ID','NUMERIC(10)',null,null)
;
-- 2021-06-29T16:34:51.619758400Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET EntityType='D',Updated=TO_TIMESTAMP('2021-06-29 19:34:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=574810
;
-- 2021-06-29T16:34:57.124414Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column values('api_audit_config','AD_UserGroup_InCharge_ID','NUMERIC(10)',null,null)
;
-- 2021-06-29T16:35:00.562957600Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO t_alter_column values('api_audit_config','AD_UserGroup_InCharge_ID','NUMERIC(10)',null,null)
;
-- 2021-06-29T16:42:47.341146700Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field (AD_Client_ID,AD_Column_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,ColumnDisplayLength,Created,CreatedBy,DisplayLength,EntityType,IncludedTabHeight,IsActive,IsDisplayed,IsDisplayedGrid,IsEncrypted,IsFieldOnly,IsHeading,IsReadOnly,IsSameLine,Name,SeqNo,SeqNoGrid,SortNo,SpanX,SpanY,Updated,UpdatedBy) VALUES (0,574810,649879,0,543895,0,TO_TIMESTAMP('2021-06-29 19:42:47','YYYY-MM-DD HH24:MI:SS'),100,0,'D',0,'Y','Y','Y','N','N','N','N','N','Betreuende Nutzergruppe',0,10,0,1,1,TO_TIMESTAMP('2021-06-29 19:42:47','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-06-29T16:42:47.625930600Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Field_Trl (AD_Language,AD_Field_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy,IsActive) SELECT l.AD_Language, t.AD_Field_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy,'Y' FROM AD_Language l, AD_Field t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Field_ID=649879 AND NOT EXISTS (SELECT 1 FROM AD_Field_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Field_ID=t.AD_Field_ID)
;
-- 2021-06-29T16:42:47.711531400Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_FieldTranslation_From_AD_Name_Element(579404)
;
-- 2021-06-29T16:42:47.715527700Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
DELETE FROM AD_Element_Link WHERE AD_Field_ID=649879
;
-- 2021-06-29T16:42:47.740454Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select AD_Element_Link_Create_Missing_Field(649879)
;
-- 2021-06-29T16:43:16.253264600Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_UI_Element (AD_Client_ID,AD_Field_ID,AD_Org_ID,AD_Tab_ID,AD_UI_Element_ID,AD_UI_ElementGroup_ID,AD_UI_ElementType,Created,CreatedBy,IsActive,IsAdvancedField,IsAllowFiltering,IsDisplayed,IsDisplayed_SideList,IsDisplayedGrid,IsMultiLine,MultiLine_LinesCount,Name,SeqNo,SeqNo_SideList,SeqNoGrid,Updated,UpdatedBy) VALUES (0,649879,0,543895,586906,545830,'F',TO_TIMESTAMP('2021-06-29 19:43:15','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','N','Y','N','N','N',0,'Betreuende Nutzergruppe',20,0,0,TO_TIMESTAMP('2021-06-29 19:43:15','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-06-29T16:43:51.410135900Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_UI_Element SET IsDisplayedGrid='Y', SeqNoGrid=50,Updated=TO_TIMESTAMP('2021-06-29 19:43:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_UI_Element_ID=586906
;
|
UPDATE EPS_PROP_PER_DOC_TYPE SET DESCRIPTION='StatementofCommitment' WHERE DOCUMENT_TYPE_CODE='4';
UPDATE EPS_PROP_PER_DOC_TYPE SET DESCRIPTION='BudgetDetails' WHERE DOCUMENT_TYPE_CODE='3';
COMMIT; |
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/log/Release_1_0_logs/s2s/views/OSP$EPS_PROPOSAL.sql
CREATE OR REPLACE VIEW OSP$EPS_PROPOSAL ( PROPOSAL_NUMBER, PROPOSAL_TYPE_CODE, STATUS_CODE, CREATION_STATUS_CODE, BASE_PROPOSAL_NUMBER, CONTINUED_FROM, TEMPLATE_FLAG, ORGANIZATION_ID, PERFORMING_ORGANIZATION_ID, CURRENT_ACCOUNT_NUMBER, CURRENT_AWARD_NUMBER, TITLE, SPONSOR_CODE, SPONSOR_PROPOSAL_NUMBER, INTR_COOP_ACTIVITIES_FLAG, INTR_COUNTRY_LIST, OTHER_AGENCY_FLAG, NOTICE_OF_OPPORTUNITY_CODE, PROGRAM_ANNOUNCEMENT_NUMBER, PROGRAM_ANNOUNCEMENT_TITLE, ACTIVITY_TYPE_CODE, REQUESTED_START_DATE_INITIAL, REQUESTED_START_DATE_TOTAL, REQUESTED_END_DATE_INITIAL, REQUESTED_END_DATE_TOTAL, DURATION_MONTHS, NUMBER_OF_COPIES, DEADLINE_DATE, DEADLINE_TYPE, MAILING_ADDRESS_ID, MAIL_BY, MAIL_TYPE, CARRIER_CODE_TYPE, CARRIER_CODE, MAIL_DESCRIPTION, MAIL_ACCOUNT_NUMBER, SUBCONTRACT_FLAG, NARRATIVE_STATUS, BUDGET_STATUS, OWNED_BY_UNIT, CREATE_TIMESTAMP, CREATE_USER, UPDATE_TIMESTAMP, UPDATE_USER, NSF_CODE, PRIME_SPONSOR_CODE, CFDA_NUMBER, AGENCY_PROGRAM_CODE, AGENCY_DIVISION_CODE
) AS select PROPOSAL_NUMBER, PROPOSAL_TYPE_CODE, STATUS_CODE, CREATION_STATUS_CODE, BASE_PROPOSAL_NUMBER, CONTINUED_FROM, TEMPLATE_FLAG, ORGANIZATION_ID, PERFORMING_ORGANIZATION_ID, CURRENT_ACCOUNT_NUMBER, CURRENT_AWARD_NUMBER, TITLE, SPONSOR_CODE, SPONSOR_PROPOSAL_NUMBER, INTR_COOP_ACTIVITIES_FLAG, INTR_COUNTRY_LIST, OTHER_AGENCY_FLAG, NOTICE_OF_OPPORTUNITY_CODE, PROGRAM_ANNOUNCEMENT_NUMBER, PROGRAM_ANNOUNCEMENT_TITLE, ACTIVITY_TYPE_CODE, REQUESTED_START_DATE_INITIAL, REQUESTED_START_DATE_TOTAL, REQUESTED_END_DATE_INITIAL, REQUESTED_END_DATE_TOTAL, DURATION_MONTHS, NUMBER_OF_COPIES, DEADLINE_DATE, DEADLINE_TYPE, MAILING_ADDRESS_ID, MAIL_BY, MAIL_TYPE, CARRIER_CODE_TYPE, CARRIER_CODE, MAIL_DESCRIPTION, MAIL_ACCOUNT_NUMBER, SUBCONTRACT_FLAG, NARRATIVE_STATUS, BUDGET_STATUS, OWNED_BY_UNIT, CREATE_TIMESTAMP, CREATE_USER, UPDATE_TIMESTAMP, UPDATE_USER, NSF_CODE, PRIME_SPONSOR_CODE, CFDA_NUMBER, AGENCY_PROGRAM_CODE, AGENCY_DIVISION_CODE
from EPS_PROPOSAL;
|
DELETE FROM strings WHERE entry BETWEEN 1143 AND 1148;
INSERT INTO strings VALUES
(1143, 'Spawned by event %u (%s)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(1144, 'Despawned by event %u (%s)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(1145, 'Part of pool %u',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(1146, 'Part of pool %u, top pool %u',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(1147, 'The (top)pool %u is spawned by event %u (%s)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
(1148, 'The (top)pool %u is despawned by event %u (%s)',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
|
<reponame>skahler-yuga/yugabyte-db
-- Copyright (c) YugaByte, Inc.
-- NOTE: This is not a versioned migration. Editing this file will tell flyway to re-apply it!
-- Probably safest to not edit this file
alter table if exists certificate_info add column if not exists checksum varchar(32);
|
BEGIN;
CREATE TABLE "consulta_validez_unidadeducativa" (
"id" serial NOT NULL PRIMARY KEY,
"cue" varchar(9) NOT NULL UNIQUE,
"nombre" varchar(255) NOT NULL,
"tipo_unidad_educativa" varchar(20) NOT NULL,
"jurisdiccion_id" integer REFERENCES "registro_jurisdiccion" ("id") DEFERRABLE INITIALLY DEFERRED
)
;
CREATE TABLE "consulta_validez_titulo" (
"id" serial NOT NULL PRIMARY KEY,
"unidad_educativa_id" integer REFERENCES "consulta_validez_unidadeducativa" ("id") DEFERRABLE INITIALLY DEFERRED,
"denominacion" varchar(255) NOT NULL,
"primera" varchar(255) NOT NULL,
"ultima" varchar(255) NOT NULL,
"nroinfd" varchar(255) NOT NULL,
"carrera" varchar(255) NOT NULL,
"normativa_jurisdiccional" varchar(255) NOT NULL,
"normativa_nacional" varchar(255) NOT NULL
)
;
INSERT INTO deltas_sql (numero, app, comentario) VALUES ('102', 'ConsultaValidez', 'Ticket #308');
COMMIT;
|
-- Add bank account owner
ALTER TABLE `client` ADD `bank_account_owner` varchar(255) DEFAULT NULL AFTER `notes`;
|
<gh_stars>1-10
/*L
Copyright SAIC
Distributed under the OSI-approved BSD 3-Clause License.
See http://ncip.github.com/cabio/LICENSE.txt for details.
L*/
drop index LOC_RANGE_QUERY;
drop index LOC_TRANSCRIPT_ID;
drop index LOC_SNP_ID;
drop index LOC_SEQUENCE_ID;
drop index LOC_MARKER_ID;
drop index LOC_GENE_ID;
drop index LOC_FEATURE_TYPE_LWR;
drop index LOC_FEATURE_TYPE;
drop index LOC_EXON_REPORTER_ID;
drop index LOC_END_CYTO_ID;
drop index LOC_START_CYTO_ID;
drop index LOC_DISCRIMINATOR_LWR;
drop index LOC_DISCRIMINATOR;
drop index LOC_CYTOSNP_ID;
drop index LOC_CYTOREPORTER_ID;
drop index LOC_CYTOGENE_ID;
drop index LOC_CYTOBAND_ID;
drop index LOC_CHROMOSOME_ID;
drop index LOC_CHROM_END;
drop index LOC_CHROM_START;
drop index LOC_ASSEMBLY_LWR;
drop index LOC_ASSEMBLY;
drop index LOC_REPORTER_ID;
drop index LOC_ID;
drop index LOCATIO_CH_BIG_ID_LWR;
drop index LOCATIO_CH_BIG_ID;
--EXIT;
|
<reponame>opengauss-mirror/Yat
-- @testpoint: opengauss关键字trusted(非保留),作为同义词对象名,部分测试点合理报错
--前置条件
drop table if exists explain_test;
create table explain_test(id int,name varchar(10));
--关键字不带引号-成功
drop synonym if exists trusted;
create synonym trusted for explain_test;
insert into trusted values (1,'ada'),(2, 'bob');
update trusted set trusted.name='cici' where trusted.id=2;
select * from trusted;
drop synonym if exists trusted;
--关键字带双引号-成功
drop synonym if exists "trusted";
create synonym "trusted" for explain_test;
drop synonym if exists "trusted";
--关键字带单引号-合理报错
drop synonym if exists 'trusted';
create synonym 'trusted' for explain_test;
insert into 'trusted' values (1,'ada'),(2, 'bob');
update 'trusted' set 'trusted'.name='cici' where 'trusted'.id=2;
select * from 'trusted';
--关键字带反引号-合理报错
drop synonym if exists `trusted`;
create synonym `trusted` for explain_test;
insert into `trusted` values (1,'ada'),(2, 'bob');
update `trusted` set `trusted`.name='cici' where `trusted`.id=2;
select * from `trusted`;
--清理环境
drop table if exists explain_test; |
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 30, 2020 at 02:11 PM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.1.32
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: `sach`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`password` <PASSWORD>(11) NOT NULL,
`email` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `banner`
--
CREATE TABLE `banner` (
`id` int(11) NOT NULL,
`hinhanh` varbinary(255) NOT NULL,
`mota` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `chap`
--
CREATE TABLE `chap` (
`id_chap` int(11) NOT NULL,
`ten_chap` varchar(255) NOT NULL,
`ngay_capnhat` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `nha_xuatban`
--
CREATE TABLE `nha_xuatban` (
`id_nhaxb` int(11) NOT NULL,
`ten_nhaxb` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `nha_xuatban`
--
INSERT INTO `nha_xuatban` (`id_nhaxb`, `ten_nhaxb`) VALUES
(1, 'NXB Thời Đại'),
(2, 'NXB Thông Tin Và Truyền Thông');
-- --------------------------------------------------------
--
-- Table structure for table `sach`
--
CREATE TABLE `sach` (
`id_sach` int(11) NOT NULL,
`ten_sach` varchar(255) NOT NULL,
`id_tacgia` int(11) NOT NULL,
`ngay_capnhat` timestamp NOT NULL DEFAULT current_timestamp(),
`hinh_anh` varchar(255) NOT NULL,
`id_nhaxb` int(11) NOT NULL,
`id_theloai` int(11) NOT NULL,
`id_chap` int(11) NOT NULL,
`noi_dung` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `tac_gia`
--
CREATE TABLE `tac_gia` (
`id_tacgia` int(11) NOT NULL,
`ten_tacgia` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `tac_gia`
--
INSERT INTO `tac_gia` (`id_tacgia`, `ten_tacgia`) VALUES
(1, '<NAME>'),
(2, '<NAME>');
-- --------------------------------------------------------
--
-- Table structure for table `tai_khoan`
--
CREATE TABLE `tai_khoan` (
`id` int(11) NOT NULL,
`name` varchar(255) NOT NULL,
`password` int(11) NOT NULL,
`email` varchar(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `the_loai`
--
CREATE TABLE `the_loai` (
`id_theloai` int(11) NOT NULL,
`ten_theloai` varchar(255) NOT NULL,
`soluong` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Dumping data for table `the_loai`
--
INSERT INTO `the_loai` (`id_theloai`, `ten_theloai`, `soluong`) VALUES
(0, 'Tâm Lý - Kỹ Năng Sống', 100),
(1, 'Tâm Lý - Kỹ Năng Sống', 100),
(2, 'Kinh Tế - Quản Lý', 34);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `banner`
--
ALTER TABLE `banner`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `chap`
--
ALTER TABLE `chap`
ADD PRIMARY KEY (`id_chap`);
--
-- Indexes for table `nha_xuatban`
--
ALTER TABLE `nha_xuatban`
ADD PRIMARY KEY (`id_nhaxb`);
--
-- Indexes for table `sach`
--
ALTER TABLE `sach`
ADD PRIMARY KEY (`id_sach`),
ADD KEY `id_nhaxb` (`id_nhaxb`),
ADD KEY `id_theloai` (`id_theloai`),
ADD KEY `id_tacgia` (`id_tacgia`),
ADD KEY `id_chap` (`id_chap`);
--
-- Indexes for table `tac_gia`
--
ALTER TABLE `tac_gia`
ADD PRIMARY KEY (`id_tacgia`);
--
-- Indexes for table `tai_khoan`
--
ALTER TABLE `tai_khoan`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `the_loai`
--
ALTER TABLE `the_loai`
ADD PRIMARY KEY (`id_theloai`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `banner`
--
ALTER TABLE `banner`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `chap`
--
ALTER TABLE `chap`
MODIFY `id_chap` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `tac_gia`
--
ALTER TABLE `tac_gia`
MODIFY `id_tacgia` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `sach`
--
ALTER TABLE `sach`
ADD CONSTRAINT `sach_ibfk_1` FOREIGN KEY (`id_nhaxb`) REFERENCES `nha_xuatban` (`id_nhaxb`) ON DELETE CASCADE ON UPDATE NO ACTION,
ADD CONSTRAINT `sach_ibfk_2` FOREIGN KEY (`id_theloai`) REFERENCES `the_loai` (`id_theloai`),
ADD CONSTRAINT `sach_ibfk_3` FOREIGN KEY (`id_tacgia`) REFERENCES `tac_gia` (`id_tacgia`),
ADD CONSTRAINT `sach_ibfk_4` FOREIGN KEY (`id_chap`) REFERENCES `chap` (`id_chap`);
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 */;
|
DECLARE
genreid INTEGER;
amount INTEGER;
BEGIN
for v_rec in (
SELECT GENRE.GENREID, COUNT(*) as Amount FROM GENRE
INNER JOIN TRACK
ON TRACK.GENREID = GENRE.GENREID
INNER JOIN INVOICELINE
ON INVOICELINE.TRACKID = TRACK.TRACKID
INNER JOIN
(
SELECT INVOICEID FROM INVOICE
INNER JOIN CUSTOMER
ON CUSTOMER.CUSTOMERID = INVOICE.CUSTOMERID
WHERE CUSTOMER.COUNTRY = 'USA'
) DT
ON INVOICELINE.INVOICEID = DT.INVOICEID
GROUP BY GENRE.GENREID
ORDER BY 2 DESC
)
loop
genreid := v_rec.GENREID;
amount := v_rec.Amount;
end loop;
END;
|
<filename>mysql/employeetracker_seeds.sql<gh_stars>0
INSERT INTO edepartment (name) VALUES ('Engineering');
INSERT INTO edepartment (name) VALUES ('Human Resources');
INSERT INTO edepartment (name) VALUES ('Consulting');
INSERT INTO edepartment (name) VALUES ('Nursing');
INSERT INTO edepartment (name) VALUES ('Operations');
INSERT INTO erole (title, salary, department_id) VALUES ('Manager', 200000, 5);
INSERT INTO erole (title, salary, department_id) VALUES ('Engineer', 130000, 1);
INSERT INTO erole (title, salary, department_id) VALUES ('Sr. Engineer', 150000, 1);
INSERT INTO erole (title, salary, department_id) VALUES ('Nurse', 100000, 4);
INSERT INTO erole (title, salary, department_id) VALUES ('Consultant', 80000, 3);
INSERT INTO erole (title, salary, department_id) VALUES ('Analyst', 30000, 2);
INSERT INTO employee (first_name, last_name, role_id) VALUES ('Michael', 'Mink', 1);
INSERT INTO employee (first_name, last_name, role_id) VALUES ('Dalton', 'Mink', 2);
INSERT INTO employee (first_name, last_name, role_id) VALUES ('Dyelan', 'Mink', 5); |
-- CreateTable
CREATE TABLE `user` (
`id` INTEGER NOT NULL AUTO_INCREMENT,
`publicId` VARCHAR(191) NOT NULL,
`firstname` VARCHAR(191) NOT NULL,
`lastname` VARCHAR(191) NOT NULL,
`email` VARCHAR(191) NOT NULL,
`password` VARCHAR(191) NOT NULL,
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
`updated_at` DATETIME(3) NOT NULL,
UNIQUE INDEX `user_publicId_key`(`publicId`),
UNIQUE INDEX `user_email_key`(`email`),
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-- CreateTable
CREATE TABLE `todo` (
`id` INTEGER NOT NULL AUTO_INCREMENT,
`title` VARCHAR(191) NOT NULL,
`content` VARCHAR(191) NOT NULL,
`created_at` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
`updated_at` DATETIME(3) NOT NULL,
`userId` INTEGER NOT NULL,
UNIQUE INDEX `todo_title_key`(`title`),
PRIMARY KEY (`id`)
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
-- AddForeignKey
ALTER TABLE `todo` ADD CONSTRAINT `todo_userId_fkey` FOREIGN KEY (`userId`) REFERENCES `user`(`id`) ON DELETE RESTRICT ON UPDATE CASCADE;
|
<reponame>megan-donnelly/messaging-mini-app<gh_stars>0
SELECT conversations.id, messages.content, messages."updatedAt", users."firstName", users."lastName"
FROM conversations
JOIN messages
ON (conversations.id = messages."conversationId")
JOIN users
ON (messages."userId" = users.id)
WHERE conversations.id = 1
ORDER BY messages."updatedAt" DESC; |
-- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 29, 2020 at 12:22 PM
-- Server version: 10.4.13-MariaDB
-- PHP Version: 7.4.8
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: `paidleavy`
--
-- --------------------------------------------------------
--
-- Table structure for table `departments`
--
CREATE TABLE `departments` (
`id` bigint(20) UNSIGNED NOT NULL,
`department_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `departments`
--
INSERT INTO `departments` (`id`, `department_id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'D3757', 'IT', '2020-12-09 06:37:24', '2020-12-11 00:56:33'),
(2, 'D1589', 'Management', '2020-12-09 06:37:31', '2020-12-09 06:37:31'),
(3, 'D1067', 'Accounting', '2020-12-09 06:37:37', '2020-12-09 06:37:37'),
(4, 'D3993', 'Marketing', '2020-12-09 06:37:44', '2020-12-09 06:37:44');
-- --------------------------------------------------------
--
-- Table structure for table `employees`
--
CREATE TABLE `employees` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`employee_id` int(10) UNSIGNED NOT NULL,
`date_of_entry` date NOT NULL,
`department` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`position` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`leave_balance` int(11) NOT NULL DEFAULT 12,
`path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `employees`
--
INSERT INTO `employees` (`id`, `name`, `employee_id`, `date_of_entry`, `department`, `position`, `status`, `leave_balance`, `path`, `email_verified_at`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', 1931035, '2001-08-16', 'Management', 'Admin', 'Regular Worker', 12, '5fd342fa71b89.jpg', NULL, NULL, '2020-12-08 17:00:00', '2020-12-11 02:59:22'),
(2, '<NAME>', 1931035, '2001-09-18', 'Marketing', 'Supervisor', 'Regular Worker', 12, '5fd342db8246a.jpeg', NULL, NULL, '2020-12-09 06:45:26', '2020-12-11 02:58:51'),
(3, '<NAME>', 1931137, '2001-09-16', 'IT', 'Leader', 'Regular Worker', 9, '5fd342cdd3a4f.jpeg', NULL, NULL, '2020-12-09 06:50:09', '2020-12-17 10:04:45'),
(4, 'Dayton', 1931165, '2001-09-05', 'IT', 'Manager', 'Regular Worker', 6, '5fd342c09ba0f.jpeg', NULL, NULL, '2020-12-09 06:51:37', '2020-12-14 01:27:09'),
(5, 'Donny', 1931125, '2001-05-05', 'Accounting', 'Manager', 'Daily Worker', 12, '5fd368424b1f2.jpeg', NULL, NULL, '2020-12-09 06:52:35', '2020-12-11 22:48:24'),
(8, 'Edy', 1931036, '2020-12-14', 'IT', 'Leader', 'Regular Worker', 12, '5fd724534cf75.jpg', NULL, NULL, '2020-12-14 01:37:39', '2020-12-14 01:37:39');
-- --------------------------------------------------------
--
-- Table structure for table `failed_jobs`
--
CREATE TABLE `failed_jobs` (
`id` bigint(20) UNSIGNED NOT NULL,
`uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`connection` text COLLATE utf8mb4_unicode_ci NOT NULL,
`queue` text COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`failed_at` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `leaves`
--
CREATE TABLE `leaves` (
`id` bigint(20) UNSIGNED NOT NULL,
`leave_code` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`employee_id` int(10) UNSIGNED NOT NULL,
`submit_date` date NOT NULL,
`start_date` date NOT NULL,
`end_date` date NOT NULL,
`leave_amount` int(10) UNSIGNED NOT NULL,
`type_of_leave` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`phone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`approver` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`approved_date` date DEFAULT NULL,
`status` int(11) NOT NULL DEFAULT 0,
`softdelete` int(11) NOT NULL DEFAULT 0,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `leaves`
--
INSERT INTO `leaves` (`id`, `leave_code`, `employee_id`, `submit_date`, `start_date`, `end_date`, `leave_amount`, `type_of_leave`, `description`, `phone`, `approver`, `approved_date`, `status`, `softdelete`, `created_at`, `updated_at`) VALUES
(23, 'CT4691', 4, '2020-12-14', '2020-12-14', '2020-12-16', 3, 'Sick Leave', 'Pusing', '081267889933', 'Ellwan', '2020-12-14', 1, 1, '2020-12-14 01:23:42', '2020-12-17 10:00:35'),
(24, 'CT8739', 3, '2020-12-17', '2020-12-18', '2020-12-20', 3, 'Sick Leave', 'DBD', '081278785554', 'Ellwan', '2020-12-17', 1, 0, '2020-12-17 10:04:28', '2020-12-17 10:04:45'),
(25, 'CT7481', 4, '2020-12-22', '2020-12-22', '2020-12-23', 2, 'Business Trip', 'Lamar Kerja Tigernix', '081267778343', NULL, NULL, 0, 0, '2020-12-21 23:16:50', '2020-12-21 23:16:50');
-- --------------------------------------------------------
--
-- Table structure for table `migrations`
--
CREATE TABLE `migrations` (
`id` int(10) UNSIGNED NOT NULL,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `migrations`
--
INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES
(1, '2014_10_12_000000_create_users_table', 1),
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2020_11_22_093932_create_employees_table', 1),
(5, '2020_11_22_094119_create_departments_table', 1),
(6, '2020_11_22_153742_create_positions_table', 1),
(7, '2020_11_22_153824_create_leaves_table', 1);
-- --------------------------------------------------------
--
-- Table structure for table `password_resets`
--
CREATE TABLE `password_resets` (
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `positions`
--
CREATE TABLE `positions` (
`id` bigint(20) UNSIGNED NOT NULL,
`position_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `positions`
--
INSERT INTO `positions` (`id`, `position_id`, `name`, `created_at`, `updated_at`) VALUES
(1, 'P5240', 'Leader', '2020-12-09 06:38:08', '2020-12-09 06:38:08'),
(2, 'P1436', 'Supervisor', '2020-12-09 06:38:13', '2020-12-09 06:38:13'),
(3, 'P4477', 'Manager', '2020-12-09 06:38:19', '2020-12-09 06:38:19');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`employee_id` int(10) UNSIGNED DEFAULT NULL,
`username` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`is_admin` int(11) NOT NULL DEFAULT 0,
`email_verified_at` timestamp NULL DEFAULT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `employee_id`, `username`, `password`, `is_admin`, `email_verified_at`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', 1, 'ellwan', <PASSWORD>$hn<PASSWORD>', 1, NULL, NULL, '2020-12-09 06:36:22', '2020-12-09 06:36:22'),
(4, 'dayton', 4, 'dayton', '$2y$10$ciVlQOLrJPYbOCnQm1qJX.cMy4n.6Dc3RJRqWWSywhD/01E/jpQXW', 0, NULL, NULL, '2020-12-14 01:22:45', '2020-12-14 01:22:45'),
(5, 'evan charles', 3, 'evan', <PASSWORD>', 0, NULL, NULL, '2020-12-17 10:02:21', '2020-12-17 10:02:21');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `departments`
--
ALTER TABLE `departments`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `employees`
--
ALTER TABLE `employees`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`);
--
-- Indexes for table `leaves`
--
ALTER TABLE `leaves`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `password_resets`
--
ALTER TABLE `password_resets`
ADD KEY `password_resets_email_index` (`email`);
--
-- Indexes for table `positions`
--
ALTER TABLE `positions`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_username_unique` (`username`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `departments`
--
ALTER TABLE `departments`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `employees`
--
ALTER TABLE `employees`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `failed_jobs`
--
ALTER TABLE `failed_jobs`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `leaves`
--
ALTER TABLE `leaves`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `positions`
--
ALTER TABLE `positions`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
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 */;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.