sql
stringlengths
6
1.05M
-- // DISTX-516 OptimizePeriscopeDBColumns -- Migration SQL that makes the change goes here. -- Legacy periscope cluster data might have duplicate clusterpertains and uninitialized fields delete from failed_node; delete from history_properties; delete from history; delete from prometheusalert; delete from loadalert; delete from timealert; delete from metricalert; delete from scalingpolicy; delete from securityconfig; delete from cluster; delete from cluster_manager; delete from clusterpertain; ALTER TABLE cluster ALTER COLUMN cb_stack_name SET NOT NULL; ALTER TABLE cluster ALTER COLUMN cb_stack_type SET NOT NULL; ALTER TABLE cluster ALTER COLUMN cloud_platform SET NOT NULL; ALTER TABLE clusterpertain ALTER COLUMN usercrn SET NOT NULL; CREATE INDEX IF NOT EXISTS idx_cluster_cb_stack_name ON cluster (cb_stack_name); CREATE INDEX IF NOT EXISTS idx_clusterpertain_tenant ON clusterpertain (tenant); CREATE INDEX IF NOT EXISTS idx_clusterpertain_usercrn ON clusterpertain (usercrn); -- //@UNDO -- SQL to undo the change goes here. DROP INDEX IF EXISTS idx_clusterpertain_usercrn; DROP INDEX IF EXISTS idx_clusterpertain_tenant; DROP INDEX IF EXISTS idx_cluster_cb_stack_name; ALTER TABLE clusterpertain ALTER COLUMN usercrn DROP NOT NULL; ALTER TABLE cluster ALTER COLUMN cloud_platform DROP NOT NULL; ALTER TABLE cluster ALTER COLUMN cb_stack_type DROP NOT NULL; ALTER TABLE cluster ALTER COLUMN cb_stack_name DROP NOT NULL;
drop TABLE `tbl_book`; CREATE TABLE `tbl_book` ( `id` Integer NOT NULL AUTO_INCREMENT, `type` varchar(20) DEFAULT NULL, `name` varchar(50) DEFAULT NULL, `description` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=UTF8MB4; select * from tbl_book; insert into tbl_book (type,name,description) values ('社会小说','人世间','第十届茅盾文学奖获奖作品,人世间(套装共3册)雷佳音宋辛柏青宋佳佳殷桃等主演同名电视剧'); insert into tbl_book (type,name,description) values ('官场小说','沧浪之水','豆瓣8.5分,入围茅盾文学奖。职场小白、考公人的启蒙之书'); insert into tbl_book (type,name,description) values ('外国小说','百年孤独','新版典藏内封。马尔克斯代表作,惟一正式中文版,未作任何删节,发行量超800万册'); insert into tbl_book (type,name,description) values ('科幻小说','三体全集','《三体》第73届世界科幻雨果奖获奖作品,银河奖特别奖,入选教育部《中小学生阅读指导目录(2020年版)》,刘慈欣十届银河奖得主2'); insert into tbl_book (type,name,description) values ('历史小说','曾国藩','唐浩明全新修订百余处细节,首部姚雪垠长篇历史小说奖获奖作品!从晚清重臣之沉浮,看中华国运之兴衰!'); insert into tbl_book (type,name,description) values ('名著小说','四大名著','西游记+红楼梦+水浒传+三国演义(全四册 精装彩色插图珍藏本 附赠精美书签)'); insert into tbl_book (type,name,description) values ('纪实文学','苦难辉煌','金一南教授授权,无删减全新修订增补版 获“中国出版政府奖”'); insert into tbl_book (type,name,description) values ('名家作品','活着','精装版,余华代表作,易烊千玺推荐阅读 2021新版,随机赠珍藏复刻手稿'); insert into tbl_book (type,name,description) values ('外国小说','挪威的森林','村上春树的残酷青春物语,纪念《挪威的森林》问世30周年'); insert into tbl_book (type,name,description) values ('文学理论','叙事的虚构性','当代学术棱镜译丛:叙事的虚构性:有关历史、文学和理论的论文(1957-2007)'); insert into tbl_book (type,name,description) values ('文学作品','你当像鸟飞往你的山','中文版销量超200万册,比尔·盖茨年度特别推荐!登顶《纽约时报》畅销榜80+周,这本书比你听说的还要好!'); insert into tbl_book (type,name,description) values ('戏剧文学','雷雨','中小学必读,东方的莎士比亚'); insert into tbl_book (type,name,description) values ('民间文学','古希腊神话与传说','世界名著小说,高中甫德文原版直译,随书附赠古希腊神谱卡 中小学生阅读书单'); insert into tbl_book (type,name,description) values ('悬疑推理','盗墓笔记','南派三叔盗墓悬疑经典之作,畅销百万册盗墓悬疑经典之作,全9册典藏升级版震撼来袭,南北各派盗墓术语秘技大揭密,当前盗墓小说狂潮的始作俑者之一!'); insert into tbl_book (type,name,description) values ('悬疑推理','福尔摩斯探案集','青少年初中生必读小学生课外阅读书籍儿童文学读物 像名侦探一样思考学习推理'); insert into tbl_book (type,name,description) values ('悬疑推理','白夜行','东野圭吾作品无冕之·王。我一直走在白夜里,从来就没有太阳,所以不怕失去。'); insert into tbl_book (type,name,description) values ('悬疑推理','解忧杂货店','东野圭吾代表作,1000万册纪念版,写给拥有无尽梦想与烦恼的你。现代人内心流失的东西,这家杂货店能帮你找回。东野圭吾特别寄语中国读者。'); insert into tbl_book (type,name,description) values ('悬疑推理','无人生还','阿加莎·克里斯蒂 无人生还(精装纪念新版)'); insert into tbl_book (type,name,description) values ('散文随笔','遥远的救世主+背叛+天幕红尘','聪蝶 遥远的救世主+背叛+天幕红尘 豆豆三部曲 未删减版可单选 遥远的救世主+天幕红尘+背叛 全三册'); insert into tbl_book (type,name,description) values ('散文随笔','时间从来不语,却回答了所有问题','季羡林写给年轻人的生命礼物!与大师共语,品味人生百态。活得通透,过得舒心,顺逆总平常,得失在人心。人民日报倡导的生活态度!'); insert into tbl_book (type,name,description) values ('散文随笔','心安即是归处','跨四代共读心灵读本,一本书阅尽大师智慧精华!人生最好状态就是活得清醒、坦荡、真实。季羡林写给万千迷茫的青年一代!愿你历尽沧桑,永葆天真模样'); insert into tbl_book (type,name,description) values ('散文随笔','有本事','继《无所畏》后暌违三年,冯唐全新作品。44篇全新智慧之作+10幅金句书法+35幅私人摄影作品!一个人有本事才是靠得住的财富。随书附赠2张冯唐字画书签!'); insert into tbl_book (type,name,description) values ('散文随笔','皮囊','直面人生的终极问题,刻在骨头里的故事,容纳既失去家乡又未到达远方的生命。'); insert into tbl_book (type,name,description) values ('散文随笔','瓦尔登湖','央视朗读者第二期朗读书目,清华大学校长推荐版本。译者李继宏作12822字导读');
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 18, 2016 at 12:33 PM -- Server version: 10.1.9-MariaDB -- PHP Version: 5.5.30 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: `matru_bharti` -- CREATE DATABASE IF NOT EXISTS `matru_bharti` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `matru_bharti`; -- -------------------------------------------------------- -- -- Table structure for table `authors` -- CREATE TABLE `authors` ( `id` int(11) NOT NULL, `email` varchar(50) NOT NULL, `mobile` varchar(20) NOT NULL, `password` varchar(50) NOT NULL, `name` varchar(30) NOT NULL, `hindi_name` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `address` text NOT NULL, `city` varchar(30) NOT NULL, `dob` date NOT NULL, `about` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `token` varchar(50) NOT NULL, `type` varchar(20) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `authors` -- INSERT INTO `authors` (`id`, `email`, `mobile`, `password`, `name`, `hindi_name`, `address`, `city`, `dob`, `about`, `token`, `type`) VALUES (5, '<EMAIL>', '9876543322', '12345', '<NAME>', '', 'Vallabhnagar', 'Udaipur', '1994-10-24', 'About me and my education', '6a5b438abbf03337417537ce6187c57e', 'user'), (2, '<EMAIL>', '2874365545', '1234567890', 'Abc ', '', 'Abc area, near abc complex', 'Abc', '2001-01-02', 'About abc', '83ed4fea0bca6c8a50029a1447f95cb8', 'admin'), (3, '<EMAIL>', '9785094709', 'don<EMAIL>', 'Ram', '', 'udaipur', 'udaipur', '2016-01-30', 'about my self is the ', '8d9c4398638fcc958b978ced7ced69db', 'user'), (10, '<EMAIL>', '1234567897', '12345', '<NAME>', '', 'near Kheroda bus stand', 'udaipur', '1994-02-24', 'About me and my family and about my work also', 'e2d293262e4616e78e0763f7c1db86b2', 'user'), (1, '<EMAIL>', '9829539834', '12345', '<NAME>', 'योगेश दरजी', 'Kheroda, Udaipur', 'Udaipur', '2016-02-13', 'About my education and my family', '82d13c1b41cf0850517ded0a553581f1', 'user'), (12, '<EMAIL>', '0192837465', '1234567890', '<NAME>', '', 'surajpole', 'Banswara', '1991-02-05', 'About my and paliwal printers', '86d432cd1908bdfa7b91f1233808d1c3', 'user'); -- -------------------------------------------------------- -- -- Table structure for table `ci_sessions` -- CREATE TABLE `ci_sessions` ( `id` varchar(40) NOT NULL, `ip_address` varchar(45) NOT NULL, `timestamp` int(10) UNSIGNED NOT NULL DEFAULT '0', `data` blob NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `ci_sessions` -- INSERT INTO `ci_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('007f12e7e57ecaed9f17f30edadc275d865f716d', '::1', 1455176132, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226162663237393133303062376462313565656234313134383431363561666135223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353137353931393b), ('00db6282463aa9d538f30c9d9f72a5e617381f7f', '::1', 1455698620, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223964656438373932656234386637356333353464633537356461366431356462223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353639383338303b), ('<KEY>', '::1', 1455347378, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223732653533653564333330646333643864666565626363643966636336343838223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334373332303b), ('03e028f0fcfaeacb64a32d0bdc50901469645ee1', '::1', 1455623732, 0x617574686f725f69647c733a323a223132223b72656d656d6265725f746f6b656e7c733a33323a223931376665643534323236383638376533373938643236646239303261343635223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353632333434393b), ('05061e8d5caa0feee4b39f102d78c1e94a472d5e', '::1', 1455249518, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223166336365346362386437343237383539653130363062353165613337396365223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353234393531383b), ('<KEY>', '::1', 1455617553, 0x617574686f725f69647c733a313a2238223b72656d656d6265725f746f6b656e7c733a33323a226632366163383866323132313161646436643839363762363863373937616663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353631373535333b), ('<KEY>', '::1', 1455703102, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223863343330373138633937306362383036323965356337373234353531653337223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730323930333b), ('<KEY>', '::1', 1455524679, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a223564623866643463366133656232366137643639613230333938383362326663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353532343533343b), ('07bdb40372d35eece2d5a756d7463253876968ef', '::1', 1455336204, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223163336661646664366563333833383338373863323237353932616435623664223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353333363039303b), ('<KEY>', '::1', 1455301433, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223331656563333139643739393637646563396166656630323965343562346431223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353330313430353b), ('<KEY>', '::1', 1455216807, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226331653436653837333366626639306331373936346432356136623930313763223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353231363636303b), ('<KEY>', '::1', 1455699745, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223964656438373932656234386637356333353464633537356461366431356462223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353639393531373b), ('<KEY>', '::1', 1455700938, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223964656438373932656234386637356333353464633537356461366431356462223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730303634343b), ('0b1005c5cf10b411da589d9ed523b8bbbe221c67', '::1', 1455271458, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353237313233353b), ('0b330516457e18af5e0ac308a9187d8bcecab0bf', '::1', 1455521860, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a226661363761616161356233613061643862616664363766353230613936323432223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353532313636373b), ('<KEY>', '::1', 1455539516, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223335383165363361356234663861366166393739333534356465393534313766223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353533393237353b), ('0ecd0ca1d93016fd6c71a97cfe593be24a4eb72a', '::1', 1455283768, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353238333736383b), ('128b2e750c4fd9ec52b3631d9a5c52a811569189', '::1', 1455350986, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223038363935393738646430356636333834373634323064393735303031323263223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353335303937303b), ('12d4a0eab3090e289070f68c1c047a6a055c0e22', '::1', 1455263058, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353236323833313b), ('12eacbfc0e1666e6abe4ce7b2196ead362c7c82d', '::1', 1455707812, 0x617574686f725f69647c733a313a2235223b72656d656d6265725f746f6b656e7c733a33323a223661356234333861626266303333333734313735333763653631383763353765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730373537383b), ('1430bb59b18c0755ee9d207a03dfa1d86ea983c9', '::1', 1455303829, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223331656563333139643739393637646563396166656630323965343562346431223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353330333635333b), ('<KEY>', '::1', 1455786160, 0x617574686f725f69647c733a323a223133223b72656d656d6265725f746f6b656e7c733a33323a226335396239323131303835633938386132326234343537363861633932326362223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353738353838393b), ('159b06693eb552914a3e3930d3be0d858d37ab6e', '::1', 1455703574, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223863343330373138633937306362383036323965356337373234353531653337223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730333333363b), ('16837fbb1702185787ab50e9d91be216bd85fca0', '::1', 1455105242, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353130343936383b), ('<KEY>', '::1', 1455284508, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223535636238383835646466653939386137623337306139363834613737313462223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353238343335393b), ('<KEY>', '::1', 1455624041, 0x617574686f725f69647c733a323a223132223b72656d656d6265725f746f6b656e7c733a33323a223931376665643534323236383638376533373938643236646239303261343635223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353632333738393b), ('1827fca0f73e257444aea205dbbd10f79293438c', '::1', 1455686963, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223233663931313563383637393764333337356634396237336163613837383632223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353638363831333b), ('199070671db14ed981370867b74bc16d362c901c', '::1', 1455247713, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223166336365346362386437343237383539653130363062353165613337396365223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353234373639343b), ('19a8751ab33ec32ce62459acc830be78594f2695', '::1', 1455780441, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226534323430306166353565623564353765626235383639303836646262353062223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353738303234333b), ('1ad6bee9ce483faaafa68f7fbd893fe48b00a352', '::1', 1455625359, 0x617574686f725f69647c733a323a223132223b72656d656d6265725f746f6b656e7c733a33323a223833623238313238326163643634383939333161653639373830666263353464223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353632353335323b), ('1bcc143327b86eac94749315f1144f399e068616', '::1', 1455522618, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a226661363761616161356233613061643862616664363766353230613936323432223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353532323332323b), ('<KEY>', '::1', 1455705212, 0x617574686f725f69647c733a313a2235223b72656d656d6265725f746f6b656e7c733a33323a223661356234333861626266303333333734313735333763653631383763353765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730343935303b), ('<KEY>', '::1', 1455779435, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226138663630346237346630356636666632396539363538326433666336303662223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353737393134343b), ('<KEY>', '::1', 1455700425, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223964656438373932656234386637356333353464633537356461366431356462223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730303134373b), ('215676ab252cd7ef01c57ceb32cac6ef9f9dfe68', '::1', 1455359919, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223335326232323964303161646163363835346136353464653832623838383336223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353335393639363b), ('23118fb13a4e35ee22e561e6b645deaf64167378', '::1', 1455099391, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353039393339313b), ('2325f3f8382f8fc3a0f2ae08edd4ee2c37e7f640', '::1', 1455685590, 0x5f5f63695f6c6173745f726567656e65726174657c693a313435353638353535313b), ('<KEY>', '::1', 1455780732, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226534323430306166353565623564353765626235383639303836646262353062223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353738303730303b), ('<KEY>', '::1', 1455269067, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226138396266326130333364353362326431643163373061363035393030373935223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353236383833303b), ('<KEY>', '::1', 1455087431, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353038373433313b), ('<KEY>', '::1', 1455173989, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226162663237393133303062376462313565656234313134383431363561666135223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353137333737313b), ('<KEY>', '::1', 1455108298, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223538313063343261303562386136643035383734356663323337313638656662223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353130383239383b), ('2bb972f2fb9e0a25d3825d71f824649f972fdadb', '::1', 1455261899, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353236313733313b), ('2d57c6d3b70c7173ace0a2ab4d9edadff53f6825', '::1', 1455358951, 0x617574686f725f69647c733a313a2237223b72656d656d6265725f746f6b656e7c733a33323a223863663565626632343062643337333032393638633663313062643761383633223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353335383732383b), ('2debbec3e76c3772768b4fe6560fe0d915fe1d45', '::1', 1455785116, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226534323430306166353565623564353765626235383639303836646262353062223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353738343833353b), ('2fd9e1b32e1964f7ad9998b0706f3de1e8f8416a', '::1', 1455618630, 0x617574686f725f69647c733a313a2238223b72656d656d6265725f746f6b656e7c733a33323a226632366163383866323132313161646436643839363762363863373937616663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353631383339363b), ('30396fed30dc8c6b7d40c18332f914fe371f7eca', '::1', 1455777482, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223466376139363336636137313662396439353536323830313236346166616631223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353737373139303b), ('317b98962ae4587a2da18b4d137a1b44a0719212', '::1', 1455189511, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223364623730343832613265636437373565616133643931373136383036336231223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353138393432353b), ('<KEY>', '::1', 1455693559, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223964656438373932656234386637356333353464633537356461366431356462223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353639333535393b), ('<KEY>', '::1', 1455349842, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223464336265636134323035636232343431376633393635346637396666646462223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334393736363b), ('34e5af343671cd5490e56dfc9dee52006c2cdcbc', '::1', 1455789057, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223762373037626463363866333362353737326237353661393466343262626237223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353738383737343b), ('35eac071eb053211ee84c74f70ab64597468f9e3', '::1', 1455252675, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353235323531363b), ('<KEY>', '::1', 1455256894, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353235363839343b), ('374e8fdd5304cbe7faf401e21a13497c2e480b8b', '::1', 1455710117, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223630663531323934383739346366316435373530343638383430303333386165223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730393938303b), ('39beb4177baaf57e55f17693655f7292f0cdaf96', '::1', 1455792601, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223832643133633162343163663038353035313764656430613535333538316631223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353739323436393b), ('3a86b3e59c4118928c915335991fe820a5ba8714', '::1', 1455778851, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226138663630346237346630356636666632396539363538326433666336303662223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353737383737353b), ('3a9cfbf5b050881f72a30c4d9b319b66f9e0c57d', '::1', 1455789548, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223762373037626463363866333362353737326237353661393466343262626237223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353738393534383b), ('3c798deba4c667728fdd390d39e483a5874fffe0', '::1', 1455174637, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226162663237393133303062376462313565656234313134383431363561666135223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353137343633373b), ('<KEY>', '::1', 1455190334, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223364623730343832613265636437373565616133643931373136383036336231223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353139303039313b), ('3d5e33f654b63af00b0c19160657ed3f1c74d927', '::1', 1455538704, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226163623334393530396163623961353836663239303865306534643739366233223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353533383439373b), ('3d787510efad807d6d9517eea10eb3aa38c16136', '::1', 1455090668, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353039303439313b), ('<KEY>', '::1', 1455105958, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353130353639333b), ('<KEY>', '::1', 1455188767, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223364623730343832613265636437373565616133643931373136383036336231223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353138383437353b), ('<KEY>', '::1', 1455281175, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353238313037333b), ('<KEY>', '::1', 1455273676, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353237333536373b), ('40f5ed057f475719e80f7616ff0faf46c79c1c34', '::1', 1455262331, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353236323035363b), ('<KEY>', '::1', 1455094189, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353039333839383b), ('42861804af78b03ef2b55a26b36e52624a3d308d', '::1', 1455525096, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a223564623866643463366133656232366137643639613230333938383362326663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353532343835393b), ('45806e799947ff82da7e812864986d2ced7dd139', '::1', 1455706372, 0x617574686f725f69647c733a313a2235223b72656d656d6265725f746f6b656e7c733a33323a223661356234333861626266303333333734313735333763653631383763353765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730363037363b), ('<KEY>', '::1', 1455343059, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223163336661646664366563333833383338373863323237353932616435623664223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334323831333b), ('4af643d6f67baa54de6eaa5e3cf98eac5c628a17', '::1', 1455780158, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226534323430306166353565623564353765626235383639303836646262353062223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353737393934323b), ('<KEY>', '::1', 1455784209, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226534323430306166353565623564353765626235383639303836646262353062223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353738343135393b), ('4bffd8685887f2fb46255774accd1a10ed73e44d', '::1', 1455358046, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223263613339613837353637316231613732633066326239633765313534643038223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353335373930333b), ('4cd9befb1d47f7fd0dae0f60ed785ee37fec3a88', '::1', 1455792849, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223832643133633162343163663038353035313764656430613535333538316631223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353739323832323b), ('4dc3d81e847f801d27793a8a7fba26163b278e64', '::1', 1455536178, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226163623334393530396163623961353836663239303865306534643739366233223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353533363137383b), ('<KEY>', '::1', 1455343200, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223163336661646664366563333833383338373863323237353932616435623664223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334333133353b), ('<KEY>', '::1', 1455346953, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223732653533653564333330646333643864666565626363643966636336343838223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334363935333b), ('<KEY>', '::1', 1455624565, 0x617574686f725f69647c733a323a223132223b72656d656d6265725f746f6b656e7c733a33323a223833623238313238326163643634383939333161653639373830666263353464223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353632343536353b), ('<KEY>', '::1', 1455617057, 0x617574686f725f69647c733a313a2238223b72656d656d6265725f746f6b656e7c733a33323a226632366163383866323132313161646436643839363762363863373937616663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353631373035373b), ('4fd241adb193d2e664d657e90a1e2647b8b42051', '::1', 1455704895, 0x617574686f725f69647c733a313a2235223b72656d656d6265725f746f6b656e7c733a33323a223661356234333861626266303333333734313735333763653631383763353765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730343630303b), ('4fdd1483e81421bac5f89be89d2561b1dfd8441c', '::1', 1455092760, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353039323735303b), ('51aa4f8dd7ad560db4c6e11c9050ac296c71c6f3', '::1', 1455346880, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223732653533653564333330646333643864666565626363643966636336343838223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334363635303b), ('<KEY>', '::1', 1455217367, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226331653436653837333366626639306331373936346432356136623930313763223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353231373136343b), ('<KEY>', '::1', 1455280653, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353238303337383b), ('5539cf4966d667bee6644e8f0846b13cc633ac0e', '::1', 1455272396, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353237323231323b), ('557347ca887dc2defbaf93754a4521cba812767c', '::1', 1455698822, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223964656438373932656234386637356333353464633537356461366431356462223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353639383832323b), ('<KEY>', '::1', 1455333028, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223765663865306230323738623935363839633636636266383430343461313166223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353333333032383b), ('566fe8e7cbe9ae671c454955ce451606336297fa', '::1', 1455614711, 0x617574686f725f69647c733a313a2238223b72656d656d6265725f746f6b656e7c733a33323a226632366163383866323132313161646436643839363762363863373937616663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353631333736303b), ('<KEY>', '::1', 1455711571, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223630663531323934383739346366316435373530343638383430303333386165223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353731313335373b), ('580d697bc3e97f5d2dee3a9b8efa6ff34feea430', '::1', 1455099364, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353039393037343b), ('5bc29ab335522002430e293d0c964e5b313505d4', '::1', 1455360976, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223335326232323964303161646163363835346136353464653832623838383336223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353336303739363b), ('<KEY>', '::1', 1455350504, 0x617574686f725f69647c733a313a2235223b72656d656d6265725f746f6b656e7c733a33323a223930663636313565343738633832303962353937643130393565373064666130223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353335303234393b), ('5c48a86d59b2d8a16975ff636c66dc56a8c98b57', '::1', 1455344190, 0x617574686f725f69647c733a313a2234223b72656d656d6265725f746f6b656e7c733a33323a223538663163616333616231346631623633663166366132336365376531323431223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334333939313b), ('<KEY>', '::1', 1455194219, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226338646164616463663435643437346539336635663463376234386133353164223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353139343032353b), ('5f5fd61f9b37a9c37d54057a4f17be8e33489cab', '::1', 1455622452, 0x617574686f725f69647c733a323a223132223b72656d656d6265725f746f6b656e7c733a33323a223931376665643534323236383638376533373938643236646239303261343635223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353632323234333b), ('<KEY>', '::1', 1455690737, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223033333538366139313934653463353434613433663239313732326533356433223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353639303530353b), ('<KEY>', '::1', 1455699417, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223964656438373932656234386637356333353464633537356461366431356462223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353639393134303b), ('62885efbd179f633e9705a296f8fc2809e5d4b8c', '::1', 1455213883, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226331653436653837333366626639306331373936346432356136623930313763223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353231333838333b), ('62de494353d02c59ba5ed5ebd850ed02dba1f4d3', '::1', 1455711342, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223630663531323934383739346366316435373530343638383430303333386165223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353731313035353b), ('<KEY>', '::1', 1455704034, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223863343330373138633937306362383036323965356337373234353531653337223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730333738333b), ('<KEY>', '::1', 1455175012, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226162663237393133303062376462313565656234313134383431363561666135223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353137343936393b), ('64f8dafb3edb2788cebe429f0d875460998a695c', '::1', 1455102855, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353130323637323b), ('<KEY>', '::1', 1455349004, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223230373736373138626466373862393866333764346235663634333363363765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334383835383b), ('65bbd814026acadabf6750b0d3b0a7d7406016c3', '::1', 1455615848, 0x617574686f725f69647c733a313a2238223b72656d656d6265725f746f6b656e7c733a33323a226632366163383866323132313161646436643839363762363863373937616663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353631353631353b), ('663fddbf4e3d20f140a6e0d48e558ddb06d958de', '::1', 1455525509, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223139326563646435376432363561646135343561363035633562613834613237223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353532353237333b), ('<KEY>', '::1', 1455192151, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226438633661656530323362366161666134393036353133636639666634316537223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353139313837363b), ('<KEY>', '::1', 1455189241, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223364623730343832613265636437373565616133643931373136383036336231223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353138393132343b), ('678508782bba3fe24fdeded1d93e39e4f39b6088', '::1', 1455340340, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223163336661646664366563333833383338373863323237353932616435623664223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334303239393b), ('<KEY>', '::1', 1455254107, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353235333833333b), ('69c132e45be7853c32e926505ded4d2bdeb34604', '::1', 1455099889, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353039393730313b), ('<KEY>', '::1', 1455622987, 0x617574686f725f69647c733a323a223132223b72656d656d6265725f746f6b656e7c733a33323a223931376665643534323236383638376533373938643236646239303261343635223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353632323931363b), ('<KEY>', '::1', 1455302790, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223331656563333139643739393637646563396166656630323965343562346431223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353330323739303b), ('6b2a36b4b349db1a88db146f7b0d33ec739677e5', '::1', 1455303618, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223331656563333139643739393637646563396166656630323965343562346431223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353330333332343b), ('<KEY>', '::1', 1455087812, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353038373831323b), ('6e5607fe08f23775cd150ca3991910df117173a5', '::1', 1455271976, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353237313930373b), ('70139f008fab3c43ddc5e6b3710592f7d0391461', '::1', 1455702470, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223964656438373932656234386637356333353464633537356461366431356462223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730323235313b), ('707df6b881a14f6bb7317323b407e41803d5d839', '::1', 1455713574, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223630663531323934383739346366316435373530343638383430303333386165223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353731333239353b), ('<KEY>', '::1', 1455524124, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a223564623866643463366133656232366137643639613230333938383362326663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353532343037363b), ('735891bd45cdb4151d92e6ff2dd553ae8fad6ca3', '::1', 1455519738, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a226661363761616161356233613061643862616664363766353230613936323432223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353531393733373b), ('<KEY>', '::1', 1455272874, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353237323835353b), ('77813344dda2f310122a2c61c11e364e469ad832', '::1', 1455103584, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353130333337383b), ('779d8d07b23d785f0fcf1959d00ade3ac485f7b6', '::1', 1455173350, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226162663237393133303062376462313565656234313134383431363561666135223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353137333236383b), ('<KEY>', '::1', 1455351739, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223038363935393738646430356636333834373634323064393735303031323263223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353335313536323b), ('<KEY>', '::1', 1455335585, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223734396366356463316632316538646532353932383436306437323964316338223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353333353430313b), ('81bab3a743196ea80b9a42e663456e9d322d9f4c', '::1', 1455625217, 0x617574686f725f69647c733a323a223132223b72656d656d6265725f746f6b656e7c733a33323a223833623238313238326163643634383939333161653639373830666263353464223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353632343939303b), ('81c473a29f91698515592b2e9ecaa6d22724be5e', '::1', 1455777564, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223466376139363336636137313662396439353536323830313236346166616631223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353737373533303b), ('82187498986301badbe1bc15788d828d06e28f31', '::1', 1455106346, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353130363334363b), ('82291754d0e0df058320ba57c594c689c92f3f7b', '::1', 1455713865, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223630663531323934383739346366316435373530343638383430303333386165223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353731333633323b), ('82570cd77d5ab900c9e858ff4f81b2513ac4751c', '::1', 1455184876, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223566336637316230656437636539316231373339336339313133653765333932223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353138343837363b), ('<KEY>', '::1', 1455778280, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223466376139363336636137313662396439353536323830313236346166616631223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353737383030343b), ('<KEY>', '::1', 1455360602, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223335326232323964303161646163363835346136353464653832623838383336223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353336303433323b), ('<KEY>', '::1', 1455094201, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353039343230313b), ('<KEY>', '::1', 1455193313, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223633363239323263346233626336626633343365653261643638326537623638223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353139333134323b), ('86b8503ecd917f091691696be1ea784e18f35c66', '::1', 1455709535, 0x617574686f725f69647c733a313a2235223b72656d656d6265725f746f6b656e7c733a33323a223661356234333861626266303333333734313735333763653631383763353765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730393533353b), ('894c4234629586174e542429230d65e538fffc43', '::1', 1455710601, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223630663531323934383739346366316435373530343638383430303333386165223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353731303437323b), ('8a13a68310a96881cecdc974ba540b0eff18789c', '::1', 1455777100, 0x5f5f63695f6c6173745f726567656e65726174657c693a313435353737363830313b), ('8a4f973b0b40d976a0f32f995e0ed6342830a748', '::1', 1455521504, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a226661363761616161356233613061643862616664363766353230613936323432223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353532313231323b), ('8a5edc1b85be2b6a2bf75f67efa5aad579740e95', '::1', 1455260191, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353236303030343b), ('8ba22af492ce901f1a1651b09c17f48279d7b0e6', '::1', 1455260810, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353236303639333b), ('8c4c2e56caf43fd25b72d1c68b44df157170a5db', '::1', 1455355505, 0x617574686f725f69647c733a313a2236223b72656d656d6265725f746f6b656e7c733a33323a223637366338366263326264353463356263383763336131613835636163613034223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353335353232313b), ('<KEY>', '::1', 1455172586, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226162663237393133303062376462313565656234313134383431363561666135223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353137323437383b), ('<KEY>', '::1', 1455790808, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223762373037626463363866333362353737326237353661393466343262626237223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353739303634303b), ('8f6d757127163501b1a4bbce9d12756f03b55886', '::1', 1455281545, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353238313432373b), ('90222f1760d495289fdea81388c7b794521d9f6b', '::1', 1455182081, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226665316463353438626531306433313332626134653761373038626230326663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353138313739303b), ('90a683b5eef59705f4336ed3dd03a07e090ea77d', '::1', 1455302356, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223331656563333139643739393637646563396166656630323965343562346431223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353330323335363b), ('<KEY>', '::1', 1455254730, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353235343534393b), ('954a597a0bca8a9fdda0c4e29a371d7d7aa75309', '::1', 1455713043, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223630663531323934383739346366316435373530343638383430303333386165223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353731323939303b), ('<KEY>', '::1', 1455191163, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223537353264643566356137653139616130653663623238663132323865653364223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353139303837303b), ('98a5d9669a716634c4bc9daef5a3d2ec4ff85335', '::1', 1455282999, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353238323831383b), ('99ba289c29211d2287843ccefde4d79dc4a83a56', '::1', 1455192517, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223633363239323263346233626336626633343365653261643638326537623638223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353139323331333b), ('99df2fa64af20fe01fe22c11fba00a781a28df46', '::1', 1455532139, 0x617574686f725f69647c733a323a223131223b72656d656d6265725f746f6b656e7c733a33323a226333336464333264633933626537313834616431393132663665363333393436223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353533323133393b), ('99e674ae3ba0e5dce58f9066d06b58b6cea7b516', '::1', 1455171196, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226162663237393133303062376462313565656234313134383431363561666135223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353137313138393b), ('<KEY>', '::1', 1455092451, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353039323339373b), ('<KEY>', '::1', 1455246958, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223166336365346362386437343237383539653130363062353165613337396365223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353234363935383b), ('9bf1a749895de67bc0d2ed621a0c4678d8041cc4', '::1', 1455788347, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223762373037626463363866333362353737326237353661393466343262626237223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353738383333393b), ('9c3bf0f9bf9865f8520ed0578c933e2255d4069a', '::1', 1455257229, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353235373232393b), ('<KEY>', '::1', 1455523975, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a223564623866643463366133656232366137643639613230333938383362326663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353532333730383b), ('9d80d0fb66d73fd1791a0fab99edf3d27be8005b', '::1', 1455688076, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a226532643239333236326534363136653738653037363366376331646238366232223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353638373834363b), ('9e1c6a21e181271cb5e8ba63d57b95f9a4602e77', '::1', 1455252842, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353235323834323b), ('9e29ed1666b924090229eaf156549e63a60f5e29', '::1', 1455257780, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353235373630333b), ('9e3550e2f3d90d420c1c8a024519edccb8edc46e', '::1', 1455245519, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223166336365346362386437343237383539653130363062353165613337396365223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353234353439303b), ('9f3e58e4a677d40bd80f3d0febfdefe9e6c50c3a', '::1', 1455533261, 0x617574686f725f69647c733a313a2239223b72656d656d6265725f746f6b656e7c733a33323a223165396534306430313664376333363732653637316231343161396364386537223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353533333132373b); INSERT INTO `ci_sessions` (`id`, `ip_address`, `timestamp`, `data`) VALUES ('a0851b89232cffe66ebf4a9762d8fadb955e3f33', '::1', 1455711706, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223630663531323934383739346366316435373530343638383430303333386165223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353731313730363b), ('<KEY>', '::1', 1455790363, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223762373037626463363866333362353737326237353661393466343262626237223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353739303130303b), ('a11ec66f90d093f36a7e62ac57e15d2322f70fae', '::1', 1455346563, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223732653533653564333330646333643864666565626363643966636336343838223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334363330313b), ('a15ac3359e7407f760fd60102f17f5e2a79af867', '::1', 1455247825, 0x5f5f63695f6c6173745f726567656e65726174657c693a313435353234373832353b), ('a2270c09225f4c707a9966e090df2b78e8479754', '::1', 1455259507, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353235393530373b), ('a42093fadf34545287161ec6a93de08be67ca6a1', '::1', 1455335054, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223734396366356463316632316538646532353932383436306437323964316338223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353333353034303b), ('<KEY>', '::1', 1455786474, 0x617574686f725f69647c733a323a223133223b72656d656d6265725f746f6b656e7c733a33323a226335396239323131303835633938386132326234343537363861633932326362223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353738363139303b), ('<KEY>', '::1', 1455255133, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353235353032313b), ('<KEY>', '::1', 1455792276, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223832643133633162343163663038353035313764656430613535333538316631223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353739323035353b), ('<KEY>', '::1', 1455355671, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223263613339613837353637316231613732633066326239633765313534643038223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353335353537363b), ('a921758970ddb9609f5b3f641efe193e5f2af5ab', '::1', 1455362892, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223335326232323964303161646163363835346136353464653832623838383336223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353336323539333b), ('a9609defa4ca56ba667d99d713e5760971ceaa01', '::1', 1455180637, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226665316463353438626531306433313332626134653761373038626230326663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353138303633303b), ('a9d0bc2b04a65b8df91f7e02cce8549168a30a7b', '::1', 1455269556, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353236393330353b), ('<KEY>', '::1', 1455262700, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353236323430313b), ('ac76eb3120f9aa8c3332546bf5fcbcde86713b9a', '::1', 1455622781, 0x617574686f725f69647c733a323a223132223b72656d656d6265725f746f6b656e7c733a33323a223931376665643534323236383638376533373938643236646239303261343635223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353632323630333b), ('acea9c08ab05cb25e553ca4c8aa1b88877b50517', '::1', 1455282770, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353238323437343b), ('af862b7705b27ee1eab05503c339160c74af955b', '::1', 1455176325, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223335393066633533653839646136653261343338633631326331623662616232223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353137363236333b), ('b06057c81ce680df833fd42ea00d54834f8e3d53', '::1', 1455093456, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353039333330363b), ('b0e8dc3a24dd6e0dee677b80225e403004cba9bd', '::1', 1455345999, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223732653533653564333330646333643864666565626363643966636336343838223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334353939393b), ('b1b5de10f3ba2aca6feba82c8c68b08d41bd32ee', '::1', 1455188475, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223634313935386462636530353631663736656233623331653261636466656432223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353138383133373b), ('b1ef562dc4d794d8b5c72eda83e2b80a45beffbb', '::1', 1455304577, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223331656563333139643739393637646563396166656630323965343562346431223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353330343537373b), ('b1feec2410a69e45d6b8ead79872ff8d3f517e4e', '::1', 1455092083, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353039313833323b), ('<KEY>', '::1', 1455268252, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223135376137646562326330303134623333623464303034636136303566616338223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353236383030323b), ('b54900782ad39ef17393d19d5c5eb8d570f404c5', '::1', 1455253524, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353235333333333b), ('b5f7adf6e85234a0dd363fc22ce25f3be59ceb88', '::1', 1455332568, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223765663865306230323738623935363839633636636266383430343461313166223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353333323536383b), ('<KEY>', '::1', 1455279148, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353237383835393b), ('b86c512dee558829c0ee4a04e2a960e3cd06a4b3', '::1', 1455615502, 0x617574686f725f69647c733a313a2238223b72656d656d6265725f746f6b656e7c733a33323a226632366163383866323132313161646436643839363762363863373937616663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353631353238343b), ('<KEY>', '::1', 1455712953, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223630663531323934383739346366316435373530343638383430303333386165223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353731323635363b), ('b95a9102c608f981a5ef6d75f45f26ef50c3cae7', '::1', 1455106194, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353130363032353b), ('bceaac48e92f3facbca777da41464205a7f8e51c', '::1', 1455784581, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226534323430306166353565623564353765626235383639303836646262353062223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353738343531363b), ('<KEY>', '::1', 1455347894, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223732653533653564333330646333643864666565626363643966636336343838223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334373734343b), ('bde2ae836e4248d590f28bf290d32a895f3c4969', '::1', 1455100025, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353130303032353b), ('be7d3c35a5a369959d0142e52b76970c81ce1232', '::1', 1455517092, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226330316230303131343362653539666565326566326433333265646632626634223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353531323731333b), ('bee97c1da822143c6aee1e115f035126fe98b6d6', '::1', 1455691171, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223033333538366139313934653463353434613433663239313732326533356433223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353639313136373b), ('beefcc1f82de3327704f3faeaf67d03f79b24863', '::1', 1455691013, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223033333538366139313934653463353434613433663239313732326533356433223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353639303832363b), ('c0fa7fa61409fc780449dec3bece33f015906629', '::1', 1455193892, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226338646164616463663435643437346539336635663463376234386133353164223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353139333630313b), ('<KEY>', '::1', 1455108272, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223538313063343261303562386136643035383734356663323337313638656662223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353130373937363b), ('c1ee0baf51d51d0f35c754f5ad77128b290daa28', '::1', 1455332493, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223765663865306230323738623935363839633636636266383430343461313166223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353333323234333b), ('<KEY>', '::1', 1455255419, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353235353431393b), ('c64be7b8a0ef20966b317a6896bfad727b190a03', '::1', 1455169701, 0x617574686f725f69647c733a313a2235223b72656d656d6265725f746f6b656e7c733a33323a223539623565343131353737396631636235323162343664393034383865333763223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353136393431373b), ('<KEY>', '::1', 1455614712, 0x617574686f725f69647c733a313a2238223b72656d656d6265725f746f6b656e7c733a33323a226632366163383866323132313161646436643839363762363863373937616663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353631343731323b), ('<KEY>', '::1', 1455300345, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223331656563333139643739393637646563396166656630323965343562346431223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353330303334353b), ('<KEY>', '::1', 1455705772, 0x617574686f725f69647c733a313a2235223b72656d656d6265725f746f6b656e7c733a33323a223661356234333861626266303333333734313735333763653631383763353765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730353731343b), ('c80842877fd49394c2416e1a3e1ba959b0e981d4', '::1', 1455278356, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353237383133353b), ('c85d1033966dad746bf83c9a44522f153be7161e', '::1', 1455348673, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223230373736373138626466373862393866333764346235663634333363363765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334383432343b), ('c9e0e2fd4dae3811f2873e18314510e907ea9e0d', '::1', 1455182145, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226430623765633861666661666635366562353131643331626331613233323739223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353138323133353b), ('<KEY>', '::1', 1455615921, 0x617574686f725f69647c733a313a2238223b72656d656d6265725f746f6b656e7c733a33323a226632366163383866323132313161646436643839363762363863373937616663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353631353932313b), ('<KEY>', '::1', 1455789162, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223762373037626463363866333362353737326237353661393466343262626237223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353738393136323b), ('ccdf8a3b1184e643785565903650d7d0dbb07827', '::1', 1455523455, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a223564623866643463366133656232366137643639613230333938383362326663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353532333336333b), ('cd636f805e6fa2a7ff6a6ce451a8d450cea60116', '::1', 1455791507, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223832643133633162343163663038353035313764656430613535333538316631223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353739313530323b), ('cfcc4020089340dfec0622347284018d10d2af48', '::1', 1455692877, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223964656438373932656234386637356333353464633537356461366431356462223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353639323636313b), ('d054d5754417f723c60185ee1921679ebb272a79', '::1', 1455709074, 0x617574686f725f69647c733a313a2235223b72656d656d6265725f746f6b656e7c733a33323a223661356234333861626266303333333734313735333763653631383763353765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730383938383b), ('d142dccacb40733ff36c75352e0b33c5f0a19f59', '::1', 1455712531, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223630663531323934383739346366316435373530343638383430303333386165223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353731323334313b), ('<KEY>', '::1', 1455100574, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353130303533363b), ('<KEY>', '::1', 1455538281, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226163623334393530396163623961353836663239303865306534643739366233223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353533383135393b), ('d489a4f7f508eace638af08e2d33ffca5fc59afc', '::1', 1455219270, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226331653436653837333366626639306331373936346432356136623930313763223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353231393132323b), ('d53058a952508d3fee11dafed5296b7e8feda42f', '::1', 1455349463, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223230373736373138626466373862393866333764346235663634333363363765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334393334373b), ('d686dddfdd0c3fa6f99c009ad80a1c7f0ce2db2c', '::1', 1455688356, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a226532643239333236326534363136653738653037363366376331646238366232223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353638383230343b), ('d9416472a9454a6f7c6ff6011a479dbd01e18331', '::1', 1455105282, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353130353238323b), ('da0410ee99af5d2cf9747532266f81b55a5d492a', '::1', 1455179766, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226665316463353438626531306433313332626134653761373038626230326663223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353137393735343b), ('da9070e92e635758b1b78628f7898262f69ba47b', '::1', 1455686227, 0x617574686f725f69647c733a323a223132223b72656d656d6265725f746f6b656e7c733a33323a223666343831356165613131643463643165666236336438396533626536636232223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353638363033393b), ('db2dd67cb585e9d6506f00b4d192424d645a9dc5', '::1', 1455254453, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223261663030373535623436336633306230613133303035323034306630373465223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353235343138333b), ('dc232f25986d6b3833374c1c45bcae576bb34f64', '::1', 1455345827, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223732653533653564333330646333643864666565626363643966636336343838223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334353638353b), ('dca35fc92c3f342c8e7a3dc3dfff2f83c40e1217', '::1', 1455094633, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223962366432373566643132616539313461346132623066646336316639343132223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353039343632353b), ('df3b637b1762871a696bf1e57b6c4a1d0e7e1298', '::1', 1455194426, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226338646164616463663435643437346539336635663463376234386133353164223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353139343337353b), ('<KEY>', '::1', 1455520411, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a226661363761616161356233613061643862616664363766353230613936323432223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353532303138303b), ('<KEY>', '::1', 1455333863, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223734396366356463316632316538646532353932383436306437323964316338223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353333333634363b), ('dff6c78f51bcef088b63316a74a2bd302a4c4d9b', '::1', 1455282099, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353238323031333b), ('e0346747aebbe25d07bfb4f7857dd3f755d28413', '::1', 1455686651, 0x617574686f725f69647c733a323a223132223b72656d656d6265725f746f6b656e7c733a33323a223666343831356165613131643463643165666236336438396533626536636232223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353638363338353b), ('e06405f3742bf7f5ed5e96824249a1c5042c4598', '::1', 1455334766, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223734396366356463316632316538646532353932383436306437323964316338223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353333343630343b), ('<KEY>', '::1', 1455191250, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223537353264643566356137653139616130653663623238663132323865653364223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353139313232363b), ('<KEY>', '::1', 1455687624, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223233663931313563383637393764333337356634396237336163613837383632223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353638373335323b), ('e6e5d7ef3d4cf08a17884655658676d1c6a46345', '::1', 1455539200, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a223561383866666134663935326230663235373534386663366339376463353632223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353533383932333b), ('e732289c178ac5775a4ba8288fa7c971a8707e8f', '::1', 1455250003, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223166336365346362386437343237383539653130363062353165613337396365223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353234393832303b), ('e769f3e443dbc4f599671307c7c790deea390739', '::1', 1455344950, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223732653533653564333330646333643864666565626363643966636336343838223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353334343935303b), ('<KEY>', '::1', 1455174155, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226162663237393133303062376462313565656234313134383431363561666135223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353137343135353b), ('ea2726e1fe2d21cb28a958c5386d3a6604f056f2', '::1', 1455270128, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353236393930313b), ('ea4ca3d0e3391fe8586caceb62e38b0fab6958d0', '::1', 1455279708, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353237393730383b), ('eb2ffac10287830cc0b596671312964758aeb360', '::1', 1455714393, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226664306336646639336336336634653332636130343161386335646636316430223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353731333939343b), ('eb534e7e47dfa375c1dc704293e9f5c25d91441a', '::1', 1455245033, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223166336365346362386437343237383539653130363062353165613337396365223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353234343836313b), ('eeeb7fe2dea1336ad2e3dae822995fb0b1c8400d', '::1', 1455218924, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226331653436653837333366626639306331373936346432356136623930313763223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353231383733373b), ('f00bb946e6091e572adc12d8cfb97ac872bfeda8', '::1', 1455520974, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a226661363761616161356233613061643862616664363766353230613936323432223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353532303930313b), ('f0fab5f8feced6837784d42bf5e03519794d2c5f', '::1', 1455520814, 0x617574686f725f69647c733a323a223130223b72656d656d6265725f746f6b656e7c733a33323a226661363761616161356233613061643862616664363766353230613936323432223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353532303532303b), ('f311f69ddbeb8a5a7a520be9412cc5b3db9a74ab', '::1', 1455702777, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223964656438373932656234386637356333353464633537356461366431356462223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730323538353b), ('<KEY>', '::1', 1455170334, 0x617574686f725f69647c733a313a2235223b72656d656d6265725f746f6b656e7c733a33323a223539623565343131353737396631636235323162343664393034383865333763223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353137303134343b), ('f42ded9c451306c8dd093b5c7b660074c3d05f9e', '::1', 1455280874, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223837653466363962393530626463303035643562393432386534646466313765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353238303735353b), ('f59376ba800cd397d44ed3dd8c86b654705488a4', '::1', 1455779841, 0x617574686f725f69647c733a313a2232223b72656d656d6265725f746f6b656e7c733a33323a226534323430306166353565623564353765626235383639303836646262353062223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353737393630303b), ('<KEY>', '::1', 1455268644, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226138396266326130333364353362326431643163373061363035393030373935223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353236383439313b), ('<KEY>', '::1', 1455714402, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226664306336646639336336336634653332636130343161386335646636316430223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353731343339333b), ('fbca0fadf3e251e8a7142e7651752ef57c8ba388', '::1', 1455624504, 0x617574686f725f69647c733a323a223132223b72656d656d6265725f746f6b656e7c733a33323a223833623238313238326163643634383939333161653639373830666263353464223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353632343230373b), ('<KEY>', '::1', 1455526099, 0x617574686f725f69647c733a323a223131223b72656d656d6265725f746f6b656e7c733a33323a223430633965613566613234623739313038383738383236316136643038313036223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353532363039393b), ('fc3ae2e69be6ddfccddb0d1c45a283e9517e0b2c', '::1', 1455189981, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a223364623730343832613265636437373565616133643931373136383036336231223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353138393736313b), ('fe9d32e0da4810b3a4fc67d216a6dab7d8937437', '::1', 1455707965, 0x617574686f725f69647c733a313a2235223b72656d656d6265725f746f6b656e7c733a33323a223661356234333861626266303333333734313735333763653631383763353765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730373936353b), ('ff670ea4812dd84c279b5c8bc9b4398153ffd2be', '::1', 1455705578, 0x617574686f725f69647c733a313a2235223b72656d656d6265725f746f6b656e7c733a33323a223661356234333861626266303333333734313735333763653631383763353765223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353730353239393b), ('<KEY>', '::1', 1455182937, 0x617574686f725f69647c733a313a2231223b72656d656d6265725f746f6b656e7c733a33323a226430623765633861666661666635366562353131643331626331613233323739223b6c6f676765645f696e7c623a313b5f5f63695f6c6173745f726567656e65726174657c693a313435353138323833343b); -- -------------------------------------------------------- -- -- Table structure for table `compositions` -- CREATE TABLE `compositions` ( `id` int(11) NOT NULL, `author_id` int(11) NOT NULL, `language` varchar(30) NOT NULL, `category` varchar(30) NOT NULL, `title` varchar(40) NOT NULL, `about` text NOT NULL, `created_at` date NOT NULL, `updated_at` date NOT NULL, `status` varchar(20) NOT NULL, `published_at` date NOT NULL, `no_seen` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `compositions` -- INSERT INTO `compositions` (`id`, `author_id`, `language`, `category`, `title`, `about`, `created_at`, `updated_at`, `status`, `published_at`, `no_seen`) VALUES (1, 1, 'Hindi', 'Children', 'Children', 'About this Composition, this composition is a great approach of all children, that help for him or her education, health and main thinking of this composition is children physical activities and educational activities ', '0000-00-00', '0000-00-00', 'Approved', '2016-02-13', 0), (3, 3, 'English', 'Spritual', 'Educational Sp', 'About this composition', '0000-00-00', '0000-00-00', 'Approved', '2016-02-12', 0), (5, 1, 'Hindi', 'Stories', 'Parents', 'About Parents Life', '0000-00-00', '0000-00-00', 'Pending', '2016-02-12', 0), (6, 5, 'English', 'Stories', 'Rajasthan info', 'About of Rajasthan', '2016-02-11', '0000-00-00', 'Pending', '2016-02-12', 0), (7, 5, 'Hindi', 'Articles', 'Cricket', 'About of T-20 world-cup 2016', '2016-02-11', '0000-00-00', 'Approved', '2016-02-12', 0), (8, 5, 'Hindi', 'Novels', 'Cricket', 'About the Cricket', '2016-02-11', '0000-00-00', 'Panding', '0000-00-00', 0), (9, 2, 'English', 'Articles', 'Cricket', 'About cricket \n1) ODI : One day Cricket\n2) T-20 : Twenty-20 Over Match\n3) Test Cricket : 3-4 days running match', '2016-02-12', '0000-00-00', 'Panding', '0000-00-00', 0), (10, 2, 'English', 'Articles', 'Educational Sp', 'About education role in our life', '2016-02-13', '0000-00-00', 'Approved', '2016-02-13', 0), (12, 5, 'Hindi', 'Stories', 'Narendra Modi', 'About modi as a prime ministers ', '2016-02-13', '0000-00-00', 'Panding', '0000-00-00', 0), (16, 10, 'Hindi', 'Stories', 'nature', 'about nature ', '2016-02-15', '0000-00-00', 'Panding', '0000-00-00', 0), (17, 10, 'Hindi', 'Stories', 'Republicday 2016', 'About Republicday 2016', '2016-02-15', '0000-00-00', 'Approved', '2016-02-15', 0), (19, 12, 'Hindi', 'Stories', 'Maharana Pratap', 'About Mahar<NAME>', '2016-02-15', '0000-00-00', 'Approved', '2016-02-15', 0), (20, 3, 'Hindi', 'Articles', 'abcd', 'about abcd', '2016-02-15', '0000-00-00', 'Panding', '0000-00-00', 0); -- -------------------------------------------------------- -- -- Table structure for table `ebooks` -- CREATE TABLE `ebooks` ( `id` int(11) NOT NULL, `author_id` int(11) NOT NULL, `language` varchar(30) NOT NULL, `category` varchar(30) NOT NULL, `title` varchar(50) NOT NULL, `about` text NOT NULL, `tag` text NOT NULL, `file` varchar(50) NOT NULL, `cover` varchar(50) NOT NULL, `created_at` date NOT NULL, `updated_at` date NOT NULL, `status` varchar(20) NOT NULL, `published_at` date NOT NULL, `no_downloads` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `ebooks` -- INSERT INTO `ebooks` (`id`, `author_id`, `language`, `category`, `title`, `about`, `tag`, `file`, `cover`, `created_at`, `updated_at`, `status`, `published_at`, `no_downloads`) VALUES (1, 1, 'Hindi', 'Cooking', 'Cooking', 'about this book', 'tag name', 'assets/uploads/ebooks/ebook-files/Payment.pdf', 'abcd', '0000-00-00', '0000-00-00', 'Approved', '2016-02-13', 0), (4, 1, 'Hindi', 'Stories', 'Manthan', 'about this book', 'Manthan', 'assets/uploads/ebooks/ebook-files/Payment.pdf', '', '0000-00-00', '0000-00-00', 'Approved', '2016-02-11', 0), (5, 1, 'English', 'Stories', 'Obama', 'About Obama', 'Obama', 'assets/uploads/ebooks/ebook-files/Payment.pdf', 'Abc_cover', '0000-00-00', '0000-00-00', 'Approved', '2016-02-13', 0), (9, 1, 'Hindi', 'Stories', 'Manthan', 'About Manthan', 'Manthan', 'assets/uploads/ebooks/ebook-files/Payment.pdf', 'Abc_cover', '0000-00-00', '0000-00-00', 'Approved', '2016-02-11', 0), (10, 1, 'English', 'Articles', 'vhg', 'asdklj', 'fghj', 'assets/uploads/ebooks/ebook-files/Payment.pdf', 'Abc_cover', '0000-00-00', '0000-00-00', 'Approved', '2016-02-11', 0), (11, 1, 'English', 'Religious', 'asbc', 'kjlhhkags sdhsl', 'Obama', 'assets/uploads/ebooks/ebook-files/Payment.pdf', 'Abc_cover', '2016-02-09', '0000-00-00', 'Approved', '2016-02-12', 0), (12, 5, 'Hindi', 'Stories', 'Life Victory', 'About Life Victory', 'Life', 'assets/uploads/ebooks/ebook-files/Payment.pdf', 'Abc_cover', '2016-02-11', '0000-00-00', 'Approved', '2016-02-13', 0), (13, 2, 'Hindi', 'Stories', 'Ajuba', 'absbfjd', 'ajuba', 'assets/uploads/ebooks/ebook-files/Payment.pdf', 'Abc_cover', '2016-02-12', '0000-00-00', 'Approved', '2016-02-12', 0), (14, 2, 'Hindi', 'Stories', 'Manthan', 'about abcd', 'Manthan', 'assets/uploads/ebooks/ebook-files/Payment.pdf', 'Abc_cover', '2016-02-13', '0000-00-00', 'Panding', '0000-00-00', 0), (15, 2, 'English', 'Stories', 'Manthan2', 'about abcd 2', 'Manthan2', 'assets/uploads/ebooks/ebook-files/Payment.pdf', 'Abc_cover', '2016-02-13', '0000-00-00', 'Panding', '0000-00-00', 0), (17, 5, 'English', 'Stories', 'Narendra Modi ', 'About Modi and him life cycle and achievements ', 'Modi', 'assets/uploads/ebooks/ebook-files/Payment.pdf', 'Abc_cover', '2016-02-13', '0000-00-00', 'Panding', '0000-00-00', 0), (20, 10, 'Hindi', 'Articles', 'Nature', 'About Wilde life nature ', 'Nature', 'assets/uploads/ebooks/ebook-files/Payment.pdf', 'Abc_cover', '2016-02-15', '0000-00-00', 'Panding', '0000-00-00', 0), (21, 10, 'Hindi', 'Stories', 'Elephant and the Tailor', 'About Elephant and Tailor''s nature', 'Elephant and the Tailor', 'assets/uploads/ebooks/ebook-files/Payment.pdf', 'Abc_cover', '2016-02-15', '0000-00-00', 'Approved', '2016-02-15', 0), (22, 10, 'Hindi', 'Stories', 'Elephant and the Tailor Part-2', 'About Elephant and Tailor''s nature', 'Elephant and the Tailor Part-2', 'assets/uploads/ebooks/ebook-files/Payment.pdf', 'Abc_cover', '2016-02-15', '0000-00-00', 'Panding', '0000-00-00', 0); -- -------------------------------------------------------- -- -- Table structure for table `events` -- CREATE TABLE `events` ( `id` int(11) NOT NULL, `author_id` int(11) NOT NULL, `title` varchar(50) NOT NULL, `event_pic` varchar(50) NOT NULL, `event_date` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `events` -- INSERT INTO `events` (`id`, `author_id`, `title`, `event_pic`, `event_date`) VALUES (2, 1, 'Republic Day Book Event', 'event.jpg', '2016-02-20'), (3, 1, 'Book Event 1', 'event.jpg', '2016-02-17'), (4, 1, 'Book Event 2', 'event.jpg', '2016-02-18'), (5, 1, 'Book Event 3', 'event.jpg', '2016-02-19'), (6, 13, 'ABC book event', 'event.jpg', '2016-02-19'); -- -- Indexes for dumped tables -- -- -- Indexes for table `authors` -- ALTER TABLE `authors` ADD PRIMARY KEY (`id`); -- -- Indexes for table `ci_sessions` -- ALTER TABLE `ci_sessions` ADD PRIMARY KEY (`id`), ADD KEY `ci_sessions_timestamp` (`timestamp`); -- -- Indexes for table `compositions` -- ALTER TABLE `compositions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `ebooks` -- ALTER TABLE `ebooks` ADD PRIMARY KEY (`id`); -- -- Indexes for table `events` -- ALTER TABLE `events` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `authors` -- ALTER TABLE `authors` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `compositions` -- ALTER TABLE `compositions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- AUTO_INCREMENT for table `ebooks` -- ALTER TABLE `ebooks` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- AUTO_INCREMENT for table `events` -- ALTER TABLE `events` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8;-- -- Database: `mewar_chessis_repairing_works` -- CREATE DATABASE IF NOT EXISTS `mewar_chessis_repairing_works` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `mewar_chessis_repairing_works`; -- -- Database: `phpmyadmin` -- CREATE DATABASE IF NOT EXISTS `phpmyadmin` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; USE `phpmyadmin`; -- -------------------------------------------------------- -- -- Table structure for table `pma__bookmark` -- CREATE TABLE `pma__bookmark` ( `id` int(11) NOT NULL, `dbase` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '', `user` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '', `label` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '', `query` text COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Bookmarks'; -- -------------------------------------------------------- -- -- Table structure for table `pma__central_columns` -- CREATE TABLE `pma__central_columns` ( `db_name` varchar(64) COLLATE utf8_bin NOT NULL, `col_name` varchar(64) COLLATE utf8_bin NOT NULL, `col_type` varchar(64) COLLATE utf8_bin NOT NULL, `col_length` text COLLATE utf8_bin, `col_collation` varchar(64) COLLATE utf8_bin NOT NULL, `col_isNull` tinyint(1) NOT NULL, `col_extra` varchar(255) COLLATE utf8_bin DEFAULT '', `col_default` text COLLATE utf8_bin ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Central list of columns'; -- -------------------------------------------------------- -- -- Table structure for table `pma__column_info` -- CREATE TABLE `pma__column_info` ( `id` int(5) UNSIGNED NOT NULL, `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `column_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `comment` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '', `mimetype` varchar(255) CHARACTER SET utf8 NOT NULL DEFAULT '', `transformation` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '', `transformation_options` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '', `input_transformation` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '', `input_transformation_options` varchar(255) COLLATE utf8_bin NOT NULL DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Column information for phpMyAdmin'; -- -------------------------------------------------------- -- -- Table structure for table `pma__designer_settings` -- CREATE TABLE `pma__designer_settings` ( `username` varchar(64) COLLATE utf8_bin NOT NULL, `settings_data` text COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Settings related to Designer'; -- -------------------------------------------------------- -- -- Table structure for table `pma__export_templates` -- CREATE TABLE `pma__export_templates` ( `id` int(5) UNSIGNED NOT NULL, `username` varchar(64) COLLATE utf8_bin NOT NULL, `export_type` varchar(10) COLLATE utf8_bin NOT NULL, `template_name` varchar(64) COLLATE utf8_bin NOT NULL, `template_data` text COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Saved export templates'; -- -------------------------------------------------------- -- -- Table structure for table `pma__favorite` -- CREATE TABLE `pma__favorite` ( `username` varchar(64) COLLATE utf8_bin NOT NULL, `tables` text COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Favorite tables'; -- -------------------------------------------------------- -- -- Table structure for table `pma__history` -- CREATE TABLE `pma__history` ( `id` bigint(20) UNSIGNED NOT NULL, `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `timevalue` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `sqlquery` text COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='SQL history for phpMyAdmin'; -- -------------------------------------------------------- -- -- Table structure for table `pma__navigationhiding` -- CREATE TABLE `pma__navigationhiding` ( `username` varchar(64) COLLATE utf8_bin NOT NULL, `item_name` varchar(64) COLLATE utf8_bin NOT NULL, `item_type` varchar(64) COLLATE utf8_bin NOT NULL, `db_name` varchar(64) COLLATE utf8_bin NOT NULL, `table_name` varchar(64) COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Hidden items of navigation tree'; -- -------------------------------------------------------- -- -- Table structure for table `pma__pdf_pages` -- CREATE TABLE `pma__pdf_pages` ( `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `page_nr` int(10) UNSIGNED NOT NULL, `page_descr` varchar(50) CHARACTER SET utf8 NOT NULL DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='PDF relation pages for phpMyAdmin'; -- -------------------------------------------------------- -- -- Table structure for table `pma__recent` -- CREATE TABLE `pma__recent` ( `username` varchar(64) COLLATE utf8_bin NOT NULL, `tables` text COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Recently accessed tables'; -- -- Dumping data for table `pma__recent` -- INSERT INTO `pma__recent` (`username`, `tables`) VALUES ('root', '[{"db":"matru_bharti","table":"authors"},{"db":"matru_bharti","table":"AUTHORS"},{"db":"matru_bharti","table":"ebooks"},{"db":"matru_bharti","table":"compositions"},{"db":"matru_bharti","table":"events"},{"db":"school_database","table":"cities"},{"db":"school_database","table":"states"},{"db":"school_database","table":"subject_class_relation"},{"db":"school_database","table":"subjects"},{"db":"school_database","table":"classes"}]'); -- -------------------------------------------------------- -- -- Table structure for table `pma__relation` -- CREATE TABLE `pma__relation` ( `master_db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `master_table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `master_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `foreign_db` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `foreign_table` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `foreign_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Relation table'; -- -------------------------------------------------------- -- -- Table structure for table `pma__savedsearches` -- CREATE TABLE `pma__savedsearches` ( `id` int(5) UNSIGNED NOT NULL, `username` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `search_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `search_data` text COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Saved searches'; -- -------------------------------------------------------- -- -- Table structure for table `pma__table_coords` -- CREATE TABLE `pma__table_coords` ( `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `pdf_page_number` int(11) NOT NULL DEFAULT '0', `x` float UNSIGNED NOT NULL DEFAULT '0', `y` float UNSIGNED NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table coordinates for phpMyAdmin PDF output'; -- -------------------------------------------------------- -- -- Table structure for table `pma__table_info` -- CREATE TABLE `pma__table_info` ( `db_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `table_name` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '', `display_field` varchar(64) COLLATE utf8_bin NOT NULL DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Table information for phpMyAdmin'; -- -------------------------------------------------------- -- -- Table structure for table `pma__table_uiprefs` -- CREATE TABLE `pma__table_uiprefs` ( `username` varchar(64) COLLATE utf8_bin NOT NULL, `db_name` varchar(64) COLLATE utf8_bin NOT NULL, `table_name` varchar(64) COLLATE utf8_bin NOT NULL, `prefs` text COLLATE utf8_bin NOT NULL, `last_update` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Tables'' UI preferences'; -- -------------------------------------------------------- -- -- Table structure for table `pma__tracking` -- CREATE TABLE `pma__tracking` ( `db_name` varchar(64) COLLATE utf8_bin NOT NULL, `table_name` varchar(64) COLLATE utf8_bin NOT NULL, `version` int(10) UNSIGNED NOT NULL, `date_created` datetime NOT NULL, `date_updated` datetime NOT NULL, `schema_snapshot` text COLLATE utf8_bin NOT NULL, `schema_sql` text COLLATE utf8_bin, `data_sql` longtext COLLATE utf8_bin, `tracking` set('UPDATE','REPLACE','INSERT','DELETE','TRUNCATE','CREATE DATABASE','ALTER DATABASE','DROP DATABASE','CREATE TABLE','ALTER TABLE','RENAME TABLE','DROP TABLE','CREATE INDEX','DROP INDEX','CREATE VIEW','ALTER VIEW','DROP VIEW') COLLATE utf8_bin DEFAULT NULL, `tracking_active` int(1) UNSIGNED NOT NULL DEFAULT '1' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Database changes tracking for phpMyAdmin'; -- -------------------------------------------------------- -- -- Table structure for table `pma__userconfig` -- CREATE TABLE `pma__userconfig` ( `username` varchar(64) COLLATE utf8_bin NOT NULL, `timevalue` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `config_data` text COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User preferences storage for phpMyAdmin'; -- -- Dumping data for table `pma__userconfig` -- INSERT INTO `pma__userconfig` (`username`, `timevalue`, `config_data`) VALUES ('root', '2016-02-08 12:22:02', '{"collation_connection":"utf8mb4_unicode_ci"}'); -- -------------------------------------------------------- -- -- Table structure for table `pma__usergroups` -- CREATE TABLE `pma__usergroups` ( `usergroup` varchar(64) COLLATE utf8_bin NOT NULL, `tab` varchar(64) COLLATE utf8_bin NOT NULL, `allowed` enum('Y','N') COLLATE utf8_bin NOT NULL DEFAULT 'N' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='User groups with configured menu items'; -- -------------------------------------------------------- -- -- Table structure for table `pma__users` -- CREATE TABLE `pma__users` ( `username` varchar(64) COLLATE utf8_bin NOT NULL, `usergroup` varchar(64) COLLATE utf8_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='Users and their assignments to user groups'; -- -- Indexes for dumped tables -- -- -- Indexes for table `pma__bookmark` -- ALTER TABLE `pma__bookmark` ADD PRIMARY KEY (`id`); -- -- Indexes for table `pma__central_columns` -- ALTER TABLE `pma__central_columns` ADD PRIMARY KEY (`db_name`,`col_name`); -- -- Indexes for table `pma__column_info` -- ALTER TABLE `pma__column_info` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `db_name` (`db_name`,`table_name`,`column_name`); -- -- Indexes for table `pma__designer_settings` -- ALTER TABLE `pma__designer_settings` ADD PRIMARY KEY (`username`); -- -- Indexes for table `pma__export_templates` -- ALTER TABLE `pma__export_templates` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `u_user_type_template` (`username`,`export_type`,`template_name`); -- -- Indexes for table `pma__favorite` -- ALTER TABLE `pma__favorite` ADD PRIMARY KEY (`username`); -- -- Indexes for table `pma__history` -- ALTER TABLE `pma__history` ADD PRIMARY KEY (`id`), ADD KEY `username` (`username`,`db`,`table`,`timevalue`); -- -- Indexes for table `pma__navigationhiding` -- ALTER TABLE `pma__navigationhiding` ADD PRIMARY KEY (`username`,`item_name`,`item_type`,`db_name`,`table_name`); -- -- Indexes for table `pma__pdf_pages` -- ALTER TABLE `pma__pdf_pages` ADD PRIMARY KEY (`page_nr`), ADD KEY `db_name` (`db_name`); -- -- Indexes for table `pma__recent` -- ALTER TABLE `pma__recent` ADD PRIMARY KEY (`username`); -- -- Indexes for table `pma__relation` -- ALTER TABLE `pma__relation` ADD PRIMARY KEY (`master_db`,`master_table`,`master_field`), ADD KEY `foreign_field` (`foreign_db`,`foreign_table`); -- -- Indexes for table `pma__savedsearches` -- ALTER TABLE `pma__savedsearches` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `u_savedsearches_username_dbname` (`username`,`db_name`,`search_name`); -- -- Indexes for table `pma__table_coords` -- ALTER TABLE `pma__table_coords` ADD PRIMARY KEY (`db_name`,`table_name`,`pdf_page_number`); -- -- Indexes for table `pma__table_info` -- ALTER TABLE `pma__table_info` ADD PRIMARY KEY (`db_name`,`table_name`); -- -- Indexes for table `pma__table_uiprefs` -- ALTER TABLE `pma__table_uiprefs` ADD PRIMARY KEY (`username`,`db_name`,`table_name`); -- -- Indexes for table `pma__tracking` -- ALTER TABLE `pma__tracking` ADD PRIMARY KEY (`db_name`,`table_name`,`version`); -- -- Indexes for table `pma__userconfig` -- ALTER TABLE `pma__userconfig` ADD PRIMARY KEY (`username`); -- -- Indexes for table `pma__usergroups` -- ALTER TABLE `pma__usergroups` ADD PRIMARY KEY (`usergroup`,`tab`,`allowed`); -- -- Indexes for table `pma__users` -- ALTER TABLE `pma__users` ADD PRIMARY KEY (`username`,`usergroup`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `pma__bookmark` -- ALTER TABLE `pma__bookmark` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `pma__column_info` -- ALTER TABLE `pma__column_info` MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `pma__export_templates` -- ALTER TABLE `pma__export_templates` MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `pma__history` -- ALTER TABLE `pma__history` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `pma__pdf_pages` -- ALTER TABLE `pma__pdf_pages` MODIFY `page_nr` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `pma__savedsearches` -- ALTER TABLE `pma__savedsearches` MODIFY `id` int(5) UNSIGNED NOT NULL AUTO_INCREMENT;-- -- Database: `school_database` -- CREATE DATABASE IF NOT EXISTS `school_database` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `school_database`; -- -------------------------------------------------------- -- -- Table structure for table `cities` -- CREATE TABLE `cities` ( `id` int(11) NOT NULL, `name` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `classes` -- CREATE TABLE `classes` ( `id` int(11) NOT NULL, `name` varchar(30) NOT NULL, `code` varchar(30) NOT NULL, `segment` varchar(30) NOT NULL, `stream` varchar(30) NOT NULL, `level` tinyint(4) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `code_categories` -- CREATE TABLE `code_categories` ( `id` int(11) NOT NULL, `category_name` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `codes` -- CREATE TABLE `codes` ( `id` int(11) NOT NULL, `code_categories_id` int(11) NOT NULL, `code_name` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `gallery` -- CREATE TABLE `gallery` ( `id` int(11) NOT NULL, `image_path` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `schools` -- CREATE TABLE `schools` ( `id` int(11) NOT NULL, `name` varchar(255) NOT NULL, `phone` varchar(50) NOT NULL, `fax` varchar(50) NOT NULL, `affiliation` varchar(50) NOT NULL, `admission_no` varchar(10) NOT NULL, `address` varchar(255) NOT NULL, `website` varchar(150) NOT NULL, `email` varchar(100) NOT NULL, `code` varchar(50) NOT NULL, `type` varchar(50) NOT NULL, `id_card_header` varchar(100) NOT NULL, `receipt_header` varchar(100) NOT NULL, `receipt_footer` varchar(100) NOT NULL, `tc_receipt_header` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `sessions` -- CREATE TABLE `sessions` ( `id` int(11) NOT NULL, `session_years` int(11) NOT NULL, `current_session` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `states` -- CREATE TABLE `states` ( `id` int(11) NOT NULL, `name` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `subject_class_relation` -- CREATE TABLE `subject_class_relation` ( `id` int(11) NOT NULL, `subject_id` int(11) NOT NULL, `class_id` int(11) NOT NULL, `exam_applicable` tinyint(4) NOT NULL, `teacher_applicable` tinyint(4) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `subjects` -- CREATE TABLE `subjects` ( `id` int(11) NOT NULL, `code` varchar(50) NOT NULL, `name` varchar(100) NOT NULL, `type` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `thoughts` -- CREATE TABLE `thoughts` ( `id` int(11) NOT NULL, `text` varchar(255) NOT NULL, `date` date NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table `cities` -- ALTER TABLE `cities` ADD PRIMARY KEY (`id`); -- -- Indexes for table `classes` -- ALTER TABLE `classes` ADD PRIMARY KEY (`id`); -- -- Indexes for table `code_categories` -- ALTER TABLE `code_categories` ADD PRIMARY KEY (`id`); -- -- Indexes for table `codes` -- ALTER TABLE `codes` ADD PRIMARY KEY (`id`); -- -- Indexes for table `gallery` -- ALTER TABLE `gallery` ADD PRIMARY KEY (`id`); -- -- Indexes for table `schools` -- ALTER TABLE `schools` ADD PRIMARY KEY (`id`); -- -- Indexes for table `sessions` -- ALTER TABLE `sessions` ADD PRIMARY KEY (`id`); -- -- Indexes for table `states` -- ALTER TABLE `states` ADD PRIMARY KEY (`id`); -- -- Indexes for table `subject_class_relation` -- ALTER TABLE `subject_class_relation` ADD PRIMARY KEY (`id`); -- -- Indexes for table `subjects` -- ALTER TABLE `subjects` ADD PRIMARY KEY (`id`); -- -- Indexes for table `thoughts` -- ALTER TABLE `thoughts` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `cities` -- ALTER TABLE `cities` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `classes` -- ALTER TABLE `classes` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `code_categories` -- ALTER TABLE `code_categories` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `codes` -- ALTER TABLE `codes` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `gallery` -- ALTER TABLE `gallery` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `schools` -- ALTER TABLE `schools` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `sessions` -- ALTER TABLE `sessions` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `states` -- ALTER TABLE `states` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `subject_class_relation` -- ALTER TABLE `subject_class_relation` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `subjects` -- ALTER TABLE `subjects` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `thoughts` -- ALTER TABLE `thoughts` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;-- -- Database: `test` -- CREATE DATABASE IF NOT EXISTS `test` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci; USE `test`; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Czas generowania: 29 Cze 2017, 11:48 -- Wersja serwera: 10.1.21-MariaDB -- Wersja PHP: 7.0.20 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 */; -- -- Baza danych: `test2` -- -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `ewid_czlonkowie` -- CREATE TABLE `ewid_czlonkowie` ( `id` int(11) NOT NULL, `imie` text COLLATE utf8mb4_unicode_ci NOT NULL, `nazwisko` text COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Zrzut danych tabeli `ewid_czlonkowie` -- INSERT INTO `ewid_czlonkowie` (`id`, `imie`, `nazwisko`) VALUES (1, 'John', 'Doe'); -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `gosp_plan` -- CREATE TABLE `gosp_plan` ( `id` int(11) NOT NULL, `rok` text COLLATE utf8mb4_unicode_ci NOT NULL, `utworzony` date NOT NULL, `przez` int(11) NOT NULL, `stan` int(11) NOT NULL, `planowane` int(11) NOT NULL, `upadki` int(11) NOT NULL, `pozyskano` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Zrzut danych tabeli `gosp_plan` -- INSERT INTO `gosp_plan` (`id`, `rok`, `utworzony`, `przez`, `stan`, `planowane`, `upadki`, `pozyskano`) VALUES (1, '2017/2018', '2017-03-31', 1, 2, 1, 3, 4); -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `gosp_prace` -- CREATE TABLE `gosp_prace` ( `id` int(11) NOT NULL, `kiedy` date NOT NULL, `prowadzil` int(11) NOT NULL, `opis` text COLLATE utf8mb4_unicode_ci NOT NULL, `uczestnicy` text COLLATE utf8mb4_unicode_ci NOT NULL, `poczatek` datetime NOT NULL, `koniec` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `gosp_upadki` -- CREATE TABLE `gosp_upadki` ( `id` int(11) NOT NULL, `rok` text COLLATE utf8mb4_unicode_ci NOT NULL, `utworzony` date NOT NULL, `przez` int(11) NOT NULL, `upadek` text COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `gosp_urzadzenia` -- CREATE TABLE `gosp_urzadzenia` ( `id` int(11) NOT NULL, `numer` int(11) NOT NULL, `nazwa` text COLLATE utf8mb4_unicode_ci NOT NULL, `typ` int(11) NOT NULL, `rokBudowy` text COLLATE utf8mb4_unicode_ci NOT NULL, `opiekun` int(11) NOT NULL, `gps` text COLLATE utf8mb4_unicode_ci NOT NULL, `zdjecie` text COLLATE utf8mb4_unicode_ci NOT NULL, `taskId` text COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Zrzut danych tabeli `gosp_urzadzenia` -- INSERT INTO `gosp_urzadzenia` (`id`, `numer`, `nazwa`, `typ`, `rokBudowy`, `opiekun`, `gps`, `zdjecie`, `taskId`) VALUES (1, 13, 'Świerczynki', 1, '1990', 1, '[53.10,12.30]', 'default-image.jpg', '-'); -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `gosp_urzadzenia_typ` -- CREATE TABLE `gosp_urzadzenia_typ` ( `id` int(11) NOT NULL, `typ` text COLLATE utf8mb4_unicode_ci NOT NULL, `inicjal` text COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Zrzut danych tabeli `gosp_urzadzenia_typ` -- INSERT INTO `gosp_urzadzenia_typ` (`id`, `typ`, `inicjal`) VALUES (1, 'Ambona', 'AMB'), (2, 'Zwyżka', 'ZWY'); -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `gosp_zadania` -- CREATE TABLE `gosp_zadania` ( `id` int(11) NOT NULL, `utworzony` date NOT NULL, `przez` int(11) NOT NULL, `dla` int(11) NOT NULL, `zakonczony` date NOT NULL, `status` int(11) NOT NULL, `tytul` text COLLATE utf8mb4_unicode_ci NOT NULL, `tresc` text COLLATE utf8mb4_unicode_ci NOT NULL, `urzadzenie` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `gosp_zadania_status` -- CREATE TABLE `gosp_zadania_status` ( `id` int(11) NOT NULL, `status` text COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `gosp_zwierzyna` -- CREATE TABLE `gosp_zwierzyna` ( `id` int(11) NOT NULL, `jelenByk` int(11) NOT NULL, `jelenLania` int(11) NOT NULL, `jelenCielak` int(11) NOT NULL, `sarnaKoziol` int(11) NOT NULL, `sarnaKoza` int(11) NOT NULL, `sarnaKozle` int(11) NOT NULL, `Dzik` int(11) NOT NULL, `Lis` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Zrzut danych tabeli `gosp_zwierzyna` -- INSERT INTO `gosp_zwierzyna` (`id`, `jelenByk`, `jelenLania`, `jelenCielak`, `sarnaKoziol`, `sarnaKoza`, `sarnaKozle`, `Dzik`, `Lis`) VALUES (1, 10, 15, 12, 12, 16, 9, 180, 50), (2, 26, 31, 19, 38, 41, 22, 320, 100), (3, 0, 0, 0, 0, 0, 0, 0, 0), (4, 1, 2, 1, 0, 6, 2, 45, 11); -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Zrzut danych tabeli `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); -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `last_name` text COLLATE utf8_unicode_ci, `role` text COLLATE utf8_unicode_ci ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Zrzut danych tabeli `users` -- INSERT INTO `users` (`id`, `name`, `email`, `password`, `remember_token`, `created_at`, `updated_at`, `last_name`, `role`) VALUES (1, 'John', '<EMAIL>', <PASSWORD>', '<PASSWORD>', '2017-06-21 05:21:57', '2017-06-21 05:21:57', 'Doe', 'S'), (11, 'Billy', '<EMAIL>', <PASSWORD>', 'X8Bb45h1s9UxFCzrFCqVlAeA<PASSWORD>', '2017-06-29 05:14:10', '2017-06-29 05:14:10', 'Joe', 'A'); -- -- Indeksy dla zrzutów tabel -- -- -- Indexes for table `ewid_czlonkowie` -- ALTER TABLE `ewid_czlonkowie` ADD PRIMARY KEY (`id`); -- -- Indexes for table `gosp_plan` -- ALTER TABLE `gosp_plan` ADD PRIMARY KEY (`id`), ADD KEY `gosp_plan_fk0` (`przez`), ADD KEY `gosp_plan_fk1` (`stan`), ADD KEY `gosp_plan_fk2` (`planowane`), ADD KEY `gosp_plan_fk3` (`upadki`), ADD KEY `gosp_plan_fk4` (`pozyskano`); -- -- Indexes for table `gosp_prace` -- ALTER TABLE `gosp_prace` ADD PRIMARY KEY (`id`), ADD KEY `gosp_prace_fk0` (`prowadzil`); -- -- Indexes for table `gosp_upadki` -- ALTER TABLE `gosp_upadki` ADD PRIMARY KEY (`id`), ADD KEY `gosp_upadki_fk0` (`przez`); -- -- Indexes for table `gosp_urzadzenia` -- ALTER TABLE `gosp_urzadzenia` ADD PRIMARY KEY (`id`), ADD KEY `gosp_urzadzenia_fk1` (`opiekun`), ADD KEY `gosp_urzadzenia_fk3` (`typ`); -- -- Indexes for table `gosp_urzadzenia_typ` -- ALTER TABLE `gosp_urzadzenia_typ` ADD PRIMARY KEY (`id`); -- -- Indexes for table `gosp_zadania` -- ALTER TABLE `gosp_zadania` ADD PRIMARY KEY (`id`), ADD KEY `gosp_zadania_fk0` (`przez`), ADD KEY `gosp_zadania_fk1` (`dla`), ADD KEY `gosp_zadania_fk2` (`status`), ADD KEY `gosp_zadania_fk3` (`urzadzenie`); -- -- Indexes for table `gosp_zadania_status` -- ALTER TABLE `gosp_zadania_status` ADD PRIMARY KEY (`id`); -- -- Indexes for table `gosp_zwierzyna` -- ALTER TABLE `gosp_zwierzyna` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT dla tabeli `ewid_czlonkowie` -- ALTER TABLE `ewid_czlonkowie` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT dla tabeli `gosp_plan` -- ALTER TABLE `gosp_plan` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT dla tabeli `gosp_prace` -- ALTER TABLE `gosp_prace` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT dla tabeli `gosp_upadki` -- ALTER TABLE `gosp_upadki` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT dla tabeli `gosp_urzadzenia` -- ALTER TABLE `gosp_urzadzenia` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT dla tabeli `gosp_zadania` -- ALTER TABLE `gosp_zadania` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT dla tabeli `gosp_zadania_status` -- ALTER TABLE `gosp_zadania_status` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT dla tabeli `gosp_zwierzyna` -- ALTER TABLE `gosp_zwierzyna` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT dla tabeli `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT dla tabeli `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- Ograniczenia dla zrzutów tabel -- -- -- Ograniczenia dla tabeli `gosp_plan` -- ALTER TABLE `gosp_plan` ADD CONSTRAINT `gosp_plan_fk0` FOREIGN KEY (`przez`) REFERENCES `ewid_czlonkowie` (`id`), ADD CONSTRAINT `gosp_plan_fk1` FOREIGN KEY (`stan`) REFERENCES `gosp_zwierzyna` (`id`), ADD CONSTRAINT `gosp_plan_fk2` FOREIGN KEY (`planowane`) REFERENCES `gosp_zwierzyna` (`id`), ADD CONSTRAINT `gosp_plan_fk3` FOREIGN KEY (`upadki`) REFERENCES `gosp_zwierzyna` (`id`), ADD CONSTRAINT `gosp_plan_fk4` FOREIGN KEY (`pozyskano`) REFERENCES `gosp_zwierzyna` (`id`); -- -- Ograniczenia dla tabeli `gosp_prace` -- ALTER TABLE `gosp_prace` ADD CONSTRAINT `gosp_prace_fk0` FOREIGN KEY (`prowadzil`) REFERENCES `ewid_czlonkowie` (`id`); -- -- Ograniczenia dla tabeli `gosp_upadki` -- ALTER TABLE `gosp_upadki` ADD CONSTRAINT `gosp_upadki_fk0` FOREIGN KEY (`przez`) REFERENCES `ewid_czlonkowie` (`id`); -- -- Ograniczenia dla tabeli `gosp_urzadzenia` -- ALTER TABLE `gosp_urzadzenia` ADD CONSTRAINT `gosp_urzadzenia_fk0` FOREIGN KEY (`typ`) REFERENCES `gosp_urzadzenia_typ` (`id`), ADD CONSTRAINT `gosp_urzadzenia_fk1` FOREIGN KEY (`opiekun`) REFERENCES `ewid_czlonkowie` (`id`), ADD CONSTRAINT `gosp_urzadzenia_fk3` FOREIGN KEY (`typ`) REFERENCES `gosp_urzadzenia_typ` (`id`); -- -- Ograniczenia dla tabeli `gosp_zadania` -- ALTER TABLE `gosp_zadania` ADD CONSTRAINT `gosp_zadania_fk0` FOREIGN KEY (`przez`) REFERENCES `ewid_czlonkowie` (`id`), ADD CONSTRAINT `gosp_zadania_fk1` FOREIGN KEY (`dla`) REFERENCES `ewid_czlonkowie` (`id`), ADD CONSTRAINT `gosp_zadania_fk2` FOREIGN KEY (`status`) REFERENCES `gosp_zadania_status` (`id`), ADD CONSTRAINT `gosp_zadania_fk3` FOREIGN KEY (`urzadzenie`) REFERENCES `gosp_urzadzenia` (`id`); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50547 Source Host : localhost:3306 Source Schema : ci_module Target Server Type : MySQL Target Server Version : 50547 File Encoding : 65001 Date: 25/09/2018 11:50:55 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for ci_admin_user_role -- ---------------------------- DROP TABLE IF EXISTS `ci_admin_user_role`; CREATE TABLE `ci_admin_user_role` ( `admin_user_id` int(10) UNSIGNED NOT NULL, `role_id` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`admin_user_id`, `role_id`) USING BTREE, INDEX `admin_user_role_role_id_foreign`(`role_id`) USING BTREE, CONSTRAINT `admin_user_role_admin_user_id_foreign` FOREIGN KEY (`admin_user_id`) REFERENCES `admin_users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `admin_user_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `ci_roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Compact; -- ---------------------------- -- Records of ci_admin_user_role -- ---------------------------- INSERT INTO `ci_admin_user_role` VALUES (14, 23); INSERT INTO `ci_admin_user_role` VALUES (7, 24); -- ---------------------------- -- Table structure for ci_adminuser -- ---------------------------- DROP TABLE IF EXISTS `ci_adminuser`; CREATE TABLE `ci_adminuser` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `password` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `nickname` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `status` tinyint(1) NOT NULL COMMENT '状态 1禁用 0正常', `is_super` tinyint(1) NOT NULL COMMENT '是否是超管 1是 0不是', `addtime` datetime NOT NULL, `last_login_time` datetime NULL DEFAULT NULL, `is_system` tinyint(1) UNSIGNED NULL DEFAULT NULL COMMENT '是否系统用户1是 0不是', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Compact; -- ---------------------------- -- Records of ci_adminuser -- ---------------------------- INSERT INTO `ci_adminuser` VALUES (1, 'zhanglong', '$2y$10$6CM.tZAdvuowYD/Na1as0eCtFTZrXbnc8RRl8ziWEZ75CHENqhpGy', '超管', 0, 1, '2018-09-17 17:54:07', '2018-09-25 10:56:25', 1); -- ---------------------------- -- Table structure for ci_privileges -- ---------------------------- DROP TABLE IF EXISTS `ci_privileges`; CREATE TABLE `ci_privileges` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `method` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `controller` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `param` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `parent_id` int(10) UNSIGNED NOT NULL DEFAULT 0, `addtime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `show_at` tinyint(1) NULL DEFAULT 0 COMMENT '0 顶部 1左侧 2列表上面 3列表项', `listorder` int(4) NULL DEFAULT NULL, `is_show` tinyint(1) NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `controller_method`(`controller`, `method`) USING BTREE, INDEX `parent_id`(`parent_id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 33 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '权限节点' ROW_FORMAT = Compact; -- ---------------------------- -- Records of ci_privileges -- ---------------------------- INSERT INTO `ci_privileges` VALUES (2, '系统设置', '#re', 'Setting', '', 0, '2018-09-17 18:12:31', 0, 3, NULL); INSERT INTO `ci_privileges` VALUES (3, '管理员角色', '#ad', 'Adminuser', '', 0, '2018-09-25 11:29:48', 0, 2, NULL); INSERT INTO `ci_privileges` VALUES (6, '轮播图列表', 'index', 'Banners', '', 2, '2018-09-17 18:12:55', 1, NULL, NULL); INSERT INTO `ci_privileges` VALUES (7, '添加', 'create', 'Banners', '', 6, '2018-09-17 18:12:55', 2, 0, 1); INSERT INTO `ci_privileges` VALUES (8, '编辑', 'edit', 'Banners', '', 6, '2018-09-17 18:12:55', 3, 0, 1); INSERT INTO `ci_privileges` VALUES (9, '删除', 'delete', 'Banners', '', 6, '2018-09-17 18:12:55', 3, 0, 1); INSERT INTO `ci_privileges` VALUES (10, '批量删除', 'batch_delete', 'Banners', '', 6, '2018-09-17 18:12:55', 2, 0, 1); INSERT INTO `ci_privileges` VALUES (12, '管理员列表', 'index', 'Adminuser', '', 3, '2018-09-25 10:58:37', 1, NULL, NULL); INSERT INTO `ci_privileges` VALUES (13, '添加', 'create', 'Adminuser', '', 12, '2018-09-25 10:58:37', 2, 0, 1); INSERT INTO `ci_privileges` VALUES (14, '编辑', 'edit', 'Adminuser', '', 12, '2018-09-25 10:58:37', 3, 0, 1); INSERT INTO `ci_privileges` VALUES (15, '删除', 'delete', 'Adminuser', '', 12, '2018-09-25 10:58:37', 3, 0, 1); INSERT INTO `ci_privileges` VALUES (16, '批量删除', 'batch_delete', 'Adminuser', '', 12, '2018-09-25 10:58:37', 2, 0, 1); INSERT INTO `ci_privileges` VALUES (17, '权限节点', 'index', 'Privileges', '', 3, '2018-09-25 11:03:35', 1, NULL, NULL); INSERT INTO `ci_privileges` VALUES (18, '添加', 'create', 'Privileges', '', 17, '2018-09-25 11:03:35', 2, 0, 1); INSERT INTO `ci_privileges` VALUES (19, '编辑', 'edit', 'Privileges', '', 17, '2018-09-25 11:03:35', 3, 0, 1); INSERT INTO `ci_privileges` VALUES (20, '删除', 'delete', 'Privileges', '', 17, '2018-09-25 11:03:35', 3, 0, 1); INSERT INTO `ci_privileges` VALUES (21, '批量删除', 'batch_delete', 'Privileges', '', 17, '2018-09-25 11:03:35', 2, 0, 1); INSERT INTO `ci_privileges` VALUES (22, '设置项', 'index', 'Setting', '', 2, '2018-09-25 11:04:02', 1, NULL, NULL); INSERT INTO `ci_privileges` VALUES (23, '添加', 'create', 'Setting', '', 22, '2018-09-25 11:04:02', 2, 0, 1); INSERT INTO `ci_privileges` VALUES (24, '编辑', 'edit', 'Setting', '', 22, '2018-09-25 11:04:02', 3, 0, 1); INSERT INTO `ci_privileges` VALUES (25, '删除', 'delete', 'Setting', '', 22, '2018-09-25 11:04:02', 3, 0, 1); INSERT INTO `ci_privileges` VALUES (26, '批量删除', 'batch_delete', 'Setting', '', 22, '2018-09-25 11:04:02', 2, 0, 1); INSERT INTO `ci_privileges` VALUES (27, '排序', 'listorder', 'Privileges', '', 17, '2018-09-25 11:27:26', 2, NULL, NULL); INSERT INTO `ci_privileges` VALUES (28, '角色管理', 'index', 'Roles', '', 3, '2018-09-25 11:34:05', 1, NULL, NULL); INSERT INTO `ci_privileges` VALUES (29, '添加', 'create', 'Roles', '', 28, '2018-09-25 11:34:05', 2, 0, 1); INSERT INTO `ci_privileges` VALUES (30, '编辑', 'edit', 'Roles', '', 28, '2018-09-25 11:34:05', 3, 0, 1); INSERT INTO `ci_privileges` VALUES (31, '删除', 'delete', 'Roles', '', 28, '2018-09-25 11:34:05', 3, 0, 1); INSERT INTO `ci_privileges` VALUES (32, '批量删除', 'batch_delete', 'Roles', '', 28, '2018-09-25 11:34:05', 2, 0, 1); -- ---------------------------- -- Table structure for ci_privileges_role -- ---------------------------- DROP TABLE IF EXISTS `ci_privileges_role`; CREATE TABLE `ci_privileges_role` ( `permission_id` int(10) UNSIGNED NOT NULL, `role_id` int(10) UNSIGNED NOT NULL, PRIMARY KEY (`permission_id`, `role_id`) USING BTREE, INDEX `permission_role_role_id_foreign`(`role_id`) USING BTREE, CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `ci_roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Compact; -- ---------------------------- -- Table structure for ci_roles -- ---------------------------- DROP TABLE IF EXISTS `ci_roles`; CREATE TABLE `ci_roles` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `display_name` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, `description` varchar(191) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, UNIQUE INDEX `roles_name_unique`(`name`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 26 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Compact; -- ---------------------------- -- Records of ci_roles -- ---------------------------- INSERT INTO `ci_roles` VALUES (23, '将军', '将军', '系统超管,最高权限', '2018-08-11 15:26:31', '2018-08-11 15:26:56'); INSERT INTO `ci_roles` VALUES (24, '测试', '测试', '测试', '2018-08-11 15:28:08', '2018-08-12 15:52:51'); -- ---------------------------- -- Table structure for ci_settings -- ---------------------------- DROP TABLE IF EXISTS `ci_settings`; CREATE TABLE `ci_settings` ( `id` int(122) UNSIGNED NOT NULL AUTO_INCREMENT, `keys` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `value` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, `type` tinyint(1) UNSIGNED NULL DEFAULT 0, `created_at` datetime NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE, INDEX `keys`(`keys`(191)) USING BTREE ) ENGINE = MyISAM AUTO_INCREMENT = 21 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of ci_settings -- ---------------------------- INSERT INTO `ci_settings` VALUES (1, 'website', 'Expense Management', 1, '2018-08-24 11:45:56'); INSERT INTO `ci_settings` VALUES (2, 'logo', 'logo.png', 1, '2018-08-24 11:45:56'); INSERT INTO `ci_settings` VALUES (3, 'favicon', 'favicon.ico', 3, '2018-08-24 11:45:56'); INSERT INTO `ci_settings` VALUES (9, 'mail_setting', 'simple_mail', 1, '2018-08-24 11:45:56'); INSERT INTO `ci_settings` VALUES (10, 'companyname', '&lt;ul class=&quot; list-paddingleft-2&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;a class=&quot;reference internal&quot; href=&quot;../tutorial/index.html&quot;&gt;教程 - 内容提要&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;ul class=&quot; list-paddingleft-2&quot; style=&quot;list-style-type: square;&quot;&gt;&lt;li&gt;&lt;p&gt;&lt;a class=&quot;reference internal&quot; href=&quot;../tutorial/static_pages.html&quot;&gt;加载静态内容&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a class=&quot;reference internal&quot; href=&quot;../tutorial/news_section.html&quot;&gt;读取新闻条目&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a class=&quot;reference internal&quot; href=&quot;../tutorial/create_news_items.html&quot;&gt;创建新闻条目&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a class=&quot;reference internal&quot; href=&quot;../tutorial/conclusion.html&quot;&gt;结束语&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;', 3, '2018-08-24 11:45:56'); INSERT INTO `ci_settings` VALUES (19, 'aaron', '123123', 1, '2018-08-24 11:45:56'); INSERT INTO `ci_settings` VALUES (20, 'website', 'Expense Management123111', 1, '2018-08-24 11:45:56'); SET FOREIGN_KEY_CHECKS = 1;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 13-06-2019 a las 06:18:06 -- Versión del servidor: 10.1.38-MariaDB -- Versión de PHP: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de datos: `autosol` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `empleados` -- CREATE TABLE `empleados` ( `id` int(11) NOT NULL, `fname` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `lname` varchar(200) COLLATE utf8_unicode_ci NOT NULL, `foranea` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `gantt_links` -- CREATE TABLE `gantt_links` ( `id` int(11) NOT NULL, `source` int(11) NOT NULL, `target` int(11) NOT NULL, `type` varchar(255) NOT NULL, `fname` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `gantt_tasks` -- CREATE TABLE `gantt_tasks` ( `id` int(11) NOT NULL, `mecanico` varchar(200) NOT NULL, `cliente` varchar(100) NOT NULL, `patente` varchar(7) NOT NULL, `vehiculo` varchar(100) NOT NULL, `text` varchar(255) NOT NULL, `start_date` datetime NOT NULL, `duration` int(11) NOT NULL, `progress` float NOT NULL, `sortorder` double NOT NULL DEFAULT '0', `parent` int(11) NOT NULL, `deadline` datetime DEFAULT NULL, `planned_start` datetime DEFAULT NULL, `planned_end` datetime DEFAULT NULL, `end_date` datetime NOT NULL, `estado` enum('Terminado','Ejecutando','Detenido') NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Volcado de datos para la tabla `gantt_tasks` -- INSERT INTO `gantt_tasks` (`id`, `mecanico`, `cliente`, `patente`, `vehiculo`, `text`, `start_date`, `duration`, `progress`, `sortorder`, `parent`, `deadline`, `planned_start`, `planned_end`, `end_date`, `estado`) VALUES (129, 'Menoti', '<NAME>', 'yg69pp', 'Senda', 'Cambio Bujias', '2019-06-13 08:00:00', 2, 0, 0, 0, NULL, NULL, NULL, '0000-00-00 00:00:00', 'Ejecutando'), (130, 'Messi', '<NAME>', 'OO63RE', 'Amarok', 'Cambio Tensor', '2019-06-13 09:00:00', 1, 0, 0, 0, NULL, NULL, NULL, '0000-00-00 00:00:00', 'Ejecutando'), (131, 'Basile', '<NAME>', 'AS54YU', 'Vento', 'Cardan', '2019-06-13 10:00:00', 2, 0, 0, 0, NULL, NULL, NULL, '0000-00-00 00:00:00', 'Detenido'), (132, 'Messi', '<NAME>', 'QU87OO', 'Voyage', 'Correa', '2019-06-13 11:00:00', 3, 0, 0, 0, NULL, NULL, NULL, '0000-00-00 00:00:00', 'Terminado'), (133, '', '<NAME>', 'OI89UII', 'Senda', 'Alineado', '0000-00-00 00:00:00', 0, 0, 0, 0, NULL, NULL, NULL, '0000-00-00 00:00:00', 'Terminado'), (134, '', '<NAME>', 'QQ88UH', 'Ciroco', 'Balanceo', '0000-00-00 00:00:00', 0, 0, 0, 0, NULL, NULL, NULL, '0000-00-00 00:00:00', 'Terminado'), (135, '', '<NAME>', 'RT67UN', 'Amarok', 'Service 100km', '0000-00-00 00:00:00', 0, 0, 0, 0, NULL, NULL, NULL, '0000-00-00 00:00:00', 'Terminado'), (136, '', '<NAME>', 'tv42ws', 'Senda', 'Cambio de Bomba', '0000-00-00 00:00:00', 0, 0, 0, 0, NULL, NULL, NULL, '0000-00-00 00:00:00', 'Terminado'), (137, '', '<NAME>', 'YY10YB', 'Virtus', 'Pastillas', '0000-00-00 00:00:00', 0, 0, 0, 0, NULL, NULL, NULL, '0000-00-00 00:00:00', 'Terminado'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `gantt_tasks_has_members` -- CREATE TABLE `gantt_tasks_has_members` ( `gantt_tasks_id` int(11) NOT NULL, `members_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `members` -- CREATE TABLE `members` ( `id` varchar(200) NOT NULL, `fname` varchar(255) NOT NULL, `age` varchar(255) NOT NULL, `contact` varchar(255) NOT NULL, `id_fktarea` int(11) NOT NULL, `cargo` varchar(40) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `members` -- INSERT INTO `members` (`id`, `fname`, `age`, `contact`, `id_fktarea`, `cargo`) VALUES ('Basile', 'jose', '23', '999', 0, 'Mecanico'), ('Menoti', 'Juan', '32', 'ada', 0, 'Electricista'), ('Messi', 'Lionel', '25', 'asd', 0, 'Mecanico'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `tasks_links` -- CREATE TABLE `tasks_links` ( `gantt_tasks_id` int(11) NOT NULL, `gantt_links_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `empleados` -- ALTER TABLE `empleados` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `gantt_links` -- ALTER TABLE `gantt_links` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `gantt_tasks` -- ALTER TABLE `gantt_tasks` ADD PRIMARY KEY (`id`); -- -- Indices de la tabla `gantt_tasks_has_members` -- ALTER TABLE `gantt_tasks_has_members` ADD PRIMARY KEY (`gantt_tasks_id`,`members_id`); -- -- Indices de la tabla `members` -- ALTER TABLE `members` ADD PRIMARY KEY (`id`), ADD KEY `id_fktarea` (`id_fktarea`), ADD KEY `id_fktarea_2` (`id_fktarea`); -- -- Indices de la tabla `tasks_links` -- ALTER TABLE `tasks_links` ADD PRIMARY KEY (`gantt_tasks_id`,`gantt_links_id`), ADD KEY `fk_gantt_tasks_has_gantt_links_gantt_links1_idx` (`gantt_links_id`), ADD KEY `fk_gantt_tasks_has_gantt_links_gantt_tasks_idx` (`gantt_tasks_id`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `empleados` -- ALTER TABLE `empleados` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT de la tabla `gantt_links` -- ALTER TABLE `gantt_links` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT de la tabla `gantt_tasks` -- ALTER TABLE `gantt_tasks` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=138; -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `tasks_links` -- ALTER TABLE `tasks_links` ADD CONSTRAINT `fk_gantt_tasks_has_gantt_links_gantt_links1` FOREIGN KEY (`gantt_links_id`) REFERENCES `gantt_links` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_gantt_tasks_has_gantt_links_gantt_tasks` FOREIGN KEY (`gantt_tasks_id`) REFERENCES `gantt_tasks` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; 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>ministryofjustice/opg-ansible-roles GRANT SELECT ON `{{ rds_instance_data.db_name }}`.* TO '{{ user_data.username }}'@'*' IDENTIFIED BY '{{ user_data.password }}'; FLUSH PRIVILEGES;
CREATE TABLE IF NOT EXISTS article_favorites ( user_id UUID NOT NULL, article_id UUID NOT NULL, PRIMARY KEY(user_id, article_id), CONSTRAINT fk_article_favorites_user FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE, CONSTRAINT fk_article_favorites_article FOREIGN KEY (article_id) REFERENCES articles(id) ON DELETE CASCADE );
-- AlterTable ALTER TABLE "watcheds" ADD COLUMN "createdAt" TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP, ADD COLUMN "updateAt" TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP;
alter table claimant RENAME COLUMN household_identifier TO dwp_household_identifier; alter table claimant ADD COLUMN hmrc_household_identifier varchar(50);
<reponame>xoxefdp/farmacia<filename>farmaciaDBdata.sql -- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 13, 2015 at 05:41 PM -- Server version: 5.5.44-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; CREATE DATABASE farmacia; USE farmacia; -- -- Database: `farmacia` -- -- -------------------------------------------------------- -- -- Table structure for table `componente` -- CREATE TABLE IF NOT EXISTS `componente` ( `idComponente` int(11) NOT NULL AUTO_INCREMENT, `nombreDelComponente` varchar(60) NOT NULL, PRIMARY KEY (`idComponente`), UNIQUE KEY `nombreDelComponente` (`nombreDelComponente`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=20 ; -- -- Dumping data for table `componente` -- INSERT INTO `componente` (`idComponente`, `nombreDelComponente`) VALUES (7, 'Acetaminofen'), (10, 'Almidon de maiz'), (12, 'Cafeina anhidra'), (13, 'Clopidogrel sulfato '), (19, 'Dextroclorfeniramina maleato'), (15, 'Hidroclorotiazida'), (17, 'Irbesartan'), (8, 'Itraconazol'), (11, 'Lactosa'), (9, 'Loratadina'), (1, 'N-butilbromuro de hioscina'), (18, 'Rojo #40'), (4, 'Valsartan'), (16, '<NAME>'); -- -------------------------------------------------------- -- -- Stand-in structure for view `fichadeproducto` -- CREATE TABLE IF NOT EXISTS `fichadeproducto` ( `idMedicamento` int(11) ,`nombreComercial` varchar(60) ,`idComponente` int(6) ,`cantidadDelComponente` double ,`idUnidadDeMedida` int(6) ,`nombreDelComponente` varchar(60) ,`nombreDeLaUnidadDeMedida` varchar(20) ); -- -------------------------------------------------------- -- -- Table structure for table `laboratorio` -- CREATE TABLE IF NOT EXISTS `laboratorio` ( `idLaboratorio` int(11) NOT NULL AUTO_INCREMENT, `nombreDelLaboratorio` varchar(40) NOT NULL, PRIMARY KEY (`idLaboratorio`), UNIQUE KEY `nombreDelLaboratorio` (`nombreDelLaboratorio`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=22 ; -- -- Dumping data for table `laboratorio` -- INSERT INTO `laboratorio` (`idLaboratorio`, `nombreDelLaboratorio`) VALUES (13, 'Abbot'), (15, 'Biotech'), (6, 'Bluepharma'), (20, 'Boehringer'), (1, 'Calox'), (18, 'Elmor'), (17, 'Elter'), (4, 'Genven'), (21, 'Glenmark'), (11, 'Klinos'), (10, 'Leti'), (8, 'Novartis'), (9, '<NAME>'), (7, 'Pfizer'), (14, 'Sanofi'), (12, 'Wyeth'); -- -------------------------------------------------------- -- -- Table structure for table `medicamento` -- CREATE TABLE IF NOT EXISTS `medicamento` ( `idMedicamento` int(11) NOT NULL AUTO_INCREMENT, `nombreComercial` varchar(60) NOT NULL, `idLaboratorio` int(11) NOT NULL, PRIMARY KEY (`idMedicamento`), UNIQUE KEY `nombreComercial` (`nombreComercial`), KEY `idLaboratorio` (`idLaboratorio`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ; -- -- Dumping data for table `medicamento` -- INSERT INTO `medicamento` (`idMedicamento`, `nombreComercial`, `idLaboratorio`) VALUES (6, 'Diovan 40 mg', 8), (7, 'Buscapina', 20), (10, 'Alres', 18), (11, 'Diovan 40 HCT 12,5', 8); -- -------------------------------------------------------- -- -- Table structure for table `producto` -- CREATE TABLE IF NOT EXISTS `producto` ( `idMedicamento` int(6) NOT NULL, `idComponente` int(6) NOT NULL, `cantidadDelComponente` double NOT NULL, `idUnidadDeMedida` int(6) NOT NULL, PRIMARY KEY (`idMedicamento`,`idComponente`), KEY `idUnidadDeMedida` (`idUnidadDeMedida`), KEY `idComponente` (`idComponente`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `producto` -- INSERT INTO `producto` (`idMedicamento`, `idComponente`, `cantidadDelComponente`, `idUnidadDeMedida`) VALUES (6, 4, 40, 22), (7, 1, 500, 22), (7, 7, 50, 22), (10, 7, 5, 23), (10, 9, 500, 22), (10, 10, 10, 22), (11, 4, 12.5, 22), (11, 15, 12.5, 22); -- -------------------------------------------------------- -- -- Stand-in structure for view `ProductoLaboratorio` -- CREATE TABLE IF NOT EXISTS `ProductoLaboratorio` ( `idMedicamento` int(11) ,`nombreComercial` varchar(60) ,`idLaboratorio` int(11) ,`nombreDelLaboratorio` varchar(40) ); -- -------------------------------------------------------- -- -- Table structure for table `unidaddemedida` -- CREATE TABLE IF NOT EXISTS `unidaddemedida` ( `idDeUnidadDeMedida` int(11) NOT NULL AUTO_INCREMENT, `nombreDeLaUnidadDeMedida` varchar(20) DEFAULT NULL, PRIMARY KEY (`idDeUnidadDeMedida`), UNIQUE KEY `uMedida` (`nombreDeLaUnidadDeMedida`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=24 ; -- -- Dumping data for table `unidaddemedida` -- INSERT INTO `unidaddemedida` (`idDeUnidadDeMedida`, `nombreDeLaUnidadDeMedida`) VALUES (18, 'cc.'), (23, 'gr.'), (22, 'mg.'), (17, 'ml.'); -- -------------------------------------------------------- -- -- Structure for view `fichadeproducto` -- DROP TABLE IF EXISTS `fichadeproducto`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `fichadeproducto` AS select `medicamento`.`idMedicamento` AS `idMedicamento`,`medicamento`.`nombreComercial` AS `nombreComercial`,`producto`.`idComponente` AS `idComponente`,`producto`.`cantidadDelComponente` AS `cantidadDelComponente`,`producto`.`idUnidadDeMedida` AS `idUnidadDeMedida`,`componente`.`nombreDelComponente` AS `nombreDelComponente`,`unidaddemedida`.`nombreDeLaUnidadDeMedida` AS `nombreDeLaUnidadDeMedida` from (((`medicamento` join `producto`) join `componente`) join `unidaddemedida`) where ((`medicamento`.`idMedicamento` = `producto`.`idMedicamento`) and (`producto`.`idComponente` = `componente`.`idComponente`) and (`producto`.`idUnidadDeMedida` = `unidaddemedida`.`idDeUnidadDeMedida`)); -- -------------------------------------------------------- -- -- Structure for view `ProductoLaboratorio` -- DROP TABLE IF EXISTS `ProductoLaboratorio`; CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `ProductoLaboratorio` AS select `medicamento`.`idMedicamento` AS `idMedicamento`,`medicamento`.`nombreComercial` AS `nombreComercial`,`laboratorio`.`idLaboratorio` AS `idLaboratorio`,`laboratorio`.`nombreDelLaboratorio` AS `nombreDelLaboratorio` from (`medicamento` join `laboratorio`) where (`medicamento`.`idLaboratorio` = `laboratorio`.`idLaboratorio`); -- -- Constraints for dumped tables -- -- -- Constraints for table `medicamento` -- ALTER TABLE `medicamento` ADD CONSTRAINT `medicamento_ibfk_1` FOREIGN KEY (`idLaboratorio`) REFERENCES `laboratorio` (`idLaboratorio`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `producto` -- ALTER TABLE `producto` ADD CONSTRAINT `producto_ibfk_1` FOREIGN KEY (`idMedicamento`) REFERENCES `medicamento` (`idMedicamento`), ADD CONSTRAINT `producto_ibfk_2` FOREIGN KEY (`idComponente`) REFERENCES `componente` (`idComponente`), ADD CONSTRAINT `producto_ibfk_3` FOREIGN KEY (`idUnidadDeMedida`) REFERENCES `unidaddemedida` (`idDeUnidadDeMedida`); /*!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>jdkoren/sqlite-parser -- tkt2822.test -- -- execsql { -- SELECT a, b, c FROM t1 UNION ALL SELECT a AS x, b, c FROM t2 ORDER BY x; -- } SELECT a, b, c FROM t1 UNION ALL SELECT a AS x, b, c FROM t2 ORDER BY x;
<reponame>scheltwort-it-services/common_schema call hexcode_text('A quick brown fox jumps over the lazy dog, long enough');
------ Add new service item param keys ------ INSERT INTO service_item_param_keys (id, key,description,type,origin,created_at,updated_at) VALUES ('9df726f8-5ae7-4749-8446-28815ff16271', 'DimensionLength', 'Dimension length describing the length of a service item', 'INTEGER', 'PRIME', now(), now()), ('79bdb87e-776b-43fe-a54b-40e519a9a76f', 'DimensionWidth', 'Dimension width describing the width of a service item', 'INTEGER', 'PRIME', now(), now()), ('33d99169-b36c-42f8-ad81-99cb54c9a723', 'DimensionHeight', 'Dimension height describing the height of a service item', 'INTEGER', 'PRIME', now(), now()); ------ Map new service item param keys to corresponding service items ------ INSERT INTO service_params (id,service_id,service_item_param_key_id,created_at,updated_at) VALUES ('ee7e92b9-68aa-474e-b62d-bd1362808d2e', (SELECT id FROM re_services WHERE code='DCRT'), (SELECT id FROM service_item_param_keys WHERE key='DimensionLength'), now(), now()), ('8457ab1c-5fee-40bb-9fa7-da54e915ecbc', (SELECT id FROM re_services WHERE code='DCRT'), (SELECT id FROM service_item_param_keys WHERE key='DimensionWidth'), now(), now()), ('6936e9d6-d01a-4230-a36d-e9e75144d747', (SELECT id FROM re_services WHERE code='DCRT'), (SELECT id FROM service_item_param_keys WHERE key='DimensionHeight'), now(), now()), ('f9229c7c-e367-4ea8-862a-92b39a78e304', (SELECT id FROM re_services WHERE code='DUCRT'), (SELECT id FROM service_item_param_keys WHERE key='DimensionLength'), now(), now()), ('21aa5c4f-6058-4aee-ab36-76bacd8c12a6', (SELECT id FROM re_services WHERE code='DUCRT'), (SELECT id FROM service_item_param_keys WHERE key='DimensionWidth'), now(), now()), ('d293a4ad-4b82-4a4c-b8a2-12f212f9237e', (SELECT id FROM re_services WHERE code='DUCRT'), (SELECT id FROM service_item_param_keys WHERE key='DimensionHeight'), now(), now()), ('fb6a629c-a566-450c-96e7-329005d8ccdb', (SELECT id FROM re_services WHERE code='ICRT'), (SELECT id FROM service_item_param_keys WHERE key='DimensionLength'), now(), now()), ('<KEY>', (SELECT id FROM re_services WHERE code='ICRT'), (SELECT id FROM service_item_param_keys WHERE key='DimensionWidth'), now(), now()), ('<KEY>', (SELECT id FROM re_services WHERE code='ICRT'), (SELECT id FROM service_item_param_keys WHERE key='DimensionHeight'), now(), now()), ('a5cf6d2b-b903-4cb6-9d85-1c79a0034e94', (SELECT id FROM re_services WHERE code='IUCRT'), (SELECT id FROM service_item_param_keys WHERE key='DimensionLength'), now(), now()), ('883bb58b-ec0e-44cd-b8dd-24eab0effdb9', (SELECT id FROM re_services WHERE code='IUCRT'), (SELECT id FROM service_item_param_keys WHERE key='DimensionWidth'), now(), now()), ('719893a7-cc10-4bef-b192-77b03364bbe2', (SELECT id FROM re_services WHERE code='IUCRT'), (SELECT id FROM service_item_param_keys WHERE key='DimensionHeight'), now(), now());
<reponame>matt98h/Note-taker-application CREATE DATABASE notes_db; USE DATABASE notes_db; CREATE TABLE notes( id INTEGER AUTO_INCREMENT; note_title VARCHAR(30); note VARCHAR(120) );
CREATE SCHEMA [Person] AUTHORIZATION [dbo]; GO CREATE TABLE [Person].[InternalUser] ( [Id] UNIQUEIDENTIFIER NOT NULL CONSTRAINT PK_InternalUser PRIMARY KEY, [UserId] NVARCHAR(128) NOT NULL CONSTRAINT FK_InternalUser_AspNetUsers FOREIGN KEY REFERENCES [Identity].[AspNetUsers](Id), [RowVersion] [timestamp] NOT NULL, [JobTitle] NVARCHAR(256) NOT NULL, [CompetentAuthority] INT NOT NULL, [LocalAreaId] UNIQUEIDENTIFIER NOT NULL CONSTRAINT FK_InternalUser_LocalArea FOREIGN KEY REFERENCES [Lookup].[LocalArea](Id), [Status] INT NOT NULL ); GO DECLARE @headOffice UNIQUEIDENTIFIER; DECLARE @NRW UNIQUEIDENTIFIER; DECLARE @NIEA UNIQUEIDENTIFIER; DECLARE @SEPA UNIQUEIDENTIFIER; SELECT @headOffice = Id FROM [Lookup].[LocalArea] WHERE Name = 'Head Office'; SELECT @NRW = Id FROM [Lookup].[LocalArea] WHERE Name = 'Natural Resources Wales'; SELECT @NIEA = Id FROM [Lookup].[LocalArea] WHERE Name = 'Northern Ireland Environment Agency'; SELECT @SEPA = Id FROM [Lookup].[LocalArea] WHERE Name = 'Scottish Environment Protection Agency'; INSERT INTO [Person].[InternalUser] ( [Id], [UserId], [JobTitle], [CompetentAuthority], [LocalAreaId], [Status] ) SELECT (select CAST(CAST(NEWID() AS BINARY(10)) + CAST(GETDATE() AS BINARY(6)) AS UNIQUEIDENTIFIER)) as [Id], U.[Id], [JobTitle], CASE [CompetentAuthority] WHEN 'EA' THEN 1 WHEN 'SEPA' THEN 2 WHEN 'NIEA' THEN 3 ELSE 4 END, CASE WHEN LA.Id IS NULL THEN CASE [CompetentAuthority] WHEN 'EA' THEN @headOffice WHEN 'SEPA' THEN @SEPA WHEN 'NIEA' THEN @NIEA ELSE @NRW END ELSE LA.Id END, [InternalUserStatus] FROM [Identity].[AspNetUsers] U LEFT JOIN [Lookup].[LocalArea] LA ON U.LocalArea = LA.Name WHERE IsInternal = 1; GO ALTER TABLE [Identity].[AspNetUsers] DROP CONSTRAINT [DF_AspNetUsers_IsInternal] ALTER TABLE [Identity].[AspNetUsers] DROP COLUMN [JobTitle] ALTER TABLE [Identity].[AspNetUsers] DROP COLUMN [CompetentAuthority] ALTER TABLE [Identity].[AspNetUsers] DROP COLUMN [LocalArea] ALTER TABLE [Identity].[AspNetUsers] DROP COLUMN [IsInternal] ALTER TABLE [Identity].[AspNetUsers] DROP COLUMN [InternalUserStatus]
<reponame>mojaloop/dfsp-account CREATE OR REPLACE FUNCTION account."actorAccount.remove"( "@actorAccountId" bigint ) RETURNS TABLE( "accountId" bigint, "isSingleResult" boolean ) AS $body$ DECLARE "@accountId" bigint; BEGIN WITH a as ( DELETE FROM account."actorAccount" WHERE "actorAccountId" = "@actorAccountId" RETURNING * ) SELECT a."accountId" INTO "@accountId" FROM a; IF ("@accountId" IS NULL) THEN RAISE EXCEPTION 'account.accountNotFound'; END IF; IF NOT EXISTS (SELECT 1 FROM account."actorAccount" aa WHERE aa."accountId" = "@accountId") THEN DELETE FROM account."account" a WHERE a."accountId" = "@accountId"; END IF; RETURN QUERY SELECT "@accountId" AS "accountId", true AS "isSingleResult"; END $body$ LANGUAGE plpgsql;
ALTER TABLE "subscription" ADD COLUMN "asynctempproductkey" BIGINT DEFAULT NULL; ALTER TABLE "subscriptionhistory" ADD COLUMN "asynctempproductobjkey" BIGINT DEFAULT NULL;
<gh_stars>1-10 -- add startdate column to seasons ALTER TABLE seasons ADD COLUMN startdate TIMESTAMPTZ; -- add startdate data to historical seasons UPDATE seasons SET startdate = '2018-12-11 00:00:00+00' WHERE pk_season_id = 2307; UPDATE seasons SET startdate = '2019-03-12 00:00:00+00' WHERE pk_season_id = 2391; UPDATE seasons SET startdate = '2018-12-11 00:00:00+00' WHERE pk_season_id = 2292; UPDATE seasons SET startdate = '2019-03-12 00:00:00+00' WHERE pk_season_id = 2377;
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore CREATE INDEX pg2_ao_gist_idx1_b0 ON pg2_ao_table_gist_index_b0 USING GiST (property);
<reponame>lintzc/GPDB<filename>src/test/regress/sql/query_finish_pending.sql drop table if exists _tmp_table; create table _tmp_table (i1 int, i2 int, i3 int, i4 int); insert into _tmp_table select i, i % 100, i % 10000, i % 75 from generate_series(0,99999) i; -- make sort to spill set statement_mem="2MB"; set gp_enable_mk_sort=on; set gp_cte_sharing=on; --start_ignore \! gpfaultinjector -f execsort_mksort_mergeruns -y reset --seg_dbid 2 -- set QueryFinishPending=true in sort mergeruns. This will stop sort and set result_tape to NULL \! gpfaultinjector -f execsort_mksort_mergeruns -y finish_pending --seg_dbid 2 --end_ignore -- return results although sort will be interrupted in one of the segments select DISTINCT S from (select row_number() over(partition by i1 order by i2) AS T, count(*) over (partition by i1) AS S from _tmp_table) AS TMP; -- test if shared input scan deletes memory correctly when QueryFinishPending and its child has been eagerly freed, -- where the child is a Sort node drop table if exists testsisc; create table testsisc (i1 int, i2 int, i3 int, i4 int); insert into testsisc select i, i % 1000, i % 100000, i % 75 from (select generate_series(1, nsegments * 50000) as i from (select count(*) as nsegments from gp_segment_configuration where role='p' and content >= 0) foo) bar; set gp_resqueue_print_operator_memory_limits=on; set statement_mem='2MB'; set gp_enable_mk_sort=off; --start_ignore \! gpfaultinjector -f execshare_input_next -y reset --seg_dbid 2 -- Set QueryFinishPending to true after SharedInputScan has retrieved the first tuple. -- This will eagerly free the memory context of shared input scan's child node. \! gpfaultinjector -f execshare_input_next -y finish_pending --seg_dbid 2 --end_ignore select COUNT(i2) over(partition by i1) from testsisc LIMIT 2; -- test if shared input scan deletes memory correctly when QueryFinishPending and its child has been eagerly freed, -- where the child is a Sort node and sort_mk algorithm is used set gp_enable_mk_sort=on; --start_ignore \! gpfaultinjector -f execshare_input_next -y reset --seg_dbid 2 -- Set QueryFinishPending to true after SharedInputScan has retrieved the first tuple. -- This will eagerly free the memory context of shared input scan's child node. \! gpfaultinjector -f execshare_input_next -y finish_pending --seg_dbid 2 --end_ignore select COUNT(i2) over(partition by i1) from testsisc LIMIT 2; reset gp_enable_mk_sort; -- Disable faultinjectors --start_ignore \! gpfaultinjector -f execsort_mksort_mergeruns -y reset --seg_dbid 2 \! gpfaultinjector -f execshare_input_next -y reset --seg_dbid 2 --end_ignore
lapse/ADGRS lard/DGRS large/PRTY lark/MRS
CREATE OR REPLACE FUNCTION nfc.f4role_unitprivs8add(p_org bigint, p_role_id bigint, p_unit character varying, p_all boolean DEFAULT false) RETURNS bigint LANGUAGE plpgsql SECURITY DEFINER AS $function$ declare v_id bigint; bps record; begin perform nfc.f_bp8before('nfc.role_unitprivs.add', null::text, p_org, null, null); insert into nfc.role_unitprivs ( role_id, unit ) values ( p_role_id, p_unit ) returning id into v_id; if p_all then for bps in (select code from nfc.unitbps where unit = p_unit) loop insert into nfc.role_unitbpprivs (pid, unitbp) values (v_id, bps.code); end loop; end if; perform nfc.f_bp8after('nfc.role_unitprivs.add', v_id::text, p_org, null, null); return v_id; end; $function$ ;
<reponame>spirdon/janbot2<filename>res/query/get_all_roles_on_server.sql SELECT * FROM roles WHERE server_id=%s;
/* dbqueries.sql contains the logic of our algorithm. The getwells function takes in four values which form the four boundary points for the region surrounding the origin of the earth quake with a radius of 10 km. With in this region we try to identify if there exists a injection well. If so, then it passes the spatial dimension of our algorithm. Then, we also check whether there exists atleast one active injection well in the total wells present in the region. If so, then it passes the temporal dimension. Finally, we check if there doesn't exist a fault lime in th region. If all these conditions pass, then we classify the earthquake as a Manmade else Source Ambiguous. */ CREATE OR REPLACE FUNCTION getwells(text, text, text, text) RETURNS SETOF wells AS $BODY$ SELECT * FROM wells WHERE cast($1 as double precision) <= cast(lat as double precision) and cast(lat as double precision) <= cast($2 as double precision) and cast($3 as double precision) <= cast(lon as double precision) and cast(lon as double precision) <= cast($4 as double precision) and NOT exists (select 1 from earthquakes eq where cast($1 as double precision) <= cast(eq.lat as double precision) and cast(eq.lat as double precision) <= cast($2 as double precision) and cast($3 as double precision) <= cast(eq.lon as double precision) and cast(eq.lon as double precision) <= cast($4 as double precision) ); $BODY$ LANGUAGE sql VOLATILE COST 100 ROWS 1000; ALTER FUNCTION getwells(text, text) OWNER TO rakesh891;
CREATE TABLE public.room ( id bigint NOT NULL GENERATED ALWAYS AS IDENTITY, number varchar(32) NOT NULL, capacity smallint CHECK (capacity > 0), CONSTRAINT room_pk PRIMARY KEY (id) ); CREATE TABLE public.patient ( id bigint NOT NULL GENERATED ALWAYS AS IDENTITY, room_id bigint not null, name varchar(50) not null, surname varchar(50) not null, patronymic varchar(50) null, birthday date not null, CONSTRAINT patient_pk PRIMARY KEY (id), CONSTRAINT patient_fk_room_id FOREIGN KEY (room_id) REFERENCES public.room (id) MATCH SIMPLE ON DELETE NO ACTION ON UPDATE NO ACTION ); CREATE TABLE public.medical_procedure ( id bigint NOT NULL GENERATED ALWAYS AS IDENTITY, name varchar(256) NOT NULL, description TEXT NULL, CONSTRAINT medical_procedure_pk PRIMARY KEY (id) ); CREATE TABLE public.patient_procedure ( patient_id bigint NOT NULL, medical_procedure_id bigint NOT NULL, duration interval NULL, assigned_quantity smallint NOT NULL CHECK (assigned_quantity > 0), completed_quantity smallint NOT NULL DEFAULT 0 CHECK (completed_quantity >= 0), CONSTRAINT patient_procedure_pk PRIMARY KEY (patient_id, medical_procedure_id), CONSTRAINT patient_procedure_fk_patient_id FOREIGN KEY (patient_id) REFERENCES public.patient (id) MATCH SIMPLE ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT patient_procedure_fk_m_p_id FOREIGN KEY (medical_procedure_id) REFERENCES public.medical_procedure (id) MATCH SIMPLE ON DELETE NO ACTION ON UPDATE NO ACTION );
<reponame>wpenarudas25/discus-api create database if not exists company; use company; create table discos ( id int(11) not null auto_increment, nombre varchar(45) default null, tamaño int(11) default null, diponibles int(11) default null, primary key(id) ); describe discos;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 31, 2018 at 10:24 PM -- Server version: 5.7.14 -- PHP Version: 5.6.25 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: `dbchalk` -- -- -------------------------------------------------------- -- -- Table structure for table `bcde` -- CREATE TABLE `bcde` ( `numbcde` int(11) NOT NULL, `datebcde` date NOT NULL, `numcli` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin; -- -------------------------------------------------------- -- -- Table structure for table `client` -- CREATE TABLE `client` ( `numcli` int(11) NOT NULL, `nomcli` varchar(255) COLLATE utf16_bin NOT NULL, `adressecli` varchar(255) COLLATE utf16_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin; -- -- Dumping data for table `client` -- INSERT INTO `client` (`numcli`, `nomcli`, `adressecli`) VALUES (24, 'mou', 'moi'), (29, 'sqd', 'sqd'), (32, 'ssdf', 'qSDF'), (35, 'aZQESRDGFH', 'q<swdfcb'), (36, 'wx', 'wx'), (37, 'QSDF', 'WSDFG'), (38, 'WDXFG', 'WXDFG'), (39, 'QSDSGFG', 'QSDFG'), (43, 'WX<WXCVBN', 'SD<XDGF'), (44, 'QSDFG', '<WXF'), (45, 'SDFG<SDFG', 'QSDF<qsd'), (47, 'jsvq', 'jbwgh'), (48, 'JKLJK', ' BHJBJ'); -- -------------------------------------------------------- -- -- Table structure for table `commander` -- CREATE TABLE `commander` ( `qtecmd` int(11) NOT NULL, `numbcde` int(11) NOT NULL, `codeprod` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin; -- -------------------------------------------------------- -- -- Table structure for table `couleur` -- CREATE TABLE `couleur` ( `codecoul` int(11) NOT NULL, `libcoul` varchar(255) COLLATE utf16_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin; -- -- Dumping data for table `couleur` -- INSERT INTO `couleur` (`codecoul`, `libcoul`) VALUES (1, 'blanche'); -- -------------------------------------------------------- -- -- Table structure for table `facture` -- CREATE TABLE `facture` ( `numfact` int(11) NOT NULL, `numbcde` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin; -- -------------------------------------------------------- -- -- Table structure for table `livraison` -- CREATE TABLE `livraison` ( `numliv` int(11) NOT NULL, `dateliv` date NOT NULL, `numfact` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin; -- -------------------------------------------------------- -- -- Table structure for table `produit` -- CREATE TABLE `produit` ( `codeprod` int(11) NOT NULL, `libprod` varchar(255) COLLATE utf16_bin NOT NULL, `codecoul` int(11) NOT NULL, `codeqlt` int(11) NOT NULL, `pu` double NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin; -- -- Dumping data for table `produit` -- INSERT INTO `produit` (`codeprod`, `libprod`, `codecoul`, `codeqlt`, `pu`) VALUES (1, 'craie', 1, 1, 25); -- -------------------------------------------------------- -- -- Table structure for table `qualité` -- CREATE TABLE `qualité` ( `codeqlt` int(11) NOT NULL, `libqlt` varchar(255) COLLATE utf16_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin; -- -- Dumping data for table `qualité` -- INSERT INTO `qualité` (`codeqlt`, `libqlt`) VALUES (1, 'excellent'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id_user` int(11) NOT NULL, `nom` varchar(50) COLLATE utf16_bin NOT NULL, `prenom` varchar(50) COLLATE utf16_bin NOT NULL, `password` varchar(50) COLLATE utf16_bin NOT NULL, `statut` tinyint(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf16 COLLATE=utf16_bin; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id_user`, `nom`, `prenom`, `password`, `statut`) VALUES (1, 'DOGBEVI', 'Eliane', '<PASSWORD>', 0), (2, 'AMOUSSOU', 'Charlotte', 'b011585f518f86ac6adf7dd9de4f71447fdaec17', 0), (3, 'DAVI', 'Miguel', 'cc6fffecd2290649e5a1e9572f0b79eebf865217', 0), (4, 'ALI', 'Mouanz', 'nxsxbhjxbxjknqkshjbsjxnbwxnk', 0); -- -- Indexes for dumped tables -- -- -- Indexes for table `bcde` -- ALTER TABLE `bcde` ADD PRIMARY KEY (`numbcde`), ADD KEY `numcli` (`numcli`); -- -- Indexes for table `client` -- ALTER TABLE `client` ADD PRIMARY KEY (`numcli`); -- -- Indexes for table `commander` -- ALTER TABLE `commander` ADD PRIMARY KEY (`qtecmd`), ADD KEY `numbcde` (`numbcde`), ADD KEY `codeprod` (`codeprod`); -- -- Indexes for table `couleur` -- ALTER TABLE `couleur` ADD PRIMARY KEY (`codecoul`); -- -- Indexes for table `facture` -- ALTER TABLE `facture` ADD PRIMARY KEY (`numfact`), ADD KEY `numbcde` (`numbcde`); -- -- Indexes for table `livraison` -- ALTER TABLE `livraison` ADD PRIMARY KEY (`numliv`), ADD KEY `numfact` (`numfact`); -- -- Indexes for table `produit` -- ALTER TABLE `produit` ADD PRIMARY KEY (`codeprod`), ADD KEY `codecoul` (`codecoul`), ADD KEY `codeqlt` (`codeqlt`); -- -- Indexes for table `qualité` -- ALTER TABLE `qualité` ADD PRIMARY KEY (`codeqlt`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id_user`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `bcde` -- ALTER TABLE `bcde` MODIFY `numbcde` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `client` -- ALTER TABLE `client` MODIFY `numcli` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49; -- -- AUTO_INCREMENT for table `commander` -- ALTER TABLE `commander` MODIFY `qtecmd` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `couleur` -- ALTER TABLE `couleur` MODIFY `codecoul` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `facture` -- ALTER TABLE `facture` MODIFY `numfact` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `livraison` -- ALTER TABLE `livraison` MODIFY `numliv` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `produit` -- ALTER TABLE `produit` MODIFY `codeprod` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `qualité` -- ALTER TABLE `qualité` MODIFY `codeqlt` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- Constraints for dumped tables -- -- -- Constraints for table `bcde` -- ALTER TABLE `bcde` ADD CONSTRAINT `bcde_ibfk_1` FOREIGN KEY (`numcli`) REFERENCES `client` (`numcli`) ON DELETE CASCADE; -- -- Constraints for table `commander` -- ALTER TABLE `commander` ADD CONSTRAINT `commander_ibfk_2` FOREIGN KEY (`codeprod`) REFERENCES `produit` (`codeprod`), ADD CONSTRAINT `commander_ibfk_3` FOREIGN KEY (`numbcde`) REFERENCES `bcde` (`numbcde`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `facture` -- ALTER TABLE `facture` ADD CONSTRAINT `facture_ibfk_1` FOREIGN KEY (`numbcde`) REFERENCES `bcde` (`numbcde`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `livraison` -- ALTER TABLE `livraison` ADD CONSTRAINT `livraison_ibfk_1` FOREIGN KEY (`numfact`) REFERENCES `facture` (`numfact`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `produit` -- ALTER TABLE `produit` ADD CONSTRAINT `produit_ibfk_1` FOREIGN KEY (`codecoul`) REFERENCES `couleur` (`codecoul`), ADD CONSTRAINT `produit_ibfk_2` FOREIGN KEY (`codeqlt`) REFERENCES `qualité` (`codeqlt`); /*!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 /** * Begin data cleansing and table alterations to pave the the way for the final normalised database. The code blocks below will use UPDATE/ALTER on the existing tables containing relevant data from the IMDb datasets. This is pre processing by data cleansing before beginning the normalisation process. The columns are cleaned in the following ways: - Corrected formatting (e.g. using regex to format movie_release_year from imdb_movies as YYYY). - Casting to the correct type or to arrays (e.g. from TEXT to INTEGER, from TEXT to TEXT[] using the STRING_TO_ARRAY function). - Replacing empty strings ('') and empty arrays ({}) with null. - Adding primary keys. * **/ UPDATE imdb_movies SET movie_production_company = null WHERE movie_production_company LIKE ''; UPDATE imdb_movies SET movie_description = null WHERE movie_description LIKE ''; ALTER TABLE imdb_movies ADD PRIMARY KEY(movie_id), ALTER COLUMN movie_release_year TYPE INTEGER USING NULLIF(REGEXP_REPLACE(movie_release_year, '[^0-9.]*', '', 'g'), '')::INTEGER, ALTER COLUMN movie_genres TYPE TEXT[] USING NULLIF(STRING_TO_ARRAY(movie_genres, ', '), '{}'), ALTER COLUMN movie_countries TYPE TEXT[] USING NULLIF(STRING_TO_ARRAY(movie_countries, ', '), '{}'), ALTER COLUMN movie_languages TYPE TEXT[] USING NULLIF(STRING_TO_ARRAY(movie_languages, ', '), '{}'), ALTER COLUMN movie_directors TYPE TEXT[] USING NULLIF(STRING_TO_ARRAY(movie_directors, ', '), '{}'), ALTER COLUMN movie_writers TYPE TEXT[] USING NULLIF(STRING_TO_ARRAY(movie_writers, ', '), '{}'), ALTER COLUMN movie_actors TYPE TEXT[] USING NULLIF(STRING_TO_ARRAY(movie_actors, ', '), '{}'), ALTER COLUMN movie_user_reviews TYPE INTEGER USING NULLIF(movie_user_reviews, '')::REAL::INTEGER, ALTER COLUMN movie_critic_reviews TYPE INTEGER USING NULLIF(movie_critic_reviews, '')::REAL::INTEGER; UPDATE imdb_names SET biography = null WHERE biography LIKE ''; UPDATE imdb_names SET birth_details = null WHERE birth_details LIKE ''; UPDATE imdb_names SET death_details = null WHERE death_details LIKE ''; ALTER TABLE imdb_names ADD PRIMARY KEY(name_id); /** * Update name_characters from imdb_principals using the JSONB_ARRAY_TO_TEXT_ARRAY function, an aggregate function (returns a set). * **/ UPDATE imdb_principals SET name_characters = null WHERE name_characters LIKE ''; UPDATE imdb_principals SET name_characters = subquery.name_characters_text_array FROM (SELECT movie_id, name_order_index, name_id, JSONB_ARRAY_TO_TEXT_ARRAY(name_characters::JSONB) AS name_characters_text_array FROM imdb_principals) AS subquery WHERE imdb_principals.movie_id = subquery.movie_id AND imdb_principals.name_order_index = subquery.name_order_index AND imdb_principals.name_id = subquery.name_id; ALTER TABLE imdb_principals ADD PRIMARY KEY(movie_id, name_order_index, name_id), ALTER COLUMN name_characters TYPE TEXT[] USING name_characters::TEXT[];
<filename>dubbo-example-provider/sql/tables-master.sql /*Table structure for table `test_user` */ DROP TABLE IF EXISTS `test_user`; CREATE TABLE `test_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `name` varchar(32) NOT NULL COMMENT '用户名', `phone` varchar(32) DEFAULT NULL COMMENT '手机号', `title` varchar(32) DEFAULT NULL COMMENT '职称职别', `email` varchar(128) DEFAULT NULL COMMENT '邮箱', `gender` varchar(32) DEFAULT NULL COMMENT '性别', `date_of_birth` date DEFAULT NULL COMMENT '出生时间', `deleted` tinyint(1) DEFAULT '0' COMMENT '1:已删除,0:未删除', `sys_create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `sys_create_user` varchar(255) DEFAULT NULL, `sys_update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `sys_update_user` varchar(255) DEFAULT NULL, `record_version` bigint(20) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=7013 DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `test_product`; CREATE TABLE `test_product` ( `id` BIGINT(20) NOT NULL AUTO_INCREMENT, `name` VARCHAR(32) NOT NULL COMMENT '产品名称', `weight` VARCHAR(32) NULL DEFAULT NULL COMMENT '宽度', `size` VARCHAR(32) NULL DEFAULT NULL COMMENT '数量', `height` VARCHAR(128) NULL DEFAULT NULL COMMENT '高度', `vendor` VARCHAR(32) NULL DEFAULT NULL COMMENT '生产厂家', `create_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP, `update_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) COLLATE='utf8_general_ci' ENGINE=InnoDB /*Data for the table `test_user` */ insert into `test_user`(`id`,`name`,`phone`,`title`,`email`,`gender`,`date_of_birth`,`deleted`,`sys_create_time`,`sys_create_user`,`sys_update_time`,`sys_update_user`,`record_version`) values (1000,'王某','13600000000','test','<EMAIL>','1','1985-07-01',0,'2019-03-28 14:53:44','admin','2019-05-31 11:17:55','admin',0),(1001,'林某','13600000000',NULL,NULL,'1',NULL,0,'2019-03-28 14:53:44','admin','2019-05-31 11:21:47','admin',0),(1002,'朱某','13600000000','test',NULL,'2','1986-05-20',0,'2019-03-28 14:53:44','admin','2019-05-31 11:17:55','admin',0),(1005,'test4',NULL,'test4','<EMAIL>','1',NULL,0,'2020-01-06 16:19:23',NULL,'2020-01-07 11:29:10','admin',0),(1006,'test5',NULL,'new title','<EMAIL>','1',NULL,0,'2020-01-06 16:48:52',NULL,'2020-01-07 11:19:48','admin',0),(1007,'test6',NULL,NULL,'<EMAIL>',NULL,NULL,1,'2020-01-06 16:48:52',NULL,'2020-01-07 09:46:23',NULL,0);
-- Drops the database if it exists currently -- DROP DATABASE IF EXISTS portfolioV2; -- Creates the new database -- CREATE DATABASE portfolioV2;
<filename>ss.sql SELECT project AS project_name, slug AS form_template_slug, form_template_name, interval, MIN(begin_date) start_date, MAX(end_date) end_date, SUM(not_done_overdue) not_done_overdue, SUM(pending_now) pending_now, SUM(pending_future) pending_future, SUM(done_early) done_early, SUM(done_late) done_late, SUM(done_ontime) done_ontime, SUM(total) total, project_id FROM ( -- *** THE QUERY PENDING GROUPING AND AGGREGATION *** -- WITH the_projects AS ( SELECT DISTINCT P.id, P.name, P.created_at, P.state, P.is_federal, P.bmp_module_enabled, P.spcc_enabled, P.fire_extinguisher_inspection_enabled FROM main.projects P LEFT JOIN main.users_roles_projects URP ON P.id=URP.project_id LEFT JOIN main.users_roles_organizations URO ON P.organization_id=URO.organization_id WHERE P.is_archived=FALSE AND P.organization_id = 'ea1da92c-a926-43f9-9fb0-54f9f3f311c9' -- Variable here AND (URP.user_id = '05b0457b-7e6f-4b5b-b7c3-c6ec16240b52' -- Variable here OR URO.user_id = '05b0457b-7e6f-4b5b-b7c3-c6ec16240b52') -- Variable here AND P.id = uuid(COALESCE(NULLIF('',''),P.id::text)::text) -- Variable here ), the_dates AS ( SELECT the_date FROM ( SELECT TO_DATE('2017-12-25T12:13:15+03:00','yyyy-MM-dd')+(A.digit + (10 B.digit) + (100 C.digit) + (1000 * D.digit)) AS the_date -- Variable here FROM (SELECT 0 AS digit UNION ALL SELECT 1 AS digit UNION ALL SELECT 2 AS digit UNION ALL SELECT 3 AS digit UNION ALL SELECT 4 AS digit UNION ALL SELECT 5 AS digit UNION ALL SELECT 6 AS digit UNION ALL SELECT 7 AS digit UNION ALL SELECT 8 AS digit UNION ALL SELECT 9 AS digit) A, (SELECT 0 AS digit UNION ALL SELECT 1 AS digit UNION ALL SELECT 2 AS digit UNION ALL SELECT 3 AS digit UNION ALL SELECT 4 AS digit UNION ALL SELECT 5 AS digit UNION ALL SELECT 6 AS digit UNION ALL SELECT 7 AS digit UNION ALL SELECT 8 AS digit UNION ALL SELECT 9 AS digit) B, (SELECT 0 AS digit UNION ALL SELECT 1 AS digit UNION ALL SELECT 2 AS digit UNION ALL SELECT 3 AS digit UNION ALL SELECT 4 AS digit UNION ALL SELECT 5 AS digit UNION ALL SELECT 6 AS digit UNION ALL SELECT 7 AS digit UNION ALL SELECT 8 AS digit UNION ALL SELECT 9 AS digit) C, (SELECT 0 AS digit UNION ALL SELECT 1 AS digit UNION ALL SELECT 2 AS digit UNION ALL SELECT 3 AS digit UNION ALL SELECT 4 AS digit UNION ALL SELECT 5 AS digit UNION ALL SELECT 6 AS digit UNION ALL SELECT 7 AS digit UNION ALL SELECT 8 AS digit UNION ALL SELECT 9 AS digit) D ) one_thousand_days WHERE the_date>=TO_DATE('2017-12-25T12:13:15+03:00','yyyy-MM-dd') AND the_date<=TO_DATE('2018-12-25T21:00:00Z','yyyy-MM-dd') -- Variables here (2) ) SELECT inspection.project_id, inspection.project, inspection.slug, inspection.interval, inspection.form_template_name, schedule.name AS schedule_name, schedule.begin_date, schedule.end_date, submission.id, CASE WHEN submission.id IS NULL AND schedule.end_date<CURRENT_DATE THEN 1 ELSE 0 END AS not_done_overdue, CASE WHEN submission.id IS NULL AND schedule.end_date>=CURRENT_DATE AND schedule.begin_date<=CURRENT_DATE THEN 1 ELSE 0 END AS pending_now, CASE WHEN submission.id IS NULL AND schedule.end_date>=CURRENT_DATE AND schedule.begin_date>CURRENT_DATE THEN 1 ELSE 0 END AS pending_future, CASE WHEN submission.id IS NOT NULL AND submission.assessment_date<schedule.begin_date THEN 1 ELSE 0 END AS done_early, CASE WHEN submission.id IS NOT NULL AND submission.assessment_date>schedule.end_date THEN 1 ELSE 0 END AS done_late, CASE WHEN submission.id IS NOT NULL AND submission.assessment_date<=schedule.end_date AND submission.assessment_date>=schedule.begin_date THEN 1 ELSE 0 END AS done_ontime, 1 AS total FROM ( -- CONFIGURED INSPECTIONS -- SELECT DISTINCT TP.id AS project_id, TP.name AS project, ft.slug, ft.name as form_template_name, interv.interval, ft.id AS form_template_id, TP.created_at AS project_created_at, COALESCE(ft.deprecated_at, TO_DATE('2018-12-25T21:00:00Z','yyyy-MM-dd')) as available_until -- Variable here FROM main.form_templates ft JOIN ( (SELECT project_id, interval, interv3.form_template_slug FROM main.form_list_interval_settings interv3 JOIN ( SELECT MAX(swppp_start_year) AS active_year, form_template_slug FROM main.form_list_interval_settings interv2 JOIN the_projects TP ON TP.id = interv2.project_id GROUP BY form_template_slug ) current_interv_year ON current_interv_year.active_year = interv3.swppp_start_year AND current_interv_year.form_template_slug = interv3.form_template_slug) UNION ALL (SELECT NULL AS project_id, MAX(B.interval) AS "interval", B.form_template_slug FROM main.form_list_interval_defaults B GROUP BY B.form_template_slug) ) interv ON interv.form_template_slug=ft.slug JOIN the_projects TP ON (TP.id = interv.project_id AND interv.project_id IS NOT NULL) OR ( interv.project_id IS NULL AND ( interv.form_template_slug = TP.state||'-routine-facility-inspection' OR interv.form_template_slug = TP.state||'-visual-assessment' OR ( TP.is_federal AND ( interv.form_template_slug IN ('federal-routine-facility-inspection','federal-visual-assessment') ) ) OR ( TP.bmp_module_enabled AND interv.form_template_slug = 'bmp-routine-facility-inspection' ) OR ( TP.spcc_enabled AND interv.form_template_slug IN ('federal-industrial-spcc-regular-inspection','federal-industrial-spcc-frequent-inspection') ) OR ( TP.fire_extinguisher_inspection_enabled AND interv.form_template_slug = 'federal-fire-extinguisher' ) ) ) ) inspection JOIN ( -- INSPECTION SCHEDULE: day,week, quarter, month, biannual, year -- SELECT name, interval, begin_date, end_date FROM ( SELECT the_date::text AS name,'day' AS interval, the_date::DATE AS begin_date, the_date AS end_date FROM the_dates UNION ALL SELECT to_char(begin_date,'yyyy "Week "WW') AS name,'week' AS interval, begin_date, end_date FROM ( SELECT MIN(the_date) AS begin_date, MAX(the_date) AS end_date FROM the_dates WHERE (EXTRACT(MONTH FROM the_date)>1 OR EXTRACT(WEEK FROM the_date)<45) AND (EXTRACT(MONTH FROM the_date)<12 OR EXTRACT(WEEK FROM the_date)>45) GROUP BY EXTRACT(YEAR FROM the_date), EXTRACT(WEEK FROM the_date) ) the_weeks UNION ALL SELECT to_char(begin_date, 'yyyy Month') AS name,'month' AS interval, begin_date, end_date FROM ( SELECT MIN(the_date) AS begin_date, MAX(the_date) AS end_date FROM the_dates GROUP BY EXTRACT(YEAR FROM the_date), EXTRACT(MONTH FROM the_date) ) the_months UNION ALL SELECT to_char(end_date, 'yyyy "Quarter "Q') AS name,'quarter' AS interval, begin_date, end_date FROM ( SELECT MIN(the_date) AS begin_date, MAX(the_date) AS end_date FROM the_dates GROUP BY EXTRACT(QUARTER FROM the_date),EXTRACT(YEAR FROM the_date) ) the_quarters UNION ALL SELECT to_char(begin_date, 'yyyy Mon')||to_char(end_date, '-Mon" Half Year"') AS name,'biannual' AS interval, begin_date, end_date FROM ( SELECT MIN(the_date) AS begin_date, MAX(the_date) AS end_date FROM the_dates GROUP BY CASE WHEN EXTRACT(MONTH FROM the_date)>6 THEN 2 ELSE 1 END,EXTRACT(YEAR FROM the_date) ) the_biannual UNION ALL SELECT to_char(end_date, 'yyyy') AS name,'year' AS interval, begin_date, end_date FROM ( SELECT MIN(the_date) AS begin_date, MAX(the_date) AS end_date FROM the_dates GROUP BY EXTRACT(YEAR FROM the_date) ) the_years ) the_interval_entries WHERE begin_date >= TO_DATE('2017-12-26T12:13:15+03:00','yyyy-MM-dd') -- Variable Here ORDER BY interval, begin_date ) schedule ON schedule.interval=inspection.interval AND schedule.begin_date <= inspection.available_until LEFT JOIN ( -- SUBMITTED INSPECTIONS -- SELECT FTS.id, FTS.marked_completed_by_user, FTS.form_template_id, FTS.project_id, TO_DATE(RIGHT(FTS.slug,11), 'yyyy-mon-dd') AS inspection_date, TO_DATE(FTSF.field_value,'yyyy-MM-dd') AS assessment_date FROM main.form_template_submissions FTS JOIN main.form_template_submission_fields FTSF ON FTS.id=FTSF.form_template_submission_id JOIN the_projects TP ON TP.id = FTS.project_id WHERE FTSF.field_slug IN ('info-date','inspect-date') AND LEFT(RIGHT(FTS.slug,3),1)='-' AND LEFT(RIGHT(FTS.slug,7),1)='-' AND SUBSTRING(FTSF.field_value,5,1)='-' AND SUBSTRING(FTSF.field_value,8,1)='-' AND TO_DATE(RIGHT(FTS.slug,11), 'yyyy-mon-dd')>=TO_DATE('2017-12-26T12:13:15+03:00','yyyy-MM-dd') -- Variable Here AND TO_DATE(RIGHT(FTS.slug,11), 'yyyy-mon-dd')<TO_DATE('2018-12-25T21:00:00Z','yyyy-MM-dd')+1 -- Variable Here ORDER BY TO_DATE(RIGHT(FTS.slug,11), 'yyyy-mon-dd') ) submission ON submission.form_template_id=inspection.form_template_id AND submission.project_id=inspection.project_id AND submission.inspection_date>=schedule.begin_date AND submission.inspection_date<=schedule.end_date WHERE schedule.end_date>inspection.project_created_at OR submission.id IS NOT NULL ) stats GROUP BY project_id, project, slug, "interval", form_template_name ORDER BY project, form_template_name, "interval";
<gh_stars>1-10 CREATE TABLE "Patient" ( `ID` INTEGER NOT NULL UNIQUE, `Name` TEXT NOT NULL, `BirthDate` TEXT NOT NULL, `LastUpdated` TEXT NOT NULL, PRIMARY KEY(ID) ) CREATE TABLE "Ailment" ( `ID` INTEGER NOT NULL UNIQUE, `Name` INTEGER NOT NULL, `LastUpdated` INTEGER NOT NULL, PRIMARY KEY(ID) ) CREATE TABLE "Symptom" ( `ID` INTEGER NOT NULL UNIQUE, `Name` TEXT NOT NULL, `LastUpdated` INTEGER NOT NULL, PRIMARY KEY(ID) ) CREATE TABLE `PatientAilment` ( `PatientID` INTEGER NOT NULL, `AilmentID` INTEGER NOT NULL, `LastUpdated` TEXT NOT NULL, PRIMARY KEY(PatientID,AilmentID) ) CREATE TABLE `AilmentSymptom` ( `AilmentID` INTEGER NOT NULL, `SymptomID` INTEGER NOT NULL, `LastUpdated` TEXT NOT NULL, PRIMARY KEY(AilmentID,SymptomID) )
<filename>5.2.3/Database/Synonyms/APEX_PLUGN_ATRIB.sql<gh_stars>1-10 SET DEFINE OFF; CREATE SYNONYM APEX_PLUGN_ATRIB FOR APEX_050000.WWV_FLOW_PLUGIN_ATTRIBUTES /
<reponame>karlarao/sql_plan_management -- GENERATE DATA -- generate data create table skew as select rownum all_distinct, 10000 skew from dual connect by level <= 10000; update skew set skew=all_distinct where rownum<=10; select skew, count(*) from skew group by skew order by skew; -- setup create index skew_idx on skew(skew); exec dbms_stats.gather_index_stats(user,'SKEW_IDX', no_invalidate => false); exec dbms_stats.gather_table_stats(user,'SKEW', no_invalidate => false); -- query select * from skew where skew=10000; select * from table(dbms_xplan.display_cursor); select * from skew where skew=3; select * from table(dbms_xplan.display_cursor); -- set stats to make full scan on skew=1 exec dbms_stats.set_table_stats(user, 'SKEW', numrows => 1, numblks => 1, avgrlen => 1, no_invalidate => false); --cleanup --drop table skew; drop index skew_idx; exec dbms_stats.delete_table_stats(user,'SKEW'); exec dbms_stats.gather_table_stats(user,'SKEW',method_opt=>'for columns skew size 1'); -- FREQUENCY HISTOGRAM exec dbms_stats.gather_table_stats(user,'SKEW',method_opt=>'for columns skew size 11'); select column_name,endpoint_number,endpoint_value from user_tab_histograms where table_name='SKEW' and column_name='SKEW'; COLUMN_NAME ENDPOINT_NUMBER ENDPOINT_VALUE ------------- --------------- -------------- SKEW 1 1 SKEW 2 2 SKEW 3 3 SKEW 4 4 SKEW 5 5 SKEW 6 6 SKEW 7 7 SKEW 8 8 SKEW 9 9 SKEW 10 10 SKEW 10000 10000 11 rows selected. set term off select * from skew where skew=10000; select * from skew where skew=1; select * from table(dbms_xplan.display_cursor); -- HEIGHT-BALANCED HISTOGRAM exec dbms_stats.gather_table_stats(user,'SKEW',method_opt=>'for columns skew size 5'); PL/SQL procedure successfully completed. <EMAIL>> select table_name, column_name,endpoint_number,endpoint_value from user_tab_histograms where table_name='SKEW' and column_name='SKEW'; TABLE_NAME COLUMN_NAME ENDPOINT_NUMBER ENDPOINT_VALUE ------------- ------------- --------------- -------------- HISTOGRAM SKEW 0 1 HISTOGRAM SKEW 5 10000 <EMAIL>> SELECT bucket_number, max(skew) AS endpoint_value 2 FROM ( 3 SELECT skew, ntile(5) OVER (ORDER BY skew) AS bucket_number 4 FROM skew) 5 GROUP BY bucket_number 6 ORDER BY bucket_number; BUCKET_NUMBER ENDPOINT_VALUE ------------- -------------- 1 10000 2 10000 3 10000 4 10000 5 10000
<reponame>kilip/siap<gh_stars>1-10 --- Import data from database umat katolik (DUK) --- DELETE from tr_keuskupan; INSERT into tr_keuskupan( id, kode, no_urut, nama, nama_latin, alamat, kota, telepon, fax, website, email, nama_uskup_saat_ini ) (select uuid_generate_v4(), "KeuskupanID", "NoUrutKeuskupan", "NamaKeuskupan", "NamaKeuskupanLatin", "AlamatKeuskupan", "KotaKeuskupan", "TeleponKeuskupan", "FaxKeuskupan", "WebsiteKeuskupan", "EmailKeuskupan", "NamaUskupSaatIni" FROM master_keuskupan ); DELETE from tr_paroki; INSERT INTO tr_paroki( id, keuskupan_id, kode, no_urut, nama, nama_gereja, alamat, kota, telepon, fax, website, email, pastor, wilayah_keuskupan ) (select uuid_generate_v4(), (select id from tr_keuskupan where kode=paroki."KeuskupanID") as keuskupan_id, "ParokiID", "NoParoki", "NamaParoki", "NamaGereja", "AlamatParoki", "KotaParoki", "TeleponParoki", "FaxParoki", "WebsiteParoki", "EmailParoki", "PastorParoki", "WilayahKeuskupan" from master_paroki paroki); INSERT INTO tr_jenis_wilayah values (1, 'Pusat Paroki'); INSERT INTO tr_jenis_wilayah values (2, 'Stasi'); DELETE from tr_lingkungan; INSERT INTO tr_lingkungan( id, no_urut, kode_lingkungan, nama, ketua ) (select uuid_generate_v4(), "NoLingkungan", "KodeWLID", "LingkunganID", "NamaKetuaLingkungan" FROM master_lingkungan ) ; UPDATE tr_lingkungan SET kode=CONCAT('027.018.',kode_lingkungan); UPDATE tr_lingkungan SET paroki_id = (SELECT id from tr_paroki where tr_paroki.kode='027.018'); UPDATE tr_lingkungan SET jenis_wilayah_id=1 where kode_lingkungan like '01%'; UPDATE tr_lingkungan SET jenis_wilayah_id=2 where kode_lingkungan like '02%'; UPDATE sc_user SET paroki_id=(SELECT id from tr_paroki where kode='027.018');
SELECT employees.ename, department.dept FROM employees LEFT JOIN department USING (eid);
USE [DB_DBA] GO -- ============================================= -- Author: <NAME> -- Create date: 11-11-2014 -- Description: the procedure generates the statistics report -- ============================================= CREATE PROCEDURE [Perfmon].[usp_SendReport] @HTMLTable NVARCHAR(MAX) OUTPUT, @DebugMode BIT = 0, @SendReport BIT = 1 AS BEGIN BEGIN TRY DECLARE @html NVARCHAR(MAX); -----------------------------Create the result table----------------------------- IF OBJECT_ID ('tempdb..#Report') IS NOT NULL BEGIN DROP TABLE #Report RAISERROR('the #Report table already exist',0,0) WITH NOWAIT; END; WITH T AS ( SELECT DatesRangeId = DatesRange.Id, DatesRange = DatesRange.Name, [CounterCollector].[CounterId], A.[CounterFullName], MaxCounterValue = CAST(MAX([CounterValue]) AS DECIMAL(23,2)), MinCounterValue = CAST(MIN([CounterValue]) AS DECIMAL(23,2)), AVGCounterValue = CAST(AVG([CounterValue]) AS DECIMAL(23,2)) FROM [Perfmon].[CounterCollector] JOIN [Perfmon].[CounterCollectorProcesses] ON [CounterCollectorProcesses].[Id] = [CounterCollector].[ProcesseId] JOIN [Perfmon].[Counters] ON [Counters].[Id] = [CounterCollector].[CounterId] JOIN ( VALUES (1,N'Last 24 Hours',DATEADD(DAY,-1,SYSDATETIME()),SYSDATETIME()), (2,N'One Week Ago',DATEADD(DAY,-8,SYSDATETIME()),DATEADD(DAY,-7,SYSDATETIME())), (3,N'One Month Ago',DATEADD(DAY,-29,SYSDATETIME()),DATEADD(DAY,-28,SYSDATETIME())), (4,N'One Year Ago',DATEADD(DAY,-365,SYSDATETIME()),DATEADD(DAY,-364,SYSDATETIME())) )DatesRange(Id,Name,StartDateTime,EndDateTime) ON [CounterCollectorProcesses].StartDateTime >= DatesRange.StartDateTime AND [CounterCollectorProcesses].StartDateTime <= DatesRange.EndDateTime CROSS APPLY (SELECT [CounterFullName] = [Counters].[DisplayName]+CASE WHEN [Counters].[InstanceName] = N'' OR [Counters].[InstanceName] IS NULL THEN N'' ELSE N'('+[Counters].[InstanceName]+N')' END) A GROUP BY [CounterCollector].[CounterId],A.[CounterFullName],DatesRange.Name,DatesRange.Id) SELECT [Counter Id] = ISNULL(CAST(Last24Hours.CounterId AS NVARCHAR(MAX)) ,''), --[Counter Id] [Counter Name] = ISNULL(CAST(Last24Hours.CounterFullName AS NVARCHAR(MAX)) ,''), --[Counter Name] [AVG Counter Value] = ISNULL(CAST(Last24Hours.AVGCounterValue AS NVARCHAR(MAX)) ,''), --[AVG Counter Value] [Max Counter Value] = ISNULL(CAST(Last24Hours.MaxCounterValue AS NVARCHAR(MAX)) ,''), --[Max Counter Value] [Min Counter Value] = ISNULL(CAST(Last24Hours.MinCounterValue AS NVARCHAR(MAX)) ,''), --[Min Counter Value] [AVG Week Ago] = ISNULL(CAST(Change.[AVGComparedToAWeekAgo] AS NVARCHAR(MAX)) ,''), [AVG Month Ago] = ISNULL(CAST(Change.[AVGComparedToAMonthAgo] AS NVARCHAR(MAX)) ,''), [AVG Year Ago] = ISNULL(CAST(Change.[AVGComparedToAYearAgo] AS NVARCHAR(MAX)) ,''), [MAX Week Ago] = ISNULL(CAST(Change.[MAXComparedToAWeekAgo] AS NVARCHAR(MAX)) ,''), [MAX Month Ago] = ISNULL(CAST(Change.[MAXComparedToAMonthAgo] AS NVARCHAR(MAX)) ,''), [MAX Year Ago] = ISNULL(CAST(Change.[MAXComparedToAYearAgo] AS NVARCHAR(MAX)) ,''), [MIN Week Ago] = ISNULL(CAST(Change.[MINComparedToAWeekAgo] AS NVARCHAR(MAX)) ,''), [MIN Month Ago] = ISNULL(CAST(Change.[MINComparedToAMonthAgo] AS NVARCHAR(MAX)) ,''), [MIN Year Ago] = ISNULL(CAST(Change.[MINComparedToAYearAgo] AS NVARCHAR(MAX)) ,'') INTO #Report FROM T AS Last24Hours LEFT JOIN T AS OneWeekAgo ON Last24Hours.CounterId = OneWeekAgo.CounterId AND OneWeekAgo.DatesRangeId = 2 LEFT JOIN T AS OneMonthAgo ON Last24Hours.CounterId = OneMonthAgo.CounterId AND OneMonthAgo.DatesRangeId = 3 LEFT JOIN T AS OneYearAgo ON Last24Hours.CounterId = OneYearAgo.CounterId AND OneYearAgo.DatesRangeId = 4 CROSS APPLY (SELECT [AVGComparedToAWeekAgo] = FORMAT(CASE WHEN OneWeekAgo.AVGCounterValue = 0 THEN NULL ELSE (Last24Hours.AVGCounterValue-OneWeekAgo.AVGCounterValue)/OneWeekAgo.AVGCounterValue/100 END ,'p'), [AVGComparedToAMonthAgo] = FORMAT(CASE WHEN OneMonthAgo.AVGCounterValue = 0 THEN NULL ELSE (Last24Hours.AVGCounterValue-OneMonthAgo.AVGCounterValue)/OneMonthAgo.AVGCounterValue/100 END ,'p'), [AVGComparedToAYearAgo] = FORMAT(CASE WHEN OneYearAgo.AVGCounterValue = 0 THEN NULL ELSE (Last24Hours.AVGCounterValue-OneYearAgo.AVGCounterValue)/OneYearAgo.AVGCounterValue/100 END ,'p'), [MAXComparedToAWeekAgo] = FORMAT(CASE WHEN OneWeekAgo.MaxCounterValue = 0 THEN NULL ELSE (Last24Hours.MaxCounterValue-OneWeekAgo.MaxCounterValue)/OneWeekAgo.MaxCounterValue/100 END ,'p'), [MAXComparedToAMonthAgo] = FORMAT(CASE WHEN OneMonthAgo.MaxCounterValue = 0 THEN NULL ELSE (Last24Hours.MaxCounterValue-OneMonthAgo.MaxCounterValue)/OneMonthAgo.MaxCounterValue/100 END ,'p'), [MAXComparedToAYearAgo] = FORMAT(CASE WHEN OneYearAgo.MaxCounterValue = 0 THEN NULL ELSE (Last24Hours.MaxCounterValue-OneYearAgo.MaxCounterValue)/OneYearAgo.MaxCounterValue/100 END ,'p'), [MINComparedToAWeekAgo] = FORMAT(CASE WHEN OneWeekAgo.MinCounterValue = 0 THEN NULL ELSE (Last24Hours.MinCounterValue-OneWeekAgo.MinCounterValue)/OneWeekAgo.MinCounterValue/100 END ,'p'), [MINComparedToAMonthAgo] = FORMAT(CASE WHEN OneMonthAgo.MinCounterValue = 0 THEN NULL ELSE (Last24Hours.MinCounterValue-OneMonthAgo.MinCounterValue)/OneMonthAgo.MinCounterValue/100 END ,'p'), [MINComparedToAYearAgo] = FORMAT(CASE WHEN OneYearAgo.MinCounterValue = 0 THEN NULL ELSE (Last24Hours.MinCounterValue-OneYearAgo.MinCounterValue)/OneYearAgo.MinCounterValue/100 END ,'p') )Change WHERE Last24Hours.DatesRangeId = 1 ORDER BY Last24Hours.CounterId ASC --------------------------------------------------------------------------------- ----------------------------------Return results--------------------------------- SELECT [Counter Id],[Counter Name],[AVG Counter Value],[Max Counter Value],[Min Counter Value],[AVG Week Ago], [AVG Month Ago],[AVG Year Ago],[MAX Week Ago],[MAX Month Ago],[MAX Year Ago],[MIN Week Ago], [MIN Month Ago],[MIN Year Ago] FROM #Report --------------------------------------------------------------------------------- ----------------------------------Generate HTML---------------------------------- EXEC[dbo].[usp_GenerateHTMLFromTable] @tableName =N'#Report', @Header =N'Statistics Report', @HTML = @HTMLTable OUTPUT, @DebugMode = @DebugMode IF @DebugMode = 1 SELECT @HTMLTable AS N'@HTMLTable' --------------------------------------------------------------------------------- ----------------------------------Send HTML---------------------------------- IF @SendReport = 1 BEGIN SET @html = '<html><header></header><body>'+@HTMLTable+'</body></html>' IF @DebugMode = 1 SELECT @html AS N'@html' EXEC msdb.dbo.sp_send_dbmail @body = @html , @recipients = '<EMAIL>' , @subject = 'Performance Report' , @profile_name = 'sales.neworder gmail' , @body_format = 'HTML'; END --------------------------------------------------------------------------------- DROP TABLE #Report END TRY BEGIN CATCH IF @@TRANCOUNT > 1 ROLLBACK; IF OBJECT_ID ('tempdb..#Report') IS NOT NULL BEGIN DROP TABLE #Report; END; DECLARE @ErrorMessage NVARCHAR(4000); DECLARE @ErrorSeverity INT; DECLARE @ErrorState INT; SELECT @ErrorMessage = ERROR_MESSAGE(), @ErrorSeverity = ERROR_SEVERITY(), @ErrorState = ERROR_STATE(); RAISERROR (@ErrorMessage,@ErrorSeverity, @ErrorState ); END CATCH END
<reponame>ashimjk/ajk-research<filename>spring/liquibase/src/main/resources/scripts/v_1.0.1.sql --liquibase formatted sql --changeset ashimjk:1.0.1 create sequence corporate_beneficiary_id_sequence start with 1 increment by 1; create sequence beneficiary_id_sequence start with 1 increment by 1; create sequence contact_person_id_sequence start with 1 increment by 1; insert into corporate_beneficiary(id) values (1); insert into beneficiary(id, name, corporate_beneficiary_id) values (1, 'ashim', 1); insert into contact_person(id, cp_name, corporate_beneficiary_id) values (1, 'pabitra', 1);
select first_value(finalsaleprice ignore nulls) over () as c1 from table1
-- 2021-09-28T07:02:40.970Z -- URL zum Konzept UPDATE C_DocType SET IsDocNoControlled='Y',Updated=TO_TIMESTAMP('2021-09-28 09:02:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=1000040 ; -- 2021-09-28T07:05:34.595Z -- URL zum Konzept UPDATE C_DocType SET DocNoSequence_ID=545400,Updated=TO_TIMESTAMP('2021-09-28 09:05:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=1000040 ; -- 2021-09-29T08:08:07.533Z -- URL zum Konzept UPDATE C_DocType_Trl SET Name='Distributionsauftrag',Updated=TO_TIMESTAMP('2021-09-29 10:08:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:08:08.697Z -- URL zum Konzept UPDATE C_DocType_Trl SET PrintName='Distributionsauftrag',Updated=TO_TIMESTAMP('2021-09-29 10:08:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:08:11.825Z -- URL zum Konzept UPDATE C_DocType_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-09-29 10:08:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:08:18.160Z -- URL zum Konzept UPDATE C_DocType_Trl SET Name='Distributionsauftrag',Updated=TO_TIMESTAMP('2021-09-29 10:08:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:08:20.383Z -- URL zum Konzept UPDATE C_DocType_Trl SET PrintName='Distributionsauftrag',Updated=TO_TIMESTAMP('2021-09-29 10:08:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:08:20.477Z -- URL zum Konzept UPDATE C_DocType_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-09-29 10:08:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:08:29.702Z -- URL zum Konzept UPDATE C_DocType_Trl SET Name='Distributionsauftrag',Updated=TO_TIMESTAMP('2021-09-29 10:08:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:08:31.339Z -- URL zum Konzept UPDATE C_DocType_Trl SET PrintName='Distributionsauftrag',Updated=TO_TIMESTAMP('2021-09-29 10:08:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:08:31.436Z -- URL zum Konzept UPDATE C_DocType_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-09-29 10:08:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='nl_NL' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:11:14.947Z -- URL zum Konzept UPDATE C_DocType SET Name='Distributionsauftrag',Updated=TO_TIMESTAMP('2021-09-29 10:11:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=1000040 ; -- 2021-09-29T08:11:15.023Z -- URL zum Konzept UPDATE C_DocType_Trl trl SET Description=NULL, DocumentNote=NULL, Name='Distributionsauftrag', PrintName='Distribution Order' WHERE C_DocType_ID=1000040 AND ( trl.isTranslated = 'N' OR exists(select 1 from ad_language lang where lang.ad_language = trl.ad_language and lang.isBaseLanguage = 'Y') ) ; -- 2021-09-29T08:11:20.133Z -- URL zum Konzept UPDATE C_DocType SET PrintName='Distributionsauftrag',Updated=TO_TIMESTAMP('2021-09-29 10:11:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE C_DocType_ID=1000040 ; -- 2021-09-29T08:11:20.152Z -- URL zum Konzept UPDATE C_DocType_Trl trl SET Description=NULL, DocumentNote=NULL, Name='Distributionsauftrag', PrintName='Distributionsauftrag' WHERE C_DocType_ID=1000040 AND ( trl.isTranslated = 'N' OR exists(select 1 from ad_language lang where lang.ad_language = trl.ad_language and lang.isBaseLanguage = 'Y') ) ; -- 2021-09-29T08:11:51.756Z -- URL zum Konzept UPDATE C_DocType_Trl SET Name='Distribution Order',Updated=TO_TIMESTAMP('2021-09-29 10:11:51','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_GB' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:11:53.258Z -- URL zum Konzept UPDATE C_DocType_Trl SET PrintName='Distribution Order',Updated=TO_TIMESTAMP('2021-09-29 10:11:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_GB' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:11:53.358Z -- URL zum Konzept UPDATE C_DocType_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-09-29 10:11:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_GB' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:12:03.211Z -- URL zum Konzept UPDATE C_DocType_Trl SET Name='Distribution Order',Updated=TO_TIMESTAMP('2021-09-29 10:12:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:12:04.397Z -- URL zum Konzept UPDATE C_DocType_Trl SET PrintName='Distribution Order',Updated=TO_TIMESTAMP('2021-09-29 10:12:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND C_DocType_ID=1000040 ; -- 2021-09-29T08:12:05.842Z -- URL zum Konzept UPDATE C_DocType_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2021-09-29 10:12:05','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND C_DocType_ID=1000040 ; -- disable unsued action -- 2021-10-04T08:49:32.888Z -- URL zum Konzept UPDATE AD_Table_Process SET IsActive='N',Updated=TO_TIMESTAMP('2021-10-04 10:49:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Table_Process_ID=540452 ;
<filename>bin/apache-hive-3.1.2-bin/scripts/metastore/upgrade/postgres/043-HIVE-16997.postgres.sql version https://git-lfs.github.com/spec/v1 oid sha256:66c2abe76ecb6c4003d304405f19d1a65b8373de4372f3a934b110f645e2149f size 119
--Changeset dbhat:Alter metricprovider table to add Dynatrace Connection Properties column ALTER TABLE metricprovider add dynatraceConnectionProperties frozen<dynatraceConnectionProperties>;
# Count SNPs by base pair transition across the dataset SELECT reference_bases, alternate_bases AS allele, COUNT(alternate_bases) AS num_snps FROM [google.com:biggene:1000genomes.variants1kG] WHERE vt ='SNP' GROUP BY reference_bases, allele ORDER BY reference_bases, allele;
-- Note that the commented SQL statements are not to be executed. They are -- provided for reference only as it is not possible to simply change a -- uniqueidentifier column to bigint. Refer to the link below for the an -- approach to do so. --alter table ENVIRONMENT drop constraint FK???; --alter table ENVIRONMENT alter column ZONE_ID bigint; --alter table ENVIRONMENT add constraint FK_ENVIRONMENT_ZONE foreign key (ZONE_ID) references [ZONE] (ZONE_ID); alter table ENVIRONMENT_REGISTER add ZONE_ID bigint; --alter table ENVIRONMENT_REGISTER add constraint FK_ENVIRONMENT_REGISTER_ZONE foreign key (ZONE_ID) references [ZONE] (ZONE_ID); -- To change the primary key from a GUID to an integer for the ZONE table, -- refer to the following article. -- -- http://stackoverflow.com/questions/2730305/approach-for-altering-primary-key-from-guid-to-bigint-in-sql-server-related-tabl -- --alter table [ZONE] drop constraint PK???; --alter table [ZONE] alter column ZONE_ID bigint identity not null; --alter table [ZONE] add constraint PK_ZONE primary key (ZONE_ID); alter table [ZONE] add SIF_ID nvarchar(64); --alter table ZONE_PROPERTIES drop constraint PK???; --alter table ZONE_PROPERTIES alter column ZONE_ID bigint not null; --alter table ZONE_PROPERTIES add constraint PK_ZONE_PROPERTIES primary key (ZONE_ID, NAME);
<reponame>Engbits/replicant ALTER TABLE candidates DROP COLUMN tagged_job_id;
\set ECHO none \set QUIET 1 /* * We intentionally test "char" as well, because it's typlen is 1 and it's * easier to include it here than to test boolean (the other typlen 1 type). */ \set baseline_type text -- Space separated string \set test_types '"char" character character(10) varchar varchar(10) text' -- Used in array[ :base_values ] \set base_values '$$a$$, $$b$$, $$c$$, NULL' \set compare_value b \i test/helpers/type_setup.sql SELECT plan(sum(test_count)::int) FROM plan; \i test/helpers/type.sql -- vi: expandtab sw=2 ts=2
<filename>module/Users/sql/users.sql -- -- User Module Setup -- CREATE TABLE IF NOT EXISTS user ( id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, name TEXT NOT NULL, email VARCHAR(255) NOT NULL, password TEXT NOT NULL, PRIMARY KEY (id), UNIQUE INDEX idx_email(email) ); CREATE TABLE IF NOT EXISTS uploads ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY , filename VARCHAR( 255 ) NOT NULL , label VARCHAR( 255 ) NOT NULL , user_id INT NOT NULL, UNIQUE KEY (filename) ); CREATE TABLE IF NOT EXISTS uploads_sharing ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY , upload_id INT NOT NULL , user_id INT NOT NULL , UNIQUE KEY (upload_id, user_id) ); CREATE TABLE IF NOT EXISTS chat_messages ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, user_id INT NOT NULL, message VARCHAR(255) NOT NULL, stamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP );
<reponame>Zhaojia2019/cubrid-testcases --+ holdcas on; set names binary; SELECT BIT_LENGTH('字符串1'); SELECT BIT_LENGTH(cast( _utf8'문자열' as string charset euckr)); SELECT BIT_LENGTH(_utf8'字符串1'); SELECT BIT_LENGTH(cast(_utf8'À' as string charset iso88591)); SELECT BIT_LENGTH(chr(0)); set names iso88591; commit; --+ holdcas off;
<filename>src/test/regress/sql/tpch04.sql -- $ID$ -- TPC-H/TPC-R Order Priority Checking Query (Q4) -- Functional Query Definition -- Approved February 1998 select o_orderpriority, count(*) as order_count from orders where o_orderdate >= '1993-07-01'::date and o_orderdate < '1993-07-01'::date + interval '3 month' and exists ( select * from lineitem where l_orderkey = o_orderkey and l_commitdate < l_receiptdate ) group by o_orderpriority order by o_orderpriority;
/* * Structure */ CREATE TABLE `geo` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `created_by` varchar(255) NOT NULL, `created_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_modified_by` varchar(255) NOT NULL, `last_modified_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `lat` varchar(255) DEFAULT NULL, `lng` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /* * Structure */ CREATE TABLE `address` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `created_by` varchar(255) NOT NULL, `created_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_modified_by` varchar(255) NOT NULL, `last_modified_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `city` varchar(255) DEFAULT NULL, `street` varchar(255) DEFAULT NULL, `suite` varchar(255) DEFAULT NULL, `zipcode` varchar(255) DEFAULT NULL, `geo_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), KEY `FKco48e3q5mlq831ijyssn2t25q` (`geo_id`), CONSTRAINT `FKco48e3q5mlq831ijyssn2t25q` FOREIGN KEY (`geo_id`) REFERENCES `geo` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; /* * Structure */ CREATE TABLE `person` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `created_by` varchar(255) NOT NULL, `created_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `last_modified_by` varchar(255) NOT NULL, `last_modified_date` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `age` int(11) DEFAULT NULL, `dob` date DEFAULT NULL, `email_primary` varchar(255) NOT NULL, `email_secondary` varchar(255) DEFAULT NULL, `gender` varchar(255) NOT NULL, `is_adult` bit(1) NOT NULL, `name` varchar(255) NOT NULL, `password` varchar(255) DEFAULT NULL, `phone` bigint(20) NOT NULL, `username` varchar(255) DEFAULT NULL, `address_id` bigint(20) DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UK_cb2kxuy8vrw12d8wn5tc3x7uq` (`email_primary`), UNIQUE KEY `UK_24t7n7hhuvwaqw92b2t514m33` (`phone`), UNIQUE KEY `UK_n0i6d7rc1hqkjivk494g8j2qd` (`username`), KEY `FKk7rgn6djxsv2j2bv1mvuxd4m9` (`address_id`), CONSTRAINT `FKk7rgn6djxsv2j2bv1mvuxd4m9` FOREIGN KEY (`address_id`) REFERENCES `address` (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
<filename>src/main/resources/db/migration/V4__svarfrist.sql ALTER TABLE foresporsel_om_deling_av_cv ADD COLUMN svarfrist DATE NOT NULL;
<reponame>JaciBrunning/frc_2017_statistics<filename>models/insert/districts/team.sql INSERT INTO district_teams(team, district) VALUES( ?, (SELECT id FROM districts WHERE key == ?) );
<gh_stars>0 CREATE DATABASE reciclApp; USE reciclApp; CREATE TABLE users ( id INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT, fullName VARCHAR (50) NOT NULL, typeDocument VARCHAR (20) NOT NULL, numberDocument VARCHAR (20) NOT NULL, mobilePhone INT (20) NOT NULL, email VARCHAR (50) NOT NULL UNIQUE, password VARCHAR (60) NOT NULL, addressHome VARCHAR (50) NOT NULL, roles INT (10) NOT NULL, neighborhood VARCHAR (50) NOT NULL, typeHouse VARCHAR (50) NOT NULL, membersHome VARCHAR (50) NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT current_timestamp )ENGINE=InnoDB DEFAULT CHARSET=utf8, CREATE TABLE roles ( id INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT, rolName VARCHAR (50) NOT NULL )ENGINE=InnoDB DEFAULT CHARSET=utf8, CREATE TABLE materials ( id INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT, typeMaterial VARCHAR (50) NOT NULL, quantity INT (50) NOT NULL, user_id INT (11), create_at TIMESTAMP NOT NULL DEFAULT current_timestamp CONSTRAINT fk_user FOREIGN KEY (user_id) REFERENCES users (id) )ENGINE=InnoDB DEFAULT CHARSET=utf8, CREATE TABLE collect ( id INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT, dateCollect DATE NOT NULL, comment VARCHAR (255) NULL, stated BOOLEAN NOT NULL DEFAULT false user_id INT (11), create_at TIMESTAMP NOT NULL DEFAULT current_timestamp, CONSTRAINT fk_user2 FOREIGN KEY (user_id) REFERENCES users (id) )
<reponame>rvjha/simple-login-registration-form-with-google-reCaptcha-v2 -- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 04, 2020 at 01:29 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `sec` -- -- -------------------------------------------------------- -- -- Table structure for table `otp` -- CREATE TABLE `otp` ( `id` int(11) NOT NULL, `uId` varchar(255) NOT NULL, `otp` int(6) NOT NULL, `createdAt` datetime NOT NULL, `isExpired` tinyint(1) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `uId` int(11) NOT NULL, `uFirstName` varchar(255) NOT NULL, `uLastName` varchar(255) NOT NULL, `uEmail` varchar(255) NOT NULL, `uPass` varchar(128) NOT NULL, `uCreatedAt` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Indexes for dumped tables -- -- -- Indexes for table `otp` -- ALTER TABLE `otp` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`uEmail`), ADD UNIQUE KEY `uId` (`uId`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `otp` -- ALTER TABLE `otp` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `uId` int(11) NOT NULL AUTO_INCREMENT; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>0 DROP TABLE IF EXISTS `category_group`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `category_group` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `created_by` varchar(250) DEFAULT NULL, `created_date` datetime DEFAULT NULL, `deleted` char(1) DEFAULT NULL, `updated_by` varchar(250) DEFAULT NULL, `updated_date` datetime DEFAULT NULL, `name` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; --Create some default category groups insert into `category_group`(id, name, deleted, created_by, created_date, updated_by, updated_date) values (1, 'Makeup', 'N', 'System', now(), 'System', now()), (2, 'Scents', 'N', 'System', now(), 'System', now()), (3, 'Body', 'N', 'System', now(), 'System', now()), (4, 'Bath', 'N', 'System', now(), 'System', now()), (5, 'Hair', 'N', 'System', now(), 'System', now()); --Handle many-to-one mapping of category to category-group alter table `category` add column `category_group_id` bigint(20) DEFAULT NULL; alter table `category` add constraint `fk_category_category_group` foreign key(`category_group_id`) references `category_group`(id); --Assign default categories to category groups update `category` set `category_group_id`=1 where name='Lipsticks'; update `category` set `category_group_id`=1 where name='Masks'; update `category` set `category_group_id`=1 where name='Eye Shadow'; update `category` set `category_group_id`=2 where name='Perfume';
<gh_stars>0 DELETE FROM instance_member; DELETE FROM dungeon; ALTER TABLE instance_member ADD UNIQUE (username); ALTER TABLE dungeon ADD UNIQUE (owner_username);
<reponame>AhmadDawood/UDW_BI EXECUTE spFindStudentBioData_ByLocality_R6 'Lahore',DEFAULT, DEFAULT
<reponame>krishnaveduri/newexchangeserver<filename>sql/create_trade_history.sql CREATE TABLE `balance_history_example` ( `id` BIGINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, `time` DOUBLE NOT NULL, `user_id` INT UNSIGNED NOT NULL, `asset` VARCHAR(30) NOT NULL, `business` VARCHAR(30) NOT NULL, `change` DECIMAL(30,8) NOT NULL, `balance` DECIMAL(30,16) NOT NULL, `detail` TEXT NOT NULL, INDEX `idx_user_asset` (`user_id`, `asset`), INDEX `idx_user_asset_business` (`user_id`, `asset`, `business`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- split by user_id CREATE TABLE `order_history_example` ( `id` BIGINT UNSIGNED NOT NULL PRIMARY KEY, `create_time` DOUBLE NOT NULL, `finish_time` DOUBLE NOT NULL, `user_id` INT UNSIGNED NOT NULL, `market` VARCHAR(30) NOT NULL, `source` VARCHAR(30) NOT NULL, `t` TINYINT UNSIGNED NOT NULL, `side` TINYINT UNSIGNED NOT NULL, `price` DECIMAL(30,8) NOT NULL, `amount` DECIMAL(30,8) NOT NULL, `taker_fee` DECIMAL(30,4) NOT NULL, `maker_fee` DECIMAL(30,4) NOT NULL, `deal_stock` DECIMAL(30,8) NOT NULL, `deal_money` DECIMAL(30,16) NOT NULL, `deal_fee` DECIMAL(30,16) NOT NULL, INDEX `idx_user_market` (`user_id`, `market`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- split by id, aka orer_id CREATE TABLE `order_detail_example` ( `id` BIGINT UNSIGNED NOT NULL PRIMARY KEY, `create_time` DOUBLE NOT NULL, `finish_time` DOUBLE NOT NULL, `user_id` INT UNSIGNED NOT NULL, `market` VARCHAR(30) NOT NULL, `source` VARCHAR(30) NOT NULL, `t` TINYINT UNSIGNED NOT NULL, `side` TINYINT UNSIGNED NOT NULL, `price` DECIMAL(30,8) NOT NULL, `amount` DECIMAL(30,8) NOT NULL, `taker_fee` DECIMAL(30,4) NOT NULL, `maker_fee` DECIMAL(30,4) NOT NULL, `deal_stock` DECIMAL(30,8) NOT NULL, `deal_money` DECIMAL(30,16) NOT NULL, `deal_fee` DECIMAL(30,16) NOT NULL, INDEX `idx_user_market` (`user_id`, `market`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- split by order_id CREATE TABLE `deal_history_example` ( `id` BIGINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, `time` DOUBLE NOT NULL, `user_id` INT UNSIGNED NOT NULL, `deal_id` BIGINT UNSIGNED NOT NULL, `order_id` BIGINT UNSIGNED NOT NULL, `deal_order_id` BIGINT UNSIGNED NOT NULL, `role` TINYINT UNSIGNED NOT NULL, `price` DECIMAL(30,8) NOT NULL, `amount` DECIMAL(30,8) NOT NULL, `deal` DECIMAL(30,16) NOT NULL, `fee` DECIMAL(30,16) NOT NULL, `deal_fee` DECIMAL(30,16) NOT NULL, INDEX `idx_order_id` (`order_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- split by user_id CREATE TABLE `user_deal_history_example` ( `id` BIGINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, `time` DOUBLE NOT NULL, `user_id` INT UNSIGNED NOT NULL, `market` VARCHAR(30) NOT NULL, `deal_id` BIGINT UNSIGNED NOT NULL, `order_id` BIGINT UNSIGNED NOT NULL, `deal_order_id` BIGINT UNSIGNED NOT NULL, `side` TINYINT UNSIGNED NOT NULL, `role` TINYINT UNSIGNED NOT NULL, `price` DECIMAL(30,8) NOT NULL, `amount` DECIMAL(30,8) NOT NULL, `deal` DECIMAL(30,16) NOT NULL, `fee` DECIMAL(30,16) NOT NULL, `deal_fee` DECIMAL(30,16) NOT NULL, INDEX `idx_user_market` (`user_id`, `market`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- to store the cancelled order info CREATE TABLE `cancelled_orders` ( `id` BIGINT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, `user_id` INT UNSIGNED NOT NULL, `order_details` TEXT NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
SELECT COALESCE("This", "That", "another"), COALESCE(NULL, "That", "another"), COALESCE(NULL, NULL, "another"), COALESCE("This", NULL, "another");
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 07 Gru 2021, 09:47 -- Wersja serwera: 10.4.14-MariaDB -- Wersja PHP: 7.4.10 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 */; -- -- Baza danych: `nasa` -- -- -------------------------------------------------------- -- -- Struktura tabeli dla tabeli `orders` -- CREATE TABLE `orders` ( `id` int(11) NOT NULL, `item` text NOT NULL, `number of orders` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Zrzut danych tabeli `orders` -- INSERT INTO `orders` (`id`, `item`, `number of orders`) VALUES (1, 'rocket', 1), (2, 'satellite', 3), (3, 'mars wandering', 3), (4, 'air meter', 5), (5, 'air meter', 5), (6, 'astronaut suit', 4), (7, 'space food', 4), (8, 'space travel guide', 4), (9, 'durable astronaut suit', 4), (10, 'rocket belts', 4); -- -- Indeksy dla zrzutów tabel -- -- -- Indeksy dla tabeli `orders` -- ALTER TABLE `orders` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT dla tabeli `orders` -- ALTER TABLE `orders` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; 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>CMP/CmpWap/CmpWapExtension/CmpWapDb/dbo/Tables/VmOsMap.sql<gh_stars>10-100 CREATE TABLE [dbo].[VmOsMap] ( [Id] INT NOT NULL, [DisplayName] VARCHAR (MAX) NULL, [AzureImageName] VARCHAR (MAX) NULL, [TagData] VARCHAR (MAX) NULL, [IsActive] BIT NULL, [Config] VARCHAR (MAX) NULL, [Description] VARCHAR (MAX) NULL, PRIMARY KEY CLUSTERED ([Id] ASC) );
<reponame>NakamaNetwork/nakama.legacy CREATE TABLE [dbo].[Ships] ( [Id] INT NOT NULL, [Name] NVARCHAR(128) NULL, [Description] NVARCHAR(1000) NULL, [EventShip] BIT NOT NULL CONSTRAINT [DF_dbo.Ships_EventShip] DEFAULT 0, CONSTRAINT [PK_dbo.Ships] PRIMARY KEY CLUSTERED ([Id] ASC) ) GO
-- ============================================= -- Author: <NAME> -- Create date: 23 July 2008 -- Description: Remove the time from date so that -- date comparisons don't return unexpected -- results -- ============================================= CREATE FUNCTION [dbo].[fnx_RemoveTime] ( @date DATETIME ) RETURNS DATETIME AS BEGIN DECLARE @return datetime --DateTime is stored internally as a float, with everything to the right of the decimal point --being used for time. SET @return = CAST(FLOOR(CAST(@date AS FLOAT))AS DATETIME) RETURN @return END
<gh_stars>1-10 -- Verify procedures/verify_table on pg BEGIN; SELECT verify_function ('public.verify_table'); ROLLBACK;
<gh_stars>10-100 -- Project SELECT dropIfExists('VIEW', 'project', 'api'); CREATE VIEW api.project AS SELECT prj_number AS number, prj_name AS name, prj_descrip AS description, prj_owner_username AS owner, prj_username AS assigned_to, prj_so AS sales_orders, prj_wo AS work_orders, prj_po AS purchase_orders, CASE WHEN (prj_status = 'P') THEN 'Concept' WHEN (prj_status = 'O') THEN 'In-Process' WHEN (prj_status = 'C') THEN 'Closed' ELSE 'Error' END AS status, prj_due_date AS due, prj_assigned_date AS assigned, prj_start_date AS started, prj_completed_date AS completed FROM prj; GRANT ALL ON TABLE api.project TO xtrole; COMMENT ON VIEW api.project IS 'Project'; --Rules CREATE OR REPLACE RULE "_INSERT" AS ON INSERT TO api.project DO INSTEAD INSERT INTO prj ( prj_number, prj_name, prj_descrip, prj_owner_username, prj_username, prj_so, prj_wo, prj_po, prj_status, prj_due_date, prj_assigned_date, prj_start_date, prj_completed_date ) VALUES ( NEW.number, COALESCE(NEW.name,''), COALESCE(NEW.description,''), COALESCE(NEW.owner,getEffectiveXtUser()), COALESCE(NEW.assigned_to,getEffectiveXtUser()), COALESCE(NEW.sales_orders,true), COALESCE(NEW.work_orders,true), COALESCE(NEW.purchase_orders,true), CASE WHEN (NEW.status='In-Process') THEN 'O' WHEN (NEW.status='Completed') THEN 'C' ELSE 'P' END, NEW.due, NEW.assigned, NEW.started, NEW.completed ); CREATE OR REPLACE RULE "_UPDATE" AS ON UPDATE TO api.project DO INSTEAD UPDATE prj SET prj_name=NEW.name, prj_descrip=NEW.description, prj_owner_username=NEW.owner, prj_username=NEW.assigned_to, prj_so=NEW.sales_orders, prj_wo=NEW.work_orders, prj_po=NEW.purchase_orders, prj_status= CASE WHEN (NEW.status='In-Process') THEN 'O' WHEN (NEW.status='Completed') THEN 'C' ELSE 'P' END, prj_due_date=NEW.due, prj_assigned_date=NEW.assigned, prj_start_date=NEW.started, prj_completed_date=NEW.completed WHERE (prj_number=OLD.number); CREATE OR REPLACE RULE "_DELETE" AS ON DELETE TO api.project DO INSTEAD SELECT deleteproject (getPrjId(OLD.number));
/* EmojiWizard is a project licensed under GNU Affero General Public License. Copyright (C) 2022-present Achxy This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. */ SELECT * FROM guild_prefixes;
<gh_stars>10-100 /* 33.22 */ SELECT name FROM `diablo`.`characters` ORDER BY name;
-- file:alter_table.sql ln:2390 expect:true drop table temp_part_parent cascade
<gh_stars>1000+ -- 2020-01-07T07:40:37.691Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='Y',Updated=TO_TIMESTAMP('2020-01-07 09:40:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=8804 ;
<gh_stars>1000+ -- 2021-05-19T20:17:14.389Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,ColumnSQL,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FacetFilterSeqNo,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsFacetFilter,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsShowFilterIncrementButtons,IsShowFilterInline,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,MaxFacetsToFetch,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,573948,578977,0,20,291,'IsArchived','(select isarchived from c_bpartner_alberta bp where bp.c_bpartner_id = c_bpartner.c_bpartner_id)',TO_TIMESTAMP('2021-05-19 23:17:14','YYYY-MM-DD HH24:MI:SS'),100,'N','N','de.metas.vertical.healthcare.alberta',0,1,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N',0,'Archiviert',0,0,TO_TIMESTAMP('2021-05-19 23:17:14','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2021-05-19T20:17:14.393Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Column_ID=573948 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2021-05-19T20:17:14.405Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(578977) ; -- 2021-05-19T20:18:48.610Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,ColumnSQL,Created,CreatedBy,DDL_NoForeignKey,DefaultValue,EntityType,FacetFilterSeqNo,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsFacetFilter,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsShowFilterIncrementButtons,IsShowFilterInline,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,MaxFacetsToFetch,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,573949,579162,0,20,291,'IsAlbertaDoctor','(select max(CASE WHEN albertarole = ''PD'' THEN ''Y'' ELSE ''N'' END) from c_bpartner_albertarole bp where bp.c_bpartner_id = c_bpartner_alberta.c_bpartner_id)',TO_TIMESTAMP('2021-05-19 23:18:48','YYYY-MM-DD HH24:MI:SS'),100,'N','','de.metas.vertical.healthcare.alberta',0,1,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N',0,'Is Alberta doctor',0,0,TO_TIMESTAMP('2021-05-19 23:18:48','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2021-05-19T20:18:48.611Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Column_ID=573949 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2021-05-19T20:18:48.614Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(579162) ; -- 2021-05-19T20:20:08.650Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,ColumnSQL,Created,CreatedBy,DDL_NoForeignKey,EntityType,FacetFilterSeqNo,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsFacetFilter,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsShowFilterIncrementButtons,IsShowFilterInline,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,MaxFacetsToFetch,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,573950,579194,0,10,291,'AlbertaTitle','(select title from c_bpartner_alberta bp where bp.c_bpartner_id = c_bpartner.c_bpartner_id)',TO_TIMESTAMP('2021-05-19 23:20:08','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.vertical.healthcare.alberta',0,255,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N',0,'Titel',0,0,TO_TIMESTAMP('2021-05-19 23:20:08','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2021-05-19T20:20:08.656Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Column_ID=573950 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2021-05-19T20:20:08.666Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(579194) ; -- 2021-05-19T20:20:41.502Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,ColumnSQL,Created,CreatedBy,DDL_NoForeignKey,EntityType,FacetFilterSeqNo,FieldLength,IsActive,IsAdvancedText,IsAllowLogging,IsAlwaysUpdateable,IsAutoApplyValidationRule,IsAutocomplete,IsCalculated,IsDimension,IsDLMPartitionBoundary,IsEncrypted,IsFacetFilter,IsForceIncludeInGeneratedModel,IsGenericZoomKeyColumn,IsGenericZoomOrigin,IsIdentifier,IsKey,IsLazyLoading,IsMandatory,IsParent,IsSelectionColumn,IsShowFilterIncrementButtons,IsShowFilterInline,IsStaleable,IsSyncDatabase,IsTranslated,IsUpdateable,IsUseDocSequence,MaxFacetsToFetch,Name,SelectionColumnSeqNo,SeqNo,Updated,UpdatedBy,Version) VALUES (0,573951,579163,0,10,291,'TitleShort','(select titleshort from c_bpartner_alberta bp where bp.c_bpartner_id = c_bpartner.c_bpartner_id)',TO_TIMESTAMP('2021-05-19 23:20:41','YYYY-MM-DD HH24:MI:SS'),100,'N','de.metas.vertical.healthcare.alberta',0,255,'Y','N','Y','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N','N',0,'Kurztitel',0,0,TO_TIMESTAMP('2021-05-19 23:20:41','YYYY-MM-DD HH24:MI:SS'),100,0) ; -- 2021-05-19T20:20:41.512Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Column_Trl (AD_Language,AD_Column_ID, Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Column_ID, t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Column t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Column_ID=573951 AND NOT EXISTS (SELECT 1 FROM AD_Column_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Column_ID=t.AD_Column_ID) ; -- 2021-05-19T20:20:41.524Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator /* DDL */ select update_Column_Translation_From_AD_Element(579163) ;
DELETE FROM `qb_config` WHERE `c_key`='must_yz_phone'; INSERT INTO `qb_config` (`id`, `type`, `title`, `c_key`, `c_value`, `form_type`, `options`, `ifsys`, `htmlcode`, `c_descrip`, `list`, `sys_id`) VALUES(0, 8, '是否强制绑定手机号', 'must_yz_phone', '0', 'radio', '0|不强制\r\n1|强制绑定', 1, '', '', 0, 0);
<reponame>iuri/tutortronics<filename>packages-old/acs-kernel/sql/oracle/upgrade/upgrade-5.3.2d1-5.3.2d2.sql -- -- packages/acs-kernel/sql/oracle/upgrade/upgrade-5.3.2d1-5.3.2d2.sql -- -- @author <NAME> (<EMAIL>) -- @creation-date 2007-05-24 -- @cvs-id $Id: upgrade-5.3.2d1-5.3.2d2.sql,v 1.3 2015/12/04 13:49:25 cvs Exp $ -- declare v_result integer; begin select count(*) into v_result from user_constraints where constraint_name = 'apm_parameters_datatype_ck'; if v_result > 0 then execute immediate 'alter table apm_parameters drop constraint ''apm_parameters_datatype_ck'''; end if; select count(*) into v_result from user_constraints where constraint_name = 'apm_parameter_datatype_ck'; if v_result > 0 then execute immediate 'alter table apm_parameters drop constraint ''apm_parameter_datatype_ck'''; end if; execute immediate 'alter table apm_parameters add constraint apm_parameters_datatype_ck check(datatype in (''number'', ''string'',''text''))'; end; / show errors
# Host: localhost (Version: 5.5.53-log) # Date: 2018-12-19 17:55:44 # Generator: MySQL-Front 5.3 (Build 4.234) /*!40101 SET NAMES utf8 */; # # Structure for table "login" # DROP TABLE IF EXISTS `login`; CREATE TABLE `login` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(16) DEFAULT NULL, `password` varchar(225) DEFAULT NULL, `QQ` varchar(10) DEFAULT NULL, PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8; # # Data for table "login" # INSERT INTO `login` VALUES (9,'root','<PASSWORD>','1102354384'),(10,'admin','<PASSWORD>','3020448868'),(11,'123123','4297f44b13955235245b2497399d7a93','11111111'),(12,'11111','96e79218965eb72c92a549dd5a330112','11111111'),(13,'1c11','96e79218965eb72c92a549dd5a330112','1233444412'); # # Structure for table "message" # DROP TABLE IF EXISTS `message`; CREATE TABLE `message` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `content` text, `stime` timestamp NULL DEFAULT NULL, `etime` timestamp NULL DEFAULT NULL, `murl` varchar(255) DEFAULT NULL, `images` varchar(255) DEFAULT 'default.jpg', `builder` varchar(255) DEFAULT NULL, `enroll` int(1) DEFAULT NULL, `apply` text, `applynum` int(11) DEFAULT '0', `join` text, `joinnum` int(11) DEFAULT '0', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; # # Data for table "message" # INSERT INTO `message` VALUES (2,'t1','t1content','2018-12-19 12:12:00','2018-12-26 12:12:00','https://y.qq.com/portal/player.html','5c19c69715aa2.jpg','root',1,'',0,'123123,11111,1c11,',3),(3,'123321','123','2018-12-19 17:18:00','2018-12-26 17:18:00','','default.jpg','admin',0,NULL,0,NULL,0); # # Structure for table "options" # DROP TABLE IF EXISTS `options`; CREATE TABLE `options` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `mid` int(11) DEFAULT NULL, `name` varchar(255) DEFAULT NULL, `participant` text, `participantnum` int(11) DEFAULT '0', PRIMARY KEY (`Id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8; # # Data for table "options" # INSERT INTO `options` VALUES (4,2,'o1',',admin,',2),(5,2,'o2','11111,',1),(6,2,'o3',NULL,0),(7,3,'111',NULL,0),(8,3,'222',NULL,0),(9,3,'333','root,',1);
<reponame>GreenArrow2017/FilmMeeting<gh_stars>1-10 -- ---------------------------- -- Table structure for order_t -- ---------------------------- DROP TABLE IF EXISTS `order_t`; CREATE TABLE order_t( UUID VARCHAR(100) COMMENT '主键编号', cinema_id INT COMMENT '影院编号', field_id INT COMMENT '放映场次编号', film_id INT COMMENT '电影编号', seats_ids VARCHAR(50) COMMENT '已售座位编号', seats_name VARCHAR(200) COMMENT '已售座位名称', film_price DOUBLE COMMENT '影片售价', order_price DOUBLE COMMENT '订单总金额', order_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP COMMENT '下单时间', order_user INT COMMENT '下单人', order_status INT DEFAULT 0 COMMENT '0-待支付,1-已支付,2-已关闭' ) COMMENT '订单信息表' ENGINE = INNODB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC; -- ---------------------------- -- Records of order_t -- ---------------------------- INSERT INTO order_t(UUID,cinema_id,field_id,film_id,seats_ids,seats_name,film_price,order_price,order_user) VALUES('415sdf58ew12ds5fe1',1,1,2,'1,2,3,4','第一排1座,第一排2座,第一排3座,第一排4座',63.2,126.4,1);
CREATE UNIQUE INDEX "PK_CORRESPONDENCE" ON "CORRESPONDENCE" ("CORRESPONDENCE_ID")
-- AUTO-GENERATED BY igluctl DO NOT EDIT -- Generator: igluctl 0.4.1 -- Generated: 2018-10-11 00:45 UTC CREATE SCHEMA IF NOT EXISTS atomic; CREATE TABLE IF NOT EXISTS atomic.com_hubspot_deal_change_1 ( "schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL, "schema_name" VARCHAR(128) ENCODE ZSTD NOT NULL, "schema_format" VARCHAR(128) ENCODE ZSTD NOT NULL, "schema_version" VARCHAR(128) ENCODE ZSTD NOT NULL, "root_id" CHAR(36) ENCODE RAW NOT NULL, "root_tstamp" TIMESTAMP ENCODE ZSTD NOT NULL, "ref_root" VARCHAR(255) ENCODE ZSTD NOT NULL, "ref_tree" VARCHAR(1500) ENCODE ZSTD NOT NULL, "ref_parent" VARCHAR(255) ENCODE ZSTD NOT NULL, "app_id" INT ENCODE ZSTD, "attempt_number" INT ENCODE ZSTD, "change_source" VARCHAR(128) ENCODE ZSTD, "event_id" INT ENCODE ZSTD, "object_id" INT ENCODE ZSTD, "occurred_at" TIMESTAMP ENCODE ZSTD, "portal_id" INT ENCODE ZSTD, "property_name" VARCHAR(255) ENCODE ZSTD, "property_value" VARCHAR(255) ENCODE ZSTD, "subscription_id" INT ENCODE ZSTD, FOREIGN KEY (root_id) REFERENCES atomic.events(event_id) ) DISTSTYLE KEY DISTKEY (root_id) SORTKEY (root_tstamp); COMMENT ON TABLE atomic.com_hubspot_deal_change_1 IS 'iglu:com.hubspot/deal_change/jsonschema/1-0-0';
<gh_stars>0 -- @author prabhd -- @created 2012-12-05 12:00:00 -- @modified 2012-12-05 12:00:00 -- @tags dml HAWQ -- @db_name dmldb -- @execute_all_plans True -- @description test12: Join on the distribution key of target table. Insert Large number of rows \echo --start_ignore set gp_enable_column_oriented_table=on; \echo --end_ignore SELECT COUNT(*) FROM dml_ao_pt_s; SELECT COUNT(*) FROM (SELECT dml_ao_pt_r.a,dml_ao_pt_r.b,dml_ao_pt_s.c FROM dml_ao_pt_s INNER JOIN dml_ao_pt_r on dml_ao_pt_r.b = dml_ao_pt_s.b)foo; INSERT INTO dml_ao_pt_s SELECT dml_ao_pt_r.a,dml_ao_pt_r.b,dml_ao_pt_s.c FROM dml_ao_pt_s INNER JOIN dml_ao_pt_r on dml_ao_pt_r.b = dml_ao_pt_s.b ; SELECT COUNT(*) FROM dml_ao_pt_s;
-- User_Rank ALTER TABLE `User_Rank` ADD COLUMN `state_id` char(3) DEFAULT NULL, ADD COLUMN `school_id` int(11) DEFAULT NULL, ADD CONSTRAINT `fk_ur_country_id` FOREIGN KEY (`country_id`) REFERENCES `Countries` (`country_id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_ur_state_id` FOREIGN KEY (`country_id`, `state_id`) REFERENCES `States` (`country_id`, `state_id`) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_ur_school_id` FOREIGN KEY (`school_id`) REFERENCES `Schools` (`school_id`) ON DELETE NO ACTION ON UPDATE NO ACTION; -- Refresh_User_Rank DROP EVENT `Refresh_User_Rank_Event`; DROP PROCEDURE `Refresh_User_Rank`; DELIMITER $$ CREATE PROCEDURE `Refresh_User_Rank`() BEGIN DECLARE EXIT HANDLER FOR SQLEXCEPTION ROLLBACK; DECLARE EXIT HANDLER FOR NOT FOUND ROLLBACK; DECLARE EXIT HANDLER FOR SQLWARNING ROLLBACK; START TRANSACTION; TRUNCATE TABLE `User_Rank`; SET @prev_value = NULL; SET @rank_count = 0; SET @prev_value_ties = NULL; SET @prev_ties_count = 0; SET @ties_count = 0; INSERT INTO User_Rank (user_id, rank, problems_solved_count, score, username, name, country_id, state_id, school_id) SELECT user_id, rank, problems_solved_count, score, username, name, country_id, state_id, school_id FROM ( SELECT problems_solved_count, username, score, name, country_id, state_id, school_id, user_id, @prev_ties_count := @ties_count as previous_ties_count, CASE WHEN @prev_value_ties = score THEN @ties_count := @ties_count + 1 WHEN @prev_value_ties := score THEN @ties_count := 0 END AS ties_count, CASE WHEN @prev_value = score THEN @rank_count WHEN @prev_value := score THEN @rank_count := @rank_count + 1 + @prev_ties_count END AS rank FROM ( SELECT username, name, country_id, state_id, school_id, up.user_id, COUNT(ps.problem_id) problems_solved_count, SUM(ROUND(100 / LOG(2, ps.accepted+1) , 0)) score FROM ( SELECT DISTINCT r.user_id, r.problem_id FROM Runs r WHERE r.verdict = 'AC' AND r.test = 0 ) AS up INNER JOIN Problems ps ON ps.problem_id = up.problem_id AND ps.visibility > 0 INNER JOIN Users u ON u.user_id = up.user_id GROUP BY user_id ORDER BY score DESC ) AS UsersProblemsSolved ) AS Rank; COMMIT; END$$ DELIMITER ; GRANT EXECUTE ON PROCEDURE Refresh_User_Rank TO 'omegaup'@'localhost'; DELIMITER $$ CREATE EVENT `Refresh_User_Rank_Event` ON SCHEDULE EVERY 1 HOUR STARTS NOW() DO BEGIN CALL Refresh_User_Rank(); END$$ DELIMITER ; CALL Refresh_User_Rank();
<filename>src/test/regress/sql/test_ustore_subtransaction_error_rollback.sql<gh_stars>100-1000 -- This tests proper handling of undorecords of a Subtransaction when an error is thrown and Rollback later. \set AUTOCOMMIT off DROP SCHEMA IF EXISTS pn; CREATE SCHEMA pn; DROP TABLE IF EXISTS public.ppinpltable3; -- CLIENT 0 : 2020-03-11 06:46:16.970193 : CRTTABL - total table dropped : 1 CREATE TABLE public.ppinpltable3 ( ppid SERIAL, "REALREALREALREALREALreal8742" real, "bigintbigint4856" bigint, "timestampTIMESTAMPtimestamptimestamptimestamp5788" timestamp, "TEXTTEXT7110" text, "varcharVARCHARvarcharvarcharVARCHARVARCHAR5150" varchar (236), "timetime7616" time, "numericNUMERICNUMERICnumeric5883" numeric (21, 1), "CHARcharactercharacter8503" char (47), "VARCHARvarcharvarcharvarcharVARCHAR7485" varchar (509), "SMALLINTSMALLINT5599" smallint, "bigintbigintBIGINT7591" bigint, "money7615" money, "REALrealrealreal7151" real, "SMALLINTsmallintsmallintsmallintsmallintSMALLINT7473" smallint, "TIMETIMETIMETIME5152" time, "BIGINTBIGINTBIGINTBIGINTBIGINTbigint7928" bigint, "TEXTTEXT7491" text, "TEXTtext6268" text, "VARCHARvarcharVARCHARVARCHAR6623" varchar (1173), "timestamp4743" timestamp, "timestampTIMESTAMP4366" timestamp, "moneymoneyMONEY5300" money, "bigint4835" bigint, PRIMARY KEY ( ppid ) ) with (storage_type=ustore); DROP TABLE IF EXISTS public.ppinpltable18; -- CLIENT 0 : 2020-03-11 06:46:17.598365 : CRTTABL - total table dropped : 1 CREATE TABLE public.ppinpltable18 ( ppid SERIAL, "bigintBIGINT5505" bigint, "BOOLBOOLboolboolean8137" boolean, "varcharVARCHAR8116" varchar (391), "MONEYMONEYMONEYmoney8490" money, "MONEYmoneyMONEYMONEYMONEY8100" money, "boolboolBOOLbool7162" boolean, "DATEdateDATEDATEdate7950" date, "varcharvarcharVARCHARVARCHAR5562" varchar (1125), "TEXTtexttextTEXTtext4472" text, "CHAR6167" char (46), "varchar6671" varchar (1129), "intINTinteger6649" integer, "numericNUMERICnumericNUMERICnumericNUMERIC8108" numeric, "numericnumeric6060" numeric, "numericNUMERICNUMERICnumericnumericnumeric5394" numeric, "charactercharactercharactercharactercharacter5287" char (45), "NUMERICnumericnumericNUMERICNUMERIC6418" numeric (71, 29), "date8925" date, "realREALREALreal5282" real, "intintINTINTinteger4564" integer, "MONEY7873" money, "REALreal6560" real, "numeric6377" numeric, "REALREALREALrealreal7905" real, "REALREALreal4103" real, "TIMESTAMPTIMESTAMP7584" timestamp, "character4410" char (103), "TIMESTAMPTIMESTAMPtimestamptimestamp4210" timestamp, "INTINTintINT4358" integer, "REAL8503" real, PRIMARY KEY ( ppid ) ) with (storage_type=ustore); DROP TABLE IF EXISTS public.ppinpltable8; -- CLIENT 0 : 2020-03-11 06:46:16.593824 : CRTTABL - total table dropped : 1 CREATE TABLE public.ppinpltable8 ( ppid SERIAL, "varcharvarcharvarcharVARCHAR7932" varchar (60), "timeTIMETIMEtimeTIMETIME7292" time, "SMALLINTSMALLINTsmallint8950" smallint, "varcharVARCHARVARCHAR4417" varchar (923), "timestampTIMESTAMPtimestamptimestampTIMESTAMPtimestamp6370" timestamp, "SMALLINTSMALLINTSMALLINTsmallint4761" smallint, "TEXTtextTEXTtext7920" text, "VARCHARVARCHARvarchar6784" varchar (507), "BIGINTbigintbigintbigintBIGINTBIGINT6587" bigint, "int6991" integer, "datedate7776" date, "NUMERICNUMERICNUMERIC4890" numeric (12, 6), "character6067" char (91), "charactercharacterCHARcharacter8958" char (123), "timetimeTIMETIME4287" time, "SMALLINTSMALLINTsmallintSMALLINT6028" smallint, "VARCHARVARCHARvarchar6923" varchar (900), "MONEYmoneymoneymoneyMONEY5882" money, "boolbooleanboolBOOLBOOLbool4419" boolean, "realREALREALREAL5321" real, "realREALREAL7575" real, "characterCHARcharacter8083" char (98), "boolBOOLBOOLboolbooleanboolean6727" boolean, PRIMARY KEY ( ppid ) ) with (storage_type=ustore); DROP TABLE IF EXISTS public.ppinpltable11; -- CLIENT 0 : 2020-03-11 06:46:17.163193 : CRTTABL - total table dropped : 1 CREATE TABLE public.ppinpltable11 ( ppid SERIAL, "time6592" time, "dateDATEdatedatedateDATE5046" date, "TIMESTAMPtimestampTIMESTAMPtimestamp6496" timestamp, "varcharVARCHARvarcharVARCHAR7318" varchar (63), "NUMERIC7066" numeric (35, 23), "timetimetimeTIMEtime7836" time, "TIMESTAMPtimestamp4247" timestamp, "booleanbooleanboolbooleanboolboolean7255" boolean, "intintegerINTINTintegerint6349" integer, "BOOLBOOLBOOLBOOLbooleanboolean7989" boolean, "TIMESTAMPTIMESTAMPtimestamptimestamptimestampTIMESTAMP5981" timestamp, "TEXTtexttextTEXTtexttext6036" text, "VARCHAR8350" varchar (139), "timetime6704" time, "DATEdate6692" date, "INTintINTINTintegerint4036" integer, "booleanBOOLboolbooleanBOOL4032" boolean, "MONEYMONEYMONEYMONEYMONEYmoney4822" money, "numericNUMERICNUMERICNUMERIC7961" numeric, "characterCHAR7130" char (99), "NUMERICNUMERICNUMERICNUMERIC4377" numeric, PRIMARY KEY ( ppid ) ) with (storage_type=ustore); DROP TABLE IF EXISTS public.ppinpltable19; -- CLIENT 0 : 2020-03-11 06:46:16.394759 : CRTTABL - total table dropped : 1 CREATE TABLE public.ppinpltable19 ( ppid SERIAL, "CHARCHAR8554" char (78), "datedatedatedate7923" date, "DATEdatedateDATEDATE8509" date, "MONEYMONEYMONEYmoneymoney8397" money, "TIMEtime4124" time, "varcharvarchar7190" varchar (520), "MONEYmoneyMONEYmoneyMONEY4523" money, "BIGINTbigint6822" bigint, "numericNUMERICNUMERICnumericnumeric6122" numeric (174, 138), "timestampTIMESTAMPTIMESTAMPTIMESTAMP6055" timestamp, "BIGINTBIGINT8888" bigint, "characterCHARcharactercharactercharacter4852" char (9), "date8956" date, "MONEYMONEYmoneymoneymoneymoney7215" money, "VARCHARVARCHARVARCHAR8751" varchar (1256), "VARCHARVARCHARVARCHAR7859" varchar (1204), "smallintSMALLINT6426" smallint, "NUMERICNUMERICnumericnumeric6415" numeric, "integerinteger7918" integer, "texttexttextTEXTTEXT8675" text, "REALreal4405" real, "BIGINTbigint7036" bigint, "varcharvarchar5853" varchar (437), "BIGINTBIGINTbigintbigintbigintbigint5940" bigint, "TIMESTAMPTIMESTAMP4716" timestamp, PRIMARY KEY ( ppid ) ) with (storage_type=ustore); DROP TABLE IF EXISTS public.ppinpltable9; -- CLIENT 0 : 2020-03-11 06:46:16.719364 : CRTTABL - total table dropped : 1 CREATE TABLE public.ppinpltable9 ( ppid SERIAL, "characterCHARcharacter7398" char (110), "BOOL8788" boolean, "varcharVARCHARvarchar6049" varchar (132), "TIMEtime6627" time, "BOOLBOOLBOOLBOOL6192" boolean, "REALrealrealrealrealREAL6875" real, "TIMESTAMPTIMESTAMP4384" timestamp, "INTintINT7907" integer, "MONEYmoneyMONEYmoney7640" money, "INTintINTintintint8832" integer, "bool5548" boolean, "BIGINTbigintbigint4489" bigint, "NUMERICNUMERICNUMERICnumericnumeric5350" numeric (185, 92), "datedatedate6970" date, "NUMERICnumericnumericnumericNUMERICNUMERIC4245" numeric, "REALREALREALREALrealREAL5076" real, "moneymoney8896" money, "CHARcharactercharacter7176" char (17), "characterCHARcharactercharactercharacter5855" char (78), "CHARcharacter8504" char (3), "charactercharacter8531" char (2), "textTEXT4648" text, "SMALLINTsmallintSMALLINTSMALLINTsmallintsmallint4206" smallint, "CHARcharactercharactercharacter5768" char (13), "CHARcharacterCHARcharacter8013" char (29), PRIMARY KEY ( ppid ) ) with (storage_type=ustore); DROP TABLE IF EXISTS public.ppinpltable14; -- CLIENT 0 : 2020-03-11 06:46:17.724095 : CRTTABL - total table dropped : 1 CREATE TABLE public.ppinpltable14 ( ppid SERIAL, "date4708" date, "timestampTIMESTAMPTIMESTAMPTIMESTAMPTIMESTAMPTIMESTAMP4717" timestamp, "BIGINTbigintBIGINTBIGINTbigintbigint7890" bigint, "booleanboolboolBOOLboolBOOL6279" boolean, "BOOLboolbooleanboolBOOL5848" boolean, "bigintbigintBIGINTBIGINTbigintbigint8431" bigint, "SMALLINTsmallintSMALLINTSMALLINT5636" smallint, "BIGINTBIGINTbigintBIGINTbigintbigint7222" bigint, "text8735" text, "VARCHARvarcharVARCHAR5120" varchar (722), "NUMERICnumericnumericNUMERIC5612" numeric, "TIMETIMETIMETIME8183" time, "texttext5103" text, "SMALLINTSMALLINTsmallint6663" smallint, "int5155" integer, "CHARcharactercharactercharacterCHAR8017" char (75), "charactercharactercharacterCHAR5706" char (8), "smallintsmallintSMALLINT4970" smallint, "SMALLINTsmallintSMALLINT5534" smallint, "booleanBOOL5835" boolean, "DATEdateDATEDATE7567" date, "varcharVARCHAR7241" varchar (708), "realREALREALreal4341" real, "booleanbooleanBOOLbool4941" boolean, "integerINTinteger6237" integer, PRIMARY KEY ( ppid ) ) with (storage_type=ustore); DROP TABLE IF EXISTS public.ppinpltable16; -- CLIENT 0 : 2020-03-11 06:46:17.399240 : CRTTABL - total table dropped : 1 CREATE TABLE public.ppinpltable16 ( ppid SERIAL, "VARCHARVARCHARVARCHARVARCHARVARCHAR5926" varchar (501), "REALREALREALREALREAL5060" real, "varcharvarchar5060" varchar (821), "varcharVARCHARVARCHARvarcharVARCHAR8419" varchar (183), "SMALLINTsmallint6885" smallint, "REALrealreal6792" real, "numericNUMERICnumericNUMERIC5542" numeric (131, 41), "varcharvarcharVARCHARvarcharVARCHAR4304" varchar (366), "REALrealREALrealREALreal5788" real, "booleanBOOL4256" boolean, "BIGINTbigintBIGINTbigintbigint5059" bigint, "SMALLINT6619" smallint, "CHAR8145" char (70), "SMALLINTsmallintsmallintSMALLINT8290" smallint, "timeTIME5473" time, "BOOLboolboolBOOLboolean8625" boolean, "VARCHARVARCHARvarcharvarcharVARCHARvarchar5344" varchar (1153), "REALreal6758" real, "BIGINTBIGINTbigintBIGINTBIGINT8124" bigint, "NUMERICNUMERICnumericNUMERICnumeric5858" numeric (43, 9), "CHARcharacterCHAR4428" char (52), "bigintbigintbigintbigintBIGINTBIGINT7242" bigint, "boolean4009" boolean, "VARCHAR4645" varchar (1258), "CHARCHARCHARCHAR6691" char (22), "NUMERICNUMERIC8465" numeric (21, 8), "numericnumericnumeric8018" numeric, PRIMARY KEY ( ppid ) ) with (storage_type=ustore); COMMIT; \set AUTOCOMMIT off INSERT INTO "public"."ppinpltable18" ("bigintBIGINT5505", "BOOLBOOLboolboolean8137", "varcharVARCHAR8116", "MONEYMONEYMONEYmoney8490", "MONEYmoneyMONEYMONEYMONEY8100", "boolboolBOOLbool7162", "DATEdateDATEDATEdate7950", "varcharvarcharVARCHARVARCHAR5562", "TEXTtexttextTEXTtext4472", "CHAR6167", "varchar6671", "intINTinteger6649", "numericNUMERICnumericNUMERICnumericNUMERIC8108", "numericnumeric6060", "numericNUMERICNUMERICnumericnumericnumeric5394", "charactercharactercharactercharactercharacter5287", "NUMERICnumericnumericNUMERICNUMERIC6418", "date8925", "realREALREALreal5282", "intintINTINTinteger4564", "MONEY7873", "REALreal6560", "numeric6377", "REALREALREALrealreal7905", "REALREALreal4103", "TIMESTAMPTIMESTAMP7584", "character4410", "TIMESTAMPTIMESTAMPtimestamptimestamp4210", "INTINTintINT4358", "REAL8503") SELECT ceil(random() * 9000000000000000000)::bigint, False, '<KEY>', ((random() * -3532195)::numeric::money) , ((random() * 9415322)::numeric::money) , (round(random())::int)::boolean, '2093-05-12', 'mPWpaxcbOfLsWSdkXFvOQzyfshGFhGffHyUGKgReGVVUxKPhXVwOxoLdPYoWeSoYwVbeQHBbjtcZNXKreMfCyzddBbBhohDullDVviqmDODjqtwuZCILHPtIYiGudcNfKftbCOlDVpyLSiIgfZcVNJLHoxkSOOlEnPMZKJOeEbtgXbVXwRchadaReEogvjYtEDGyohUkxQDXQAgEySBKQyRUiVTSrngtSsapeGNWetgVRBXBOzsZRETHPdgfFLiAfJOeYIgsiLVjjGSMxfFxPDMYGVoaTbZxdoLtGfRtRhIyvbBRfxaZYJydgKPZSwnCrCTxZLcMIGaTzBibakpidLKTlLEeTsjjWltCsIewEGFoHYzHRnnYpwtZCUioHqIAefwBjnanquESLMozLUmacAThOHSUfPhguzdojhfblrvKFzqFkjfIhlsDHEEkVMvuE', 'xray jupitor jupitor susan jupitor xray kilo petro hotel petro mike charlie xray echo oscar romeo mike india lima zebra alpha xray petro mike quantum quantum vector zebra november jupitor jupitor xray mike bravo petro charlie jupitor quantum petro november vector petro zebra vector golf uniform jupitor young quantum kilo echo wilson jupitor alpha uniform alpha bravo alpha quantum oscar mike young mike forever zebra charlie bravo forever zebra kilo jupitor jupitor jupitor toronto quantum hotel echo vector oscar november forever zebra november xray romeo quantum alpha xray wilson bravo charlie romeo romeo forever zebra charlie oscar mike india romeo lima toronto uniform alpha india oscar hotel petro alpha charlie november forever forever kilo petro romeo petro mike lima wilson wilson xray young romeo forever susan hotel hotel kilo alpha lima forever golf lima toronto quantum india susan kilo jupitor kilo hotel delta zebra petro romeo petro november quantum alpha bravo november mike alpha forever hotel zebra vector bravo kilo jupitor delta hotel zebra xray hotel uniform delta quantum charlie quantum petro zebra petro xray golf quantum forever bravo zebra alpha jupitor india forever wilson toronto jupitor oscar vector bravo romeo wilson petro november golf echo echo jupitor hotel uniform echo delta uniform lima charlie vector bravo jupitor kilo nov', 'prHtDFmTeWwAfArFJfdUkJLOaHRbaTKKNFkiaIIZmht', substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,1129), 1634904598, ((random() * 5362298)::numeric) , 7675166213.1433032, 5846269746.1957, 'iYtpuHqYkETomASSSLeViaAackZoS', ((random() * -5552259422)::numeric) , '1969-12-27', random(), ceil(random() * -352024039)::int , ((random() * -8575120)::numeric::money) , 0.363009635736, ((random() * 6922736)::numeric) , random(), random(), (select NOW() + (random() * (NOW()+'90 days' - NOW()))), 'oVOyHO', (select NOW() + (random() * (NOW()+'90 days' - NOW()))), ceil(random() * 918201446)::int , random() FROM generate_series(1,30); SAVEPOINT sp1; INSERT INTO "public"."ppinpltable18" ("bigintBIGINT5505", "BOOLBOOLboolboolean8137", "varcharVARCHAR8116", "MONEYMONEYMONEYmoney8490", "MONEYmoneyMONEYMONEYMONEY8100", "boolboolBOOLbool7162", "DATEdateDATEDATEdate7950", "varcharvarcharVARCHARVARCHAR5562", "TEXTtexttextTEXTtext4472", "CHAR6167", "varchar6671", "intINTinteger6649", "numericNUMERICnumericNUMERICnumericNUMERIC8108", "numericnumeric6060", "numericNUMERICNUMERICnumericnumericnumeric5394", "charactercharactercharactercharactercharacter5287", "NUMERICnumericnumericNUMERICNUMERIC6418", "date8925", "realREALREALreal5282", "intintINTINTinteger4564", "MONEY7873", "REALreal6560", "numeric6377", "REALREALREALrealreal7905", "REALREALreal4103", "TIMESTAMPTIMESTAMP7584", "character4410", "TIMESTAMPTIMESTAMPtimestamptimestamp4210", "INTINTintINT4358", "REAL8503") SELECT 4424836858395725084, True, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,391), ((random() * 2724234)::numeric::money) , ((random() * 5328107)::numeric::money) , False, '2086-03-22', 'raTKibaadXZhoplrDXZOWeyYuzZrBdocLqbsrjlfROKkezEvAxxCSVRIVrCSKymvuyYhyaQdYkkHeeQNDHPIgfyTGmjfDLyMWULESqfwrVSgsftQugHGHimjfWpwCZesdCoKlJMORUgtUZXiWvjvowolQolabMjmDzkWBfAHxlUHtoFLymeUpqXkFRRfUPXnUllcmVNcQoMCLkGQmAZcFDsjUWipDXAxYGncxrthmzCeddKsKZMNOocmavLQaKXpASqBLXDjlbUaSjgnTIHyhlTEWifDkhPjSFWXPTAkpXnhUMtfMmNgFpJaztWwQBJHxdcZAEzxLPEVxrmwAyCvQhKLHPYtHPylSyltIZHUrDNhssKEkzeKXQMjcKaSjyasiBylFaRuTePiqrwZHjBkUTfiT', repeat(md5(random()::text),118), 'byQtsQxhdQpINewzsGuNgDwiIDXZbeLMTLHgAHEVUfKaBr', substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,1129), 467958779, ((random() * -1942)::numeric) , ((random() * 9877678)::numeric) , 8686102.50, substring(md5(random()::text),1,45), ((random() * -8469171920)::numeric) , (select NOW() + (random() * (NOW()+'90 days' - NOW()))), random(), 1003483238, -7903392540152392.46, random(), ((random() * -6287433)::numeric) , random(), 0.724717939169, (select NOW() - (random() * (NOW()+'90 years' - NOW()))), 'nsOnMOzOZRZKCWbRAAGJLXZyWAkZrQaNaEPZfFmvesqiePWgSRctLxKvFBceiSNshkraNRruWuTvfU', (select NOW() + (random() * (NOW()+'90 days' - NOW()))), ceil(random() * 830043520)::int , random() FROM generate_series(1,81); INSERT INTO "public"."ppinpltable16" ("VARCHARVARCHARVARCHARVARCHARVARCHAR5926", "REALREALREALREALREAL5060", "varcharvarchar5060", "varcharVARCHARVARCHARvarcharVARCHAR8419", "SMALLINTsmallint6885", "REALrealreal6792", "numericNUMERICnumericNUMERIC5542", "varcharvarcharVARCHARvarcharVARCHAR4304", "REALrealREALrealREALreal5788", "booleanBOOL4256", "BIGINTbigintBIGINTbigintbigint5059", "SMALLINT6619", "CHAR8145", "SMALLINTsmallintsmallintSMALLINT8290", "timeTIME5473", "BOOLboolboolBOOLboolean8625", "VARCHARVARCHARvarcharvarcharVARCHARvarchar5344", "REALreal6758", "BIGINTBIGINTbigintBIGINTBIGINT8124", "NUMERICNUMERICnumericNUMERICnumeric5858", "CHARcharacterCHAR4428", "bigintbigintbigintbigintBIGINTBIGINT7242", "boolean4009", "VARCHAR4645", "CHARCHARCHARCHAR6691", "NUMERICNUMERIC8465", "numericnumericnumeric8018") SELECT substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,501), 0.597584157037, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,821), 'alzKDWQDlthLQjPOtCThcLraeGYREYAldiMnXgnUidaIlwMFfUVljcDichxRGJGhOsvurfPJSmyqghLojHySipcLMfLfmEYEOWHgS', -19093, 0.281636869441, ((random() * 4987996986)::numeric) , 'xalQwNFbcLWggsZpNVMWcUAvRxEwDWsRLciflKjfbnagplImAKALMcZZvjcGMKxYffPttRpgqTtsVofWgVgwcqypCXvekXeLxoJDhNNFZOmqLamUIGzSacfjofCnMOMVMujwKtLKphpFlVqz', random(), (round(random())::int)::boolean, ceil(random() * 9000000000000000000)::bigint, -27407, substring(md5(random()::text),1,70), 4139, '2009-07-12 13:52:58', False, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,1153), random(), ceil(random() * 9000000000000000000)::bigint, ((random() * 8914559384)::numeric) , 'mGtakqDUqIVIQ', ceil(random() * 9000000000000000000)::bigint, (round(random())::int)::boolean, 'mTYxUcedzRIJuPqAeNfObvSDPfAdvfLBvpEYAUWuKcyBGRZLGsdalWZLQXUkeHpgAakXmmrJlTWATenCjdlZQUppZpxKFSEgHgTarGUEWqlWDCYiioEKvhRkhZXZJzgpBTuJBAnEKVDOUuYYxkPzFZCyWxJQbPzGDlQmffdyxMOASbnnIwStDRfeaTCLSKwWBTqKueGBgvLAcXNHFRfirsAshHOhJEdApxRyNAwBnjyxyNsxvwCLUAWhJvKHn', 'jsPFCNGNd', 4199743082405.69391985, ((random() * -2081064)::numeric) FROM generate_series(1,37); INSERT INTO "public"."ppinpltable8" ("varcharvarcharvarcharVARCHAR7932", "timeTIMETIMEtimeTIMETIME7292", "SMALLINTSMALLINTsmallint8950", "varcharVARCHARVARCHAR4417", "timestampTIMESTAMPtimestamptimestampTIMESTAMPtimestamp6370", "SMALLINTSMALLINTSMALLINTsmallint4761", "TEXTtextTEXTtext7920", "VARCHARVARCHARvarchar6784", "BIGINTbigintbigintbigintBIGINTBIGINT6587", "int6991", "datedate7776", "NUMERICNUMERICNUMERIC4890", "character6067", "charactercharacterCHARcharacter8958", "timetimeTIMETIME4287", "SMALLINTSMALLINTsmallintSMALLINT6028", "VARCHARVARCHARvarchar6923", "MONEYmoneymoneymoneyMONEY5882", "boolbooleanboolBOOLBOOLbool4419", "realREALREALREAL5321", "realREALREAL7575", "characterCHARcharacter8083", "boolBOOLBOOLboolbooleanboolean6727") SELECT 'oEnHSqJRZdMNVMpfrfGKtpxLPaztbYTCwdhcF', '2006-11-02 19:13:55', ceil(random() * 32760)::int, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,923), (select NOW() + (random() * (NOW()+'90 days' - NOW()))), -8702, '<NAME> november oscar oscar bravo november romeo india young quantum forever echo india november charlie toronto petro jupitor november susan mike bravo forever toronto charlie jupitor wilson romeo uniform romeo delta hotel young delta uniform golf jupitor kilo bravo hotel zebra jupitor november charlie golf forever india quantum zebra jupitor xray uniform lima vector november mike petro kilo susan wilson kilo uniform mike kilo kilo echo mike uniform india vector mike alpha charlie zebra alpha mike delta romeo forever xray alpha xray forever hotel delta young young wilson charlie alpha wilson bravo bravo delta mike quantum quantum wilson vector november forever uniform mike lima delta toronto oscar forever alpha golf zebra mike petro kilo oscar delta toronto mike romeo romeo xray toronto charlie alpha alpha hotel forever xray bravo romeo kilo oscar uniform alpha kilo jupitor charlie bravo alpha november uniform romeo uniform lima mike hotel quantum quantum delta vector susan wilson golf petro jupitor jupitor young romeo jupitor susan zebra charlie november alpha hotel petro alpha oscar forever vector vector vector charlie jupitor uniform quantum echo romeo oscar november charlie petro charlie vector uniform echo jupitor bravo golf zebra hotel petro jupitor wilson vector uniform young charlie zebra susan susan mike charlie forever susan mike lima wilson wilson delta quantum zebra toronto toronto hotel november charlie echo xray delta xray lima golf xray romeo petro uniform bravo jupitor forever toronto wilson uniform bravo xray zebra charlie wilson jupitor young wilson alpha wilson india quantum young lima bravo forever petro young india delta hotel petro delta lima lima jupitor lima hotel charlie forever young petro susan november bravo mike forever delta romeo susan india golf kilo charlie hotel petro delta toronto xray hotel vector xray mike delta uniform xray oscar oscar lima india charlie petro delta zebra bravo quantum zebra forever alpha uniform jupitor young petro young young zebra wilson mike november kilo susan lima delta kilo oscar india zebra charlie bravo hotel young toronto toronto quantum mike romeo bravo petro november lima bravo vector oscar hotel hotel xray toronto lima hotel alpha oscar zebra november delta susan alpha uniform uniform bravo lima xray wilson bravo toronto november hotel charlie xray november quantum november golf quantum romeo wilson delta jupitor alpha xray romeo uniform golf petro susan alpha lima lima vector echo young wilson golf petro hotel lima delta kilo young charlie november quantum jupitor bravo zebra zebra vector india oscar zebra alpha romeo quantum romeo november golf delta wilson india xray wilson delta wilson oscar uniform susan alpha kilo quantum jupitor lima echo susan romeo uniform xray mike toronto november lima quantum xray mike jupitor xray xray romeo alpha november vector uniform forever golf quantum hotel bravo bravo romeo susan romeo xray susan romeo wilson jupitor susan kilo vector november golf india india quantum forever romeo quantum vector kilo alpha mike jupitor young young delta echo november oscar november alpha golf vector quantum xray vector xray india quantum india vector delta india lima vector charlie uniform delta golf quantum hotel kilo vector delta kilo india susan india petro petro golf toronto november mike oscar susan xray jupitor romeo romeo uniform uniform charlie susan wilson lima young golf alpha xray susan bravo zebra uniform young xray delta wilson vector november mike kilo delta echo alpha alpha forever november bravo vector lima forever forever oscar november romeo bravo jupitor forever vector oscar wilson uniform india oscar toronto kilo romeo quantum delta xray young hotel young alpha wilson romeo xray romeo young jupitor romeo oscar kilo zebra bravo romeo uniform bravo petro zebra alpha oscar india romeo delta jupitor zebra delta november bravo xray delta romeo susan golf quantum bravo quantum romeo golf lima uniform bravo mike golf charlie susan young forever susan zebra young kilo hotel young wilson uniform delta jupitor wilson romeo forever november alpha india young jupitor petro ', '<KEY>QY<KEY>', -3917524526840766391, -940067296, '2066-12-19', ((random() * -89572)::numeric) , '<KEY>', '<KEY>', '2006-09-27 05:41:41', -6457, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,900), -7343797748417659.77, (round(random())::int)::boolean, 0.162246670554, 0.300458978967, 'mdiaLjAdlcVgZSLbWKROMlDmtgCVFCMZMUZYmJdDABnSpqCoGbKzrQMGStwtsleDQYLTJMhsLwCVCiqVgv', False FROM generate_series(1,80); INSERT INTO "public"."ppinpltable11" ("time6592", "dateDATEdatedatedateDATE5046", "TIMESTAMPtimestampTIMESTAMPtimestamp6496", "varcharVARCHARvarcharVARCHAR7318", "NUMERIC7066", "timetimetimeTIMEtime7836", "TIMESTAMPtimestamp4247", "booleanbooleanboolbooleanboolboolean7255", "intintegerINTINTintegerint6349", "BOOLBOOLBOOLBOOLbooleanboolean7989", "TIMESTAMPTIMESTAMPtimestamptimestamptimestampTIMESTAMP5981", "TEXTtexttextTEXTtexttext6036", "VARCHAR8350", "timetime6704", "DATEdate6692", "INTintINTINTintegerint4036", "booleanBOOLboolbooleanBOOL4032", "MONEYMONEYMONEYMONEYMONEYmoney4822", "numericNUMERICNUMERICNUMERIC7961", "characterCHAR7130", "NUMERICNUMERICNUMERICNUMERIC4377") SELECT (select NOW() - (random() * (NOW()+'90 years' - NOW()))), (select NOW() + (random() * (NOW()+'90 days' - NOW()))), (select NOW() + (random() * (NOW()+'90 days' - NOW()))), 'zTxXVbPoNssDaFzNiMMYioYtoDjZAkFUQNmRpLSOwZLWsUeAaZlQztRxWEJxVoZ', 481741167956.29148982803113509335638, '2010-06-05 09:07:08', '1916-07-15 10:57:47', False, ceil(random() * -55192029)::int , (round(random())::int)::boolean, (select NOW() + (random() * (NOW()+'90 days' - NOW()))), 'echo young uniform', 'rdrCPq', (select NOW() - (random() * (NOW()+'90 years' - NOW()))), '2060-06-23', -1160440279, (round(random())::int)::boolean, ((random() * 5927819)::numeric::money) , 0.46584, 'xVEQCNQKDYhHSnqrRrsGwzsynzAvzCnuOgPOYkEYkBTSWImvJnVyVMWpkrlDmihTqDouLleGDdIxFGvvPejGf', ((random() * -7814058)::numeric) FROM generate_series(1,53); INSERT INTO "public"."ppinpltable14" ("date4708", "timestampTIMESTAMPTIMESTAMPTIMESTAMPTIMESTAMPTIMESTAMP4717", "BIGINTbigintBIGINTBIGINTbigintbigint7890", "booleanboolboolBOOLboolBOOL6279", "BOOLboolbooleanboolBOOL5848", "bigintbigintBIGINTBIGINTbigintbigint8431", "SMALLINTsmallintSMALLINTSMALLINT5636", "BIGINTBIGINTbigintBIGINTbigintbigint7222", "text8735", "VARCHARvarcharVARCHAR5120", "NUMERICnumericnumericNUMERIC5612", "TIMETIMETIMETIME8183", "texttext5103", "SMALLINTSMALLINTsmallint6663", "int5155", "CHARcharactercharactercharacterCHAR8017", "charactercharactercharacterCHAR5706", "smallintsmallintSMALLINT4970", "SMALLINTsmallintSMALLINT5534", "booleanBOOL5835", "DATEdateDATEDATE7567", "varcharVARCHAR7241", "realREALREALreal4341", "booleanbooleanBOOLbool4941", "integerINTinteger6237") SELECT '1975-06-17', '1959-12-26 01:33:03', -9048785593513240296, (round(random())::int)::boolean, True, ceil(random() * 9000000000000000000)::bigint, -10167, ceil(random() * 9000000000000000000)::bigint, 'toronto xray xray susan quantum petro toronto alpha charlie xray xray susan oscar zebra india xray young de', 'hWmQuxAKOWNCVNLKIIEiKxatBOXBklrQuHdaSXVqQMjjmOeSNIOHedopogNByEhoqCzflPCXChJRcgWUQWVmvFDgMDODKJrhwqgQiXijDvRopyfftcNYCjMePmUeQbDreAXaLBhwdXgbdjAugVOPinHzEoJqSKfYtdHaDeZSlAajuaqYJFedKbIuOLcnIwdrLIcsdOulzArWPLKxSOefEOemxCfYItrZKNeUIShvhtyhDpBbntyT', ((random() * -8322073)::numeric) , (select NOW() - (random() * (NOW()+'90 years' - NOW()))), repeat(md5(random()::text),97), 16411, ceil(random() * 729449601)::int , substring(md5(random()::text),1,75), 'aUAEtvHj', 24114, 25580, (round(random())::int)::boolean, '2019-11-03', 'aheVSaQcPHcViLysKvCRqxkxjcuuymjOqavdQpcLEHKWjFLMlbFpzwsKRGMmTkijzWvccQNqjvASqSzXEiQqApNbNJSsFuecyyFnVxXLZDcLBMCGgEhfpuFENijNXqeFIfpCgvmKewNISZUabtTOxLFBUkXfyhDdBVFuaeljtswsqWIJDJBSPOfRiEiycYYDtwNAwhyewTPiaDrjSzsuBbbkuRUm', random(), (round(random())::int)::boolean, ceil(random() * 561353615)::int FROM generate_series(1,99); INSERT INTO "public"."ppinpltable19" ("CHARCHAR8554", "datedatedatedate7923", "DATEdatedateDATEDATE8509", "MONEYMONEYMONEYmoneymoney8397", "TIMEtime4124", "varcharvarchar7190", "MONEYmoneyMONEYmoneyMONEY4523", "BIGINTbigint6822", "numericNUMERICNUMERICnumericnumeric6122", "timestampTIMESTAMPTIMESTAMPTIMESTAMP6055", "BIGINTBIGINT8888", "characterCHARcharactercharactercharacter4852", "date8956", "MONEYMONEYmoneymoneymoneymoney7215", "VARCHARVARCHARVARCHAR8751", "VARCHARVARCHARVARCHAR7859", "smallintSMALLINT6426", "NUMERICNUMERICnumericnumeric6415", "integerinteger7918", "texttexttextTEXTTEXT8675", "REALreal4405", "BIGINTbigint7036", "varcharvarchar5853", "BIGINTBIGINTbigintbigintbigintbigint5940", "TIMESTAMPTIMESTAMP4716") SELECT substring(md5(random()::text),1,78), (select NOW() + (random() * (NOW()+'90 days' - NOW()))), '1917-01-28', '$-7870687025158569.64', '2012-03-14 12:49:35', 'dkjhHJDvDohbTMUDwUqveGamxQHImTvOZZoaECYduaffvRAVJVCjRiKIrJyxRPaJrZvuckwIZCtmtbpiDyzsjleDWXnPvnjeASzoHTuKNZOnHKFGESwCZVCnMmcXFeXf', ((random() * -1008741)::numeric::money) , ceil(random() * 9000000000000000000)::bigint, ((random() * 9021406322)::numeric) , '1946-08-01 23:16:07', 6842501578042848635, 'qJxjH', '1944-07-19', ((random() * -6746475)::numeric::money) , substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,1256), 'pgiCIatKsNSdppynueFAlfRJUPYZNkSWGiotDcRjXFDMTxQpsLqIgnCUiJKPYYxRrNbRiDmnshvsvtivMYbexykhDQuqRopEmBVuKSiJnfGhOmbvWBkPqKRGTnsbOrjswhVYhwJKzqKNYUbSDsYjAXAgcXditWgSGADYjurJwBcpvrMtBFONnBKSmaKdSZffCuivXiCQSXQeZLtqljfIDbntlsuPntfhSgvdTpGIVHwHZpLarsiKCscEmWnMuoqpQEmCKkXLlraZBmZUmgiiyVgzznkMtqbhNRilSqyItbpvSpPMpZfOqoNMhcTPUvZQMVvasZpjLwnoqMiNiXjqUzxOatuImomzqQZAiUDMIUoVbHzzCGDVqJzMDhRBvyJJNGLVIheLpWNSjUjaYAnitXmcLooJDHVpAjRpCcRgadPMezPzXsWxCPENTOajEqlSVwMCiKxLxBOamNUBswfLakOHriCIdZgdHKSpkqNOVWtctdZXrkpAHABzXwuFWgeyuFzEPXOqkzlLPNsZfdFoaNDDPjuHyvBHdnWnxwlJuQHuzWhaZhYQnvuySWNkNSILmQkszKPWQF<KEY>', ceil(random() * 32760)::int, 4.94199656, -1828076150, 'kilo oscar november petro forever zebra quantum oscar oscar uniform hotel lima xray charlie toronto charlie mike golf hotel toronto young echo delta delta alpha uniform mike petro toronto kilo vector lima toronto xray oscar november oscar kilo jupitor lima quantum xray alpha mike echo lima xray zebra vector delta zebra romeo kilo petro november kilo kilo oscar oscar hotel delta delta wilson mike oscar forever india echo romeo oscar toronto india lima lima forever oscar xray zebra kilo bravo wilson vector quantum hotel delta young november wilson wilson uniform hotel wilson echo uniform forever petro wilson hotel delta uniform quantum vector young vector zebra hotel echo oscar oscar romeo toronto lima wilson echo bravo delta delta uniform charlie quantum lima xray golf vector delta ec', 0.880224387972, 6264886723166012144, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,437), 2507041134137169950, '1902-06-01 23:02:40' FROM generate_series(1,55); INSERT INTO "public"."ppinpltable9" ("characterCHARcharacter7398", "BOOL8788", "varcharVARCHARvarchar6049", "TIMEtime6627", "BOOLBOOLBOOLBOOL6192", "REALrealrealrealrealREAL6875", "TIMESTAMPTIMESTAMP4384", "INTintINT7907", "MONEYmoneyMONEYmoney7640", "INTintINTintintint8832", "bool5548", "BIGINTbigintbigint4489", "NUMERICNUMERICNUMERICnumericnumeric5350", "datedatedate6970", "NUMERICnumericnumericnumericNUMERICNUMERIC4245", "REALREALREALREALrealREAL5076", "moneymoney8896", "CHARcharactercharacter7176", "characterCHARcharactercharactercharacter5855", "CHARcharacter8504", "charactercharacter8531", "textTEXT4648", "SMALLINTsmallintSMALLINTSMALLINTsmallintsmallint4206", "CHARcharactercharactercharacter5768", "CHARcharacterCHARcharacter8013") SELECT substring(md5(random()::text),1,110), (round(random())::int)::boolean, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,132), (select NOW() + (random() * (NOW()+'90 days' - NOW()))), (round(random())::int)::boolean, random(), '1978-06-06 11:49:37', ceil(random() * 101555779)::int , ((random() * -8054356)::numeric::money) , ceil(random() * 604268585)::int , (round(random())::int)::boolean, -8527934153366283944, 988109558796846811872336541641.109494800264011477857363373710, '2064-12-06', 279.486736099, random(), '$-1005607995713997.16', substring(md5(random()::text),1,17), substring(md5(random()::text),1,78), 'jz', 'j', '<NAME>onto november young wilson susan vector golf echo bravo petro bravo alpha uniform quantum forever vector quantum oscar oscar wilson charlie quantum hotel bravo toronto wilson kilo alpha delta uniform petro susan wilson mike hotel susan golf young quantum india zebra quantum delta jupitor november charlie young petro delta hotel lima india vector toronto echo echo echo charlie charlie vector charlie vector xray hotel november bravo young susan petro toronto delta young susan uniform charlie quantum young mike young hotel delta lima india oscar quantum alpha bravo lima uniform susan india romeo bravo young zebra lima vector petro quantum forever forever uniform toronto wilson young susan quantum zebra golf uniform alpha alpha jupitor romeo oscar charlie mike delta xray jupitor wilson zebra november jupitor november quantum forever jupitor charlie petro delta delta bravo mike romeo echo jupitor romeo lima kilo november mike india lima romeo india wilson bravo hotel november petro alpha toronto mike kilo toronto mike kilo jupitor mike charlie young toronto petro toronto oscar mike uniform india lima uniform petro uniform jupitor echo jupitor bravo delta toronto mike hotel xray uniform oscar romeo oscar xray alpha wilson zebra zebra uniform petro young lima lima vector xray lima hotel delta quantum mike oscar delta kilo zebra jupitor jupitor bravo wilson zebra young november lima lima wilson delta jupitor petro echo toronto uniform kilo uniform susan toronto golf charlie oscar golf alpha susan young lima echo zebra charlie quantum hotel susan jupitor toronto vector hotel india zebra lima uniform india toronto uniform forever oscar susan oscar echo echo quantum xray india uniform quantum golf bravo hotel delta susan uniform xray lima jupitor alpha uniform susan india india alpha xray forever romeo petro mike charlie oscar toronto echo hotel susan young charlie hotel november quantum mike mike mike xray mike uniform uniform quantum delta toronto young vector young vector mike romeo forever uniform mike romeo uniform petro delta kilo india romeo mike echo zebra toronto romeo alpha alpha oscar quantum toronto oscar wilson xray quantum forever jupitor delta charlie mike oscar susan forever delta delta susan forever toronto toronto mike mike romeo lima young india xray forever wilson kilo india forever wilson toronto hotel brav', -10913, 'pEmdcujy', 'zNPriULFz' FROM generate_series(1,45); INSERT INTO "public"."ppinpltable14" ("date4708", "timestampTIMESTAMPTIMESTAMPTIMESTAMPTIMESTAMPTIMESTAMP4717", "BIGINTbigintBIGINTBIGINTbigintbigint7890", "booleanboolboolBOOLboolBOOL6279", "BOOLboolbooleanboolBOOL5848", "bigintbigintBIGINTBIGINTbigintbigint8431", "SMALLINTsmallintSMALLINTSMALLINT5636", "BIGINTBIGINTbigintBIGINTbigintbigint7222", "text8735", "VARCHARvarcharVARCHAR5120", "NUMERICnumericnumericNUMERIC5612", "TIMETIMETIMETIME8183", "texttext5103", "SMALLINTSMALLINTsmallint6663", "int5155", "CHARcharactercharactercharacterCHAR8017", "charactercharactercharacterCHAR5706", "smallintsmallintSMALLINT4970", "SMALLINTsmallintSMALLINT5534", "booleanBOOL5835", "DATEdateDATEDATE7567", "varcharVARCHAR7241", "realREALREALreal4341", "booleanbooleanBOOLbool4941", "integerINTinteger6237") SELECT (select NOW() + (random() * (NOW()+'90 days' - NOW()))), '2000-01-21 23:34:05', -2246660614661215396, (round(random())::int)::boolean, True, 7602669524237029707, -15602, ceil(random() * 9000000000000000000)::bigint, repeat(md5(random()::text),119), substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,722), 866028006267573.0, '2007-11-30 20:33:36', repeat(md5(random()::text),103), -17021, 546241802, substring(md5(random()::text),1,75), substring(md5(random()::text),1,8), -21221, 10231, (round(random())::int)::boolean, (select NOW() - (random() * (NOW()+'90 years' - NOW()))), substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,708), random(), (round(random())::int)::boolean, ceil(random() * -956055848)::int FROM generate_series(1,70); INSERT INTO "public"."ppinpltable3" ("REALREALREALREALREALreal8742", "bigintbigint4856", "timestampTIMESTAMPtimestamptimestamptimestamp5788", "TEXTTEXT7110", "varcharVARCHARvarcharvarcharVARCHARVARCHAR5150", "timetime7616", "numericNUMERICNUMERICnumeric5883", "CHARcharactercharacter8503", "VARCHARvarcharvarcharvarcharVARCHAR7485", "SMALLINTSMALLINT5599", "bigintbigintBIGINT7591", "money7615", "REALrealrealreal7151", "SMALLINTsmallintsmallintsmallintsmallintSMALLINT7473", "TIMETIMETIMETIME5152", "BIGINTBIGINTBIGINTBIGINTBIGINTbigint7928", "TEXTTEXT7491", "TEXTtext6268", "VARCHARvarcharVARCHARVARCHAR6623", "timestamp4743", "timestampTIMESTAMP4366", "moneymoneyMONEY5300", "bigint4835") SELECT random(), -7149015905567592485, '1910-09-07 21:52:50', 'xray toronto india zebra oscar delta zebra wilson mike kilo hotel quantum vector petro bravo kilo xray petro kilo bravo zebra india toronto echo hotel toronto toronto vector wilson quantum susan young lima petro young india jupitor bravo echo alpha golf golf india alpha delta toronto kilo oscar alpha young wilson charlie uniform uniform forever charlie hotel lima charlie golf echo young hotel echo romeo jupitor oscar xray india charlie young golf susan delta quantum romeo mike zebra susan echo wilson lima kilo vector bravo forever mike young petro hotel vector mike echo charlie mike india lima quantum oscar susan young delta zebra alpha lima forever xray susan delta toronto toronto vector susan jupitor susan oscar wilson kilo bravo echo india mike golf mike uniform xray kilo oscar november charlie golf jupitor vector mike petro xray susan xray mike golf xray echo romeo quantum young young echo alpha quantum toronto young xray wilson india november uniform forever vector vector petro vector young uniform zebra hotel echo india charlie delta romeo alpha romeo jupitor young petro jupitor xray delta hotel zebra oscar zebra bravo echo bravo wilson oscar wilson vector toronto india young echo mike november jupitor lima india november alpha jupitor vector charlie romeo kilo vector quantum delta golf vector lima petro toronto lima wilson lima xray jupitor november mike hotel zebra mike india kilo jupitor hotel forever vector hotel kilo hotel vector kilo hotel susan charlie vector oscar golf bravo petro alpha zebra oscar wilson charlie toronto petro wilson bravo quantum vector zebra quantum vector bravo charlie romeo xray oscar charlie quantum toronto delta petro quantum zebra jupitor young charlie zebra zebra echo petro oscar wilson wilson delta vector young forever delta wilson susan hotel india november alpha india petro alpha charlie mike zebra romeo forever young golf delta zebra zebra uniform golf kilo lima oscar toronto jupitor forever romeo jupitor forever quantum xray hotel india jupitor kilo young november golf golf bravo jupitor lima vector forever mike kilo mike charlie india kilo echo hotel young quantum jupitor bravo alpha quantum quantum vector charlie lima young xray young forever delta delta golf golf uniform kilo echo xray golf golf uniform vector zebra november india romeo mike mike delt', substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,236), '2011-04-12 08:50:33', 40234744509151001479.3, 'gRFSpSFKzDrHImWVmLxZLGkRhMxNZVrs', 'aOCUqZoNbCShWuYwnAORKEQcNptYbEbPslKGUztYIoiwyYkvUsYiVSsWiPhPkUImmfjrrXwToZtFXidCSYoFhrxreiEJEqJmEZyyGtgYDMldhNBslavxvbNHIrcIxjLIECKMWEaQnuDAvzCCKxAGknpdnGbKIqNgXVsWyRoUZqrRBgEXAVCXQJOKBtlZHdIKyNTYXnqeQPdlnDMiZSOODGEQfVeSCCipdiwrRdxbmhFhqNIqElPfWmHeuTSWPDezUALprCBHHBSnmoSqghkZjclOSBiSOeThMUZpcQLTLvGOSJMJecWAPlwXYLzNAMGxlMIRNuzsOiuQldVwZuoAuHHMvxiPonpSeMhixkOFxezuvbsuqeSxbrwbQwYRahGQQbqVKzxrQZTQphIIyvQ', 30481, ceil(random() * 9000000000000000000)::bigint, ((random() * -2922220)::numeric::money) , 0.0893478027579, 2433, '2006-03-09 16:49:56', ceil(random() * 9000000000000000000)::bigint, repeat(md5(random()::text),82), 'bravo kilo alpha quantum mike g', substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,1173), '1978-09-01 23:07:26', (select NOW() + (random() * (NOW()+'90 days' - NOW()))), '$-7915765315050330.34', -2779357292779568306 FROM generate_series(1,77); TRUNCATE "public"."ppinpltable11" RESTART IDENTITY; ROLLBACK; INSERT INTO "public"."ppinpltable18" ("bigintBIGINT5505", "BOOLBOOLboolboolean8137", "varcharVARCHAR8116", "MONEYMONEYMONEYmoney8490", "MONEYmoneyMONEYMONEYMONEY8100", "boolboolBOOLbool7162", "DATEdateDATEDATEdate7950", "varcharvarcharVARCHARVARCHAR5562", "TEXTtexttextTEXTtext4472", "CHAR6167", "varchar6671", "intINTinteger6649", "numericNUMERICnumericNUMERICnumericNUMERIC8108", "numericnumeric6060", "numericNUMERICNUMERICnumericnumericnumeric5394", "charactercharactercharactercharactercharacter5287", "NUMERICnumericnumericNUMERICNUMERIC6418", "date8925", "realREALREALreal5282", "intintINTINTinteger4564", "MONEY7873", "REALreal6560", "numeric6377", "REALREALREALrealreal7905", "REALREALreal4103", "TIMESTAMPTIMESTAMP7584", "character4410", "TIMESTAMPTIMESTAMPtimestamptimestamp4210", "INTINTintINT4358", "REAL8503") SELECT ceil(random() * 9000000000000000000)::bigint, False, '<KEY>', ((random() * -3532195)::numeric::money) , ((random() * 9415322)::numeric::money) , (round(random())::int)::boolean, '2093-05-12', '<KEY>E', 'xray jupitor jupitor susan jupitor xray kilo petro hotel petro mike charlie xray echo oscar romeo mike india lima zebra alpha xray petro mike quantum quantum vector zebra november jupitor jupitor xray mike bravo petro charlie jupitor quantum petro november vector petro zebra vector golf uniform jupitor young quantum kilo echo wilson jupitor alpha uniform alpha bravo alpha quantum oscar mike young mike forever zebra charlie bravo forever zebra kilo jupitor jupitor jupitor toronto quantum hotel echo vector oscar november forever zebra november xray romeo quantum alpha xray wilson bravo charlie romeo romeo forever zebra charlie oscar mike india romeo lima toronto uniform alpha india oscar hotel petro alpha charlie november forever forever kilo petro romeo petro mike lima wilson wilson xray young romeo forever susan hotel hotel kilo alpha lima forever golf lima toronto quantum india susan kilo jupitor kilo hotel delta zebra petro romeo petro november quantum alpha bravo november mike alpha forever hotel zebra vector bravo kilo jupitor delta hotel zebra xray hotel uniform delta quantum charlie quantum petro zebra petro xray golf quantum forever bravo zebra alpha jupitor india forever wilson toronto jupitor oscar vector bravo romeo wilson petro november golf echo echo jupitor hotel uniform echo delta uniform lima charlie vector bravo jupitor kilo nov', 'prHtDFmTeWwAfArFJfdUkJLOaHRbaTKKNFkiaIIZmht', substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,1129), 1634904598, ((random() * 5362298)::numeric) , 7675166213.1433032, 5846269746.1957, 'iYtpuHqYkETomASSSLeViaAackZoS', ((random() * -5552259422)::numeric) , '1969-12-27', random(), ceil(random() * -352024039)::int , ((random() * -8575120)::numeric::money) , 0.363009635736, ((random() * 6922736)::numeric) , random(), random(), (select NOW() + (random() * (NOW()+'90 days' - NOW()))), 'oVOyHO', (select NOW() + (random() * (NOW()+'90 days' - NOW()))), ceil(random() * 918201446)::int , random() FROM generate_series(1,30); SAVEPOINT sp1; INSERT INTO "public"."ppinpltable18" ("bigintBIGINT5505", "BOOLBOOLboolboolean8137", "varcharVARCHAR8116", "MONEYMONEYMONEYmoney8490", "MONEYmoneyMONEYMONEYMONEY8100", "boolboolBOOLbool7162", "DATEdateDATEDATEdate7950", "varcharvarcharVARCHARVARCHAR5562", "TEXTtexttextTEXTtext4472", "CHAR6167", "varchar6671", "intINTinteger6649", "numericNUMERICnumericNUMERICnumericNUMERIC8108", "numericnumeric6060", "numericNUMERICNUMERICnumericnumericnumeric5394", "charactercharactercharactercharactercharacter5287", "NUMERICnumericnumericNUMERICNUMERIC6418", "date8925", "realREALREALreal5282", "intintINTINTinteger4564", "MONEY7873", "REALreal6560", "numeric6377", "REALREALREALrealreal7905", "REALREALreal4103", "TIMESTAMPTIMESTAMP7584", "character4410", "TIMESTAMPTIMESTAMPtimestamptimestamp4210", "INTINTintINT4358", "REAL8503") SELECT 4424836858395725084, True, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,391), ((random() * 2724234)::numeric::money) , ((random() * 5328107)::numeric::money) , False, '2086-03-22', 'raTKibaadXZhoplrDXZOWeyYuzZrBdocLqbsrjlfROK<KEY>T', repeat(md5(random()::text),118), 'byQtsQxhdQpINewzsGuNgDwiIDXZbeLMTLHgAHEVUfKaBr', substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,1129), 467958779, ((random() * -1942)::numeric) , ((random() * 9877678)::numeric) , 8686102.50, substring(md5(random()::text),1,45), ((random() * -8469171920)::numeric) , (select NOW() + (random() * (NOW()+'90 days' - NOW()))), random(), 1003483238, -7903392540152392.46, random(), ((random() * -6287433)::numeric) , random(), 0.724717939169, (select NOW() - (random() * (NOW()+'90 years' - NOW()))), 'nsOnMOzOZRZKCWbRAAGJLXZyWAkZrQaNaEPZfFmvesqiePWgSRctLxKvFBceiSNshkraNRruWuTvfU', (select NOW() + (random() * (NOW()+'90 days' - NOW()))), ceil(random() * 830043520)::int , random() FROM generate_series(1,81); INSERT INTO "public"."ppinpltable16" ("VARCHARVARCHARVARCHARVARCHARVARCHAR5926", "REALREALREALREALREAL5060", "varcharvarchar5060", "varcharVARCHARVARCHARvarcharVARCHAR8419", "SMALLINTsmallint6885", "REALrealreal6792", "numericNUMERICnumericNUMERIC5542", "varcharvarcharVARCHARvarcharVARCHAR4304", "REALrealREALrealREALreal5788", "booleanBOOL4256", "BIGINTbigintBIGINTbigintbigint5059", "SMALLINT6619", "CHAR8145", "SMALLINTsmallintsmallintSMALLINT8290", "timeTIME5473", "BOOLboolboolBOOLboolean8625", "VARCHARVARCHARvarcharvarcharVARCHARvarchar5344", "REALreal6758", "BIGINTBIGINTbigintBIGINTBIGINT8124", "NUMERICNUMERICnumericNUMERICnumeric5858", "CHARcharacterCHAR4428", "bigintbigintbigintbigintBIGINTBIGINT7242", "boolean4009", "VARCHAR4645", "CHARCHARCHARCHAR6691", "NUMERICNUMERIC8465", "numericnumericnumeric8018") SELECT substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,501), 0.597584157037, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,821), 'alzKDWQDlthLQjPOtCThcLraeGYREYAldiMnXgnUidaIlwMFfUVljcDichxRGJGhOsvurfPJSmyqghLojHySipcLMfLfmEYEOWHgS', -19093, 0.281636869441, ((random() * 4987996986)::numeric) , 'xalQwNFbcLWggsZpNVMWcUAvRxEwDWsRLciflKjfbnagplImAKALMcZZvjcGMKxYffPttRpgqTtsVofWgVgwcqypCXvekXeLxoJDhNNFZOmqLamUIGzSacfjofCnMOMVMujwKtLKphpFlVqz', random(), (round(random())::int)::boolean, ceil(random() * 9000000000000000000)::bigint, -27407, substring(md5(random()::text),1,70), 4139, '2009-07-12 13:52:58', False, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,1153), random(), ceil(random() * 9000000000000000000)::bigint, ((random() * 8914559384)::numeric) , 'mGtakqDUqIVIQ', ceil(random() * 9000000000000000000)::bigint, (round(random())::int)::boolean, 'mTYxUcedzRIJuPqAeNfObvSDPfAdvfLBvpEYAUWuKcyBGRZLGsdalWZLQXUkeHpgAakXmmrJlTWATenCjdlZQUppZpxKFSEgHgTarGUEWqlWDCYiioEKvhRkhZXZJzgpBTuJBAnEKVDOUuYYxkPzFZCyWxJQbPzGDlQmffdyxMOASbnnIwStDRfeaTCLSKwWBTqKueGBgvLAcXNHFRfirsAshHOhJEdApxRyNAwBnjyxyNsxvwCLUAWhJvKHn', 'jsPFCNGNd', 4199743082405.69391985, ((random() * -2081064)::numeric) FROM generate_series(1,37); INSERT INTO "public"."ppinpltable8" ("varcharvarcharvarcharVARCHAR7932", "timeTIMETIMEtimeTIMETIME7292", "SMALLINTSMALLINTsmallint8950", "varcharVARCHARVARCHAR4417", "timestampTIMESTAMPtimestamptimestampTIMESTAMPtimestamp6370", "SMALLINTSMALLINTSMALLINTsmallint4761", "TEXTtextTEXTtext7920", "VARCHARVARCHARvarchar6784", "BIGINTbigintbigintbigintBIGINTBIGINT6587", "int6991", "datedate7776", "NUMERICNUMERICNUMERIC4890", "character6067", "charactercharacterCHARcharacter8958", "timetimeTIMETIME4287", "SMALLINTSMALLINTsmallintSMALLINT6028", "VARCHARVARCHARvarchar6923", "MONEYmoneymoneymoneyMONEY5882", "boolbooleanboolBOOLBOOLbool4419", "realREALREALREAL5321", "realREALREAL7575", "characterCHARcharacter8083", "boolBOOLBOOLboolbooleanboolean6727") SELECT 'oEnHSqJRZdMNVMpfrfGKtpxLPaztbYTCwdhcF', '2006-11-02 19:13:55', ceil(random() * 32760)::int, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,923), (select NOW() + (random() * (NOW()+'90 days' - NOW()))), -8702, 'mike golf november oscar oscar bravo november romeo india young quantum forever echo india november charlie toronto petro jupitor november susan mike bravo forever toronto charlie jupitor wilson romeo uniform romeo delta hotel young delta uniform golf jupitor kilo bravo hotel zebra jupitor november charlie golf forever india quantum zebra jupitor xray uniform lima vector november mike petro kilo susan wilson kilo uniform mike kilo kilo echo mike uniform india vector mike alpha charlie zebra alpha mike delta romeo forever xray alpha xray forever hotel delta young young wilson charlie alpha wilson bravo bravo delta mike quantum quantum wilson vector november forever uniform mike lima delta toronto oscar forever alpha golf zebra mike petro kilo oscar delta toronto mike romeo romeo xray toronto charlie alpha alpha hotel forever xray bravo romeo kilo oscar uniform alpha kilo jupitor charlie bravo alpha november uniform romeo uniform lima mike hotel quantum quantum delta vector susan wilson golf petro jupitor jupitor young romeo jupitor susan zebra charlie november alpha hotel petro alpha oscar forever vector vector vector charlie jupitor uniform quantum echo romeo oscar november charlie petro charlie vector uniform echo jupitor bravo golf zebra hotel petro jupitor wilson vector uniform young charlie zebra susan susan mike charlie forever susan mike lima wilson wilson delta quantum zebra toronto toronto hotel november charlie echo xray delta xray lima golf xray romeo petro uniform bravo jupitor forever toronto wilson uniform bravo xray zebra charlie wilson jupitor young wilson alpha wilson india quantum young lima bravo forever petro young india delta hotel petro delta lima lima jupitor lima hotel charlie forever young petro susan november bravo mike forever delta romeo susan india golf kilo charlie hotel petro delta toronto xray hotel vector xray mike delta uniform xray oscar oscar lima india charlie petro delta zebra bravo quantum zebra forever alpha uniform jupitor young petro young young zebra wilson mike november kilo susan lima delta kilo oscar india zebra charlie bravo hotel young toronto toronto quantum mike romeo bravo petro november lima bravo vector oscar hotel hotel xray toronto lima hotel alpha oscar zebra november delta susan alpha uniform uniform bravo lima xray wilson bravo toronto november hotel charlie xray november quantum november golf quantum romeo wilson delta jupitor alpha xray romeo uniform golf petro susan alpha lima lima vector echo young wilson golf petro hotel lima delta kilo young charlie november quantum jupitor bravo zebra zebra vector india oscar zebra alpha romeo quantum romeo november golf delta wilson india xray wilson delta wilson oscar uniform susan alpha kilo quantum jupitor lima echo susan romeo uniform xray mike toronto november lima quantum xray mike jupitor xray xray romeo alpha november vector uniform forever golf quantum hotel bravo bravo romeo susan romeo xray susan romeo wilson jupitor susan kilo vector november golf india india quantum forever romeo quantum vector kilo alpha mike jupitor young young delta echo november oscar november alpha golf vector quantum xray vector xray india quantum india vector delta india lima vector charlie uniform delta golf quantum hotel kilo vector delta kilo india susan india petro petro golf toronto november mike oscar susan xray jupitor romeo romeo uniform uniform charlie susan wilson lima young golf alpha xray susan bravo zebra uniform young xray delta wilson vector november mike kilo delta echo alpha alpha forever november bravo vector lima forever forever oscar november romeo bravo jupitor forever vector oscar wilson uniform india oscar toronto kilo romeo quantum delta xray young hotel young alpha wilson romeo xray romeo young jupitor romeo oscar kilo zebra bravo romeo uniform bravo petro zebra alpha oscar india romeo delta jupitor zebra delta november bravo xray delta romeo susan golf quantum bravo quantum romeo golf lima uniform bravo mike golf charlie susan young forever susan zebra young kilo hotel young wilson uniform delta jupitor wilson romeo forever november alpha india young jupitor petro ', 'gyhYPJbVZYMfsxsbUgZWlaDqWCwsrHyKMzMdnoblicSVBdIiQYMiRVSEEWhyeTgNJCXYagwZpesIQQFEVbJibPxFewhzdXwxy', -3917524526840766391, -940067296, '2066-12-19', ((random() * -89572)::numeric) , '<KEY>', 'tYaIBpXtiRIRzUZHjRdOaBBQfKagHtApKOENZNzcIVoQHsgyImcACEqairvhIaidRuSpynnbQZROvFMXDLhZIMaBuemBsidMUBsRFtceeklSdIBTBKHe', '2006-09-27 05:41:41', -6457, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,900), -7343797748417659.77, (round(random())::int)::boolean, 0.162246670554, 0.300458978967, 'mdiaLjAdlcVgZSLbWKROMlDmtgCVFCMZMUZYmJdDABnSpqCoGbKzrQMGStwtsleDQYLTJMhsLwCVCiqVgv', False FROM generate_series(1,80); INSERT INTO "public"."ppinpltable11" ("time6592", "dateDATEdatedatedateDATE5046", "TIMESTAMPtimestampTIMESTAMPtimestamp6496", "varcharVARCHARvarcharVARCHAR7318", "NUMERIC7066", "timetimetimeTIMEtime7836", "TIMESTAMPtimestamp4247", "booleanbooleanboolbooleanboolboolean7255", "intintegerINTINTintegerint6349", "BOOLBOOLBOOLBOOLbooleanboolean7989", "TIMESTAMPTIMESTAMPtimestamptimestamptimestampTIMESTAMP5981", "TEXTtexttextTEXTtexttext6036", "VARCHAR8350", "timetime6704", "DATEdate6692", "INTintINTINTintegerint4036", "booleanBOOLboolbooleanBOOL4032", "MONEYMONEYMONEYMONEYMONEYmoney4822", "numericNUMERICNUMERICNUMERIC7961", "characterCHAR7130", "NUMERICNUMERICNUMERICNUMERIC4377") SELECT (select NOW() - (random() * (NOW()+'90 years' - NOW()))), (select NOW() + (random() * (NOW()+'90 days' - NOW()))), (select NOW() + (random() * (NOW()+'90 days' - NOW()))), 'zTxXVbPoNssDaFzNiMMYioYtoDjZAkFUQNmRpLSOwZLWsUeAaZlQztRxWEJxVoZ', 481741167956.29148982803113509335638, '2010-06-05 09:07:08', '1916-07-15 10:57:47', False, ceil(random() * -55192029)::int , (round(random())::int)::boolean, (select NOW() + (random() * (NOW()+'90 days' - NOW()))), 'echo young uniform', 'rdrCPq', (select NOW() - (random() * (NOW()+'90 years' - NOW()))), '2060-06-23', -1160440279, (round(random())::int)::boolean, ((random() * 5927819)::numeric::money) , 0.46584, 'xVEQCNQKDYhHSnqrRrsGwzsynzAvzCnuOgPOYkEYkBTSWImvJnVyVMWpkrlDmihTqDouLleGDdIxFGvvPejGf', ((random() * -7814058)::numeric) FROM generate_series(1,53); INSERT INTO "public"."ppinpltable14" ("date4708", "timestampTIMESTAMPTIMESTAMPTIMESTAMPTIMESTAMPTIMESTAMP4717", "BIGINTbigintBIGINTBIGINTbigintbigint7890", "booleanboolboolBOOLboolBOOL6279", "BOOLboolbooleanboolBOOL5848", "bigintbigintBIGINTBIGINTbigintbigint8431", "SMALLINTsmallintSMALLINTSMALLINT5636", "BIGINTBIGINTbigintBIGINTbigintbigint7222", "text8735", "VARCHARvarcharVARCHAR5120", "NUMERICnumericnumericNUMERIC5612", "TIMETIMETIMETIME8183", "texttext5103", "SMALLINTSMALLINTsmallint6663", "int5155", "CHARcharactercharactercharacterCHAR8017", "charactercharactercharacterCHAR5706", "smallintsmallintSMALLINT4970", "SMALLINTsmallintSMALLINT5534", "booleanBOOL5835", "DATEdateDATEDATE7567", "varcharVARCHAR7241", "realREALREALreal4341", "booleanbooleanBOOLbool4941", "integerINTinteger6237") SELECT '1975-06-17', '1959-12-26 01:33:03', -9048785593513240296, (round(random())::int)::boolean, True, ceil(random() * 9000000000000000000)::bigint, -10167, ceil(random() * 9000000000000000000)::bigint, 'toronto xray xray susan quantum petro toronto alpha charlie xray xray susan oscar zebra india xray young de', 'hWmQuxAKOWNCVNLKIIEiKxatBOXBklrQuH<KEY>', ((random() * -8322073)::numeric) , (select NOW() - (random() * (NOW()+'90 years' - NOW()))), repeat(md5(random()::text),97), 16411, ceil(random() * 729449601)::int , substring(md5(random()::text),1,75), 'aUAEtvHj', 24114, 25580, (round(random())::int)::boolean, '2019-11-03', 'aheVSaQcPHcViLysKvCRqxkxjcuuymjOqavdQpcLEHKWjFLMlbFpzwsKRGMmTkijzWvccQNqjvASqSzXEiQqApNbNJSsFuecyyFnVxXLZDcLBMCGgEhfpuFENijNXqeFIfpCgvmKewNISZUabtTOxLFBUkXfyhDdBVFuaeljtswsqWIJDJBSPOfRiEiycYYDtwNAwhyewTPiaDrjSzsuBbbkuRUm', random(), (round(random())::int)::boolean, ceil(random() * 561353615)::int FROM generate_series(1,99); INSERT INTO "public"."ppinpltable19" ("CHARCHAR8554", "datedatedatedate7923", "DATEdatedateDATEDATE8509", "MONEYMONEYMONEYmoneymoney8397", "TIMEtime4124", "varcharvarchar7190", "MONEYmoneyMONEYmoneyMONEY4523", "BIGINTbigint6822", "numericNUMERICNUMERICnumericnumeric6122", "timestampTIMESTAMPTIMESTAMPTIMESTAMP6055", "BIGINTBIGINT8888", "characterCHARcharactercharactercharacter4852", "date8956", "MONEYMONEYmoneymoneymoneymoney7215", "VARCHARVARCHARVARCHAR8751", "VARCHARVARCHARVARCHAR7859", "smallintSMALLINT6426", "NUMERICNUMERICnumericnumeric6415", "integerinteger7918", "texttexttextTEXTTEXT8675", "REALreal4405", "BIGINTbigint7036", "varcharvarchar5853", "BIGINTBIGINTbigintbigintbigintbigint5940", "TIMESTAMPTIMESTAMP4716") SELECT substring(md5(random()::text),1,78), (select NOW() + (random() * (NOW()+'90 days' - NOW()))), '1917-01-28', '$-7870687025158569.64', '2012-03-14 12:49:35', 'dkjhHJDvDohbTMUDwUqveGamxQHImTvOZZoaECYduaffvRAVJVCjRiKIrJyxRPaJrZvuckwIZCtmtbpiDyzsjleDWXnPvnjeASzoHTuKNZOnHKFGESwCZVCnMmcXFeXf', ((random() * -1008741)::numeric::money) , ceil(random() * 9000000000000000000)::bigint, ((random() * 9021406322)::numeric) , '1946-08-01 23:16:07', 6842501578042848635, 'qJxjH', '1944-07-19', ((random() * -6746475)::numeric::money) , substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,1256), 'pgiCIatKsNSdppynueFAlfRJUPYZNkSWGiotDcRjXFDMTxQpsLqIgnCUiJKPYYxRrNbRiDmnshvsvtivMYbexykhDQuqRopEmBVuKSiJnfGhOmbvWBkPqKRGTnsbOrjswhVYhwJKzqKNYUbSDsYjAXAgcXditWgSGADYjurJwBcpvrMtBFONnBKSmaKdSZffCuivXiCQSXQeZLtqljfIDbntlsuPntfhSgvdTpGIVHwHZpLarsiKCscEmWnMuoqpQEmCKkXLlraZBmZUmgiiyVgzznkMtqbhNRilSqyItbpvSpPMpZfOqoNMhcTPUvZQMVvasZpjLwnoqMiNiXjqUzxOatuImomzqQZAiUDMIUoVbHzzCGDVqJzMDhRBvyJJNGLVIheLpWNSjUjaYAnitXmcLooJDHVpAjRpCcRgadPMezPzXsWxCPENTOajEqlSVwMCiKxLxBOamNUBswfLakOHriCIdZgdHKSpkqNOVWtctdZXrkpAHABzXwuFWgeyuFzEPXOqkzlLPNsZfdFoaNDDPjuHyvBHdnWnxwlJuQHuzWhaZhYQnvuySWNkNSILmQkszKPWQFGBHCGzbJjkUngWiZUUtfUGWviHdWUDlkXsrVFpXpBKrSwSRwvAFFCvfEhypFRallwGlHOVPacHuHQrRozOUUxCKNyrIInIFVogDbFWQEcjapZMwqsMONMLIMhpyGJOteXgcbUbwaJWyfibyyGuZFjvpChgGTLaAwcklggjZIjjynrKcQxypzSqwPvjPTtITXRazpRGIZRUGWFkZdoMVyzNnYNQdyWddZxjpYvKYOOToqHYnQnXulcpFscHYUbOdWiMXfxRXLDaEJsDzEOFVzTfCIobeeDSUulUeiuhmbUzvwwwKllvZTxCNhSkiPPjSWHwYyxDfEUchksIHHSjPxcTSlLzCRUAPGlNjoFlKszgrgXYYgsyiTAFhlQgKsuWyFiCkbAyFSngtAxTiSTUnaUBJzbowCfnxNOtIyhGnGYPUhbalVBCPnxtFV', ceil(random() * 32760)::int, 4.94199656, -1828076150, 'kilo oscar november petro forever zebra quantum oscar oscar uniform hotel lima xray charlie toronto charlie mike golf hotel toronto young echo delta delta alpha uniform mike petro toronto kilo vector lima toronto xray oscar november oscar kilo jupitor lima quantum xray alpha mike echo lima xray zebra vector delta zebra romeo kilo petro november kilo kilo oscar oscar hotel delta delta wilson mike oscar forever india echo romeo oscar toronto india lima lima forever oscar xray zebra kilo bravo wilson vector quantum hotel delta young november wilson wilson uniform hotel wilson echo uniform forever petro wilson hotel delta uniform quantum vector young vector zebra hotel echo oscar oscar romeo toronto lima wilson echo bravo delta delta uniform charlie quantum lima xray golf vector delta ec', 0.880224387972, 6264886723166012144, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,437), 2507041134137169950, '1902-06-01 23:02:40' FROM generate_series(1,55); INSERT INTO "public"."ppinpltable9" ("characterCHARcharacter7398", "BOOL8788", "varcharVARCHARvarchar6049", "TIMEtime6627", "BOOLBOOLBOOLBOOL6192", "REALrealrealrealrealREAL6875", "TIMESTAMPTIMESTAMP4384", "INTintINT7907", "MONEYmoneyMONEYmoney7640", "INTintINTintintint8832", "bool5548", "BIGINTbigintbigint4489", "NUMERICNUMERICNUMERICnumericnumeric5350", "datedatedate6970", "NUMERICnumericnumericnumericNUMERICNUMERIC4245", "REALREALREALREALrealREAL5076", "moneymoney8896", "CHARcharactercharacter7176", "characterCHARcharactercharactercharacter5855", "CHARcharacter8504", "charactercharacter8531", "textTEXT4648", "SMALLINTsmallintSMALLINTSMALLINTsmallintsmallint4206", "CHARcharactercharactercharacter5768", "CHARcharacterCHARcharacter8013") SELECT substring(md5(random()::text),1,110), (round(random())::int)::boolean, substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,132), (select NOW() + (random() * (NOW()+'90 days' - NOW()))), (round(random())::int)::boolean, random(), '1978-06-06 11:49:37', ceil(random() * 101555779)::int , ((random() * -8054356)::numeric::money) , ceil(random() * 604268585)::int , (round(random())::int)::boolean, -8527934153366283944, 988109558796846811872336541641.109494800264011477857363373710, '2064-12-06', 279.486736099, random(), '$-1005607995713997.16', substring(md5(random()::text),1,17), substring(md5(random()::text),1,78), 'jz', 'j', '<NAME> november young wilson susan vector golf echo bravo petro bravo alpha uniform quantum forever vector quantum oscar oscar wilson charlie quantum hotel bravo toronto wilson kilo alpha delta uniform petro susan wilson mike hotel susan golf young quantum india zebra quantum delta jupitor november charlie young petro delta hotel lima india vector toronto echo echo echo charlie charlie vector charlie vector xray hotel november bravo young susan petro toronto delta young susan uniform charlie quantum young mike young hotel delta lima india oscar quantum alpha bravo lima uniform susan india romeo bravo young zebra lima vector petro quantum forever forever uniform toronto wilson young susan quantum zebra golf uniform alpha alpha jupitor romeo oscar charlie mike delta xray jupitor wilson zebra november jupitor november quantum forever jupitor charlie petro delta delta bravo mike romeo echo jupitor romeo lima kilo november mike india lima romeo india wilson bravo hotel november petro alpha toronto mike kilo toronto mike kilo jupitor mike charlie young toronto petro toronto oscar mike uniform india lima uniform petro uniform jupitor echo jupitor bravo delta toronto mike hotel xray uniform oscar romeo oscar xray alpha wilson zebra zebra uniform petro young lima lima vector xray lima hotel delta quantum mike oscar delta kilo zebra jupitor jupitor bravo wilson zebra young november lima lima wilson delta jupitor petro echo toronto uniform kilo uniform susan toronto golf charlie oscar golf alpha susan young lima echo zebra charlie quantum hotel susan jupitor toronto vector hotel india zebra lima uniform india toronto uniform forever oscar susan oscar echo echo quantum xray india uniform quantum golf bravo hotel delta susan uniform xray lima jupitor alpha uniform susan india india alpha xray forever romeo petro mike charlie oscar toronto echo hotel susan young charlie hotel november quantum mike mike mike xray mike uniform uniform quantum delta toronto young vector young vector mike romeo forever uniform mike romeo uniform petro delta kilo india romeo mike echo zebra toronto romeo alpha alpha oscar quantum toronto oscar wilson xray quantum forever jupitor delta charlie mike oscar susan forever delta delta susan forever toronto toronto mike mike romeo lima young india xray forever wilson kilo india forever wilson toronto hotel brav', -10913, 'pEmdcujy', 'zNPriULFz' FROM generate_series(1,45); INSERT INTO "public"."ppinpltable14" ("date4708", "timestampTIMESTAMPTIMESTAMPTIMESTAMPTIMESTAMPTIMESTAMP4717", "BIGINTbigintBIGINTBIGINTbigintbigint7890", "booleanboolboolBOOLboolBOOL6279", "BOOLboolbooleanboolBOOL5848", "bigintbigintBIGINTBIGINTbigintbigint8431", "SMALLINTsmallintSMALLINTSMALLINT5636", "BIGINTBIGINTbigintBIGINTbigintbigint7222", "text8735", "VARCHARvarcharVARCHAR5120", "NUMERICnumericnumericNUMERIC5612", "TIMETIMETIMETIME8183", "texttext5103", "SMALLINTSMALLINTsmallint6663", "int5155", "CHARcharactercharactercharacterCHAR8017", "charactercharactercharacterCHAR5706", "smallintsmallintSMALLINT4970", "SMALLINTsmallintSMALLINT5534", "booleanBOOL5835", "DATEdateDATEDATE7567", "varcharVARCHAR7241", "realREALREALreal4341", "booleanbooleanBOOLbool4941", "integerINTinteger6237") SELECT (select NOW() + (random() * (NOW()+'90 days' - NOW()))), '2000-01-21 23:34:05', -2246660614661215396, (round(random())::int)::boolean, True, 7602669524237029707, -15602, ceil(random() * 9000000000000000000)::bigint, repeat(md5(random()::text),119), substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,722), 866028006267573.0, '2007-11-30 20:33:36', repeat(md5(random()::text),103), -17021, 546241802, substring(md5(random()::text),1,75), substring(md5(random()::text),1,8), -21221, 10231, (round(random())::int)::boolean, (select NOW() - (random() * (NOW()+'90 years' - NOW()))), substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,708), random(), (round(random())::int)::boolean, ceil(random() * -956055848)::int FROM generate_series(1,70); INSERT INTO "public"."ppinpltable3" ("REALREALREALREALREALreal8742", "bigintbigint4856", "timestampTIMESTAMPtimestamptimestamptimestamp5788", "TEXTTEXT7110", "varcharVARCHARvarcharvarcharVARCHARVARCHAR5150", "timetime7616", "numericNUMERICNUMERICnumeric5883", "CHARcharactercharacter8503", "VARCHARvarcharvarcharvarcharVARCHAR7485", "SMALLINTSMALLINT5599", "bigintbigintBIGINT7591", "money7615", "REALrealrealreal7151", "SMALLINTsmallintsmallintsmallintsmallintSMALLINT7473", "TIMETIMETIMETIME5152", "BIGINTBIGINTBIGINTBIGINTBIGINTbigint7928", "TEXTTEXT7491", "TEXTtext6268", "VARCHARvarcharVARCHARVARCHAR6623", "timestamp4743", "timestampTIMESTAMP4366", "moneymoneyMONEY5300", "bigint4835") SELECT random(), -7149015905567592485, '1910-09-07 21:52:50', 'xray toronto india zebra oscar delta zebra wilson mike kilo hotel quantum vector petro bravo kilo xray petro kilo bravo zebra india toronto echo hotel toronto toronto vector wilson quantum susan young lima petro young india jupitor bravo echo alpha golf golf india alpha delta toronto kilo oscar alpha young wilson charlie uniform uniform forever charlie hotel lima charlie golf echo young hotel echo romeo jupitor oscar xray india charlie young golf susan delta quantum romeo mike zebra susan echo wilson lima kilo vector bravo forever mike young petro hotel vector mike echo charlie mike india lima quantum oscar susan young delta zebra alpha lima forever xray susan delta toronto toronto vector susan jupitor susan oscar wilson kilo bravo echo india mike golf mike uniform xray kilo oscar november charlie golf jupitor vector mike petro xray susan xray mike golf xray echo romeo quantum young young echo alpha quantum toronto young xray wilson india november uniform forever vector vector petro vector young uniform zebra hotel echo india charlie delta romeo alpha romeo jupitor young petro jupitor xray delta hotel zebra oscar zebra bravo echo bravo wilson oscar wilson vector toronto india young echo mike november jupitor lima india november alpha jupitor vector charlie romeo kilo vector quantum delta golf vector lima petro toronto lima wilson lima xray jupitor november mike hotel zebra mike india kilo jupitor hotel forever vector hotel kilo hotel vector kilo hotel susan charlie vector oscar golf bravo petro alpha zebra oscar wilson charlie toronto petro wilson bravo quantum vector zebra quantum vector bravo charlie romeo xray oscar charlie quantum toronto delta petro quantum zebra jupitor young charlie zebra zebra echo petro oscar wilson wilson delta vector young forever delta wilson susan hotel india november alpha india petro alpha charlie mike zebra romeo forever young golf delta zebra zebra uniform golf kilo lima oscar toronto jupitor forever romeo jupitor forever quantum xray hotel india jupitor kilo young november golf golf bravo jupitor lima vector forever mike kilo mike charlie india kilo echo hotel young quantum jupitor bravo alpha quantum quantum vector charlie lima young xray young forever delta delta golf golf uniform kilo echo xray golf golf uniform vector zebra november india romeo mike mike delt', substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,236), '2011-04-12 08:50:33', 40234744509151001479.3, 'gRFSpSFKzDrHImWVmLxZLGkRhMxNZVrs', 'aOCUqZoNbCShWuYwnAORKEQcNptYbEbPslKGUztYIoiwyYkvUsYiVSsWiPhPkUImmfjrrXwToZtFXidCSYoFhrxreiEJEqJmEZyyGtgYDMldhNBslavxvbNHIrcIxjLIECKMWEaQnuDAvzCCKxAGknpdnGbKIqNgXVsWyRoUZqrRBgEXAVCXQJOKBtlZHdIKyNTYXnqeQPdlnDMiZSOODGEQfVeSCCipdiwrRdxbmhFhqNIqElPfWmHeuTSWPDezUALprCBHHBSnmoSqghkZjclOSBiSOeThMUZpcQLTLvGOSJMJecWAPlwXYLzNAMGxlMIRNuzsOiuQldVwZuoAuHHMvxiPonpSeMhixkOFxezuvbsuqeSxbrwbQwYRahGQQbqVKzxrQZTQphIIyvQ', 30481, ceil(random() * 9000000000000000000)::bigint, ((random() * -2922220)::numeric::money) , 0.0893478027579, 2433, '2006-03-09 16:49:56', ceil(random() * 9000000000000000000)::bigint, repeat(md5(random()::text),82), 'bravo kilo alpha quantum mike g', substring(md5(random()::text) ||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text)||md5(random()::text),1,1173), '1978-09-01 23:07:26', (select NOW() + (random() * (NOW()+'90 days' - NOW()))), '$-7915765315050330.34', -2779357292779568306 FROM generate_series(1,77); TRUNCATE "public"."ppinpltable11" RESTART IDENTITY; ROLLBACK; DROP TABLE IF EXISTS public.ppinpltable3; DROP TABLE IF EXISTS public.ppinpltable18; DROP TABLE IF EXISTS public.ppinpltable8; DROP TABLE IF EXISTS public.ppinpltable11; DROP TABLE IF EXISTS public.ppinpltable19; DROP TABLE IF EXISTS public.ppinpltable9; DROP TABLE IF EXISTS public.ppinpltable14; DROP TABLE IF EXISTS public.ppinpltable16; COMMIT;
<gh_stars>100-1000 CREATE FOREIGN TABLE emp_details (id serial, salary float); CREATE FOREIGN TABLE emp_log (emp_id serial, logged_salary float); CREATE OR REPLACE FUNCTION rec_insert() RETURNS trigger AS $$ BEGIN INSERT INTO emp_log(logged_salary) VALUES(NEW.salary); RETURN NEW; END; $$ LANGUAGE 'plpgsql'; CREATE TRIGGER ins_same_rec AFTER INSERT ON emp_details FOR EACH ROW EXECUTE PROCEDURE rec_insert(); INSERT INTO emp_details VALUES (22000.0); SELECT * FROM emp_log; DROP FOREIGN TABLE emp_details; DROP FOREIGN TABLE emp_log;
<gh_stars>0 CREATE TABLE [dbo].[AspNetUserLogins]( [LoginProvider] [nvarchar](128) NOT NULL, [ProviderKey] [nvarchar](128) NOT NULL, [ProviderDisplayName] [nvarchar](max) NULL, [UserId] [nvarchar](450) NOT NULL, CONSTRAINT [PK_AspNetUserLogins] PRIMARY KEY CLUSTERED ( [LoginProvider] ASC, [ProviderKey] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO --ALTER TABLE [dbo].[AspNetUserLogins] WITH CHECK ADD CONSTRAINT [FK_AspNetUserLogins_AspNetUsers_UserId] FOREIGN KEY([UserId]) --REFERENCES [dbo].[AspNetUsers] ([Id]) --ON DELETE CASCADE --GO --ALTER TABLE [dbo].[AspNetUserLogins] CHECK CONSTRAINT [FK_AspNetUserLogins_AspNetUsers_UserId] --GO
<gh_stars>0 ALTER VIEW [dbo].[LatestApprovedGameVersionForEachRegulation] AS SELECT dbo.Game.Game_ID, dbo.Game.GameName, dbo.LastVersionForEachGame.LastVersion, dbo.LastVersionForEachGame.Technology, dbo.Game.MainGameType, GameVersion_1.VersionFolder, GameVersion_1.VersionAsLong, LastApprovedVersion.PropertyKey, LastApprovedVersion.PropertyName, LastApprovedVersion.PropertySet, LastApprovedVersion.Regulation, dbo.Game.IsExternal, GameVersion_1.CreatedDate, GameVersion_1.CreatedBy, GameVersion_1.GameVersion_ID FROM dbo.GameVersion INNER JOIN dbo.Game ON dbo.GameVersion.Game_ID = dbo.Game.Game_ID INNER JOIN dbo.LastVersionForEachGame ON dbo.GameVersion.Game_ID = dbo.LastVersionForEachGame.Game_ID AND dbo.GameVersion.Technology = dbo.LastVersionForEachGame.Technology AND dbo.GameVersion.VersionAsLong = dbo.LastVersionForEachGame.LastVersion LEFT OUTER JOIN (SELECT GameVersion_2.Game_ID, GameVersion_2.Technology, dbo.GameVersion_Property.PropertyKey, dbo.GameVersion_Property.PropertyName, dbo.GameVersion_Property.PropertySet, dbo.GameVersion_Property.Regulation, MAX(GameVersion_2.VersionAsLong) AS LastApprovedVersion FROM dbo.GameVersion AS GameVersion_2 INNER JOIN dbo.GameVersion_Property ON GameVersion_2.GameVersion_ID = dbo.GameVersion_Property.GameVersion_ID WHERE (dbo.GameVersion_Property.PropertyName = 'State') AND (dbo.GameVersion_Property.PropertyValue IN ('Approved', 'Production', 'Certified')) OR (dbo.GameVersion_Property.PropertyName = 'PMApproved') AND (dbo.GameVersion_Property.PropertyValue = N'true') GROUP BY GameVersion_2.Game_ID, GameVersion_2.Technology, dbo.GameVersion_Property.PropertyKey, dbo.GameVersion_Property.PropertyName, dbo.GameVersion_Property.PropertySet, dbo.GameVersion_Property.Regulation) AS LastApprovedVersion INNER JOIN dbo.GameVersion AS GameVersion_1 ON LastApprovedVersion.Game_ID = GameVersion_1.Game_ID AND LastApprovedVersion.LastApprovedVersion = GameVersion_1.VersionAsLong AND LastApprovedVersion.Technology = GameVersion_1.Technology ON dbo.LastVersionForEachGame.Technology = GameVersion_1.Technology AND dbo.LastVersionForEachGame.Game_ID = GameVersion_1.Game_ID AND dbo.Game.Game_ID = LastApprovedVersion.Game_ID GO CREATE VIEW [dbo].[LatestVersionForEachGameAndRegulation] AS SELECT GameVersion_1.GameVersion_ID, Latest.Game_ID, Latest.Technology, Latest.Regulation, Latest.LastVersion AS VersionAsLong, GameVersion_1.VersionFolder, dbo.Game.GameName, dbo.Game.MainGameType, dbo.Game.IsExternal FROM (SELECT dbo.GameVersion.Game_ID, dbo.GameVersion.Technology, dbo.GameVersion_Property.Regulation, MAX(dbo.GameVersion.VersionAsLong) AS LastVersion FROM dbo.GameVersion INNER JOIN dbo.GameVersion_Property ON dbo.GameVersion.GameVersion_ID = dbo.GameVersion_Property.GameVersion_ID GROUP BY dbo.GameVersion.Game_ID, dbo.GameVersion.Technology, dbo.GameVersion_Property.Regulation) AS Latest INNER JOIN dbo.GameVersion AS GameVersion_1 ON Latest.Game_ID = GameVersion_1.Game_ID AND Latest.Technology = GameVersion_1.Technology AND Latest.LastVersion = GameVersion_1.VersionAsLong INNER JOIN dbo.Game ON GameVersion_1.Game_ID = dbo.Game.Game_ID GO
<gh_stars>0 version https://git-lfs.github.com/spec/v1 oid sha256:d5e0d6016ab21c99ee4e28f70a38715df0c9a1b48c1b2a8c90a77498664c9355 size 71119658
CREATE TABLE IF NOT EXISTS telegram_user ( -- use IF NOT EXISTS to not error if they table does exist user_id INTEGER PRIMARY KEY, username TEXT, first_name TEXT, last_name TEXT ); CREATE INDEX IF NOT EXISTS index_telegram_user_on_username on telegram_user(username); CREATE TABLE IF NOT EXISTS telegram_chat ( chat_id TEXT PRIMARY KEY, chat_name TEXT ); CREATE TABLE IF NOT EXISTS user_in_chat ( user_id INTEGER REFERENCES telegram_user(user_id), chat_id TEXT REFERENCES telegram_chat(chat_id), karma integer, PRIMARY KEY (user_id,chat_id) ); CREATE UNIQUE INDEX IF NOT EXISTS index_user_in_chat_on_chat_id_usr_id on user_in_chat(chat_id, user_id); CREATE TABLE IF NOT EXISTS telegram_message ( message_id INTEGER PRIMARY KEY, chat_id TEXT REFERENCES telegram_chat(chat_id), author_user_id INTEGER REFERENCES telegram_user(user_id), message_text TEXT, message_time TIMESTAMP default current_timestamp ); CREATE INDEX IF NOT EXISTS index_telegram_message_on_author_id on telegram_message(author_user_id); CREATE INDEX IF NOT EXISTS index_telegram_message_on_chat_id on telegram_message(chat_id); CREATE TABLE IF NOT EXISTS user_reacted_to_message ( id SERIAL PRIMARY KEY, user_id INTEGER REFERENCES telegram_user(user_id), message_id INTEGER REFERENCES telegram_message(message_id), react_score INTEGER, --"1" if +1, "-1" if -1, react_message_id INTEGER ); CREATE INDEX IF NOT EXISTS index_user_reacted_to_message_on_user_id_message_id_react_message_id on user_reacted_to_message(message_id, react_message_id, user_id); -- use trigger to check banned used before allowing user_in_chat to be modified -- soon maybe sum should be used for all karma /* CREATE TABLE banned_users ( ) */ create table IF NOT EXISTS command_used ( id SERIAL PRIMARY KEY, command TEXT, --actual command used arguments TEXT, chat_id TEXT REFERENCES Telegram_chat(chat_id), -- chat used in user_id int REFERENCES Telegram_user(user_id), --user who used the command used_time TIMESTAMP default current_timestamp, --time they used the command program_version TEXT );
-- Структура таблицы для дополнительного домашнего задания CREATE TABLE IF NOT EXISTS `auth_logs` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, `login` TEXT NOT NULL, `date` TEXT NOT NULL ); -- Очищаем таблицу на тот случай если она уже существовала в БД DELETE FROM `auth_logs`; -- Заполняем таблицу данными INSERT INTO `auth_logs` (`login`, `date`) VALUES ('Bob1', '12.08.18'), ('Bob2', '05.01.16'), ('Bob3', '02.05.15'), ('Bob4', '02.02.18'), ('Bob3', '13.03.18'), ('Bob2', '07.11.16'), ('Bob1', '08.06.18'), ('Bob3', '05.05.18'), ('Bob4', '03.09.17'), ('Bob1', '05.05.17'), ('Bob2', '25.10.17'); -- Решение (достаем дату последней авторизации каждого пользователя) SELECT `login`, strftime('%d.%m.%Y', MAX(DATE(20 || substr(`date`, 7, 2) || '-' || substr(`date`, 4, 2) || '-' || substr(`date`, 1, 2)))) AS `date` FROM `auth_logs` GROUP BY `login` ORDER BY `login` ASC -- Примечание к решению -- При написании запроса я предполагаю, что формат даты DD.MM.YY, а также, что все даты лежат в диапазоне от 2000 года -- до 2099 года, так как я не могу сказать однозначно, к примеру, к какому году принадлежит дата 05.05.18, к 05.05.2018 -- или 05.05.1918, а может это и вовсе 3918 год =). -- По моему мнению более правильным было бы хранить дату в формате YYYY-MM-DD, во первых, это избавило бы от ограничений -- по годам, во вторых, отпала бы необходимость использовать "костыли" на подобии этого: -- DATE(20 || substr(`date`, 7, 2) || '-' || substr(`date`, 4, 2) || '-' || substr(`date`, 1, 2)).
INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('<NAME>', null, '2017-12-24 23:43:38', '2017-12-24 23:43:40'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('<NAME>', null, '2017-12-24 23:43:58', '2017-12-24 23:43:59'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Fiainam-panahy', 1, '2017-12-24 23:44:20', '2017-12-24 23:44:21'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Fitomboana', 1, '2017-12-24 23:44:41', '2017-12-24 23:44:42'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Fiombonana', 1, '2017-12-24 23:45:06', '2017-12-24 23:45:07'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('<NAME>', 2, '2017-12-24 23:45:27', '2017-12-24 23:45:29'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Fiheverana ny maha-olona', 2, '2017-12-24 23:45:50', '2017-12-24 23:45:51'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Fahateraham-baovao', 3, '2017-12-24 23:46:21', '2017-12-24 23:46:21'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Fiainam-panahy velona sy Miaina', 3, '2017-12-24 23:46:54', '2017-12-24 23:46:55'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Soratra Masina', 4, '2017-12-24 23:47:28', '2017-12-24 23:47:31'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Fiainam-bavaka', 4, '2017-12-24 23:47:55', '2017-12-24 23:48:02'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Miaraka', 5, '2017-12-24 23:48:18', '2017-12-24 23:48:19'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Mifampiresaka', 5, '2017-12-24 23:48:52', '2017-12-24 23:48:55'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Mifankahita', 5, '2017-12-24 23:49:10', '2017-12-24 23:49:11'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Mifanampy', 5, '2017-12-24 23:49:29', '2017-12-24 23:49:30'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Miara-miasa', 5, '2017-12-24 23:49:44', '2017-12-24 23:49:47'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Fiofanana', 6, '2017-12-24 23:50:12', '2017-12-24 23:50:15'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('Fanatanterahana', 6, '2017-12-24 23:50:39', '2017-12-24 23:50:39'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('<NAME>', 7, '2017-12-24 23:51:12', '2017-12-24 23:51:13'); INSERT INTO fjkm_ilanivato.type_posts (libelleType, type_post_id, created_at, updated_at) VALUES ('<NAME>', 7, '2017-12-24 23:51:38', '2017-12-24 23:51:41');
<reponame>lhggomes/SQL SQL 360 SELECT NUMNOTA, DTENT, DTEMISSAO, FORNECEDOR, CGC AS CNPJ, IE, VLTOTAL FROM PCNFENT WHERE DTEMISSAO BETWEEN :DATA1 AND :DATA2 AND CODFILIAL = :CODFILIAL ORDER BY 3 ;
SET DEFINE OFF; CREATE TABLE AFW_30_PAGE ( SEQNC NUMBER(10), REF_AFW_13_PAGE NUMBER(10), NOM VARCHAR2(200 BYTE), NUMR_APEX NUMBER, DATE_CREAT DATE, UTILS_CREAT VARCHAR2(123 BYTE), DATE_MODFC DATE, UTILS_MODFC VARCHAR2(123 BYTE) ) LOGGING NOCOMPRESS NOCACHE MONITORING /
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied ALTER TABLE `registrations` ADD COLUMN ( `initialIP` BINARY(16) NOT NULL DEFAULT "", `createdAt` DATETIME NOT NULL ); CREATE INDEX `initialIP_createdAt` on `registrations` (`initialIP`, `createdAt`); -- +goose Down -- SQL section 'Down' is executed when this migration is rolled back DROP INDEX `initialIP_createdAt` on `registrations`;
<reponame>litepubl/cms<filename>lib/core/install/sql/users.groups.sql iduser int unsigned NOT NULL default '0', idgroup int unsigned NOT NULL default '0', PRIMARY KEY (iduser,idgroup)
<filename>database-systems/db-library/popul_video.sql INSERT INTO member VALUES ('Velasquez','Carmen','283 King Street','Seattle','587-99-6666','2014-03-03'); INSERT INTO member VALUES ('Ngao','LaDoris','5 Modrany','Bratislava','586-355-8882','2014-03-08'); INSERT INTO member VALUES ('Nagayama','Midori','68 Via Centrale','Sao Paolo','254-852-5764','2014-06-17'); INSERT INTO member VALUES ('Quick-To-See','Mark','6921 King Way','Lagos','63-559-777','2014-04-07'); INSERT INTO member VALUES ('Ropeburn','Audry','86 Chu Street','Hong Kong','41-559-87','2014-03-04'); INSERT INTO member VALUES ('Urguhart','Molly','3035 Laurier Blvd.','Quebec','418-542-9988','2014-01-18'); INSERT INTO member VALUES ('Menchu','Roberta','Boulevard de Waterloo 41','Brussels','322-504-2228','2014-05-14'); INSERT INTO member VALUES ('Biri','Ben','398 High St.','Columbus','614-455-9863','2014-03-03'); INSERT INTO member VALUES ('Catchpole','Antoinette','88 Alfred St.','Brisbane','616-399-1411','2014-03-03'); GO INSERT INTO TITLE ( title, description, rating, category, release_date) VALUES ( 'Willie and Christmas Too', 'All of Willie''s friends made a Christmas list for Santa, but Willie has yet to create his own wish list.','G','CHILD','2013-03-03'); INSERT INTO TITLE (title, description, rating, category, release_date) VALUES ('Alien Again','Another installment of science fiction history. Can the heroine save the planet from the alien life form?','R','SCIFI','2013-04-03'); INSERT INTO TITLE (title, description, rating, category, release_date) VALUES ('The Glob', 'A meteor crashes near a small American town and unleashes carnivorous goo in this classic.','NR','SCIFI','2013-03-08'); INSERT INTO TITLE (title, description, rating, category, release_date) VALUES ('My Day Off','With a little luck and a lot of ingenuity, a teenager skips school for a day in NewYork.', 'PG','COMEDY','2013-07-04'); INSERT INTO TITLE (title, description, rating, category, release_date) VALUES ('Miracles on Ice', 'A six-year-old has doubts about Santa Claus. But she discovers that miracles really do exist.','PG','DRAMA', '2012-02-01'); INSERT INTO TITLE (title, description, rating, category, release_date) VALUES ('Soda Gang','After discovering a cached of drugs, a young couple find themselves pitted against a vicious gang.','NR','ACTION','2013-03-23'); INSERT INTO TITLE (title, description, rating, category, release_date) VALUES ('Interstellar Wars', 'Futuristic interstellar action movie. Can the rebels save the humans from the evil Empire?', 'PG', 'SCIFI','2011-03-03'); GO INSERT INTO title_copy VALUES (1,1,'AVAILABLE'); INSERT INTO title_copy VALUES (1,2,'AVAILABLE'); INSERT INTO title_copy VALUES (2,2,'RENTED'); INSERT INTO title_copy VALUES (1,3,'AVAILABLE'); INSERT INTO title_copy VALUES (1,4,'AVAILABLE'); INSERT INTO title_copy VALUES (2,4,'AVAILABLE'); INSERT INTO title_copy VALUES (3,4,'RENTED'); INSERT INTO title_copy VALUES (1,5,'AVAILABLE'); INSERT INTO title_copy VALUES (1,6,'AVAILABLE'); INSERT INTO title_copy VALUES (1,7,'RENTED'); INSERT INTO title_copy VALUES (2,7,'AVAILABLE'); GO INSERT INTO reservation VALUES (DATEADD(DAY,-1,GETDATE()),1,2); INSERT INTO reservation VALUES (DATEADD(DAY,-2,GETDATE()),5,2); GO INSERT INTO rental VALUES (DATEADD(DAY,-1,GETDATE()),2,1,2,null,DATEADD(DAY,+1,GETDATE())); INSERT INTO rental VALUES (DATEADD(DAY,-2,GETDATE()),3,2,4,null,GETDATE()); INSERT INTO rental VALUES (DATEADD(DAY,-3,GETDATE()),1,3,7,null,DATEADD(DAY,-1,GETDATE())); INSERT INTO rental VALUES (DATEADD(DAY,-4,GETDATE()),1,6,6,DATEADD(DAY,-2,GETDATE()),DATEADD(DAY,-2,GETDATE())); INSERT INTO rental VALUES (DATEADD(DAY,-5,GETDATE()),1,1,1,DATEADD(DAY,-2,GETDATE()),DATEADD(DAY,-1,GETDATE()));
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Sep 07, 2019 at 12:38 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `24pill_code_db` -- -- -------------------------------------------------------- -- -- Table structure for table `articles` -- CREATE TABLE `articles` ( `post_id` int(11) NOT NULL, `post_title` varchar(255) NOT NULL, `post_content` text NOT NULL, `post_date` datetime NOT NULL DEFAULT current_timestamp(), `user_email` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `comments` -- CREATE TABLE `comments` ( `comment_id` int(11) NOT NULL, `post_id` int(11) NOT NULL, `comment_text` text NOT NULL, `comment_date` datetime NOT NULL DEFAULT current_timestamp(), `user_email` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `tokens` -- CREATE TABLE `tokens` ( `token_id` int(11) NOT NULL, `token_text` varchar(6) NOT NULL, `token_date` datetime NOT NULL DEFAULT current_timestamp(), `token_dormancy` datetime NOT NULL, `token_purpose` varchar(5) NOT NULL, `user_email` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `user_id` int(11) NOT NULL, `user_first_name` varchar(25) NOT NULL, `user_last_name` varchar(25) NOT NULL, `user_email` varchar(40) NOT NULL, `user_password` varchar(100) NOT NULL, `user_bio` text NOT NULL, `user_register_dt` datetime NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for dumped tables -- -- -- Indexes for table `articles` -- ALTER TABLE `articles` ADD PRIMARY KEY (`post_id`); -- -- Indexes for table `comments` -- ALTER TABLE `comments` ADD PRIMARY KEY (`comment_id`); -- -- Indexes for table `tokens` -- ALTER TABLE `tokens` ADD PRIMARY KEY (`token_id`), ADD UNIQUE KEY `token_text` (`token_text`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`user_id`), ADD UNIQUE KEY `user_email` (`user_email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `articles` -- ALTER TABLE `articles` MODIFY `post_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=0; -- -- AUTO_INCREMENT for table `comments` -- ALTER TABLE `comments` MODIFY `comment_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=0; -- -- AUTO_INCREMENT for table `tokens` -- ALTER TABLE `tokens` MODIFY `token_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=0; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=0; 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>MichaelSScott/GraphDoc<gh_stars>1-10 /* ============================================= -- Author: <NAME> -- Create date: 30/08/18 -- Description: For a given dependency graph table generate the dependency graph file. Results should be saved to a .gv file. This can then be drawn as required with the graphviz application. -- ============================================= */ CREATE PROCEDURE [GraphDoc].[usp_cs_DrawDependencyGraph] @dep udtt_DependencyGraph READONLY, @FriendlyName nvarchar(255) = NULL, @collapse_nonlocal_db char(1) = 'N', -- Y/N, default N @direction char(2) = 'TB', -- LR, BT, RL. top to bottom, left to right, etc. @graphsection tinyint = 1, -- 1 = all, 2 = notail, 4 = body, 8 = nohead @overview char(1) = 'N', -- Y = ensure table/view objects are in the namespace of the base object. @description nvarchar(max) = NULL, @codesample nvarchar(max) = NULL AS SET NOCOUNT ON DECLARE @cleanFriendlyName nvarchar(255) -- this really could do with regex set @cleanFriendlyName = replace(replace(replace(replace(replace(replace(replace(isnull(@FriendlyName,'GraphDoc'), ' ', '_'), '(','_'), ')','_'), '-','_'),'\','_'),':','_'),',','_') declare @sql varchar(1000); if object_id('tempdb..#gvfile') is not null drop table #gvfile; create table #gvfile ( gvline varchar(2048) null ) if object_id('tempdb..#edges') is not null drop table #edges; create table #edges ( clusterEdge varchar(2048) null ) if @graphsection & 1 = 1 or @graphsection & 2 = 2 begin /* all or notail section specified so preamble is required */ -- Set up preamble insert into #gvfile values ('/* Command to generate the layout: dot -Tpng ' + @cleanFriendlyName + '.gv > ' + @cleanFriendlyName + '.png */') insert into #gvfile values ('/* sqlcmd -S "myServer\myInstance" -d myDBName -i "script.sql" -E -o myOutputFile.gv -h -1 */') insert into #gvfile values ('/* ' + convert(nvarchar, getdate()) + ' */') insert into #gvfile values ('') insert into #gvfile values ('digraph ' + @cleanFriendlyName + ' {') insert into #gvfile values ('ratio=auto;') insert into #gvfile values ('rankdir='+ @direction +';') insert into #gvfile values ('overlap=false;') insert into #gvfile values ('compound=true;') insert into #gvfile values ('edge [color=blue];') insert into #gvfile values ('') end /* Process all base objects. We only want procs. Ordinarily there'd only be one base object per execution as it makes for a clearer diagram. But if the user wants to see multiple objects this will still work. */ DECLARE @objpos int = 0; DECLARE @stringPos nvarchar(3); DECLARE @thisbaseobj nvarchar(255); DECLARE @sources nvarchar(1000); DECLARE @targets nvarchar(1000); DECLARE @baseCount int DECLARE @displayName nvarchar(255) Select @baseCount = count(distinct BaseObjectName) from @dep IF @baseCount > 1 Set @displayName = isnull(@cleanFriendlyName, '') + '_Multiple_Objects' ELSE Select @thisbaseobj = BaseObjectName from @dep where Level = 0; Set @displayName = coalesce(@cleanFriendlyName, @thisbaseobj, 'No procedures selected!') -- Add local objects subgraph. This only needs doing once per dependency table -- Actually two clusters if overview or hierarchical view, one for the baseobject (helps with job related graphs) -- then the local db cluster if @overview in ('Y', 'H') begin -- Add a framing cluster node. insert into #gvfile values (' subgraph cluster_top_' + @displayName + ' {') insert into #gvfile select concat(' label=<<B> ' , @displayName, case @overview when 'H' then ' Hierarchical' else '' end, ' Overview.<BR/></B> <I> ', isnull(@description, ''), ' </I>>; ') -- Add a framing cluster node for the subject database. Note there is a constraint that only a single subject db is present in the dependency table. insert into #gvfile values (' subgraph cluster_local_' + @displayName + ' {') insert into #gvfile select top 1 ' label="DB: ' + dl.DBName + '"; ' from @dep dl where Level = 0 end else -- not an overview so get an unframed set of graph objects. begin if @description is not null and @graphsection & 128 = 0 insert into #gvfile select concat('label=<<I><BR/>', @description, '</I>>; ') insert into #gvfile values (' subgraph local_' + @displayName + ' {') end /* Add the base object nodes. Default shape ellipse. If graphSection = 1 (all) then the convention is that we will have both an overview and a hierarchical diagram available and the node will display with a link to the complementary file. This requires the user to run this procedure twice, for the Y and H overview options. If option N is taken (not usually expected, but nothing to stop it) then it will default its link to the Y file. Note that all links are expected to be in the current directory. If the graphSections are being built up then this is (currently) for displaying job steps so just display a static label. However we don't expect a ton of code to be present in job steps so set the tooltip to this code (up to 10 lines say). */ if @graphsection != 1 begin insert into #gvfile SELECT ' ' + dl.BaseObjectName + ' [style=bold, label="' + @FriendlyName + ' [' + convert(nvarchar, dl.loc) + ']", fontsize=16, tooltip="' + isnull(@codesample, 'SQL_STORED_PROCEDURE') + '"] ;' FROM @dep dl WHERE dl.BaseObjectType in ('SQL_STORED_PROCEDURE') AND dl.Level = 0; end else begin insert into #gvfile SELECT ' ' + dl.BaseObjectName + ' [style=bold, label=<<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="0"> <TR><TD href=".\'+ dl.BaseObjectName +'_' + case @overview when 'Y' then 'H' else 'Y' end + '.svg" TOOLTIP="Open ' + case @overview when 'Y' then 'Hierarchical ' else 'Over' end + 'view"> <B> <font color="#0000ff">' + dl.ThisObjectSchemaName + '.' + dl.BaseObjectName + '</font></B><BR/><FONT POINT-SIZE="10"><I> [' + convert(nvarchar, dl.loc) + ']</I></FONT> </TD></TR></TABLE>>, fontsize=16] ;' FROM @dep dl WHERE dl.BaseObjectType in ('SQL_STORED_PROCEDURE') AND dl.Level = 0; end /* Draw a set of local objects */ IF @overview != 'H' -- Overview Y or N displays lowest level tables and views tied to the base object BEGIN -- Add the source and target nodes INSERT INTO #gvfile SELECT distinct ' ' + case when @overview = 'Y' then ThisObjectName + isnull(@thisbaseobj, '') else ThisObjectName end -- Ensures a separation of names for job overview and steps for easier reading of diagrams + ' [label="' + ThisObjectSchemaName + '.' + ThisObjectName +'", shape=' + CASE WHEN ThisObjectType = 'USER_TABLE' THEN 'tab' WHEN ThisObjectType = 'VIEW' THEN 'component' --WHEN ThisObjectType = 'SQL_STORED_PROCEDURE' THEN 'ellipse' ELSE 'box, style="rounded"' end + ', tooltip=' + CASE WHEN ThisObjectType = 'SQL_STORED_PROCEDURE' AND @codesample is not null THEN '"' + @codesample + '"' ELSE ThisObjectType END + '];' FROM @dep WHERE Level > 0 AND BaseObjectType = 'SQL_STORED_PROCEDURE' AND ThisObjectType <> 'SQL_STORED_PROCEDURE' AND referenced_server_name is null AND referenced_database_name is null END ELSE -- H BEGIN /* Otherwise a hierarchical view of things. For this we need to know each object's parent. */ INSERT INTO #gvfile SELECT distinct ' ' + ThisObjectName + ' [label="' + ThisObjectSchemaName + '.' + ThisObjectName +'", shape=' + CASE WHEN ThisObjectType = 'USER_TABLE' THEN 'tab' WHEN ThisObjectType = 'VIEW' THEN 'component' WHEN ThisObjectType = 'SQL_STORED_PROCEDURE' THEN 'ellipse' ELSE 'box, style="rounded"' end + '];' FROM @dep WHERE Level > 0 AND BaseObjectType = 'SQL_STORED_PROCEDURE' AND referenced_server_name is null AND referenced_database_name is null END -- Close the subgraph. insert into #gvfile values (' } # end local') -- Get the source tables and views, etc, on the local db used by the base object -- and create the edges for them -- These could go inside the above subgraph but for symmetry with the non-local dbs put them after. if @overview != 'H' begin INSERT INTO #gvfile SELECT distinct ' ' + case when @overview = 'Y' then ThisObjectName + isnull(@thisbaseobj, '') else ThisObjectName end + ' -> ' + BaseObjectName + ';' FROM @dep WHERE Level > 0 AND ThisObjectType in ('USER_TABLE', 'VIEW') AND srcdest & 1 = 1 INSERT INTO #gvfile SELECT distinct ' ' + case when @overview = 'Y' then ThisObjectName + isnull(@thisbaseobj, '') else ThisObjectName end + ' -> ' + BaseObjectName + ' [arrowhead=dot, color=lightblue, tooltip="uses"];' FROM @dep WHERE Level > 0 AND ThisObjectType like '%FUNCTION' AND srcdest & 1 = 1 -- Get a list of target tables on the local db as for sources -- insert INSERT INTO #gvfile SELECT distinct ' ' + BaseObjectName + ' -> ' + case when @overview = 'Y' then ThisObjectName + isnull(@thisbaseobj, '') else ThisObjectName end + ';' FROM @dep WHERE Level > 0 AND ThisObjectType = 'USER_TABLE' AND srcdest &2 = 2 -- update INSERT INTO #gvfile SELECT distinct ' ' + BaseObjectName + ' -> ' + case when @overview = 'Y' then ThisObjectName + isnull(@thisbaseobj, '') else ThisObjectName end + '[dir=both style=dashed color=purple];' FROM @dep WHERE Level > 0 AND ThisObjectType = 'USER_TABLE' AND srcdest & 4 = 4 -- delete INSERT INTO #gvfile SELECT distinct ' ' + BaseObjectName + ' -> ' + case when @overview = 'Y' then ThisObjectName + isnull(@thisbaseobj, '') else ThisObjectName end + '[arrowhead=inv style=dashed color=red];' FROM @dep WHERE Level > 0 AND ThisObjectType = 'USER_TABLE' AND srcdest & 8 = 8 end else -- @overview = 'H'. Distinct command to combine multiple arrows due to sp calls at multiple levels. begin INSERT INTO #gvfile SELECT distinct ' ' + ThisObjectName + ' -> ' + ParentObjectName + ';' FROM @dep WHERE Level > 0 AND ThisObjectType in ('USER_TABLE', 'VIEW') and srcdest & 1 = 1 INSERT INTO #gvfile SELECT distinct ' ' + ThisObjectName + ' -> ' + ParentObjectName + ' [arrowhead=dot, color=lightblue, tooltip="uses"];' FROM @dep WHERE Level > 0 AND ThisObjectType like '%FUNCTION' and srcdest & 1 = 1 INSERT INTO #gvfile SELECT distinct ' ' + ParentObjectName + ' -> ' + ThisObjectName + ' [arrowhead=ovee, color=deeppink, tooltip="calls"];' FROM @dep WHERE Level > 0 AND ThisObjectType = 'SQL_STORED_PROCEDURE' AND srcdest & 1 = 1 -- insert INSERT INTO #gvfile SELECT distinct ' ' + ParentObjectName + ' -> ' + ThisObjectName + ';' FROM @dep WHERE Level > 0 AND srcdest & 2 = 2 AND referenced_database_name is null -- update INSERT INTO #gvfile SELECT distinct ' ' + ParentObjectName + ' -> ' + ThisObjectName + '[dir=both style=dashed color=purple];' FROM @dep WHERE Level > 0 AND srcdest & 4 = 4 AND referenced_database_name is null --delete INSERT INTO #gvfile SELECT distinct ' ' + ParentObjectName + ' -> ' + ThisObjectName + '[arrowhead=inv style=dashed color=red];' FROM @dep WHERE Level > 0 AND srcdest & 8 = 8 AND referenced_database_name is null end /* If the graphSection high bit is on then there's something you should know */ if @graphsection & 128 = 128 begin insert into #gvfile SELECT ' ' + BaseObjectName + 'Warning [label="' + @description + '", shape=box, color=red, style ="rounded, dashed", fontcolor=red, fontsize=16];' FROM @dep dl WHERE dl.BaseObjectType = 'SQL_STORED_PROCEDURE' AND dl.Level = 0; insert into #gvfile SELECT ' ' + BaseObjectName + 'Warning -> ' + BaseObjectName + ' [color=red, arrowhead=open];' FROM @dep dl WHERE dl.BaseObjectType = 'SQL_STORED_PROCEDURE' AND dl.Level = 0; insert into #gvfile SELECT ' {rank=same; ' + BaseObjectName + 'Warning; ' + BaseObjectName + ';}' FROM @dep dl WHERE dl.BaseObjectType = 'SQL_STORED_PROCEDURE' AND dl.Level = 0; end -- Add any other referenced databases. One cluster per db per base or parent object depending on overview level. DECLARE @dbident nvarchar(255) DECLARE @clusterIdent nvarchar(255) DECLARE @objectname nvarchar(255) DECLARE @parentobjectname nvarchar(255) DECLARE @dbpos int = 0 -- Add other local server db objects subcluster(s) DECLARE @dbname nvarchar(255); DECLARE @remdbname nvarchar(255); DECLARE @remotesrv nvarchar(255); DECLARE @cleanServerName nvarchar(255); declare @dbsrcobjects nvarchar(1000); declare @dbtargobjects nvarchar(1000); declare @dbcallobjects nvarchar(1000); IF @overview != 'H' BEGIN /* Draw database clusters as referenced. */ Declare @serverName nvarchar(255); DECLARE locdb_Cursor CURSOR FOR SELECT distinct iif(referenced_server_name is null, '', referenced_server_name), referenced_database_name FROM @dep where referenced_database_name is not null OPEN locdb_Cursor; FETCH NEXT FROM locdb_Cursor into @remotesrv, @dbname; WHILE @@FETCH_STATUS = 0 BEGIN truncate table #edges --Remote server names can be ugly so get rid of upsetting characters for use in gv references. Set @cleanServerName = replace(replace(replace(replace(replace(replace(replace(@remotesrv, ' ', '_'), '(','_'), ')','_'), '-','_'),'\','_'),'[','_'),']', '_') -- Each unique db has a cluster Set @clusterIdent = 'cluster_' + @cleanServerName +'_db_' + @dbname; insert into #gvfile values (' subgraph ' + @clusterIdent + ' {'); Set @serverName = iif(@remotesrv='','(local)', @remoteSrv); insert into #gvfile values (' label="Server: ' + @serverName +', DB: ' + @dbname + '"; '); -- Now draw table references for each base object that references this server DECLARE locdbobj_Cursor CURSOR FOR SELECT distinct BaseObjectName FROM @dep where isnull(referenced_server_name,'') = @remotesrv and referenced_database_name = @dbname OPEN locdbobj_Cursor; FETCH NEXT FROM locdbobj_Cursor into @objectname ; WHILE @@FETCH_STATUS = 0 BEGIN -- Get a pipe separated list of source objects from the local server db SELECT @dbsrcobjects = STUFF ( ( SELECT ' | ' + inTbl.ThisObjectSchemaName + '.' + inTbl.ThisObjectName FROM @dep inTbl WHERE inTbl.BaseObjectName = outTbl.BaseObjectName and Level > 0 and isnull(referenced_server_name,'') = @remotesrv and referenced_database_name = @dbname and BaseObjectName = @objectname and srcdest & 1 = 1 and ThisObjectType = 'OBJECT_OR_COLUMN' GROUP BY inTbl.ThisObjectSchemaName, inTbl.ThisObjectName ORDER BY inTbl.ThisObjectSchemaName, inTbl.ThisObjectName FOR XML PATH(''),TYPE ).value('.','VARCHAR(MAX)') , 1,1,SPACE(0)) FROM @dep outTbl where outTbl.BaseObjectName = @objectname GROUP BY outTbl.BaseObjectName SELECT @dbcallobjects = STUFF ( ( SELECT ' | ' + inTbl.ThisObjectSchemaName + '.' + inTbl.ThisObjectName FROM @dep inTbl WHERE inTbl.BaseObjectName = outTbl.BaseObjectName and Level > 0 and isnull(referenced_server_name,'') = @remotesrv and referenced_database_name = @dbname and BaseObjectName = @objectname and srcdest & 1 = 1 and ThisObjectType = 'EXEC' GROUP BY inTbl.ThisObjectSchemaName, inTbl.ThisObjectName ORDER BY inTbl.ThisObjectSchemaName, inTbl.ThisObjectName FOR XML PATH(''),TYPE ).value('.','VARCHAR(MAX)') , 1,1,SPACE(0)) FROM @dep outTbl where outTbl.BaseObjectName = @objectname GROUP BY outTbl.BaseObjectName -- Get a pipe separated list of target objects from the remote server db SELECT @dbtargobjects = STUFF ( ( SELECT ' | ' + inTbl.ThisObjectSchemaName + '.' + inTbl.ThisObjectName FROM @dep inTbl WHERE inTbl.BaseObjectName = outTbl.BaseObjectName and Level > 0 and isnull(referenced_server_name,'') = @remotesrv and referenced_database_name = @dbname and BaseObjectName = @objectname and srcdest > 1 GROUP BY inTbl.ThisObjectSchemaName, inTbl.ThisObjectName ORDER BY inTbl.ThisObjectSchemaName, inTbl.ThisObjectName FOR XML PATH(''),TYPE ).value('.','VARCHAR(MAX)') , 1,1,SPACE(0)) FROM @dep outTbl where outTbl.BaseObjectName = @objectname GROUP BY outTbl.BaseObjectName SET @dbident = 'db_' + @cleanServerName + '_' + @dbname + '_' + @objectname if @dbsrcobjects is not null begin IF @collapse_nonlocal_db <> 'Y' insert into #gvfile values(' ' + @dbident + ' [label="Source Table(s) ' + @dbsrcobjects + '", shape = "Mrecord", fontsize=14]; ') ELSE insert into #gvfile values(' ' + @dbident + ' [label="Source Table(s) ", shape = "Mrecord", fontsize=14]; ') end if @dbtargobjects is not null begin IF @collapse_nonlocal_db <> 'Y' insert into #gvfile values(' ' + @dbident + '_t [label="Target Table(s) ' + @dbtargobjects + '", shape = "Mrecord", fontsize=14]; ') ELSE insert into #gvfile values(' ' + @dbident + '_t [label="Target Table(s) ", shape = "Mrecord", fontsize=14]; ') end if @dbcallobjects is not null begin IF @collapse_nonlocal_db <> 'Y' insert into #gvfile values(' ' + @dbident + '_x [label="Call(s) ' + @dbcallobjects + '", shape = "Mrecord", fontsize=14]; ') ELSE insert into #gvfile values(' ' + @dbident + '_x [label="Call(s) ", shape = "Mrecord", fontsize=14]; ') end /* This would be the ideal place to insert the edges from the db objects to the baseobjects into the gv file. However, if the edge is inside the cluster definition it seems like graphviz -sometimes- decides to place the basobject node inside the db cluster, which is not good. So instead stack up the edges here and poot them out after the cluster is enclosed. */ if @dbsrcobjects is not null insert into #edges values (' ' + @dbident + ' -> ' + @objectname +';') if @dbtargobjects is not null insert into #edges values (' ' + @objectname + ' -> ' + @dbident + '_t;') if @dbcallobjects is not null insert into #edges values (' ' + @objectname + ' -> ' + @dbident + '_x [arrowhead=ovee, color=deeppink, tooltip="calls"];') FETCH NEXT FROM locdbobj_Cursor into @objectname ; END CLOSE locdbobj_Cursor; DEALLOCATE locdbobj_Cursor; insert into #gvfile values (' } # end cluster_db') -- Add the edges we've been saving up. insert into #gvfile select clusterEdge from #edges FETCH NEXT FROM locdb_Cursor into @remotesrv, @dbname; END CLOSE locdb_Cursor; DEALLOCATE locdb_Cursor; END ELSE BEGIN /* Draw database clusters as referenced. */ DECLARE locdb_Cursor CURSOR FOR SELECT distinct iif(referenced_server_name is null, '', referenced_server_name), referenced_database_name FROM @dep where referenced_database_name is not null OPEN locdb_Cursor; FETCH NEXT FROM locdb_Cursor into @remotesrv, @dbname; WHILE @@FETCH_STATUS = 0 BEGIN truncate table #edges --Remote server names can be ugly so get rid of upsetting characters for use in gv references. Set @cleanServerName = replace(replace(replace(replace(replace(replace(replace(@remotesrv, ' ', '_'), '(','_'), ')','_'), '-','_'),'\','_'),'[','_'),']', '_') -- Each unique db has a cluster Set @clusterIdent = 'cluster_' + @cleanServerName +'_db_' + @dbname; insert into #gvfile values (' subgraph ' + @clusterIdent + ' {'); Set @serverName = iif(@remotesrv='','(local)', @remoteSrv); insert into #gvfile values (' label="Server: ' + @serverName +', DB: ' + @dbname + '"; '); -- Now draw table references for each base object that references this server DECLARE locdbobj_Cursor CURSOR FOR SELECT distinct ParentObjectName FROM @dep where isnull(referenced_server_name,'') = @remotesrv and referenced_database_name = @dbname OPEN locdbobj_Cursor; FETCH NEXT FROM locdbobj_Cursor into @objectname ; WHILE @@FETCH_STATUS = 0 BEGIN -- Get a pipe separated list of source objects from the local server db SELECT @dbsrcobjects = STUFF ( ( SELECT ' | ' + inTbl.ThisObjectSchemaName + '.' + inTbl.ThisObjectName FROM @dep inTbl WHERE inTbl.ParentObjectName = outTbl.ParentObjectName and Level > 0 and isnull(referenced_server_name,'') = @remotesrv and referenced_database_name = @dbname and ParentObjectName = @objectname and srcdest & 1 = 1 and ThisObjectType = 'OBJECT_OR_COLUMN' GROUP BY inTbl.ThisObjectSchemaName, inTbl.ThisObjectName ORDER BY inTbl.ThisObjectSchemaName, inTbl.ThisObjectName FOR XML PATH(''),TYPE ).value('.','VARCHAR(MAX)') , 1,1,SPACE(0)) FROM @dep outTbl where outTbl.ParentObjectName = @objectname GROUP BY outTbl.ParentObjectName SELECT @dbcallobjects = STUFF ( ( SELECT ' | ' + inTbl.ThisObjectSchemaName + '.' + inTbl.ThisObjectName FROM @dep inTbl WHERE inTbl.ParentObjectName = outTbl.ParentObjectName and Level > 0 and isnull(referenced_server_name,'') = @remotesrv and referenced_database_name = @dbname and ParentObjectName = @objectname and srcdest & 1 = 1 and ThisObjectType = 'EXEC' GROUP BY inTbl.ThisObjectSchemaName, inTbl.ThisObjectName ORDER BY inTbl.ThisObjectSchemaName, inTbl.ThisObjectName FOR XML PATH(''),TYPE ).value('.','VARCHAR(MAX)') , 1,1,SPACE(0)) FROM @dep outTbl where outTbl.ParentObjectName = @objectname GROUP BY outTbl.ParentObjectName -- Get a pipe separated list of target objects from the remote server db SELECT @dbtargobjects = STUFF ( ( SELECT ' | ' + inTbl.ThisObjectSchemaName + '.' + inTbl.ThisObjectName FROM @dep inTbl WHERE inTbl.ParentObjectName = outTbl.ParentObjectName and Level > 0 and isnull(referenced_server_name,'') = @remotesrv and referenced_database_name = @dbname and ParentObjectName = @objectname and srcdest > 1 GROUP BY inTbl.ThisObjectSchemaName, inTbl.ThisObjectName ORDER BY inTbl.ThisObjectSchemaName, inTbl.ThisObjectName FOR XML PATH(''),TYPE ).value('.','VARCHAR(MAX)') , 1,1,SPACE(0)) FROM @dep outTbl where outTbl.ParentObjectName = @objectname GROUP BY outTbl.ParentObjectName SET @dbident = 'db_' + @cleanServerName + '_' + @dbname + '_' + @objectname if @dbsrcobjects is not null begin IF @collapse_nonlocal_db <> 'Y' insert into #gvfile values(' ' + @dbident + ' [label="Source Table(s) ' + @dbsrcobjects + '", shape = "Mrecord", fontsize=14]; ') ELSE insert into #gvfile values(' ' + @dbident + ' [label="Source Table(s) ", shape = "Mrecord", fontsize=14]; ') end if @dbtargobjects is not null begin IF @collapse_nonlocal_db <> 'Y' insert into #gvfile values(' ' + @dbident + '_t [label="Target Table(s) ' + @dbtargobjects + '", shape = "Mrecord", fontsize=14]; ') ELSE insert into #gvfile values(' ' + @dbident + '_t [label="Target Table(s) ", shape = "Mrecord", fontsize=14]; ') end if @dbcallobjects is not null begin IF @collapse_nonlocal_db <> 'Y' insert into #gvfile values(' ' + @dbident + '_x [label="Call(s) ' + @dbcallobjects + '", shape = "Mrecord", fontsize=14]; ') ELSE insert into #gvfile values(' ' + @dbident + '_x [label="Call(s) ", shape = "Mrecord", fontsize=14]; ') end /* This would be the ideal place to insert the edges from the db objects to the baseobjects into the gv file. However, if the edge is inside the cluster definition it seems like graphviz -sometimes- decides to place the basobject node inside the db cluster, which is not good. So instead stack up the edges here and poot them out after the cluster is enclosed. */ if @dbsrcobjects is not null insert into #edges values (' ' + @dbident + ' -> ' + @objectname +';') if @dbtargobjects is not null insert into #edges values (' ' + @objectname + ' -> ' + @dbident + '_t;') if @dbcallobjects is not null insert into #edges values (' ' + @objectname + ' -> ' + @dbident + '_x [arrowhead=ovee, color=deeppink, tooltip="calls"];') FETCH NEXT FROM locdbobj_Cursor into @objectname ; END CLOSE locdbobj_Cursor; DEALLOCATE locdbobj_Cursor; insert into #gvfile values (' } # end cluster_db') -- Add the edges we've been saving up. insert into #gvfile select clusterEdge from #edges FETCH NEXT FROM locdb_Cursor into @remotesrv, @dbname; END CLOSE locdb_Cursor; DEALLOCATE locdb_Cursor; END IF @overview in ('Y', 'H') insert into #gvfile values (' } # end cluster_top') IF @baseCount = 0 insert into #gvfile values ('"' + @FriendlyName + ' has nothing in it."') if @graphsection & 1 = 1 or @graphsection & 8 = 8 begin /* All or nohead section specified so final enclosure required Generally a nohead section will have some irrelevant text in the description and friendly name so ignore it. */ declare @label nvarchar(255) if @graphsection & 8 = 8 Set @label = 'GraphDoc' else Set @label= coalesce(@description, @FriendlyName, 'GraphDoc') insert into #gvfile values (' label=<<TABLE BORDER="0" CELLBORDER="0" CELLSPACING="0"> <TR><TD href="http://composedsoftware.net" target="_blank" TOOLTIP="Composed Software Ltd"> <B> <font color="#0000ff">' + @label + '</font></B> </TD></TR></TABLE>>') insert into #gvfile values ('} # end graph') end select * from #gvfile RETURN 0
<reponame>Isilmir/hermesTV_back CREATE TRIGGER setJson_insult on dbo.insults AFTER insert,update as declare @json nvarchar(max), @id int ,@description nvarchar(255) ,@longDescription nvarchar(max) ,@finished bit DECLARE insult_cur CURSOR FOR SELECT * from inserted OPEN insult_cur FETCH NEXT FROM insult_cur INTO @id ,@description ,@longDescription ,@finished WHILE @@FETCH_STATUS = 0 BEGIN exec dbo.compileJson_insult @id,@json out MERGE dbo.objects as target USING (select @id,@json) as source (id,json) on (target.id=source.id and target.typeId=(select top 1 id from dbo.objectTypes where name='insult')) when matched then update set qr=@json when not matched then insert (id,typeId,active,qr) values(source.id,(select top 1 id from dbo.objectTypes where name='insult'),0,source.json); FETCH NEXT FROM insult_cur INTO @id ,@description ,@longDescription ,@finished END CLOSE insult_cur; DEALLOCATE insult_cur;
/* Setup base data objects */ create table planets ( id integer primary key, name varchar(256) ); create table garrisons ( id integer primary key, fk_planet integer not null, constraint garrisons_fk_planet foreign key ( fk_planet ) references planets( id ) ); /* This is the view we want to test, a list of all planets and their garrisons (if they have some) */ create or replace view v_planet_garrisons as select p.id planet_id, p.name planet_name, count(g.id) over (partition by p.id) planet_num_of_garrisons, g.id garrison_id from planets p left outer join garrisons g on p.id = g.fk_planet ; create or replace package ut_garrisons as -- %suite(Garrisons) -- %beforeall procedure setup_planets_and_garrsions; -- %test(V_PLANET_GARRISONS returns results for planets with and without garrisons) procedure select_v_planet_garrisons; /* To select from user-defined types in SQL (so we can use cursor-comparison) we need to define them on spec-level so they are visible. */ type t_info_record is record ( planet_id integer, planet_name varchar2(256), planet_num_of_garrisons integer, garrison_id integer ); /* Nested tables are the only collections that can be accessed from SQL */ type t_info_table is table of t_info_record; end; / create or replace package body ut_garrisons as procedure setup_planets_and_garrsions as begin /* Insert test-data with negative primary keys so we dont have collisions with existing data */ insert into planets values (-1, 'Dromund Kaas'); insert into planets values (-2, 'Korriban'); /* We want only one planet to have garrisons. To better distinct the PKs, we give different to the garrisons than to the planets */ insert into garrisons (id, fk_planet ) values ( -10, -1 ); insert into garrisons (id, fk_planet ) values ( -11, -1 ); end; /* A little helper-function to get a cursor for the current values of our view, limited by entries with planet_id < 0, so we only get test-data */ function cursor_current_planet_garrisons return sys_refcursor as c_result sys_refcursor; begin open c_result for select * from v_planet_garrisons where planet_id < 0 /* Ordering is very important to get the results exactly as we expect them */ order by planet_id desc, garrison_id desc; return c_result; end; procedure select_v_planet_garrisons as /* Remember to initialize the table-collection */ l_expected_table t_info_table := t_info_table(); c_expected sys_refcursor; begin /* Populate our table-type with the expected results */ l_expected_table.extend; l_expected_table(1).planet_id := -1; l_expected_table(1).planet_name := 'Dromund Kaas'; l_expected_table(1).planet_num_of_garrisons := 2; l_expected_table(1).garrison_id := -10; l_expected_table.extend; l_expected_table(2).planet_id := -1; l_expected_table(2).planet_name := '<NAME>as'; l_expected_table(2).planet_num_of_garrisons := 2; l_expected_table(2).garrison_id := -11; l_expected_table.extend; l_expected_table(3).planet_id := -2; l_expected_table(3).planet_name := 'Korriban'; l_expected_table(3).planet_num_of_garrisons := 0; l_expected_table(3).garrison_id := null; /* Open expected-cursor for our populated data */ open c_expected for select * from table(l_expected_table); /* Now we can do an easy cursor-comparison */ ut.expect(cursor_current_planet_garrisons()) .to_equal(c_expected); end; end; / call ut.run('ut_garrisons');
--function returns a boolean value select initiate_inspection($1, $2);
<filename>macros/schema_tests/multi-column/expect_column_pair_values_to_be_in_set.sql {% test expect_column_pair_values_to_be_in_set(model, column_A, column_B, value_pairs_set, row_condition=None ) %} {% set expression %} {% for pair in value_pairs_set %} {%- if (pair | length) == 2 %} ({{ column_A }} = {{ pair[0] }} and {{ column_B }} = {{ pair[1] }}){% if not loop.last %} or {% endif %} {% else %} {{ exceptions.raise_compiler_error( "`value_pairs_set` argument for expect_column_pair_values_to_be_in_set test cannot have more than 2 item per element. Got: '" ~ pair ~ "'.'" ) }} {% endif %} {% endfor %} {% endset %} {{ dbt_expectations.expression_is_true(model, expression=expression, group_by_columns=None, row_condition=row_condition ) }} {% endtest %}
drop table if exists order_line; drop table if exists purchase_order; drop table if exists cart_item; drop table if exists inventory; drop table if exists product; drop table if exists product_category; drop table if exists grants; drop table if exists user_role; drop table if exists user_auth; drop table if exists user_detail; create table product_category( label varchar(50) primary key, sku_prefix varchar(10) not null check(sku_prefix <> ''), name text not null check(name <> '') ); create table product( sku varchar(80) primary key, name varchar(120) not null check(name <> ''), category varchar(50), image_uri text, foreign key (category) references product_category(label) ); create table inventory( id serial primary key, product_sku varchar(80), quantity_label text, price numeric(10,2), updated_at timestamptz, stock_available integer check (stock_available >= 0), unique (product_sku, quantity_label), foreign key (product_sku) references product(sku) on delete cascade ); CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; create table user_detail( username text primary key check(username <> ''), phone varchar(20) not null unique check(phone <> ''), full_name text ); create table user_role(name varchar(50) primary key); create table user_auth( username text primary key, password text not null check(password <> ''), refresh_token text, email_verified boolean default false, phone_verified boolean default false, foreign key (username) references user_detail(username) on delete cascade ); create table grants( username text not null, role varchar(50) not null, primary key (username, role), foreign key (username) references user_auth(username) on delete cascade, foreign key (role) references user_role(name) on delete cascade ); create table purchase_order( id uuid primary key default uuid_generate_v4(), username text references user_detail(username) on delete cascade, created_at timestamptz not null default now(), status varchar(20) not null check(status in ('Accepted','Pending','Dispatched','Delivered','Cancelled')) ); create table order_line( order_id uuid not null, inventory_id integer not null, quantity integer not null check(quantity > 0), primary key(order_id, inventory_id), foreign key (inventory_id) references inventory(id) on delete cascade, foreign key (order_id) references purchase_order(id) on delete cascade ); create table cart_item( username text not null, inventory_id integer not null, quantity integer not null check(quantity > 0), primary key (username, inventory_id), foreign key (username) references user_detail(username) on delete cascade, foreign key (inventory_id) references inventory(id) on delete cascade );
INSERT INTO parties (name, description) VALUES ('JS Juggernauts', 'The JS Juggernauts eat, breathe, and sleep JavaScript. They can build everything you could ever want in JS, including a new kitchen sink.'), ('Heroes of HTML', 'Want to see a mock-up turn into an actual webpage in a matter of minutes? Well, the Heroes of HTML can get it done in a matter of seconds.'), ('Git Gurus', 'Need to resolve a merge conflict? The Git Gurus have your back. Nobody knows Git like these folks do.'); INSERT INTO candidates (first_name, last_name, party_id, industry_connected) VALUES ('Ronald', 'Firbank', 1, 1), ('Virginia', 'Woolf', 1, 1), ('Piers', 'Gaveston', 1, 0), ('Charles', 'LeRoi', 2, 1), ('Katherine', 'Mansfield', 2, 1), ('Dora', 'Carrington', 3, 0), ('Edward', 'Bellamy', 3, 0), ('Montague', 'Summers', 3, 1), ('Octavia', 'Butler', 3, 1), ('Unica', 'Zurn', NULL, 1); INSERT INTO voters (first_name, last_name, email) VALUES ('James', 'Fraser', '<EMAIL>'), ('Jack', 'London', '<EMAIL>'), ('Robert', 'Bruce', '<EMAIL>'), ('Peter', 'Greenaway', '<EMAIL>'), ('Derek', 'Jarman', '<EMAIL>'), ('Paolo', 'Pasolini', '<EMAIL>'), ('Heathcote', 'Williams', '<EMAIL>'), ('Sandy', 'Powell', '<EMAIL>'), ('Emil', 'Zola', '<EMAIL>'), ('Sissy', 'Coalpits', '<EMAIL>'), ('Antoinette', 'Capet', '<EMAIL>'), ('Samuel', 'Delany', '<EMAIL>'), ('Tony', 'Duvert', '<EMAIL>'), ('Dennis', 'Cooper', '<EMAIL>'), ('Monica', 'Bellucci', '<EMAIL>'), ('Samuel', 'Johnson', '<EMAIL>'), ('John', 'Dryden', '<EMAIL>'), ('Alexander', 'Pope', '<EMAIL>'), ('Lionel', 'Johnson', '<EMAIL>'), ('Aubrey', 'Beardsley', '<EMAIL>'), ('Tulse', 'Luper', '<EMAIL>'), ('William', 'Morris', '<EMAIL>'), ('George', 'Shaw', '<EMAIL>'), ('Arnold', 'Bennett', '<EMAIL>'), ('Algernon', 'Blackwood', '<EMAIL>'), ('Rhoda', 'Broughton', '<EMAIL>'), ('Hart', 'Crane', '<EMAIL>'), ('Vitorio', 'DeSica', '<EMAIL>'), ('Wilkie', 'Collins', '<EMAIL>'), ('Elizabeth', 'Gaskell', '<EMAIL>'), ('George', 'Sand', '<EMAIL>'), ('Vernon', 'Lee', '<EMAIL>'), ('Arthur', 'Machen', '<EMAIL>'), ('Frederick', 'Marryat', '<EMAIL>'), ('Harriet', 'Martineau', '<EMAIL>'), ('George', 'Meredith', '<EMAIL>'), ('Margaret', 'Oliphant', '<EMAIL>'), ('Anthony', 'Trollope', '<EMAIL>'), ('Charlotte', 'Yonge', '<EMAIL>'), ('Horace', 'Walpole', '<EMAIL>'), ('Matthew', 'Lewis', '<EMAIL>'), ('William', 'Bedford', '<EMAIL>'), ('Anne', 'Radcliffe', '<EMAIL>'), ('Charles', 'Brown', '<EMAIL>'), ('Eliza', 'Parsons', '<EMAIL>'), ('Susan', 'Hill', '<EMAIL>'), ('Sydney', 'Owenson', '<EMAIL>'), ('Hubert', 'Crackanthorpe', '<EMAIL>'), ('William', 'Carleton', '<EMAIL>'), ('Gerald', 'Griffin', '<EMAIL>'); INSERT INTO votes (voter_id, candidate_id) VALUES(1, 1); INSERT INTO votes (voter_id, candidate_id) VALUES(2, 1); INSERT INTO votes (voter_id, candidate_id) VALUES(3,1), (4,2), (5,2), (6,2), (7,2), (8,3), (9,3);