sql stringlengths 6 1.05M |
|---|
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Versión del servidor: 5.7.24 - MySQL Community Server (GPL)
-- SO del servidor: Win64
-- HeidiSQL Versión: 11.0.0.5919
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Volcando estructura de base de datos para db_larablog_dev
CREATE DATABASE IF NOT EXISTS `db_larablog_dev` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_spanish_ci */;
USE `db_larablog_dev`;
-- Volcando estructura para tabla db_larablog_dev.access
CREATE TABLE IF NOT EXISTS `access` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) DEFAULT NULL,
`added_on` timestamp NULL DEFAULT NULL,
`ip` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=177 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.access: ~90 rows (aproximadamente)
/*!40000 ALTER TABLE `access` DISABLE KEYS */;
INSERT INTO `access` (`id`, `user_id`, `added_on`, `ip`) VALUES
(13, 2, '2020-02-01 16:28:00', '127.0.0.1'),
(14, 3, '2020-02-01 17:27:14', '127.0.0.1'),
(15, 6, '2020-02-01 17:27:39', '127.0.0.1'),
(16, 6, '2020-02-01 17:37:43', '127.0.0.1'),
(17, 2, '2020-02-01 17:55:56', '127.0.0.1'),
(18, 2, '2020-02-02 17:00:51', '127.0.0.1'),
(19, 2, '2020-02-02 17:27:55', '127.0.0.1'),
(20, 2, '2020-02-02 18:53:53', '127.0.0.1'),
(21, 2, '2020-02-02 19:51:10', '127.0.0.1'),
(22, 2, '2020-02-02 19:51:35', '127.0.0.1'),
(23, 3, '2020-02-02 19:52:58', '127.0.0.1'),
(24, 3, '2020-02-02 19:53:52', '127.0.0.1'),
(25, 2, '2020-02-02 19:54:35', '127.0.0.1'),
(26, 2, '2020-02-02 20:21:15', '127.0.0.1'),
(27, 2, '2020-02-02 20:34:35', '127.0.0.1'),
(28, 2, '2020-02-02 21:25:18', '127.0.0.1'),
(29, 6, '2020-02-02 21:31:03', '127.0.0.1'),
(30, 3, '2020-02-02 23:47:33', '127.0.0.1'),
(31, 2, '2020-02-03 14:45:22', '127.0.0.1'),
(32, 6, '2020-02-03 15:49:02', '127.0.0.1'),
(33, 2, '2020-02-03 15:54:41', '127.0.0.1'),
(34, 2, '2020-02-03 15:56:10', '127.0.0.1'),
(35, 2, '2020-02-03 19:25:05', '127.0.0.1'),
(36, 2, '2020-02-03 20:07:18', '127.0.0.1'),
(37, 2, '2020-02-03 21:43:41', '127.0.0.1'),
(38, 3, '2020-02-03 21:56:31', '127.0.0.1'),
(39, 2, '2020-02-03 21:56:45', '127.0.0.1'),
(40, 2, '2020-02-03 22:16:20', '192.168.1.3'),
(41, 2, '2020-02-03 22:22:21', '192.168.1.3'),
(42, 3, '2020-02-03 22:27:31', '192.168.1.3'),
(43, 2, '2020-02-03 22:28:20', '192.168.1.3'),
(44, 2, '2020-02-03 22:31:35', '192.168.1.5'),
(45, 2, '2020-02-03 23:11:23', '192.168.1.3'),
(46, 2, '2020-02-03 23:31:25', '192.168.1.3'),
(47, 2, '2020-02-03 23:46:20', '192.168.1.3'),
(48, 7, '2020-02-03 23:46:57', '192.168.1.3'),
(49, 7, '2020-02-03 23:47:20', '192.168.1.3'),
(50, 2, '2020-02-03 23:47:34', '192.168.1.3'),
(51, 2, '2020-02-04 00:20:36', '192.168.1.3'),
(52, 2, '2020-02-04 15:51:02', '192.168.1.3'),
(53, 3, '2020-02-04 16:35:47', '192.168.1.3'),
(54, 2, '2020-02-04 16:36:16', '192.168.1.3'),
(55, 2, '2020-02-04 17:55:46', '192.168.1.3'),
(56, 2, '2020-02-04 18:04:34', '192.168.1.3'),
(57, 2, '2020-02-04 18:07:21', '192.168.1.2'),
(58, 2, '2020-02-04 18:36:34', '192.168.1.5'),
(59, 2, '2020-02-04 18:43:06', '127.0.0.1'),
(60, 2, '2020-02-04 20:00:28', '192.168.1.3'),
(61, 2, '2020-02-04 21:29:48', '192.168.1.3'),
(62, 2, '2020-02-04 21:30:33', '192.168.1.3'),
(63, 2, '2020-02-04 22:45:13', '192.168.1.3'),
(64, 2, '2020-02-04 23:02:10', '127.0.0.1'),
(65, 2, '2020-02-04 23:13:26', '192.168.1.3'),
(66, 2, '2020-02-05 17:30:55', '192.168.1.3'),
(67, 2, '2020-02-05 17:32:25', '192.168.1.200'),
(68, 2, '2020-02-05 23:41:34', '127.0.0.1'),
(69, 2, '2020-02-05 23:42:16', '192.168.1.3'),
(70, 2, '2020-02-05 23:57:44', '192.168.1.3'),
(71, 2, '2020-02-06 22:26:26', '127.0.0.1'),
(72, 2, '2020-02-07 21:08:10', '127.0.0.1'),
(73, 2, '2020-02-08 19:55:35', '127.0.0.1'),
(74, 2, '2020-02-08 19:58:58', '127.0.0.1'),
(75, 6, '2020-02-08 23:14:11', '127.0.0.1'),
(76, 2, '2020-02-08 23:25:26', '127.0.0.1'),
(77, 2, '2020-02-09 20:11:35', '127.0.0.1'),
(78, 2, '2020-02-09 22:20:10', '127.0.0.1'),
(79, 2, '2020-02-09 22:32:05', '127.0.0.1'),
(80, 2, '2020-02-09 22:50:25', '192.168.1.3'),
(81, 2, '2020-02-09 22:50:57', '192.168.1.3'),
(82, 2, '2020-02-10 13:26:20', '127.0.0.1'),
(83, 2, '2020-02-10 13:58:53', '127.0.0.1'),
(84, 2, '2020-02-10 14:00:28', '192.168.1.3'),
(85, 2, '2020-02-10 14:08:24', '192.168.1.3'),
(86, 2, '2020-02-10 14:12:25', '192.168.1.3'),
(87, 2, '2020-02-10 14:15:30', '127.0.0.1'),
(88, 5, '2020-02-10 14:26:48', '192.168.1.3'),
(89, 5, '2020-02-10 14:28:58', '192.168.1.3'),
(90, 2, '2020-02-10 16:21:07', '127.0.0.1'),
(91, 2, '2020-02-10 16:33:44', '127.0.0.1'),
(92, 2, '2020-02-10 16:49:59', '192.168.1.3'),
(93, 2, '2020-02-10 19:48:51', '127.0.0.1'),
(94, 2, '2020-02-10 22:27:42', '127.0.0.1'),
(95, 2, '2020-02-11 13:28:19', '127.0.0.1'),
(96, 2, '2020-02-11 21:09:29', '127.0.0.1'),
(97, 2, '2020-02-11 21:10:33', '127.0.0.1'),
(98, 2, '2020-02-12 21:27:50', '127.0.0.1'),
(99, 5, '2020-03-02 22:01:09', '127.0.0.1'),
(100, 5, '2020-03-02 22:01:09', '127.0.0.1'),
(101, 5, '2020-03-02 22:02:49', '127.0.0.1'),
(102, 2, '2020-03-02 22:04:44', '127.0.0.1'),
(103, 2, '2020-03-03 20:57:38', '127.0.0.1'),
(104, 2, '2020-03-03 21:14:23', '127.0.0.1'),
(105, 2, '2020-03-07 20:27:38', '127.0.0.1'),
(106, 2, '2020-03-08 21:43:31', '127.0.0.1'),
(107, 2, '2020-03-08 21:57:23', '192.168.1.200'),
(108, 2, '2020-03-09 22:10:54', '127.0.0.1'),
(109, 2, '2020-03-10 22:30:28', '127.0.0.1'),
(110, 2, '2020-03-10 22:44:22', '192.168.1.200'),
(111, 2, '2020-03-11 19:51:26', '127.0.0.1'),
(112, 2, '2020-03-11 19:58:07', '127.0.0.1'),
(113, 2, '2020-03-12 21:03:11', '127.0.0.1'),
(114, 2, '2020-03-12 21:55:21', '127.0.0.1'),
(115, 2, '2020-03-15 16:07:18', '127.0.0.1'),
(116, 2, '2020-03-15 19:35:18', '127.0.0.1'),
(117, 2, '2020-03-17 21:17:24', '127.0.0.1'),
(118, 2, '2020-03-19 22:21:17', '127.0.0.1'),
(119, 2, '2020-03-25 20:58:48', '127.0.0.1'),
(120, 2, '2020-03-26 22:04:34', '127.0.0.1'),
(121, 2, '2020-03-26 23:14:59', '192.168.1.200'),
(122, 2, '2020-03-28 21:47:56', '127.0.0.1'),
(123, 2, '2020-03-29 18:41:17', '127.0.0.1'),
(124, 2, '2020-03-30 13:53:59', '127.0.0.1'),
(125, 2, '2020-03-31 16:55:36', '127.0.0.1'),
(126, 2, '2020-03-31 17:04:21', '127.0.0.1'),
(127, 2, '2020-03-31 21:00:05', '127.0.0.1'),
(128, 2, '2020-04-01 12:46:38', '127.0.0.1'),
(129, 2, '2020-04-04 22:10:34', '127.0.0.1'),
(130, 2, '2020-04-04 22:22:50', '192.168.1.16'),
(131, 2, '2020-04-05 15:15:22', '127.0.0.1'),
(132, 2, '2020-04-05 21:22:07', '192.168.1.16'),
(133, 2, '2020-04-12 14:42:46', '127.0.0.1'),
(134, 2, '2020-04-23 23:13:39', '127.0.0.1'),
(135, 3, '2020-04-23 23:32:03', '127.0.0.1'),
(136, 2, '2020-04-23 23:32:38', '127.0.0.1'),
(137, 2, '2020-04-29 21:04:54', '127.0.0.1'),
(138, 3, '2020-04-29 21:47:17', '127.0.0.1'),
(139, 2, '2020-04-29 21:47:41', '127.0.0.1'),
(140, 2, '2020-04-29 23:26:15', '127.0.0.1'),
(141, 2, '2020-05-01 00:00:09', '127.0.0.1'),
(142, 2, '2020-05-01 00:19:37', '127.0.0.1'),
(143, 2, '2020-05-01 01:34:12', '127.0.0.1'),
(144, 3, '2020-05-01 01:34:31', '127.0.0.1'),
(145, 2, '2020-05-03 17:11:58', '127.0.0.1'),
(146, 2, '2020-05-03 19:59:00', '127.0.0.1'),
(147, 2, '2020-05-03 20:28:37', '127.0.0.1'),
(148, 2, '2020-05-08 20:07:15', '127.0.0.1'),
(149, 2, '2020-05-08 21:07:28', '127.0.0.1'),
(150, 2, '2020-05-09 00:45:26', '192.168.1.5'),
(151, 2, '2020-05-09 01:43:45', '192.168.1.5'),
(152, 2, '2020-05-09 20:55:48', '127.0.0.1'),
(153, 2, '2020-05-10 13:43:35', '127.0.0.1'),
(154, 2, '2020-05-11 12:41:28', '127.0.0.1'),
(155, 2, '2020-05-26 21:38:20', '127.0.0.1'),
(156, 2, '2020-05-27 00:51:08', '127.0.0.1'),
(157, 2, '2020-05-27 10:41:42', '127.0.0.1'),
(158, 2, '2020-05-27 21:34:54', '127.0.0.1'),
(159, 2, '2020-05-27 21:47:45', '192.168.1.8'),
(160, 2, '2020-05-27 21:53:16', '192.168.1.11'),
(161, 2, '2020-05-28 18:34:04', '127.0.0.1'),
(162, 5, '2020-05-28 20:35:06', '127.0.0.1'),
(163, 5, '2020-05-28 20:35:27', '127.0.0.1'),
(164, 2, '2020-05-28 20:35:54', '127.0.0.1'),
(165, 2, '2020-05-28 22:47:23', '127.0.0.1'),
(166, 2, '2020-05-28 22:47:23', '127.0.0.1'),
(167, 2, '2020-05-30 13:04:48', '127.0.0.1'),
(168, 2, '2020-05-30 15:19:28', '127.0.0.1'),
(169, 2, '2020-05-30 21:33:57', '127.0.0.1'),
(170, 2, '2020-06-01 11:26:10', '127.0.0.1'),
(171, 2, '2020-06-12 17:30:21', '127.0.0.1'),
(172, 2, '2020-07-03 00:00:42', '127.0.0.1'),
(173, 2, '2020-07-05 01:15:46', '127.0.0.1'),
(174, 2, '2020-07-11 23:07:03', '127.0.0.1'),
(175, 2, '2020-07-19 19:48:37', '127.0.0.1'),
(176, 2, '2020-07-19 19:54:02', '127.0.0.1');
/*!40000 ALTER TABLE `access` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.categories
CREATE TABLE IF NOT EXISTS `categories` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`url_clean` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=45 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.categories: ~42 rows (aproximadamente)
/*!40000 ALTER TABLE `categories` DISABLE KEYS */;
INSERT INTO `categories` (`id`, `title`, `url_clean`, `created_at`, `updated_at`) VALUES
(1, 'Categoria N° 1', 'categoria url 1.', '2020-01-29 15:26:31', '2020-01-31 00:07:42'),
(2, 'Categoria N° 2', 'categoria url 2', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(3, 'Categoria N° 32', 'categoria url 3', '2020-01-29 15:26:31', '2020-02-08 23:11:20'),
(4, 'Categoria N° 4', 'categoria url 4', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(5, 'Categoria N° 5', 'categoria url 5', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(6, 'Categoria N° 6', 'categoria url 6', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(7, 'Categoria N° 7', 'categoria url 7', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(8, 'Categoria N° 8', 'categoria url 8', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(9, 'Categoria N° 9', 'categoria url 9', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(10, 'Categoria N° 10', 'categoria url 10', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(11, 'Categoria N° 11', 'categoria url 11', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(12, 'Categoria N° 12', 'categoria url 12', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(13, 'Categoria N° 13', 'categoria url 13', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(14, 'Categoria N° 14', 'categoria url 14', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(15, 'Categoria N° 15', 'categoria url 15', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(16, 'Categoria N° 16', 'categoria url 16', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(17, 'Categoria N° 17', 'categoria url 17', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(18, 'Categoria N° 18', 'categoria url 18', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(19, 'Categoria N° 19', 'categoria url 19', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(20, 'Categoria N° 20', 'categoria url 20', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(21, 'Categoria N° 21', 'categoria url 21', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(22, 'Categoria N° 22', 'categoria url 22', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(23, 'Categoria N° 23', 'categoria url 23', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(24, 'Categoria N° 24', 'categoria url 24', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(25, 'Categoria N° 25', 'categoria url 25', '2020-01-29 15:26:31', '2020-01-29 15:26:31'),
(26, 'Rosauu', 'Juanjose', '2020-02-04 18:05:13', '2020-02-04 18:05:13'),
(28, 'primera categoría modificada', 'primera-categoria-modificada', '2020-02-08 22:15:07', '2020-02-08 22:15:07'),
(29, 'prueba del old type2', 'abbbbbbbbbbbbbbbbbbbbbbbbbbbb', '2020-02-08 22:17:41', '2020-02-08 22:17:41'),
(30, 'la momia', 'prueba-del-old-type', '2020-02-08 22:21:30', '2020-02-08 22:21:30'),
(31, 'el metóOdo', 'prueba-del-old-type11', '2020-02-08 22:28:19', '2020-02-08 22:28:19'),
(32, 'tipo hidden', 'yttttttttttttttttttttttttttttttttttttt', '2020-02-08 22:30:22', '2020-02-08 22:30:22'),
(33, 'prueba del old type', 'prueba-del-old-type333p', '2020-02-08 22:30:51', '2020-02-08 22:30:51'),
(34, 'posted', 'posted', '2020-02-08 22:33:04', '2020-02-08 22:33:04'),
(35, 'La categoría ha sido creada con exito', 'la-categoria-ha-sido-creada-con-exito', '2020-02-08 22:35:30', '2020-02-08 22:35:30'),
(36, 'Ejemplo', 'ejemplo', '2020-02-08 22:35:51', '2020-02-08 22:35:51'),
(37, 'utooweewqer', 'utooweewqer', '2020-02-08 22:36:16', '2020-02-08 22:36:16'),
(38, 'Lorem Ipsum is simply dummy text COM MAYÚSCULAS', 'lorem-ipsum-is-simply-dummy-text-com-mayusculas', '2020-02-08 22:36:42', '2020-02-08 22:36:42'),
(39, 'ultima prueba', 'url_clean-al-pelo', '2020-02-08 22:37:06', '2020-02-08 22:37:06'),
(40, 'prueba del old type', 'jajaj-jajaj', '2020-02-08 22:37:20', '2020-02-08 22:37:20'),
(41, 'prueba del old type', 'muestre-la-url', '2020-02-08 22:37:57', '2020-02-08 22:37:57'),
(42, 'por que funcíona bn', 'por-que-funcona-bn', '2020-02-08 22:38:09', '2020-02-08 23:12:17'),
(43, 'categorías bíen', 'categorias-bien', '2020-02-08 23:25:47', '2020-02-08 23:25:47'),
(44, 'about:blank#blocked', 'aboutblankblocked', '2020-04-05 21:24:07', '2020-04-05 21:24:07');
/*!40000 ALTER TABLE `categories` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.contacts
CREATE TABLE IF NOT EXISTS `contacts` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`surname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`message` text COLLATE utf8mb4_unicode_ci,
`user_id` bigint(20) DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`phone` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.contacts: ~16 rows (aproximadamente)
/*!40000 ALTER TABLE `contacts` DISABLE KEYS */;
INSERT INTO `contacts` (`id`, `name`, `surname`, `email`, `message`, `user_id`, `created_at`, `updated_at`, `phone`) VALUES
(4, 'Nombre N° 4', 'Apellido N° 4', '<EMAIL> ', 'Mensaje de contenido N° 4', 2, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(7, 'Nombre N° 7', 'Apellido N° 7', '<EMAIL> ', 'Mensaje de contenido N° 7', 3, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(8, 'Nombre N° 8', 'Apellido N° 8', '<EMAIL> ', 'Mensaje de contenido N° 8', 3, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(9, 'Nombre N° 9', 'Apellido N° 9', '<EMAIL> ', 'Mensaje de contenido N° 9', 5, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(11, 'Nombre N° 11', 'Apellido N° 11', '<EMAIL> ', 'Mensaje de contenido N° 11', 7, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(12, 'Nombre N° 12', 'Apellido N° 12', '<EMAIL> ', 'Mensaje de contenido N° 12', 5, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(13, 'Nombre N° 13', 'Apellido N° 13', '<EMAIL> ', 'Mensaje de contenido N° 13', 6, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(14, 'Nombre N° 14', 'Apellido N° 14', '<EMAIL> ', 'Mensaje de contenido N° 14', 6, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(15, 'Nombre N° 15', 'Apellido N° 15', '<EMAIL> ', 'Mensaje de contenido N° 15', 3, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(16, 'Nombre N° 16', 'Apellido N° 16', '<EMAIL> ', 'Mensaje de contenido N° 16', 2, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(17, 'Nombre N° 17', 'Apellido N° 17', '<EMAIL> ', 'Mensaje de contenido N° 17', 5, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(18, 'Nombre N° 18', 'Apellido N° 18', '<EMAIL> ', 'Mensaje de contenido N° 18', 5, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(19, 'Nombre N° 19', 'Apellido N° 19', '<EMAIL> ', 'Mensaje de contenido N° 19', 6, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(20, 'Nombre N° 20', 'Apellido N° 20', '<EMAIL> ', 'Mensaje de contenido N° 20', 7, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(21, 'Nombre N° 21', 'Apellido N° 21', '<EMAIL> ', 'Mensaje de contenido N° 21', 7, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(23, 'Nombre N° 23', 'Apellido N° 23', '<EMAIL> ', 'Mensaje de contenido N° 23', 7, '2020-02-10 16:01:35', '2020-02-10 16:01:35', NULL),
(24, 'martha', 'aldana', '<EMAIL>', 'conctact', NULL, '2020-07-18 21:47:10', '2020-07-18 21:47:10', '(+057) 454-354-54-54');
/*!40000 ALTER TABLE `contacts` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.failed_jobs
CREATE TABLE IF NOT EXISTS `failed_jobs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`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,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.failed_jobs: ~2 rows (aproximadamente)
/*!40000 ALTER TABLE `failed_jobs` DISABLE KEYS */;
INSERT INTO `failed_jobs` (`id`, `connection`, `queue`, `payload`, `exception`, `failed_at`) VALUES
(1, 'database', 'default', '{"displayName":"App\\\\Jobs\\\\SendEmail","job":"Illuminate\\\\Queue\\\\CallQueuedHandler@call","maxTries":null,"delay":null,"timeout":null,"timeoutAt":null,"data":{"commandName":"App\\\\Jobs\\\\SendEmail","command":"O:18:\\"App\\\\Jobs\\\\SendEmail\\":10:{s:8:\\"\\u0000*\\u0000title\\";s:23:\\"email enviado por colas\\";s:8:\\"\\u0000*\\u0000email\\";s:24:\\"<EMAIL>\\";s:6:\\"\\u0000*\\u0000job\\";N;s:10:\\"connection\\";N;s:5:\\"queue\\";N;s:15:\\"chainConnection\\";N;s:10:\\"chainQueue\\";N;s:5:\\"delay\\";N;s:10:\\"middleware\\";a:0:{}s:7:\\"chained\\";a:0:{}}"}}', 'Swift_TransportException: Failed to authenticate on SMTP server with username "<EMAIL>" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at\r\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials q15sm2615693vsn.24 - gsmtp\r\n". Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at\r\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials q15sm2615693vsn.24 - gsmtp\r\n". Authenticator XOAUTH2 returned Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at\r\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials q15sm2615693vsn.24 - gsmtp\r\n". in C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Transport\\Esmtp\\AuthHandler.php:191\nStack trace:\n#0 C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Transport\\EsmtpTransport.php(371): Swift_Transport_Esmtp_AuthHandler->afterEhlo(Object(Swift_SmtpTransport))\n#1 C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Transport\\AbstractSmtpTransport.php(148): Swift_Transport_EsmtpTransport->doHeloCommand()\n#2 C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Mailer.php(65): Swift_Transport_AbstractSmtpTransport->start()\n#3 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(486): Swift_Mailer->send(Object(Swift_Message), Array)\n#4 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(261): Illuminate\\Mail\\Mailer->sendSwiftMessage(Object(Swift_Message))\n#5 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailable.php(159): Illuminate\\Mail\\Mailer->send(\'emails.title\', Array, Object(Closure))\n#6 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\Localizable.php(19): Illuminate\\Mail\\Mailable->Illuminate\\Mail\\{closure}()\n#7 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailable.php(160): Illuminate\\Mail\\Mailable->withLocale(NULL, Object(Closure))\n#8 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(277): Illuminate\\Mail\\Mailable->send(Object(Illuminate\\Mail\\Mailer))\n#9 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(231): Illuminate\\Mail\\Mailer->sendMailable(Object(App\\Mail\\EmailForQueue))\n#10 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\PendingMail.php(122): Illuminate\\Mail\\Mailer->send(Object(App\\Mail\\EmailForQueue))\n#11 C:\\laragon\\www\\larablog\\app\\Jobs\\SendEmail.php(37): Illuminate\\Mail\\PendingMail->send(Object(App\\Mail\\EmailForQueue))\n#12 [internal function]: App\\Jobs\\SendEmail->handle()\n#13 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(32): call_user_func_array(Array, Array)\n#14 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(36): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#15 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(90): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#16 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#17 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(590): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#18 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Bus\\Dispatcher.php(94): Illuminate\\Container\\Container->call(Array)\n#19 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(130): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(App\\Jobs\\SendEmail))\n#20 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(105): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\SendEmail))\n#21 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Bus\\Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#22 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\CallQueuedHandler.php(83): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(App\\Jobs\\SendEmail), false)\n#23 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(130): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}(Object(App\\Jobs\\SendEmail))\n#24 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(105): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\SendEmail))\n#25 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\CallQueuedHandler.php(85): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#26 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\CallQueuedHandler.php(59): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware(Object(Illuminate\\Queue\\Jobs\\DatabaseJob), Object(App\\Jobs\\SendEmail))\n#27 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Jobs\\Job.php(88): Illuminate\\Queue\\CallQueuedHandler->call(Object(Illuminate\\Queue\\Jobs\\DatabaseJob), Array)\n#28 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Worker.php(354): Illuminate\\Queue\\Jobs\\Job->fire()\n#29 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Worker.php(300): Illuminate\\Queue\\Worker->process(\'database\', Object(Illuminate\\Queue\\Jobs\\DatabaseJob), Object(Illuminate\\Queue\\WorkerOptions))\n#30 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Worker.php(134): Illuminate\\Queue\\Worker->runJob(Object(Illuminate\\Queue\\Jobs\\DatabaseJob), \'database\', Object(Illuminate\\Queue\\WorkerOptions))\n#31 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Console\\WorkCommand.php(112): Illuminate\\Queue\\Worker->daemon(\'database\', \'default\', Object(Illuminate\\Queue\\WorkerOptions))\n#32 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Console\\WorkCommand.php(96): Illuminate\\Queue\\Console\\WorkCommand->runWorker(\'database\', \'default\')\n#33 [internal function]: Illuminate\\Queue\\Console\\WorkCommand->handle()\n#34 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(32): call_user_func_array(Array, Array)\n#35 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(36): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#36 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(90): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#37 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#38 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(590): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#39 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(201): Illuminate\\Container\\Container->call(Array)\n#40 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Command\\Command.php(255): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#41 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(188): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#42 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Application.php(1011): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#43 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Application.php(272): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Queue\\Console\\WorkCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#44 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Application.php(148): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#45 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#46 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\Kernel.php(131): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#47 C:\\laragon\\www\\larablog\\artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#48 {main}', '2020-05-03 19:59:04'),
(2, 'database', 'default', '{"displayName":"App\\\\Jobs\\\\SendEmail","job":"Illuminate\\\\Queue\\\\CallQueuedHandler@call","maxTries":null,"delay":null,"timeout":null,"timeoutAt":null,"data":{"commandName":"App\\\\Jobs\\\\SendEmail","command":"O:18:\\"App\\\\Jobs\\\\SendEmail\\":10:{s:8:\\"\\u0000*\\u0000title\\";s:23:\\"email enviado por colas\\";s:8:\\"\\u0000*\\u0000email\\";s:24:\\"<EMAIL>\\";s:6:\\"\\u0000*\\u0000job\\";N;s:10:\\"connection\\";N;s:5:\\"queue\\";N;s:15:\\"chainConnection\\";N;s:10:\\"chainQueue\\";N;s:5:\\"delay\\";N;s:10:\\"middleware\\";a:0:{}s:7:\\"chained\\";a:0:{}}"}}', 'Swift_TransportException: Failed to authenticate on SMTP server with username "<EMAIL>" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at\r\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials k184sm4093359vke.42 - gsmtp\r\n". Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at\r\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials k184sm4093359vke.42 - gsmtp\r\n". Authenticator XOAUTH2 returned Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at\r\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials k184sm4093359vke.42 - gsmtp\r\n". in C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Transport\\Esmtp\\AuthHandler.php:191\nStack trace:\n#0 C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Transport\\EsmtpTransport.php(371): Swift_Transport_Esmtp_AuthHandler->afterEhlo(Object(Swift_SmtpTransport))\n#1 C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Transport\\AbstractSmtpTransport.php(148): Swift_Transport_EsmtpTransport->doHeloCommand()\n#2 C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Mailer.php(65): Swift_Transport_AbstractSmtpTransport->start()\n#3 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(486): Swift_Mailer->send(Object(Swift_Message), Array)\n#4 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(261): Illuminate\\Mail\\Mailer->sendSwiftMessage(Object(Swift_Message))\n#5 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailable.php(159): Illuminate\\Mail\\Mailer->send(\'emails.title\', Array, Object(Closure))\n#6 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\Localizable.php(19): Illuminate\\Mail\\Mailable->Illuminate\\Mail\\{closure}()\n#7 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailable.php(160): Illuminate\\Mail\\Mailable->withLocale(NULL, Object(Closure))\n#8 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(277): Illuminate\\Mail\\Mailable->send(Object(Illuminate\\Mail\\Mailer))\n#9 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(231): Illuminate\\Mail\\Mailer->sendMailable(Object(App\\Mail\\EmailForQueue))\n#10 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\PendingMail.php(122): Illuminate\\Mail\\Mailer->send(Object(App\\Mail\\EmailForQueue))\n#11 C:\\laragon\\www\\larablog\\app\\Jobs\\SendEmail.php(37): Illuminate\\Mail\\PendingMail->send(Object(App\\Mail\\EmailForQueue))\n#12 [internal function]: App\\Jobs\\SendEmail->handle()\n#13 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(32): call_user_func_array(Array, Array)\n#14 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(36): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#15 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(90): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#16 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#17 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(590): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#18 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Bus\\Dispatcher.php(94): Illuminate\\Container\\Container->call(Array)\n#19 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(130): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(App\\Jobs\\SendEmail))\n#20 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(105): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\SendEmail))\n#21 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Bus\\Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#22 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\CallQueuedHandler.php(83): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(App\\Jobs\\SendEmail), false)\n#23 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(130): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}(Object(App\\Jobs\\SendEmail))\n#24 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(105): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\SendEmail))\n#25 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\CallQueuedHandler.php(85): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#26 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\CallQueuedHandler.php(59): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware(Object(Illuminate\\Queue\\Jobs\\DatabaseJob), Object(App\\Jobs\\SendEmail))\n#27 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Jobs\\Job.php(88): Illuminate\\Queue\\CallQueuedHandler->call(Object(Illuminate\\Queue\\Jobs\\DatabaseJob), Array)\n#28 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Worker.php(354): Illuminate\\Queue\\Jobs\\Job->fire()\n#29 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Worker.php(300): Illuminate\\Queue\\Worker->process(\'database\', Object(Illuminate\\Queue\\Jobs\\DatabaseJob), Object(Illuminate\\Queue\\WorkerOptions))\n#30 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Worker.php(134): Illuminate\\Queue\\Worker->runJob(Object(Illuminate\\Queue\\Jobs\\DatabaseJob), \'database\', Object(Illuminate\\Queue\\WorkerOptions))\n#31 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Console\\WorkCommand.php(112): Illuminate\\Queue\\Worker->daemon(\'database\', \'default\', Object(Illuminate\\Queue\\WorkerOptions))\n#32 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Console\\WorkCommand.php(96): Illuminate\\Queue\\Console\\WorkCommand->runWorker(\'database\', \'default\')\n#33 [internal function]: Illuminate\\Queue\\Console\\WorkCommand->handle()\n#34 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(32): call_user_func_array(Array, Array)\n#35 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(36): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#36 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(90): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#37 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#38 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(590): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#39 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(201): Illuminate\\Container\\Container->call(Array)\n#40 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Command\\Command.php(255): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#41 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(188): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#42 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Application.php(1011): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#43 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Application.php(272): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Queue\\Console\\WorkCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#44 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Application.php(148): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#45 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#46 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\Kernel.php(131): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#47 C:\\laragon\\www\\larablog\\artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#48 {main}', '2020-05-03 20:04:15'),
(3, 'database', 'default', '{"displayName":"App\\\\Jobs\\\\SendEmail","job":"Illuminate\\\\Queue\\\\CallQueuedHandler@call","maxTries":null,"delay":null,"timeout":null,"timeoutAt":null,"data":{"commandName":"App\\\\Jobs\\\\SendEmail","command":"O:18:\\"App\\\\Jobs\\\\SendEmail\\":10:{s:8:\\"\\u0000*\\u0000title\\";s:23:\\"email enviado por colas\\";s:8:\\"\\u0000*\\u0000email\\";s:24:\\"<EMAIL>\\";s:6:\\"\\u0000*\\u0000job\\";N;s:10:\\"connection\\";N;s:5:\\"queue\\";N;s:15:\\"chainConnection\\";N;s:10:\\"chainQueue\\";N;s:5:\\"delay\\";N;s:10:\\"middleware\\";a:0:{}s:7:\\"chained\\";a:0:{}}"}}', 'Swift_TransportException: Failed to authenticate on SMTP server with username "<EMAIL>" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at\r\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials v23sm4047876vsa.6 - gsmtp\r\n". Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at\r\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials v23sm4047876vsa.6 - gsmtp\r\n". Authenticator XOAUTH2 returned Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at\r\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials v23sm4047876vsa.6 - gsmtp\r\n". in C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Transport\\Esmtp\\AuthHandler.php:191\nStack trace:\n#0 C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Transport\\EsmtpTransport.php(371): Swift_Transport_Esmtp_AuthHandler->afterEhlo(Object(Swift_SmtpTransport))\n#1 C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Transport\\AbstractSmtpTransport.php(148): Swift_Transport_EsmtpTransport->doHeloCommand()\n#2 C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Mailer.php(65): Swift_Transport_AbstractSmtpTransport->start()\n#3 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(486): Swift_Mailer->send(Object(Swift_Message), Array)\n#4 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(261): Illuminate\\Mail\\Mailer->sendSwiftMessage(Object(Swift_Message))\n#5 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailable.php(159): Illuminate\\Mail\\Mailer->send(\'emails.title\', Array, Object(Closure))\n#6 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\Localizable.php(19): Illuminate\\Mail\\Mailable->Illuminate\\Mail\\{closure}()\n#7 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailable.php(160): Illuminate\\Mail\\Mailable->withLocale(NULL, Object(Closure))\n#8 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(277): Illuminate\\Mail\\Mailable->send(Object(Illuminate\\Mail\\Mailer))\n#9 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(231): Illuminate\\Mail\\Mailer->sendMailable(Object(App\\Mail\\EmailForQueue))\n#10 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\PendingMail.php(122): Illuminate\\Mail\\Mailer->send(Object(App\\Mail\\EmailForQueue))\n#11 C:\\laragon\\www\\larablog\\app\\Jobs\\SendEmail.php(37): Illuminate\\Mail\\PendingMail->send(Object(App\\Mail\\EmailForQueue))\n#12 [internal function]: App\\Jobs\\SendEmail->handle()\n#13 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(32): call_user_func_array(Array, Array)\n#14 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(36): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#15 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(90): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#16 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#17 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(590): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#18 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Bus\\Dispatcher.php(94): Illuminate\\Container\\Container->call(Array)\n#19 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(130): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(App\\Jobs\\SendEmail))\n#20 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(105): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\SendEmail))\n#21 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Bus\\Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#22 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\CallQueuedHandler.php(83): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(App\\Jobs\\SendEmail), false)\n#23 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(130): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}(Object(App\\Jobs\\SendEmail))\n#24 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(105): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\SendEmail))\n#25 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\CallQueuedHandler.php(85): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#26 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\CallQueuedHandler.php(59): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware(Object(Illuminate\\Queue\\Jobs\\DatabaseJob), Object(App\\Jobs\\SendEmail))\n#27 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Jobs\\Job.php(88): Illuminate\\Queue\\CallQueuedHandler->call(Object(Illuminate\\Queue\\Jobs\\DatabaseJob), Array)\n#28 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Worker.php(354): Illuminate\\Queue\\Jobs\\Job->fire()\n#29 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Worker.php(300): Illuminate\\Queue\\Worker->process(\'database\', Object(Illuminate\\Queue\\Jobs\\DatabaseJob), Object(Illuminate\\Queue\\WorkerOptions))\n#30 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Worker.php(134): Illuminate\\Queue\\Worker->runJob(Object(Illuminate\\Queue\\Jobs\\DatabaseJob), \'database\', Object(Illuminate\\Queue\\WorkerOptions))\n#31 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Console\\WorkCommand.php(112): Illuminate\\Queue\\Worker->daemon(\'database\', \'default\', Object(Illuminate\\Queue\\WorkerOptions))\n#32 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Console\\WorkCommand.php(96): Illuminate\\Queue\\Console\\WorkCommand->runWorker(\'database\', \'default\')\n#33 [internal function]: Illuminate\\Queue\\Console\\WorkCommand->handle()\n#34 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(32): call_user_func_array(Array, Array)\n#35 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(36): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#36 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(90): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#37 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#38 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(590): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#39 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(201): Illuminate\\Container\\Container->call(Array)\n#40 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Command\\Command.php(255): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#41 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(188): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#42 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Application.php(1011): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#43 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Application.php(272): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Queue\\Console\\WorkCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#44 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Application.php(148): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#45 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#46 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\Kernel.php(131): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#47 C:\\laragon\\www\\larablog\\artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#48 {main}', '2020-05-03 20:07:17'),
(4, 'database', 'default', '{"displayName":"App\\\\Jobs\\\\SendEmail","job":"Illuminate\\\\Queue\\\\CallQueuedHandler@call","maxTries":null,"delay":null,"timeout":null,"timeoutAt":null,"data":{"commandName":"App\\\\Jobs\\\\SendEmail","command":"O:18:\\"App\\\\Jobs\\\\SendEmail\\":10:{s:8:\\"\\u0000*\\u0000title\\";s:23:\\"email enviado por colas\\";s:8:\\"\\u0000*\\u0000email\\";s:24:\\"<EMAIL>\\";s:6:\\"\\u0000*\\u0000job\\";N;s:10:\\"connection\\";N;s:5:\\"queue\\";N;s:15:\\"chainConnection\\";N;s:10:\\"chainQueue\\";N;s:5:\\"delay\\";N;s:10:\\"middleware\\";a:0:{}s:7:\\"chained\\";a:0:{}}"}}', 'Swift_TransportException: Failed to authenticate on SMTP server with username "<EMAIL>" using 3 possible authenticators. Authenticator LOGIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at\r\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials k24sm3932434uaq.20 - gsmtp\r\n". Authenticator PLAIN returned Expected response code 235 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at\r\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials k24sm3932434uaq.20 - gsmtp\r\n". Authenticator XOAUTH2 returned Expected response code 250 but got code "535", with message "535-5.7.8 Username and Password not accepted. Learn more at\r\n535 5.7.8 https://support.google.com/mail/?p=BadCredentials k24sm3932434uaq.20 - gsmtp\r\n". in C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Transport\\Esmtp\\AuthHandler.php:191\nStack trace:\n#0 C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Transport\\EsmtpTransport.php(371): Swift_Transport_Esmtp_AuthHandler->afterEhlo(Object(Swift_SmtpTransport))\n#1 C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Transport\\AbstractSmtpTransport.php(148): Swift_Transport_EsmtpTransport->doHeloCommand()\n#2 C:\\laragon\\www\\larablog\\vendor\\swiftmailer\\swiftmailer\\lib\\classes\\Swift\\Mailer.php(65): Swift_Transport_AbstractSmtpTransport->start()\n#3 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(486): Swift_Mailer->send(Object(Swift_Message), Array)\n#4 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(261): Illuminate\\Mail\\Mailer->sendSwiftMessage(Object(Swift_Message))\n#5 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailable.php(159): Illuminate\\Mail\\Mailer->send(\'emails.title\', Array, Object(Closure))\n#6 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\Localizable.php(19): Illuminate\\Mail\\Mailable->Illuminate\\Mail\\{closure}()\n#7 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailable.php(160): Illuminate\\Mail\\Mailable->withLocale(NULL, Object(Closure))\n#8 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(277): Illuminate\\Mail\\Mailable->send(Object(Illuminate\\Mail\\Mailer))\n#9 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\Mailer.php(231): Illuminate\\Mail\\Mailer->sendMailable(Object(App\\Mail\\EmailForQueue))\n#10 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Mail\\PendingMail.php(122): Illuminate\\Mail\\Mailer->send(Object(App\\Mail\\EmailForQueue))\n#11 C:\\laragon\\www\\larablog\\app\\Jobs\\SendEmail.php(37): Illuminate\\Mail\\PendingMail->send(Object(App\\Mail\\EmailForQueue))\n#12 [internal function]: App\\Jobs\\SendEmail->handle()\n#13 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(32): call_user_func_array(Array, Array)\n#14 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(36): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#15 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(90): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#16 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#17 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(590): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#18 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Bus\\Dispatcher.php(94): Illuminate\\Container\\Container->call(Array)\n#19 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(130): Illuminate\\Bus\\Dispatcher->Illuminate\\Bus\\{closure}(Object(App\\Jobs\\SendEmail))\n#20 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(105): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\SendEmail))\n#21 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Bus\\Dispatcher.php(98): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#22 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\CallQueuedHandler.php(83): Illuminate\\Bus\\Dispatcher->dispatchNow(Object(App\\Jobs\\SendEmail), false)\n#23 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(130): Illuminate\\Queue\\CallQueuedHandler->Illuminate\\Queue\\{closure}(Object(App\\Jobs\\SendEmail))\n#24 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Pipeline\\Pipeline.php(105): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(App\\Jobs\\SendEmail))\n#25 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\CallQueuedHandler.php(85): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\n#26 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\CallQueuedHandler.php(59): Illuminate\\Queue\\CallQueuedHandler->dispatchThroughMiddleware(Object(Illuminate\\Queue\\Jobs\\DatabaseJob), Object(App\\Jobs\\SendEmail))\n#27 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Jobs\\Job.php(88): Illuminate\\Queue\\CallQueuedHandler->call(Object(Illuminate\\Queue\\Jobs\\DatabaseJob), Array)\n#28 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Worker.php(354): Illuminate\\Queue\\Jobs\\Job->fire()\n#29 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Worker.php(300): Illuminate\\Queue\\Worker->process(\'database\', Object(Illuminate\\Queue\\Jobs\\DatabaseJob), Object(Illuminate\\Queue\\WorkerOptions))\n#30 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Worker.php(134): Illuminate\\Queue\\Worker->runJob(Object(Illuminate\\Queue\\Jobs\\DatabaseJob), \'database\', Object(Illuminate\\Queue\\WorkerOptions))\n#31 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Console\\WorkCommand.php(112): Illuminate\\Queue\\Worker->daemon(\'database\', \'default\', Object(Illuminate\\Queue\\WorkerOptions))\n#32 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Queue\\Console\\WorkCommand.php(96): Illuminate\\Queue\\Console\\WorkCommand->runWorker(\'database\', \'default\')\n#33 [internal function]: Illuminate\\Queue\\Console\\WorkCommand->handle()\n#34 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(32): call_user_func_array(Array, Array)\n#35 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Util.php(36): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()\n#36 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(90): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))\n#37 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\BoundMethod.php(34): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))\n#38 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Container\\Container.php(590): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)\n#39 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(201): Illuminate\\Container\\Container->call(Array)\n#40 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Command\\Command.php(255): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#41 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Command.php(188): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))\n#42 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Application.php(1011): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#43 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Application.php(272): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Queue\\Console\\WorkCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#44 C:\\laragon\\www\\larablog\\vendor\\symfony\\console\\Application.php(148): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#45 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Console\\Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#46 C:\\laragon\\www\\larablog\\vendor\\laravel\\framework\\src\\Illuminate\\Foundation\\Console\\Kernel.php(131): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#47 C:\\laragon\\www\\larablog\\artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#48 {main}', '2020-05-03 20:08:21');
/*!40000 ALTER TABLE `failed_jobs` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.jobs
CREATE TABLE IF NOT EXISTS `jobs` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`queue` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`attempts` tinyint(3) unsigned NOT NULL,
`reserved_at` int(10) unsigned DEFAULT NULL,
`available_at` int(10) unsigned NOT NULL,
`created_at` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `jobs_queue_index` (`queue`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.jobs: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `jobs` DISABLE KEYS */;
INSERT INTO `jobs` (`id`, `queue`, `payload`, `attempts`, `reserved_at`, `available_at`, `created_at`) VALUES
(1, 'default', '{"displayName":"App\\\\Jobs\\\\ProccessImageSmall","job":"Illuminate\\\\Queue\\\\CallQueuedHandler@call","maxTries":null,"delay":null,"timeout":null,"timeoutAt":null,"data":{"commandName":"App\\\\Jobs\\\\ProccessImageSmall","command":"O:27:\\"App\\\\Jobs\\\\ProccessImageSmall\\":9:{s:8:\\"\\u0000*\\u0000image\\";O:45:\\"Illuminate\\\\Contracts\\\\Database\\\\ModelIdentifier\\":4:{s:5:\\"class\\";s:13:\\"App\\\\PostImage\\";s:2:\\"id\\";i:31;s:9:\\"relations\\";a:0:{}s:10:\\"connection\\";s:5:\\"mysql\\";}s:6:\\"\\u0000*\\u0000job\\";N;s:10:\\"connection\\";N;s:5:\\"queue\\";N;s:15:\\"chainConnection\\";N;s:10:\\"chainQueue\\";N;s:5:\\"delay\\";N;s:10:\\"middleware\\";a:0:{}s:7:\\"chained\\";a:0:{}}"}}', 0, NULL, 1588987045, 1588987045);
/*!40000 ALTER TABLE `jobs` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.migrations
CREATE TABLE IF NOT EXISTS `migrations` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`batch` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.migrations: ~27 rows (aproximadamente)
/*!40000 ALTER TABLE `migrations` DISABLE KEYS */;
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_01_15_185925_create_posts_table', 1),
(5, '2020_01_15_193458_create_category_table', 1),
(7, '2020_01_27_174223_create_post_images_table', 2),
(8, '2020_01_27_185804_add_surname_to_users', 2),
(9, '2020_01_28_152149_create_rols_table', 3),
(10, '2020_01_28_153433_add_rol_id_to_users', 3),
(12, '2020_01_30_205030_create_access_table', 4),
(13, '2020_02_10_151726_create_contacts_table', 5),
(15, '2020_02_10_172604_create_post_coments_table', 6),
(16, '2020_03_28_231245_create_tags_table', 7),
(17, '2020_03_28_232130_create_post_tag_table', 8),
(18, '2020_03_31_222416_create_taggable_table', 9),
(19, '2020_03_31_231637_create_taggables_table', 10),
(20, '2020_03_31_231748_create_taggables_table', 11),
(21, '2020_05_03_182741_create_jobs_table', 12),
(22, '2019_05_03_000001_create_customer_columns', 13),
(23, '2019_05_03_000002_create_subscriptions_table', 13),
(24, '2019_05_03_000003_create_subscription_items_table', 13),
(25, '2020_07_17_195539_add_phone_to_contacts_table', 14),
(26, '2016_06_01_000001_create_oauth_auth_codes_table', 15),
(27, '2016_06_01_000002_create_oauth_access_tokens_table', 15),
(28, '2016_06_01_000003_create_oauth_refresh_tokens_table', 15),
(29, '2016_06_01_000004_create_oauth_clients_table', 15),
(30, '2016_06_01_000005_create_oauth_personal_access_clients_table', 15);
/*!40000 ALTER TABLE `migrations` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.oauth_access_tokens
CREATE TABLE IF NOT EXISTS `oauth_access_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) unsigned DEFAULT NULL,
`client_id` bigint(20) unsigned NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci,
`revoked` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`expires_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_access_tokens_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.oauth_access_tokens: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `oauth_access_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_access_tokens` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.oauth_auth_codes
CREATE TABLE IF NOT EXISTS `oauth_auth_codes` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`user_id` bigint(20) unsigned NOT NULL,
`client_id` bigint(20) unsigned NOT NULL,
`scopes` text COLLATE utf8mb4_unicode_ci,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_auth_codes_user_id_index` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.oauth_auth_codes: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `oauth_auth_codes` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_auth_codes` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.oauth_clients
CREATE TABLE IF NOT EXISTS `oauth_clients` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) unsigned DEFAULT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`secret` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`provider` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`redirect` text COLLATE utf8mb4_unicode_ci NOT NULL,
`personal_access_client` tinyint(1) NOT NULL,
`password_client` tinyint(1) NOT NULL,
`revoked` tinyint(1) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `oauth_clients_user_id_index` (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.oauth_clients: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `oauth_clients` DISABLE KEYS */;
INSERT INTO `oauth_clients` (`id`, `user_id`, `name`, `secret`, `provider`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `created_at`, `updated_at`) VALUES
(1, NULL, 'Laravel Personal Access Client', 'Fj1RmlKUb3OHuYofHXnQaOp39m2ouiL8wXfhyvLl', NULL, 'http://localhost', 1, 0, 0, '2020-07-19 20:34:49', '2020-07-19 20:34:49'),
(2, NULL, 'Laravel Password Grant Client', 'OtkervSDHoXbGxPMrnfEOn5GE6lkG54lLwNDVRaK', 'users', 'http://localhost', 0, 1, 0, '2020-07-19 20:34:49', '2020-07-19 20:34:49');
/*!40000 ALTER TABLE `oauth_clients` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.oauth_personal_access_clients
CREATE TABLE IF NOT EXISTS `oauth_personal_access_clients` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`client_id` bigint(20) unsigned NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.oauth_personal_access_clients: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `oauth_personal_access_clients` DISABLE KEYS */;
INSERT INTO `oauth_personal_access_clients` (`id`, `client_id`, `created_at`, `updated_at`) VALUES
(1, 1, '2020-07-19 20:34:49', '2020-07-19 20:34:49');
/*!40000 ALTER TABLE `oauth_personal_access_clients` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.oauth_refresh_tokens
CREATE TABLE IF NOT EXISTS `oauth_refresh_tokens` (
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`access_token_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`revoked` tinyint(1) NOT NULL,
`expires_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.oauth_refresh_tokens: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `oauth_refresh_tokens` DISABLE KEYS */;
/*!40000 ALTER TABLE `oauth_refresh_tokens` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.password_resets
CREATE TABLE IF NOT EXISTS `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,
KEY `password_resets_email_index` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.password_resets: ~2 rows (aproximadamente)
/*!40000 ALTER TABLE `password_resets` DISABLE KEYS */;
INSERT INTO `password_resets` (`email`, `token`, `created_at`) VALUES
('<EMAIL>', <PASSWORD>', '2020-01-27 21:57:40'),
('<EMAIL>', <PASSWORD>', '2020-01-31 00:10:18');
/*!40000 ALTER TABLE `password_resets` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.posts
CREATE TABLE IF NOT EXISTS `posts` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`url_clean` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`content` text COLLATE utf8mb4_unicode_ci,
`posted` enum('yes','not') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'not',
`category_id` bigint(20) unsigned DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `category_id` (`category_id`),
CONSTRAINT `category_id` FOREIGN KEY (`category_id`) REFERENCES `categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=72 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.posts: ~68 rows (aproximadamente)
/*!40000 ALTER TABLE `posts` DISABLE KEYS */;
INSERT INTO `posts` (`id`, `title`, `url_clean`, `content`, `posted`, `category_id`, `created_at`, `updated_at`) VALUES
(2, 'PRUEBA 2', 'PRUEBA 2', '<figure class="image"><img src="http://larablog.test/images_ckeditor/1581306260.jpeg"></figure><p><strong>PRUEBA 2 imagen del ckeditor ok</strong></p>', 'yes', 10, '2020-01-22 23:13:18', '2020-02-09 22:46:38'),
(3, 'PRUEBA 23', 'PRUEBA 2 yy', '<p>PRUEBA 2 ok,pñ,</p>', 'yes', 10, '2020-01-22 23:13:28', '2020-02-03 23:48:58'),
(4, 'Lorem Ipsum', 'Lorem Ipsum', '<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s,when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>', 'yes', 3, '2020-01-22 23:17:50', '2020-01-24 03:28:27'),
(5, 'prueba del old type', 'urlestabien', 'prueba de paginacion', 'not', 2, '2020-01-22 23:18:17', '2020-01-22 23:18:17'),
(6, 'prueba de CKEditor', 'http://larablog.test/dashboard/post/create', '<h2><i><strong>What is Lorem Ipsum?</strong></i></h2><ul><li><strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</li></ul><figure class="media"><oembed url="https://www.youtube.com/watch?v=kJQP7kiw5Fk"></oembed></figure><figure class="table"><table><tbody><tr><td> </td><td> </td><td> </td><td> </td></tr><tr><td> </td><td> </td><td> </td><td> </td></tr><tr><td> </td><td> </td><td> </td><td> </td></tr><tr><td> </td><td> </td><td> </td><td> </td></tr></tbody></table></figure>', 'not', 2, '2020-01-24 01:09:22', '2020-01-24 01:09:22'),
(7, 'aaa prueba de time', 'aaa prueba de time', '<figure class="image"><img src="http://1172.16.31.10/larablog/public/images_ckeditor/1581361209.png"></figure><p>aaa prueba de time</p>', 'not', 5, '2020-01-24 01:20:14', '2020-02-10 14:00:16'),
(8, 'prueba de hora y fecha correcta', 'prueba de hora y fecha.', '<figure class="image"><img src="http://larablog.test/images_ckeditor/1581359987.png"></figure><p>prueba de hora y fecha col</p>', 'not', 6, '2020-01-24 01:32:13', '2020-02-10 13:39:51'),
(9, 'horas', 'horas', '<p>horas</p>', 'not', 3, '2020-01-24 01:34:22', '2020-01-24 01:34:22'),
(10, 'horasaaa', 'horasaaa', '<p>horasaaa</p>', 'not', 3, '2020-01-24 01:37:32', '2020-01-24 01:37:32'),
(11, 'francia', 'francia', '<p>francia</p>', 'not', 3, '2020-01-24 01:41:37', '2020-01-24 01:41:37'),
(12, 'prueba del old type', 'prueba del old type', '<p>prueba del old type</p>', 'not', 2, '2020-01-26 00:22:15', '2020-01-26 00:22:15'),
(13, 'solucionado', 'solucionado', '<p>solucionado</p>', 'yes', 11, '2020-01-26 00:29:46', '2020-01-25 21:20:35'),
(14, 'prueba del old type', 'prueba del old type', '<p>prueba del old type</p>', 'yes', 3, '2020-01-26 00:33:22', '2020-01-25 21:07:52'),
(15, 'prueba del old type', 'prueba del old type', '<p>prueba del old type</p>', 'not', 2, '2020-01-26 00:34:26', '2020-01-26 00:34:26'),
(16, '855', '855', '855', 'not', 12, '2020-01-25 20:55:44', '2020-01-25 20:57:11'),
(17, 'prueba del old type', 'prueba del old type', '<p>prueba del old type</p>', 'not', 2, '2020-01-25 21:04:12', '2020-01-25 21:04:12'),
(18, 'sabado 25 enero', '2104 9 04 pm', '<p>2104 9 04 pm</p>', 'not', 2, '2020-01-25 21:04:50', '2020-01-25 21:04:50'),
(19, 'tipo hidden', 'tipo hidden', '<p>tipo hidden</p>', 'not', 2, '2020-01-25 21:11:09', '2020-01-25 21:11:09'),
(20, 'hiddem 2', 'hiddem 2', '<p>hiddem 2 </p>', 'not', 2, '2020-01-25 21:11:58', '2020-01-25 21:11:58'),
(22, 'posted', 'posted', '<p>posted</p>', 'not', 2, '2020-01-25 21:20:09', '2020-01-25 21:20:09'),
(23, 'microEdge', 'microEdge', '<p>hora modificada</p>', 'not', 9, '2020-01-25 21:26:24', '2020-01-25 21:49:30'),
(24, 'ultima prueba', 'ultima prueba', '<blockquote><ol><li><i>ultima prueba</i></li><li><i>esta bn</i></li><li><i>ok</i></li></ol></blockquote>', 'yes', 2, '2020-01-25 21:57:58', '2020-01-25 21:58:17'),
(25, 'getquery', 'getquery', '<p>getquery</p>', 'not', 5, '2020-01-26 19:19:10', '2020-01-26 19:19:10'),
(26, '27 de enero', '27 de enero', '<figure class="image"><img src="http://larablog.test/images_ckeditor/1581362418.png"></figure><p><i>27 de enero</i></p>', 'not', 3, '2020-01-27 14:38:34', '2020-02-10 14:20:22'),
(27, 'ultima prueba 28 enero 3 18 pm', 'ok todo bn', '<p>excelente el app</p>', 'not', 3, '2020-01-28 15:18:35', '2020-01-28 15:18:35'),
(28, 'posted cond', 'posted cond', '<p>posted cond</p>', 'not', 2, '2020-01-28 15:57:30', '2020-01-28 15:57:30'),
(29, 'posted not', 'posted not', '<p>posted not</p>', 'yes', 3, '2020-01-28 15:58:08', '2020-01-28 16:02:00'),
(30, 'prueba del old type', 'prueba-del-old-type', ',l,lñmklmlkmlknjknjl', 'not', 1, '2020-02-06 23:29:54', '2020-02-06 23:29:54'),
(31, 'ní<NAME>astañeda **""!/○○\\L\\', 'nicolas-aldana-Castaneda-L', 'nnnnnnnnnnnnnnnnnnnn', 'not', 11, '2020-02-06 23:30:55', '2020-02-06 23:30:55'),
(32, 'mayúsculas inactivas', 'aaaaaaaaaaaaaaaaa', 'njunnÄaááááááááááááááá', 'not', 1, '2020-02-06 23:31:56', '2020-02-06 23:31:56'),
(33, 'prueba del old type', '', 'ininininin', 'not', 1, '2020-02-06 23:32:36', '2020-02-06 23:32:36'),
(34, 'ü, é, á, í, ó, ú, ñ, Ñ, ¿, ¡', '', 'ü, é, á, í, ó, ú, ñ, Ñ, ¿, ¡', 'not', 1, '2020-02-06 23:34:21', '2020-02-06 23:34:21'),
(35, 'presionada la tecla “ALT” en', 'presionada-la-tecla-ALT-en', 'presionada la tecla “ALT” en', 'not', 1, '2020-02-06 23:34:55', '2020-02-06 23:34:55'),
(36, 'presionada la tecla “ALT” en', 'a-debe-ser-el-primer-elemento-del-paginator', 'presionada la tecla “ALT” en', 'not', 1, '2020-02-06 23:35:13', '2020-02-06 23:35:13'),
(37, 'presionada la tecla “ALT” en', 'abbbbbbbbbbbbbbbbbbbbbbbbbbbb', 'jmkasnmlkdn', 'not', 1, '2020-02-06 23:35:39', '2020-02-06 23:35:39'),
(38, 'prueba del old type', '', 'hhhhhhhhhhhhhhhhhhhhhhhhhh', 'not', 1, '2020-02-06 23:36:05', '2020-02-06 23:36:05'),
(39, 'nícolas aldana Castañeda **""!/○○\\L\\', 'nicolas-aldana-Castaneda-L', 'nnnnnnnnnnnnnnnnnnnnnnnnnn', 'not', 1, '2020-02-06 23:36:34', '2020-02-06 23:36:34'),
(40, 'primera categoría modificada', 'primera-categoria-modificada', '<p> | | | _) __ \\ _ \\ __| _ \\ __| _` | __| _ \\ __| __| _ \\ _` | __| __| __ \\ | \\ \\ / _ \\ | | ( | | ( | ( ( | | __/ \\__ \\ | __/ ( | | ( | | | | \\ \\ / ( | _| _| \\___/ \\__| \\___/ \\___| \\__,_| _| \\___| ____/ \\__| \\___| \\__,_| _| \\___| _| |_| _| \\_/ \\___/ </p>', 'yes', 1, '2020-02-07 00:11:19', '2020-02-07 00:12:07'),
(41, 'Prueba Con Mayúsculas y tildes', 'Prueba-Con-Mayusculas-y-tildes', '<p>ok, el post funciona con el metodo store</p>', 'not', 26, '2020-02-07 21:09:00', '2020-02-07 21:09:00'),
(42, 'Prueba Con Mayúsculas y tildes', 'Prueba Con Mayúsculas y tildes', '<figure class="image"><img src="http://192.168.1.4/larablog/public/images_ckeditor/1581362025.jpeg"></figure><p>Prueba Con Mayúsculas y tildes</p>', 'yes', 1, '2020-02-07 21:09:43', '2020-02-10 18:34:41'),
(43, 'ü, é, á, í, ó, ú, ñ, Ñ, ¿, ¡', '', '<p>ü, é, á, í, ó, ú, ñ, Ñ, ¿, ¡</p>', 'not', 1, '2020-02-07 21:10:51', '2020-02-07 21:10:51'),
(44, 'ü, é, á, í, ó, ú, ñ, Ñ, ¿, ¡', '', '<p>ü, é, á, í, ó, ú, ñ, Ñ, ¿, ¡</p>', 'not', 1, '2020-02-07 21:11:09', '2020-02-07 21:11:09'),
(45, 'ü, é, á, í, ó, ú, ñ, Ñ, ¿, ¡', 'u-y-el-post-sirve', '<p>ü, é, á, í, ó, ú, ñ, Ñ, ¿, ¡</p>', 'not', 1, '2020-02-07 21:11:35', '2020-02-07 21:11:35'),
(46, '‘ Mi tío Joaquín viaja de aquí para allá todo el año', 'mi-tio-joaquin-viaja-de-aqui-para-alla-todo-el-ano', '<p>‘ Mi tío Joaquín viaja de aquí para allá todo el año</p>', 'not', 1, '2020-02-07 21:12:53', '2020-02-07 21:12:53'),
(47, 'presionada la tecla “ALT” en', 'presionada-la-tecla-alt-en', '<p>presionada la tecla “ALT” en</p>', 'not', 1, '2020-02-07 21:13:59', '2020-02-07 21:13:59'),
(48, 'update', 'updateupdate', '<p>update</p>', 'not', 1, '2020-02-08 19:58:24', '2020-02-08 19:58:24'),
(49, 'update2', 'update2', '<p>update</p>', 'yes', 1, '2020-02-08 20:01:05', '2020-02-08 20:57:51'),
(50, 'nícolas aldana Castañeda **""!/○○\\L\\12244', 'nícolas aldana Castañeda **""!/○○\\L\\122', '<p>nícolas aldana Castañeda **""!/○○\\L\\</p>', 'not', 1, '2020-02-08 20:43:55', '2020-02-08 20:49:51'),
(51, 'ldana Castañeda **""!/○○\\L\\122', 'ldana-castaneda-l122', '<p>ldana Castañeda **""!/○○\\L\\122</p>', 'not', 1, '2020-02-08 21:01:03', '2020-02-08 21:01:03'),
(52, 'tíyulo con MAYUSCULAS y tíáó', 'tiyulo-con-mayusculas-y-tiao', '<p>hahahahahaha</p>', 'not', 22, '2020-02-08 21:02:04', '2020-02-08 21:02:04'),
(53, 'La categoría ha sido creada con exito', 'la-categoria-ha-sido-creada-con-exito', '<p>La categoría ha sido creada con exito</p>', 'not', 1, '2020-02-08 22:34:36', '2020-02-08 22:34:36'),
(54, 'prueba de fecha', 'prueba-de-fecha', '<p>jajajajajja</p>', 'not', 1, '2020-02-10 16:37:04', '2020-02-10 16:37:04'),
(55, 'prueba de fecha', 'csrfy-hastamas', '<p>@csrfjajajajaja</p>', 'not', 1, '2020-02-10 16:37:57', '2020-02-10 16:37:57'),
(56, 'prueba del old typeaaa', 'prueba-del-old-typeaaa', '<p>prueba del old typeaaa</p>', 'yes', 3, '2020-02-11 16:16:28', '2020-03-07 20:28:26'),
(57, 'Prueba cel', 'fgfdgfdges', '<p>Ok<strong>kk</strong></p>', 'not', 6, '2020-03-10 22:45:13', '2020-03-10 22:45:13'),
(58, 'Prueba cel', 'gtsgtt', '<p><strong>Jajjajajaj</strong></p>', 'not', 10, '2020-03-10 22:46:48', '2020-03-10 22:46:48'),
(59, '<NAME>', 'ldana-castaneda-l12234', '<p>ldana Castañeda **""!/○○\\L\\122</p>', 'not', 1, '2020-03-10 22:47:49', '2020-03-10 22:47:49'),
(60, 'Mautllais', 'mayusculas-y-tildes', '<p>Ok this is true</p>', 'not', 7, '2020-03-10 22:49:17', '2020-03-10 22:49:17'),
(61, 'redirect', 'redirect-despues-creado-el-ost', '<p>prueeba ok</p>', 'not', 10, '2020-03-11 19:55:35', '2020-03-11 19:55:35'),
(62, 'redirect 2', 'redirect-despues-creado-el-ostff', '<p>ok prueba</p>', 'not', 1, '2020-03-11 19:57:27', '2020-03-11 19:57:27'),
(64, 'last test', 'last test', '<p>last tests</p>', 'not', 1, '2020-03-11 19:59:33', '2020-03-30 15:09:47'),
(65, 'this is a test for redirectlmlm', 'mlmlmlmlml', '<p>lmlmlmlmlm</p>', 'not', 1, '2020-03-15 18:43:56', '2020-03-15 18:43:56'),
(66, 'etiquetas', 'etiquetas', '<p>etiquetas</p>', 'not', 1, '2020-03-30 15:30:12', '2020-03-30 15:30:12'),
(67, 'etiquetas', 'la-pandemia-muchas', '<p>etiquetas</p>', 'not', 19, '2020-03-30 15:32:32', '2020-03-30 15:32:32'),
(68, 'prueba de etiquetas', 'redirect-despues-creado-el-ostsssss', '<p>la pandemia muchas</p>', 'not', 1, '2020-03-30 15:33:50', '2020-03-30 15:33:50'),
(70, 'categoria uncia', 'categoria-uncia', '<p>categoria</p>', 'not', 1, '2020-03-30 16:07:31', '2020-03-30 16:07:31'),
(71, '<NAME>', 'm', '<p>mklsmdlksmdlf</p>', 'not', 1, '2020-03-30 16:10:41', '2020-03-30 16:10:41');
/*!40000 ALTER TABLE `posts` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.post_coments
CREATE TABLE IF NOT EXISTS `post_coments` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`message` text COLLATE utf8mb4_unicode_ci NOT NULL,
`post_id` bigint(20) NOT NULL,
`user_id` bigint(20) NOT NULL,
`approved` enum('1','0') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '0',
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.post_coments: ~30 rows (aproximadamente)
/*!40000 ALTER TABLE `post_coments` DISABLE KEYS */;
INSERT INTO `post_coments` (`id`, `title`, `message`, `post_id`, `user_id`, `approved`, `created_at`, `updated_at`) VALUES
(2, 'Título n° 1', 'Mensaje de prueba 1', 1, 2, '1', '2020-02-10 17:48:10', '2020-03-27 00:31:31'),
(3, 'Título n° 2', 'Mensaje de prueba 2', 2, 2, '1', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(4, 'Título n° 3', 'Mensaje de prueba 3', 3, 2, '1', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(5, 'Título n° 4', 'Mensaje de prueba 4', 4, 2, '1', '2020-02-10 17:48:10', '2020-05-11 16:07:02'),
(6, 'Título n° 5', 'Mensaje de prueba 5', 5, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(7, 'Título n° 6', 'Mensaje de prueba 6', 6, 2, '0', '2020-02-10 17:48:10', '2020-03-28 22:02:15'),
(8, 'Título n° 7', 'Mensaje de prueba 7', 7, 2, '0', '2020-02-10 17:48:10', '2020-05-27 00:46:28'),
(9, 'Título n° 8', 'Mensaje de prueba 8', 8, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(10, 'Título n° 9', 'Mensaje de prueba 9', 9, 2, '1', '2020-02-10 17:48:10', '2020-05-27 00:49:17'),
(11, 'Título n° 10', 'Mensaje de prueba 10', 10, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(12, 'Título n° 11', 'Mensaje de prueba 11', 11, 2, '1', '2020-02-10 17:48:10', '2020-07-19 19:52:51'),
(13, 'Título n° 12', 'Google Drive: Ten todos tus archivos a mano desde cualquier dispositivo.\r\nGoogle LLC, 1600 Amphitheatre Parkway, Mountain View, CA 94043, USAGoogle Drive: Ten todos tus archivos a mano desde cualquier dispositivo.', 12, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(14, 'Título n° 13', 'Mensaje de prueba 13', 13, 2, '1', '2020-02-10 17:48:10', '2020-04-05 21:22:52'),
(15, 'Título n° 14', 'Mensaje de prueba 14', 14, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(16, 'Título n° 15', 'Mensaje de prueba 15', 15, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(17, 'Título n° 16', 'Mensaje de prueba 16', 16, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(18, 'Título n° 17', 'Mensaje de prueba 17', 17, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(19, 'Título n° 18', 'Mensaje de prueba 18', 46, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(20, 'Título n° 19', 'Mensaje de prueba 19', 46, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(21, 'Título n° 20', 'Mensaje de prueba 20', 20, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(22, 'Título n° 21', 'Mensaje de prueba 21', 21, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(24, 'Título n° 23', 'Mensaje de prueba 23', 23, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(25, 'Título n° 24', 'Mensaje de prueba 24', 24, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(26, 'Título n° 25', 'Mensaje de prueba 25', 25, 2, '0', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(27, 'Título n° 26', 'Mensaje de prueba 26', 26, 2, '1', '2020-02-10 17:48:10', '2020-02-10 17:48:10'),
(28, 'comentario', 'unico coment de este post', 64, 3, '1', '2020-03-12 21:49:21', '2020-04-29 21:05:50'),
(29, 'coment', 'curso de laravel', 58, 2, '0', '2020-03-12 22:46:20', '2020-03-12 22:46:21'),
(30, 'comentario', 'el lorem impsyr', 64, 3, '1', '2020-03-15 17:59:30', '2020-04-29 21:05:49');
/*!40000 ALTER TABLE `post_coments` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.post_images
CREATE TABLE IF NOT EXISTS `post_images` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`post_id` bigint(20) unsigned NOT NULL,
`image` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_post_images_posts` (`post_id`),
CONSTRAINT `FK_post_images_posts` FOREIGN KEY (`post_id`) REFERENCES `posts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=48 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.post_images: ~25 rows (aproximadamente)
/*!40000 ALTER TABLE `post_images` DISABLE KEYS */;
INSERT INTO `post_images` (`id`, `post_id`, `image`, `created_at`, `updated_at`) VALUES
(6, 10, '1580273634.png', '2020-01-28 23:53:54', '2020-01-28 23:53:54'),
(9, 4, '1580273952.png', '2020-01-28 23:59:12', '2020-01-28 23:59:12'),
(10, 3, '1580791343.jpeg', '2020-02-03 23:42:23', '2020-02-03 23:42:23'),
(11, 5, '1580791403.jpeg', '2020-02-03 23:43:23', '2020-02-03 23:43:23'),
(12, 8, '1581213525.jpeg', '2020-02-03 23:44:43', '2020-02-03 23:44:43'),
(15, 49, '1581213525.jpeg', '2020-02-08 20:58:45', '2020-02-08 20:58:45'),
(28, 70, '1580180875.jpeg', '2020-04-04 22:48:15', '2020-04-04 22:48:15'),
(29, 2, '1581213525.jpeg\r\n', '2020-05-01 00:01:38', '2020-05-01 00:01:38'),
(31, 71, '1588987044.png', '2020-05-08 20:17:24', '2020-05-08 20:17:24'),
(32, 58, '1588987044.png', '2020-07-05 19:55:09', '2020-07-05 19:55:10'),
(33, 16, '1588987044.png', '2020-07-11 20:39:26', '2020-07-11 20:39:27'),
(34, 9, '1580180875.jpeg', '2020-07-11 20:40:04', '2020-07-11 20:40:05'),
(35, 51, '1580180875.jpeg', '2020-07-11 20:40:06', '2020-07-11 20:40:06'),
(36, 25, '1580180875.jpeg', '2020-07-11 20:40:45', '2020-07-11 20:40:46'),
(37, 64, '1580273634.png', '2020-07-11 20:41:03', '2020-07-11 20:41:04'),
(38, 11, '1580273634.png', '2020-07-11 20:41:04', '2020-07-11 20:41:05'),
(39, 7, '1580273634.png', '2020-07-11 20:43:07', '2020-07-11 20:43:08'),
(40, 32, '1580273634.png', '2020-07-11 20:43:09', '2020-07-11 20:43:10'),
(41, 33, '1580791343.jpeg', '2020-07-13 21:54:57', '2020-07-13 21:54:58'),
(42, 30, '1580791343.jpeg', '2020-07-13 21:55:09', '2020-07-13 21:55:10'),
(43, 34, '1580791343.jpeg', '2020-07-13 21:55:36', '2020-07-13 21:55:37'),
(44, 35, '1580791343.jpeg', '2020-07-13 21:55:46', '2020-07-13 21:55:47'),
(45, 36, '1580791343.jpeg', '2020-07-13 21:55:55', '2020-07-13 21:55:55'),
(46, 37, '1580791343.jpeg', '2020-07-13 21:56:04', '2020-07-13 21:56:05'),
(47, 38, '1580791343.jpeg', '2020-07-13 21:56:30', '2020-07-13 21:56:31');
/*!40000 ALTER TABLE `post_images` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.post_tag
CREATE TABLE IF NOT EXISTS `post_tag` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`post_id` bigint(20) unsigned NOT NULL,
`tag_id` bigint(20) unsigned NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.post_tag: ~8 rows (aproximadamente)
/*!40000 ALTER TABLE `post_tag` DISABLE KEYS */;
INSERT INTO `post_tag` (`id`, `post_id`, `tag_id`) VALUES
(10, 64, 2),
(11, 64, 4),
(12, 64, 3),
(13, 67, 2),
(14, 68, 1),
(15, 69, 4),
(17, 70, 7),
(18, 70, 8),
(19, 71, 3),
(20, 71, 1);
/*!40000 ALTER TABLE `post_tag` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.rols
CREATE TABLE IF NOT EXISTS `rols` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`key` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`description` varchar(500) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.rols: ~2 rows (aproximadamente)
/*!40000 ALTER TABLE `rols` DISABLE KEYS */;
INSERT INTO `rols` (`id`, `key`, `name`, `description`, `created_at`, `updated_at`) VALUES
(1, 'admin', 'administrador', 'este usuario puede editar, modificar, publicar los posts .Tambien decidir si el post sube o no a la vista de usuario', '2020-01-28 15:44:08', '2020-01-28 15:44:09'),
(2, 'regular', 'usuario normal', 'el usuario solo puede visualizar', '2020-01-28 15:45:02', '2020-01-28 15:45:02');
/*!40000 ALTER TABLE `rols` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.subscriptions
CREATE TABLE IF NOT EXISTS `subscriptions` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) unsigned NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`stripe_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`stripe_status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`stripe_plan` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`quantity` int(11) DEFAULT NULL,
`trial_ends_at` timestamp NULL DEFAULT NULL,
`ends_at` timestamp NULL DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `subscriptions_user_id_stripe_status_index` (`user_id`,`stripe_status`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.subscriptions: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `subscriptions` DISABLE KEYS */;
/*!40000 ALTER TABLE `subscriptions` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.subscription_items
CREATE TABLE IF NOT EXISTS `subscription_items` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`subscription_id` bigint(20) unsigned NOT NULL,
`stripe_id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`stripe_plan` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`quantity` int(11) NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `subscription_items_subscription_id_stripe_plan_unique` (`subscription_id`,`stripe_plan`),
KEY `subscription_items_stripe_id_index` (`stripe_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.subscription_items: ~0 rows (aproximadamente)
/*!40000 ALTER TABLE `subscription_items` DISABLE KEYS */;
/*!40000 ALTER TABLE `subscription_items` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.taggables
CREATE TABLE IF NOT EXISTS `taggables` (
`tag_id` bigint(20) unsigned NOT NULL,
`taggable_id` bigint(20) unsigned NOT NULL,
`taggable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.taggables: ~6 rows (aproximadamente)
/*!40000 ALTER TABLE `taggables` DISABLE KEYS */;
INSERT INTO `taggables` (`tag_id`, `taggable_id`, `taggable_type`) VALUES
(2, 71, 'App\\Post'),
(4, 71, 'App\\Post'),
(8, 71, 'App\\Post'),
(25, 72, 'App\\Post'),
(1, 2, 'App\\Post'),
(4, 2, 'App\\Post');
/*!40000 ALTER TABLE `taggables` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.tags
CREATE TABLE IF NOT EXISTS `tags` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.tags: ~25 rows (aproximadamente)
/*!40000 ALTER TABLE `tags` DISABLE KEYS */;
INSERT INTO `tags` (`id`, `title`, `created_at`, `updated_at`) VALUES
(1, 'Tag N° 1', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(2, 'Tag N° 2', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(3, 'Tag N° 3', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(4, 'Tag N° 4', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(5, 'Tag N° 5', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(6, 'Tag N° 6', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(7, 'Tag N° 7', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(8, 'Tag N° 8', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(9, 'Tag N° 9', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(10, 'Tag N° 10', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(11, 'Tag N° 11', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(12, 'Tag N° 12', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(13, 'Tag N° 13', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(14, 'Tag N° 14', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(15, 'Tag N° 15', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(16, 'Tag N° 16', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(17, 'Tag N° 17', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(18, 'Tag N° 18', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(19, 'Tag N° 19', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(20, 'Tag N° 20', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(21, 'Tag N° 21', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(22, 'Tag N° 22', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(23, 'Tag N° 23', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(24, 'Tag N° 24', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(25, 'Tag N° 25', '2020-03-28 23:17:27', '2020-03-28 23:17:27'),
(26, 'Tag ok', '2020-03-28 23:20:08', '2020-03-28 23:20:09');
/*!40000 ALTER TABLE `tags` ENABLE KEYS */;
-- Volcando estructura para tabla db_larablog_dev.users
CREATE TABLE IF NOT EXISTS `users` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`rol_id` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`surname` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL,
`stripe_id` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`card_brand` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`card_last_four` varchar(4) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`trial_ends_at` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `users_email_unique` (`email`),
KEY `users_stripe_id_index` (`stripe_id`)
) ENGINE=InnoDB AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- Volcando datos para la tabla db_larablog_dev.users: ~11 rows (aproximadamente)
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
INSERT INTO `users` (`id`, `rol_id`, `name`, `surname`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`, `stripe_id`, `card_brand`, `card_last_four`, `trial_ends_at`) VALUES
(2, '1', 'nicols', 'aldana', '<EMAIL>', NULL, '$2y$10$U4BoZCET53QRwdtRz7Mzd.xMnqmHY6mcn5C18qu3mYAuXP5TSth9C', NULL, '2020-01-27 21:02:16', '2020-06-12 17:32:24', NULL, NULL, NULL, NULL),
(3, '1', 'freddy', 'dfdfdf', '<EMAIL>', NULL, '$2y$10$U4BoZCET53QRwdtRz7Mzd.xMnqmHY6mcn5C18qu3mYAuXP5TSth9C', NULL, '2020-01-28 16:07:03', '2020-06-12 17:31:33', 'cus_HMjEMRYsF1VcyO', NULL, NULL, NULL),
(5, '2', 'prueba', 'prueba', '<EMAIL>', NULL, '$2y$10$U4BoZCET53QRwdtRz7Mzd.xMnqmHY6mcn5C18qu3mYAuXP5TSth9C', NULL, '2020-01-28 18:47:41', '2020-01-28 22:24:56', NULL, NULL, NULL, NULL),
(6, '1', 'chilindot', 'pilas', '<EMAIL>', NULL, '$2y$10$ebfhnllg31KS6.CC8jCy3eVcxn7MY/cgNQVjm8sSILrpL0G8.hIq6', NULL, '2020-01-30 18:57:51', '2020-04-29 21:55:18', NULL, NULL, NULL, NULL),
(7, '2', 'Maria', 'Castañeda', '<EMAIL>', NULL, '$2y$10$l5j/RIQ8RKQwlrV.Frx0SONTMMsSlc/V37/XXoVPj7TSQvIhcOg2O', NULL, '2020-02-03 23:45:24', '2020-02-03 23:45:24', NULL, NULL, NULL, NULL),
(8, '1', 'Juan', 'perez', '<EMAIL>', NULL, '$2y$10$Prt0hb22RgiWcWcBfFLIyucPs.J5E3YxDFsxqEoafRQr8c45bUIGq', NULL, '2020-04-05 19:25:02', '2020-04-05 19:25:02', NULL, NULL, NULL, NULL),
(12, '1', '<NAME>', 'castañeda', '<EMAIL>', NULL, '$2y$10$pF7AEsmzxshkibtOFpURre4orHrjO7LEEVOHCGmN.Pj42xiiv27Ba', NULL, '2020-04-05 21:54:30', '2020-04-05 21:54:30', NULL, NULL, NULL, NULL),
(14, '1', 'martha', 'aldana', '<EMAIL>', NULL, '$2y$10$eLUunXBOQFqhHtYiPUKypeAUXvZNNIricAl8utM7AibC5s9vT1ZMu', NULL, '2020-04-05 22:02:05', '2020-04-05 22:02:05', NULL, NULL, NULL, NULL),
(21, '2', 'paulina', 'perez', 'nnn@njdsnfjdks', NULL, '$2y$10$kxIAchUDEhCCIdCE4McHd.KdkNYDSsCC87delTW2yIRFhIeUsODLa', NULL, '2020-05-28 20:21:15', '2020-05-28 20:21:15', NULL, NULL, NULL, NULL),
(22, '2', 'pedro', 'aldana', '<EMAIL>', NULL, '$2y$10$UcTiY4Bqsr9dxpPE5GeD/.TZfOFPWpzUUUorrBpDoxbAYiTHWjTOK', NULL, '2020-05-28 20:21:15', '2020-05-28 20:21:15', NULL, NULL, NULL, NULL),
(23, '2', 'lorena', 'vanegas', '<EMAIL>', NULL, '$2y$10$mMunBM9kRfNy6CI9QeLumeeFsy8BkyA5qGhr.k7FL6x.dJbXIU7sK', NULL, '2020-05-28 20:21:15', '2020-05-28 20:21:15', NULL, NULL, NULL, NULL);
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
<reponame>Ryan4G/unity3d-multiplayer-gameserver<filename>Database/game.sql<gh_stars>0
/*
Navicat MySQL Data Transfer
Source Server : .
Source Server Version : 80024
Source Host : localhost:3306
Source Database : game
Target Server Type : MYSQL
Target Server Version : 80024
File Encoding : 65001
Date: 2021-12-07 14:28:41
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for account
-- ----------------------------
DROP TABLE IF EXISTS `account`;
CREATE TABLE `account` (
`id` text COLLATE utf8mb4_general_ci NOT NULL,
`pw` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci,
PRIMARY KEY (`id`(20))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
-- ----------------------------
-- Table structure for player
-- ----------------------------
DROP TABLE IF EXISTS `player`;
CREATE TABLE `player` (
`id` text COLLATE utf8mb4_general_ci NOT NULL,
`data` text COLLATE utf8mb4_general_ci NOT NULL,
PRIMARY KEY (`id`(20))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
/* SQL Pivot */
SELECT User_SK, FieldName, Value
FROM [Database].[dboDatabase].[User]
UNPIVOT (Value FOR FieldName in (email, firstname)) AS Contact
|
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Author: Korisnik
* Created: Apr 13, 2017
*/
SELECT * FROM stud WHERE imeStud LIKE '%nk%' OR prezStud LIKE '%nk%'; |
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 19, 2019 at 04:22 PM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.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: `admin_rk`
--
-- --------------------------------------------------------
--
-- Table structure for table `aboutus`
--
CREATE TABLE `aboutus` (
`UniqueId` int(11) NOT NULL,
`Title` varchar(300) NOT NULL,
`Photo` varchar(255) NOT NULL,
`Description` varchar(1500) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `aboutus`
--
INSERT INTO `aboutus` (`UniqueId`, `Title`, `Photo`, `Description`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(2, 'EXPERIENCE WORLD-CLASS HEALTHCARE SERVICES.', 'assets/uploads/aboutus/49449.jpg', 'Today, the medical field is witnessing a host of multi-specialty hospitals mushrooming all over the country. In the windfall of the various state-of-the-art hospitals, personalized care often takes a disappointing backseat. This is where R.k Hospital comes into the picture making a much needed difference.', 'Y', 'HSR', 'Admin', '2018-12-20 05:24:31', 'Admin', '2018-12-22 10:53:38'),
(3, 'FULL TIME CONSULTANTS', 'assets/uploads/about/product-unknow.jpg', '<strong>DR. SINGARAVELU</strong><br>\r\nManaging director & Consultant paediatrician <br>\r\n\r\n<strong>DR. SARASWATHI</strong><br>\r\nMedical director , Consultant O & G and Infertility specialist<br>\r\n\r\n<strong>DR.<NAME></strong><br>\r\nConsultant Paediatric Interventional Cardiologist<br>\r\n\r\n<strong>DR.S.<NAME>INI MBBS </strong><br>\r\nConsultant Fetal Medicine & Fetal Echocardiologist<br>\r\n\r\n<strong>DR.RAJESHWARAN., D.Ch.,DNB </strong><br>\r\nConsultant Paediatrician<br>\r\n<strong>DR.PRANAHITHA M.D.,</strong><br>\r\nConsultant Obstetrician & Gynaecologist<br>', 'Y', 'HSR', 'Admin', '2019-03-19 06:19:26', 'Admin', '2019-03-19 14:58:09'),
(4, 'VISITING CONSULTATNTS', 'assets/uploads/about/23960.jpg', '<strong>DR. <NAME>.,</strong><br>\r\n<strong>DR. <NAME>., M.Ch (vascular SURGERY)</strong><br>\r\nKanaga shanthi ., MEDICAL ONCOLOGIST dmrt</strong><br>\r\n<strong>DR.RAJESHWARAN., M.D</strong><br>\r\nConsultant paediatrician</strong><br>\r\n<strong>DR.PRANAHITHA M.D.,</strong><br>\r\nand other on – call doctors<br>\r\n<strong>DR. DHEENADAYALAN PAED.HEMATO</strong><br>\r\nPONCHIDABARAM SURG GASTRO<br>\r\n<strong><NAME> .,MBBS., DMRT.,</strong><br>\r\n Medical oncologist', 'Y', 'HSR', 'Admin', '2019-03-19 14:30:24', 'Admin', '2019-03-19 14:56:33');
-- --------------------------------------------------------
--
-- Table structure for table `advert`
--
CREATE TABLE `advert` (
`UniqueId` int(11) NOT NULL,
`Title` varchar(300) NOT NULL,
`Link` varchar(255) NOT NULL,
`Description` varchar(1500) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `advert`
--
INSERT INTO `advert` (`UniqueId`, `Title`, `Link`, `Description`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(4, 'new Adverts', 'assets/uploads/advert/56363.mp4', 'ok', 'Y', 'HSR', 'Admin', '2018-12-14 14:24:13', 'Admin', '2018-12-14 14:27:29');
-- --------------------------------------------------------
--
-- Table structure for table `banner`
--
CREATE TABLE `banner` (
`UniqueId` int(11) NOT NULL,
`Title` varchar(300) NOT NULL,
`Photo` varchar(255) NOT NULL,
`Description` varchar(1500) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `banner`
--
INSERT INTO `banner` (`UniqueId`, `Title`, `Photo`, `Description`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(1, 'We serve better than any other', 'assets/uploads/banner/53796.png', 'Our team of over 100 doctors join me in giving you the best of modern healthcare to ensure you stay healthy, always.', 'Y', 'HSR', 'Admin', '2018-12-14 11:07:26', 'Admin', '2019-03-19 05:11:53'),
(2, 'We provide most proffesional service.', 'assets/uploads/banner/18566.jpg', 'Primary care isn’t just about getting treatment when you’re sick it’s about taking control of overall health and wellness.', 'Y', 'HSR', 'Admin', '2018-12-14 11:07:56', 'Admin', '2019-03-19 05:12:01'),
(3, 'WE OFFER MOST PROFESSIONAL SRVICE', 'assets/uploads/banner/74724.jpg', 'Stay in touch and in shape with periodic tips from our in-house experts on wellness, fitness and nutrition.', 'Y', 'HSR', 'Admin', '2018-12-14 11:08:33', 'Admin', '2019-03-19 06:03:04');
-- --------------------------------------------------------
--
-- Table structure for table `blog`
--
CREATE TABLE `blog` (
`UniqueId` int(11) NOT NULL,
`CategoryName` varchar(255) NOT NULL,
`Title` varchar(300) NOT NULL,
`Photo` varchar(255) NOT NULL,
`Description` longtext NOT NULL,
`Date` varchar(255) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `blog`
--
INSERT INTO `blog` (`UniqueId`, `CategoryName`, `Title`, `Photo`, `Description`, `Date`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(1, '2', 'KILOS & KIDDIEWINKS: THE CAUSES BEHIND CHILDHOOD OBESITY', 'assets/uploads/blog/76437.jpg', '<p>Processed, sugary and high-calorie foods, consumed regularly, can pave the way for an unhealthy lifestyle. Translation: pizza, pakoras, puri, mithai, sweets, desserts are best left off the table. If your child is prone to snacking between meals, introduce healthy mid-morning and evening snacks to their routine. Explore recipes with nuts, fruits and veggies, and mix things up to keep the menu exciting. Kids love colours and shapes, so get creative with cookie cutter-veggies and teddy bear omelettes.</p>\r\n\r\n<p>Pellentesque eleifend metus vitae commodo finibus. Proin eget mi a sem placerat facilisis. Aenean interdum aliquet sapien, non scelerisque massa vestibulum ut.</p>', '22-12-2018', 'Y', 'HSR', 'Admin', '2018-12-20 09:22:40', 'Admin', '2018-12-22 12:30:07');
-- --------------------------------------------------------
--
-- Table structure for table `clients`
--
CREATE TABLE `clients` (
`UniqueId` int(11) NOT NULL,
`Name` varchar(300) NOT NULL,
`Photo` varchar(255) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `clients`
--
INSERT INTO `clients` (`UniqueId`, `Name`, `Photo`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(3, 'Weighing', 'assets/uploads/service/90410.jpg', 'Y', 'HSR', 'Admin', '2018-12-14 12:46:32', NULL, NULL),
(4, 'Packaging', 'assets/uploads/service/82354.jpg', 'Y', 'HSR', 'Admin', '2018-12-14 12:48:52', NULL, NULL),
(5, 'Brand & Marketing', 'assets/uploads/service/22192.jpg', 'Y', 'HSR', 'Admin', '2018-12-14 12:49:13', NULL, NULL),
(6, 'Inventory & Storage', 'assets/uploads/service/78135.jpg', 'Y', 'HSR', 'Admin', '2018-12-14 12:49:36', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `companysetting`
--
CREATE TABLE `companysetting` (
`UniqueId` int(11) NOT NULL,
`ApplicationName` varchar(300) NOT NULL,
`Country` varchar(150) NOT NULL,
`State` varchar(150) NOT NULL,
`City` varchar(150) NOT NULL,
`Address` varchar(1500) NOT NULL,
`PinCode` decimal(10,0) NOT NULL,
`MobileNo` decimal(10,0) NOT NULL,
`EmailId` varchar(150) NOT NULL,
`Footer` varchar(255) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `companysetting`
--
INSERT INTO `companysetting` (`UniqueId`, `ApplicationName`, `Country`, `State`, `City`, `Address`, `PinCode`, `MobileNo`, `EmailId`, `Footer`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(1, 'SMS Application', '101', '35', 'Hosur', 'KINGSON SUPER MARKET\r\n# 9/1,OPP RAILWAY STSTION\r\nDENKANIKOTTAI ROAD\r\nHOSUR-635109', '635109', '9894020065', '<EMAIL>', 'Copyrights @ 2018', 'Y', 'HSR', 'Admin', '2018-11-21 11:31:29', 'Admin', '2018-12-01 06:16:11');
-- --------------------------------------------------------
--
-- Table structure for table `department`
--
CREATE TABLE `department` (
`UniqueId` int(11) NOT NULL,
`CategoryName` varchar(255) NOT NULL,
`Title` varchar(300) NOT NULL,
`Description` longtext NOT NULL,
`Photo` varchar(255) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `department`
--
INSERT INTO `department` (`UniqueId`, `CategoryName`, `Title`, `Description`, `Photo`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(2, '2', 'CARDIOLOGIST DEPARTMENT', '<p>R.K Heart Centre offers a whole range of cardiology and cardiothoracic surgical services from early disease detection to complex interventions. Our diagnostic services include ECG, 2-D and 3-D Echocardiography, Stress Echocardiography, Transesophageal Echocardiography and Treadmill Testing.</p>\r\n\r\n<p>R.K Heart Centre was established by the vision of our Chairman Dr. Bakthavathsalam. He is the backbone and instrumental for the all-round development of the institute. He has infused the medical professionals and employees with R.K Culture of Quality, Teamwork, Service Motto, Moral Integrity, Compassion towards the patients, Commitment to work and Innovation.R.K Heart Centre incorporates ethical practices and the advancement management.</p>\r\n\r\n<p>R.K Heart Centre is an important unit of Trust-run R.K Hospital which is fuelled by the motive to serve all sections of the society. R.K Heart Centre is one of the best heart institutes in the country providing cardiac care for over 25 years. He has infused the medical professionals and employees with R.K Culture of Quality, Teamwork, Service Motto, Moral Integrity, Compassion towards the patients, Commitment to work and Innovation.</p>', 'assets/uploads/department/89140.jpg', 'Y', 'HSR', 'Admin', '2018-12-20 09:40:23', 'Admin', '2019-03-19 06:30:23'),
(3, '3', 'ORTHOPAEDICS DEPARTMENT', '<p>The Joint Replacement Centre is one of the most active units in K.G. Hospital, endowed with world-class facilities for Joint Replacement procedures. It is an advanced high-tech centre, manned by 3 full time Consultants, Resident Doctors and paramedical staff trained to deliver 100% success rate.</p>\r\n\r\n<p>The Centre also works in tandem with the Orthopedic Outpatient Department's various clinics like Sports and Arthroscopy Clinic, Back Pain Clinic and Arthritis Clinic.Orthopaedics is the medical specialty that focuses on injuries and diseases of your body's musculoskeletal system. This complex system, which includes your bones, joints, ligaments, tendons, muscles, and nerves, allows you to move, work, and be active.The various replacement surgeries carried out in the Centre include:</p>\r\n\r\n<ul>\r\n <li>Knee Replacement (Partial/Total)</li>\r\n <li>Arthroscopy</li>\r\n <li>Hip Replacement</li>\r\n <li>Shoulder Replacement</li>\r\n <li>Elbow Replacement</li>\r\n <li>Total Knee Arthroplasty</li>\r\n <li>Hemiarthroplasty</li>\r\n <li>Total Hip Replacement</li>\r\n</ul>', 'assets/uploads/department/78273.jpg', 'Y', 'HSR', 'Admin', '2018-12-20 10:14:07', 'Admin', '2019-03-19 06:30:57'),
(4, '4', 'DIABETOLOGY DEPARTMENT', '<p>The Department of Diabetics in R.K. Hospital, headed by Dr <NAME> (Dr Giri), has been set up to provide much needed help and guidance to Diabetic patients and assist them in leading a normal, healthy and productive life. The Department also organizes regular Diabetes Public Awareness campaigns to disseminate information on dietary control along with practical diet expositions.</p>\r\n\r\n<p>Diabetology is the clinical science of diabetes mellitus, its diagnosis, treatment and follow-up. It can be considered a specialised field of endocrinology. The term diabetologist is used in several ways. In North America over the last 40 years it is most often used for an internist who through practice and interest develops expertise in diabetes care without having formal training or board certification in endocrinology e.g. retinopathy, nephropathy and peripheral neuropathy.</p>\r\n\r\n<p>Diabetology is not a recognized medical specialty and has no formal training programs leading to board certification. In other contexts the term diabetologist refers to any physician, including endocrinologists, whose practice and/or research efforts are concentrated mainly in diabetes care. Apart from regulating medication dosage and timing, a diabetologist will also concern themselves with the potential consequences of diabetes.</p>', 'assets/uploads/department/48142.jpg', 'Y', 'HSR', 'Admin', '2018-12-21 11:27:09', 'Admin', '2019-03-19 06:31:13'),
(5, '5', 'NEPHROLOGY DEPARTMENT', '<p>R.K Kidney Centre, the Nephrology division of R.K Hospital, has been providing quality treatment of international standards to various types of kidney diseases.The Kidney Centre is a super-specialty tertiary care unit that has been in existence for the past 18 years. The various treatment options available in the Centre include normal medical facilities to dialysis to kidney transplantations.</p>\r\n\r\n<p>Backed by a modern theatre complex and a 24-hour fully equipped diagnostic facility, the Department also conducts a one-year Diploma Course for Dialysis Technicians. K.G. Kidney Centre is the one of the 15 centres in the country and 2nd centre in Tamil Nadu to get recognition from the National Board of Examinations, New Delhi, to conduct DNB Programme in Nephrology.</p>\r\n\r\n<p>Nephrology is specialty of medicine concerned with kidney physiology, kidney disease, the treatment of kidney problems and renal replacement therapy.Nephrology research and treatment news articles for nephrologists and medical professionals to stay updated on kidney dialysis.</p>', 'assets/uploads/department/59424.jpg', 'Y', 'HSR', 'Admin', '2018-12-21 11:27:28', 'Admin', '2019-03-19 06:36:41'),
(6, '6', 'SPINAL DEPARTMENT', '<p>Spinal stenosis occurs when the space around your spinal cord narrows and causes pressure on your nerve roots. The main cause is wear-and-tear arthritis (osteoarthritis). As cartilage wears away, bone rubs against bone. This can result in an overgrowth of bone (bone spurs) that intrudes into spinal cord space.</p>\r\n\r\n<p>After a physical examination, your doctor will likely want to order some tests to determine the cause of your symptoms. Imaging tests, such as X-rays, MRI scans, and CT scans can provide detailed pictures of your spine.There is no cure for spinal stenosis, but there are treatments to help relieve symptoms. Over-the-counter anti-inflammatory medications can ease swelling and pain. If they don’t do the trick, your doctor can prescribe higher-dose medication.</p>\r\n\r\n<p>Regular exercise can help improve flexibility and balance, enabling you to move better. Not only is it good for your physical health, but it can also improve your sense of well-being. Doctor may also recommend cortisone injections. This anti-inflammatory drug is injected directly into the area of the spinal stenosis. Cortisone can significantly ease inflammation and pain. Its effects may be temporary, however, and you shouldn’t have more than three injections in a single year.</p>', 'assets/uploads/department/91806.jpg', 'Y', 'HSR', 'Admin', '2018-12-21 11:27:44', 'Admin', '2019-03-19 06:31:45'),
(7, '7', 'CANCER DEPARTMENT', '<p>The cancer treatment options your doctor recommends depends on the type and stage of cancer, possible side effects, and the patient's preferences and overall health. In cancer care, different types of doctors often work together to create a patient's overall treatment plan that combines different types of treatments.</p>\r\n\r\n<p>Cells are the basic units that make up the human body. Cells grow and divide to make new cells as the body needs them. Usually, cells die when they get too old or damaged. Then, new cells take their place. Cancer begins when genetic changes interfere with this orderly process. Cells start to grow uncontrollably. These cells may form a mass called a tumor. A tumor can be cancerous or benign.</p>\r\n\r\n<p>A benign tumor means the tumor can grow but will not spread.A carcinoma begins in the skin or the tissue that covers the surface of internal organs and glands. Carcinomas usually form solid tumors. They are the most common type of cancer. Examples of carcinomas include prostate cancer, breast cancer, lung cancer, and colorectal cancer.A sarcoma begins in the tissues that support and connect the body.</p>', 'assets/uploads/department/38650.jpg', 'Y', 'HSR', 'Admin', '2018-12-21 11:28:04', 'Admin', '2019-03-19 06:34:36'),
(8, '8', 'NEUROLOGY & NEUROSURGERY DEPARTMENT', '<p>Neurological disorders are related to any abnormal functions of the nervous system due to various conditions resulting from brain abnormalities, chemical interference, or spinal cord disorders. The nervous system consists of the brain, spinal cord, and nerves that enable you to function and go about your daily activities. A neurological disorder can affect any of these vital functions of your body, resulting in the inability to function properly on a daily basis.</p>\r\n\r\n<p>R.K Hospital and Neurosurgery is committed to providing patients with individualised care. The institutes specialise in diseases of the brain, spinal cord, muscles, and nerves. Apollo Hospitals carries out over 10,000 major neurosurgical operations yearly. The Institutes are equipped with the latest state-of-the-art diagnostics and surgical equipment, including CyberKnife, stereotactic & Micro Neurosurgery.</p>\r\n\r\n<p>A benign tumor means the tumor can grow but will not spread.A carcinoma begins in the skin or the tissue that covers the surface of internal organs and glands. Carcinomas usually form solid tumors. They are the most common type of cancer. Examples of carcinomas include prostate cancer, breast cancer, lung cancer, and colorectal cancer.A sarcoma begins in the tissues that support and connect the body.</p>', 'assets/uploads/department/60113.jpg', 'Y', 'HSR', 'Admin', '2018-12-21 11:28:21', 'Admin', '2019-03-19 06:31:59'),
(9, '9', 'PEDIATRIC DEPARTMENT', '<p>India needs a cohesive educational policy for both primary education and higher learning, each fraught with their own set of challenges. ASER data has shown that despite an increase in privatisation, there has been no significant increase in learning outcomes. Instead, efforts at strengthening the institutional linkages of primary learning are required. On the other hand, there is a troublesome attempt to demolish any and all credibility of institutions of higher learning that have built themselves as centres of reputable teaching and research after years of effort. In institutes like ICHR, FTII and NMML for example, the tactic employed has been politically charged nepotism through the insertion of proxy heads. Government action has rendered universities into political battlegrounds and this is likely to hurt not just the students but also these important institutions.</p>\r\n\r\n<p><strong>AIPC Position</strong></p>\r\n\r\n<p> </p>\r\n\r\n<ul>\r\n <li>The AIPC will focus on youth capacity building, education, leadership and development.</li>\r\n <li>The AIPC will emphasize and support affordable and quality education. We will keep education at the very top of our development agenda.</li>\r\n <li>Education is the backbone of human development and is vital to ensuring equitable social, political and economic opportunities for all citizens.</li>\r\n <li>The AIPC believes that it is necessary to focus on improving the quality of education- we will move from “<NAME>” to “<NAME>.”</li>\r\n <li>We need to ensure quality learning outcomes, adequate infrastructure and facilities in schools, regular teacher training and an optimal Pupil Teacher Ratio.</li>\r\n <li>AIPC will also advocate the need to ensure quality in teacher training by making suitable investments and amendments to regulations, wherever required.</li>\r\n <li>The AIPC will help establish an independent regulatory mechanism to oversee State and private institutions to ensure quality standards.</li>\r\n <li>We will support regional and context specific curricula as well as focus on developing life skills including leadership development.</li>\r\n <li>We are committed to the cause of special education. We will lobby for strengthening facilities for children with special needs and disabilities.</li>\r\n <li>The AIPC will explore possible partnerships with the private sector in the delivery of education. New Public Private Partnership could be developed as ideas for further government action.</li>\r\n</ul>', 'assets/uploads/department/73378.jpg', 'Y', 'HSR', 'Admin', '2018-12-21 11:28:38', 'Admin', '2019-03-19 06:32:21'),
(10, '0', 'Sanitation and Solid Waste Management', '<p>Research has shown that a direct relationship exists between water, sanitation, health, nutrition, and human development. Consumption of contaminated drinking water, improper disposal of human excreta, lack of personal and food hygiene, and improper disposal of solid and liquid wastes are major causes of disease in India. Providing accessible, affordable, and equitable sanitation, to all sections of the population is very important.</p>\r\n\r\n<p><strong>AIPC Position</strong></p>\r\n\r\n<p> </p>\r\n\r\n<ul>\r\n <li>Almost 60% of open defecation in the world takes place in India. Poor sanitation is a serious health hazard. AIPC will help create awareness of the need for a functional toilet in every school and every household.</li>\r\n <li>The AIPC will support efforts to improve quality of life in rural areas by promoting cleanliness, hygiene, and eliminating open defecation</li>\r\n <li>In both urban and rural areas, AIPC will advocate the need for developing solid & liquid waste management systems.</li>\r\n <li>The AIPC should promote appropriate policies and institutions to ensure all stakeholders are aware of the framework in which clean water and sanitation services are being provided.</li>\r\n <li>We will also promote medium-term thinking around sanitation issues, including on infrastructure and necessary financing.</li>\r\n</ul>', 'assets/uploads/department/31487.jpg', 'Y', 'HSR', 'Admin', '2018-12-21 11:28:55', 'Admin', '2019-03-19 06:32:35');
-- --------------------------------------------------------
--
-- Table structure for table `districts`
--
CREATE TABLE `districts` (
`id` int(255) NOT NULL,
`district_name` varchar(255) NOT NULL,
`state_id` int(255) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
--
-- Dumping data for table `districts`
--
INSERT INTO `districts` (`id`, `district_name`, `state_id`) VALUES
(1, 'Ariyalur', 31),
(2, 'Chennai', 31),
(3, 'Coimbatore', 31),
(4, 'Cuddalore', 31),
(5, 'Dharmapuri', 31),
(6, 'Dindigul', 31),
(7, 'Erode', 31),
(8, 'Kanchipuram', 31),
(9, 'Kanyakumari', 31),
(10, 'Karur', 31),
(11, 'Krishnagiri', 31),
(12, 'Madurai', 31),
(13, 'Nagapattinam', 31),
(14, 'Namakkal', 31),
(15, 'Nilgiris', 31),
(16, 'Perambalur', 31),
(17, 'Pudukkottai', 31),
(18, 'Ramanathapuram', 31),
(19, 'Salem', 31),
(20, 'Sivaganga', 31),
(21, 'Thanjavur', 31),
(22, 'Theni', 31),
(23, 'Thoothukudi (Tuticorin)', 31),
(24, 'Tiruchirappalli', 31),
(25, 'Tirunelveli', 31),
(26, 'Tiruppur', 31),
(27, 'Tiruvallur', 31),
(28, 'Tiruvannamalai', 31),
(29, 'Tiruvarur', 31),
(30, 'Vellore', 31),
(31, 'Viluppuram', 31),
(32, 'Virudhunagar', 31);
-- --------------------------------------------------------
--
-- Table structure for table `doctor`
--
CREATE TABLE `doctor` (
`UniqueId` int(11) NOT NULL,
`DoctorName` varchar(300) NOT NULL,
`DoctorDesignation` varchar(255) NOT NULL,
`Photo` varchar(255) NOT NULL,
`Description` varchar(1500) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL,
`List` varchar(1500) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Table structure for table `feedback`
--
CREATE TABLE `feedback` (
`UniqueId` int(11) NOT NULL,
`ProductId` varchar(255) NOT NULL,
`EmailId` varchar(300) NOT NULL,
`Feedback` varchar(300) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- 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=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `mstrcategory`
--
CREATE TABLE `mstrcategory` (
`UniqueId` int(11) NOT NULL,
`CategoryName` varchar(250) NOT NULL,
`Status` varchar(250) NOT NULL,
`BranchCode` varchar(250) NOT NULL,
`CreatedBy` varchar(250) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(250) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `mstrcategory`
--
INSERT INTO `mstrcategory` (`UniqueId`, `CategoryName`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(2, 'CARDIOLOGIST DEPARTMENT', 'Y', 'HSR', 'Admin', '2018-12-19 00:00:00', 'Admin', '2018-12-22 11:24:00'),
(3, 'ORTHOPAEDICS DEPARTMENT', 'Y', 'HSR', 'Admin', '2018-12-20 09:44:47', 'Admin', '2018-12-22 11:24:16'),
(4, 'DIABETOLOGY DEPARTMENT', 'Y', 'HSR', 'Admin', '2018-12-20 09:45:07', 'Admin', '2018-12-22 11:24:32'),
(5, 'NEPHROLOGY DEPARTMENT', 'Y', 'HSR', 'Admin', '2018-12-20 09:45:32', 'Admin', '2018-12-22 11:24:44'),
(6, 'SPINAL DEPARTMENT', 'Y', 'HSR', 'Admin', '2018-12-20 09:45:44', 'Admin', '2018-12-22 11:24:56'),
(7, 'CANCER DEPARTMENT', 'Y', 'HSR', 'Admin', '2018-12-20 09:46:01', 'Admin', '2018-12-22 11:25:09'),
(8, 'NEUROLOGY & NEUROSURGERY DEPARTMENT', 'Y', 'HSR', 'Admin', '2018-12-20 09:46:15', 'Admin', '2018-12-22 11:25:25'),
(9, 'PEDIATRIC DEPARTMENT', 'Y', 'HSR', 'Admin', '2018-12-20 09:47:10', 'Admin', '2018-12-22 11:25:36');
-- --------------------------------------------------------
--
-- Table structure for table `mstrproduct`
--
CREATE TABLE `mstrproduct` (
`UniqueId` int(11) NOT NULL,
`CategoryCode` varchar(150) NOT NULL,
`ProductCode` int(255) NOT NULL,
`ProductName` varchar(300) NOT NULL,
`Photo` varchar(255) NOT NULL,
`Description` varchar(1500) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `mstrproduct`
--
INSERT INTO `mstrproduct` (`UniqueId`, `CategoryCode`, `ProductCode`, `ProductName`, `Photo`, `Description`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(1, '1', 232323, 'new', 'assets/uploads/99495.jpg', 'dfsdfdsf', 'Y', 'HSR', 'Admin', '2018-12-14 08:32:41', 'Admin', '2018-12-14 09:19:45'),
(2, '2', 1234, 'new2', 'assets/uploads/12592.jpg', 'ok2', 'Y', 'HSR', 'Admin', '2018-12-14 08:46:37', 'Admin', '2018-12-15 09:31:30'),
(4, '1', 1212, 'new four', 'assets/uploads/55194.jpg', 'okkk', 'Y', 'HSR', 'Admin', '2018-12-15 09:30:47', NULL, NULL),
(5, '1', 121212, 'new five', 'assets/uploads/47170.jpg', 'ok', 'Y', 'HSR', 'Admin', '2018-12-15 09:31:02', NULL, NULL),
(6, '2', 2323, 'new two', 'assets/uploads/45551.jpg', 'ok', 'Y', 'HSR', 'Admin', '2018-12-15 09:31:18', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `mstrsupplier`
--
CREATE TABLE `mstrsupplier` (
`UniqueId` int(11) NOT NULL,
`SupplierCode` varchar(150) NOT NULL,
`SupplierName` varchar(300) NOT NULL,
`ContactPerson` varchar(250) NOT NULL,
`Area` varchar(250) NOT NULL,
`Place` varchar(250) NOT NULL,
`Religion` varchar(250) NOT NULL,
`SoftwareCode` varchar(250) NOT NULL,
`State` varchar(250) NOT NULL,
`Address` varchar(1500) NOT NULL,
`PinCode` decimal(10,0) NOT NULL,
`MobileNo` decimal(10,0) DEFAULT NULL,
`mob2` decimal(10,0) DEFAULT NULL,
`EmailId` varchar(150) DEFAULT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(300) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `mstrsupplier`
--
INSERT INTO `mstrsupplier` (`UniqueId`, `SupplierCode`, `SupplierName`, `ContactPerson`, `Area`, `Place`, `Religion`, `SoftwareCode`, `State`, `Address`, `PinCode`, `MobileNo`, `mob2`, `EmailId`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(1, '1', 'Prasanth', 'Prasanth', '1', '1', '1', '1', '1', 'Hosur', '635109', '7200523109', NULL, NULL, 'Y', 'HSR', 'Admin', '2018-12-10 16:51:01', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `news`
--
CREATE TABLE `news` (
`UniqueId` int(11) NOT NULL,
`NewsType` varchar(255) NOT NULL,
`Title` varchar(300) NOT NULL,
`Photo` varchar(255) NOT NULL,
`Description` varchar(1500) DEFAULT NULL,
`Date` varchar(255) DEFAULT NULL,
`PDF` varchar(255) DEFAULT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `news`
--
INSERT INTO `news` (`UniqueId`, `NewsType`, `Title`, `Photo`, `Description`, `Date`, `PDF`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(7, 'News', 'Is India being REDEFINED? An AIPC National Interactive - curated by AIPC Delhi', 'assets/uploads/news/83539.jpg', '..', '20-12-2018', NULL, 'Y', 'HSR', 'Admin', '2018-12-20 10:31:36', 'Admin', '2018-12-20 10:57:16'),
(8, 'Events', 'Event', 'assets/uploads/news/44978.jpg', '..', '20-12-2018', NULL, 'Y', 'HSR', 'Admin', '2018-12-20 11:02:22', NULL, NULL),
(9, 'Whitepapers', 'q', 'assets/uploads/news/product-unknow.jpg', 'q', '20-12-2018', '', 'Y', 'HSR', 'Admin', '2018-12-20 11:51:32', 'Admin', '2018-12-20 12:04:58'),
(10, 'News', 'saas', 'assets/uploads/news/48337.jpg', 'asdsad', '13-12-2018', '', 'Y', 'HSR', 'Admin', '2018-12-20 11:53:56', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `overview`
--
CREATE TABLE `overview` (
`UniqueId` int(11) NOT NULL,
`Title` varchar(300) NOT NULL,
`Photo` varchar(255) NOT NULL,
`Description` varchar(1500) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `overview`
--
INSERT INTO `overview` (`UniqueId`, `Title`, `Photo`, `Description`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(4, 'SPECIALITIES OVERVIEW', 'assets/uploads/overview/90045.jpg', 'Trusted by over 45,000 mothers. At R.K Hospitals, we understand that your life takes a colossal turn the moment you find out you are expecting a child.As India’s premier healthcare center dedicated to woman and child care, we understand the complexities of women’s health. In an endeavour to enhance customer convenience, R.K Hospitals started the initiative of offering Cryonine stem cell services.', 'Y', 'HSR', 'Admin', '2018-12-14 12:48:52', 'Admin', '2019-03-19 06:51:58'),
(5, 'MATERNITY', 'assets/uploads/overview/21063.jpg', 'At R.K Pregnancy Hospital, we believe that a child is life’s greatest gift and pregnancy is one of the most magical experiences one can go through. We can ensure you have a healthy and happy pregnancy, with the help of our team of Pregnancy doctors and nurses providing you with the best pregnancy care. With world-class medical expertise, state-of-the-art facilities, a space filled with love and laughter and dedicated staff, we’ll ensure the holistic well-being of you and your baby is taken care of.', 'Y', 'HSR', 'Admin', '2018-12-14 12:49:13', 'Admin', '2019-03-19 06:52:07'),
(6, 'PAEDIATRICS', 'assets/uploads/overview/45250.jpg', 'R.K Hospitals have a simple and valuable mission of providing quality care to the new born babies and children up to 18 years of age. The consultants here are not only a source of medical care but also information, advice, compassion and support, working cohesively 24×7 throughout a year. At any given time, one of them is always available to treat your baby.Hence, whichever doctor examines the child at any stage is fully aware of the child’s history. So there is no reason to worry if your regular Paediatrician is away or not available in times of need.', 'Y', 'HSR', 'Admin', '2018-12-14 12:49:36', 'Admin', '2019-03-19 06:52:17'),
(7, 'INTENSIVE CARE', 'assets/uploads/overview/64456.jpg', 'At R.K, we are thoroughly prepared to take on even the most complicated cases. In order to deliver truly reliable intensive care. We provide specialized nursery care for babies from 24 weeks gestation onwards. Premature babies (born before 37 weeks & after 24 weeks gestation) and sick babies are clinically assessed and cared for in the NICU until they can be transferred to the ward.Once your baby is ready to be discharged from NICU, we ensure that you are ready and confident about handling your new born. We provide a home-like environment in our Luxury room and guide and support you in this transition phase.', 'Y', 'HSR', 'Admin', '2018-12-14 12:49:57', 'Admin', '2019-03-19 06:52:26');
-- --------------------------------------------------------
--
-- Table structure for table `parent`
--
CREATE TABLE `parent` (
`UniqueId` int(11) NOT NULL,
`Title` varchar(300) NOT NULL,
`Photo` varchar(255) NOT NULL,
`Description` varchar(1500) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `parent`
--
INSERT INTO `parent` (`UniqueId`, `Title`, `Photo`, `Description`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(11, 'Indian National Congress', 'assets/uploads/parent/15714.png', '<p>All India Professionals’ Congress (AIPC) is an official department of the Indian National Congress (INC). The INC has always been the champion of liberal and secular politics in the country. Recognizing the need to enable professionals to contribute to the political discourse on India, the Indian National Congress (INC) launched the All India Professionals’ Congress (AIPC) in July 2017. <br />\r\n<br />\r\nThe Indian National Congress (INC) is the largest and oldest democratically-operating political parties in the world.</p>', 'Y', 'HSR', 'Admin', '2018-12-20 08:18:58', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `portfolio`
--
CREATE TABLE `portfolio` (
`UniqueId` int(11) NOT NULL,
`Type` varchar(255) NOT NULL,
`Name` varchar(300) NOT NULL,
`Photo` varchar(255) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `portfolio`
--
INSERT INTO `portfolio` (`UniqueId`, `Type`, `Name`, `Photo`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(10, 'CAMP', 'Room', 'assets/uploads/portfolio/96946.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:03:37', NULL, NULL),
(11, 'PROGRAMS', 'CAMP1', 'assets/uploads/portfolio/74464.PNG', 'Y', 'HSR', 'Admin', '2019-03-19 15:03:56', 'Admin', '2019-03-19 15:12:06'),
(12, 'PROGRAMS', 'Block', 'assets/uploads/portfolio/35783.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:04:10', NULL, NULL),
(13, 'PROGRAMS', 'CAMP3', 'assets/uploads/portfolio/89791.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:04:20', NULL, NULL),
(14, 'SURGERY', 'Room', 'assets/uploads/portfolio/87235.jpeg', 'Y', 'HSR', 'Admin', '2019-03-19 15:04:30', NULL, NULL),
(15, 'PROGRAMS', 'CAMP3', 'assets/uploads/portfolio/62917.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:04:40', NULL, NULL),
(16, 'SURGERY', 'Block', 'assets/uploads/portfolio/91589.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:05:01', NULL, NULL),
(17, 'PROGRAMS', 'Block', 'assets/uploads/portfolio/35285.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:05:10', 'Admin', '2019-03-19 15:19:43'),
(18, 'ATMOSPHERE', 'Room', 'assets/uploads/portfolio/94829.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:05:17', NULL, NULL),
(19, 'PROGRAMS', 'Room', 'assets/uploads/portfolio/39907.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:05:25', NULL, NULL),
(20, 'PROGRAMS', 'CAMP1', 'assets/uploads/portfolio/21630.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:05:33', NULL, NULL),
(21, 'PROGRAMS', 'Room', 'assets/uploads/portfolio/84348.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:05:41', NULL, NULL),
(22, 'PROGRAMS', 'Room', 'assets/uploads/portfolio/60733.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:05:56', NULL, NULL),
(23, 'PROGRAMS', 'Room', 'assets/uploads/portfolio/54435.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:06:05', NULL, NULL),
(24, 'ATMOSPHERE', 'Block', 'assets/uploads/portfolio/13176.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:06:16', 'Admin', '2019-03-19 15:13:20'),
(25, 'PROGRAMS', 'Block', 'assets/uploads/portfolio/13843.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:06:24', NULL, NULL),
(26, 'PROGRAMS', 'CAMP3', 'assets/uploads/portfolio/80637.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:06:32', NULL, NULL),
(27, 'PROGRAMS', 'Block', 'assets/uploads/portfolio/42056.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:06:40', NULL, NULL),
(28, 'ATMOSPHERE', 'Block', 'assets/uploads/portfolio/63329.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:06:48', NULL, NULL),
(29, 'SURGERY', 'Room', 'assets/uploads/portfolio/40990.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:07:01', NULL, NULL),
(30, 'PROGRAMS', 'Block', 'assets/uploads/portfolio/90910.jpg', 'Y', 'HSR', 'Admin', '2019-03-19 15:07:09', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `principle`
--
CREATE TABLE `principle` (
`UniqueId` int(11) NOT NULL,
`Title` varchar(300) NOT NULL,
`Description` varchar(1500) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `principle`
--
INSERT INTO `principle` (`UniqueId`, `Title`, `Description`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(1, 'Our Vision', 'Committed to provide health care of the best standards in all specialities to women and children with compassion and highest ethical standards', 'Y', 'HSR', 'Admin', '2018-12-14 12:18:12', 'Admin', '2019-03-19 05:39:40'),
(2, 'Our Mission', '‘ To provide the best possible standard of care for patients - women & children and to establish a dedicated referral centre to our colleagues, allowing them to manage their patients with our experience and expertise’.', 'Y', 'HSR', 'Admin', '2018-12-14 12:24:11', 'Admin', '2019-03-19 05:40:03'),
(3, 'Our journey', 'R K Hospital for women & children has a 40 years legacy behind Our journey started in 1977 at shivaji nagar , Thanjavur by our respected DR.R.KRISHNAMURTHY MBBS., NHS(U.K.)', 'Y', 'HSR', 'Admin', '2019-03-19 14:27:55', 'Admin', '2019-03-19 14:28:34'),
(4, 'THE DREAM OF PARENTHOOD COMES TRUE', 'The journey through fertility treatment can be a long road and this can be achieved through several paths.\r\nWe try to make this transition easy to experience the most beautiful moment of our life - The Parenthood', 'Y', 'HSR', 'Admin', '2019-03-19 14:37:48', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `rules`
--
CREATE TABLE `rules` (
`UniqueId` int(11) NOT NULL,
`Name` varchar(300) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `rules`
--
INSERT INTO `rules` (`UniqueId`, `Name`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(12, 'fdgdfgdfg', 'Y', 'HSR', 'Admin', '2018-12-20 13:03:02', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `service`
--
CREATE TABLE `service` (
`UniqueId` int(11) NOT NULL,
`Title` varchar(300) NOT NULL,
`Photo` varchar(255) NOT NULL,
`Description` varchar(1500) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `service`
--
INSERT INTO `service` (`UniqueId`, `Title`, `Photo`, `Description`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(4, 'CARDIOLOGY', 'assets/uploads/service/70081.png', 'Fuelled by a motive to serve all sections of the society.', 'Y', 'HSR', 'Admin', '2018-12-14 12:48:52', 'Admin', '2018-12-23 09:25:45'),
(5, 'LAPAROSCOPIC SURGERY', 'assets/uploads/service/46771.png', 'Tremendous changes in General Surgery and advanced patient care.', 'Y', 'HSR', 'Admin', '2018-12-14 12:49:13', 'Admin', '2018-12-23 09:26:00'),
(6, 'WOMEN HEALTH', 'assets/uploads/service/70193.png', 'woman has a significant impact on health of biological differences.', 'Y', 'HSR', 'Admin', '2018-12-14 12:49:36', 'Admin', '2018-12-23 09:26:09'),
(7, 'HEALTH CARE', 'assets/uploads/service/72154.png', 'The maintenance or improvement of health via the prevention, diagnosis, and treatment of disease.', 'Y', 'HSR', 'Admin', '2018-12-14 12:49:57', 'Admin', '2018-12-23 09:26:18'),
(8, 'ANESTHESIOLOGY', 'assets/uploads/service/99707.png', 'Anesthesia is a medical specialty concerned with the administration of medication to aid pain management.', 'Y', 'HSR', 'Admin', '2018-12-22 11:17:43', 'Admin', '2018-12-23 09:26:26'),
(9, 'EMERGENCY HELP', 'assets/uploads/service/29332.png', 'R.K Hospital’s “next generation Responder” makes medical transportation safer for patients.', 'Y', 'HSR', 'Admin', '2018-12-22 11:17:57', 'Admin', '2018-12-23 09:26:33');
-- --------------------------------------------------------
--
-- Table structure for table `subcribe`
--
CREATE TABLE `subcribe` (
`UniqueId` int(11) NOT NULL,
`EmailId` varchar(300) NOT NULL,
`Status` varchar(150) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `subcribe`
--
INSERT INTO `subcribe` (`UniqueId`, `EmailId`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(1, '<EMAIL>', 'Y', 'HSR', 'Admin', '2018-12-14 11:07:26', 'Admin', '2018-12-14 13:38:01');
-- --------------------------------------------------------
--
-- Table structure for table `userrights`
--
CREATE TABLE `userrights` (
`UniqueId` int(11) NOT NULL,
`User` varchar(250) NOT NULL,
`Dashboard` varchar(250) NOT NULL,
`Setting` varchar(250) NOT NULL,
`Master` varchar(250) NOT NULL,
`Sms` varchar(250) NOT NULL,
`Report` varchar(250) NOT NULL,
`Status` varchar(250) NOT NULL,
`BranchCode` varchar(250) NOT NULL,
`CreatedBy` varchar(250) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(250) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `userrights`
--
INSERT INTO `userrights` (`UniqueId`, `User`, `Dashboard`, `Setting`, `Master`, `Sms`, `Report`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(1, '1', 'Y', 'Y', 'Y', 'Y', 'Y', 'Y', 'HSR', 'Admin', '2018-12-10 09:51:18', 'Admin', '2018-12-14 14:14:03'),
(2, '2', 'Y', 'N', 'N', 'Y', 'Y', 'Y', 'HSR', 'Admin', '2018-12-10 11:18:30', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(10) UNSIGNED NOT NULL,
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`role` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`BranchCode` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `email`, `password`, `remember_token`, `role`, `status`, `BranchCode`, `created_at`, `updated_at`) VALUES
(1, 'Admin', '<EMAIL>', <PASSWORD>', '<PASSWORD>', 'Admin', 'Y', 'HSR', '2018-11-20 05:03:00', '2018-11-21 05:19:16'),
(3, 'sabari', '<EMAIL>', '$2y$10$Zl48fpHf7W/hh94BkhC5ye4zWcsHnD9.vD2lEyZxaXSFVCIVs3wHO', NULL, 'User', 'N', 'HSR', '2018-12-21 23:12:07', NULL);
-- --------------------------------------------------------
--
-- Table structure for table `websitesetting`
--
CREATE TABLE `websitesetting` (
`UniqueId` int(11) NOT NULL,
`WebSiteName` varchar(300) NOT NULL,
`ContactPersonName` varchar(1500) NOT NULL,
`ContactNo` varchar(250) NOT NULL,
`MailID` varchar(250) NOT NULL,
`Address` varchar(250) NOT NULL,
`FaceBookUrl` varchar(255) DEFAULT NULL,
`InstagramUrl` varchar(255) DEFAULT NULL,
`TwitterUrl` varchar(255) DEFAULT NULL,
`GooglePlusUrl` varchar(255) DEFAULT NULL,
`Logo` varchar(255) NOT NULL,
`Status` varchar(255) NOT NULL,
`BranchCode` varchar(150) NOT NULL,
`CreatedBy` varchar(150) NOT NULL,
`CreateDate` datetime NOT NULL,
`UpdatedBy` varchar(150) DEFAULT NULL,
`UpdateDate` datetime DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `websitesetting`
--
INSERT INTO `websitesetting` (`UniqueId`, `WebSiteName`, `ContactPersonName`, `ContactNo`, `MailID`, `Address`, `FaceBookUrl`, `InstagramUrl`, `TwitterUrl`, `GooglePlusUrl`, `Logo`, `Status`, `BranchCode`, `CreatedBy`, `CreateDate`, `UpdatedBy`, `UpdateDate`) VALUES
(1, 'R.K.Hospital', 'R.K.Hospital', '+91 9380312340', '<EMAIL>', 'VOC Nagar 1st Cross,\r\nThanjavur-613007,\r\nTamil Nadu,Hosur.', 'https://www.facebook.com/', 'https://www.linkedin.com/', 'https://twitter.com/', 'https://plus.google.com/discover', 'assets/uploads/logo/88461.png', 'Y', 'HSR', 'Admin', '2018-12-10 15:17:35', 'Admin', '2019-03-19 14:41:13');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `aboutus`
--
ALTER TABLE `aboutus`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `advert`
--
ALTER TABLE `advert`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `banner`
--
ALTER TABLE `banner`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `blog`
--
ALTER TABLE `blog`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `clients`
--
ALTER TABLE `clients`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `companysetting`
--
ALTER TABLE `companysetting`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `department`
--
ALTER TABLE `department`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `doctor`
--
ALTER TABLE `doctor`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `feedback`
--
ALTER TABLE `feedback`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `migrations`
--
ALTER TABLE `migrations`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `mstrcategory`
--
ALTER TABLE `mstrcategory`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `mstrproduct`
--
ALTER TABLE `mstrproduct`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `mstrsupplier`
--
ALTER TABLE `mstrsupplier`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `news`
--
ALTER TABLE `news`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `overview`
--
ALTER TABLE `overview`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `parent`
--
ALTER TABLE `parent`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `portfolio`
--
ALTER TABLE `portfolio`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `principle`
--
ALTER TABLE `principle`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `rules`
--
ALTER TABLE `rules`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `service`
--
ALTER TABLE `service`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `subcribe`
--
ALTER TABLE `subcribe`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `userrights`
--
ALTER TABLE `userrights`
ADD PRIMARY KEY (`UniqueId`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `websitesetting`
--
ALTER TABLE `websitesetting`
ADD PRIMARY KEY (`UniqueId`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `aboutus`
--
ALTER TABLE `aboutus`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `advert`
--
ALTER TABLE `advert`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `banner`
--
ALTER TABLE `banner`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `blog`
--
ALTER TABLE `blog`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `clients`
--
ALTER TABLE `clients`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `companysetting`
--
ALTER TABLE `companysetting`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `department`
--
ALTER TABLE `department`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `doctor`
--
ALTER TABLE `doctor`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `feedback`
--
ALTER TABLE `feedback`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `migrations`
--
ALTER TABLE `migrations`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `mstrcategory`
--
ALTER TABLE `mstrcategory`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `mstrproduct`
--
ALTER TABLE `mstrproduct`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `mstrsupplier`
--
ALTER TABLE `mstrsupplier`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `news`
--
ALTER TABLE `news`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT for table `overview`
--
ALTER TABLE `overview`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `parent`
--
ALTER TABLE `parent`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `portfolio`
--
ALTER TABLE `portfolio`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=31;
--
-- AUTO_INCREMENT for table `principle`
--
ALTER TABLE `principle`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
--
-- AUTO_INCREMENT for table `rules`
--
ALTER TABLE `rules`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT for table `service`
--
ALTER TABLE `service`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `subcribe`
--
ALTER TABLE `subcribe`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `userrights`
--
ALTER TABLE `userrights`
MODIFY `UniqueId` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT for table `websitesetting`
--
ALTER TABLE `websitesetting`
MODIFY `UniqueId` 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 */;
|
#用户表
CREATE TABLE IF NOT EXISTS `sys_user` (
`id` bigint(18) NOT NULL COMMENT 'ID',
`account` varchar(100) NOT NULL COMMENT '账号',
`password` varchar(50) NOT NULL COMMENT '密码',
`passwordStrength` tinyint(1) NOT NULL COMMENT '密码强度(1:弱,2:中,3:强)',
`uname` varchar(10) DEFAULT NULL COMMENT '昵称',
`sex` tinyint(1) DEFAULT NULL COMMENT '性别(1:男,2:女,null:保密)',
`mobile` varchar(20) DEFAULT NULL COMMENT '手机号',
`email` varchar(100) DEFAULT NULL COMMENT '邮箱',
`createIp` varchar(20) DEFAULT NULL COMMENT '注册IP',
`updater` bigint(18) DEFAULT NULL COMMENT '更新者',
`lastLoginTime` datetime DEFAULT NULL COMMENT '最后登录时间',
`lastLoginIp` varchar(20) DEFAULT NULL COMMENT '最后登录IP',
`isNoUsed` tinyint(1) NULL DEFAULT 0 COMMENT '不使用',
`createTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updateTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
`ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
PRIMARY KEY (`id`),
UNIQUE KEY `UQ_ACCOUNT` (`account`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT '用户表';
#任务表
CREATE TABLE IF NOT EXISTS `sys_task`(
`id` bigint(18) NOT NULL COMMENT 'ID',
`userId` bigint(18) NOT NULL COMMENT '用户ID',
`code` varchar(50) NOT NULL COMMENT '编码',
`name` varchar(50) NOT NULL COMMENT '名称',
`description` varchar(255) NULL COMMENT '描述',
`isNoUsed` tinyint(1) NULL DEFAULT 0 COMMENT '不使用',
`createTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updateTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
`ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
PRIMARY KEY (`id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT '任务表';
#网站表
CREATE TABLE IF NOT EXISTS `sys_website` (
`id` bigint(18) NOT NULL COMMENT 'ID',
`userId` bigint(18) NOT NULL COMMENT '用户ID',
`code` varchar(200) NOT NULL COMMENT '编码',
`name` varchar(200) NOT NULL COMMENT '名称',
`updater` bigint(18) DEFAULT NULL COMMENT '更新者',
`createTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updateTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
`ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
PRIMARY KEY (`id`),
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT '网站表';
#实体包表
CREATE TABLE IF NOT EXISTS `sys_entity_group`(
`id` bigint(18) NOT NULL COMMENT 'ID',
`userId` bigint(18) NOT NULL COMMENT '用户ID',
`websiteId` bigint(18) NOT NULL COMMENT '网站ID',
`parentId` bigint(18) NULL COMMENT '上级包ID',
`code` varchar(500) NOT NULL COMMENT '编码',
`name` varchar(50) NOT NULL COMMENT '名称',
`description` varchar(255) NULL COMMENT '描述',
`isNoUsed` tinyint(1) NULL DEFAULT 0 COMMENT '不使用',
`createTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updateTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
`ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
PRIMARY KEY (`id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT '实体包表';
#实体表
CREATE TABLE IF NOT EXISTS `sys_entity`(
`id` bigint(18) NOT NULL COMMENT 'ID',
`userId` bigint(18) NOT NULL COMMENT '用户ID',
`websiteId` bigint(18) NOT NULL COMMENT '网站ID',
`entityGroupId` bigint(18) NOT NULL COMMENT '所属包ID',
`code` varchar(200) NOT NULL COMMENT '编码',
`name` varchar(50) NOT NULL COMMENT '名称',
`tableName` varchar(50) NOT NULL COMMENT '表名',
`description` varchar(255) NULL COMMENT '描述',
`options` varchar(4000) NULL COMMENT '配置',
`isNoUsed` tinyint(1) NULL DEFAULT 0 COMMENT '不使用',
`createTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updateTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
`ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
PRIMARY KEY (`id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT '实体表';
#实体字段表
CREATE TABLE IF NOT EXISTS `sys_entity_field`(
`id` bigint(18) NOT NULL COMMENT 'ID',
`userId` bigint(18) NOT NULL COMMENT '用户ID',
`websiteId` bigint(18) NOT NULL COMMENT '网站ID',
`entityId` bigint(18) NOT NULL COMMENT '所属实体ID',
`code` varchar(200) NOT NULL COMMENT '编码',
`name` varchar(50) NOT NULL COMMENT '名称',
`description` varchar(255) NULL COMMENT '描述',
`typeName` varchar(50) NOT NULL COMMENT '类型',
`options` varchar(4000) NULL COMMENT '配置',
`isNoUsed` tinyint(1) NULL DEFAULT 0 COMMENT '不使用',
`createTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updateTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
`ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
PRIMARY KEY (`id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT '实体字段表';
#实体数据表
CREATE TABLE IF NOT EXISTS `sys_entity_data`(
`id` bigint(18) NOT NULL COMMENT 'ID',
`userId` bigint(18) NOT NULL COMMENT '用户ID',
`websiteId` bigint(18) NOT NULL COMMENT '网站ID',
`entityId` bigint(18) NOT NULL COMMENT '所属实体ID',
`code` varchar(200) NOT NULL COMMENT '编码',
`name` varchar(50) NOT NULL COMMENT '名称',
`description` varchar(255) NULL COMMENT '描述',
`extra` JSON NULL COMMENT '扩展字段',
`isNoUsed` tinyint(1) NULL DEFAULT 0 COMMENT '不使用',
`createTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`updateTime` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '更新时间',
`ts` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '时间戳',
PRIMARY KEY (`id`)
)ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT '实体数据表';
|
SET NAMES utf8;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for `roc_article`
-- ----------------------------
DROP TABLE IF EXISTS `roc_article`;
CREATE TABLE `roc_article` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '文章ID',
`uid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`poster_id` int(11) NOT NULL DEFAULT '0' COMMENT '封面ID',
`title` varchar(64) NOT NULL DEFAULT '' COMMENT '文章标题',
`content` text NOT NULL COMMENT '文章内容',
`praise_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '点赞数',
`collection_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '收藏数',
`post_time` int(11) NOT NULL DEFAULT '0' COMMENT '发布时间',
`is_open` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '是否审核开放',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否有效,0删除,1正常,2待审核',
PRIMARY KEY (`id`),
KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for `roc_attachment`
-- ----------------------------
DROP TABLE IF EXISTS `roc_attachment`;
CREATE TABLE `roc_attachment` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '附件ID',
`uid` mediumint(8) unsigned NOT NULL COMMENT '用户ID',
`path` varchar(255) NOT NULL COMMENT '路径',
`mime_type` char(16) NOT NULL DEFAULT '' COMMENT '附件mimeType',
`type` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '附件类型,1图片',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否删除,0删除,1正常',
PRIMARY KEY (`id`),
KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for `roc_club`
-- ----------------------------
DROP TABLE IF EXISTS `roc_club`;
CREATE TABLE `roc_club` (
`cid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '分类ID',
`club_name` varchar(16) NOT NULL DEFAULT '' COMMENT '分类名',
`sort` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '分类排序',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否删除,0删除,1正常',
PRIMARY KEY (`cid`),
KEY `sort` (`sort`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Records of `roc_club`
-- ----------------------------
BEGIN;
INSERT INTO `roc_club` VALUES ('1', '技术交流', '0', '1'), ('2', '天下杂谈', '0', '1'), ('3', '心情分享', '0', '1'), ('4', '灌水专区', '0', '1');
COMMIT;
-- ----------------------------
-- Table structure for `roc_collection`
-- ----------------------------
DROP TABLE IF EXISTS `roc_collection`;
CREATE TABLE `roc_collection` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`uid` mediumint(8) unsigned NOT NULL COMMENT '用户ID',
`tid` int(11) unsigned NOT NULL COMMENT '话题ID',
`article_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '文章ID',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否删除,0删除,1正常',
PRIMARY KEY (`id`),
KEY `uid` (`valid`,`uid`,`tid`,`article_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for `roc_config`
-- ----------------------------
DROP TABLE IF EXISTS `roc_config`;
CREATE TABLE `roc_config` (
`key` varchar(32) NOT NULL,
`value` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`key`),
UNIQUE KEY `key` (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Records of `roc_config`
-- ----------------------------
BEGIN;
INSERT INTO `roc_config` VALUES ('description', '最前沿的社区交流,最纯粹的技术切磋,一款优雅而简约的垂直微社区。'), ('keywords', 'BBS,社区,微社区'), ('rockey', 'z5fiz0ps4r9z'), ('sitename', 'ROCBOSS');
COMMIT;
-- ----------------------------
-- Table structure for `roc_follow`
-- ----------------------------
DROP TABLE IF EXISTS `roc_follow`;
CREATE TABLE `roc_follow` (
`uid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '关注者UID',
`fuid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '被关注者UID',
PRIMARY KEY (`uid`,`fuid`),
KEY `uid` (`uid`),
KEY `fuid` (`fuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for `roc_link`
-- ----------------------------
DROP TABLE IF EXISTS `roc_link`;
CREATE TABLE `roc_link` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`name` char(12) NOT NULL DEFAULT '' COMMENT '链接名称',
`url` varchar(255) NOT NULL DEFAULT '' COMMENT '链接URL',
`sort` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '排序',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否有效,1有效,0无效',
PRIMARY KEY (`id`),
KEY `sort` (`sort`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Records of `roc_link`
-- ----------------------------
BEGIN;
INSERT INTO `roc_link` VALUES ('1', 'ROCBOSS', 'https://www.rocboss.com', '50', '1');
COMMIT;
-- ----------------------------
-- Table structure for `roc_message`
-- ----------------------------
DROP TABLE IF EXISTS `roc_message`;
CREATE TABLE `roc_message` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '私信ID',
`at_uid` mediumint(8) unsigned NOT NULL COMMENT '目标用户ID',
`uid` mediumint(8) unsigned NOT NULL COMMENT '发送用户ID',
`content` varchar(255) NOT NULL DEFAULT '' COMMENT '私信内容',
`post_time` int(11) unsigned NOT NULL COMMENT '私信时间',
`del_uid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '率先删除者ID',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否删除,0删除,1正常',
PRIMARY KEY (`id`),
KEY `message` (`at_uid`,`uid`,`del_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for `roc_notification`
-- ----------------------------
DROP TABLE IF EXISTS `roc_notification`;
CREATE TABLE `roc_notification` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '通知ID',
`at_uid` mediumint(8) unsigned NOT NULL COMMENT '通知对象ID',
`uid` mediumint(8) unsigned NOT NULL COMMENT '用户ID',
`tid` int(11) unsigned NOT NULL COMMENT '主题ID',
`pid` int(11) unsigned NOT NULL COMMENT '通知的资源ID',
`post_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '发布时间',
`is_read` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否已读,0未读,1已读',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否删除,0删除,1正常',
PRIMARY KEY (`id`),
KEY `at_uid` (`at_uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for `roc_praise`
-- ----------------------------
DROP TABLE IF EXISTS `roc_praise`;
CREATE TABLE `roc_praise` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`uid` mediumint(8) unsigned NOT NULL DEFAULT '0',
`tid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '主题ID',
`article_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '文章ID',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否有效,0删除,1有效',
PRIMARY KEY (`id`),
KEY `uid` (`uid`),
KEY `tid` (`tid`),
KEY `article_id` (`article_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for `roc_relation`
-- ----------------------------
DROP TABLE IF EXISTS `roc_relation`;
CREATE TABLE `roc_relation` (
`attachment_id` int(11) unsigned NOT NULL,
`res_id` int(11) unsigned NOT NULL COMMENT '目标源ID',
`type` tinyint(2) unsigned NOT NULL COMMENT '目标源类型,1主题,2回复',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否删除,0删除,1正常',
PRIMARY KEY (`res_id`,`type`,`attachment_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for `roc_reply`
-- ----------------------------
DROP TABLE IF EXISTS `roc_reply`;
CREATE TABLE `roc_reply` (
`pid` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '回复ID',
`tid` int(11) unsigned NOT NULL COMMENT '主题ID',
`at_pid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '引用回复ID',
`uid` mediumint(8) unsigned NOT NULL COMMENT '用户ID',
`content` text NOT NULL COMMENT '回复内容',
`client` char(20) NOT NULL DEFAULT '' COMMENT '客户端标识',
`location` char(20) NOT NULL DEFAULT '' COMMENT '发表地区',
`post_time` int(11) unsigned NOT NULL COMMENT '发布时间',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否删除,0删除,1正常',
PRIMARY KEY (`pid`),
KEY `tid` (`tid`),
KEY `uid` (`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for `roc_score`
-- ----------------------------
DROP TABLE IF EXISTS `roc_score`;
CREATE TABLE `roc_score` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`trade_no` varchar(32) NOT NULL DEFAULT '' COMMENT '支付宝订单号',
`tid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '所属主题ID',
`uid` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '变化者用户ID',
`changed` mediumint(8) NOT NULL DEFAULT '0' COMMENT '变动积分',
`remain` int(11) NOT NULL DEFAULT '0' COMMENT '剩余积分',
`reason` varchar(200) NOT NULL DEFAULT '' COMMENT '变动缘由',
`add_user` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '操作者ID',
`add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '变动时间',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否删除,0删除,1正常',
PRIMARY KEY (`id`),
KEY `INDEX_USER` (`uid`,`valid`),
KEY `INDEX_TOPIC` (`tid`,`changed`,`valid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for `roc_topic`
-- ----------------------------
DROP TABLE IF EXISTS `roc_topic`;
CREATE TABLE `roc_topic` (
`tid` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '话题ID',
`cid` mediumint(8) unsigned NOT NULL COMMENT '分类ID',
`uid` mediumint(8) unsigned NOT NULL COMMENT '用户ID',
`title` varchar(128) NOT NULL DEFAULT '' COMMENT '话题标题',
`content` text NOT NULL COMMENT '内容',
`praise_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '点赞数',
`collection_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '收藏数',
`comment_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '评论数',
`location` char(20) NOT NULL DEFAULT '' COMMENT '发表地区',
`client` char(20) NOT NULL DEFAULT '' COMMENT '客户端',
`post_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '发布时间',
`edit_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最后编辑时间',
`last_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '最后回复时间',
`is_essence` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0普通,1精华',
`is_lock` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0正常,1锁帖',
`is_top` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0普通,1置顶',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否删除,0删除,1正常',
PRIMARY KEY (`tid`),
KEY `cid` (`valid`,`cid`),
KEY `uid` (`valid`,`uid`),
KEY `last_time` (`valid`,`last_time`),
KEY `post_time` (`valid`,`post_time`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for `roc_user`
-- ----------------------------
DROP TABLE IF EXISTS `roc_user`;
CREATE TABLE `roc_user` (
`uid` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID',
`email` char(32) NOT NULL DEFAULT '' COMMENT '邮箱',
`phone` char(11) NOT NULL DEFAULT '' COMMENT '手机号码',
`username` char(32) NOT NULL COMMENT '用户名',
`password` char(32) NOT NULL DEFAULT '' COMMENT '<PASSWORD>',
`salt` char(8) NOT NULL DEFAULT '' COMMENT '盐值',
`score` mediumint(8) NOT NULL DEFAULT '0' COMMENT '用户积分',
`reg_time` int(11) unsigned NOT NULL COMMENT '注册时间',
`last_time` int(11) NOT NULL COMMENT '最后活跃时间',
`qq_openid` char(32) NOT NULL DEFAULT '' COMMENT 'QQ授权openID',
`weibo_openid` char(32) NOT NULL DEFAULT '' COMMENT '微博授权openID',
`wx_openid` char(32) NOT NULL DEFAULT '' COMMENT '微信OPENID',
`wx_unionid` char(128) NOT NULL DEFAULT '' COMMENT '微信UnionID',
`client_id` char(32) NOT NULL DEFAULT '' COMMENT 'ClientID,用于APP推送',
`client_os` char(16) NOT NULL DEFAULT '' COMMENT 'APP操作系统OS',
`token` char(32) NOT NULL DEFAULT '' COMMENT '客户端Token',
`expire_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '超时时间',
`groupid` tinyint(2) unsigned NOT NULL DEFAULT '1' COMMENT '用户组ID',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否删除,0删除,1正常',
PRIMARY KEY (`uid`),
UNIQUE KEY `username` (`valid`,`username`),
KEY `qq` (`valid`,`qq_openid`),
KEY `weibo` (`valid`,`weibo_openid`),
KEY `email` (`valid`,`email`),
KEY `phone` (`valid`,`phone`),
KEY `weixin` (`valid`,`wx_unionid`,`wx_openid`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Records of `roc_user`
-- ----------------------------
BEGIN;
INSERT INTO `roc_user` VALUES ('1', '<EMAIL>', '18399998888', 'admin', 'f<PASSWORD>0c8de146c<PASSWORD>44babbf<PASSWORD>', '9is38gt5', '5000', '1483879807', '1483879807', '', '', '', '', '', '', '', '0', '99', '1');
COMMIT;
-- ----------------------------
-- Table structure for `roc_whisper`
-- ----------------------------
DROP TABLE IF EXISTS `roc_whisper`;
CREATE TABLE `roc_whisper` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`at_uid` mediumint(8) unsigned NOT NULL COMMENT '目标用户ID',
`uid` mediumint(8) unsigned NOT NULL COMMENT '发送者ID',
`content` varchar(255) NOT NULL,
`post_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '私信时间',
`is_read` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否已读,0未读,1已读',
`del_flag` mediumint(8) unsigned NOT NULL DEFAULT '0' COMMENT '首删者ID',
`valid` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否删除,0删除,1正常',
PRIMARY KEY (`id`),
KEY `uid` (`at_uid`,`uid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
-- ----------------------------
-- Table structure for `roc_withdraw`
-- ----------------------------
DROP TABLE IF EXISTS `roc_withdraw`;
CREATE TABLE `roc_withdraw` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '提现申请单ID',
`uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '用户ID',
`pay_account` varchar(32) NOT NULL DEFAULT '' COMMENT '支付宝账户',
`score` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '提现的积分',
`should_pay` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '应支付金额',
`status` tinyint(4) unsigned NOT NULL DEFAULT '0' COMMENT '状态,0申请中,1审核通过,2审核拒绝',
`remark` varchar(128) NOT NULL DEFAULT '' COMMENT '备注',
`add_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '申请时间',
`handle_uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '处理者ID',
`handle_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '处理时间',
`valid` tinyint(4) unsigned NOT NULL DEFAULT '1' COMMENT '是否有效,1有效,0删除',
PRIMARY KEY (`id`),
KEY `INDEX_USER` (`uid`,`valid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='提现申请表';
SET FOREIGN_KEY_CHECKS = 1;
|
<gh_stars>1-10
IF NOT EXISTS (SELECT * FROM sys.views WHERE object_id = OBJECT_ID(N'api.harjoittelukoulut'))
EXEC dbo.sp_executesql @statement = N'
CREATE VIEW api.harjoittelukoulut AS
SELECT 1 AS a
'
GO
ALTER view api.harjoittelukoulut as
select
[Tilastovuosi] = vuosi
,[Yliopisto] = d1.yo_nimi_fi
,[Henkilöstöryhmä] = null
,[Koulutusala] = 'Tieto puuttuu'
,[Ohjauksen ala] = 'Tieto puuttuu'
--mittarit
,f.harjoittelukoulun_oppilaat_esiopetus
,f.harjoittelukoulun_oppilaat_perusopetuksen_vuodet_1_6
,f.harjoittelukoulun_oppilaat_perusopetuksen_vuodet_7_9
,f.harjoittelukoulun_oppilaat_lukio
,f.harjoittelukoulun_oppilaat_yhteensa
,f.harjoittelukoulun_opettajankoulutustehtavien_kokonaisviikkotunnit
,f.harjoittelukoulun_kokonaistuntimaara
,[opintopisteet_lastentarha] = null
,[opintopisteet_luokanopettaja] = null
,[opintopisteet_aineenopettaja] = null
,[opintopisteet_erityisopettaja] = null
,[opintopisteet_opinto_ohjaaja] = null
,[opintopisteet_aikuiskoulutus] = null
,[opintopisteet_muut] = null
,henkilotyovuosi = null
--koodit
,[Koodit Yliopisto] = d1.yo_tunnus
,[Koodit Koulutusala] = 99
,[Koodit Ohjauksen ala] = 99
,[Koodit Henkilöstöryhmä] = 99
--oletusjärjestys sorttausta varten, 1000000000+ lajittelee alikyselyn tulokset
,1000000000+ROW_NUMBER() OVER(ORDER BY f.id ASC, d1.id ASC) as defaultorder
from [dw].[f_yo_harjoittelukoulut] f
join dw.d_yo d1 on d1.id=f.d_yliopisto_id
UNION ALL
select
[Tilastovuosi] = vuosi
,[Yliopisto] = d1.yo_nimi_fi
,null
,[Koulutusala] = 'Tieto puuttuu'
,[Ohjauksen ala] = 'Tieto puuttuu'
--mittarit
,null
,null
,null
,null
,null
,null
,null
,f.suoritetut_opintopisteet_lastentarhanopettajat
,f.suoritetut_opintopisteet_luokanopettajaharjoittelu
,f.suoritetut_opintopisteet_aineenopettajaharjoittelu
,f.suoritetut_opintopisteet_erityisopettajat
,f.suoritetut_opintopisteet_opinto_ohjaajat
,f.suoritetut_opintopisteet_aikuiskoulutus_harjoittelu
,f.suoritetut_opintopisteet_muut_opettajankoulutusryhmat
,null
--koodit
,[Koodit Yliopisto] = d1.yo_tunnus
,[Koodit Koulutusala] = 99
,[Koodit Ohjauksen ala] = 99
,[Koodit Henkilöstöryhmä] = 99
--oletusjärjestys sorttausta varten, 2000000000+ lajittelee alikyselyn tulokset
,2000000000+ROW_NUMBER() OVER(ORDER BY f.id ASC, d1.id ASC) as defaultorder
from [dw].[f_yo_harjoittelukoulujen_opintopisteet] f
join dw.d_yo d1 on d1.id=f.d_yliopisto_id
UNION ALL
select
[Tilastovuosi] = vuosi
,[Yliopisto] = d1.yo_nimi_fi
,[Henkilöstöryhmä] = d3.selite_fi
,[Koulutusala] = d4.selite_fi
,[Ohjauksen ala] = d5.ohjauksenala_nimi_fi
--mittarit
,null
,null
,null
,null
,null
,null
,null
,null
,null
,null
,null
,null
,null
,null
,henkilotyovuosi
--koodit
,[Koodit Yliopisto] = d1.yo_tunnus
,[Koodit Koulutusala] = case d4.koodi when -1 then 99 else d4.koodi end
,[Koodit Ohjauksen ala] = case d5.ohjauksenala_koodi when -1 then 99 else d5.ohjauksenala_koodi end
,[Koodit Henkilöstöryhmä] = d3.koodi
--oletusjärjestys sorttausta varten, 3000000000+ lajittelee alikyselyn tulokset
,3000000000+ROW_NUMBER() OVER(ORDER BY f.id ASC, d1.id ASC, d2.id ASC, d3.id ASC, d4.id ASC, d5.id ASC) as defaultorder
from [dw].[f_yo_henkilon_tyo] f
join dw.d_yo d1 on d1.id=f.d_yliopisto_id
join dw.d_yo_tehtavanjaottelu d2 on d2.id=f.d_tehtavanjaottelu_id
join dw.d_yo_harjoittelukoulujen_henkilostoryhma d3 on d3.id=f.d_harjoittelukoulujen_henkilostoryhma_id
join dw.d_koulutusala_1995 d4 on d4.id=f.d_koulutusala_id
join dw.d_ohjauksenala d5 on d5.id=f.d_ohjauksenala_id
where d2.selite_fi='Harjoittelukoulujen henkilöstö'
GO
/* revert
drop view api.harjoittelukoulut
--*/
|
<reponame>danieldiamond/gitlab-analytics
WITH sessions AS (
SELECT *
FROM {{ ref('ga360_session') }}
), session_custom_dims AS (
SELECT *
FROM {{ ref('ga360_session_custom_dimension') }}
), sessions_xf AS(
SELECT
--sessions
sessions.*,
--client_id dimension
clientid_dim.dimension_value AS client_id
FROM sessions
LEFT JOIN session_custom_dims AS clientid_dim
ON sessions.visit_id = clientid_dim.visit_id
and clientid_dim.dimension_index = 6 --clientID
)
SELECT *
FROM sessions_xf
|
<filename>addons/includes/database/upgrade/(db_name)/v.2.5.6_index_log.sql
-- [database log]
ALTER TABLE `logs` ADD INDEX `log_status_index` (`status`);
ALTER TABLE `logs` ADD INDEX `log_to_index` (`to`);
|
<gh_stars>10-100
-- file:rangetypes.sql ln:166 expect:true
select daterange('2000-01-10'::date, '2000-01-11'::date, '()')
|
CREATE TABLE activities
(
id bigserial,
version bigint NOT NULL DEFAULT 0,
created_at timestamptz NOT NULL,
name character varying(255) NOT NULL,
details text NOT NULL,
order_id bigint NOT NULL,
CONSTRAINT pk_activities PRIMARY KEY (id),
CONSTRAINT fk_activities_order_id FOREIGN KEY (order_id) REFERENCES orders (id) ON UPDATE NO ACTION ON DELETE NO ACTION
);
|
<reponame>Max1811/SchoolManagement
CREATE TABLE [dbo].[Classes] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[SchoolId] INT NULL,
[ClassNumber] INT NULL,
[CreationDate] DATETIME NULL,
[IsDeleted] BIT NULL,
[ClassParalel] INT NULL,
PRIMARY KEY CLUSTERED ([Id] ASC),
FOREIGN KEY ([SchoolId]) REFERENCES [dbo].[Schools] ([Id])
);
|
INSERT INTO tb_categoria (nome) VALUES ('Celular');
INSERT INTO tb_usuario (data_hora_cadastro, login, senha) VALUES (CURRENT_TIMESTAMP(), '<EMAIL>', <PASSWORD>.');
INSERT INTO tb_produto (data_hora_cadastro, nome, descricao, qtd_disponivel, valor, categoria_id, usuario_id) VALUES (CURRENT_TIMESTAMP(), 'Samsumg S20', 'Celular de última geração', 26, 2999.90, 1, 1); |
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 06, 2022 at 01:53 PM
-- Server version: 10.4.21-MariaDB
-- PHP Version: 8.0.12
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: `hisab`
--
-- --------------------------------------------------------
--
-- Table structure for table `admin`
--
CREATE TABLE `admin` (
`ID` int(100) NOT NULL,
`Name` varchar(200) NOT NULL,
`Email` varchar(200) NOT NULL,
`Password` varchar(200) NOT NULL,
`CPassword` varchar(200) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `admin`
--
INSERT INTO `admin` (`ID`, `Name`, `Email`, `Password`, `CPassword`) VALUES
(6, 'Marwa ', '<EMAIL>', ' 123', ' 123'),
(7, 'Eman', '<EMAIL>', ' 1234', ' 1234'),
(8, 'Khansa', '<EMAIL>', ' 12345', ' 12345');
-- --------------------------------------------------------
--
-- Table structure for table `home`
--
CREATE TABLE `home` (
`ID` int(100) NOT NULL,
`Total_Payable` int(100) NOT NULL,
`Total_Receivable` int(100) NOT NULL,
`Total_Balance` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `home`
--
INSERT INTO `home` (`ID`, `Total_Payable`, `Total_Receivable`, `Total_Balance`) VALUES
(1, 500000, 500000, 10000000),
(2, 1000000, 1000000, 2000000),
(3, 500000, 500000, 10000000),
(4, 1000000, 1000000, 2000000),
(5, 300000, 1000000, 1300000),
(6, 250000, 250000, 500000),
(7, 300000, 1000000, 1300000),
(8, 250000, 250000, 500000),
(9, 600000, 500000, 1100000),
(10, 1000000, 2500000, 3500000),
(11, 600000, 500000, 1100000),
(12, 1000000, 2500000, 3500000);
--
-- Indexes for dumped tables
--
--
-- Indexes for table `admin`
--
ALTER TABLE `admin`
ADD PRIMARY KEY (`ID`);
--
-- Indexes for table `home`
--
ALTER TABLE `home`
ADD PRIMARY KEY (`ID`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `admin`
--
ALTER TABLE `admin`
MODIFY `ID` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `home`
--
ALTER TABLE `home`
MODIFY `ID` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
ALTER TABLE jobs DROP COLUMN nominal_time;
ALTER TABLE jobs ALTER COLUMN description DROP NOT NULL;
ALTER TABLE jobs ADD COLUMN current_owner_name VARCHAR(64);
ALTER TABLE job_versions ADD COLUMN version UUID;
ALTER TABLE job_versions ADD COLUMN uri VARCHAR(256);
ALTER TABLE job_versions DROP COLUMN git_repo_uri;
ALTER TABLE job_versions DROP COLUMN git_sha;
ALTER TABLE job_versions ALTER COLUMN input_dataset DROP NOT NULL;
ALTER TABLE job_versions ALTER COLUMN output_dataset DROP NOT NULL;
CREATE TABLE IF NOT EXISTS job_run_definitions (
guid UUID PRIMARY KEY,
job_version_guid UUID REFERENCES job_versions(guid),
run_args_json TEXT,
content_hash UUID NOT NULL,
nominal_start_time INTEGER,
nominal_end_time INTEGER,
created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
);
|
<gh_stars>0
insert into code_category_values (code_category_id, concept_dbid)
SELECT distinct 25, c.dbid
FROM concept c
WHERE c.id in(
'R2_5351.',
'R2_5371.',
'EMLOC_^ESCTCO599824',
'R3_5691.',
'R3_5211.',
'SN_168837001',
'R3_5841.',
'SN_310250008',
'R3_XaCDP',
'SN_168748001',
'SN_401000009',
'SN_168539009',
'SN_169081001',
'R2_54C1.',
'R2_54A1.',
'SN_169220006',
'EMLOC_^ESCT1245504',
'R2_5471.',
'R2_54CZ.',
'SN_714256001',
'R2_56810',
'EMLOC_^ESCTUL462083',
'SN_168850000',
'R2_58D2.',
'EMLOC_^ESCT1248865',
'EMLOC_^ESCTMA461972',
'R3_54CZ.',
'R3_5471.',
'R2_3211.',
'R2_33BD.',
'R3_XaIxA',
'R2_516..',
'R3_XaIx9',
'R3_54C1.',
'SN_168732002',
'R3_54A1.',
'SN_168822000',
'SN_164846002',
'SN_390969003',
'R2_5691.',
'R3_5351.',
'R2_8M7..',
'R3_5371.',
'R2_5211.',
'R2_5841.',
'R3_3211.',
'EMLOC_^ESCTDE771686',
'R3_XabiA',
'SN_401001008',
'R3_XaIRq',
'EMLOC_^ESCTIN461755',
'EMLOC_^ESCTEL458579'
); |
<gh_stars>1-10
SELECT "Droping existing path_zambia_etl database";
DROP DATABASE if exists path_zambia_etl;
SELECT "Recreate path_zambia_etl database";
CREATE DATABASE path_zambia_etl;
SELECT "Droping existing facility activity report etl table";
DROP TABLE if exists path_zambia_etl.facility_activity_report;
SELECT "Recreating facility activity etl table";
CREATE TABLE path_zambia_etl.facility_activity_report (
encounter_id INT(11) not null primary key,
zeir_id VARCHAR(50),
patient_id INT(11),
gender VARCHAR(50),
birthdate DATE,
location_id INT(11),
location_name VARCHAR(255),
encounter_date DATETIME,
provider_id INT(11),
provider_name VARCHAR(255),
child_register_card_no VARCHAR(255),
lt_12_months_male INT(11),
lt_12_months_female INT(11),
btwn_12_59_months_male INT(11),
btwn_12_59_months_female INT(11),
from_outside_catchment_area INT(11),
0_23_months_weighed INT(11),
24_59_months_weighed INT(11),
0_23_months_no_weight_gain INT(11),
24_59_months_no_weight_gain INT(11),
bcg_dose_lt_1yr INT(11),
opv_dose_0 INT(11),
opv_dose_1 INT(11),
opv_dose_2 INT(11),
opv_dose_3 INT(11),
opv_dose_4 INT(11),
pentavalent_dose_1 INT(11),
pentavalent_dose_2 INT(11),
pentavalent_dose_3 INT(11),
pcv_dose_1 INT(11),
pcv_dose_2 INT(11),
pcv_dose_3 INT(11),
rv_dose_1 INT(11),
rv_dose_2 INT(11),
measles_mr_dose_1 INT(11),
immunised_fully INT(11),
measles_mr_dose_2 INT(11)
);
SELECT "Created path_zambia_etl database and facility activity report table";
|
<reponame>nasa/MD
PROC $sc_$cpu_md_gencmds
;*******************************************************************************
; Test Name: MD_GenCmds
; Test Level: Build Verification
; Test Type: Functional
;
; Test Description
; The purpose of this test is to verify that the Memory Dwell (MD)
; general commands function properly. MD Initialization and the
; MD_NOOP and MD_Reset commands will be tested as well as invalid
; commands.
;
; Requirements Tested
; MD1000 Upon receipt of a No-Op command, MD shall increment the MD
; Valid Command Counter and generate an event message.
; MD1001 Upon receipt of a Reset command, MD shall reset the
; following housekeeping variables to a value of zero:
; a. MD Valid Command Counter
; b. MD Command Rejected Counter
; MD1002 For all MD commands, if the length contained in the message
; header is not equal to the expected length, MD shall reject
; the command and issue an event message.
; MD1003 If dwell table ID specified in any MD command exceeds the
; <PLATFORM_DEFINED> maximum number of allowable memory dwells,
; MD shall reject the command and issue an event message
; MD1004 If MD accepts any command as valid, MD shall execute the
; command, increment the MD Valid Command Counter and issue an
; event message
; MD1005 If MD rejects any command, MD shall abort the command
; execution, increment the MD Command Rejected Counter and
; issue an error event message
; MD1006 The MD application shall generate an error event message if
; symbol table operations are initiated but not supported in
; the current target environment.
; MD8000 MD shall generate a housekeeping message containing the
; following:
; a) Valid Command Counter
; b) Command Rejected Counter
; c) For each Dwell:
; 1. Enable/Disable Status
; 2. Number of Dwell Addresses
; 3. Dwell Rate
; 4. Number of Bytes
; 5. Current Dwell Packet Index
; 6. Current Entry in the Dwell Table
; 7. Current Countdown counter
; MD9000 Upon any Initialization of the MD Application (cFE Power
; On, cFE Processor Reset or MD Application Reset), MD shall
; initialize the following data to Zero
; a) Valid Command Counter
; b) Command Rejected Counter
; MD9001 Upon cFE Power-on Reset, MD shall initialize each Memory
; Dwell table status to DISABLED
; MD9002 Upon cFE Power-on Reset, MD shall initialize each Memory
; Dwell table to zero
;
;
; Prerequisite Conditions
; The CFS is up and running and ready to accept commands. The MD
; commands and TLM items exist in the GSE database. The display page
; for the MD Housekeeping exists. An MD test application exists
; which contains known data to dwell on, loads the initial dwell
; tables and sends wakeup calls to support testing of
; supercommutation.
;
; Assumptions and Constraints
; None
;
; Change History
; Date Name Description
; 05/20/08 <NAME> Original Procedure
; 12/04/09 <NAME> Turned logging off around code that did not
; provide any significant benefit of logging
; 04/28/11 <NAME> Added variables for the App and table names
; 06/12/17 <NAME> Updated to use CPU1 for commanding and added a
; hostCPU variable for the utility procs to connect
; to the proper host.
;
; Arguments
; None
;
; Procedures Called
; None
;
; Required Post-Test Analysis
; None
;**********************************************************************
;; Turn off logging for the includes
local logging = %liv (log_procedure)
%liv (log_procedure) = FALSE
#include "ut_statusdefs.h"
#include "ut_cfe_info.h"
#include "tst_md_events.h"
#include "cfe_evs_events.h"
#include "cfe_es_events.h"
#include "md_platform_cfg.h"
#include "md_events.h"
%liv (log_procedure) = logging
#define MD_1000 0
#define MD_1001 1
#define MD_1002 2
#define MD_1003 3
#define MD_1004 4
#define MD_1005 5
#define MD_1006 6
#define MD_8000 7
#define MD_9000 8
#define MD_9001 9
#define MD_9002 10
;**********************************************************************
; Define variables
;**********************************************************************
; GLOBAL Variables
global ut_req_array_size = 10
global ut_requirement[0 .. ut_req_array_size]
FOR i = 0 to ut_req_array_size DO
ut_requirement[i] = "U"
ENDDO
; LOCAL Variables
local cfe_requirements[0 .. ut_req_array_size] = ["MD_1000", "MD_1001", "MD_1002", "MD_1003", "MD_1004", "MD_1005", "MD_1006", "MD_8000", "MD_9000", "MD_9001", "MD_9002"]
local rawcmd
local stream1, dwell1, dwell2, dwell3, dwell4
local passed
local testdata_addr
local errcnt
local MDAppName = "MD"
local hostCPU = "$CPU"
write ";*********************************************************************"
write "; Step 1.0: Initialize the CPU for this test. "
write ";*********************************************************************"
write "; Command a Power-On Reset. "
write ";********************************************************************"
/$SC_$CPU_ES_POWERONRESET
wait 10
close_data_center
wait 60
cfe_startup {hostCPU}
wait 5
write ";*********************************************************************"
write "; Step 1.1: Start the Memory Dwell Test (TST_MD) Application and "
write "; add any required subscriptions. "
write ";********************************************************************"
ut_setupevents "$SC", "$CPU", "CFE_ES", CFE_ES_START_INF_EID, "INFO", 1
ut_setupevents "$SC", "$CPU", "TST_MD", TST_MD_INIT_INF_EID, "INFO", 2
s load_start_app ("TST_MD",hostCPU,"TST_MD_AppMain")
; Wait for app startup events
ut_tlmwait $SC_$CPU_find_event[2].num_found_messages, 1
IF (UT_TW_Status = UT_Success) THEN
if ($SC_$CPU_find_event[1].num_found_messages = 1) then
write "<*> Passed - TST_MD Application Started"
else
write "<!> Failed - CFE_ES start Event Message for MD not received."
endif
else
write "<!> Failed - TST_MD Application start Event Message not received."
endif
;; Need to set the stream based upon the cpu being used
;; CPU1 is the default
stream1 = x'92D'
write "Sending command to add subscription for TST_MD HK packet."
/$SC_$CPU_TO_ADDPACKET Stream=stream1 Pkt_Size=x'0' Priority=x'0' Reliability=x'1' Buflimit=x'4'
wait 2
write "Opening TST MD HK Page."
page $SC_$CPU_TST_MD_HK
wait 5
; get the address of the test data area
testdata_addr = $SC_$CPU_TST_MD_TSTDATAADR
write ";*********************************************************************"
write "; Step 1.2: Start the Memory Dwell (MD) Application and "
write "; add any required subscriptions. "
write ";********************************************************************"
ut_setupevents "$SC", "$CPU", "CFE_ES", CFE_ES_START_INF_EID, "INFO", 1
ut_setupevents "$SC", "$CPU", {MDAppName}, MD_INIT_INF_EID, "INFO", 2
s load_start_app (MDAppName,hostCPU,"MD_AppMain")
; Wait for app startup events
ut_tlmwait $SC_$CPU_find_event[2].num_found_messages, 1
IF (UT_TW_Status = UT_Success) THEN
if ($SC_$CPU_find_event[1].num_found_messages = 1) then
write "<*> Passed - MD Application Started"
else
write "<!> Failed - CFE_ES start Event Message for MD not received."
endif
else
write "<!> Failed - MD Application start Event Message not received."
endif
local hkPktId
;;; Need to set the stream based upon the cpu being used
;;; CPU1 is the default
stream1 = x'890'
hkPktId = "p090"
dwell1 = x'891'
dwell2 = x'892'
dwell3 = x'893'
dwell4 = x'894'
write "Sending commands to add subscriptions for MD HK and dwell packets."
/$SC_$CPU_TO_ADDPACKET Stream=stream1 Pkt_Size=x'0' Priority=x'0' Reliability=x'1' Buflimit=x'4'
/$SC_$CPU_TO_ADDPACKET Stream=dwell1 Pkt_Size=x'0' Priority=x'0' Reliability=x'1' Buflimit=x'4'
/$SC_$CPU_TO_ADDPACKET Stream=dwell2 Pkt_Size=x'0' Priority=x'0' Reliability=x'1' Buflimit=x'4'
wait 5
/$SC_$CPU_TO_ADDPACKET Stream=dwell3 Pkt_Size=x'0' Priority=x'0' Reliability=x'1' Buflimit=x'4'
/$SC_$CPU_TO_ADDPACKET Stream=dwell4 Pkt_Size=x'0' Priority=x'0' Reliability=x'1' Buflimit=x'4'
wait 10
write "Opening MD HK Page."
page $SC_$CPU_MD_HK
; write "Opening MD Dwell Pages"
page $SC_$CPU_MD_DWELL_PKT1
page $SC_$CPU_MD_DWELL_PKT2
page $SC_$CPU_MD_DWELL_PKT3
page $SC_$CPU_MD_DWELL_PKT4
write ";*********************************************************************"
write "; Step 1.3: Enable DEBUG Event Messages "
write ";*********************************************************************"
local cmdCtr = $SC_$CPU_EVS_CMDPC + 1
;; Enable DEBUG events for the MD and CFE_TBL applications ONLY
/$SC_$CPU_EVS_EnaAppEVTType Application=MDAppName DEBUG
ut_tlmwait $SC_$CPU_EVS_CMDPC, {cmdCtr}
if (UT_TW_Status = UT_Success) then
write "<*> Passed - Enable Debug events command sent properly."
else
write "<!> Failed - Enable Debug events command."
endif
write ";*********************************************************************"
write "; Step 1.4: Verify that the MD Housekeeping packet is being generated"
write "; and telemetry items are initialized to zero (0). "
write ";*********************************************************************"
;; Verify the HK Packet is getting generated by waiting for the
;; sequencecount to increment
local seqTlmItem = hkPktId & "scnt"
local currSCnt = {seqTlmItem}
local expectedSCnt = currScnt + 2
ut_tlmwait {seqTlmItem}, {expectedSCnt}
if (UT_TW_Status = UT_Success) then
write "<*> Passed (8000) - Housekeeping packet is being generated."
ut_setrequirements MD_8000, "P"
else
write "<!> Failed (8000) - Housekeeping packet sequence count did not increment. Housekeeping packet is not being recieved."
ut_setrequirements MD_8000, "F"
endif
;; Check the HK tlm items to see if they are 0 or NULL
if ($SC_$CPU_MD_CMDPC = 0) AND ($SC_$CPU_MD_CMDEC = 0) THEN
write "<*> Passed (9000) - Housekeeping telemetry initialized properly."
ut_setrequirements MD_9000, "P"
else
write "<!> Failed (9000) - Housekeeping telemetry NOT initialized at startup."
write " CMDPC = ",$SC_$CPU_MD_CMDPC
write " CMDEC = ",$SC_$CPU_MD_CMDEC
ut_setrequirements MD_9000, "F"
endif
write ";*********************************************************************"
write "; Step 1.5: Verify that each MD table is disabled. "
write ";*********************************************************************"
if ($SC_$CPU_MD_EnableMask = 0) THEN
write "<*> Passed (9001) - Enable Mask initialized properly."
ut_setrequirements MD_9001, "P"
else
write "<!> Failed (9001) - Enable Mask was NOT initialized at startup."
write " EnableMask = ",$SC_$CPU_MD_EnableMask
ut_setrequirements MD_9001, "F"
endif
wait 5
write ";*********************************************************************"
write "; Step 1.6: Verify that each MD table is initialized to 0. "
write ";*********************************************************************"
passed = 1
FOR i = 1 to MD_NUM_DWELL_TABLES DO
if ($SC_$CPU_MD_AddrCnt[i] != 0) THEN
passed = 0
write "$SC_$CPU_MD_AddrCnt[", i, "] = ", $SC_$CPU_MD_AddrCnt[i]
endif
if ($SC_$CPU_MD_Rate[i] != 0) THEN
passed = 0
write "$SC_$CPU_MD_Rate[", i, "] = ", $SC_$CPU_MD_Rate[i]
endif
if ($SC_$CPU_MD_DataSize[i] != 0) THEN
passed = 0
write "$SC_$CPU_MD_DataSize[", i, "] = ", $SC_$CPU_MD_DataSize[i]
endif
if ($SC_$CPU_MD_DwPktOffset[i] != 0) THEN
passed = 0
write "$SC_$CPU_MD_DwPktOffset[", i, "] = ", $SC_$CPU_MD_DwPktOffset[i]
endif
if ($SC_$CPU_MD_DwTblEntry[i] != 0) THEN
passed = 0
write "$SC_$CPU_MD_DwTblEntry[", i, "] = ", $SC_$CPU_MD_DwTblEntry[i]
endif
ENDDO
if (passed = 1) THEN
write "<*> Passed (9002) - Memory Dwell tables initialized properly."
ut_setrequirements MD_9002, "P"
else
write "<!> Failed (9002) - Memory Dwell tables NOT initialized at startup."
ut_setrequirements MD_9002, "F"
endif
wait 5
write ";*********************************************************************"
write "; Step 2.0: Command Testing "
write ";*********************************************************************"
write "; Step 2.1: Send a NO-OP command. "
write ";*********************************************************************"
ut_setupevents "$SC", "$CPU", {MDAppName}, MD_NOOP_INF_EID, "INFO", 1
ut_sendcmd "$SC_$CPU_MD_NOOP"
if (UT_SC_Status = UT_SC_Success) then
write "<*> Passed (1000;1004;8000) - NOOP command sent properly."
ut_setrequirements MD_1000, "P"
ut_setrequirements MD_1004, "P"
ut_setrequirements MD_8000, "P"
else
write "<!> Failed (1000;1004;8000) - NOOP command not sent properly (", UT_SC_Status, ")."
ut_setrequirements MD_1000, "F"
ut_setrequirements MD_1004, "F"
ut_setrequirements MD_8000, "F"
endif
if ($SC_$CPU_find_event[1].num_found_messages = 1) THEN
write "<*> Passed (1000;1004) - Event message ",$SC_$CPU_find_event[1].eventid, " received"
ut_setrequirements MD_1000, "P"
ut_setrequirements MD_1004, "P"
else
write "<!> Failed (1000;1004) - Event message ",$SC_$CPU_evs_eventid," received. Expected Event message ", MD_NOOP_INF_EID, "."
ut_setrequirements MD_1000, "F"
ut_setrequirements MD_1004, "F"
endif
wait 5
write ";*********************************************************************"
write "; Step 2.2: Send a No-Op command with an invalid command length."
write ";*********************************************************************"
ut_setupevents "$SC", "$CPU", {MDAppName}, MD_CMD_LEN_ERR_EID, "ERROR", 1
errcnt = $SC_$CPU_MD_CMDEC + 1
rawcmd = ""
;;; CPU1 is the default
rawcmd = "1890C000000200A8"
ut_sendrawcmd "$SC_$CPU_MD", (rawcmd)
ut_tlmwait $SC_$CPU_MD_CMDEC, {errcnt}
if (UT_TW_Status = UT_Success) then
write "<*> Passed (1002;1005;8000) - Command Rejected Counter incremented."
ut_setrequirements MD_1002, "P"
ut_setrequirements MD_1005, "P"
ut_setrequirements MD_8000, "P"
else
write "<!> Failed (1002;1005;8000) - Command Rejected Counter did not increment as expected."
ut_setrequirements MD_1002, "F"
ut_setrequirements MD_1005, "F"
ut_setrequirements MD_8000, "F"
endif
if ($SC_$CPU_find_event[1].num_found_messages = 1) THEN
write "<*> Passed (1002;1005) - Event message ",$SC_$CPU_find_event[1].eventid, " received"
ut_setrequirements MD_1002, "P"
ut_setrequirements MD_1005, "P"
else
write "<!> Failed (1002;1005) - Event message ",$SC_$CPU_evs_eventid," received. Expected Event message ", MD_CMD_LEN_ERR_EID, "."
ut_setrequirements MD_1002, "F"
ut_setrequirements MD_1005, "F"
endif
wait 5
write ";*********************************************************************"
write "; Step 2.3: Send a Start Dwell command with an invalid command length."
write ";*********************************************************************"
ut_setupevents "$SC", "$CPU", {MDAppName}, MD_CMD_LEN_ERR_EID, "ERROR", 1
errcnt = $SC_$CPU_MD_CMDEC + 1
rawcmd = ""
;;; CPU1 is the default
rawcmd = "1890C000000402A80000"
ut_sendrawcmd "$SC_$CPU_MD", (rawcmd)
ut_tlmwait $SC_$CPU_MD_CMDEC, {errcnt}
if (UT_TW_Status = UT_Success) then
write "<*> Passed (1002;1005;8000) - Command Rejected Counter incremented."
ut_setrequirements MD_1002, "P"
ut_setrequirements MD_1005, "P"
ut_setrequirements MD_8000, "P"
else
write "<!> Failed (1002;1005;8000) - Command Rejected Counter did not increment as expected."
ut_setrequirements MD_1002, "F"
ut_setrequirements MD_1005, "F"
ut_setrequirements MD_8000, "F"
endif
if ($SC_$CPU_find_event[1].num_found_messages = 1) THEN
write "<*> Passed (1002;1005) - Event message ",$SC_$CPU_find_event[1].eventid, " received"
ut_setrequirements MD_1002, "P"
ut_setrequirements MD_1005, "P"
else
write "<!> Failed (1002;1005) - Event message ",$SC_$CPU_evs_eventid," received. Expected Event message ", MD_CMD_LEN_ERR_EID, "."
ut_setrequirements MD_1002, "F"
ut_setrequirements MD_1005, "F"
endif
wait 5
write ";*********************************************************************"
write "; Step 2.4: Send a Stop Dwell command with an invalid command length."
write ";*********************************************************************"
ut_setupevents "$SC", "$CPU", {MDAppName}, MD_CMD_LEN_ERR_EID, "ERROR", 1
errcnt = $SC_$CPU_MD_CMDEC + 1
rawcmd = ""
;;; CPU1 is the default
rawcmd = "1890C000000403A80000"
ut_sendrawcmd "$SC_$CPU_MD", (rawcmd)
ut_tlmwait $SC_$CPU_MD_CMDEC, {errcnt}
if (UT_TW_Status = UT_Success) then
write "<*> Passed (1002;1005;8000) - Command Rejected Counter incremented."
ut_setrequirements MD_1002, "P"
ut_setrequirements MD_1005, "P"
ut_setrequirements MD_8000, "P"
else
write "<!> Failed (1002;1005;8000) - Command Rejected Counter did not increment as expected."
ut_setrequirements MD_1002, "F"
ut_setrequirements MD_1005, "F"
ut_setrequirements MD_8000, "F"
endif
if ($SC_$CPU_find_event[1].num_found_messages = 1) THEN
write "<*> Passed (1002;1005) - Event message ",$SC_$CPU_find_event[1].eventid, " received"
ut_setrequirements MD_1002, "P"
ut_setrequirements MD_1005, "P"
else
write "<!> Failed (1002;1005) - Event message ",$SC_$CPU_evs_eventid," received. Expected Event message ", MD_CMD_LEN_ERR_EID, "."
ut_setrequirements MD_1002, "F"
ut_setrequirements MD_1005, "F"
endif
wait 5
write ";*********************************************************************"
write "; Step 2.5: Send a Jam Dwell command with an invalid command length."
write ";*********************************************************************"
ut_setupevents "$SC", "$CPU", {MDAppName}, MD_CMD_LEN_ERR_EID, "ERROR", 1
errcnt = $SC_$CPU_MD_CMDEC + 1
rawcmd = ""
;;; CPU1 is the default
rawcmd = "1890C000005F04A800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
ut_sendrawcmd "$SC_$CPU_MD", (rawcmd)
ut_tlmwait $SC_$CPU_MD_CMDEC, {errcnt}
if (UT_TW_Status = UT_Success) then
write "<*> Passed (1002;1005;8000) - Command Rejected Counter incremented."
ut_setrequirements MD_1002, "P"
ut_setrequirements MD_1005, "P"
ut_setrequirements MD_8000, "P"
else
write "<!> Failed (1002;1005;8000) - Command Rejected Counter did not increment as expected."
ut_setrequirements MD_1002, "F"
ut_setrequirements MD_1005, "F"
ut_setrequirements MD_8000, "F"
endif
if ($SC_$CPU_find_event[1].num_found_messages = 1) THEN
write "<*> Passed (1002;1005) - Event message ",$SC_$CPU_find_event[1].eventid, " received"
ut_setrequirements MD_1002, "P"
ut_setrequirements MD_1005, "P"
else
write "<!> Failed (1002;1005) - Event message ",$SC_$CPU_evs_eventid," received. Expected Event message ", MD_CMD_LEN_ERR_EID, "."
ut_setrequirements MD_1002, "F"
ut_setrequirements MD_1005, "F"
endif
wait 5
write ";*********************************************************************"
write "; Step 2.6: Send a Reset command. "
write ";*********************************************************************"
;; Check that the counters are not 0
if ($SC_$CPU_MD_CMDPC = 0) then
;; Send a NOOP command
/$SC_$CPU_MD_NOOP
wait 5
endif
if ($SC_$CPU_MD_CMDEC = 0) then
/raw {rawcmd}
wait 5
endif
;; Setup for the expected event
ut_setupevents "$SC", "$CPU", {MDAppName}, MD_RESET_CNTRS_DBG_EID, "DEBUG", 1
/$SC_$CPU_MD_RESETCTRS
wait 5
ut_tlmwait $SC_$CPU_MD_CMDPC, 0
if (UT_TW_Status = UT_Success) then
write "<*> Passed (1001;1004;8000) - Valid Command Counter was reset."
ut_setrequirements MD_1001, "P"
ut_setrequirements MD_1004, "P"
ut_setrequirements MD_8000, "P"
else
write "<!> Failed (1001;1004;8000) - Valid Command Counter was NOT reset (",ut_tw_status,")."
ut_setrequirements MD_1001, "F"
ut_setrequirements MD_1004, "F"
ut_setrequirements MD_8000, "F"
endif
ut_tlmwait $SC_$CPU_MD_CMDEC, 0
if (UT_TW_Status = UT_Success) then
write "<*> Passed (1001;8000) - Command Rejected Counter was reset."
ut_setrequirements MD_1001, "P"
ut_setrequirements MD_8000, "P"
else
write "<!> Failed (1001;8000) - Command Rejected Counter was NOT reset (",ut_tw_status,")."
ut_setrequirements MD_1001, "F"
ut_setrequirements MD_8000, "F"
endif
if ($SC_$CPU_find_event[1].num_found_messages = 1) THEN
write "<*> Passed (1001) - Event message ",$SC_$CPU_find_event[1].eventid, " received"
ut_setrequirements MD_1001, "P"
else
write "<!> Failed (1001) - Event message ",$SC_$CPU_evs_eventid," received. Expected Event message ",MD_RESET_CNTRS_DBG_EID, "."
ut_setrequirements MD_1001, "F"
endif
wait 5
write ";*********************************************************************"
write "; Step 2.7: Send a ResetCtrs command with an invalid command length."
write ";*********************************************************************"
ut_setupevents "$SC", "$CPU", {MDAppName}, MD_CMD_LEN_ERR_EID, "ERROR", 1
errcnt = $SC_$CPU_MD_CMDEC + 1
rawcmd = ""
;;; CPU1 is the default
rawcmd = "1890C000000401AD"
ut_sendrawcmd "$SC_$CPU_MD", (rawcmd)
ut_tlmwait $SC_$CPU_MD_CMDEC, {errcnt}
if (UT_TW_Status = UT_Success) then
write "<*> Passed (1002;1005;8000) - Command Rejected Counter incremented."
ut_setrequirements MD_1002, "P"
ut_setrequirements MD_1005, "P"
ut_setrequirements MD_8000, "P"
else
write "<!> Failed (1002;1005;8000) - Command Rejected Counter did not increment as expected."
ut_setrequirements MD_1002, "F"
ut_setrequirements MD_1005, "F"
ut_setrequirements MD_8000, "F"
endif
if ($SC_$CPU_find_event[1].num_found_messages = 1) THEN
write "<*> Passed (1005) - Event message ",$SC_$CPU_find_event[1].eventid, " received"
ut_setrequirements MD_1005, "P"
else
write "<!> Failed (1005) - Event message ",$SC_$CPU_evs_eventid," received. Expected Event message ",MD_CMD_LEN_ERR_EID, "."
ut_setrequirements MD_1005, "F"
endif
wait 5
write ";*********************************************************************"
write "; Step 2.8: Send an invalid MD command."
write ";*********************************************************************"
ut_setupevents "$SC", "$CPU", {MDAppName}, MD_CC_NOT_IN_TBL_ERR_EID, "ERROR", 1
errcnt = $SC_$CPU_MD_CMDEC + 1
;;; CPU1 is the default
rawcmd = "1890C0000001aa"
ut_sendrawcmd "$SC_$CPU_MD", (rawcmd)
ut_tlmwait $SC_$CPU_MD_CMDEC, {errcnt}
if (UT_TW_Status = UT_Success) then
write "<*> Passed (1005;8000) - Command Rejected Counter incremented."
ut_setrequirements MD_1005, "P"
ut_setrequirements MD_8000, "P"
else
write "<!> Failed (1005;8000) - Command Rejected Counter did not increment as expected."
ut_setrequirements MD_1005, "F"
ut_setrequirements MD_8000, "F"
endif
if ($SC_$CPU_find_event[1].num_found_messages = 1) THEN
write "<*> Passed (1005) - Event message ",$SC_$CPU_find_event[1].eventid, " received"
ut_setrequirements MD_1005, "P"
else
write "<!> Failed (1005) - Event message ",$SC_$CPU_evs_eventid," received. Expected Event message ",MD_CC_NOT_IN_TBL_ERR_EID, "."
ut_setrequirements MD_1005, "F"
endif
wait 5
write ";*********************************************************************"
write "; Step 2.9: Send a Start Dwell command with a dwell mask containing"
write "; no valid dwell IDs."
write ";*********************************************************************"
ut_setupevents "$SC", "$CPU", {MDAppName}, MD_EMPTY_TBLMASK_ERR_EID, "ERROR", 1
errcnt = $SC_$CPU_MD_CMDEC + 1
/$SC_$CPU_MD_STARTDWELL TableMask=x'1000'
ut_tlmwait $SC_$CPU_MD_CMDEC, {errcnt}
if (UT_TW_Status = UT_Success) then
write "<*> Passed (1005;8000) - Command Rejected Counter incremented."
ut_setrequirements MD_1005, "P"
ut_setrequirements MD_8000, "P"
else
write "<!> Failed (1005;8000) - Command Rejected Counter did not increment as expected."
ut_setrequirements MD_1005, "F"
ut_setrequirements MD_8000, "F"
endif
if ($SC_$CPU_find_event[1].num_found_messages = 1) THEN
write "<*> Passed (1005) - Event message ",$SC_$CPU_find_event[1].eventid, " received"
ut_setrequirements MD_1005, "P"
else
write "<!> Failed (1005) - Event message ",$SC_$CPU_evs_eventid," received. Expected Event message ",MD_EMPTY_TBLMASK_ERR_EID, "."
ut_setrequirements MD_1005, "F"
endif
wait 5
write ";*********************************************************************"
write "; Step 2.10: Send a Stop Dwell command with a dwell mask containing"
write "; no valid dwell IDs."
write ";*********************************************************************"
ut_setupevents "$SC", "$CPU", {MDAppName}, MD_EMPTY_TBLMASK_ERR_EID, "ERROR", 1
errcnt = $SC_$CPU_MD_CMDEC + 1
/$SC_$CPU_MD_STOPDWELL TableMask=x'1000'
ut_tlmwait $SC_$CPU_MD_CMDEC, {errcnt}
if (UT_TW_Status = UT_Success) then
write "<*> Passed (1003;1005;8000) - Command Rejected Counter incremented."
ut_setrequirements MD_1003, "P"
ut_setrequirements MD_1005, "P"
ut_setrequirements MD_8000, "P"
else
write "<!> Failed (1003;1005;8000) - Command Rejected Counter did not increment as expected."
ut_setrequirements MD_1003, "F"
ut_setrequirements MD_1005, "F"
ut_setrequirements MD_8000, "F"
endif
if ($SC_$CPU_find_event[1].num_found_messages = 1) THEN
write "<*> Passed (1003) - Event message ",$SC_$CPU_find_event[1].eventid, " received"
ut_setrequirements MD_1003, "P"
else
write "<!> Failed (1003) - Event message ",$SC_$CPU_evs_eventid," received. Expected Event message ",MD_EMPTY_TBLMASK_ERR_EID, "."
ut_setrequirements MD_1003, "F"
endif
wait 5
write ";*********************************************************************"
write "; Step 2.11: Send a Jam Dwell command specifying an invalid symbol and offset."
write ";*********************************************************************"
ut_setupevents "$SC","$CPU",{MDAppName},MD_CANT_RESOLVE_JAM_ADDR_ERR_EID,"ERROR", 1
errcnt = $SC_$CPU_MD_CMDEC + 1
/$SC_$CPU_MD_JAMDWELL TableId=1 EntryId=1 FieldLength=1 DwellDelay=1 Offset=x'FF' SymName="BogusSymbolMDGC"
ut_tlmwait $SC_$CPU_MD_CMDEC, {errcnt}
if (UT_TW_Status = UT_Success) then
write "<*> Passed (1005;1006;8000) - Command Rejected Counter incremented."
ut_setrequirements MD_1005, "P"
ut_setrequirements MD_1006, "P"
ut_setrequirements MD_8000, "P"
else
write "<!> Failed (1005;1006;8000) - Command Rejected Counter did not increment as expected."
ut_setrequirements MD_1005, "F"
ut_setrequirements MD_1006, "F"
ut_setrequirements MD_8000, "F"
endif
if ($SC_$CPU_find_event[1].num_found_messages = 1) THEN
write "<*> Passed (1006) - Event message ",$SC_$CPU_find_event[1].eventid, " received"
ut_setrequirements MD_1006, "P"
else
write "<!> Failed (1006) - Event message ",$SC_$CPU_evs_eventid," received. Expected Event message ",MD_CANT_RESOLVE_JAM_ADDR_ERR_EID, "."
ut_setrequirements MD_1006, "F"
endif
wait 5
write ";*********************************************************************"
write "; Step 3.0: Perform a Power-on Reset to clean-up from this test."
write ";*********************************************************************"
/$SC_$CPU_ES_POWERONRESET
wait 10
close_data_center
wait 60
cfe_startup {hostCPU}
wait 5
write "**** Requirements Status Reporting"
write "--------------------------"
write " Requirement(s) Report"
write "--------------------------"
FOR i = 0 to ut_req_array_size DO
ut_pfindicate {cfe_requirements[i]} {ut_requirement[i]}
ENDDO
drop ut_requirement ; needed to clear global variables
drop ut_req_array_size ; needed to clear global variables
write "Closing MD HK Page."
clear $SC_$CPU_MD_HK
write "Closing TST MD HK Page."
clear $SC_$CPU_TST_MD_HK
write ";*********************************************************************"
write "; End procedure $SC_$CPU_md_GenCmds "
write ";*********************************************************************"
ENDPROC
|
IF OBJECT_ID('tSQLt.Private_DisallowOverwritingNonTestSchema') IS NOT NULL DROP PROCEDURE tSQLt.Private_DisallowOverwritingNonTestSchema;
GO
---Build+
CREATE PROCEDURE tSQLt.Private_DisallowOverwritingNonTestSchema
@ClassName NVARCHAR(MAX)
AS
BEGIN
IF SCHEMA_ID(@ClassName) IS NOT NULL AND tSQLt.Private_IsTestClass(@ClassName) = 0
BEGIN
RAISERROR('Attempted to execute tSQLt.NewTestClass on ''%s'' which is an existing schema but not a test class', 16, 10, @ClassName);
END
END;
---Build-
GO
|
<filename>components/automate-workflow-server/schema/deploy/hash_type.sql<gh_stars>100-1000
-- Deploy hash_type
BEGIN;
CREATE TYPE password_hash_type AS ENUM ('bcrypt');
COMMIT;
|
<reponame>libantema/yubikey-val
-- I created a new sql file because oracle does not allow boolean type
-- so I used the type NUMBER(1) which is pretty similar
CREATE TABLE clients (
id INT NOT NULL,
active NUMBER(1) DEFAULT 1,
created INT NOT NULL,
secret VARCHAR(60) DEFAULT '',
email VARCHAR(255),
notes VARCHAR(100) DEFAULT '',
otp VARCHAR(100) DEFAULT '',
PRIMARY KEY (id)
);
CREATE TABLE yubikeys (
active NUMBER(1) DEFAULT 1,
created INT NOT NULL,
modified INT NOT NULL,
yk_publicname VARCHAR(16) NOT NULL,
yk_counter INT NOT NULL,
yk_use INT NOT NULL,
yk_low INT NOT NULL,
yk_high INT NOT NULL,
nonce VARCHAR(40) DEFAULT '',
notes VARCHAR(100) DEFAULT '',
PRIMARY KEY (yk_publicname)
);
CREATE TABLE queue (
queued INT DEFAULT NULL,
modified INT DEFAULT NULL,
server_nonce VARCHAR(32) NOT NULL,
otp VARCHAR(100) NOT NULL,
server VARCHAR(100) NOT NULL,
info VARCHAR(256) NOT NULL
);
|
--
-- Updates to F2 to make it consistent with GMOS
--
-- Remove the "NoDisperser" option.
DELETE FROM e_f2_disperser
WHERE id = 'NoDisperser';
-- The disperser wavelength should be precise μm and not nullable.
ALTER TABLE e_f2_disperser
ALTER COLUMN wavelength TYPE NUMERIC(4,3),
ALTER COLUMN wavelength SET NOT NULL;
COMMENT ON COLUMN e_f2_disperser.wavelength IS 'μm';
-- F2 dynamic config may or may not have a disperser.
ALTER TABLE step_f2
ALTER COLUMN disperser DROP NOT NULL;
-- Make the FPU table name match the corresponding gmos versions.
ALTER TABLE e_f2_fpunit RENAME TO e_f2_fpu;
-- Remove the None and Custom "FPUs".
DELETE FROM e_f2_fpu
WHERE id = 'None' OR id = 'Custom';
COMMENT ON COLUMN e_f2_fpu.slit_width IS 'pixels';
-- The builtin FPU is now optional and the choice to use a custom mask may
-- be registered. If a builtin is set, custom_mask must be false.
ALTER TABLE step_f2
ALTER COLUMN fpu DROP NOT NULL,
ADD COLUMN custom_mask boolean NOT NULL,
ADD CONSTRAINT f2_fpu_check CHECK ((fpu IS NULL) OR (custom_mask = 'f'));
-- The filter wavelength should be precise μm.
ALTER TABLE e_f2_filter
ALTER COLUMN wavelength TYPE NUMERIC(4,3);
COMMENT ON COLUMN e_f2_filter.wavelength IS 'μm';
|
<gh_stars>0
-- phpMyAdmin SQL Dump
-- version 4.7.9
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Dec 18, 2019 at 03:46 PM
-- Server version: 10.1.31-MariaDB
-- PHP Version: 7.2.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: `many-to-many`
--
-- --------------------------------------------------------
--
-- Table structure for table `customers`
--
CREATE TABLE `customers` (
`id` bigint(20) UNSIGNED NOT NULL,
`first_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`last_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` 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 `customers`
--
INSERT INTO `customers` (`id`, `first_name`, `last_name`, `email`, `created_at`, `updated_at`) VALUES
(1, 'Ferris', 'Cameran', '<EMAIL>', '2019-12-18 06:44:53', '2019-12-18 06:44:53'),
(2, 'Kieran', 'Marah', '<EMAIL>', '2019-12-18 06:46:51', '2019-12-18 06:46:51'),
(3, 'Mariam', 'Louis', '<EMAIL>', '2019-12-18 06:56:49', '2019-12-18 06:56:49');
-- --------------------------------------------------------
--
-- Table structure for table `customer_product`
--
CREATE TABLE `customer_product` (
`customer_id` bigint(20) UNSIGNED NOT NULL,
`product_id` bigint(20) UNSIGNED NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `customer_product`
--
INSERT INTO `customer_product` (`customer_id`, `product_id`) VALUES
(3, 3),
(1, 1),
(1, 7),
(1, 9);
-- --------------------------------------------------------
--
-- 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
(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, '2019_12_18_091543_create_products_table', 1),
(5, '2019_12_18_091630_create_customers_table', 1),
(6, '2019_12_18_093534_create_customer_product_table', 1);
-- --------------------------------------------------------
--
-- 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;
-- --------------------------------------------------------
--
-- Table structure for table `products`
--
CREATE TABLE `products` (
`id` bigint(20) UNSIGNED NOT NULL,
`product_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`product_price` 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 `products`
--
INSERT INTO `products` (`id`, `product_name`, `product_price`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', '682', '2019-12-18 04:03:24', '2019-12-18 04:03:24'),
(3, '<NAME>', '87', '2019-12-18 04:06:13', '2019-12-18 04:06:13'),
(5, '<NAME>', '35', '2019-12-18 06:24:12', '2019-12-18 06:24:12'),
(6, 'Noelani England', '796', '2019-12-18 06:24:50', '2019-12-18 06:24:50'),
(7, '<NAME>', '685', '2019-12-18 06:25:04', '2019-12-18 06:25:04'),
(8, '<NAME>', '967', '2019-12-18 06:53:13', '2019-12-18 06:53:13'),
(9, '<NAME>', '449', '2019-12-18 06:53:32', '2019-12-18 06:53:32');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `customers`
--
ALTER TABLE `customers`
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 `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 `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `customers`
--
ALTER TABLE `customers`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- 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=7;
--
-- AUTO_INCREMENT for table `products`
--
ALTER TABLE `products`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<reponame>everstake/teztracker
CREATE INDEX IF NOT EXISTS ix_operations_public_key_not_null
ON tezos.operations USING btree
(public_key COLLATE pg_catalog."default", kind COLLATE pg_catalog."default")
WHERE public_key IS NOT NULL; |
-- Store a PlayerBlip in the database
INSERT INTO "Blip"."PlayerBlip" (
"timestamp",
"server_id",
"continent_id",
"player_id",
"base_id"
)
VALUES (
%s, %s, %s, %s, %s
); |
<reponame>compositactic/CTLiteDemo<gh_stars>0
INSERT INTO Comment (PostId, Text) VALUES ((SELECT ID FROM Post WHERE Title = 'Anim id est laborum'), 'feugiat euismod lacinia at')
INSERT INTO Comment (PostId, Text) VALUES ((SELECT ID FROM Post WHERE Title = 'Anim id est laborum'), 'quam elementum')
|
CREATE TABLE public.departments
(
id SERIAL PRIMARY KEY,
name VARCHAR(20) NOT NULL
);
CREATE TABLE public.students
(
id SERIAL PRIMARY KEY,
department_id INT NOT NULL REFERENCES departments(id),
first_name VARCHAR(20) NOT NULL,
last_name VARCHAR(20) NOT NULL
); |
-- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 23-11-2020 a las 23:33:37
-- Versión del servidor: 10.4.6-MariaDB
-- Versión de PHP: 7.1.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 */;
--
-- Base de datos: `animal`
--
-- --------------------------------------------------------
--
-- Estructura de tabla para la tabla `registry`
--
CREATE TABLE `registry` (
`id` int(20) NOT NULL,
`name` varchar(20) NOT NULL,
`age` varchar(100) NOT NULL,
`type` varchar(20) NOT NULL,
`description` varchar(100) NOT NULL,
`food` varchar(50) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Volcado de datos para la tabla `registry`
--
INSERT INTO `registry` (`id`, `name`, `age`, `type`, `description`, `food`) VALUES
(2, 'Sin nombre', '3 años aprox', 'Silvestre', 'Tucán herido de ala izquierda', 'Semillas'),
(3, 'Esperanza', '6 meses', 'Doméstico', 'Gata en estado de embarazo color cafe', 'Cuido y comida de sal'),
(4, 'Gonta', '5 años', 'Doméstico', 'Perra Negra con blanco de estatura mediana', 'Cuido'),
(5, 'Sin nombre', '2 años aprox', 'Silvestre', 'Armadillo pequeño', 'Semillas'),
(6, 'Kira', '8 años', 'Doméstico', 'Gato atigrado, sin cola, talla grande', 'Cuido'),
(7, 'Canela', '5 años', 'Doméstico', 'Perra café, sin un ojo, talla mediana', 'Cuido y comida de sal'),
(8, 'Maporita', '6 años', 'Doméstico', 'Perra color ocre, talla mediana, contextura gruesa', 'Cuido y comida de sal'),
(9, 'Pepe', '4 años', 'Silvestre', 'Mono Tití mediano, altos niveles de desnutrición.', 'Frutas y comida de sal'),
(10, 'Sin nombre', 'indefinida', 'Silvestre', 'Mapache pequeño, herido de una pata', 'Frutas, semillas y carne'),
(11, 'Tiger', '2 años', 'Doméstico', 'Gato amarillo, talla grande', 'Cuido');
--
-- Índices para tablas volcadas
--
--
-- Indices de la tabla `registry`
--
ALTER TABLE `registry`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT de las tablas volcadas
--
--
-- AUTO_INCREMENT de la tabla `registry`
--
ALTER TABLE `registry`
MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12;
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 SCHEMA IF EXISTS `bike_db`;
CREATE SCHEMA IF NOT EXISTS `bike_db`
CHARACTER SET `utf8`;
USE `bike_db`;
CREATE TABLE `users` (
`id` INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
`login` VARCHAR(255),
`email` VARCHAR(255),
`password` VARCHAR(255),
`first_name` VARCHAR(255),
`last_name` VARCHAR(255),
`tel` VARCHAR(255),
`city` VARCHAR(255),
`country` VARCHAR(255),
`gender` VARCHAR(255),
`birth` DATE,
`role` INTEGER
);
CREATE TABLE `points` (
`id` INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
`num_point` VARCHAR(255),
`slots` INTEGER,
`free_bikes` INTEGER,
`longitude` DECIMAL (10,8),
`latitude` DECIMAL (10,8),
`address_mark` VARCHAR(255),
`active_status` INTEGER DEFAULT "1",
`description` VARCHAR(255)
);
CREATE TABLE `prices` (
`id` INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
`tarif` DECIMAL (10,2),
`description` VARCHAR(255)
);
CREATE TABLE `bikes` (
`id` INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
`vin` VARCHAR(255),
`description` VARCHAR(255),
`point_id` INTEGER,
`available_status` INTEGER,
`condit` VARCHAR(255),
`price_id` INTEGER,
CONSTRAINT `fk_bike_to_point` FOREIGN KEY (`point_id`) REFERENCES `points` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_bike_to_price` FOREIGN KEY (`price_id`) REFERENCES `prices` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE
);
CREATE TABLE `orders` (
`id` INTEGER NOT NULL PRIMARY KEY AUTO_INCREMENT,
`user_id` INTEGER,
`bike_id` INTEGER,
`start_point_id` INTEGER,
`start_time` DATETIME,
`finish_point_id` INTEGER,
`finish_time` DATETIME,
`total_cost` DECIMAL (10,2),
`status` VARCHAR(255),
`description` VARCHAR(255),
CONSTRAINT `fk_order_to_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_order_to_bike` FOREIGN KEY (`bike_id`) REFERENCES `bikes` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_start_order_to_point` FOREIGN KEY (`start_point_id`) REFERENCES `points` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT `fk_finish_order_to_point` FOREIGN KEY (`finish_point_id`) REFERENCES `points` (`id`)
ON DELETE CASCADE
ON UPDATE CASCADE
);
INSERT INTO `users` (`login`, `email`, `password`, `first_name`, `last_name`, `tel`, `city`, `country`, `gender`, `role`) VALUES ('admin', '<EMAIL>', 'admin', 'Admin', 'Adminovich', 'not_indicated', 'Minsk', 'Belarus', 'not_indicated', '1');
INSERT INTO `users` (`login`, `email`, `password`, `first_name`, `last_name`, `tel`, `city`, `country`, `gender`, `role`) VALUES ('u', '<EMAIL>', 'u', 'User', 'Userovich', 'not_indicated', 'Minsk', 'Belarus', 'not_indicated', '0');
INSERT INTO `points` (`num_point`, `slots`, `free_bikes`, `latitude`, `longitude`, `address_mark`) VALUES ('10', '5', '2', '53.9023', '27.5614', '34 Karlova av.');
INSERT INTO `points` (`num_point`, `slots`, `free_bikes`, `latitude`, `longitude`, `address_mark`) VALUES ('20', '5', '3', '53.9046', '27.5747', '80 Petrova st.');
INSERT INTO `points` (`num_point`, `slots`, `free_bikes`, `latitude`, `longitude`, `address_mark`) VALUES ('30', '5', '0', '53.8984', '27.5611', '37 Bondara av.');
INSERT INTO `points` (`num_point`, `slots`, `free_bikes`, `latitude`, `longitude`, `address_mark`) VALUES ('40', '5', '0', '53.9204', '27.6123', '76 Koltsova st.');
INSERT INTO `points` (`num_point`, `slots`, `free_bikes`, `latitude`, `longitude`, `address_mark`) VALUES ('50', '5', '0', '53.9366', '27.5701', '2 Ivanova av.');
INSERT INTO `points` (`num_point`, `slots`, `free_bikes`, `latitude`, `longitude`, `address_mark`) VALUES ('60', '5', '0', '53.8975', '27.6164', '45 Sidorova st.');
INSERT INTO `points` (`num_point`, `slots`, `free_bikes`, `latitude`, `longitude`, `address_mark`) VALUES ('70', '5', '0', '53.8846', '27.4939', '7 Dinova av.');
INSERT INTO `points` (`num_point`, `slots`, `free_bikes`, `latitude`, `longitude`, `address_mark`) VALUES ('80', '5', '0', '53.9360', '27.4338', '10 Nikolaeva st.');
INSERT INTO `points` (`num_point`, `slots`, `free_bikes`, `latitude`, `longitude`, `address_mark`) VALUES ('90', '5', '0', '53.9636', '27.5450', '175 Scorinov av.');
INSERT INTO `points` (`num_point`, `slots`, `free_bikes`, `latitude`, `longitude`, `address_mark`) VALUES ('95', '5', '0', '53.8531', '27.5778', '32 Malaya av.');
INSERT INTO `prices` (`tarif`, `description`) VALUES ('0.10', 'standard');
INSERT INTO `prices` (`tarif`, `description`) VALUES ('0.15', 'comfort');
INSERT INTO `prices` (`tarif`, `description`) VALUES ('0.20', 'sport');
INSERT INTO `bikes` (`vin`, `description`, `point_id`, `available_status`, `condit`, `price_id`) VALUES ('1001B', 'bikeStandard.jpg', '1', '1', 'good', '1');
INSERT INTO `bikes` (`vin`, `description`, `point_id`, `available_status`, `condit`, `price_id`) VALUES ('1002D', 'bikeStandard.jpg', '2', '1', 'good', '1');
INSERT INTO `bikes` (`vin`, `description`, `point_id`, `available_status`, `condit`, `price_id`) VALUES ('1003X', 'bikeComfort.jpg', '2', '1', 'good', '2');
INSERT INTO `bikes` (`vin`, `description`, `point_id`, `available_status`, `condit`, `price_id`) VALUES ('1004H', 'bikeSport.jpg', '1', '1', 'good', '3');
INSERT INTO `bikes` (`vin`, `description`, `point_id`, `available_status`, `condit`, `price_id`) VALUES ('1005M', 'bikeStandard.jpg', '2', '1', 'good', '1');
INSERT INTO `orders` (`user_id`, `bike_id`, `start_point_id`, `start_time`, `finish_point_id`, `finish_time`, `status`, `total_cost`) VALUES ('2', '1', '1', '2015-09-03 19:16:00', '2', '2015-09-03 20:16:00', 'complete', '6'); |
-- CreateTable
CREATE TABLE "Movie" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"title" TEXT NOT NULL,
"description" TEXT,
"stock" INTEGER NOT NULL,
"rentalPrice" INTEGER NOT NULL,
"salePrice" INTEGER NOT NULL,
"available" BOOLEAN NOT NULL,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);
-- CreateIndex
CREATE UNIQUE INDEX "Movie_id_key" ON "Movie"("id");
|
<reponame>ihewro/simple_weibo<filename>backend/src/main/resources/sql/comment.sql
create table comment
(
id int auto_increment,
content text,
userid int,
recordid int,
time long,
constraint comment_RECORD_INFO_ID_fk
foreign key (recordid) references RECORD_INFO,
constraint comment_USER_INFO__id
foreign key (userid) references USER_INFO
);
create unique index comment_id_uindex
on comment (id);
alter table comment
add constraint comment_pk
primary key (id);
|
<filename>database/src/main/resources/db/migration/V51__boforhold_fjerne_utenFnr.sql
update søknad set søknadinnhold = jsonb_set(søknadinnhold, '{boforhold, ektefellePartnerSamboer, fnr}', to_jsonb('16113113816'::text))
where søknadinnhold #>> '{boforhold, ektefellePartnerSamboer, type}' = 'UtenFnr';
update søknad set søknadinnhold = søknadinnhold #- '{boforhold, ektefellePartnerSamboer, type}';
update søknad set søknadinnhold = søknadinnhold #- '{boforhold, ektefellePartnerSamboer, navn}';
update søknad set søknadinnhold = søknadinnhold #- '{boforhold, ektefellePartnerSamboer, fødselsdato}'; |
-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 30, 2016 at 05:05 PM
-- Server version: 5.6.26
-- PHP Version: 5.6.12
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: `el`
--
-- --------------------------------------------------------
--
-- Table structure for table `academic_year`
--
CREATE TABLE IF NOT EXISTS `academic_year` (
`academic_id` int(11) NOT NULL,
`deleted` tinyint(4) NOT NULL DEFAULT '0',
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`academic_name` varchar(255) NOT NULL,
`default` tinyint(4) NOT NULL DEFAULT '0',
`published` tinyint(4) NOT NULL DEFAULT '1'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `answer`
--
CREATE TABLE IF NOT EXISTS `answer` (
`answer_id` int(11) NOT NULL,
`storage_answer_id` int(11) NOT NULL,
`correct_answer` tinyint(4) NOT NULL,
`topic_id` int(11) NOT NULL,
`storage_question_id` int(11) DEFAULT NULL,
`number` int(11) DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `block`
--
CREATE TABLE IF NOT EXISTS `block` (
`block_id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`published` tinyint(4) NOT NULL DEFAULT '1',
`deleted` tinyint(4) NOT NULL DEFAULT '0',
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `class`
--
CREATE TABLE IF NOT EXISTS `class` (
`class_id` int(11) NOT NULL,
`block_id` int(11) NOT NULL,
`class_name` varchar(255) NOT NULL,
`published` tinyint(4) NOT NULL DEFAULT '1',
`deleted` tinyint(4) NOT NULL DEFAULT '0',
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `exam`
--
CREATE TABLE IF NOT EXISTS `exam` (
`exam_id` int(11) NOT NULL,
`title` varchar(255) DEFAULT NULL,
`time` int(11) DEFAULT NULL COMMENT 'so phut',
`published` tinyint(4) DEFAULT '1',
`deleted` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `question`
--
CREATE TABLE IF NOT EXISTS `question` (
`storage_question_id` int(11) NOT NULL,
`topic_id` int(11) NOT NULL,
`mark` float NOT NULL DEFAULT '0',
`number` int(11) NOT NULL DEFAULT '0',
`correct` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `storage`
--
CREATE TABLE IF NOT EXISTS `storage` (
`storage_id` int(11) NOT NULL,
`title` varchar(255) NOT NULL,
`updated_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`subjects_id` int(11) DEFAULT '0',
`published` tinyint(4) NOT NULL DEFAULT '1',
`deleted` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `storage_answer`
--
CREATE TABLE IF NOT EXISTS `storage_answer` (
`storage_answer_id` int(11) NOT NULL,
`storage_question_id` int(11) NOT NULL,
`answer` text NOT NULL,
`correct_answer` tinyint(4) NOT NULL DEFAULT '0',
`hashkey` char(40) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `storage_question`
--
CREATE TABLE IF NOT EXISTS `storage_question` (
`storage_question_id` int(11) NOT NULL,
`question_name` text NOT NULL,
`select_any` tinyint(4) NOT NULL DEFAULT '1',
`hashkey` char(150) NOT NULL,
`updated_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`storage_id` int(11) DEFAULT NULL,
`published` tinyint(4) NOT NULL DEFAULT '1',
`deleted` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `student_answer`
--
CREATE TABLE IF NOT EXISTS `student_answer` (
`answer_student_id` int(11) NOT NULL,
`question_id` int(11) NOT NULL,
`topic_id` int(11) DEFAULT NULL,
`student_id` int(11) NOT NULL,
`answer` char(100) NOT NULL DEFAULT '' COMMENT 'cau tra loi cua hoc sinh',
`number_question` int(11) DEFAULT '0',
`student_mark_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `student_info`
--
CREATE TABLE IF NOT EXISTS `student_info` (
`student_id` int(11) NOT NULL,
`indentity_number` varchar(20) NOT NULL,
`class_id` int(11) NOT NULL,
`academic_id` int(11) NOT NULL,
`fullname` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) DEFAULT NULL,
`deleted` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `student_mark`
--
CREATE TABLE IF NOT EXISTS `student_mark` (
`id` int(11) NOT NULL,
`student_id` int(11) DEFAULT NULL,
`topic_id` int(11) DEFAULT NULL,
`score` double DEFAULT NULL,
`number_correct` int(11) DEFAULT NULL,
`is_mark` tinyint(4) DEFAULT '0',
`ip_address` varchar(20) NOT NULL,
`date` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `student_topic`
--
CREATE TABLE IF NOT EXISTS `student_topic` (
`id` int(11) NOT NULL,
`student_id` int(11) NOT NULL,
`topic_id` int(11) NOT NULL,
`started` tinyint(4) NOT NULL DEFAULT '0',
`finished` tinyint(4) NOT NULL DEFAULT '0',
`student_mark_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `subjects`
--
CREATE TABLE IF NOT EXISTS `subjects` (
`subjects_id` int(11) NOT NULL,
`subjects_name` varchar(255) NOT NULL,
`published` tinyint(4) NOT NULL DEFAULT '1',
`deleted` tinyint(4) NOT NULL DEFAULT '0',
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `topic`
--
CREATE TABLE IF NOT EXISTS `topic` (
`topic_id` int(11) NOT NULL,
`code` int(11) NOT NULL,
`topic_manage_id` int(11) DEFAULT NULL,
`deleted` tinyint(4) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `topic_book`
--
CREATE TABLE IF NOT EXISTS `topic_book` (
`book_id` int(11) NOT NULL,
`topic_manage_id` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `topic_files`
--
CREATE TABLE IF NOT EXISTS `topic_files` (
`id` int(11) NOT NULL,
`topic_manage_id` int(11) NOT NULL,
`folder_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`class_id` int(11) NOT NULL,
`dated` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
-- --------------------------------------------------------
--
-- Table structure for table `topic_manage`
--
CREATE TABLE IF NOT EXISTS `topic_manage` (
`topic_manage_id` int(11) NOT NULL,
`title` varchar(255) DEFAULT NULL,
`exam_id` int(11) NOT NULL,
`academic_id` int(11) NOT NULL,
`created_time` date NOT NULL,
`published` tinyint(4) NOT NULL DEFAULT '0',
`number_questions` int(11) DEFAULT NULL,
`status` enum('ACTIVE','DELETED') NOT NULL DEFAULT 'ACTIVE',
`review` enum('SHOW','HIDE') NOT NULL DEFAULT 'HIDE',
`flow` enum('NONE','START','END','') NOT NULL DEFAULT 'NONE',
`subjects_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE IF NOT EXISTS `users` (
`id` int(11) NOT NULL,
`fullname` varchar(255) NOT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(100) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
`subjects_id` int(11) DEFAULT '0',
`published` tinyint(4) NOT NULL DEFAULT '1',
`deleted` tinyint(4) NOT NULL DEFAULT '0',
`role` int(11) DEFAULT NULL,
`modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `fullname`, `username`, `password`, `email`, `subjects_id`, `published`, `deleted`, `role`, `modified`) VALUES
(1, '<NAME>', 'admin', '<PASSWORD>', '<EMAIL>', NULL, 1, 0, 1, '2015-11-23 15:15:27');
-- --------------------------------------------------------
--
-- Table structure for table `user_manage_class`
--
CREATE TABLE IF NOT EXISTS `user_manage_class` (
`id` int(11) NOT NULL,
`class_id` int(11) DEFAULT NULL,
`user_id` int(100) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `academic_year`
--
ALTER TABLE `academic_year`
ADD PRIMARY KEY (`academic_id`);
--
-- Indexes for table `answer`
--
ALTER TABLE `answer`
ADD PRIMARY KEY (`answer_id`),
ADD KEY `FK_answer_qid` (`topic_id`),
ADD KEY `FK_answer_sqid_sqid` (`storage_question_id`,`topic_id`),
ADD KEY `FK_answer` (`storage_answer_id`);
--
-- Indexes for table `block`
--
ALTER TABLE `block`
ADD PRIMARY KEY (`block_id`);
--
-- Indexes for table `class`
--
ALTER TABLE `class`
ADD PRIMARY KEY (`class_id`),
ADD KEY `FK_class` (`block_id`);
--
-- Indexes for table `exam`
--
ALTER TABLE `exam`
ADD PRIMARY KEY (`exam_id`);
--
-- Indexes for table `question`
--
ALTER TABLE `question`
ADD PRIMARY KEY (`storage_question_id`,`topic_id`),
ADD KEY `FK_question_topic` (`topic_id`);
--
-- Indexes for table `storage`
--
ALTER TABLE `storage`
ADD PRIMARY KEY (`storage_id`),
ADD KEY `FK_storage` (`subjects_id`);
--
-- Indexes for table `storage_answer`
--
ALTER TABLE `storage_answer`
ADD PRIMARY KEY (`storage_answer_id`);
--
-- Indexes for table `storage_question`
--
ALTER TABLE `storage_question`
ADD PRIMARY KEY (`storage_question_id`),
ADD UNIQUE KEY `hashkey` (`hashkey`),
ADD KEY `FK_storage_question` (`storage_id`);
--
-- Indexes for table `student_answer`
--
ALTER TABLE `student_answer`
ADD PRIMARY KEY (`answer_student_id`),
ADD KEY `FK_answer_student` (`question_id`),
ADD KEY `FK_answer_student_info` (`student_id`);
--
-- Indexes for table `student_info`
--
ALTER TABLE `student_info`
ADD PRIMARY KEY (`student_id`),
ADD UNIQUE KEY `username` (`username`),
ADD KEY `FK_student_info` (`class_id`),
ADD KEY `FK_student_info_topic` (`password`);
--
-- Indexes for table `student_mark`
--
ALTER TABLE `student_mark`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `Unique_student_topic` (`student_id`,`topic_id`),
ADD KEY `FK_student_mark` (`student_id`),
ADD KEY `FK_student_mark_topic_id` (`topic_id`);
--
-- Indexes for table `student_topic`
--
ALTER TABLE `student_topic`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `subjects`
--
ALTER TABLE `subjects`
ADD PRIMARY KEY (`subjects_id`);
--
-- Indexes for table `topic`
--
ALTER TABLE `topic`
ADD PRIMARY KEY (`topic_id`),
ADD KEY `FK_topic_topic_manage` (`topic_manage_id`);
--
-- Indexes for table `topic_book`
--
ALTER TABLE `topic_book`
ADD PRIMARY KEY (`book_id`);
--
-- Indexes for table `topic_files`
--
ALTER TABLE `topic_files`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `UNIQUE_topicManageId_classId` (`topic_manage_id`,`class_id`);
--
-- Indexes for table `topic_manage`
--
ALTER TABLE `topic_manage`
ADD PRIMARY KEY (`topic_manage_id`),
ADD KEY `FK_topic_manage` (`exam_id`),
ADD KEY `FK_topic_manage_academic` (`academic_id`),
ADD KEY `published` (`published`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD KEY `FK_users` (`subjects_id`);
--
-- Indexes for table `user_manage_class`
--
ALTER TABLE `user_manage_class`
ADD PRIMARY KEY (`id`),
ADD KEY `FK_user_manage_class` (`class_id`),
ADD KEY `FK_user_manage_class_username` (`user_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `academic_year`
--
ALTER TABLE `academic_year`
MODIFY `academic_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `answer`
--
ALTER TABLE `answer`
MODIFY `answer_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `block`
--
ALTER TABLE `block`
MODIFY `block_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `class`
--
ALTER TABLE `class`
MODIFY `class_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `exam`
--
ALTER TABLE `exam`
MODIFY `exam_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `storage`
--
ALTER TABLE `storage`
MODIFY `storage_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `storage_answer`
--
ALTER TABLE `storage_answer`
MODIFY `storage_answer_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `storage_question`
--
ALTER TABLE `storage_question`
MODIFY `storage_question_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_answer`
--
ALTER TABLE `student_answer`
MODIFY `answer_student_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_info`
--
ALTER TABLE `student_info`
MODIFY `student_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_mark`
--
ALTER TABLE `student_mark`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `student_topic`
--
ALTER TABLE `student_topic`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `subjects`
--
ALTER TABLE `subjects`
MODIFY `subjects_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `topic`
--
ALTER TABLE `topic`
MODIFY `topic_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `topic_book`
--
ALTER TABLE `topic_book`
MODIFY `book_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `topic_files`
--
ALTER TABLE `topic_files`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `topic_manage`
--
ALTER TABLE `topic_manage`
MODIFY `topic_manage_id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `user_manage_class`
--
ALTER TABLE `user_manage_class`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- Constraints for dumped tables
--
--
-- Constraints for table `answer`
--
ALTER TABLE `answer`
ADD CONSTRAINT `FK_answer` FOREIGN KEY (`storage_answer_id`) REFERENCES `storage_answer` (`storage_answer_id`) ON DELETE CASCADE ON UPDATE CASCADE,
ADD CONSTRAINT `FK_answer_sqid_sqid` FOREIGN KEY (`storage_question_id`, `topic_id`) REFERENCES `question` (`storage_question_id`, `topic_id`) ON DELETE CASCADE;
--
-- Constraints for table `class`
--
ALTER TABLE `class`
ADD CONSTRAINT `FK_class` FOREIGN KEY (`block_id`) REFERENCES `block` (`block_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `question`
--
ALTER TABLE `question`
ADD CONSTRAINT `FK_question_sqid` FOREIGN KEY (`storage_question_id`) REFERENCES `storage_question` (`storage_question_id`) ON DELETE NO ACTION,
ADD CONSTRAINT `FK_question_topic` FOREIGN KEY (`topic_id`) REFERENCES `topic` (`topic_id`) ON DELETE CASCADE;
--
-- Constraints for table `storage`
--
ALTER TABLE `storage`
ADD CONSTRAINT `FK_storage` FOREIGN KEY (`subjects_id`) REFERENCES `subjects` (`subjects_id`) ON DELETE SET NULL ON UPDATE SET NULL;
--
-- Constraints for table `storage_question`
--
ALTER TABLE `storage_question`
ADD CONSTRAINT `FK_storage_question` FOREIGN KEY (`storage_id`) REFERENCES `storage` (`storage_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `student_answer`
--
ALTER TABLE `student_answer`
ADD CONSTRAINT `FK_answer_student_info` FOREIGN KEY (`student_id`) REFERENCES `student_info` (`student_id`);
--
-- Constraints for table `student_info`
--
ALTER TABLE `student_info`
ADD CONSTRAINT `FK_student_info` FOREIGN KEY (`class_id`) REFERENCES `class` (`class_id`) ON DELETE CASCADE ON UPDATE CASCADE;
--
-- Constraints for table `student_mark`
--
ALTER TABLE `student_mark`
ADD CONSTRAINT `FK_student_mark` FOREIGN KEY (`student_id`) REFERENCES `student_info` (`student_id`) ON DELETE CASCADE,
ADD CONSTRAINT `FK_student_mark_topic_id` FOREIGN KEY (`topic_id`) REFERENCES `topic` (`topic_id`) ON DELETE CASCADE;
--
-- Constraints for table `topic`
--
ALTER TABLE `topic`
ADD CONSTRAINT `FK_topic_topic_manage` FOREIGN KEY (`topic_manage_id`) REFERENCES `topic_manage` (`topic_manage_id`) ON DELETE CASCADE;
--
-- Constraints for table `topic_manage`
--
ALTER TABLE `topic_manage`
ADD CONSTRAINT `FK_topic_manage` FOREIGN KEY (`exam_id`) REFERENCES `exam` (`exam_id`) ON DELETE CASCADE,
ADD CONSTRAINT `FK_topic_manage_academic` FOREIGN KEY (`academic_id`) REFERENCES `academic_year` (`academic_id`) ON DELETE CASCADE;
--
-- Constraints for table `users`
--
ALTER TABLE `users`
ADD CONSTRAINT `FK_users` FOREIGN KEY (`subjects_id`) REFERENCES `subjects` (`subjects_id`) ON DELETE SET NULL ON UPDATE NO ACTION;
--
-- Constraints for table `user_manage_class`
--
ALTER TABLE `user_manage_class`
ADD CONSTRAINT `FK_user_manage_class` FOREIGN KEY (`class_id`) REFERENCES `class` (`class_id`);
/*!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
SELECT (SELECT AVG(nonMajorAttendance.attendance)
FROM
(SELECT COUNT(*) AS attendance
FROM students
INNER JOIN section_meetings
ON section_meetings.m_ci_term = students.ci_term
AND section_meetings.m_ci_name = students.ci_name
AND section_meetings.m_ci_year = students.ci_year
GROUP BY major
HAVING major <> 'CS' OR major IS NULL) nonMajorAttendance) / COUNT(*) AS avg_num_non_majors_per_section_meeting
FROM section_meetings
|
<reponame>kohnmart/snippets<filename>backend/postgres_db/postgres/sql/03_category_post.sql
/*************************************************************************************
* category: POST function
* as in https://gitlab.multimedia.hs-augsburg.de/kowa/wk_account_postgres_01
* modified to not error out when posting duplicates
*************************************************************************************/
BEGIN;
/* Cleanup */
DROP FUNCTION IF EXISTS post_category (_data JSONB);
/* Function */
-- returns the matching id and status 301 if the category name already exists
-- otherwise a new category is created and the new id and status 201 are returned
CREATE FUNCTION post_category (_data JSONB)
RETURNS TABLE (result JSONB)
LANGUAGE plpgsql
AS
$$
DECLARE
_id UUID;
BEGIN
BEGIN
_id = (SELECT "id" FROM e_category WHERE "name" = (_data->>'name')::D_CATEGORY);
EXCEPTION WHEN OTHERS THEN
_id = NULL;
END;
BEGIN
IF(_id IS NOT NULL)
THEN
RETURN QUERY
SELECT json_status(301,
_id,
'23505',
'e_category_unique_name',
'a category with the submitted name already exists',
_data);
ELSE
RETURN QUERY
SELECT rest_helper
('INSERT INTO e_category ("name")
VALUES (($2->>''name'')::D_CATEGORY)',
_data => _data, _http_status => 201
);
END IF;
END;
END;
$$
;
COMMIT;
/*
SELECT * FROM e_category;
SELECT * FROM post_category('{"name": "query"}');
SELECT * FROM e_category;
*/
|
<filename>backend/de.metas.adempiere.adempiere/migration/src/main/sql/postgresql/system/10-de.metas.adempiere/5598990_sys_gh11539_add_entity_type_payment_revolut.sql
-- 2021-07-19T07:41:24.224Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_EntityType (AD_Client_ID,AD_EntityType_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsDisplayed,Name,Processing,Updated,UpdatedBy) VALUES (0,540270,0,TO_TIMESTAMP('2021-07-19 10:41:24','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.payment.revolut','Y','Y','de.metas.payment.revolut','N',TO_TIMESTAMP('2021-07-19 10:41:24','YYYY-MM-DD HH24:MI:SS'),100)
;
-- 2021-07-19T07:41:29.102Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_EntityType SET ModelPackage='de.metas.payment.revolut.model',Updated=TO_TIMESTAMP('2021-07-19 10:41:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_EntityType_ID=540270
;
|
<reponame>afermon/TuBus
CREATE PROCEDURE [dbo].[RET_ALL_TRANSACTIONS_BY_USER]
@P_EMAIL nvarchar(50)
AS
Select tr.*, t.USUARIO as EMAIL from TBL_TRANSACCION as tr
join TBL_TARJETA t on t.CODIGO_UNICO = tr.TARJETA_ID
where tr.TARJETA_ID in(
select ta.CODIGO_UNICO
from TBL_TARJETA as ta
where ta.USUARIO = @P_EMAIL)
RETURN 0
|
<filename>hibernate_cars/src/main/java/queries/ads.sql
SELECT ad.id, brands.name AS brand, models.name AS model, year, price, car_meleage, engine_volume, transmission.name AS transmission,
power_of_engine, car_body.name AS car_body, drive.name AS drive, engine_type.name as fuel FROM ad
LEFT OUTER JOIN brands ON brands.id=brand_id
LEFT OUTER JOIN models ON models.id=model_id
LEFT OUTER JOIN transmission ON transmission.id=transmission
LEFT OUTER JOIN car_body ON car_body.id=car_body
LEFT OUTER JOIN drive ON drive.id=drive
LEFT OUTER JOIN engine_type ON engine_type.id=engine_type
; |
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for t_oauth_app_info
-- ----------------------------
DROP TABLE IF EXISTS `t_app_info`;
CREATE TABLE `t_app_info` (
`app_id` BIGINT(20) UNSIGNED NOT NULL,
`app_name` VARCHAR(255) NOT NULL,
`logo` VARCHAR(1024) CHARACTER SET utf8mb4 NOT NULL DEFAULT '',
`enable` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'app enable status, 0:disable, 1:enable',
`redirect_uri` VARCHAR(4096) DEFAULT NULL,
`cancel_redirect_uri` VARCHAR(4096) DEFAULT NULL,
`scope` VARCHAR(1024) DEFAULT NULL,
`token_validity` INT(11) NOT NULL DEFAULT '7776000' COMMENT 'seconds',
`secret` VARCHAR(255) NOT NULL,
`level` INT(2) NOT NULL DEFAULT '1',
`creator_id` BIGINT(20) NOT NULL,
`create_time` DATETIME NOT NULL,
`update_time` TIMESTAMP NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`app_id`)
)
ENGINE = InnoDB
DEFAULT CHARSET = utf8;
|
<filename>kata-files/lesson2/postgresql/expected/MYLARGESCHEMA/function/func213.sql
CREATE FUNCTION func213() RETURNS integer
LANGUAGE plpgsql
AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE46);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE259);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE130);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.VIEW81);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.VIEW62);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.VIEW13);CALL FUNC775(MYVAR);CALL FUNC66(MYVAR);CALL FUNC603(MYVAR);CALL FUNC500(MYVAR);END $$;
GO |
ALTER TABLE commits DROP COLUMN id;
ALTER TABLE commits ADD PRIMARY KEY (sha);
|
-- phpMyAdmin SQL Dump
-- version 4.5.4.1deb2ubuntu2
-- http://www.phpmyadmin.net
--
-- Хост: localhost
-- Время создания: Фев 01 2017 г., 09:27
-- Версия сервера: 5.7.17-0ubuntu0.16.04.1
-- Версия PHP: 7.0.13-0ubuntu0.16.04.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- База данных: `bookshop`
--
-- --------------------------------------------------------
--
-- Структура таблицы `author`
--
CREATE TABLE `author` (
`id` int(11) NOT NULL,
`name` text NOT NULL,
`email` text NOT NULL,
`phone` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `author`
--
INSERT INTO `author` (`id`, `name`, `email`, `phone`) VALUES
(1, '<NAME>', '<EMAIL>', '012345678'),
(2, '<NAME>', '<EMAIL>', '555-55-55'),
(3, '<NAME>', '<EMAIL>', '12345678'),
(4, 'Ремарк', '<EMAIL>', '6543218790'),
(5, '<NAME>', '<EMAIL>', '123456789'),
(6, '<NAME>.', '<EMAIL>', '+123456789'),
(7, 'Шекспир', '<EMAIL>', '0123456789'),
(8, 'Есенин', '<EMAIL>', '32659845120'),
(9, '<NAME>', '<EMAIL>', 'Ahr!'),
(10, '<NAME>', '<EMAIL>', '987654');
-- --------------------------------------------------------
--
-- Структура таблицы `books`
--
CREATE TABLE `books` (
`id` int(11) NOT NULL,
`title` text NOT NULL,
`description` text NOT NULL,
`price` float NOT NULL,
`author_fk_id` int(11) NOT NULL,
`category_fk_id` int(11) NOT NULL,
`img_src` text
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `books`
--
INSERT INTO `books` (`id`, `title`, `description`, `price`, `author_fk_id`, `category_fk_id`, `img_src`) VALUES
(1, 'Прозрачные витражи', '«Прозрачные витражи» (1999) — фантастическая повесть Сергея Лукьяненко, заключительная часть трилогии «Лабиринт отражений».\r\n\r\nКнига начинается с детских воспоминаний Карины о том, как она собирала большой пазл. На пазле было изображение стены замка и окна, за которым стоят рыцарь и принцесса с грустными лицами. Карина придумывала себе историю про их любовь. Но последний кусочек пазла — между руками рыцаря и принцессы — куда-то потерялся. И Карина поняла, что грусть принцессы и рыцаря от того, что они не смогут быть вместе и понимают это. Она разломала свой пазл и перестала верить в любовь.', 250, 1, 1, 'https://www.litmir.co/data/Book/0/34000/34077/BC2_1453755916.jpg'),
(2, 'Недотепа', 'Нелегко придется юному герцогу, желающему отомстить узурпатору и вернуть себе трон. Ведь есть так много путей, чтобы добиться справедливости!\r\n\r\nСтать оруженосцем могущественного рыцаря и научиться владеть оружием. Напроситься в ученики к волшебнику… Потребовать справедливости у верховного короля.\r\n\r\nИли пытаться все сделать сразу?\r\n\r\nА еще придется подружиться с бродячими актерами, обзавестись личной феей… очень маленькой, питающейся пыльцой… А еще – сразиться с коварными магами-витамантами, влюбиться в прекрасную княгиню Тиану, спасти ее из плена и случайно превратить… ой, нет, этого лучше не рассказывать!', 120, 1, 1, 'http://knizhnik.org/covers/page_261_luk_nedotepa.jpg'),
(3, 'Война и мир', '«Война́ и мир» (рус. дореф. «Война и миръ») — роман-эпопея <NAME>, описывающий русское общество в эпоху войн против Наполеона в 1805—1812 годах.', 30, 2, 2, 'https://upload.wikimedia.org/wikipedia/commons/4/41/War-and-peace_1873.gif'),
(4, 'Мертвые души', 'Поэма <NAME> «Мёртвые души» вошла в историю русской литературы как вершина сатирического реализма. В своем бессмертном произведении, потрясшем, по словам Герцена, всю Россию, Гоголь нарисовал широкую панораму русской жизни, создал целую галерею незабываемых образов и характеров, очень тонко и правдиво отобразив черты современной ему эпохи. При этом мощь его писательского дарования оказалась такой, что книга и сегодня не утратила своей остроты и силы.', 90, 5, 3, 'http://knigoland.com.ua/image/cache/data/1/14923-165x228.jpg'),
(5, 'Триумфальная арка', 'Это — красивейший из европейских романов ХХ века. Роман о любви, войне и смерти.\r\nЭто — печальнейший из европейских романов ХХ века. Роман о женщине, у которой нет ничего, кроме жалких сиюсекундных побед, — и о мужчине, привыкшем к страху, ненависти и безнадежности, как к своему второму «я».\r\nЭто — «Триумфальная арка». Роман о страсти, что может и должна завершиться лишь трагедией.', 230, 4, 3, 'http://knigoland.com.ua/image/cache/data/4/47644-165x228.jpg'),
(6, 'Малое собрание сочинений. Толстой Л.', 'Вниманию читателей предлагается собрание лучших повестей и рассказов Л. Н. Толстого, каждый из которых - несомненный шедевр, оказавший беспримерное влияние не только на российскую, но и на зарубежную культуру ХХ века.', 220, 2, 2, 'http://knigoland.com.ua/image/cache/data/6/67566-165x228.jpg'),
(7, 'Записки о Шерлоке Холмсе', 'Авторский сборник рассказов из цикла о приключениях Шерлока Холмса.', 60, 3, 5, 'http://knigoland.com.ua/image/cache/data/7/78058-165x228.jpg'),
(8, 'Ангелы и демоны', 'Иллюминаты. Древний таинственный орден, прославившийся в Средние века яростной борьбой с официальной церковью. Легенда далекого прошлого? Возможно… Но — почему тогда на груди убитого при загадочных обстоятельствах ученого вырезан именно символ иллюминатов? Приглашенный из Гарварда специалист по символике и его напарница, дочь убитого, начинают собственное расследование — и вскоре приходят к невероятным результатам…', 125, 6, 5, 'http://knigoland.com.ua/image/cache/data/4/49367-165x228.jpg'),
(9, 'Сонеты', 'Не раз Любовь твердила мне: Пиши!.. - эти слова великого итальянского поэта эпохи Возрождения Франческо Петрарки как нельзя лучше отражают основную тему книги, которая откроет читателю волшебный мир любовной лирики - своеобразного поэтического дневника, посвященного любви поэта к Лауре.', 40, 7, 4, 'http://knigoland.com.ua/image/cache/data/3/30284-165x228.jpg'),
(10, 'Последний поэт деревни', '<NAME> - великий русский поэт, тонкий лирик, певец родной природы.\r\nВ стихотворениях, включенных в книгу, звучит неподдельная любовь поэта ко всему живому, к жизни, к родине.', 40, 8, 4, 'http://knigoland.com.ua/image/cache/data/3/30208-165x228.jpg'),
(11, 'Кто нашел, берет себе', '«Просыпайся, гений» – с этих слов начинается новый потрясающий роман <NAME>, книга о силе Слова, в какой-то степени продолжающая историю, которую писатель начал в романе «<NAME>», и в то же время перекликающаяся с одним из лучших его произведений – «Мизери».\r\nГений – писатель Ротстайн, прежде бунтарь, а теперь затворник вот уже долгие годы ничего не публикует. Но это не значит, что он ничего не пишет. В его доме – множество черновиков, ждущих «своего часа». Сборники стихов, рассказы и даже продолжение знаменитой саги, изменившей судьбу едва ли не целого поколения фанатов Ротстайна. Но теперь крутой поворот делает судьба самого писателя – черновики похищают, а Ротстайна жестоко убивают…\r\nОднако пройдет много лет, прежде чем блокноты писателя вновь всплывут на поверхность, чтобы самым непостижимым образом соединить людей, имевших отношение к трагическим событиям, связанным с Мистером Мерседесом...', 260, 9, 6, 'http://knigoland.com.ua/image/cache/data/6/63917-165x228.jpg'),
(12, 'Код да Винчи', 'Ця історія про неймовірне розслідування і приголомшливі відкриття Роберта Ленґдона та Софі Неве, без перебільшення, перевернула світ. Д<NAME> створив легенду, в яку повірили всі, – попри відчайдушний опір Ватикану. Скандали навкруг роману, здається, не вгамуються ніколи, чому сприяє недавня його екранізація. А секрет цього величезного успіху полягає в тому, що Денові Брауну вдалося, як нікому до нього, наочно довести, що так звана історія та політика – це тільки ширма, за якою приховані величезні таємниці...', 90, 10, 5, 'http://knigoland.com.ua/image/cache/data/3/39504-165x228.jpg');
-- --------------------------------------------------------
--
-- Структура таблицы `cart`
--
CREATE TABLE `cart` (
`id` int(11) NOT NULL,
`book_id` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `cart`
--
INSERT INTO `cart` (`id`, `book_id`) VALUES
(1, 1),
(2, 1),
(3, 2);
-- --------------------------------------------------------
--
-- Структура таблицы `category`
--
CREATE TABLE `category` (
`id` int(11) NOT NULL,
`name` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
--
-- Дамп данных таблицы `category`
--
INSERT INTO `category` (`id`, `name`) VALUES
(1, 'Фантастика'),
(2, 'Роман-эпопея'),
(3, 'Классика'),
(4, 'Поэзия'),
(5, 'Детектив'),
(6, 'Боевик, триллер'),
(7, 'Мистика');
--
-- Индексы сохранённых таблиц
--
--
-- Индексы таблицы `author`
--
ALTER TABLE `author`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `books`
--
ALTER TABLE `books`
ADD PRIMARY KEY (`id`);
--
-- Индексы таблицы `cart`
--
ALTER TABLE `cart`
ADD PRIMARY KEY (`id`),
ADD KEY `book_id` (`book_id`);
--
-- Индексы таблицы `category`
--
ALTER TABLE `category`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT для сохранённых таблиц
--
--
-- AUTO_INCREMENT для таблицы `author`
--
ALTER TABLE `author`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11;
--
-- AUTO_INCREMENT для таблицы `books`
--
ALTER TABLE `books`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13;
--
-- AUTO_INCREMENT для таблицы `cart`
--
ALTER TABLE `cart`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
--
-- AUTO_INCREMENT для таблицы `category`
--
ALTER TABLE `category`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;
--
-- Ограничения внешнего ключа сохраненных таблиц
--
--
-- Ограничения внешнего ключа таблицы `cart`
--
ALTER TABLE `cart`
ADD CONSTRAINT `cart_ibfk_1` FOREIGN KEY (`book_id`) REFERENCES `books` (`id`);
/*!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>jonfung/sushii-bot
-- Your SQL goes here
ALTER TABLE users
ADD COLUMN profile_background_url TEXT,
ADD COLUMN profile_bio TEXT,
ADD COLUMN profile_bg_darken TEXT,
ADD COLUMN profile_content_color TEXT,
ADD COLUMN profile_content_opacity TEXT,
ADD COLUMN profile_text_color TEXT,
ADD COLUMN profile_accent_color TEXT;
|
<reponame>Hyujin/admin
-- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 1172.16.17.32
-- Generation Time: Mar 03, 2022 at 07:53 PM
-- Server version: 10.4.22-MariaDB
-- PHP Version: 8.1.2
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: `pds_db`
--
-- --------------------------------------------------------
--
-- Table structure for table `deductions`
--
CREATE TABLE `deductions` (
`id` int(11) NOT NULL,
`emp_id` int(11) NOT NULL,
`sss` decimal(20,2) NOT NULL,
`phic` decimal(20,2) NOT NULL,
`pagibig` decimal(20,2) NOT NULL,
`others` decimal(20,2) NOT NULL,
`ca` decimal(20,2) NOT NULL,
`total_deductions` decimal(20,2) NOT NULL,
`timestamps` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `deductions`
--
INSERT INTO `deductions` (`id`, `emp_id`, `sss`, `phic`, `pagibig`, `others`, `ca`, `total_deductions`, `timestamps`) VALUES
(1, 1, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:44'),
(2, 2, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:44'),
(3, 3, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:45'),
(4, 4, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:45'),
(5, 5, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:45'),
(6, 6, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:45'),
(7, 7, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:45'),
(8, 8, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:46'),
(9, 9, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:46'),
(10, 10, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:46'),
(11, 11, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:46'),
(12, 12, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:46'),
(13, 13, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:47'),
(14, 14, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:47'),
(15, 15, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:47'),
(16, 16, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:47'),
(17, 17, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:47'),
(18, 18, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:48'),
(19, 19, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:48'),
(20, 20, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:49'),
(21, 21, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:49'),
(22, 22, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:50'),
(23, 23, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:50'),
(24, 24, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:50'),
(25, 25, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:51'),
(26, 26, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:51'),
(27, 27, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:51'),
(28, 28, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:52'),
(29, 29, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:52'),
(30, 30, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:52'),
(31, 31, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:52'),
(32, 32, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:52'),
(33, 33, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:53'),
(34, 34, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:53'),
(35, 35, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:53'),
(36, 36, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:53'),
(37, 37, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:53'),
(38, 38, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:54'),
(39, 39, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:54'),
(40, 40, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:54'),
(41, 41, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:55'),
(42, 42, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:55'),
(43, 43, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:55'),
(44, 44, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:56'),
(45, 45, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:56'),
(46, 46, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:56'),
(47, 47, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:56'),
(48, 48, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:56'),
(49, 49, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-02-28 22:04:56'),
(50, 50, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:34'),
(51, 51, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:34'),
(52, 52, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:34'),
(53, 53, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:35'),
(54, 54, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:35'),
(55, 55, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:35'),
(56, 56, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:35'),
(57, 57, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:35'),
(58, 58, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:36'),
(59, 59, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:36'),
(60, 60, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:36'),
(61, 61, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:36'),
(62, 62, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:36'),
(63, 63, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:36'),
(64, 64, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:37'),
(65, 65, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:37'),
(66, 66, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:37'),
(67, 67, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:25:37'),
(68, 68, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:24'),
(69, 69, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:25'),
(70, 70, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:25'),
(71, 71, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:25'),
(72, 72, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:25'),
(73, 73, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:25'),
(74, 74, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:26'),
(75, 75, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:26'),
(76, 76, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:26'),
(77, 77, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:26'),
(78, 78, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:26'),
(79, 79, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:26'),
(80, 80, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:26'),
(81, 81, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:27'),
(82, 82, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:27'),
(83, 83, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:27'),
(84, 84, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:27'),
(85, 85, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 15:27:27'),
(86, 1, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:33'),
(87, 2, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:33'),
(88, 3, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:33'),
(89, 4, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:33'),
(90, 5, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:34'),
(91, 6, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:34'),
(92, 7, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:34'),
(93, 8, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:34'),
(94, 9, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:34'),
(95, 10, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:34'),
(96, 11, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:34'),
(97, 12, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:35'),
(98, 13, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:35'),
(99, 14, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:35'),
(100, 15, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:35'),
(101, 16, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:35'),
(102, 17, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:35'),
(103, 18, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:35'),
(104, 19, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:36'),
(105, 20, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:36'),
(106, 21, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:36'),
(107, 22, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:36'),
(108, 23, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:36'),
(109, 24, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:36'),
(110, 25, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:36'),
(111, 26, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:37'),
(112, 27, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:37'),
(113, 28, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:37'),
(114, 29, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:37'),
(115, 30, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:37'),
(116, 31, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:37'),
(117, 32, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:38'),
(118, 33, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:38'),
(119, 34, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:38'),
(120, 35, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:38'),
(121, 36, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:38'),
(122, 37, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:39'),
(123, 38, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:40'),
(124, 39, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:40'),
(125, 40, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:40'),
(126, 41, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:40'),
(127, 42, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:40'),
(128, 43, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:40'),
(129, 44, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:41'),
(130, 45, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:41'),
(131, 46, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:41'),
(132, 47, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:41'),
(133, 48, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:41'),
(134, 1, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:41'),
(135, 49, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:41'),
(136, 2, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:41'),
(137, 3, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:42'),
(138, 4, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:42'),
(139, 5, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:42'),
(140, 6, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:42'),
(141, 7, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:42'),
(142, 8, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:42'),
(143, 9, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:42'),
(144, 10, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:43'),
(145, 11, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:43'),
(146, 12, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:43'),
(147, 13, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:43'),
(148, 14, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:43'),
(149, 15, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:44'),
(150, 16, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:44'),
(151, 17, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:45'),
(152, 18, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:45'),
(153, 19, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:45'),
(154, 1, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:45'),
(155, 20, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:45'),
(156, 2, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:45'),
(157, 21, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:45'),
(158, 3, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:46'),
(159, 22, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:46'),
(160, 4, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:46'),
(161, 1, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:46'),
(162, 23, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:46'),
(163, 5, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:46'),
(164, 1, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:46'),
(165, 24, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:46'),
(166, 2, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:46'),
(167, 6, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:46'),
(168, 2, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:47'),
(169, 25, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:47'),
(170, 3, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:47'),
(171, 7, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:47'),
(172, 3, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:47'),
(173, 26, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:47'),
(174, 4, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:47'),
(175, 8, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:47'),
(176, 4, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:47'),
(177, 27, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:47'),
(178, 5, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:48'),
(179, 9, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:48'),
(180, 5, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:48'),
(181, 6, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:48'),
(182, 28, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:48'),
(183, 10, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:48'),
(184, 6, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:49'),
(185, 7, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:49'),
(186, 11, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:49'),
(187, 29, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:49'),
(188, 7, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:49'),
(189, 8, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:49'),
(190, 30, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:49'),
(191, 12, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:49'),
(192, 8, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:49'),
(193, 9, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:50'),
(194, 13, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:50'),
(195, 31, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:50'),
(196, 9, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:50'),
(197, 10, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:50'),
(198, 14, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:50'),
(199, 32, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:50'),
(200, 10, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:50'),
(201, 15, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:50'),
(202, 11, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:50'),
(203, 33, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:51'),
(204, 11, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:51'),
(205, 16, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:51'),
(206, 12, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:51'),
(207, 34, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:52'),
(208, 12, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:52'),
(209, 17, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:52'),
(210, 13, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:52'),
(211, 13, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:52'),
(212, 35, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:52'),
(213, 18, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:52'),
(214, 14, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:52'),
(215, 36, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:53'),
(216, 19, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:53'),
(217, 14, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:53'),
(218, 15, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:53'),
(219, 37, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:53'),
(220, 15, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:53'),
(221, 20, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:53'),
(222, 16, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:53'),
(223, 16, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:53'),
(224, 38, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:53'),
(225, 21, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:53'),
(226, 17, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:54'),
(227, 17, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:54'),
(228, 39, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:54'),
(229, 22, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:54'),
(230, 18, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:54'),
(231, 18, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:54'),
(232, 40, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:54'),
(233, 23, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:54'),
(234, 19, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:54'),
(235, 19, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:55'),
(236, 41, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:55'),
(237, 20, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:55'),
(238, 24, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:55'),
(239, 42, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:55'),
(240, 20, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:55'),
(241, 21, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:55'),
(242, 25, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:55'),
(243, 21, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:55'),
(244, 43, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:55'),
(245, 22, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:56'),
(246, 26, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:56'),
(247, 22, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:56'),
(248, 44, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:56'),
(249, 23, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(250, 27, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(251, 23, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(252, 45, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(253, 24, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(254, 28, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(255, 46, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(256, 24, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(257, 25, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(258, 29, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(259, 47, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(260, 25, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(261, 26, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(262, 30, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:57'),
(263, 26, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:58'),
(264, 48, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:58'),
(265, 31, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:58'),
(266, 27, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:58'),
(267, 27, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:58'),
(268, 49, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:58'),
(269, 28, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:58'),
(270, 32, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:58'),
(271, 28, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:58'),
(272, 29, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:59'),
(273, 33, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:59'),
(274, 29, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:59'),
(275, 30, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:59'),
(276, 30, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:59'),
(277, 34, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:45:59'),
(278, 31, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:00'),
(279, 31, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:00'),
(280, 35, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:00'),
(281, 32, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:00'),
(282, 32, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:00'),
(283, 36, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:00'),
(284, 33, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:00'),
(285, 33, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:00'),
(286, 37, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:00'),
(287, 34, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:00'),
(288, 34, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:00'),
(289, 38, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:00'),
(290, 35, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:00'),
(291, 35, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:01'),
(292, 39, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:01'),
(293, 36, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:01'),
(294, 36, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:01'),
(295, 37, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:01'),
(296, 40, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:01'),
(297, 37, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:01'),
(298, 38, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:01'),
(299, 38, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:01'),
(300, 41, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:01'),
(301, 39, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:01'),
(302, 42, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:01'),
(303, 39, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:01'),
(304, 40, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:02'),
(305, 43, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:02'),
(306, 40, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:02'),
(307, 41, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:02'),
(308, 41, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:02'),
(309, 44, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:02'),
(310, 42, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:02'),
(311, 45, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:02'),
(312, 42, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:02'),
(313, 43, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:03'),
(314, 46, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:03'),
(315, 43, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:03'),
(316, 44, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:03'),
(317, 47, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:03'),
(318, 44, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:03'),
(319, 45, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:03'),
(320, 45, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:03'),
(321, 48, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:03'),
(322, 46, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:03'),
(323, 46, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:03'),
(324, 49, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:03'),
(325, 47, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:04'),
(326, 47, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:04'),
(327, 48, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:04'),
(328, 48, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:04'),
(329, 49, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:05'),
(330, 49, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:46:05'),
(331, 68, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:01'),
(332, 69, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:01'),
(333, 70, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:01'),
(334, 71, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:01'),
(335, 72, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:01'),
(336, 73, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:01'),
(337, 74, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:02'),
(338, 75, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:02'),
(339, 76, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:02'),
(340, 77, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:02'),
(341, 78, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:02'),
(342, 79, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:02'),
(343, 80, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:02'),
(344, 81, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:03'),
(345, 82, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:03'),
(346, 83, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:03'),
(347, 84, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:03'),
(348, 85, '120.00', '100.00', '80.00', '0.00', '2000.00', '2300.00', '2022-03-03 18:48:03');
-- --------------------------------------------------------
--
-- Table structure for table `employees`
--
CREATE TABLE `employees` (
`id` int(11) NOT NULL,
`fullname` varchar(255) NOT NULL,
`role` varchar(255) NOT NULL,
`emp_type` varchar(255) NOT NULL,
`timestamp` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `employees`
--
INSERT INTO `employees` (`id`, `fullname`, `role`, `emp_type`, `timestamp`) VALUES
(1, '<NAME> ', 'AOM', 'Regular', '2022-03-01 06:04:44'),
(2, '<NAME>.', 'TL', 'Regular', '2022-03-01 06:04:44'),
(3, '<NAME>', 'IT', 'Regular', '2022-03-01 06:04:45'),
(4, '<NAME>', 'IT', 'Regular', '2022-03-01 06:04:45'),
(5, '<NAME>', 'QA', 'Regular', '2022-03-01 06:04:45'),
(6, '<NAME>.', 'GUARD', 'Regular', '2022-03-01 06:04:45'),
(7, '<NAME>.', 'SUPPORT', 'Regular', '2022-03-01 06:04:45'),
(8, '<NAME> ', 'OM', 'Regular', '2022-03-01 06:04:46'),
(9, '<NAME>', 'RECRUITMENT', 'Regular', '2022-03-01 06:04:46'),
(10, '<NAME>', 'ADMIN', 'Regular', '2022-03-01 06:04:46'),
(11, '<NAME>', 'TL', 'Regular', '2022-03-01 06:04:46'),
(12, 'REYES, <NAME>.', 'SME', 'Regular', '2022-03-01 06:04:46'),
(13, '<NAME>', 'CLEANER', 'Regular', '2022-03-01 06:04:46'),
(14, '<NAME>', 'ADMIN', 'Regular', '2022-03-01 06:04:47'),
(15, '<NAME>', 'QA', 'Regular', '2022-03-01 06:04:47'),
(16, '<NAME>', 'DRIVER', 'Regular', '2022-03-01 06:04:47'),
(17, '<NAME>.', 'AGENT', 'Regular', '2022-03-01 06:04:47'),
(18, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:48'),
(19, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:48'),
(20, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:48'),
(21, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:49'),
(22, '<NAME> ', 'AGENT', 'Regular', '2022-03-01 06:04:49'),
(23, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:50'),
(24, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:50'),
(25, '<NAME> ', 'AGENT', 'Regular', '2022-03-01 06:04:51'),
(26, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:51'),
(27, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:51'),
(28, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:52'),
(29, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:52'),
(30, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:52'),
(31, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:52'),
(32, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:52'),
(33, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:52'),
(34, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:53'),
(35, '<NAME> ', 'AGENT', 'Regular', '2022-03-01 06:04:53'),
(36, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:53'),
(37, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:53'),
(38, 'MALUPA, <NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:53'),
(39, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:54'),
(40, '<NAME>.', 'AGENT', 'Regular', '2022-03-01 06:04:54'),
(41, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:55'),
(42, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:55'),
(43, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:55'),
(44, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:56'),
(45, '<NAME>.', 'AGENT', 'Regular', '2022-03-01 06:04:56'),
(46, '<NAME>.', 'AGENT', 'Regular', '2022-03-01 06:04:56'),
(47, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:56'),
(48, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:56'),
(49, '<NAME>', 'AGENT', 'Regular', '2022-03-01 06:04:56'),
(68, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:24'),
(69, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:25'),
(70, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:25'),
(71, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:25'),
(72, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:25'),
(73, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:25'),
(74, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:25'),
(75, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:26'),
(76, '<NAME>.', 'AGENT', 'Sales', '2022-03-03 23:27:26'),
(77, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:26'),
(78, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:26'),
(79, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:26'),
(80, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:26'),
(81, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:26'),
(82, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:27'),
(83, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:27'),
(84, '<NAME>', 'AGENT', 'Sales', '2022-03-03 23:27:27'),
(85, '<NAME>.', 'AGENT', 'Sales', '2022-03-03 23:27:27');
-- --------------------------------------------------------
--
-- Table structure for table `reg_manhour`
--
CREATE TABLE `reg_manhour` (
`id` int(11) NOT NULL,
`emp_id` int(11) NOT NULL,
`total_worked_hrs` decimal(20,2) NOT NULL,
`total_nd_hrs` decimal(20,2) NOT NULL,
`reg_hol_hrs` decimal(20,2) NOT NULL,
`ot_hrs` decimal(20,2) NOT NULL,
`spl_hol_hrs` decimal(20,2) NOT NULL,
`prem_hrs` decimal(20,2) NOT NULL,
`timestamps` datetime DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `reg_manhour`
--
INSERT INTO `reg_manhour` (`id`, `emp_id`, `total_worked_hrs`, `total_nd_hrs`, `reg_hol_hrs`, `ot_hrs`, `spl_hol_hrs`, `prem_hrs`, `timestamps`) VALUES
(1, 1, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:44'),
(2, 2, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:45'),
(3, 3, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:45'),
(4, 4, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:45'),
(5, 5, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:45'),
(6, 6, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:45'),
(7, 7, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:46'),
(8, 8, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:46'),
(9, 9, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:46'),
(10, 10, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:46'),
(11, 11, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:46'),
(12, 12, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:46'),
(13, 13, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:47'),
(14, 14, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:47'),
(15, 15, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:47'),
(16, 16, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:47'),
(17, 17, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:47'),
(18, 18, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:48'),
(19, 19, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:48'),
(20, 20, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:49'),
(21, 21, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:49'),
(22, 22, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:50'),
(23, 23, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:50'),
(24, 24, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:51'),
(25, 25, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:51'),
(26, 26, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:51'),
(27, 27, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:52'),
(28, 28, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:52'),
(29, 29, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:52'),
(30, 30, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:52'),
(31, 31, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:52'),
(32, 32, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:52'),
(33, 33, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:53'),
(34, 34, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:53'),
(35, 35, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:53'),
(36, 36, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:53'),
(37, 37, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:53'),
(38, 38, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:54'),
(39, 39, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:54'),
(40, 40, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:55'),
(41, 41, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:55'),
(42, 42, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:55'),
(43, 43, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:55'),
(44, 44, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:56'),
(45, 45, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:56'),
(46, 46, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:56'),
(47, 47, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:56'),
(48, 48, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:56'),
(49, 49, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-01 06:04:56'),
(50, 1, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:33'),
(51, 2, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:33'),
(52, 3, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:33'),
(53, 4, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:34'),
(54, 5, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:34'),
(55, 6, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:34'),
(56, 7, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:34'),
(57, 8, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:34'),
(58, 9, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:34'),
(59, 10, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:34'),
(60, 11, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:35'),
(61, 12, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:35'),
(62, 13, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:35'),
(63, 14, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:35'),
(64, 15, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:35'),
(65, 16, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:35'),
(66, 17, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:35'),
(67, 18, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:35'),
(68, 19, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:36'),
(69, 20, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:36'),
(70, 21, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:36'),
(71, 22, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:36'),
(72, 23, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:36'),
(73, 24, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:36'),
(74, 25, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:36'),
(75, 26, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:37'),
(76, 27, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:37'),
(77, 28, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:37'),
(78, 29, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:37'),
(79, 30, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:37'),
(80, 31, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:38'),
(81, 32, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:38'),
(82, 33, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:38'),
(83, 34, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:38'),
(84, 35, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:38'),
(85, 36, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:39'),
(86, 37, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:39'),
(87, 38, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:40'),
(88, 39, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:40'),
(89, 40, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:40'),
(90, 41, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:40'),
(91, 42, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:40'),
(92, 43, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:40'),
(93, 44, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:41'),
(94, 45, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:41'),
(95, 46, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:41'),
(96, 47, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:41'),
(97, 48, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:41'),
(98, 1, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:41'),
(99, 49, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:41'),
(100, 2, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:42'),
(101, 3, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:42'),
(102, 4, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:42'),
(103, 5, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:42'),
(104, 6, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:42'),
(105, 7, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:42'),
(106, 8, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:42'),
(107, 9, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:43'),
(108, 10, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:43'),
(109, 11, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:43'),
(110, 12, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:43'),
(111, 13, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:43'),
(112, 14, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:43'),
(113, 15, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:44'),
(114, 16, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:45'),
(115, 17, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:45'),
(116, 18, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:45'),
(117, 19, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:45'),
(118, 1, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:45'),
(119, 20, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:45'),
(120, 2, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:45'),
(121, 21, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:46'),
(122, 3, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:46'),
(123, 22, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:46'),
(124, 4, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:46'),
(125, 23, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:46'),
(126, 1, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:46'),
(127, 5, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:46'),
(128, 1, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:46'),
(129, 2, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:46'),
(130, 24, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:46'),
(131, 6, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:47'),
(132, 2, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:47'),
(133, 3, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:47'),
(134, 25, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:47'),
(135, 7, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:47'),
(136, 3, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:47'),
(137, 26, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:47'),
(138, 4, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:47'),
(139, 8, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:47'),
(140, 4, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:48'),
(141, 27, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:48'),
(142, 5, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:48'),
(143, 9, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:48'),
(144, 5, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:48'),
(145, 6, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:49'),
(146, 10, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:49'),
(147, 28, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:49'),
(148, 6, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:49'),
(149, 7, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:49'),
(150, 11, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:49'),
(151, 29, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:49'),
(152, 7, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:49'),
(153, 8, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:49'),
(154, 12, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:49'),
(155, 30, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:49'),
(156, 8, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:49'),
(157, 9, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:50'),
(158, 13, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:50'),
(159, 31, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:50'),
(160, 9, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:50'),
(161, 10, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:50'),
(162, 14, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:50'),
(163, 32, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:50'),
(164, 10, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:50'),
(165, 15, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:51'),
(166, 11, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:51'),
(167, 33, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:51'),
(168, 11, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:51'),
(169, 16, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:52'),
(170, 12, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:52'),
(171, 34, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:52'),
(172, 12, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:52'),
(173, 17, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:52'),
(174, 13, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:52'),
(175, 35, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:52'),
(176, 18, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:52'),
(177, 13, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:52'),
(178, 14, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:53'),
(179, 36, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:53'),
(180, 19, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:53'),
(181, 14, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:53'),
(182, 15, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:53'),
(183, 37, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:53'),
(184, 15, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:53'),
(185, 20, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:53'),
(186, 16, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:53'),
(187, 38, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:54'),
(188, 16, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:54'),
(189, 21, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:54'),
(190, 17, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:54'),
(191, 17, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:54'),
(192, 39, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:54'),
(193, 22, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:54'),
(194, 18, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:54'),
(195, 18, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:54'),
(196, 40, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:54'),
(197, 19, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:55'),
(198, 23, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:55'),
(199, 19, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:55'),
(200, 41, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:55'),
(201, 20, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:55'),
(202, 24, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:55'),
(203, 20, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:55'),
(204, 42, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:55'),
(205, 21, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:55'),
(206, 25, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:56'),
(207, 21, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:56'),
(208, 43, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:56'),
(209, 22, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:56'),
(210, 26, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(211, 22, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(212, 44, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(213, 23, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(214, 27, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(215, 23, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(216, 45, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(217, 24, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(218, 28, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(219, 46, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(220, 24, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(221, 25, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(222, 29, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(223, 47, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(224, 25, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:57'),
(225, 26, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:58'),
(226, 30, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:58'),
(227, 26, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:58'),
(228, 48, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:58'),
(229, 27, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:58'),
(230, 31, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:58'),
(231, 27, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:58'),
(232, 49, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:58'),
(233, 32, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:58'),
(234, 28, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:58'),
(235, 28, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:58'),
(236, 29, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:59'),
(237, 29, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:59'),
(238, 33, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:59'),
(239, 30, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:59'),
(240, 30, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:59'),
(241, 34, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:45:59'),
(242, 31, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:00'),
(243, 31, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:00'),
(244, 35, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:00'),
(245, 32, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:00'),
(246, 32, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:00'),
(247, 36, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:00'),
(248, 33, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:00'),
(249, 33, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:00'),
(250, 37, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:00'),
(251, 34, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:00'),
(252, 34, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:00'),
(253, 38, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:01'),
(254, 35, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:01'),
(255, 35, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:01'),
(256, 39, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:01'),
(257, 36, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:01'),
(258, 36, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:01'),
(259, 37, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:01'),
(260, 37, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:01'),
(261, 40, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:01'),
(262, 38, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:01'),
(263, 41, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:01'),
(264, 38, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:01'),
(265, 39, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:02'),
(266, 42, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:02'),
(267, 39, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:02'),
(268, 40, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:02'),
(269, 40, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:02'),
(270, 43, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:02'),
(271, 41, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:02'),
(272, 41, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:02'),
(273, 44, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:02'),
(274, 42, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:02'),
(275, 42, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:02'),
(276, 45, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:03'),
(277, 43, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:03'),
(278, 43, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:03'),
(279, 46, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:03'),
(280, 44, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:03'),
(281, 44, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:03'),
(282, 47, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:03'),
(283, 45, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:03'),
(284, 45, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:03'),
(285, 48, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:03'),
(286, 46, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:03'),
(287, 46, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:03'),
(288, 49, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:04'),
(289, 47, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:04'),
(290, 47, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:04'),
(291, 48, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:04'),
(292, 48, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:04'),
(293, 49, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:05'),
(294, 49, '80.00', '60.00', '2.00', '2.00', '0.00', '0.00', '2022-03-04 02:46:05');
-- --------------------------------------------------------
--
-- Table structure for table `reg_pay`
--
CREATE TABLE `reg_pay` (
`id` int(11) NOT NULL,
`emp_id` int(11) NOT NULL,
`basic_hrs_pay` decimal(20,2) NOT NULL,
`nds_pay` decimal(20,2) NOT NULL,
`allow_pay` decimal(20,2) NOT NULL,
`dispute` decimal(20,2) NOT NULL,
`spl_hol_pay` decimal(20,2) NOT NULL,
`reg_hol_pay` decimal(20,2) NOT NULL,
`prem_hol_pay` decimal(20,2) NOT NULL,
`ot_pay` decimal(20,2) NOT NULL,
`gross_pay` decimal(20,2) NOT NULL,
`net_pay` decimal(20,2) NOT NULL,
`pay_sched` date DEFAULT NULL,
`visibility` tinyint(1) NOT NULL,
`timestamps` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `reg_pay`
--
INSERT INTO `reg_pay` (`id`, `emp_id`, `basic_hrs_pay`, `nds_pay`, `allow_pay`, `dispute`, `spl_hol_pay`, `reg_hol_pay`, `prem_hol_pay`, `ot_pay`, `gross_pay`, `net_pay`, `pay_sched`, `visibility`, `timestamps`) VALUES
(1, 1, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:44'),
(2, 2, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:44'),
(3, 3, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:45'),
(4, 4, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:45'),
(5, 5, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:45'),
(6, 6, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:45'),
(7, 7, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:45'),
(8, 8, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:46'),
(9, 9, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:46'),
(10, 10, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:46'),
(11, 11, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:46'),
(12, 12, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:46'),
(13, 13, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:46'),
(14, 14, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:47'),
(15, 15, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:47'),
(16, 16, '0.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:47'),
(17, 17, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:47'),
(18, 18, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:48'),
(19, 19, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:48'),
(20, 20, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:48'),
(21, 21, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:49'),
(22, 22, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:50'),
(23, 23, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:50'),
(24, 24, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:50'),
(25, 25, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:51'),
(26, 26, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:51'),
(27, 27, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:51'),
(28, 28, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:52'),
(29, 29, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:52'),
(30, 30, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:52'),
(31, 31, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:52'),
(32, 32, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:52'),
(33, 33, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:52'),
(34, 34, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:53'),
(35, 35, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:53'),
(36, 36, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:53'),
(37, 37, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:53'),
(38, 38, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:53'),
(39, 39, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:54'),
(40, 40, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:54'),
(41, 41, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:55'),
(42, 42, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:55'),
(43, 43, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:55'),
(44, 44, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:56'),
(45, 45, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:56'),
(46, 46, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:56'),
(47, 47, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:56'),
(48, 48, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:56'),
(49, 49, '0.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '0.00', '0.00', NULL, 1, '2022-02-28 22:04:56'),
(50, 1, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:33'),
(51, 2, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:33'),
(52, 3, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:33'),
(53, 4, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:33'),
(54, 5, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:34'),
(55, 6, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:34'),
(56, 7, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:34'),
(57, 8, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:34'),
(58, 9, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:34'),
(59, 10, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:34'),
(60, 11, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:34'),
(61, 12, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:35'),
(62, 13, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:35'),
(63, 14, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:35'),
(64, 15, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:35'),
(65, 16, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:35'),
(66, 17, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:35'),
(67, 18, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:35'),
(68, 19, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:36'),
(69, 20, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:36'),
(70, 21, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:36'),
(71, 22, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:36'),
(72, 23, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:36'),
(73, 24, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:36'),
(74, 25, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:36'),
(75, 26, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:36'),
(76, 27, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:37'),
(77, 28, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:37'),
(78, 29, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:37'),
(79, 30, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:37'),
(80, 31, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:37'),
(81, 32, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:38'),
(82, 33, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:38'),
(83, 34, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:38'),
(84, 35, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:38'),
(85, 36, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:38'),
(86, 37, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:39'),
(87, 38, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:40'),
(88, 39, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:40'),
(89, 40, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:40'),
(90, 41, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:40'),
(91, 42, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:40'),
(92, 43, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:40'),
(93, 44, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:41'),
(94, 45, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:41'),
(95, 46, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:41'),
(96, 47, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:41'),
(97, 48, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:41'),
(98, 1, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:41'),
(99, 49, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:41'),
(100, 2, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:41'),
(101, 3, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:42'),
(102, 4, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:42'),
(103, 5, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:42'),
(104, 6, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:42'),
(105, 7, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:42'),
(106, 8, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:42'),
(107, 9, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:42'),
(108, 10, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:43'),
(109, 11, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:43'),
(110, 12, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:43'),
(111, 13, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:43'),
(112, 14, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:43'),
(113, 15, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:43'),
(114, 16, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:44'),
(115, 17, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:45'),
(116, 18, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:45'),
(117, 19, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:45'),
(118, 1, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:45'),
(119, 20, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:45'),
(120, 2, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:45'),
(121, 21, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:45'),
(122, 3, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:45'),
(123, 22, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:46'),
(124, 4, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:46'),
(125, 23, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:46'),
(126, 1, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:46'),
(127, 5, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:46'),
(128, 1, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:46'),
(129, 2, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:46'),
(130, 24, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:46'),
(131, 6, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:46'),
(132, 2, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:46'),
(133, 25, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:47'),
(134, 3, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:47'),
(135, 7, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:47'),
(136, 3, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:47'),
(137, 26, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:47'),
(138, 4, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:47'),
(139, 8, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:47'),
(140, 4, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:47'),
(141, 27, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:47'),
(142, 5, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:47'),
(143, 9, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:47'),
(144, 5, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:48'),
(145, 6, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:48'),
(146, 28, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:48'),
(147, 10, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:48'),
(148, 6, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:48'),
(149, 7, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:49'),
(150, 11, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:49'),
(151, 29, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:49'),
(152, 7, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:49'),
(153, 8, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:49'),
(154, 12, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:49'),
(155, 30, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:49'),
(156, 8, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:49'),
(157, 9, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:49'),
(158, 13, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:49'),
(159, 31, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:50'),
(160, 9, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:50'),
(161, 10, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:50'),
(162, 14, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:50'),
(163, 32, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:50'),
(164, 10, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:50'),
(165, 11, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:50'),
(166, 15, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:50'),
(167, 33, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:50'),
(168, 11, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:51'),
(169, 16, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:51'),
(170, 12, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:51'),
(171, 34, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:51'),
(172, 12, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:51'),
(173, 17, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:52'),
(174, 13, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:52'),
(175, 35, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:52'),
(176, 13, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:52'),
(177, 18, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:52'),
(178, 14, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:52'),
(179, 36, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:53'),
(180, 19, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:53'),
(181, 14, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:53'),
(182, 15, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:53'),
(183, 37, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:53'),
(184, 15, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:53'),
(185, 20, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:53'),
(186, 16, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:53'),
(187, 38, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:53'),
(188, 16, '14400.00', '480.00', '0.00', '0.00', '320.00', '150.00', '150.00', '120.00', '15620.00', '13320.00', '2022-03-15', 0, '2022-03-03 18:45:53'),
(189, 21, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:53'),
(190, 17, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:53'),
(191, 39, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:54'),
(192, 17, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:54'),
(193, 22, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:54'),
(194, 18, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:54'),
(195, 18, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:54'),
(196, 40, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:54'),
(197, 23, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:54'),
(198, 19, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:54'),
(199, 41, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:54'),
(200, 19, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:54'),
(201, 20, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:55'),
(202, 24, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:55'),
(203, 20, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:55'),
(204, 42, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:55'),
(205, 21, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:55'),
(206, 25, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:55'),
(207, 21, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:55'),
(208, 43, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:55'),
(209, 22, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:56'),
(210, 26, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:56'),
(211, 44, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:56'),
(212, 22, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:56'),
(213, 23, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(214, 27, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(215, 23, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(216, 45, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(217, 24, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(218, 28, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(219, 46, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(220, 24, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(221, 25, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(222, 29, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(223, 47, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(224, 25, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(225, 26, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(226, 30, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:57'),
(227, 26, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:58'),
(228, 48, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:58'),
(229, 31, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:58'),
(230, 27, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:58'),
(231, 27, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:58'),
(232, 49, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:58'),
(233, 28, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:58'),
(234, 32, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:58'),
(235, 28, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:58'),
(236, 29, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:58'),
(237, 33, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:58'),
(238, 29, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:58'),
(239, 30, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:59'),
(240, 30, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:59'),
(241, 34, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:59'),
(242, 31, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:59'),
(243, 31, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:45:59'),
(244, 35, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:00'),
(245, 32, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:00'),
(246, 32, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:00'),
(247, 36, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:00'),
(248, 33, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:00'),
(249, 33, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:00'),
(250, 37, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:00'),
(251, 34, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:00'),
(252, 34, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:00'),
(253, 38, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:00'),
(254, 35, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:00'),
(255, 35, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:00'),
(256, 39, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:01'),
(257, 36, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:01'),
(258, 36, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:01'),
(259, 37, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:01'),
(260, 40, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:01'),
(261, 37, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:01'),
(262, 38, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:01'),
(263, 41, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:01'),
(264, 38, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:01'),
(265, 39, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:01'),
(266, 42, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:01'),
(267, 39, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:01'),
(268, 40, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:02'),
(269, 43, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:02'),
(270, 40, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:02'),
(271, 41, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:02'),
(272, 44, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:02'),
(273, 41, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:02'),
(274, 42, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:02'),
(275, 42, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:02'),
(276, 45, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:02'),
(277, 43, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:02'),
(278, 43, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:03'),
(279, 46, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:03'),
(280, 44, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:03'),
(281, 44, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:03'),
(282, 47, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:03'),
(283, 45, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:03'),
(284, 45, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:03'),
(285, 48, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:03'),
(286, 46, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:03'),
(287, 46, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:03'),
(288, 49, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:03'),
(289, 47, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:03'),
(290, 47, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:04'),
(291, 48, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:04'),
(292, 48, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:04'),
(293, 49, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:04'),
(294, 49, '6800.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '120.00', '7770.00', '5470.00', '2022-03-15', 0, '2022-03-03 18:46:05');
-- --------------------------------------------------------
--
-- Table structure for table `reg_rate`
--
CREATE TABLE `reg_rate` (
`id` int(11) NOT NULL,
`emp_id` int(11) NOT NULL,
`daily_rate` decimal(20,2) NOT NULL,
`hrly_rate` decimal(20,2) NOT NULL,
`hr_rate` decimal(20,2) NOT NULL,
`allow_hr_rate` decimal(20,2) NOT NULL,
`nd_rate` decimal(20,2) NOT NULL,
`timestamps` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `reg_rate`
--
INSERT INTO `reg_rate` (`id`, `emp_id`, `daily_rate`, `hrly_rate`, `hr_rate`, `allow_hr_rate`, `nd_rate`, `timestamps`) VALUES
(1, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:44'),
(2, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:45'),
(3, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:45'),
(4, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:45'),
(5, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:45'),
(6, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:45'),
(7, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:46'),
(8, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:46'),
(9, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:46'),
(10, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:46'),
(11, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:46'),
(12, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:46'),
(13, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:47'),
(14, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:47'),
(15, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:47'),
(16, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:47'),
(17, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:47'),
(18, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:48'),
(19, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:48'),
(20, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:49'),
(21, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:49'),
(22, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:50'),
(23, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:50'),
(24, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:51'),
(25, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:51'),
(26, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:51'),
(27, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:51'),
(28, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:52'),
(29, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:52'),
(30, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:52'),
(31, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:52'),
(32, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:52'),
(33, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:53'),
(34, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:53'),
(35, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:53'),
(36, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:53'),
(37, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:53'),
(38, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:54'),
(39, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:54'),
(40, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:55'),
(41, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:55'),
(42, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:55'),
(43, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:55'),
(44, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:56'),
(45, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:56'),
(46, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:56'),
(47, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:56'),
(48, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:56'),
(49, 49, '680.00', '85.00', '0.00', '0.00', '5.00', '2022-02-28 22:04:56');
-- --------------------------------------------------------
--
-- Table structure for table `sales_manhour`
--
CREATE TABLE `sales_manhour` (
`id` int(11) NOT NULL,
`emp_id` int(11) NOT NULL,
`total_sales` decimal(20,2) NOT NULL,
`training_days` decimal(20,2) NOT NULL,
`reg_hol_hrs` decimal(20,2) NOT NULL,
`total_num_days` decimal(20,2) NOT NULL,
`spl_hrs` decimal(20,2) NOT NULL,
`prem_hrs` decimal(20,2) NOT NULL,
`timestamps` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `sales_manhour`
--
INSERT INTO `sales_manhour` (`id`, `emp_id`, `total_sales`, `training_days`, `reg_hol_hrs`, `total_num_days`, `spl_hrs`, `prem_hrs`, `timestamps`) VALUES
(1, 50, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:34'),
(2, 51, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:34'),
(3, 52, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:35'),
(4, 53, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:35'),
(5, 54, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:35'),
(6, 55, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:35'),
(7, 56, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:35'),
(8, 57, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:35'),
(9, 58, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:36'),
(10, 59, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:36'),
(11, 60, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:36'),
(12, 61, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:36'),
(13, 62, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:36'),
(14, 63, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:36'),
(15, 64, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:37'),
(16, 65, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:37'),
(17, 66, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:37'),
(18, 67, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:25:37'),
(19, 68, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:24'),
(20, 69, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:25'),
(21, 70, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:25'),
(22, 71, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:25'),
(23, 72, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:25'),
(24, 73, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:25'),
(25, 74, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:26'),
(26, 75, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:26'),
(27, 76, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:26'),
(28, 77, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:26'),
(29, 78, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:26'),
(30, 79, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:26'),
(31, 80, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:26'),
(32, 81, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:27'),
(33, 82, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:27'),
(34, 83, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:27'),
(35, 84, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:27'),
(36, 85, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-03 23:27:28'),
(37, 68, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:01'),
(38, 69, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:01'),
(39, 70, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:01'),
(40, 71, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:01'),
(41, 72, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:01'),
(42, 73, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:02'),
(43, 74, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:02'),
(44, 75, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:02'),
(45, 76, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:02'),
(46, 77, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:02'),
(47, 78, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:02'),
(48, 79, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:02'),
(49, 80, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:02'),
(50, 81, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:03'),
(51, 82, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:03'),
(52, 83, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:03'),
(53, 84, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:03'),
(54, 85, '80.00', '3.00', '2.00', '10.00', '0.00', '0.00', '2022-03-04 02:48:03');
-- --------------------------------------------------------
--
-- Table structure for table `sales_pay`
--
CREATE TABLE `sales_pay` (
`id` int(11) NOT NULL,
`emp_id` int(11) NOT NULL,
`sales_pay` decimal(20,2) NOT NULL,
`training_pay` decimal(20,2) NOT NULL,
`allow_pay` decimal(20,2) NOT NULL,
`dispute` decimal(20,2) NOT NULL,
`spl_pay` decimal(20,2) NOT NULL,
`reg_hol_pay` decimal(20,2) NOT NULL,
`premium_pay` decimal(20,2) NOT NULL,
`ot_pay` decimal(20,2) NOT NULL,
`gross_pay` decimal(20,2) NOT NULL,
`net_pay` decimal(20,2) NOT NULL,
`pay_sched` date DEFAULT NULL,
`visibility` tinyint(1) NOT NULL,
`timestamps` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `sales_pay`
--
INSERT INTO `sales_pay` (`id`, `emp_id`, `sales_pay`, `training_pay`, `allow_pay`, `dispute`, `spl_pay`, `reg_hol_pay`, `premium_pay`, `ot_pay`, `gross_pay`, `net_pay`, `pay_sched`, `visibility`, `timestamps`) VALUES
(1, 50, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', '2022-03-15', 1, '2022-03-03 23:25:34'),
(2, 51, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:34'),
(3, 52, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:34'),
(4, 53, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:35'),
(5, 54, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:35'),
(6, 55, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:35'),
(7, 56, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:35'),
(8, 57, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:35'),
(9, 58, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:36'),
(10, 59, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:36'),
(11, 60, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:36'),
(12, 61, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:36'),
(13, 62, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:36'),
(14, 63, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:36'),
(15, 64, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:37'),
(16, 65, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:37'),
(17, 66, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:37'),
(18, 67, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:25:37'),
(19, 68, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:24'),
(20, 69, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:25'),
(21, 70, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:25'),
(22, 71, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:25'),
(23, 72, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:25'),
(24, 73, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:25'),
(25, 74, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:26'),
(26, 75, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:26'),
(27, 76, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:26'),
(28, 77, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:26'),
(29, 78, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:26'),
(30, 79, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:26'),
(31, 80, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:26'),
(32, 81, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:27'),
(33, 82, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:27'),
(34, 83, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:27'),
(35, 84, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:27'),
(36, 85, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 1, '2022-03-03 23:27:27'),
(37, 68, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:00'),
(38, 69, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:01'),
(39, 70, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:01'),
(40, 71, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:01'),
(41, 72, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:01'),
(42, 73, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:01'),
(43, 74, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:02'),
(44, 75, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:02'),
(45, 76, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:02'),
(46, 77, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:02'),
(47, 78, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:02'),
(48, 79, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:02'),
(49, 80, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:02'),
(50, 81, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:02'),
(51, 82, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:03'),
(52, 83, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:03'),
(53, 84, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:03'),
(54, 85, '3500.00', '300.00', '0.00', '0.00', '280.00', '150.00', '120.00', '135.00', '4485.00', '2185.00', NULL, 0, '2022-03-04 02:48:03');
-- --------------------------------------------------------
--
-- Table structure for table `sales_rate`
--
CREATE TABLE `sales_rate` (
`id` int(11) NOT NULL,
`emp_id` int(11) NOT NULL,
`training_rate` decimal(20,2) NOT NULL,
`sales_rate` decimal(20,2) NOT NULL,
`allow_rate` decimal(20,2) NOT NULL,
`nd_rate` decimal(20,2) NOT NULL,
`timestamps` datetime NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `sales_rate`
--
INSERT INTO `sales_rate` (`id`, `emp_id`, `training_rate`, `sales_rate`, `allow_rate`, `nd_rate`, `timestamps`) VALUES
(1, 50, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:34'),
(2, 51, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:34'),
(3, 52, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:34'),
(4, 53, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:35'),
(5, 54, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:35'),
(6, 55, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:35'),
(7, 56, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:35'),
(8, 57, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:35'),
(9, 58, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:36'),
(10, 59, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:36'),
(11, 60, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:36'),
(12, 61, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:36'),
(13, 62, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:36'),
(14, 63, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:36'),
(15, 64, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:37'),
(16, 65, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:37'),
(17, 66, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:37'),
(18, 67, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:25:37'),
(19, 68, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:24'),
(20, 69, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:25'),
(21, 70, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:25'),
(22, 71, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:25'),
(23, 72, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:25'),
(24, 73, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:25'),
(25, 74, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:26'),
(26, 75, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:26'),
(27, 76, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:26'),
(28, 77, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:26'),
(29, 78, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:26'),
(30, 79, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:26'),
(31, 80, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:26'),
(32, 81, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:27'),
(33, 82, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:27'),
(34, 83, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:27'),
(35, 84, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:27'),
(36, 85, '120.00', '350.00', '100.00', '5.00', '2022-03-03 23:27:27'),
(37, 68, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:01'),
(38, 69, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:01'),
(39, 70, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:01'),
(40, 71, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:01'),
(41, 72, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:01'),
(42, 73, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:01'),
(43, 74, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:02'),
(44, 75, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:02'),
(45, 76, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:02'),
(46, 77, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:02'),
(47, 78, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:02'),
(48, 79, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:02'),
(49, 80, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:02'),
(50, 81, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:03'),
(51, 82, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:03'),
(52, 83, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:03'),
(53, 84, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:03'),
(54, 85, '120.00', '350.00', '100.00', '5.00', '2022-03-04 02:48:03');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` int(11) NOT NULL,
`emp_id` int(11) NOT NULL,
`fullname` varchar(255) NOT NULL,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`init_pass` varchar(255) NOT NULL,
`timestamps` datetime NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Indexes for dumped tables
--
--
-- Indexes for table `deductions`
--
ALTER TABLE `deductions`
ADD PRIMARY KEY (`id`),
ADD KEY `emp_id` (`emp_id`);
--
-- Indexes for table `employees`
--
ALTER TABLE `employees`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `reg_manhour`
--
ALTER TABLE `reg_manhour`
ADD PRIMARY KEY (`id`),
ADD KEY `emp_id` (`emp_id`);
--
-- Indexes for table `reg_pay`
--
ALTER TABLE `reg_pay`
ADD PRIMARY KEY (`id`),
ADD KEY `emp_id` (`emp_id`);
--
-- Indexes for table `reg_rate`
--
ALTER TABLE `reg_rate`
ADD PRIMARY KEY (`id`),
ADD KEY `emp_id` (`emp_id`);
--
-- Indexes for table `sales_manhour`
--
ALTER TABLE `sales_manhour`
ADD PRIMARY KEY (`id`),
ADD KEY `emp_id` (`emp_id`);
--
-- Indexes for table `sales_pay`
--
ALTER TABLE `sales_pay`
ADD PRIMARY KEY (`id`),
ADD KEY `emp_id` (`emp_id`);
--
-- Indexes for table `sales_rate`
--
ALTER TABLE `sales_rate`
ADD PRIMARY KEY (`id`),
ADD KEY `emp_id` (`emp_id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `deductions`
--
ALTER TABLE `deductions`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=349;
--
-- AUTO_INCREMENT for table `employees`
--
ALTER TABLE `employees`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=86;
--
-- AUTO_INCREMENT for table `reg_manhour`
--
ALTER TABLE `reg_manhour`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=295;
--
-- AUTO_INCREMENT for table `reg_pay`
--
ALTER TABLE `reg_pay`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=295;
--
-- AUTO_INCREMENT for table `reg_rate`
--
ALTER TABLE `reg_rate`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=50;
--
-- AUTO_INCREMENT for table `sales_manhour`
--
ALTER TABLE `sales_manhour`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;
--
-- AUTO_INCREMENT for table `sales_pay`
--
ALTER TABLE `sales_pay`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;
--
-- AUTO_INCREMENT for table `sales_rate`
--
ALTER TABLE `sales_rate`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
-- 12.30 character set and collations
-- charcter set is used map character set to numbers
show char set;
-- default collacation -- ci: case insensitive
-- Maxlen : max length for storing each character, charset with low maxlen is used for reducing database size
-- at database level
create database db_name
character set latin1;
-- at table level
create table table1
(
customer_id int primary key auto_increment,
fitst_name varchar(50) not null,
point int not null default 0,
email varchar(255) not null unique
)
character set latin1;
-- at column level
-- fitst_name varchar(50) character set
create table table2
(
customer_id int primary key auto_increment,
fitst_name varchar(50) character set latin1 not null,
point int not null default 0,
email varchar(255) not null unique
);
-- same format goes for alter statements |
<gh_stars>0
CREATE INDEX ix_i1 ON t1 (a);
|
<gh_stars>0
SELECT
id,
name,
description,
objective_id AS "objectiveId",
status
FROM ${ schema~ }.indicator
ORDER BY objective_id |
INSERT INTO `zapateria`.`producto_grupo` (`nombre`, `descripcion`) VALUES ('Primavera', 'Ninguna');
INSERT INTO `zapateria`.`producto_grupo` (`nombre`, `descripcion`) VALUES ('Verano', 'Ninguna');
INSERT INTO `zapateria`.`producto_grupo` (`nombre`, `descripcion`) VALUES ('Otoño', 'Ninguna');
INSERT INTO `zapateria`.`producto_grupo` (`nombre`, `descripcion`) VALUES ('Invierno', 'Ninguna');
INSERT INTO `zapateria`.`producto_grupo` (`nombre`, `descripcion`) VALUES ('Otoño-Invierno', 'Ninguna');
INSERT INTO `zapateria`.`producto_grupo` (`nombre`, `descripcion`) VALUES ('Primavera-Verano', 'Ninguna'); |
<filename>src/db/stuff/functions.sql
-- SELECT
-- n.nspname as "Schema",
-- p.proname as "Name",
-- pg_catalog.pg_get_function_result(p.oid) as "Result data type",
-- pg_catalog.pg_get_function_arguments(p.oid) as "Argument data types",
-- pg_catalog.pg_get_functiondef(p.oid),
-- CASE
-- WHEN p.proisagg THEN 'agg'
-- WHEN p.proiswindow THEN 'window'
-- WHEN p.prorettype = 'pg_catalog.trigger'::pg_catalog.regtype THEN 'trigger'
-- ELSE 'normal'
-- END as "Type"
-- FROM pg_catalog.pg_proc p
-- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = p.pronamespace
-- WHERE n.nspname OPERATOR(pg_catalog.~) '^(pde)$'
-- ORDER BY 1, 2, 4;
-- SELECT pg_catalog.pg_get_functiondef('pde.build_minor'::regproc);
SELECT schema_name
FROM information_schema.schemata
WHERE schema_name NOT LIKE 'pg_%'
AND schema_name != 'public'
AND schema_name != 'information_schema'
;
-- SELECT table_name
-- FROM information_schema.tables
-- WHERE table_type='BASE TABLE'
-- AND table_schema = 'pde'
-- ;
-- SELECT
-- column_name
-- ,data_type
-- ,is_nullable
-- ,column_default
-- FROM information_schema.columns
-- WHERE table_name='minor'
-- AND table_schema = 'pde'
-- ;
-- SELECT
-- *
-- FROM information_schema.columns
-- WHERE table_name='minor'
-- AND table_schema = 'pde'
-- limit 1
-- ;
-- SELECT
-- table_schema
-- ,table_name
-- ,column_name
-- ,constraint_schema
-- ,constraint_name
-- FROM information_schema.constraint_column_usage
-- WHERE table_name='minor'
-- AND table_schema = 'pde'
-- ;
-- SELECT
-- *
-- from information_schema.key_column_usage
-- WHERE table_name='minor'
-- AND table_schema = 'pde'
-- ;
-- SELECT
-- *
-- FROM information_schema.constraint_column_usage
-- WHERE table_name='minor'
-- AND table_schema = 'pde'
-- limit 1
-- ;
|
<filename>OLAP/lab_04/Lab4.sql
-- CREATING STAGE TABLES
CREATE TABLE S_INVOICE (
ID_STUFF NUMBER,
NAME VARCHAR2(64),
SURNAME VARCHAR2(64),
EMAIL VARCHAR2(64),
INVOICE NUMBER,
SUPPLIER VARCHAR2(128),
PRODUCT VARCHAR2(128),
QUANTITY NUMBER(10,2),
PRICE INTEGER,
INVOICE_DATE DATE
);
CREATE TABLE S_STORE (
NAME VARCHAR2(64),
SURNAME VARCHAR2(64),
SUPPLIER VARCHAR2(124),
SHELF VARCHAR2(124),
PRODUCT VARCHAR2(124),
QUANTITY VARCHAR2(124),
OPER_TYPE VARCHAR2(124),
STORE_DATE DATE
);
-- CREATING DESTINATION TABLES
CREATE TABLE D_PAYMENT_TYPE
(
ID_TYPE NUMBER NOT NULL,
PAYMENT_TYPE_NAME VARCHAR2(128),
DESCRIPTION VARCHAR2(256)
);
ALTER TABLE D_PAYMENT_TYPE
ADD CONSTRAINT PK_D_PAYMENT_TYPE PRIMARY KEY (ID_TYPE);
CREATE TABLE D_POSITION
(
ID_POSITION NUMBER NOT NULL,
POSITION_NAME VARCHAR2(128) NOT NULL,
SALARY NUMBER,
DESCRIPTION VARCHAR2(1024)
);
ALTER TABLE D_POSITION
ADD CONSTRAINT PK_D_POSITION PRIMARY KEY (ID_POSITION);
CREATE TABLE D_STUFF
(
ID_STUFF NUMBER NOT NULL,
ID_POSITION NUMBER NOT NULL,
NAME VARCHAR2(64),
SURNAME VARCHAR2(64),
PHONE VARCHAR2(64),
ADDRESS VARCHAR2(256),
EMAIL VARCHAR2(64)
);
ALTER TABLE D_STUFF
ADD CONSTRAINT PK_D_STUFF PRIMARY KEY (ID_STUFF);
CREATE TABLE D_INVOICE
(
ID_INVOICE NUMBER NOT NULL,
ID_TYPE NUMBER NOT NULL,
ID_STUFF NUMBER NOT NULL,
PURCHASE_TIME DATE
);
ALTER TABLE D_INVOICE
ADD CONSTRAINT PK_D_INVOICE PRIMARY KEY (ID_INVOICE);
CREATE TABLE D_PRODUCT_TYPE
(
ID_PRODUCT_TYPE NUMBER NOT NULL,
PRODUCT_TYPE_NAME VARCHAR2(128)
);
ALTER TABLE D_PRODUCT_TYPE
ADD CONSTRAINT PK_D_PRODUCT_TYPE PRIMARY KEY (ID_PRODUCT_TYPE);
CREATE TABLE D_SUPPLIER
(
ID_SUPPLIER NUMBER NOT NULL,
SUPPLIER_NAME VARCHAR2(128),
SUPPLIER_INFO VARCHAR2(1024)
);
ALTER TABLE D_SUPPLIER
ADD CONSTRAINT PK_D_SUPPLIER PRIMARY KEY (ID_SUPPLIER);
CREATE TABLE D_UNIT
(
ID_UNIT NUMBER NOT NULL,
UNIT_NAME VARCHAR2(128),
DESCRIPTION VARCHAR2(512)
);
ALTER TABLE D_UNIT
ADD CONSTRAINT PK_D_UNIT PRIMARY KEY (ID_UNIT);
CREATE TABLE D_PRODUCT
(
ID_PRODUCT NUMBER NOT NULL,
ID_PRODUCT_TYPE NUMBER NOT NULL,
ID_SUPPLIER NUMBER NOT NULL,
ID_UNIT NUMBER NOT NULL,
PRODUCT_NAME VARCHAR2(128) NOT NULL,
DESCRIPTION VARCHAR2(128),
PRICE INTEGER
);
ALTER TABLE D_PRODUCT
ADD CONSTRAINT PK_D_PRODUCT PRIMARY KEY (ID_PRODUCT);
CREATE TABLE D_INVOICE_DETAIL
(
ID_INVOICE NUMBER NOT NULL,
ID_PRODUCT NUMBER NOT NULL,
QUANTITY NUMBER(10,2) NOT NULL,
DESCRIPTION VARCHAR2(500)
);
ALTER TABLE D_INVOICE_DETAIL
ADD CONSTRAINT PK_D_INVOICE_DETAIL PRIMARY KEY (ID_INVOICE, ID_PRODUCT);
CREATE TABLE D_TYPE_OPER
(
ID_OPER_TYPE INTEGER NOT NULL,
NAME_OPER VARCHAR2(3) NOT NULL,
DESCRIPTION VARCHAR2(100)
);
ALTER TABLE D_TYPE_OPER
ADD CONSTRAINT PK_D_TYPE_OPER PRIMARY KEY (ID_OPER_TYPE);
CREATE TABLE D_STORE
(
ID_STORE NUMBER NOT NULL,
ID_PRODUCT NUMBER NOT NULL,
SHELF VARCHAR2(10) NOT NULL,
DATE_OPER DATE NOT NULL,
ID_OPER_TYPE INTEGER NOT NULL,
QUANTITY NUMBER NOT NULL
);
ALTER TABLE D_STORE
ADD CONSTRAINT PK_D_STORE PRIMARY KEY (ID_STORE);
-- LOAD TO TABLE INVOIVE FROM INVOIVE
CREATE OR REPLACE PROCEDURE LOAD_INVOICE IS
CURSOR C_INVOICE IS
SELECT DISTINCT
ID_STUFF,
STAFF_NAME,
E_MAIL,
INVOICE,
SUPPLIER,
PRODUCT,
QUANTITY,
PRICE,
INVOICE_DATE
FROM INVOICE
WHERE REGEXP_LIKE (E_MAIL, '^[A-ZA-Z]+[A-ZA-Z0-9. ]+@[A-ZA-Z0-9.-]+\.[A-ZA-Z]{2,4}$')
AND REGEXP_LIKE (SUPPLIER, '^[A-ZA-Z]')
AND REGEXP_LIKE (PRODUCT, '^TV-+[0-9]+$')
AND REGEXP_LIKE (INVOICE, '^INV-([0-9][0-9]|[0-9][0-9][0-9])$')
AND REGEXP_LIKE (QUANTITY, '^+[0-9]+$')
AND REGEXP_LIKE (INVOICE_DATE, '^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d$');
BEGIN
FOR INVOICE_ROW IN C_INVOICE
LOOP
INSERT INTO S_INVOICE (ID_STUFF, NAME, SURNAME, EMAIL, INVOICE,
SUPPLIER, PRODUCT, QUANTITY, PRICE, INVOICE_DATE)
VALUES (INVOICE_ROW.ID_STUFF, REGEXP_SUBSTR (INVOICE_ROW.STAFF_NAME, '[^ ]+', 1, 1),
REGEXP_SUBSTR (INVOICE_ROW.STAFF_NAME, '[^ ]+', 1, 2), INVOICE_ROW.E_MAIL,
REGEXP_SUBSTR (INVOICE_ROW.INVOICE, '[^-]+', 1, 2), INVOICE_ROW.SUPPLIER,
INVOICE_ROW.PRODUCT, INVOICE_ROW.QUANTITY, INVOICE_ROW.PRICE, INVOICE_ROW.INVOICE_DATE);
END LOOP;
END;
-- LOAD TO TABLE STORE FROM STORE
CREATE OR REPLACE PROCEDURE LOAD_STORE IS
CURSOR C_STORE IS
SELECT DISTINCT
REGEXP_SUBSTR (STUFF_NAME, '[^ ]+', 1, 1) AS NAME,
REGEXP_SUBSTR (STUFF_NAME, '[^ ]+', 1, 2) AS SURNAME,
SUPPLIER,
SHELF,
PRODUCT,
QUANTITY,
OPER_TYPE,
STORE_DATE
FROM STORE
WHERE SHELF < 100
AND REGEXP_LIKE (STORE_DATE, '^(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d$')
AND REGEXP_LIKE(OPER_TYPE, '^+(IN|OUT)+$', 'i')
AND REGEXP_LIKE (QUANTITY, '^+[0-9]+$')
AND REGEXP_LIKE (SUPPLIER, '^[a-zA-Z]+$')
AND REGEXP_LIKE (PRODUCT, '^TV-+[0-9]+$')
AND REGEXP_LIKE (REGEXP_SUBSTR (STUFF_NAME, '[^ ]+', 1, 1), '^[a-zA-Z]+$')
AND REGEXP_LIKE (REGEXP_SUBSTR (STUFF_NAME, '[^ ]+', 1, 2), '^[a-zA-Z]+$');
BEGIN
FOR STORE_ROW IN C_STORE
LOOP
INSERT INTO S_STORE (NAME, SURNAME, SUPPLIER, SHELF, PRODUCT,
QUANTITY, OPER_TYPE, STORE_DATE)
VALUES (STORE_ROW.NAME, STORE_ROW.SURNAME, STORE_ROW.SUPPLIER,
STORE_ROW.SHELF, STORE_ROW.PRODUCT, STORE_ROW.QUANTITY, STORE_ROW.OPER_TYPE, STORE_ROW.STORE_DATE);
END LOOP;
END;
-- LOADING DATA TO STAGE TABLES
EXECUTE LOAD_INVOICE;
EXECUTE LOAD_STORE;
-- MERGE INTO DESTINATION TABLES
CREATE SEQUENCE STUFF_ID
START WITH 1
INCREMENT BY 1
NOCACHE
NOCYCLE;
CREATE SEQUENCE SUPPLIER_ID
START WITH 1
INCREMENT BY 1
NOCACHE
NOCYCLE;
CREATE SEQUENCE PRODUCT_ID
START WITH 1
INCREMENT BY 1
NOCACHE
NOCYCLE;
CREATE SEQUENCE OPER_TYPE_ID
START WITH 1
INCREMENT BY 1
NOCACHE
NOCYCLE;
CREATE SEQUENCE STORE_ID
START WITH 1
INCREMENT BY 1
NOCACHE
NOCYCLE;
MERGE INTO D_STUFF D USING
(
SELECT DISTINCT
ID_STUFF,
NAME,
SURNAME,
EMAIL
FROM S_INVOICE
)
S ON (S.ID_STUFF = D.ID_STUFF)
WHEN MATCHED THEN
UPDATE SET NAME = S.NAME, SURNAME = S.SURNAME, EMAIL = S.EMAIL
WHEN NOT MATCHED THEN
INSERT VALUES (S.ID_STUFF, 1, S.NAME, S.SURNAME, NULL,
NULL, S.EMAIL);
MERGE INTO D_STUFF D USING
(
SELECT DISTINCT
NAME,
SURNAME
FROM S_STORE
)
S ON (S.NAME = D.NAME AND S.SURNAME = D.SURNAME)
WHEN NOT MATCHED THEN
INSERT VALUES (STUFF_ID.NEXTVAL, 1, S.NAME, S.SURNAME, NULL,
NULL, NULL);
MERGE INTO D_SUPPLIER D USING
(
SELECT DISTINCT
SUPPLIER
FROM S_INVOICE
)
S ON (S.SUPPLIER = D.SUPPLIER_NAME)
WHEN NOT MATCHED THEN
INSERT VALUES (SUPPLIER_ID.NEXTVAL, S.SUPPLIER, NULL);
MERGE INTO D_SUPPLIER D USING
(
SELECT DISTINCT
SUPPLIER
FROM S_STORE
)
S ON (S.SUPPLIER = D.SUPPLIER_NAME)
WHEN NOT MATCHED THEN
INSERT VALUES (SUPPLIER_ID.NEXTVAL, S.SUPPLIER, NULL);
MERGE INTO D_PRODUCT D USING
(
SELECT DISTINCT
T1.PRODUCT,
T1.PRICE,
T2.ID_SUPPLIER
FROM S_INVOICE T1
JOIN D_SUPPLIER T2
ON (T1.SUPPLIER = T2.SUPPLIER_NAME)
)
S ON (S.PRODUCT = D.PRODUCT_NAME AND D.ID_SUPPLIER = S.ID_SUPPLIER)
WHEN MATCHED THEN
UPDATE SET
PRICE = S.PRICE
WHEN NOT MATCHED THEN
INSERT VALUES (PRODUCT_ID.NEXTVAL, 1, S.ID_SUPPLIER, 1,
S.PRODUCT, NULL, S.PRICE);
MERGE INTO D_PRODUCT D USING
(
SELECT DISTINCT
T1.PRODUCT,
T2.ID_SUPPLIER
FROM S_STORE T1
JOIN D_SUPPLIER T2
ON (T1.SUPPLIER = T2.SUPPLIER_NAME)
)
S ON (S.PRODUCT = D.PRODUCT_NAME AND D.ID_SUPPLIER = S.ID_SUPPLIER)
WHEN NOT MATCHED THEN
INSERT VALUES (PRODUCT_ID.NEXTVAL, 1, S.ID_SUPPLIER, 1,
S.PRODUCT, NULL, 1000);
MERGE INTO D_INVOICE D USING
(
SELECT DISTINCT
T1.INVOICE,
T1.ID_STUFF,
T1.INVOICE_DATE
FROM S_INVOICE T1
)
S ON (D.ID_INVOICE = S.INVOICE)
WHEN MATCHED THEN
UPDATE SET ID_STUFF = S.ID_STUFF, PURCHASE_TIME = S.INVOICE_DATE
WHEN NOT MATCHED THEN
INSERT VALUES (S.INVOICE, 1, S.ID_STUFF, S.INVOICE_DATE);
MERGE INTO D_INVOICE_DETAIL D USING
(
SELECT DISTINCT
T1.INVOICE,
T3.ID_PRODUCT,
T1.QUANTITY
FROM S_INVOICE T1
JOIN D_SUPPLIER T2
ON (T1.SUPPLIER = T2.SUPPLIER_NAME)
JOIN D_PRODUCT T3
ON (T1.PRODUCT = T3.PRODUCT_NAME AND T2.ID_SUPPLIER = T3.ID_SUPPLIER)
)
S ON (D.ID_INVOICE = S.INVOICE AND D.ID_PRODUCT = S.ID_PRODUCT)
WHEN MATCHED THEN
UPDATE SET QUANTITY = S.QUANTITY
WHEN NOT MATCHED THEN
INSERT VALUES (S.INVOICE, S.ID_PRODUCT, S.QUANTITY, NULL);
MERGE INTO D_TYPE_OPER D USING
(
SELECT DISTINCT
T1.OPER_TYPE
FROM S_STORE T1
)
S ON (UPPER(D.NAME_OPER) = UPPER(S.OPER_TYPE))
WHEN NOT MATCHED THEN
INSERT VALUES (OPER_TYPE_ID.NEXTVAL, UPPER(S.OPER_TYPE), NULL);
MERGE INTO D_STORE D USING
(
SELECT DISTINCT
T2.ID_PRODUCT,
T1.SHELF,
T1.STORE_DATE,
T3.ID_OPER_TYPE,
T1.QUANTITY
FROM S_STORE T1
JOIN D_SUPPLIER T4
ON (T1.SUPPLIER = T4.SUPPLIER_NAME)
JOIN D_PRODUCT T2
ON (T1.PRODUCT = T2.PRODUCT_NAME AND T2.ID_SUPPLIER = T4.ID_SUPPLIER)
JOIN D_TYPE_OPER T3
ON (T3.NAME_OPER = UPPER(T1.OPER_TYPE))
)
S ON (D.ID_PRODUCT = S.ID_PRODUCT AND D.SHELF = S.SHELF AND D.DATE_OPER = S.STORE_DATE
AND D.ID_OPER_TYPE = S.ID_OPER_TYPE)
WHEN MATCHED THEN
UPDATE SET QUANTITY = S.QUANTITY
WHEN NOT MATCHED THEN
INSERT VALUES (STORE_ID.NEXTVAL, S.ID_PRODUCT, S.SHELF, S.STORE_DATE, S.ID_OPER_TYPE,
S.QUANTITY);
-- SELECT FROM TABLES
SELECT * FROM D_STUFF;
SELECT * FROM D_SUPPLIER;
SELECT * FROM D_PRODUCT;
SELECT * FROM D_INVOICE;
SELECT * FROM D_INVOICE_DETAIL;
SELECT * FROM D_TYPE_OPER;
SELECT * FROM D_STORE; |
<gh_stars>1-10
CREATE TABLE Tweet
(
Id STRING( MAX) NOT NULL,
Author STRING( MAX) NOT NULL,
Content STRING( MAX) NOT NULL,
Count INT64 NOT NULL,
Favos ARRAY<STRING(MAX)> NOT NULL,
Sort INT64 NOT NULL,
CreatedAt TIMESTAMP NOT NULL,
UpdatedAt TIMESTAMP NOT NULL,
CommitedAt TIMESTAMP NOT NULL OPTIONS (allow_commit_timestamp= true),
) PRIMARY KEY (Id);
CREATE INDEX TweetCountDesc
ON Tweet (
Count DESC
);
CREATE INDEX TweetSortAsc
ON Tweet (
Sort
); |
-- file:triggers.sql ln:16 expect:true
insert into pkeys values (40, '4')
|
-- AlterTable
ALTER TABLE "users" ADD COLUMN "discordRefreshToken" VARCHAR(255);
|
<filename>dvd_rental_store/views/drs_staff_list_v.sql
prompt - view drs_staff_list_v
create or replace view drs_staff_list_v as
select
s.staff_id as id,
s.first_name || ' ' || s.last_name as name,
a.address as address,
a.postal_code as zip_code,
a.phone as phone,
ci.city as city,
co.country as country,
s.store_id as sid
from
drs_staff s
join drs_address a on s.address_id = a.address_id
join drs_city ci on a.city_id = ci.city_id
join drs_country co on ci.country_id = co.country_id;
|
--List the following details of each employee: employee number, last name, first name, sex, and salary.
SELECT e.emp_no, e.last_name, e.first_name, e.sex, s.salary
FROM employees AS e
INNER JOIN salaries AS s ON
e.emp_no=s.emp_no;
--List first name, last name, and hire date for employees who were hired in 1986.
select
first_name,last_name,hire_date
from employees
where hire_date is between '12/31/1985' and '1/1/1987';
--List the manager of each department with the following information: department number, department name, the manager's employee number, last name, first name.
select
dp.dept_no, dp.dept_name, dp.emp_no, e.last_name, e.first_name
from dept_manager dp
join departments depart
on dp.dept_no = depart.dept_no
join employees e
on dp.emp_no = e.emp_no;
--List the department of each employee with the following information: employee number, last name, first name, and department name.
select
e.emp_no, e.last_name, e.first_name, depart.dept_name
from employees e
join dept_manager dp
on e.emp_no = dp.emp_no
join departments depart
on dp.dept_no = depart.dept_no;
--List first name, last name, and sex for employees whose first name is "Hercules" and last names begin with "B."
select
first_name,last_name, sex
from employees
where first_name = "Hercules" and last_name like 'B%'
--List all employees in the Sales department, including their employee number, last name, first name, and department name.
select
emp_no, last_name, first_name, d.dept_name
from employees e
where emp_no
in (select emp_no
from dept_emp de
where dept_no
in (select dept_no,dept_no
from departments d
where dept_name = 'Sales'
)
)
);
--List all employees in the Sales and Development departments, including their employee number, last name, first name, and department name.
select
e.emp_no, e.last_name, es.first_name, departments.dept_name
from employees e
join dept_emp de
on e.emp_no = de.emp_no
join departments d
on de.dept_no = d.dept_no
where d.dept_name = 'Sales' or d.dept_name = 'Development' ;
--In descending order, list the frequency count of employee last names, i.e., how many employees share each last name.
SELECT last_name, count(last_name) AS lnc
FROM employees
GROUP BY last_name
ORDER BY lnc desc; |
INSERT INTO covidtest.Resultats_tests (Nom,Prenom,Resultat,idDisponibilite_test)
VALUES
('Zase','Fred','Négatif','1'),
('Kui','Lucie','Négatif','2'),
('Xers','Marc','Négatif','3'),
('Alfo','Julie','Positif','4');
SELECT *
FROM Resultats_tests
SELECT Count(*)
FROM Resultats_tests
WHERE Resultat = 'Négatif' |
with base as (
select *
from {{ ref('stg_greenhouse__candidate_tmp') }}
),
fields as (
select
{{
fivetran_utils.fill_staging_columns(
source_columns=adapter.get_columns_in_relation(ref('stg_greenhouse__candidate_tmp')),
staging_columns=get_candidate_columns()
)
}}
{% if var('greenhouse_candidate_custom_columns', []) != [] %}
,
{{ var('greenhouse_candidate_custom_columns', [] ) | join(', ') }}
{% endif %}
from base
),
final as (
select
_fivetran_synced,
company as current_company,
coordinator_id as coordinator_user_id,
created_at,
first_name || ' ' || last_name as full_name,
id as candidate_id,
is_private,
last_activity as last_activity_at,
new_candidate_id,
recruiter_id as recruiter_user_id,
title as current_title,
updated_at as last_updated_at
{% if var('greenhouse_candidate_custom_columns', []) != [] %}
,
{{ var('greenhouse_candidate_custom_columns', [] ) | join(', ') }}
{% endif %}
from fields
where not coalesce(_fivetran_deleted, false)
)
select * from final
|
CREATE SCHEMA test;
ALTER SCHEMA test OWNER TO galiev_mr; |
<filename>automation/tincrepo/main/pxf/features/hdfs/readable/avro/multi_files/sql/query01.sql
-- @description query01 for PXF HDFS Readable Avro multi files test cases
SELECT COUNT(*) from avro_multi;
|
-- phpMyAdmin SQL Dump
-- version 5.0.3
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 17, 2021 at 06:44 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.11
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: `wisata_rohul`
--
-- --------------------------------------------------------
--
-- Table structure for table `tb_admin`
--
CREATE TABLE `tb_admin` (
`id_admin` int(11) NOT NULL,
`username` varchar(50) NOT NULL,
`password` varchar(255) NOT NULL,
`nama_lengkap` varchar(50) NOT NULL,
`authKey` varchar(100) NOT NULL,
`accessToken` varchar(100) NOT NULL,
`foto` varchar(50) NOT NULL,
`createdAt` timestamp NOT NULL DEFAULT current_timestamp(),
`updatedAt` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tb_admin`
--
INSERT INTO `tb_admin` (`id_admin`, `username`, `password`, `nama_lengkap`, `authKey`, `accessToken`, `foto`, `createdAt`, `updatedAt`) VALUES
(1, 'admin', <PASSWORD>', 'admin', '<PASSWORD>', 'rerer34345', 'avatar5.png', '2021-06-13 07:58:08', '2021-06-13 07:58:08'),
(2, 'guswaldi', '$2y$13$hXqbzAUB0O5mYc3uW92k1efxLR7pbbv/5K8aHzOjjsYbRADSMs5NO', '<NAME>', 'O_KVdhY0zUcUki6cQSzuKOOPDQEns9Jx', 'n2Q60EicqGul7rBwMCbFJjJCTDp8RoDc', 'Flat.png', '2021-06-17 16:26:29', '2021-06-17 16:26:29');
-- --------------------------------------------------------
--
-- Table structure for table `tb_atm`
--
CREATE TABLE `tb_atm` (
`id_atm` int(11) NOT NULL,
`nama_atm` varchar(50) NOT NULL,
`alamat` varchar(50) NOT NULL,
`kelurahan` varchar(50) NOT NULL,
`kecamatan` varchar(50) NOT NULL,
`latitude` double NOT NULL,
`longitude` double NOT NULL,
`foto` varchar(50) NOT NULL,
`informasi` varchar(100) NOT NULL,
`createdAt` timestamp NOT NULL DEFAULT current_timestamp(),
`updatedAt` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tb_atm`
--
INSERT INTO `tb_atm` (`id_atm`, `nama_atm`, `alamat`, `kelurahan`, `kecamatan`, `latitude`, `longitude`, `foto`, `informasi`, `createdAt`, `updatedAt`) VALUES
(1, 'gfgfg', 'fgfg', 'fgfg', 'fgfg', 3434, 3434, 'foto.png', 'gfg', '2021-06-17 05:06:20', '2021-06-17 05:06:20'),
(2, 'dsdsd', 'sdsdsd', 'sdsdsd', 'sdsdsds', 121212, 121212, 'Flat.png', 'sdsdsd', '2021-06-17 16:43:03', '2021-06-17 16:43:03');
-- --------------------------------------------------------
--
-- Table structure for table `tb_berita`
--
CREATE TABLE `tb_berita` (
`id_berita` int(11) NOT NULL,
`judul_berita` varchar(50) NOT NULL,
`nama_pengarang` varchar(50) NOT NULL,
`informasi` varchar(100) NOT NULL,
`foto` varchar(50) NOT NULL,
`createdAt` timestamp NOT NULL DEFAULT current_timestamp(),
`updatedAt` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tb_berita`
--
INSERT INTO `tb_berita` (`id_berita`, `judul_berita`, `nama_pengarang`, `informasi`, `foto`, `createdAt`, `updatedAt`) VALUES
(1, '<NAME>', 'Bobo', 'Heii', 'foto.png', '2021-06-14 04:47:26', '2021-06-14 04:47:26'),
(2, 'sdsd', 'sdsd', 'sdsd', 'Flat.png', '2021-06-17 16:44:07', '2021-06-17 16:44:07');
-- --------------------------------------------------------
--
-- Table structure for table `tb_event`
--
CREATE TABLE `tb_event` (
`id_event` int(11) NOT NULL,
`nama_event` varchar(50) NOT NULL,
`alamat` varchar(50) NOT NULL,
`latitude` double NOT NULL,
`longitude` double NOT NULL,
`foto` varchar(50) NOT NULL,
`informasi` varchar(100) NOT NULL,
`createdAt` timestamp NOT NULL DEFAULT current_timestamp(),
`updatedAt` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tb_event`
--
INSERT INTO `tb_event` (`id_event`, `nama_event`, `alamat`, `latitude`, `longitude`, `foto`, `informasi`, `createdAt`, `updatedAt`) VALUES
(1, 'dfd', 'dfd', 3434, 3434, 'foto.png', 'fgfg', '2021-06-17 05:06:05', '2021-06-17 05:06:05'),
(2, 'sdsdsd', 'sdsd', 121212, 121212, 'Flat.png', 'sdsdsd', '2021-06-17 16:42:45', '2021-06-17 16:42:45');
-- --------------------------------------------------------
--
-- Table structure for table `tb_masjid`
--
CREATE TABLE `tb_masjid` (
`id_masjid` int(11) NOT NULL,
`nama_masjid` varchar(50) NOT NULL,
`alamat` varchar(50) NOT NULL,
`kelurahan` varchar(50) NOT NULL,
`kecamatan` varchar(50) NOT NULL,
`latitude` double NOT NULL,
`longitude` double NOT NULL,
`foto` varchar(50) NOT NULL,
`informasi` varchar(100) NOT NULL,
`createdAt` timestamp NOT NULL DEFAULT current_timestamp(),
`updatedAt` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tb_masjid`
--
INSERT INTO `tb_masjid` (`id_masjid`, `nama_masjid`, `alamat`, `kelurahan`, `kecamatan`, `latitude`, `longitude`, `foto`, `informasi`, `createdAt`, `updatedAt`) VALUES
(1, 'fgfg', 'gfg', 'fgfg', 'fgfg', 3434, 3434, 'foto.png', 'dfdf', '2021-06-17 05:05:50', '2021-06-17 05:05:50'),
(2, 'sdsdsd', 'sdsd', 'sdsd', 'sdsd', 1212, 1212, 'Flat.png', 'dsdsd', '2021-06-17 16:41:59', '2021-06-17 16:41:59');
-- --------------------------------------------------------
--
-- Table structure for table `tb_penginapan`
--
CREATE TABLE `tb_penginapan` (
`id_penginapan` int(11) NOT NULL,
`nama_penginapan` varchar(50) NOT NULL,
`alamat` varchar(50) NOT NULL,
`pemilik` varchar(50) NOT NULL,
`latitude` double NOT NULL,
`longitude` double NOT NULL,
`foto` varchar(50) NOT NULL,
`informasi` varchar(100) NOT NULL,
`createdAt` timestamp NOT NULL DEFAULT current_timestamp(),
`updatedAt` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tb_penginapan`
--
INSERT INTO `tb_penginapan` (`id_penginapan`, `nama_penginapan`, `alamat`, `pemilik`, `latitude`, `longitude`, `foto`, `informasi`, `createdAt`, `updatedAt`) VALUES
(1, 'dd', 'ddd', 'dd', 1212, 121, 'foto.png', 'ffdf', '0000-00-00 00:00:00', '0000-00-00 00:00:00'),
(2, 'sdsdsd', 'sdsdsd', 'sdsd', 22323, 232323, 'Flat.png', 'dsdsdd', '2021-06-17 16:43:21', '2021-06-17 16:43:21');
-- --------------------------------------------------------
--
-- Table structure for table `tb_spbu`
--
CREATE TABLE `tb_spbu` (
`id_spbu` int(11) NOT NULL,
`nama_spbu` varchar(50) NOT NULL,
`alamat` varchar(50) NOT NULL,
`kelurahan` varchar(50) NOT NULL,
`kecamatan` varchar(50) NOT NULL,
`latitude` double NOT NULL,
`longitude` double NOT NULL,
`foto` varchar(50) NOT NULL,
`informasi` varchar(100) NOT NULL,
`createdAt` timestamp NOT NULL DEFAULT current_timestamp(),
`updatedAt` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tb_spbu`
--
INSERT INTO `tb_spbu` (`id_spbu`, `nama_spbu`, `alamat`, `kelurahan`, `kecamatan`, `latitude`, `longitude`, `foto`, `informasi`, `createdAt`, `updatedAt`) VALUES
(1, 'fgfg', 'fgfg', 'fgfg', 'gfg', 5454, 4545, 'foto.png', 'ffg', '2021-06-17 05:06:36', '2021-06-17 05:06:36'),
(2, '3233', 'esdsd', 'sdsd', 'dsd', 2323, 2323, 'Flat.png', 'dsdsdsd', '2021-06-17 16:43:39', '2021-06-17 16:43:39');
-- --------------------------------------------------------
--
-- Table structure for table `tb_travel`
--
CREATE TABLE `tb_travel` (
`id_travel` int(11) NOT NULL,
`nama_travel` varchar(50) NOT NULL,
`pemilik` varchar(50) NOT NULL,
`alamat` varchar(50) NOT NULL,
`latitude` double NOT NULL,
`longitude` double NOT NULL,
`foto` varchar(50) NOT NULL,
`informasi` varchar(100) NOT NULL,
`createdAt` timestamp NOT NULL DEFAULT current_timestamp(),
`updatedAt` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tb_travel`
--
INSERT INTO `tb_travel` (`id_travel`, `nama_travel`, `pemilik`, `alamat`, `latitude`, `longitude`, `foto`, `informasi`, `createdAt`, `updatedAt`) VALUES
(1, 'gfg', 'gfg', 'fgfg', 434, 3434, 'foto.png', '434', '2021-06-17 05:06:50', '2021-06-17 05:06:50'),
(2, 'sdsds', 'sdsd', 'sdsd', 2323, 232, 'Flat.png', 'sdsds', '2021-06-17 16:43:56', '2021-06-17 16:43:56');
-- --------------------------------------------------------
--
-- Table structure for table `tb_wisata`
--
CREATE TABLE `tb_wisata` (
`id_wisata` int(11) NOT NULL,
`nama_wisata` varchar(50) NOT NULL,
`kategori` enum('Wisata Sejarah','Wisata Kuliner','Wisata Buatan','Wisata Alam','Wisata Religi','Wisata Budaya') NOT NULL,
`alamat` varchar(50) NOT NULL,
`kelurahan` varchar(50) NOT NULL,
`kecamatan` varchar(50) NOT NULL,
`foto` varchar(50) NOT NULL,
`latitude` double NOT NULL,
`longitude` double NOT NULL,
`createdAt` timestamp NOT NULL DEFAULT current_timestamp(),
`updatedAt` timestamp NOT NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `tb_wisata`
--
INSERT INTO `tb_wisata` (`id_wisata`, `nama_wisata`, `kategori`, `alamat`, `kelurahan`, `kecamatan`, `foto`, `latitude`, `longitude`, `createdAt`, `updatedAt`) VALUES
(1, 'sdsd', 'Wisata Sejarah', 'sdsd', 'sdsd', 'sdsd', 'foto.png', 2323, 2323, '2021-06-17 05:02:23', '2021-06-17 05:02:23'),
(2, 'dsdsdsd', 'Wisata Kuliner', 'sdsdd', 'sdsd', 'dsdsd', 'Flat.png', 2323, 2323, '2021-06-17 16:42:24', '2021-06-17 16:42:24');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `tb_admin`
--
ALTER TABLE `tb_admin`
ADD PRIMARY KEY (`id_admin`);
--
-- Indexes for table `tb_atm`
--
ALTER TABLE `tb_atm`
ADD PRIMARY KEY (`id_atm`);
--
-- Indexes for table `tb_berita`
--
ALTER TABLE `tb_berita`
ADD PRIMARY KEY (`id_berita`);
--
-- Indexes for table `tb_event`
--
ALTER TABLE `tb_event`
ADD PRIMARY KEY (`id_event`);
--
-- Indexes for table `tb_masjid`
--
ALTER TABLE `tb_masjid`
ADD PRIMARY KEY (`id_masjid`);
--
-- Indexes for table `tb_penginapan`
--
ALTER TABLE `tb_penginapan`
ADD PRIMARY KEY (`id_penginapan`);
--
-- Indexes for table `tb_spbu`
--
ALTER TABLE `tb_spbu`
ADD PRIMARY KEY (`id_spbu`);
--
-- Indexes for table `tb_travel`
--
ALTER TABLE `tb_travel`
ADD PRIMARY KEY (`id_travel`);
--
-- Indexes for table `tb_wisata`
--
ALTER TABLE `tb_wisata`
ADD PRIMARY KEY (`id_wisata`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `tb_admin`
--
ALTER TABLE `tb_admin`
MODIFY `id_admin` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tb_atm`
--
ALTER TABLE `tb_atm`
MODIFY `id_atm` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tb_berita`
--
ALTER TABLE `tb_berita`
MODIFY `id_berita` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tb_event`
--
ALTER TABLE `tb_event`
MODIFY `id_event` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tb_masjid`
--
ALTER TABLE `tb_masjid`
MODIFY `id_masjid` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tb_penginapan`
--
ALTER TABLE `tb_penginapan`
MODIFY `id_penginapan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tb_spbu`
--
ALTER TABLE `tb_spbu`
MODIFY `id_spbu` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tb_travel`
--
ALTER TABLE `tb_travel`
MODIFY `id_travel` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
--
-- AUTO_INCREMENT for table `tb_wisata`
--
ALTER TABLE `tb_wisata`
MODIFY `id_wisata` 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 */;
|
IF EXISTS (SELECT *
FROM sysobjects
WHERE type = 'P' AND name = 'jobposUpdate')
BEGIN
DROP Procedure jobposUpdate
END
GO
CREATE PROCEDURE [dbo].jobposUpdate(
@jobId INT,
@institutionId INT,
@sirutaId INT,
@dateStart DATE,
@dateEnd DATE,
@name VARCHAR(300),
@info VARCHAR(MAX)
)
AS
BEGIN
SET NOCOUNT ON
UPDATE JobPosition
SET institutionId = @institutionId,
sirutaId = @sirutaId,
[name] = @name,
dateStart = @dateStart,
dateEnd = @dateEnd,
aditionalInfo = @info
WHERE id = @jobId
END
GO
GRANT EXEC ON [dbo].jobposUpdate TO rpb_role
GO |
--
-- Table AnswersComments
--
DROP TABLE IF EXISTS AnswerComments;
CREATE TABLE AnswerComments (
"id" INTEGER PRIMARY KEY NOT NULL,
"userId" INTEGER NOT NULL,
"answerId" INTEGER NOT NULL,
"text" TEXT NOT NULL,
"created" DATETIME,
"updated" DATETIME,
"deleted" DATETIME,
"active" DATETIME
);
|
<reponame>liangzi4000/grab-share-info
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2017-09-30',@EPS = N'0.47',@EPSDeduct = N'0',@Revenue = N'164.90亿',@RevenueYoy = N'9.12',@RevenueQoq = N'-28.99',@Profit = N'8.07亿',@ProfitYoy = N'21.92',@ProfiltQoq = N'-26.10',@NAVPerUnit = N'14.7689',@ROE = N'3.17',@CashPerUnit = N'-0.3951',@GrossProfitRate = N'15.92',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2017-09-30',@EPS = N'0.47',@EPSDeduct = N'0',@Revenue = N'164.90亿',@RevenueYoy = N'9.12',@RevenueQoq = N'-28.99',@Profit = N'8.07亿',@ProfitYoy = N'21.92',@ProfiltQoq = N'-26.10',@NAVPerUnit = N'14.7689',@ROE = N'3.17',@CashPerUnit = N'-0.3951',@GrossProfitRate = N'15.92',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2016-12-31',@EPS = N'0.71',@EPSDeduct = N'0.67',@Revenue = N'207.41亿',@RevenueYoy = N'15.54',@RevenueQoq = N'67.49',@Profit = N'10.73亿',@ProfitYoy = N'16.23',@ProfiltQoq = N'104.72',@NAVPerUnit = N'14.6340',@ROE = N'5.90',@CashPerUnit = N'0.6570',@GrossProfitRate = N'17.39',@Distribution = N'10派2.2',@DividenRate = N'0.79',@AnnounceDate = N'2017-02-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2017-06-30',@EPS = N'0.32',@EPSDeduct = N'0.29',@Revenue = N'116.41亿',@RevenueYoy = N'10.14',@RevenueQoq = N'41.92',@Profit = N'5.61亿',@ProfitYoy = N'21.53',@ProfiltQoq = N'46.98',@NAVPerUnit = N'14.5898',@ROE = N'2.20',@CashPerUnit = N'-0.4113',@GrossProfitRate = N'15.47',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-12'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2017-03-31',@EPS = N'0.13',@EPSDeduct = N'0',@Revenue = N'48.12亿',@RevenueYoy = N'8.73',@RevenueQoq = N'-31.94',@Profit = N'2.27亿',@ProfitYoy = N'5.87',@ProfiltQoq = N'-44.77',@NAVPerUnit = N'14.7659',@ROE = N'0.89',@CashPerUnit = N'-0.2557',@GrossProfitRate = N'16.54',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2016-03-31',@EPS = N'0.17',@EPSDeduct = N'0',@Revenue = N'44.26亿',@RevenueYoy = N'0.63',@RevenueQoq = N'4.44',@Profit = N'2.14亿',@ProfitYoy = N'21.26',@ProfiltQoq = N'64.11',@NAVPerUnit = N'4.1793',@ROE = N'1.94',@CashPerUnit = N'0.7011',@GrossProfitRate = N'17.51',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-04-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2015-12-31',@EPS = N'0.73',@EPSDeduct = N'0.31',@Revenue = N'179.52亿',@RevenueYoy = N'0.05',@RevenueQoq = N'7.11',@Profit = N'9.23亿',@ProfitYoy = N'21.29',@ProfiltQoq = N'-40.14',@NAVPerUnit = N'20.5659',@ROE = N'8.71',@CashPerUnit = N'0.6086',@GrossProfitRate = N'17.21',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-02-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2016-06-30',@EPS = N'0.35',@EPSDeduct = N'0.41',@Revenue = N'105.70亿',@RevenueYoy = N'1.68',@RevenueQoq = N'446.15',@Profit = N'4.61亿',@ProfitYoy = N'0.88',@ProfiltQoq = N'796.80',@NAVPerUnit = N'14.2132',@ROE = N'4.11',@CashPerUnit = N'-0.2108',@GrossProfitRate = N'15.64',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2017-08-12'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2015-06-30',@EPS = N'0.36',@EPSDeduct = N'0.19',@Revenue = N'92.94亿',@RevenueYoy = N'7.53',@RevenueQoq = N'9.37',@Profit = N'4.57亿',@ProfitYoy = N'36.87',@ProfiltQoq = N'61.33',@NAVPerUnit = N'3.9896',@ROE = N'4.37',@CashPerUnit = N'-0.6377',@GrossProfitRate = N'15.57',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2016-08-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2016-09-30',@EPS = N'0.55',@EPSDeduct = N'0',@Revenue = N'151.12亿',@RevenueYoy = N'23.10',@RevenueQoq = N'-47.15',@Profit = N'6.62亿',@ProfitYoy = N'30.64',@ProfiltQoq = N'-51.63',@NAVPerUnit = N'14.3383',@ROE = N'3.47',@CashPerUnit = N'-0.3000',@GrossProfitRate = N'16.01',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2017-10-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2014-12-31',@EPS = N'0.27',@EPSDeduct = N'0.24',@Revenue = N'57.48亿',@RevenueYoy = N'10.04',@RevenueQoq = N'-8.02',@Profit = N'1.44亿',@ProfitYoy = N'24.06',@ProfiltQoq = N'-56.53',@NAVPerUnit = N'3.8378',@ROE = N'9.01',@CashPerUnit = N'0.6127',@GrossProfitRate = N'13.38',@Distribution = N'10派0.81',@DividenRate = N'0.19',@AnnounceDate = N'2016-04-22'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2014-09-30',@EPS = N'0.23',@EPSDeduct = N'0',@Revenue = N'43.50亿',@RevenueYoy = N'17.07',@RevenueQoq = N'3.30',@Profit = N'1.23亿',@ProfitYoy = N'25.83',@ProfiltQoq = N'44.58',@NAVPerUnit = N'3.8398',@ROE = N'6.16',@CashPerUnit = N'0.2988',@GrossProfitRate = N'12.20',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-10-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2014-06-30',@EPS = N'0.14',@EPSDeduct = N'0.12',@Revenue = N'28.30亿',@RevenueYoy = N'9.37',@RevenueQoq = N'8.31',@Profit = N'7288.58万',@ProfitYoy = N'35.44',@ProfiltQoq = N'-10.35',@NAVPerUnit = N'3.7353',@ROE = N'3.69',@CashPerUnit = N'0.2773',@GrossProfitRate = N'11.69',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2015-08-06'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2014-03-31',@EPS = N'0.07',@EPSDeduct = N'0',@Revenue = N'13.59亿',@RevenueYoy = N'11.45',@RevenueQoq = N'-9.91',@Profit = N'3843.13万',@ProfitYoy = N'69.51',@ProfiltQoq = N'103.90',@NAVPerUnit = N'3.7512',@ROE = N'1.95',@CashPerUnit = N'-0.0069',@GrossProfitRate = N'11.93',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2015-04-23'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2013-12-31',@EPS = N'0.24',@EPSDeduct = N'0.19',@Revenue = N'52.24亿',@RevenueYoy = N'10.50',@RevenueQoq = N'33.65',@Profit = N'1.16亿',@ProfitYoy = N'49.54',@ProfiltQoq = N'-56.86',@NAVPerUnit = N'3.6644',@ROE = N'7.99',@CashPerUnit = N'0.1602',@GrossProfitRate = N'13.18',@Distribution = N'10派0.66',@DividenRate = N'0.66',@AnnounceDate = N'2015-03-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2013-09-30',@EPS = N'0.21',@EPSDeduct = N'0',@Revenue = N'37.16亿',@RevenueYoy = N'7.30',@RevenueQoq = N'-17.55',@Profit = N'9751.08万',@ProfitYoy = N'63.81',@ProfiltQoq = N'40.30',@NAVPerUnit = N'3.6301',@ROE = N'7.50',@CashPerUnit = N'0.0879',@GrossProfitRate = N'12.81',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-10-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2013-06-30',@EPS = N'0.12',@EPSDeduct = N'0.11',@Revenue = N'25.87亿',@RevenueYoy = N'12.47',@RevenueQoq = N'12.27',@Profit = N'5381.59万',@ProfitYoy = N'27.89',@ProfiltQoq = N'37.37',@NAVPerUnit = N'2.8001',@ROE = N'4.19',@CashPerUnit = N'-0.2539',@GrossProfitRate = N'11.70',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2014-08-21'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2015-09-30',@EPS = N'0.94',@EPSDeduct = N'0',@Revenue = N'43.50亿',@RevenueYoy = N'0.01',@RevenueQoq = N'-17.75',@Profit = N'1.47亿',@ProfitYoy = N'19.70',@ProfiltQoq = N'-23.50',@NAVPerUnit = N'4.0775',@ROE = N'4.96',@CashPerUnit = N'-0.4866',@GrossProfitRate = N'16.16',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-10-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2012-12-31',@EPS = N'0.17',@EPSDeduct = N'0.2',@Revenue = N'47.27亿',@RevenueYoy = N'16.02',@RevenueQoq = N'8.78',@Profit = N'7781.18万',@ProfitYoy = N'12.16',@ProfiltQoq = N'4.83',@NAVPerUnit = N'2.7394',@ROE = N'6.37',@CashPerUnit = N'0.6680',@GrossProfitRate = N'14.69',@Distribution = N'10派0.55',@DividenRate = N'0.55',@AnnounceDate = N'2014-03-06'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2012-09-30',@EPS = N'0.13',@EPSDeduct = N'0.14',@Revenue = N'34.63亿',@RevenueYoy = N'7.75',@RevenueQoq = N'2.47',@Profit = N'5952.51万',@ProfitYoy = N'20.48',@ProfiltQoq = N'-24.72',@NAVPerUnit = N'2.6918',@ROE = N'4.91',@CashPerUnit = N'0.3084',@GrossProfitRate = N'12.66',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-10-22'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2012-06-30',@EPS = N'0.09',@EPSDeduct = N'0.1',@Revenue = N'23.01亿',@RevenueYoy = N'3.49',@RevenueQoq = N'-2.73',@Profit = N'4208.14万',@ProfitYoy = N'34.72',@ProfiltQoq = N'22.54',@NAVPerUnit = N'2.6539',@ROE = N'3.50',@CashPerUnit = N'0.3114',@GrossProfitRate = N'12.64',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2013-07-31'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2015-03-31',@EPS = N'0.07',@EPSDeduct = N'0',@Revenue = N'14.53亿',@RevenueYoy = N'6.98',@RevenueQoq = N'3.95',@Profit = N'3817.28万',@ProfitYoy = N'-0.67',@ProfiltQoq = N'76.30',@NAVPerUnit = N'3.9279',@ROE = N'1.81',@CashPerUnit = N'-0.1172',@GrossProfitRate = N'10.84',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2016-04-22'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2011-12-31',@EPS = N'0.15',@EPSDeduct = N'0.13',@Revenue = N'40.75亿',@RevenueYoy = N'25.18',@RevenueQoq = N'-13.15',@Profit = N'6937.85万',@ProfitYoy = N'42.37',@ProfiltQoq = N'9.91',@NAVPerUnit = N'2.5626',@ROE = N'6.04',@CashPerUnit = N'0.3185',@GrossProfitRate = N'12.72',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2013-03-14'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2011-09-30',@EPS = N'0.11',@EPSDeduct = N'0.1',@Revenue = N'32.14亿',@RevenueYoy = N'29.12',@RevenueQoq = N'-4.34',@Profit = N'4940.64万',@ProfitYoy = N'-0.80',@ProfiltQoq = N'13.91',@NAVPerUnit = N'2.5200',@ROE = N'4.34',@CashPerUnit = N'-0.2246',@GrossProfitRate = N'11.42',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-10-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2011-06-30',@EPS = N'0.07',@EPSDeduct = N'0.0604',@Revenue = N'22.23亿',@RevenueYoy = N'33.29',@RevenueQoq = N'-12.71',@Profit = N'3123.57万',@ProfitYoy = N'15.41',@ProfiltQoq = N'4.37',@NAVPerUnit = N'2.4840',@ROE = N'2.77',@CashPerUnit = N'-0.1065',@GrossProfitRate = N'10.01',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2012-08-15'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2011-03-31',@EPS = N'0.03',@EPSDeduct = N'0.03',@Revenue = N'11.87亿',@RevenueYoy = N'31.51',@RevenueQoq = N'54.97',@Profit = N'1528.42万',@ProfitYoy = N'5.23',@ProfiltQoq = N'1520.38',@NAVPerUnit = N'2.4500',@ROE = N'1.36',@CashPerUnit = N'-0.4383',@GrossProfitRate = N'8.74',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2012-04-23'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2010-12-31',@EPS = N'0.11',@EPSDeduct = N'0.1',@Revenue = N'32.55亿',@RevenueYoy = N'21.30',@RevenueQoq = N'-6.77',@Profit = N'4873.05万',@ProfitYoy = N'9.77',@ProfiltQoq = N'-104.73',@NAVPerUnit = N'2.4162',@ROE = N'4.47',@CashPerUnit = N'0.1423',@GrossProfitRate = N'14.13',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2012-03-08'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2010-09-30',@EPS = N'0.11',@EPSDeduct = N'0.11',@Revenue = N'24.89亿',@RevenueYoy = N'25.10',@RevenueQoq = N'7.36',@Profit = N'4980.65万',@ProfitYoy = N'73.28',@ProfiltQoq = N'81.35',@NAVPerUnit = N'2.4200',@ROE = N'4.57',@CashPerUnit = N'0.0216',@GrossProfitRate = N'11.81',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-10-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2010-06-30',@EPS = N'0.06',@EPSDeduct = N'0.06',@Revenue = N'16.68亿',@RevenueYoy = N'36.43',@RevenueQoq = N'-15.22',@Profit = N'2706.46万',@ProfitYoy = N'219.74',@ProfiltQoq = N'-13.66',@NAVPerUnit = N'2.3700',@ROE = N'2.51',@CashPerUnit = N'0.0065',@GrossProfitRate = N'11.37',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2011-08-26'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2010-03-31',@EPS = N'0.03',@EPSDeduct = N'0.03',@Revenue = N'9.03亿',@RevenueYoy = N'44.49',@RevenueQoq = N'30.13',@Profit = N'1452.44万',@ProfitYoy = N'358.09',@ProfiltQoq = N'-7.20',@NAVPerUnit = N'2.3400',@ROE = N'1.34',@CashPerUnit = N'-0.1074',@GrossProfitRate = N'9.53',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2011-04-22'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2013-03-31',@EPS = N'0.05',@EPSDeduct = N'0.04',@Revenue = N'12.19亿',@RevenueYoy = N'4.53',@RevenueQoq = N'-3.60',@Profit = N'2267.22万',@ProfitYoy = N'19.90',@ProfiltQoq = N'23.98',@NAVPerUnit = N'2.7881',@ROE = N'1.78',@CashPerUnit = N'-0.2203',@GrossProfitRate = N'11.37',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2014-04-23'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2012-03-31',@EPS = N'0.04',@EPSDeduct = N'0.04',@Revenue = N'11.66亿',@RevenueYoy = N'-1.75',@RevenueQoq = N'35.48',@Profit = N'1890.94万',@ProfitYoy = N'23.72',@ProfiltQoq = N'-5.32',@NAVPerUnit = N'2.6000',@ROE = N'1.59',@CashPerUnit = N'0.2867',@GrossProfitRate = N'12.22',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2013-04-12'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2009-12-31',@EPS = N'0.1',@EPSDeduct = N'0.09',@Revenue = N'26.83亿',@RevenueYoy = N'-14.81',@RevenueQoq = N'-9.63',@Profit = N'4439.45万',@ProfitYoy = N'115.45',@ProfiltQoq = N'-22.82',@NAVPerUnit = N'2.3100',@ROE = N'4.26',@CashPerUnit = N'0.3512',@GrossProfitRate = N'14.82',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2011-03-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2009-09-30',@EPS = N'0.06',@EPSDeduct = N'0.06',@Revenue = N'19.90亿',@RevenueYoy = N'-26.47',@RevenueQoq = N'28.40',@Profit = N'2874.37万',@ProfitYoy = N'46.23',@ProfiltQoq = N'283.06',@NAVPerUnit = N'2.2800',@ROE = N'-',@CashPerUnit = N'0.3395',@GrossProfitRate = N'12.52',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-10-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2009-06-30',@EPS = N'0.02',@EPSDeduct = N'0.02',@Revenue = N'12.22亿',@RevenueYoy = N'-34.40',@RevenueQoq = N'-4.31',@Profit = N'846.46万',@ProfitYoy = N'-70.47',@ProfiltQoq = N'66.97',@NAVPerUnit = N'2.2300',@ROE = N'0.83',@CashPerUnit = N'0.3696',@GrossProfitRate = N'12.23',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2010-08-28'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2009-03-31',@EPS = N'0.01',@EPSDeduct = N'0.01',@Revenue = N'6.25亿',@RevenueYoy = N'-39.71',@RevenueQoq = N'40.77',@Profit = N'317.07万',@ProfitYoy = N'-83.53',@ProfiltQoq = N'101.03',@NAVPerUnit = N'2.2200',@ROE = N'-',@CashPerUnit = N'0.3469',@GrossProfitRate = N'11.46',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2010-04-21'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2008-12-31',@EPS = N'-0.63',@EPSDeduct = N'-0.64',@Revenue = N'31.50亿',@RevenueYoy = N'19.88',@RevenueQoq = N'-47.34',@Profit = N'-2.87亿',@ProfitYoy = N'-347.32',@ProfiltQoq = N'-3307.79',@NAVPerUnit = N'2.2100',@ROE = N'-24.61',@CashPerUnit = N'1.9376',@GrossProfitRate = N'7.88',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2010-03-26'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2008-09-30',@EPS = N'0.04',@EPSDeduct = N'0.03',@Revenue = N'27.06亿',@RevenueYoy = N'47.65',@RevenueQoq = N'1.83',@Profit = N'1965.66万',@ProfitYoy = N'-55.95',@ProfiltQoq = N'-195.69',@NAVPerUnit = N'2.8800',@ROE = N'-',@CashPerUnit = N'0.9731',@GrossProfitRate = N'11.68',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2009-10-30'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2008-06-30',@EPS = N'0.06',@EPSDeduct = N'0.06',@Revenue = N'18.63亿',@RevenueYoy = N'67.27',@RevenueQoq = N'-20.13',@Profit = N'2866.44万',@ProfitYoy = N'10.83',@ProfiltQoq = N'-51.10',@NAVPerUnit = N'2.9000',@ROE = N'-',@CashPerUnit = N'0.6420',@GrossProfitRate = N'12.55',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2009-08-07'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2008-03-31',@EPS = N'0.04',@EPSDeduct = N'0.04',@Revenue = N'10.36亿',@RevenueYoy = N'126.76',@RevenueQoq = N'30.38',@Profit = N'1925.04万',@ProfitYoy = N'58.40',@ProfiltQoq = N'-73.09',@NAVPerUnit = N'2.8800',@ROE = N'-',@CashPerUnit = N'-0.1156',@GrossProfitRate = N'12.39',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2009-04-22'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2007-09-30',@EPS = N'0.2',@EPSDeduct = N'0.2',@Revenue = N'18.33亿',@RevenueYoy = N'47.49',@RevenueQoq = N'9.37',@Profit = N'4461.92万',@ProfitYoy = N'45.95',@ProfiltQoq = N'36.81',@NAVPerUnit = N'3.7200',@ROE = N'-',@CashPerUnit = N'-4.0158',@GrossProfitRate = N'11.79',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2008-10-24'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2007-12-31',@EPS = N'0.26',@EPSDeduct = N'0.53',@Revenue = N'26.27亿',@RevenueYoy = N'40.29',@RevenueQoq = N'10.55',@Profit = N'1.16亿',@ProfitYoy = N'73.72',@ProfiltQoq = N'281.46',@NAVPerUnit = N'5.7300',@ROE = N'12.80',@CashPerUnit = N'-4.8188',@GrossProfitRate = N'14.36',@Distribution = N'10转5送5派0.56',@DividenRate = N'0.32',@AnnounceDate = N'2009-03-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2007-03-31',@EPS = N'0.06',@EPSDeduct = N'0',@Revenue = N'4.57亿',@RevenueYoy = N'34.92',@RevenueQoq = N'-27.50',@Profit = N'1215.29万',@ProfitYoy = N'48.07',@ProfiltQoq = N'-66.52',@NAVPerUnit = N'3.7000',@ROE = N'-',@CashPerUnit = N'-0.9214',@GrossProfitRate = N'13.20',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2008-04-25'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2007-06-30',@EPS = N'0.12',@EPSDeduct = N'0.12',@Revenue = N'11.14亿',@RevenueYoy = N'46.91',@RevenueQoq = N'43.84',@Profit = N'2586.28万',@ProfitYoy = N'49.65',@ProfiltQoq = N'12.81',@NAVPerUnit = N'3.6400',@ROE = N'3.26',@CashPerUnit = N'-1.1953',@GrossProfitRate = N'11.55',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2008-08-15'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2006-12-31',@EPS = N'0.31',@EPSDeduct = N'0.31',@Revenue = N'18.73亿',@RevenueYoy = N'36.96',@RevenueQoq = N'30.11',@Profit = N'6686.96万',@ProfitYoy = N'25.62',@ProfiltQoq = N'173.11',@NAVPerUnit = N'3.6100',@ROE = N'8.07',@CashPerUnit = N'0.4882',@GrossProfitRate = N'15.36',@Distribution = N'10派1.3',@DividenRate = N'0.78',@AnnounceDate = N'2008-02-19'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2006-09-30',@EPS = N'0.14',@EPSDeduct = N'0',@Revenue = N'12.43亿',@RevenueYoy = N'34.02',@RevenueQoq = N'15.39',@Profit = N'3057.25万',@ProfitYoy = N'6.68',@ProfiltQoq = N'46.45',@NAVPerUnit = N'3.4600',@ROE = N'-',@CashPerUnit = N'-0.1808',@GrossProfitRate = N'14.88',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2007-10-29'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2006-06-30',@EPS = N'0.08',@EPSDeduct = N'0',@Revenue = N'7.58亿',@RevenueYoy = N'30.33',@RevenueQoq = N'23.95',@Profit = N'1728.23万',@ProfitYoy = N'-1.99',@ProfiltQoq = N'10.57',@NAVPerUnit = N'3.4000',@ROE = N'2.34',@CashPerUnit = N'-0.8773',@GrossProfitRate = N'15.32',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2007-08-10'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2006-03-31',@EPS = N'0.04',@EPSDeduct = N'0',@Revenue = N'3.39亿',@RevenueYoy = N'29.11',@RevenueQoq = N'-23.08',@Profit = N'820.75万',@ProfitYoy = N'-0.83',@ProfiltQoq = N'-66.60',@NAVPerUnit = N'3.4700',@ROE = N'-',@CashPerUnit = N'-0.4677',@GrossProfitRate = N'15.99',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2007-04-23'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2005-12-31',@EPS = N'0.24',@EPSDeduct = N'0',@Revenue = N'13.67亿',@RevenueYoy = N'36.86',@RevenueQoq = N'27.46',@Profit = N'5323.13万',@ProfitYoy = N'18.18',@ProfiltQoq = N'122.91',@NAVPerUnit = N'3.3700',@ROE = N'7.40',@CashPerUnit = N'0.1315',@GrossProfitRate = N'16.35',@Distribution = N'10派1.1',@DividenRate = N'1.54',@AnnounceDate = N'2007-02-14'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2005-09-30',@EPS = N'0',@EPSDeduct = N'0',@Revenue = N'9.27亿',@RevenueYoy = N'39.29',@RevenueQoq = N'8.07',@Profit = N'2865.78万',@ProfitYoy = N'12.61',@ProfiltQoq = N'17.81',@NAVPerUnit = N'3.2700',@ROE = N'-',@CashPerUnit = N'-0.4298',@GrossProfitRate = N'15.97',@Distribution = N'-',@DividenRate = N'-',@AnnounceDate = N'2006-10-27'
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600482',@CutoffDate = N'2005-06-30',@EPS = N'0.08',@EPSDeduct = N'0',@Revenue = N'5.82亿',@RevenueYoy = N'54.13',@RevenueQoq = N'21.85',@Profit = N'1763.38万',@ProfitYoy = N'69.23',@ProfiltQoq = N'13.07',@NAVPerUnit = N'3.2200',@ROE = N'2.48',@CashPerUnit = N'-0.4301',@GrossProfitRate = N'16.60',@Distribution = N'不分配不转增',@DividenRate = N'-',@AnnounceDate = N'2006-08-23' |
select %s,%s from %s where sid = ?;
|
--------------------------------------------------------------------------------
-- willie-core - Update database structure
--------------------------------------------------------------------------------
DO $$
DECLARE
ver varchar;
BEGIN
BEGIN
EXECUTE 'SELECT value FROM core_options WHERE name = ''core.databaseVersion''' INTO ver;
EXCEPTION
WHEN OTHERS
THEN
ver = '0.0';
END;
LOOP
RAISE NOTICE 'Database version is %', ver;
--------------------------------------------------------------------------------
-- Version 1, options
--------------------------------------------------------------------------------
IF ver IS NULL or ver = '0.0' THEN
CREATE TABLE core_options (
name varchar(64) primary key, -- name of the option
value varchar(4096), -- value as a serialized string
builtin boolean default false
);
ver = '0.1';
ELSIF ver = '0.1' THEN
INSERT INTO core_options (name, value, builtin) VALUES ('core.databaseVersion', '0.1', true);
ver = '0.2';
ELSIF ver = '0.2' THEN
INSERT INTO core_options (name, value, builtin) VALUES ('core.databaseId', uuid_generate_v4(), true);
ver = '0.3';
ELSIF ver = '0.3' THEN
CREATE UNIQUE INDEX core_o_name ON core_options (name);
ver = '1.0';
--------------------------------------------------------------------------------
-- Version 2, users
--------------------------------------------------------------------------------
ELSIF ver = '1.0' THEN
CREATE TABLE core_users (
id uuid primary key default uuid_generate_v4(), -- record identifier
login varchar(64), -- unique login
hashedPassword varchar(256), -- hashed password
salt varchar(256), -- Store salt and hased password: hashedPassword = <PASSWORD>256(salt + password)
name varchar(256), -- user-friendly name
canLogin boolean default false, -- this user can log-in
isAdmin boolean NOT NULL DEFAULT false, -- this user is an administrator
avatar varchar(256), -- URL of an avatar image
email varchar(256), -- user email address
builtin boolean default false -- this is a builtin user (ex: nobody)
);
ver = '1.1';
ELSIF ver = '1.1' THEN
CREATE UNIQUE INDEX core_u_name ON core_users (name);
ver = '1.2';
ELSIF ver = '1.2' THEN
CREATE UNIQUE INDEX core_u_login ON core_users (login);
ver = '2.0';
--------------------------------------------------------------------------------
-- Version 3, sessions
--------------------------------------------------------------------------------
ELSIF ver = '2.0' THEN
CREATE TABLE core_sessions (
id uuid primary key default uuid_generate_v4(), -- record identifier
login varchar(64) REFERENCES core_users(login), -- user login
accessToken varchar(1024), -- valid access token
validUntil timestamp with time zone -- date after which the access token is not valid anymore
);
ver = '2.1';
ELSIF ver = '2.1' THEN
CREATE UNIQUE INDEX core_s_accessToken ON core_sessions (accessToken);
ver = '2.2';
ELSIF ver = '2.2' THEN
CREATE INDEX core_s_login ON core_sessions (login);
ver = '3.0';
--------------------------------------------------------------------------------
-- Version 4, jobs
-- A job is a long running process such as a background scan of files...
--------------------------------------------------------------------------------
ELSIF ver = '3.0' THEN
CREATE TABLE core_jobs (
id uuid primary key default uuid_generate_v4(), -- record identifier
name varchar(256), -- job unique name
type varchar(64), -- job type. Example "scan"
status varchar(64), -- job status (job-specific human readable label)
context jsonb, -- job context (i.e. persisted job-specific variables and attributes)
progress jsonb, -- job progress (i.e. set of job-specific attributes indicating progress)
started timestamp with time zone, -- date and time at which the job started
updated timestamp with time zone -- date and time at which the job was last updated
);
ver = '3.1';
ELSIF ver = '3.1' THEN
CREATE INDEX core_jobs_name ON core_jobs (name);
ver = '3.2';
ELSIF ver = '3.2' THEN
CREATE INDEX core_jobs_started ON core_jobs (started);
ver = '3.3';
ELSIF ver = '3.3' THEN
CREATE INDEX core_jobs_updated ON core_jobs (updated);
ver = '4.0';
ELSE
EXIT;
END IF;
END LOOP;
UPDATE core_options SET value = ver WHERE name = 'core.databaseVersion';
EXCEPTION WHEN OTHERS THEN
RAISE NOTICE '% - %', SQLSTATE, SQLERRM;
UPDATE core_options SET value = ver WHERE name = 'core.databaseVersion';
END $$;
|
SELECT * FROM TABELA_DE_VENDEDORES;
SELECT * FROM VENDEDORES;
UPDATE TABELA_DE_VENDEDORES SET DE_FERIAS = 0 WHERE MATRICULA IN ('00236','00237');
UPDATE TABELA_DE_VENDEDORES SET DE_FERIAS = 1 WHERE MATRICULA IN ('00235','00238');
SELECT A.MATRICULA, B.MATRICULA, A.NOME, A.FERIAS, B.DE_FERIAS
FROM VENDEDORES A INNER JOIN TABELA_DE_VENDEDORES B
ON A.MATRICULA = SUBSTR(B.MATRICULA,3,3);
UPDATE VENDEDORES A INNER JOIN TABELA_DE_VENDEDORES B
ON A.MATRICULA = SUBSTR(B.MATRICULA,3,3) SET A.FERIAS = B.DE_FERIAS;
--EXISTS
SELECT A.MATRICULA, B.MATRICULA, A.NOME, A.FERIAS, B.DE_FERIAS
FROM VENDEDORES A INNER JOIN TABELA_DE_VENDEDORES B
ON A.MATRICULA = SUBSTR(B.MATRICULA,3,3);
SELECT A.MATRICULA, A.NOME, A.FERIAS
FROM VENDEDORES A WHERE EXISTS (SELECT 1 FROM TABELA_DE_VENDEDORES B
WHERE A.MATRICULA = SUBSTR(B.MATRICULA,3,3));
INSERT INTO TABELA_DE_VENDEDORES (MATRICULA, NOME, PERCENTUAL_COMISSAO, DATA_ADMISSAO, DE_FERIAS, BAIRRO)
VALUES ('00239','Jose',0.12,TO_DATE('2018-01-01','YYYY-MM-DD'), 1, 'Tijuca');
SELECT * FROM TABELA_DE_VENDEDORES;
UPDATE VENDEDORES A SET A.FERIAS =
(SELECT B.DE_FERIAS FROM TABELA_DE_VENDEDORES B
WHERE A.MATRICULA = SUBSTR(B.MATRICULA,3,3))
WHERE EXISTS (SELECT 1 FROM TABELA_DE_VENDEDORES B
WHERE A.MATRICULA = SUBSTR(B.MATRICULA,3,3));
SELECT A.MATRICULA, B.MATRICULA, A.NOME, A.FERIAS, B.DE_FERIAS
FROM VENDEDORES A INNER JOIN TABELA_DE_VENDEDORES B
ON A.MATRICULA = SUBSTR(B.MATRICULA,3,3);
UPDATE TABELA_DE_VENDEDORES SET DE_FERIAS = 1 WHERE MATRICULA IN ('00236','00237');
|
<gh_stars>0
create table address(
add_id number generated always as identity(start with 1 increment by 1) primary key,
add_mstreet varchar(59) not null,
add_ostreet varchar(59),
add_city varchar(59) not null,
add_state varchar(59) not null,
add_pcode int not null
);
create table accounts(
acc_uname varchar(59) primary key,
acc_pass varchar(59) not null,
acc_email varchar(59) not null,
acc_fname varchar(59),
acc_lname varchar(59),
acc_type varchar(59) not null,
acc_phone int,
acc_heardabout varchar(99),
add_id int,
foreign key (add_id) references address(add_id)
);
create table association(
asso_id number generated always as identity(start with 1 increment by 1) primary key,
asso_title varchar(59) not null,
asso_url varchar(59) not null,
acc_uname varchar(59) not null,
foreign key (acc_uname) references accounts(acc_uname)
);
create table projects(
pro_id number generated always as identity(start with 1 increment by 1) primary key,
pro_title varchar(59) not null,
pro_subtitle varchar(59),
pro_description varchar(599),
pro_crdate date default sysdate,
pro_goal int not null,
pro_deadline varchar(59) not null,
pro_howdo varchar(59),
pro_whydo varchar(59),
pro_status varchar(59) not null,
acc_uname varchar(59) not null,
add_id int not null,
foreign key (acc_uname) references accounts(acc_uname),
foreign key (add_id) references address(add_id)
);
create table donationLevel(
level_id number generated always as identity(start with 1 increment by 1) primary key,
level_amount int not null,
level_description varchar (599),
pro_id int not null,
foreign key (pro_id) references projects(pro_id)
);
create table budget(
budget_id number generated always as identity(start with 1 increment by 1) primary key,
budget_platfee int default 35, /* $35 */
budget_donprocfee int default 1.03, /* 3% = 1,03*/
budget_cost int not null,
pro_id int not null unique,
foreign key (pro_id) references projects(pro_id)
);
create table proType(
type_id number generated always as identity(start with 1 increment by 1) primary key,
type_info varchar(59)
);
create table typeAsso (
type_id int,
pro_id int,
primary key (type_id, pro_id),
foreign key (type_id) references protype(type_id),
foreign key (pro_id) references projects(pro_id)
);
create table focusArea(
focus_id number generated always as identity(start with 1 increment by 1) primary key,
focus_area varchar(59)
);
create table focusAsso (
focus_id int,
pro_id int,
primary key (focus_id, pro_id),
foreign key (focus_id) references focusarea(focus_id),
foreign key (pro_id) references projects(pro_id)
);
create table donation(
don_ordnr number generated always as identity(start with 1 increment by 1) primary key,
don_date date default sysdate,
don_dispname varchar(59),
don_anon int default 0, /*1 = yes, 0 = no*/
don_mail int default 0, /*1 = yes, 0 = no*/
acc_uname varchar(59) not null,
foreign key (acc_uname) references accounts(acc_uname)
);
create table donationcart(
pro_id int,
don_ordnr int,
cart_amount int not null,
acc_uname varchar(59),
primary key (pro_id, don_ordnr),
foreign key (don_ordnr) references donation(don_ordnr),
foreign key (acc_uname) references accounts(acc_uname)
);
|
/*
SQLyog Ultimate v11.24 (32 bit)
MySQL - 5.6.21 : Database - db_waimai
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
CREATE DATABASE /*!32312 IF NOT EXISTS*/`db_waimai` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `db_waimai`;
/*Table structure for table `t_account` */
DROP TABLE IF EXISTS `t_account`;
CREATE TABLE `t_account` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`acname` varchar(11) DEFAULT NULL,
`acpassword` varchar(110) DEFAULT NULL,
`accreatetime` varchar(56) DEFAULT NULL,
`aclogintime` varchar(56) DEFAULT NULL,
`acloginip` varchar(56) DEFAULT NULL,
`acnickname` varchar(110) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
/*Data for the table `t_account` */
insert into `t_account`(`id`,`acname`,`acpassword`,`accreatetime`,`aclogintime`,`acloginip`,`acnickname`) values (12,'12312321','<PASSWORD>','2015-07-29 17:53',NULL,NULL,'12312321'),(13,'15670865343','e10adc3949ba59abbe56e057f20f883e','2015-07-29 22:38',NULL,NULL,'15670865343'),(14,'15654545454','zanQO9','2015-07-31 17:56',NULL,NULL,'15654545454');
/*Table structure for table `t_account_role` */
DROP TABLE IF EXISTS `t_account_role`;
CREATE TABLE `t_account_role` (
`aid` bigint(20) NOT NULL,
`rid` bigint(20) NOT NULL,
PRIMARY KEY (`aid`,`rid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Data for the table `t_account_role` */
insert into `t_account_role`(`aid`,`rid`) values (12,2),(13,2),(13,3),(14,2);
/*Table structure for table `t_business` */
DROP TABLE IF EXISTS `t_business`;
CREATE TABLE `t_business` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`bsname` varchar(130) DEFAULT NULL,
`bsaddress` varchar(160) DEFAULT NULL,
`bsman` varchar(110) DEFAULT NULL,
`bstel` varchar(20) DEFAULT NULL,
`bscontent` longtext,
`bslng` varchar(60) DEFAULT NULL,
`bslat` varchar(60) DEFAULT NULL,
`bscardphoto` varchar(60) DEFAULT NULL,
`bscardnum` varchar(70) DEFAULT NULL,
`bscardaddress` varchar(160) DEFAULT NULL,
`bstype` varchar(80) DEFAULT NULL,
`acid` bigint(20) DEFAULT NULL,
`bspoststartprice` float DEFAULT NULL,
`bspostprice` int(11) DEFAULT NULL,
`bsphoto` varchar(200) DEFAULT NULL,
`bsamhourstart` varchar(80) DEFAULT NULL,
`bsamhourend` varchar(80) DEFAULT NULL,
`bspmhourstart` varchar(80) DEFAULT NULL,
`bspmhourend` varchar(80) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*Data for the table `t_business` */
insert into `t_business`(`id`,`bsname`,`bsaddress`,`bsman`,`bstel`,`bscontent`,`bslng`,`bslat`,`bscardphoto`,`bscardnum`,`bscardaddress`,`bstype`,`acid`,`bspoststartprice`,`bspostprice`,`bsphoto`,`bsamhourstart`,`bsamhourend`,`bspmhourstart`,`bspmhourend`) values (1,'开封烩面','理工大','陈润航','12312321',NULL,'113.280492','35.194766','FhNx7_ZsQaDChP88vFNBpXMFBhce','12321','理工大','中式',12,5,NULL,'FguOnUndQqeu4lzqiDxDxrnC--I0','10:00','14:00','18:00','22:30'),(2,'开封包子','河南理工大学东门','陈润航','15670865343','欢迎来订餐','113.280492','35.194765','FhNx7_ZsQaDChP88vFNBpXMFBhce','123213','理工大','中式',13,5,NULL,'FguOnUndQqeu4lzqiDxDxrnC--I0','10:00','14:00','18:00','22:30'),(3,'洧川羊肉汤','发的','发的','15654545454',NULL,'113.251791','35.216834','FhNx7_ZsQaDChP88vFNBpXMFBhce','1111111','理工大','台式',14,5,NULL,'FguOnUndQqeu4lzqiDxDxrnC--I0','10:00','14:00','18:00','22:30');
/*Table structure for table `t_food` */
DROP TABLE IF EXISTS `t_food`;
CREATE TABLE `t_food` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`fname` varchar(200) DEFAULT NULL,
`fprice` float DEFAULT NULL,
`fphoto` varchar(280) DEFAULT NULL,
`findex` int(11) DEFAULT NULL,
`fsales` tinyint(4) DEFAULT NULL,
`ftid` bigint(20) DEFAULT NULL,
`bsid` bigint(20) DEFAULT NULL,
`fsalenum` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;
/*Data for the table `t_food` */
insert into `t_food`(`id`,`fname`,`fprice`,`fphoto`,`findex`,`fsales`,`ftid`,`bsid`,`fsalenum`) values (1,'开封灌汤包',20,'Fhsp08SBHdKb2qvWY9kQMHCKmWN-',20,1,2,2,10),(2,'小笼包',5,'Fhsp08SBHdKb2qvWY9kQMHCKmWN-',4,1,2,2,20),(3,'天津狗不理笼包',5,'FmGCj7l4HEsp-O-ZcD_yFq-ekG9S',5,1,2,2,10),(4,'肉包子',5,'FvuMwzGn-E9hCs3DfnsV3GSxE057',5,1,2,2,20),(8,'素包子',3,'FgBE8Xt9AoYO5DAR1eTq-7wCDpik',3,1,2,2,10),(9,'鸡蛋馅包子',1,'FkP6E8ZOKT0PTDn-5Iy1UVPqAf_n',33,1,2,2,10),(11,'大肉包子',3,'FvuMwzGn-E9hCs3DfnsV3GSxE057',3,1,2,2,10),(12,'顺丰包子',3,'Fhsp08SBHdKb2qvWY9kQMHCKmWN-',3,1,2,2,10),(13,'十足大包子',2,'Fhsp08SBHdKb2qvWY9kQMHCKmWN-',3,1,2,2,10),(14,'超大包子',3,'Fhsp08SBHdKb2qvWY9kQMHCKmWN-',3,1,2,2,10),(15,'包子套餐',10,'Fhsp08SBHdKb2qvWY9kQMHCKmWN-',30,1,2,2,10),(16,'包子套餐2',35,'FkP6E8ZOKT0PTDn-5Iy1UVPqAf_n',35,1,2,2,10),(17,'鲜汤烩面',7,'Fhsp08SBHdKb2qvWY9kQMHCKmWN-',35,1,3,1,10),(18,'羊肉烩面',7,'Fhsp08SBHdKb2qvWY9kQMHCKmWN-',35,1,3,1,10),(19,'鸡蛋素包子',1,'FiTTI1dcPoEBGs_fasaHVcW5aMRR',30,1,2,2,10);
/*Table structure for table `t_foodtype` */
DROP TABLE IF EXISTS `t_foodtype`;
CREATE TABLE `t_foodtype` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`ftname` varchar(80) DEFAULT NULL,
`ftindex` int(11) DEFAULT NULL,
`bsid` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*Data for the table `t_foodtype` */
insert into `t_foodtype`(`id`,`ftname`,`ftindex`,`bsid`) values (2,'包子',20,2),(3,'面食',20,1);
/*Table structure for table `t_order` */
DROP TABLE IF EXISTS `t_order`;
CREATE TABLE `t_order` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`ordercode` varchar(130) DEFAULT NULL,
`orderman` varchar(160) DEFAULT NULL,
`ordertel` varchar(50) DEFAULT NULL,
`orderprice` float DEFAULT NULL,
`orderpostprice` float DEFAULT NULL,
`orderaddress` varchar(200) DEFAULT NULL,
`ordercontent` varchar(800) DEFAULT NULL,
`orderpaytype` varchar(80) DEFAULT NULL,
`orderstate` varchar(70) DEFAULT NULL,
`ordercreatetime` varchar(56) DEFAULT NULL,
`acid` bigint(20) DEFAULT NULL,
`bsid` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `u_ordercode` (`ordercode`)
) ENGINE=InnoDB AUTO_INCREMENT=19 DEFAULT CHARSET=utf8;
/*Data for the table `t_order` */
insert into `t_order`(`id`,`ordercode`,`orderman`,`ordertel`,`orderprice`,`orderpostprice`,`orderaddress`,`ordercontent`,`orderpaytype`,`orderstate`,`ordercreatetime`,`acid`,`bsid`) values (4,'D1508060012111211U13B2','理工大','15670865343',25,NULL,'理工大',NULL,'货到付款','完成订单','2015-08-06 00:12',13,2),(5,'D1508061037443744U13B2','陈润航','15670865343',120,NULL,'理工大',NULL,'货到付款','取消订单','2015-08-06 10:37',13,2),(6,'D1508061040254025U13B2','陈润航','15670865343',120,NULL,'理工大',NULL,'货到付款','等待确认','2015-08-06 10:40',13,2),(7,'D1508061041334133U13B2','陈润航','15670865343',120,NULL,'理工大',NULL,'货到付款','取消订单','2015-08-06 10:41',13,2),(8,'D1508061042184218U13B2','陈润航','15670865343',120,NULL,'理工大',NULL,'货到付款','等待确认','2015-08-06 10:42',13,2),(9,'D150806104505455U13B2','陈润航','15670865343',120,NULL,'理工大',NULL,'货到付款','等待确认','2015-08-06 10:45',13,2),(10,'D1508061046154615U13B2','陈润航','15670865343',120,NULL,'理工大',NULL,'货到付款','等待确认','2015-08-06 10:46',13,2),(11,'D1508061053455345U13B2','陈润航','15670865343',40,NULL,'理工大',NULL,'货到付款','等待确认','2015-08-06 10:53',13,2),(12,'D1508061055285528U13B2','陈润航','15670865343',40,NULL,'理工大',NULL,'货到付款','等待确认','2015-08-06 10:55',33,2),(13,'D15080611050353U13B2','陈润航','15670865343',10,NULL,'理工大',NULL,'货到付款','等待确认','2015-08-06 11:05',13,2),(14,'D150806110828828U13B2','陈润航','15670865343',10,NULL,'理工大',NULL,'货到付款','等待确认','2015-08-06 11:08',13,2),(15,'D1508061115111511U13B2','陈润航','15670865343',15,NULL,'理工大',NULL,'货到付款','等待确认','2015-08-06 11:15',13,2),(16,'D1508061124212421U13B2','陈润航','15670865343',15,NULL,'理工大',NULL,'货到付款','等待确认','2015-08-06 11:24',13,2),(17,'D1508061127272727U13B2','陈润航','15670865343',40,NULL,'理工大',NULL,'货到付款','等待确认','2015-08-06 11:27',13,2),(18,'D1508061130163016U13B2','陈润航','15670865343',40,NULL,'理工大',NULL,'货到付款','等待确认','2015-08-06 11:30',13,2);
/*Table structure for table `t_orderitem` */
DROP TABLE IF EXISTS `t_orderitem`;
CREATE TABLE `t_orderitem` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`itemname` varchar(160) DEFAULT NULL,
`itemprice` float DEFAULT NULL,
`itemnum` int(11) DEFAULT NULL,
`orderid` bigint(20) DEFAULT NULL,
`foodid` bigint(20) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8;
/*Data for the table `t_orderitem` */
insert into `t_orderitem`(`id`,`itemname`,`itemprice`,`itemnum`,`orderid`,`foodid`) values (1,'天津狗不理笼包',5,5,4,3),(2,'开封灌汤包',20,6,5,1),(3,'开封灌汤包',20,6,6,1),(4,'开封灌汤包',20,6,7,1),(5,'开封灌汤包',20,6,8,1),(6,'开封灌汤包',20,6,9,1),(7,'开封灌汤包',20,6,10,1),(8,'小笼包',5,1,11,2),(9,'肉包子',5,7,11,4),(10,'小笼包',5,1,12,2),(11,'肉包子',5,7,12,4),(12,'天津狗不理笼包',5,2,13,3),(13,'天津狗不理笼包',5,2,14,3),(14,'顺丰包子',3,5,15,12),(15,'顺丰包子',3,5,16,12),(16,'开封灌汤包',20,2,17,1),(17,'开封灌汤包',20,2,18,1);
/*Table structure for table `t_role` */
DROP TABLE IF EXISTS `t_role`;
CREATE TABLE `t_role` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`rolename` varchar(130) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*Data for the table `t_role` */
insert into `t_role`(`id`,`rolename`) values (1,'系统管理员'),(2,'商家'),(3,'普通用户');
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
set search_path to ccs;
alter table "user" add column provider_user_id varchar(32);
alter table "user" add column user_access_key varchar(32); |
<filename>chapter_1/sql/load_yellowtrips_3mo.sql
copy yellowtrips_3mo from
's3://data-lake-afo59dkg84/yellowtrips/yellow_tripdata_2020-10.csv'
iam_role 'arn:aws:iam::xxxxxxxxxxxx:role/redshift-copy' FORMAT AS CSV dateformat 'auto' ignoreheader 1;
copy yellowtrips_3mo from
's3://data-lake-afo59dkg84/yellowtrips/yellow_tripdata_2020-11.csv'
iam_role 'arn:aws:iam::xxxxxxxxxxxx:role/redshift-copy' FORMAT AS CSV dateformat 'auto' ignoreheader 1;
copy yellowtrips_3mo from
's3://data-lake-afo59dkg84/yellowtrips/yellow_tripdata_2020-12.csv'
iam_role 'arn:aws:iam::xxxxxxxxxxxx:role/redshift-copy' FORMAT AS CSV dateformat 'auto' ignoreheader 1;
|
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32, RTRIM(1)b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;
|
<reponame>Kahiko/Growthware
/*
Usage:
DECLARE
@P_Security_Entity_SeqID int = -1,
@P_Name VARCHAR(256) = 'System',
@P_Description VARCHAR(512) = 'System',
@P_URL VARCHAR(128) = '',
@P_Status_SeqID int = 1,
@P_DAL VARCHAR(50) = '',
@P_DAL_Name VARCHAR(50) = '',
@P_DAL_Name_SPACE VARCHAR(256) = '',
@P_DAL_String VARCHAR(512) = '',
@P_Skin char(25) = '',
@P_Style VARCHAR(25) = '',
@P_Encryption_Type INT = 1,
@P_Parent_Security_Entity_SeqID int = 1,
@P_Added_Updated_By INT = 2,
@P_Primary_Key int,
@P_Debug INT = 1
exec ZGWSecurity.Set_Security_Entity
@P_Security_Entity_SeqID,
@P_Name,
@P_Description,
@P_URL,
@P_Status_SeqID,
@P_DAL,
@P_DAL_Name,
@P_DAL_Name_SPACE,
@P_DAL_String,
@P_Skin,
@P_Style,
@P_Encryption_Type,
@P_Parent_Security_Entity_SeqID,
@P_Added_Updated_By,
@P_Primary_Key OUT,
@P_Debug
PRINT 'Primay key is: ' + CONVERT(VARCHAR(30),@P_Primary_Key)
*/
-- =============================================
-- Author: <NAME>
-- Create date: 09/02/2011
-- Description: Inserts or updates ZGWSecurity.Security_Entities
-- =============================================
CREATE PROCEDURE [ZGWSecurity].[Set_Security_Entity]
@P_Security_Entity_SeqID int,
@P_Name VARCHAR(256),
@P_Description VARCHAR(512),
@P_URL VARCHAR(128),
@P_Status_SeqID int,
@P_DAL VARCHAR(50),
@P_DAL_Name VARCHAR(50),
@P_DAL_Name_SPACE VARCHAR(256),
@P_DAL_String VARCHAR(512),
@P_Skin char(25),
@P_Style VARCHAR(25),
@P_Encryption_Type INT,
@P_Parent_Security_Entity_SeqID int,
@P_Added_Updated_By INT,
@P_Primary_Key int OUTPUT,
@P_Debug INT = 0
AS
DECLARE @V_Now DATETIME = GETDATE()
SET NOCOUNT ON
IF @P_Debug = 1 PRINT 'Starting ZGWSecurity.Set_Security_Entity'
IF @P_Parent_Security_Entity_SeqID = @P_Security_Entity_SeqID or @P_Parent_Security_Entity_SeqID = -1 SET @P_Parent_Security_Entity_SeqID = NULL
IF @P_Security_Entity_SeqID > -1
BEGIN
IF @P_Debug = 1 PRINT 'Update'
UPDATE ZGWSecurity.Security_Entities
SET
Name = @P_Name,
[Description] = @P_Description,
URL = @P_URL,
Status_SeqID = @P_Status_SeqID,
DAL = @P_DAL,
DAL_Name = @P_DAL_Name,
DAL_Name_Space = @P_DAL_Name_SPACE,
DAL_String = @P_DAL_String,
Skin = @P_Skin,
Style = @P_Style,
Encryption_Type = @P_Encryption_Type,
Parent_Security_Entity_SeqID = @P_Parent_Security_Entity_SeqID,
Updated_By = @P_Added_Updated_By,
Updated_Date = @V_Now
WHERE
Security_Entity_SeqID = @P_Security_Entity_SeqID
SELECT @P_Primary_Key = @P_Security_Entity_SeqID
END
ELSE
BEGIN
IF @P_Debug = 1 PRINT 'Insert'
-- INSERT a new row in the table.
INSERT ZGWSecurity.Security_Entities
(
[Name],
[Description],
[URL],
Status_SeqID,
DAL,
DAL_Name,
DAL_Name_SPACE,
DAL_STRING,
Skin,
Style,
Encryption_Type,
Parent_Security_Entity_SeqID,
Added_By,
Added_Date
)
VALUES
(
@P_Name,
@P_Description,
@P_URL,
@P_Status_SeqID,
@P_DAL,
@P_DAL_Name,
@P_DAL_Name_SPACE,
@P_DAL_String,
@P_Skin,
@P_Style,
@P_Encryption_Type,
@P_Parent_Security_Entity_SeqID,
@P_Added_Updated_By,
@V_Now
)
-- Get the IDENTITY value for the row just inserted.
SELECT @P_Primary_Key=SCOPE_IDENTITY()
END
-- End if
IF @P_Debug = 1 PRINT 'Ending ZGWSecurity.Set_Security_Entity'
RETURN 0 |
-- file:alter_table.sql ln:2348 expect:true
alter table p11 add a int
|
CREATE OR REPLACE VIEW zeroex.view_epochs AS (
WITH
past_epochs AS (
SELECT
ee.epoch AS epoch_id
, ee."rewardsAvailable"::NUMERIC / 1e18 AS rewards_available_in_eth
, ee."totalFeesCollected"::NUMERIC / 1e18 AS total_fees_collected_by_pools_in_eth
-- fill in epoch 1 starting values with the staking proxy deployment tx
, CASE
WHEN ee.epoch = 1 THEN '4680e9d59bae9bbde1b0bae0fa5157ceea64ea923f2be434e5da6f5df2bdb907'::bytea
ELSE LAG(ee.evt_tx_hash) OVER (ORDER BY ee.epoch)
END AS starting_transaction_hash
, CASE
WHEN ee.epoch = 1 THEN 43
ELSE LAG(tx.index) OVER (ORDER BY ee.epoch)
END AS starting_transaction_index
, CASE
WHEN ee.epoch = 1 THEN 8952581
ELSE LAG(ee.evt_block_number) OVER (ORDER BY ee.epoch)
END AS starting_block_number
, CASE
WHEN ee.epoch = 1 THEN '2019-11-17 20:58:01.000000 +00:00'::TIMESTAMP
ELSE LAG(b.time) OVER (ORDER BY ee.epoch)
END AS starting_block_timestamp
, evt_tx_hash AS ending_transaction_hash
, tx.index AS ending_transaction_index
, ee.evt_block_number AS ending_block_number
, b.time AS ending_block_timestamp
FROM zeroex_v3."StakingProxy_evt_EpochEnded" ee
LEFT JOIN ethereum.blocks b ON b.number = ee.evt_block_number
LEFT JOIN ethereum.transactions tx ON tx.hash = ee.evt_tx_hash
ORDER BY 1
)
, current_epoch AS (
SELECT
epoch + 1 AS epoch_id
, NULL::NUMERIC AS rewards_available_in_eth
, NULL::NUMERIC AS total_fees_collected_by_pools_in_eth
, evt_tx_hash AS starting_transaction_hash
, tx.index AS starting_transaction_index
, ee.evt_block_number AS starting_block_number
, b.time AS starting_block_timestamp
, NULL::BYTEA AS ending_transaction_hash
, NULL::BIGINT AS ending_transaction_index
, NULL::BIGINT AS ending_block_number
, NULL::TIMESTAMPTZ AS ending_block_timestamp
FROM zeroex_v3."StakingProxy_evt_EpochEnded" ee
LEFT JOIN ethereum.blocks b ON b.number = ee.evt_block_number
LEFT JOIN ethereum.transactions tx ON tx.hash = ee.evt_tx_hash
ORDER BY epoch_id DESC
LIMIT 1
)
SELECT * FROM past_epochs
UNION ALL
SELECT * FROM current_epoch
);
|
-- /**
-- *
-- * Copyright (c) 2006-2017, Speedment, Inc. All Rights Reserved.
-- *
-- * Licensed under the Apache License, Version 2.0 (the "License"); You may not
-- * use this file except in compliance with the License. You may obtain a copy of
-- * the License at:
-- *
-- * http://www.apache.org/licenses/LICENSE-2.0
-- *
-- * Unless required by applicable law or agreed to in writing, software
-- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-- * License for the specific language governing permissions and limitations under
-- * the License.
-- */
-- Always make sure that you maintain a safe environment.
-- This is just an example of how to setup a sakila user.
-- Do not use this on a producion server where you should always pick a "safe"
-- password
CREATE USER 'sakila-user'@'localhost' IDENTIFIED BY '<PASSWORD>';
GRANT ALL PRIVILEGES ON sakila.* TO 'sakila-user'@'localhost';
FLUSH PRIVILEGES;
commit; |
<gh_stars>0
ALTER TABLE `hotel`.`categorias`
ADD COLUMN `valor` DECIMAL(18,2) NOT NULL AFTER `observacao`; |
<reponame>LBS-sws/Integral<filename>protected/data/integraldev.sql
/*
Navicat MySQL Data Transfer
Source Server : local
Source Server Version : 50620
Source Host : localhost:3306
Source Database : integraldev
Target Server Type : MYSQL
Target Server Version : 50620
File Encoding : 65001
Date: 2018-04-02 09:36:43
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for gr_integral
-- ----------------------------
DROP TABLE IF EXISTS `gr_integral`;
CREATE TABLE `gr_integral` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`employee_id` int(11) NOT NULL COMMENT '員工id',
`alg_con` int(11) NOT NULL DEFAULT '0' COMMENT '0:add 1:cut',
`set_id` varchar(255) DEFAULT NULL COMMENT '積分配置id或兌換id',
`integral` int(11) NOT NULL DEFAULT '0' COMMENT '積分數值',
`apply_num` int(11) NOT NULL DEFAULT '1' COMMENT '申請數量',
`images_url` text COMMENT '圖片地址',
`remark` text COMMENT '備註',
`reject_note` text COMMENT '拒絕備註',
`state` varchar(255) DEFAULT NULL COMMENT '狀態 0:草稿 1:發送 2:拒絕 3:完成',
`city` varchar(255) DEFAULT NULL,
`lcu` varchar(255) DEFAULT NULL,
`luu` varchar(255) DEFAULT NULL,
`lcd` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`lud` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=utf8 COMMENT='員工積分表';
-- ----------------------------
-- Table structure for gr_integral_add
-- ----------------------------
DROP TABLE IF EXISTS `gr_integral_add`;
CREATE TABLE `gr_integral_add` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`integral_name` varchar(255) NOT NULL COMMENT '積分名稱',
`integral_num` int(11) NOT NULL DEFAULT '0' COMMENT '積分數值',
`city` varchar(255) DEFAULT NULL,
`lcu` varchar(255) DEFAULT NULL,
`luu` varchar(255) DEFAULT NULL,
`lcd` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`lud` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COMMENT='積分配置表';
-- ----------------------------
-- Table structure for gr_integral_cut
-- ----------------------------
DROP TABLE IF EXISTS `gr_integral_cut`;
CREATE TABLE `gr_integral_cut` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`integral_name` varchar(255) NOT NULL COMMENT '兌換名稱',
`integral_num` int(11) NOT NULL DEFAULT '0' COMMENT '積分數值(負數)',
`imges_url` text COMMENT '兌換物品的圖片',
`inventory` int(255) NOT NULL DEFAULT '0' COMMENT '庫存',
`remark` text COMMENT '備註',
`city` varchar(255) DEFAULT NULL,
`lcu` varchar(255) DEFAULT NULL,
`luu` varchar(255) DEFAULT NULL,
`lcd` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`lud` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COMMENT='積分兌換表';
|
UPDATE dwh_history_timekeeping
SET var_datetime = '2005-01-01'
WHERE var_name = 'lastSync';
|
#macro($nda01IncrRightCount(userId,rightCount))
UPDATE national_day_activity_01_stu
SET right_count = right_count + :rightCount
WHERE user_id = :userId
#end
#macro($ndaAwardList())
SELECT * FROM national_day_activity_01_stu ORDER BY right_count DESC,user_id ASC LIMIT 50
#end |
<filename>migrations/1528395620_add_description_to_campaign_jobs.up.sql<gh_stars>1-10
BEGIN;
ALTER TABLE campaign_jobs ADD COLUMN description text;
COMMIT;
|
CREATE TABLE "stats" (
"id" SERIAL PRIMARY KEY
, "node" TEXT NOT NULL
, "ms" BIGINT NOT NULL
, "request_size" INT NOT NULL
, "request_id" TEXT NOT NULL
, "api_id" INT NOT NULL
, "api_name" TEXT NOT NULL
, "host_id" INT NOT NULL
, "host_name" TEXT NOT NULL
, "proxy_id" INT NOT NULL
, "proxy_name" TEXT NOT NULL
, "proxy_env_id" INT NOT NULL
, "proxy_env_name" TEXT NOT NULL
, "proxy_route_path" TEXT NOT NULL
, "proxy_route_verb" TEXT NOT NULL
, "proxy_group_id" INT
, "proxy_group_name" TEXT
, "response_time" INT NOT NULL
, "response_size" INT NOT NULL
, "response_status" INT NOT NULL
, "response_error" TEXT NOT NULL
, "remote_endpoint_response_time" INT NOT NULL
, "timestamp" TIMESTAMP WITH TIME ZONE NOT NULL
);
CREATE INDEX idx_stats_api_id ON stats USING btree(api_id);
CREATE INDEX idx_stats_proxy_id ON stats USING btree(proxy_id);
CREATE INDEX idx_stats_timestamp ON stats USING btree(timestamp);
|
-- --------------------------------------------------------
-- 主机: 192.168.0.199
-- 服务器版本: 5.7.10-log - MySQL Community Server (GPL)
-- 服务器操作系统: Win64
-- HeidiSQL 版本: 9.5.0.5280
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!50503 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- 导出 表 adminstore.area 结构
DROP TABLE IF EXISTS `area`;
CREATE TABLE IF NOT EXISTS `area` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(50) DEFAULT NULL,
`name` varchar(255) DEFAULT NULL,
`area_type` int(11) DEFAULT NULL,
`pid` int(11) DEFAULT NULL,
`ids` varchar(255) DEFAULT NULL,
`addDate` datetime DEFAULT NULL,
`lastDate` datetime DEFAULT NULL,
`levelInfo` int(11) DEFAULT NULL,
`lft` int(11) DEFAULT NULL,
`rgt` int(11) DEFAULT NULL,
`sortNum` int(11) DEFAULT NULL,
`fullName` varchar(20) DEFAULT NULL,
`govCode` varchar(12) DEFAULT NULL,
`lat` float DEFAULT NULL,
`lng` float DEFAULT NULL,
`state` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FKtn7all8h9e6fi9pspra60rht5` (`pid`),
CONSTRAINT `FKtn7all8h9e6fi9pspra60rht5` FOREIGN KEY (`pid`) REFERENCES `area` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=431 DEFAULT CHARSET=utf8;
-- 正在导出表 adminstore.area 的数据:~170 rows (大约)
DELETE FROM `area`;
/*!40000 ALTER TABLE `area` DISABLE KEYS */;
INSERT INTO `area` (`id`, `code`, `name`, `area_type`, `pid`, `ids`, `addDate`, `lastDate`, `levelInfo`, `lft`, `rgt`, `sortNum`, `fullName`, `govCode`, `lat`, `lng`, `state`) VALUES
(1, NULL, '中国', 0, NULL, NULL, '2018-08-24 16:58:41', '2018-08-24 16:58:39', 1, 1, 860, NULL, NULL, NULL, NULL, NULL, NULL),
(2, '110000', '北京', 1, 1, '1,2', '2018-08-24 16:59:49', '2018-08-24 16:59:49', 2, 2, 5, NULL, '北京市', '110000', 39.9047, 116.407, NULL),
(3, '120000', '天津', 1, 1, '1,3', '2018-08-24 16:59:50', '2018-08-24 16:59:50', 2, 6, 9, NULL, '天津市', '120000', 39.0851, 117.199, NULL),
(4, '130000', '河北', 1, 1, '1,4', '2018-08-24 16:59:50', '2018-08-24 16:59:50', 2, 10, 33, NULL, '河北省', '130000', 38.036, 114.47, NULL),
(5, '140000', '山西', 1, 1, '1,5', '2018-08-24 16:59:50', '2018-08-24 16:59:50', 2, 34, 57, NULL, '山西省', '140000', 37.8734, 112.563, NULL),
(6, '150000', '内蒙古', 1, 1, '1,6', '2018-08-24 16:59:50', '2018-08-24 16:59:50', 2, 58, 83, NULL, '内蒙古自治区', '150000', 40.8173, 111.765, NULL),
(7, '210000', '辽宁', 1, 1, '1,7', '2018-08-24 16:59:50', '2018-08-24 16:59:50', 2, 84, 113, NULL, '辽宁省', '210000', 41.8357, 123.429, NULL),
(8, '220000', '吉林', 1, 1, '1,8', '2018-08-24 16:59:50', '2018-08-24 16:59:50', 2, 114, 133, NULL, '吉林省', '220000', 43.8962, 125.327, NULL),
(9, '230000', '黑龙江', 1, 1, '1,9', '2018-08-24 16:59:50', '2018-08-24 16:59:50', 2, 134, 161, NULL, '黑龙江省', '230000', 45.7421, 126.663, NULL),
(10, '310000', '上海', 1, 1, '1,10', '2018-08-24 16:59:50', '2018-08-24 16:59:50', 2, 162, 165, NULL, '上海市', '310000', 31.2304, 121.474, NULL),
(11, '320000', '江苏', 1, 1, '1,11', '2018-08-24 16:59:50', '2018-08-24 16:59:50', 2, 166, 193, NULL, '江苏省', '320000', 32.0607, 118.763, NULL),
(12, '330000', '浙江', 1, 1, '1,12', '2018-08-24 16:59:51', '2018-08-24 16:59:51', 2, 194, 217, NULL, '浙江省', '330000', 30.2656, 120.154, NULL),
(13, '340000', '安徽', 1, 1, '1,13', '2018-08-24 16:59:51', '2018-08-24 16:59:51', 2, 218, 251, NULL, '安徽省', '340000', 31.8616, 117.286, NULL),
(14, '350000', '福建', 1, 1, '1,14', '2018-08-24 16:59:51', '2018-08-24 16:59:51', 2, 252, 271, NULL, '福建省', '350000', 26.0998, 119.297, NULL),
(15, '360000', '江西', 1, 1, '1,15', '2018-08-24 16:59:51', '2018-08-24 16:59:51', 2, 272, 295, NULL, '江西省', '360000', 28.6742, 115.91, NULL),
(16, '370000', '山东', 1, 1, '1,16', '2018-08-24 16:59:51', '2018-08-24 16:59:51', 2, 296, 331, NULL, '山东省', '370000', 36.6683, 117.021, NULL),
(17, '410000', '河南', 1, 1, '1,17', '2018-08-24 16:59:51', '2018-08-24 16:59:51', 2, 332, 369, NULL, '河南省', '410000', 34.7657, 113.753, NULL),
(18, '420000', '湖北', 1, 1, '1,18', '2018-08-24 16:59:51', '2018-08-24 16:59:51', 2, 370, 405, NULL, '湖北省', '420000', 30.5454, 114.342, NULL),
(19, '430000', '湖南', 1, 1, '1,19', '2018-08-24 16:59:51', '2018-08-24 16:59:51', 2, 406, 435, NULL, '湖南省', '430000', 28.1127, 112.983, NULL),
(20, '440000', '广东', 1, 1, '1,20', '2018-08-24 16:59:51', '2018-08-24 16:59:51', 2, 436, 481, NULL, '广东省', '440000', 23.1317, 113.266, NULL),
(21, '450000', '广西', 1, 1, '1,21', '2018-08-24 16:59:51', '2018-08-24 16:59:51', 2, 482, 511, NULL, '广西壮族自治区', '450000', 22.8152, 108.328, NULL),
(22, '460000', '海南', 1, 1, '1,22', '2018-08-24 16:59:52', '2018-08-24 16:59:52', 2, 512, 551, NULL, '海南省', '460000', 20.02, 110.349, NULL),
(23, '500000', '重庆', 1, 1, '1,23', '2018-08-24 16:59:52', '2018-08-24 16:59:52', 2, 552, 557, NULL, '重庆市', '500000', 29.5647, 106.551, NULL),
(24, '510000', '四川', 1, 1, '1,24', '2018-08-24 16:59:52', '2018-08-24 16:59:52', 2, 558, 601, NULL, '四川省', '510000', 30.6509, 104.076, NULL),
(25, '520000', '贵州', 1, 1, '1,25', '2018-08-24 16:59:52', '2018-08-24 16:59:52', 2, 602, 621, NULL, '贵州省', '520000', 26.5982, 106.707, NULL),
(26, '530000', '云南', 1, 1, '1,26', '2018-08-24 16:59:52', '2018-08-24 16:59:52', 2, 622, 655, NULL, '云南省', '530000', 25.0453, 102.71, NULL),
(27, '540000', '西藏', 1, 1, '1,27', '2018-08-24 16:59:52', '2018-08-24 16:59:52', 2, 656, 671, NULL, '西藏自治区', '540000', 29.6472, 91.1175, NULL),
(28, '610000', '陕西', 1, 1, '1,28', '2018-08-24 16:59:52', '2018-08-24 16:59:52', 2, 672, 693, NULL, '陕西省', '610000', 34.2649, 108.954, NULL),
(29, '620000', '甘肃', 1, 1, '1,29', '2018-08-24 16:59:52', '2018-08-24 16:59:52', 2, 694, 723, NULL, '甘肃省', '620000', 36.0594, 103.826, NULL),
(30, '630000', '青海', 1, 1, '1,30', '2018-08-24 16:59:52', '2018-08-24 16:59:52', 2, 724, 741, NULL, '青海省', '630000', 36.6209, 101.78, NULL),
(31, '640000', '宁夏', 1, 1, '1,31', '2018-08-24 16:59:52', '2018-08-24 16:59:52', 2, 742, 753, NULL, '宁夏回族自治区', '640000', 38.4712, 106.259, NULL),
(32, '650000', '新疆', 1, 1, '1,32', '2018-08-24 16:59:53', '2018-08-24 16:59:53', 2, 754, 801, NULL, '新疆维吾尔自治区', '650000', 43.7934, 87.6271, NULL),
(33, '710000', '台湾', 1, 1, '1,33', '2018-08-24 16:59:53', '2018-08-24 16:59:53', 2, 802, 803, NULL, '台湾省', '710000', 25.0307, 121.52, NULL),
(34, '810000', '香港', 1, 1, '1,34', '2018-08-24 16:59:53', '2018-08-24 16:59:53', 2, 804, 841, NULL, '香港特别行政区', '810000', 22.2753, 114.165, NULL),
(35, '820000', '澳门', 1, 1, '1,35', '2018-08-24 16:59:53', '2018-08-24 16:59:53', 2, 842, 859, NULL, '澳门特别行政区', '820000', 22.1987, 113.549, NULL),
(36, '110100', '北京城区', 2, 2, '1,2,36', '2018-08-24 17:02:28', '2018-08-24 17:02:28', 3, 3, 4, NULL, '北京城区', '110100', 39.905, 116.405, NULL),
(37, '120100', '天津城区', 2, 3, '1,3,37', '2018-08-24 17:02:28', '2018-08-24 17:02:28', 3, 7, 8, NULL, '天津城区', '120100', 39.1256, 117.19, NULL),
(38, '130100', '石家庄', 2, 4, '1,4,38', '2018-08-24 17:02:29', '2018-08-24 17:02:29', 3, 11, 12, NULL, '石家庄市', '130100', 38.0455, 114.502, NULL),
(39, '130200', '唐山', 2, 4, '1,4,39', '2018-08-24 17:02:29', '2018-08-24 17:02:29', 3, 13, 14, NULL, '唐山市', '130200', 39.6351, 118.175, NULL),
(40, '130300', '秦皇岛', 2, 4, '1,4,40', '2018-08-24 17:02:29', '2018-08-24 17:02:29', 3, 15, 16, NULL, '秦皇岛市', '130300', 39.9425, 119.587, NULL),
(41, '130400', '邯郸', 2, 4, '1,4,41', '2018-08-24 17:02:29', '2018-08-24 17:02:29', 3, 17, 18, NULL, '邯郸市', '130400', 36.6123, 114.491, NULL),
(42, '130500', '邢台', 2, 4, '1,4,42', '2018-08-24 17:02:29', '2018-08-24 17:02:29', 3, 19, 20, NULL, '邢台市', '130500', 37.0682, 114.509, NULL),
(43, '130600', '保定', 2, 4, '1,4,43', '2018-08-24 17:02:29', '2018-08-24 17:02:29', 3, 21, 22, NULL, '保定市', '130600', 38.8677, 115.482, NULL),
(44, '130700', '张家口', 2, 4, '1,4,44', '2018-08-24 17:02:29', '2018-08-24 17:02:29', 3, 23, 24, NULL, '张家口市', '130700', 40.8119, 114.884, NULL),
(45, '130800', '承德', 2, 4, '1,4,45', '2018-08-24 17:02:29', '2018-08-24 17:02:29', 3, 25, 26, NULL, '承德市', '130800', 40.9762, 117.939, NULL),
(46, '130900', '沧州', 2, 4, '1,4,46', '2018-08-24 17:02:29', '2018-08-24 17:02:29', 3, 27, 28, NULL, '沧州市', '130900', 38.3106, 116.857, NULL),
(47, '131000', '廊坊', 2, 4, '1,4,47', '2018-08-24 17:02:30', '2018-08-24 17:02:30', 3, 29, 30, NULL, '廊坊市', '131000', 39.5239, 116.704, NULL),
(48, '131100', '衡水', 2, 4, '1,4,48', '2018-08-24 17:02:30', '2018-08-24 17:02:30', 3, 31, 32, NULL, '衡水市', '131100', 37.7351, 115.666, NULL),
(49, '140100', '太原', 2, 5, '1,5,49', '2018-08-24 17:02:30', '2018-08-24 17:02:30', 3, 35, 36, NULL, '太原市', '140100', 37.857, 112.549, NULL),
(50, '140200', '大同', 2, 5, '1,5,50', '2018-08-24 17:02:30', '2018-08-24 17:02:30', 3, 37, 38, NULL, '大同市', '140200', 40.0903, 113.295, NULL),
(51, '140300', '阳泉', 2, 5, '1,5,51', '2018-08-24 17:02:30', '2018-08-24 17:02:30', 3, 39, 40, NULL, '阳泉市', '140300', 37.8612, 113.583, NULL),
(52, '140400', '长治', 2, 5, '1,5,52', '2018-08-24 17:02:30', '2018-08-24 17:02:30', 3, 41, 42, NULL, '长治市', '140400', 36.1911, 113.114, NULL),
(53, '140500', '晋城', 2, 5, '1,5,53', '2018-08-24 17:02:30', '2018-08-24 17:02:30', 3, 43, 44, NULL, '晋城市', '140500', 35.4976, 112.851, NULL),
(54, '140600', '朔州', 2, 5, '1,5,54', '2018-08-24 17:02:30', '2018-08-24 17:02:30', 3, 45, 46, NULL, '朔州市', '140600', 39.3313, 112.433, NULL),
(55, '140700', '晋中', 2, 5, '1,5,55', '2018-08-24 17:02:30', '2018-08-24 17:02:30', 3, 47, 48, NULL, '晋中市', '140700', 37.6965, 112.736, NULL),
(56, '140800', '运城', 2, 5, '1,5,56', '2018-08-24 17:02:31', '2018-08-24 17:02:31', 3, 49, 50, NULL, '运城市', '140800', 35.0228, 111.004, NULL),
(57, '140900', '忻州', 2, 5, '1,5,57', '2018-08-24 17:02:31', '2018-08-24 17:02:31', 3, 51, 52, NULL, '忻州市', '140900', 38.4177, 112.734, NULL),
(58, '141000', '临汾', 2, 5, '1,5,58', '2018-08-24 17:02:31', '2018-08-24 17:02:31', 3, 53, 54, NULL, '临汾市', '141000', 36.0841, 111.518, NULL),
(59, '141100', '吕梁', 2, 5, '1,5,59', '2018-08-24 17:02:31', '2018-08-24 17:02:31', 3, 55, 56, NULL, '吕梁市', '141100', 37.5244, 111.134, NULL),
(60, '150100', '呼和浩特', 2, 6, '1,6,60', '2018-08-24 17:02:31', '2018-08-24 17:02:31', 3, 59, 60, NULL, '呼和浩特市', '150100', 40.8183, 111.671, NULL),
(61, '150200', '包头', 2, 6, '1,6,61', '2018-08-24 17:02:31', '2018-08-24 17:02:31', 3, 61, 62, NULL, '包头市', '150200', 40.6582, 109.84, NULL),
(62, '150300', '乌海', 2, 6, '1,6,62', '2018-08-24 17:02:32', '2018-08-24 17:02:32', 3, 63, 64, NULL, '乌海市', '150300', 39.6737, 106.826, NULL),
(63, '150400', '赤峰', 2, 6, '1,6,63', '2018-08-24 17:02:32', '2018-08-24 17:02:32', 3, 65, 66, NULL, '赤峰市', '150400', 42.2753, 118.957, NULL),
(64, '150500', '通辽', 2, 6, '1,6,64', '2018-08-24 17:02:32', '2018-08-24 17:02:32', 3, 67, 68, NULL, '通辽市', '150500', 43.6174, 122.263, NULL),
(65, '150600', '鄂尔多斯', 2, 6, '1,6,65', '2018-08-24 17:02:32', '2018-08-24 17:02:32', 3, 69, 70, NULL, '鄂尔多斯市', '150600', 39.8172, 109.99, NULL),
(66, '150700', '呼伦贝尔', 2, 6, '1,6,66', '2018-08-24 17:02:32', '2018-08-24 17:02:32', 3, 71, 72, NULL, '呼伦贝尔市', '150700', 49.2153, 119.758, NULL),
(67, '150800', '巴彦淖尔', 2, 6, '1,6,67', '2018-08-24 17:02:32', '2018-08-24 17:02:32', 3, 73, 74, NULL, '巴彦淖尔市', '150800', 40.7574, 107.417, NULL),
(68, '150900', '乌兰察布', 2, 6, '1,6,68', '2018-08-24 17:02:32', '2018-08-24 17:02:32', 3, 75, 76, NULL, '乌兰察布市', '150900', 41.0341, 113.115, NULL),
(69, '152200', '兴安盟', 2, 6, '1,6,69', '2018-08-24 17:02:32', '2018-08-24 17:02:32', 3, 77, 78, NULL, '兴安盟', '152200', 46.0763, 122.07, NULL),
(70, '152500', '锡林郭勒盟', 2, 6, '1,6,70', '2018-08-24 17:02:32', '2018-08-24 17:02:32', 3, 79, 80, NULL, '锡林郭勒盟', '152500', 43.944, 116.091, NULL),
(71, '152900', '阿拉善盟', 2, 6, '1,6,71', '2018-08-24 17:02:32', '2018-08-24 17:02:32', 3, 81, 82, NULL, '阿拉善盟', '152900', 38.8448, 105.706, NULL),
(72, '210100', '沈阳', 2, 7, '1,7,72', '2018-08-24 17:02:33', '2018-08-24 17:02:33', 3, 85, 86, NULL, '沈阳市', '210100', 41.7968, 123.429, NULL),
(73, '210200', '大连', 2, 7, '1,7,73', '2018-08-24 17:02:33', '2018-08-24 17:02:33', 3, 87, 88, NULL, '大连市', '210200', 38.9146, 121.619, NULL),
(74, '210300', '鞍山', 2, 7, '1,7,74', '2018-08-24 17:02:33', '2018-08-24 17:02:33', 3, 89, 90, NULL, '鞍山市', '210300', 41.1106, 122.996, NULL),
(75, '210400', '抚顺', 2, 7, '1,7,75', '2018-08-24 17:02:33', '2018-08-24 17:02:33', 3, 91, 92, NULL, '抚顺市', '210400', 41.876, 123.921, NULL),
(76, '210500', '本溪', 2, 7, '1,7,76', '2018-08-24 17:02:33', '2018-08-24 17:02:33', 3, 93, 94, NULL, '本溪市', '210500', 41.2979, 123.771, NULL),
(77, '210600', '丹东', 2, 7, '1,7,77', '2018-08-24 17:02:33', '2018-08-24 17:02:33', 3, 95, 96, NULL, '丹东市', '210600', 40.1243, 124.383, NULL),
(78, '210700', '锦州', 2, 7, '1,7,78', '2018-08-24 17:02:33', '2018-08-24 17:02:33', 3, 97, 98, NULL, '锦州市', '210700', 41.1193, 121.136, NULL),
(79, '210800', '营口', 2, 7, '1,7,79', '2018-08-24 17:02:33', '2018-08-24 17:02:33', 3, 99, 100, NULL, '营口市', '210800', 40.6674, 122.235, NULL),
(80, '210900', '阜新', 2, 7, '1,7,80', '2018-08-24 17:02:33', '2018-08-24 17:02:33', 3, 101, 102, NULL, '阜新市', '210900', 42.0118, 121.649, NULL),
(81, '211000', '辽阳', 2, 7, '1,7,81', '2018-08-24 17:02:33', '2018-08-24 17:02:33', 3, 103, 104, NULL, '辽阳市', '211000', 41.2694, 123.182, NULL),
(82, '211100', '盘锦', 2, 7, '1,7,82', '2018-08-24 17:02:34', '2018-08-24 17:02:34', 3, 105, 106, NULL, '盘锦市', '211100', 41.1245, 122.07, NULL),
(83, '211200', '铁岭', 2, 7, '1,7,83', '2018-08-24 17:02:34', '2018-08-24 17:02:34', 3, 107, 108, NULL, '铁岭市', '211200', 42.2906, 123.844, NULL),
(84, '211300', '朝阳', 2, 7, '1,7,84', '2018-08-24 17:02:34', '2018-08-24 17:02:34', 3, 109, 110, NULL, '朝阳市', '211300', 41.5768, 120.451, NULL),
(85, '211400', '葫芦岛', 2, 7, '1,7,85', '2018-08-24 17:02:34', '2018-08-24 17:02:34', 3, 111, 112, NULL, '葫芦岛市', '211400', 40.7556, 120.856, NULL),
(86, '220100', '长春', 2, 8, '1,8,86', '2018-08-24 17:02:34', '2018-08-24 17:02:34', 3, 115, 116, NULL, '长春市', '220100', 43.8868, 125.325, NULL),
(87, '220200', '吉林', 2, 8, '1,8,87', '2018-08-24 17:02:34', '2018-08-24 17:02:34', 3, 117, 118, NULL, '吉林市', '220200', 43.8436, 126.553, NULL),
(88, '220300', '四平', 2, 8, '1,8,88', '2018-08-24 17:02:34', '2018-08-24 17:02:34', 3, 119, 120, NULL, '四平市', '220300', 43.1703, 124.371, NULL),
(89, '220400', '辽源', 2, 8, '1,8,89', '2018-08-24 17:02:34', '2018-08-24 17:02:34', 3, 121, 122, NULL, '辽源市', '220400', 42.9027, 125.145, NULL),
(90, '220500', '通化', 2, 8, '1,8,90', '2018-08-24 17:02:34', '2018-08-24 17:02:34', 3, 123, 124, NULL, '通化市', '220500', 41.7212, 125.937, NULL),
(91, '220600', '白山', 2, 8, '1,8,91', '2018-08-24 17:02:35', '2018-08-24 17:02:35', 3, 125, 126, NULL, '白山市', '220600', 41.9425, 126.428, NULL),
(92, '220700', '松原', 2, 8, '1,8,92', '2018-08-24 17:02:35', '2018-08-24 17:02:35', 3, 127, 128, NULL, '松原市', '220700', 45.1182, 124.824, NULL),
(93, '220800', '白城', 2, 8, '1,8,93', '2018-08-24 17:02:35', '2018-08-24 17:02:35', 3, 129, 130, NULL, '白城市', '220800', 45.619, 122.841, NULL),
(94, '222400', '延边朝鲜族自治州', 2, 8, '1,8,94', '2018-08-24 17:02:35', '2018-08-24 17:02:35', 3, 131, 132, NULL, '延边朝鲜族自治州', '222400', 42.9048, 129.513, NULL),
(95, '230100', '哈尔滨', 2, 9, '1,9,95', '2018-08-24 17:02:35', '2018-08-24 17:02:35', 3, 135, 136, NULL, '哈尔滨市', '230100', 45.757, 126.642, NULL),
(96, '230200', '齐齐哈尔', 2, 9, '1,9,96', '2018-08-24 17:02:35', '2018-08-24 17:02:35', 3, 137, 138, NULL, '齐齐哈尔市', '230200', 47.3421, 123.958, NULL),
(97, '230300', '鸡西', 2, 9, '1,9,97', '2018-08-24 17:02:35', '2018-08-24 17:02:35', 3, 139, 140, NULL, '鸡西市', '230300', 45.3, 130.976, NULL),
(98, '230400', '鹤岗', 2, 9, '1,9,98', '2018-08-24 17:02:35', '2018-08-24 17:02:35', 3, 141, 142, NULL, '鹤岗市', '230400', 47.3321, 130.277, NULL),
(99, '230500', '双鸭山', 2, 9, '1,9,99', '2018-08-24 17:02:35', '2018-08-24 17:02:35', 3, 143, 144, NULL, '双鸭山市', '230500', 46.6434, 131.157, NULL),
(100, '230600', '大庆', 2, 9, '1,9,100', '2018-08-24 17:02:35', '2018-08-24 17:02:35', 3, 145, 146, NULL, '大庆市', '230600', 46.5907, 125.113, NULL),
(101, '230700', '伊春', 2, 9, '1,9,101', '2018-08-24 17:02:36', '2018-08-24 17:02:36', 3, 147, 148, NULL, '伊春市', '230700', 47.7248, 128.899, NULL),
(102, '230800', '佳木斯', 2, 9, '1,9,102', '2018-08-24 17:02:36', '2018-08-24 17:02:36', 3, 149, 150, NULL, '佳木斯市', '230800', 46.8096, 130.362, NULL),
(103, '230900', '七台河', 2, 9, '1,9,103', '2018-08-24 17:02:36', '2018-08-24 17:02:36', 3, 151, 152, NULL, '七台河市', '230900', 45.7713, 131.016, NULL),
(104, '231000', '牡丹江', 2, 9, '1,9,104', '2018-08-24 17:02:36', '2018-08-24 17:02:36', 3, 153, 154, NULL, '牡丹江市', '231000', 44.583, 129.619, NULL),
(105, '231100', '黑河', 2, 9, '1,9,105', '2018-08-24 17:02:36', '2018-08-24 17:02:36', 3, 155, 156, NULL, '黑河市', '231100', 50.2496, 127.499, NULL),
(106, '231200', '绥化', 2, 9, '1,9,106', '2018-08-24 17:02:36', '2018-08-24 17:02:36', 3, 157, 158, NULL, '绥化市', '231200', 46.6374, 126.993, NULL),
(107, '232700', '大兴安岭地区', 2, 9, '1,9,107', '2018-08-24 17:02:36', '2018-08-24 17:02:36', 3, 159, 160, NULL, '大兴安岭地区', '232700', 52.3353, 124.712, NULL),
(108, '310100', '上海城区', 2, 10, '1,10,108', '2018-08-24 17:02:36', '2018-08-24 17:02:36', 3, 163, 164, NULL, '上海城区', '310100', 31.2317, 121.473, NULL),
(109, '320100', '南京', 2, 11, '1,11,109', '2018-08-24 17:02:37', '2018-08-24 17:02:37', 3, 167, 168, NULL, '南京市', '320100', 32.0415, 118.767, NULL),
(110, '320200', '无锡', 2, 11, '1,11,110', '2018-08-24 17:02:37', '2018-08-24 17:02:37', 3, 169, 170, NULL, '无锡市', '320200', 31.5747, 120.302, NULL),
(111, '320300', '徐州', 2, 11, '1,11,111', '2018-08-24 17:02:37', '2018-08-24 17:02:37', 3, 171, 172, NULL, '徐州市', '320300', 34.2618, 117.185, NULL),
(112, '320400', '常州', 2, 11, '1,11,112', '2018-08-24 17:02:37', '2018-08-24 17:02:37', 3, 173, 174, NULL, '常州市', '320400', 31.7728, 119.947, NULL),
(113, '320500', '苏州', 2, 11, '1,11,113', '2018-08-24 17:02:37', '2018-08-24 17:02:37', 3, 175, 176, NULL, '苏州市', '320500', 31.2994, 120.62, NULL),
(114, '320600', '南通', 2, 11, '1,11,114', '2018-08-24 17:02:37', '2018-08-24 17:02:37', 3, 177, 178, NULL, '南通市', '320600', 32.0162, 120.865, NULL),
(115, '320700', '连云港', 2, 11, '1,11,115', '2018-08-24 17:02:37', '2018-08-24 17:02:37', 3, 179, 180, NULL, '连云港市', '320700', 34.6, 119.179, NULL),
(116, '320800', '淮安', 2, 11, '1,11,116', '2018-08-24 17:02:37', '2018-08-24 17:02:37', 3, 181, 182, NULL, '淮安市', '320800', 33.5975, 119.021, NULL),
(117, '320900', '盐城', 2, 11, '1,11,117', '2018-08-24 17:02:37', '2018-08-24 17:02:37', 3, 183, 184, NULL, '盐城市', '320900', 33.3776, 120.14, NULL),
(118, '321000', '扬州', 2, 11, '1,11,118', '2018-08-24 17:02:37', '2018-08-24 17:02:37', 3, 185, 186, NULL, '扬州市', '321000', 32.3932, 119.421, NULL),
(119, '321100', '镇江', 2, 11, '1,11,119', '2018-08-24 17:02:38', '2018-08-24 17:02:38', 3, 187, 188, NULL, '镇江市', '321100', 32.2044, 119.453, NULL),
(120, '321200', '泰州', 2, 11, '1,11,120', '2018-08-24 17:02:38', '2018-08-24 17:02:38', 3, 189, 190, NULL, '泰州市', '321200', 32.4849, 119.915, NULL),
(121, '321300', '宿迁', 2, 11, '1,11,121', '2018-08-24 17:02:38', '2018-08-24 17:02:38', 3, 191, 192, NULL, '宿迁市', '321300', 33.963, 118.275, NULL),
(122, '330100', '杭州', 2, 12, '1,12,122', '2018-08-24 17:02:38', '2018-08-24 17:02:38', 3, 195, 196, NULL, '杭州市', '330100', 30.2875, 120.154, NULL),
(123, '330200', '宁波', 2, 12, '1,12,123', '2018-08-24 17:02:38', '2018-08-24 17:02:38', 3, 197, 198, NULL, '宁波市', '330200', 29.8684, 121.55, NULL),
(124, '330300', '温州', 2, 12, '1,12,124', '2018-08-24 17:02:38', '2018-08-24 17:02:38', 3, 199, 200, NULL, '温州市', '330300', 28.0006, 120.672, NULL),
(125, '330400', '嘉兴', 2, 12, '1,12,125', '2018-08-24 17:02:38', '2018-08-24 17:02:38', 3, 201, 202, NULL, '嘉兴市', '330400', 30.7627, 120.751, NULL),
(126, '330500', '湖州', 2, 12, '1,12,126', '2018-08-24 17:02:38', '2018-08-24 17:02:38', 3, 203, 204, NULL, '湖州市', '330500', 30.8672, 120.102, NULL),
(127, '330600', '绍兴', 2, 12, '1,12,127', '2018-08-24 17:02:38', '2018-08-24 17:02:38', 3, 205, 206, NULL, '绍兴市', '330600', 29.9971, 120.582, NULL),
(128, '330700', '金华', 2, 12, '1,12,128', '2018-08-24 17:02:39', '2018-08-24 17:02:39', 3, 207, 208, NULL, '金华市', '330700', 29.0895, 119.65, NULL),
(129, '330800', '衢州', 2, 12, '1,12,129', '2018-08-24 17:02:39', '2018-08-24 17:02:39', 3, 209, 210, NULL, '衢州市', '330800', 28.9417, 118.873, NULL),
(130, '330900', '舟山', 2, 12, '1,12,130', '2018-08-24 17:02:39', '2018-08-24 17:02:39', 3, 211, 212, NULL, '舟山市', '330900', 30.016, 122.107, NULL),
(131, '331000', '台州', 2, 12, '1,12,131', '2018-08-24 17:02:39', '2018-08-24 17:02:39', 3, 213, 214, NULL, '台州市', '331000', 28.6614, 121.429, NULL),
(132, '331100', '丽水', 2, 12, '1,12,132', '2018-08-24 17:02:39', '2018-08-24 17:02:39', 3, 215, 216, NULL, '丽水市', '331100', 28.452, 119.922, NULL),
(133, '340100', '合肥', 2, 13, '1,13,133', '2018-08-24 17:02:39', '2018-08-24 17:02:39', 3, 219, 220, NULL, '合肥市', '340100', 31.8612, 117.283, NULL),
(134, '340200', '芜湖', 2, 13, '1,13,134', '2018-08-24 17:02:39', '2018-08-24 17:02:39', 3, 221, 222, NULL, '芜湖市', '340200', 31.3263, 118.376, NULL),
(135, '340300', '蚌埠', 2, 13, '1,13,135', '2018-08-24 17:02:39', '2018-08-24 17:02:39', 3, 223, 224, NULL, '蚌埠市', '340300', 32.9397, 117.363, NULL),
(136, '340400', '淮南', 2, 13, '1,13,136', '2018-08-24 17:02:39', '2018-08-24 17:02:39', 3, 225, 226, NULL, '淮南市', '340400', 32.6476, 117.018, NULL),
(137, '340500', '马鞍山', 2, 13, '1,13,137', '2018-08-24 17:02:40', '2018-08-24 17:02:40', 3, 227, 228, NULL, '马鞍山市', '340500', 31.6894, 118.508, NULL),
(138, '340600', '淮北', 2, 13, '1,13,138', '2018-08-24 17:02:40', '2018-08-24 17:02:40', 3, 229, 230, NULL, '淮北市', '340600', 33.9717, 116.795, NULL),
(139, '340700', '铜陵', 2, 13, '1,13,139', '2018-08-24 17:02:40', '2018-08-24 17:02:40', 3, 231, 232, NULL, '铜陵市', '340700', 30.9299, 117.817, NULL),
(140, '340800', '安庆', 2, 13, '1,13,140', '2018-08-24 17:02:40', '2018-08-24 17:02:40', 3, 233, 234, NULL, '安庆市', '340800', 30.5088, 117.044, NULL),
(141, '341000', '黄山', 2, 13, '1,13,141', '2018-08-24 17:02:40', '2018-08-24 17:02:40', 3, 235, 236, NULL, '黄山市', '341000', 29.7092, 118.317, NULL),
(142, '341100', '滁州', 2, 13, '1,13,142', '2018-08-24 17:02:40', '2018-08-24 17:02:40', 3, 237, 238, NULL, '滁州市', '341100', 32.3036, 118.316, NULL),
(143, '341200', '阜阳', 2, 13, '1,13,143', '2018-08-24 17:02:40', '2018-08-24 17:02:40', 3, 239, 240, NULL, '阜阳市', '341200', 32.897, 115.82, NULL),
(144, '341300', '宿州', 2, 13, '1,13,144', '2018-08-24 17:02:40', '2018-08-24 17:02:40', 3, 241, 242, NULL, '宿州市', '341300', 33.6339, 116.984, NULL),
(145, '341500', '六安', 2, 13, '1,13,145', '2018-08-24 17:02:40', '2018-08-24 17:02:40', 3, 243, 244, NULL, '六安市', '341500', 31.7529, 116.508, NULL),
(146, '341600', '亳州', 2, 13, '1,13,146', '2018-08-24 17:02:41', '2018-08-24 17:02:41', 3, 245, 246, NULL, '亳州市', '341600', 33.8693, 115.783, NULL),
(147, '341700', '池州', 2, 13, '1,13,147', '2018-08-24 17:02:41', '2018-08-24 17:02:41', 3, 247, 248, NULL, '池州市', '341700', 30.656, 117.489, NULL),
(148, '341800', '宣城', 2, 13, '1,13,148', '2018-08-24 17:02:41', '2018-08-24 17:02:41', 3, 249, 250, NULL, '宣城市', '341800', 30.9457, 118.758, NULL),
(149, '350100', '福州', 2, 14, '1,14,149', '2018-08-24 17:02:41', '2018-08-24 17:02:41', 3, 253, 254, NULL, '福州市', '350100', 26.0753, 119.306, NULL),
(150, '350200', '厦门', 2, 14, '1,14,150', '2018-08-24 17:02:41', '2018-08-24 17:02:41', 3, 255, 256, NULL, '厦门市', '350200', 24.4905, 118.11, NULL),
(151, '350300', '莆田', 2, 14, '1,14,151', '2018-08-24 17:02:41', '2018-08-24 17:02:41', 3, 257, 258, NULL, '莆田市', '350300', 25.431, 119.008, NULL),
(152, '350400', '三明', 2, 14, '1,14,152', '2018-08-24 17:02:41', '2018-08-24 17:02:41', 3, 259, 260, NULL, '三明市', '350400', 26.2654, 117.635, NULL),
(153, '350500', '泉州', 2, 14, '1,14,153', '2018-08-24 17:02:41', '2018-08-24 17:02:41', 3, 261, 262, NULL, '泉州市', '350500', 24.9089, 118.589, NULL),
(154, '350600', '漳州', 2, 14, '1,14,154', '2018-08-24 17:02:41', '2018-08-24 17:02:41', 3, 263, 264, NULL, '漳州市', '350600', 24.5109, 117.662, NULL),
(155, '350700', '南平', 2, 14, '1,14,155', '2018-08-24 17:02:42', '2018-08-24 17:02:42', 3, 265, 266, NULL, '南平市', '350700', 26.6356, 118.178, NULL),
(156, '350800', '龙岩', 2, 14, '1,14,156', '2018-08-24 17:02:42', '2018-08-24 17:02:42', 3, 267, 268, NULL, '龙岩市', '350800', 25.0916, 117.03, NULL),
(157, '350900', '宁德', 2, 14, '1,14,157', '2018-08-24 17:02:42', '2018-08-24 17:02:42', 3, 269, 270, NULL, '宁德市', '350900', 26.6592, 119.527, NULL),
(158, '360100', '南昌', 2, 15, '1,15,158', '2018-08-24 17:02:42', '2018-08-24 17:02:42', 3, 273, 274, NULL, '南昌市', '360100', 28.6765, 115.892, NULL),
(159, '360200', '景德镇', 2, 15, '1,15,159', '2018-08-24 17:02:42', '2018-08-24 17:02:42', 3, 275, 276, NULL, '景德镇市', '360200', 29.2926, 117.215, NULL),
(160, '360300', '萍乡', 2, 15, '1,15,160', '2018-08-24 17:02:42', '2018-08-24 17:02:42', 3, 277, 278, NULL, '萍乡市', '360300', 27.6229, 113.852, NULL),
(161, '360400', '九江', 2, 15, '1,15,161', '2018-08-24 17:02:42', '2018-08-24 17:02:42', 3, 279, 280, NULL, '九江市', '360400', 29.712, 115.993, NULL),
(162, '360500', '新余', 2, 15, '1,15,162', '2018-08-24 17:02:42', '2018-08-24 17:02:42', 3, 281, 282, NULL, '新余市', '360500', 27.8108, 114.931, NULL),
(163, '360600', '鹰潭', 2, 15, '1,15,163', '2018-08-24 17:02:42', '2018-08-24 17:02:42', 3, 283, 284, NULL, '鹰潭市', '360600', 28.2386, 117.034, NULL),
(164, '360700', '赣州', 2, 15, '1,15,164', '2018-08-24 17:02:43', '2018-08-24 17:02:43', 3, 285, 286, NULL, '赣州市', '360700', 25.851, 114.94, NULL),
(165, '360800', '吉安', 2, 15, '1,15,165', '2018-08-24 17:02:43', '2018-08-24 17:02:43', 3, 287, 288, NULL, '吉安市', '360800', 27.1117, 114.986, NULL),
(166, '360900', '宜春', 2, 15, '1,15,166', '2018-08-24 17:02:43', '2018-08-24 17:02:43', 3, 289, 290, NULL, '宜春市', '360900', 27.8043, 114.391, NULL),
(167, '361000', '抚州', 2, 15, '1,15,167', '2018-08-24 17:02:43', '2018-08-24 17:02:43', 3, 291, 292, NULL, '抚州市', '361000', 27.9839, 116.358, NULL),
(168, '361100', '上饶', 2, 15, '1,15,168', '2018-08-24 17:02:43', '2018-08-24 17:02:43', 3, 293, 294, NULL, '上饶市', '361100', 28.4444, 117.971, NULL),
(169, '370100', '济南', 2, 16, '1,16,169', '2018-08-24 17:02:43', '2018-08-24 17:02:43', 3, 297, 298, NULL, '济南市', '370100', 36.6758, 117.001, NULL),
(170, '370200', '青岛', 2, 16, '1,16,170', '2018-08-24 17:02:43', '2018-08-24 17:02:43', 3, 299, 300, NULL, '青岛市', '370200', 36.083, 120.355, NULL),
(171, '370300', '淄博', 2, 16, '1,16,171', '2018-08-24 17:02:43', '2018-08-24 17:02:43', 3, 301, 302, NULL, '淄博市', '370300', 36.8149, 118.048, NULL),
(172, '370400', '枣庄', 2, 16, '1,16,172', '2018-08-24 17:02:44', '2018-08-24 17:02:44', 3, 303, 304, NULL, '枣庄市', '370400', 34.8564, 117.558, NULL),
(173, '370500', '东营', 2, 16, '1,16,173', '2018-08-24 17:02:44', '2018-08-24 17:02:44', 3, 305, 306, NULL, '东营市', '370500', 37.4346, 118.665, NULL),
(174, '370600', '烟台', 2, 16, '1,16,174', '2018-08-24 17:02:44', '2018-08-24 17:02:44', 3, 307, 308, NULL, '烟台市', '370600', 37.5393, 121.391, NULL),
(175, '370700', '潍坊', 2, 16, '1,16,175', '2018-08-24 17:02:44', '2018-08-24 17:02:44', 3, 309, 310, NULL, '潍坊市', '370700', 36.7093, 119.107, NULL),
(176, '370800', '济宁', 2, 16, '1,16,176', '2018-08-24 17:02:44', '2018-08-24 17:02:44', 3, 311, 312, NULL, '济宁市', '370800', 35.4154, 116.587, NULL),
(177, '370900', '泰安', 2, 16, '1,16,177', '2018-08-24 17:02:44', '2018-08-24 17:02:44', 3, 313, 314, NULL, '泰安市', '370900', 36.195, 117.129, NULL),
(178, '371000', '威海', 2, 16, '1,16,178', '2018-08-24 17:02:44', '2018-08-24 17:02:44', 3, 315, 316, NULL, '威海市', '371000', 37.5097, 122.116, NULL),
(179, '371100', '日照', 2, 16, '1,16,179', '2018-08-24 17:02:44', '2018-08-24 17:02:44', 3, 317, 318, NULL, '日照市', '371100', 35.4286, 119.461, NULL),
(180, '371200', '莱芜', 2, 16, '1,16,180', '2018-08-24 17:02:44', '2018-08-24 17:02:44', 3, 319, 320, NULL, '莱芜市', '371200', 36.2144, 117.678, NULL),
(181, '371300', '临沂', 2, 16, '1,16,181', '2018-08-24 17:02:45', '2018-08-24 17:02:45', 3, 321, 322, NULL, '临沂市', '371300', 35.0653, 118.326, NULL),
(182, '371400', '德州', 2, 16, '1,16,182', '2018-08-24 17:02:45', '2018-08-24 17:02:45', 3, 323, 324, NULL, '德州市', '371400', 37.454, 116.307, NULL),
(183, '371500', '聊城', 2, 16, '1,16,183', '2018-08-24 17:02:45', '2018-08-24 17:02:45', 3, 325, 326, NULL, '聊城市', '371500', 36.456, 115.98, NULL),
(184, '371600', '滨州', 2, 16, '1,16,184', '2018-08-24 17:02:45', '2018-08-24 17:02:45', 3, 327, 328, NULL, '滨州市', '371600', 37.3835, 118.017, NULL),
(185, '371700', '菏泽', 2, 16, '1,16,185', '2018-08-24 17:02:45', '2018-08-24 17:02:45', 3, 329, 330, NULL, '菏泽市', '371700', 35.2465, 115.469, NULL),
(186, '410100', '郑州', 2, 17, '1,17,186', '2018-08-24 17:02:45', '2018-08-24 17:02:45', 3, 333, 334, NULL, '郑州市', '410100', 34.758, 113.665, NULL),
(187, '410200', '开封', 2, 17, '1,17,187', '2018-08-24 17:02:45', '2018-08-24 17:02:45', 3, 335, 336, NULL, '开封市', '410200', 34.7971, 114.341, NULL),
(188, '410300', '洛阳', 2, 17, '1,17,188', '2018-08-24 17:02:45', '2018-08-24 17:02:45', 3, 337, 338, NULL, '洛阳市', '410300', 34.663, 112.434, NULL),
(189, '410400', '平顶山', 2, 17, '1,17,189', '2018-08-24 17:02:45', '2018-08-24 17:02:45', 3, 339, 340, NULL, '平顶山市', '410400', 33.7352, 113.308, NULL),
(190, '410500', '安阳', 2, 17, '1,17,190', '2018-08-24 17:02:46', '2018-08-24 17:02:46', 3, 341, 342, NULL, '安阳市', '410500', 36.1034, 114.352, NULL),
(191, '410600', '鹤壁', 2, 17, '1,17,191', '2018-08-24 17:02:46', '2018-08-24 17:02:46', 3, 343, 344, NULL, '鹤壁市', '410600', 35.7482, 114.295, NULL),
(192, '410700', '新乡', 2, 17, '1,17,192', '2018-08-24 17:02:46', '2018-08-24 17:02:46', 3, 345, 346, NULL, '新乡市', '410700', 35.3026, 113.884, NULL),
(193, '410800', '焦作', 2, 17, '1,17,193', '2018-08-24 17:02:46', '2018-08-24 17:02:46', 3, 347, 348, NULL, '焦作市', '410800', 35.239, 113.238, NULL),
(194, '410900', '濮阳', 2, 17, '1,17,194', '2018-08-24 17:02:46', '2018-08-24 17:02:46', 3, 349, 350, NULL, '濮阳市', '410900', 35.7682, 115.041, NULL),
(195, '411000', '许昌', 2, 17, '1,17,195', '2018-08-24 17:02:46', '2018-08-24 17:02:46', 3, 351, 352, NULL, '许昌市', '411000', 34.023, 113.826, NULL),
(196, '411100', '漯河', 2, 17, '1,17,196', '2018-08-24 17:02:46', '2018-08-24 17:02:46', 3, 353, 354, NULL, '漯河市', '411100', 33.5759, 114.026, NULL),
(197, '411200', '三门峡', 2, 17, '1,17,197', '2018-08-24 17:02:46', '2018-08-24 17:02:46', 3, 355, 356, NULL, '三门峡市', '411200', 34.7773, 111.194, NULL),
(198, '411300', '南阳', 2, 17, '1,17,198', '2018-08-24 17:02:46', '2018-08-24 17:02:46', 3, 357, 358, NULL, '南阳市', '411300', 32.9991, 112.541, NULL),
(199, '411400', '商丘', 2, 17, '1,17,199', '2018-08-24 17:02:46', '2018-08-24 17:02:46', 3, 359, 360, NULL, '商丘市', '411400', 34.4371, 115.65, NULL),
(200, '411500', '信阳', 2, 17, '1,17,200', '2018-08-24 17:02:46', '2018-08-24 17:02:46', 3, 361, 362, NULL, '信阳市', '411500', 32.1233, 114.075, NULL),
(201, '411600', '周口', 2, 17, '1,17,201', '2018-08-24 17:02:46', '2018-08-24 17:02:46', 3, 363, 364, NULL, '周口市', '411600', 33.6204, 114.65, NULL),
(202, '411700', '驻马店', 2, 17, '1,17,202', '2018-08-24 17:02:47', '2018-08-24 17:02:47', 3, 365, 366, NULL, '驻马店市', '411700', 32.9802, 114.025, NULL),
(203, '419001', '济源', 2, 17, '1,17,203', '2018-08-24 17:02:47', '2018-08-24 17:02:47', 3, 367, 368, NULL, '济源市', '419001', 35.0904, 112.59, NULL),
(204, '420100', '武汉', 2, 18, '1,18,204', '2018-08-24 17:02:47', '2018-08-24 17:02:47', 3, 371, 372, NULL, '武汉市', '420100', 30.5844, 114.299, NULL),
(205, '420200', '黄石', 2, 18, '1,18,205', '2018-08-24 17:02:47', '2018-08-24 17:02:47', 3, 373, 374, NULL, '黄石市', '420200', 30.2201, 115.077, NULL),
(206, '420300', '十堰', 2, 18, '1,18,206', '2018-08-24 17:02:47', '2018-08-24 17:02:47', 3, 375, 376, NULL, '十堰市', '420300', 32.6469, 110.788, NULL),
(207, '420500', '宜昌', 2, 18, '1,18,207', '2018-08-24 17:02:47', '2018-08-24 17:02:47', 3, 377, 378, NULL, '宜昌市', '420500', 30.7026, 111.291, NULL),
(208, '420600', '襄阳', 2, 18, '1,18,208', '2018-08-24 17:02:47', '2018-08-24 17:02:47', 3, 379, 380, NULL, '襄阳市', '420600', 32.0424, 112.144, NULL),
(209, '420700', '鄂州', 2, 18, '1,18,209', '2018-08-24 17:02:47', '2018-08-24 17:02:47', 3, 381, 382, NULL, '鄂州市', '420700', 30.3965, 114.891, NULL),
(210, '420800', '荆门', 2, 18, '1,18,210', '2018-08-24 17:02:47', '2018-08-24 17:02:47', 3, 383, 384, NULL, '荆门市', '420800', 31.0354, 112.204, NULL),
(211, '420900', '孝感', 2, 18, '1,18,211', '2018-08-24 17:02:48', '2018-08-24 17:02:48', 3, 385, 386, NULL, '孝感市', '420900', 30.9264, 113.927, NULL),
(212, '421000', '荆州', 2, 18, '1,18,212', '2018-08-24 17:02:48', '2018-08-24 17:02:48', 3, 387, 388, NULL, '荆州市', '421000', 30.3269, 112.238, NULL),
(213, '421100', '黄冈', 2, 18, '1,18,213', '2018-08-24 17:02:48', '2018-08-24 17:02:48', 3, 389, 390, NULL, '黄冈市', '421100', 30.4477, 114.879, NULL),
(214, '421200', '咸宁', 2, 18, '1,18,214', '2018-08-24 17:02:48', '2018-08-24 17:02:48', 3, 391, 392, NULL, '咸宁市', '421200', 29.8328, 114.329, NULL),
(215, '421300', '随州', 2, 18, '1,18,215', '2018-08-24 17:02:48', '2018-08-24 17:02:48', 3, 393, 394, NULL, '随州市', '421300', 31.7175, 113.374, NULL),
(216, '422800', '恩施土家族苗族自治州', 2, 18, '1,18,216', '2018-08-24 17:02:48', '2018-08-24 17:02:48', 3, 395, 396, NULL, '恩施土家族苗族自治州', '422800', 30.2831, 109.487, NULL),
(217, '429004', '仙桃', 2, 18, '1,18,217', '2018-08-24 17:02:48', '2018-08-24 17:02:48', 3, 397, 398, NULL, '仙桃市', '429004', 30.365, 113.454, NULL),
(218, '429005', '潜江', 2, 18, '1,18,218', '2018-08-24 17:02:48', '2018-08-24 17:02:48', 3, 399, 400, NULL, '潜江市', '429005', 30.4212, 112.897, NULL),
(219, '429006', '天门', 2, 18, '1,18,219', '2018-08-24 17:02:48', '2018-08-24 17:02:48', 3, 401, 402, NULL, '天门市', '429006', 30.6531, 113.166, NULL),
(220, '429021', '神农架林区', 2, 18, '1,18,220', '2018-08-24 17:02:48', '2018-08-24 17:02:48', 3, 403, 404, NULL, '神农架林区', '429021', 31.7444, 110.672, NULL),
(221, '430100', '长沙', 2, 19, '1,19,221', '2018-08-24 17:02:49', '2018-08-24 17:02:49', 3, 407, 408, NULL, '长沙市', '430100', 28.1941, 112.982, NULL),
(222, '430200', '株洲', 2, 19, '1,19,222', '2018-08-24 17:02:49', '2018-08-24 17:02:49', 3, 409, 410, NULL, '株洲市', '430200', 27.8358, 113.152, NULL),
(223, '430300', '湘潭', 2, 19, '1,19,223', '2018-08-24 17:02:49', '2018-08-24 17:02:49', 3, 411, 412, NULL, '湘潭市', '430300', 27.8297, 112.944, NULL),
(224, '430400', '衡阳', 2, 19, '1,19,224', '2018-08-24 17:02:49', '2018-08-24 17:02:49', 3, 413, 414, NULL, '衡阳市', '430400', 26.9004, 112.608, NULL),
(225, '430500', '邵阳', 2, 19, '1,19,225', '2018-08-24 17:02:49', '2018-08-24 17:02:49', 3, 415, 416, NULL, '邵阳市', '430500', 27.2378, 111.469, NULL),
(226, '430600', '岳阳', 2, 19, '1,19,226', '2018-08-24 17:02:49', '2018-08-24 17:02:49', 3, 417, 418, NULL, '岳阳市', '430600', 29.3703, 113.133, NULL),
(227, '430700', '常德', 2, 19, '1,19,227', '2018-08-24 17:02:49', '2018-08-24 17:02:49', 3, 419, 420, NULL, '常德市', '430700', 29.0402, 111.691, NULL),
(228, '430800', '张家界', 2, 19, '1,19,228', '2018-08-24 17:02:49', '2018-08-24 17:02:49', 3, 421, 422, NULL, '张家界市', '430800', 29.1274, 110.48, NULL),
(229, '430900', '益阳', 2, 19, '1,19,229', '2018-08-24 17:02:49', '2018-08-24 17:02:49', 3, 423, 424, NULL, '益阳市', '430900', 28.5701, 112.355, NULL),
(230, '431000', '郴州', 2, 19, '1,19,230', '2018-08-24 17:02:49', '2018-08-24 17:02:49', 3, 425, 426, NULL, '郴州市', '431000', 25.7936, 113.032, NULL),
(231, '431100', '永州', 2, 19, '1,19,231', '2018-08-24 17:02:50', '2018-08-24 17:02:50', 3, 427, 428, NULL, '永州市', '431100', 26.4345, 111.608, NULL),
(232, '431200', '怀化', 2, 19, '1,19,232', '2018-08-24 17:02:50', '2018-08-24 17:02:50', 3, 429, 430, NULL, '怀化市', '431200', 27.5501, 109.978, NULL),
(233, '431300', '娄底', 2, 19, '1,19,233', '2018-08-24 17:02:50', '2018-08-24 17:02:50', 3, 431, 432, NULL, '娄底市', '431300', 27.7281, 112.008, NULL),
(234, '433100', '湘西土家族苗族自治州', 2, 19, '1,19,234', '2018-08-24 17:02:50', '2018-08-24 17:02:50', 3, 433, 434, NULL, '湘西土家族苗族自治州', '433100', 28.3143, 109.74, NULL),
(235, '440100', '广州', 2, 20, '1,20,235', '2018-08-24 17:02:50', '2018-08-24 17:02:50', 3, 437, 438, NULL, '广州市', '440100', 23.1252, 113.281, NULL),
(236, '440200', '韶关', 2, 20, '1,20,236', '2018-08-24 17:02:50', '2018-08-24 17:02:50', 3, 439, 440, NULL, '韶关市', '440200', 24.8013, 113.592, NULL),
(237, '440300', '深圳', 2, 20, '1,20,237', '2018-08-24 17:02:50', '2018-08-24 17:02:50', 3, 441, 442, NULL, '深圳市', '440300', 22.547, 114.086, NULL),
(238, '440400', '珠海', 2, 20, '1,20,238', '2018-08-24 17:02:50', '2018-08-24 17:02:50', 3, 443, 444, NULL, '珠海市', '440400', 22.225, 113.554, NULL),
(239, '440500', '汕头', 2, 20, '1,20,239', '2018-08-24 17:02:50', '2018-08-24 17:02:50', 3, 445, 446, NULL, '汕头市', '440500', 23.371, 116.708, NULL),
(240, '440600', '佛山', 2, 20, '1,20,240', '2018-08-24 17:02:50', '2018-08-24 17:02:50', 3, 447, 448, NULL, '佛山市', '440600', 23.0288, 113.123, NULL),
(241, '440700', '江门', 2, 20, '1,20,241', '2018-08-24 17:02:51', '2018-08-24 17:02:51', 3, 449, 450, NULL, '江门市', '440700', 22.5904, 113.095, NULL),
(242, '440800', '湛江', 2, 20, '1,20,242', '2018-08-24 17:02:51', '2018-08-24 17:02:51', 3, 451, 452, NULL, '湛江市', '440800', 21.2749, 110.365, NULL),
(243, '440900', '茂名', 2, 20, '1,20,243', '2018-08-24 17:02:51', '2018-08-24 17:02:51', 3, 453, 454, NULL, '茂名市', '440900', 21.6598, 110.919, NULL),
(244, '441200', '肇庆', 2, 20, '1,20,244', '2018-08-24 17:02:51', '2018-08-24 17:02:51', 3, 455, 456, NULL, '肇庆市', '441200', 23.0515, 112.473, NULL),
(245, '441300', '惠州', 2, 20, '1,20,245', '2018-08-24 17:02:51', '2018-08-24 17:02:51', 3, 457, 458, NULL, '惠州市', '441300', 23.0794, 114.413, NULL),
(246, '441400', '梅州', 2, 20, '1,20,246', '2018-08-24 17:02:51', '2018-08-24 17:02:51', 3, 459, 460, NULL, '梅州市', '441400', 24.2991, 116.118, NULL),
(247, '441500', '汕尾', 2, 20, '1,20,247', '2018-08-24 17:02:51', '2018-08-24 17:02:51', 3, 461, 462, NULL, '汕尾市', '441500', 22.7745, 115.364, NULL),
(248, '441600', '河源', 2, 20, '1,20,248', '2018-08-24 17:02:51', '2018-08-24 17:02:51', 3, 463, 464, NULL, '河源市', '441600', 23.7463, 114.698, NULL),
(249, '441700', '阳江', 2, 20, '1,20,249', '2018-08-24 17:02:51', '2018-08-24 17:02:51', 3, 465, 466, NULL, '阳江市', '441700', 21.8592, 111.975, NULL),
(250, '441800', '清远', 2, 20, '1,20,250', '2018-08-24 17:02:51', '2018-08-24 17:02:51', 3, 467, 468, NULL, '清远市', '441800', 23.685, 113.051, NULL),
(251, '441900', '东莞', 2, 20, '1,20,251', '2018-08-24 17:02:52', '2018-08-24 17:02:52', 3, 469, 470, NULL, '东莞市', '441900', 23.0462, 113.746, NULL),
(252, '442000', '中山', 2, 20, '1,20,252', '2018-08-24 17:02:52', '2018-08-24 17:02:52', 3, 471, 472, NULL, '中山市', '442000', 22.5211, 113.382, NULL),
(253, '442100', '东沙群岛', 2, 20, '1,20,253', '2018-08-24 17:02:52', '2018-08-24 17:02:52', 3, 473, 474, NULL, '东沙群岛', '442100', 20.6175, 116.887, NULL),
(254, '445100', '潮州', 2, 20, '1,20,254', '2018-08-24 17:02:52', '2018-08-24 17:02:52', 3, 475, 476, NULL, '潮州市', '445100', 23.6617, 116.632, NULL),
(255, '445200', '揭阳', 2, 20, '1,20,255', '2018-08-24 17:02:52', '2018-08-24 17:02:52', 3, 477, 478, NULL, '揭阳市', '445200', 23.5438, 116.356, NULL),
(256, '445300', '云浮', 2, 20, '1,20,256', '2018-08-24 17:02:52', '2018-08-24 17:02:52', 3, 479, 480, NULL, '云浮市', '445300', 22.9298, 112.044, NULL),
(257, '450100', '南宁', 2, 21, '1,21,257', '2018-08-24 17:02:52', '2018-08-24 17:02:52', 3, 483, 484, NULL, '南宁市', '450100', 22.824, 108.32, NULL),
(258, '450200', '柳州', 2, 21, '1,21,258', '2018-08-24 17:02:53', '2018-08-24 17:02:53', 3, 485, 486, NULL, '柳州市', '450200', 24.3146, 109.412, NULL),
(259, '450300', '桂林', 2, 21, '1,21,259', '2018-08-24 17:02:53', '2018-08-24 17:02:53', 3, 487, 488, NULL, '桂林市', '450300', 25.2742, 110.299, NULL),
(260, '450400', '梧州', 2, 21, '1,21,260', '2018-08-24 17:02:53', '2018-08-24 17:02:53', 3, 489, 490, NULL, '梧州市', '450400', 23.4748, 111.298, NULL),
(261, '450500', '北海', 2, 21, '1,21,261', '2018-08-24 17:02:53', '2018-08-24 17:02:53', 3, 491, 492, NULL, '北海市', '450500', 21.4733, 109.119, NULL),
(262, '450600', '防城港', 2, 21, '1,21,262', '2018-08-24 17:02:53', '2018-08-24 17:02:53', 3, 493, 494, NULL, '防城港市', '450600', 21.6146, 108.345, NULL),
(263, '450700', '钦州', 2, 21, '1,21,263', '2018-08-24 17:02:53', '2018-08-24 17:02:53', 3, 495, 496, NULL, '钦州市', '450700', 21.9671, 108.624, NULL),
(264, '450800', '贵港', 2, 21, '1,21,264', '2018-08-24 17:02:53', '2018-08-24 17:02:53', 3, 497, 498, NULL, '贵港市', '450800', 23.0936, 109.602, NULL),
(265, '450900', '玉林', 2, 21, '1,21,265', '2018-08-24 17:02:53', '2018-08-24 17:02:53', 3, 499, 500, NULL, '玉林市', '450900', 22.6314, 110.154, NULL),
(266, '451000', '百色', 2, 21, '1,21,266', '2018-08-24 17:02:53', '2018-08-24 17:02:53', 3, 501, 502, NULL, '百色市', '451000', 23.8977, 106.616, NULL),
(267, '451100', '贺州', 2, 21, '1,21,267', '2018-08-24 17:02:54', '2018-08-24 17:02:54', 3, 503, 504, NULL, '贺州市', '451100', 24.4141, 111.552, NULL),
(268, '451200', '河池', 2, 21, '1,21,268', '2018-08-24 17:02:54', '2018-08-24 17:02:54', 3, 505, 506, NULL, '河池市', '451200', 24.6959, 108.062, NULL),
(269, '451300', '来宾', 2, 21, '1,21,269', '2018-08-24 17:02:54', '2018-08-24 17:02:54', 3, 507, 508, NULL, '来宾市', '451300', 23.7338, 109.23, NULL),
(270, '451400', '崇左', 2, 21, '1,21,270', '2018-08-24 17:02:54', '2018-08-24 17:02:54', 3, 509, 510, NULL, '崇左市', '451400', 22.4041, 107.354, NULL),
(271, '460100', '海口', 2, 22, '1,22,271', '2018-08-24 17:02:54', '2018-08-24 17:02:54', 3, 513, 514, NULL, '海口市', '460100', 20.032, 110.331, NULL),
(272, '460200', '三亚', 2, 22, '1,22,272', '2018-08-24 17:02:54', '2018-08-24 17:02:54', 3, 515, 516, NULL, '三亚市', '460200', 18.2479, 109.508, NULL),
(273, '460300', '三沙', 2, 22, '1,22,273', '2018-08-24 17:02:54', '2018-08-24 17:02:54', 3, 517, 518, NULL, '三沙市', '460300', 16.831, 112.349, NULL),
(274, '460400', '儋州', 2, 22, '1,22,274', '2018-08-24 17:02:54', '2018-08-24 17:02:54', 3, 519, 520, NULL, '儋州市', '460400', 19.5175, 109.577, NULL),
(275, '469001', '五指山', 2, 22, '1,22,275', '2018-08-24 17:02:54', '2018-08-24 17:02:54', 3, 521, 522, NULL, '五指山市', '469001', 18.7769, 109.517, NULL),
(276, '469002', '琼海', 2, 22, '1,22,276', '2018-08-24 17:02:55', '2018-08-24 17:02:55', 3, 523, 524, NULL, '琼海市', '469002', 19.246, 110.467, NULL),
(277, '469005', '文昌', 2, 22, '1,22,277', '2018-08-24 17:02:55', '2018-08-24 17:02:55', 3, 525, 526, NULL, '文昌市', '469005', 19.613, 110.754, NULL),
(278, '469006', '万宁', 2, 22, '1,22,278', '2018-08-24 17:02:55', '2018-08-24 17:02:55', 3, 527, 528, NULL, '万宁市', '469006', 18.7962, 110.389, NULL),
(279, '469007', '东方', 2, 22, '1,22,279', '2018-08-24 17:02:55', '2018-08-24 17:02:55', 3, 529, 530, NULL, '东方市', '469007', 19.102, 108.654, NULL),
(280, '469021', '定安县', 2, 22, '1,22,280', '2018-08-24 17:02:55', '2018-08-24 17:02:55', 3, 531, 532, NULL, '定安县', '469021', 19.685, 110.349, NULL),
(281, '469022', '屯昌县', 2, 22, '1,22,281', '2018-08-24 17:02:55', '2018-08-24 17:02:55', 3, 533, 534, NULL, '屯昌县', '469022', 19.3629, 110.103, NULL),
(282, '469023', '澄迈县', 2, 22, '1,22,282', '2018-08-24 17:02:55', '2018-08-24 17:02:55', 3, 535, 536, NULL, '澄迈县', '469023', 19.7371, 110.007, NULL),
(283, '469024', '临高县', 2, 22, '1,22,283', '2018-08-24 17:02:55', '2018-08-24 17:02:55', 3, 537, 538, NULL, '临高县', '469024', 19.9083, 109.688, NULL),
(284, '469025', '白沙黎族自治县', 2, 22, '1,22,284', '2018-08-24 17:02:55', '2018-08-24 17:02:55', 3, 539, 540, NULL, '白沙黎族自治县', '469025', 19.2246, 109.453, NULL),
(285, '469026', '昌江黎族自治县', 2, 22, '1,22,285', '2018-08-24 17:02:55', '2018-08-24 17:02:55', 3, 541, 542, NULL, '昌江黎族自治县', '469026', 19.261, 109.053, NULL),
(286, '469027', '乐东黎族自治县', 2, 22, '1,22,286', '2018-08-24 17:02:56', '2018-08-24 17:02:56', 3, 543, 544, NULL, '乐东黎族自治县', '469027', 18.7476, 109.175, NULL),
(287, '469028', '陵水黎族自治县', 2, 22, '1,22,287', '2018-08-24 17:02:56', '2018-08-24 17:02:56', 3, 545, 546, NULL, '陵水黎族自治县', '469028', 18.505, 110.037, NULL),
(288, '469029', '保亭黎族苗族自治县', 2, 22, '1,22,288', '2018-08-24 17:02:56', '2018-08-24 17:02:56', 3, 547, 548, NULL, '保亭黎族苗族自治县', '469029', 18.6364, 109.702, NULL),
(289, '469030', '琼中黎族苗族自治县', 2, 22, '1,22,289', '2018-08-24 17:02:56', '2018-08-24 17:02:56', 3, 549, 550, NULL, '琼中黎族苗族自治县', '469030', 19.0356, 109.84, NULL),
(290, '500100', '重庆城区', 2, 23, '1,23,290', '2018-08-24 17:02:56', '2018-08-24 17:02:56', 3, 553, 554, NULL, '重庆城区', '500100', 29.5332, 106.505, NULL),
(291, '500200', '重庆郊县', 2, 23, '1,23,291', '2018-08-24 17:02:56', '2018-08-24 17:02:56', 3, 555, 556, NULL, '重庆郊县', '500200', 29.292, 108.17, NULL),
(292, '510100', '成都', 2, 24, '1,24,292', '2018-08-24 17:02:56', '2018-08-24 17:02:56', 3, 559, 560, NULL, '成都市', '510100', 30.6595, 104.066, NULL),
(293, '510300', '自贡', 2, 24, '1,24,293', '2018-08-24 17:02:57', '2018-08-24 17:02:57', 3, 561, 562, NULL, '自贡市', '510300', 29.3528, 104.773, NULL),
(294, '510400', '攀枝花', 2, 24, '1,24,294', '2018-08-24 17:02:57', '2018-08-24 17:02:57', 3, 563, 564, NULL, '攀枝花市', '510400', 26.5804, 101.716, NULL),
(295, '510500', '泸州', 2, 24, '1,24,295', '2018-08-24 17:02:57', '2018-08-24 17:02:57', 3, 565, 566, NULL, '泸州市', '510500', 28.8891, 105.443, NULL),
(296, '510600', '德阳', 2, 24, '1,24,296', '2018-08-24 17:02:57', '2018-08-24 17:02:57', 3, 567, 568, NULL, '德阳市', '510600', 31.128, 104.399, NULL),
(297, '510700', '绵阳', 2, 24, '1,24,297', '2018-08-24 17:02:57', '2018-08-24 17:02:57', 3, 569, 570, NULL, '绵阳市', '510700', 31.464, 104.742, NULL),
(298, '510800', '广元', 2, 24, '1,24,298', '2018-08-24 17:02:57', '2018-08-24 17:02:57', 3, 571, 572, NULL, '广元市', '510800', 32.4337, 105.83, NULL),
(299, '510900', '遂宁', 2, 24, '1,24,299', '2018-08-24 17:02:57', '2018-08-24 17:02:57', 3, 573, 574, NULL, '遂宁市', '510900', 30.5133, 105.571, NULL),
(300, '511000', '内江', 2, 24, '1,24,300', '2018-08-24 17:02:57', '2018-08-24 17:02:57', 3, 575, 576, NULL, '内江市', '511000', 29.5871, 105.066, NULL),
(301, '511100', '乐山', 2, 24, '1,24,301', '2018-08-24 17:02:57', '2018-08-24 17:02:57', 3, 577, 578, NULL, '乐山市', '511100', 29.582, 103.761, NULL),
(302, '511300', '南充', 2, 24, '1,24,302', '2018-08-24 17:02:57', '2018-08-24 17:02:57', 3, 579, 580, NULL, '南充市', '511300', 30.7953, 106.083, NULL),
(303, '511400', '眉山', 2, 24, '1,24,303', '2018-08-24 17:02:58', '2018-08-24 17:02:58', 3, 581, 582, NULL, '眉山市', '511400', 30.0483, 103.832, NULL),
(304, '511500', '宜宾', 2, 24, '1,24,304', '2018-08-24 17:02:58', '2018-08-24 17:02:58', 3, 583, 584, NULL, '宜宾市', '511500', 28.7602, 104.631, NULL),
(305, '511600', '广安', 2, 24, '1,24,305', '2018-08-24 17:02:58', '2018-08-24 17:02:58', 3, 585, 586, NULL, '广安市', '511600', 30.4564, 106.633, NULL),
(306, '511700', '达州', 2, 24, '1,24,306', '2018-08-24 17:02:58', '2018-08-24 17:02:58', 3, 587, 588, NULL, '达州市', '511700', 31.2095, 107.502, NULL),
(307, '511800', '雅安', 2, 24, '1,24,307', '2018-08-24 17:02:58', '2018-08-24 17:02:58', 3, 589, 590, NULL, '雅安市', '511800', 29.9877, 103.001, NULL),
(308, '511900', '巴中', 2, 24, '1,24,308', '2018-08-24 17:02:58', '2018-08-24 17:02:58', 3, 591, 592, NULL, '巴中市', '511900', 31.8588, 106.754, NULL),
(309, '512000', '资阳', 2, 24, '1,24,309', '2018-08-24 17:02:58', '2018-08-24 17:02:58', 3, 593, 594, NULL, '资阳市', '512000', 30.1222, 104.642, NULL),
(310, '513200', '阿坝藏族羌族自治州', 2, 24, '1,24,310', '2018-08-24 17:02:59', '2018-08-24 17:02:59', 3, 595, 596, NULL, '阿坝藏族羌族自治州', '513200', 31.8998, 102.221, NULL),
(311, '513300', '甘孜藏族自治州', 2, 24, '1,24,311', '2018-08-24 17:02:59', '2018-08-24 17:02:59', 3, 597, 598, NULL, '甘孜藏族自治州', '513300', 30.0507, 101.964, NULL),
(312, '513400', '凉山彝族自治州', 2, 24, '1,24,312', '2018-08-24 17:02:59', '2018-08-24 17:02:59', 3, 599, 600, NULL, '凉山彝族自治州', '513400', 27.8868, 102.259, NULL),
(313, '520100', '贵阳', 2, 25, '1,25,313', '2018-08-24 17:02:59', '2018-08-24 17:02:59', 3, 603, 604, NULL, '贵阳市', '520100', 26.5783, 106.713, NULL),
(314, '520200', '六盘水', 2, 25, '1,25,314', '2018-08-24 17:02:59', '2018-08-24 17:02:59', 3, 605, 606, NULL, '六盘水市', '520200', 26.5846, 104.847, NULL),
(315, '520300', '遵义', 2, 25, '1,25,315', '2018-08-24 17:02:59', '2018-08-24 17:02:59', 3, 607, 608, NULL, '遵义市', '520300', 27.7066, 106.937, NULL),
(316, '520400', '安顺', 2, 25, '1,25,316', '2018-08-24 17:02:59', '2018-08-24 17:02:59', 3, 609, 610, NULL, '安顺市', '520400', 26.2455, 105.932, NULL),
(317, '520500', '毕节', 2, 25, '1,25,317', '2018-08-24 17:02:59', '2018-08-24 17:02:59', 3, 611, 612, NULL, '毕节市', '520500', 27.3017, 105.285, NULL),
(318, '520600', '铜仁', 2, 25, '1,25,318', '2018-08-24 17:03:00', '2018-08-24 17:03:00', 3, 613, 614, NULL, '铜仁市', '520600', 27.7183, 109.192, NULL),
(319, '522300', '黔西南布依族苗族自治州', 2, 25, '1,25,319', '2018-08-24 17:03:00', '2018-08-24 17:03:00', 3, 615, 616, NULL, '黔西南布依族苗族自治州', '522300', 25.0881, 104.898, NULL),
(320, '522600', '黔东南苗族侗族自治州', 2, 25, '1,25,320', '2018-08-24 17:03:00', '2018-08-24 17:03:00', 3, 617, 618, NULL, '黔东南苗族侗族自治州', '522600', 26.5834, 107.977, NULL),
(321, '522700', '黔南布依族苗族自治州', 2, 25, '1,25,321', '2018-08-24 17:03:00', '2018-08-24 17:03:00', 3, 619, 620, NULL, '黔南布依族苗族自治州', '522700', 26.2582, 107.517, NULL),
(322, '530100', '昆明', 2, 26, '1,26,322', '2018-08-24 17:03:00', '2018-08-24 17:03:00', 3, 623, 624, NULL, '昆明市', '530100', 25.0406, 102.712, NULL),
(323, '530300', '曲靖', 2, 26, '1,26,323', '2018-08-24 17:03:00', '2018-08-24 17:03:00', 3, 625, 626, NULL, '曲靖市', '530300', 25.5016, 103.798, NULL),
(324, '530400', '玉溪', 2, 26, '1,26,324', '2018-08-24 17:03:00', '2018-08-24 17:03:00', 3, 627, 628, NULL, '玉溪市', '530400', 24.3505, 102.544, NULL),
(325, '530500', '保山', 2, 26, '1,26,325', '2018-08-24 17:03:00', '2018-08-24 17:03:00', 3, 629, 630, NULL, '保山市', '530500', 25.1118, 99.1671, NULL),
(326, '530600', '昭通', 2, 26, '1,26,326', '2018-08-24 17:03:00', '2018-08-24 17:03:00', 3, 631, 632, NULL, '昭通市', '530600', 27.337, 103.717, NULL),
(327, '530700', '丽江', 2, 26, '1,26,327', '2018-08-24 17:03:00', '2018-08-24 17:03:00', 3, 633, 634, NULL, '丽江市', '530700', 26.8721, 100.233, NULL),
(328, '530800', '普洱', 2, 26, '1,26,328', '2018-08-24 17:03:00', '2018-08-24 17:03:00', 3, 635, 636, NULL, '普洱市', '530800', 22.7773, 100.972, NULL),
(329, '530900', '临沧', 2, 26, '1,26,329', '2018-08-24 17:03:01', '2018-08-24 17:03:01', 3, 637, 638, NULL, '临沧市', '530900', 23.8866, 100.087, NULL),
(330, '532300', '楚雄彝族自治州', 2, 26, '1,26,330', '2018-08-24 17:03:01', '2018-08-24 17:03:01', 3, 639, 640, NULL, '楚雄彝族自治州', '532300', 25.042, 101.546, NULL),
(331, '532500', '红河哈尼族彝族自治州', 2, 26, '1,26,331', '2018-08-24 17:03:01', '2018-08-24 17:03:01', 3, 641, 642, NULL, '红河哈尼族彝族自治州', '532500', 23.3668, 103.384, NULL),
(332, '532600', '文山壮族苗族自治州', 2, 26, '1,26,332', '2018-08-24 17:03:01', '2018-08-24 17:03:01', 3, 643, 644, NULL, '文山壮族苗族自治州', '532600', 23.3695, 104.244, NULL),
(333, '532800', '西双版纳傣族自治州', 2, 26, '1,26,333', '2018-08-24 17:03:01', '2018-08-24 17:03:01', 3, 645, 646, NULL, '西双版纳傣族自治州', '532800', 22.0017, 100.798, NULL),
(334, '532900', '大理白族自治州', 2, 26, '1,26,334', '2018-08-24 17:03:01', '2018-08-24 17:03:01', 3, 647, 648, NULL, '大理白族自治州', '532900', 25.5894, 100.226, NULL),
(335, '533100', '德宏傣族景颇族自治州', 2, 26, '1,26,335', '2018-08-24 17:03:01', '2018-08-24 17:03:01', 3, 649, 650, NULL, '德宏傣族景颇族自治州', '533100', 24.4367, 98.5784, NULL),
(336, '533300', '怒江傈僳族自治州', 2, 26, '1,26,336', '2018-08-24 17:03:01', '2018-08-24 17:03:01', 3, 651, 652, NULL, '怒江傈僳族自治州', '533300', 25.8509, 98.8543, NULL),
(337, '533400', '迪庆藏族自治州', 2, 26, '1,26,337', '2018-08-24 17:03:01', '2018-08-24 17:03:01', 3, 653, 654, NULL, '迪庆藏族自治州', '533400', 27.8269, 99.7065, NULL),
(338, '540100', '拉萨', 2, 27, '1,27,338', '2018-08-24 17:03:02', '2018-08-24 17:03:02', 3, 657, 658, NULL, '拉萨市', '540100', 29.6604, 91.1322, NULL),
(339, '540200', '日喀则', 2, 27, '1,27,339', '2018-08-24 17:03:02', '2018-08-24 17:03:02', 3, 659, 660, NULL, '日喀则市', '540200', 29.2675, 88.8851, NULL),
(340, '540300', '昌都', 2, 27, '1,27,340', '2018-08-24 17:03:02', '2018-08-24 17:03:02', 3, 661, 662, NULL, '昌都市', '540300', 31.1369, 97.1785, NULL),
(341, '540400', '林芝', 2, 27, '1,27,341', '2018-08-24 17:03:02', '2018-08-24 17:03:02', 3, 663, 664, NULL, '林芝市', '540400', 29.6547, 94.3624, NULL),
(342, '540500', '山南', 2, 27, '1,27,342', '2018-08-24 17:03:02', '2018-08-24 17:03:02', 3, 665, 666, NULL, '山南市', '540500', 29.236, 91.7665, NULL),
(343, '540600', '那曲', 2, 27, '1,27,343', '2018-08-24 17:03:02', '2018-08-24 17:03:02', 3, 667, 668, NULL, '那曲市', '540600', 31.476, 92.0602, NULL),
(344, '542500', '阿里地区', 2, 27, '1,27,344', '2018-08-24 17:03:02', '2018-08-24 17:03:02', 3, 669, 670, NULL, '阿里地区', '542500', 32.5032, 80.1055, NULL),
(345, '610100', '西安', 2, 28, '1,28,345', '2018-08-24 17:03:02', '2018-08-24 17:03:02', 3, 673, 674, NULL, '西安市', '610100', 34.2632, 108.948, NULL),
(346, '610200', '铜川', 2, 28, '1,28,346', '2018-08-24 17:03:03', '2018-08-24 17:03:03', 3, 675, 676, NULL, '铜川市', '610200', 34.9166, 108.98, NULL),
(347, '610300', '宝鸡', 2, 28, '1,28,347', '2018-08-24 17:03:03', '2018-08-24 17:03:03', 3, 677, 678, NULL, '宝鸡市', '610300', 34.3693, 107.145, NULL),
(348, '610400', '咸阳', 2, 28, '1,28,348', '2018-08-24 17:03:03', '2018-08-24 17:03:03', 3, 679, 680, NULL, '咸阳市', '610400', 34.3334, 108.705, NULL),
(349, '610500', '渭南', 2, 28, '1,28,349', '2018-08-24 17:03:03', '2018-08-24 17:03:03', 3, 681, 682, NULL, '渭南市', '610500', 34.4994, 109.503, NULL),
(350, '610600', '延安', 2, 28, '1,28,350', '2018-08-24 17:03:03', '2018-08-24 17:03:03', 3, 683, 684, NULL, '延安市', '610600', 36.5965, 109.491, NULL),
(351, '610700', '汉中', 2, 28, '1,28,351', '2018-08-24 17:03:03', '2018-08-24 17:03:03', 3, 685, 686, NULL, '汉中市', '610700', 33.0777, 107.029, NULL),
(352, '610800', '榆林', 2, 28, '1,28,352', '2018-08-24 17:03:03', '2018-08-24 17:03:03', 3, 687, 688, NULL, '榆林市', '610800', 38.2902, 109.741, NULL),
(353, '610900', '安康', 2, 28, '1,28,353', '2018-08-24 17:03:03', '2018-08-24 17:03:03', 3, 689, 690, NULL, '安康市', '610900', 32.6903, 109.029, NULL),
(354, '611000', '商洛', 2, 28, '1,28,354', '2018-08-24 17:03:03', '2018-08-24 17:03:03', 3, 691, 692, NULL, '商洛市', '611000', 33.8683, 109.94, NULL),
(355, '620100', '兰州', 2, 29, '1,29,355', '2018-08-24 17:03:03', '2018-08-24 17:03:03', 3, 695, 696, NULL, '兰州市', '620100', 36.058, 103.824, NULL),
(356, '620200', '嘉峪关', 2, 29, '1,29,356', '2018-08-24 17:03:04', '2018-08-24 17:03:04', 3, 697, 698, NULL, '嘉峪关市', '620200', 39.7865, 98.2773, NULL),
(357, '620300', '金昌', 2, 29, '1,29,357', '2018-08-24 17:03:04', '2018-08-24 17:03:04', 3, 699, 700, NULL, '金昌市', '620300', 38.5142, 102.188, NULL),
(358, '620400', '白银', 2, 29, '1,29,358', '2018-08-24 17:03:04', '2018-08-24 17:03:04', 3, 701, 702, NULL, '白银市', '620400', 36.5457, 104.174, NULL),
(359, '620500', '天水', 2, 29, '1,29,359', '2018-08-24 17:03:04', '2018-08-24 17:03:04', 3, 703, 704, NULL, '天水市', '620500', 34.5785, 105.725, NULL),
(360, '620600', '武威', 2, 29, '1,29,360', '2018-08-24 17:03:04', '2018-08-24 17:03:04', 3, 705, 706, NULL, '武威市', '620600', 37.93, 102.635, NULL),
(361, '620700', '张掖', 2, 29, '1,29,361', '2018-08-24 17:03:04', '2018-08-24 17:03:04', 3, 707, 708, NULL, '张掖市', '620700', 38.9329, 100.455, NULL),
(362, '620800', '平凉', 2, 29, '1,29,362', '2018-08-24 17:03:04', '2018-08-24 17:03:04', 3, 709, 710, NULL, '平凉市', '620800', 35.5428, 106.685, NULL),
(363, '620900', '酒泉', 2, 29, '1,29,363', '2018-08-24 17:03:04', '2018-08-24 17:03:04', 3, 711, 712, NULL, '酒泉市', '620900', 39.744, 98.5108, NULL),
(364, '621000', '庆阳', 2, 29, '1,29,364', '2018-08-24 17:03:04', '2018-08-24 17:03:04', 3, 713, 714, NULL, '庆阳市', '621000', 35.7342, 107.638, NULL),
(365, '621100', '定西', 2, 29, '1,29,365', '2018-08-24 17:03:04', '2018-08-24 17:03:04', 3, 715, 716, NULL, '定西市', '621100', 35.5796, 104.626, NULL),
(366, '621200', '陇南', 2, 29, '1,29,366', '2018-08-24 17:03:05', '2018-08-24 17:03:05', 3, 717, 718, NULL, '陇南市', '621200', 33.3886, 104.929, NULL),
(367, '622900', '临夏回族自治州', 2, 29, '1,29,367', '2018-08-24 17:03:05', '2018-08-24 17:03:05', 3, 719, 720, NULL, '临夏回族自治州', '622900', 35.5994, 103.212, NULL),
(368, '623000', '甘南藏族自治州', 2, 29, '1,29,368', '2018-08-24 17:03:05', '2018-08-24 17:03:05', 3, 721, 722, NULL, '甘南藏族自治州', '623000', 34.9864, 102.911, NULL),
(369, '630100', '西宁', 2, 30, '1,30,369', '2018-08-24 17:03:05', '2018-08-24 17:03:05', 3, 725, 726, NULL, '西宁市', '630100', 36.6232, 101.779, NULL),
(370, '630200', '海东', 2, 30, '1,30,370', '2018-08-24 17:03:05', '2018-08-24 17:03:05', 3, 727, 728, NULL, '海东市', '630200', 36.5029, 102.103, NULL),
(371, '632200', '海北藏族自治州', 2, 30, '1,30,371', '2018-08-24 17:03:05', '2018-08-24 17:03:05', 3, 729, 730, NULL, '海北藏族自治州', '632200', 36.9594, 100.901, NULL),
(372, '632300', '黄南藏族自治州', 2, 30, '1,30,372', '2018-08-24 17:03:05', '2018-08-24 17:03:05', 3, 731, 732, NULL, '黄南藏族自治州', '632300', 35.5177, 102.02, NULL),
(373, '632500', '海南藏族自治州', 2, 30, '1,30,373', '2018-08-24 17:03:06', '2018-08-24 17:03:06', 3, 733, 734, NULL, '海南藏族自治州', '632500', 36.2804, 100.62, NULL),
(374, '632600', '果洛藏族自治州', 2, 30, '1,30,374', '2018-08-24 17:03:06', '2018-08-24 17:03:06', 3, 735, 736, NULL, '果洛藏族自治州', '632600', 34.4736, 100.242, NULL),
(375, '632700', '玉树藏族自治州', 2, 30, '1,30,375', '2018-08-24 17:03:06', '2018-08-24 17:03:06', 3, 737, 738, NULL, '玉树藏族自治州', '632700', 33.004, 97.0085, NULL),
(376, '632800', '海西蒙古族藏族自治州', 2, 30, '1,30,376', '2018-08-24 17:03:06', '2018-08-24 17:03:06', 3, 739, 740, NULL, '海西蒙古族藏族自治州', '632800', 37.3747, 97.3708, NULL),
(377, '640100', '银川', 2, 31, '1,31,377', '2018-08-24 17:03:06', '2018-08-24 17:03:06', 3, 743, 744, NULL, '银川市', '640100', 38.4664, 106.278, NULL),
(378, '640200', '石嘴山', 2, 31, '1,31,378', '2018-08-24 17:03:06', '2018-08-24 17:03:06', 3, 745, 746, NULL, '石嘴山市', '640200', 39.0133, 106.376, NULL),
(379, '640300', '吴忠', 2, 31, '1,31,379', '2018-08-24 17:03:06', '2018-08-24 17:03:06', 3, 747, 748, NULL, '吴忠市', '640300', 37.9862, 106.199, NULL),
(380, '640400', '固原', 2, 31, '1,31,380', '2018-08-24 17:03:06', '2018-08-24 17:03:06', 3, 749, 750, NULL, '固原市', '640400', 36.0046, 106.285, NULL),
(381, '640500', '中卫', 2, 31, '1,31,381', '2018-08-24 17:03:06', '2018-08-24 17:03:06', 3, 751, 752, NULL, '中卫市', '640500', 37.5149, 105.19, NULL),
(382, '650100', '乌鲁木齐', 2, 32, '1,32,382', '2018-08-24 17:03:07', '2018-08-24 17:03:07', 3, 755, 756, NULL, '乌鲁木齐市', '650100', 43.7928, 87.6177, NULL),
(383, '650200', '克拉玛依', 2, 32, '1,32,383', '2018-08-24 17:03:07', '2018-08-24 17:03:07', 3, 757, 758, NULL, '克拉玛依市', '650200', 45.5959, 84.8739, NULL),
(384, '650400', '吐鲁番', 2, 32, '1,32,384', '2018-08-24 17:03:07', '2018-08-24 17:03:07', 3, 759, 760, NULL, '吐鲁番市', '650400', 42.9476, 89.1841, NULL),
(385, '650500', '哈密', 2, 32, '1,32,385', '2018-08-24 17:03:07', '2018-08-24 17:03:07', 3, 761, 762, NULL, '哈密市', '650500', 42.8332, 93.5132, NULL),
(386, '652300', '昌吉回族自治州', 2, 32, '1,32,386', '2018-08-24 17:03:07', '2018-08-24 17:03:07', 3, 763, 764, NULL, '昌吉回族自治州', '652300', 44.0146, 87.304, NULL),
(387, '652700', '博尔塔拉蒙古自治州', 2, 32, '1,32,387', '2018-08-24 17:03:07', '2018-08-24 17:03:07', 3, 765, 766, NULL, '博尔塔拉蒙古自治州', '652700', 44.9033, 82.0748, NULL),
(388, '652800', '巴音郭楞蒙古自治州', 2, 32, '1,32,388', '2018-08-24 17:03:07', '2018-08-24 17:03:07', 3, 767, 768, NULL, '巴音郭楞蒙古自治州', '652800', 41.7686, 86.151, NULL),
(389, '652900', '阿克苏地区', 2, 32, '1,32,389', '2018-08-24 17:03:07', '2018-08-24 17:03:07', 3, 769, 770, NULL, '阿克苏地区', '652900', 41.1707, 80.2651, NULL),
(390, '653000', '克孜勒苏柯尔克孜自治州', 2, 32, '1,32,390', '2018-08-24 17:03:08', '2018-08-24 17:03:08', 3, 771, 772, NULL, '克孜勒苏柯尔克孜自治州', '653000', 39.7134, 76.1728, NULL),
(391, '653100', '喀什地区', 2, 32, '1,32,391', '2018-08-24 17:03:08', '2018-08-24 17:03:08', 3, 773, 774, NULL, '喀什地区', '653100', 39.4677, 75.9891, NULL),
(392, '653200', '和田地区', 2, 32, '1,32,392', '2018-08-24 17:03:08', '2018-08-24 17:03:08', 3, 775, 776, NULL, '和田地区', '653200', 37.1107, 79.9253, NULL),
(393, '654000', '伊犁哈萨克自治州', 2, 32, '1,32,393', '2018-08-24 17:03:08', '2018-08-24 17:03:08', 3, 777, 778, NULL, '伊犁哈萨克自治州', '654000', 43.9219, 81.3179, NULL),
(394, '654200', '塔城地区', 2, 32, '1,32,394', '2018-08-24 17:03:08', '2018-08-24 17:03:08', 3, 779, 780, NULL, '塔城地区', '654200', 46.7463, 82.9857, NULL),
(395, '654300', '阿勒泰地区', 2, 32, '1,32,395', '2018-08-24 17:03:08', '2018-08-24 17:03:08', 3, 781, 782, NULL, '阿勒泰地区', '654300', 47.8484, 88.1396, NULL),
(396, '659001', '石河子', 2, 32, '1,32,396', '2018-08-24 17:03:08', '2018-08-24 17:03:08', 3, 783, 784, NULL, '石河子市', '659001', 44.3059, 86.0411, NULL),
(397, '659002', '阿拉尔', 2, 32, '1,32,397', '2018-08-24 17:03:09', '2018-08-24 17:03:09', 3, 785, 786, NULL, '阿拉尔市', '659002', 40.5419, 81.2859, NULL),
(398, '659003', '图木舒克', 2, 32, '1,32,398', '2018-08-24 17:03:09', '2018-08-24 17:03:09', 3, 787, 788, NULL, '图木舒克市', '659003', 39.8673, 79.078, NULL),
(399, '659004', '五家渠', 2, 32, '1,32,399', '2018-08-24 17:03:09', '2018-08-24 17:03:09', 3, 789, 790, NULL, '五家渠市', '659004', 44.1674, 87.5269, NULL),
(400, '659005', '北屯', 2, 32, '1,32,400', '2018-08-24 17:03:09', '2018-08-24 17:03:09', 3, 791, 792, NULL, '北屯市', '659005', 47.3532, 87.8249, NULL),
(401, '659006', '铁门关', 2, 32, '1,32,401', '2018-08-24 17:03:09', '2018-08-24 17:03:09', 3, 793, 794, NULL, '铁门关市', '659006', 41.8273, 85.5012, NULL),
(402, '659007', '双河', 2, 32, '1,32,402', '2018-08-24 17:03:09', '2018-08-24 17:03:09', 3, 795, 796, NULL, '双河市', '659007', 44.8405, 82.3537, NULL),
(403, '659008', '可克达拉', 2, 32, '1,32,403', '2018-08-24 17:03:09', '2018-08-24 17:03:09', 3, 797, 798, NULL, '可克达拉市', '659008', 43.6832, 80.6358, NULL),
(404, '659009', '昆玉', 2, 32, '1,32,404', '2018-08-24 17:03:09', '2018-08-24 17:03:09', 3, 799, 800, NULL, '昆玉市', '659009', 37.208, 79.2874, NULL),
(405, '810001', '中西区', 2, 34, '1,34,405', '2018-08-24 17:03:10', '2018-08-24 17:03:10', 3, 805, 806, NULL, '中西区', '810001', 22.2819, 114.154, NULL),
(406, '810002', '湾仔区', 2, 34, '1,34,406', '2018-08-24 17:03:10', '2018-08-24 17:03:10', 3, 807, 808, NULL, '湾仔区', '810002', 22.2763, 114.183, NULL),
(407, '810003', '东区', 2, 34, '1,34,407', '2018-08-24 17:03:10', '2018-08-24 17:03:10', 3, 809, 810, NULL, '东区', '810003', 22.2798, 114.226, NULL),
(408, '810004', '南区', 2, 34, '1,34,408', '2018-08-24 17:03:10', '2018-08-24 17:03:10', 3, 811, 812, NULL, '南区', '810004', 22.2458, 114.16, NULL),
(409, '810005', '油尖旺区', 2, 34, '1,34,409', '2018-08-24 17:03:10', '2018-08-24 17:03:10', 3, 813, 814, NULL, '油尖旺区', '810005', 22.3116, 114.173, NULL),
(410, '810006', '深水埗区', 2, 34, '1,34,410', '2018-08-24 17:03:10', '2018-08-24 17:03:10', 3, 815, 816, NULL, '深水埗区', '810006', 22.3338, 114.163, NULL),
(411, '810007', '九龙城区', 2, 34, '1,34,411', '2018-08-24 17:03:10', '2018-08-24 17:03:10', 3, 817, 818, NULL, '九龙城区', '810007', 22.3124, 114.193, NULL),
(412, '810008', '黄大仙区', 2, 34, '1,34,412', '2018-08-24 17:03:10', '2018-08-24 17:03:10', 3, 819, 820, NULL, '黄大仙区', '810008', 22.3361, 114.204, NULL),
(413, '810009', '观塘区', 2, 34, '1,34,413', '2018-08-24 17:03:10', '2018-08-24 17:03:10', 3, 821, 822, NULL, '观塘区', '810009', 22.3207, 114.214, NULL),
(414, '810010', '荃湾区', 2, 34, '1,34,414', '2018-08-24 17:03:11', '2018-08-24 17:03:11', 3, 823, 824, NULL, '荃湾区', '810010', 22.3685, 114.121, NULL),
(415, '810011', '屯门区', 2, 34, '1,34,415', '2018-08-24 17:03:11', '2018-08-24 17:03:11', 3, 825, 826, NULL, '屯门区', '810011', 22.3939, 113.976, NULL),
(416, '810012', '元朗区', 2, 34, '1,34,416', '2018-08-24 17:03:11', '2018-08-24 17:03:11', 3, 827, 828, NULL, '元朗区', '810012', 22.4413, 114.033, NULL),
(417, '810013', '北区', 2, 34, '1,34,417', '2018-08-24 17:03:11', '2018-08-24 17:03:11', 3, 829, 830, NULL, '北区', '810013', 22.4961, 114.147, NULL),
(418, '810014', '大埔区', 2, 34, '1,34,418', '2018-08-24 17:03:11', '2018-08-24 17:03:11', 3, 831, 832, NULL, '大埔区', '810014', 22.4457, 114.172, NULL),
(419, '810015', '西贡区', 2, 34, '1,34,419', '2018-08-24 17:03:11', '2018-08-24 17:03:11', 3, 833, 834, NULL, '西贡区', '810015', 22.3142, 114.265, NULL),
(420, '810016', '沙田区', 2, 34, '1,34,420', '2018-08-24 17:03:11', '2018-08-24 17:03:11', 3, 835, 836, NULL, '沙田区', '810016', 22.3797, 114.195, NULL),
(421, '810017', '葵青区', 2, 34, '1,34,421', '2018-08-24 17:03:11', '2018-08-24 17:03:11', 3, 837, 838, NULL, '葵青区', '810017', 22.3639, 114.139, NULL),
(422, '810018', '离岛区', 2, 34, '1,34,422', '2018-08-24 17:03:11', '2018-08-24 17:03:11', 3, 839, 840, NULL, '离岛区', '810018', 22.2864, 113.946, NULL),
(423, '820001', '花地玛堂区', 2, 35, '1,35,423', '2018-08-24 17:03:12', '2018-08-24 17:03:12', 3, 843, 844, NULL, '花地玛堂区', '820001', 22.2079, 113.553, NULL),
(424, '820002', '花王堂区', 2, 35, '1,35,424', '2018-08-24 17:03:12', '2018-08-24 17:03:12', 3, 845, 846, NULL, '花王堂区', '820002', 22.1992, 113.549, NULL),
(425, '820003', '望德堂区', 2, 35, '1,35,425', '2018-08-24 17:03:12', '2018-08-24 17:03:12', 3, 847, 848, NULL, '望德堂区', '820003', 22.1938, 113.55, NULL),
(426, '820004', '大堂区', 2, 35, '1,35,426', '2018-08-24 17:03:12', '2018-08-24 17:03:12', 3, 849, 850, NULL, '大堂区', '820004', 22.1881, 113.554, NULL),
(427, '820005', '风顺堂区', 2, 35, '1,35,427', '2018-08-24 17:03:12', '2018-08-24 17:03:12', 3, 851, 852, NULL, '风顺堂区', '820005', 22.1878, 113.542, NULL),
(428, '820006', '嘉模堂区', 2, 35, '1,35,428', '2018-08-24 17:03:12', '2018-08-24 17:03:12', 3, 853, 854, NULL, '嘉模堂区', '820006', 22.1541, 113.559, NULL),
(429, '820007', '路凼填海区', 2, 35, '1,35,429', '2018-08-24 17:03:12', '2018-08-24 17:03:12', 3, 855, 856, NULL, '路凼填海区', '820007', 22.1365, 113.569, NULL),
(430, '820008', '圣方济各堂区', 2, 35, '1,35,430', '2018-08-24 17:03:12', '2018-08-24 17:03:12', 3, 857, 858, NULL, '圣方济各堂区', '820008', 22.124, 113.56, NULL);
/*!40000 ALTER TABLE `area` ENABLE KEYS */;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
<filename>posda/posdatools/queries/sql/ExportEventStatusSummaryById.sql
-- Name: ExportEventStatusSummaryById
-- Schema: posda_files
-- Columns: ['export_event_id', 'export_destination_name', 'export_status', 'request_pending', 'request_status', 'status']
-- Args: ['export_event_id']
-- Tags: ['export_event', 'export_name']
-- Description: get summary of transfer statuses from export_event, file_export
--
select
distinct e.export_event_id, e.end_time, e.export_destination_name,
e.export_status, e.request_pending, e.request_status,
'W: ' || (
select count(file_id) from file_export f
where transfer_status is null and f.export_event_id = e.export_event_id
) || ', P: ' ||
(
select count(file_id) from file_export f
where e.export_event_id = f.export_event_id and transfer_status = 'pending'
) || ', S: ' ||
(
select count(file_id) from file_export f
where e.export_event_id = f.export_event_id and transfer_status = 'success'
) || ', Ft: ' ||
(
select count(file_id) from file_export f
where e.export_event_id = f.export_event_id and transfer_status = 'failed temporary'
) || ', Fp: ' ||
(
select count(file_id) from file_export f
where e.export_event_id = f.export_event_id and transfer_status = 'failed permanent'
) as status
from export_event e
where e.export_event_id = ? |
<reponame>EuPathDB/ApiCommonData
DROP SEQUENCE ApiDB.PhenotypeResult_sq;
DROP TABLE ApiDB.PhenotypeResult;
DELETE FROM core.TableInfo
WHERE lower(name) = 'phenotyperesult'
AND database_id = (SELECT database_id
FROM core.DatabaseInfo
WHERE lower(name) = 'apidb');
DROP SEQUENCE ApiDB.PhenotypeModel_sq;
DROP TABLE ApiDB.PhenotypeModel;
DELETE FROM core.TableInfo
WHERE lower(name) = 'phenotypemodel'
AND database_id = (SELECT database_id
FROM core.DatabaseInfo
WHERE lower(name) = 'apidb');
exit;
|
CREATE EXTENSION redis_fdw;
CREATE SERVER localredis FOREIGN DATA WRAPPER redis_fdw;
CREATE USER MAPPING FOR public SERVER localredis;
CREATE FOREIGN TABLE rft_str(
key TEXT,
value TEXT,
expiry INT
) SERVER localredis
OPTIONS (tabletype 'string');
CREATE TEMP TABLE bt(
k TEXT,
v TEXT
);
COPY bt (k, v) FROM STDIN;
key1 value-1
key2 value-2
key3 value-3
key4 value-4
key5 value-5
key6 value-6
key7 value-7
key8 value-8
key9 value-9
\.
INSERT INTO rft_str(key, value)
SELECT * FROM bt
RETURNING *;
SELECT * FROM rft_str WHERE key = 'key3';
DELETE FROM rft_str WHERE key = 'key1';
DELETE FROM rft_str WHERE key = 'key2';
DELETE FROM rft_str WHERE key = 'key3';
DELETE FROM rft_str WHERE key = 'key4';
DELETE FROM rft_str WHERE key = 'key5';
DELETE FROM rft_str WHERE key = 'key6';
DELETE FROM rft_str WHERE key = 'key7';
DELETE FROM rft_str WHERE key = 'key8';
DELETE FROM rft_str WHERE key = 'key9';
DROP TABLE bt;
DROP FOREIGN TABLE rft_str;
|
/*
add_australian_stores.sql is a MySQL script intended to add
fishpond.com.au and Booktopia as "Other Sites" options.
Version: $Revision$
Date: $Date$
(C) COPYRIGHT 2015 Ahasuerus
ALL RIGHTS RESERVED
The copyright notice above does not evidence any actual or
intended publication of such source code.
*/
INSERT INTO websites (site_id, site_name, site_url) VALUES (27,'Fishpond','http://www.fishpond.com.au/?keywords=%s');
INSERT INTO websites (site_id, site_name, site_url) VALUES (28,'Booktopia','http://www.booktopia.com.au/prod%s.html');
ALTER TABLE websites ADD COLUMN site_isbn13 tinyint(3);
UPDATE websites SET site_isbn13=1 WHERE site_name in ('Booktopia', 'Smashwords');
|
<gh_stars>0
-- Multi-Table Query Practice
-- Display the ProductName and CategoryName for all products in the database. Shows 77 records.
select c.CategoryName as Category, p.ProductName as Product
from [Product] as p
join Category as c on p.CategoryId = c.Id
order by c.Id;
-- Display the order Id and shipper CompanyName for all orders placed before August 9 2012. Shows 429 records.
select [Order].Id as OrderId, Shipper.CompanyName
from [Order]
join Shipper on [Order].ShipVia = Shipper.Id
where OrderDate < '2012-08-09' ;
-- Display the name and quantity of the products ordered in order with Id 10251. Sort by ProductName. Shows 3 records.
select p.ProductName as Product, od.Quantity as Quantity
from [OrderDetail] as od
join Product as p on od.ProductId = p.id
where OrderId = 10251
order by Product;
-- Display the OrderID, Customer's Company Name and the employee's LastName for every order. All columns should be labeled clearly. Displays 16,789 records.
select o.Id as OrderId, c.CompanyName as CustomerCompanyName, e.LastName as EmployeeLastName
from [Order] as o
join Customer as c on o.CustomerId = c.Id
join Employee as e on o.EmployeeId = e.Id; |
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50724
Source Host : localhost:3306
Source Database : php_carrito
Target Server Type : MYSQL
Target Server Version : 50724
File Encoding : 65001
Date: 2020-10-28 00:16:03
*/
SET FOREIGN_KEY_CHECKS=0;
-- ----------------------------
-- Table structure for categorias
-- ----------------------------
DROP TABLE IF EXISTS `categorias`;
CREATE TABLE `categorias` (
`id_categoria` int(11) NOT NULL AUTO_INCREMENT,
`nombre_categoria` varchar(50) DEFAULT NULL,
PRIMARY KEY (`id_categoria`)
) ENGINE=MyISAM AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of categorias
-- ----------------------------
INSERT INTO `categorias` VALUES ('1', 'Memorias Ram');
INSERT INTO `categorias` VALUES ('2', 'Procesadores');
INSERT INTO `categorias` VALUES ('3', 'Motherboards');
INSERT INTO `categorias` VALUES ('4', 'Discos Rigidos');
INSERT INTO `categorias` VALUES ('5', 'SSD');
INSERT INTO `categorias` VALUES ('6', 'Fuentes');
INSERT INTO `categorias` VALUES ('7', 'Gabinetes');
INSERT INTO `categorias` VALUES ('8', 'Perifericos');
INSERT INTO `categorias` VALUES ('9', 'Refrigeración');
INSERT INTO `categorias` VALUES ('10', 'Placas de video');
-- ----------------------------
-- Table structure for compras
-- ----------------------------
DROP TABLE IF EXISTS `compras`;
CREATE TABLE `compras` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`falta` datetime NOT NULL COMMENT 'Fecha',
`fmodificacion` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'F. Modificacion',
`habilitado` tinyint(1) unsigned DEFAULT '1' COMMENT 'Habilitado',
`feliminado` datetime DEFAULT NULL COMMENT 'F. Elimimado',
`importe_total` decimal(8,2) NOT NULL DEFAULT '0.00',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Records of compras
-- ----------------------------
-- ----------------------------
-- Table structure for compras_productos
-- ----------------------------
DROP TABLE IF EXISTS `compras_productos`;
CREATE TABLE `compras_productos` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`falta` datetime NOT NULL COMMENT 'Fecha',
`fmodificacion` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'F. Modificacion',
`habilitado` tinyint(1) unsigned DEFAULT '1' COMMENT 'Habilitado',
`feliminado` datetime DEFAULT NULL COMMENT 'F. Elimimado',
`productos_id` int(10) unsigned NOT NULL DEFAULT '0',
`compras_id` int(10) unsigned NOT NULL DEFAULT '0',
`precio` decimal(8,2) NOT NULL DEFAULT '0.00',
`denominacion` varchar(125) NOT NULL DEFAULT '',
`codigo` varchar(30) DEFAULT NULL,
`precio_oferta` decimal(8,2) DEFAULT NULL,
`cantidad` int(10) unsigned NOT NULL DEFAULT '1',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Records of compras_productos
-- ----------------------------
-- ----------------------------
-- Table structure for contacto
-- ----------------------------
DROP TABLE IF EXISTS `contacto`;
CREATE TABLE `contacto` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`nombre` varchar(100) DEFAULT NULL,
`apellido` varchar(100) DEFAULT NULL,
`email` varchar(100) DEFAULT NULL,
`consulta` varchar(500) DEFAULT NULL,
`producto` varchar(100) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of contacto
-- ----------------------------
-- ----------------------------
-- Table structure for productos
-- ----------------------------
DROP TABLE IF EXISTS `productos`;
CREATE TABLE `productos` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`habilitado` tinyint(1) unsigned DEFAULT '1' COMMENT 'Habilitado',
`denominacion` varchar(125) NOT NULL COMMENT 'Denominación, Título o nombre',
`descripcion` varchar(500) NOT NULL COMMENT 'Descripcion',
`activa` tinyint(1) unsigned DEFAULT NULL COMMENT 'Activa',
`codigo` varchar(30) DEFAULT NULL,
`precio` decimal(8,2) NOT NULL,
`publicaciones_estados_id` int(10) unsigned DEFAULT '0',
`oferta` tinyint(1) unsigned DEFAULT NULL,
`precio_oferta` decimal(8,2) DEFAULT NULL,
`fecha_finalizacion_oferta` datetime DEFAULT NULL,
`destacado` tinyint(1) unsigned DEFAULT NULL,
`id_categoria` int(11) NOT NULL,
`stock` decimal(65,0) NOT NULL,
`marca` varchar(50) NOT NULL,
`imagen` varchar(50) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=49 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- ----------------------------
-- Records of productos
-- ----------------------------
INSERT INTO `productos` VALUES ('1', '1', 'INTEL MICRO G5400 PENTIUM GOLD', 'LGA 1151 8va', '1', 'SKU0001', '5950.00', '0', null, '5600.00', null, '0', '2', '10', 'Intel', '1.jpg');
INSERT INTO `productos` VALUES ('2', '1', 'INTEL MICRO CORE I3 10100', 'TURBO + COMET LAKE 10th GEN', '1', 'SKU0002', '12990.00', '0', null, '12000.00', null, '0', '2', '15', 'Intel', '2.jpg');
INSERT INTO `productos` VALUES ('3', '1', 'INTEL MICRO CORE I5 9600K', 'TURBO COFFEE LAKE 9NA', '1', 'SKU0003', '25990.00', '0', null, '25000.00', null, '0', '2', '10', 'Intel', '3.jpg');
INSERT INTO `productos` VALUES ('4', '1', 'INTEL MICRO CORE I7 10700', 'TURBO COMET LAKE 10th GEN', '1', 'SKU0004', '37000.00', '0', null, null, null, '1', '2', '5', 'Intel', '4.jpg');
INSERT INTO `productos` VALUES ('5', '1', 'INTEL MICRO CORE I9 9900K', 'TURBO COFFEE LAKE S1151 9NA', '1', 'SKU0005', '49980.00', '0', null, '49000.00', null, '1', '2', '5', 'Intel', '5.jpg');
INSERT INTO `productos` VALUES ('6', '1', 'GIGABYTE MOTHER B365M GAMING HD S1151', 'Intel B365 Gaming motherboard with GIGABYTE 8118 Gaming LAN, PCIe Gen3 x4 M.2, Anti-Sulfur Resistor, Smart Fan 5, CEC 2019 ready', '1', 'SKU0006', '9500.00', '0', null, null, null, '0', '3', '10', 'Gigabyte', '6.jpg');
INSERT INTO `productos` VALUES ('7', '1', 'GIGABYTE MOTHER B365M AORUS ELITE 8VA 9NA GEN INTEL S1151', 'Motherboard Intel B365 AORUS con RGB Fusion 2.0 con LED digitales, Intel GbE LAN con cFosSpeed, ranuras M.2 dobles, armadura PCIe ultra duradera, resistencia antisulfuro, Smart Fan 5, DualBIOS ™, listo para CEC 2019', '1', 'SKU0007', '12500.00', '0', null, null, null, '0', '3', '15', 'Gigabyte', '7.jpg');
INSERT INTO `productos` VALUES ('8', '1', 'ASUS MOTHER X570-P PRIME AM4 AMD', 'AMD AM4 ATX motherboard with PCIe 4.0, 12 DrMOS power stages, dual M.2, HDMI, SATA 6Gb/s, USB 3.2 Gen 2 and Aura Sync RGB header', '1', 'SKU0008', '20495.00', '0', null, '18000.00', null, '0', '3', '10', 'Asus', '8.jpg');
INSERT INTO `productos` VALUES ('9', '1', 'MSI MOTHER B460M MORTAR MAG WIFI Socket 1200 INTEL 10th Gen', 'The MAG series was born through rigorous quality testing and designed to be a symbol of sturdiness and durability. Focused on providing the best user experience, the MAG series has a simple installation process coupled with a friendly user interface making it the best choice for entry level gamers.', '1', 'SKU0009', '17800.00', '0', null, null, null, '1', '3', '5', 'MSI', '9.jpg');
INSERT INTO `productos` VALUES ('10', '1', 'MSI MOTHER B550M PRO-VDH WIFI AM4 (Solo 3era gen sin video)', 'PRO series helps users work smarter by delivering an efficient and productive experience. Featuring stable functionality and high-quality assembly, PRO series motherboards provide not only optimized professional workflows but also less troubleshooting and longevity.', '1', 'SKU0010', '17000.00', '0', null, '15500.00', null, '1', '3', '5', 'MSI', '10.jpg');
INSERT INTO `productos` VALUES ('11', '1', 'OLOY MEMORIA RAM 16GB (2x8GB)', '3000MHZ DDR4 WARHAWK RED RGB - CL 16', '1', 'SKU0011', '7700.00', '0', null, null, null, '0', '1', '10', 'OLOY', '11.jpg');
INSERT INTO `productos` VALUES ('12', '1', 'CORSAIR MEMORIA RAM 16GB', '4000MHZ 2x8GB DOMINATOR PLATINUM RGB', '1', 'SKU0012', '38000.00', '0', null, '37000.00', null, '0', '1', '15', 'Corsair', '12.jpg');
INSERT INTO `productos` VALUES ('13', '1', 'GIGABYTE MEMORIA RAM 16GB 2x8GB', '3600MHZ RGB AORUS DEMO KIT BLACK DDR4', '1', 'SKU0013', '17995.00', '0', null, '17000.00', null, '0', '1', '10', 'Gigabyte', '13.jpg');
INSERT INTO `productos` VALUES ('14', '1', 'OLOY MEMORIA RAM 32GB 2x16GB', '3200MHZ 2x16GB DDR4 WARHAWK BLACK RGB', '1', 'SKU0014', '15300.00', '0', null, null, null, '1', '1', '5', 'OLOY', '14.jpg');
INSERT INTO `productos` VALUES ('15', '1', 'KINGSTON MEMORIA RAM 16GB', '2666MHZ HYPERX FURY RGB DDR4 BLACK', '1', 'SKU0015', '7900.00', '0', null, null, null, '1', '1', '5', 'Kingston', '15.jpg');
INSERT INTO `productos` VALUES ('16', '1', 'GIGABYTE RADEON RX 5500 XT 8GB', 'GAMING OC GDDR6 PCI-E 4.0 DUAL FAN - RGB', '1', 'SKU0016', '33500.00', '0', null, '32000.00', null, '0', '10', '10', 'Gigabyte', '16.jpg');
INSERT INTO `productos` VALUES ('17', '1', 'ASUS NVIDIA RTX 2060 SUPER', 'DUAL EVO O8G 8GB DDR6', '1', 'SKU0017', '59990.00', '0', null, null, null, '0', '10', '15', 'Nvidia', '17.jpg');
INSERT INTO `productos` VALUES ('18', '1', 'MSI NVIDIA RTX 2070 SUPER', 'VENTUS GP OC 8GB DDR6', '1', 'SKU0018', '65000.00', '0', null, '63000.00', null, '0', '10', '10', 'Nvidia', '18.jpg');
INSERT INTO `productos` VALUES ('19', '1', 'SAPPHIRE RADEON RX 5500 XT', '8GB PULSE GDDR6 PCI-E 4.0', '1', 'SKU0019', '31000.00', '0', null, null, null, '0', '10', '5', 'Radeon', '19.jpg');
INSERT INTO `productos` VALUES ('20', '1', 'MSI NVIDIA GT 1030 2GB', 'DDR5 OC LOW PROFILE LP', '1', 'SKU0020', '11000.00', '0', null, null, null, '0', '10', '5', 'Nvidia', '20.jpg');
INSERT INTO `productos` VALUES ('21', '1', 'KINGSTON SSD 240GB A400 2.5 \" SATA 3', 'SATA Rev. 3.0 (6Gb/s) – with backwards compatibility to SATA Rev. 2.0 (3Gb/s)', '1', 'SKU0021', '3300.00', '0', null, null, null, '0', '5', '10', 'Kingston', '21.jpg');
INSERT INTO `productos` VALUES ('22', '1', 'GIGABYTE SSD 240GB NAND FLASH 2.5 \" SATA 3', 'Interface: SATA 6.0Gb/s', '1', 'SKU0022', '3250.00', '0', null, '3000.00', null, '0', '5', '15', 'Gigabyte', '22.jpg');
INSERT INTO `productos` VALUES ('23', '1', 'KINGSTON SSD 960GB A400 2.5 \" SATA 3', 'SATA Rev. 3.0 (6Gb/s) - SATA Rev. 2.0 (3Gb/s)', '1', 'SKU0023', '10000.00', '0', null, null, null, '0', '5', '10', 'Kingston', '23.jpg');
INSERT INTO `productos` VALUES ('24', '1', 'GIGABYTE SSD M.2 512GB NVME PCIE 4X', 'Interface: PCI-Express 3.0 x2, NVMe 1.3', '1', 'SKU0024', '9500.00', '0', null, '9000.00', null, '0', '5', '5', 'Gigabyte', '24.jpg');
INSERT INTO `productos` VALUES ('25', '1', 'GIGABYTE SSD M.2 1TB AORUS', 'NVMe PCIe Gen4 UP TO 5000 MB/s', '1', 'SKU0025', '32000.00', '0', null, null, null, '0', '5', '5', 'Gigabyte', '25.jpg');
INSERT INTO `productos` VALUES ('26', '1', 'THERMALTAKE GABINETE V200', 'x1 FAN -BLACK - TEMPERED GLASS TG', '1', 'SKU0026', '13990.00', '0', null, null, null, '0', '7', '10', 'Thermaltake', '26.jpg');
INSERT INTO `productos` VALUES ('27', '1', 'AZZA GABINETE 330 IRIS', 'MID TOWER - x2 FAN DIGITAL RGB', '1', 'SKU0027', '13990.00', '0', null, '13000.00', null, '0', '7', '15', 'AZZA', '27.jpg');
INSERT INTO `productos` VALUES ('28', '1', 'COOLER MASTER H100', 'MINI ITX MASTERCASE H100 RGB', '1', 'SKU0028', '14000.00', '0', null, null, null, '0', '7', '10', 'Cooler Master', '28.jpg');
INSERT INTO `productos` VALUES ('29', '1', 'CORSAIR GABINETE CARBIDE', 'SPEC DELTA RGB BLACK - TRIPLE FAN', '1', 'SKU0029', '19500.00', '0', null, '18000.00', null, '0', '7', '5', 'Corsair', '29.jpg');
INSERT INTO `productos` VALUES ('30', '1', 'AEROCOOL GABINETE SHARD', 'BLACK TEMPERED GLASS x4 120MM FANS RGB', '1', 'SKU0030', '22000.00', '0', null, '2000.00', null, '0', '7', '5', 'Aerocool', '30.jpg');
INSERT INTO `productos` VALUES ('31', '1', 'THERMALTAKE FUENTE GAMER 430W', 'SMART 80+ PLUS WHITE', '1', 'SKU0031', '9900.00', '0', null, null, null, '0', '6', '10', 'Thermaltake', '31.jpg');
INSERT INTO `productos` VALUES ('32', '1', 'AEROCOOL FUENTE GAMER 500W', 'CYLON RGB 80+ PLUS BRONZE FULL RANGE WIRED', '1', 'SKU0032', '11300.00', '0', null, '10500.00', null, '0', '6', '15', 'Aerocool', '32.jpg');
INSERT INTO `productos` VALUES ('33', '1', 'CORSAIR FUENTE GAMER 450W', 'CV450 80+ PLUS BRONZE', '1', 'SKU0033', '11900.00', '0', null, '11000.00', null, '0', '6', '10', 'Corsair', '33.jpg');
INSERT INTO `productos` VALUES ('34', '1', 'EVGA FUENTE GAMER 650W', 'N1 - 100-N1-0650-L1', '1', 'SKU0034', '37000.00', '0', null, null, null, '0', '6', '5', 'EVGA', '34.jpg');
INSERT INTO `productos` VALUES ('35', '1', 'THERMALTAKE FUENTE 650W', 'SMART BX1 RGB 80+ PLUS BRONZE', '1', 'SKU0035', '49980.00', '0', null, null, null, '0', '6', '5', 'Thermaltake', '35.jpg');
INSERT INTO `productos` VALUES ('36', '1', 'COOLER MASTER COOLER H212', 'CPU INTEL AMD HYPER 212 TURBO DUAL FAN LED RED', '1', 'SKU0036', '18990.00', '0', null, null, null, '0', '9', '10', 'Cooler Master', '36.jpg');
INSERT INTO `productos` VALUES ('37', '1', 'EVGA WATER COOLING 120MM', 'LIQUID CLC RGB LED COOLER CPU INTEL AMD', '1', 'SKU0037', '20000.00', '0', null, null, null, '0', '9', '15', 'EVGA', '37.jpg');
INSERT INTO `productos` VALUES ('38', '1', 'ASUS WATER COOLING 120MM', 'ROG RYUO OLED SCREEN RGB', '1', 'SKU0038', '43975.00', '0', null, '42000.00', null, '0', '9', '10', 'Asus', '38.jpg');
INSERT INTO `productos` VALUES ('39', '1', 'COOLER MASTER WATER COOLING MASTERLIQUID', 'ML240 LITE CPU COOLER INTEL AMD', '1', 'SKU0039', '27500.00', '0', null, null, null, '0', '9', '5', 'Cooler Master', '39.jpg');
INSERT INTO `productos` VALUES ('40', '1', 'WESTERN DIGITAL DISCO HDD 1TB', 'BLUE WD 7200RPM 64MB', '1', 'SKU0040', '4700.00', '0', null, null, null, '0', '4', '5', 'Weestern Digital', '40.jpg');
INSERT INTO `productos` VALUES ('41', '1', 'SEAGATE DISCO HDD 4TB', 'BARRACUDA 7200RPM 64MB', '1', 'SKU0041', '11000.00', '0', null, '10000.00', null, '0', '4', '5', 'Seagate', '41.jpg');
INSERT INTO `productos` VALUES ('42', '1', 'SEAGATE DISCO HDD 8TB', 'SKYHAWK', '1', 'SKU0042', '28000.00', '0', null, null, null, '0', '4', '10', 'Seagate', '42.jpg');
INSERT INTO `productos` VALUES ('43', '1', 'MARVO COMBO 4 EN 1', 'CM370 GAMER RGB - MOUSE AURICULAR TECLADO PAD', '1', 'SKU0043', '4990.00', '0', null, null, null, '0', '8', '15', 'Marvo', '43.jpg');
INSERT INTO `productos` VALUES ('44', '1', 'THERMALTAKE TECLADO MECANICO', 'PREMIUM X1 RGB CHERRY MX BlUE', '1', 'SKU0044', '15985.00', '0', null, '15000.00', null, '0', '8', '10', 'Thermaltake', '44.jpg');
INSERT INTO `productos` VALUES ('45', '1', 'COUGAR TECLADO MECANICO PURI', 'TKL RGB - SIN NUMPAD - CON PROTECTOR', '1', 'SKU0045', '17485.00', '0', null, null, null, '0', '8', '5', 'Cougar', '45.jpg');
INSERT INTO `productos` VALUES ('46', '1', 'LOGITECH WEBCAM C920S', 'FULLHD 1080P 30FPS + MICROFONO', '1', 'SKU0046', '19000.00', '0', null, '17500.00', null, '0', '8', '5', 'Logitech', '46.jpg');
-- ----------------------------
-- Table structure for usuarios
-- ----------------------------
DROP TABLE IF EXISTS `usuarios`;
CREATE TABLE `usuarios` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
`habilitado` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT 'Habilitado',
`email` varchar(255) NOT NULL DEFAULT '' COMMENT 'Email',
`clave` varchar(64) NOT NULL DEFAULT '' COMMENT 'Clave',
`nombre` varchar(50) NOT NULL DEFAULT '' COMMENT 'Nombre',
`apellido` varchar(50) NOT NULL DEFAULT '' COMMENT 'Apellido',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8;
-- ----------------------------
-- Records of usuarios
-- ----------------------------
INSERT INTO `usuarios` VALUES ('7', '1', '<EMAIL>', 'usuario1', 'usuario', 'usuario');
INSERT INTO `usuarios` VALUES ('8', '1', '<EMAIL>', '$2y$10$tjhCeqb2ZsiKAVxrfYKIue8HzA.onHb6LDkDfeuuBI9HcZPomBrR2', 'test', 'test');
|
<reponame>AscenKeeprov/Database-Basics<filename>Exercise8-ExamPreparation/WashingMachineService/HardEarners.sql
USE WMS
SELECT TOP(3)
CONCAT(m.FirstName, ' ', m.LastName) AS [Mechanic],
COUNT(j.JobId) AS [Jobs]
FROM Mechanics AS m
JOIN Jobs AS j
ON j.MechanicId = m.MechanicId
WHERE j.[Status] <> 'Finished'
GROUP BY CONCAT(m.FirstName, ' ', m.LastName), m.MechanicId
HAVING COUNT(j.JobId) > 1
ORDER BY Jobs DESC, m.MechanicId
--WITH CTE_MechanicsUnfinishedJobs (MechanicId, Mechanic, JobId) AS
--(
-- SELECT
-- m.MechanicId,
-- CONCAT(m.FirstName, ' ', m.LastName) AS [Mechanic],
-- j.JobId
-- FROM Mechanics AS m
-- JOIN Jobs AS j
-- ON j.MechanicId = m.MechanicId
-- WHERE j.[Status] <> 'Finished'
--)
--,
--CTE_Mechanics1PlusActiveJobs (MechanicId, Mechanic, Jobs) AS
--(
-- SELECT
-- MechanicId,
-- Mechanic,
-- COUNT(JobId) AS [Jobs]
-- FROM CTE_MechanicsUnfinishedJobs
-- GROUP BY MechanicId, Mechanic
-- HAVING COUNT(JobId) > 1
--)
--SELECT TOP(3)
-- Mechanic,
-- Jobs
--FROM CTE_Mechanics1PlusActiveJobs
--ORDER BY Jobs DESC, MechanicId
|
-- MySQL dump 10.13 Distrib 8.0.21, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: oficioive7122020
-- ------------------------------------------------------
-- Server version 8.0.21
/*!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 */;
--
-- Dumping data for table `listacondicionmigratoria`
--
LOCK TABLES `listacondicionmigratoria` WRITE;
/*!40000 ALTER TABLE `listacondicionmigratoria` DISABLE KEYS */;
INSERT INTO `listacondicionmigratoria` VALUES (1,'Residente temporal '),(2,'Residente Permanente'),(3,'Turista o visitante'),(4,'Permiso de trabajo '),(5,'Persona en tránsito'),(6,'Permiso consular o similar'),(7,'Nacionalizado/naturalizado en Guatemala'),(8,'Otra');
/*!40000 ALTER TABLE `listacondicionmigratoria` 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-10-08 18:15:04
|
--
-- Dumping data for DB `Rival`
--
--
-- Dumping data for table `countries`
--
INSERT INTO `countries` ( `name`, `name_en`, `created_at`, `updated_at`) VALUES
( 'السعودية', 'Saudi', NULL, NULL);
--
-- Dumping data for table `cities`
--
INSERT INTO `cities` ( `name`, `name_en`, `country_id`, `created_at`, `updated_at`) VALUES
( 'الرياض', 'riyadh', 1, NULL, NULL);
--
-- Dumping data for table `prove_types`
--
INSERT INTO `prove_types` (`id`, `name`, `name_en`, `created_at`, `updated_at`) VALUES
(null, 'هوية وطنية', 'Citizen ID', NULL, NULL),
(null, 'جواز سفر', 'Passport', NULL, NULL);
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `group_id`, `phone`, `localization`, `email`, `email_verified_at`, `password`, `<PASSWORD>_token`, `player_id`, `created_at`, `updated_at`, `city_id`) VALUES
(null, 'client', 1, '0509875995', 'lag,lat', '<EMAIL>', NULL, '123456', NULL, NULL, NULL, NULL, 1),
(null, 'trader', 2, '05098765595', 'lan,long', '<EMAIL>', NULL, '123456', NULL, NULL, NULL, NULL, 1),
(null, 'Rival ', 3, '123456', 'lan', '<EMAIL>', NULL, '', NULL, NULL, NULL, NULL, 1),
(null, 'driver_account', 4, '11223344', 'lan', '<EMAIL>', NULL, '123456', NULL, NULL, '2020-12-14 21:00:00', NULL, 1);
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` ( `name`, `name_en`, `img`, `created_at`, `updated_at`) VALUES
( 'مكاتب', 'offices', 'img.png', NULL, NULL);
--
-- Dumping data for table `traders`
--
INSERT INTO `traders` ( `activityName`, `CRN`, `status`, `spicalizition_id`, `user_id`, `created_at`, `updated_at`) VALUES
( 'AL-MENSAH', '210029911', 'verified', 1, 1, NULL, NULL);
--
-- Dumping data for table `drivers`
--
INSERT INTO `drivers` (`id`, `carNumber`, `license_no`, `carType`, `img`, `ssl`, `user_id`, `proveType_id`, `created_at`, `updated_at`) VALUES
(NULL, '12121212', '12121', 'toyota', 'img/ss.png', '213443567', 4, 1, '2020-12-14 21:00:00', NULL);
--
-- Dumping data for table `qutation_orders`
--
INSERT INTO `qutation_orders` (`qutastion_status`, `payMethod`, `client_id`, `cat_id`, `created_at`, `updated_at`) VALUES
( 'panding', 'online', 1, 1, NULL, NULL);
--
-- Dumping data for table `qutation_orders`
--
INSERT INTO `qutation_order_items` (`id`, `name`, `item_desc`, `qutation_order_id`, `created_at`, `updated_at`) VALUES
(NULL, 'رفوف جدار خشبية', 'رف خشبي الون احمر', 1, NULL, NULL),
(NULL, 'كرسي خشبي ', 'رف خشبي الون احمر', 1, NULL, NULL);
--
-- Dumping data for table `qutations`
--
INSERT INTO `qutations` (`id`, `status`, `sub_total`, `delivery_fee`, `includeDelivery`, `qutation_order_id`, `trader_id`, `created_at`, `updated_at`) VALUES
(null, 'panding', 0.00, 0.00, 0, 1, 2, NULL, NULL);
--
-- Dumping data for table `orders`
--
--
-- Dumping data for table `qutation_items`
--
INSERT INTO `qutation_items` (`price`, `img`, `item_desc`, `note`, `qutition_id`, `qutation_order_item_id`, `created_at`, `updated_at`) VALUES
('10', 'img/pic.ong', 'desc item', 'notes', 1, 2, '2020-12-14 21:00:00', NULL);
INSERT INTO `orders` (`id`, `operation_code`, `payment_method`, `delivery_location`, `deosInclude_delivery`, `delivery_fees`, `tax`, `sub_total`, `total`, `qutation_id`, `trader_id`, `created_at`, `updated_at`) VALUES
(null, 'E121', 'cash', 'lan,lat', '0', '10', '16.5', '100', '116.5', 1, 1, '2020-12-14 21:00:00', NULL);
INSERT INTO `admins` (`id`, `user_id`, `created_at`, `updated_at`) VALUES
(1, 4, '2020-12-15 21:00:00', NULL);
--
-- Dumping data for table `categories`
--
INSERT INTO `categories` (`id`, `name`, `name_en`, `img`, `created_at`, `updated_at`) VALUES
(NULL, 'مكاتب', 'offices', NULL, NULL, NULL),
(NULL, 'مكاتب', 'offices', 'img.png', NULL, NULL);
--
-- Dumping data for table `contact_forms`
--
INSERT INTO `contact_forms` (`id`, `status`, `body`, `reply`, `sender_id`, `created_at`, `updated_at`) VALUES
(NULL, 'panding', 'testing ', NULL, 1, '2020-12-15 21:00:00', '2020-12-15 21:00:00');
--
-- Dumping data for table `drivers`
--
INSERT INTO `drivers` (`id`, `cabtin_name`, `carNumber`, `license_no`, `carType`, `img`, `ssl`, `user_id`, `status`, `proveType_id`, `created_at`, `updated_at`) VALUES
(NULL, NULL, '12121212', '12121', 'toyota', 'img/ss.png', '213443567', 4, 'reviewing', 1, '2020-12-14 18:00:00', NULL);
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`id`, `operation_code`, `payment_method`, `delivery_location`, `deosInclude_delivery`, `delivery_fees`, `tax`, `sub_total`, `total`, `qutation_id`, `client_id`, `trader_id`, `created_at`, `updated_at`) VALUES
(NULL, 'E121', 'cash', 'lan,lat', '0', '10', '16.5', '100', '116.5', 1, NULL, 1, '2020-12-14 18:00:00', NULL);
--
-- Dumping data for table `prove_types`
--
INSERT INTO `prove_types` (`id`, `name`, `name_en`, `created_at`, `updated_at`) VALUES
(NULL, 'هوية وطنية', 'Citizen ID', NULL, NULL),
(NULL, 'جواز سفر', 'Passport', NULL, NULL);
--
-- Dumping data for table `qutations`
--
INSERT INTO `qutations` (`id`, `status`, `sub_total`, `delivery_fee`, `includeDelivery`, `qutation_order_id`, `trader_id`, `created_at`, `updated_at`) VALUES
(NULL, 'panding', 0.00, 0.00, 0, 1, 2, NULL, NULL);
--
-- Dumping data for table `qutation_items`
--
INSERT INTO `qutation_items` (`id`, `price`, `img`, `item_desc`, `note`, `qutition_id`, `qutation_order_item_id`, `created_at`, `updated_at`) VALUES
(NULL, '10', 'img/pic.ong', 'desc item', 'notes', 1, 2, '2020-12-14 18:00:00', NULL);
--
-- Dumping data for table `qutation_orders`
--
INSERT INTO `qutation_orders` (`id`, `qutastion_status`, `payMethod`, `client_id`, `cat_id`, `created_at`, `updated_at`) VALUES
(NULL, 'panding', 'online', 1, 1, NULL, NULL);
--
-- Dumping data for table `qutation_order_items`
--
INSERT INTO `qutation_order_items` (`id`, `name`, `item_desc`, `qutation_order_id`, `created_at`, `updated_at`) VALUES
(NULL, 'رفوف جدار خشبية', 'رف خشبي الون احمر', 1, NULL, NULL),
(NULL, 'كرسي خشبي ', 'رف خشبي الون احمر', 1, NULL, NULL);
--
-- Dumping data for table `traders`
--
INSERT INTO `traders` (`id`, `activityName`, `CRN`, `status`, `spicalizition_id`, `user_id`, `created_at`, `updated_at`) VALUES
(NULL, 'AL-MENSAH', '210029911', 'verified', 1, 2, NULL, NULL);
--
-- Dumping data for table `contentions`
--
INSERT INTO `contentions` (`id`, `title`, `status`, `sup_commendation`, `sup_investigtion`, `complain_reason`, `order_id`, `claimant_id`, `supervisor_id`, `driver_id`, `created_at`, `updated_at`) VALUES
(NULL, 'test Contentions', 'panding', 'test Contentionstest Contentions ', 'test Contentionstest Contentions', 'test Contentionstest Contentionstest Contentions', 1, 1, 1, 1, '2020-12-15 21:00:00', '2020-12-15 21:00:00');
--
-- Dumping data for table `delivery_offers`
--
INSERT INTO `delivery_offers` (`id`, `fees`, `status`, `max_rate`, `min_rate`, `driver_id`, `order_id`, `created_at`, `updated_at`) VALUES
(null, '100', 'pending', '18', '12', 1, 1, '2020-12-15 21:00:00', '2020-12-15 21:00:00');
--
-- Dumping data for table `wallets`
--
INSERT INTO `wallets` (`id`, `balance`, `balance_string`, `password`, `wallet_no`, `isSuspend`, `user_id`, `lastActivity`, `created_at`, `updated_at`) VALUES
(null, 75.00, '', '1234', 'E8876', '0', 1, '20-12-2020', '2020-12-18 21:00:00', NULL);
--
-- Dumping data for table `qutations`
--
INSERT INTO `qutations` (`id`, `status`, `sub_total`, `delivery_fee`, `includeDelivery`, `qutation_order_id`, `trader_id`, `created_at`, `updated_at`) VALUES
(null, 'panding', 10.00, 0.00, 0, 2, 2, '2020-12-08 08:23:14', NULL),
(null, 'panding', 100.00, 0.00, 0, 1, 2, '2020-12-08 08:23:18', NULL);
--
-- Dumping data for table `settings`
--
--
-- Dumping data for table `settings`
--
INSERT INTO `settings` (`id`, `name`, `valuee`, `created_at`, `updated_at`) VALUES
(1, 'rival_tax', 0.15, '2020-12-21 21:00:00', NULL),
(2, 'tax', 0.15, '2020-12-21 21:00:00', NULL);
-- |
<gh_stars>0
-- we don't know how to generate database opieandanthonylive10 (class Database) :(
create table ArchiveFileTypeInfos
(
ArchiveFileTypeInfoID int identity,
Extension nvarchar(20) not null,
Description nvarchar(200) not null,
constraint PK_ArchiveFileTypeInfos
primary key (ArchiveFileTypeInfoID)
)
go
create table AudibleMediaItems
(
AudibleMediaItemID int identity,
ItemTypeClassification nvarchar(30) not null,
Title nvarchar(200) not null,
By nvarchar(100) not null,
NarratedBy nvarchar(100) not null,
FullShowMetadataUrl nvarchar(500) not null,
PlaybackLength time not null,
ReleaseDate datetime2 not null,
AverageRating float,
NumberOfRatings int not null,
constraint PK_AudibleMediaItems
primary key (AudibleMediaItemID)
)
go
create table ContentCreators
(
ContentCreatorID int identity,
ContentCreatorName nvarchar(50) not null,
constraint PK_ContentCreators
primary key (ContentCreatorID)
)
go
create table EmbeddedContentSources
(
EmbeddedContentSourceID int identity,
EmbeddedContentSourceName nvarchar(50) not null,
constraint PK_EmbeddedContentSources
primary key (EmbeddedContentSourceID)
)
go
create unique index UIX_EmbeddedContentSource_EmbeddedContentSourceName
on EmbeddedContentSources (EmbeddedContentSourceName)
go
create table Genders
(
GenderID int identity,
Abbreviation nvarchar(5) not null,
GenderName nvarchar(200) not null,
constraint PK_Genders
primary key (GenderID)
)
go
create unique index UIX_Gender_GenderName
on Genders (GenderName)
go
create table GuestAppearanceTypes
(
GuestAppearanceTypeID int identity,
AppearanceTypeName nvarchar(150) not null,
constraint PK_GuestAppearanceTypes
primary key (GuestAppearanceTypeID)
)
go
create unique index IX_GuestAppearanceType_AppearanceTypeName
on GuestAppearanceTypes (AppearanceTypeName)
go
create table ShowRundownAuthors
(
ShowRundownAuthorID int identity,
AuthorName nvarchar(150) not null,
constraint PK_ShowRundownAuthors
primary key (ShowRundownAuthorID)
)
go
create index IX_ShowRundownAuthor_AuthorName
on ShowRundownAuthors (AuthorName)
go
create table Shows
(
ShowID int identity,
ShowName nvarchar(300) not null,
constraint PK_Shows
primary key (ShowID)
)
go
create table ArchiveAlbums
(
ArchiveAlbumID int identity,
Identifier nvarchar(200) not null,
ContentCreatorID int,
Description nvarchar(500),
DatePublished datetime2 not null,
YearNumber int not null,
MonthNumber int not null,
constraint PK_ArchiveAlbums
primary key (ArchiveAlbumID),
constraint FK_ArchiveAlbums_ContentCreators_ContentCreatorID
foreign key (ContentCreatorID) references ContentCreators
)
go
create index IX_ArchiveAlbums_ContentCreatorID
on ArchiveAlbums (ContentCreatorID)
go
create table Guests
(
FirstName nvarchar(30) not null,
MiddleName nvarchar(30),
LastName nvarchar(30),
GenderID int,
AlternateName nvarchar(200),
GuestID int identity,
LegacyGuestID int,
Description nvarchar(400),
TwitterHandle nvarchar(200),
WebsiteUrl nvarchar(400),
HeadshotImagePath nvarchar(400),
constraint PK_Guests
primary key (GuestID),
constraint FK_Guests_Genders_GenderID
foreign key (GenderID) references Genders
)
go
create index IX_Guests_GenderID
on Guests (GenderID)
go
create table Hosts
(
FirstName nvarchar(max),
MiddleName nvarchar(max),
LastName nvarchar(max),
GenderID int,
AlternateName nvarchar(200),
HostID int identity,
Description nvarchar(400),
TwitterHandle nvarchar(200),
WebsiteUrl nvarchar(400),
HeadshotImagePath nvarchar(400),
constraint PK_Hosts
primary key (HostID),
constraint FK_Hosts_Genders_GenderID
foreign key (GenderID) references Genders
)
go
create index IX_Hosts_GenderID
on Hosts (GenderID)
go
create table ShowMediaEntries
(
ShowMediaEntryID int identity,
ShowID int,
AirDate datetime2 not null,
Title nvarchar(400) not null,
EmbeddedContentSourceUrl nvarchar(1000),
EmbeddedContentSourceID int,
constraint PK_ShowMediaEntries
primary key (ShowMediaEntryID),
constraint FK_ShowMediaEntries_Shows_ShowID
foreign key (ShowID) references Shows,
constraint FK_ShowMediaEntries_EmbeddedContentSources_EmbeddedContentSourceID
foreign key (EmbeddedContentSourceID) references EmbeddedContentSources
)
go
create index IX_ShowMediaEntries_EmbeddedContentSourceID
on ShowMediaEntries (EmbeddedContentSourceID)
go
create index IX_ShowMediaEntries_ShowID
on ShowMediaEntries (ShowID)
go
create unique index UIX_ShowMediaEntry_Title
on ShowMediaEntries (Title)
go
create table ShowHosts
(
ShowHostID int identity,
ShowID int not null,
HostID int not null,
constraint PK_ShowHosts
primary key (ShowID, HostID),
constraint FK_ShowHosts_Shows_ShowID
foreign key (ShowID) references Shows
on delete cascade,
constraint FK_ShowHosts_Hosts_HostID
foreign key (HostID) references Hosts
on delete cascade
)
go
create index IX_ShowHosts_HostID
on ShowHosts (HostID)
go
create table ShowMediaSegmentContentTags
(
ShowMediaContentTagID int identity,
ShowMediaEntryID int,
SegmentTimeStart bigint,
SegmentTimeEnd bigint,
constraint PK_ShowMediaSegmentContentTags
primary key (ShowMediaContentTagID),
constraint FK_ShowMediaSegmentContentTags_ShowMediaEntries_ShowMediaEntryID
foreign key (ShowMediaEntryID) references ShowMediaEntries
)
go
create index IX_ShowMediaSegmentContentTags_ShowMediaEntryID
on ShowMediaSegmentContentTags (ShowMediaEntryID)
go
create table ArchiveFiles
(
ArchiveFileID int identity,
FileName nvarchar(200) not null,
ArchiveFileTypeInfoID int,
ShowID int,
ArchiveAlbumID int,
ShowRundownID int,
Identifier nvarchar(200) not null,
FilePathUrl nvarchar(500) not null,
AirDate datetime2 not null,
Title nvarchar(500) not null,
LastModifiedDate datetime2,
ApproximateBytes float not null,
constraint PK_ArchiveFiles
primary key (ArchiveFileID),
constraint FK_ArchiveFiles_ArchiveFileTypeInfos_ArchiveFileTypeInfoID
foreign key (ArchiveFileTypeInfoID) references ArchiveFileTypeInfos,
constraint FK_ArchiveFiles_Shows_ShowID
foreign key (ShowID) references Shows,
constraint FK_ArchiveFiles_ArchiveAlbums_ArchiveAlbumID
foreign key (ArchiveAlbumID) references ArchiveAlbums
)
go
create index IX_ArchiveFiles_ArchiveAlbumID
on ArchiveFiles (ArchiveAlbumID)
go
create index IX_ArchiveFiles_ArchiveFileTypeInfoID
on ArchiveFiles (ArchiveFileTypeInfoID)
go
create index IX_ArchiveFiles_ShowID
on ArchiveFiles (ShowID)
go
create index IX_ArchiveFiles_ShowRundownID
on ArchiveFiles (ShowRundownID)
go
create table ShowRundowns
(
ShowRundownID int identity,
ShowRundownName nvarchar(200) not null,
ShowRundownContent nvarchar(500),
ArchiveFileID int,
ShowRundownAuthorID int,
AirDate datetime2 not null,
DetailsUrl nvarchar(max) not null,
constraint PK_ShowRundowns
primary key (ShowRundownID),
constraint FK_ShowRundowns_ArchiveFiles_ArchiveFileID
foreign key (ArchiveFileID) references ArchiveFiles,
constraint FK_ShowRundowns_ShowRundownAuthors_ShowRundownAuthorID
foreign key (ShowRundownAuthorID) references ShowRundownAuthors
)
go
alter table ArchiveFiles
add constraint FK_ArchiveFiles_ShowRundowns_ShowRundownID
foreign key (ShowRundownID) references ShowRundowns
go
create index IX_ShowRundowns_ArchiveFileID
on ShowRundowns (ArchiveFileID)
go
create index IX_ShowRundowns_ShowRundownAuthorID
on ShowRundowns (ShowRundownAuthorID)
go
create table GuestAppearances
(
GuestAppearanceID int identity,
GuestID int,
ShowMediaEntryID int,
SegmentTimeStart bigint,
SegmentTimeEnd bigint,
ArchiveFileID int,
ShowRundownID int,
constraint PK_GuestAppearances
primary key (GuestAppearanceID),
constraint FK_GuestAppearances_Guests_GuestID
foreign key (GuestID) references Guests,
constraint FK_GuestAppearances_ShowMediaEntries_ShowMediaEntryID
foreign key (ShowMediaEntryID) references ShowMediaEntries,
constraint FK_GuestAppearances_ArchiveFiles_ArchiveFileID
foreign key (ArchiveFileID) references ArchiveFiles,
constraint FK_GuestAppearances_ShowRundowns_ShowRundownID
foreign key (ShowRundownID) references ShowRundowns
)
go
create index IX_GuestAppearances_ArchiveFileID
on GuestAppearances (ArchiveFileID)
go
create index IX_GuestAppearances_GuestID
on GuestAppearances (GuestID)
go
create index IX_GuestAppearances_ShowMediaEntryID
on GuestAppearances (ShowMediaEntryID)
go
create index IX_GuestAppearances_ShowRundownID
on GuestAppearances (ShowRundownID)
go
create table [__EFMigrationsHistory]
(
MigrationId nvarchar(150) not null,
ProductVersion nvarchar(32) not null,
constraint PK___EFMigrationsHistory
primary key (MigrationId)
)
go
|
CREATE TABLE [dbo].[Commitment](
[Id] [bigint] NOT NULL,
[ProgrammeType] [int] NULL,
[StandardCode] [bigint] NULL,
[FrameworkCode] [int] NULL,
[PathwayCode] [int] NULL,
[Ukprn] [bigint] NULL,
[LearnerReferenceNumber] [varchar](50) NULL,
[TransferSenderAccountId] [bigint] NULL,
[EmployerAccountId] [bigint] NULL,
[PaymentStatus] [int] NULL,
[NegotiatedPrice] [bigint] NULL,
[StartDate] [datetime] NULL,
[EndDate] [datetime] NULL,
[EffectiveFrom] [datetime] NULL,
[EffectiveTo] [datetime] NULL,
[Uln] [bigint] NULL,
CONSTRAINT [PK_Commitment] PRIMARY KEY CLUSTERED
(
[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE INDEX [IX_Commitment_Ukprn_LearnerReferenceNumber] ON [dbo].[Commitment] ([Ukprn], [LearnerReferenceNumber])
|
-- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 28, 2021 at 08:16 PM
-- Server version: 10.4.19-MariaDB
-- PHP Version: 8.0.6
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: `tokaku`
--
-- --------------------------------------------------------
--
-- Table structure for table `baju`
--
CREATE TABLE `baju` (
`idbaju` bigint(20) UNSIGNED NOT NULL,
`gambar` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`kodebaju` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`harga` bigint(20) NOT NULL,
`stok` int(11) NOT NULL,
`deskripsi` 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 `baju`
--
INSERT INTO `baju` (`idbaju`, `gambar`, `kodebaju`, `nama`, `harga`, `stok`, `deskripsi`, `created_at`, `updated_at`) VALUES
(10, '1624896297_baju1.jpg', 'KB0402', 'White Nike Shirt', 59000, 13, 'Kaos ini cocok digunakan saat panas, karena menyerap keringat.', NULL, NULL),
(19, '1624896696_baju2.jpg', 'KB0354', 'White Shirt Comfort', 20000, 19, 'Kaos ini cocok digunakan saat panas, karena menyerap keringat', NULL, NULL),
(20, '1624896727_baju3.jpg', 'KB0130', 'Black Shirt', 59000, 5, 'Kaos ini cocok digunakan saat panas, karena menyerap keringat', NULL, NULL),
(21, '1624896748_baju4.jpg', 'KB0941', 'Enjoy Way', 15000, 15, 'Kaos ini cocok digunakan saat panas, karena menyerap keringat', NULL, NULL),
(22, '1624896781_baju5.jpg', 'KB0562', 'Pink Boy Shirt', 35000, 8, 'Kaos ini cocok digunakan saat panas, karena menyerap keringat', NULL, NULL),
(23, '1624896810_baju9.jpeg', 'KB0668', 'Awake Up', 19000, 11, 'Kaos ini cocok digunakan saat panas, karena menyerap keringat', NULL, NULL);
-- --------------------------------------------------------
--
-- Table structure for table `cart`
--
CREATE TABLE `cart` (
`cartid` bigint(20) UNSIGNED NOT NULL,
`userid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`kodebaju` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`jumlah` int(11) NOT NULL,
`biaya` bigint(20) 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 `checkout`
--
CREATE TABLE `checkout` (
`id` bigint(20) UNSIGNED NOT NULL,
`userid` int(11) NOT NULL,
`kodepembayaran` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`bukti` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`status` 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 `checkout`
--
INSERT INTO `checkout` (`id`, `userid`, `kodepembayaran`, `bukti`, `status`, `created_at`, `updated_at`) VALUES
(1, 1, 'KP0648', '1624836454_buktipembayaran.jpg', 'belum disetujui', '2021-06-27 16:27:34', '2021-06-27 16:27:34'),
(2, 1, 'KP0388', '1624837707_buktipembayaran.jpg', 'belum disetujui', '2021-06-27 16:48:27', '2021-06-27 16:48:27'),
(3, 1, 'KP0535', '1624847762_buktipembayaran.jpg', 'belum disetujui', '2021-06-27 19:36:02', '2021-06-27 19:36:02'),
(4, 1, 'KP0839', '1624848298_buktipembayaran.jpg', 'belum disetujui', '2021-06-27 19:44:58', '2021-06-27 19:44:58'),
(5, 1, 'PC0476', '1624849027_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(6, 1, 'PC0857', '1624849072_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(7, 1, 'PC0641', '1624849097_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(8, 1, 'PC0494', '1624849117_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(9, 1, 'PC0976', '1624849141_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(10, 1, 'PC0239', '1624897639_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(11, 1, 'PC0311', '1624897751_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(12, 1, 'PC0231', '1624898580_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(13, 1, 'PC0090', '1624898722_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(14, 1, 'PC0196', '1624899259_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(15, 1, 'PC0078', '1624899289_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(16, 1, 'PC0595', '1624899460_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(17, 1, 'PC0895', '1624899475_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(18, 1, 'PC0208', '1624899560_buktipembayaran.jpg', 'belum valid', NULL, NULL),
(19, 2, 'PC0134', '1624900913_buktipembayaran.jpg', 'belum valid', NULL, NULL);
-- --------------------------------------------------------
--
-- 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 `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
(2, '2014_10_12_100000_create_password_resets_table', 1),
(3, '2019_08_19_000000_create_failed_jobs_table', 1),
(4, '2021_06_26_123729_baju', 1),
(7, '2014_10_12_000000_create_users_table', 2),
(9, '2021_06_27_221140_cart', 3),
(10, '2021_06_27_231131_checkout', 4),
(11, '2021_06_27_231746_transaksi', 5);
-- --------------------------------------------------------
--
-- 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 `transaksi`
--
CREATE TABLE `transaksi` (
`id` bigint(20) UNSIGNED NOT NULL,
`userid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`kodepembayaran` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`kodebaju` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`jumlah` int(11) NOT NULL,
`biaya` bigint(20) NOT NULL,
`status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`tanggal` date 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 `transaksi`
--
INSERT INTO `transaksi` (`id`, `userid`, `kodepembayaran`, `kodebaju`, `jumlah`, `biaya`, `status`, `tanggal`, `created_at`, `updated_at`) VALUES
(5, '2', 'PC0134', 'KB0130', 3, 177000, 'sudah dikirim', '2021-06-28', '2021-06-28 10:21:53', '2021-06-28 10:38:26'),
(6, '2', 'PC0134', 'KB0668', 3, 57000, 'sudah dikirim', '2021-07-28', '2021-06-28 10:21:53', '2021-06-28 10:38:26');
-- --------------------------------------------------------
--
-- Table structure for table `users`
--
CREATE TABLE `users` (
`id` bigint(20) UNSIGNED NOT NULL,
`nama` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`level` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`alamat` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`email_verified_at` timestamp NULL DEFAULT NULL,
`password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
`remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`created_at` timestamp NULL DEFAULT NULL,
`updated_at` timestamp NULL DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `nama`, `level`, `alamat`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES
(1, '<NAME>', '<PASSWORD>', '<PASSWORD>', '<EMAIL>', NULL, '$2y$10$ELwuudCm0D8Mgr7Yj0sDVOcIA1nEz2PKd.P7Wc1VJ0JY2ktfx0/Ce', NULL, '2021-06-28 09:16:04', '2021-06-28 09:16:04'),
(2, '<NAME>', 'costumer', 'Rumah 2', '<EMAIL>', NULL, '$2y$10$3mpOYwhUOCeJsKjRspH/Xe99A5psUaqGdwq6jwxaOIQvI2SX9LbXm', NULL, '2021-06-28 09:18:39', '2021-06-28 09:18:39'),
(3, '<NAME>', '<PASSWORD>', '<PASSWORD>', '<EMAIL>', NULL, '$2y$10$eNXv77Dg.OjYWxYOGsIGsedWwUYciEh3ggk/nMzhAwRsQVHq7w5UG', NULL, '2021-06-28 09:19:04', '2021-06-28 09:19:04'),
(4, 'admin', 'admin', '<PASSWORD>ah admin', '<EMAIL>', NULL, '$2y$10$ixShk6KBkC58K86ojUPf9OPUuD4ZEHYA5kquMpEEJ.MQ2ktLTHG2i', NULL, '2021-06-28 09:22:21', '2021-06-28 09:22:21');
--
-- Indexes for dumped tables
--
--
-- Indexes for table `baju`
--
ALTER TABLE `baju`
ADD PRIMARY KEY (`idbaju`);
--
-- Indexes for table `cart`
--
ALTER TABLE `cart`
ADD PRIMARY KEY (`cartid`);
--
-- Indexes for table `checkout`
--
ALTER TABLE `checkout`
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 `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 `transaksi`
--
ALTER TABLE `transaksi`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`),
ADD UNIQUE KEY `users_email_unique` (`email`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `baju`
--
ALTER TABLE `baju`
MODIFY `idbaju` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=25;
--
-- AUTO_INCREMENT for table `cart`
--
ALTER TABLE `cart`
MODIFY `cartid` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17;
--
-- AUTO_INCREMENT for table `checkout`
--
ALTER TABLE `checkout`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20;
--
-- 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=12;
--
-- AUTO_INCREMENT for table `transaksi`
--
ALTER TABLE `transaksi`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5;
COMMIT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
<gh_stars>0
CREATE PROCEDURE MenuOfTheDay @date SMALLDATETIME = NULL
AS
IF (@date = NULL)
BEGIN
SET @date = GETDATE()
END
SELECT D.itemId, D.categoryId, D.itemName,
D.itemPrice, D.servingSize, D.itemPhoto,
D.description
FROM dbo.Dishes AS D
INNER JOIN dbo.MenuDetails AS MD
ON D.itemId = MD.itemId
INNER JOIN dbo.Menus AS M
ON MD.menuId = M.menuId
WHERE @date BETWEEN M.inDate AND M.outDate
CREATE PROCEDURE InsertToMenu
@menuId INT,
@itemId INT
AS
BEGIN
IF (NOT EXISTS(SELECT * FROM Menus WHERE @menuId = menuId))
BEGIN
RAISERROR ('No such menuId', -1, -1)
RETURN
END
IF (NOT EXISTS(SELECT * FROM Dishes WHERE @itemId = itemId))
BEGIN
RAISERROR ('No such itemId', -1, -1)
RETURN
END
INSERT INTO MenuDetails(menuId, itemId)
VALUES (@menuId, @itemId)
END
CREATE PROCEDURE ValidateMenu @menuId INT
AS
BEGIN
IF (NOT EXISTS(SELECT menuId FROM Menus WHERE menuId = @menuId))
BEGIN
RAISERROR ('No such menuId', -1, -1)
RETURN
END
IF (2 * (SELECT COUNT(*) FROM DishesFromLastWeeks) < (SELECT COUNT(*) – tu jest błąd
FROM MenuDetails
WHERE menuId = @menuId))
BEGIN
UPDATE Menus SET isValid = 1 WHERE menuId = @menuId
END
ELSE
BEGIN
RAISERROR ('Menu is not valid', -1, -1)
END
END
CREATE PROCEDURE CreateMenu @inDate SMALLDATETIME,
@outDate SMALLDATETIME
AS
BEGIN
IF (DATEDIFF(DAY, @inDate, @outDate) > 14 OR DATEDIFF(DAY, @inDate, @outDate) < 0)
BEGIN
RAISERROR ('Wrong outDate or inDate', -1, -1)
RETURN
END
INSERT INTO Menus(inDate, outDate)
VALUES (@inDate, @outDate)
END
CREATE PROCEDURE AddNewOrder @custemerId INT,
@employeeId INT,
@orderDate SMALLDATETIME,
@receiveDate SMALLDATETIME,
@isPaid BIT,
@takeOut BIT,
@discountType VARCHAR(20)
AS
BEGIN
IF (@discountType NOT LIKE 'lifetime' OR @discountType NOT LIKE 'temporary')
BEGIN
RAISERROR ('No such discount type', -1, -1)
RETURN
END
IF (@orderDate > @receiveDate)
BEGIN
RAISERROR ('Wrong orderDate or receiveDate', -1, -1)
RETURN
END
IF (NOT EXISTS(SELECT customerId FROM Customers WHERE customerId = @custemerId))
BEGIN
RAISERROR ('No such customerId', -1, -1)
RETURN
END
IF (NOT EXISTS(SELECT employeeId FROM Employees WHERE employeeId = @employeeId))
BEGIN
RAISERROR ('No such employeeId', -1, -1)
RETURN
END
IF (NOT EXISTS(SELECT discountId
FROM Discounts
WHERE customerId = @custemerId
AND discountType = @discountType
AND (wasUsed = NULL OR wasUsed = 0)))
BEGIN
RAISERROR ('Customer does not have such discount', -1, -1)
RETURN
END
DECLARE @discount DECIMAL(3, 2)
IF (@discountType LIKE 'lifetime')
BEGIN
SET @discount = (SELECT R1 FROM Factors)
END
ELSE
BEGIN TRANSACTION [Tran1]
BEGIN TRY
BEGIN
DECLARE @discountId INT;
SET @discountId = (SELECT TOP 1 discountId
FROM Discounts
WHERE customerId = @custemerId
AND discountType = @discountType
AND wasUsed = 0
AND DATEDIFF(DAY, startDate, GETDATE()) < (SELECT D1 FROM Factors))
UPDATE Discounts SET wasUsed = 1 WHERE @discountId = discountId
SET @discount = (SELECT R2 FROM Factors)
END
INSERT INTO Orders(customerId, employeeId, orderDate, receiveDate, isPaid, takeOut, discount)
VALUES (@custemerId, @employeeId, @orderDate, @receiveDate, @isPaid, @takeOut, @discount)
COMMIT TRANSACTION [Tran1]
END TRY
BEGIN CATCH
ROLLBACK TRANSACTION [Tran1]
END CATCH
END
CREATE PROCEDURE InsertIntoOrder @orderId INT,
@itemId INT,
@quantity INT
AS
BEGIN
IF (NOT EXISTS(SELECT orderId FROM Orders WHERE orderId = @orderId))
BEGIN
RAISERROR ('No such orderId', -1, -1)
RETURN
END
IF (NOT EXISTS(SELECT itemId FROM Dishes WHERE itemId = @itemId AND isActive = 1))
BEGIN
RAISERROR ('No such itemId or dish is not active', -1, -1)
RETURN
END
DECLARE @itemPrice INT
SET @itemPrice = (SELECT itemPrice
FROM Dishes
WHERE itemId = @itemId)
INSERT INTO OrderDetails(orderId, itemId, itemPrice, quantity)
VALUES (@orderId, @itemId, @itemPrice, @quantity)
END
CREATE PROCEDURE AddReservation @orderId INT,
@reservationDoneDate INT,
@reservationDate INT,
@numberOfGuests INT
AS
BEGIN
IF (NOT EXISTS (SELECT orderId FROM Orders WHERE orderId = @orderId))
BEGIN
RAISERROR ('No such orderId', -1, -1)
RETURN
END
IF (EXISTS (SELECT * FROM Orders WHERE orderId = @orderId AND isPaid = 1))
BEGIN
INSERT INTO Reservations(orderId, reservationDoneDate, reservationDate, numberOfGuests)
VALUES (@orderId, @reservationDoneDate, @reservationDate, @numberOfGuests)
END
ELSE
BEGIN
DECLARE @customerId INT
SET @customerId = (SELECT customerId from Orders where orderId = @orderId)
IF ((SELECT COUNT(*)
FROM Orders AS O
INNER JOIN OrderDetails AS OD
ON O.orderId = OD.orderID
WHERE O.customerId = @customerId
HAVING SUM((1 - O.discount) * OD.itemPrice * OD.quantity) > (SELECT WZ FROM Factors)) > (SELECT WK FROM Factors))
BEGIN
INSERT INTO Reservations(orderId, reservationDoneDate, reservationDate, numberOfGuests)
VALUES (@orderId, @reservationDoneDate, @reservationDate, @numberOfGuests)
END
ELSE
BEGIN
RAISERROR ('Client does not meet the requirements for reservation', -1, -1)
RETURN
END
END
END
CREATE PROCEDURE AddReservationDetails @reservationId INT,
@tableId INT,
@hourTimespan INT
AS
BEGIN
IF (NOT EXISTS(SELECT reservationId FROM Reservations WHERE reservationId = @reservationId))
BEGIN
RAISERROR ('No such reservationId', -1, -1)
RETURN
END
IF (NOT EXISTS(SELECT tableId FROM Tables WHERE tableId = @tableId))
BEGIN
RAISERROR ('No such tableId', -1, -1)
RETURN
END
DECLARE @reservationDate SMALLDATETIME
SET @reservationDate = (SELECT reservationDate FROM Reservations WHERE @reservationId =
reservationId)
IF (EXISTS(SELECT *
FROM Reservations AS R
INNER JOIN ReservationDetails AS RS ON RS.reservationId = R.reservationId
WHERE @tableId = tableId
AND DATEDIFF(HOUR, R.reservationDate, @reservationDate) < (@hourTimespan)))
BEGIN
RAISERROR ('Table occupied', -1, -1)
RETURN
END
INSERT INTO ReservationDetails(reservationId, tableId)
VALUES (@reservationId, @tableId)
END
CREATE PROCEDURE CreateInvoice @invoiceNumber INT,
@invoiceDate SMALLDATETIME,
@customerId INT,
@orderId INT
AS
BEGIN
IF (@invoiceDate > GETDATE())
BEGIN
RAISERROR ('Wrong date', -1, -1)
RETURN
END
IF (NOT EXISTS (SELECT customerId FROM Customers WHERE customerId = @customerId))
BEGIN
RAISERROR ('No such customerId', -1, -1)
RETURN
END
IF (NOT EXISTS (SELECT orderId FROM Orders WHERE orderId = @orderId))
BEGIN
RAISERROR ('No such orderId', -1, -1)
RETURN
END
DECLARE @address VARCHAR(100)
SET @address = (SELECT address FROM Customers WHERE customerId = @customerId)
DECLARE @city VARCHAR(100)
SET @city = (SELECT city FROM Customers WHERE customerId = @customerId)
DECLARE @postalCode VARCHAR(10)
SET @postalCode = (SELECT postalCode FROM Customers WHERE customerId = @customerId)
BEGIN TRANSACTION Tran2
BEGIN TRY
INSERT INTO Invoices(invoiceNumber, invoiceDate, customerId, address, city, postalCode)
VALUES(@invoiceNumber, @invoiceDate, @customerId, @address, @city, @postalCode)
DECLARE @biggestIndex INT
SET @biggestIndex = (SELECT TOP 1 invoiceId FROM Invoices ORDER BY invoiceId DESC) + 1
UPDATE Orders SET invoiceId = @biggestIndex WHERE orderId = @orderId
COMMIT TRANSACTION Tran2
END TRY
BEGIN CATCH
ROLLBACK TRANSACTION Tran2
END CATCH
END
CREATE PROCEDURE CreatePeriodicInvoice @invoiceNumber INT,
@invoiceDate SMALLDATETIME,
@customerId INT,
@month INT,
@year INT
AS
BEGIN
IF (@invoiceDate > GETDATE())
BEGIN
RAISERROR ('Wrong date', -1, -1)
RETURN
END
IF (NOT EXISTS (SELECT customerId FROM Customers WHERE customerId = @customerId))
BEGIN
RAISERROR ('No such customerId', -1, -1)
RETURN
END
DECLARE @address VARCHAR(100)
SET @address = (SELECT address FROM Customers WHERE customerId = @customerId)
DECLARE @city VARCHAR(100)
SET @city = (SELECT city FROM Customers WHERE customerId = @customerId)
DECLARE @postalCode VARCHAR(10)
SET @postalCode = (SELECT postalCode FROM Customers WHERE customerId = @customerId)
INSERT INTO Invoices(invoiceNumber, invoiceDate, customerId, address, city, postalCode)
VALUES(@invoiceNumber, @invoiceDate, @customerId, @address, @city, @postalCode)
DECLARE @biggestIndex INT
SET @biggestIndex = (SELECT TOP 1 invoiceId FROM Invoices ORDER BY invoiceId DESC) + 1
UPDATE Orders SET invoiceId = @biggestIndex WHERE invoiceId = NULL AND customerId = @customerId AND MONTH(orderDate) = @month AND YEAR(orderDate) = @year
BEGIN TRANSACTION Tran2
BEGIN TRY
INSERT INTO Invoices(invoiceNumber, invoiceDate, customerId, address, city, postalCode)
VALUES(@invoiceNumber, @invoiceDate, @customerId, @address, @city, @postalCode)
DECLARE @biggestIndex2 INT
SET @biggestIndex2 = (SELECT TOP 1 invoiceId FROM Invoices ORDER BY invoiceId DESC) + 1
UPDATE Orders SET invoiceId = @biggestIndex WHERE invoiceId = NULL
AND customerId = @customerId
AND MONTH(orderDate) = @month
AND YEAR(orderDate) = @year
COMMIT TRANSACTION Tran2
END TRY
BEGIN CATCH
ROLLBACK TRANSACTION Tran2
END CATCH
END
CREATE PROCEDURE ShowFreeTablesAt(@datetime AS smalldatetime, @timespan AS int)
AS
BEGIN
SELECT T.tableId
FROM Tables AS T
WHERE T.isActive = 1 AND T.tableId NOT IN (
SELECT T1.tableId
FROM Tables AS T1
INNER JOIN ReservationDetails AS RD
ON T1.tableId = RD.tableId
INNER JOIN Reservations AS R
ON RD.reservationId = R.reservationId
WHERE @datetime >= R.reservationDate AND @datetime <= DATEADD(MINUTE, @timespan, R.reservationDate))
END
CREATE PROCEDURE QualifiesForLifetimeDiscount(@customerId AS int)
AS
BEGIN
DECLARE @orderCount INT
SET @orderCount = (SELECT COUNT(*) FROM (
SELECT SUM(OD.itemPrice * OD.quantity * (1-O.discount)) AS totalPrice
FROM OrderDetails AS OD
INNER JOIN Orders AS O
ON O.orderId = OD.orderId AND O.customerId = @customerId
GROUP BY O.OrderId
HAVING SUM(OD.itemPrice * OD.quantity * (1-O.discount)) >= (SELECT K1 FROM Factors)) AS A)
IF(@orderCount >= (SELECT Z1 FROM Factors)
AND NOT EXISTS (
SELECT D.discountId FROM Discounts AS D
WHERE D.customerId = @customerId AND D.discountType = 'lifetime'
))
BEGIN
INSERT INTO Discounts values(@customerId, 'lifetime', GETDATE(), NULL)
END
END
CREATE PROCEDURE QualifiesForTemporaryDiscount(@customerId AS int)
AS
BEGIN
DECLARE @lastTemporaryDiscount SMALLDATETIME
SET @lastTemporaryDiscount = (
SELECT MAX(D.startDate)
FROM Discounts AS D
WHERE D.customerId = @customerId AND D.discountType = 'temporary'
)
DECLARE @totalCost MONEY
SET @totalCost = (
SELECT SUM(OD.itemPrice * OD.quantity * (1-O.discount)) AS totalPrice
FROM OrderDetails AS OD
INNER JOIN Orders AS O
ON O.orderId = OD.orderId AND O.customerId = @customerId
WHERE O.orderDate > @lastTemporaryDiscount
GROUP BY O.OrderId
)
IF(@totalCost IS NULL OR @totalCost >= (SELECT K2 FROM Factors))
BEGIN
INSERT INTO Discounts values(@customerId, 'temporary', GETDATE(), 1)
END
END
CREATE PROCEDURE setOrderPaid(
@orderId INT)
AS
BEGIN
DECLARE @checkIsPaid BIT
SET @checkIsPaid = (SELECT isPaid FROM Orders O WHERE O.orderId = @orderId)
IF (@checkIsPaid = 0)
BEGIN
DECLARE @paid BIT
SET @paid = 1
UPDATE Orders
SET isPaid = @paid
END
ELSE
BEGIN
RAISERROR ('Order is already paid.', -1, -1)
END
END
CREATE PROCEDURE CancelOrder(@orderId AS int)
AS
BEGIN
IF (NOT EXISTS (SELECT orderId FROM Orders WHERE orderId = @orderId))
BEGIN
RAISERROR ('Order does not exists', -1, -1)
RETURN
END
IF ( NOT ((SELECT O.receiveDate FROM Orders AS O WHERE O.orderId = @orderId) < GETDATE()))
BEGIN
RAISERROR ('Order already completed', -1, -1)
RETURN
END
DELETE FROM Orders
WHERE Orders.orderId = @orderId
DELETE FROM OrderDetails
WHERE OrderDetails.orderId = @orderId
END
CREATE PROCEDURE CancelReservation(@reservationId AS int)
AS
BEGIN
IF (NOT EXISTS (SELECT reservationId FROM Reservations WHERE reservationId = @reservationId))
BEGIN
RAISERROR ('Reservation does not exists', -1, -1)
RETURN
END
IF ( NOT ((SELECT O.receiveDate FROM Orders AS O WHERE O.orderId = @reservationId) < GETDATE()))
BEGIN
RAISERROR ('Reservation already completed', -1, -1)
RETURN
END
DECLARE @orderId AS int
SET @orderId = (SELECT R.orderId FROM Reservations AS R WHERE R.reservationId = @reservationId)
EXEC CancelOrder @orderId
DELETE FROM Reservations
WHERE Reservations.reservationId = @reservationId
DELETE FROM ReservationDetails
WHERE ReservationDetails.reservationId = @reservationId
END
CREATE PROCEDURE ChangeFactors(
@WZ INT, @WK INT, @Z1 INT, @K1 INT, @R1 DECIMAL(3, 2), @K2 INT, @R2 DECIMAL(3, 2), @D1 INT)
AS
BEGIN
UPDATE Factors
SET WZ = @WZ
UPDATE Factors
SET WK = @WK
UPDATE Factors
SET Z1 = @Z1
UPDATE Factors
SET K1 = @K1
IF (@R1 BETWEEN 0.00 AND 1.00)
BEGIN
UPDATE Factors
SET R1 = @R1
END
ELSE
BEGIN
RAISERROR ('R1 factor is not between 0.00 and 1.00.', -1, -1)
END
UPDATE Factors
SET K2 = @K2
IF (@R2 BETWEEN 0.00 AND 1.00)
BEGIN
UPDATE Factors
SET R2 = @R2
END
ELSE
BEGIN
RAISERROR ('R2 factor is not between 0.00 and 1.00.', -1, -1)
END
UPDATE Factors
SET D1 = @D1
END
CREATE PROCEDURE ChangeCustomer(
@customerId INT,
@firstName VARCHAR(100),
@lastName VARCHAR(100),
@companyName VARCHAR(100) = NULL,
@phone VARCHAR(15),
@address VARCHAR(100) = NULL,
@city VARCHAR(100) = NULL,
@postalCode VARCHAR(100) = NULL,
@email VARCHAR(100) = NULL,
@takesPeriodicInvoice BIT)
AS
BEGIN
IF (NOT EXISTS(SELECT customerId FROM Customers WHERE customerId = @customerId))
BEGIN
RAISERROR ('No customer with such id', -1, -1)
END
ELSE
BEGIN
BEGIN TRANSACTION Tran2
BEGIN TRY
UPDATE Customers
SET firstName = @firstName,
lastName = @lastName,
companyName = @companyName,
phone = @phone,
address = @address,
city = @city,
postalCode = @postalCode
WHERE customerId = @customerId
IF (@email IS NULL OR @email LIKE '%_@%_.%_')
BEGIN
UPDATE Customers
SET email = @email
WHERE customerId = @customerId
END
ELSE
BEGIN
RAISERROR ('Email is not in email format.', -1, -1)
END
UPDATE Customers
SET takesPeriodicInvoice = @takesPeriodicInvoice
WHERE customerId = @customerId
COMMIT TRANSACTION Tran2
END TRY
BEGIN CATCH
ROLLBACK TRANSACTION Tran2
END CATCH
END
END
CREATE PROCEDURE ChangeEmployees(
@employeeId INT,
@firstName VARCHAR(100),
@lastName VARCHAR(100),
@birthDate SMALLDATETIME,
@hireDate SMALLDATETIME,
@position VARCHAR(100),
@phone VARCHAR(15),
@address VARCHAR(100),
@city VARCHAR(100),
@postalCode VARCHAR(10),
@reportsTo INT)
AS
BEGIN
IF (NOT EXISTS(SELECT @employeeId FROM Employees WHERE employeeId = @employeeId))
BEGIN
RAISERROR ('No employee with such id', -1, -1)
END
ELSE
BEGIN
BEGIN TRANSACTION Tran2
BEGIN TRY
UPDATE Employees
SET firstName = @firstName,
lastName = @lastName,
position = @position,
phone = @phone,
address = @address,
city = @city,
postalCode = @postalCode,
reportsTo = @reportsTo
WHERE @employeeId = employeeId
IF (@birthDate <= GETDATE())
BEGIN
UPDATE Employees
SET birthDate = @birthDate
WHERE @employeeId = employeeId
END
ELSE
BEGIN
RAISERROR ('Hire date is not before current date.', -1, -1)
END
IF (@hireDate <= GETDATE())
BEGIN
UPDATE Employees
SET hireDate = @hireDate
WHERE @employeeId = employeeId
END
ELSE
BEGIN
RAISERROR ('Hire date is not before current date.', -1, -1)
END
COMMIT TRANSACTION Tran2
END TRY
BEGIN CATCH
ROLLBACK TRANSACTION Tran2
END CATCH
END
END |
create procedure SaveCardOrder(@card_id int, @order int)
as
begin
update [card] set [order] = @order where id = @card_id
end |
ALTER TABLE sunbird.user ADD alltncaccepted map<text,text>;
ALTER TABLE sunbird_groups.group_member ADD visited boolean; |
-- AlterTable
ALTER TABLE "Image" ADD COLUMN "password" TEXT;
|
<filename>RMQWonderwareAdapter/SQL/PLC_TAG_LOOKUP_PLC_IP-proc.sql<gh_stars>1-10
USE [OmmcMes]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
alter proc [dbo].[PLC_TAG_LOOKUP_PLC_IP] (
@WW_ITEM_NAME varchar(100) = 'DDESuite_CLX02.MTqStopper02.TQ2_2130'
) as begin
SET NOCOUNT ON;
SELECT isnull(PLC_IP, '') PLC_IP
,isnull(TAG_ID, '') TAG_ID
,isnull(WW_ITEM_NAME, '') WW_ITEM_NAME
,isnull([DESCRIPTION], '') [DESCRIPTION]
FROM [OmmcMes].[dbo].[MST_PLC_TAGS]
where WW_ITEM_NAME=@WW_ITEM_NAME
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.