sql
stringlengths
6
1.05M
<reponame>MuhammadFahmii/RentalMobil -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 07 Jan 2021 pada 14.59 -- Versi server: 10.4.6-MariaDB -- Versi PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `rental_mobil` -- -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_mobil` -- CREATE TABLE `tb_mobil` ( `id_mobil` int(20) NOT NULL, `merek` varchar(20) NOT NULL, `tipe` varchar(20) NOT NULL, `tahun` varchar(20) NOT NULL, `nopol` varchar(10) NOT NULL, `harga` int(20) NOT NULL, `status` varchar(20) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_mobil` -- INSERT INTO `tb_mobil` (`id_mobil`, `merek`, `tipe`, `tahun`, `nopol`, `harga`, `status`) VALUES (19, 'Daihatsu', 'Vios', '2008', 'B 4', 300000, 'Keluar'), (29, 'Lamborghinii', 'Veneno', '2015', 'B 15 A', 12000000, 'Keluar'), (21, 'Honda', 'Jazz', '2015', 'B 1 RI', 400000, 'Keluar'), (17, 'Suzuki', 'Eskudoo', '2008', 'B 2', 400000, 'Tersedia'), (16, 'Toyota', 'Avanza', '2012', 'B 1 ', 300000, 'Keluar'), (31, 'VW', 'Combi', '2002', 'B 6', 400000, 'Tersedia'), (28, 'Mitsubishi', 'Lancer Evo', '2012', 'B 14', 500000, 'Tersedia'), (34, 'Ferrari', 'Mclaren', '2018', 'B 2', 200000000, 'Tersedia'); -- -------------------------------------------------------- -- -- Struktur dari tabel `tb_transaksi` -- CREATE TABLE `tb_transaksi` ( `id_transaksi` int(20) NOT NULL, `id_mobil` int(11) NOT NULL, `peminjam` varchar(20) NOT NULL, `harga` varchar(20) NOT NULL, `tgl_pinjaman` date DEFAULT NULL, `tgl_kembali` varchar(20) DEFAULT NULL, `lama` varchar(10) DEFAULT NULL, `total` varchar(20) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `tb_transaksi` -- INSERT INTO `tb_transaksi` (`id_transaksi`, `id_mobil`, `peminjam`, `harga`, `tgl_pinjaman`, `tgl_kembali`, `lama`, `total`) VALUES (31, 19, 'assa', '12000000', '2021-01-07', '2021-01-08', '1', '500000'), (39, 21, 'ss', '400000', '2021-01-06', '2021-01-08', '20', '2'), (34, 29, 'bambang', '200', '2021-01-06', '2021-01-08', '2', '100'), (40, 19, 'Juki', '300000', '2021-01-01', '2021-01-08', '7', '2100000'); -- -------------------------------------------------------- -- -- Struktur dari tabel `user` -- CREATE TABLE `user` ( `id_user` int(11) NOT NULL, `nama` varchar(30) NOT NULL, `username` varchar(20) NOT NULL, `password` varchar(20) NOT NULL, `type` varchar(20) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data untuk tabel `user` -- INSERT INTO `user` (`id_user`, `nama`, `username`, `password`, `type`) VALUES (6, 'admin', 'admin', 'admin', 'Admin'), (7, 'staff', 'staff', 'staff', 'Staff'); -- -- Indexes for dumped tables -- -- -- Indeks untuk tabel `tb_mobil` -- ALTER TABLE `tb_mobil` ADD PRIMARY KEY (`id_mobil`); -- -- Indeks untuk tabel `tb_transaksi` -- ALTER TABLE `tb_transaksi` ADD PRIMARY KEY (`id_transaksi`), ADD KEY `id_mobil` (`id_mobil`); -- -- Indeks untuk tabel `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id_user`); -- -- AUTO_INCREMENT untuk tabel yang dibuang -- -- -- AUTO_INCREMENT untuk tabel `tb_mobil` -- ALTER TABLE `tb_mobil` MODIFY `id_mobil` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=35; -- -- AUTO_INCREMENT untuk tabel `tb_transaksi` -- ALTER TABLE `tb_transaksi` MODIFY `id_transaksi` int(20) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=41; -- -- AUTO_INCREMENT untuk tabel `user` -- ALTER TABLE `user` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>thienkimlove/gis<filename>app/Models/SqlFunctions/postgis_store_guest_map.sql /* Stores polygon (which create from multi parallel linestring) and intersection between fertilizer map meshes and each polygons. */ -- create new type (mix : intersections, geo : geometry of polygon) DROP TYPE IF EXISTS A_Grid CASCADE; CREATE TYPE A_Grid AS ( geo json, store json ); DROP FUNCTION IF EXISTS ST_StoreGuestMap( geometry, geometry ); CREATE OR REPLACE FUNCTION ST_StoreGuestMap(build_area geometry, geo_collect geometry) RETURNS SETOF A_Grid AS $BODY$ DECLARE v_grid A_Grid; i GEOMETRY; BEGIN -- Dump geo_collect which is json layer get from St_MakeParallel to polygons. FOR i IN SELECT (ST_Dump(geo_collect)).geom LOOP IF (ST_intersects(st_setsrid(i, 3857), build_area)) THEN -- get intersection between each polygon and current fertilizer map. v_grid.geo := ST_AsGeoJSON(st_intersection(st_setsrid(i, 3857), build_area)); v_grid.store := ST_AsGeoJSON(st_setsrid(i, 3857)); RETURN NEXT v_grid; END IF; END LOOP; END; $BODY$ LANGUAGE plpgsql IMMUTABLE;
$table->integer('itemnumber'); $table->string('orderitems'); $table->integer('itemqty'); $table->integer('freeitem'); $table->decimal('itemprice', 8, 2); $table->timestamps(); ALTER TABLE `parent` ADD CONSTRAINT `ref` FOREIGN KEY (`parent_data`) REFERENCES `parent`(`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; $table->decimal('totalqtyprice', 8, 2)->nullable(); ALTER TABLE `orderitems` ADD CONSTRAINT `ref` FOREIGN KEY (`parent_data`) REFERENCES `parent`(`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; ALTER TABLE orderitems ADD askedprice DECIMAL(18,2); ALTER TABLE orders ADD attachedpo VARCHAR(255) DEFAULT NULL; ALTER TABLE orders ADD totalfree INT(255) DEFAULT NULL; ALTER TABLE orders ADD discount DECIMAL(18,2); ALTER TABLE orders ADD processedby VARCHAR(255) DEFAULT NULL; ALTER TABLE orders ADD totaloriginal DECIMAL(18,2); ALTER TABLE orderitems ADD itemoldprice DECIMAL(18,2); ALTER TABLE orderitems ADD itemnewprice DECIMAL(18,2); $table->decimal('itemoldprice', 18, 2)->nullable(); $table->decimal('itemnewprice', 18, 2)->nullable(); $table->integer('')->nullable(); ALTER TABLE `orderitems` ADD CONSTRAINT `ref` FOREIGN KEY (`parent_data`) REFERENCES `parent`(`id`) ON DELETE NO ACTION ON UPDATE NO ACTION; SELECT * FROM migrations; DELETE FROM migrations WHERE id=46; INSERT INTO migrations (id, migration, batch) Values ("49", "2019_03_27_193737_create_items_table", "16"); SELECT * FROM users; INSERT INTO users update orders set status='Processed' where id=1; update orders set status='Just Created' where id=1; update orders set status='Completed' where id=30; SELECT * FROM migrations; DELETE FROM migrations WHERE id=62; DELETE FROM migrations WHERE id=63; drop table orders; drop table orderitems; CREATE TABLE `SGDB`.`items` ( `id` INT(11) NOT NULL AUTO_INCREMENT , `itemnumber` INT(255) NOT NULL; CREATE TABLE `SGDB`.`items` ( `id` INT(11) NOT NULL AUTO_INCREMENT , `itemnumber` INT(255) NOT NULL , `itemname` VARCHAR(255) NOT NULL , `itemprice` VARCHAR(255) NOT NULL , PRIMARY KEY (`id`), UNIQUE `itemnum` (`itemnumber`(255))) ENGINE = InnoDB; /* Branches Updates */ INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303042", "PANDA #10013", "2409", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303063", "PANDA #136", "2409", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303655", "PANDA #10029", "1275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303026", "PANDA #131", "2745", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303305", "PANDA #10004", "1275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303334", "PANDA #10026", "1275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303452", "Danube Co. Limited - 136 Tital", "1275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303400", "Danube Co. Limited - 134 Yasmin", "1275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303835", "Al Motafawekah for processing food", "1275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303567", "PANDA #156", "4688", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303800", "Danube Co. Limited - 147 Aqiq", "1275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303511", "PANDA #170", "4688", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303310", "Danube Co. Limited - 132 Nakhla", "5275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303280", "Othaim Markets Co. 190", "3761", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("302925", "Othaim Markets Co. 167", "4241", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303146", "Danube Co. Limited - 129 Hitteen", "1275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303477", "PANDA #146", "2409", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303951", "Danube Co. Limited - 154 Rawabi", "2409", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("302969", "PANDA #102", "2745", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303566", "Danube Co. Limited - 138 Irqa", "1869", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303489", "PANDA #164", "4688", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303966", "Danube Co. Limited - 156 Mughrizat", "5275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303862", "Danube Co. Limited - 150 Waha", "5275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303936", "Danube Co. Limited - 155 Ghadeer", "5275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303777", "Danube Co. Limited - 144 Yarmuk", "5275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303918", "Danube Co. Limited - 148 Green Oasi", "5275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("302964", "PANDA #129", "5275", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303961", "Othaim Markets Co. 328", "4639", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303816", "Lulu Saudi Hypermarkets LLC. Jamiye", "1621", "24", "CENQ"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("302990", "PANDA #10014", "2409", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303603", "Othaim Markets Co. 194", "4401", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("302918", "AlSADHAN Trading Co. 80 Sahafa", "1869", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("302952", "PANDA #116", "2409", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303159", "PANDA #140", "2409", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303693", "PANDA #314", "2508", "24", "CENQ"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303035", "PANDA #132", "2745", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("302984", "PANDA #128", "4401", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303277", "PANDA #139", "1171", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("302960", "PANDA #127", "1171", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303083", "PANDA #155", "4688", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303871", "Othaim Markets Co. 317", "4401", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("302912", "PANDA #10012", "2745", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303397", "PANDA #137", "2745", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303143", "PANDA #135", "2409", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303222", "PANDA #10003", "4688", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("302938", "PANDA #104", "4688", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303889", "Danube Co. Limited - 152 Badiah", "2745", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303241", "Othaim Markets Co. 188", "3761", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("302959", "Othaim Markets Co. 172", "3761", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("303935", "Saudi HypermarketsCo(LLC)-Riyadh Pa", "1869", "24", "CENR"); INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("302803", "PANDA #34", "2508", "24", "CENQ"); 302803 PANDA #34 2508 24 CENQ 130131401 3271165 f 40041718 EMPANADA DOUGH ( 12 X 360 G) 125 303935 Saudi HypermarketsCo(LLC)-Riyadh Pa 1869 24 CENR 302959 Othaim Markets Co. 172 3761 24 CENR 303241 Othaim Markets Co. 188 3761 24 CENR 303889 Danube Co. Limited - 152 Badiah 2745 24 CENR 302938 PANDA #104 4688 24 CENR 303222 PANDA #10003 4688 24 CENR 303143 PANDA #135 2409 24 CENR 303397 PANDA #137 2745 24 CENR 302912 PANDA #10012 2745 24 CENR 303871 Othaim Markets Co. 317 4401 24 CENR 303083 PANDA #155 4688 24 CENR 302960 PANDA #127 1171 24 CENR 303277 PANDA #139 1171 24 CENR 302984 PANDA #128 4401 24 CENR 303035 PANDA #132 2745 24 CENR 303693 PANDA #314 2508 24 CENQ 303159 PANDA #140 2409 24 CENR 302952 PANDA #116 2409 24 CENR 302918 AlSADHAN Trading Co. 80 Sahafa 1869 24 CENR 303603 Othaim Markets Co. 194 4401 24 CENR 302990 PANDA #10014 2409 24 CENR 303816 Lulu Saudi Hypermarkets LLC. Jamiye 1621 24 CENQ 303961 Othaim Markets Co. 328 4639 24 CENR 302964 PANDA #129 5275 24 CENR 303918 Danube Co. Limited - 148 Green Oasi 5275 24 CENR 303777 Danube Co. Limited - 144 Yarmuk 5275 24 CENR 303936 Danube Co. Limited - 155 Ghadeer 5275 24 CENR 303862 Danube Co. Limited - 150 Waha 5275 24 CENR 303063 PANDA #136 2409 24 CENR 303655 PANDA #10029 1275 24 CENR 303026 PANDA #131 2745 24 CENR 303391 PANDA #158 2745 24 CENR 303616 PANDA #144 2745 24 CENR 303305 PANDA #10004 1275 24 CENR 303334 PANDA #10026 1275 24 CENR 303452 Danube Co. Limited - 136 Tital 1275 24 CENR 303400 Danube Co. Limited - 134 Yasmin 1275 24 CENR 303835 Al Motafawekah for processing food 4761 21 CENR 303567 PANDA #156 4688 24 CENR 303800 Danube Co. Limited - 147 Aqiq 1275 24 CENR 303511 PANDA #170 4688 24 CENR 303310 Danube Co. Limited - 132 Nakhla 5275 24 CENR 303280 Othaim Markets Co. 190 3761 24 CENR 302925 Othaim Markets Co. 167 4241 24 CENQ 303146 Danube Co. Limited - 129 Hitteen 1275 24 CENR 303477 PANDA #146 2409 24 CENR 303951 Danube Co. Limited - 154 Rawabi 2409 24 CENR 302969 PANDA #102 2745 24 CENR 303566 Danube Co. Limited - 138 Irqa 1869 24 CENR 303489 PANDA #164 4688 24 CENR 303966 Danube Co. Limited - 156 Mughrizat 5275 24 CENR /** DELETE RECORDS **/ DELETE FROM orders WHERE id=1; DELETE FROM orders WHERE id=147; DELETE FROM orders WHERE ponumber=40896073; DELETE FROM orderitems WHERE ponumber=987888; DELETE FROM orders WHERE ponumber=11596335; DELETE FROM branches WHERE branchnumber=303603; 303603 DELETE FROM orderitems WHERE ponumber=11596335; DELETE FROM orders WHERE ponumber="4433232 f"; DELETE FROM orderitems WHERE ponumber="4433232 f"; DELETE FROM orders WHERE ponumber=242333; DELETE FROM orderitems WHERE ponumber=242333; DELETE FROM orders WHERE ponumber='[{"ponumber":"test0"}]'; DELETE FROM orderitems WHERE ponumber="40861618 1"; DELETE FROM orders WHERE ponumber="40861618 1"; DELETE FROM orderitems WHERE ponumber="40861527 1"; DELETE FROM orders WHERE ponumber="40861527 1"; DELETE FROM orderitems WHERE ponumber="40861484 1"; DELETE FROM orders WHERE ponumber="40861484 1"; DELETE FROM orderitems WHERE ponumber="40856878 1"; DELETE FROM orders WHERE ponumber="40856878 1"; DELETE FROM orderitems WHERE ponumber="40856737 1"; DELETE FROM orders WHERE ponumber="40856737 1"; DELETE FROM orderitems WHERE ponumber="40861916 1"; DELETE FROM orders WHERE ponumber="40861916 1"; DELETE FROM items WHERE itemnumber ="56060006"; DELETE FROM items WHERE itemnumber ="56060106"; DELETE FROM items WHERE itemnumber ="56060506"; DELETE FROM orderitems WHERE ponumber="3271165 f1"; DELETE FROM orders WHERE ponumber="3271165 f"; 3271165 f 56060006 56060106 56060506 UPDATE orders set totalprice=2090 where ponumber="240419 01f"; totalprice 240419 01f 240419 01f "40861527 1" "40861484 1" "40856878 1" "40856737 1" "40861916 1" DELETE FROM orderitems WHERE ponumber='[{"ponumber":"test0"}]'; DELETE FROM orders WHERE ponumber="11698226"; DELETE FROM orderitems WHERE ponumber="11698226"; DELETE FROM orders WHERE ponumber="156872"; DELETE FROM orderitems WHERE ponumber="156872"; DELETE FROM orders WHERE ponumber="156872 1"; DELETE FROM orderitems WHERE ponumber="156872 1"; DELETE FROM orders WHERE ponumber="240419 009"; DELETE FROM orderitems WHERE ponumber="240419 009"; DELETE FROM orders WHERE ponumber="240419 012f"; DELETE FROM orderitems WHERE ponumber="240419 012f"; DELETE FROM orders WHERE ponumber="111701 111"; DELETE FROM orderitems WHERE ponumber="111701 111"; DELETE FROM orders WHERE ponumber="270419 666663"; DELETE FROM orderitems WHERE ponumber="270419 666663"; START TRANSACTION; BEGIN; update orders; ROLLBACK; --COMMIT; START TRANSACTION; UPDATE orders set staffname="<NAME>", staffid="1869" WHERE created_at BETWEEN '2019-02-30 16:00:59' AND '2019-04-30 17:00:00'; ROLLBACK; DELETE FROM orders WHERE ponumber="test"; DELETE FROM orderitems WHERE ponumber="test"; DELETE FROM orders WHERE ponumber="test0"; DELETE FROM orderitems WHERE ponumber="test0"; DELETE FROM orders WHERE ponumber="test1"; DELETE FROM orderitems WHERE ponumber="test1"; DELETE FROM orders WHERE ponumber="test2"; DELETE FROM orderitems WHERE ponumber="test2"; DELETE FROM orders WHERE ponumber="test3"; DELETE FROM orderitems WHERE ponumber="test3"; DELETE FROM orders WHERE ponumber="test4"; DELETE FROM orderitems WHERE ponumber="test4"; DELETE FROM orders WHERE ponumber="test5"; DELETE FROM orderitems WHERE ponumber="test5"; DELETE FROM orders WHERE ponumber="test6"; DELETE FROM orderitems WHERE ponumber="test6"; DELETE FROM orders WHERE ponumber="test7"; DELETE FROM orderitems WHERE ponumber="test7"; DELETE FROM orders WHERE ponumber="test8"; DELETE FROM orderitems WHERE ponumber="test8"; DELETE FROM orders WHERE ponumber="test9"; DELETE FROM orderitems WHERE ponumber="test9"; DELETE FROM orders WHERE ponumber="test10"; DELETE FROM orderitems WHERE ponumber="test10"; DELETE FROM orders WHERE ponumber="test11"; DELETE FROM orderitems WHERE ponumber="test11"; DELETE FROM orders WHERE ponumber="test12"; DELETE FROM orderitems WHERE ponumber="test12"; DELETE FROM orders WHERE ponumber="test13"; DELETE FROM orderitems WHERE ponumber="test13"; DELETE FROM orders WHERE ponumber="test14"; DELETE FROM orderitems WHERE ponumber="test14"; DELETE FROM orders WHERE ponumber="test15"; DELETE FROM orderitems WHERE ponumber="test15"; DELETE FROM orders WHERE ponumber="test16"; DELETE FROM orderitems WHERE ponumber="test16"; DELETE FROM orders WHERE ponumber="test17"; DELETE FROM orderitems WHERE ponumber="test17"; DELETE FROM orders WHERE ponumber="test18"; DELETE FROM orderitems WHERE ponumber="test18"; DELETE FROM orders WHERE ponumber="test19"; DELETE FROM orderitems WHERE ponumber="test19"; DELETE FROM orders WHERE ponumber="test20"; DELETE FROM orderitems WHERE ponumber="test20"; DELETE FROM orders WHERE ponumber="test21"; DELETE FROM orderitems WHERE ponumber="test21"; DELETE FROM orders WHERE ponumber="test22"; DELETE FROM orderitems WHERE ponumber="test22"; DELETE FROM orders WHERE ponumber="test23"; DELETE FROM orderitems WHERE ponumber="test23"; DELETE FROM orders WHERE ponumber="test24"; DELETE FROM orderitems WHERE ponumber="test24"; DELETE FROM orders WHERE ponumber="test25"; DELETE FROM orderitems WHERE ponumber="test25"; DELETE FROM orders WHERE ponumber="test26"; DELETE FROM orderitems WHERE ponumber="test26"; DELETE FROM orders WHERE ponumber="test27"; DELETE FROM orderitems WHERE ponumber="test27"; DELETE FROM orders WHERE ponumber="test28"; DELETE FROM orderitems WHERE ponumber="test28"; DELETE FROM orders WHERE ponumber="test29"; DELETE FROM orderitems WHERE ponumber="test29"; DELETE FROM orders WHERE ponumber="test30"; DELETE FROM orderitems WHERE ponumber="test30"; DELETE FROM orders WHERE ponumber="test31"; DELETE FROM orderitems WHERE ponumber="test31"; DELETE FROM orders WHERE ponumber="test32"; DELETE FROM orderitems WHERE ponumber="test32"; DELETE FROM orders WHERE ponumber="test33"; DELETE FROM orderitems WHERE ponumber="test33"; DELETE FROM orders WHERE ponumber="test34"; DELETE FROM orderitems WHERE ponumber="test34"; DELETE FROM orders WHERE ponumber="test35"; DELETE FROM orderitems WHERE ponumber="test35"; DELETE FROM orders WHERE ponumber="test36"; DELETE FROM orderitems WHERE ponumber="test36"; DELETE FROM orders WHERE ponumber="test37"; DELETE FROM orderitems WHERE ponumber="test37"; DELETE FROM orders WHERE ponumber="test38"; DELETE FROM orderitems WHERE ponumber="test38"; DELETE FROM orders WHERE ponumber="test39"; DELETE FROM orderitems WHERE ponumber="test39"; DELETE FROM orders WHERE ponumber="test40"; DELETE FROM orderitems WHERE ponumber="test40"; DELETE FROM orders WHERE status="JustCreated"; DELETE FROM orderitems WHERE orderstatus="JustCreated"; DELETE FROM orders WHERE status="Editing"; DELETE FROM orderitems WHERE orderstatus="Editing"; DELETE FROM orders WHERE status="Reviewing"; DELETE FROM orderitems WHERE orderstatus="Reviewing"; SELECT branchname, logo FROM branches WHERE `branchname` LIKE '%PANDA%'; SELECT branchname, logo FROM branches WHERE `branchname` LIKE '%Othaim%'; SELECT branchname, logo FROM branches WHERE `branchname` LIKE '%Tamimi%'; SELECT branchname, logo FROM branches WHERE `branchname` LIKE '%Carrefour%'; SELECT branchname, logo FROM branches WHERE `branchname` LIKE '%Danub%'; SELECT branchname, logo FROM branches WHERE `branchname` LIKE '%Lulu%'; SELECT branchname, logo FROM branches WHERE `branchname` LIKE '%Carrefour%'; danub.png lulu.png carrefour.jpg /* SET LOGOS */ UPDATE branches SET logo="panda.png" WHERE `branchname` LIKE '%PANDA%'; UPDATE branches SET logo="othaim.png" WHERE `branchname` LIKE '%Othaim%'; UPDATE branches SET logo="tamimi.jpg" WHERE `branchname` LIKE '%Tamimi%'; UPDATE branches SET logo="carrefour.jpg" WHERE `branchname` LIKE '%PANDA%'; UPDATE branches SET logo="danub.png" WHERE `branchname` LIKE '%Danube%'; UPDATE branches SET logo="lulu.png" WHERE `branchname` LIKE '%Lulu%'; UPDATE branches SET logo="panda.png" WHERE `branchname` LIKE '%PANDA%'; UPDATE branches SET logo="panda.png" WHERE `branchname` LIKE '%PANDA%'; DELETE FROM orders WHERE ponumber="070519 00028"; DELETE FROM orderitems WHERE ponumber="070519 00028"; DELETE FROM orders WHERE ponumber="070519 00029"; DELETE FROM orderitems WHERE ponumber="070519 00029"; 070519 00028 070519 00029 020519 440 020519 441 59003112 KERRYGOLD RED CHEDDAR CHEESE (4X5 KG) 880 59003212 KERRYGOLD WHITE CHEDDAR CHEESE (4X5 KG) 880 DELETE FROM orders WHERE ponumber="19013828"; DELETE FROM orderitems WHERE ponumber="19013828"; DELETE FROM orders WHERE ponumber="2329890 f"; DELETE FROM orderitems WHERE ponumber="2329890 f"; SELECT * FROM orders where ponumber=11631534; SELECT * FROM orderitems where ponumber=11631534; select * from orderitems where ponumber="7691971"; DELETE FROM orders WHERE ponumber="7691971"; DELETE FROM orderitems WHERE ponumber="7691971"; DELETE FROM orders WHERE ponumber="132377"; DELETE FROM orderitems WHERE ponumber="132377"; 132377 7691971 11631534 11596335 4433232 f 987888 40896073 242333 DELETE FROM orders WHERE ponumber="2329890 f"; DELETE FROM orderitems WHERE ponumber="2329890 f"; 2329890 f DELETE FROM orders WHERE ponumber=8090998; DELETE FROM orderitems WHERE ponumber=8090998; 8090998 DELETE FROM orders WHERE ponumber="454444 f"; DELETE FROM orderitems WHERE ponumber="454444 f"; 454444 f DELETE FROM orders WHERE ponumber="test0"; DELETE FROM orderitems WHERE ponumber="test0"; DELETE FROM orders WHERE ponumber="40842498"; DELETE FROM orderitems WHERE ponumber="40842498"; DELETE FROM orders WHERE ponumber="11659851 f"; DELETE FROM orderitems WHERE ponumber="11659851 f"; DELETE FROM orders WHERE ponumber="11659851 f1"; DELETE FROM orderitems WHERE ponumber="11659851 f1"; DELETE FROM orders WHERE ponumber="123123"; DELETE FROM orderitems WHERE ponumber="123123"; DELETE FROM orders WHERE ponumber="050519 0020"; DELETE FROM orderitems WHERE ponumber="050519 0020"; 050519 0020 11659851 f1 11659851 f 40842498 23232323 /* Items Updates */ 55100015 SUMI HAPPY MIX KIDS (20X200G) 150 150 55100115 SUMI FRUIT JELLY DOUBLE TASTE (32X175G) 213 213 55100818 SUMI MIX BON PARTY MIX KIDS (16X300G) 182 182 55101015 SUMI MONSTER (22X90G) 83 83 55101115 SUMI COLA (22X90G) 83 83 55101315 SUMI SOUR WORMS (22X90G) 83 83 55101515 SUMI FRUIT JELLY (32X175G) 195 195 55101618 SUMI MEGA TATTOO (28x74g) 128 128 select * from itemsv2 where itemnumber="59030324"; 59030324 HAMWI COFFEE CLASSIC W CRDMN P (10X500G) 291 59003112 UPDATE itemsv2 set newitemprice = "880.00" where itemnumber="59003112"; INSERT INTO items (itemnumber, itemname, itemprice) Values ("55100015", " SUMI HAPPY MIX KIDS (20X200G)", "150"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("55100015", " SUMI HAPPY MIX KIDS (20X200G)", "150", "150"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("55100115", "SUMI FRUIT JELLY DOUBLE TASTE (32X175G)", "213", "213"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("55100818", "SUMI MIX BON PARTY MIX KIDS (16X300G)", "182", "182"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("55101015", "SUMI MONSTER (22X90G)", "83", "83"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("55101115", "SUMI COLA (22X90G", "83", "83"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("55101315", "SUMI SOUR WORMS (22X90G)", "83", "83"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("55101515", "SUMI FRUIT JELLY (32X175G)", "195", "195"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("55101618", "SUMI MEGA TATTOO (28x74g", "128", "128"); INSERT INTO items (itemnumber, itemname, itemprice) Values ("55100015", " SUMI HAPPY MIX KIDS (20X200G)", "150"); INSERT INTO items (itemnumber, itemname, itemprice) Values ("55100115", "SUMI FRUIT JELLY DOUBLE TASTE (32X175G)", "213"); INSERT INTO items (itemnumber, itemname, itemprice) Values ("55100818", "SUMI MIX BON PARTY MIX KIDS (16X300G)", "182"); INSERT INTO items (itemnumber, itemname, itemprice) Values ("55101015", "SUMI MONSTER (22X90G)", "83"); INSERT INTO items (itemnumber, itemname, itemprice) Values ("55101115", "SUMI COLA (22X90G", "83"); INSERT INTO items (itemnumber, itemname, itemprice) Values ("55101315", "SUMI SOUR WORMS (22X90G)", "83"); INSERT INTO items (itemnumber, itemname, itemprice) Values ("55101515", "SUMI FRUIT JELLY (32X175G)", "195"); INSERT INTO items (itemnumber, itemname, itemprice) Values ("55101618", "SUMI MEGA TATTOO (28x74g", "128"); 54000010 KETTLE SEA SALT 45GX50 77 77 54000110 KETTLE SALT & VINEGAR 45G*50 77 77 54000210 KETTLE HONEY MUSTARD 45GX50 77 77 54000410 KETTLE SEA SALT 170G*12 64 64 54000510 KETTLE SALT&VINEGAR 170G*12 64 64 54000610 KETTLE HONEY MUSTARD 170G*12 64 64 54001210 BUFFIES PEANUTS 30GX50 57 57 54001310 BUFFIES PEANUTS 65GX24 55 55 INSERT INTO branches (branchnumber, branchname, salesgroup, dc, office) Values ("302803", "PANDA #34", "2508", "24", "CENQ"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("54000010", "KETTLE SEA SALT 45GX50", "77", "77"); 50076012 SUNB ASIAN PARATHA (12X400G) 54 INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("50076012", "SUNB ASIAN PARATHA (12X400G)", "54", "54"); INSERT INTO items (itemnumber, itemname, itemprice) Values ("50076012", "SUNB ASIAN PARATHA (12X400G)", "54"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("54000110", "KETTLE SALT & VINEGAR 45G*50", "77", "77"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("54000210", "KETTLE HONEY MUSTARD 45GX50", "77", "77"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("54000410", "KETTLE SEA SALT 170G*12", "64", "64"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("54000510", "KETTLE SALT&VINEGAR 170G*12", "64", "64"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("54000610", "KETTLE HONEY MUSTARD 170G*12", "64", "64"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("54001210", "BUFFIES PEANUTS 30GX50", "57", "57"); INSERT INTO itemsv2 (itemnumber, itemname, itemoldprice, itemnewprice) Values ("54001310", "BUFFIES PEANUTS 65GX24", "58", "58"); 54000010 KETTLE SEA SALT 45GX50 77 54000110 KETTLE SALT & VINEGAR 45G*50 77 54000210 KETTLE HONEY MUSTARD 45GX50 77 54000410 KETTLE SEA SALT 170G*12 64 54000510 KETTLE SALT&VINEGAR 170G*12 64 54000610 KETTLE HONEY MUSTARD 170G*12 64 54001210 BUFFIES PEANUTS 30GX50 57 54001310 BUFFIES PEANUTS 65GX24 55 56060509 SUNBULAH SHREDDED MOZZARELLA (6X1 KG) 193 56060009 SUNBULAH SHREDDED MOZZARELLA (24X200 G) 180 56060109 SUNBULAH SHREDDED MOZZARELLA (12X500G) 209 /** Update Records **/ UPDATE orders SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="445725"; UPDATE orders SET processedby = "5303" WHERE status="Completed"; UPDATE orders SET staffid = "3761", staffname = "Hesham" WHERE ponumber="220419 02"; UPDATE orderitems SET staffid = "3761", staffname = "Hesham" WHERE ponumber="220419 02"; 3761 220419 02 Select * from users; /** Define REGULAR USERS */ UPDATE users SET is_permission = "0"; /** Define SUPER USERS */ UPDATE users SET is_permission = "2" WHERE id="4"; UPDATE users SET is_permission = "2" WHERE id="6"; UPDATE users SET is_permission = "2" WHERE id="1"; /** Define ADMINS */ UPDATE users SET is_permission = "1" WHERE id="25"; UPDATE users SET is_permission = "1" WHERE id="20"; UPDATE users SET is_permission = "1" WHERE id="23"; UPDATE users SET is_permission = "1" WHERE id="24"; UPDATE users SET is_permission = "1" WHERE id="19"; select * from users; UPDATE users SET dc = "001020" WHERE id="19"; UPDATE users SET idnumber = "1020" WHERE id="19"; UPDATE users SET idnumber = "1030" WHERE id="20"; -> <NAME> / KA SUPERVISOR Qaseem 001110 -> Suneer 001111 -> <NAME> 001112 -> <NAME> 001113 -> Medhat 001114 CTB Suneer <EMAIL> 466 554946096 CTP <NAME> <EMAIL> 2508 556593688 CTQ <NAME> <EMAIL> 1621 556593688 CVZ Medhat <EMAIL> 4241 553984873 UPDATE users SET dc = "001112" WHERE id="30"; UPDATE users SET dc = "001114" WHERE id="31"; UPDATE users SET idnumber = "2508" WHERE id="30"; UPDATE users SET idnumber = "4241" WHERE id="31"; UPDATE users SET idnumber = "1621" WHERE id="26"; UPDATE users SET idnumber = "1040" WHERE id="25"; UPDATE users SET idnumber = "1110" WHERE id="28"; UPDATE users SET dc = "001110" WHERE id="28"; UPDATE users SET idnumber = "1110" WHERE id="28"; UPDATE users SET dc = "001110" WHERE id="28"; UPDATE users SET dc = "001111" WHERE id="29"; UPDATE users SET idnumber = "001112" WHERE id="30"; UPDATE users SET dc = "001113" WHERE id="26"; UPDATE users SET idnumber = "001114" WHERE id="31"; UPDATE orders set status="Submitted" WHERE ponumber="010519 2222"; UPDATE orders set status="Submitted" WHERE ponumber="010519 2223"; UPDATE orderitems set orderstatus="Submitted" WHERE ponumber="010519 2222"; UPDATE orderitems set orderstatus="Submitted" WHERE ponumber="010519 2223"; UPDATE users SET is_permission = "1" WHERE id="28"; UPDATE orderitems SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="445725"; UPDATE orders SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="80597"; UPDATE orderitems SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="80597"; UPDATE orders SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="314616"; UPDATE orderitems SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="314616"; UPDATE orders SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="62202"; UPDATE orderitems SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="62202"; UPDATE orders SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="78354"; UPDATE orderitems SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="78354"; UPDATE orders SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="445726"; UPDATE orderitems SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="445726"; UPDATE orders SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="314617"; UPDATE orderitems SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="314617"; UPDATE orders SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="40847527"; UPDATE orderitems SET staffid = "1275", staffname = "<NAME>" WHERE ponumber="40847527"; SELECT * FROM orders where ponumber="40788687"; Select * FROM orderitems WHERE ponumber="445725"; /* sgdb0 Commands */ SELECT * FROM migrations; DELETE FROM migrations WHERE id=49; DELETE FROM migrations WHERE id=82; DELETE FROM migrations WHERE id=83; drop table orders; drop table orderitems; SELECT * FROM orders WHERE ponumber=11608607; SELECT * FROM orders WHERE ponumber="test0"; SELECT * FROM orderitems WHERE ponumber="test0"; SELECT * FROM orders WHERE ponumber=11608607; DELETE FROM orders WHERE ponumber="test0"; DELETE FROM orderitems WHERE ponumber="test0"; 11608607 SELECT * from orders where ponumber="40845520 f"; /*drop table items;*/ -----+ | id | orderid | ordernumber | staffname | staffid | ponumber | branchname | branchnumber | orderitems | itemnumber | itemqty | freeitem | itemprice | orderstatus | slug | totalqty | totalfree | totalprice | created_at | updated_at | +----+-------------------------------------------------------------------------- --+-------------+--------------------+---------+-----------+-------------------- ------------+--------------+---------------------------------------------------- -+------------+---------+----------+-----------+-------------+------------------ -----+----------+-----------+------------+---------------------+---------------- -----+ | 1 | http://ipool.remotewebaccess.com/orders/order/00008550817-2329890 f/review | 8550817 | <NAME> | 5303 | 2329890 f | 102303-AL TANNOOR PIZZA | 102303 | | NULL | NULL | NULL | NULL | Submitted | 00008550817-2329890 f | NULL | NULL | NULL | 2019-04-12 01:10:58 | 2019-04-12 01:16:52 |NULL CREATE TABLE `rpc` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `result` varchar(255) NOT NULL, `method` varchar(255) NOT NULL, `params` varchar(255) NOT NULL, `response` varchar(255) NOT NULL, `error` varchar(255) NOT NULL, PRIMARY KEY (`id`)); Query OK, 0 rows affected (0.23 sec) mysql> insert into rpc (`result`,`method`,`params`,`response`,`error`) VALUES (" OK","GET","any","200","NA");
-- Criar tabela Empresas create table if note exists empresas ( id int unsigned not null auto_increment, nome varchar(255) not null, cnpj int unsigned, primary key (id), unique key (cnpj) ); create table if not exists empresas_unidades ( empresas_id int unsigned not null, cidade_id int unsigned not null, sede tinyint(1) not null, primary key (empresas_id, cidade_id) );
<gh_stars>0 DROP PROCEDURE IF EXISTS spGetUserDetails; CREATE PROCEDURE spGetUserDetails ( email varchar(50) ) Select userid,firstname from tbl_users where email = email
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.17.32 -- Generation Time: Sep 07, 2021 at 11:10 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `uptfarmasi` -- -- -------------------------------------------------------- -- -- Table structure for table `gudangsatelit` -- CREATE TABLE `gudangsatelit` ( `IdGudangSatelit` int(16) NOT NULL, `Jumlah` int(11) NOT NULL, `Tanggal` date NOT NULL, `IdObat` int(16) NOT NULL, `IdSatelit` int(16) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `gudangsatelit` -- INSERT INTO `gudangsatelit` (`IdGudangSatelit`, `Jumlah`, `Tanggal`, `IdObat`, `IdSatelit`) VALUES (1, 5, '2021-01-01', 1, 1), (2, 5, '2021-01-01', 1, 2), (3, 5, '2021-01-01', 1, 3), (4, 5, '2021-01-01', 1, 4), (5, 5, '2021-01-01', 1, 5), (6, 5, '2021-01-01', 2, 1), (7, 5, '2021-01-01', 2, 2), (8, 5, '2021-01-01', 2, 3), (9, 5, '2021-01-01', 2, 4), (10, 5, '2021-01-01', 2, 5), (11, 5, '2021-01-01', 3, 1), (12, 5, '2021-01-01', 3, 2), (13, 5, '2021-01-01', 3, 3), (14, 5, '2021-01-01', 3, 4), (15, 5, '2021-01-01', 3, 5), (16, 5, '2021-01-02', 1, 1), (17, 5, '2021-01-02', 1, 2), (18, 5, '2021-01-02', 1, 3), (19, 5, '2021-01-02', 1, 4), (20, 5, '2021-01-02', 1, 5), (21, 5, '2021-01-02', 2, 1), (22, 5, '2021-01-02', 2, 2), (23, 5, '2021-01-02', 2, 3), (24, 5, '2021-01-02', 2, 4), (25, 5, '2021-01-02', 2, 5), (26, 5, '2021-01-02', 3, 1), (27, 5, '2021-01-02', 3, 2), (28, 5, '2021-01-02', 3, 3), (29, 5, '2021-01-02', 3, 4), (30, 5, '2021-01-01', 3, 5), (31, 5, '2021-02-01', 1, 1), (32, 5, '2021-02-01', 1, 2), (33, 5, '2021-02-01', 1, 3), (34, 5, '2021-02-01', 1, 4), (35, 5, '2021-02-01', 1, 5), (36, 5, '2021-02-01', 2, 1), (37, 5, '2021-02-01', 2, 2), (38, 5, '2021-02-01', 2, 3), (39, 5, '2021-02-01', 2, 4), (40, 5, '2021-02-01', 2, 5), (41, 5, '2021-02-01', 3, 1), (42, 5, '2021-02-01', 3, 2), (43, 5, '2021-02-01', 3, 3), (44, 5, '2021-02-01', 3, 4), (45, 5, '2021-02-01', 3, 5), (46, 5, '2021-02-01', 1, 1), (47, 5, '2021-02-01', 1, 2), (48, 5, '2021-02-01', 1, 3), (49, 5, '2021-02-01', 1, 4), (50, 5, '2021-02-01', 1, 5), (51, 5, '2021-02-01', 2, 1), (52, 5, '2021-02-01', 2, 2), (53, 5, '2021-02-01', 2, 3), (54, 5, '2021-02-01', 2, 4), (55, 5, '2021-02-01', 2, 5), (56, 5, '2021-02-01', 3, 1), (57, 5, '2021-02-01', 3, 2), (58, 5, '2021-02-01', 3, 3), (59, 5, '2021-02-01', 3, 4), (60, 5, '2021-02-01', 3, 5), (65, 5, '2021-08-13', 2, 1), (66, 5, '2020-12-29', 1, 1), (67, 5, '2020-12-26', 1, 1), (69, 5, '2021-02-27', 1, 1), (70, 5, '2021-04-01', 1, 1), (71, 5, '2021-08-14', 4, 1); -- -------------------------------------------------------- -- -- Table structure for table `gudangsatelitrekap` -- CREATE TABLE `gudangsatelitrekap` ( `IdGudangSatelitRekap` int(16) NOT NULL, `StokAktif` int(11) NOT NULL, `Penerimaan` int(11) NOT NULL, `SisaStok` int(11) NOT NULL, `IdGudangSatelit` int(16) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -------------------------------------------------------- -- -- Table structure for table `gudangupt` -- CREATE TABLE `gudangupt` ( `IdGudangUpt` int(16) NOT NULL, `Dinkes` int(11) NOT NULL, `Blud` int(11) NOT NULL, `Tanggal` date DEFAULT NULL, `IdObat` int(16) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `gudangupt` -- INSERT INTO `gudangupt` (`IdGudangUpt`, `Dinkes`, `Blud`, `Tanggal`, `IdObat`) VALUES (1, 10, 20, '2020-12-26', 1), (2, 20, 10, '2021-01-01', 2), (3, 10, 10, '2021-01-01', 3), (4, 10, 10, '2021-02-02', 1), (5, 10, 10, '2021-02-02', 2); -- -------------------------------------------------------- -- -- Table structure for table `obat` -- CREATE TABLE `obat` ( `IdObat` int(16) NOT NULL, `NamaObat` varchar(100) NOT NULL, `SatuanObat` varchar(11) NOT NULL, `HargaObat` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `obat` -- INSERT INTO `obat` (`IdObat`, `NamaObat`, `SatuanObat`, `HargaObat`) VALUES (1, 'Obat Penurun Panas', 'tube', 2000), (2, 'Obat Nyeri Tulang', 'tablet', 5000), (3, 'Obat Penurun Pusing', 'tablet', 2000), (4, 'Obat Penurun Nyeri Kepala', 'tablet', 3000), (5, 'Obat Sakit Kaki', 'botol', 5000); -- -------------------------------------------------------- -- -- Table structure for table `satelit` -- CREATE TABLE `satelit` ( `IdSatelit` int(16) NOT NULL, `NamaSatelit` varchar(30) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `satelit` -- INSERT INTO `satelit` (`IdSatelit`, `NamaSatelit`) VALUES (1, '<NAME>'), (2, '<NAME>'), (3, '<NAME>'), (4, '<NAME>'), (5, '<NAME>'); -- -------------------------------------------------------- -- -- Table structure for table `satelitmutasi` -- CREATE TABLE `satelitmutasi` ( `IdTransaksiSatelit` int(16) NOT NULL, `MutasiKeluar` int(11) NOT NULL, `MutasiRusak` int(11) NOT NULL, `Tanggal` date NOT NULL, `IdSatelit` int(16) NOT NULL, `IdObat` int(16) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `satelitmutasi` -- INSERT INTO `satelitmutasi` (`IdTransaksiSatelit`, `MutasiKeluar`, `MutasiRusak`, `Tanggal`, `IdSatelit`, `IdObat`) VALUES (1, 2, 1, '2021-01-01', 1, 1), (2, 1, 0, '2021-01-01', 1, 2), (3, 2, 0, '2021-01-01', 1, 3), (4, 2, 0, '2021-01-01', 2, 3), (5, 2, 0, '2020-01-01', 1, 3), (6, 2, 0, '2020-01-01', 1, 1), (7, 2, 0, '2020-02-01', 1, 1), (9, 2, 1, '2020-12-30', 1, 1), (10, 2, 0, '2021-02-01', 1, 1), (11, 2, 1, '2021-02-10', 1, 1), (14, 5, 0, '2021-08-24', 1, 1), (15, 5, 0, '2021-07-22', 1, 1); -- -- Indexes for dumped tables -- -- -- Indexes for table `gudangsatelit` -- ALTER TABLE `gudangsatelit` ADD PRIMARY KEY (`IdGudangSatelit`), ADD KEY `IdObat` (`IdObat`,`IdSatelit`), ADD KEY `IdSatelit` (`IdSatelit`); -- -- Indexes for table `gudangsatelitrekap` -- ALTER TABLE `gudangsatelitrekap` ADD PRIMARY KEY (`IdGudangSatelitRekap`), ADD KEY `IdGudangSatelit` (`IdGudangSatelit`); -- -- Indexes for table `gudangupt` -- ALTER TABLE `gudangupt` ADD PRIMARY KEY (`IdGudangUpt`), ADD KEY `IdObat` (`IdObat`); -- -- Indexes for table `obat` -- ALTER TABLE `obat` ADD PRIMARY KEY (`IdObat`); -- -- Indexes for table `satelit` -- ALTER TABLE `satelit` ADD PRIMARY KEY (`IdSatelit`); -- -- Indexes for table `satelitmutasi` -- ALTER TABLE `satelitmutasi` ADD PRIMARY KEY (`IdTransaksiSatelit`), ADD KEY `IdSatelit` (`IdSatelit`,`IdObat`), ADD KEY `IdObat` (`IdObat`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `gudangsatelit` -- ALTER TABLE `gudangsatelit` MODIFY `IdGudangSatelit` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=72; -- -- AUTO_INCREMENT for table `gudangsatelitrekap` -- ALTER TABLE `gudangsatelitrekap` MODIFY `IdGudangSatelitRekap` int(16) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `gudangupt` -- ALTER TABLE `gudangupt` MODIFY `IdGudangUpt` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=14; -- -- AUTO_INCREMENT for table `obat` -- ALTER TABLE `obat` MODIFY `IdObat` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `satelit` -- ALTER TABLE `satelit` MODIFY `IdSatelit` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `satelitmutasi` -- ALTER TABLE `satelitmutasi` MODIFY `IdTransaksiSatelit` int(16) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- Constraints for dumped tables -- -- -- Constraints for table `gudangsatelit` -- ALTER TABLE `gudangsatelit` ADD CONSTRAINT `gudangsatelit_ibfk_1` FOREIGN KEY (`IdObat`) REFERENCES `obat` (`IdObat`), ADD CONSTRAINT `gudangsatelit_ibfk_2` FOREIGN KEY (`IdSatelit`) REFERENCES `satelit` (`IdSatelit`); -- -- Constraints for table `gudangsatelitrekap` -- ALTER TABLE `gudangsatelitrekap` ADD CONSTRAINT `gudangsatelitrekap_ibfk_1` FOREIGN KEY (`IdGudangSatelit`) REFERENCES `gudangsatelit` (`IdGudangSatelit`); -- -- Constraints for table `gudangupt` -- ALTER TABLE `gudangupt` ADD CONSTRAINT `gudangupt_ibfk_1` FOREIGN KEY (`IdObat`) REFERENCES `obat` (`IdObat`); -- -- Constraints for table `satelitmutasi` -- ALTER TABLE `satelitmutasi` ADD CONSTRAINT `satelitmutasi_ibfk_1` FOREIGN KEY (`IdObat`) REFERENCES `obat` (`IdObat`), ADD CONSTRAINT `satelitmutasi_ibfk_2` FOREIGN KEY (`IdSatelit`) REFERENCES `satelit` (`IdSatelit`); 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 */;
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 03, 2019 at 02:51 AM -- Server version: 5.7.24 -- PHP Version: 7.2.19 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: `managementit` -- -- -------------------------------------------------------- -- -- Table structure for table `alat` -- CREATE TABLE `alat` ( `id_alat` int(11) NOT NULL, `id_kategori` int(11) NOT NULL, `id_user` int(11) NOT NULL, `nama_alat` varchar(100) NOT NULL, `sn_alat` varchar(50) NOT NULL, `ip_alat` varchar(30) DEFAULT NULL, `status_alat` enum('Rusak','Normal','Servis') NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `alat` -- INSERT INTO `alat` (`id_alat`, `id_kategori`, `id_user`, `nama_alat`, `sn_alat`, `ip_alat`, `status_alat`, `created_at`, `updated_at`) VALUES (2, 3, 1, 'lenovo', 'sgrgr', 'kkkkkkk', 'Rusak', '2019-10-16 23:26:59', '2019-10-16 16:26:59'), (3, 7, 2, 'Hp 1000', 'nnnnn', '192.168.1.100', 'Rusak', '2019-10-12 19:27:48', '2019-10-12 19:27:48'), (4, 3, 1, 'Epson L300', 'dfsfdhg', NULL, 'Normal', '2019-10-21 22:42:16', '2019-10-21 15:42:16'), (6, 3, 1, 'Router Css', 'nnnnn', '192.168.1.100', 'Normal', '2019-10-21 16:11:09', '2019-10-21 16:11:09'); -- -------------------------------------------------------- -- -- Table structure for table `departemen` -- CREATE TABLE `departemen` ( `id_departemen` int(10) UNSIGNED NOT NULL, `nama_departemen` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `departemen` -- INSERT INTO `departemen` (`id_departemen`, `nama_departemen`, `created_at`, `updated_at`) VALUES (1, 'FT', '2019-10-08 16:33:12', '2019-10-08 16:33:12'), (2, 'IT', '2019-10-09 06:48:35', '2019-10-09 06:48:35'), (3, 'DF', '2019-10-09 06:48:46', '2019-10-09 06:48:46'); -- -------------------------------------------------------- -- -- Table structure for table `jabatan` -- CREATE TABLE `jabatan` ( `id_jabatan` int(11) NOT NULL, `nama_jabatan` varchar(50) NOT NULL, `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `jabatan` -- INSERT INTO `jabatan` (`id_jabatan`, `nama_jabatan`, `updated_at`, `created_at`) VALUES (2, 'Staff', '2019-10-08 15:57:01', '2019-10-08 15:51:41'), (3, 'Kepala', '2019-10-09 06:49:55', '2019-10-09 06:49:55'), (4, 'Admin', '2019-10-09 06:50:12', '2019-10-09 06:50:12'); -- -------------------------------------------------------- -- -- Table structure for table `kategori` -- CREATE TABLE `kategori` ( `id_kategori` int(11) NOT NULL, `nama_kategori` varchar(50) NOT NULL, `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `kategori` -- INSERT INTO `kategori` (`id_kategori`, `nama_kategori`, `created_at`, `updated_at`) VALUES (3, 'Komputer', '2019-10-09 06:50:38', '2019-10-09 06:50:38'), (4, 'Printer', '2019-10-09 06:50:52', '2019-10-09 06:50:52'), (6, 'IP Cam', '2019-10-09 13:52:10', '2019-10-09 06:52:10'), (7, 'Laptop', '2019-10-09 06:52:21', '2019-10-09 06:52:21'), (8, 'Router', '2019-10-09 06:52:32', '2019-10-09 06:52:32'), (9, 'Finger Print', '2019-10-09 06:52:45', '2019-10-09 06:52:45'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2019_10_08_230448_departemen', 1), (2, '2019_10_11_135003_navigasis', 2); -- -------------------------------------------------------- -- -- Table structure for table `navigasi` -- CREATE TABLE `navigasi` ( `id_navigasi` int(10) UNSIGNED NOT NULL, `nama_navigasi` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL, `url_navigasi` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `gambar_navigasi` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `navigasi` -- INSERT INTO `navigasi` (`id_navigasi`, `nama_navigasi`, `url_navigasi`, `gambar_navigasi`) VALUES (3, 'Dashboard', 'admin', 'fa-dashboard'), (4, 'Kategori', 'kategori', 'fa-table'), (5, 'Jabatan', 'jabatan', 'fa-table'), (6, 'Departemen', 'departemen', 'fa-table'), (7, 'Alat', 'alat', 'fa-table'), (8, 'Navigasi', 'navigasi', 'fa-table'); -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id_user` int(11) NOT NULL, `id_bagian` int(11) NOT NULL, `id_jabatan` int(11) NOT NULL, `nama_user` varchar(50) NOT NULL, `telepon_user` int(11) NOT NULL, `email_user` varchar(50) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `id_departemen` int(11) DEFAULT NULL, `id_jabatan` int(11) DEFAULT NULL, `telepon` int(11) DEFAULT NULL, `status_user` enum('admin','it','user') COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`, `id_departemen`, `id_jabatan`, `telepon`, `status_user`) VALUES (1, 'matori', '<EMAIL>', NULL, '$2y$10$jXvK5qFGiiHD4vl4pVuVJe3DOOXNS2l0SD.Pj6PrzaaXW5xcLc8m2', NULL, '2019-10-09 05:08:44', '2019-10-09 05:08:44', 2, 2, 0, 'admin'), (2, 'Niawati', '<EMAIL>', NULL, '$2y$10$bCcmJj6gIOU4VqrXLz0kRuElph2wp.IBgA4g9M06WInwji2UBI0LW', NULL, '2019-10-12 19:18:06', '2019-10-12 19:18:06', NULL, NULL, NULL, 'it'); -- -- Indexes for dumped tables -- -- -- Indexes for table `alat` -- ALTER TABLE `alat` ADD PRIMARY KEY (`id_alat`); -- -- Indexes for table `departemen` -- ALTER TABLE `departemen` ADD PRIMARY KEY (`id_departemen`); -- -- Indexes for table `jabatan` -- ALTER TABLE `jabatan` ADD PRIMARY KEY (`id_jabatan`); -- -- Indexes for table `kategori` -- ALTER TABLE `kategori` ADD PRIMARY KEY (`id_kategori`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `navigasi` -- ALTER TABLE `navigasi` ADD PRIMARY KEY (`id_navigasi`); -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id_user`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `alat` -- ALTER TABLE `alat` MODIFY `id_alat` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `departemen` -- ALTER TABLE `departemen` MODIFY `id_departemen` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `jabatan` -- ALTER TABLE `jabatan` MODIFY `id_jabatan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `kategori` -- ALTER TABLE `kategori` MODIFY `id_kategori` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `navigasi` -- ALTER TABLE `navigasi` MODIFY `id_navigasi` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id_user` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
IF NOT EXISTS(SELECT TOP 1 1 FROM sys.tables WHERE name='page_type' AND SCHEMA_NAME(schema_id)='dbo') BEGIN CREATE TABLE dbo.page_type ( page_type_id BIGINT NOT NULL IDENTITY, page_name NVARCHAR(255) NOT NULL, is_enabled BIT NOT NULL ) PRINT 'CREATE TABLE dbo.page_type' ALTER TABLE dbo.[page_type] ADD CONSTRAINT PK_page_type PRIMARY KEY CLUSTERED (page_type_id) PRINT 'CREATE primary key pk_page_type on table [dbo].[page_type]' END
<gh_stars>0 create database unit; grant all on unit.* to unit;
<reponame>imajaydwivedi/Problem-Task---SQL-Server-Slowness USE DBA GO IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'IndexOptimize_Modified') EXEC ('CREATE PROC dbo.IndexOptimize_Modified AS SELECT ''stub version, to be replaced''') GO ALTER PROCEDURE [dbo].[IndexOptimize_Modified] @Databases nvarchar(max) = NULL, @FragmentationLow nvarchar(max) = NULL, @FragmentationMedium nvarchar(max) = 'INDEX_REORGANIZE,INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE', @FragmentationHigh nvarchar(max) = 'INDEX_REBUILD_ONLINE,INDEX_REBUILD_OFFLINE', @FragmentationLevel1 int = 50, @FragmentationLevel2 int = 80, @MinNumberOfPages int = 1000, @MaxNumberOfPages int = NULL, @SortInTempdb nvarchar(max) = 'N', @MaxDOP int = NULL, @FillFactor int = NULL, @PadIndex nvarchar(max) = NULL, @LOBCompaction nvarchar(max) = 'Y', @UpdateStatistics nvarchar(max) = NULL, @OnlyModifiedStatistics nvarchar(max) = 'N', @StatisticsModificationLevel int = NULL, @StatisticsSample int = NULL, @StatisticsResample nvarchar(max) = 'N', @PartitionLevel nvarchar(max) = 'Y', @MSShippedObjects nvarchar(max) = 'N', @Indexes nvarchar(max) = NULL, @TimeLimit int = NULL, @Delay int = NULL, @WaitAtLowPriorityMaxDuration int = NULL, @WaitAtLowPriorityAbortAfterWait nvarchar(max) = NULL, @Resumable nvarchar(max) = 'N', @AvailabilityGroups nvarchar(max) = NULL, @LockTimeout int = NULL, @LockMessageSeverity int = 16, @DatabaseOrder nvarchar(max) = NULL, @DatabasesInParallel nvarchar(max) = 'N', @LogToTable nvarchar(max) = 'N', @Execute nvarchar(max) = 'Y', @Help bit = 0, @ForceReInitiate bit = 0, @Index2FreeSpaceRatio numeric(20,2) = 2.0 ,@Verbose bit = 0 AS BEGIN SET NOCOUNT ON; /* Created By: <NAME> Version: 0.2 Modifications: May 18, 2019 - Created for 1st time Nov 13, 2021 - https://github.com/imajaydwivedi/SQLDBA-SSMS-Solution/issues/4 */ IF(@Verbose = 1) PRINT 'Declaring local variables..'; DECLARE @_isFreshStart bit = ISNULL(@ForceReInitiate,0); DECLARE @c_ID BIGINT; DECLARE @c_DbName VARCHAR(125); DECLARE @c_ParameterValue VARCHAR(500); DECLARE @c_TotalPages BIGINT; DECLARE @c_DbName_PreviousIndex VARCHAR(125); DECLARE @_DelaySeconds bigint = 0; DECLARE @_DelayLength char(8)= '00:00:00' DECLARE @c_IndexParameterValue VARCHAR(500); DECLARE @_SQLString NVARCHAR(MAX); DECLARE @_SQLString_Params NVARCHAR(500); DECLARE @tbl_Databases TABLE (ID INT IDENTITY(1,1), DBName VARCHAR(200), HaDrEnabled bit default 0); DECLARE @_IndexingStartTime datetime = GETDATE(); DECLARE @_IndexingEndTime datetime; DECLARE @_CountHadrIndexes INT; DECLARE @_CountNonHadrIndexes INT; DECLARE @_CountMin INT; DECLARE @_is_already_printed_frag_query bit = 0; DECLARE @_is_already_printed_logspace_check_query bit = 0; DECLARE @_log_free_space_mb bigint; IF OBJECT_ID('dbo.IndexProcessing_IndexOptimize') IS NULL BEGIN IF(@Verbose = 1) PRINT 'Creating table dbo.IndexProcessing_IndexOptimize'; --DROP TABLE dbo.IndexProcessing_IndexOptimize CREATE TABLE dbo.IndexProcessing_IndexOptimize (ID BIGINT IDENTITY(1,1) PRIMARY KEY, DbName varchar(125) NOT NULL, SchemaName varchar(125) NOT NULL, TableName varchar(125) NOT NULL, IndexName varchar(125) NULL, IndexType varchar(50) not null, TotalPages BIGINT NOT NULL, TotalRows BIGINT NOT NULL, AvgFragmentationPcnt numeric(28,2) not null, Defrag bit not null default 1, ParameterValue AS (QUOTENAME(DbName)+'.'+QUOTENAME(SchemaName)+'.'+QUOTENAME(TableName)+'.'+QUOTENAME(IndexName)), EntryTime datetime default getdate(), IsProcessed bit default 0); --CREATE NONCLUSTERED INDEX NCI_IsProcessed_DBName ON dbo.IndexProcessing_IndexOptimize(IsProcessed,DbName); END -- Check is specific databases have been mentioned IF(@Verbose = 1) PRINT 'Populating table @tbl_Databases'; IF @Databases IS NOT NULL --AND @_isFreshStart = 1 BEGIN WITH t1(DBName,DBs) AS ( SELECT CAST(LEFT(@Databases, CHARINDEX(',',@Databases+',')-1) AS VARCHAR(500)) as DBName, STUFF(@Databases, 1, CHARINDEX(',',@Databases+','), '') as DBs -- UNION ALL -- SELECT CAST(LEFT(DBs, CHARINDEX(',',DBs+',')-1) AS VARChAR(500)) AS DBName, STUFF(DBs, 1, CHARINDEX(',',DBs+','), '') as DBs FROM t1 WHERE DBs > '' ) INSERT @tbl_Databases (DBName, HaDrEnabled) SELECT [DBName] = LTRIM(RTRIM(DBName)), HaDrEnabled = (CASE WHEN d.is_published = 1 OR d.is_subscribed = 1 OR d.is_distributor = 1 OR group_database_id is not null THEN 1 ELSE 0 END) FROM t1 LEFT JOIN sys.databases d ON t1.DBName = d.name OPTION (MAXRECURSION 32000); END IF(@Verbose = 1) BEGIN PRINT 'SELECT * FROM @tbl_Databases;'; IF(CAST(SERVERPROPERTY('ProductMajorVersion') AS SMALLINT)> 13) SELECT '@tbl_Databases__Hadr__' as RunningQuery, [@_isFreshStart] = @_isFreshStart, STRING_AGG(DBName,', ') AS Dbs FROM @tbl_Databases WHERE HaDrEnabled = 1 UNION ALL SELECT '@tbl_Databases__NonHadr__' as RunningQuery, [@_isFreshStart] = @_isFreshStart, STRING_AGG(DBName,', ') AS Dbs FROM @tbl_Databases WHERE HaDrEnabled = 0; ELSE SELECT '@tbl_Databases' as RunningQuery, [@_isFreshStart] = @_isFreshStart, * FROM @tbl_Databases; END -- Check if there is any database for which there is no index to process IF(@Verbose = 1 AND @ForceReInitiate = 0) begin print 'Checking if there is any database for which there is no index to process'; --select [@_isFreshStart] = @_isFreshStart; select 'Previous Index Count for Processing' as RunningQuery, d.DBName, i.[nonqualified-indexes], i.[qualified-indexes], i.processed, i.pending ,'select * from dbo.IndexProcessing_IndexOptimize' as [for-details] from @tbl_Databases as d left join ( select DbName, [nonqualified-indexes] = sum(case when ipio.Defrag = 0 then 1 else 0 end), [qualified-indexes] = sum(case when ipio.Defrag = 1 then 1 else 0 end), processed = sum(case when ipio.Defrag = 1 and ipio.IsProcessed = 1 then 1 else 0 end), pending = sum(case when ipio.Defrag = 1 and ipio.IsProcessed = 0 then 1 else 0 end) from dbo.IndexProcessing_IndexOptimize as ipio --where ipio.Defrag = 1 group by DbName ) i on d.DBName = i.DbName end IF @_isFreshStart = 1 OR EXISTS ( select 'Index Count for Processing' as RunningQuery, * from @tbl_Databases as d left join (select DbName, processed = sum(case when ipio.IsProcessed = 1 then 1 else 0 end), pending = sum(case when ipio.IsProcessed = 0 then 1 else 0 end) from dbo.IndexProcessing_IndexOptimize as ipio where ipio.Defrag = 1 group by DbName ) i on d.DBName = i.DbName where i.pending is null or i.pending = 0 ) BEGIN DECLARE cursor_Databases CURSOR LOCAL FORWARD_ONLY FAST_FORWARD READ_ONLY FOR SELECT DBName FROM @tbl_Databases dbs WHERE @_isFreshStart = 1 OR dbs.DBName IN ( select d.DBName from @tbl_Databases as d left join (select DbName, processed = sum(case when ipio.IsProcessed = 1 then 1 else 0 end), pending = sum(case when ipio.IsProcessed = 0 then 1 else 0 end) from dbo.IndexProcessing_IndexOptimize as ipio where ipio.Defrag = 1 group by DbName ) i on d.DBName = i.DbName where i.pending is null or i.pending = 0 ) ORDER BY DBName; OPEN cursor_Databases; FETCH NEXT FROM cursor_Databases INTO @c_DbName; WHILE @@FETCH_STATUS = 0 BEGIN IF(@Verbose = 1) BEGIN PRINT '@c_DbName = '+@c_DbName; END -- If no remaining index is there to process, repopulate table IF ( (NOT EXISTS (SELECT * FROM dbo.IndexProcessing_IndexOptimize WHERE (Defrag = 1 and IsProcessed = 0) and DbName = @c_DbName)) OR (@_isFreshStart = 1) ) BEGIN --SET @_isFreshStart = 1; IF(@Verbose = 1) PRINT 'Deleting already processed indexes from table dbo.IndexProcessing_IndexOptimize for DbName = '+@c_DbName; DELETE FROM dbo.IndexProcessing_IndexOptimize WHERE DbName = @c_DbName; END SET @_SQLString = ' USE '+QUOTENAME(@c_DbName)+'; select db_name(ips.database_id) as DbName, sch.name as SchemaName, object_name(ips.object_id) as TableName, ind.name as IndexName, ips.index_type_desc as IndexType, page_count as TotalPages, ps.row_count as TotalRows, ips.avg_fragmentation_in_percent as [AvgFragmentationPcnt], [Defrag] = (CASE WHEN (case when ips.page_count >= '+CAST(@MinNumberOfPages AS VARCHAR(20))+' then ''Yes'' else ''No'' end) = ''Yes'' and avg_fragmentation_in_percent >= '+CAST(@FragmentationLevel1 AS varchar(20))+' and ind.name is not null THEN 1 ELSE 0 END) from sys.dm_db_index_physical_stats(DB_ID(),NULL,NULL,NULL,''LIMITED'') as ips inner join sys.indexes as ind on ips.index_id = ind.index_id and ips.object_id = ind.object_id inner join sys.tables as tbl on ips.object_id = tbl.object_id inner join sys.schemas as sch on tbl.schema_id = sch.schema_id inner join sys.dm_db_partition_stats as ps on ps.object_id = ips.object_id and ps.index_id = ips.index_id where ips.alloc_unit_type_desc = ''IN_ROW_DATA'' ORDER BY SchemaName, TableName, ips.avg_fragmentation_in_percent DESC OPTION (RECOMPILE); '; IF(@Verbose = 1) BEGIN PRINT 'Repopulating table dbo.IndexProcessing_IndexOptimize with Indexes of DbName = '+@c_DbName; IF @_is_already_printed_frag_query = 0 BEGIN PRINT @_SQLString; SET @_is_already_printed_frag_query = 1; END END INSERT dbo.IndexProcessing_IndexOptimize (DbName, SchemaName, TableName, IndexName, IndexType, TotalPages, TotalRows, AvgFragmentationPcnt, Defrag) EXEC(@_SQLString); FETCH NEXT FROM cursor_Databases INTO @c_DbName; END END IF(@Verbose = 1) BEGIN PRINT 'Initializing variable @_CountHadrIndexes, @_CountNonHadrIndexes, @_CountMin '; END -- Find out Hadr database indexes SELECT @_CountHadrIndexes = COUNT(*) FROM dbo.IndexProcessing_IndexOptimize as ipio WHERE (Defrag = 1 and IsProcessed = 0) --AND DbName IN (SELECT d.name FROM sys.databases as d WHERE d.is_published = 1 OR d.is_subscribed = 1 OR d.is_distributor = 1 OR group_database_id is not null) AND DbName IN (SELECT d.DBName FROM @tbl_Databases as d WHERE HaDrEnabled = 1); -- Find out Non-Hadr database indexes SELECT @_CountNonHadrIndexes = COUNT(*) FROM dbo.IndexProcessing_IndexOptimize WHERE (Defrag = 1 and IsProcessed = 0) --AND DbName NOT IN (SELECT d.name FROM sys.databases as d WHERE d.is_published = 1 OR d.is_subscribed = 1 OR d.is_distributor = 1 OR group_database_id is not null) AND DbName IN (SELECT d.DBName FROM @tbl_Databases as d WHERE HaDrEnabled = 0); /* Set Bucket Size */ SELECT @_CountMin = CASE WHEN @_CountHadrIndexes = 0 /* When hadr indexes are 0, set bucket count to min(count) of index of non-hadr database */ THEN ( SELECT TOP 1 COUNT(*) AS index_counts FROM dbo.IndexProcessing_IndexOptimize WHERE (Defrag = 1 and IsProcessed = 0) --AND DbName NOT IN (SELECT d.name FROM sys.databases as d WHERE d.is_published = 1 OR d.is_subscribed = 1 OR d.is_distributor = 1 OR group_database_id is not null) AND DbName IN (SELECT d.DBName FROM @tbl_Databases as d WHERE HaDrEnabled = 0) GROUP BY DbName ORDER BY COUNT(*) ASC ) WHEN @_CountNonHadrIndexes = 0 /* When non-hadr indexes are 0, set bucket count to min(count) of index of hadr database */ THEN ( SELECT TOP 1 COUNT(*) AS index_counts FROM dbo.IndexProcessing_IndexOptimize WHERE (Defrag = 1 and IsProcessed = 0) --AND DbName IN (SELECT d.name FROM sys.databases as d WHERE d.is_published = 1 OR d.is_subscribed = 1 OR d.is_distributor = 1 OR group_database_id is not null) AND DbName IN (SELECT d.DBName FROM @tbl_Databases as d WHERE HaDrEnabled = 1) GROUP BY DbName ORDER BY COUNT(*) ASC ) WHEN @_CountHadrIndexes <= @_CountNonHadrIndexes THEN @_CountHadrIndexes ELSE @_CountNonHadrIndexes END IF @_CountMin < 10 SET @_CountMin = 10; IF(@Verbose = 1) SELECT 'Bucket Size' AS RunningQuery, [@_CountHadrIndexes] = @_CountHadrIndexes, [@_CountNonHadrIndexes] = @_CountNonHadrIndexes, [@_CountMin] = @_CountMin; IF @Verbose = 1 BEGIN SELECT 'Index Counts By Database' as RunningQuery, 'Non-Hadr' as Category, DbName, COUNT(*) AS index_counts FROM dbo.IndexProcessing_IndexOptimize WHERE (Defrag = 1 and IsProcessed = 0) --AND DbName NOT IN (SELECT d.name FROM sys.databases as d WHERE d.is_published = 1 OR d.is_subscribed = 1 OR d.is_distributor = 1 OR group_database_id is not null) AND DbName IN (SELECT d.DBName FROM @tbl_Databases as d WHERE HaDrEnabled = 0) GROUP BY DbName -- UNION ALL -- SELECT 'Index Counts By Database' as RunningQuery, 'Hadr' as Category, DbName, COUNT(*) AS index_counts FROM dbo.IndexProcessing_IndexOptimize WHERE (Defrag = 1 and IsProcessed = 0) --AND DbName IN (SELECT d.name FROM sys.databases as d WHERE d.is_published = 1 OR d.is_subscribed = 1 OR d.is_distributor = 1 OR group_database_id is not null) AND DbName IN (SELECT d.DBName FROM @tbl_Databases as d WHERE HaDrEnabled = 1) GROUP BY DbName ORDER BY COUNT(*) ASC, Category, DbName END CREATE TABLE #IndexOptimize_Modified_Processing (ID bigint, DbName varchar(125), ParameterValue nvarchar(max), TotalPages bigint, RowRank int, OrderID int ); IF NOT (@_CountHadrIndexes = 0 OR @_CountNonHadrIndexes = 0) BEGIN /* When Hadr + NonHadr indexes */ INSERT #IndexOptimize_Modified_Processing (ID, DbName, ParameterValue, TotalPages ,RowRank, OrderID) SELECT ID, DbName, ParameterValue, TotalPages ,RowRank = NTILE(@_CountMin)OVER(PARTITION BY IsHadrIndex ORDER BY OrderID), OrderID FROM ( SELECT ID, DbName, ParameterValue, TotalPages, IsHadrIndex = 1, OrderID = ROW_NUMBER()OVER(ORDER BY TotalPages DESC) FROM dbo.IndexProcessing_IndexOptimize -- Hadr databases WHERE (Defrag = 1 and IsProcessed = 0) AND DbName IN (SELECT d.DBName FROM @tbl_Databases as d WHERE HaDrEnabled = 1) -- UNION ALL -- SELECT ID, DbName, ParameterValue, TotalPages, IsHadrIndex = 0, OrderID = ROW_NUMBER()OVER(ORDER BY TotalPages DESC) FROM dbo.IndexProcessing_IndexOptimize -- Not Hadr databases WHERE (Defrag = 1 and IsProcessed = 0) AND DbName IN (SELECT d.DBName FROM @tbl_Databases as d WHERE HaDrEnabled = 0) ) AS R ORDER BY NTILE(@_CountMin)OVER(PARTITION BY IsHadrIndex ORDER BY OrderID), OrderID; END ELSE BEGIN /* When Only either Hadr or NonHadr indexes */ INSERT #IndexOptimize_Modified_Processing (ID, DbName, ParameterValue, TotalPages ,RowRank, OrderID) SELECT ID, DbName, ParameterValue, TotalPages ,RowRank = NTILE(@_CountMin)OVER(PARTITION BY IsHadrIndex ORDER BY OrderID, DbName), OrderID FROM ( SELECT ID, DbName, ParameterValue, TotalPages, IsHadrIndex = 1, OrderID = ROW_NUMBER()OVER(PARTITION BY DbName ORDER BY TotalPages DESC) FROM dbo.IndexProcessing_IndexOptimize -- Hadr databases WHERE (Defrag = 1 and IsProcessed = 0) AND DbName IN (SELECT d.DBName FROM @tbl_Databases as d WHERE HaDrEnabled = 1) -- UNION ALL -- SELECT ID, DbName, ParameterValue, TotalPages, IsHadrIndex = 0, OrderID = ROW_NUMBER()OVER(PARTITION BY DbName ORDER BY TotalPages DESC) FROM dbo.IndexProcessing_IndexOptimize -- Not Hadr databases WHERE (Defrag = 1 and IsProcessed = 0) AND DbName IN (SELECT d.DBName FROM @tbl_Databases as d WHERE HaDrEnabled = 0) ) AS R ORDER BY NTILE(@_CountMin)OVER(PARTITION BY IsHadrIndex ORDER BY OrderID, DbName), OrderID; END IF @Verbose = 1 BEGIN PRINT 'SELECT * FROM #IndexOptimize_Modified_Processing;' SELECT '#IndexOptimize_Modified_Processing' as RunningQuery, * FROM #IndexOptimize_Modified_Processing ORDER BY RowRank, OrderID; END IF(@Verbose = 1) PRINT 'Declaring cursor cursor_Indexes for processing of Indexes'; DECLARE cursor_Indexes CURSOR LOCAL FORWARD_ONLY FAST_FORWARD READ_ONLY FOR SELECT ID, DbName, ParameterValue, TotalPages FROM #IndexOptimize_Modified_Processing ORDER BY RowRank, OrderID; OPEN cursor_Indexes; FETCH NEXT FROM cursor_Indexes INTO @c_ID, @c_DbName,@c_IndexParameterValue, @c_TotalPages; WHILE @@FETCH_STATUS = 0 AND (@TimeLimit IS NULL OR (DATEDIFF(second,@_IndexingStartTime,GETDATE()) < @TimeLimit)) BEGIN IF(@Verbose = 1) BEGIN PRINT 'Processing Index '+@c_IndexParameterValue; IF @Execute = 'Y' SELECT [@c_ID] = @c_ID, [@c_DbName] = @c_DbName, [@c_IndexParameterValue] = @c_IndexParameterValue, [@c_TotalPages] = @c_TotalPages; END -- If Trying to Rebuild/ReOrg continsouly for Hadr involved database, then Delay for 5 Minutes IF @c_DbName_PreviousIndex IS NOT NULL AND @c_DbName_PreviousIndex = @c_DbName AND @_CountHadrIndexes > 0 AND EXISTS (SELECT 1 FROM @tbl_Databases as d WHERE d.DBName = @c_DbName AND HaDrEnabled = 1) BEGIN SET @_DelaySeconds = 20 + (@c_TotalPages/10000)*0.56; SELECT @_DelayLength = (CASE WHEN @_DelaySeconds < 60 THEN '00:00:'+REPLICATE('0',2-LEN(@_DelaySeconds))+CAST(@_DelaySeconds AS VARCHAR(20))-- Less than a Minute WHEN (@_DelaySeconds/60) < 60 THEN '00:'+REPLICATE('0',2-LEN(@_DelaySeconds/60))+CAST(@_DelaySeconds/60 AS VARCHAR(2))+':'+REPLICATE('0',2-LEN(@_DelaySeconds%60))+CAST(@_DelaySeconds%60 AS VARCHAR(20)) -- Less than an Hour ELSE REPLICATE('0',2-LEN(@_DelaySeconds/3600))+CAST(@_DelaySeconds/3600 AS VARCHAR(20))+':'+REPLICATE('0',2-LEN((@_DelaySeconds%3600)/60))+CAST((@_DelaySeconds%3600)/60 AS VARCHAR(20))+':'+REPLICATE('0',2-LEN(@_DelaySeconds%60))+CAST(@_DelaySeconds%60 AS VARCHAR(20)) END); IF @Execute = 'Y' WAITFOR DELAY @_DelayLength; ELSE PRINT CHAR(10)+CHAR(9)+'@_DelayLength = '''+@_DelayLength+''''+CHAR(10); END -- Check Free Space in Log File SET @_SQLString_Params = '@_log_free_space_mb bigint OUTPUT' SET @_SQLString = N' USE '+QUOTENAME(@c_DbName)+'; with t_log_free_space as ( select log_free_space_mb = SUM((size/128 - CAST(FILEPROPERTY(f.name,''SpaceUsed'') AS bigint)/128)) from sys.database_files f left join sys.filegroups fg on fg.data_space_id = f.data_space_id where (not (growth <> 0 and (max_size = -1 or max_size >= size))) and f.type_desc = ''LOG'' ) select @_log_free_space_mb = ISNULL(log_free_space_mb,value) from t_log_free_space full outer join (select -1 as value) d on 1 = 1 '; IF(@Verbose = 1) BEGIN PRINT 'Check for free space on Log file of '''+@c_DbName+''''; IF @_is_already_printed_logspace_check_query = 0 BEGIN PRINT @_SQLString; SET @_is_already_printed_logspace_check_query = 1; END END IF @Execute = 'Y' OR @Verbose = 1 BEGIN EXECUTE sp_executesql @_SQLString, @_SQLString_Params, @_log_free_space_mb=@_log_free_space_mb OUTPUT; IF @Verbose = 1 PRINT '@_log_free_space_mb = '+cast(@_log_free_space_mb as varchar(20)); IF @_log_free_space_mb <> -1 AND (((@c_TotalPages/128)*@Index2FreeSpaceRatio) > @_log_free_space_mb) BEGIN SET @_SQLString = QUOTENAME(@c_DbName)+' => Free Log File Space of '+convert(varchar(20),@_log_free_space_mb)+' MB is not sufficient for index '''+@c_IndexParameterValue+''' of size '+convert(varchar(20), @c_TotalPages/128)+' MB with @Index2FreeSpaceRatio = '+CONVERT(varchar,@Index2FreeSpaceRatio); THROW 51000, @_SQLString, 1; END END IF NOT (@Verbose = 1 AND @Execute = 'N') BEGIN EXECUTE dbo.IndexOptimize @Databases = @c_DbName, -- Changed Value @FragmentationLow = @FragmentationLow, @FragmentationMedium = @FragmentationMedium, @FragmentationHigh = @FragmentationHigh, @FragmentationLevel1 = @FragmentationLevel1, @FragmentationLevel2 = @FragmentationLevel2, @MinNumberOfPages = @MinNumberOfPages, @MaxNumberOfPages = @MaxNumberOfPages, @SortInTempdb = @SortInTempdb, @MaxDOP = @MaxDOP, @FillFactor = @FillFactor, @PadIndex = @PadIndex, @LOBCompaction = @LOBCompaction, @UpdateStatistics = @UpdateStatistics, @OnlyModifiedStatistics = @OnlyModifiedStatistics, @StatisticsModificationLevel = @StatisticsModificationLevel, @StatisticsSample = @StatisticsSample, @StatisticsResample = @StatisticsResample, @PartitionLevel = @PartitionLevel, @MSShippedObjects = @MSShippedObjects, @Indexes = @c_IndexParameterValue, -- Changed Value @TimeLimit = @TimeLimit, @Delay = @Delay, @WaitAtLowPriorityMaxDuration = @WaitAtLowPriorityMaxDuration, @WaitAtLowPriorityAbortAfterWait = @WaitAtLowPriorityAbortAfterWait, @Resumable = @Resumable, @AvailabilityGroups = @AvailabilityGroups, @LockTimeout = @LockTimeout, @LockMessageSeverity = @LockMessageSeverity, @DatabaseOrder = @DatabaseOrder, @DatabasesInParallel = @DatabasesInParallel, @LogToTable = @LogToTable, @Execute = @Execute; END IF @Execute = 'Y' BEGIN UPDATE dbo.IndexProcessing_IndexOptimize SET IsProcessed = 1 WHERE ID = @c_ID; END SET @c_DbName_PreviousIndex = @c_DbName; FETCH NEXT FROM cursor_Indexes INTO @c_ID, @c_DbName,@c_IndexParameterValue, @c_TotalPages; END END GO
# agregamos a esa tabla, global, para poder chatear todos insert into `tiporelusuarios` (`idtiporelusuarios`, `tiporelusuarios`) values ('5', 'global'); DELIMITER $$ drop procedure if exists mensajeschat $$ CREATE PROCEDURE mensajeschat(in opciones int, in nombreamigo nvarchar(100), in cormio nvarchar(100), in mensajechat nvarchar(200)) BEGIN declare maxim int; declare relusu int; declare relusu2 int; declare usu int; declare amigoid int; set usu=(select idpersona from persona where correo=cormio); set amigoid=(select idpersona from persona where nombre=nombreamigo); set relusu=(select idrelusuarios from relusuarios where idusuario1=usu and idusuario2=amigoid order by idrelusuarios); set relusu2=(select idrelusuarios from relusuarios where idusuario1=amigoid and idusuario2=usu order by idrelusuarios); case opciones # leer mensajes de usuario cormio con coramigo when 1 then select *,date_format(m.fecha,'%d/%m/%Y') as fechachat, date_format(m.fecha,'%H:%i:%s') as horachat from mensajes m inner join relusuarios r on m.idrelusuarios=r.idrelusuarios inner join persona p on p.idpersona=r.idusuario1 where m.idrelusuarios=relusu or m.idrelusuarios=relusu2 order by fechachat, horachat; when 2 then # nuevo mensaje set maxim=(select ifnull(max(idmensaje),0)+1 from mensajes); insert into mensajes (idmensaje,mensaje,idrelusuarios,usuario,estatus) values(maxim,mensajechat,relusu,usu,1); when 3 then # cargo mensajes chat global select *,date_format(m.fecha,'%d/%m/%Y') as fechachat, date_format(m.fecha,'%H:%i:%s') as horachat from mensajes m inner join persona on persona.idpersona=m.Usuario where m.idrelusuarios=0; when 4 then # nuevo mensaje chat global set maxim=(select ifnull(max(idmensaje),0)+1 from mensajes); insert into mensajes (idmensaje,mensaje,idrelusuarios,usuario,estatus) values(maxim,mensajechat,0,usu,1); when 5 then select nombre from persona where correo=cormio; end case; END $$ DELIMITER ; DELIMITER $$ drop procedure if exists friendschat $$ CREATE PROCEDURE `friendschat`(in opc int, in cor nvarchar(300)) BEGIN declare idUsu int; set idUsu=(select idpersona from persona where correo=cor); Case opc when 0 then select * from (select idusuario1,idUsuario2 from relusuarios where idUsuario1=idUsu) v inner join (select * from relusuarios where idUsuario2=idUsu) vv on vv.idUsuario1=v.idUsuario2 inner join persona on v.idUsuario2=idpersona; end case; END $$ DELIMITER ; call mensajeschat(1,'Yhael','BI8X9SLrQqpnSJdRGrD194wqKGCCOgQ/X5SdbgeciQ0=','');
<gh_stars>0 CREATE TABLE collection_claimeditemset ( id INT NOT NULL AUTO_INCREMENT, player_id VARCHAR(100) NOT NULL, item_set_id VARCHAR(100) NOT NULL, PRIMARY KEY (id), FOREIGN KEY (item_set_id) REFERENCES collection_itemset(id) );
<filename>web/maBase/asi_police .sql -- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Mar 22 Janvier 2019 à 16:46 -- Version du serveur : 5.7.14 -- Version de PHP : 7.0.10 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 */; -- -- Base de données : `asi_police` -- -- -------------------------------------------------------- -- -- Structure de la table `attestation` -- CREATE TABLE `attestation` ( `id` int(11) NOT NULL, `policier_id` int(11) NOT NULL, `conducteur_id` int(11) NOT NULL, `numeroAttestation` int(11) NOT NULL, `date` date NOT NULL, `lieu` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `infractionConstater` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `dateRecuperePermis` date NOT NULL, `payer` enum('NON','OUI') COLLATE utf8_unicode_ci DEFAULT NULL, `etatPiece` enum('retirée','pas retirée') COLLATE utf8_unicode_ci DEFAULT NULL, `categorie` enum('4R&+','2R') COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `attestation` -- INSERT INTO `attestation` (`id`, `policier_id`, `conducteur_id`, `numeroAttestation`, `date`, `lieu`, `infractionConstater`, `dateRecuperePermis`, `payer`, `etatPiece`, `categorie`) VALUES (1, 2, 1, 1, '2018-09-26', 'teste 2', 'teste 2', '2019-01-16', 'OUI', 'pas retirée', NULL), (2, 2, 2, 3, '2018-09-27', 'PR', 'Usage de téléphoner au volant', '2018-09-28', 'NON', 'pas retirée', NULL), (3, 2, 3, 900, '2018-09-28', 'PRE', 'mal stationné', '2019-01-16', 'OUI', 'pas retirée', NULL), (4, 2, 4, 20181001, '2018-10-02', 'cpi', 'défaut de visite technique', '2018-10-16', 'OUI', 'pas retirée', NULL), (5, 2, 5, 20181002, '2018-10-16', 'test7', 'test7', '2018-10-16', 'OUI', 'pas retirée', NULL), (6, 2, 7, 20181003, '2018-10-16', 'teste11', 'teste11', '2018-10-16', 'OUI', 'pas retirée', NULL), (7, 2, 8, 20181004, '2018-10-18', 'teste15', 'teste15', '2018-10-26', 'OUI', 'pas retirée', NULL), (8, 2, 9, 20181005, '2018-10-19', 'teste16', 'teste16', '2018-10-19', 'NON', 'pas retirée', NULL), (9, 2, 10, 20181006, '2018-10-22', 'teste17', 'teste17', '2019-01-15', 'OUI', 'pas retirée', NULL), (10, 2, 11, 20181007, '2018-10-31', 'teste18', 'teste18', '2019-01-14', 'OUI', 'pas retirée', NULL), (11, 2, 12, 20181201, '2018-12-13', 'test150', 'test150', '2018-12-14', 'OUI', 'pas retirée', NULL), (12, 2, 13, 20181202, '2018-12-14', 'teste20', 'teste20', '2019-01-08', 'OUI', 'pas retirée', NULL), (13, 2, 14, 20190101, '2019-01-07', 'iiii', 'hhhh', '2019-01-08', 'OUI', 'pas retirée', NULL), (14, 2, 15, 20190102, '2019-01-07', 'oooo', 'ppppp', '2019-01-08', 'OUI', 'retirée', NULL), (15, 2, 16, 20190103, '2019-01-08', 'iiii', 'ooooo', '2019-01-08', 'OUI', 'retirée', NULL), (16, 2, 22, 20190104, '2019-01-14', 'oooo', 'ssss', '2019-01-16', 'OUI', 'pas retirée', NULL), (17, 2, 24, 20190105, '2019-01-14', 'thies', 'normal', '2019-01-16', 'OUI', 'pas retirée', NULL), (18, 2, 25, 20190106, '2019-01-14', '<NAME>', 'Normal', '2019-01-15', 'OUI', 'retirée', '4R&+'), (19, 2, 26, 20190107, '2019-01-14', '<NAME>', 'Normal', '2019-01-15', 'OUI', 'retirée', '4R&+'), (20, 2, 27, 20190108, '2019-01-16', '<NAME>', 'Normal', '2019-01-16', 'OUI', 'pas retirée', '4R&+'), (21, 2, 28, 20190109, '2019-01-16', 'échangeur Sonatel et siège', 's\'est montré très agressif', '2019-01-16', 'OUI', 'pas retirée', '4R&+'), (29, 2, 36, 20190110, '2019-01-22', 'Rond point de Nguinth', 'o', '2019-01-22', 'NON', 'pas retirée', '4R&+'), (30, 2, 37, 20190111, '2019-01-22', 'Rond point de Nguinth', 'N', '2019-01-22', 'NON', 'pas retirée', '4R&+'), (31, 2, 38, 20190112, '2019-01-22', 'Rond point 6', 'j', '2019-01-22', 'NON', 'pas retirée', '4R&+'); -- -------------------------------------------------------- -- -- Structure de la table `commissaire` -- CREATE TABLE `commissaire` ( `id` int(11) NOT NULL, `utilisateurs_id` int(11) NOT NULL, `nomChef` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `prenomChef` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `typeSuperviseur` enum('Superviseur','Superviseur General') COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `commissaire` -- INSERT INTO `commissaire` (`id`, `utilisateurs_id`, `nomChef`, `prenomChef`, `typeSuperviseur`) VALUES (1, 2, 'ndour', 'Assane', 'Superviseur'), (2, 3, 'sow', 'sophie', 'Superviseur'), (3, 6, 'fall', 'commissaire', 'Superviseur'), (4, 9, 'niveau', 'niveau', 'Superviseur General'), (5, 14, 'chefMbour', 'chefMbour', 'Superviseur'); -- -------------------------------------------------------- -- -- Structure de la table `commissariat` -- CREATE TABLE `commissariat` ( `id` int(11) NOT NULL, `commissaire_id` int(11) NOT NULL, `numeroBrigade` int(11) NOT NULL, `nomBrigade` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `zone_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `commissariat` -- INSERT INTO `commissariat` (`id`, `commissaire_id`, `numeroBrigade`, `nomBrigade`, `zone_id`) VALUES (1, 1, 1, 'Pikine', 2), (2, 2, 2, 'Guédiaway', 1), (3, 3, 3, 'Dakar', 3), (4, 5, 4, 'Mbour', 4); -- -------------------------------------------------------- -- -- Structure de la table `conducteur` -- CREATE TABLE `conducteur` ( `id` int(11) NOT NULL, `nomConducteur` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `prenomConducteur` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `numeroTelephone` int(11) NOT NULL, `numeroPermis` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `ncni` int(11) NOT NULL, `numeroCarteGrise` varchar(255) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `conducteur` -- INSERT INTO `conducteur` (`id`, `nomConducteur`, `prenomConducteur`, `numeroTelephone`, `numeroPermis`, `ncni`, `numeroCarteGrise`) VALUES (1, 'teste 2', 'teste 2', 66666, 'teste 2', 0, 'teste 2'), (2, 'Sall', 'Tapha', 1234567, 'HYTF54D', 0, '654RD9'), (3, 'Sow', 'Sophie', 444444444, 'GHYTf5443', 0, 'JUHYG55Z'), (4, 'matar', 'ndiaye', 77777, 'YHF6SF', 0, 'YHFRD7'), (5, 'test7', 'test7', 20, 'test7', 0, 'test7'), (7, 'teste11', 'teste11', 11, 'teste11', 0, 'teste11'), (8, 'teste15', 'teste15', 6666, 'teste15', 0, 'teste15'), (9, 'teste16', 'teste16', 888, 'teste16', 0, 'teste16'), (10, 'teste17', 'teste17', 6666, 'teste17', 0, 'teste17'), (11, 'teste18', 'teste18', 98877, 'teste18', 0, 'teste18'), (12, 'test150', 'test150', 987654, '123467565', 0, '764test150'), (13, 'teste20', 'teste20', 222, '45566', 0, '543D'), (14, 'jjjj', 'jjjj', 10, 'jjj', 0, 'nnnnn'), (15, 'pp', 'ppp', 11, 'ppp', 0, 'ppp'), (16, 'ooooo', 'oooo', 1111111, 'ooooo', 1111111, 'OOOOO'), (22, 'jjjj', 'jjjj', 9999999, '9999999', 9999999, '9999999'), (24, 'ndiaye', 'Matar', 1234567, '1234567', 1234567, '1234567'), (25, 'Matar', 'ndiaye', 12344555, '12344555', 12344555, '12344555'), (26, 'Ndiay', 'Latyr', 965443, '0965443', 965443, '0965443'), (27, 'thioune', 'Cheikh', 917653, '917653', 917653, '917653'), (28, 'diop', 'moussa', 123865, '123865', 123865, '123865'), (36, 'LLL', 'LLLL', 99999, '888', 888, '999'), (37, 'III', 'III', 888, 'IIIKK', 888, 'UUYHg'), (38, 'ooo', 'ooo', 111, '666661', 111, '777777'); -- -------------------------------------------------------- -- -- Structure de la table `infraction` -- CREATE TABLE `infraction` ( `id` int(11) NOT NULL, `nomInfraction` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `typeInfraction` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `amende` int(11) NOT NULL, `attestation_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `infraction` -- INSERT INTO `infraction` (`id`, `nomInfraction`, `typeInfraction`, `amende`, `attestation_id`) VALUES (10, 'test15', 'Pièce', 2500, 7), (11, 'test16', 'Conduite', 3000, 8), (12, 'test16A', 'Pièce', 10000, 8), (13, 'test16B', 'Equipement', 5000, 8), (14, 'test16B', 'Equipement', 5000, 8), (15, 'test16B', 'Equipement', 5000, 8), (16, 'test16B', 'Equipement', 5000, 8), (17, 'Conduite d’un véhicule dépourvu de police d’assurance', 'Pièce', 2500, 1), (18, 'Stationnement perturbateur', 'Pièce', 2500, 2), (19, 'Encombrement de passage cloué', 'Conduite', 5000, 2), (20, 'Défaut de boîte secours', 'Equipement', 2500, 4), (21, 'Défaut de carte de transport', 'Pièce', 3000, 4), (22, 'Surcharge de marchandises', 'Operation', 5000, 5), (23, 'Défaut de feux stop ou feu freins', 'Vehicule', 2500, 6), (24, 'Port de casque non homologué', 'Equipement', 3000, 9), (25, 'Défaut de permis de conduire', 'Pièce', 3000, 10), (26, 'Stationnement sans signalisation appropriée en cas de panne ou de détresse', 'Conduite', 5000, 10), (27, 'Défaut de boîte secours', 'Equipement', 3000, 11), (28, 'Gabarit non-conforme', 'Vehicule', 5000, 11), (29, 'Défaut de présentation de carte grise', 'Pièce', 5000, 12), (30, 'Défaut de présentation de carte grise', 'Equipement', 5000, 14), (31, 'Défaut de présentation de carte grise', 'Equipement', 5000, 14), (32, 'Défaut de carte de transport', 'Immatriculation', 30000, 15), (33, 'Défaut de présentation de carte grise', 'Equipement', 5000, 15), (34, 'Défaut de présentation de carte grise', 'Equipement', 5000, 15), (51, 'Excès de vitesse', 'Conduite', 4000, 16), (52, 'Défaut d’immatriculation', 'Immatriculation', 5000, 16), (53, 'Défaut de présentation de carte grise', 'Pièce', 5000, 17), (54, 'Excès de vitesse', 'Conduite', 4000, 17), (55, 'Défaut de présentation de carte grise', 'Pièce', 5000, 18), (56, 'Circulation à gauche', 'Conduite', 1000, 19), (57, 'Défaut de phare', 'Vehicule', 3500, 20), (58, 'Croisement défectueux', 'Vehicule', 4000, 20), (59, 'Inobservation de feux tricolores', 'Conduite', 2500, 21), (60, 'Défaut d’extincteur pour véhicule', 'Equipement', 5000, 21), (62, 'Défaut de pré signalisation pour les véhicules de 10 tonnes et plus', 'Vehicule', 6000, 30), (72, 'Échappement libre ou bruyant', 'Vehicule', 4000, 30), (73, 'Surcharge de marchandises', 'Operation', 10000, 30), (74, 'Défaut de présentation de carte grise', 'Pièce', 5000, 31); -- -------------------------------------------------------- -- -- Structure de la table `policier` -- CREATE TABLE `policier` ( `id` int(11) NOT NULL, `commissariat_id` int(11) NOT NULL, `utilisateurs_id` int(11) NOT NULL, `nomAgent` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `prenomAgent` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `matriculeDuAgent` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `typeAgent` enum('Agent de circulation','Agent remet piéce','Percepteur') COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `policier` -- INSERT INTO `policier` (`id`, `commissariat_id`, `utilisateurs_id`, `nomAgent`, `prenomAgent`, `matriculeDuAgent`, `typeAgent`) VALUES (1, 1, 4, 'henry', 'henry', '765MH', 'Agent de circulation'), (2, 2, 5, 'yade', 'lamine', '769MH', 'Agent de circulation'), (3, 1, 7, 'teste', 'teste', 'teste', 'Agent de circulation'), (4, 1, 8, 'teste3', 'teste3', 'teste3', 'Percepteur'), (5, 2, 10, 'policier_percepteur', 'policier_percepteur', '987MH', 'Percepteur'), (6, 2, 11, 'gestion_piece', 'gestion_piece', '6754/GF', 'Agent remet piéce'), (7, 1, 12, 'mbodj', 'dame', '7699/GF', 'Agent de circulation'), (8, 3, 13, 'testDakar', 'testDakar', '4567/YH', 'Agent de circulation'), (9, 4, 15, 'mbour_cir', 'mbour_cir', '4512/YH', 'Agent de circulation'), (10, 4, 16, 'mbour_concept', 'mbour_concept', '4569/YH', 'Percepteur'), (11, 4, 17, 'mbour_gesPiece', 'mbour_gesPiece', '2167/YH', 'Agent remet piéce'); -- -------------------------------------------------------- -- -- Structure de la table `test` -- CREATE TABLE `test` ( `id` int(11) NOT NULL, `nom` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `prenom` varchar(255) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Structure de la table `utilisateurs` -- CREATE TABLE `utilisateurs` ( `id` int(11) NOT NULL, `username` varchar(180) COLLATE utf8_unicode_ci NOT NULL, `username_canonical` varchar(180) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(180) COLLATE utf8_unicode_ci NOT NULL, `email_canonical` varchar(180) COLLATE utf8_unicode_ci NOT NULL, `enabled` tinyint(1) NOT NULL, `salt` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `last_login` datetime DEFAULT NULL, `confirmation_token` varchar(180) COLLATE utf8_unicode_ci DEFAULT NULL, `password_requested_at` datetime DEFAULT NULL, `roles` longtext COLLATE utf8_unicode_ci NOT NULL COMMENT '(DC2Type:array)' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `utilisateurs` -- INSERT INTO `utilisateurs` (`id`, `username`, `username_canonical`, `email`, `email_canonical`, `enabled`, `salt`, `password`, `last_login`, `confirmation_token`, `password_requested_at`, `roles`) VALUES (1, 'matar', '<PASSWORD>ar', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$8uHMm1U7BvmzikSnbHubT.Ip.af6yfAVejHXe2QOdSCxQWOJbMHA.', '2019-01-21 12:43:01', NULL, NULL, 'a:1:{i:0;s:10:"ROLE_ADMIN";}'), (2, 'Assane', 'assane', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$cy1ZZELw77mEJ6lVyx6l0OxVPI7Qeq3t3zg2v5twd4qo60zJ7qbPK', '2018-12-13 02:26:58', NULL, NULL, 'a:1:{i:0;s:16:"ROLE_COMMISSAIRE";}'), (3, 'sophie', 'sophie', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$OcxzYhH05Tm7gCS9UyY1Lu0.YSCv/tgh9.0..4UZRCRRpd4igTm.2', '2019-01-16 09:22:14', NULL, NULL, 'a:1:{i:0;s:16:"ROLE_COMMISSAIRE";}'), (4, 'henry', 'henry', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$kKsj3RlI/WWlFdUT5Eb8WOZNgG1OfVI6AWtejgd/HghtWFv9T0Zo2', '2018-10-30 10:15:35', NULL, NULL, 'a:1:{i:0;s:13:"ROLE_POLICIER";}'), (5, 'lamine', 'lamine', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$ane6L/wl9roagQopXvzhiesNZp5L83r97tcrH73kOT9IEw8c3V5lu', '2019-01-22 09:41:31', NULL, NULL, 'a:1:{i:0;s:13:"ROLE_POLICIER";}'), (6, 'commissaire', 'commissaire', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$2Cm00xJH2bRKXf.ApsRL9.waMLL9gy/vca2F8IZEYP6cmjWFLWdGe', NULL, NULL, NULL, 'a:1:{i:0;s:16:"ROLE_COMMISSAIRE";}'), (7, 'teste', 'teste', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$/pomKRygCQbCx71FBo3a1u94nHITTbhnrerwr.B0fOOzWLLuPlPFq', NULL, NULL, NULL, 'a:1:{i:0;s:13:"ROLE_POLICIER";}'), (8, 'teste3', 'teste3', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$WtAqGAe40YeCyMpqgH2I8eIZLkqDWrkYumm8pniYdSkbqufv5R2mO', '2018-10-15 15:51:04', NULL, NULL, 'a:1:{i:0;s:15:"ROLE_PERCEPTEUR";}'), (9, 'niveau', 'niveau', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$49VIZ6tK.BcPm.zkmvae8Oc0UvRgvp/dI7IJwy0BtDEFYvbhBTmPm', '2019-01-16 15:51:50', NULL, NULL, 'a:1:{i:0;s:24:"ROLE_SUPERVISEUR_GENERAL";}'), (10, 'policier_percepteur', 'policier_percepteur', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$GIbXHzhAo0NbQhSD9a6Gw.u9rcRWCT1OONUnNkL3Md3flztUQaDaS', '2019-01-16 15:24:33', NULL, NULL, 'a:1:{i:0;s:15:"ROLE_PERCEPTEUR";}'), (11, 'gestion_piece', 'gestion_piece', 'gestion_<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$HqHE0rdqvWS5HFJ65G5ffO0rt5VS/060sU8H7KT9Nozg22nymJcJK', '2019-01-16 15:37:27', NULL, NULL, 'a:1:{i:0;s:19:"ROLE_REMETTRE_PIECE";}'), (12, 'dame', 'dame', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$sgVMyuMxtSR4mIc/izq8YOkTKuHJN0VsTOJT1KBkGVmDMI3DA9sXC', NULL, NULL, NULL, 'a:1:{i:0;s:13:"ROLE_POLICIER";}'), (13, 'testDakar', 'testdakar', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$l0gq7quNs4O39d5I5TcuvuguBs36K7fIsS11s0.Aepdk/xyHRVrRS', NULL, NULL, NULL, 'a:1:{i:0;s:13:"ROLE_POLICIER";}'), (14, 'chefMbour', 'chefmbour', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$bkDqIrLpCbm404LiKay5DOEzECsSICeR9ZwbQhzJjDhva4gnnesaG', NULL, NULL, NULL, 'a:1:{i:0;s:16:"ROLE_COMMISSAIRE";}'), (15, 'mbour_cir', 'mbour_cir', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$gXtja/PZPSrdiQD/a1t1YeDZPAFjM7g51FwPlI/xJoZeIVxl1CUum', '2019-01-16 10:33:43', NULL, NULL, 'a:1:{i:0;s:13:"ROLE_POLICIER";}'), (16, 'mbour_concept', 'mbour_concept', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$ZZ4GejIBle0gaW0Eq0hb6.1US48AkAATPQQp3U6g0QoU.VY3.KXG.', NULL, NULL, NULL, 'a:1:{i:0;s:15:"ROLE_PERCEPTEUR";}'), (17, 'mbour_gesPiece', 'mbour_gespiece', '<EMAIL>', '<EMAIL>', 1, NULL, '$2y$13$b.ZSwqqzVran9UotGbcvxOoDKuEV.3gthZHTqkLKA4DIGtx.HEWsq', NULL, NULL, NULL, 'a:1:{i:0;s:19:"ROLE_REMETTRE_PIECE";}'); -- -------------------------------------------------------- -- -- Structure de la table `zone` -- CREATE TABLE `zone` ( `id` int(11) NOT NULL, `numeroZone` int(11) NOT NULL, `nomZone` enum('Zone Est','Zone Ouest','Zone Nord','Zone Sud') COLLATE utf8_unicode_ci DEFAULT NULL, `adresseZone` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `chefDeZone` varchar(255) COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Contenu de la table `zone` -- INSERT INTO `zone` (`id`, `numeroZone`, `nomZone`, `adresseZone`, `chefDeZone`) VALUES (1, 1, 'Zone Est', 'Guédiaway/Canada', 'colonel kanté'), (2, 2, 'Zone Ouest', 'Pikine/Thiaroye', 'colonel sall'), (3, 3, 'Zone Sud', 'Dakar/le calerc', 'thiam'), (4, 4, 'Zone Nord', 'Thies/mbour', 'colonel ndao'); -- -- Index pour les tables exportées -- -- -- Index pour la table `attestation` -- ALTER TABLE `attestation` ADD PRIMARY KEY (`id`), ADD KEY `IDX_326EC63F5CFBF120` (`policier_id`), ADD KEY `IDX_326EC63FF16F4AC6` (`conducteur_id`); -- -- Index pour la table `commissaire` -- ALTER TABLE `commissaire` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `UNIQ_AD38CF9D1E969C5` (`utilisateurs_id`); -- -- Index pour la table `commissariat` -- ALTER TABLE `commissariat` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `UNIQ_F87ED495F7EA9D21` (`commissaire_id`), ADD KEY `IDX_F87ED4959F2C3FAB` (`zone_id`); -- -- Index pour la table `conducteur` -- ALTER TABLE `conducteur` ADD PRIMARY KEY (`id`); -- -- Index pour la table `infraction` -- ALTER TABLE `infraction` ADD PRIMARY KEY (`id`), ADD KEY `IDX_C1A458F57EDC5B38` (`attestation_id`); -- -- Index pour la table `policier` -- ALTER TABLE `policier` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `UNIQ_978C8F581E969C5` (`utilisateurs_id`), ADD KEY `IDX_978C8F58CF70E3F3` (`commissariat_id`); -- -- Index pour la table `test` -- ALTER TABLE `test` ADD PRIMARY KEY (`id`); -- -- Index pour la table `utilisateurs` -- ALTER TABLE `utilisateurs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `UNIQ_497B315E92FC23A8` (`username_canonical`), ADD UNIQUE KEY `UNIQ_497B315EA0D96FBF` (`email_canonical`), ADD UNIQUE KEY `UNIQ_497B315EC05FB297` (`confirmation_token`); -- -- Index pour la table `zone` -- ALTER TABLE `zone` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT pour les tables exportées -- -- -- AUTO_INCREMENT pour la table `attestation` -- ALTER TABLE `attestation` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32; -- -- AUTO_INCREMENT pour la table `commissaire` -- ALTER TABLE `commissaire` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT pour la table `commissariat` -- ALTER TABLE `commissariat` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT pour la table `conducteur` -- ALTER TABLE `conducteur` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=39; -- -- AUTO_INCREMENT pour la table `infraction` -- ALTER TABLE `infraction` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=75; -- -- AUTO_INCREMENT pour la table `policier` -- ALTER TABLE `policier` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT pour la table `test` -- ALTER TABLE `test` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT pour la table `utilisateurs` -- ALTER TABLE `utilisateurs` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- AUTO_INCREMENT pour la table `zone` -- ALTER TABLE `zone` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- Contraintes pour les tables exportées -- -- -- Contraintes pour la table `attestation` -- ALTER TABLE `attestation` ADD CONSTRAINT `FK_326EC63F5CFBF120` FOREIGN KEY (`policier_id`) REFERENCES `policier` (`id`), ADD CONSTRAINT `FK_326EC63FF16F4AC6` FOREIGN KEY (`conducteur_id`) REFERENCES `conducteur` (`id`); -- -- Contraintes pour la table `commissaire` -- ALTER TABLE `commissaire` ADD CONSTRAINT `FK_AD38CF9D1E969C5` FOREIGN KEY (`utilisateurs_id`) REFERENCES `utilisateurs` (`id`); -- -- Contraintes pour la table `commissariat` -- ALTER TABLE `commissariat` ADD CONSTRAINT `FK_F87ED4959F2C3FAB` FOREIGN KEY (`zone_id`) REFERENCES `zone` (`id`), ADD CONSTRAINT `FK_F87ED495F7EA9D21` FOREIGN KEY (`commissaire_id`) REFERENCES `commissaire` (`id`); -- -- Contraintes pour la table `infraction` -- ALTER TABLE `infraction` ADD CONSTRAINT `FK_C1A458F57EDC5B38` FOREIGN KEY (`attestation_id`) REFERENCES `attestation` (`id`); -- -- Contraintes pour la table `policier` -- ALTER TABLE `policier` ADD CONSTRAINT `FK_978C8F581E969C5` FOREIGN KEY (`utilisateurs_id`) REFERENCES `utilisateurs` (`id`), ADD CONSTRAINT `FK_978C8F58CF70E3F3` FOREIGN KEY (`commissariat_id`) REFERENCES `commissariat` (`id`); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>1-10 INSERT INTO `test_category`(`id`, `pid`, `name`, `status`) VALUES ('1', '0', '图书', '1'); ('2', '1', '科技','1'); ('3', '2', '计算机','1'); ('4','2', '医学', '1'); ('5', '2', '自然与科学', '1'); ('6', '0', '电脑办公', '1'); ('7','6', '电脑整机', '1'); ('8','7', '笔记本', '1'); ('9', '7','平板电脑','1'); ('10','7', '服务器','1'); ('11','0', '家用电器', '1'); ('12','11', '厨房电器','1'); ('13','12', '电饭锅', '1'); ('14','11', '大家电', '1'); ('15','14', '冰箱', '1');
<reponame>jnware7/Pizza-Restaurant-Relational-DB-Schema-with-CRUD-API CREATE TABLE customer ( customer_id SERIAL , name VARCHAR , address VARCHAR , phone_num VARCHAR , payment_meth TEXT , PRIMARY KEY (customer_id) ); CREATE TABLE card_join ( customer_id INTEGER , card_id INTEGER ); CREATE TABLE orders_join ( customer_id INTEGER , orders_id INTEGER ); CREATE TABLE card ( id SERIAL , card_num VARCHAR , PRIMARY KEY (id) ); CREATE TABLE orders( id SERIAL , orders_date TIMESTAMP , PRIMARY KEY (id) ); CREATE TABLE pizza_data ( pizza_data_id SERIAL , size VARCHAR , type VARCHAR , price DECIMAL , happy_hour BOOLEAN NOT NULL DEFAULT 'False' , PRIMARY KEY (pizza_data_id) ); CREATE TABLE pizza_data_join ( pizza_data_id INTEGER , orders_id INTEGER ); CREATE TABLE ingredients ( id SERIAL , name VARCHAR , price DECIMAL , PRIMARY KEY (id) ); CREATE TABLE ingredients_join ( pizza_data_id INTEGER, ingredients_id INTEGER ); CREATE TABLE drinks ( id SERIAL , description VARCHAR , manufacturer VARCHAR , supplier VARCHAR , price DECIMAL , PRIMARY KEY (id) ); CREATE TABLE drinks_join ( orders_id INTEGER , drink_id INTEGER ); CREATE TABLE preference ( id SERIAL , pizza_data_id INTEGER , PRIMARY KEY (id) ); CREATE TABLE preference_join ( preference_id INTEGER , customer_id INTEGER ); CREATE TABLE user_login ( customer_id INTEGER , user_login_name VARCHAR , password VARCHAR , salt VARCHAR , PRIMARY KEY (customer_id) ); ALTER TABLE card_join ADD FOREIGN KEY (customer_id) REFERENCES customer (customer_id); ALTER TABLE card_join ADD FOREIGN KEY (card_id) REFERENCES card (id); ALTER TABLE orders_join ADD FOREIGN KEY (customer_id) REFERENCES customer (customer_id); ALTER TABLE orders_join ADD FOREIGN KEY (orders_id) REFERENCES orders (id); ALTER TABLE pizza_data ADD FOREIGN KEY (pizza_data_id) REFERENCES pizza_data_join (pizza_data_id); ALTER TABLE pizza_data ADD FOREIGN KEY (pizza_data_id) REFERENCES ingredients_join (pizza_data_id); ALTER TABLE pizza_data_join ADD FOREIGN KEY (orders_id) REFERENCES orders (id); ALTER TABLE pizza_data_join ADD FOREIGN KEY (pizza_data_id) REFERENCES pizza_data (pizza_data_id); ALTER TABLE ingredients_join ADD FOREIGN KEY (ingredients_id) REFERENCES ingredients (id); ALTER TABLE ingredients_join ADD FOREIGN KEY (pizza_data_id) REFERENCES pizza_data (pizza_data_id); ALTER TABLE drinks_join ADD FOREIGN KEY (orders_id) REFERENCES orders (id); ALTER TABLE drinks_join ADD FOREIGN KEY (drink_id) REFERENCES drinks (id); ALTER TABLE preference ADD FOREIGN KEY (pizza_data_id) REFERENCES pizza_data (pizza_data_id); ALTER TABLE preference_join ADD FOREIGN KEY (preference_id) REFERENCES preference (id); ALTER TABLE preference_join ADD FOREIGN KEY (customer_id) REFERENCES customer (customer_id); ALTER TABLE user_login ADD FOREIGN KEY (customer_id) REFERENCES customer (customer_id);
insert into message (id, locale, code, message, tenantId, module, createdby) VALUES (1, 'en_US', 'module.foo_1', 'Registered successfully', 'tenant1', 'default', 0); insert into message (id, locale, code, message, tenantId, module, createdby) VALUES (2, 'en_US', 'module.foo_2', 'Error loading page', 'tenant1', 'default', 0); insert into message (id, locale, code, message, tenantId, module, createdby) VALUES (3, 'en_CA', 'module.foo_1', 'Registration successful', 'tenant1', 'default', 0);
<filename>migration/007_more_decimals.sql -- +migrate Up ALTER TABLE block CHANGE COLUMN difficulty difficulty DOUBLE(50,8) NOT NULL ;
-- file:tsearch.sql ln:152 expect:true SELECT to_tsquery('simple', 'qwe & sKies ')
<reponame>litghost/symbiflow-xc-fasm2bels -- This is the database schema for relating a tile grid to a VPR routing -- graph. -- -- Terms: -- grid - A 2D matrix of tiles -- -- phy_tile - A location with the physical grid. A tile is always of a -- particular tile type. The tile type specifies what wires, pips and -- sites a tile contains. -- -- The physical grid is defined by the underlying hardware, and has -- expliotable regularity. However it is not ideal to place using this -- grid, as there are various empty tiles to match the hardware (e.g. -- VBRK tiles). -- -- tile - A location within the VPR grid. A tile is always of a partial -- tile type. The tile type specifies what wires, pips and -- sites a tile contains. -- -- The VRP grid may have one phy_tile split across two tiles (e.g. -- CLBLL_L) or may combine multiple phy_tile's into one (e.g. INT_L -- into the tile to it's left. -- -- This table contains the information on the grid output to arch.xml. -- -- wires - A partial net within a tile. It may start or end at a site pins -- or a pip, or can connect to wires in other tiles. -- -- pip - Programable interconnect point, connecting two wires within a -- tile. -- -- node - A complete net made of one or more wires. -- -- site - A location within a tile that contains site pins and BELs. -- BELs are not described in this database. -- -- site - Site pins are the connections to/from the site to a wire in a -- tile. A site pin may be associated with one wire in the tile. -- -- graph_node - A VPR type representing either a pb_type IPIN or OPIN or -- a routing wire CHANX or CHANY. -- -- IPIN/OPIN are similiar to site pin. -- CHANX/CHANY are how VPR express routing nodes. -- -- track - A collection of graph_node's that represents one routing node. -- -- graph_edge - A VPR type representing a connection between an IPIN, OPIN, -- CHANX, or CHANY. All graph_edge's require a switch. -- -- switch - See VPR documentation :http://docs.verilogtorouting.org/en/latest/arch/reference/--tag-fpga-device-information-switch_block -- -- This database provides a relational description between the terms above. -- Tile type table, used to track tile_type using a pkey, and provide -- the tile_type_pkey <-> name mapping. CREATE TABLE tile_type( pkey INTEGER PRIMARY KEY, name TEXT ); -- Site type table, used to track site_type using a pkey, and provide -- the site_type_pkey <-> name mapping. CREATE TABLE site_type( pkey INTEGER PRIMARY KEY, name TEXT ); -- Physical tile table, contains type and name of tile and location in the prjxray grid. CREATE TABLE phy_tile( pkey INTEGER PRIMARY KEY, name TEXT, tile_type_pkey INT, grid_x INT, grid_y INT, clock_region_pkey INT, FOREIGN KEY(tile_type_pkey) REFERENCES tile_type(pkey), FOREIGN KEY(clock_region_pkey) REFERENCES clock_region(pkey) ); -- Site pin table, contains names of pins and their direction, along -- with parent site type information. CREATE TABLE site_pin( pkey INTEGER PRIMARY KEY, name TEXT, site_type_pkey INT, direction TEXT, FOREIGN KEY(site_type_pkey) REFERENCES site_type(pkey) ); -- Concreate site instance within tiles. Used to relate connect -- wire_in_tile instead to site_type's, along with providing metadata -- about the site. CREATE TABLE site( pkey INTEGER PRIMARY KEY, name TEXT, x_coord INT, y_coord INT, site_type_pkey INT, tile_type_pkey INT, FOREIGN KEY(site_type_pkey) REFERENCES site_type(pkey), FOREIGN KEY(tile_type_pkey) REFERENCES tile_type(pkey) ); -- Table of tile type wires. This table is the of uninstanced tile type -- wires. Site pins wires will reference their site and site pin rows in -- the site and site_pin tables. -- -- All concrete wire instances will related to a row in this table. CREATE TABLE wire_in_tile( pkey INTEGER PRIMARY KEY, name TEXT, phy_tile_type_pkey INT, tile_type_pkey INT, site_pkey INT, site_pin_pkey INT, FOREIGN KEY(phy_tile_type_pkey) REFERENCES phy_tile_type(pkey), FOREIGN KEY(tile_type_pkey) REFERENCES tile_type(pkey), FOREIGN KEY(site_pkey) REFERENCES site(pkey), FOREIGN KEY(site_pin_pkey) REFERENCES site_pin(pkey) ); -- Table of nodes. Provides the concrete relation for connected wire -- instances. Generally speaking nodes are either routing nodes or a site -- pin node. -- -- Routing nodes will have track_pkey set. -- Site pin nodes will have a site_wire_pkey to the wire that is the wire -- connected to a site pin. CREATE TABLE node( pkey INTEGER PRIMARY KEY, number_pips INT, track_pkey INT, site_wire_pkey INT, classification INT, FOREIGN KEY(track_pkey) REFERENCES track_pkey(pkey), FOREIGN KEY(site_wire_pkey) REFERENCES wire(pkey) ); -- Table of wires. This table is the complete list of all wires in the -- grid. All wires will belong to exactly one node. -- -- Rows will relate back to their parent tile, and generic wire instance. -- -- If the wire is connected to both a site pin and a pip, then -- top_graph_node_pkey, bottom_graph_node_pkey, left_graph_node_pkey, and -- right_graph_node_pkey will be set to the IPIN or OPIN instances, based -- on the pin directions for the tile. -- -- If the wire is a member of a routing node, then graph_node_pkey will be -- set to the graph_node this wire is a member of. -- -- The wire has two columns for tile location. phy_tile_pkey points to the -- physical prjxray tile that contains this wire. The tile_pkey points to the -- VPR tile that contains this wire. -- -- Do note that unless this wire is connected to a IPIN or OPIN, VPR does not -- model exact tile locations for wires. Instead the wire will have been -- lumped into a CHANX or CHANY node. CREATE TABLE wire( pkey INTEGER PRIMARY KEY, node_pkey INT, phy_tile_pkey INT, tile_pkey INT, wire_in_tile_pkey INT, graph_node_pkey INT, top_graph_node_pkey INT, bottom_graph_node_pkey INT, left_graph_node_pkey INT, right_graph_node_pkey INT, site_pin_graph_node_pkey INT, FOREIGN KEY(node_pkey) REFERENCES node(pkey), FOREIGN KEY(phy_tile_pkey) REFERENCES phy_tile(pkey), FOREIGN KEY(tile_pkey) REFERENCES tile(pkey), FOREIGN KEY(wire_in_tile_pkey) REFERENCES wire_in_tile(pkey), FOREIGN KEY(graph_node_pkey) REFERENCES graph_node(pkey), FOREIGN KEY(top_graph_node_pkey) REFERENCES graph_node(pkey), FOREIGN KEY(bottom_graph_node_pkey) REFERENCES graph_node(pkey), FOREIGN KEY(left_graph_node_pkey) REFERENCES graph_node(pkey), FOREIGN KEY(right_graph_node_pkey) REFERENCES graph_node(pkey), FOREIGN KEY(site_pin_graph_node_pkey) REFERENCES graph_node(pkey) );
<filename>XFILES/xdbpm/XDBPM_DATAGUIDE_SEARCH.sql<gh_stars>10-100 /* ================================================ * Oracle XFiles Demonstration. * * Copyright (c) 2014 Oracle and/or its affiliates. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * ================================================ */ set echo on -- -- XDBPM_DATAGUIDE_SEARCH should be created under XDBPM -- alter session set current_schema = XDBPM / create or replace package XDBPM_DATAGUIDE_SEARCH authid CURRENT_USER as function getDataGuideNodeMap(P_TABLE_NAME VARCHAR2, P_COLUMN_NAME VARCHAR2) return XMLTYPE; end; / show errors -- create or replace synonym XDB_DATAGUIDE_SEARCH for XDBPM_DATAGUIDE_SEARCH / grant execute on XDBPM_DATAGUIDE_SEARCH to public / create or replace package body XDBPM_DATAGUIDE_SEARCH as -- function getDataGuideNodeMap(P_TABLE_NAME VARCHAR2, P_COLUMN_NAME VARCHAR2) return XMLTYPE as begin return XMLTYPE('<srch:NodeMap xmlns:srch="http://xmlns.oracle.com/xdb/pm/demo/search"><srch:Element ID="1"><srch:Name>DataGuide</srch:Name><srch:Elements/></srch:Element></srch:NodeMap>'); end; -- end; / show errors /
INSERT INTO Guardian ( guardianId,FirstName,LastName, RelationshipToChild) Values (3,'Jarvis', 'Chandler', 'instructor') INTO CHILD ( childId,LastName,FirstName,CurrentAccountBalance,guardianId) Values (6,'Zandy', 'Davis',12.00,4) INSERT INTO Rewardoptions (RewardoptionId, rewardType, rewardCost, RewardDescription) Values (4,'movie night', 15.00,'Your choice of family night movie!') INSERT INTO redeemedrewards(redeemedRewardsId, redeemedrewardType, redeemedrewardsCost, RewardoptionId,childId) Values (1,'movie night', 15.00, 4, 1)
<reponame>dorukarslan/CryptoMarket_Database<filename>createdb.sql CREATE TABLE public.Users( User_ID int NOT NULL, Full_name varChar(100) NOT NULL, Country varChar(15), Register_Date date NOT NULL, Field varchar(100), PRIMARY KEY(User_ID) ); CREATE TABLE public.Coin( Coin_ID int NOT NULL, Coin_Name varchar(50) NOT NULL, Number_of_users int, Country varchar(15), Protocol varchar(20), PRIMARY KEY(Coin_ID) ); CREATE TABLE public.Wallet( Wallet_ID int NOT NULL, Coin_Code int , User_ID int NOT NULL, Coin_Amount decimal(8,2) , Coin_Price decimal(8,2), Added_date date, PRIMARY KEY(Wallet_ID), CONSTRAINT wallet_fk FOREIGN KEY(User_ID) REFERENCES Users(User_ID), CONSTRAINT wallet_fk2 FOREIGN KEY(Coin_Code) REFERENCES coin(Coin_ID) ); CREATE TABLE public.Mining( Mining_Code int NULL, Coin_Name varChar(50) NOT NULL, Amount int, First_Mine date NOT NULL, User_ID int NOT NULL, PRIMARY KEY (Mining_Code), CONSTRAINT mining_fk FOREIGN KEY(User_ID) REFERENCES Users(User_ID) ); CREATE TABLE public.Market( Coin_ID int NOT NULL, Price_of_coin decimal(7,2) NOT NULL, DailyRate int NOT NULL, Curr_Date date NOT NULL, constraint market_fk FOREIGN KEY (Coin_ID) REFERENCES Coin(Coin_ID) ); CREATE TABLE public.Operations( Op_code int NOT NULL, User_ID int NOT NULL, USDT_Value int NOT NULL, Op_Date date NOT NULL, Coin_Name varChar(50) NOT NULL, Amount_of_Coin int NOT NULL, PRIMARY KEY(Op_code), constraint op_fk FOREIGN KEY(User_ID) REFERENCES Users(User_ID) ); CREATE TABLE public.Personal_Savings( Account_ID int NOT NULL, Asset int NOT NULL, User_ID int NOT NULL, All_Time_Rate int, Cur_Date date NOT NULL, PRIMARY KEY (Account_ID), CONSTRAINT personal_saving_fk FOREIGN KEY(User_ID) REFERENCES Users(User_ID) ); CREATE TABLE Orders( Order_Code int NOT NULL, Coin_Name varChar(50) NOT NULL, Coin_Amount numeric(6,2) NOT NULL, Until_Date date NOT null, Op_Type varChar(4) NOT NULL, Limit_Price numeric(6,2) NOT NULL, User_ID int NOT NULL, PRIMARY KEY (Order_Code), CONSTRAINT order_fk FOREIGN KEY(User_ID) REFERENCES Users(User_ID) ); INSERT INTO users (User_ID,Full_name,Country,Register_Date,Field) values(1,'<NAME>', 'Turkey', '2021-04-20' , 'Engineer'), (2,'<NAME>', 'USA', '2021-05-01' , 'Basketball Player'), (3,'<NAME>','UK','2021-05-10','Singer'), (4,'<NAME>','Turkey','2021-03-12','Engineer'), (5,'<NAME>','Sweeden','2021-01-04','Football Player'), (6,'<NAME>','UK','2021-01-05','Actor'), (7,'<NAME>','Turkey','2021-01-5','Engineer'), (8,'<NAME>','China','2021-02-13','Actor'), (9,'<NAME>','Germany','2021-04-20','Philosopher'), (10,'<NAME>','Turkey','2021-04-20','Entrepreneur'); INSERT INTO users (User_ID,Full_name,Register_Date,Field) values(11, '<NAME>', '2021-05-13','Musician'), (12,'<NAME>','2021-02-20','Director'); INSERT INTO Coin (Coin_ID,Coin_Name,Number_of_users,Country,Protocol) values(1,'TEDUcoin', 5, 'Turkey' , 'Quorum'), (2,'ALGOcoin', 2, 'Japan' , 'Corda') , (3, 'PYTHONcoin', 4, 'USA' , 'Multichain'), (4,'Object-Oriented-coin', 3, 'Canada' , 'HyperLedger'), (5,'BOOLcoin',1, 'Belgium' , 'Quorum'), (6,'PARSEINTcoin',2, 'Italy' , 'Corda'), (7, 'JAVAcoin', 3, 'France' , 'Multichain'), (8,'APPLEcoin', 2, 'USA' , 'HyperLedger'), (9,'BESTcoin', 2, 'Cuba' , 'Multichain'), (10,'ENCAPSULATIONcoin', 2, 'Japan' , 'Corda'), (11,'DODIcoin', 31, 'Turkey' , 'Quorum'); INSERT INTO Market (Coin_ID,Price_of_coin,DailyRate,Curr_Date) values(1, 246,-8,'2021-05-16'), (2,1.24,15,'2021-05-16'), (3,0.31,14,'2021-05-16'), (4,125,2,'2021-05-16'), (5,51,-4 ,'2021-05-16'), (6,21,51,'2021-05-16'), (7,65,1,'2021-05-16'), (8,0.23,50,'2021-05-16'), (9,62,25,'2021-05-16'), (10,1023,-12,'2021-05-16'), (4,110,-4,'2021-05-15'), (5,70,13,'2021-05-15'), (6,52,100,'2021-05-15'), (7,20,-12,'2021-05-15'), (8,0.27,60,'2021-05-15'), (9,70,30,'2021-05-15'), (10,1300,140,'2021-05-15'), (1,250,5,'2021-05-15'), (1,222,7,'2021-05-14'), (1,223,-2,'2021-05-13'), (2,0.5,5,'2021-05-15'), (2,0.7,7,'2021-05-14'), (2,0.9,2,'2021-05-13'), (3,250,-2,'2021-05-15'), (3,222,-4,'2021-05-14'), (3,223,5,'2021-05-13'); INSERT INTO Orders (Order_Code,Until_Date,Coin_Name,Coin_Amount,Op_Type,Limit_Price,user_id) values(10,'2021-04-26','TEDUcoin',12,'buy',500,1), (11,'2021-04-22','JAVAcoin',1,'sell',12,1), (12,'2021-04-20','ALGOcoin',12,'sell',1.10,1), (20,'2021-04-22','Object-Oriented-coin',12,'buy',500,2), (30,'2021-04-25','ENCAPSULATIONcoin',1,'sell',12,3), (31,'2021-04-24','PARSEINTcoin',31,'sell',1.10,3), (40,'2021-04-20','BOOLcoin',12,'sell',21,4), (41,'2021-04-17','PARSEINTcoin',1,'buy',42,4), (42,'2021-04-21','BESTcoin',10,'buy',23,4), (50,'2021-04-20','BOOLcoin',12,'sell',21,5), (51,'2021-04-10','PARSEINTcoin',1,'buy',2,5), (52,'2021-04-22','PYTHONcoin',50,'buy',12,5), (53,'2021-04-30','PYTHONcoin',25,'sell',3,5), (70,'2021-04-5','JAVAcoin',5,'sell',9,7), (71,'2021-04-2','Object-Oriented-coin',12,'sell',7,7), (80,'2021-04-16','ALGOcoin',5,'sell',16,8), (81,'2021-04-29','APPLEcoin',2000,'sell',22,8), (82,'2021-04-25','Object-Oriented-coin',2,'sell',9,8), (60,'2021-04-16','ALGOcoin',5,'sell',16,6), (61,'2021-04-29','APPLEcoin',2000,'sell',22,6), (62,'2021-04-25','Object-Oriented-coin',2,'sell',9,6), (90,'2021-04-16','ALGOcoin',5,'sell',16,9), (91,'2021-04-29','APPLEcoin',2000,'sell',22,9), (92,'2021-04-15','Object-Oriented-coin',2,'sell',9,9), (100,'2021-04-1','ALGOcoin',5,'buy',34,10), (101,'2021-04-9','APPLEcoin',2000,'buy',16,10), (102,'2021-04-5','Object-Oriented-coin',1,'buy',952,10); INSERT INTO Wallet (Wallet_ID ,Coin_Code,User_ID,Coin_Amount,Coin_Price,Added_date) VALUES (10,1,1,1,20,'2021-05-16'), (11,2,1,2,40,'2021-05-16'), (12,4,1,10,1,'2021-05-15'), (13,8,1,40,1,'2021-05-15'), (20,6,2,25,4,'2021-05-16'), (21,7,2,15,1,'2021-05-15'), (22,8,2,40,3,'2021-05-16'), (30,8,3,2,1,'2021-05-16'), (40,10,4,4,12,'2021-05-15'), (41,1,4,1,20,'2021-05-15'), (50,7,5,2,11,'2021-05-15'), (51,1,5,5,33,'2021-05-15'), (60,6,6,3,13,'2021-05-16'), (70,9,7,1,20,'2021-05-16'), (71,3,7,1 ,20,'2021-05-15'), (80,1,8,1,20,'2021-05-16'), (90,6,9,12,11,'2021-05-15'), (100,1,10,4,9,'2021-05-16'), (110,1,11,25,4,'2021-05-16'), (111,3,11,40,3,'2021-05-16'), (112,5,11,4,9,'2021-05-16'); INSERT INTO Mining(Mining_Code,First_Mine,Coin_Name,Amount,User_ID) VALUES (10,'2021-04-13','TEDUcoin',10,1), (11,'2021-04-05','APPLEcoin',500,1), (20,'2021-04-06','TEDUcoin',22,2), (30,'2021-04-12','Object-Oriented-coin',31,3), (40,'2021-04-14','ALGOcoin',52,4), (50,'2021-04-30','TEDUcoin',252,5), (51,'2021-04-02','PARSEINTcoin',10,5), (60,'2021-04-01','PARSEINTcoin',2,6), (70,'2021-04-02','BOOLcoin',1,7), (71,'2021-04-15','TEDUcoin',156,7), (72,'2021-04-02','TEDUcoin',17,7), (73,'2021-04-26','TEDUcoin',62,7), (80,'2021-04-26','PYTHONcoin',54,8), (90,'2021-04-22','PYTHONcoin',61,9), (100,'2021-04-21','BOOLcoin',99,10); INSERT INTO Personal_Savings(Account_ID,Asset,All_Time_Rate,Cur_Date,User_ID) VALUES (10,5783,40,'2021-05-16',1), (20,100,-100,'2021-05-16',2), (30,2325,31,'2021-05-16',3), (40,16721,52,'2021-05-16',4), (50,1102,20,'2021-05-16',5), (60,900,-40,'2021-05-16',6), (70,10,-200,'2021-05-16',7), (80,250000,600,'2021-05-16',8), (90,31320,-18,'2021-05-16',9), (100,622,24,'2021-05-16',10), (11,2123,-5,'2021-04-16',1), (21,245,20,'2021-04-16',2), (31,1215,0,'2021-04-16',3), (41,16751,50,'2021-04-16',4), (51,435,-50,'2021-04-16',5), (61,971,-40,'2021-04-16',6), (71,4,-300,'2021-04-16',7), (81,105125,100,'2021-04-16',8), (91,31522,-15,'2021-04-16',9), (101,504,19,'2021-04-16',10); INSERT INTO Operations(Op_code,Op_Date,Coin_Name,Amount_of_Coin,USDT_Value,User_ID) VALUES (10,'2021-04-22','TEDUcoin',10,50,1), (11,'2021-04-02','JAVAcoin',1,31,1), (12,'2021-04-10','ALGOcoin',156,1.10,1), (20,'2021-04-30','Object-Oriented-coin',12,500,2), (30,'2021-04-25','ENCAPSULATIONcoin',26,26,3), (31,'2021-04-24','PARSEINTcoin',31,1.10,3), (40,'2021-04-20','BOOLcoin',12,21,4), (41,'2021-04-17','PARSEINTcoin',114,42,4), (42,'2021-04-21','BESTcoin',10,20,4), (50,'2021-04-20','BOOLcoin',12,21,5), (51,'2021-04-10','PARSEINTcoin',1,2,5), (52,'2021-04-22','PYTHONcoin',50,12,5), (53,'2021-04-30','PYTHONcoin',25,3,5), (70,'2021-04-05','JAVAcoin',5,9,7), (71,'2021-04-02','Object-Oriented-coin',12,7,7), (80,'2021-04-16','ALGOcoin',5,16,8), (81,'2021-04-29','APPLEcoin',2000,22,8), (82,'2021-04-25','Object-Oriented-coin',2,9,8), (60,'2021-04-16','ALGOcoin',15,56,6), (61,'2021-04-29','APPLEcoin',2000,22,6), (62,'2021-04-25','Object-Oriented-coin',2,9,6), (90,'2021-04-16','ALGOcoin',5,16,9), (91,'2021-04-29','APPLEcoin',2,222,9), (92,'2021-04-13','Object-Oriented-coin',51,72,9), (100,'2021-04-01','ALGOcoin',13,51,10), (101,'2021-04-09','APPLEcoin',2,16,10), (102,'2021-04-05','Object-Oriented-coin',12,900,10); CREATE VIEW usersInfo AS SELECT Full_name, Country, Field, Register_Date FROM users u ; update users set country = 'USA' where user_id = 11; UPDATE usersInfo SET register_date= '2020-12-30' where country = 'China'; delete from usersInfo where country is null; ALTER TABLE coin DROP COLUMN country; /*-----------Wallet---------------------- // DELETE the Marx wallet.*/ delete from wallet where User_ID=9; /* UPTADE the TEDUcoin amount of Doruk.*/ UPDATE wallet set coin_amount =2 where User_ID=1 and coin_code=1; /*-----------Market------------------------ // DELETE DODİCoin from market*/ delete from market where coin_ID=9; /* UPTADE price of TEDUcoin*/ update market set price_of_coin=248 where coin_id =1 and curr_date='2021-05-16'; /*-----------Coin----------------------- // DELETE DODIcoin from coin table.*/ delete from coin where coin_id=11; /*UPTADE TEDUcoins number of users.*/ update coin set Number_of_users=6 where coin_id=1; /*-----------mining---------------------- //Delete the mining data of KARL MARX*/ delete from mining where user_id =9; /*//UPTADE the date of first mine of Doruk */ update mining set first_mine ='2021-5-16' where user_id=1; /*-----------operations---------------------- // Delete KARL MARX opertions.*/ delete from operations where user_id =9; /*//UPTADE the Doruks opertions TEDUcoins usdt_value; */ update operations set usdt_value=48 where user_id=1 and coin_name='TEDUcoin' and op_date ='2021-04-22'; /*-----------orders---------------------- //Delete the KARL MARX orders;*/ delete from orders where user_id =9; /*//UPTADE the Doruks TEDUcoin orders to sell; */ update orders set op_type ='sell' where user_id=1 and coin_name='TEDUcoin' and until_date = '2021-04-26'; /*-----------personal_savings---------------------- //Delete the KARL MARX personal_savings.*/ delete from personal_savings where user_id =9; /*//uptade the Doruks asset;*/ update personal_savings set asset=5700 where user_id=1; /*-----------USER------------------------ //Delete the KARL MARX users data*/ delete from users where user_id =9; /*// Uptade <NAME> country to 'USA'*/ update users set country = 'USA' where user_id = 3;
<reponame>cityofaustin/transportation-vz-data -- -- PostgreSQL database dump -- -- Dumped from database version 10.6 -- Dumped by pg_dump version 10.10 -- Started on 2019-10-15 13:53:40 CDT SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row_security = off; SET default_tablespace = ''; SET default_with_oids = false; -- -- TOC entry 295 (class 1259 OID 2346050) -- Name: atd_txdot__hwy_dsgn_hrt_lkp; Type: TABLE; Schema: public; Owner: atd_vz_data -- CREATE TABLE public.atd_txdot__hwy_dsgn_hrt_lkp ( hwy_dsgn_hrt_id integer NOT NULL, hwy_dsgn_hrt_desc character varying(128), eff_beg_date character varying(32), eff_end_date character varying(32) ); ALTER TABLE public.atd_txdot__hwy_dsgn_hrt_lkp OWNER TO atd_vz_data; -- -- TOC entry 5618 (class 2606 OID 2346608) -- Name: atd_txdot__hwy_dsgn_hrt_lkp atd_txdot__hwy_dsgn_hrt_lkp_pk; Type: CONSTRAINT; Schema: public; Owner: atd_vz_data -- ALTER TABLE ONLY public.atd_txdot__hwy_dsgn_hrt_lkp ADD CONSTRAINT atd_txdot__hwy_dsgn_hrt_lkp_pk PRIMARY KEY (hwy_dsgn_hrt_id); -- Completed on 2019-10-15 13:53:43 CDT -- -- PostgreSQL database dump complete --
<reponame>Swarmops/Swarmops<gh_stars>10-100 ALTER TABLE `ExpenseClaims` CHANGE COLUMN `ExpenseClaimId` `ExpenseClaimId` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT
grant hdb_meta_role to meta_data_user; grant model_priv_role to meta_data_user; alter user meta_data_user default roles connect, hdb_meta_role, model_priv_role; quit;
CREATE SEQUENCE clinic_administrator_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE clinical_center_administrator_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE AUTHORITY_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE clinic_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE patient_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE medical_staff_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE medical_record_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE hospital_room_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE surgery_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE appointments_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE appointment_type_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE drug_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE recipe_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE diagnosis_id_seq START WITH 1 INCREMENT BY 1; CREATE SEQUENCE price_list_id_seq START WITH 1 INCREMENT BY 1; CREATE sequence request_appointments_id_seq START WITH 1 INCREMENT BY 1; INSERT INTO public.clinic (id,address, description, name, pricelist, profit, rating,longitude,lat) VALUES (nextval('clinic_id_seq'),'<NAME> 26, 11129 Beograd', 'Klinika za pulmologiju.', 'Klinika za pulmologiju', 0, 0, 0,44.797860, 20.458775); INSERT INTO public.clinic (id,address, description, name, pricelist, profit, rating,longitude,lat) VALUES (nextval('clinic_id_seq'),'New York, NY 10011', 'Vase zdravlje - nas prioritet', 'NYC Free Clinic', 0, 0, 3,44.797860, 20.458775); INSERT INTO public.clinic (id,address, description, name, pricelist, profit, rating,longitude,lat) VALUES (nextval('clinic_id_seq'),'Pasterova 2, Beograd', 'Klinika', 'Klinika za očne bolesti', 0, 0, 4,44.797860, 20.458775); INSERT INTO public.clinic (id,address, description, name, pricelist, profit, rating,longitude,lat) VALUES (nextval('clinic_id_seq'),'Koste Todorovića 4, 11000 Beograd', 'Klinika za neurohirurgiju', 'Klinka za nerohirurgiju', 0, 0, 4,44.797860, 20.458775); INSERT INTO public.clinic (id,address, description, name, pricelist, profit, rating,longitude,lat) VALUES (nextval('clinic_id_seq'),'Pasterova 2', 'Klinika', 'Klinika za fizikalnu medicinu i rehabilitaciju', 0, 0, 4,44.797860, 20.458775); INSERT INTO public.clinical_center_administrator (id, username, password, email, first_name, last_name, jmbg, address, city, country, mobile_number, first_log, enabled) VALUES (nextval('clinical_center_administrator_id_seq'),'pr', '123', '<EMAIL>', 'Proba1', 'Proba11', '1401998', 'Glavna BB', 'Novi Sad', 'Serbia', '655158545', 1, true); INSERT INTO public.clinic_administrator (id,username, password, email, first_name, last_name, jmbg, address, city, country, mobile_number, clinic_id) VALUES (nextval('clinic_administrator_id_seq'),'cadmin', 'cadmin', '<EMAIL>', 'Proba2', 'Proba22', '354168465', 'Glavna 54', 'Novi Sad', 'Serbia', '0645865455', 1); INSERT INTO public.appointment_type(id,name) VALUES (nextval('appointment_type_id_seq'),'Kardioloski'); INSERT INTO public.medical_staff (id, medical_staff_type, username, password, email, first_name, last_name, jmbg, address, city, country, mobile_number, review, role,pocetak_radnog_vremena,kraj_radnog_vremena) VALUES (nextval('medical_staff_id_seq'),'2', 'nurse', '123', '<EMAIL>', 'Sestra', 'Sestric', '315787', 'B<NAME>ja 103', 'Novi Sad', 'Serbia', '06658651', 2, 'nurse','07:00','14:00'); INSERT INTO public.medical_staff (id,medical_staff_type, username, password, email, first_name, last_name, jmbg, address, city, country, mobile_number, review, role, clinic_id,pocetak_radnog_vremena,kraj_radnog_vremena, appointment_type_id) VALUES (nextval('medical_staff_id_seq'),'1', 'doctor', '123', '<EMAIL>', 'Doktor', 'Doktoric', '6872368', 'Bulevar Kralja Petra I 2', 'Beograd', 'Serbia', '0612645665', 1, 'doctor', 1,'08:00','15:00', 1); INSERT INTO public.hospital_room (name,room_number,clinic_id,version) VALUES ('Glavna',1, 1,0); INSERT INTO public.medical_staff (id,medical_staff_type, username, password, email, first_name, last_name, jmbg, address, city, country, mobile_number, review, role, clinic_id,pocetak_radnog_vremena,kraj_radnog_vremena, appointment_type_id) VALUES (nextval('medical_staff_id_seq'),'1', 'doctorPera', '123', '<EMAIL>', 'Pera', 'Peric', '6566565', '<NAME> 2', 'Novi Sad', 'Serbia', '0612645665', 1, 'doctor', 4,'08:00','15:00', 1); INSERT INTO public.patient (id, address, city, country, email, first_name, jmbg, last_name, mobile_number, password, username, record_id, is_enabled) VALUES (nextval('patient_id_seq'),'Novosadska BB', '<NAME>', 'Serbia', '<EMAIL>', 'Nikola', 1497,'Nikolic', '0640589536', 'niki', 'niki', null, true); INSERT INTO public.medical_record (id, blood_type, diopter, height, weight, patient_id) VALUES (nextval('medical_record_id_seq'),'A', '+2.25', '185', '95',1); INSERT INTO public.appointments (price,id, version, date, description, duration, patient,finished, type, doctor_id, hospital_room_id, medical_record_id, doctor_username,type2_id) VALUES (2000,nextval('appointments_id_seq'),0,'2020-07-05T16:00', 'cold', 2, 'niki', false,'appointment', 2, null, 1, 'doctor',1); INSERT INTO public.request_appointments (price,id,date, description, duration, patient, type,clinic_id) VALUES (2000,nextval('request_appointments_id_seq'),'2020-04-02T10:00', 'opis1', 2, 'petar', 'tip1',1); INSERT INTO public.hospital_room (name,room_number,clinic_id,version) VALUES ('Mala',1, 1,0); INSERT INTO public.request_appointments (price,id,date, description, duration, patient, type,clinic_id) VALUES (2000,nextval('request_appointments_id_seq'),'2020-04-02T10:00', 'opis1', 2, 'petar', 'tip1',1); INSERT INTO public.clinic_doctors(clinic_id, doctors_id) VALUES (1,2); INSERT INTO public.clinic_doctors(clinic_id, doctors_id) VALUES (4,3); INSERT INTO clinic_hospital_rooms(clinic_id, hospital_rooms_id) VALUES (1,1); INSERT INTO public.appointments (id,price,version, date, description, duration, type, finished, doctor_id, hospital_room_id, doctor_username) VALUES (nextval('patient_id_seq'),200,0,'2020-08-20T12:00', 'Kontrola', 2, 'tip9', false, 2, 1, 'Jovana'); INSERT INTO hospital_room_appointments(hospital_room_id, appointments_id) VALUES (1,2); INSERT INTO medical_staff_appointments(doctor_id, appointments_id) VALUES(2, 2); UPDATE public.patient SET record_id = 1 where id = 1;
<reponame>omer-seran/sblinux -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Anamakine: localhost:3306 -- Üretim Zamanı: 15 Ara 2018, 17:50:04 -- Sunucu sürümü: 10.1.31-MariaDB-cll-lve -- PHP Sürümü: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Veritabanı: `zphkctaz_ana` -- -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `chat` -- CREATE TABLE `chat` ( `id` int(100) NOT NULL, `mesaj` varchar(500) CHARACTER SET utf8 COLLATE utf8_turkish_ci NOT NULL, `ip` varchar(100) NOT NULL, `tarih` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `ipler` -- CREATE TABLE `ipler` ( `id` int(100) NOT NULL, `ip` varchar(100) NOT NULL, `suspend` varchar(100) NOT NULL, `tarih` text NOT NULL, `tur` varchar(100) CHARACTER SET utf8 COLLATE utf8_turkish_ci NOT NULL DEFAULT 'kisisel' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Tablo döküm verisi `ipler` -- INSERT INTO `ipler` (`id`, `ip`, `suspend`, `tarih`, `tur`) VALUES (10, '172.16.58.3', '0', '12/09/2018 - 16:51:45', 'kisisel'), (17, '172.16.31.10', '0', '12/09/2018 - 18:41:03', 'kisisel'), (18, '172.16.31.10', '0', '12/09/2018 - 18:41:59', 'kisisel'), (19, '172.16.31.10', '0', '12/09/2018 - 19:02:42', 'kisisel'), (21, '172.16.31.10', '0', '12/09/2018 - 20:55:52', 'kisisel'), (34, '192.168.3.11', '0', '13/09/2018 - 08:12:19', 'kisisel'), (35, '192.168.127.12', '0', '13/09/2018 - 09:20:06', 'kisisel'), (36, '172.16.58.3', '0', '13/09/2018 - 10:02:45', 'kisisel'), (38, 'a', '0', '13/09/2018 - 10:32:10', 'kisisel'), (41, '172.16.17.32', '0', '13/09/2018 - 10:41:37', 'kisisel'), (44, '172.16.58.3', '0', '13/09/2018 - 10:50:46', 'kisisel'), (45, '172.16.31.10', '0', '13/09/2018 - 10:56:47', 'kisisel'), (46, '172.16.17.32', '0', '13/09/2018 - 11:12:04', 'kisisel'), (49, '192.168.3.11', '0', '12/09/2018 - 16:51:45', 'kisisel'), (51, '172.16.58.3', '0', '13/09/2018 - 14:33:21', 'kisisel'), (52, '172.16.31.10', '0', '13/09/2018 - 15:04:54', 'kisisel'), (54, '172.16.31.10', '0', '13/09/2018 - 15:37:36', 'kisisel'), (55, '172.16.58.3', '0', '13/09/2018 - 16:16:41', 'kisisel'), (56, '172.16.58.3', '0', '13/09/2018 - 17:34:34', 'kisisel'), (57, '31.31.3131.31.31', '0', '13/09/2018 - 18:36:24', 'kisisel'), (61, '192.168.127.12 ', '0', '13/09/2018 - 21:25:55', 'kisisel'), (63, '192.168.3.11', '0', '13/09/2018 - 22:22:25', 'kisisel'), (65, 'Ruling.ekibi.work', '0', '13/09/2018 - 22:53:42', 'kisisel'), (66, 'asdfasdF', '0', '13/09/2018 - 23:21:00', 'kisisel'), (68, '172.16.58.3:22112', '0', '13/09/2018 - 23:23:37', 'kisisel'), (69, '172.16.17.32', '0', '14/09/2018 - 08:22:51', 'kisisel'), (70, '172.16.58.3', '0', '14/09/2018 - 08:34:11', 'kisisel'), (71, '172.16.17.32', '0', '14/09/2018 - 09:01:14', 'kisisel'), (72, '192.168.3.11', '0', '14/09/2018 - 10:07:09', 'kisisel'), (73, '172.16.17.32', '0', '14/09/2018 - 10:44:06', 'kisisel'), (77, '192.168.127.12', '0', '14/09/2018 - 14:57:18', 'kisisel'), (78, '172.16.58.3', '0', '14/09/2018 - 15:15:30', 'kisisel'), (79, '172.16.58.3', '0', '14/09/2018 - 15:17:35', 'kisisel'), (80, '172.16.58.3', '0', '14/09/2018 - 19:42:16', 'kisisel'), (82, '172.16.58.3', '0', '14/09/2018 - 20:21:55', 'kisisel'), (83, '192.168.127.12', '0', '15/09/2018 - 09:45:11', 'kisisel'), (85, '172.16.58.3', '0', '15/09/2018 - 11:42:54', 'kisisel'), (86, '172.16.58.3', '0', '15/09/2018 - 11:57:48', 'kisisel'), (87, '172.16.17.32', '0', '15/09/2018 - 14:27:57', 'kisisel'), (89, '192.168.127.12:10086', '0', '15/09/2018 - 14:34:15', 'kisisel'), (91, '192.168.127.12', '0', '15/09/2018 - 18:06:30', 'kisisel'), (94, '192.168.127.12', '0', '16/09/2018 - 10:13:35', 'kisisel'), (95, '192.168.127.12', '0', '16/09/2018 - 10:19:37', 'kisisel'), (97, '172.16.58.3', '0', '16/09/2018 - 12:02:11', 'kisisel'), (98, '192.168.3.11', '0', '16/09/2018 - 14:34:35', 'kisisel'), (99, '172.16.17.32', '0', '16/09/2018 - 18:00:24', 'kisisel'), (101, 'http://172.16.17.32', '0', '16/09/2018 - 18:29:28', 'kisisel'), (102, '172.16.17.32', '0', '16/09/2018 - 18:29:35', 'kisisel'), (103, '172.16.31.10', '0', '16/09/2018 - 19:49:39', 'kisisel'), (104, '172.16.31.10', '0', '17/09/2018 - 14:11:30', 'kisisel'), (105, '172.16.31.10', '0', '17/09/2018 - 17:52:39', 'kisisel'), (107, '192.168.127.12', '0', '17/09/2018 - 21:13:51', 'kisisel'), (108, 'legend123', '0', '17/09/2018 - 22:12:44', 'kisisel'), (109, '192.168.3.11', '0', '18/09/2018 - 09:51:18', 'kisisel'), (110, '192.168.3.11', '0', '18/09/2018 - 11:02:12', 'kisisel'), (111, '192.168.127.12', '0', '18/09/2018 - 11:14:05', 'kisisel'), (112, '172.16.58.3', '0', '18/09/2018 - 16:27:30', 'kisisel'), (113, '172.16.17.32', '0', '18/09/2018 - 16:42:19', 'kisisel'), (114, '192.168.127.12 ', '0', '18/09/2018 - 17:12:52', 'kisisel'), (115, '192.168.3.11', '0', '18/09/2018 - 18:44:33', 'kisisel'), (116, '172.16.17.32', '0', '20/09/2018 - 09:44:06', 'kisisel'), (117, '172.16.58.3', '0', '20/09/2018 - 09:46:57', 'kisisel'), (118, '172.16.17.32', '0', '20/09/2018 - 12:05:49', 'kisisel'), (120, '192.168.127.12', '0', '20/09/2018 - 14:13:22', 'kisisel'), (121, '192.168.127.12', '0', '20/09/2018 - 14:27:12', 'kisisel'), (126, '192.168.3.11', '0', '21/09/2018 - 14:56:09', 'kisisel'), (128, '172.16.58.3', '0', '22/09/2018 - 07:10:43', 'kisisel'), (129, '192.168.3.11', '0', '22/09/2018 - 11:27:07', 'kisisel'), (132, '192.168.127.12', '0', '22/09/2018 - 12:50:06', 'kisisel'), (134, '192.168.3.11:9072', '0', '22/09/2018 - 13:26:43', 'kisisel'), (136, 'ts3.amaciolmayantayfa.com', '0', '22/09/2018 - 15:53:13', 'kisisel'), (137, '192.168.3.11', '0', '22/09/2018 - 15:54:30', 'kisisel'), (138, '172.16.17.32', '0', '22/09/2018 - 16:15:34', 'kisisel'), (139, '172.16.17.32', '0', '22/09/2018 - 20:14:25', 'kisisel'), (144, '172.16.58.3', '0', '23/09/2018 - 04:24:21', 'kisisel'), (146, '172.16.58.3', '0', '23/09/2018 - 12:51:33', 'kisisel'), (150, '172.16.58.3', '0', '23/09/2018 - 14:25:00', 'kisisel'), (151, '172.16.17.32', '0', '23/09/2018 - 17:09:47', 'kisisel'), (154, '192.168.127.12', '0', '23/09/2018 - 18:08:14', 'kisisel'), (156, '172.16.58.3', '0', '24/09/2018 - 09:04:15', 'kisisel'), (157, '172.16.31.10', '0', '24/09/2018 - 11:31:13', 'kisisel'), (158, '172.16.17.32', '0', '24/09/2018 - 14:40:59', 'kisisel'), (159, '172.16.58.3', '0', '24/09/2018 - 14:47:41', 'kisisel'), (160, 'rampagebilisimsinus-rampagebilisim611383.codeanyapp.com', '0', '24/09/2018 - 14:59:21', 'kisisel'), (161, '172.16.31.10', '0', '24/09/2018 - 14:59:38', 'kisisel'), (165, 'http://172.16.58.3', '0', '24/09/2018 - 15:16:04', 'kisisel'), (166, '172.16.58.3/play/files', '0', '24/09/2018 - 15:16:13', 'kisisel'), (167, '172.16.58.3/', '0', '24/09/2018 - 15:16:33', 'kisisel'), (169, '172.16.17.32', '0', '24/09/2018 - 16:42:08', 'kisisel'), (170, '172.16.58.3', '0', '24/09/2018 - 17:26:52', 'kisisel'), (171, '192.168.3.11', '0', '24/09/2018 - 18:52:31', 'kisisel'), (178, '172.16.17.32', '0', '25/09/2018 - 11:22:27', 'kisisel'), (180, ' 172.16.58.3', '0', '25/09/2018 - 14:58:57', 'kisisel'), (181, '172.16.58.3', '0', '25/09/2018 - 14:59:33', 'kisisel'), (184, 'We\'re reviewing your account Your account is under review and you will shortly receive an email from', '0', '25/09/2018 - 16:37:30', 'kisisel'), (185, '172.16.17.32473', '0', '25/09/2018 - 16:53:07', 'kisisel'), (186, '192.168.3.11', '0', '25/09/2018 - 16:53:24', 'kisisel'), (188, '172.16.58.3:22', '0', '25/09/2018 - 17:04:47', 'kisisel'), (190, '172.16.58.3:9980', '0', '25/09/2018 - 17:12:52', 'kisisel'), (191, '192.168.3.11', '0', '25/09/2018 - 17:20:57', 'kisisel'), (192, '172.16.17.32', '0', '12/09/2018 - 16:51:45', 'kisisel'), (194, '192.168.127.12', '0', '12/09/2018 - 16:51:45', 'kisisel'), (195, '192.168.3.11', '0', '25/09/2018 - 20:06:23', 'kisisel'), (196, '172.16.17.32', '0', '25/09/2018 - 21:18:02', 'kisisel'), (198, '192.168.3.11', '0', '26/09/2018 - 15:25:25', 'kisisel'), (200, '192.168.127.12', '0', '26/09/2018 - 16:28:02', 'kisisel'), (201, '172.16.31.10', '0', '26/09/2018 - 16:43:05', 'kisisel'), (202, '192.168.127.12', '0', '26/09/2018 - 17:09:25', 'kisisel'), (207, '192.168.127.12', '0', '27/09/2018 - 11:21:57', 'kisisel'), (208, '192.168.3.11', '0', '27/09/2018 - 14:37:29', 'kisisel'), (210, '192.168.3.11', '0', '27/09/2018 - 14:48:01', 'kisisel'), (213, '192.168.3.11', '0', '28/09/2018 - 11:45:59', 'kisisel'), (215, '172.16.58.3', '0', '28/09/2018 - 15:02:00', 'kisisel'), (217, '172.16.31.10', '0', '28/09/2018 - 15:05:56', 'kisisel'), (218, 'fbbii.ts.io', '0', '28/09/2018 - 16:53:26', 'kisisel'), (219, '172.16.58.3', '0', '28/09/2018 - 18:27:40', 'kisisel'), (220, '172.16.58.3', '0', '28/09/2018 - 18:27:47', 'kisisel'), (221, '172.16.58.3', '0', '28/09/2018 - 19:35:28', 'kisisel'), (222, '172.16.31.10', '0', '28/09/2018 - 19:38:20', 'kisisel'), (224, '172.16.58.3', '0', '28/09/2018 - 20:21:00', 'kisisel'), (225, '192.168.3.11', '0', '28/09/2018 - 21:13:14', 'kisisel'), (227, '192.168.3.11', '0', '28/09/2018 - 22:28:05', 'kisisel'), (230, '192.168.3.11', '0', '29/09/2018 - 08:38:05', 'kisisel'), (231, '192.168.127.12', '0', '29/09/2018 - 09:36:09', 'kisisel'), (232, '192.168.3.11', '0', '29/09/2018 - 10:45:45', 'kisisel'), (233, '172.16.31.10', '0', '29/09/2018 - 10:52:12', 'kisisel'), (234, '172.16.58.3', '0', '29/09/2018 - 11:44:01', 'kisisel'), (237, '172.16.31.10', '0', '29/09/2018 - 15:54:21', 'kisisel'), (239, '172.16.17.32', '0', '29/09/2018 - 19:34:20', 'kisisel'), (241, '172.16.17.32', '0', '29/09/2018 - 20:17:40', 'kisisel'), (242, '172.16.31.10', '0', '29/09/2018 - 20:26:12', 'kisisel'), (243, '192.168.127.12', '0', '29/09/2018 - 22:23:49', 'kisisel'), (245, '172.16.31.10', '0', '30/09/2018 - 07:07:21', 'kisisel'), (247, '172.16.17.32', '0', '30/09/2018 - 07:27:28', 'kisisel'), (248, '172.16.58.3', '0', '30/09/2018 - 10:51:21', 'kisisel'), (249, '192.168.127.12', '0', '30/09/2018 - 16:21:01', 'kisisel'), (251, '172.16.58.3', '0', '30/09/2018 - 19:09:35', 'kisisel'), (252, '172.16.31.10', '0', '30/09/2018 - 19:09:42', 'kisisel'), (253, '192.168.127.12', '0', '30/09/2018 - 19:09:49', 'kisisel'), (254, '172.16.17.32', '0', '30/09/2018 - 19:09:54', 'kisisel'), (255, '172.16.17.32', '0', '30/09/2018 - 19:10:01', 'kisisel'), (256, '192.168.3.11', '0', '30/09/2018 - 19:10:10', 'kisisel'), (257, '172.16.58.3', '0', '30/09/2018 - 19:10:17', 'kisisel'), (258, '172.16.31.10', '0', '30/09/2018 - 19:25:41', 'kisisel'), (259, '172.16.17.32', '0', '30/09/2018 - 19:34:49', 'kisisel'), (260, '172.16.17.32', '0', '30/09/2018 - 19:37:15', 'kisisel'), (261, '172.16.58.3', '0', '30/09/2018 - 19:39:50', 'kisisel'), (262, '172.16.17.32', '0', '30/09/2018 - 19:52:10', 'kisisel'), (263, '172.16.58.3', '0', '30/09/2018 - 22:16:07', 'kisisel'), (265, 'ts.scryptfamily.ml:10008', '0', '01/10/2018 - 00:17:11', 'kisisel'), (266, '172.16.17.32', '0', '01/10/2018 - 16:42:51', 'kisisel'), (267, '172.16.58.3', '0', '01/10/2018 - 17:40:44', 'kisisel'), (268, '172.16.17.32', '0', '01/10/2018 - 19:52:07', 'kisisel'), (269, '192.168.127.12', '0', '01/10/2018 - 20:54:43', 'kisisel'), (270, '172.16.17.32', '0', '01/10/2018 - 21:24:48', 'kisisel'), (271, '172.16.17.32', '0', '02/10/2018 - 13:38:50', 'kisisel'), (272, '172.16.58.3', '0', '02/10/2018 - 17:52:31', 'kisisel'), (273, '192.168.3.11', '0', '02/10/2018 - 20:15:48', 'kisisel'), (275, '172.16.58.3', '0', '03/10/2018 - 14:54:19', 'kisisel'), (276, '172.16.31.10', '0', '03/10/2018 - 15:00:20', 'kisisel'), (280, '172.16.58.3', '0', '03/10/2018 - 17:45:06', 'kisisel'), (281, '172.16.31.10', '0', '03/10/2018 - 19:08:41', 'kisisel'), (282, '172.16.17.32', '0', '03/10/2018 - 19:49:33', 'kisisel'), (283, '192.168.3.11', '0', '03/10/2018 - 20:44:27', 'kisisel'), (284, '172.16.17.32', '0', '04/10/2018 - 12:34:04', 'kisisel'), (285, '172.16.58.3', '0', '04/10/2018 - 14:58:50', 'kisisel'), (286, '192.168.127.12', '0', '04/10/2018 - 15:37:32', 'kisisel'), (287, '192.168.127.12', '0', '04/10/2018 - 16:42:22', 'kisisel'), (288, '172.16.58.3', '0', '04/10/2018 - 18:06:13', 'kisisel'), (289, ' 192.168.3.11', '0', '04/10/2018 - 18:20:16', 'kisisel'), (290, '172.16.58.3', '0', '05/10/2018 - 15:33:49', 'kisisel'), (292, '172.16.17.32', '0', '05/10/2018 - 17:22:19', 'kisisel'), (293, '172.16.58.3', '0', '05/10/2018 - 18:00:59', 'kisisel'), (294, '192.168.3.11', '0', '24/10/2018 - 20:32:02', 'kisisel'), (295, '192.168.127.12', '0', '24/10/2018 - 20:42:43', 'kisisel'), (296, '192.168.127.12', '0', '24/10/2018 - 20:47:55', 'kisisel'), (297, '192.168.3.11', '0', '24/10/2018 - 20:48:59', 'kisisel'), (298, '172.16.58.3', '0', '24/10/2018 - 22:04:06', 'kisisel'), (299, '172.16.17.32', '0', '24/10/2018 - 22:35:26', 'kisisel'), (300, '192.168.3.11', '0', '24/10/2018 - 22:43:22', 'kisisel'), (301, '172.16.17.32', '0', '24/10/2018 - 23:32:11', 'kisisel'), (302, '192.168.3.11', '0', '24/10/2018 - 23:40:53', 'kisisel'), (303, '192.168.3.11', '0', '25/10/2018 - 00:00:12', 'kisisel'), (304, '192.168.3.11', '0', '25/10/2018 - 00:09:17', 'kisisel'), (305, '192.168.3.11', '0', '25/10/2018 - 00:13:15', 'kisisel'), (306, '172.16.58.3', '0', '25/10/2018 - 12:13:08', 'kisisel'), (307, '172.16.31.10', '0', '25/10/2018 - 15:07:22', 'kisisel'), (308, '172.16.17.32', '0', '25/10/2018 - 16:02:24', 'kisisel'), (309, '127.0.0.1', '0', '25/10/2018 - 16:39:26', 'kisisel'), (310, '172.16.58.3', '0', '25/10/2018 - 17:30:05', 'kisisel'), (311, '172.16.58.3', '0', '25/10/2018 - 18:01:45', 'kisisel'), (312, '172.16.58.3', '0', '25/10/2018 - 18:19:39', 'kisisel'), (313, '192.168.127.12', '0', '25/10/2018 - 18:32:06', 'kisisel'), (314, '172.16.17.32', '0', '25/10/2018 - 19:14:26', 'kisisel'), (315, '172.16.31.10', '0', '25/10/2018 - 19:17:31', 'kisisel'), (316, '172.16.31.10', '0', '25/10/2018 - 20:20:09', 'kisisel'), (317, '172.16.58.3', '0', '25/10/2018 - 20:25:29', 'kisisel'), (318, '192.168.127.12', '0', '25/10/2018 - 22:18:54', 'kisisel'), (319, '172.16.17.32', '0', '25/10/2018 - 22:48:56', 'kisisel'), (320, '172.16.31.10', '0', '26/10/2018 - 01:13:01', 'kisisel'), (321, '192.168.3.11', '0', '26/10/2018 - 12:42:57', 'kisisel'), (322, '192.168.127.12', '0', '26/10/2018 - 13:33:35', 'kisisel'), (323, '192.168.3.11', '0', '26/10/2018 - 14:26:42', 'kisisel'), (324, '172.16.58.3', '0', '26/10/2018 - 14:46:29', 'kisisel'), (325, '172.16.58.3', '0', '26/10/2018 - 14:46:32', 'kisisel'), (326, '192.168.127.12', '0', '26/10/2018 - 15:25:23', 'kisisel'), (327, '172.16.31.10', '0', '26/10/2018 - 16:15:15', 'kisisel'), (328, '172.16.31.10', '0', '26/10/2018 - 16:51:50', 'kisisel'), (329, '172.16.17.32', '0', '26/10/2018 - 17:48:03', 'kisisel'), (330, '172.16.58.3', '0', '26/10/2018 - 19:34:57', 'kisisel'), (331, '192.168.3.11', '0', '26/10/2018 - 19:40:56', 'kisisel'), (332, '172.16.17.32', '0', '26/10/2018 - 19:47:28', 'kisisel'), (333, '192.168.3.11', '0', '26/10/2018 - 20:23:25', 'kisisel'), (334, '172.16.17.32', '0', '26/10/2018 - 20:34:08', 'kisisel'), (335, '192.168.3.11', '0', '26/10/2018 - 20:46:32', 'kisisel'), (336, '172.16.58.3', '0', '26/10/2018 - 21:57:31', 'kisisel'), (337, '172.16.31.10', '0', '26/10/2018 - 22:39:46', 'kisisel'), (338, '192.168.127.12', '0', '27/10/2018 - 00:42:39', 'kisisel'), (339, '192.168.127.12', '0', '27/10/2018 - 01:08:39', 'kisisel'), (340, '192.168.127.12', '0', '27/10/2018 - 01:17:36', 'kisisel'), (341, '192.168.127.12', '0', '27/10/2018 - 09:50:24', 'kisisel'), (342, '172.16.31.10', '0', '27/10/2018 - 11:33:27', 'kisisel'), (343, '172.16.31.10', '0', '27/10/2018 - 12:43:17', 'kisisel'), (344, '172.16.58.3', '0', '27/10/2018 - 13:40:32', 'kisisel'), (345, '192.168.127.12', '0', '27/10/2018 - 14:37:00', 'kisisel'), (346, '172.16.58.3', '0', '27/10/2018 - 14:39:36', 'kisisel'), (347, '192.168.3.11', '0', '27/10/2018 - 15:49:16', 'kisisel'), (348, '192.168.127.12', '0', '27/10/2018 - 17:18:41', 'kisisel'), (349, '172.16.17.32', '0', '27/10/2018 - 17:20:03', 'kisisel'), (350, '172.16.17.32', '0', '27/10/2018 - 17:25:32', 'kisisel'), (351, '192.168.3.11', '0', '27/10/2018 - 18:20:21', 'kisisel'), (352, '192.168.3.11', '0', '27/10/2018 - 19:52:35', 'kisisel'), (353, '172.16.31.10', '0', '27/10/2018 - 20:23:02', 'kisisel'), (354, '192.168.127.12', '0', '27/10/2018 - 20:23:05', 'kisisel'), (355, '192.168.3.11', '0', '27/10/2018 - 20:42:09', 'kisisel'), (356, '192.168.3.11', '0', '27/10/2018 - 22:45:24', 'kisisel'), (357, '172.16.17.32', '0', '27/10/2018 - 23:01:33', 'kisisel'), (358, '192.168.3.11', '0', '27/10/2018 - 23:09:37', 'kisisel'), (359, '172.16.17.32', '0', '27/10/2018 - 23:50:12', 'kisisel'), (360, '172.16.58.3', '0', '28/10/2018 - 00:06:43', 'kisisel'), (361, '192.168.127.12', '0', '28/10/2018 - 00:57:24', 'kisisel'), (362, '172.16.17.32', '0', '28/10/2018 - 01:10:53', 'kisisel'), (363, '172.16.31.10', '0', '28/10/2018 - 09:04:04', 'kisisel'), (364, '172.16.58.3', '0', '28/10/2018 - 10:23:06', 'kisisel'), (365, '172.16.58.3', '0', '28/10/2018 - 11:03:47', 'kisisel'), (366, '192.168.127.12', '0', '28/10/2018 - 12:40:14', 'kisisel'), (367, '172.16.31.10', '0', '28/10/2018 - 12:48:25', 'kisisel'), (368, '172.16.17.32', '0', '28/10/2018 - 13:36:15', 'kisisel'), (369, '172.16.58.3', '0', '28/10/2018 - 15:15:05', 'kisisel'), (370, '192.168.3.11', '0', '28/10/2018 - 15:40:16', 'kisisel'), (371, '172.16.17.32', '0', '28/10/2018 - 16:00:39', 'kisisel'), (372, '192.168.127.12', '0', '28/10/2018 - 17:25:42', 'kisisel'), (373, '172.16.31.10', '0', '28/10/2018 - 18:14:13', 'kisisel'), (374, '172.16.17.32', '0', '28/10/2018 - 18:18:56', 'kisisel'), (375, '172.16.58.3', '0', '28/10/2018 - 18:36:00', 'kisisel'), (376, '192.168.3.11', '0', '28/10/2018 - 18:38:53', 'kisisel'), (377, '192.168.127.12', '0', '28/10/2018 - 18:49:56', 'kisisel'), (378, '172.16.58.3', '0', '28/10/2018 - 18:56:40', 'kisisel'), (379, '172.16.17.32', '0', '28/10/2018 - 19:05:46', 'kisisel'), (380, '192.168.3.11', '0', '28/10/2018 - 19:48:25', 'kisisel'), (381, '172.16.17.32', '0', '28/10/2018 - 20:17:26', 'kisisel'), (382, '192.168.3.11', '0', '28/10/2018 - 20:29:25', 'kisisel'), (383, '192.168.127.12', '0', '28/10/2018 - 21:35:47', 'kisisel'), (384, '172.16.17.32', '0', '29/10/2018 - 01:32:29', 'kisisel'), (385, '192.168.127.12', '0', '29/10/2018 - 02:22:25', 'kisisel'), (386, '192.168.3.11', '0', '29/10/2018 - 03:11:25', 'kisisel'), (387, '192.168.3.11', '0', '29/10/2018 - 07:29:09', 'kisisel'), (388, '192.168.3.11', '0', '29/10/2018 - 07:31:57', 'kisisel'), (389, '172.16.17.32', '0', '29/10/2018 - 07:49:00', 'kisisel'), (390, '192.168.3.11', '0', '29/10/2018 - 08:55:15', 'kisisel'), (391, '192.168.127.12', '0', '29/10/2018 - 10:16:11', 'kisisel'), (392, '172.16.58.3', '0', '29/10/2018 - 11:37:17', 'kisisel'), (393, '192.168.127.12', '0', '29/10/2018 - 11:48:57', 'kisisel'), (394, '172.16.17.32', '0', '29/10/2018 - 12:29:14', 'kisisel'), (395, '172.16.31.10', '0', '29/10/2018 - 13:04:46', 'kisisel'), (396, '192.168.3.11', '0', '29/10/2018 - 13:16:53', 'kisisel'), (397, '192.168.127.12', '0', '29/10/2018 - 13:40:52', 'kisisel'), (398, '172.16.17.32', '0', '29/10/2018 - 13:58:57', 'kisisel'), (399, '172.16.58.3', '0', '29/10/2018 - 14:00:05', 'kisisel'), (400, '172.16.17.32', '0', '29/10/2018 - 14:20:33', 'kisisel'), (401, '192.168.127.12', '0', '29/10/2018 - 14:45:40', 'kisisel'), (402, '192.168.3.11', '0', '29/10/2018 - 19:03:47', 'kisisel'), (403, '192.168.3.11', '0', '29/10/2018 - 19:16:32', 'kisisel'), (404, '192.168.3.11', '0', '29/10/2018 - 20:50:38', 'kisisel'), (405, '192.168.3.11', '0', '29/10/2018 - 20:50:59', 'kisisel'), (406, '192.168.127.12', '0', '29/10/2018 - 21:04:12', 'kisisel'), (407, '192.168.3.11', '0', '29/10/2018 - 22:29:55', 'kisisel'), (408, '192.168.127.12', '0', '30/10/2018 - 03:05:51', 'kisisel'), (409, '172.16.17.32', '0', '30/10/2018 - 14:41:03', 'kisisel'), (410, '192.168.3.11', '0', '30/10/2018 - 15:28:29', 'kisisel'), (411, '192.168.127.12', '0', '30/10/2018 - 16:46:30', 'kisisel'), (412, '172.16.58.3', '0', '30/10/2018 - 18:45:52', 'kisisel'), (413, '192.168.127.12', '0', '30/10/2018 - 19:02:34', 'kisisel'), (414, '172.16.58.3', '0', '30/10/2018 - 20:23:22', 'kisisel'), (415, '192.168.3.11', '0', '30/10/2018 - 22:09:50', 'kisisel'), (416, '172.16.31.10', '0', '31/10/2018 - 15:40:00', 'kisisel'), (417, '192.168.3.11', '0', '31/10/2018 - 18:14:54', 'kisisel'), (418, '172.16.31.10', '0', '31/10/2018 - 18:32:01', 'kisisel'), (419, '172.16.58.3', '0', '31/10/2018 - 19:03:54', 'kisisel'), (420, '192.168.3.11', '0', '31/10/2018 - 20:18:24', 'kisisel'), (421, '192.168.3.11', '0', '31/10/2018 - 20:56:26', 'kisisel'), (422, '172.16.31.10', '0', '31/10/2018 - 21:07:00', 'kisisel'), (423, '172.16.58.3', '0', '31/10/2018 - 22:00:27', 'kisisel'), (424, '172.16.58.3', '0', '01/11/2018 - 12:55:49', 'kisisel'), (425, '172.16.17.32', '0', '01/11/2018 - 13:52:22', 'kisisel'), (426, '172.16.58.3', '0', '01/11/2018 - 13:52:26', 'kisisel'), (427, '172.16.58.3', '0', '01/11/2018 - 14:39:18', 'kisisel'), (428, '172.16.31.10', '0', '01/11/2018 - 14:45:52', 'kisisel'), (429, '172.16.31.10', '0', '01/11/2018 - 15:40:41', 'kisisel'), (430, '192.168.3.11', '0', '01/11/2018 - 15:46:17', 'kisisel'), (431, '192.168.127.12', '0', '01/11/2018 - 15:46:34', 'kisisel'), (432, '192.168.3.11', '0', '01/11/2018 - 15:48:15', 'kisisel'), (433, '192.168.3.11', '0', '01/11/2018 - 15:48:30', 'kisisel'), (434, '172.16.58.3', '0', '01/11/2018 - 17:44:41', 'kisisel'), (435, '172.16.58.3', '0', '01/11/2018 - 20:14:48', 'kisisel'), (436, '172.16.17.32', '0', '02/11/2018 - 01:02:16', 'kisisel'), (437, '172.16.58.3', '0', '02/11/2018 - 12:14:01', 'kisisel'), (438, '172.16.17.32', '0', '02/11/2018 - 14:47:47', 'kisisel'), (439, '172.16.31.10', '0', '02/11/2018 - 16:09:57', 'kisisel'), (440, '172.16.58.3', '0', '02/11/2018 - 16:42:04', 'kisisel'), (441, '192.168.127.12', '0', '02/11/2018 - 17:33:06', 'kisisel'), (442, '172.16.58.3', '0', '02/11/2018 - 18:11:45', 'kisisel'), (443, '172.16.31.10', '0', '02/11/2018 - 20:41:13', 'kisisel'), (444, '192.168.3.11', '0', '02/11/2018 - 22:59:44', 'kisisel'), (445, '192.168.127.12', '0', '03/11/2018 - 00:04:45', 'kisisel'), (446, '172.16.58.3', '0', '03/11/2018 - 00:11:34', 'kisisel'), (447, '172.16.58.3', '0', '03/11/2018 - 06:48:49', 'kisisel'), (448, '172.16.58.3', '0', '03/11/2018 - 07:53:56', 'kisisel'), (449, '172.16.58.3', '0', '03/11/2018 - 10:19:50', 'kisisel'), (450, '172.16.58.3', '0', '03/11/2018 - 13:26:16', 'kisisel'), (451, '192.168.3.11', '0', '03/11/2018 - 13:45:21', 'kisisel'), (452, '172.16.58.3', '0', '03/11/2018 - 13:57:02', 'kisisel'), (453, '192.168.127.12', '0', '03/11/2018 - 14:00:23', 'kisisel'), (454, '192.168.127.12', '0', '03/11/2018 - 14:45:18', 'kisisel'), (455, '172.16.31.10', '0', '03/11/2018 - 14:55:10', 'kisisel'), (456, '192.168.127.12', '0', '03/11/2018 - 15:17:22', 'kisisel'), (457, '192.168.127.12', '0', '03/11/2018 - 15:41:24', 'kisisel'), (458, '192.168.127.12', '0', '03/11/2018 - 18:43:11', 'kisisel'), (459, '192.168.3.11', '0', '03/11/2018 - 19:01:10', 'kisisel'), (460, '172.16.58.3', '0', '03/11/2018 - 19:59:07', 'kisisel'), (461, '192.168.3.11', '0', '03/11/2018 - 20:33:53', 'kisisel'), (462, '172.16.17.32', '0', '03/11/2018 - 22:09:39', 'kisisel'), (463, '192.168.127.12', '0', '03/11/2018 - 22:56:25', 'kisisel'), (464, '172.16.58.3', '0', '04/11/2018 - 00:28:44', 'kisisel'), (465, '192.168.127.12', '0', '04/11/2018 - 01:12:04', 'kisisel'), (466, '172.16.31.10', '0', '04/11/2018 - 01:53:27', 'kisisel'), (467, '192.168.3.11', '0', '04/11/2018 - 10:09:09', 'kisisel'), (468, '192.168.127.12', '0', '04/11/2018 - 11:14:25', 'kisisel'), (469, '172.16.58.3', '0', '04/11/2018 - 13:24:01', 'kisisel'), (470, '172.16.17.32', '0', '04/11/2018 - 14:00:44', 'kisisel'), (471, '172.16.31.10', '0', '04/11/2018 - 15:30:15', 'kisisel'), (472, '172.16.58.3', '0', '04/11/2018 - 16:44:07', 'kisisel'), (473, '172.16.31.10', '0', '04/11/2018 - 18:02:06', 'kisisel'), (474, '172.16.17.32', '0', '04/11/2018 - 19:11:58', 'kisisel'), (475, '192.168.127.12', '0', '04/11/2018 - 19:32:35', 'kisisel'), (477, '192.168.127.12', '0', '04/11/2018 - 22:17:04', 'kisisel'), (478, '192.168.3.11', '0', '05/11/2018 - 11:49:12', 'kisisel'), (479, '192.168.127.12', '0', '05/11/2018 - 12:51:39', 'kisisel'), (480, '172.16.31.10', '0', '05/11/2018 - 15:55:03', 'kisisel'), (481, '192.168.127.12', '0', '05/11/2018 - 15:57:59', 'kisisel'), (482, '172.16.17.32', '0', '05/11/2018 - 17:00:33', 'kisisel'), (483, '172.16.58.3', '0', '05/11/2018 - 17:39:27', 'kisisel'), (484, '172.16.31.10', '0', '05/11/2018 - 18:37:05', 'kisisel'), (485, '172.16.17.32', '0', '05/11/2018 - 20:11:52', 'kisisel'), (486, '172.16.58.3', '0', '06/11/2018 - 12:23:50', 'kisisel'), (487, '172.16.31.10', '0', '06/11/2018 - 13:31:06', 'kisisel'), (488, '172.16.17.32', '0', '06/11/2018 - 13:33:47', 'kisisel'), (489, '192.168.3.11', '0', '06/11/2018 - 14:25:22', 'kisisel'), (490, '172.16.17.32', '0', '06/11/2018 - 16:21:20', 'kisisel'), (491, '172.16.58.3', '0', '06/11/2018 - 17:16:32', 'kisisel'), (492, '172.16.17.32', '0', '06/11/2018 - 18:48:43', 'kisisel'), (493, '192.168.127.12', '0', '06/11/2018 - 19:25:40', 'kisisel'), (494, '172.16.58.3', '0', '06/11/2018 - 21:38:43', 'kisisel'), (495, '192.168.127.12', '0', '07/11/2018 - 13:07:16', 'kisisel'), (496, '192.168.3.11', '0', '07/11/2018 - 16:02:49', 'kisisel'), (497, '172.16.17.32', '0', '07/11/2018 - 16:12:11', 'kisisel'), (498, '192.168.3.11', '0', '07/11/2018 - 17:05:47', 'kisisel'), (499, '172.16.17.32', '0', '07/11/2018 - 18:52:45', 'kisisel'), (500, '172.16.17.32', '0', '07/11/2018 - 19:46:09', 'kisisel'), (501, '192.168.127.12', '0', '07/11/2018 - 20:34:46', 'kisisel'), (502, '172.16.17.32', '0', '08/11/2018 - 01:31:13', 'kisisel'), (503, '172.16.31.10', '0', '08/11/2018 - 01:31:19', 'kisisel'), (504, '172.16.17.32', '0', '08/11/2018 - 17:51:05', 'kisisel'), (505, '172.16.17.32', '0', '08/11/2018 - 17:59:42', 'kisisel'), (506, '192.168.3.11', '0', '08/11/2018 - 18:01:51', 'kisisel'), (507, '172.16.31.10', '0', '08/11/2018 - 19:17:19', 'kisisel'), (508, '192.168.3.11', '0', '08/11/2018 - 19:17:24', 'kisisel'), (509, '172.16.17.32', '0', '08/11/2018 - 21:48:47', 'kisisel'), (510, '172.16.58.3', '0', '09/11/2018 - 14:14:44', 'kisisel'), (511, '192.168.127.12', '0', '09/11/2018 - 17:03:29', 'kisisel'), (512, '192.168.127.12', '0', '09/11/2018 - 18:36:18', 'kisisel'), (513, '172.16.58.3', '0', '09/11/2018 - 19:32:11', 'kisisel'), (514, '192.168.3.11', '0', '09/11/2018 - 22:28:06', 'kisisel'), (515, '172.16.58.3', '0', '10/11/2018 - 01:04:20', 'kisisel'), (516, '192.168.127.12', '0', '10/11/2018 - 08:26:55', 'kisisel'), (518, '192.168.127.12', '0', '10/11/2018 - 13:56:31', 'kisisel'), (519, '192.168.127.12', '0', '10/11/2018 - 15:07:05', 'kisisel'), (520, '172.16.31.10', '0', '10/11/2018 - 15:57:27', 'kisisel'), (521, '192.168.3.11', '0', '10/11/2018 - 16:35:44', 'kisisel'), (522, '192.168.3.11', '0', '10/11/2018 - 18:02:13', 'kisisel'), (523, '192.168.3.11', '0', '10/11/2018 - 18:39:23', 'kisisel'), (524, '192.168.3.11', '0', '10/11/2018 - 18:50:06', 'kisisel'), (525, '172.16.58.3', '0', '10/11/2018 - 19:35:16', 'kisisel'), (526, '172.16.58.3', '0', '10/11/2018 - 20:30:14', 'kisisel'), (527, '172.16.31.10', '0', '10/11/2018 - 20:43:43', 'kisisel'), (528, '172.16.31.10', '0', '10/11/2018 - 21:17:50', 'kisisel'), (529, '172.16.58.3', '0', '10/11/2018 - 21:30:36', 'kisisel'), (530, '172.16.58.3', '0', '11/11/2018 - 07:04:01', 'kisisel'), (531, '172.16.17.32', '0', '11/11/2018 - 07:20:02', 'kisisel'), (532, '172.16.58.3', '0', '11/11/2018 - 09:44:49', 'kisisel'), (533, '192.168.127.12', '0', '11/11/2018 - 10:09:58', 'kisisel'), (534, '192.168.3.11', '0', '11/11/2018 - 11:04:07', 'kisisel'), (535, '172.16.17.32', '0', '11/11/2018 - 11:38:48', 'kisisel'), (536, '172.16.58.3', '0', '11/11/2018 - 11:49:42', 'kisisel'), (537, '172.16.31.10', '0', '11/11/2018 - 13:04:50', 'kisisel'), (538, '172.16.31.10', '0', '11/11/2018 - 15:15:06', 'kisisel'), (539, '172.16.31.10', '0', '11/11/2018 - 18:15:03', 'kisisel'), (540, '172.16.17.32', '0', '11/11/2018 - 18:33:33', 'kisisel'), (541, '192.168.3.11', '0', '11/11/2018 - 18:37:53', 'kisisel'), (542, '172.16.17.32', '0', '11/11/2018 - 19:36:04', 'kisisel'), (543, '172.16.58.3', '0', '11/11/2018 - 20:17:57', 'kisisel'), (544, '172.16.17.32', '0', '11/11/2018 - 22:07:21', 'kisisel'), (545, '192.168.3.11', '0', '12/11/2018 - 09:53:23', 'kisisel'), (546, '192.168.127.12', '0', '12/11/2018 - 17:57:59', 'kisisel'), (547, '172.16.58.3', '0', '12/11/2018 - 18:09:20', 'kisisel'), (548, '172.16.31.10', '0', '12/11/2018 - 18:55:08', 'kisisel'), (549, '172.16.31.10', '0', '12/11/2018 - 19:01:03', 'kisisel'), (550, '172.16.17.32', '0', '12/11/2018 - 19:34:48', 'kisisel'), (551, '192.168.3.11', '0', '13/11/2018 - 15:45:29', 'kisisel'), (552, '172.16.58.3', '0', '13/11/2018 - 15:58:51', 'kisisel'), (553, '192.168.3.11', '0', '13/11/2018 - 17:31:46', 'kisisel'), (554, '192.168.3.11', '0', '13/11/2018 - 18:11:40', 'kisisel'), (555, '192.168.3.11', '0', '13/11/2018 - 18:30:37', 'kisisel'), (556, '192.168.127.12', '0', '13/11/2018 - 18:31:01', 'kisisel'), (557, '172.16.58.3', '0', '13/11/2018 - 21:32:41', 'kisisel'), (558, '172.16.58.3', '0', '13/11/2018 - 21:59:55', 'kisisel'), (559, '172.16.31.10', '0', '14/11/2018 - 09:10:18', 'kisisel'), (560, '192.168.127.12', '0', '14/11/2018 - 09:45:12', 'kisisel'), (561, '172.16.17.32', '0', '14/11/2018 - 10:27:50', 'kisisel'), (562, '172.16.17.32', '0', '14/11/2018 - 10:27:56', 'kisisel'), (563, '192.168.127.12', '0', '14/11/2018 - 13:48:47', 'kisisel'), (564, '172.16.17.32', '0', '14/11/2018 - 14:24:23', 'kisisel'), (565, '192.168.3.11', '0', '14/11/2018 - 16:32:24', 'kisisel'), (566, '172.16.58.3', '0', '14/11/2018 - 17:28:09', 'kisisel'), (567, '192.168.3.11', '0', '14/11/2018 - 19:04:42', 'kisisel'), (568, '172.16.58.3', '0', '15/11/2018 - 14:55:35', 'kisisel'), (569, '172.16.58.3', '0', '15/11/2018 - 17:03:00', 'kisisel'), (570, '192.168.127.12', '0', '15/11/2018 - 17:18:17', 'kisisel'), (571, '172.16.17.32', '0', '15/11/2018 - 19:41:46', 'kisisel'), (572, '172.16.58.3', '0', '15/11/2018 - 20:23:04', 'kisisel'), (573, '192.168.3.11', '0', '16/11/2018 - 16:28:00', 'kisisel'), (574, '172.16.17.32', '0', '16/11/2018 - 16:45:43', 'kisisel'), (575, '172.16.58.3', '0', '16/11/2018 - 20:18:45', 'kisisel'), (576, '172.16.58.3', '0', '16/11/2018 - 21:43:56', 'kisisel'), (577, '172.16.58.3', '0', '16/11/2018 - 23:34:05', 'kisisel'), (578, '172.16.31.10', '0', '17/11/2018 - 07:54:35', 'kisisel'), (579, '172.16.31.10', '0', '17/11/2018 - 08:47:07', 'kisisel'), (580, '192.168.3.11', '0', '17/11/2018 - 09:12:25', 'kisisel'), (581, '172.16.17.32', '0', '17/11/2018 - 09:17:00', 'kisisel'), (582, '172.16.58.3', '0', '17/11/2018 - 09:59:35', 'kisisel'), (583, '172.16.58.3', '0', '17/11/2018 - 11:37:19', 'kisisel'), (584, '172.16.31.10', '0', '17/11/2018 - 12:07:10', 'kisisel'), (585, '192.168.3.11', '0', '17/11/2018 - 15:56:29', 'kisisel'), (586, '172.16.31.10', '0', '17/11/2018 - 17:04:06', 'kisisel'), (587, '192.168.3.11', '0', '17/11/2018 - 17:17:41', 'kisisel'), (588, '172.16.58.3', '0', '17/11/2018 - 18:31:32', 'kisisel'), (589, '192.168.3.11', '0', '17/11/2018 - 18:46:09', 'kisisel'), (590, '192.168.3.11', '0', '17/11/2018 - 19:17:15', 'kisisel'), (591, '172.16.31.10', '1', '17/11/2018 - 19:33:29', 'kisisel'), (592, '172.16.58.3', '0', '18/11/2018 - 00:56:08', 'kisisel'), (593, '172.16.31.10', '0', '18/11/2018 - 10:09:36', 'kisisel'), (594, '172.16.17.32', '0', '18/11/2018 - 11:14:21', 'kisisel'), (595, '172.16.17.32', '0', '18/11/2018 - 11:21:51', 'kisisel'), (596, '192.168.127.12', '0', '18/11/2018 - 12:14:39', 'kisisel'), (597, '172.16.31.10', '0', '18/11/2018 - 12:52:31', 'kisisel'), (598, '172.16.17.32', '0', '18/11/2018 - 13:00:48', 'kisisel'), (599, '172.16.17.32', '0', '18/11/2018 - 13:14:03', 'kisisel'), (600, '172.16.17.32', '0', '18/11/2018 - 13:44:04', 'kisisel'), (601, '172.16.31.10', '0', '18/11/2018 - 15:23:22', 'kisisel'), (602, '172.16.31.10', '0', '18/11/2018 - 15:58:04', 'kisisel'), (603, '192.168.3.11', '0', '18/11/2018 - 17:31:01', 'kisisel'), (604, '172.16.58.3', '0', '18/11/2018 - 17:52:05', 'kisisel'), (605, '172.16.31.10', '0', '18/11/2018 - 18:39:35', 'kisisel'), (606, '172.16.58.3', '0', '18/11/2018 - 21:36:38', 'kisisel'), (607, '172.16.31.10', '0', '18/11/2018 - 21:43:02', 'kisisel'), (608, '172.16.17.32', '0', '19/11/2018 - 15:03:08', 'kisisel'), (609, '192.168.127.12', '0', '19/11/2018 - 16:06:56', 'kisisel'), (610, '172.16.31.10', '0', '19/11/2018 - 18:42:29', 'kisisel'), (611, '172.16.58.3', '0', '19/11/2018 - 19:04:58', 'kisisel'), (612, '172.16.58.3', '0', '19/11/2018 - 20:14:54', 'kisisel'), (613, '172.16.58.3', '0', '20/11/2018 - 15:23:47', 'kisisel'), (614, '172.16.31.10', '0', '20/11/2018 - 15:31:12', 'kisisel'), (615, '172.16.31.10', '0', '20/11/2018 - 15:54:11', 'kisisel'), (616, '172.16.58.3', '0', '20/11/2018 - 16:06:20', 'kisisel'), (617, '172.16.58.3', '0', '20/11/2018 - 17:35:30', 'kisisel'), (618, '172.16.17.32', '0', '20/11/2018 - 18:22:57', 'kisisel'), (619, '172.16.17.32', '0', '20/11/2018 - 18:59:09', 'kisisel'), (620, '172.16.17.32', '0', '20/11/2018 - 19:16:02', 'kisisel'), (621, '172.16.17.32', '0', '20/11/2018 - 19:46:27', 'kisisel'), (622, '172.16.58.3', '0', '20/11/2018 - 20:00:44', 'kisisel'), (623, '172.16.31.10', '0', '20/11/2018 - 20:14:24', 'kisisel'), (624, '192.168.3.11', '0', '20/11/2018 - 20:36:48', 'kisisel'), (625, '192.168.3.11', '0', '20/11/2018 - 22:26:28', 'kisisel'), (626, '192.168.127.12', '0', '21/11/2018 - 12:19:21', 'kisisel'), (627, '172.16.58.3', '0', '21/11/2018 - 14:57:22', 'kisisel'), (628, '192.168.3.11', '0', '21/11/2018 - 16:05:07', 'kisisel'), (629, '172.16.17.32', '0', '21/11/2018 - 16:25:54', 'kisisel'), (630, '192.168.127.12', '0', '21/11/2018 - 16:28:15', 'kisisel'), (631, '192.168.3.11', '0', '21/11/2018 - 18:01:12', 'kisisel'), (632, '172.16.17.32', '0', '21/11/2018 - 21:46:30', 'kisisel'), (633, '192.168.3.11', '0', '22/11/2018 - 07:24:30', 'kisisel'), (634, '192.168.127.12', '0', '22/11/2018 - 12:49:07', 'kisisel'), (635, '192.168.3.11', '0', '22/11/2018 - 13:00:11', 'kisisel'), (636, '172.16.31.10', '0', '22/11/2018 - 13:18:52', 'kisisel'), (637, '172.16.58.3', '0', '22/11/2018 - 16:39:19', 'kisisel'), (638, '172.16.58.3', '0', '22/11/2018 - 18:03:32', 'kisisel'), (639, '172.16.58.3', '0', '12/12/2018 - 18:37:22', 'kisisel'), (640, '172.16.17.32', '0', '12/12/2018 - 18:37:32', 'kisisel'), (641, '172.16.17.32', '0', '12/12/2018 - 19:36:34', 'kisisel'), (642, '192.168.127.12', '0', '12/12/2018 - 19:43:43', 'kisisel'), (643, '172.16.58.3', '0', '12/12/2018 - 20:10:39', 'kisisel'), (644, '192.168.127.12', '0', '12/12/2018 - 22:41:45', 'kisisel'), (645, '172.16.17.32', '0', '12/12/2018 - 22:43:04', 'kisisel'), (646, '172.16.31.10', '0', '12/12/2018 - 23:15:52', 'kisisel'), (647, '172.16.31.10', '0', '13/12/2018 - 10:47:30', 'kisisel'), (648, '172.16.31.10', '0', '13/12/2018 - 16:38:36', 'kisisel'), (649, '192.168.127.12', '0', '13/12/2018 - 19:11:56', 'kisisel'), (650, '172.16.17.32', '0', '13/12/2018 - 21:18:09', 'kisisel'), (651, '172.16.31.10', '0', '13/12/2018 - 23:58:32', 'kisisel'), (652, '172.16.31.10', '0', '14/12/2018 - 01:28:11', 'kisisel'), (653, '172.16.58.3', '0', '14/12/2018 - 13:51:10', 'kisisel'), (654, '192.168.127.12', '0', '14/12/2018 - 20:32:35', 'kisisel'), (655, '172.16.31.10', '0', '14/12/2018 - 20:47:44', 'kisisel'), (656, '192.168.3.11', '0', '14/12/2018 - 21:45:59', 'kisisel'), (657, '192.168.127.12', '0', '14/12/2018 - 22:34:55', 'kisisel'), (658, '192.168.127.12', '0', '14/12/2018 - 22:43:18', 'kisisel'), (659, '172.16.31.10', '0', '15/12/2018 - 00:30:14', 'kisisel'), (660, '172.16.17.32', '0', '15/12/2018 - 01:57:01', 'kisisel'), (661, '192.168.127.12', '0', '15/12/2018 - 13:35:33', 'kisisel'), (662, '172.16.58.3', '0', '15/12/2018 - 14:36:49', 'kisisel'), (663, '192.168.127.12', '0', '15/12/2018 - 16:40:12', 'kisisel'); -- -------------------------------------------------------- -- -- Tablo için tablo yapısı `reklamlar` -- CREATE TABLE `reklamlar` ( `id` int(100) NOT NULL, `url` varchar(100) CHARACTER SET utf8 COLLATE utf8_turkish_ci NOT NULL, `ip` varchar(100) NOT NULL, `tarih` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Tablo döküm verisi `reklamlar` -- INSERT INTO `reklamlar` (`id`, `url`, `ip`, `tarih`) VALUES (1, 'www.google.com', '172.16.58.3', '11/12/2018 - 22:11:04'), (2, 'site yenilenmi? reklam yoktu', '192.168.3.11', '12/12/2018 - 18:30:10'), (3, '36', '172.16.17.32', '12/12/2018 - 18:37:38'), (4, 'asdas', '172.16.17.32', '12/12/2018 - 19:39:37'), (5, 'a', '172.16.17.32', '12/12/2018 - 21:04:34'), (6, 'https://www.ts3my.com/manage.php', '172.16.58.38', '12/12/2018 - 21:15:24'), (7, 'goog', '172.16.17.32', '12/12/2018 - 22:43:23'), (8, 'goog', '172.16.31.10', '12/12/2018 - 23:16:12'), (9, 'sdfsadf', '172.16.31.10', '13/12/2018 - 04:43:56'), (10, 'https://sblinux.net/help/cookies/', '172.16.31.10', '13/12/2018 - 10:48:15'), (11, 'sblinux.net', '172.16.17.32', '13/12/2018 - 15:54:13'), (12, 'wwww', '192.168.127.12', '13/12/2018 - 16:06:11'), (13, 'goog', '172.16.31.10', '13/12/2018 - 16:38:47'), (14, 'e', '192.168.127.12', '13/12/2018 - 19:12:42'), (15, '31', '172.16.17.32', '13/12/2018 - 21:18:20'), (16, 'google.com', '172.16.31.10', '13/12/2018 - 23:58:52'), (17, 'siteniz yenilenmi? reklam yok', '172.16.31.10', '14/12/2018 - 01:29:02'), (18, 'reklam urlsi', '172.16.58.3', '14/12/2018 - 13:51:38'), (19, '', '192.168.3.11', '14/12/2018 - 18:40:01'), (20, 'ttp://sblinux.net', '192.168.127.12', '14/12/2018 - 20:32:50'), (21, 'asd', '172.16.31.10', '14/12/2018 - 20:52:02'), (22, 'r', '192.168.3.11', '14/12/2018 - 21:48:18'), (23, 'g', '192.168.127.12', '14/12/2018 - 22:01:37'), (24, 'wwww.aksaybilisim.com', '192.168.127.12', '14/12/2018 - 22:38:18'), (25, '', '192.168.127.12', '14/12/2018 - 22:43:34'), (26, 's', '192.168.3.11', '15/12/2018 - 00:24:15'), (27, 'https://mega.nz/#!HVJhQKIa!QMgIa1ezd4XaiBt6QfzQjxiBOE54lyq9ObO7OZg5XSw', '172.16.17.32', '15/12/2018 - 00:29:58'), (28, 'google.com', '172.16.31.10', '15/12/2018 - 00:30:37'), (29, 'https://sblinux.net/2018/12/11/script-tekrar-aktif/', '172.16.58.3', '15/12/2018 - 02:12:16'), (30, '', '192.168.127.12', '15/12/2018 - 13:35:48'), (31, 'wwwwwww', '172.16.17.32', '15/12/2018 - 14:25:33'), (32, '', '172.16.58.3', '15/12/2018 - 14:37:22'), (33, '', '172.16.17.32', '15/12/2018 - 14:54:33'), (34, '1234', '172.16.31.10', '15/12/2018 - 15:32:25'), (35, 'sd', '5.39.5.62', '15/12/2018 - 16:31:31'); -- -- Dökümü yapılmış tablolar için indeksler -- -- -- Tablo için indeksler `chat` -- ALTER TABLE `chat` ADD PRIMARY KEY (`id`); -- -- Tablo için indeksler `ipler` -- ALTER TABLE `ipler` ADD PRIMARY KEY (`id`); -- -- Tablo için indeksler `reklamlar` -- ALTER TABLE `reklamlar` ADD PRIMARY KEY (`id`); -- -- Dökümü yapılmış tablolar için AUTO_INCREMENT değeri -- -- -- Tablo için AUTO_INCREMENT değeri `chat` -- ALTER TABLE `chat` MODIFY `id` int(100) NOT NULL AUTO_INCREMENT; -- -- Tablo için AUTO_INCREMENT değeri `ipler` -- ALTER TABLE `ipler` MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=664; -- -- Tablo için AUTO_INCREMENT değeri `reklamlar` -- ALTER TABLE `reklamlar` MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=36; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
IF OBJECT_ID('inventory.get_account_id_by_supplier_id') IS NOT NULL DROP FUNCTION inventory.get_account_id_by_supplier_id; GO CREATE FUNCTION inventory.get_account_id_by_supplier_id(@supplier_id integer) RETURNS integer AS BEGIN RETURN ( SELECT inventory.suppliers.account_id FROM inventory.suppliers WHERE inventory.suppliers.supplier_id = @supplier_id AND inventory.suppliers.deleted = 0 ); END; GO
CREATE TABLE `sys_columns` ( `column_id` int(11) NOT NULL AUTO_INCREMENT , `app_id` bigint(20) unsigned NULL DEFAULT NULL , `table_id` int(11) NULL DEFAULT NULL , `column_name` varchar(128) NULL DEFAULT NULL , `column_comment` varchar(128) NULL DEFAULT NULL , `column_type` varchar(128) NULL DEFAULT NULL , `go_type` varchar(128) NULL DEFAULT NULL , `go_field` varchar(128) NULL DEFAULT NULL , `json_field` varchar(128) NULL DEFAULT NULL , `is_pk` varchar(4) NULL DEFAULT NULL , `is_increment` varchar(4) NULL DEFAULT NULL , `is_required` varchar(4) NULL DEFAULT NULL , `is_insert` varchar(4) NULL DEFAULT NULL , `is_edit` varchar(4) NULL DEFAULT NULL , `is_list` varchar(4) NULL DEFAULT NULL , `is_query` varchar(4) NULL DEFAULT NULL , `query_type` varchar(128) NULL DEFAULT NULL , `html_type` varchar(128) NULL DEFAULT NULL , `dict_type` varchar(128) NULL DEFAULT NULL , `sort` int(11) NULL DEFAULT NULL , `list` varchar(1) NULL DEFAULT NULL , `pk` tinyint(1) NULL DEFAULT NULL , `required` tinyint(1) NULL DEFAULT NULL , `super_column` tinyint(1) NULL DEFAULT NULL , `usable_column` tinyint(1) NULL DEFAULT NULL , `increment` tinyint(1) NULL DEFAULT NULL , `insert` tinyint(1) NULL DEFAULT NULL , `edit` tinyint(1) NULL DEFAULT NULL , `query` tinyint(1) NULL DEFAULT NULL , `remark` varchar(255) NULL DEFAULT NULL , `create_by` varchar(128) NULL DEFAULT NULL , `update_By` varchar(128) NULL DEFAULT NULL , `created_at` datetime NULL DEFAULT NULL , `updated_at` datetime NULL DEFAULT NULL , `deleted_at` datetime NULL DEFAULT NULL , PRIMARY KEY (`column_id`) ) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8 COLLATE=utf8_general_ci;
{% macro get_bank_transaction_columns() %} {% set columns = [ {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, {"name": "bank_account_id", "datatype": dbt_utils.type_string()}, {"name": "bank_transaction_id", "datatype": dbt_utils.type_string()}, {"name": "batch_payment_batch_payment_id", "datatype": dbt_utils.type_string()}, {"name": "batch_payment_date", "datatype": dbt_utils.type_timestamp()}, {"name": "batch_payment_id", "datatype": dbt_utils.type_string()}, {"name": "batch_payment_is_reconciled", "datatype": "boolean"}, {"name": "batch_payment_status", "datatype": dbt_utils.type_string()}, {"name": "batch_payment_total_amount", "datatype": dbt_utils.type_float()}, {"name": "batch_payment_type", "datatype": dbt_utils.type_string()}, {"name": "batch_payment_updated_date_utc", "datatype": dbt_utils.type_timestamp()}, {"name": "contact_id", "datatype": dbt_utils.type_string()}, {"name": "currency_code", "datatype": dbt_utils.type_string()}, {"name": "currency_rate", "datatype": dbt_utils.type_numeric()}, {"name": "date", "datatype": "date"}, {"name": "external_link_provider_name", "datatype": dbt_utils.type_string()}, {"name": "has_attachments", "datatype": "boolean"}, {"name": "is_reconciled", "datatype": "boolean"}, {"name": "line_amount_types", "datatype": dbt_utils.type_string()}, {"name": "overpayment_id", "datatype": dbt_utils.type_string()}, {"name": "prepayment_id", "datatype": dbt_utils.type_string()}, {"name": "reference", "datatype": dbt_utils.type_string()}, {"name": "status", "datatype": dbt_utils.type_string()}, {"name": "sub_total", "datatype": dbt_utils.type_numeric()}, {"name": "total", "datatype": dbt_utils.type_numeric()}, {"name": "total_tax", "datatype": dbt_utils.type_numeric()}, {"name": "type", "datatype": dbt_utils.type_string()}, {"name": "updated_date_utc", "datatype": dbt_utils.type_timestamp()}, {"name": "url", "datatype": dbt_utils.type_string()} ] %} {{ return(columns) }} {% endmacro %}
<filename>distro/sql/upgrade/cmmn/flowable.mysql.upgradestep.6.3.0.to.6.3.1.cmmn.sql<gh_stars>1000+ UPDATE ACT_CMMN_DATABASECHANGELOGLOCK SET LOCKED = 1, LOCKEDBY = '192.168.1.5 (192.168.1.5)', LOCKGRANTED = '2019-03-13 21:04:10.536' WHERE ID = 1 AND LOCKED = 0; CREATE TABLE ACT_CMMN_HI_PLAN_ITEM_INST (ID_ VARCHAR(255) NOT NULL, REV_ INT NOT NULL, NAME_ VARCHAR(255) NULL, STATE_ VARCHAR(255) NULL, CASE_DEF_ID_ VARCHAR(255) NULL, CASE_INST_ID_ VARCHAR(255) NULL, STAGE_INST_ID_ VARCHAR(255) NULL, IS_STAGE_ BIT(1) NULL, ELEMENT_ID_ VARCHAR(255) NULL, ITEM_DEFINITION_ID_ VARCHAR(255) NULL, ITEM_DEFINITION_TYPE_ VARCHAR(255) NULL, CREATED_TIME_ datetime NULL, LAST_AVAILABLE_TIME_ datetime NULL, LAST_ENABLED_TIME_ datetime NULL, LAST_DISABLED_TIME_ datetime NULL, LAST_STARTED_TIME_ datetime NULL, LAST_SUSPENDED_TIME_ datetime NULL, COMPLETED_TIME_ datetime NULL, OCCURRED_TIME_ datetime NULL, TERMINATED_TIME_ datetime NULL, EXIT_TIME_ datetime NULL, ENDED_TIME_ datetime NULL, LAST_UPDATED_TIME_ datetime NULL, START_USER_ID_ VARCHAR(255) NULL, REFERENCE_ID_ VARCHAR(255) NULL, REFERENCE_TYPE_ VARCHAR(255) NULL, TENANT_ID_ VARCHAR(255) DEFAULT '' NULL, CONSTRAINT PK_ACT_CMMN_HI_PLAN_ITEM_INST PRIMARY KEY (ID_)); ALTER TABLE ACT_CMMN_RU_MIL_INST ADD TENANT_ID_ VARCHAR(255) DEFAULT '' NULL; ALTER TABLE ACT_CMMN_HI_MIL_INST ADD TENANT_ID_ VARCHAR(255) DEFAULT '' NULL; INSERT INTO ACT_CMMN_DATABASECHANGELOG (ID, AUTHOR, FILENAME, DATEEXECUTED, ORDEREXECUTED, MD5SUM, DESCRIPTION, COMMENTS, EXECTYPE, CONTEXTS, LABELS, LIQUIBASE, DEPLOYMENT_ID) VALUES ('4', 'flowable', 'org/flowable/cmmn/db/liquibase/flowable-cmmn-db-changelog.xml', NOW(), 4, '7:894e6e444f72422bf34e4ade89dc8451', 'createTable tableName=ACT_CMMN_HI_PLAN_ITEM_INST; addColumn tableName=ACT_CMMN_RU_MIL_INST; addColumn tableName=ACT_CMMN_HI_MIL_INST', '', 'EXECUTED', NULL, NULL, '3.5.3', '2507450625'); UPDATE ACT_CMMN_DATABASECHANGELOGLOCK SET LOCKED = 0, LOCKEDBY = NULL, LOCKGRANTED = NULL WHERE ID = 1;
<reponame>NCIP/national-biomedical-image-archive<gh_stars>10-100 /*L Copyright SAIC, Ellumen and RSNA (CTP) Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details. L*/ CREATE SEQUENCE NCIASTG.CSM_USER_GROU_USER_GROUP_R_SEQ START WITH 1425 MAXVALUE 999999999999999999999999999 MINVALUE 1 NOCYCLE NOCACHE NOORDER; GRANT SELECT ON NCIASTG.CSM_USER_GROU_USER_GROUP_R_SEQ TO NCIAREPORT;
<gh_stars>0 -- @testpoint: 创建列类型是序列整型SERIAL的表,超出边界时合理报错 drop table if exists table_1; create table table_1(a SERIAL); insert into table_1 values(1); insert into table_1 values(1252345656); insert into table_1 values(2147483647); --ERROR: integer out of range insert into table_1 values(0); insert into table_1 values(2147483648); select * from table_1; drop table if exists table_1;
<gh_stars>100-1000 START TRANSACTION; select current_timestamp; insert into tx (select 100x,10x,x from generate_series(1,1000) as x); insert into cmpts values(2,current_timestamp); select pg_sleep(10); select current_timestamp; COMMIT; select pg_sleep(2); select count(*) from tx;
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 14-01-2020 a las 19:57:16 -- Versión del servidor: 5.5.24-log -- Versión de PHP: 5.4.3 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 */; -- -- Base de datos: `santa_ana_sa` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `activo_pasivo` -- CREATE TABLE IF NOT EXISTS `activo_pasivo` ( `id_activo_pasivo` int(11) NOT NULL AUTO_INCREMENT, `nombre_activo_pasivo` varchar(50) NOT NULL, PRIMARY KEY (`id_activo_pasivo`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Volcado de datos para la tabla `activo_pasivo` -- INSERT INTO `activo_pasivo` (`id_activo_pasivo`, `nombre_activo_pasivo`) VALUES (1, 'Activo'), (2, 'Pasivo'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `activo_pasivo_categoria` -- CREATE TABLE IF NOT EXISTS `activo_pasivo_categoria` ( `id_activo_pasivo_categoria` int(11) NOT NULL AUTO_INCREMENT, `nombre_activo_pasivo_categoria` varchar(50) NOT NULL, `id_activo_pasivo` int(11) DEFAULT NULL, PRIMARY KEY (`id_activo_pasivo_categoria`), KEY `fk_activo_pasivo` (`id_activo_pasivo`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ; -- -- Volcado de datos para la tabla `activo_pasivo_categoria` -- INSERT INTO `activo_pasivo_categoria` (`id_activo_pasivo_categoria`, `nombre_activo_pasivo_categoria`, `id_activo_pasivo`) VALUES (1, 'Activo circulante', 1), (2, 'Activo no circulante', 1), (3, 'Otros activos', 1), (4, 'Pasivo a corto plazo', 2), (5, 'Pasivo a largo plazo', 2), (6, 'Otros pasivos', 2); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `activo_pasivo_detalle` -- CREATE TABLE IF NOT EXISTS `activo_pasivo_detalle` ( `id_activo_pasivo_detalle` int(11) NOT NULL AUTO_INCREMENT, `nombre_activo_pasivo_detalle` varchar(50) NOT NULL, `id_activo_pasivo_categoria` int(11) DEFAULT NULL, PRIMARY KEY (`id_activo_pasivo_detalle`), KEY `fk_activo_pasivo_detale` (`id_activo_pasivo_categoria`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=40 ; -- -- Volcado de datos para la tabla `activo_pasivo_detalle` -- INSERT INTO `activo_pasivo_detalle` (`id_activo_pasivo_detalle`, `nombre_activo_pasivo_detalle`, `id_activo_pasivo_categoria`) VALUES (1, 'Caja', 1), (2, 'Bancos', 1), (3, 'Inversiones temporales', 1), (4, 'Mercancias, inventarios o almaces', 1), (5, 'Clientes', 1), (6, 'Documentos por pagar', 1), (7, 'Deudores diversos', 1), (8, 'Anticipo a proveedores', 1), (9, 'Terrenos', 2), (10, 'Edificios', 2), (11, 'Mobiliario o equipo', 2), (12, 'Equipo de computo electronico', 2), (13, 'Equipo de entrega o reparto', 2), (14, 'Depositos de garantia', 2), (15, 'Inversiones permanentes', 2), (16, 'Gastos de desarrollo', 3), (17, 'Gastos de etapas preoperativas', 3), (18, 'Gastos de mercadotecnia', 3), (19, 'Gastos de organizacion', 3), (20, 'Gastos de instalacion', 3), (21, 'Papeleria y utiles', 3), (22, 'Propoganda y publicidad', 3), (23, 'Primas de seguros', 3), (24, 'Intereses de pagos anticipados', 3), (25, 'Proveedores', 4), (26, 'Documentos por pagar', 4), (27, 'Acreedores diversos', 4), (28, 'Anticipos de clientes', 4), (29, 'Gastos pendientes de pago', 4), (30, 'Gastos acumulados', 4), (31, 'Impuestos pendientes de pago', 4), (32, 'Impuestos acumulados', 4), (33, 'Hipotecas por pagar', 5), (34, 'Hipotecarios', 5), (35, 'Documentos por pagar', 5), (36, 'Cuentas por pagar', 5), (37, 'Rentas cobradas con anticipo', 6), (38, 'Interes cobrados con anticipo', 6), (39, 'Ventas cobradas con anticipo', 6); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `caf` -- CREATE TABLE IF NOT EXISTS `caf` ( `id_caf` int(11) NOT NULL AUTO_INCREMENT, `encriptacion_caf` varchar(255) NOT NULL, PRIMARY KEY (`id_caf`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Volcado de datos para la tabla `caf` -- INSERT INTO `caf` (`id_caf`, `encriptacion_caf`) VALUES (1, '202cb962ac59075b964b07152d234b70'), (2, '81dc9bdb52d04dc20036dbd8313ed055'), (3, '4c56ff4ce4aaf9573aa5dff913df997a'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `calificacion` -- CREATE TABLE IF NOT EXISTS `calificacion` ( `id_calificacion` int(11) NOT NULL AUTO_INCREMENT, `nombre_calificacion` varchar(50) NOT NULL, `comentario_calificacion` varchar(50) NOT NULL, `rut_usuario` varchar(50) DEFAULT NULL, PRIMARY KEY (`id_calificacion`), KEY `fk_id_calificacion_rut_usuario` (`rut_usuario`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `contabilidad` -- CREATE TABLE IF NOT EXISTS `contabilidad` ( `id_contabilidad` int(11) NOT NULL AUTO_INCREMENT, `monto_contabilidad` int(11) NOT NULL, `fecha_contabilidad` date NOT NULL, `rut_usuario` varchar(50) DEFAULT NULL, `id_activo_pasivo_detalle` int(11) DEFAULT NULL, `iva_contabilidad` int(11) NOT NULL, `total_contabilidad` int(11) NOT NULL, PRIMARY KEY (`id_contabilidad`), KEY `fk_rut_usuario_contabilidad` (`rut_usuario`), KEY `fk_id_activo_pasivo_detalle_01` (`id_activo_pasivo_detalle`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=67 ; -- -- Volcado de datos para la tabla `contabilidad` -- INSERT INTO `contabilidad` (`id_contabilidad`, `monto_contabilidad`, `fecha_contabilidad`, `rut_usuario`, `id_activo_pasivo_detalle`, `iva_contabilidad`, `total_contabilidad`) VALUES (14, 12000, '2019-05-31', '19390359-2', 9, 2280, 14280), (15, 15000, '2019-05-31', '19390359-2', 16, 2850, 17850), (16, 9000, '2019-05-31', '19390359-2', 25, 1710, 10710), (17, 1500, '2019-05-31', '19390359-2', 36, 285, 1785), (18, 4500, '2019-05-31', '19390359-2', 1, 855, 5355), (19, 1000, '2019-05-31', '19390359-2', 1, 190, 1190), (20, 8000, '2019-05-31', '19390359-2', 25, 1520, 9520), (22, 1000, '2019-05-31', '19390359-2', 1, 190, 1190), (23, 2000, '2019-05-31', '19390359-2', 25, 380, 2380), (24, 24000, '2019-06-01', '19390359-2', 25, 4560, 28560), (25, 3000, '2019-06-02', '19390359-2', 19, 570, 3570), (26, 10000, '2019-06-02', '19390359-2', 1, 1900, 11900), (27, 4500, '2019-06-02', '19390359-2', 1, 855, 5355), (28, 2000, '2019-06-02', '19390359-2', 25, 380, 2380), (29, 12000, '2019-06-02', '19390359-2', 25, 2280, 14280), (30, 10000, '2019-06-02', '19390359-2', 3, 1900, 11900), (32, 1000, '2019-06-19', '19390359-2', 17, 190, 1190), (33, 5600, '2019-06-19', '15499039-9', 2, 1064, 6664), (34, 1000, '2019-06-20', '19390359-2', 1, 190, 1190), (42, 1200, '2019-07-06', '19390359-2', 33, 228, 1428), (44, 5000, '2019-07-06', '19390359-2', 1, 950, 5950), (45, 10000, '2019-07-06', '19390359-2', 1, 1900, 11900), (46, 14000, '2019-07-07', '19390359-2', 1, 2660, 16660), (47, 1000, '2019-07-07', '19390359-2', 25, 190, 1190), (48, 3240, '2019-07-07', '19390359-2', 1, 616, 3856), (49, 3240, '2019-07-07', '19390359-2', 25, 616, 3856), (50, 50000, '2019-07-10', '19390359-2', 1, 9500, 59500), (51, 30000, '2019-07-10', '19390359-2', 1, 5700, 35700), (52, 20000, '2019-07-10', '19390359-2', 1, 3800, 23800), (53, 76234, '2019-07-10', '19390359-2', 1, 14484, 90718), (56, 5000, '2019-12-07', '19390359-2', 1, 950, 5950), (57, 3000, '2019-12-07', '19390359-2', 1, 570, 3570), (58, 1500, '2019-12-07', '19390359-2', 25, 285, 1785), (59, 1500, '2019-12-07', '19390359-2', 25, 285, 1785), (60, 7500, '2019-12-07', '19390359-2', 5, 1425, 8925), (61, 4560, '2019-12-07', '19390359-2', 1, 866, 5426), (62, 5000, '2019-12-09', '19390359-2', 1, 950, 5950), (63, 20000, '2019-12-09', '19390359-2', 25, 3800, 23800), (64, 5000, '2019-12-11', '19390359-2', 1, 950, 5950), (65, 3000, '2019-12-11', '19390359-2', 1, 570, 3570), (66, 3000, '2019-12-11', '19390359-2', 25, 570, 3570); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `detalle_pedido_factura` -- CREATE TABLE IF NOT EXISTS `detalle_pedido_factura` ( `id_pedido` int(11) NOT NULL, `id_factura` int(11) NOT NULL, PRIMARY KEY (`id_pedido`,`id_factura`), KEY `fk_id_factura` (`id_factura`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `detalle_pedido_factura` -- INSERT INTO `detalle_pedido_factura` (`id_pedido`, `id_factura`) VALUES (1, 1), (2, 3), (15, 3), (16, 5), (17, 6), (18, 7), (19, 8), (20, 9), (21, 10), (22, 11), (23, 12), (24, 13), (25, 14), (26, 15), (27, 16), (28, 17), (29, 18), (30, 19), (31, 20), (32, 21), (33, 22), (34, 23), (35, 24), (36, 25), (37, 26), (38, 27), (39, 28), (40, 29), (41, 30), (42, 31), (43, 32), (44, 33), (45, 33), (46, 33), (48, 33), (49, 33), (50, 33), (51, 33), (52, 33), (53, 33), (58, 33), (61, 33), (63, 33), (64, 33), (65, 34), (66, 34), (67, 35), (68, 36), (69, 36), (70, 36), (71, 37), (72, 38), (73, 38), (74, 39), (75, 40), (76, 40), (77, 41), (78, 41), (79, 42), (80, 42), (81, 43), (82, 43), (83, 44), (84, 44), (85, 45), (86, 46), (87, 47); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `detalle_producto_pedido` -- CREATE TABLE IF NOT EXISTS `detalle_producto_pedido` ( `id_producto` int(11) NOT NULL, `id_pedido` int(11) NOT NULL, `cantidad_pedido` int(11) NOT NULL, `total_pedido` int(11) NOT NULL, `precio_cliente_pedido` int(11) NOT NULL, PRIMARY KEY (`id_producto`,`id_pedido`), KEY `fk_id_producto_pedido_ii` (`id_pedido`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `detalle_producto_pedido` -- INSERT INTO `detalle_producto_pedido` (`id_producto`, `id_pedido`, `cantidad_pedido`, `total_pedido`, `precio_cliente_pedido`) VALUES (1, 68, 3, 3000, 1000), (1, 69, 7, 3500, 500), (1, 70, 2, 1600, 800), (1, 71, 2, 1000, 500), (1, 72, 5, 3750, 750), (1, 73, 2, 1300, 650), (1, 74, 15, 9750, 650), (1, 75, 42, 18900, 450), (1, 76, 12, 5400, 450), (1, 77, 8, 4480, 560), (1, 79, 4, 2000, 500), (1, 80, 12, 7800, 650), (1, 81, 12, 7800, 650), (1, 82, 3, 900, 300), (1, 83, 3, 900, 300), (1, 84, 3, 1500, 500), (1, 85, 2, 1000, 500), (1, 87, 5, 1500, 300), (2, 78, 8, 6240, 780), (2, 86, 3, 1500, 500); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `empresa` -- CREATE TABLE IF NOT EXISTS `empresa` ( `id_empresa` int(11) NOT NULL AUTO_INCREMENT, `rut_empresa` varchar(50) NOT NULL, `nombre_empresa` varchar(50) NOT NULL, `giro_comercial_empresa` varchar(50) NOT NULL, PRIMARY KEY (`id_empresa`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Volcado de datos para la tabla `empresa` -- INSERT INTO `empresa` (`id_empresa`, `rut_empresa`, `nombre_empresa`, `giro_comercial_empresa`) VALUES (1, '69507100-0', 'Panaderia Santa Ana', 'Panaderia y pasteleria'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `factura` -- CREATE TABLE IF NOT EXISTS `factura` ( `id_factura` int(11) NOT NULL AUTO_INCREMENT, `fecha_elaboracion_factura` date NOT NULL, `id_empresa` int(11) NOT NULL, `id_folio` int(11) NOT NULL, PRIMARY KEY (`id_factura`), KEY `fk_id_empresa` (`id_empresa`), KEY `fk_id_folio` (`id_folio`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=48 ; -- -- Volcado de datos para la tabla `factura` -- INSERT INTO `factura` (`id_factura`, `fecha_elaboracion_factura`, `id_empresa`, `id_folio`) VALUES (1, '2019-10-26', 1, 1), (3, '2019-10-26', 1, 2), (4, '2019-10-26', 1, 2), (5, '2019-11-28', 1, 2), (6, '2019-11-28', 1, 2), (7, '2019-11-28', 1, 2), (8, '2019-11-30', 1, 2), (9, '2019-11-30', 1, 2), (10, '2019-11-30', 1, 2), (11, '2019-11-30', 1, 2), (12, '2019-11-30', 1, 2), (13, '2019-11-30', 1, 2), (14, '2019-11-30', 1, 2), (15, '2019-11-30', 1, 2), (16, '2019-11-30', 1, 2), (17, '2019-11-30', 1, 2), (18, '2019-11-30', 1, 2), (19, '2019-11-30', 1, 2), (20, '2019-11-30', 1, 2), (21, '2019-11-30', 1, 2), (22, '2019-11-30', 1, 2), (23, '2019-11-30', 1, 2), (24, '2019-11-30', 1, 2), (25, '2019-11-30', 1, 2), (26, '2019-11-30', 1, 2), (27, '2019-11-30', 1, 2), (28, '2019-11-30', 1, 2), (29, '2019-11-30', 1, 2), (30, '2019-11-30', 1, 2), (31, '2019-11-30', 1, 2), (32, '2019-11-30', 1, 2), (33, '2019-11-30', 1, 2), (34, '2019-11-30', 1, 2), (35, '2019-11-30', 1, 2), (36, '2019-11-30', 1, 2), (37, '2019-11-30', 1, 2), (38, '2019-11-30', 1, 2), (39, '2019-11-30', 1, 2), (40, '2019-11-30', 1, 2), (41, '2019-11-30', 1, 2), (42, '2019-12-03', 1, 2), (43, '2019-12-07', 1, 2), (44, '2019-12-09', 1, 2), (45, '2019-12-11', 1, 2), (46, '2019-12-11', 1, 2), (47, '2019-12-12', 1, 2); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `folio` -- CREATE TABLE IF NOT EXISTS `folio` ( `id_folio` int(11) NOT NULL AUTO_INCREMENT, `tipo_documento` varchar(50) NOT NULL, `estado_dis` int(11) NOT NULL, `estado_envio` int(11) NOT NULL, `estado_respuesta_sii` int(11) NOT NULL, `fecha_vigencia_folio` date NOT NULL, `id_caf` int(11) NOT NULL, PRIMARY KEY (`id_folio`), KEY `fk_id_caf` (`id_caf`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Volcado de datos para la tabla `folio` -- INSERT INTO `folio` (`id_folio`, `tipo_documento`, `estado_dis`, `estado_envio`, `estado_respuesta_sii`, `fecha_vigencia_folio`, `id_caf`) VALUES (1, '33', 0, 0, 0, '2019-10-26', 1), (2, '34', 0, 0, 0, '2019-10-26', 2), (3, '33', 0, 0, 0, '2019-10-26', 3); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `insumo` -- CREATE TABLE IF NOT EXISTS `insumo` ( `id_insumo` int(11) NOT NULL AUTO_INCREMENT, `fecha_insumo_antigua` date NOT NULL, `inicial_insumo` int(11) NOT NULL, `compra_insumo` int(11) NOT NULL, `gasto_insumo` int(11) NOT NULL, `stock_insumo` int(11) NOT NULL, `fecha_insumo_actual` date NOT NULL, `id_lista_insumo` int(11) DEFAULT NULL, `rut_usuario` varchar(50) DEFAULT NULL, PRIMARY KEY (`id_insumo`), KEY `fk_id_descripcion_insumo` (`id_lista_insumo`), KEY `fk_rut_usuario_insumo` (`rut_usuario`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=28 ; -- -- Volcado de datos para la tabla `insumo` -- INSERT INTO `insumo` (`id_insumo`, `fecha_insumo_antigua`, `inicial_insumo`, `compra_insumo`, `gasto_insumo`, `stock_insumo`, `fecha_insumo_actual`, `id_lista_insumo`, `rut_usuario`) VALUES (16, '2019-06-19', 12, 13, 15, 10, '2019-06-19', 1, '15499039-9'), (17, '2019-06-19', 4, 15, 16, 4, '2019-06-19', 2, '15499039-9'), (18, '2019-06-19', 5, 17, 2, 20, '2019-12-07', 4, '15499039-9'), (22, '2019-07-07', 20, 0, 5, 15, '2019-07-07', 3, '19390359-2'), (25, '2019-12-07', 5, 0, 2, 3, '2019-12-07', 2, '19390359-2'), (26, '2019-12-09', 5, 12, 13, 4, '2019-12-11', 2, '19390359-2'), (27, '2019-12-11', 5, 0, 0, 5, '2019-12-11', 3, '19390359-2'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `lista_insumo` -- CREATE TABLE IF NOT EXISTS `lista_insumo` ( `id_lista_insumo` int(11) NOT NULL AUTO_INCREMENT, `nombre_lista_insumo` varchar(50) NOT NULL, PRIMARY KEY (`id_lista_insumo`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; -- -- Volcado de datos para la tabla `lista_insumo` -- INSERT INTO `lista_insumo` (`id_lista_insumo`, `nombre_lista_insumo`) VALUES (1, 'Harina 15 KG'), (2, 'Harina 25 KG'), (3, 'Bicarbonato 3 KG'), (4, 'Sal 10 KG'), (5, 'Sal 5 KG'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `mensaje` -- CREATE TABLE IF NOT EXISTS `mensaje` ( `id_mensaje` int(11) NOT NULL AUTO_INCREMENT, `rut_usuario_emisor` varchar(50) NOT NULL, `rut_usuario_receptor` varchar(50) NOT NULL, `titulo_mensaje` varchar(50) NOT NULL, `descripcion_mensaje` varchar(255) NOT NULL, `fecha_mensaje` date NOT NULL, `estado_mensaje` int(11) NOT NULL, PRIMARY KEY (`id_mensaje`), KEY `fk_rut_usuario_emisor` (`rut_usuario_emisor`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=28 ; -- -- Volcado de datos para la tabla `mensaje` -- INSERT INTO `mensaje` (`id_mensaje`, `rut_usuario_emisor`, `rut_usuario_receptor`, `titulo_mensaje`, `descripcion_mensaje`, `fecha_mensaje`, `estado_mensaje`) VALUES (5, '19390359-2', '9830768-0', 'test', 'test mama', '2019-06-04', 0), (18, '19390359-2', '19389252-3', 'Bienvenido', 'Saludos.', '2019-07-07', 0), (20, '16825934-4', '19154619-9', 'Hola', 'Me acabo de registrar.', '2019-07-10', 0), (23, '19390359-2', '19389252-3', 'Test', 'Esto es una prueba', '2019-12-07', 0), (24, '19390359-2', '19389252-3', 'Test', 'Prueba 2', '2019-12-07', 0), (25, '19390359-2', '12561290-3', 'Gracias', 'Aumentamos las ventas', '2019-12-07', 0), (26, '19390359-2', '6732307-6', 'test', 'test', '2019-12-09', 0), (27, '6732307-6', '19390359-2', 'prueba', 'como estas', '2019-12-09', 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `panadero` -- CREATE TABLE IF NOT EXISTS `panadero` ( `rut_persona` varchar(50) NOT NULL DEFAULT '', `tipo_panadero` varchar(50) NOT NULL, `jornada_panadero` varchar(50) NOT NULL, `estado_panadero` int(11) NOT NULL, PRIMARY KEY (`rut_persona`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `panadero` -- INSERT INTO `panadero` (`rut_persona`, `tipo_panadero`, `jornada_panadero`, `estado_panadero`) VALUES ('13202604-1', 'Hornero', 'Diurno', 0), ('16019545-2', 'Amasador', 'Diurna', 1), ('22064222-4', 'Hornero', 'Nocturna', 1), ('4438158-3', 'Coninero', 'Diurna', 1), ('5197775-0', 'Hornero', 'Noctura', 1), ('6932343-K', 'Hornero', 'Diurno', 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `pedido` -- CREATE TABLE IF NOT EXISTS `pedido` ( `id_pedido` int(11) NOT NULL AUTO_INCREMENT, `fecha_pedido` datetime NOT NULL, `estado_pedido` int(11) NOT NULL, `rut_usuario` varchar(50) NOT NULL, PRIMARY KEY (`id_pedido`), KEY `fk_rut_usuario_caf` (`rut_usuario`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=88 ; -- -- Volcado de datos para la tabla `pedido` -- INSERT INTO `pedido` (`id_pedido`, `fecha_pedido`, `estado_pedido`, `rut_usuario`) VALUES (1, '2019-10-26 20:44:59', 0, '12561290-3'), (2, '2019-10-26 20:49:06', 0, '13124800-8'), (3, '2019-11-28 20:15:33', 0, '12561290-3'), (4, '2019-11-28 20:17:44', 0, '13124800-8'), (5, '2019-11-28 20:18:36', 0, '14006026-7'), (6, '2019-11-28 20:22:55', 0, '13124800-8'), (7, '2019-11-28 20:25:34', 0, '19390359-2'), (8, '2019-11-28 20:25:46', 0, '19390359-2'), (9, '2019-11-28 20:29:47', 0, '13279880-K'), (10, '2019-11-28 20:32:08', 0, '12561290-3'), (11, '2019-11-28 20:33:00', 0, '12561290-3'), (12, '2019-11-28 20:34:33', 0, '15029547-5'), (13, '2019-11-28 20:46:22', 0, '12561290-3'), (14, '2019-11-28 20:48:36', 0, '12561290-3'), (15, '2019-11-28 20:50:35', 0, '12561290-3'), (16, '2019-11-28 21:09:37', 0, '12561290-3'), (17, '2019-11-28 21:16:31', 0, '16628710-3'), (18, '2019-11-28 21:31:49', 0, '12561290-3'), (19, '2019-11-30 01:01:27', 0, '15029547-5'), (20, '2019-11-30 02:35:06', 0, '13124800-8'), (21, '2019-11-30 02:39:31', 0, '16628710-3'), (22, '2019-11-30 03:12:14', 0, '16825934-4'), (23, '2019-11-30 03:12:33', 0, '16825934-4'), (24, '2019-11-30 03:17:02', 0, '6732307-6'), (25, '2019-11-30 03:18:36', 0, '12561290-3'), (26, '2019-11-30 03:18:43', 0, '12561290-3'), (27, '2019-11-30 03:18:49', 0, '12561290-3'), (28, '2019-11-30 03:20:43', 0, '12561290-3'), (29, '2019-11-30 03:24:07', 0, '12561290-3'), (30, '2019-11-30 03:24:22', 0, '12561290-3'), (31, '2019-11-30 03:25:51', 0, '12561290-3'), (32, '2019-11-30 03:32:56', 0, '14006026-7'), (33, '2019-11-30 04:08:17', 0, '12561290-3'), (34, '2019-11-30 04:09:02', 0, '12561290-3'), (35, '2019-11-30 04:09:21', 0, '14006026-7'), (36, '2019-11-30 04:32:04', 0, '12561290-3'), (37, '2019-11-30 04:33:51', 0, '12561290-3'), (38, '2019-11-30 04:38:16', 0, '12561290-3'), (39, '2019-11-30 04:39:34', 0, '12561290-3'), (40, '2019-11-30 04:40:41', 0, '12561290-3'), (41, '2019-11-30 15:18:59', 0, '12561290-3'), (42, '2019-11-30 15:19:19', 0, '12561290-3'), (43, '2019-11-30 15:20:54', 0, '12561290-3'), (44, '2019-11-30 15:21:03', 0, '12561290-3'), (45, '2019-11-30 15:34:54', 0, '12561290-3'), (46, '2019-11-30 15:35:08', 0, '12561290-3'), (47, '2019-11-30 15:35:23', 0, '14006026-7'), (48, '2019-11-30 15:37:59', 0, '12561290-3'), (49, '2019-11-30 15:38:11', 0, '12561290-3'), (50, '2019-11-30 15:38:45', 0, '12561290-3'), (51, '2019-11-30 15:38:54', 0, '13279880-K'), (52, '2019-11-30 15:40:46', 0, '12561290-3'), (53, '2019-11-30 15:41:00', 0, '12561290-3'), (54, '2019-11-30 15:44:01', 0, '12561290-3'), (55, '2019-11-30 15:44:11', 0, '12561290-3'), (56, '2019-11-30 15:44:19', 0, '12561290-3'), (57, '2019-11-30 15:44:25', 0, '12561290-3'), (58, '2019-11-30 15:46:26', 0, '12561290-3'), (59, '2019-11-30 15:46:45', 0, '13279880-K'), (60, '2019-11-30 15:46:55', 0, '12561290-3'), (61, '2019-11-30 15:51:08', 0, '13279880-K'), (62, '2019-11-30 15:51:23', 0, '13279880-K'), (63, '2019-11-30 15:54:20', 0, '12561290-3'), (64, '2019-11-30 15:54:42', 0, '12561290-3'), (65, '2019-11-30 15:54:58', 0, '13124800-8'), (66, '2019-11-30 15:55:20', 0, '13124800-8'), (67, '2019-11-30 15:55:37', 0, '16628710-3'), (68, '2019-11-30 16:00:43', 0, '12561290-3'), (69, '2019-11-30 16:01:03', 0, '12561290-3'), (70, '2019-11-30 16:01:15', 0, '12561290-3'), (71, '2019-11-30 16:02:10', 0, '13279880-K'), (72, '2019-11-30 16:02:26', 0, '16825934-4'), (73, '2019-11-30 16:02:37', 0, '16825934-4'), (74, '2019-11-30 16:03:01', 0, '6732307-6'), (75, '2019-11-30 16:06:38', 0, '12561290-3'), (76, '2019-11-30 16:19:37', 0, '12561290-3'), (77, '2019-11-30 16:19:58', 0, '14006026-7'), (78, '2019-11-30 16:20:32', 0, '14006026-7'), (79, '2019-12-03 17:30:22', 0, '12561290-3'), (80, '2019-12-07 20:44:35', 0, '12561290-3'), (81, '2019-12-07 20:44:53', 0, '13124800-8'), (82, '2019-12-09 20:14:08', 0, '13124800-8'), (83, '2019-12-09 20:14:35', 0, '13279880-K'), (84, '2019-12-11 22:50:52', 0, '13279880-K'), (85, '2019-12-11 23:07:07', 0, '12561290-3'), (86, '2019-12-11 23:47:31', 0, '14006026-7'), (87, '2019-12-12 18:48:17', 0, '12561290-3'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `perfil` -- CREATE TABLE IF NOT EXISTS `perfil` ( `id_perfil` int(11) NOT NULL AUTO_INCREMENT, `nombre_perfil` varchar(50) NOT NULL, PRIMARY KEY (`id_perfil`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ; -- -- Volcado de datos para la tabla `perfil` -- INSERT INTO `perfil` (`id_perfil`, `nombre_perfil`) VALUES (1, 'Administrador'), (2, 'Despachador'), (3, 'Cliente'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `persona` -- CREATE TABLE IF NOT EXISTS `persona` ( `rut_persona` varchar(50) NOT NULL, `nombre_persona` varchar(50) NOT NULL, `apellido_persona` varchar(50) NOT NULL, `telefono_persona` varchar(50) NOT NULL, `correo_persona` varchar(50) NOT NULL, `direccion_persona` varchar(50) NOT NULL, PRIMARY KEY (`rut_persona`), UNIQUE KEY `rut_persona` (`rut_persona`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `persona` -- INSERT INTO `persona` (`rut_persona`, `nombre_persona`, `apellido_persona`, `telefono_persona`, `correo_persona`, `direccion_persona`) VALUES ('12561290-3', 'Rodrigo', 'Palacios', '872783232', '<EMAIL>', '28 oriente'), ('13124800-8', '<NAME>', '<NAME>', '973632246', '<EMAIL>', 'Las colines #452'), ('13202604-1', '<NAME>', '<NAME>', '871271762', '<EMAIL>', '3 sur #584'), ('13279880-K', 'Jorge', 'Sansoval Files', '982387237', '<EMAIL>', 'Sta Teresita 830 P 20'), ('13441471-5', '123', '2121', '122121', '<EMAIL>', '1221'), ('13688758-0', '11', '11', 'assa', 'as', 'assa'), ('14006026-7', 'Matias', 'Pedraza', '778848757', '<EMAIL>', 'Calle pájaros #123'), ('14345878-4', '<NAME>', '<NAME>', '983129836', '<EMAIL>', 'Calle 012'), ('14458765-0', '111111111111111111111111111111', '111', '111', '11', '111'), ('14592778-1', 'test', 'test', '837463833', '<EMAIL>', '28 oriente'), ('14754704-8', '111', '111', '111', '111', '111'), ('15029547-5', 'Ignacio', '<NAME>', '891981289', '<EMAIL>', '8 Oriente #6524'), ('15499039-9', 'Fernanda', 'Gallardo', '748373331', '<EMAIL>', 'Las rastras #2365'), ('15636837-7', 'Armando', '<NAME>', '987345672', '<EMAIL>', 'Calle alameda #456'), ('15882048-K', 'joaco', 'a', 'a', 'a', 'a'), ('16019545-2', 'Juan', 'Hormazabal', '635627682', '<EMAIL>', 'Maule #585'), ('16303922-2', 'juan', 'perez', '893489438', '<EMAIL>', 'Maule #12'), ('16417924-9', 'Cristobal', 'Atria', '838662214', '<EMAIL>', '6 oriente #241'), ('16628710-3', 'Nicolas', 'Troncoso', '873232511', '<EMAIL>', 'Barrio oriente #1256'), ('16780757-7', '11111', '1', '1', '1', '1'), ('16825934-4', 'Pamela', 'Montoya', '783278378', '<EMAIL>', '123 calle las rastras.'), ('17968582-5', 'testij', 'testi', '2123', '<EMAIL>', '123'), ('19154619-9', 'Camila', '<NAME>', '837464322', '<EMAIL>', 'Calle las rastras #123'), ('19389252-3', 'Homero', 'Perez', '673846221', '<EMAIL>', '19 Oriente #452'), ('19390359-2', 'Matias', 'Montoya', '983006194', '<EMAIL>', '12 Oriente #469'), ('2-2', 'MA', 'MO', '+569', '<EMAIL>', 'Calle 01'), ('22064222-4', 'Roberto', '<NAME>', '736281221', '<EMAIL>', 'Brisas del maule #1762'), ('23943213-1', 'Gladys', 'Piñera', '983006183', '<EMAIL>', 'Alameda #245'), ('2520807-2', 'Ignacio', 'Perez', '912358212', '<EMAIL>', '6 Sur #456'), ('3776670-4', 'Domingo', 'Montoya', '837487553', '<EMAIL>', '28 Oriente'), ('4198356-6', 'Pedro', 'Funes', '974733142', '<EMAIL>', 'Barrio Ort. S/N.'), ('4438158-3', 'Rodrigo', 'Cid', '726376722', '<EMAIL>', 'Maule #12'), ('4971685-0', '11', '11', '11', '11', '11'), ('5015452-1', '122112', '12121', 'asd', '2121', 'saassa'), ('5197775-0', 'Andres', 'Chadwick', '763543567', '<EMAIL>', 'Unihue Km 2'), ('5279233-9', 'Jorge', 'Pedrero', '7839493', '<EMAIL>', '8 sur #546'), ('6394822-5', 'sddsds', 'sasdaas', '123', '<EMAIL>', '123'), ('6732307-6', 'Javiera', 'Vazquez', '984873683', '<EMAIL>', '6 Sur #456'), ('6744227-k', '11111', '1', '1', '1', '1'), ('6932343-K', 'Carmen', 'Loyola', '823787832', '<EMAIL>', 'Calle Paris #123'), ('6960368-8', 'Diego', 'Maureria', '948314355', '<EMAIL>', 'Calle nueva 123'), ('7092527-3', '11111', '1', '1', '1', '1'), ('7354141-7', '<NAME>', '<NAME>', '983647833', '<EMAIL>', '2 Sur #1357'), ('8089127-K', 'Domingo', '<NAME>', '847859334', '<EMAIL>', 'Sta Ines 2913 Casa 26'), ('8217755-8', 'Roman', '<NAME>', '587382873', '<EMAIL>', '32 sur #12'), ('8409278-9', '<NAME>', '<NAME>', '984635521', '<EMAIL>', 'Calle tortolos #583'), ('9015074-K', 'Juan', 'Perez', '847324533', '<EMAIL>', 'Calle #120'), ('930894-6', '<NAME>', '<NAME>', '+569133', '<EMAIL>', 'Calle 57 #32'), ('9830768-0', '<NAME>', 'Poblete Gonzalez', '985348312', '<EMAIL>', 'Calle 56 #34'), ('9911725-7', 'Jorge', '<NAME>', '972779239', '<EMAIL>', 'Maule #832'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `producto` -- CREATE TABLE IF NOT EXISTS `producto` ( `id_producto` int(11) NOT NULL AUTO_INCREMENT, `tipo_producto` varchar(50) NOT NULL, PRIMARY KEY (`id_producto`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ; -- -- Volcado de datos para la tabla `producto` -- INSERT INTO `producto` (`id_producto`, `tipo_producto`) VALUES (1, 'Pan Corriente'), (2, 'Pan Integral'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `repartidor` -- CREATE TABLE IF NOT EXISTS `repartidor` ( `rut_persona` varchar(50) NOT NULL DEFAULT '', `licencia_repartidor` varchar(50) NOT NULL, `estado_licencia_repartidor` varchar(50) NOT NULL, `estado_repartidor` int(11) NOT NULL, PRIMARY KEY (`rut_persona`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `repartidor` -- INSERT INTO `repartidor` (`rut_persona`, `licencia_repartidor`, `estado_licencia_repartidor`, `estado_repartidor`) VALUES ('16417924-9', 'Clase B', 'Al día', 1), ('5279233-9', 'Clase A1', 'Al día', 1), ('8217755-8', 'Clase B', 'Caducada', 0), ('8409278-9', 'Clase B', 'Al día', 1), ('9015074-K', 'Clase B', 'Al día', 1), ('9911725-7', 'Clase B', 'Al día', 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `repartidor_vehiculo` -- CREATE TABLE IF NOT EXISTS `repartidor_vehiculo` ( `rut_persona` varchar(50) NOT NULL, `patente_vehiculo` varchar(50) NOT NULL, `fecha_repartidor_vehiculo` date NOT NULL, PRIMARY KEY (`rut_persona`,`patente_vehiculo`), UNIQUE KEY `patente_vehiculo` (`patente_vehiculo`), UNIQUE KEY `rut_persona` (`rut_persona`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `repartidor_vehiculo` -- INSERT INTO `repartidor_vehiculo` (`rut_persona`, `patente_vehiculo`, `fecha_repartidor_vehiculo`) VALUES ('16417924-9', 'PK-08-92', '2019-10-30'), ('5279233-9', 'DZ-ST-21', '2019-12-07'), ('8217755-8', 'S1-23-12', '2019-12-07'), ('8409278-9', 'XS-S1-23', '2019-12-11'), ('9015074-K', 'S1-12-34', '2019-12-07'), ('9911725-7', 'SH-12-34', '2019-12-11'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `ruta` -- CREATE TABLE IF NOT EXISTS `ruta` ( `id_ruta` int(11) NOT NULL AUTO_INCREMENT, `sector_ruta` varchar(50) NOT NULL, `destino_ruta` varchar(50) NOT NULL, `fecha_ruta_antigua` date NOT NULL, `fecha_ruta_actual` date NOT NULL, `estado_ruta` int(11) NOT NULL, `rut_persona_ruta` varchar(50) NOT NULL, PRIMARY KEY (`id_ruta`), KEY `fk_rut_persona_ruta` (`rut_persona_ruta`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=10 ; -- -- Volcado de datos para la tabla `ruta` -- INSERT INTO `ruta` (`id_ruta`, `sector_ruta`, `destino_ruta`, `fecha_ruta_antigua`, `fecha_ruta_actual`, `estado_ruta`, `rut_persona_ruta`) VALUES (1, 'Oriente', '14 Oriente #454', '2019-05-05', '2019-07-06', 1, '16417924-9'), (2, 'Sur', 'Sur #12', '2019-08-21', '2019-07-10', 1, '16417924-9'), (7, 'Oriente', '15 oriente #456', '2019-05-29', '2019-05-29', 1, '8409278-9'), (8, 'Oriente', '12 Ort', '2019-06-16', '2019-12-07', 0, '5279233-9'), (9, 'Oriente', '15 Ort #238', '2019-12-07', '2019-12-09', 0, '8217755-8'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `sensor` -- CREATE TABLE IF NOT EXISTS `sensor` ( `id_sensor` int(11) NOT NULL AUTO_INCREMENT, `temperatura_sensor` varchar(50) NOT NULL, `humedad_sensor` varchar(50) NOT NULL, `fecha_sensor` date NOT NULL, `rut_usuario` varchar(50) DEFAULT NULL, PRIMARY KEY (`id_sensor`), KEY `fk_rut_usuario_sensor` (`rut_usuario`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=791 ; -- -- Volcado de datos para la tabla `sensor` -- INSERT INTO `sensor` (`id_sensor`, `temperatura_sensor`, `humedad_sensor`, `fecha_sensor`, `rut_usuario`) VALUES (31, '26.6', '43', '2019-11-30', '19390359-2'), (32, '26.6', '43', '2019-11-30', '19390359-2'), (33, '26.6', '42', '2019-11-30', '19390359-2'), (34, '26.6', '42', '2019-11-30', '19390359-2'), (35, '26.7', '42', '2019-11-30', '19390359-2'), (36, '26.7', '42', '2019-11-30', '19390359-2'), (37, '26.6', '42', '2019-11-30', '19390359-2'), (38, '26.6', '42', '2019-11-30', '19390359-2'), (39, '26.7', '42', '2019-11-30', '19390359-2'), (40, '26.4', '43', '2019-11-30', '19390359-2'), (41, '26.4', '45', '2019-11-30', '19390359-2'), (42, '26.4', '45', '2019-11-30', '19390359-2'), (43, '26.3', '44', '2019-11-30', '19390359-2'), (44, '26.4', '44', '2019-11-30', '19390359-2'), (45, '26.6', '44', '2019-11-30', '19390359-2'), (46, '26.5', '45', '2019-11-30', '19390359-2'), (47, '26.5', '49', '2019-11-30', '19390359-2'), (48, '26.4', '48', '2019-11-30', '19390359-2'), (49, '26.4', '46', '2019-11-30', '19390359-2'), (50, '26.6', '45', '2019-11-30', '19390359-2'), (51, '26.6', '44', '2019-11-30', '19390359-2'), (52, '26.9', '63', '2019-11-30', '19390359-2'), (53, '26.8', '64', '2019-11-30', '19390359-2'), (54, '27', '60', '2019-11-30', '19390359-2'), (55, '27.1', '53', '2019-11-30', '19390359-2'), (56, '27.1', '50', '2019-11-30', '19390359-2'), (57, '27.2', '47', '2019-11-30', '19390359-2'), (58, '27.3', '45', '2019-11-30', '19390359-2'), (59, '27.3', '43', '2019-11-30', '19390359-2'), (60, '27.3', '43', '2019-11-30', '19390359-2'), (61, '27.3', '42', '2019-11-30', '19390359-2'), (62, '23.5', '54', '2019-11-30', '19390359-2'), (63, '26.3', '51', '2019-11-30', '19390359-2'), (64, '26.3', '51', '2019-11-30', '19390359-2'), (65, '26.3', '50', '2019-11-30', '19390359-2'), (66, '26.4', '50', '2019-11-30', '19390359-2'), (67, '26.4', '49', '2019-11-30', '19390359-2'), (68, '26.4', '49', '2019-11-30', '19390359-2'), (69, '26.4', '49', '2019-11-30', '19390359-2'), (70, '26.4', '49', '2019-11-30', '19390359-2'), (71, '26.4', '49', '2019-11-30', '19390359-2'), (72, '26.4', '55', '2019-11-30', '19390359-2'), (73, '26.6', '72', '2019-11-30', '19390359-2'), (74, '26.9', '85', '2019-11-30', '19390359-2'), (75, '27.2', '91', '2019-11-30', '19390359-2'), (76, '27.4', '74', '2019-11-30', '19390359-2'), (77, '27.7', '63', '2019-11-30', '19390359-2'), (78, '27.7', '58', '2019-11-30', '19390359-2'), (79, '27.8', '55', '2019-11-30', '19390359-2'), (80, '26.4', '49', '2019-11-30', '19390359-2'), (81, '26.4', '49', '2019-11-30', '19390359-2'), (82, '26.5', '49', '2019-11-30', '19390359-2'), (83, '26.5', '49', '2019-11-30', '19390359-2'), (84, '26.5', '49', '2019-11-30', '19390359-2'), (85, '26.6', '48', '2019-11-30', '19390359-2'), (86, '26.6', '48', '2019-11-30', '19390359-2'), (87, '26.6', '68', '2019-11-30', '19390359-2'), (88, '27.1', '52', '2019-11-30', '19390359-2'), (89, '27.1', '49', '2019-11-30', '19390359-2'), (90, '27.2', '48', '2019-11-30', '19390359-2'), (91, '27.3', '47', '2019-11-30', '19390359-2'), (92, '27.2', '47', '2019-11-30', '19390359-2'), (93, '27.2', '47', '2019-11-30', '19390359-2'), (94, '27.2', '47', '2019-11-30', '19390359-2'), (95, '27.2', '48', '2019-11-30', '19390359-2'), (96, '27.2', '48', '2019-11-30', '19390359-2'), (97, '27.1', '48', '2019-11-30', '19390359-2'), (98, '27.1', '50', '2019-11-30', '19390359-2'), (99, '27.1', '49', '2019-11-30', '19390359-2'), (100, '27.1', '48', '2019-11-30', '19390359-2'), (101, '27.2', '48', '2019-11-30', '19390359-2'), (102, '27.1', '47', '2019-11-30', '19390359-2'), (103, '27.1', '47', '2019-11-30', '19390359-2'), (104, '27.1', '47', '2019-11-30', '19390359-2'), (105, '27', '47', '2019-11-30', '19390359-2'), (106, '27.1', '47', '2019-11-30', '19390359-2'), (107, '27', '47', '2019-11-30', '19390359-2'), (108, '27.1', '47', '2019-11-30', '19390359-2'), (109, '27.1', '47', '2019-11-30', '19390359-2'), (110, '27', '46', '2019-11-30', '19390359-2'), (111, '26.9', '46', '2019-11-30', '19390359-2'), (112, '27', '46', '2019-11-30', '19390359-2'), (113, '27', '46', '2019-11-30', '19390359-2'), (114, '26.9', '46', '2019-11-30', '19390359-2'), (115, '26.9', '47', '2019-11-30', '19390359-2'), (116, '26.8', '46', '2019-11-30', '19390359-2'), (117, '26.9', '46', '2019-11-30', '19390359-2'), (118, '26.9', '47', '2019-11-30', '19390359-2'), (119, '26.9', '46', '2019-11-30', '19390359-2'), (120, '26.8', '47', '2019-11-30', '19390359-2'), (121, '26.9', '48', '2019-11-30', '19390359-2'), (122, '26.9', '48', '2019-11-30', '19390359-2'), (123, '26.9', '48', '2019-11-30', '19390359-2'), (124, '26.8', '48', '2019-11-30', '19390359-2'), (125, '26.9', '48', '2019-11-30', '19390359-2'), (126, '26.9', '48', '2019-11-30', '19390359-2'), (127, '26.8', '47', '2019-11-30', '19390359-2'), (128, '26.8', '46', '2019-11-30', '19390359-2'), (129, '26.8', '47', '2019-11-30', '19390359-2'), (130, '26.9', '46', '2019-11-30', '19390359-2'), (131, '26.8', '48', '2019-11-30', '19390359-2'), (132, '26.8', '47', '2019-11-30', '19390359-2'), (133, '26.8', '47', '2019-11-30', '19390359-2'), (134, '26.8', '47', '2019-11-30', '19390359-2'), (135, '26.8', '47', '2019-11-30', '19390359-2'), (136, '26.8', '48', '2019-11-30', '19390359-2'), (137, '26.8', '49', '2019-11-30', '19390359-2'), (138, '26.8', '48', '2019-11-30', '19390359-2'), (139, '26.8', '48', '2019-11-30', '19390359-2'), (140, '26.8', '47', '2019-11-30', '19390359-2'), (141, '26.8', '47', '2019-11-30', '19390359-2'), (142, '26.9', '47', '2019-11-30', '19390359-2'), (143, '27.2', '49', '2019-11-30', '19390359-2'), (144, '27.3', '48', '2019-11-30', '19390359-2'), (145, '27.3', '47', '2019-11-30', '19390359-2'), (146, '27.4', '48', '2019-11-30', '19390359-2'), (147, '27.3', '47', '2019-11-30', '19390359-2'), (148, '27.3', '46', '2019-11-30', '19390359-2'), (149, '27.3', '46', '2019-11-30', '19390359-2'), (150, '27.3', '47', '2019-11-30', '19390359-2'), (151, '27.2', '50', '2019-11-30', '19390359-2'), (152, '27.3', '47', '2019-11-30', '19390359-2'), (153, '27.4', '47', '2019-11-30', '19390359-2'), (154, '27.4', '47', '2019-11-30', '19390359-2'), (155, '27.4', '46', '2019-11-30', '19390359-2'), (156, '27.4', '45', '2019-11-30', '19390359-2'), (157, '27.4', '46', '2019-11-30', '19390359-2'), (158, '27.3', '47', '2019-11-30', '19390359-2'), (159, '27.4', '46', '2019-11-30', '19390359-2'), (160, '27.3', '46', '2019-11-30', '19390359-2'), (161, '27.4', '46', '2019-11-30', '19390359-2'), (162, '27.5', '61', '2019-11-30', '19390359-2'), (163, '27.8', '57', '2019-11-30', '19390359-2'), (164, '27.8', '50', '2019-11-30', '19390359-2'), (165, '27.8', '48', '2019-11-30', '19390359-2'), (166, '27.7', '47', '2019-11-30', '19390359-2'), (167, '27.7', '46', '2019-11-30', '19390359-2'), (168, '27.7', '46', '2019-11-30', '19390359-2'), (169, '27.2', '62', '2019-11-30', '19390359-2'), (170, '27.6', '47', '2019-11-30', '19390359-2'), (171, '27.6', '45', '2019-11-30', '19390359-2'), (172, '27.7', '46', '2019-11-30', '19390359-2'), (173, '27.6', '45', '2019-11-30', '19390359-2'), (174, '27.6', '45', '2019-11-30', '19390359-2'), (175, '27.5', '50', '2019-11-30', '19390359-2'), (176, '27.6', '48', '2019-11-30', '19390359-2'), (177, '27.6', '45', '2019-11-30', '19390359-2'), (178, '27.7', '44', '2019-11-30', '19390359-2'), (179, '28', '53', '2019-11-30', '19390359-2'), (180, '28.1', '48', '2019-11-30', '19390359-2'), (181, '28.1', '45', '2019-11-30', '19390359-2'), (182, '28.1', '45', '2019-11-30', '19390359-2'), (183, '28.1', '45', '2019-11-30', '19390359-2'), (184, '28.2', '46', '2019-11-30', '19390359-2'), (185, '28.1', '46', '2019-11-30', '19390359-2'), (186, '28.3', '49', '2019-11-30', '19390359-2'), (187, '28.3', '47', '2019-11-30', '19390359-2'), (188, '28.3', '44', '2019-11-30', '19390359-2'), (189, '28.3', '44', '2019-11-30', '19390359-2'), (190, '28.2', '44', '2019-11-30', '19390359-2'), (191, '28.3', '43', '2019-11-30', '19390359-2'), (192, '28.2', '43', '2019-11-30', '19390359-2'), (193, '28.1', '43', '2019-11-30', '19390359-2'), (194, '28', '43', '2019-11-30', '19390359-2'), (195, '27.9', '42', '2019-11-30', '19390359-2'), (196, '27.8', '42', '2019-11-30', '19390359-2'), (197, '27.8', '42', '2019-11-30', '19390359-2'), (198, '27.8', '42', '2019-11-30', '19390359-2'), (199, '27.7', '42', '2019-11-30', '19390359-2'), (200, '27.7', '53', '2019-11-30', '19390359-2'), (201, '27.7', '47', '2019-11-30', '19390359-2'), (202, '27.8', '46', '2019-11-30', '19390359-2'), (203, '27.8', '45', '2019-11-30', '19390359-2'), (204, '27.8', '45', '2019-11-30', '19390359-2'), (205, '27.7', '44', '2019-11-30', '19390359-2'), (206, '27.7', '44', '2019-11-30', '19390359-2'), (207, '27.7', '44', '2019-11-30', '19390359-2'), (208, '27.7', '45', '2019-11-30', '19390359-2'), (209, '27.7', '44', '2019-11-30', '19390359-2'), (210, '27.6', '45', '2019-11-30', '19390359-2'), (211, '27.6', '44', '2019-11-30', '19390359-2'), (212, '27.6', '44', '2019-11-30', '19390359-2'), (213, '27.6', '46', '2019-11-30', '19390359-2'), (214, '27.5', '45', '2019-11-30', '19390359-2'), (215, '27.5', '46', '2019-11-30', '19390359-2'), (216, '27.6', '43', '2019-11-30', '19390359-2'), (217, '27.3', '44', '2019-11-30', '19390359-2'), (218, '27.3', '44', '2019-11-30', '19390359-2'), (219, '27.4', '45', '2019-11-30', '19390359-2'), (220, '27.3', '46', '2019-11-30', '19390359-2'), (221, '27.3', '47', '2019-11-30', '19390359-2'), (222, '27.3', '46', '2019-11-30', '19390359-2'), (223, '27.3', '45', '2019-11-30', '19390359-2'), (224, '27.3', '45', '2019-11-30', '19390359-2'), (225, '27.3', '44', '2019-11-30', '19390359-2'), (226, '27.3', '47', '2019-11-30', '19390359-2'), (227, '27.2', '46', '2019-11-30', '19390359-2'), (228, '27.2', '45', '2019-11-30', '19390359-2'), (229, '27.2', '45', '2019-11-30', '19390359-2'), (230, '27.2', '46', '2019-11-30', '19390359-2'), (231, '27.2', '46', '2019-11-30', '19390359-2'), (232, '27.2', '45', '2019-11-30', '19390359-2'), (233, '27.2', '46', '2019-11-30', '19390359-2'), (234, '27.2', '45', '2019-11-30', '19390359-2'), (235, '27.2', '46', '2019-11-30', '19390359-2'), (236, '27.2', '45', '2019-11-30', '19390359-2'), (237, '27.2', '45', '2019-11-30', '19390359-2'), (238, '27.2', '45', '2019-11-30', '19390359-2'), (239, '27.2', '45', '2019-11-30', '19390359-2'), (240, '27.2', '45', '2019-11-30', '19390359-2'), (241, '27.2', '44', '2019-11-30', '19390359-2'), (242, '27.2', '45', '2019-11-30', '19390359-2'), (243, '27.2', '45', '2019-11-30', '19390359-2'), (244, '27.2', '44', '2019-11-30', '19390359-2'), (245, '27.1', '45', '2019-11-30', '19390359-2'), (246, '27.2', '46', '2019-11-30', '19390359-2'), (247, '27.2', '46', '2019-11-30', '19390359-2'), (248, '27.2', '45', '2019-11-30', '19390359-2'), (249, '27.2', '45', '2019-11-30', '19390359-2'), (250, '27.2', '46', '2019-11-30', '19390359-2'), (251, '27.2', '45', '2019-11-30', '19390359-2'), (252, '27.1', '45', '2019-11-30', '19390359-2'), (253, '27.2', '46', '2019-11-30', '19390359-2'), (254, '27.1', '46', '2019-11-30', '19390359-2'), (255, '27.1', '46', '2019-11-30', '19390359-2'), (256, '27.1', '46', '2019-11-30', '19390359-2'), (257, '27.1', '45', '2019-11-30', '19390359-2'), (258, '27.1', '45', '2019-11-30', '19390359-2'), (259, '27.1', '44', '2019-11-30', '19390359-2'), (260, '27.1', '45', '2019-11-30', '19390359-2'), (261, '27.1', '46', '2019-11-30', '19390359-2'), (262, '27.9', '40', '2019-12-07', '19390359-2'), (263, '27.8', '40', '2019-12-07', '19390359-2'), (264, '27.9', '39', '2019-12-07', '19390359-2'), (265, '27.8', '43', '2019-12-07', '19390359-2'), (266, '27.8', '40', '2019-12-07', '19390359-2'), (267, '27.8', '40', '2019-12-07', '19390359-2'), (268, '27.8', '40', '2019-12-07', '19390359-2'), (269, '27.8', '40', '2019-12-07', '19390359-2'), (270, '27.8', '40', '2019-12-07', '19390359-2'), (271, '27.8', '44', '2019-12-07', '19390359-2'), (272, '27.8', '44', '2019-12-07', '19390359-2'), (273, '28.6', '95', '2019-12-07', '19390359-2'), (274, '28.3', '58', '2019-12-07', '19390359-2'), (278, '27.4', '41', '2019-12-07', '19390359-2'), (279, '27.5', '40', '2019-12-07', '19390359-2'), (280, '27.6', '40', '2019-12-07', '19390359-2'), (281, '27.6', '40', '2019-12-07', '19390359-2'), (282, '26.8', '43', '2019-12-07', '19390359-2'), (283, '26.7', '43', '2019-12-07', '19390359-2'), (284, '26.7', '42', '2019-12-07', '19390359-2'), (285, '26.6', '43', '2019-12-07', '19390359-2'), (286, '26.7', '43', '2019-12-07', '19390359-2'), (287, '26.7', '43', '2019-12-07', '19390359-2'), (288, '26.7', '43', '2019-12-07', '19390359-2'), (289, '26.7', '43', '2019-12-07', '19390359-2'), (290, '26.6', '44', '2019-12-07', '19390359-2'), (291, '26.5', '44', '2019-12-07', '19390359-2'), (292, '26.6', '44', '2019-12-07', '19390359-2'), (293, '26.6', '43', '2019-12-07', '19390359-2'), (294, '26.5', '43', '2019-12-07', '19390359-2'), (295, '26.6', '43', '2019-12-07', '19390359-2'), (296, '26.6', '43', '2019-12-07', '19390359-2'), (297, '26.4', '44', '2019-12-07', '19390359-2'), (298, '26.4', '44', '2019-12-07', '19390359-2'), (299, '26.6', '44', '2019-12-07', '19390359-2'), (300, '26.5', '43', '2019-12-07', '19390359-2'), (301, '26.6', '43', '2019-12-07', '19390359-2'), (302, '26.6', '43', '2019-12-07', '19390359-2'), (303, '26.5', '43', '2019-12-07', '19390359-2'), (304, '26.6', '43', '2019-12-07', '19390359-2'), (305, '26.6', '43', '2019-12-07', '19390359-2'), (306, '26.6', '43', '2019-12-07', '19390359-2'), (307, '26.7', '43', '2019-12-07', '19390359-2'), (308, '26.7', '43', '2019-12-07', '19390359-2'), (309, '26.7', '43', '2019-12-07', '19390359-2'), (310, '26.6', '43', '2019-12-07', '19390359-2'), (311, '26.6', '43', '2019-12-07', '19390359-2'), (312, '26.7', '43', '2019-12-07', '19390359-2'), (313, '26.6', '43', '2019-12-07', '19390359-2'), (314, '26.6', '43', '2019-12-07', '19390359-2'), (315, '26.6', '43', '2019-12-07', '19390359-2'), (316, '26.7', '43', '2019-12-07', '19390359-2'), (317, '26.7', '43', '2019-12-07', '19390359-2'), (318, '26.7', '43', '2019-12-07', '19390359-2'), (319, '26.7', '43', '2019-12-07', '19390359-2'), (320, '26.7', '43', '2019-12-07', '19390359-2'), (321, '26.7', '43', '2019-12-07', '19390359-2'), (322, '26.6', '43', '2019-12-07', '19390359-2'), (323, '26.5', '43', '2019-12-07', '19390359-2'), (324, '26.6', '43', '2019-12-07', '19390359-2'), (325, '26.6', '43', '2019-12-07', '19390359-2'), (326, '26.7', '43', '2019-12-07', '19390359-2'), (327, '26.6', '43', '2019-12-07', '19390359-2'), (328, '26.6', '43', '2019-12-07', '19390359-2'), (329, '26.7', '43', '2019-12-07', '19390359-2'), (330, '26.6', '43', '2019-12-07', '19390359-2'), (331, '26.6', '43', '2019-12-07', '19390359-2'), (332, '26.7', '43', '2019-12-07', '19390359-2'), (333, '26.6', '43', '2019-12-07', '19390359-2'), (334, '26.6', '42', '2019-12-07', '19390359-2'), (335, '26.6', '44', '2019-12-07', '19390359-2'), (336, '26.6', '48', '2019-12-07', '19390359-2'), (337, '26.8', '50', '2019-12-07', '19390359-2'), (338, '26.8', '50', '2019-12-07', '19390359-2'), (339, '27', '50', '2019-12-07', '19390359-2'), (340, '26.9', '50', '2019-12-07', '19390359-2'), (341, '27.2', '44', '2019-12-07', '19390359-2'), (342, '27.3', '42', '2019-12-07', '19390359-2'), (343, '27.3', '41', '2019-12-07', '19390359-2'), (344, '26.9', '42', '2019-12-07', '19390359-2'), (345, '26.9', '42', '2019-12-07', '19390359-2'), (346, '26.9', '42', '2019-12-07', '19390359-2'), (347, '26.9', '42', '2019-12-07', '19390359-2'), (348, '26.9', '41', '2019-12-07', '19390359-2'), (349, '26.9', '42', '2019-12-07', '19390359-2'), (350, '26.9', '42', '2019-12-07', '19390359-2'), (351, '26.9', '42', '2019-12-07', '19390359-2'), (352, '26.9', '42', '2019-12-07', '19390359-2'), (353, '27', '42', '2019-12-07', '19390359-2'), (354, '26.9', '42', '2019-12-07', '19390359-2'), (355, '26.9', '42', '2019-12-07', '19390359-2'), (356, '26.9', '42', '2019-12-07', '19390359-2'), (357, '26.9', '42', '2019-12-07', '19390359-2'), (358, '26.9', '42', '2019-12-07', '19390359-2'), (359, '26.9', '42', '2019-12-07', '19390359-2'), (360, '26.9', '42', '2019-12-07', '19390359-2'), (361, '26.9', '42', '2019-12-07', '19390359-2'), (362, '26.9', '42', '2019-12-07', '19390359-2'), (363, '27.2', '42', '2019-12-07', '19390359-2'), (364, '27.2', '42', '2019-12-07', '19390359-2'), (365, '27.3', '42', '2019-12-07', '19390359-2'), (366, '27.3', '42', '2019-12-07', '19390359-2'), (367, '27.3', '42', '2019-12-07', '19390359-2'), (368, '27.4', '42', '2019-12-07', '19390359-2'), (369, '27.3', '42', '2019-12-07', '19390359-2'), (370, '27.4', '41', '2019-12-07', '19390359-2'), (371, '27.4', '41', '2019-12-07', '19390359-2'), (372, '27.4', '41', '2019-12-07', '19390359-2'), (373, '27.6', '41', '2019-12-07', '19390359-2'), (374, '27.4', '41', '2019-12-07', '19390359-2'), (375, '27.4', '41', '2019-12-07', '19390359-2'), (376, '27.5', '41', '2019-12-07', '19390359-2'), (377, '27.6', '41', '2019-12-07', '19390359-2'), (378, '27.5', '41', '2019-12-07', '19390359-2'), (379, '27.5', '41', '2019-12-07', '19390359-2'), (380, '27.5', '41', '2019-12-07', '19390359-2'), (381, '27.5', '41', '2019-12-07', '19390359-2'), (382, '27.7', '41', '2019-12-07', '19390359-2'), (383, '27.5', '41', '2019-12-07', '19390359-2'), (384, '27.5', '41', '2019-12-07', '19390359-2'), (385, '27.6', '41', '2019-12-07', '19390359-2'), (386, '27.6', '41', '2019-12-07', '19390359-2'), (387, '27.4', '41', '2019-12-07', '19390359-2'), (388, '27.6', '42', '2019-12-07', '19390359-2'), (389, '27.6', '42', '2019-12-07', '19390359-2'), (390, '27.6', '41', '2019-12-07', '19390359-2'), (391, '27.6', '41', '2019-12-07', '19390359-2'), (392, '27.6', '41', '2019-12-07', '19390359-2'), (393, '27.6', '41', '2019-12-07', '19390359-2'), (394, '27.6', '41', '2019-12-07', '19390359-2'), (395, '27.6', '41', '2019-12-07', '19390359-2'), (396, '27.6', '41', '2019-12-07', '19390359-2'), (397, '27.6', '41', '2019-12-07', '19390359-2'), (398, '27.6', '41', '2019-12-07', '19390359-2'), (399, '27.7', '41', '2019-12-07', '19390359-2'), (400, '27.7', '41', '2019-12-07', '19390359-2'), (401, '27.7', '41', '2019-12-07', '19390359-2'), (402, '27.7', '41', '2019-12-07', '19390359-2'), (403, '27.6', '41', '2019-12-07', '19390359-2'), (404, '27.4', '42', '2019-12-07', '19390359-2'), (405, '27.4', '42', '2019-12-07', '19390359-2'), (406, '27.5', '42', '2019-12-07', '19390359-2'), (407, '27.5', '42', '2019-12-07', '19390359-2'), (408, '27.5', '41', '2019-12-07', '19390359-2'), (409, '27.5', '41', '2019-12-07', '19390359-2'), (410, '27.6', '42', '2019-12-07', '19390359-2'), (411, '27.6', '41', '2019-12-07', '19390359-2'), (412, '27.6', '41', '2019-12-07', '19390359-2'), (413, '27.6', '42', '2019-12-07', '19390359-2'), (414, '27.6', '42', '2019-12-07', '19390359-2'), (415, '27.7', '42', '2019-12-07', '19390359-2'), (416, '27.6', '42', '2019-12-07', '19390359-2'), (417, '27.6', '42', '2019-12-07', '19390359-2'), (418, '27.6', '42', '2019-12-07', '19390359-2'), (419, '27.6', '42', '2019-12-07', '19390359-2'), (420, '27.6', '41', '2019-12-07', '19390359-2'), (421, '27.6', '41', '2019-12-07', '19390359-2'), (422, '27.6', '41', '2019-12-07', '19390359-2'), (423, '27.7', '41', '2019-12-07', '19390359-2'), (424, '27.6', '41', '2019-12-07', '19390359-2'), (425, '27.7', '41', '2019-12-07', '19390359-2'), (426, '27.6', '41', '2019-12-07', '19390359-2'), (427, '27.7', '41', '2019-12-07', '19390359-2'), (428, '27.7', '41', '2019-12-07', '19390359-2'), (429, '27.7', '41', '2019-12-07', '19390359-2'), (430, '27.7', '41', '2019-12-07', '19390359-2'), (431, '27.7', '41', '2019-12-07', '19390359-2'), (432, '27.8', '41', '2019-12-07', '19390359-2'), (433, '27.7', '41', '2019-12-07', '19390359-2'), (434, '27.7', '41', '2019-12-07', '19390359-2'), (435, '27.2', '43', '2019-12-07', '19390359-2'), (436, '27.2', '43', '2019-12-07', '19390359-2'), (437, '27.3', '43', '2019-12-07', '19390359-2'), (438, '27.2', '43', '2019-12-07', '19390359-2'), (439, '27.2', '43', '2019-12-07', '19390359-2'), (440, '27.3', '43', '2019-12-07', '19390359-2'), (441, '27.2', '43', '2019-12-07', '19390359-2'), (442, '27.3', '43', '2019-12-07', '19390359-2'), (443, '27.3', '43', '2019-12-07', '19390359-2'), (444, '27.2', '43', '2019-12-07', '19390359-2'), (445, '27.3', '43', '2019-12-07', '19390359-2'), (446, '27.3', '43', '2019-12-07', '19390359-2'), (447, '27.3', '43', '2019-12-07', '19390359-2'), (448, '27.3', '43', '2019-12-07', '19390359-2'), (449, '27.3', '43', '2019-12-07', '19390359-2'), (450, '27.4', '43', '2019-12-07', '19390359-2'), (451, '27.2', '43', '2019-12-07', '19390359-2'), (452, '27.2', '43', '2019-12-07', '19390359-2'), (453, '27.2', '42', '2019-12-07', '19390359-2'), (454, '27.3', '43', '2019-12-07', '19390359-2'), (455, '27.3', '42', '2019-12-07', '19390359-2'), (456, '27.3', '43', '2019-12-07', '19390359-2'), (457, '27.2', '42', '2019-12-07', '19390359-2'), (458, '27.3', '42', '2019-12-07', '19390359-2'), (459, '27.3', '42', '2019-12-07', '19390359-2'), (460, '27.3', '43', '2019-12-07', '19390359-2'), (461, '27.3', '42', '2019-12-07', '19390359-2'), (462, '27.3', '42', '2019-12-07', '19390359-2'), (463, '27.3', '43', '2019-12-07', '19390359-2'), (464, '27.3', '43', '2019-12-07', '19390359-2'), (465, '27.3', '42', '2019-12-07', '19390359-2'), (466, '27.3', '42', '2019-12-07', '19390359-2'), (467, '27.3', '42', '2019-12-07', '19390359-2'), (468, '27.3', '43', '2019-12-07', '19390359-2'), (469, '27.4', '43', '2019-12-07', '19390359-2'), (470, '27.3', '43', '2019-12-07', '19390359-2'), (471, '27.3', '42', '2019-12-07', '19390359-2'), (472, '27.3', '42', '2019-12-07', '19390359-2'), (473, '27.3', '42', '2019-12-07', '19390359-2'), (474, '27.3', '42', '2019-12-07', '19390359-2'), (475, '27.3', '42', '2019-12-07', '19390359-2'), (476, '27.3', '42', '2019-12-07', '19390359-2'), (477, '27.3', '42', '2019-12-07', '19390359-2'), (478, '27.4', '42', '2019-12-07', '19390359-2'), (479, '27.3', '42', '2019-12-07', '19390359-2'), (480, '27.3', '42', '2019-12-07', '19390359-2'), (481, '27.3', '42', '2019-12-07', '19390359-2'), (482, '27.3', '42', '2019-12-07', '19390359-2'), (483, '27.3', '42', '2019-12-07', '19390359-2'), (484, '27.3', '42', '2019-12-07', '19390359-2'), (485, '27.3', '42', '2019-12-07', '19390359-2'), (486, '27.3', '42', '2019-12-07', '19390359-2'), (487, '27.3', '43', '2019-12-07', '19390359-2'), (488, '27.3', '42', '2019-12-07', '19390359-2'), (489, '27.3', '42', '2019-12-07', '19390359-2'), (490, '27.4', '43', '2019-12-07', '19390359-2'), (491, '27.3', '42', '2019-12-07', '19390359-2'), (492, '27.3', '42', '2019-12-07', '19390359-2'), (493, '27.3', '42', '2019-12-07', '19390359-2'), (494, '27.3', '42', '2019-12-07', '19390359-2'), (495, '27.4', '56', '2019-12-07', '19390359-2'), (496, '27.6', '69', '2019-12-07', '19390359-2'), (497, '27.7', '64', '2019-12-07', '19390359-2'), (498, '28.2', '50', '2019-12-07', '19390359-2'), (499, '28.3', '46', '2019-12-07', '19390359-2'), (500, '28.4', '44', '2019-12-07', '19390359-2'), (501, '28.4', '42', '2019-12-07', '19390359-2'), (502, '28.4', '41', '2019-12-07', '19390359-2'), (503, '28.3', '41', '2019-12-07', '19390359-2'), (504, '27.5', '42', '2019-12-07', '19390359-2'), (505, '27.4', '42', '2019-12-07', '19390359-2'), (506, '27.4', '42', '2019-12-07', '19390359-2'), (507, '27.4', '41', '2019-12-07', '19390359-2'), (508, '27.5', '41', '2019-12-07', '19390359-2'), (509, '27.5', '41', '2019-12-07', '19390359-2'), (510, '27.5', '41', '2019-12-07', '19390359-2'), (511, '27.5', '41', '2019-12-07', '19390359-2'), (512, '27.4', '41', '2019-12-07', '19390359-2'), (513, '27.3', '42', '2019-12-07', '19390359-2'), (514, '27.2', '42', '2019-12-07', '19390359-2'), (515, '27.3', '42', '2019-12-07', '19390359-2'), (516, '27.3', '42', '2019-12-07', '19390359-2'), (517, '27.3', '42', '2019-12-07', '19390359-2'), (518, '27.4', '41', '2019-12-07', '19390359-2'), (519, '27.4', '41', '2019-12-07', '19390359-2'), (520, '27.4', '41', '2019-12-07', '19390359-2'), (521, '27.3', '42', '2019-12-07', '19390359-2'), (522, '27.4', '42', '2019-12-07', '19390359-2'), (523, '27.4', '42', '2019-12-07', '19390359-2'), (524, '27.4', '42', '2019-12-07', '19390359-2'), (525, '27.4', '42', '2019-12-07', '19390359-2'), (526, '27.4', '42', '2019-12-07', '19390359-2'), (527, '27.4', '41', '2019-12-07', '19390359-2'), (528, '27.4', '41', '2019-12-07', '19390359-2'), (529, '27.4', '41', '2019-12-07', '19390359-2'), (530, '27.4', '41', '2019-12-07', '19390359-2'), (531, '27.4', '42', '2019-12-07', '19390359-2'), (532, '27.4', '42', '2019-12-07', '19390359-2'), (533, '27.4', '42', '2019-12-07', '19390359-2'), (534, '27.4', '41', '2019-12-07', '19390359-2'), (535, '27.4', '41', '2019-12-07', '19390359-2'), (536, '27.4', '41', '2019-12-07', '19390359-2'), (537, '27.5', '41', '2019-12-07', '19390359-2'), (538, '27.4', '41', '2019-12-07', '19390359-2'), (539, '27.4', '41', '2019-12-07', '19390359-2'), (540, '27.4', '41', '2019-12-07', '19390359-2'), (541, '27.4', '41', '2019-12-07', '19390359-2'), (542, '27.2', '41', '2019-12-07', '19390359-2'), (543, '27.2', '41', '2019-12-07', '19390359-2'), (544, '27.2', '41', '2019-12-07', '19390359-2'), (545, '27.3', '41', '2019-12-07', '19390359-2'), (546, '27.2', '41', '2019-12-07', '19390359-2'), (547, '27.3', '41', '2019-12-07', '19390359-2'), (548, '27.3', '41', '2019-12-07', '19390359-2'), (549, '27.3', '41', '2019-12-07', '19390359-2'), (550, '27.3', '41', '2019-12-07', '19390359-2'), (551, '27.3', '41', '2019-12-07', '19390359-2'), (552, '27.3', '41', '2019-12-07', '19390359-2'), (553, '27.3', '41', '2019-12-07', '19390359-2'), (554, '27.4', '41', '2019-12-07', '19390359-2'), (555, '27.3', '41', '2019-12-07', '19390359-2'), (556, '27.4', '41', '2019-12-07', '19390359-2'), (557, '27.3', '41', '2019-12-07', '19390359-2'), (558, '27.3', '41', '2019-12-07', '19390359-2'), (559, '27.4', '41', '2019-12-07', '19390359-2'), (560, '27.4', '45', '2019-12-09', '19390359-2'), (561, '27.3', '46', '2019-12-09', '19390359-2'), (562, '27.3', '46', '2019-12-09', '19390359-2'), (563, '27.4', '46', '2019-12-09', '19390359-2'), (564, '27.4', '46', '2019-12-09', '19390359-2'), (565, '27.4', '46', '2019-12-09', '19390359-2'), (566, '27.4', '46', '2019-12-09', '19390359-2'), (567, '27.5', '47', '2019-12-09', '19390359-2'), (568, '27.4', '46', '2019-12-09', '19390359-2'), (569, '27.6', '47', '2019-12-09', '19390359-2'), (570, '27.5', '47', '2019-12-09', '19390359-2'), (571, '27.6', '47', '2019-12-09', '19390359-2'), (572, '27.5', '47', '2019-12-09', '19390359-2'), (573, '28.1', '93', '2019-12-09', '19390359-2'), (574, '28.6', '61', '2019-12-09', '19390359-2'), (575, '28.6', '56', '2019-12-09', '19390359-2'), (576, '28.5', '53', '2019-12-09', '19390359-2'), (577, '23.6', '54', '2019-12-09', '19390359-2'), (578, '23.5', '55', '2019-12-09', '19390359-2'), (579, '23.5', '55', '2019-12-09', '19390359-2'), (580, '23.5', '55', '2019-12-09', '19390359-2'), (581, '23.5', '55', '2019-12-09', '19390359-2'), (582, '23.5', '55', '2019-12-09', '19390359-2'), (583, '23.5', '55', '2019-12-09', '19390359-2'), (584, '23.5', '56', '2019-12-09', '19390359-2'), (585, '23.6', '65', '2019-12-09', '19390359-2'), (586, '23.6', '61', '2019-12-09', '19390359-2'), (587, '23.7', '60', '2019-12-09', '19390359-2'), (588, '23.7', '59', '2019-12-09', '19390359-2'), (589, '23.7', '57', '2019-12-09', '19390359-2'), (590, '23.8', '57', '2019-12-09', '19390359-2'), (591, '23.8', '56', '2019-12-09', '19390359-2'), (592, '23.9', '55', '2019-12-09', '19390359-2'), (593, '23.9', '55', '2019-12-09', '19390359-2'), (594, '24', '54', '2019-12-09', '19390359-2'), (595, '24', '54', '2019-12-09', '19390359-2'), (596, '24', '53', '2019-12-09', '19390359-2'), (597, '24', '53', '2019-12-09', '19390359-2'), (598, '24', '53', '2019-12-09', '8089127-K'), (599, '22.8', '58', '2019-12-09', '19390359-2'), (600, '21.9', '60', '2019-12-09', '19390359-2'), (601, '21.9', '60', '2019-12-09', '19390359-2'), (602, '21.5', '62', '2019-12-09', '19390359-2'), (603, '21.5', '62', '2019-12-09', '19390359-2'), (604, '21.3', '65', '2019-12-09', '19390359-2'), (605, '21.7', '65', '2019-12-09', '19390359-2'), (606, '20.8', '67', '2019-12-09', '19390359-2'), (607, '20.9', '60', '2019-12-09', '19390359-2'), (608, '21.7', '56', '2019-12-09', '19390359-2'), (609, '21.7', '55', '2019-12-09', '19390359-2'), (610, '21.7', '55', '2019-12-09', '19390359-2'), (611, '21.8', '55', '2019-12-09', '19390359-2'), (612, '21.9', '55', '2019-12-09', '19390359-2'), (613, '21.8', '54', '2019-12-09', '19390359-2'), (614, '21.8', '54', '2019-12-09', '19390359-2'), (615, '21.7', '51', '2019-12-09', '19390359-2'), (616, '21.7', '51', '2019-12-09', '19390359-2'), (617, '21.8', '51', '2019-12-09', '19390359-2'), (618, '21.8', '51', '2019-12-09', '19390359-2'), (619, '21.7', '51', '2019-12-09', '19390359-2'), (620, '21.8', '51', '2019-12-09', '19390359-2'), (621, '21.8', '51', '2019-12-09', '19390359-2'), (622, '21.8', '51', '2019-12-09', '19390359-2'), (623, '21.9', '51', '2019-12-09', '19390359-2'), (624, '22.2', '52', '2019-12-09', '19390359-2'), (625, '22.6', '52', '2019-12-09', '19390359-2'), (626, '22.9', '51', '2019-12-09', '19390359-2'), (627, '23', '50', '2019-12-09', '19390359-2'), (628, '23.1', '50', '2019-12-09', '19390359-2'), (629, '23.3', '48', '2019-12-09', '19390359-2'), (630, '22.5', '54', '2019-12-09', '19390359-2'), (631, '22.6', '54', '2019-12-09', '19390359-2'), (632, '22.6', '54', '2019-12-09', '19390359-2'), (633, '22.6', '54', '2019-12-09', '19390359-2'), (634, '22.6', '54', '2019-12-09', '19390359-2'), (635, '22.6', '54', '2019-12-09', '19390359-2'), (636, '22.6', '54', '2019-12-09', '19390359-2'), (637, '22.6', '54', '2019-12-09', '19390359-2'), (638, '22.7', '54', '2019-12-09', '19390359-2'), (639, '22.6', '54', '2019-12-09', '19390359-2'), (640, '22.6', '54', '2019-12-09', '19390359-2'), (641, '22.6', '54', '2019-12-09', '19390359-2'), (642, '22.6', '54', '2019-12-09', '19390359-2'), (643, '22.6', '54', '2019-12-09', '19390359-2'), (644, '22.6', '54', '2019-12-09', '19390359-2'), (645, '22.6', '54', '2019-12-09', '19390359-2'), (646, '22.6', '54', '2019-12-09', '19390359-2'), (647, '22.6', '54', '2019-12-09', '19390359-2'), (648, '22.6', '54', '2019-12-09', '19390359-2'), (649, '22.6', '54', '2019-12-09', '19390359-2'), (650, '22.6', '54', '2019-12-09', '19390359-2'), (651, '22.6', '54', '2019-12-09', '19390359-2'), (652, '22.7', '54', '2019-12-09', '19390359-2'), (653, '22.6', '54', '2019-12-09', '19390359-2'), (654, '22.6', '54', '2019-12-09', '19390359-2'), (655, '22.6', '54', '2019-12-09', '19390359-2'), (656, '22.6', '54', '2019-12-09', '19390359-2'), (657, '22.6', '54', '2019-12-09', '19390359-2'), (658, '22.6', '54', '2019-12-09', '19390359-2'), (659, '22.6', '54', '2019-12-09', '19390359-2'), (660, '22.6', '54', '2019-12-09', '19390359-2'), (661, '22.6', '54', '2019-12-09', '19390359-2'), (662, '22.6', '54', '2019-12-09', '19390359-2'), (663, '22.6', '54', '2019-12-09', '19390359-2'), (664, '22.6', '54', '2019-12-09', '19390359-2'), (665, '22.6', '54', '2019-12-09', '19390359-2'), (666, '22.6', '54', '2019-12-09', '19390359-2'), (667, '22.6', '54', '2019-12-09', '19390359-2'), (668, '22.6', '54', '2019-12-09', '19390359-2'), (669, '22.7', '54', '2019-12-09', '19390359-2'), (670, '22.6', '54', '2019-12-09', '19390359-2'), (671, '22.6', '54', '2019-12-09', '19390359-2'), (672, '22.6', '54', '2019-12-09', '19390359-2'), (673, '22.6', '54', '2019-12-09', '19390359-2'), (674, '22.6', '54', '2019-12-09', '19390359-2'), (675, '22.6', '54', '2019-12-09', '19390359-2'), (676, '22.6', '54', '2019-12-09', '19390359-2'), (677, '22.6', '54', '2019-12-09', '19390359-2'), (678, '22.6', '54', '2019-12-09', '19390359-2'), (679, '22.6', '54', '2019-12-09', '19390359-2'), (680, '22.6', '54', '2019-12-09', '19390359-2'), (681, '22.6', '54', '2019-12-09', '19390359-2'), (682, '22.6', '54', '2019-12-09', '19390359-2'), (683, '22.6', '54', '2019-12-09', '19390359-2'), (684, '22.6', '54', '2019-12-09', '19390359-2'), (685, '22.6', '54', '2019-12-09', '19390359-2'), (686, '22.6', '54', '2019-12-09', '19390359-2'), (687, '22.6', '54', '2019-12-09', '19390359-2'), (688, '22.6', '54', '2019-12-09', '19390359-2'), (689, '22.6', '54', '2019-12-09', '19390359-2'), (690, '22.6', '54', '2019-12-09', '19390359-2'), (691, '22.6', '54', '2019-12-09', '19390359-2'), (692, '22.6', '54', '2019-12-09', '19390359-2'), (693, '22.6', '54', '2019-12-09', '19390359-2'), (694, '22.6', '54', '2019-12-09', '19390359-2'), (695, '22.6', '54', '2019-12-09', '19390359-2'), (696, '22.6', '54', '2019-12-09', '19390359-2'), (697, '22.6', '54', '2019-12-09', '19390359-2'), (698, '22.6', '54', '2019-12-09', '19390359-2'), (699, '22.6', '54', '2019-12-09', '19390359-2'), (700, '22.6', '54', '2019-12-09', '19390359-2'), (701, '22.6', '54', '2019-12-09', '19390359-2'), (702, '22.6', '54', '2019-12-09', '19390359-2'), (703, '22.6', '54', '2019-12-09', '19390359-2'), (704, '22.6', '54', '2019-12-09', '19390359-2'), (705, '22.6', '54', '2019-12-09', '19390359-2'), (706, '22.6', '54', '2019-12-09', '19390359-2'), (707, '22.6', '54', '2019-12-09', '19390359-2'), (708, '22.6', '54', '2019-12-09', '19390359-2'), (709, '22.6', '54', '2019-12-09', '19390359-2'), (710, '22.6', '54', '2019-12-09', '19390359-2'), (711, '22.6', '54', '2019-12-09', '19390359-2'), (712, '22.6', '54', '2019-12-09', '19390359-2'), (713, '22.6', '54', '2019-12-09', '19390359-2'), (714, '22.6', '54', '2019-12-09', '19390359-2'), (715, '22.6', '54', '2019-12-09', '19390359-2'), (716, '22.6', '54', '2019-12-09', '19390359-2'), (717, '22.6', '54', '2019-12-09', '19390359-2'), (718, '22.6', '54', '2019-12-09', '19390359-2'), (719, '22.6', '54', '2019-12-09', '19390359-2'), (720, '22.6', '54', '2019-12-09', '19390359-2'), (721, '22.6', '54', '2019-12-09', '19390359-2'), (722, '22.6', '54', '2019-12-09', '19390359-2'), (723, '22.6', '54', '2019-12-09', '19390359-2'), (724, '22.6', '54', '2019-12-09', '19390359-2'), (725, '22.6', '54', '2019-12-09', '19390359-2'), (726, '22.6', '54', '2019-12-09', '19390359-2'), (727, '22.6', '55', '2019-12-09', '19390359-2'), (728, '22.6', '54', '2019-12-09', '19390359-2'), (729, '22.6', '54', '2019-12-09', '19390359-2'), (730, '22.6', '54', '2019-12-09', '19390359-2'), (731, '22.6', '54', '2019-12-09', '19390359-2'), (732, '22.6', '54', '2019-12-09', '19390359-2'), (733, '22.6', '54', '2019-12-09', '19390359-2'), (734, '22.6', '54', '2019-12-09', '19390359-2'), (735, '22.6', '54', '2019-12-09', '19390359-2'), (736, '22.6', '54', '2019-12-09', '19390359-2'), (737, '22.6', '54', '2019-12-09', '19390359-2'), (738, '22.6', '54', '2019-12-09', '19390359-2'), (739, '22.6', '54', '2019-12-09', '19390359-2'), (740, '22.6', '54', '2019-12-09', '19390359-2'), (741, '22.6', '54', '2019-12-09', '19390359-2'), (742, '22.6', '54', '2019-12-09', '19390359-2'), (743, '22.6', '54', '2019-12-09', '19390359-2'), (744, '22.6', '54', '2019-12-09', '19390359-2'), (745, '22.6', '54', '2019-12-09', '19390359-2'), (746, '22.6', '54', '2019-12-09', '19390359-2'), (747, '22.6', '54', '2019-12-09', '19390359-2'), (748, '22.6', '54', '2019-12-09', '19390359-2'), (749, '22.6', '54', '2019-12-09', '19390359-2'), (750, '22.5', '54', '2019-12-09', '19390359-2'), (751, '22.5', '54', '2019-12-09', '19390359-2'), (752, '22.5', '54', '2019-12-09', '19390359-2'), (753, '22.5', '54', '2019-12-09', '19390359-2'), (754, '22.6', '54', '2019-12-09', '19390359-2'), (755, '22.5', '55', '2019-12-09', '19390359-2'), (756, '22.5', '54', '2019-12-09', '19390359-2'), (757, '22.5', '55', '2019-12-09', '19390359-2'), (758, '22.5', '55', '2019-12-09', '19390359-2'), (759, '22.5', '55', '2019-12-09', '19390359-2'), (760, '22.5', '55', '2019-12-09', '19390359-2'), (761, '22.4', '55', '2019-12-09', '19390359-2'), (762, '22.5', '55', '2019-12-09', '19390359-2'), (763, '22.5', '55', '2019-12-09', '19390359-2'), (764, '22.4', '55', '2019-12-09', '19390359-2'), (765, '22.4', '55', '2019-12-09', '19390359-2'), (766, '22.5', '55', '2019-12-09', '19390359-2'), (767, '26.8', '41', '2019-12-11', '19390359-2'), (768, '26.7', '41', '2019-12-11', '19390359-2'), (769, '26.7', '41', '2019-12-11', '19390359-2'), (770, '26.8', '41', '2019-12-11', '19390359-2'), (771, '26.7', '41', '2019-12-11', '19390359-2'), (772, '26.8', '41', '2019-12-11', '19390359-2'), (773, '26.8', '41', '2019-12-11', '19390359-2'), (774, '26.8', '41', '2019-12-11', '19390359-2'), (775, '26.9', '41', '2019-12-11', '19390359-2'), (776, '26.9', '41', '2019-12-11', '19390359-2'), (777, '26.9', '41', '2019-12-11', '19390359-2'), (778, '26.9', '41', '2019-12-11', '19390359-2'), (779, '26.9', '41', '2019-12-11', '19390359-2'), (780, '27.2', '40', '2019-12-11', '19390359-2'), (781, '27.2', '40', '2019-12-11', '19390359-2'), (782, '27.3', '40', '2019-12-11', '19390359-2'), (783, '27.3', '40', '2019-12-11', '19390359-2'), (784, '27.4', '40', '2019-12-11', '19390359-2'), (785, '27.3', '40', '2019-12-11', '19390359-2'), (786, '27.3', '40', '2019-12-11', '19390359-2'), (787, '27.3', '41', '2019-12-11', '19390359-2'), (788, '27.4', '41', '2019-12-11', '19390359-2'), (789, '27.4', '41', '2019-12-11', '19390359-2'), (790, '27.4', '40', '2019-12-11', '19390359-2'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `usuario` -- CREATE TABLE IF NOT EXISTS `usuario` ( `rut_usuario` varchar(50) NOT NULL DEFAULT '', `id_perfil` int(11) NOT NULL DEFAULT '0', `clave_usuario` varchar(50) NOT NULL, `estado_usuario` int(11) NOT NULL, PRIMARY KEY (`rut_usuario`,`id_perfil`), KEY `fk_id_perfil` (`id_perfil`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `usuario` -- INSERT INTO `usuario` (`rut_usuario`, `id_perfil`, `clave_usuario`, `estado_usuario`) VALUES ('12561290-3', 3, '25d55ad283aa400af464c76d713c07ad', 1), ('13124800-8', 3, '25d55ad283aa400af464c76d713c07ad', 1), ('13279880-K', 3, '25d55ad283aa400af464c76d713c07ad', 1), ('14006026-7', 3, '25d55ad283aa400af464c76d713c07ad', 0), ('15029547-5', 3, '25d55ad283aa400af464c76d713c07ad', 1), ('15499039-9', 2, '25d55ad283aa400af464c76d713c07ad', 1), ('15636837-7', 3, '25d55ad283aa400af464c76d713c07ad', 1), ('16303922-2', 1, '25d55ad283aa400af464c76d713c07ad', 0), ('16628710-3', 3, '25d55ad283aa400af464c76d713c07ad', 1), ('16825934-4', 3, 'f5bb0c8de146c67b44babbf4e6584cc0', 1), ('19154619-9', 3, '25d55ad283aa400af464c76d713c07ad', 1), ('19389252-3', 1, '4ba36d23a78c7393b4900ef38019d8ff', 1), ('19390359-2', 1, '25d55ad283aa400af464c76d713c07ad', 1), ('23943213-1', 3, '25d55ad283aa400af464c76d713c07ad', 0), ('3776670-4', 3, '25d55ad283aa400af464c76d713c07ad', 1), ('6732307-6', 3, '25d55ad283aa400af464c76d713c07ad', 1), ('7354141-7', 1, '25d55ad283aa400af464c76d713c07ad', 1), ('8089127-K', 2, '25d55ad283aa400af464c76d713c07ad', 0); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `vehiculo` -- CREATE TABLE IF NOT EXISTS `vehiculo` ( `patente_vehiculo` varchar(50) NOT NULL, `marca_vehiculo` varchar(50) NOT NULL, `modelo_vehiculo` varchar(50) NOT NULL, `ano_vehiculo` int(11) NOT NULL, `fecha_revision_tecnica_vehiculo` date NOT NULL, `estado_vehiculo` int(11) NOT NULL, PRIMARY KEY (`patente_vehiculo`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `vehiculo` -- INSERT INTO `vehiculo` (`patente_vehiculo`, `marca_vehiculo`, `modelo_vehiculo`, `ano_vehiculo`, `fecha_revision_tecnica_vehiculo`, `estado_vehiculo`) VALUES ('DZ-ST-21', 'Opel', 'C-16', 2019, '2019-06-26', 0), ('PK-08-92', 'Opel', 'C13', 1992, '2019-05-29', 1), ('S1-12-34', 'Pegueot', 'Partner', 2003, '2019-05-24', 1), ('S1-23-12', 'Citroen', 'C3', 1997, '2019-08-14', 1), ('SH-12-34', 'Opel', 'Corsa', 1996, '2019-12-27', 1), ('SH-SH-10', 'Opel', 'C-19', 2019, '2019-06-19', 1), ('TE-AS-87', 'Citroen', 'C4', 1995, '2019-06-26', 1), ('TI-XD-12', 'Opel', 'C-10', 1997, '2019-05-24', 0), ('XS-S1-23', 'Pegueot', 'W12', 2016, '2019-05-22', 1), ('XS-S1-38', 'Opel', 'Nose', 2018, '2019-07-27', 0); -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `activo_pasivo_categoria` -- ALTER TABLE `activo_pasivo_categoria` ADD CONSTRAINT `fk_activo_pasivo` FOREIGN KEY (`id_activo_pasivo`) REFERENCES `activo_pasivo` (`id_activo_pasivo`); -- -- Filtros para la tabla `activo_pasivo_detalle` -- ALTER TABLE `activo_pasivo_detalle` ADD CONSTRAINT `fk_activo_pasivo_detale` FOREIGN KEY (`id_activo_pasivo_categoria`) REFERENCES `activo_pasivo_categoria` (`id_activo_pasivo_categoria`); -- -- Filtros para la tabla `calificacion` -- ALTER TABLE `calificacion` ADD CONSTRAINT `fk_id_calificacion_rut_usuario` FOREIGN KEY (`rut_usuario`) REFERENCES `usuario` (`rut_usuario`); -- -- Filtros para la tabla `contabilidad` -- ALTER TABLE `contabilidad` ADD CONSTRAINT `fk_id_activo_pasivo_detalle_01` FOREIGN KEY (`id_activo_pasivo_detalle`) REFERENCES `activo_pasivo_detalle` (`id_activo_pasivo_detalle`), ADD CONSTRAINT `fk_rut_usuario_contabilidad` FOREIGN KEY (`rut_usuario`) REFERENCES `usuario` (`rut_usuario`); -- -- Filtros para la tabla `detalle_pedido_factura` -- ALTER TABLE `detalle_pedido_factura` ADD CONSTRAINT `fk_id_factura` FOREIGN KEY (`id_factura`) REFERENCES `factura` (`id_factura`), ADD CONSTRAINT `fk_id_producto_ii` FOREIGN KEY (`id_pedido`) REFERENCES `pedido` (`id_pedido`); -- -- Filtros para la tabla `detalle_producto_pedido` -- ALTER TABLE `detalle_producto_pedido` ADD CONSTRAINT `fk_id_producto_pedido` FOREIGN KEY (`id_producto`) REFERENCES `producto` (`id_producto`), ADD CONSTRAINT `fk_id_producto_pedido_ii` FOREIGN KEY (`id_pedido`) REFERENCES `pedido` (`id_pedido`); -- -- Filtros para la tabla `factura` -- ALTER TABLE `factura` ADD CONSTRAINT `fk_id_empresa` FOREIGN KEY (`id_empresa`) REFERENCES `empresa` (`id_empresa`), ADD CONSTRAINT `fk_id_folio` FOREIGN KEY (`id_folio`) REFERENCES `folio` (`id_folio`); -- -- Filtros para la tabla `folio` -- ALTER TABLE `folio` ADD CONSTRAINT `fk_id_caf` FOREIGN KEY (`id_caf`) REFERENCES `caf` (`id_caf`); -- -- Filtros para la tabla `insumo` -- ALTER TABLE `insumo` ADD CONSTRAINT `fk_id_descripcion_insumo` FOREIGN KEY (`id_lista_insumo`) REFERENCES `lista_insumo` (`id_lista_insumo`), ADD CONSTRAINT `fk_rut_usuario_insumo` FOREIGN KEY (`rut_usuario`) REFERENCES `usuario` (`rut_usuario`); -- -- Filtros para la tabla `mensaje` -- ALTER TABLE `mensaje` ADD CONSTRAINT `fk_rut_usuario_emisor` FOREIGN KEY (`rut_usuario_emisor`) REFERENCES `usuario` (`rut_usuario`); -- -- Filtros para la tabla `panadero` -- ALTER TABLE `panadero` ADD CONSTRAINT `fk_persona_panadero` FOREIGN KEY (`rut_persona`) REFERENCES `persona` (`rut_persona`); -- -- Filtros para la tabla `pedido` -- ALTER TABLE `pedido` ADD CONSTRAINT `fk_rut_usuario_caf` FOREIGN KEY (`rut_usuario`) REFERENCES `usuario` (`rut_usuario`); -- -- Filtros para la tabla `repartidor` -- ALTER TABLE `repartidor` ADD CONSTRAINT `fk_persona_repartidor` FOREIGN KEY (`rut_persona`) REFERENCES `persona` (`rut_persona`); -- -- Filtros para la tabla `repartidor_vehiculo` -- ALTER TABLE `repartidor_vehiculo` ADD CONSTRAINT `fk_rut_persona_vehiculo` FOREIGN KEY (`rut_persona`) REFERENCES `repartidor` (`rut_persona`), ADD CONSTRAINT `fk_vehiculo_persona` FOREIGN KEY (`patente_vehiculo`) REFERENCES `vehiculo` (`patente_vehiculo`); -- -- Filtros para la tabla `ruta` -- ALTER TABLE `ruta` ADD CONSTRAINT `fk_rut_persona_ruta` FOREIGN KEY (`rut_persona_ruta`) REFERENCES `repartidor` (`rut_persona`); -- -- Filtros para la tabla `sensor` -- ALTER TABLE `sensor` ADD CONSTRAINT `fk_rut_usuario_sensor` FOREIGN KEY (`rut_usuario`) REFERENCES `usuario` (`rut_usuario`); -- -- Filtros para la tabla `usuario` -- ALTER TABLE `usuario` ADD CONSTRAINT `fk_id_perfil` FOREIGN KEY (`id_perfil`) REFERENCES `perfil` (`id_perfil`), ADD CONSTRAINT `fk_rut_usuario` FOREIGN KEY (`rut_usuario`) REFERENCES `persona` (`rut_persona`); /*!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 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 21, 2017 at 11:53 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.21 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: `shoppingcart` -- -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2017_07_07_154737_create_products_table', 1), (2, '2017_07_07_183301_create_user_table', 1), (3, '2017_07_12_141456_create_orders_table', 2); -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE `orders` ( `id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `user_id` int(11) NOT NULL, `cart` text COLLATE utf8mb4_unicode_ci NOT NULL, `address` text COLLATE utf8mb4_unicode_ci NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `payment_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE `products` ( `id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `imagePath` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `title` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `description` text COLLATE utf8mb4_unicode_ci NOT NULL, `price` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `products` -- INSERT INTO `products` (`id`, `created_at`, `updated_at`, `imagePath`, `title`, `description`, `price`) VALUES (1, '2017-07-08 14:10:06', '2017-07-08 14:10:06', 'http://img.autobytel.com/car-reviews/autobytel/11694-good-looking-sports-cars/2016-Ford-Mustang-GT-burnout-red-tire-smoke.jpg', 'Red Car', 'This is a fantastic and speed car', 100), (2, '2017-07-08 14:10:06', '2017-07-08 14:10:06', 'http://s.hswstatic.com/gif/2017-Chevrolet-Corvette-Grand-Sport.jpg', 'Blue Car', 'This is a good, helpful and speed car', 110), (3, '2017-07-08 14:10:06', '2017-07-08 14:10:06', 'https://static.pexels.com/photos/24353/pexels-photo.jpg', 'White Car', 'This is a great and nice car', 90), (4, '2017-07-08 14:10:06', '2017-07-08 14:10:06', 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSkxl5stHNDQAAvsL2Ss-9YFpuW7XxzQuL8zioorc7y3JcZFe_gRA', 'Orange Car', 'This is a fantastic and speed car', 130), (5, '2017-07-08 14:10:06', '2017-07-08 14:10:06', 'http://i2.cdn.cnn.com/cnnnext/dam/assets/161217142809-2017-cars-lexus-2-super-169.jpg', 'Grey Car', 'This is a woow and good car', 150); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `created_at`, `updated_at`, `email`, `password`, `remember_token`) VALUES (1, '2017-07-08 14:11:02', '2017-07-08 14:11:02', '<EMAIL>', <PASSWORD>', 'PLds8CbxRaxf6GtIeWFIszSrvyWcRrKTeunx7LduVqzWcO0fDmOXhOCuCkeb'); -- -- Indexes for dumped tables -- -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `orders` -- ALTER TABLE `orders` ADD PRIMARY KEY (`id`); -- -- Indexes for table `products` -- ALTER TABLE `products` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `orders` -- ALTER TABLE `orders` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `products` -- ALTER TABLE `products` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; /*!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 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; LOCK TABLES `resource_class` WRITE; /*!40000 ALTER TABLE `resource_class` DISABLE KEYS */; INSERT INTO `resource_class` VALUES (1,NULL,1,'Agent','Agent','A resource that acts or has the power to act.'), (2,NULL,1,'AgentClass','Agent Class','A group of agents.'), (3,NULL,1,'BibliographicResource','Bibliographic Resource','A book, article, or other documentary resource.'), (4,NULL,1,'FileFormat','File Format','A digital resource format.'), (5,NULL,1,'Frequency','Frequency','A rate at which something recurs.'), (6,NULL,1,'Jurisdiction','Jurisdiction','The extent or range of judicial, law enforcement, or other authority.'), (7,NULL,1,'LicenseDocument','License Document','A legal document giving official permission to do something with a Resource.'), (8,NULL,1,'LinguisticSystem','Linguistic System','A system of signs, symbols, sounds, gestures, or rules used in communication.'), (9,NULL,1,'Location','Location','A spatial region or named place.'), (10,NULL,1,'LocationPeriodOrJurisdiction','Location, Period, or Jurisdiction','A location, period of time, or jurisdiction.'), (11,NULL,1,'MediaType','Media Type','A file format or physical medium.'), (12,NULL,1,'MediaTypeOrExtent','Media Type or Extent','A media type or extent.'), (13,NULL,1,'MethodOfInstruction','Method of Instruction','A process that is used to engender knowledge, attitudes, and skills.'), (14,NULL,1,'MethodOfAccrual','Method of Accrual','A method by which resources are added to a collection.'), (15,NULL,1,'PeriodOfTime','Period of Time','An interval of time that is named or defined by its start and end dates.'), (16,NULL,1,'PhysicalMedium','Physical Medium','A physical material or carrier.'), (17,NULL,1,'PhysicalResource','Physical Resource','A material thing.'), (18,NULL,1,'Policy','Policy','A plan or course of action by an authority, intended to influence and determine decisions, actions, and other matters.'), (19,NULL,1,'ProvenanceStatement','Provenance Statement','A statement of any changes in ownership and custody of a resource since its creation that are significant for its authenticity, integrity, and interpretation.'), (20,NULL,1,'RightsStatement','Rights Statement','A statement about the intellectual property rights (IPR) held in or over a Resource, a legal document giving official permission to do something with a resource, or a statement about access rights.'), (21,NULL,1,'SizeOrDuration','Size or Duration','A dimension or extent, or a time taken to play or execute.'), (22,NULL,1,'Standard','Standard','A basis for comparison; a reference point against which other things can be evaluated.'), (23,NULL,2,'Collection','Collection','An aggregation of resources.'), (24,NULL,2,'Dataset','Dataset','Data encoded in a defined structure.'), (25,NULL,2,'Event','Event','A non-persistent, time-based occurrence.'), (26,NULL,2,'Image','Image','A visual representation other than text.'), (27,NULL,2,'InteractiveResource','Interactive Resource','A resource requiring interaction from the user to be understood, executed, or experienced.'), (28,NULL,2,'Service','Service','A system that provides one or more functions.'), (29,NULL,2,'Software','Software','A computer program in source or compiled form.'), (30,NULL,2,'Sound','Sound','A resource primarily intended to be heard.'), (31,NULL,2,'Text','Text','A resource consisting primarily of words for reading.'), (32,NULL,2,'PhysicalObject','Physical Object','An inanimate, three-dimensional object or substance.'), (33,NULL,2,'StillImage','Still Image','A static visual representation.'), (34,NULL,2,'MovingImage','Moving Image','A series of visual representations imparting an impression of motion when shown in succession.'), (35,NULL,3,'AcademicArticle','Academic Article','A scholarly academic article, typically published in a journal.'), (36,NULL,3,'Article','Article','A written composition in prose, usually nonfiction, on a specific topic, forming an independent part of a book or other publication, as a newspaper or magazine.'), (37,NULL,3,'AudioDocument','audio document','An audio document; aka record.'), (38,NULL,3,'AudioVisualDocument','audio-visual document','An audio-visual document; film, video, and so forth.'), (39,NULL,3,'Bill','Bill','Draft legislation presented for discussion to a legal body.'), (40,NULL,3,'Book','Book','A written or printed work of fiction or nonfiction, usually on sheets of paper fastened or bound together within covers.'), (41,NULL,3,'BookSection','Book Section','A section of a book.'), (42,NULL,3,'Brief','Brief','A written argument submitted to a court.'), (43,NULL,3,'Chapter','Chapter','A chapter of a book.'), (44,NULL,3,'Code','Code','A collection of statutes.'), (45,NULL,3,'CollectedDocument','Collected Document','A document that simultaneously contains other documents.'), (46,NULL,3,'Collection','Collection','A collection of Documents or Collections'), (47,NULL,3,'Conference','Conference','A meeting for consultation or discussion.'), (48,NULL,3,'CourtReporter','<NAME>','A collection of legal cases.'), (49,NULL,3,'Document','Document','A document (noun) is a bounded physical representation of body of information designed with the capacity (and usually intent) to communicate. A document may manifest symbolic, diagrammatic or sensory-representational information.'), (50,NULL,3,'DocumentPart','document part','a distinct part of a larger document or collected document.'), (51,NULL,3,'DocumentStatus','Document Status','The status of the publication of a document.'), (52,NULL,3,'EditedBook','Edited Book','An edited book.'), (53,NULL,3,'Email','EMail','A written communication addressed to a person or organization and transmitted electronically.'), (54,NULL,3,'Event','Event',NULL), (55,NULL,3,'Excerpt','Excerpt','A passage selected from a larger work.'), (56,NULL,3,'Film','Film','aka movie.'), (57,NULL,3,'Hearing','Hearing','An instance or a session in which testimony and arguments are presented, esp. before an official, as a judge in a lawsuit.'), (58,NULL,3,'Image','Image','A document that presents visual or diagrammatic information.'), (59,NULL,3,'Interview','Interview','A formalized discussion between two or more people.'), (60,NULL,3,'Issue','Issue','something that is printed or published and distributed, esp. a given number of a periodical'), (61,NULL,3,'Journal','Journal','A periodical of scholarly journal Articles.'), (62,NULL,3,'LegalCaseDocument','Legal Case Document','A document accompanying a legal case.'), (63,NULL,3,'LegalDecision','Decision','A document containing an authoritative determination (as a decree or judgment) made after consideration of facts or law.'), (64,NULL,3,'LegalDocument','Legal Document','A legal document; for example, a court decision, a brief, and so forth.'), (65,NULL,3,'Legislation','Legislation','A legal document proposing or enacting a law or a group of laws.'), (66,NULL,3,'Letter','Letter','A written or printed communication addressed to a person or organization and usually transmitted by mail.'), (67,NULL,3,'Magazine','Magazine','A periodical of magazine Articles. A magazine is a publication that is issued periodically, usually bound in a paper cover, and typically contains essays, stories, poems, etc., by many writers, and often photographs and drawings, frequently specializing in a particular subject or area, as hobbies, news, or sports.'), (68,NULL,3,'Manual','Manual','A small reference book, especially one giving instructions.'), (69,NULL,3,'Manuscript','Manuscript','An unpublished Document, which may also be submitted to a publisher for publication.'), (70,NULL,3,'Map','Map','A graphical depiction of geographic features.'), (71,NULL,3,'MultiVolumeBook','Multivolume Book','A loose, thematic, collection of Documents, often Books.'), (72,NULL,3,'Newspaper','Newspaper','A periodical of documents, usually issued daily or weekly, containing current news, editorials, feature articles, and usually advertising.'), (73,NULL,3,'Note','Note','Notes or annotations about a resource.'), (74,NULL,3,'Patent','Patent','A document describing the exclusive right granted by a government to an inventor to manufacture, use, or sell an invention for a certain number of years.'), (75,NULL,3,'Performance','Performance','A public performance.'), (76,NULL,3,'Periodical','Periodical','A group of related documents issued at regular intervals.'), (77,NULL,3,'PersonalCommunication','Personal Communication','A communication between an agent and one or more specific recipients.'), (78,NULL,3,'PersonalCommunicationDocument','Personal Communication Document','A personal communication manifested in some document.'), (79,NULL,3,'Proceedings','Proceedings','A compilation of documents published from an event, such as a conference.'), (80,NULL,3,'Quote','Quote','An excerpted collection of words.'), (81,NULL,3,'ReferenceSource','Reference Source','A document that presents authoritative reference information, such as a dictionary or encylopedia .'), (82,NULL,3,'Report','Report','A document describing an account or statement describing in detail an event, situation, or the like, usually as the result of observation, inquiry, etc..'), (83,NULL,3,'Series','Series','A loose, thematic, collection of Documents, often Books.'), (84,NULL,3,'Slide','Slide','A slide in a slideshow'), (85,NULL,3,'Slideshow','Slideshow','A presentation of a series of slides, usually presented in front of an audience with written text and images.'), (86,NULL,3,'Standard','Standard','A document describing a standard'), (87,NULL,3,'Statute','Statute','A bill enacted into law.'), (88,NULL,3,'Thesis','Thesis','A document created to summarize research findings associated with the completion of an academic degree.'), (89,NULL,3,'ThesisDegree','Thesis degree','The academic degree of a Thesis'), (90,NULL,3,'Webpage','Webpage','A web page is an online document available (at least initially) on the world wide web. A web page is written first and foremost to appear on the web, as distinct from other online resources such as books, manuscripts or audio documents which use the web primarily as a distribution mechanism alongside other more traditional methods such as print.'), (91,NULL,3,'Website','Website','A group of Webpages accessible on the Web.'), (92,NULL,3,'Workshop','Workshop','A seminar, discussion group, or the like, that emphasizes zxchange of ideas and the demonstration and application of techniques, skills, etc.'), (93,NULL,4,'LabelProperty','Label Property','A foaf:LabelProperty is any RDF property with texual values that serve as labels.'), (94,NULL,4,'Person','Person','A person.'), (95,NULL,4,'Agent','Agent','An agent (eg. person, group, software or physical artifact).'), (96,NULL,4,'Document','Document','A document.'), (97,NULL,4,'Organization','Organization','An organization.'), (98,NULL,4,'Group','Group','A class of Agents.'), (99,NULL,4,'Project','Project','A project (a collective endeavour of some kind).'), (100,NULL,4,'Image','Image','An image.'), (101,NULL,4,'PersonalProfileDocument','PersonalProfileDocument','A personal profile RDF document.'), (102,NULL,4,'OnlineAccount','Online Account','An online account.'), (103,NULL,4,'OnlineGamingAccount','Online Gaming Account','An online gaming account.'), (104,NULL,4,'OnlineEcommerceAccount','Online E-commerce Account','An online e-commerce account.'), (105,NULL,4,'OnlineChatAccount','Online Chat Account','An online chat account.'); /*!40000 ALTER TABLE `resource_class` ENABLE KEYS */; UNLOCK TABLES;
{{ config(schema="_AIRBYTE_TEST_NORMALIZATION", tags=["nested-intermediate"]) }} -- SQL model to build a hash column based on the values of this record select *, {{ dbt_utils.surrogate_key([ '_AIRBYTE_CONFLICT_STREAM_ARRAY_HASHID', array_to_string('CONFLICT_STREAM_NAME'), ]) }} as _AIRBYTE_CONFLICT_STREAM_ARRAY_2_HASHID from {{ ref('CONFLICT_STREAM_ARRAY_CONFLICT_STREAM_ARRAY_AB2') }} -- CONFLICT_STREAM_ARRAY at conflict_stream_array/conflict_stream_array
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 19, 2019 at 05:29 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 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: `tes` -- -- -------------------------------------------------------- -- -- Table structure for table `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `nama` varchar(100) NOT NULL, `alamat` varchar(100) NOT NULL, `usia` varchar(100) NOT NULL, `telepon` varchar(100) NOT NULL, `email` varchar(100) NOT NULL, `password` varchar(100) NOT NULL, `remember_token` varchar(100) DEFAULT NULL, `role` enum('administrator','officer','user') NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `user` -- INSERT INTO `user` (`id`, `nama`, `alamat`, `usia`, `telepon`, `email`, `password`, `remember_token`, `role`, `created_at`, `updated_at`) VALUES (4, 'surya', 'padang', '22', '085212341234', '<EMAIL>', '$2y$10$FzzthCdSAkoCx3AAvYW9h.8m8HAMDH75Wrikrk9JqHffZlOC5owie', NULL, 'administrator', '2019-12-17 00:53:56', '2019-12-17 00:53:56'), (5, 'daren', 'jakarta', '23', '0852', '<EMAIL>', '$2y$10$1kv.oeth.BS4ipqJ4y8AReH7cAoBMV2TcBOFfr2vbdto7eKnWGcrm', NULL, 'officer', '2019-12-17 01:00:18', '2019-12-17 01:00:18'), (6, 'hafizh', 'malang', '25', '0876544', '<EMAIL>', '$2y$10$Y3xBVfQJBVnnxU2QZLjEKOqNVsG16z6fdMXa8pPBL4TgcisNyBliW', NULL, 'user', '2019-12-17 01:00:41', '2019-12-17 01:00:41'), (7, 'tes', 'tes', '11', '0988', '<EMAIL>', <PASSWORD>', NULL, 'administrator', '2019-12-17 01:32:53', '2019-12-17 01:32:53'), (8, 'tesss', 'tesss', '222', '977', '<EMAIL>', '$2y$10$KomrKjSgshf39knrbWMLy.sHfPJMLT.O7WOd46BdlK28vRKZGlXj2', NULL, 'officer', '2019-12-17 01:33:43', '2019-12-17 01:33:43'); -- -- Indexes for dumped tables -- -- -- Indexes for table `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
ALTER TABLE organizations ADD COLUMN setting_step SMALLINT;
USE employees_db; DROP DATABASE IF EXISTS employees_db; CREATE DATABASE employees_db; USE employees_db; CREATE TABLE departments ( id INT AUTO_INCREMENT NOT NULL, department varchar (30) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE roles ( role_id int AUTO_INCREMENT NOT NULL, title VARCHAR (30) NOT NULL, salary DECIMAL (10, 2) NOT NULL, department_id INT NOT NULL, PRIMARY KEY (role_id), FOREIGN KEY (department_id) REFERENCES departments(id) ); CREATE TABLE employees ( employee_id int AUTO_INCREMENT NOT NULL, role_id INT NOT NULL, manager_id INT, first_name VARCHAR (30) NOT NULL, last_name VARCHAR (30) NOT NULL, PRIMARY KEY (employee_id), FOREIGN KEY (role_id) REFERENCES roles(role_id), FOREIGN KEY (manager_id) REFERENCES employees(employee_id) ); INSERT INTO departments (department) VALUES ("Sales"), ("Finance"), ("Legal"), ("Engineering"); INSERT INTO roles (title, salary, department_id) VALUES ("Developer", 120000, 4), ("Laywer", 150000, 3), ("CFO", 80000, 2), ("Salesman", 50000, 1); INSERT INTO employees (role_id, first_name, last_name, manager_id) VALUES (1, "Tylor", "Kolbeck", null), (4, "Bob", "Marley", 1);
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Počítač: 127.0.0.1 -- Vytvořeno: Ned 11. říj 2020, 13:37 -- Verze serveru: 10.4.6-MariaDB -- Verze PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Databáze: `knihy_os` -- -- -------------------------------------------------------- -- -- Struktura tabulky `kategorie` -- CREATE TABLE `kategorie` ( `id_kategorie` int(11) NOT NULL, `kategorie` varchar(100) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Vypisuji data pro tabulku `kategorie` -- INSERT INTO `kategorie` (`id_kategorie`, `kategorie`) VALUES (1, 'Světová a česká literatura do konce 18. století'), (2, 'Světová a česká 19. století'), (3, 'Světová literatura 20. a 21. století'), (4, 'Česká literatura 20. a 21. století'); -- -------------------------------------------------------- -- -- Struktura tabulky `knihy` -- CREATE TABLE `knihy` ( `idknihy` int(11) NOT NULL, `nazev_knihy` varchar(90) DEFAULT NULL, `autor` varchar(45) DEFAULT NULL, `anotace` varchar(250) DEFAULT NULL, `kategorie_id_kategorie` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Vypisuji data pro tabulku `knihy` -- INSERT INTO `knihy` (`idknihy`, `nazev_knihy`, `autor`, `anotace`, `kategorie_id_kategorie`) VALUES (1, '<NAME>', '<NAME>', 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla quis diam. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat. Vivamus porttitor t', 1), (2, 'Labyr<NAME>ta a r<NAME>', '<NAME>', '', 1), (3, '<NAME>', '<NAME>', '', 2), (4, '<NAME>', '<NAME>', '', 2), (5, '<NAME>', '<NAME>', '', 2), (6, 'Nora', '<NAME>', '', 2), (7, '<NAME>', '<NAME>', '', 2), (8, 'Cizinec', '<NAME>', '', 2), (9, 'Milenec lady Chatterleyové', '<NAME>', '', 2), (10, 'Proměna', 'KafkaFranz', '', 2), (11, '<NAME>', '<NAME>', '', 3), (12, 'Na západní frontě klid', '<NAME>', '', 3), (13, 'Horalka', 'Moravia Alberto', '', 3), (14, '<NAME>', '<NAME>', '', 3), (15, 'Povídky z jedné kapsy', '<NAME>', '', 3), (16, 'Válka s mloky', '<NAME>', '', 4), (17, 'Krysař', '<NAME>', '', 4), (18, '<NAME>', '<NAME>', '', 4), (19, 'Ostře sledované vlaky', '<NAME>', '', 4), (20, 'Staré řecké báje a pověsti', '<NAME>', '', 4); -- -------------------------------------------------------- -- -- Struktura tabulky `menu` -- CREATE TABLE `menu` ( `id_menu` int(11) NOT NULL, `polozka_menu` varchar(45) DEFAULT NULL, `display_name` char(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Vypisuji data pro tabulku `menu` -- INSERT INTO `menu` (`id_menu`, `polozka_menu`, `display_name`) VALUES (8, 'Domů', ''), (9, 'Autoři', 'autori'), (10, 'Díla', 'dila'); -- -- Klíče pro exportované tabulky -- -- -- Klíče pro tabulku `kategorie` -- ALTER TABLE `kategorie` ADD PRIMARY KEY (`id_kategorie`); -- -- Klíče pro tabulku `knihy` -- ALTER TABLE `knihy` ADD PRIMARY KEY (`idknihy`); -- -- Klíče pro tabulku `menu` -- ALTER TABLE `menu` ADD PRIMARY KEY (`id_menu`); -- -- AUTO_INCREMENT pro tabulky -- -- -- AUTO_INCREMENT pro tabulku `kategorie` -- ALTER TABLE `kategorie` MODIFY `id_kategorie` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT pro tabulku `knihy` -- ALTER TABLE `knihy` MODIFY `idknihy` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=21; -- -- AUTO_INCREMENT pro tabulku `menu` -- ALTER TABLE `menu` MODIFY `id_menu` 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 */;
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 27, 2016 at 10:42 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.6.24 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: `news` -- -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE `categories` ( `category_id` int(11) NOT NULL, `name` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `categories` -- INSERT INTO `categories` (`category_id`, `name`) VALUES (1, 'asdsadsadfsa'), (2, 'test 2'), (3, ' SODA eiei'); -- -------------------------------------------------------- -- -- Table structure for table `comments` -- CREATE TABLE `comments` ( `comment_id` int(11) NOT NULL, `news_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `detail` text NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `news` -- CREATE TABLE `news` ( `news_id` int(11) NOT NULL, `category_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `title` varchar(255) NOT NULL, `detail` text NOT NULL, `thumbnail` varchar(255) NOT NULL, `description` varchar(255) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `users_id` int(11) NOT NULL, `type` tinyint(4) NOT NULL, `fullname` varchar(255) NOT NULL, `email` varchar(100) NOT NULL, `username` varchar(50) NOT NULL, `password` varchar(32) NOT NULL, `last_login` datetime NOT NULL, `ip_address` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Indexes for dumped tables -- -- -- Indexes for table `categories` -- ALTER TABLE `categories` ADD PRIMARY KEY (`category_id`); -- -- Indexes for table `comments` -- ALTER TABLE `comments` ADD PRIMARY KEY (`comment_id`); -- -- Indexes for table `news` -- ALTER TABLE `news` ADD PRIMARY KEY (`news_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`users_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `categories` -- ALTER TABLE `categories` MODIFY `category_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `comments` -- ALTER TABLE `comments` MODIFY `comment_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `news` -- ALTER TABLE `news` MODIFY `news_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `users_id` int(11) NOT NULL AUTO_INCREMENT; /*!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>jcarait/employee-tracker INSERT INTO department (name) VALUES ('IT'), ('Finance & Accounting'), ('Sales & Marketing'), ('Operations'); INSERT INTO role (title, salary, department_id) VALUES ('Software Ninjaneer', 110000, 1), ('Wiz Kid', 95000, 1), ('Money Maestro', 95000, 2), ('Master of Coin', 150000, 2), ('Head of "Show me the Money!"', 130000, 3), ('Rain Maker', 90000, 3), ('People Operations Generalist', 100000, 4), ('Chief Inspiration Officer', 120000, 4); INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ('Hatori', 'Hanzo', 1, null), ('Ayodeji', 'Balogun', 2, 1), ('Varys', 'Lys', 4, null), ('Warren', 'Gates', 3, 3), ('Harvey', 'Spectre', 5, null), ('Mike', 'Ross', 6, 5), ('Julius', 'Caesar', 8, null), ('Mark', 'Anthony', 7, 7);
-- MySQL dump 10.15 Distrib 10.0.21-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: blog -- ------------------------------------------------------ -- Server version 10.0.21-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `post` -- DROP TABLE IF EXISTS `post`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `post` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) NOT NULL, `summary` text NOT NULL, `content` text NOT NULL, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `post` -- LOCK TABLES `post` WRITE; /*!40000 ALTER TABLE `post` DISABLE KEYS */; INSERT INTO `post` VALUES (1,'1st Blog Post','Lorem ipsum','Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi.','2016-02-27 19:12:45'),(2,'DUMP najavljuje besplatnu Malu školu Photoshopa','Nakon održane tradicionalne Škole osnova programiranja, DUMP Udruga mladih programera iz Splita organizira novi ciklus na zahtjev publike.','Nakon održane tradicionalne Škole osnova programiranja, DUMP Udruga mladih programera iz Splita organizira novi ciklus na zahtjev publike. Veliki broj zainteresiranih za znanje iz područja obrade fotografije imat će priliku besplatno naučiti osnove Photoshopa – jednog od najmoćnijih alata za manipulaciju fotografijama. Splitska publika imat će priliku proširiti svoje znanje na novom ciklusu besplatnih predavanja pod imenom Mala škola Photoshopa koji DUMP održava po prvi put od 2013. godine.\n\nDUMP Udruga mladih programera, većinom sastavljena od studenata splitskog FESB-a, već godinama održava različita besplatna predavanja i radionice kako bi zainteresirala javnost za različita tehnološka područja. Kvalitetu i pogođenost DUMP-ovih predavanja dokazuje nekoliko tisuća posjetitelja na predavanjima održanim tokom prošle godine.\n\nMala škola Photoshopa kreće u subotu 5.3., u 17 sati u amfiteatru A100 na FESB-u u Splitu, a trajat će tri vikenda. Informacije o ostalim aktivnostima udruge, kao i detaljnije informacije vezane za ciklus, mogu se pronaći na web ili Facebook stranici DUMP-a.','2016-02-27 22:22:14'),(3,'Hakiranje Touch ID senzora – plastelinom','Sigurnosni stručnjaci iz kompanije Vkansee demonstrirali su na ovotjednom MWC-u u Barceloni kako se naizgled sigurno rješenje za zaštitu mobitela lako može prevariti. Oni su za demonstraciju koristili iPhone s Touch ID senzorom otiska prsta, te najobičniji dječji plastelin.','Sigurnosni stručnjaci iz kompanije Vkansee demonstrirali su na ovotjednom MWC-u u Barceloni kako se naizgled sigurno rješenje za zaštitu mobitela lako može prevariti. Oni su za demonstraciju koristili iPhone s Touch ID senzorom otiska prsta, te najobičniji dječji plastelin.\n\n\"Hakiranje\" funkcionira onako kako bi to očekivali čitatelji jeftinih krimi-romana: napadač u plastelinu napravi otisak prsta vlasnika mobitela, te isti prisloni na Touch ID čitač. Nakon samo nekoliko pokušaja, iPhone je otključan!\n\nIza cijele ove priče stoji i komercijalni aspekt, jer, ipak se radi o izlagačima sa sajma elektronike. Kompanija Vkansee razvila je senzor otiska prsta koji snima otiske u rezoluciji od 2000 dpi, za razliku od Appleovog koji ima rezoluciju tek 500 dpi. Samim time oni tvrde da su njihovi proizvodi sigurniji i bolji od ostalih na tržištu.\n\nSvejedno, korisnici mobitela s čitačem otiska prsta trebali bi pripaziti na ovu činjenicu i ne dozvoliti neznancima da im uzimaju otisak prsta u plastelinu, barem dok proizvođači u mobitele ne ugrade Vkanseeove senzore.','2016-02-27 23:13:27'),(4,'#LadiesZG: Razgrabljene pozivnice za Ladies of New Business!','Čini se da je tema žena u tehnološkoj i digitalnoj industriji itekako zanimljiva, s obzirom na to da su se pozivnice za konferenciju Ladies of New Business razgrabile i prije no što smo uspjeli službeno najaviti sudionike i sudionice programa. Prijave su od danas zatvorene, a evo što očekuje one koji su uspjeli doći do svoje pozivnice.','Čini se da je tema žena u tehnološkoj i digitalnoj industriji itekako zanimljiva, s obzirom na to da su se pozivnice za konferenciju Ladies of New Business razgrabile i prije no što smo uspjeli službeno najaviti sudionike i sudionice programa. Prijave su od danas zatvorene, a evo što očekuje one koji su uspjeli doći do svoje pozivnice.\n\nPodsjetimo, Ladies of New Business događanja su koja Netokracija organizira u Zagrebu, Ljubljani i Beogradu. U Zagrebu će se u petak, 4. ožujka, u novootvorenom prostoru HUB385 okupiti oko 150 sudionika i sudionica iz tehnološke industrije, bilo da je riječ o direktoricama i članicama uprava, poduzetnicama koje razvijaju svoje tehnološke projekte i agencije, aktivisticama koje razvijaju nove društveno-korisne tehnološke projekte, dizajnericama, programerkama, digitalnim marketingašicama… A sve kako bi razgovarale o izazovima u razvoju svoje (digitalne) karijere te o svom osobnom razvoju.\n\nRazgovor s <NAME> i Elizabetom Novaković\nOdržat će se dva jedan-na-jedan razgovora na pozornici – jedan će biti s mladom poduzetnicom Elizabetom Novaković, autoricom Acro planera, koja nam je svojedobno na Netokraciji otkrila kako koristi moć Instagrama za brendiranje svog proizvoda, a u petak ćemo imati priliku čuti i njenu osobniju priču. Drugi će razgovor biti s <NAME>, članicom uprave u tvrtki IN2, a u ovom kontekstu je dodatno zanimljivo što je i suosnivačica <NAME>, koja je i partner događanja. Zaklada je počela djelovanje programom koji pruža financijsku potporu ženama i djevojkama slabijeg imovinskog stanja u stjecanju najboljeg mogućeg obrazovanja, kao i u njihovim ranim poslovnim karijerama. Tu je uključen i program mentoriranja gdje stipendistice imaju na raspolaganju mentora ili mentoricu koji će im tijekom studija pružati stručnu pomoć i potporu, temeljem dugogodišnjeg vlastitog iskustva.\n\nRasprave o važnosti mentoriranja i napretku – do vrha\nVažnost mentoriranja za osobni i poslovni razvoj prepoznali smo i mi, stoga smo u sklopu Ladies of New Business organizirali i program povezivanja mentora i mentorica s osobama koje žele biti mentorirane pod imenom Digitalni karanfili. Također, o važnosti mentoriranja raspravljat će se i na jednom od panela na kojemu će, među ostalima, sudjelovati Ida Pandur, direktorica i osnivačica agencije ENTG, Lana Rosandić, direktorica agencije Alert, <NAME>, country managerica Blablacara za Hrvatsku, te Ivana Matić, osnivačica i direktorica Women in Adria.\n\nA kako do vrha, otkrit će nam u drugom panelu Ivana Galić, direktorica marketinga i korporativnih komunikacija, NovaTV, Nataša Kapetanović, članica uprave Grawe osiguranja, Nataša Đukanović, direktorica marketinga, .Me Domaina, Dijana Hrastović, članica Uprave Zagrebačke banke i druge sudionice.\n\nNa događanju ćemo predstaviti i rezultate istraživanja nastalog u suradnji s Hendalom, koje će nam otkriti nešto više o izazovima s kojima se žene u Hrvatskoj susreću na svom poslovnom putu, a nakon razgovora, panela i pronalaska pravog mentora ili mentorice, slijedi i neformalno druženje od 21 sat.','2016-02-29 09:34:15'); /*!40000 ALTER TABLE `post` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2016-02-28 2:56:02
<filename>sunbird-cassandra-migration/cassandra-migration/src/main/resources/db/migration/cassandra/V1.104_cassandra.cql<gh_stars>1-10 CREATE TABLE IF NOT EXISTS sunbird.user_declarations( userid text, orgid text, persona text, userinfo map<text,text>, status text, errortype text, createdon timestamp, createdby text, updatedon timestamp, updatedby text, primary key(userid,orgid,persona) );
create keyspace aviation WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1 }; create table aviation.airport_carrier_departure ( airport text, carrier text, dep_delay decimal, PRIMARY KEY(airport, dep_delay, carrier) ); create table aviation.airport_airport_departure ( airport text, airport_to text, dep_delay decimal, PRIMARY KEY(airport, dep_delay, airport_to) ); create table aviation.airport_airport_arrival ( airport text, airport_to text, arr_delay decimal, PRIMARY KEY(airport, airport_to) ); create table aviation.best_flights_2008 ( airport_from text, airport_to text, given_date date, am_or_pm text, carrier text, flight_num text, departure_time text, arr_delay decimal, PRIMARY KEY(airport_from, airport_to, given_date, am_or_pm) );
-- MySQL dump 10.15 Distrib 10.0.29-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: localhost -- ------------------------------------------------------ -- Server version 10.0.29-MariaDB-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `m_article` -- DROP TABLE IF EXISTS `m_article`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `m_article` ( `article_id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(200) NOT NULL, `content` text, `created_at` datetime DEFAULT NULL, `created_by` varchar(100) DEFAULT NULL, `slug` text, `img_thumbnail` text, `status` varchar(100) NOT NULL DEFAULT '0' COMMENT '0=pending, 1=Published, 2=Banned', `pageview` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`article_id`) ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `m_article` -- LOCK TABLES `m_article` WRITE; /*!40000 ALTER TABLE `m_article` DISABLE KEYS */; INSERT INTO `m_article` VALUES (1,'My Article Number 1.........................','<h3>Hello World</h3>\n<p></p>\n<p>ini Adalah Contoh Artikel nya. Please Share this to your Social media.</p>\n<p><strong>Lorem Ipsum</strong><span> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span></p>\n<p>Invite BBM Channel kami&nbsp;</p>\n<p><img src=\"http://teknosains.com/assets/images/bbm-channel.png\" alt=\"\" width=\"244\" height=\"308\" /></p>\n<p>Best regards</p>','2017-07-24 00:00:00','admin','my-article-number-1','http://teknosains.com/assets/images/bbm-channel.png','1',0),(2,'My Article Number 2.........................','<h3>Hello World</h3>\n<p></p>\n<p>ini Adalah Contoh Artikel nya. Please Share this to your Social media.</p>\n<p><strong>Lorem Ipsum</strong><span> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span></p>\n<p>Invite BBM Channel kami&nbsp;</p>\n<p><img src=\"http://teknosains.com/assets/images/bbm-channel.png\" alt=\"\" width=\"244\" height=\"308\" /></p>\n<p>Best regards</p>','2017-07-24 00:00:00','admin','my-article-number-2','http://teknosains.com/assets/images/apple.jpg','1',0),(3,'My Article Number 3.........................','<h3>Hello World</h3>\n<p></p>\n<p>ini Adalah Contoh Artikel nya. Please Share this to your Social media.</p>\n<p><strong>Lorem Ipsum</strong><span> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span></p>\n<p>Invite BBM Channel kami&nbsp;</p>\n<p><img src=\"http://teknosains.com/assets/images/bbm-channel.png\" alt=\"\" width=\"244\" height=\"308\" /></p>\n<p>Best regards</p>','2017-07-24 00:00:00','admin','my-article-number-3','http://teknosains.com/assets/images/apple.jpg','1',0),(4,'My Article Number 4.........................','<h3>Hello World</h3>\n<p></p>\n<p>ini Adalah Contoh Artikel nya. Please Share this to your Social media.</p>\n<p><strong>Lorem Ipsum</strong><span> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span></p>\n<p>Invite BBM Channel kami&nbsp;</p>\n<p><img src=\"http://teknosains.com/assets/images/bbm-channel.png\" alt=\"\" width=\"244\" height=\"308\" /></p>\n<p>Best regards</p>','2017-07-24 00:00:00','admin','my-article-number-4','http://teknosains.com/assets/images/bbm-channel.png','1',0),(5,'Testing article again so the web will have more article ','<p>ini Adalah Contoh Artikel nya. Please Share this to your <strong>Social media</strong>.</p>\r\n<p><strong>Lorem Ipsum</strong><span> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.</span></p>\r\n<p><span><img src=\"http://teknosains.com/assets/images/bbm-channel.png\" alt=\"\" width=\"244\" height=\"308\" style=\"float: right;\" /></span></p>\r\n<p><span>It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span></p>\r\n<p></p>\r\n<p><strong>Lorem Ipsum</strong><span> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. </span></p>\r\n<p><span>It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</span></p>\r\n<p><span></span></p>\r\n<p><span>Regards</span></p>\r\n<p><a href=\"/backend/post/edit/teknosains.com\"><span>Teknosains.com</span></a></p>','2017-07-25 12:00:00','admin','testing-article-again-so-the-web-will-have-more-article','http://teknosains.com/assets/images/bbm-channel.png','1',0); /*!40000 ALTER TABLE `m_article` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `m_user` -- DROP TABLE IF EXISTS `m_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `m_user` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(100) NOT NULL, `password` varchar(255) NOT NULL, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `m_user` -- LOCK TABLES `m_user` WRITE; /*!40000 ALTER TABLE `m_user` DISABLE KEYS */; INSERT INTO `m_user` VALUES (1,'admin','$2<PASSWORD>'); /*!40000 ALTER TABLE `m_user` ENABLE KEYS */; UNLOCK TABLES; -- -- Dumping routines for database 'ci_amp' -- /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed on 2017-07-25 13:59:37
<reponame>eddielino/csit314-bug-tracking-system INSERT INTO `bug_action` VALUES (2, 1, 'new', '', 'enabled', 1600781224, 46),(3, 1, 'assigned', '', 'enabled', 1600781224, 27),(4, 1, 'fixing', '', 'enabled', 1600781224, 27),(5, 1, 'pending_review', '', 'enabled', 1600781224, 18),(6, 1, 'completed', '', 'enabled', 1600781224, 20),(7, 2, 'new', '', 'enabled', 1583933338, 31),(8, 2, 'assigned', '', 'enabled', 1583933338, 24),(9, 2, 'fixing', '', 'enabled', 1583933338, 24),(10, 2, 'pending_review', '', 'enabled', 1583933338, 16),(11, 3, 'new', '', 'enabled', 1591887477, 44),(12, 3, 'assigned', '', 'enabled', 1591887477, 27),(13, 3, 'fixing', '', 'enabled', 1591887477, 27),(14, 3, 'pending_review', '', 'enabled', 1591887477, 11),(15, 3, 'reopen', '', 'enabled', 1591887477, 20),(16, 4, 'new', '', 'enabled', 1591553116, 23),(17, 4, 'assigned', '', 'enabled', 1591553116, 24),(18, 4, 'fixing', '', 'enabled', 1591553116, 24),(19, 4, 'pending_review', '', 'enabled', 1591553116, 8),(20, 5, 'new', '', 'enabled', 1601759741, 33),(21, 5, 'assigned', '', 'enabled', 1601759741, 26),(22, 5, 'fixing', '', 'enabled', 1601759741, 26),(23, 5, 'pending_review', '', 'enabled', 1601759741, 12),(24, 6, 'new', '', 'enabled', 1604822016, 14),(25, 6, 'assigned', '', 'enabled', 1604822016, 28),(26, 6, 'fixing', '', 'enabled', 1604822016, 28),(27, 6, 'pending_review', '', 'enabled', 1604822016, 7),(28, 7, 'new', '', 'enabled', 1593906904, 4),(29, 7, 'assigned', '', 'enabled', 1593906904, 26),(30, 8, 'new', '', 'enabled', 1577992247, 19),(31, 8, 'assigned', '', 'enabled', 1577992247, 24),(32, 8, 'fixing', '', 'enabled', 1577992247, 24),(33, 8, 'pending_review', '', 'enabled', 1577992247, 16),(34, 8, 'reopen', '', 'enabled', 1577992247, 21),(35, 9, 'new', '', 'enabled', 1595661785, 5),(36, 9, 'assigned', '', 'enabled', 1595661785, 25),(37, 9, 'fixing', '', 'enabled', 1595661785, 25),(38, 9, 'pending_review', '', 'enabled', 1595661785, 6),(39, 9, 'completed', '', 'enabled', 1595661785, 22),(40, 10, 'new', '', 'enabled', 1592252679, 7),(41, 11, 'new', '', 'enabled', 1590807243, 23),(42, 11, 'assigned', '', 'enabled', 1590807243, 25),(43, 11, 'fixing', '', 'enabled', 1590807243, 25),(44, 11, 'pending_review', '', 'enabled', 1590807243, 12),(45, 11, 'reopen', '', 'enabled', 1590807243, 20),(46, 12, 'new', '', 'enabled', 1581663241, 44),(47, 12, 'assigned', '', 'enabled', 1581663241, 26),(48, 12, 'fixing', '', 'enabled', 1581663241, 26),(49, 12, 'pending_review', '', 'enabled', 1581663241, 4),(50, 13, 'new', '', 'enabled', 1588678272, 29),(51, 13, 'assigned', '', 'enabled', 1588678272, 24),(52, 13, 'fixing', '', 'enabled', 1588678272, 24),(53, 14, 'new', '', 'enabled', 1603715539, 18),(54, 14, 'assigned', '', 'enabled', 1603715539, 25),(55, 14, 'fixing', '', 'enabled', 1603715539, 25),(56, 14, 'pending_review', '', 'enabled', 1603715539, 18),(57, 14, 'reopen', '', 'enabled', 1603715539, 20),(58, 15, 'new', '', 'enabled', 1598048093, 36),(59, 15, 'assigned', '', 'enabled', 1598048093, 27),(60, 16, 'new', '', 'enabled', 1597014327, 43),(61, 16, 'assigned', '', 'enabled', 1597014327, 26),(62, 16, 'fixing', '', 'enabled', 1597014327, 26),(63, 16, 'pending_review', '', 'enabled', 1597014327, 7),(64, 16, 'completed', '', 'enabled', 1597014327, 23),(65, 17, 'new', '', 'enabled', 1599326822, 44),(66, 17, 'assigned', '', 'enabled', 1599326822, 25),(67, 17, 'fixing', '', 'enabled', 1599326822, 25),(68, 17, 'pending_review', '', 'enabled', 1599326822, 5),(69, 17, 'reopen', '', 'enabled', 1599326822, 20),(70, 18, 'new', '', 'enabled', 1582428387, 9),(71, 18, 'assigned', '', 'enabled', 1582428387, 26),(72, 19, 'new', '', 'enabled', 1605338949, 18),(73, 20, 'new', '', 'enabled', 1600349857, 22),(74, 20, 'assigned', '', 'enabled', 1600349857, 25),(75, 20, 'fixing', '', 'enabled', 1600349857, 25),(76, 20, 'pending_review', '', 'enabled', 1600349857, 6),(77, 20, 'reopen', '', 'enabled', 1600349857, 22),(78, 21, 'new', '', 'enabled', 1582444941, 27),(79, 21, 'assigned', '', 'enabled', 1582444941, 24),(80, 21, 'fixing', '', 'enabled', 1582444941, 24),(81, 22, 'new', '', 'enabled', 1580837907, 47),(82, 22, 'assigned', '', 'enabled', 1580837907, 25),(83, 22, 'fixing', '', 'enabled', 1580837907, 25),(84, 22, 'pending_review', '', 'enabled', 1580837907, 14),(85, 23, 'new', '', 'enabled', 1588307798, 21),(86, 23, 'assigned', '', 'enabled', 1588307798, 25),(87, 23, 'fixing', '', 'enabled', 1588307798, 25),(88, 23, 'pending_review', '', 'enabled', 1588307798, 18),(89, 24, 'new', '', 'enabled', 1597227628, 9),(90, 24, 'assigned', '', 'enabled', 1597227628, 24),(91, 24, 'fixing', '', 'enabled', 1597227628, 24),(92, 24, 'pending_review', '', 'enabled', 1597227628, 8),(93, 24, 'completed', '', 'enabled', 1597227628, 23),(94, 25, 'new', '', 'enabled', 1603093768, 9),(95, 25, 'assigned', '', 'enabled', 1603093768, 24),(96, 26, 'new', '', 'enabled', 1582838448, 11),(97, 26, 'assigned', '', 'enabled', 1582838448, 24),(98, 26, 'fixing', '', 'enabled', 1582838448, 24),(99, 27, 'new', '', 'enabled', 1587203318, 45),(100, 27, 'assigned', '', 'enabled', 1587203318, 24),(101, 28, 'new', '', 'enabled', 1578253782, 45),(102, 29, 'new', '', 'enabled', 1599428990, 33),(103, 29, 'assigned', '', 'enabled', 1599428990, 27),(104, 29, 'fixing', '', 'enabled', 1599428990, 27),(105, 29, 'pending_review', '', 'enabled', 1599428990, 6),(106, 30, 'new', '', 'enabled', 1594841625, 30),(107, 30, 'assigned', '', 'enabled', 1594841625, 25),(108, 30, 'fixing', '', 'enabled', 1594841625, 25),(109, 30, 'pending_review', '', 'enabled', 1594841625, 16),(110, 31, 'new', '', 'enabled', 1584535034, 18),(111, 31, 'assigned', '', 'enabled', 1584535034, 25),(112, 31, 'fixing', '', 'enabled', 1584535034, 25),(113, 31, 'pending_review', '', 'enabled', 1584535034, 4),(114, 32, 'new', '', 'enabled', 1584131506, 13),(115, 33, 'new', '', 'enabled', 1582781591, 19),(116, 33, 'assigned', '', 'enabled', 1582781591, 26),(117, 33, 'fixing', '', 'enabled', 1582781591, 26),(118, 34, 'new', '', 'enabled', 1601658920, 19),(119, 34, 'assigned', '', 'enabled', 1601658920, 25),(120, 34, 'fixing', '', 'enabled', 1601658920, 25),(121, 34, 'pending_review', '', 'enabled', 1601658920, 6),(122, 34, 'reopen', '', 'enabled', 1601658920, 21),(123, 35, 'new', '', 'enabled', 1604962725, 25),(124, 35, 'assigned', '', 'enabled', 1604962725, 25),(125, 35, 'fixing', '', 'enabled', 1604962725, 25),(126, 35, 'pending_review', '', 'enabled', 1604962725, 8),(127, 35, 'completed', '', 'enabled', 1604962725, 20),(128, 36, 'new', '', 'enabled', 1582476100, 29),(129, 36, 'assigned', '', 'enabled', 1582476100, 26),(130, 36, 'fixing', '', 'enabled', 1582476100, 26),(131, 36, 'pending_review', '', 'enabled', 1582476100, 16),(132, 36, 'reopen', '', 'enabled', 1582476100, 23),(133, 37, 'new', '', 'enabled', 1582278748, 46),(134, 37, 'assigned', '', 'enabled', 1582278748, 28),(135, 37, 'fixing', '', 'enabled', 1582278748, 28),(136, 37, 'pending_review', '', 'enabled', 1582278748, 16),(137, 37, 'reopen', '', 'enabled', 1582278748, 21),(138, 38, 'new', '', 'enabled', 1587150003, 50),(139, 38, 'assigned', '', 'enabled', 1587150003, 27),(140, 38, 'fixing', '', 'enabled', 1587150003, 27),(141, 38, 'pending_review', '', 'enabled', 1587150003, 18),(142, 39, 'new', '', 'enabled', 1581257480, 16),(143, 39, 'assigned', '', 'enabled', 1581257480, 24),(144, 39, 'fixing', '', 'enabled', 1581257480, 24),(145, 40, 'new', '', 'enabled', 1581485921, 13),(146, 41, 'new', '', 'enabled', 1605526030, 6),(147, 41, 'assigned', '', 'enabled', 1605526030, 28),(148, 41, 'fixing', '', 'enabled', 1605526030, 28),(149, 41, 'pending_review', '', 'enabled', 1605526030, 10),(150, 42, 'new', '', 'enabled', 1601938461, 19),(151, 42, 'assigned', '', 'enabled', 1601938461, 25),(152, 43, 'new', '', 'enabled', 1578445869, 27),(153, 43, 'assigned', '', 'enabled', 1578445869, 27),(154, 43, 'fixing', '', 'enabled', 1578445869, 27),(155, 44, 'new', '', 'enabled', 1590758891, 42),(156, 44, 'assigned', '', 'enabled', 1590758891, 25),(157, 44, 'fixing', '', 'enabled', 1590758891, 25),(158, 44, 'pending_review', '', 'enabled', 1590758891, 18),(159, 44, 'reopen', '', 'enabled', 1590758891, 22),(160, 45, 'new', '', 'enabled', 1578233006, 46),(161, 45, 'assigned', '', 'enabled', 1578233006, 24),(162, 46, 'new', '', 'enabled', 1580461222, 4),(163, 46, 'assigned', '', 'enabled', 1580461222, 24),(164, 46, 'fixing', '', 'enabled', 1580461222, 24),(165, 46, 'pending_review', '', 'enabled', 1580461222, 13),(166, 46, 'reopen', '', 'enabled', 1580461222, 21),(167, 47, 'new', '', 'enabled', 1598507361, 37),(168, 47, 'assigned', '', 'enabled', 1598507361, 25),(169, 47, 'fixing', '', 'enabled', 1598507361, 25),(170, 47, 'pending_review', '', 'enabled', 1598507361, 7),(171, 47, 'reopen', '', 'enabled', 1598507361, 21),(172, 48, 'new', '', 'enabled', 1605051663, 42),(173, 48, 'assigned', '', 'enabled', 1605051663, 26),(174, 49, 'new', '', 'enabled', 1600024709, 17),(175, 49, 'assigned', '', 'enabled', 1600024709, 24),(176, 49, 'fixing', '', 'enabled', 1600024709, 24),(177, 49, 'pending_review', '', 'enabled', 1600024709, 12),(178, 49, 'reopen', '', 'enabled', 1600024709, 21),(179, 50, 'new', '', 'enabled', 1596360302, 37),(180, 50, 'assigned', '', 'enabled', 1596360302, 25),(181, 50, 'fixing', '', 'enabled', 1596360302, 25),(182, 50, 'pending_review', '', 'enabled', 1596360302, 9),(183, 50, 'reopen', '', 'enabled', 1596360302, 21),(184, 51, 'new', '', 'enabled', 1592757207, 15),(185, 51, 'assigned', '', 'enabled', 1592757207, 27),(186, 51, 'fixing', '', 'enabled', 1592757207, 27),(187, 51, 'pending_review', '', 'enabled', 1592757207, 8),(188, 51, 'completed', '', 'enabled', 1592757207, 23),(189, 52, 'new', '', 'enabled', 1594507294, 42),(190, 52, 'assigned', '', 'enabled', 1594507294, 25),(191, 52, 'fixing', '', 'enabled', 1594507294, 25),(192, 52, 'pending_review', '', 'enabled', 1594507294, 14),(193, 53, 'new', '', 'enabled', 1595078518, 27),(194, 53, 'assigned', '', 'enabled', 1595078518, 26),(195, 54, 'new', '', 'enabled', 1591517292, 17),(196, 54, 'assigned', '', 'enabled', 1591517292, 28),(197, 54, 'fixing', '', 'enabled', 1591517292, 28),(198, 54, 'pending_review', '', 'enabled', 1591517292, 13),(199, 54, 'completed', '', 'enabled', 1591517292, 19),(200, 55, 'new', '', 'enabled', 1588325555, 16),(201, 55, 'assigned', '', 'enabled', 1588325555, 24),(202, 55, 'fixing', '', 'enabled', 1588325555, 24),(203, 55, 'pending_review', '', 'enabled', 1588325555, 7),(204, 55, 'completed', '', 'enabled', 1588325555, 23),(205, 56, 'new', '', 'enabled', 1589030716, 23),(206, 56, 'assigned', '', 'enabled', 1589030716, 26),(207, 56, 'fixing', '', 'enabled', 1589030716, 26),(208, 56, 'pending_review', '', 'enabled', 1589030716, 15),(209, 56, 'completed', '', 'enabled', 1589030716, 21),(210, 57, 'new', '', 'enabled', 1601135852, 27),(211, 57, 'assigned', '', 'enabled', 1601135852, 26),(212, 57, 'fixing', '', 'enabled', 1601135852, 26),(213, 57, 'pending_review', '', 'enabled', 1601135852, 14),(214, 58, 'new', '', 'enabled', 1578282530, 23),(215, 58, 'assigned', '', 'enabled', 1578282530, 24),(216, 59, 'new', '', 'enabled', 1597818895, 48),(217, 59, 'assigned', '', 'enabled', 1597818895, 28),(218, 59, 'fixing', '', 'enabled', 1597818895, 28),(219, 59, 'pending_review', '', 'enabled', 1597818895, 16),(220, 59, 'completed', '', 'enabled', 1597818895, 23),(221, 60, 'new', '', 'enabled', 1581911494, 36),(222, 60, 'assigned', '', 'enabled', 1581911494, 27),(223, 60, 'fixing', '', 'enabled', 1581911494, 27),(224, 60, 'pending_review', '', 'enabled', 1581911494, 5),(225, 60, 'reopen', '', 'enabled', 1581911494, 22),(226, 61, 'new', '', 'enabled', 1598145423, 21),(227, 62, 'new', '', 'enabled', 1601341843, 9),(228, 63, 'new', '', 'enabled', 1591953152, 48),(229, 63, 'assigned', '', 'enabled', 1591953152, 25),(230, 63, 'fixing', '', 'enabled', 1591953152, 25),(231, 63, 'pending_review', '', 'enabled', 1591953152, 5),(232, 64, 'new', '', 'enabled', 1592534028, 6),(233, 64, 'assigned', '', 'enabled', 1592534028, 28),(234, 65, 'new', '', 'enabled', 1594171973, 14),(235, 65, 'assigned', '', 'enabled', 1594171973, 26),(236, 65, 'fixing', '', 'enabled', 1594171973, 26),(237, 65, 'pending_review', '', 'enabled', 1594171973, 8),(238, 66, 'new', '', 'enabled', 1578085254, 48),(239, 66, 'assigned', '', 'enabled', 1578085254, 24),(240, 66, 'fixing', '', 'enabled', 1578085254, 24),(241, 67, 'new', '', 'enabled', 1588571992, 26),(242, 67, 'assigned', '', 'enabled', 1588571992, 27),(243, 68, 'new', '', 'enabled', 1594218513, 20),(244, 69, 'new', '', 'enabled', 1585186620, 39),(245, 69, 'assigned', '', 'enabled', 1585186620, 27),(246, 70, 'new', '', 'enabled', 1591629357, 23),(247, 71, 'new', '', 'enabled', 1594789395, 16),(248, 71, 'assigned', '', 'enabled', 1594789395, 27),(249, 71, 'fixing', '', 'enabled', 1594789395, 27),(250, 71, 'pending_review', '', 'enabled', 1594789395, 17),(251, 71, 'reopen', '', 'enabled', 1594789395, 22),(252, 72, 'new', '', 'enabled', 1596819663, 48),(253, 73, 'new', '', 'enabled', 1599229008, 34),(254, 73, 'assigned', '', 'enabled', 1599229008, 28),(255, 73, 'fixing', '', 'enabled', 1599229008, 28),(256, 74, 'new', '', 'enabled', 1605102524, 15),(257, 74, 'assigned', '', 'enabled', 1605102524, 24),(258, 74, 'fixing', '', 'enabled', 1605102524, 24),(259, 74, 'pending_review', '', 'enabled', 1605102524, 8),(260, 74, 'reopen', '', 'enabled', 1605102524, 19),(261, 75, 'new', '', 'enabled', 1592392406, 14),(262, 75, 'assigned', '', 'enabled', 1592392406, 25),(263, 76, 'new', '', 'enabled', 1595681094, 15),(264, 76, 'assigned', '', 'enabled', 1595681094, 24),(265, 76, 'fixing', '', 'enabled', 1595681094, 24),(266, 77, 'new', '', 'enabled', 1583919391, 26),(267, 77, 'assigned', '', 'enabled', 1583919391, 24),(268, 77, 'fixing', '', 'enabled', 1583919391, 24),(269, 77, 'pending_review', '', 'enabled', 1583919391, 13),(270, 77, 'reopen', '', 'enabled', 1583919391, 22),(271, 78, 'new', '', 'enabled', 1600260689, 24),(272, 78, 'assigned', '', 'enabled', 1600260689, 25),(273, 78, 'fixing', '', 'enabled', 1600260689, 25),(274, 78, 'pending_review', '', 'enabled', 1600260689, 8),(275, 78, 'reopen', '', 'enabled', 1600260689, 21),(276, 79, 'new', '', 'enabled', 1585860005, 26),(277, 79, 'assigned', '', 'enabled', 1585860005, 28),(278, 79, 'fixing', '', 'enabled', 1585860005, 28),(279, 79, 'pending_review', '', 'enabled', 1585860005, 7),(280, 80, 'new', '', 'enabled', 1587185747, 14),(281, 80, 'assigned', '', 'enabled', 1587185747, 26),(282, 80, 'fixing', '', 'enabled', 1587185747, 26),(283, 80, 'pending_review', '', 'enabled', 1587185747, 7),(284, 80, 'reopen', '', 'enabled', 1587185747, 20),(285, 81, 'new', '', 'enabled', 1597321976, 21),(286, 82, 'new', '', 'enabled', 1579877666, 18),(287, 82, 'assigned', '', 'enabled', 1579877666, 27),(288, 83, 'new', '', 'enabled', 1592842675, 48),(289, 83, 'assigned', '', 'enabled', 1592842675, 25),(290, 83, 'fixing', '', 'enabled', 1592842675, 25),(291, 83, 'pending_review', '', 'enabled', 1592842675, 12),(292, 83, 'reopen', '', 'enabled', 1592842675, 19),(293, 84, 'new', '', 'enabled', 1589785687, 17),(294, 84, 'assigned', '', 'enabled', 1589785687, 28),(295, 84, 'fixing', '', 'enabled', 1589785687, 28),(296, 85, 'new', '', 'enabled', 1588015168, 43),(297, 85, 'assigned', '', 'enabled', 1588015168, 26),(298, 86, 'new', '', 'enabled', 1592995276, 21),(299, 86, 'assigned', '', 'enabled', 1592995276, 26),(300, 86, 'fixing', '', 'enabled', 1592995276, 26),(301, 87, 'new', '', 'enabled', 1595875029, 51),(302, 87, 'assigned', '', 'enabled', 1595875029, 25),(303, 87, 'fixing', '', 'enabled', 1595875029, 25),(304, 88, 'new', '', 'enabled', 1598519843, 18),(305, 88, 'assigned', '', 'enabled', 1598519843, 25),(306, 89, 'new', '', 'enabled', 1599863479, 51),(307, 89, 'assigned', '', 'enabled', 1599863479, 28),(308, 90, 'new', '', 'enabled', 1578027864, 33),(309, 90, 'assigned', '', 'enabled', 1578027864, 25),(310, 90, 'fixing', '', 'enabled', 1578027864, 25),(311, 90, 'pending_review', '', 'enabled', 1578027864, 11),(312, 91, 'new', '', 'enabled', 1582470278, 18),(313, 91, 'assigned', '', 'enabled', 1582470278, 25),(314, 92, 'new', '', 'enabled', 1593783778, 27),(315, 92, 'assigned', '', 'enabled', 1593783778, 26),(316, 92, 'fixing', '', 'enabled', 1593783778, 26),(317, 92, 'pending_review', '', 'enabled', 1593783778, 4),(318, 93, 'new', '', 'enabled', 1582534973, 31),(319, 93, 'assigned', '', 'enabled', 1582534973, 24),(320, 94, 'new', '', 'enabled', 1592769791, 52),(321, 94, 'assigned', '', 'enabled', 1592769791, 25),(322, 94, 'fixing', '', 'enabled', 1592769791, 25),(323, 94, 'pending_review', '', 'enabled', 1592769791, 15),(324, 94, 'reopen', '', 'enabled', 1592769791, 21),(325, 95, 'new', '', 'enabled', 1602095909, 39),(326, 95, 'assigned', '', 'enabled', 1602095909, 27),(327, 96, 'new', '', 'enabled', 1598114550, 26),(328, 96, 'assigned', '', 'enabled', 1598114550, 25),(329, 96, 'fixing', '', 'enabled', 1598114550, 25),(330, 97, 'new', '', 'enabled', 1599730266, 9),(331, 97, 'assigned', '', 'enabled', 1599730266, 25),(332, 97, 'fixing', '', 'enabled', 1599730266, 25),(333, 97, 'pending_review', '', 'enabled', 1599730266, 13),(334, 98, 'new', '', 'enabled', 1599513343, 40),(335, 98, 'assigned', '', 'enabled', 1599513343, 28),(336, 98, 'fixing', '', 'enabled', 1599513343, 28),(337, 99, 'new', '', 'enabled', 1596331284, 12),(338, 99, 'assigned', '', 'enabled', 1596331284, 27),(339, 99, 'fixing', '', 'enabled', 1596331284, 27),(340, 99, 'pending_review', '', 'enabled', 1596331284, 10),(341, 99, 'reopen', '', 'enabled', 1596331284, 22),(342, 100, 'new', '', 'enabled', 1590472337, 53),(343, 101, 'new', '', 'enabled', 1584856054, 34),(344, 101, 'assigned', '', 'enabled', 1584856054, 28),(345, 101, 'fixing', '', 'enabled', 1584856054, 28),(346, 101, 'pending_review', '', 'enabled', 1584856054, 10),(347, 101, 'reopen', '', 'enabled', 1584856054, 21),(348, 102, 'new', '', 'enabled', 1605072292, 39),(349, 102, 'assigned', '', 'enabled', 1605072292, 27),(350, 102, 'fixing', '', 'enabled', 1605072292, 27),(351, 102, 'pending_review', '', 'enabled', 1605072292, 8),(352, 102, 'reopen', '', 'enabled', 1605072292, 23),(353, 103, 'new', '', 'enabled', 1604691975, 46),(354, 103, 'assigned', '', 'enabled', 1604691975, 24),(355, 103, 'fixing', '', 'enabled', 1604691975, 24),(356, 104, 'new', '', 'enabled', 1601044589, 28),(357, 104, 'assigned', '', 'enabled', 1601044589, 28),(358, 104, 'fixing', '', 'enabled', 1601044589, 28),(359, 104, 'pending_review', '', 'enabled', 1601044589, 14),(360, 104, 'reopen', '', 'enabled', 1601044589, 21),(361, 105, 'new', '', 'enabled', 1598986780, 14),(362, 105, 'assigned', '', 'enabled', 1598986780, 24),(363, 105, 'fixing', '', 'enabled', 1598986780, 24),(364, 105, 'pending_review', '', 'enabled', 1598986780, 16),(365, 105, 'reopen', '', 'enabled', 1598986780, 20),(366, 106, 'new', '', 'enabled', 1580408354, 37),(367, 106, 'assigned', '', 'enabled', 1580408354, 27),(368, 106, 'fixing', '', 'enabled', 1580408354, 27),(369, 106, 'pending_review', '', 'enabled', 1580408354, 10),(370, 107, 'new', '', 'enabled', 1596922548, 10),(371, 107, 'assigned', '', 'enabled', 1596922548, 26),(372, 107, 'fixing', '', 'enabled', 1596922548, 26),(373, 107, 'pending_review', '', 'enabled', 1596922548, 10),(374, 107, 'reopen', '', 'enabled', 1596922548, 21),(375, 108, 'new', '', 'enabled', 1595116565, 41),(376, 108, 'assigned', '', 'enabled', 1595116565, 26),(377, 108, 'fixing', '', 'enabled', 1595116565, 26),(378, 108, 'pending_review', '', 'enabled', 1595116565, 17),(379, 108, 'reopen', '', 'enabled', 1595116565, 21),(380, 109, 'new', '', 'enabled', 1605047112, 45),(381, 109, 'assigned', '', 'enabled', 1605047112, 26),(382, 109, 'fixing', '', 'enabled', 1605047112, 26),(383, 109, 'pending_review', '', 'enabled', 1605047112, 4),(384, 109, 'reopen', '', 'enabled', 1605047112, 20),(385, 110, 'new', '', 'enabled', 1592705597, 21),(386, 110, 'assigned', '', 'enabled', 1592705597, 24),(387, 110, 'fixing', '', 'enabled', 1592705597, 24),(388, 111, 'new', '', 'enabled', 1581485134, 31),(389, 111, 'assigned', '', 'enabled', 1581485134, 26),(390, 111, 'fixing', '', 'enabled', 1581485134, 26),(391, 111, 'pending_review', '', 'enabled', 1581485134, 5),(392, 111, 'completed', '', 'enabled', 1581485134, 21),(393, 112, 'new', '', 'enabled', 1580315295, 43),(394, 112, 'assigned', '', 'enabled', 1580315295, 24),(395, 112, 'fixing', '', 'enabled', 1580315295, 24),(396, 112, 'pending_review', '', 'enabled', 1580315295, 18),(397, 112, 'completed', '', 'enabled', 1580315295, 23),(398, 113, 'new', '', 'enabled', 1604431169, 43),(399, 113, 'assigned', '', 'enabled', 1604431169, 25),(400, 113, 'fixing', '', 'enabled', 1604431169, 25),(401, 113, 'pending_review', '', 'enabled', 1604431169, 4),(402, 113, 'completed', '', 'enabled', 1604431169, 19),(403, 114, 'new', '', 'enabled', 1583447004, 25),(404, 114, 'assigned', '', 'enabled', 1583447004, 25),(405, 114, 'fixing', '', 'enabled', 1583447004, 25),(406, 115, 'new', '', 'enabled', 1577874322, 5),(407, 116, 'new', '', 'enabled', 1601978248, 26),(408, 116, 'assigned', '', 'enabled', 1601978248, 28),(409, 117, 'new', '', 'enabled', 1587828686, 31),(410, 117, 'assigned', '', 'enabled', 1587828686, 28),(411, 118, 'new', '', 'enabled', 1578310942, 16),(412, 118, 'assigned', '', 'enabled', 1578310942, 25),(413, 118, 'fixing', '', 'enabled', 1578310942, 25),(414, 118, 'pending_review', '', 'enabled', 1578310942, 15),(415, 119, 'new', '', 'enabled', 1580242049, 44),(416, 119, 'assigned', '', 'enabled', 1580242049, 25),(417, 119, 'fixing', '', 'enabled', 1580242049, 25),(418, 120, 'new', '', 'enabled', 1597337338, 23),(419, 120, 'assigned', '', 'enabled', 1597337338, 26),(420, 120, 'fixing', '', 'enabled', 1597337338, 26),(421, 120, 'pending_review', '', 'enabled', 1597337338, 8),(422, 120, 'reopen', '', 'enabled', 1597337338, 23),(423, 121, 'new', '', 'enabled', 1603013261, 17),(424, 121, 'assigned', '', 'enabled', 1603013261, 24),(425, 121, 'fixing', '', 'enabled', 1603013261, 24),(426, 121, 'pending_review', '', 'enabled', 1603013261, 7),(427, 121, 'reopen', '', 'enabled', 1603013261, 19),(428, 122, 'new', '', 'enabled', 1594673319, 29),(429, 122, 'assigned', '', 'enabled', 1594673319, 24),(430, 122, 'fixing', '', 'enabled', 1594673319, 24),(431, 123, 'new', '', 'enabled', 1600231915, 27),(432, 123, 'assigned', '', 'enabled', 1600231915, 28),(433, 123, 'fixing', '', 'enabled', 1600231915, 28),(434, 123, 'pending_review', '', 'enabled', 1600231915, 18),(435, 124, 'new', '', 'enabled', 1598711421, 14),(436, 125, 'new', '', 'enabled', 1595299222, 21),(437, 125, 'assigned', '', 'enabled', 1595299222, 25),(438, 126, 'new', '', 'enabled', 1580519447, 30),(439, 126, 'assigned', '', 'enabled', 1580519447, 26),(440, 127, 'new', '', 'enabled', 1598635151, 43),(441, 128, 'new', '', 'enabled', 1598296587, 36),(442, 128, 'assigned', '', 'enabled', 1598296587, 25),(443, 128, 'fixing', '', 'enabled', 1598296587, 25),(444, 128, 'pending_review', '', 'enabled', 1598296587, 12),(445, 129, 'new', '', 'enabled', 1596923936, 39),(446, 129, 'assigned', '', 'enabled', 1596923936, 28),(447, 129, 'fixing', '', 'enabled', 1596923936, 28),(448, 129, 'pending_review', '', 'enabled', 1596923936, 18),(449, 129, 'completed', '', 'enabled', 1596923936, 21),(450, 130, 'new', '', 'enabled', 1594909309, 23),(451, 130, 'assigned', '', 'enabled', 1594909309, 24),(452, 130, 'fixing', '', 'enabled', 1594909309, 24),(453, 131, 'new', '', 'enabled', 1589784746, 41),(454, 131, 'assigned', '', 'enabled', 1589784746, 26),(455, 131, 'fixing', '', 'enabled', 1589784746, 26),(456, 131, 'pending_review', '', 'enabled', 1589784746, 9),(457, 131, 'reopen', '', 'enabled', 1589784746, 22),(458, 132, 'new', '', 'enabled', 1585710544, 7),(459, 133, 'new', '', 'enabled', 1584056117, 5),(460, 133, 'assigned', '', 'enabled', 1584056117, 25),(461, 133, 'fixing', '', 'enabled', 1584056117, 25),(462, 133, 'pending_review', '', 'enabled', 1584056117, 11),(463, 134, 'new', '', 'enabled', 1598904794, 21),(464, 134, 'assigned', '', 'enabled', 1598904794, 25),(465, 134, 'fixing', '', 'enabled', 1598904794, 25),(466, 134, 'pending_review', '', 'enabled', 1598904794, 12),(467, 135, 'new', '', 'enabled', 1601562790, 33),(468, 135, 'assigned', '', 'enabled', 1601562790, 26),(469, 135, 'fixing', '', 'enabled', 1601562790, 26),(470, 135, 'pending_review', '', 'enabled', 1601562790, 11),(471, 136, 'new', '', 'enabled', 1578169600, 41),(472, 136, 'assigned', '', 'enabled', 1578169600, 26),(473, 136, 'fixing', '', 'enabled', 1578169600, 26),(474, 137, 'new', '', 'enabled', 1594842462, 4),(475, 137, 'assigned', '', 'enabled', 1594842462, 27),(476, 137, 'fixing', '', 'enabled', 1594842462, 27),(477, 137, 'pending_review', '', 'enabled', 1594842462, 8),(478, 137, 'reopen', '', 'enabled', 1594842462, 23),(479, 138, 'new', '', 'enabled', 1591630807, 24),(480, 138, 'assigned', '', 'enabled', 1591630807, 28),(481, 138, 'fixing', '', 'enabled', 1591630807, 28),(482, 138, 'pending_review', '', 'enabled', 1591630807, 10),(483, 138, 'completed', '', 'enabled', 1591630807, 22),(484, 139, 'new', '', 'enabled', 1594900646, 13),(485, 139, 'assigned', '', 'enabled', 1594900646, 25),(486, 139, 'fixing', '', 'enabled', 1594900646, 25),(487, 139, 'pending_review', '', 'enabled', 1594900646, 16),(488, 139, 'completed', '', 'enabled', 1594900646, 23),(489, 140, 'new', '', 'enabled', 1593114075, 36),(490, 140, 'assigned', '', 'enabled', 1593114075, 25),(491, 140, 'fixing', '', 'enabled', 1593114075, 25),(492, 140, 'pending_review', '', 'enabled', 1593114075, 18),(493, 140, 'reopen', '', 'enabled', 1593114075, 21),(494, 141, 'new', '', 'enabled', 1587544365, 11),(495, 141, 'assigned', '', 'enabled', 1587544365, 25),(496, 141, 'fixing', '', 'enabled', 1587544365, 25),(497, 141, 'pending_review', '', 'enabled', 1587544365, 9),(498, 142, 'new', '', 'enabled', 1578160174, 9),(499, 142, 'assigned', '', 'enabled', 1578160174, 26),(500, 142, 'fixing', '', 'enabled', 1578160174, 26),(501, 142, 'pending_review', '', 'enabled', 1578160174, 7),(502, 143, 'new', '', 'enabled', 1603544943, 8),(503, 143, 'assigned', '', 'enabled', 1603544943, 24),(504, 144, 'new', '', 'enabled', 1603356747, 43),(505, 145, 'new', '', 'enabled', 1592276522, 28),(506, 145, 'assigned', '', 'enabled', 1592276522, 27),(507, 145, 'fixing', '', 'enabled', 1592276522, 27),(508, 146, 'new', '', 'enabled', 1585238906, 24),(509, 146, 'assigned', '', 'enabled', 1585238906, 28),(510, 146, 'fixing', '', 'enabled', 1585238906, 28),(511, 146, 'pending_review', '', 'enabled', 1585238906, 8),(512, 146, 'completed', '', 'enabled', 1585238906, 20),(513, 147, 'new', '', 'enabled', 1596876732, 50),(514, 147, 'assigned', '', 'enabled', 1596876732, 28),(515, 147, 'fixing', '', 'enabled', 1596876732, 28),(516, 147, 'pending_review', '', 'enabled', 1596876732, 8),(517, 147, 'reopen', '', 'enabled', 1596876732, 21),(518, 148, 'new', '', 'enabled', 1580837799, 29),(519, 148, 'assigned', '', 'enabled', 1580837799, 26),(520, 148, 'fixing', '', 'enabled', 1580837799, 26),(521, 148, 'pending_review', '', 'enabled', 1580837799, 8),(522, 148, 'completed', '', 'enabled', 1580837799, 21),(523, 149, 'new', '', 'enabled', 1590338885, 21),(524, 149, 'assigned', '', 'enabled', 1590338885, 25),(525, 150, 'new', '', 'enabled', 1593332357, 5),(526, 150, 'assigned', '', 'enabled', 1593332357, 24),(527, 151, 'new', '', 'enabled', 1582571588, 41),(528, 151, 'assigned', '', 'enabled', 1582571588, 28),(529, 151, 'fixing', '', 'enabled', 1582571588, 28),(530, 151, 'pending_review', '', 'enabled', 1582571588, 7),(531, 151, 'completed', '', 'enabled', 1582571588, 20),(532, 152, 'new', '', 'enabled', 1583899258, 37),(533, 152, 'assigned', '', 'enabled', 1583899258, 26),(534, 152, 'fixing', '', 'enabled', 1583899258, 26),(535, 152, 'pending_review', '', 'enabled', 1583899258, 18),(536, 153, 'new', '', 'enabled', 1596858712, 28),(537, 154, 'new', '', 'enabled', 1596060709, 41),(538, 155, 'new', '', 'enabled', 1602685736, 43),(539, 155, 'assigned', '', 'enabled', 1602685736, 27),(540, 155, 'fixing', '', 'enabled', 1602685736, 27),(541, 155, 'pending_review', '', 'enabled', 1602685736, 11),(542, 155, 'reopen', '', 'enabled', 1602685736, 19),(543, 156, 'new', '', 'enabled', 1580080442, 16),(544, 156, 'assigned', '', 'enabled', 1580080442, 27),(545, 156, 'fixing', '', 'enabled', 1580080442, 27),(546, 157, 'new', '', 'enabled', 1592397589, 13),(547, 158, 'new', '', 'enabled', 1589970974, 47),(548, 158, 'assigned', '', 'enabled', 1589970974, 27),(549, 158, 'fixing', '', 'enabled', 1589970974, 27),(550, 158, 'pending_review', '', 'enabled', 1589970974, 11),(551, 158, 'reopen', '', 'enabled', 1589970974, 21),(552, 159, 'new', '', 'enabled', 1604479166, 15),(553, 159, 'assigned', '', 'enabled', 1604479166, 25),(554, 159, 'fixing', '', 'enabled', 1604479166, 25),(555, 159, 'pending_review', '', 'enabled', 1604479166, 9),(556, 160, 'new', '', 'enabled', 1598882774, 6),(557, 160, 'assigned', '', 'enabled', 1598882774, 25),(558, 160, 'fixing', '', 'enabled', 1598882774, 25),(559, 160, 'pending_review', '', 'enabled', 1598882774, 9),(560, 161, 'new', '', 'enabled', 1597289618, 20),(561, 161, 'assigned', '', 'enabled', 1597289618, 28),(562, 161, 'fixing', '', 'enabled', 1597289618, 28),(563, 161, 'pending_review', '', 'enabled', 1597289618, 6),(564, 161, 'reopen', '', 'enabled', 1597289618, 20),(565, 162, 'new', '', 'enabled', 1582293454, 30),(566, 162, 'assigned', '', 'enabled', 1582293454, 25),(567, 162, 'fixing', '', 'enabled', 1582293454, 25),(568, 162, 'pending_review', '', 'enabled', 1582293454, 7),(569, 162, 'completed', '', 'enabled', 1582293454, 23),(570, 163, 'new', '', 'enabled', 1598907889, 50),(571, 163, 'assigned', '', 'enabled', 1598907889, 27),(572, 163, 'fixing', '', 'enabled', 1598907889, 27),(573, 163, 'pending_review', '', 'enabled', 1598907889, 13),(574, 163, 'reopen', '', 'enabled', 1598907889, 20),(575, 164, 'new', '', 'enabled', 1600774303, 50),(576, 165, 'new', '', 'enabled', 1580335063, 22),(577, 165, 'assigned', '', 'enabled', 1580335063, 26),(578, 165, 'fixing', '', 'enabled', 1580335063, 26),(579, 165, 'pending_review', '', 'enabled', 1580335063, 17),(580, 165, 'completed', '', 'enabled', 1580335063, 22),(581, 166, 'new', '', 'enabled', 1591430871, 47),(582, 166, 'assigned', '', 'enabled', 1591430871, 24),(583, 166, 'fixing', '', 'enabled', 1591430871, 24),(584, 167, 'new', '', 'enabled', 1587963605, 27),(585, 167, 'assigned', '', 'enabled', 1587963605, 27),(586, 167, 'fixing', '', 'enabled', 1587963605, 27),(587, 168, 'new', '', 'enabled', 1599469630, 41),(588, 168, 'assigned', '', 'enabled', 1599469630, 27),(589, 168, 'fixing', '', 'enabled', 1599469630, 27),(590, 168, 'pending_review', '', 'enabled', 1599469630, 15),(591, 168, 'reopen', '', 'enabled', 1599469630, 19),(592, 169, 'new', '', 'enabled', 1592796207, 10),(593, 169, 'assigned', '', 'enabled', 1592796207, 26),(594, 169, 'fixing', '', 'enabled', 1592796207, 26),(595, 169, 'pending_review', '', 'enabled', 1592796207, 13),(596, 170, 'new', '', 'enabled', 1591340293, 5),(597, 170, 'assigned', '', 'enabled', 1591340293, 25),(598, 170, 'fixing', '', 'enabled', 1591340293, 25),(599, 170, 'pending_review', '', 'enabled', 1591340293, 13),(600, 170, 'completed', '', 'enabled', 1591340293, 20),(601, 171, 'new', '', 'enabled', 1578266088, 19),(602, 171, 'assigned', '', 'enabled', 1578266088, 25),(603, 171, 'fixing', '', 'enabled', 1578266088, 25),(604, 171, 'pending_review', '', 'enabled', 1578266088, 12),(605, 171, 'completed', '', 'enabled', 1578266088, 21),(606, 172, 'new', '', 'enabled', 1586071907, 49),(607, 172, 'assigned', '', 'enabled', 1586071907, 24),(608, 173, 'new', '', 'enabled', 1583422728, 10),(609, 173, 'assigned', '', 'enabled', 1583422728, 25),(610, 174, 'new', '', 'enabled', 1601466932, 22),(611, 174, 'assigned', '', 'enabled', 1601466932, 26),(612, 174, 'fixing', '', 'enabled', 1601466932, 26),(613, 174, 'pending_review', '', 'enabled', 1601466932, 6),(614, 174, 'completed', '', 'enabled', 1601466932, 20),(615, 175, 'new', '', 'enabled', 1579024181, 9),(616, 176, 'new', '', 'enabled', 1605360619, 51),(617, 176, 'assigned', '', 'enabled', 1605360619, 26),(618, 176, 'fixing', '', 'enabled', 1605360619, 26),(619, 176, 'pending_review', '', 'enabled', 1605360619, 17),(620, 176, 'completed', '', 'enabled', 1605360619, 21),(621, 177, 'new', '', 'enabled', 1586796781, 48),(622, 177, 'assigned', '', 'enabled', 1586796781, 28),(623, 177, 'fixing', '', 'enabled', 1586796781, 28),(624, 178, 'new', '', 'enabled', 1579235714, 44),(625, 178, 'assigned', '', 'enabled', 1579235714, 26),(626, 178, 'fixing', '', 'enabled', 1579235714, 26),(627, 179, 'new', '', 'enabled', 1605154960, 6),(628, 179, 'assigned', '', 'enabled', 1605154960, 24),(629, 179, 'fixing', '', 'enabled', 1605154960, 24),(630, 179, 'pending_review', '', 'enabled', 1605154960, 12),(631, 179, 'completed', '', 'enabled', 1605154960, 20),(632, 180, 'new', '', 'enabled', 1593634267, 12),(633, 181, 'new', '', 'enabled', 1586254869, 53),(634, 182, 'new', '', 'enabled', 1578383524, 33),(635, 182, 'assigned', '', 'enabled', 1578383524, 28),(636, 182, 'fixing', '', 'enabled', 1578383524, 28),(637, 182, 'pending_review', '', 'enabled', 1578383524, 4),(638, 182, 'completed', '', 'enabled', 1578383524, 21),(639, 183, 'new', '', 'enabled', 1604392243, 21),(640, 183, 'assigned', '', 'enabled', 1604392243, 24),(641, 183, 'fixing', '', 'enabled', 1604392243, 24),(642, 183, 'pending_review', '', 'enabled', 1604392243, 18),(643, 183, 'completed', '', 'enabled', 1604392243, 23),(644, 184, 'new', '', 'enabled', 1604824614, 45),(645, 184, 'assigned', '', 'enabled', 1604824614, 28),(646, 184, 'fixing', '', 'enabled', 1604824614, 28),(647, 184, 'pending_review', '', 'enabled', 1604824614, 18),(648, 185, 'new', '', 'enabled', 1605092914, 19),(649, 186, 'new', '', 'enabled', 1596567039, 13),(650, 186, 'assigned', '', 'enabled', 1596567039, 27),(651, 187, 'new', '', 'enabled', 1596903187, 38),(652, 187, 'assigned', '', 'enabled', 1596903187, 24),(653, 187, 'fixing', '', 'enabled', 1596903187, 24),(654, 188, 'new', '', 'enabled', 1587731809, 30),(655, 188, 'assigned', '', 'enabled', 1587731809, 28),(656, 189, 'new', '', 'enabled', 1602805077, 41),(657, 189, 'assigned', '', 'enabled', 1602805077, 24),(658, 189, 'fixing', '', 'enabled', 1602805077, 24),(659, 189, 'pending_review', '', 'enabled', 1602805077, 16),(660, 189, 'reopen', '', 'enabled', 1602805077, 22),(661, 190, 'new', '', 'enabled', 1603625297, 50),(662, 190, 'assigned', '', 'enabled', 1603625297, 25),(663, 190, 'fixing', '', 'enabled', 1603625297, 25),(664, 191, 'new', '', 'enabled', 1595232336, 14),(665, 191, 'assigned', '', 'enabled', 1595232336, 26),(666, 192, 'new', '', 'enabled', 1581104093, 35),(667, 192, 'assigned', '', 'enabled', 1581104093, 28),(668, 192, 'fixing', '', 'enabled', 1581104093, 28),(669, 192, 'pending_review', '', 'enabled', 1581104093, 17),(670, 192, 'completed', '', 'enabled', 1581104093, 20),(671, 193, 'new', '', 'enabled', 1579381236, 12),(672, 194, 'new', '', 'enabled', 1603650250, 34),(673, 194, 'assigned', '', 'enabled', 1603650250, 28),(674, 194, 'fixing', '', 'enabled', 1603650250, 28),(675, 194, 'pending_review', '', 'enabled', 1603650250, 17),(676, 194, 'completed', '', 'enabled', 1603650250, 22),(677, 195, 'new', '', 'enabled', 1578721361, 18),(678, 195, 'assigned', '', 'enabled', 1578721361, 27),(679, 195, 'fixing', '', 'enabled', 1578721361, 27),(680, 195, 'pending_review', '', 'enabled', 1578721361, 11),(681, 196, 'new', '', 'enabled', 1579520272, 30),(682, 197, 'new', '', 'enabled', 1600662054, 51),(683, 197, 'assigned', '', 'enabled', 1600662054, 28),(684, 197, 'fixing', '', 'enabled', 1600662054, 28),(685, 197, 'pending_review', '', 'enabled', 1600662054, 12),(686, 198, 'new', '', 'enabled', 1583551523, 52),(687, 198, 'assigned', '', 'enabled', 1583551523, 27),(688, 198, 'fixing', '', 'enabled', 1583551523, 27),(689, 198, 'pending_review', '', 'enabled', 1583551523, 5),(690, 198, 'completed', '', 'enabled', 1583551523, 23),(691, 199, 'new', '', 'enabled', 1600934937, 25),(692, 200, 'new', '', 'enabled', 1602130178, 27),(693, 200, 'assigned', '', 'enabled', 1602130178, 28),(694, 200, 'fixing', '', 'enabled', 1602130178, 28),(695, 201, 'new', '', 'enabled', 1602071917, 6),(696, 201, 'assigned', '', 'enabled', 1602071917, 27),(697, 202, 'new', '', 'enabled', 1591500949, 13),(698, 202, 'assigned', '', 'enabled', 1591500949, 24),(699, 203, 'new', '', 'enabled', 1586017885, 5),(700, 203, 'assigned', '', 'enabled', 1586017885, 28),(701, 203, 'fixing', '', 'enabled', 1586017885, 28),(702, 204, 'new', '', 'enabled', 1584317589, 11),(703, 204, 'assigned', '', 'enabled', 1584317589, 24),(704, 204, 'fixing', '', 'enabled', 1584317589, 24),(705, 204, 'pending_review', '', 'enabled', 1584317589, 10),(706, 205, 'new', '', 'enabled', 1594919053, 46),(707, 206, 'new', '', 'enabled', 1577899571, 9),(708, 206, 'assigned', '', 'enabled', 1577899571, 25),(709, 207, 'new', '', 'enabled', 1587351099, 14),(710, 207, 'assigned', '', 'enabled', 1587351099, 27),(711, 207, 'fixing', '', 'enabled', 1587351099, 27),(712, 207, 'pending_review', '', 'enabled', 1587351099, 11),(713, 208, 'new', '', 'enabled', 1604198318, 19),(714, 208, 'assigned', '', 'enabled', 1604198318, 24),(715, 208, 'fixing', '', 'enabled', 1604198318, 24),(716, 208, 'pending_review', '', 'enabled', 1604198318, 14),(717, 209, 'new', '', 'enabled', 1599315892, 32),(718, 209, 'assigned', '', 'enabled', 1599315892, 27),(719, 209, 'fixing', '', 'enabled', 1599315892, 27),(720, 210, 'new', '', 'enabled', 1605056022, 41),(721, 210, 'assigned', '', 'enabled', 1605056022, 27),(722, 210, 'fixing', '', 'enabled', 1605056022, 27),(723, 211, 'new', '', 'enabled', 1600192638, 34),(724, 211, 'assigned', '', 'enabled', 1600192638, 28),(725, 211, 'fixing', '', 'enabled', 1600192638, 28),(726, 212, 'new', '', 'enabled', 1590191066, 16),(727, 212, 'assigned', '', 'enabled', 1590191066, 27),(728, 212, 'fixing', '', 'enabled', 1590191066, 27),(729, 212, 'pending_review', '', 'enabled', 1590191066, 6),(730, 212, 'reopen', '', 'enabled', 1590191066, 22),(731, 213, 'new', '', 'enabled', 1585135443, 51),(732, 213, 'assigned', '', 'enabled', 1585135443, 28),(733, 213, 'fixing', '', 'enabled', 1585135443, 28),(734, 214, 'new', '', 'enabled', 1581633494, 34),(735, 215, 'new', '', 'enabled', 1599157296, 46),(736, 215, 'assigned', '', 'enabled', 1599157296, 27),(737, 215, 'fixing', '', 'enabled', 1599157296, 27),(738, 215, 'pending_review', '', 'enabled', 1599157296, 10),(739, 215, 'completed', '', 'enabled', 1599157296, 19),(740, 216, 'new', '', 'enabled', 1584381601, 14),(741, 216, 'assigned', '', 'enabled', 1584381601, 28),(742, 216, 'fixing', '', 'enabled', 1584381601, 28),(743, 216, 'pending_review', '', 'enabled', 1584381601, 15),(744, 217, 'new', '', 'enabled', 1596334386, 49),(745, 217, 'assigned', '', 'enabled', 1596334386, 26),(746, 217, 'fixing', '', 'enabled', 1596334386, 26),(747, 218, 'new', '', 'enabled', 1595460372, 21),(748, 218, 'assigned', '', 'enabled', 1595460372, 24),(749, 219, 'new', '', 'enabled', 1595706491, 53),(750, 219, 'assigned', '', 'enabled', 1595706491, 26),(751, 219, 'fixing', '', 'enabled', 1595706491, 26),(752, 219, 'pending_review', '', 'enabled', 1595706491, 5),(753, 219, 'reopen', '', 'enabled', 1595706491, 19),(754, 220, 'new', '', 'enabled', 1605390320, 42),(755, 220, 'assigned', '', 'enabled', 1605390320, 27),(756, 220, 'fixing', '', 'enabled', 1605390320, 27),(757, 220, 'pending_review', '', 'enabled', 1605390320, 5),(758, 220, 'reopen', '', 'enabled', 1605390320, 19),(759, 221, 'new', '', 'enabled', 1594417156, 16),(760, 221, 'assigned', '', 'enabled', 1594417156, 24),(761, 221, 'fixing', '', 'enabled', 1594417156, 24),(762, 222, 'new', '', 'enabled', 1598316576, 18),(763, 222, 'assigned', '', 'enabled', 1598316576, 27),(764, 223, 'new', '', 'enabled', 1583668003, 4),(765, 223, 'assigned', '', 'enabled', 1583668003, 27),(766, 223, 'fixing', '', 'enabled', 1583668003, 27),(767, 223, 'pending_review', '', 'enabled', 1583668003, 12),(768, 224, 'new', '', 'enabled', 1585800215, 11),(769, 225, 'new', '', 'enabled', 1597812151, 31),(770, 226, 'new', '', 'enabled', 1599783183, 40),(771, 227, 'new', '', 'enabled', 1584481851, 39),(772, 227, 'assigned', '', 'enabled', 1584481851, 25),(773, 228, 'new', '', 'enabled', 1593841793, 19),(774, 228, 'assigned', '', 'enabled', 1593841793, 26),(775, 228, 'fixing', '', 'enabled', 1593841793, 26),(776, 228, 'pending_review', '', 'enabled', 1593841793, 8),(777, 228, 'reopen', '', 'enabled', 1593841793, 19),(778, 229, 'new', '', 'enabled', 1592993462, 20),(779, 230, 'new', '', 'enabled', 1603312257, 11),(780, 230, 'assigned', '', 'enabled', 1603312257, 28),(781, 230, 'fixing', '', 'enabled', 1603312257, 28),(782, 230, 'pending_review', '', 'enabled', 1603312257, 7),(783, 230, 'reopen', '', 'enabled', 1603312257, 21),(784, 231, 'new', '', 'enabled', 1585845181, 8),(785, 231, 'assigned', '', 'enabled', 1585845181, 26),(786, 231, 'fixing', '', 'enabled', 1585845181, 26),(787, 231, 'pending_review', '', 'enabled', 1585845181, 5),(788, 231, 'completed', '', 'enabled', 1585845181, 20),(789, 232, 'new', '', 'enabled', 1595315709, 47),(790, 232, 'assigned', '', 'enabled', 1595315709, 28),(791, 232, 'fixing', '', 'enabled', 1595315709, 28),(792, 233, 'new', '', 'enabled', 1589443371, 33),(793, 233, 'assigned', '', 'enabled', 1589443371, 28),(794, 233, 'fixing', '', 'enabled', 1589443371, 28),(795, 233, 'pending_review', '', 'enabled', 1589443371, 15),(796, 233, 'completed', '', 'enabled', 1589443371, 22),(797, 234, 'new', '', 'enabled', 1599935393, 30),(798, 235, 'new', '', 'enabled', 1599645047, 27),(799, 235, 'assigned', '', 'enabled', 1599645047, 24),(800, 235, 'fixing', '', 'enabled', 1599645047, 24),(801, 235, 'pending_review', '', 'enabled', 1599645047, 9),(802, 236, 'new', '', 'enabled', 1584690657, 42),(803, 236, 'assigned', '', 'enabled', 1584690657, 26),(804, 236, 'fixing', '', 'enabled', 1584690657, 26),(805, 237, 'new', '', 'enabled', 1590473080, 12),(806, 237, 'assigned', '', 'enabled', 1590473080, 28),(807, 237, 'fixing', '', 'enabled', 1590473080, 28),(808, 238, 'new', '', 'enabled', 1604393366, 41),(809, 238, 'assigned', '', 'enabled', 1604393366, 28),(810, 238, 'fixing', '', 'enabled', 1604393366, 28),(811, 238, 'pending_review', '', 'enabled', 1604393366, 17),(812, 239, 'new', '', 'enabled', 1581946944, 13),(813, 239, 'assigned', '', 'enabled', 1581946944, 27),(814, 239, 'fixing', '', 'enabled', 1581946944, 27),(815, 240, 'new', '', 'enabled', 1597029190, 4),(816, 240, 'assigned', '', 'enabled', 1597029190, 25),(817, 240, 'fixing', '', 'enabled', 1597029190, 25),(818, 240, 'pending_review', '', 'enabled', 1597029190, 18),(819, 241, 'new', '', 'enabled', 1594166382, 22),(820, 241, 'assigned', '', 'enabled', 1594166382, 25),(821, 241, 'fixing', '', 'enabled', 1594166382, 25),(822, 241, 'pending_review', '', 'enabled', 1594166382, 16),(823, 241, 'reopen', '', 'enabled', 1594166382, 20),(824, 242, 'new', '', 'enabled', 1582529662, 12),(825, 243, 'new', '', 'enabled', 1583493823, 22),(826, 243, 'assigned', '', 'enabled', 1583493823, 26),(827, 243, 'fixing', '', 'enabled', 1583493823, 26),(828, 243, 'pending_review', '', 'enabled', 1583493823, 16),(829, 244, 'new', '', 'enabled', 1578640363, 43),(830, 245, 'new', '', 'enabled', 1582464227, 41),(831, 245, 'assigned', '', 'enabled', 1582464227, 28),(832, 245, 'fixing', '', 'enabled', 1582464227, 28),(833, 245, 'pending_review', '', 'enabled', 1582464227, 6),(834, 245, 'reopen', '', 'enabled', 1582464227, 20),(835, 246, 'new', '', 'enabled', 1590796311, 31),(836, 247, 'new', '', 'enabled', 1588341395, 15),(837, 248, 'new', '', 'enabled', 1594630361, 29),(838, 248, 'assigned', '', 'enabled', 1594630361, 24),(839, 249, 'new', '', 'enabled', 1589801932, 25),(840, 249, 'assigned', '', 'enabled', 1589801932, 24),(841, 249, 'fixing', '', 'enabled', 1589801932, 24),(842, 249, 'pending_review', '', 'enabled', 1589801932, 16),(843, 249, 'reopen', '', 'enabled', 1589801932, 19),(844, 250, 'new', '', 'enabled', 1602634962, 49),(845, 250, 'assigned', '', 'enabled', 1602634962, 24),(846, 250, 'fixing', '', 'enabled', 1602634962, 24),(847, 250, 'pending_review', '', 'enabled', 1602634962, 11),(848, 250, 'completed', '', 'enabled', 1602634962, 23),(849, 251, 'new', '', 'enabled', 1591077208, 46),(850, 251, 'assigned', '', 'enabled', 1591077208, 25),(851, 251, 'fixing', '', 'enabled', 1591077208, 25),(852, 251, 'pending_review', '', 'enabled', 1591077208, 7),(853, 251, 'reopen', '', 'enabled', 1591077208, 22),(854, 252, 'new', '', 'enabled', 1585300238, 23),(855, 253, 'new', '', 'enabled', 1585138881, 28),(856, 253, 'assigned', '', 'enabled', 1585138881, 26),(857, 253, 'fixing', '', 'enabled', 1585138881, 26),(858, 254, 'new', '', 'enabled', 1593725435, 5),(859, 255, 'new', '', 'enabled', 1592561515, 39),(860, 255, 'assigned', '', 'enabled', 1592561515, 27),(861, 255, 'fixing', '', 'enabled', 1592561515, 27),(862, 255, 'pending_review', '', 'enabled', 1592561515, 18),(863, 255, 'completed', '', 'enabled', 1592561515, 20),(864, 256, 'new', '', 'enabled', 1603420403, 41),(865, 256, 'assigned', '', 'enabled', 1603420403, 25),(866, 256, 'fixing', '', 'enabled', 1603420403, 25),(867, 256, 'pending_review', '', 'enabled', 1603420403, 13),(868, 256, 'reopen', '', 'enabled', 1603420403, 21),(869, 257, 'new', '', 'enabled', 1589801463, 38),(870, 257, 'assigned', '', 'enabled', 1589801463, 26),(871, 258, 'new', '', 'enabled', 1579069822, 10),(872, 258, 'assigned', '', 'enabled', 1579069822, 28),(873, 258, 'fixing', '', 'enabled', 1579069822, 28),(874, 259, 'new', '', 'enabled', 1604488981, 21),(875, 260, 'new', '', 'enabled', 1588091292, 4),(876, 260, 'assigned', '', 'enabled', 1588091292, 27),(877, 260, 'fixing', '', 'enabled', 1588091292, 27),(878, 260, 'pending_review', '', 'enabled', 1588091292, 7),(879, 260, 'reopen', '', 'enabled', 1588091292, 19),(880, 261, 'new', '', 'enabled', 1597022538, 8),(881, 261, 'assigned', '', 'enabled', 1597022538, 28),(882, 261, 'fixing', '', 'enabled', 1597022538, 28),(883, 261, 'pending_review', '', 'enabled', 1597022538, 17),(884, 262, 'new', '', 'enabled', 1590770931, 31),(885, 262, 'assigned', '', 'enabled', 1590770931, 25),(886, 263, 'new', '', 'enabled', 1584219307, 30),(887, 263, 'assigned', '', 'enabled', 1584219307, 27),(888, 263, 'fixing', '', 'enabled', 1584219307, 27),(889, 263, 'pending_review', '', 'enabled', 1584219307, 13),(890, 263, 'completed', '', 'enabled', 1584219307, 23),(891, 264, 'new', '', 'enabled', 1595076758, 17),(892, 264, 'assigned', '', 'enabled', 1595076758, 27),(893, 264, 'fixing', '', 'enabled', 1595076758, 27),(894, 264, 'pending_review', '', 'enabled', 1595076758, 4),(895, 265, 'new', '', 'enabled', 1589016595, 24),(896, 265, 'assigned', '', 'enabled', 1589016595, 28),(897, 265, 'fixing', '', 'enabled', 1589016595, 28),(898, 265, 'pending_review', '', 'enabled', 1589016595, 16),(899, 265, 'completed', '', 'enabled', 1589016595, 22),(900, 266, 'new', '', 'enabled', 1604416034, 28),(901, 266, 'assigned', '', 'enabled', 1604416034, 24),(902, 267, 'new', '', 'enabled', 1585061671, 39),(903, 267, 'assigned', '', 'enabled', 1585061671, 26),(904, 267, 'fixing', '', 'enabled', 1585061671, 26),(905, 267, 'pending_review', '', 'enabled', 1585061671, 11),(906, 268, 'new', '', 'enabled', 1583817530, 13),(907, 268, 'assigned', '', 'enabled', 1583817530, 25),(908, 268, 'fixing', '', 'enabled', 1583817530, 25),(909, 268, 'pending_review', '', 'enabled', 1583817530, 11),(910, 268, 'completed', '', 'enabled', 1583817530, 19),(911, 269, 'new', '', 'enabled', 1602754381, 19),(912, 269, 'assigned', '', 'enabled', 1602754381, 24),(913, 269, 'fixing', '', 'enabled', 1602754381, 24),(914, 269, 'pending_review', '', 'enabled', 1602754381, 18),(915, 269, 'reopen', '', 'enabled', 1602754381, 23),(916, 270, 'new', '', 'enabled', 1582865204, 53),(917, 270, 'assigned', '', 'enabled', 1582865204, 25),(918, 270, 'fixing', '', 'enabled', 1582865204, 25),(919, 270, 'pending_review', '', 'enabled', 1582865204, 9),(920, 271, 'new', '', 'enabled', 1585991444, 32),(921, 271, 'assigned', '', 'enabled', 1585991444, 25),(922, 271, 'fixing', '', 'enabled', 1585991444, 25),(923, 272, 'new', '', 'enabled', 1587345738, 53),(924, 273, 'new', '', 'enabled', 1581713794, 40),(925, 274, 'new', '', 'enabled', 1604805945, 46),(926, 274, 'assigned', '', 'enabled', 1604805945, 28),(927, 274, 'fixing', '', 'enabled', 1604805945, 28),(928, 274, 'pending_review', '', 'enabled', 1604805945, 15),(929, 274, 'completed', '', 'enabled', 1604805945, 19),(930, 275, 'new', '', 'enabled', 1600528471, 43),(931, 275, 'assigned', '', 'enabled', 1600528471, 28),(932, 275, 'fixing', '', 'enabled', 1600528471, 28),(933, 276, 'new', '', 'enabled', 1594150958, 45),(934, 276, 'assigned', '', 'enabled', 1594150958, 28),(935, 277, 'new', '', 'enabled', 1594601779, 53),(936, 277, 'assigned', '', 'enabled', 1594601779, 27),(937, 277, 'fixing', '', 'enabled', 1594601779, 27),(938, 277, 'pending_review', '', 'enabled', 1594601779, 18),(939, 278, 'new', '', 'enabled', 1595367382, 50),(940, 278, 'assigned', '', 'enabled', 1595367382, 25),(941, 278, 'fixing', '', 'enabled', 1595367382, 25),(942, 279, 'new', '', 'enabled', 1595733340, 47),(943, 279, 'assigned', '', 'enabled', 1595733340, 24),(944, 279, 'fixing', '', 'enabled', 1595733340, 24),(945, 279, 'pending_review', '', 'enabled', 1595733340, 8),(946, 279, 'completed', '', 'enabled', 1595733340, 23),(947, 280, 'new', '', 'enabled', 1596725356, 10),(948, 280, 'assigned', '', 'enabled', 1596725356, 26),(949, 281, 'new', '', 'enabled', 1594022472, 15),(950, 281, 'assigned', '', 'enabled', 1594022472, 25),(951, 281, 'fixing', '', 'enabled', 1594022472, 25),(952, 281, 'pending_review', '', 'enabled', 1594022472, 9),(953, 281, 'reopen', '', 'enabled', 1594022472, 23),(954, 282, 'new', '', 'enabled', 1581149451, 36),(955, 282, 'assigned', '', 'enabled', 1581149451, 25),(956, 283, 'new', '', 'enabled', 1593715461, 35),(957, 283, 'assigned', '', 'enabled', 1593715461, 25),(958, 283, 'fixing', '', 'enabled', 1593715461, 25),(959, 284, 'new', '', 'enabled', 1588534696, 30),(960, 284, 'assigned', '', 'enabled', 1588534696, 26),(961, 284, 'fixing', '', 'enabled', 1588534696, 26),(962, 284, 'pending_review', '', 'enabled', 1588534696, 4),(963, 285, 'new', '', 'enabled', 1587937727, 21),(964, 286, 'new', '', 'enabled', 1588095783, 44),(965, 286, 'assigned', '', 'enabled', 1588095783, 24),(966, 286, 'fixing', '', 'enabled', 1588095783, 24),(967, 286, 'pending_review', '', 'enabled', 1588095783, 13),(968, 286, 'reopen', '', 'enabled', 1588095783, 23),(969, 287, 'new', '', 'enabled', 1592388546, 43),(970, 288, 'new', '', 'enabled', 1582473312, 36),(971, 288, 'assigned', '', 'enabled', 1582473312, 25),(972, 288, 'fixing', '', 'enabled', 1582473312, 25),(973, 289, 'new', '', 'enabled', 1581058889, 20),(974, 289, 'assigned', '', 'enabled', 1581058889, 26),(975, 289, 'fixing', '', 'enabled', 1581058889, 26),(976, 289, 'pending_review', '', 'enabled', 1581058889, 11),(977, 290, 'new', '', 'enabled', 1592418467, 17),(978, 290, 'assigned', '', 'enabled', 1592418467, 25),(979, 290, 'fixing', '', 'enabled', 1592418467, 25),(980, 290, 'pending_review', '', 'enabled', 1592418467, 6),(981, 290, 'reopen', '', 'enabled', 1592418467, 19),(982, 291, 'new', '', 'enabled', 1582439697, 51),(983, 291, 'assigned', '', 'enabled', 1582439697, 25),(984, 291, 'fixing', '', 'enabled', 1582439697, 25),(985, 292, 'new', '', 'enabled', 1591924470, 5),(986, 292, 'assigned', '', 'enabled', 1591924470, 27),(987, 292, 'fixing', '', 'enabled', 1591924470, 27),(988, 293, 'new', '', 'enabled', 1579462341, 13),(989, 293, 'assigned', '', 'enabled', 1579462341, 26),(990, 293, 'fixing', '', 'enabled', 1579462341, 26),(991, 293, 'pending_review', '', 'enabled', 1579462341, 17),(992, 293, 'reopen', '', 'enabled', 1579462341, 20),(993, 294, 'new', '', 'enabled', 1599554231, 13),(994, 294, 'assigned', '', 'enabled', 1599554231, 27),(995, 295, 'new', '', 'enabled', 1601863988, 46),(996, 295, 'assigned', '', 'enabled', 1601863988, 27),(997, 295, 'fixing', '', 'enabled', 1601863988, 27),(998, 295, 'pending_review', '', 'enabled', 1601863988, 14),(999, 296, 'new', '', 'enabled', 1593089492, 44),(1000, 297, 'new', '', 'enabled', 1604851135, 42),(1001, 297, 'assigned', '', 'enabled', 1604851135, 25),(1002, 298, 'new', '', 'enabled', 1587022563, 8),(1003, 298, 'assigned', '', 'enabled', 1587022563, 24),(1004, 298, 'fixing', '', 'enabled', 1587022563, 24),(1005, 298, 'pending_review', '', 'enabled', 1587022563, 18),(1006, 299, 'new', '', 'enabled', 1598412973, 36),(1007, 299, 'assigned', '', 'enabled', 1598412973, 24),(1008, 299, 'fixing', '', 'enabled', 1598412973, 24),(1009, 299, 'pending_review', '', 'enabled', 1598412973, 7),(1010, 299, 'reopen', '', 'enabled', 1598412973, 23),(1011, 300, 'new', '', 'enabled', 1602160948, 39),(1012, 300, 'assigned', '', 'enabled', 1602160948, 28),(1013, 301, 'new', '', 'enabled', 1596870301, 10),(1014, 301, 'assigned', '', 'enabled', 1596870301, 26),(1015, 302, 'new', '', 'enabled', 1589061256, 4),(1016, 302, 'assigned', '', 'enabled', 1589061256, 24),(1017, 302, 'fixing', '', 'enabled', 1589061256, 24),(1018, 302, 'pending_review', '', 'enabled', 1589061256, 12),(1019, 303, 'new', '', 'enabled', 1597230281, 27),(1020, 303, 'assigned', '', 'enabled', 1597230281, 26),(1021, 303, 'fixing', '', 'enabled', 1597230281, 26),(1022, 303, 'pending_review', '', 'enabled', 1597230281, 17),(1023, 303, 'reopen', '', 'enabled', 1597230281, 20),(1024, 304, 'new', '', 'enabled', 1581953074, 50),(1025, 305, 'new', '', 'enabled', 1579126265, 35),(1026, 305, 'assigned', '', 'enabled', 1579126265, 26),(1027, 305, 'fixing', '', 'enabled', 1579126265, 26),(1028, 305, 'pending_review', '', 'enabled', 1579126265, 14),(1029, 306, 'new', '', 'enabled', 1604976532, 9),(1030, 306, 'assigned', '', 'enabled', 1604976532, 26),(1031, 306, 'fixing', '', 'enabled', 1604976532, 26),(1032, 306, 'pending_review', '', 'enabled', 1604976532, 9),(1033, 307, 'new', '', 'enabled', 1603476160, 30),(1034, 307, 'assigned', '', 'enabled', 1603476160, 28),(1035, 307, 'fixing', '', 'enabled', 1603476160, 28),(1036, 307, 'pending_review', '', 'enabled', 1603476160, 18),(1037, 308, 'new', '', 'enabled', 1603879170, 7),(1038, 308, 'assigned', '', 'enabled', 1603879170, 28),(1039, 308, 'fixing', '', 'enabled', 1603879170, 28),(1040, 309, 'new', '', 'enabled', 1603685834, 52),(1041, 310, 'new', '', 'enabled', 1602990949, 16),(1042, 310, 'assigned', '', 'enabled', 1602990949, 26),(1043, 310, 'fixing', '', 'enabled', 1602990949, 26),(1044, 310, 'pending_review', '', 'enabled', 1602990949, 12),(1045, 310, 'completed', '', 'enabled', 1602990949, 21),(1046, 311, 'new', '', 'enabled', 1604372450, 48),(1047, 312, 'new', '', 'enabled', 1588329050, 17),(1048, 312, 'assigned', '', 'enabled', 1588329050, 27),(1049, 312, 'fixing', '', 'enabled', 1588329050, 27),(1050, 312, 'pending_review', '', 'enabled', 1588329050, 6),(1051, 312, 'completed', '', 'enabled', 1588329050, 19),(1052, 313, 'new', '', 'enabled', 1601803839, 33),(1053, 313, 'assigned', '', 'enabled', 1601803839, 24),(1054, 313, 'fixing', '', 'enabled', 1601803839, 24),(1055, 314, 'new', '', 'enabled', 1589831329, 40),(1056, 314, 'assigned', '', 'enabled', 1589831329, 25),(1057, 315, 'new', '', 'enabled', 1605482187, 45),(1058, 316, 'new', '', 'enabled', 1577968454, 47),(1059, 316, 'assigned', '', 'enabled', 1577968454, 26),(1060, 316, 'fixing', '', 'enabled', 1577968454, 26),(1061, 316, 'pending_review', '', 'enabled', 1577968454, 17),(1062, 316, 'reopen', '', 'enabled', 1577968454, 20),(1063, 317, 'new', '', 'enabled', 1588898586, 37),(1064, 317, 'assigned', '', 'enabled', 1588898586, 28),(1065, 318, 'new', '', 'enabled', 1595718699, 5),(1066, 319, 'new', '', 'enabled', 1578870923, 27),(1067, 319, 'assigned', '', 'enabled', 1578870923, 26),(1068, 320, 'new', '', 'enabled', 1583734198, 33),(1069, 320, 'assigned', '', 'enabled', 1583734198, 26),(1070, 320, 'fixing', '', 'enabled', 1583734198, 26),(1071, 320, 'pending_review', '', 'enabled', 1583734198, 18),(1072, 320, 'reopen', '', 'enabled', 1583734198, 21),(1073, 321, 'new', '', 'enabled', 1593618191, 15),(1074, 321, 'assigned', '', 'enabled', 1593618191, 25),(1075, 321, 'fixing', '', 'enabled', 1593618191, 25),(1076, 321, 'pending_review', '', 'enabled', 1593618191, 7),(1077, 321, 'reopen', '', 'enabled', 1593618191, 23),(1078, 322, 'new', '', 'enabled', 1592629792, 23),(1079, 322, 'assigned', '', 'enabled', 1592629792, 27),(1080, 322, 'fixing', '', 'enabled', 1592629792, 27),(1081, 322, 'pending_review', '', 'enabled', 1592629792, 7),(1082, 322, 'reopen', '', 'enabled', 1592629792, 21),(1083, 323, 'new', '', 'enabled', 1585431566, 12),(1084, 323, 'assigned', '', 'enabled', 1585431566, 24),(1085, 324, 'new', '', 'enabled', 1596364592, 10),(1086, 324, 'assigned', '', 'enabled', 1596364592, 26),(1087, 325, 'new', '', 'enabled', 1594292511, 5),(1088, 325, 'assigned', '', 'enabled', 1594292511, 26),(1089, 326, 'new', '', 'enabled', 1581784802, 21),(1090, 326, 'assigned', '', 'enabled', 1581784802, 25),(1091, 326, 'fixing', '', 'enabled', 1581784802, 25),(1092, 326, 'pending_review', '', 'enabled', 1581784802, 5),(1093, 326, 'reopen', '', 'enabled', 1581784802, 20),(1094, 327, 'new', '', 'enabled', 1603973591, 10),(1095, 328, 'new', '', 'enabled', 1601497896, 14),(1096, 329, 'new', '', 'enabled', 1591546673, 49),(1097, 329, 'assigned', '', 'enabled', 1591546673, 26),(1098, 329, 'fixing', '', 'enabled', 1591546673, 26),(1099, 330, 'new', '', 'enabled', 1605317165, 35),(1100, 330, 'assigned', '', 'enabled', 1605317165, 28),(1101, 331, 'new', '', 'enabled', 1588713036, 49),(1102, 332, 'new', '', 'enabled', 1595846657, 20),(1103, 332, 'assigned', '', 'enabled', 1595846657, 28),(1104, 332, 'fixing', '', 'enabled', 1595846657, 28),(1105, 332, 'pending_review', '', 'enabled', 1595846657, 12),(1106, 332, 'completed', '', 'enabled', 1595846657, 21),(1107, 333, 'new', '', 'enabled', 1605482851, 14),(1108, 333, 'assigned', '', 'enabled', 1605482851, 27),(1109, 333, 'fixing', '', 'enabled', 1605482851, 27),(1110, 333, 'pending_review', '', 'enabled', 1605482851, 7),(1111, 333, 'reopen', '', 'enabled', 1605482851, 22),(1112, 334, 'new', '', 'enabled', 1587375399, 32),(1113, 334, 'assigned', '', 'enabled', 1587375399, 25),(1114, 334, 'fixing', '', 'enabled', 1587375399, 25),(1115, 335, 'new', '', 'enabled', 1594543323, 25),(1116, 335, 'assigned', '', 'enabled', 1594543323, 24),(1117, 336, 'new', '', 'enabled', 1594092387, 14),(1118, 336, 'assigned', '', 'enabled', 1594092387, 26),(1119, 336, 'fixing', '', 'enabled', 1594092387, 26),(1120, 336, 'pending_review', '', 'enabled', 1594092387, 4),(1121, 336, 'completed', '', 'enabled', 1594092387, 19),(1122, 337, 'new', '', 'enabled', 1588461348, 38),(1123, 337, 'assigned', '', 'enabled', 1588461348, 27),(1124, 337, 'fixing', '', 'enabled', 1588461348, 27),(1125, 337, 'pending_review', '', 'enabled', 1588461348, 16),(1126, 338, 'new', '', 'enabled', 1590896401, 20),(1127, 338, 'assigned', '', 'enabled', 1590896401, 25),(1128, 339, 'new', '', 'enabled', 1593556804, 33),(1129, 339, 'assigned', '', 'enabled', 1593556804, 26),(1130, 339, 'fixing', '', 'enabled', 1593556804, 26),(1131, 339, 'pending_review', '', 'enabled', 1593556804, 8),(1132, 340, 'new', '', 'enabled', 1594575446, 18),(1133, 340, 'assigned', '', 'enabled', 1594575446, 25),(1134, 341, 'new', '', 'enabled', 1591965980, 36),(1135, 341, 'assigned', '', 'enabled', 1591965980, 28),(1136, 341, 'fixing', '', 'enabled', 1591965980, 28),(1137, 341, 'pending_review', '', 'enabled', 1591965980, 9),(1138, 341, 'reopen', '', 'enabled', 1591965980, 22),(1139, 342, 'new', '', 'enabled', 1598881577, 24),(1140, 342, 'assigned', '', 'enabled', 1598881577, 24),(1141, 342, 'fixing', '', 'enabled', 1598881577, 24),(1142, 342, 'pending_review', '', 'enabled', 1598881577, 15),(1143, 343, 'new', '', 'enabled', 1604248627, 41),(1144, 344, 'new', '', 'enabled', 1581560451, 30),(1145, 344, 'assigned', '', 'enabled', 1581560451, 28),(1146, 344, 'fixing', '', 'enabled', 1581560451, 28),(1147, 344, 'pending_review', '', 'enabled', 1581560451, 14),(1148, 345, 'new', '', 'enabled', 1593607550, 29),(1149, 346, 'new', '', 'enabled', 1580385876, 28),(1150, 346, 'assigned', '', 'enabled', 1580385876, 25),(1151, 346, 'fixing', '', 'enabled', 1580385876, 25),(1152, 346, 'pending_review', '', 'enabled', 1580385876, 16),(1153, 347, 'new', '', 'enabled', 1589178715, 44),(1154, 347, 'assigned', '', 'enabled', 1589178715, 24),(1155, 347, 'fixing', '', 'enabled', 1589178715, 24),(1156, 347, 'pending_review', '', 'enabled', 1589178715, 17),(1157, 347, 'completed', '', 'enabled', 1589178715, 22),(1158, 348, 'new', '', 'enabled', 1605134630, 33),(1159, 348, 'assigned', '', 'enabled', 1605134630, 27),(1160, 348, 'fixing', '', 'enabled', 1605134630, 27),(1161, 348, 'pending_review', '', 'enabled', 1605134630, 5),(1162, 349, 'new', '', 'enabled', 1579102391, 53),(1163, 349, 'assigned', '', 'enabled', 1579102391, 28),(1164, 349, 'fixing', '', 'enabled', 1579102391, 28),(1165, 350, 'new', '', 'enabled', 1600357311, 21),(1166, 350, 'assigned', '', 'enabled', 1600357311, 24),(1167, 350, 'fixing', '', 'enabled', 1600357311, 24),(1168, 350, 'pending_review', '', 'enabled', 1600357311, 4),(1169, 350, 'reopen', '', 'enabled', 1600357311, 22),(1170, 351, 'new', '', 'enabled', 1601700414, 40),(1171, 351, 'assigned', '', 'enabled', 1601700414, 28),(1172, 351, 'fixing', '', 'enabled', 1601700414, 28),(1173, 351, 'pending_review', '', 'enabled', 1601700414, 18),(1174, 351, 'completed', '', 'enabled', 1601700414, 20),(1175, 352, 'new', '', 'enabled', 1586252913, 24),(1176, 352, 'assigned', '', 'enabled', 1586252913, 26),(1177, 352, 'fixing', '', 'enabled', 1586252913, 26),(1178, 352, 'pending_review', '', 'enabled', 1586252913, 6),(1179, 352, 'reopen', '', 'enabled', 1586252913, 23),(1180, 353, 'new', '', 'enabled', 1603836115, 20),(1181, 354, 'new', '', 'enabled', 1597739049, 22),(1182, 354, 'assigned', '', 'enabled', 1597739049, 25),(1183, 354, 'fixing', '', 'enabled', 1597739049, 25),(1184, 354, 'pending_review', '', 'enabled', 1597739049, 12),(1185, 354, 'completed', '', 'enabled', 1597739049, 22),(1186, 355, 'new', '', 'enabled', 1590165025, 44),(1187, 355, 'assigned', '', 'enabled', 1590165025, 28),(1188, 355, 'fixing', '', 'enabled', 1590165025, 28),(1189, 356, 'new', '', 'enabled', 1591266381, 24),(1190, 356, 'assigned', '', 'enabled', 1591266381, 25),(1191, 356, 'fixing', '', 'enabled', 1591266381, 25),(1192, 357, 'new', '', 'enabled', 1600613179, 31),(1193, 357, 'assigned', '', 'enabled', 1600613179, 27),(1194, 357, 'fixing', '', 'enabled', 1600613179, 27),(1195, 357, 'pending_review', '', 'enabled', 1600613179, 8),(1196, 358, 'new', '', 'enabled', 1580488623, 36),(1197, 358, 'assigned', '', 'enabled', 1580488623, 27),(1198, 358, 'fixing', '', 'enabled', 1580488623, 27),(1199, 359, 'new', '', 'enabled', 1602828523, 35),(1200, 359, 'assigned', '', 'enabled', 1602828523, 28),(1201, 359, 'fixing', '', 'enabled', 1602828523, 28),(1202, 360, 'new', '', 'enabled', 1587915767, 39),(1203, 360, 'assigned', '', 'enabled', 1587915767, 24),(1204, 360, 'fixing', '', 'enabled', 1587915767, 24),(1205, 360, 'pending_review', '', 'enabled', 1587915767, 5),(1206, 361, 'new', '', 'enabled', 1582566624, 37),(1207, 361, 'assigned', '', 'enabled', 1582566624, 28),(1208, 361, 'fixing', '', 'enabled', 1582566624, 28),(1209, 362, 'new', '', 'enabled', 1594297920, 30),(1210, 362, 'assigned', '', 'enabled', 1594297920, 24),(1211, 362, 'fixing', '', 'enabled', 1594297920, 24),(1212, 362, 'pending_review', '', 'enabled', 1594297920, 11),(1213, 362, 'completed', '', 'enabled', 1594297920, 20),(1214, 363, 'new', '', 'enabled', 1586440150, 6),(1215, 364, 'new', '', 'enabled', 1601240643, 21),(1216, 364, 'assigned', '', 'enabled', 1601240643, 27),(1217, 364, 'fixing', '', 'enabled', 1601240643, 27),(1218, 365, 'new', '', 'enabled', 1582357432, 11),(1219, 365, 'assigned', '', 'enabled', 1582357432, 27),(1220, 365, 'fixing', '', 'enabled', 1582357432, 27),(1221, 365, 'pending_review', '', 'enabled', 1582357432, 8),(1222, 366, 'new', '', 'enabled', 1577854801, 30),(1223, 366, 'assigned', '', 'enabled', 1577854801, 28),(1224, 366, 'fixing', '', 'enabled', 1577854801, 28),(1225, 366, 'pending_review', '', 'enabled', 1577854801, 13),(1226, 367, 'new', '', 'enabled', 1605022049, 6),(1227, 368, 'new', '', 'enabled', 1591976464, 17),(1228, 368, 'assigned', '', 'enabled', 1591976464, 28),(1229, 368, 'fixing', '', 'enabled', 1591976464, 28),(1230, 369, 'new', '', 'enabled', 1602454473, 12),(1231, 369, 'assigned', '', 'enabled', 1602454473, 26),(1232, 369, 'fixing', '', 'enabled', 1602454473, 26),(1233, 369, 'pending_review', '', 'enabled', 1602454473, 6),(1234, 369, 'completed', '', 'enabled', 1602454473, 21),(1235, 370, 'new', '', 'enabled', 1586432839, 7),(1236, 371, 'new', '', 'enabled', 1602075814, 23),(1237, 371, 'assigned', '', 'enabled', 1602075814, 27),(1238, 371, 'fixing', '', 'enabled', 1602075814, 27),(1239, 371, 'pending_review', '', 'enabled', 1602075814, 4),(1240, 371, 'completed', '', 'enabled', 1602075814, 23),(1241, 372, 'new', '', 'enabled', 1604949795, 5),(1242, 372, 'assigned', '', 'enabled', 1604949795, 27),(1243, 372, 'fixing', '', 'enabled', 1604949795, 27),(1244, 372, 'pending_review', '', 'enabled', 1604949795, 6),(1245, 373, 'new', '', 'enabled', 1591757055, 39),(1246, 373, 'assigned', '', 'enabled', 1591757055, 26),(1247, 373, 'fixing', '', 'enabled', 1591757055, 26),(1248, 373, 'pending_review', '', 'enabled', 1591757055, 7),(1249, 374, 'new', '', 'enabled', 1579050807, 17),(1250, 375, 'new', '', 'enabled', 1588181065, 23),(1251, 375, 'assigned', '', 'enabled', 1588181065, 28),(1252, 375, 'fixing', '', 'enabled', 1588181065, 28),(1253, 375, 'pending_review', '', 'enabled', 1588181065, 14),(1254, 375, 'reopen', '', 'enabled', 1588181065, 19),(1255, 376, 'new', '', 'enabled', 1605315354, 17),(1256, 377, 'new', '', 'enabled', 1589234171, 40),(1257, 377, 'assigned', '', 'enabled', 1589234171, 25),(1258, 378, 'new', '', 'enabled', 1594859271, 8),(1259, 378, 'assigned', '', 'enabled', 1594859271, 25),(1260, 378, 'fixing', '', 'enabled', 1594859271, 25),(1261, 378, 'pending_review', '', 'enabled', 1594859271, 5),(1262, 378, 'completed', '', 'enabled', 1594859271, 19),(1263, 379, 'new', '', 'enabled', 1584763786, 42),(1264, 379, 'assigned', '', 'enabled', 1584763786, 26),(1265, 379, 'fixing', '', 'enabled', 1584763786, 26),(1266, 379, 'pending_review', '', 'enabled', 1584763786, 15),(1267, 380, 'new', '', 'enabled', 1594542606, 34),(1268, 380, 'assigned', '', 'enabled', 1594542606, 27),(1269, 380, 'fixing', '', 'enabled', 1594542606, 27),(1270, 380, 'pending_review', '', 'enabled', 1594542606, 10),(1271, 380, 'reopen', '', 'enabled', 1594542606, 19),(1272, 381, 'new', '', 'enabled', 1602085818, 40),(1273, 381, 'assigned', '', 'enabled', 1602085818, 26),(1274, 381, 'fixing', '', 'enabled', 1602085818, 26),(1275, 381, 'pending_review', '', 'enabled', 1602085818, 13),(1276, 382, 'new', '', 'enabled', 1604587809, 28),(1277, 382, 'assigned', '', 'enabled', 1604587809, 28),(1278, 383, 'new', '', 'enabled', 1597204296, 43),(1279, 383, 'assigned', '', 'enabled', 1597204296, 27),(1280, 383, 'fixing', '', 'enabled', 1597204296, 27),(1281, 383, 'pending_review', '', 'enabled', 1597204296, 6),(1282, 383, 'reopen', '', 'enabled', 1597204296, 23),(1283, 384, 'new', '', 'enabled', 1582478139, 41),(1284, 384, 'assigned', '', 'enabled', 1582478139, 25),(1285, 384, 'fixing', '', 'enabled', 1582478139, 25),(1286, 384, 'pending_review', '', 'enabled', 1582478139, 12),(1287, 384, 'reopen', '', 'enabled', 1582478139, 20),(1288, 385, 'new', '', 'enabled', 1594965454, 39),(1289, 385, 'assigned', '', 'enabled', 1594965454, 26),(1290, 386, 'new', '', 'enabled', 1602693858, 36),(1291, 386, 'assigned', '', 'enabled', 1602693858, 26),(1292, 386, 'fixing', '', 'enabled', 1602693858, 26),(1293, 386, 'pending_review', '', 'enabled', 1602693858, 6),(1294, 386, 'completed', '', 'enabled', 1602693858, 23),(1295, 387, 'new', '', 'enabled', 1584014973, 11),(1296, 387, 'assigned', '', 'enabled', 1584014973, 24),(1297, 388, 'new', '', 'enabled', 1578544011, 9),(1298, 388, 'assigned', '', 'enabled', 1578544011, 24),(1299, 388, 'fixing', '', 'enabled', 1578544011, 24),(1300, 389, 'new', '', 'enabled', 1588725194, 31),(1301, 389, 'assigned', '', 'enabled', 1588725194, 25),(1302, 389, 'fixing', '', 'enabled', 1588725194, 25),(1303, 389, 'pending_review', '', 'enabled', 1588725194, 12),(1304, 389, 'completed', '', 'enabled', 1588725194, 21),(1305, 390, 'new', '', 'enabled', 1598845362, 15),(1306, 390, 'assigned', '', 'enabled', 1598845362, 27),(1307, 390, 'fixing', '', 'enabled', 1598845362, 27),(1308, 390, 'pending_review', '', 'enabled', 1598845362, 17),(1309, 391, 'new', '', 'enabled', 1587940409, 37),(1310, 391, 'assigned', '', 'enabled', 1587940409, 27),(1311, 391, 'fixing', '', 'enabled', 1587940409, 27),(1312, 391, 'pending_review', '', 'enabled', 1587940409, 9),(1313, 392, 'new', '', 'enabled', 1597144852, 36),(1314, 392, 'assigned', '', 'enabled', 1597144852, 28),(1315, 392, 'fixing', '', 'enabled', 1597144852, 28),(1316, 392, 'pending_review', '', 'enabled', 1597144852, 13),(1317, 392, 'reopen', '', 'enabled', 1597144852, 21),(1318, 393, 'new', '', 'enabled', 1593335010, 27),(1319, 393, 'assigned', '', 'enabled', 1593335010, 25),(1320, 394, 'new', '', 'enabled', 1590279498, 6),(1321, 394, 'assigned', '', 'enabled', 1590279498, 25),(1322, 394, 'fixing', '', 'enabled', 1590279498, 25),(1323, 395, 'new', '', 'enabled', 1586985069, 41),(1324, 395, 'assigned', '', 'enabled', 1586985069, 28),(1325, 396, 'new', '', 'enabled', 1598197754, 12),(1326, 396, 'assigned', '', 'enabled', 1598197754, 24),(1327, 396, 'fixing', '', 'enabled', 1598197754, 24),(1328, 396, 'pending_review', '', 'enabled', 1598197754, 5),(1329, 396, 'completed', '', 'enabled', 1598197754, 23),(1330, 397, 'new', '', 'enabled', 1589113423, 13),(1331, 397, 'assigned', '', 'enabled', 1589113423, 24),(1332, 397, 'fixing', '', 'enabled', 1589113423, 24),(1333, 397, 'pending_review', '', 'enabled', 1589113423, 17),(1334, 397, 'completed', '', 'enabled', 1589113423, 23),(1335, 398, 'new', '', 'enabled', 1585457104, 33),(1336, 398, 'assigned', '', 'enabled', 1585457104, 24),(1337, 399, 'new', '', 'enabled', 1593702861, 33),(1338, 399, 'assigned', '', 'enabled', 1593702861, 24),(1339, 399, 'fixing', '', 'enabled', 1593702861, 24),(1340, 399, 'pending_review', '', 'enabled', 1593702861, 12),(1341, 399, 'reopen', '', 'enabled', 1593702861, 21),(1342, 400, 'new', '', 'enabled', 1582800700, 38),(1343, 400, 'assigned', '', 'enabled', 1582800700, 26),(1344, 400, 'fixing', '', 'enabled', 1582800700, 26),(1345, 400, 'pending_review', '', 'enabled', 1582800700, 13),(1346, 400, 'completed', '', 'enabled', 1582800700, 19),(1347, 401, 'new', '', 'enabled', 1583309884, 46),(1348, 402, 'new', '', 'enabled', 1588182546, 5),(1349, 402, 'assigned', '', 'enabled', 1588182546, 27),(1350, 402, 'fixing', '', 'enabled', 1588182546, 27),(1351, 402, 'pending_review', '', 'enabled', 1588182546, 5),(1352, 402, 'completed', '', 'enabled', 1588182546, 23),(1353, 403, 'new', '', 'enabled', 1596837946, 19),(1354, 404, 'new', '', 'enabled', 1578943437, 25),(1355, 404, 'assigned', '', 'enabled', 1578943437, 27),(1356, 404, 'fixing', '', 'enabled', 1578943437, 27),(1357, 404, 'pending_review', '', 'enabled', 1578943437, 16),(1358, 404, 'completed', '', 'enabled', 1578943437, 21),(1359, 405, 'new', '', 'enabled', 1591933522, 6),(1360, 405, 'assigned', '', 'enabled', 1591933522, 27),(1361, 406, 'new', '', 'enabled', 1594023931, 53),(1362, 406, 'assigned', '', 'enabled', 1594023931, 28),(1363, 406, 'fixing', '', 'enabled', 1594023931, 28),(1364, 406, 'pending_review', '', 'enabled', 1594023931, 17),(1365, 407, 'new', '', 'enabled', 1580519094, 45),(1366, 407, 'assigned', '', 'enabled', 1580519094, 25),(1367, 407, 'fixing', '', 'enabled', 1580519094, 25),(1368, 408, 'new', '', 'enabled', 1579258006, 5),(1369, 408, 'assigned', '', 'enabled', 1579258006, 26),(1370, 408, 'fixing', '', 'enabled', 1579258006, 26),(1371, 408, 'pending_review', '', 'enabled', 1579258006, 5),(1372, 408, 'reopen', '', 'enabled', 1579258006, 19),(1373, 409, 'new', '', 'enabled', 1582567352, 22),(1374, 409, 'assigned', '', 'enabled', 1582567352, 26),(1375, 409, 'fixing', '', 'enabled', 1582567352, 26),(1376, 409, 'pending_review', '', 'enabled', 1582567352, 9),(1377, 409, 'completed', '', 'enabled', 1582567352, 19),(1378, 410, 'new', '', 'enabled', 1604718501, 45),(1379, 410, 'assigned', '', 'enabled', 1604718501, 28),(1380, 410, 'fixing', '', 'enabled', 1604718501, 28),(1381, 410, 'pending_review', '', 'enabled', 1604718501, 17),(1382, 411, 'new', '', 'enabled', 1601857713, 46),(1383, 411, 'assigned', '', 'enabled', 1601857713, 26),(1384, 411, 'fixing', '', 'enabled', 1601857713, 26),(1385, 411, 'pending_review', '', 'enabled', 1601857713, 15),(1386, 411, 'reopen', '', 'enabled', 1601857713, 21),(1387, 412, 'new', '', 'enabled', 1590454754, 19),(1388, 412, 'assigned', '', 'enabled', 1590454754, 25),(1389, 412, 'fixing', '', 'enabled', 1590454754, 25),(1390, 412, 'pending_review', '', 'enabled', 1590454754, 14),(1391, 412, 'completed', '', 'enabled', 1590454754, 22),(1392, 413, 'new', '', 'enabled', 1588100279, 35),(1393, 413, 'assigned', '', 'enabled', 1588100279, 26),(1394, 413, 'fixing', '', 'enabled', 1588100279, 26),(1395, 413, 'pending_review', '', 'enabled', 1588100279, 9),(1396, 413, 'reopen', '', 'enabled', 1588100279, 20),(1397, 414, 'new', '', 'enabled', 1600633449, 39),(1398, 415, 'new', '', 'enabled', 1580542990, 16),(1399, 415, 'assigned', '', 'enabled', 1580542990, 24),(1400, 415, 'fixing', '', 'enabled', 1580542990, 24),(1401, 415, 'pending_review', '', 'enabled', 1580542990, 5),(1402, 415, 'completed', '', 'enabled', 1580542990, 20),(1403, 416, 'new', '', 'enabled', 1604162969, 16),(1404, 416, 'assigned', '', 'enabled', 1604162969, 27),(1405, 416, 'fixing', '', 'enabled', 1604162969, 27),(1406, 416, 'pending_review', '', 'enabled', 1604162969, 4),(1407, 417, 'new', '', 'enabled', 1588166392, 8),(1408, 417, 'assigned', '', 'enabled', 1588166392, 28),(1409, 418, 'new', '', 'enabled', 1595261130, 14),(1410, 418, 'assigned', '', 'enabled', 1595261130, 28),(1411, 418, 'fixing', '', 'enabled', 1595261130, 28),(1412, 419, 'new', '', 'enabled', 1596319039, 49),(1413, 419, 'assigned', '', 'enabled', 1596319039, 28),(1414, 419, 'fixing', '', 'enabled', 1596319039, 28),(1415, 419, 'pending_review', '', 'enabled', 1596319039, 15),(1416, 420, 'new', '', 'enabled', 1580826482, 20),(1417, 420, 'assigned', '', 'enabled', 1580826482, 26),(1418, 420, 'fixing', '', 'enabled', 1580826482, 26),(1419, 420, 'pending_review', '', 'enabled', 1580826482, 12),(1420, 421, 'new', '', 'enabled', 1581743596, 31),(1421, 421, 'assigned', '', 'enabled', 1581743596, 27),(1422, 421, 'fixing', '', 'enabled', 1581743596, 27),(1423, 421, 'pending_review', '', 'enabled', 1581743596, 4),(1424, 421, 'reopen', '', 'enabled', 1581743596, 19),(1425, 422, 'new', '', 'enabled', 1594912102, 39),(1426, 422, 'assigned', '', 'enabled', 1594912102, 28),(1427, 422, 'fixing', '', 'enabled', 1594912102, 28),(1428, 422, 'pending_review', '', 'enabled', 1594912102, 13),(1429, 423, 'new', '', 'enabled', 1585142933, 34),(1430, 423, 'assigned', '', 'enabled', 1585142933, 27),(1431, 423, 'fixing', '', 'enabled', 1585142933, 27),(1432, 423, 'pending_review', '', 'enabled', 1585142933, 9),(1433, 424, 'new', '', 'enabled', 1593973334, 53),(1434, 424, 'assigned', '', 'enabled', 1593973334, 27),(1435, 425, 'new', '', 'enabled', 1604683117, 18),(1436, 425, 'assigned', '', 'enabled', 1604683117, 27),(1437, 425, 'fixing', '', 'enabled', 1604683117, 27),(1438, 425, 'pending_review', '', 'enabled', 1604683117, 15),(1439, 425, 'reopen', '', 'enabled', 1604683117, 21),(1440, 426, 'new', '', 'enabled', 1582884070, 4),(1441, 426, 'assigned', '', 'enabled', 1582884070, 26),(1442, 427, 'new', '', 'enabled', 1582108773, 52),(1443, 427, 'assigned', '', 'enabled', 1582108773, 28),(1444, 427, 'fixing', '', 'enabled', 1582108773, 28),(1445, 428, 'new', '', 'enabled', 1594286944, 15),(1446, 428, 'assigned', '', 'enabled', 1594286944, 26),(1447, 428, 'fixing', '', 'enabled', 1594286944, 26),(1448, 428, 'pending_review', '', 'enabled', 1594286944, 10),(1449, 429, 'new', '', 'enabled', 1605148654, 17),(1450, 430, 'new', '', 'enabled', 1590844026, 22),(1451, 430, 'assigned', '', 'enabled', 1590844026, 24),(1452, 430, 'fixing', '', 'enabled', 1590844026, 24),(1453, 431, 'new', '', 'enabled', 1603697454, 28),(1454, 431, 'assigned', '', 'enabled', 1603697454, 25),(1455, 432, 'new', '', 'enabled', 1580144225, 25),(1456, 432, 'assigned', '', 'enabled', 1580144225, 26),(1457, 432, 'fixing', '', 'enabled', 1580144225, 26),(1458, 432, 'pending_review', '', 'enabled', 1580144225, 15),(1459, 432, 'completed', '', 'enabled', 1580144225, 20),(1460, 433, 'new', '', 'enabled', 1595024696, 23),(1461, 433, 'assigned', '', 'enabled', 1595024696, 24),(1462, 433, 'fixing', '', 'enabled', 1595024696, 24),(1463, 434, 'new', '', 'enabled', 1600224611, 6),(1464, 434, 'assigned', '', 'enabled', 1600224611, 27),(1465, 434, 'fixing', '', 'enabled', 1600224611, 27),(1466, 434, 'pending_review', '', 'enabled', 1600224611, 13),(1467, 434, 'completed', '', 'enabled', 1600224611, 22),(1468, 435, 'new', '', 'enabled', 1589538969, 16),(1469, 435, 'assigned', '', 'enabled', 1589538969, 27),(1470, 436, 'new', '', 'enabled', 1587673441, 30),(1471, 436, 'assigned', '', 'enabled', 1587673441, 26),(1472, 436, 'fixing', '', 'enabled', 1587673441, 26),(1473, 436, 'pending_review', '', 'enabled', 1587673441, 8),(1474, 436, 'completed', '', 'enabled', 1587673441, 23),(1475, 437, 'new', '', 'enabled', 1599428021, 52),(1476, 437, 'assigned', '', 'enabled', 1599428021, 28),(1477, 437, 'fixing', '', 'enabled', 1599428021, 28),(1478, 438, 'new', '', 'enabled', 1598099259, 23),(1479, 438, 'assigned', '', 'enabled', 1598099259, 27),(1480, 438, 'fixing', '', 'enabled', 1598099259, 27),(1481, 438, 'pending_review', '', 'enabled', 1598099259, 9),(1482, 438, 'reopen', '', 'enabled', 1598099259, 19),(1483, 439, 'new', '', 'enabled', 1602298538, 13),(1484, 440, 'new', '', 'enabled', 1584597668, 35),(1485, 440, 'assigned', '', 'enabled', 1584597668, 28),(1486, 440, 'fixing', '', 'enabled', 1584597668, 28),(1487, 440, 'pending_review', '', 'enabled', 1584597668, 8),(1488, 441, 'new', '', 'enabled', 1598764162, 11),(1489, 441, 'assigned', '', 'enabled', 1598764162, 27),(1490, 441, 'fixing', '', 'enabled', 1598764162, 27),(1491, 441, 'pending_review', '', 'enabled', 1598764162, 18),(1492, 442, 'new', '', 'enabled', 1592899077, 34),(1493, 442, 'assigned', '', 'enabled', 1592899077, 24),(1494, 442, 'fixing', '', 'enabled', 1592899077, 24),(1495, 442, 'pending_review', '', 'enabled', 1592899077, 10),(1496, 443, 'new', '', 'enabled', 1583491049, 28),(1497, 443, 'assigned', '', 'enabled', 1583491049, 27),(1498, 443, 'fixing', '', 'enabled', 1583491049, 27),(1499, 443, 'pending_review', '', 'enabled', 1583491049, 12),(1500, 444, 'new', '', 'enabled', 1593526417, 26),(1501, 444, 'assigned', '', 'enabled', 1593526417, 28),(1502, 444, 'fixing', '', 'enabled', 1593526417, 28),(1503, 444, 'pending_review', '', 'enabled', 1593526417, 10),(1504, 444, 'reopen', '', 'enabled', 1593526417, 19),(1505, 445, 'new', '', 'enabled', 1602378451, 42),(1506, 445, 'assigned', '', 'enabled', 1602378451, 28),(1507, 445, 'fixing', '', 'enabled', 1602378451, 28),(1508, 445, 'pending_review', '', 'enabled', 1602378451, 7),(1509, 446, 'new', '', 'enabled', 1586159487, 31),(1510, 446, 'assigned', '', 'enabled', 1586159487, 26),(1511, 447, 'new', '', 'enabled', 1578021110, 13),(1512, 447, 'assigned', '', 'enabled', 1578021110, 28),(1513, 447, 'fixing', '', 'enabled', 1578021110, 28),(1514, 447, 'pending_review', '', 'enabled', 1578021110, 15),(1515, 447, 'completed', '', 'enabled', 1578021110, 20),(1516, 448, 'new', '', 'enabled', 1578644804, 51),(1517, 448, 'assigned', '', 'enabled', 1578644804, 24),(1518, 448, 'fixing', '', 'enabled', 1578644804, 24),(1519, 448, 'pending_review', '', 'enabled', 1578644804, 17),(1520, 448, 'completed', '', 'enabled', 1578644804, 21),(1521, 449, 'new', '', 'enabled', 1603902626, 45),(1522, 449, 'assigned', '', 'enabled', 1603902626, 24),(1523, 449, 'fixing', '', 'enabled', 1603902626, 24),(1524, 449, 'pending_review', '', 'enabled', 1603902626, 11),(1525, 449, 'completed', '', 'enabled', 1603902626, 20),(1526, 450, 'new', '', 'enabled', 1603719214, 10),(1527, 451, 'new', '', 'enabled', 1592588066, 21),(1528, 451, 'assigned', '', 'enabled', 1592588066, 28),(1529, 452, 'new', '', 'enabled', 1578379886, 37),(1530, 452, 'assigned', '', 'enabled', 1578379886, 24),(1531, 452, 'fixing', '', 'enabled', 1578379886, 24),(1532, 453, 'new', '', 'enabled', 1598802032, 19),(1533, 453, 'assigned', '', 'enabled', 1598802032, 28),(1534, 453, 'fixing', '', 'enabled', 1598802032, 28),(1535, 453, 'pending_review', '', 'enabled', 1598802032, 14),(1536, 453, 'reopen', '', 'enabled', 1598802032, 21),(1537, 454, 'new', '', 'enabled', 1586556934, 31),(1538, 454, 'assigned', '', 'enabled', 1586556934, 24),(1539, 455, 'new', '', 'enabled', 1600416279, 51),(1540, 456, 'new', '', 'enabled', 1578999735, 46),(1541, 456, 'assigned', '', 'enabled', 1578999735, 26),(1542, 456, 'fixing', '', 'enabled', 1578999735, 26),(1543, 456, 'pending_review', '', 'enabled', 1578999735, 15),(1544, 456, 'completed', '', 'enabled', 1578999735, 23),(1545, 457, 'new', '', 'enabled', 1601420900, 45),(1546, 457, 'assigned', '', 'enabled', 1601420900, 28),(1547, 457, 'fixing', '', 'enabled', 1601420900, 28),(1548, 457, 'pending_review', '', 'enabled', 1601420900, 8),(1549, 458, 'new', '', 'enabled', 1593889804, 47),(1550, 458, 'assigned', '', 'enabled', 1593889804, 26),(1551, 458, 'fixing', '', 'enabled', 1593889804, 26),(1552, 458, 'pending_review', '', 'enabled', 1593889804, 8),(1553, 458, 'reopen', '', 'enabled', 1593889804, 19),(1554, 459, 'new', '', 'enabled', 1596911331, 30),(1555, 459, 'assigned', '', 'enabled', 1596911331, 28),(1556, 459, 'fixing', '', 'enabled', 1596911331, 28),(1557, 460, 'new', '', 'enabled', 1590722547, 28),(1558, 460, 'assigned', '', 'enabled', 1590722547, 27),(1559, 460, 'fixing', '', 'enabled', 1590722547, 27),(1560, 460, 'pending_review', '', 'enabled', 1590722547, 7),(1561, 460, 'reopen', '', 'enabled', 1590722547, 19),(1562, 461, 'new', '', 'enabled', 1602433442, 22),(1563, 461, 'assigned', '', 'enabled', 1602433442, 27),(1564, 461, 'fixing', '', 'enabled', 1602433442, 27),(1565, 461, 'pending_review', '', 'enabled', 1602433442, 9),(1566, 461, 'reopen', '', 'enabled', 1602433442, 21),(1567, 462, 'new', '', 'enabled', 1592587548, 42),(1568, 463, 'new', '', 'enabled', 1582272067, 29),(1569, 464, 'new', '', 'enabled', 1604087111, 19),(1570, 464, 'assigned', '', 'enabled', 1604087111, 27),(1571, 464, 'fixing', '', 'enabled', 1604087111, 27),(1572, 464, 'pending_review', '', 'enabled', 1604087111, 16),(1573, 464, 'reopen', '', 'enabled', 1604087111, 19),(1574, 465, 'new', '', 'enabled', 1591680815, 41),(1575, 466, 'new', '', 'enabled', 1589410614, 5),(1576, 466, 'assigned', '', 'enabled', 1589410614, 25),(1577, 466, 'fixing', '', 'enabled', 1589410614, 25),(1578, 466, 'pending_review', '', 'enabled', 1589410614, 4),(1579, 466, 'completed', '', 'enabled', 1589410614, 20),(1580, 467, 'new', '', 'enabled', 1595508906, 38),(1581, 467, 'assigned', '', 'enabled', 1595508906, 27),(1582, 467, 'fixing', '', 'enabled', 1595508906, 27),(1583, 467, 'pending_review', '', 'enabled', 1595508906, 14),(1584, 467, 'reopen', '', 'enabled', 1595508906, 23),(1585, 468, 'new', '', 'enabled', 1586793462, 51),(1586, 469, 'new', '', 'enabled', 1580593043, 28),(1587, 469, 'assigned', '', 'enabled', 1580593043, 27),(1588, 469, 'fixing', '', 'enabled', 1580593043, 27),(1589, 470, 'new', '', 'enabled', 1601634167, 43),(1590, 470, 'assigned', '', 'enabled', 1601634167, 27),(1591, 470, 'fixing', '', 'enabled', 1601634167, 27),(1592, 470, 'pending_review', '', 'enabled', 1601634167, 5),(1593, 471, 'new', '', 'enabled', 1595354425, 35),(1594, 471, 'assigned', '', 'enabled', 1595354425, 27),(1595, 471, 'fixing', '', 'enabled', 1595354425, 27),(1596, 471, 'pending_review', '', 'enabled', 1595354425, 8),(1597, 471, 'reopen', '', 'enabled', 1595354425, 19),(1598, 472, 'new', '', 'enabled', 1595289123, 8),(1599, 473, 'new', '', 'enabled', 1590721552, 17),(1600, 473, 'assigned', '', 'enabled', 1590721552, 24),(1601, 473, 'fixing', '', 'enabled', 1590721552, 24),(1602, 473, 'pending_review', '', 'enabled', 1590721552, 13),(1603, 473, 'reopen', '', 'enabled', 1590721552, 23),(1604, 474, 'new', '', 'enabled', 1589961198, 11),(1605, 474, 'assigned', '', 'enabled', 1589961198, 26),(1606, 474, 'fixing', '', 'enabled', 1589961198, 26),(1607, 474, 'pending_review', '', 'enabled', 1589961198, 15),(1608, 474, 'completed', '', 'enabled', 1589961198, 22),(1609, 475, 'new', '', 'enabled', 1598763623, 46),(1610, 475, 'assigned', '', 'enabled', 1598763623, 28),(1611, 475, 'fixing', '', 'enabled', 1598763623, 28),(1612, 475, 'pending_review', '', 'enabled', 1598763623, 6),(1613, 475, 'reopen', '', 'enabled', 1598763623, 20),(1614, 476, 'new', '', 'enabled', 1596182358, 26),(1615, 476, 'assigned', '', 'enabled', 1596182358, 28),(1616, 476, 'fixing', '', 'enabled', 1596182358, 28),(1617, 477, 'new', '', 'enabled', 1599282655, 42),(1618, 477, 'assigned', '', 'enabled', 1599282655, 25),(1619, 477, 'fixing', '', 'enabled', 1599282655, 25),(1620, 477, 'pending_review', '', 'enabled', 1599282655, 8),(1621, 477, 'completed', '', 'enabled', 1599282655, 21),(1622, 478, 'new', '', 'enabled', 1587193463, 44),(1623, 479, 'new', '', 'enabled', 1599038615, 41),(1624, 480, 'new', '', 'enabled', 1581782399, 22),(1625, 480, 'assigned', '', 'enabled', 1581782399, 25),(1626, 481, 'new', '', 'enabled', 1600298426, 48),(1627, 481, 'assigned', '', 'enabled', 1600298426, 28),(1628, 482, 'new', '', 'enabled', 1587571850, 51),(1629, 482, 'assigned', '', 'enabled', 1587571850, 28),(1630, 482, 'fixing', '', 'enabled', 1587571850, 28),(1631, 483, 'new', '', 'enabled', 1601402296, 22),(1632, 483, 'assigned', '', 'enabled', 1601402296, 24),(1633, 483, 'fixing', '', 'enabled', 1601402296, 24),(1634, 484, 'new', '', 'enabled', 1589290854, 37),(1635, 484, 'assigned', '', 'enabled', 1589290854, 26),(1636, 484, 'fixing', '', 'enabled', 1589290854, 26),(1637, 484, 'pending_review', '', 'enabled', 1589290854, 11),(1638, 485, 'new', '', 'enabled', 1594515613, 4),(1639, 485, 'assigned', '', 'enabled', 1594515613, 24),(1640, 486, 'new', '', 'enabled', 1582131397, 15),(1641, 486, 'assigned', '', 'enabled', 1582131397, 28),(1642, 486, 'fixing', '', 'enabled', 1582131397, 28),(1643, 486, 'pending_review', '', 'enabled', 1582131397, 13),(1644, 487, 'new', '', 'enabled', 1587621454, 47),(1645, 488, 'new', '', 'enabled', 1587811105, 19),(1646, 488, 'assigned', '', 'enabled', 1587811105, 25),(1647, 488, 'fixing', '', 'enabled', 1587811105, 25),(1648, 488, 'pending_review', '', 'enabled', 1587811105, 7),(1649, 488, 'reopen', '', 'enabled', 1587811105, 19),(1650, 489, 'new', '', 'enabled', 1580882753, 52),(1651, 489, 'assigned', '', 'enabled', 1580882753, 26),(1652, 489, 'fixing', '', 'enabled', 1580882753, 26),(1653, 489, 'pending_review', '', 'enabled', 1580882753, 9),(1654, 489, 'completed', '', 'enabled', 1580882753, 22),(1655, 490, 'new', '', 'enabled', 1605468561, 5),(1656, 490, 'assigned', '', 'enabled', 1605468561, 25),(1657, 490, 'fixing', '', 'enabled', 1605468561, 25),(1658, 490, 'pending_review', '', 'enabled', 1605468561, 11),(1659, 491, 'new', '', 'enabled', 1579399421, 11),(1660, 491, 'assigned', '', 'enabled', 1579399421, 26),(1661, 491, 'fixing', '', 'enabled', 1579399421, 26),(1662, 492, 'new', '', 'enabled', 1599355462, 40),(1663, 492, 'assigned', '', 'enabled', 1599355462, 28),(1664, 492, 'fixing', '', 'enabled', 1599355462, 28),(1665, 492, 'pending_review', '', 'enabled', 1599355462, 16),(1666, 493, 'new', '', 'enabled', 1588807266, 33),(1667, 493, 'assigned', '', 'enabled', 1588807266, 26),(1668, 493, 'fixing', '', 'enabled', 1588807266, 26),(1669, 493, 'pending_review', '', 'enabled', 1588807266, 9),(1670, 493, 'reopen', '', 'enabled', 1588807266, 23),(1671, 494, 'new', '', 'enabled', 1592956060, 50),(1672, 495, 'new', '', 'enabled', 1578961865, 38),(1673, 495, 'assigned', '', 'enabled', 1578961865, 26),(1674, 495, 'fixing', '', 'enabled', 1578961865, 26),(1675, 496, 'new', '', 'enabled', 1600233917, 19),(1676, 497, 'new', '', 'enabled', 1579903518, 36),(1677, 497, 'assigned', '', 'enabled', 1579903518, 25),(1678, 497, 'fixing', '', 'enabled', 1579903518, 25),(1679, 497, 'pending_review', '', 'enabled', 1579903518, 16),(1680, 498, 'new', '', 'enabled', 1593432799, 13),(1681, 498, 'assigned', '', 'enabled', 1593432799, 25),(1682, 498, 'fixing', '', 'enabled', 1593432799, 25),(1683, 498, 'pending_review', '', 'enabled', 1593432799, 9),(1684, 498, 'reopen', '', 'enabled', 1593432799, 19),(1685, 499, 'new', '', 'enabled', 1587229252, 16),(1686, 499, 'assigned', '', 'enabled', 1587229252, 27),(1687, 499, 'fixing', '', 'enabled', 1587229252, 27),(1688, 499, 'pending_review', '', 'enabled', 1587229252, 7),(1689, 499, 'reopen', '', 'enabled', 1587229252, 22),(1690, 500, 'new', '', 'enabled', 1587647844, 30),(1691, 500, 'assigned', '', 'enabled', 1587647844, 24),(1692, 500, 'fixing', '', 'enabled', 1587647844, 24);
-- -- CzechIdM 7.0 Flyway script -- BCV solutions s.r.o. -- -- Remove constaint form audit table ALTER TABLE idm_role_a ALTER COLUMN approve_remove DROP NOT NULL;
<reponame>timshadel/subdivision-list<gh_stars>10-100 CREATE TABLE subdivision_IE (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-CN', E'Cavan', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-LS', E'Condado de Laois', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-OY', E'Condado de Offaly', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-WH', E'Condado de Westmeath', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-DL', E'Donegal', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-D', E'Dublín', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-G', E'Galway', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-KK', E'Kilkenny', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-L', E'Leinster', E'province'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-LK', E'Limerick', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-LD', E'Longford', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-MO', E'Mayo', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-MH', E'Meath', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-MN', E'Monaghan', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-M', E'Munster', E'province'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-SO', E'Sligo', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-TA', E'Tipperary', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-U', E'Úlster', E'province'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-WD', E'Waterford', E'county'); INSERT INTO "subdivision_IE" ("id", "name", "level") VALUES (E'IE-WX', E'Wexford', E'county');
<filename>Performance/Jobs/CheckConstraints.sql SELECT 'ALTER TABLE [' + s.name + '].[' + o.name + '] WITH CHECK CHECK CONSTRAINT [' + i.name + '];' AS keyname from sys.foreign_keys i INNER JOIN sys.objects o ON i.parent_object_id = o.object_id INNER JOIN sys.schemas s ON o.schema_id = s.schema_id WHERE i.is_not_trusted = 1 AND i.is_not_for_replication = 0; GO SELECT 'ALTER TABLE [' + s.name + '].[' + o.name + '] WITH CHECK CHECK CONSTRAINT [' + i.name + '];' AS keyname from sys.check_constraints i INNER JOIN sys.objects o ON i.parent_object_id = o.object_id INNER JOIN sys.schemas s ON o.schema_id = s.schema_id WHERE i.is_not_trusted = 1 AND i.is_not_for_replication = 0 AND i.is_disabled = 0; GO
<reponame>dram/metasfresh<gh_stars>1000+ -- 2018-01-22T17:59:48.836 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET FieldLength=2048,Updated=TO_TIMESTAMP('2018-01-22 17:59:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=3025 ; -- 2018-01-22T18:00:53.986 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET FieldLength=2048,Updated=TO_TIMESTAMP('2018-01-22 18:00:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=501682 ; -- 2018-01-22T18:01:28.350 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET FieldLength=2048,Updated=TO_TIMESTAMP('2018-01-22 18:01:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=501681 ; -- 2018-01-22T18:02:11.260 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET FieldLength=2048,Updated=TO_TIMESTAMP('2018-01-22 18:02:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=501661 ; -- 2018-01-22T18:03:02.575 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET FieldLength=2048,Updated=TO_TIMESTAMP('2018-01-22 18:03:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=549013 ; -- 2018-01-22T18:24:06.229 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET FieldLength=2048,Updated=TO_TIMESTAMP('2018-01-22 18:24:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=549011 ;
<filename>boundary_polygon/boundary_polygon.sql -- etldoc: osm_border_polygon_linestring_gen_z0 -> osm_border_polygon_gen_z0 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z0; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z0 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(2) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z2 GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(0) * ZRes(0) ; CREATE INDEX osm_border_polygon_gen_z0_idx_geometry ON osm_border_polygon_gen_z0 USING gist(geometry); -- etldoc: osm_border_polygon_linestring_gen_z1 -> osm_border_polygon_gen_z1 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z1; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z1 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(3) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z2 GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(1) * ZRes(1) ; CREATE INDEX osm_border_polygon_gen_z1_idx_geometry ON osm_border_polygon_gen_z1 USING gist(geometry); -- etldoc: osm_border_polygon_linestring_gen_z2 -> osm_border_polygon_gen_z2 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z2; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z2 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(4) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z2 GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(2) * ZRes(2) ; CREATE INDEX osm_border_polygon_gen_z2_idx_geometry ON osm_border_polygon_gen_z2 USING gist(geometry); -- etldoc: osm_border_polygon_linestring_gen_z3 -> osm_border_polygon_gen_z3 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z3; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z3 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(5) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z3 GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(3) * ZRes(3) ; CREATE INDEX osm_border_polygon_gen_z3_idx_geometry ON osm_border_polygon_gen_z3 USING gist(geometry); -- etldoc: osm_border_polygon_linestring_gen_z4 -> osm_border_polygon_gen_z4 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z4; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z4 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(6) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z4 GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(4) * ZRes(4) ; CREATE INDEX osm_border_polygon_gen_z4_idx_geometry ON osm_border_polygon_gen_z4 USING gist(geometry); -- etldoc: osm_border_polygon_linestring_gen_z5 -> osm_border_polygon_gen_z5 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z5; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z5 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(7) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z5 GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(5) * ZRes(5) ; CREATE INDEX osm_border_polygon_gen_z5_idx_geometry ON osm_border_polygon_gen_z5 USING gist(geometry); -- etldoc: osm_border_polygon_linestring_gen_z6 -> osm_border_polygon_gen_z6 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z6; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z6 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(8) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z6 GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(6) * ZRes(6) ; CREATE INDEX osm_border_polygon_gen_z6_idx_geometry ON osm_border_polygon_gen_z6 USING gist(geometry); -- etldoc: osm_border_polygon_linestring_gen_z7 -> osm_border_polygon_gen_z7 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z7; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z7 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(9) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z7 GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(7) * ZRes(7) ; CREATE INDEX osm_border_polygon_gen_z7_idx_geometry ON osm_border_polygon_gen_z7 USING gist(geometry); -- etldoc: osm_border_polygon_linestring_gen_z8 -> osm_border_polygon_gen_z8 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z8; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z8 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(10) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z8 GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(8) * ZRes(8) ; CREATE INDEX osm_border_polygon_gen_z8_idx_geometry ON osm_border_polygon_gen_z8 USING gist(geometry); -- etldoc: osm_border_polygon_linestring_gen_z9 -> osm_border_polygon_gen_z9 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z9; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z9 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(11) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z9 GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(9) * ZRes(9) ; CREATE INDEX osm_border_polygon_gen_z9_idx_geometry ON osm_border_polygon_gen_z9 USING gist(geometry); -- etldoc: osm_border_polygon_linestring_gen_z10 -> osm_border_polygon_gen_z10 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z10; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z10 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(12) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z10 GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(10) * ZRes(10) ; CREATE INDEX osm_border_polygon_gen_z10_idx_geometry ON osm_border_polygon_gen_z10 USING gist(geometry); -- etldoc: osm_border_polygon_linestring_gen_z11 -> osm_border_polygon_gen_z11 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z11; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z11 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(13) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z11 GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(11) * ZRes(11) ; CREATE INDEX osm_border_polygon_gen_z11_idx_geometry ON osm_border_polygon_gen_z11 USING gist(geometry); -- etldoc: osm_border_polygon_linestring_gen_z12 -> osm_border_polygon_gen_z12 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z12; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z12 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(14) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z12 GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(12) * ZRes(12) ; CREATE INDEX osm_border_polygon_gen_z12_idx_geometry ON osm_border_polygon_gen_z12 USING gist(geometry); -- etldoc: osm_border_polygon_linestring_gen_z13 -> osm_border_polygon_gen_z13 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z13; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z13 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_SimplifyPreserveTopology( ST_MakePolygon(geometry), ZRes(15) ), 0) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring_gen_z13 WHERE ST_GeometryType(geometry) = 'ST_LineString' GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 AND ST_Area(ST_MakePolygon(geometry)) > ZRes(13) * ZRes(13) ; CREATE INDEX osm_border_polygon_gen_z13_idx_geometry ON osm_border_polygon_gen_z13 USING gist(geometry); -- etldoc: osm_border_polygon_linestring -> osm_border_polygon_gen_z14 DROP MATERIALIZED VIEW IF EXISTS osm_border_polygon_gen_z14 CASCADE; CREATE MATERIALIZED VIEW osm_border_polygon_gen_z14 AS SELECT relation_id, ST_Subdivide( ST_Buffer( ST_MakePolygon(geometry), 0 ) ) AS geometry, name, admin_level, COALESCE(tags->'ISO3166-1', tags->'ISO3166-2', tags->'ref:NUTS', tags->'ref:INS', tags->'ref:INSEE', tags->'de:regionalschluessel', tags->'ref:ISTAT', tags->'ine:municipio', tags->'nat_ref', tags->'ref') AS ref, tags FROM ( SELECT relation_id, (ST_Dump(ST_LineMerge(ST_Collect(geometry)))).geom AS geometry, name, admin_level, tags FROM osm_border_polygon_linestring WHERE ST_GeometryType(geometry) = 'ST_LineString' GROUP BY relation_id, name, admin_level, tags ) AS t WHERE ST_IsClosed(geometry) AND ST_NPoints(geometry) >= 4 ; CREATE INDEX osm_border_polygon_gen_z14_idx_geometry ON osm_border_polygon_gen_z14 USING gist(geometry); -- etldoc: layer_boundary_polygon[shape=record fillcolor=lightpink, style="rounded,filled", -- etldoc: label="<sql> layer_boundary_polygon |<z0> z0 |<z1> z1 |<z2> z2 | <z3> z3 | <z4> z4 | <z5> z5 | <z6> z6 | <z7> z7 | <z8> z8 | <z9> z9 |<z10> z10 |<z11> z11 |<z12> z12|<z13> z13+"] CREATE OR REPLACE FUNCTION layer_boundary_polygon(bbox geometry, zoom_level int) RETURNS TABLE ( relation_id bigint, geometry geometry, name text, admin_level int, ref varchar, tags hstore ) AS $$ SELECT relation_id, ST_Union(geometry) AS geometry, name, admin_level, ref, tags FROM ( -- etldoc: osm_border_polygon_gen_z0 -> layer_boundary_polygon:z0 SELECT * FROM osm_border_polygon_gen_z0 WHERE geometry && bbox AND zoom_level = 0 UNION ALL -- etldoc: osm_border_polygon_gen_z1 -> layer_boundary_polygon:z1 SELECT * FROM osm_border_polygon_gen_z1 WHERE geometry && bbox AND zoom_level = 1 UNION ALL -- etldoc: osm_border_polygon_gen_z2 -> layer_boundary_polygon:z2 SELECT * FROM osm_border_polygon_gen_z2 WHERE geometry && bbox AND zoom_level = 2 UNION ALL -- etldoc: osm_border_polygon_gen_z3 -> layer_boundary_polygon:z3 SELECT * FROM osm_border_polygon_gen_z3 WHERE geometry && bbox AND zoom_level = 3 UNION ALL -- etldoc: osm_border_polygon_gen_z4 -> layer_boundary_polygon:z4 SELECT * FROM osm_border_polygon_gen_z4 WHERE geometry && bbox AND zoom_level = 4 UNION ALL -- etldoc: osm_border_polygon_gen_z5 -> layer_boundary_polygon:z5 SELECT * FROM osm_border_polygon_gen_z5 WHERE geometry && bbox AND zoom_level = 5 UNION ALL -- etldoc: osm_border_polygon_gen_z6 -> layer_boundary_polygon:z6 SELECT * FROM osm_border_polygon_gen_z6 WHERE geometry && bbox AND zoom_level = 6 UNION ALL -- etldoc: osm_border_polygon_gen_z7 -> layer_boundary_polygon:z7 SELECT * FROM osm_border_polygon_gen_z7 WHERE geometry && bbox AND zoom_level = 7 UNION ALL -- etldoc: osm_border_polygon_gen_z8 -> layer_boundary_polygon:z8 SELECT * FROM osm_border_polygon_gen_z8 WHERE geometry && bbox AND zoom_level = 8 UNION ALL -- etldoc: osm_border_polygon_gen_z9 -> layer_boundary_polygon:z9 SELECT * FROM osm_border_polygon_gen_z9 WHERE geometry && bbox AND zoom_level = 9 UNION ALL -- etldoc: osm_border_polygon_gen_z10 -> layer_boundary_polygon:z10 SELECT * FROM osm_border_polygon_gen_z10 WHERE geometry && bbox AND zoom_level = 10 UNION ALL -- etldoc: osm_border_polygon_gen_z11 -> layer_boundary_polygon:z11 SELECT * FROM osm_border_polygon_gen_z11 WHERE geometry && bbox AND zoom_level = 11 UNION ALL -- etldoc: osm_border_polygon_gen_z12 -> layer_boundary_polygon:z12 SELECT * FROM osm_border_polygon_gen_z12 WHERE geometry && bbox AND zoom_level = 12 UNION ALL -- etldoc: osm_border_polygon_gen_z13 -> layer_boundary_polygon:z13 SELECT * FROM osm_border_polygon_gen_z13 WHERE geometry && bbox AND zoom_level = 13 UNION ALL -- etldoc: osm_border_polygon_gen_z14 -> layer_boundary_polygon:z14 SELECT * FROM osm_border_polygon_gen_z14 WHERE geometry && bbox AND zoom_level >= 14 ) AS t GROUP BY relation_id, name, admin_level, ref, tags; $$ LANGUAGE SQL STABLE -- STRICT PARALLEL SAFE;
CREATE INDEX CONCURRENTLY IF NOT EXISTS transformationcache_last_access ON transformationcache USING BTREE (last_access);
create database buses; use buses; create table modelos_buses( id int primary key auto_increment, marca varchar(255) not null, module varchar(255) not null ); alter table modelos_buses change column module modelo varchar(255) not null; create table buses( id int primary key auto_increment, matricula varchar(7) not null unique, fabricacion YEAR(4), modelos_buses_id int not null, constraint fk_modelo_bus FOREIGN KEY (modelos_buses_id) REFERENCES modelos_buses(id) ); create table conductores ( id int primary key auto_increment, nombre varchar(255) not null, apellidos varchar(255) not null, dni varchar(9) not null, tlf varchar(14) not null ); create table paradas ( id int primary key auto_increment, nombre varchar(255) not null, calle varchar(255) not null, número varchar(4) not null ); create table lineas ( id int primary key, hora_inicio time not null ); create table itinerario ( id int primary key auto_increment, id_linea int not null, id_parada int not null, orden tinyint not null, minutos_salida tinyint not null, constraint fk_itinerario_linea FOREIGN KEY (id_linea) REFERENCES lineas(id), constraint fk_itinerario_parada FOREIGN KEY (id_parada) REFERENCES paradas(id) ); create table conductores_asignados ( id_conductor int not null, id_bus int not null, id_linea int not null, constraint fk_asignados_conductor FOREIGN KEY (id_conductor) REFERENCES conductores(id), constraint fk_asignados_bus FOREIGN KEY (id_bus) REFERENCES buses(id), constraint fk_asignados_linea FOREIGN KEY (id_linea) REFERENCES lineas(id), PRIMARY KEY (id_conductor, id_bus, id_linea) ); -- -- insertar datos -- insert into modelos_buses(marca, modelo) values ('mercedes', 'modelo1'); insert into modelos_buses(marca, modelo) values ('mercedes', 'modelo2'); insert into modelos_buses(marca, modelo) values ('bwm', 'modelo3'); insert into buses values (null, '1111AAA', 1980, 1); insert into buses values (null, '1111AAB', 1980, 1); insert into buses values (null, '1111AAC', 1980, 1); insert into buses values (null, '2222AAA', 1982, 2); insert into buses values (null, '2222BBB', 1983, 2); insert into buses values (null, '3333AAA', 1995, 3); insert into conductores values (null, 'arsenio', 'iglesias', '12345678A', '666555777'); insert into conductores values (null, 'fernando', 'vazquez', '12345678B', '666555888'); insert into conductores values (null, 'mauro', 'silva', '12345678C', '666555999'); insert into paradas values (null, 'garcia byon 1', '<NAME>', 1); insert into paradas values (null, 'garcia byon 2', '<NAME>', 45); insert into paradas values (null, 'avda de la coruña 1', 'avda de la coruña', 12); insert into paradas values (null, 'avda de la coruña 2', 'avda de la coruña', 77); insert into paradas values (null, 'avda de la coruña 3', 'avda de la coruña', 115); insert into paradas values (null, 'rua galicia 1', 'rua galicia', 3); insert into paradas values (null, 'rua galicia 2', 'rua galicia', 19); insert into lineas values (14, '10:00'); insert into lineas values (50, '10:15'); insert into lineas values (8, '10:30'); insert into itinerario values (null, 14, 1, 1, 0); insert into itinerario values (null, 14, 2, 2, 10); insert into itinerario values (null, 14, 6, 3, 15); insert into itinerario values (null, 50, 1, 1, 0); insert into itinerario values (null, 50, 3, 2, 10); insert into itinerario values (null, 50, 4, 3, 15); insert into itinerario values (null, 50, 5, 4, 18); insert into itinerario values (null, 8, 1, 1, 0); insert into itinerario values (null, 8, 2, 2, 10); insert into itinerario values (null, 8, 4, 3, 15); insert into itinerario values (null, 8, 6, 4, 22); insert into itinerario values (null, 8, 5, 5, 28); insert into conductores_asignados values (1, 1, 50); insert into conductores_asignados values (2, 4, 50); insert into conductores_asignados values (3, 6, 8); -- -- Consultas -- -- 1. buses de la linea 50 select b.*, m.marca, m.modelo from buses b, conductores_asignados a, modelos_buses m where b.id = a.id_bus and a.id_linea = 50 and b.modelos_buses_id = m.id; -- 2. conductores de la linea 50 select * from conductores c inner join conductores_asignados a on c.id =a.id_conductor and a.id_linea = 50; -- 3. conductores de la linea 50 y sus buses select c.*, b.* from conductores c, conductores_asignados a,buses b where c.id = a.id_conductor and b.id = a.id_bus and a.id_linea = 50; -- 3b. conductores de la linea 50 y sus buses con marca y modelo select c.*, b.*, m.*from conductores c, conductores_asignados a,buses b,modelos_buses m where c.id = a.id_conductor and b.id = a.id_bus and m.id=b.modelos_buses_id and a.id_linea = 50; -- 4. itinerario por orden de parada de la linea 14, con los detalles de cada parada select * from paradas p,itinerario i where p.id =i.id_parada and i.id_linea = 14 order by i.orden; -- 5. lineas que pasan por la parada "avda de la coruña 2" select l.* from lineas l, itinerario i where i.id_linea = l.id and i.id_parada in ( select id from paradas where nombre = "avda de la coruña 2"); -- 6. lineas que empiecen a circular como muy tarde a las 10:00 select * from lineas where hora_inicio <= time("10:00:00"); select l.* from lineas l where TIME_FORMAT(l.hora_inicio, '%H:%i') <= '10:00'; -- 6b. BONUS: la anterior consulta de 2 formas diferentes -- CAST select l.* from lineas l where l.hora_inicio <= CAST('10:00:00' AS time); -- HOUR() + MINUTE() select l.* from lineas l where HOUR(l.hora_inicio) < 10 or (HOUR(l.hora_inicio) = 10 and MINUTE(l.hora_inicio) = 0); -- 7. lineas que pasan por la parada "rua galicia 1" y empiecen a circular como muy tarde a las 10:00 select * from lineas l ,itinerario i,paradas p where l.id = i.id_linea and p.id = i.id_parada and p.nombre= "rua galicia 1" and l.hora_inicio <= time("10:00:00"); select l.* from lineas l, itinerario i where i.id_linea = l.id and i.id_parada in ( select id from paradas where nombre = "rua galicia 1" ) and TIME_FORMAT(l.hora_inicio, '%H:%i') <= '10:00'; -- 8. lista de paradas que recorre el señor arsenio iglesias select distinct p.* from paradas p, conductores_asignados a, itinerario i where i.id_parada = p.id and i.id_linea in ( select id_linea from conductores_asignados where id_conductor in ( select id from conductores where nombre = 'arsenio' and apellidos = 'iglesias') ); -- 9. buses que pasan por "avda de la coruña 1" select b.* from buses b, conductores_asignados a where b.id = a.id_bus and a.id_linea in ( select l.id from lineas l, itinerario i where i.id_linea = l.id and i.id_parada in ( select id from paradas where nombre = 'avda de la coruña 1' ) ); -- 10. información de la líneas y el número de paradas de cada una select count(id_parada) as num_paradas, l.* from itinerario i, lineas l where i.id_linea = l.id group by id_linea; -- 11. información solo de la línea con más paradas select count(id_parada) as num_paradas, l.* from itinerario i, lineas l where i.id_linea = l.id group by id_linea order by num_paradas desc limit 1; -- 11b. la anterior pero de otra forma select l.*, count(i.id_parada) as num_paradas from lineas l, itinerario i where l.id = i.id_linea group by i.id_linea having count(i.id_parada) = ( SELECT MAX(num_paradas) FROM ( select count(i.id_parada) as num_paradas from itinerario i group by i.id_linea ) as paradas_largas ); -- 12. información conductor con el itinerario más largo select c.* from conductores c, conductores_asignados a where c.id = a.id_conductor and a.id_linea in ( select i.id_linea from itinerario i group by i.id_linea having count(i.id_parada) = ( SELECT MAX(num_paradas) FROM ( select count(i.id_parada) as num_paradas from itinerario i group by i.id_linea ) as paradas_largas ) );
<gh_stars>0 select count(*) from nulls where bool_0 5
<filename>SQL/SQLQuery2.sql --ASSIGNMENT --- CREATE DATABASE DEMO; USE DEMO; CREATE TABLE EMP_SAL (EID CHAR(5),DEPT VARCHAR(30),DESI VARCHAR(20), DOJ DATE,SALARY INT); INSERT INTO EMP_SAL VALUES('E0001','Marketing','General Manager','01/01/2020',10000); DROP TABLE EMP_SAL; SELECT * FROM EMP_SAL; INSERT INTO EMP_SAL VALUES('E0002','Planning & development','General Manager','12/01/2020',20000); ALTER TABLE EMP_SAL ALTER COLUMN DEPT VARCHAR (30); INSERT INTO EMP_SAL VALUES('E0003','VAT & Excise','Manager','12/02/2020',15000); INSERT INTO EMP_SAL VALUES('E0004','Finance & Accounts', 'Manager (Accounts)','05/03/2020',16000); INSERT INTO EMP_SAL VALUES('E0005','Electrical Engineerig','Manager (Engineering)','02/01/2020',15000); --USE THE ALTER COMMAND FIRST INSERT INTO EMP_SAL VALUES('E0006','MIS','Dy. Manager(MIS)','03/01/2020',16000); INSERT INTO EMP_SAL VALUES('E0007','Information Technology','Asstt. Manager (IT)','03/01/2020',16000); ALTER TABLE EMP_SAL ALTER COLUMN DESI VARCHAR(30); SELECT * FROM EMP_SAL; SELECT SALARY,SALARY+SALARY *.10 AS '10 % INCREASE' FROM EMP_SAL; UPDATE EMP_SAL SET SALARY=SALARY+SALARY*.10; SELECT * FROM EMP_SAL; CREATE TABLE EMP (EID CHAR(10),NAME VARCHAR(30), ADDR VARCHAR(30),CITY VARCHAR(30), DOB DATE, PHONE BIGINT , EMAIL VARCHAR(30)); INSERT INTO EMP VALUES('E0001','<NAME>','91 GURNET ROAD, BRUNSWIK','MAINE','11/19/1993',7340977599,'<EMAIL>'); ALTER TABLE EMP ALTER COLUMN ADDR VARCHAR(40); DROP TABLE EMP; INSERT INTO EMP VALUES ('E0002','<NAME>','41 SHERMAN ROAD, ST.JOHNBURY','NEW YORK','08/15/1992',991513869,'<EMAIL>'); INSERT INTO EMP VALUES ('E0003','<NAME>','200 MACINTYRE ROAD','PITTSBURGH','03/31/1986',9965231478,'<EMAIL>'); INSERT INTO EMP VALUES ('E0004','<NAME>','11 HUNTERS TRL','GETTYSBURG','12/25/1998',9856324175,'<EMAIL>'); INSERT INTO EMP VALUES ('E0005','<NAME>','45 THOMAS JOHNSON DRIVE','FREDERICK','03/03/1996',9768532145,'<EMAIL>'); INSERT INTO EMP VALUES ('E0006','<NAME>','382 SEVEN STARS ROAD','GETTYSBURGH','04/04/1994',9563214786,'<EMAIL>'); INSERT INTO EMP VALUES ('E0007','<NAME>','1228 BRANDON DRIVE','F<NAME>','05/05/1996',9563214786,'<EMAIL>'); INSERT INTO EMP VALUES ('E0008','<NAME>ING','3579 HIGHWAY 17,MURRELLS INLET','SOUTH CAROLINA','09/05/1979',9465231785,'<EMAIL>'); INSERT INTO EMP VALUES ('E0009','<NAME>','1228 BRANDON DRIVE','<NAME>','12/30/1986',9236541789,'<EMAIL>'); INSERT INTO EMP VALUES ('E0010','<NAME>','200 MACINTYRE ROAD','PITTSBURGH','02/12/1991',9136285479,'<EMAIL>'); SELECT * FROM EMP; SELECT *FROM EMP_SAL; SELECT * FROM EMP WHERE NAME LIKE '%SHARMA'; UPDATE EMP_SAL SET SALARY=SALARY+SALARY*.10;
<filename>scripts/sql/likely-fishing.sql<gh_stars>1-10 /* # Likely Fishing MMSIs *query-version: 3* MMSIs of vessels which declare the vessel type to be 'Fishing' in type 5 or 24 Based on this query: https://github.com/GlobalFishingWatch/pleuston/issues/28 See the query committed here for the precise definition. Basically this is vessels that have > 1000 positional messages in a year and always declare a vessel type of 'Fishing' ## For Reference ### Some stuff form Bjorn via slack ### https://globalfishingwatch.slack.com/files/bjorn/F1F3WFX9S/2015_likely_fishing_list_query.sql https://globalfishingwatch.slack.com/files/bjorn/F1F2U7F2P/2015_known_fishing.sql https://globalfishingwatch.slack.com/archives/identity-matching/p1465393952000011 ### Other stuff ### https://github.com/GlobalFishingWatch/pleuston/issues/27 https://github.com/GlobalFishingWatch/vessel-lists/issues/16 https://github.com/SkyTruth/Benthos/issues/390 ### Google Docs ### https://docs.google.com/document/d/1QnhgyQ3jtGF83a5-4j25hsvPkh6JNT8vGi8ftWx1UUY/edit https://docs.google.com/spreadsheets/d/12OVeOxg9N1NViKxH4B7nW31-MwAHW_mS3zPBe2kfIuQ/edit#gid=0 ## Query: */ select a.mmsi as mmsi from ( SELECT mmsi, count(*) c_msg, sum ((shiptype_text = 'Fishing') OR (shiptype_text = "Fishing Vessel")) c_fishing, sum ((shiptype_text = 'Fishing') OR (shiptype_text = "Fishing Vessel")) / count(*) fishing_msg_ratio FROM (TABLE_DATE_RANGE([{classify_table_name}], TIMESTAMP('{start_date}'), TIMESTAMP('{end_date}'))) WHERE type in (5, 19, 24) and shiptype_text is not null and shiptype_text != 'Not available' AND data_source IS NULL GROUP EACH BY mmsi HAVING c_fishing > 10 and fishing_msg_ratio > .99 ) a JOIN EACH ( SELECT integer(mmsi) as mmsi, COUNT(*) AS c_pos FROM (TABLE_DATE_RANGE([{classify_table_name}], TIMESTAMP('{start_date}'), TIMESTAMP('{end_date}'))) WHERE lat IS NOT NULL AND lon IS NOT NULL and mmsi not in (987357573,987357579,987357559,986737000,983712160,987357529) // helicopters and speed > .1 AND data_source IS NULL GROUP BY mmsi HAVING c_pos > 500 ) b ON a.mmsi = b.mmsi
BEGIN; DROP TABLE IF EXISTS cm_action_jobs; COMMIT;
<reponame>christopappas/gocd-analytics-plugin<filename>src/main/resources/db/migration/V6__add_created_at_and_last_transition_time_to_pipelines.sql ALTER TABLE pipelines ADD COLUMN created_at timestamp, ADD COLUMN last_transition_time timestamp;
<reponame>deleidos/digitaledge-platform GRANT ALL ON DIMENSIONS.AIRLINE_ID TO INGEST; GRANT ALL ON DIMENSIONS.CANCELLATION TO INGEST; GRANT ALL ON DIMENSIONS.NATION TO INGEST; GRANT ALL ON DIMENSIONS.SUPPLIER TO INGEST; GRANT ALL ON DIMENSIONS.ROUTES TO INGEST; GRANT ALL ON DIMENSIONS.ORDER_INFO TO INGEST; GRANT ALL ON DIMENSIONS.SHIPMENT_INFO TO INGEST; GRANT ALL ON DIMENSIONS.EVENT_TYPE TO INGEST; GRANT ALL ON DIMENSIONS.OBJECT TO INGEST; GRANT ALL ON DIMENSIONS.AIRPORTS TO INGEST; GRANT ALL ON DIMENSIONS.UNIQUE_CARRIERS TO INGEST;
<gh_stars>1-10 DO $$ <<migrate_root_id>> DECLARE parentid_exist boolean := false; alter_fileids boolean := false; alter_props boolean := false; BEGIN SELECT count(*) != 0 INTO parentid_exist FROM information_schema.columns WHERE table_name = 'posts' AND column_name = 'parentid'; SELECT count(*) != 0 INTO alter_fileids FROM information_schema.columns WHERE table_name = 'posts' AND column_name = 'fileids' AND data_type = 'character varying' AND character_maximum_length != 300; SELECT count(*) != 0 INTO alter_props FROM information_schema.columns WHERE table_name = 'posts' AND column_name = 'props' AND data_type != 'jsonb'; IF alter_fileids OR alter_props THEN IF parentid_exist THEN UPDATE posts SET rootid = parentid WHERE rootid = '' AND rootid != parentid; ALTER TABLE posts ALTER COLUMN fileids TYPE varchar(300), ALTER COLUMN props TYPE jsonb USING props::jsonb, DROP COLUMN ParentId; ELSE ALTER TABLE posts ALTER COLUMN fileids TYPE varchar(300), ALTER COLUMN props TYPE jsonb USING props::jsonb; END IF; END IF; END migrate_root_id $$; CREATE INDEX IF NOT EXISTS idx_posts_root_id_delete_at ON posts(rootid, deleteat); DROP INDEX IF EXISTS idx_posts_root_id;
DROP TABLE `apilocations`; CREATE TABLE IF NOT EXISTS `apilocations` ( `itemID` BIGINT(20) NOT NULL, `itemName` VARCHAR(256) NOT NULL, `x` DOUBLE NOT NULL, `y` DOUBLE NOT NULL, `z` DOUBLE NOT NULL, `corporationID` INT(11) NOT NULL, PRIMARY KEY (`itemID`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;
<filename>plugins/int-generic-jobtask/jobs.sql SELECT t1.JobId, t1.Name, t1.Group_Id, t3.Group_Name, t2.TaskID, t2.TaskName FROM mc_jobs AS t1 WITH(nolock) LEFT JOIN mxpv_job_tasklink AS t2 WITH(nolock) ON t1.JobId = t2.JOBID LEFT JOIN mc_Group AS t3 WITH(nolock) ON t1.Group_Id = t3.Group_Id
<filename>database/Fix/02.fix_new/20170321/permission_role.sql /* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50631 Source Host : localhost:3306 Source Database : wambi_scu Target Server Type : MYSQL Target Server Version : 50631 File Encoding : 65001 Date: 2017-03-22 22:19:24 */ SET FOREIGN_KEY_CHECKS=0; DELETE FROM `permission_role` ; -- ---------------------------- -- Records of permission_role -- ---------------------------- INSERT INTO `permission_role` VALUES ('1', '1'); INSERT INTO `permission_role` VALUES ('1', '2'); INSERT INTO `permission_role` VALUES ('1', '3'); INSERT INTO `permission_role` VALUES ('1', '4'); INSERT INTO `permission_role` VALUES ('1', '5'); INSERT INTO `permission_role` VALUES ('1', '15'); INSERT INTO `permission_role` VALUES ('2', '1'); INSERT INTO `permission_role` VALUES ('3', '1'); INSERT INTO `permission_role` VALUES ('3', '2'); INSERT INTO `permission_role` VALUES ('3', '3'); INSERT INTO `permission_role` VALUES ('3', '4'); INSERT INTO `permission_role` VALUES ('3', '5'); INSERT INTO `permission_role` VALUES ('3', '6'); INSERT INTO `permission_role` VALUES ('3', '7'); INSERT INTO `permission_role` VALUES ('3', '8'); INSERT INTO `permission_role` VALUES ('3', '9'); INSERT INTO `permission_role` VALUES ('3', '10'); INSERT INTO `permission_role` VALUES ('3', '11'); INSERT INTO `permission_role` VALUES ('3', '12'); INSERT INTO `permission_role` VALUES ('3', '13'); INSERT INTO `permission_role` VALUES ('3', '14'); INSERT INTO `permission_role` VALUES ('3', '15'); INSERT INTO `permission_role` VALUES ('3', '16'); INSERT INTO `permission_role` VALUES ('3', '17'); INSERT INTO `permission_role` VALUES ('3', '18'); INSERT INTO `permission_role` VALUES ('4', '1'); INSERT INTO `permission_role` VALUES ('4', '2'); INSERT INTO `permission_role` VALUES ('4', '3'); INSERT INTO `permission_role` VALUES ('4', '4'); INSERT INTO `permission_role` VALUES ('4', '5'); INSERT INTO `permission_role` VALUES ('4', '6'); INSERT INTO `permission_role` VALUES ('4', '7'); INSERT INTO `permission_role` VALUES ('4', '8'); INSERT INTO `permission_role` VALUES ('4', '9'); INSERT INTO `permission_role` VALUES ('4', '10'); INSERT INTO `permission_role` VALUES ('4', '11'); INSERT INTO `permission_role` VALUES ('4', '12'); INSERT INTO `permission_role` VALUES ('4', '13'); INSERT INTO `permission_role` VALUES ('4', '14'); INSERT INTO `permission_role` VALUES ('4', '15'); INSERT INTO `permission_role` VALUES ('4', '16'); INSERT INTO `permission_role` VALUES ('4', '17'); INSERT INTO `permission_role` VALUES ('4', '18'); INSERT INTO `permission_role` VALUES ('4', '19'); INSERT INTO `permission_role` VALUES ('4', '20'); INSERT INTO `permission_role` VALUES ('4', '21'); INSERT INTO `permission_role` VALUES ('5', '12'); INSERT INTO `permission_role` VALUES ('5', '13'); INSERT INTO `permission_role` VALUES ('5', '14'); INSERT INTO `permission_role` VALUES ('5', '17'); INSERT INTO `permission_role` VALUES ('6', '9'); INSERT INTO `permission_role` VALUES ('6', '10'); INSERT INTO `permission_role` VALUES ('6', '11'); INSERT INTO `permission_role` VALUES ('6', '16'); INSERT INTO `permission_role` VALUES ('7', '21'); INSERT INTO `permission_role` VALUES ('7', '2'); INSERT INTO `permission_role` VALUES ('7', '3'); INSERT INTO `permission_role` VALUES ('7', '4'); INSERT INTO `permission_role` VALUES ('7', '5');
<reponame>keboola/db_benchmark<filename>v2_USER_CODE_Synapse/MS_test_3/microsoft_sql_CTAS/warmup_14.sql select top 100 * from reason where r_reason_sk=-100 order by r_reason_id desc
<reponame>apetraru/bookstore -- AUTHORS INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date) VALUES (1, 'Although she writes under the pen name <NAME>, pronounced like rolling,her name when her first Harry Potter book was published was simply <NAME>. Anticipating that the target audience of young boys might not want to read a book written by a woman, her publishers demanded that she use two initials, rather than her full name. As she had no middle name, she chose K as the second initial of her pen name, from her paternal grandmother <NAME>. She calls herself Jo and has said, "No one ever called me "Joanne" when I was young, unless they were angry." Following her marriage, she has sometimes used the name <NAME> when conducting personal business. During the Leveson Inquiry she gave evidence under the name of <NAME>. In a 2012 interview, Rowling noted that she no longer cared that people pronounced her name incorrectly. Rowling was born to <NAME>, a Rolls-Royce aircraft engineer, and <NAME> (née Volant), on 31 July 1965 in Yate, Gloucestershire, England, 10 miles (16 km) northeast of Bristol. Her mother Anne was half-French and half-Scottish. Her parents first met on a train departing from King\'s Cross Station bound for Arbroath in 1964. They married on 14 March 1965. Her mother\'s maternal grandfather, <NAME>, was born in Lamlash on the Isle of Arran. Her mother\'s paternal grandfather, <NAME>, was awarded the Croix de Guerre for exceptional bravery in defending the village of Courcelles-le-Comte during the First World War. Rowling\'s sister Dianne was born at their home when Rowling was 23 months old. The family moved to the nearby village Winterbourne when Rowling was four. She attended St Michael\'s Primary School, a school founded by abolitionist <NAME> and education reformer <NAME>. Her headmaster at St Michael\'s, <NAME>, has been suggested as the inspiration for the Harry Potter headmaster <NAME>. As a child, Rowling often wrote fantasy stories, which she would usually then read to her sister. She recalls that: "I can still remember me telling her a story in which she fell down a rabbit hole and was fed strawberries by the rabbit family inside it. Certainly the first story I ever wrote down (when I was five or six) was about a rabbit called Rabbit. He got the measles and was visited by his friends, including a giant bee called <NAME>." At the age of nine, Rowling moved to Church Cottage in the Gloucestershire village of Tutshill, close to Chepstow, Wales. When she was a young teenager, her great aunt, who Rowling said "taught classics and approved of a thirst for knowledge, even of a questionable kind," gave her a very old copy of <NAME>\'s autobiography, <NAME>. Mitford became Rowling\'s heroine, and Rowling subsequently read all of her books. Rowling has said of her teenage years, in an interview with The New Yorker, "I wasn\’t particularly happy. I think it\’s a dreadful time of life." She had a difficult homelife; her mother was ill and she had a difficult relationship with her father (she is no longer on speaking terms with him). She attended secondary school at Wyedean School and College, where her mother had worked as a technician in the science department. Rowling said of her adolescence, "Hermione [a bookish, know-it-all Harry Potter character] is loosely based on me. She\'s a caricature of me when I was eleven, which I\'m not particularly proud of." <NAME>, who taught Rowling English when she first arrived, remembers her as "not exceptional" but "one of a group of girls who were bright, and quite good at English." <NAME>, her best friend in the Upper Sixth owned a turquoise Ford Anglia, which she says inspired the one in her books.', 'FEMALE', '<NAME>', 'http://www.jkrowling.com/', 'https://d202m5krfqbpi5.cloudfront.net/authors/1360953982p5/1077326.jpg', '1965-07-31'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date, death_date) VALUES (2, '<NAME> was an American novelist and science fiction writer. Often called "the dean of science fiction writers", he is one of the most popular, influential, and controversial authors of "hard science fiction". He set a high standard for science and engineering plausibility and helped to raise the genre\'s standards of literary quality. He was the first SF writer to break into mainstream, general magazines such as "The Saturday Evening Post", in the late 1940s. He was also among the first authors of bestselling, novel-length science fiction in the modern, mass-market era. ', 'MALE', '<NAME>', null, 'https://d202m5krfqbpi5.cloudfront.net/authors/1192826560p5/205.jpg', '1907-07-07', '1988-08-05'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date) VALUES (3, 'Hello and welcome. I\'m the author of the adult romance Fifty Shades trilogy, the first instalment (British spelling) of which was published in May 2011. I\'ve been delighted and honoured by the positive response from readers the world over, and I\'m looking forward to bringing you some new love stories I\'ve got planned. With love and thanks <NAME>', 'FEMALE', '<NAME>', 'http://www.eljamesauthor.com/', 'http://d202m5krfqbpi5.cloudfront.net/authors/1308409727p5/4725841.jpg', '1963-03-07'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date) VALUES (4, 'Since 1991, <NAME> has been busy writing for children\'s television. She has worked on the staffs of several Nickelodeon shows, including the Emmy-nominated hit Clarissa Explains it All and The Mystery Files of Shelby Woo. For preschool viewers, she penned multiple stories for the Emmy-nominated Little Bear and Oswald. She also co-wrote the critically acclaimed Rankin/Bass Christmas special, Santa, Baby! Most recently she was the Head Writer for Scholastic Entertainment\'s Clifford\'s Puppy Days. While working on a Kids WB show called Generation O! she met children\'s author <NAME>, who talked her into giving children\'s books a try. Thinking one day about Alice in Wonderland, she was struck by how pastoral the setting must seem to kids who, like her own, lived in urban surroundings. In New York City, you\'re much more likely to fall down a manhole than a rabbit hole and, if you do, you\'re not going to find a tea party. What you might find...? Well, that\'s the story of Gregor the Overlander, the first book in her five-part series, The Underland Chronicles. Suzanne also has a rhyming picture book illustrated by <NAME> entitled When <NAME> Lost Power. She currently lives in Connecticut with her family and a pair of feral kittens they adopted from their backyard. The books she is most successful for in teenage eyes are The Hunger Games, Catching Fire and Mockingjay. These books have won several awards, including the GA Peach Award.', 'FEMALE', '<NAME>', 'http://www.suzannecollinsbooks.com/', 'http://d202m5krfqbpi5.cloudfront.net/authors/1366212557p5/153394.jpg', '1962-08-11'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date, death_date) VALUES (5, '<NAME>, CBE, was an English writer, poet, philologist, and university professor, best known as the author of the high fantasy classic works The Hobbit and The Lord of the Rings. Tolkien was Rawlinson and Bosworth Professor of Anglo-Saxon at Oxford from 1925 to 1945, and Merton Professor of English language and literature from 1945 to 1959. He was a close friend of <NAME>. <NAME> published a series of works based on his father\'s extensive notes and unpublished manuscripts, including The Silmarillion. These, together with The Hobbit and The Lord of the Rings, form a connected body of tales, poems, fictional histories, invented languages, and literary essays about an imagined world called Arda, and Middle-earth within it. Between 1951 and 1955, Tolkien applied the word "legendarium" to the larger part of these writings. While many other authors had published works of fantasy before Tolkien, the great success of The Hobbit and The Lord of the Rings led directly to a popular resurgence of the genre. This has caused Tolkien to be popularly identified as the "father" of modern fantasy literature—or more precisely, high fantasy. Tolkien\'s writings have inspired many other works of fantasy and have had a lasting effect on the entire field. In 2008, The Times ranked him sixth on a list of "The 50 greatest British writers since 1945". Forbes ranked him the 5th top-earning dead celebrity in 2009. Religious influences <NAME>, was born in South Africa in 1892, but his family moved to Britain when he was about 3 years old. When Tolkien was 8 years old, his mother converted to Catholicism, and he remained a Catholic throughout his life. In his last interview, two years before his death, he unhesitatingly testified, “I\'m a devout Roman Catholic.” Tolkien married his childhood sweetheart, Edith, and they had four children. He wrote them letters each year as if from Santa Claus, and a selection of these was published in 1976 as The Father Christmas Letters . One of Tolkien\'s sons became a Catholic priest. Tolkien was an advisor for the translation of the Jerusalem Bible. Tolkien once described The Lord of the Rings to his friend <NAME>, an English Jesuit priest, as "a fundamentally religious and Catholic work, unconsciously so at first, but consciously in the revision." There are many theological themes underlying the narrative including the battle of good versus evil, the triumph of humility over pride, and the activity of grace. In addition the saga includes themes which incorporate death and immortality, mercy and pity, resurrection, salvation, repentance, self-sacrifice, free will, justice, fellowship, authority and healing. In addition The Lord\'s Prayer "And lead us not into temptation, but deliver us from evil" was reportedly present in Tolkien\'s mind as he described Frodo\'s struggles against the power of the "One Ring".', 'MALE', '<NAME>', 'http://www.tolkienestate.com/', 'http://d202m5krfqbpi5.cloudfront.net/authors/1329870573p5/656983.jpg', '1892-01-03', '1973-09-02'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date) VALUES (6, null, 'MALE', '<NAME>', 'http://www.richarddawkins.net', 'http://d202m5krfqbpi5.cloudfront.net/authors/1188068989p5/1194.jpg', '1941-03-26'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date) VALUES (7, 'I was born in Connecticut in 1973, during a brief blip in my family\'s otherwise western U.S. existence. We were settled in Phoenix by the time I was four, and I think of myself as a native. The unusual spelling of my name was a gift from my father, Stephen (+ ie = me). Though I have had my name spelled wrong on pretty much everything my entire life long, I must admit that it makes it easier to google myself now. I filled the "<NAME>" spot in my family-the second of three girls. Unlike the Brady\'s, none of my three brothers are steps, and all of them are younger than all the girls. I went to high school in Scottsdale, Arizona, the kind of place where every fall a few girls would come back to school with new noses and there were Porsches in the student lot (for the record, I have my original nose, and never had a car until after I was in my twenties). I was awarded a National Merit Scholarship, and I used it to pay my way to Brigham Young University, in Provo, Utah. I majored in English, but concentrated on literature rather than creative writing, mostly because I didn\'t consider reading books "work" (as long as I was going to be doing something anyway, I might as well get course credit for it, right?). I met my husband, Pancho (his real name is Christiaan), when I was four, but we were never anywhere close to being childhood sweethearts. In fact, though we saw each other at least weekly through church activities, I can\'t recall a single instance when we so much as greeted each other with a friendly wave, let alone exchanged actual words. This may have been for the best, because when we did eventually get around to exchanging words, sixteen years after our first meeting, it only took nine months from the first "hello" to the wedding. Of course, we were able to skip over a lot of the getting to know you parts (many of our conversations would go something like this: "This one time, when I was ten, I broke my hand at a party when-" "Yeah, I know what happened. I was there, remember?") We\'ve been married for ten and a half years now, and have three beautiful, brilliant, wonderful boys who often remind me chimpanzees on crack. I can\'t write without music, and my biggest muse is, ironically enough, the band Muse. My other favorite sources of inspiration are Linkin Park, My Chemical Romance, Coldplay, The All American Rejects, Travis, The Strokes, Brand New, U2, Kasabian, Jimmy Eat World, and Weezer, to mention a few.', 'FEMALE', '<NAME>', 'www.stepheniemeyer.com', 'http://d202m5krfqbpi5.cloudfront.net/authors/1269985304p5/941441.jpg', '1973-12-24'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date, death_date) VALUES (8, '<NAME>, popularly known as <NAME>, was an American author, who won the Pulitzer Prize in 1937 for her novel, Gone with the Wind, published in 1936. The novel is one of the most popular books of all time, selling more than 28 million copies. An American film adaptation, released in 1939, became the highest-grossing film in the history of Hollywood, and received a record-breaking number of Academy Awards.', 'FEMALE', '<NAME>', null, 'http://d202m5krfqbpi5.cloudfront.net/authors/1185481392p5/11081.jpg', '1900-11-08', '1949-08-16'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date, death_date) VALUES (9, '<NAME> (16 December 1775 – 18 July 1817) was an English novelist whose works of romantic fiction, set among the landed gentry, earned her a place as one of the most widely read writers in English literature, her realism and biting social commentary cementing her historical importance among scholars and critics. Austen lived her entire life as part of a close-knit family located on the lower fringes of the English landed gentry. She was educated primarily by her father and older brothers as well as through her own reading. The steadfast support of her family was critical to her development as a professional writer. Her artistic apprenticeship lasted from her teenage years until she was about 35 years old. During this period, she experimented with various literary forms, including the epistolary novel which she tried then abandoned, and wrote and extensively revised three major novels and began a fourth. From 1811 until 1816, with the release of Sense and Sensibility (1811), Pride and Prejudice (1813), Mansfield Park (1814) and Emma (1816), she achieved success as a published writer. She wrote two additional novels, Northanger Abbey and Persuasion, both published posthumously in 1818, and began a third, which was eventually titled Sanditon, but died before completing it. Austen\'s works critique the novels of sensibility of the second half of the 18th century and are part of the transition to 19th-century realism. Her plots, though fundamentally comic, highlight the dependence of women on marriage to secure social standing and economic security. Her work brought her little personal fame and only a few positive reviews during her lifetime, but the publication in 1869 of her nephew\'s A Memoir of Jane Austen introduced her to a wider public, and by the 1940s she had become widely accepted in academia as a great English writer. The second half of the 20th century saw a proliferation of Austen scholarship and the emergence of a Janeite fan culture.', 'FEMALE', '<NAME>', null, 'http://d202m5krfqbpi5.cloudfront.net/authors/1282032472p5/1265.jpg', '1775-12-16', '1817-07-18'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date, death_date) VALUES (10, '<NAME>, better known by his pen name <NAME>, was an English author and journalist. His work is marked by keen intelligence and wit, a profound awareness of social injustice, an intense opposition to totalitarianism, a passion for clarity in language, and a belief in democratic socialism. Considered perhaps the twentieth century\'s best chronicler of English culture, Orwell wrote fiction, polemical journalism, literary criticism and poetry. He is best known for the dystopian novel "Nineteen Eighty-Four" (published in 1949) and the satirical novella "Animal Farm" (1945)—they have together sold more copies than any two books by any other twentieth-century author. His 1938 book "Homage to Catalonia", an account of his experiences as a volunteer on the Republican side during the Spanish Civil War, together with numerous essays on politics, literature, language, and culture, are widely acclaimed. Orwell\'s influence on contemporary culture, popular and political, continues decades after his death. Several of his neologisms, along with the term "Orwellian" — now a byword for any oppressive or manipulative social phenomenon opposed to a free society — have entered the vernacular.', 'MALE', '<NAME>', 'http://www.george-orwell.org/', 'http://d202m5krfqbpi5.cloudfront.net/authors/1175614486p5/3706.jpg', '1903-06-25', '1950-01-25'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date, death_date) VALUES (11, '<NAME> (baptised 26 April 1564) was an English poet and playwright, widely regarded as the greatest writer in the English language and the world\'s pre-eminent dramatist. He is often called England\'s national poet and the "Bard of Avon" (or simply "The Bard"). His surviving works consist of 38 plays, 154 sonnets, two long narrative poems, and several other poems. His plays have been translated into every major living language, and are performed more often than those of any other playwright. Shakespeare was born and raised in Stratford-upon-Avon. Scholars believe that he died on his fifty-second birthday, coinciding with St George’s Day. It is an interesting idea that English writer is so closely identified with the Patron Saint of England! At the age of 18 he married <NAME>, who bore him three children: Susanna, and twins Hamnet and Judith. Between 1585 and 1592 he began a successful career in London as an actor, writer, and part owner of the playing company the Lord Chamberlain\'s Men, later known as the King\'s Men. He appears to have retired to Stratford around 1613, where he died three years later. Few records of Shakespeare\'s private life survive, and there has been considerable speculation about such matters as his sexuality, religious beliefs, and whether the works attributed to him were written by others. Shakespeare produced most of his known work between 1590 and 1613. His early plays were mainly comedies and histories, genres he raised to the peak of sophistication and artistry by the end of the sixteenth century. Next he wrote mainly tragedies until about 1608, including Hamlet, King Lear, and Macbeth, considered some of the finest examples in the English language. In his last phase, he wrote tragicomedies, also known as romances, and collaborated with other playwrights. Many of his plays were published in editions of varying quality and accuracy during his lifetime, and in 1623, two of his former theatrical colleagues published the First Folio, a collected edition of his dramatic works that included all but two of the plays now recognised as Shakespeare\'s. Shakespeare was a respected poet and playwright in his own day, but his reputation did not rise to its present heights until the nineteenth century. The Romantics, in particular, acclaimed Shakespeare\'s genius, and the Victorians hero-worshipped Shakespeare with a reverence that <NAME> called "bardolatry". In the twentieth century, his work was repeatedly adopted and rediscovered by new movements in scholarship and performance. His plays remain highly popular today and are consistently performed and reinterpreted in diverse cultural and political contexts throughout the world. According to historians, Shakespeare write 37 plays and 154 sonnets throughout the span of his life. Shakespeare\'s writing average was 1.5 plays a year since he first started writing in 1589. There have been plays and sonnets attributed to Shakespeare that were not authentically written by the great master of language and literature.', 'MALE', '<NAME>', 'http://www.opensourceshakespeare.org/', 'http://d202m5krfqbpi5.cloudfront.net/authors/1360741702p5/947.jpg', '1564-03-04', '1616-04-23'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date, death_date) VALUES (12, '<NAME> (Russian: Фё<NAME> Достоевский) was a Russian novelist, journalist, and short-story writer whose psychological penetration into the human soul had a profound influence on the 20th century novel. Dostoevsky was the second son of a former army doctor. He was educated at home and at a private school. Shortly after the death of his mother in 1837 he was sent to St. Petersburg, where he entered the Army Engineering College. Dostoevsky\'s father died in 1839, most likely of apoplexy, but it was rumored that he was murdered by his own serfs. Dostoevsky graduated as a military engineer, but resigned in 1844 to devote himself to writing. His first novel, Poor Folk appeared in 1846. That year he joined a group of utopian socialists. He was arrested in 1849 and sentenced to death, commuted to imprisonment in Siberia. Dostoevsky spent four years in hard labor and four years as a soldier in Semipalatinsk, a city in what it is today Kazakhstan. Dostoevsky returned to St. Petersburg in 1854 as a writer with a religious mission and published three works that derive in different ways from his Siberia experiences: The House of the Dead , (1860) a fictional account of prison life, The Insulted and Injured, which reflects the author\'s refutation of naive Utopianism in the face of evil, and Winter Notes on Summer Impressions, his account of a trip to Western Europe. In 1857 Dostoevsky married <NAME>, a 29-year old widow. He resigned from the army two years later. Between the years 1861 and 1863 he served as editor of the monthly periodical Time, which was later suppressed because of an article on the Polish uprising. In 1864-65 his wife and brother died and he was burdened with debts. His situation was made even worse by his gambling addiction. From the turmoil of the 1860s emerged Notes from the Underground, a psychological study of an outsider, which marked a major advancement in Dostoevsky\'s artistic development. In 1867 Dostoevsky married <NAME>, his 22-year old stenographer. They traveled abroad and returned in 1871. By the time of The Brothers Karamazov (1879-80), Dostoevsky was recognized in his own country as one of its great writers.', 'MALE', '<NAME>', null, 'https://d202m5krfqbpi5.cloudfront.net/authors/1328375676p5/3137322.jpg', '1821-11-11', '1881-02-09'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date, death_date) VALUES (13, 'Victor-<NAME> was a French poet, playwright, novelist, essayist, visual artist, statesman, human rights campaigner, and perhaps the most influential exponent of the Romantic movement in France.', 'MALE', '<NAME>', null, 'https://d202m5krfqbpi5.cloudfront.net/authors/1288998664p5/13661.jpg', '1802-02-26', '1885-05-22'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date, death_date) VALUES (14, '<NAME> Wilde was an Irish playwright, poet and author of numerous short stories and one novel. Known for his biting wit, and a plentitude of aphorisms, he became one of the most successful playwrights of the late Victorian era in London, and one of the greatest celebrities of his day. Several of his plays continue to be widely performed, especially The Importance of Being Earnest. As the result of a widely covered series of trials, Wilde suffered a dramatic downfall and was imprisoned for two years hard labour after being convicted of "gross indecency" with other men. After Wilde was released from prison he set sail for Dieppe by the night ferry. He never returned to Ireland or Britain, and died in poverty.', 'MALE', '<NAME>', 'http://www.cmgww.com/historic/wilde/', 'http://d202m5krfqbpi5.cloudfront.net/authors/1357460488p5/3565.jpg', '1854-10-16', '1900-11-30'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date, death_date) VALUES (15, 'He was born <NAME> in 1847 at 15 Marino Crescent – then as now called "The Crescent" – in Fairview, a coastal suburb of Dublin, Ireland. His parents were <NAME> and the feminist <NAME>. Stoker was the third of seven children. Abraham and Charlotte were members of the Clontarf Church of Ireland parish and attended the parish church (St. John the Baptist located on Seafield Road West) with their children, who were both baptised there. Stoker was an invalid until he started school at the age of seven — when he made a complete and astounding recovery. Of this time, Stoker wrote, "I was naturally thoughtful, and the leisure of long illness gave opportunity for many thoughts which were fruitful according to their kind in later years." After his recovery, he became a normal young man, even excelling as an athlete (he was named University Athlete) at Trinity College, Dublin (1864 – 70), from which he graduated with honours in mathematics. He was auditor of the College Historical Society and president of the University Philosophical Society, where his first paper was on "Sensationalism in Fiction and Society". In 1876, while employed as a civil servant in Dublin, Stoker wrote a non-fiction book (The Duties of Clerks of Petty Sessions in Ireland, published 1879) and theatre reviews for The Dublin Mail, a newspaper partly owned by fellow horror writer <NAME>. His interest in theatre led to a lifelong friendship with the English actor <NAME>. He also wrote stories, and in 1872 "The Crystal Cup" was published by the London Society, followed by "The Chain of Destiny" in four parts in The Shamrock. In 1878 Stoker married <NAME>, a celebrated beauty whose former suitor was <NAME>. The couple moved to London, where Stoker became business manager (at first as acting-manager) of Irving\'s Lyceum Theatre, a post he held for 27 years. The collaboration with Irving was very important for Stoker and through him he became involved in London\'s high society, where he met, among other notables, <NAME>, and Sir <NAME>. In the course of Irving\'s tours, Stoker got the chance to travel around the world. The Stokers had one son, <NAME>, who was born on December 31, 1879. <NAME> died in 1912, and was cremated and his ashes placed in a display urn at Golders Green Crematorium. After Irving Noel Stoker\'s death in 1961, his ashes were added to that urn. The original plan had been to keep his parents\' ashes together, but after Florence Stoker\'s death her ashes were scattered at the Gardens of Rest.', 'MALE', '<NAME>', 'http://www.bramstoker.org/', 'https://d202m5krfqbpi5.cloudfront.net/authors/1202438456p5/6988.jpg', '1847-11-08', '1912-04-20'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date, death_date) VALUES (16, 'Nabokov wrote his first nine novels in Russian, then rose to international prominence as a master English prose stylist. He also made significant contributions to lepidoptery and had an interest in chess problems. Nabokov\'s Lolita (1955) is frequently cited as his most important novel, and is at any rate his most widely known one, exhibiting the love of intricate wordplay and descriptive detail that characterized all his works.', 'MALE', '<NAME>', 'www.nabokovmuseum.org/en/', 'https://d202m5krfqbpi5.cloudfront.net/authors/1188830569p5/5152.jpg', '1899-04-22', '1977-07-02'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date, death_date) VALUES (17, '<NAME> (Russian: Лев Николаевич Толстой; commonly Leo Tolstoy in Anglophone countries) was a Russian writer who primarily wrote novels and short stories. Later in life, he also wrote plays and essays. His two most famous works, the novels War and Peace and <NAME>, are acknowledged as two of the greatest novels of all time and a pinnacle of realist fiction. Many consider Tolstoy to have been one of the world\'s greatest novelists. Tolstoy is equally known for his complicated and paradoxical persona and for his extreme moralistic and ascetic views, which he adopted after a moral crisis and spiritual awakening in the 1870s, after which he also became noted as a moral thinker and social reformer. His literal interpretation of the ethical teachings of Jesus, centering on the Sermon on the Mount, caused him in later life to become a fervent Christian anarchist and anarcho-pacifist. His ideas on nonviolent resistance, expressed in such works as The Kingdom of God Is Within You, were to have a profound impact on such pivotal twentieth-century figures as Mohandas Gandhi and Martin Luther King, Jr.', 'MALE', '<NAME>', null, 'https://d202m5krfqbpi5.cloudfront.net/authors/1342945438p5/128382.jpg', '1828-09-09', '1910-11-20'); INSERT into AUTHOR (id, about, gender, name, website, image_url, birth_date, death_date) VALUES (18, 'Critically acclaimed and commercially successful American science fiction author. He is best known for the novel Dune and its five sequels. The Dune saga, set in the distant future and taking place over millennia, dealt with themes such as human survival and evolution, ecology, and the intersection of religion, politics, and power, and is widely considered to be among the classics in the field of science fiction.', 'MALE', '<NAME>', 'http://www.dunenovels.com/', 'https://d202m5krfqbpi5.cloudfront.net/authors/1168661521p8/58.jpg', '1920-10-08', '1986-02-11'); -- BOOKS INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (1, '<NAME> has never played a sport while flying on a broomstick. He\'s never worn a Cloak of Invisibility, befriended a giant, or helped hatch a dragon. All Harry knows is a miserable life with the Dursleys, his horrible aunt and uncle, and their abominable son, Dudley. Harry\'s room is a tiny cupboard under the stairs, and he hasn\'t had a birthday party in ten years.But all that is about to change when a mysterious letter arrives by owl messenger: a letter with an invitation to a wonderful place he never dreamed existed. There he finds not only friends, aerial sports, and magic around every corner, but a great destiny that\'s been waiting for him... if Harry can survive the encounter.', '9781451648539', 'ENGLISH', 310, '1997-01-01', '<NAME> and the Sorcerer\'s Stone', 1, 'http://d202m5krfqbpi5.cloudfront.net/books/1361572757l/3.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (2, 'Ever since <NAME> had come home for the summer, the Dursleys had been so mean and hideous that all Harry wanted was to get back to the Hogwarts School of Witchcraft and Wizardry. But just as he\'s packing his bags, Harry receives a warning from a strange, impish creature who says that if Harry returns to Hogwarts, disaster will strike. And strike it does. For in Harry\'s second year at Hogwarts, fresh torments and horrors arise, including an outrageously stuck-up new professor and a spirit who haunts the girl\'s bathroom. But then the real trouble begins - something is attacking Hogwarts students, turning them into stone. Could it be <NAME>, a more poisonous rival than ever? Could it possibly be Hagrid, whose mysterious past reveals dark secrets? Or could it be the one everyone at Hogwarts most suspects ... <NAME> himself!', '9780439064866', 'ENGLISH', 341, '1999-06-02', '<NAME> and the Chamber of Secrets', 1, 'https://d202m5krfqbpi5.cloudfront.net/books/1370043634l/15881.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (3, '<NAME> is lucky to reach the age of thirteen, since he has already survived the murderous attacks of the feared Dark Lord on more than one occasion. But his hopes for a quiet term concentrating on Quidditch are dashed when a maniacal mass-murderer escapes from Azkaban, pursued by the soul-sucking Dementors who guard the prison. It\'s assumed that Hogwarts is the safest place for Harry to be. But is it a coincidence that he can feel eyes watching him in the dark, and should he be taking Professor Trelawney\'s ghoulish predictions seriously?', '9780439655484', 'ENGLISH', 435, '1999-11-01', '<NAME> and the Prisoner of Azkaban', 1, 'https://d202m5krfqbpi5.cloudfront.net/books/1362278317l/5.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (4, 'The summer holidays are dragging on and Harry Potter can\'t wait for the start of the school year. It is his fourth year at Hogwarts School of Witchcraft and Wizardry, and there are spells to be learnt, potions to be brewed and Divination lessons (sigh) to be attended. Harry is expecting these: however, other quite unexpected events are already on the march', '9780439139601', 'ENGLISH', 734, '2000-07-08', 'Harry Potter and the Goblet of Fire', 1, 'https://d202m5krfqbpi5.cloudfront.net/books/1361482611l/6.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (5, '<NAME> is due to start his fifth year at Hogwarts School of Witchcraft and Wizardry. His best friends Ron and Hermione have been very secretive all summer and he is desperate to get back to school and find out what has been going on. However, what Harry discovers is far more devastating than he could ever have expected...', '9780439358071', 'ENGLISH', 870, '2003-06-21', 'Harry Potter and the Order of the Phoenix', 1, 'https://d202m5krfqbpi5.cloudfront.net/books/1361039183l/2.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (6, 'The war against Voldemort is not going well; even the Muggle governments are noticing. Ron scans the obituary pages of the Daily Prophet, looking for familiar names. Dumbledore is absent from Hogwarts for long stretches of time, and the Order of the Phoenix has already suffered losses. And yet, as with all wars, life goes on. Sixth-year students learn to apparate—and lose a few eyebrows in the process. Teenagers flirt and fight and fall in love. Classes are never straightforward, though Harry receives some extraordinary help from the mysterious Half-Blood Prince.So it\'s the home front that takes center stage in the multilayered sixth installment of the story of Harry Potter. Here at Hogwarts, Harry will search for the full and complex story of the boy who became Lord Voldemort—and thereby find what may be his only vulnerability.', '9780439785969', 'ENGLISH', 652, '2005-09-16', 'Harry Potter and the Half-Blood Prince', 1, 'http://d202m5krfqbpi5.cloudfront.net/books/1361039191l/1.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (7, 'Harry is waiting in Privet Drive. The Order of the Phoenix is coming to escort him safely away without Voldemort and his supporters knowing - if they can. But what will Harry do then? How can he fulfill the momentous and seemingly impossible task that <NAME> has left him?', '9780545010221', 'ENGLISH', 759, '2007-08-01', '<NAME> and the Deathly Hallows', 1, 'http://d202m5krfqbpi5.cloudfront.net/books/1370023538l/136251.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (8, 'A big novel about a small town ... When <NAME> dies in his early forties, the town of Pagford is left in shock. Pagford is, seemingly, an English idyll, with a cobbled market square and an ancient abbey, but what lies behind the pretty façade is a town at war. Rich at war with poor, teenagers at war with their parents, wives at war with their husbands, teachers at war with their pupils ... Pagford is not what it first seems. And the empty seat left by Barry on the parish council soon becomes the catalyst for the biggest war the town has yet seen. Who will triumph in an election fraught with passion, duplicity and unexpected revelations?', '9780316228534', 'ENGLISH', 503, '2012-09-27', 'The Casual Vacancy', 1, 'http://d202m5krfqbpi5.cloudfront.net/books/1358266832l/13497818.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (9, 'This novel tells the story of <NAME>, a human raised from infancy by Martians, who returned to Earth in early adulthood with seemingly magical powers. The novel explores his interaction with—and the eventual transformation of—Earth culture. The title is an allusion to the phrase in the Biblical Book of Exodus 2:22. According to Heinlein, the novel\'s working title was "The Heretic". Several later editions of the book have promoted it as "The most famous Science Fiction Novel ever written."', '9780441788385', 'ENGLISH', 864, '1991-10-01', 'Stranger in a Strange Land', 2, 'https://d202m5krfqbpi5.cloudfront.net/books/1156897088l/350.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (10, 'It is 1970, and electronics engineer <NAME> has finally made the invention of a lifetime: a household robot with extraordinary abilities, destined to dramatically change the landscape of everyday routine. Then, with wild success just within reach, Dan\'s greedy partner and even greedier fiancée steal his work and leave him penniless, and trick him into taking the long sleep—suspended animation for thirty years. They never imagine that the future time in which Dan awakens has a very limited form of time travel, just enough that Davis can travel back and recover his research. He then again undergoes suspended animation, and awakens again in the high-tech future of the year 2000, with his reputation, fortune, and his sweetheart.', '9780345413994', 'ENGLISH', 304, '1957-01-01', 'The Door into Summer', 2, 'https://d202m5krfqbpi5.cloudfront.net/books/1342241886l/348.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (11, 'In one of <NAME>\'s most controversial bestsellers, a recruit of the future goes through the toughest boot camp in the Universe--and into battle with the Terran Mobile Infantry against mankind\'s most frightening enemy.', '9780441783588', 'ENGLISH', 264, '1959-01-01', 'Starship Troopers', 2, 'http://d202m5krfqbpi5.cloudfront.net/books/1371782363l/17214.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (12, 'It is the year 2076, and the Moon is the dumping ground for the rebellious and the unwanted of the Earth. Faced with little choice, these exiles have banded together in order to live and survive in their harsh and unforgiving environment, creating new social conventions and beliefs. Confronting them is the Luna Authority, the heavy-handed Earth administration, that seeks to extract as much wealth from the "Loonies" as possible, for return to the Earth. as the situation slowly deteriorates the inhabitants of the Moon come to realise that they have little choice but to revolt against the Earth government, in order to save themselves from economic strangulation and environmental disaster. A small band of dissidents emerges to lead the revolution. This consists of a one-armed computer jock, a radical young woman, a past-his-prime academic, and a nearly omnipotent computer named Mike. These people ignite the fires of revolution, despite the near certainty of failure and death.', '9780340837948', 'ENGLISH', 288, '1966-01-01', 'The Moon is a Harsh Mistress', 2, 'https://d202m5krfqbpi5.cloudfront.net/books/1348768309l/16690.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (13, 'The capstone and crowning achievement of Heinlein\'s famous Future History, Time Enough for Love follows Lazarus Long through a vast and magnificent timescape of centuries and worlds. Heinlein\'s longest and most ambitious work, it is the story of a man so in love with Life that he refused to stop living it.', '9780441810765', 'ENGLISH', 589, '1973-01-01', 'Time Enough for Love', 2, 'https://d202m5krfqbpi5.cloudfront.net/books/1218664355l/353.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (14, 'Engineered from the finest genes, and trained to be a secret courier in a future world, Friday operates over a near-future Earth, where chaos reigns. Working at Boss\'s whimsical behest she travels from far north to deep south, finding quick, expeditious solutions as one calamity after another threatens to explode in her face....', '9780345414007', 'ENGLISH', 384, '1982-01-01', 'Friday', 2, 'https://d202m5krfqbpi5.cloudfront.net/books/1315410828l/17208.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (15, 'When literature student <NAME> goes to interview young entrepreneur <NAME>, she encounters a man who is beautiful, brilliant, and intimidating. The unworldly, innocent Ana is startled to realize she wants this man and, despite his enigmatic reserve, finds she is desperate to get close to him. Unable to resist Ana’s quiet beauty, wit, and independent spirit, Grey admits he wants her, too—but on his own terms. Shocked yet thrilled by Grey’s singular erotic tastes, Ana hesitates. For all the trappings of success—his multinational businesses, his vast wealth, his loving family—Grey is a man tormented by demons and consumed by the need to control. when the couple embarks on a daring, passionately physical affair, Ana discovers <NAME>’s secrets and explores her own dark desires. Erotic, amusing, and deeply moving, the Fifty Shades Trilogy is a tale that will obsess you, possess you, and stay with you forever. This book is intended For mature audiences.', '9781612130293', 'ENGLISH', 385, '2011-05-05', 'Fifty Shades of Grey', 3, 'https://d202m5krfqbpi5.cloudfront.net/books/1372516342l/10818853.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (16, 'Daunted by the singular sexual tastes and dark secrets of the beautiful, tormented young entrepreneur <NAME>, <NAME> has broken off their relationship to start a new career with a Seattle publishing house. But desire for Christian still dominates her every waking thought, and when he proposes a new arrangement, Anastasia cannot resist. They rekindle their searing sensual affair, and Anastasia learns more about the harrowing past of her damaged, driven, and demanding Fifty Shades. While Christian wrestles with his inner demons, Anastasia must confront her anger and envy of the women who came before her and make the most important decision of her life. Erotic, sparkling and suspenseful, Fifty Shades Darker is the irresistibly addictive second part of the Fifty Shades trilogy.', '9781612130583', 'ENGLISH', 532, '2011-09-15', 'Fifty Shades Darker', 3, 'https://d202m5krfqbpi5.cloudfront.net/books/1358266080l/11857408.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (17, 'When unworldly student <NAME> first encountered the driven and dazzling young entrepreneur Christian Grey it sparked a sensual affair that changed both of their lives irrevocably. Shocked, intrigued, and, ultimately, repelled by Christian’s singular erotic tastes, Ana demands a deeper commitment. Determined to keep her, Christian agrees. Now, Ana and Christian have it ALL—love, passion, intimacy, wealth, and a world of possibilities For their future. But Ana knows that loving her Fifty Shades will not be easy, and that being together will pose challenges that neither of them would anticipate. Ana must somehow learn to share Christian’s opulent lifestyle without sacrificing her own identity. and Christian must overcome his compulsion to control as he wrestles with the demons of a tormented past. Just when it seems that their strength together will eclipse ANY obstacle, misfortune, malice, and fate conspire to make Ana’s deepest fears turn to reality.', '9780345803504', 'ENGLISH', 579, '2012-04-17', 'Fifty Shades Freed', 3, 'www.d202m5krfqbpi5.cloudfront.net/books/1336418837l/13536860.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (18, 'Could you survive on your own, in the wild, with everyone out to make sure you don\'t live to see the morning? In the ruins of a place once known as North America lies the nation of Panem, a shining Capitol surrounded by twelve outlying districts. The Capitol is harsh and cruel and keeps the districts in line by forcing them all to send one boy and one girl between the ages of twelve and eighteen to participate in the annual Hunger Games, a fight to the death on live TV. Sixteen-year-old <NAME>, who lives alone with her mother and younger sister, regards it as a death sentence when she steps forward to take her sister’s place in the Games. But Katniss has been close to dead before—and survival, for her, is second nature. Without really meaning to, she becomes a contender. But if she is to win, she will have to start making choices that will weigh survival against humanity and life against love.', '9780439023481', 'ENGLISH', 374, '2008-10-31', 'The Hunger Games', 4, 'http://d202m5krfqbpi5.cloudfront.net/books/1358275334l/2767052.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (19, 'Against all odds, Katniss has won the Hunger Games. She and fellow District 12 tribute <NAME> are miraculously still alive. Katniss should be relieved, happy even. After all, she has returned to her family and longtime friend, Gale. Yet nothing is the way Katniss wishes it to be. Gale holds her at an icy distance. Peeta has turned his back on her completely. And there are whispers of a rebellion against the Capitol - a rebellion that Katniss and Peeta may have helped create. Much to her shock, Katniss has fueled an unrest she\'s afraid she cannot stop. and what scares her even more is that she\'s not entirely convinced she should try. as time draws near For Katniss and Peeta to visit the districts on the Capitol\'s cruel Victory Tour, the stakes are higher than ever. If they can\'t prove, without a shadow of a doubt, that they are lost in their love For each other, the consequences will be horrifying. in Catching Fire, the SECOND novel of the Hunger Games trilogy, <NAME>s continues the story of <NAME>, testing her more than ever before...and surprising readers at every turn.', '9780439023498', 'ENGLISH', 391, '2009-09-01', 'Catching Fire', 4, 'http://d202m5krfqbpi5.cloudfront.net/books/1358275334l/2767052.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (20, 'Against all odds, <NAME> has survived the Hunger Games twice. But now that she\'s made it out of the bloody arena alive, she\'s still not safe. The Capitol is angry. The Capitol wants revenge. Who do they think should pay for the unrest? Katniss. And what\'s worse, President Snow has made it clear that no one else is safe either. Not Katniss\'s family, not her friends, not the people of District 12. Powerful and haunting, this thrilling final installment of Suzanne Collins\'s groundbreaking The Hunger Games trilogy promises to be one of the most talked about books of the year.', '9780439023511', 'ENGLISH', 390, '2010-08-24', 'Mockingjay', 4, 'https://d202m5krfqbpi5.cloudfront.net/books/1358275419l/7260188.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (21, 'In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, filled with the ends of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat: it was a hobbit-hole, and that means comfort. Written For <NAME>’s own children, The Hobbit met with instant critical acclaim when it was first published in 1937. Now recognized as a timeless classic, this introduction to the hobbit <NAME>, the wizard Gandalf, Gollum, and the spectacular world of Middle-earth recounts of the adventures of a reluctant hero, a powerful and dangerous ring, and the cruel dragon Smaug the Magnificent.', '9780618260300', 'ENGLISH', 351, '1937-01-01', 'The Hobbit', 5, 'https://d202m5krfqbpi5.cloudfront.net/books/1372847500l/5907.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (22, '<NAME> knew the Ringwraiths were searching for him - and the Ring of Power he bore that would enable Sauron to destroy all that was good in Middle-earth. Now it was up to Frodo and his faithful servant Sam to carry the Ring to where it could be detroyed - in the very center of Sauron\'s dark kingdom.', '9780618346257', 'ENGLISH', 398, '1954-07-24', 'The Fellowship of the Ring', 5, 'https://d202m5krfqbpi5.cloudfront.net/books/1371849682l/34.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (23, 'The Fellowship was scattered. Some were bracing hopelessly for war against the ancient evil of Sauron. Some were contending with the treachery of the wizard Saruman. Only Frodo and Sam were left to take the accursed Ring of Power to be destroyed in Mordor–the dark Kingdom where Sauron was supreme. Their guide was Gollum, deceitful and lust-filled, slave to the corruption of the Ring. Thus continues the magnificent, bestselling tale of adventure begun in The Fellowship of the Ring, which reaches its soul-stirring climax in The Return of the King', '9780618346264', 'ENGLISH', 322, '1954-01-01', 'The Two Towers', 5, 'https://d202m5krfqbpi5.cloudfront.net/books/1298415523l/15241.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (24, 'While the evil might of the Dark Lord Sauron swarms out to conquer all Middle-earth, Frodo and Sam struggle deep into Mordor, seat of Sauron\’s power. To defeat the Dark Lord, the One Ring, ruler of all the accursed Rings of Power, must be destroyed in the fires of Mount Doom. But the way is impossibly hard, and Frodo is weakening. Weighed down by the compulsion of the Ring, he begins finally to despair.', '9780345339737', 'ENGLISH', 491, '1955-10-20', 'The Return of the King', 5, 'https://d202m5krfqbpi5.cloudfront.net/books/1367746343l/18512.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (25, 'Magic takes many forms. Supernatural magic is what our ancestors used in order to explain the world before they developed the scientific method. The ancient Egyptians explained the night by suggesting the goddess Nut swallowed the sun. The Vikings believed a rainbow was the gods’ bridge to earth. The Japanese used to explain earthquakes by conjuring a gigantic catfish that carried the world on its back—earthquakes occurred each time it flipped its tail. These are magical, extraordinary tales. But there is another kind of magic, and it lies in the exhilaration of discovering the real answers to these questions. It is the magic of reality—science. Packed with clever thought experiments, dazzling illustrations and jaw-dropping facts, The Magic of Reality explains a stunningly wide range of natural phenomena. What is stuff made OF? How old is the universe? Why do the continents look like disconnected pieces of a puzzle? What causes tsunamis? Why are there so many kinds of plants and animals? Who was the first man, or woman? This is a page-turning, graphic detective story that not only mines all the sciences For its clues but primes the reader to think like a scientist as well. <NAME>, the world’s most famous evolutionary biologist and one of science education’s most passionate advocates, has spent his career elucidating the wonders of science For adult readers. But now, in a dramatic departure, he has teamed up with acclaimed artist <NAME> and used his unrivaled explanatory powers to share the magic of science with readers of all ages. This is a treasure trove For anyone who has ever wondered how the world works. Dawkins and McKean have created an illustrated guide to the secrets of our world—and the universe beyond—that will entertain and inform For years to come.', '9781439192818', 'ENGLISH', 271, '2011-10-04', 'The Magic of Reality: How We Know What\'s Really True', 6, 'https://d202m5krfqbpi5.cloudfront.net/books/1327883246l/11256979.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (26, 'Evolutionary theorist <NAME> is not an atheist who sits quietly in the pews. The scientist Discover dubbed "<NAME>" refuses to regard religion as mere harmless nonsense; he views it instead as one of humanity\'s most pernicious creations. In The God Delusion he attacks arguments for the existence of God; accuses religions of fomenting divisiveness, war, and bigotry; and castigates believers in intelligent design.', '9780618680009', 'ENGLISH', 406, '2006-10-18', 'The God Delusion', 6, 'https://d202m5krfqbpi5.cloudfront.net/books/1347220693l/14743.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (27, '<NAME>\' brilliant reformulation of the theory of natural selection has the rare distinction of having provoked as much excitement and interest outside the scientific community as within it. His theories have helped change the whole nature of the study of social biology, and have forced thousands of readers to rethink their beliefs about life. in his internationally bestselling, now classic volume, The Selfish Gene, Dawkins explains how the selfish gene can also be a subtle gene. The world of the selfish gene revolves around savage competition, ruthless exploitation, and deceit, and yet, Dawkins argues, acts of apparent altruism do exist in nature. Bees, For example, will commit suicide when they sting to protect the hive, and birds will risk their lives to warn the flock of an approaching hawk. This 30th anniversary edition of Dawkins\' fascinating book retains all original material, including the two enlightening chapters added in the SECOND edition. in a new Introduction the author presents his thoughts thirty years after the publication of his first and most famous book, while the inclusion of the two-page original Foreword by brilliant American scientist <NAME> shows the enthusiastic reaction of the scientific community at that TIME. This edition is a celebration of a remarkable exposition of evolutionary thought, a WorK that has been widely hailed For its stylistic brilliance and deep scientific insights, and that continues to stimulate whole new areas of research today.', '9780199291151', 'ENGLISH', 384, '1976-01-01', 'The Selfish Gene', 6, 'https://d202m5krfqbpi5.cloudfront.net/books/1366758096l/61535.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (28, '<NAME>’s masterpiece, On the Origin of Species, shook society to its core on publication in 1859. Darwin was only too aware of the storm his theory of evolution would provoke but he would surely have raised an incredulous eyebrow at the controversy still raging a century and a half later. Evolution is accepted as scientific fact by all reputable scientists and indeed theologians, yet millions of people continue to question its veracity. in The Greatest Show on Earth <NAME> takes on creationists, including followers of ‘Intelligent Design’ and all those who question the fact of evolution through natural selection. like a detective arriving on the scene of a crime, he sifts through fascinating layers of scientific facts and disciplines to build a CAST-iron CASE: from the living examples of natural selection in birds and insects; the ‘TIME clocks’ of trees and radioactive dating that calibrate a timescale For evolution; the fossil record and the traces of our earliest ancestors; to confirmation from molecular biology and genetics. all of this, and much MorE, bears witness to the truth of evolution. The Greatest Show on Earth comes at a critical TIME: systematic opposition to the fact of evolution is now flourishing as never before, especially in America. In Britain and elsewhere in the world, teachers witness insidious attempts to undermine the status of science in their classrooms. <NAME> provides unequivocal evidence that boldly and comprehensively rebuts such nonsense. at the same time he shares with us his palpable love of the natural world and the essential role that science plays in its interpretation. Written with elegance, wit and passion, it is hard-hitting, absorbing and totally convincing.', '9780593061732', 'ENGLISH', 470, '2009-01-01', 'The Greatest Show on Earth: The Evidence For Evolution', 6, 'https://d202m5krfqbpi5.cloudfront.net/books/1302127919l/6117055.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (29, 'Patiently and lucidly, this Los Angeles Times Book Award and Royal Society of Literature Heinemann Prize winner identifies the aspects of the theory of evolution that people find hard to believe and removes the barriers to credibility one by one. "As readable and vigorous a defense of Darwinism as has been published since 1859".--The Economist.', '9780141026169', 'ENGLISH', 340, '1986-01-01', 'The Blind Watchmaker', 6, 'https://d202m5krfqbpi5.cloudfront.net/books/1171733477l/117047.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (30, '<NAME>\'s move to Forks, a small, perpetually rainy town in Washington, could have been the most boring move she ever made. But once she meets the mysterious and alluring <NAME>en, Isabella\'s life takes a thrilling and terrifying turn. Up until now, Edward has managed to keep his vampire identity a secret in the small community he lives in, but now nobody is safe, especially Isabella, the person Edward holds most dear. The lovers find themselves balanced precariously on the point of a knife-between desire and danger.Deeply romantic and extraordinarily suspenseful, Twilight captures the struggle between defying our instincts and satisfying our desires. This is a love story with bite.', '9780316015844', 'ENGLISH', 498, '2006-09-06', 'Twilight', 7, 'https://d202m5krfqbpi5.cloudfront.net/books/1361039443l/41865.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (31, 'For <NAME>, there is one thing more important than life itself: <NAME>. But being in love with a vampire is even more dangerous than Bella ever could have imagined. Edward has already rescued Bella from the clutches of one evil vampire, but now, as their daring relationship threatens all that is near and dear to them, they realize their troubles may be just beginning....', '9780316160193', 'ENGLISH', 563, '2006-09-06', 'New Moon', 7, 'https://d202m5krfqbpi5.cloudfront.net/books/1361039440l/49041.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (32, 'As Seattle is ravaged by a string of mysterious killings and a malicious vampire continues her quest for revenge, Bella once again finds herself surrounded by danger. In the midst of it all, she is forced to choose between her love for Edward and her friendship with Jacob - knowing that her decision has the potential to ignite the ageless struggle between vampire and werewolf. With her graduation quickly approaching, Bella has one more decision to make: life or death. But which is which?', '9780316160209', 'ENGLISH', 629, '2007-08-07', 'Eclipse', 7, 'https://d202m5krfqbpi5.cloudfront.net/books/1361038355l/428263.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (33, 'To be irrevocably in love with a vampire is both fantasy and nightmare woven into a dangerously heightened reality for <NAME>. Pulled in one direction by her intense passion for <NAME>, and in another by her profound connection to a werewolf <NAME>, she has endured a tumultuous year of temptation, loss, and strife to reach the ultimate turning point. her imminent choice to either join the dark but seductive world of immortals or pursue a fully human life has become the thread from which the fate of two tribes hangs. Now that Bella has made her decision, a startling chain of unprecedented events is about to unfold with potentially devastating and unfathomable consequences. Just when the frayed strands of Bella\'s life - first discovered in Twilight, then scattered and torn in New Moon and Eclipse - seem ready to heal and knit together, could they be destroyed...forever?', '9780316067928', 'ENGLISH', 756, '2008-08-02', 'Breaking Dawn', 7, 'https://d202m5krfqbpi5.cloudfront.net/books/1361039438l/1162543.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (34, 'Set against the dramatic backdrop of the American Civil War, <NAME>\'s epic love story is an unforgettable tale of love and loss, of a nation mortally divided and its people forever changed. At the heart of all this chaos is the story of beautiful, ruthless Scarlett \'O\' Hara and the dashing soldier of fortune, <NAME>.', '9780446675536', 'ENGLISH', 1037, '1936-01-01', 'Gone with the Wind', 8, 'https://d202m5krfqbpi5.cloudfront.net/books/1328025229l/18405.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (35, '"It is a truth universally acknowledged, that a single man in possession of a good fortune must be in want of a wife." So begins Pride and Prejudice, Jane Austen\'s witty comedy of manners--one of the most popular novels of all time--that features splendidly civilized sparring between the proud Mr. Darcy and the prejudiced <NAME> as they play out their spirited courtship in a series of eighteenth-century drawing-room intrigues. Renowned literary critic and historian George Saintsbury in 1894 declared it the "most perfect, the most characteristic, the most eminently quintessential of its author\'s works," and <NAME> in the twntieth century described it as "irresistible and as nearly flawless as any fiction could be."', '9780679783268', 'ENGLISH', 279, '1813-01-01', 'Pride and Prejudice', 9, 'https://d202m5krfqbpi5.cloudfront.net/books/1320399351l/1885.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (36, 'The more I know of the world, the more am I convinced that I shall never see a man whom I can really love. I require so much!\' <NAME> wears her heart on her sleeve, and when she falls in love with the dashing but unsuitable <NAME> she ignores her sister Elinor\'s warning that her impulsive behaviour leaves her OPEN to gossip and innuendo. Meanwhile Elinor, always sensitive to social convention, is struggling to conceal her own romantic disappointment, even from those closest to her. Through their parallel experience of love—and its threatened loss—the sisters learn that sense must mix with sensibility if they are to find personal happiness in a society where status and money govern the rules of love.', '9780141439662', 'ENGLISH', 409, '1811-01-01', 'Sense and Sensibility', 9, 'https://d202m5krfqbpi5.cloudfront.net/books/1309203534l/14935.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (37, 'I never have been in love; it is not my way, or my nature; and I do not think I ever shall.\' Beautiful, clever, rich - and single - <NAME> is perfectly content with her life and sees NO need For either love or marriage. Nothing, however, delights her more than interfering in the romantic lives of others. But when she ignores the warnings of her good friend <NAME> and attempts to arrange a suitable MATCH For her protegee <NAME>, her carefully laid plans soon unravel and have consequences that she never expected. with its imperfect but charming heroine and its witty and subtle exploration of relationships, Emma is often seen as <NAME>en\'s most flawless WorK.', '9780141439587', 'ENGLISH', 396, '1815-01-01', 'Emma', 9, 'https://d202m5krfqbpi5.cloudfront.net/books/1373627931l/6969.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (38, 'Twenty-seven-year old <NAME> is Austen\'s most adult heroine. Eight years before the story proper begins, she is happily betrothed to a naval officer, <NAME>, but she precipitously breaks off the engagement when persuaded by her friend <NAME> that such a match is unworthy. The breakup produces in Anne a deep and long-lasting regret. When later Wentworth returns from sea a rich and successful captain, he finds Anne\'s family on the brink of financial ruin and his own sister a tenant in Kellynch Hall, the Elliot estate. All the tension of the novel revolves around one question: Will Anne and Wentworth be reunited in their love?', '9780192802637', 'ENGLISH', 308, '1817-01-01', 'Persuasion', 9, 'https://d202m5krfqbpi5.cloudfront.net/books/1298411870l/2156.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (39, 'Tired of their servitude to man, a group of farm animals revolt and establish their own society, only to be betrayed into worse servitude by their leaders, the pigs, whose slogan becomes: “All animals are equal, but some animals are more equal than others.” Published in 1945, this powerful satire of the Russian Revolution under Stalin remains as vivid and relevant today as it was on its first publication.', '9780452284241', 'ENGLISH', 112, '1945-01-01', 'Animal Farm', 10, 'https://d202m5krfqbpi5.cloudfront.net/books/1327959366l/5472.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (40, 'Written in 1948, 1984 was <NAME>\'s chilling prophecy about the future. And while the year 1984 has come and gone, Orwell\'s narrative is timelier than ever. 1984 presents a startling and haunting vision of the world, so powerful that it is completely convincing from start to finish. No one can deny the power of this novel, its hold on the imaginations of multiple generations of readers, or the resiliency of its admonitions. A legacy that seems only to grow with the passage of time.', '9780451524935', 'ENGLISH', 328, '1949-01-01', '1984', 10, 'https://d202m5krfqbpi5.cloudfront.net/books/1348990566l/5470.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (41, '<NAME> Juliet is a tragedy written early in the career of playwright <NAME> about two young "star-cross\'d lovers" whose deaths ultimately unite their feuding families. It was among Shakespeare\'s most popular plays during his lifetime and, along with Hamlet and Macbeth, is one of his most frequently performed plays. Today, the title characters are regarded as archetypal young lovers.', '9780743477116', 'ENGLISH', 283, '1595-01-01', 'Romeo and Juliet', 11, 'https://d202m5krfqbpi5.cloudfront.net/books/1327872146l/18135.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (42, '"Hamlet" is the story of the Prince of Denmark who learns of the death of his father at the hands of his uncle, Claudius. Claudius murders Hamlet\'s father, his own brother, to take the throne of Denmark and to marry Hamlet\'s widowed mother. Hamlet is sunk into a state of great despair as a result of discovering the murder of his father and the infidelity of his mother. Hamlet is torn between his great sadness and his desire for the revenge of his father\'s murder.', '9780521618748', 'ENGLISH', 289, '1601-01-01', 'Hamlet', 11, 'https://d202m5krfqbpi5.cloudfront.net/books/1351051208l/1420.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (43, 'olger Shakespeare Library: the world\'s leading center for Shakespeare studies. Each edition includes: Freshly edited text based on the best early printed version of the play; full explanatory notes conveniently placed on pages facing the text of the play; Scene-BY-scene plot summaries; A KEY to famous lines and phrases; An introduction to reading Shakespeare\'s edition_language; An essay by an outstanding scholar providing a modern perspective on the play; Illustrations from the Folger Shakespeare Library\'s vast holdings of rare books; Essay by <NAME>; The Folger Shakespeare Library in Washington, D.C., is home to the world\'s largest collection of Shakespeare\'s printed works, and a magnet For Shakespeare scholars from around the globe. in addition to exhibitions OPEN to the PUBLIC throughout the YEAR, the Folger offers a full calendar of performances and programs.', '9780743477109', 'ENGLISH', 272, '1603-01-01', 'Macbeth', 11, 'https://d202m5krfqbpi5.cloudfront.net/books/1327866505l/8852.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (44, 'Shakespeare\'s intertwined love polygons begin to get complicated from the start--Demetrius and Lysander both want Hermia but she only has eyes for Lysander. Bad news is, Hermia\'s father wants Demetrius for a son-in-law. On the outside is Helena, whose unreturned love burns hot for Demetrius. Hermia and Lysander plan to flee from the city under cover of darkness but are pursued by an enraged Demetrius (who is himself pursued by an enraptured Helena). In the forest, unbeknownst to the mortals, Oberon and Titania (King and Queen of the faeries) are having a spat over a servant boy. The plot twists up when Oberon\'s head mischief-maker, Puck, runs loose with a flower which causes people to fall in love with the first thing they see upon waking. Throw in a group of labourers preparing a play for the Duke\'s wedding (one of whom is given a donkey\'s head and Titania for a lover by Puck) and the complications become fantastically funny.', '9780743477543', 'ENGLISH', 256, '1596-01-01', 'A Midsummer Night\'s Dream', 11, 'https://d202m5krfqbpi5.cloudfront.net/books/1327874534l/1622.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (45, 'Tragedy by <NAME>', '9780743477550', 'ENGLISH', 314, '1604-01-01', 'Othello', 11, 'https://d202m5krfqbpi5.cloudfront.net/books/1327871225l/12996.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (46, 'The action is set in Sicily, where <NAME>, Prince of Aragon, has recently defeated his half-brother, the bastard <NAME>, in a military engagement. Apparently reconciled, they return to the capital, Messina, as guests of the Governor, Leonato. There Count Claudio, a young nobleman serving in <NAME>\'s army, falls in love with Hero, Leonato\'s daughter, whom <NAME> woos on his behalf. The play\'s central plot shows how <NAME> maliciously deceives Claudio into believing that Hero has taken a lover on the eve of her marriage, causing Claudio to repudiate her publicly, at the altar.', '9780743482752', 'ENGLISH', 198, '1599-01-01', 'Much Ado About Nothing', 11, 'http://d202m5krfqbpi5.cloudfront.net/books/1327885569l/12957.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (47, 'Renowned as Shakespeare\'s most boisterous comedy, The Taming of the Shrew is the tale of two young men, the hopeful Lucentio and the worldly Petruchio, and the two sisters they meet in Padua. Lucentio falls in love with Bianca, the apparently ideal younger daughter of the wealthy Baptista Minola. But before they can marry, Bianca\'s formidable elder sister, Katherine, must be wed. Petruchio, interested only in the huge dowry, arranges to marry Katherine -against her will- and enters into a battle of the sexes that has endured as one of Shakespeare\'s most enjoyable works.', '9780743477574', 'ENGLISH', 304, '1590-01-01', 'The Taming of the Shrew', 11, 'https://d202m5krfqbpi5.cloudfront.net/books/1327935253l/47021.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (48, 'Through the story of the brilliant but conflicted young Raskolnikov and the murder he commits, <NAME> explores the theme of redemption through suffering. Crime and Punishment put Dostoevsky at the forefront of Russian writers when it appeared in 1866 and is now one of the most famous and influential novels in world literature. The poverty-stricken Raskolnikov, a talented student, devises a theory about extraordinary men being above the law, since in their brilliance they think “new thoughts” and so contribute to society. He then sets out to prove his theory by murdering a vile, cynical old pawnbroker and her sister. The act brings Raskolnikov into contact with his own buried conscience and with two characters — the deeply religious Sonia, who has endured great suffering, and Porfiry, the intelligent and discerning official who is charged with investigating the murder — BOTH of whom compel Raskolnikov to feel the split in his nature. Dostoevsky provides readers with a suspenseful, penetrating psychological analysis that goes beyond the crime — which in the course of the novel demands drastic punishment — to reveal something about the human condition: The more we intellectualize, the more imprisoned we become.', '9780143058144', 'ENGLISH', 480, '1866-01-01', 'Crime and Punishment', 12, 'https://d202m5krfqbpi5.cloudfront.net/books/1347560919l/7144.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (49, 'When brutal landowner <NAME> is murdered, the lives of his sons are changed irrevocably: Mitya is placed under suspicion, Ivan\'s mental tortures drive him to breakdown, Alyosha tries to heal the family\'s rifts, and there is always the shadow of their bastard half-brother, Smerdyakov.', '9780374528379', 'ENGLISH', 796, '1878-01-01', 'The Brothers Karamazov', 12, 'http://d202m5krfqbpi5.cloudfront.net/books/1327882764l/4934.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (50, 'Returning to Russia from a sanitarium in Switzerland, the Christ-like epileptic Prince Myshkin finds himself enmeshed in a tangle of love, torn between two women—the notorious kept woman Nastasya and the pure Aglaia—both involved, in turn, with the corrupt, money-hungry Ganya. In the end, Myshkin’s honesty, goodness, and integrity are shown to be unequal to the moral emptiness of those around him.', '9780679642428', 'ENGLISH', 720, '1868-01-01', 'The Idiot', 12, 'https://d202m5krfqbpi5.cloudfront.net/books/1327865902l/12505.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (51, 'Introducing one of the most famous characters in literature, <NAME> - the noble peasant imprisoned for stealing a loaf of bread - Les Misérables (1862) ranks among the greatest novels of all time. In it <NAME> takes readers deep into the Parisian underworld, immerses them in a battle between good and evil, and carries them onto the barricades during the uprising of 1832 with a breathtaking realism that is unsurpassed in modern prose. Within his dramatic story are themes that capture the intellect and the emotions: crime and punishment, the relentless persecution of Valjean by Inspector Javert, the desperation of the prostitute Fantine, the amorality of the rogue Thénardier and the universal desire to escape the prisons of our own minds. Les Misérables gave Victor Hugo a canvas upon which he portrayed his criticism of the French political and judicial systems, but the portrait which resulted is larger than life, epic in scope - an extravagant spectacle that dazzles the senses even as it touches the heart.', '9780451525260', 'ENGLISH', 1463, '1862-01-01', 'Les Misérables', 13, 'https://d202m5krfqbpi5.cloudfront.net/books/1327702573l/24280.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (52, 'In the vaulted Gothic towers of Notre-Dame lives Quasimodo, the hunchbacked bellringer. Mocked and shunned for his appearance, he is pitied only by Esmerelda, a beautiful gypsy dancer to whom he becomes completely devoted. Esmerelda, however, has also attracted the attention of the sinister archdeacon <NAME>, and when she rejects his lecherous approaches, Frollo hatches a plot to destroy her that only Quasimodo can prevent. <NAME>\'s sensational, evocative novel brings life to the medieval Paris he loved, and mourns its passing in one of the greatest historical romances of the nineteenth century.', '9780451527882', 'ENGLISH', 512, '1831-01-01', 'The Hunchback of Notre-Dame', 13, 'https://d202m5krfqbpi5.cloudfront.net/books/1168079239l/30597.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (53, '<NAME>\'s madcap farce about mistaken identities, secret engagements, and lovers entanglements still delights readers more than a century after its 1895 publication and premiere performance. The rapid-fire wit and eccentric characters of The Importance of Being Earnest have made it a mainstay of the high school curriculum for decades. <NAME> and <NAME> are BOTH in love with the same mythical suitor. <NAME> has wooed Gewndolen as Ernest while Algernon has also posed as Ernest to win the heart of Jack s ward, Cecily. when all four arrive at Jack s country home on the same weekend the "rivals" to fight For Ernest s undivided attention and the "Ernests" to claim their beloveds pandemonium breaks loose. only a senile nursemaid and an old, discarded hand-bag can save the DAY!', '9781580495806', 'ENGLISH', 76, '1895-01-01', 'The Importance of Being Earnest', 14, 'https://d202m5krfqbpi5.cloudfront.net/books/1298438452l/92303.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (54, 'Written in his distinctively dazzling manner, <NAME>’s story of a fashionable young man who sells his soul for eternal youth and beauty is the author’s most popular work. The tale of Dorian Gray’s moral disintegration caused a scandal when it ?rst appeared in 1890, but though Wilde was attacked for the novel’s corrupting in?uence, he responded that there is, in fact, “a terrible moral in Dorian Gray.” Just a few years later, the book and the aesthetic/moral dilemma it presented became issues in the trials occasioned by Wilde’s homosexual liaisons, which resulted in his imprisonment. Of Dorian Gray’s relationship to autobiography, Wilde noted in a letter, “Basil Hallward is what I think I am: L<NAME> what the world thinks me: Dorian what I would like to be—in other ages, perhaps.”', '9780375751516', 'ENGLISH', 254, '1890-06-20', 'The Picture of <NAME>', 14, 'https://d202m5krfqbpi5.cloudfront.net/books/1328399788l/12346651.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (55, 'A rich selection of background and source materials is provided in three areas: Contexts includes probable inspirations for Dracula in the earlier works of <NAME> and <NAME>. Also included are a discussion of Stoker\'s working notes for the novel and "Dracula\'s Guest," the original opening chapter to Dracula. Reviews and Reactions reprints five early reviews of the novel. "Dramatic and Film Variations" focuses on theater and film adaptations of Dracula, two indications of the novel\'s unwavering appeal. <NAME>, <NAME>, and <NAME> offer their varied perspectives. Checklists of both dramatic and film adaptations are included.', '9780393970128', 'ENGLISH', 488, '1897-01-01', 'Dracula', 15, 'https://d202m5krfqbpi5.cloudfront.net/books/1347251549l/17245.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (56, 'Awe and exhilaration—along with heartbreak and mordant wit—abound in Lolita, Nabokov\'s most famous and controversial novel, which tells the story of the aging Humbert Humbert\'s obsessive, devouring, and doomed passion for the nymphet <NAME>. Lolita is also the story of a hypercivilized European colliding with the cheerful barbarism of postwar America. Most of all, it is a meditation on love—love as outrage and hallucination, madness and transformation.', '9780141182537', 'ENGLISH', 378, '1955-01-01', 'Lolita', 16, 'https://d202m5krfqbpi5.cloudfront.net/books/1327871906l/7604.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (57, 'In their world frivolous liaisons are commonplace, but Anna and Vronsky’s consuming passion makes them a target for scorn and leads to Anna’s increasing isolation. The heartbreaking trajectory of their relationship contrasts sharply with the colorful swirl of friends and family members who surround them, especially the newlyweds Kitty and Levin, who forge a touching bond as they struggle to make a life together. <NAME> is a masterpiece not only because of the unforgettable woman at its core and the stark drama of her fate, but also because it explores and illuminates the deepest questions about how to live a fulfilled life.', '9780345803924', 'ENGLISH', 976, '1873-01-01', '<NAME>', 17, 'https://d202m5krfqbpi5.cloudfront.net/books/1352422904l/15823480.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (58, 'If life could write, it would write like Tolstoy.\' Isaac Babel Tolstoy\'s epic masterpiece intertwines the lives of private and public individuals during the time of the Napoleonic wars and the French invasion of Russia. The fortunes of the Rostovs and the Bolkonskys, of Pierre, Natasha, and Andrei, are intimately connected with the national history that is played out in parallel with their lives. Balls and soirees alternate with councils of war and the machinations of statesmen and generals, scenes of violent battles with everyday human passions in a work whose extraordinary imaginative power has never been surpassed. The prodigious cast of characters, both great and small, seem to act and move as if connected by threads of destiny as the novel relentlessly questions ideas of free will, fate, and providence. Yet Tolstoy\'s portrayal of marital relations and scenes of domesticity is as truthful and poignant as the grand themes that underlie them. In this revised and updated version of the definitive and highly acclaimed Maude translation, Tolstoy\'s genius and the power of his prose are made newly available to the contemporary reader.', '9780192833983', 'ENGLISH', 1392, '1865-01-01', 'War and Peace', 17, 'https://d202m5krfqbpi5.cloudfront.net/books/1366570580l/656.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (59, 'Set in the far future amidst a sprawling feudal interstellar empire where planetary dynasties are controlled by noble houses that owe an allegiance to the imperial House Corrino, Dune tells the story of young Paul Atreides (the heir apparent to Duke Leto Atreides and heir of House Atreides) as he and his family accept control of the desert planet Arrakis, the only source of the "spice" melange, the most important and valuable substance in the universe. The story explores the complex and multi-layered interactions of politics, religion, ecology, technology, and human emotion, as the forces of the empire confront each other for control of Arrakis and its "spice".', '9780340839935', 'ENGLISH', 608, '1965-01-01', 'Dune', 18, 'https://d202m5krfqbpi5.cloudfront.net/books/1349105964l/234225.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (60, '<NAME> continues the story of the man Muad\'dib, heir to a power unimaginable, bringing to completion the centuries-old scheme to create a super-being.', '9780441172696', 'ENGLISH', 331, '1969-01-01', '<NAME>', 18, 'https://d202m5krfqbpi5.cloudfront.net/books/1347771287l/106.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (61, 'The desert planet of Arrakis has begun to grow green and lush. The life-giving spice is abundant. The nine-year-old royal twins, possesing their father\'s supernatural powers, are being groomed as Messiahs. But there are those who think the Imperium does not need messiahs...', '9780441104024', 'ENGLISH', 408, '1976-01-01', 'Children of Dune', 18, 'https://d202m5krfqbpi5.cloudfront.net/books/1348092992l/112.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (62, 'More than three thousand years have passed since the first events recorded in Dune. Only one link survives with those tumultuous times: the grotesque figure of <NAME>, son of the prophet <NAME>, and now the virtually immortal God Emperor of Dune. He alone understands the future, and he knows with a terrible certainty that the evolution of his race is at an end unless he can breed new qualities into his species. But to achieve his final victory, Let<NAME> must also bring about his own downfall...', '9780575075061', 'ENGLISH', 454, '1981-01-01', 'God Emperor of Dune', 18, 'https://d202m5krfqbpi5.cloudfront.net/books/1327131560l/42432.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (63, 'With more than ten million copies sold, <NAME>\'s magnificent Dune books stand among the major achievements of the human imagination. In this, the fifth and most spectacular Dune book of all, the planet Arrakis--now called Rakis--is becoming desert again. The Lost Ones are returning home from the far reaches of space. The great sandworms are dying. And the children of Dune\'s children awaken from empire as from a dream, wielding the new power of a heresy called love...', '9780441328000', 'ENGLISH', 480, '1984-01-01', 'Heretics of Dune', 18, 'https://d202m5krfqbpi5.cloudfront.net/books/1348775806l/117.jpg'); INSERT into BOOK (id, description, isbn, edition_language, pages, year, title, author_id, img_large) VALUES (64, 'The desert planet Arrakis, called Dune, has been destroyed. Now, the B<NAME>it, heirs to Dune\'s power, have colonized a green world--and are turning it into a desert, mile by scorched mile. Here is the LAST book <NAME> wrote before his death. A stunning climax to the epic Dune legend that will live on forever...', '9780441102679', 'ENGLISH', 448, '1985-01-01', 'Chapterhouse: Dune', 18, 'http://d202m5krfqbpi5.cloudfront.net/books/1260954505l/105.jpg'); -- GENRES INSERT INTO GENRE(id, bookGenre) VALUES (1, 'Art'); INSERT INTO GENRE(id, bookGenre) VALUES (2, 'Biography'); INSERT INTO GENRE(id, bookGenre) VALUES (3, 'Business'); INSERT INTO GENRE(id, bookGenre) VALUES (4, 'Contemporary'); INSERT INTO GENRE(id, bookGenre) VALUES (5, 'Crime'); INSERT INTO GENRE(id, bookGenre) VALUES (6, 'Erotica'); INSERT INTO GENRE(id, bookGenre) VALUES (7, 'Fantasy'); INSERT INTO GENRE(id, bookGenre) VALUES (8, 'General Fiction'); INSERT INTO GENRE(id, bookGenre) VALUES (9, 'Graphic Novel'); INSERT INTO GENRE(id, bookGenre) VALUES (10, 'Humor'); INSERT INTO GENRE(id, bookGenre) VALUES (11, 'Mystery'); INSERT INTO GENRE(id, bookGenre) VALUES (12, 'Religious'); INSERT INTO GENRE(id, bookGenre) VALUES (13, 'Inspirational'); INSERT INTO GENRE(id, bookGenre) VALUES (14, 'Romance'); INSERT INTO GENRE(id, bookGenre) VALUES (15, 'Science Fiction'); INSERT INTO GENRE(id, bookGenre) VALUES (16, 'Thriller'); INSERT INTO GENRE(id, bookGenre) VALUES (17, 'Western'); INSERT INTO GENRE(id, bookGenre) VALUES (18, 'Young Adult'); INSERT INTO GENRE(id, bookGenre) VALUES (19, 'Psychology'); INSERT INTO GENRE(id, bookGenre) VALUES (20, 'Relationships and Dating'); INSERT INTO GENRE(id, bookGenre) VALUES (21, 'Self Help'); INSERT INTO GENRE(id, bookGenre) VALUES (22, 'Sports'); INSERT INTO GENRE(id, bookGenre) VALUES (23, 'Travel'); -- BOOK_GENRES INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(1, 1); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(1, 2); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(1, 3); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(1, 4); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(1, 5); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(1, 6); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(1, 7); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(1, 8); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(1, 9); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(1, 10); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(1, 11); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(5, 2); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(6, 3); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(15, 3); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(23, 4); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(7, 40); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(13, 25); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(13, 26); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(15, 50); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(19, 60); INSERT INTO BOOK_GENRES(GENRE_ID, BOOK_ID) VALUES(20, 61); -- CUSTOMERS INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (1, '<EMAIL>', null, null, '<PASSWORD>', 'gigi'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (2, '<EMAIL>', null, null, '5994471abb01112afcc1815<PASSWORD>b4f<PASSWORD>b99806da59b3caf5a9c<PASSWORD>cacfc5', 'vasile1'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (3, '<EMAIL>', null, null, '5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5', 'vasile2'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (4, '<EMAIL>', null, null, '5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5', 'vas<PASSWORD>3'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (5, '<EMAIL>', null, null, '5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5', 'vas<PASSWORD>'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (6, '<EMAIL>', null, null, '5994471abb01112afcc1815<PASSWORD>cc<PASSWORD>', 'vas<PASSWORD>5'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (7, '<EMAIL>', null, null, '<PASSWORD>', 'vas<PASSWORD>'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (8, '<EMAIL>', null, null, '5994471abb01112afcc18159f<PASSWORD>c<PASSWORD>', 'vasile7'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (9, '<EMAIL>', null, null, '5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5', 'vasile8'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (10, '<EMAIL>', null, null, '5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5', 'vasile9'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (11, '<EMAIL>', null, null, '5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5', 'vasile10'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (12, '<EMAIL>', null, null, '5994471abb01112afcc18159f6cc74b4f511b9980<PASSWORD>9b3caf<PASSWORD>fc5', 'vasile11'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (13, '<EMAIL>', null, null, '<PASSWORD>', 'vasile12'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (14, '<EMAIL>', null, null, '5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5', 'vasile13'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (15, '<EMAIL>', null, null, '5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5', 'admin'); INSERT INTO CUSTOMER(id, email_address, firstname, lastname, password, username) VALUES (16, '<EMAIL>', null, null, '5994471abb01112afcc18159f6cc74b4f511b99806da59b3caf5a9c173cacfc5', 'user'); INSERT INTO ROLE(id, role) VALUES(1, 'ADMIN'); INSERT INTO ROLE(id, role) VALUES(2, 'USER'); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(1, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(2, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(3, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(4, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(5, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(6, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(7, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(8, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(9, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(10, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(11, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(12, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(13, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(14, 2); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(15, 1); INSERT INTO CUSTOMER_ROLE (customer_id, role_id) VALUES(16, 2); -- REVIEW INSERT INTO REVIEW(id, rating, publish_date, comment, book_id, customer_id) VALUES(1, 5, '2007-01-01', 'Great book', 1, 1); INSERT INTO REVIEW(id, rating, publish_date, comment, book_id, customer_id) VALUES(2, 3, '2009-02-01', 'Great book', 1, 2); INSERT INTO REVIEW(id, rating, publish_date, comment, book_id, customer_id) VALUES(3, 2, '2013-08-14', 'Great book', 1, 3); INSERT INTO REVIEW(id, rating, publish_date, comment, book_id, customer_id) VALUES(4, 1, '2013-09-30', 'Great book', 1, 4); INSERT INTO REVIEW(id, rating, publish_date, comment, book_id, customer_id) VALUES(5, 5, '2013-09-30', 'Great book', 1, 5); INSERT INTO REVIEW(id, rating, publish_date, comment, book_id, customer_id) VALUES(6, 5, '2013-09-30', 'Great book', 1, 6); INSERT INTO REVIEW(id, rating, publish_date, comment, book_id, customer_id) VALUES(7, 4, '2013-09-30', 'Great book', 1, 7); INSERT INTO REVIEW(id, rating, publish_date, comment, book_id, customer_id) VALUES(8, 2, '2013-09-30', 'Great book', 1, 8); INSERT INTO REVIEW(id, rating, publish_date, comment, book_id, customer_id) VALUES(9, 3, '2013-09-30', 'Great book', 1, 9); INSERT INTO REVIEW(id, rating, publish_date, comment, book_id, customer_id) VALUES(10, 1, '2013-09-30', 'Great book', 1, 10); INSERT INTO REVIEW(id, rating, publish_date, comment, book_id, customer_id) VALUES(11, 2, '2013-09-30', 'Great book', 1, 11); INSERT INTO REVIEW(id, rating, publish_date, comment, book_id, customer_id) VALUES(12, 4, '2013-09-30', 'Great book', 1, 12); INSERT INTO REVIEW(id, rating, publish_date, comment, book_id, customer_id) VALUES(13, 5, '2013-09-30', 'Great book', 2, 2); commit;
<filename>assets/docs/projeto.sql -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.4.11-MariaDB - mariadb.org binary distribution -- Server OS: Win64 -- HeidiSQL Version: 11.0.0.5919 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!50503 SET NAMES utf8mb4 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- Dumping database structure for prospects CREATE DATABASE IF NOT EXISTS `prospects` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `prospects`; -- Dumping structure for table prospects.historico_acoes CREATE TABLE IF NOT EXISTS `historico_acoes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `acao` text NOT NULL, `data_acao` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=175 DEFAULT CHARSET=latin1; -- Data exporting was unselected. -- Dumping structure for procedure prospects.ListarCopiasProspectsInseridos DELIMITER // CREATE PROCEDURE `ListarCopiasProspectsInseridos`() COMMENT 'Listagem da cópia de prospects inseridos' BEGIN SELECT ProspectCopy.*, Setor.nome AS nomeSetor FROM prospect_copy AS ProspectCopy LEFT JOIN setor AS Setor ON Setor.id = ProspectCopy.setor_id ORDER BY ProspectCopy.data_insercao DESC; END// DELIMITER ; -- Dumping structure for table prospects.prospects CREATE TABLE IF NOT EXISTS `prospects` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nome` varchar(100) NOT NULL, `contatos` text NOT NULL, `setor_id` int(11) NOT NULL, `acao_id` int(11) NOT NULL, `data_insercao` datetime NOT NULL, `data_proxima_acao` datetime NOT NULL, PRIMARY KEY (`id`), KEY `setor_id` (`setor_id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; -- Data exporting was unselected. -- Dumping structure for table prospects.prospect_copy CREATE TABLE IF NOT EXISTS `prospect_copy` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nome` varchar(100) NOT NULL, `contatos` text NOT NULL, `setor_id` int(11) NOT NULL, `acao_id` int(11) NOT NULL, `data_insercao` datetime NOT NULL, `data_proxima_acao` datetime NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; -- Data exporting was unselected. -- Dumping structure for table prospects.setor CREATE TABLE IF NOT EXISTS `setor` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nome` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1; -- Data exporting was unselected. -- Dumping structure for table prospects.usuario CREATE TABLE IF NOT EXISTS `usuario` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nome` text NOT NULL, `email` text NOT NULL, `senha` text NOT NULL, `ativo` tinyint(1) NOT NULL DEFAULT 1, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=47 DEFAULT CHARSET=latin1; -- Data exporting was unselected. -- Dumping structure for trigger prospects.prospects_after_insert SET @OLDTMP_SQL_MODE=@@SQL_MODE, SQL_MODE=''; DELIMITER // CREATE TRIGGER `prospects_after_insert` AFTER INSERT ON `prospects` FOR EACH ROW BEGIN INSERT INTO prospect_copy SET prospect_copy.id = NEW.id, prospect_copy.nome = NEW.nome, prospect_copy.contatos = NEW.contatos, prospect_copy.setor_id = NEW.setor_id, prospect_copy.acao_id = NEW.acao_id, prospect_copy.data_insercao = NEW.data_insercao, prospect_copy.data_proxima_acao = NEW.data_proxima_acao; END// DELIMITER ; SET SQL_MODE=@OLDTMP_SQL_MODE; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
<filename>GRA.Database/dbo/Tables/RegistrationSettings.sql CREATE TABLE [dbo].[RegistrationSettings] ( [RID] INT IDENTITY (1, 1) NOT NULL, [Literacy1Label] VARCHAR (50) CONSTRAINT [DF_RegistrationSettings_Literacy1Label] DEFAULT ('AR Level') NULL, [Literacy2Label] VARCHAR (50) CONSTRAINT [DF_RegistrationSettings_Literacy2Label] DEFAULT ('Lexile Level') NULL, [DOB_Prompt] BIT NULL, [Age_Prompt] BIT NULL, [SchoolGrade_Prompt] BIT NULL, [FirstName_Prompt] BIT NULL, [MiddleName_Prompt] BIT NULL, [LastName_Prompt] BIT NULL, [Gender_Prompt] BIT NULL, [EmailAddress_Prompt] BIT NULL, [PhoneNumber_Prompt] BIT NULL, [StreetAddress1_Prompt] BIT NULL, [StreetAddress2_Prompt] BIT NULL, [City_Prompt] BIT NULL, [State_Prompt] BIT NULL, [ZipCode_Prompt] BIT NULL, [Country_Prompt] BIT NULL, [County_Prompt] BIT NULL, [ParentGuardianFirstName_Prompt] BIT NULL, [ParentGuardianLastName_Prompt] BIT NULL, [ParentGuardianMiddleName_Prompt] BIT NULL, [PrimaryLibrary_Prompt] BIT NULL, [LibraryCard_Prompt] BIT NULL, [SchoolName_Prompt] BIT NULL, [District_Prompt] BIT NULL, [Teacher_Prompt] BIT NULL, [GroupTeamName_Prompt] BIT NULL, [SchoolType_Prompt] BIT NULL, [LiteracyLevel1_Prompt] BIT NULL, [LiteracyLevel2_Prompt] BIT NULL, [ParentPermFlag_Prompt] BIT NULL, [Over18Flag_Prompt] BIT NULL, [ShareFlag_Prompt] BIT NULL, [TermsOfUseflag_Prompt] BIT NULL, [Custom1_Prompt] BIT NULL, [Custom2_Prompt] BIT NULL, [Custom3_Prompt] BIT NULL, [Custom4_Prompt] BIT NULL, [Custom5_Prompt] BIT NULL, [DOB_Req] BIT NULL, [Age_Req] BIT NULL, [SchoolGrade_Req] BIT NULL, [FirstName_Req] BIT NULL, [MiddleName_Req] BIT NULL, [LastName_Req] BIT NULL, [Gender_Req] BIT NULL, [EmailAddress_Req] BIT NULL, [PhoneNumber_Req] BIT NULL, [StreetAddress1_Req] BIT NULL, [StreetAddress2_Req] BIT NULL, [City_Req] BIT NULL, [State_Req] BIT NULL, [ZipCode_Req] BIT NULL, [Country_Req] BIT NULL, [County_Req] BIT NULL, [ParentGuardianFirstName_Req] BIT NULL, [ParentGuardianLastName_Req] BIT NULL, [ParentGuardianMiddleName_Req] BIT NULL, [PrimaryLibrary_Req] BIT NULL, [LibraryCard_Req] BIT NULL, [SchoolName_Req] BIT NULL, [District_Req] BIT NULL, [Teacher_Req] BIT NULL, [GroupTeamName_Req] BIT NULL, [SchoolType_Req] BIT NULL, [LiteracyLevel1_Req] BIT NULL, [LiteracyLevel2_Req] BIT NULL, [ParentPermFlag_Req] BIT NULL, [Over18Flag_Req] BIT NULL, [ShareFlag_Req] BIT NULL, [TermsOfUseflag_Req] BIT NULL, [Custom1_Req] BIT NULL, [Custom2_Req] BIT NULL, [Custom3_Req] BIT NULL, [Custom4_Req] BIT NULL, [Custom5_Req] BIT NULL, [DOB_Show] BIT NULL, [Age_Show] BIT NULL, [SchoolGrade_Show] BIT NULL, [FirstName_Show] BIT NULL, [MiddleName_Show] BIT NULL, [LastName_Show] BIT NULL, [Gender_Show] BIT NULL, [EmailAddress_Show] BIT NULL, [PhoneNumber_Show] BIT NULL, [StreetAddress1_Show] BIT NULL, [StreetAddress2_Show] BIT NULL, [City_Show] BIT NULL, [State_Show] BIT NULL, [ZipCode_Show] BIT NULL, [Country_Show] BIT NULL, [County_Show] BIT NULL, [ParentGuardianFirstName_Show] BIT NULL, [ParentGuardianLastName_Show] BIT NULL, [ParentGuardianMiddleName_Show] BIT NULL, [PrimaryLibrary_Show] BIT NULL, [LibraryCard_Show] BIT NULL, [SchoolName_Show] BIT NULL, [District_Show] BIT NULL, [Teacher_Show] BIT NULL, [GroupTeamName_Show] BIT NULL, [SchoolType_Show] BIT NULL, [LiteracyLevel1_Show] BIT NULL, [LiteracyLevel2_Show] BIT NULL, [ParentPermFlag_Show] BIT NULL, [Over18Flag_Show] BIT NULL, [ShareFlag_Show] BIT NULL, [TermsOfUseflag_Show] BIT NULL, [Custom1_Show] BIT NULL, [Custom2_Show] BIT NULL, [Custom3_Show] BIT NULL, [Custom4_Show] BIT NULL, [Custom5_Show] BIT NULL, [DOB_Edit] BIT NULL, [Age_Edit] BIT NULL, [SchoolGrade_Edit] BIT NULL, [FirstName_Edit] BIT NULL, [MiddleName_Edit] BIT NULL, [LastName_Edit] BIT NULL, [Gender_Edit] BIT NULL, [EmailAddress_Edit] BIT NULL, [PhoneNumber_Edit] BIT NULL, [StreetAddress1_Edit] BIT NULL, [StreetAddress2_Edit] BIT NULL, [City_Edit] BIT NULL, [State_Edit] BIT NULL, [ZipCode_Edit] BIT NULL, [Country_Edit] BIT NULL, [County_Edit] BIT NULL, [ParentGuardianFirstName_Edit] BIT NULL, [ParentGuardianLastName_Edit] BIT NULL, [ParentGuardianMiddleName_Edit] BIT NULL, [PrimaryLibrary_Edit] BIT NULL, [LibraryCard_Edit] BIT NULL, [SchoolName_Edit] BIT NULL, [District_Edit] BIT NULL, [Teacher_Edit] BIT NULL, [GroupTeamName_Edit] BIT NULL, [SchoolType_Edit] BIT NULL, [LiteracyLevel1_Edit] BIT NULL, [LiteracyLevel2_Edit] BIT NULL, [ParentPermFlag_Edit] BIT NULL, [Over18Flag_Edit] BIT NULL, [ShareFlag_Edit] BIT NULL, [TermsOfUseflag_Edit] BIT NULL, [Custom1_Edit] BIT NULL, [Custom2_Edit] BIT NULL, [Custom3_Edit] BIT NULL, [Custom4_Edit] BIT NULL, [Custom5_Edit] BIT NULL, [LastModDate] DATETIME CONSTRAINT [DF_RegistrationSettings_LastModDate] DEFAULT (getdate()) NULL, [LastModUser] VARCHAR (50) CONSTRAINT [DF_RegistrationSettings_LastModUser] DEFAULT ('N/A') NULL, [AddedDate] DATETIME CONSTRAINT [DF_RegistrationSettings_AddedDate] DEFAULT (getdate()) NULL, [AddedUser] VARCHAR (50) CONSTRAINT [DF_RegistrationSettings_AddedUser] DEFAULT ('N/A') NULL, [SDistrict_Prompt] BIT NULL, [SDistrict_Req] BIT NULL, [SDistrict_Show] BIT NULL, [SDistrict_Edit] BIT NULL, [Goal_Prompt] BIT NULL, [Goal_Req] BIT NULL, [Goal_Show] BIT NULL, [Goal_Edit] BIT NULL, [TenID] INT NULL, [FldInt1] INT NULL, [FldInt2] INT NULL, [FldInt3] INT NULL, [FldBit1] BIT NULL, [FldBit2] BIT NULL, [FldBit3] BIT NULL, [FldText1] TEXT NULL, [FldText2] TEXT NULL, [FldText3] TEXT NULL, CONSTRAINT [PK_RegistrationSettings] PRIMARY KEY CLUSTERED ([RID] ASC) );
-- #!mysql -- #{ xialotecon.bank -- #{ interest -- # { init -- # { constant_ratio CREATE TABLE IF NOT EXISTS bank_interest_constant_ratio ( interestId CHAR(34) PRIMARY KEY, accountId CHAR(34) NOT NULL, ratio DOUBLE, period DOUBLE, lastApplied TIMESTAMP DEFAULT CURRENT_TIMESTAMP, KEY (accountId), FOREIGN KEY (accountId) REFERENCES accounts (accountId) ON DELETE CASCADE ); -- # } -- # { constant_diff CREATE TABLE IF NOT EXISTS bank_interest_constant_diff ( interestId CHAR(34) PRIMARY KEY, accountId CHAR(34) NOT NULL, diff DECIMAL(20,5), period DOUBLE, lastApplied TIMESTAMP DEFAULT CURRENT_TIMESTAMP, KEY (accountId), FOREIGN KEY (accountId) REFERENCES accounts (accountId) ON DELETE CASCADE ); -- # } -- # } -- # { insert -- # { constant_ratio -- # :interestId string -- # :accountId string -- # :ratio float -- # :period float INSERT INTO bank_interest_constant_ratio (interestId, accountId, ratio, period) VALUES (:interestId, :accountId, :ratio, :period); -- # } -- # { constant_diff -- # :interestId string -- # :accountId string -- # :diff float -- # :period float INSERT INTO bank_interest_constant_diff (interestId, accountId, diff, period) VALUES (:interestId, :accountId, :diff, :period); -- # } -- # } -- # { update -- # { constant_ratio -- # :interestId string -- # :ratio float -- # :period float -- # :lastApplied timestamp UPDATE bank_interest_constant_ratio SET ratio = :ratio, period = :period, lastApplied = :lastApplied WHERE interestId = :interestId; -- # } -- # { constant_diff -- # :interestId string -- # :diff float -- # :period float -- # :lastApplied timestamp UPDATE bank_interest_constant_diff SET diff = :diff, period = :period, lastApplied = :lastApplied WHERE interestId = :interestId; -- # } -- # } -- # { find.by_account -- # { constant_ratio -- # :accountId string SELECT interestId, ratio, period, lastApplied FROM bank_interest_constant_ratio WHERE accountId = :accountId; -- # } -- # { constant_diff -- # :accountId string SELECT interestId, diff, period, lastApplied FROM bank_interest_constant_diff WHERE accountId = :accountId; -- # } -- # } -- # { find.by_xoid -- # { constant_ratio -- # :interestId string SELECT accountId, ratio, period, lastApplied FROM bank_interest_constant_ratio WHERE interestId = :interestId; -- # } -- # { constant_diff -- # :interestId string SELECT accountId, diff, period, lastApplied FROM bank_interest_constant_diff WHERE interestId = :interestId; -- # } -- # } -- #} -- #}
<gh_stars>1-10 INSERT INTO city (id, name, departmentId) VALUES (5001, 'Medellín', 5); INSERT INTO city (id, name, departmentId) VALUES (5002, 'Abejorral', 5); INSERT INTO city (id, name, departmentId) VALUES (5004, 'Abriaquí', 5); INSERT INTO city (id, name, departmentId) VALUES (5021, 'Alejandría', 5); INSERT INTO city (id, name, departmentId) VALUES (5030, 'Amagá', 5); INSERT INTO city (id, name, departmentId) VALUES (5031, 'Amalfi', 5); INSERT INTO city (id, name, departmentId) VALUES (5034, 'Andes', 5); INSERT INTO city (id, name, departmentId) VALUES (5036, 'Angelópolis', 5); INSERT INTO city (id, name, departmentId) VALUES (5038, 'Angostura', 5); INSERT INTO city (id, name, departmentId) VALUES (5040, 'Anorí', 5); INSERT INTO city (id, name, departmentId) VALUES (5042, 'Santafé de Antioquia', 5); INSERT INTO city (id, name, departmentId) VALUES (5044, 'Anza', 5); INSERT INTO city (id, name, departmentId) VALUES (5045, 'Apartadó', 5); INSERT INTO city (id, name, departmentId) VALUES (5051, 'Arboletes', 5); INSERT INTO city (id, name, departmentId) VALUES (5055, 'Argelia', 5); INSERT INTO city (id, name, departmentId) VALUES (5059, 'Armenia', 5); INSERT INTO city (id, name, departmentId) VALUES (5079, 'Barbosa', 5); INSERT INTO city (id, name, departmentId) VALUES (5086, 'Belmira', 5); INSERT INTO city (id, name, departmentId) VALUES (5088, 'Bello', 5); INSERT INTO city (id, name, departmentId) VALUES (5091, 'Betania', 5); INSERT INTO city (id, name, departmentId) VALUES (5093, 'Betulia', 5); INSERT INTO city (id, name, departmentId) VALUES (5101, 'Ciudad Bolívar', 5); INSERT INTO city (id, name, departmentId) VALUES (5107, 'Briceño', 5); INSERT INTO city (id, name, departmentId) VALUES (5113, 'Buriticá', 5); INSERT INTO city (id, name, departmentId) VALUES (5120, 'Cáceres', 5); INSERT INTO city (id, name, departmentId) VALUES (5125, 'Caicedo', 5); INSERT INTO city (id, name, departmentId) VALUES (5129, 'Caldas', 5); INSERT INTO city (id, name, departmentId) VALUES (5134, 'Campamento', 5); INSERT INTO city (id, name, departmentId) VALUES (5138, 'Cañasgordas', 5); INSERT INTO city (id, name, departmentId) VALUES (5142, 'Caracolí', 5); INSERT INTO city (id, name, departmentId) VALUES (5145, 'Caramanta', 5); INSERT INTO city (id, name, departmentId) VALUES (5147, 'Carepa', 5); INSERT INTO city (id, name, departmentId) VALUES (5148, 'El Carmen de Viboral', 5); INSERT INTO city (id, name, departmentId) VALUES (5150, 'Carolina', 5); INSERT INTO city (id, name, departmentId) VALUES (5154, 'Caucasia', 5); INSERT INTO city (id, name, departmentId) VALUES (5172, 'Chigorodó', 5); INSERT INTO city (id, name, departmentId) VALUES (5190, 'Cisneros', 5); INSERT INTO city (id, name, departmentId) VALUES (5197, 'Cocorná', 5); INSERT INTO city (id, name, departmentId) VALUES (5206, 'Concepción', 5); INSERT INTO city (id, name, departmentId) VALUES (5209, 'Concordia', 5); INSERT INTO city (id, name, departmentId) VALUES (5212, 'Copacabana', 5); INSERT INTO city (id, name, departmentId) VALUES (5234, 'Dabeiba', 5); INSERT INTO city (id, name, departmentId) VALUES (5237, '<NAME>', 5); INSERT INTO city (id, name, departmentId) VALUES (5240, 'Ebéjico', 5); INSERT INTO city (id, name, departmentId) VALUES (5250, 'El Bagre', 5); INSERT INTO city (id, name, departmentId) VALUES (5264, 'Entrerrios', 5); INSERT INTO city (id, name, departmentId) VALUES (5266, 'Envigado', 5); INSERT INTO city (id, name, departmentId) VALUES (5282, 'Fredonia', 5); INSERT INTO city (id, name, departmentId) VALUES (5284, 'Frontino', 5); INSERT INTO city (id, name, departmentId) VALUES (5306, 'Giraldo', 5); INSERT INTO city (id, name, departmentId) VALUES (5308, 'Girardota', 5); INSERT INTO city (id, name, departmentId) VALUES (5310, 'Gómez Plata', 5); INSERT INTO city (id, name, departmentId) VALUES (5313, 'Granada', 5); INSERT INTO city (id, name, departmentId) VALUES (5315, 'Guadalupe', 5); INSERT INTO city (id, name, departmentId) VALUES (5318, 'Guarne', 5); INSERT INTO city (id, name, departmentId) VALUES (5321, 'Guatapé', 5); INSERT INTO city (id, name, departmentId) VALUES (5347, 'Heliconia', 5); INSERT INTO city (id, name, departmentId) VALUES (5353, 'Hispania', 5); INSERT INTO city (id, name, departmentId) VALUES (5360, 'Itagui', 5); INSERT INTO city (id, name, departmentId) VALUES (5361, 'Ituango', 5); INSERT INTO city (id, name, departmentId) VALUES (5364, 'Jardín', 5); INSERT INTO city (id, name, departmentId) VALUES (5368, 'Jericó', 5); INSERT INTO city (id, name, departmentId) VALUES (5376, 'La Ceja', 5); INSERT INTO city (id, name, departmentId) VALUES (5380, 'La Estrella', 5); INSERT INTO city (id, name, departmentId) VALUES (5390, 'La Pintada', 5); INSERT INTO city (id, name, departmentId) VALUES (5400, 'La Unión', 5); INSERT INTO city (id, name, departmentId) VALUES (5411, 'Liborina', 5); INSERT INTO city (id, name, departmentId) VALUES (5425, 'Maceo', 5); INSERT INTO city (id, name, departmentId) VALUES (5440, 'Marinilla', 5); INSERT INTO city (id, name, departmentId) VALUES (5467, 'Montebello', 5); INSERT INTO city (id, name, departmentId) VALUES (5475, 'Murindó', 5); INSERT INTO city (id, name, departmentId) VALUES (5480, 'Mutatá', 5); INSERT INTO city (id, name, departmentId) VALUES (5483, 'Nariño', 5); INSERT INTO city (id, name, departmentId) VALUES (5490, 'Necoclí', 5); INSERT INTO city (id, name, departmentId) VALUES (5495, 'Nechí', 5); INSERT INTO city (id, name, departmentId) VALUES (5501, 'Olaya', 5); INSERT INTO city (id, name, departmentId) VALUES (5541, 'Peñol', 5); INSERT INTO city (id, name, departmentId) VALUES (5543, 'Peque', 5); INSERT INTO city (id, name, departmentId) VALUES (5576, 'Pueblorrico', 5); INSERT INTO city (id, name, departmentId) VALUES (5579, 'Puerto Berrío', 5); INSERT INTO city (id, name, departmentId) VALUES (5585, 'Puerto Nare', 5); INSERT INTO city (id, name, departmentId) VALUES (5591, 'Puerto Triunfo', 5); INSERT INTO city (id, name, departmentId) VALUES (5604, 'Remedios', 5); INSERT INTO city (id, name, departmentId) VALUES (5607, 'Retiro', 5); INSERT INTO city (id, name, departmentId) VALUES (5615, 'Rionegro', 5); INSERT INTO city (id, name, departmentId) VALUES (5628, 'Sabanalarga', 5); INSERT INTO city (id, name, departmentId) VALUES (5631, 'Sabaneta', 5); INSERT INTO city (id, name, departmentId) VALUES (5642, 'Salgar', 5); INSERT INTO city (id, name, departmentId) VALUES (5647, 'San Andrés de Cuerquía', 5); INSERT INTO city (id, name, departmentId) VALUES (5649, 'San Carlos', 5); INSERT INTO city (id, name, departmentId) VALUES (5652, 'San Francisco', 5); INSERT INTO city (id, name, departmentId) VALUES (5656, 'San Jerónimo', 5); INSERT INTO city (id, name, departmentId) VALUES (5658, 'San José de La Montaña', 5); INSERT INTO city (id, name, departmentId) VALUES (5659, 'San Juan de Urabá', 5); INSERT INTO city (id, name, departmentId) VALUES (5660, 'San Luis', 5); INSERT INTO city (id, name, departmentId) VALUES (5664, 'San Pedro', 5); INSERT INTO city (id, name, departmentId) VALUES (5665, 'San Pedro de Uraba', 5); INSERT INTO city (id, name, departmentId) VALUES (5667, 'San Rafael', 5); INSERT INTO city (id, name, departmentId) VALUES (5670, 'San Roque', 5); INSERT INTO city (id, name, departmentId) VALUES (5674, 'San Vicente', 5); INSERT INTO city (id, name, departmentId) VALUES (5679, 'Santa Bárbara', 5); INSERT INTO city (id, name, departmentId) VALUES (5686, 'Santa Rosa de Osos', 5); INSERT INTO city (id, name, departmentId) VALUES (5690, 'Santo Domingo', 5); INSERT INTO city (id, name, departmentId) VALUES (5697, 'El Santuario', 5); INSERT INTO city (id, name, departmentId) VALUES (5736, 'Segovia', 5); INSERT INTO city (id, name, departmentId) VALUES (5756, 'Sonsón', 5); INSERT INTO city (id, name, departmentId) VALUES (5761, 'Sopetrán', 5); INSERT INTO city (id, name, departmentId) VALUES (5789, 'Támesis', 5); INSERT INTO city (id, name, departmentId) VALUES (5790, 'Tarazá', 5); INSERT INTO city (id, name, departmentId) VALUES (5792, 'Tarso', 5); INSERT INTO city (id, name, departmentId) VALUES (5809, 'Titiribí', 5); INSERT INTO city (id, name, departmentId) VALUES (5819, 'Toledo', 5); INSERT INTO city (id, name, departmentId) VALUES (5837, 'Turbo', 5); INSERT INTO city (id, name, departmentId) VALUES (5842, 'Uramita', 5); INSERT INTO city (id, name, departmentId) VALUES (5847, 'Urrao', 5); INSERT INTO city (id, name, departmentId) VALUES (5854, 'Valdivia', 5); INSERT INTO city (id, name, departmentId) VALUES (5856, 'Valparaíso', 5); INSERT INTO city (id, name, departmentId) VALUES (5858, 'Vegachí', 5); INSERT INTO city (id, name, departmentId) VALUES (5861, 'Venecia', 5); INSERT INTO city (id, name, departmentId) VALUES (5873, 'Vigía del Fuerte', 5); INSERT INTO city (id, name, departmentId) VALUES (5885, 'Yalí', 5); INSERT INTO city (id, name, departmentId) VALUES (5887, 'Yarumal', 5); INSERT INTO city (id, name, departmentId) VALUES (5890, 'Yolombó', 5); INSERT INTO city (id, name, departmentId) VALUES (5893, 'Yondó', 5); INSERT INTO city (id, name, departmentId) VALUES (5895, 'Zaragoza', 5); INSERT INTO city (id, name, departmentId) VALUES (8001, 'Barranquilla', 8); INSERT INTO city (id, name, departmentId) VALUES (8078, 'Baranoa', 8); INSERT INTO city (id, name, departmentId) VALUES (8137, 'Campo de La Cruz', 8); INSERT INTO city (id, name, departmentId) VALUES (8141, 'Candelaria', 8); INSERT INTO city (id, name, departmentId) VALUES (8296, 'Galapa', 8); INSERT INTO city (id, name, departmentId) VALUES (8372, '<NAME>', 8); INSERT INTO city (id, name, departmentId) VALUES (8421, 'Luruaco', 8); INSERT INTO city (id, name, departmentId) VALUES (8433, 'Malambo', 8); INSERT INTO city (id, name, departmentId) VALUES (8436, 'Manatí', 8); INSERT INTO city (id, name, departmentId) VALUES (8520, 'Palmar de Varela', 8); INSERT INTO city (id, name, departmentId) VALUES (8549, 'Piojó', 8); INSERT INTO city (id, name, departmentId) VALUES (8558, 'Polonuevo', 8); INSERT INTO city (id, name, departmentId) VALUES (8560, 'Ponedera', 8); INSERT INTO city (id, name, departmentId) VALUES (8573, 'Puerto Colombia', 8); INSERT INTO city (id, name, departmentId) VALUES (8606, 'Repelón', 8); INSERT INTO city (id, name, departmentId) VALUES (8634, 'Sabanagrande', 8); INSERT INTO city (id, name, departmentId) VALUES (8638, 'Sabanalarga', 8); INSERT INTO city (id, name, departmentId) VALUES (8675, 'Santa Lucía', 8); INSERT INTO city (id, name, departmentId) VALUES (8685, 'Santo Tomás', 8); INSERT INTO city (id, name, departmentId) VALUES (8758, 'Soledad', 8); INSERT INTO city (id, name, departmentId) VALUES (8770, 'Suan', 8); INSERT INTO city (id, name, departmentId) VALUES (8832, 'Tubará', 8); INSERT INTO city (id, name, departmentId) VALUES (8849, 'Usiacurí', 8); INSERT INTO city (id, name, departmentId) VALUES (11001, 'Bogotá D.C.', 11); INSERT INTO city (id, name, departmentId) VALUES (13001, 'Cartagena', 13); INSERT INTO city (id, name, departmentId) VALUES (13006, 'Achí', 13); INSERT INTO city (id, name, departmentId) VALUES (13030, 'Altos del Rosario', 13); INSERT INTO city (id, name, departmentId) VALUES (13042, 'Arenal', 13); INSERT INTO city (id, name, departmentId) VALUES (13052, 'Arjona', 13); INSERT INTO city (id, name, departmentId) VALUES (13062, 'Arroyohondo', 13); INSERT INTO city (id, name, departmentId) VALUES (13074, 'Barranco de Loba', 13); INSERT INTO city (id, name, departmentId) VALUES (13140, 'Calamar', 13); INSERT INTO city (id, name, departmentId) VALUES (13160, 'Cantagallo', 13); INSERT INTO city (id, name, departmentId) VALUES (13188, 'Cicuco', 13); INSERT INTO city (id, name, departmentId) VALUES (13212, 'Córdoba', 13); INSERT INTO city (id, name, departmentId) VALUES (13222, 'Clemencia', 13); INSERT INTO city (id, name, departmentId) VALUES (13244, 'El Carmen de Bolívar', 13); INSERT INTO city (id, name, departmentId) VALUES (13248, 'El Guamo', 13); INSERT INTO city (id, name, departmentId) VALUES (13268, 'El Peñón', 13); INSERT INTO city (id, name, departmentId) VALUES (13300, 'Hatillo de Loba', 13); INSERT INTO city (id, name, departmentId) VALUES (13430, 'Magangué', 13); INSERT INTO city (id, name, departmentId) VALUES (13433, 'Mahates', 13); INSERT INTO city (id, name, departmentId) VALUES (13440, 'Margarita', 13); INSERT INTO city (id, name, departmentId) VALUES (13442, 'María la Baja', 13); INSERT INTO city (id, name, departmentId) VALUES (13458, 'Montecristo', 13); INSERT INTO city (id, name, departmentId) VALUES (13468, 'Mompós', 13); INSERT INTO city (id, name, departmentId) VALUES (13473, 'Morales', 13); INSERT INTO city (id, name, departmentId) VALUES (13490, 'Norosí', 13); INSERT INTO city (id, name, departmentId) VALUES (13549, 'Pinillos', 13); INSERT INTO city (id, name, departmentId) VALUES (13580, 'Regidor', 13); INSERT INTO city (id, name, departmentId) VALUES (13600, 'Río Viejo', 13); INSERT INTO city (id, name, departmentId) VALUES (13620, 'San Cristóbal', 13); INSERT INTO city (id, name, departmentId) VALUES (13647, 'San Estanislao', 13); INSERT INTO city (id, name, departmentId) VALUES (13650, 'San Fernando', 13); INSERT INTO city (id, name, departmentId) VALUES (13654, 'San Jacinto', 13); INSERT INTO city (id, name, departmentId) VALUES (13655, 'San Jacinto del Cauca', 13); INSERT INTO city (id, name, departmentId) VALUES (13657, 'San Juan Nepomuceno', 13); INSERT INTO city (id, name, departmentId) VALUES (13667, 'San Martín de Loba', 13); INSERT INTO city (id, name, departmentId) VALUES (13670, 'San Pablo de Borbur', 13); INSERT INTO city (id, name, departmentId) VALUES (13673, 'Santa Catalina', 13); INSERT INTO city (id, name, departmentId) VALUES (13683, 'Santa Rosa', 13); INSERT INTO city (id, name, departmentId) VALUES (13688, 'Santa Rosa del Sur', 13); INSERT INTO city (id, name, departmentId) VALUES (13744, 'Simití', 13); INSERT INTO city (id, name, departmentId) VALUES (13760, 'Soplaviento', 13); INSERT INTO city (id, name, departmentId) VALUES (13780, 'Talaigua Nuevo', 13); INSERT INTO city (id, name, departmentId) VALUES (13810, 'Tiquisio', 13); INSERT INTO city (id, name, departmentId) VALUES (13836, 'Turbaco', 13); INSERT INTO city (id, name, departmentId) VALUES (13838, 'Turbaná', 13); INSERT INTO city (id, name, departmentId) VALUES (13873, 'Villanueva', 13); INSERT INTO city (id, name, departmentId) VALUES (13894, 'Zambrano', 13); INSERT INTO city (id, name, departmentId) VALUES (15001, 'Tunja', 15); INSERT INTO city (id, name, departmentId) VALUES (15022, 'Almeida', 15); INSERT INTO city (id, name, departmentId) VALUES (15047, 'Aquitania', 15); INSERT INTO city (id, name, departmentId) VALUES (15051, 'Arcabuco', 15); INSERT INTO city (id, name, departmentId) VALUES (15087, 'Belén', 15); INSERT INTO city (id, name, departmentId) VALUES (15090, 'Berbeo', 15); INSERT INTO city (id, name, departmentId) VALUES (15092, 'Betéitiva', 15); INSERT INTO city (id, name, departmentId) VALUES (15097, 'Boavita', 15); INSERT INTO city (id, name, departmentId) VALUES (15104, 'Boyacá', 15); INSERT INTO city (id, name, departmentId) VALUES (15106, 'Briceño', 15); INSERT INTO city (id, name, departmentId) VALUES (15109, 'Buena Vista', 15); INSERT INTO city (id, name, departmentId) VALUES (15114, 'Busbanzá', 15); INSERT INTO city (id, name, departmentId) VALUES (15131, 'Caldas', 15); INSERT INTO city (id, name, departmentId) VALUES (15135, 'Campohermoso', 15); INSERT INTO city (id, name, departmentId) VALUES (15162, 'Cerinza', 15); INSERT INTO city (id, name, departmentId) VALUES (15172, 'Chinavita', 15); INSERT INTO city (id, name, departmentId) VALUES (15176, 'Chiquinquirá', 15); INSERT INTO city (id, name, departmentId) VALUES (15180, 'Chiscas', 15); INSERT INTO city (id, name, departmentId) VALUES (15183, 'Chita', 15); INSERT INTO city (id, name, departmentId) VALUES (15185, 'Chitaraque', 15); INSERT INTO city (id, name, departmentId) VALUES (15187, 'Chivatá', 15); INSERT INTO city (id, name, departmentId) VALUES (15189, 'Ciénega', 15); INSERT INTO city (id, name, departmentId) VALUES (15204, 'Cómbita', 15); INSERT INTO city (id, name, departmentId) VALUES (15212, 'Coper', 15); INSERT INTO city (id, name, departmentId) VALUES (15215, 'Corrales', 15); INSERT INTO city (id, name, departmentId) VALUES (15218, 'Covarachía', 15); INSERT INTO city (id, name, departmentId) VALUES (15223, 'Cubará', 15); INSERT INTO city (id, name, departmentId) VALUES (15224, 'Cucaita', 15); INSERT INTO city (id, name, departmentId) VALUES (15226, 'Cuítiva', 15); INSERT INTO city (id, name, departmentId) VALUES (15232, 'Chíquiza', 15); INSERT INTO city (id, name, departmentId) VALUES (15236, 'Chivor', 15); INSERT INTO city (id, name, departmentId) VALUES (15238, 'Duitama', 15); INSERT INTO city (id, name, departmentId) VALUES (15244, 'El Cocuy', 15); INSERT INTO city (id, name, departmentId) VALUES (15248, 'El Espino', 15); INSERT INTO city (id, name, departmentId) VALUES (15272, 'Firavitoba', 15); INSERT INTO city (id, name, departmentId) VALUES (15276, 'Floresta', 15); INSERT INTO city (id, name, departmentId) VALUES (15293, 'Gachantivá', 15); INSERT INTO city (id, name, departmentId) VALUES (15296, 'Gameza', 15); INSERT INTO city (id, name, departmentId) VALUES (15299, 'Garagoa', 15); INSERT INTO city (id, name, departmentId) VALUES (15317, 'Guacamayas', 15); INSERT INTO city (id, name, departmentId) VALUES (15322, 'Guateque', 15); INSERT INTO city (id, name, departmentId) VALUES (15325, 'Guayatá', 15); INSERT INTO city (id, name, departmentId) VALUES (15332, 'Güicán', 15); INSERT INTO city (id, name, departmentId) VALUES (15362, 'Iza', 15); INSERT INTO city (id, name, departmentId) VALUES (15367, 'Jenesano', 15); INSERT INTO city (id, name, departmentId) VALUES (15368, 'Jericó', 15); INSERT INTO city (id, name, departmentId) VALUES (15377, 'Labranzagrande', 15); INSERT INTO city (id, name, departmentId) VALUES (15380, 'La Capilla', 15); INSERT INTO city (id, name, departmentId) VALUES (15401, 'La Victoria', 15); INSERT INTO city (id, name, departmentId) VALUES (15403, 'La Uvita', 15); INSERT INTO city (id, name, departmentId) VALUES (15407, 'Villa de Leyva', 15); INSERT INTO city (id, name, departmentId) VALUES (15425, 'Macanal', 15); INSERT INTO city (id, name, departmentId) VALUES (15442, 'Maripí', 15); INSERT INTO city (id, name, departmentId) VALUES (15455, 'Miraflores', 15); INSERT INTO city (id, name, departmentId) VALUES (15464, 'Mongua', 15); INSERT INTO city (id, name, departmentId) VALUES (15466, 'Monguí', 15); INSERT INTO city (id, name, departmentId) VALUES (15469, 'Moniquirá', 15); INSERT INTO city (id, name, departmentId) VALUES (15476, 'Motavita', 15); INSERT INTO city (id, name, departmentId) VALUES (15480, 'Muzo', 15); INSERT INTO city (id, name, departmentId) VALUES (15491, 'Nobsa', 15); INSERT INTO city (id, name, departmentId) VALUES (15494, 'Nuevo Colón', 15); INSERT INTO city (id, name, departmentId) VALUES (15500, 'Oicatá', 15); INSERT INTO city (id, name, departmentId) VALUES (15507, 'Otanche', 15); INSERT INTO city (id, name, departmentId) VALUES (15511, 'Pachavita', 15); INSERT INTO city (id, name, departmentId) VALUES (15514, 'Páez', 15); INSERT INTO city (id, name, departmentId) VALUES (15516, 'Paipa', 15); INSERT INTO city (id, name, departmentId) VALUES (15518, 'Pajarito', 15); INSERT INTO city (id, name, departmentId) VALUES (15522, 'Panqueba', 15); INSERT INTO city (id, name, departmentId) VALUES (15531, 'Pauna', 15); INSERT INTO city (id, name, departmentId) VALUES (15533, 'Paya', 15); INSERT INTO city (id, name, departmentId) VALUES (15537, 'Paz de Río', 15); INSERT INTO city (id, name, departmentId) VALUES (15542, 'Pesca', 15); INSERT INTO city (id, name, departmentId) VALUES (15550, 'Pisba', 15); INSERT INTO city (id, name, departmentId) VALUES (15572, 'Puerto Boyacá', 15); INSERT INTO city (id, name, departmentId) VALUES (15580, 'Quípama', 15); INSERT INTO city (id, name, departmentId) VALUES (15599, 'Ramiriquí', 15); INSERT INTO city (id, name, departmentId) VALUES (15600, 'Ráquira', 15); INSERT INTO city (id, name, departmentId) VALUES (15621, 'Rondón', 15); INSERT INTO city (id, name, departmentId) VALUES (15632, 'Saboyá', 15); INSERT INTO city (id, name, departmentId) VALUES (15638, 'Sáchica', 15); INSERT INTO city (id, name, departmentId) VALUES (15646, 'Samacá', 15); INSERT INTO city (id, name, departmentId) VALUES (15660, 'San Eduardo', 15); INSERT INTO city (id, name, departmentId) VALUES (15664, 'San José de Pare', 15); INSERT INTO city (id, name, departmentId) VALUES (15667, 'San Luis de Gaceno', 15); INSERT INTO city (id, name, departmentId) VALUES (15673, 'San Mateo', 15); INSERT INTO city (id, name, departmentId) VALUES (15676, 'San Miguel de Sema', 15); INSERT INTO city (id, name, departmentId) VALUES (15681, 'San Pablo de Borbur', 15); INSERT INTO city (id, name, departmentId) VALUES (15686, 'Santana', 15); INSERT INTO city (id, name, departmentId) VALUES (15690, 'Santa María', 15); INSERT INTO city (id, name, departmentId) VALUES (15693, 'Santa Rosa de Viterbo', 15); INSERT INTO city (id, name, departmentId) VALUES (15696, 'Santa Sofía', 15); INSERT INTO city (id, name, departmentId) VALUES (15720, 'Sativanorte', 15); INSERT INTO city (id, name, departmentId) VALUES (15723, 'Sativasur', 15); INSERT INTO city (id, name, departmentId) VALUES (15740, 'Siachoque', 15); INSERT INTO city (id, name, departmentId) VALUES (15753, 'Soatá', 15); INSERT INTO city (id, name, departmentId) VALUES (15755, 'Socotá', 15); INSERT INTO city (id, name, departmentId) VALUES (15757, 'Socha', 15); INSERT INTO city (id, name, departmentId) VALUES (15759, 'Sogamoso', 15); INSERT INTO city (id, name, departmentId) VALUES (15761, 'Somondoco', 15); INSERT INTO city (id, name, departmentId) VALUES (15762, 'Sora', 15); INSERT INTO city (id, name, departmentId) VALUES (15763, 'Sotaquirá', 15); INSERT INTO city (id, name, departmentId) VALUES (15764, 'Soracá', 15); INSERT INTO city (id, name, departmentId) VALUES (15774, 'Susacón', 15); INSERT INTO city (id, name, departmentId) VALUES (15776, 'Sutamarchán', 15); INSERT INTO city (id, name, departmentId) VALUES (15778, 'Sutatenza', 15); INSERT INTO city (id, name, departmentId) VALUES (15790, 'Tasco', 15); INSERT INTO city (id, name, departmentId) VALUES (15798, 'Tenza', 15); INSERT INTO city (id, name, departmentId) VALUES (15804, 'Tibaná', 15); INSERT INTO city (id, name, departmentId) VALUES (15806, 'Tibasosa', 15); INSERT INTO city (id, name, departmentId) VALUES (15808, 'Tinjacá', 15); INSERT INTO city (id, name, departmentId) VALUES (15810, 'Tipacoque', 15); INSERT INTO city (id, name, departmentId) VALUES (15814, 'Toca', 15); INSERT INTO city (id, name, departmentId) VALUES (15816, 'Togüí', 15); INSERT INTO city (id, name, departmentId) VALUES (15820, 'Tópaga', 15); INSERT INTO city (id, name, departmentId) VALUES (15822, 'Tota', 15); INSERT INTO city (id, name, departmentId) VALUES (15832, 'Tununguá', 15); INSERT INTO city (id, name, departmentId) VALUES (15835, 'Turmequé', 15); INSERT INTO city (id, name, departmentId) VALUES (15837, 'Tuta', 15); INSERT INTO city (id, name, departmentId) VALUES (15839, 'Tutazá', 15); INSERT INTO city (id, name, departmentId) VALUES (15842, 'Umbita', 15); INSERT INTO city (id, name, departmentId) VALUES (15861, 'Ventaquemada', 15); INSERT INTO city (id, name, departmentId) VALUES (15879, 'Viracachá', 15); INSERT INTO city (id, name, departmentId) VALUES (15897, 'Zetaquira', 15); INSERT INTO city (id, name, departmentId) VALUES (17001, 'Manizales', 17); INSERT INTO city (id, name, departmentId) VALUES (17013, 'Aguadas', 17); INSERT INTO city (id, name, departmentId) VALUES (17042, 'Anserma', 17); INSERT INTO city (id, name, departmentId) VALUES (17050, 'Aranzazu', 17); INSERT INTO city (id, name, departmentId) VALUES (17088, 'Belalcázar', 17); INSERT INTO city (id, name, departmentId) VALUES (17174, 'Chinchiná', 17); INSERT INTO city (id, name, departmentId) VALUES (17272, 'Filadelfia', 17); INSERT INTO city (id, name, departmentId) VALUES (17380, 'La Dorada', 17); INSERT INTO city (id, name, departmentId) VALUES (17388, 'La Merced', 17); INSERT INTO city (id, name, departmentId) VALUES (17433, 'Manzanares', 17); INSERT INTO city (id, name, departmentId) VALUES (17442, 'Marmato', 17); INSERT INTO city (id, name, departmentId) VALUES (17444, 'Marquetalia', 17); INSERT INTO city (id, name, departmentId) VALUES (17446, 'Marulanda', 17); INSERT INTO city (id, name, departmentId) VALUES (17486, 'Neira', 17); INSERT INTO city (id, name, departmentId) VALUES (17495, 'Norcasia', 17); INSERT INTO city (id, name, departmentId) VALUES (17513, 'Pácora', 17); INSERT INTO city (id, name, departmentId) VALUES (17524, 'Palestina', 17); INSERT INTO city (id, name, departmentId) VALUES (17541, 'Pensilvania', 17); INSERT INTO city (id, name, departmentId) VALUES (17614, 'Riosucio', 17); INSERT INTO city (id, name, departmentId) VALUES (17616, 'Risaralda', 17); INSERT INTO city (id, name, departmentId) VALUES (17653, 'Salamina', 17); INSERT INTO city (id, name, departmentId) VALUES (17662, 'Samaná', 17); INSERT INTO city (id, name, departmentId) VALUES (17665, 'San José', 17); INSERT INTO city (id, name, departmentId) VALUES (17777, 'Supía', 17); INSERT INTO city (id, name, departmentId) VALUES (17867, 'Victoria', 17); INSERT INTO city (id, name, departmentId) VALUES (17873, 'Villamaría', 17); INSERT INTO city (id, name, departmentId) VALUES (17877, 'Viterbo', 17); INSERT INTO city (id, name, departmentId) VALUES (18001, 'Florencia', 18); INSERT INTO city (id, name, departmentId) VALUES (18029, 'Albania', 18); INSERT INTO city (id, name, departmentId) VALUES (18094, 'Belén de Los Andaquies', 18); INSERT INTO city (id, name, departmentId) VALUES (18150, 'Cartagena del Chairá', 18); INSERT INTO city (id, name, departmentId) VALUES (18205, 'Curillo', 18); INSERT INTO city (id, name, departmentId) VALUES (18247, 'El Doncello', 18); INSERT INTO city (id, name, departmentId) VALUES (18256, 'El Paujil', 18); INSERT INTO city (id, name, departmentId) VALUES (18410, 'La Montañita', 18); INSERT INTO city (id, name, departmentId) VALUES (18460, 'Milán', 18); INSERT INTO city (id, name, departmentId) VALUES (18479, 'Morelia', 18); INSERT INTO city (id, name, departmentId) VALUES (18592, 'Puerto Rico', 18); INSERT INTO city (id, name, departmentId) VALUES (18610, 'San José del Fragua', 18); INSERT INTO city (id, name, departmentId) VALUES (18753, 'San Vicente del Caguán', 18); INSERT INTO city (id, name, departmentId) VALUES (18756, 'Solano', 18); INSERT INTO city (id, name, departmentId) VALUES (18785, 'Solita', 18); INSERT INTO city (id, name, departmentId) VALUES (18860, 'Valparaíso', 18); INSERT INTO city (id, name, departmentId) VALUES (19001, 'Popayán', 19); INSERT INTO city (id, name, departmentId) VALUES (19022, 'Almaguer', 19); INSERT INTO city (id, name, departmentId) VALUES (19050, 'Argelia', 19); INSERT INTO city (id, name, departmentId) VALUES (19075, 'Balboa', 19); INSERT INTO city (id, name, departmentId) VALUES (19100, 'Bolívar', 19); INSERT INTO city (id, name, departmentId) VALUES (19110, 'Buenos Aires', 19); INSERT INTO city (id, name, departmentId) VALUES (19130, 'Cajibío', 19); INSERT INTO city (id, name, departmentId) VALUES (19137, 'Caldono', 19); INSERT INTO city (id, name, departmentId) VALUES (19142, 'Caloto', 19); INSERT INTO city (id, name, departmentId) VALUES (19212, 'Corinto', 19); INSERT INTO city (id, name, departmentId) VALUES (19256, 'El Tambo', 19); INSERT INTO city (id, name, departmentId) VALUES (19290, 'Florencia', 19); INSERT INTO city (id, name, departmentId) VALUES (19300, 'Guachené', 19); INSERT INTO city (id, name, departmentId) VALUES (19318, 'Guapi', 19); INSERT INTO city (id, name, departmentId) VALUES (19355, 'Inzá', 19); INSERT INTO city (id, name, departmentId) VALUES (19364, 'Jambaló', 19); INSERT INTO city (id, name, departmentId) VALUES (19392, 'La Sierra', 19); INSERT INTO city (id, name, departmentId) VALUES (19397, 'La Vega', 19); INSERT INTO city (id, name, departmentId) VALUES (19418, 'López', 19); INSERT INTO city (id, name, departmentId) VALUES (19450, 'Mercaderes', 19); INSERT INTO city (id, name, departmentId) VALUES (19455, 'Miranda', 19); INSERT INTO city (id, name, departmentId) VALUES (19473, 'Morales', 19); INSERT INTO city (id, name, departmentId) VALUES (19513, 'Padilla', 19); INSERT INTO city (id, name, departmentId) VALUES (19517, 'Páez', 19); INSERT INTO city (id, name, departmentId) VALUES (19532, 'Patía', 19); INSERT INTO city (id, name, departmentId) VALUES (19533, 'Piamonte', 19); INSERT INTO city (id, name, departmentId) VALUES (19548, 'Piendamó', 19); INSERT INTO city (id, name, departmentId) VALUES (19573, 'Puerto Tejada', 19); INSERT INTO city (id, name, departmentId) VALUES (19585, 'Puracé', 19); INSERT INTO city (id, name, departmentId) VALUES (19622, 'Rosas', 19); INSERT INTO city (id, name, departmentId) VALUES (19693, 'San Sebastián', 19); INSERT INTO city (id, name, departmentId) VALUES (19698, '<NAME>', 19); INSERT INTO city (id, name, departmentId) VALUES (19701, 'Santa Rosa', 19); INSERT INTO city (id, name, departmentId) VALUES (19743, 'Silvia', 19); INSERT INTO city (id, name, departmentId) VALUES (19760, 'Sotara', 19); INSERT INTO city (id, name, departmentId) VALUES (19780, 'Suárez', 19); INSERT INTO city (id, name, departmentId) VALUES (19785, 'Sucre', 19); INSERT INTO city (id, name, departmentId) VALUES (19807, 'Timbío', 19); INSERT INTO city (id, name, departmentId) VALUES (19809, 'Timbiquí', 19); INSERT INTO city (id, name, departmentId) VALUES (19821, 'Toribio', 19); INSERT INTO city (id, name, departmentId) VALUES (19824, 'Totoró', 19); INSERT INTO city (id, name, departmentId) VALUES (19845, 'Villa Rica', 19); INSERT INTO city (id, name, departmentId) VALUES (20001, 'Valledupar', 20); INSERT INTO city (id, name, departmentId) VALUES (20011, 'Aguachica', 20); INSERT INTO city (id, name, departmentId) VALUES (20013, 'Agustín Codazzi', 20); INSERT INTO city (id, name, departmentId) VALUES (20032, 'Astrea', 20); INSERT INTO city (id, name, departmentId) VALUES (20045, 'Becerril', 20); INSERT INTO city (id, name, departmentId) VALUES (20060, 'Bosconia', 20); INSERT INTO city (id, name, departmentId) VALUES (20175, 'Chimichagua', 20); INSERT INTO city (id, name, departmentId) VALUES (20178, 'Chiriguaná', 20); INSERT INTO city (id, name, departmentId) VALUES (20228, 'Curumaní', 20); INSERT INTO city (id, name, departmentId) VALUES (20238, 'El Copey', 20); INSERT INTO city (id, name, departmentId) VALUES (20250, 'El Paso', 20); INSERT INTO city (id, name, departmentId) VALUES (20295, 'Gamarra', 20); INSERT INTO city (id, name, departmentId) VALUES (20310, 'González', 20); INSERT INTO city (id, name, departmentId) VALUES (20383, 'La Gloria', 20); INSERT INTO city (id, name, departmentId) VALUES (20400, 'La Jagua de Ibirico', 20); INSERT INTO city (id, name, departmentId) VALUES (20443, 'Manaure', 20); INSERT INTO city (id, name, departmentId) VALUES (20517, 'Pailitas', 20); INSERT INTO city (id, name, departmentId) VALUES (20550, 'Pelaya', 20); INSERT INTO city (id, name, departmentId) VALUES (20570, 'Pueblo Bello', 20); INSERT INTO city (id, name, departmentId) VALUES (20614, 'Río de Oro', 20); INSERT INTO city (id, name, departmentId) VALUES (20621, 'La Paz', 20); INSERT INTO city (id, name, departmentId) VALUES (20710, 'San Alberto', 20); INSERT INTO city (id, name, departmentId) VALUES (20750, 'San Diego', 20); INSERT INTO city (id, name, departmentId) VALUES (20770, 'San Martín', 20); INSERT INTO city (id, name, departmentId) VALUES (20787, 'Tamalameque', 20); INSERT INTO city (id, name, departmentId) VALUES (23001, 'Montería', 23); INSERT INTO city (id, name, departmentId) VALUES (23068, 'Ayapel', 23); INSERT INTO city (id, name, departmentId) VALUES (23079, 'Buenavista', 23); INSERT INTO city (id, name, departmentId) VALUES (23090, 'Canalete', 23); INSERT INTO city (id, name, departmentId) VALUES (23162, 'Cereté', 23); INSERT INTO city (id, name, departmentId) VALUES (23168, 'Chimá', 23); INSERT INTO city (id, name, departmentId) VALUES (23182, 'Chinú', 23); INSERT INTO city (id, name, departmentId) VALUES (23189, 'Ciénaga de Oro', 23); INSERT INTO city (id, name, departmentId) VALUES (23300, 'Cotorra', 23); INSERT INTO city (id, name, departmentId) VALUES (23350, 'La Apartada', 23); INSERT INTO city (id, name, departmentId) VALUES (23417, 'Lorica', 23); INSERT INTO city (id, name, departmentId) VALUES (23419, 'Los Córdobas', 23); INSERT INTO city (id, name, departmentId) VALUES (23464, 'Momil', 23); INSERT INTO city (id, name, departmentId) VALUES (23466, 'Montelíbano', 23); INSERT INTO city (id, name, departmentId) VALUES (23500, 'Moñitos', 23); INSERT INTO city (id, name, departmentId) VALUES (23555, 'Planeta Rica', 23); INSERT INTO city (id, name, departmentId) VALUES (23570, 'Pueblo Nuevo', 23); INSERT INTO city (id, name, departmentId) VALUES (23574, 'Puerto Escondido', 23); INSERT INTO city (id, name, departmentId) VALUES (23580, 'Puerto Libertador', 23); INSERT INTO city (id, name, departmentId) VALUES (23586, 'Purísima', 23); INSERT INTO city (id, name, departmentId) VALUES (23660, 'Sahagún', 23); INSERT INTO city (id, name, departmentId) VALUES (23670, 'San Andrés Sotavento', 23); INSERT INTO city (id, name, departmentId) VALUES (23672, 'San Antero', 23); INSERT INTO city (id, name, departmentId) VALUES (23675, 'San Bernardo del Viento', 23); INSERT INTO city (id, name, departmentId) VALUES (23678, 'San Carlos', 23); INSERT INTO city (id, name, departmentId) VALUES (23682, 'San José de Uré', 23); INSERT INTO city (id, name, departmentId) VALUES (23686, 'San Pelayo', 23); INSERT INTO city (id, name, departmentId) VALUES (23807, 'Tierralta', 23); INSERT INTO city (id, name, departmentId) VALUES (23815, 'Tuchín', 23); INSERT INTO city (id, name, departmentId) VALUES (23855, 'Valencia', 23); INSERT INTO city (id, name, departmentId) VALUES (25001, 'Agua de Dios', 25); INSERT INTO city (id, name, departmentId) VALUES (25019, 'Albán', 25); INSERT INTO city (id, name, departmentId) VALUES (25035, 'Anapoima', 25); INSERT INTO city (id, name, departmentId) VALUES (25040, 'Anolaima', 25); INSERT INTO city (id, name, departmentId) VALUES (25053, 'Arbeláez', 25); INSERT INTO city (id, name, departmentId) VALUES (25086, 'Beltrán', 25); INSERT INTO city (id, name, departmentId) VALUES (25095, 'Bituima', 25); INSERT INTO city (id, name, departmentId) VALUES (25099, 'Bojacá', 25); INSERT INTO city (id, name, departmentId) VALUES (25120, 'Cabrera', 25); INSERT INTO city (id, name, departmentId) VALUES (25123, 'Cachipay', 25); INSERT INTO city (id, name, departmentId) VALUES (25126, 'Cajicá', 25); INSERT INTO city (id, name, departmentId) VALUES (25148, 'Caparrapí', 25); INSERT INTO city (id, name, departmentId) VALUES (25151, 'Caqueza', 25); INSERT INTO city (id, name, departmentId) VALUES (25154, 'Carmen de Carupa', 25); INSERT INTO city (id, name, departmentId) VALUES (25168, 'Chaguaní', 25); INSERT INTO city (id, name, departmentId) VALUES (25175, 'Chía', 25); INSERT INTO city (id, name, departmentId) VALUES (25178, 'Chipaque', 25); INSERT INTO city (id, name, departmentId) VALUES (25181, 'Choachí', 25); INSERT INTO city (id, name, departmentId) VALUES (25183, 'Chocontá', 25); INSERT INTO city (id, name, departmentId) VALUES (25200, 'Cogua', 25); INSERT INTO city (id, name, departmentId) VALUES (25214, 'Cota', 25); INSERT INTO city (id, name, departmentId) VALUES (25224, 'Cucunubá', 25); INSERT INTO city (id, name, departmentId) VALUES (25245, 'El Colegio', 25); INSERT INTO city (id, name, departmentId) VALUES (25258, 'El Peñón', 25); INSERT INTO city (id, name, departmentId) VALUES (25260, 'El Rosal', 25); INSERT INTO city (id, name, departmentId) VALUES (25269, 'Facatativá', 25); INSERT INTO city (id, name, departmentId) VALUES (25279, 'Fomeque', 25); INSERT INTO city (id, name, departmentId) VALUES (25281, 'Fosca', 25); INSERT INTO city (id, name, departmentId) VALUES (25286, 'Funza', 25); INSERT INTO city (id, name, departmentId) VALUES (25288, 'Fúquene', 25); INSERT INTO city (id, name, departmentId) VALUES (25290, 'Fusagasugá', 25); INSERT INTO city (id, name, departmentId) VALUES (25293, 'Gachala', 25); INSERT INTO city (id, name, departmentId) VALUES (25295, 'Gachancipá', 25); INSERT INTO city (id, name, departmentId) VALUES (25297, 'Gachetá', 25); INSERT INTO city (id, name, departmentId) VALUES (25299, 'Gama', 25); INSERT INTO city (id, name, departmentId) VALUES (25307, 'Girardot', 25); INSERT INTO city (id, name, departmentId) VALUES (25312, 'Granada', 25); INSERT INTO city (id, name, departmentId) VALUES (25317, 'Guachetá', 25); INSERT INTO city (id, name, departmentId) VALUES (25320, 'Guaduas', 25); INSERT INTO city (id, name, departmentId) VALUES (25322, 'Guasca', 25); INSERT INTO city (id, name, departmentId) VALUES (25324, 'Guataquí', 25); INSERT INTO city (id, name, departmentId) VALUES (25326, 'Guatavita', 25); INSERT INTO city (id, name, departmentId) VALUES (25328, 'Guayabal de Siquima', 25); INSERT INTO city (id, name, departmentId) VALUES (25335, 'Guayabetal', 25); INSERT INTO city (id, name, departmentId) VALUES (25339, 'Gutiérrez', 25); INSERT INTO city (id, name, departmentId) VALUES (25368, 'Jerusalén', 25); INSERT INTO city (id, name, departmentId) VALUES (25372, 'Junín', 25); INSERT INTO city (id, name, departmentId) VALUES (25377, 'La Calera', 25); INSERT INTO city (id, name, departmentId) VALUES (25386, 'La Mesa', 25); INSERT INTO city (id, name, departmentId) VALUES (25394, 'La Palma', 25); INSERT INTO city (id, name, departmentId) VALUES (25398, 'La Peña', 25); INSERT INTO city (id, name, departmentId) VALUES (25402, 'La Vega', 25); INSERT INTO city (id, name, departmentId) VALUES (25407, 'Lenguazaque', 25); INSERT INTO city (id, name, departmentId) VALUES (25426, 'Macheta', 25); INSERT INTO city (id, name, departmentId) VALUES (25430, 'Madrid', 25); INSERT INTO city (id, name, departmentId) VALUES (25436, 'Manta', 25); INSERT INTO city (id, name, departmentId) VALUES (25438, 'Medina', 25); INSERT INTO city (id, name, departmentId) VALUES (25473, 'Mosquera', 25); INSERT INTO city (id, name, departmentId) VALUES (25483, 'Nariño', 25); INSERT INTO city (id, name, departmentId) VALUES (25486, 'Nemocón', 25); INSERT INTO city (id, name, departmentId) VALUES (25488, 'Nilo', 25); INSERT INTO city (id, name, departmentId) VALUES (25489, 'Nimaima', 25); INSERT INTO city (id, name, departmentId) VALUES (25491, 'Nocaima', 25); INSERT INTO city (id, name, departmentId) VALUES (25506, 'Venecia', 25); INSERT INTO city (id, name, departmentId) VALUES (25513, 'Pacho', 25); INSERT INTO city (id, name, departmentId) VALUES (25518, 'Paime', 25); INSERT INTO city (id, name, departmentId) VALUES (25524, 'Pandi', 25); INSERT INTO city (id, name, departmentId) VALUES (25530, 'Paratebueno', 25); INSERT INTO city (id, name, departmentId) VALUES (25535, 'Pasca', 25); INSERT INTO city (id, name, departmentId) VALUES (25572, 'P<NAME>', 25); INSERT INTO city (id, name, departmentId) VALUES (25580, 'Pulí', 25); INSERT INTO city (id, name, departmentId) VALUES (25592, 'Quebradanegra', 25); INSERT INTO city (id, name, departmentId) VALUES (25594, 'Quetame', 25); INSERT INTO city (id, name, departmentId) VALUES (25596, 'Quipile', 25); INSERT INTO city (id, name, departmentId) VALUES (25599, 'Apulo', 25); INSERT INTO city (id, name, departmentId) VALUES (25612, 'Ricaurte', 25); INSERT INTO city (id, name, departmentId) VALUES (25645, 'San Antonio del Tequendama', 25); INSERT INTO city (id, name, departmentId) VALUES (25649, 'San Bernardo', 25); INSERT INTO city (id, name, departmentId) VALUES (25653, 'San Cayetano', 25); INSERT INTO city (id, name, departmentId) VALUES (25658, 'San Francisco', 25); INSERT INTO city (id, name, departmentId) VALUES (25662, 'San Juan de Río Seco', 25); INSERT INTO city (id, name, departmentId) VALUES (25718, 'Sasaima', 25); INSERT INTO city (id, name, departmentId) VALUES (25736, 'Sesquilé', 25); INSERT INTO city (id, name, departmentId) VALUES (25740, 'Sibaté', 25); INSERT INTO city (id, name, departmentId) VALUES (25743, 'Silvania', 25); INSERT INTO city (id, name, departmentId) VALUES (25745, 'Simijaca', 25); INSERT INTO city (id, name, departmentId) VALUES (25754, 'Soacha', 25); INSERT INTO city (id, name, departmentId) VALUES (25758, 'Sopó', 25); INSERT INTO city (id, name, departmentId) VALUES (25769, 'Subachoque', 25); INSERT INTO city (id, name, departmentId) VALUES (25772, 'Suesca', 25); INSERT INTO city (id, name, departmentId) VALUES (25777, 'Supatá', 25); INSERT INTO city (id, name, departmentId) VALUES (25779, 'Susa', 25); INSERT INTO city (id, name, departmentId) VALUES (25781, 'Sutatausa', 25); INSERT INTO city (id, name, departmentId) VALUES (25785, 'Tabio', 25); INSERT INTO city (id, name, departmentId) VALUES (25793, 'Tausa', 25); INSERT INTO city (id, name, departmentId) VALUES (25797, 'Tena', 25); INSERT INTO city (id, name, departmentId) VALUES (25799, 'Tenjo', 25); INSERT INTO city (id, name, departmentId) VALUES (25805, 'Tibacuy', 25); INSERT INTO city (id, name, departmentId) VALUES (25807, 'Tibirita', 25); INSERT INTO city (id, name, departmentId) VALUES (25815, 'Tocaima', 25); INSERT INTO city (id, name, departmentId) VALUES (25817, 'Tocancipá', 25); INSERT INTO city (id, name, departmentId) VALUES (25823, 'Topaipí', 25); INSERT INTO city (id, name, departmentId) VALUES (25839, 'Ubalá', 25); INSERT INTO city (id, name, departmentId) VALUES (25841, 'Ubaque', 25); INSERT INTO city (id, name, departmentId) VALUES (25843, 'Villa de San Diego de Ubate', 25); INSERT INTO city (id, name, departmentId) VALUES (25845, 'Une', 25); INSERT INTO city (id, name, departmentId) VALUES (25851, 'Útica', 25); INSERT INTO city (id, name, departmentId) VALUES (25862, 'Vergara', 25); INSERT INTO city (id, name, departmentId) VALUES (25867, 'Vianí', 25); INSERT INTO city (id, name, departmentId) VALUES (25871, 'Villagómez', 25); INSERT INTO city (id, name, departmentId) VALUES (25873, 'Villapinzón', 25); INSERT INTO city (id, name, departmentId) VALUES (25875, 'Villeta', 25); INSERT INTO city (id, name, departmentId) VALUES (25878, 'Viotá', 25); INSERT INTO city (id, name, departmentId) VALUES (25885, 'Yacopí', 25); INSERT INTO city (id, name, departmentId) VALUES (25898, 'Zipacón', 25); INSERT INTO city (id, name, departmentId) VALUES (25899, 'Zipaquirá', 25); INSERT INTO city (id, name, departmentId) VALUES (27001, 'Quibdó', 27); INSERT INTO city (id, name, departmentId) VALUES (27006, 'Acandí', 27); INSERT INTO city (id, name, departmentId) VALUES (27025, 'Alto Baudo', 27); INSERT INTO city (id, name, departmentId) VALUES (27050, 'Atrato', 27); INSERT INTO city (id, name, departmentId) VALUES (27073, 'Bagadó', 27); INSERT INTO city (id, name, departmentId) VALUES (27075, 'Bahía Solano', 27); INSERT INTO city (id, name, departmentId) VALUES (27077, 'Bajo Baudó', 27); INSERT INTO city (id, name, departmentId) VALUES (27086, 'Belén de Bajira', 27); INSERT INTO city (id, name, departmentId) VALUES (27099, 'Bojaya', 27); INSERT INTO city (id, name, departmentId) VALUES (27135, 'El Cantón del San Pablo', 27); INSERT INTO city (id, name, departmentId) VALUES (27150, 'Carmen del Darien', 27); INSERT INTO city (id, name, departmentId) VALUES (27160, 'Cértegui', 27); INSERT INTO city (id, name, departmentId) VALUES (27205, 'Condoto', 27); INSERT INTO city (id, name, departmentId) VALUES (27245, 'El Carmen de Atrato', 27); INSERT INTO city (id, name, departmentId) VALUES (27250, 'El Litoral del San Juan', 27); INSERT INTO city (id, name, departmentId) VALUES (27361, 'Istmina', 27); INSERT INTO city (id, name, departmentId) VALUES (27372, 'Juradó', 27); INSERT INTO city (id, name, departmentId) VALUES (27413, 'Lloró', 27); INSERT INTO city (id, name, departmentId) VALUES (27425, 'Medio Atrato', 27); INSERT INTO city (id, name, departmentId) VALUES (27430, 'Medio Baudó', 27); INSERT INTO city (id, name, departmentId) VALUES (27450, 'Medio San Juan', 27); INSERT INTO city (id, name, departmentId) VALUES (27491, 'Nóvita', 27); INSERT INTO city (id, name, departmentId) VALUES (27495, 'Nuquí', 27); INSERT INTO city (id, name, departmentId) VALUES (27580, 'Río Iro', 27); INSERT INTO city (id, name, departmentId) VALUES (27600, 'Río Quito', 27); INSERT INTO city (id, name, departmentId) VALUES (27615, 'Riosucio', 27); INSERT INTO city (id, name, departmentId) VALUES (27660, 'San José del Palmar', 27); INSERT INTO city (id, name, departmentId) VALUES (27745, 'Sipí', 27); INSERT INTO city (id, name, departmentId) VALUES (27787, 'Tadó', 27); INSERT INTO city (id, name, departmentId) VALUES (27800, 'Unguía', 27); INSERT INTO city (id, name, departmentId) VALUES (27810, 'Unión Panamericana', 27); INSERT INTO city (id, name, departmentId) VALUES (41001, 'Neiva', 41); INSERT INTO city (id, name, departmentId) VALUES (41006, 'Acevedo', 41); INSERT INTO city (id, name, departmentId) VALUES (41013, 'Agrado', 41); INSERT INTO city (id, name, departmentId) VALUES (41016, 'Aipe', 41); INSERT INTO city (id, name, departmentId) VALUES (41020, 'Algeciras', 41); INSERT INTO city (id, name, departmentId) VALUES (41026, 'Altamira', 41); INSERT INTO city (id, name, departmentId) VALUES (41078, 'Baraya', 41); INSERT INTO city (id, name, departmentId) VALUES (41132, 'Campoalegre', 41); INSERT INTO city (id, name, departmentId) VALUES (41206, 'Colombia', 41); INSERT INTO city (id, name, departmentId) VALUES (41244, 'Elías', 41); INSERT INTO city (id, name, departmentId) VALUES (41298, 'Garzón', 41); INSERT INTO city (id, name, departmentId) VALUES (41306, 'Gigante', 41); INSERT INTO city (id, name, departmentId) VALUES (41319, 'Guadalupe', 41); INSERT INTO city (id, name, departmentId) VALUES (41349, 'Hobo', 41); INSERT INTO city (id, name, departmentId) VALUES (41357, 'Iquira', 41); INSERT INTO city (id, name, departmentId) VALUES (41359, 'Isnos', 41); INSERT INTO city (id, name, departmentId) VALUES (41378, 'La Argentina', 41); INSERT INTO city (id, name, departmentId) VALUES (41396, 'La Plata', 41); INSERT INTO city (id, name, departmentId) VALUES (41483, 'Nátaga', 41); INSERT INTO city (id, name, departmentId) VALUES (41503, 'Oporapa', 41); INSERT INTO city (id, name, departmentId) VALUES (41518, 'Paicol', 41); INSERT INTO city (id, name, departmentId) VALUES (41524, 'Palermo', 41); INSERT INTO city (id, name, departmentId) VALUES (41530, 'Palestina', 41); INSERT INTO city (id, name, departmentId) VALUES (41548, 'Pital', 41); INSERT INTO city (id, name, departmentId) VALUES (41551, 'Pitalito', 41); INSERT INTO city (id, name, departmentId) VALUES (41615, 'Rivera', 41); INSERT INTO city (id, name, departmentId) VALUES (41660, 'Saladoblanco', 41); INSERT INTO city (id, name, departmentId) VALUES (41668, 'San Agustín', 41); INSERT INTO city (id, name, departmentId) VALUES (41676, 'Santa María', 41); INSERT INTO city (id, name, departmentId) VALUES (41770, 'Suaza', 41); INSERT INTO city (id, name, departmentId) VALUES (41791, 'Tarqui', 41); INSERT INTO city (id, name, departmentId) VALUES (41797, 'Tesalia', 41); INSERT INTO city (id, name, departmentId) VALUES (41799, 'Tello', 41); INSERT INTO city (id, name, departmentId) VALUES (41801, 'Teruel', 41); INSERT INTO city (id, name, departmentId) VALUES (41807, 'Timaná', 41); INSERT INTO city (id, name, departmentId) VALUES (41872, 'Villavieja', 41); INSERT INTO city (id, name, departmentId) VALUES (41885, 'Yaguará', 41); INSERT INTO city (id, name, departmentId) VALUES (44001, 'Riohacha', 44); INSERT INTO city (id, name, departmentId) VALUES (44035, 'Albania', 44); INSERT INTO city (id, name, departmentId) VALUES (44078, 'Barrancas', 44); INSERT INTO city (id, name, departmentId) VALUES (44090, 'Dibula', 44); INSERT INTO city (id, name, departmentId) VALUES (44098, 'Distracción', 44); INSERT INTO city (id, name, departmentId) VALUES (44110, '<NAME>ino', 44); INSERT INTO city (id, name, departmentId) VALUES (44279, 'Fonseca', 44); INSERT INTO city (id, name, departmentId) VALUES (44378, 'Hatonuevo', 44); INSERT INTO city (id, name, departmentId) VALUES (44420, 'La Jagua del Pilar', 44); INSERT INTO city (id, name, departmentId) VALUES (44430, 'Maicao', 44); INSERT INTO city (id, name, departmentId) VALUES (44560, 'Manaure', 44); INSERT INTO city (id, name, departmentId) VALUES (44650, 'San Juan del Cesar', 44); INSERT INTO city (id, name, departmentId) VALUES (44847, 'Uribia', 44); INSERT INTO city (id, name, departmentId) VALUES (44855, 'Urumita', 44); INSERT INTO city (id, name, departmentId) VALUES (44874, 'Villanueva', 44); INSERT INTO city (id, name, departmentId) VALUES (47001, 'Santa Marta', 47); INSERT INTO city (id, name, departmentId) VALUES (47030, 'Algarrobo', 47); INSERT INTO city (id, name, departmentId) VALUES (47053, 'Aracataca', 47); INSERT INTO city (id, name, departmentId) VALUES (47058, 'Ariguaní', 47); INSERT INTO city (id, name, departmentId) VALUES (47161, 'Cerro San Antonio', 47); INSERT INTO city (id, name, departmentId) VALUES (47170, 'Chivolo', 47); INSERT INTO city (id, name, departmentId) VALUES (47189, 'Ciénaga', 47); INSERT INTO city (id, name, departmentId) VALUES (47205, 'Concordia', 47); INSERT INTO city (id, name, departmentId) VALUES (47245, 'El Banco', 47); INSERT INTO city (id, name, departmentId) VALUES (47258, 'El Piñon', 47); INSERT INTO city (id, name, departmentId) VALUES (47268, 'El Retén', 47); INSERT INTO city (id, name, departmentId) VALUES (47288, 'Fundación', 47); INSERT INTO city (id, name, departmentId) VALUES (47318, 'Guamal', 47); INSERT INTO city (id, name, departmentId) VALUES (47460, 'Nueva Granada', 47); INSERT INTO city (id, name, departmentId) VALUES (47541, 'Pedraza', 47); INSERT INTO city (id, name, departmentId) VALUES (47545, 'Pijiño del Carmen', 47); INSERT INTO city (id, name, departmentId) VALUES (47551, 'Pivijay', 47); INSERT INTO city (id, name, departmentId) VALUES (47555, 'Plato', 47); INSERT INTO city (id, name, departmentId) VALUES (47570, 'Pueblo Viejo', 47); INSERT INTO city (id, name, departmentId) VALUES (47605, 'Remolino', 47); INSERT INTO city (id, name, departmentId) VALUES (47660, 'Sabanas de San Angel', 47); INSERT INTO city (id, name, departmentId) VALUES (47675, 'Salamina', 47); INSERT INTO city (id, name, departmentId) VALUES (47692, 'San Sebastián de Buenavista', 47); INSERT INTO city (id, name, departmentId) VALUES (47703, 'San Zenón', 47); INSERT INTO city (id, name, departmentId) VALUES (47707, 'Santa Ana', 47); INSERT INTO city (id, name, departmentId) VALUES (47720, 'Santa Bárbara de Pinto', 47); INSERT INTO city (id, name, departmentId) VALUES (47745, 'Sitionuevo', 47); INSERT INTO city (id, name, departmentId) VALUES (47798, 'Tenerife', 47); INSERT INTO city (id, name, departmentId) VALUES (47960, 'Zapayán', 47); INSERT INTO city (id, name, departmentId) VALUES (47980, 'Zona Bananera', 47); INSERT INTO city (id, name, departmentId) VALUES (50001, 'Villavicencio', 50); INSERT INTO city (id, name, departmentId) VALUES (50006, 'Acacias', 50); INSERT INTO city (id, name, departmentId) VALUES (50110, 'Barranca de Upía', 50); INSERT INTO city (id, name, departmentId) VALUES (50124, 'Cabuyaro', 50); INSERT INTO city (id, name, departmentId) VALUES (50150, 'Castilla la Nueva', 50); INSERT INTO city (id, name, departmentId) VALUES (50223, 'Cubarral', 50); INSERT INTO city (id, name, departmentId) VALUES (50226, 'Cumaral', 50); INSERT INTO city (id, name, departmentId) VALUES (50245, 'El Calvario', 50); INSERT INTO city (id, name, departmentId) VALUES (50251, 'El Castillo', 50); INSERT INTO city (id, name, departmentId) VALUES (50270, 'El Dorado', 50); INSERT INTO city (id, name, departmentId) VALUES (50287, 'Fuente de Oro', 50); INSERT INTO city (id, name, departmentId) VALUES (50313, 'Granada', 50); INSERT INTO city (id, name, departmentId) VALUES (50318, 'Guamal', 50); INSERT INTO city (id, name, departmentId) VALUES (50325, 'Mapiripán', 50); INSERT INTO city (id, name, departmentId) VALUES (50330, 'Mesetas', 50); INSERT INTO city (id, name, departmentId) VALUES (50350, 'La Macarena', 50); INSERT INTO city (id, name, departmentId) VALUES (50370, 'Uribe', 50); INSERT INTO city (id, name, departmentId) VALUES (50400, 'Lejanías', 50); INSERT INTO city (id, name, departmentId) VALUES (50450, 'Puerto Concordia', 50); INSERT INTO city (id, name, departmentId) VALUES (50568, 'Puerto Gaitán', 50); INSERT INTO city (id, name, departmentId) VALUES (50573, 'Puerto López', 50); INSERT INTO city (id, name, departmentId) VALUES (50577, 'Puerto Lleras', 50); INSERT INTO city (id, name, departmentId) VALUES (50590, 'Puerto Rico', 50); INSERT INTO city (id, name, departmentId) VALUES (50606, 'Restrepo', 50); INSERT INTO city (id, name, departmentId) VALUES (50680, 'San Carlos de Guaroa', 50); INSERT INTO city (id, name, departmentId) VALUES (50683, 'San Juan de Arama', 50); INSERT INTO city (id, name, departmentId) VALUES (50686, 'San Juanito', 50); INSERT INTO city (id, name, departmentId) VALUES (50689, 'San Martín', 50); INSERT INTO city (id, name, departmentId) VALUES (50711, 'Vista Hermosa', 50); INSERT INTO city (id, name, departmentId) VALUES (52001, 'Pasto', 52); INSERT INTO city (id, name, departmentId) VALUES (52019, 'Albán', 52); INSERT INTO city (id, name, departmentId) VALUES (52022, 'Aldana', 52); INSERT INTO city (id, name, departmentId) VALUES (52036, 'Ancuyá', 52); INSERT INTO city (id, name, departmentId) VALUES (52051, 'Arboleda', 52); INSERT INTO city (id, name, departmentId) VALUES (52079, 'Barbacoas', 52); INSERT INTO city (id, name, departmentId) VALUES (52083, 'Belén', 52); INSERT INTO city (id, name, departmentId) VALUES (52110, 'Buesaco', 52); INSERT INTO city (id, name, departmentId) VALUES (52203, 'Colón', 52); INSERT INTO city (id, name, departmentId) VALUES (52207, 'Consaca', 52); INSERT INTO city (id, name, departmentId) VALUES (52210, 'Contadero', 52); INSERT INTO city (id, name, departmentId) VALUES (52215, 'Córdoba', 52); INSERT INTO city (id, name, departmentId) VALUES (52224, 'Cuaspud', 52); INSERT INTO city (id, name, departmentId) VALUES (52227, 'Cumbal', 52); INSERT INTO city (id, name, departmentId) VALUES (52233, 'Cumbitara', 52); INSERT INTO city (id, name, departmentId) VALUES (52240, 'Chachagüí', 52); INSERT INTO city (id, name, departmentId) VALUES (52250, 'El Charco', 52); INSERT INTO city (id, name, departmentId) VALUES (52254, 'El Peñol', 52); INSERT INTO city (id, name, departmentId) VALUES (52256, 'El Rosario', 52); INSERT INTO city (id, name, departmentId) VALUES (52258, 'El Tablón de Gómez', 52); INSERT INTO city (id, name, departmentId) VALUES (52260, 'El Tambo', 52); INSERT INTO city (id, name, departmentId) VALUES (52287, 'Funes', 52); INSERT INTO city (id, name, departmentId) VALUES (52317, 'Guachucal', 52); INSERT INTO city (id, name, departmentId) VALUES (52320, 'Guaitarilla', 52); INSERT INTO city (id, name, departmentId) VALUES (52323, 'Gualmatán', 52); INSERT INTO city (id, name, departmentId) VALUES (52352, 'Iles', 52); INSERT INTO city (id, name, departmentId) VALUES (52354, 'Imués', 52); INSERT INTO city (id, name, departmentId) VALUES (52356, 'Ipiales', 52); INSERT INTO city (id, name, departmentId) VALUES (52378, 'La Cruz', 52); INSERT INTO city (id, name, departmentId) VALUES (52381, 'La Florida', 52); INSERT INTO city (id, name, departmentId) VALUES (52385, 'La Llanada', 52); INSERT INTO city (id, name, departmentId) VALUES (52390, 'La Tola', 52); INSERT INTO city (id, name, departmentId) VALUES (52399, 'La Unión', 52); INSERT INTO city (id, name, departmentId) VALUES (52405, 'Leiva', 52); INSERT INTO city (id, name, departmentId) VALUES (52411, 'Linares', 52); INSERT INTO city (id, name, departmentId) VALUES (52418, 'Los Andes', 52); INSERT INTO city (id, name, departmentId) VALUES (52427, 'Magüí', 52); INSERT INTO city (id, name, departmentId) VALUES (52435, 'Mallama', 52); INSERT INTO city (id, name, departmentId) VALUES (52473, 'Mosquera', 52); INSERT INTO city (id, name, departmentId) VALUES (52480, 'Nariño', 52); INSERT INTO city (id, name, departmentId) VALUES (52490, 'Olaya Herrera', 52); INSERT INTO city (id, name, departmentId) VALUES (52506, 'Ospina', 52); INSERT INTO city (id, name, departmentId) VALUES (52520, 'Francisco Pizarro', 52); INSERT INTO city (id, name, departmentId) VALUES (52540, 'Policarpa', 52); INSERT INTO city (id, name, departmentId) VALUES (52560, 'Potosí', 52); INSERT INTO city (id, name, departmentId) VALUES (52565, 'Providencia', 52); INSERT INTO city (id, name, departmentId) VALUES (52573, 'Puerres', 52); INSERT INTO city (id, name, departmentId) VALUES (52585, 'Pupiales', 52); INSERT INTO city (id, name, departmentId) VALUES (52612, 'Ricaurte', 52); INSERT INTO city (id, name, departmentId) VALUES (52621, '<NAME>', 52); INSERT INTO city (id, name, departmentId) VALUES (52678, 'Samaniego', 52); INSERT INTO city (id, name, departmentId) VALUES (52683, 'Sandoná', 52); INSERT INTO city (id, name, departmentId) VALUES (52685, 'San Bernardo', 52); INSERT INTO city (id, name, departmentId) VALUES (52687, 'San Lorenzo', 52); INSERT INTO city (id, name, departmentId) VALUES (52693, 'San Pablo', 52); INSERT INTO city (id, name, departmentId) VALUES (52694, 'San Pedro de Cartago', 52); INSERT INTO city (id, name, departmentId) VALUES (52696, 'Santa Bárbara', 52); INSERT INTO city (id, name, departmentId) VALUES (52699, 'Santacruz', 52); INSERT INTO city (id, name, departmentId) VALUES (52720, 'Sapuyes', 52); INSERT INTO city (id, name, departmentId) VALUES (52786, 'Taminango', 52); INSERT INTO city (id, name, departmentId) VALUES (52788, 'Tangua', 52); INSERT INTO city (id, name, departmentId) VALUES (52835, 'San Andrés de Tumaco', 52); INSERT INTO city (id, name, departmentId) VALUES (52838, 'Túquerres', 52); INSERT INTO city (id, name, departmentId) VALUES (52885, 'Yacuanquer', 52); INSERT INTO city (id, name, departmentId) VALUES (54001, 'Cúcuta', 54); INSERT INTO city (id, name, departmentId) VALUES (54003, 'Abrego', 54); INSERT INTO city (id, name, departmentId) VALUES (54051, 'Arboledas', 54); INSERT INTO city (id, name, departmentId) VALUES (54099, 'Bochalema', 54); INSERT INTO city (id, name, departmentId) VALUES (54109, 'Bucarasica', 54); INSERT INTO city (id, name, departmentId) VALUES (54125, 'Cácota', 54); INSERT INTO city (id, name, departmentId) VALUES (54128, 'Cachirá', 54); INSERT INTO city (id, name, departmentId) VALUES (54172, 'Chinácota', 54); INSERT INTO city (id, name, departmentId) VALUES (54174, 'Chitagá', 54); INSERT INTO city (id, name, departmentId) VALUES (54206, 'Convención', 54); INSERT INTO city (id, name, departmentId) VALUES (54223, 'Cucutilla', 54); INSERT INTO city (id, name, departmentId) VALUES (54239, 'Durania', 54); INSERT INTO city (id, name, departmentId) VALUES (54245, 'El Carmen', 54); INSERT INTO city (id, name, departmentId) VALUES (54250, 'El Tarra', 54); INSERT INTO city (id, name, departmentId) VALUES (54261, 'El Zulia', 54); INSERT INTO city (id, name, departmentId) VALUES (54313, 'Gramalote', 54); INSERT INTO city (id, name, departmentId) VALUES (54344, 'Hacarí', 54); INSERT INTO city (id, name, departmentId) VALUES (54347, 'Herrán', 54); INSERT INTO city (id, name, departmentId) VALUES (54377, 'Labateca', 54); INSERT INTO city (id, name, departmentId) VALUES (54385, 'La Esperanza', 54); INSERT INTO city (id, name, departmentId) VALUES (54398, 'La Playa', 54); INSERT INTO city (id, name, departmentId) VALUES (54405, 'Los Patios', 54); INSERT INTO city (id, name, departmentId) VALUES (54418, 'Lourdes', 54); INSERT INTO city (id, name, departmentId) VALUES (54480, 'Mutiscua', 54); INSERT INTO city (id, name, departmentId) VALUES (54498, 'Ocaña', 54); INSERT INTO city (id, name, departmentId) VALUES (54518, 'Pamplona', 54); INSERT INTO city (id, name, departmentId) VALUES (54520, 'Pamplonita', 54); INSERT INTO city (id, name, departmentId) VALUES (54553, 'Puerto Santander', 54); INSERT INTO city (id, name, departmentId) VALUES (54599, 'Ragonvalia', 54); INSERT INTO city (id, name, departmentId) VALUES (54660, 'Salazar', 54); INSERT INTO city (id, name, departmentId) VALUES (54670, 'San Calixto', 54); INSERT INTO city (id, name, departmentId) VALUES (54673, 'San Cayetano', 54); INSERT INTO city (id, name, departmentId) VALUES (54680, 'Santiago', 54); INSERT INTO city (id, name, departmentId) VALUES (54720, 'Sardinata', 54); INSERT INTO city (id, name, departmentId) VALUES (54743, 'Silos', 54); INSERT INTO city (id, name, departmentId) VALUES (54800, 'Teorama', 54); INSERT INTO city (id, name, departmentId) VALUES (54810, 'Tibú', 54); INSERT INTO city (id, name, departmentId) VALUES (54820, 'Toledo', 54); INSERT INTO city (id, name, departmentId) VALUES (54871, 'Villa Caro', 54); INSERT INTO city (id, name, departmentId) VALUES (54874, 'Villa del Rosario', 54); INSERT INTO city (id, name, departmentId) VALUES (63001, 'Armenia', 63); INSERT INTO city (id, name, departmentId) VALUES (63111, 'Buenavista', 63); INSERT INTO city (id, name, departmentId) VALUES (63130, 'Calarcá', 63); INSERT INTO city (id, name, departmentId) VALUES (63190, 'Circasia', 63); INSERT INTO city (id, name, departmentId) VALUES (63212, 'Córdoba', 63); INSERT INTO city (id, name, departmentId) VALUES (63272, 'Filandia', 63); INSERT INTO city (id, name, departmentId) VALUES (63302, 'Génova', 63); INSERT INTO city (id, name, departmentId) VALUES (63401, 'La Tebaida', 63); INSERT INTO city (id, name, departmentId) VALUES (63470, 'Montenegro', 63); INSERT INTO city (id, name, departmentId) VALUES (63548, 'Pijao', 63); INSERT INTO city (id, name, departmentId) VALUES (63594, 'Quimbaya', 63); INSERT INTO city (id, name, departmentId) VALUES (63690, 'Salento', 63); INSERT INTO city (id, name, departmentId) VALUES (66001, 'Pereira', 66); INSERT INTO city (id, name, departmentId) VALUES (66045, 'Apía', 66); INSERT INTO city (id, name, departmentId) VALUES (66075, 'Balboa', 66); INSERT INTO city (id, name, departmentId) VALUES (66088, 'Belén de Umbría', 66); INSERT INTO city (id, name, departmentId) VALUES (66170, 'Dosquebradas', 66); INSERT INTO city (id, name, departmentId) VALUES (66318, 'Guática', 66); INSERT INTO city (id, name, departmentId) VALUES (66383, 'La Celia', 66); INSERT INTO city (id, name, departmentId) VALUES (66400, 'La Virginia', 66); INSERT INTO city (id, name, departmentId) VALUES (66440, 'Marsella', 66); INSERT INTO city (id, name, departmentId) VALUES (66456, 'Mistrató', 66); INSERT INTO city (id, name, departmentId) VALUES (66572, 'Pueblo Rico', 66); INSERT INTO city (id, name, departmentId) VALUES (66594, 'Quinchía', 66); INSERT INTO city (id, name, departmentId) VALUES (66682, 'Santa Rosa de Cabal', 66); INSERT INTO city (id, name, departmentId) VALUES (66687, 'Santuario', 66); INSERT INTO city (id, name, departmentId) VALUES (68001, 'Bucaramanga', 68); INSERT INTO city (id, name, departmentId) VALUES (68013, 'Aguada', 68); INSERT INTO city (id, name, departmentId) VALUES (68020, 'Albania', 68); INSERT INTO city (id, name, departmentId) VALUES (68051, 'Aratoca', 68); INSERT INTO city (id, name, departmentId) VALUES (68077, 'Barbosa', 68); INSERT INTO city (id, name, departmentId) VALUES (68079, 'Barichara', 68); INSERT INTO city (id, name, departmentId) VALUES (68081, 'Barrancabermeja', 68); INSERT INTO city (id, name, departmentId) VALUES (68092, 'Betulia', 68); INSERT INTO city (id, name, departmentId) VALUES (68101, 'Bolívar', 68); INSERT INTO city (id, name, departmentId) VALUES (68121, 'Cabrera', 68); INSERT INTO city (id, name, departmentId) VALUES (68132, 'California', 68); INSERT INTO city (id, name, departmentId) VALUES (68147, 'Capitanejo', 68); INSERT INTO city (id, name, departmentId) VALUES (68152, 'Carcasí', 68); INSERT INTO city (id, name, departmentId) VALUES (68160, 'Cepitá', 68); INSERT INTO city (id, name, departmentId) VALUES (68162, 'Cerrito', 68); INSERT INTO city (id, name, departmentId) VALUES (68167, 'Charalá', 68); INSERT INTO city (id, name, departmentId) VALUES (68169, 'Charta', 68); INSERT INTO city (id, name, departmentId) VALUES (68176, 'Chimá', 68); INSERT INTO city (id, name, departmentId) VALUES (68179, 'Chipatá', 68); INSERT INTO city (id, name, departmentId) VALUES (68190, 'Cimitarra', 68); INSERT INTO city (id, name, departmentId) VALUES (68207, 'Concepción', 68); INSERT INTO city (id, name, departmentId) VALUES (68209, 'Confines', 68); INSERT INTO city (id, name, departmentId) VALUES (68211, 'Contratación', 68); INSERT INTO city (id, name, departmentId) VALUES (68217, 'Coromoro', 68); INSERT INTO city (id, name, departmentId) VALUES (68229, 'Curití', 68); INSERT INTO city (id, name, departmentId) VALUES (68235, 'El Carmen de Chucurí', 68); INSERT INTO city (id, name, departmentId) VALUES (68245, 'El Guacamayo', 68); INSERT INTO city (id, name, departmentId) VALUES (68250, 'El Peñón', 68); INSERT INTO city (id, name, departmentId) VALUES (68255, 'El Playón', 68); INSERT INTO city (id, name, departmentId) VALUES (68264, 'Encino', 68); INSERT INTO city (id, name, departmentId) VALUES (68266, 'Enciso', 68); INSERT INTO city (id, name, departmentId) VALUES (68271, 'Florián', 68); INSERT INTO city (id, name, departmentId) VALUES (68276, 'Floridablanca', 68); INSERT INTO city (id, name, departmentId) VALUES (68296, 'Galán', 68); INSERT INTO city (id, name, departmentId) VALUES (68298, 'Gambita', 68); INSERT INTO city (id, name, departmentId) VALUES (68307, 'Girón', 68); INSERT INTO city (id, name, departmentId) VALUES (68318, 'Guaca', 68); INSERT INTO city (id, name, departmentId) VALUES (68320, 'Guadalupe', 68); INSERT INTO city (id, name, departmentId) VALUES (68322, 'Guapotá', 68); INSERT INTO city (id, name, departmentId) VALUES (68324, 'Guavatá', 68); INSERT INTO city (id, name, departmentId) VALUES (68327, 'Güepsa', 68); INSERT INTO city (id, name, departmentId) VALUES (68344, 'Hato', 68); INSERT INTO city (id, name, departmentId) VALUES (68368, '<NAME>', 68); INSERT INTO city (id, name, departmentId) VALUES (68370, 'Jordán', 68); INSERT INTO city (id, name, departmentId) VALUES (68377, 'La Belleza', 68); INSERT INTO city (id, name, departmentId) VALUES (68385, 'Landázuri', 68); INSERT INTO city (id, name, departmentId) VALUES (68397, 'La Paz', 68); INSERT INTO city (id, name, departmentId) VALUES (68406, 'Lebríja', 68); INSERT INTO city (id, name, departmentId) VALUES (68418, 'Los Santos', 68); INSERT INTO city (id, name, departmentId) VALUES (68425, 'Macaravita', 68); INSERT INTO city (id, name, departmentId) VALUES (68432, 'Málaga', 68); INSERT INTO city (id, name, departmentId) VALUES (68444, 'Matanza', 68); INSERT INTO city (id, name, departmentId) VALUES (68464, 'Mogotes', 68); INSERT INTO city (id, name, departmentId) VALUES (68468, 'Molagavita', 68); INSERT INTO city (id, name, departmentId) VALUES (68498, 'Ocamonte', 68); INSERT INTO city (id, name, departmentId) VALUES (68500, 'Oiba', 68); INSERT INTO city (id, name, departmentId) VALUES (68502, 'Onzaga', 68); INSERT INTO city (id, name, departmentId) VALUES (68522, 'Palmar', 68); INSERT INTO city (id, name, departmentId) VALUES (68524, 'Palmas del Socorro', 68); INSERT INTO city (id, name, departmentId) VALUES (68533, 'Páramo', 68); INSERT INTO city (id, name, departmentId) VALUES (68547, 'Piedecuesta', 68); INSERT INTO city (id, name, departmentId) VALUES (68549, 'Pinchote', 68); INSERT INTO city (id, name, departmentId) VALUES (68572, 'Puente Nacional', 68); INSERT INTO city (id, name, departmentId) VALUES (68573, 'Puerto Parra', 68); INSERT INTO city (id, name, departmentId) VALUES (68575, 'P<NAME>', 68); INSERT INTO city (id, name, departmentId) VALUES (68615, 'Rionegro', 68); INSERT INTO city (id, name, departmentId) VALUES (68655, 'Sabana de Torres', 68); INSERT INTO city (id, name, departmentId) VALUES (68669, 'San Andrés', 68); INSERT INTO city (id, name, departmentId) VALUES (68673, 'San Benito', 68); INSERT INTO city (id, name, departmentId) VALUES (68679, 'San Gil', 68); INSERT INTO city (id, name, departmentId) VALUES (68682, 'San Joaquín', 68); INSERT INTO city (id, name, departmentId) VALUES (68684, 'San José de Miranda', 68); INSERT INTO city (id, name, departmentId) VALUES (68686, 'San Miguel', 68); INSERT INTO city (id, name, departmentId) VALUES (68689, 'San Vicente de Chucurí', 68); INSERT INTO city (id, name, departmentId) VALUES (68705, 'Santa Bárbara', 68); INSERT INTO city (id, name, departmentId) VALUES (68720, 'Santa Helena del Opón', 68); INSERT INTO city (id, name, departmentId) VALUES (68745, 'Simacota', 68); INSERT INTO city (id, name, departmentId) VALUES (68755, 'Socorro', 68); INSERT INTO city (id, name, departmentId) VALUES (68770, 'Suaita', 68); INSERT INTO city (id, name, departmentId) VALUES (68773, 'Sucre', 68); INSERT INTO city (id, name, departmentId) VALUES (68780, 'Suratá', 68); INSERT INTO city (id, name, departmentId) VALUES (68820, 'Tona', 68); INSERT INTO city (id, name, departmentId) VALUES (68855, 'Valle de San José', 68); INSERT INTO city (id, name, departmentId) VALUES (68861, 'Vélez', 68); INSERT INTO city (id, name, departmentId) VALUES (68867, 'Vetas', 68); INSERT INTO city (id, name, departmentId) VALUES (68872, 'Villanueva', 68); INSERT INTO city (id, name, departmentId) VALUES (68895, 'Zapatoca', 68); INSERT INTO city (id, name, departmentId) VALUES (70001, 'Sincelejo', 70); INSERT INTO city (id, name, departmentId) VALUES (70110, 'Buenavista', 70); INSERT INTO city (id, name, departmentId) VALUES (70124, 'Caimito', 70); INSERT INTO city (id, name, departmentId) VALUES (70204, 'Coloso', 70); INSERT INTO city (id, name, departmentId) VALUES (70215, 'Corozal', 70); INSERT INTO city (id, name, departmentId) VALUES (70221, 'Coveñas', 70); INSERT INTO city (id, name, departmentId) VALUES (70230, 'Chalán', 70); INSERT INTO city (id, name, departmentId) VALUES (70233, 'El Roble', 70); INSERT INTO city (id, name, departmentId) VALUES (70235, 'Galeras', 70); INSERT INTO city (id, name, departmentId) VALUES (70265, 'Guaranda', 70); INSERT INTO city (id, name, departmentId) VALUES (70400, 'La Unión', 70); INSERT INTO city (id, name, departmentId) VALUES (70418, 'Los Palmitos', 70); INSERT INTO city (id, name, departmentId) VALUES (70429, 'Majagual', 70); INSERT INTO city (id, name, departmentId) VALUES (70473, 'Morroa', 70); INSERT INTO city (id, name, departmentId) VALUES (70508, 'Ovejas', 70); INSERT INTO city (id, name, departmentId) VALUES (70523, 'Palmito', 70); INSERT INTO city (id, name, departmentId) VALUES (70670, 'Sampués', 70); INSERT INTO city (id, name, departmentId) VALUES (70678, 'San Benito Abad', 70); INSERT INTO city (id, name, departmentId) VALUES (70702, 'San Juan de Betulia', 70); INSERT INTO city (id, name, departmentId) VALUES (70708, 'San Marcos', 70); INSERT INTO city (id, name, departmentId) VALUES (70713, 'San Onofre', 70); INSERT INTO city (id, name, departmentId) VALUES (70717, 'San Pedro', 70); INSERT INTO city (id, name, departmentId) VALUES (70742, 'San Luis de Sincé', 70); INSERT INTO city (id, name, departmentId) VALUES (70771, 'Sucre', 70); INSERT INTO city (id, name, departmentId) VALUES (70820, 'Santiago de Tolú', 70); INSERT INTO city (id, name, departmentId) VALUES (70823, 'Tolú Viejo', 70); INSERT INTO city (id, name, departmentId) VALUES (73001, 'Ibagué', 73); INSERT INTO city (id, name, departmentId) VALUES (73024, 'Alpujarra', 73); INSERT INTO city (id, name, departmentId) VALUES (73026, 'Alvarado', 73); INSERT INTO city (id, name, departmentId) VALUES (73030, 'Ambalema', 73); INSERT INTO city (id, name, departmentId) VALUES (73043, 'Anzoátegui', 73); INSERT INTO city (id, name, departmentId) VALUES (73055, 'Armero', 73); INSERT INTO city (id, name, departmentId) VALUES (73067, 'Ataco', 73); INSERT INTO city (id, name, departmentId) VALUES (73124, 'Cajamarca', 73); INSERT INTO city (id, name, departmentId) VALUES (73148, 'Carmen de Apicala', 73); INSERT INTO city (id, name, departmentId) VALUES (73152, 'Casabianca', 73); INSERT INTO city (id, name, departmentId) VALUES (73168, 'Chaparral', 73); INSERT INTO city (id, name, departmentId) VALUES (73200, 'Coello', 73); INSERT INTO city (id, name, departmentId) VALUES (73217, 'Coyaima', 73); INSERT INTO city (id, name, departmentId) VALUES (73226, 'Cunday', 73); INSERT INTO city (id, name, departmentId) VALUES (73236, 'Dolores', 73); INSERT INTO city (id, name, departmentId) VALUES (73268, 'Espinal', 73); INSERT INTO city (id, name, departmentId) VALUES (73270, 'Falan', 73); INSERT INTO city (id, name, departmentId) VALUES (73275, 'Flandes', 73); INSERT INTO city (id, name, departmentId) VALUES (73283, 'Fresno', 73); INSERT INTO city (id, name, departmentId) VALUES (73319, 'Guamo', 73); INSERT INTO city (id, name, departmentId) VALUES (73347, 'Herveo', 73); INSERT INTO city (id, name, departmentId) VALUES (73349, 'Honda', 73); INSERT INTO city (id, name, departmentId) VALUES (73352, 'Icononzo', 73); INSERT INTO city (id, name, departmentId) VALUES (73408, 'Lérida', 73); INSERT INTO city (id, name, departmentId) VALUES (73411, 'Líbano', 73); INSERT INTO city (id, name, departmentId) VALUES (73443, 'Mariquita', 73); INSERT INTO city (id, name, departmentId) VALUES (73449, 'Melgar', 73); INSERT INTO city (id, name, departmentId) VALUES (73461, 'Murillo', 73); INSERT INTO city (id, name, departmentId) VALUES (73483, 'Natagaima', 73); INSERT INTO city (id, name, departmentId) VALUES (73504, 'Ortega', 73); INSERT INTO city (id, name, departmentId) VALUES (73520, 'Palocabildo', 73); INSERT INTO city (id, name, departmentId) VALUES (73547, 'Piedras', 73); INSERT INTO city (id, name, departmentId) VALUES (73555, 'Planadas', 73); INSERT INTO city (id, name, departmentId) VALUES (73563, 'Prado', 73); INSERT INTO city (id, name, departmentId) VALUES (73585, 'Purificación', 73); INSERT INTO city (id, name, departmentId) VALUES (73616, 'Rio Blanco', 73); INSERT INTO city (id, name, departmentId) VALUES (73622, 'Roncesvalles', 73); INSERT INTO city (id, name, departmentId) VALUES (73624, 'Rovira', 73); INSERT INTO city (id, name, departmentId) VALUES (73671, 'Saldaña', 73); INSERT INTO city (id, name, departmentId) VALUES (73675, 'San Antonio', 73); INSERT INTO city (id, name, departmentId) VALUES (73678, 'San Luis', 73); INSERT INTO city (id, name, departmentId) VALUES (73686, 'Santa Isabel', 73); INSERT INTO city (id, name, departmentId) VALUES (73770, 'Suárez', 73); INSERT INTO city (id, name, departmentId) VALUES (73854, 'Valle de San Juan', 73); INSERT INTO city (id, name, departmentId) VALUES (73861, 'Venadillo', 73); INSERT INTO city (id, name, departmentId) VALUES (73870, 'Villahermosa', 73); INSERT INTO city (id, name, departmentId) VALUES (73873, 'Villarrica', 73); INSERT INTO city (id, name, departmentId) VALUES (76001, 'Cali', 76); INSERT INTO city (id, name, departmentId) VALUES (76020, 'Alcalá', 76); INSERT INTO city (id, name, departmentId) VALUES (76036, 'Andalucía', 76); INSERT INTO city (id, name, departmentId) VALUES (76041, 'Ansermanuevo', 76); INSERT INTO city (id, name, departmentId) VALUES (76054, 'Argelia', 76); INSERT INTO city (id, name, departmentId) VALUES (76100, 'Bolívar', 76); INSERT INTO city (id, name, departmentId) VALUES (76109, 'Buenaventura', 76); INSERT INTO city (id, name, departmentId) VALUES (76111, 'Guadalajara de Buga', 76); INSERT INTO city (id, name, departmentId) VALUES (76113, 'Bugalagrande', 76); INSERT INTO city (id, name, departmentId) VALUES (76122, 'Caicedonia', 76); INSERT INTO city (id, name, departmentId) VALUES (76126, 'Calima', 76); INSERT INTO city (id, name, departmentId) VALUES (76130, 'Candelaria', 76); INSERT INTO city (id, name, departmentId) VALUES (76147, 'Cartago', 76); INSERT INTO city (id, name, departmentId) VALUES (76233, 'Dagua', 76); INSERT INTO city (id, name, departmentId) VALUES (76243, 'El Águila', 76); INSERT INTO city (id, name, departmentId) VALUES (76246, 'El Cairo', 76); INSERT INTO city (id, name, departmentId) VALUES (76248, 'El Cerrito', 76); INSERT INTO city (id, name, departmentId) VALUES (76250, 'El Dovio', 76); INSERT INTO city (id, name, departmentId) VALUES (76275, 'Florida', 76); INSERT INTO city (id, name, departmentId) VALUES (76306, 'Ginebra', 76); INSERT INTO city (id, name, departmentId) VALUES (76318, 'Guacarí', 76); INSERT INTO city (id, name, departmentId) VALUES (76364, 'Jamundí', 76); INSERT INTO city (id, name, departmentId) VALUES (76377, 'La Cumbre', 76); INSERT INTO city (id, name, departmentId) VALUES (76400, 'La Unión', 76); INSERT INTO city (id, name, departmentId) VALUES (76403, 'La Victoria', 76); INSERT INTO city (id, name, departmentId) VALUES (76497, 'Obando', 76); INSERT INTO city (id, name, departmentId) VALUES (76520, 'Palmira', 76); INSERT INTO city (id, name, departmentId) VALUES (76563, 'Pradera', 76); INSERT INTO city (id, name, departmentId) VALUES (76606, 'Restrepo', 76); INSERT INTO city (id, name, departmentId) VALUES (76616, 'Riofrío', 76); INSERT INTO city (id, name, departmentId) VALUES (76622, 'Roldanillo', 76); INSERT INTO city (id, name, departmentId) VALUES (76670, 'San Pedro', 76); INSERT INTO city (id, name, departmentId) VALUES (76736, 'Sevilla', 76); INSERT INTO city (id, name, departmentId) VALUES (76823, 'Toro', 76); INSERT INTO city (id, name, departmentId) VALUES (76828, 'Trujillo', 76); INSERT INTO city (id, name, departmentId) VALUES (76834, 'Tuluá', 76); INSERT INTO city (id, name, departmentId) VALUES (76845, 'Ulloa', 76); INSERT INTO city (id, name, departmentId) VALUES (76863, 'Versalles', 76); INSERT INTO city (id, name, departmentId) VALUES (76869, 'Vijes', 76); INSERT INTO city (id, name, departmentId) VALUES (76890, 'Yotoco', 76); INSERT INTO city (id, name, departmentId) VALUES (76892, 'Yumbo', 76); INSERT INTO city (id, name, departmentId) VALUES (76895, 'Zarzal', 76); INSERT INTO city (id, name, departmentId) VALUES (81001, 'Arauca', 81); INSERT INTO city (id, name, departmentId) VALUES (81065, 'Arauquita', 81); INSERT INTO city (id, name, departmentId) VALUES (81220, 'Cravo Norte', 81); INSERT INTO city (id, name, departmentId) VALUES (81300, 'Fortul', 81); INSERT INTO city (id, name, departmentId) VALUES (81591, 'Puerto Rondón', 81); INSERT INTO city (id, name, departmentId) VALUES (81736, 'Saravena', 81); INSERT INTO city (id, name, departmentId) VALUES (81794, 'Tame', 81); INSERT INTO city (id, name, departmentId) VALUES (85001, 'Yopal', 85); INSERT INTO city (id, name, departmentId) VALUES (85010, 'Aguazul', 85); INSERT INTO city (id, name, departmentId) VALUES (85015, 'Chámeza', 85); INSERT INTO city (id, name, departmentId) VALUES (85125, 'Hato Corozal', 85); INSERT INTO city (id, name, departmentId) VALUES (85136, 'La Salina', 85); INSERT INTO city (id, name, departmentId) VALUES (85139, 'Maní', 85); INSERT INTO city (id, name, departmentId) VALUES (85162, 'Monterrey', 85); INSERT INTO city (id, name, departmentId) VALUES (85225, 'Nunchía', 85); INSERT INTO city (id, name, departmentId) VALUES (85230, 'Orocué', 85); INSERT INTO city (id, name, departmentId) VALUES (85250, 'Paz de Ariporo', 85); INSERT INTO city (id, name, departmentId) VALUES (85263, 'Pore', 85); INSERT INTO city (id, name, departmentId) VALUES (85279, 'Recetor', 85); INSERT INTO city (id, name, departmentId) VALUES (85300, 'Sabanalarga', 85); INSERT INTO city (id, name, departmentId) VALUES (85315, 'Sácama', 85); INSERT INTO city (id, name, departmentId) VALUES (85325, 'San Luis de Gaceno', 85); INSERT INTO city (id, name, departmentId) VALUES (85400, 'Támara', 85); INSERT INTO city (id, name, departmentId) VALUES (85410, 'Tauramena', 85); INSERT INTO city (id, name, departmentId) VALUES (85430, 'Trinidad', 85); INSERT INTO city (id, name, departmentId) VALUES (85440, 'Villanueva', 85); INSERT INTO city (id, name, departmentId) VALUES (86001, 'Mocoa', 86); INSERT INTO city (id, name, departmentId) VALUES (86219, 'Colón', 86); INSERT INTO city (id, name, departmentId) VALUES (86320, 'Orito', 86); INSERT INTO city (id, name, departmentId) VALUES (86568, 'Puerto Asís', 86); INSERT INTO city (id, name, departmentId) VALUES (86569, 'Puerto Caicedo', 86); INSERT INTO city (id, name, departmentId) VALUES (86571, '<NAME>', 86); INSERT INTO city (id, name, departmentId) VALUES (86573, 'Leguízamo', 86); INSERT INTO city (id, name, departmentId) VALUES (86749, 'Sibundoy', 86); INSERT INTO city (id, name, departmentId) VALUES (86755, 'San Francisco', 86); INSERT INTO city (id, name, departmentId) VALUES (86757, 'San Miguel', 86); INSERT INTO city (id, name, departmentId) VALUES (86760, 'Santiago', 86); INSERT INTO city (id, name, departmentId) VALUES (86865, 'Valle de Guamez', 86); INSERT INTO city (id, name, departmentId) VALUES (86885, 'Villagarzón', 86); INSERT INTO city (id, name, departmentId) VALUES (88001, 'San Andrés', 88); INSERT INTO city (id, name, departmentId) VALUES (88564, 'Providencia', 88); INSERT INTO city (id, name, departmentId) VALUES (91001, 'Leticia', 91); INSERT INTO city (id, name, departmentId) VALUES (91263, 'El Encanto', 91); INSERT INTO city (id, name, departmentId) VALUES (91405, 'La Chorrera', 91); INSERT INTO city (id, name, departmentId) VALUES (91407, 'La Pedrera', 91); INSERT INTO city (id, name, departmentId) VALUES (91430, 'La Victoria', 91); INSERT INTO city (id, name, departmentId) VALUES (91460, 'Miriti Paraná', 91); INSERT INTO city (id, name, departmentId) VALUES (91530, 'Puerto Alegría', 91); INSERT INTO city (id, name, departmentId) VALUES (91536, 'Puerto Arica', 91); INSERT INTO city (id, name, departmentId) VALUES (91540, 'Puerto Nariño', 91); INSERT INTO city (id, name, departmentId) VALUES (91669, 'Puerto Santander', 91); INSERT INTO city (id, name, departmentId) VALUES (91798, 'Tarapacá', 91); INSERT INTO city (id, name, departmentId) VALUES (94001, 'Inírida', 94); INSERT INTO city (id, name, departmentId) VALUES (94343, 'Barranco Minas', 94); INSERT INTO city (id, name, departmentId) VALUES (94663, 'Mapiripana', 94); INSERT INTO city (id, name, departmentId) VALUES (94883, 'San Felipe', 94); INSERT INTO city (id, name, departmentId) VALUES (94884, 'Puerto Colombia', 94); INSERT INTO city (id, name, departmentId) VALUES (94885, 'La Guadalupe', 94); INSERT INTO city (id, name, departmentId) VALUES (94886, 'Cacahual', 94); INSERT INTO city (id, name, departmentId) VALUES (94887, 'Pana Pana', 94); INSERT INTO city (id, name, departmentId) VALUES (94888, 'Morichal', 94); INSERT INTO city (id, name, departmentId) VALUES (95001, 'San José del Guaviare', 95); INSERT INTO city (id, name, departmentId) VALUES (95015, 'Calamar', 95); INSERT INTO city (id, name, departmentId) VALUES (95025, 'El Retorno', 95); INSERT INTO city (id, name, departmentId) VALUES (95200, 'Miraflores', 95); INSERT INTO city (id, name, departmentId) VALUES (97001, 'Mitú', 97); INSERT INTO city (id, name, departmentId) VALUES (97161, 'Caruru', 97); INSERT INTO city (id, name, departmentId) VALUES (97511, 'Pacoa', 97); INSERT INTO city (id, name, departmentId) VALUES (97666, 'Taraira', 97); INSERT INTO city (id, name, departmentId) VALUES (97777, 'Papunaua', 97); INSERT INTO city (id, name, departmentId) VALUES (97889, 'Yavaraté', 97); INSERT INTO city (id, name, departmentId) VALUES (99001, 'Puerto Carreño', 99); INSERT INTO city (id, name, departmentId) VALUES (99524, 'La Primavera', 99); INSERT INTO city (id, name, departmentId) VALUES (99624, 'Santa Rosalía', 99); INSERT INTO city (id, name, departmentId) VALUES (99773, 'Cumaribo', 99);
<gh_stars>1-10 create view "postgres"._airbyte_test_normalization."conflict_stream_scalar_ab3__dbt_tmp" as ( -- SQL model to build a hash column based on the values of this record select *, md5(cast( coalesce(cast("id" as varchar ), '') || '-' || coalesce(cast(conflict_stream_scalar as varchar ), '') as varchar )) as _airbyte_conflict_stream_scalar_hashid from "postgres"._airbyte_test_normalization."conflict_stream_scalar_ab2" -- conflict_stream_scalar );
drop table if exists entries; create table entries ( id integer primary key autoincrement, week integer, data1 integer, data2 integer );
<filename>src/test/resources/bigfile.test_8.sql -- bigfile.test -- -- execsql { -- CREATE TABLE t3 AS SELECT * FROM t1; -- SELECT md5sum(x) FROM t3; -- } CREATE TABLE t3 AS SELECT * FROM t1; SELECT md5sum(x) FROM t3;
<filename>src/test/resources/tkt1444.test_1.sql -- tkt1444.test -- -- execsql { -- CREATE TABLE DemoTable (x INTEGER, TextKey TEXT, DKey Real); -- CREATE INDEX DemoTableIdx ON DemoTable (TextKey); -- INSERT INTO DemoTable VALUES(9,8,7); -- INSERT INTO DemoTable VALUES(1,2,3); -- CREATE VIEW DemoView AS SELECT * FROM DemoTable ORDER BY TextKey; -- SELECT * FROM DemoTable UNION ALL SELECT * FROM DemoView ORDER BY 1; -- } CREATE TABLE DemoTable (x INTEGER, TextKey TEXT, DKey Real); CREATE INDEX DemoTableIdx ON DemoTable (TextKey); INSERT INTO DemoTable VALUES(9,8,7); INSERT INTO DemoTable VALUES(1,2,3); CREATE VIEW DemoView AS SELECT * FROM DemoTable ORDER BY TextKey; SELECT * FROM DemoTable UNION ALL SELECT * FROM DemoView ORDER BY 1;
<filename>src/test/resources/sql/select/95f2c090.sql -- file:collate.icu.utf8.sql ln:314 expect:true SELECT * FROM unnest((SELECT array_agg(b ORDER BY b) FROM collate_test3)) ORDER BY 1
-- file:regex.linux.utf8.sql ln:45 expect:true SELECT 'aⓜⒶ⓪' ~ '[a-z][ⓐ-ⓩ][[:alpha:]][[:graph:]]' AS t
BEGIN; -- insert seed data for basic user/platform/project/reward \i /specs/sql-support/insert_platform_user_project.sql \i /specs/sql-support/clean_sets_helpers.sql select plan(4); select function_returns('community_service_api', 'user_details', ARRAY['uuid'], 'jsonb'); prepare user_details as select * from community_service_api.user_details($1::uuid); -- test scoped user access create or replace function test_access_with_scoped_to_user_details() returns setof text language plpgsql as $$ declare _result_row jsonb; begin -- when scoped is owner of set local role scoped_user; EXECUTE 'set local "request.jwt.claim.user_id" to '''||__seed_first_user_id()||''''; EXECUTE 'set local "request.jwt.claim.platform_token" to '''||__seed_platform_token()||''''; select * from community_service_api.user_details(__seed_first_user_id()) into _result_row; return next is(_result_row->>'id'::text, __seed_first_user_id()::text, 'user data from function'); perform clean_sets(); end; $$; select * from test_access_with_scoped_to_user_details(); -- test platform user access create or replace function test_access_with_platform_user_to_user_details() returns setof text language plpgsql as $$ declare _result_row jsonb; begin set local role platform_user; EXECUTE 'set local "request.jwt.claim.user_id" to '''||__seed_first_user_id()||''''; EXECUTE 'set local "request.jwt.claim.platform_token" to '''||__seed_platform_token()||''''; select * from community_service_api.user_details(__seed_first_user_id()) into _result_row; return next is(_result_row->>'id'::text, __seed_first_user_id()::text, 'user data from function'); perform clean_sets(); end; $$; select * from test_access_with_platform_user_to_user_details(); -- test anonymous user access create or replace function test_access_with_anonymous_user_to_user_details() returns setof text language plpgsql as $$ declare _result_row jsonb; begin -- when anonymous set local role anonymous; select * from community_service_api.user_details(__seed_first_user_id()) into _result_row; return next is(_result_row->>'address', null, 'anonymous dont access address'); perform clean_sets(); end; $$; select * from test_access_with_anonymous_user_to_user_details(); select * from finish(); ROLLBACk;
<reponame>super-vip/usql<gh_stars>1000+ -- sqlserver test script \set \set SYNTAX_HL_FORMAT terminal16m \set SYNTAX_HL true \? \copyright \set SYNTAX_HL_STYLE dracula select 'test'' ' \g \set NAME myname DROP TABLE IF EXISTS books; DROP TABLE IF EXISTS authors; CREATE TABLE authors ( author_id integer NOT NULL IDENTITY(1,1) PRIMARY KEY, name varchar(255) NOT NULL DEFAULT '' ); CREATE INDEX authors_name_idx ON authors(name); CREATE TABLE books ( book_id integer NOT NULL IDENTITY(1,1) PRIMARY KEY, author_id integer NOT NULL FOREIGN KEY REFERENCES authors(author_id), isbn varchar(255) NOT NULL DEFAULT '' UNIQUE, title varchar(255) NOT NULL DEFAULT '', year integer NOT NULL DEFAULT 2000, available datetime2 NOT NULL DEFAULT CURRENT_TIMESTAMP, tags varchar(255) NOT NULL DEFAULT '' ); CREATE INDEX books_title_idx ON books(title, year); \set SYNTAX_HL_STYLE paraiso-dark insert into authors (name) values ('<NAME>'), ('author amazing') \g select * from authors; \set COLNAME name \set NAME amaz \echo `echo hello` select :"COLNAME" from authors where :COLNAME like '%' || :'NAME' || '%' \print \raw \g \gset AUTHOR_ select :'AUTHOR_name'; \begin insert into authors (name) values ('test'); \rollback insert into authors (name) values ('hello'); select * from authors; insert into books (author_id, isbn, title, year, available) values (1, '1', 'one', 2018, '2018-06-01 00:00:00'), (2, '2', 'two', 2019, '2019-06-01 00:00:00') ; select * from books b inner join authors a on a.author_id = b.author_id; /* exiting! */ \q
<filename>IntegrationTests/RestoreSvcBrokerDbForLinux2.sql USE[SvcBrokerTest]; IF NOT EXISTS (SELECT * FROM sys.sql_logins WHERE NAME = N'tester') BEGIN CREATE LOGIN [tester] WITH PASSWORD=N'<PASSWORD>', DEFAULT_DATABASE=[SvcBrokerTest], CHECK_EXPIRATION=OFF, CHECK_POLICY=OFF; END; IF NOT EXISTS (SELECT * FROM sys.sysusers WHERE NAME = N'tester') BEGIN CREATE USER [tester] FOR LOGIN [tester]; END; ALTER ROLE [db_datareader] ADD MEMBER [tester]; ALTER ROLE [db_datawriter] ADD MEMBER [tester]; ALTER ROLE [db_ddladmin] ADD MEMBER [tester]; ALTER ROLE [db_owner] ADD MEMBER [tester];
<filename>script01.sql CREATE TABLE public.matrizes ( id bigint NOT NULL, identificacao bigint, data_nascimento timestamp without time zone, proprietarios_id bigint ); -- -- Name: matrizes_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- ALTER TABLE public.matrizes ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( SEQUENCE NAME public.matrizes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1 ); -- -- Name: nascidos; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.nascidos ( id bigint NOT NULL, identificacao bigint, sexo character varying(255), data_nascimento timestamp without time zone, matrizes_id bigint, proprietarios_id bigint ); -- -- Name: nascidos_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- ALTER TABLE public.nascidos ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( SEQUENCE NAME public.nascidos_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1 ); -- -- Name: proprietarios; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.proprietarios ( id bigint NOT NULL, name character varying(255) ); -- -- Name: proprietarios_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- ALTER TABLE public.proprietarios ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( SEQUENCE NAME public.proprietarios_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1 ); -- -- Name: reprodutores; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE public.reprodutores ( id bigint NOT NULL, identificacao bigint, data_nascimento timestamp without time zone, proprietarios_id bigint ); -- -- Name: reprodutores_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- ALTER TABLE public.reprodutores ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY ( SEQUENCE NAME public.reprodutores_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1 ); -- -- Name: matrizes matrizes_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.matrizes ADD CONSTRAINT matrizes_pkey PRIMARY KEY (id); -- -- Name: nascidos nascidos_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.nascidos ADD CONSTRAINT nascidos_pkey PRIMARY KEY (id); -- -- Name: proprietarios proprietarios_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.proprietarios ADD CONSTRAINT proprietarios_pkey PRIMARY KEY (id); -- -- Name: reprodutores reprodutores_pkey; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.reprodutores ADD CONSTRAINT reprodutores_pkey PRIMARY KEY (id); -- -- Name: nascidos uk5agx0p9gprkejc3yvqixqv1sb; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.nascidos ADD CONSTRAINT uk5agx0p9gprkejc3yvqixqv1sb UNIQUE (identificacao); -- -- Name: matrizes uko62u7qrik8is5gt3jh587drxt; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.matrizes ADD CONSTRAINT uko62u7qrik8is5gt3jh587drxt UNIQUE (identificacao); -- -- Name: reprodutores ukrim5n8pi49wvxbori2ifip077; Type: CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.reprodutores ADD CONSTRAINT ukrim5n8pi49wvxbori2ifip077 UNIQUE (identificacao); -- -- Name: nascidos fkc2phvuxehgrfg139xp01fyxdh; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.nascidos ADD CONSTRAINT fkc2phvuxehgrfg139xp01fyxdh FOREIGN KEY (proprietarios_id) REFERENCES public.proprietarios(id); -- -- Name: reprodutores fkedk1y0b11ci1vl3o58qq9n6hh; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.reprodutores ADD CONSTRAINT fkedk1y0b11ci1vl3o58qq9n6hh FOREIGN KEY (proprietarios_id) REFERENCES public.proprietarios(id); -- -- Name: nascidos fkkxvgdm3vij75y6yctkdro8nlp; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.nascidos ADD CONSTRAINT fkkxvgdm3vij75y6yctkdro8nlp FOREIGN KEY (matrizes_id) REFERENCES public.matrizes(id); -- -- Name: matrizes fkra5265vbb7g87djyu1qy9taih; Type: FK CONSTRAINT; Schema: public; Owner: - -- ALTER TABLE ONLY public.matrizes ADD CONSTRAINT fkra5265vbb7g87djyu1qy9taih FOREIGN KEY (proprietarios_id) REFERENCES public.proprietarios(id); -- -- PostgreSQL database dump complete --
INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (1, "K. Bell Plumbing & Heating - West Haven", "1676 W. 2100 S.", "West Haven", "UT", "84401", 1000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (2, "K. Bell Plumbing & Heating - Orem", "502 S Commerce Road", "Orem", "UT", "84058", 2000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (3, "Ashton Court", "800 East 1000 South", "Orem", "UT", "84058", 3000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (4, "Central Park", "1893 Prospector Ave.", "Park City", "UT", "84060", 4000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (5, "Draper Vista", "13200 Vista Station Blvd.", "Draper", "UT", "84020", 5000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (6, "Fourth & Fourth", "400 East 400 South", "SLC", "UT", "84111", 6000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (7, "<NAME>", "3723 South 900 East", "SLC", "UT", "84106", 7000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (8, "Lotus Tapestry", "832 East 3900 South", "SLC", "UT", "84107", 8000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (9, "Meadows at Riverbend", "300 East Park Blvd.", "Ogden", "UT", "84401", 9000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (10, "Mountain View", "775 W. Harrisville Road", "Harrisville", "UT", "84404", 10000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (11, "<NAME>", "850 North 400 West", "Payson", "UT", "84651", 11000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (12, "Ranches", "200 East 2300 North", "North Ogden", "UT", "84414", 12000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (13, "<NAME>", "3354 South Sue Street", "SLC", "UT", "84115", 13000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (14, "Sugarmont", "2191 S. McClelland St.", "SLC", "UT", "84106", 14000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (15, "Tower View", "2276 South Washington Blvd.", "Ogden", "UT", "84401", 15000, "Active", null); INSERT INTO JOB (JOBID, NAME, ADDRESS, CITY, STATE, ZIP, BIDAMOUNT, STATUS, COMMENTS) VALUES (16, "View at 5600", "8000 S 5600 W", "West Jordan", "UT", "84081", 16000, "Active", null);
<reponame>MCZbase/DDL<gh_stars>1-10 CREATE UNIQUE INDEX "U_CF_REPORT_SQL_NAME" ON "CF_REPORT_SQL" ("REPORT_NAME")
<reponame>singcha/presto -- TPC-H/TPC-R Product Type Profit Measure Query (Q9) -- Functional Query Definition -- Approved February 1998 select nation, o_year, sum(amount) as sum_profit from ( select n.name as nation, extract(year from date(o.orderdate)) as o_year, l.extendedprice * (1 - l.discount) - ps.supplycost * l.quantity as amount from part as p, supplier as s, lineitem as l, partsupp as ps, orders as o, nation as n where s.suppkey = l.suppkey and ps.suppkey = l.suppkey and ps.partkey = l.partkey and p.partkey = l.partkey and o.orderkey = l.orderkey and s.nationkey = n.nationkey and p.name like '%green%' ) as profit group by nation, o_year order by nation, o_year desc;
set system parameters 'dont_reuse_heap_file=yes'; create table t1 (a int, b int, c int); insert into t1 select rownum%2, rownum,rownum from db_class a, db_class b, db_class c, db_class d limit 100000; create index i_t1_a_b on t1(a,b); --you will see that ISS is used. That's good. select /*+ recompile INDEX_SS */ * from t1 where b=1; set @x=1; --Below statement includes an user-defined variable. we expect ISS is used also. select /*+ recompile INDEX_SS */ * from t1 where b=@x; drop variable @x; drop table t1; set system parameters 'dont_reuse_heap_file=no';
<reponame>sgol13/restaurant-database<gh_stars>0 --> Procedury --# UpdateConstants(...) --- Aktualizuje podane stałe (nie zmieniając pozostałych). Domyślnie stałe wchodzą w życie natychmiastowo, --- ale może zostać podana określona data. CREATE OR ALTER PROCEDURE UpdateConstants( @Date datetime = NULL, @Z1 INT = NULL, @K1 INT = NULL, @R1 INT = NULL, @K2 INT = NULL, @R2 INT = NULL, @D1 INT = NULL, @WZ INT = NULL, @WK INT = NULL ) AS BEGIN DECLARE @PREV_Z1 INT DECLARE @PREV_K1 INT DECLARE @PREV_R1 INT DECLARE @PREV_K2 INT DECLARE @PREV_R2 INT DECLARE @PREV_D1 INT DECLARE @PREV_WZ INT DECLARE @PREV_WK INT SELECT @PREV_Z1 = Z1, @PREV_K1 = K1, @PREV_R1 = R1, @PREV_K2 = K2, @PREV_R2 = R2, @PREV_D1 = D1, @PREV_WZ = WZ, @PREV_WK = WK FROM CurrentConstants INSERT INTO Constants(Date, Z1, K1, R1, K2, R2, D1, WZ, WK) VALUES ( ISNULL(@Date, GETDATE()), ISNULL(@Z1, @PREV_Z1), ISNULL(@K1, @PREV_K1), ISNULL(@R1, @PREV_R1), ISNULL(@K2, @PREV_K2), ISNULL(@R2, @PREV_R2), ISNULL(@D1, @PREV_D1), ISNULL(@WZ, @PREV_WZ), ISNULL(@WK, @PREV_WK) ) END GO --<
<filename>backend/sql/init.sql -- Creation of users table CREATE TABLE IF NOT EXISTS users ( user_id INT NOT NULL, username VARCHAR(250) NOT NULL UNIQUE, hashedPassword VARCHAR(250) NOT NULL, summary VARCHAR(250) NOT NULL, token VARCHAR(250), PRIMARY KEY (user_id) ); -- Creation of readList table CREATE TABLE IF NOT EXISTS readList ( book_id VARCHAR(250) NOT NULL, user_id INT NOT NULL, pagesRead INT NOT NULL DEFAULT 0, score INT NOT NULL DEFAULT 0 CHECK (score >= 0 AND score <= 10), status INT NOT NULL DEFAULT 0, CONSTRAINT fk_user FOREIGN KEY(user_id) REFERENCES users(user_id), PRIMARY KEY(book_id, user_id) ); CREATE TABLE IF NOT EXISTS bookReviews ( book_id VARCHAR(250) NOT NULL, author_id INT NOT NULL, postTime timestamptz, review TEXT, CONSTRAINT fk_user FOREIGN KEY(author_id) REFERENCES users(user_id), PRIMARY KEY(book_id, author_id) ); CREATE TABLE IF NOT EXISTS bookReviewLikes ( book_id VARCHAR(250) NOT NULL, author_id INT NOT NULL, userWhoLiked_id INT NOT NULL, likedTime timestamptz, CONSTRAINT fk_user FOREIGN KEY(author_id) REFERENCES users(user_id), PRIMARY KEY(book_id, author_id, userWhoLiked_id) ); -- Set params set session my.number_of_users = '500'; set session my.start_date = '2019-01-01 00:00:00'; set session my.end_date = '2020-02-01 00:00:00'; -- load the pgcrypto extension to gen_random_uuid () CREATE EXTENSION pgcrypto; -- Filling of users INSERT INTO users VALUES (0, 'user0', '<PASSWORD>password<PASSWORD>', 'Hello!', '<PASSWORD>'); INSERT INTO users VALUES (1, 'user1', '<PASSWORD>', 'Hello 2!', 'notarealtoken2'); INSERT INTO users VALUES (2, 'user2', '<PASSWORD>', 'Hello 3!', 'notarealtoken3'); INSERT INTO readList VALUES ('O5cFzgEACAAJ', 0, 100, 10, 1); INSERT INTO readList VALUES ('O5cFzgEACAAJ', 1, 50, 9, 2); INSERT INTO readList VALUES ('O5cFzgEACAAJ', 2, 25, 4, 3);
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 01-07-2020 a las 00:25:34 -- Versión del servidor: 10.1.13-MariaDB -- Versión de PHP: 7.0.6 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 */; -- -- Base de datos: `bigbluepay` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `customer_token` -- CREATE TABLE `customer_token` ( `id` int(11) NOT NULL, `id_client` varchar(20) NOT NULL, `last_four` int(4) NOT NULL, `customer_token` varchar(90) NOT NULL, `value` int(6) NOT NULL, `payed` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Volcado de datos para la tabla `customer_token` -- INSERT INTO `customer_token` (`id`, `id_client`, `last_four`, `customer_token`, `value`, `payed`) VALUES (1, '<NAME>', 0, '<PASSWORD>cd<PASSWORD>dc<PASSWORD>', 0, 0), (9, '1061705320', 6075, '542d39fb876ccb94a2b75afdebf36a97ca728884d3669baa5b67748bcaef4dc2', 0, 0), (10, '1061705320', 6075, '<KEY>', 0, 0), (11, '1061705320', 6075, '<KEY>', 0, 0), (12, '1061705320', 6075, '<KEY>', 0, 0), (13, '1061705320', 6075, '<KEY>', 0, 0), (14, '1061705320', 6075, '<KEY>', 0, 0), (15, '1061705320', 6075, '<KEY>', 0, 0), (16, '1061705320', 6075, '<KEY>', 0, 0), (17, '1061705320', 6075, '<KEY>', 0, 0), (18, '1061705320', 6075, '<KEY>', 0, 0), (19, '1061705320', 6075, '<KEY>', 0, 0), (20, '1061705320', 6075, '<KEY>', 0, 0), (21, '1061705320', 6075, '<KEY>', 0, 0), (22, '1061705320', 6075, '<KEY>', 0, 0), (23, '1061705320', 6075, '<KEY>', 0, 0), (24, '1061705320', 6075, '<KEY>', 0, 0), (25, '1061705320', 6075, '<KEY>', 0, 0), (26, '1061705320', 75, '<KEY>', 0, 0), (27, '1061705320', 6075, '<KEY>', 0, 0), (28, '1061705320', 6075, '<KEY>', 0, 0), (29, '1061705320', 6075, '<KEY>', 0, 0), (30, '1061705320', 6075, '<KEY>', 0, 0), (31, '1061705320', 6075, '<KEY>', 0, 0), (32, '10617053202', 6075, 'e31f9fe5227d72e4a1eefdf50ddb7c1ac8390422d43d4df988de485f4f1f4fd5', 0, 0), (33, '1061705320', 6075, '<KEY>', 0, 0), (34, '1061705320', 6075, '<KEY>', 0, 0), (35, '1061705320', 6075, '<KEY>', 0, 0), (36, '1061705320', 6075, '<KEY>', 0, 0), (37, '1061705320', 6075, '<KEY>', 0, 0), (38, '1061705320', 6075, '<KEY>', 0, 0), (39, '1061705320', 6075, '<KEY>', 0, 0), (40, '1061705320', 6075, '<KEY>', 0, 0), (41, '1061705320', 6075, 'e4996c6f45e721ed6e2dbaa14f86a531bb5713c633bb859e9b7a14ecd3a64f6e', 0, 0), (42, '1061705320', 6075, '<KEY>', 0, 0), (43, '1061705320', 6075, '<KEY>', 0, 0), (44, '1061705320', 6075, '<KEY>', 0, 0), (45, '1061705320', 6075, '<KEY>', 0, 0), (46, '1061705320', 6075, '<KEY>', 0, 0), (47, '1061705320', 6075, '<KEY>', 0, 0), (48, '1061705320', 6075, '<KEY>', 0, 0), (49, '1061705320', 6075, '<KEY>', 0, 0), (50, '1061705320', 6075, '<KEY>', 0, 0), (51, '1061705320', 6075, '<KEY>', 0, 0), (52, '1061705320', 6075, '<KEY>', 0, 0), (53, '1061705320', 6075, '<KEY>', 0, 0), (54, '1061705320', 6075, '<KEY>', 0, 0); -- -- Índices para tablas volcadas -- -- -- Indices de la tabla `customer_token` -- ALTER TABLE `customer_token` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT de las tablas volcadas -- -- -- AUTO_INCREMENT de la tabla `customer_token` -- ALTER TABLE `customer_token` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=55; /*!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 -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Дек 28 2021 г., 14:23 -- Версия сервера: 5.7.33 -- Версия PHP: 7.2.34 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 */; -- -- База данных: `mybase` -- -- -------------------------------------------------------- -- -- Структура таблицы `cards` -- CREATE TABLE `cards` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title` varchar(255) NOT NULL, `image` varchar(255) NOT NULL, `type` enum('door','treasure') DEFAULT NULL, `value` varchar(255) NOT NULL, `description` text NOT NULL, `category_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `cards` -- INSERT INTO `cards` (`id`, `created_at`, `updated_at`, `title`, `image`, `type`, `value`, `description`, `category_id`) VALUES (1, '2021-09-06 00:24:29', '2021-09-17 04:21:40', '3872 орка', '1630998481.jpg', 'door', '0', '', 1), (2, '2021-09-06 00:25:00', '2021-09-06 00:25:00', 'Амазонка', '1630905900.jpg', 'door', '0', '', 1), (3, '2021-09-06 00:25:16', '2021-09-06 00:25:16', 'Бигфут', '1630905916.jpg', 'door', '0', '', 1), (4, '2021-09-06 00:25:37', '2021-09-17 04:46:34', 'Башмаки реального быстрого бега', '1630905937.jpg', 'treasure', '0', '', 4), (5, '2021-09-06 00:25:52', '2021-09-06 00:25:52', 'Бульрог', '1630905952.jpg', 'door', '0', '', 1), (6, '2021-09-06 00:26:02', '2021-09-17 04:55:50', 'Чит', '1630905962.jpg', 'door', '0', '', 8), (7, '2021-09-06 00:26:17', '2021-09-17 04:56:11', 'Клирик', '1630905977.jpg', 'door', '0', '', 2), (8, '2021-09-06 00:26:46', '2021-09-17 04:56:19', 'Клирик 2', '1630906006.jpg', 'door', '0', '', 2), (9, '2021-09-06 00:26:54', '2021-09-17 04:57:03', 'Клирик 3', '1630906014.jpg', 'door', '0', '', 2), (10, '2021-09-06 00:27:24', '2021-09-17 04:21:22', 'Курица на башне', '1630906044.jpg', 'door', '0', '', 5), (11, '2021-09-06 00:27:41', '2021-09-17 04:57:21', 'Смена класса', '1630906061.jpg', 'door', '0', '', 5), (12, '2021-09-06 00:28:00', '2021-09-17 04:57:30', 'Потеря уровня', '1630906080.jpg', 'door', '0', '', 5), (13, '2021-09-17 04:13:01', '2021-09-17 04:13:01', 'Утка обреченности', '1631869981.jpg', 'door', '0', '', 5), (14, '2021-09-17 04:16:42', '2021-09-17 04:16:42', 'Проклятие', '1631870202.jpg', 'door', '0', '', 5), (15, '2021-09-17 04:17:13', '2021-09-17 04:17:13', 'Большая потеря', '1631870233.jpg', 'door', '0', '', 5), (16, '2021-12-07 05:13:47', '2021-12-07 05:13:47', 'Проклятие! Смена расы', '1638872027.jpg', 'door', '0', '', 5), (17, '2021-12-07 05:14:06', '2021-12-07 05:14:06', 'Проклятие! Смена пола', '1638872046.jpg', 'door', '0', '', 5), (18, '2021-12-07 05:14:29', '2021-12-07 05:14:29', 'Проклятие! Налоги', '1638872069.jpg', 'door', '0', '', 5), (19, '2021-12-07 05:15:52', '2021-12-07 05:15:52', 'Божественное вмешательство', '1638872152.jpg', 'door', '0', '', 7), (20, '2021-12-07 05:16:28', '2021-12-07 05:16:28', 'Дупельгангер', '1638872188.jpg', 'treasure', '0', '', 9), (21, '2021-12-07 05:16:45', '2021-12-07 05:16:45', 'Сочащаяся слизь', '1638872205.jpg', 'door', '0', '', 1), (22, '2021-12-07 05:16:58', '2021-12-07 05:16:58', 'Дварф', '1638872218.jpg', 'door', '0', '', 2), (23, '2021-12-07 05:17:07', '2021-12-07 05:17:07', 'Дварф 2', '1638872227.jpg', 'door', '0', '', 2), (24, '2021-12-07 05:17:15', '2021-12-07 05:17:15', 'Дварф 3', '1638872235.jpg', 'door', '0', '', 2), (25, '2021-12-07 05:17:31', '2021-12-07 05:17:31', 'Эльф', '1638872251.jpg', 'door', '0', '', 2), (26, '2021-12-07 05:17:38', '2021-12-07 05:17:38', 'Эльф 2', '1638872258.jpg', 'door', '0', '', 2), (27, '2021-12-07 05:17:45', '2021-12-07 05:17:45', 'Эльф 3', '1638872265.jpg', 'door', '0', '', 2), (28, '2021-12-07 05:18:59', '2021-12-07 05:18:59', 'Лицесос', '1638872339.jpg', 'door', '0', '', 1), (29, '2021-12-07 05:19:15', '2021-12-07 05:19:15', 'Палённые доспехи', '1638872355.jpg', 'treasure', '0', '', 4), (30, '2021-12-07 05:19:37', '2021-12-07 05:19:37', 'Т<NAME>', '1638872377.jpg', 'treasure', '0', '', 6), (31, '2021-12-07 05:19:48', '2021-12-07 05:19:48', 'Сопливый нос', '1638872388.jpg', 'door', '0', '', 1), (32, '2021-12-07 05:20:01', '2021-12-07 05:20:01', 'Летучие лягушки', '1638872401.jpg', 'door', '0', '', 1), (33, '2021-12-07 05:20:14', '2021-12-07 05:20:14', 'Зелье дружбы', '1638872414.jpg', 'treasure', '0', '', 6), (34, '2021-12-07 05:20:24', '2021-12-07 05:20:24', 'Газебо', '1638872424.jpg', 'door', '0', '', 1), (35, '2021-12-07 05:20:40', '2021-12-07 05:20:40', 'Желатиновый эктаэдр', '1638872440.jpg', 'door', '0', '', 1), (36, '2021-12-07 05:21:02', '2021-12-07 05:21:02', 'Д<NAME>', '1638872462.jpg', 'treasure', '0', '', 4), (37, '2021-12-07 05:21:24', '2021-12-07 05:21:24', 'Маденамадуазели', '1638872484.jpg', 'door', '0', '', 1), (38, '2021-12-07 05:21:36', '2021-12-07 05:21:36', 'Типа вошки', '1638872496.jpg', 'door', '0', '', 1), (39, '2021-12-07 05:21:58', '2021-12-07 05:21:58', 'Полукровка', '1638872518.jpg', 'door', '0', '', 2), (40, '2021-12-07 05:22:13', '2021-12-07 05:22:13', 'Халфлинг', '1638872533.jpg', 'door', '0', '', 2), (41, '2021-12-07 05:22:24', '2021-12-07 05:22:24', 'Халфлинг 2', '1638872544.jpg', 'door', '0', '', 2), (42, '2021-12-07 05:22:33', '2021-12-07 05:22:33', 'Халфлинг 3', '1638872553.jpg', 'door', '0', '', 2), (43, '2021-12-07 05:22:54', '2021-12-07 05:22:54', 'Коленоотбойный молоточек', '1638872574.jpg', 'treasure', '0', '', 4), (44, '2021-12-07 05:23:07', '2021-12-07 05:23:07', 'Гарпистки', '1638872587.jpg', 'door', '0', '', 1), (45, '2021-12-07 05:23:32', '2021-12-07 05:23:32', 'Шлем бесстрашия', '1638872612.jpg', 'treasure', '0', '', 4), (46, '2021-12-07 05:23:47', '2021-12-07 05:23:47', 'Гиппогриф', '1638872627.jpg', 'door', '0', '', 1), (47, '2021-12-07 05:24:07', '2021-12-07 05:24:07', 'Наемничек', '1638872647.jpg', 'treasure', '0', '', 9), (48, '2021-12-07 05:24:24', '2021-12-07 05:24:24', 'Ура, Клад!', '1638872664.jpg', 'treasure', '0', '', 7), (49, '2021-12-07 05:24:49', '2021-12-07 05:24:49', 'Шлем рогач', '1638872689.jpg', 'treasure', '0', '', 4), (50, '2021-12-07 05:25:35', '2021-12-07 05:25:35', 'Плутониевый дракон', '1638872735.jpg', 'door', '0', '', 1); -- -------------------------------------------------------- -- -- Структура таблицы `card_filters` -- CREATE TABLE `card_filters` ( `id` bigint(20) UNSIGNED NOT NULL, `title` varchar(255) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Структура таблицы `cart_categories` -- CREATE TABLE `cart_categories` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `cart_categories` -- INSERT INTO `cart_categories` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'Монстр', NULL, NULL), (2, 'Раса', NULL, NULL), (3, 'Класс', NULL, NULL), (4, 'Одежда', NULL, NULL), (5, 'Проклятье', NULL, NULL), (6, 'Зелье', NULL, NULL), (7, 'Событие', NULL, NULL), (8, 'Улучшение', NULL, NULL), (9, 'Помощники', NULL, NULL); -- -------------------------------------------------------- -- -- Структура таблицы `deck` -- CREATE TABLE `deck` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `image` varchar(255) NOT NULL, `description` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `deck` -- INSERT INTO `deck` (`id`, `name`, `image`, `description`) VALUES (1, 'Стартовая колода 1', 'image', 'Стартовая колода'); -- -------------------------------------------------------- -- -- Структура таблицы `deck_cards` -- CREATE TABLE `deck_cards` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deck_id` bigint(20) UNSIGNED NOT NULL, `card_id` bigint(20) UNSIGNED NOT NULL, `active` tinyint(3) UNSIGNED NOT NULL, `index` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `deck_cards` -- INSERT INTO `deck_cards` (`id`, `created_at`, `updated_at`, `deck_id`, `card_id`, `active`, `index`) VALUES (1, '2021-11-18 09:33:04', '2021-12-28 02:20:32', 1, 1, 1, '6'), (2, '2021-11-11 09:34:29', '2021-12-28 02:20:32', 1, 2, 1, '34'), (3, '2021-11-11 09:35:00', '2021-12-28 02:20:32', 1, 3, 1, '31'), (4, '2021-11-11 09:36:52', '2021-12-28 02:20:32', 1, 4, 1, '8'), (5, '2021-11-11 09:36:52', '2021-12-28 02:20:32', 1, 5, 1, '3'), (6, '2021-11-11 09:37:33', '2021-12-28 02:20:32', 1, 6, 1, '12'), (7, '2021-11-11 09:37:33', '2021-12-28 02:20:32', 1, 7, 1, '29'), (8, '2021-11-11 09:37:56', '2021-12-28 02:20:32', 1, 8, 1, '28'), (9, '2021-11-11 09:37:56', '2021-12-28 02:20:32', 1, 9, 1, '27'), (10, '2021-11-11 09:38:21', '2021-12-28 02:20:32', 1, 10, 1, '16'), (12, '2021-11-11 09:38:47', '2021-12-28 02:20:32', 1, 11, 1, '19'), (13, '2021-11-11 09:38:47', '2021-12-28 02:20:32', 1, 12, 1, '10'), (14, '2021-11-11 09:39:08', '2021-12-28 02:20:32', 1, 13, 1, '30'), (15, '2021-11-11 09:39:08', '2021-12-28 02:20:32', 1, 14, 1, '35'), (16, '2021-11-11 09:39:33', '2021-12-28 02:20:32', 1, 15, 1, '13'), (19, NULL, '2021-12-28 02:20:32', 1, 16, 1, '32'), (20, NULL, '2021-12-28 02:20:32', 1, 17, 1, '15'), (21, NULL, '2021-12-28 02:20:32', 1, 18, 1, '4'), (22, NULL, '2021-12-28 02:20:32', 1, 19, 1, '11'), (23, NULL, '2021-12-28 02:20:32', 1, 20, 1, '6'), (24, NULL, '2021-12-28 02:20:32', 1, 21, 1, '1'), (25, NULL, '2021-12-28 02:20:32', 1, 22, 1, '26'), (26, NULL, '2021-12-28 02:20:32', 1, 23, 1, '8'), (27, NULL, '2021-12-28 02:20:32', 1, 24, 1, '7'), (28, NULL, '2021-12-28 02:20:32', 1, 25, 1, '2'), (29, NULL, '2021-12-28 02:20:32', 1, 26, 1, '39'), (30, NULL, '2021-12-28 02:20:32', 1, 27, 1, '14'), (31, NULL, '2021-12-28 02:20:32', 1, 28, 1, '22'), (32, NULL, '2021-12-28 02:20:32', 1, 29, 1, '2'), (33, NULL, '2021-12-28 02:17:55', 1, 30, 1, '4'), (34, NULL, '2021-12-28 02:20:32', 1, 31, 1, '33'), (35, NULL, '2021-12-28 02:20:32', 1, 32, 1, '5'), (36, NULL, '2021-12-28 02:20:32', 1, 33, 1, '10'), (37, NULL, '2021-12-28 02:20:32', 1, 34, 1, '24'), (38, NULL, '2021-12-28 02:20:32', 1, 35, 1, '17'), (39, NULL, '2021-12-28 02:17:55', 1, 36, 1, '5'), (40, NULL, '2021-12-28 02:20:32', 1, 37, 1, '18'), (41, NULL, '2021-12-28 02:20:32', 1, 38, 1, '9'), (42, NULL, '2021-12-28 02:20:32', 1, 39, 1, '36'), (43, NULL, '2021-12-28 02:20:32', 1, 40, 1, '23'), (44, NULL, '2021-12-28 02:20:32', 1, 41, 1, '38'), (45, NULL, '2021-12-28 02:20:32', 1, 42, 1, '21'), (46, NULL, '2021-12-28 02:17:55', 1, 43, 1, '3'), (47, NULL, '2021-12-28 02:20:32', 1, 44, 1, '20'), (48, NULL, '2021-12-28 02:20:32', 1, 45, 1, '9'), (49, NULL, '2021-12-28 02:20:32', 1, 46, 1, '37'), (50, NULL, '2021-12-28 02:17:55', 1, 47, 1, '1'), (51, NULL, '2021-12-28 02:17:55', 1, 48, 1, '11'), (52, NULL, '2021-12-28 02:20:32', 1, 49, 1, '7'), (53, NULL, '2021-12-28 02:20:32', 1, 50, 1, '25'); -- -------------------------------------------------------- -- -- Структура таблицы `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `connection` text NOT NULL, `queue` text NOT NULL, `payload` longtext NOT NULL, `exception` longtext NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Структура таблицы `filters` -- CREATE TABLE `filters` ( `id` bigint(20) UNSIGNED NOT NULL, `card_id` bigint(20) UNSIGNED NOT NULL, `filter_id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Структура таблицы `game_bot` -- CREATE TABLE `game_bot` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `name` varchar(255) NOT NULL, `room_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `game_bot` -- INSERT INTO `game_bot` (`id`, `created_at`, `updated_at`, `name`, `room_id`) VALUES (49, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 'Чулпан', 28), (50, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 'Чулпан', 28), (51, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 'Дима', 28); -- -------------------------------------------------------- -- -- Структура таблицы `game_bot_cards` -- CREATE TABLE `game_bot_cards` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(3) UNSIGNED NOT NULL, `bot_id` bigint(20) UNSIGNED NOT NULL, `room_id` bigint(20) UNSIGNED NOT NULL, `card_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Структура таблицы `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2021_07_28_053309_create_test_table', 1), (5, '2021_07_28_063238_create_roles_table', 1), (6, '2021_07_28_063246_create_permissions_table', 1), (7, '2021_07_28_063429_create_users_permissions_table', 1), (8, '2021_07_28_063456_create_users_roles_table', 1), (9, '2021_07_28_063522_create_roles_permissions_table', 1), (10, '2021_08_06_125148_create_pages_table', 1), (11, '2021_08_06_131007_create_tree_pages_table', 1), (12, '2021_08_08_083355_create_cards_table', 1), (13, '2021_09_01_041934_create_deck_table', 1), (14, '2021_09_01_042113_create_cart_categories_table', 1), (19, '2021_09_01_042217_create_card_filters_table', 2), (20, '2021_09_01_042301_create_filters_table', 2), (21, '2021_09_09_040717_change_type_cards_table', 2), (22, '2021_11_17_111714_create_room_table', 2), (23, '2021_11_18_044558_create_users_cards_table', 3), (24, '2021_11_18_091422_create_deck_cards_table', 4), (26, '2021_12_01_064333_create_room_properties_table', 5), (27, '2021_12_01_064851_create_game_bot_table', 6), (28, '2021_12_01_065242_create_game_bot_cards_table', 6), (30, '2021_12_07_063155_add_deck_cards_table', 7), (31, '2021_12_28_101141_create_room_cards_table', 8); -- -------------------------------------------------------- -- -- Структура таблицы `pages` -- CREATE TABLE `pages` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `title` varchar(255) NOT NULL, `template` varchar(255) NOT NULL, `description` text NOT NULL, `position` smallint(6) NOT NULL, `content` longtext NOT NULL, `dop_content` longtext NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Структура таблицы `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) NOT NULL, `token` varchar(255) NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Структура таблицы `permissions` -- CREATE TABLE `permissions` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `slug` varchar(255) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `permissions` -- INSERT INTO `permissions` (`id`, `name`, `slug`, `created_at`, `updated_at`) VALUES (1, 'change admin', 'change admin', '2021-09-17 05:09:39', '2021-09-17 05:09:39'), (2, 'game', 'game', '2021-09-17 05:09:39', '2021-09-17 05:09:39'), (3, 'change admin', 'change admin', '2021-11-17 06:46:09', '2021-11-17 06:46:09'), (4, 'game', 'game', '2021-11-17 06:46:09', '2021-11-17 06:46:09'), (5, 'change admin', 'change admin', '2021-11-17 06:51:52', '2021-11-17 06:51:52'), (6, 'game', 'game', '2021-11-17 06:51:52', '2021-11-17 06:51:52'); -- -------------------------------------------------------- -- -- Структура таблицы `roles` -- CREATE TABLE `roles` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `slug` varchar(255) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `roles` -- INSERT INTO `roles` (`id`, `name`, `slug`, `created_at`, `updated_at`) VALUES (1, 'admin', 'admin', '2021-09-17 05:09:39', '2021-09-17 05:09:39'), (2, 'user', 'user', '2021-09-17 05:09:39', '2021-09-17 05:09:39'), (3, 'admin', 'admin', '2021-11-17 06:46:09', '2021-11-17 06:46:09'), (4, 'user', 'user', '2021-11-17 06:46:09', '2021-11-17 06:46:09'), (5, 'admin', 'admin', '2021-11-17 06:51:52', '2021-11-17 06:51:52'), (6, 'user', 'user', '2021-11-17 06:51:52', '2021-11-17 06:51:52'); -- -------------------------------------------------------- -- -- Структура таблицы `roles_permissions` -- CREATE TABLE `roles_permissions` ( `role_id` bigint(20) UNSIGNED NOT NULL, `permission_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Структура таблицы `room` -- CREATE TABLE `room` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `description` text NOT NULL, `deck_id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `current_user_id` bigint(20) UNSIGNED NOT NULL, `difficulty` text NOT NULL, `id_room` bigint(20) UNSIGNED NOT NULL, `last_move` timestamp NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `room` -- INSERT INTO `room` (`id`, `created_at`, `updated_at`, `description`, `deck_id`, `user_id`, `current_user_id`, `difficulty`, `id_room`, `last_move`) VALUES (28, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 'Тестовая версия', 1, 2, 2, 'Легкая', 2, '2021-12-27 19:00:00'); -- -------------------------------------------------------- -- -- Структура таблицы `room_cards` -- CREATE TABLE `room_cards` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `room_id` bigint(20) UNSIGNED NOT NULL, `card_id` bigint(20) UNSIGNED NOT NULL, `index` bigint(20) UNSIGNED NOT NULL, `active` tinyint(3) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `room_cards` -- INSERT INTO `room_cards` (`id`, `created_at`, `updated_at`, `room_id`, `card_id`, `index`, `active`) VALUES (450, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 1, 7, 1), (451, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 2, 23, 1), (452, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 3, 39, 1), (453, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 4, 3, 1), (454, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 5, 15, 1), (455, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 6, 9, 1), (456, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 7, 10, 1), (457, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 8, 3, 1), (458, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 9, 12, 1), (459, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 10, 8, 1), (460, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 11, 5, 1), (461, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 12, 33, 1), (462, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 13, 37, 1), (463, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 14, 17, 1), (464, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 15, 6, 1), (465, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 16, 16, 1), (466, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 17, 11, 1), (467, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 18, 31, 1), (468, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 19, 26, 1), (469, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 20, 5, 1), (470, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 21, 38, 1), (471, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 22, 18, 1), (472, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 23, 4, 1), (473, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 24, 2, 1), (474, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 25, 27, 1), (475, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 26, 19, 3), (476, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 27, 32, 1), (477, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 28, 36, 1), (478, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 29, 9, 1), (479, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 30, 2, 1), (480, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 31, 1, 1), (481, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 32, 24, 1), (482, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 33, 11, 3), (483, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 34, 30, 1), (484, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 35, 25, 1), (485, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 36, 6, 1), (486, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 37, 28, 1), (487, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 38, 29, 1), (488, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 39, 35, 1), (489, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 40, 13, 1), (490, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 41, 21, 3), (491, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 42, 34, 1), (492, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 43, 1, 1), (493, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 44, 20, 1), (494, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 45, 8, 3), (495, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 46, 22, 3), (496, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 47, 7, 1), (497, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 48, 4, 3), (498, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 49, 10, 1), (499, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 28, 50, 14, 1); -- -------------------------------------------------------- -- -- Структура таблицы `room_properties` -- CREATE TABLE `room_properties` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `room_id` bigint(20) UNSIGNED NOT NULL, `players` text NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Структура таблицы `test` -- CREATE TABLE `test` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Структура таблицы `tree_pages` -- CREATE TABLE `tree_pages` ( `id` bigint(20) UNSIGNED NOT NULL, `ancestor` bigint(20) UNSIGNED NOT NULL, `descendant` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -------------------------------------------------------- -- -- Структура таблицы `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(255) NOT NULL, `remember_token` varchar(100) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `users` -- INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, '<NAME>', '<EMAIL>', NULL, '$2y$10$QAt0ruF376HYsvo2KFAIweJcxxcchW6qMJ5aZzfpf/DB4/OXTd7YC', 'RCq9EnpFgRu1epp17onXrtYOgyrmv9kzqtY8dISebwWmgm3jBEW4v4i7dLd5', '2021-09-17 05:09:39', '2021-09-17 05:09:39'), (2, 'Test User', '<EMAIL>', NULL, '$2y$10$j0NVtbHGCJX5vHGq6aXr8eVsbUYrnJSP.R8T5XiumEBm6IATY8cgm', 'LpX39yAJjRmlufJUkpwBZzq4kTGW6Q1oKI64RhzMkCk9ZRslGU4Z6bNgilDQ', '2021-09-17 05:09:39', '2021-09-17 05:09:39'); -- -------------------------------------------------------- -- -- Структура таблицы `users_cards` -- CREATE TABLE `users_cards` ( `id` bigint(20) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `active` tinyint(3) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `room_id` bigint(20) UNSIGNED NOT NULL, `card_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `users_cards` -- INSERT INTO `users_cards` (`id`, `created_at`, `updated_at`, `active`, `user_id`, `room_id`, `card_id`) VALUES (12, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 1, 2, 28, 26), (13, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 1, 2, 28, 41), (14, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 1, 2, 28, 46), (15, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 1, 2, 28, 48), (16, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 1, 2, 28, 33), (17, '2021-12-28 06:21:05', '2021-12-28 06:21:05', 1, 2, 28, 45); -- -------------------------------------------------------- -- -- Структура таблицы `users_permissions` -- CREATE TABLE `users_permissions` ( `user_id` bigint(20) UNSIGNED NOT NULL, `permission_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `users_permissions` -- INSERT INTO `users_permissions` (`user_id`, `permission_id`) VALUES (1, 1), (2, 2); -- -------------------------------------------------------- -- -- Структура таблицы `users_roles` -- CREATE TABLE `users_roles` ( `user_id` bigint(20) UNSIGNED NOT NULL, `role_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Дамп данных таблицы `users_roles` -- INSERT INTO `users_roles` (`user_id`, `role_id`) VALUES (1, 1), (2, 2); -- -- Индексы сохранённых таблиц -- -- -- Индексы таблицы `cards` -- ALTER TABLE `cards` ADD PRIMARY KEY (`id`), ADD KEY `CATEGORY` (`category_id`); -- -- Индексы таблицы `card_filters` -- ALTER TABLE `card_filters` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `cart_categories` -- ALTER TABLE `cart_categories` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `deck` -- ALTER TABLE `deck` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `deck_cards` -- ALTER TABLE `deck_cards` ADD PRIMARY KEY (`id`), ADD KEY `deck_cards_card_id_foreign` (`card_id`), ADD KEY `deck_cards_deck_id_foreign` (`deck_id`); -- -- Индексы таблицы `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `filters` -- ALTER TABLE `filters` ADD PRIMARY KEY (`id`), ADD KEY `filters_card_id_foreign` (`card_id`), ADD KEY `filters_filter_id_foreign` (`filter_id`); -- -- Индексы таблицы `game_bot` -- ALTER TABLE `game_bot` ADD PRIMARY KEY (`id`), ADD KEY `game_bot_room_id_foreign` (`room_id`); -- -- Индексы таблицы `game_bot_cards` -- ALTER TABLE `game_bot_cards` ADD PRIMARY KEY (`id`), ADD KEY `game_bot_cards_room_id_foreign` (`room_id`), ADD KEY `game_bot_cards_bot_id_foreign` (`bot_id`), ADD KEY `game_bot_cards_card_id_foreign` (`card_id`); -- -- Индексы таблицы `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `pages` -- ALTER TABLE `pages` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Индексы таблицы `permissions` -- ALTER TABLE `permissions` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `roles_permissions` -- ALTER TABLE `roles_permissions` ADD PRIMARY KEY (`role_id`,`permission_id`), ADD KEY `roles_permissions_permission_id_foreign` (`permission_id`); -- -- Индексы таблицы `room` -- ALTER TABLE `room` ADD PRIMARY KEY (`id`), ADD KEY `room_deck_id_foreign` (`deck_id`), ADD KEY `room_user_id_foreign` (`user_id`), ADD KEY `room_current_user_id_foreign` (`current_user_id`); -- -- Индексы таблицы `room_cards` -- ALTER TABLE `room_cards` ADD PRIMARY KEY (`id`), ADD KEY `room_cards_card_id_foreign` (`card_id`), ADD KEY `room_cards_room_id_foreign` (`room_id`); -- -- Индексы таблицы `room_properties` -- ALTER TABLE `room_properties` ADD PRIMARY KEY (`id`), ADD KEY `room_properties_room_id_foreign` (`room_id`); -- -- Индексы таблицы `test` -- ALTER TABLE `test` ADD PRIMARY KEY (`id`); -- -- Индексы таблицы `tree_pages` -- ALTER TABLE `tree_pages` ADD PRIMARY KEY (`id`), ADD KEY `tree_pages_ancestor_foreign` (`ancestor`), ADD KEY `tree_pages_descendant_foreign` (`descendant`); -- -- Индексы таблицы `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- Индексы таблицы `users_cards` -- ALTER TABLE `users_cards` ADD PRIMARY KEY (`id`), ADD KEY `users_cards_room_id_foreign` (`room_id`), ADD KEY `users_cards_user_id_foreign` (`user_id`), ADD KEY `users_cards_card_id_foreign` (`card_id`); -- -- Индексы таблицы `users_permissions` -- ALTER TABLE `users_permissions` ADD PRIMARY KEY (`user_id`,`permission_id`), ADD KEY `users_permissions_permission_id_foreign` (`permission_id`); -- -- Индексы таблицы `users_roles` -- ALTER TABLE `users_roles` ADD PRIMARY KEY (`user_id`,`role_id`), ADD KEY `users_roles_role_id_foreign` (`role_id`); -- -- AUTO_INCREMENT для сохранённых таблиц -- -- -- AUTO_INCREMENT для таблицы `cards` -- ALTER TABLE `cards` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51; -- -- AUTO_INCREMENT для таблицы `card_filters` -- ALTER TABLE `card_filters` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT для таблицы `cart_categories` -- ALTER TABLE `cart_categories` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT для таблицы `deck` -- ALTER TABLE `deck` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT для таблицы `deck_cards` -- ALTER TABLE `deck_cards` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=54; -- -- AUTO_INCREMENT для таблицы `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT для таблицы `filters` -- ALTER TABLE `filters` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT для таблицы `game_bot` -- ALTER TABLE `game_bot` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=52; -- -- AUTO_INCREMENT для таблицы `game_bot_cards` -- ALTER TABLE `game_bot_cards` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT для таблицы `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=32; -- -- AUTO_INCREMENT для таблицы `pages` -- ALTER TABLE `pages` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT для таблицы `permissions` -- ALTER TABLE `permissions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT для таблицы `roles` -- ALTER TABLE `roles` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT для таблицы `room` -- ALTER TABLE `room` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29; -- -- AUTO_INCREMENT для таблицы `room_cards` -- ALTER TABLE `room_cards` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=500; -- -- AUTO_INCREMENT для таблицы `room_properties` -- ALTER TABLE `room_properties` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT для таблицы `test` -- ALTER TABLE `test` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT для таблицы `tree_pages` -- ALTER TABLE `tree_pages` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT для таблицы `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT для таблицы `users_cards` -- ALTER TABLE `users_cards` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=18; -- -- Ограничения внешнего ключа сохраненных таблиц -- -- -- Ограничения внешнего ключа таблицы `cards` -- ALTER TABLE `cards` ADD CONSTRAINT `cards_ibfk_1` FOREIGN KEY (`category_id`) REFERENCES `cart_categories` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Ограничения внешнего ключа таблицы `deck_cards` -- ALTER TABLE `deck_cards` ADD CONSTRAINT `deck_cards_card_id_foreign` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `deck_cards_deck_id_foreign` FOREIGN KEY (`deck_id`) REFERENCES `deck` (`id`) ON DELETE CASCADE; -- -- Ограничения внешнего ключа таблицы `filters` -- ALTER TABLE `filters` ADD CONSTRAINT `filters_card_id_foreign` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `filters_filter_id_foreign` FOREIGN KEY (`filter_id`) REFERENCES `card_filters` (`id`) ON DELETE CASCADE; -- -- Ограничения внешнего ключа таблицы `game_bot` -- ALTER TABLE `game_bot` ADD CONSTRAINT `game_bot_room_id_foreign` FOREIGN KEY (`room_id`) REFERENCES `room` (`id`) ON DELETE CASCADE; -- -- Ограничения внешнего ключа таблицы `game_bot_cards` -- ALTER TABLE `game_bot_cards` ADD CONSTRAINT `game_bot_cards_bot_id_foreign` FOREIGN KEY (`bot_id`) REFERENCES `game_bot` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `game_bot_cards_card_id_foreign` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `game_bot_cards_room_id_foreign` FOREIGN KEY (`room_id`) REFERENCES `room` (`id`) ON DELETE CASCADE; -- -- Ограничения внешнего ключа таблицы `roles_permissions` -- ALTER TABLE `roles_permissions` ADD CONSTRAINT `roles_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `roles_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE; -- -- Ограничения внешнего ключа таблицы `room` -- ALTER TABLE `room` ADD CONSTRAINT `room_current_user_id_foreign` FOREIGN KEY (`current_user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `room_deck_id_foreign` FOREIGN KEY (`deck_id`) REFERENCES `deck` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `room_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Ограничения внешнего ключа таблицы `room_cards` -- ALTER TABLE `room_cards` ADD CONSTRAINT `room_cards_card_id_foreign` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `room_cards_room_id_foreign` FOREIGN KEY (`room_id`) REFERENCES `room` (`id`) ON DELETE CASCADE; -- -- Ограничения внешнего ключа таблицы `room_properties` -- ALTER TABLE `room_properties` ADD CONSTRAINT `room_properties_room_id_foreign` FOREIGN KEY (`room_id`) REFERENCES `room` (`id`) ON DELETE CASCADE; -- -- Ограничения внешнего ключа таблицы `tree_pages` -- ALTER TABLE `tree_pages` ADD CONSTRAINT `tree_pages_ancestor_foreign` FOREIGN KEY (`ancestor`) REFERENCES `pages` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `tree_pages_descendant_foreign` FOREIGN KEY (`descendant`) REFERENCES `pages` (`id`) ON DELETE CASCADE; -- -- Ограничения внешнего ключа таблицы `users_cards` -- ALTER TABLE `users_cards` ADD CONSTRAINT `users_cards_card_id_foreign` FOREIGN KEY (`card_id`) REFERENCES `cards` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `users_cards_room_id_foreign` FOREIGN KEY (`room_id`) REFERENCES `room` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `users_cards_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Ограничения внешнего ключа таблицы `users_permissions` -- ALTER TABLE `users_permissions` ADD CONSTRAINT `users_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `users_permissions_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; -- -- Ограничения внешнего ключа таблицы `users_roles` -- ALTER TABLE `users_roles` ADD CONSTRAINT `users_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE, ADD CONSTRAINT `users_roles_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>data/public/schema.sql CREATE TABLE "insulin" ( "id" int PRIMARY KEY, "timestamp" int, "amount" float, "duration" int, "type" text, "brand" text, "user_id" int ); CREATE TABLE "user" ( "id" int PRIMARY KEY, "bg_high" int, "bg_low" int, "bg_target_top" int, "bg_target_bottom" int, "height" int, "weight" int, "birthdate" date, "gender" text, "diagnosis_date" date, "diabetes_type" text, "username" text, "password" text ); CREATE TABLE "bloodsugar" ( "id" int PRIMARY KEY, "timestamp" int, "value" int, "user_id" int ); CREATE TABLE "user_upload" ( "id" int PRIMARY KEY, "timestamp" int, "object_store" text, "user_id" int, "data_source" text, "model" text ); ALTER TABLE "insulin" ADD FOREIGN KEY ("user_id") REFERENCES "user" ("id"); ALTER TABLE "bloodsugar" ADD FOREIGN KEY ("user_id") REFERENCES "user" ("id"); ALTER TABLE "user_upload" ADD FOREIGN KEY ("user_id") REFERENCES "user" ("id");
CREATE DATABASE IF NOT EXISTS `php_app`; USE `php_app`; CREATE TABLE IF NOT EXISTS `users` ( `id` BIGINT unsigned NOT NULL AUTO_INCREMENT COMMENT 'user id', `nickname` VARCHAR(20) NOT NULL COMMENT 'nickname', `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
<filename>BDD -SCHEMA AND DATA/Scripts/projectDB Script3.sql CREATE OR REPLACE FUNCTION titulacion.if_modified_func() RETURNS TRIGGER AS $body$ DECLARE v_old_data TEXT; v_new_data TEXT; BEGIN IF (TG_OP = 'UPDATE') THEN v_old_data := ROW(OLD.*); v_new_data := ROW(NEW.*); INSERT INTO titulacion.logged_actions (schema_name,table_name,user_name,action,original_data,new_data,query) VALUES (TG_TABLE_SCHEMA::TEXT,TG_TABLE_NAME::TEXT,session_user::TEXT,substring(TG_OP,1,1),v_old_data,v_new_data, current_query()); RETURN NEW; ELSIF (TG_OP = 'DELETE') THEN v_old_data := ROW(OLD.*); INSERT INTO titulacion.logged_actions (schema_name,table_name,user_name,action,original_data,query) VALUES (TG_TABLE_SCHEMA::TEXT,TG_TABLE_NAME::TEXT,session_user::TEXT,substring(TG_OP,1,1),v_old_data, current_query()); RETURN OLD; ELSIF (TG_OP = 'INSERT') THEN v_new_data := ROW(NEW.*); INSERT INTO titulacion.logged_actions (schema_name,table_name,user_name,action,new_data,query) VALUES (TG_TABLE_SCHEMA::TEXT,TG_TABLE_NAME::TEXT,session_user::TEXT,substring(TG_OP,1,1),v_new_data, current_query()); RETURN NEW; ELSE RAISE WARNING '[titulacion.IF_MODIFIED_FUNC] - Other action occurred: %, at %',TG_OP,now(); RETURN NULL; END IF; EXCEPTION WHEN data_exception THEN RAISE WARNING '[titulacion.IF_MODIFIED_FUNC] - UDF ERROR [DATA EXCEPTION] - SQLSTATE: %, SQLERRM: %',SQLSTATE,SQLERRM; RETURN NULL; WHEN unique_violation THEN RAISE WARNING '[titulacion.IF_MODIFIED_FUNC] - UDF ERROR [UNIQUE] - SQLSTATE: %, SQLERRM: %',SQLSTATE,SQLERRM; RETURN NULL; WHEN OTHERS THEN RAISE WARNING '[titulacion.IF_MODIFIED_FUNC] - UDF ERROR [OTHER] - SQLSTATE: %, SQLERRM: %',SQLSTATE,SQLERRM; RETURN NULL; END; $body$ LANGUAGE plpgsql SECURITY DEFINER SET search_path = pg_catalog, titulacion; CREATE TRIGGER carrera_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.carrera FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER dicta_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.dicta FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER elabora_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.elabora FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER escuela_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.escuela FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER estudiante_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.estudiante FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER evento_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.evento FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER eve_x_est_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.eve_x_est FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER examen_complexivo_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.examen_complexivo FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER facultad_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.facultad FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER mat_ap_x_est_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.mat_ap_x_est FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER mat_x_plan_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.mat_x_plan FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER materia_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.materia FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER mat_x_exa_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.mat_x_exa FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER opcion_grado_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.opcion_grado FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER periodo_academico_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.periodo_academico FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER plan_de_estudio_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.plan_de_estudio FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER profesor_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.profesor FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER prorroga_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.prorroga FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER responsable_titulacion_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.responsable_titulacion FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER revdir_x_dis_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.revdir_x_dis FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func(); CREATE TRIGGER trabajo_disertacion_if_modified_trg AFTER INSERT OR UPDATE OR DELETE ON titulacion.trabajo_disertacion FOR EACH ROW EXECUTE PROCEDURE titulacion.if_modified_func();
# SQL Manager 2005 Lite for MySQL 3.7.7.1 # --------------------------------------- # Host : localhost # Port : 3306 # Database : disloques SET FOREIGN_KEY_CHECKS=0; USE `disloques`; # # Data for the `parametros` table (LIMIT 0,500) # INSERT INTO `parametros` (`id_parametro`, `parametro_dias_periodo`, `parametro_dias_anterior_reunion`) VALUES (1,20,7); COMMIT; # # Data for the `recaudadores` table (LIMIT 0,500) # INSERT INTO `recaudadores` (`id_recaudador`, `recaudador_nombres`, `recaudador_apellidos`, `recaudador_descripcion`, `recaudador_ultimo_rotacion_numero`) VALUES (1,'ELOY','<NAME>','',1), (2,'JHONNY','<NAME>','',1), (3,'LIZZETH','<NAME>','',1), (4,'<NAME>','<NAME>','',1), (5,'<NAME>','<NAME>','',1), (6,'<NAME>','<NAME>','',1), (7,'JOHNY','<NAME>','',1), (8,'RUTH','<NAME>','',1), (9,'<NAME>','COCA TOLEDO','',1), (10,'<NAME>','COCA AGREDA','',1), (11,'OLIMPIA','COPAT<NAME>','',1), (12,'<NAME>','<NAME>','',1), (13,'NELSON','<NAME>','',1), (14,'EFRAIN','<NAME>','',1), (15,'<NAME>','<NAME>','',1), (16,'JHOSEMAR','<NAME>','',1), (17,'<NAME>','<NAME>','',1), (18,'HECTOR','<NAME>','',1), (19,'MAURICIO','<NAME>','',1), (20,'DAMIAN','<NAME>','',1), (21,'MAURICIO','<NAME>','',1), (22,'<NAME>','<NAME>','',1), (23,'ANGEL','<NAME>','',1), (24,'IVET','<NAME>','',1), (25,'MARIBEL','<NAME>','',1), (26,'SABINO','<NAME>','',1), (27,'MATEO','<NAME>','',1), (28,'CELSO','<NAME>','',1), (29,'GRISBERT','<NAME>','',1), (30,'JORGE','<NAME>','',1), (31,'ARIEL','QUINTEROS FLORES','',1), (32,'HEIDY','QUINTEROS QUINTEROS','',1), (33,'NORA','<NAME>','',1); COMMIT; # # Data for the `retenes` table (LIMIT 0,500) # INSERT INTO `retenes` (`id_reten`, `reten_nombre`, `reten_recaudadores_requeridos`, `reten_estado`) VALUES (1,'ARANI',3,'activo'), (2,'<NAME>',1,'activo'), (3,'PARACAYA',4,'activo'), (4,'EPIZANA',4,'activo'), (5,'AIQUILE',2,'inactivo'), (6,'<NAME>',2,'inactivo'), (7,'BULO BULO',5,'inactivo'), (8,'<NAME>',1,'inactivo'), (9,'IVIRGARZAMA',5,'inactivo'), (10,'PADRESAMA',4,'inactivo'), (11,'KM 10',5,'inactivo'), (12,'AGUIRRE',5,'inactivo'), (13,'HUAYLLANI',6,'inactivo'), (14,'SUTICOLLO',7,'inactivo'), (15,'CONFITAL',5,'inactivo'), (16,'COLCAPIRHUA',8,'inactivo'); COMMIT; # # Data for the `rotacion_recaudadores` table (LIMIT 0,500) # INSERT INTO `rotacion_recaudadores` (`id_rotacion_recaudador`, `reten_id`, `rotacion_id`, `recaudador_id`, `rotacion_recaudador_plan`, `rotacion_recaudador_tipo`, `rotacion_recaudador_fecha_del`, `rotacion_recaudador_fecha_al`) VALUES (803,1,6,1,'plan1','operador','2016-07-01','2016-07-20'), (804,2,6,1,'descanso','operador','2016-07-01','2016-07-20'), (805,3,6,1,'descanso','operador','2016-07-01','2016-07-20'), (806,4,6,1,'descanso','operador','2016-07-01','2016-07-20'), (807,1,6,2,'descanso','operador','2016-07-01','2016-07-20'), (808,2,6,2,'plan2','operador','2016-07-01','2016-07-20'), (809,3,6,2,'descanso','operador','2016-07-01','2016-07-20'), (810,4,6,2,'descanso','operador','2016-07-01','2016-07-20'), (811,1,6,3,'descanso','operador','2016-07-01','2016-07-20'), (812,2,6,3,'descanso','operador','2016-07-01','2016-07-20'), (813,3,6,3,'plan1','operador','2016-07-01','2016-07-20'), (814,4,6,3,'descanso','operador','2016-07-01','2016-07-20'), (815,1,6,4,'descanso','operador','2016-07-01','2016-07-20'), (816,2,6,4,'descanso','operador','2016-07-01','2016-07-20'), (817,3,6,4,'descanso','operador','2016-07-01','2016-07-20'), (818,4,6,4,'plan2','operador','2016-07-01','2016-07-20'), (819,1,6,5,'plan1','operador','2016-07-01','2016-07-20'), (820,2,6,5,'descanso','operador','2016-07-01','2016-07-20'), (821,3,6,5,'descanso','operador','2016-07-01','2016-07-20'), (822,4,6,5,'descanso','operador','2016-07-01','2016-07-20'), (823,1,6,6,'descanso','operador','2016-07-01','2016-07-20'), (824,2,6,6,'plan2','operador','2016-07-01','2016-07-20'), (825,3,6,6,'descanso','operador','2016-07-01','2016-07-20'), (826,4,6,6,'descanso','operador','2016-07-01','2016-07-20'), (827,1,6,7,'descanso','operador','2016-07-01','2016-07-20'), (828,2,6,7,'descanso','operador','2016-07-01','2016-07-20'), (829,3,6,7,'plan1','operador','2016-07-01','2016-07-20'), (830,4,6,7,'descanso','operador','2016-07-01','2016-07-20'), (831,1,6,8,'descanso','operador','2016-07-01','2016-07-20'), (832,2,6,8,'descanso','operador','2016-07-01','2016-07-20'), (833,3,6,8,'descanso','operador','2016-07-01','2016-07-20'), (834,4,6,8,'plan2','operador','2016-07-01','2016-07-20'), (835,1,6,9,'descanso','operador','2016-07-01','2016-07-20'), (836,2,6,9,'descanso','operador','2016-07-01','2016-07-20'), (837,3,6,9,'descanso','operador','2016-07-01','2016-07-20'), (838,4,6,9,'descanso','operador','2016-07-01','2016-07-20'), (839,1,6,10,'descanso','operador','2016-07-01','2016-07-20'), (840,2,6,10,'descanso','operador','2016-07-01','2016-07-20'), (841,3,6,10,'descanso','operador','2016-07-01','2016-07-20'), (842,4,6,10,'descanso','operador','2016-07-01','2016-07-20'), (843,1,6,11,'descanso','operador','2016-07-01','2016-07-20'), (844,2,6,11,'descanso','operador','2016-07-01','2016-07-20'), (845,3,6,11,'descanso','operador','2016-07-01','2016-07-20'), (846,4,6,11,'descanso','operador','2016-07-01','2016-07-20'), (847,1,6,12,'descanso','operador','2016-07-01','2016-07-20'), (848,2,6,12,'descanso','operador','2016-07-01','2016-07-20'), (849,3,6,12,'descanso','operador','2016-07-01','2016-07-20'), (850,4,6,12,'descanso','operador','2016-07-01','2016-07-20'), (851,1,6,13,'descanso','operador','2016-07-01','2016-07-20'), (852,2,6,13,'descanso','operador','2016-07-01','2016-07-20'), (853,3,6,13,'descanso','operador','2016-07-01','2016-07-20'), (854,4,6,13,'descanso','operador','2016-07-01','2016-07-20'), (855,1,6,14,'descanso','operador','2016-07-01','2016-07-20'), (856,2,6,14,'descanso','operador','2016-07-01','2016-07-20'), (857,3,6,14,'descanso','operador','2016-07-01','2016-07-20'), (858,4,6,14,'descanso','operador','2016-07-01','2016-07-20'), (859,1,6,15,'descanso','operador','2016-07-01','2016-07-20'), (860,2,6,15,'descanso','operador','2016-07-01','2016-07-20'), (861,3,6,15,'descanso','operador','2016-07-01','2016-07-20'), (862,4,6,15,'descanso','operador','2016-07-01','2016-07-20'), (863,1,6,16,'descanso','operador','2016-07-01','2016-07-20'), (864,2,6,16,'descanso','operador','2016-07-01','2016-07-20'), (865,3,6,16,'descanso','operador','2016-07-01','2016-07-20'), (866,4,6,16,'descanso','operador','2016-07-01','2016-07-20'), (867,1,6,17,'descanso','operador','2016-07-01','2016-07-20'), (868,2,6,17,'descanso','operador','2016-07-01','2016-07-20'), (869,3,6,17,'descanso','operador','2016-07-01','2016-07-20'), (870,4,6,17,'descanso','operador','2016-07-01','2016-07-20'), (871,1,6,18,'descanso','operador','2016-07-01','2016-07-20'), (872,2,6,18,'descanso','operador','2016-07-01','2016-07-20'), (873,3,6,18,'descanso','operador','2016-07-01','2016-07-20'), (874,4,6,18,'descanso','operador','2016-07-01','2016-07-20'), (875,1,6,19,'descanso','operador','2016-07-01','2016-07-20'), (876,2,6,19,'descanso','operador','2016-07-01','2016-07-20'), (877,3,6,19,'descanso','operador','2016-07-01','2016-07-20'), (878,4,6,19,'descanso','operador','2016-07-01','2016-07-20'), (879,1,6,20,'descanso','operador','2016-07-01','2016-07-20'), (880,2,6,20,'descanso','operador','2016-07-01','2016-07-20'), (881,3,6,20,'descanso','operador','2016-07-01','2016-07-20'), (882,4,6,20,'descanso','operador','2016-07-01','2016-07-20'), (883,1,6,21,'descanso','operador','2016-07-01','2016-07-20'), (884,2,6,21,'descanso','operador','2016-07-01','2016-07-20'), (885,3,6,21,'descanso','operador','2016-07-01','2016-07-20'), (886,4,6,21,'descanso','operador','2016-07-01','2016-07-20'), (887,1,6,22,'descanso','operador','2016-07-01','2016-07-20'), (888,2,6,22,'descanso','operador','2016-07-01','2016-07-20'), (889,3,6,22,'descanso','operador','2016-07-01','2016-07-20'), (890,4,6,22,'descanso','operador','2016-07-01','2016-07-20'), (891,1,6,23,'descanso','operador','2016-07-01','2016-07-20'), (892,2,6,23,'descanso','operador','2016-07-01','2016-07-20'), (893,3,6,23,'descanso','operador','2016-07-01','2016-07-20'), (894,4,6,23,'descanso','operador','2016-07-01','2016-07-20'), (895,1,6,24,'descanso','operador','2016-07-01','2016-07-20'), (896,2,6,24,'descanso','operador','2016-07-01','2016-07-20'), (897,3,6,24,'descanso','operador','2016-07-01','2016-07-20'), (898,4,6,24,'descanso','operador','2016-07-01','2016-07-20'), (899,1,6,25,'descanso','operador','2016-07-01','2016-07-20'), (900,2,6,25,'descanso','operador','2016-07-01','2016-07-20'), (901,3,6,25,'descanso','operador','2016-07-01','2016-07-20'), (902,4,6,25,'descanso','operador','2016-07-01','2016-07-20'), (903,1,6,26,'descanso','operador','2016-07-01','2016-07-20'), (904,2,6,26,'descanso','operador','2016-07-01','2016-07-20'), (905,3,6,26,'descanso','operador','2016-07-01','2016-07-20'), (906,4,6,26,'descanso','operador','2016-07-01','2016-07-20'), (907,1,6,27,'descanso','operador','2016-07-01','2016-07-20'), (908,2,6,27,'descanso','operador','2016-07-01','2016-07-20'), (909,3,6,27,'descanso','operador','2016-07-01','2016-07-20'), (910,4,6,27,'descanso','operador','2016-07-01','2016-07-20'), (911,1,6,28,'descanso','operador','2016-07-01','2016-07-20'), (912,2,6,28,'descanso','operador','2016-07-01','2016-07-20'), (913,3,6,28,'descanso','operador','2016-07-01','2016-07-20'), (914,4,6,28,'descanso','operador','2016-07-01','2016-07-20'), (915,1,6,29,'descanso','operador','2016-07-01','2016-07-20'), (916,2,6,29,'descanso','operador','2016-07-01','2016-07-20'), (917,3,6,29,'descanso','operador','2016-07-01','2016-07-20'), (918,4,6,29,'descanso','operador','2016-07-01','2016-07-20'), (919,1,6,30,'descanso','operador','2016-07-01','2016-07-20'), (920,2,6,30,'descanso','operador','2016-07-01','2016-07-20'), (921,3,6,30,'descanso','operador','2016-07-01','2016-07-20'), (922,4,6,30,'descanso','operador','2016-07-01','2016-07-20'), (923,1,6,31,'descanso','operador','2016-07-01','2016-07-20'), (924,2,6,31,'descanso','operador','2016-07-01','2016-07-20'), (925,3,6,31,'descanso','operador','2016-07-01','2016-07-20'), (926,4,6,31,'descanso','operador','2016-07-01','2016-07-20'), (927,1,6,32,'descanso','operador','2016-07-01','2016-07-20'), (928,2,6,32,'descanso','operador','2016-07-01','2016-07-20'), (929,3,6,32,'descanso','operador','2016-07-01','2016-07-20'), (930,4,6,32,'descanso','operador','2016-07-01','2016-07-20'), (931,1,6,33,'descanso','operador','2016-07-01','2016-07-20'), (932,2,6,33,'descanso','operador','2016-07-01','2016-07-20'), (933,3,6,33,'descanso','operador','2016-07-01','2016-07-20'), (934,4,6,33,'descanso','operador','2016-07-01','2016-07-20'); COMMIT; # # Data for the `rotaciones` table (LIMIT 0,500) # INSERT INTO `rotaciones` (`id_rotacion`, `rotacion_numero`, `rotacion_fecha_del`, `rotacion_fecha_al`, `rotacion_fecha_reunion`) VALUES (6,1,'2016-07-01','2016-07-20','0000-00-00'), (7,2,'2016-07-21','2016-07-31','0000-00-00'), (8,3,'2016-07-01','2016-07-20','0000-00-00'); COMMIT;
<reponame>lgcarrier/AFW<gh_stars>1-10 SET DEFINE OFF; CREATE INDEX AFW_25_PARMT_TYPE_PUBLC_FK2 ON AFW_25_PARMT_TYPE_PUBLC (REF_ENGIN) LOGGING /
# Kuuzu # # @copyright (c) 2016 osCommerce; https://www.oscommerce.com # @license MIT; https://www.oscommerce.com/license/mit.txt # # @copyright Copyright (c) 2018 Kuuzu; https://kuuzu.org # @license MIT License; https://kuuzu.org/mitlicense.txt # # NOTE: * Please make any modifications to this file by hand! # * DO NOT use a mysqldump created file for new changes! # * Please take note of the table structure, and use this # structure as a standard for future modifications! # 1 - Default, 2 - USA, 3 - Spain, 4 - Singapore, 5 - Germany INSERT INTO address_format VALUES (1, '$firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country','$city / $country'); INSERT INTO address_format VALUES (2, '$firstname $lastname$cr$streets$cr$city, $state $postcode$cr$country','$city, $state / $country'); INSERT INTO address_format VALUES (3, '$firstname $lastname$cr$streets$cr$city$cr$postcode - $statecomma$country','$state / $country'); INSERT INTO address_format VALUES (4, '$firstname $lastname$cr$streets$cr$city ($postcode)$cr$country', '$postcode / $country'); INSERT INTO address_format VALUES (5, '$firstname $lastname$cr$streets$cr$postcode $city$cr$country','$city / $country'); INSERT INTO banners VALUES (1, 'Kuuzu', 'https://kuuzu.org', 'banners/kuuzu.gif', 'footer', '', 0, null, null, now(), null, 1); INSERT INTO categories VALUES (1, 'category_hardware.gif', 0, 1, '2018-06-07 03:20:14', null); INSERT INTO categories VALUES (2, 'category_software.gif', 0, 2, '2018-06-07 03:20:14', null); INSERT INTO categories VALUES (5, 'category_printers.jpg', 1, 0, '2018-06-07 03:20:14', '2018-06-07 03:56:24'); INSERT INTO categories VALUES (19, 'category-software.png', 2, 0, '2018-06-07 03:20:14', '2018-06-07 04:59:39'); INSERT INTO categories VALUES (21, 'category_gadgets.png', 0, 4, '2018-06-07 03:20:14', null); INSERT INTO categories VALUES (22, 'category_phones.jpg', 1, 10, '2018-06-07 03:23:56', '2018-06-07 04:51:44'); INSERT INTO categories VALUES (23, 'category-clothing.jpg', 0, 10, '2018-06-07 05:18:31', null); INSERT INTO categories VALUES (24, 'category-mens-clothing.jpg', 23, 10, '2018-06-07 05:22:16', null); INSERT INTO categories VALUES (25, 'category-womens-clothing.jpg', 23, 20, '2018-06-07 05:22:30', null); INSERT INTO categories_description VALUES (1, 1, 'Hardware', null, null, null, null); INSERT INTO categories_description VALUES (2, 1, 'Software', null, null, null, null); INSERT INTO categories_description VALUES (5, 1, 'Printers', null, null, null, null); INSERT INTO categories_description VALUES (19, 1, 'Office Suites', null, null, null, null); INSERT INTO categories_description VALUES (21, 1, 'Gadgets', null, null, null, null); INSERT INTO categories_description VALUES (22, 1, 'Phones', null, null, null, null); INSERT INTO categories_description VALUES (23, 1, 'Clothing', null, null, null, null); INSERT INTO categories_description VALUES (24, 1, 'Mens', null, null, null, null); INSERT INTO categories_description VALUES (25, 1, 'Womens', null, null, null, null); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Store Name', 'STORE_NAME', 'Kuuzu', 'The name of my store', '1', '1', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Store Owner', 'STORE_OWNER', 'Kuuzu', 'The name of my store owner', '1', '2', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('E-Mail Address', 'STORE_OWNER_EMAIL_ADDRESS', 'root@localhost', 'The e-mail address of my store owner', '1', '3', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('E-Mail From', 'EMAIL_FROM', 'Kuuzu <root@localhost>', 'The e-mail address used in (sent) e-mails', '1', '4', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) VALUES ('Country', 'STORE_COUNTRY', '223', 'The country my store is located in <br /><br /><strong>Note: Please remember to update the store zone.</strong>', '1', '6', 'tep_get_country_name', 'tep_cfg_pull_down_country_list(', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) VALUES ('Zone', 'STORE_ZONE', '18', 'The zone my store is located in', '1', '7', 'tep_cfg_get_zone_name', 'tep_cfg_pull_down_zone_list(', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Switch To Default Language Currency', 'USE_DEFAULT_LANGUAGE_CURRENCY', 'false', 'Automatically switch to the language\'s currency when it is changed', '1', '10', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Send Extra Order Emails To', 'SEND_EXTRA_ORDER_EMAILS_TO', '', 'Send extra order emails to the following email addresses, in this format: Name 1 &lt;email@address1&gt;, Name 2 &lt;email@address2&gt;', '1', '11', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Use Search-Engine Safe URLs', 'SEARCH_ENGINE_FRIENDLY_URLS', 'false', 'Use search-engine safe urls for all site links', '1', '12', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Display Cart After Adding Product', 'DISPLAY_CART', 'true', 'Display the shopping cart after adding a product (or return back to their origin)', '1', '14', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Allow Guest To Tell A Friend', 'ALLOW_GUEST_TO_TELL_A_FRIEND', 'false', 'Allow guests to tell a friend about a product', '1', '15', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Default Search Operator', 'ADVANCED_SEARCH_DEFAULT_OPERATOR', 'and', 'Default search operators', '1', '17', 'tep_cfg_select_option(array(\'and\', \'or\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Store Address', 'STORE_ADDRESS', 'Address Line 1\nAddress Line 2\nCountry\nPhone', 'This is the Address of my store used on printable documents and displayed online', '1', '18', 'tep_cfg_textarea(', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Store Phone', 'STORE_PHONE', '555-1234', 'This is the phone number of my store used on printable documents and displayed online', '1', '19', 'tep_cfg_textarea(', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Tax Decimal Places', 'TAX_DECIMAL_PLACES', '0', 'Pad the tax value this amount of decimal places', '1', '20', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Display Prices with Tax', 'DISPLAY_PRICE_WITH_TAX', 'false', 'Display prices with tax included (true) or add the tax at the end (false)', '1', '21', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('First Name', 'ENTRY_FIRST_NAME_MIN_LENGTH', '2', 'Minimum length of first name', '2', '1', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Last Name', 'ENTRY_LAST_NAME_MIN_LENGTH', '2', 'Minimum length of last name', '2', '2', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Date of Birth', 'ENTRY_DOB_MIN_LENGTH', '10', 'Minimum length of date of birth', '2', '3', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('E-Mail Address', 'ENTRY_EMAIL_ADDRESS_MIN_LENGTH', '6', 'Minimum length of e-mail address', '2', '4', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Street Address', 'ENTRY_STREET_ADDRESS_MIN_LENGTH', '5', 'Minimum length of street address', '2', '5', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Company', 'ENTRY_COMPANY_MIN_LENGTH', '2', 'Minimum length of company name', '2', '6', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Post Code', 'ENTRY_POSTCODE_MIN_LENGTH', '4', 'Minimum length of post code', '2', '7', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('City', 'ENTRY_CITY_MIN_LENGTH', '3', 'Minimum length of city', '2', '8', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('State', 'ENTRY_STATE_MIN_LENGTH', '2', 'Minimum length of state', '2', '9', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Telephone Number', 'ENTRY_TELEPHONE_MIN_LENGTH', '3', 'Minimum length of telephone number', '2', '10', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Password', '<PASSWORD>', '5', 'Minimum length of password', '2', '11', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Credit Card Owner Name', 'CC_OWNER_MIN_LENGTH', '3', 'Minimum length of credit card owner name', '2', '12', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Credit Card Number', 'CC_NUMBER_MIN_LENGTH', '10', 'Minimum length of credit card number', '2', '13', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Review Text', 'REVIEW_TEXT_MIN_LENGTH', '50', 'Minimum length of review text', '2', '14', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Best Sellers', 'MIN_DISPLAY_BESTSELLERS', '1', 'Minimum number of best sellers to display', '2', '15', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Also Purchased', 'MIN_DISPLAY_ALSO_PURCHASED', '1', 'Minimum number of products to display in the \'This Customer Also Purchased\' box', '2', '16', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Address Book Entries', 'MAX_ADDRESS_BOOK_ENTRIES', '5', 'Maximum address book entries a customer is allowed to have', '3', '1', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Search Results', 'MAX_DISPLAY_SEARCH_RESULTS', '20', 'Amount of products to list', '3', '2', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Special Products', 'MAX_DISPLAY_SPECIAL_PRODUCTS', '9', 'Maximum number of products on special to display', '3', '4', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Manufacturers List', 'MAX_DISPLAY_MANUFACTURERS_IN_A_LIST', '0', 'Used in manufacturers box; when the number of manufacturers exceeds this number, a drop-down list will be displayed instead of the default list', '3', '7', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Manufacturers Select Size', 'MAX_MANUFACTURERS_LIST', '1', 'Used in manufacturers box; when this value is \'1\' the classic drop-down list will be used for the manufacturers box. Otherwise, a list-box with the specified number of rows will be displayed.', '3', '7', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Length of Manufacturers Name', 'MAX_DISPLAY_MANUFACTURER_NAME_LEN', '15', 'Used in manufacturers box; maximum length of manufacturers name to display', '3', '8', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('New Reviews', 'MAX_DISPLAY_NEW_REVIEWS', '6', 'Maximum number of new reviews to display', '3', '9', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Selection of Random Reviews', 'MAX_RANDOM_SELECT_REVIEWS', '10', 'How many records to select from to choose one random product review', '3', '10', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Selection of Random New Products', 'MAX_RANDOM_SELECT_NEW', '10', 'How many records to select from to choose one random new product to display', '3', '11', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Selection of Products on Special', 'MAX_RANDOM_SELECT_SPECIALS', '10', 'How many records to select from to choose one random product special to display', '3', '12', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Categories To List Per Row', 'MAX_DISPLAY_CATEGORIES_PER_ROW', '3', 'How many categories to list per row', '3', '13', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('New Products Listing', 'MAX_DISPLAY_PRODUCTS_NEW', '10', 'Maximum number of new products to display in new products page', '3', '14', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Best Sellers', 'MAX_DISPLAY_BESTSELLERS', '10', 'Maximum number of best sellers to display', '3', '15', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Also Purchased', 'MAX_DISPLAY_ALSO_PURCHASED', '6', 'Maximum number of products to display in the \'This Customer Also Purchased\' box', '3', '16', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Customer Order History Box', 'MAX_DISPLAY_PRODUCTS_IN_ORDER_HISTORY_BOX', '6', 'Maximum number of products to display in the customer order history box', '3', '17', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Order History', 'MAX_DISPLAY_ORDER_HISTORY', '10', 'Maximum number of orders to display in the order history page', '3', '18', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Product Quantities In Shopping Cart', 'MAX_QTY_IN_CART', '99', 'Maximum number of product quantities that can be added to the shopping cart (0 for no limit)', '3', '19', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Small Image Width', 'SMALL_IMAGE_WIDTH', '100', 'The pixel width of small images', '4', '1', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Small Image Height', 'SMALL_IMAGE_HEIGHT', '80', 'The pixel height of small images', '4', '2', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Heading Image Width', 'HEADING_IMAGE_WIDTH', '57', 'The pixel width of heading images', '4', '3', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Heading Image Height', 'HEADING_IMAGE_HEIGHT', '40', 'The pixel height of heading images', '4', '4', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Subcategory Image Width', 'SUBCATEGORY_IMAGE_WIDTH', '100', 'The pixel width of subcategory images', '4', '5', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Subcategory Image Height', 'SUBCATEGORY_IMAGE_HEIGHT', '57', 'The pixel height of subcategory images', '4', '6', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Image Required', 'IMAGE_REQUIRED', 'true', 'Enable to display broken images. Good for development.', '4', '8', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Gender', 'ACCOUNT_GENDER', 'true', 'Display gender in the customers account', '5', '1', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Date of Birth', 'ACCOUNT_DOB', 'true', 'Display date of birth in the customers account', '5', '2', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Company', 'ACCOUNT_COMPANY', 'true', 'Display company in the customers account', '5', '3', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Suburb', 'ACCOUNT_SUBURB', 'true', 'Display suburb in the customers account', '5', '4', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('State', 'ACCOUNT_STATE', 'true', 'Display state in the customers account', '5', '5', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Installed Modules', 'MODULE_PAYMENT_INSTALLED', '', 'List of payment module filenames separated by a semi-colon. This is automatically updated. No need to edit. (Example: cod.php;paypal_express.php)', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Installed Modules', 'MODULE_ORDER_TOTAL_INSTALLED', '', 'List of order_total module filenames separated by a semi-colon. This is automatically updated. No need to edit. (Example: ot_subtotal.php;ot_tax.php;ot_shipping.php;ot_total.php)', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Installed Modules', 'MODULE_SHIPPING_INSTALLED', '', 'List of shipping module filenames separated by a semi-colon. This is automatically updated. No need to edit. (Example: ups.php;flat.php;item.php)', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Installed Modules', 'MODULE_ACTION_RECORDER_INSTALLED', '', 'List of action recorder module filenames separated by a semi-colon. This is automatically updated. No need to edit.', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Installed Modules', 'MODULE_SOCIAL_BOOKMARKS_INSTALLED', '', 'List of social bookmark module filenames separated by a semi-colon. This is automatically updated. No need to edit.', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Installed Modules', 'MODULE_CONTENT_NAVBAR_INSTALLED', '', 'List of navbar module filenames separated by a semi-colon. This is automatically updated. No need to edit.', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Installed Modules', 'MODULE_HEADER_TAGS_INSTALLED', '', 'List of header tag module filenames separated by a semi-colon. This is automatically updated. No need to edit.', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Installed Modules', 'MODULE_ADMIN_DASHBOARD_INSTALLED', '', 'List of Administration Tool Dashboard module filenames separated by a semi-colon. This is automatically updated. No need to edit.', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Installed Modules', 'MODULE_BOXES_INSTALLED', '', 'List of box module filenames separated by a semi-colon. This is automatically updated. No need to edit.', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Installed Modules', 'MODULE_CONTENT_INSTALLED', '', 'This is automatically updated. No need to edit.', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Installed Template Block Groups', 'TEMPLATE_BLOCK_GROUPS', 'boxes;header_tags', 'This is automatically updated. No need to edit.', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Default Currency', 'DEFAULT_CURRENCY', 'USD', 'Default Currency', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Default Language', 'DEFAULT_LANGUAGE', 'en', 'Default Language', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Default Order Status For New Orders', 'DEFAULT_ORDERS_STATUS_ID', '1', 'When a new order is created, this order status will be assigned to it.', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) VALUES ('Country of Origin', 'SHIPPING_ORIGIN_COUNTRY', '223', 'Select the country of origin to be used in shipping quotes.', '7', '1', 'tep_get_country_name', 'tep_cfg_pull_down_country_list(', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Postal Code', 'SHIPPING_ORIGIN_ZIP', 'NONE', 'Enter the Postal Code (ZIP) of the Store to be used in shipping quotes.', '7', '2', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Enter the Maximum Package Weight you will ship', 'SHIPPING_MAX_WEIGHT', '50', 'Carriers have a max weight limit for a single package. This is a common one for all.', '7', '3', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Package Tare weight.', 'SHIPPING_BOX_WEIGHT', '3', 'What is the weight of typical packaging of small to medium packages?', '7', '4', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Larger packages - percentage increase.', 'SHIPPING_BOX_PADDING', '10', 'For 10% enter 10', '7', '5', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Allow Orders Not Matching Defined Shipping Zones ', 'SHIPPING_ALLOW_UNDEFINED_ZONES', 'False', 'Should orders be allowed to shipping addresses not matching defined shipping module shipping zones?', '7', '5', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Display Product Image (0=disable; 1=enable)', 'PRODUCT_LIST_IMAGE', '1', 'Do you want to display the Product Image?', '8', '1', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Display Product Manufacturer Name (0=disable; 1=enable)','PRODUCT_LIST_MANUFACTURER', '0', 'Do you want to display the Product Manufacturer Name?', '8', '2', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Display Product Model (0=disable; 1=enable)', 'PRODUCT_LIST_MODEL', '0', 'Do you want to display the Product Model?', '8', '3', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Display Product Name (0=disable; 1=enable)', 'PRODUCT_LIST_NAME', '1', 'Do you want to display the Product Name?', '8', '4', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Display Product Price (0=disable; 1=enable)', 'PRODUCT_LIST_PRICE', '1', 'Do you want to display the Product Price', '8', '5', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Display Product Quantity (0=disable; 1=enable)', 'PRODUCT_LIST_QUANTITY', '0', 'Do you want to display the Product Quantity?', '8', '6', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Display Product Weight (0=disable; 1=enable)', 'PRODUCT_LIST_WEIGHT', '0', 'Do you want to display the Product Weight?', '8', '7', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Display Buy Now column (0=disable; 1=enable)', 'PRODUCT_LIST_BUY_NOW', '1', 'Do you want to display the Buy Now column?', '8', '8', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Display Category/Manufacturer Filter (0=disable; 1=enable)', 'PRODUCT_LIST_FILTER', '1', 'Do you want to display the Category/Manufacturer Filter?', '8', '9', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Location of Prev/Next Navigation Bar (1-top, 2-bottom, 3-both)', 'PREV_NEXT_BAR_LOCATION', '2', 'Sets the location of the Prev/Next Navigation Bar (1-top, 2-bottom, 3-both)', '8', '10', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Check stock level', 'STOCK_CHECK', 'true', 'Check to see if sufficent stock is available', '9', '1', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Subtract stock', 'STOCK_LIMITED', 'true', 'Subtract product in stock by product orders', '9', '2', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Allow Checkout', 'STOCK_ALLOW_CHECKOUT', 'true', 'Allow customer to checkout even if there is insufficient stock', '9', '3', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Mark product out of stock', 'STOCK_MARK_PRODUCT_OUT_OF_STOCK', '***', 'Display something on screen so customer can see which product has insufficient stock', '9', '4', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Stock Re-order level', 'STOCK_REORDER_LEVEL', '5', 'Define when stock needs to be re-ordered', '9', '5', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Store Page Parse Time', 'STORE_PAGE_PARSE_TIME', 'false', 'Store the time it takes to parse a page', '10', '1', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Log Destination', 'STORE_PAGE_PARSE_TIME_LOG', '/var/log/www/tep/page_parse_time.log', 'Directory and filename of the page parse time log', '10', '2', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Log Date Format', 'STORE_PARSE_DATE_TIME_FORMAT', '%d/%m/%Y %H:%M:%S', 'The date format', '10', '3', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Display The Page Parse Time', 'DISPLAY_PAGE_PARSE_TIME', 'true', 'Display the page parse time (store page parse time must be enabled)', '10', '4', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Store Database Queries', 'STORE_DB_TRANSACTIONS', 'false', 'Store the database queries in the page parse time log', '10', '5', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('E-Mail Transport Method', 'EMAIL_TRANSPORT', 'sendmail', 'Defines if this server uses a local connection to sendmail or uses an SMTP connection via TCP/IP. Servers running on Windows and MacOS should change this setting to SMTP.', '12', '1', 'tep_cfg_select_option(array(\'sendmail\', \'smtp\'),', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Verify E-Mail Addresses Through DNS', 'ENTRY_EMAIL_ADDRESS_CHECK', 'false', 'Verify e-mail address through a DNS server', '12', '4', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Send E-Mails', 'SEND_EMAILS', 'true', 'Send out e-mails', '12', '5', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable download', 'DOWNLOAD_ENABLED', 'false', 'Enable the products download functions.', '13', '1', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Download by redirect', 'DOWNLOAD_BY_REDIRECT', 'false', 'Use browser redirection for download. Disable on non-Unix systems.', '13', '2', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Expiry delay (days)' ,'DOWNLOAD_MAX_DAYS', '7', 'Set number of days before the download link expires. 0 means no limit.', '13', '3', '', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Maximum number of downloads' ,'DOWNLOAD_MAX_COUNT', '5', 'Set the maximum number of downloads. 0 means no download authorized.', '13', '4', '', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Enable GZip Compression', 'GZIP_COMPRESSION', 'false', 'Enable HTTP GZip compression.', '14', '1', 'tep_cfg_select_option(array(\'true\', \'false\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Compression Level', 'GZIP_LEVEL', '5', 'Use this compression level 0-9 (0 = minimum, 9 = maximum).', '14', '2', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Check SSL Session ID', 'SESSION_CHECK_SSL_SESSION_ID', 'False', 'Validate the SSL_SESSION_ID on every secure HTTPS page request.', '15', '3', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Check User Agent', 'SESSION_CHECK_USER_AGENT', 'False', 'Validate the clients browser user agent on every page request.', '15', '4', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Check IP Address', 'SESSION_CHECK_IP_ADDRESS', 'False', 'Validate the clients IP address on every page request.', '15', '5', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Prevent Spider Sessions', 'SESSION_BLOCK_SPIDERS', 'True', 'Prevent known spiders from starting a session.', '15', '6', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Last Update Check Time', 'LAST_UPDATE_CHECK_TIME', '', 'Last time a check for new versions of Kuuzu was run', '6', '0', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Store Logo', 'STORE_LOGO', 'store_logo.png', 'This is the filename of your Store Logo. This should be updated at admin > configuration > Store Logo', 6, 1000, now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Bootstrap Container', 'BOOTSTRAP_CONTAINER', 'container-fluid', 'What type of container should the page content be shown in? See http://getbootstrap.com/css/#overview-container', '16', '1', 'tep_cfg_select_option(array(\'container-fluid\', \'container\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Bootstrap Content', 'BOOTSTRAP_CONTENT', '8', 'What width should the page content default to? (8 = two thirds width, 6 = half width, 4 = one third width) Note that the Side Column(s) will adjust automatically.', '16', '2', 'tep_cfg_select_option(array(\'8\', \'6\', \'4\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Verify SSL Certificates', 'KUUZU_HTTP_VERIFY_SSL', 'True', 'Verify SSL Certificates when making HTTPS API calls.', '17', '1', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now()); INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) VALUES ('Proxy', 'KUUZU_HTTP_PROXY', '', 'Send API requests through this proxy server (host:port, eg: proxy-server:8080)', '17', '2', now()); INSERT INTO configuration_group VALUES ('1', 'My Store', 'General information about my store', '1', '1'); INSERT INTO configuration_group VALUES ('2', 'Minimum Values', 'The minimum values for functions / data', '2', '1'); INSERT INTO configuration_group VALUES ('3', 'Maximum Values', 'The maximum values for functions / data', '3', '1'); INSERT INTO configuration_group VALUES ('4', 'Images', 'Image parameters', '4', '1'); INSERT INTO configuration_group VALUES ('5', 'Customer Details', 'Customer account configuration', '5', '1'); INSERT INTO configuration_group VALUES ('6', 'Module Options', 'Hidden from configuration', '6', '0'); INSERT INTO configuration_group VALUES ('7', 'Shipping/Packaging', 'Shipping options available at my store', '7', '1'); INSERT INTO configuration_group VALUES ('8', 'Product Listing', 'Product Listing configuration options', '8', '1'); INSERT INTO configuration_group VALUES ('9', 'Stock', 'Stock configuration options', '9', '1'); INSERT INTO configuration_group VALUES ('10', 'Logging', 'Logging configuration options', '10', '1'); INSERT INTO configuration_group VALUES ('12', 'E-Mail Options', 'General setting for E-Mail transport and HTML E-Mails', '12', '1'); INSERT INTO configuration_group VALUES ('13', 'Download', 'Downloadable products options', '13', '1'); INSERT INTO configuration_group VALUES ('14', 'GZip Compression', 'GZip compression options', '14', '1'); INSERT INTO configuration_group VALUES ('15', 'Sessions', 'Session options', '15', '1'); INSERT INTO configuration_group VALUES ('16', 'Bootstrap Setup', 'Basic Bootstrap Options', '16', '1'); INSERT INTO configuration_group VALUES ('17', 'HTTP/API Settings', 'HTTP/API Settings', '17', '1'); INSERT INTO countries VALUES (1,'Afghanistan','AF','AFG','1'); INSERT INTO countries VALUES (2,'Albania','AL','ALB','1'); INSERT INTO countries VALUES (3,'Algeria','DZ','DZA','1'); INSERT INTO countries VALUES (4,'American Samoa','AS','ASM','1'); INSERT INTO countries VALUES (5,'Andorra','AD','AND','1'); INSERT INTO countries VALUES (6,'Angola','AO','AGO','1'); INSERT INTO countries VALUES (7,'Anguilla','AI','AIA','1'); INSERT INTO countries VALUES (8,'Antarctica','AQ','ATA','1'); INSERT INTO countries VALUES (9,'Antigua and Barbuda','AG','ATG','1'); INSERT INTO countries VALUES (10,'Argentina','AR','ARG','1'); INSERT INTO countries VALUES (11,'Armenia','AM','ARM','1'); INSERT INTO countries VALUES (12,'Aruba','AW','ABW','1'); INSERT INTO countries VALUES (13,'Australia','AU','AUS','1'); INSERT INTO countries VALUES (14,'Austria','AT','AUT','5'); INSERT INTO countries VALUES (15,'Azerbaijan','AZ','AZE','1'); INSERT INTO countries VALUES (16,'Bahamas','BS','BHS','1'); INSERT INTO countries VALUES (17,'Bahrain','BH','BHR','1'); INSERT INTO countries VALUES (18,'Bangladesh','BD','BGD','1'); INSERT INTO countries VALUES (19,'Barbados','BB','BRB','1'); INSERT INTO countries VALUES (20,'Belarus','BY','BLR','1'); INSERT INTO countries VALUES (21,'Belgium','BE','BEL','1'); INSERT INTO countries VALUES (22,'Belize','BZ','BLZ','1'); INSERT INTO countries VALUES (23,'Benin','BJ','BEN','1'); INSERT INTO countries VALUES (24,'Bermuda','BM','BMU','1'); INSERT INTO countries VALUES (25,'Bhutan','BT','BTN','1'); INSERT INTO countries VALUES (26,'Bolivia','BO','BOL','1'); INSERT INTO countries VALUES (27,'Bosnia and Herzegowina','BA','BIH','1'); INSERT INTO countries VALUES (28,'Botswana','BW','BWA','1'); INSERT INTO countries VALUES (29,'Bouvet Island','BV','BVT','1'); INSERT INTO countries VALUES (30,'Brazil','BR','BRA','1'); INSERT INTO countries VALUES (31,'British Indian Ocean Territory','IO','IOT','1'); INSERT INTO countries VALUES (32,'Brunei Darussalam','BN','BRN','1'); INSERT INTO countries VALUES (33,'Bulgaria','BG','BGR','1'); INSERT INTO countries VALUES (34,'Burkina Faso','BF','BFA','1'); INSERT INTO countries VALUES (35,'Burundi','BI','BDI','1'); INSERT INTO countries VALUES (36,'Cambodia','KH','KHM','1'); INSERT INTO countries VALUES (37,'Cameroon','CM','CMR','1'); INSERT INTO countries VALUES (38,'Canada','CA','CAN','1'); INSERT INTO countries VALUES (39,'Cape Verde','CV','CPV','1'); INSERT INTO countries VALUES (40,'Cayman Islands','KY','CYM','1'); INSERT INTO countries VALUES (41,'Central African Republic','CF','CAF','1'); INSERT INTO countries VALUES (42,'Chad','TD','TCD','1'); INSERT INTO countries VALUES (43,'Chile','CL','CHL','1'); INSERT INTO countries VALUES (44,'China','CN','CHN','1'); INSERT INTO countries VALUES (45,'Christmas Island','CX','CXR','1'); INSERT INTO countries VALUES (46,'Cocos (Keeling) Islands','CC','CCK','1'); INSERT INTO countries VALUES (47,'Colombia','CO','COL','1'); INSERT INTO countries VALUES (48,'Comoros','KM','COM','1'); INSERT INTO countries VALUES (49,'Congo','CG','COG','1'); INSERT INTO countries VALUES (50,'Cook Islands','CK','COK','1'); INSERT INTO countries VALUES (51,'Costa Rica','CR','CRI','1'); INSERT INTO countries VALUES (52,'Cote D\'Ivoire','CI','CIV','1'); INSERT INTO countries VALUES (53,'Croatia','HR','HRV','1'); INSERT INTO countries VALUES (54,'Cuba','CU','CUB','1'); INSERT INTO countries VALUES (55,'Cyprus','CY','CYP','1'); INSERT INTO countries VALUES (56,'Czech Republic','CZ','CZE','1'); INSERT INTO countries VALUES (57,'Denmark','DK','DNK','1'); INSERT INTO countries VALUES (58,'Djibouti','DJ','DJI','1'); INSERT INTO countries VALUES (59,'Dominica','DM','DMA','1'); INSERT INTO countries VALUES (60,'Dominican Republic','DO','DOM','1'); INSERT INTO countries VALUES (61,'East Timor','TP','TMP','1'); INSERT INTO countries VALUES (62,'Ecuador','EC','ECU','1'); INSERT INTO countries VALUES (63,'Egypt','EG','EGY','1'); INSERT INTO countries VALUES (64,'El Salvador','SV','SLV','1'); INSERT INTO countries VALUES (65,'Equatorial Guinea','GQ','GNQ','1'); INSERT INTO countries VALUES (66,'Eritrea','ER','ERI','1'); INSERT INTO countries VALUES (67,'Estonia','EE','EST','1'); INSERT INTO countries VALUES (68,'Ethiopia','ET','ETH','1'); INSERT INTO countries VALUES (69,'Falkland Islands (Malvinas)','FK','FLK','1'); INSERT INTO countries VALUES (70,'Faroe Islands','FO','FRO','1'); INSERT INTO countries VALUES (71,'Fiji','FJ','FJI','1'); INSERT INTO countries VALUES (72,'Finland','FI','FIN','1'); INSERT INTO countries VALUES (73,'France','FR','FRA','1'); INSERT INTO countries VALUES (74,'France, Metropolitan','FX','FXX','1'); INSERT INTO countries VALUES (75,'French Guiana','GF','GUF','1'); INSERT INTO countries VALUES (76,'French Polynesia','PF','PYF','1'); INSERT INTO countries VALUES (77,'French Southern Territories','TF','ATF','1'); INSERT INTO countries VALUES (78,'Gabon','GA','GAB','1'); INSERT INTO countries VALUES (79,'Gambia','GM','GMB','1'); INSERT INTO countries VALUES (80,'Georgia','GE','GEO','1'); INSERT INTO countries VALUES (81,'Germany','DE','DEU','5'); INSERT INTO countries VALUES (82,'Ghana','GH','GHA','1'); INSERT INTO countries VALUES (83,'Gibraltar','GI','GIB','1'); INSERT INTO countries VALUES (84,'Greece','GR','GRC','1'); INSERT INTO countries VALUES (85,'Greenland','GL','GRL','1'); INSERT INTO countries VALUES (86,'Grenada','GD','GRD','1'); INSERT INTO countries VALUES (87,'Guadeloupe','GP','GLP','1'); INSERT INTO countries VALUES (88,'Guam','GU','GUM','1'); INSERT INTO countries VALUES (89,'Guatemala','GT','GTM','1'); INSERT INTO countries VALUES (90,'Guinea','GN','GIN','1'); INSERT INTO countries VALUES (91,'Guinea-bissau','GW','GNB','1'); INSERT INTO countries VALUES (92,'Guyana','GY','GUY','1'); INSERT INTO countries VALUES (93,'Haiti','HT','HTI','1'); INSERT INTO countries VALUES (94,'Heard and Mc Donald Islands','HM','HMD','1'); INSERT INTO countries VALUES (95,'Honduras','HN','HND','1'); INSERT INTO countries VALUES (96,'Hong Kong','HK','HKG','1'); INSERT INTO countries VALUES (97,'Hungary','HU','HUN','1'); INSERT INTO countries VALUES (98,'Iceland','IS','ISL','1'); INSERT INTO countries VALUES (99,'India','IN','IND','1'); INSERT INTO countries VALUES (100,'Indonesia','ID','IDN','1'); INSERT INTO countries VALUES (101,'Iran (Islamic Republic of)','IR','IRN','1'); INSERT INTO countries VALUES (102,'Iraq','IQ','IRQ','1'); INSERT INTO countries VALUES (103,'Ireland','IE','IRL','1'); INSERT INTO countries VALUES (104,'Israel','IL','ISR','1'); INSERT INTO countries VALUES (105,'Italy','IT','ITA','1'); INSERT INTO countries VALUES (106,'Jamaica','JM','JAM','1'); INSERT INTO countries VALUES (107,'Japan','JP','JPN','1'); INSERT INTO countries VALUES (108,'Jordan','JO','JOR','1'); INSERT INTO countries VALUES (109,'Kazakhstan','KZ','KAZ','1'); INSERT INTO countries VALUES (110,'Kenya','KE','KEN','1'); INSERT INTO countries VALUES (111,'Kiribati','KI','KIR','1'); INSERT INTO countries VALUES (112,'Korea, Democratic People\'s Republic of','KP','PRK','1'); INSERT INTO countries VALUES (113,'Korea, Republic of','KR','KOR','1'); INSERT INTO countries VALUES (114,'Kuwait','KW','KWT','1'); INSERT INTO countries VALUES (115,'Kyrgyzstan','KG','KGZ','1'); INSERT INTO countries VALUES (116,'Lao People\'s Democratic Republic','LA','LAO','1'); INSERT INTO countries VALUES (117,'Latvia','LV','LVA','1'); INSERT INTO countries VALUES (118,'Lebanon','LB','LBN','1'); INSERT INTO countries VALUES (119,'Lesotho','LS','LSO','1'); INSERT INTO countries VALUES (120,'Liberia','LR','LBR','1'); INSERT INTO countries VALUES (121,'Libyan Arab Jamahiriya','LY','LBY','1'); INSERT INTO countries VALUES (122,'Liechtenstein','LI','LIE','1'); INSERT INTO countries VALUES (123,'Lithuania','LT','LTU','1'); INSERT INTO countries VALUES (124,'Luxembourg','LU','LUX','1'); INSERT INTO countries VALUES (125,'Macau','MO','MAC','1'); INSERT INTO countries VALUES (126,'Macedonia, The Former Yugoslav Republic of','MK','MKD','1'); INSERT INTO countries VALUES (127,'Madagascar','MG','MDG','1'); INSERT INTO countries VALUES (128,'Malawi','MW','MWI','1'); INSERT INTO countries VALUES (129,'Malaysia','MY','MYS','1'); INSERT INTO countries VALUES (130,'Maldives','MV','MDV','1'); INSERT INTO countries VALUES (131,'Mali','ML','MLI','1'); INSERT INTO countries VALUES (132,'Malta','MT','MLT','1'); INSERT INTO countries VALUES (133,'Marshall Islands','MH','MHL','1'); INSERT INTO countries VALUES (134,'Martinique','MQ','MTQ','1'); INSERT INTO countries VALUES (135,'Mauritania','MR','MRT','1'); INSERT INTO countries VALUES (136,'Mauritius','MU','MUS','1'); INSERT INTO countries VALUES (137,'Mayotte','YT','MYT','1'); INSERT INTO countries VALUES (138,'Mexico','MX','MEX','1'); INSERT INTO countries VALUES (139,'Micronesia, Federated States of','FM','FSM','1'); INSERT INTO countries VALUES (140,'Moldova, Republic of','MD','MDA','1'); INSERT INTO countries VALUES (141,'Monaco','MC','MCO','1'); INSERT INTO countries VALUES (142,'Mongolia','MN','MNG','1'); INSERT INTO countries VALUES (143,'Montserrat','MS','MSR','1'); INSERT INTO countries VALUES (144,'Morocco','MA','MAR','1'); INSERT INTO countries VALUES (145,'Mozambique','MZ','MOZ','1'); INSERT INTO countries VALUES (146,'Myanmar','MM','MMR','1'); INSERT INTO countries VALUES (147,'Namibia','NA','NAM','1'); INSERT INTO countries VALUES (148,'Nauru','NR','NRU','1'); INSERT INTO countries VALUES (149,'Nepal','NP','NPL','1'); INSERT INTO countries VALUES (150,'Netherlands','NL','NLD','1'); INSERT INTO countries VALUES (151,'Netherlands Antilles','AN','ANT','1'); INSERT INTO countries VALUES (152,'New Caledonia','NC','NCL','1'); INSERT INTO countries VALUES (153,'New Zealand','NZ','NZL','1'); INSERT INTO countries VALUES (154,'Nicaragua','NI','NIC','1'); INSERT INTO countries VALUES (155,'Niger','NE','NER','1'); INSERT INTO countries VALUES (156,'Nigeria','NG','NGA','1'); INSERT INTO countries VALUES (157,'Niue','NU','NIU','1'); INSERT INTO countries VALUES (158,'Norfolk Island','NF','NFK','1'); INSERT INTO countries VALUES (159,'Northern Mariana Islands','MP','MNP','1'); INSERT INTO countries VALUES (160,'Norway','NO','NOR','1'); INSERT INTO countries VALUES (161,'Oman','OM','OMN','1'); INSERT INTO countries VALUES (162,'Pakistan','PK','PAK','1'); INSERT INTO countries VALUES (163,'Palau','PW','PLW','1'); INSERT INTO countries VALUES (164,'Panama','PA','PAN','1'); INSERT INTO countries VALUES (165,'Papua New Guinea','PG','PNG','1'); INSERT INTO countries VALUES (166,'Paraguay','PY','PRY','1'); INSERT INTO countries VALUES (167,'Peru','PE','PER','1'); INSERT INTO countries VALUES (168,'Philippines','PH','PHL','1'); INSERT INTO countries VALUES (169,'Pitcairn','PN','PCN','1'); INSERT INTO countries VALUES (170,'Poland','PL','POL','1'); INSERT INTO countries VALUES (171,'Portugal','PT','PRT','1'); INSERT INTO countries VALUES (172,'Puerto Rico','PR','PRI','1'); INSERT INTO countries VALUES (173,'Qatar','QA','QAT','1'); INSERT INTO countries VALUES (174,'Reunion','RE','REU','1'); INSERT INTO countries VALUES (175,'Romania','RO','ROM','1'); INSERT INTO countries VALUES (176,'Russian Federation','RU','RUS','1'); INSERT INTO countries VALUES (177,'Rwanda','RW','RWA','1'); INSERT INTO countries VALUES (178,'Saint Kitts and Nevis','KN','KNA','1'); INSERT INTO countries VALUES (179,'Saint Lucia','LC','LCA','1'); INSERT INTO countries VALUES (180,'Saint Vincent and the Grenadines','VC','VCT','1'); INSERT INTO countries VALUES (181,'Samoa','WS','WSM','1'); INSERT INTO countries VALUES (182,'San Marino','SM','SMR','1'); INSERT INTO countries VALUES (183,'Sao Tome and Principe','ST','STP','1'); INSERT INTO countries VALUES (184,'Saudi Arabia','SA','SAU','1'); INSERT INTO countries VALUES (185,'Senegal','SN','SEN','1'); INSERT INTO countries VALUES (186,'Seychelles','SC','SYC','1'); INSERT INTO countries VALUES (187,'Sierra Leone','SL','SLE','1'); INSERT INTO countries VALUES (188,'Singapore','SG','SGP', '4'); INSERT INTO countries VALUES (189,'Slovakia (Slovak Republic)','SK','SVK','1'); INSERT INTO countries VALUES (190,'Slovenia','SI','SVN','1'); INSERT INTO countries VALUES (191,'Solomon Islands','SB','SLB','1'); INSERT INTO countries VALUES (192,'Somalia','SO','SOM','1'); INSERT INTO countries VALUES (193,'South Africa','ZA','ZAF','1'); INSERT INTO countries VALUES (194,'South Georgia and the South Sandwich Islands','GS','SGS','1'); INSERT INTO countries VALUES (195,'Spain','ES','ESP','3'); INSERT INTO countries VALUES (196,'Sri Lanka','LK','LKA','1'); INSERT INTO countries VALUES (197,'St. Helena','SH','SHN','1'); INSERT INTO countries VALUES (198,'St. Pierre and Miquelon','PM','SPM','1'); INSERT INTO countries VALUES (199,'Sudan','SD','SDN','1'); INSERT INTO countries VALUES (200,'Suriname','SR','SUR','1'); INSERT INTO countries VALUES (201,'Svalbard and Jan Mayen Islands','SJ','SJM','1'); INSERT INTO countries VALUES (202,'Swaziland','SZ','SWZ','1'); INSERT INTO countries VALUES (203,'Sweden','SE','SWE','1'); INSERT INTO countries VALUES (204,'Switzerland','CH','CHE','1'); INSERT INTO countries VALUES (205,'Syrian Arab Republic','SY','SYR','1'); INSERT INTO countries VALUES (206,'Taiwan','TW','TWN','1'); INSERT INTO countries VALUES (207,'Tajikistan','TJ','TJK','1'); INSERT INTO countries VALUES (208,'Tanzania, United Republic of','TZ','TZA','1'); INSERT INTO countries VALUES (209,'Thailand','TH','THA','1'); INSERT INTO countries VALUES (210,'Togo','TG','TGO','1'); INSERT INTO countries VALUES (211,'Tokelau','TK','TKL','1'); INSERT INTO countries VALUES (212,'Tonga','TO','TON','1'); INSERT INTO countries VALUES (213,'Trinidad and Tobago','TT','TTO','1'); INSERT INTO countries VALUES (214,'Tunisia','TN','TUN','1'); INSERT INTO countries VALUES (215,'Turkey','TR','TUR','1'); INSERT INTO countries VALUES (216,'Turkmenistan','TM','TKM','1'); INSERT INTO countries VALUES (217,'Turks and Caicos Islands','TC','TCA','1'); INSERT INTO countries VALUES (218,'Tuvalu','TV','TUV','1'); INSERT INTO countries VALUES (219,'Uganda','UG','UGA','1'); INSERT INTO countries VALUES (220,'Ukraine','UA','UKR','1'); INSERT INTO countries VALUES (221,'United Arab Emirates','AE','ARE','1'); INSERT INTO countries VALUES (222,'United Kingdom','GB','GBR','1'); INSERT INTO countries VALUES (223,'United States','US','USA', '2'); INSERT INTO countries VALUES (224,'United States Minor Outlying Islands','UM','UMI','1'); INSERT INTO countries VALUES (225,'Uruguay','UY','URY','1'); INSERT INTO countries VALUES (226,'Uzbekistan','UZ','UZB','1'); INSERT INTO countries VALUES (227,'Vanuatu','VU','VUT','1'); INSERT INTO countries VALUES (228,'Vatican City State (Holy See)','VA','VAT','1'); INSERT INTO countries VALUES (229,'Venezuela','VE','VEN','1'); INSERT INTO countries VALUES (230,'Viet Nam','VN','VNM','1'); INSERT INTO countries VALUES (231,'Virgin Islands (British)','VG','VGB','1'); INSERT INTO countries VALUES (232,'Virgin Islands (U.S.)','VI','VIR','1'); INSERT INTO countries VALUES (233,'Wallis and Futuna Islands','WF','WLF','1'); INSERT INTO countries VALUES (234,'Western Sahara','EH','ESH','1'); INSERT INTO countries VALUES (235,'Yemen','YE','YEM','1'); INSERT INTO countries VALUES (236,'Yugoslavia','YU','YUG','1'); INSERT INTO countries VALUES (237,'Zaire','ZR','ZAR','1'); INSERT INTO countries VALUES (238,'Zambia','ZM','ZMB','1'); INSERT INTO countries VALUES (239,'Zimbabwe','ZW','ZWE','1'); INSERT INTO currencies VALUES (1,'U.S. Dollar','USD','$','','.',',','2','1.0000', now()); INSERT INTO currencies VALUES (2,'Euro','EUR','','€','.',',','2','1.0000', now()); INSERT INTO languages VALUES (1,'English','en','us','english',1); INSERT INTO manufacturers VALUES (2, 'Microsoft', 'manufacturer_microsoft.gif', now(), null); INSERT INTO manufacturers VALUES (8, 'Kuuzu', 'manufacturer-kuuzu.jpg', now(), null); INSERT INTO manufacturers VALUES (9, 'Hewlett Packard', 'manufacturer_hewlett_packard.gif', now(), null); INSERT INTO manufacturers VALUES (10, 'Samsung', 'manufacturer_samsung.png', now(), null); INSERT INTO manufacturers VALUES (11, 'Handground', 'manufacturer_handground.jpg', now(), null); INSERT INTO manufacturers_info VALUES (2, 1, 'http://www.microsoft.com', 0, null, null, null, null, null); INSERT INTO manufacturers_info VALUES (8, 1, 'https://kuuzu.org', 0, null, null, null, null, null); INSERT INTO manufacturers_info VALUES (9, 1, 'http://www.hewlettpackard.com', 0, null, null, null, null, null); INSERT INTO manufacturers_info VALUES (10, 1, 'http://www.samsung.com', 0, null, null, null, null, null); INSERT INTO manufacturers_info VALUES (11, 1, 'https://handground.com', 0, null, null, null, null, null); INSERT INTO orders_status VALUES ( '1', '1', 'Pending', '1', '0'); INSERT INTO orders_status VALUES ( '2', '1', 'Processing', '1', '1'); INSERT INTO orders_status VALUES ( '3', '1', 'Delivered', '1', '1'); INSERT INTO products VALUES (22, 13, 'Q5Y-00007', 'microsoft/Office-365-thumb.jpg', '375.0000', now(),null,null, '0.00', 1, 1, 2, 0, null); INSERT INTO products VALUES (27, 8, 'Z3M41D', 'hewlett_packard/Photo7120-01-thumb.png', '129.0000', now(),null,null, '4.00', 1, 1, 9, 0, '00190781429326'); INSERT INTO products VALUES (28, 100, '1106525181', 'handground/hand-coffee-grinder-thumb.jpg', '69.0000', now(),null,null, '2.00', 1, 1, 11, 0, null); INSERT INTO products VALUES (29, 8, 'S9', 'samsung/Samsung-Galaxy-S9-05-thumb.jpg', '1199.0000', now(),null,null, '1.00', 1, 1, 10, 0, '08018417247606'); INSERT INTO products VALUES (30, 100, 'kuuzu-tshirt', 'kuuzu/front-thumb.jpg', '25.0000', now(),null,null, '0.50', 1, 1, 8, 0, null); INSERT INTO products VALUES (31, 100, 'womens-tee', 'kuuzu/womens-grey-tee-thumb.jpg', '25.0000', now(),null,null, '0.50', 1, 1, 8, 0, null); INSERT INTO products_description VALUES (22, 1, 'Microsoft Office 365 Small Business Premium', '<h3>Office across your devices</h3>\r\n<p>Always have the latest versions of your familiar Office applications, no matter which device you''re using-PC/Mac, tablet, or phone.</p>\r\n\r\n<h3>Simplify how you work together</h3>\r\n<p>Store, sync, and share your files online so they''re always up to date. Plus, you can edit documents with others in real time.</p>\r\n\r\n<h3>Easy setup and management</h3>\r\n<p>With step-by-step guidance, you can set up users easily and start using the services fast. And Office 365 takes care of IT for you.</p>\r\n\r\n<h4>Office 365 Business Premium includes:</h4>\r\n<p>Familiar Office tools</p>\r\n<ul>\r\n <li>Word</li>\r\n <li>Excel</li>\r\n <li>PowerPoint</li>\r\n <li>Outlook</li>\r\n <li>SharePoint</li>\r\n <li>OneDrive</li>\r\n <li>OneNote</li>\r\n <li>Publisher (PC only)</li>\r\n <li>Skype for Business</li>\r\n <li>Access (PC only)</li>\r\n\r\n<p>Enjoy a fully installed Office experience across PCs, Macs, Windows tablets, iPad® and Android™ tablets, and most mobile devices. Each user can install Office on 5 PCs or Macs, 5 tablets (Windows, iPad, and Android), and 5 phones.</p>', 'products.office.com/en-us/business/office-365-business-premium', 3, null, null, null); INSERT INTO products_description VALUES (27, 1, 'HP ENVY Photo 7120 All-in-One Printer', '<dl>\r\n <dd>\r\n <span>Get true-to-life photos and increased versatility. Produce authentic colors, and set up, connect, and print right from your mobile device. Go from memory card to photo printout with ease.</span>\r\n </dd>\r\n</dl>\r\n<dl>\r\n <dd>\r\n <span>Dynamic security enabled printer. Contains technology that may prevent cartridges with non-HP chips or circuitry from working now or in the future.</span>\r\n </dd>\r\n</dl>\r\n <h2 xmlns="http://www.w3.org/1999/xhtml" class="group_head">Features</h2>\r\n <h3 align="left">\r\n <div>\r\n <p>Stunning photos for less than 5 cents</p>\r\n </div>\r\n </h3>\r\n<dl>\r\n <dd><p>With HP Instant Ink, get ink delivered to your door and print photos for less than five cents.</p></dd>\r\n</dl>\r\n<dl>\r\n <dd><p>HP 64 ink cartridges deliver authentic colors so all your prints will shine.</p></dd>\r\n</dl>\r\n<dl>\r\n <dd><p>Create stunning borderless photos and flyers – right in your home.</p></dd>\r\n</dl>\r\n <h3 align="left">\r\n <div>\r\n <p>The power of your printer in the palm of your hand</p>\r\n </div>\r\n </h3>\r\n<dl>\r\n <dd><p>Printing photos just got easier – from social media, the cloud, and your camera-roll gallery.</p></dd>\r\n</dl>\r\n<dl>\r\n <dd><p>Amazing scanning, now on your smartphone. Scan and share to email or the cloud – from virtually anywhere.</p></dd>\r\n</dl>\r\n<dl>\r\n <dd><p>Ordering ink has never been easier – directly through the app.</p></dd>\r\n</dl>\r\n<dl>\r\n <dd><p>Easily print photos and everyday documents directly from your smartphone or tablet.</p></dd>\r\n</dl>\r\n <h3 align="left">\r\n <div>\r\n <p>A new level of wireless connectivity you can count on</p>\r\n </div>\r\n </h3>\r\n<dl>\r\n <dd><p>Get simple Wi-Fi® setup in minutes, and start printing fast.</p></dd>\r\n</dl>\r\n <h3 align="left">\r\n <div>\r\n <p>HP''s most versatile printer for home</p>\r\n </div>\r\n </h3>\r\n<dl>\r\n <dd><p>Simply insert an SD card, then view, edit, and print photos quickly.</p></dd>\r\n</dl>\r\n<dl>\r\n <dd><p>Easily print, copy, and scan, with a seamless, smartphone-style 2.7-inch color touchscreen.</p></dd>\r\n</dl>\r\n<dl>\r\n <dd><p>Dedicated paper trays automatically match print settings to paper type.</p></dd>\r\n</dl>\r\n<dl>\r\n <dd><p>Speed through multipage print jobs with automatic two-sided printing.</p></dd>\r\n</dl>', 'www8.hp.com/au/en/products/printers/product-detail.html?oid=16449794', 4, null, null, null); INSERT INTO products_description VALUES (28, 1, 'Handground Precision Coffee Grinder', '<h4>Get the full taste.</h4>\r\n<p>Every coffee bean has hundreds of flavors and aromatics locked inside. Handground makes it easy to achieve a consistent grind and release the full flavor potential in every cup you brew.</p>\r\n\r\n<h4>Grind For Any Brew</h4>\r\n<p>We drew inspiration from the focus ring on a camera lens so selecting the right grind size is simple. Twist the numbered ring to setting 1 to produce an espresso grind or 8 for French Press. There is a step in between each number for a total of 15 coarseness settings.</p>\r\n\r\n<h4>Lock And Load</h4>\r\n<p>The hopper opens extra wide so loading up to 100 grams of coffee is a breeze. The top locks on with a quarter twist to prevent beans from flying out while grinding. If there isn''t a scale available, each measurement mark on the side of the hopper represents ~10 grams of beans.</p>\r\n\r\n<h4>Manual Made Easy</h4>\r\n<p>Handground is the first portable manual coffee grinder with a side mounted handle. Placing the handle on the side allows for a more natural motion and the ability to place your opposite hand on top of the grinder for stabilization. The handle is made from solid aluminum and complimented by a beautiful pakka wood knob.</p>\r\n\r\n<h4>Balanced Speed & Effort</h4>\r\n<p>At the heart of Handground is a 40mm conical ceramic burr mill that crushes coffee beans into an even particle size. The geometry of the burr is fine tuned to balance the speed which it grinds and the torque required to turn the handle. The result is that grinding takes just the right amount of effort in the right amount of time.</p>\r\n\r\n<h4>Consistent Grind Every Time</h4>\r\n<p>Running down the center of Handground is a stainless steel axle that drives the burr mill. The axle is mounted on metal bushings in three locations to keep it stable while grinding and eliminate burr wobble. Each axle is milled on a 5 axis CNC that maintains tolerances of 0.004 inches. The combination of added stability and razor thin tolerances allows Handground to achieve a consistent grind, every time.</p>\r\n\r\n<h4>Grip While You Grind</h4>\r\n<p>As coffee grounds exit the burr mill they drop into the glass catcher at the base of Handground. An unsung hero of Handground’s ease of use is a grip pad on the bottom that forms a strong connection with smooth countertops. The extra grip tremendously reduces the strength required to hold the grinder steady while grinding.</p>', 'handground.com/handground-precision-coffee-grinder', 2, null, null, null); INSERT INTO products_description VALUES (29, 1, 'Samsung Galaxy S9', '<h3>See more. Hold less.</h3>\r\n<p>Open up your view with this grand edge-to-edge display that fits comfortably in your hand. It curves over the sides for a sight that seems boundless with minimal visual distractions.</p>\r\n\r\n<h3>Embrace the big screen experience.</h3>\r\n<p>The 18.5:9 display ratio gives you a cinematic view. While the stereo speakers tuned by AKG and enhanced with Dolby Atmos offer pure, surround sound.</p>\r\n\r\n<h3>See your photos as they were meant to be seen.</h3>\r\n<p>View your photos and videos vividly on this bright display. It also increases the contrast when you''re outside—so even in broad daylight you and your friends will see stunning detail on-screen.</p>\r\n\r\n<h3>Invisible details make the difference.</h3>\r\n<p>Sleek and stunning. The screen and the bezel blend together to form a seamless design. Meanwhile, the iris scanner is hidden away within the upper bezel to highlight the Infinity Display.</p>\r\n\r\n<h3>Designed to be held.</h3>\r\n<p>Galaxy S9 and S9+ have a beautiful design that''s made to fit comfortably in your hand. The camera sits flush with the back for a smooth surface. While the fingerprint sensor is ergonomically placed to let you unlock with one easy move.</p>', 'http://www.samsung.com/us/smartphones/galaxy-s9/design/', 5, null, null, null); INSERT INTO products_description VALUES (30, 1, 'Kuuzu T-Shirt', 'Proudly show your Kuuzu colours with this 100% cotton t-shirt', 'kuuzu.org', 3, null, null, null); INSERT INTO products_description VALUES (31, 1, 'Women''s Grey Tee', 'Comfort meets style with this 100% cotton tee.', '', 2, null, null, null); INSERT INTO products_attributes VALUES (26, 22, 5, 10, '0.0000', '+'); INSERT INTO products_attributes VALUES (27, 22, 5, 13, '0.0000', '+'); INSERT INTO products_attributes VALUES (28, 29, 1, 14, '0.0000', '+'); INSERT INTO products_attributes VALUES (29, 29, 1, 15, '0.0000', '+'); INSERT INTO products_attributes VALUES (30, 29, 1, 16, '0.0000', '+'); INSERT INTO products_attributes VALUES (31, 29, 6, 17, '0.0000', ''); INSERT INTO products_attributes VALUES (32, 29, 6, 18, '150.0000', '+'); INSERT INTO products_attributes VALUES (33, 30, 2, 19, '0.0000', '+'); INSERT INTO products_attributes VALUES (34, 30, 2, 20, '0.0000', '+'); INSERT INTO products_attributes VALUES (35, 30, 2, 21, '0.0000', '+'); INSERT INTO products_attributes VALUES (36, 31, 2, 19, '0.0000', '+'); INSERT INTO products_attributes VALUES (37, 31, 2, 20, '0.0000', '+'); INSERT INTO products_attributes VALUES (38, 31, 2, 21, '0.0000', '+'); INSERT INTO products_attributes_download VALUES (26, 'test.zip', 7, 3); INSERT INTO products_images VALUES (1, 28, 'handground/hand-coffee-grinder.jpg', '', 1); INSERT INTO products_images VALUES (2, 28, 'handground/hand-coffee-grinder-02.jpg', '', 2); INSERT INTO products_images VALUES (3, 28, 'handground/hand-coffee-grinder-03.jpg', '', 3); INSERT INTO products_images VALUES (13, 27, 'hewlett_packard/Photo7120-01.png', '', 1); INSERT INTO products_images VALUES (14, 27, 'hewlett_packard/Photo7120-02.png', '', 2); INSERT INTO products_images VALUES (15, 27, 'hewlett_packard/Photo7120-03.png', '', 3); INSERT INTO products_images VALUES (16, 27, 'hewlett_packard/Photo7120-04.png', '', 4); INSERT INTO products_images VALUES (17, 27, 'hewlett_packard/Photo7120-05.png', '', 5); INSERT INTO products_images VALUES (18, 27, 'hewlett_packard/Photo7120-06.png', '', 6); INSERT INTO products_images VALUES (19, 29, 'samsung/Samsung-Galaxy-S9-05.jpg', '', 1); INSERT INTO products_images VALUES (20, 29, 'samsung/Samsung-Galaxy-S9-01.jpg', '', 2); INSERT INTO products_images VALUES (21, 29, 'samsung/Samsung-Galaxy-S9-02.jpg', '', 3); INSERT INTO products_images VALUES (22, 29, 'samsung/Samsung-Galaxy-S9-03.jpg', '', 4); INSERT INTO products_images VALUES (23, 29, 'samsung/Samsung-Galaxy-S9-04.jpg', '', 5); INSERT INTO products_images VALUES (25, 22, 'microsoft/Office-365.jpg', '', 1); INSERT INTO products_images VALUES (26, 30, 'kuuzu/front.jpg', '', 1); INSERT INTO products_images VALUES (27, 30, 'kuuzu/back.jpg', '', 2); INSERT INTO products_images VALUES (28, 31, 'kuuzu/womens-grey-tee.jpg', '', 1); INSERT INTO products_options VALUES (1, 1, 'Color'); INSERT INTO products_options VALUES (2, 1, 'Size'); INSERT INTO products_options VALUES (3, 1, 'Model'); INSERT INTO products_options VALUES (4, 1, 'Memory'); INSERT INTO products_options VALUES (5, 1, 'Version'); INSERT INTO products_options VALUES (6, 1, 'Storage'); INSERT INTO products_options_values VALUES (1, 1, '4 mb'); INSERT INTO products_options_values VALUES (2, 1, '8 mb'); INSERT INTO products_options_values VALUES (3, 1, '16 mb'); INSERT INTO products_options_values VALUES (4, 1, '32 mb'); INSERT INTO products_options_values VALUES (5, 1, 'Value'); INSERT INTO products_options_values VALUES (6, 1, 'Premium'); INSERT INTO products_options_values VALUES (7, 1, 'Deluxe'); INSERT INTO products_options_values VALUES (8, 1, 'PS/2'); INSERT INTO products_options_values VALUES (9, 1, 'USB'); INSERT INTO products_options_values VALUES (10, 1, 'Download: Windows - English'); INSERT INTO products_options_values VALUES (13, 1, 'Box: Windows - English'); INSERT INTO products_options_values VALUES (14, 1, 'Midnight Black'); INSERT INTO products_options_values VALUES (15, 1, 'Lilac Purple'); INSERT INTO products_options_values VALUES (16, 1, 'Coral Blue'); INSERT INTO products_options_values VALUES (17, 1, '64GB'); INSERT INTO products_options_values VALUES (18, 1, '256GB'); INSERT INTO products_options_values VALUES (19, 1, 'Small'); INSERT INTO products_options_values VALUES (20, 1, 'Medium'); INSERT INTO products_options_values VALUES (21, 1, 'Large'); INSERT INTO products_options_values_to_products_options VALUES (1, 4, 1); INSERT INTO products_options_values_to_products_options VALUES (2, 4, 2); INSERT INTO products_options_values_to_products_options VALUES (3, 4, 3); INSERT INTO products_options_values_to_products_options VALUES (4, 4, 4); INSERT INTO products_options_values_to_products_options VALUES (5, 3, 5); INSERT INTO products_options_values_to_products_options VALUES (6, 3, 6); INSERT INTO products_options_values_to_products_options VALUES (7, 3, 7); INSERT INTO products_options_values_to_products_options VALUES (8, 3, 8); INSERT INTO products_options_values_to_products_options VALUES (9, 3, 9); INSERT INTO products_options_values_to_products_options VALUES (10, 5, 10); INSERT INTO products_options_values_to_products_options VALUES (13, 5, 13); INSERT INTO products_options_values_to_products_options VALUES (14, 1, 14); INSERT INTO products_options_values_to_products_options VALUES (15, 1, 15); INSERT INTO products_options_values_to_products_options VALUES (16, 1, 16); INSERT INTO products_options_values_to_products_options VALUES (17, 6, 17); INSERT INTO products_options_values_to_products_options VALUES (18, 6, 18); INSERT INTO products_options_values_to_products_options VALUES (19, 2, 19); INSERT INTO products_options_values_to_products_options VALUES (20, 2, 20); INSERT INTO products_options_values_to_products_options VALUES (21, 2, 21); INSERT INTO products_to_categories VALUES (22, 19); INSERT INTO products_to_categories VALUES (27, 5); INSERT INTO products_to_categories VALUES (28, 21); INSERT INTO products_to_categories VALUES (29, 22); INSERT INTO products_to_categories VALUES (30, 24); INSERT INTO products_to_categories VALUES (31, 25); INSERT INTO reviews VALUES (1,30,0,'<NAME>',5,now(),null,1,0); INSERT INTO reviews_description VALUES (1,1, 'This has to be one of the the best t-shirts I\'ve ever owned!'); INSERT INTO sec_directory_whitelist values (null, 'admin/includes/backups'); INSERT INTO sec_directory_whitelist values (null, 'images'); INSERT INTO sec_directory_whitelist values (null, 'images/banners'); INSERT INTO sec_directory_whitelist values (null, 'images/handground'); INSERT INTO sec_directory_whitelist values (null, 'images/kuuzu'); INSERT INTO sec_directory_whitelist values (null, 'images/hewlett_packard'); INSERT INTO sec_directory_whitelist values (null, 'images/microsoft'); INSERT INTO sec_directory_whitelist values (null, 'images/samsung'); INSERT INTO sec_directory_whitelist values (null, 'includes/work'); INSERT INTO sec_directory_whitelist values (null, 'pub'); INSERT INTO specials VALUES (5, 27, '119.0000', now(), null, null, null, 1); INSERT INTO tax_class VALUES (1, 'Taxable Goods', 'The following types of products are included non-food, services, etc', now(), now()); # USA/Florida INSERT INTO tax_rates VALUES (1, 1, 1, 1, 7.0, 'FL TAX 7.0%', now(), now()); INSERT INTO geo_zones (geo_zone_id,geo_zone_name,geo_zone_description,date_added) VALUES (1,"Florida","Florida local sales tax zone",now()); INSERT INTO zones_to_geo_zones (association_id,zone_country_id,zone_id,geo_zone_id,date_added) VALUES (1,223,18,1,now()); # USA INSERT INTO zones VALUES (1,223,'AL','Alabama'); INSERT INTO zones VALUES (2,223,'AK','Alaska'); INSERT INTO zones VALUES (3,223,'AS','American Samoa'); INSERT INTO zones VALUES (4,223,'AZ','Arizona'); INSERT INTO zones VALUES (5,223,'AR','Arkansas'); INSERT INTO zones VALUES (6,223,'AF','Armed Forces Africa'); INSERT INTO zones VALUES (7,223,'AA','Armed Forces Americas'); INSERT INTO zones VALUES (8,223,'AC','Armed Forces Canada'); INSERT INTO zones VALUES (9,223,'AE','Armed Forces Europe'); INSERT INTO zones VALUES (10,223,'AM','Armed Forces Middle East'); INSERT INTO zones VALUES (11,223,'AP','Armed Forces Pacific'); INSERT INTO zones VALUES (12,223,'CA','California'); INSERT INTO zones VALUES (13,223,'CO','Colorado'); INSERT INTO zones VALUES (14,223,'CT','Connecticut'); INSERT INTO zones VALUES (15,223,'DE','Delaware'); INSERT INTO zones VALUES (16,223,'DC','District of Columbia'); INSERT INTO zones VALUES (17,223,'FM','Federated States Of Micronesia'); INSERT INTO zones VALUES (18,223,'FL','Florida'); INSERT INTO zones VALUES (19,223,'GA','Georgia'); INSERT INTO zones VALUES (20,223,'GU','Guam'); INSERT INTO zones VALUES (21,223,'HI','Hawaii'); INSERT INTO zones VALUES (22,223,'ID','Idaho'); INSERT INTO zones VALUES (23,223,'IL','Illinois'); INSERT INTO zones VALUES (24,223,'IN','Indiana'); INSERT INTO zones VALUES (25,223,'IA','Iowa'); INSERT INTO zones VALUES (26,223,'KS','Kansas'); INSERT INTO zones VALUES (27,223,'KY','Kentucky'); INSERT INTO zones VALUES (28,223,'LA','Louisiana'); INSERT INTO zones VALUES (29,223,'ME','Maine'); INSERT INTO zones VALUES (30,223,'MH','Marshall Islands'); INSERT INTO zones VALUES (31,223,'MD','Maryland'); INSERT INTO zones VALUES (32,223,'MA','Massachusetts'); INSERT INTO zones VALUES (33,223,'MI','Michigan'); INSERT INTO zones VALUES (34,223,'MN','Minnesota'); INSERT INTO zones VALUES (35,223,'MS','Mississippi'); INSERT INTO zones VALUES (36,223,'MO','Missouri'); INSERT INTO zones VALUES (37,223,'MT','Montana'); INSERT INTO zones VALUES (38,223,'NE','Nebraska'); INSERT INTO zones VALUES (39,223,'NV','Nevada'); INSERT INTO zones VALUES (40,223,'NH','New Hampshire'); INSERT INTO zones VALUES (41,223,'NJ','New Jersey'); INSERT INTO zones VALUES (42,223,'NM','New Mexico'); INSERT INTO zones VALUES (43,223,'NY','New York'); INSERT INTO zones VALUES (44,223,'NC','North Carolina'); INSERT INTO zones VALUES (45,223,'ND','North Dakota'); INSERT INTO zones VALUES (46,223,'MP','Northern Mariana Islands'); INSERT INTO zones VALUES (47,223,'OH','Ohio'); INSERT INTO zones VALUES (48,223,'OK','Oklahoma'); INSERT INTO zones VALUES (49,223,'OR','Oregon'); INSERT INTO zones VALUES (50,223,'PW','Palau'); INSERT INTO zones VALUES (51,223,'PA','Pennsylvania'); INSERT INTO zones VALUES (52,223,'PR','Puerto Rico'); INSERT INTO zones VALUES (53,223,'RI','Rhode Island'); INSERT INTO zones VALUES (54,223,'SC','South Carolina'); INSERT INTO zones VALUES (55,223,'SD','South Dakota'); INSERT INTO zones VALUES (56,223,'TN','Tennessee'); INSERT INTO zones VALUES (57,223,'TX','Texas'); INSERT INTO zones VALUES (58,223,'UT','Utah'); INSERT INTO zones VALUES (59,223,'VT','Vermont'); INSERT INTO zones VALUES (60,223,'VI','Virgin Islands'); INSERT INTO zones VALUES (61,223,'VA','Virginia'); INSERT INTO zones VALUES (62,223,'WA','Washington'); INSERT INTO zones VALUES (63,223,'WV','West Virginia'); INSERT INTO zones VALUES (64,223,'WI','Wisconsin'); INSERT INTO zones VALUES (65,223,'WY','Wyoming'); # Canada INSERT INTO zones VALUES (66,38,'AB','Alberta'); INSERT INTO zones VALUES (67,38,'BC','British Columbia'); INSERT INTO zones VALUES (68,38,'MB','Manitoba'); INSERT INTO zones VALUES (69,38,'NF','Newfoundland'); INSERT INTO zones VALUES (70,38,'NB','New Brunswick'); INSERT INTO zones VALUES (71,38,'NS','Nova Scotia'); INSERT INTO zones VALUES (72,38,'NT','Northwest Territories'); INSERT INTO zones VALUES (73,38,'NU','Nunavut'); INSERT INTO zones VALUES (74,38,'ON','Ontario'); INSERT INTO zones VALUES (75,38,'PE','Prince Edward Island'); INSERT INTO zones VALUES (76,38,'QC','Quebec'); INSERT INTO zones VALUES (77,38,'SK','Saskatchewan'); INSERT INTO zones VALUES (78,38,'YT','Yukon Territory'); # Germany INSERT INTO zones VALUES (79,81,'NDS','Niedersachsen'); INSERT INTO zones VALUES (80,81,'BAW','Baden-Württemberg'); INSERT INTO zones VALUES (81,81,'BAY','Bayern'); INSERT INTO zones VALUES (82,81,'BER','Berlin'); INSERT INTO zones VALUES (83,81,'BRG','Brandenburg'); INSERT INTO zones VALUES (84,81,'BRE','Bremen'); INSERT INTO zones VALUES (85,81,'HAM','Hamburg'); INSERT INTO zones VALUES (86,81,'HES','Hessen'); INSERT INTO zones VALUES (87,81,'MEC','Mecklenburg-Vorpommern'); INSERT INTO zones VALUES (88,81,'NRW','Nordrhein-Westfalen'); INSERT INTO zones VALUES (89,81,'RHE','Rheinland-Pfalz'); INSERT INTO zones VALUES (90,81,'SAR','Saarland'); INSERT INTO zones VALUES (91,81,'SAS','Sachsen'); INSERT INTO zones VALUES (92,81,'SAC','Sachsen-Anhalt'); INSERT INTO zones VALUES (93,81,'SCN','Schleswig-Holstein'); INSERT INTO zones VALUES (94,81,'THE','Thüringen'); # Austria INSERT INTO zones VALUES (95,14,'WI','Wien'); INSERT INTO zones VALUES (96,14,'NO','Niederösterreich'); INSERT INTO zones VALUES (97,14,'OO','Oberösterreich'); INSERT INTO zones VALUES (98,14,'SB','Salzburg'); INSERT INTO zones VALUES (99,14,'KN','Kärnten'); INSERT INTO zones VALUES (100,14,'ST','Steiermark'); INSERT INTO zones VALUES (101,14,'TI','Tirol'); INSERT INTO zones VALUES (102,14,'BL','Burgenland'); INSERT INTO zones VALUES (103,14,'VB','Voralberg'); # Swizterland INSERT INTO zones VALUES (104,204,'AG','Aargau'); INSERT INTO zones VALUES (105,204,'AI','Appenzell Innerrhoden'); INSERT INTO zones VALUES (106,204,'AR','Appenzell Ausserrhoden'); INSERT INTO zones VALUES (107,204,'BE','Bern'); INSERT INTO zones VALUES (108,204,'BL','Basel-Landschaft'); INSERT INTO zones VALUES (109,204,'BS','Basel-Stadt'); INSERT INTO zones VALUES (110,204,'FR','Freiburg'); INSERT INTO zones VALUES (111,204,'GE','Genf'); INSERT INTO zones VALUES (112,204,'GL','Glarus'); INSERT INTO zones VALUES (113,204,'JU','Graubünden'); INSERT INTO zones VALUES (114,204,'JU','Jura'); INSERT INTO zones VALUES (115,204,'LU','Luzern'); INSERT INTO zones VALUES (116,204,'NE','Neuenburg'); INSERT INTO zones VALUES (117,204,'NW','Nidwalden'); INSERT INTO zones VALUES (118,204,'OW','Obwalden'); INSERT INTO zones VALUES (119,204,'SG','St. Gallen'); INSERT INTO zones VALUES (120,204,'SH','Schaffhausen'); INSERT INTO zones VALUES (121,204,'SO','Solothurn'); INSERT INTO zones VALUES (122,204,'SZ','Schwyz'); INSERT INTO zones VALUES (123,204,'TG','Thurgau'); INSERT INTO zones VALUES (124,204,'TI','Tessin'); INSERT INTO zones VALUES (125,204,'UR','Uri'); INSERT INTO zones VALUES (126,204,'VD','Waadt'); INSERT INTO zones VALUES (127,204,'VS','Wallis'); INSERT INTO zones VALUES (128,204,'ZG','Zug'); INSERT INTO zones VALUES (129,204,'ZH','Zürich'); # Spain INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'A Coruña','A Coruña'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Alava','Alava'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Albacete','Albacete'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Alicante','Alicante'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Almeria','Almeria'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Asturias','Asturias'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Avila','Avila'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Badajoz','Badajoz'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Baleares','Baleares'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Barcelona','Barcelona'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Burgos','Burgos'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Caceres','Caceres'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Cadiz','Cadiz'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Cantabria','Cantabria'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Castellon','Castellon'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Ceuta','Ceuta'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Ciudad Real','Ciudad Real'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Cordoba','Cordoba'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Cuenca','Cuenca'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Girona','Girona'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Granada','Granada'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Guadalajara','Guadalajara'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Guipuzcoa','Guipuzcoa'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Huelva','Huelva'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Huesca','Huesca'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Jaen','Jaen'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'La Rioja','La Rioja'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Las Palmas','Las Palmas'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Leon','Leon'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Lleida','Lleida'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Lugo','Lugo'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Madrid','Madrid'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Malaga','Malaga'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Melilla','Melilla'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Murcia','Murcia'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Navarra','Navarra'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Ourense','Ourense'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Palencia','Palencia'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Pontevedra','Pontevedra'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Salamanca','Salamanca'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Santa Cruz de Tenerife','Santa Cruz de Tenerife'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Segovia','Segovia'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Sevilla','Sevilla'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Soria','Soria'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Tarragona','Tarragona'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Teruel','Teruel'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Toledo','Toledo'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Valencia','Valencia'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Valladolid','Valladolid'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Vizcaya','Vizcaya'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Zamora','Zamora'); INSERT INTO zones (zone_country_id, zone_code, zone_name) VALUES (195,'Zaragoza','Zaragoza');
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE EXTENSION IF NOT EXISTS unaccent; CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE EXTENSION IF NOT EXISTS citext;
update egpgr_receiving_center set orderno =6 where name='Commissioner Office'; update egpgr_receiving_center set orderno =7 where name='Zonal Office'; update egpgr_receiving_center set orderno =8 where name='Complaint Cell'; update egpgr_receiving_center set orderno =9 where name='Field visits'; update egpgr_receiving_center set orderno =10 where name='Adverse Items(Paper/news)'; INSERT INTO egpgr_receiving_center (id, name, iscrnrequired, orderno, version) VALUES (9,'Office of CDMA',true,4,0); INSERT INTO egpgr_receiving_center (id, name, iscrnrequired, orderno, version) VALUES (10,'Office of RDMA',true,5,0);
<gh_stars>1-10 CREATE DATABASE IF NOT EXISTS scot; USE scot; source dump.sql
INSERT INTO "main"."products" ("sku", "name", "subtitle", "description", "imageUrl", "depositSku", "bundledSku", "isDeposit", "weighing", "referenceUnit", "encodingUnit", "boost", "saleRestriction", "scanMessage", "notForSale", "saleStop") VALUES ('34-tt', 'Braeburn rot', 'Apfel', '', '', '', '', '0', '1', 'kg', 'g', '0', '', '', '0', '0'); INSERT INTO "main"."scannableCodes" ("template", "code", "sku", "encodingUnit", "transmissionCode", "isPrimary", "specifiedQuantity", "transmissionTemplate") VALUES ('ean13_instore', '12345', '34-tt', '', '', '', '', 'transmission_template_test');