sql
stringlengths
6
1.05M
function render_qr_item ( p_item in apex_plugin.t_page_item, p_plugin in apex_plugin.t_plugin, p_value in varchar2, p_is_readonly in boolean, p_is_printer_friendly in boolean ) return apex_plugin.t_page_item_render_result is l_size apex_application_page_items.attribute_01%type := p_item.attribute_01; l_color apex_application_page_items.attribute_01%type := p_item.attribute_02; l_background apex_application_page_items.attribute_01%type := p_item.attribute_03; l_err_correction_level apex_application_page_items.attribute_01%type := p_item.attribute_04; begin if apex_application.g_debug then apex_plugin_util.debug_page_item( p_plugin => p_plugin, p_page_item => p_item ); end if; apex_javascript.add_library( p_name => 'qrcode.min', p_directory => p_plugin.file_prefix, p_version => NULL ); sys.htp.p('<div id="QR-'||p_item.id||'" style="width:'||l_size||'px; height:'||l_size||'px;"></div>'); apex_javascript.add_inline_code ( p_code => 'function renderQR_'||p_item.name||'(value) { $("#QR-'||p_item.id||'").html(" "); new QRCode(document.getElementById("QR-'||p_item.id||'"), { text: value, width: "'||l_size||'" , height: "'||l_size||'" , colorDark: "'||l_color||'" , colorLight: "'||l_background||'" , correctLevel : QRCode.CorrectLevel.'||l_err_correction_level||' } ); }', p_key => 'renderQR_'||p_item.name ); apex_javascript.add_onload_code ( p_code => 'renderQR_'||p_item.name||'("'||p_value||'");', p_key => 'renderQR_'||p_item.name ); return null; end;
<reponame>RittmanMead/ChitChat CREATE TABLE "RMREP"."ANNOTATION_SECURITY" ( "ID" NUMBER(19,0), "ANNOTATION_ID" NUMBER(10,0), "ROLE" VARCHAR2(255 CHAR) ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 8388608 NEXT 8388608 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "RMREP_TS"
<gh_stars>1-10 /* Warnings: - Added the required column `title` to the `Todo` table without a default value. This is not possible if the table is not empty. */ -- AlterTable ALTER TABLE `Todo` ADD COLUMN `title` VARCHAR(191) NOT NULL;
-- Buildings ------------------------------ INSERT INTO Buildings (Type, BuildingClass, AllowsRangeStrike, Defense, ExtraCityHitPoints, CityWall, Cost, GoldMaintenance, PrereqTech, ArtDefineTag, XBuiltTriggersIdeologyChoice, SpecialistType, SpecialistCount, MinAreaSize, ConquestProb, HurryCostModifier, Help, Description, Civilopedia, Strategy, IconAtlas, PortraitIndex) SELECT 'BUILDING_3BUFFALOPOUND', BuildingClass, AllowsRangeStrike, Defense, ExtraCityHitPoints,CityWall, Cost, 1, 'TECH_HUNTING', ArtDefineTag, XBuiltTriggersIdeologyChoice, SpecialistType, SpecialistCount, MinAreaSize, ConquestProb, HurryCostModifier, 'TXT_KEY_BUILDING_3BUFFALOPOUND_HELP', 'TXT_KEY_BUILDING_3BUFFALOPOUND', 'TXT_KEY_BUILDING_3BUFFALOPOUND_TEXT', 'TXT_KEY_BUILDING_3BUFFALOPOUND_STRATEGY', '3BUFFALOPOUND_ATLAS', 0 FROM Buildings WHERE Type = 'BUILDING_WATERMILL'; ------------------------------ -- Building_Flavors ------------------------------ INSERT INTO Building_Flavors (BuildingType, FlavorType, Flavor) SELECT 'BUILDING_3BUFFALOPOUND', FlavorType, Flavor FROM Building_Flavors WHERE BuildingType = 'BUILDING_WATERMILL'; ------------------------------ -- Building_ClassesNeededInCity ------------------------------ INSERT INTO Building_ClassesNeededInCity (BuildingType, BuildingClassType) SELECT 'BUILDING_3BUFFALOPOUND', BuildingClassType FROM Building_ClassesNeededInCity WHERE BuildingType = 'BUILDING_WATERMILL'; ------------------------------ -- Building_YieldChanges ------------------------------ INSERT INTO Building_YieldChanges (BuildingType, YieldType, Yield) SELECT 'BUILDING_3BUFFALOPOUND', YieldType, Yield FROM Building_YieldChanges WHERE BuildingType = 'BUILDING_WATERMILL'; ------------------------------ -- Building_DomainProductionModifiers ------------------------------ INSERT INTO Building_DomainProductionModifiers (BuildingType, DomainType, Modifier) SELECT 'BUILDING_3BUFFALOPOUND', DomainType, Modifier FROM Building_DomainProductionModifiers WHERE BuildingType = 'BUILDING_WATERMILL'; ------------------------------ -- Building_UnitCombatProductionModifiers ------------------------------ INSERT INTO Building_UnitCombatProductionModifiers (BuildingType, UnitCombatType, Modifier) SELECT 'BUILDING_3BUFFALOPOUND', UnitCombatType, Modifier FROM Building_UnitCombatProductionModifiers WHERE BuildingType = 'BUILDING_WATERMILL'; ------------------------------ -- Building_ResourceQuantityRequirements ------------------------------ INSERT INTO Building_ResourceQuantityRequirements (BuildingType, ResourceType, Cost) SELECT 'BUILDING_3BUFFALOPOUND', ResourceType, Cost FROM Building_ResourceQuantityRequirements WHERE BuildingType = 'BUILDING_WATERMILL'; ------------------------------ -- Building_YieldModifiers ------------------------------ INSERT INTO Building_YieldModifiers (BuildingType, YieldType, Yield) SELECT 'BUILDING_3BUFFALOPOUND', YieldType, Yield FROM Building_YieldModifiers WHERE BuildingType = 'BUILDING_WATERMILL'; ------------------------------ -- Building_ResourceYieldChanges ------------------------------ INSERT INTO Building_ResourceYieldChanges (BuildingType, ResourceType, YieldType, Yield) SELECT 'BUILDING_3BUFFALOPOUND', ResourceType, YieldType, Yield FROM Building_ResourceYieldChanges WHERE BuildingType = 'BUILDING_WATERMILL'; INSERT INTO Building_ResourceYieldChanges (BuildingType, ResourceType, YieldType, Yield) VALUES ('BUILDING_3BUFFALOPOUND', 'RESOURCE_BISON', 'YIELD_FOOD', 1); -------------------------------- -- Civilization_BuildingClassOverrides -------------------------------- INSERT INTO Civilization_BuildingClassOverrides (CivilizationType, BuildingClassType, BuildingType) VALUES ('CIVILIZATION_SHOSHONE', 'BUILDINGCLASS_WATERMILL', 'BUILDING_3BUFFALOPOUND');
-- ------------------------------------------------------------- -- REPLACE "TESTNET with your BOTNAME" to match USERNAME in the config .ENV -- REPLACE "1h" with your trading timeframe to match TRADING_VIEW_API_TIMEFRAME in the config .ENV -- ------------------------------------------------------------- DROP TABLE IF EXISTS "public"."TESTNET_1h_cashin_positions"; -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup. -- Table Definition CREATE TABLE "public"."TESTNET_1h_cashin_positions" ( "id" int8 NOT NULL, "created_at" timestamptz DEFAULT now(), "pid" text, "side" text, "price" float8, "pl" int8, "win" bool DEFAULT false, "trade_completed" bool DEFAULT false, "type" text, "position_status" text, "exit_price" float8, "stoploss_price" float8, "take_profit" float8, "pid_parent" text, "previous_pl" float8, PRIMARY KEY ("id") ); DROP TABLE IF EXISTS "public"."TESTNET_1h_positions"; -- This script only contains the table creation statements and does not fully represent the table in the database. It's still missing: indices, triggers. Do not use it as a backup. -- Table Definition CREATE TABLE "public"."TESTNET_1h_positions" ( "id" int8 NOT NULL, "created_at" timestamptz DEFAULT now(), "pid" text, "side" text, "price" float8, "pl" int8, "win" bool DEFAULT false, "trade_completed" bool DEFAULT false, "type" text, "position_status" text, "exit_price" float8, "stoploss_price" float8, "take_profit_target_one" float8, "take_profit" float8, "positionLabel" text, "stoploss_target_one" float8, "previous_pl" float8, PRIMARY KEY ("id") );
<reponame>DEFRA/prsd-iws<gh_stars>1-10 GO PRINT N'Creating [Lookup].[LocalArea]...'; GO CREATE TABLE [Lookup].[LocalArea] ( [Id] UNIQUEIDENTIFIER NOT NULL, [Name] NVARCHAR (1024) NOT NULL, CONSTRAINT [PK_LocalArea_Id] PRIMARY KEY CLUSTERED ([Id] ASC) ); GO INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Derbyshire, Nottinghamshire and Leicestershire') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Staffordshire, Warwickshire and West Midlands') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Shropshire, Herefordshire, Worcestershire and Gloucestershire') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Lincolnshire and Northamptonshire') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Essex, Norfolk and Suffolk') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Cambridgeshire and Befordshire') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Northumberland, Durham and Tees') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Yorkshire') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Greater Manchester, Merseyside and Cheshire') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Cumbria and Lancashire') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Devon and Cornwall') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'South West Wessex') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Solent and South Downs') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Kent and South London') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'West Thames') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Hertfordshire and North London') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'International Waste Shipments') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Scottish Environment Protection Agency') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'National Resources Wales') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Northern Ireland Environment Agency') INSERT INTO [Lookup].[LocalArea]([Id],[Name])VALUES(newid(),'Head Office') GO PRINT N'Complete...';
<filename>src/test/scripts/create.sql CREATE SCHEMA IF NOT EXISTS hr; DROP TABLE IF EXISTS hr.emp; CREATE TABLE IF NOT EXISTS hr.emp ( emp_id IDENTITY, emp_name VARCHAR(50), salary DOUBLE );
<reponame>pribtech/nodete<gh_stars>0 %explain "select tx_item, tx_date, tx_sales from Total_Sales where month(tx_date) = 3 and tx_item = 'X22' order by tx_date"
<reponame>SouravSarkar7/YourAppIdea drop table T_TUTORIAL; create table T_TUTORIAL ( _id integer primary key autoincrement, POSTID INTEGER not null, TITLE TEXT not null, DESCRIPTION TEXT not null, THUMBNAIL TEXT not null, URL TEXT not null, CONTENT TEXT not null, AUTHOR TEXT not null, DATECREATION INTEGER not null, DATEMODIFICATION INTEGER not null);
<gh_stars>10-100 DROP DATABASE IF EXISTS test_00508; CREATE DATABASE test_00508; USE test_00508; CREATE TABLE src (x UInt8) ENGINE = Null; CREATE TABLE dst (x UInt8) ENGINE = Memory; CREATE MATERIALIZED VIEW mv_00508 TO dst AS SELECT * FROM src; INSERT INTO src VALUES (1), (2); SELECT * FROM mv_00508 ORDER BY x; -- Detach MV and see if the data is still readable DETACH TABLE mv_00508; SELECT * FROM dst ORDER BY x; USE default; -- Reattach MV (shortcut) ATTACH TABLE test_00508.mv_00508; INSERT INTO test_00508.src VALUES (3); SELECT * FROM test_00508.mv_00508 ORDER BY x; -- Drop the MV and see if the data is still readable DROP TABLE test_00508.mv_00508; SELECT * FROM test_00508.dst ORDER BY x; DROP TABLE test_00508.src; DROP TABLE test_00508.dst; DROP DATABASE test_00508;
<reponame>peahonen/snabb -- MySQL dump 10.13 Distrib 5.5.40, for debian-linux-gnu (x86_64) -- -- Host: nbn-l8-dev2-os-8 Database: neutron_ml2 -- ------------------------------------------------------ -- Server version 5.5.40-0ubuntu0.14.04.1-log /*!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' */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; -- -- Table structure for table `networks` -- DROP TABLE IF EXISTS `networks`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `networks` ( `tenant_id` varchar(255) DEFAULT NULL, `id` varchar(36) NOT NULL, `name` varchar(255) DEFAULT NULL, `status` varchar(16) DEFAULT NULL, `admin_state_up` tinyint(1) DEFAULT NULL, `shared` tinyint(1) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; /*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -- Dump completed
<reponame>zadean/pl-sql-BaseX<gh_stars>1-10 -- hr_example.sql -- grant select on hr.employees to <user>; -- grant select on hr.departments to <user>; -- grant select on hr.jobs to <user>; -- grant select on hr.locations to <user>; -- grant select on hr.countries to <user>; -- grant select on hr.regions to <user>; set serverout on declare v_inpt clob; v_outp clob; v_qyid varchar2(25); begin basex_client.open_session('localhost', 1984, 'admin', 'admin'); -- initialize output clobs dbms_lob.createTemporary(v_outp, true); -- create empty database basex_client.bx_execute('create db HR', v_outp); dbms_output.put_line(basex_client.bx_info); for rec in ( SELECT e.employee_id as emp_id, xmlelement("employee", xmlattributes(e.employee_id AS "id", e.job_id AS "jobId", e.manager_id AS "managerId" ), xmlelement("job", xmlattributes(e.job_id AS "id"), j.job_title ), xmlelement("salary", xmlattributes(e.commission_pct AS "commissionPct"), e.salary ), xmlelement("name", xmlelement("first", e.first_name), xmlelement("last", e.last_name) ), xmlelement("department", xmlattributes(e.department_id AS "id", d.department_name as "name"), xmlelement("location", xmlattributes(d.location_id AS "id"), xmlelement("region", r.region_name), xmlelement("country", xmlattributes(l.country_id as "id"), c.country_name ), xmlelement("stateProvince", l.state_province), xmlelement("city", l.city) ) ) ) AS xout FROM hr.employees e, hr.departments d, hr.jobs j, hr.locations l, hr.countries c, hr.regions r WHERE e.department_id = d.department_id AND d.location_id = l.location_id AND l.country_id = c.country_id AND c.region_id = r.region_id AND j.job_id = e.job_id ) loop -- define input stream v_inpt := rec.xout.getClobVal(); -- add document basex_client.bx_add(rec.emp_id || '.xml', v_inpt); --dbms_output.put_line(basex_client.bx_info); end loop; -- run query on database basex_client.bx_execute('xquery count(collection(''HR''))', v_outp); dbms_output.put_line('Employee count: ' || v_outp); -- run query on database v_qyid := basex_client.bx_query('collection(''HR'')/employee[@managerId = 103]'); basex_client.q_results(v_qyid, v_outp); dbms_output.put_line(v_outp); dbms_output.put_line(basex_client.bx_info); -- close query basex_client.q_close(v_qyid); -- drop database basex_client.bx_execute('drop db HR', v_outp); dbms_output.put_line(basex_client.bx_info); -- close session basex_client.close_session(); end; /
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/KEYWORDS/scroll/Opengauss_Function_Keyword_Scroll_Case0026.sql -- @testpoint:opengauss关键字scroll(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists scroll; create schema scroll; drop schema scroll; --关键字带双引号-成功 drop schema if exists "scroll"; create schema "scroll"; drop schema "scroll"; --关键字带单引号-合理报错 drop schema if exists 'scroll'; create schema 'scroll'; --关键字带反引号-合理报错 drop schema if exists `scroll`; create schema `scroll`;
-- Adminer 4.2.5 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `accounts`; CREATE TABLE `accounts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `fname` varchar(200) NOT NULL, `asset` varchar(200) DEFAULT NULL, `credit` decimal(15,2) DEFAULT NULL, `rate` decimal(15,2) DEFAULT NULL, `credit_out` decimal(15,2) DEFAULT 0.00, `period` int(5) DEFAULT NULL, `start` date NOT NULL, `finish` date NOT NULL, `who` varchar(25) DEFAULT NULL, `status` varchar(20) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `accounts` (`id`, `username`, `fname`, `asset`, `credit`, `rate`, `credit_out`, `period`, `start`, `finish`, `who`, `status`, `created_at`, `updated_at`) VALUES (27, 'terry', '<NAME>.', 'Test Estates', 1000000.00, 25.00, 1250000.00, 12, '2019-10-22', '2020-08-21', 'user', 'Y', '2019-08-22 10:28:52', '2019-08-22 10:28:52'), (28, 'terry', '<NAME>.', 'Test Estates', 500000.00, 20.00, 600000.00, 12, '2019-08-22', '2020-08-21', 'user', 'Y', '2019-08-22 10:30:18', '2019-08-22 10:30:18'), (29, 'terry', '<NAME>.', 'Test Estates', 250000.00, 15.00, 287500.00, 12, '2019-08-22', '2020-08-21', 'user', 'Y', '2019-08-22 10:33:35', '2019-08-22 10:33:35'), (30, 'terry', '<NAME>.', 'Seale Estates', 500000.00, 20.00, 600000.00, 12, '2019-08-23', '2020-08-22', 'user', 'Y', '2019-08-23 10:07:30', '2019-08-23 10:07:30'), (31, 'terry', '<NAME>.', 'De Estates', 250000.00, 15.00, 287500.00, 12, '2019-08-23', '2020-08-22', 'user', 'Y', '2019-08-23 10:34:37', '2019-08-23 10:34:37'), (32, 'terry', '<NAME>.', 'Seale Estates', 250000.00, 15.00, 287500.00, 12, '2019-08-23', '2020-08-22', 'user', 'Y', '2019-08-23 10:51:18', '2019-08-23 10:51:18'), (33, 'terry', '<NAME>.', 'Test Estates', 1000000.00, 25.00, 1250000.00, 12, '2019-08-23', '2020-08-22', 'user', 'Y', '2019-08-23 11:02:53', '2019-08-23 11:02:53'), (34, 'terry', '<NAME>.', 'Test Estates', 1000000.00, 25.00, 1250000.00, 12, '2019-08-23', '2020-08-22', 'user', 'Y', '2019-08-23 11:05:42', '2019-08-23 11:05:42'); DROP TABLE IF EXISTS `assets`; CREATE TABLE `assets` ( `id` int(11) NOT NULL AUTO_INCREMENT, `asset` varchar(255) DEFAULT NULL, `location` varchar(50) DEFAULT NULL, `period` int(5) DEFAULT NULL, `asset_id` varchar(255) DEFAULT NULL, `status` varchar(50) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `amount_1` decimal(15,2) DEFAULT NULL, `rate_1` int(5) DEFAULT NULL, `amount_2` decimal(15,2) DEFAULT NULL, `rate_2` int(5) DEFAULT NULL, `amount_3` decimal(15,2) DEFAULT NULL, `rate_3` int(5) DEFAULT NULL, `amount_4` decimal(15,2) DEFAULT NULL, `rate_4` int(5) DEFAULT NULL, UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `assets` (`id`, `asset`, `location`, `period`, `asset_id`, `status`, `created_at`, `updated_at`, `amount_1`, `rate_1`, `amount_2`, `rate_2`, `amount_3`, `rate_3`, `amount_4`, `rate_4`) VALUES (3, 'Badewa Estates', 'Agbara', 12, '1563912703.jpg', NULL, NULL, '2019-08-21 10:04:57', 250000.00, 15, 500000.00, 20, 1000000.00, 25, 5000000.00, 30), (5, 'Minnenial Blocks', 'Ikeja', 12, '1563912545.jpg', NULL, NULL, '2019-08-15 08:46:30', 550000.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (6, 'Bank House', 'Oregun', 12, '1563912703.jpg', 'featured', NULL, '2019-07-23 19:11:43', 750000.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (7, 'Banana Estates', 'Ikeja', 12, '1563917308.jpg', 'featured', NULL, '2019-07-23 20:28:28', 1000000.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (8, 'Pal<NAME>', '<NAME>', 12, '1563917308.jpg', 'featured', NULL, NULL, 750000.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (17, 'Barack Estates', 'Ikoyi', 12, '1565875193.jpg', NULL, NULL, '2019-08-15 12:32:40', 750000.00, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (19, 'Test Estates', 'Ikeja', 12, '1566381645.jpg', NULL, NULL, '2019-08-21 09:56:35', 250000.00, 15, 500000.00, 20, 1000000.00, 25, NULL, NULL), (20, 'Seale Estates', 'Omole 2', 12, '1566386121.jpg', NULL, NULL, '2019-08-21 10:15:21', 250000.00, 15, 500000.00, 20, NULL, NULL, NULL, NULL), (21, 'De Estates', 'Ikeja', 12, '1566386791.png', NULL, NULL, '2019-08-21 10:26:31', 250000.00, 15, 500000.00, 20, NULL, NULL, NULL, NULL); DROP TABLE IF EXISTS `cates`; CREATE TABLE `cates` ( `id` int(11) NOT NULL AUTO_INCREMENT, `cate` varchar(200) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `cates` (`id`, `cate`, `created_at`, `updated_at`) VALUES (3, 'Health and Living', '2018-10-31 21:09:26', '2018-10-31 20:09:26'), (4, 'Tuts', '2018-10-31 21:09:46', '2018-11-16 13:38:48'), (6, 'Art, Culture and Style', '2018-10-31 21:12:57', '2018-11-16 13:37:47'), (7, 'Startups', '2018-10-31 21:13:53', '2018-11-16 13:36:50'); DROP TABLE IF EXISTS `faqs`; CREATE TABLE `faqs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `story` text 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', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `faqs` (`id`, `story`, `updated_at`, `created_at`) VALUES (1, 'lorem ipsum lorem ipsum lorem', '2019-08-06 08:52:56', '0000-00-00 00:00:00'); DROP TABLE IF EXISTS `joins`; CREATE TABLE `joins` ( `id` int(11) NOT NULL AUTO_INCREMENT, `story` text 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', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `joins` (`id`, `story`, `created_at`, `updated_at`) VALUES (1, 'lorem ipsum lorem ipsum join us edituing ...', '2019-08-14 14:49:26', '2019-08-14 13:49:26'); SET NAMES utf8mb4; DROP TABLE IF EXISTS `migrations`; CREATE TABLE `migrations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; DROP TABLE IF EXISTS `nusers`; CREATE TABLE `nusers` ( `id` int(11) NOT NULL AUTO_INCREMENT, `user` varchar(100) NOT NULL, `email` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; DROP TABLE IF EXISTS `posts`; CREATE TABLE `posts` ( `id` int(11) NOT NULL AUTO_INCREMENT, `post_id` varchar(20) NOT NULL, `title` varchar(200) NOT NULL, `cate` varchar(200) NOT NULL, `post` blob NOT NULL, `auth` varchar(100) NOT NULL, `upped` varchar(5) DEFAULT NULL, `fname` varchar(200) NOT NULL, `start` date NOT NULL, `finish` date NOT NULL, `score` varchar(25) DEFAULT NULL, `timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `accepted` varchar(5) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`title`,`cate`,`auth`,`start`), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `posts` (`id`, `post_id`, `title`, `cate`, `post`, `auth`, `upped`, `fname`, `start`, `finish`, `score`, `timestamp`, `accepted`, `created_at`, `updated_at`) VALUES (70, '12326', '10 Benefis of Black seed oil', 'Health and Living', '<p>The post the post the benefits</p><p>one</p><p>two</p><p>three<br></p>', 'terry', NULL, 'Terry Max.', '2018-11-16', '2018-12-16', NULL, '2019-08-14 10:13:31', 'Y', '2018-11-16 14:27:26', '2019-08-14 09:13:31'), (48, '32420', 'Beautiful', 'Food and Travel', 'Beautiful post', 'terry', NULL, 'Terry Max.', '2018-10-30', '2018-11-29', '1', '2019-08-14 10:13:31', 'Y', '2018-11-04 20:14:44', '2019-08-14 09:13:31'), (44, '21453', 'Build amazing apps with Laravel', 'Tuts', '<div>Laravel affords you the ability to build industry strength applications, riding on a well documented docs site and a non-repentant community of developers.</div><div><span style=\"background-color: rgb(153, 102, 0);\"><br></span></div><div><!--?php<br--></div><div><!--?php<br--><font color=\"#669900\"><span style=\"background-color: rgb(153, 102, 0);\"><br><font color=\"#330033\"><b><span style=\"background-color: rgb(255, 255, 255);\">namespace App\\Http\\Controllers;<br><br>use Illuminate\\Http\\Request;<br><br>//use DB;<br>use App\\Post;<br>use App\\Cate;<br>use App\\User;<br>use App\\Mail\\SignedUp;<br>use App\\Mail\\Recovered;<br><br>class pagesController extends Controller<br>{<br><br>&nbsp;&nbsp;&nbsp; public function __Construct(Post $post, Cate $cate, User $user) {<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;user = $user;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;post = $post;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;cate = $cate;<br><br>&nbsp;&nbsp;&nbsp; }</span></b></font></span></font><br></div><div><br></div><div><br></div><div>Laravel.. the framework for PHP artisans.<br></div>', 'terry', NULL, '<NAME>.', '2018-02-26', '2018-03-28', '40', '2019-08-14 10:13:31', 'Y', '2018-11-04 20:14:44', '2019-08-14 09:13:31'), (41, '19215', 'Creative Copywriter', 'Art, Culture and Style', 'You are an awesome creative writer and love to work in an amazing design lab.<br><br>Our office in Sydney, Australia needs a competent copywriter with an impressive body of writing and story boarding work. <br><br>You\'ll love the sights and the team you\'ll be working with. Come in.', 'terry', NULL, '<NAME>.', '2018-02-10', '2018-03-12', NULL, '2019-08-14 10:13:31', 'Y', '2018-11-04 20:14:44', '2019-08-14 09:13:31'), (71, '31136', 'Eating Avocado', 'Health and Living', 'Eating avocado... <br>', 'terry', NULL, '<NAME>.', '2018-11-16', '2018-12-16', NULL, '2019-08-14 10:13:31', 'Y', '2018-11-16 14:48:35', '2019-08-14 09:13:31'), (49, '33628', 'Eating right', 'Food and Travel', '<div>Some dummy post. <br></div><div><br></div><div>\r\n<font color=\"#660066\">On a test paragraph</font></div><div><br></div><div><span style=\"background-color: rgb(204, 255, 0);\"><font size=\"6\"><b>\"a test quote\"</b></font></span><br></div><br><div><br></div>', 'terry', NULL, '<NAME>.', '2018-10-31', '2018-11-30', '3', '2019-08-14 10:13:31', 'Y', '2018-11-04 20:14:44', '2019-08-14 09:13:31'), (56, '44742', 'Finding magic in selling', 'Food and Travel', '<blockquote> I remember pushing away all the marketing and selling job offers I got after graduation and a lot of folks just zap when they hear it\'s a selling job. So many questions and thoughts probably joggling in the head.. Who do i sell to?, I\'m not born for it, i don\'t have the charm or charisma,<br> What if I don\'t sell?<br><br><strong>The Product</strong><br><br>First off, having a good product and believing in the product is a very important ingredient in the larger process of selling. Believing in the product you\'re selling puts you 80 percent up since you\'re confident it\'s a product you\'d buy yourself.<br><br>If there\'s a totally new idea around the product, it still needs to be what people will want and be willing to pay for.<br><br><strong>The Pricing</strong><br><br>Your product has to be priced right. A general rule of thumb is that it has to be very affordable or fairly affordable, except your product is set out at the beginning to sell to high networth individuals or entities.<br><br>If your price point in some demographics is not right or doesn\'t work because the sales are coming in as expected, then it\'s time to pivot up or down on the pricing. You might find out you don\'t dictate the price.<br><br>In selling it\'s also important to know who you\'re selling to and where.<br><br><p data-height=\"265\" data-theme-id=\"0\" data-slug-hash=\"QJNvMa\" data-default-tab=\"css,result\" data-user=\"marcusconnor\" data-pen-title=\"Checkbox Rocker Toggle Switch\" class=\"codepen\">See the Pen <a href=\"https://codepen.io/marcusconnor/pen/QJNvMa/\">Checkbox Rocker Toggle Switch</a> by <NAME> (<a href=\"https://codepen.io/marcusconnor\">@marcusconnor</a>) on <a href=\"https://codepen.io\">CodePen</a>.</p>\r\n<script async=\"\" src=\"https://static.codepen.io/assets/embed/ei.js\"></script><br><br><strong>Go Digital</strong><br><br>Promoting your product or service is another huge part of the equation. Going on TV, on air and the print media is just one part of that equation. In this digital age, you will need to go digital in your marketing and selling efforts. <br><br>Get a website and optimize it for keywords people will be typing into search engines. Research on Search Engine Optimization or just let the pros handle your website for you.<br><br>Social media marketing is another angle. Your social accounts need to be revved up for business. Facebook helps you with business pages, with Instagram you can set up a business account and run ads from there. You can do same with your Facebook pages and on Twitter you can run a sponsored post as well. <br><br><br><br></blockquote>', 'terry', NULL, 'Terry Max.', '2018-11-10', '2018-12-10', NULL, '2019-08-14 10:13:31', 'Y', '2018-11-10 11:10:25', '2019-08-14 09:13:31'), (8, '17426', 'Finding magic in your career', 'Food and Travel', '<font size=\"4\">Loving to go to work, bonding with work mates, sinking into the work culture and ultimately getting the job done and keeping your sanity is the balance we all must find in our work and work places..</font><br>', 'terry', NULL, '<NAME>.', '2018-02-06', '2018-03-08', NULL, '2019-08-14 10:13:31', 'Y', '2018-11-04 20:14:44', '2019-08-14 09:13:31'), (69, '21138', 'Group of teens power their local community', 'Startups', 'post', 'terry', 'Y', '<NAME>.', '2018-11-15', '2018-12-15', NULL, '2019-08-14 10:13:31', 'Y', '2018-11-15 07:24:36', '2019-08-14 09:13:31'), (67, '10504', 'Integrating the Paystack Webpay', 'Tuts', '<p><span style=\"font-size: 18px;\">Paystack is a secure payment gateway that helps you collect payments directly into your bank account from your website. It is also pretty easy to integrate. Let’s jump right in..<br>I’ll demonstrate a sample implementation in PHP.<br>Create a project folder in your favorite text editor and name it payfees (You can give it any name you want).<br>Within your payfees folder, create index.php, pay.php and callback.php<br>Open index.php and dump in the code below;</span></p>\r\n<p></p>\r\n<p data-height=\"265\" data-theme-id=\"0\" data-slug-hash=\"oQZQmR\" data-default-tab=\"html\" data-user=\"bamidelesi\" data-pen-title=\"Paystack Integration\" class=\"codepen\">See the Pen <a href=\"https://codepen.io/bamidelesi/pen/oQZQmR/\">Paystack Integration</a> by Silas (<a href=\"https://codepen.io/bamidelesi\">@bamidelesi</a>) on <a href=\"https://codepen.io\">CodePen</a>.</p>\r\n<p><span style=\"font-size: 18px;\">Next, open pay.php and dump in the code below;</span></p>\r\n<p></p>\r\n<p data-height=\"265\" data-theme-id=\"0\" data-slug-hash=\"gQmZOM\" data-default-tab=\"html\" data-user=\"bamidelesi\" data-pen-title=\"gQmZOM\" class=\"codepen\">See the Pen <a href=\"https://codepen.io/bamidelesi/pen/gQmZOM/\">gQmZOM</a> by Silas (<a href=\"https://codepen.io/bamidelesi\">@bamidelesi</a>) on <a href=\"https://codepen.io\">CodePen</a>.</p><p><span style=\"font-size: 18px;\">Note* that the post variables are collected in the index.php script and sent to the pay.php script where the actual web pay is done.<br><br>Still within yor pay.php file, make sure the body tag has an onload attribute like so;<br>Also just before the end body tag, dump the following code snippets</span></p><p><span style=\"font-size: 18px;\"></span></p><p data-height=\"265\" data-theme-id=\"0\" data-slug-hash=\"MzpZMM\" data-default-tab=\"html\" data-user=\"bamidelesi\" data-pen-title=\"MzpZMM\" class=\"codepen\">See the Pen <a href=\"https://codepen.io/bamidelesi/pen/MzpZMM/\">MzpZMM</a> by Silas (<a href=\"https://codepen.io/bamidelesi\">@bamidelesi</a>) on <a href=\"https://codepen.io\">CodePen</a>.</p><p><span style=\"font-size: 18px;\">Now head up to your paystack.com project account and replace the var public_key to the one in your project dashboard.<br>Make sure to use the public key here.<br><br>var public_key = ‘<KEY>’;<br><br>From your project dashboard, look under the API Keys and Webhooks tab and copy the public key from there.<br>Finally, in your callback.php file, dump the following;</span></p><p></p><p data-height=\"265\" data-theme-id=\"0\" data-slug-hash=\"yQMZLW\" data-default-tab=\"html\" data-user=\"bamidelesi\" data-pen-title=\"yQMZLW\" class=\"codepen\">See the Pen <a href=\"https://codepen.io/bamidelesi/pen/yQMZLW/\">yQMZLW</a> by Silas (<a href=\"https://codepen.io/bamidelesi\">@bamidelesi</a>) on <a href=\"https://codepen.io\">CodePen</a>.</p>\r\n<script async=\"\" src=\"https://static.codepen.io/assets/embed/ei.js\"></script><span style=\"font-size: 18px;\">Also, make sure you replace the Bearer key with your secret key from your dashboard on the line<br>‘Authorization: Bearer sk_test_xxxx’<br><br>You should now be the new sparky in town!</span><p></p>\r\n<script async=\"\" src=\"https://static.codepen.io/assets/embed/ei.js\"></script><br><p></p>\r\n<script async=\"\" src=\"https://static.codepen.io/assets/embed/ei.js\"></script>\r\n<p></p>\r\n<script async=\"\" src=\"https://static.codepen.io/assets/embed/ei.js\"></script>\r\n<p></p><br>\r\n<p></p>\r\n<p></p>\r\n<p></p>\r\n<p></p>', 'terry', NULL, 'Terry Max.', '2018-11-14', '2018-12-14', '1', '2019-08-14 10:13:31', 'Y', '2018-11-14 16:15:25', '2019-08-14 09:13:31'), (72, '30540', 'Kegel Exercises', 'Health and Living', 'The post the post the post', 'terry', NULL, 'Terry Max.', '2018-11-16', '2018-12-16', NULL, '2019-08-14 10:13:31', 'Y', '2018-11-16 14:49:21', '2019-08-14 09:13:31'), (64, '24658', 'testy', 'Food and Travel', '<h1>new post</h1>\r\n\r\nlist<p></p><ol><li>\r\n\r\n1. one </li><li><br></li><li>\r\n2. two</li></ol><p></p>\r\n\r\nA bold one', 'terry', NULL, 'Terry Max.', '2018-11-12', '2018-12-12', NULL, '2019-08-14 10:13:31', 'Y', '2018-11-12 06:08:23', '2019-08-14 09:13:31'), (62, '31344', 'Traveling and Eating Ghana', 'Food and Travel', '<h1><strong>Traveling to Ghana</strong></h1>\r\n<p>It was a totally awesome experience seeing Ghana this last holiday</p>\r\n<blockquote>\r\n<p>Hashtag holiday!</p>\r\n</blockquote>\r\n<p>Visiting a Ghana Prince</p>\r\n<p>Remembering our roots</p>\r\n<p>Finding food</p>', 'terry', 'Y', '<NAME>.', '2018-11-12', '2018-12-12', NULL, '2019-08-14 10:13:31', 'Y', '2018-11-12 03:19:50', '2019-08-14 09:13:31'), (65, '20003', 'Yes Thank you', 'Startups', '<p>ghhhhhh</p><p><br></p><p>mjkk</p><p><br></p><p><br></p><p>jjkkk</p><p><br></p><p>jkkkk</p><p><br></p><p>jjkk</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p>jjjjnmm</p><p><br></p><p><br></p><p><br></p><p><br></p><p>hjjjj</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p>hhjkk</p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p><br></p><p>hjjjj</p><p><br></p><p>jjjkk\\\\mjkk</p><p><br></p><p><br></p><p>kk<br></p>', 'terry', NULL, '<NAME>.', '2018-11-12', '2018-12-12', NULL, '2019-08-14 10:13:31', 'Y', '2018-11-12 18:57:36', '2019-08-14 09:13:31'); DROP TABLE IF EXISTS `pros`; CREATE TABLE `pros` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) DEFAULT NULL, `author` text DEFAULT NULL, `reader` text DEFAULT NULL, `who` varchar(25) NOT NULL, `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `pros` (`id`, `title`, `author`, `reader`, `who`, `updated_at`) VALUES (1, 'Become a Pro Author', 'Becoming a Pro Author means signing up for the Premium Scribble Author account.<br>', NULL, 'author', '2018-11-02 12:22:54'), (2, 'Become a Pro Reader', NULL, '<p align=\"left\"><font size=\"4\"><strong>Becoming a</strong> Pro Reader means signing up for the monthly Premium Reader Subscription.</font></p>\r\n<p align=\"left\">\r\n<font size=\"4\" style=\"background-color: rgb(255, 255, 255);\" color=\"#330000\">Your Scribble Reader Subscription signs you up automatically on our affiliate program where you sign up another paying member and you earn when your friend signs up as a Pro member.</font></p><p align=\"left\"><br></p><p align=\"left\"><font color=\"#FFFFCC\"><span style=\"background-color: rgb(153, 0, 51);\"><font size=\"4\"><span style=\"background-color: rgb(0, 255, 153);\"></span><br></font></span></font></p>', 'reader', '2018-11-02 12:02:25'); DROP TABLE IF EXISTS `txn`; CREATE TABLE `txn` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(200) NOT NULL, `wallet_id` varchar(25) NOT NULL, `item` varchar(255) NOT NULL, `cost` decimal(15,2) NOT NULL, `qty` varchar(25) NOT NULL, `cafe` varchar(255) NOT NULL, `txn_id` varchar(25) NOT NULL, `debit` decimal(15,2) NOT NULL, `credit` decimal(15,2) NOT NULL, `total` decimal(15,2) NOT NULL, `timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `status` varchar(25) NOT NULL, `paidstamp` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `paid_day` date NOT NULL, `auth` varchar(50) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `txn` (`id`, `username`, `wallet_id`, `item`, `cost`, `qty`, `cafe`, `txn_id`, `debit`, `credit`, `total`, `timestamp`, `status`, `paidstamp`, `paid_day`, `auth`) VALUES (50, 'eatio', '41922', 'Dodo - One portion', 80.00, '2', 'Mixed Grills Tanke', '1151', 0.00, 0.00, 0.00, '2017-12-31 07:12:52', 'Pending', '0000-00-00 00:00:00', '0000-00-00', ''), (54, 'eatio', '41922', 'Goat meat', 200.00, '4', 'Mixed Grills Tanke', '2651', -800.00, 0.00, -800.00, '2017-12-31 07:12:55', 'Paid', '2018-01-02 01:01:18', '2018-01-02', 'zteller'), (56, 'eatio', '41922', 'Bottled Water', 100.00, '2', 'Mixed Grills Tanke', '2651', -200.00, 0.00, -200.00, '2017-12-31 07:12:03', 'Paid', '2018-01-02 01:01:18', '2018-01-02', 'zteller'), (59, 'eatio', '41922', 'Jolof Rice - One portion', 100.00, '1', 'Mixed Grills Tanke', '4535', -100.00, 0.00, -100.00, '2017-12-31 08:12:35', 'Pending', '0000-00-00 00:00:00', '0000-00-00', ''), (61, 'eatio', '41922', 'Goat meat', 200.00, '1', 'Mixed Grills Tanke', '4535', -200.00, 0.00, -200.00, '2017-12-31 08:12:46', 'Pending', '0000-00-00 00:00:00', '0000-00-00', ''), (63, 'eatio', '41922', 'Bottled Water', 100.00, '1', 'Mixed Grills Tanke', '4<PASSWORD>', -100.00, 0.00, -100.00, '2017-12-31 08:12:58', 'Pending', '0000-00-00 00:00:00', '0000-00-00', ''), (64, 'eatio', '41922', 'Wallet Credit', 0.00, '', '', '1318', 0.00, 5000.00, 5000.00, '2018-01-02 02:01:13', 'Paid', '0000-00-00 00:00:00', '0000-00-00', ''); DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(255) NOT NULL, `upline` varchar(255) DEFAULT NULL, `who` char(25) NOT NULL, `password` varchar(255) NOT NULL, `passcode` varchar(10) DEFAULT NULL, `user_id` varchar(50) NOT NULL, `secret` varchar(25) NOT NULL, `hash_secret` varchar(255) NOT NULL, `first` varchar(255) DEFAULT NULL, `last` varchar(255) DEFAULT NULL, `sex` char(2) DEFAULT NULL, `email` varchar(255) DEFAULT NULL, `phone` char(100) DEFAULT NULL, `kin` varchar(255) DEFAULT NULL, `kin_address` text DEFAULT NULL, `kin_phone` varchar(100) DEFAULT NULL, `bank` varchar(255) DEFAULT NULL, `account_name` varchar(255) DEFAULT NULL, `account_no` varchar(255) DEFAULT NULL, `photo_id` varchar(255) DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`username`,`user_id`), UNIQUE KEY `id` (`id`), UNIQUE KEY `username` (`username`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `users` (`id`, `username`, `upline`, `who`, `password`, `<PASSWORD>code`, `user_id`, `secret`, `hash_secret`, `first`, `last`, `sex`, `email`, `phone`, `kin`, `kin_address`, `kin_phone`, `bank`, `account_name`, `account_no`, `photo_id`, `updated_at`) VALUES (2, 'admin1', '', 'admin', '<PASSWORD>', '', '', '', '', 'IT', NULL, 'M', '<EMAIL>', '7068895548', '', '', '', NULL, NULL, NULL, '', '2019-08-14 08:04:34'), (4624, 'coco', NULL, 'user', 'e29af43754ebb2caecd0154f7768cc68', NULL, '99490', '186599', '61d15cb8ae765ca80ee529777e853b49', NULL, NULL, NULL, '<EMAIL>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (4621, 'mooyiwa', 'karry', 'user', '<KEY>', NULL, '41165', '309221', '9e98d0facb88e022a2602290c47393f4', 'Silas', 'Bamidele', NULL, '<EMAIL>', '09990', NULL, NULL, NULL, 'GTBank', '<NAME>', '01556657', NULL, '2018-11-09 11:45:15'), (4623, 'silasb', NULL, 'user', '<KEY>', NULL, '25335', '137487', '416510d2bd6fcd19b4e328d62b6b10db', NULL, NULL, NULL, '<EMAIL>', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL), (4568, 'terry', '', 'user', '5f4dcc3b5aa765d61d8327deb882cf99', '88125', '25560', '406827', '3b13c858da155ca191aff01aec5ef5a7', 'Terry', 'Max.', NULL, '<EMAIL>', '0800', 'Mr Femi Black', '66, Yaba ave', '0909900990', 'GTBank', '<NAME>', '0123456789', '1565774109.jpg', '2019-08-14 09:13:31'); DROP TABLE IF EXISTS `works`; CREATE TABLE `works` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(100) NOT NULL, `how` text NOT NULL, `updated_at` timestamp NOT NULL DEFAULT current_timestamp(), UNIQUE KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; INSERT INTO `works` (`id`, `title`, `how`, `updated_at`) VALUES (1, 'How It Works', '<p>RessBank has your investments in real estate covered.</p><p>Your account is secure, easy to operate and will see high returns on your lending.</p><p>What more? It\'s a breeze getting started.<br></p>', '2019-08-14 13:49:17'); -- 2019-08-23 16:01:02
CREATE TABLE user_dados( id INTEGER PRIMARY KEY AUTO_INCREMENT, user_nome VARCHAR(255) NOT NULL UNIQUE, email VARCHAR(255) NOT NULL UNIQUE, nome VARCHAR(255) NOT NULL, senha VARCHAR(255) NOT NULL )
BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS `Pessoa_Interpreta_Musica` ( `codigo_pessoa` INTEGER NOT NULL, `codigo_musica` INTEGER NOT NULL, FOREIGN KEY(`codigo_musica`) REFERENCES `Musica`(`codigo_musica`), PRIMARY KEY(`codigo_pessoa`,`codigo_musica`), FOREIGN KEY(`codigo_pessoa`) REFERENCES `Pessoa`(`codigo_pessoa`) ); CREATE TABLE IF NOT EXISTS `Pessoa_Compoe_Musica` ( `codigo_pessoa` INTEGER NOT NULL, `codigo_musica` INTEGER NOT NULL, FOREIGN KEY(`codigo_pessoa`) REFERENCES `Pessoa`(`codigo_pessoa`), FOREIGN KEY(`codigo_musica`) REFERENCES `Musica`(`codigo_musica`), PRIMARY KEY(`codigo_pessoa`,`codigo_musica`) ); CREATE TABLE IF NOT EXISTS `Pessoa` ( `codigo_pessoa` INTEGER PRIMARY KEY AUTOINCREMENT, `nome_pessoa` TEXT NOT NULL ); CREATE TABLE IF NOT EXISTS `Musicas_CD` ( `codigo_cd` INTEGER NOT NULL, `codigo_musica` INTEGER NOT NULL, FOREIGN KEY(`codigo_musica`) REFERENCES `Musica`(`codigo_musica`), PRIMARY KEY(`codigo_cd`,`codigo_musica`), FOREIGN KEY(`codigo_cd`) REFERENCES `CD`(`codigo_cd`) ); CREATE TABLE IF NOT EXISTS `Musica` ( `codigo_musica` INTEGER PRIMARY KEY AUTOINCREMENT, `titulo_musica` TEXT NOT NULL, `duracao` INTEGER NOT NULL ); CREATE TABLE IF NOT EXISTS `CD_internacional` ( `codigo_cd` INTEGER NOT NULL UNIQUE, `titulo_original_cd` TEXT NOT NULL, `regiao` INTEGER NOT NULL, PRIMARY KEY(`codigo_cd`) ); CREATE TABLE IF NOT EXISTS `CD` ( `codigo_cd` INTEGER PRIMARY KEY AUTOINCREMENT, `titulo_cd` TEXT NOT NULL ); COMMIT;
<filename>test/test-db/recreate_schema_mysql.sql DROP TABLE IF EXISTS order_products CASCADE; DROP TABLE IF EXISTS products CASCADE; DROP TABLE IF EXISTS orders CASCADE; DROP TABLE IF EXISTS categories CASCADE; DROP TABLE IF EXISTS manufacturers CASCADE; CREATE TABLE categories ( id INTEGER AUTO_INCREMENT PRIMARY KEY, id_parent INTEGER REFERENCES categories (id), name TEXT ); CREATE TABLE manufacturers ( id INTEGER AUTO_INCREMENT PRIMARY KEY, name TEXT ); CREATE TABLE products ( id INTEGER AUTO_INCREMENT PRIMARY KEY, id_category INTEGER REFERENCES categories (id), id_manufacturer INTEGER REFERENCES manufacturers(id), name TEXT, description TEXT, sale BOOLEAN ); CREATE TABLE orders ( id_order INTEGER AUTO_INCREMENT PRIMARY KEY, name TEXT ); CREATE TABLE order_products ( id_order INTEGER REFERENCES orders (id_order), id_product INTEGER REFERENCES products (id) ); DROP FUNCTION IF EXISTS get_name; DELIMITER $$ CREATE FUNCTION get_name(p_name TEXT) RETURNS TEXT LANGUAGE SQL BEGIN RETURN (SELECT name FROM categories WHERE name = p_name); END; $$ DELIMITER ;
ALTER DATABASE [$(DatabaseName)] ADD LOG FILE (NAME = [TemplateWebsite_log], FILENAME = 'F:\Databases\TemplateWebsite_log.ldf', SIZE = 1024 KB, MAXSIZE = 2097152 MB, FILEGROWTH = 10 %);
CREATE TABLE table_name ( NO INTEGER PRIMARY KEY AUTO_INCREMENT, CONTENTS VARCHAR(140) NOT NULL ) ENGINE = InnoDB
INSERT INTO `database`.`table` (`identifier`, `language`, `content`) VALUES ("LOREM_IPSUM","pt-PT","Lorem ipsum dolor sit amet .."), ("LOREM_IPSUM","zh-CN","Lorem ipsum dolor sit amet .."), ("LOREM_IPSUM","nl-NL","Lorem ipsum dolor sit amet .."), ("LOREM_IPSUM","pt-BR","Lorem ipsum dolor sit amet .."), ("LOREM_IPSUM","en-EN","Lorem ipsum dolor sit amet .."), ("LOREM_IPSUM","en-US","Lorem ipsum dolor sit amet .."), ("LOREM_IPSUM","li-LI","Lorem ipsum dolor sit amet ..") ON DUPLICATE KEY UPDATE `content`="Lorem ipsum dolor sit amet ..";
INSERT INTO usuarios(nome, email, idade) VALUES ( "<NAME>", "<EMAIL>", 29 ); INSERT INTO usuarios(nome, email, idade) VALUES ( "<NAME>", "<EMAIL>", 24 ); INSERT INTO usuarios(nome, email, idade) VALUES ( "<NAME>", "<EMAIL>", 20 ); INSERT INTO usuarios(nome, email, idade) VALUES ( "<NAME>", "<EMAIL>", 34 ); INSERT INTO usuarios(nome, email, idade) VALUES ( "<NAME>", "<EMAIL>", 52 );
CREATE TABLE IF NOT EXISTS USE ( id_airline INTEGER, id_airway INTEGER, PRIMARY KEY (id_airline, id_airway), FOREIGN KEY (id_airline) REFERENCES AIRLINE (id), FOREIGN KEY (id_airway) REFERENCES AIRWAY (id) );
<filename>test-laravel (2).sql -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 13, 2020 at 06:25 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `test-laravel` -- -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2020_02_12_141108_create_roles_table', 1), (5, '2020_02_12_141234_create_role_user_table', 1), (6, '2020_02_29_163015_create_ratings_table', 2), (7, '2020_02_29_163037_create_posts_table', 2); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `roles` -- CREATE TABLE `roles` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `roles` -- INSERT INTO `roles` (`id`, `name`, `created_at`, `updated_at`) VALUES (1, 'user', '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (2, 'admin', '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `role_user` -- CREATE TABLE `role_user` ( `role_id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `role_user` -- INSERT INTO `role_user` (`role_id`, `user_id`) VALUES (2, 2); -- -------------------------------------------------------- -- -- Table structure for table `tbl_booking_status` -- CREATE TABLE `tbl_booking_status` ( `id` tinyint(2) NOT NULL, `meaning` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_booking_status` -- INSERT INTO `tbl_booking_status` (`id`, `meaning`) VALUES (1, 'Chưa trả tiền'), (2, 'Đã trả tiền'), (3, 'Trả góp'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_detail_booking` -- CREATE TABLE `tbl_detail_booking` ( `id` int(11) NOT NULL, `id_tour` int(11) NOT NULL, `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `phone` varchar(15) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `email` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `pay` tinyint(2) NOT NULL, `adult_number` tinyint(3) NOT NULL, `child_number` tinyint(3) NOT NULL, `total_price` varchar(50) NOT NULL, `id_user` bigint(11) UNSIGNED NOT NULL, `time` datetime NOT NULL, `note` text DEFAULT NULL, `id_status` tinyint(2) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_detail_booking` -- INSERT INTO `tbl_detail_booking` (`id`, `id_tour`, `name`, `phone`, `email`, `pay`, `adult_number`, `child_number`, `total_price`, `id_user`, `time`, `note`, `id_status`) VALUES (1, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 0, 0, '', 1, '2020-02-04 00:00:00', '1', 1), (8, 3, 'Lê Tuấn', '123123123123', '<EMAIL>', 2, 0, 0, '', 1, '2020-03-11 00:00:00', NULL, 1), (9, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-11 00:00:00', '1', 1), (10, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 2, 0, 0, '', 1, '2020-03-11 00:00:00', NULL, 1), (11, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 2, 0, 0, '', 1, '2020-03-11 00:00:00', NULL, 1), (12, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 2, 0, 0, '', 1, '2020-03-11 00:00:00', NULL, 1), (13, 3, 'dzprovip', '0912399899', 'datpth0410<EMAIL>', 1, 0, 0, '', 1, '2020-03-11 00:00:00', NULL, 1), (14, 3, 'dzprovip', '0912399899', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-11 00:00:00', NULL, 1), (15, 24, 'dzprovip', '0912399899', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-27 00:00:00', NULL, 1), (16, 12, '<NAME>', '0912399899', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-23 00:00:00', NULL, 1), (17, 24, '<NAME>', '0912399899', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-27 00:00:00', NULL, 1), (18, 24, '<NAME>', '0912399899', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-27 00:00:00', NULL, 1), (19, 24, '<NAME>', '0912399899', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-27 00:00:00', NULL, 1), (20, 24, '<NAME>', '0912399899', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-27 00:00:00', NULL, 1), (21, 7, '<NAME>', '0969550120', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-31 00:00:00', NULL, 1), (22, 24, '<NAME>', '0969550120', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-27 00:00:00', NULL, 1), (23, 15, '<NAME>', '0969550120', '<EMAIL>', 1, 0, 0, '', 1, '2020-02-29 00:00:00', NULL, 1), (24, 13, '<NAME>', '0969550120', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-22 00:00:00', NULL, 1), (25, 22, '<NAME>', '0969550120', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-05 00:00:00', NULL, 1), (28, 19, '<NAME>', '0969550120', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-18 00:00:00', NULL, 1), (29, 3, 'dzprovip', '0912399899', '<EMAIL>', 1, 0, 0, '', 1, '2020-03-11 00:00:00', NULL, 1), (30, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 5, 4, '136111104', 3, '2020-03-11 00:00:00', 'test', 1), (31, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 3, 5, '120987648', 3, '2020-03-11 00:00:00', 'test', 1), (32, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 5, 3, '120987648', 3, '2020-03-11 00:00:00', 'test', 1), (33, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 3, 4, '105864192', 3, '2020-03-11 00:00:00', 'test', 1), (34, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 3, 4, '105864192', 3, '2020-03-11 00:00:00', 'test', 1), (35, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 5, 3, '120987648', 3, '2020-03-11 00:00:00', 'test', 1), (36, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 4, 3, '105864192', 3, '2020-03-11 00:00:00', 'test', 1), (37, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 5, 1, '90740736', 3, '2020-03-11 00:00:00', '1', 1), (38, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 5, 1, '90740736', 3, '2020-03-11 00:00:00', '1', 1), (39, 3, 'Tr<NAME>', '123123123123', '<EMAIL>', 1, 3, 3, '90740736', 3, '2020-03-11 00:00:00', NULL, 1), (42, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 5, 3, '120987648', 3, '2020-02-29 09:18:59', 'test', 1), (43, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 5, 3, '120987648', 3, '2020-02-29 09:19:43', 'test', 1), (44, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 3, 2, '75617280', 3, '2020-02-29 09:24:19', '2', 1), (45, 3, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 4, 3, '105864192', 3, '2020-02-29 09:27:12', '3', 1), (53, 7, '<NAME>', '123123123123', '<EMAIL>', 1, 3, 1, '177822220', 3, '2020-03-05 02:27:28', 'test', 1), (57, 7, 'test', '123123123123', '<EMAIL>', 1, 3, 5, '355644440', 11, '2020-03-10 04:13:16', 'test', 1), (58, 10, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 2, 5, '82962210.24', 12, '2020-03-10 04:15:16', 'test', 1), (59, 18, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 2, 2, '23241200', 13, '2020-03-10 04:37:56', 'test', 1), (60, 7, 'Lê Tuấn', '0375910493', '<EMAIL>', 1, 3, 1, '177822220', 13, '2020-03-10 04:39:20', 'test1', 1), (61, 5, 'dzprovip', '0123456789', '<EMAIL>', 1, 2, 2, '48000444', 1, '2020-06-12 14:56:45', 'test', 1), (62, 12, '<NAME>', '0969550120', '<EMAIL>', 1, 2, 2, '52244265.92', 14, '2020-06-13 03:36:45', NULL, 2), (63, 21, '<NAME>', '0969550120', '<EMAIL>', 1, 2, 2, '19160000', 14, '2020-06-13 03:52:22', NULL, 2); -- -------------------------------------------------------- -- -- Table structure for table `tbl_diemden` -- CREATE TABLE `tbl_diemden` ( `id` int(3) NOT NULL, `code` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `ten` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `gioi_thieu` text NOT NULL, `img` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `rating` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_diemden` -- INSERT INTO `tbl_diemden` (`id`, `code`, `ten`, `gioi_thieu`, `img`, `rating`) VALUES (1, 'ha_noi', 'Hà Nội', 'Thủ đô nghìn năm Văn hiến', '3.jpg', 5), (2, 'ho_chi_minh', 'Hồ Chí Minh', 'Thủ phủ của sự ăn chơi ở Việt Nam', '4.jpg', 5), (3, 'da_nang', 'Đà Nẵng', 'Cơm gà bà Buồi ở phố Hội An ngon vl', '21.jpg', 5), (4, 'da_lat', 'Đà Lạt', 'Vùng đất của sự lãng mạn', '5.jpg', 5), (5, 'thanh_hoa', 'Thanh Hóa', 'Nước láng giềng', '3.jpg', 0), (6, 'vinh_phuc', 'Vĩnh Phúc', 'Vũ Hán 2', '4.jpg', 2), (7, 'nha_trang', 'Nha Trang', 'Ching chong nhiều vcl', '21.jpg', 5), (8, 'ninh_binh', 'Ninh Bình', 'Đặc sản cơm cháy', '5.jpg', 5), (9, 'phu_quoc', 'Phú Quốc', 'Vinpearl nhiều rắn vl', '3.jpg\r\n', 5); -- -------------------------------------------------------- -- -- Table structure for table `tbl_lienhe` -- CREATE TABLE `tbl_lienhe` ( `id` int(11) NOT NULL, `name` varchar(30) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `phone` int(15) NOT NULL, `question` varchar(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_lienhe` -- INSERT INTO `tbl_lienhe` (`id`, `name`, `phone`, `question`) VALUES (1, 'admin', 9280416, 'hay'), (2, 'dzprovip', 969550120, 'Không có câu hỏi'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_news` -- CREATE TABLE `tbl_news` ( `id` int(11) NOT NULL, `title` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `tom_tat` varchar(250) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `noi_dung` text CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `ngay_dang` datetime NOT NULL, `avatar` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_news` -- INSERT INTO `tbl_news` (`id`, `title`, `tom_tat`, `noi_dung`, `ngay_dang`, `avatar`) VALUES (2, 'Quán \'Ký sinh trùng\'', 'HÀN QUỐCTừ ngày \"Ký sinh trùng\" khởi chiếu, cửa hàng tiện lợi của ông <NAME> đón rất nhiều khách nước ngoài từ Nhật, Anh, Tây Ban Nha...', '<p>&nbsp; &nbsp; &nbsp;&nbsp;</p>\r\n\r\n<p>Một ng&agrave;y sau khi bom tấn &quot;K&yacute; sinh tr&ugrave;ng&quot; thắng giải Phim hay nhất tại Oscar 2020, tiệm tạp ho&aacute; Pig Supermaket tại Ahyeon-dong (Mapo-gu, Seoul) vẫn kh&ocirc;ng ngớt tiếng cười. Chủ cửa h&agrave;ng n&agrave;y l&agrave; &ocirc;ng&nbsp;<NAME> (77 tuổi) v&agrave; b&agrave; <NAME> (73 tuổi). Vợ chồng họ c&ugrave;ng b&aacute;n h&agrave;ng suốt 45 năm qua.</p>\r\n\r\n<p>Từ ng&agrave;y cưới, &ocirc;ng Lee v&agrave; b&agrave; Kim chưa từng xem một bộ phim n&agrave;o v&igrave; bận bịu với cửa h&agrave;ng. &quot;Phim đầu ti&ecirc;n t&ocirc;i xem l&agrave; &quot;Giai điệu hạnh ph&uacute;c&quot; (Sound of Music) tr&ecirc;n phố Chungmuro, Seoul khi c&ograve;n l&agrave; một thiếu nữ&quot;, b&agrave; nhớ lại.&nbsp;</p>\r\n\r\n<p>Nhưng khi &quot;K&yacute; sinh tr&ugrave;ng&quot; khởi chiếu, b&agrave; Kim đ&atilde; thuyết phục chồng đ&oacute;ng cửa h&agrave;ng để tới rạp. Với &ocirc;ng b&agrave;, bộ phim như thể hiện cuộc sống của ch&iacute;nh m&igrave;nh. &quot;T&ocirc;i n&oacute;i với &ocirc;ng x&atilde;, &#39;nh&igrave;n k&igrave;a, cửa h&agrave;ng của ch&uacute;ng ta đấy&#39;. Khi mới gặp chồng, ch&uacute;ng t&ocirc;i cũng sống trong cảnh khốn kh&oacute;, v&agrave; phim như tua lại những kỷ niệm một thời&quot;, b&agrave; chủ Pig Supermaket b&agrave;y tỏ. C&ograve;n &ocirc;ng Lee cho rằng ho&agrave;n cảnh của người cha&nbsp;Kim Ki-taek (do Song Kang-ho đ&oacute;ng) thật giống m&igrave;nh ng&agrave;y n&agrave;o.</p>\r\n\r\n<p><img alt=\"\" src=\"/ckfinder/userfiles/images/Sky-Pizza-Noryangjin-dong-Seou-9459-6089-1581500431.jpg\" style=\"height:300px; margin-left:9px; margin-right:9px; width:500px\" /></p>\r\n\r\n<p>B&agrave; Um đang dần cảm nhận được hiệu ứng &quot;K&yacute; sinh tr&ugrave;ng&quot; từng ch&uacute;t một. B&agrave; Um kh&ocirc;ng thể tr&ograve; chuyện nhiều với kh&aacute;ch du lịch, nhưng họ vẫn đến v&agrave; ăn pizza ngay tại đ&acirc;y. Những thực kh&aacute;ch nước ngo&agrave;i n&oacute;i họ t&igrave;m tới đ&acirc;y v&igrave; đ&atilde; thấy tr&ecirc;n phim, v&agrave; muốn chụp ảnh, c&ograve;n để lại lời nhắn tr&ecirc;n tường của nh&agrave; h&agrave;ng.</p>\r\n\r\n<p>&quot;H&ocirc;m qua, một ch&agrave;ng trai trẻ t&ecirc;n Yeouido đến đ&acirc;y v&agrave;o khoảng 6h tối v&agrave; n&oacute;i: &#39;T&ocirc;i th&iacute;ch đạo diễn Bong Joon-ho v&agrave; muốn mua pizza&quot;&#39;, b&agrave; chủ n&oacute;i v&agrave;o 11/2.&nbsp;</p>\r\n\r\n<p><img alt=\"\" src=\"/ckfinder/userfiles/images/Sky-Pizza-Noryangjin-dong-Seou-2170-4744-1581500431%20(1).jpg\" style=\"height:300px; width:550px\" /></p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>\r\n\r\n<p>&nbsp;</p>', '2020-02-13 08:48:34', '2119863438.jpg'), (3, 'Quán cà phê lênh đênh', 'TP HCM Chiếc thuyền dập dìu theo sóng nước ở quận 7 là quán cà phê cho khách yêu thích sự khác lạ.', '<p><img alt=\"\" src=\"/ckfinder/userfiles/images/VnExpress-cafethuyen1-1581223269_r_680x0.jpg\" style=\"height:350px; width:800px\" />&nbsp;&nbsp;</p>\r\n\r\n<p>Nằm tr&ecirc;n K&ecirc;nh Tẻ dọc đường Trần Xu&acirc;n Soạn, chiếc thuyền gỗ neo s&aacute;t bờ được tận dụng l&agrave;m qu&aacute;n c&agrave; ph&ecirc;. Cửa thuyền nhỏ hẹp l&agrave; lối dẫn v&agrave;o khu vực ngồi uống nước chứa khoảng 100 kh&aacute;ch.</p>\r\n\r\n<p>Thuyền gồm hai tầng, với kh&ocirc;ng gian ngo&agrave;i trời ở giữa v&agrave; cuối thuyền tr&ecirc;n tầng 2. Để l&ecirc;n thuyền, kh&aacute;ch phải đi qua một đoạn cầu ch&ocirc;ng ch&ecirc;nh bắc từ đường v&agrave;o.</p>\r\n\r\n<p><img alt=\"\" src=\"/ckfinder/userfiles/images/%E1%BA%A3nh%20tin%20t%E1%BB%A9c/VnExpress-cafethuyen2-1581223270_r_680x0.jpg\" style=\"height:534px; width:800px\" /></p>\r\n\r\n<p>B&ecirc;n trong qu&aacute;n sử dụng nội thất gỗ. Kh&aacute;ch đến gọi nước tại quầy v&agrave; sẽ được phục vụ tận chỗ ngồi. Nh&acirc;n vi&ecirc;n qu&aacute;n cho biết m&ocirc; h&igrave;nh c&agrave; ph&ecirc; n&agrave;y mở gần 10 năm.&nbsp;</p>\r\n\r\n<p><img alt=\"\" src=\"/ckfinder/userfiles/images/%E1%BA%A3nh%20tin%20t%E1%BB%A9c/VnExpress-cafethuyen3-1581223271_r_680x0.jpg\" style=\"height:350px; width:800px\" /></p>', '2020-02-13 09:01:58', '579414132.jpg'), (4, 'High Tea-Trải nghiệm trà chiều siêu \'sang chảnh\' của nước Anh', 'Nhắc đến nước Anh, chúng ta không thể không nhắc đến trà chiều – một bữa tiệc nho nhỏ dành cho những quý bà, quý ông yêu sự thư thái trong những buổi chiều muộn.', '<p>Văn h&oacute;a tr&agrave; chiều ra đời v&agrave;o thế kỷ 19 v&agrave; hầu như chỉ lan rộng trong giới thượng lưu tại Anh quốc. Được xem như bữa ăn nhẹ v&agrave; th&uacute; vui thư gi&atilde;n của giai cấp qu&yacute; tộc, tiệc tr&agrave; chiều đ&ograve;i hỏi sự cầu kỳ về h&igrave;nh thức v&agrave; c&aacute;ch thưởng tr&agrave;. (Ảnh:&nbsp;standard.co.uk)<br />\r\n<br />\r\nTr&agrave; chiều kiểu Anh chia l&agrave;m hai loại: Afternoon tea v&agrave; High tea. Nhiều người kh&ocirc;ng quen thuộc với văn ho&aacute; tr&agrave; Anh cho rằng, hai loại n&agrave;y l&agrave; một, một số lại cho rằng Afternoon tea b&igrave;nh d&acirc;n hơn so với High tea. Tuy nhi&ecirc;n điều n&agrave;y kh&ocirc;ng ch&iacute;nh x&aacute;c.<br />\r\n<strong>LOW TEA HAY AFTERNOON TEA</strong><br />\r\n<img alt=\"\" src=\"/ckfinder/userfiles/images/%E1%BA%A3nh%20tin%20t%E1%BB%A9c/afternoon-tea.jpg\" style=\"height:420px; width:700px\" /><br />\r\nAfternoon tea c&oacute; nghĩa l&agrave; tr&agrave; chiều như ch&iacute;nh c&aacute;i t&ecirc;n của n&oacute;. Tr&agrave; chiều thường được uống v&agrave;o tầm từ 2 giờ tới 4 giờ chiều v&agrave; ăn k&egrave;m những m&oacute;n b&aacute;nh ăn nhẹ. Tiệc tr&agrave; chiều được phục vụ trong ph&ograve;ng, trong vườn với những chiếc b&agrave;n thấp &ndash; đ&acirc;y cũng l&agrave; nguồn gốc của c&aacute;ch gọi Low tea, tr&aacute;i ngược với High tea thường được phục vụ tr&ecirc;n những chiếc b&agrave;n cao. (Ảnh:&nbsp;prideofbritainhotels)<br />\r\n<br />\r\n<strong>HIGH TEA</strong><br />\r\n<img alt=\"\" src=\"/ckfinder/userfiles/images/%E1%BA%A3nh%20tin%20t%E1%BB%A9c/high-tea_3.jpg\" style=\"height:465px; width:700px\" /></p>\r\n\r\n<p>High tea thường chỉ những bữa tiệc tr&agrave; sau giờ đi l&agrave;m, nghĩa l&agrave; tầm từ khoảng 5 giờ đến 7 giờ tối. Về bản chất, đ&acirc;y được xem như bữa ăn phục vụ cho tầng lớp lao động, chứ kh&ocirc;ng phải l&agrave; một cuộc tụ họp vui chơi thưởng tr&agrave; b&aacute;nh của tầng lớp thượng lưu. Thế n&ecirc;n, thực đơn của High tea cũng phong ph&uacute; v&agrave; &ldquo;chắc bụng&rdquo; hơn với c&aacute;c m&oacute;n như b&iacute;t-tết, thịt hầm ph&ocirc;-mai, b&aacute;nh nh&acirc;n đậu, c&aacute; hồi x&ocirc;ng kh&oacute;i, khoai t&acirc;y, b&aacute;nh crumpets hoặc b&aacute;nh barm brack&hellip; đi k&egrave;m l&agrave; một ấm tr&agrave; n&oacute;ng đặc, gi&uacute;p kh&aacute;ch dự tiệc nhanh ch&oacute;ng phục hồi năng lượng sau một ng&agrave;y l&agrave;m việc vất vả. Bữa tiệc tr&agrave; n&agrave;y thường được phục vụ tr&ecirc;n b&agrave;n cao, với những chiếc ghế c&oacute; chỗ dựa, từ đ&oacute; h&igrave;nh th&agrave;nh c&aacute;ch gọi High tea để ph&acirc;n biệt với Low tea. (Ảnh: <NAME> Photography)<br />\r\n<br />\r\n<br />\r\n&nbsp;</p>', '2020-02-13 09:12:47', '1591602892.jpg'), (5, 'Một vòng ở xứ sở tuyết và hoa anh đào tại Tohoku', 'Tohoku thuộc khu vực phía bắc đảo Honshu, nơi đây có sông, núi, hồ và biển nên thiên nhiên vô cùng đa dạng và phong phú. Vào thời điểm giao mùa giữa mùa đông và mùa xuân, du khách sẽ bắt gặp những địa điểm có tuyết, có hoa anh đào và ngay…', '<p><strong>1. H&agrave;nh lang tuyết Hakkoda (Tỉnh Aomori)</strong><br />\r\n<img alt=\"\" src=\"/ckfinder/userfiles/images/%E1%BA%A3nh%20tin%20t%E1%BB%A9c/1-Hakkoda_1.jpg\" style=\"height:467px; width:700px\" /></p>\r\n\r\n<p>H&agrave;nh lang tuyết nằm gần giữa kh&aacute;ch sạn Hakkoda v&agrave; suối nước n&oacute;ng Yachi trong m&ugrave;a đ&ocirc;ng. N&oacute; d&agrave;i khoảng 8km, được mở v&agrave;o ng&agrave;y 1 th&aacute;ng 4. H&agrave;nh lang tuyết cao tới 10m v&agrave; k&eacute;o d&agrave;i đến sau Tuần lễ v&agrave;ng.<br />\r\nDi chuyển: 1 giờ đi xe bu&yacute;t từ ga t&agrave;u Aomori, xuống tại bến Hakkoda Ropeway.<br />\r\n&nbsp;</p>\r\n\r\n<p><strong>2. Đường Hachimantai Aspite (Tỉnh Iwate v&agrave; Akita)</strong><br />\r\n<img alt=\"\" src=\"/ckfinder/userfiles/images/%E1%BA%A3nh%20tin%20t%E1%BB%A9c/%E1%BA%A3nh%20tin%20t%E1%BB%A9c%202/2-Aspite.jpg\" style=\"height:466px; width:700px\" /></p>\r\n\r\n<p>Aspite gợi nhớ đến t&ecirc;n h&igrave;nh d&aacute;ng của n&uacute;i lửa. Con đường n&agrave;y d&agrave;i 26.7km từ Hachimantai Gozaisho thuộc tỉnh Iwate cho tới suối nước n&oacute;ng Toroko của tỉnh Akita.<br />\r\nDi chuyển: 34 ph&uacute;t từ ga Morioka bằng t&agrave;u. L&ecirc;n xe bu&yacute;t tại ga Obuke, đi 70 ph&uacute;t sau đ&oacute; xuống tại Hachimantai Summit kh&aacute;ch sạn Hachimantai Kanko. Đi bộ tiếp 1 ph&uacute;t.<br />\r\n&nbsp;</p>\r\n\r\n<p><strong>3. Hoa anh đ&agrave;o ở l&acirc;u đ&agrave;i Hirosaki (Tỉnh Aomori)</strong><br />\r\n<img alt=\"\" src=\"/ckfinder/userfiles/images/%E1%BA%A3nh%20tin%20t%E1%BB%A9c/%E1%BA%A3nh%20tin%20t%E1%BB%A9c%202/3-Hirosaki.jpg\" style=\"height:467px; width:700px\" /><br />\r\nĐ&acirc;y l&agrave; một trong ba địa điểm ngắm hoa anh đ&agrave;o Michinoku v&ocirc; c&ugrave;ng đẹp tại đất nước mặt trời mọc. Nơi đ&acirc;y được cho l&agrave; nơi c&oacute; hoa anh đ&agrave;o đẹp nhất Nhật Bản. Anh đ&agrave;o ở đ&acirc;y được biết đến l&agrave; loại b&ocirc;ng nở to, c&aacute;nh hoa đầy đặn. C&oacute; khoảng 2,600 c&acirc;y anh đ&agrave;o Yoshino xung quanh L&acirc;u đ&agrave;i Hirosaki.<br />\r\nDi chuyển: 10 ph&uacute;t bằng &ocirc; t&ocirc; từ ga Hirosaki hoặc 30 ph&uacute;t đi bộ. Hoặc 15 ph&uacute;t đi xe bu&yacute;t từ ga Hirosaki, xuống tại ga Shiyakusho-mae, sau đ&oacute; đi bộ 4 ph&uacute;t.<br />\r\n<br />\r\n&nbsp;</p>', '2020-02-13 09:18:00', '1133446867.jpg'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_pay_status` -- CREATE TABLE `tbl_pay_status` ( `id` tinyint(2) NOT NULL, `meaning` varchar(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_pay_status` -- INSERT INTO `tbl_pay_status` (`id`, `meaning`) VALUES (1, 'Thanh toán trực tuyế'), (2, 'Thanh toán tại chi n'); -- -------------------------------------------------------- -- -- Table structure for table `tbl_rating` -- CREATE TABLE `tbl_rating` ( `id` bigint(20) UNSIGNED NOT NULL, `id_user` bigint(20) UNSIGNED NOT NULL, `id_tour` int(100) NOT NULL, `rating` tinyint(4) NOT NULL, `time` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tbl_rating` -- INSERT INTO `tbl_rating` (`id`, `id_user`, `id_tour`, `rating`, `time`) VALUES (1, 1, 3, 2, '2020-03-01 12:50:45'), (2, 1, 3, 3, '2020-03-01 13:04:27'), (3, 1, 3, 5, '2020-03-27 03:04:17'), (4, 1, 3, 5, '2020-03-27 03:04:18'), (5, 1, 3, 5, '2020-03-27 03:04:24'), (6, 1, 12, 3, '2020-06-12 14:55:37'), (7, 1, 24, 3, '2020-06-12 14:55:42'); -- -------------------------------------------------------- -- -- Table structure for table `tour_trong_nuoc` -- CREATE TABLE `tour_trong_nuoc` ( `id` int(11) NOT NULL, `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `code` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `length` int(3) NOT NULL, `vehicle` varchar(15) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `departure` date NOT NULL, `price` int(15) NOT NULL, `lich_trinh` varchar(200) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `so_cho` int(5) NOT NULL, `luu_y` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `noi_khoi_hanh` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `diem_den` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `avatar` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL, `sochodadat` int(5) NOT NULL, `khuyen_mai` int(3) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `tour_trong_nuoc` -- INSERT INTO `tour_trong_nuoc` (`id`, `name`, `code`, `length`, `vehicle`, `departure`, `price`, `lich_trinh`, `so_cho`, `luu_y`, `noi_khoi_hanh`, `diem_den`, `avatar`, `sochodadat`, `khuyen_mai`) VALUES (3, 'Hà Nội Đ<NAME>ng', 'HN1001', 7, 'Tàu hỏa', '2030-02-03', 15123456, 'Hà Nội Đà Nẵng', 20, 'Tặng 1 cặp bánh giò trên tàu hỏa', 'Hà Nội', '3', '2111844366.jpg', 0, 0), (5, 'Hà Nội Đà Nẵng Hồ Chí Minh', 'HN1002', 12, 'Tàu hỏa', '2030-02-12', 12000111, 'Hà Nội Đà Nẵng Hồ Chí Minh', 20, 'Khuyến mãi 1 gói khăn giấy trên máy bay', 'Hà Nội', '2 3', '1587798724.jpg', 4, 0), (7, '<NAME>', '1221', 4, 'Ô tô', '2020-07-08', 44455555, 'Tràng An-Bái Đính-Tam Cốc-Bích Động', 15, 'đi nhé', 'Hà Nội', '8', '646036246.jpg', 16, 0), (9, '<NAME>', '1122', 4, 'Ô tô', '2020-07-12', 11122222, 'Hà Nội-Hà Giang-Lũng Cú-Đồng Văn', 15, 'Đi vui lắm à nghen', 'Hà Nội', '8', '323945086.jpg', 0, 2), (10, 'Huế', '1199', 4, 'Ô tô', '2020-07-12', 12345567, 'Huế-Cố đô Huế', 20, 'Đi an toàn nha', '<NAME>', '3', '293211367.jpg', 7, 4), (12, '<NAME>', '3444', 5, 'Máy bay', '2020-06-23', 23323333, 'Phong Nha – Kẻ Bàng', 20, 'Phong Nha – Kẻ Bàng ở Quảng Bình là kiệt tác của tạo hoá', 'H<NAME>', '3', '796822299.jpg', 4, 44), (13, 'C<NAME>', '9911', 6, 'Máy bay', '2020-06-22', 4444444, 'ĐBSCL-Cần Thơ', 25, 'Cần Thơ là thành phố đẹp nhất vùng đồng bằng sông Cửu Long', 'Đ<NAME>', '2', '773038955.jpg', 0, 41), (14, '<NAME> – Ph<NAME>ết', '22244', 4, 'M<NAME>', '2020-08-13', 33333333, 'M<NAME> – Phan Thiết', 28, 'Cuộc sống nhộn nhịp của người dân làng chài ở Mũi Né – Phan Thiết', '<NAME>', '3', '438436746.jpg', 0, 12), (15, '<NAME>', '290220', 3, 'Máy bay', '2020-07-29', 5590000, 'Đà Nẵng - Bà Nà - Cầu Vàng - Sơn Trà - KDL Thần Tài - Hội An - Đà Nẵng', 20, 'Khách sạn 4*. Bay Vietnam Air. Tặng Show Ký Ức Hội An. Tour Tiêu Chuẩn', 'Hồ Chí Minh', '3', '193302034.jpg', 0, 20), (16, 'Huế-<NAME>', '381052', 5, 'Máy bay', '2020-06-30', 8590000, 'Huế - La Vang - Động Phong Nha & Thiên Đường - Bà Nà - Cầu Vàng - Hội An - Đà Nẵng', 25, 'Khách sạn 4* trọn tour. Bay Vietnam Air. Tặng Show Charming. Tour Tiêu Chuẩn', 'Hồ Chí Minh', '3', '1879288778.jpg', 0, 4), (17, '<NAME> - Quảng Bình', '336016', 4, 'Máy bay', '2020-09-08', 6790000, '<NAME> - Bà Nà - Cầu Vàng - Sơn Trà - Hội An - Huế - La Vang - Động Thiên Đường - Ozo Treetop Park - Quảng Bình', 20, 'Bay về thẳng. Khách sạn 4* 2 đêm. Tour Tiêu Chuẩn', 'Hồ Chí MInh', '3', '771072283.jpg', 0, 0), (18, '<NAME> -Huế', '358025', 4, 'Máy bay', '2020-07-12', 5990000, 'Đà Nẵng - Bà Nà - Cầu Vàng - Sơn Trà - Hội An - KDL Thần Tài - Đầm Lập An - Huế', 20, 'Tặng Show Ký ức Hội An. Bay Vietnam Air. Tour Tiêu Chuẩn', 'Hồ Chí Minh', '3', '1062408550.jpg', 4, 3), (19, 'Liên Tuyến Trung Bắc', '165007', 14, 'Máy bay', '2020-11-18', 23990000, 'Nha Trang -Đà Nẵng - Huế - Động Thiên Đường & Phong Nha - Bà Nà - Hội An - Hà Nội - Sapa - Hạ Long - Ninh Bình', 20, 'Tour Tiết Kiệm', 'Hồ Chí Minh', '1', '3948505.jpg', 0, 0), (20, 'Phú Quốc', '802012', 3, 'Máy bay', '2020-08-12', 4790000, 'Phú Quốc - Thiên Đường Giải Trí Vinpearl Land', 20, 'Đã bao gồm vé Khu Vui Chơi Vinpearl Land Khách sạn 3*. Tour Tiết Kiệm', 'Hồ Chí Minh', '9', '1612860033.jpg', 0, 0), (21, 'Phú Quốc', '858023', 3, 'Máy bay', '2020-09-13', 4790000, 'Phú Quốc - Hòn Thơm Nature Park', 20, 'Tặng Vé Cáp Treo 3 Dây Vượt Biển Dài Nhất Thế Giới .Khách sạn 3*. Bay Vietnam Airlines.', 'Hồ Chí Minh', '9', '1072706986.jpg', 4, 0), (22, 'Phú Quốc', '879023', 4, 'Máy bay', '2020-07-05', 5090000, 'Phú Quốc - Du Ngoạn Tứ Đảo - Ngắm Hoàng Hôn Sunset Sanato - Lặn Ngắm San Hô', 20, 'Tặng Vé Đi Bộ Dưới Biển Khách Sạn 4*.', 'Hồ Chí Minh', '9', '335469761.jpg', 0, 3), (23, '<NAME>', '505007', 4, 'Máy bay', '2020-07-26', 4590000, 'Nha Trang - Hòn Lao - Vinpearl Land', 20, 'Máy Bay. Khách Sạn 4*. Tour Tiêu Chuẩn', 'Hồ Chí Minh', '7', '350812244.jpg', 0, 0), (24, '<NAME>', '125001', 4, 'Máy bay', '2020-06-27', 2990000, 'Nha Trang Máy Bay - Nhũ Tiên - SkyLight - Vinpearl Land', 20, 'Combo Vé Máy Bay + Phòng Vinpearl Resort & Spa - Tặng vé Vui chơi Vinpearl Land', '<NAME>', '7', '553570482.jpg', 0, 0); -- -------------------------------------------------------- -- -- 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 ) 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`) VALUES (1, 'dzprovip', '<EMAIL>', NULL, '$2y$10$1HEN5uhv5hYwTmMDpr43..Ewad3aFUL719zoxJEQyri255mnbVzrG', 'LytRQKwmHvkS6tQvDFALu7E4LlPFibPrUZUqFR9yxBg0Wmk2gA1CITrSC7fE', '2020-02-13 01:24:51', '2020-02-13 01:24:51'), (2, 'admin', '<EMAIL>', NULL, '$2y$10$Oc0oU/VxyRWtmEIqHX535..hCS5YL33p.9FsTxW/HkcqR61p7PNd2', 'Tf7vRqd8DdMVFQYhlVTkwJYxhRfMJFsLYdQQmgolWdhkXnDPdwfj9STD4sKV', '2020-02-13 02:30:57', '2020-02-13 02:30:57'), (3, 'Guest', '<EMAIL>', NULL, '1', NULL, NULL, NULL), (5, '<NAME>', '<EMAIL>', NULL, '-NMPEdoFJr', NULL, NULL, NULL), (6, 't', '<EMAIL>', NULL, 'EwAoLebc#R', NULL, '2020-03-09 20:33:27', '2020-03-09 20:33:27'), (10, 'test', '<EMAIL>', NULL, '$2y$10$UWLg/7JSwgF39v93969a1u.VCqbscwsBqTRL/qbLa/xNCNo8AQFf.', NULL, '2020-03-09 21:11:33', '2020-03-09 21:11:33'), (11, 'test', '<EMAIL>', NULL, '$2y$10$VznL0AXdST6ITl.QWHLAQOj2xNZ3GZGdhEsNEwS6QG1usLf4Nvb3K', NULL, '2020-03-09 21:13:16', '2020-03-09 21:13:16'), (12, '<NAME>', '<EMAIL>', NULL, '$2y$10$kEei/wyzvwICPrdDUG3Kyeg7YV4JGgIQxVz5yVsDTGIqIZHgkzrFO', NULL, '2020-03-09 21:15:16', '2020-03-09 21:15:16'), (13, '<NAME>', '<EMAIL>', NULL, '$2y$10$JPelXmsMbtcMEZA5XkZ79ugmc6WpJKpqRLyOcrUoxbuyW85jFeVi2', NULL, '2020-03-09 21:37:56', '2020-03-09 21:37:56'), (14, '<NAME>', '<EMAIL>', NULL, '$2y$10$p8aQicwrHEp9dPpLeH5UGeXoCYbL8ueH0nKKLjvw9.weY7pqq8eV.', NULL, '2020-06-12 20:36:15', '2020-06-12 20:36:15'); -- -- Indexes for dumped tables -- -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`); -- -- Indexes for table `role_user` -- ALTER TABLE `role_user` ADD KEY `role_user_role_id_foreign` (`role_id`), ADD KEY `role_user_user_id_foreign` (`user_id`); -- -- Indexes for table `tbl_booking_status` -- ALTER TABLE `tbl_booking_status` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_detail_booking` -- ALTER TABLE `tbl_detail_booking` ADD PRIMARY KEY (`id`), ADD KEY `fk_id_user_detail_booking` (`id_user`), ADD KEY `fk_id_tour_detail_booking` (`id_tour`), ADD KEY `fk_id_status_detail_booking` (`id_status`), ADD KEY `fk_pay_detail_booking` (`pay`); -- -- Indexes for table `tbl_diemden` -- ALTER TABLE `tbl_diemden` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_lienhe` -- ALTER TABLE `tbl_lienhe` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_news` -- ALTER TABLE `tbl_news` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_pay_status` -- ALTER TABLE `tbl_pay_status` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tbl_rating` -- ALTER TABLE `tbl_rating` ADD PRIMARY KEY (`id`), ADD KEY `fk_id_tour_tbl_rating` (`id_tour`), ADD KEY `fk_id_user_tbl_rating` (`id_user`); -- -- Indexes for table `tour_trong_nuoc` -- ALTER TABLE `tour_trong_nuoc` 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=8; -- -- AUTO_INCREMENT for table `roles` -- ALTER TABLE `roles` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `tbl_booking_status` -- ALTER TABLE `tbl_booking_status` MODIFY `id` tinyint(2) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `tbl_detail_booking` -- ALTER TABLE `tbl_detail_booking` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=64; -- -- AUTO_INCREMENT for table `tbl_diemden` -- ALTER TABLE `tbl_diemden` MODIFY `id` int(3) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10; -- -- AUTO_INCREMENT for table `tbl_lienhe` -- ALTER TABLE `tbl_lienhe` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `tbl_news` -- ALTER TABLE `tbl_news` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `tbl_pay_status` -- ALTER TABLE `tbl_pay_status` MODIFY `id` tinyint(2) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `tbl_rating` -- ALTER TABLE `tbl_rating` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=8; -- -- AUTO_INCREMENT for table `tour_trong_nuoc` -- ALTER TABLE `tour_trong_nuoc` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=26; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=15; -- -- Constraints for dumped tables -- -- -- Constraints for table `role_user` -- ALTER TABLE `role_user` ADD CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`), ADD CONSTRAINT `role_user_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); -- -- Constraints for table `tbl_detail_booking` -- ALTER TABLE `tbl_detail_booking` ADD CONSTRAINT `fk_id_status_detail_booking` FOREIGN KEY (`id_status`) REFERENCES `tbl_booking_status` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `fk_id_tour_detail_booking` FOREIGN KEY (`id_tour`) REFERENCES `tour_trong_nuoc` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `fk_id_user_detail_booking` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `fk_pay_detail_booking` FOREIGN KEY (`pay`) REFERENCES `tbl_pay_status` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `tbl_rating` -- ALTER TABLE `tbl_rating` ADD CONSTRAINT `fk_id_tour_tbl_rating` FOREIGN KEY (`id_tour`) REFERENCES `tour_trong_nuoc` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE, ADD CONSTRAINT `fk_id_user_tbl_rating` FOREIGN KEY (`id_user`) REFERENCES `users` (`id`) ON DELETE NO ACTION ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>dmego/springcloud-seata-demo SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for account -- ---------------------------- DROP TABLE IF EXISTS `account`; CREATE TABLE `account` ( `id` varchar(255) NOT NULL COMMENT '账户', `balance` double DEFAULT NULL COMMENT '账户余额', `freezed` double DEFAULT NULL COMMENT '账户冻结金额', `incoming` double DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- ---------------------------- -- Records of account -- ---------------------------- BEGIN; INSERT INTO `account` VALUES ('1', 10, 0, 0); COMMIT; -- -------------------------------- The script use tcc fence -------------------------------- CREATE TABLE IF NOT EXISTS `tcc_fence_log` ( `xid` VARCHAR(128) NOT NULL COMMENT 'global id', `branch_id` BIGINT NOT NULL COMMENT 'branch id', `action_name` VARCHAR(64) NOT NULL COMMENT 'action name', `status` TINYINT NOT NULL COMMENT 'status(tried:1;committed:2;rollbacked:3;suspended:4)', `gmt_create` DATETIME(3) NOT NULL COMMENT 'create time', `gmt_modified` DATETIME(3) NOT NULL COMMENT 'update time', PRIMARY KEY (`xid`, `branch_id`), KEY `idx_gmt_modified` (`gmt_modified`), KEY `idx_status` (`status`) ) ENGINE = InnoDB DEFAULT CHARSET = utf8; SET FOREIGN_KEY_CHECKS = 1;
<reponame>openwebsolns/techscore<filename>src/db/down/00022_change_conference_null_in_pub_update_conference.sql<gh_stars>1-10 DELETE FROM pub_update_conference WHERE conference IS NULL ; ALTER TABLE pub_update_conference DROP FOREIGN KEY `fk_pub_update_conference_conference`, CHANGE COLUMN conference conference VARCHAR(8) NOT NULL, ADD FOREIGN KEY `pub_update_conference_ibfk_1` (conference) REFERENCES conference(id) ON DELETE CASCADE ON UPDATE CASCADE ;
-- sort.test -- -- execsql { -- SELECT c FROM t7 WHERE c<=3 ORDER BY c DESC; -- } SELECT c FROM t7 WHERE c<=3 ORDER BY c DESC;
<filename>src/test/resources/sql/_unknown/f3312893.sql -- file:plpgsql.sql ln:2210 expect:false return _v
<reponame>mark-ott/DE<filename>DE/Solutions/02 - ELT with Spark SQL and Python/DE 2.2.9L - Reshaping Data Lab.sql<gh_stars>0 -- Databricks notebook source -- MAGIC %md-sandbox -- MAGIC -- MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;"> -- MAGIC <img src="https://databricks.com/wp-content/uploads/2018/03/db-academy-rgb-1200px.png" alt="Databricks Learning" style="width: 600px"> -- MAGIC </div> -- COMMAND ---------- -- MAGIC %md -- MAGIC # Reshaping Data Lab -- MAGIC -- MAGIC In this lab, you will create a **`clickpaths`** table that aggregates the number of times each user took a particular action in **`events`** and then join this information with the flattened view of **`transactions`** created in the previous notebook. -- MAGIC -- MAGIC You'll also explore a new higher order function to flag items recorded in **`sales`** based on information extracted from item names. -- MAGIC -- MAGIC ##### Objectives -- MAGIC - Pivot and join tables to create clickpaths for each user -- MAGIC - Apply higher order functions to flag types of products purchased -- COMMAND ---------- -- MAGIC %md -- MAGIC ## Run Setup -- MAGIC -- MAGIC The setup script will create the data and declare necessary values for the rest of this notebook to execute. -- COMMAND ---------- -- MAGIC %run ../Includes/classroom-setup-2.2.9L-setup-transactions -- COMMAND ---------- -- MAGIC %md -- MAGIC ## Reshape Datasets to Create Click Paths -- MAGIC This operation will join data from your **`events`** and **`transactions`** tables in order to create a record of all actions a user took on the site and what their final order looked like. -- MAGIC -- MAGIC The **`clickpaths`** table should contain all the fields from your **`transactions`** table, as well as a count of every **`event_name`** in its own column. Each user that completed a purchase should have a single row in the final table. Let's start by pivoting the **`events`** table to get counts for each **`event_name`**. -- COMMAND ---------- -- MAGIC %md ### 1. Pivot **`events`** to count actions for each user -- MAGIC We want to aggregate the number of times each user performed a specific event, specified in the **`event_name`** column. To do this, group by **`user`** and pivot on **`event_name`** to provide a count of every event type in its own column, resulting in the schema below. -- MAGIC -- MAGIC | field | type | -- MAGIC | --- | --- | -- MAGIC | user | STRING | -- MAGIC | cart | BIGINT | -- MAGIC | pillows | BIGINT | -- MAGIC | login | BIGINT | -- MAGIC | main | BIGINT | -- MAGIC | careers | BIGINT | -- MAGIC | guest | BIGINT | -- MAGIC | faq | BIGINT | -- MAGIC | down | BIGINT | -- MAGIC | warranty | BIGINT | -- MAGIC | finalize | BIGINT | -- MAGIC | register | BIGINT | -- MAGIC | shipping_info | BIGINT | -- MAGIC | checkout | BIGINT | -- MAGIC | mattresses | BIGINT | -- MAGIC | add_item | BIGINT | -- MAGIC | press | BIGINT | -- MAGIC | email_coupon | BIGINT | -- MAGIC | cc_info | BIGINT | -- MAGIC | foam | BIGINT | -- MAGIC | reviews | BIGINT | -- MAGIC | original | BIGINT | -- MAGIC | delivery | BIGINT | -- MAGIC | premium | BIGINT | -- MAGIC -- MAGIC A list of the event names are provided below. -- COMMAND ---------- -- ANSWER CREATE OR REPLACE VIEW events_pivot AS SELECT * FROM ( SELECT user_id user, event_name FROM events ) PIVOT ( count(*) FOR event_name IN ( "cart", "pillows", "login", "main", "careers", "guest", "faq", "down", "warranty", "finalize", "register", "shipping_info", "checkout", "mattresses", "add_item", "press", "email_coupon", "cc_info", "foam", "reviews", "original", "delivery", "premium" )) -- COMMAND ---------- SELECT * FROM events_pivot; -- COMMAND ---------- -- MAGIC %md -- MAGIC **NOTE**: We'll use Python to run checks occasionally throughout the lab. The helper functions below will return an error with a message on what needs to change if you have not followed instructions. No output means that you have completed this step. -- COMMAND ---------- -- MAGIC %python -- MAGIC def check_table_results(table_name, column_names, num_rows): -- MAGIC assert spark.table(table_name), f"Table named **`{table_name}`** does not exist" -- MAGIC assert spark.table(table_name).columns == column_names, "Please name the columns in the order provided above" -- MAGIC assert spark.table(table_name).count() == num_rows, f"The table should have {num_rows} records" -- COMMAND ---------- -- MAGIC %md Run the cell below to confirm the view was created correctly. -- COMMAND ---------- -- MAGIC %python -- MAGIC event_columns = ['user', 'cart', 'pillows', 'login', 'main', 'careers', 'guest', 'faq', 'down', 'warranty', 'finalize', 'register', 'shipping_info', 'checkout', 'mattresses', 'add_item', 'press', 'email_coupon', 'cc_info', 'foam', 'reviews', 'original', 'delivery', 'premium'] -- MAGIC check_table_results("events_pivot", event_columns, 204586) -- COMMAND ---------- -- MAGIC %md ### 2. Join event counts and transactions for all users -- MAGIC -- MAGIC Next, join **`events_pivot`** with **`transactions`** to create the table **`clickpaths`**. This table should have the same event name columns from the **`events_pivot`** table created above, followed by columns from the **`transactions`** table, as shown below. -- MAGIC -- MAGIC | field | type | -- MAGIC | --- | --- | -- MAGIC | user | STRING | -- MAGIC | cart | BIGINT | -- MAGIC | ... | ... | -- MAGIC | user_id | STRING | -- MAGIC | order_id | BIGINT | -- MAGIC | transaction_timestamp | BIGINT | -- MAGIC | total_item_quantity | BIGINT | -- MAGIC | purchase_revenue_in_usd | DOUBLE | -- MAGIC | unique_items | BIGINT | -- MAGIC | P_FOAM_K | BIGINT | -- MAGIC | M_STAN_Q | BIGINT | -- MAGIC | P_FOAM_S | BIGINT | -- MAGIC | M_PREM_Q | BIGINT | -- MAGIC | M_STAN_F | BIGINT | -- MAGIC | M_STAN_T | BIGINT | -- MAGIC | M_PREM_K | BIGINT | -- MAGIC | M_PREM_F | BIGINT | -- MAGIC | M_STAN_K | BIGINT | -- MAGIC | M_PREM_T | BIGINT | -- MAGIC | P_DOWN_S | BIGINT | -- MAGIC | P_DOWN_K | BIGINT | -- COMMAND ---------- -- ANSWER CREATE OR REPLACE VIEW clickpaths AS SELECT * FROM events_pivot a JOIN transactions b ON a.user = b.user_id -- COMMAND ---------- SELECT * FROM clickpaths; -- COMMAND ---------- -- MAGIC %md Run the cell below to confirm the table was created correctly. -- COMMAND ---------- -- MAGIC %python -- MAGIC clickpath_columns = event_columns + ['user_id', 'order_id', 'transaction_timestamp', 'total_item_quantity', 'purchase_revenue_in_usd', 'unique_items', 'P_FOAM_K', 'M_STAN_Q', 'P_FOAM_S', 'M_PREM_Q', 'M_STAN_F', 'M_STAN_T', 'M_PREM_K', 'M_PREM_F', 'M_STAN_K', 'M_PREM_T', 'P_DOWN_S', 'P_DOWN_K'] -- MAGIC check_table_results("clickpaths", clickpath_columns, 9085) -- COMMAND ---------- -- MAGIC %md -- MAGIC ## Flag Types of Products Purchased -- MAGIC Here, you'll use the higher order function **`EXISTS`** to create boolean columns **`mattress`** and **`pillow`** that indicate whether the item purchased was a mattress or pillow product. -- MAGIC -- MAGIC For example, if **`item_name`** from the **`items`** column ends with the string **`"Mattress"`**, the column value for **`mattress`** should be **`true`** and the value for **`pillow`** should be **`false`**. Here are a few examples of items and the resulting values. -- MAGIC -- MAGIC | items | mattress | pillow | -- MAGIC | ------- | -------- | ------ | -- MAGIC | **`[{..., "item_id": "M_PREM_K", "item_name": "Premium King Mattress", ...}]`** | true | false | -- MAGIC | **`[{..., "item_id": "P_FOAM_S", "item_name": "Standard Foam Pillow", ...}]`** | false | true | -- MAGIC | **`[{..., "item_id": "M_STAN_F", "item_name": "Standard Full Mattress", ...}]`** | true | false | -- MAGIC -- MAGIC See documentation for the <a href="https://docs.databricks.com/sql/language-manual/functions/exists.html" target="_blank">exists</a> function. -- MAGIC You can use the condition expression **`item_name LIKE "%Mattress"`** to check whether the string **`item_name`** ends with the word "Mattress". -- COMMAND ---------- -- ANSWER CREATE OR REPLACE TABLE sales_product_flags AS SELECT items, EXISTS (items, i -> i.item_name LIKE "%Mattress") AS mattress, EXISTS (items, i -> i.item_name LIKE "%Pillow") AS pillow FROM sales -- COMMAND ---------- SELECT * FROM sales_product_flags; -- COMMAND ---------- -- MAGIC %md Run the cell below to confirm the table was created correctly. -- COMMAND ---------- -- MAGIC %python -- MAGIC check_table_results("sales_product_flags", ['items', 'mattress', 'pillow'], 10539) -- MAGIC product_counts = spark.sql("SELECT sum(CAST(mattress AS INT)) num_mattress, sum(CAST(pillow AS INT)) num_pillow FROM sales_product_flags").first().asDict() -- MAGIC assert product_counts == {'num_mattress': 10015, 'num_pillow': 1386}, "There should be 10015 rows where mattress is true, and 1386 where pillow is true" -- COMMAND ---------- -- MAGIC %md -- MAGIC Run the following cell to delete the tables and files associated with this lesson. -- COMMAND ---------- -- MAGIC %python -- MAGIC DA.cleanup() -- COMMAND ---------- -- MAGIC %md-sandbox -- MAGIC &copy; 2022 Databricks, Inc. All rights reserved.<br/> -- MAGIC Apache, Apache Spark, Spark and the Spark logo are trademarks of the <a href="https://www.apache.org/">Apache Software Foundation</a>.<br/> -- MAGIC <br/> -- MAGIC <a href="https://databricks.com/privacy-policy">Privacy Policy</a> | <a href="https://databricks.com/terms-of-use">Terms of Use</a> | <a href="https://help.databricks.com/">Support</a>
CREATE SCHEMA IF NOT EXISTS nss; CREATE TABLE IF NOT EXISTS nss."_EFMigrationsHistory" ( "MigrationId" character varying(150) NOT NULL, "ProductVersion" character varying(32) NOT NULL, CONSTRAINT "PK__EFMigrationsHistory" PRIMARY KEY ("MigrationId") ); CREATE SCHEMA IF NOT EXISTS nss; CREATE EXTENSION IF NOT EXISTS postgis; CREATE TABLE nss."Citations" ( "ID" serial NOT NULL, "Title" text NOT NULL, "Author" text NOT NULL, "CitationURL" text NOT NULL, "LastModified" timestamp without time zone NOT NULL, CONSTRAINT "PK_Citations" PRIMARY KEY ("ID") ); CREATE TABLE nss."Locations" ( "ID" serial NOT NULL, "Geometry" geometry NOT NULL, "AssociatedCodes" text NULL, CONSTRAINT "PK_Locations" PRIMARY KEY ("ID") ); CREATE TABLE nss."PredictionIntervals" ( "ID" serial NOT NULL, "BiasCorrectionFactor" double precision NULL, "Student_T_Statistic" double precision NULL, "Variance" double precision NULL, "XIRowVector" text NULL, "CovarianceMatrix" text NULL, "LastModified" timestamp without time zone NOT NULL, CONSTRAINT "PK_PredictionIntervals" PRIMARY KEY ("ID") ); CREATE TABLE nss."Regions" ( "ID" serial NOT NULL, "Name" text NOT NULL, "Code" text NOT NULL, "Description" text NULL, "LastModified" timestamp without time zone NOT NULL, CONSTRAINT "PK_Regions" PRIMARY KEY ("ID") ); CREATE TABLE nss."Roles" ( "ID" serial NOT NULL, "Name" text NOT NULL, "Description" text NOT NULL, CONSTRAINT "PK_Roles" PRIMARY KEY ("ID") ); CREATE TABLE nss."Status" ( "ID" serial NOT NULL, "Name" text NOT NULL, "Description" text NULL, CONSTRAINT "PK_Status" PRIMARY KEY ("ID") ); CREATE TABLE nss."Managers" ( "ID" serial NOT NULL, "FirstName" text NOT NULL, "LastName" text NOT NULL, "Username" text NOT NULL, "Email" text NOT NULL, "PrimaryPhone" text NULL, "SecondaryPhone" text NULL, "RoleID" integer NOT NULL, "OtherInfo" text NULL, "Password" text NOT NULL, "Salt" text NOT NULL, "LastModified" timestamp without time zone NOT NULL, CONSTRAINT "PK_Managers" PRIMARY KEY ("ID"), CONSTRAINT "FK_Managers_Roles_RoleID" FOREIGN KEY ("RoleID") REFERENCES nss."Roles" ("ID") ON DELETE RESTRICT ); CREATE TABLE nss."RegressionRegions" ( "ID" serial NOT NULL, "Name" text NOT NULL, "Code" text NOT NULL, "Description" text NULL, "CitationID" integer NOT NULL, "StatusID" integer NULL, "LocationID" integer NULL, "LastModified" timestamp without time zone NOT NULL, CONSTRAINT "PK_RegressionRegions" PRIMARY KEY ("ID"), CONSTRAINT "FK_RegressionRegions_Citations_CitationID" FOREIGN KEY ("CitationID") REFERENCES nss."Citations" ("ID") ON DELETE CASCADE, CONSTRAINT "FK_RegressionRegions_Locations_LocationID" FOREIGN KEY ("LocationID") REFERENCES nss."Locations" ("ID") ON DELETE RESTRICT, CONSTRAINT "FK_RegressionRegions_Status_StatusID" FOREIGN KEY ("StatusID") REFERENCES nss."Status" ("ID") ON DELETE RESTRICT ); CREATE TABLE nss."RegionManager" ( "RegionID" integer NOT NULL, "ManagerID" integer NOT NULL, CONSTRAINT "PK_RegionManager" PRIMARY KEY ("ManagerID", "RegionID"), CONSTRAINT "FK_RegionManager_Managers_ManagerID" FOREIGN KEY ("ManagerID") REFERENCES nss."Managers" ("ID") ON DELETE CASCADE, CONSTRAINT "FK_RegionManager_Regions_RegionID" FOREIGN KEY ("RegionID") REFERENCES nss."Regions" ("ID") ON DELETE CASCADE ); CREATE TABLE nss."Coefficients" ( "ID" serial NOT NULL, "RegressionRegionID" integer NOT NULL, "Criteria" text NOT NULL, "Description" text NULL, "Value" text NOT NULL, "LastModified" timestamp without time zone NOT NULL, CONSTRAINT "PK_Coefficients" PRIMARY KEY ("ID"), CONSTRAINT "FK_Coefficients_RegressionRegions_RegressionRegionID" FOREIGN KEY ("RegressionRegionID") REFERENCES nss."RegressionRegions" ("ID") ON DELETE CASCADE ); CREATE TABLE nss."Equations" ( "ID" serial NOT NULL, "RegressionRegionID" integer NOT NULL, "PredictionIntervalID" integer NULL, "UnitTypeID" integer NOT NULL, "Expression" text NOT NULL, "DA_Exponent" double precision NULL, "OrderIndex" integer NULL, "RegressionTypeID" integer NOT NULL, "StatisticGroupTypeID" integer NOT NULL, "EquivalentYears" double precision NULL, "LastModified" timestamp without time zone NOT NULL, CONSTRAINT "PK_Equations" PRIMARY KEY ("ID"), CONSTRAINT "FK_Equations_PredictionIntervals_PredictionIntervalID" FOREIGN KEY ("PredictionIntervalID") REFERENCES nss."PredictionIntervals" ("ID") ON DELETE RESTRICT, CONSTRAINT "FK_Equations_RegressionRegions_RegressionRegionID" FOREIGN KEY ("RegressionRegionID") REFERENCES nss."RegressionRegions" ("ID") ON DELETE CASCADE ); CREATE TABLE nss."Limitations" ( "ID" serial NOT NULL, "Criteria" text NOT NULL, "Description" text NULL, "RegressionRegionID" integer NOT NULL, "LastModified" timestamp without time zone NOT NULL, CONSTRAINT "PK_Limitations" PRIMARY KEY ("ID"), CONSTRAINT "FK_Limitations_RegressionRegions_RegressionRegionID" FOREIGN KEY ("RegressionRegionID") REFERENCES nss."RegressionRegions" ("ID") ON DELETE CASCADE ); CREATE TABLE nss."RegionRegressionRegions" ( "RegionID" integer NOT NULL, "RegressionRegionID" integer NOT NULL, CONSTRAINT "PK_RegionRegressionRegions" PRIMARY KEY ("RegionID", "RegressionRegionID"), CONSTRAINT "FK_RegionRegressionRegions_Regions_RegionID" FOREIGN KEY ("RegionID") REFERENCES nss."Regions" ("ID") ON DELETE CASCADE, CONSTRAINT "FK_RegionRegressionRegions_RegressionRegions_RegressionRegionID" FOREIGN KEY ("RegressionRegionID") REFERENCES nss."RegressionRegions" ("ID") ON DELETE CASCADE ); CREATE TABLE nss."EquationErrors" ( "ID" serial NOT NULL, "EquationID" integer NOT NULL, "ErrorTypeID" integer NOT NULL, "Value" double precision NOT NULL, CONSTRAINT "PK_EquationErrors" PRIMARY KEY ("ID"), CONSTRAINT "FK_EquationErrors_Equations_EquationID" FOREIGN KEY ("EquationID") REFERENCES nss."Equations" ("ID") ON DELETE CASCADE ); CREATE TABLE nss."EquationUnitTypes" ( "EquationID" integer NOT NULL, "UnitTypeID" integer NOT NULL, CONSTRAINT "PK_EquationUnitTypes" PRIMARY KEY ("EquationID", "UnitTypeID"), CONSTRAINT "FK_EquationUnitTypes_Equations_EquationID" FOREIGN KEY ("EquationID") REFERENCES nss."Equations" ("ID") ON DELETE CASCADE ); CREATE TABLE nss."Variables" ( "ID" serial NOT NULL, "EquationID" integer NULL, "VariableTypeID" integer NOT NULL, "RegressionTypeID" integer NULL, "UnitTypeID" integer NOT NULL, "MinValue" double precision NULL, "MaxValue" double precision NULL, "Comments" text NULL, "LimitationID" integer NULL, "CoefficientID" integer NULL, "LastModified" timestamp without time zone NOT NULL, CONSTRAINT "PK_Variables" PRIMARY KEY ("ID"), CONSTRAINT "FK_Variables_Coefficients_CoefficientID" FOREIGN KEY ("CoefficientID") REFERENCES nss."Coefficients" ("ID") ON DELETE RESTRICT, CONSTRAINT "FK_Variables_Equations_EquationID" FOREIGN KEY ("EquationID") REFERENCES nss."Equations" ("ID") ON DELETE RESTRICT, CONSTRAINT "FK_Variables_Limitations_LimitationID" FOREIGN KEY ("LimitationID") REFERENCES nss."Limitations" ("ID") ON DELETE RESTRICT ); CREATE TABLE nss."VariableUnitTypes" ( "VariableID" integer NOT NULL, "UnitTypeID" integer NOT NULL, CONSTRAINT "PK_VariableUnitTypes" PRIMARY KEY ("VariableID", "UnitTypeID"), CONSTRAINT "FK_VariableUnitTypes_Variables_VariableID" FOREIGN KEY ("VariableID") REFERENCES nss."Variables" ("ID") ON DELETE CASCADE ); INSERT INTO nss."Roles" ("ID", "Description", "Name") VALUES (1, 'System Administrator', 'Admin'); INSERT INTO nss."Roles" ("ID", "Description", "Name") VALUES (2, 'Region Manager', 'Manager'); INSERT INTO nss."Status" ("ID", "Description", "Name") VALUES (1, 'Working and disabled for all public users', 'Work/Disabled'); INSERT INTO nss."Status" ("ID", "Description", "Name") VALUES (2, 'Reviewing and disabled for all public users', 'Review'); INSERT INTO nss."Status" ("ID", "Description", "Name") VALUES (3, 'Approved and enabled for public NSS users', 'Approved'); INSERT INTO nss."Status" ("ID", "Description", "Name") VALUES (4, 'Approved and enabled for public StreamStats users', 'SS Approved'); CREATE INDEX "IX_Coefficients_RegressionRegionID" ON nss."Coefficients" ("RegressionRegionID"); CREATE INDEX "IX_EquationErrors_EquationID" ON nss."EquationErrors" ("EquationID"); CREATE INDEX "IX_Equations_PredictionIntervalID" ON nss."Equations" ("PredictionIntervalID"); CREATE INDEX "IX_Equations_RegressionRegionID" ON nss."Equations" ("RegressionRegionID"); CREATE INDEX "IX_Limitations_RegressionRegionID" ON nss."Limitations" ("RegressionRegionID"); CREATE INDEX "IX_Managers_RoleID" ON nss."Managers" ("RoleID"); CREATE INDEX "IX_Managers_Username" ON nss."Managers" ("Username"); CREATE INDEX "IX_RegionManager_RegionID" ON nss."RegionManager" ("RegionID"); CREATE INDEX "IX_RegionRegressionRegions_RegressionRegionID" ON nss."RegionRegressionRegions" ("RegressionRegionID"); CREATE INDEX "IX_Regions_Code" ON nss."Regions" ("Code"); CREATE INDEX "IX_RegressionRegions_CitationID" ON nss."RegressionRegions" ("CitationID"); CREATE INDEX "IX_RegressionRegions_Code" ON nss."RegressionRegions" ("Code"); CREATE INDEX "IX_RegressionRegions_LocationID" ON nss."RegressionRegions" ("LocationID"); CREATE INDEX "IX_RegressionRegions_StatusID" ON nss."RegressionRegions" ("StatusID"); CREATE INDEX "IX_Variables_CoefficientID" ON nss."Variables" ("CoefficientID"); CREATE INDEX "IX_Variables_EquationID" ON nss."Variables" ("EquationID"); CREATE INDEX "IX_Variables_LimitationID" ON nss."Variables" ("LimitationID"); CREATE OR REPLACE FUNCTION "nss"."trigger_set_lastmodified"() RETURNS TRIGGER AS $$ BEGIN NEW."LastModified" = NOW(); RETURN NEW; END; $$ LANGUAGE plpgsql; CREATE TRIGGER lastupdate BEFORE INSERT OR UPDATE ON "Citations" FOR EACH ROW EXECUTE PROCEDURE "nss"."trigger_set_lastmodified"(); CREATE TRIGGER lastupdate BEFORE INSERT OR UPDATE ON "Equations" FOR EACH ROW EXECUTE PROCEDURE "nss"."trigger_set_lastmodified"(); CREATE TRIGGER lastupdate BEFORE INSERT OR UPDATE ON "Limitations" FOR EACH ROW EXECUTE PROCEDURE "nss"."trigger_set_lastmodified"(); CREATE TRIGGER lastupdate BEFORE INSERT OR UPDATE ON "Managers" FOR EACH ROW EXECUTE PROCEDURE "nss"."trigger_set_lastmodified"(); CREATE TRIGGER lastupdate BEFORE INSERT OR UPDATE ON "PredictionIntervals" FOR EACH ROW EXECUTE PROCEDURE "nss"."trigger_set_lastmodified"(); CREATE TRIGGER lastupdate BEFORE INSERT OR UPDATE ON "Regions" FOR EACH ROW EXECUTE PROCEDURE "nss"."trigger_set_lastmodified"(); CREATE TRIGGER lastupdate BEFORE INSERT OR UPDATE ON "RegressionRegions" FOR EACH ROW EXECUTE PROCEDURE "nss"."trigger_set_lastmodified"(); CREATE TRIGGER lastupdate BEFORE INSERT OR UPDATE ON "Coefficients" FOR EACH ROW EXECUTE PROCEDURE "nss"."trigger_set_lastmodified"(); CREATE TRIGGER lastupdate BEFORE INSERT OR UPDATE ON "Variables" FOR EACH ROW EXECUTE PROCEDURE "nss"."trigger_set_lastmodified"(); INSERT INTO nss."_EFMigrationsHistory" ("MigrationId", "ProductVersion") VALUES ('20190313184751_init', '2.2.3-servicing-35854'); ALTER TABLE nss."RegressionRegions" DROP CONSTRAINT "FK_RegressionRegions_Citations_CitationID"; ALTER TABLE nss."RegressionRegions" ALTER COLUMN "CitationID" TYPE integer; ALTER TABLE nss."RegressionRegions" ALTER COLUMN "CitationID" DROP NOT NULL; ALTER TABLE nss."RegressionRegions" ALTER COLUMN "CitationID" DROP DEFAULT; ALTER TABLE nss."RegressionRegions" ADD CONSTRAINT "FK_RegressionRegions_Citations_CitationID" FOREIGN KEY ("CitationID") REFERENCES nss."Citations" ("ID") ON DELETE RESTRICT; INSERT INTO nss."_EFMigrationsHistory" ("MigrationId", "ProductVersion") VALUES ('20190319150055_dbgenerated', '2.2.3-servicing-35854');
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 15-Jul-2020 às 22:48 -- Versão do servidor: 10.4.8-MariaDB -- versão do PHP: 7.1.33 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 */; -- -- Banco de dados: `webstatus` -- -- -------------------------------------------------------- -- -- Estrutura da tabela `adm` -- CREATE TABLE `adm` ( `id` int(11) NOT NULL, `nome` text NOT NULL, `cpf` int(20) NOT NULL, `nascimento` int(11) NOT NULL, `sexo` text NOT NULL, `endereco` varchar(20) NOT NULL, `cep` int(20) NOT NULL, `telefone` int(11) NOT NULL, `celular` int(11) NOT NULL, `email` varchar(20) NOT NULL, `senha` varchar(20) NOT NULL, `comentarios` varchar(40) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Extraindo dados da tabela `adm` -- INSERT INTO `adm` (`id`, `nome`, `cpf`, `nascimento`, `sexo`, `endereco`, `cep`, `telefone`, `celular`, `email`, `senha`, `comentarios`) VALUES (15, 'c', 123, 2103, 'Masculino', 'adsw', 34, 234, 123456, 'carloseduardozero0@g', '123', ' pegou\r\n '), (16, '<NAME>', 2147483647, 21122000, 'Masculino', 'xesquelededodereguej', 21122112, 123456789, 123456789, '<EMAIL>', '123456789', ' Comente aqui...\r\n '), (25, 'jamal', 742, 7417441, 'Masculino', '741741', 74, 7417417, 7417417, '<EMAIL>', '741741741', ' 7417417441\r\n '), (26, 'jose', 456789, 12211221, 'Masculino', 'wewqeqwewq', 55, 456854651, 564854984, 'we@ewe', '987654321', ' \r\n pegou \r'), (27, 'Mike', 789456, 21, 'Masculino', 'fdsafsdfdsaf', 30, 123456, 0, '<EMAIL>', '121212', ' Testando 123 \r\n '), (28, 'jonatas', 456, 456123, 'Masculino', 'rua11demaio', 46, 456123, 456123, '<EMAIL>', '456123', ' \r\n Testand'); -- -------------------------------------------------------- -- -- Estrutura da tabela `administrador` -- CREATE TABLE `administrador` ( `id` int(11) NOT NULL, `email` varchar(100) NOT NULL, `senha` int(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `administrador` -- INSERT INTO `administrador` (`id`, `email`, `senha`) VALUES (1, '<EMAIL>', 40028922); -- -------------------------------------------------------- -- -- Estrutura da tabela `avisos` -- CREATE TABLE `avisos` ( `id` int(11) NOT NULL, `comentarios` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `avisos` -- INSERT INTO `avisos` (`id`, `comentarios`) VALUES (3, ' \r\n \r\n teste 2 '), (5, ' \r\n \r\n Importante , prova dia ..... '), (6, ' \r\n \r\n Testando 123'), (7, ' \r\n \r\n ATENÇÃO AMANHA SERÁ O PFC, BOA SORTE '), (8, ' \r\n \r\n Testando 123 '); -- -------------------------------------------------------- -- -- Estrutura da tabela `solicitacao` -- CREATE TABLE `solicitacao` ( `id` int(11) NOT NULL, `nome` text NOT NULL, `cpf` int(11) NOT NULL, `renach` varchar(20) NOT NULL, `comentarios` varchar(100) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Extraindo dados da tabela `solicitacao` -- INSERT INTO `solicitacao` (`id`, `nome`, `cpf`, `renach`, `comentarios`) VALUES (6, '<NAME>', 888888, '1000000000', ' Solicito o cancelamento da inscrição\r\n \r\n '), (7, 'jonatas', 456123, '123456', ' \r\n \r\n Testando 123 '), (8, '<NAME>', 999999, '9999999999', ' \r\n \r\n Solicito o Cancelamento de matrícula '); -- -------------------------------------------------------- -- -- Estrutura da tabela `teste` -- CREATE TABLE `teste` ( `id` int(11) NOT NULL, `nome` text NOT NULL, `cpf` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Extraindo dados da tabela `teste` -- INSERT INTO `teste` (`id`, `nome`, `cpf`) VALUES (1, 'Xolinha', 888888), (2, 'jamal', 888888), (3, 'dsadasdsa', 1000), (4, 'anderson', 777777); -- -- Índices para tabelas despejadas -- -- -- Índices para tabela `adm` -- ALTER TABLE `adm` ADD PRIMARY KEY (`id`); -- -- Índices para tabela `administrador` -- ALTER TABLE `administrador` ADD PRIMARY KEY (`id`); -- -- Índices para tabela `avisos` -- ALTER TABLE `avisos` ADD PRIMARY KEY (`id`); -- -- Índices para tabela `solicitacao` -- ALTER TABLE `solicitacao` ADD PRIMARY KEY (`id`); -- -- Índices para tabela `teste` -- ALTER TABLE `teste` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT de tabelas despejadas -- -- -- AUTO_INCREMENT de tabela `adm` -- ALTER TABLE `adm` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=29; -- -- AUTO_INCREMENT de tabela `administrador` -- ALTER TABLE `administrador` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT de tabela `avisos` -- ALTER TABLE `avisos` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT de tabela `solicitacao` -- ALTER TABLE `solicitacao` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT de tabela `teste` -- ALTER TABLE `teste` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
-- If you had problems creating tables in steps 5 and 6 of the final, -- this script will create enough of what you need to run the -- queries in step 7. This is incomplete! DROP TABLE IF EXISTS MonstersB CASCADE; DROP TABLE IF EXISTS LocationsB CASCADE; DROP TABLE IF EXISTS ClassesB CASCADE; DROP TABLE IF EXISTS EnrolledB CASCADE; DROP TABLE IF EXISTS AlumniB; CREATE TABLE MonstersB( monster_id INTEGER PRIMARY KEY, name VARCHAR(26), dob DATE CHECK (dob < NOW()), species VARCHAR(10), diet VARCHAR(15), gpa NUMERIC(3,2), credits INTEGER, teacher BOOLEAN DEFAULT FALSE ); DROP TABLE IF EXISTS LocationsB; CREATE TABLE LocationsB( location_id INTEGER PRIMARY KEY, building_code CHAR(2), room_num INTEGER, capacity INTEGER ); DROP TABLE IF EXISTS ClassesB; CREATE TABLE ClassesB( class_id INTEGER PRIMARY KEY, title VARCHAR(20), location_id INTEGER, duration INTEGER, days VARCHAR(5), start_time TIME, instructor_id INTEGER, FOREIGN KEY(location_id) REFERENCES LocationsB(location_id), FOREIGN KEY(instructor_id) REFERENCES MonstersB(monster_id) ); DROP TABLE IF EXISTS EnrolledB; CREATE TABLE EnrolledB( monster_id INTEGER, class_id INTEGER, FOREIGN KEY(monster_id) REFERENCES MonstersB(monster_id), FOREIGN KEY(class_id) REFERENCES ClassesB(class_id), PRIMARY KEY(monster_id, class_id) ); DROP TABLE IF EXISTS AlumniB; CREATE TABLE AlumniB( monster_id INTEGER PRIMARY KEY, FOREIGN KEY(monster_id) REFERENCES MonstersB(monster_id), grad_year INTEGER, degree VARCHAR(12) ); INSERT INTO MonstersB(monster_id, name, dob, species, diet, gpa, credits, teacher) VALUES(1, 'Cookie Monster', '1969-11-10', NULL, 'Cookies', 3.2, 76, FALSE); INSERT INTO MonstersB(monster_id, name, dob, species, diet, gpa, credits, teacher) VALUES(2, 'Marceline', '1056-02-03', 'Vampire', 'The Color Red', 0.0, 0, TRUE); INSERT INTO MonstersB(monster_id, name, dob, species, diet, gpa, credits, teacher) VALUES(3, 'Chewbacca', '1977-05-25', 'Wookie', 'Omnivore', 2.6, 24, FALSE); INSERT INTO MonstersB(monster_id, name, dob, species, diet, gpa, credits, teacher) VALUES(4, 'Dracula', '1543-08-15', 'Vampire', 'Blood', 4.0, 112, TRUE); INSERT INTO MonstersB(monster_id, name, dob, species, diet, gpa, credits, teacher) VALUES(5, 'Maleficent', '1856-10-26', 'Dragon', 'Carnivore', 3.8, 63, FALSE); INSERT INTO LocationsB(location_id, building_code, room_num, capacity) VALUES(1, 'CL', 101, 100); INSERT INTO LocationsB(location_id, building_code, room_num, capacity) VALUES(2, 'CL', 503, 34); INSERT INTO LocationsB(location_id, building_code, room_num, capacity) VALUES(3, 'MU', 220, 12); INSERT INTO ClassesB(class_id, title, location_id, duration, days, start_time, instructor_id) VALUES(1, 'Intro to Guitar', 3, 120, 'TH', '14:00:00', 2); INSERT INTO ClassesB(class_id, title, location_id, duration, days, start_time, instructor_id) VALUES(2, 'Monser First Aid', 3, 60, 'MWF', '21:00:00', 4); INSERT INTO EnrolledB(class_id, monster_id) -- Monster First Aid VALUES(2,1), (2,3), (2,5); INSERT INTO EnrolledB(class_id, monster_id) -- Intro to Guitar VALUES(1,3), (1,5); INSERT INTO AlumniB(monster_id, grad_year, degree) VALUES(4, 1732, 'Management');
<filename>01.-Database-Introduction/03.-Alter-Minions-Table/03.-Alter-Minions-Tablesql.sql --CREATE DATABASE Minions --USE Minions --CREATE TABLE Minions( -- Id INT PRIMARY KEY NOT NULL, -- [Name] VARCHAR(50) NOT NULL, -- Age TINYINT --) --CREATE TABLE Towns( -- Id INT PRIMARY KEY NOT NULL, -- [Name] NVARCHAR(50) NOT NULL, --) USE Minions ALTER TABLE Minions ADD TownId INT FOREIGN KEY REFERENCES Towns(Id)
<reponame>fivetran/dbt_apple_store_source select * from {{ var('app_store_device') }}
DO $$ BEGIN BEGIN PERFORM internal.ac_add_role('ADMIN', 'app admin'); EXCEPTION WHEN unique_violation THEN NULL; END; BEGIN PERFORM internal.ac_add_role('BASE_USER', 'base user'); EXCEPTION WHEN unique_violation THEN NULL; END; END $$;
-- Existing empty db file from CREATE statements in Essence.createtable.sql -- __________ -- sqlite3 Essence.db -- .read /cygdrive/u/code/misccode/Essence.insertinto.sql -- To query: -- sqlite> .read Essence.insertinto.sql -- DDL BEGIN TRANSACTION; -- ______optional_______ INSERT INTO "course"(cno, title, credits) VALUES('CS112','Accounting' ,5); INSERT INTO "course"(cno, title, credits) VALUES('CS114','Math',10); INSERT INTO "course"(cno, title, credits) VALUES('CS116','Science',12); INSERT INTO "course"(cno, title, credits) VALUES('CX123','Chemistry',1); INSERT INTO "course"(cno, title, credits) VALUES('DD123','Programming',12); INSERT INTO "course"(cno, title, credits) VALUES('DD456','Basketweaving',10); INSERT INTO "course"(cno, title, credits) VALUES('DD789','Dummyclass',5); INSERT INTO professor VALUES('Fnamer','Addefourteen','IS','Tenured',9000,53); INSERT INTO professor VALUES('Loncs','Dontteachit','IS','Tenured',50000,60); INSERT INTO professor VALUES('Liamteach','Ialso','HIS','Tenured',60000,59); INSERT INTO professor VALUES('Joe','Iteachit','MUS','Fired',70000,58); INSERT INTO professor VALUES('Charles','Metoorich','MUS','Fired',80000,93); INSERT INTO professor VALUES('Nulllquirk','Nullf','FOO','Fired',10000,''); INSERT INTO professor VALUES('Prof','Rich','BAR','Tenured',201000,51); INSERT INTO professor VALUES('Bo','Whydontshow','IS','Lazy',39000,62); INSERT INTO "student" VALUES('1','studnA',30); INSERT INTO "student" VALUES('2','studnB',98); INSERT INTO "student" VALUES('3','studnC',98); INSERT INTO "student" VALUES('4','studnD',22); INSERT INTO "student" VALUES('5','studnE',18); INSERT INTO "student" VALUES('32','takeemall',39); INSERT INTO "student" VALUES('88','studnfnoclass',18); INSERT INTO "student" VALUES('99','gretzky',38); INSERT INTO "take" VALUES('1','CS112',2); INSERT INTO "take" VALUES('1','CS114',4); INSERT INTO "take" VALUES('2','CS112',3); INSERT INTO "take" VALUES('3','CX123',1); INSERT INTO "take" VALUES('4','CS114',2); INSERT INTO "take" VALUES('4','CS116',4); INSERT INTO "take" VALUES('5','DD123',1); INSERT INTO "take" VALUES('5','DD456',2); INSERT INTO "take" VALUES('5','DD789',3); INSERT INTO "take" VALUES('32','CS112',4); INSERT INTO "take" VALUES('32','CS114',0); INSERT INTO "take" VALUES('32','CS116',0); INSERT INTO "take" VALUES('32','CX123',0); INSERT INTO "take" VALUES('32','DD123',0); INSERT INTO "take" VALUES('32','DD456',0); INSERT INTO "take" VALUES('32','DD789',0); INSERT INTO "take" VALUES('99','CS112','D'); INSERT INTO "teach" VALUES('Liamteach','Ialso','CS112'); INSERT INTO "teach" VALUES('Joe','Iteachit','CS112'); INSERT INTO "teach" VALUES('Joe','Iteachit','CX000'); INSERT INTO "teach" VALUES('Charles','Metoorich','CS112'); INSERT INTO "teach" VALUES('Prof','Rich','CX000'); COMMIT;
--The top N populated countries in the world where N is provided by the user. SELECT code, name, continent, region, population, capital FROM country ORDER BY population DESC LIMIT n ;
<reponame>ychung-mot/HMCR /* ---------------------------------------------------------------------- */ /* Script generated with: DeZign for Databases 11.1.0 */ /* Target DBMS: MS SQL Server 2017 */ /* Project file: APP_HMR.dez */ /* Project name: */ /* Author: */ /* Script type: Alter database script */ /* Created on: 2020-02-13 10:59 */ /* ---------------------------------------------------------------------- */ -- ============================================= -- Author: <NAME> -- Create date: 2020-02-13 -- Updates: -- -- -- Description: Incremnetal DML in support of sprint 5. -- - Changes boolean fields to BIT data type for HMR_SUBMISSION_ROW.IS_RESUBMITTED, HMR_SYSTEM_VALIDATION.IS_REQUIRED -- -- ============================================= USE HMR_DEV; -- uncomment appropriate instance --USE HMR_TST; --USE HMR_UAT; --USE HMR_PRD; GO /* ---------------------------------------------------------------------- */ /* Drop foreign key constraints */ /* ---------------------------------------------------------------------- */ GO ALTER TABLE [dbo].[HMR_SUBMISSION_ROW] DROP CONSTRAINT [HMR_SUBM_RW_SUBM_STAT_FK] GO ALTER TABLE [dbo].[HMR_SUBMISSION_ROW] DROP CONSTRAINT [HMR_SUBM_RW_HMR_SUBM_OBJ_FK] GO /* ---------------------------------------------------------------------- */ /* Alter table "dbo.HMR_SUBMISSION_ROW" */ /* ---------------------------------------------------------------------- */ GO -- MODIFIED: data conversion DECLARE @utcdate DATETIME = (SELECT getutcdate() AS utcdate) DECLARE @app_guid UNIQUEIDENTIFIER = (SELECT CASE WHEN SUSER_SID() IS NOT NULL THEN SUSER_SID() ELSE (SELECT CONVERT(uniqueidentifier,STUFF(STUFF(STUFF(STUFF('B00D00A0AC0A0D0C00DD00F0D0C00000',9,0,'-'),14,0,'-'),19,0,'-'),24,0,'-'))) END AS app_guid) DECLARE @app_user VARCHAR(30) = (SELECT CASE WHEN SUBSTRING(SUSER_NAME(),CHARINDEX('\',SUSER_NAME())+1,LEN(SUSER_NAME())) IS NOT NULL THEN SUBSTRING(SUSER_NAME(),CHARINDEX('\',SUSER_NAME())+1,LEN(SUSER_NAME())) ELSE CURRENT_USER END AS app_user) DECLARE @app_user_dir VARCHAR(12) = (SELECT CASE WHEN LEN(SUBSTRING(SUSER_NAME(),0,CHARINDEX('\',SUSER_NAME(),0)))>1 THEN SUBSTRING(SUSER_NAME(),0,CHARINDEX('\',SUSER_NAME(),0)) ELSE 'WIN AUTH' END AS app_user_dir) UPDATE [dbo].[HMR_SUBMISSION_ROW] SET [IS_RESUBMITTED] = CASE IS_RESUBMITTED WHEN 'Y' THEN 1 WHEN 'N' THEN 0 ELSE 0 END ,[CONCURRENCY_CONTROL_NUMBER] = [CONCURRENCY_CONTROL_NUMBER]+1 GO ALTER TABLE [dbo].[HMR_SUBMISSION_ROW] ALTER COLUMN [IS_RESUBMITTED] BIT GO /* ---------------------------------------------------------------------- */ /* Alter table "dbo.HMR_SUBMISSION_ROW_HIST" */ /* ---------------------------------------------------------------------- */ GO -- MODIFIED: data conversion DECLARE @utcdate DATETIME = (SELECT getutcdate() AS utcdate) DECLARE @app_guid UNIQUEIDENTIFIER = (SELECT CASE WHEN SUSER_SID() IS NOT NULL THEN SUSER_SID() ELSE (SELECT CONVERT(uniqueidentifier,STUFF(STUFF(STUFF(STUFF('B00D00A0AC0A0D0C00DD00F0D0C00000',9,0,'-'),14,0,'-'),19,0,'-'),24,0,'-'))) END AS app_guid) DECLARE @app_user VARCHAR(30) = (SELECT CASE WHEN SUBSTRING(SUSER_NAME(),CHARINDEX('\',SUSER_NAME())+1,LEN(SUSER_NAME())) IS NOT NULL THEN SUBSTRING(SUSER_NAME(),CHARINDEX('\',SUSER_NAME())+1,LEN(SUSER_NAME())) ELSE CURRENT_USER END AS app_user) DECLARE @app_user_dir VARCHAR(12) = (SELECT CASE WHEN LEN(SUBSTRING(SUSER_NAME(),0,CHARINDEX('\',SUSER_NAME(),0)))>1 THEN SUBSTRING(SUSER_NAME(),0,CHARINDEX('\',SUSER_NAME(),0)) ELSE 'WIN AUTH' END AS app_user_dir) UPDATE [dbo].[HMR_SUBMISSION_ROW_HIST] SET [IS_RESUBMITTED] = CASE IS_RESUBMITTED WHEN 'Y' THEN 1 WHEN 'N' THEN 0 ELSE 0 END ,[CONCURRENCY_CONTROL_NUMBER] = [CONCURRENCY_CONTROL_NUMBER]+1 GO ALTER TABLE [dbo].[HMR_SUBMISSION_ROW_HIST] ALTER COLUMN [IS_RESUBMITTED] BIT GO /* ---------------------------------------------------------------------- */ /* Alter table "dbo.HMR_SYSTEM_VALIDATION" */ /* ---------------------------------------------------------------------- */ GO -- MODIFIED: data conversion DECLARE @utcdate DATETIME = (SELECT getutcdate() AS utcdate) DECLARE @app_guid UNIQUEIDENTIFIER = (SELECT CASE WHEN SUSER_SID() IS NOT NULL THEN SUSER_SID() ELSE (SELECT CONVERT(uniqueidentifier,STUFF(STUFF(STUFF(STUFF('B00D00A0AC0A0D0C00DD00F0D0C00000',9,0,'-'),14,0,'-'),19,0,'-'),24,0,'-'))) END AS app_guid) DECLARE @app_user VARCHAR(30) = (SELECT CASE WHEN SUBSTRING(SUSER_NAME(),CHARINDEX('\',SUSER_NAME())+1,LEN(SUSER_NAME())) IS NOT NULL THEN SUBSTRING(SUSER_NAME(),CHARINDEX('\',SUSER_NAME())+1,LEN(SUSER_NAME())) ELSE CURRENT_USER END AS app_user) DECLARE @app_user_dir VARCHAR(12) = (SELECT CASE WHEN LEN(SUBSTRING(SUSER_NAME(),0,CHARINDEX('\',SUSER_NAME(),0)))>1 THEN SUBSTRING(SUSER_NAME(),0,CHARINDEX('\',SUSER_NAME(),0)) ELSE 'WIN AUTH' END AS app_user_dir) UPDATE [dbo].[HMR_SYSTEM_VALIDATION] SET [IS_REQUIRED] = CASE IS_REQUIRED WHEN 'Y' THEN 1 WHEN 'N' THEN 0 ELSE 0 END ,[CONCURRENCY_CONTROL_NUMBER] = [CONCURRENCY_CONTROL_NUMBER]+1 GO ALTER TABLE [dbo].[HMR_SYSTEM_VALIDATION] ALTER COLUMN [IS_REQUIRED] BIT GO /* ---------------------------------------------------------------------- */ /* Add foreign key constraints */ /* ---------------------------------------------------------------------- */ GO ALTER TABLE [dbo].[HMR_SUBMISSION_ROW] ADD CONSTRAINT [HMR_SUBM_RW_SUBM_STAT_FK] FOREIGN KEY ([ROW_STATUS_ID]) REFERENCES [dbo].[HMR_SUBMISSION_STATUS] ([STATUS_ID]) GO ALTER TABLE [dbo].[HMR_SUBMISSION_ROW] ADD CONSTRAINT [HMR_SUBM_RW_HMR_SUBM_OBJ_FK] FOREIGN KEY ([SUBMISSION_OBJECT_ID]) REFERENCES [dbo].[HMR_SUBMISSION_OBJECT] ([SUBMISSION_OBJECT_ID]) GO
<gh_stars>10-100 CREATE OR REPLACE PACKAGE BODY teplsql_hello_world IS /* * Copyright 2015 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ -- -- private declarations -- g_start_time TIMESTAMP(6) := SYSTIMESTAMP; co_newline CONSTANT oddgen_types.value_type := chr(10); -- -- get_runtime -- FUNCTION get_runtime RETURN NUMBER IS l_stmt CLOB; l_runtime INTERVAL DAY TO SECOND(6); l_millis NUMBER; BEGIN l_runtime := systimestamp - g_start_time; l_millis := (extract(second from l_runtime) + extract(minute from l_runtime) * 60 + extract(hour from l_runtime) * 60 * 60 + extract(day from l_runtime) * 24 * 60 * 60) * 1000; RETURN l_millis; END get_runtime; -- -- get_name -- FUNCTION get_name RETURN VARCHAR2 IS BEGIN RETURN 'Hello World'; END get_name; -- -- get_folders -- FUNCTION get_folders RETURN oddgen_types.t_value_type IS BEGIN RETURN NEW oddgen_types.t_value_type('Examples', 'PL/SQL (tePLSQL)'); END get_folders; -- -- get_nodes -- FUNCTION get_nodes( in_parent_node_id IN oddgen_types.key_type DEFAULT NULL ) RETURN oddgen_types.t_node_type IS t_nodes oddgen_types.t_node_type := oddgen_types.t_node_type(); -- PROCEDURE add_node ( in_id IN oddgen_types.key_type, in_parent_id IN oddgen_types.key_type, in_leaf IN INTEGER ) IS l_node oddgen_types.r_node_type; BEGIN l_node.id := in_id; l_node.parent_id := in_parent_id; l_node.leaf := in_leaf = 1; l_node.generatable := TRUE; l_node.multiselectable := TRUE; t_nodes.extend; t_nodes(t_nodes.count) := l_node; END add_node; BEGIN -- load all objects eagerly <<objects>> FOR r IN ( SELECT 'TABLE' AS id, NULL AS parent_id, 0 AS leaf FROM dual UNION ALL SELECT 'VIEW' AS id, NULL AS parent_id, 0 AS leaf FROM dual UNION ALL SELECT object_type || '.' || object_name AS id, object_type AS parent_id, 1 AS leaf FROM dba_objects WHERE object_type IN ('TABLE', 'VIEW') AND owner = USER AND generated = 'N' ) LOOP add_node( in_id => r.id, in_parent_id => r.parent_id, in_leaf => r.leaf ); END LOOP objects; RETURN t_nodes; END get_nodes; -- -- generate_prolog -- FUNCTION generate_prolog( in_nodes IN oddgen_types.t_node_type ) RETURN CLOB is l_result CLOB; l_template CLOB; l_vars teplsql.t_assoc_array; BEGIN g_start_time := SYSTIMESTAMP; l_template := q'[BEGIN -- ${node_count} nodes selected. <% IF ${node_count} = 0 THEN %> NULL; <% END IF; %> ]'; l_vars('node_count') := in_nodes.count; l_result := teplsql.render( p_vars => l_vars, p_template => l_template ); RETURN l_result; END generate_prolog; -- -- generate_separator -- FUNCTION generate_separator RETURN VARCHAR2 IS BEGIN RETURN NULL; END generate_separator; -- -- generate_epilog -- FUNCTION generate_epilog( in_nodes IN oddgen_types.t_node_type ) RETURN CLOB IS l_template CLOB; l_result CLOB; l_vars teplsql.t_assoc_array; BEGIN -- use <%='/'%> instead of plain slash (/) to ensure that IDEs such as PL/SQL Developer do not interpret it as command terminator l_template := q'[ -- ${node_count} nodes generated in <%= to_char(${runtime},'FM999990.000') %> ms. END; <%='/'%>\\n ]'; l_vars('node_count') := in_nodes.count; l_vars('runtime') := get_runtime; l_result := teplsql.render( p_vars => l_vars, p_template => l_template ); RETURN l_result; END generate_epilog; -- -- generate -- FUNCTION generate( in_node IN oddgen_types.r_node_type ) RETURN CLOB IS l_vars teplsql.t_assoc_array; l_template CLOB; l_result CLOB; BEGIN l_template := q'[ sys.dbms_output.put_line('Hello ${object_type} ${object_name}!');]'; l_vars('object_type') := in_node.parent_id; l_vars('object_name') := regexp_substr(in_node.id, '[^\.]+', 1, 2); l_result := teplsql.render( p_vars => l_vars, p_template => l_template ); RETURN l_result; END generate; END teplsql_hello_world; /
<filename>googlephoto.sql -- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th6 05, 2019 lúc 11:40 AM -- Phiên bản máy phục vụ: 10.1.33-MariaDB -- Phiên bản PHP: 7.2.6 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 */; -- -- Cơ sở dữ liệu: `googlephoto` -- -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `album` -- CREATE TABLE `album` ( `album_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `album_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `deleted` int(1) DEFAULT '0', `date_create` datetime NOT NULL, `date_update` datetime NOT NULL, `status` int(1) DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `album_image` -- CREATE TABLE `album_image` ( `album_img_id` int(11) NOT NULL, `album_id` int(11) DEFAULT NULL, `image_id` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `image` -- CREATE TABLE `image` ( `image_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `image` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `path_image` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `location` text COLLATE utf8_unicode_ci, `date_create` datetime DEFAULT NULL, `date_update` datetime DEFAULT NULL, `deleted` int(1) DEFAULT '0', `wistlist` int(1) DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Đang đổ dữ liệu cho bảng `image` -- INSERT INTO `image` (`image_id`, `user_id`, `image`, `path_image`, `description`, `location`, `date_create`, `date_update`, `deleted`, `wistlist`) VALUES (4, 3, 'Capture1.png', 'uploads/cf81bc44599fcd8b749efd66e619b067.png', NULL, NULL, '2019-06-05 15:53:10', '2019-06-05 15:53:10', 0, 0), (5, 3, 'Capture1.png', 'uploads/cf81bc44599fcd8b749efd66e619b067.png', NULL, NULL, '2019-06-05 16:16:30', '2019-06-05 16:16:30', 0, 0), (6, 3, 'ss.png', 'uploads/3691308f2a4c2f6983f2880d32e29c84.png', NULL, NULL, '2019-06-05 16:25:00', '2019-06-05 16:25:00', 0, 0), (7, 3, 'ss.png', 'uploads/3691308f2a4c2f6983f2880d32e29c84.png', NULL, NULL, '2019-06-05 16:25:07', '2019-06-05 16:25:07', 0, 0), (8, 3, 'Screenshot (1).png', 'uploads/f3fe70a563ff280e6f587f0b345a64e3.png', NULL, NULL, '2019-06-05 16:28:16', '2019-06-05 16:28:16', 0, 0), (9, 3, 'Screenshot (1).png', 'uploads/f3fe70a563ff280e6f587f0b345a64e3.png', NULL, NULL, '2019-06-05 16:28:20', '2019-06-05 16:28:20', 0, 0), (10, 3, 'Screenshot (1).png', 'uploads/f3fe70a563ff280e6f587f0b345a64e3.png', NULL, NULL, '2019-06-05 16:28:25', '2019-06-05 16:28:25', 0, 0), (11, 3, 'Screenshot (2).png', 'uploads/917381c4c61c9230932e7dd30edad64e.png', NULL, NULL, '2019-06-05 16:30:10', '2019-06-05 16:30:10', 0, 0), (12, 3, 'Screenshot (3).png', 'uploads/32203d44568d32b486b1d4fef9e0df4a.png', NULL, NULL, '2019-06-05 16:30:35', '2019-06-05 16:30:35', 0, 0), (13, 3, 'Screenshot (4).png', 'uploads/b7622b34ac854cf258ea578af51b3d1a.png', NULL, NULL, '2019-06-05 16:32:38', '2019-06-05 16:32:38', 0, 0), (14, 3, 'Screenshot (32).png', 'uploads/7ac056ac27ba8af284d3061fb8d2e8ad.png', NULL, NULL, '2019-06-05 16:34:05', '2019-06-05 16:34:05', 0, 0), (15, 3, 'Screenshot (3).png', 'uploads/32203d44568d32b486b1d4fef9e0df4a.png', NULL, NULL, '2019-06-05 16:37:16', '2019-06-05 16:37:16', 0, 0), (16, 3, 'Screenshot (1).png', 'uploads/f3fe70a563ff280e6f587f0b345a64e3.png', NULL, NULL, '2019-06-05 16:37:53', '2019-06-05 16:37:53', 0, 0), (17, 3, 'Screenshot (2).png', 'uploads/917381c4c61c9230932e7dd30edad64e.png', NULL, NULL, '2019-06-05 16:39:23', '2019-06-05 16:39:23', 0, 0), (18, 3, 'Screenshot (3).png', 'uploads/32203d44568d32b486b1d4fef9e0df4a.png', NULL, NULL, '2019-06-05 16:39:23', '2019-06-05 16:39:23', 0, 0), (19, 3, 'Screenshot (4).png', 'uploads/b7622b34ac854cf258ea578af51b3d1a.png', NULL, NULL, '2019-06-05 16:39:23', '2019-06-05 16:39:23', 0, 0); -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `migration` -- CREATE TABLE `migration` ( `version` varchar(180) COLLATE utf8_unicode_ci NOT NULL, `apply_time` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Đang đổ dữ liệu cho bảng `migration` -- INSERT INTO `migration` (`version`, `apply_time`) VALUES ('m000000_000000_base', 1559721028), ('m130524_201442_init', 1559721030), ('m190124_110200_add_verification_token_column_to_user_table', 1559721030); -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `share` -- CREATE TABLE `share` ( `share_id` int(11) NOT NULL, `user_id` int(11) DEFAULT NULL, `title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `slug` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `link` text COLLATE utf8_unicode_ci, `status` int(11) DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Cấu trúc bảng cho bảng `user` -- CREATE TABLE `user` ( `id` int(11) NOT NULL, `fullname` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `username` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `auth_key` varchar(32) COLLATE utf8_unicode_ci NOT NULL, `password_hash` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `password_reset_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `status` smallint(6) DEFAULT '10', `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `verification_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Đang đổ dữ liệu cho bảng `user` -- INSERT INTO `user` (`id`, `fullname`, `username`, `email`, `auth_key`, `password_hash`, `password_reset_token`, `status`, `created_at`, `updated_at`, `verification_token`) VALUES (3, '<NAME>', 'canhdinh', '<EMAIL>', 'BhXN-f-q<PASSWORD>MR--IO<PASSWORD>ckh', '$<PASSWORD>', NULL, 1, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 'u54Qeubdmzq8xvQhkzToICwxVt-3tTK9_1559721785'); -- -- Chỉ mục cho các bảng đã đổ -- -- -- Chỉ mục cho bảng `album` -- ALTER TABLE `album` ADD PRIMARY KEY (`album_id`), ADD KEY `user_id` (`user_id`); -- -- Chỉ mục cho bảng `album_image` -- ALTER TABLE `album_image` ADD PRIMARY KEY (`album_img_id`), ADD KEY `album_id` (`album_id`), ADD KEY `image_id` (`image_id`); -- -- Chỉ mục cho bảng `image` -- ALTER TABLE `image` ADD PRIMARY KEY (`image_id`), ADD KEY `user_id` (`user_id`); -- -- Chỉ mục cho bảng `migration` -- ALTER TABLE `migration` ADD PRIMARY KEY (`version`); -- -- Chỉ mục cho bảng `share` -- ALTER TABLE `share` ADD KEY `user_id` (`user_id`); -- -- Chỉ mục cho bảng `user` -- ALTER TABLE `user` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `username` (`username`), ADD UNIQUE KEY `password_reset_token` (`<PASSWORD>`); -- -- AUTO_INCREMENT cho các bảng đã đổ -- -- -- AUTO_INCREMENT cho bảng `album_image` -- ALTER TABLE `album_image` MODIFY `album_img_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT cho bảng `image` -- ALTER TABLE `image` MODIFY `image_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=20; -- -- AUTO_INCREMENT cho bảng `user` -- ALTER TABLE `user` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- Các ràng buộc cho các bảng đã đổ -- -- -- Các ràng buộc cho bảng `album` -- ALTER TABLE `album` ADD CONSTRAINT `album_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`); -- -- Các ràng buộc cho bảng `album_image` -- ALTER TABLE `album_image` ADD CONSTRAINT `album_image_ibfk_1` FOREIGN KEY (`album_id`) REFERENCES `album` (`album_id`), ADD CONSTRAINT `album_image_ibfk_2` FOREIGN KEY (`image_id`) REFERENCES `image` (`image_id`); -- -- Các ràng buộc cho bảng `image` -- ALTER TABLE `image` ADD CONSTRAINT `use_id_frk` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`); -- -- Các ràng buộc cho bảng `share` -- ALTER TABLE `share` ADD CONSTRAINT `share_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>0 CREATE TABLE IF NOT EXISTS `project` ( `index` INTEGER NOT NULL AUTO_INCREMENT, `time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `id` VARCHAR(255), `title` VARCHAR(255), `root` VARCHAR(255), `db` VARCHAR(255), `state` VARCHAR(50), PRIMARY KEY(`index`) ) ENGINE=MyISAM DEFAULT CHARACTER SET=utf8; -- Copyright (c) 2009 www.cryer.co.uk -- Script is free to use provided this copyright header is included. DROP PROCEDURE IF EXISTS AddColumnUnlessExists; CREATE PROCEDURE AddColumnUnlessExists( IN dbName tinytext, IN tableName tinytext, IN fieldName tinytext, IN fieldDef text) BEGIN IF NOT EXISTS ( SELECT * FROM information_schema.COLUMNS WHERE column_name=fieldName and table_name=tableName and table_schema=dbName ) THEN SET @ddl=CONCAT('ALTER TABLE ',dbName,'.',tableName,' ADD COLUMN ',fieldName,' ',fieldDef); -- x prepare stmt from @ddl; -- x execute stmt; -- x END IF; -- x END; -- ADD COLUMN note!!! CALL AddColumnUnlessExists('mass_projects', 'project', 'note', 'VARCHAR(255) DEFAULT ""');
<reponame>patrickmestebeld/psider-iac CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" ( "MigrationId" character varying(150) NOT NULL, "ProductVersion" character varying(32) NOT NULL, CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId") ); START TRANSACTION; CREATE TABLE "AspNetRoles" ( "Id" text NOT NULL, "Name" character varying(256) NULL, "NormalizedName" character varying(256) NULL, "ConcurrencyStamp" text NULL, CONSTRAINT "PK_AspNetRoles" PRIMARY KEY ("Id") ); CREATE TABLE "AspNetUsers" ( "Id" text NOT NULL, "UserName" character varying(256) NULL, "NormalizedUserName" character varying(256) NULL, "Email" character varying(256) NULL, "NormalizedEmail" character varying(256) NULL, "EmailConfirmed" boolean NOT NULL, "PasswordHash" text NULL, "SecurityStamp" text NULL, "ConcurrencyStamp" text NULL, "PhoneNumber" text NULL, "PhoneNumberConfirmed" boolean NOT NULL, "TwoFactorEnabled" boolean NOT NULL, "LockoutEnd" timestamp with time zone NULL, "LockoutEnabled" boolean NOT NULL, "AccessFailedCount" integer NOT NULL, CONSTRAINT "PK_AspNetUsers" PRIMARY KEY ("Id") ); CREATE TABLE "DeviceCodes" ( "UserCode" character varying(200) NOT NULL, "DeviceCode" character varying(200) NOT NULL, "SubjectId" character varying(200) NULL, "SessionId" character varying(100) NULL, "ClientId" character varying(200) NOT NULL, "Description" character varying(200) NULL, "CreationTime" timestamp without time zone NOT NULL, "Expiration" timestamp without time zone NOT NULL, "Data" character varying(50000) NOT NULL, CONSTRAINT "PK_DeviceCodes" PRIMARY KEY ("UserCode") ); CREATE TABLE "PersistedGrants" ( "Key" character varying(200) NOT NULL, "Type" character varying(50) NOT NULL, "SubjectId" character varying(200) NULL, "SessionId" character varying(100) NULL, "ClientId" character varying(200) NOT NULL, "Description" character varying(200) NULL, "CreationTime" timestamp without time zone NOT NULL, "Expiration" timestamp without time zone NULL, "ConsumedTime" timestamp without time zone NULL, "Data" character varying(50000) NOT NULL, CONSTRAINT "PK_PersistedGrants" PRIMARY KEY ("Key") ); CREATE TABLE "AspNetRoleClaims" ( "Id" integer NOT NULL GENERATED BY DEFAULT AS IDENTITY, "RoleId" text NOT NULL, "ClaimType" text NULL, "ClaimValue" text NULL, CONSTRAINT "PK_AspNetRoleClaims" PRIMARY KEY ("Id"), CONSTRAINT "FK_AspNetRoleClaims_AspNetRoles_RoleId" FOREIGN KEY ("RoleId") REFERENCES "AspNetRoles" ("Id") ON DELETE CASCADE ); CREATE TABLE "AspNetUserClaims" ( "Id" integer NOT NULL GENERATED BY DEFAULT AS IDENTITY, "UserId" text NOT NULL, "ClaimType" text NULL, "ClaimValue" text NULL, CONSTRAINT "PK_AspNetUserClaims" PRIMARY KEY ("Id"), CONSTRAINT "FK_AspNetUserClaims_AspNetUsers_UserId" FOREIGN KEY ("UserId") REFERENCES "AspNetUsers" ("Id") ON DELETE CASCADE ); CREATE TABLE "AspNetUserLogins" ( "LoginProvider" character varying(128) NOT NULL, "ProviderKey" character varying(128) NOT NULL, "ProviderDisplayName" text NULL, "UserId" text NOT NULL, CONSTRAINT "PK_AspNetUserLogins" PRIMARY KEY ("LoginProvider", "ProviderKey"), CONSTRAINT "FK_AspNetUserLogins_AspNetUsers_UserId" FOREIGN KEY ("UserId") REFERENCES "AspNetUsers" ("Id") ON DELETE CASCADE ); CREATE TABLE "AspNetUserRoles" ( "UserId" text NOT NULL, "RoleId" text NOT NULL, CONSTRAINT "PK_AspNetUserRoles" PRIMARY KEY ("UserId", "RoleId"), CONSTRAINT "FK_AspNetUserRoles_AspNetRoles_RoleId" FOREIGN KEY ("RoleId") REFERENCES "AspNetRoles" ("Id") ON DELETE CASCADE, CONSTRAINT "FK_AspNetUserRoles_AspNetUsers_UserId" FOREIGN KEY ("UserId") REFERENCES "AspNetUsers" ("Id") ON DELETE CASCADE ); CREATE TABLE "AspNetUserTokens" ( "UserId" text NOT NULL, "LoginProvider" character varying(128) NOT NULL, "Name" character varying(128) NOT NULL, "Value" text NULL, CONSTRAINT "PK_AspNetUserTokens" PRIMARY KEY ("UserId", "LoginProvider", "Name"), CONSTRAINT "FK_AspNetUserTokens_AspNetUsers_UserId" FOREIGN KEY ("UserId") REFERENCES "AspNetUsers" ("Id") ON DELETE CASCADE ); CREATE INDEX "IX_AspNetRoleClaims_RoleId" ON "AspNetRoleClaims" ("RoleId"); CREATE UNIQUE INDEX "RoleNameIndex" ON "AspNetRoles" ("NormalizedName"); CREATE INDEX "IX_AspNetUserClaims_UserId" ON "AspNetUserClaims" ("UserId"); CREATE INDEX "IX_AspNetUserLogins_UserId" ON "AspNetUserLogins" ("UserId"); CREATE INDEX "IX_AspNetUserRoles_RoleId" ON "AspNetUserRoles" ("RoleId"); CREATE INDEX "EmailIndex" ON "AspNetUsers" ("NormalizedEmail"); CREATE UNIQUE INDEX "UserNameIndex" ON "AspNetUsers" ("NormalizedUserName"); CREATE UNIQUE INDEX "IX_DeviceCodes_DeviceCode" ON "DeviceCodes" ("DeviceCode"); CREATE INDEX "IX_DeviceCodes_Expiration" ON "DeviceCodes" ("Expiration"); CREATE INDEX "IX_PersistedGrants_Expiration" ON "PersistedGrants" ("Expiration"); CREATE INDEX "IX_PersistedGrants_SubjectId_ClientId_Type" ON "PersistedGrants" ("SubjectId", "ClientId", "Type"); CREATE INDEX "IX_PersistedGrants_SubjectId_SessionId_Type" ON "PersistedGrants" ("SubjectId", "SessionId", "Type"); INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion") VALUES ('20210410142758_CreateIdentitySchema', '5.0.9'); COMMIT; START TRANSACTION; CREATE TABLE "PsiderPageData" ( "Id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, "Slug" text NOT NULL, "Title" text NOT NULL, "Published" boolean NOT NULL, "CreatedAt" timestamp without time zone NOT NULL, "ModifiedAt" timestamp without time zone NOT NULL, "Content" jsonb NULL, CONSTRAINT "PK_PsiderPageData" PRIMARY KEY ("Id") ); INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion") VALUES ('20210410142842_CreatePageDataSchema', '5.0.9'); COMMIT; START TRANSACTION; CREATE TABLE "PsiderMediaData" ( "Id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY, "Title" text NOT NULL, "Extension" text NOT NULL, "CreatedAt" timestamp without time zone NOT NULL, CONSTRAINT "PK_PsiderMediaData" PRIMARY KEY ("Id") ); INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion") VALUES ('20210410143012_CreateMediaDataSchema', '5.0.9'); COMMIT;
-- -- PostgreSQL database dump -- -- Dumped from database version 13.3 -- Dumped by pg_dump version 13.3 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; -- -- Name: ctgov; Type: SCHEMA; Schema: -; Owner: - -- CREATE SCHEMA ctgov; SET default_tablespace = ''; SET default_table_access_method = heap; -- -- Name: attachments; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.attachments ( id integer NOT NULL, project_id integer, file_name character varying, content_type character varying, file_contents bytea, is_image boolean, description text, source text, original_file_name character varying, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: attachments_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.attachments_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.attachments_id_seq OWNED BY ctgov.attachments.id; -- -- Name: data_definitions; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.data_definitions ( id integer NOT NULL, db_section character varying, table_name character varying, column_name character varying, data_type character varying, source character varying, ctti_note text, nlm_link character varying, row_count integer, enumerations json, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, db_schema character varying ); -- -- Name: data_definitions_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.data_definitions_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: data_definitions_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.data_definitions_id_seq OWNED BY ctgov.data_definitions.id; -- -- Name: datasets; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.datasets ( id integer NOT NULL, project_id integer, schema_name character varying, table_name character varying, dataset_type character varying, file_name character varying, content_type character varying, name character varying, file_contents bytea, url character varying, made_available_on date, description text, source text, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: datasets_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.datasets_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: datasets_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.datasets_id_seq OWNED BY ctgov.datasets.id; -- -- Name: db_user_activities; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.db_user_activities ( id integer NOT NULL, username character varying, event_count integer, when_recorded timestamp without time zone, unit_of_time character varying, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: db_user_activities_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.db_user_activities_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: db_user_activities_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.db_user_activities_id_seq OWNED BY ctgov.db_user_activities.id; -- -- Name: enumerations; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.enumerations ( id integer NOT NULL, table_name character varying, column_name character varying, column_value character varying, value_count integer, value_percent numeric, description character varying, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: enumerations_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.enumerations_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: enumerations_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.enumerations_id_seq OWNED BY ctgov.enumerations.id; -- -- Name: faqs; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.faqs ( id integer NOT NULL, project_id integer, question character varying, answer text, citation character varying, url character varying, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: faqs_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.faqs_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: faqs_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.faqs_id_seq OWNED BY ctgov.faqs.id; -- -- Name: health_checks; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.health_checks ( id integer NOT NULL, query text, cost character varying, actual_time double precision, row_count integer, description character varying, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: health_checks_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.health_checks_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: health_checks_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.health_checks_id_seq OWNED BY ctgov.health_checks.id; -- -- Name: projects; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.projects ( id integer NOT NULL, status character varying, start_date date, completion_date date, schema_name character varying, data_available boolean, migration_file_name character varying, name character varying, year integer, aact_version character varying, brief_summary character varying, investigators character varying, organizations character varying, url character varying, description text, protocol text, issues text, study_selection_criteria text, submitter_name character varying, contact_info character varying, contact_url character varying, email character varying, image bytea, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: projects_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.projects_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: projects_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.projects_id_seq OWNED BY ctgov.projects.id; -- -- Name: public_announcements; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.public_announcements ( id integer NOT NULL, description character varying, is_sticky boolean ); -- -- Name: public_announcements_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.public_announcements_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: public_announcements_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.public_announcements_id_seq OWNED BY ctgov.public_announcements.id; -- -- Name: publications; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.publications ( id integer NOT NULL, project_id integer, pub_type character varying, journal_name character varying, title character varying, url character varying, citation character varying, pmid character varying, pmcid character varying, doi character varying, publication_date date, abstract text, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: publications_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.publications_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: publications_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.publications_id_seq OWNED BY ctgov.publications.id; -- -- Name: schema_migrations; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.schema_migrations ( version character varying NOT NULL ); -- -- Name: use_case_attachments; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.use_case_attachments ( id integer NOT NULL, use_case_id integer, file_name character varying, content_type character varying, file_contents bytea, is_image boolean, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: use_case_attachments_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.use_case_attachments_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: use_case_attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.use_case_attachments_id_seq OWNED BY ctgov.use_case_attachments.id; -- -- Name: use_case_datasets; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.use_case_datasets ( id integer NOT NULL, use_case_id integer, dataset_type character varying, name character varying, description text ); -- -- Name: use_case_datasets_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.use_case_datasets_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: use_case_datasets_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.use_case_datasets_id_seq OWNED BY ctgov.use_case_datasets.id; -- -- Name: use_case_publications; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.use_case_publications ( id integer NOT NULL, use_case_id integer, name character varying, url character varying ); -- -- Name: use_case_publications_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.use_case_publications_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: use_case_publications_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.use_case_publications_id_seq OWNED BY ctgov.use_case_publications.id; -- -- Name: use_cases; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.use_cases ( id integer NOT NULL, status character varying, completion_date date, title character varying, year integer, brief_summary character varying, investigators character varying, organizations character varying, url character varying, detailed_description text, protocol text, issues text, study_selection_criteria text, submitter_name character varying, contact_info character varying, email character varying, image bytea, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: use_cases_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.use_cases_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: use_cases_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.use_cases_id_seq OWNED BY ctgov.use_cases.id; -- -- Name: user_events; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.user_events ( id integer NOT NULL, email character varying, event_type character varying, description text, file_names character varying, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -- -- Name: user_events_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.user_events_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: user_events_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.user_events_id_seq OWNED BY ctgov.user_events.id; -- -- Name: users; Type: TABLE; Schema: ctgov; Owner: - -- CREATE TABLE ctgov.users ( id integer NOT NULL, email character varying DEFAULT ''::character varying NOT NULL, encrypted_password character varying DEFAULT ''::character varying NOT NULL, reset_password_token character varying, reset_password_sent_at timestamp without time zone, remember_created_at timestamp without time zone, sign_in_count integer DEFAULT 0 NOT NULL, current_sign_in_at timestamp without time zone, last_sign_in_at timestamp without time zone, current_sign_in_ip character varying, last_sign_in_ip character varying, first_name character varying, last_name character varying, username character varying, confirmation_token character varying, confirmed_at timestamp without time zone, confirmation_sent_at timestamp without time zone, db_activity integer, last_db_activity timestamp without time zone ); -- -- Name: users_id_seq; Type: SEQUENCE; Schema: ctgov; Owner: - -- CREATE SEQUENCE ctgov.users_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -- -- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: ctgov; Owner: - -- ALTER SEQUENCE ctgov.users_id_seq OWNED BY ctgov.users.id; -- -- Name: attachments id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.attachments ALTER COLUMN id SET DEFAULT nextval('ctgov.attachments_id_seq'::regclass); -- -- Name: data_definitions id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.data_definitions ALTER COLUMN id SET DEFAULT nextval('ctgov.data_definitions_id_seq'::regclass); -- -- Name: datasets id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.datasets ALTER COLUMN id SET DEFAULT nextval('ctgov.datasets_id_seq'::regclass); -- -- Name: db_user_activities id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.db_user_activities ALTER COLUMN id SET DEFAULT nextval('ctgov.db_user_activities_id_seq'::regclass); -- -- Name: enumerations id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.enumerations ALTER COLUMN id SET DEFAULT nextval('ctgov.enumerations_id_seq'::regclass); -- -- Name: faqs id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.faqs ALTER COLUMN id SET DEFAULT nextval('ctgov.faqs_id_seq'::regclass); -- -- Name: health_checks id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.health_checks ALTER COLUMN id SET DEFAULT nextval('ctgov.health_checks_id_seq'::regclass); -- -- Name: projects id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.projects ALTER COLUMN id SET DEFAULT nextval('ctgov.projects_id_seq'::regclass); -- -- Name: public_announcements id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.public_announcements ALTER COLUMN id SET DEFAULT nextval('ctgov.public_announcements_id_seq'::regclass); -- -- Name: publications id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.publications ALTER COLUMN id SET DEFAULT nextval('ctgov.publications_id_seq'::regclass); -- -- Name: use_case_attachments id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.use_case_attachments ALTER COLUMN id SET DEFAULT nextval('ctgov.use_case_attachments_id_seq'::regclass); -- -- Name: use_case_datasets id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.use_case_datasets ALTER COLUMN id SET DEFAULT nextval('ctgov.use_case_datasets_id_seq'::regclass); -- -- Name: use_case_publications id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.use_case_publications ALTER COLUMN id SET DEFAULT nextval('ctgov.use_case_publications_id_seq'::regclass); -- -- Name: use_cases id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.use_cases ALTER COLUMN id SET DEFAULT nextval('ctgov.use_cases_id_seq'::regclass); -- -- Name: user_events id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.user_events ALTER COLUMN id SET DEFAULT nextval('ctgov.user_events_id_seq'::regclass); -- -- Name: users id; Type: DEFAULT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.users ALTER COLUMN id SET DEFAULT nextval('ctgov.users_id_seq'::regclass); -- -- Name: attachments attachments_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.attachments ADD CONSTRAINT attachments_pkey PRIMARY KEY (id); -- -- Name: data_definitions data_definitions_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.data_definitions ADD CONSTRAINT data_definitions_pkey PRIMARY KEY (id); -- -- Name: datasets datasets_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.datasets ADD CONSTRAINT datasets_pkey PRIMARY KEY (id); -- -- Name: db_user_activities db_user_activities_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.db_user_activities ADD CONSTRAINT db_user_activities_pkey PRIMARY KEY (id); -- -- Name: enumerations enumerations_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.enumerations ADD CONSTRAINT enumerations_pkey PRIMARY KEY (id); -- -- Name: faqs faqs_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.faqs ADD CONSTRAINT faqs_pkey PRIMARY KEY (id); -- -- Name: health_checks health_checks_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.health_checks ADD CONSTRAINT health_checks_pkey PRIMARY KEY (id); -- -- Name: projects projects_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.projects ADD CONSTRAINT projects_pkey PRIMARY KEY (id); -- -- Name: public_announcements public_announcements_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.public_announcements ADD CONSTRAINT public_announcements_pkey PRIMARY KEY (id); -- -- Name: publications publications_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.publications ADD CONSTRAINT publications_pkey PRIMARY KEY (id); -- -- Name: use_case_attachments use_case_attachments_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.use_case_attachments ADD CONSTRAINT use_case_attachments_pkey PRIMARY KEY (id); -- -- Name: use_case_datasets use_case_datasets_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.use_case_datasets ADD CONSTRAINT use_case_datasets_pkey PRIMARY KEY (id); -- -- Name: use_case_publications use_case_publications_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.use_case_publications ADD CONSTRAINT use_case_publications_pkey PRIMARY KEY (id); -- -- Name: use_cases use_cases_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.use_cases ADD CONSTRAINT use_cases_pkey PRIMARY KEY (id); -- -- Name: user_events user_events_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.user_events ADD CONSTRAINT user_events_pkey PRIMARY KEY (id); -- -- Name: users users_pkey; Type: CONSTRAINT; Schema: ctgov; Owner: - -- ALTER TABLE ONLY ctgov.users ADD CONSTRAINT users_pkey PRIMARY KEY (id); -- -- Name: index_ctgov.use_case_datasets_on_dataset_type; Type: INDEX; Schema: ctgov; Owner: - -- CREATE INDEX "index_ctgov.use_case_datasets_on_dataset_type" ON ctgov.use_case_datasets USING btree (dataset_type); -- -- Name: index_ctgov.use_case_datasets_on_name; Type: INDEX; Schema: ctgov; Owner: - -- CREATE INDEX "index_ctgov.use_case_datasets_on_name" ON ctgov.use_case_datasets USING btree (name); -- -- Name: index_ctgov.use_cases_on_completion_date; Type: INDEX; Schema: ctgov; Owner: - -- CREATE INDEX "index_ctgov.use_cases_on_completion_date" ON ctgov.use_cases USING btree (completion_date); -- -- Name: index_ctgov.use_cases_on_organizations; Type: INDEX; Schema: ctgov; Owner: - -- CREATE INDEX "index_ctgov.use_cases_on_organizations" ON ctgov.use_cases USING btree (organizations); -- -- Name: index_ctgov.use_cases_on_year; Type: INDEX; Schema: ctgov; Owner: - -- CREATE INDEX "index_ctgov.use_cases_on_year" ON ctgov.use_cases USING btree (year); -- -- Name: index_ctgov.users_on_confirmation_token; Type: INDEX; Schema: ctgov; Owner: - -- CREATE UNIQUE INDEX "index_ctgov.users_on_confirmation_token" ON ctgov.users USING btree (confirmation_token); -- -- Name: index_ctgov.users_on_email; Type: INDEX; Schema: ctgov; Owner: - -- CREATE UNIQUE INDEX "index_ctgov.users_on_email" ON ctgov.users USING btree (email); -- -- Name: index_ctgov.users_on_reset_password_token; Type: INDEX; Schema: ctgov; Owner: - -- CREATE UNIQUE INDEX "index_ctgov.users_on_reset_password_token" ON ctgov.users USING btree (reset_password_token); -- -- Name: index_projects_on_completion_date; Type: INDEX; Schema: ctgov; Owner: - -- CREATE INDEX index_projects_on_completion_date ON ctgov.projects USING btree (completion_date); -- -- Name: index_projects_on_data_available; Type: INDEX; Schema: ctgov; Owner: - -- CREATE INDEX index_projects_on_data_available ON ctgov.projects USING btree (data_available); -- -- Name: index_projects_on_investigators; Type: INDEX; Schema: ctgov; Owner: - -- CREATE INDEX index_projects_on_investigators ON ctgov.projects USING btree (investigators); -- -- Name: index_projects_on_organizations; Type: INDEX; Schema: ctgov; Owner: - -- CREATE INDEX index_projects_on_organizations ON ctgov.projects USING btree (organizations); -- -- Name: index_projects_on_start_date; Type: INDEX; Schema: ctgov; Owner: - -- CREATE INDEX index_projects_on_start_date ON ctgov.projects USING btree (start_date); -- -- Name: index_projects_on_year; Type: INDEX; Schema: ctgov; Owner: - -- CREATE INDEX index_projects_on_year ON ctgov.projects USING btree (year); -- -- Name: unique_schema_migrations; Type: INDEX; Schema: ctgov; Owner: - -- CREATE UNIQUE INDEX unique_schema_migrations ON ctgov.schema_migrations USING btree (version); -- -- PostgreSQL database dump complete -- SET search_path TO ctgov, support, public; INSERT INTO schema_migrations (version) VALUES ('20160214191640'); INSERT INTO schema_migrations (version) VALUES ('20160912000000'); INSERT INTO schema_migrations (version) VALUES ('20180226142044'); INSERT INTO schema_migrations (version) VALUES ('20180427144951'); INSERT INTO schema_migrations (version) VALUES ('20180813174540'); INSERT INTO schema_migrations (version) VALUES ('20181108174440'); INSERT INTO schema_migrations (version) VALUES ('20181208174440'); INSERT INTO schema_migrations (version) VALUES ('20190321174440');
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50720 Source Host : localhost:3306 Source Schema : test_manager Target Server Type : MySQL Target Server Version : 50720 File Encoding : 65001 Date: 27/03/2022 18:40:09 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for suites -- ---------------------------- DROP TABLE IF EXISTS `suites`; CREATE TABLE `suites` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '测试计划名称', `author` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '作者', `project` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '项目名', `create_time` datetime(6) DEFAULT NULL COMMENT '创建时间', `case_id` text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '关联的用例', `user_id` int(11) DEFAULT NULL COMMENT '用户', `update_time` datetime(6) DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 36 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; SET FOREIGN_KEY_CHECKS = 1;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 16, 2021 at 09:26 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.0 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: `vital` -- -- -------------------------------------------------------- -- -- Table structure for table `entry` -- CREATE TABLE `entry` ( `e_id` int(11) NOT NULL, `item_code` varchar(20) NOT NULL, `date` date NOT NULL, `quantity` int(11) NOT NULL, `u_id` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `entry` -- INSERT INTO `entry` (`e_id`, `item_code`, `date`, `quantity`, `u_id`) VALUES (1, '', '0000-00-00', 0, 0), (2, '33.22.11', '2021-01-15', 56, 0), (3, '10.12.12', '2200-04-04', 4, 0), (4, '10.12.12', '2021-01-21', 2, 1), (5, '10.12.12', '2021-01-02', 5, 1), (6, '10.12.12', '2021-01-09', -6, 1); -- -------------------------------------------------------- -- -- Table structure for table `item` -- CREATE TABLE `item` ( `i_id` int(11) NOT NULL, `item_code` varchar(20) NOT NULL, `item_description` varchar(20) NOT NULL, `casting_supplier` varchar(20) NOT NULL, `bpr_level` int(11) NOT NULL DEFAULT 0 ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `item` -- INSERT INTO `item` (`i_id`, `item_code`, `item_description`, `casting_supplier`, `bpr_level`) VALUES (5, '12.12.23.37', '<PASSWORD>', 'Rushigf', 4); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `u_id` int(11) NOT NULL, `username` varchar(30) NOT NULL, `password` varchar(100) NOT NULL, `access` int(11) NOT NULL DEFAULT 2, `date_created` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Dumping data for table `users` -- INSERT INTO `users` (`u_id`, `username`, `password`, `access`, `date_created`) VALUES (1, 'admin', '<PASSWORD>', 0, '2021-01-16 19:12:15'); -- -- Indexes for dumped tables -- -- -- Indexes for table `entry` -- ALTER TABLE `entry` ADD PRIMARY KEY (`e_id`); -- -- Indexes for table `item` -- ALTER TABLE `item` ADD PRIMARY KEY (`i_id`), ADD UNIQUE KEY `item_code` (`item_code`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`u_id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `entry` -- ALTER TABLE `entry` MODIFY `e_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `item` -- ALTER TABLE `item` MODIFY `i_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `u_id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<filename>Exemplo_MySQL.sql CREATE TABLE alunos (id INTEGER PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(255), data_nascimento DATE, cursos_id INTEGER); CREATE TABLE cursos (id INTEGER PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(255)); CREATE TABLE notas (id INTEGER PRIMARY KEY AUTO_INCREMENT, nota DECIMAL(3, 2), aluno_id INTEGER); CREATE TABLE habilidades (id INTEGER PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(255), nivel VARCHAR(255), aluno_id INTEGER); INSERT INTO alunos VALUES (1, "Felipe", "19940226"); SELECT * FROM alunos WHERE nome = "Felipe"; SELECT h.aluno_id FROM habilidades h JOIN alunos a ON (a.id = h.aluno_id) WHERE h.nome = "Inglês" AND a.nome = "Felipe"; UPDATE curso SET nome = "Sistemas de Informação" WHERE nome = "Sistema de Informação";
<filename>Trigger/kartu stok potong stok jika receive di void.sql<gh_stars>0 delimiter // create trigger trgreceiveheader_void after update on receive_header for each row begin declare done int(2); declare done2 int(2); declare Var_No_receive varchar(20); declare Var_tgl date; declare Var_Id_product int(11); declare Var_Id_variation int(11); declare Var_Expire_date date; declare Var_No_reference varchar(20); declare Var_First_stock int(11); declare Var_Debet int(11); declare Var_Debet_2 int(11); declare Var_Temp_Debet int(11); declare Var_Last_stock int(11); declare Var_Transaction_price int(11); declare Var_Capital int(11); declare Var_Fifo_stock int(11); declare Var_Stokawal int(11); declare Var_Stokakhir int(11); declare Var2_Id_stock_card int(11); declare Var2_Id_product int(11); declare Var2_Id_variation int(11); declare Var2_Expire_date date; declare Var2_Fifo_stock int(11); declare Var2_Temp_Debet int(11); declare receive_expire cursor for select receive_detail.No_receive, receive_detail.Purchase_price, receive_expire.No_receive_expire, receive_expire.Id_product, receive_expire.Id_variation, receive_expire.Qty, receive_expire.Expire_date from receive_expire, receive_detail where receive_expire.No_receive_detail = receive_detail.No_receive_detail and receive_detail.No_receive = old.No_receive; declare continue HANDLER for not found set done = 1; if old.Status = 2 and new.Status = 0 then BLOCK1: BEGIN set done = 0; open receive_expire; read_loop: loop Fetch receive_expire into Var_No_receive,Var_Transaction_price,Var_No_reference, Var_Id_product, Var_Id_variation, Var_Debet, Var_Expire_date; if done = 1 then leave read_loop; else set Var_Stokawal = (select stock from variation_product where Id_variation = Var_Id_variation); set Var_Stokakhir = Var_Stokawal - Var_Debet; update variation_product set Stock = Var_Stokakhir where Id_variation = Var_Id_variation; BLOCK2: BEGIN declare stock_card cursor for select stock_card.Id_stock_card, stock_card.Id_product, stock_card.Id_variation, stock_card.Expire_date, stock_card.Fifo_stock from stock_card where stock_card.Id_variation = Var_Id_variation and stock_card.Fifo_stock>0 and Var_Expire_date >= stock_card.Expire_date order by stock_card.Expire_date asc; declare continue HANDLER for not found set done2 = 1; set Var_Debet_2 = Var_Debet; open stock_card; read_loop: loop Fetch stock_card into Var2_Id_stock_card ,Var2_Id_product,Var2_Id_variation,Var2_Expire_date, Var2_Fifo_stock; if done2 = 1 then leave read_loop; else set Var2_Temp_Debet = Var_Debet_2 - Var2_Fifo_stock; if Var2_Temp_Debet=0 then update stock_card set Fifo_stock = 0 where Id_stock_card = Var2_Id_stock_card; done2 = 1; elseif Var2_Temp_Debet<0 then update stock_card set Fifo_stock = (Var2_Temp_Debet*-1) where Id_stock_card = Var2_Id_stock_card; done2 = 1; else update stock_card set Fifo_stock = 0 where Id_stock_card = Var2_Id_stock_card; set Var_Debet_2 = Var_Debet_2-Var2_Fifo_stock; end if; end if; end loop; close stock_card; END BLOCK2; end if; end loop; close receive_expire; END BLOCK1; end if; end;//
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 19, 2015 at 12:17 PM -- Server version: 5.6.24 -- PHP Version: 5.5.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 utf8 */; -- -- Database: `db_accounting` -- -- -------------------------------------------------------- -- -- Table structure for table `tb_account_groups` -- CREATE TABLE IF NOT EXISTS `tb_account_groups` ( `id` int(11) NOT NULL, `account_type` varchar(225) NOT NULL, `account_groupname` varchar(225) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=61 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_account_groups` -- INSERT INTO `tb_account_groups` (`id`, `account_type`, `account_groupname`) VALUES (11, 'Assets', 'Cash in Bank - Current Account'), (12, 'Assets', 'Cash in Bank - Dollar Account'), (13, 'Assets', 'Prepaid Expenses'), (14, 'Assets', 'Accounts Receivable'), (15, 'Assets', 'Advances of Employees'), (16, 'Assets', 'Advances of Officers'), (17, 'Assets', 'Security Deposit'), (18, 'Assets', 'Prepaid Rent'), (19, 'Liabilities', 'Accrued Salaries and Wages '), (20, 'Liabilities', 'Accounts Payable - Trade'), (21, 'Liabilities', 'Accounts Payble - Non Trade'), (22, 'Liabilities', 'Accounts Payable - Others'), (23, 'Liabilities', 'Employees Witholding Tax Payable '), (24, 'Liabilities', 'Accrued EI'), (25, 'Liabilities', 'Accrued Income Tax'), (26, 'Capital', 'Paid In Capital'), (27, 'Capital', 'Common Stock Class A'), (28, 'Capital', 'Unrealized Foreign Exchange Gain (Loss)'), (29, 'Capital', 'Tax Refunds'), (30, 'Capital', 'Income Tax Paid'), (31, 'Capital', 'Dividends Declared'), (32, 'Capital', 'Net Income (Loss)'), (33, 'Revenue', 'Service Revenue'), (34, 'Revenue', 'Interest Income'), (35, 'Expense', 'Rent Expenses'), (36, 'Expense', 'Salaries and Wages Expense'), (37, 'Expense', 'Travel Expenses'), (38, 'Expense', 'Hotel and Accomodation Expenses'), (39, 'Expense', 'Sales Expenses'), (40, 'Expense', 'Association Dues Expenses'), (41, 'Expense', 'Interest Expenses'), (42, 'Expense', 'Light and Water Expenses'), (43, 'Expense', 'Management Fee Expenses'), (44, 'Expense', 'Training Allowances'), (45, 'Expense', 'Gasoline and Oil Expenses'), (46, 'Expense', 'Miscellaneous Expenses'), (47, 'Expense', 'Representation Expenses'), (48, 'Expense', 'SSS Employer Share'), (49, 'Expense', 'Pag Ibig Employer Share'), (50, 'Expense', 'Philhealth Employer Share'), (51, 'Expense', 'Office Supplies Expenses'), (52, 'Expense', 'Professional Fees Expenses '), (53, 'Expense', 'Business Tax and Licenses'), (55, 'Assets', 'Cash on hand'), (56, 'Assets', 'Cash in Bank'), (57, 'Assets', 'Cash and Cash Equivalent'), (58, 'Liabilities', 'Saving Deposits'), (59, 'Liabilities', 'Time Deposits'), (60, 'Capital', 'Common Share Capital-Autorized'); -- -------------------------------------------------------- -- -- Table structure for table `tb_account_subsidiary` -- CREATE TABLE IF NOT EXISTS `tb_account_subsidiary` ( `sub_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `sub_date` varchar(255) NOT NULL, `account_code` int(11) NOT NULL, `account_title` varchar(255) NOT NULL, `account_type` varchar(255) NOT NULL, `sub_code` varchar(255) NOT NULL, `sub_name` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_account_subsidiary` -- INSERT INTO `tb_account_subsidiary` (`sub_id`, `project_id`, `sub_date`, `account_code`, `account_title`, `account_type`, `sub_code`, `sub_name`) VALUES (1, 2, '07/11/2015', 11130, 'Cash in Bank', 'Assets', '11130-11111-11111-11111', 'BDO - CURRENT ACCOUNT - 2868005848 '), (2, 2, '07/11/2015', 11130, 'Cash in Bank', 'Assets', '11130-11111-11112-11111', 'BDO - DOLLAR ILIGAN - 3120156870 '), (3, 2, '07/11/2015', 11130, 'Cash in Bank', 'Assets', '11130-11112-11113-11111', 'BANK OF THE PHILIPPINES ISLAND-9821002505 '), (4, 2, '07/22/2015', 20101, 'ACCOUNTS PAYABLE - TRADE', 'Liabilities', '20101-11111', 'AP TRADE'), (5, 2, '07/22/2015', 20101, 'ACCOUNTS PAYABLE - TRADE', 'Liabilities', '20101-11111-11111', 'AP TRADE - BDO'); -- -------------------------------------------------------- -- -- Table structure for table `tb_account_title` -- CREATE TABLE IF NOT EXISTS `tb_account_title` ( `account_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `account_date` varchar(255) NOT NULL, `account_code` varchar(255) NOT NULL, `account_title` varchar(255) NOT NULL, `account_type` varchar(255) NOT NULL, `account_group` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=158 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_account_title` -- INSERT INTO `tb_account_title` (`account_id`, `project_id`, `account_date`, `account_code`, `account_title`, `account_type`, `account_group`) VALUES (6, 2, '07/01/2015', '11120', 'Checks and Other Cash Items (COCI)', 'Assets', 'Cash and Cash Equivalent'), (7, 2, '07/01/2015', '11130', 'Cash in Bank', 'Assets', 'Cash in Bank'), (8, 2, '07/01/2015', '21100', 'Saving Deposits', 'Liabilities', 'Saving Deposits'), (9, 2, '07/01/2015', '21200', 'Time Deposits', 'Liabilities', 'Time Deposits'), (10, 2, '07/01/2015', '30110', 'Authorized Share Capital - Common', 'Capital', 'Common Share Capital-Autorized'), (11, 2, '07/01/2015', '40110', 'Interest Income from Loans', 'Revenue', 'Interest Income'), (12, 2, '07/01/2015', '40210', 'Service Income', 'Revenue', 'Service Revenue'), (13, 2, '07/01/2015', '61210', 'Salaries and Wages', 'Expense', 'Salaries and Wages Expense'), (14, 2, '07/01/2015', '61240', 'SSS, Philhealth, Pag-Ibig Contribution', 'Expense', 'SSS Employer Share'), (15, 2, '07/08/2015', '40100', 'Income from Credit Operations', 'Revenue', 'Service Revenue'), (16, 2, '07/08/2015', '40120', 'Service Fees', 'Revenue', 'Service Revenue'), (17, 2, '07/08/2015', '40130', 'Filing Fees', 'Revenue', 'Service Revenue'), (18, 2, '07/08/2015', '11140', 'Cash in Cooperative Federation', 'Assets', 'Cash in Bank - Current Account'), (19, 2, '07/08/2015', '40140', 'Fines,Penalties,Surcharges', 'Revenue', 'Service Revenue'), (20, 2, '07/08/2015', '11150', 'Petty Cash Fund', 'Assets', 'Cash in Bank - Current Account'), (21, 2, '07/08/2015', '11160', 'Revolving Fund', 'Assets', 'Cash in Bank - Current Account'), (22, 2, '07/08/2015', '11170', 'Change Fund', 'Assets', 'Cash in Bank - Current Account'), (23, 2, '07/08/2015', '11200', 'Investment at Fair Value through Profit or Loss', 'Assets', 'Cash in Bank - Current Account'), (24, 2, '07/08/2015', '11300', 'Held-to-Maturity (HTM) Financial Assets', 'Assets', 'Cash in Bank - Current Account'), (25, 2, '07/08/2015', '11310', 'Unamortized Discount/Premium - HTM', 'Assets', 'Cash in Bank - Current Account'), (26, 2, '07/08/2015', '40200', 'Income from Service Operations', 'Revenue', 'Service Revenue'), (27, 2, '07/08/2015', '11400', 'Available-for-Sale (AFS) Financial Assets', 'Assets', 'Cash in Bank - Current Account'), (28, 2, '07/08/2015', '11410', 'Accumulated Gains/Losses - AFS', 'Assets', 'Cash in Bank - Current Account'), (29, 2, '07/08/2015', '11420', 'Allowance for Probable Losses - AFS FA', 'Assets', 'Cash in Bank - Current Account'), (30, 2, '07/08/2015', '40220', 'Interest Income from Lease Agreement', 'Revenue', 'Service Revenue'), (31, 2, '07/08/2015', '40300', 'Income from Marketing/Consumers/Production Operations', 'Revenue', 'Service Revenue'), (32, 2, '07/08/2015', '11500', 'Unquoted Debt Securities Classified As Loans', 'Assets', 'Cash in Bank - Current Account'), (33, 2, '07/08/2015', '40305', 'Net Sales', 'Revenue', 'Service Revenue'), (34, 2, '07/08/2015', '40310', 'Sales', 'Revenue', 'Service Revenue'), (35, 2, '07/08/2015', '11600', 'Investment in Non-Marketable Equity Securities (INMES)', 'Assets', 'Cash in Bank - Current Account'), (36, 2, '07/08/2015', '11610', 'Allowance for Probable Losses - INMES', 'Assets', 'Cash in Bank - Current Account'), (37, 2, '07/08/2015', '11700', 'Loans and Receivables', 'Assets', 'Cash in Bank - Current Account'), (38, 2, '07/08/2015', '40320', 'Installment Sales', 'Revenue', 'Service Revenue'), (39, 2, '07/08/2015', '11711', 'Loans Receivable - Current', 'Assets', 'Cash in Bank - Current Account'), (40, 2, '07/08/2015', '40330', 'Sales Returns & Allowances', 'Revenue', 'Service Revenue'), (41, 2, '07/08/2015', '40340', 'Sales Discounts', 'Revenue', 'Service Revenue'), (42, 2, '07/08/2015', '11712', 'Loans Receivable - Past Due', 'Assets', 'Cash in Bank - Current Account'), (43, 2, '07/08/2015', '40400', 'Other Income', 'Revenue', 'Service Revenue'), (44, 2, '07/08/2015', '11713', 'Loans Receivable Restructured', 'Assets', 'Cash in Bank - Current Account'), (45, 2, '07/08/2015', '40410', 'Income/Interest from Investment/Deposits', 'Revenue', 'Service Revenue'), (46, 2, '07/08/2015', '11714', 'Loans Receivable - Loans in Litigation', 'Assets', 'Cash in Bank - Current Account'), (47, 2, '07/08/2015', '40420', 'Membership Fee', 'Revenue', 'Service Revenue'), (48, 2, '07/08/2015', '11715', 'Unearned Interests and Discounts', 'Assets', 'Cash in Bank - Current Account'), (49, 2, '07/08/2015', '40430', 'Commission Income', 'Revenue', 'Service Revenue'), (50, 2, '07/08/2015', '40440', 'Realized Gross Margin', 'Revenue', 'Service Revenue'), (51, 2, '07/08/2015', '11716', 'Allowance for Probable Losses on Loans', 'Assets', 'Cash in Bank - Current Account'), (52, 2, '07/08/2015', '40450', 'Miscellaneous Income', 'Revenue', 'Service Revenue'), (53, 2, '07/08/2015', '11721', 'Accounts Receivables Trade - Current', 'Assets', 'Cash in Bank - Current Account'), (54, 2, '07/08/2015', '50000', 'Cost of Goods Sold', 'Revenue', 'Service Revenue'), (55, 2, '07/08/2015', '11722', 'Accounts Receivables Trade - Past Due', 'Assets', 'Cash in Bank - Current Account'), (56, 2, '07/08/2015', '51000', 'Cost of Goods Sold', 'Revenue', 'Service Revenue'), (57, 2, '07/08/2015', '51110', 'Purchases', 'Revenue', 'Service Revenue'), (58, 2, '07/08/2015', '11723', 'Accounts Receivables Trade - Restructured', 'Assets', 'Cash in Bank - Current Account'), (59, 2, '07/08/2015', '51120', 'Raw Materials Purchases', 'Revenue', 'Service Revenue'), (60, 2, '07/08/2015', '11724', 'Accounts Receivables Trade - in Litigation', 'Assets', 'Cash in Bank - Current Account'), (61, 2, '07/08/2015', '51130', 'Purchase Returns & Allowances', 'Revenue', 'Service Revenue'), (62, 2, '07/08/2015', '51140', 'Purchase Discounts', 'Revenue', 'Service Revenue'), (63, 2, '07/08/2015', '11725', 'Allowance for Probable Losses on Accounts Receivable Trade', 'Assets', 'Cash in Bank - Current Account'), (64, 2, '07/08/2015', '51160', 'Freight In', 'Revenue', 'Service Revenue'), (65, 2, '07/08/2015', '11730', 'Installment Receivables - Current', 'Assets', 'Cash in Bank - Current Account'), (66, 2, '07/08/2015', '51170', 'Direct Labor', 'Revenue', 'Service Revenue'), (67, 2, '07/08/2015', '11731', 'Installment Receivables - Past Due', 'Assets', 'Cash in Bank - Current Account'), (68, 2, '07/08/2015', '51180', 'Factory/Processing Overhead', 'Revenue', 'Service Revenue'), (69, 2, '07/08/2015', '51200', 'Inventory Loss', 'Revenue', 'Service Revenue'), (70, 2, '07/08/2015', '11733', 'Installment Receivables - Restructured', 'Assets', 'Cash in Bank - Current Account'), (71, 2, '07/08/2015', '60000', 'Cost of Services', 'Revenue', 'Service Revenue'), (72, 2, '07/08/2015', '61000', 'Project Management Cost', 'Revenue', 'Service Revenue'), (73, 2, '07/08/2015', '61110', 'Labor and Technical Supervision', 'Revenue', 'Service Revenue'), (74, 2, '07/08/2015', '61230', 'Employees'' Benefits', 'Revenue', 'Service Revenue'), (75, 2, '07/08/2015', '61250', 'Retirement Benefit Expenses', 'Revenue', 'Service Revenue'), (76, 2, '07/08/2015', '61280', 'Professional and Consultancy Fees', 'Revenue', 'Service Revenue'), (77, 2, '07/08/2015', '11734', 'Installment Receivables - in Litigation', 'Assets', 'Cash in Bank - Current Account'), (78, 2, '07/08/2015', '61370', 'Supplies', 'Revenue', 'Service Revenue'), (79, 2, '07/08/2015', '61410', 'Power,Light and Water', 'Revenue', 'Service Revenue'), (80, 2, '07/08/2015', '61430', 'Insurance', 'Revenue', 'Service Revenue'), (81, 2, '07/08/2015', '62280', 'Professional and Consultancy Fees', 'Revenue', 'Service Revenue'), (82, 2, '07/08/2015', '62370', 'Supplies', 'Revenue', 'Service Revenue'), (83, 2, '07/08/2015', '62410', 'Power,Light and Water', 'Revenue', 'Service Revenue'), (84, 2, '07/08/2015', '62430', 'Insurance', 'Revenue', 'Service Revenue'), (85, 2, '07/08/2015', '62440', 'Repairs and Maintenance', 'Revenue', 'Service Revenue'), (86, 2, '07/08/2015', '62450', 'Rentals', 'Revenue', 'Service Revenue'), (87, 2, '07/08/2015', '11735', 'Allowance for Probable Losses on Installment Receivables', 'Assets', 'Cash in Bank - Current Account'), (88, 2, '07/08/2015', '62490', 'Gas, Oil & Lubricants', 'Revenue', 'Service Revenue'), (89, 2, '07/08/2015', '62530', 'Depreciation', 'Revenue', 'Service Revenue'), (90, 2, '07/08/2015', '62540', 'Amortization', 'Revenue', 'Service Revenue'), (91, 2, '07/08/2015', '62590', 'Impairment Loss', 'Revenue', 'Service Revenue'), (92, 2, '07/08/2015', '11736', 'Unrealized Gross Margin', 'Assets', 'Cash in Bank - Current Account'), (93, 2, '07/08/2015', '11740', 'Sales Contract Receivable', 'Assets', 'Cash in Bank - Current Account'), (94, 2, '07/08/2015', '63000', 'Distribution Cost', 'Revenue', 'Service Revenue'), (95, 2, '07/08/2015', '11741', 'Allowance for Probable Losses - Sales Contract Receivables', 'Assets', 'Cash in Bank - Current Account'), (96, 2, '07/08/2015', '63120', 'Power Cost', 'Revenue', 'Service Revenue'), (97, 2, '07/08/2015', '63130', 'Labor and Technical Supervision', 'Revenue', 'Service Revenue'), (98, 2, '07/08/2015', '11750', 'Advances to Officers, Employees and Members', 'Assets', 'Cash in Bank - Current Account'), (99, 2, '07/08/2015', '63210', 'Salaries and Wages', 'Revenue', 'Service Revenue'), (100, 2, '07/08/2015', '11760', 'Due from Accountable Officers and Employees', 'Assets', 'Cash in Bank - Current Account'), (101, 2, '07/08/2015', '63230', 'Employees'' Benefits', 'Revenue', 'Service Revenue'), (102, 2, '07/08/2015', '11770', 'Finance Lease Receivable', 'Assets', 'Cash in Bank - Current Account'), (103, 2, '07/08/2015', '11780', 'Other Current Receivables', 'Assets', 'Cash in Bank - Current Account'), (104, 2, '07/08/2015', '11800', 'Inventories', 'Assets', 'Cash in Bank - Current Account'), (105, 2, '07/08/2015', '11810', 'Merchandise Inventory', 'Assets', 'Cash in Bank - Current Account'), (106, 2, '07/08/2015', '63240', 'SSS, Phil health, ECC, Pag-Ibig Contribution', 'Revenue', 'Service Revenue'), (107, 2, '07/08/2015', '11820', 'Repossessed Inventories', 'Assets', 'Cash in Bank - Current Account'), (108, 2, '07/08/2015', '63250', 'Retirement Benefit Expense', 'Revenue', 'Service Revenue'), (109, 2, '07/08/2015', '11830', 'Spare Parts/Materials & Other Goods Inventory', 'Assets', 'Cash in Bank - Current Account'), (110, 2, '07/08/2015', '63280', 'Professional and Consultancy Fees', 'Revenue', 'Service Revenue'), (111, 2, '07/08/2015', '11840', 'Raw Materials Inventory', 'Assets', 'Cash in Bank - Current Account'), (112, 2, '07/08/2015', '63370', 'Supplies', 'Revenue', 'Service Revenue'), (113, 2, '07/08/2015', '11850', 'Work in Process Inventory', 'Assets', 'Cash in Bank - Current Account'), (114, 2, '07/08/2015', '63390', 'Training/Seminars', 'Revenue', 'Service Revenue'), (115, 2, '07/08/2015', '11860', 'Finished Goods Inventory', 'Assets', 'Cash in Bank - Current Account'), (116, 2, '07/08/2015', '63410', 'Power, Light and Water', 'Revenue', 'Service Revenue'), (117, 2, '07/08/2015', '11870', 'Agricultural Produce', 'Assets', 'Cash in Bank - Current Account'), (118, 2, '07/08/2015', '63420', 'Travel and Transportation', 'Revenue', 'Service Revenue'), (119, 2, '07/08/2015', '11880', 'Equipment for Lease Inventory', 'Assets', 'Cash in Bank - Current Account'), (120, 2, '07/08/2015', '11890', 'Allowance for Decline in Value of Inventory', 'Assets', 'Cash in Bank - Current Account'), (121, 2, '07/08/2015', '63430', 'Insurance', 'Revenue', 'Service Revenue'), (122, 2, '07/08/2015', '11900', 'Biological Assets', 'Assets', 'Cash in Bank - Current Account'), (123, 2, '07/08/2015', '63440', 'Repairs and Maintenance', 'Revenue', 'Service Revenue'), (124, 2, '07/08/2015', '12000', 'Other Current Assets', 'Assets', 'Cash in Bank - Current Account'), (125, 2, '07/08/2015', '63450', 'Rentals', 'Revenue', 'Service Revenue'), (126, 2, '07/08/2015', '12100', 'Input Tax', 'Assets', 'Cash in Bank - Current Account'), (127, 2, '07/08/2015', '63470', 'Communication', 'Revenue', 'Service Revenue'), (128, 2, '07/08/2015', '12200', 'Deposit to Suppliers', 'Assets', 'Cash in Bank - Current Account'), (129, 2, '07/08/2015', '63490', 'Gas, Oil & Lubricants', 'Revenue', 'Service Revenue'), (130, 2, '07/08/2015', '12300', 'Unused Supplies', 'Assets', 'Cash in Bank - Current Account'), (131, 2, '07/08/2015', '63520', 'Miscellaneous', 'Revenue', 'Service Revenue'), (132, 2, '07/08/2015', '12400', 'Prepaid Expenses', 'Assets', 'Cash in Bank - Current Account'), (133, 2, '07/08/2015', '63530', 'Depreciation', 'Revenue', 'Service Revenue'), (134, 2, '07/08/2015', '63540', 'Amortization', 'Revenue', 'Service Revenue'), (135, 2, '07/08/2015', '63590', 'Impairment Loss', 'Revenue', 'Service Revenue'), (136, 2, '07/08/2015', '13100', 'Held-to-Maturity (HTM) Financial Assets', 'Assets', 'Cash in Bank - Current Account'), (137, 2, '07/08/2015', '64000', 'Transport Service Cost', 'Revenue', 'Service Revenue'), (138, 2, '07/08/2015', '13110', 'Unamortized Discount/Premium - HTM', 'Assets', 'Cash in Bank - Current Account'), (139, 2, '07/08/2015', '64140', 'Driver''s/Conductor''s Fees', 'Revenue', 'Service Revenue'), (140, 2, '07/08/2015', '13120', 'Allowance for Probable Losses - HTM - LTFA', 'Assets', 'Cash in Bank - Current Account'), (141, 2, '07/08/2015', '13200', 'Available-for-Sale (AFS) Financial Assets', 'Assets', 'Cash in Bank - Current Account'), (142, 2, '07/08/2015', '13210', 'Accumulated Gains/Losses - AFS', 'Assets', 'Cash in Bank - Current Account'), (143, 2, '07/08/2015', '64150', 'Vehicle Registration and Licensing Expenses', 'Revenue', 'Service Revenue'), (144, 2, '07/08/2015', '64160', 'Toll Fees', 'Revenue', 'Service Revenue'), (145, 2, '07/08/2015', '64170', 'Incidental Expenses', 'Revenue', 'Service Revenue'), (146, 2, '07/08/2015', '64430', 'Insurance', 'Revenue', 'Service Revenue'), (147, 2, '07/08/2015', '64440', 'Repairs and Maintenance', 'Revenue', 'Service Revenue'), (148, 2, '07/08/2015', '64490', 'Gas, Oil & Lubricants', 'Revenue', 'Service Revenue'), (149, 2, '07/08/2015', '64530', 'Depreciation', 'Revenue', 'Service Revenue'), (150, 2, '07/08/2015', '64580', 'Provision for Fortuitous Events and Accidents', 'Revenue', 'Service Revenue'), (151, 2, '07/08/2015', '71000', 'Financing Cost', 'Expense', 'Rent Expenses'), (152, 2, '07/08/2015', '71100', 'Interest Expense on Borrowings', 'Expense', 'Rent Expenses'), (153, 2, '07/08/2015', '71200', 'Interest Expense on Deposits', 'Expense', 'Rent Expenses'), (154, 2, '07/08/2015', '71300', 'Other Financing Charges', 'Expense', 'Rent Expenses'), (155, 2, '07/08/2015', '72000', 'Selling/Marketing Cost', 'Expense', 'Rent Expenses'), (156, 2, '07/11/2015', '20101', 'ACCOUNTS PAYABLE - TRADE', 'Liabilities', 'Accounts Payable - Trade'), (157, 2, '07/11/2015', '20102', 'ACCOUNTS PAYABLE - NON TRADE ', 'Liabilities', 'Accounts Payble - Non Trade'); -- -------------------------------------------------------- -- -- Table structure for table `tb_bank_recon` -- CREATE TABLE IF NOT EXISTS `tb_bank_recon` ( `bank_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `bank_name` varchar(255) NOT NULL, `bank_month` varchar(255) NOT NULL, `bank_year` varchar(255) NOT NULL, `bank_balance` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_bank_recon` -- INSERT INTO `tb_bank_recon` (`bank_id`, `project_id`, `bank_name`, `bank_month`, `bank_year`, `bank_balance`) VALUES (1, 0, 'BANCO DE ORO', 'July', '2005', '12,000,000.00'), (2, 0, 'BANCO DE ORO', 'July', '2005', '1,000,000.00'), (3, 0, 'BANK OF THE PHILIPPINES', 'July', '2005', '250,000.00'); -- -------------------------------------------------------- -- -- Table structure for table `tb_copyrights` -- CREATE TABLE IF NOT EXISTS `tb_copyrights` ( `id` int(11) NOT NULL, `company_name` varchar(255) NOT NULL, `year` varchar(255) NOT NULL, `footer` varchar(1000) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_copyrights` -- INSERT INTO `tb_copyrights` (`id`, `company_name`, `year`, `footer`) VALUES (4, 'EPSI (Excellent Performance Services Inc.)', '2015', 'Licensed software of PNI International Corporation. Reproduction in any format, digital or otherwise, for purposes of publication, display or distribution without written consent of the Developer is prohibited. PNI International Corporation © 2014. All rights reserved.'); -- -------------------------------------------------------- -- -- Table structure for table `tb_journal_ap` -- CREATE TABLE IF NOT EXISTS `tb_journal_ap` ( `ap_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `ap_invoice_no` varchar(255) NOT NULL, `ap_invoice_date` varchar(255) NOT NULL, `ap_po_no` varchar(255) NOT NULL, `ap_master_name` varchar(255) NOT NULL, `ap_invoice_amount` varchar(255) NOT NULL, `ap_particulars` varchar(255) NOT NULL, `ap_trans_id` varchar(255) NOT NULL, `total_debit` varchar(225) NOT NULL, `total_credit` varchar(225) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_journal_ap` -- INSERT INTO `tb_journal_ap` (`ap_id`, `project_id`, `ap_invoice_no`, `ap_invoice_date`, `ap_po_no`, `ap_master_name`, `ap_invoice_amount`, `ap_particulars`, `ap_trans_id`, `total_debit`, `total_credit`) VALUES (1, 2, '09', '08/01/2015', '90', ' AVASIA INFORMATIONS SYSTEMS', ' 30,000', 'To record employee salary and benefits', '', ' 30,000.00', ' 30,000.00'); -- -------------------------------------------------------- -- -- Table structure for table `tb_journal_ap_trans` -- CREATE TABLE IF NOT EXISTS `tb_journal_ap_trans` ( `count` int(11) NOT NULL, `project_id` int(11) NOT NULL, `ap_id` int(11) NOT NULL, `ap_trans_account_code` varchar(255) NOT NULL, `ap_trans_sub_name` varchar(255) NOT NULL, `ap_trans_dr` varchar(255) NOT NULL, `ap_trans_cr` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_journal_ap_trans` -- INSERT INTO `tb_journal_ap_trans` (`count`, `project_id`, `ap_id`, `ap_trans_account_code`, `ap_trans_sub_name`, `ap_trans_dr`, `ap_trans_cr`) VALUES (1, 2, 1, '61240', ' SSS, Philhealth, Pag-Ibig Contribution ', '0', '10000'), (2, 2, 1, '61210', ' Salaries and Wages ', '0', '20000'), (3, 2, 1, '001', 'ACCOUNTS PAYABLE - AVASIA INFORMATIONS SYSTEMS ', '30000', '0'); -- -------------------------------------------------------- -- -- Table structure for table `tb_journal_cd` -- CREATE TABLE IF NOT EXISTS `tb_journal_cd` ( `cd_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `cd_date` varchar(255) NOT NULL, `cd_voucher_no` varchar(255) NOT NULL, `cd_payee_name` varchar(255) NOT NULL, `cd_check_no` varchar(255) NOT NULL, `cd_master_name` varchar(255) NOT NULL, `cd_released` varchar(255) NOT NULL, `cd_released_date` varchar(255) NOT NULL, `cd_cleared` varchar(255) NOT NULL, `cd_cleared_date` varchar(255) NOT NULL, `cd_check_amount` varchar(255) NOT NULL, `cd_particulars` varchar(255) NOT NULL, `cd_trans_id` int(11) NOT NULL, `total_debit` varchar(255) NOT NULL, `total_credit` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_journal_cd` -- INSERT INTO `tb_journal_cd` (`cd_id`, `project_id`, `cd_date`, `cd_voucher_no`, `cd_payee_name`, `cd_check_no`, `cd_master_name`, `cd_released`, `cd_released_date`, `cd_cleared`, `cd_cleared_date`, `cd_check_amount`, `cd_particulars`, `cd_trans_id`, `total_debit`, `total_credit`) VALUES (1, 2, '08/01/2015', '10', 'Mr. Quintos', '10', 'BDO - DOLLAR ILIGAN - 3120156870', 'Yes', '08/01/2015', 'Yes', '08/01/2015', '20000', 'To record vehicle unit expenses', 0, ' 15,000.00', ' 15,000.00'); -- -------------------------------------------------------- -- -- Table structure for table `tb_journal_cd_trans` -- CREATE TABLE IF NOT EXISTS `tb_journal_cd_trans` ( `cd_trans_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `cd_id` int(11) NOT NULL, `cd_trans_account_code` varchar(255) NOT NULL, `cd_trans_sub_name` varchar(255) NOT NULL, `cd_trans_dr` varchar(255) NOT NULL, `cd_trans_cr` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_journal_cd_trans` -- INSERT INTO `tb_journal_cd_trans` (`cd_trans_id`, `project_id`, `cd_id`, `cd_trans_account_code`, `cd_trans_sub_name`, `cd_trans_dr`, `cd_trans_cr`) VALUES (1, 2, 1, '64150', 'Vehicle Registration and Licensing Expenses', '15000', '0'), (2, 2, 1, '11130-11111-11112-11111', 'CASH IN BANK - BDO - DOLLAR ILIGAN - 3120156870 ', '0', '15000'); -- -------------------------------------------------------- -- -- Table structure for table `tb_journal_cr` -- CREATE TABLE IF NOT EXISTS `tb_journal_cr` ( `cr_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `cr_or_no` varchar(255) NOT NULL, `cr_or_date` varchar(255) NOT NULL, `cr_master_name_customer` varchar(255) NOT NULL, `cr_sj_si_no` varchar(255) NOT NULL, `cr_master_name_bank` varchar(255) NOT NULL, `cr_cleared` varchar(255) NOT NULL, `cr_cleared_date` varchar(255) NOT NULL, `cr_or_amount` varchar(255) NOT NULL, `cr_particulars` varchar(255) NOT NULL, `cr_trans_id` int(11) NOT NULL, `total_debit` varchar(255) NOT NULL, `total_credit` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_journal_cr` -- INSERT INTO `tb_journal_cr` (`cr_id`, `project_id`, `cr_or_no`, `cr_or_date`, `cr_master_name_customer`, `cr_sj_si_no`, `cr_master_name_bank`, `cr_cleared`, `cr_cleared_date`, `cr_or_amount`, `cr_particulars`, `cr_trans_id`, `total_debit`, `total_credit`) VALUES (1, 2, '12', '08/04/2015', '007 - MICHELLE', '11', 'BDO - CURRENT ACCOUNT - 2868005848', 'Yes', '08/04/2015', '45000', 'To record revenue', 0, ' 45,000.00', ' 45,000.00'); -- -------------------------------------------------------- -- -- Table structure for table `tb_journal_cr_trans` -- CREATE TABLE IF NOT EXISTS `tb_journal_cr_trans` ( `cr_trans_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `cr_id` int(11) NOT NULL, `cr_trans_account_code` varchar(255) NOT NULL, `cr_trans_sub_name` varchar(255) NOT NULL, `cr_trans_dr` varchar(255) NOT NULL, `cr_trans_cr` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_journal_cr_trans` -- INSERT INTO `tb_journal_cr_trans` (`cr_trans_id`, `project_id`, `cr_id`, `cr_trans_account_code`, `cr_trans_sub_name`, `cr_trans_dr`, `cr_trans_cr`) VALUES (1, 2, 1, '11130-11111-11112-11111', 'BDO - DOLLAR ILIGAN - 3120156870 ', '0', '45000'), (2, 2, 1, '007', 'ACCOUNTS RECEIVABLE - MICHELLE ', '45000', '0'); -- -------------------------------------------------------- -- -- Table structure for table `tb_journal_gj` -- CREATE TABLE IF NOT EXISTS `tb_journal_gj` ( `gj_id` int(11) NOT NULL, `project_id` varchar(255) NOT NULL, `gj_code` varchar(255) NOT NULL, `gj_date` varchar(255) NOT NULL, `gj_cleared` varchar(255) NOT NULL, `gj_cleared_date` varchar(255) NOT NULL, `gj_amount` varchar(255) NOT NULL, `gj_particulars` varchar(255) NOT NULL, `gj_trans_id` int(11) NOT NULL, `total_debit` varchar(255) NOT NULL, `total_credit` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `tb_journal_gj_trans` -- CREATE TABLE IF NOT EXISTS `tb_journal_gj_trans` ( `gj_trans_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `gj_id` int(11) NOT NULL, `gj_trans_account_code` varchar(255) NOT NULL, `gj_trans_sub_name` varchar(255) NOT NULL, `gj_trans_dr` varchar(255) NOT NULL, `gj_trans_cr` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `tb_journal_sj` -- CREATE TABLE IF NOT EXISTS `tb_journal_sj` ( `sj_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `sj_si_no` varchar(255) NOT NULL, `sj_si_date` varchar(255) NOT NULL, `sj_master_name` varchar(255) NOT NULL, `sj_terms` varchar(255) NOT NULL, `sj_si_amount` varchar(255) NOT NULL, `sj_particulars` varchar(255) NOT NULL, `sj_trans_id` int(11) NOT NULL, `total_debit` varchar(255) NOT NULL, `total_credit` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_journal_sj` -- INSERT INTO `tb_journal_sj` (`sj_id`, `project_id`, `sj_si_no`, `sj_si_date`, `sj_master_name`, `sj_terms`, `sj_si_amount`, `sj_particulars`, `sj_trans_id`, `total_debit`, `total_credit`) VALUES (1, 2, '11', '08/03/2015', 'MICHELLE', '7', '25000', 'To record sales record', 0, ' 45,000.00', ' 45,000.00'); -- -------------------------------------------------------- -- -- Table structure for table `tb_journal_sj_trans` -- CREATE TABLE IF NOT EXISTS `tb_journal_sj_trans` ( `sj_trans_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `sj_id` int(11) NOT NULL, `sj_trans_account_code` varchar(255) NOT NULL, `sj_trans_sub_name` varchar(255) NOT NULL, `sj_trans_dr` varchar(255) NOT NULL, `sj_trans_cr` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_journal_sj_trans` -- INSERT INTO `tb_journal_sj_trans` (`sj_trans_id`, `project_id`, `sj_id`, `sj_trans_account_code`, `sj_trans_sub_name`, `sj_trans_dr`, `sj_trans_cr`) VALUES (1, 2, 1, '11130-11112-11113-11111', 'BANK OF THE PHILIPPINES ISLAND-9821002505 ', '25000', '0'), (2, 2, 1, '11130-11111-11112-11111', 'BDO - DOLLAR ILIGAN - 3120156870 ', '20000', '0'), (3, 2, 1, '007', 'SALES REVENUE - MICHELLE ', '0', '45000'); -- -------------------------------------------------------- -- -- Table structure for table `tb_master` -- CREATE TABLE IF NOT EXISTS `tb_master` ( `master_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `master_code` varchar(255) NOT NULL, `master_date` varchar(255) NOT NULL, `master_name` varchar(255) NOT NULL, `master_add` varchar(255) NOT NULL, `master_type` varchar(255) NOT NULL, `master_terms_payment` varchar(255) NOT NULL, `master_contact_person` varchar(255) NOT NULL, `master_position` varchar(255) NOT NULL, `master_tel_no` varchar(255) NOT NULL, `master_fax_no` varchar(255) NOT NULL, `master_email` varchar(255) NOT NULL, `master_subsidiary` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_master` -- INSERT INTO `tb_master` (`master_id`, `project_id`, `master_code`, `master_date`, `master_name`, `master_add`, `master_type`, `master_terms_payment`, `master_contact_person`, `master_position`, `master_tel_no`, `master_fax_no`, `master_email`, `master_subsidiary`) VALUES (5, 2, '001', '07/01/2015', 'AVASIA INFORMATIONS SYSTEMS', 'SUITE 301 818 bUILDING 169 PASIG BLVD PASIG CITY', 'Supplier', '', 'N/A', 'N/A', '747-5371', '6710072', '<EMAIL>', 'AR-T'), (6, 2, '002', '07/01/2015', 'EAST ASIA PAPER MANUFACTURING CORP.', '433 R. Pascual St., Mandaluyong City', 'Supplier', '', '<NAME>', 'N/A', '5319626', '5321466', 'N/A', 'AR-T'), (7, 2, '003', '07/01/2015', 'AUCTION MONSTER', 'N/A', 'Customer', '', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'AR-T'), (8, 2, '004', '07/01/2015', '<NAME>', 'N/A', 'Employee', '', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'IT'), (9, 2, '005', '07/01/2015', '<NAME>', 'N/A', 'Bank', '', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'AR-T'), (10, 2, '006', '07/01/2015', 'BANK OF THE PHILIPPINES', 'N/A', 'Bank', '', 'N/A', 'N/A', 'N/A', 'N/A', 'N/A', 'AR-T'), (11, 2, '007', '08/17/2015', 'MICHELLE', 'VAL CITY', 'Customer', '', 'MICH', 'IT', 'N/A', 'N/A', 'N/A', ''), (12, 2, '008', '08/14/2015', '<NAME>', 'VAL', 'Employee', '', 'H', 'A', 'A', 'A', 'A', ''); -- -------------------------------------------------------- -- -- Table structure for table `tb_project` -- CREATE TABLE IF NOT EXISTS `tb_project` ( `project_id` int(11) NOT NULL, `project_name` varchar(225) NOT NULL, `project_location` varchar(225) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_project` -- INSERT INTO `tb_project` (`project_id`, `project_name`, `project_location`) VALUES (1, 'Team Storm', 'EDSA Ortigas'), (2, 'EPSI', 'Alabang'), (3, 'PNI BIZ', 'EDSA Ortigas'), (4, 'PNI International', 'EDSA Ortigas'); -- -------------------------------------------------------- -- -- Table structure for table `tb_users` -- CREATE TABLE IF NOT EXISTS `tb_users` ( `user_id` int(11) NOT NULL, `project_id` int(11) NOT NULL, `user_type` varchar(225) NOT NULL, `fname` varchar(225) NOT NULL, `lname` varchar(225) NOT NULL, `uname` varchar(225) NOT NULL, `pwd` varchar(225) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_users` -- INSERT INTO `tb_users` (`user_id`, `project_id`, `user_type`, `fname`, `lname`, `uname`, `pwd`) VALUES (1, 1, 'Administrator', 'MHon', 'Romero', 'ts', 'admin'), (2, 2, 'Administrator', 'Michelle', 'Anne', 'admin', 'admin'), (3, 2, 'Administrator', 'Jay', 'Quintos', 'epsi', 'admin'), (4, 2, 'Accounting Staff', 'Ernanie', '<NAME>', 'acc', 'acc'); -- -------------------------------------------------------- -- -- Table structure for table `tb_user_type` -- CREATE TABLE IF NOT EXISTS `tb_user_type` ( `id` int(11) NOT NULL, `userType` varchar(255) NOT NULL ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=latin1; -- -- Dumping data for table `tb_user_type` -- INSERT INTO `tb_user_type` (`id`, `userType`) VALUES (1, 'Administrator'), (2, 'Accounting Staff'), (3, 'Auditor Staff'), (4, 'User'); -- -- Indexes for dumped tables -- -- -- Indexes for table `tb_account_groups` -- ALTER TABLE `tb_account_groups` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tb_account_subsidiary` -- ALTER TABLE `tb_account_subsidiary` ADD PRIMARY KEY (`sub_id`); -- -- Indexes for table `tb_account_title` -- ALTER TABLE `tb_account_title` ADD PRIMARY KEY (`account_id`); -- -- Indexes for table `tb_bank_recon` -- ALTER TABLE `tb_bank_recon` ADD PRIMARY KEY (`bank_id`); -- -- Indexes for table `tb_copyrights` -- ALTER TABLE `tb_copyrights` ADD PRIMARY KEY (`id`); -- -- Indexes for table `tb_journal_ap` -- ALTER TABLE `tb_journal_ap` ADD PRIMARY KEY (`ap_id`); -- -- Indexes for table `tb_journal_ap_trans` -- ALTER TABLE `tb_journal_ap_trans` ADD PRIMARY KEY (`count`); -- -- Indexes for table `tb_journal_cd` -- ALTER TABLE `tb_journal_cd` ADD PRIMARY KEY (`cd_id`); -- -- Indexes for table `tb_journal_cd_trans` -- ALTER TABLE `tb_journal_cd_trans` ADD PRIMARY KEY (`cd_trans_id`); -- -- Indexes for table `tb_journal_cr` -- ALTER TABLE `tb_journal_cr` ADD PRIMARY KEY (`cr_id`); -- -- Indexes for table `tb_journal_cr_trans` -- ALTER TABLE `tb_journal_cr_trans` ADD PRIMARY KEY (`cr_trans_id`); -- -- Indexes for table `tb_journal_gj` -- ALTER TABLE `tb_journal_gj` ADD PRIMARY KEY (`gj_id`); -- -- Indexes for table `tb_journal_gj_trans` -- ALTER TABLE `tb_journal_gj_trans` ADD PRIMARY KEY (`gj_trans_id`); -- -- Indexes for table `tb_journal_sj` -- ALTER TABLE `tb_journal_sj` ADD PRIMARY KEY (`sj_id`); -- -- Indexes for table `tb_journal_sj_trans` -- ALTER TABLE `tb_journal_sj_trans` ADD PRIMARY KEY (`sj_trans_id`); -- -- Indexes for table `tb_master` -- ALTER TABLE `tb_master` ADD PRIMARY KEY (`master_id`); -- -- Indexes for table `tb_project` -- ALTER TABLE `tb_project` ADD PRIMARY KEY (`project_id`); -- -- Indexes for table `tb_users` -- ALTER TABLE `tb_users` ADD PRIMARY KEY (`user_id`); -- -- Indexes for table `tb_user_type` -- ALTER TABLE `tb_user_type` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `tb_account_groups` -- ALTER TABLE `tb_account_groups` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=61; -- -- AUTO_INCREMENT for table `tb_account_subsidiary` -- ALTER TABLE `tb_account_subsidiary` MODIFY `sub_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `tb_account_title` -- ALTER TABLE `tb_account_title` MODIFY `account_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=158; -- -- AUTO_INCREMENT for table `tb_bank_recon` -- ALTER TABLE `tb_bank_recon` MODIFY `bank_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `tb_copyrights` -- ALTER TABLE `tb_copyrights` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tb_journal_ap` -- ALTER TABLE `tb_journal_ap` MODIFY `ap_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tb_journal_ap_trans` -- ALTER TABLE `tb_journal_ap_trans` MODIFY `count` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `tb_journal_cd` -- ALTER TABLE `tb_journal_cd` MODIFY `cd_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tb_journal_cd_trans` -- ALTER TABLE `tb_journal_cd_trans` MODIFY `cd_trans_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `tb_journal_cr` -- ALTER TABLE `tb_journal_cr` MODIFY `cr_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tb_journal_cr_trans` -- ALTER TABLE `tb_journal_cr_trans` MODIFY `cr_trans_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `tb_journal_gj` -- ALTER TABLE `tb_journal_gj` MODIFY `gj_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `tb_journal_gj_trans` -- ALTER TABLE `tb_journal_gj_trans` MODIFY `gj_trans_id` int(11) NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `tb_journal_sj` -- ALTER TABLE `tb_journal_sj` MODIFY `sj_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `tb_journal_sj_trans` -- ALTER TABLE `tb_journal_sj_trans` MODIFY `sj_trans_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `tb_master` -- ALTER TABLE `tb_master` MODIFY `master_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=13; -- -- AUTO_INCREMENT for table `tb_project` -- ALTER TABLE `tb_project` MODIFY `project_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tb_users` -- ALTER TABLE `tb_users` MODIFY `user_id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `tb_user_type` -- ALTER TABLE `tb_user_type` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=5; /*!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 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 07, 2021 at 07:51 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: `percobaan10` -- -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2021_05_28_102639_laratrust_setup_tables', 2), (5, '2021_06_02_054911_payments', 3); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `payments` -- CREATE TABLE `payments` ( `id` bigint(20) UNSIGNED NOT NULL, `id_pelanggan` int(10) UNSIGNED NOT NULL, `id_fixer` int(11) NOT NULL, `jenis_device` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `nama_pelanggan` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `nama_fixer` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `no_hp_pelanggan` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `no_hp_fixer` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat_pelanggan` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat_fixer` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Pending', `foto_device` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `payments` -- INSERT INTO `payments` (`id`, `id_pelanggan`, `id_fixer`, `jenis_device`, `created_at`, `updated_at`, `nama_pelanggan`, `nama_fixer`, `no_hp_pelanggan`, `no_hp_fixer`, `alamat_pelanggan`, `alamat_fixer`, `status`, `foto_device`) VALUES (4, 1, 5, 'wewew', NULL, NULL, 'Jaka', 'Surya', '123123123', '08123123123', 'gg.jaj', 'tt..ww', 'Pending', ''), (5, 1, 5, 'Someting', NULL, NULL, 'Jaka', 'Surya', '123123123', '08123123123', 'gg.jaj', 'tt..ww', 'Pending', 'Jaka.png'); -- -------------------------------------------------------- -- -- Table structure for table `permissions` -- CREATE TABLE `permissions` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `display_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `permissions` -- INSERT INTO `permissions` (`id`, `name`, `display_name`, `description`, `created_at`, `updated_at`) VALUES (1, 'users-create', 'Create Users', 'Create Users', '2021-05-28 02:29:46', '2021-05-28 02:29:46'), (2, 'users-read', 'Read Users', 'Read Users', '2021-05-28 02:29:46', '2021-05-28 02:29:46'), (3, 'users-update', 'Update Users', 'Update Users', '2021-05-28 02:29:46', '2021-05-28 02:29:46'), (4, 'users-delete', 'Delete Users', 'Delete Users', '2021-05-28 02:29:46', '2021-05-28 02:29:46'), (5, 'payments-create', 'Create Payments', 'Create Payments', '2021-05-28 02:29:47', '2021-05-28 02:29:47'), (6, 'payments-read', 'Read Payments', 'Read Payments', '2021-05-28 02:29:47', '2021-05-28 02:29:47'), (7, 'payments-update', 'Update Payments', 'Update Payments', '2021-05-28 02:29:47', '2021-05-28 02:29:47'), (8, 'payments-delete', 'Delete Payments', 'Delete Payments', '2021-05-28 02:29:47', '2021-05-28 02:29:47'), (9, 'profile-read', 'Read Profile', 'Read Profile', '2021-05-28 02:29:47', '2021-05-28 02:29:47'), (10, 'profile-update', 'Update Profile', 'Update Profile', '2021-05-28 02:29:47', '2021-05-28 02:29:47'); -- -------------------------------------------------------- -- -- Table structure for table `permission_role` -- CREATE TABLE `permission_role` ( `permission_id` bigint(20) UNSIGNED NOT NULL, `role_id` bigint(20) UNSIGNED NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `permission_role` -- INSERT INTO `permission_role` (`permission_id`, `role_id`) VALUES (1, 1), (2, 1), (3, 1), (4, 1), (5, 1), (5, 2), (5, 3), (6, 1), (6, 2), (6, 3), (7, 1), (7, 2), (8, 1), (9, 1), (9, 2), (9, 3), (10, 1), (10, 2), (10, 3); -- -------------------------------------------------------- -- -- Table structure for table `permission_user` -- CREATE TABLE `permission_user` ( `permission_id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `user_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `roles` -- CREATE TABLE `roles` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `display_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `description` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `roles` -- INSERT INTO `roles` (`id`, `name`, `display_name`, `description`, `created_at`, `updated_at`) VALUES (1, 'admin', 'Admin', 'Admin', '2021-05-28 02:29:46', '2021-05-28 02:29:46'), (2, 'fixer', 'Fixer', 'Fixer', '2021-05-28 02:29:47', '2021-05-28 02:29:47'), (3, 'pelanggan', 'Pelanggan', 'Pelanggan', '2021-05-28 02:29:47', '2021-05-28 02:29:47'); -- -------------------------------------------------------- -- -- Table structure for table `role_user` -- CREATE TABLE `role_user` ( `role_id` bigint(20) UNSIGNED NOT NULL, `user_id` bigint(20) UNSIGNED NOT NULL, `user_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `role_user` -- INSERT INTO `role_user` (`role_id`, `user_id`, `user_type`) VALUES (3, 1, 'App\\Models\\User'), (1, 2, 'App\\Models\\User'), (3, 3, 'App\\Models\\User'), (3, 4, 'App\\Models\\User'), (2, 5, 'App\\Models\\User'), (2, 8, 'App\\Models\\User'), (3, 16, 'App\\Models\\User'), (2, 17, 'App\\Models\\User'), (2, 18, 'App\\Models\\User'), (2, 19, 'App\\Models\\User'), (2, 20, 'App\\Models\\User'), (3, 21, 'App\\Models\\User'), (3, 22, 'App\\Models\\User'), (3, 23, 'App\\Models\\User'), (3, 24, 'App\\Models\\User'), (3, 25, 'App\\Models\\User'), (3, 26, 'App\\Models\\User'), (3, 27, 'App\\Models\\User'), (3, 28, 'App\\Models\\User'), (3, 29, 'App\\Models\\User'); -- -------------------------------------------------------- -- -- 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, `no_telepon_pelanggan` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `foto_profile` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT 'foto_profile.png', `poster` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'poster.png', `desc_fixer` text COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Lorem Ipsum' ) 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`, `no_telepon_pelanggan`, `alamat`, `foto_profile`, `poster`, `desc_fixer`) VALUES (1, 'Jaka', '<EMAIL>', NULL, '$2y$10$QTCVvyTxGHJnx3NHnixCbu3bAy471kyBSCALFpiEuTxu4gNo1JMy.', NULL, '2021-05-28 02:48:46', '2021-05-28 02:48:46', '123123123', 'gg.jaj', 'foto_profile.png', '', ''), (2, '<NAME>', '<EMAIL>', NULL, '$2y$10$nCG7ngG.VJy5uknzWU5kGe6iCWSJd9jTb9E7PyWydemafqkGGmoXe', NULL, '2021-05-28 02:50:52', '2021-05-28 02:50:52', '081350199978', 'gg.jeee', 'foto_profile.png', '', ''), (3, 'percobaanmultiauth', '<EMAIL>', NULL, '$2y$10$FGlcDn3K2lPzBXLBbYSTCuLFqYAChL45/fuEw22WcmGimP.QPH00K', NULL, '2021-05-28 05:13:22', '2021-05-28 05:13:22', '081350199978', 'ee.gg', 'foto_profile.png', '', ''), (4, '<NAME>', '<EMAIL>', NULL, '$2y$10$vx5iwcaseq3lQmPzDnsC8eAGWInnlHNMayRBy.9mY0utVeMXyLZia', NULL, '2021-05-28 05:13:46', '2021-05-28 05:13:46', '081212123123', 'rr.gg', 'foto_profile.png', '', ''), (5, 'Surya', '<EMAIL>', NULL, '$2y$10$Xz8L3cDV0uhON.42XpksmuZ5Vif6sWosTByzlXGQh.xyj3oWDFcSG', NULL, '2021-05-28 05:14:08', '2021-05-28 05:14:08', '08123123123', 'tt..ww', 'foto_profile.png', '', ''), (6, 'Tong', '<EMAIL>', NULL, '$2y$10$EL2qYH4eOx5tF9IX1awd/uc4gCG1Rx1ne6sXbEUOxE7HYxLBkCQNm', NULL, '2021-06-02 04:10:59', '2021-06-02 04:10:59', '0813501999788', 'wwee..ggg', 'foto_profile.png', '', ''), (8, 'GG', '<EMAIL>', NULL, '$2y$10$JJilocoi1ucfNvoIhLpqkePKlHYuAW3aVcYwnmuhPSTN9zTLUHrKi', NULL, '2021-06-02 10:31:25', '2021-06-02 10:31:25', '123123123', 'asdasdas', 'foto_profile.png', '', ''), (9, 'GGgg', '<EMAIL>', NULL, '$2y$10$ohlz.yDb94sNJVlFRbZKQ.2HWY4jmv.6kDHOQq7E/RKMR/UlBlrby', NULL, '2021-06-02 10:33:14', '2021-06-02 10:33:14', '123123123', '123123123', 'foto_profile.png', '', ''), (16, 'Pelanggan', '<EMAIL>', NULL, '$2y$10$aX/1Ao9sYnkyZ05nGnr0Xu15xH6iho6yF3EA5jBYGBc2ZMf7ebqg2', NULL, '2021-06-02 10:57:28', '2021-06-02 10:57:28', '123123', '123', 'foto_profile.png', '', ''), (17, 'Fixer', '<EMAIL>', NULL, '$2y$10$AATLT4FPrhUkfOIS1oeW/Os9e7FnFWCw9lIMmlptlCD53Cv9k8zji', NULL, '2021-06-04 18:57:54', '2021-06-04 18:57:54', '081321', 'jalan Tanjung', 'foto_profile.png', '', ''), (18, 'Fixer2', '<EMAIL>', NULL, '$2y$10$a3PTt2W4dNjEoprUMYnHiOxL9pzANkjk5CMrH8CXRBC090wNqkqsS', NULL, '2021-06-04 18:59:36', '2021-06-04 18:59:36', '12312', 'Dummy', 'foto_profile.png', '', ''), (19, 'Fixer3', '<EMAIL>', NULL, '$2y$10$jcd4WoakPw3fG7YsZo02g.XddwB159QqPoD2awxehYTPefKWSmeE6', NULL, '2021-06-04 19:16:42', '2021-06-04 19:16:42', '123123', 'GG221', 'foto_profile.png', '', ''), (20, 'fixer4', '<EMAIL>', NULL, '$2y$10$MMcB.PjN4EagvHfZhokj1Oi5Tm2LpZe6pi4Jb6WvI.yNaEXDHyXa.', NULL, '2021-06-04 20:18:34', '2021-06-04 20:18:34', '123123', 'jalan jalan', 'foto_profile.png', '', ''), (21, 'PelangganDummy', '<EMAIL>', NULL, '$2y$10$NsGRs.muphwLY.btsHEvW.EEA4FoGYSL3IY4IpGeVlTYE/ra6aH.a', NULL, '2021-06-06 04:54:35', '2021-06-06 04:54:35', '08123456789', 'jalan.jatinegara', 'foto_profile.png', 'poster.png', 'Lorem Ipsum'), (22, 'dummy3', '<EMAIL>', NULL, '$2y$10$840Gbe1WHpdWhPnwV1V4TeCkcbnxHMhXIqpR/9I58BdXXTLG6QBkC', NULL, '2021-06-06 04:55:47', '2021-06-06 04:55:47', '089876554231', 'Jalan.Kudunga', 'foto_profile.png', 'poster.png', 'Lorem Ipsum'), (23, 'dummy4', '<EMAIL>', NULL, '$2y$10$b.9yBAO1PwlydksNDyMHNejDvtMxpoxn8ZXmpDF4AewytUhx5IFOa', NULL, '2021-06-06 04:58:07', '2021-06-06 04:58:07', '0876541234', 'jalan.kenangan 69420', 'foto_profile.png', 'poster.png', 'Lorem Ipsum'), (24, 'dummy5', '<EMAIL>', NULL, '$2y$10$qoMu3ShEHhcOYmdWGx7oU.98PQSLTYWHmfR1sWocMP3ba7verTYMu', NULL, '2021-06-06 04:59:25', '2021-06-06 04:59:25', '081723123124', 'jalan.kuringgg', 'foto_profile.png', 'poster.png', 'Lorem Ipsum'), (25, 'dummy6', '<EMAIL>', NULL, '$2y$10$PXtHhD6D2wu8oXsBElJCref.fetHiUBlXTxWxXLbUlnJ7zZvbF6Xi', NULL, '2021-06-06 05:06:46', '2021-06-06 05:06:46', '08132123231', 'Jalan.Rubick69', 'foto_profile.png', 'poster.png', 'Lorem Ipsum'), (26, 'dummy7', '<EMAIL>', NULL, '$2y$10$RfGsqkEbVAn.Fhr50fIhC.iMyh/Oe66Q0wzvGlaydLwBeWReWvAQe', NULL, '2021-06-06 05:07:45', '2021-06-06 05:07:45', '0812391231', 'jalan.keren999', 'foto_profile.png', 'poster.png', 'Lorem Ipsum'), (27, 'dummy8', '<EMAIL>', NULL, '$2y$10$.q33cEV3nn6iz7tol0d71eHAFslTlhLM1hcW4Hxyd2Qxn3LDbjbK2', NULL, '2021-06-06 05:09:37', '2021-06-06 05:09:37', '08123124125', 'jalan.maklogaming', 'foto_profile.png', 'poster.png', 'Lorem Ipsum'), (28, 'dummy9', '<EMAIL>', NULL, '$2y$10$c0GLraLK675iqcAjPUC57.pACjfibUQrkc83y0nbIkzJrJN2lOvyG', NULL, '2021-06-06 05:13:17', '2021-06-06 05:13:17', '0823123213', 'jalan.oop', 'foto_profile.png', 'poster.png', 'Lorem Ipsum'), (29, 'dummy10', '<EMAIL>', NULL, '$2y$10$H9RWm0hjifb6Ni.gJ78EyOAqBA.cKcOY2VL/C7uyGJFeCAIfbpRUO', NULL, '2021-06-06 05:14:48', '2021-06-06 05:14:48', '08123125412', 'jalan.sulawesi', 'foto_profile.png', 'poster.png', 'Lorem Ipsum'); -- -- Indexes for dumped tables -- -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `payments` -- ALTER TABLE `payments` ADD PRIMARY KEY (`id`); -- -- Indexes for table `permissions` -- ALTER TABLE `permissions` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `permissions_name_unique` (`name`); -- -- Indexes for table `permission_role` -- ALTER TABLE `permission_role` ADD PRIMARY KEY (`permission_id`,`role_id`), ADD KEY `permission_role_role_id_foreign` (`role_id`); -- -- Indexes for table `permission_user` -- ALTER TABLE `permission_user` ADD PRIMARY KEY (`user_id`,`permission_id`,`user_type`), ADD KEY `permission_user_permission_id_foreign` (`permission_id`); -- -- Indexes for table `roles` -- ALTER TABLE `roles` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `roles_name_unique` (`name`); -- -- Indexes for table `role_user` -- ALTER TABLE `role_user` ADD PRIMARY KEY (`user_id`,`role_id`,`user_type`), ADD KEY `role_user_role_id_foreign` (`role_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `payments` -- ALTER TABLE `payments` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `permissions` -- ALTER TABLE `permissions` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=11; -- -- AUTO_INCREMENT for table `roles` -- ALTER TABLE `roles` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30; -- -- Constraints for dumped tables -- -- -- Constraints for table `permission_role` -- ALTER TABLE `permission_role` ADD CONSTRAINT `permission_role_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, ADD CONSTRAINT `permission_role_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `permission_user` -- ALTER TABLE `permission_user` ADD CONSTRAINT `permission_user_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `role_user` -- ALTER TABLE `role_user` ADD CONSTRAINT `role_user_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE TABLE public.players ( id int4 NOT NULL GENERATED ALWAYS AS IDENTITY, creation_date TIMESTAMPTZ DEFAULT now() NOT NULL, name varchar(200) NOT NULL, games_played int DEFAULT 0, CONSTRAINT player_pkey PRIMARY KEY (id) );
drop table `post`;
<reponame>344147805/topphp-install /** * @copyright 凯拓软件 [临渊羡鱼不如退而结网,凯拓与你一同成长] * @author bai <<EMAIL>> */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for topphp_admin -- ---------------------------- DROP TABLE IF EXISTS `topphp_admin`; CREATE TABLE `topphp_admin` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id', `admin_name` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '管理员用户名', `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '管理员登录密码', `email` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '管理员邮箱', `tel` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '管理员手机号', `is_super_admin` tinyint(2) UNSIGNED NOT NULL DEFAULT 2 COMMENT '是否是超级管理员 2 否 1 是', `login_time` timestamp(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最近一次登录时间', `login_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '最近一次登录IP', `create_time` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间', `update_time` timestamp(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', `delete_time` timestamp(0) NULL DEFAULT NULL COMMENT '删除时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '管理员表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for topphp_user -- ---------------------------- DROP TABLE IF EXISTS `topphp_user`; CREATE TABLE `topphp_user` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id', `open_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT 'open_id', `username` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户名', `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT '用户密码', `nickname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '昵称', `avatar_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '头像', `email` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户邮箱', `tel` varchar(11) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '用户手机号', `sex` tinyint(2) UNSIGNED NULL DEFAULT 2 COMMENT '性别 0 女 1 男 2 保密', `personal_brief` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '个性签名', `integral` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '可用积分', `freeze_integral` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '冻结积分', `balance` decimal(10, 2) UNSIGNED NULL DEFAULT 0.00 COMMENT '用户余额', `freeze_balance` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '冻结余额', `pay_pwd` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '支付密码', `pay_money` decimal(10, 2) UNSIGNED NULL DEFAULT 0.00 COMMENT '用户总消费', `real_money` decimal(10, 2) UNSIGNED NULL DEFAULT 0.00 COMMENT '实际消费(排除退款的)', `vip_level` tinyint(3) UNSIGNED NULL DEFAULT 0 COMMENT '会员等级', `qrcode` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '个人二维码', `login_time` timestamp(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '最近一次登录时间', `login_ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '最近一次登录IP', `state` tinyint(2) NULL DEFAULT 1 COMMENT '用户状态 1 正常 2 锁定 -1 拉黑', `create_time` timestamp(0) NULL DEFAULT NULL COMMENT '注册时间', `update_time` timestamp(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', `delete_time` timestamp(0) NULL DEFAULT NULL COMMENT '删除时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '用户表' ROW_FORMAT = Dynamic; -- ---------------------------- -- Table structure for topphp_version -- ---------------------------- DROP TABLE IF EXISTS `topphp_version`; CREATE TABLE `topphp_version` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'id', `app_id` int(11) NOT NULL DEFAULT -1 COMMENT '应用id -1 无', `app_name` varchar(80) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'topphp' COMMENT '应用名称', `app_type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'server' COMMENT '应用类型 server, android, ios, web, wap, applet', `client_version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '客户端版本号', `allow_lowest_version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '允许的最低版本,低于这个版本,强制更新', `server_version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT '服务端版本号', `channels` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '各发布渠道版本,以逗号分割(或json数据)', `update_type` tinyint(3) UNSIGNED NULL DEFAULT 10 COMMENT '更新类型 10:强制更新 20:一般更新 30:静默更新 40:可忽略更新 50:静默可忽略更新', `update_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '更新描述', `update_log` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL COMMENT '更新日志', `download_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT '' COMMENT '客户端升级下载地址', `state` tinyint(3) UNSIGNED NULL DEFAULT 2 COMMENT '发布状态 1 已上架 2 未上架', `gray_released` tinyint(3) NULL DEFAULT NULL COMMENT '灰度发布 -1 无 1 白名单发布 2 IP发布', `white_list_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '白名单ID集合,以逗号分割', `ip_list` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT 'IP发布集合,以逗号分割', `create_time` timestamp(0) NULL DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci COMMENT = '版本管理表' ROW_FORMAT = Dynamic; SET FOREIGN_KEY_CHECKS = 1;
CREATE PROCEDURE [dbo].[UpdateRateLimit] @Token NVARCHAR(64), @RateLimit INT, @RateLimitRemaining INT, @RateLimitReset DATETIMEOFFSET AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON UPDATE Accounts SET RateLimit = @RateLimit, RateLimitRemaining = @RateLimitRemaining, RateLimitReset = @RateLimitReset FROM GitHubTokens AS g INNER LOOP JOIN Accounts AS a ON (a.Id = g.UserId) WHERE g.Token = @Token AND ( (@RateLimitRemaining < RateLimitRemaining AND RateLimitReset = @RateLimitReset) -- Same window, fewer remaining OR (@RateLimitReset > RateLimitReset ) -- New, future window ) OPTION (FORCE ORDER) END
<reponame>CuriousDrive/Northwind_API<filename>Databases/MySQL/creating_foreign_keys.sql -- first let's list down the foreign keys that we need to make and then write scripts to do that -- categories -- customers -- employees -- orderdetails ALTER TABLE orderdetails ADD FOREIGN KEY (OrderId) REFERENCES Orders(OrderId); ALTER TABLE orderdetails ADD FOREIGN KEY (ProductId) REFERENCES products(ProductId); ALTER TABLE orders ADD CONSTRAINT FK_OrdersCustomers FOREIGN KEY (CustomerId) REFERENCES customers(CustomerId); ALTER TABLE orders ADD CONSTRAINT FK_OrdersEmployees FOREIGN KEY (EmployeeId) REFERENCES employees(EmployeeId); desc orders
CREATE TABLE AfkArena_Heroes ( HeroId bigint NOT NULL IDENTITY ( 1,1 ) , FactionId bigint NOT NULL , HeroRarity nvarchar(25) NOT NULL , HeroImageUrl nvarchar(200) , HeroName nvarchar(50) NOT NULL , TypeId bigint NOT NULL , ClassId bigint NOT NULL , RoleId bigint NOT NULL , CONSTRAINT AfkArena_Heroes_PrimaryKey PRIMARY KEY CLUSTERED (HeroId ASC), CONSTRAINT AfkArena_Heroes_UniqueHeroes UNIQUE (HeroId ASC, HeroRarity ASC, HeroName ASC), CONSTRAINT AfkArena_Heroes_Faction_ForeignKey FOREIGN KEY (FactionId) REFERENCES AfkArena_Factions (FactionId), CONSTRAINT AfkArena_Heroes_Type_ForeignKey FOREIGN KEY (TypeId) REFERENCES AfkArena_Types (TypeId), CONSTRAINT AfkArena_Heroes_Class_ForeignKey FOREIGN KEY (ClassId) REFERENCES AfkArena_Classes (ClassId), CONSTRAINT AfkArena_Heroes_Role_ForeignKey FOREIGN KEY (RoleId) REFERENCES AfkArena_Roles (RoleId) ) GO -- Factions -- - Lightbearers - 1 -- - Maulers - 2 -- - Wilders - 3 -- - Graveborns - 4 -- - Celestials - 5 -- - Hypogeans - 6 -- - Dimensionals - 7 -- -- Types -- - Strength - 1 -- - Intelligence - 2 -- - Agility - 3 -- -- Classes -- - Warrior - 1 -- - Mage - 2 -- - Support - 3 -- - Tank - 4 -- - Ranger - 5 -- -- Roles -- - Burst Damage - 1 -- - AoE - 2 -- - Buffer - 3 -- - Regen - 4 -- - Assassin - 5 -- - Control - 6 -- - Tank - 7 -- - Continuous Damage - 8 -- - Debuffer - 9 INSERT INTO AfkArena_Heroes (FactionId, HeroRarity, HeroImageUrl, HeroName, TypeId, ClassId, RoleId) VALUES (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/3/31/Uhlan.jpg', 'Estrilda - Knight Of Valor', 1, 1, 1), (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/b/b6/Priest.jpg', 'Belinda - Beam Of Hope', 2, 2, 2), (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/2/29/NBH2.jpg', 'Raine - Death''s Denier', 3, 3, 3), (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/0/0a/Rosaline.jpg', 'Rosaline - The Kind', 2, 3, 3), (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/c/c6/OK.jpg', 'Lucius - Lightbringer', 1, 4, 4), (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/1/19/SwordMaster.jpg', 'Thane - The Exalted', 3, 5, 5), (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/c/c5/DevilHunter.jpg', 'Fawkes - Death''s Defeat', 3, 5, 6), (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/b/b7/GK.jpg', 'Hendrik - The Defender', 1, 4, 7), (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/f/fd/Rowan_Icon.png', 'Rowan - The Roamer', 2, 3, 3), (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/f/f4/Longbow.jpg', 'Gwyneth - The Fair Maiden', 1, 5, 8), (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/3/39/Wino.jpg', 'Rigby - The Brewmaster', 1, 1, 7), (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/2/28/NunAssassin.jpg', 'Cecilia - Purger of Sins', 3, 5, 5), (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/9/97/HouseKeeper.jpg', 'Oscar - The True Gentleman', 3, 5, 5), (1, 'Ascended', 'https://static.wikia.nocookie.net/afk-arena/images/5/59/Eluard-Icon.jpg', 'Eluard - Protector of Souls', 2, 2, 2), (1, 'Ascended', '', 'Peggy - The Precious Pearl', 2, 3, 4);
<gh_stars>0 delimiter $$ CREATE TABLE `COMPLETION` ( `player_id` int(11) NOT NULL DEFAULT '0', `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `quest_id` int(11) NOT NULL, `rating` varchar(45) DEFAULT NULL, PRIMARY KEY (`player_id`,`date`,`quest_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8$$
/* Navicat MySQL Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 50726 Source Host : localhost:3306 Source Schema : grade Target Server Type : MySQL Target Server Version : 50726 File Encoding : 65001 Date: 07/03/2020 21:28:58 */ SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for tp_access -- ---------------------------- DROP TABLE IF EXISTS `tp_access`; CREATE TABLE `tp_access` ( `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` mediumint(8) UNSIGNED NOT NULL, `role_id` mediumint(8) UNSIGNED NOT NULL, `details` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = MyISAM AUTO_INCREMENT = 35 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of tp_access -- ---------------------------- INSERT INTO `tp_access` VALUES (1, 19, 2, NULL); INSERT INTO `tp_access` VALUES (2, 20, 4, NULL); INSERT INTO `tp_access` VALUES (3, 21, 5, NULL); INSERT INTO `tp_access` VALUES (4, 24, 1, NULL); INSERT INTO `tp_access` VALUES (5, 25, 3, NULL); INSERT INTO `tp_access` VALUES (6, 19, 3, NULL); INSERT INTO `tp_access` VALUES (7, 21, 4, NULL); INSERT INTO `tp_access` VALUES (8, 19, 1, NULL); -- ---------------------------- -- Table structure for tp_book -- ---------------------------- DROP TABLE IF EXISTS `tp_book`; CREATE TABLE `tp_book` ( `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` mediumint(8) UNSIGNED NOT NULL, `title` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = MyISAM AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of tp_book -- ---------------------------- INSERT INTO `tp_book` VALUES (1, 19, '《莎士比亚》'); INSERT INTO `tp_book` VALUES (2, 20, '《悲惨世界》'); INSERT INTO `tp_book` VALUES (3, 21, '《西游记》'); INSERT INTO `tp_book` VALUES (4, 24, '《红楼梦》'); INSERT INTO `tp_book` VALUES (5, 25, '《圣经》'); INSERT INTO `tp_book` VALUES (6, 26, '《三个代表》'); INSERT INTO `tp_book` VALUES (7, 27, '《国富论》'); INSERT INTO `tp_book` VALUES (8, 29, '《道德情操论》'); INSERT INTO `tp_book` VALUES (9, 79, '《资本论》'); -- ---------------------------- -- Table structure for tp_one -- ---------------------------- DROP TABLE IF EXISTS `tp_one`; CREATE TABLE `tp_one` ( `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自动编号', `user` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '学生名', `math` tinyint(3) UNSIGNED NOT NULL COMMENT '数学成绩', `chinese` tinyint(3) NOT NULL, `english` tinyint(3) NOT NULL, `create_time` datetime(0) NOT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 26 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of tp_one -- ---------------------------- INSERT INTO `tp_one` VALUES (1, '张三', 158, 85, 95, '2016-07-23 09:15:30'); INSERT INTO `tp_one` VALUES (2, '李四', 28, 95, 89, '2016-07-23 09:15:50'); INSERT INTO `tp_one` VALUES (3, '王五', 95, 92, 95, '2016-07-23 09:16:02'); INSERT INTO `tp_one` VALUES (4, '马七', 84, 87, 94, '2016-07-23 09:16:16'); INSERT INTO `tp_one` VALUES (25, '赵八', 88, 88, 78, '2017-03-02 02:45:34'); -- ---------------------------- -- Table structure for tp_profile -- ---------------------------- DROP TABLE IF EXISTS `tp_profile`; CREATE TABLE `tp_profile` ( `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` mediumint(8) NOT NULL, `hobby` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `status` smallint(3) NOT NULL DEFAULT 0, PRIMARY KEY (`id`) USING BTREE ) ENGINE = MyISAM AUTO_INCREMENT = 46 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of tp_profile -- ---------------------------- INSERT INTO `tp_profile` VALUES (1, 19, '喜欢大姐姐', 1); INSERT INTO `tp_profile` VALUES (2, 20, '特爱吃肉', 0); INSERT INTO `tp_profile` VALUES (3, 21, '朽木露琪亚', -1); INSERT INTO `tp_profile` VALUES (4, 24, '暗恋小红', 2); INSERT INTO `tp_profile` VALUES (5, 25, '毕迪丽', 1); INSERT INTO `tp_profile` VALUES (6, 26, '特兰克斯', -1); INSERT INTO `tp_profile` VALUES (7, 27, '琦玉爷爷', 1); INSERT INTO `tp_profile` VALUES (8, 29, '有空就修行', 1); INSERT INTO `tp_profile` VALUES (9, 79, '会长大人', 0); INSERT INTO `tp_profile` VALUES (37, 19, '不喜欢吃青椒', 1); -- ---------------------------- -- Table structure for tp_role -- ---------------------------- DROP TABLE IF EXISTS `tp_role`; CREATE TABLE `tp_role` ( `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT, `type` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, PRIMARY KEY (`id`) USING BTREE ) ENGINE = MyISAM AUTO_INCREMENT = 16 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of tp_role -- ---------------------------- INSERT INTO `tp_role` VALUES (1, '超级管理员'); INSERT INTO `tp_role` VALUES (2, '评论审核专员'); INSERT INTO `tp_role` VALUES (3, '图片监察员'); INSERT INTO `tp_role` VALUES (4, '帐户处理专员'); INSERT INTO `tp_role` VALUES (5, '广告投放专员'); -- ---------------------------- -- Table structure for tp_two -- ---------------------------- DROP TABLE IF EXISTS `tp_two`; CREATE TABLE `tp_two` ( `uid` mediumint(8) UNSIGNED NOT NULL, `gender` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '男', PRIMARY KEY (`uid`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of tp_two -- ---------------------------- INSERT INTO `tp_two` VALUES (1, '男'); INSERT INTO `tp_two` VALUES (2, '女'); INSERT INTO `tp_two` VALUES (3, '男'); INSERT INTO `tp_two` VALUES (4, '男'); INSERT INTO `tp_two` VALUES (25, '女'); -- ---------------------------- -- Table structure for tp_user -- ---------------------------- DROP TABLE IF EXISTS `tp_user`; CREATE TABLE `tp_user` ( `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '自动编号', `username` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `password` char(40) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `gender` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '男', `email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `price` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00, `details` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, `uid` smallint(6) NULL DEFAULT NULL, `status` tinyint(3) NOT NULL DEFAULT 0 COMMENT '状态', `list` json NULL, `delete_time` datetime(0) NULL DEFAULT NULL, `create_time` datetime(0) NOT NULL DEFAULT '1997-01-01 01:01:01' COMMENT '创建时间', `update_time` datetime(0) NOT NULL DEFAULT '1997-01-01 01:01:01' COMMENT '修改时间', PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 302 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; -- ---------------------------- -- Records of tp_user -- ---------------------------- INSERT INTO `tp_user` VALUES (19, '蜡笔小新', '123', '男', '<EMAIL>', 60.00, '123', 1001, -1, NULL, NULL, '2016-06-27 16:45:26', '1997-01-01 01:01:01'); INSERT INTO `tp_user` VALUES (20, '路飞', '123', '男', '<EMAIL>', 70.00, '123', 1002, 0, NULL, NULL, '2016-06-27 16:55:56', '1997-01-01 01:01:01'); INSERT INTO `tp_user` VALUES (21, '黑崎一护', '456', '男', '<EMAIL>', 80.00, '123', 1003, 1, NULL, NULL, '2016-07-27 17:22:16', '1997-01-01 01:01:01'); INSERT INTO `tp_user` VALUES (24, '小明', '123', '男', '<EMAIL>', 90.00, '123', 1004, 2, NULL, NULL, '2016-08-27 23:50:52', '1997-01-01 01:01:01'); INSERT INTO `tp_user` VALUES (25, '孙悟饭', '123', '男', '<EMAIL>', 100.00, '123', 1005, -1, NULL, NULL, '2016-08-28 18:02:53', '1997-01-01 01:01:01'); INSERT INTO `tp_user` VALUES (26, '孙悟天', '123', '男', '<EMAIL>', 110.00, '123', NULL, 0, NULL, NULL, '2016-09-28 22:07:38', '1997-01-01 01:01:01'); INSERT INTO `tp_user` VALUES (27, '樱桃小丸子', '123', '女', '<EMAIL>', 77.00, '123', 1007, 1, NULL, NULL, '2016-10-29 10:53:58', '1997-01-01 01:01:01'); INSERT INTO `tp_user` VALUES (29, '孙悟空', '123', '男', '<EMAIL>', 100.00, '123', 1008, 2, NULL, NULL, '2018-12-11 10:09:36', '1997-01-01 01:01:01'); INSERT INTO `tp_user` VALUES (76, '李白', '123', '男', 'UPPER(EMAIL)', 52.00, '123', 1011, 0, NULL, NULL, '2019-10-28 10:00:39', '2019-12-25 13:28:04'); INSERT INTO `tp_user` VALUES (79, '辉夜', '123', '女', '<EMAIL>', 91.00, '123', 1009, -3, NULL, NULL, '2019-09-20 22:01:42', '1997-01-01 01:01:01'); INSERT INTO `tp_user` VALUES (301, '李黑', '123', '男', '<EMAIL>', 102.00, '123', 2022, 3, NULL, NULL, '1997-01-01 01:01:01', '2020-01-16 17:19:08'); SET FOREIGN_KEY_CHECKS = 1;
<filename>database/migrations/functions/repositories/update_repository.sql -- updates_repository updates the provided repository in the database. create or replace function update_repository(p_user_id uuid, p_repository jsonb) returns void as $$ declare v_repository_id uuid; v_owner_user_id uuid; v_owner_organization_name text; v_disabled boolean; v_scanner_disabled boolean; begin -- Get some information about the repository select repository_id, disabled, scanner_disabled into v_repository_id, v_disabled, v_scanner_disabled from repository r where r.name = p_repository->>'name' for update; -- Get user or organization owning the repository select r.user_id, o.name into v_owner_user_id, v_owner_organization_name from repository r left join organization o using (organization_id) where r.name = p_repository->>'name'; -- Check if the user doing the request is the owner or belongs to the -- organization which owns it if v_owner_organization_name is not null then if not user_belongs_to_organization(p_user_id, v_owner_organization_name) then raise insufficient_privilege; end if; elsif v_owner_user_id <> p_user_id then raise insufficient_privilege; end if; -- Update repository update repository set display_name = nullif(p_repository->>'display_name', ''), url = p_repository->>'url', auth_user = nullif(p_repository->>'auth_user', ''), auth_pass = nullif(p_repository->>'auth_pass', ''), disabled = (p_repository->>'disabled')::boolean, scanner_disabled = (p_repository->>'scanner_disabled')::boolean where repository_id = v_repository_id; -- If the repository has been disabled, remove packages belonging to it if (p_repository->>'disabled')::boolean = true and v_disabled = false then delete from package where repository_id = v_repository_id; end if; -- If security scanning has been disabled, remove existing security reports if (p_repository->>'scanner_disabled')::boolean = true and v_scanner_disabled = false then update snapshot set security_report = null, security_report_created_at = null, security_report_summary = null where package_id in ( select package_id from package where repository_id = v_repository_id ); end if; end $$ language plpgsql;
<gh_stars>1-10 -- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. USE [generate] GO /****** Object: StoredProcedure [App].[Migrate_Data_ETL_IMPLEMENTATION_STEP06_Enrollment] Script Date: 6/1/2018 11:58:31 AM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF EXISTS(SELECT 1 FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_SCHEMA = 'APP' AND ROUTINE_NAME = 'Migrate_Data_ETL_IMPLEMENTATION_STEP06_Enrollment') BEGIN DROP PROCEDURE [App].[Migrate_Data_ETL_IMPLEMENTATION_STEP06_Enrollment] END GO CREATE PROCEDURE [App].[Migrate_Data_ETL_IMPLEMENTATION_STEP06_Enrollment] @SchoolYear SMALLINT = NULL AS BEGIN set nocount on; IF @SchoolYear IS NULL BEGIN SELECT @SchoolYear = d.Year + 1 FROM rds.DimDateDataMigrationTypes dd JOIN rds.DimDates d ON dd.DimDateId = d.DimDateId JOIN rds.DimDataMigrationTypes b ON b.DimDataMigrationTypesId = dd.DataMigrationTypeId WHERE dd.IsSelected = 1 AND DataMigrationTypeCode = 'ODS' END -------------------------------------Begin State Specific Information Section---------------------------------------- --------------------------------------------------------------------------------------------------------------------- ----This section is designed to be unique to each state or ETL instance. The entire ETL past this point has been ---- ----created to work with the data standardized in this location. Do not make any changes to table names or column---- ----names or to any of the code after this section. The only information that should be modified is the source ---- ----of this information and any code mappings from a states custom codes over to the applicable CEDS value ---------- --------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------- /* [App].[Migrate_Data_ETL_IMPLEMENTATION_STEP06_Enrollment] 2018 */ TRUNCATE TABLE Staging.Enrollment INSERT INTO Staging.Enrollment ( Student_Identifier_State ,LEA_Identifier_State ,School_Identifier_State ,EnrollmentEntryDate ,EnrollmentExitDate ,ExitOrWithdrawalType ,GradeLevel ,CohortYear ,CohortGraduationYear ,CohortDescription ,HighSchoolDiplomaType ,PersonID ,OrganizationID_School ,OrganizationPersonRoleId_School ,RunDateTime ,SchoolYear ,NumberOfSchoolDays ,NumberOfDaysAbsent ,AttendanceRate ,PostSecondaryEnrollment ,DiplomaOrCredentialAwardDate ,FoodServiceEligibility ) SELECT DISTINCT REPLACE(s.StudentUniqueId, ' ', '') Student_Identifier_State ,lea.LocalEducationAgencyId LEA_Identifier_State ,edorg.EducationOrganizationId School_Identifier_State ,ssa.EntryDate EnrollmentEntryDate ,ssa.ExitWithdrawDate EnrollmentExitDate ,etd.CodeValue ExitOrWithdrawalType ,d.CodeValue GradeLevel ,NULL ClassOfSchoolYear ,NULL GraduationSchoolYear ,NULL CohortDescription ,diptyD.CodeValue [HighSchoolDiplomaType] ,NULL PersonID ,NULL OrganizationID_School ,NULL OrganizationPersonRoleId_School ,NULL RunDateTime ,@SchoolYear SchoolYear ,NULL NumberOfDaysInAttendance ,NULL NumberOfDaysAbsent ,NULL AttendanceRate ,NULL PostSecondaryEnrollment ,sard.DiplomaAwardDate DiplomaOrCredentialAwardDate ,NULL FoodServiceEligibility FROM [EdFi_Sample_ODS_Data_For_Generate].[edfi].student s JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].StudentSchoolAssociation ssa ON s.StudentUSI = ssa.StudentUSI JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].School sch ON ssa.SchoolId = sch.SchoolId JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].EducationOrganization edorg ON sch.SchoolId = edorg.EducationOrganizationId JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].LocalEducationAgency LEA ON sch.LocalEducationAgencyId = LEA.LocalEducationAgencyId --v3.0 JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].[EducationOrganizationIdentificationCode] seaCode ON seaCode.EducationOrganizationId = edorg.EducationOrganizationId JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].[Descriptor] seaD ON seaD.DescriptorId = seaCode.EducationOrganizationIdentificationSystemDescriptorId and seaD.CodeValue = 'SEA' LEFT JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].Descriptor etd ON ssa.ExitWithdrawTypeDescriptorId = etd.DescriptorId LEFT JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].Descriptor d ON ssa.EntryGradeLevelDescriptorId = d.DescriptorId LEFT JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].StudentAcademicRecordDiploma sard ON s.StudentUSI = sard.StudentUSI LEFT JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].[Descriptor] diptyD ON diptyD.DescriptorId = sard.DiplomaTypeDescriptorId -- food service LEFT JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].StudentSchoolFoodServiceProgramAssociation ssfood ON s.StudentUSI = ssfood.StudentUSI WHERE ssa.EntryDate >= App.GetFiscalYearStartDate(@SchoolYear) AND (ssa.EntryDate IS NULL OR ssa.EntryDate <= App.GetFiscalYearEndDate(@SchoolYear)) -------------------------------------------------------- -- Update FoodServiceEligibility -------------------------------------------------------- UPDATE en SET en.FoodServiceEligibility = d.CodeValue FROM Staging.Enrollment en JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].student s ON s.StudentUniqueId = en.Student_Identifier_State JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].StudentSchoolFoodServiceProgramAssociation ssfood ON s.StudentUSI = ssfood.StudentUSI JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].StudentSchoolFoodServiceProgramAssociationSchoolFoodServiceProgramService ssfoodsrv ON ssfoodsrv.StudentUSI = ssfood.StudentUSI AND ssfoodsrv.BeginDate = ssfood.BeginDate AND ssfoodsrv.EducationOrganizationId = ssfood.EducationOrganizationId AND ssfoodsrv.ProgramEducationOrganizationId = ssfood.ProgramEducationOrganizationId AND ssfoodsrv.ProgramName = ssfood.ProgramName AND ssfoodsrv.ProgramTypeDescriptorId = ssfood.ProgramTypeDescriptorId INNER JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].[Descriptor] d ON d.DescriptorId = ssfoodsrv.SchoolFoodServiceProgramServiceDescriptorId -------------------------------------------------------- -- Update Attendance & Absent Days -------------------------------------------------------- UPDATE en SET [NumberOfDaysAbsent] = AbsentDays FROM Staging.Enrollment en INNER JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].student s ON s.StudentUniqueId = en.Student_Identifier_State INNER JOIN ( SELECT SchoolId, SchoolYear, StudentUSI, SUM(AbsentDays) AbsentDays FROM ( SELECT SchoolId, SchoolYear, StudentUSI, EventDate , CASE WHEN SUM([EventDuration]) >= 0.5 THEN 1 ELSE 0 END AbsentDays FROM [EdFi_Sample_ODS_Data_For_Generate].[edfi].[StudentSchoolAttendanceEvent] stSchAtt INNER JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].[Descriptor] d ON d.DescriptorId = stSchAtt.AttendanceEventCategoryDescriptorId WHERE d.CodeValue <> 'In Attendance' GROUP BY SchoolId, SchoolYear, StudentUSI, EventDate ) d --Check if absent for a day GROUP BY SchoolId, SchoolYear, StudentUSI -- Sum up the absent days for the entire school year ) abDays ON abDays.SchoolId = en.School_Identifier_State AND abDays.SchoolYear = @SchoolYear AND abDays.StudentUSI = s.StudentUSI -------------------------------------------------------- -- Update School Days -------------------------------------------------------- UPDATE en SET NumberOfSchoolDays = calDays.schoolDays FROM Staging.Enrollment en INNER JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].student s ON s.StudentUniqueId = en.Student_Identifier_State INNER JOIN ( SELECT DISTINCT schoolid, SchoolYear, COUNT(Date) schoolDays FROM [EdFi_Sample_ODS_Data_For_Generate].[edfi].[CalendarDateCalendarEvent] calEvent INNER JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].[Descriptor] d ON d.DescriptorId = calEvent.CalendarEventDescriptorId WHERE calEvent.[SchoolYear] = @SchoolYear and (d.CodeValue = 'Instructional day' OR d.CodeValue = 'Make-up day' OR d.CodeValue = 'Student late arrival/early dismissal') group by schoolid, SchoolYear ) calDays ON calDays.SchoolId = en.School_Identifier_State AND calDays.SchoolYear = en.SchoolYear -------------------------------------------------------- -- Update Attendance Rate -------------------------------------------------------- Update en SET AttendanceRate = 1 - CAST(NumberOfDaysAbsent/NumberOfSchoolDays AS decimal(5,4)) FROM Staging.Enrollment en where NumberOfDaysAbsent IS NOT NULL AND (NumberOfSchoolDays IS NOT NULL AND NumberOfSchoolDays <> 0) -------------------------------------------------------- -- Update Post Secondary Enrollment -------------------------------------------------------- Update en SET PostSecondaryEnrollment = CASE WHEN pseCatD.CodeValue = 'College Enrollment' THEN 1 ELSE 0 END FROM Staging.Enrollment en INNER JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].student s ON s.StudentUniqueId = en.Student_Identifier_State JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].PostSecondaryEvent pse ON pse.[StudentUSI] = s.[StudentUSI] JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].Descriptor pseCatD ON pseCatD.DescriptorID = pse.PostSecondaryEventCategoryDescriptorId WHERE Namespace = 'uri://ed-fi.org/PostSecondaryEventCategoryDescriptor' -------------------------------------------------------- -- Update Cohort -------------------------------------------------------- UPDATE en SET CohortYear = YEAR(ssa.EntryDate) ,CohortGraduationYear = ssa.GraduationSchoolYear ,CohortDescription = CASE WHEN stch.EndDate IS NOT NULL THEN 'Alternate Diploma - Removed' --Removed from the cohort ELSE diptyD.CodeValue END FROM Staging.Enrollment en JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].student s ON s.StudentUniqueId = en.Student_Identifier_State JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].StudentSchoolAssociation ssa ON s.StudentUSI = ssa.StudentUSI JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].School sch ON ssa.SchoolId = sch.SchoolId JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].EducationOrganization edorg ON sch.SchoolId = edorg.EducationOrganizationId LEFT JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].StudentAcademicRecordDiploma sard ON s.StudentUSI = sard.StudentUSI LEFT JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].[Descriptor] diptyD on diptyD.DescriptorId = sard.DiplomaTypeDescriptorId LEFT JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].[StudentCohortAssociation] stch ON stch.StudentUSI = ssa.StudentUSI AND stch.EducationOrganizationId = ssa.EducationOrganizationId AND ssa.EntryDate = stch.BeginDate WHERE ssa.EntryDate IS NOT NULL AND ssa.EntryDate >= App.GetFiscalYearStartDate(@SchoolYear) AND ssa.EntryDate <= App.GetFiscalYearEndDate(@SchoolYear) AND (ssa.GraduationSchoolYear IS NOT NULL AND YEAR(ssa.EntryDate) < ssa.GraduationSchoolYear) --AND sard.DiplomaTypeDescriptorId is not null --Create End of Year Enrollment Record For End of Year Reporting with the last known grade level-- --Pull the max grade level if there is a record conflict --INSERT INTO Staging.Enrollment -- (Student_Identifier_State -- ,School_Identifier_State -- ,EnrollmentEntryDate -- ,EnrollmentExitDate -- ,ExitWithdrawType -- ,GradeLevel -- ,CohortYear -- ,CohortGraduationYear -- ,HighSchoolDiplomaType -- ,PersonID -- ,OrganizationID_School -- ,OrganizationPersonRoleId_School -- ,RunDateTime -- ) --SELECT DISTINCT -- REPLACE(s.StudentUniqueId, ' ', '') Student_Identifier_State -- ,edorg.StateOrganizationId School_Identifier_State -- ,App.GetFiscalYearEndDate(@SchoolYear) EnrollmentEntryDate -- ,App.GetFiscalYearEndDate(@SchoolYear) EnrollmentExitDate -- ,ewt.CodeValue ExitWithdrawType -- ,MAX(d.CodeValue) GradeLevel -- ,ssa.ClassOfSchoolYear -- ,ssa.GraduationSchoolYear -- ,dt.CodeValue [HighSchoolDiplomaType] -- ,NULL PersonID -- ,NULL OrganizationID_School -- ,NULL OrganizationPersonRoleId_School -- ,NULL RunDateTime --FROM [EdFi_Sample_ODS_Data_For_Generate].[edfi].student s --JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].StudentSchoolAssociation ssa ON s.StudentUSI = ssa.StudentUSI --JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].School sch ON ssa.SchoolId = sch.SchoolId --JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].EducationOrganization edorg ON sch.SchoolId = edorg.EducationOrganizationId --LEFT JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].ExitWithdrawTypeDescriptor ewtd ON ssa.ExitWithdrawTypeDescriptorId = ewtd.ExitWithdrawTypeDescriptorId --LEFT JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].ExitWithdrawType ewt ON ewtd.ExitWithdrawTypeId = ewt.ExitWithdrawTypeId --JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].Descriptor d ON ssa.EntryGradeLevelDescriptorId = d.DescriptorId --LEFT JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].StudentAcademicRecordDiploma sard ON s.StudentUSI = sard.StudentUSI --LEFT JOIN [EdFi_Sample_ODS_Data_For_Generate].[edfi].DiplomaType dt ON sard.DiplomaTypeID = dt.DiplomaTypeId --WHERE ssa.EntryDate >= App.GetFiscalYearStartDate(@SchoolYear) --AND (ssa.EntryDate IS NULL OR ssa.EntryDate <= App.GetFiscalYearEndDate(@SchoolYear)) --GROUP BY s.StudentUniqueId -- ,edorg.StateOrganizationId -- ,ewt.CodeValue -- ,ssa.ClassOfSchoolYear -- ,ssa.GraduationSchoolYear -- ,dt.CodeValue -- ,ssa.EntryDate --HAVING ssa.EntryDate = MAX(ssa.EntryDate) --------------------------------------------------------------------------------------------------------------------- -------------------------------------End State Specific Information Section------------------------------------------ --------------------------------------------------------------------------------------------------------------------- UPDATE Staging.Enrollment SET RunDateTime = GETDATE() WHERE (SELECT COUNT(*) FROM Staging.Enrollment) > 0 ----Validate Staging.Enrollment---- EXEC App.Migrate_Data_Validation 'Migrate_Data_ETL_IMPLEMENTATION_STEP06_Enrollment', 'Enrollment', @SchoolYear END
-- -------------------------------------------------------- -- -- Table structure for table `tags` -- CREATE TABLE IF NOT EXISTS `tags` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uri` varchar(30) NOT NULL DEFAULT '', `tag_name` varchar(50) NOT NULL DEFAULT '', PRIMARY KEY (`id`), UNIQUE KEY `uri` (`uri`), UNIQUE KEY `name` (`tag_name`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 AUTO_INCREMENT=33 ; -- -------------------------------------------------------- -- -- Table structure for table `news` -- CREATE TABLE IF NOT EXISTS `news` ( `news_id` int(11) NOT NULL AUTO_INCREMENT, `news_date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', `news_author` varchar(15) NOT NULL DEFAULT '', `news_header` varchar(80) NOT NULL DEFAULT '', `news_text` text NOT NULL, PRIMARY KEY (`news_id`), UNIQUE KEY `news_date` (`news_date`), FULLTEXT KEY `news_text` (`news_text`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251 COMMENT='News information' AUTO_INCREMENT=317 ; -- -------------------------------------------------------- -- -- Table structure for table `news_tags` -- CREATE TABLE IF NOT EXISTS `news_tags` ( `nid` int(11) NOT NULL DEFAULT '0', `tid` int(11) NOT NULL DEFAULT '0', PRIMARY KEY (`nid`,`tid`) ) ENGINE=MyISAM DEFAULT CHARSET=cp1251;
ALTER TABLE `Ignore` MODIFY Port VARCHAR(150) NULL; ALTER TABLE `IgnoreAudit` MODIFY Port VARCHAR(150) NULL;
<reponame>ckamtsikis/cmssw CREATE TABLE o2o_log ( object_name VARCHAR2(100), last_id NUMBER, num_transfered NUMBER, transfer_start TIMESTAMP, transfer_duration INTERVAL DAY TO SECOND );
-- start_ignore -- end_ignore -- @description query01 tests that delimiters are disabled when table creation has delimiter 'off' -- select * from hcfs_text_delimiter_off;
ALTER TABLE `lh_users` ADD `cache_version` int(11) unsigned NOT NULL DEFAULT '0', COMMENT='';
SELECT ersub.id,ersub.first_name,ersub.last_name,ersub.title,ersub.department,ersub.salary,CONCAT(msub.first_name,' ',msub.last_name) AS manager FROM (SELECT employees.id,employees.first_name,employees.last_name,rsub.title,rsub.department,rsub.salary,employees.manager_id FROM employees JOIN (select roles.id,roles.title,roles.salary,departments.name AS department from roles JOIN departments ON roles.department_id = departments.id) AS rsub ON employees.role_id=rsub.id) AS ersub LEFT JOIN (SELECT e1.id,e1.first_name,e1.last_name,e2.first_name AS mf,e2.last_name AS ml FROM employees e1 LEFT JOIN employees e2 ON e1.manager_id=e2.id) AS msub ON ersub.manager_id = msub.id ORDER BY id;
<reponame>Bustomii/git_epakan -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 09, 2020 at 03:54 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: `epakan` -- -- -------------------------------------------------------- -- -- Table structure for table `detail_pesanan` -- CREATE TABLE `detail_pesanan` ( `id_detail` int(11) NOT NULL, `id_pesanan` varchar(30) NOT NULL, `id_penjual` int(11) NOT NULL, `id_pembeli` int(11) NOT NULL, `id_produk` int(11) NOT NULL, `harga` int(20) NOT NULL, `ongkir` int(11) NOT NULL, `total_keuntungan` int(11) NOT NULL, `jumlah` int(20) NOT NULL, `alamat_antar` text NOT NULL, `status` enum('belum bayar','diproses','dikirim','diterima','batal','diambil') NOT NULL DEFAULT 'belum bayar', `ambil` tinyint(1) DEFAULT 0, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' ON UPDATE current_timestamp() ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `detail_pesanan` -- INSERT INTO `detail_pesanan` (`id_detail`, `id_pesanan`, `id_penjual`, `id_pembeli`, `id_produk`, `harga`, `ongkir`, `total_keuntungan`, `jumlah`, `alamat_antar`, `status`, `ambil`, `created_at`, `updated_at`) VALUES (325, 'UI190718030114', 34, 49, 42, 1000, 0, 1000, 1, 'Pembeli Mengambil Sendiri Pesanannya', 'belum bayar', 1, '2019-07-18 03:01:19', '2019-07-18 03:01:19'), (326, 'GS190718094952', 34, 30, 43, 115000, 500000, 615000, 1, 'hajakak ,Bumi Waras ,Bandar Lampung', 'belum bayar', 0, '2019-07-18 09:49:55', '2019-07-18 09:49:55'), (330, 'US190729010004', 22, 51, 36, 12000, 15000, 27000, 1, 'Blok C ,Bumi Waras ,Bandar Lampung', 'diterima', 0, '2019-07-29 01:00:10', '2019-07-29 01:02:47'), (329, 'RF190729003016', 22, 51, 36, 12000, 0, 72000, 6, 'Pembeli Mengambil Sendiri Pesanannya', 'dikirim', 1, '2019-07-29 00:30:20', '2020-08-10 11:50:25'), (328, 'CX190729002731', 22, 51, 36, 12000, 0, 12000, 1, 'Pembeli Mengambil Sendiri Pesanannya', 'diproses', 1, '2019-07-29 00:27:33', '2019-07-29 00:29:00'), (327, 'YB190729000623', 22, 51, 36, 12000, 12000, 24000, 1, 'blok C ,Enggal ,Bandar Lampung', 'batal', 0, '2019-07-29 00:06:24', '2019-07-29 00:07:11'), (296, 'ZJ190710085406', 34, 33, 42, 1000, 400000, 401000, 1, ',Tanjung Sari ,Lampung Selatan', 'belum bayar', 0, '2019-07-10 08:54:14', '2019-07-10 08:54:14'), (359, 'RY200908150919', 34, 24, 34, 700000, 12350, 712350, 2, 'Balam', 'belum bayar', 2, '2020-09-08 15:09:19', '2020-09-08 15:09:19'), (356, 'ZY200908103604', 34, 24, 34, 0, 0, 0, 1, 'belum', 'belum bayar', 0, '2020-09-08 10:36:04', '2020-09-08 10:36:04'); -- -------------------------------------------------------- -- -- Table structure for table `kabupaten` -- CREATE TABLE `kabupaten` ( `id_kabupaten` int(11) NOT NULL, `nama` varchar(30) NOT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `kabupaten` -- INSERT INTO `kabupaten` (`id_kabupaten`, `nama`, `created_at`, `updated_at`) VALUES (1, 'Bandar Lampung', '2019-06-28 21:45:22', '2019-06-28 21:45:22'), (2, 'Metro', '2019-06-28 21:47:01', '2019-06-28 21:47:01'), (3, 'Lampung Tengah', '2019-06-28 21:47:25', '2019-06-28 21:47:25'), (4, 'Lampung Utara', '2019-06-28 21:47:57', '2019-06-28 21:47:57'), (5, 'Lampung Timur', '2019-07-02 14:49:33', '2019-07-02 14:49:33'), (6, 'Lampung Selatan', '2019-06-28 21:48:19', '2019-06-28 21:48:19'), (7, 'Tanggamus', '2019-06-28 22:47:02', '2019-06-28 22:47:02'), (8, 'Lampung Barat', '2019-06-28 22:54:57', '2019-06-28 22:54:57'), (9, 'Tulang Bawang', '2019-06-28 22:59:46', '2019-06-28 22:59:46'), (10, '<NAME>', '2019-06-28 23:07:19', '2019-06-28 23:07:19'), (11, 'Pesisir Barat', '2019-06-28 23:14:11', '2019-06-28 23:14:11'), (12, 'Pesawaran', '2019-06-28 23:20:34', '2019-06-28 23:20:34'), (13, 'Tulang Bawang Barat', '2019-06-28 23:24:30', '2019-06-28 23:24:30'), (14, 'Pringsewu', '2019-06-28 23:30:16', '2019-06-28 23:30:16'), (15, 'Mesuji', '2019-06-28 23:36:40', '2019-06-28 23:36:40'); -- -------------------------------------------------------- -- -- Table structure for table `kecamatan` -- CREATE TABLE `kecamatan` ( `id_kecamatan` int(11) NOT NULL, `id_kabupaten` int(11) NOT NULL, `nama` varchar(30) NOT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `kecamatan` -- INSERT INTO `kecamatan` (`id_kecamatan`, `id_kabupaten`, `nama`, `created_at`, `updated_at`) VALUES (1, 1, '<NAME>', '2019-06-28 21:50:49', '2020-08-11 16:09:13'), (2, 1, 'Enggal', '2019-06-28 21:50:49', '2019-06-28 21:50:49'), (3, 1, 'Kedamaian', '2019-06-28 21:51:43', '2019-06-28 21:51:43'), (4, 1, 'Kedaton', '2019-06-28 21:51:43', '2019-06-28 21:51:43'), (5, 1, 'Kemiling', '2019-06-28 21:52:15', '2019-06-28 21:52:15'), (6, 1, '<NAME>', '2019-06-28 21:52:15', '2019-06-28 21:52:15'), (7, 1, 'Langkapura', '2019-06-28 21:54:27', '2019-06-28 21:54:27'), (8, 1, 'Panjang', '2019-06-28 21:54:27', '2019-06-28 21:54:27'), (9, 1, 'Rajabasa', '2019-06-28 21:54:55', '2019-06-28 21:54:55'), (10, 1, 'Sukabumi', '2019-06-28 21:54:55', '2019-06-28 21:54:55'), (11, 1, 'Sukarame', '2019-06-28 21:55:32', '2019-06-28 21:55:32'), (12, 1, '<NAME>', '2019-06-28 21:55:32', '2019-06-28 21:55:32'), (13, 1, '<NAME>', '2019-06-28 21:56:18', '2019-06-28 21:56:18'), (14, 1, '<NAME>', '2019-06-28 21:56:18', '2019-06-28 21:56:18'), (15, 1, '<NAME>', '2019-06-28 21:57:02', '2019-06-28 21:57:02'), (16, 1, 'Telukbetung Barat', '2019-06-28 21:57:02', '2019-06-28 21:57:02'), (17, 1, 'Tel<NAME> Timur', '2019-06-28 21:58:30', '2019-06-28 21:58:30'), (18, 1, 'Teluk Betung Utara', '2019-06-28 21:58:30', '2019-06-28 21:58:30'), (19, 1, 'Way Halim', '2019-06-28 21:58:53', '2019-06-28 21:58:53'), (20, 2, 'Metro Barat', '2019-06-28 22:01:22', '2019-06-28 22:01:22'), (21, 2, 'Metro Pusat', '2019-06-28 22:01:22', '2019-06-28 22:01:22'), (22, 2, 'Metro Selatan', '2019-06-28 22:03:40', '2019-06-28 22:03:40'), (23, 2, 'Metro Timur', '2019-06-28 22:03:40', '2019-06-28 22:03:40'), (24, 2, 'Metro Utara', '2019-06-28 22:04:09', '2019-06-28 22:04:09'), (25, 3, '<NAME>', '2019-06-28 22:06:39', '2019-06-28 22:06:39'), (26, 3, '<NAME>', '2019-06-28 22:06:39', '2019-06-28 22:06:39'), (27, 3, '<NAME>', '2019-06-28 22:07:10', '2019-06-28 22:07:10'), (28, 3, '<NAME>', '2019-06-28 22:07:10', '2019-06-28 22:07:10'), (29, 3, '<NAME>', '2019-06-28 22:07:35', '2019-06-28 22:07:35'), (30, 3, 'Bekri', '2019-06-28 22:07:35', '2019-06-28 22:07:35'), (31, 3, '<NAME>', '2019-06-28 22:08:10', '2019-06-28 22:08:10'), (32, 3, '<NAME>', '2019-06-28 22:08:10', '2019-06-28 22:08:10'), (33, 3, '<NAME>', '2019-06-28 22:08:55', '2019-06-28 22:08:55'), (34, 3, 'Kalirejo', '2019-06-28 22:08:55', '2019-06-28 22:08:55'), (35, 3, '<NAME>', '2019-06-28 22:09:26', '2019-06-28 22:09:26'), (36, 3, '<NAME>', '2019-06-28 22:09:26', '2019-06-28 22:09:26'), (37, 3, 'Pubian', '2019-06-28 22:09:53', '2019-06-28 22:09:53'), (38, 3, 'Punggur', '2019-06-28 22:09:53', '2019-06-28 22:09:53'), (39, 3, '<NAME>', '2019-06-28 22:10:25', '2019-06-28 22:10:25'), (40, 3, 'Rumbia', '2019-06-28 22:10:25', '2019-06-28 22:10:25'), (41, 3, '<NAME>', '2019-06-28 22:11:44', '2019-06-28 22:11:44'), (42, 3, '<NAME>', '2019-06-28 22:11:44', '2019-06-28 22:11:44'), (43, 3, 'Seputih Agung', '2019-06-28 22:12:21', '2019-06-28 22:12:21'), (44, 3, 'Seputih Banyak', '2019-06-28 22:12:21', '2019-06-28 22:12:21'), (45, 3, 'Seputih Mataram', '2019-06-28 22:12:53', '2019-06-28 22:12:53'), (46, 3, 'Seputih Raman', '2019-06-28 22:12:53', '2019-06-28 22:12:53'), (47, 3, 'Seputih Surabaya', '2019-06-28 22:13:28', '2019-06-28 22:13:28'), (48, 3, 'Terbanggi Besar', '2019-06-28 22:13:28', '2019-06-28 22:13:28'), (49, 3, 'Terusan Nunyai', '2019-06-28 22:13:51', '2019-06-28 22:13:51'), (50, 4, 'Abung Barat', '2019-06-28 22:14:39', '2019-06-28 22:14:39'), (51, 4, 'Abung Kunang', '2019-06-28 22:14:39', '2019-06-28 22:14:39'), (52, 4, '<NAME>', '2019-06-28 22:15:12', '2019-06-28 22:15:12'), (53, 4, '<NAME>', '2019-06-28 22:15:12', '2019-06-28 22:15:12'), (54, 4, '<NAME>', '2019-06-28 22:15:46', '2019-06-28 22:15:46'), (55, 4, '<NAME>', '2019-06-28 22:15:46', '2019-06-28 22:15:46'), (56, 4, '<NAME>', '2019-06-28 22:16:51', '2019-06-28 22:16:51'), (57, 4, '<NAME>', '2019-06-28 22:16:51', '2019-06-28 22:16:51'), (58, 4, '<NAME>', '2019-06-28 22:17:41', '2019-06-28 22:17:41'), (59, 4, '<NAME>', '2019-06-28 22:17:41', '2019-06-28 22:17:41'), (60, 4, '<NAME>', '2019-06-28 22:18:16', '2019-06-28 22:18:16'), (61, 4, 'Bunga Mayang', '2019-06-28 22:18:16', '2019-06-28 22:18:16'), (62, 4, 'Hulu Sungkai', '2019-06-28 22:18:43', '2019-06-28 22:18:43'), (63, 4, 'Kotabumi', '2019-06-28 22:18:43', '2019-06-28 22:18:43'), (64, 4, 'Kotabumi Selatan', '2019-06-28 22:19:29', '2019-06-28 22:19:29'), (65, 4, 'Kotabumi Utara', '2019-06-28 22:19:29', '2019-06-28 22:19:29'), (66, 4, 'Muara Sungkai', '2019-06-28 22:21:34', '2019-06-28 22:21:34'), (67, 4, 'Sungkai Barat', '2019-06-28 22:21:34', '2019-06-28 22:21:34'), (68, 4, 'Sungkai Jaya', '2019-06-28 22:22:57', '2019-06-28 22:22:57'), (69, 4, 'Sungkai Selatan', '2019-06-28 22:22:57', '2019-06-28 22:22:57'), (70, 4, 'Sungkai Tengah', '2019-06-28 22:23:31', '2019-06-28 22:23:31'), (71, 4, 'Sungkai Utara', '2019-06-28 22:23:31', '2019-06-28 22:23:31'), (72, 4, 'S<NAME>', '2019-06-28 22:23:57', '2019-06-28 22:23:57'), (73, 5, '<NAME>', '2019-06-28 22:25:04', '2019-06-28 22:25:04'), (74, 5, 'Batanghari', '2019-06-28 22:25:04', '2019-06-28 22:25:04'), (75, 5, '<NAME>', '2019-06-28 22:25:49', '2019-06-28 22:25:49'), (76, 5, 'B<NAME>', '2019-06-28 22:25:49', '2019-06-28 22:25:49'), (77, 5, 'B<NAME>', '2019-06-28 22:26:19', '2019-06-28 22:26:19'), (78, 5, 'Gunung Pelindung', '2019-06-28 22:26:19', '2019-06-28 22:26:19'), (79, 5, 'Jabung', '2019-06-28 22:26:43', '2019-06-28 22:26:43'), (80, 5, '<NAME>', '2019-06-28 22:26:43', '2019-06-28 22:26:43'), (81, 5, '<NAME>', '2019-06-28 22:27:14', '2019-06-28 22:27:14'), (82, 5, '<NAME>', '2019-06-28 22:27:14', '2019-06-28 22:27:14'), (83, 5, '<NAME>', '2019-06-28 22:27:47', '2019-06-28 22:27:47'), (84, 5, '<NAME>', '2019-06-28 22:27:47', '2019-06-28 22:27:47'), (85, 5, 'Melinting', '2019-06-28 22:28:12', '2019-06-28 22:28:12'), (86, 5, 'Metro Kibang', '2019-06-28 22:28:12', '2019-06-28 22:28:12'), (87, 5, '<NAME>', '2019-06-28 22:28:46', '2019-06-28 22:28:46'), (88, 5, 'Pekalongan', '2019-06-28 22:28:46', '2019-06-28 22:28:46'), (89, 5, 'Purbolinggo', '2019-06-28 22:29:32', '2019-06-28 22:29:32'), (90, 5, 'R<NAME>a', '2019-06-28 22:29:32', '2019-06-28 22:29:32'), (91, 5, 'Sekampung', '2019-06-28 22:30:12', '2019-06-28 22:30:12'), (92, 5, '<NAME>', '2019-06-28 22:30:12', '2019-06-28 22:30:12'), (93, 5, 'Sukadana', '2019-06-28 22:30:42', '2019-06-28 22:30:42'), (94, 5, '<NAME>', '2019-06-28 22:30:42', '2019-06-28 22:30:42'), (95, 5, 'Way Bungur', '2019-06-28 22:31:18', '2019-06-28 22:31:18'), (96, 5, 'Way Jepara', '2019-06-28 22:31:18', '2019-06-28 22:31:18'), (97, 6, 'Bakauheni', '2019-06-28 22:31:55', '2019-06-28 22:31:55'), (98, 6, 'Candipuro', '2019-06-28 22:31:55', '2019-06-28 22:31:55'), (99, 6, '<NAME>', '2019-06-28 22:32:48', '2019-06-28 22:32:48'), (100, 6, 'Kalianda', '2019-06-28 22:32:48', '2019-06-28 22:32:48'), (101, 6, 'Katibung', '2019-06-28 22:33:22', '2019-06-28 22:33:22'), (102, 6, 'Ketapang', '2019-06-28 22:33:22', '2019-06-28 22:33:22'), (103, 6, '<NAME>', '2019-06-28 22:34:39', '2019-06-28 22:34:39'), (104, 6, 'Natar', '2019-06-28 22:34:39', '2019-06-28 22:34:39'), (105, 6, 'Palas', '2019-06-28 22:35:12', '2019-06-28 22:35:12'), (106, 6, 'Penengahan', '2019-06-28 22:35:12', '2019-06-28 22:35:12'), (107, 6, 'Rajabasa', '2019-06-28 22:35:48', '2019-06-28 22:35:48'), (108, 6, 'Sidomulyo', '2019-06-28 22:35:48', '2019-06-28 22:35:48'), (109, 6, 'Sragi', '2019-06-28 22:37:35', '2019-06-28 22:37:35'), (110, 6, '<NAME>', '2019-06-28 22:37:35', '2019-06-28 22:37:35'), (111, 6, '<NAME>', '2019-06-28 22:38:27', '2019-06-28 22:38:27'), (112, 6, 'Way Panji', '2019-06-28 22:38:27', '2019-06-28 22:38:27'), (113, 6, '<NAME>', '2019-06-28 22:38:51', '2019-06-28 22:38:51'), (114, 7, 'Air Naningan', '2019-06-28 22:48:15', '2019-06-28 22:48:15'), (115, 7, '<NAME>', '2019-06-28 22:48:15', '2019-06-28 22:48:15'), (116, 7, 'Bulok', '2019-06-28 22:48:43', '2019-06-28 22:48:43'), (117, 7, '<NAME>', '2019-06-28 22:48:43', '2019-06-28 22:48:43'), (118, 7, 'Gisting', '2019-06-28 22:49:16', '2019-06-28 22:49:16'), (119, 7, '<NAME>', '2019-06-28 22:49:16', '2019-06-28 22:49:16'), (120, 7, 'Kelumbayan', '2019-06-28 22:50:04', '2019-06-28 22:50:04'), (121, 7, '<NAME>', '2019-06-28 22:50:04', '2019-06-28 22:50:04'), (122, 7, 'Kota Agung', '2019-06-28 22:50:38', '2019-06-28 22:50:38'), (123, 7, 'Kota Agung Barat', '2019-06-28 22:50:38', '2019-06-28 22:50:38'), (124, 7, 'Kota Agung Timur', '2019-06-28 22:51:18', '2019-06-28 22:51:18'), (125, 7, 'Limau', '2019-06-28 22:51:18', '2019-06-28 22:51:18'), (126, 7, 'Pematang Sawa', '2019-06-28 22:51:59', '2019-06-28 22:51:59'), (127, 7, 'Pugung', '2019-06-28 22:51:59', '2019-06-28 22:51:59'), (128, 7, '<NAME>', '2019-06-28 22:52:30', '2019-06-28 22:52:30'), (129, 7, 'Semaka', '2019-06-28 22:52:30', '2019-06-28 22:52:30'), (130, 7, '<NAME>', '2019-06-28 22:53:09', '2019-06-28 22:53:09'), (131, 7, '<NAME>', '2019-06-28 22:53:09', '2019-06-28 22:53:09'), (132, 7, 'Ulu Belu', '2019-06-28 22:54:00', '2019-06-28 22:54:00'), (133, 7, 'Wonosobo', '2019-06-28 22:54:00', '2019-06-28 22:54:00'), (134, 8, 'Air Hitam', '2019-06-28 22:55:36', '2019-06-28 22:55:36'), (135, 8, '<NAME>', '2019-06-28 22:55:36', '2019-06-28 22:55:36'), (136, 8, '<NAME>', '2019-06-28 22:56:07', '2019-06-28 22:56:07'), (137, 8, '<NAME>', '2019-06-28 22:56:07', '2019-06-28 22:56:07'), (138, 8, '<NAME>', '2019-06-28 22:56:31', '2019-06-28 22:56:31'), (139, 8, 'Belalau', '2019-06-28 22:56:31', '2019-06-28 22:56:31'), (140, 8, '<NAME>', '2019-06-28 22:57:15', '2019-06-28 22:57:15'), (141, 8, '<NAME>', '2019-06-28 22:57:15', '2019-06-28 22:57:15'), (142, 8, 'Lumbok Seminung', '2019-06-28 22:57:50', '2019-06-28 22:57:50'), (143, 8, '<NAME>', '2019-06-28 22:57:50', '2019-06-28 22:57:50'), (144, 8, 'Sekincau', '2019-06-28 22:58:15', '2019-06-28 22:58:15'), (145, 8, 'Sukau', '2019-06-28 22:58:15', '2019-06-28 22:58:15'), (146, 8, 'S<NAME>', '2019-06-28 22:58:43', '2019-06-28 22:58:43'), (147, 8, 'Suoh', '2019-06-28 22:58:43', '2019-06-28 22:58:43'), (148, 8, '<NAME>', '2019-06-28 22:59:07', '2019-06-28 22:59:07'), (149, 9, '<NAME>', '2019-06-28 23:00:57', '2019-06-28 23:00:57'), (150, 9, '<NAME>', '2019-06-28 23:00:57', '2019-06-28 23:00:57'), (151, 9, '<NAME>', '2019-06-28 23:01:39', '2019-06-28 23:01:39'), (152, 9, '<NAME>', '2019-06-28 23:01:39', '2019-06-28 23:01:39'), (153, 9, '<NAME>', '2019-06-28 23:02:13', '2019-06-28 23:02:13'), (154, 9, '<NAME>', '2019-06-28 23:02:13', '2019-06-28 23:02:13'), (155, 9, '<NAME>', '2019-06-28 23:03:35', '2019-06-28 23:03:35'), (156, 9, 'Menggala', '2019-06-28 23:03:35', '2019-06-28 23:03:35'), (157, 9, '<NAME>', '2019-06-28 23:04:11', '2019-06-28 23:04:11'), (158, 9, '<NAME>', '2019-06-28 23:04:11', '2019-06-28 23:04:11'), (159, 9, '<NAME>', '2019-06-28 23:04:54', '2019-06-28 23:04:54'), (160, 9, 'Pen<NAME>', '2019-06-28 23:04:54', '2019-06-28 23:04:54'), (161, 9, '<NAME> Selatan', '2019-06-28 23:05:55', '2019-06-28 23:05:55'), (162, 9, 'Rawa Jitu Timur', '2019-06-28 23:05:55', '2019-06-28 23:05:55'), (163, 9, 'Rawapitu', '2019-06-28 23:06:41', '2019-06-28 23:06:41'), (164, 10, 'Bahuga', '2019-06-28 23:08:19', '2019-06-28 23:08:19'), (165, 10, 'Banjit', '2019-06-28 23:08:19', '2019-06-28 23:08:19'), (166, 10, 'Baradatu', '2019-06-28 23:08:51', '2019-06-28 23:08:51'), (167, 10, 'Blambangan Umpu', '2019-06-28 23:08:51', '2019-06-28 23:08:51'), (168, 10, '<NAME>', '2019-06-28 23:09:25', '2019-06-28 23:09:25'), (169, 10, '<NAME>', '2019-06-28 23:09:25', '2019-06-28 23:09:25'), (170, 10, '<NAME>', '2019-06-28 23:09:57', '2019-06-28 23:09:57'), (171, 10, 'Kasui', '2019-06-28 23:09:57', '2019-06-28 23:09:57'), (172, 10, '<NAME>', '2019-06-28 23:11:07', '2019-06-28 23:11:07'), (173, 10, '<NAME>', '2019-06-28 23:11:07', '2019-06-28 23:11:07'), (174, 10, '<NAME>', '2019-06-28 23:11:57', '2019-06-28 23:11:57'), (175, 10, '<NAME>', '2019-06-28 23:11:57', '2019-06-28 23:11:57'), (176, 10, '<NAME>', '2019-06-28 23:12:35', '2019-06-28 23:12:35'), (177, 10, 'Way Tuba', '2019-06-28 23:12:35', '2019-06-28 23:12:35'), (178, 11, 'Bengkunat', '2019-06-28 23:16:47', '2019-06-28 23:16:47'), (179, 11, 'Karya Penggawa', '2019-06-28 23:16:47', '2019-06-28 23:16:47'), (180, 11, '<NAME>', '2019-06-28 23:17:18', '2019-06-28 23:17:18'), (181, 11, 'Lemong', '2019-06-28 23:17:18', '2019-06-28 23:17:18'), (182, 11, 'Ngambur', '2019-06-28 23:17:53', '2019-06-28 23:17:53'), (183, 11, 'Ngaras', '2019-06-28 23:17:53', '2019-06-28 23:17:53'), (184, 11, '<NAME>', '2019-06-28 23:18:53', '2019-06-28 23:18:53'), (185, 11, '<NAME>', '2019-06-28 23:18:53', '2019-06-28 23:18:53'), (186, 11, '<NAME>', '2019-06-28 23:19:28', '2019-06-28 23:19:28'), (187, 11, '<NAME>', '2019-06-28 23:19:28', '2019-06-28 23:19:28'), (188, 11, '<NAME>', '2019-06-28 23:19:48', '2019-06-28 23:19:48'), (189, 12, '<NAME>', '2019-06-28 23:21:27', '2019-06-28 23:21:27'), (190, 12, 'Kedondong', '2019-06-28 23:21:27', '2019-06-28 23:21:27'), (191, 12, '<NAME>', '2019-06-28 23:21:53', '2019-06-28 23:21:53'), (192, 12, '<NAME>', '2019-06-28 23:21:53', '2019-06-28 23:21:53'), (193, 12, '<NAME>', '2019-06-28 23:22:36', '2019-06-28 23:22:36'), (194, 12, '<NAME>', '2019-06-28 23:22:36', '2019-06-28 23:22:36'), (195, 12, 'Tegineneng', '2019-06-28 23:23:06', '2019-06-28 23:23:06'), (196, 12, '<NAME>', '2019-06-28 23:23:06', '2019-06-28 23:23:06'), (197, 12, 'Way Khilau', '2019-06-28 23:23:34', '2019-06-28 23:23:34'), (198, 12, 'Way Lima', '2019-06-28 23:23:34', '2019-06-28 23:23:34'), (199, 12, 'Way Ratai', '2019-06-28 23:23:52', '2019-06-28 23:23:52'), (200, 13, '<NAME>', '2019-06-28 23:26:13', '2019-06-28 23:26:13'), (201, 13, 'Gunung Agung', '2019-06-28 23:26:13', '2019-06-28 23:26:13'), (202, 13, 'Gunung Terang', '2019-06-28 23:26:47', '2019-06-28 23:26:47'), (203, 13, '<NAME>', '2019-06-28 23:26:47', '2019-06-28 23:26:47'), (204, 13, '<NAME>', '2019-06-28 23:27:24', '2019-06-28 23:27:24'), (205, 13, 'Tulang Bawang Tengah', '2019-06-28 23:27:24', '2019-06-28 23:27:24'), (206, 13, 'Tulang Bawang Udik', '2019-06-28 23:28:13', '2019-06-28 23:28:13'), (207, 13, 'Tumijajar', '2019-06-28 23:28:13', '2019-06-28 23:28:13'), (208, 13, '<NAME>', '2019-06-28 23:29:31', '2019-06-28 23:29:31'), (209, 14, 'Adiluwih', '2019-06-28 23:32:51', '2019-06-28 23:32:51'), (210, 14, 'Ambarawa', '2019-06-28 23:32:51', '2019-06-28 23:32:51'), (211, 14, 'Banyumas', '2019-06-28 23:33:31', '2019-06-28 23:33:31'), (212, 14, '<NAME>', '2019-06-28 23:33:31', '2019-06-28 23:34:13'), (213, 14, 'Pagelaran', '2019-06-28 23:35:04', '2019-06-28 23:35:04'), (214, 14, '<NAME>', '2019-06-28 23:35:04', '2019-06-28 23:35:04'), (215, 14, 'Pardasuka', '2019-06-28 23:35:45', '2019-06-28 23:35:45'), (216, 14, 'Pringsewu', '2019-06-28 23:35:45', '2019-06-28 23:35:45'), (217, 14, 'Sukoharjo', '2019-06-28 23:36:06', '2019-06-28 23:36:06'), (218, 15, 'Mesuji', '2019-06-28 23:37:44', '2019-06-28 23:37:44'), (219, 15, '<NAME>', '2019-06-28 23:37:44', '2019-06-28 23:37:44'), (220, 15, '<NAME>', '2019-06-28 23:38:40', '2019-06-28 23:38:40'), (221, 15, 'Raw<NAME>', '2019-06-28 23:38:40', '2019-06-28 23:38:40'), (222, 15, '<NAME>', '2019-06-28 23:39:22', '2019-06-28 23:39:22'), (223, 15, 'T<NAME>', '2019-06-28 23:39:22', '2019-06-28 23:39:22'), (224, 15, 'Way Serdang', '2019-06-28 23:39:40', '2019-06-28 23:39:40'), (225, 1, '<NAME>', '2019-06-28 23:57:21', '2019-06-28 23:57:21'), (226, 3, 'Trimurjo', '2019-06-29 00:05:56', '2019-06-29 00:05:56'), (227, 3, 'Way Pangubuan', '2019-06-29 00:05:56', '2019-06-29 00:05:56'), (228, 3, 'Way Seputih', '2019-06-29 00:07:07', '2019-06-29 00:07:07'); -- -------------------------------------------------------- -- -- Table structure for table `keranjang` -- CREATE TABLE `keranjang` ( `id_keranjang` int(11) NOT NULL, `id_produk` int(11) NOT NULL, `jumlah` int(20) NOT NULL, `id_pengguna` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `keranjang` -- INSERT INTO `keranjang` (`id_keranjang`, `id_produk`, `jumlah`, `id_pengguna`, `created_at`, `updated_at`) VALUES (122, 41, 1, 24, '2020-08-13 06:29:38', '2020-08-13 06:29:38'), (123, 35, 1, 24, '2020-08-17 09:28:00', '2020-08-17 09:28:00'); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2016_06_01_000001_create_oauth_auth_codes_table', 1), (2, '2016_06_01_000002_create_oauth_access_tokens_table', 2), (3, '2016_06_01_000003_create_oauth_refresh_tokens_table', 3), (4, '2016_06_01_000004_create_oauth_clients_table', 4), (5, '2016_06_01_000005_create_oauth_personal_access_clients_table', 5); -- -------------------------------------------------------- -- -- Table structure for table `notifikasi` -- CREATE TABLE `notifikasi` ( `id_notifikasi` int(11) NOT NULL, `id_pesanan` varchar(30) NOT NULL, `id_produk` int(11) NOT NULL, `isi` text NOT NULL, `status` enum('dilihat','belum') NOT NULL, `id_pengguna` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `notifikasi` -- INSERT INTO `notifikasi` (`id_notifikasi`, `id_pesanan`, `id_produk`, `isi`, `status`, `id_pengguna`, `created_at`, `updated_at`) VALUES (26, 'US190729010004', 36, 'Pesanan Telah Diterima', 'dilihat', 51, '2019-07-28 18:02:30', '2019-07-28 18:03:04'), (25, 'US190729010004', 36, 'Pesanan Telah Diterima Oleh Pembeli', 'belum', 22, '2019-07-28 18:00:09', '2019-07-28 18:02:48'), (24, 'RF190729003016', 36, 'Ada Pesanan Masuk', 'belum', 22, '2019-07-28 17:30:20', '2019-07-28 17:30:20'), (23, 'CX190729002731', 36, 'Ada Pesanan Masuk', 'belum', 22, '2019-07-28 17:27:33', '2019-07-28 17:27:33'), (22, 'YB190729000623', 36, 'Pesanan Dibatalkan', 'dilihat', 51, '2019-07-28 17:07:11', '2019-07-28 18:04:05'), (21, 'YB190729000623', 36, 'Pesanan Dibatalkan', 'belum', 22, '2019-07-28 17:06:24', '2019-07-28 17:07:11'); -- -------------------------------------------------------- -- -- Table structure for table `oauth_access_tokens` -- CREATE TABLE `oauth_access_tokens` ( `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `user_id` int(11) DEFAULT NULL, `client_id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `scopes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `revoked` tinyint(1) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `expires_at` datetime DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `oauth_access_tokens` -- INSERT INTO `oauth_access_tokens` (`id`, `user_id`, `client_id`, `name`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) VALUES ('32483859676f62987b7b46ec58e719538633226f9ee3ab251802038ec94dc20b7525ae156f60be31', 44, 1, 'MyApp', '[]', 0, '2019-07-23 16:40:38', '2019-07-23 16:40:38', '2020-07-23 23:40:38'), ('db4f4ee6e73d682e0ffd54e3a8d4ba51411d3d186bf087018bb992eaca853cc5e06ffae06aa74818', 50, 1, 'MyApp', '[]', 0, '2019-07-28 16:48:04', '2019-07-28 16:48:04', '2020-07-28 23:48:04'), ('7e30952d5d4a2d72463473e1d4152f37b47a26714852e7920aa757168f2e886ca3a0157e2238ec70', 51, 1, 'MyApp', '[]', 0, '2019-07-28 16:58:44', '2019-07-28 16:58:44', '2020-07-28 23:58:44'), ('491238cb830a4cb62b2950de52fe5b74de9c3df0ad722c8cf2f9fc839a841f33cf707ba64803e9c9', 52, 1, 'MyApp', '[]', 0, '2019-07-29 17:33:38', '2019-07-29 17:33:38', '2020-07-30 00:33:38'), ('d1be2fce3f48b6bf639781af6d4564a7d2d6fc4cf4b65c510f2552f043509a3207c2a7e1f1b78c99', 24, 1, 'MyApp', '[]', 0, '2019-07-29 09:32:14', '2019-07-29 09:32:14', '2020-07-29 16:32:14'), ('665d5129782c4ad0b2098ac646983042416e4f862eb772d0831fa2976188533d26034b3de85efec4', 53, 1, 'MyApp', '[]', 0, '2019-07-30 15:48:44', '2019-07-30 15:48:44', '2020-07-30 22:48:44'); -- -------------------------------------------------------- -- -- Table structure for table `oauth_auth_codes` -- CREATE TABLE `oauth_auth_codes` ( `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `user_id` int(11) NOT NULL, `client_id` int(10) UNSIGNED NOT NULL, `scopes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL, `revoked` tinyint(1) NOT NULL, `expires_at` datetime DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `oauth_clients` -- CREATE TABLE `oauth_clients` ( `id` int(10) UNSIGNED NOT NULL, `user_id` int(11) DEFAULT NULL, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `secret` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `redirect` text COLLATE utf8mb4_unicode_ci NOT NULL, `personal_access_client` tinyint(1) NOT NULL, `password_client` tinyint(1) NOT NULL, `revoked` tinyint(1) NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `oauth_clients` -- INSERT INTO `oauth_clients` (`id`, `user_id`, `name`, `secret`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `created_at`, `updated_at`) VALUES (1, NULL, 'Laravel Personal Access Client', 'drpakU9ZW8NwqMGjrWbiFhq361wJftQu3p1OGyZh', 'http://localhost', 1, 0, 0, '2019-07-22 12:12:54', '2019-07-22 12:12:54'), (2, NULL, 'Laravel Password Grant Client', 'XrdAJsItnGhjtIDx3KFDWTSLT0z92WMxctjTtK7p', 'http://localhost', 0, 1, 0, '2019-07-22 12:12:54', '2019-07-22 12:12:54'); -- -------------------------------------------------------- -- -- Table structure for table `oauth_personal_access_clients` -- CREATE TABLE `oauth_personal_access_clients` ( `id` int(10) UNSIGNED NOT NULL, `client_id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `oauth_personal_access_clients` -- INSERT INTO `oauth_personal_access_clients` (`id`, `client_id`, `created_at`, `updated_at`) VALUES (1, 1, '2019-07-22 12:12:54', '2019-07-22 12:12:54'); -- -------------------------------------------------------- -- -- Table structure for table `oauth_refresh_tokens` -- CREATE TABLE `oauth_refresh_tokens` ( `id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `access_token_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `revoked` tinyint(1) NOT NULL, `expires_at` datetime DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `ongkir` -- CREATE TABLE `ongkir` ( `id_ongkir` int(11) NOT NULL, `id_kecamatan` int(11) NOT NULL, `id_penjual` int(11) NOT NULL, `ongkir` int(8) NOT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `ongkir` -- INSERT INTO `ongkir` (`id_ongkir`, `id_kecamatan`, `id_penjual`, `ongkir`, `created_at`, `updated_at`) VALUES (165, 81, 24, 2323341, '2020-09-05 18:24:20', '2020-09-05 18:24:20'), (175, 20, 56, 12322236, '2020-09-08 15:06:25', '2020-09-08 15:06:25'), (162, 107, 24, 2423122, '2020-09-05 18:17:37', '2020-09-05 18:17:37'), (176, 6, 24, 2434678, '2020-09-09 11:20:47', '2020-09-09 11:20:47'), (170, 17, 24, 12345, '2020-09-07 01:39:39', '2020-09-07 01:39:39'), (160, 34, 24, 123543534, '2020-09-05 17:52:00', '2020-09-05 18:03:06'), (161, 2, 24, 12354, '2020-09-05 17:53:32', '2020-09-07 02:02:09'), (172, 4, 24, 11111, '2020-09-07 02:10:34', '2020-09-07 02:10:34'), (173, 5, 24, 100, '2020-09-07 02:13:06', '2020-09-07 02:16:48'), (156, 1, 24, 1235000, '2020-09-05 13:52:39', '2020-09-09 11:21:24'), (171, 3, 24, 19000, '2020-09-07 02:05:02', '2020-09-07 02:05:02'); -- -------------------------------------------------------- -- -- Table structure for table `operator` -- CREATE TABLE `operator` ( `id` int(11) NOT NULL, `email` varchar(30) NOT NULL, `password` text NOT NULL, `remember_token` varchar(100) NOT NULL, `token` text NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `operator` -- INSERT INTO `operator` (`id`, `email`, `password`, `remember_token`, `token`, `created_at`, `updated_at`) VALUES (1, '<EMAIL>', <PASSWORD>Ulvt0jD6', '', 'eKTgKVvKkq8:APA91bHDzisTC2ufDAZU6lkVDryRfoKvFMTpOkaeKmUVZopXtXw6l5lY3XXkqDd8cGLquuTJIbYPvckHVQwZn6w9V3m0apaa2qk4Tqc7u0YpTlBagxporxKMbeiAqImYdHwwzx9VoLzL', '2019-05-29 07:15:38', '2019-07-14 12:16:19'); -- -------------------------------------------------------- -- -- Table structure for table `pengguna` -- CREATE TABLE `pengguna` ( `id` int(11) NOT NULL, `nama` varchar(30) NOT NULL, `no_telp` varchar(12) NOT NULL, `token` text DEFAULT NULL, `alamat` text DEFAULT NULL, `daerah` enum('Bandar Lampung','Metro','Lampung Barat','Lampung Selatan','Lampung Tengah','Lampung Timur','Lampung Utara','Mesuji','Pesawaran','Pringsewu','Tanggamus','Tulang Bawang','Tulang Bawang Barat','Way Kanan','Pesisir Barat') DEFAULT NULL, `foto` varchar(100) DEFAULT 'Logo.jpg', `saldo` int(10) DEFAULT 0, `created_at` timestamp NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `updated_at` timestamp NULL DEFAULT '0000-00-00 00:00:00', `email` varchar(30) DEFAULT NULL, `password` text DEFAULT NULL, `remember_token` varchar(100) DEFAULT NULL, `status` tinyint(1) NOT NULL DEFAULT 0, `lat_toko` double DEFAULT NULL, `lng_toko` double DEFAULT NULL, `kode_verifikasi` varchar(4) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `pengguna` -- INSERT INTO `pengguna` (`id`, `nama`, `no_telp`, `token`, `alamat`, `daerah`, `foto`, `saldo`, `created_at`, `updated_at`, `email`, `password`, `remember_token`, `status`, `lat_toko`, `lng_toko`, `kode_verifikasi`) VALUES (22, '<NAME>', '085805319223', 'fntwl3cUf8c:APA91bFgLuZkqeSMyxl3IGYDpfJkHPtsH5tsDUd9rkd3OtdqhtVxxXExjHERgDRjgPmbj9ZdNdEGjmf4D0aTlIAvGered4DWGx_1GlEQbQBddBpQ_6FcPS7TIm0YcoBb47s7AvleWaFq', 'Tanjung Senang', 'Bandar Lampung', 'foto_pengguna_22_93502377.png', 1710095, '2020-08-25 08:50:48', '2020-08-25 08:50:48', '<EMAIL>', <PASSWORD>', NULL, 1, -5.3592165234023215, 105.26252601295711, '0341'), (24, '<NAME>', '081368986989', 'fe33REw1sxs:APA91bEEIRmif2ZrHtCN8n1wTk11u7BjRAhB2B8RDQPEUq3XZzV5n-xo_w2EcTlZaag3B_nYmdqxnvbIMAihm5z6eDJdJkio1pGHk_G_jJ_LNYaKgGxX46usgNoRNvyJmnX7J9Ubf7ub', 'lampung barat', 'Lampung Selatan', 'foto_pengguna_24_787928382.jpg', 25650, '2020-09-09 04:17:06', '2020-09-09 04:17:06', '<EMAIL>', <PASSWORD>', NULL, 0, NULL, NULL, '8870'), (25, '<NAME>', '082281851336', 'ds6t8BcxgNY:APA91bE50PWMhUfrNxNu4qrwO34S-kEvzlPcydFkxcp36bezkg30feMu398-z5R3k5DejQ61sYkyXgT0A6OpZjVgxnvDKDJ-gqA_yfkDLedP1wxZFFu06mHn2qGsxyWsq77qhxEl71JX', 'endang sari, harapan rejo, seputih agung', 'Lampung Tengah', 'Logo.jpg', 0, '2019-07-06 11:06:36', '2019-07-06 11:06:36', '<EMAIL>', '$2y$10$AKTLRWArUQO1lZAFOw3YPuBvcNZ21VofRtb91X50NZnynNWnK33w.', NULL, 0, NULL, NULL, '7212'), (30, '<NAME>', '089656806311', 'dGqKJQbbKSQ:APA91bHfXe3dICzSXmBgS6RRxjYS9xAC7pabc8hEKI63pNjUJl7Sf-TKTVmPv8ATUqvFOjXEMqbac1Jh4zBIrlUCBERJRHaolwrY2faGTEDytDGbVR7u7ci4YylmVaU-iXNSv3GQefip', 'Bandar Lampung', 'Lampung Barat', 'Logo.jpg', 0, '2019-07-17 06:11:59', '2019-07-17 06:11:59', '<EMAIL>', '$2y$10$rOBd/wBTqUOSaXYZJNt60.4QJhHeTasEYJdHIW8kZu.W2NYuwxzBC', NULL, 0, NULL, NULL, '7812'), (34, 'Raman Farm', '081272351473', 'fwq4Sjx-GSw:APA91bHuuuWCi0JizWAkuHxtYCpP7hR9YMEDGXz_71egzwZ5HSNI7_X3IInPwWatADikUm0S_SMSCfBJjFaOqsVFdHuWtM9NPimcoSRP9oKHCvN-3kaz-5aMiVKG6t6QSddaTEZEVIDf', 'Lampung Tengah', 'Lampung Tengah', 'foto_pengguna_34_210326056.png', 1187500, '2019-07-07 13:36:41', '2019-07-07 13:36:14', NULL, '$2y$10$gg/FN92M3MOxv5YGMbcgSujyLsmd.xYb5InuS1Tl5IWfSRnOT0x2O', NULL, 1, NULL, NULL, '2152'), (47, '<NAME>', '081373175217', 'dDnUxJhjKts:APA91bGgf4RIf6byS5BBhoiJQx50scuzdkxqsZSX_GwXl3itPVdELKIr8hlgVTCAqf5MYSLHqaFWOBepBxQGPxhGrDHzqQTcnHsNtFC2nmPa_Ln4nKM8VnwjEut0-r_vtE3q3mdTBUFh', 'Jl. Siworatu, <NAME>, Gd. Meneng. kec. Rajabasa', 'Bandar Lampung', 'foto_pengguna_47_749794591.png', 0, '2019-11-11 05:18:41', '2019-11-11 05:18:41', NULL, '$2y$10$HGX2EFKibFWBFQ0F1IjxHeVW4p60eWcCnhFvF/R9cVPyKHy7.R3qe', NULL, 0, NULL, NULL, '7742'), (48, 'septi<NAME>i nurhidayat', '085203050022', 'dq-JuAv1hAA:APA91bFWZ7XvElHLSs5k4cQBsm3GryCnLvhPO266qMdSANnVBcI0K21chWdLvE1IrZIyMFlHLN2JJ71w2uw9vrH-lCtgp3Md-cMuZwalBqf7LHsEaRhaAdK4o0AFXDmUwC6Ky4qZDYnP', 'ds kenep kec balen kab bojonegoro', 'Bandar Lampung', 'Logo.jpg', 0, '2019-07-17 03:55:02', '2019-07-17 03:55:02', NULL, NULL, NULL, 0, NULL, NULL, '7010'), (49, 'Ivan', '085383099768', 'eDwDAH--qFM:APA91bGjPhxJVNtmZpT1CiMlieyqq-4oy_Sj3iNuxICQMR9VaGGW31zUecy8ZOco8ObRSlZ98u1074wGzlIM8h0TBcTlmf8mifxXkeekYFEs8ijqUANHQP-X60KdkjFeKYsm6fr0RMmS', 'Lampung Tengah', 'Bandar Lampung', 'Logo.jpg', 0, '2019-07-17 19:58:36', '2019-07-17 19:58:36', NULL, NULL, NULL, 0, NULL, NULL, '7067'), (51, '<NAME>', '081364673828', 'c_sidjH6Zn4:APA91bEVOSQdwqvNL0nJUwaq_Q62sSIn7FtH5bANWtF86iZOqrJ53-E_vpOYlQfXM5jxfS5isuJ0QY6M4OeT9wH8WoBgMxI87fW7kEFHiNZI68EB-mAONi8WXlBx7xMSwO3fHRO-Gy4U', 'Panorama alam', 'Bandar Lampung', 'foto_pengguna_51_989880240.png', 0, '2019-08-02 10:22:00', '2019-08-02 10:22:00', NULL, '$2y$10$fhGvrtPT9Zmf7SfUWuvevOMPPnVGQ5bZNIXk5g2bZfNpaIJKIUIUu', NULL, 1, -5.362232160320928, 105.25879506021738, '3652'), (52, 'An<NAME>iawan', '085768003865', 'ePFjNpuadqE:APA91bGhZ6Xu8Pg7FOxbHYIVr9BA9j0-plZCAe3ns6vBvZlsi6SSDpPRjE60ONbGuvqyUQWimUF0fKvX8-jPiBT5Hs7WAEZ3W1Khj0DNAc3EGC5Bf3R3p191UOY9mWk1G5trnKkBvlwt', 'kampung purwodadi kecamatan Bangun Rejo kabupaten Lampung tengah', 'Lampung Tengah', 'Logo.jpg', 0, '2019-07-29 17:33:38', '2019-07-29 17:33:38', NULL, NULL, NULL, 0, NULL, NULL, '5420'), (53, 'budi', '085366717537', 'csmvFhuQqcc:APA91bHyNLaGzh04k2mq9nO1ELZQk4hu1vN3AyN3D6OL6eYLudbpDd7LqTyXZbQY_axo8sZ_i3slWrwqYouXuE5GdkCQfIH3UQbBSxeZwpr4t9XFGe3wz63OrlXo_P-FC2J56ekNn2t5', 'kemiling', 'Bandar Lampung', 'Logo.jpg', 0, '2019-07-30 15:48:21', '2019-07-30 15:48:21', NULL, NULL, NULL, 0, NULL, NULL, '2781'), (54, 'dimas', '085758762601', NULL, 'kosan ceria', 'Lampung Barat', 'Logo.jpg', 0, '2020-02-07 12:41:58', '2020-02-07 12:41:58', NULL, NULL, NULL, 0, NULL, NULL, '6075'), (55, 'Epakan', '085769149310', NULL, 'Balam', 'Bandar Lampung', 'Logo.jpg', 0, '2020-09-03 19:40:48', '2020-09-03 19:40:48', NULL, NULL, NULL, 0, NULL, NULL, '4358'), (56, 'Ep<NAME>', '0811111111', NULL, 'Balam', 'Bandar Lampung', 'Logo.jpg', 0, '2020-09-09 01:51:15', '2020-09-09 01:51:15', NULL, NULL, NULL, 0, NULL, NULL, '3868'); -- -------------------------------------------------------- -- -- Table structure for table `pesanan` -- CREATE TABLE `pesanan` ( `id_pesanan` varchar(30) NOT NULL, `foto` text DEFAULT NULL, `ongkir` int(20) NOT NULL, `harga` int(20) NOT NULL, `total_bayar` int(20) NOT NULL, `id_pengguna` int(11) NOT NULL, `status` enum('belum','lunas') NOT NULL DEFAULT 'belum', `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `pesanan` -- INSERT INTO `pesanan` (`id_pesanan`, `foto`, `ongkir`, `harga`, `total_bayar`, `id_pengguna`, `status`, `created_at`, `updated_at`) VALUES ('US190729010004', 'foto_pesanan_51_738232571.png', 15000, 12000, 27000, 51, 'lunas', '2019-07-28 18:00:09', '2019-07-28 18:01:20'), ('ZJ190710085406', NULL, 400000, 1000, 401000, 33, 'belum', '2019-07-10 01:54:12', '2019-07-10 01:54:12'), ('RF190729003016', 'foto_pesanan_51_758686014.png', 0, 12000, 72000, 51, 'belum', '2019-02-23 17:00:00', '2019-07-28 17:31:36'), ('CX190729002731', 'foto_pesanan_51_36940820.png', 0, 12000, 12000, 51, 'lunas', '2019-07-28 17:27:33', '2019-07-28 17:29:00'), ('RY200908150919', NULL, 12350, 700000, 712350, 24, 'belum', '2020-09-08 08:09:19', '2020-09-08 08:09:19'); -- -------------------------------------------------------- -- -- Table structure for table `produk` -- CREATE TABLE `produk` ( `id` int(11) NOT NULL, `id_pengguna` int(11) NOT NULL, `nama` varchar(30) NOT NULL, `jenis` varchar(30) DEFAULT NULL, `harga` int(10) NOT NULL, `satuan` varchar(10) NOT NULL, `status` enum('pre sale','siap antar') NOT NULL, `kategori` enum('Pakan Sapi','Pakan Kuda','Pakan Domba & Kambing','Pakan Ayam','Pakan Kerbau','Suplemen','Hijauan','Bahan Mentah Pakan','Produk Peternak Binaan') NOT NULL, `lokasi` enum('Bandar Lampung','Metro','Lampung Barat','Lampung Selatan','Lampung Tengah','Lampung Timur','Lampung Utara','Mesuji','Pesawaran','Pringsewu','Tanggamus','Tulang Bawang','Tulang Bawang Barat','Way Kanan','Pesisir Barat') DEFAULT NULL, `foto` text DEFAULT NULL, `foto2` text DEFAULT NULL, `foto3` text DEFAULT NULL, `deskripsi` text NOT NULL, `iklan` tinyint(1) NOT NULL DEFAULT 1, `minimum` int(4) NOT NULL, `stok` int(6) 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=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `produk` -- INSERT INTO `produk` (`id`, `id_pengguna`, `nama`, `jenis`, `harga`, `satuan`, `status`, `kategori`, `lokasi`, `foto`, `foto2`, `foto3`, `deskripsi`, `iklan`, `minimum`, `stok`, `created_at`, `updated_at`) VALUES (50, 24, 'pakan ayaaaaaam', NULL, 120000, 'kg', 'siap antar', 'Pakan Sapi', 'Lampung Barat', '258003219.jpg', '175062533.jpg', '485026165.jpg', 'mantap gan', 1, 50, 400, '2020-03-17 14:55:59', '2020-03-17 14:55:59'), (35, 34, 'Ampas Singkong Kering', NULL, 110000, '50 Kg', 'pre sale', 'Pakan Sapi', NULL, 'foto_produk_34_1_803379721.png', 'foto_produk_34_2_756840955.png', 'foto_produk_34_3_810366497.png', 'Ampas singkong sangat cocok untuk sapi penggemukan. Agar sapi tidak merasa bosan, ampas singkong dapat dicampur dengan rumput atau dqpat juga dicampur dengan bekatul.', 1, 50, 50, '2019-08-26 15:51:41', '2019-07-08 06:29:35'), (34, 34, '<NAME>', NULL, 350000, '50 Kg', 'siap antar', 'Bahan Mentah Pakan', NULL, 'foto_produk_34_1_373173771.png', 'foto_produk_34_2_894991910.png', 'foto_produk_34_3_536788625.png', 'Bungkil kedelai bermanfaat sebagai sumber protein bagi ternak dan mengandung asam amino yang seimbang untuk pertumbuhan ternak terutama ayam.', 1, 50, 100, '2019-07-08 06:24:01', '2019-07-08 06:24:01'), (33, 34, '<NAME>', NULL, 175000, '50 Kg', 'siap antar', 'Bahan Mentah Pakan', NULL, 'foto_produk_34_1_531893279.png', 'foto_produk_34_2_919790077.png', 'foto_produk_34_3_187839085.png', 'Bungkil kopra merupakan inti dari kelapa sawit. Bungkil kopra biasanya dimanfaatkan untuk formulasi pakan ternak sebagai pensuplai energi.', 1, 50, 45, '2019-07-08 06:54:11', '2019-07-08 06:54:11'), (38, 22, 'Haha', NULL, 100, 'kg', 'pre sale', 'Pakan Sapi', 'Mesuji', '', 'foto_produk_22_2_788449595.png', 'foto_produk_22_3_151731730.png', 'haha', 0, 100, 89, '2019-08-26 15:53:10', '2019-07-20 10:57:34'), (39, 34, 'Corn Gluten Feed', NULL, 210000, '50 Kg', 'pre sale', 'Bahan Mentah Pakan', NULL, 'foto_produk_34_1_873246044.png', 'foto_produk_34_2_263489832.png', 'foto_produk_34_3_755811545.png', 'CGF memiliki kandungan gizi tinggi dan sangat bagus memenuhi kebutuhan nutrisi ternak', 1, 50, 8000, '2019-07-08 06:01:06', '2019-07-08 06:01:06'), (40, 22, 'halah', NULL, 1000, 'Kg', 'pre sale', 'Pakan Sapi', NULL, 'foto_produk_22_1_175851540.png', 'foto_produk_22_2_120950506.png', 'foto_produk_22_3_318551655.png', 'halah', 0, 100, 200, '2019-07-05 03:25:28', '2019-07-05 03:25:28'), (41, 22, 'Pakan Sapi', NULL, 10000, '50 Kg', 'siap antar', 'Pakan Sapi', NULL, 'foto_produk_22_1_114233692.png', 'foto_produk_22_2_90351132.png', 'foto_produk_22_3_724138793.png', 'Protein 10%', 0, 50, 993, '2019-07-23 13:23:06', '2019-07-20 10:57:31'), (42, 34, 'Silase daun singkong', NULL, 1000, 'Kg', 'siap antar', 'Pakan Domba & Kambing', NULL, 'foto_produk_34_1_650228773.png', 'foto_produk_34_2_288920176.png', 'foto_produk_34_3_99156262.png', 'Hasil fermentasi dari daun singkong yang tinggi akan kandungan protein dan sangat cocok untuk pakan domba dan kambing', 1, 50, 2000, '2019-07-08 10:34:28', '2019-07-08 10:34:28'), (43, 34, 'Konsentrat B', NULL, 115000, '50 kg', 'siap antar', 'Pakan Sapi', NULL, 'foto_produk_34_1_83400869.png', 'foto_produk_34_2_43046392.png', 'foto_produk_34_3_630510129.png', 'merupakan sumber protein, vitamin dan mineral yg berasal dari berbagai macam bahan baku seperti bungkil kopra, bungkil sawit, CGF dan mineral premik. memiliki kandungan protein 12%', 1, 50, 200, '2019-07-08 22:44:19', '2019-07-08 22:44:19'), (45, 34, 'Pakan konsentrat A', NULL, 3200, 'kg', 'siap antar', 'Pakan Sapi', NULL, 'foto_produk_34_1_60263876.png', 'foto_produk_34_2_121610842.png', 'foto_produk_34_3_577763313.png', 'pakan konsentrat sapi penggemukan kandungan PK min 14%', 1, 50, 200, '2019-07-15 04:04:45', '2019-07-15 04:04:45'), (49, 51, 'Produk 1 Ubag', NULL, 12000, 'Kg', 'siap antar', 'Pakan Kerbau', NULL, 'foto_produk_51_1_408691911.png', 'foto_produk_51_2_404801958.png', 'foto_produk_51_3_5876935.png', 'Protein 10%\nLemak 5%', 0, 5, 100, '2019-07-28 18:07:02', '2019-07-28 18:07:02'); -- -------------------------------------------------------- -- -- Table structure for table `request_mitra` -- CREATE TABLE `request_mitra` ( `id` int(11) NOT NULL, `id_pengguna` int(11) NOT NULL, `nama` varchar(50) DEFAULT NULL, `nik` varchar(30) DEFAULT NULL, `foto_ktp` varchar(255) DEFAULT NULL, `tipe` enum('peternak','produsen','petani','supplier') DEFAULT NULL, `foto_peternakan` varchar(255) DEFAULT NULL, `foto_cppb` varchar(255) DEFAULT NULL, `foto_sertifikat` varchar(255) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `status` varchar(20) NOT NULL DEFAULT 'Belum Aktif' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `request_mitra` -- INSERT INTO `request_mitra` (`id`, `id_pengguna`, `nama`, `nik`, `foto_ktp`, `tipe`, `foto_peternakan`, `foto_cppb`, `foto_sertifikat`, `created_at`, `updated_at`, `status`) VALUES (4, 44, 'ali', '11111111', 'foto_ktp894432709.png', 'peternak', 'foto_peternakan356000853.png', NULL, NULL, '2019-06-26 09:45:35', '2020-09-08 08:46:14', 'Aktif'), (5, 34, '<NAME>', '12345678910', 'foto_ktp862363186.png', 'produsen', NULL, 'foto_cppb679169675.png', NULL, '2019-07-01 14:59:52', '2020-09-08 08:46:17', 'Aktif'), (7, 24, '<NAME>', '123456789', 'foto_ktp516282506.png', 'peternak', 'foto_peternakan498013108.png', 'foto_cppb228439647.png', 'foto_sertifikat873519547.png', '2020-03-16 17:00:00', '2020-09-08 08:46:24', 'Aktif'), (52, 56, 'Epakan Mitra', '345657694', 'D:\\Program Files\\xampp\\htdocs\\git_epakan\\public\\uploads\\request_mitra\\349614c77cdeb177e940ee3b0022af83.png', NULL, 'D:\\Program Files\\xampp\\htdocs\\git_epakan\\public\\uploads\\request_mitra\\24916da539d4cbb478f2b982375e0c2a.png', 'D:\\Program Files\\xampp\\htdocs\\git_epakan\\public\\uploads\\request_mitra\\c2f6e40bb0666b692dd9fabfbe8e034a.png', 'D:\\Program Files\\xampp\\htdocs\\git_epakan\\public\\uploads\\request_mitra\\ff6137f7def3a1af6dc5936ae64c6254.png', '2020-09-09 03:42:31', '2020-09-09 03:42:31', 'Belum Aktif'); -- -------------------------------------------------------- -- -- Table structure for table `saldo_cair` -- CREATE TABLE `saldo_cair` ( `id` int(11) NOT NULL, `id_pengguna` int(11) NOT NULL, `saldo` int(8) NOT NULL, `status` enum('belum cair','sudah cair') NOT NULL DEFAULT 'belum cair', `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `saldo_cair` -- INSERT INTO `saldo_cair` (`id`, `id_pengguna`, `saldo`, `status`, `created_at`, `updated_at`) VALUES (1, 22, 1, 'sudah cair', '2019-05-04 04:05:43', '2019-05-09 06:04:36'), (2, 22, 15000, 'sudah cair', '2019-05-03 21:13:40', '2019-05-09 06:04:38'), (3, 6, 15000, 'sudah cair', '2019-05-12 00:25:44', '2019-05-13 21:48:01'), (4, 22, 984999, 'sudah cair', '2019-05-12 00:27:57', '2019-05-12 07:28:24'), (5, 22, 1429750, 'belum cair', '2019-06-29 11:04:27', '2019-06-29 11:04:27'), (6, 34, 100000, 'belum cair', '2019-07-03 02:29:23', '2019-07-03 02:29:23'), (7, 22, 1710095, 'belum cair', '2019-07-28 18:03:35', '2019-07-28 18:03:35'), (10, 24, 28215, 'belum cair', '2020-09-08 08:07:53', '2020-09-08 08:07:53'), (11, 24, 2590650, 'belum cair', '2020-09-09 04:17:34', '2020-09-09 04:17:34'); -- -- Triggers `saldo_cair` -- DELIMITER $$ CREATE TRIGGER `tg_saldo_cair` AFTER UPDATE ON `saldo_cair` FOR EACH ROW BEGIN UPDATE pengguna SET saldo = saldo - NEW.saldo WHERE id = NEW.id_pengguna; END $$ DELIMITER ; -- -------------------------------------------------------- -- -- Table structure for table `saldo_masuk` -- CREATE TABLE `saldo_masuk` ( `id` int(11) NOT NULL, `id_pesanan` varchar(30) NOT NULL, `id_pengguna` int(11) NOT NULL, `saldo` int(8) NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(), `status_saldo` double NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `saldo_masuk` -- INSERT INTO `saldo_masuk` (`id`, `id_pesanan`, `id_pengguna`, `saldo`, `created_at`, `updated_at`, `status_saldo`) VALUES (47, 'MJ190703144915', 22, 15200, '2019-07-03 07:52:48', '2019-07-03 07:52:48', 0), (46, 'ZV190702180536', 22, 34200, '2019-07-02 11:09:36', '2019-07-02 11:09:36', 0), (45, 'KH190702151326', 34, 142500, '2019-07-02 08:17:35', '2019-07-02 08:17:35', 0), (44, 'GL190702151011', 34, 1045000, '2019-07-02 08:12:15', '2019-07-02 08:12:15', 0), (43, 'IM190701003024', 22, 11400, '2019-06-30 17:32:10', '2019-06-30 17:32:10', 0), (42, 'IM190701003024', 22, 11400, '2019-06-30 17:32:10', '2019-06-30 17:32:10', 0), (41, 'IM190701003024', 22, 99750, '2019-06-30 17:32:10', '2019-06-30 17:32:10', 0), (40, 'MX190628172843', 22, 19000, '2019-06-28 10:34:46', '2019-06-28 10:34:46', 0), (39, 'OK190628172617', 22, 20900, '2019-06-28 10:27:09', '2019-06-28 10:27:09', 0), (38, 'ET190628172221', 22, 11400, '2019-06-28 10:23:10', '2019-06-28 10:23:10', 0), (37, 'SO190628171633', 22, 11400, '2019-06-28 10:17:28', '2019-06-28 10:17:28', 0), (36, 'ZG190628171021', 22, 11400, '2019-06-28 10:11:23', '2020-09-07 03:50:54', 0), (35, 'ZG190628171021', 22, 11400, '2019-06-28 10:11:19', '2019-06-28 10:11:19', 0), (34, 'BB190628002706', 22, 109250, '2019-06-27 17:31:01', '2019-06-27 17:31:01', 0), (33, 'UM190628000047', 22, 28500, '2019-06-27 17:01:40', '2019-06-27 17:01:40', 0), (32, 'UM190628000047', 22, 199500, '2019-06-27 17:01:40', '2019-06-27 17:01:40', 0), (31, 'IK190627231257', 22, 23750, '2019-06-27 16:37:53', '2019-06-27 16:37:53', 0), (30, 'IK190627231257', 22, 99750, '2019-06-27 16:37:53', '2019-06-27 16:37:53', 0), (48, 'MT190715024515', 22, 9500, '2019-07-14 19:58:13', '2019-07-14 19:58:13', 0), (49, 'KZ190715212024', 22, 9500, '2019-07-15 14:29:56', '2019-07-15 14:29:56', 0), (50, 'UV190715183828', 22, 9500, '2019-07-15 14:30:03', '2019-07-15 14:30:03', 0), (51, 'KF190715212241', 22, 9500, '2019-07-15 19:00:27', '2019-07-15 19:00:27', 0), (52, 'RG190716014127', 22, 9500, '2019-07-15 19:03:19', '2019-07-15 19:03:19', 0), (53, 'RG190716014127', 22, 14345, '2019-07-15 19:03:19', '2019-07-15 19:03:19', 0), (54, 'MK190716020815', 22, 11400, '2019-07-15 19:10:00', '2019-07-15 19:10:00', 0), (55, 'AD190718001125', 22, 9500, '2019-07-23 13:23:06', '2019-07-23 13:23:06', 0), (56, 'US190729010004', 24, 2565000, '2019-07-28 18:02:47', '2020-09-09 04:17:34', 2565000), (57, 'US190729010004', 24, 25650, '2019-07-28 18:02:47', '2020-09-09 04:17:34', 25650); -- -- Triggers `saldo_masuk` -- DELIMITER $$ CREATE TRIGGER `tg_saldo_masuk` AFTER INSERT ON `saldo_masuk` FOR EACH ROW BEGIN UPDATE pengguna SET saldo = saldo + NEW.saldo WHERE id = NEW.id_pengguna; END $$ DELIMITER ; -- -------------------------------------------------------- -- -- Table structure for table `stok_kurang` -- CREATE TABLE `stok_kurang` ( `id` int(11) NOT NULL, `id_produk` int(11) NOT NULL, `jumlah` int(6) NOT NULL, `created_at` datetime NOT NULL DEFAULT current_timestamp(), `updated_at` datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `stok_kurang` -- INSERT INTO `stok_kurang` (`id`, `id_produk`, `jumlah`, `created_at`, `updated_at`) VALUES (1, 29, 2, '2019-06-28 16:59:48', '2019-06-28 16:59:48'), (2, 29, 2, '2019-06-28 16:59:56', '2019-06-28 16:59:56'), (3, 29, 2, '2019-06-28 17:00:33', '2019-06-28 17:00:33'), (4, 29, 2, '2019-06-28 17:03:58', '2019-06-28 17:03:58'), (5, 29, 3, '2019-06-28 17:05:01', '2019-06-28 17:05:01'), (6, 29, 1, '2019-06-28 17:11:20', '2019-06-28 17:11:20'), (7, 29, 1, '2019-06-28 17:11:23', '2019-06-28 17:11:23'), (8, 29, 1, '2019-06-28 17:17:28', '2019-06-28 17:17:28'), (9, 29, 1, '2019-06-28 17:23:10', '2019-06-28 17:23:10'), (10, 29, 1, '2019-06-28 17:27:09', '2019-06-28 17:27:09'), (11, 28, 1, '2019-06-28 17:34:46', '2019-06-28 17:34:46'), (12, 24, 1, '2019-07-01 00:32:10', '2019-07-01 00:32:10'), (13, 29, 1, '2019-07-01 00:32:10', '2019-07-01 00:32:10'), (14, 28, 1, '2019-07-01 00:32:10', '2019-07-01 00:32:10'), (15, 33, 4, '2019-07-02 15:12:15', '2019-07-02 15:12:15'), (16, 33, 1, '2019-07-02 15:17:35', '2019-07-02 15:17:35'), (17, 36, 3, '2019-07-02 18:09:36', '2019-07-02 18:09:36'), (18, 38, 10, '2019-07-03 14:52:48', '2019-07-03 14:52:48'), (19, 41, 1, '2019-07-15 02:58:13', '2019-07-15 02:58:13'), (20, 41, 1, '2019-07-15 21:29:56', '2019-07-15 21:29:56'), (21, 41, 1, '2019-07-15 21:30:04', '2019-07-15 21:30:04'), (22, 41, 1, '2019-07-16 02:00:27', '2019-07-16 02:00:27'), (23, 41, 1, '2019-07-16 02:03:19', '2019-07-16 02:03:19'), (24, 38, 1, '2019-07-16 02:03:19', '2019-07-16 02:03:19'), (25, 41, 1, '2019-07-16 02:10:00', '2019-07-16 02:10:00'), (26, 41, 1, '2019-07-23 20:23:06', '2019-07-23 20:23:06'), (27, 36, 1, '2019-07-29 01:02:47', '2019-07-29 01:02:47'); -- -- Triggers `stok_kurang` -- DELIMITER $$ CREATE TRIGGER `tg_stok_kurang` AFTER INSERT ON `stok_kurang` FOR EACH ROW BEGIN UPDATE produk SET stok = stok - NEW.jumlah WHERE id = NEW.id_produk; END $$ DELIMITER ; -- -------------------------------------------------------- -- -- 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 ) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `versi` -- CREATE TABLE `versi` ( `id_versi` int(11) NOT NULL, `version_code` int(11) NOT NULL, `version_name` varchar(30) NOT NULL, `force_update` enum('iya','tidak') NOT NULL, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), `updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -- Dumping data for table `versi` -- INSERT INTO `versi` (`id_versi`, `version_code`, `version_name`, `force_update`, `created_at`, `updated_at`) VALUES (1, 7, '1.7', 'iya', '2019-05-17 03:45:33', '2019-07-06 11:37:02'); -- -- Indexes for dumped tables -- -- -- Indexes for table `detail_pesanan` -- ALTER TABLE `detail_pesanan` ADD PRIMARY KEY (`id_detail`); -- -- Indexes for table `kabupaten` -- ALTER TABLE `kabupaten` ADD PRIMARY KEY (`id_kabupaten`); -- -- Indexes for table `kecamatan` -- ALTER TABLE `kecamatan` ADD PRIMARY KEY (`id_kecamatan`); -- -- Indexes for table `keranjang` -- ALTER TABLE `keranjang` ADD PRIMARY KEY (`id_keranjang`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `notifikasi` -- ALTER TABLE `notifikasi` ADD PRIMARY KEY (`id_notifikasi`); -- -- Indexes for table `oauth_access_tokens` -- ALTER TABLE `oauth_access_tokens` ADD PRIMARY KEY (`id`), ADD KEY `oauth_access_tokens_user_id_index` (`user_id`); -- -- Indexes for table `oauth_auth_codes` -- ALTER TABLE `oauth_auth_codes` ADD PRIMARY KEY (`id`); -- -- Indexes for table `oauth_clients` -- ALTER TABLE `oauth_clients` ADD PRIMARY KEY (`id`), ADD KEY `oauth_clients_user_id_index` (`user_id`); -- -- Indexes for table `oauth_personal_access_clients` -- ALTER TABLE `oauth_personal_access_clients` ADD PRIMARY KEY (`id`), ADD KEY `oauth_personal_access_clients_client_id_index` (`client_id`); -- -- Indexes for table `oauth_refresh_tokens` -- ALTER TABLE `oauth_refresh_tokens` ADD PRIMARY KEY (`id`), ADD KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`); -- -- Indexes for table `ongkir` -- ALTER TABLE `ongkir` ADD PRIMARY KEY (`id_ongkir`); -- -- Indexes for table `operator` -- ALTER TABLE `operator` ADD PRIMARY KEY (`id`); -- -- Indexes for table `pengguna` -- ALTER TABLE `pengguna` ADD PRIMARY KEY (`id`); -- -- Indexes for table `pesanan` -- ALTER TABLE `pesanan` ADD PRIMARY KEY (`id_pesanan`); -- -- Indexes for table `produk` -- ALTER TABLE `produk` ADD PRIMARY KEY (`id`); -- -- Indexes for table `request_mitra` -- ALTER TABLE `request_mitra` ADD PRIMARY KEY (`id`); -- -- Indexes for table `saldo_cair` -- ALTER TABLE `saldo_cair` ADD PRIMARY KEY (`id`); -- -- Indexes for table `saldo_masuk` -- ALTER TABLE `saldo_masuk` ADD PRIMARY KEY (`id`); -- -- Indexes for table `stok_kurang` -- ALTER TABLE `stok_kurang` ADD PRIMARY KEY (`id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- Indexes for table `versi` -- ALTER TABLE `versi` ADD PRIMARY KEY (`id_versi`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `detail_pesanan` -- ALTER TABLE `detail_pesanan` MODIFY `id_detail` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=360; -- -- AUTO_INCREMENT for table `kabupaten` -- ALTER TABLE `kabupaten` MODIFY `id_kabupaten` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=16; -- -- AUTO_INCREMENT for table `kecamatan` -- ALTER TABLE `kecamatan` MODIFY `id_kecamatan` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4001; -- -- AUTO_INCREMENT for table `keranjang` -- ALTER TABLE `keranjang` MODIFY `id_keranjang` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=125; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `notifikasi` -- ALTER TABLE `notifikasi` MODIFY `id_notifikasi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=27; -- -- AUTO_INCREMENT for table `oauth_clients` -- ALTER TABLE `oauth_clients` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `oauth_personal_access_clients` -- ALTER TABLE `oauth_personal_access_clients` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `ongkir` -- ALTER TABLE `ongkir` MODIFY `id_ongkir` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=177; -- -- AUTO_INCREMENT for table `operator` -- ALTER TABLE `operator` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `pengguna` -- ALTER TABLE `pengguna` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=57; -- -- AUTO_INCREMENT for table `produk` -- ALTER TABLE `produk` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51; -- -- AUTO_INCREMENT for table `request_mitra` -- ALTER TABLE `request_mitra` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=53; -- -- AUTO_INCREMENT for table `saldo_cair` -- ALTER TABLE `saldo_cair` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=12; -- -- AUTO_INCREMENT for table `saldo_masuk` -- ALTER TABLE `saldo_masuk` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=58; -- -- AUTO_INCREMENT for table `stok_kurang` -- ALTER TABLE `stok_kurang` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `versi` -- ALTER TABLE `versi` MODIFY `id_versi` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.0.10.18 -- https://www.phpmyadmin.net -- -- Servidor: localhost:3306 -- Tiempo de generación: 16-07-2017 a las 08:41:22 -- Versión del servidor: 5.6.35-cll-lve -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Base de datos: `bd-gastos` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `conceptos` -- CREATE TABLE IF NOT EXISTS `conceptos` ( `ID_CONCEPTO` int(11) NOT NULL AUTO_INCREMENT, `CONCEPTO` varchar(40) NOT NULL, `TIPO` varchar(2) DEFAULT NULL, `MENSUAL` varchar(2) NOT NULL DEFAULT 'N', `FECHA_VEN` int(2) DEFAULT '0', PRIMARY KEY (`ID_CONCEPTO`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=25 ; -- -- Volcado de datos para la tabla `conceptos` -- INSERT INTO `conceptos` (`ID_CONCEPTO`, `CONCEPTO`, `TIPO`, `MENSUAL`, `FECHA_VEN`) VALUES (3, 'Apuesta', 'G', 'N', NULL), (8, 'Sueldo', 'I', 'N', NULL), (9, 'PREMIO APUESTA', 'I', 'N', NULL), (10, 'FORMATEO', 'I', 'N', NULL), (12, 'PAGO CREDITOS', 'G', 'S', NULL), (13, '<NAME>', 'G', 'S', 5), (14, 'SPOTIFY', 'G', 'N', NULL), (15, 'TRANSPORTE', 'G', 'N', 15), (16, '<NAME>', 'G', 'S', 16), (17, 'COMIDA', 'G', 'N', NULL), (18, 'ROPA', 'G', 'N', NULL), (19, 'OTROS', 'G', 'N', NULL), (20, 'AHORRO', 'I', 'N', NULL), (22, 'CINE', 'G', 'N', NULL); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `creditos` -- CREATE TABLE IF NOT EXISTS `creditos` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `CREDITO` text, `SALDO` double DEFAULT NULL, `FECHA_VEN` int(2) DEFAULT NULL, `TOTAL_CUOTAS` int(3) DEFAULT '0', `CUOTAS_PAGAS` int(3) DEFAULT '0', `INTERES` double DEFAULT NULL, `ULTIMO_PAGO` varchar(11) DEFAULT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; -- -- Volcado de datos para la tabla `creditos` -- INSERT INTO `creditos` (`ID`, `CREDITO`, `SALDO`, `FECHA_VEN`, `TOTAL_CUOTAS`, `CUOTAS_PAGAS`, `INTERES`, `ULTIMO_PAGO`) VALUES (3, 'ICETEX', 7984630, 10, 55, 1, 0, '2017-07-15'), (4, '<NAME>', 640000, 17, -1, 1, 0, '2017-07-16'), (5, '<NAME>', 1009786, 17, 0, 1, 0, '2017-07-16'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `transaccion` -- CREATE TABLE IF NOT EXISTS `transaccion` ( `ID_TRANSACCION` int(11) NOT NULL AUTO_INCREMENT, `ID_CONCEPTO` int(11) NOT NULL, `ID_CREDITO` int(11) DEFAULT NULL, `DESCRIPCION` text, `VALOR` int(11) DEFAULT NULL, `FECHA` date DEFAULT NULL, `ID_USUARIO` int(11) NOT NULL, `FECHALOG` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`ID_TRANSACCION`), KEY `ID_CONCEPTO` (`ID_CONCEPTO`), KEY `ID_USUARIO` (`ID_USUARIO`), KEY `ID_USUARIO_2` (`ID_USUARIO`), KEY `ID_CREDITO` (`ID_CREDITO`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=30 ; -- -- Volcado de datos para la tabla `transaccion` -- INSERT INTO `transaccion` (`ID_TRANSACCION`, `ID_CONCEPTO`, `ID_CREDITO`, `DESCRIPCION`, `VALOR`, `FECHA`, `ID_USUARIO`, `FECHALOG`) VALUES (10, 8, NULL, 'PAGO QUEEN - Julio 2017', 1233000, '2017-07-13', 1, '2017-07-15 16:04:02'), (11, 20, NULL, 'Ahorro sueldo Julio', 50000, '2017-07-14', 1, '2017-07-14 18:10:06'), (14, 22, NULL, 'Los minions en royal films', 30000, '2017-07-14', 1, '2017-07-15 15:02:06'), (15, 9, NULL, 'Saldo de apuestas anteriores ', 39000, '2017-07-15', 1, '2017-07-15 15:04:50'), (16, 13, NULL, 'Junio- Julio', 40000, '2017-07-04', 1, '2017-07-15 16:41:45'), (17, 19, NULL, 'Mama y Hugo', 10000, '2017-07-15', 1, '2017-07-15 18:51:58'), (20, 12, 3, 'ICETEX', 180000, '2017-07-13', 1, '2017-07-15 21:28:49'), (23, 3, NULL, 'Perdidas en fullplay', 10000, '2017-07-16', 1, '2017-07-16 13:39:19'), (24, 17, NULL, 'Comida de hamburguesa en nuevo sitio de pizza', 13000, '2017-07-15', 1, '2017-07-16 13:39:53'), (25, 3, NULL, 'Apuesta hugo', 3000, '2017-07-16', 1, '2017-07-16 14:08:48'), (26, 12, 5, '<NAME>', 260000, '2017-07-16', 1, '2017-07-16 14:21:43'), (27, 14, NULL, 'Junio - Julio', 22000, '2017-07-16', 1, '2017-07-16 14:23:23'), (28, 16, NULL, 'ENERTOLIMA ', 42000, '2017-07-16', 1, '2017-07-16 14:28:56'), (29, 12, 4, 'TUYA EXITO', 300000, '2017-07-16', 1, '2017-07-16 14:32:58'); -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `usuarios` -- CREATE TABLE IF NOT EXISTS `usuarios` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `USER` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `PASS` varchar(300) COLLATE utf8_unicode_ci NOT NULL, `EMAIL` varchar(40) COLLATE utf8_unicode_ci NOT NULL, `NOMBRES` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `P_APELLIDO` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `S_APELLIDO` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `CORTE` int(2) NOT NULL DEFAULT '1', PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Volcado de datos para la tabla `usuarios` -- INSERT INTO `usuarios` (`ID`, `USER`, `PASS`, `EMAIL`, `NOMBRES`, `P_APELLIDO`, `S_APELLIDO`, `CORTE`) VALUES (1, 'mhotavo', '0622', '<EMAIL>', 'MILTON', 'OTAVO', 'VARON', 10); -- -- Restricciones para tablas volcadas -- -- -- Filtros para la tabla `transaccion` -- ALTER TABLE `transaccion` ADD CONSTRAINT `FK_CONCEP_TRAN` FOREIGN KEY (`ID_CONCEPTO`) REFERENCES `conceptos` (`ID_CONCEPTO`), ADD CONSTRAINT `FK_USU_TRAN` FOREIGN KEY (`ID_USUARIO`) REFERENCES `usuarios` (`ID`); /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>ZhengPeiRu21/mod-individual-progression<filename>sql/world/base/class_trainers.sql /* Remove Summon Imp from Trainer - it is a quest reward instead */ DELETE FROM `npc_trainer` WHERE `ID`=200009 AND `SpellID`=688; -- Remove starting dual wield skill for rogues, add to trainers at level 10 DELETE FROM `playercreateinfo_skills` WHERE `raceMask`=0 AND `classMask`=40 AND `skill`=118; INSERT INTO `playercreateinfo_skills` (`raceMask`, `classMask`, `skill`, `rank`, `comment`) VALUES (0, 32, 118, 0, 'Dual Wield'); DELETE FROM `npc_trainer` WHERE `ID` = 200015 AND `SpellID` = 674; INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`) VALUES (200015, 674, 300, 0, 0, 10);
create table if not exists racl_acls ( -- Standard id uuid default uuid_generate_v4(), created_at timestamptz default current_timestamp, updated_at timestamptz default current_timestamp, -- References resource_id text references racl_resources(id) ON DELETE CASCADE not null, -- Data entity text not null, capabilities char[] not null, -- Constraints primary key (id), unique(resource_id, entity), constraint entity_length check(char_length(entity) > 0), constraint valid_capabilities check(capabilities <@ '{"c", "r", "u", "d", "a"}') );
<filename>import/jordanteste.sql -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : lun. 19 oct. 2020 à 20:48 -- Version du serveur : 5.7.24 -- Version de PHP : 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Base de données : `jordanteste` -- -- -------------------------------------------------------- -- -- Structure de la table `admin_validation` -- DROP TABLE IF EXISTS `admin_validation`; CREATE TABLE IF NOT EXISTS `admin_validation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `users_id` int(11) NOT NULL, `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `file_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `commentaire` longtext COLLATE utf8mb4_unicode_ci, `nom` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `updated_at` datetime DEFAULT NULL, `description` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `IDX_DE92FDEB67B3B43D` (`users_id`) ) ENGINE=InnoDB AUTO_INCREMENT=13 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `admin_validation` -- INSERT INTO `admin_validation` (`id`, `users_id`, `type`, `file_name`, `status`, `commentaire`, `nom`, `updated_at`, `description`) VALUES (2, 1, 'manga', '290px-emperor_penguin_manchot_empereur_copie.jpeg', 'en attente', NULL, 'Jordanteste2', '2020-07-25 21:03:13', 'Boruto est le fils aîné de Naruto et d\'Hinata. Il est également le grand frère d\'Himawari, qu\'il adore. Il fait équipe avec Sarada et Mitsuki. Son professeur est Konohamaru.'), (3, 1, 'manga', '290px-emperor_penguin_manchot_empereur_copie.jpeg', 'en attente', NULL, 'Jordanteste2', '2020-07-25 21:03:13', 'Boruto est le fils aîné de Naruto et d\'Hinata. Il est également le grand frère d\'Himawari, qu\'il adore. Il fait équipe avec Sarada et Mitsuki. Son professeur est Konohamaru.'), (4, 1, 'manga', '290px-emperor_penguin_manchot_empereur_copie.jpeg', 'en attente', NULL, 'Jordanteste2', '2020-07-25 21:03:13', 'Boruto est le fils aîné de Naruto et d\'Hinata. Il est également le grand frère d\'Himawari, qu\'il adore. Il fait équipe avec Sarada et Mitsuki. Son professeur est Konohamaru.'), (5, 1, 'manga', '290px-emperor_penguin_manchot_empereur_copie.jpeg', 'en attente', NULL, 'Jordanteste2', '2020-07-25 21:03:13', 'Boruto est le fils aîné de Naruto et d\'Hinata. Il est également le grand frère d\'Himawari, qu\'il adore. Il fait équipe avec Sarada et Mitsuki. Son professeur est Konohamaru.'), (6, 1, 'manga', '290px-emperor_penguin_manchot_empereur_copie.jpeg', 'en attente', NULL, 'Jordanteste2', '2020-07-25 21:03:13', 'Boruto est le fils aîné de Naruto et d\'Hinata. Il est également le grand frère d\'Himawari, qu\'il adore. Il fait équipe avec Sarada et Mitsuki. Son professeur est Konohamaru.'), (7, 1, 'manga', '290px-emperor_penguin_manchot_empereur_copie.jpeg', 'en attente', NULL, 'Jordanteste2', '2020-07-25 21:03:13', 'Boruto est le fils aîné de Naruto et d\'Hinata. Il est également le grand frère d\'Himawari, qu\'il adore. Il fait équipe avec Sarada et Mitsuki. Son professeur est Konohamaru.'), (8, 1, 'manga', '290px-emperor_penguin_manchot_empereur_copie.jpeg', 'en attente', NULL, 'Jordanteste2', '2020-07-25 21:03:13', 'Boruto est le fils aîné de Naruto et d\'Hinata. Il est également le grand frère d\'Himawari, qu\'il adore. Il fait équipe avec Sarada et Mitsuki. Son professeur est Konohamaru.'), (9, 1, 'manga', '290px-emperor_penguin_manchot_empereur_copie.jpeg', 'en attente', NULL, 'Jordanteste2', '2020-07-25 21:03:13', 'Boruto est le fils aîné de Naruto et d\'Hinata. Il est également le grand frère d\'Himawari, qu\'il adore. Il fait équipe avec Sarada et Mitsuki. Son professeur est Konohamaru.'), (10, 1, 'manga', '290px-emperor_penguin_manchot_empereur_copie.jpeg', 'en attente', NULL, 'Jordanteste2', '2020-07-25 21:03:13', 'Boruto est le fils aîné de Naruto et d\'Hinata. Il est également le grand frère d\'Himawari, qu\'il adore. Il fait équipe avec Sarada et Mitsuki. Son professeur est Konohamaru.'), (11, 1, 'manga', '290px-emperor_penguin_manchot_empereur_copie.jpeg', 'en attente', NULL, 'Jordanteste2', '2020-07-25 21:03:13', 'Boruto est le fils aîné de Naruto et d\'Hinata. Il est également le grand frère d\'Himawari, qu\'il adore. Il fait équipe avec Sarada et Mitsuki. Son professeur est Konohamaru.'), (12, 1, 'manga', '290px-emperor_penguin_manchot_empereur_copie.jpeg', 'en attente', NULL, 'Jordanteste2', '2020-07-25 21:03:13', 'Boruto est le fils aîné de Naruto et d\'Hinata. Il est également le grand frère d\'Himawari, qu\'il adore. Il fait équipe avec Sarada et Mitsuki. Son professeur est Konohamaru.'); -- -------------------------------------------------------- -- -- Structure de la table `arcs` -- DROP TABLE IF EXISTS `arcs`; CREATE TABLE IF NOT EXISTS `arcs` ( `id` int(11) NOT NULL AUTO_INCREMENT, `manga_id` int(11) NOT NULL, `nom` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `numero` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `IDX_7277EBA67B6461` (`manga_id`) ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `arcs` -- INSERT INTO `arcs` (`id`, `manga_id`, `nom`, `numero`) VALUES (7, 1, 'Le premier arc trop bien', 1), (8, 1, 'Le deuxieme arc pas si bien', 2), (9, 2, 'nouveau arc de 2eme manga ouai', 1); -- -------------------------------------------------------- -- -- Structure de la table `chapitres` -- DROP TABLE IF EXISTS `chapitres`; CREATE TABLE IF NOT EXISTS `chapitres` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `statut` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `arc_id` int(11) NOT NULL, `file_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `commentaire` longtext COLLATE utf8mb4_unicode_ci, `like_number` int(11) NOT NULL, `share_number` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `IDX_508679FC41EB8A3C` (`arc_id`) ) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `chapitres` -- INSERT INTO `chapitres` (`id`, `nom`, `statut`, `arc_id`, `file_name`, `commentaire`, `like_number`, `share_number`) VALUES (3, '<NAME>', 'En attente', 7, '20200321_1_6_1_1_0_obj22396007_1.jpg', 'ffff', 0, 0), (4, '<NAME>', 'En attente', 8, '142245-full.png', NULL, 0, 0), (5, '<NAME>', 'En attente', 7, '20200321_1_6_1_1_0_obj22396007_1.jpg', NULL, 0, 0), (6, '<NAME>', 'En attente', 8, '142245-full.png', NULL, 0, 0); -- -------------------------------------------------------- -- -- Structure de la table `chapitre_likes` -- DROP TABLE IF EXISTS `chapitre_likes`; CREATE TABLE IF NOT EXISTS `chapitre_likes` ( `id` int(11) NOT NULL AUTO_INCREMENT, `chapitre_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `is_liked` tinyint(1) NOT NULL, `is_shared` tinyint(1) NOT NULL, PRIMARY KEY (`id`), KEY `IDX_FD54E31C1FBEEF7B` (`chapitre_id`), KEY `IDX_FD54E31CA76ED395` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `chapitre_likes` -- INSERT INTO `chapitre_likes` (`id`, `chapitre_id`, `user_id`, `is_liked`, `is_shared`) VALUES (1, 3, 1, 0, 0); -- -------------------------------------------------------- -- -- Structure de la table `commentaire_chapitres` -- DROP TABLE IF EXISTS `commentaire_chapitres`; CREATE TABLE IF NOT EXISTS `commentaire_chapitres` ( `id` int(11) NOT NULL AUTO_INCREMENT, `chapitre_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `commentaire` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `like_number` int(11) NOT NULL, `created_at` datetime NOT NULL, `share_number` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `IDX_DF11F6CB1FBEEF7B` (`chapitre_id`), KEY `IDX_DF11F6CBA76ED395` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `commentaire_chapitres` -- INSERT INTO `commentaire_chapitres` (`id`, `chapitre_id`, `user_id`, `commentaire`, `like_number`, `created_at`, `share_number`) VALUES (1, 3, 1, 'Salut a tous', 1, '2020-09-02 11:48:29', 1), (2, 3, 1, 'Salut a vs deux', 1, '2020-09-02 11:53:12', 0), (3, 3, 1, 'Un peu claqué je me désabonne', 0, '2020-09-06 13:50:09', 0); -- -------------------------------------------------------- -- -- Structure de la table `doctrine_migration_versions` -- DROP TABLE IF EXISTS `doctrine_migration_versions`; CREATE TABLE IF NOT EXISTS `doctrine_migration_versions` ( `version` varchar(191) COLLATE utf8_unicode_ci NOT NULL, `executed_at` datetime DEFAULT NULL, `execution_time` int(11) DEFAULT NULL, PRIMARY KEY (`version`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Déchargement des données de la table `doctrine_migration_versions` -- INSERT INTO `doctrine_migration_versions` (`version`, `executed_at`, `execution_time`) VALUES ('DoctrineMigrations\\Version20200725111654', '2020-07-25 11:18:47', 46), ('DoctrineMigrations\\Version20200725113249', '2020-07-25 11:32:54', 65), ('DoctrineMigrations\\Version20200725115945', '2020-07-25 11:59:53', 44), ('DoctrineMigrations\\Version20200725121134', '2020-07-25 12:11:40', 144), ('DoctrineMigrations\\Version20200725123031', '2020-07-25 12:30:36', 96), ('DoctrineMigrations\\Version20200725205629', '2020-07-25 20:56:59', 92), ('DoctrineMigrations\\Version20200728103508', '2020-07-28 10:35:22', 541), ('DoctrineMigrations\\Version20200728113518', '2020-07-28 11:35:24', 71), ('DoctrineMigrations\\Version20200728113612', '2020-07-28 11:36:17', 75), ('DoctrineMigrations\\Version20200728115649', '2020-07-28 11:57:08', 75), ('DoctrineMigrations\\Version20200728121809', '2020-07-28 12:18:13', 107), ('DoctrineMigrations\\Version20200729092730', '2020-07-29 09:27:40', 605), ('DoctrineMigrations\\Version20200731133725', '2020-07-31 13:37:31', 524), ('DoctrineMigrations\\Version20200803074750', '2020-08-03 07:47:54', 588), ('DoctrineMigrations\\Version20200809101451', '2020-08-09 10:14:55', 577), ('DoctrineMigrations\\Version20200818173714', '2020-08-18 17:40:11', 634), ('DoctrineMigrations\\Version20200818180719', '2020-08-18 18:09:14', 99), ('DoctrineMigrations\\Version20200902112824', '2020-09-02 11:28:31', 900), ('DoctrineMigrations\\Version20200922193956', '2020-09-22 19:40:20', 591), ('DoctrineMigrations\\Version20200922211954', '2020-09-22 21:19:58', 114), ('DoctrineMigrations\\Version20201006084821', '2020-10-06 08:48:26', 615), ('DoctrineMigrations\\Version20201006102754', '2020-10-06 10:27:58', 169); -- -------------------------------------------------------- -- -- Structure de la table `mangas` -- DROP TABLE IF EXISTS `mangas`; CREATE TABLE IF NOT EXISTS `mangas` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nom` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `description` longtext COLLATE utf8mb4_unicode_ci, `score` int(11) NOT NULL, `soutien` int(11) NOT NULL, `partenaire` tinyint(1) NOT NULL, `grade` int(11) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `users_id` int(11) NOT NULL, `file_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `statut` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `commentaire` longtext COLLATE utf8mb4_unicode_ci, `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `file_name_vitrine_une` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `IDX_8271C42F67B3B43D` (`users_id`) ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `mangas` -- INSERT INTO `mangas` (`id`, `nom`, `description`, `score`, `soutien`, `partenaire`, `grade`, `created_at`, `updated_at`, `users_id`, `file_name`, `statut`, `commentaire`, `type`, `file_name_vitrine_une`) VALUES (1, 'NouveauMangaOuai', 'Une description de type descriptif', 0, 8, 0, 0, '2020-07-28 12:13:59', '2020-07-28 12:13:59', 1, 'baki.png', 'Accepter', 'suce', 'manga', '01.jpg'), (2, 'NouveauMangaOuai', 'Une description de type descriptif', 0, 0, 0, 0, '2020-07-28 12:14:35', '2020-07-28 12:14:35', 1, 'psycho.png', 'en attente', NULL, 'manga', '01.jpg'), (3, 'OuaiLeManga', 'Super bien le truc', 0, 0, 0, 0, '2020-07-29 09:12:14', '2020-07-29 09:12:15', 1, 'parasite.png', 'en attente', NULL, 'manga', '01.jpg'), (4, 'OuaiLeManga', 'Super bien le trucgg', 0, 4, 0, 0, '2020-07-29 09:17:47', '2020-07-29 09:17:47', 1, 'parasite.png', 'en attente', NULL, 'manga', '01.jpg'), (5, 'OuaiLeManga', 'Super bien le trucgg', 0, 8, 0, 0, '2020-07-29 09:18:18', '2020-07-29 09:18:18', 1, 'parasite.png', 'en attente', NULL, 'manga', '01.jpg'), (6, 'Chapitro', 'Nullable ?', 0, 10, 0, 0, '2020-07-29 09:19:51', '2020-07-29 09:19:51', 1, 'parasite.png', 'en attente', NULL, 'manga', '01.jpg'), (7, 'Naruto', 'Berserk raconte l\'histoire de la rencontre de Guts et de Griffith, chef de la Troupe du Faucon, une bande de mercenaires à la solde du royaume de Midland. De cette rencontre naîtra une amitié ambiguë, mais néanmoins efficiente : la présence de Guts, guerrier à l\'épée démesurée, se révélera vite indispensable à l\'ambition du jeune Griffith, bretteur et tacticien hors pair.', 0, 180, 0, 0, '2020-07-29 09:39:11', '2020-07-29 09:39:11', 1, 'psycho.png', 'en attente', NULL, 'manga', '01.jpg'), (8, 'NouveauMangaOuai', 'Une description de type descriptif', 0, 5, 0, 0, '2020-07-28 12:13:59', '2020-07-28 12:13:59', 1, 'psycho.png', 'Accepter', 'suce', 'manga', '01.jpg'), (9, 'NouveauMangaOuai', 'Une description de type descriptif', 0, 0, 0, 0, '2020-07-28 12:14:35', '2020-07-28 12:14:35', 1, 'psycho.png', 'en attente', NULL, 'manga', '01.jpg'), (10, 'OuaiLeManga', 'Super bien le truc', 0, 0, 0, 0, '2020-07-29 09:12:14', '2020-07-29 09:12:15', 1, 'parasite.png', 'en attente', NULL, 'manga', '01.jpg'), (11, 'OuaiLeManga', 'Super bien le trucgg', 0, 0, 0, 0, '2020-07-29 09:17:47', '2020-07-29 09:17:47', 1, 'psycho.png', 'en attente', NULL, 'manga', '01.jpg'), (12, 'OuaiLeManga', 'Super bien le trucgg', 0, 0, 0, 0, '2020-07-29 09:18:18', '2020-07-29 09:18:18', 1, 'parasite.png', 'en attente', NULL, 'manga', '01.jpg'), (13, 'Chapitro', 'Nullable ?', 0, 0, 0, 0, '2020-07-29 09:19:51', '2020-07-29 09:19:51', 1, 'psycho.png', 'en attente', NULL, 'manga', '01.jpg'), (14, 'rrrr', 'eeee', 0, 0, 0, 0, '2020-07-29 09:39:11', '2020-07-29 09:39:11', 1, 'parasite.png', 'en attente', NULL, 'manga', '01.jpg'); -- -------------------------------------------------------- -- -- Structure de la table `pages` -- DROP TABLE IF EXISTS `pages`; CREATE TABLE IF NOT EXISTS `pages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `chapitre_id` int(11) NOT NULL, `numero` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `file_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `statut` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `commentaire` longtext COLLATE utf8mb4_unicode_ci, PRIMARY KEY (`id`), KEY `IDX_2074E5751FBEEF7B` (`chapitre_id`) ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `pages` -- INSERT INTO `pages` (`id`, `chapitre_id`, `numero`, `file_name`, `statut`, `commentaire`) VALUES (5, 3, '3', '01.jpg', 'En attente', NULL), (6, 3, '1', '02.jpg', 'En attente', NULL), (7, 3, '2', '04.jpg', 'En attente', NULL); -- -------------------------------------------------------- -- -- Structure de la table `users` -- DROP TABLE IF EXISTS `users`; CREATE TABLE IF NOT EXISTS `users` ( `id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(180) COLLATE utf8mb4_unicode_ci NOT NULL, `roles` json NOT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `UNIQ_1483A5E9F85E0677` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `users` -- INSERT INTO `users` (`id`, `username`, `roles`, `password`, `email`) VALUES (1, 'jordan', '[\"ROLE_ADMIN\"]', '$argon2i$v=19$m=65536,t=4,p=1$VFJHLmc2YlAuNnBVc1cuVQ$zayI/qMTgRzAT9oRSy3AoHMnzV2K04OJ0FwuY9ErPy4', ''); -- -------------------------------------------------------- -- -- Structure de la table `user_commentaire_chapitres` -- DROP TABLE IF EXISTS `user_commentaire_chapitres`; CREATE TABLE IF NOT EXISTS `user_commentaire_chapitres` ( `id` int(11) NOT NULL AUTO_INCREMENT, `commentaire_id` int(11) NOT NULL, `user_id` int(11) NOT NULL, `is_liked` tinyint(1) NOT NULL, `is_shared` tinyint(1) NOT NULL, PRIMARY KEY (`id`), KEY `IDX_1F15BBB5BA9CD190` (`commentaire_id`), KEY `IDX_1F15BBB5A76ED395` (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Déchargement des données de la table `user_commentaire_chapitres` -- INSERT INTO `user_commentaire_chapitres` (`id`, `commentaire_id`, `user_id`, `is_liked`, `is_shared`) VALUES (1, 1, 1, 1, 1), (2, 2, 1, 1, 0); -- -- Contraintes pour les tables déchargées -- -- -- Contraintes pour la table `admin_validation` -- ALTER TABLE `admin_validation` ADD CONSTRAINT `FK_DE92FDEB67B3B43D` FOREIGN KEY (`users_id`) REFERENCES `users` (`id`); -- -- Contraintes pour la table `arcs` -- ALTER TABLE `arcs` ADD CONSTRAINT `FK_7277EBA67B6461` FOREIGN KEY (`manga_id`) REFERENCES `mangas` (`id`); -- -- Contraintes pour la table `chapitres` -- ALTER TABLE `chapitres` ADD CONSTRAINT `FK_508679FC41EB8A3C` FOREIGN KEY (`arc_id`) REFERENCES `arcs` (`id`); -- -- Contraintes pour la table `chapitre_likes` -- ALTER TABLE `chapitre_likes` ADD CONSTRAINT `FK_FD54E31C1FBEEF7B` FOREIGN KEY (`chapitre_id`) REFERENCES `chapitres` (`id`), ADD CONSTRAINT `FK_FD54E31CA76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); -- -- Contraintes pour la table `commentaire_chapitres` -- ALTER TABLE `commentaire_chapitres` ADD CONSTRAINT `FK_DF11F6CB1FBEEF7B` FOREIGN KEY (`chapitre_id`) REFERENCES `chapitres` (`id`), ADD CONSTRAINT `FK_DF11F6CBA76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`); -- -- Contraintes pour la table `mangas` -- ALTER TABLE `mangas` ADD CONSTRAINT `FK_8271C42F67B3B43D` FOREIGN KEY (`users_id`) REFERENCES `users` (`id`); -- -- Contraintes pour la table `pages` -- ALTER TABLE `pages` ADD CONSTRAINT `FK_2074E5751FBEEF7B` FOREIGN KEY (`chapitre_id`) REFERENCES `chapitres` (`id`); -- -- Contraintes pour la table `user_commentaire_chapitres` -- ALTER TABLE `user_commentaire_chapitres` ADD CONSTRAINT `FK_1F15BBB5A76ED395` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`), ADD CONSTRAINT `FK_1F15BBB5BA9CD190` FOREIGN KEY (`commentaire_id`) REFERENCES `commentaire_chapitres` (`id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
CREATE TABLE `order` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `customer_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (61,32,DATE'2014-09-16','696 Osborne Street','Winnipeg','MB','Canada','R3L 2B9',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (265,27,DATE'2017-03-11','1033 N Park Ave','Tucson','AZ','USA','85719',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (326,51,DATE'2017-12-02','Celsiusg. 9','Stockholm',NULL,'Sweden','11230',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (122,5,DATE'2015-06-14','Klanova 9/506','Prague',NULL,'Czech Republic','14700',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (183,46,DATE'2016-03-18','3 Chatham Street','Dublin','Dublin','Ireland',NULL,1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (387,29,DATE'2018-09-03','796 Dundas Street West','Toronto','ON','Canada','M6J 1V1',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (40,36,DATE'2014-06-15','Tauentzienstraße 8','Berlin',NULL,'Germany','10789',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (244,31,DATE'2016-12-09','194A Chain Lake Drive','Halifax','NS','Canada','B3S 1C5',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (366,33,DATE'2018-06-02','5112 48 Street','Yellowknife','NT','Canada','X1A 1N6',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (305,55,DATE'2017-08-31','421 Bourke Street','Sidney','NSW','Australia','2010',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (162,50,DATE'2015-12-15','C/ San Bernardo 85','Madrid',NULL,'Spain','28015',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (101,9,DATE'2015-03-13','Sønder Boulevard 51','Copenhagen',NULL,'Denmark','1720',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (223,35,DATE'2016-09-07','Rua dos Campeões Europeus de Viena, 4350','Porto',NULL,'Portugal',NULL,0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (284,59,DATE'2017-05-30','3,Raj Bhavan Road','Bangalore',NULL,'India','560001',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (19,40,DATE'2014-03-14','8, Rue Hanovre','Paris',NULL,'France','75002',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (141,54,DATE'2015-09-13','110 Raeburn Pl','Edinburgh ',NULL,'United Kingdom','EH4 1HH',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (80,13,DATE'2014-12-10','Qe 7 Bloco G','Brasília','DF','Brazil','71020-677',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (406,21,DATE'2018-12-04','801 W 4th Street','Reno','NV','USA','89503',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (345,37,DATE'2018-03-01','Berger Straße 10','Frankfurt',NULL,'Germany','60316',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (263,4,DATE'2017-02-27','Ullevålsveien 14','Oslo',NULL,'Norway','0171',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (202,39,DATE'2016-06-06','4, Rue Milton','Paris',NULL,'France','75009',1.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (120,58,DATE'2015-06-12','12,Community Centre','Delhi',NULL,'India','110017',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (59,17,DATE'2014-09-08','1 Microsoft Way','Redmond','WA','USA','98052-8300',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (303,45,DATE'2017-08-27','Erzsébet krt. 58.','Budapest',NULL,'Hungary','H-1073',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (324,41,DATE'2017-11-28','11, Place Bellecour','Lyon',NULL,'France','69002',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (99,3,DATE'2015-03-11','1498 rue Bélanger','Montréal','QC','Canada','H2G 1A7',3.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (385,25,DATE'2018-09-02','319 N. Frances Street','Madison','WI','USA','53703',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (160,47,DATE'2015-12-02','Via Degli Scipioni, 43','Rome','RM','Italy','00192',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (181,43,DATE'2016-03-05','68, Rue Jouvence','Dijon',NULL,'France','21000',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (17,25,DATE'2014-03-06','319 N. Frances Street','Madison','WI','USA','53703',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (242,8,DATE'2016-11-26','Grétrystraat 63','Brussels',NULL,'Belgium','1000',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (282,49,DATE'2017-05-26','Ordynacka 10','Warsaw',NULL,'Poland','00-358',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (38,21,DATE'2014-06-07','801 W 4th Street','Reno','NV','USA','89503',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (139,51,DATE'2015-08-31','Celsiusg. 9','Stockholm',NULL,'Sweden','11230',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (364,29,DATE'2018-06-01','796 Dundas Street West','Toronto','ON','Canada','M6J 1V1',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (404,6,DATE'2018-11-13','Rilská 3174/6','Prague',NULL,'Czech Republic','14300',25.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (221,12,DATE'2016-08-25','Praça Pio X, 119','Rio de Janeiro','RJ','Brazil','20040-020',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (261,53,DATE'2017-02-23','113 Lupus St','London',NULL,'United Kingdom','SW1V 3EN',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (78,7,DATE'2014-12-08','Rotenturmstraße 4, 1010 Innere Stadt','Vienne',NULL,'Austria','1010',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (322,37,DATE'2017-11-27','Berger Straße 10','Frankfurt',NULL,'Germany','60316',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (343,33,DATE'2018-02-28','5112 48 Street','Yellowknife','NT','Canada','X1A 1N6',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (118,55,DATE'2015-05-30','421 Bourke Street','Sidney','NSW','Australia','2010',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (200,16,DATE'2016-05-24','1600 Amphitheatre Parkway','Mountain View','CA','USA','94043-1351',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (179,20,DATE'2016-02-20','541 Del Medio Avenue','Mountain View','CA','USA','94040-111',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (57,11,DATE'2014-09-06','Av. Paulista, 2022','São Paulo','SP','Brazil','01310-200',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (301,41,DATE'2017-08-26','11, Place Bellecour','Lyon',NULL,'France','69002',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (383,10,DATE'2018-08-12','Rua Dr. <NAME>, 155','São Paulo','SP','Brazil','01007-010',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (158,24,DATE'2015-11-19','162 E Superior Street','Chicago','IL','USA','60611',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (240,57,DATE'2016-11-22','Calle Lira, 198','Santiago',NULL,'Chile',NULL,3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (15,19,DATE'2014-03-04','1 Infinite Loop','Cupertino','CA','USA','95014',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (36,15,DATE'2014-06-05','700 W Pender Street','Vancouver','BC','Canada','V6C 1G8',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (280,45,DATE'2017-05-25','Erzsébet krt. 58.','Budapest',NULL,'Hungary','H-1073',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (97,59,DATE'2015-02-26','3,Raj Bhavan Road','Bangalore',NULL,'India','560001',1.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (137,28,DATE'2015-08-18','302 S 700 E','Salt Lake City','UT','USA','84102',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (362,14,DATE'2018-05-11','8210 111 ST NW','Edmonton','AB','Canada','T6G 2C7',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (320,22,DATE'2017-11-06','120 S Orange Ave','Orlando','FL','USA','32801',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (219,2,DATE'2016-08-21','Theodor-Heuss-Straße 34','Stuttgart',NULL,'Germany','70174',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (177,10,DATE'2016-02-16','Rua Dr. <NAME>, 155','São Paulo','SP','Brazil','01007-010',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (76,4,DATE'2014-11-25','Ullevålsveien 14','Oslo',NULL,'Norway','0171',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (34,12,DATE'2014-05-23','Praça Pio X, 119','Rio de Janeiro','RJ','Brazil','20040-020',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (341,18,DATE'2018-02-07','627 Broadway','New York','NY','USA','10012-2612',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (299,26,DATE'2017-08-05','2211 W Berry Street','Fort Worth','TX','USA','76110',23.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (402,50,DATE'2018-11-05','C/ San Bernardo 85','Madrid',NULL,'Spain','28015',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (156,14,DATE'2015-11-15','8210 111 ST NW','Edmonton','AB','Canada','T6G 2C7',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (198,6,DATE'2016-05-20','Rilská 3174/6','Prague',NULL,'Czech Republic','14300',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (13,16,DATE'2014-02-19','1600 Amphitheatre Parkway','Mountain View','CA','USA','94043-1351',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (259,49,DATE'2017-02-22','Ordynacka 10','Warsaw',NULL,'Poland','00-358',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (339,3,DATE'2018-01-30','1498 rue Bélanger','Montréal','QC','Canada','H2G 1A7',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (55,8,DATE'2014-08-24','Grétrystraat 63','Brussels',NULL,'Belgium','1000',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (135,18,DATE'2015-08-14','627 Broadway','New York','NY','USA','10012-2612',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (116,32,DATE'2015-05-17','696 Osborne Street','Winnipeg','MB','Canada','R3L 2B9',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (196,2,DATE'2016-05-19','Theodor-Heuss-Straße 34','Stuttgart',NULL,'Germany','70174',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (381,54,DATE'2018-08-04','110 Raeburn Pl','Edinburgh ',NULL,'United Kingdom','EH4 1HH',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (53,44,DATE'2014-08-11','Porthaninkatu 9','Helsinki',NULL,'Finland','00530',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (238,53,DATE'2016-11-21','113 Lupus St','London',NULL,'United Kingdom','SW1V 3EN',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (318,7,DATE'2017-10-29','Rotenturmstraße 4, 1010 Innere Stadt','Vienne',NULL,'Austria','1010',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (95,36,DATE'2015-02-13','Tauentzienstraße 8','Berlin',NULL,'Germany','10789',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (175,6,DATE'2016-02-15','Rilská 3174/6','Prague',NULL,'Czech Republic','14300',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (360,58,DATE'2018-05-03','12,Community Centre','Delhi',NULL,'India','110017',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (32,48,DATE'2014-05-10','Lijnbaansgracht 120bg','Amsterdam','VV','Netherlands','1016',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (217,57,DATE'2016-08-20','Cal<NAME>, 198','Santiago',NULL,'Chile',NULL,1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (297,11,DATE'2017-07-28','Av. Paulista, 2022','São Paulo','SP','Brazil','01310-200',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (278,30,DATE'2017-05-04','230 Elgin Street','Ottawa','ON','Canada','K2P 1L7',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (358,52,DATE'2018-05-01','202 Hoxton Street','London',NULL,'United Kingdom','N1 5LH',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (74,40,DATE'2014-11-12','8, Rue Hanovre','Paris',NULL,'France','75002',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (154,10,DATE'2015-11-14','Rua Dr. <NAME>, 155','São Paulo','SP','Brazil','01007-010',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (400,44,DATE'2018-11-03','Porthaninkatu 9','Helsinki',NULL,'Finland','00530',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (215,42,DATE'2016-07-30','9, Place Louis Barthou','Bordeaux',NULL,'France','33000',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (257,34,DATE'2017-02-01','Rua da Assunção 53','Lisbon',NULL,'Portugal',NULL,13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (11,52,DATE'2014-02-06','202 Hoxton Street','London',NULL,'United Kingdom','N1 5LH',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (114,22,DATE'2015-05-13','120 S Orange Ave','Orlando','FL','USA','32801',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (337,56,DATE'2018-01-28','307 <NAME>','Buenos Aires',NULL,'Argentina','1106',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (379,48,DATE'2018-08-02','Lijnbaansgracht 120bg','Amsterdam','VV','Netherlands','1016',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (194,46,DATE'2016-04-28','3 Chatham Street','Dublin','Dublin','Ireland',NULL,21.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (236,38,DATE'2016-10-31','Barbarossastraße 19','Berlin',NULL,'Germany','10779',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (51,34,DATE'2014-08-07','Rua da Assunção 53','Lisbon',NULL,'Portugal',NULL,3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (93,26,DATE'2015-02-09','2211 W Berry Street','Fort Worth','TX','USA','76110',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (316,1,DATE'2017-10-27','Av. Brigadeiro Faria Lima, 2170','São José dos Campos','SP','Brazil','12227-000',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (276,15,DATE'2017-04-26','700 W Pender Street','Vancouver','BC','Canada','V6C 1G8',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (173,50,DATE'2016-01-25','C/ San Bernardo 85','Madrid',NULL,'Spain','28015',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (72,30,DATE'2014-11-08','230 Elgin Street','Ottawa','ON','Canada','K2P 1L7',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (30,38,DATE'2014-05-06','Barbarossastraße 19','Berlin',NULL,'Germany','10779',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (133,14,DATE'2015-08-13','8210 111 ST NW','Edmonton','AB','Canada','T6G 2C7',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (356,49,DATE'2018-04-18','Ordynacka 10','Warsaw',NULL,'Poland','00-358',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (398,41,DATE'2018-10-21','11, Place Bellecour','Lyon',NULL,'France','69002',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (213,27,DATE'2016-07-22','1033 N Park Ave','Tucson','AZ','USA','85719',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (255,19,DATE'2017-01-24','1 Infinite Loop','Cupertino','CA','USA','95014',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (9,42,DATE'2014-02-02','9, Place Louis Barthou','Bordeaux',NULL,'France','33000',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (112,18,DATE'2015-05-12','627 Broadway','New York','NY','USA','10012-2612',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (70,26,DATE'2014-11-07','2211 W Berry Street','Fort Worth','TX','USA','76110',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (377,45,DATE'2018-07-20','Erzsébet krt. 58.','Budapest',NULL,'Hungary','H-1073',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (335,53,DATE'2018-01-15','113 Lupus St','London',NULL,'United Kingdom','SW1V 3EN',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (234,23,DATE'2016-10-23','69 Salem Street','Boston','MA','USA','2113',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (192,31,DATE'2016-04-20','194A Chain Lake Drive','Halifax','NS','Canada','B3S 1C5',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (295,5,DATE'2017-07-26','Klanova 9/506','Prague',NULL,'Czech Republic','14700',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (49,30,DATE'2014-08-06','230 Elgin Street','Ottawa','ON','Canada','K2P 1L7',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (91,22,DATE'2015-02-08','120 S Orange Ave','Orlando','FL','USA','32801',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (375,22,DATE'2018-07-07','120 S Orange Ave','Orlando','FL','USA','32801',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (152,54,DATE'2015-10-24','110 Raeburn Pl','Edinburgh ',NULL,'United Kingdom','EH4 1HH',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (171,35,DATE'2016-01-17','Rua dos Campeões Europeus de Viena, 4350','Porto',NULL,'Portugal',NULL,5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (274,9,DATE'2017-04-24','Sønder Boulevard 51','Copenhagen',NULL,'Denmark','1720',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (232,17,DATE'2016-10-21','1 Microsoft Way','Redmond','WA','USA','98052-8300',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (131,58,DATE'2015-07-23','12,Community Centre','Delhi',NULL,'India','110017',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (28,34,DATE'2014-05-05','Rua da Assunção 53','Lisbon',NULL,'Portugal',NULL,1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (396,18,DATE'2018-10-08','627 Broadway','New York','NY','USA','10012-2612',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (89,7,DATE'2015-01-18','Rotenturmstraße 4, 1010 Innere Stadt','Vienne',NULL,'Austria','1010',18.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (253,13,DATE'2017-01-22','Qe 7 Bloco G','Brasília','DF','Brazil','71020-677',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (354,26,DATE'2018-04-05','2211 W Berry Street','Fort Worth','TX','USA','76110',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (314,57,DATE'2017-10-14','Calle Lira, 198','Santiago',NULL,'Chile',NULL,0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (211,21,DATE'2016-07-20','801 W 4th Street','Reno','NV','USA','89503',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (110,3,DATE'2015-04-21','1498 rue Bélanger','Montréal','QC','Canada','H2G 1A7',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (68,11,DATE'2014-10-17','Av. Paulista, 2022','São Paulo','SP','Brazil','01310-200',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (293,2,DATE'2017-07-13','Theodor-Heuss-Straße 34','Stuttgart',NULL,'Germany','70174',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (333,30,DATE'2018-01-02','230 Elgin Street','Ottawa','ON','Canada','K2P 1L7',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (150,39,DATE'2015-10-16','4, Rue Milton','Paris',NULL,'France','75009',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (394,8,DATE'2018-10-04','Grétrystraat 63','Brussels',NULL,'Belgium','1000',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (7,38,DATE'2014-02-01','Barbarossastraße 19','Berlin',NULL,'Germany','10779',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (190,25,DATE'2016-04-18','319 N. Frances Street','Madison','WI','USA','53703',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (272,6,DATE'2017-04-11','Rilská 3174/6','Prague',NULL,'Czech Republic','14300',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (251,10,DATE'2017-01-09','Rua Dr. Falcão Filho, 155','São Paulo','SP','Brazil','01007-010',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (129,43,DATE'2015-07-15','68, Rue Jouvence','Dijon',NULL,'France','21000',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (47,15,DATE'2014-07-16','700 W Pender Street','Vancouver','BC','Canada','V6C 1G8',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (312,34,DATE'2017-10-01','Rua da Assunção 53','Lisbon',NULL,'Portugal',NULL,10.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (373,12,DATE'2018-07-03','Praça Pio X, 119','Rio de Janeiro','RJ','Brazil','20040-020',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (108,47,DATE'2015-04-13','Via Degli Scipioni, 43','Rome','RM','Italy','00192',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (230,14,DATE'2016-10-08','8210 111 ST NW','Edmonton','AB','Canada','T6G 2C7',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (169,29,DATE'2016-01-15','796 Dundas Street West','Toronto','ON','Canada','M6J 1V1',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (87,51,DATE'2015-01-10','Celsiusg. 9','Stockholm',NULL,'Sweden','11230',6.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (26,19,DATE'2014-04-14','1 Infinite Loop','Cupertino','CA','USA','95014',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (352,16,DATE'2018-04-01','1600 Amphitheatre Parkway','Mountain View','CA','USA','94043-1351',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (291,38,DATE'2017-06-30','Barbarossastraße 19','Berlin',NULL,'Germany','10779',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (209,18,DATE'2016-07-07','627 Broadway','New York','NY','USA','10012-2612',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (148,33,DATE'2015-10-14','5112 48 Street','Yellowknife','NT','Canada','X1A 1N6',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (66,55,DATE'2014-10-09','421 Bourke Street','Sidney','NSW','Australia','2010',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (5,23,DATE'2014-01-11','69 Salem Street','Boston','MA','USA','2113',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (392,4,DATE'2018-10-03','Ullevålsveien 14','Oslo',NULL,'Norway','0171',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (270,42,DATE'2017-03-29','9, Place Louis Barthou','Bordeaux',NULL,'France','33000',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (249,46,DATE'2016-12-27','3 Chatham Street','Dublin','Dublin','Ireland',NULL,8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (331,20,DATE'2017-12-29','541 Del Medio Avenue','Mountain View','CA','USA','94040-111',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (45,59,DATE'2014-07-08','3,Raj Bhavan Road','Bangalore',NULL,'India','560001',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (127,37,DATE'2015-07-13','Berger Straße 10','Frankfurt',NULL,'Germany','60316',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (106,41,DATE'2015-04-11','11, Place Bellecour','Lyon',NULL,'France','69002',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (188,22,DATE'2016-04-05','120 S Orange Ave','Orlando','FL','USA','32801',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (371,8,DATE'2018-07-02','Grétrystraat 63','Brussels',NULL,'Belgium','1000',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (310,24,DATE'2017-09-27','162 E Superior Street','Chicago','IL','USA','60611',7.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (228,50,DATE'2016-09-25','C/ San Bernardo 85','Madrid',NULL,'Spain','28015',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (167,26,DATE'2016-01-02','2211 W Berry Street','Fort Worth','TX','USA','76110',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (85,45,DATE'2015-01-08','Erzsébet krt. 58.','Budapest',NULL,'Hungary','H-1073',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (24,4,DATE'2014-04-06','Ullevålsveien 14','Oslo',NULL,'Norway','0171',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (350,12,DATE'2018-03-31','Praça Pio X, 119','Rio de Janeiro','RJ','Brazil','20040-020',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (289,28,DATE'2017-06-26','302 S 700 E','Salt Lake City','UT','USA','84102',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (411,44,DATE'2018-12-14','Porthaninkatu 9','Helsinki',NULL,'Finland','00530',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (146,30,DATE'2015-10-01','230 Elgin Street','Ottawa','ON','Canada','K2P 1L7',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (207,54,DATE'2016-06-24','110 Raeburn Pl','Edinburgh ',NULL,'United Kingdom','EH4 1HH',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (3,8,DATE'2014-01-03','Grétrystraat 63','Brussels',NULL,'Belgium','1000',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (268,32,DATE'2017-03-25','696 Osborne Street','Winnipeg','MB','Canada','R3L 2B9',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (329,16,DATE'2017-12-28','1600 Amphitheatre Parkway','Mountain View','CA','USA','94043-1351',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (64,49,DATE'2014-10-07','Ordynacka 10','Warsaw',NULL,'Poland','00-358',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (186,58,DATE'2016-03-23','12,Community Centre','Delhi',NULL,'India','110017',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (125,34,DATE'2015-06-30','Rua da Assunção 53','Lisbon',NULL,'Portugal',NULL,0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (43,53,DATE'2014-07-06','113 Lupus St','London',NULL,'United Kingdom','SW1V 3EN',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (390,48,DATE'2018-09-12','Lijnbaansgracht 120bg','Amsterdam','VV','Netherlands','1016',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (308,20,DATE'2017-09-26','541 Del Medio Avenue','Mountain View','CA','USA','94040-111',3.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (247,36,DATE'2016-12-23','Tauentzienstraße 8','Berlin',NULL,'Germany','10789',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (165,3,DATE'2015-12-20','1498 rue Bélanger','Montréal','QC','Canada','H2G 1A7',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (104,38,DATE'2015-03-29','Barbarossastraße 19','Berlin',NULL,'Germany','10779',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (22,57,DATE'2014-04-04','Calle Lira, 198','Santiago',NULL,'Chile',NULL,1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (369,52,DATE'2018-06-11','202 Hoxton Street','London',NULL,'United Kingdom','N1 5LH',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (348,56,DATE'2018-03-10','307 <NAME>','Buenos Aires',NULL,'Argentina','1106',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (226,40,DATE'2016-09-21','8, R<NAME>','Paris',NULL,'France','75002',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (144,7,DATE'2015-09-18','Rotenturmstraße 4, 1010 Innere Stadt','Vienne',NULL,'Austria','1010',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (287,24,DATE'2017-06-25','162 E Superior Street','Chicago','IL','USA','60611',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (205,44,DATE'2016-06-20','Porthaninkatu 9','Helsinki',NULL,'Finland','00530',7.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (83,42,DATE'2014-12-26','9, Place Louis Barthou','Bordeaux',NULL,'France','33000',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (1,2,DATE'2014-01-01','Theodor-Heuss-Straße 34','Stuttgart',NULL,'Germany','70174',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (409,29,DATE'2018-12-06','796 Dundas Street West','Toronto','ON','Canada','M6J 1V1',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (62,46,DATE'2014-09-24','3 Chatham Street','Dublin','Dublin','Ireland',NULL,0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (266,28,DATE'2017-03-24','302 S 700 E','Salt Lake City','UT','USA','84102',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (327,1,DATE'2017-12-07','Av. Brigadeiro Faria Lima, 2170','São José dos Campos','SP','Brazil','12227-000',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (123,11,DATE'2015-06-17','Av. Paulista, 2022','São Paulo','SP','Brazil','01310-200',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (184,48,DATE'2016-03-19','Lijnbaansgracht 120bg','Amsterdam','VV','Netherlands','1016',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (388,33,DATE'2018-09-04','5112 48 Street','Yellowknife','NT','Canada','X1A 1N6',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (41,50,DATE'2014-06-23','C/ San Bernardo 85','Madrid',NULL,'Spain','28015',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (245,32,DATE'2016-12-22','696 Osborne Street','Winnipeg','MB','Canada','R3L 2B9',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (306,5,DATE'2017-09-05','Klanova 9/506','Prague',NULL,'Czech Republic','14700',16.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (102,15,DATE'2015-03-16','700 W Pender Street','Vancouver','BC','Canada','V6C 1G8',9.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (367,37,DATE'2018-06-03','Berger Straße 10','Frankfurt',NULL,'Germany','60316',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (285,9,DATE'2017-06-04','Sønder Boulevard 51','Copenhagen',NULL,'Denmark','1720',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (163,52,DATE'2015-12-16','202 Hoxton Street','London',NULL,'United Kingdom','N1 5LH',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (81,19,DATE'2014-12-13','1 Infinite Loop','Cupertino','CA','USA','95014',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (224,36,DATE'2016-09-20','Tauentzienstraße 8','Berlin',NULL,'Germany','10789',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (142,56,DATE'2015-09-14','307 Macacha Güemes','Buenos Aires',NULL,'Argentina','1106',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (20,54,DATE'2014-03-22','110 Raeburn Pl','Edinburgh ',NULL,'United Kingdom','EH4 1HH',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (407,23,DATE'2018-12-04','69 Salem Street','Boston','MA','USA','2113',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (346,41,DATE'2018-03-02','11, Place Bellecour','Lyon',NULL,'France','69002',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (264,13,DATE'2017-03-03','Qe 7 Bloco G','Brasília','DF','Brazil','71020-677',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (203,40,DATE'2016-06-19','8, Rue Hanovre','Paris',NULL,'France','75002',2.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (121,1,DATE'2015-06-13','Av. Brigadeiro Faria Lima, 2170','São José dos Campos','SP','Brazil','12227-000',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (60,23,DATE'2014-09-11','69 Salem Street','Boston','MA','USA','2113',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (386,27,DATE'2018-09-02','1033 N Park Ave','Tucson','AZ','USA','85719',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (325,45,DATE'2017-11-29','Erzsébet krt. 58.','Budapest',NULL,'Hungary','H-1073',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (243,17,DATE'2016-12-01','1 Microsoft Way','Redmond','WA','USA','98052-8300',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (182,44,DATE'2016-03-18','Porthaninkatu 9','Helsinki',NULL,'Finland','00530',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (304,49,DATE'2017-08-28','Ordynacka 10','Warsaw',NULL,'Poland','00-358',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (39,27,DATE'2014-06-10','1033 N Park Ave','Tucson','AZ','USA','85719',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (100,5,DATE'2015-03-12','Klanova 9/506','Prague',NULL,'Czech Republic','14700',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (365,31,DATE'2018-06-01','194A Chain Lake Drive','Halifax','NS','Canada','B3S 1C5',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (161,48,DATE'2015-12-15','Lijnbaansgracht 120bg','Amsterdam','VV','Netherlands','1016',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (222,21,DATE'2016-08-30','801 W 4th Street','Reno','NV','USA','89503',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (283,53,DATE'2017-05-27','113 Lupus St','London',NULL,'United Kingdom','SW1V 3EN',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (18,31,DATE'2014-03-09','194A Chain Lake Drive','Halifax','NS','Canada','B3S 1C5',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (140,52,DATE'2015-09-13','202 Hoxton Street','London',NULL,'United Kingdom','N1 5LH',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (79,9,DATE'2014-12-09','Sønder Boulevard 51','Copenhagen',NULL,'Denmark','1720',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (405,20,DATE'2018-11-21','541 Del Medio Avenue','Mountain View','CA','USA','94040-111',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (344,35,DATE'2018-02-28','Rua dos Campeões Europeus de Viena, 4350','Porto',NULL,'Portugal',NULL,1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (262,57,DATE'2017-02-24','Calle Lira, 198','Santiago',NULL,'Chile',NULL,5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (201,25,DATE'2016-05-29','319 N. Frances Street','Madison','WI','USA','53703',18.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (119,56,DATE'2015-06-12','307 Macacha Güemes','Buenos Aires',NULL,'Argentina','1106',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (58,13,DATE'2014-09-07','Qe 7 Bloco G','Brasília','DF','Brazil','71020-677',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (302,43,DATE'2017-08-26','68, R<NAME>','Dijon',NULL,'France','21000',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (323,39,DATE'2017-11-27','4, Rue Milton','Paris',NULL,'France','75009',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (159,33,DATE'2015-11-24','5112 48 Street','Yellowknife','NT','Canada','X1A 1N6',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (384,24,DATE'2018-08-20','162 E Superior Street','Chicago','IL','USA','60611',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (16,21,DATE'2014-03-05','801 W 4th Street','Reno','NV','USA','89503',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (180,29,DATE'2016-02-25','796 Dundas Street West','Toronto','ON','Canada','M6J 1V1',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (281,47,DATE'2017-05-25','Via Degli Scipioni, 43','Rome','RM','Italy','00192',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (241,2,DATE'2016-11-23','Theodor-Heuss-Straße 34','Stuttgart',NULL,'Germany','70174',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (138,37,DATE'2015-08-23','Berger Straße 10','Frankfurt',NULL,'Germany','60316',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (37,17,DATE'2014-06-06','1 Microsoft Way','Redmond','WA','USA','98052-8300',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (321,36,DATE'2017-11-14','Tauentzienstraße 8','Berlin',NULL,'Germany','10789',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (98,1,DATE'2015-03-11','Av. Brigadeiro Faria Lima, 2170','São José dos Campos','SP','Brazil','12227-000',3.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (117,41,DATE'2015-05-22','11, Place Bellecour','Lyon',NULL,'France','69002',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (363,28,DATE'2018-05-19','302 S 700 E','Salt Lake City','UT','USA','84102',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (178,14,DATE'2016-02-17','8210 111 ST NW','Edmonton','AB','Canada','T6G 2C7',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (220,6,DATE'2016-08-22','Rilská 3174/6','Prague',NULL,'Czech Republic','14300',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (35,13,DATE'2014-06-05','Qe 7 Bloco G','Brasília','DF','Brazil','71020-677',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (77,5,DATE'2014-12-08','Klanova 9/506','Prague',NULL,'Czech Republic','14700',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (300,40,DATE'2017-08-13','8, Rue Hanovre','Paris',NULL,'France','75002',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (342,32,DATE'2018-02-15','696 Osborne Street','Winnipeg','MB','Canada','R3L 2B9',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (157,18,DATE'2015-11-16','627 Broadway','New York','NY','USA','10012-2612',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (403,56,DATE'2018-11-08','307 Macacha Güemes','Buenos Aires',NULL,'Argentina','1106',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (14,17,DATE'2014-03-04','1 Microsoft Way','Redmond','WA','USA','98052-8300',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (199,10,DATE'2016-05-21','Rua Dr. <NAME>, 155','São Paulo','SP','Brazil','01007-010',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (279,44,DATE'2017-05-12','Porthaninkatu 9','Helsinki',NULL,'Finland','00530',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (260,51,DATE'2017-02-22','Celsiusg. 9','Stockholm',NULL,'Sweden','11230',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (340,9,DATE'2018-02-02','Sønder Boulevard 51','Copenhagen',NULL,'Denmark','1720',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (56,9,DATE'2014-09-06','Sønder Boulevard 51','Copenhagen',NULL,'Denmark','1720',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (136,22,DATE'2015-08-15','120 S Orange Ave','Orlando','FL','USA','32801',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (382,1,DATE'2018-08-07','Av. Brigadeiro Faria Lima, 2170','São José dos Campos','SP','Brazil','12227-000',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (197,4,DATE'2016-05-19','Ullevålsveien 14','Oslo',NULL,'Norway','0171',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (239,55,DATE'2016-11-21','421 Bourke Street','Sidney','NSW','Australia','2010',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (319,13,DATE'2017-11-01','Qe 7 Bloco G','Brasília','DF','Brazil','71020-677',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (96,45,DATE'2015-02-18','Erzsébet krt. 58.','Budapest',NULL,'Hungary','H-1073',21.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (176,8,DATE'2016-02-15','Grétrystraat 63','Brussels',NULL,'Belgium','1000',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (361,5,DATE'2018-05-06','Klanova 9/506','Prague',NULL,'Czech Republic','14700',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (33,57,DATE'2014-05-15','Calle Lira, 198','Santiago',NULL,'Chile',NULL,13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (218,59,DATE'2016-08-20','3,Raj Bhavan Road','Bangalore',NULL,'India','560001',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (298,17,DATE'2017-07-31','1 Microsoft Way','Redmond','WA','USA','98052-8300',10.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (75,49,DATE'2014-11-17','Ordynacka 10','Warsaw',NULL,'Poland','00-358',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (155,12,DATE'2015-11-14','Praça Pio X, 119','Rio de Janeiro','RJ','Brazil','20040-020',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (401,46,DATE'2018-11-04','3 Chatham Street','Dublin','Dublin','Ireland',NULL,3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (12,2,DATE'2014-02-11','Theodor-Heuss-Straße 34','Stuttgart',NULL,'Germany','70174',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (258,48,DATE'2017-02-09','Lijnbaansgracht 120bg','Amsterdam','VV','Netherlands','1016',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (338,58,DATE'2018-01-29','12,Community Centre','Delhi',NULL,'India','110017',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (54,53,DATE'2014-08-16','113 Lupus St','London',NULL,'United Kingdom','SW1V 3EN',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (195,1,DATE'2016-05-06','Av. Brigadeiro Faria Lima, 2170','São José dos Campos','SP','Brazil','12227-000',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (115,26,DATE'2015-05-14','2211 W Berry Street','Fort Worth','TX','USA','76110',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (52,38,DATE'2014-08-08','Barbarossastraße 19','Berlin',NULL,'Germany','10779',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (380,50,DATE'2018-08-03','C/ San Bernardo 85','Madrid',NULL,'Spain','28015',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (317,3,DATE'2017-10-28','1498 rue Bélanger','Montréal','QC','Canada','H2G 1A7',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (237,52,DATE'2016-11-08','202 Hoxton Street','London',NULL,'United Kingdom','N1 5LH',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (174,5,DATE'2016-02-02','Klanova 9/506','Prague',NULL,'Czech Republic','14700',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (94,30,DATE'2015-02-10','230 Elgin Street','Ottawa','ON','Canada','K2P 1L7',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (31,42,DATE'2014-05-07','9, Place Louis Barthou','Bordeaux',NULL,'France','33000',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (359,54,DATE'2018-05-02','110 Raeburn Pl','Edinburgh ',NULL,'United Kingdom','EH4 1HH',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (357,50,DATE'2018-05-01','C/ San Bernardo 85','Madrid',NULL,'Spain','28015',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (216,56,DATE'2016-08-07','307 Mac<NAME>','Buenos Aires',NULL,'Argentina','1106',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (153,9,DATE'2015-11-01','Sønder Boulevard 51','Copenhagen',NULL,'Denmark','1720',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (277,21,DATE'2017-04-29','801 W 4th Street','Reno','NV','USA','89503',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (214,33,DATE'2016-07-25','5112 48 Street','Yellowknife','NT','Canada','X1A 1N6',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (73,34,DATE'2014-11-09','Rua da Assunção 53','Lisbon',NULL,'Portugal',NULL,5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (10,46,DATE'2014-02-03','3 Chatham Street','Dublin','Dublin','Ireland',NULL,5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (134,16,DATE'2015-08-13','1600 Amphitheatre Parkway','Mountain View','CA','USA','94043-1351',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (71,28,DATE'2014-11-07','302 S 700 E','Salt Lake City','UT','USA','84102',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (399,42,DATE'2018-11-03','9, Place Louis Barthou','Bordeaux',NULL,'France','33000',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (336,54,DATE'2018-01-28','110 Raeburn Pl','Edinburgh ',NULL,'United Kingdom','EH4 1HH',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (256,25,DATE'2017-01-27','319 N. Frances Street','Madison','WI','USA','53703',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (193,37,DATE'2016-04-23','Berger Straße 10','Frankfurt',NULL,'Germany','60316',14.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (113,20,DATE'2015-05-12','541 Del Medio Avenue','Mountain View','CA','USA','94040-111',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (50,32,DATE'2014-08-06','696 Osborne Street','Winnipeg','MB','Canada','R3L 2B9',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (378,46,DATE'2018-08-02','3 Chatham Street','Dublin','Dublin','Ireland',NULL,1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (315,58,DATE'2017-10-27','12,Community Centre','Delhi',NULL,'India','110017',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (235,29,DATE'2016-10-26','796 Dundas Street West','Toronto','ON','Canada','M6J 1V1',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (376,31,DATE'2018-07-12','194A Chain Lake Drive','Halifax','NS','Canada','B3S 1C5',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (296,7,DATE'2017-07-27','Rotenturmstraße 4, 1010 Innere Stadt','Vienne',NULL,'Austria','1010',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (172,41,DATE'2016-01-20','11, Place Bellecour','Lyon',NULL,'France','69002',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (92,24,DATE'2015-02-08','162 E Superior Street','Chicago','IL','USA','60611',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (233,19,DATE'2016-10-22','1 Infinite Loop','Cupertino','CA','USA','95014',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (275,11,DATE'2017-04-25','Av. Paulista, 2022','São Paulo','SP','Brazil','01310-200',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (29,36,DATE'2014-05-05','Tauentzienstraße 8','Berlin',NULL,'Germany','10789',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (132,13,DATE'2015-07-31','Qe 7 Bloco G','Brasília','DF','Brazil','71020-677',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (355,35,DATE'2018-04-10','Rua dos Campeões Europeus de Viena, 4350','Porto',NULL,'Portugal',NULL,13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (397,27,DATE'2018-10-13','1033 N Park Ave','Tucson','AZ','USA','85719',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (212,23,DATE'2016-07-21','69 Salem Street','Boston','MA','USA','2113',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (254,15,DATE'2017-01-23','700 W Pender Street','Vancouver','BC','Canada','V6C 1G8',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (69,25,DATE'2014-10-25','319 N. Frances Street','Madison','WI','USA','53703',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (111,17,DATE'2015-04-29','1 Microsoft Way','Redmond','WA','USA','98052-8300',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (334,39,DATE'2018-01-07','4, Rue Milton','Paris',NULL,'France','75009',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (294,3,DATE'2017-07-26','1498 rue Bélanger','Montréal','QC','Canada','H2G 1A7',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (191,27,DATE'2016-04-19','1033 N Park Ave','Tucson','AZ','USA','85719',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (90,21,DATE'2015-01-26','801 W 4th Street','Reno','NV','USA','89503',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (48,29,DATE'2014-07-24','796 Dundas Street West','Toronto','ON','Canada','M6J 1V1',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (151,45,DATE'2015-10-19','Erzsébet krt. 58.','Budapest',NULL,'Hungary','H-1073',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (374,16,DATE'2018-07-04','1600 Amphitheatre Parkway','Mountain View','CA','USA','94043-1351',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (8,40,DATE'2014-02-01','8, R<NAME>','Paris',NULL,'France','75002',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (231,15,DATE'2016-10-21','700 W Pender Street','Vancouver','BC','Canada','V6C 1G8',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (273,7,DATE'2017-04-24','Rotenturmstraße 4, 1010 Innere Stadt','Vienne',NULL,'Austria','1010',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (27,33,DATE'2014-04-22','5112 48 Street','Yellowknife','NT','Canada','X1A 1N6',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (130,49,DATE'2015-07-18','Ordynacka 10','Warsaw',NULL,'Poland','00-358',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (88,57,DATE'2015-01-13','Calle Lira, 198','Santiago',NULL,'Chile',NULL,17.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (395,12,DATE'2018-10-05','Praça Pio X, 119','Rio de Janeiro','RJ','Brazil','20040-020',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (353,20,DATE'2018-04-02','541 Del Medio Avenue','Mountain View','CA','USA','94040-111',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (252,11,DATE'2017-01-22','Av. Paulista, 2022','São Paulo','SP','Brazil','01310-200',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (210,19,DATE'2016-07-20','1 Infinite Loop','Cupertino','CA','USA','95014',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (313,43,DATE'2017-10-06','68, Rue Jouvence','Dijon',NULL,'France','21000',16.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (67,2,DATE'2014-10-12','Theodor-Heuss-Straße 34','Stuttgart',NULL,'Germany','70174',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (109,53,DATE'2015-04-16','113 Lupus St','London',NULL,'United Kingdom','SW1V 3EN',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (332,24,DATE'2017-12-30','162 E Superior Street','Chicago','IL','USA','60611',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (170,31,DATE'2016-01-16','194A Chain Lake Drive','Halifax','NS','Canada','B3S 1C5',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (393,6,DATE'2018-10-03','Rilská 3174/6','Prague',NULL,'Czech Republic','14300',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (292,47,DATE'2017-07-05','Via Degli Scipioni, 43','Rome','RM','Italy','00192',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (189,23,DATE'2016-04-18','69 Salem Street','Boston','MA','USA','2113',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (149,35,DATE'2015-10-15','Rua dos Campeões Europeus de Viena, 4350','Porto',NULL,'Portugal',NULL,3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (250,55,DATE'2017-01-01','421 Bourke Street','Sidney','NSW','Australia','2010',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (6,37,DATE'2014-01-19','Berger Straße 10','Frankfurt',NULL,'Germany','60316',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (46,6,DATE'2014-07-11','Rilská 3174/6','Prague',NULL,'Czech Republic','14300',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (271,51,DATE'2017-04-03','Celsiusg. 9','Stockholm',NULL,'Sweden','11230',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (107,43,DATE'2015-04-12','68, Rue Jouvence','Dijon',NULL,'France','21000',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (128,39,DATE'2015-07-14','4, Rue Milton','Paris',NULL,'France','75009',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (372,10,DATE'2018-07-02','Rua Dr. <NAME>, 155','São Paulo','SP','Brazil','01007-010',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (311,28,DATE'2017-09-28','302 S 700 E','Salt Lake City','UT','USA','84102',11.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (229,59,DATE'2016-09-30','3,Raj Bhavan Road','Bangalore',NULL,'India','560001',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (168,27,DATE'2016-01-15','1033 N Park Ave','Tucson','AZ','USA','85719',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (86,47,DATE'2015-01-09','Via Degli Scipioni, 43','Rome','RM','Italy','00192',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (25,10,DATE'2014-04-09','Rua Dr. <NAME>, 155','São Paulo','SP','Brazil','01007-010',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (351,14,DATE'2018-03-31','8210 111 ST NW','Edmonton','AB','Canada','T6G 2C7',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (290,32,DATE'2017-06-27','696 Osborne Street','Winnipeg','MB','Canada','R3L 2B9',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (412,58,DATE'2018-12-22','12,Community Centre','Delhi',NULL,'India','110017',1.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (147,31,DATE'2015-10-14','194A Chain Lake Drive','Halifax','NS','Canada','B3S 1C5',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (208,4,DATE'2016-06-29','Ullevålsveien 14','Oslo',NULL,'Norway','0171',15.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (4,14,DATE'2014-01-06','8210 111 ST NW','Edmonton','AB','Canada','T6G 2C7',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (269,36,DATE'2017-03-26','Tauentzienstraße 8','Berlin',NULL,'Germany','10789',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (330,18,DATE'2017-12-28','627 Broadway','New York','NY','USA','10012-2612',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (65,51,DATE'2014-10-08','Celsiusg. 9','Stockholm',NULL,'Sweden','11230',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (126,35,DATE'2015-07-13','Rua dos Campeões Europeus de Viena, 4350','Porto',NULL,'Portugal',NULL,1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (391,3,DATE'2018-09-20','1498 rue Bélanger','Montréal','QC','Canada','H2G 1A7',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (187,8,DATE'2016-03-28','Grétrystraat 63','Brussels',NULL,'Belgium','1000',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (248,40,DATE'2016-12-24','8, Rue Hanovre','Paris',NULL,'France','75002',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (44,55,DATE'2014-07-07','421 Bourke Street','Sidney','NSW','Australia','2010',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (105,39,DATE'2015-04-11','4, Rue Milton','Paris',NULL,'France','75009',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (309,22,DATE'2017-09-26','120 S Orange Ave','Orlando','FL','USA','32801',3.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (370,7,DATE'2018-06-19','Rotenturmstraße 4, 1010 Innere Stadt','Vienne',NULL,'Austria','1010',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (166,12,DATE'2015-12-25','Praça Pio X, 119','Rio de Janeiro','RJ','Brazil','20040-020',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (227,44,DATE'2016-09-22','Porthaninkatu 9','Helsinki',NULL,'Finland','00530',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (23,59,DATE'2014-04-05','3,Raj Bhavan Road','Bangalore',NULL,'India','560001',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (84,43,DATE'2015-01-08','68, Rue Jouvence','Dijon',NULL,'France','21000',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (288,26,DATE'2017-06-25','2211 W Berry Street','Fort Worth','TX','USA','76110',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (410,35,DATE'2018-12-09','Rua dos Campeões Europeus de Viena, 4350','Porto',NULL,'Portugal',NULL,8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (349,11,DATE'2018-03-18','Av. Paulista, 2022','São Paulo','SP','Brazil','01310-200',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (267,30,DATE'2017-03-24','230 Elgin Street','Ottawa','ON','Canada','K2P 1L7',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (145,16,DATE'2015-09-23','1600 Amphitheatre Parkway','Mountain View','CA','USA','94043-1351',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (63,47,DATE'2014-10-07','Via Degli Scipioni, 43','Rome','RM','Italy','00192',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (206,48,DATE'2016-06-21','Lijnbaansgracht 120bg','Amsterdam','VV','Netherlands','1016',8.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (124,20,DATE'2015-06-22','541 Del Medio Avenue','Mountain View','CA','USA','94040-111',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (2,4,DATE'2014-01-02','Ullevålsveien 14','Oslo',NULL,'Norway','0171',3.96) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (389,39,DATE'2018-09-07','4, Rue Milton','Paris',NULL,'France','75009',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (328,15,DATE'2017-12-15','700 W Pender Street','Vancouver','BC','Canada','V6C 1G8',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (246,34,DATE'2016-12-22','Rua da Assunção 53','Lisbon',NULL,'Portugal',NULL,1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (185,52,DATE'2016-03-20','202 Hoxton Street','London',NULL,'United Kingdom','N1 5LH',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (103,24,DATE'2015-03-21','162 E Superior Street','Chicago','IL','USA','60611',15.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (42,51,DATE'2014-07-06','Celsiusg. 9','Stockholm',NULL,'Sweden','11230',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (368,43,DATE'2018-06-06','68, Rue Jouvence','Dijon',NULL,'France','21000',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (307,19,DATE'2017-09-13','1 Infinite Loop','Cupertino','CA','USA','95014',1.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (225,38,DATE'2016-09-20','Barbarossastraße 19','Berlin',NULL,'Germany','10779',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (164,56,DATE'2015-12-17','307 <NAME>','Buenos Aires',NULL,'Argentina','1106',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (286,23,DATE'2017-06-12','69 Salem Street','Boston','MA','USA','2113',0.99) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (21,55,DATE'2014-04-04','421 Bourke Street','Sidney','NSW','Australia','2010',1.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (82,28,DATE'2014-12-18','302 S 700 E','Salt Lake City','UT','USA','84102',13.86) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (347,47,DATE'2018-03-05','Via Degli Scipioni, 43','Rome','RM','Italy','00192',8.91) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (143,1,DATE'2015-09-15','Av. Brigadeiro Faria Lima, 2170','São José dos Campos','SP','Brazil','12227-000',5.94) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (204,42,DATE'2016-06-19','9, Place Louis Barthou','Bordeaux',NULL,'France','33000',3.98) ;INSERT INTO "Chinook"."Invoice" ("InvoiceId","CustomerId","InvoiceDate","BillingAddress","BillingCity","BillingState","BillingCountry","BillingPostalCode","Total") VALUES (408,25,DATE'2018-12-05','319 N. Frances Street','Madison','WI','USA','53703',3.96);
{{ config({ "materialized":"table", "schema": "analytics" }) }} WITH greenhouse_stage_intermediate AS ( SELECT * FROM {{ ref ('greenhouse_stage_intermediate') }} ), final AS ( SELECT unique_key, application_stage, is_milestone_stage, DATE_TRUNC(week, stage_entered_on) AS week_stage_entered_on, DATE_TRUNC(week, stage_exited_on) AS week_stage_exited_on, month_stage_entered_on, month_stage_exited_on, days_in_stage, days_between_stages, days_in_pipeline, row_number_stages_desc, next_stage, is_current_stage, application_month, job_id, requisition_id, is_prospect, current_stage_name, application_status, job_name, department_name, division_modified, source_name, source_type, sourcer_name, candidate_recruiter, candidate_coordinator, rejection_reason_name, rejection_reason_type, current_job_req_status, is_hired_in_bamboo, time_to_offer, hit_application_review, hit_assessment, hit_screening, hit_team_interview, hit_reference_check, hit_offer, hit_hired, hit_rejected, candidate_dropout, in_current_pipeline, turn_time_app_review_to_screen, turn_time_screen_to_interview, turn_time_interview_to_offer FROM greenhouse_stage_intermediate ) SELECT * FROM final
<reponame>Shuttl-Tech/antlr_psql -- file:strings.sql ln:302 expect:true SELECT 'hawkeye' NOT ILIKE 'h%' AS "false"
<gh_stars>10-100 -- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.1.63-community - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL version: 7.0.0.4053 -- Date/time: 2012-10-14 17:59:20 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!40014 SET FOREIGN_KEY_CHECKS=0 */; -- Dumping structure for table swganh_static.terminal_types DROP TABLE IF EXISTS `terminal_types`; CREATE TABLE IF NOT EXISTS `terminal_types` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `object_string` varchar(255) DEFAULT NULL, `name` varchar(255) NOT NULL DEFAULT 'terminal_', `file` varchar(255) NOT NULL DEFAULT 'unknown', PRIMARY KEY (`id`), UNIQUE KEY `pk_object_string` (`object_string`) ) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8; -- Dumping data for table swganh_static.terminal_types: ~54 rows (approximately) /*!40000 ALTER TABLE `terminal_types` DISABLE KEYS */; INSERT INTO `terminal_types` (`id`, `object_string`, `name`, `file`) VALUES (1, 'object/tangible/terminal/shared_terminal_mission.iff', 'terminal_mission', 'terminal_detail'), (2, 'object/tangible/terminal/shared_terminal_bazaar.iff', 'terminal_bazaar', 'terminal_detail'), (3, 'object/tangible/terminal/shared_terminal_bank.iff', 'terminal_bank', 'terminal_detail'), (4, 'object/tangible/terminal/shared_terminal_mission_rebel.iff', 'terminal_mission_rebel', 'terminal_detail'), (5, 'object/tangible/terminal/shared_terminal_hq.iff', 'terminal_hq', 'terminal_detail'), (6, 'object/tangible/terminal/shared_terminal_mission_bounty.iff', 'terminal_mission_bounty', 'terminal_detail'), (7, 'object/tangible/terminal/shared_terminal_space.iff', 'terminal_space', 'terminal_detail'), (8, 'object/tangible/terminal/shared_terminal_mission_imperial.iff', 'terminal_mission_imperial', 'terminal_detail'), (9, 'object/tangible/terminal/shared_terminal_newsnet.iff', 'terminal_newsnet', 'terminal_detail'), (10, 'object/tangible/terminal/shared_terminal_mission_scout.iff', 'terminal_mission_scout', 'terminal_detail'), (11, 'object/tangible/terminal/shared_terminal_mission_entertainer.iff', 'terminal_mission_entertainer', 'terminal_detail'), (12, 'object/tangible/terminal/shared_terminal_mission_artisan.iff', 'terminal_mission_artisan', 'terminal_detail'), (13, 'object/tangible/terminal/shared_terminal_bestine_quests_01.iff', 'terminal_bestine_01', 'terminal_detail'), (14, 'object/tangible/terminal/shared_terminal_bestine_quests_02.iff', 'terminal_bestine_02', 'terminal_detail'), (15, 'object/tangible/terminal/shared_terminal_elevator.iff', 'terminal_elevator', 'terminal_name'), (16, 'object/tangible/terminal/shared_terminal_travel.iff', 'terminal_travel', 'terminal_detail'), (17, 'object/tangible/terminal/shared_terminal_insurance.iff', 'terminal_insurance', 'terminal_detail'), (18, 'object/tangible/terminal/shared_terminal_cloning.iff', 'terminal_cloning', 'terminal_detail'), (19, 'object/tangible/terminal/shared_terminal_ballot_box.iff', 'terminal_ballot_box', 'terminal_detail'), (20, 'object/tangible/terminal/shared_terminal_bounty_droid.iff', 'terminal_bounty_droid', 'terminal_detail'), (21, 'object/tangible/terminal/shared_terminal_guild.iff', 'terminal_guild', 'terminal_name'), (22, 'object/tangible/terminal/shared_terminal_mission_newbie.iff', 'terminal_mission', 'terminal_detail'), (23, 'object/tangible/terminal/shared_terminal_mission_statue.iff', 'terminal_mission_statue', 'terminal_detail'), (24, 'object/tangible/terminal/shared_terminal_newbie_clothing.iff', 'newbie_clothing_dispenser', 'terminal_detail'), (25, 'object/tangible/terminal/shared_terminal_newbie_food.iff', 'newbie_food_dispenser', 'terminal_detail'), (26, 'object/tangible/terminal/shared_terminal_newbie_instrument.iff', 'newbie_instrument_dispenser', 'terminal_detail'), (27, 'object/tangible/terminal/shared_terminal_newbie_medicine.iff', 'newbie_medicine_dispenser', 'terminal_detail'), (28, 'object/tangible/terminal/shared_terminal_newbie_tool.iff', 'newbie_tool_dispenser', 'terminal_detail'), (29, 'object/tangible/terminal/shared_terminal_player_structure.iff', 'terminal_player_structure', 'terminal_name'), (30, 'object/tangible/terminal/shared_terminal_hq_rebel.iff', 'terminal_hq_rebel', 'terminal_detail'), (31, 'object/tangible/terminal/shared_terminal_hq_imperial.iff', 'terminal_hq_imperial', 'terminal_detail'), (32, 'object/tangible/terminal/shared_terminal_pm_register.iff', 'terminal_pm_register', 'terminal_detail'), (33, 'object/tangible/terminal/shared_terminal_skill.iff', 'unknown', 'terminal_detail'), (34, 'object/tangible/terminal/shared_terminal_city.iff', 'terminal_city', 'terminal_detail'), (35, 'object/tangible/terminal/shared_terminal_player_structure_nosnap.iff', 'unknown', 'terminal_detail'), (36, 'object/tangible/terminal/shared_terminal_city_vote.iff', 'terminal_city_vote', 'terminal_detail'), (37, 'object/tangible/terminal/shared_terminal_player_structure_nosnap_mini.iff', 'unknown', 'terminal_detail'), (38, 'object/tangible/terminal/shared_terminal_nym_cave.iff', 'unknown', 'terminal_detail'), (39, 'object/tangible/terminal/shared_terminal_command_console.iff', 'unknown', 'terminal_detail'), (40, 'object/tangible/terminal/shared_terminal_geo_bunker.iff', 'terminal_geo_bunker', 'terminal_detail'), (41, 'object/tangible/terminal/shared_terminal_bestine_quests_03.iff', 'terminal_bestine_03', 'terminal_detail'), (42, 'object/tangible/terminal/shared_terminal_elevator_up.iff', 'terminal_elevator', 'terminal_detail'), (43, 'object/tangible/terminal/shared_terminal_elevator_down.iff', 'terminal_elevator', 'terminal_detail'), (44, 'object/tangible/terminal/shared_terminal_hq_turret_control.iff', 'terminal_hq_turret_control', 'terminal_detail'), (45, 'object/tangible/terminal/shared_terminal_imagedesign.iff', 'terminal_imagedesign', 'terminal_detail'), (46, 'object/tangible/terminal/shared_terminal_water_pressure.iff', 'terminal_water_pressure', 'terminal_detail'), (47, 'object/tangible/terminal/shared_terminal_light_enclave_voting.iff', 'terminal_light_enclave_voting', 'terminal_detail'), (48, 'object/tangible/terminal/shared_terminal_dark_enclave_challenge.iff', 'terminal_dark_enclave_challenge', 'terminal_detail'), (49, 'object/tangible/terminal/shared_terminal_dark_enclave_voting.iff', 'terminal_dark_enclave_voting', 'terminal_detail'), (50, 'object/tangible/terminal/shared_terminal_character_builder.iff', 'terminal_character_builder', 'terminal_detail'), (51, 'object/tangible/terminal/shared_terminal_ship_interior_security_1.iff', 'unknown', 'terminal_detail'), (52, 'object/tangible/terminal/shared_terminal_pob_ship.iff', 'unknown', 'terminal_detail'), (53, 'object/tangible/terminal/shared_terminal_light_enclave_challenge.iff', 'terminal_light_enclave_challenge', 'terminal_detail'), (54, 'object/tangible/terminal/shared_terminal_jukebox.iff', 'unknown', 'terminal_detail'); /*!40000 ALTER TABLE `terminal_types` ENABLE KEYS */; /*!40014 SET FOREIGN_KEY_CHECKS=1 */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
<reponame>HLoveMe/HWMBBF_Serve -- MySQL dump 10.13 Distrib 5.7.9, for osx10.9 (x86_64) -- -- Host: localhost Database: HWMBBF -- ------------------------------------------------------ -- Server version 5.7.13 /*!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 `auth_user` -- DROP TABLE IF EXISTS `auth_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `auth_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `password` varchar(128) NOT NULL, `last_login` datetime(6) DEFAULT NULL, `is_superuser` tinyint(1) NOT NULL, `username` varchar(30) NOT NULL, `first_name` varchar(30) NOT NULL, `last_name` varchar(30) NOT NULL, `email` varchar(254) NOT NULL, `is_staff` tinyint(1) NOT NULL, `is_active` tinyint(1) NOT NULL, `date_joined` datetime(6) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `auth_user` -- LOCK TABLES `auth_user` WRITE; /*!40000 ALTER TABLE `auth_user` DISABLE KEYS */; INSERT INTO `auth_user` VALUES (1,'pbkdf2_sha256$20000$wLVAkXVewEux$/1kmUhCijuZ7qi99m6l6Me0JpcqOYKkzEBcL7MGZNG8=','2016-12-05 11:34:03.891887',1,'zhuzihao','','','2436422656@<EMAIL>',1,1,'2016-12-02 02:45:41.730652'); /*!40000 ALTER TABLE `auth_user` 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-12-06 11:42:02
SELECT artist, COUNT(*) as song_count FROM ( SELECT artist FROM `RapCaviar.artists` UNION ALL SELECT artist FROM `RockThis.artists` UNION ALL SELECT artist FROM `todays_top_hits.artists`) GROUP BY 1 ORDER BY 2 DESC
select name, id from aws.aws_auditmanager_assessment where id = 'f6e7823d-7324-4c88-812a-f4237c8fb95f';
DROP TABLE Blog; DROP TABLE Post_tags_Many; DROP TABLE Post; DROP TABLE Tag;
<reponame>lockss/laaws-daemon<gh_stars>0 /* Version 1 */ CREATE TABLE IF NOT EXISTS tables ( /* A unique row ID */ id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, /* A required table name */ name VARCHAR(63) NOT NULL, /* A required version */ version INTEGER UNSIGNED NOT NULL ) ENGINE=INNODB;
DROP DATABASE IF EXISTS employeetracker_db; CREATE DATABASE employeetracker_db; USE employeetracker_db; CREATE TABLE departments ( id INTEGER(10) NOT NULL AUTO_INCREMENT, name VARCHAR(30) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE roles ( id INTEGER(10) NOT NULL AUTO_INCREMENT, title VARCHAR(30) NOT NULL, salary (10) NOT NULL, department_id INTEGER(10) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE employees ( id INTEGER(10) NOT NULL AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL, role_id INTEGER(10) NOT NULL, manager_id INTEGER(10), PRIMARY KEY (id) );
BEGIN TRANSACTION; CREATE TABLE "TORNEO" ( `id` INTEGER PRIMARY KEY AUTOINCREMENT, `nombre` TEXT, `imagen` TEXT, `rondas` INTEGER, `ponderacion` INTEGER, `puntuacion_inicial` INTEGER ); CREATE TABLE "EQUIPO" ( `id` INTEGER PRIMARY KEY AUTOINCREMENT, `nombre` TEXT, `imagen` TEXT, `torneo_id` INTEGER NOT NULL, FOREIGN KEY (`torneo_id`) REFERENCES `TORNEO`(`id`) ON UPDATE CASCADE ON DELETE CASCADE ); CREATE TABLE "CATEGORIA" ( `id` INTEGER PRIMARY KEY AUTOINCREMENT, `nombre` TEXT, `imagen` TEXT, `color` INTEGER, `torneo_id` INTEGER NOT NULL, FOREIGN KEY (`torneo_id`) REFERENCES `TORNEO`(`id`) ON UPDATE CASCADE ON DELETE CASCADE ); CREATE TABLE "PREGUNTA" ( `id` INTEGER PRIMARY KEY AUTOINCREMENT, `encabezado` TEXT, `tipo_pregunta` INTEGER, `multimedia` TEXT, `respuesta_a` TEXT, `respuesta_b` TEXT, `respuesta_c` TEXT, `respuesta_d` TEXT, `respuesta_correcta` INTEGER, `aprendizaje` TEXT, `categoria_id` INTEGER NOT NULL, `torneo_id` INTEGER NOT NULL, FOREIGN KEY (`categoria_id`) REFERENCES `CATEGORIA`(`id`) ON UPDATE CASCADE ON DELETE CASCADE, FOREIGN KEY (`torneo_id`) REFERENCES `TORNEO`(`id`) ON UPDATE CASCADE ON DELETE CASCADE ); COMMIT;
--postgresql setup --CREATE DATABASE hamshackradio -- initial set of tables and procedures CREATE TABLE Sales (SalesID INT PRIMARY KEY NOT NULL, SalesDate TIMESTAMP); CREATE OR REPLACE PROCEDURE public.SalesInfo () LANGUAGE plpgsql AS $$ BEGIN SELECT * FROM public.Sales AS s; END; $$; CREATE TABLE Inventory (InventoryID INT GENERATED BY DEFAULT AS IDENTITY, InventoryItemID INT NOT NULL, CONSTRAINT InventoryPK PRIMARY KEY (InventoryID)); CREATE TABLE InventoryItem (InventoryItemID INT GENERATED BY DEFAULT AS IDENTITY, InventoryItemName VARCHAR(200), CONSTRAINT InventoryItemPK PRIMARY KEY (InventoryItemID)); ALTER TABLE public.Inventory ADD CONSTRAINT InventoryItemInventory FOREIGN KEY (InventoryItemID) REFERENCES public.InventoryItem (InventoryItemID); CREATE TABLE Users (UserID INT GENERATED BY DEFAULT AS IDENTITY, FirstName VARCHAR(150) NOT NULL, LastName VARCHAR(150) NOT NULL, CONSTRAINT UsersPK PRIMARY KEY (UserID)); CREATE OR REPLACE PROCEDURE InventoryInfo() LANGUAGE plpgsql AS $$ BEGIN SELECT i.InventoryID, i.InventoryItemID, ii.InventoryItemID, ii.InventoryItemName FROM dbo.Inventory AS i JOIN dbo.InventoryItem AS ii ON ii.InventoryItemID = i.InventoryItemID; END; $$
<reponame>LeiShi1313/tt-rss-pi drop table if exists ttrss_error_log; drop table if exists ttrss_plugin_storage; drop table if exists ttrss_linked_feeds; drop table if exists ttrss_linked_instances; drop table if exists ttrss_access_keys; drop table if exists ttrss_user_labels2; drop table if exists ttrss_labels2; drop table if exists ttrss_feedbrowser_cache; drop table if exists ttrss_version; drop table if exists ttrss_labels; drop table if exists ttrss_filters2_rules; drop table if exists ttrss_filters2_actions; drop table if exists ttrss_filters2; drop table if exists ttrss_filters; drop table if exists ttrss_filter_types; drop table if exists ttrss_filter_actions; drop table if exists ttrss_user_prefs; drop table if exists ttrss_prefs; drop table if exists ttrss_prefs_types; drop table if exists ttrss_prefs_sections; drop table if exists ttrss_tags; drop table if exists ttrss_enclosures; drop table if exists ttrss_settings_profiles; drop table if exists ttrss_entry_comments; drop table if exists ttrss_user_entries; drop table if exists ttrss_entries; drop table if exists ttrss_scheduled_updates; drop table if exists ttrss_counters_cache; drop table if exists ttrss_cat_counters_cache; drop table if exists ttrss_archived_feeds; drop table if exists ttrss_feeds; drop table if exists ttrss_feed_categories; drop table if exists ttrss_users; drop table if exists ttrss_themes; drop table if exists ttrss_sessions; drop function if exists SUBSTRING_FOR_DATE(timestamp, int, int); begin; create table ttrss_users (id serial not null primary key, login varchar(120) not null unique, pwd_hash varchar(250) not null, last_login timestamp default null, access_level integer not null default 0, email varchar(250) not null default '', full_name varchar(250) not null default '', email_digest boolean not null default false, last_digest_sent timestamp default null, salt varchar(250) not null default '', twitter_oauth text default null, otp_enabled boolean not null default false, resetpass_token varchar(250) default null, created timestamp default null); insert into ttrss_users (login,pwd_hash,access_level) values ('admin', 'SHA1:5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', 10); create table ttrss_feed_categories(id serial not null primary key, owner_uid integer not null references ttrss_users(id) on delete cascade, collapsed boolean not null default false, order_id integer not null default 0, view_settings varchar(250) not null default '', parent_cat integer references ttrss_feed_categories(id) on delete set null, title varchar(200) not null); create table ttrss_feeds (id serial not null primary key, owner_uid integer not null references ttrss_users(id) on delete cascade, title varchar(200) not null, cat_id integer default null references ttrss_feed_categories(id) on delete set null, feed_url text not null, icon_url varchar(250) not null default '', update_interval integer not null default 0, purge_interval integer not null default 0, last_updated timestamp default null, last_unconditional timestamp default null, last_error text not null default '', last_modified text not null default '', favicon_avg_color varchar(11) default null, site_url varchar(250) not null default '', auth_login varchar(250) not null default '', parent_feed integer default null references ttrss_feeds(id) on delete set null, private boolean not null default false, auth_pass varchar(250) not null default '', hidden boolean not null default false, include_in_digest boolean not null default true, rtl_content boolean not null default false, cache_images boolean not null default false, hide_images boolean not null default false, cache_content boolean not null default false, last_viewed timestamp default null, last_update_started timestamp default null, update_method integer not null default 0, always_display_enclosures boolean not null default false, order_id integer not null default 0, mark_unread_on_update boolean not null default false, update_on_checksum_change boolean not null default false, strip_images boolean not null default false, view_settings varchar(250) not null default '', pubsub_state integer not null default 0, favicon_last_checked timestamp default null, feed_language varchar(100) not null default '', auth_pass_encrypted boolean not null default false); create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid); create index ttrss_feeds_cat_id_idx on ttrss_feeds(cat_id); insert into ttrss_feeds (owner_uid, title, feed_url) values (1, 'Tiny Tiny RSS: Forum', 'http://tt-rss.org/forum/rss.php'); create table ttrss_archived_feeds (id integer not null primary key, owner_uid integer not null references ttrss_users(id) on delete cascade, title varchar(200) not null, feed_url text not null, site_url varchar(250) not null default ''); create table ttrss_counters_cache ( feed_id integer not null, owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, updated timestamp not null, value integer not null default 0); create index ttrss_counters_cache_feed_id_idx on ttrss_counters_cache(feed_id); create index ttrss_counters_cache_owner_uid_idx on ttrss_counters_cache(owner_uid); create index ttrss_counters_cache_value_idx on ttrss_counters_cache(value); create table ttrss_cat_counters_cache ( feed_id integer not null, owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, updated timestamp not null, value integer not null default 0); create index ttrss_cat_counters_cache_owner_uid_idx on ttrss_cat_counters_cache(owner_uid); create table ttrss_entries (id serial not null primary key, title text not null, guid text not null unique, link text not null, updated timestamp not null, content text not null, content_hash varchar(250) not null, cached_content text, no_orig_date boolean not null default false, date_entered timestamp not null, date_updated timestamp not null, num_comments integer not null default 0, comments varchar(250) not null default '', plugin_data text, tsvector_combined tsvector, lang varchar(2), author varchar(250) not null default ''); -- create index ttrss_entries_title_index on ttrss_entries(title); create index ttrss_entries_date_entered_index on ttrss_entries(date_entered); create index ttrss_entries_updated_idx on ttrss_entries(updated); create index ttrss_entries_tsvector_combined_idx on ttrss_entries using gin(tsvector_combined); create table ttrss_user_entries ( int_id serial not null primary key, ref_id integer not null references ttrss_entries(id) ON DELETE CASCADE, uuid varchar(200) not null, feed_id int references ttrss_feeds(id) ON DELETE CASCADE, orig_feed_id integer references ttrss_archived_feeds(id) ON DELETE SET NULL, owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, marked boolean not null default false, published boolean not null default false, tag_cache text not null, label_cache text not null, last_read timestamp, score int not null default 0, last_marked timestamp, last_published timestamp, note text, unread boolean not null default true); -- create index ttrss_user_entries_feed_id_index on ttrss_user_entries(feed_id); create index ttrss_user_entries_owner_uid_index on ttrss_user_entries(owner_uid); create index ttrss_user_entries_ref_id_index on ttrss_user_entries(ref_id); create index ttrss_user_entries_feed_id on ttrss_user_entries(feed_id); create index ttrss_user_entries_unread_idx on ttrss_user_entries(unread); create table ttrss_entry_comments (id serial not null primary key, ref_id integer not null references ttrss_entries(id) ON DELETE CASCADE, owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, private boolean not null default false, date_entered timestamp not null); create index ttrss_entry_comments_ref_id_index on ttrss_entry_comments(ref_id); -- create index ttrss_entry_comments_owner_uid_index on ttrss_entry_comments(owner_uid); create table ttrss_filter_types (id integer not null primary key, name varchar(120) unique not null, description varchar(250) not null unique); insert into ttrss_filter_types (id,name,description) values (1, 'title', 'Title'); insert into ttrss_filter_types (id,name,description) values (2, 'content', 'Content'); insert into ttrss_filter_types (id,name,description) values (3, 'both', 'Title or Content'); insert into ttrss_filter_types (id,name,description) values (4, 'link', 'Link'); insert into ttrss_filter_types (id,name,description) values (5, 'date', 'Article Date'); insert into ttrss_filter_types (id,name,description) values (6, 'author', 'Author'); insert into ttrss_filter_types (id,name,description) values (7, 'tag', 'Article Tags'); create table ttrss_filter_actions (id integer not null primary key, name varchar(120) unique not null, description varchar(250) not null unique); insert into ttrss_filter_actions (id,name,description) values (1, 'filter', 'Delete article'); insert into ttrss_filter_actions (id,name,description) values (2, 'catchup', 'Mark as read'); insert into ttrss_filter_actions (id,name,description) values (3, 'mark', 'Set starred'); insert into ttrss_filter_actions (id,name,description) values (4, 'tag', 'Assign tags'); insert into ttrss_filter_actions (id,name,description) values (5, 'publish', 'Publish article'); insert into ttrss_filter_actions (id,name,description) values (6, 'score', 'Modify score'); insert into ttrss_filter_actions (id,name,description) values (7, 'label', 'Assign label'); insert into ttrss_filter_actions (id,name,description) values (8, 'stop', 'Stop / Do nothing'); insert into ttrss_filter_actions (id,name,description) values (9, 'plugin', 'Invoke plugin'); create table ttrss_filters2(id serial not null primary key, owner_uid integer not null references ttrss_users(id) on delete cascade, match_any_rule boolean not null default false, inverse boolean not null default false, title varchar(250) not null default '', order_id integer not null default 0, last_triggered timestamp default null, enabled boolean not null default true); create table ttrss_filters2_rules(id serial not null primary key, filter_id integer not null references ttrss_filters2(id) on delete cascade, reg_exp text not null, inverse boolean not null default false, filter_type integer not null references ttrss_filter_types(id), feed_id integer references ttrss_feeds(id) on delete cascade default null, cat_id integer references ttrss_feed_categories(id) on delete cascade default null, match_on text, cat_filter boolean not null default false); create table ttrss_filters2_actions(id serial not null primary key, filter_id integer not null references ttrss_filters2(id) on delete cascade, action_id integer not null default 1 references ttrss_filter_actions(id) on delete cascade, action_param varchar(250) not null default ''); create table ttrss_tags (id serial not null primary key, tag_name varchar(250) not null, owner_uid integer not null references ttrss_users(id) on delete cascade, post_int_id integer references ttrss_user_entries(int_id) ON DELETE CASCADE not null); create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid); create index ttrss_tags_post_int_id_idx on ttrss_tags(post_int_id); create table ttrss_version (schema_version int not null); insert into ttrss_version values (135); create table ttrss_enclosures (id serial not null primary key, content_url text not null, content_type varchar(250) not null, title text not null, duration text not null, width integer not null default 0, height integer not null default 0, post_id integer references ttrss_entries(id) ON DELETE cascade NOT NULL); create index ttrss_enclosures_post_id_idx on ttrss_enclosures(post_id); create table ttrss_settings_profiles(id serial not null primary key, title varchar(250) not null, owner_uid integer not null references ttrss_users(id) on delete cascade); create table ttrss_prefs_types (id integer not null primary key, type_name varchar(100) not null); insert into ttrss_prefs_types (id, type_name) values (1, 'bool'); insert into ttrss_prefs_types (id, type_name) values (2, 'string'); insert into ttrss_prefs_types (id, type_name) values (3, 'integer'); create table ttrss_prefs_sections (id integer not null primary key, order_id integer not null, section_name varchar(100) not null); insert into ttrss_prefs_sections (id, section_name, order_id) values (1, 'General', 0); insert into ttrss_prefs_sections (id, section_name, order_id) values (2, 'Interface', 1); insert into ttrss_prefs_sections (id, section_name, order_id) values (3, 'Advanced', 3); insert into ttrss_prefs_sections (id, section_name, order_id) values (4, 'Digest', 2); create table ttrss_prefs (pref_name varchar(250) not null primary key, type_id integer not null references ttrss_prefs_types(id), section_id integer not null default 1 references ttrss_prefs_sections(id), access_level integer not null default 0, def_value text not null); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('PURGE_OLD_DAYS', 3, '60', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('DEFAULT_UPDATE_INTERVAL', 3, '30', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('DEFAULT_ARTICLE_LIMIT', 3, '30', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('ALLOW_DUPLICATE_POSTS', 1, 'false', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('ENABLE_FEED_CATS', 1, 'true', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('SHOW_CONTENT_PREVIEW', 1, 'true', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('SHORT_DATE_FORMAT', 2, 'M d, G:i', 3); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('LONG_DATE_FORMAT', 2, 'D, M d Y - G:i', 3); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('COMBINED_DISPLAY_MODE', 1, 'true', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('HIDE_READ_FEEDS', 1, 'false', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('ON_CATCHUP_SHOW_NEXT_FEED', 1, 'false', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('FEEDS_SORT_BY_UNREAD', 1, 'false', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('REVERSE_HEADLINES', 1, 'false', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('DIGEST_ENABLE', 1, 'false', 4); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('CONFIRM_FEED_CATCHUP', 1, 'true', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('CDM_AUTO_CATCHUP', 1, 'false', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_DEFAULT_VIEW_MODE', 2, 'adaptive', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_DEFAULT_VIEW_LIMIT', 3, '30', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_PREFS_ACTIVE_TAB', 2, '', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('STRIP_UNSAFE_TAGS', 1, 'true', 3); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('BLACKLISTED_TAGS', 2, 'main, generic, misc, uncategorized, blog, blogroll, general, news', 3); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('FRESH_ARTICLE_MAX_AGE', 3, '24', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('DIGEST_CATCHUP', 1, 'false', 4); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('CDM_EXPANDED', 1, 'true', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('PURGE_UNREAD_ARTICLES', 1, 'true', 3); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('HIDE_READ_SHOWS_SPECIAL', 1, 'true', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('VFEED_GROUP_BY_FEED', 1, 'false', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('STRIP_IMAGES', 1, 'false', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_DEFAULT_VIEW_ORDER_BY', 2, 'default', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('ENABLE_API_ACCESS', 1, 'false', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_COLLAPSED_SPECIAL', 1, 'false', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_COLLAPSED_LABELS', 1, 'false', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_COLLAPSED_UNCAT', 1, 'false', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_COLLAPSED_FEEDLIST', 1, 'false', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_MOBILE_ENABLE_CATS', 1, 'false', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_MOBILE_SHOW_IMAGES', 1, 'false', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_MOBILE_HIDE_READ', 1, 'false', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_MOBILE_SORT_FEEDS_UNREAD', 1, 'false', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_THEME_ID', 2, '0', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('USER_TIMEZONE', 2, 'Automatic', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('USER_STYLESHEET', 2, '', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('SORT_HEADLINES_BY_FEED_DATE', 1, 'false', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_MOBILE_BROWSE_CATS', 1, 'true', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('SSL_CERT_SERIAL', 2, '', 3); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('DIGEST_PREFERRED_TIME', 2, '00:00', 4); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_PREFS_SHOW_EMPTY_CATS', 1, 'false', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_DEFAULT_INCLUDE_CHILDREN', 1, 'false', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('AUTO_ASSIGN_LABELS', 1, 'false', 3); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_ENABLED_PLUGINS', 2, '', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('_MOBILE_REVERSE_HEADLINES', 1, 'false', 1); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('USER_CSS_THEME', 2, '', 2); insert into ttrss_prefs (pref_name,type_id,def_value,section_id) values('USER_LANGUAGE', 2, '', 2); update ttrss_prefs set access_level = 1 where pref_name in ('ON_CATCHUP_SHOW_NEXT_FEED', 'SORT_HEADLINES_BY_FEED_DATE', 'VFEED_GROUP_BY_FEED', 'FRESH_ARTICLE_MAX_AGE', 'CDM_EXPANDED', 'SHOW_CONTENT_PREVIEW', 'AUTO_ASSIGN_LABELS', 'HIDE_READ_SHOWS_SPECIAL'); create table ttrss_user_prefs ( owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, pref_name varchar(250) not null references ttrss_prefs(pref_name) ON DELETE CASCADE, profile integer references ttrss_settings_profiles(id) ON DELETE CASCADE, value text not null); create index ttrss_user_prefs_owner_uid_index on ttrss_user_prefs(owner_uid); create index ttrss_user_prefs_pref_name_idx on ttrss_user_prefs(pref_name); -- create index ttrss_user_prefs_value_index on ttrss_user_prefs(value); create table ttrss_sessions (id varchar(250) not null primary key, data text, expire integer not null); create index ttrss_sessions_expire_index on ttrss_sessions(expire); create function SUBSTRING_FOR_DATE(timestamp, int, int) RETURNS text AS 'SELECT SUBSTRING(CAST($1 AS text), $2, $3)' LANGUAGE 'sql'; create table ttrss_feedbrowser_cache ( feed_url text not null primary key, title text not null, site_url text not null, subscribers integer not null); create table ttrss_labels2 (id serial not null primary key, owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, fg_color varchar(15) not null default '', bg_color varchar(15) not null default '', caption varchar(250) not null ); create table ttrss_user_labels2 ( label_id integer not null references ttrss_labels2(id) ON DELETE CASCADE, article_id integer not null references ttrss_entries(id) ON DELETE CASCADE ); create table ttrss_access_keys (id serial not null primary key, access_key varchar(250) not null, feed_id varchar(250) not null, is_cat boolean not null default false, owner_uid integer not null references ttrss_users(id) on delete cascade); create table ttrss_linked_instances (id serial not null primary key, last_connected timestamp not null, last_status_in integer not null, last_status_out integer not null, access_key varchar(250) not null unique, access_url text not null); create table ttrss_linked_feeds ( feed_url text not null, site_url text not null, title text not null, created timestamp not null, updated timestamp not null, instance_id integer not null references ttrss_linked_instances(id) ON DELETE CASCADE, subscribers integer not null); create table ttrss_plugin_storage ( id serial not null primary key, name varchar(100) not null, owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, content text not null); create table ttrss_error_log( id serial not null primary key, owner_uid integer references ttrss_users(id) ON DELETE SET NULL, errno integer not null, errstr text not null, filename text not null, lineno integer not null, context text not null, created_at timestamp not null); commit;
<gh_stars>0 CREATE DATABASE IF NOT EXISTS `luyabaya_binary` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `luyabaya_binary`; -- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: localhost Database: luyabaya_binary -- ------------------------------------------------------ -- Server version 5.5.52-cll-lve /*!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 `_selectedhierarchy` -- DROP TABLE IF EXISTS `_selectedhierarchy`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `_selectedhierarchy` ( `_id` int(11) NOT NULL AUTO_INCREMENT, `child` int(11) DEFAULT NULL, `depth` int(11) DEFAULT NULL, `full_name` varchar(150) DEFAULT NULL, `parent` int(11) DEFAULT NULL, `position` varchar(100) DEFAULT NULL, PRIMARY KEY (`_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `_selectedhierarchy` -- LOCK TABLES `_selectedhierarchy` WRITE; /*!40000 ALTER TABLE `_selectedhierarchy` DISABLE KEYS */; /*!40000 ALTER TABLE `_selectedhierarchy` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `codes` -- DROP TABLE IF EXISTS `codes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `codes` ( `code_id` int(11) NOT NULL AUTO_INCREMENT, `description` varchar(100) DEFAULT NULL, `generated_date` varchar(100) DEFAULT NULL, `generated_by` varchar(100) DEFAULT NULL, `status` varchar(100) DEFAULT NULL, `used_by` varchar(100) DEFAULT NULL, PRIMARY KEY (`code_id`) ) ENGINE=InnoDB AUTO_INCREMENT=70 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `codes` -- LOCK TABLES `codes` WRITE; /*!40000 ALTER TABLE `codes` DISABLE KEYS */; INSERT INTO `codes` VALUES (1,'JldpucSdCk','2017-02-03 13:23:46','1','1','3'),(2,'VeKu12cTgy','2017-02-03 23:06:58','1','1','4'),(3,'dJ0ClFEI3A','2017-02-03 23:06:58','1','1','5'),(4,'uAsz3A1N6x','2017-02-03 23:06:58','1','1','6'),(5,'y1LjwMlIGC','2017-02-03 23:06:58','1','1','7'),(6,'gTlgwHVbpZ','2017-02-03 23:06:58','1','1','8'),(7,'csxqcZGmdS','2017-02-03 23:22:05',NULL,'0',NULL),(8,'NwOO5wuFPS','2017-02-03 23:22:05',NULL,'0',NULL),(9,'gAuQFOjP1Q','2017-02-03 23:22:05',NULL,'0',NULL),(10,'xei5Ev4lRh','2017-02-03 23:22:05',NULL,'0',NULL),(11,'eFN3tTzYzp','2017-02-03 23:22:05',NULL,'0',NULL),(12,'RP0lFF9Zvb','2017-02-03 23:22:05',NULL,'0',NULL),(13,'Q2p874Ecpw','2017-02-03 23:22:05',NULL,'0',NULL),(14,'67gYx6KOI8','2017-02-03 23:22:58','1','1','9'),(15,'BZF6w5ud5O','2017-02-03 23:22:58','1','1','10'),(16,'7m70SmkTNS','2017-02-03 23:22:58','1','1','11'),(17,'KT00Sy7CmP','2017-02-03 23:22:58','1','1','12'),(18,'KXPq4mvyzB','2017-02-03 23:22:58','1','1','13'),(19,'nHYvIQS3KF','2017-02-03 23:22:58','1','1','14'),(20,'VvzVwrtD3Q','2017-02-03 23:22:58','1','1','15'),(21,'Uqk7ZRB1Jl','2017-02-03 23:41:17','1','1','16'),(22,'jnuBfhobad','2017-02-03 23:41:17','1','1','17'),(23,'EjTUA3MKkk','2017-02-03 23:41:17','1','1','18'),(24,'pfLJnKBYMk','2017-02-03 23:41:17','1','1','19'),(25,'k5IPHY659h','2017-02-03 23:41:17','1','1','20'),(26,'jOAcIafuUA','2017-02-03 23:41:17','1','1','21'),(27,'PkQA3dlFc7','2017-02-03 23:41:17','1','1','22'),(28,'HdkIiDPpo0','2017-02-04 10:33:58','1','0',NULL),(29,'5R9nStUkuv','2017-02-04 10:33:58','1','1','23'),(30,'kZD6UHy8uZ','2017-02-04 10:33:58','1','0',NULL),(31,'4bcoTv2JVq','2017-02-04 10:33:58','1','0',NULL),(32,'J1iToamiuR','2017-02-04 10:33:58','1','1','24'),(33,'OORsVL9tTD','2017-02-04 10:33:58','1','1','25'),(34,'tXPGmJcos7','2017-02-04 10:33:58','1','1','26'),(35,'Pb975yirQM','2017-02-04 10:33:58','1','0',NULL),(36,'iFB97wVg0O','2017-02-04 10:33:58','1','0',NULL),(37,'TuMIa8rnxU','2017-02-04 10:33:58','1','0',NULL),(38,'vn5EuacMC3','2017-02-04 10:33:58','1','0',NULL),(39,'zVIb5PI05J','2017-02-04 10:33:58','1','0',NULL),(40,'OZdBIoKaLh','2017-02-04 10:33:58','1','0',NULL),(41,'4gE9V9k7WW','2017-02-04 10:33:58','1','0',NULL),(42,'awSTHXIpXN','2017-02-04 10:33:58','1','0',NULL),(43,'8MNmovK8Fw','2017-02-04 10:33:58','1','0',NULL),(44,'pJN4TIeeQa','2017-02-04 10:33:58','1','0',NULL),(45,'a0G3To0CNY','2017-02-04 10:33:58','1','0',NULL),(46,'pWKdi8I3ho','2017-02-04 10:33:58','1','0',NULL),(47,'zH7nL150fV','2017-02-04 10:33:58','1','0',NULL),(48,'bqWRtQgts3','2017-02-04 10:33:58','1','0',NULL),(49,'sS0c5jlNmC','2017-02-04 10:33:58','1','0',NULL),(50,'cWkkj5lo6A','2017-02-04 10:33:58','1','0',NULL),(51,'kh1g9u6pYy','2017-02-04 10:33:58','1','0',NULL),(52,'tqqtDwMZk9','2017-02-04 10:33:58','1','0',NULL),(53,'Cw5WQp2bO8','2017-02-04 10:33:58','1','0',NULL),(54,'M8qNozivZg','2017-02-04 10:33:58','1','0',NULL),(55,'4sGuWk1Jjl','2017-02-04 10:33:58','1','0',NULL),(56,'SVRYSHnUTc','2017-02-04 10:33:58','1','0',NULL),(57,'3GkttJ2Le1','2017-02-04 10:33:58','1','0',NULL),(58,'2iuJNq3O9n','2017-02-04 10:33:58','1','0',NULL),(59,'92j10bJo5C','2017-02-04 10:33:58','1','0',NULL),(60,'A8iVCMEEyT','2017-02-04 10:33:58','1','0',NULL),(61,'GAcajZBnOL','2017-02-04 10:33:58','1','0',NULL),(62,'KYN3ZOfJdk','2017-02-04 10:33:58','1','0',NULL),(63,'lOtEJ5roKZ','2017-02-04 10:33:58','1','0',NULL),(64,'hrztCTtdgi','2017-02-04 10:33:58','1','0',NULL),(65,'Y1hM4hBj0O','2017-02-04 10:33:58','1','0',NULL),(66,'EmD80merKZ','2017-02-04 10:33:58','1','0',NULL),(67,'q2q0w2T0ga','2017-02-04 10:33:58','1','0',NULL),(68,'iebA1gRCAR','2017-02-04 10:33:58','1','0',NULL),(69,'red4nerBGc','2017-02-04 10:33:58','1','0',NULL); /*!40000 ALTER TABLE `codes` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `commission` -- DROP TABLE IF EXISTS `commission`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `commission` ( `commission_id` int(11) NOT NULL AUTO_INCREMENT, `c_user_id` int(11) DEFAULT NULL, `c_amount` float DEFAULT NULL, `r_user_id` int(11) DEFAULT NULL, `depth` varchar(11) DEFAULT NULL, `remarks` varchar(45) DEFAULT NULL, `date_create` datetime DEFAULT NULL, PRIMARY KEY (`commission_id`) ) ENGINE=InnoDB AUTO_INCREMENT=25 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `commission` -- LOCK TABLES `commission` WRITE; /*!40000 ALTER TABLE `commission` DISABLE KEYS */; INSERT INTO `commission` VALUES (1,2,50,3,NULL,'referral','2017-02-03 06:24:58'),(2,2,50,4,NULL,'referral','2017-02-03 16:07:50'),(3,2,50,5,NULL,'referral','2017-02-03 16:09:01'),(4,2,50,6,NULL,'referral','2017-02-03 16:10:44'),(5,2,50,7,NULL,'referral','2017-02-03 16:12:00'),(6,2,50,8,NULL,'referral','2017-02-03 16:13:36'),(7,2,50,9,NULL,'referral','2017-02-03 16:24:28'),(8,9,50,10,NULL,'referral','2017-02-03 16:26:24'),(9,9,50,11,NULL,'referral','2017-02-03 16:28:19'),(10,9,50,12,NULL,'referral','2017-02-03 16:30:51'),(11,9,50,13,NULL,'referral','2017-02-03 16:32:41'),(12,9,50,14,NULL,'referral','2017-02-03 16:34:09'),(13,9,50,15,NULL,'referral','2017-02-03 16:38:30'),(14,5,50,16,NULL,'referral','2017-02-03 16:43:39'),(15,16,50,17,NULL,'referral','2017-02-03 16:48:18'),(16,16,50,18,NULL,'referral','2017-02-03 16:49:51'),(17,16,50,19,NULL,'referral','2017-02-03 17:02:32'),(18,16,50,20,NULL,'referral','2017-02-03 17:03:39'),(19,16,50,21,NULL,'referral','2017-02-03 17:04:37'),(20,16,50,22,NULL,'referral','2017-02-03 17:06:17'),(21,5,50,23,NULL,'referral','2017-02-06 23:23:41'),(22,6,50,24,NULL,'referral','2017-02-06 23:57:48'),(23,23,50,25,NULL,'referral','2017-02-07 00:02:20'),(24,23,50,26,NULL,'referral','2017-02-07 00:07:19'); /*!40000 ALTER TABLE `commission` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `hierarchy` -- DROP TABLE IF EXISTS `hierarchy`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `hierarchy` ( `p_id` int(11) NOT NULL AUTO_INCREMENT, `parent` int(11) DEFAULT NULL, `child` int(11) DEFAULT NULL, `depth` int(11) DEFAULT NULL, `position` varchar(45) DEFAULT NULL, `created_by` varchar(45) DEFAULT NULL, `datetime` datetime DEFAULT NULL, PRIMARY KEY (`p_id`) ) ENGINE=MyISAM AUTO_INCREMENT=56 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `hierarchy` -- LOCK TABLES `hierarchy` WRITE; /*!40000 ALTER TABLE `hierarchy` DISABLE KEYS */; INSERT INTO `hierarchy` VALUES (1,2,2,0,'parent','SystemCreate','2017-02-03 06:19:34'),(2,3,3,0,'parent','SystemCreate','2017-02-03 06:24:58'),(3,2,3,1,'left','luyabaya1','2017-02-03 07:25:25'),(4,4,4,0,'parent','SystemCreate','2017-02-03 16:07:50'),(5,5,5,0,'parent','SystemCreate','2017-02-03 16:09:01'),(6,6,6,0,'parent','SystemCreate','2017-02-03 16:10:44'),(7,7,7,0,'parent','SystemCreate','2017-02-03 16:12:00'),(8,8,8,0,'parent','SystemCreate','2017-02-03 16:13:36'),(9,2,4,1,'right','luyabaya1','2017-02-03 16:19:27'),(10,3,5,1,'left','luyabaya1','2017-02-03 16:19:44'),(11,2,5,2,'left','luyabaya1','2017-02-03 16:19:44'),(12,3,6,1,'right','luyabaya1','2017-02-03 16:20:04'),(13,2,6,2,'right','luyabaya1','2017-02-03 16:20:04'),(14,4,7,1,'left','luyabaya1','2017-02-03 16:20:20'),(15,2,7,2,'left','luyabaya1','2017-02-03 16:20:20'),(16,4,8,1,'right','luyabaya1','2017-02-03 16:20:31'),(17,2,8,2,'right','luyabaya1','2017-02-03 16:20:31'),(18,9,9,0,'parent','SystemCreate','2017-02-03 16:24:28'),(19,10,10,0,'parent','SystemCreate','2017-02-03 16:26:24'),(20,11,11,0,'parent','SystemCreate','2017-02-03 16:28:19'),(21,12,12,0,'parent','SystemCreate','2017-02-03 16:30:51'),(22,13,13,0,'parent','SystemCreate','2017-02-03 16:32:41'),(23,14,14,0,'parent','SystemCreate','2017-02-03 16:34:09'),(24,9,10,1,'left','john_erneil','2017-02-03 16:34:50'),(25,9,11,1,'right','john_erneil','2017-02-03 16:34:57'),(26,10,12,1,'left','john_erneil','2017-02-03 16:35:27'),(27,9,12,2,'left','john_erneil','2017-02-03 16:35:27'),(28,10,13,1,'right','john_erneil','2017-02-03 16:35:59'),(29,9,13,2,'right','john_erneil','2017-02-03 16:35:59'),(30,11,14,1,'left','john_erneil','2017-02-03 16:36:37'),(31,9,14,2,'left','john_erneil','2017-02-03 16:36:37'),(32,15,15,0,'parent','SystemCreate','2017-02-03 16:38:30'),(33,11,15,1,'right','john_erneil','2017-02-03 16:39:01'),(34,9,15,2,'right','john_erneil','2017-02-03 16:39:01'),(35,16,16,0,'parent','SystemCreate','2017-02-03 16:43:39'),(36,17,17,0,'parent','SystemCreate','2017-02-03 16:48:18'),(37,18,18,0,'parent','SystemCreate','2017-02-03 16:49:51'),(38,19,19,0,'parent','SystemCreate','2017-02-03 17:02:32'),(39,20,20,0,'parent','SystemCreate','2017-02-03 17:03:39'),(40,21,21,0,'parent','SystemCreate','2017-02-03 17:04:37'),(41,22,22,0,'parent','SystemCreate','2017-02-03 17:06:17'),(42,16,17,1,'left','art_layno','2017-02-03 17:06:46'),(43,16,18,1,'right','art_layno','2017-02-03 17:06:54'),(44,17,19,1,'left','art_layno','2017-02-03 17:07:03'),(45,16,19,2,'left','art_layno','2017-02-03 17:07:03'),(46,17,20,1,'right','art_layno','2017-02-03 17:07:15'),(47,16,20,2,'right','art_layno','2017-02-03 17:07:15'),(48,18,21,1,'left','art_layno','2017-02-03 17:07:25'),(49,16,21,2,'left','art_layno','2017-02-03 17:07:25'),(50,18,22,1,'right','art_layno','2017-02-03 17:07:34'),(51,16,22,2,'right','art_layno','2017-02-03 17:07:34'),(52,23,23,0,'parent','SystemCreate','2017-02-06 23:23:41'),(53,24,24,0,'parent','SystemCreate','2017-02-06 23:57:48'),(54,25,25,0,'parent','SystemCreate','2017-02-07 00:02:20'),(55,26,26,0,'parent','SystemCreate','2017-02-07 00:07:19'); /*!40000 ALTER TABLE `hierarchy` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `position` -- DROP TABLE IF EXISTS `position`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `position` ( `position_id` int(11) NOT NULL AUTO_INCREMENT, `user_id` varchar(100) DEFAULT NULL, `position_left` varchar(100) DEFAULT NULL, `position_right` varchar(100) NOT NULL, `sponsor_by` varchar(100) DEFAULT NULL, `upline` varchar(100) DEFAULT NULL, PRIMARY KEY (`position_id`) ) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `position` -- LOCK TABLES `position` WRITE; /*!40000 ALTER TABLE `position` DISABLE KEYS */; INSERT INTO `position` VALUES (1,'2','3','4','2','2'),(2,'3','5','6','2','3'),(3,'4','7','8','2','4'),(4,'5','','','2',''),(5,'6','','','2',''),(6,'7','','','2',''),(7,'8','','','2',''),(8,'9','10','11','2','9'),(9,'10','12','13','9','10'),(10,'11','14','15','9','11'),(11,'12','','','9',''),(12,'13','','','9',''),(13,'14','','','9',''),(14,'15','','','9',''),(15,'16','17','18','5','16'),(16,'17','19','20','16','17'),(17,'18','21','22','16','18'),(18,'19','','','16',''),(19,'20','','','16',''),(20,'21','','','16',''),(21,'22','','','16',''),(22,'23','','','5',''),(23,'24','','','6',''),(24,'25','','','23',''),(25,'26','','','23',''); /*!40000 ALTER TABLE `position` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `users` -- DROP TABLE IF EXISTS `users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `users` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `user_name` varchar(100) DEFAULT NULL, `password` varchar(100) DEFAULT NULL, `first_name` varchar(100) DEFAULT NULL, `last_name` varchar(100) DEFAULT NULL, `gender` varchar(100) DEFAULT NULL, `contact` varchar(100) DEFAULT NULL, `address` varchar(100) DEFAULT NULL, `entered_on` datetime DEFAULT NULL, `status` varchar(100) DEFAULT NULL, `position` int(11) DEFAULT NULL, `email` varchar(100) DEFAULT NULL, `sponsor_by` varchar(100) DEFAULT NULL, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `users` -- LOCK TABLES `users` WRITE; /*!40000 ALTER TABLE `users` DISABLE KEYS */; INSERT INTO `users` VALUES (1,'admin','12345','Luyabaya','Admin','','(082) 282 8849','Jacinto Extension (Infront of Blueberry Hotel), Davao City, Philippines','2016-12-23 05:50:47','',1,'<EMAIL>',''),(2,'luyabaya1','12345','Luyabaya','1','','(082) 282 8849','Jacinto Extension (Infront of Blueberry Hotel), Davao City, Philippines','2016-12-23 05:50:47','1',0,'<EMAIL>','2'),(3,'luyabaya2','12345','Luyabaya2','Luyabaya2','M','09123123112','Jacinto Extension','2017-02-03 23:06:47',NULL,0,'','2'),(4,'luyabaya3','12345','Luyabaya3','Luiyabaya3','M','3272317','Davao City','2017-02-03 23:07:50',NULL,0,'','2'),(5,'luyabaya4','12345','Luyabaya4','Luyabaya4','M','1234567','Davao City','2017-02-03 23:09:01',NULL,0,'','2'),(6,'luyabaya5','12345','Luyabaya5','Luyabaya5','M','1234567','Davao City','2017-02-03 23:10:44',NULL,0,'','2'),(7,'luyabaya6','12345','Luyabaya6','Luyabaya6','M','1234567','Davao City','2017-02-03 23:12:00',NULL,0,'','2'),(8,'luyabaya7','12345','Luyabaya7','Luyabaya7','M','1234567','Davao City','2017-02-03 23:13:36',NULL,0,'','2'),(9,'john_erneil','8879','<NAME>','Jusi','M','3272317','Davao City','2017-02-03 23:24:28',NULL,0,'<EMAIL>','2'),(10,'john_erneil2','8879','John_erneil2','Jusi','M','3272317','Davao City','2017-02-03 23:26:24',NULL,0,'<EMAIL>','9'),(11,'John_erneil3','8879','John_erneil3','Jusi','M','3272317','Davao City','2017-02-03 23:28:19',NULL,0,'','9'),(12,'john_erneil4','8879','John_erneil4','Jusi','M','3272317','Davao City','2017-02-03 23:30:51',NULL,0,'<EMAIL>','9'),(13,'john_erneil5','8879','John_erneil5','Jusi','M','3272317','Davao City','2017-02-03 23:32:41',NULL,0,'<EMAIL>','9'),(14,'john_erneil6','8879','John_erneil6','Jusi','M','3272317','Davao City','2017-02-03 23:34:09',NULL,0,'<EMAIL>','9'),(15,'John_erneil7','8879','John_erneil7','Jusi','M','3272317','Davao City','2017-02-03 23:38:30',NULL,0,'<EMAIL>','9'),(16,'art_layno','12345','Arthur','Layno','M','1234567','Davao City','2017-02-03 23:43:39',NULL,0,'','5'),(17,'art_layno2','12345','Arthur2','Layno','M','1234567','Davao City','2017-02-03 23:48:18',NULL,0,'','16'),(18,'art_layno3','12345','Arthur3','Layno','M','1234567','Davao City','2017-02-03 23:49:51',NULL,0,'','16'),(19,'art_layno4','12345','Arthur4','Layno','M','1234567','Davao City','2017-02-04 00:02:32',NULL,0,'','16'),(20,'art_layno5','12345','Arthur5','Layno','M','1234567','Davao City','2017-02-04 00:05:11',NULL,0,'','16'),(21,'art_layno6','12345','Arthur6','Layno','M','1234567','Davao City','2017-02-04 00:04:37',NULL,0,'','16'),(22,'art_layno7','12345','Arthur7','Layno','M','1234567','Davao City','2017-02-04 00:06:17',NULL,0,'','16'),(23,'art_layno7','12345','Eduard','Aro','Male','09161964437','Davao City','2017-02-07 06:23:41',NULL,0,'<EMAIL>','5'),(24,'ed1','1234567','Eduard','Aro','M','09161964437','Davao City','2017-02-07 06:57:48',NULL,0,'edaro13','6'),(25,'ed2','1234567','Eduard','Aro','M','09161964437','Davao City','2017-02-07 07:02:20',NULL,0,'edaro13','23'),(26,'ruby1','1234567','Rubylyn','Serdan','F','09368625823','Davao City','2017-02-07 07:07:19',NULL,0,'<EMAIL>','23'); /*!40000 ALTER TABLE `users` ENABLE KEYS */; UNLOCK TABLES; -- -- Table structure for table `withdrawal` -- DROP TABLE IF EXISTS `withdrawal`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `withdrawal` ( `withdrawal_id` int(11) NOT NULL AUTO_INCREMENT, `w_user_id` int(11) DEFAULT NULL, `w_amount` float DEFAULT NULL, `remarks` varchar(45) DEFAULT NULL, `date_create` datetime DEFAULT NULL, PRIMARY KEY (`withdrawal_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; /*!40101 SET character_set_client = @saved_cs_client */; -- -- Dumping data for table `withdrawal` -- LOCK TABLES `withdrawal` WRITE; /*!40000 ALTER TABLE `withdrawal` DISABLE KEYS */; /*!40000 ALTER TABLE `withdrawal` ENABLE KEYS */; UNLOCK TABLES; -- -- Dumping events for database 'luyabaya_binary' -- -- -- Dumping routines for database 'luyabaya_binary' -- /*!50003 DROP FUNCTION IF EXISTS `add_userCommission` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` FUNCTION `add_userCommission`(userId INT, amount FLOAT, _desc VARCHAR(45), r_userId INT, _depth VARCHAR(11)) RETURNS varchar(11) CHARSET latin1 BEGIN DECLARE _return VARCHAR(11); DECLARE _dCounter INT(11); SET _dCounter = (SELECT COUNT(*) FROM commission WHERE remarks = 'upline' AND c_user_id = userId AND depth = _depth); IF _desc = 'upline' THEN IF r_userId IS NOT NULL AND (SELECT COUNT(*) FROM commission WHERE remarks = 'upline' AND c_user_id = userId AND r_user_id = r_userId) != 1 THEN INSERT INTO commission (c_user_id, c_amount, r_user_id, depth, remarks, date_create) VALUES(userId, amount, r_userId, _depth, _desc, NOW()); SET _return = 'success upline'; ELSE SET _return = 'error upline'; END IF; IF r_userId IS NULL AND _dCounter != 2 THEN INSERT INTO commission (c_user_id, c_amount, r_user_id, depth, remarks, date_create) VALUES(userId, amount, null, _depth, _desc, NOW()); SET _return = 'success upline'; ELSE SET _return = 'error upline'; END IF; ELSEIF _desc = 'referral' THEN INSERT INTO commission (c_user_id, c_amount, r_user_id, depth, remarks, date_create) VALUES(userId, amount, r_userId, null, _desc, NOW()); SET _return = 'success referral'; ELSE SET _return = 'error referral'; END IF; RETURN _return; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_FullName` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` FUNCTION `get_FullName`(`userId` INT(11)) RETURNS varchar(100) CHARSET latin1 BEGIN DECLARE _desc VARCHAR(100); SET _desc = (SELECT CONCAT(n.first_name, ' ', n.last_name) FROM users n WHERE n.user_id = userId); RETURN _desc; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP FUNCTION IF EXISTS `get_Parent` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` FUNCTION `get_Parent`(`childId` INT(11)) RETURNS int(11) BEGIN DECLARE id INT(11); SET id = (SELECT parent FROM hierarchy WHERE child = childId AND parent != child LIMIT 1); IF id IS NULL THEN SET id = childId; ELSE SET id = id; END IF; RETURN id; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `add_userCommission` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `add_userCommission`(IN userId INT, IN amount FLOAT, IN _desc VARCHAR(45), IN r_userId INT, _depth VARCHAR(11)) BEGIN DECLARE _dCounter INT(11); SET _dCounter = (SELECT COUNT(*) FROM commission WHERE remarks = 'upline' AND c_user_id = userId AND depth = _depth); IF _desc = 'upline' THEN IF r_userId IS NOT NULL AND (SELECT COUNT(*) FROM commission WHERE remarks = 'upline' AND c_user_id = userId AND r_user_id = r_userId) != 1 THEN INSERT INTO commission (c_user_id, c_amount, r_user_id, depth, remarks, date_create) VALUES(userId, amount, r_userId, _depth, _desc, NOW()); END IF; IF r_userId IS NULL AND _dCounter != 2 THEN INSERT INTO commission (c_user_id, c_amount, r_user_id, depth, remarks, date_create) VALUES(userId, amount, null, _depth, _desc, NOW()); END IF; ELSEIF _desc = 'referral' THEN INSERT INTO commission (c_user_id, c_amount, r_user_id, remarks, date_create) VALUES(userId, amount, r_userId, _desc, NOW()); END IF; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `add_userDownlines` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `add_userDownlines`(IN parentId INT(11), IN childId INT(11), IN _position VARCHAR(100), IN createdBy VARCHAR(100)) BEGIN DECLARE userId VARCHAR(100); DECLARE _depth INT(11); IF createdBy = '' THEN SET userId = 'SystemCreate'; ELSE SET userId = (SELECT user_name FROM users WHERE user_id = createdBy); END IF; IF (SELECT COALESCE(depth, 0) FROM hierarchy WHERE parent = parentId ORDER BY datetime DESC LIMIT 1) IS NULL THEN SET _depth = 0; INSERT INTO hierarchy (parent, child, depth, position, created_by, datetime) VALUES (parentId, childId, (_depth), _position, userId, NOW()); ELSE #SET _depth = (SELECT COALESCE(depth, 0) FROM hierarchy WHERE parent = parentId ORDER BY datetime DESC LIMIT 1); INSERT INTO hierarchy (parent, child, depth, position, created_by, datetime) SELECT parent, childId, CASE WHEN depth <> 0 THEN (((SELECT COALESCE(depth, 0) FROM hierarchy WHERE child = parentId ORDER BY datetime DESC LIMIT 1)) + 1) ELSE 1 END , _position, userId, NOW() FROM hierarchy WHERE child = parentId; END IF; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `check_Downlines` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `check_Downlines`(IN userId INT, IN _depth INT) BEGIN DECLARE str_list VARCHAR(100); DROP TEMPORARY TABLE IF EXISTS _temp; CREATE TEMPORARY TABLE IF NOT EXISTS _temp AS (select -- group_concat(CONCAT( n.user_name, ' (' , n.user_id , ')') order by a.parent separator ', ') as path, d.child, d.depth, get_FullName(d.child) AS full_name, COALESCE(get_Parent(d.child), d.parent) AS parent, d.position from hierarchy d join hierarchy a on (a.child = d.child) join users n on (n.user_id = a.parent) where d.parent = userId group by d.child); SET str_list = (SELECT GROUP_CONCAT(DISTINCT(depth) SEPARATOR ',') FROM _temp); DROP TEMPORARY TABLE IF EXISTS _hierarchy; CREATE TEMPORARY TABLE IF NOT EXISTS _hierarchy AS ( select -- group_concat(CONCAT( n.user_name, ' (' , n.user_id , ')') order by a.parent separator ', ') as path, d.child, CASE WHEN d.depth IN (0,1,2) THEN d.depth WHEN d.depth IN (1,2) THEN d.depth WHEN d.depth IN (2, 3) THEN CASE WHEN (SELECT GROUP_CONCAT(DISTINCT(depth) SEPARATOR ',') FROM _temp) = '0,1,2,3' THEN d.depth ELSE 2 END ELSE d.depth END AS depth, get_FullName(d.child) AS full_name, COALESCE(get_Parent(d.child), d.parent) AS parent, d.position, get_DescendantCount(d.child) AS child_count from hierarchy d join hierarchy a on (a.child = d.child) join users n on (n.user_id = a.parent) where d.parent = userId group by d.child); SELECT * FROM _hierarchy WHERE depth = _depth; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `clean_DB` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `clean_DB`() BEGIN TRUNCATE TABLE users; TRUNCATE TABLE position; TRUNCATE TABLE codes; TRUNCATE TABLE commission; TRUNCATE TABLE withdrawal; TRUNCATE TABLE hierarchy; TRUNCATE TABLE _selectedhierarchy; INSERT INTO `users` (`user_id`, `user_name`, `password`, `first_name`, `last_name`, `gender`, `contact`, `address`, `entered_on`, `status`, `position`, `email`, `sponsor_by`) VALUES (1, 'admin', '12345', '<PASSWORD>', 'Admin', '', '(082) 282 8849', 'Jacinto Extension (Infront of Blueberry Hotel), Davao City, Philippines', '2016-12-23 05:50:47', '', 1, '<EMAIL>', ''), (2, 'luyabaya1', '12345', 'Luyabaya', '1', '', '(082) 282 8849', 'Jacinto Extension (Infront of Blueberry Hotel), Davao City, Philippines', '2016-12-23 05:50:47', '1', 0, '<EMAIL>', '2'); INSERT INTO `position` (`position_id`, `user_id`, `position_left`, `position_right`, `sponsor_by`, `upline`) VALUES (1, '2', '', '', '2', '2'); INSERT INTO `hierarchy` (`p_id`,`parent`,`child`,`depth`,`position`, `created_by`,`datetime`) VALUES (1,2,2, 0,'parent','SystemCreate', NOW()); END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_AvailableDownline` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `get_AvailableDownline`(IN userId INT, IN isPosition VARCHAR(2)) BEGIN DECLARE pr_Id INT(11); DECLARE pl_Id INT(11); DROP TABLE IF EXISTS availableDownline; IF isPosition = 'L' THEN SET pl_Id = (SELECT position_left FROM position WHERE upline = userId); CREATE TEMPORARY TABLE IF NOT EXISTS availableDownline AS (SELECT u.user_id as u_user_id,u.first_name as u_first_name,u.last_name as u_last_name,u.contact as u_contact,u.address as u_address,u.email as u_email,u.gender as u_gender,u.sponsor_by as u_sponsor, p.position_id as p_position_id, p.user_id as p_user_id, p.sponsor_by as p_sponsor_by, pr.position_left as p_left, pr.position_right as p_right FROM users u LEFT JOIN position p ON p.position_left = u.user_id LEFT JOIN users up ON up.user_id = p.upline LEFT JOIN position pr ON pr.user_id = pl_Id WHERE p.upline = userId) UNION (SELECT u.user_id as u_user_id,u.first_name as u_first_name,u.last_name as u_last_name,u.contact as u_contact,u.address as u_address,u.email as u_email,u.gender as u_gender,u.sponsor_by as u_sponsor, p.position_id as p_position_id, p.user_id as p_user_id, p.sponsor_by as p_sponsor_by, pr.position_left as p_left, pr.position_right as p_right FROM users u LEFT JOIN position p ON p.position_left = u.user_id LEFT JOIN users up ON up.user_id = p.upline LEFT JOIN position pr ON pr.user_id = p.position_left WHERE p.upline = pl_Id) UNION (SELECT u.user_id as u_user_id,u.first_name as u_first_name,u.last_name as u_last_name,u.contact as u_contact,u.address as u_address,u.email as u_email,u.gender as u_gender,u.sponsor_by as u_sponsor, p.position_id as p_position_id, p.user_id as p_user_id, p.sponsor_by as p_sponsor_by, pr.position_left as p_left, pr.position_right as p_right FROM users u LEFT JOIN position p ON p.position_right = u.user_id LEFT JOIN users up ON up.user_id = p.upline LEFT JOIN position pr ON pr.user_id = p.position_right WHERE p.upline = pl_Id); ELSE SET pr_Id = (SELECT position_right FROM position WHERE upline = userId); CREATE TEMPORARY TABLE IF NOT EXISTS availableDownline AS (SELECT u.user_id as u_user_id,u.first_name as u_first_name,u.last_name as u_last_name,u.contact as u_contact,u.address as u_address,u.email as u_email,u.gender as u_gender,u.sponsor_by as u_sponsor, p.position_id as p_position_id, p.user_id as p_user_id, p.sponsor_by as p_sponsor_by, pr.position_left as p_left, pr.position_right as p_right FROM users u LEFT JOIN position p ON p.position_right = u.user_id LEFT JOIN users up ON up.user_id = p.upline LEFT JOIN position pr ON pr.user_id = pr_Id WHERE p.upline = userId) UNION (SELECT u.user_id as u_user_id,u.first_name as u_first_name,u.last_name as u_last_name,u.contact as u_contact,u.address as u_address,u.email as u_email,u.gender as u_gender,u.sponsor_by as u_sponsor, p.position_id as p_position_id, p.user_id as p_user_id, p.sponsor_by as p_sponsor_by, pr.position_left as p_left, pr.position_right as p_right FROM users u LEFT JOIN position p ON p.position_left = u.user_id LEFT JOIN users up ON up.user_id = p.upline LEFT JOIN position pr ON pr.user_id = p.position_left WHERE p.upline = pr_Id) UNION (SELECT u.user_id as u_user_id,u.first_name as u_first_name,u.last_name as u_last_name,u.contact as u_contact,u.address as u_address,u.email as u_email,u.gender as u_gender,u.sponsor_by as u_sponsor, p.position_id as p_position_id, p.user_id as p_user_id, p.sponsor_by as p_sponsor_by, pr.position_left as p_left, pr.position_right as p_right FROM users u LEFT JOIN position p ON p.position_right = u.user_id LEFT JOIN users up ON up.user_id = p.upline LEFT JOIN position pr ON pr.user_id = p.position_right WHERE p.upline = pr_Id); END IF; SELECT * FROM availableDownline WHERE (p_left <= 0 OR p_right <= 0); END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_downLines` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `get_downLines`(IN userId INT) BEGIN SELECT u.user_id, CONCAT(u.first_name, ' ', u.last_name) AS full_name, u.user_name, (CASE WHEN p.position_right = u.user_id THEN 'R' WHEN p.position_left = u.user_id THEN 'L' ELSE '' END) AS isPosition, CONCAT(up.first_name, ' ', up.last_name, ' (', up.user_name, ')') AS up_FName, up.user_id AS upline_userId, DATE_FORMAT(u.entered_on,'%m-%d-%Y') AS date_joined FROM users u LEFT JOIN position p ON p.position_left = u.user_id OR p.position_right = u.user_id LEFT JOIN users up ON up.user_id = p.upline WHERE p.upline = userId; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_Hierarchy` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `get_Hierarchy`(IN userId INT) BEGIN DECLARE str_list VARCHAR(100); DROP TEMPORARY TABLE IF EXISTS _temp; CREATE TEMPORARY TABLE IF NOT EXISTS _temp AS (select -- group_concat(CONCAT( n.user_name, ' (' , n.user_id , ')') order by a.parent separator ', ') as path, d.child, d.depth, get_FullName(d.child) AS full_name, COALESCE(get_Parent(d.child), d.parent) AS parent, d.position from hierarchy d join hierarchy a on (a.child = d.child) join users n on (n.user_id = a.parent) where d.parent = userId group by d.child); SET str_list = (SELECT GROUP_CONCAT(DISTINCT(depth) SEPARATOR ',') FROM _temp); DROP TEMPORARY TABLE IF EXISTS _hierarchy; CREATE TEMPORARY TABLE IF NOT EXISTS _hierarchy AS ( select -- group_concat(CONCAT( n.user_name, ' (' , n.user_id , ')') order by a.parent separator ', ') as path, d.child, depth, get_FullName(d.child) AS full_name, COALESCE(get_Parent(d.child), d.parent) AS parent, d.position from hierarchy d join hierarchy a on (a.child = d.child) join users n on (n.user_id = a.parent) where d.parent = userId group by d.child); TRUNCATE TABLE _selectedhierarchy; INSERT INTO _selectedhierarchy (child, depth, full_name, parent, position) SELECT child, depth, full_name, parent, position FROM _hierarchy; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_MembersAssigned` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `get_MembersAssigned`(IN userId INT, IN isPosition VARCHAR(2)) BEGIN IF isPosition = 'L' THEN SELECT u.user_id, CONCAT(u.first_name, ' ', u.last_name) AS full_name, u.user_name, CONCAT(up.first_name, ' ', up.last_name, ' (', up.user_name, ')') AS up_FName, up.user_id AS upline_userId, DATE_FORMAT(u.entered_on,'%m-%d-%Y') AS date_joined FROM users u LEFT JOIN position p ON p.position_left = u.user_id LEFT JOIN users up ON up.user_id = p.upline WHERE p.upline = userId AND p.position_left > 0; ELSE SELECT u.user_id, CONCAT(u.first_name, ' ', u.last_name) AS full_name, u.user_name, CONCAT(up.first_name, ' ', up.last_name, ' (', up.user_name, ')') AS up_FName, up.user_id AS upline_userId, DATE_FORMAT(u.entered_on,'%m-%d-%Y') AS date_joined FROM users u LEFT JOIN position p ON p.position_right = u.user_id LEFT JOIN users up ON up.user_id = p.upline WHERE p.upline = userId AND p.position_right > 0; END IF; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_selectedHierarchy` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `get_selectedHierarchy`(IN _val INT, IN _get VARCHAR(11)) BEGIN IF _get = 'depth' THEN SELECT * FROM _selectedhierarchy WHERE depth = _val; ELSE SELECT * FROM _selectedhierarchy WHERE parent = _val OR child = _val; END IF; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_unAssignedUsers` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `get_unAssignedUsers`(IN userId INT) BEGIN DROP TABLE IF EXISTS unassignedUsers; CREATE TEMPORARY TABLE IF NOT EXISTS unassignedUsers AS (SELECT u.user_id as u_user_id, u.first_name as u_first_name, u.last_name as u_last_name, u.contact as u_contact, u.address as u_address, u.email as u_email, u.gender as u_gender, u.sponsor_by as u_sponsor, p.position_id as p_position_id, p.user_id as p_user_id, p.sponsor_by as p_sponsor_by, p.position_left as p_left, p.position_right as p_right FROM users u JOIN position p ON p.user_id = u.user_id WHERE NOT EXISTS(SELECT pos.position_right FROM position pos WHERE pos.position_right <> '' AND pos.position_right = u.user_id ) AND NOT EXISTS(SELECT pos.position_left FROM position pos WHERE pos.position_left <> '' AND pos.position_left = u.user_id )); SELECT * FROM unassignedUsers WHERE p_left = '' AND p_right = '' AND p_user_id != userId AND p_sponsor_by = userId; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_userCashOnHand` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `get_userCashOnHand`(IN userId INT) BEGIN DROP TABLE IF EXISTS totalCashOnHand; CREATE TEMPORARY TABLE IF NOT EXISTS totalCashOnHand AS( SELECT COALESCE(SUM(c.c_amount), 0) AS total_commissions, COALESCE(SUM(w.w_amount), 0) AS total_withdrawals FROM commission c LEFT JOIN withdrawal w ON w.w_user_id = c.c_user_id WHERE w.w_user_id = userId OR c.c_user_id = userId); SELECT CONCAT('Php. ', CONVERT(COALESCE((total_commissions - total_withdrawals), 0), DECIMAL(10, 2))) AS totalCashOnHand FROM totalCashOnHand; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_userCommissions` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `get_userCommissions`(IN userId INT) BEGIN SELECT CONCAT('Php. ', CONVERT(COALESCE(c_amount, 0), DECIMAL(10, 2))) AS c_amount, DATE_FORMAT(date_create,'%m-%d-%Y') AS date_create, (CASE WHEN remarks = 'referral' THEN 'Lead Referral' WHEN remarks = 'upline' THEN 'Complete Downlines' ELSE '' END) AS remarks FROM commission WHERE c_user_id = userId; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_userMembers` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `get_userMembers`(IN userId INT) BEGIN SELECT (CASE WHEN position_left = '' THEN 0 ELSE COALESCE(COUNT(position_left), 0) END) + (CASE WHEN position_right = '' THEN 0 ELSE COALESCE(COUNT(position_right), 0) END) AS countMembers FROM position WHERE user_id = userId; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!50003 DROP PROCEDURE IF EXISTS `get_userWithdrawals` */; /*!50003 SET @saved_cs_client = @@character_set_client */ ; /*!50003 SET @saved_cs_results = @@character_set_results */ ; /*!50003 SET @saved_col_connection = @@collation_connection */ ; /*!50003 SET character_set_client = utf8 */ ; /*!50003 SET character_set_results = utf8 */ ; /*!50003 SET collation_connection = utf8_general_ci */ ; /*!50003 SET @saved_sql_mode = @@sql_mode */ ; /*!50003 SET sql_mode = '' */ ; DELIMITER ;; CREATE DEFINER=`admindev_db`@`localhost` PROCEDURE `get_userWithdrawals`(IN userId INT) BEGIN SELECT CONCAT('Php. ', CONVERT(COALESCE(w_amount, 0), DECIMAL(10, 2))) AS w_amount, DATE_FORMAT(date_create,'%m-%d-%Y') AS date_create FROM withdrawal WHERE w_user_id = userId; END ;; DELIMITER ; /*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET character_set_client = @saved_cs_client */ ; /*!50003 SET character_set_results = @saved_cs_results */ ; /*!50003 SET collation_connection = @saved_col_connection */ ; /*!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-02-08 23:38:41
INSERT INTO company(id, company_name) VALUES(1, '<NAME>'); INSERT INTO company(id, company_name) VALUES(2, '<NAME>'); INSERT INTO company(id, company_name) VALUES(3, '<NAME>');
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 14, 2019 at 08:07 PM -- Server version: 10.3.15-MariaDB -- PHP Version: 7.3.6 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: `point_of_sale` -- -- -------------------------------------------------------- -- -- Table structure for table `customers` -- CREATE TABLE `customers` ( `id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `father_name` varchar(100) NOT NULL, `cnic` varchar(15) NOT NULL, `phone_no` varchar(18) NOT NULL, `address` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `created_by` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `customers` -- INSERT INTO `customers` (`id`, `name`, `father_name`, `cnic`, `phone_no`, `address`, `created_at`, `created_by`) VALUES (1, 'saifrehman ', 'Arshad', '31304-2076970-8', '+92(308)-3152046', 'Chack no 145 P Adam Sahabah Rahim Yar khan', '2019-06-28 13:28:28', 1), (4, 'Nauman', 'Hashmi', '34567-8900987-6', '+65(789)-0876546', 'ertyuiop[', '2019-07-27 08:57:44', 1); -- -------------------------------------------------------- -- -- Table structure for table `distributer` -- CREATE TABLE `distributer` ( `id` int(11) NOT NULL, `name` varchar(100) NOT NULL, `father_name` varchar(100) NOT NULL, `cnic` varchar(15) NOT NULL, `phone_no` varchar(18) NOT NULL, `address` varchar(100) NOT NULL, `created_at` datetime NOT NULL, `created_by` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `distributer` -- INSERT INTO `distributer` (`id`, `name`, `father_name`, `cnic`, `phone_no`, `address`, `created_at`, `created_by`) VALUES (3, 'saif', 'rehman', '31311-3131331-3', '+61(321)-31613__', 'chack no 145 ', '2019-06-29 03:30:38', 1), (4, 'Nauman', 'Hashmi', '65435-6754324-5', '+33(234)-5345643', '32456432456', '2019-07-27 08:59:25', 1); -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE `products` ( `id` int(11) NOT NULL, `product_name` varchar(55) NOT NULL, `manufacturer` varchar(55) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `products` -- INSERT INTO `products` (`id`, `product_name`, `manufacturer`) VALUES (1, 'Samsung On 5', 'SAMSUNG'), (2, 'Hivaway', 'Chinaa'), (3, 'Hivaway', 'China'), (4, 'Hivaway', 'Chinasdfs'), (6, 'C5', 'Samasung'); -- -------------------------------------------------------- -- -- Table structure for table `products_per_purchase_invoice` -- CREATE TABLE `products_per_purchase_invoice` ( `id` int(11) NOT NULL, `purchase_invoice_id` int(255) NOT NULL, `product_id` int(255) NOT NULL, `expiry_starting_date` date NOT NULL, `expiry_ending_date` date NOT NULL, `original_price` int(255) NOT NULL, `discount_per_item` int(255) NOT NULL, `purchase_price` int(11) NOT NULL, `sale_price` int(11) NOT NULL, `status` varchar(255) NOT NULL, `imei` varchar(45) NOT NULL, `created_by` int(11) NOT NULL, `created_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `products_per_purchase_invoice` -- INSERT INTO `products_per_purchase_invoice` (`id`, `purchase_invoice_id`, `product_id`, `expiry_starting_date`, `expiry_ending_date`, `original_price`, `discount_per_item`, `purchase_price`, `sale_price`, `status`, `imei`, `created_by`, `created_at`) VALUES (1, 27, 1, '2019-08-04', '2019-08-22', 4000, 200, 3800, 5000, 'available', '1124', 1, '2019-08-05 00:00:00'), (2, 29, 1, '2019-08-05', '2019-08-20', 2000, 100, 1900, 2500, 'available', '1122', 1, '2019-08-05 00:00:00'), (3, 29, 1, '2019-08-05', '2019-08-20', 2000, 100, 1900, 2500, 'available', '1122', 1, '2019-08-05 00:00:00'), (4, 29, 1, '2019-08-05', '2019-08-20', 2000, 100, 1900, 2500, 'available', '1122', 1, '2019-08-05 00:00:00'), (5, 29, 4, '2019-08-05', '2019-08-20', 2000, 100, 1900, 2500, 'available', '1122', 1, '2019-08-05 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `purchase_invoice` -- CREATE TABLE `purchase_invoice` ( `id` int(11) NOT NULL, `distributer_id` int(11) NOT NULL, `date` date NOT NULL, `comment` text NOT NULL, `product_discount` int(11) NOT NULL, `net_total_of_discount` int(11) NOT NULL, `discount_of_invoice` int(11) NOT NULL, `amount_paid` int(11) NOT NULL, `amount_payable` int(11) NOT NULL, `created_by` int(11) NOT NULL, `created_at` datetime NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `purchase_invoice` -- INSERT INTO `purchase_invoice` (`id`, `distributer_id`, `date`, `comment`, `product_discount`, `net_total_of_discount`, `discount_of_invoice`, `amount_paid`, `amount_payable`, `created_by`, `created_at`) VALUES (27, 3, '2019-07-23', ' Something is better than nothing........\r\n', 0, 0, 0, 0, 0, 1, '2019-07-30 07:55:17'), (28, 3, '2019-03-07', 'comment', 0, 0, 0, 0, 0, 1, '2019-03-07 00:00:00'), (29, 3, '2019-03-07', 'comment.......', 0, 0, 0, 0, 0, 1, '2019-03-07 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` int(11) NOT NULL, `username` varchar(60) NOT NULL, `password` varchar(30) NOT NULL, `email` varchar(40) NOT NULL, `address` varchar(100) NOT NULL, `image` varchar(150) NOT NULL, `created_at` datetime NOT NULL, `created_by` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `username`, `password`, `email`, `address`, `image`, `created_at`, `created_by`) VALUES (1, 'saifrehman', 'saif', '<EMAIL>', '<NAME>', 'uploads/IMG_20181221_084657780.jpg', '2019-06-28 09:00:00', 1); -- -- Indexes for dumped tables -- -- -- Indexes for table `customers` -- ALTER TABLE `customers` ADD PRIMARY KEY (`id`), ADD KEY `created_by` (`created_by`); -- -- Indexes for table `distributer` -- ALTER TABLE `distributer` ADD PRIMARY KEY (`id`), ADD KEY `created_by` (`created_by`); -- -- Indexes for table `products` -- ALTER TABLE `products` ADD PRIMARY KEY (`id`); -- -- Indexes for table `products_per_purchase_invoice` -- ALTER TABLE `products_per_purchase_invoice` ADD PRIMARY KEY (`id`), ADD KEY `product_id` (`product_id`), ADD KEY `purchase_invoice_id` (`purchase_invoice_id`); -- -- Indexes for table `purchase_invoice` -- ALTER TABLE `purchase_invoice` ADD PRIMARY KEY (`id`), ADD KEY `distributer_id` (`distributer_id`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `customers` -- ALTER TABLE `customers` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `distributer` -- ALTER TABLE `distributer` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `products` -- ALTER TABLE `products` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `products_per_purchase_invoice` -- ALTER TABLE `products_per_purchase_invoice` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; -- -- AUTO_INCREMENT for table `purchase_invoice` -- ALTER TABLE `purchase_invoice` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=30; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- Constraints for dumped tables -- -- -- Constraints for table `customers` -- ALTER TABLE `customers` ADD CONSTRAINT `customers_ibfk_1` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`); -- -- Constraints for table `distributer` -- ALTER TABLE `distributer` ADD CONSTRAINT `distributer_ibfk_1` FOREIGN KEY (`created_by`) REFERENCES `users` (`id`); -- -- Constraints for table `products_per_purchase_invoice` -- ALTER TABLE `products_per_purchase_invoice` ADD CONSTRAINT `products_per_purchase_invoice_ibfk_1` FOREIGN KEY (`product_id`) REFERENCES `products` (`id`), ADD CONSTRAINT `products_per_purchase_invoice_ibfk_2` FOREIGN KEY (`purchase_invoice_id`) REFERENCES `purchase_invoice` (`id`); -- -- Constraints for table `purchase_invoice` -- ALTER TABLE `purchase_invoice` ADD CONSTRAINT `purchase_invoice_ibfk_1` FOREIGN KEY (`distributer_id`) REFERENCES `distributer` (`id`); COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
<reponame>glorsh66/bw317<gh_stars>0 /*Простой селект из персон*/ SELECT id FROM person WHERE (height BETWEEN 110 and 180) and (weight BETWEEN 50 and 250) and sex =1 and sexual_orientation =1 and relationship =1 and education > 1 and employment = 1 and smoke = 1 and alcohol =1 and sport = 1 and health = 1 and virus_hiv =1 and virus_hepatitis_c = 1; /*Более улучшенный селект*/ select * from (SELECT person.id FROM person left join site_users on person.id=site_users.id WHERE (height BETWEEN 110 and 180) and (weight BETWEEN 50 and 250) and sex =1 and sexual_orientation =1 and relationship =1 and education > 1 and employment = 1 and smoke = 1 and alcohol =1 and sport = 1 and health = 1 and virus_hiv =1 and virus_hepatitis_c = 1 order by site_users.user_registration_date) as t join person on t.id=person.id join site_users on t.id = site_users.id;
<reponame>JavaFXMax/CBS -- phpMyAdmin SQL Dump -- version 4.0.10.14 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Nov 07, 2016 at 11:47 AM -- Server version: 5.5.52-cll-lve -- PHP Version: 5.6.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `lixnetco_xarademo` -- -- -------------------------------------------------------- -- -- Table structure for table `account` -- CREATE TABLE IF NOT EXISTS `account` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` text COLLATE utf8_unicode_ci, `category` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `balance` double NOT NULL, `confirmed` tinyint(1) NOT NULL DEFAULT '0', `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `accounts` -- CREATE TABLE IF NOT EXISTS `accounts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `category` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `code` int(11) NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `account_group` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `balance` double(15,2) DEFAULT '0.00', `active` tinyint(1) NOT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=57 ; -- -- Dumping data for table `accounts` -- INSERT INTO `accounts` (`id`, `category`, `code`, `name`, `account_group`, `balance`, `active`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'INCOME', 2001, 'bank', '', 90000.00, 1, 1, '2016-07-27 07:50:42', '2016-07-27 07:50:42'), (2, 'INCOME', 2002, 'mpesa', '', 115620.00, 1, 1, '2016-07-27 07:52:52', '2016-07-27 07:52:52'), (3, 'ASSET', 1001, 'Emergency Loan Account', '', 3000.00, 1, 1, '2016-07-27 09:20:23', '2016-07-27 09:20:23'), (4, 'ASSET', 1002, 'Emergency Portfolio Account', '', 0.00, 1, 1, '2016-07-27 09:21:14', '2016-07-27 09:21:14'), (5, 'INCOME', 2003, 'Emergency Interest Account', '', 2000.00, 1, 1, '2016-07-27 09:27:21', '2016-07-27 09:27:21'), (6, 'INCOME', 2004, 'Emergency Fees Account', '', 2000.00, 1, 1, '2016-07-27 09:30:51', '2016-07-27 09:30:51'), (7, 'INCOME', 2005, 'Emergency Penalties Account', '', 1000.00, 1, 1, '2016-07-27 09:32:09', '2016-07-27 09:32:09'), (8, 'EXPENSE', 3001, 'Loan losses written off Account', '', 600.00, 1, 1, '2016-07-27 09:33:22', '2016-07-27 09:33:22'), (9, 'LIABILITY', 5001, 'Loan Over Payment', '', 500.00, 1, 1, '2016-07-27 09:34:07', '2016-07-27 09:34:07'), (10, 'ASSET', 1004, 'Savings cash account', '', 8000.00, 1, 1, '2016-07-27 09:56:53', '2016-07-27 09:56:53'), (11, 'LIABILITY', 5003, 'Savings control Account', '', 900.00, 1, 1, '2016-07-27 09:57:36', '2016-07-27 09:57:36'), (12, 'INCOME', 2006, 'Savings fees income account', '', 0.00, 1, 1, '2016-07-27 09:58:15', '2016-07-27 09:58:15'), (13, 'EXPENSE', 3002, 'Expense Account', '', 10000.00, 1, 1, '2016-08-09 09:58:06', '2016-08-09 09:58:06'), (14, 'EXPENSE', 3001, 'Expense Account', '', 8000.00, 1, 8, '2016-08-09 09:59:49', '2016-08-09 09:59:49'), (15, 'INCOME', 2001, 'bank', '', 40000.00, 1, 8, '2016-08-09 10:00:35', '2016-08-09 10:00:35'), (16, 'ASSET', 1001, 'loan cash account', '', 0.00, 1, 8, '2016-08-11 09:13:46', '2016-08-11 09:13:46'), (17, 'LIABILITY', 5001, 'Advances', '', 0.00, 1, 11, '2016-09-19 09:09:13', '2016-09-19 09:09:13'), (18, 'LIABILITY', 5002, 'Salaries', '', 0.00, 1, 11, '2016-09-19 09:11:53', '2016-09-19 09:11:53'), (19, 'EXPENSE', 3001, 'Expenditures', '', -17500.00, 1, 11, '2016-09-20 05:59:29', '2016-09-20 05:59:29'), (20, 'ASSET', 1001, 'Mpesa', '', 1000000.00, 1, 11, '2016-09-20 06:48:51', '2016-09-20 06:48:51'), (21, 'ASSET', 1002, 'Bank', '', 5000000.00, 1, 11, '2016-09-20 06:49:15', '2016-09-20 06:49:15'), (22, 'ASSET', 1003, 'Cash', '', 0.00, 1, 11, '2016-09-20 09:18:17', '2016-09-20 09:18:17'), (23, 'INCOME', 2001, 'Loan Interest Account', '', 0.00, 1, 11, '2016-09-20 09:19:37', '2016-09-20 09:26:22'), (24, 'ASSET', 1004, 'Portfolio Account', '', 0.00, 1, 11, '2016-09-20 09:25:19', '2016-09-20 09:25:19'), (25, 'INCOME', 2002, 'Loan Fees Account', '', 0.00, 1, 11, '2016-09-20 09:26:03', '2016-09-20 09:26:03'), (26, 'INCOME', 2003, 'Loan Penalty Account', '', 0.00, 1, 11, '2016-09-20 09:27:23', '2016-09-20 09:27:23'), (27, 'EXPENSE', 3002, 'Losses Written Off', '', 0.00, 1, 11, '2016-09-20 09:28:34', '2016-09-20 09:28:34'), (28, 'LIABILITY', 5003, 'Loan Over Payments', '', 0.00, 1, 11, '2016-09-20 09:29:08', '2016-09-20 09:30:08'), (29, 'LIABILITY', 5005, 'Savings', '', 0.00, 1, 11, '2016-09-20 09:57:24', '2016-09-20 09:57:24'), (30, 'INCOME', 2006, 'Saving Fees Income', '', 0.00, 1, 11, '2016-09-20 09:58:09', '2016-09-20 09:58:55'), (31, 'ASSET', 1005, 'Purchase', '', 0.00, 1, 11, '2016-09-21 07:59:09', '2016-09-21 07:59:29'), (32, 'LIABILITY', 5004, 'Payable', '', 0.00, 1, 11, '2016-09-21 08:00:13', '2016-09-21 08:00:13'), (33, 'INCOME', 2004, 'Sales Revenue', '', 0.00, 1, 11, '2016-09-21 08:39:00', '2016-09-21 08:39:00'), (34, 'ASSET', 1008, 'Payment Receivable', '', 0.00, 1, 11, '2016-09-21 10:16:31', '2016-09-21 10:16:31'), (35, 'INCOME', 2001, 'mpesa', '', 0.00, 1, 12, '2016-10-06 06:23:40', '2016-10-06 06:23:40'), (36, 'INCOME', 2002, 'Cash', '', 0.00, 1, 12, '2016-10-06 06:24:04', '2016-10-06 06:24:04'), (37, 'INCOME', 2003, 'bank', '', 80000.00, 1, 12, '2016-10-06 06:24:37', '2016-10-06 06:24:37'), (38, 'ASSET', 1001, 'cash Account', '', 0.00, 1, 12, '2016-10-06 06:27:11', '2016-10-06 06:27:11'), (39, 'EXPENSE', 3001, 'Expense Account', '', 6000.00, 1, 12, '2016-10-06 06:27:47', '2016-10-06 06:27:47'), (40, 'ASSET', 1002, 'portfolio Account', '', 0.00, 1, 12, '2016-10-06 07:24:17', '2016-10-06 07:24:17'), (41, 'INCOME', 2004, 'interest Acc', '', 0.00, 1, 12, '2016-10-06 07:25:19', '2016-10-06 07:25:19'), (42, 'INCOME', 2005, 'Fees Acc', '', 0.00, 1, 12, '2016-10-06 07:27:09', '2016-10-06 07:27:09'), (43, 'INCOME', 2006, 'Penalties Acc', '', 0.00, 1, 12, '2016-10-06 07:27:46', '2016-10-06 07:27:46'), (44, 'EXPENSE', 3002, 'Losses Written Off', '', 0.00, 1, 12, '2016-10-06 07:29:56', '2016-10-06 07:29:56'), (45, 'LIABILITY', 5001, 'Loan Over Payment', '', 0.00, 1, 12, '2016-10-06 07:30:32', '2016-10-06 07:30:32'), (46, 'ASSET', 1001, 'Cash Account', '', 1000000.00, 1, 17, '2016-10-19 12:53:34', '2016-10-19 12:53:34'), (47, 'ASSET', 1002, 'Emergency Loan Account', '', 0.00, 1, 17, '2016-10-19 12:54:22', '2016-10-19 12:54:22'), (48, 'INCOME', 2001, 'Emergency Loan Interest Account', '', 0.00, 1, 17, '2016-10-19 12:55:36', '2016-10-19 12:55:36'), (49, 'INCOME', 2002, 'Emergency Loan Penalty Account', '', 0.00, 1, 17, '2016-10-19 12:56:00', '2016-10-19 12:56:00'), (50, 'INCOME', 2003, 'Emergency Loan Fees Account', '', 0.00, 1, 17, '2016-10-19 12:56:36', '2016-10-19 12:56:36'), (51, 'INCOME', 2005, 'Member Savings Fees Account', '', 0.00, 1, 17, '2016-10-19 12:57:05', '2016-10-19 12:57:05'), (52, 'EXPENSE', 3001, 'Emergency Loan Written Off Account', '', 0.00, 1, 17, '2016-10-19 12:58:58', '2016-10-19 12:58:58'), (53, 'LIABILITY', 5001, 'Emergency Loan Overpayment Account', '', 0.00, 1, 17, '2016-10-19 12:59:32', '2016-10-19 12:59:32'), (54, 'LIABILITY', 5005, 'Emergency Loan Offset Account', '', 0.00, 1, 17, '2016-10-19 13:00:19', '2016-10-19 13:00:19'), (55, 'LIABILITY', 5006, 'Member Savings Account', '', 0.00, 1, 17, '2016-10-19 13:01:01', '2016-10-19 13:01:01'), (56, 'ASSET', 0, 'Imarisha Loan', '', 0.00, 1, 23, '2016-10-28 03:29:10', '2016-10-28 03:29:10'); -- -------------------------------------------------------- -- -- Table structure for table `allowances` -- CREATE TABLE IF NOT EXISTS `allowances` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `allowance_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `allowances_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; -- -- Dumping data for table `allowances` -- INSERT INTO `allowances` (`id`, `allowance_name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'House Allowance', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (2, 'Transport Allowance', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'); -- -------------------------------------------------------- -- -- Table structure for table `appraisalcategories` -- CREATE TABLE IF NOT EXISTS `appraisalcategories` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned DEFAULT NULL, `rate` int(11) DEFAULT '10', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `appraisalcategories_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=13 ; -- -- Dumping data for table `appraisalcategories` -- INSERT INTO `appraisalcategories` (`id`, `name`, `organization_id`, `rate`, `created_at`, `updated_at`) VALUES (1, 'Attendance and Punctuality', NULL, 10, '2016-07-27 06:03:33', '2016-07-27 06:03:33'), (2, 'Communication', NULL, 10, '2016-07-27 06:03:34', '2016-07-27 06:03:34'), (3, 'Dependability', NULL, 10, '2016-07-27 06:03:34', '2016-07-27 06:03:34'), (4, 'Individual Effectiveness', NULL, 10, '2016-07-27 06:03:34', '2016-07-27 06:03:34'), (5, 'Initiative', NULL, 10, '2016-07-27 06:03:34', '2016-07-27 06:03:34'), (6, 'Job Knowledge', NULL, 10, '2016-07-27 06:03:34', '2016-07-27 06:03:34'), (7, 'Judgement and Decision Making', NULL, 10, '2016-07-27 06:03:34', '2016-07-27 06:03:34'), (8, 'Ongoing Skill Improvement', NULL, 10, '2016-07-27 06:03:34', '2016-07-27 06:03:34'), (9, 'Quality of Work', NULL, 10, '2016-07-27 06:03:34', '2016-07-27 06:03:34'), (10, 'Safe Work Practise', NULL, 10, '2016-07-27 06:03:34', '2016-07-27 06:03:34'), (11, 'Service Focus', NULL, 10, '2016-07-27 06:03:34', '2016-07-27 06:03:34'), (12, 'Team Building', NULL, 10, '2016-07-27 06:03:34', '2016-07-27 06:03:34'); -- -------------------------------------------------------- -- -- Table structure for table `appraisalquestions` -- CREATE TABLE IF NOT EXISTS `appraisalquestions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `question` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `appraisalcategory_id` int(10) unsigned NOT NULL, `rate` int(11) DEFAULT '10', `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `appraisalquestions_appraisalcategory_id_foreign` (`appraisalcategory_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `appraisalquestions` -- INSERT INTO `appraisalquestions` (`id`, `question`, `appraisalcategory_id`, `rate`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'How ofetn does he come to the office?', 1, 20, 1, '2016-07-28 11:44:47', '2016-07-28 11:44:47'), (2, 'how quality is it?', 9, 20, 8, '2016-08-10 12:32:11', '2016-08-10 12:32:11'), (3, 'When does he/she get to work', 1, 10, 11, '2016-09-19 11:41:34', '2016-09-19 11:41:34'), (4, 'how good is she?', 2, 20, 12, '2016-10-07 12:17:39', '2016-10-07 12:17:39'); -- -------------------------------------------------------- -- -- Table structure for table `appraisals` -- CREATE TABLE IF NOT EXISTS `appraisals` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `appraisalquestion_id` int(10) unsigned NOT NULL, `performance` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `rate` int(11) NOT NULL DEFAULT '0', `examiner` int(10) unsigned NOT NULL, `appraisaldate` date NOT NULL, `comment` text COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `appraisals_employee_id_foreign` (`employee_id`), KEY `appraisals_appraisalquestion_id_foreign` (`appraisalquestion_id`), KEY `appraisals_examiner_foreign` (`examiner`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `appraisals` -- INSERT INTO `appraisals` (`id`, `employee_id`, `appraisalquestion_id`, `performance`, `rate`, `examiner`, `appraisaldate`, `comment`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 3, 1, 'Needs Improvements', 10, 1, '2016-07-28', '', NULL, '2016-07-28 08:45:16', '2016-07-28 08:45:16'), (2, 6, 2, 'Meets Expectations', 20, 8, '2016-08-10', '', 8, '2016-08-10 09:32:31', '2016-08-10 09:32:31'), (3, 9, 3, 'Outstanding', 8, 14, '2016-09-19', '', 11, '2016-09-19 08:41:44', '2016-09-19 08:41:44'), (4, 10, 4, 'Outstanding', 19, 23, '2016-10-07', '', 12, '2016-10-07 09:17:59', '2016-10-07 09:17:59'); -- -------------------------------------------------------- -- -- Table structure for table `assigned_roles` -- CREATE TABLE IF NOT EXISTS `assigned_roles` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `user_id` int(10) unsigned NOT NULL, `role_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `assigned_roles_user_id_foreign` (`user_id`), KEY `assigned_roles_role_id_foreign` (`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=18 ; -- -- Dumping data for table `assigned_roles` -- INSERT INTO `assigned_roles` (`id`, `user_id`, `role_id`) VALUES (1, 1, 1), (3, 6, 6), (4, 7, 7), (5, 8, 8), (6, 14, 9), (7, 22, 10), (8, 23, 12), (9, 24, 13), (10, 25, 14), (11, 26, 15), (12, 27, 16), (13, 28, 17), (14, 32, 18), (15, 33, 19), (16, 34, 20), (17, 35, 21); -- -------------------------------------------------------- -- -- Table structure for table `audits` -- CREATE TABLE IF NOT EXISTS `audits` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` date DEFAULT NULL, `user` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `action` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `entity` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `amount` float(10,0) DEFAULT NULL, `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=30 ; -- -- Dumping data for table `audits` -- INSERT INTO `audits` (`id`, `date`, `user`, `action`, `entity`, `amount`, `description`, `organization_id`, `created_at`, `updated_at`) VALUES (1, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:14:54', '2016-11-02 05:14:54'), (2, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:28:44', '2016-11-02 05:28:44'), (3, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:29:54', '2016-11-02 05:29:54'), (4, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:31:57', '2016-11-02 05:31:57'), (5, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:32:33', '2016-11-02 05:32:33'), (6, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:33:18', '2016-11-02 05:33:18'), (7, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:34:01', '2016-11-02 05:34:01'), (8, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:34:52', '2016-11-02 05:34:52'), (9, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:35:21', '2016-11-02 05:35:21'), (10, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:35:54', '2016-11-02 05:35:54'), (11, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:36:31', '2016-11-02 05:36:31'), (12, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:37:24', '2016-11-02 05:37:24'), (13, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:37:44', '2016-11-02 05:37:44'), (14, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:38:34', '2016-11-02 05:38:34'), (15, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:39:38', '2016-11-02 05:39:38'), (16, '2016-11-02', 'superadmin', 'view', 'Employees', NULL, 'viewed employee list', 1, '2016-11-02 05:41:49', '2016-11-02 05:41:49'), (17, '2016-11-02', 'superadmin', 'view', 'Appraisals', NULL, 'viewed appraisals', 1, '2016-11-02 05:42:07', '2016-11-02 05:42:07'), (18, '2016-11-04', 'Kov', 'view', 'Budgets', NULL, 'viewed budgets', 15, '2016-11-04 07:27:14', '2016-11-04 07:27:14'), (19, '2016-11-04', 'Kov', 'view', 'Budgets', NULL, 'viewed budgets', 15, '2016-11-04 11:24:52', '2016-11-04 11:24:52'), (20, '2016-11-04', 'Kov', 'view', 'Earnings', NULL, 'viewed earnings', 15, '2016-11-04 11:34:58', '2016-11-04 11:34:58'), (21, '2016-11-04', 'Kov', 'view', 'Budgets', NULL, 'viewed budgets', 15, '2016-11-04 12:41:06', '2016-11-04 12:41:06'), (22, '2016-11-07', 'steviemwa', 'view', 'Budgets', NULL, 'viewed budgets', 16, '2016-11-07 03:33:45', '2016-11-07 03:33:45'), (23, '2016-11-07', 'cris', 'view', 'Budgets', NULL, 'viewed budgets', 17, '2016-11-07 03:35:31', '2016-11-07 03:35:31'), (24, '2016-11-07', 'steviemwa', 'view', 'Budgets', NULL, 'viewed budgets', 16, '2016-11-07 03:37:50', '2016-11-07 03:37:50'), (25, '2016-11-07', 'steviemwa', 'view', 'Budgets', NULL, 'viewed budgets', 16, '2016-11-07 03:39:11', '2016-11-07 03:39:11'), (26, '2016-11-07', 'steviemwa', 'view', 'Budgets', NULL, 'viewed budgets', 16, '2016-11-07 03:43:36', '2016-11-07 03:43:36'), (27, '2016-11-07', 'ken', 'view', 'Budgets', NULL, 'viewed budgets', 12, '2016-11-07 05:46:30', '2016-11-07 05:46:30'), (28, '2016-11-07', 'ken', 'create', 'Budgets', NULL, 'created: for Nov-2016', 12, '2016-11-07 05:46:55', '2016-11-07 05:46:55'), (29, '2016-11-07', 'ken', 'view', 'Budgets', NULL, 'viewed budgets', 12, '2016-11-07 05:46:56', '2016-11-07 05:46:56'); -- -------------------------------------------------------- -- -- Table structure for table `autoprocesses` -- CREATE TABLE IF NOT EXISTS `autoprocesses` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `period` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `is_completed` tinyint(1) NOT NULL DEFAULT '0', `category` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `product_id` int(11) NOT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `banks` -- CREATE TABLE IF NOT EXISTS `banks` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `bank_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `bank_code` int(11) NOT NULL DEFAULT '0', `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `banks_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=51 ; -- -- Dumping data for table `banks` -- INSERT INTO `banks` (`id`, `bank_name`, `bank_code`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'AFRICAN BANKING CORPORATION', 35, NULL, '2016-07-28 06:24:34', '2016-07-28 06:24:34'), (2, 'BANK OF AFRICA (K) LTD. ', 19, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (3, 'BANK OF BARODA (K) LTD. ', 6, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (4, 'BANK OF INDIA', 5, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (5, 'BARCLAYS BANK OF (K) LTD. ', 3, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (6, 'CENTRAL BANK OF KENYA', 9, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (7, 'CFCSTANBIC BANK KENYA LTD. ', 31, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (8, 'CHASE BANK LTD. ', 30, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (9, 'CITIBANK', 16, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (10, 'COMMERCIAL BANK OF AFRICA LTD. ', 7, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (11, 'CONSOLIDATED BANK OF (K) LTD. ', 23, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (12, 'CO-OP BANK OF (K) LTD. ', 11, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (13, 'CREDIT BANK LTD. ', 25, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (14, 'DEVELOPMENT BANK (K) LTD. ', 59, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (15, 'DIAMOND TRUST BANK LTD. ', 63, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (16, 'DUBAI BANK LTD. ', 20, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (17, 'ECOBANK LTD. ', 43, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (18, 'EQUATORAL COMMERCIAL BANK LTD. ', 49, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (19, 'EQUITY BANK LTD. ', 68, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (20, 'FAMILY BANK LTD. ', 70, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (21, '<NAME>', 0, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (22, 'FINA BANK LTD. ', 0, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (23, 'FIRST COMMUNITY BANK LTD. ', 74, NULL, '2016-07-28 06:24:35', '2016-07-28 06:24:35'), (24, 'GIRO COMMERCIAL BANK LTD. ', 42, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (25, 'GUARDIAN BANK LTD. ', 55, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (26, 'GUARANTY TRUST BANK (KENYA) LTD.', 53, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (27, 'GULF AFRICAN BANK', 72, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (28, 'HABIB BANK A.G. ZURICH', 17, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (29, 'HABIB BANK LTD. ', 8, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (30, 'HOUSING FINANCE. ', 61, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (31, 'I&M BANK LTD. ', 57, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (32, 'IMPERIAL BANK LTD. ', 39, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (33, 'JAMII BORA BANK LTD. ', 51, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (34, 'KENYA COMMERCIALIAL BANK LTD. ', 1, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (35, 'KENYA WOMEN MICROFINANCE BANK LTD.', 0, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (36, 'K-REP BANK LTD. ', 66, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (37, 'MIDDLE EAST BANK (K) LTD. ', 18, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (38, 'NATIONAL BANK  ', 12, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (39, 'NIC BANK LTD. ', 41, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (40, 'ORIENTAL COMMERCIAL BANK LTD. ', 14, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (41, 'PARAMAOUNT UNIVERSAL BANK LTD. ', 50, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (42, 'PRIME BANK LTD. ', 10, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (43, 'POST BANK.', 0, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (44, 'STANDARD CHARTERED BANK (K) LTD. ', 2, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (45, 'TRANS-NATIONAL BANK LTD. ', 26, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (46, 'UBA BANK', 76, NULL, '2016-07-28 06:24:36', '2016-07-28 06:24:36'), (47, 'VICTORIA COMMERCIAL BANK LTD. ', 54, NULL, '2016-07-28 06:24:37', '2016-07-28 06:24:37'), (48, ' FIDELITY COMMERCIAL BANK ', 60, NULL, '2016-07-28 06:24:37', '2016-07-28 06:24:37'), (49, ' CHARTERHOUSE BANK LTD ', 64, NULL, '2016-07-28 06:24:37', '2016-07-28 06:24:37'), (50, 'Equity', 0, NULL, '2016-08-10 11:30:40', '2016-08-10 11:30:40'); -- -------------------------------------------------------- -- -- Table structure for table `bank_branches` -- CREATE TABLE IF NOT EXISTS `bank_branches` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `branch_code` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `bank_branch_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `bank_id` int(10) unsigned NOT NULL DEFAULT '0', `organization_id` int(10) unsigned DEFAULT '0', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `bank_branches_bank_id_foreign` (`bank_id`), KEY `bank_branches_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2939 ; -- -- Dumping data for table `bank_branches` -- INSERT INTO `bank_branches` (`id`, `branch_code`, `bank_branch_name`, `bank_id`, `organization_id`, `created_at`, `updated_at`) VALUES (1, '23', '<NAME>', 17, NULL, '2016-03-31 03:33:52', '2016-03-31 03:33:52'), (2, '24', 'Karen', 17, NULL, '2016-03-31 03:33:52', '2016-03-31 03:33:52'), (3, '25', '<NAME>', 17, NULL, '2016-03-31 03:33:53', '2016-03-31 03:33:53'), (4, '26', '<NAME>', 17, NULL, '2016-03-31 03:33:53', '2016-03-31 03:33:53'), (5, '27', 'Embakasi', 17, NULL, '2016-03-31 03:33:53', '2016-03-31 03:33:53'), (6, '28', 'Kitengela', 17, NULL, '2016-03-31 03:33:53', '2016-03-31 03:33:53'), (7, '29', '<NAME>', 17, NULL, '2016-03-31 03:33:53', '2016-03-31 03:33:53'), (8, '100', 'Head Office ', 17, NULL, '2016-03-31 03:33:53', '2016-03-31 03:33:53'), (9, '0', 'Nairobi ', 18, NULL, '2016-03-31 03:33:53', '2016-03-31 03:33:53'), (10, '1', 'Nyerere ', 18, NULL, '2016-03-31 03:33:53', '2016-03-31 03:33:53'), (11, '2', 'Mombasa ', 18, NULL, '2016-03-31 03:33:53', '2016-03-31 03:33:53'), (12, '3', 'Westlands ', 18, NULL, '2016-03-31 03:33:53', '2016-03-31 03:33:53'), (13, '4', 'Mombasa Road ', 18, NULL, '2016-03-31 03:33:53', '2016-03-31 03:33:53'), (14, '5', 'Chester ', 18, NULL, '2016-03-31 03:33:53', '2016-03-31 03:33:53'), (15, '7', 'Waiyaki Way ', 18, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (16, '8', 'Kakamega ', 18, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (17, '9', 'Eldoret ', 18, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (18, '10', 'Senator Cards', 18, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (19, '11', 'Nyali ', 18, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (20, '12', 'Kisumu ', 18, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (21, '13', 'Industrial Area ', 18, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (22, '15', 'Nakuru', 18, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (23, '16', '<NAME>', 18, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (24, '0', 'Equity Bank Head Office ', 19, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (25, '1', 'Equity Bank Corporate ', 19, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (26, '2', 'Equity Bank Fourways ', 19, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (27, '3', 'Kangema ', 19, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (28, '4', 'Karatina ', 19, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (29, '5', 'Kiriaini ', 19, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (30, '6', 'Murarandia ', 19, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (31, '7', 'Kangari ', 19, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (32, '8', 'Othaya ', 19, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (33, '9', 'Thika / Equity Plaza ', 19, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (34, '10', 'Kerugoya ', 19, NULL, '2016-03-31 03:33:54', '2016-03-31 03:33:54'), (35, '11', 'Nyeri ', 19, NULL, '2016-03-31 03:33:55', '2016-03-31 03:33:55'), (36, '12', '<NAME> ', 19, NULL, '2016-03-31 03:33:55', '2016-03-31 03:33:55'), (37, '13', 'Nakuru ', 19, NULL, '2016-03-31 03:33:55', '2016-03-31 03:33:55'), (38, '14', 'Meru ', 19, NULL, '2016-03-31 03:33:56', '2016-03-31 03:33:56'), (39, '15', '<NAME> ', 19, NULL, '2016-03-31 03:33:56', '2016-03-31 03:33:56'), (40, '16', 'Nyahururu ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (41, '17', 'Community ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (42, '18', 'Community Corporate ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (43, '19', 'Embu ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (44, '20', 'Naivasha ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (45, '21', 'Chuka ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (46, '22', 'Muranga ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (47, '23', 'Molo ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (48, '24', '<NAME> ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (49, '25', 'Mombasa ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (50, '26', 'Kimathi Street ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (51, '27', 'Nanyuki ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (52, '28', 'Kericho ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (53, '29', 'Kisumu ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (54, '30', 'Eldoret ', 19, NULL, '2016-03-31 03:33:57', '2016-03-31 03:33:57'), (55, '31', 'Nakuru Kenyatta Avenue ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (56, '32', 'Kariobangi ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (57, '33', 'Kitale ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (58, '34', 'Thika Kenyatta Avenue ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (59, '35', 'Knut House ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (60, '36', 'Narok ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (61, '37', 'Nkubu ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (62, '38', 'Mwea ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (63, '39', 'Matuu ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (64, '40', 'Maua ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (65, '41', 'Isiolo ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (66, '42', 'Kagio ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (67, '43', 'Gikomba ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (68, '44', 'Ukunda ', 19, NULL, '2016-03-31 03:33:58', '2016-03-31 03:33:58'), (69, '45', 'Malindi ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (70, '46', 'Mombasa Digo Road ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (71, '47', 'Moi Avenue ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (72, '48', 'Bungoma ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (73, '49', 'Kapsabet ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (74, '50', 'Kakamega ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (75, '51', 'Kisii ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (76, '52', 'Nyamira ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (77, '53', 'Litein ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (78, '54', 'Equity Centre Diaspora', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (79, '55', 'Westlands ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (80, '56', 'Industrial Area Kenpipe Plaza ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (81, '57', 'Kikuyu ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (82, '58', 'Garissa ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (83, '59', 'Mwingi ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (84, '60', 'Machakos ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (85, '61', '<NAME>ai ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (86, '62', 'Ol-kalao ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (87, '63', 'Kawangware ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (88, '64', 'Kiambu ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (89, '65', 'Kayole ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (90, '66', 'Gatundu ', 19, NULL, '2016-03-31 03:33:59', '2016-03-31 03:33:59'), (91, '67', 'Wote ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (92, '68', 'Mumias ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (93, '69', 'Limuru ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (94, '70', 'Kitengela ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (95, '71', 'Githurai ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (96, '72', 'Kitui ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (97, '73', 'Ngong ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (98, '74', 'Loitoktok ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (99, '75', 'Bondo ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (100, '76', 'Mbita ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (101, '77', 'Gilgil ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (102, '78', 'Busia ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (103, '79', 'Voi ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (104, '80', 'Enterprise Road ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (105, '81', 'Equity Centre ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (106, '82', 'Donholm ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (107, '83', 'Mukurwe-ini ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (108, '84', 'Eastleigh ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (109, '85', 'Namanga ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (110, '86', 'Kajiado ', 19, NULL, '2016-03-31 03:34:00', '2016-03-31 03:34:00'), (111, '87', 'Ruiru ', 19, NULL, '2016-03-31 03:34:01', '2016-03-31 03:34:01'), (112, '88', 'Otc ', 19, NULL, '2016-03-31 03:34:01', '2016-03-31 03:34:01'), (113, '89', 'Kenol ', 19, NULL, '2016-03-31 03:34:01', '2016-03-31 03:34:01'), (114, '90', 'Tala ', 19, NULL, '2016-03-31 03:34:01', '2016-03-31 03:34:01'), (115, '91', 'Ngara ', 19, NULL, '2016-03-31 03:34:01', '2016-03-31 03:34:01'), (116, '92', '<NAME> ', 19, NULL, '2016-03-31 03:34:02', '2016-03-31 03:34:02'), (117, '93', 'Githunguri ', 19, NULL, '2016-03-31 03:34:02', '2016-03-31 03:34:02'), (118, '94', 'Tea Room ', 19, NULL, '2016-03-31 03:34:02', '2016-03-31 03:34:02'), (119, '95', 'Buru Buru ', 19, NULL, '2016-03-31 03:34:02', '2016-03-31 03:34:02'), (120, '96', 'Mbale ', 19, NULL, '2016-03-31 03:34:03', '2016-03-31 03:34:03'), (121, '97', 'Siaya ', 19, NULL, '2016-03-31 03:34:03', '2016-03-31 03:34:03'), (122, '98', 'Homa Bay ', 19, NULL, '2016-03-31 03:34:03', '2016-03-31 03:34:03'), (123, '99', 'Lodwar ', 19, NULL, '2016-03-31 03:34:03', '2016-03-31 03:34:03'), (124, '100', 'Mandera ', 19, NULL, '2016-03-31 03:34:03', '2016-03-31 03:34:03'), (125, '101', 'Marsabit ', 19, NULL, '2016-03-31 03:34:03', '2016-03-31 03:34:03'), (126, '102', 'Moyale ', 19, NULL, '2016-03-31 03:34:03', '2016-03-31 03:34:03'), (127, '103', 'Wajir ', 19, NULL, '2016-03-31 03:34:03', '2016-03-31 03:34:03'), (128, '104', '<NAME> ', 19, NULL, '2016-03-31 03:34:03', '2016-03-31 03:34:03'), (129, '105', '<NAME> ', 19, NULL, '2016-03-31 03:34:04', '2016-03-31 03:34:04'), (130, '106', 'Kilifi ', 19, NULL, '2016-03-31 03:34:04', '2016-03-31 03:34:04'), (131, '107', 'Kapenguria ', 19, NULL, '2016-03-31 03:34:04', '2016-03-31 03:34:04'), (132, '108', 'Mombasa Road ', 19, NULL, '2016-03-31 03:34:04', '2016-03-31 03:34:04'), (133, '109', 'Eldoret Market ', 19, NULL, '2016-03-31 03:34:04', '2016-03-31 03:34:04'), (134, '110', 'Maralal ', 19, NULL, '2016-03-31 03:34:04', '2016-03-31 03:34:04'), (135, '111', 'Kimende ', 19, NULL, '2016-03-31 03:34:05', '2016-03-31 03:34:05'), (136, '112', 'Luanda ', 19, NULL, '2016-03-31 03:34:05', '2016-03-31 03:34:05'), (137, '113', 'Ku Sub Branch ', 19, NULL, '2016-03-31 03:34:05', '2016-03-31 03:34:05'), (138, '114', 'Kengeleni ', 19, NULL, '2016-03-31 03:34:05', '2016-03-31 03:34:05'), (139, '115', '<NAME> ', 19, NULL, '2016-03-31 03:34:05', '2016-03-31 03:34:05'), (140, '116', 'Migori ', 19, NULL, '2016-03-31 03:34:05', '2016-03-31 03:34:05'), (141, '117', 'Kibera ', 19, NULL, '2016-03-31 03:34:05', '2016-03-31 03:34:05'), (142, '118', 'Kasarani ', 19, NULL, '2016-03-31 03:34:05', '2016-03-31 03:34:05'), (143, '119', 'Mtwapa ', 19, NULL, '2016-03-31 03:34:05', '2016-03-31 03:34:05'), (144, '120', 'Changamwe ', 19, NULL, '2016-03-31 03:34:05', '2016-03-31 03:34:05'), (145, '121', 'Hola ', 19, NULL, '2016-03-31 03:34:06', '2016-03-31 03:34:06'), (146, '122', 'Bomet ', 19, NULL, '2016-03-31 03:34:06', '2016-03-31 03:34:06'), (147, '123', 'Kilgoris ', 19, NULL, '2016-03-31 03:34:06', '2016-03-31 03:34:06'), (148, '124', 'Keroka ', 19, NULL, '2016-03-31 03:34:06', '2016-03-31 03:34:06'), (149, '125', 'KAREN', 19, NULL, '2016-03-31 03:34:06', '2016-03-31 03:34:06'), (150, '126', '<NAME>', 19, NULL, '2016-03-31 03:34:06', '2016-03-31 03:34:06'), (151, '127', 'MPEKETONI', 19, NULL, '2016-03-31 03:34:06', '2016-03-31 03:34:06'), (152, '128', '<NAME>', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (153, '129', '<NAME>', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (154, '130', 'City Hall', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (155, '131', '<NAME>', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (156, '132', 'Embakasi', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (157, '133', 'KPCU', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (158, '134', 'Ridgeways', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (159, '135', 'Runyenjes Sub Branch', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (160, '136', 'Dadaad', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (161, '137', 'Kangemi', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (162, '138', 'Nyali Centre Corporate', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (163, '139', 'Kabarnet', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (164, '140', 'Westlands Corporate', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (165, '141', 'Lavington Corporate', 19, NULL, '2016-03-31 03:34:07', '2016-03-31 03:34:07'), (166, '142', '<NAME>', 19, NULL, '2016-03-31 03:34:08', '2016-03-31 03:34:08'), (167, '143', 'Awendo', 19, NULL, '2016-03-31 03:34:08', '2016-03-31 03:34:08'), (168, '144', 'Ruai', 19, NULL, '2016-03-31 03:34:08', '2016-03-31 03:34:08'), (169, '145', 'Kilimani', 19, NULL, '2016-03-31 03:34:08', '2016-03-31 03:34:08'), (170, '146', 'Nakuru Westside Mall', 19, NULL, '2016-03-31 03:34:08', '2016-03-31 03:34:08'), (171, '147', 'Kilimani Supreme', 19, NULL, '2016-03-31 03:34:08', '2016-03-31 03:34:08'), (172, '148', 'JKIA Cargo Centre', 19, NULL, '2016-03-31 03:34:08', '2016-03-31 03:34:08'), (173, '149', 'EPZ Athi River', 19, NULL, '2016-03-31 03:34:08', '2016-03-31 03:34:08'), (174, '150', 'Oyugis', 19, NULL, '2016-03-31 03:34:08', '2016-03-31 03:34:08'), (175, '151', 'Mayfair Supreme Centre', 19, NULL, '2016-03-31 03:34:08', '2016-03-31 03:34:08'), (176, '152', 'Juja', 19, NULL, '2016-03-31 03:34:09', '2016-03-31 03:34:09'), (177, '153', 'Iten', 19, NULL, '2016-03-31 03:34:09', '2016-03-31 03:34:09'), (178, '154', 'Nyali Supreme Centre', 19, NULL, '2016-03-31 03:34:09', '2016-03-31 03:34:09'), (179, '155', 'Thika Supreme Centre', 19, NULL, '2016-03-31 03:34:09', '2016-03-31 03:34:09'), (180, '156', 'Mombasa Supreme Centre', 19, NULL, '2016-03-31 03:34:09', '2016-03-31 03:34:09'), (181, '157', 'Kapsowar Sub-Branch', 19, NULL, '2016-03-31 03:34:09', '2016-03-31 03:34:09'), (182, '158', 'Kwale', 19, NULL, '2016-03-31 03:34:09', '2016-03-31 03:34:09'), (183, '159', 'Lamu', 19, NULL, '2016-03-31 03:34:09', '2016-03-31 03:34:09'), (184, '160', 'Kenyatta Avenue Supreme', 19, NULL, '2016-03-31 03:34:09', '2016-03-31 03:34:09'), (185, '161', 'KPA Sub-Branch Mombasa', 19, NULL, '2016-03-31 03:34:09', '2016-03-31 03:34:09'), (186, '162', 'Gigiri Supreme Centre', 19, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (187, '163', 'Karen Supreme Centre', 19, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (188, '164', 'Eldoret Supreme Centre', 19, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (189, '165', 'Kakuma', 19, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (190, '166', '<NAME> ', 19, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (191, '167', 'Mutomo', 19, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (192, '168', 'Kiserian Sub Branch', 19, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (193, '169', 'Dag<NAME>', 19, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (194, '170', 'Kisumu Supreme Centre', 19, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (195, '171', '<NAME>', 19, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (196, '777', 'Equity Hapo Hapo', 19, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (197, '0', 'Head Office ', 20, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (198, '1', 'Kiambu ', 20, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (199, '2', 'Githunguri ', 20, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (200, '3', 'Sonalux ', 20, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (201, '4', 'Gatundu ', 20, NULL, '2016-03-31 03:34:10', '2016-03-31 03:34:10'), (202, '5', 'Thika ', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (203, '6', 'Muranga ', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (204, '7', 'Kangari ', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (205, '8', 'Kiria-ini ', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (206, '9', 'Kangema ', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (207, '11', 'Othaya ', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (208, '12', 'Kenyatta Avenue ', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (209, '14', 'Cargen House ', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (210, '15', 'Laptrust', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (211, '16', 'City Hall Annex', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (212, '17', 'Kasarani', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (213, '18', 'Nakuru Finance House ', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (214, '19', 'Nakuru Market', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (215, '21', 'Dagoretti', 20, NULL, '2016-03-31 03:34:11', '2016-03-31 03:34:11'), (216, '22', 'Kericho', 20, NULL, '2016-03-31 03:34:12', '2016-03-31 03:34:12'), (217, '23', 'Nyahururu', 20, NULL, '2016-03-31 03:34:12', '2016-03-31 03:34:12'), (218, '24', 'Ruiru ', 20, NULL, '2016-03-31 03:34:12', '2016-03-31 03:34:12'), (219, '25', 'Kisumu Reliance', 20, NULL, '2016-03-31 03:34:12', '2016-03-31 03:34:12'), (220, '26', 'Nyamira ', 20, NULL, '2016-03-31 03:34:12', '2016-03-31 03:34:12'), (221, '27', 'Kisii ', 20, NULL, '2016-03-31 03:34:12', '2016-03-31 03:34:12'), (222, '28', '<NAME>', 20, NULL, '2016-03-31 03:34:12', '2016-03-31 03:34:12'), (223, '29', 'Narok', 20, NULL, '2016-03-31 03:34:12', '2016-03-31 03:34:12'), (224, '31', 'Industrial Area ', 20, NULL, '2016-03-31 03:34:12', '2016-03-31 03:34:12'), (225, '32', '<NAME>', 20, NULL, '2016-03-31 03:34:12', '2016-03-31 03:34:12'), (226, '33', 'Donholm ', 20, NULL, '2016-03-31 03:34:12', '2016-03-31 03:34:12'), (227, '34', 'Utawala', 20, NULL, '2016-03-31 03:34:12', '2016-03-31 03:34:12'), (228, '35', 'Fourways Retail Branch', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (229, '37', 'Olkalou', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (230, '38', 'Ktda Plaza ', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (231, '41', 'Kariobangi ', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (232, '42', 'Gikomba Area 42', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (233, '43', 'Sokoni ', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (234, '45', 'Githurai ', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (235, '46', 'Yaya ', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (236, '47', 'Limuru ', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (237, '48', 'Westlands', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (238, '49', 'Kagwe', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (239, '51', 'Banana ', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (240, '53', 'Naivasha ', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (241, '54', 'Chuka', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (242, '55', 'Nyeri ', 20, NULL, '2016-03-31 03:34:13', '2016-03-31 03:34:13'), (243, '56', 'Karatina', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (244, '57', 'Kerugoya ', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (245, '58', '<NAME> ', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (246, '59', 'River Road ', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (247, '61', 'Kayole ', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (248, '62', 'Nkubu ', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (249, '63', 'Meru ', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (250, '64', 'Nanyuki', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (251, '65', 'Ktda Plaza Corporate ', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (252, '66', 'Ongata Rongai ', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (253, '67', 'Kajiado', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (254, '68', 'Fourways Corporate Branch ', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (255, '69', 'Ngara', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (256, '71', 'Kitengela ', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (257, '72', 'Kitui', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (258, '73', 'Mackakos ', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (259, '74', 'Migori', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (260, '75', 'Embu ', 20, NULL, '2016-03-31 03:34:14', '2016-03-31 03:34:14'), (261, '76', 'Mwea', 20, NULL, '2016-03-31 03:34:15', '2016-03-31 03:34:15'), (262, '77', 'Bungoma ', 20, NULL, '2016-03-31 03:34:15', '2016-03-31 03:34:15'), (263, '78', 'Kakamega ', 20, NULL, '2016-03-31 03:34:15', '2016-03-31 03:34:15'), (264, '79', 'Busia ', 20, NULL, '2016-03-31 03:34:15', '2016-03-31 03:34:15'), (265, '81', 'Mumias', 20, NULL, '2016-03-31 03:34:15', '2016-03-31 03:34:15'), (266, '82', '<NAME>', 20, NULL, '2016-03-31 03:34:15', '2016-03-31 03:34:15'), (267, '83', 'Molo ', 20, NULL, '2016-03-31 03:34:15', '2016-03-31 03:34:15'), (268, '84', 'Bomet', 20, NULL, '2016-03-31 03:34:15', '2016-03-31 03:34:15'), (269, '85', 'Eldoret ', 20, NULL, '2016-03-31 03:34:15', '2016-03-31 03:34:15'), (270, '87', 'Leitin', 20, NULL, '2016-03-31 03:34:15', '2016-03-31 03:34:15'), (271, '89', 'Bamburi', 20, NULL, '2016-03-31 03:34:15', '2016-03-31 03:34:15'), (272, '91', 'Ukunda', 20, NULL, '2016-03-31 03:34:16', '2016-03-31 03:34:16'), (273, '92', 'Digo', 20, NULL, '2016-03-31 03:34:16', '2016-03-31 03:34:16'), (274, '93', 'Kitale ', 20, NULL, '2016-03-31 03:34:16', '2016-03-31 03:34:16'), (275, '94', 'Mtwapa', 20, NULL, '2016-03-31 03:34:16', '2016-03-31 03:34:16'), (276, '95', 'Mombasa Nkrumah Road', 20, NULL, '2016-03-31 03:34:16', '2016-03-31 03:34:16'), (277, '96', 'Mombasa Jomo Kenyatta Avenue', 20, NULL, '2016-03-31 03:34:17', '2016-03-31 03:34:17'), (278, '97', 'Kapsabet ', 20, NULL, '2016-03-31 03:34:17', '2016-03-31 03:34:17'), (279, '98', 'Malindi', 20, NULL, '2016-03-31 03:34:17', '2016-03-31 03:34:17'), (280, '102', 'Kikuyu', 20, NULL, '2016-03-31 03:34:17', '2016-03-31 03:34:17'), (281, NULL, 'head office', 21, NULL, '2016-03-31 03:34:17', '2016-03-31 03:34:17'), (282, NULL, 'Kariobangi', 21, NULL, '2016-03-31 03:34:18', '2016-03-31 03:34:18'), (283, NULL, 'Kawangware', 21, NULL, '2016-03-31 03:34:18', '2016-03-31 03:34:18'), (284, NULL, 'Ngong Road', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (285, NULL, 'Kayole Branch', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (286, NULL, 'OTC', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (287, NULL, 'Thika Road', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (288, NULL, 'Kibera', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (289, NULL, 'Kimathi Street', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (290, NULL, 'Kitengela', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (291, NULL, 'Kitui', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (292, NULL, 'Emali', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (293, NULL, 'Wote', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (294, NULL, 'Mwingi', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (295, NULL, 'Makutano', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (296, NULL, 'Nkubu', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (297, NULL, 'Meru', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (298, NULL, 'Maua', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (299, NULL, 'Isiolo', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (300, NULL, 'Embu', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (301, NULL, 'Mwea', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (302, NULL, 'Machakos', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (303, NULL, 'Tala Plaza', 21, NULL, '2016-03-31 03:34:19', '2016-03-31 03:34:19'), (304, NULL, 'Kiserian', 21, NULL, '2016-03-31 03:34:20', '2016-03-31 03:34:20'), (305, NULL, 'Matuu', 21, NULL, '2016-03-31 03:34:20', '2016-03-31 03:34:20'), (306, NULL, 'Kiambu', 21, NULL, '2016-03-31 03:34:20', '2016-03-31 03:34:20'), (307, NULL, 'Muranga ', 21, NULL, '2016-03-31 03:34:20', '2016-03-31 03:34:20'), (308, NULL, 'Nanyuki', 21, NULL, '2016-03-31 03:34:20', '2016-03-31 03:34:20'), (309, NULL, 'Timau', 21, NULL, '2016-03-31 03:34:20', '2016-03-31 03:34:20'), (310, NULL, 'Thika', 21, NULL, '2016-03-31 03:34:20', '2016-03-31 03:34:20'), (311, NULL, 'Githunguri', 21, NULL, '2016-03-31 03:34:20', '2016-03-31 03:34:20'), (312, NULL, 'Kerugoya', 21, NULL, '2016-03-31 03:34:21', '2016-03-31 03:34:21'), (313, NULL, 'Nyeri', 21, NULL, '2016-03-31 03:34:21', '2016-03-31 03:34:21'), (314, NULL, 'Karatina', 21, NULL, '2016-03-31 03:34:21', '2016-03-31 03:34:21'), (315, NULL, 'Rongai', 21, NULL, '2016-03-31 03:34:21', '2016-03-31 03:34:21'), (316, NULL, 'Narumoru', 21, NULL, '2016-03-31 03:34:21', '2016-03-31 03:34:21'), (317, NULL, 'Bungoma', 21, NULL, '2016-03-31 03:34:21', '2016-03-31 03:34:21'), (318, NULL, 'Webuye', 21, NULL, '2016-03-31 03:34:21', '2016-03-31 03:34:21'), (319, NULL, 'Mumias', 21, NULL, '2016-03-31 03:34:21', '2016-03-31 03:34:21'), (320, NULL, 'Kakamega', 21, NULL, '2016-03-31 03:34:21', '2016-03-31 03:34:21'), (321, NULL, 'Busia', 21, NULL, '2016-03-31 03:34:21', '2016-03-31 03:34:21'), (322, NULL, 'Kimilili', 21, NULL, '2016-03-31 03:34:21', '2016-03-31 03:34:21'), (323, NULL, 'Kapenguria', 21, NULL, '2016-03-31 03:34:22', '2016-03-31 03:34:22'), (324, NULL, 'Bomet', 21, NULL, '2016-03-31 03:34:22', '2016-03-31 03:34:22'), (325, NULL, 'Litein', 21, NULL, '2016-03-31 03:34:22', '2016-03-31 03:34:22'), (326, NULL, 'Kericho', 21, NULL, '2016-03-31 03:34:22', '2016-03-31 03:34:22'), (327, NULL, 'Kapsabet', 21, NULL, '2016-03-31 03:34:23', '2016-03-31 03:34:23'), (328, NULL, 'Kitale', 21, NULL, '2016-03-31 03:34:23', '2016-03-31 03:34:23'), (329, NULL, 'Kabarnet', 21, NULL, '2016-03-31 03:34:23', '2016-03-31 03:34:23'), (330, NULL, 'Rware Shop', 21, NULL, '2016-03-31 03:34:23', '2016-03-31 03:34:23'), (331, NULL, 'Maralal', 21, NULL, '2016-03-31 03:34:23', '2016-03-31 03:34:23'), (332, NULL, 'Olenguruone', 21, NULL, '2016-03-31 03:34:23', '2016-03-31 03:34:23'), (333, NULL, 'Eldoret', 21, NULL, '2016-03-31 03:34:24', '2016-03-31 03:34:24'), (334, NULL, 'Rumuruti', 21, NULL, '2016-03-31 03:34:24', '2016-03-31 03:34:24'), (335, NULL, 'Nyahururu', 21, NULL, '2016-03-31 03:34:24', '2016-03-31 03:34:24'), (336, NULL, 'Nakuru', 21, NULL, '2016-03-31 03:34:24', '2016-03-31 03:34:24'), (337, NULL, '<NAME>', 21, NULL, '2016-03-31 03:34:24', '2016-03-31 03:34:24'), (338, NULL, 'Naivasha ', 21, NULL, '2016-03-31 03:34:24', '2016-03-31 03:34:24'), (339, NULL, 'Njambini', 21, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (340, NULL, 'Narok', 21, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (341, NULL, 'Molo', 21, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (342, NULL, 'Kinamba', 21, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (343, NULL, 'Njoro', 21, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (344, NULL, 'Mombasa Central', 21, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (345, NULL, 'Malindi', 21, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (346, NULL, 'Kengeleni', 21, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (347, '0', 'Head Office/koinange St. ', 1, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (348, NULL, 'Voi ', 21, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (349, '1', 'Westlands', 1, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (350, NULL, 'Changamwe', 21, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (351, '2', 'Industrial Area Branch ', 1, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (352, NULL, 'Kongowea ', 21, NULL, '2016-03-31 03:34:25', '2016-03-31 03:34:25'), (353, '3', 'Nkrumah Road Branch/mombasa', 1, NULL, '2016-03-31 03:34:26', '2016-03-31 03:34:26'), (354, NULL, 'Ukunda', 21, NULL, '2016-03-31 03:34:26', '2016-03-31 03:34:26'), (355, '4', 'Kisumu Branch ', 1, NULL, '2016-03-31 03:34:26', '2016-03-31 03:34:26'), (356, NULL, 'Mpeketoni', 21, NULL, '2016-03-31 03:34:26', '2016-03-31 03:34:26'), (357, '5', 'Eldoret Branch', 1, NULL, '2016-03-31 03:34:26', '2016-03-31 03:34:26'), (358, NULL, 'Kisumu', 21, NULL, '2016-03-31 03:34:26', '2016-03-31 03:34:26'), (359, '6', 'Meru Branch ', 1, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (360, NULL, 'Ugunja', 21, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (361, '7', 'Libra House ', 1, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (362, NULL, 'Bondo', 21, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (363, '8', 'Nakuru', 1, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (364, '0', 'Head Office', 22, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (365, '9', 'Lamu', 1, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (366, '0', 'Reinsurance Plaza Nairobi', 2, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (367, '1', 'Kimathi Street', 22, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (368, '1', 'Mombasa', 2, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (369, '2', 'Ind Area ', 22, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (370, '2', 'Westlands', 2, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (371, '3', 'Westlands ', 22, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (372, '3', 'Uhuru Highway', 2, NULL, '2016-03-31 03:34:27', '2016-03-31 03:34:27'), (373, '4', 'Lavington ', 22, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (374, '4', 'River Road', 2, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (375, '5', 'Nkrumah Road , Mombasa ', 22, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (376, '5', 'Thika ', 2, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (377, '6', 'Nakuru ', 22, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (378, '6', 'Kisumu ', 2, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (379, '7', 'Eldoret ', 22, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (380, '7', 'Ruaraka ', 2, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (381, '8', 'Monrovia Street ', 2, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (382, '8', 'Muthaiga ', 22, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (383, '9', 'Nakuru ', 2, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (384, '9', 'Nanyuki ', 22, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (385, '10', '<NAME> ', 2, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (386, '10', 'Thika ', 22, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (387, '11', 'Eldoret ', 2, NULL, '2016-03-31 03:34:28', '2016-03-31 03:34:28'), (388, '11', 'Gikomba ', 22, NULL, '2016-03-31 03:34:29', '2016-03-31 03:34:29'), (389, '12', 'Embakasi ', 2, NULL, '2016-03-31 03:34:29', '2016-03-31 03:34:29'), (390, '12', 'Ngong Road ', 22, NULL, '2016-03-31 03:34:29', '2016-03-31 03:34:29'), (391, '13', 'Kericho ', 2, NULL, '2016-03-31 03:34:29', '2016-03-31 03:34:29'), (392, '13', 'Meru ', 22, NULL, '2016-03-31 03:34:29', '2016-03-31 03:34:29'), (393, '14', '<NAME>', 2, NULL, '2016-03-31 03:34:29', '2016-03-31 03:34:29'), (394, '14', 'Nyali', 22, NULL, '2016-03-31 03:34:29', '2016-03-31 03:34:29'), (395, '15', 'Changamwe', 2, NULL, '2016-03-31 03:34:30', '2016-03-31 03:34:30'), (396, '1', 'Wabera Street ', 23, NULL, '2016-03-31 03:34:30', '2016-03-31 03:34:30'), (397, '2', 'Eastleigh 1 ', 23, NULL, '2016-03-31 03:34:30', '2016-03-31 03:34:30'), (398, '16', 'Bungoma', 2, NULL, '2016-03-31 03:34:30', '2016-03-31 03:34:30'), (399, '17', 'KISII', 2, NULL, '2016-03-31 03:34:30', '2016-03-31 03:34:30'), (400, '3', 'Mombasa 1 ', 23, NULL, '2016-03-31 03:34:30', '2016-03-31 03:34:30'), (401, '4', 'Garissa ', 23, NULL, '2016-03-31 03:34:30', '2016-03-31 03:34:30'), (402, '18', 'MERU', 2, NULL, '2016-03-31 03:34:30', '2016-03-31 03:34:30'), (403, '5', 'Eastleigh 2 - General Waruinge ', 23, NULL, '2016-03-31 03:34:31', '2016-03-31 03:34:31'), (404, '19', 'Kitengela', 2, NULL, '2016-03-31 03:34:31', '2016-03-31 03:34:31'), (405, '6', 'Malindi ', 23, NULL, '2016-03-31 03:34:31', '2016-03-31 03:34:31'), (406, '20', 'Nyali', 2, NULL, '2016-03-31 03:34:31', '2016-03-31 03:34:31'), (407, '7', 'Kisumu ', 23, NULL, '2016-03-31 03:34:31', '2016-03-31 03:34:31'), (408, '21', 'Galleria', 2, NULL, '2016-03-31 03:34:31', '2016-03-31 03:34:31'), (409, '22', 'Greenspan Mall', 2, NULL, '2016-03-31 03:34:32', '2016-03-31 03:34:32'), (410, '8', 'Kimathi Street ', 23, NULL, '2016-03-31 03:34:32', '2016-03-31 03:34:32'), (411, '9', 'Westlands ', 23, NULL, '2016-03-31 03:34:33', '2016-03-31 03:34:33'), (412, '23', 'Upper Hilll', 2, NULL, '2016-03-31 03:34:33', '2016-03-31 03:34:33'), (413, '10', 'South C ', 23, NULL, '2016-03-31 03:34:33', '2016-03-31 03:34:33'), (414, '24', 'Nanyuki', 2, NULL, '2016-03-31 03:34:34', '2016-03-31 03:34:34'), (415, '11', 'Industrial Area ', 23, NULL, '2016-03-31 03:34:34', '2016-03-31 03:34:34'), (416, '25', 'Lunga Lunga Road', 2, NULL, '2016-03-31 03:34:34', '2016-03-31 03:34:34'), (417, '12', 'Masalani ', 23, NULL, '2016-03-31 03:34:34', '2016-03-31 03:34:34'), (418, '26', 'Kenyatta Avenue', 2, NULL, '2016-03-31 03:34:34', '2016-03-31 03:34:34'), (419, '13', 'Habasweni ', 23, NULL, '2016-03-31 03:34:34', '2016-03-31 03:34:34'), (420, '27', 'Sameer Business Park', 2, NULL, '2016-03-31 03:34:34', '2016-03-31 03:34:34'), (421, '14', 'Wajir ', 23, NULL, '2016-03-31 03:34:34', '2016-03-31 03:34:34'), (422, '28', 'M<NAME>, Mombasa', 2, NULL, '2016-03-31 03:34:35', '2016-03-31 03:34:35'), (423, '15', 'Moyale ', 23, NULL, '2016-03-31 03:34:35', '2016-03-31 03:34:35'), (424, '29', 'Ongata Rongai II', 2, NULL, '2016-03-31 03:34:35', '2016-03-31 03:34:35'), (425, '16', 'Nakuru ', 23, NULL, '2016-03-31 03:34:35', '2016-03-31 03:34:35'), (426, '30', 'Gikomba', 2, NULL, '2016-03-31 03:34:35', '2016-03-31 03:34:35'), (427, '17', 'Mombasa 2 ', 23, NULL, '2016-03-31 03:34:35', '2016-03-31 03:34:35'), (428, '31', 'Githurai', 2, NULL, '2016-03-31 03:34:35', '2016-03-31 03:34:35'), (429, '32', 'Embu', 2, NULL, '2016-03-31 03:34:35', '2016-03-31 03:34:35'), (430, '18', '<NAME>', 23, NULL, '2016-03-31 03:34:35', '2016-03-31 03:34:35'), (431, '33', 'Gateway Mall', 2, NULL, '2016-03-31 03:34:35', '2016-03-31 03:34:35'), (432, '999', 'Head Office/clearing Center ', 23, NULL, '2016-03-31 03:34:35', '2016-03-31 03:34:35'), (433, '34', 'Kitale', 2, NULL, '2016-03-31 03:34:35', '2016-03-31 03:34:35'), (434, '0', 'Banda', 24, NULL, '2016-03-31 03:34:35', '2016-03-31 03:34:35'), (435, '35', 'South B', 2, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (436, '1', 'Mombasa ', 24, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (437, '36', 'Digo Road', 2, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (438, '2', 'Industrial Area ', 24, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (439, '0', 'Nairobi Main', 3, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (440, '3', 'Kimathi St.', 24, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (441, '2', 'Digo Road, Mombasa', 3, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (442, '4', 'Kisumu Branch ', 24, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (443, '4', 'Thika', 3, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (444, '5', 'Westlands ', 24, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (445, '5', 'Kisumu ', 3, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (446, '7', 'Parklands 3rd Avenue ', 24, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (447, '6', 'Sarit Centre ', 3, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (448, '1', 'Head Office ', 25, NULL, '2016-03-31 03:34:36', '2016-03-31 03:34:36'), (449, '7', 'Industrial Area', 3, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (450, '2', 'Westlands ', 25, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (451, '8', 'Eldoret', 3, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (452, '3', 'Mombasa ', 25, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (453, '9', 'Nakuru', 3, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (454, '4', 'Eldoret ', 25, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (455, '10', 'Kakamega', 3, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (456, '5', 'Kisumu ', 25, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (457, '11', 'Nyali Mombasa', 3, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (458, '6', 'Moi Ave ', 25, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (459, '0', 'Kenyatta Avenue , Nairobi ', 4, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (460, '7', 'Mombasa Road ', 25, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (461, '1', 'Nkrumah Road , Mombasa ', 4, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (462, '8', 'Nyali', 25, NULL, '2016-03-31 03:34:37', '2016-03-31 03:34:37'), (463, '2', 'Industrial Area ', 4, NULL, '2016-03-31 03:34:38', '2016-03-31 03:34:38'), (464, '9', 'Ngong Road', 25, NULL, '2016-03-31 03:34:38', '2016-03-31 03:34:38'), (465, '3', 'Westlands ', 4, NULL, '2016-03-31 03:34:38', '2016-03-31 03:34:38'), (466, '10', 'Nakuru', 25, NULL, '2016-03-31 03:34:38', '2016-03-31 03:34:38'), (467, '4', 'Kisumu', 4, NULL, '2016-03-31 03:34:38', '2016-03-31 03:34:38'), (468, '0', 'Head Office', 26, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (469, '5', 'Eldoret', 4, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (470, '1', 'Head Office - Vpc ', 5, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (471, '1', 'Kimathi Street', 26, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (472, '2', 'Kapsabet Branch ', 5, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (473, '2', 'Ind Area ', 26, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (474, '3', 'Eldoret Branch ', 5, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (475, '3', 'Westlands ', 26, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (476, '4', 'Embu Branch ', 5, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (477, '4', 'Lavington ', 26, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (478, '5', 'Murang A Branch ', 5, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (479, '5', 'Nkrumah Road , Mombasa ', 26, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (480, '6', 'Kapenguria Branch ', 5, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (481, '6', 'Nakuru ', 26, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (482, '7', 'Kericho Branch ', 5, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (483, '7', 'Eldoret ', 26, NULL, '2016-03-31 03:34:39', '2016-03-31 03:34:39'), (484, '8', 'Kisii Branch ', 5, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (485, '8', 'Muthaiga ', 26, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (486, '9', 'Kisumu Branch ', 5, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (487, '9', 'Nanyuki ', 26, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (488, '10', 'South C Branch ', 5, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (489, '10', 'Thika ', 26, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (490, '11', 'Limuru Branch ', 5, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (491, '11', 'Gikomba ', 26, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (492, '12', 'Malindi Branch ', 5, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (493, '12', 'Ngong Road ', 26, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (494, '13', 'Meru Branch ', 5, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (495, '13', 'Meru ', 26, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (496, '14', 'Eastleigh Branch ', 5, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (497, '14', 'Nyali', 26, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (498, '15', 'Kitui Branch ', 5, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (499, '15', 'Sky Park', 26, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (500, '16', 'Nkrumah Road Branch ', 5, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (501, '16', 'Karen', 26, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (502, '17', 'Garissa Branch ', 5, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (503, '0', 'Head Office ', 27, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (504, '18', 'Nyamira Branch ', 5, NULL, '2016-03-31 03:34:40', '2016-03-31 03:34:40'), (505, '1', 'Central Clearing Centre ', 27, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (506, '19', 'Kilifi Branch ', 5, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (507, '2', 'Upperhill ', 27, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (508, '20', 'Office Park Westlands ', 5, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (509, '3', 'Eastleigh ', 27, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (510, '21', 'Barclaycard Operations ', 5, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (511, '4', 'Kenyatta Avenue ', 27, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (512, '22', 'Paymants And International Services ', 5, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (513, '5', 'Mombasa ', 27, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (514, '23', 'Gilgil Branch ', 5, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (515, '6', 'Garissa ', 27, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (516, '24', 'Thika Road Mall', 5, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (517, '7', 'Lamu ', 27, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (518, '26', 'Kakamega Branch ', 5, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (519, '8', 'Malindi ', 27, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (520, '27', 'Nakuru East ', 5, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (521, '9', 'Muthaiga ', 27, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (522, '28', 'Buruburu ', 5, NULL, '2016-03-31 03:34:41', '2016-03-31 03:34:41'), (523, '10', 'Bondeni ', 27, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (524, '29', 'Bomet ', 5, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (525, '11', 'Eastleigh 7th Street', 27, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (526, '30', 'Nyeri Branch ', 5, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (527, '12', 'Eastleigh Athumani Kipanga Street', 27, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (528, '31', 'Thika Branch ', 5, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (529, '13', 'Westlands', 27, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (530, '32', 'Port Mombasa ', 5, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (531, '14', 'Industrial Area', 27, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (532, '33', 'Gikomba ', 5, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (533, '15', 'Jomo Kenyatta Avenue', 27, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (534, '34', 'Kawangware ', 5, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (535, '16', 'Bombululu', 27, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (536, '35', 'Mbale ', 5, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (537, '17', 'Mombasa Road', 27, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (538, '36', 'Plaza Premier Centre ', 5, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (539, '0', 'Head Office ', 28, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (540, '37', 'River Road Branch ', 5, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (541, '1', 'Mombasa ', 28, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (542, '38', 'Chomba House-river Road ', 5, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (543, '2', 'Industrial Area ', 28, NULL, '2016-03-31 03:34:42', '2016-03-31 03:34:42'), (544, '39', 'Mumias Branch ', 5, NULL, '2016-03-31 03:34:43', '2016-03-31 03:34:43'), (545, '3', 'Westlands ', 28, NULL, '2016-03-31 03:34:43', '2016-03-31 03:34:43'), (546, '40', 'Machakos Branch ', 5, NULL, '2016-03-31 03:34:43', '2016-03-31 03:34:43'), (547, '4', 'Nyali', 28, NULL, '2016-03-31 03:34:43', '2016-03-31 03:34:43'), (548, '41', 'Narok Branch ', 5, NULL, '2016-03-31 03:34:43', '2016-03-31 03:34:43'), (549, '46', 'Mombasa ', 29, NULL, '2016-03-31 03:34:43', '2016-03-31 03:34:43'), (550, '42', 'Isiolo Branch ', 5, NULL, '2016-03-31 03:34:43', '2016-03-31 03:34:43'), (551, '47', 'Malindi ', 29, NULL, '2016-03-31 03:34:43', '2016-03-31 03:34:43'), (552, '43', 'Ngong Branch ', 5, NULL, '2016-03-31 03:34:43', '2016-03-31 03:34:43'), (553, '48', 'Kimathi Street ', 29, NULL, '2016-03-31 03:34:43', '2016-03-31 03:34:43'), (554, '44', 'Maua Branch ', 5, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (555, '49', 'Kenyatta Avenue ', 29, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (556, '45', 'Hurlingham Branch ', 5, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (557, '86', 'Kisumu ', 29, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (558, '46', 'Makupa Branch ', 5, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (559, '108', 'Industrial Area', 29, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (560, '47', 'Development House Branch ', 5, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (561, '109', 'HBL Westlands', 29, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (562, '48', 'Bungoma ', 5, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (563, '16', 'Kitengela', 30, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (564, '49', 'Lavington Branch ', 5, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (565, '17', 'Naivasha', 30, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (566, '50', 'Tala ', 5, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (567, '100', 'Head Office', 30, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (568, '51', 'Homa Bay Branch ', 5, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (569, '200', 'Rehani House', 30, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (570, '52', 'Ongata Rongai Branch ', 5, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (571, '210', 'Kenyatta Market', 30, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (572, '53', 'Othaya Branch ', 5, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (573, '220', 'Gill House', 30, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (574, '54', 'Voi Branch ', 5, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (575, '230', 'Buru Buru', 30, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (576, '55', 'Muthaiga Branch ', 5, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (577, '260', 'Thika Road Mall', 30, NULL, '2016-03-31 03:34:44', '2016-03-31 03:34:44'), (578, '56', 'Barclays Advisory And Reg. Services ', 5, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (579, '270', 'Sameer Business Park', 30, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (580, '57', 'Githunguri Branch ', 5, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (581, '280', 'Westlands', 30, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (582, '58', 'Webuye Branch ', 5, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (583, '300', 'Mombasa', 30, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (584, '59', 'Kasarani Branch ', 5, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (585, '310', 'Nyali ', 30, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (586, '60', 'Chuka Branch ', 5, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (587, '400', 'Nakuru', 30, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (588, '61', 'Nakumatt-westgate Branch ', 5, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (589, '410', 'Eldoret', 30, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (590, '62', 'Kabarnet Branch ', 5, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (591, '500', 'Thika', 30, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (592, '63', 'Kerugoya Branch ', 5, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (593, '510', 'Nyeri', 30, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (594, '64', 'Taveta Branch ', 5, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (595, '520', 'Meru', 30, NULL, '2016-03-31 03:34:45', '2016-03-31 03:34:45'), (596, '65', 'Karen Branch ', 5, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (597, '600', 'Kisumu', 30, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (598, '66', 'Wundanyi Branch ', 5, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (599, '0', 'Kenyatta Avenue ', 31, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (600, '67', 'Ruaraka Branch ', 5, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (601, '1', '2nd Nong Avenue ', 31, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (602, '68', 'Pamoja Branch ', 5, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (603, '2', 'Sarit Centre ', 31, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (604, '69', 'Wote Branch ', 5, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (605, '3', 'Head Office ', 31, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (606, '70', 'Enterprise Road Branch ', 5, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (607, '4', 'Biashara St ', 31, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (608, '71', 'Nakumatt Meru Branch ', 5, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (609, '5', 'Mombasa ', 31, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'); INSERT INTO `bank_branches` (`id`, `branch_code`, `bank_branch_name`, `bank_id`, `organization_id`, `created_at`, `updated_at`) VALUES (610, '6', 'Industrial Area ', 31, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (611, '72', 'Juja Branch ', 5, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (612, '7', 'Kisumu ', 31, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (613, '73', 'Westlands Branch ', 5, NULL, '2016-03-31 03:34:46', '2016-03-31 03:34:46'), (614, '8', 'Karen ', 31, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (615, '74', 'Kikuyu Branch ', 5, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (616, '9', 'Panari Centre ', 31, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (617, '75', 'Moi Avenue-nairobi Branch ', 5, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (618, '10', 'Parklands ', 31, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (619, '76', 'Kenyatta Avenue ', 5, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (620, '11', 'Wilson Airport ', 31, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (621, '77', 'Barcalys Plaza Corporate Service Centre ', 5, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (622, '12', 'Ongata Rongai ', 31, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (623, '78', 'Kiriaini Branch ', 5, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (624, '13', 'South C Shopping Centre ', 31, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (625, '79', 'Butere Road Branch ', 5, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (626, '14', 'Nyali Cinemax ', 31, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (627, '80', 'Migori Branch ', 5, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (628, '15', 'Langata Link ', 31, NULL, '2016-03-31 03:34:47', '2016-03-31 03:34:47'), (629, '81', 'Digo Branch ', 5, NULL, '2016-03-31 03:34:48', '2016-03-31 03:34:48'), (630, '16', 'Lavington ', 31, NULL, '2016-03-31 03:34:48', '2016-03-31 03:34:48'), (631, '82', 'Haile Selassie Avenue Branch ', 5, NULL, '2016-03-31 03:34:48', '2016-03-31 03:34:48'), (632, '17', 'Eldoret ', 31, NULL, '2016-03-31 03:34:48', '2016-03-31 03:34:48'), (633, '83', 'Nairobi University Branch ', 5, NULL, '2016-03-31 03:34:48', '2016-03-31 03:34:48'), (634, '18', 'NAKURU', 31, NULL, '2016-03-31 03:34:48', '2016-03-31 03:34:48'), (635, '84', 'Bunyala Road ', 5, NULL, '2016-03-31 03:34:48', '2016-03-31 03:34:48'), (636, '19', 'Riversid Drive Branch', 31, NULL, '2016-03-31 03:34:48', '2016-03-31 03:34:48'), (637, '86', 'Nairobi West Branch ', 5, NULL, '2016-03-31 03:34:48', '2016-03-31 03:34:48'), (638, '20', 'Kisii', 31, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (639, '87', 'Parklands ', 5, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (640, '21', 'Changamwe', 31, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (641, '88', 'Busia ', 5, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (642, '22', 'Malindi', 31, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (643, '89', 'Pangani Branch ', 5, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (644, '23', 'Nyeri', 31, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (645, '90', 'Abc Premier Life Centre ', 5, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (646, '24', 'Thika', 31, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (647, '93', 'Kariobangi Branch ', 5, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (648, '25', 'Gigiri', 31, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (649, '94', 'Queensway House Branch ', 5, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (650, '26', 'Mtwapa', 31, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (651, '95', 'Nakumatt Embakasi Branch ', 5, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (652, '27', '<NAME>', 31, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (653, '96', 'Barclays Merchant Finance Ltd. ', 5, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (654, '28', 'Kitale', 31, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (655, '97', 'Barclays Securities Services (k ', 5, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (656, '29', '<NAME>', 31, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (657, '100', 'Diani Branch ', 5, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (658, '30', 'Yaya Centre', 31, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (659, '103', 'Nairobi J.k.i.a Branch ', 5, NULL, '2016-03-31 03:34:49', '2016-03-31 03:34:49'), (660, '31', 'I&M Bank Ltd Gateway Mall, Syokimau', 31, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (661, '105', 'Village Market - Premier Life Centre ', 5, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (662, '32', 'Garden City Mall', 31, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (663, '106', 'Sarit Centre - Premier Life Centre ', 5, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (664, '98', 'Card Center ', 31, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (665, '109', 'Yaya Centre- Premier Life Centre ', 5, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (666, '1', 'IPS', 32, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (667, '111', 'Naivasha Branch ', 5, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (668, '2', 'Mombasa ', 32, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (669, '113', 'Market Branch ', 5, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (670, '3', 'Upper Hill ', 32, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (671, '114', 'Changamwe Branch ', 5, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (672, '4', 'Parklands ', 32, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (673, '117', 'Rahimtulla Trust Towers - Premier Life Centre ', 5, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (674, '5', 'Malindi ', 32, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (675, '125', 'Nakuru West Branch ', 5, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (676, '6', 'Industrial Area ', 32, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (677, '128', 'Bamburi Branch ', 5, NULL, '2016-03-31 03:34:50', '2016-03-31 03:34:50'), (678, '7', 'Watamu ', 32, NULL, '2016-03-31 03:34:51', '2016-03-31 03:34:51'), (679, '130', 'Harambee Ave - Premier Life Centre ', 5, NULL, '2016-03-31 03:34:51', '2016-03-31 03:34:51'), (680, '8', 'Diani ', 32, NULL, '2016-03-31 03:34:51', '2016-03-31 03:34:51'), (681, '132', 'Kitale Branch ', 5, NULL, '2016-03-31 03:34:51', '2016-03-31 03:34:51'), (682, '9', 'Kilifi ', 32, NULL, '2016-03-31 03:34:51', '2016-03-31 03:34:51'), (683, '139', 'Nyahururu Branch ', 5, NULL, '2016-03-31 03:34:51', '2016-03-31 03:34:51'), (684, '10', 'Eldoret ', 32, NULL, '2016-03-31 03:34:51', '2016-03-31 03:34:51'), (685, '144', 'Treasury Operations', 5, NULL, '2016-03-31 03:34:51', '2016-03-31 03:34:51'), (686, '11', 'Karen ', 32, NULL, '2016-03-31 03:34:51', '2016-03-31 03:34:51'), (687, '145', 'Moi Avenue Mombasa -  Premier Life Centre ', 5, NULL, '2016-03-31 03:34:51', '2016-03-31 03:34:51'), (688, '12', 'Thika ', 32, NULL, '2016-03-31 03:34:51', '2016-03-31 03:34:51'), (689, '151', 'Cash Monitoring Unit ', 5, NULL, '2016-03-31 03:34:51', '2016-03-31 03:34:51'), (690, '14', 'Changamwe ', 32, NULL, '2016-03-31 03:34:52', '2016-03-31 03:34:52'), (691, '190', 'Nanyuki Branch ', 5, NULL, '2016-03-31 03:34:52', '2016-03-31 03:34:52'), (692, '206', 'Karatina Branch ', 5, NULL, '2016-03-31 03:34:52', '2016-03-31 03:34:52'), (693, '15', 'Riverside ', 32, NULL, '2016-03-31 03:34:52', '2016-03-31 03:34:52'), (694, '220', '<NAME> -  Premier Life Centre ', 5, NULL, '2016-03-31 03:34:52', '2016-03-31 03:34:52'), (695, '16', 'Likoni ', 32, NULL, '2016-03-31 03:34:52', '2016-03-31 03:34:52'), (696, '273', 'Consumer Operations ', 5, NULL, '2016-03-31 03:34:52', '2016-03-31 03:34:52'), (697, '17', '<NAME>', 32, NULL, '2016-03-31 03:34:52', '2016-03-31 03:34:52'), (698, '18', 'Village Market', 32, NULL, '2016-03-31 03:34:52', '2016-03-31 03:34:52'), (699, '300', 'Finance Department ', 5, NULL, '2016-03-31 03:34:52', '2016-03-31 03:34:52'), (700, '19', 'Bamburi', 32, NULL, '2016-03-31 03:34:52', '2016-03-31 03:34:52'), (701, '337', 'Documents And Securities  Dsc ', 5, NULL, '2016-03-31 03:34:52', '2016-03-31 03:34:52'), (702, '20', 'Junction Mall', 32, NULL, '2016-03-31 03:34:53', '2016-03-31 03:34:53'), (703, '340', 'Retail Credit Team ', 5, NULL, '2016-03-31 03:34:53', '2016-03-31 03:34:53'), (704, '21', 'Greenspan mall', 32, NULL, '2016-03-31 03:34:53', '2016-03-31 03:34:53'), (705, '354', 'Credit Operations ', 5, NULL, '2016-03-31 03:34:53', '2016-03-31 03:34:53'), (706, '22', 'Westside Mall', 32, NULL, '2016-03-31 03:34:53', '2016-03-31 03:34:53'), (707, '400', 'Head office', 5, NULL, '2016-03-31 03:34:53', '2016-03-31 03:34:53'), (708, '23', 'Kenyatta Street Eldoret', 32, NULL, '2016-03-31 03:34:53', '2016-03-31 03:34:53'), (709, '138', 'Malindi -  Premier Life Centre ', 5, NULL, '2016-03-31 03:34:53', '2016-03-31 03:34:53'), (710, '24', 'Westlands', 32, NULL, '2016-03-31 03:34:53', '2016-03-31 03:34:53'), (711, '139', 'Nyahururu Branch ', 5, NULL, '2016-03-31 03:34:53', '2016-03-31 03:34:53'), (712, '26', 'Highridge Branch', 32, NULL, '2016-03-31 03:34:54', '2016-03-31 03:34:54'), (713, '142', 'Nakuru West - Premier Life Centre ', 5, NULL, '2016-03-31 03:34:54', '2016-03-31 03:34:54'), (714, '27', 'Nyali Cinemax', 32, NULL, '2016-03-31 03:34:54', '2016-03-31 03:34:54'), (715, '144', 'Treasury Operations', 5, NULL, '2016-03-31 03:34:54', '2016-03-31 03:34:54'), (716, '28', 'Garden City', 32, NULL, '2016-03-31 03:34:54', '2016-03-31 03:34:54'), (717, '145', 'Moi Avenue Mombasa -  Premier Life Centre ', 5, NULL, '2016-03-31 03:34:54', '2016-03-31 03:34:54'), (718, '0', 'Head Office ', 33, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (719, '146', 'Karen -  Premier Life Center ', 5, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (720, '1', 'Koinange Street', 33, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (721, '148', 'Muthaiga Premier ', 5, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (722, '100', 'Kiongozi', 33, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (723, '151', 'Cash Monitoring Unit ', 5, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (724, '101', 'Kayole', 33, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (725, '156', 'Nakuru Local Business Club ', 5, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (726, '102', 'Eastleigh', 33, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (727, '158', 'Queensway Business Suite ', 5, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (728, '105', 'Kawangware', 33, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (729, '159', 'Digo Prestige ', 5, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (730, '106', 'Kibera', 33, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (731, '162', 'Nkrumah Road Corporate Service Centre ', 5, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (732, '107', 'Kariobangi', 33, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (733, '165', 'Queensway Premier ', 5, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (734, '111', 'Central Clearing Center', 33, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (735, '179', 'Westgate Premier ', 5, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (736, '114', 'Funzi Road', 33, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (737, '190', 'Nanyuki Branch ', 5, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (738, '115', 'Ngong Road', 33, NULL, '2016-03-31 03:34:55', '2016-03-31 03:34:55'), (739, '206', 'Karatina Branch ', 5, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (740, '116', 'Kirinyaga Road', 33, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (741, '208', 'Plaza Premier Life Centre ', 5, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (742, '209', 'Machakos', 33, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (743, '220', '<NAME> -  Premier Life Centre ', 5, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (744, '210', 'Mtwapa', 33, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (745, '273', 'Consumer Operations ', 5, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (746, '213', 'Kiritiri', 33, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (747, '287', 'Corporate Credit Team ', 5, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (748, '301', 'Thika', 33, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (749, '290', 'Barclays Business Support  Bbs ', 5, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (750, '303', 'Muranga ', 33, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (751, '300', 'Finance Department ', 5, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (752, '306', 'Kikuyu', 33, NULL, '2016-03-31 03:34:56', '2016-03-31 03:34:56'), (753, '323', 'Tba ', 5, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (754, '307', 'Banana', 33, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (755, '337', 'Documents And Securities  Dsc ', 5, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (756, '310', 'Utawala', 33, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (757, '340', 'Retail Credit Team ', 5, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (758, '316', 'Nyeri', 33, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (759, '354', 'Credit Operations ', 5, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (760, '402', 'Kisumu', 33, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (761, '400', 'Head office', 5, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (762, '502', 'O<NAME>', 33, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (763, '0', 'Head Office ', 6, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (764, '503', 'Kitengela', 33, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (765, '1', 'Head Office ', 6, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (766, '507', 'Nakuru', 33, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (767, '2', 'Mombasa ', 6, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (768, '603', 'Mombasa', 33, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (769, '3', 'Kisumu ', 6, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (770, '91', 'Eastleigh ', 34, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (771, '4', 'Eldoret ', 6, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (772, '92', 'KCB CPC', 34, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (773, '0', 'CFC Stanbic Head Office', 7, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (774, '94', 'Head Office ', 34, NULL, '2016-03-31 03:34:57', '2016-03-31 03:34:57'), (775, '2', '<NAME> ', 7, NULL, '2016-03-31 03:34:58', '2016-03-31 03:34:58'), (776, '95', 'Wote ', 34, NULL, '2016-03-31 03:34:58', '2016-03-31 03:34:58'), (777, '3', 'Digo road', 7, NULL, '2016-03-31 03:34:58', '2016-03-31 03:34:58'), (778, '96', 'Head Office Finance', 34, NULL, '2016-03-31 03:34:58', '2016-03-31 03:34:58'), (779, '4', 'Waiyaki Way ', 7, NULL, '2016-03-31 03:34:58', '2016-03-31 03:34:58'), (780, '100', 'Moi Avenue Nairobi ', 34, NULL, '2016-03-31 03:34:58', '2016-03-31 03:34:58'), (781, '5', 'Industrial Area ', 7, NULL, '2016-03-31 03:34:58', '2016-03-31 03:34:58'), (782, '101', 'Kipande House ', 34, NULL, '2016-03-31 03:34:58', '2016-03-31 03:34:58'), (783, '6', 'Harambee Avenue ', 7, NULL, '2016-03-31 03:34:58', '2016-03-31 03:34:58'), (784, '102', 'Treasury Sq Mombasa ', 34, NULL, '2016-03-31 03:34:59', '2016-03-31 03:34:59'), (785, '7', 'Chiromo Road ', 7, NULL, '2016-03-31 03:34:59', '2016-03-31 03:34:59'), (786, '103', 'Nakuru ', 34, NULL, '2016-03-31 03:34:59', '2016-03-31 03:34:59'), (787, '8', 'International House ', 7, NULL, '2016-03-31 03:34:59', '2016-03-31 03:34:59'), (788, '104', 'Kicc ', 34, NULL, '2016-03-31 03:34:59', '2016-03-31 03:34:59'), (789, '10', 'Upper Hill ', 7, NULL, '2016-03-31 03:34:59', '2016-03-31 03:34:59'), (790, '105', 'Kisumu ', 34, NULL, '2016-03-31 03:34:59', '2016-03-31 03:34:59'), (791, '11', 'Naivasha ', 7, NULL, '2016-03-31 03:34:59', '2016-03-31 03:34:59'), (792, '106', 'Kericho ', 34, NULL, '2016-03-31 03:34:59', '2016-03-31 03:34:59'), (793, '12', 'Wesgate ', 7, NULL, '2016-03-31 03:34:59', '2016-03-31 03:34:59'), (794, '107', '<NAME> ', 34, NULL, '2016-03-31 03:34:59', '2016-03-31 03:34:59'), (795, '13', 'Kisumu ', 7, NULL, '2016-03-31 03:35:00', '2016-03-31 03:35:00'), (796, '108', 'Thika ', 34, NULL, '2016-03-31 03:35:00', '2016-03-31 03:35:00'), (797, '14', 'Nakuru ', 7, NULL, '2016-03-31 03:35:00', '2016-03-31 03:35:00'), (798, '109', 'Eldoret ', 34, NULL, '2016-03-31 03:35:00', '2016-03-31 03:35:00'), (799, '15', 'Thika ', 7, NULL, '2016-03-31 03:35:00', '2016-03-31 03:35:00'), (800, '110', 'Kakamega ', 34, NULL, '2016-03-31 03:35:00', '2016-03-31 03:35:00'), (801, '17', 'Nanyuki ', 7, NULL, '2016-03-31 03:35:00', '2016-03-31 03:35:00'), (802, '111', '<NAME> ', 34, NULL, '2016-03-31 03:35:00', '2016-03-31 03:35:00'), (803, '18', 'Meru', 7, NULL, '2016-03-31 03:35:00', '2016-03-31 03:35:00'), (804, '112', 'Nyeri ', 34, NULL, '2016-03-31 03:35:00', '2016-03-31 03:35:00'), (805, '19', 'Buruburu', 7, NULL, '2016-03-31 03:35:00', '2016-03-31 03:35:00'), (806, '113', 'Industrial Area Nairobi ', 34, NULL, '2016-03-31 03:35:01', '2016-03-31 03:35:01'), (807, '20', 'Gikomba', 7, NULL, '2016-03-31 03:35:01', '2016-03-31 03:35:01'), (808, '114', 'River Road ', 34, NULL, '2016-03-31 03:35:01', '2016-03-31 03:35:01'), (809, '21', 'Garden city', 7, NULL, '2016-03-31 03:35:01', '2016-03-31 03:35:01'), (810, '115', 'Muranga ', 34, NULL, '2016-03-31 03:35:01', '2016-03-31 03:35:01'), (811, '22', 'ELDORET', 7, NULL, '2016-03-31 03:35:01', '2016-03-31 03:35:01'), (812, '116', 'Embu ', 34, NULL, '2016-03-31 03:35:01', '2016-03-31 03:35:01'), (813, '23', 'KAREN', 7, NULL, '2016-03-31 03:35:01', '2016-03-31 03:35:01'), (814, '117', 'Kangema ', 34, NULL, '2016-03-31 03:35:01', '2016-03-31 03:35:01'), (815, '24', 'Kisii', 7, NULL, '2016-03-31 03:35:01', '2016-03-31 03:35:01'), (816, '119', 'Kiambu ', 34, NULL, '2016-03-31 03:35:01', '2016-03-31 03:35:01'), (817, '25', 'Warwick', 7, NULL, '2016-03-31 03:35:01', '2016-03-31 03:35:01'), (818, '120', 'Karatina ', 34, NULL, '2016-03-31 03:35:01', '2016-03-31 03:35:01'), (819, '26', 'Private Clients', 7, NULL, '2016-03-31 03:35:02', '2016-03-31 03:35:02'), (820, '121', 'Siaya ', 34, NULL, '2016-03-31 03:35:02', '2016-03-31 03:35:02'), (821, '27', 'Nyali', 7, NULL, '2016-03-31 03:35:02', '2016-03-31 03:35:02'), (822, '122', 'Nyahururu ', 34, NULL, '2016-03-31 03:35:02', '2016-03-31 03:35:02'), (823, '28', 'Malindi', 7, NULL, '2016-03-31 03:35:02', '2016-03-31 03:35:02'), (824, '123', 'Meru ', 34, NULL, '2016-03-31 03:35:02', '2016-03-31 03:35:02'), (825, '124', 'Mumias ', 34, NULL, '2016-03-31 03:35:03', '2016-03-31 03:35:03'), (826, '999', 'Central Processing H/o ', 7, NULL, '2016-03-31 03:35:03', '2016-03-31 03:35:03'), (827, '125', 'Nanyuki ', 34, NULL, '2016-03-31 03:35:03', '2016-03-31 03:35:03'), (828, '0', 'Head Office', 8, NULL, '2016-03-31 03:35:03', '2016-03-31 03:35:03'), (829, '127', 'Moyale ', 34, NULL, '2016-03-31 03:35:04', '2016-03-31 03:35:04'), (830, '1', 'City Centre Branch', 8, NULL, '2016-03-31 03:35:05', '2016-03-31 03:35:05'), (831, '129', 'Kikuyu ', 34, NULL, '2016-03-31 03:35:05', '2016-03-31 03:35:05'), (832, '3', 'Village Market ', 8, NULL, '2016-03-31 03:35:05', '2016-03-31 03:35:05'), (833, '4', 'Mombasa Moi Avenue', 8, NULL, '2016-03-31 03:35:05', '2016-03-31 03:35:05'), (834, '130', 'Tala ', 34, NULL, '2016-03-31 03:35:05', '2016-03-31 03:35:05'), (835, '5', 'Hurlingham ', 8, NULL, '2016-03-31 03:35:05', '2016-03-31 03:35:05'), (836, '131', 'Kajiado ', 34, NULL, '2016-03-31 03:35:05', '2016-03-31 03:35:05'), (837, '133', 'KCB Custody services', 34, NULL, '2016-03-31 03:35:05', '2016-03-31 03:35:05'), (838, '6', 'Eastleigh ', 8, NULL, '2016-03-31 03:35:05', '2016-03-31 03:35:05'), (839, '7', 'Parklands ', 8, NULL, '2016-03-31 03:35:05', '2016-03-31 03:35:05'), (840, '134', 'Matuu ', 34, NULL, '2016-03-31 03:35:05', '2016-03-31 03:35:05'), (841, '8', 'Riverside Mews ', 8, NULL, '2016-03-31 03:35:05', '2016-03-31 03:35:05'), (842, '135', 'Kitui ', 34, NULL, '2016-03-31 03:35:05', '2016-03-31 03:35:05'), (843, '136', 'Mvita ', 34, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (844, '10', 'Thika ', 8, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (845, '137', '<NAME> ', 34, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (846, '11', 'Nakuru ', 8, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (847, '139', '<NAME> ', 34, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (848, '12', 'Donholm ', 8, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (849, '13', '<NAME> ', 8, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (850, '140', 'Marsabit ', 34, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (851, '141', '<NAME> ', 34, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (852, '14', '<NAME> ', 8, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (853, '142', 'Loitokitok ', 34, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (854, '15', 'Kisumu ', 8, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (855, '143', '<NAME> ', 34, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (856, '16', 'Eldoret', 8, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (857, '144', 'Lodwar ', 34, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (858, '17', 'Diamond Plaza', 8, NULL, '2016-03-31 03:35:06', '2016-03-31 03:35:06'), (859, '145', 'Un Gigiri ', 34, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (860, '18', 'Windsor', 8, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (861, '146', 'Hola ', 34, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (862, '19', 'Malindi', 8, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (863, '147', 'Ruiru ', 34, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (864, '20', 'Embakasi', 8, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (865, '148', 'Mwingi ', 34, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (866, '21', 'Upper Hill', 8, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (867, '149', 'Kitale ', 34, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (868, '22', 'Nyali', 8, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (869, '150', 'Mandera ', 34, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (870, '23', 'Buru Buru', 8, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (871, '151', 'Kapenguria ', 34, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (872, '24', 'Strathmore', 8, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (873, '152', 'Kabarnet ', 34, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (874, '25', 'Kisii', 8, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (875, '153', 'Wajir ', 34, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (876, '26', 'Virtual ', 8, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (877, '154', 'Maralal ', 34, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (878, '27', 'Rafiki DTM Clearing Center', 8, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (879, '155', 'Limuru ', 34, NULL, '2016-03-31 03:35:07', '2016-03-31 03:35:07'), (880, '28', 'Chase Xpress - Ngong Road', 8, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (881, '157', 'Ukunda ', 34, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (882, '29', 'Chase Elite ABC Place', 8, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (883, '158', 'Iten ', 34, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (884, '30', 'Sameer Business Park', 8, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (885, '159', 'Gilgil ', 34, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (886, '31', 'Mtwapa', 8, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (887, '161', 'Ongata Rongai ', 34, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (888, '32', 'Ongata Rongai ', 8, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (889, '162', 'Kitengela ', 34, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (890, '33', 'Westlands', 8, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (891, '163', 'Eldama Ravine ', 34, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (892, '34', 'Machakos', 8, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (893, '164', 'Kibwezi ', 34, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (894, '35', 'Mombasa Old Town', 8, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (895, '166', 'Kapsabet ', 34, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (896, '36', 'River Road', 8, NULL, '2016-03-31 03:35:08', '2016-03-31 03:35:08'), (897, '167', 'University Way ', 34, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (898, '37', '<NAME>', 8, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (899, '168', 'KCB Eldoret West', 34, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (900, '38', 'Chase Xpress Dagoretti Corner', 8, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (901, '169', 'Garissa ', 34, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (902, '39', 'Chase Xpress Madaraka Corner', 8, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (903, '173', 'Lamu ', 34, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (904, '40', 'Kitale', 8, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (905, '174', 'Kilifi ', 34, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (906, '41', 'Kimathi', 8, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (907, '175', 'Milimani ', 34, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (908, '42', 'Narok', 8, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (909, '176', 'Nyamira ', 34, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (910, '43', 'SACCO Processing Centre', 8, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (911, '177', 'Mukuruweini ', 34, NULL, '2016-03-31 03:35:09', '2016-03-31 03:35:09'), (912, '44', 'Garissa', 8, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (913, '180', 'Village Market ', 34, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (914, '45', 'KPA', 8, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (915, '181', 'Bomet ', 34, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (916, '46', 'Lavington', 8, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (917, '183', 'Mbale ', 34, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (918, '47', 'Kericho', 8, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (919, '184', 'Narok ', 34, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (920, '48', 'Karen', 8, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (921, '185', 'Othaya ', 34, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (922, '49', 'Kilimani', 8, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (923, '186', 'Voi ', 34, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (924, '50', 'Kasuku Centre', 8, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (925, '188', 'Webuye ', 34, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (926, '51', 'Kilifi', 8, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (927, '189', 'Sotik ', 34, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (928, '52', '<NAME>', 8, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (929, '190', 'Naivasha ', 34, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (930, '53', 'Ruaka', 8, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (931, '191', 'Kisii ', 34, NULL, '2016-03-31 03:35:10', '2016-03-31 03:35:10'), (932, '54', 'Garden City', 8, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (933, '192', 'Migori ', 34, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (934, '0', 'Head Office , Nairobi ', 9, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (935, '193', 'Githunguri ', 34, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (936, '400', 'Mombasa ', 9, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (937, '194', 'Machakos ', 34, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (938, '500', 'Gigiri Agency ', 9, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (939, '195', 'Kerugoya ', 34, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (940, '700', 'Kisumu ', 9, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (941, '196', 'Chuka ', 34, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (942, '0', 'Head Office', 10, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (943, '197', 'Bungoma ', 34, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (944, '1', 'Upper Hill', 10, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (945, '198', 'Wundanyi ', 34, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (946, '2', 'Wabera Street', 10, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (947, '199', 'Malindi ', 34, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (948, '3', '<NAME>', 10, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (949, '201', 'Capital Hill ', 34, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (950, '4', 'Westlands Branch', 10, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (951, '202', 'Karen ', 34, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (952, '5', 'Industrial Area ', 10, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (953, '203', 'Lokichogio ', 34, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (954, '6', 'Mamlaka', 10, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (955, '204', 'Gateway Msa Road ', 34, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (956, '7', 'Village Market', 10, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (957, '205', 'Buruburu ', 34, NULL, '2016-03-31 03:35:11', '2016-03-31 03:35:11'), (958, '8', 'Cargo Centre', 10, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (959, '206', 'Chogoria ', 34, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (960, '9', 'Park Side', 10, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (961, '207', 'Kangare ', 34, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (962, '16', '<NAME> ', 10, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (963, '208', 'Kianyaga ', 34, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (964, '17', 'Junction', 10, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (965, '209', 'Nkubu ', 34, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (966, '18', '<NAME>', 10, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (967, '210', '<NAME> ', 34, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (968, '19', 'Greenspan Mall', 10, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (969, '211', 'Makuyu ', 34, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (970, '20', 'Moi Avenue Mombasa ', 10, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (971, '212', 'Mwea ', 34, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (972, '21', 'Meru', 10, NULL, '2016-03-31 03:35:12', '2016-03-31 03:35:12'), (973, '213', 'Njambini ', 34, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (974, '22', 'Nakuru', 10, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (975, '214', 'Gatundu ', 34, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (976, '23', 'Bamburi', 10, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (977, '215', 'Emali ', 34, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (978, '24', 'Diani', 10, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (979, '216', 'Isiolo ', 34, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (980, '25', 'Changamwe', 10, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (981, '217', 'KCB Flamingo', 34, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (982, '26', 'Eldoret', 10, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (983, '218', 'Njoro ', 34, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (984, '27', 'Kisumu', 10, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (985, '219', 'Mutomo ', 34, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (986, '28', 'Thika', 10, NULL, '2016-03-31 03:35:13', '2016-03-31 03:35:13'), (987, '220', 'Mariakani ', 34, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (988, '29', 'Nanyuki', 10, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (989, '221', 'Mpeketoni ', 34, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (990, '30', '<NAME>', 10, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (991, '222', '<NAME> ', 34, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (992, '31', 'Lavington', 10, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (993, '223', 'Mtwapa ', 34, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (994, '32', 'Machakos', 10, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (995, '224', 'Taveta ', 34, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (996, '0', 'Harambee Avenue ', 11, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (997, '225', 'Kengeleni ', 34, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (998, '1', 'Muranga ', 11, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (999, '226', 'Garsen ', 34, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (1000, '2', 'Embu ', 11, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (1001, '227', 'Watamu ', 34, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (1002, '3', 'Mombasa ', 11, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (1003, '228', 'Bondo ', 34, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (1004, '4', '<NAME> ', 11, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (1005, '229', 'Busia ', 34, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (1006, '5', 'Thika ', 11, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (1007, '230', '<NAME> ', 34, NULL, '2016-03-31 03:35:14', '2016-03-31 03:35:14'), (1008, '6', 'Meru ', 11, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1009, '231', 'Kapsowar ', 34, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1010, '7', 'Nyeri ', 11, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1011, '232', 'Kehancha ', 34, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1012, '8', 'Laare', 11, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1013, '233', 'Keroka ', 34, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1014, '9', 'Maua ', 11, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1015, '234', 'Kilgoris ', 34, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1016, '10', 'Isiolo ', 11, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1017, '235', 'Kimilili ', 34, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1018, '11', 'Head Office ', 11, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1019, '236', 'Litein ', 34, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1020, '12', 'Corporate', 11, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1021, '237', 'Londiani Branch ', 34, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1022, '13', 'Umoja ', 11, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1023, '238', 'Luanda ', 34, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1024, '14', 'River Road ', 11, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1025, '239', 'Malaba ', 34, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1026, '15', 'Eldoret', 11, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1027, '240', 'Muhoroni ', 34, NULL, '2016-03-31 03:35:15', '2016-03-31 03:35:15'), (1028, '16', 'Nakuru', 11, NULL, '2016-03-31 03:35:16', '2016-03-31 03:35:16'), (1029, '241', 'Oyugis ', 34, NULL, '2016-03-31 03:35:16', '2016-03-31 03:35:16'), (1030, '17', 'Kitengela', 11, NULL, '2016-03-31 03:35:16', '2016-03-31 03:35:16'), (1031, '242', 'Ugunja ', 34, NULL, '2016-03-31 03:35:16', '2016-03-31 03:35:16'), (1032, '18', '<NAME>', 11, NULL, '2016-03-31 03:35:16', '2016-03-31 03:35:16'), (1033, '243', 'United Mall ', 34, NULL, '2016-03-31 03:35:16', '2016-03-31 03:35:16'), (1034, '0', 'Head Office ', 12, NULL, '2016-03-31 03:35:16', '2016-03-31 03:35:16'), (1035, '244', 'Serem ', 34, NULL, '2016-03-31 03:35:16', '2016-03-31 03:35:16'), (1036, '1', 'Finance And Accounts ', 12, NULL, '2016-03-31 03:35:16', '2016-03-31 03:35:16'), (1037, '245', 'Sondu ', 34, NULL, '2016-03-31 03:35:16', '2016-03-31 03:35:16'), (1038, '2', 'Co-op House ', 12, NULL, '2016-03-31 03:35:16', '2016-03-31 03:35:16'), (1039, '3', 'Kisumu ', 12, NULL, '2016-03-31 03:35:17', '2016-03-31 03:35:17'), (1040, '246', 'Kisumu West ', 34, NULL, '2016-03-31 03:35:17', '2016-03-31 03:35:17'), (1041, '4', 'Nkurumah Road', 12, NULL, '2016-03-31 03:35:17', '2016-03-31 03:35:17'), (1042, '247', 'Marigat ', 34, NULL, '2016-03-31 03:35:17', '2016-03-31 03:35:17'), (1043, '5', 'Meru ', 12, NULL, '2016-03-31 03:35:17', '2016-03-31 03:35:17'), (1044, '248', 'Mois Bridge ', 34, NULL, '2016-03-31 03:35:17', '2016-03-31 03:35:17'), (1045, '6', 'Nakuru ', 12, NULL, '2016-03-31 03:35:17', '2016-03-31 03:35:17'), (1046, '249', 'Mashariki ', 34, NULL, '2016-03-31 03:35:17', '2016-03-31 03:35:17'), (1047, '7', 'Industrial Area ', 12, NULL, '2016-03-31 03:35:17', '2016-03-31 03:35:17'), (1048, '250', '<NAME> ', 34, NULL, '2016-03-31 03:35:17', '2016-03-31 03:35:17'), (1049, '8', 'Kisii ', 12, NULL, '2016-03-31 03:35:17', '2016-03-31 03:35:17'), (1050, '251', 'Kiriaini ', 34, NULL, '2016-03-31 03:35:17', '2016-03-31 03:35:17'), (1051, '9', 'Machakos ', 12, NULL, '2016-03-31 03:35:18', '2016-03-31 03:35:18'), (1052, '252', 'Egerton University ', 34, NULL, '2016-03-31 03:35:18', '2016-03-31 03:35:18'), (1053, '10', 'Nyeri ', 12, NULL, '2016-03-31 03:35:18', '2016-03-31 03:35:18'), (1054, '253', 'Maua ', 34, NULL, '2016-03-31 03:35:18', '2016-03-31 03:35:18'), (1055, '11', 'Ukulima ', 12, NULL, '2016-03-31 03:35:18', '2016-03-31 03:35:18'), (1056, '254', 'Kawangare ', 34, NULL, '2016-03-31 03:35:18', '2016-03-31 03:35:18'), (1057, '12', 'Kerugoya ', 12, NULL, '2016-03-31 03:35:18', '2016-03-31 03:35:18'), (1058, '255', 'Kimathi ', 34, NULL, '2016-03-31 03:35:18', '2016-03-31 03:35:18'), (1059, '13', 'Eldoret ', 12, NULL, '2016-03-31 03:35:18', '2016-03-31 03:35:18'), (1060, '256', 'Namanga ', 34, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1061, '14', 'Moi Avenue ', 12, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1062, '257', 'Gikomba ', 34, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1063, '15', 'Naivasha ', 12, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1064, '258', 'Kwale ', 34, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1065, '17', 'Nyahururu ', 12, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1066, '259', 'Prestige Plaza ', 34, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1067, '18', 'Chuka ', 12, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1068, '260', 'Kariobangi ', 34, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1069, '19', 'Wakulima Market ', 12, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1070, '263', 'Biashara Street ', 34, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1071, '20', 'Eastleigh ', 12, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1072, '266', 'Ngara ', 34, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1073, '21', 'Kiambu ', 12, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1074, '267', 'Kyuso ', 34, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1075, '22', '<NAME> ', 12, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1076, '270', 'Masii ', 34, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1077, '23', 'Embu ', 12, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1078, '271', 'Menengai Crater', 34, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1079, '24', 'Kericho ', 12, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1080, '272', 'Town Centre ', 34, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1081, '25', 'Bungoma ', 12, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1082, '278', 'Makindu ', 34, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1083, '26', 'Muranga ', 12, NULL, '2016-03-31 03:35:19', '2016-03-31 03:35:19'), (1084, '283', 'Rongo ', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1085, '27', 'Kayole ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1086, '284', 'Isibania ', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1087, '28', 'Karatina ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1088, '285', 'Kiserian ', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1089, '29', 'Ukunda ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1090, '286', '<NAME> ', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1091, '30', 'Mtwapa ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1092, '287', 'Kisauni ', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1093, '31', 'University Way ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1094, '288', '<NAME> ', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1095, '32', 'Buru Buru ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1096, '289', 'Salama House Mortgage Centre', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1097, '33', 'Athi River ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1098, '290', 'Garden Plaza ', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1099, '34', 'Mumias ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1100, '291', 'Sarit Centre Mortgage Centre', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1101, '35', 'Stima Plaza ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1102, '292', 'Cpc Bulk Corporate Cheques ', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1103, '36', 'Westlands ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1104, '293', 'Trade Services', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1105, '37', 'Upper Hill ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1106, '295', 'Nairobi High Court', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1107, '38', 'Ongata Rongai ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1108, '296', 'Mombasa High Court', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1109, '39', 'Thika ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1110, '297', 'Kisumu Airport', 34, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1111, '40', 'Nacico ', 12, NULL, '2016-03-31 03:35:20', '2016-03-31 03:35:20'), (1112, '298', 'Port Victoria', 34, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1113, '41', 'Kariobangi ', 12, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1114, '299', 'Moi International Airport', 34, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1115, '42', 'Kawangware ', 12, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1116, '300', 'Nyali', 34, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1117, '43', 'Makutano ', 12, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1118, '301', 'Westgate Advantage', 34, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1119, '44', 'Canon House ', 12, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1120, '302', 'Diaspora ', 34, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1121, '45', 'Kimathi Street ', 12, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1122, '303', 'Kisii West ', 34, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1123, '46', 'Kitale ', 12, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1124, '304', 'Mbita', 34, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1125, '47', 'Githurai ', 12, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1126, '305', 'Sori', 34, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1127, '48', 'Maua ', 12, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1128, '306', 'Hurlingham', 34, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1129, '49', 'City  Hall ', 12, NULL, '2016-03-31 03:35:21', '2016-03-31 03:35:21'), (1130, '307', 'Kibera', 34, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1131, '50', '<NAME> ', 12, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1132, '308', 'Thika Road Mall Branch', 34, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1133, '51', 'Nbc ', 12, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1134, '309', 'Kasarani Branch', 34, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1135, '52', 'Kakamega', 12, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1136, '310', 'KCB Maasai Mara', 34, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1137, '53', 'Migori ', 12, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1138, '311', 'KCB Kabartonjo', 34, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1139, '54', 'Kenyatta Avenue ', 12, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1140, '312', 'KCB Eldoret East', 34, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1141, '55', 'Nkubu ', 12, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1142, '313', 'Kikim', 34, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1143, '56', 'Enterprise Road ', 12, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1144, '314', 'KCB JKUAT', 34, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1145, '57', 'Busia ', 12, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1146, '315', 'KCB Changamwe', 34, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1147, '58', 'Siaya ', 12, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1148, '316', 'KCB Makongeni', 34, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1149, '59', 'Voi ', 12, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1150, '317', 'KCB Syokimau', 34, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1151, '60', 'Mariakani ', 12, NULL, '2016-03-31 03:35:22', '2016-03-31 03:35:22'), (1152, '318', 'KCB Moi Referral Hospital', 34, NULL, '2016-03-31 03:35:23', '2016-03-31 03:35:23'), (1153, '61', 'Malindi ', 12, NULL, '2016-03-31 03:35:23', '2016-03-31 03:35:23'), (1154, '319', 'KCB Kitale Advantage', 34, NULL, '2016-03-31 03:35:23', '2016-03-31 03:35:23'), (1155, '62', 'Zimmerman ', 12, NULL, '2016-03-31 03:35:23', '2016-03-31 03:35:23'), (1156, '320', 'KCB Lavington', 34, NULL, '2016-03-31 03:35:23', '2016-03-31 03:35:23'), (1157, '63', 'Nakuru East ', 12, NULL, '2016-03-31 03:35:23', '2016-03-31 03:35:23'), (1158, '321', 'KCB ICD Kibarani', 34, NULL, '2016-03-31 03:35:23', '2016-03-31 03:35:23'), (1159, '64', 'Kitengela ', 12, NULL, '2016-03-31 03:35:23', '2016-03-31 03:35:23'), (1160, '322', 'KCB Riverside Advantage', 34, NULL, '2016-03-31 03:35:23', '2016-03-31 03:35:23'), (1161, '65', '<NAME> ', 12, NULL, '2016-03-31 03:35:23', '2016-03-31 03:35:23'), (1162, '323', 'KCB Gigiri Square', 34, NULL, '2016-03-31 03:35:23', '2016-03-31 03:35:23'), (1163, '66', 'Narok ', 12, NULL, '2016-03-31 03:35:23', '2016-03-31 03:35:23'), (1164, NULL, 'head quarters', 35, NULL, '2016-03-31 03:35:23', '2016-03-31 03:35:23'), (1165, '67', 'Kitui ', 12, NULL, '2016-03-31 03:35:24', '2016-03-31 03:35:24'), (1166, NULL, 'North –Rift', 35, NULL, '2016-03-31 03:35:24', '2016-03-31 03:35:24'), (1167, '68', 'Nanyuki ', 12, NULL, '2016-03-31 03:35:24', '2016-03-31 03:35:24'), (1168, NULL, '<NAME>', 35, NULL, '2016-03-31 03:35:24', '2016-03-31 03:35:24'), (1169, '69', 'Embakasi ', 12, NULL, '2016-03-31 03:35:24', '2016-03-31 03:35:24'), (1170, NULL, 'Eldoret', 35, NULL, '2016-03-31 03:35:25', '2016-03-31 03:35:25'), (1171, '70', 'Kibera ', 12, NULL, '2016-03-31 03:35:25', '2016-03-31 03:35:25'), (1172, NULL, 'Trans-Nzoia', 35, NULL, '2016-03-31 03:35:25', '2016-03-31 03:35:25'), (1173, '71', 'Siakago ', 12, NULL, '2016-03-31 03:35:25', '2016-03-31 03:35:25'), (1174, NULL, 'Bomet', 35, NULL, '2016-03-31 03:35:25', '2016-03-31 03:35:25'), (1175, '72', 'Kapsabet ', 12, NULL, '2016-03-31 03:35:25', '2016-03-31 03:35:25'), (1176, NULL, 'Kericho', 35, NULL, '2016-03-31 03:35:25', '2016-03-31 03:35:25'), (1177, '73', 'Mbita ', 12, NULL, '2016-03-31 03:35:25', '2016-03-31 03:35:25'), (1178, NULL, 'Lodwar ', 35, NULL, '2016-03-31 03:35:26', '2016-03-31 03:35:26'), (1179, '74', 'Kangemi ', 12, NULL, '2016-03-31 03:35:26', '2016-03-31 03:35:26'), (1180, NULL, 'Malaba ', 35, NULL, '2016-03-31 03:35:26', '2016-03-31 03:35:26'), (1181, '75', 'Dandora ', 12, NULL, '2016-03-31 03:35:26', '2016-03-31 03:35:26'), (1182, NULL, 'Kakamega', 35, NULL, '2016-03-31 03:35:26', '2016-03-31 03:35:26'), (1183, '76', 'Kajiado ', 12, NULL, '2016-03-31 03:35:26', '2016-03-31 03:35:26'), (1184, NULL, 'Serem ', 35, NULL, '2016-03-31 03:35:26', '2016-03-31 03:35:26'), (1185, '77', 'Tala ', 12, NULL, '2016-03-31 03:35:26', '2016-03-31 03:35:26'), (1186, NULL, 'Nakuru', 35, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1187, '78', 'Gikomba ', 12, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1188, NULL, 'Njambini', 35, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1189, '79', 'River Road ', 12, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1190, NULL, 'Gilgil ', 35, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1191, '80', 'Nyamira ', 12, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1192, NULL, 'Embu', 35, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1193, '81', 'Garisa ', 12, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1194, NULL, 'Mwea', 35, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1195, '82', 'Bomet ', 12, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1196, NULL, 'Tharaka', 35, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1197, '83', 'Keroka ', 12, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1198, NULL, 'Mbeere', 35, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1199, '84', 'Gilgil ', 12, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1200, NULL, 'Nkubu', 35, NULL, '2016-03-31 03:35:27', '2016-03-31 03:35:27'), (1201, '85', '<NAME> ', 12, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1202, NULL, 'Meru', 35, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1203, '86', 'Likoni ', 12, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1204, NULL, 'Maua', 35, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1205, '87', 'Donholm ', 12, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'); INSERT INTO `bank_branches` (`id`, `branch_code`, `bank_branch_name`, `bank_id`, `organization_id`, `created_at`, `updated_at`) VALUES (1206, NULL, '<NAME>', 35, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1207, '88', 'Mwingi ', 12, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1208, NULL, 'Narumoru', 35, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1209, '89', 'Ruaka', 12, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1210, NULL, 'Othaya', 35, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1211, '90', 'Webuye', 12, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1212, NULL, 'Mukurweini', 35, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1213, '94', 'Sacco Clearing Unit', 12, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1214, NULL, 'Machakos', 35, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1215, '97', 'clearing Centre', 12, NULL, '2016-03-31 03:35:28', '2016-03-31 03:35:28'), (1216, NULL, 'Matuu ', 35, NULL, '2016-03-31 03:35:29', '2016-03-31 03:35:29'), (1217, '100', 'Ndhiwa', 12, NULL, '2016-03-31 03:35:29', '2016-03-31 03:35:29'), (1218, NULL, 'Masii ', 35, NULL, '2016-03-31 03:35:29', '2016-03-31 03:35:29'), (1219, '101', 'Oyugis', 12, NULL, '2016-03-31 03:35:29', '2016-03-31 03:35:29'), (1220, NULL, 'Kyuso', 35, NULL, '2016-03-31 03:35:29', '2016-03-31 03:35:29'), (1221, '102', 'Isiolo', 12, NULL, '2016-03-31 03:35:29', '2016-03-31 03:35:29'), (1222, NULL, 'Machakos 760 Hotel', 35, NULL, '2016-03-31 03:35:29', '2016-03-31 03:35:29'), (1223, '103', 'Eldoret West', 12, NULL, '2016-03-31 03:35:29', '2016-03-31 03:35:29'), (1224, NULL, 'Mwingi ', 35, NULL, '2016-03-31 03:35:29', '2016-03-31 03:35:29'), (1225, '104', 'Changamwe', 12, NULL, '2016-03-31 03:35:29', '2016-03-31 03:35:29'), (1226, NULL, 'Tala ', 35, NULL, '2016-03-31 03:35:29', '2016-03-31 03:35:29'), (1227, '105', 'Kisumu East', 12, NULL, '2016-03-31 03:35:30', '2016-03-31 03:35:30'), (1228, NULL, 'Kitui', 35, NULL, '2016-03-31 03:35:30', '2016-03-31 03:35:30'), (1229, '106', '<NAME>', 12, NULL, '2016-03-31 03:35:30', '2016-03-31 03:35:30'), (1230, NULL, 'Migori', 35, NULL, '2016-03-31 03:35:30', '2016-03-31 03:35:30'), (1231, '107', 'Mlolongo', 12, NULL, '2016-03-31 03:35:30', '2016-03-31 03:35:30'), (1232, NULL, 'Thika', 35, NULL, '2016-03-31 03:35:30', '2016-03-31 03:35:30'), (1233, '108', 'Kilifi', 12, NULL, '2016-03-31 03:35:30', '2016-03-31 03:35:30'), (1234, NULL, 'Ruiru', 35, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1235, '109', '<NAME>', 12, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1236, NULL, 'Gatundu ', 35, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1237, '110', 'Mbale', 12, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1238, '111', 'Kimilili', 12, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1239, NULL, 'Githurai 45', 35, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1240, '112', '<NAME>', 12, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1241, NULL, 'Kiambu', 35, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1242, '113', 'Kilgoris', 12, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1243, NULL, 'Nairobi', 35, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1244, '114', 'Wote', 12, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1245, '116', 'Malaba', 12, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1246, NULL, 'Gikomba', 35, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1247, '117', 'Molo', 12, NULL, '2016-03-31 03:35:31', '2016-03-31 03:35:31'), (1248, NULL, 'Nairobi west', 35, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1249, '118', 'Mwea', 12, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1250, NULL, 'Embakasi', 35, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1251, '119', 'Kutus', 12, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1252, NULL, 'River road', 35, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1253, '120', 'Umoja', 12, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1254, NULL, 'Kibwezi ', 35, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1255, '121', 'Embakasi Junction', 12, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1256, NULL, 'Emali', 35, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1257, '122', 'Kongowea ', 12, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1258, NULL, 'Nunguni', 35, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1259, '123', 'Langata Road', 12, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1260, NULL, 'Wote ', 35, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1261, '124', 'Juja', 12, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1262, NULL, 'Loitoktok', 35, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1263, '125', 'Ngong', 12, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1264, NULL, 'Taveta ', 35, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1265, '126', 'Kawangware 46', 12, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1266, NULL, 'Garsen', 35, NULL, '2016-03-31 03:35:32', '2016-03-31 03:35:32'), (1267, '127', 'Mombasa Road', 12, NULL, '2016-03-31 03:35:33', '2016-03-31 03:35:33'), (1268, NULL, 'Wundanyi ', 35, NULL, '2016-03-31 03:35:33', '2016-03-31 03:35:33'), (1269, '128', 'Marsabit', 12, NULL, '2016-03-31 03:35:33', '2016-03-31 03:35:33'), (1270, NULL, 'Mwatate', 35, NULL, '2016-03-31 03:35:33', '2016-03-31 03:35:33'), (1271, '130', 'Dagoretti', 12, NULL, '2016-03-31 03:35:33', '2016-03-31 03:35:33'), (1272, NULL, 'Voi ', 35, NULL, '2016-03-31 03:35:33', '2016-03-31 03:35:33'), (1273, '131', 'Othaya', 12, NULL, '2016-03-31 03:35:33', '2016-03-31 03:35:33'), (1274, NULL, 'Kitengela', 35, NULL, '2016-03-31 03:35:33', '2016-03-31 03:35:33'), (1275, '132', 'Limuru', 12, NULL, '2016-03-31 03:35:33', '2016-03-31 03:35:33'), (1276, NULL, 'Mombasa', 35, NULL, '2016-03-31 03:35:33', '2016-03-31 03:35:33'), (1277, '133', 'Kikuyu', 12, NULL, '2016-03-31 03:35:33', '2016-03-31 03:35:33'), (1278, NULL, 'Malindi', 35, NULL, '2016-03-31 03:35:33', '2016-03-31 03:35:33'), (1279, '134', 'Githunguri', 12, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1280, '0', 'Head Office ', 36, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1281, '135', 'Karen', 12, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1282, '1', 'Main Office ', 36, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1283, '136', 'Mpeketoni', 12, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1284, '2', 'Mombasa ', 36, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1285, '137', 'Gatundu', 12, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1286, '3', '<NAME> ', 36, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1287, '138', 'Ruiru', 12, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1288, '4', 'Nakuru ', 36, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1289, '139', '<NAME> ', 12, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1290, '5', 'Nyeri ', 36, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1291, '140', 'Yala', 12, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1292, '6', 'Buruburu ', 36, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1293, '141', 'Maasai Mall - Ongata Rongai', 12, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1294, '7', 'Embu ', 36, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1295, '142', '<NAME> Mall', 12, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1296, '8', 'Eldoret ', 36, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1297, '143', 'Kiserian', 12, NULL, '2016-03-31 03:35:34', '2016-03-31 03:35:34'), (1298, '9', 'Kisumu ', 36, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1299, '144', '<NAME>', 12, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1300, '10', 'Kericho ', 36, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1301, '145', 'Lodwar', 12, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1302, '11', 'Mlolongo', 36, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1303, '147', 'Engineer', 12, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1304, '12', 'Thika ', 36, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1305, '148', 'Rongo', 12, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1306, '13', 'Kerugoya', 36, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1307, '149', '<NAME>', 12, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1308, '14', 'Kenyatta Market ', 36, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1309, '150', 'Bondo', 12, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1310, '15', 'Kisii ', 36, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1311, '151', 'Gigiri Mall', 12, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1312, '16', 'CHUKA', 36, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1313, '152', 'United Mall, Kisumu', 12, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1314, '17', 'Kitui ', 36, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1315, '153', 'Green House Mall', 12, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1316, '18', 'Machakos ', 36, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1317, '228', 'Shares Operations ', 12, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1318, '19', 'Nanyuki ', 36, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1319, '247', 'Back Office Operations', 12, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1320, '20', 'Kangemi', 36, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1321, '250', 'E- Channels Unit', 12, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1322, '21', 'Email', 36, NULL, '2016-03-31 03:35:35', '2016-03-31 03:35:35'), (1323, '254', 'Diaspora Banking', 12, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1324, '22', 'Naivasha ', 36, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1325, '266', 'Kilindini Port ', 12, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1326, '23', 'Nyahururu ', 36, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1327, '270', 'Money Transfers Agency ', 12, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1328, '24', 'Isiolo ', 36, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1329, '0', 'Head Office', 13, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1330, '25', 'Meru ', 36, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1331, '1', 'Koinange Street', 13, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1332, '26', 'Kitale ', 36, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1333, '2', 'Kisumu', 13, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1334, '27', 'Kibwezi ', 36, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1335, '3', 'Nakuru', 13, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1336, '28', 'Bungoma ', 36, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1337, '4', 'Kisii', 13, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1338, '29', 'Kajiado ', 36, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1339, '5', 'Westlands ', 13, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1340, '30', 'Nkubu', 36, NULL, '2016-03-31 03:35:36', '2016-03-31 03:35:36'), (1341, '6', 'Industrial Area ', 13, NULL, '2016-03-31 03:35:37', '2016-03-31 03:35:37'), (1342, '31', 'Mtwapa ', 36, NULL, '2016-03-31 03:35:37', '2016-03-31 03:35:37'), (1343, '8', 'Nakuru, Kenyatta Avenue', 13, NULL, '2016-03-31 03:35:37', '2016-03-31 03:35:37'), (1344, '32', 'Busia', 36, NULL, '2016-03-31 03:35:37', '2016-03-31 03:35:37'), (1345, '9', 'Eldoret', 13, NULL, '2016-03-31 03:35:37', '2016-03-31 03:35:37'), (1346, '33', '<NAME> ', 36, NULL, '2016-03-31 03:35:37', '2016-03-31 03:35:37'), (1347, '10', 'Rongai', 13, NULL, '2016-03-31 03:35:37', '2016-03-31 03:35:37'), (1348, '34', 'Mwea ', 36, NULL, '2016-03-31 03:35:37', '2016-03-31 03:35:37'), (1349, '11', 'Mombasa- Nyali Centre', 13, NULL, '2016-03-31 03:35:37', '2016-03-31 03:35:37'), (1350, '35', 'Kengeleni ', 36, NULL, '2016-03-31 03:35:37', '2016-03-31 03:35:37'), (1351, '12', 'Thika', 13, NULL, '2016-03-31 03:35:37', '2016-03-31 03:35:37'), (1352, '36', 'Kilimani ', 36, NULL, '2016-03-31 03:35:37', '2016-03-31 03:35:37'), (1353, '13', '<NAME>', 13, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1354, '37', 'Rongai', 36, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1355, '14', 'Machakos', 13, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1356, '0', 'Head Office ', 37, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1357, '15', 'Kitengela', 13, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1358, '1', 'Nairobi ', 37, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1359, '0', 'Head Office', 14, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1360, '2', 'Mombasa ', 37, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1361, '1', '<NAME>', 14, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1362, '3', 'Milimani ', 37, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1363, '0', 'Head Office ', 15, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1364, '4', 'Industrial Area', 37, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1365, '1', 'Nation Centre ', 15, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1366, '5', 'Eldoret', 37, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1367, '2', 'Mombasa ', 15, NULL, '2016-03-31 03:35:38', '2016-03-31 03:35:38'), (1368, '0', 'Central Business Unit', 38, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1369, '3', 'Kisumu ', 15, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1370, '2', 'Kenyatta', 38, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1371, '5', 'Parklands ', 15, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1372, '3', 'Harambee ', 38, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1373, '6', 'Westgate ', 15, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1374, '4', 'Hill ', 38, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1375, '8', 'Mombasa Rd ', 15, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1376, '5', 'Busia ', 38, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1377, '9', 'Ind Area ', 15, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1378, '6', 'Kiambu', 38, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1379, '10', 'Kisii ', 15, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1380, '7', 'Meru ', 38, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1381, '11', 'Malindi ', 15, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1382, '8', 'Karatina ', 38, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1383, '12', 'Thika ', 15, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1384, '9', 'Narok ', 38, NULL, '2016-03-31 03:35:39', '2016-03-31 03:35:39'), (1385, '13', 'Otc ', 15, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1386, '10', 'Kisii ', 38, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1387, '14', 'Eldoret ', 15, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1388, '11', 'Malindi ', 38, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1389, '15', 'Eastleigh ', 15, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1390, '12', 'Nyeri ', 38, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1391, '16', 'Changamwe ', 15, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1392, '13', 'Kitale ', 38, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1393, '17', 'T-mall ', 15, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1394, '15', 'Eastleigh', 38, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1395, '18', 'Nakuru ', 15, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1396, '16', 'Limuru ', 38, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1397, '19', 'Village Market ', 15, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1398, '17', 'Kitui ', 38, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1399, '20', 'Diani ', 15, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1400, '18', 'Molo ', 38, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1401, '21', 'Bungoma ', 15, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1402, '19', 'Bungoma ', 38, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1403, '22', 'Kitale ', 15, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1404, '20', 'Nkrumah', 38, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1405, '23', 'Prestige ', 15, NULL, '2016-03-31 03:35:40', '2016-03-31 03:35:40'), (1406, '21', 'Kapsabet ', 38, NULL, '2016-03-31 03:35:41', '2016-03-31 03:35:41'), (1407, '24', 'Buru Buru ', 15, NULL, '2016-03-31 03:35:41', '2016-03-31 03:35:41'), (1408, '22', 'Awendo ', 38, NULL, '2016-03-31 03:35:41', '2016-03-31 03:35:41'), (1409, '25', 'Kitengela ', 15, NULL, '2016-03-31 03:35:41', '2016-03-31 03:35:41'), (1410, '23', 'Portway-msa ', 38, NULL, '2016-03-31 03:35:41', '2016-03-31 03:35:41'), (1411, '26', 'Jomo Kenyatta Branch ', 15, NULL, '2016-03-31 03:35:41', '2016-03-31 03:35:41'), (1412, '25', 'Hospital Br. ', 38, NULL, '2016-03-31 03:35:41', '2016-03-31 03:35:41'), (1413, '27', 'Kakamega ', 15, NULL, '2016-03-31 03:35:41', '2016-03-31 03:35:41'), (1414, '26', 'Ruiru ', 38, NULL, '2016-03-31 03:35:41', '2016-03-31 03:35:41'), (1415, '28', 'Kericho ', 15, NULL, '2016-03-31 03:35:41', '2016-03-31 03:35:41'), (1416, '27', '<NAME> ', 38, NULL, '2016-03-31 03:35:42', '2016-03-31 03:35:42'), (1417, '29', 'Upper Hill ', 15, NULL, '2016-03-31 03:35:42', '2016-03-31 03:35:42'), (1418, '28', 'Embu ', 38, NULL, '2016-03-31 03:35:42', '2016-03-31 03:35:42'), (1419, '30', '<NAME> ', 15, NULL, '2016-03-31 03:35:42', '2016-03-31 03:35:42'), (1420, '29', 'Kakamega ', 38, NULL, '2016-03-31 03:35:42', '2016-03-31 03:35:42'), (1421, '31', 'Karen ', 15, NULL, '2016-03-31 03:35:42', '2016-03-31 03:35:42'), (1422, '30', 'Nakuru ', 38, NULL, '2016-03-31 03:35:42', '2016-03-31 03:35:42'), (1423, '32', 'Voi ', 15, NULL, '2016-03-31 03:35:42', '2016-03-31 03:35:42'), (1424, '31', 'Ukunda ', 38, NULL, '2016-03-31 03:35:42', '2016-03-31 03:35:42'), (1425, '33', 'Shimanzi ', 15, NULL, '2016-03-31 03:35:43', '2016-03-31 03:35:43'), (1426, '32', 'Upper Hill ', 38, NULL, '2016-03-31 03:35:44', '2016-03-31 03:35:44'), (1427, '34', 'Meru ', 15, NULL, '2016-03-31 03:35:45', '2016-03-31 03:35:45'), (1428, '33', '<NAME> ', 38, NULL, '2016-03-31 03:35:45', '2016-03-31 03:35:45'), (1429, '35', 'Diamond Plaza ', 15, NULL, '2016-03-31 03:35:45', '2016-03-31 03:35:45'), (1430, '34', 'Migori ', 38, NULL, '2016-03-31 03:35:45', '2016-03-31 03:35:45'), (1431, '36', 'crossroad', 15, NULL, '2016-03-31 03:35:46', '2016-03-31 03:35:46'), (1432, '35', 'Westlands ', 38, NULL, '2016-03-31 03:35:46', '2016-03-31 03:35:46'), (1433, '36', 'Times Tower', 38, NULL, '2016-03-31 03:35:46', '2016-03-31 03:35:46'), (1434, '37', 'JKIA', 15, NULL, '2016-03-31 03:35:46', '2016-03-31 03:35:46'), (1435, '37', 'Maua', 38, NULL, '2016-03-31 03:35:46', '2016-03-31 03:35:46'), (1436, '38', 'Nyali ', 15, NULL, '2016-03-31 03:35:46', '2016-03-31 03:35:46'), (1437, '38', '<NAME>', 38, NULL, '2016-03-31 03:35:46', '2016-03-31 03:35:46'), (1438, '39', 'Migori Branch', 15, NULL, '2016-03-31 03:35:46', '2016-03-31 03:35:46'), (1439, '39', 'J.K.I.A.', 38, NULL, '2016-03-31 03:35:46', '2016-03-31 03:35:46'), (1440, '40', '<NAME>', 15, NULL, '2016-03-31 03:35:46', '2016-03-31 03:35:46'), (1441, '40', 'Eldoret ', 38, NULL, '2016-03-31 03:35:46', '2016-03-31 03:35:46'), (1442, '41', 'Courtyard Branch', 15, NULL, '2016-03-31 03:35:46', '2016-03-31 03:35:46'), (1443, '41', 'MOIS BRIDGE', 38, NULL, '2016-03-31 03:35:47', '2016-03-31 03:35:47'), (1444, '42', 'Mtwapa Branch', 15, NULL, '2016-03-31 03:35:47', '2016-03-31 03:35:47'), (1445, '42', 'MUTOMO', 38, NULL, '2016-03-31 03:35:47', '2016-03-31 03:35:47'), (1446, '43', 'Lamu Branch', 15, NULL, '2016-03-31 03:35:47', '2016-03-31 03:35:47'), (1447, '43', 'KIANJAI', 38, NULL, '2016-03-31 03:35:47', '2016-03-31 03:35:47'), (1448, '44', 'Kilifi Branch', 15, NULL, '2016-03-31 03:35:47', '2016-03-31 03:35:47'), (1449, '44', 'KENYATTA UNIVERSITY', 38, NULL, '2016-03-31 03:35:47', '2016-03-31 03:35:47'), (1450, '45', 'Mariakani Branch', 15, NULL, '2016-03-31 03:35:47', '2016-03-31 03:35:47'), (1451, '45', 'ST PAULS UNIVERSITY', 38, NULL, '2016-03-31 03:35:47', '2016-03-31 03:35:47'), (1452, '46', 'Thika Road Mall', 15, NULL, '2016-03-31 03:35:48', '2016-03-31 03:35:48'), (1453, '46', 'MOI UNIVERSITY ELDORET', 38, NULL, '2016-03-31 03:35:48', '2016-03-31 03:35:48'), (1454, '47', '<NAME>', 15, NULL, '2016-03-31 03:35:48', '2016-03-31 03:35:48'), (1455, '47', 'MOI INT AIRPORT MOMBASA', 38, NULL, '2016-03-31 03:35:48', '2016-03-31 03:35:48'), (1456, '48', 'Busia', 15, NULL, '2016-03-31 03:35:48', '2016-03-31 03:35:48'), (1457, '48', 'Machakos', 38, NULL, '2016-03-31 03:35:48', '2016-03-31 03:35:48'), (1458, '49', 'West End Mall - Kisumu', 15, NULL, '2016-03-31 03:35:48', '2016-03-31 03:35:48'), (1459, '49', 'Kitengela', 38, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1460, '50', '<NAME> ', 15, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1461, '50', 'Kisumu ', 38, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1462, '51', 'Mtwapa', 38, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1463, '52', 'DTB Centre', 15, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1464, '52', 'Changamwe', 38, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1465, '53', 'South C', 15, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1466, '53', 'Garissa', 38, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1467, '54', 'Lavington', 15, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1468, '54', 'Thika', 38, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1469, '55', '9 West', 15, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1470, '56', 'Biashara street, Nakuru', 15, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1471, '55', 'Momasa Polytechnic University College', 38, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1472, '56', 'Bomet', 38, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1473, '0', 'Head Office ', 16, NULL, '2016-03-31 03:35:49', '2016-03-31 03:35:49'), (1474, '1', 'Eastleigh ', 16, NULL, '2016-03-31 03:35:50', '2016-03-31 03:35:50'), (1475, '58', 'Greenspan', 38, NULL, '2016-03-31 03:35:50', '2016-03-31 03:35:50'), (1476, '59', '<NAME>', 38, NULL, '2016-03-31 03:35:50', '2016-03-31 03:35:50'), (1477, '2', 'Mombasa ', 16, NULL, '2016-03-31 03:35:50', '2016-03-31 03:35:50'), (1478, '3', 'Mombasa ', 16, NULL, '2016-03-31 03:35:50', '2016-03-31 03:35:50'), (1479, '60', 'SEKU', 38, NULL, '2016-03-31 03:35:50', '2016-03-31 03:35:50'), (1480, '4', 'Nakuru ', 16, NULL, '2016-03-31 03:35:50', '2016-03-31 03:35:50'), (1481, '61', 'Ngong Road', 38, NULL, '2016-03-31 03:35:50', '2016-03-31 03:35:50'), (1482, '20', 'Nakuru ', 16, NULL, '2016-03-31 03:35:50', '2016-03-31 03:35:50'), (1483, '62', 'Moi Avenue', 38, NULL, '2016-03-31 03:35:50', '2016-03-31 03:35:50'), (1484, '0', 'Fedha Branch , Head Office ', 17, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1485, '63', 'Mountain Mall', 38, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1486, '1', 'Moi Avenue Nairobi ', 17, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1487, '65', 'Nyali Centre', 38, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1488, '2', 'Akiba Hse Mombasa ', 17, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1489, '66', 'Kilifi', 38, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1490, '3', 'Plaza 2000 ', 17, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1491, '67', 'South C Branch- KEBS', 38, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1492, '4', 'Westminister ', 17, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1493, '68', 'Kericho', 38, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1494, '5', 'Chambers ', 17, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1495, '70', 'Isiolo', 38, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1496, '6', 'Thika ', 17, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1497, '7', 'Eldoret ', 17, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1498, '71', 'South C - Red Cross', 38, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1499, '8', 'Kisumu ', 17, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1500, '72', 'National Bank Premium Banking Kisumu', 38, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1501, '9', 'Kisii ', 17, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1502, '73', 'Yaya Centre', 38, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1503, '10', 'Kitale ', 17, NULL, '2016-03-31 03:35:51', '2016-03-31 03:35:51'), (1504, '74', 'Gigiri', 38, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1505, '11', 'Industrial Area ', 17, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1506, '93', 'Wajir', 38, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1507, '12', 'Karatina ', 17, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1508, '94', 'Bondeni', 38, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1509, '13', 'Westlands ', 17, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1510, '95', 'Lunga Lunga', 38, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1511, '14', 'United Mall ', 17, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1512, '96', 'Mandera', 38, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1513, '15', 'Nakuru ', 17, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1514, '98', 'Card Centre ', 38, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1515, '16', '<NAME> Avenue ', 17, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1516, '99', 'Head Office', 38, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1517, '17', 'Nyeri ', 17, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1518, '198', 'Central CLearing Centre', 38, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1519, '18', 'Busia ', 17, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1520, '200', 'Head Office Amanah', 38, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1521, '19', 'Malindi ', 17, NULL, '2016-03-31 03:35:52', '2016-03-31 03:35:52'), (1522, '201', '<NAME>', 38, NULL, '2016-03-31 03:35:53', '2016-03-31 03:35:53'), (1523, '20', 'Meru', 17, NULL, '2016-03-31 03:35:53', '2016-03-31 03:35:53'), (1524, '202', '<NAME>', 38, NULL, '2016-03-31 03:35:53', '2016-03-31 03:35:53'), (1525, '21', 'Gikomba', 17, NULL, '2016-03-31 03:35:53', '2016-03-31 03:35:53'), (1526, '203', '<NAME>', 38, NULL, '2016-03-31 03:35:53', '2016-03-31 03:35:53'), (1527, '22', 'UpperHill', 17, NULL, '2016-03-31 03:35:53', '2016-03-31 03:35:53'), (1528, '204', '<NAME>', 38, NULL, '2016-03-31 03:35:53', '2016-03-31 03:35:53'), (1529, '205', '<NAME>', 38, NULL, '2016-03-31 03:35:53', '2016-03-31 03:35:53'), (1530, '23', '<NAME>', 17, NULL, '2016-03-31 03:35:53', '2016-03-31 03:35:53'), (1531, '206', '<NAME>', 38, NULL, '2016-03-31 03:35:53', '2016-03-31 03:35:53'), (1532, '24', 'Karen', 17, NULL, '2016-03-31 03:35:53', '2016-03-31 03:35:53'), (1533, '207', '<NAME>', 38, NULL, '2016-03-31 03:35:53', '2016-03-31 03:35:53'), (1534, '25', '<NAME>', 17, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1535, '208', '<NAME>', 38, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1536, '26', '<NAME>', 17, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1537, '0', 'Head Office', 39, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1538, '27', 'Embakasi', 17, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1539, '101', 'City Centre', 39, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1540, '28', 'Kitengela', 17, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1541, '102', 'NIC House', 39, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1542, '29', '<NAME>', 17, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1543, '103', 'Harbour House ', 39, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1544, '100', 'Head Office ', 17, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1545, '104', 'Head Office-Fargo', 39, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1546, '0', 'Nairobi ', 18, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1547, '105', 'Westlands ', 39, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1548, '1', 'Nyerere ', 18, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1549, '106', 'The Junction Br. ', 39, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1550, '2', 'Mombasa ', 18, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1551, '107', 'Nakuru ', 39, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1552, '3', 'Westlands ', 18, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1553, '108', 'Nyali ', 39, NULL, '2016-03-31 03:35:54', '2016-03-31 03:35:54'), (1554, '4', 'Mombasa Road ', 18, NULL, '2016-03-31 03:35:55', '2016-03-31 03:35:55'), (1555, '109', 'Nkrumah Road ', 39, NULL, '2016-03-31 03:35:55', '2016-03-31 03:35:55'), (1556, '5', 'Chester ', 18, NULL, '2016-03-31 03:35:55', '2016-03-31 03:35:55'), (1557, '110', 'Harambee ', 39, NULL, '2016-03-31 03:35:55', '2016-03-31 03:35:55'), (1558, '7', 'Waiyaki Way ', 18, NULL, '2016-03-31 03:35:55', '2016-03-31 03:35:55'), (1559, '111', 'Prestige - Ngong Road ', 39, NULL, '2016-03-31 03:35:55', '2016-03-31 03:35:55'), (1560, '8', 'Kakamega ', 18, NULL, '2016-03-31 03:35:55', '2016-03-31 03:35:55'), (1561, '112', 'Kisumu ', 39, NULL, '2016-03-31 03:35:55', '2016-03-31 03:35:55'), (1562, '9', 'Eldoret ', 18, NULL, '2016-03-31 03:35:55', '2016-03-31 03:35:55'), (1563, '113', 'Thika ', 39, NULL, '2016-03-31 03:35:55', '2016-03-31 03:35:55'), (1564, '10', 'Senator Cards', 18, NULL, '2016-03-31 03:35:55', '2016-03-31 03:35:55'), (1565, '114', 'Meru', 39, NULL, '2016-03-31 03:35:55', '2016-03-31 03:35:55'), (1566, '11', 'Nyali ', 18, NULL, '2016-03-31 03:35:55', '2016-03-31 03:35:55'), (1567, '115', 'Galleria (bomas ', 39, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1568, '12', 'Kisumu ', 18, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1569, '116', 'ELDORET', 39, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1570, '13', 'Industrial Area ', 18, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1571, '117', 'VILLAGE MARKET', 39, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1572, '15', 'Nakuru', 18, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1573, '118', 'SAMEER PARK', 39, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1574, '16', 'Ongata Rongai', 18, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1575, '119', 'Karen', 39, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1576, '0', 'Equity Bank Head Office ', 19, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1577, '121', '<NAME>', 39, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1578, '1', 'Equity Bank Corporate ', 19, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1579, '122', 'ABC', 39, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1580, '2', 'Equity Bank Fourways ', 19, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1581, '123', 'Thika Road Mall ', 39, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1582, '3', 'Kangema ', 19, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1583, '124', 'Changamwe Branch', 39, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1584, '4', 'Karatina ', 19, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1585, '125', 'Kenyatta Avenue', 39, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1586, '5', 'Kiriaini ', 19, NULL, '2016-03-31 03:35:56', '2016-03-31 03:35:56'), (1587, '126', 'Riverside', 39, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1588, '6', 'Murarandia ', 19, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1589, '127', 'Machakos', 39, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1590, '7', 'Kangari ', 19, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1591, '128', '<NAME>', 39, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1592, '8', 'Othaya ', 19, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1593, '0', 'Head Office ', 40, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1594, '9', 'Thika / Equity Plaza ', 19, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1595, '1', 'Koinange Street ', 40, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1596, '10', 'Kerugoya ', 19, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1597, '3', 'Nakuru ', 40, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1598, '11', 'Nyeri ', 19, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1599, '4', 'Nakuru ', 40, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1600, '12', '<NAME> ', 19, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1601, '5', 'Eldoret ', 40, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1602, '13', 'Nakuru ', 19, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1603, '6', 'Kitale ', 40, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1604, '14', 'Meru ', 19, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1605, '7', 'Westlands ', 40, NULL, '2016-03-31 03:35:57', '2016-03-31 03:35:57'), (1606, '15', '<NAME> ', 19, NULL, '2016-03-31 03:35:58', '2016-03-31 03:35:58'), (1607, '8', '<NAME>', 40, NULL, '2016-03-31 03:35:58', '2016-03-31 03:35:58'), (1608, '16', 'Nyahururu ', 19, NULL, '2016-03-31 03:35:58', '2016-03-31 03:35:58'), (1609, '9', '<NAME>', 40, NULL, '2016-03-31 03:35:58', '2016-03-31 03:35:58'), (1610, '17', 'Community ', 19, NULL, '2016-03-31 03:35:58', '2016-03-31 03:35:58'), (1611, '10', 'Mombasa', 40, NULL, '2016-03-31 03:35:58', '2016-03-31 03:35:58'), (1612, '18', 'Community Corporate ', 19, NULL, '2016-03-31 03:35:58', '2016-03-31 03:35:58'), (1613, '0', 'Head Office ', 41, NULL, '2016-03-31 03:35:58', '2016-03-31 03:35:58'), (1614, '19', 'Embu ', 19, NULL, '2016-03-31 03:35:58', '2016-03-31 03:35:58'), (1615, '1', 'Westlands ', 41, NULL, '2016-03-31 03:35:59', '2016-03-31 03:35:59'), (1616, '20', 'Naivasha ', 19, NULL, '2016-03-31 03:35:59', '2016-03-31 03:35:59'), (1617, '2', 'Parklands ', 41, NULL, '2016-03-31 03:35:59', '2016-03-31 03:35:59'), (1618, '21', 'Chuka ', 19, NULL, '2016-03-31 03:35:59', '2016-03-31 03:35:59'), (1619, '3', 'Koinange Street ', 41, NULL, '2016-03-31 03:35:59', '2016-03-31 03:35:59'), (1620, '22', 'Muranga ', 19, NULL, '2016-03-31 03:35:59', '2016-03-31 03:35:59'), (1621, '4', 'Mombasa ', 41, NULL, '2016-03-31 03:35:59', '2016-03-31 03:35:59'), (1622, '23', 'Molo ', 19, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1623, '6', 'Eldoret', 41, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1624, '24', '<NAME> ', 19, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1625, '7', 'Industrial Area', 41, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1626, '25', 'Mombasa ', 19, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1627, '0', 'H/o Riverside ', 42, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1628, '26', 'Kimathi Street ', 19, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1629, '1', 'Kenindia ', 42, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1630, '27', 'Nanyuki ', 19, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1631, '2', 'Biashara ', 42, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1632, '28', 'Kericho ', 19, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1633, '3', 'Mombasa ', 42, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1634, '29', 'Kisumu ', 19, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1635, '4', 'Westlands ', 42, NULL, '2016-03-31 03:36:00', '2016-03-31 03:36:00'), (1636, '30', 'Eldoret ', 19, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1637, '5', 'Industrial Area ', 42, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1638, '31', 'Nakuru Kenyatta Avenue ', 19, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1639, '6', 'Kisumu ', 42, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1640, '32', 'Kariobangi ', 19, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1641, '7', 'Parklands ', 42, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1642, '33', 'Kitale ', 19, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1643, '8', 'Riverside Drive ', 42, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1644, '34', 'Thika Kenyatta Avenue ', 19, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1645, '9', 'Card Centre ', 42, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1646, '35', 'Knut House ', 19, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1647, '10', 'Hurlingham ', 42, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1648, '36', 'Narok ', 19, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1649, '11', 'Capital Centre ', 42, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1650, '37', 'Nkubu ', 19, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1651, '12', 'Nyali ', 42, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1652, '38', 'Mwea ', 19, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1653, '14', 'Kamukunji ', 42, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1654, '39', 'Matuu ', 19, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1655, '15', 'Eldoret', 42, NULL, '2016-03-31 03:36:01', '2016-03-31 03:36:01'), (1656, '40', 'Maua ', 19, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1657, '16', 'Karen ', 42, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1658, '41', 'Isiolo ', 19, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1659, '17', 'Nakuru ', 42, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1660, '42', 'Kagio ', 19, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1661, '18', 'Gigiri', 42, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1662, '43', 'Gikomba ', 19, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1663, '19', 'Thika', 42, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1664, '44', 'Ukunda ', 19, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1665, NULL, 'Head Office', 43, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1666, '45', 'Malindi ', 19, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1667, NULL, 'Kenyatta Market', 43, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1668, '46', 'Mombasa Digo Road ', 19, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1669, NULL, 'Karen', 43, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1670, '47', 'Moi Avenue ', 19, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1671, NULL, '<NAME>', 43, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1672, '48', 'Bungoma ', 19, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1673, NULL, 'Ngong', 43, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1674, '49', 'Kapsabet ', 19, NULL, '2016-03-31 03:36:02', '2016-03-31 03:36:02'), (1675, NULL, 'Wote - Makueni ', 43, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1676, '50', 'Kakamega ', 19, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1677, NULL, 'Machakos', 43, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1678, '51', 'Kisii ', 19, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1679, NULL, '<NAME>', 43, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1680, '52', 'Nyamira ', 19, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1681, NULL, 'Kibwezi', 43, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1682, '53', 'Litein ', 19, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1683, NULL, '<NAME>', 43, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1684, '54', 'Equity Centre Diaspora', 19, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1685, NULL, 'Emali', 43, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1686, '55', 'Westlands ', 19, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1687, NULL, 'Mlolongo', 43, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1688, '56', 'Industrial Area Kenpipe Plaza ', 19, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1689, NULL, 'Kajiado', 43, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1690, '57', 'Kikuyu ', 19, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1691, NULL, 'Westlands', 43, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1692, '58', 'Garissa ', 19, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1693, NULL, 'Ngara', 43, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1694, '59', 'Mwingi ', 19, NULL, '2016-03-31 03:36:03', '2016-03-31 03:36:03'), (1695, NULL, 'Uthiru', 43, NULL, '2016-03-31 03:36:04', '2016-03-31 03:36:04'), (1696, '60', 'Machakos ', 19, NULL, '2016-03-31 03:36:04', '2016-03-31 03:36:04'), (1697, NULL, 'Kikuyu', 43, NULL, '2016-03-31 03:36:04', '2016-03-31 03:36:04'), (1698, '61', '<NAME> ', 19, NULL, '2016-03-31 03:36:04', '2016-03-31 03:36:04'), (1699, NULL, 'Limuru', 43, NULL, '2016-03-31 03:36:04', '2016-03-31 03:36:04'), (1700, '62', 'Ol-kalao ', 19, NULL, '2016-03-31 03:36:04', '2016-03-31 03:36:04'), (1701, NULL, 'Adams Arcade', 43, NULL, '2016-03-31 03:36:04', '2016-03-31 03:36:04'), (1702, '63', 'Kawangware ', 19, NULL, '2016-03-31 03:36:04', '2016-03-31 03:36:04'), (1703, NULL, 'Kitengela', 43, NULL, '2016-03-31 03:36:04', '2016-03-31 03:36:04'), (1704, '64', 'Kiambu ', 19, NULL, '2016-03-31 03:36:04', '2016-03-31 03:36:04'), (1705, NULL, 'Karuri', 43, NULL, '2016-03-31 03:36:04', '2016-03-31 03:36:04'), (1706, '65', 'Kayole ', 19, NULL, '2016-03-31 03:36:04', '2016-03-31 03:36:04'), (1707, NULL, 'Kawangware', 43, NULL, '2016-03-31 03:36:04', '2016-03-31 03:36:04'), (1708, '66', 'Gatundu ', 19, NULL, '2016-03-31 03:36:05', '2016-03-31 03:36:05'), (1709, NULL, 'Ruiru', 43, NULL, '2016-03-31 03:36:05', '2016-03-31 03:36:05'), (1710, '67', 'Wote ', 19, NULL, '2016-03-31 03:36:05', '2016-03-31 03:36:05'), (1711, NULL, 'Githurai', 43, NULL, '2016-03-31 03:36:06', '2016-03-31 03:36:06'), (1712, '68', 'Mumias ', 19, NULL, '2016-03-31 03:36:06', '2016-03-31 03:36:06'), (1713, NULL, 'Mwingi', 43, NULL, '2016-03-31 03:36:06', '2016-03-31 03:36:06'), (1714, '69', 'Limuru ', 19, NULL, '2016-03-31 03:36:06', '2016-03-31 03:36:06'), (1715, NULL, 'Eastleigh', 43, NULL, '2016-03-31 03:36:06', '2016-03-31 03:36:06'), (1716, '70', 'Kitengela ', 19, NULL, '2016-03-31 03:36:06', '2016-03-31 03:36:06'), (1717, NULL, 'Thika', 43, NULL, '2016-03-31 03:36:06', '2016-03-31 03:36:06'), (1718, '71', 'Githurai ', 19, NULL, '2016-03-31 03:36:06', '2016-03-31 03:36:06'), (1719, NULL, 'Kiambu', 43, NULL, '2016-03-31 03:36:06', '2016-03-31 03:36:06'), (1720, '72', 'Kitui ', 19, NULL, '2016-03-31 03:36:06', '2016-03-31 03:36:06'), (1721, NULL, 'Garissa', 43, NULL, '2016-03-31 03:36:06', '2016-03-31 03:36:06'), (1722, '73', 'Ngong ', 19, NULL, '2016-03-31 03:36:06', '2016-03-31 03:36:06'), (1723, NULL, 'Matuu', 43, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1724, '74', 'Loitoktok ', 19, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1725, NULL, 'Dandora', 43, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1726, '75', 'Bondo ', 19, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1727, NULL, 'Afya Center', 43, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1728, '76', 'Mbita ', 19, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1729, NULL, 'Cannon House', 43, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1730, '77', 'Gilgil ', 19, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1731, NULL, 'Viwandani', 43, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1732, '78', 'Busia ', 19, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1733, NULL, 'Kitui', 43, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1734, '79', 'Voi ', 19, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1735, NULL, '<NAME>', 43, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1736, '80', 'Enterprise Road ', 19, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1737, NULL, 'Enterprise Post Office', 43, NULL, '2016-03-31 03:36:07', '2016-03-31 03:36:07'), (1738, '81', 'Equity Centre ', 19, NULL, '2016-03-31 03:36:08', '2016-03-31 03:36:08'), (1739, NULL, 'Jogoo Road', 43, NULL, '2016-03-31 03:36:08', '2016-03-31 03:36:08'), (1740, '82', 'Donholm ', 19, NULL, '2016-03-31 03:36:08', '2016-03-31 03:36:08'), (1741, NULL, 'Nacico', 43, NULL, '2016-03-31 03:36:08', '2016-03-31 03:36:08'), (1742, '83', 'Mukurwe-ini ', 19, NULL, '2016-03-31 03:36:08', '2016-03-31 03:36:08'), (1743, NULL, 'Kangundo', 43, NULL, '2016-03-31 03:36:08', '2016-03-31 03:36:08'), (1744, '84', 'Eastleigh ', 19, NULL, '2016-03-31 03:36:08', '2016-03-31 03:36:08'), (1745, NULL, 'Kenyatta', 43, NULL, '2016-03-31 03:36:08', '2016-03-31 03:36:08'), (1746, '85', 'Namanga ', 19, NULL, '2016-03-31 03:36:08', '2016-03-31 03:36:08'), (1747, NULL, 'Kariobangi', 43, NULL, '2016-03-31 03:36:08', '2016-03-31 03:36:08'), (1748, '86', 'Kajiado ', 19, NULL, '2016-03-31 03:36:08', '2016-03-31 03:36:08'), (1749, NULL, 'Nakuru', 43, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1750, '87', 'Ruiru ', 19, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1751, NULL, 'Naivasha', 43, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1752, '88', 'Otc ', 19, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1753, NULL, 'Narok', 43, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1754, '89', 'Kenol ', 19, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1755, NULL, 'Eldoret', 43, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1756, '90', 'Tala ', 19, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1757, NULL, 'Kapsabet', 43, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1758, '91', 'Ngara ', 19, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1759, NULL, 'Molo', 43, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1760, '92', '<NAME> ', 19, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1761, NULL, 'Kabarnet', 43, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1762, '93', 'Githunguri ', 19, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1763, NULL, '<NAME>', 43, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1764, '94', 'Tea Room ', 19, NULL, '2016-03-31 03:36:09', '2016-03-31 03:36:09'), (1765, NULL, 'Kitale', 43, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1766, '95', 'Buru Buru ', 19, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1767, NULL, 'Gilgil', 43, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1768, '96', 'Mbale ', 19, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1769, NULL, 'Kapenguria', 43, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1770, '97', 'Siaya ', 19, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1771, NULL, 'Nyahururu', 43, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1772, '98', '<NAME> ', 19, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1773, NULL, 'Lodwar', 43, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1774, '99', 'Lodwar ', 19, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1775, NULL, '<NAME>', 43, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1776, '100', 'Mandera ', 19, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1777, NULL, 'Maralal', 43, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1778, '101', 'Marsabit ', 19, NULL, '2016-03-31 03:36:10', '2016-03-31 03:36:10'), (1779, NULL, 'Iten', 43, NULL, '2016-03-31 03:36:11', '2016-03-31 03:36:11'), (1780, '102', 'Moyale ', 19, NULL, '2016-03-31 03:36:11', '2016-03-31 03:36:11'), (1781, NULL, 'Kisumu', 43, NULL, '2016-03-31 03:36:11', '2016-03-31 03:36:11'), (1782, '103', 'Wajir ', 19, NULL, '2016-03-31 03:36:11', '2016-03-31 03:36:11'), (1783, NULL, 'Kakamega', 43, NULL, '2016-03-31 03:36:11', '2016-03-31 03:36:11'), (1784, '104', '<NAME> ', 19, NULL, '2016-03-31 03:36:11', '2016-03-31 03:36:11'), (1785, NULL, 'Bungoma', 43, NULL, '2016-03-31 03:36:11', '2016-03-31 03:36:11'), (1786, '105', '<NAME> ', 19, NULL, '2016-03-31 03:36:11', '2016-03-31 03:36:11'), (1787, NULL, 'HomaBay', 43, NULL, '2016-03-31 03:36:11', '2016-03-31 03:36:11'), (1788, '106', 'Kilifi ', 19, NULL, '2016-03-31 03:36:11', '2016-03-31 03:36:11'), (1789, NULL, 'Busia', 43, NULL, '2016-03-31 03:36:12', '2016-03-31 03:36:12'), (1790, '107', 'Kapenguria ', 19, NULL, '2016-03-31 03:36:12', '2016-03-31 03:36:12'), (1791, NULL, 'Mumias', 43, NULL, '2016-03-31 03:36:12', '2016-03-31 03:36:12'), (1792, '108', 'Mombasa Road ', 19, NULL, '2016-03-31 03:36:12', '2016-03-31 03:36:12'), (1793, NULL, 'Siaya', 43, NULL, '2016-03-31 03:36:12', '2016-03-31 03:36:12'), (1794, '109', 'Eldoret Market ', 19, NULL, '2016-03-31 03:36:12', '2016-03-31 03:36:12'), (1795, NULL, 'Kisii', 43, NULL, '2016-03-31 03:36:12', '2016-03-31 03:36:12'), (1796, '110', 'Maralal ', 19, NULL, '2016-03-31 03:36:12', '2016-03-31 03:36:12'), (1797, NULL, 'Webuye', 43, NULL, '2016-03-31 03:36:12', '2016-03-31 03:36:12'), (1798, '111', 'Kimende ', 19, NULL, '2016-03-31 03:36:12', '2016-03-31 03:36:12'), (1799, NULL, '<NAME>', 43, NULL, '2016-03-31 03:36:12', '2016-03-31 03:36:12'), (1800, '112', 'Luanda ', 19, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1801, NULL, '<NAME>', 43, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1802, '113', 'Ku Sub Branch ', 19, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1803, NULL, 'Luanda', 43, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1804, '114', 'Kengeleni ', 19, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1805, NULL, 'Keroka', 43, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1806, '115', '<NAME> ', 19, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1807, NULL, 'Kehancha', 43, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1808, '116', 'Migori ', 19, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1809, NULL, 'Nyamira', 43, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1810, '117', 'Kibera ', 19, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1811, NULL, 'Bomet', 43, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1812, '118', 'Kasarani ', 19, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'); INSERT INTO `bank_branches` (`id`, `branch_code`, `bank_branch_name`, `bank_id`, `organization_id`, `created_at`, `updated_at`) VALUES (1813, NULL, 'Kericho', 43, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1814, '119', 'Mtwapa ', 19, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1815, NULL, 'Mbale', 43, NULL, '2016-03-31 03:36:13', '2016-03-31 03:36:13'), (1816, '120', 'Changamwe ', 19, NULL, '2016-03-31 03:36:14', '2016-03-31 03:36:14'), (1817, NULL, 'Oyugis', 43, NULL, '2016-03-31 03:36:14', '2016-03-31 03:36:14'), (1818, '121', 'Hola ', 19, NULL, '2016-03-31 03:36:14', '2016-03-31 03:36:14'), (1819, NULL, 'Mbita', 43, NULL, '2016-03-31 03:36:14', '2016-03-31 03:36:14'), (1820, '122', 'Bomet ', 19, NULL, '2016-03-31 03:36:14', '2016-03-31 03:36:14'), (1821, NULL, 'Bondo', 43, NULL, '2016-03-31 03:36:14', '2016-03-31 03:36:14'), (1822, '123', 'Kilgoris ', 19, NULL, '2016-03-31 03:36:14', '2016-03-31 03:36:14'), (1823, '124', 'Keroka ', 19, NULL, '2016-03-31 03:36:14', '2016-03-31 03:36:14'), (1824, NULL, 'Chaani', 43, NULL, '2016-03-31 03:36:14', '2016-03-31 03:36:14'), (1825, NULL, 'Ukunda', 43, NULL, '2016-03-31 03:36:14', '2016-03-31 03:36:14'), (1826, '125', 'KAREN', 19, NULL, '2016-03-31 03:36:14', '2016-03-31 03:36:14'), (1827, NULL, 'Voi', 43, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1828, '126', '<NAME>VE', 19, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1829, NULL, 'Kilifi', 43, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1830, '127', 'MPEKETONI', 19, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1831, NULL, 'Likoni', 43, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1832, '128', '<NAME>', 19, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1833, NULL, 'Mombasa', 43, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1834, '129', '<NAME>', 19, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1835, NULL, 'Moi Avenue', 43, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1836, '130', 'City Hall', 19, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1837, NULL, 'Malindi', 43, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1838, '131', '<NAME>', 19, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1839, NULL, 'Mtwapa', 43, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1840, '132', 'Embakasi', 19, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1841, NULL, 'Kisauni', 43, NULL, '2016-03-31 03:36:15', '2016-03-31 03:36:15'), (1842, '133', 'KPCU', 19, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1843, NULL, 'Mariakani', 43, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1844, '134', 'Ridgeways', 19, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1845, NULL, 'Taveta', 43, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1846, '135', 'Runyenjes Sub Branch', 19, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1847, NULL, 'Watamu', 43, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1848, '136', 'Dadaad', 19, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1849, NULL, 'Kerugoya', 43, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1850, '137', 'Kangemi', 19, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1851, NULL, 'Embu', 43, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1852, '138', 'Nyali Centre Corporate', 19, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1853, NULL, 'Meru', 43, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1854, '139', 'Kabarnet', 19, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1855, NULL, 'Nanyuki', 43, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1856, '140', 'Westlands Corporate', 19, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1857, NULL, 'Muranga', 43, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1858, '141', 'Lavington Corporate', 19, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1859, '142', '<NAME>', 19, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1860, NULL, 'Nyeri', 43, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1861, '143', 'Awendo', 19, NULL, '2016-03-31 03:36:16', '2016-03-31 03:36:16'), (1862, NULL, 'Karatina', 43, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1863, '144', 'Ruai', 19, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1864, NULL, 'Chuka', 43, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1865, '145', 'Kilimani', 19, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1866, NULL, 'Wanguru', 43, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1867, '146', 'Nakuru Westside Mall', 19, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1868, NULL, 'Maua', 43, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1869, '147', 'Kilimani Supreme', 19, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1870, NULL, 'Isiolo', 43, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1871, '148', 'JKIA Cargo Centre', 19, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1872, '0', 'Eldoret ', 44, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1873, '149', 'EPZ Athi River', 19, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1874, '1', 'Kericho ', 44, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1875, '150', 'Oyugis', 19, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1876, '2', 'Kisumu ', 44, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1877, '151', 'Mayfair Supreme Centre', 19, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1878, 's', 'Kitale ', 44, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1879, '152', 'Juja', 19, NULL, '2016-03-31 03:36:17', '2016-03-31 03:36:17'), (1880, '4', 'Treasury Square ', 44, NULL, '2016-03-31 03:36:18', '2016-03-31 03:36:18'), (1881, '153', 'Iten', 19, NULL, '2016-03-31 03:36:18', '2016-03-31 03:36:18'), (1882, '5', 'Kilindini ', 44, NULL, '2016-03-31 03:36:18', '2016-03-31 03:36:18'), (1883, '154', 'Nyali Supreme Centre', 19, NULL, '2016-03-31 03:36:18', '2016-03-31 03:36:18'), (1884, '6', 'Kenyatta Avenue ', 44, NULL, '2016-03-31 03:36:18', '2016-03-31 03:36:18'), (1885, '155', 'Thika Supreme Centre', 19, NULL, '2016-03-31 03:36:18', '2016-03-31 03:36:18'), (1886, '8', 'Moi Avenue ', 44, NULL, '2016-03-31 03:36:18', '2016-03-31 03:36:18'), (1887, '156', 'Mombasa Supreme Centre', 19, NULL, '2016-03-31 03:36:19', '2016-03-31 03:36:19'), (1888, '9', 'Nakuru ', 44, NULL, '2016-03-31 03:36:19', '2016-03-31 03:36:19'), (1889, '157', 'Kapsowar Sub-Branch', 19, NULL, '2016-03-31 03:36:19', '2016-03-31 03:36:19'), (1890, '10', 'Nanyuki ', 44, NULL, '2016-03-31 03:36:19', '2016-03-31 03:36:19'), (1891, '158', 'Kwale', 19, NULL, '2016-03-31 03:36:19', '2016-03-31 03:36:19'), (1892, '11', 'Nyeri ', 44, NULL, '2016-03-31 03:36:19', '2016-03-31 03:36:19'), (1893, '159', 'Lamu', 19, NULL, '2016-03-31 03:36:19', '2016-03-31 03:36:19'), (1894, '12', 'Thika ', 44, NULL, '2016-03-31 03:36:19', '2016-03-31 03:36:19'), (1895, '160', 'Kenyatta Avenue Supreme', 19, NULL, '2016-03-31 03:36:19', '2016-03-31 03:36:19'), (1896, '15', 'Westlands ', 44, NULL, '2016-03-31 03:36:19', '2016-03-31 03:36:19'), (1897, '161', 'KPA Sub-Branch Mombasa', 19, NULL, '2016-03-31 03:36:19', '2016-03-31 03:36:19'), (1898, '16', 'Machakos ', 44, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1899, '162', 'Gigiri Supreme Centre', 19, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1900, '17', 'Meru ', 44, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1901, '163', 'Karen Supreme Centre', 19, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1902, '19', 'Harambee Avenue ', 44, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1903, '164', 'Eldoret Supreme Centre', 19, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1904, '20', 'Kiambu ', 44, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1905, '165', 'Kakuma', 19, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1906, '53', 'Industrial Area ', 44, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1907, '166', 'Archers Post ', 19, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1908, '54', 'Kakamega ', 44, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1909, '167', 'Mutomo', 19, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1910, '60', 'Malindi ', 44, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1911, '168', 'Kiserian Sub Branch', 19, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1912, '64', 'Koinage', 44, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1913, '169', '<NAME>', 19, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1914, '71', 'Yaya Centre Branch ', 44, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1915, '170', 'Kisumu Supreme Centre', 19, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1916, '72', 'Ruaraka ', 44, NULL, '2016-03-31 03:36:20', '2016-03-31 03:36:20'), (1917, '171', '<NAME>', 19, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1918, '73', 'Langata ', 44, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1919, '777', 'Equity Hapo Hapo', 19, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1920, '74', 'Makupa ', 44, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1921, '0', 'Head Office ', 20, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1922, '75', 'Karen ', 44, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1923, '1', 'Kiambu ', 20, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1924, '76', 'Muthaiga ', 44, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1925, '2', 'Githunguri ', 20, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1926, '78', 'C.o.u ', 44, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1927, '3', 'Sonalux ', 20, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1928, '79', 'Ukay ', 44, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1929, '4', 'Gatundu ', 20, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1930, '80', 'Eastleigh ', 44, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1931, '5', 'Thika ', 20, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1932, '81', 'Kisii ', 44, NULL, '2016-03-31 03:36:21', '2016-03-31 03:36:21'), (1933, '6', 'Muranga ', 20, NULL, '2016-03-31 03:36:22', '2016-03-31 03:36:22'), (1934, '82', 'Upper Hill Branch ', 44, NULL, '2016-03-31 03:36:22', '2016-03-31 03:36:22'), (1935, '7', 'Kangari ', 20, NULL, '2016-03-31 03:36:22', '2016-03-31 03:36:22'), (1936, '83', 'Nyali ', 44, NULL, '2016-03-31 03:36:22', '2016-03-31 03:36:22'), (1937, '8', 'Kiria-ini ', 20, NULL, '2016-03-31 03:36:22', '2016-03-31 03:36:22'), (1938, '84', 'Chiromo', 44, NULL, '2016-03-31 03:36:22', '2016-03-31 03:36:22'), (1939, '9', 'Kangema ', 20, NULL, '2016-03-31 03:36:22', '2016-03-31 03:36:22'), (1940, '85', 'Greenspan', 44, NULL, '2016-03-31 03:36:22', '2016-03-31 03:36:22'), (1941, '11', 'Othaya ', 20, NULL, '2016-03-31 03:36:22', '2016-03-31 03:36:22'), (1942, '86', 'The T-Mall', 44, NULL, '2016-03-31 03:36:22', '2016-03-31 03:36:22'), (1943, '12', 'Kenyatta Avenue ', 20, NULL, '2016-03-31 03:36:23', '2016-03-31 03:36:23'), (1944, '87', 'The Junction', 44, NULL, '2016-03-31 03:36:23', '2016-03-31 03:36:23'), (1945, '14', 'Cargen House ', 20, NULL, '2016-03-31 03:36:23', '2016-03-31 03:36:23'), (1946, '89', 'Kitengela', 44, NULL, '2016-03-31 03:36:23', '2016-03-31 03:36:23'), (1947, '15', 'Laptrust', 20, NULL, '2016-03-31 03:36:23', '2016-03-31 03:36:23'), (1948, '90', 'Bungoma ', 44, NULL, '2016-03-31 03:36:23', '2016-03-31 03:36:23'), (1949, '16', 'City Hall Annex', 20, NULL, '2016-03-31 03:36:24', '2016-03-31 03:36:24'), (1950, '91', 'Thika Road Mall', 44, NULL, '2016-03-31 03:36:24', '2016-03-31 03:36:24'), (1951, '17', 'Kasarani', 20, NULL, '2016-03-31 03:36:24', '2016-03-31 03:36:24'), (1952, '92', '<NAME>', 44, NULL, '2016-03-31 03:36:24', '2016-03-31 03:36:24'), (1953, '18', 'Nakuru Finance House ', 20, NULL, '2016-03-31 03:36:24', '2016-03-31 03:36:24'), (1954, '1', 'Head Office ', 45, NULL, '2016-03-31 03:36:24', '2016-03-31 03:36:24'), (1955, '19', 'Nakuru Market', 20, NULL, '2016-03-31 03:36:24', '2016-03-31 03:36:24'), (1956, '2', 'Mombasa ', 45, NULL, '2016-03-31 03:36:24', '2016-03-31 03:36:24'), (1957, '21', 'Dagoretti', 20, NULL, '2016-03-31 03:36:24', '2016-03-31 03:36:24'), (1958, '3', 'Eldoret ', 45, NULL, '2016-03-31 03:36:24', '2016-03-31 03:36:24'), (1959, '22', 'Kericho', 20, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1960, '4', 'Nakuru ', 45, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1961, '23', 'Nyahururu', 20, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1962, '5', 'Mia ', 45, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1963, '24', 'Ruiru ', 20, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1964, '6', 'Jkia ', 45, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1965, '25', 'Kisumu Reliance', 20, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1966, '7', '<NAME> ', 45, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1967, '26', 'Nyamira ', 20, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1968, '8', 'Kabarak ', 45, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1969, '27', 'Kisii ', 20, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1970, '9', 'Olenguruone ', 45, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1971, '28', '<NAME>', 20, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1972, '10', 'Kericho ', 45, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1973, '29', 'Narok', 20, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1974, '11', '<NAME>', 45, NULL, '2016-03-31 03:36:25', '2016-03-31 03:36:25'), (1975, '31', 'Industrial Area ', 20, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1976, '12', 'Epz ', 45, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1977, '32', '<NAME>', 20, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1978, '13', '<NAME> ', 45, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1979, '33', 'Donholm ', 20, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1980, '14', 'Kabarnet ', 45, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1981, '34', 'Utawala', 20, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1982, '15', 'Kitale', 45, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1983, '35', 'Fourways Retail Branch', 20, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1984, '16', 'Narok', 45, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1985, '37', 'Olkalou', 20, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1986, '17', 'Bomet', 45, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1987, '38', 'Ktda Plaza ', 20, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1988, '18', 'Iten', 45, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1989, '41', 'Kariobangi ', 20, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1990, '1', 'Westlands ', 46, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1991, '42', 'Gikomba Area 42', 20, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1992, '2', 'Enterprise Road ', 46, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1993, '3', 'Upper Hill ', 46, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1994, '43', 'Sokoni ', 20, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1995, '99', 'Head Office ', 46, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1996, '45', 'Githurai ', 20, NULL, '2016-03-31 03:36:26', '2016-03-31 03:36:26'), (1997, '1', '<NAME>, Upperhill', 47, NULL, '2016-03-31 03:36:27', '2016-03-31 03:36:27'), (1998, '46', 'Yaya ', 20, NULL, '2016-03-31 03:36:27', '2016-03-31 03:36:27'), (1999, '2', 'Riverside Drive', 47, NULL, '2016-03-31 03:36:27', '2016-03-31 03:36:27'), (2000, '47', 'Limuru ', 20, NULL, '2016-03-31 03:36:27', '2016-03-31 03:36:27'), (2001, '3', 'Lunga Lunga Square', 47, NULL, '2016-03-31 03:36:27', '2016-03-31 03:36:27'), (2002, '48', 'Westlands', 20, NULL, '2016-03-31 03:36:27', '2016-03-31 03:36:27'), (2003, '49', 'Kagwe', 20, NULL, '2016-03-31 03:36:28', '2016-03-31 03:36:28'), (2004, '51', 'Banana ', 20, NULL, '2016-03-31 03:36:28', '2016-03-31 03:36:28'), (2005, '53', 'Naivasha ', 20, NULL, '2016-03-31 03:36:28', '2016-03-31 03:36:28'), (2006, '54', 'Chuka', 20, NULL, '2016-03-31 03:36:28', '2016-03-31 03:36:28'), (2007, '55', 'Nyeri ', 20, NULL, '2016-03-31 03:36:29', '2016-03-31 03:36:29'), (2008, '56', 'Karatina', 20, NULL, '2016-03-31 03:36:29', '2016-03-31 03:36:29'), (2009, '57', 'Kerugoya ', 20, NULL, '2016-03-31 03:36:29', '2016-03-31 03:36:29'), (2010, '58', '<NAME> ', 20, NULL, '2016-03-31 03:36:29', '2016-03-31 03:36:29'), (2011, '59', 'River Road ', 20, NULL, '2016-03-31 03:36:29', '2016-03-31 03:36:29'), (2012, '61', 'Kayole ', 20, NULL, '2016-03-31 03:36:29', '2016-03-31 03:36:29'), (2013, '62', 'Nkubu ', 20, NULL, '2016-03-31 03:36:29', '2016-03-31 03:36:29'), (2014, '63', 'Meru ', 20, NULL, '2016-03-31 03:36:30', '2016-03-31 03:36:30'), (2015, '64', 'Nanyuki', 20, NULL, '2016-03-31 03:36:30', '2016-03-31 03:36:30'), (2016, '65', 'Ktda Plaza Corporate ', 20, NULL, '2016-03-31 03:36:30', '2016-03-31 03:36:30'), (2017, '66', 'Ongata Rongai ', 20, NULL, '2016-03-31 03:36:30', '2016-03-31 03:36:30'), (2018, '67', 'Kajiado', 20, NULL, '2016-03-31 03:36:30', '2016-03-31 03:36:30'), (2019, '68', 'Fourways Corporate Branch ', 20, NULL, '2016-03-31 03:36:30', '2016-03-31 03:36:30'), (2020, '69', 'Ngara', 20, NULL, '2016-03-31 03:36:30', '2016-03-31 03:36:30'), (2021, '71', 'Kitengela ', 20, NULL, '2016-03-31 03:36:30', '2016-03-31 03:36:30'), (2022, '72', 'Kitui', 20, NULL, '2016-03-31 03:36:30', '2016-03-31 03:36:30'), (2023, '73', 'Mackakos ', 20, NULL, '2016-03-31 03:36:30', '2016-03-31 03:36:30'), (2024, '74', 'Migori', 20, NULL, '2016-03-31 03:36:30', '2016-03-31 03:36:30'), (2025, '75', 'Embu ', 20, NULL, '2016-03-31 03:36:30', '2016-03-31 03:36:30'), (2026, '76', 'Mwea', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2027, '77', 'Bungoma ', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2028, '78', 'Kakamega ', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2029, '79', 'Busia ', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2030, '81', 'Mumias', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2031, '82', '<NAME>', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2032, '83', 'Molo ', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2033, '84', 'Bomet', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2034, '85', 'Eldoret ', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2035, '87', 'Leitin', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2036, '89', 'Bamburi', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2037, '91', 'Ukunda', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2038, '92', 'Digo', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2039, '93', 'Kitale ', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2040, '94', 'Mtwapa', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2041, '95', 'Mombasa Nkrumah Road', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2042, '96', 'Mombasa Jomo Kenyatta Avenue', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2043, '97', 'Kapsabet ', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2044, '98', 'Malindi', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2045, '102', 'Kikuyu', 20, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2046, NULL, 'head office', 21, NULL, '2016-03-31 03:36:31', '2016-03-31 03:36:31'), (2047, NULL, 'Kariobangi', 21, NULL, '2016-03-31 03:36:32', '2016-03-31 03:36:32'), (2048, NULL, 'Kawangware', 21, NULL, '2016-03-31 03:36:32', '2016-03-31 03:36:32'), (2049, NULL, 'Ngong Road', 21, NULL, '2016-03-31 03:36:32', '2016-03-31 03:36:32'), (2050, NULL, 'Kayole Branch', 21, NULL, '2016-03-31 03:36:32', '2016-03-31 03:36:32'), (2051, NULL, 'OTC', 21, NULL, '2016-03-31 03:36:32', '2016-03-31 03:36:32'), (2052, NULL, 'Thika Road', 21, NULL, '2016-03-31 03:36:32', '2016-03-31 03:36:32'), (2053, NULL, 'Kibera', 21, NULL, '2016-03-31 03:36:32', '2016-03-31 03:36:32'), (2054, NULL, 'Kimathi Street', 21, NULL, '2016-03-31 03:36:32', '2016-03-31 03:36:32'), (2055, NULL, 'Kitengela', 21, NULL, '2016-03-31 03:36:32', '2016-03-31 03:36:32'), (2056, NULL, 'Kitui', 21, NULL, '2016-03-31 03:36:32', '2016-03-31 03:36:32'), (2057, NULL, 'Emali', 21, NULL, '2016-03-31 03:36:32', '2016-03-31 03:36:32'), (2058, NULL, 'Wote', 21, NULL, '2016-03-31 03:36:32', '2016-03-31 03:36:32'), (2059, NULL, 'Mwingi', 21, NULL, '2016-03-31 03:36:32', '2016-03-31 03:36:32'), (2060, NULL, 'Makutano', 21, NULL, '2016-03-31 03:36:33', '2016-03-31 03:36:33'), (2061, NULL, 'Nkubu', 21, NULL, '2016-03-31 03:36:33', '2016-03-31 03:36:33'), (2062, NULL, 'Meru', 21, NULL, '2016-03-31 03:36:33', '2016-03-31 03:36:33'), (2063, NULL, 'Maua', 21, NULL, '2016-03-31 03:36:33', '2016-03-31 03:36:33'), (2064, NULL, 'Isiolo', 21, NULL, '2016-03-31 03:36:33', '2016-03-31 03:36:33'), (2065, NULL, 'Embu', 21, NULL, '2016-03-31 03:36:33', '2016-03-31 03:36:33'), (2066, NULL, 'Mwea', 21, NULL, '2016-03-31 03:36:33', '2016-03-31 03:36:33'), (2067, NULL, 'Machakos', 21, NULL, '2016-03-31 03:36:34', '2016-03-31 03:36:34'), (2068, NULL, 'Tala Plaza', 21, NULL, '2016-03-31 03:36:34', '2016-03-31 03:36:34'), (2069, NULL, 'Kiserian', 21, NULL, '2016-03-31 03:36:34', '2016-03-31 03:36:34'), (2070, NULL, 'Matuu', 21, NULL, '2016-03-31 03:36:35', '2016-03-31 03:36:35'), (2071, NULL, 'Kiambu', 21, NULL, '2016-03-31 03:36:35', '2016-03-31 03:36:35'), (2072, NULL, 'Muranga ', 21, NULL, '2016-03-31 03:36:35', '2016-03-31 03:36:35'), (2073, NULL, 'Nanyuki', 21, NULL, '2016-03-31 03:36:35', '2016-03-31 03:36:35'), (2074, NULL, 'Timau', 21, NULL, '2016-03-31 03:36:35', '2016-03-31 03:36:35'), (2075, NULL, 'Thika', 21, NULL, '2016-03-31 03:36:35', '2016-03-31 03:36:35'), (2076, NULL, 'Githunguri', 21, NULL, '2016-03-31 03:36:35', '2016-03-31 03:36:35'), (2077, NULL, 'Kerugoya', 21, NULL, '2016-03-31 03:36:35', '2016-03-31 03:36:35'), (2078, NULL, 'Nyeri', 21, NULL, '2016-03-31 03:36:35', '2016-03-31 03:36:35'), (2079, NULL, 'Karatina', 21, NULL, '2016-03-31 03:36:35', '2016-03-31 03:36:35'), (2080, NULL, 'Rongai', 21, NULL, '2016-03-31 03:36:35', '2016-03-31 03:36:35'), (2081, NULL, 'Narumoru', 21, NULL, '2016-03-31 03:36:35', '2016-03-31 03:36:35'), (2082, NULL, 'Bungoma', 21, NULL, '2016-03-31 03:36:35', '2016-03-31 03:36:35'), (2083, NULL, 'Webuye', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2084, NULL, 'Mumias', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2085, NULL, 'Kakamega', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2086, NULL, 'Busia', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2087, NULL, 'Kimilili', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2088, NULL, 'Kapenguria', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2089, NULL, 'Bomet', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2090, NULL, 'Litein', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2091, NULL, 'Kericho', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2092, NULL, 'Kapsabet', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2093, NULL, 'Kitale', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2094, NULL, 'Kabarnet', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2095, NULL, 'Rware Shop', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2096, NULL, 'Maralal', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2097, NULL, 'Olenguruone', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2098, NULL, 'Eldoret', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2099, NULL, 'Rumuruti', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2100, NULL, 'Nyahururu', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2101, NULL, 'Nakuru', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2102, NULL, '<NAME>', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2103, NULL, 'Naivasha ', 21, NULL, '2016-03-31 03:36:36', '2016-03-31 03:36:36'), (2104, NULL, 'Njambini', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2105, NULL, 'Narok', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2106, NULL, 'Molo', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2107, NULL, 'Kinamba', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2108, NULL, 'Njoro', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2109, NULL, 'Mombasa Central', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2110, NULL, 'Malindi', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2111, NULL, 'Kengeleni', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2112, NULL, 'Voi ', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2113, NULL, 'Changamwe', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2114, NULL, 'Kongowea ', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2115, NULL, 'Ukunda', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2116, NULL, 'Mpeketoni', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2117, NULL, 'Kisumu', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2118, NULL, 'Ugunja', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2119, NULL, 'Bondo', 21, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2120, '0', 'Head Office', 22, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2121, '1', 'Kimathi Street', 22, NULL, '2016-03-31 03:36:37', '2016-03-31 03:36:37'), (2122, '2', 'Ind Area ', 22, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2123, '3', 'Westlands ', 22, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2124, '4', 'Lavington ', 22, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2125, '5', 'Nkrumah Road , Mombasa ', 22, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2126, '6', 'Nakuru ', 22, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2127, '7', 'Eldoret ', 22, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2128, '8', 'Muthaiga ', 22, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2129, '9', 'Nanyuki ', 22, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2130, '10', 'Thika ', 22, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2131, '11', 'Gikomba ', 22, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2132, '12', 'Ngong Road ', 22, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2133, '13', 'Meru ', 22, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2134, '14', 'Nyali', 22, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2135, '1', 'Wabera Street ', 23, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2136, '2', 'Eastleigh 1 ', 23, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2137, '3', 'Mombasa 1 ', 23, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2138, '4', 'Garissa ', 23, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2139, '5', 'Eastleigh 2 - General Waruinge ', 23, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2140, '6', 'Malindi ', 23, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2141, '7', 'Kisumu ', 23, NULL, '2016-03-31 03:36:38', '2016-03-31 03:36:38'), (2142, '8', 'Kimathi Street ', 23, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2143, '9', 'Westlands ', 23, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2144, '10', 'South C ', 23, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2145, '11', 'Industrial Area ', 23, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2146, '12', 'Masalani ', 23, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2147, '13', 'Habasweni ', 23, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2148, '14', 'Wajir ', 23, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2149, '15', 'Moyale ', 23, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2150, '16', 'Nakuru ', 23, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2151, '17', 'Mombasa 2 ', 23, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2152, '18', '<NAME>', 23, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2153, '999', 'Head Office/clearing Center ', 23, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2154, '0', 'Banda', 24, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2155, '1', 'Mombasa ', 24, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2156, '2', 'Industrial Area ', 24, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2157, '3', 'Kimathi St.', 24, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2158, '4', 'Kisumu Branch ', 24, NULL, '2016-03-31 03:36:39', '2016-03-31 03:36:39'), (2159, '5', 'Westlands ', 24, NULL, '2016-03-31 03:36:40', '2016-03-31 03:36:40'), (2160, '7', 'Parklands 3rd Avenue ', 24, NULL, '2016-03-31 03:36:40', '2016-03-31 03:36:40'), (2161, '1', 'Head Office ', 25, NULL, '2016-03-31 03:36:40', '2016-03-31 03:36:40'), (2162, '2', 'Westlands ', 25, NULL, '2016-03-31 03:36:40', '2016-03-31 03:36:40'), (2163, '3', 'Mombasa ', 25, NULL, '2016-03-31 03:36:40', '2016-03-31 03:36:40'), (2164, '4', 'Eldoret ', 25, NULL, '2016-03-31 03:36:40', '2016-03-31 03:36:40'), (2165, '5', 'Kisumu ', 25, NULL, '2016-03-31 03:36:41', '2016-03-31 03:36:41'), (2166, '6', '<NAME>ve ', 25, NULL, '2016-03-31 03:36:41', '2016-03-31 03:36:41'), (2167, '7', 'Mombasa Road ', 25, NULL, '2016-03-31 03:36:41', '2016-03-31 03:36:41'), (2168, '8', 'Nyali', 25, NULL, '2016-03-31 03:36:41', '2016-03-31 03:36:41'), (2169, '9', 'Ngong Road', 25, NULL, '2016-03-31 03:36:42', '2016-03-31 03:36:42'), (2170, '10', 'Nakuru', 25, NULL, '2016-03-31 03:36:42', '2016-03-31 03:36:42'), (2171, '0', 'Head Office', 26, NULL, '2016-03-31 03:36:42', '2016-03-31 03:36:42'), (2172, '1', 'Kimathi Street', 26, NULL, '2016-03-31 03:36:42', '2016-03-31 03:36:42'), (2173, '2', 'Ind Area ', 26, NULL, '2016-03-31 03:36:42', '2016-03-31 03:36:42'), (2174, '3', 'Westlands ', 26, NULL, '2016-03-31 03:36:42', '2016-03-31 03:36:42'), (2175, '4', 'Lavington ', 26, NULL, '2016-03-31 03:36:42', '2016-03-31 03:36:42'), (2176, '5', 'Nkrumah Road , Mombasa ', 26, NULL, '2016-03-31 03:36:42', '2016-03-31 03:36:42'), (2177, '6', 'Nakuru ', 26, NULL, '2016-03-31 03:36:42', '2016-03-31 03:36:42'), (2178, '7', 'Eldoret ', 26, NULL, '2016-03-31 03:36:42', '2016-03-31 03:36:42'), (2179, '8', 'Muthaiga ', 26, NULL, '2016-03-31 03:36:42', '2016-03-31 03:36:42'), (2180, '9', 'Nanyuki ', 26, NULL, '2016-03-31 03:36:42', '2016-03-31 03:36:42'), (2181, '10', 'Thika ', 26, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2182, '11', 'Gikomba ', 26, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2183, '12', '<NAME> ', 26, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2184, '13', 'Meru ', 26, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2185, '14', 'Nyali', 26, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2186, '15', 'Sky Park', 26, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2187, '16', 'Karen', 26, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2188, '0', 'Head Office ', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2189, '1', 'Central Clearing Centre ', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2190, '2', 'Upperhill ', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2191, '3', 'Eastleigh ', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2192, '4', 'Kenyatta Avenue ', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2193, '5', 'Mombasa ', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2194, '6', 'Garissa ', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2195, '7', 'Lamu ', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2196, '8', 'Malindi ', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2197, '9', 'Muthaiga ', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2198, '10', 'Bondeni ', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2199, '11', 'Eastleigh 7th Street', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2200, '12', 'Eastleigh Athumani Kipanga Street', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2201, '13', 'Westlands', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2202, '14', 'Industrial Area', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2203, '15', '<NAME>', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2204, '16', 'Bombululu', 27, NULL, '2016-03-31 03:36:43', '2016-03-31 03:36:43'), (2205, '17', 'Mombasa Road', 27, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2206, '0', 'Head Office ', 28, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2207, '1', 'Mombasa ', 28, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2208, '2', 'Industrial Area ', 28, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2209, '3', 'Westlands ', 28, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2210, '4', 'Nyali', 28, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2211, '46', 'Mombasa ', 29, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2212, '47', 'Malindi ', 29, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2213, '48', 'Kimathi Street ', 29, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2214, '49', 'Kenyatta Avenue ', 29, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2215, '86', 'Kisumu ', 29, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2216, '108', 'Industrial Area', 29, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2217, '109', 'HBL Westlands', 29, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2218, '16', 'Kitengela', 30, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2219, '17', 'Naivasha', 30, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2220, '100', 'Head Office', 30, NULL, '2016-03-31 03:36:44', '2016-03-31 03:36:44'), (2221, '200', 'Rehani House', 30, NULL, '2016-03-31 03:36:45', '2016-03-31 03:36:45'), (2222, '210', 'Kenyatta Market', 30, NULL, '2016-03-31 03:36:45', '2016-03-31 03:36:45'), (2223, '220', 'Gill House', 30, NULL, '2016-03-31 03:36:45', '2016-03-31 03:36:45'), (2224, '230', 'Buru Buru', 30, NULL, '2016-03-31 03:36:45', '2016-03-31 03:36:45'), (2225, '260', 'Thika Road Mall', 30, NULL, '2016-03-31 03:36:45', '2016-03-31 03:36:45'), (2226, '270', 'Sameer Business Park', 30, NULL, '2016-03-31 03:36:45', '2016-03-31 03:36:45'), (2227, '280', 'Westlands', 30, NULL, '2016-03-31 03:36:45', '2016-03-31 03:36:45'), (2228, '300', 'Mombasa', 30, NULL, '2016-03-31 03:36:45', '2016-03-31 03:36:45'), (2229, '310', 'Nyali ', 30, NULL, '2016-03-31 03:36:45', '2016-03-31 03:36:45'), (2230, '400', 'Nakuru', 30, NULL, '2016-03-31 03:36:45', '2016-03-31 03:36:45'), (2231, '410', 'Eldoret', 30, NULL, '2016-03-31 03:36:45', '2016-03-31 03:36:45'), (2232, '500', 'Thika', 30, NULL, '2016-03-31 03:36:45', '2016-03-31 03:36:45'), (2233, '510', 'Nyeri', 30, NULL, '2016-03-31 03:36:45', '2016-03-31 03:36:45'), (2234, '520', 'Meru', 30, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2235, '600', 'Kisumu', 30, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2236, '0', 'Kenyatta Avenue ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2237, '1', '2nd Nong Avenue ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2238, '2', 'Sarit Centre ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2239, '3', 'Head Office ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2240, '4', 'Biashara St ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2241, '5', 'Mombasa ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2242, '6', 'Industrial Area ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2243, '7', 'Kisumu ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2244, '8', 'Karen ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2245, '9', 'Panari Centre ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2246, '10', 'Parklands ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2247, '11', 'Wilson Airport ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2248, '12', 'Ongata Rongai ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2249, '13', 'South C Shopping Centre ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2250, '14', '<NAME> ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2251, '15', '<NAME> ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2252, '16', 'Lavington ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2253, '17', 'Eldoret ', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2254, '18', 'NAKURU', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2255, '19', 'Riversid Drive Branch', 31, NULL, '2016-03-31 03:36:46', '2016-03-31 03:36:46'), (2256, '20', 'Kisii', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2257, '21', 'Changamwe', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2258, '22', 'Malindi', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2259, '23', 'Nyeri', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2260, '24', 'Thika', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2261, '25', 'Gigiri', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2262, '26', 'Mtwapa', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2263, '27', '<NAME>', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2264, '28', 'Kitale', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2265, '29', '<NAME>', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2266, '30', 'Yaya Centre', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2267, '31', 'I&M Bank Ltd Gateway Mall, Syokimau', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2268, '32', 'Garden City Mall', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2269, '98', 'Card Center ', 31, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2270, '1', 'IPS', 32, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2271, '2', 'Mombasa ', 32, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2272, '3', 'Upper Hill ', 32, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2273, '4', 'Parklands ', 32, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2274, '5', 'Malindi ', 32, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2275, '6', 'Industrial Area ', 32, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2276, '7', 'Watamu ', 32, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2277, '8', 'Diani ', 32, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2278, '9', 'Kilifi ', 32, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2279, '10', 'Eldoret ', 32, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2280, '11', 'Karen ', 32, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2281, '12', 'Thika ', 32, NULL, '2016-03-31 03:36:47', '2016-03-31 03:36:47'), (2282, '14', 'Changamwe ', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2283, '15', 'Riverside ', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2284, '16', 'Likoni ', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2285, '17', '<NAME>', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2286, '18', 'Village Market', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2287, '19', 'Bamburi', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2288, '20', 'Junction Mall', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2289, '21', 'Greenspan mall', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2290, '22', 'Westside Mall', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2291, '23', 'Kenyatta Street Eldoret', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2292, '24', 'Westlands', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2293, '26', 'Highridge Branch', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2294, '27', '<NAME>', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2295, '28', 'Garden City', 32, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2296, '0', 'Head Office ', 33, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2297, '1', '<NAME>', 33, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2298, '100', 'Kiongozi', 33, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2299, '101', 'Kayole', 33, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2300, '102', 'Eastleigh', 33, NULL, '2016-03-31 03:36:48', '2016-03-31 03:36:48'), (2301, '105', 'Kawangware', 33, NULL, '2016-03-31 03:36:49', '2016-03-31 03:36:49'), (2302, '106', 'Kibera', 33, NULL, '2016-03-31 03:36:49', '2016-03-31 03:36:49'), (2303, '107', 'Kariobangi', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2304, '111', 'Central Clearing Center', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2305, '114', 'Funzi Road', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2306, '115', 'Ngong Road', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2307, '116', 'Kirinyaga Road', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2308, '209', 'Machakos', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2309, '210', 'Mtwapa', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2310, '213', 'Kiritiri', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2311, '301', 'Thika', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2312, '303', 'Muranga ', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2313, '306', 'Kikuyu', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2314, '307', 'Banana', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2315, '310', 'Utawala', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2316, '316', 'Nyeri', 33, NULL, '2016-03-31 03:36:50', '2016-03-31 03:36:50'), (2317, '402', 'Kisumu', 33, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2318, '502', 'Ongata Rongai', 33, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2319, '503', 'Kitengela', 33, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2320, '507', 'Nakuru', 33, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2321, '603', 'Mombasa', 33, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2322, '91', 'Eastleigh ', 34, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2323, '92', 'KCB CPC', 34, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2324, '94', 'Head Office ', 34, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2325, '95', 'Wote ', 34, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2326, '96', 'Head Office Finance', 34, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2327, '100', 'Moi Avenue Nairobi ', 34, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2328, '101', 'Kipande House ', 34, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2329, '102', 'Treasury Sq Mombasa ', 34, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2330, '103', 'Nakuru ', 34, NULL, '2016-03-31 03:36:51', '2016-03-31 03:36:51'), (2331, '104', 'Kicc ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2332, '105', 'Kisumu ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2333, '106', 'Kericho ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2334, '107', '<NAME> ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2335, '108', 'Thika ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2336, '109', 'Eldoret ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2337, '110', 'Kakamega ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2338, '111', '<NAME> ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2339, '112', 'Nyeri ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2340, '113', 'Industrial Area Nairobi ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2341, '114', 'River Road ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2342, '115', 'Muranga ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2343, '116', 'Embu ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2344, '117', 'Kangema ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2345, '119', 'Kiambu ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2346, '120', 'Karatina ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2347, '121', 'Siaya ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2348, '122', 'Nyahururu ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2349, '123', 'Meru ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2350, '124', 'Mumias ', 34, NULL, '2016-03-31 03:36:52', '2016-03-31 03:36:52'), (2351, '125', 'Nanyuki ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2352, '127', 'Moyale ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2353, '129', 'Kikuyu ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2354, '130', 'Tala ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2355, '131', 'Kajiado ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2356, '133', 'KCB Custody services', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2357, '134', 'Matuu ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2358, '135', 'Kitui ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2359, '136', 'Mvita ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2360, '137', '<NAME> ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2361, '139', 'Card Centre ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2362, '140', 'Marsabit ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2363, '141', '<NAME> ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2364, '142', 'Loitokitok ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2365, '143', '<NAME> ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2366, '144', 'Lodwar ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2367, '145', '<NAME> ', 34, NULL, '2016-03-31 03:36:53', '2016-03-31 03:36:53'), (2368, '146', 'Hola ', 34, NULL, '2016-03-31 03:36:54', '2016-03-31 03:36:54'), (2369, '147', 'Ruiru ', 34, NULL, '2016-03-31 03:36:54', '2016-03-31 03:36:54'), (2370, '148', 'Mwingi ', 34, NULL, '2016-03-31 03:36:55', '2016-03-31 03:36:55'), (2371, '149', 'Kitale ', 34, NULL, '2016-03-31 03:36:55', '2016-03-31 03:36:55'), (2372, '150', 'Mandera ', 34, NULL, '2016-03-31 03:36:55', '2016-03-31 03:36:55'), (2373, '151', 'Kapenguria ', 34, NULL, '2016-03-31 03:36:55', '2016-03-31 03:36:55'), (2374, '152', 'Kabarnet ', 34, NULL, '2016-03-31 03:36:56', '2016-03-31 03:36:56'), (2375, '153', 'Wajir ', 34, NULL, '2016-03-31 03:36:56', '2016-03-31 03:36:56'), (2376, '154', 'Maralal ', 34, NULL, '2016-03-31 03:36:56', '2016-03-31 03:36:56'), (2377, '155', 'Limuru ', 34, NULL, '2016-03-31 03:36:56', '2016-03-31 03:36:56'), (2378, '157', 'Ukunda ', 34, NULL, '2016-03-31 03:36:56', '2016-03-31 03:36:56'), (2379, '158', 'Iten ', 34, NULL, '2016-03-31 03:36:56', '2016-03-31 03:36:56'), (2380, '159', 'Gilgil ', 34, NULL, '2016-03-31 03:36:56', '2016-03-31 03:36:56'), (2381, '161', '<NAME> ', 34, NULL, '2016-03-31 03:36:56', '2016-03-31 03:36:56'), (2382, '162', 'Kitengela ', 34, NULL, '2016-03-31 03:36:56', '2016-03-31 03:36:56'), (2383, '163', '<NAME> ', 34, NULL, '2016-03-31 03:36:56', '2016-03-31 03:36:56'), (2384, '164', 'Kibwezi ', 34, NULL, '2016-03-31 03:36:56', '2016-03-31 03:36:56'), (2385, '166', 'Kapsabet ', 34, NULL, '2016-03-31 03:36:56', '2016-03-31 03:36:56'), (2386, '167', 'University Way ', 34, NULL, '2016-03-31 03:36:56', '2016-03-31 03:36:56'), (2387, '168', 'KCB Eldoret West', 34, NULL, '2016-03-31 03:36:57', '2016-03-31 03:36:57'), (2388, '169', 'Garissa ', 34, NULL, '2016-03-31 03:36:57', '2016-03-31 03:36:57'), (2389, '173', 'Lamu ', 34, NULL, '2016-03-31 03:36:57', '2016-03-31 03:36:57'), (2390, '174', 'Kilifi ', 34, NULL, '2016-03-31 03:36:57', '2016-03-31 03:36:57'), (2391, '175', 'Milimani ', 34, NULL, '2016-03-31 03:36:57', '2016-03-31 03:36:57'), (2392, '176', 'Nyamira ', 34, NULL, '2016-03-31 03:36:57', '2016-03-31 03:36:57'), (2393, '177', 'Mukuruweini ', 34, NULL, '2016-03-31 03:36:57', '2016-03-31 03:36:57'), (2394, '180', 'Village Market ', 34, NULL, '2016-03-31 03:36:57', '2016-03-31 03:36:57'), (2395, '181', 'Bomet ', 34, NULL, '2016-03-31 03:36:57', '2016-03-31 03:36:57'), (2396, '183', 'Mbale ', 34, NULL, '2016-03-31 03:36:57', '2016-03-31 03:36:57'), (2397, '184', 'Narok ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2398, '185', 'Othaya ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2399, '186', 'Voi ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2400, '188', 'Webuye ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2401, '189', 'Sotik ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2402, '190', 'Naivasha ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2403, '191', 'Kisii ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2404, '192', 'Migori ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2405, '193', 'Githunguri ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2406, '194', 'Machakos ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2407, '195', 'Kerugoya ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2408, '196', 'Chuka ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2409, '197', 'Bungoma ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2410, '198', 'Wundanyi ', 34, NULL, '2016-03-31 03:36:58', '2016-03-31 03:36:58'), (2411, '199', 'Malindi ', 34, NULL, '2016-03-31 03:36:59', '2016-03-31 03:36:59'), (2412, '201', 'Capital Hill ', 34, NULL, '2016-03-31 03:36:59', '2016-03-31 03:36:59'), (2413, '202', 'Karen ', 34, NULL, '2016-03-31 03:36:59', '2016-03-31 03:36:59'), (2414, '203', 'Lokichogio ', 34, NULL, '2016-03-31 03:36:59', '2016-03-31 03:36:59'), (2415, '204', 'Gateway Msa Road ', 34, NULL, '2016-03-31 03:36:59', '2016-03-31 03:36:59'), (2416, '205', 'Buruburu ', 34, NULL, '2016-03-31 03:36:59', '2016-03-31 03:36:59'), (2417, '206', 'Chogoria ', 34, NULL, '2016-03-31 03:36:59', '2016-03-31 03:36:59'); INSERT INTO `bank_branches` (`id`, `branch_code`, `bank_branch_name`, `bank_id`, `organization_id`, `created_at`, `updated_at`) VALUES (2418, '207', 'Kangare ', 34, NULL, '2016-03-31 03:36:59', '2016-03-31 03:36:59'), (2419, '208', 'Kianyaga ', 34, NULL, '2016-03-31 03:36:59', '2016-03-31 03:36:59'), (2420, '209', 'Nkubu ', 34, NULL, '2016-03-31 03:36:59', '2016-03-31 03:36:59'), (2421, '210', '<NAME> ', 34, NULL, '2016-03-31 03:36:59', '2016-03-31 03:36:59'), (2422, '211', 'Makuyu ', 34, NULL, '2016-03-31 03:36:59', '2016-03-31 03:36:59'), (2423, '212', 'Mwea ', 34, NULL, '2016-03-31 03:36:59', '2016-03-31 03:36:59'), (2424, '213', 'Njambini ', 34, NULL, '2016-03-31 03:37:00', '2016-03-31 03:37:00'), (2425, '214', 'Gatundu ', 34, NULL, '2016-03-31 03:37:00', '2016-03-31 03:37:00'), (2426, '215', 'Emali ', 34, NULL, '2016-03-31 03:37:00', '2016-03-31 03:37:00'), (2427, '216', 'Isiolo ', 34, NULL, '2016-03-31 03:37:00', '2016-03-31 03:37:00'), (2428, '217', 'KCB Flamingo', 34, NULL, '2016-03-31 03:37:00', '2016-03-31 03:37:00'), (2429, '218', 'Njoro ', 34, NULL, '2016-03-31 03:37:00', '2016-03-31 03:37:00'), (2430, '219', 'Mutomo ', 34, NULL, '2016-03-31 03:37:00', '2016-03-31 03:37:00'), (2431, '220', 'Mariakani ', 34, NULL, '2016-03-31 03:37:00', '2016-03-31 03:37:00'), (2432, '221', 'Mpeketoni ', 34, NULL, '2016-03-31 03:37:00', '2016-03-31 03:37:00'), (2433, '222', '<NAME> ', 34, NULL, '2016-03-31 03:37:00', '2016-03-31 03:37:00'), (2434, '223', 'Mtwapa ', 34, NULL, '2016-03-31 03:37:00', '2016-03-31 03:37:00'), (2435, '224', 'Taveta ', 34, NULL, '2016-03-31 03:37:01', '2016-03-31 03:37:01'), (2436, '225', 'Kengeleni ', 34, NULL, '2016-03-31 03:37:01', '2016-03-31 03:37:01'), (2437, '226', 'Garsen ', 34, NULL, '2016-03-31 03:37:01', '2016-03-31 03:37:01'), (2438, '227', 'Watamu ', 34, NULL, '2016-03-31 03:37:01', '2016-03-31 03:37:01'), (2439, '228', 'Bondo ', 34, NULL, '2016-03-31 03:37:01', '2016-03-31 03:37:01'), (2440, '229', 'Busia ', 34, NULL, '2016-03-31 03:37:01', '2016-03-31 03:37:01'), (2441, '230', '<NAME> ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2442, '231', 'Kapsowar ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2443, '232', 'Kehancha ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2444, '233', 'Keroka ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2445, '234', 'Kilgoris ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2446, '235', 'Kimilili ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2447, '236', 'Litein ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2448, '237', 'Londiani Branch ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2449, '238', 'Luanda ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2450, '239', 'Malaba ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2451, '240', 'Muhoroni ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2452, '241', 'Oyugis ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2453, '242', 'Ugunja ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2454, '243', 'United Mall ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2455, '244', 'Serem ', 34, NULL, '2016-03-31 03:37:02', '2016-03-31 03:37:02'), (2456, '245', 'Sondu ', 34, NULL, '2016-03-31 03:37:03', '2016-03-31 03:37:03'), (2457, '246', 'Kisumu West ', 34, NULL, '2016-03-31 03:37:03', '2016-03-31 03:37:03'), (2458, '247', 'Marigat ', 34, NULL, '2016-03-31 03:37:03', '2016-03-31 03:37:03'), (2459, '248', 'Mois Bridge ', 34, NULL, '2016-03-31 03:37:03', '2016-03-31 03:37:03'), (2460, '249', 'Mashariki ', 34, NULL, '2016-03-31 03:37:03', '2016-03-31 03:37:03'), (2461, '250', '<NAME> ', 34, NULL, '2016-03-31 03:37:03', '2016-03-31 03:37:03'), (2462, '251', 'Kiriaini ', 34, NULL, '2016-03-31 03:37:03', '2016-03-31 03:37:03'), (2463, '252', 'Egerton University ', 34, NULL, '2016-03-31 03:37:03', '2016-03-31 03:37:03'), (2464, '253', 'Maua ', 34, NULL, '2016-03-31 03:37:03', '2016-03-31 03:37:03'), (2465, '254', 'Kawangare ', 34, NULL, '2016-03-31 03:37:03', '2016-03-31 03:37:03'), (2466, '255', 'Kimathi ', 34, NULL, '2016-03-31 03:37:03', '2016-03-31 03:37:03'), (2467, '256', 'Namanga ', 34, NULL, '2016-03-31 03:37:04', '2016-03-31 03:37:04'), (2468, '257', 'Gikomba ', 34, NULL, '2016-03-31 03:37:04', '2016-03-31 03:37:04'), (2469, '258', 'Kwale ', 34, NULL, '2016-03-31 03:37:04', '2016-03-31 03:37:04'), (2470, '259', 'Prestige Plaza ', 34, NULL, '2016-03-31 03:37:04', '2016-03-31 03:37:04'), (2471, '260', 'Kariobangi ', 34, NULL, '2016-03-31 03:37:04', '2016-03-31 03:37:04'), (2472, '263', 'Biashara Street ', 34, NULL, '2016-03-31 03:37:04', '2016-03-31 03:37:04'), (2473, '266', 'Ngara ', 34, NULL, '2016-03-31 03:37:04', '2016-03-31 03:37:04'), (2474, '267', 'Kyuso ', 34, NULL, '2016-03-31 03:37:04', '2016-03-31 03:37:04'), (2475, '270', 'Masii ', 34, NULL, '2016-03-31 03:37:04', '2016-03-31 03:37:04'), (2476, '271', 'Menengai Crater', 34, NULL, '2016-03-31 03:37:04', '2016-03-31 03:37:04'), (2477, '272', 'Town Centre ', 34, NULL, '2016-03-31 03:37:04', '2016-03-31 03:37:04'), (2478, '278', 'Makindu ', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2479, '283', 'Rongo ', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2480, '284', 'Isibania ', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2481, '285', 'Kiserian ', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2482, '286', '<NAME> ', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2483, '287', 'Kisauni ', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2484, '288', '<NAME> ', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2485, '289', 'Salama House Mortgage Centre', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2486, '290', 'Garden Plaza ', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2487, '291', 'Sarit Centre Mortgage Centre', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2488, '292', 'Cpc Bulk Corporate Cheques ', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2489, '293', 'Trade Services', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2490, '295', 'Nairobi High Court', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2491, '296', 'Mombasa High Court', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2492, '297', 'Kisumu Airport', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2493, '298', 'Port Victoria', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2494, '299', 'Moi International Airport', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2495, '300', 'Nyali', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2496, '301', 'Westgate Advantage', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2497, '302', 'Diaspora ', 34, NULL, '2016-03-31 03:37:05', '2016-03-31 03:37:05'), (2498, '303', 'Kisii West ', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2499, '304', 'Mbita', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2500, '305', 'Sori', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2501, '306', 'Hurlingham', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2502, '307', 'Kibera', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2503, '308', 'Thika Road Mall Branch', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2504, '309', 'Kasarani Branch', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2505, '310', 'KCB Maasai Mara', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2506, '311', 'KCB Kabartonjo', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2507, '312', 'KCB Eldoret East', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2508, '313', 'Kikim', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2509, '314', 'KCB JKUAT', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2510, '315', 'KCB Changamwe', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2511, '316', 'KCB Makongeni', 34, NULL, '2016-03-31 03:37:06', '2016-03-31 03:37:06'), (2512, '317', 'KCB Syokimau', 34, NULL, '2016-03-31 03:37:07', '2016-03-31 03:37:07'), (2513, '318', 'KCB Moi Referral Hospital', 34, NULL, '2016-03-31 03:37:07', '2016-03-31 03:37:07'), (2514, '319', 'KCB Kitale Advantage', 34, NULL, '2016-03-31 03:37:07', '2016-03-31 03:37:07'), (2515, '320', 'KCB Lavington', 34, NULL, '2016-03-31 03:37:07', '2016-03-31 03:37:07'), (2516, '321', 'KCB ICD Kibarani', 34, NULL, '2016-03-31 03:37:07', '2016-03-31 03:37:07'), (2517, '322', 'KCB Riverside Advantage', 34, NULL, '2016-03-31 03:37:07', '2016-03-31 03:37:07'), (2518, '323', 'KCB Gigiri Square', 34, NULL, '2016-03-31 03:37:08', '2016-03-31 03:37:08'), (2519, NULL, 'head quarters', 35, NULL, '2016-03-31 03:37:08', '2016-03-31 03:37:08'), (2520, NULL, 'North –Rift', 35, NULL, '2016-03-31 03:37:08', '2016-03-31 03:37:08'), (2521, NULL, '<NAME>', 35, NULL, '2016-03-31 03:37:08', '2016-03-31 03:37:08'), (2522, NULL, 'Eldoret', 35, NULL, '2016-03-31 03:37:08', '2016-03-31 03:37:08'), (2523, NULL, 'Trans-Nzoia', 35, NULL, '2016-03-31 03:37:09', '2016-03-31 03:37:09'), (2524, NULL, 'Bomet', 35, NULL, '2016-03-31 03:37:09', '2016-03-31 03:37:09'), (2525, NULL, 'Kericho', 35, NULL, '2016-03-31 03:37:09', '2016-03-31 03:37:09'), (2526, NULL, 'Lodwar ', 35, NULL, '2016-03-31 03:37:09', '2016-03-31 03:37:09'), (2527, NULL, 'Malaba ', 35, NULL, '2016-03-31 03:37:09', '2016-03-31 03:37:09'), (2528, NULL, 'Kakamega', 35, NULL, '2016-03-31 03:37:09', '2016-03-31 03:37:09'), (2529, NULL, 'Serem ', 35, NULL, '2016-03-31 03:37:09', '2016-03-31 03:37:09'), (2530, NULL, 'Nakuru', 35, NULL, '2016-03-31 03:37:09', '2016-03-31 03:37:09'), (2531, NULL, 'Njambini', 35, NULL, '2016-03-31 03:37:09', '2016-03-31 03:37:09'), (2532, NULL, 'Gilgil ', 35, NULL, '2016-03-31 03:37:09', '2016-03-31 03:37:09'), (2533, NULL, 'Embu', 35, NULL, '2016-03-31 03:37:09', '2016-03-31 03:37:09'), (2534, NULL, 'Mwea', 35, NULL, '2016-03-31 03:37:09', '2016-03-31 03:37:09'), (2535, NULL, 'Tharaka', 35, NULL, '2016-03-31 03:37:09', '2016-03-31 03:37:09'), (2536, NULL, 'Mbeere', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2537, NULL, 'Nkubu', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2538, NULL, 'Meru', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2539, NULL, 'Maua', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2540, NULL, '<NAME>', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2541, NULL, 'Narumoru', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2542, NULL, 'Othaya', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2543, NULL, 'Mukurweini', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2544, NULL, 'Machakos', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2545, NULL, 'Matuu ', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2546, NULL, 'Masii ', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2547, NULL, 'Kyuso', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2548, NULL, 'Machakos 760 Hotel', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2549, NULL, 'Mwingi ', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2550, NULL, 'Tala ', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2551, NULL, 'Kitui', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2552, NULL, 'Migori', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2553, NULL, 'Thika', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2554, NULL, 'Ruiru', 35, NULL, '2016-03-31 03:37:10', '2016-03-31 03:37:10'), (2555, NULL, 'Gatundu ', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2556, NULL, 'Githurai 45', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2557, NULL, 'Kiambu', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2558, NULL, 'Nairobi', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2559, NULL, 'Gikomba', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2560, NULL, 'Nairobi west', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2561, NULL, 'Embakasi', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2562, NULL, 'River road', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2563, NULL, 'Kibwezi ', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2564, NULL, 'Emali', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2565, NULL, 'Nunguni', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2566, NULL, 'Wote ', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2567, NULL, 'Loitoktok', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2568, NULL, 'Taveta ', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2569, NULL, 'Garsen', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2570, NULL, 'Wundanyi ', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2571, NULL, 'Mwatate', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2572, NULL, 'Voi ', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2573, NULL, 'Kitengela', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2574, NULL, 'Mombasa', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2575, NULL, 'Malindi', 35, NULL, '2016-03-31 03:37:11', '2016-03-31 03:37:11'), (2576, '0', 'Head Office ', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2577, '1', 'Main Office ', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2578, '2', 'Mombasa ', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2579, '3', '<NAME> ', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2580, '4', 'Nakuru ', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2581, '5', 'Nyeri ', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2582, '6', 'Buruburu ', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2583, '7', 'Embu ', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2584, '8', 'Eldoret ', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2585, '9', 'Kisumu ', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2586, '10', 'Kericho ', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2587, '11', 'Mlolongo', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2588, '12', 'Thika ', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2589, '13', 'Kerugoya', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2590, '14', 'Kenyatta Market ', 36, NULL, '2016-03-31 03:37:12', '2016-03-31 03:37:12'), (2591, '15', 'Kisii ', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2592, '16', 'CHUKA', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2593, '17', 'Kitui ', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2594, '18', 'Machakos ', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2595, '19', 'Nanyuki ', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2596, '20', 'Kangemi', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2597, '21', 'Email', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2598, '22', 'Naivasha ', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2599, '23', 'Nyahururu ', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2600, '24', 'Isiolo ', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2601, '25', 'Meru ', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2602, '26', 'Kitale ', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2603, '27', 'Kibwezi ', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2604, '28', 'Bungoma ', 36, NULL, '2016-03-31 03:37:13', '2016-03-31 03:37:13'), (2605, '29', 'Kajiado ', 36, NULL, '2016-03-31 03:37:14', '2016-03-31 03:37:14'), (2606, '30', 'Nkubu', 36, NULL, '2016-03-31 03:37:14', '2016-03-31 03:37:14'), (2607, '31', 'Mtwapa ', 36, NULL, '2016-03-31 03:37:14', '2016-03-31 03:37:14'), (2608, '32', 'Busia', 36, NULL, '2016-03-31 03:37:14', '2016-03-31 03:37:14'), (2609, '33', '<NAME> ', 36, NULL, '2016-03-31 03:37:14', '2016-03-31 03:37:14'), (2610, '34', 'Mwea ', 36, NULL, '2016-03-31 03:37:14', '2016-03-31 03:37:14'), (2611, '35', 'Kengeleni ', 36, NULL, '2016-03-31 03:37:14', '2016-03-31 03:37:14'), (2612, '36', 'Kilimani ', 36, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2613, '37', 'Rongai', 36, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2614, '0', 'Head Office ', 37, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2615, '1', 'Nairobi ', 37, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2616, '2', 'Mombasa ', 37, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2617, '3', 'Milimani ', 37, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2618, '4', 'Industrial Area', 37, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2619, '5', 'Eldoret', 37, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2620, '0', 'Central Business Unit', 38, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2621, '2', 'Kenyatta', 38, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2622, '3', 'Harambee ', 38, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2623, '4', 'Hill ', 38, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2624, '5', 'Busia ', 38, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2625, '6', 'Kiambu', 38, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2626, '7', 'Meru ', 38, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2627, '8', 'Karatina ', 38, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2628, '9', 'Narok ', 38, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2629, '10', 'Kisii ', 38, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2630, '11', 'Malindi ', 38, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2631, '12', 'Nyeri ', 38, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2632, '13', 'Kitale ', 38, NULL, '2016-03-31 03:37:15', '2016-03-31 03:37:15'), (2633, '15', 'Eastleigh', 38, NULL, '2016-03-31 03:37:16', '2016-03-31 03:37:16'), (2634, '16', 'Limuru ', 38, NULL, '2016-03-31 03:37:16', '2016-03-31 03:37:16'), (2635, '17', 'Kitui ', 38, NULL, '2016-03-31 03:37:16', '2016-03-31 03:37:16'), (2636, '18', 'Molo ', 38, NULL, '2016-03-31 03:37:17', '2016-03-31 03:37:17'), (2637, '19', 'Bungoma ', 38, NULL, '2016-03-31 03:37:17', '2016-03-31 03:37:17'), (2638, '20', 'Nkrumah', 38, NULL, '2016-03-31 03:37:17', '2016-03-31 03:37:17'), (2639, '21', 'Kapsabet ', 38, NULL, '2016-03-31 03:37:18', '2016-03-31 03:37:18'), (2640, '22', 'Awendo ', 38, NULL, '2016-03-31 03:37:18', '2016-03-31 03:37:18'), (2641, '23', 'Portway-msa ', 38, NULL, '2016-03-31 03:37:18', '2016-03-31 03:37:18'), (2642, '25', 'Hospital Br. ', 38, NULL, '2016-03-31 03:37:18', '2016-03-31 03:37:18'), (2643, '26', 'Ruiru ', 38, NULL, '2016-03-31 03:37:18', '2016-03-31 03:37:18'), (2644, '27', '<NAME> ', 38, NULL, '2016-03-31 03:37:18', '2016-03-31 03:37:18'), (2645, '28', 'Embu ', 38, NULL, '2016-03-31 03:37:18', '2016-03-31 03:37:18'), (2646, '29', 'Kakamega ', 38, NULL, '2016-03-31 03:37:18', '2016-03-31 03:37:18'), (2647, '30', 'Nakuru ', 38, NULL, '2016-03-31 03:37:19', '2016-03-31 03:37:19'), (2648, '31', 'Ukunda ', 38, NULL, '2016-03-31 03:37:19', '2016-03-31 03:37:19'), (2649, '32', 'Upper Hill ', 38, NULL, '2016-03-31 03:37:19', '2016-03-31 03:37:19'), (2650, '33', 'Nandi Hills ', 38, NULL, '2016-03-31 03:37:19', '2016-03-31 03:37:19'), (2651, '34', 'Migori ', 38, NULL, '2016-03-31 03:37:19', '2016-03-31 03:37:19'), (2652, '35', 'Westlands ', 38, NULL, '2016-03-31 03:37:19', '2016-03-31 03:37:19'), (2653, '36', 'Times Tower', 38, NULL, '2016-03-31 03:37:20', '2016-03-31 03:37:20'), (2654, '37', 'Maua', 38, NULL, '2016-03-31 03:37:20', '2016-03-31 03:37:20'), (2655, '38', '<NAME>', 38, NULL, '2016-03-31 03:37:20', '2016-03-31 03:37:20'), (2656, '39', 'J.K.I.A.', 38, NULL, '2016-03-31 03:37:20', '2016-03-31 03:37:20'), (2657, '40', 'Eldoret ', 38, NULL, '2016-03-31 03:37:20', '2016-03-31 03:37:20'), (2658, '41', 'MOIS BRIDGE', 38, NULL, '2016-03-31 03:37:20', '2016-03-31 03:37:20'), (2659, '42', 'MUTOMO', 38, NULL, '2016-03-31 03:37:20', '2016-03-31 03:37:20'), (2660, '43', 'KIANJAI', 38, NULL, '2016-03-31 03:37:21', '2016-03-31 03:37:21'), (2661, '44', 'KENYATTA UNIVERSITY', 38, NULL, '2016-03-31 03:37:21', '2016-03-31 03:37:21'), (2662, '45', 'ST PAULS UNIVERSITY', 38, NULL, '2016-03-31 03:37:21', '2016-03-31 03:37:21'), (2663, '46', 'MOI UNIVERSITY ELDORET', 38, NULL, '2016-03-31 03:37:21', '2016-03-31 03:37:21'), (2664, '47', 'MOI INT AIRPORT MOMBASA', 38, NULL, '2016-03-31 03:37:21', '2016-03-31 03:37:21'), (2665, '48', 'Machakos', 38, NULL, '2016-03-31 03:37:21', '2016-03-31 03:37:21'), (2666, '49', 'Kitengela', 38, NULL, '2016-03-31 03:37:21', '2016-03-31 03:37:21'), (2667, '50', 'Kisumu ', 38, NULL, '2016-03-31 03:37:21', '2016-03-31 03:37:21'), (2668, '51', 'Mtwapa', 38, NULL, '2016-03-31 03:37:21', '2016-03-31 03:37:21'), (2669, '52', 'Changamwe', 38, NULL, '2016-03-31 03:37:21', '2016-03-31 03:37:21'), (2670, '53', 'Garissa', 38, NULL, '2016-03-31 03:37:21', '2016-03-31 03:37:21'), (2671, '54', 'Thika', 38, NULL, '2016-03-31 03:37:21', '2016-03-31 03:37:21'), (2672, '55', 'Momasa Polytechnic University College', 38, NULL, '2016-03-31 03:37:22', '2016-03-31 03:37:22'), (2673, '56', 'Bomet', 38, NULL, '2016-03-31 03:37:22', '2016-03-31 03:37:22'), (2674, '58', 'Greenspan', 38, NULL, '2016-03-31 03:37:22', '2016-03-31 03:37:22'), (2675, '59', '<NAME>', 38, NULL, '2016-03-31 03:37:22', '2016-03-31 03:37:22'), (2676, '60', 'SEKU', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2677, '61', 'Ngong Road', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2678, '62', 'Moi Avenue', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2679, '63', 'Mountain Mall', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2680, '65', 'Nyali Centre', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2681, '66', 'Kilifi', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2682, '67', 'South C Branch- KEBS', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2683, '68', 'Kericho', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2684, '70', 'Isiolo', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2685, '71', 'South C - Red Cross', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2686, '72', 'National Bank Premium Banking Kisumu', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2687, '73', 'Yaya Centre', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2688, '74', 'Gigiri', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2689, '93', 'Wajir', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2690, '94', 'Bondeni', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2691, '95', '<NAME>', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2692, '96', 'Mandera', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2693, '98', 'Card Centre ', 38, NULL, '2016-03-31 03:37:23', '2016-03-31 03:37:23'), (2694, '99', 'Head Office', 38, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2695, '198', 'Central CLearing Centre', 38, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2696, '200', 'Head <NAME>', 38, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2697, '201', 'Card <NAME>', 38, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2698, '202', '<NAME>', 38, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2699, '203', '<NAME>', 38, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2700, '204', '<NAME>', 38, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2701, '205', '<NAME>', 38, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2702, '206', '<NAME>', 38, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2703, '207', '<NAME>', 38, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2704, '208', '<NAME>', 38, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2705, '0', 'Head Office', 39, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2706, '101', 'City Centre', 39, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2707, '102', 'NIC House', 39, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2708, '103', 'Harbour House ', 39, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2709, '104', 'Head Office-Fargo', 39, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2710, '105', 'Westlands ', 39, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2711, '106', 'The Junction Br. ', 39, NULL, '2016-03-31 03:37:24', '2016-03-31 03:37:24'), (2712, '107', 'Nakuru ', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2713, '108', 'Nyali ', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2714, '109', 'Nkrumah Road ', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2715, '110', 'Harambee ', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2716, '111', 'Prestige - Ngong Road ', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2717, '112', 'Kisumu ', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2718, '113', 'Thika ', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2719, '114', 'Meru', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2720, '115', 'Galleria (bomas ', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2721, '116', 'ELDORET', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2722, '117', 'VILLAGE MARKET', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2723, '118', '<NAME>', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2724, '119', 'Karen', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2725, '121', '<NAME>', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2726, '122', 'ABC', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2727, '123', 'Thika Road Mall ', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2728, '124', 'Changamwe Branch', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2729, '125', 'Kenyatta Avenue', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2730, '126', 'Riverside', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2731, '127', 'Machakos', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2732, '128', 'Lunga Lunga', 39, NULL, '2016-03-31 03:37:25', '2016-03-31 03:37:25'), (2733, '0', 'Head Office ', 40, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2734, '1', 'Koinange Street ', 40, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2735, '3', 'Nakuru ', 40, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2736, '4', 'Nakuru ', 40, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2737, '5', 'Eldoret ', 40, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2738, '6', 'Kitale ', 40, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2739, '7', 'Westlands ', 40, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2740, '8', '<NAME>', 40, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2741, '9', 'Thika Road Mall', 40, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2742, '10', 'Mombasa', 40, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2743, '0', 'Head Office ', 41, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2744, '1', 'Westlands ', 41, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2745, '2', 'Parklands ', 41, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2746, '3', 'Koinange Street ', 41, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2747, '4', 'Mombasa ', 41, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2748, '6', 'Eldoret', 41, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2749, '7', 'Industrial Area', 41, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2750, '0', 'H/o Riverside ', 42, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2751, '1', 'Kenindia ', 42, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2752, '2', 'Biashara ', 42, NULL, '2016-03-31 03:37:26', '2016-03-31 03:37:26'), (2753, '3', 'Mombasa ', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2754, '4', 'Westlands ', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2755, '5', 'Industrial Area ', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2756, '6', 'Kisumu ', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2757, '7', 'Parklands ', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2758, '8', 'Riverside Drive ', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2759, '9', 'Card Centre ', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2760, '10', 'Hurlingham ', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2761, '11', 'Capital Centre ', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2762, '12', 'Nyali ', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2763, '14', 'Kamukunji ', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2764, '15', 'Eldoret', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2765, '16', 'Karen ', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2766, '17', 'Nakuru ', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2767, '18', 'Gigiri', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2768, '19', 'Thika', 42, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2769, NULL, 'Head Office', 43, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2770, NULL, 'Kenyatta Market', 43, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2771, NULL, 'Karen', 43, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2772, NULL, '<NAME>', 43, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2773, NULL, 'Ngong', 43, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2774, NULL, 'Wote - Makueni ', 43, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2775, NULL, 'Machakos', 43, NULL, '2016-03-31 03:37:27', '2016-03-31 03:37:27'), (2776, NULL, '<NAME>', 43, NULL, '2016-03-31 03:37:28', '2016-03-31 03:37:28'), (2777, NULL, 'Kibwezi', 43, NULL, '2016-03-31 03:37:28', '2016-03-31 03:37:28'), (2778, NULL, '<NAME>', 43, NULL, '2016-03-31 03:37:28', '2016-03-31 03:37:28'), (2779, NULL, 'Emali', 43, NULL, '2016-03-31 03:37:28', '2016-03-31 03:37:28'), (2780, NULL, 'Mlolongo', 43, NULL, '2016-03-31 03:37:28', '2016-03-31 03:37:28'), (2781, NULL, 'Kajiado', 43, NULL, '2016-03-31 03:37:28', '2016-03-31 03:37:28'), (2782, NULL, 'Westlands', 43, NULL, '2016-03-31 03:37:28', '2016-03-31 03:37:28'), (2783, NULL, 'Ngara', 43, NULL, '2016-03-31 03:37:28', '2016-03-31 03:37:28'), (2784, NULL, 'Uthiru', 43, NULL, '2016-03-31 03:37:28', '2016-03-31 03:37:28'), (2785, NULL, 'Kikuyu', 43, NULL, '2016-03-31 03:37:28', '2016-03-31 03:37:28'), (2786, NULL, 'Limuru', 43, NULL, '2016-03-31 03:37:28', '2016-03-31 03:37:28'), (2787, NULL, '<NAME>', 43, NULL, '2016-03-31 03:37:29', '2016-03-31 03:37:29'), (2788, NULL, 'Kitengela', 43, NULL, '2016-03-31 03:37:29', '2016-03-31 03:37:29'), (2789, NULL, 'Karuri', 43, NULL, '2016-03-31 03:37:30', '2016-03-31 03:37:30'), (2790, NULL, 'Kawangware', 43, NULL, '2016-03-31 03:37:30', '2016-03-31 03:37:30'), (2791, NULL, 'Ruiru', 43, NULL, '2016-03-31 03:37:31', '2016-03-31 03:37:31'), (2792, NULL, 'Githurai', 43, NULL, '2016-03-31 03:37:31', '2016-03-31 03:37:31'), (2793, NULL, 'Mwingi', 43, NULL, '2016-03-31 03:37:31', '2016-03-31 03:37:31'), (2794, NULL, 'Eastleigh', 43, NULL, '2016-03-31 03:37:31', '2016-03-31 03:37:31'), (2795, NULL, 'Thika', 43, NULL, '2016-03-31 03:37:31', '2016-03-31 03:37:31'), (2796, NULL, 'Kiambu', 43, NULL, '2016-03-31 03:37:31', '2016-03-31 03:37:31'), (2797, NULL, 'Garissa', 43, NULL, '2016-03-31 03:37:31', '2016-03-31 03:37:31'), (2798, NULL, 'Matuu', 43, NULL, '2016-03-31 03:37:31', '2016-03-31 03:37:31'), (2799, NULL, 'Dandora', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2800, NULL, 'Afya Center', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2801, NULL, '<NAME>', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2802, NULL, 'Viwandani', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2803, NULL, 'Kitui', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2804, NULL, '<NAME>', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2805, NULL, 'Enterprise Post Office', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2806, NULL, 'Jogoo Road', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2807, NULL, 'Nacico', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2808, NULL, 'Kangundo', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2809, NULL, 'Kenyatta', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2810, NULL, 'Kariobangi', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2811, NULL, 'Nakuru', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2812, NULL, 'Naivasha', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2813, NULL, 'Narok', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2814, NULL, 'Eldoret', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2815, NULL, 'Kapsabet', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2816, NULL, 'Molo', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2817, NULL, 'Kabarnet', 43, NULL, '2016-03-31 03:37:32', '2016-03-31 03:37:32'), (2818, NULL, '<NAME>', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2819, NULL, 'Kitale', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2820, NULL, 'Gilgil', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2821, NULL, 'Kapenguria', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2822, NULL, 'Nyahururu', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2823, NULL, 'Lodwar', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2824, NULL, '<NAME>', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2825, NULL, 'Maralal', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2826, NULL, 'Iten', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2827, NULL, 'Kisumu', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2828, NULL, 'Kakamega', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2829, NULL, 'Bungoma', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2830, NULL, 'HomaBay', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2831, NULL, 'Busia', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2832, NULL, 'Mumias', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2833, NULL, 'Siaya', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2834, NULL, 'Kisii', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2835, NULL, 'Webuye', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2836, NULL, '<NAME>', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2837, NULL, '<NAME>', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2838, NULL, 'Luanda', 43, NULL, '2016-03-31 03:37:33', '2016-03-31 03:37:33'), (2839, NULL, 'Keroka', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2840, NULL, 'Kehancha', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2841, NULL, 'Nyamira', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2842, NULL, 'Bomet', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2843, NULL, 'Kericho', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2844, NULL, 'Mbale', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2845, NULL, 'Oyugis', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2846, NULL, 'Mbita', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2847, NULL, 'Bondo', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2848, NULL, 'Chaani', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2849, NULL, 'Ukunda', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2850, NULL, 'Voi', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2851, NULL, 'Kilifi', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2852, NULL, 'Likoni', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2853, NULL, 'Mombasa', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2854, NULL, '<NAME>', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2855, NULL, 'Malindi', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2856, NULL, 'Mtwapa', 43, NULL, '2016-03-31 03:37:34', '2016-03-31 03:37:34'), (2857, NULL, 'Kisauni', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2858, NULL, 'Mariakani', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2859, NULL, 'Taveta', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2860, NULL, 'Watamu', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2861, NULL, 'Kerugoya', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2862, NULL, 'Embu', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2863, NULL, 'Meru', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2864, NULL, 'Nanyuki', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2865, NULL, 'Muranga', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2866, NULL, 'Nyeri', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2867, NULL, 'Karatina', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2868, NULL, 'Chuka', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2869, NULL, 'Wanguru', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2870, NULL, 'Maua', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2871, NULL, 'Isiolo', 43, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2872, '0', 'Eldoret ', 44, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2873, '1', 'Kericho ', 44, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2874, '2', 'Kisumu ', 44, NULL, '2016-03-31 03:37:35', '2016-03-31 03:37:35'), (2875, 's', 'Kitale ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2876, '4', 'Treasury Square ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2877, '5', 'Kilindini ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2878, '6', 'Kenyatta Avenue ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2879, '8', 'Moi Avenue ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2880, '9', 'Nakuru ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2881, '10', 'Nanyuki ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2882, '11', 'Nyeri ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2883, '12', 'Thika ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2884, '15', 'Westlands ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2885, '16', 'Machakos ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2886, '17', 'Meru ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2887, '19', 'Harambee Avenue ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2888, '20', 'Kiambu ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2889, '53', 'Industrial Area ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2890, '54', 'Kakamega ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2891, '60', 'Malindi ', 44, NULL, '2016-03-31 03:37:36', '2016-03-31 03:37:36'), (2892, '64', 'Koinage', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2893, '71', 'Yaya Centre Branch ', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2894, '72', 'Ruaraka ', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2895, '73', 'Langata ', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2896, '74', 'Makupa ', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2897, '75', 'Karen ', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2898, '76', 'Muthaiga ', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2899, '78', 'C.o.u ', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2900, '79', 'Ukay ', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2901, '80', 'Eastleigh ', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2902, '81', 'Kisii ', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2903, '82', 'Upper Hill Branch ', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2904, '83', 'Nyali ', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2905, '84', 'Chiromo', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2906, '85', 'Greenspan', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2907, '86', 'The T-Mall', 44, NULL, '2016-03-31 03:37:37', '2016-03-31 03:37:37'), (2908, '87', 'The Junction', 44, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2909, '89', 'Kitengela', 44, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2910, '90', 'Bungoma ', 44, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2911, '91', 'Thika Road Mall', 44, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2912, '92', '<NAME>igiri', 44, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2913, '1', 'Head Office ', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2914, '2', 'Mombasa ', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2915, '3', 'Eldoret ', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2916, '4', 'Nakuru ', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2917, '5', 'Mia ', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2918, '6', 'Jkia ', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2919, '7', 'Kirinyaga Rd Nakuru ', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2920, '8', 'Kabarak ', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2921, '9', 'Olenguruone ', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2922, '10', 'Kericho ', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2923, '11', '<NAME>', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2924, '12', 'Epz ', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2925, '13', '<NAME> ', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2926, '14', 'Kabarnet ', 45, NULL, '2016-03-31 03:37:38', '2016-03-31 03:37:38'), (2927, '15', 'Kitale', 45, NULL, '2016-03-31 03:37:39', '2016-03-31 03:37:39'), (2928, '16', 'Narok', 45, NULL, '2016-03-31 03:37:39', '2016-03-31 03:37:39'), (2929, '17', 'Bomet', 45, NULL, '2016-03-31 03:37:39', '2016-03-31 03:37:39'), (2930, '18', 'Iten', 45, NULL, '2016-03-31 03:37:39', '2016-03-31 03:37:39'), (2931, '1', 'Westlands ', 46, NULL, '2016-03-31 03:37:39', '2016-03-31 03:37:39'), (2932, '2', 'Enterprise Road ', 46, NULL, '2016-03-31 03:37:39', '2016-03-31 03:37:39'), (2933, '3', 'Upper Hill ', 46, NULL, '2016-03-31 03:37:39', '2016-03-31 03:37:39'), (2934, '99', 'Head Office ', 46, NULL, '2016-03-31 03:37:39', '2016-03-31 03:37:39'), (2935, '1', 'Victoria Towers, Upperhill', 47, NULL, '2016-03-31 03:37:39', '2016-03-31 03:37:39'), (2936, '2', 'Riverside Drive', 47, NULL, '2016-03-31 03:37:39', '2016-03-31 03:37:39'), (2937, '3', 'Lunga Lunga Square', 47, NULL, '2016-03-31 03:37:39', '2016-03-31 03:37:39'), (2938, 'GT', 'Githurai', 50, NULL, '2016-08-10 11:30:55', '2016-08-10 11:30:55'); -- -------------------------------------------------------- -- -- Table structure for table `benefitsettings` -- CREATE TABLE IF NOT EXISTS `benefitsettings` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `benefit_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `benefitsettings_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `branches` -- CREATE TABLE IF NOT EXISTS `branches` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `branches` -- INSERT INTO `branches` (`id`, `name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Head Office', NULL, '2016-07-27 06:03:33', '2016-07-27 06:03:33'), (2, 'nairobi', 1, '2016-08-01 08:58:23', '2016-08-01 08:58:23'), (3, 'Kericho', 8, '2016-08-10 11:42:48', '2016-08-10 11:42:48'); -- -------------------------------------------------------- -- -- Table structure for table `budgets` -- CREATE TABLE IF NOT EXISTS `budgets` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `expensesetting_id` int(11) NOT NULL, `amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `financial_month` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `financial_year` int(11) NOT NULL, `organization_id` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `budgets_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8 ; -- -- Dumping data for table `budgets` -- INSERT INTO `budgets` (`id`, `expensesetting_id`, `amount`, `financial_month`, `financial_year`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 9, '1,000.00', 'Aug', 0, 8, '2016-08-10 09:45:46', '2016-08-10 09:46:46'), (2, 11, '7,000.00', 'Aug', 0, 8, '2016-08-11 06:24:13', '2016-08-11 06:24:13'), (3, 10, '60,000.00', 'Aug', 0, 8, '2016-08-15 06:40:50', '2016-08-15 06:40:50'), (4, 12, '5,000.00', 'Sep', 2016, 11, '2016-09-20 06:04:46', '2016-09-20 06:10:06'), (5, 13, '5,000.00', 'Sep', 2016, 11, '2016-09-20 06:10:49', '2016-09-20 06:10:49'), (6, 14, '10,000.00', 'Sep', 2016, 11, '2016-09-20 06:11:33', '2016-09-20 06:11:33'), (7, 15, '4,000.00', 'Nov', 2016, 12, '2016-11-07 05:46:55', '2016-11-07 05:46:55'); -- -------------------------------------------------------- -- -- Table structure for table `categories` -- CREATE TABLE IF NOT EXISTS `categories` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` text COLLATE utf8_unicode_ci, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `charges` -- CREATE TABLE IF NOT EXISTS `charges` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `category` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `calculation_method` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `payment_method` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `percentage_of` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `amount` float(10,0) NOT NULL, `fee` tinyint(1) NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `disabled` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `charge_loanproduct` -- CREATE TABLE IF NOT EXISTS `charge_loanproduct` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `charge_id` int(10) unsigned NOT NULL, `loanproduct_id` int(10) unsigned NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `loancharges_charge_id_foreign` (`charge_id`), KEY `loancharges_loanproduct_id_foreign` (`loanproduct_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `charge_savingproduct` -- CREATE TABLE IF NOT EXISTS `charge_savingproduct` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `charge_id` int(10) unsigned NOT NULL, `savingproduct_id` int(10) unsigned NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `savingcharges_charge_id_foreign` (`charge_id`), KEY `savingcharges_savingproduct_id_foreign` (`savingproduct_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `citizenships` -- CREATE TABLE IF NOT EXISTS `citizenships` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `citizenships_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `citizenships` -- INSERT INTO `citizenships` (`id`, `name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Kenyan', NULL, '2016-07-27 06:03:33', '2016-07-27 06:03:33'), (2, 'Ugandan', NULL, '2016-07-27 06:03:33', '2016-07-27 06:03:33'), (3, 'Tanzanian', NULL, '2016-07-27 06:03:33', '2016-07-27 06:03:33'); -- -------------------------------------------------------- -- -- Table structure for table `clients` -- CREATE TABLE IF NOT EXISTS `clients` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `date` date NOT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `contact_person` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `contact_person_phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `contact_person_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `user_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=29 ; -- -- Dumping data for table `clients` -- INSERT INTO `clients` (`id`, `name`, `date`, `email`, `phone`, `address`, `contact_person`, `contact_person_phone`, `contact_person_email`, `type`, `organization_id`, `created_at`, `updated_at`, `user_id`) VALUES (1, '<NAME>', '2016-07-27', '<EMAIL>', '072909878', '', '', '', '', 'Customer', 0, '2016-07-27 07:39:02', '2016-07-27 07:39:02', NULL), (2, 'jacob', '2016-07-27', '<EMAIL>', '', '', 'Chumo', '', '', 'Supplier', 0, '2016-07-27 07:45:46', '2016-07-27 07:45:46', NULL), (3, '<NAME>', '2016-08-09', '<EMAIL>', '074636564372', '', 'steveie', '', '', 'Customer', 1, '2016-08-09 08:56:57', '2016-08-09 08:56:57', NULL), (4, 'Cripino', '2016-08-09', '<EMAIL>', '07116473777', '', 'cris', '', '<EMAIL>', 'Supplier', 1, '2016-08-09 08:57:44', '2016-08-09 08:57:44', NULL), (5, 'Uchumi', '2016-08-09', '<EMAIL>', '07116473777', '', 'steveie', '', '', 'Customer', 8, '2016-08-09 09:43:33', '2016-08-09 09:43:33', NULL), (6, 'Nakumatt', '2016-08-09', '<EMAIL>', '074636564372', '', 'nakumatt', '', '', 'Supplier', 8, '2016-08-09 09:44:27', '2016-08-09 09:44:27', NULL), (7, 'Stevie', '2016-08-11', '<EMAIL>', '0738984748', '', 'stevie', '', '', 'Customer', 8, '2016-08-11 06:19:11', '2016-08-11 06:19:11', NULL), (8, 'Kencode', '2016-08-11', '<EMAIL>', '07433432223', '', 'ken', '', '', 'Supplier', 8, '2016-08-11 06:20:01', '2016-08-11 06:20:01', NULL), (9, 'Cris', '2016-08-15', '<EMAIL>', '0739282882', '', 'crispino', '', '', 'Customer', 8, '2016-08-15 06:23:39', '2016-08-15 06:23:39', NULL), (10, 'Kelvin', '2016-08-15', '<EMAIL>', '073737363', '', 'kelvin', '', '', 'Supplier', 8, '2016-08-15 06:32:38', '2016-08-15 06:32:38', NULL), (11, 'Graceful Technologies', '2016-08-30', '<EMAIL>', '0729683817', NULL, NULL, NULL, NULL, 'Customer', NULL, '0000-00-00 00:00:00', '0000-00-00 00:00:00', 10), (12, 'Lixonet Tech', '2016-08-30', '<EMAIL>', '7654568799', NULL, NULL, NULL, NULL, 'Customer', NULL, '0000-00-00 00:00:00', '2016-08-30 08:16:32', 11), (13, 'LixonetTech', '2016-08-30', '<EMAIL>', '7654568799', NULL, NULL, NULL, NULL, 'Customer', NULL, '0000-00-00 00:00:00', '2016-08-30 08:17:08', 11), (14, 'Tramier Technologies', '2016-08-30', '<EMAIL>', '0745236987', NULL, NULL, NULL, NULL, 'Supplier', NULL, '0000-00-00 00:00:00', '2016-08-30 08:22:49', 12), (15, 'Tramier Technologies', '2016-08-30', '<EMAIL>', '0745236987', NULL, NULL, NULL, NULL, 'Supplier', NULL, '0000-00-00 00:00:00', '2016-08-30 08:22:58', 12), (16, 'lixnet', '2016-09-01', '<EMAIL>', '0710411226', NULL, NULL, NULL, NULL, 'Customer', NULL, '0000-00-00 00:00:00', '2016-09-01 15:46:30', 12), (17, 'Daticho', '2016-09-02', '<EMAIL>', '0710411226', NULL, NULL, NULL, NULL, 'Customer', NULL, '0000-00-00 00:00:00', '2016-09-02 05:46:31', 12), (18, 'Dreatove', '2016-09-02', '<EMAIL>', '0730567876', NULL, NULL, NULL, NULL, 'Customer', NULL, '0000-00-00 00:00:00', '2016-09-02 05:48:28', 12), (19, 'Swer', '2016-09-02', '<EMAIL>', '0721345678', NULL, NULL, NULL, NULL, 'Customer', NULL, '0000-00-00 00:00:00', '2016-09-02 05:57:16', 12), (20, 'Derva', '2016-09-02', '<EMAIL>', '0721345678', NULL, NULL, NULL, NULL, 'Customer', NULL, '0000-00-00 00:00:00', '2016-09-02 05:57:54', 13), (21, 'Victor', '2016-09-20', '<EMAIL>', '0712342423', '', '', '', '', 'Customer', 11, '2016-09-20 05:55:25', '2016-09-20 05:55:25', NULL), (22, 'Gabriel', '2016-09-20', '<EMAIL>', '0770440123', '', '', '', '', 'Supplier', 11, '2016-09-20 06:16:52', '2016-09-20 06:16:52', NULL), (23, 'Lixnet Tech', '2016-09-20', '<EMAIL>', '', '', '', '', '', 'Supplier', 11, '2016-09-20 06:19:56', '2016-09-20 06:19:56', NULL), (24, 'Lixnet Technologies', '2016-10-06', '<EMAIL>', '07108987687', '', '', '', '', 'Customer', 12, '2016-10-06 06:19:30', '2016-10-06 06:19:30', NULL), (25, 'James', '2016-10-06', '', '073474738383', '', 'jymo', '', '', 'Supplier', 12, '2016-10-06 06:20:25', '2016-10-06 06:20:25', NULL), (26, 'VirtualTech', '2016-10-26', '<EMAIL>', '020444904', '90393, Nairobi', 'Crispus', '+254710411226', '<EMAIL>', 'Customer', 17, '2016-10-26 08:15:19', '2016-10-26 08:15:19', NULL), (27, 'Spectre Int', '2016-10-26', '<EMAIL>', '039494484', '4423', 'barry', '', '', 'Supplier', 17, '2016-10-26 08:16:28', '2016-10-26 08:16:28', NULL), (28, '<NAME>', '2016-10-26', '<EMAIL>', '0715486954', '', 'Steve', '0715486954', '', 'Customer', 16, '2016-10-26 08:32:28', '2016-10-26 08:32:28', NULL); -- -------------------------------------------------------- -- -- Table structure for table `currencies` -- CREATE TABLE IF NOT EXISTS `currencies` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `shortname` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `currencies` -- INSERT INTO `currencies` (`id`, `name`, `shortname`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Kenyan Shillings', 'KES', NULL, '2016-07-27 06:03:36', '2016-07-27 06:03:36'); -- -------------------------------------------------------- -- -- Table structure for table `deductions` -- CREATE TABLE IF NOT EXISTS `deductions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `deduction_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `deductions_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `deductions` -- INSERT INTO `deductions` (`id`, `deduction_name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Salary Advance', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (2, 'Loans', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (3, 'Savings', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (4, 'Breakages and spoilages', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'); -- -------------------------------------------------------- -- -- Table structure for table `departments` -- CREATE TABLE IF NOT EXISTS `departments` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `department_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `departments_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=6 ; -- -- Dumping data for table `departments` -- INSERT INTO `departments` (`id`, `department_name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Finance', NULL, '2016-07-27 06:03:36', '2016-07-27 06:03:36'), (2, 'Human Resource', NULL, '2016-07-27 06:03:36', '2016-07-27 06:03:36'), (3, 'Information Technology', NULL, '2016-07-27 06:03:36', '2016-07-27 06:03:36'), (4, 'Management', NULL, '2016-07-27 06:03:36', '2016-07-27 06:03:36'), (5, 'Marketing', NULL, '2016-07-27 06:03:36', '2016-07-27 06:03:36'); -- -------------------------------------------------------- -- -- Table structure for table `documents` -- CREATE TABLE IF NOT EXISTS `documents` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `document_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `document_path` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` text COLLATE utf8_unicode_ci NOT NULL, `from_date` date DEFAULT NULL, `expiry_date` date DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `documents_employee_id_foreign` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ; -- -- Dumping data for table `documents` -- INSERT INTO `documents` (`id`, `employee_id`, `document_name`, `document_path`, `description`, `from_date`, `expiry_date`, `created_at`, `updated_at`) VALUES (5, 8, 'bla.php', '1474285688-AfricasTalkingGateway.php', 'bla', '2016-09-01', '2016-09-02', '2016-09-19 11:56:05', '2016-09-19 11:56:05'), (6, 8, 'bla1.php', '1474285688-addads.php', 'bla1', '2016-09-01', '2016-09-29', '2016-09-19 11:56:05', '2016-09-19 11:56:05'); -- -------------------------------------------------------- -- -- Table structure for table `earnings` -- CREATE TABLE IF NOT EXISTS `earnings` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `earning_id` int(10) unsigned NOT NULL, `narrative` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `formular` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `instalments` int(11) DEFAULT '0', `earnings_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `earning_date` date NOT NULL, `first_day_month` date NOT NULL, `last_day_month` date NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `earnings_employee_id_foreign` (`employee_id`), KEY `earnings_earning_id_foreign` (`earning_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8 ; -- -- Dumping data for table `earnings` -- INSERT INTO `earnings` (`id`, `employee_id`, `earning_id`, `narrative`, `formular`, `instalments`, `earnings_amount`, `earning_date`, `first_day_month`, `last_day_month`, `created_at`, `updated_at`) VALUES (1, 3, 1, '', 'One Time', 1, '4000.00', '2016-07-29', '2016-07-01', '2016-07-31', '2016-07-28 08:54:16', '2016-07-28 08:54:16'), (2, 4, 2, '', 'One Time', 1, '50000.00', '2016-08-31', '2016-08-01', '2016-08-31', '2016-08-01 06:15:46', '2016-08-01 06:15:46'), (3, 5, 1, '', 'One Time', 1, '4000.00', '2016-08-31', '2016-08-01', '2016-08-31', '2016-08-01 06:16:52', '2016-08-01 06:16:52'), (4, 6, 1, '', 'One Time', 1, '2000.00', '2016-08-31', '2016-08-01', '2016-08-31', '2016-08-10 08:48:53', '2016-08-10 08:48:53'), (5, 7, 2, '', 'Recurring', 1, '200.00', '2016-08-31', '2016-08-01', '2016-08-31', '2016-08-10 08:50:15', '2016-08-10 08:50:15'), (6, 8, 1, 'Best Employee', 'One Time', 0, '20000.00', '2016-09-01', '2016-09-01', '2016-09-30', '2016-09-19 06:02:37', '2016-09-19 06:02:37'), (7, 10, 1, '', 'One Time', 1, '5000.00', '2016-11-01', '2016-11-01', '2016-11-30', '2016-10-26 07:02:10', '2016-10-26 07:02:10'); -- -------------------------------------------------------- -- -- Table structure for table `earningsettings` -- CREATE TABLE IF NOT EXISTS `earningsettings` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `earning_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `earningsettings_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; -- -- Dumping data for table `earningsettings` -- INSERT INTO `earningsettings` (`id`, `earning_name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Bonus', NULL, '2016-07-27 06:03:33', '2016-07-27 06:03:33'), (2, 'Commission', NULL, '2016-07-27 06:03:33', '2016-07-27 06:03:33'); -- -------------------------------------------------------- -- -- Table structure for table `education` -- CREATE TABLE IF NOT EXISTS `education` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `education_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `education_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ; -- -- Dumping data for table `education` -- INSERT INTO `education` (`id`, `education_name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Primary School', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (2, 'Secondary School', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (3, 'College - Certificate', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (4, 'College - Diploma', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (5, 'Degree', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (6, 'Masters Degree', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (7, 'PHD', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (8, 'None', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'); -- -------------------------------------------------------- -- -- Table structure for table `emergencycontacts` -- CREATE TABLE IF NOT EXISTS `emergencycontacts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `relationship` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `phone1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `phone2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `id_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `same_address_employee` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `country` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `state` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `zip` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `county` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `home_phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `office_phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `cellular_phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `street_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `main_road` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `landmark` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `employee_id` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `emergencycontacts_employee_id_foreign` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `employee` -- CREATE TABLE IF NOT EXISTS `employee` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `organization_id` int(10) unsigned NOT NULL, `personal_file_number` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `first_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `last_name` varchar(50) COLLATE utf8_unicode_ci NOT NULL, `middle_name` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `identity_number` varchar(20) COLLATE utf8_unicode_ci NOT NULL, `passport_number` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `basic_pay` double(15,2) NOT NULL DEFAULT '0.00', `vol_amount` double(15,2) NOT NULL DEFAULT '0.00', `pin` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `social_security_number` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `hospital_insurance_number` varchar(20) COLLATE utf8_unicode_ci DEFAULT NULL, `work_permit_number` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `job_title` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `branch_id` int(10) unsigned DEFAULT NULL, `department_id` int(10) unsigned DEFAULT NULL, `job_group_id` int(10) unsigned DEFAULT NULL, `type_id` int(10) unsigned DEFAULT NULL, `photo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `signature` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `gender` varchar(6) COLLATE utf8_unicode_ci DEFAULT NULL, `marital_status` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL, `yob` date DEFAULT NULL, `citizenship_id` int(10) unsigned DEFAULT NULL, `education_type_id` int(10) unsigned DEFAULT NULL, `income_tax_applicable` int(11) NOT NULL DEFAULT '1', `income_tax_relief_applicable` int(11) NOT NULL DEFAULT '1', `hospital_insurance_applicable` int(11) NOT NULL DEFAULT '1', `social_security_applicable` int(11) NOT NULL DEFAULT '1', `mode_of_payment` varchar(15) COLLATE utf8_unicode_ci DEFAULT NULL, `bank_id` int(10) unsigned DEFAULT NULL, `bank_branch_id` int(10) unsigned DEFAULT NULL, `bank_account_number` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `bank_eft_code` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `swift_code` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `time_clock_rate_normal` double(15,2) NOT NULL DEFAULT '0.00', `day_clock_rate_normal` double(15,2) NOT NULL DEFAULT '0.00', `time_clock_rate_weekday` double(15,2) NOT NULL DEFAULT '0.00', `day_clock_rate_weekday` double(15,2) NOT NULL DEFAULT '0.00', `time_clock_rate_saturday` double(15,2) NOT NULL DEFAULT '0.00', `day_clock_rate_saturday` double(15,2) NOT NULL DEFAULT '0.00', `time_clock_rate_sunday` double(15,2) NOT NULL DEFAULT '0.00', `day_clock_rate_sunday` double(15,2) NOT NULL DEFAULT '0.00', `time_clock_rate_holiday` double(15,2) NOT NULL DEFAULT '0.00', `day_clock_rate_holiday` double(15,2) NOT NULL DEFAULT '0.00', `medical_smoker` char(1) COLLATE utf8_unicode_ci DEFAULT NULL, `medical_blood_group` varchar(3) COLLATE utf8_unicode_ci DEFAULT NULL, `medical_disabilities` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `medical_conditions` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email_office` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `email_personal` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `telephone_office` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `telephone_extension_office` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `telephone_mobile` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `postal_address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `postal_zip` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `date_joined` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `bf_leave_days` int(11) NOT NULL DEFAULT '0', `annual_leave_days` int(11) NOT NULL DEFAULT '0', `start_date` date DEFAULT NULL, `end_date` date DEFAULT NULL, `custom_field1` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `custom_field2` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `custom_field3` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `custom_field4` varchar(30) COLLATE utf8_unicode_ci DEFAULT NULL, `in_employment` char(1) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Y', `is_css_active` tinyint(1) DEFAULT '0', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), UNIQUE KEY `employee_identity_number_unique` (`identity_number`), UNIQUE KEY `employee_email_office_unique` (`email_office`), UNIQUE KEY `employee_passport_number_unique` (`passport_number`), UNIQUE KEY `employee_pin_unique` (`pin`), UNIQUE KEY `employee_social_security_number_unique` (`social_security_number`), UNIQUE KEY `employee_hospital_insurance_number_unique` (`hospital_insurance_number`), UNIQUE KEY `employee_work_permit_number_unique` (`work_permit_number`), UNIQUE KEY `employee_bank_account_number_unique` (`bank_account_number`), UNIQUE KEY `employee_bank_eft_code_unique` (`bank_eft_code`), UNIQUE KEY `employee_swift_code_unique` (`swift_code`), UNIQUE KEY `employee_email_personal_unique` (`email_personal`), UNIQUE KEY `employee_telephone_office_unique` (`telephone_office`), UNIQUE KEY `employee_telephone_extension_office_unique` (`telephone_extension_office`), UNIQUE KEY `employee_telephone_mobile_unique` (`telephone_mobile`), KEY `employee_organization_id_foreign` (`organization_id`), KEY `employee_branch_id_foreign` (`branch_id`), KEY `employee_department_id_foreign` (`department_id`), KEY `employee_job_group_id_foreign` (`job_group_id`), KEY `employee_type_id_foreign` (`type_id`), KEY `employee_citizenship_id_foreign` (`citizenship_id`), KEY `employee_education_type_id_foreign` (`education_type_id`), KEY `employee_bank_id_foreign` (`bank_id`), KEY `employee_bank_branch_id_foreign` (`bank_branch_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=14 ; -- -- Dumping data for table `employee` -- INSERT INTO `employee` (`id`, `organization_id`, `personal_file_number`, `first_name`, `last_name`, `middle_name`, `identity_number`, `passport_number`, `basic_pay`, `vol_amount`, `pin`, `social_security_number`, `hospital_insurance_number`, `work_permit_number`, `job_title`, `branch_id`, `department_id`, `job_group_id`, `type_id`, `photo`, `signature`, `gender`, `marital_status`, `yob`, `citizenship_id`, `education_type_id`, `income_tax_applicable`, `income_tax_relief_applicable`, `hospital_insurance_applicable`, `social_security_applicable`, `mode_of_payment`, `bank_id`, `bank_branch_id`, `bank_account_number`, `bank_eft_code`, `swift_code`, `time_clock_rate_normal`, `day_clock_rate_normal`, `time_clock_rate_weekday`, `day_clock_rate_weekday`, `time_clock_rate_saturday`, `day_clock_rate_saturday`, `time_clock_rate_sunday`, `day_clock_rate_sunday`, `time_clock_rate_holiday`, `day_clock_rate_holiday`, `medical_smoker`, `medical_blood_group`, `medical_disabilities`, `medical_conditions`, `email_office`, `email_personal`, `telephone_office`, `telephone_extension_office`, `telephone_mobile`, `postal_address`, `postal_zip`, `date_joined`, `bf_leave_days`, `annual_leave_days`, `start_date`, `end_date`, `custom_field1`, `custom_field2`, `custom_field3`, `custom_field4`, `in_employment`, `is_css_active`, `created_at`, `updated_at`) VALUES (3, 2, '1', 'Josephine', 'Ayienda', '', '268767373', NULL, 60000.00, 0.00, 'A28383838238p', '7737733737', '6382373', NULL, '', 1, 4, 2, 1, 'default_photo.png', 'sign_av.jpg', 'female', 'Married', '1998-07-01', 1, 5, 1, 1, 1, 1, 'Bank', 46, 2, '07353535255353', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '', '', '2016-07-21', 0, 0, '0000-00-00', '0000-00-00', '', NULL, NULL, NULL, 'Y', 0, '2016-07-28 07:19:17', '2016-07-28 07:19:17'), (4, 1, '003', 'Chiero', 'Eric', '', '30787656', NULL, 50000.00, 0.00, 'A3838382983P', '78777373', '88920838', NULL, '', 2, 5, 2, 1, 'default_photo.png', 'sign_av.jpg', 'male', 'Single', '1983-06-08', 1, 6, 1, 1, 1, 1, 'Bank', 12, 1041, '0723454323', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '', '', '2016-07-13', 0, 0, '0000-00-00', '0000-00-00', '', NULL, NULL, NULL, 'Y', 0, '2016-08-01 06:02:04', '2016-08-01 06:14:33'), (5, 1, '4', 'Cheruiyot', 'Kibet', '', '267876567', NULL, 70000.00, 0.00, 'K3422238743', '3456646', '54638837', NULL, '', 1, 4, 2, 1, 'default_photo.png', 'sign_av.jpg', 'male', 'Single', '1988-07-05', 1, 5, 1, 1, 1, 1, 'Bank', 17, 1497, '07245646664', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '', '', '2016-03-01', 0, 0, '0000-00-00', '0000-00-00', '', NULL, NULL, NULL, 'Y', 0, '2016-08-01 06:11:43', '2016-08-01 06:11:43'), (6, 8, '10', 'josephine', 'Ayienda', '', '28563553', NULL, 50000.00, 0.00, 'A2192828911P', '8276789', '222765678', NULL, '', 1, 4, 2, 1, 'default_photo.png', 'sign_av.jpg', 'female', 'Married', '1998-08-04', 3, 6, 1, 1, 1, 1, 'Bank', 50, 2938, '07132234432', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '', '', '2016-08-01', 0, 0, '0000-00-00', '0000-00-00', '', NULL, NULL, NULL, 'Y', 0, '2016-08-10 08:36:54', '2016-08-10 08:43:53'), (7, 8, '11', 'Lamech', 'Aondo', '', '2839890', NULL, 100000.00, 0.00, 'A2872636336P', '9387893', '78909829', NULL, '', 3, 1, 1, 1, 'default_photo.png', 'sign_av.jpg', 'male', 'Married', '1998-07-27', 1, 7, 1, 1, 1, 1, 'Bank', 50, 2938, '0734212343', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '', '', '2016-07-04', 0, 0, '0000-00-00', '0000-00-00', '', NULL, NULL, NULL, 'Y', 0, '2016-08-10 08:43:13', '2016-08-10 08:43:13'), (8, 11, 'B.1', 'Kennedy', 'Wango', 'Wachira', '27781190', NULL, 50388.71, 0.00, NULL, NULL, NULL, NULL, '', NULL, NULL, 1, 1, 'default_photo.png', 'sign_av.jpg', 'male', '', '1990-06-13', NULL, NULL, 1, 1, 1, 1, 'Bank', 19, 193, '1239812737217', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '', '', '2015-07-13', 0, 0, '0000-00-00', '0000-00-00', '', NULL, NULL, NULL, 'Y', 1, '2016-09-19 04:43:20', '2016-09-19 11:56:05'), (9, 11, 'B.2', 'James', 'Githu', '', '1232343', NULL, 50388.71, 0.00, NULL, NULL, NULL, NULL, '', NULL, NULL, 1, 1, 'default_photo.png', 'sign_av.jpg', 'male', '', '1990-01-01', NULL, NULL, 1, 1, 1, 1, '', NULL, NULL, NULL, NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '', '', '2016-09-01', 0, 0, '0000-00-00', '0000-00-00', '', NULL, NULL, NULL, 'Y', 0, '2016-09-19 04:44:22', '2016-09-19 07:19:00'), (10, 12, 'K.1', 'Josephine', 'Ayienda', '', '287967456', NULL, 40000.00, 0.00, 'A20293330998P', '36635363', '466373772', NULL, '', 1, 3, 2, 1, 'default_photo.png', 'sign_av.jpg', 'female', 'Married', '1989-07-12', 1, 5, 1, 1, 1, 1, 'Cheque', 17, 1497, '0716787656445', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '', '', '2015-06-12', 0, 0, '0000-00-00', '0000-00-00', '', NULL, NULL, NULL, 'Y', 1, '2016-10-07 08:55:30', '2016-10-17 05:55:35'), (11, 17, 'LTL1', 'JOB', 'MAMBOLEO', 'M', '24958676', NULL, 726826738.00, 0.00, 'A3994944K', '8887333', '3566565', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 1, 1, 1, 1, NULL, NULL, NULL, NULL, NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, 'BANK', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, NULL, NULL, NULL, NULL, 'Y', 0, '2016-10-18 02:49:09', '2016-10-18 02:49:09'), (13, 12, 'K.2', 'Kelvin', 'Makamu', '', '398882882', NULL, 100000.00, 0.00, 'A39988767P', '3765467322', '236378746', NULL, '', 1, 4, 2, 1, 'default_photo.png', 'sign_av.jpg', 'male', 'Single', '1990-02-07', 1, 5, 1, 1, 1, 1, 'Bank', 4, 459, '1677663782288', NULL, NULL, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, NULL, NULL, NULL, NULL, '<EMAIL>', NULL, NULL, NULL, NULL, '', '', '2012-03-01', 0, 0, '0000-00-00', '0000-00-00', '', NULL, NULL, NULL, 'Y', 0, '2016-10-19 06:02:20', '2016-10-19 06:02:20'); -- -------------------------------------------------------- -- -- Table structure for table `employeebenefits` -- CREATE TABLE IF NOT EXISTS `employeebenefits` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `jobgroup_id` int(10) unsigned NOT NULL, `benefit_id` int(10) unsigned NOT NULL, `amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `employeebenefits_jobgroup_id_foreign` (`jobgroup_id`), KEY `employeebenefits_benefit_id_foreign` (`benefit_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `employeenontaxables` -- CREATE TABLE IF NOT EXISTS `employeenontaxables` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `nontaxable_id` int(10) unsigned NOT NULL, `formular` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `instalments` int(11) DEFAULT '0', `nontaxable_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `nontaxable_date` date NOT NULL, `first_day_month` date NOT NULL, `last_day_month` date NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `employeenontaxables_employee_id_foreign` (`employee_id`), KEY `employeenontaxables_nontaxable_id_foreign` (`nontaxable_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; -- -- Dumping data for table `employeenontaxables` -- INSERT INTO `employeenontaxables` (`id`, `employee_id`, `nontaxable_id`, `formular`, `instalments`, `nontaxable_amount`, `nontaxable_date`, `first_day_month`, `last_day_month`, `created_at`, `updated_at`) VALUES (1, 6, 1, 'One Time', 1, '5000.00', '2016-08-31', '2016-08-01', '2016-08-31', '2016-08-10 08:55:52', '2016-08-10 08:55:52'), (2, 9, 1, 'One Time', 0, '2000.00', '2016-09-01', '2016-09-01', '2016-09-30', '2016-09-19 06:05:25', '2016-09-19 06:05:25'); -- -------------------------------------------------------- -- -- Table structure for table `employee_allowances` -- CREATE TABLE IF NOT EXISTS `employee_allowances` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `allowance_id` int(10) unsigned NOT NULL, `formular` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `instalments` int(11) DEFAULT '0', `allowance_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `allowance_date` date NOT NULL, `first_day_month` date NOT NULL, `last_day_month` date NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `employee_allowances_employee_id_foreign` (`employee_id`), KEY `employee_allowances_allowance_id_foreign` (`allowance_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=6 ; -- -- Dumping data for table `employee_allowances` -- INSERT INTO `employee_allowances` (`id`, `employee_id`, `allowance_id`, `formular`, `instalments`, `allowance_amount`, `allowance_date`, `first_day_month`, `last_day_month`, `created_at`, `updated_at`) VALUES (1, 4, 2, 'One Time', 1, '2000.00', '2016-08-31', '2016-08-01', '2016-08-31', '2016-08-01 06:20:52', '2016-08-01 06:20:52'), (2, 5, 1, 'One Time', 1, '4000.00', '2016-08-31', '2016-08-01', '2016-08-31', '2016-08-01 06:34:01', '2016-08-01 06:34:01'), (3, 6, 2, 'Recurring', 1, '3000.00', '2016-08-31', '2016-08-01', '2016-08-31', '2016-08-10 08:51:24', '2016-08-10 08:51:24'), (4, 9, 1, 'One Time', 0, '5000.00', '2016-09-01', '2016-09-01', '2016-09-30', '2016-09-19 06:07:04', '2016-09-19 06:07:04'), (5, 10, 2, 'Recurring', 1, '6000.00', '2016-11-01', '2016-11-01', '2016-11-30', '2016-10-26 07:02:56', '2016-10-26 07:02:56'); -- -------------------------------------------------------- -- -- Table structure for table `employee_deductions` -- CREATE TABLE IF NOT EXISTS `employee_deductions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `deduction_id` int(10) unsigned NOT NULL, `formular` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `instalments` int(11) DEFAULT '0', `deduction_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `deduction_date` date NOT NULL, `first_day_month` date NOT NULL, `last_day_month` date NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `employee_deductions_employee_id_foreign` (`employee_id`), KEY `employee_deductions_deduction_id_foreign` (`deduction_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `employee_deductions` -- INSERT INTO `employee_deductions` (`id`, `employee_id`, `deduction_id`, `formular`, `instalments`, `deduction_amount`, `deduction_date`, `first_day_month`, `last_day_month`, `created_at`, `updated_at`) VALUES (1, 6, 4, 'One Time', 1, '100.00', '2016-08-31', '2016-08-01', '2016-08-31', '2016-08-10 08:54:55', '2016-08-10 08:54:55'), (2, 8, 1, 'One Time', 0, '3000.00', '2016-09-01', '2016-09-01', '2016-09-30', '2016-09-19 06:08:34', '2016-09-19 06:08:34'), (3, 10, 1, 'One Time', 1, '2000.00', '2016-11-01', '2016-11-01', '2016-11-30', '2016-10-26 07:04:44', '2016-10-26 07:04:44'); -- -------------------------------------------------------- -- -- Table structure for table `employee_relief` -- CREATE TABLE IF NOT EXISTS `employee_relief` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `relief_id` int(10) unsigned NOT NULL, `employee_id` int(10) unsigned NOT NULL, `relief_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `employee_relief_relief_id_foreign` (`relief_id`), KEY `employee_relief_employee_id_foreign` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `employee_relief` -- INSERT INTO `employee_relief` (`id`, `relief_id`, `employee_id`, `relief_amount`, `created_at`, `updated_at`) VALUES (1, 2, 6, '2500.00', '2016-08-10 08:59:48', '2016-08-10 08:59:48'), (2, 3, 9, '2500.00', '2016-09-19 06:07:41', '2016-09-19 06:07:41'), (3, 4, 10, '1500.00', '2016-10-26 07:05:37', '2016-10-26 07:05:37'); -- -------------------------------------------------------- -- -- Table structure for table `employee_type` -- CREATE TABLE IF NOT EXISTS `employee_type` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_type_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `employee_type_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `employee_type` -- INSERT INTO `employee_type` (`id`, `employee_type_name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Full Time', NULL, '2016-07-27 06:03:36', '2016-07-27 06:03:36'), (2, 'Contract', NULL, '2016-07-27 06:03:36', '2016-07-27 06:03:36'), (3, 'Internship', NULL, '2016-07-27 06:03:36', '2016-07-27 06:03:36'), (4, 'Probation', 11, '2016-09-19 09:03:35', '2016-09-19 09:03:35'); -- -------------------------------------------------------- -- -- Table structure for table `erporderitems` -- CREATE TABLE IF NOT EXISTS `erporderitems` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `item_id` int(10) unsigned NOT NULL, `quantity` int(11) NOT NULL DEFAULT '1', `issued_by` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `date_of_issue` date DEFAULT NULL, `date_of_return` date DEFAULT NULL, `status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `is_returned` tinyint(1) NOT NULL DEFAULT '0', `rate` double NOT NULL DEFAULT '0', `duration` int(11) DEFAULT NULL, `erporder_id` int(10) unsigned NOT NULL, `price` double DEFAULT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `erporderitems_item_id_foreign` (`item_id`), KEY `erporderitems_erporder_id_foreign` (`erporder_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=61 ; -- -- Dumping data for table `erporderitems` -- INSERT INTO `erporderitems` (`id`, `item_id`, `quantity`, `issued_by`, `date_of_issue`, `date_of_return`, `status`, `is_returned`, `rate`, `duration`, `erporder_id`, `price`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 1, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 1, 35000, 1, '2016-07-27 08:03:03', '2016-07-27 08:03:03'), (2, 2, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 1, 700, 1, '2016-07-27 08:03:03', '2016-07-27 08:03:03'), (3, 1, 10, NULL, NULL, NULL, NULL, 0, 0, NULL, 2, 30000, 1, '2016-07-27 08:06:23', '2016-07-27 08:06:23'), (4, 2, 20, NULL, NULL, NULL, NULL, 0, 0, NULL, 2, 300, 1, '2016-07-27 08:06:23', '2016-07-27 08:06:23'), (5, 1, 10, NULL, NULL, NULL, NULL, 0, 0, NULL, 3, 35000, 1, '2016-07-27 08:30:11', '2016-07-27 08:30:11'), (6, 4, 1, NULL, NULL, NULL, NULL, 0, 0, NULL, 4, 35000, 0, '2016-08-09 09:11:20', '2016-08-09 09:11:20'), (7, 4, 2, NULL, NULL, NULL, NULL, 0, 0, NULL, 5, 35000, 0, '2016-08-09 09:13:10', '2016-08-09 09:13:10'), (8, 4, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 6, 35000, 0, '2016-08-09 09:14:00', '2016-08-09 09:14:00'), (9, 6, 2, NULL, NULL, NULL, NULL, 0, 0, NULL, 7, 35000, 8, '2016-08-09 10:07:33', '2016-08-09 10:07:33'), (10, 6, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 8, 20000, 8, '2016-08-09 10:08:53', '2016-08-09 10:08:53'), (11, 6, 1, NULL, NULL, NULL, NULL, 0, 0, NULL, 9, 35000, 8, '2016-08-09 10:11:55', '2016-08-09 10:11:55'), (12, 7, 0, NULL, NULL, NULL, NULL, 0, 0, NULL, 9, 1200, 8, '2016-08-09 10:11:55', '2016-08-09 10:11:55'), (13, 6, 1, NULL, NULL, NULL, NULL, 0, 0, NULL, 10, 35000, 0, '2016-08-10 08:39:11', '2016-08-10 08:39:11'), (14, 7, 2, NULL, NULL, NULL, NULL, 0, 0, NULL, 11, 1200, 0, '2016-08-10 08:45:37', '2016-08-10 08:45:37'), (15, 7, 1, NULL, NULL, NULL, NULL, 0, 0, NULL, 12, 0, 8, '2016-08-10 08:59:47', '2016-08-10 08:59:47'), (16, 7, 1, NULL, NULL, NULL, NULL, 0, 0, NULL, 13, 1200, 8, '2016-08-10 09:00:46', '2016-08-10 09:00:46'), (17, 8, 1, NULL, NULL, NULL, NULL, 0, 0, NULL, 14, 9000, 8, '2016-08-11 06:27:47', '2016-08-11 06:27:47'), (18, 9, 1, NULL, NULL, NULL, NULL, 0, 0, NULL, 14, 250000, 8, '2016-08-11 06:27:47', '2016-08-11 06:27:47'), (19, 8, 2, NULL, NULL, NULL, NULL, 0, 0, NULL, 15, 7500, 8, '2016-08-11 06:31:44', '2016-08-11 06:31:44'), (20, 8, 3, NULL, NULL, NULL, NULL, 0, 0, NULL, 16, 9000, 8, '2016-08-11 06:35:25', '2016-08-11 06:35:25'), (21, 10, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 17, 4500, 8, '2016-08-15 06:42:39', '2016-08-15 06:42:39'), (22, 11, 1, NULL, NULL, NULL, NULL, 0, 0, NULL, 18, 100000, 8, '2016-08-15 06:45:43', '2016-08-15 06:45:43'), (23, 10, 2, NULL, NULL, NULL, NULL, 0, 0, NULL, 18, 7000, 8, '2016-08-15 06:45:44', '2016-08-15 06:45:44'), (24, 11, 1, NULL, NULL, NULL, NULL, 0, 0, NULL, 19, 100000, 8, '2016-08-15 06:49:59', '2016-08-15 06:49:59'), (25, 10, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 19, 7000, 8, '2016-08-15 06:49:59', '2016-08-15 06:49:59'), (26, 2, 1, NULL, NULL, NULL, NULL, 0, 0, NULL, 20, 700, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (27, 5, 1, NULL, NULL, NULL, NULL, 0, 0, NULL, 20, 1200, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (28, 6, 6, NULL, NULL, NULL, NULL, 0, 0, NULL, 21, 35000, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (29, 3, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 21, 50000, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (30, 2, 2, NULL, NULL, NULL, NULL, 0, 0, NULL, 22, 700, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (31, 5, 2, NULL, NULL, NULL, NULL, 0, 0, NULL, 23, 1200, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (32, 6, 1, NULL, NULL, NULL, NULL, 0, 0, NULL, 24, 35000, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (33, 1, 2, NULL, NULL, NULL, NULL, 0, 0, NULL, 25, 35000, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (34, 12, 10, NULL, NULL, NULL, NULL, 0, 0, NULL, 26, 70000, 11, '2016-09-20 06:24:05', '2016-09-20 06:24:05'), (35, 13, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 27, 500, 11, '2016-09-20 06:32:28', '2016-09-20 06:32:28'), (36, 12, 20, NULL, NULL, NULL, NULL, 0, 0, NULL, 28, 40000, 11, '2016-09-20 06:33:20', '2016-09-20 06:33:20'), (37, 12, 10, NULL, NULL, NULL, NULL, 0, 0, NULL, 29, 70000, 11, '2016-09-20 06:36:14', '2016-09-20 06:36:14'), (38, 13, 2, NULL, NULL, NULL, NULL, 0, 0, NULL, 30, 500, 11, '2016-09-21 08:26:07', '2016-09-21 08:26:07'), (39, 13, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 30, 500, 11, '2016-09-21 08:26:08', '2016-09-21 08:26:08'), (40, 12, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 31, 70000, 11, '2016-09-21 08:56:03', '2016-09-21 08:56:03'), (41, 13, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 31, 850, 11, '2016-09-21 08:56:04', '2016-09-21 08:56:04'), (42, 12, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 32, 70000, 11, '2016-09-21 08:58:32', '2016-09-21 08:58:32'), (43, 12, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 33, 70000, 11, '2016-09-21 09:10:29', '2016-09-21 09:10:29'), (44, 12, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 36, 70000, 11, '2016-09-21 09:15:02', '2016-09-21 09:15:02'), (45, 13, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 36, 850, 11, '2016-09-21 09:15:03', '2016-09-21 09:15:03'), (46, 12, 3, NULL, NULL, NULL, NULL, 0, 0, NULL, 37, 70000, 11, '2016-09-22 06:38:51', '2016-09-22 06:38:51'), (47, 13, 6, NULL, NULL, NULL, NULL, 0, 0, NULL, 37, 850, 11, '2016-09-22 06:38:51', '2016-09-22 06:38:51'), (48, 12, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 38, 40000, 11, '2016-09-22 08:10:42', '2016-09-22 08:10:42'), (49, 12, 6, NULL, NULL, NULL, NULL, 0, 0, NULL, 39, 40000, 11, '2016-09-23 03:42:15', '2016-09-23 03:42:15'), (50, 12, 2, NULL, NULL, NULL, NULL, 0, 0, NULL, 39, 40000, 11, '2016-09-23 03:42:15', '2016-09-23 03:42:15'), (51, 12, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 40, 70000, 11, '2016-09-23 03:57:40', '2016-09-23 03:57:40'), (52, 13, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 41, 500, 11, '2016-09-23 03:58:20', '2016-09-23 03:58:20'), (53, 15, 20, NULL, NULL, NULL, NULL, 0, 0, NULL, 42, 200, 12, '2016-10-06 06:35:22', '2016-10-06 06:35:22'), (54, 15, 4, NULL, NULL, NULL, NULL, 0, 0, NULL, 43, 450, 12, '2016-10-06 06:48:17', '2016-10-06 06:48:17'), (55, 15, 10, NULL, NULL, NULL, NULL, 0, 0, NULL, 44, 450, 12, '2016-10-06 06:50:23', '2016-10-06 06:50:23'), (56, 17, 3, NULL, NULL, NULL, NULL, 0, 0, NULL, 45, 40000, 17, '2016-10-26 08:36:24', '2016-10-26 08:36:24'), (57, 18, 2, NULL, NULL, NULL, NULL, 0, 0, NULL, 45, 22000, 17, '2016-10-26 08:36:24', '2016-10-26 08:36:24'), (58, 19, 10, NULL, NULL, NULL, NULL, 0, 0, NULL, 46, 37000, 16, '2016-10-26 08:38:35', '2016-10-26 08:38:35'), (59, 17, 10, NULL, NULL, NULL, NULL, 0, 0, NULL, 47, 40000, 17, '2016-10-26 08:40:49', '2016-10-26 08:40:49'), (60, 18, 5, NULL, NULL, NULL, NULL, 0, 0, NULL, 47, 22000, 17, '2016-10-26 08:40:49', '2016-10-26 08:40:49'); -- -------------------------------------------------------- -- -- Table structure for table `erporders` -- CREATE TABLE IF NOT EXISTS `erporders` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `client_id` int(10) unsigned NOT NULL, `purchase_acc_id` int(11) DEFAULT NULL, `payable_acc_id` int(11) DEFAULT NULL, `asset_acc_id` int(11) DEFAULT NULL, `income_acc_id` int(11) DEFAULT NULL, `date` date DEFAULT NULL, `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `total_amount` double DEFAULT NULL, `discount_amount` double DEFAULT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `is_lease` tinyint(1) NOT NULL DEFAULT '0', `payment_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `order_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `inv_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `due_date` date DEFAULT NULL, `ordered_by` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_id` int(11) NOT NULL, `comment` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `erporders_client_id_foreign` (`client_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=48 ; -- -- Dumping data for table `erporders` -- INSERT INTO `erporders` (`id`, `client_id`, `purchase_acc_id`, `payable_acc_id`, `asset_acc_id`, `income_acc_id`, `date`, `status`, `total_amount`, `discount_amount`, `type`, `is_lease`, `payment_type`, `order_number`, `inv_number`, `due_date`, `ordered_by`, `organization_id`, `comment`, `created_at`, `updated_at`) VALUES (1, 1, 31, 32, NULL, NULL, '2016-07-27', 'new', NULL, 0, 'sales', 0, NULL, '2016/07/27/0001', NULL, NULL, NULL, 1, NULL, '2016-07-27 08:03:03', '2016-07-27 08:03:03'), (2, 2, 31, 32, NULL, NULL, '2016-07-27', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/07/27/0002', NULL, NULL, NULL, 1, NULL, '2016-07-27 08:06:23', '2016-07-27 08:06:23'), (3, 1, 31, 32, NULL, NULL, '2016-07-27', 'new', NULL, 0, 'quotations', 0, NULL, '2016/07/27/0003', NULL, NULL, NULL, 1, NULL, '2016-07-27 08:30:10', '2016-07-27 08:30:10'), (4, 3, 31, 32, NULL, NULL, '2016-08-09', 'new', NULL, 0, 'sales', 0, NULL, '2016/08/09/0004', NULL, NULL, NULL, 0, NULL, '2016-08-09 09:11:20', '2016-08-09 09:11:20'), (5, 3, 31, 32, NULL, NULL, '2016-08-09', 'new', NULL, 0, 'quotations', 0, NULL, '2016/08/09/0005', NULL, NULL, NULL, 0, NULL, '2016-08-09 09:13:10', '2016-08-09 09:13:10'), (6, 3, 31, 32, NULL, NULL, '2016-08-09', 'new', NULL, 0, 'quotations', 0, NULL, '2016/08/09/0006', NULL, NULL, NULL, 0, NULL, '2016-08-09 09:13:59', '2016-08-09 09:13:59'), (7, 5, 31, 32, NULL, NULL, '2016-08-09', 'new', NULL, 0, 'sales', 0, NULL, '2016/08/09/0007', NULL, NULL, NULL, 8, NULL, '2016-08-09 10:07:33', '2016-08-09 10:07:33'), (8, 6, 31, 32, NULL, NULL, '2016-08-09', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/08/09/0001', NULL, NULL, NULL, 8, NULL, '2016-08-09 10:08:53', '2016-08-09 10:08:53'), (9, 5, 31, 32, NULL, NULL, '2016-08-09', 'new', NULL, 0, 'quotations', 0, NULL, '2016/08/09/0009', NULL, NULL, NULL, 8, NULL, '2016-08-09 10:11:54', '2016-08-09 10:11:54'), (10, 5, 31, 32, NULL, NULL, '2016-08-10', 'new', NULL, 0, 'sales', 0, NULL, '2016/08/10/0010', NULL, NULL, NULL, 0, NULL, '2016-08-10 08:39:11', '2016-08-10 08:39:11'), (11, 5, 31, 32, NULL, NULL, '2016-08-10', 'new', NULL, 0, 'sales', 0, NULL, '2016/08/10/0011', NULL, NULL, NULL, 8, NULL, '2016-08-10 08:45:37', '2016-08-10 08:45:37'), (12, 6, 31, 32, NULL, NULL, '2016-08-10', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/08/10/0005', NULL, NULL, NULL, 8, NULL, '2016-08-10 08:59:47', '2016-08-10 08:59:47'), (13, 5, 31, 32, NULL, NULL, '2016-08-10', 'new', NULL, 0, 'quotations', 0, NULL, '2016/08/10/0013', NULL, NULL, NULL, 8, NULL, '2016-08-10 09:00:46', '2016-08-10 09:00:46'), (14, 7, 31, 32, NULL, NULL, '2016-08-11', 'new', NULL, 0, 'sales', 0, NULL, '2016/08/11/0014', NULL, NULL, NULL, 8, NULL, '2016-08-11 06:27:46', '2016-08-11 06:27:46'), (15, 8, 31, 32, NULL, NULL, '2016-08-11', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/08/11/0008', NULL, NULL, NULL, 8, NULL, '2016-08-11 06:31:44', '2016-08-11 06:31:44'), (16, 7, 31, 32, NULL, NULL, '2016-08-11', 'new', NULL, 0, 'quotations', 0, NULL, '2016/08/11/0016', NULL, NULL, NULL, 8, NULL, '2016-08-11 06:35:25', '2016-08-11 06:35:25'), (17, 10, 31, 32, NULL, NULL, '2016-08-15', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/08/15/0010', NULL, NULL, NULL, 8, NULL, '2016-08-15 06:42:39', '2016-08-15 06:42:39'), (18, 9, 31, 32, NULL, NULL, '2016-08-15', 'new', NULL, 0, 'sales', 0, NULL, '2016/08/15/0018', NULL, NULL, NULL, 8, NULL, '2016-08-15 06:45:43', '2016-08-15 06:45:43'), (19, 9, 31, 32, NULL, NULL, '2016-08-15', 'new', NULL, 0, 'quotations', 0, NULL, '2016/08/15/0019', NULL, NULL, NULL, 8, NULL, '2016-08-15 06:49:59', '2016-08-15 06:49:59'), (20, 11, 31, 32, NULL, NULL, '2016-08-30', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/08/30/0020', NULL, NULL, NULL, 0, NULL, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (21, 12, 31, 32, NULL, NULL, '2016-08-30', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/08/30/0021', NULL, NULL, NULL, 0, NULL, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (22, 11, 31, 32, NULL, NULL, '2016-08-30', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/08/30/0022', NULL, NULL, NULL, 0, NULL, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (23, 11, 31, 32, NULL, NULL, '2016-08-30', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/08/30/0023', NULL, NULL, NULL, 0, NULL, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (24, 11, 31, 32, NULL, NULL, '2016-08-30', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/08/30/0024', NULL, NULL, NULL, 0, NULL, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (25, 12, 31, 32, NULL, NULL, '2016-09-01', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/09/01/0025', NULL, NULL, NULL, 0, NULL, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (26, 21, 31, 32, NULL, NULL, '2016-09-20', 'new', NULL, 3500, 'sales', 0, NULL, '2016/09/20/0026', NULL, NULL, NULL, 11, NULL, '2016-09-20 06:24:05', '2016-09-20 06:24:05'), (27, 22, 31, 32, NULL, NULL, '2016-09-20', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/09/20/0002', NULL, NULL, NULL, 11, NULL, '2016-09-20 06:32:28', '2016-09-20 06:32:28'), (28, 23, 31, 32, NULL, NULL, '2016-09-20', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/09/20/0003', NULL, NULL, NULL, 11, NULL, '2016-09-20 06:33:20', '2016-09-20 06:33:20'), (29, 21, 31, 32, NULL, NULL, '2016-09-20', 'new', NULL, 3500, 'quotations', 0, NULL, '2016/09/20/0029', NULL, NULL, NULL, 11, 'Hi', '2016-09-20 06:36:14', '2016-09-22 08:36:11'), (30, 22, 31, 22, NULL, NULL, '2016-09-21', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/09/21/0005', NULL, NULL, NULL, 11, NULL, '2016-09-21 08:26:07', '2016-09-21 08:26:07'), (31, 21, NULL, NULL, 22, 33, '2016-09-21', 'new', NULL, 1000, 'sales', 0, NULL, '2016/09/21/0031', NULL, NULL, NULL, 11, NULL, '2016-09-21 08:56:03', '2016-09-21 08:56:03'), (32, 21, NULL, NULL, 22, 30, '2016-09-21', 'cancelled', NULL, 1000, 'sales', 0, NULL, '2016/09/21/0032', NULL, NULL, NULL, 11, NULL, '2016-09-21 08:58:32', '2016-09-21 09:13:35'), (33, 21, NULL, NULL, 22, 33, '2016-09-21', 'cancelled', NULL, 1000, 'sales', 0, NULL, '2016/09/21/0033', NULL, NULL, NULL, 11, NULL, '2016-09-21 09:10:29', '2016-09-21 09:13:26'), (34, 21, NULL, NULL, 22, 33, '2016-09-21', 'cancelled', NULL, 1000, 'sales', 0, NULL, '2016/09/21/0033', NULL, NULL, NULL, 11, NULL, '2016-09-21 09:12:17', '2016-09-21 09:13:18'), (35, 21, NULL, NULL, 22, 33, '2016-09-21', 'cancelled', NULL, 1000, 'sales', 0, NULL, '2016/09/21/0035', NULL, NULL, NULL, 11, NULL, '2016-09-21 09:14:30', '2016-09-21 09:15:41'), (36, 21, NULL, NULL, 22, 33, '2016-09-21', 'new', NULL, 1000, 'sales', 0, NULL, '2016/09/21/0035', NULL, NULL, NULL, 11, NULL, '2016-09-21 09:15:02', '2016-09-21 09:15:02'), (37, 21, NULL, NULL, NULL, NULL, '2016-09-22', 'new', NULL, 10000, 'quotations', 0, NULL, '2016/09/22/0037', NULL, NULL, NULL, 11, NULL, '2016-09-22 06:38:50', '2016-09-22 06:38:50'), (38, 22, 31, 34, NULL, NULL, '2016-09-22', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/09/22/0013', NULL, NULL, NULL, 11, NULL, '2016-09-22 08:10:42', '2016-09-22 08:10:42'), (39, 22, NULL, NULL, NULL, NULL, '2016-09-23', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/09/23/0014', NULL, NULL, NULL, 11, NULL, '2016-09-23 03:42:15', '2016-09-23 03:42:15'), (40, 21, NULL, NULL, 22, 34, '2016-09-23', 'new', NULL, 3000, 'sales', 0, NULL, '2016/09/23/0040', NULL, NULL, NULL, 11, NULL, '2016-09-23 03:57:40', '2016-09-23 03:57:40'), (41, 22, 31, 22, NULL, NULL, '2016-09-23', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/09/23/0016', NULL, NULL, NULL, 11, NULL, '2016-09-23 03:58:20', '2016-09-23 03:58:20'), (42, 25, 31, 22, NULL, NULL, '2016-10-06', 'new', NULL, NULL, 'purchases', 0, NULL, '2016/10/06/0001', NULL, NULL, NULL, 12, NULL, '2016-10-06 06:35:21', '2016-10-06 06:35:21'), (43, 24, NULL, NULL, 22, 38, '2016-10-06', 'new', NULL, 0, 'sales', 0, NULL, '2016/10/06/0043', NULL, NULL, NULL, 12, NULL, '2016-10-06 06:48:17', '2016-10-06 06:48:17'), (44, 24, NULL, NULL, NULL, NULL, '2016-10-06', 'new', NULL, 0, 'quotations', 0, NULL, '2016/10/06/0044', NULL, NULL, NULL, 12, NULL, '2016-10-06 06:50:22', '2016-10-06 06:50:22'), (45, 26, NULL, NULL, 22, 22, '2016-10-26', 'delivered', NULL, 0, 'sales', 0, NULL, '2016/10/26/0045', NULL, NULL, NULL, 17, NULL, '2016-10-26 08:36:23', '2016-10-26 08:50:41'), (46, 28, NULL, NULL, NULL, NULL, '2016-10-26', 'new', NULL, 0, 'quotations', 0, NULL, '2016/10/26/0046', NULL, NULL, NULL, 16, NULL, '2016-10-26 08:38:35', '2016-10-26 08:38:35'), (47, 26, NULL, NULL, NULL, NULL, '2016-10-26', 'APPROVED', NULL, 0, 'quotations', 0, NULL, '2016/10/26/0047', NULL, NULL, NULL, 17, 'No comment.', '2016-10-26 08:40:49', '2016-10-26 08:41:32'); -- -------------------------------------------------------- -- -- Table structure for table `expenses` -- CREATE TABLE IF NOT EXISTS `expenses` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `date` date DEFAULT NULL, `asset_account_id` int(10) unsigned NOT NULL, `expense_account_id` int(11) NOT NULL, `expense_journal_id` int(11) DEFAULT NULL, `asset_journal_id` int(11) DEFAULT NULL, `organization_id` int(11) NOT NULL, `expensesetting_id` int(11) NOT NULL, `void` int(11) NOT NULL DEFAULT '0', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `expenses_account_id_foreign` (`asset_account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; -- -- Dumping data for table `expenses` -- INSERT INTO `expenses` (`id`, `name`, `amount`, `type`, `date`, `asset_account_id`, `expense_account_id`, `expense_journal_id`, `asset_journal_id`, `organization_id`, `expensesetting_id`, `void`, `created_at`, `updated_at`) VALUES (1, '', '5500.00', 'Bill', '2016-09-21', 22, 19, 44, 43, 11, 12, 1, '2016-09-21 11:47:38', '2016-09-21 11:59:17'), (2, '', '800', 'Bill', '2016-10-06', 38, 39, 52, 51, 12, 16, 0, '2016-10-06 06:28:43', '2016-10-06 06:28:44'); -- -------------------------------------------------------- -- -- Table structure for table `expensesettings` -- CREATE TABLE IF NOT EXISTS `expensesettings` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `expensesettings_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=20 ; -- -- Dumping data for table `expensesettings` -- INSERT INTO `expensesettings` (`id`, `name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'car fuel', 2, '2016-07-27 08:37:08', '2016-07-27 08:37:08'), (2, 'electricity bill', 2, '2016-07-27 08:37:45', '2016-07-27 08:37:45'), (3, 'Rent', 2, '2016-07-27 08:38:22', '2016-07-27 08:38:22'), (4, 'car fuel', 2, '2016-07-27 08:38:38', '2016-07-27 08:38:38'), (6, 'Sales', NULL, '2016-08-08 06:30:00', '2016-08-08 06:30:00'), (7, '<NAME>', 1, '2016-08-09 09:01:23', '2016-08-09 09:01:23'), (8, 'Rent', 1, '2016-08-09 09:01:36', '2016-08-09 09:01:36'), (9, '<NAME>', 8, '2016-08-09 09:56:28', '2016-08-09 09:56:28'), (10, 'Rent', 8, '2016-08-09 09:56:49', '2016-08-09 09:56:49'), (11, 'Electricity', 8, '2016-08-11 06:21:02', '2016-08-11 06:21:02'), (12, 'Water Bill', 11, '2016-09-20 05:55:50', '2016-09-20 05:55:50'), (13, 'Electricity Bill', 11, '2016-09-20 05:56:20', '2016-09-20 05:56:20'), (14, 'Fuel', 11, '2016-09-20 05:56:36', '2016-09-20 05:56:36'), (15, 'rent', 12, '2016-10-06 06:22:39', '2016-10-06 06:22:39'), (16, 'Electricity', 12, '2016-10-06 06:22:57', '2016-10-06 06:22:57'), (17, 'Fuel', 17, '2016-10-26 08:52:35', '2016-10-26 08:52:35'), (18, 'Airtime', 17, '2016-10-26 08:52:52', '2016-10-26 08:52:52'), (19, 'Breakfast', 17, '2016-10-26 08:53:21', '2016-10-26 08:53:21'); -- -------------------------------------------------------- -- -- Table structure for table `groups` -- CREATE TABLE IF NOT EXISTS `groups` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` text COLLATE utf8_unicode_ci, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=6 ; -- -- Dumping data for table `groups` -- INSERT INTO `groups` (`id`, `name`, `description`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'lixnet group', ' ', 1, '2016-07-27 09:05:40', '2016-07-27 09:05:40'), (2, 'lixnet chamaa grp', ' chamaa', 8, '2016-08-11 09:19:00', '2016-08-11 09:19:00'), (3, 'Chama', ' Chama', 11, '2016-09-20 08:55:16', '2016-09-20 08:55:16'), (4, 'IT', ' ', 12, '2016-10-06 07:14:09', '2016-10-06 07:14:09'), (5, 'Members', ' ', 17, '2016-10-25 05:52:05', '2016-10-25 05:52:05'); -- -------------------------------------------------------- -- -- Table structure for table `holidays` -- CREATE TABLE IF NOT EXISTS `holidays` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `date` date DEFAULT NULL, `organization_id` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `holidays_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `hospital_insurance` -- CREATE TABLE IF NOT EXISTS `hospital_insurance` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `income_from` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `income_to` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `hi_amount` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `hospital_insurance_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=19 ; -- -- Dumping data for table `hospital_insurance` -- INSERT INTO `hospital_insurance` (`id`, `income_from`, `income_to`, `hi_amount`, `organization_id`, `created_at`, `updated_at`) VALUES (1, '0.00', '0.00', '0.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (2, '1.00', '5999.00', '150.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (3, '6000.00', '7999.00', '300.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (4, '8000.00', '11999.00', '400.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (5, '12000.00', '14999.00', '500.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (6, '15000.00', '19999.00', '600.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (7, '20000.00', '24999.00', '750.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (8, '25000.00', '29999.00', '850.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (9, '30000.00', '34999.00', '900.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (10, '35000.00', '39999.00', '950.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (11, '40000.00', '44999.00', '1000.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (12, '45000.00', '49999.00', '1100.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (13, '50000.00', '59999.00', '1200.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (14, '60000.00', '69999.00', '1300.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (15, '70000.00', '79999.00', '1400.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (16, '80000.00', '89999.00', '1500.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (17, '90000.00', '99999.00', '1600.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (18, '100000.00', '99000000.00', '1700.00', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'); -- -------------------------------------------------------- -- -- Table structure for table `items` -- CREATE TABLE IF NOT EXISTS `items` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `date` date DEFAULT NULL, `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `purchase_price` double NOT NULL DEFAULT '0', `selling_price` double NOT NULL DEFAULT '0', `sku` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `tag_id` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `reorder_level` int(11) DEFAULT NULL, `type` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=20 ; -- -- Dumping data for table `items` -- INSERT INTO `items` (`id`, `name`, `date`, `description`, `purchase_price`, `selling_price`, `sku`, `tag_id`, `reorder_level`, `type`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'laptop', '2016-07-27', '', 30000, 35000, '', '', 4, '', 0, '2016-07-27 07:26:40', '2016-07-27 07:26:40'), (2, 'Flash disk', '2016-07-27', '', 300, 700, '', '', 5, '', 0, '2016-07-27 07:28:42', '2016-07-27 07:28:42'), (3, 'Hp Laptop', '2016-07-29', 'Core i3, 8gb RAM, 1TB HDD', 40000, 50000, 'LP001', '', 0, 'product', 0, '2016-07-29 04:34:22', '2016-07-29 04:34:22'), (4, 'Laptop', '2016-08-09', 'Lenovo', 20000, 35000, '', '', 2, 'product', 1, '2016-08-09 08:50:55', '2016-08-09 08:50:55'), (5, 'Printing Papers', '2016-08-09', '', 0, 1200, '', '', 0, 'service', 1, '2016-08-09 08:56:04', '2016-08-09 08:56:04'), (6, 'laptop', '2016-08-09', 'lenovo', 20000, 35000, '', '', 2, 'product', 8, '2016-08-09 09:55:16', '2016-08-09 09:55:16'), (7, 'Printing Papers', '2016-08-09', '', 0, 1200, '', '', 0, 'service', 8, '2016-08-09 09:55:51', '2016-08-09 09:55:51'), (8, 'RAM', '2016-08-11', '8 gb', 7500, 9000, '', '', 0, 'product', 8, '2016-08-11 06:17:40', '2016-08-11 06:17:40'), (9, 'xarafinancials', '2016-08-11', '', 0, 250000, '', '', 0, 'service', 8, '2016-08-11 06:20:38', '2016-08-11 06:20:38'), (10, 'Printers', '2016-08-15', '', 4500, 7000, '', '', 2, 'product', 8, '2016-08-15 06:21:19', '2016-08-15 06:21:19'), (11, 'Erp', '2016-08-15', '', 0, 100000, '', '', 0, 'service', 8, '2016-08-15 06:21:37', '2016-08-15 06:21:37'), (12, 'Lenovo laptops', '2016-09-20', '4GB Ram,\r\n2Hz Processor,\r\n500GB HDD', 40000, 70000, '10', 'ASDB25425#', 5, 'product', 11, '2016-09-20 05:38:52', '2016-09-20 05:38:52'), (13, 'Gas Cylinder', '2016-09-20', 'Total 13Kg cylinder', 500, 850, '100', 'TYG45676#', 20, 'product', 11, '2016-09-20 06:18:16', '2016-09-20 06:18:16'), (14, 'ERP Software', '2016-09-20', '', 0, 100000, '', '', 0, 'service', 11, '2016-09-20 06:19:19', '2016-09-20 06:19:19'), (15, 'Chicken meat', '2016-10-06', '', 200, 450, '', '', 10, 'product', 12, '2016-10-06 06:17:03', '2016-10-06 06:17:03'), (16, 'Deliveries', '2016-10-06', '', 0, 0, '', '', 0, 'service', 12, '2016-10-06 06:17:36', '2016-10-06 06:17:36'), (17, 'Laptops', '2016-10-26', 'Lenovo', 30000, 40000, '', '', 5, 'product', 17, '2016-10-26 08:17:27', '2016-10-26 08:17:27'), (18, 'Printers', '2016-10-26', 'HP Deskjet', 18000, 22000, '', '', 3, 'product', 17, '2016-10-26 08:18:12', '2016-10-26 08:18:12'), (19, 'Laptop', '2016-10-26', 'Laptops', 30000, 37000, '', '', 5, 'product', 16, '2016-10-26 08:29:54', '2016-10-26 08:29:54'); -- -------------------------------------------------------- -- -- Table structure for table `job_group` -- CREATE TABLE IF NOT EXISTS `job_group` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `job_group_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `job_group_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `job_group` -- INSERT INTO `job_group` (`id`, `job_group_name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Junior Staff', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (2, 'Management', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (3, 'Marketing', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'); -- -------------------------------------------------------- -- -- Table structure for table `journals` -- CREATE TABLE IF NOT EXISTS `journals` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` date NOT NULL, `trans_no` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `account_id` int(10) unsigned NOT NULL, `amount` float(10,0) NOT NULL, `initiated_by` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `void` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `journals_account_id_foreign` (`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=95 ; -- -- Dumping data for table `journals` -- INSERT INTO `journals` (`id`, `date`, `trans_no`, `account_id`, `amount`, `initiated_by`, `type`, `description`, `organization_id`, `created_at`, `updated_at`, `void`) VALUES (1, '2016-07-27', '1469624820', 3, 40000, 'system', 'credit', 'loan disbursement', 1, '2016-07-27 10:41:00', '2016-07-27 10:41:00', 0), (2, '2016-07-27', '1469624820', 4, 40000, 'system', 'debit', 'loan disbursement', 1, '2016-07-27 10:41:00', '2016-07-27 10:41:00', 0), (3, '2016-07-27', '1469624859', 5, 800, 'system', 'credit', 'interest repayment', 1, '2016-07-27 10:54:39', '2016-07-27 10:54:39', 0), (4, '2016-07-27', '1469624859', 3, 800, 'system', 'debit', 'interest repayment', 1, '2016-07-27 10:54:39', '2016-07-27 10:54:39', 0), (5, '2016-07-27', '1469624859', 4, 3333, 'system', 'credit', 'principal repayment', 1, '2016-07-27 10:54:39', '2016-07-27 10:54:39', 0), (6, '2016-07-27', '1469624859', 3, 3333, 'system', 'debit', 'principal repayment', 1, '2016-07-27 10:54:39', '2016-07-27 10:54:39', 0), (7, '2016-07-27', '1469628469', 5, 727, 'system', 'credit', 'interest repayment', 1, '2016-07-27 11:08:49', '2016-07-27 11:08:49', 0), (8, '2016-07-27', '1469628469', 3, 727, 'system', 'debit', 'interest repayment', 1, '2016-07-27 11:08:49', '2016-07-27 11:08:49', 0), (9, '2016-07-27', '1469628469', 4, 3333, 'system', 'credit', 'principal repayment', 1, '2016-07-27 11:08:49', '2016-07-27 11:08:49', 0), (10, '2016-07-27', '1469628469', 3, 3333, 'system', 'debit', 'principal repayment', 1, '2016-07-27 11:08:49', '2016-07-27 11:08:49', 0), (11, '2016-09-20', '1474373361', 22, 5000, 'system', 'credit', 'loan disbursement', 11, '2016-09-20 09:52:21', '2016-09-20 09:52:21', 0), (12, '2016-09-20', '1474373361', 24, 5000, 'system', 'debit', 'loan disbursement', 11, '2016-09-20 09:52:21', '2016-09-20 09:52:21', 0), (13, '2016-09-20', '1474380549', 23, 300, 'system', 'credit', 'interest repayment', 11, '2016-09-20 11:00:09', '2016-09-20 11:00:09', 0), (14, '2016-09-20', '1474380549', 22, 300, 'system', 'debit', 'interest repayment', 11, '2016-09-20 11:00:10', '2016-09-20 11:00:10', 0), (15, '2016-09-20', '1474380550', 24, 833, 'system', 'credit', 'principal repayment', 11, '2016-09-20 11:00:10', '2016-09-20 11:00:10', 0), (16, '2016-09-20', '1474380550', 22, 833, 'system', 'debit', 'principal repayment', 11, '2016-09-20 11:00:10', '2016-09-20 11:00:10', 0), (17, '2016-09-20', '1474380579', 24, 4167, 'system', 'credit', 'principal repayment', 11, '2016-09-20 11:00:39', '2016-09-20 11:00:39', 0), (18, '2016-09-20', '1474380579', 22, 4167, 'system', 'debit', 'principal repayment', 11, '2016-09-20 11:00:39', '2016-09-20 11:00:39', 0), (19, '2016-09-20', '1474380579', 23, 1200, 'system', 'credit', 'interest repayment', 11, '2016-09-20 11:00:39', '2016-09-20 11:00:39', 0), (20, '2016-09-20', '1474380579', 22, 1200, 'system', 'debit', 'interest repayment', 11, '2016-09-20 11:00:40', '2016-09-20 11:00:40', 0), (21, '2016-09-20', '1474380545', 22, 3000, 'system', 'credit', 'loan top up', 11, '2016-09-20 11:20:05', '2016-09-20 11:20:05', 0), (22, '2016-09-20', '1474380545', 24, 3000, 'system', 'debit', 'loan top up', 11, '2016-09-20 11:20:05', '2016-09-20 11:20:05', 0), (23, '2016-09-20', '1474380576', 24, 3000, 'system', 'credit', 'principal repayment', 11, '2016-09-20 11:20:36', '2016-09-20 11:20:36', 0), (24, '2016-09-20', '1474380576', 22, 3000, 'system', 'debit', 'principal repayment', 11, '2016-09-20 11:20:36', '2016-09-20 11:20:36', 0), (25, '2016-09-20', '1474380577', 23, -420, 'system', 'credit', 'interest repayment', 11, '2016-09-20 11:20:37', '2016-09-20 11:20:37', 0), (26, '2016-09-20', '1474380577', 22, -420, 'system', 'debit', 'interest repayment', 11, '2016-09-20 11:20:37', '2016-09-20 11:20:37', 0), (27, '2016-09-20', '1474380586', 29, 5000, 'system', 'credit', 'bla', 11, '2016-09-20 11:28:46', '2016-09-20 11:28:46', 0), (28, '2016-09-20', '1474380586', 22, 5000, 'system', 'debit', 'bla', 11, '2016-09-20 11:28:46', '2016-09-20 11:28:46', 0), (29, '2016-09-20', '1474380540', 22, 1000, 'system', 'credit', 'bla', 11, '2016-09-20 11:30:00', '2016-09-20 11:30:00', 0), (30, '2016-09-20', '1474380540', 29, 1000, 'system', 'debit', 'bla', 11, '2016-09-20 11:30:00', '2016-09-20 11:30:00', 0), (31, '2016-09-01', '1474384192', 29, 2000, 'system', 'credit', '', 11, '2016-09-20 12:08:52', '2016-09-20 12:08:52', 0), (32, '2016-09-01', '1474384192', 22, 2000, 'system', 'debit', '', 11, '2016-09-20 12:08:52', '2016-09-20 12:08:52', 0), (33, '2016-09-21', '1474456148', 22, 3500, 'system', 'credit', 'Purchase of Goods', 11, '2016-09-21 08:26:08', '2016-09-21 08:26:08', 0), (34, '2016-09-21', '1474456148', 31, 3500, 'system', 'debit', 'Purchase of Goods', 11, '2016-09-21 08:26:08', '2016-09-21 08:26:08', 0), (35, '2016-09-21', '1474459743', 33, 427432, 'system', 'credit', 'Sale of Goods', 11, '2016-09-21 09:15:03', '2016-09-21 09:15:03', 0), (36, '2016-09-21', '1474459743', 22, 427432, 'system', 'debit', 'Sale of Goods', 11, '2016-09-21 09:15:03', '2016-09-21 09:15:03', 0), (37, '2016-09-21', '1474463389', 22, 100000, 'system', 'credit', 'Sale of Goods', 11, '2016-09-21 10:51:49', '2016-09-21 11:07:41', 1), (38, '2016-09-21', '1474463389', 34, 100000, 'system', 'debit', 'Sale of Goods', 11, '2016-09-21 10:51:49', '2016-09-21 11:07:41', 1), (39, '2016-09-21', '1474466981', 34, 100000, 'system', 'credit', 'Sale of Goods', 11, '2016-09-21 11:07:41', '2016-09-21 11:13:22', 1), (40, '2016-09-21', '1474466981', 22, 100000, 'system', 'debit', 'Sale of Goods', 11, '2016-09-21 11:07:41', '2016-09-21 11:13:22', 1), (41, '2016-09-21', '1474466978', 22, 5000, 'system', 'credit', 'Company Expenses', 11, '2016-09-21 11:47:38', '2016-09-21 11:55:38', 1), (42, '2016-09-21', '1474466978', 19, 5000, 'system', 'debit', 'Company Expenses', 11, '2016-09-21 11:47:39', '2016-09-21 11:56:58', 1), (43, '2016-09-21', '1474466998', 22, 5500, 'system', 'credit', 'Company Expenses', 11, '2016-09-21 11:56:58', '2016-09-21 11:59:17', 1), (44, '2016-09-21', '1474466998', 19, 5500, 'system', 'debit', 'Company Expenses', 11, '2016-09-21 11:56:58', '2016-09-21 11:59:17', 1), (45, '2016-09-22', '1474542585', 34, 200000, 'system', 'credit', 'Purchase of Goods', 11, '2016-09-22 08:10:45', '2016-09-22 08:10:45', 0), (46, '2016-09-22', '1474542585', 31, 200000, 'system', 'debit', 'Purchase of Goods', 11, '2016-09-22 08:10:45', '2016-09-22 08:10:45', 0), (47, '2016-09-23', '1474610980', 34, 402520, 'system', 'credit', 'Sale of Goods', 11, '2016-09-23 03:57:40', '2016-09-23 03:57:40', 0), (48, '2016-09-23', '1474610980', 22, 402520, 'system', 'debit', 'Sale of Goods', 11, '2016-09-23 03:57:40', '2016-09-23 03:57:40', 0), (49, '2016-09-23', '1474610960', 22, 2500, 'system', 'credit', 'Purchase of Goods', 11, '2016-09-23 03:58:20', '2016-09-23 03:58:20', 0), (50, '2016-09-23', '1474610960', 31, 2500, 'system', 'debit', 'Purchase of Goods', 11, '2016-09-23 03:58:20', '2016-09-23 03:58:20', 0), (51, '2016-10-06', '1475745044', 38, 800, 'system', 'credit', 'Company Expenses', 12, '2016-10-06 06:28:44', '2016-10-06 06:28:44', 0), (52, '2016-10-06', '1475745044', 39, 800, 'system', 'debit', 'Company Expenses', 12, '2016-10-06 06:28:44', '2016-10-06 06:28:44', 0), (53, '2016-10-06', '1475745022', 22, 4000, 'system', 'credit', 'Purchase of Goods', 12, '2016-10-06 06:35:22', '2016-10-06 06:35:22', 0), (54, '2016-10-06', '1475745022', 31, 4000, 'system', 'debit', 'Purchase of Goods', 12, '2016-10-06 06:35:22', '2016-10-06 06:35:22', 0), (55, '2016-10-06', '1475745018', 38, 2088, 'system', 'credit', 'Sale of Goods', 12, '2016-10-06 06:48:18', '2016-10-06 06:48:18', 0), (56, '2016-10-06', '1475745018', 22, 2088, 'system', 'debit', 'Sale of Goods', 12, '2016-10-06 06:48:18', '2016-10-06 06:48:18', 0), (57, '2016-10-06', '1475745036', 38, 2000, 'system', 'credit', 'Sale of Goods', 12, '2016-10-06 06:53:36', '2016-10-06 06:53:36', 0), (58, '2016-10-06', '1475745036', 38, 2000, 'system', 'debit', 'Sale of Goods', 12, '2016-10-06 06:53:36', '2016-10-06 06:53:36', 0), (59, '2016-10-06', '1475752212', 38, 40000, 'system', 'credit', 'loan disbursement', 12, '2016-10-06 08:21:12', '2016-10-06 08:21:12', 0), (60, '2016-10-06', '1475752212', 40, 40000, 'system', 'debit', 'loan disbursement', 12, '2016-10-06 08:21:13', '2016-10-06 08:21:13', 0), (61, '2016-10-05', '1475752257', 41, 800, 'system', 'credit', 'interest repayment', 12, '2016-10-06 08:32:57', '2016-10-06 08:32:57', 0), (62, '2016-10-05', '1475752257', 38, 800, 'system', 'debit', 'interest repayment', 12, '2016-10-06 08:32:57', '2016-10-06 08:32:57', 0), (63, '2016-10-05', '1475752257', 40, 9200, 'system', 'credit', 'principal repayment', 12, '2016-10-06 08:32:57', '2016-10-06 08:32:57', 0), (64, '2016-10-05', '1475752257', 38, 9200, 'system', 'debit', 'principal repayment', 12, '2016-10-06 08:32:58', '2016-10-06 08:32:58', 0), (65, '2016-10-06', '1475752229', 45, 50000, 'system', 'credit', '', 12, '2016-10-06 08:45:29', '2016-10-06 08:45:29', 0), (66, '2016-10-06', '1475752229', 38, 50000, 'system', 'debit', '', 12, '2016-10-06 08:45:29', '2016-10-06 08:45:29', 0), (67, '2016-10-17', '1476695446', 38, 2000, 'system', 'credit', 'loan disbursement', 12, '2016-10-17 06:25:46', '2016-10-17 06:25:46', 0), (68, '2016-10-17', '1476695446', 40, 2000, 'system', 'debit', 'loan disbursement', 12, '2016-10-17 06:25:46', '2016-10-17 06:25:46', 0), (69, '2016-10-26', '1477473040', 38, 40000, 'system', 'credit', 'loan disbursement', 12, '2016-10-26 06:20:40', '2016-10-26 06:20:40', 0), (70, '2016-10-26', '1477473040', 40, 40000, 'system', 'debit', 'loan disbursement', 12, '2016-10-26 06:20:40', '2016-10-26 06:20:40', 0), (71, '2016-08-26', '1477473054', 41, 800, 'system', 'credit', 'interest repayment', 12, '2016-10-26 06:24:54', '2016-10-26 06:24:54', 0), (72, '2016-08-26', '1477473054', 38, 800, 'system', 'debit', 'interest repayment', 12, '2016-10-26 06:24:54', '2016-10-26 06:24:54', 0), (73, '2016-08-26', '1477473054', 40, 3400, 'system', 'credit', 'principal repayment', 12, '2016-10-26 06:24:54', '2016-10-26 06:24:54', 0), (74, '2016-08-26', '1477473054', 38, 3400, 'system', 'debit', 'principal repayment', 12, '2016-10-26 06:24:54', '2016-10-26 06:24:54', 0), (75, '2016-10-26', '1477473008', 40, 36600, 'system', 'credit', 'principal repayment', 12, '2016-10-26 06:29:08', '2016-10-26 06:29:08', 0), (76, '2016-10-26', '1477473008', 38, 36600, 'system', 'debit', 'principal repayment', 12, '2016-10-26 06:29:08', '2016-10-26 06:29:08', 0), (77, '2016-10-26', '1477473008', 41, 7984, 'system', 'credit', 'interest repayment', 12, '2016-10-26 06:29:08', '2016-10-26 06:29:08', 0), (78, '2016-10-26', '1477473008', 38, 7984, 'system', 'debit', 'interest repayment', 12, '2016-10-26 06:29:08', '2016-10-26 06:29:08', 0), (79, '2016-10-26', '1477473048', 38, 4000, 'system', 'credit', 'loan top up', 12, '2016-10-26 06:29:48', '2016-10-26 06:29:48', 0), (80, '2016-10-26', '1477473048', 40, 4000, 'system', 'debit', 'loan top up', 12, '2016-10-26 06:29:48', '2016-10-26 06:29:48', 0), (81, '2016-10-26', '1477473012', 40, 4000, 'system', 'credit', 'principal repayment', 12, '2016-10-26 06:30:12', '2016-10-26 06:30:12', 0), (82, '2016-10-26', '1477473012', 38, 4000, 'system', 'debit', 'principal repayment', 12, '2016-10-26 06:30:13', '2016-10-26 06:30:13', 0), (83, '2016-10-26', '1477473013', 41, -7824, 'system', 'credit', 'interest repayment', 12, '2016-10-26 06:30:13', '2016-10-26 06:30:13', 0), (84, '2016-10-26', '1477473013', 38, -7824, 'system', 'debit', 'interest repayment', 12, '2016-10-26 06:30:13', '2016-10-26 06:30:13', 0), (85, '2016-10-26', '1477473012', 45, 5000, 'system', 'credit', '', 12, '2016-10-26 06:46:12', '2016-10-26 06:46:12', 0), (86, '2016-10-26', '1477473012', 38, 5000, 'system', 'debit', '', 12, '2016-10-26 06:46:12', '2016-10-26 06:46:12', 0), (87, '2016-10-26', '1477480225', 22, 164000, 'system', 'credit', 'Sale of Goods', 17, '2016-10-26 08:36:25', '2016-10-26 08:36:25', 0), (88, '2016-10-26', '1477480225', 22, 164000, 'system', 'debit', 'Sale of Goods', 17, '2016-10-26 08:36:26', '2016-10-26 08:36:26', 0), (89, '2016-10-26', '1477480217', 46, 100000, 'system', 'credit', 'Sale of Goods', 17, '2016-10-26 08:50:17', '2016-10-26 08:50:17', 0), (90, '2016-10-26', '1477480217', 46, 100000, 'system', 'debit', 'Sale of Goods', 17, '2016-10-26 08:50:18', '2016-10-26 08:50:18', 0), (91, '2016-10-28', '1477638614', 46, 45000, 'system', 'credit', 'loan disbursement', 17, '2016-10-28 04:42:14', '2016-10-28 04:42:14', 0), (92, '2016-10-28', '1477638614', 47, 45000, 'system', 'debit', 'loan disbursement', 17, '2016-10-28 04:42:14', '2016-10-28 04:42:14', 0), (93, '2016-10-12', '1477642217', 48, 2700, 'system', 'credit', 'interest repayment', 17, '2016-10-28 05:06:17', '2016-10-28 05:06:17', 0), (94, '2016-10-12', '1477642217', 46, 2700, 'system', 'debit', 'interest repayment', 17, '2016-10-28 05:06:17', '2016-10-28 05:06:17', 0); -- -------------------------------------------------------- -- -- Table structure for table `kins` -- CREATE TABLE IF NOT EXISTS `kins` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `rship` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `goodwill` float(10,0) DEFAULT NULL, `id_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `member_id` int(10) unsigned NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `kins_member_id_foreign` (`member_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ; -- -- Dumping data for table `kins` -- INSERT INTO `kins` (`id`, `name`, `rship`, `goodwill`, `id_number`, `member_id`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Cris', 'sponsor', 20, '28976545', 1, 1, '2016-07-27 10:04:14', '2016-07-27 10:04:14'), (2, 'manny', 'hubby', 100, '3088764', 3, 8, '2016-08-11 09:21:28', '2016-08-11 09:21:28'), (3, '<NAME>', 'Father', 50, '1342344412', 4, 11, '2016-09-20 09:11:37', '2016-09-21 04:58:21'), (4, '<NAME>', 'Mother', 50, '1255465', 4, 11, '2016-09-21 04:57:51', '2016-09-21 04:57:51'), (5, 'kim', 'friend', 100, '9009988', 6, 12, '2016-10-06 07:20:23', '2016-10-06 07:20:23'), (6, 'Stephen', 'Friend', 50, '21343212', 9, 12, '2016-10-26 06:19:03', '2016-10-26 06:19:03'); -- -------------------------------------------------------- -- -- Table structure for table `leaveapplications` -- CREATE TABLE IF NOT EXISTS `leaveapplications` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `application_date` date DEFAULT NULL, `applied_start_date` date DEFAULT NULL, `applied_end_date` date DEFAULT NULL, `leavetype_id` int(10) unsigned NOT NULL, `status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `date_approved` date DEFAULT NULL, `date_rejected` date DEFAULT NULL, `date_amended` date DEFAULT NULL, `date_cancelled` date DEFAULT NULL, `approved_start_date` date DEFAULT NULL, `approved_end_date` date DEFAULT NULL, `actual_start_date` date DEFAULT NULL, `actual_end_date` date DEFAULT NULL, `is_weekend` int(11) NOT NULL DEFAULT '0', `is_supervisor_approved` int(11) DEFAULT '1', `is_holiday` int(11) NOT NULL DEFAULT '0', `organization_id` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `leaveapplications_employee_id_foreign` (`employee_id`), KEY `leaveapplications_leavetype_id_foreign` (`leavetype_id`), KEY `leaveapplications_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ; -- -- Dumping data for table `leaveapplications` -- INSERT INTO `leaveapplications` (`id`, `employee_id`, `application_date`, `applied_start_date`, `applied_end_date`, `leavetype_id`, `status`, `date_approved`, `date_rejected`, `date_amended`, `date_cancelled`, `approved_start_date`, `approved_end_date`, `actual_start_date`, `actual_end_date`, `is_weekend`, `is_supervisor_approved`, `is_holiday`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 6, '2016-08-10', '2016-08-01', '2016-08-31', 1, 'approved', '2016-08-10', NULL, NULL, NULL, '2016-08-01', '2016-08-31', NULL, NULL, 0, 1, 0, 8, '2016-08-10 10:15:57', '2016-08-10 10:16:19'), (2, 7, '2016-08-11', '2016-09-01', '2016-10-01', 1, 'approved', '2016-08-11', NULL, NULL, NULL, '2016-09-01', '2016-10-01', NULL, NULL, 0, 1, 0, 8, '2016-08-11 07:04:36', '2016-08-11 07:05:39'), (3, 8, '2016-09-19', '2016-09-01', '2016-09-14', 2, 'approved', '2016-09-19', NULL, '2016-09-19', NULL, '2016-09-01', '2016-09-14', NULL, NULL, 0, 1, 0, 11, '2016-09-19 05:47:06', '2016-09-19 05:51:19'), (4, 8, '2016-09-19', '2016-09-19', '2016-09-20', 2, 'applied', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 1, 0, 11, '2016-09-19 11:41:42', '2016-09-19 11:41:42'), (5, 4, '2016-11-01', '2016-11-01', '2016-11-01', 4, 'cancelled', NULL, NULL, NULL, '2016-11-01', NULL, NULL, NULL, NULL, 0, 1, 0, 1, '2016-11-01 08:34:55', '2016-11-01 08:45:09'), (6, 4, '2016-11-01', '2016-11-01', '2016-11-14', 4, 'applied', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 1, 0, 1, '2016-11-01 08:37:37', '2016-11-01 08:37:37'); -- -------------------------------------------------------- -- -- Table structure for table `leavetypes` -- CREATE TABLE IF NOT EXISTS `leavetypes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `days` int(11) DEFAULT '0', `organization_id` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `leavetypes_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `leavetypes` -- INSERT INTO `leavetypes` (`id`, `name`, `days`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Annual Leave', 30, 8, '2016-08-10 13:15:30', '2016-08-10 13:15:30'), (2, 'Annual', 21, 11, '2016-09-19 08:40:46', '2016-09-19 08:40:46'), (3, 'Annual', 30, 12, '2016-10-07 12:33:30', '2016-10-07 12:33:30'), (4, 'Annual Leave', 21, 1, '2016-11-01 11:14:53', '2016-11-01 11:14:53'); -- -------------------------------------------------------- -- -- Table structure for table `loanaccounts` -- CREATE TABLE IF NOT EXISTS `loanaccounts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `member_id` int(10) unsigned NOT NULL, `loanproduct_id` int(10) unsigned NOT NULL, `is_new_application` tinyint(1) NOT NULL DEFAULT '1', `application_date` date NOT NULL, `amount_applied` float(10,0) NOT NULL, `interest_rate` float(10,0) NOT NULL, `period` int(11) NOT NULL, `is_approved` tinyint(1) NOT NULL DEFAULT '0', `date_approved` date DEFAULT NULL, `amount_approved` float(10,0) DEFAULT NULL, `is_rejected` tinyint(1) NOT NULL DEFAULT '0', `rejection_reason` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `is_amended` tinyint(1) NOT NULL DEFAULT '0', `date_amended` date DEFAULT NULL, `is_disbursed` tinyint(1) NOT NULL DEFAULT '0', `amount_disbursed` float(10,0) DEFAULT NULL, `date_disbursed` date DEFAULT NULL, `repayment_start_date` date DEFAULT NULL, `is_matured` tinyint(1) NOT NULL DEFAULT '0', `is_written_off` tinyint(1) NOT NULL DEFAULT '0', `is_defaulted` tinyint(1) NOT NULL DEFAULT '0', `is_overpaid` tinyint(1) NOT NULL DEFAULT '0', `account_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `repayment_duration` int(11) DEFAULT NULL, `is_top_up` tinyint(1) DEFAULT '0', `top_up_amount` float(15,3) DEFAULT '0.000', `loan_purpose` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `loanaccounts_member_id_foreign` (`member_id`), KEY `loanaccounts_loanproduct_id_foreign` (`loanproduct_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=10 ; -- -- Dumping data for table `loanaccounts` -- INSERT INTO `loanaccounts` (`id`, `member_id`, `loanproduct_id`, `is_new_application`, `application_date`, `amount_applied`, `interest_rate`, `period`, `is_approved`, `date_approved`, `amount_approved`, `is_rejected`, `rejection_reason`, `is_amended`, `date_amended`, `is_disbursed`, `amount_disbursed`, `date_disbursed`, `repayment_start_date`, `is_matured`, `is_written_off`, `is_defaulted`, `is_overpaid`, `account_number`, `repayment_duration`, `is_top_up`, `top_up_amount`, `loan_purpose`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 1, 1, 0, '2016-07-27', 40000, 2, 12, 1, '2016-07-27', 40000, 0, NULL, 0, NULL, 1, 40000, '2016-07-27', '2016-07-27', 0, 0, 0, 0, 'EL-L001-2', 12, 0, 0.000, NULL, 1, '2016-07-27 10:05:07', '2016-07-27 10:41:00'), (2, 4, 3, 0, '2016-09-20', 5000, 6, 10, 1, '2016-09-20', 5000, 0, NULL, 0, NULL, 1, 5000, '2016-09-20', '2016-09-20', 0, 0, 0, 0, 'EL-BM.1-2', 6, 1, 3000.000, NULL, 11, '2016-09-20 09:40:36', '2016-09-20 11:20:05'), (3, 5, 3, 0, '2016-09-01', 2500, 6, 10, 0, NULL, NULL, 1, 'Not qualified', 0, NULL, 0, NULL, NULL, NULL, 0, 0, 0, 0, NULL, 3, 0, 0.000, NULL, 11, '2016-09-20 10:58:07', '2016-09-20 10:58:24'), (4, 4, 3, 1, '2016-09-21', 2000, 6, 10, 0, NULL, NULL, 0, NULL, 0, NULL, 0, NULL, NULL, NULL, 0, 0, 0, 0, NULL, 5, 0, 0.000, NULL, 11, '2016-09-21 05:22:24', '2016-09-21 05:22:24'), (5, 6, 4, 0, '2016-10-06', 40000, 2, 12, 1, '2016-10-06', 40000, 0, NULL, 0, NULL, 1, 40000, '2016-10-06', '2016-10-06', 0, 0, 0, 0, 'EM-KM.1-2', 12, 0, 0.000, NULL, 12, '2016-10-06 08:09:13', '2016-10-06 08:21:12'), (6, 6, 5, 0, '2016-10-14', 3000, 2, 12, 0, NULL, NULL, 1, 'Already has another loan', 0, NULL, 0, NULL, NULL, NULL, 0, 0, 0, 0, NULL, 12, 0, 0.000, NULL, 12, '2016-10-14 07:31:54', '2016-10-26 06:21:19'), (7, 6, 6, 0, '2016-10-17', 2000, 2, 12, 1, '2016-10-17', 2000, 0, NULL, 0, NULL, 1, 2000, '2016-10-17', '2016-10-17', 0, 0, 0, 0, 'ML-KM.1-4', 5, 0, 0.000, NULL, 12, '2016-10-17 06:23:33', '2016-10-17 06:25:45'), (8, 9, 4, 0, '2016-10-26', 40000, 2, 12, 1, '2016-10-26', 40000, 0, NULL, 0, NULL, 1, 40000, '2016-10-26', '2016-10-26', 0, 0, 0, 0, 'EM-KM.2-2', 12, 1, 4000.000, NULL, 12, '2016-10-26 06:19:49', '2016-10-26 06:29:47'), (9, 10, 7, 0, '2016-10-28', 45000, 6, 15, 1, '2016-10-28', 45000, 0, NULL, 0, NULL, 1, 45000, '2016-10-28', '2016-10-28', 0, 0, 0, 0, 'IL-LTLM.2-2', 15, 0, 0.000, NULL, 17, '2016-10-28 04:37:53', '2016-10-28 04:42:13'); -- -------------------------------------------------------- -- -- Table structure for table `loanguarantors` -- CREATE TABLE IF NOT EXISTS `loanguarantors` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `member_id` int(10) unsigned NOT NULL, `loanaccount_id` int(10) unsigned NOT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `is_approved` varchar(50) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'pending', `date` date DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `loanguarantors_member_id_foreign` (`member_id`), KEY `loanguarantors_loanaccount_id_foreign` (`loanaccount_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ; -- -- Dumping data for table `loanguarantors` -- INSERT INTO `loanguarantors` (`id`, `member_id`, `loanaccount_id`, `organization_id`, `is_approved`, `date`, `created_at`, `updated_at`) VALUES (1, 1, 1, 1, 'pending', NULL, '2016-07-27 10:50:13', '2016-07-27 10:50:13'), (2, 5, 2, 11, 'approved', '2016-09-21', '2016-09-20 11:13:08', '2016-09-21 07:05:48'), (3, 6, 8, 12, 'pending', NULL, '2016-10-26 06:22:13', '2016-10-26 06:22:13'); -- -------------------------------------------------------- -- -- Table structure for table `loanpostings` -- CREATE TABLE IF NOT EXISTS `loanpostings` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `loanproduct_id` int(10) unsigned NOT NULL, `transaction` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `debit_account` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `credit_account` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `loanpostings_loanproduct_id_foreign` (`loanproduct_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=57 ; -- -- Dumping data for table `loanpostings` -- INSERT INTO `loanpostings` (`id`, `loanproduct_id`, `transaction`, `debit_account`, `credit_account`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 1, 'disbursal', '4', '3', 1, '2016-07-27 09:37:02', '2016-07-27 09:37:02'), (2, 1, 'principal_repayment', '3', '4', 1, '2016-07-27 09:37:02', '2016-07-27 09:37:02'), (3, 1, 'interest_repayment', '3', '5', 1, '2016-07-27 09:37:02', '2016-07-27 09:37:02'), (4, 1, 'loan_write_off', '8', '4', 1, '2016-07-27 09:37:02', '2016-07-27 09:37:02'), (5, 1, 'fee_payment', '3', '6', 1, '2016-07-27 09:37:02', '2016-07-27 09:37:02'), (6, 1, 'penalty_payment', '3', '7', 1, '2016-07-27 09:37:02', '2016-07-27 09:37:02'), (7, 1, 'loan_overpayment', '3', '9', 1, '2016-07-27 09:37:02', '2016-07-27 09:37:02'), (8, 1, 'overpayment_refund', '9', '3', 1, '2016-07-27 09:37:03', '2016-07-27 09:37:03'), (9, 2, 'disbursal', '4', '3', 1, '2016-07-27 09:47:23', '2016-07-27 09:47:23'), (10, 2, 'principal_repayment', '3', '4', 1, '2016-07-27 09:47:23', '2016-07-27 09:47:23'), (11, 2, 'interest_repayment', '3', '5', 1, '2016-07-27 09:47:23', '2016-07-27 09:47:23'), (12, 2, 'loan_write_off', '8', '4', 1, '2016-07-27 09:47:23', '2016-07-27 09:47:23'), (13, 2, 'fee_payment', '3', '6', 1, '2016-07-27 09:47:23', '2016-07-27 09:47:23'), (14, 2, 'penalty_payment', '3', '7', 1, '2016-07-27 09:47:23', '2016-07-27 09:47:23'), (15, 2, 'loan_overpayment', '3', '9', 1, '2016-07-27 09:47:23', '2016-07-27 09:47:23'), (16, 2, 'overpayment_refund', '9', '3', 1, '2016-07-27 09:47:23', '2016-07-27 09:47:23'), (17, 3, 'disbursal', '24', '22', 11, '2016-09-20 09:31:46', '2016-09-20 09:31:46'), (18, 3, 'principal_repayment', '22', '24', 11, '2016-09-20 09:31:47', '2016-09-20 09:31:47'), (19, 3, 'interest_repayment', '22', '23', 11, '2016-09-20 09:31:47', '2016-09-20 09:31:47'), (20, 3, 'loan_write_off', '27', '24', 11, '2016-09-20 09:31:47', '2016-09-20 09:31:47'), (21, 3, 'fee_payment', '22', '25', 11, '2016-09-20 09:31:47', '2016-09-20 09:31:47'), (22, 3, 'penalty_payment', '22', '26', 11, '2016-09-20 09:31:47', '2016-09-20 09:31:47'), (23, 3, 'loan_overpayment', '22', '28', 11, '2016-09-20 09:31:47', '2016-09-20 09:31:47'), (24, 3, 'overpayment_refund', '28', '22', 11, '2016-09-20 09:31:47', '2016-09-20 09:31:47'), (25, 4, 'disbursal', '40', '38', 12, '2016-10-06 08:03:24', '2016-10-06 08:03:24'), (26, 4, 'principal_repayment', '38', '40', 12, '2016-10-06 08:03:24', '2016-10-06 08:03:24'), (27, 4, 'interest_repayment', '38', '41', 12, '2016-10-06 08:03:24', '2016-10-06 08:03:24'), (28, 4, 'loan_write_off', '44', '40', 12, '2016-10-06 08:03:24', '2016-10-06 08:03:24'), (29, 4, 'fee_payment', '38', '42', 12, '2016-10-06 08:03:24', '2016-10-06 08:03:24'), (30, 4, 'penalty_payment', '38', '43', 12, '2016-10-06 08:03:25', '2016-10-06 08:03:25'), (31, 4, 'loan_overpayment', '38', '45', 12, '2016-10-06 08:03:25', '2016-10-06 08:03:25'), (32, 4, 'overpayment_refund', '45', '38', 12, '2016-10-06 08:03:25', '2016-10-06 08:03:25'), (33, 5, 'disbursal', '40', '38', 12, '2016-10-14 07:30:18', '2016-10-14 07:30:18'), (34, 5, 'principal_repayment', '38', '40', 12, '2016-10-14 07:30:18', '2016-10-14 07:30:18'), (35, 5, 'interest_repayment', '38', '41', 12, '2016-10-14 07:30:18', '2016-10-14 07:30:18'), (36, 5, 'loan_write_off', '44', '40', 12, '2016-10-14 07:30:18', '2016-10-14 07:30:18'), (37, 5, 'fee_payment', '38', '42', 12, '2016-10-14 07:30:18', '2016-10-14 07:30:18'), (38, 5, 'penalty_payment', '38', '43', 12, '2016-10-14 07:30:18', '2016-10-14 07:30:18'), (39, 5, 'loan_overpayment', '38', '45', 12, '2016-10-14 07:30:18', '2016-10-14 07:30:18'), (40, 5, 'overpayment_refund', '45', '38', 12, '2016-10-14 07:30:19', '2016-10-14 07:30:19'), (41, 6, 'disbursal', '40', '38', 12, '2016-10-17 06:21:21', '2016-10-17 06:21:21'), (42, 6, 'principal_repayment', '38', '40', 12, '2016-10-17 06:21:22', '2016-10-17 06:21:22'), (43, 6, 'interest_repayment', '38', '41', 12, '2016-10-17 06:21:22', '2016-10-17 06:21:22'), (44, 6, 'loan_write_off', '44', '40', 12, '2016-10-17 06:21:22', '2016-10-17 06:21:22'), (45, 6, 'fee_payment', '38', '42', 12, '2016-10-17 06:21:22', '2016-10-17 06:21:22'), (46, 6, 'penalty_payment', '38', '43', 12, '2016-10-17 06:21:22', '2016-10-17 06:21:22'), (47, 6, 'loan_overpayment', '38', '45', 12, '2016-10-17 06:21:22', '2016-10-17 06:21:22'), (48, 6, 'overpayment_refund', '45', '38', 12, '2016-10-17 06:21:22', '2016-10-17 06:21:22'), (49, 7, 'disbursal', '47', '46', 17, '2016-10-28 04:35:21', '2016-10-28 04:35:21'), (50, 7, 'principal_repayment', '46', '47', 17, '2016-10-28 04:35:21', '2016-10-28 04:35:21'), (51, 7, 'interest_repayment', '46', '48', 17, '2016-10-28 04:35:21', '2016-10-28 04:35:21'), (52, 7, 'loan_write_off', '52', '47', 17, '2016-10-28 04:35:21', '2016-10-28 04:35:21'), (53, 7, 'fee_payment', '46', '50', 17, '2016-10-28 04:35:21', '2016-10-28 04:35:21'), (54, 7, 'penalty_payment', '46', '49', 17, '2016-10-28 04:35:21', '2016-10-28 04:35:21'), (55, 7, 'loan_overpayment', '46', '53', 17, '2016-10-28 04:35:21', '2016-10-28 04:35:21'), (56, 7, 'overpayment_refund', '53', '46', 17, '2016-10-28 04:35:21', '2016-10-28 04:35:21'); -- -------------------------------------------------------- -- -- Table structure for table `loanproducts` -- CREATE TABLE IF NOT EXISTS `loanproducts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `short_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `formula` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `interest_rate` float(10,0) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `amortization` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'EI', `period` int(11) DEFAULT NULL, `currency` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8 ; -- -- Dumping data for table `loanproducts` -- INSERT INTO `loanproducts` (`id`, `name`, `short_name`, `formula`, `interest_rate`, `created_at`, `updated_at`, `amortization`, `period`, `currency`, `organization_id`) VALUES (1, 'Emergency Loan', 'EL', 'SL', 2, '2016-07-27 09:37:02', '2016-07-27 09:37:02', 'EI', 12, 'KES', 0), (2, 'mkopa laon', 'ML', 'SL', 2, '2016-07-27 09:47:23', '2016-07-27 09:47:23', 'EI', 12, 'KES', 0), (3, 'Emergency Loan', 'EL', 'SL', 6, '2016-09-20 09:31:46', '2016-09-20 09:31:46', 'EI', 10, 'KES', 11), (4, 'Emergency Loan', 'EM', 'SL', 2, '2016-10-06 08:03:24', '2016-10-06 08:03:24', 'EI', 12, 'KES', 12), (5, 'Bidhaa Loan', 'BL', 'SL', 2, '2016-10-14 07:30:18', '2016-10-14 07:30:18', 'EI', 12, 'KES', 12), (6, 'Mkopa Loan', 'ML', 'SL', 2, '2016-10-17 06:21:21', '2016-10-17 06:21:21', 'EI', 12, 'KES', 12), (7, 'Imarisha Loan', 'IL', 'RB', 6, '2016-10-28 04:35:21', '2016-10-28 04:35:21', 'EI', 15, 'KES', 17); -- -------------------------------------------------------- -- -- Table structure for table `loanrepayments` -- CREATE TABLE IF NOT EXISTS `loanrepayments` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `loanaccount_id` int(10) unsigned NOT NULL, `date` date NOT NULL, `principal_paid` float(12,2) NOT NULL DEFAULT '0.00', `interest_paid` float(12,2) NOT NULL DEFAULT '0.00', `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `loanrepayments_loanaccount_id_foreign` (`loanaccount_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=20 ; -- -- Dumping data for table `loanrepayments` -- INSERT INTO `loanrepayments` (`id`, `loanaccount_id`, `date`, `principal_paid`, `interest_paid`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 1, '2016-07-27', 0.00, 800.00, 1, '2016-07-27 10:54:39', '2016-07-27 10:54:39'), (2, 1, '2016-07-27', 3333.33, 0.00, 1, '2016-07-27 10:54:39', '2016-07-27 10:54:39'), (3, 1, '2016-07-27', 0.00, 727.27, 1, '2016-07-27 11:08:49', '2016-07-27 11:08:49'), (4, 1, '2016-07-27', 3333.34, 0.00, 1, '2016-07-27 11:08:49', '2016-07-27 11:08:49'), (5, 2, '2016-09-20', 0.00, 300.00, 11, '2016-09-20 11:00:09', '2016-09-20 11:00:09'), (6, 2, '2016-09-20', 833.33, 0.00, 11, '2016-09-20 11:00:10', '2016-09-20 11:00:10'), (7, 2, '2016-09-20', 4166.67, 0.00, 11, '2016-09-20 11:00:39', '2016-09-20 11:00:39'), (8, 2, '2016-09-20', 0.00, 1200.00, 11, '2016-09-20 11:00:39', '2016-09-20 11:00:39'), (9, 2, '2016-09-20', 3000.00, 0.00, 11, '2016-09-20 11:20:36', '2016-09-20 11:20:36'), (10, 2, '2016-09-20', 0.00, -420.00, 11, '2016-09-20 11:20:36', '2016-09-20 11:20:36'), (11, 5, '2016-10-05', 0.00, 800.00, 12, '2016-10-06 08:32:57', '2016-10-06 08:32:57'), (12, 5, '2016-10-05', 9200.00, 0.00, 12, '2016-10-06 08:32:57', '2016-10-06 08:32:57'), (13, 8, '2016-08-26', 0.00, 800.00, 12, '2016-10-26 06:24:54', '2016-10-26 06:24:54'), (14, 8, '2016-08-26', 3400.00, 0.00, 12, '2016-10-26 06:24:54', '2016-10-26 06:24:54'), (15, 8, '2016-10-26', 36600.00, 0.00, 12, '2016-10-26 06:29:08', '2016-10-26 06:29:08'), (16, 8, '2016-10-26', 0.00, 7984.00, 12, '2016-10-26 06:29:08', '2016-10-26 06:29:08'), (17, 8, '2016-10-26', 4000.00, 0.00, 12, '2016-10-26 06:30:12', '2016-10-26 06:30:12'), (18, 8, '2016-10-26', 0.00, -7824.00, 12, '2016-10-26 06:30:13', '2016-10-26 06:30:13'), (19, 9, '2016-10-12', 0.00, 2700.00, 17, '2016-10-28 05:06:17', '2016-10-28 05:06:17'); -- -------------------------------------------------------- -- -- Table structure for table `loantransactions` -- CREATE TABLE IF NOT EXISTS `loantransactions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `loanaccount_id` int(10) unsigned NOT NULL, `date` date NOT NULL, `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `trans_no` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `amount` float(10,0) NOT NULL DEFAULT '0', `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `loantransactions_loanaccount_id_foreign` (`loanaccount_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=19 ; -- -- Dumping data for table `loantransactions` -- INSERT INTO `loantransactions` (`id`, `loanaccount_id`, `date`, `description`, `trans_no`, `amount`, `type`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 1, '2016-07-27', 'loan disbursement', NULL, 49600, 'debit', 1, '2016-07-27 10:41:00', '2016-07-27 10:41:00'), (2, 1, '2016-07-27', 'loan repayment', NULL, 4133, 'credit', 1, '2016-07-27 10:54:39', '2016-07-27 10:54:39'), (3, 1, '2016-07-27', 'loan repayment', NULL, 4061, 'credit', 1, '2016-07-27 11:08:50', '2016-07-27 11:08:50'), (4, 2, '2016-09-20', 'loan disbursement', NULL, 6800, 'debit', 11, '2016-09-20 09:52:21', '2016-09-20 09:52:21'), (5, 2, '2016-09-20', 'loan repayment', NULL, 1133, 'credit', 11, '2016-09-20 11:00:10', '2016-09-20 11:00:10'), (6, 2, '2016-09-20', 'loan repayment', NULL, 4417, 'credit', 11, '2016-09-20 11:00:40', '2016-09-20 11:00:40'), (7, 2, '2016-09-20', 'loan top up', NULL, 3000, 'debit', 11, '2016-09-20 11:20:05', '2016-09-20 11:20:05'), (8, 2, '2016-09-20', 'loan repayment', NULL, 3180, 'credit', 11, '2016-09-20 11:20:37', '2016-09-20 11:20:37'), (9, 5, '2016-10-06', 'loan disbursement', NULL, 49600, 'debit', 12, '2016-10-06 08:21:12', '2016-10-06 08:21:12'), (10, 5, '2016-10-05', 'loan repayment', NULL, 10000, 'credit', 12, '2016-10-06 08:32:58', '2016-10-06 08:32:58'), (11, 7, '2016-10-17', 'loan disbursement', NULL, 2200, 'debit', 12, '2016-10-17 06:25:46', '2016-10-17 06:25:46'), (12, 8, '2016-10-26', 'loan disbursement', NULL, 49600, 'debit', 12, '2016-10-26 06:20:40', '2016-10-26 06:20:40'), (13, 8, '2016-08-26', 'loan repayment', NULL, 4200, 'credit', 12, '2016-10-26 06:24:54', '2016-10-26 06:24:54'), (14, 8, '2016-10-26', 'loan repayment', NULL, 37332, 'credit', 12, '2016-10-26 06:29:08', '2016-10-26 06:29:08'), (15, 8, '2016-10-26', 'loan top up', NULL, 4000, 'debit', 12, '2016-10-26 06:29:47', '2016-10-26 06:29:47'), (16, 8, '2016-10-26', 'loan repayment', NULL, 4080, 'credit', 12, '2016-10-26 06:30:13', '2016-10-26 06:30:13'), (17, 9, '2016-10-28', 'loan disbursement', NULL, 66600, 'debit', 17, '2016-10-28 04:42:14', '2016-10-28 04:42:14'), (18, 9, '2016-10-12', 'loan repayment', NULL, 0, 'credit', 17, '2016-10-28 05:06:17', '2016-10-28 05:06:17'); -- -------------------------------------------------------- -- -- Table structure for table `locations` -- CREATE TABLE IF NOT EXISTS `locations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ; -- -- Dumping data for table `locations` -- INSERT INTO `locations` (`id`, `name`, `description`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'main', '', 1, '2016-07-27 07:57:22', '2016-07-27 07:57:22'), (2, 'main', '', 8, '2016-08-09 10:06:24', '2016-08-09 10:06:24'), (3, 'Main', 'Main store', 11, '2016-09-20 06:13:44', '2016-09-20 06:13:44'), (4, 'main', '', 12, '2016-10-06 06:29:38', '2016-10-06 06:29:38'), (5, 'Main Store', '', 17, '2016-10-26 08:19:52', '2016-10-26 08:19:52'), (6, 'Main Store', '', 16, '2016-10-26 08:30:52', '2016-10-26 08:30:52'); -- -------------------------------------------------------- -- -- Table structure for table `mails` -- CREATE TABLE IF NOT EXISTS `mails` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `driver` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'smtp', `host` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `port` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `encryption` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `sender_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_id` int(11) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `mails` -- INSERT INTO `mails` (`id`, `driver`, `host`, `username`, `password`, `port`, `encryption`, `sender_name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'smtp', 'mail.lixnet.net', '<EMAIL>', 'lixnetco2015', '25', NULL, NULL, NULL, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `members` -- CREATE TABLE IF NOT EXISTS `members` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `membership_no` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `photo` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'default_photo.png', `signature` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `gender` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `id_number` bigint(20) DEFAULT NULL, `phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address` text COLLATE utf8_unicode_ci, `group_id` int(10) unsigned DEFAULT NULL, `branch_id` int(10) unsigned NOT NULL, `monthly_remittance_amount` float(15,2) DEFAULT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `is_active` tinyint(1) DEFAULT '1', `is_css_active` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`), KEY `members_group_id_foreign` (`group_id`), KEY `members_branch_id_foreign` (`branch_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=13 ; -- -- Dumping data for table `members` -- INSERT INTO `members` (`id`, `name`, `membership_no`, `photo`, `signature`, `gender`, `id_number`, `phone`, `email`, `address`, `group_id`, `branch_id`, `monthly_remittance_amount`, `organization_id`, `created_at`, `updated_at`, `is_active`, `is_css_active`) VALUES (1, '<NAME>', 'L001', 'default_photo.png', NULL, 'female', 283277377, '0720700690', '<EMAIL>', '', 1, 1, 350000.00, 2, '2016-07-27 09:38:24', '2016-07-27 09:38:24', 1, 0), (2, '<NAME>', 'L002', 'default_photo.png', NULL, 'male', 27677655, '072112212', '<EMAIL>', '', 1, 1, 450000.00, 2, '2016-07-27 09:39:29', '2016-07-27 09:39:29', 1, 0), (3, '<NAME>', '001', 'default_photo.png', NULL, 'female', 2856543425, '0723454345', '<EMAIL>', '', 2, 3, 5000.00, 8, '2016-08-11 09:20:27', '2016-08-11 09:56:39', 1, 1), (4, '<NAME>', 'BM.1', 'zLYsIanLGaQg.jpg', 'JcVSMSfnr6ac.jpg', 'male', 27781190, '0725145304', '<EMAIL>', 'P.O. Box 123,\r\nGithunguri', 3, 1, 10000.00, 11, '2016-09-20 09:07:24', '2016-09-21 04:29:02', 1, 1), (5, '<NAME>', 'BM.2', 'default_photo.png', NULL, 'male', 1342344412, '0712345678', '<EMAIL>', '', 3, 1, 15000.00, 11, '2016-09-20 09:08:50', '2016-09-21 03:43:22', 1, 1), (6, 'jj', 'KM.1', 'default_photo.png', NULL, 'male', 3455554448, '0723444334', '', '', 4, 1, 900.00, 12, '2016-10-06 07:18:31', '2016-10-06 07:18:31', 1, 0), (7, '<NAME>', 'LTLM.1', 'default_photo.png', NULL, 'male', 27757671, '0710411226', '<EMAIL>', '270-30102', 5, 1, 3000.00, 17, '2016-10-25 05:58:06', '2016-10-25 05:58:06', 1, 0), (8, 'Majimarefu', 'MIM.1', 'default_photo.png', NULL, 'male', 7869009, '0700000002', '<EMAIL>', '', NULL, 1, 1500.00, 23, '2016-10-25 11:48:08', '2016-10-25 11:48:08', 1, 0), (9, '<NAME>', 'KM.2', 'default_photo.png', NULL, 'male', 12345433, '072798747337', '<EMAIL>', '', 4, 1, 0.00, 12, '2016-10-26 06:17:14', '2016-10-26 06:17:14', 1, 0), (10, '<NAME>', 'LTLM.2', 'default_photo.png', NULL, 'male', 29394844, '0723847484', '<EMAIL>', '', 5, 1, 5000.00, 17, '2016-10-26 09:23:56', '2016-10-26 09:23:56', 1, 0), (11, '<NAME>', 'LTLM.3', 'default_photo.png', NULL, 'female', 24904944, '0720929833', '', '', 5, 1, 3000.00, 17, '2016-10-26 09:27:00', '2016-10-26 09:27:00', 1, 0), (12, '<NAME>', 'MIM.2', 'default_photo.png', NULL, 'male', 22445566, '0715243586', '<EMAIL>', '35200', NULL, 1, 15000.00, 23, '2016-10-28 03:22:28', '2016-10-28 03:22:28', 1, 0); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE IF NOT EXISTS `migrations` ( `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`migration`, `batch`) VALUES ('2015_11_11_192002_create_x_organizations_table', 1), ('2015_11_12_192002_create_appraisalcategories_table', 1), ('2015_11_13_192002_create_appraisal_questions_table', 1), ('2015_11_13_192002_create_occurencesettings_table', 1), ('2015_11_13_192002_create_x_account_table', 1), ('2015_11_13_192002_create_x_accounts_table', 1), ('2015_11_13_192002_create_x_assigned_roles_table', 1), ('2015_11_13_192002_create_x_audits_table', 1), ('2015_11_13_192002_create_x_branches_table', 1), ('2015_11_13_192002_create_x_categories_table', 1), ('2015_11_13_192002_create_x_charge_loanproduct_table', 1), ('2015_11_13_192002_create_x_charge_savingproduct_table', 1), ('2015_11_13_192002_create_x_charges_table', 1), ('2015_11_13_192002_create_x_currencies_table', 1), ('2015_11_13_192002_create_x_groups_table', 1), ('2015_11_13_192002_create_x_journals_table', 1), ('2015_11_13_192002_create_x_kins_table', 1), ('2015_11_13_192002_create_x_loanaccounts_table', 1), ('2015_11_13_192002_create_x_loanguarantors_table', 1), ('2015_11_13_192002_create_x_loanpostings_table', 1), ('2015_11_13_192002_create_x_loanproducts_table', 1), ('2015_11_13_192002_create_x_loanrepayments_table', 1), ('2015_11_13_192002_create_x_loantransactions_table', 1), ('2015_11_13_192002_create_x_members_table', 1), ('2015_11_13_192002_create_x_orders_table', 1), ('2015_11_13_192002_create_x_password_reminders_table', 1), ('2015_11_13_192002_create_x_permission_role_table', 1), ('2015_11_13_192002_create_x_permissions_table', 1), ('2015_11_13_192002_create_x_products_table', 1), ('2015_11_13_192002_create_x_roles_table', 1), ('2015_11_13_192002_create_x_savingaccounts_table', 1), ('2015_11_13_192002_create_x_savingpostings_table', 1), ('2015_11_13_192002_create_x_savingproducts_table', 1), ('2015_11_13_192002_create_x_savingtransactions_table', 1), ('2015_11_13_192002_create_x_shareaccounts_table', 1), ('2015_11_13_192002_create_x_shares_table', 1), ('2015_11_13_192002_create_x_sharetransactions_table', 1), ('2015_11_13_192002_create_x_tax_orders_table', 1), ('2015_11_13_192002_create_x_tax_table', 1), ('2015_11_13_192002_create_x_user_role_table', 1), ('2015_11_13_192002_create_x_users_table', 1), ('2015_11_13_192002_create_x_vendors_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_assigned_roles_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_charge_loanproduct_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_charge_savingproduct_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_journals_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_kins_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_loanaccounts_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_loanguarantors_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_loanpostings_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_loanrepayments_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_loantransactions_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_members_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_orders_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_permission_role_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_products_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_savingaccounts_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_savingpostings_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_savingtransactions_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_shareaccounts_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_sharetransactions_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_user_role_table', 1), ('2015_11_13_192006_add_foreign_keys_to_x_users_table', 1), ('2015_11_20_083755_create_autoprocesses_table', 1), ('2015_11_30_101925_create_departments_table', 1), ('2015_11_30_102341_create_job_group_table', 1), ('2015_11_30_103046_create_education_table', 1), ('2015_11_30_104021_create_employee_type_table', 1), ('2015_11_30_104621_create_bank_table', 1), ('2015_11_30_104621_create_budget_table', 1), ('2015_11_30_104621_create_expensesettings_table', 1), ('2015_11_30_105006_create_deductions_table', 1), ('2015_11_30_105006_create_nontaxables_table', 1), ('2015_11_30_105430_create_relief_table', 1), ('2015_11_30_125654_create_allowances_table', 1), ('2015_11_30_125654_create_benefitsettings_table', 1), ('2015_11_30_125654_create_citizenships_table', 1), ('2015_11_30_125654_create_earningsettings_table', 1), ('2015_11_30_131641_create_bank_branches_table', 1), ('2015_12_02_060131_create_nssf_table', 1), ('2015_12_02_060202_create_nhif_table', 1), ('2015_12_11_073943_create_leavetypes_table', 1), ('2015_12_11_074541_create_holidays_table', 1), ('2015_12_17_092634_create_items_table', 1), ('2015_12_17_093206_create_clients_table', 1), ('2015_12_17_093509_create_paymentmethods_table', 1), ('2015_12_17_094052_create_locations_table', 1), ('2015_12_17_094633_create_expenses_table', 1), ('2015_12_17_095700_create_erporders_table', 1), ('2015_12_17_101046_create_erporderitems_table', 1), ('2015_12_17_104147_create_payments_table', 1), ('2015_12_17_104738_create_stocks_table', 1), ('2016_03_08_080320_create_mails_table', 1), ('2016_03_09_054131_create_tests_table', 1), ('2016_11_13_072830_create_employee_table', 1), ('2016_11_13_192002_create_employeebenefits_table', 1), ('2016_11_13_202002_create_appraisals_table', 1), ('2016_11_13_202002_create_emergency_contacts_table', 1), ('2017_11_13_192002_create_properties_table', 1), ('2017_11_13_192002_create_x_occurences_table', 1), ('2017_11_13_202002_create_next_of_kins_table', 1), ('2017_11_30_105530_create_employee_relief_table', 1), ('2017_11_30_122642_create_earnings_table', 1), ('2017_11_30_122642_create_overtimes_table', 1), ('2017_11_30_130039_create_employee_allowances_table', 1), ('2017_11_30_132013_create_employee_deductions_table', 1), ('2017_11_30_132013_create_employeenontaxables_table', 1), ('2017_11_30_132807_create_transact_allowances_table', 1), ('2017_11_30_132807_create_transact_deductions_table', 1), ('2017_11_30_132807_create_transact_nontaxables_table', 1), ('2017_11_30_133021_create_transact_earnings_table', 1), ('2017_11_30_133021_create_transact_overtimes_table', 1), ('2017_11_30_133021_create_transact_reliefs_table', 1), ('2017_11_30_133337_create_transact_advances_table', 1), ('2017_11_30_133337_create_transact_table', 1), ('2017_11_30_134419_create_documents_table', 1), ('2017_12_11_075243_create_leaveapplications_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `nextofkins` -- CREATE TABLE IF NOT EXISTS `nextofkins` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `first_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `middle_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `last_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `relationship` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `contact` text COLLATE utf8_unicode_ci, `goodwill` float(10,0) DEFAULT NULL, `id_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `employee_id` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `nextofkins_employee_id_foreign` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `nextofkins` -- INSERT INTO `nextofkins` (`id`, `first_name`, `middle_name`, `last_name`, `relationship`, `contact`, `goodwill`, `id_number`, `employee_id`, `created_at`, `updated_at`) VALUES (1, 'Cris', '', 'Kibet', 'Sponsor', '', NULL, '37373746437', 3, '2016-07-28 07:19:17', '2016-07-28 07:19:17'), (3, 'Cherono', '', 'Damaris', 'sister', '', NULL, '34565434', 5, '2016-08-01 06:11:43', '2016-08-01 06:11:43'), (4, 'Susan', '', 'Chiero', 'sister', '', NULL, '459838882', 4, '2016-08-01 06:14:34', '2016-08-01 06:14:34'); -- -------------------------------------------------------- -- -- Table structure for table `nontaxables` -- CREATE TABLE IF NOT EXISTS `nontaxables` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `nontaxables_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `nontaxables` -- INSERT INTO `nontaxables` (`id`, `name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Refunds', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'); -- -------------------------------------------------------- -- -- Table structure for table `occurences` -- CREATE TABLE IF NOT EXISTS `occurences` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `occurence_brief` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `employee_id` int(10) unsigned NOT NULL, `occurencesetting_id` int(10) unsigned NOT NULL, `narrative` text COLLATE utf8_unicode_ci, `doc_path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `occurence_date` date NOT NULL, `organization_id` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `occurences_employee_id_foreign` (`employee_id`), KEY `occurences_occurencesetting_id_foreign` (`occurencesetting_id`), KEY `occurences_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `occurences` -- INSERT INTO `occurences` (`id`, `occurence_brief`, `employee_id`, `occurencesetting_id`, `narrative`, `doc_path`, `occurence_date`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'misbehaved', 3, 2, '', NULL, '2016-07-28', 1, '2016-07-28 08:48:16', '2016-07-28 08:48:16'), (2, 'theft', 6, 14, '', NULL, '2016-08-31', 8, '2016-08-10 09:41:55', '2016-08-10 09:41:55'), (3, 'Daily duties', 8, 7, 'Completed unimaginable tasks', 'agritech.sql', '2016-09-01', 11, '2016-09-19 08:42:45', '2016-09-19 08:42:45'), (4, 'lateness', 10, 3, '', NULL, '2016-10-04', 12, '2016-10-07 09:21:12', '2016-10-07 09:21:12'); -- -------------------------------------------------------- -- -- Table structure for table `occurencesettings` -- CREATE TABLE IF NOT EXISTS `occurencesettings` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `occurence_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `occurencesettings_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=17 ; -- -- Dumping data for table `occurencesettings` -- INSERT INTO `occurencesettings` (`id`, `occurence_type`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Absentism/Abandonment', NULL, '2016-07-27 06:03:34', '2016-07-27 06:03:34'), (2, 'Abuse of Office', NULL, '2016-07-27 06:03:35', '2016-07-27 06:03:35'), (3, 'Assessment', NULL, '2016-07-27 06:03:35', '2016-07-27 06:03:35'), (4, 'Corruption', NULL, '2016-07-27 06:03:35', '2016-07-27 06:03:35'), (5, 'Emergency Drill', NULL, '2016-07-27 06:03:35', '2016-07-27 06:03:35'), (6, 'Incompetence', NULL, '2016-07-27 06:03:35', '2016-07-27 06:03:35'), (7, 'Initiative', NULL, '2016-07-27 06:03:35', '2016-07-27 06:03:35'), (8, 'Innovation', NULL, '2016-07-27 06:03:35', '2016-07-27 06:03:35'), (9, 'Insubordination', NULL, '2016-07-27 06:03:35', '2016-07-27 06:03:35'), (10, 'Intoxication', NULL, '2016-07-27 06:03:35', '2016-07-27 06:03:35'), (11, 'Meeting', NULL, '2016-07-27 06:03:35', '2016-07-27 06:03:35'), (12, 'Promotion', NULL, '2016-07-27 06:03:35', '2016-07-27 06:03:35'), (13, 'Team Building', NULL, '2016-07-27 06:03:35', '2016-07-27 06:03:35'), (14, 'Theft', NULL, '2016-07-27 06:03:35', '2016-07-27 06:03:35'), (15, 'Training', NULL, '2016-07-27 06:03:36', '2016-07-27 06:03:36'), (16, 'Violence', NULL, '2016-07-27 06:03:36', '2016-07-27 06:03:36'); -- -------------------------------------------------------- -- -- Table structure for table `orders` -- CREATE TABLE IF NOT EXISTS `orders` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `product_id` int(10) unsigned NOT NULL, `order_date` date NOT NULL, `customer_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `sacco` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `customer_phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `customer_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'new', `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `orders_product_id_index` (`product_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `organizations` -- CREATE TABLE IF NOT EXISTS `organizations` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'XARA FINANCIALS', `logo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `website` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `kra_pin` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `nssf_no` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `nhif_no` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `bank_id` int(10) unsigned NOT NULL DEFAULT '0', `bank_branch_id` int(10) unsigned NOT NULL DEFAULT '0', `bank_account_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `swift_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `payroll_license_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'evaluation', `erp_license_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'evaluation', `cbs_license_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'evaluation', `license_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `payroll_license_key` int(11) NOT NULL DEFAULT '0', `erp_license_key` int(11) NOT NULL DEFAULT '0', `cbs_license_key` int(11) NOT NULL DEFAULT '0', `erp_client_licensed` bigint(20) DEFAULT '10', `erp_item_licensed` bigint(20) DEFAULT '5', `payroll_licensed` bigint(20) DEFAULT '10', `cbs_licensed` bigint(20) DEFAULT '100', `payroll_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'P3110', `erp_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'E3110', `cbs_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT 'C3110', `payroll_support_period` date DEFAULT NULL, `erp_support_period` date DEFAULT NULL, `cbs_support_period` date DEFAULT NULL, `is_payroll_active` bigint(20) DEFAULT '0', `is_erp_active` bigint(20) DEFAULT '0', `is_cbs_active` bigint(20) DEFAULT '0', `demo_expiry` date NOT NULL, `status` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `organization_bank_id_foreign` (`bank_id`), KEY `organization_bank_branch_id_foreign` (`bank_branch_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=25 ; -- -- Dumping data for table `organizations` -- INSERT INTO `organizations` (`id`, `name`, `logo`, `email`, `website`, `address`, `phone`, `kra_pin`, `nssf_no`, `nhif_no`, `bank_id`, `bank_branch_id`, `bank_account_number`, `swift_code`, `payroll_license_type`, `erp_license_type`, `cbs_license_type`, `license_code`, `payroll_license_key`, `erp_license_key`, `cbs_license_key`, `erp_client_licensed`, `erp_item_licensed`, `payroll_licensed`, `cbs_licensed`, `payroll_code`, `erp_code`, `cbs_code`, `payroll_support_period`, `erp_support_period`, `cbs_support_period`, `is_payroll_active`, `is_erp_active`, `is_cbs_active`, `demo_expiry`, `status`, `created_at`, `updated_at`) VALUES (1, 'XARA FINANCIALS', 'xara.png', NULL, 'www.lixnet.co.ke', NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', NULL, 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', NULL, NULL, NULL, 1, 1, 1, '2017-09-30', 0, '0000-00-00 00:00:00', '2016-10-10 08:01:12'), (2, 'IntraCraze ', 'xara.png', '', 'www.lixnet.net', '', '', '', '', '', 0, 0, '', '', 'evaluation', 'evaluation', 'evaluation', 'Cn4aDOjAsw', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-07-27', '2016-07-27', '2016-07-27', 1, 1, 1, '2016-09-30', 0, '2016-07-27 06:03:33', '2016-07-27 16:01:00'), (5, '<NAME>', 'xara.png', '', '', '', '0712345678', '', '', '', 0, 0, '', '', 'evaluation', 'evaluation', 'evaluation', 'fjegVRad1I', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-07-28', '2016-07-28', '2016-07-28', 1, 1, 1, '2016-09-30', 0, '2016-07-28 04:35:08', '2016-08-02 08:18:10'), (6, 'VirtualTech', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', '2v0gVXqUsu', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-08-01', '2016-08-01', '2016-08-01', 1, 1, 1, '2016-09-30', 0, '2016-08-01 06:05:10', '2016-08-01 06:05:10'), (7, 'Lixnet technologies', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', 'uQ1ZphdMVW', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-08-09', '2016-08-09', '2016-08-09', 1, 1, 1, '2016-09-08', 0, '2016-08-09 09:19:02', '2016-08-09 09:19:02'), (8, 'Lixnet technologies', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', 'gQ85M9tOsX', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-08-09', '2016-08-09', '2016-08-09', 1, 1, 1, '2016-09-08', 0, '2016-08-09 09:19:43', '2016-08-09 09:19:43'), (11, 'Boolie', '6W2DFQ2JxVIT.png', '<EMAIL>', 'boolie.com', 'P.O. Box 123,\r\nGithunguri', '0712345678', '', '', '', 19, 24, '', '', 'evaluation', 'evaluation', 'evaluation', 'DEGHOewXV9', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-09-19', '2016-09-19', '2016-09-19', 1, 1, 1, '2016-09-19', 0, '2016-09-19 04:41:29', '2016-09-20 06:27:38'), (12, 'Kenchic', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', 's8BRjL3hSu', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2020-10-06', '2020-10-06', '2020-10-06', 1, 1, 1, '2020-11-05', 1, '2016-10-06 06:14:55', '2016-10-06 06:14:55'), (13, 'worldtech ict', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', 'Zd2UAJvg0o', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-10-10', '2016-10-10', '2016-10-10', 1, 1, 1, '2016-11-09', 0, '2016-10-10 07:14:09', '2016-10-10 07:14:09'), (14, 'chumo inc', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', '7ktENDJ3Cv', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-10-10', '2016-10-10', '2016-10-10', 1, 1, 1, '2016-11-09', 0, '2016-10-10 07:59:28', '2016-10-10 07:59:28'), (15, 'LT', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', '6YvjkDJ5Cy', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-10-11', '2016-10-11', '2016-10-11', 1, 1, 1, '2016-11-10', 0, '2016-10-11 08:17:14', '2016-10-11 08:17:14'), (16, 'Dutech Core', 'PiITHIBO0ULQ.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', '0M1QW8pfJm', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-10-12', '2016-10-12', '2016-10-12', 1, 1, 1, '2016-11-11', 0, '2016-10-12 03:46:36', '2016-10-19 12:20:08'), (17, 'Lixnet Technologies Ltd', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', 'LShGAfuzmI', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-10-12', '2016-10-12', '2016-10-12', 1, 1, 1, '2016-11-11', 0, '2016-10-12 08:25:50', '2016-10-12 08:25:50'), (18, 'Lixnet', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', 'HBPFg0qDkr', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-10-19', '2016-10-19', '2016-10-19', 1, 1, 1, '2016-11-18', 0, '2016-10-19 07:41:14', '2016-10-19 07:41:14'), (19, 'Test', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', 'TWG7DtmQdK', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-10-25', '2016-10-25', '2016-10-25', 1, 1, 1, '2016-11-24', 0, '2016-10-25 05:36:33', '2016-10-25 05:36:33'), (20, 'Mazawalifu Incorporation', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', 'JPvlZLBkQq', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-10-25', '2016-10-25', '2016-10-25', 1, 1, 1, '2016-11-24', 0, '2016-10-25 10:59:37', '2016-10-25 10:59:37'), (21, 'Mazawalifu Incorporation', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', 'hJkdm8PI0N', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-10-25', '2016-10-25', '2016-10-25', 1, 1, 1, '2016-11-24', 0, '2016-10-25 11:00:06', '2016-10-25 11:00:06'), (22, 'Mazawalifu Incorporation', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', 'eYFk2tgvVs', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-10-25', '2016-10-25', '2016-10-25', 1, 1, 1, '2016-11-24', 0, '2016-10-25 11:00:46', '2016-10-25 11:00:46'), (23, 'Mazawalifu Inc.', 'xara.png', NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, NULL, NULL, 'evaluation', 'evaluation', 'evaluation', 'VK8DqFPab0', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-10-25', '2016-10-25', '2016-10-25', 1, 1, 1, '2016-11-24', 0, '2016-10-25 11:03:32', '2016-10-25 11:03:32'), (24, 'HEBRON SACCO LIMITED', 'xara.png', '', '', '72950 00200\r\nNairobi', '+254716919783', '', '', '', 12, 1101, '01120532394900', '', 'evaluation', 'evaluation', 'evaluation', '4cWKL7ekmO', 0, 0, 0, 10, 5, 10, 100, 'P3110', 'E3110', 'C3110', '2016-11-04', '2016-11-04', '2016-11-04', 1, 1, 1, '2016-12-04', 0, '2016-11-04 06:58:02', '2016-11-04 07:08:21'); -- -------------------------------------------------------- -- -- Table structure for table `overtimes` -- CREATE TABLE IF NOT EXISTS `overtimes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `period` float(15,2) NOT NULL, `formular` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `instalments` int(11) DEFAULT '0', `amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `overtime_date` date NOT NULL, `first_day_month` date NOT NULL, `last_day_month` date NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `overtimes_employee_id_foreign` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `overtimes` -- INSERT INTO `overtimes` (`id`, `employee_id`, `type`, `period`, `formular`, `instalments`, `amount`, `overtime_date`, `first_day_month`, `last_day_month`, `created_at`, `updated_at`) VALUES (1, 6, 'Hourly', 3.00, 'One Time', 1, '69.44', '2016-08-10', '2016-08-01', '2016-08-31', '2016-08-10 08:52:34', '2016-08-10 08:52:34'), (2, 7, 'Hourly', 4.00, 'One Time', 1, '138.89', '2016-08-08', '2016-08-01', '2016-08-31', '2016-08-10 08:53:32', '2016-08-10 08:53:32'), (3, 8, 'Hourly', 3.00, 'One Time', 0, '69.98', '2016-09-01', '2016-09-01', '2016-09-30', '2016-09-19 06:06:13', '2016-09-19 06:06:13'), (4, 10, 'Daily', 2.00, 'One Time', 1, '1333.33', '2016-11-01', '2016-11-01', '2016-11-30', '2016-10-26 07:03:47', '2016-10-26 07:03:47'); -- -------------------------------------------------------- -- -- Table structure for table `password_reminders` -- CREATE TABLE IF NOT EXISTS `password_reminders` ( `email` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `token` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `created_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `password_reminders` -- INSERT INTO `password_reminders` (`email`, `token`, `created_at`) VALUES ('<EMAIL>', '<PASSWORD>', '2016-11-02 12:10:57'), ('<EMAIL>', '<PASSWORD>', '2016-11-02 12:11:14'), ('<EMAIL>', '<PASSWORD>', '2016-11-02 12:11:34'), ('<EMAIL>', '<PASSWORD>', '2016-11-02 12:22:11'), ('<EMAIL>', '<PASSWORD>', '2016-11-02 12:23:33'), ('<EMAIL>', '591074fa860d1ad89966372c3f810528', '2016-11-02 12:33:15'); -- -------------------------------------------------------- -- -- Table structure for table `paymentmethods` -- CREATE TABLE IF NOT EXISTS `paymentmethods` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `account_id` int(10) unsigned NOT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `paymentmethods_account_id_foreign` (`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=11 ; -- -- Dumping data for table `paymentmethods` -- INSERT INTO `paymentmethods` (`id`, `name`, `account_id`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'lipa na mpesa', 2, 1, '2016-07-27 07:53:50', '2016-07-27 07:53:50'), (2, 'banking', 1, 1, '2016-07-27 07:56:36', '2016-07-27 07:56:36'), (3, 'lipa mpesa', 15, 8, '2016-08-09 10:26:01', '2016-08-09 10:26:01'), (4, 'Lipa na Mpesa', 20, 11, '2016-09-20 06:50:22', '2016-09-20 06:50:22'), (5, 'Wire Transfer', 21, 11, '2016-09-20 06:50:49', '2016-09-20 06:50:49'), (6, 'lipa na mpesa', 36, 12, '2016-10-06 06:51:48', '2016-10-06 06:51:48'), (7, 'Cheque', 37, 12, '2016-10-06 06:52:03', '2016-10-06 06:52:03'), (8, 'Cash', 46, 17, '2016-10-26 08:48:11', '2016-10-26 08:48:11'), (9, 'Cheque', 46, 17, '2016-10-26 08:48:42', '2016-10-26 08:48:42'), (10, 'Mpesa', 46, 17, '2016-10-26 08:49:05', '2016-10-26 08:49:05'); -- -------------------------------------------------------- -- -- Table structure for table `payments` -- CREATE TABLE IF NOT EXISTS `payments` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `client_id` int(10) unsigned NOT NULL, `cash_account_id` int(10) unsigned NOT NULL, `receivable_acc_id` int(11) NOT NULL, `cash_journal_id` int(11) DEFAULT NULL, `receivable_journal_id` int(11) DEFAULT NULL, `date` date DEFAULT NULL, `amount_paid` double NOT NULL DEFAULT '0', `received_by` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `paymentmethod_id` int(10) unsigned NOT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `void` int(11) NOT NULL DEFAULT '0', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `payments_paymentmethod_id_foreign` (`paymentmethod_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=15 ; -- -- Dumping data for table `payments` -- INSERT INTO `payments` (`id`, `client_id`, `cash_account_id`, `receivable_acc_id`, `cash_journal_id`, `receivable_journal_id`, `date`, `amount_paid`, `received_by`, `paymentmethod_id`, `organization_id`, `void`, `created_at`, `updated_at`) VALUES (1, 1, 2, 0, 0, 0, '2016-07-27', 35620, 'superadmin', 1, 1, 0, '2016-07-27 08:13:00', '2016-07-27 08:13:00'), (2, 6, 0, 0, 0, 0, '2016-08-11', 10000, 'josephine', 3, 8, 0, '2016-08-11 10:38:18', '2016-08-11 10:38:18'), (3, 11, 0, 0, 0, 0, '2016-08-30', 5000, NULL, 0, 1, 0, '2016-08-30 04:08:42', '2016-08-30 04:08:42'), (4, 12, 0, 0, 0, 0, '2016-08-30', 460000, NULL, 0, 1, 0, '2016-08-30 05:08:24', '2016-08-30 05:08:24'), (5, 11, 0, 0, 0, 0, '2016-08-30', 35000, NULL, 0, 1, 0, '2016-08-30 06:08:02', '2016-08-30 06:08:02'), (6, 11, 0, 0, 0, 0, '2016-08-30', 35000, NULL, 0, 1, 0, '2016-08-30 16:08:35', '2016-08-30 16:08:35'), (7, 12, 0, 0, 0, 0, '2016-09-01', 460000, NULL, 0, 1, 0, '2016-09-01 13:09:10', '2016-09-01 13:09:10'), (8, 21, 0, 0, 0, 0, '2016-09-20', 250000, 'jamharic', 5, 11, 0, '2016-09-20 07:13:34', '2016-09-20 07:26:06'), (12, 21, 22, 34, 40, 39, '2016-09-21', 100000, 'jamharic', 4, 11, 1, '2016-09-21 10:51:49', '2016-09-21 11:13:22'), (13, 24, 38, 38, 58, 57, '2016-10-06', 2000, 'ken', 6, 12, 0, '2016-10-06 06:53:35', '2016-10-06 06:53:36'), (14, 26, 46, 46, 90, 89, '2016-10-26', 100000, 'cris', 9, 17, 0, '2016-10-26 08:50:17', '2016-10-26 08:50:18'); -- -------------------------------------------------------- -- -- Table structure for table `permissions` -- CREATE TABLE IF NOT EXISTS `permissions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `display_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `category` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), UNIQUE KEY `permissions_name_unique` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=28 ; -- -- Dumping data for table `permissions` -- INSERT INTO `permissions` (`id`, `name`, `display_name`, `category`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'create_employee', 'Create employee', 'Employee', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (2, 'update_employee', 'Update employee', 'Employee', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (3, 'delete_employee', 'Deactivate employee', 'Employee', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (4, 'view_employee', 'View employee', 'Employee', NULL, '2016-07-27 06:03:38', '2016-07-27 06:03:38'), (5, 'manage_earning', 'Manage earnings', 'Payroll', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (6, 'manage_deduction', 'Manage deductions', 'Payroll', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (7, 'manage_allowance', 'Manage allowance', 'Payroll', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (8, 'manage_relief', 'Manage releif', 'Payroll', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (9, 'manage_benefit', 'Manage benefits', 'Payroll', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (10, 'process_payroll', 'Process payroll', 'Payroll', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (11, 'view_payroll_report', 'View reports', 'Payroll', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (12, 'manage_settings', 'Manage settings', 'Payroll', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (13, 'view_application', 'View applications', 'Leave', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (14, 'amend_application', 'Amend applications', 'Leave', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (15, 'approve_application', 'Approve applications', 'Leave', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (16, 'reject_application', 'Reject applications', 'Leave', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (17, 'cancel_application', 'Cancel applications', 'Leave', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (18, 'manage_type', 'Manage leave types', 'Leave', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (19, 'manage_holiday', 'Manage holidays', 'Leave', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (20, 'view_leave_report', 'View reports', 'Leave', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (21, 'manage_organization', 'manage organization', 'Organization', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (22, 'manage_branch', 'manage branches', 'Organization', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (23, 'manage_group', 'manage groups', 'Organization', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (24, 'manage_organization_settings', 'manage settings', 'Organization', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (25, 'manage_user', 'manage users', 'System', NULL, '2016-07-27 06:03:39', '2016-07-27 06:03:39'), (26, 'manage_role', 'manage roles', 'System', NULL, '2016-07-27 06:03:40', '2016-07-27 06:03:40'), (27, 'manage_audit', 'manage audits', 'System', NULL, '2016-07-27 06:03:40', '2016-07-27 06:03:40'); -- -------------------------------------------------------- -- -- Table structure for table `permission_role` -- CREATE TABLE IF NOT EXISTS `permission_role` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `permission_id` int(10) unsigned NOT NULL, `role_id` int(10) unsigned NOT NULL, PRIMARY KEY (`id`), KEY `permission_role_permission_id_foreign` (`permission_id`), KEY `permission_role_role_id_foreign` (`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=453 ; -- -- Dumping data for table `permission_role` -- INSERT INTO `permission_role` (`id`, `permission_id`, `role_id`) VALUES (1, 1, 1), (2, 2, 1), (3, 3, 1), (4, 4, 1), (5, 5, 1), (6, 6, 1), (7, 7, 1), (8, 8, 1), (9, 9, 1), (10, 10, 1), (11, 11, 1), (12, 12, 1), (13, 13, 1), (14, 14, 1), (15, 15, 1), (16, 16, 1), (17, 17, 1), (18, 18, 1), (19, 19, 1), (20, 20, 1), (21, 21, 1), (22, 22, 1), (23, 23, 1), (24, 24, 1), (25, 25, 1), (26, 26, 1), (27, 27, 1), (28, 1, 2), (29, 2, 2), (30, 3, 2), (31, 4, 2), (32, 5, 2), (33, 6, 2), (34, 7, 2), (35, 8, 2), (36, 9, 2), (37, 10, 2), (38, 11, 2), (39, 12, 2), (40, 13, 2), (41, 14, 2), (42, 15, 2), (43, 16, 2), (44, 17, 2), (45, 18, 2), (46, 19, 2), (47, 20, 2), (48, 21, 2), (49, 22, 2), (50, 23, 2), (51, 24, 2), (52, 25, 2), (53, 26, 2), (54, 27, 2), (55, 1, 6), (56, 2, 6), (57, 3, 6), (58, 4, 6), (59, 5, 6), (60, 6, 6), (61, 7, 6), (62, 8, 6), (63, 9, 6), (64, 10, 6), (65, 11, 6), (66, 12, 6), (67, 13, 6), (68, 14, 6), (69, 15, 6), (70, 16, 6), (71, 17, 6), (72, 18, 6), (73, 19, 6), (74, 20, 6), (75, 21, 6), (76, 22, 6), (77, 23, 6), (78, 24, 6), (79, 25, 6), (80, 26, 6), (81, 27, 6), (82, 1, 7), (83, 2, 7), (84, 3, 7), (85, 4, 7), (86, 5, 7), (87, 6, 7), (88, 7, 7), (89, 8, 7), (90, 9, 7), (91, 10, 7), (92, 11, 7), (93, 12, 7), (94, 13, 7), (95, 14, 7), (96, 15, 7), (97, 16, 7), (98, 17, 7), (99, 18, 7), (100, 19, 7), (101, 20, 7), (102, 21, 7), (103, 22, 7), (104, 23, 7), (105, 24, 7), (106, 25, 7), (107, 26, 7), (108, 27, 7), (109, 1, 8), (110, 2, 8), (111, 3, 8), (112, 4, 8), (113, 5, 8), (114, 6, 8), (115, 7, 8), (116, 8, 8), (117, 9, 8), (118, 10, 8), (119, 11, 8), (120, 12, 8), (121, 13, 8), (122, 14, 8), (123, 15, 8), (124, 16, 8), (125, 17, 8), (126, 18, 8), (127, 19, 8), (128, 20, 8), (129, 21, 8), (130, 22, 8), (131, 23, 8), (132, 24, 8), (133, 25, 8), (134, 26, 8), (135, 27, 8), (136, 1, 9), (137, 2, 9), (138, 3, 9), (139, 4, 9), (140, 5, 9), (141, 6, 9), (142, 7, 9), (143, 8, 9), (144, 9, 9), (145, 10, 9), (146, 11, 9), (147, 12, 9), (148, 13, 9), (149, 14, 9), (150, 15, 9), (151, 16, 9), (152, 17, 9), (153, 18, 9), (154, 19, 9), (155, 20, 9), (156, 21, 9), (157, 22, 9), (158, 23, 9), (159, 24, 9), (160, 25, 9), (161, 26, 9), (162, 27, 9), (163, 5, 10), (164, 6, 10), (165, 7, 10), (166, 8, 10), (167, 9, 10), (168, 10, 10), (169, 11, 10), (170, 12, 10), (171, 1, 11), (172, 2, 11), (173, 3, 11), (174, 4, 11), (175, 13, 11), (176, 14, 11), (177, 15, 11), (178, 16, 11), (179, 17, 11), (180, 18, 11), (181, 19, 11), (182, 20, 11), (183, 1, 12), (184, 2, 12), (185, 3, 12), (186, 4, 12), (187, 5, 12), (188, 6, 12), (189, 7, 12), (190, 8, 12), (191, 9, 12), (192, 10, 12), (193, 11, 12), (194, 12, 12), (195, 13, 12), (196, 14, 12), (197, 15, 12), (198, 16, 12), (199, 17, 12), (200, 18, 12), (201, 19, 12), (202, 20, 12), (203, 21, 12), (204, 22, 12), (205, 23, 12), (206, 24, 12), (207, 25, 12), (208, 26, 12), (209, 27, 12), (210, 1, 13), (211, 2, 13), (212, 3, 13), (213, 4, 13), (214, 5, 13), (215, 6, 13), (216, 7, 13), (217, 8, 13), (218, 9, 13), (219, 10, 13), (220, 11, 13), (221, 12, 13), (222, 13, 13), (223, 14, 13), (224, 15, 13), (225, 16, 13), (226, 17, 13), (227, 18, 13), (228, 19, 13), (229, 20, 13), (230, 21, 13), (231, 22, 13), (232, 23, 13), (233, 24, 13), (234, 25, 13), (235, 26, 13), (236, 27, 13), (237, 1, 14), (238, 2, 14), (239, 3, 14), (240, 4, 14), (241, 5, 14), (242, 6, 14), (243, 7, 14), (244, 8, 14), (245, 9, 14), (246, 10, 14), (247, 11, 14), (248, 12, 14), (249, 13, 14), (250, 14, 14), (251, 15, 14), (252, 16, 14), (253, 17, 14), (254, 18, 14), (255, 19, 14), (256, 20, 14), (257, 21, 14), (258, 22, 14), (259, 23, 14), (260, 24, 14), (261, 25, 14), (262, 26, 14), (263, 27, 14), (264, 1, 15), (265, 2, 15), (266, 3, 15), (267, 4, 15), (268, 5, 15), (269, 6, 15), (270, 7, 15), (271, 8, 15), (272, 9, 15), (273, 10, 15), (274, 11, 15), (275, 12, 15), (276, 13, 15), (277, 14, 15), (278, 15, 15), (279, 16, 15), (280, 17, 15), (281, 18, 15), (282, 19, 15), (283, 20, 15), (284, 21, 15), (285, 22, 15), (286, 23, 15), (287, 24, 15), (288, 25, 15), (289, 26, 15), (290, 27, 15), (291, 1, 16), (292, 2, 16), (293, 3, 16), (294, 4, 16), (295, 5, 16), (296, 6, 16), (297, 7, 16), (298, 8, 16), (299, 9, 16), (300, 10, 16), (301, 11, 16), (302, 12, 16), (303, 13, 16), (304, 14, 16), (305, 15, 16), (306, 16, 16), (307, 17, 16), (308, 18, 16), (309, 19, 16), (310, 20, 16), (311, 21, 16), (312, 22, 16), (313, 23, 16), (314, 24, 16), (315, 25, 16), (316, 26, 16), (317, 27, 16), (318, 1, 17), (319, 2, 17), (320, 3, 17), (321, 4, 17), (322, 5, 17), (323, 6, 17), (324, 7, 17), (325, 8, 17), (326, 9, 17), (327, 10, 17), (328, 11, 17), (329, 12, 17), (330, 13, 17), (331, 14, 17), (332, 15, 17), (333, 16, 17), (334, 17, 17), (335, 18, 17), (336, 19, 17), (337, 20, 17), (338, 21, 17), (339, 22, 17), (340, 23, 17), (341, 24, 17), (342, 25, 17), (343, 26, 17), (344, 27, 17), (345, 1, 18), (346, 2, 18), (347, 3, 18), (348, 4, 18), (349, 5, 18), (350, 6, 18), (351, 7, 18), (352, 8, 18), (353, 9, 18), (354, 10, 18), (355, 11, 18), (356, 12, 18), (357, 13, 18), (358, 14, 18), (359, 15, 18), (360, 16, 18), (361, 17, 18), (362, 18, 18), (363, 19, 18), (364, 20, 18), (365, 21, 18), (366, 22, 18), (367, 23, 18), (368, 24, 18), (369, 25, 18), (370, 26, 18), (371, 27, 18), (372, 1, 19), (373, 2, 19), (374, 3, 19), (375, 4, 19), (376, 5, 19), (377, 6, 19), (378, 7, 19), (379, 8, 19), (380, 9, 19), (381, 10, 19), (382, 11, 19), (383, 12, 19), (384, 13, 19), (385, 14, 19), (386, 15, 19), (387, 16, 19), (388, 17, 19), (389, 18, 19), (390, 19, 19), (391, 20, 19), (392, 21, 19), (393, 22, 19), (394, 23, 19), (395, 24, 19), (396, 25, 19), (397, 26, 19), (398, 27, 19), (399, 1, 20), (400, 2, 20), (401, 3, 20), (402, 4, 20), (403, 5, 20), (404, 6, 20), (405, 7, 20), (406, 8, 20), (407, 9, 20), (408, 10, 20), (409, 11, 20), (410, 12, 20), (411, 13, 20), (412, 14, 20), (413, 15, 20), (414, 16, 20), (415, 17, 20), (416, 18, 20), (417, 19, 20), (418, 20, 20), (419, 21, 20), (420, 22, 20), (421, 23, 20), (422, 24, 20), (423, 25, 20), (424, 26, 20), (425, 27, 20), (426, 1, 21), (427, 2, 21), (428, 3, 21), (429, 4, 21), (430, 5, 21), (431, 6, 21), (432, 7, 21), (433, 8, 21), (434, 9, 21), (435, 10, 21), (436, 11, 21), (437, 12, 21), (438, 13, 21), (439, 14, 21), (440, 15, 21), (441, 16, 21), (442, 17, 21), (443, 18, 21), (444, 19, 21), (445, 20, 21), (446, 21, 21), (447, 22, 21), (448, 23, 21), (449, 24, 21), (450, 25, 21), (451, 26, 21), (452, 27, 21); -- -------------------------------------------------------- -- -- Table structure for table `products` -- CREATE TABLE IF NOT EXISTS `products` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `vendor_id` int(10) unsigned NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `description` text COLLATE utf8_unicode_ci NOT NULL, `price` float(10,0) NOT NULL, `status` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `products_vendor_id_index` (`vendor_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `properties` -- CREATE TABLE IF NOT EXISTS `properties` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` text COLLATE utf8_unicode_ci, `serial` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `digitalserial` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `monetary` float(15,2) NOT NULL DEFAULT '0.00', `issued_by` int(10) unsigned NOT NULL, `issue_date` date NOT NULL, `scheduled_return_date` date NOT NULL, `state` int(11) NOT NULL DEFAULT '0', `received_by` int(10) unsigned DEFAULT NULL, `return_date` date DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `properties_employee_id_foreign` (`employee_id`), KEY `properties_issued_by_foreign` (`issued_by`), KEY `properties_received_by_foreign` (`received_by`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `properties` -- INSERT INTO `properties` (`id`, `employee_id`, `name`, `description`, `serial`, `digitalserial`, `monetary`, `issued_by`, `issue_date`, `scheduled_return_date`, `state`, `received_by`, `return_date`, `created_at`, `updated_at`) VALUES (1, 3, 'car', '', 'kbp87889p', '', 1000000.00, 1, '2016-07-28', '2016-07-28', 0, 0, NULL, '2016-07-28 07:20:41', '2016-07-28 07:20:41'), (2, 6, 'company Car', '', 'KBT 500P', '', 1000000.00, 8, '2016-08-10', '2016-08-10', 0, 0, NULL, '2016-08-10 09:29:45', '2016-08-10 09:29:45'), (3, 8, 'Lenovo laptops', '4GB RAM,\r\n500GBHDD\r\n2Hz Processor', 'HX74987485', '', 70000.00, 14, '2016-09-19', '2016-09-19', 0, 0, NULL, '2016-09-19 08:40:35', '2016-09-19 08:40:35'), (4, 10, 'car', '', 'kbt 300p', '', 500000.00, 23, '2016-10-07', '2016-10-07', 0, 0, NULL, '2016-10-07 09:01:54', '2016-10-07 09:01:54'); -- -------------------------------------------------------- -- -- Table structure for table `relief` -- CREATE TABLE IF NOT EXISTS `relief` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `relief_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(10) unsigned NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `relief_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `relief` -- INSERT INTO `relief` (`id`, `relief_name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Insurance Relief', 1, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (2, 'insurance', 8, '2016-08-10 11:59:14', '2016-08-10 11:59:14'), (3, 'Insurance Relief', 11, '2016-09-19 09:07:33', '2016-09-19 09:07:33'), (4, 'insurance', 12, '2016-10-26 10:05:28', '2016-10-26 10:05:28'); -- -------------------------------------------------------- -- -- Table structure for table `roles` -- CREATE TABLE IF NOT EXISTS `roles` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), UNIQUE KEY `roles_name_unique` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=22 ; -- -- Dumping data for table `roles` -- INSERT INTO `roles` (`id`, `name`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'superadmin', 1, '2016-07-27 06:03:40', '2016-07-27 06:03:40'), (2, 'systemadmin', 2, '2016-07-27 06:31:37', '2016-07-27 06:31:37'), (6, 'systemadmin2', 5, '2016-07-28 04:35:08', '2016-07-28 04:35:08'), (7, 'systemadmin6', 6, '2016-08-01 06:05:12', '2016-08-01 06:05:12'), (8, 'systemadmin7', 0, '2016-08-09 09:19:44', '2016-08-09 09:19:44'), (9, 'systemadmin8', 11, '2016-09-19 04:41:29', '2016-09-19 04:41:29'), (10, 'Accountant', 11, '2016-09-21 13:08:22', '2016-09-21 13:08:22'), (11, 'Human Resource', 11, '2016-09-21 13:08:56', '2016-09-21 13:08:56'), (12, 'systemadmin11', 12, '2016-10-06 06:14:57', '2016-10-06 06:14:57'), (13, 'systemadmin12', 13, '2016-10-10 07:14:10', '2016-10-10 07:14:10'), (14, 'systemadmin13', 14, '2016-10-10 07:59:29', '2016-10-10 07:59:29'), (15, 'systemadmin14', 15, '2016-10-11 08:17:14', '2016-10-11 08:17:14'), (16, 'systemadmin15', 16, '2016-10-12 03:46:36', '2016-10-12 03:46:36'), (17, 'systemadmin16', 17, '2016-10-12 08:25:50', '2016-10-12 08:25:50'), (18, 'systemadmin17', 18, '2016-10-19 07:41:16', '2016-10-19 07:41:16'), (19, 'systemadmin18', 19, '2016-10-25 05:36:34', '2016-10-25 05:36:34'), (20, 'systemadmin19', 23, '2016-10-25 11:03:32', '2016-10-25 11:03:32'), (21, 'systemadmin20', 24, '2016-11-04 06:58:02', '2016-11-04 06:58:02'); -- -------------------------------------------------------- -- -- Table structure for table `savingaccounts` -- CREATE TABLE IF NOT EXISTS `savingaccounts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `member_id` int(10) unsigned NOT NULL, `savingproduct_id` int(10) unsigned NOT NULL, `account_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), UNIQUE KEY `account_number` (`account_number`), KEY `savingaccounts_member_id_foreign` (`member_id`), KEY `x_savingaccounts_fk` (`savingproduct_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=8 ; -- -- Dumping data for table `savingaccounts` -- INSERT INTO `savingaccounts` (`id`, `member_id`, `savingproduct_id`, `account_number`, `organization_id`, `created_at`, `updated_at`) VALUES (6, 6, 4, 'Sav000000KM.1', 12, '2016-10-06 08:43:15', '2016-10-06 08:43:15'), (7, 9, 5, 'WJO000000KM.2', 12, '2016-10-26 06:40:33', '2016-10-26 06:40:33'); -- -------------------------------------------------------- -- -- Table structure for table `savingpostings` -- CREATE TABLE IF NOT EXISTS `savingpostings` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `savingproduct_id` int(10) unsigned NOT NULL, `transaction` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `debit_account` int(11) NOT NULL, `credit_account` int(11) NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `savingpostings_savingproduct_id_foreign` (`savingproduct_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=64 ; -- -- Dumping data for table `savingpostings` -- INSERT INTO `savingpostings` (`id`, `savingproduct_id`, `transaction`, `debit_account`, `credit_account`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 1, 'deposit', 10, 11, 1, '2016-07-27 09:59:57', '2016-07-27 09:59:57'), (2, 1, 'withdrawal', 11, 10, 1, '2016-07-27 09:59:57', '2016-07-27 09:59:57'), (3, 1, 'charge', 10, 12, 1, '2016-07-27 09:59:57', '2016-07-27 09:59:57'), (10, 4, 'deposit', 38, 45, 12, '2016-10-06 08:39:20', '2016-10-06 08:39:20'), (11, 4, 'withdrawal', 45, 38, 12, '2016-10-06 08:39:20', '2016-10-06 08:39:20'), (12, 4, 'charge', 38, 42, 12, '2016-10-06 08:39:20', '2016-10-06 08:39:20'), (13, 5, 'deposit', 38, 45, 12, '2016-10-26 06:33:01', '2016-10-26 06:33:01'), (14, 5, 'withdrawal', 45, 38, 12, '2016-10-26 06:33:02', '2016-10-26 06:33:02'), (15, 5, 'charge', 38, 42, 12, '2016-10-26 06:33:02', '2016-10-26 06:33:02'), (16, 6, 'deposit', 46, 55, 17, '2016-10-28 04:18:01', '2016-10-28 04:18:01'), (17, 6, 'withdrawal', 55, 46, 17, '2016-10-28 04:18:01', '2016-10-28 04:18:01'), (18, 6, 'charge', 46, 51, 17, '2016-10-28 04:18:01', '2016-10-28 04:18:01'), (19, 7, 'deposit', 46, 55, 17, '2016-10-31 09:23:10', '2016-10-31 09:23:10'), (20, 7, 'withdrawal', 55, 46, 17, '2016-10-31 09:23:10', '2016-10-31 09:23:10'), (21, 7, 'charge', 46, 51, 17, '2016-10-31 09:23:10', '2016-10-31 09:23:10'), (22, 7, 'deposit', 38, 55, 17, '2016-10-31 09:24:11', '2016-10-31 09:24:11'), (23, 7, 'withdrawal', 55, 38, 17, '2016-10-31 09:24:11', '2016-10-31 09:24:11'), (24, 7, 'charge', 38, 42, 17, '2016-10-31 09:24:11', '2016-10-31 09:24:11'), (25, 8, 'deposit', 46, 55, 17, '2016-10-31 09:29:45', '2016-10-31 09:29:45'), (26, 8, 'withdrawal', 55, 46, 17, '2016-10-31 09:29:45', '2016-10-31 09:29:45'), (27, 8, 'charge', 46, 51, 17, '2016-10-31 09:29:45', '2016-10-31 09:29:45'), (28, 8, 'deposit', 56, 55, 17, '2016-10-31 09:30:24', '2016-10-31 09:30:24'), (29, 8, 'withdrawal', 55, 56, 17, '2016-10-31 09:30:24', '2016-10-31 09:30:24'), (30, 8, 'charge', 56, 49, 17, '2016-10-31 09:30:24', '2016-10-31 09:30:24'), (34, 4, 'deposit', 38, 29, 12, '2016-10-31 09:40:54', '2016-10-31 09:40:54'), (35, 4, 'withdrawal', 29, 38, 12, '2016-10-31 09:40:54', '2016-10-31 09:40:54'), (36, 4, 'charge', 38, 42, 12, '2016-10-31 09:40:54', '2016-10-31 09:40:54'), (52, 12, 'deposit', 46, 53, 17, '2016-10-31 10:01:25', '2016-10-31 10:01:25'), (53, 12, 'withdrawal', 53, 46, 17, '2016-10-31 10:01:25', '2016-10-31 10:01:25'), (54, 12, 'charge', 46, 49, 17, '2016-10-31 10:01:25', '2016-10-31 10:01:25'), (55, 12, 'deposit', 46, 55, 17, '2016-10-31 10:07:35', '2016-10-31 10:07:35'), (56, 12, 'withdrawal', 55, 46, 17, '2016-10-31 10:07:35', '2016-10-31 10:07:35'), (57, 12, 'charge', 46, 51, 17, '2016-10-31 10:07:35', '2016-10-31 10:07:35'), (58, 12, 'deposit', 46, 55, 17, '2016-10-31 10:12:52', '2016-10-31 10:12:52'), (59, 12, 'withdrawal', 55, 46, 17, '2016-10-31 10:12:52', '2016-10-31 10:12:52'), (60, 12, 'charge', 46, 51, 17, '2016-10-31 10:12:52', '2016-10-31 10:12:52'), (61, 12, 'deposit', 46, 55, 17, '2016-10-31 10:17:31', '2016-10-31 10:17:31'), (62, 12, 'withdrawal', 55, 46, 17, '2016-10-31 10:17:31', '2016-10-31 10:17:31'), (63, 12, 'charge', 46, 51, 17, '2016-10-31 10:17:31', '2016-10-31 10:17:31'); -- -------------------------------------------------------- -- -- Table structure for table `savingproducts` -- CREATE TABLE IF NOT EXISTS `savingproducts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `shortname` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `currency` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `opening_balance` float(10,0) NOT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=13 ; -- -- Dumping data for table `savingproducts` -- INSERT INTO `savingproducts` (`id`, `name`, `shortname`, `currency`, `opening_balance`, `type`, `organization_id`, `created_at`, `updated_at`) VALUES (12, 'Yellow Return', 'YR', 'KES', 25000, 'FOSA', 17, '2016-10-31 10:10:25', '2016-10-31 10:10:25'); -- -------------------------------------------------------- -- -- Table structure for table `savingtransactions` -- CREATE TABLE IF NOT EXISTS `savingtransactions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` date NOT NULL, `savingaccount_id` int(10) unsigned NOT NULL, `amount` float(12,2) NOT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `transacted_by` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `savingtransactions_savingaccount_id_foreign` (`savingaccount_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=6 ; -- -- Dumping data for table `savingtransactions` -- INSERT INTO `savingtransactions` (`id`, `date`, `savingaccount_id`, `amount`, `type`, `description`, `transacted_by`, `organization_id`, `created_at`, `updated_at`) VALUES (1, '2016-09-20', 2, 5000.00, 'credit', 'bla', 'ken', 11, '2016-09-20 11:28:46', '2016-09-20 11:28:46'), (2, '2016-09-20', 2, 1000.00, 'debit', 'bla', 'ken', 11, '2016-09-20 11:29:59', '2016-09-20 11:29:59'), (3, '2016-09-01', 2, 2000.00, 'credit', '', 'ken', 11, '2016-09-20 12:08:52', '2016-09-20 12:08:52'), (4, '2016-10-06', 6, 50000.00, 'credit', '', 'kunu', 12, '2016-10-06 08:45:29', '2016-10-06 08:45:29'), (5, '2016-10-26', 7, 5000.00, 'credit', '', 'josephine', 12, '2016-10-26 06:46:12', '2016-10-26 06:46:12'); -- -------------------------------------------------------- -- -- Table structure for table `shareaccounts` -- CREATE TABLE IF NOT EXISTS `shareaccounts` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `member_id` int(10) unsigned NOT NULL, `account_number` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `opening_date` date NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `shareaccounts_member_id_foreign` (`member_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=13 ; -- -- Dumping data for table `shareaccounts` -- INSERT INTO `shareaccounts` (`id`, `member_id`, `account_number`, `opening_date`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 1, 'SH-L001', '2016-07-27', 1, '2016-07-27 09:38:24', '2016-07-27 09:38:24'), (2, 2, 'SH-L002', '2016-07-27', 1, '2016-07-27 09:39:29', '2016-07-27 09:39:29'), (3, 3, 'SH-001', '2016-08-11', 8, '2016-08-11 09:20:27', '2016-08-11 09:20:27'), (4, 4, 'SH-BM.1', '2016-09-20', 11, '2016-09-20 09:07:24', '2016-09-20 09:07:24'), (5, 5, 'SH-BM.2', '2016-09-20', 11, '2016-09-20 09:08:51', '2016-09-20 09:08:51'), (6, 6, 'SH-KM.1', '2016-10-06', 12, '2016-10-06 07:18:31', '2016-10-06 07:18:31'), (7, 7, 'SH-LTLM.1', '2016-10-25', 17, '2016-10-25 05:58:07', '2016-10-25 05:58:07'), (8, 8, 'SH-MIM.1', '2016-10-25', 23, '2016-10-25 11:48:08', '2016-10-25 11:48:08'), (9, 9, 'SH-KM.2', '2016-10-26', 12, '2016-10-26 06:17:14', '2016-10-26 06:17:14'), (10, 10, 'SH-LTLM.2', '2016-10-26', 17, '2016-10-26 09:23:56', '2016-10-26 09:23:56'), (11, 11, 'SH-LTLM.3', '2016-10-26', 17, '2016-10-26 09:27:00', '2016-10-26 09:27:00'), (12, 12, 'SH-MIM.2', '2016-10-28', 23, '2016-10-28 03:22:28', '2016-10-28 03:22:28'); -- -------------------------------------------------------- -- -- Table structure for table `shares` -- CREATE TABLE IF NOT EXISTS `shares` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `value` float(10,0) NOT NULL DEFAULT '0', `transfer_charge` float(10,0) NOT NULL DEFAULT '0', `charged_on` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'donor', `organization_id` int(11) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `shares` -- INSERT INTO `shares` (`id`, `value`, `transfer_charge`, `charged_on`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 20, 0, 'donor', NULL, '2016-07-27 06:03:38', '2016-10-26 06:34:39'); -- -------------------------------------------------------- -- -- Table structure for table `sharetransactions` -- CREATE TABLE IF NOT EXISTS `sharetransactions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `date` date NOT NULL, `shareaccount_id` int(10) unsigned NOT NULL, `trans_no` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `amount` float(10,0) NOT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `sharetransactions_shareaccount_id_foreign` (`shareaccount_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=5 ; -- -- Dumping data for table `sharetransactions` -- INSERT INTO `sharetransactions` (`id`, `date`, `shareaccount_id`, `trans_no`, `type`, `description`, `amount`, `organization_id`, `created_at`, `updated_at`) VALUES (1, '0000-00-00', 1, NULL, 'credit', '', 20000, 1, '2016-07-27 11:07:36', '2016-07-27 11:07:36'), (2, '2016-09-01', 4, NULL, 'credit', 'bla', 2500, 11, '2016-09-20 10:56:50', '2016-09-20 10:56:50'), (3, '2016-10-06', 6, NULL, 'credit', '', 500, 12, '2016-10-06 08:55:46', '2016-10-06 08:55:46'), (4, '2016-10-26', 9, NULL, 'credit', '', 10000, 12, '2016-10-26 06:53:44', '2016-10-26 06:53:44'); -- -------------------------------------------------------- -- -- Table structure for table `social_security` -- CREATE TABLE IF NOT EXISTS `social_security` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `tier` varchar(30) COLLATE utf8_unicode_ci NOT NULL, `income_from` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `income_to` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `ss_amount_employee` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `ss_amount_employer` varchar(20) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `organization_id` int(10) unsigned DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `social_security_organization_id_foreign` (`organization_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; -- -- Dumping data for table `social_security` -- INSERT INTO `social_security` (`id`, `tier`, `income_from`, `income_to`, `ss_amount_employee`, `ss_amount_employer`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'Tier I', '0.00', '0.00', '0.00', '0.00', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'), (2, 'Tier I', '1.00', '99000000.00', '200.00', '200.00', NULL, '2016-07-27 06:03:37', '2016-07-27 06:03:37'); -- -------------------------------------------------------- -- -- Table structure for table `stocks` -- CREATE TABLE IF NOT EXISTS `stocks` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `item_id` int(10) unsigned NOT NULL, `location_id` int(10) unsigned NOT NULL, `quantity_in` int(11) DEFAULT NULL, `quantity_out` int(11) DEFAULT NULL, `date` date DEFAULT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `stocks_item_id_foreign` (`item_id`), KEY `stocks_location_id_foreign` (`location_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=33 ; -- -- Dumping data for table `stocks` -- INSERT INTO `stocks` (`id`, `item_id`, `location_id`, `quantity_in`, `quantity_out`, `date`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 1, 1, 10, NULL, '0000-00-00', 1, '2016-07-27 08:00:39', '2016-07-27 08:00:39'), (2, 2, 1, 20, NULL, '0000-00-00', 1, '2016-07-27 08:00:58', '2016-07-27 08:00:58'), (3, 1, 1, NULL, 5, '2016-07-27', 1, '2016-07-27 08:03:03', '2016-07-27 08:03:03'), (4, 2, 1, NULL, 5, '2016-07-27', 1, '2016-07-27 08:03:03', '2016-07-27 08:03:03'), (5, 4, 1, NULL, 1, '2016-08-09', 1, '2016-08-09 09:11:20', '2016-08-09 09:11:20'), (6, 6, 2, NULL, 2, '2016-08-09', 8, '2016-08-09 10:07:34', '2016-08-09 10:07:34'), (7, 6, 2, NULL, 1, '2016-08-10', 8, '2016-08-10 08:39:11', '2016-08-10 08:39:11'), (8, 7, 2, NULL, 2, '2016-08-10', 8, '2016-08-10 08:45:37', '2016-08-10 08:45:37'), (9, 8, 2, NULL, 1, '2016-08-11', 8, '2016-08-11 06:27:47', '2016-08-11 06:27:47'), (10, 9, 2, NULL, 1, '2016-08-11', 8, '2016-08-11 06:27:47', '2016-08-11 06:27:47'), (11, 6, 2, 5, NULL, '2016-08-11', 8, '2016-08-11 06:50:07', '2016-08-11 06:50:07'), (12, 7, 2, 6, NULL, '2016-08-11', 8, '2016-08-11 06:50:29', '2016-08-11 06:50:29'), (13, 8, 2, 5, NULL, '2016-08-11', 8, '2016-08-11 06:50:52', '2016-08-11 06:50:52'), (14, 9, 2, 1, NULL, '2016-08-11', 8, '2016-08-11 06:51:41', '2016-08-11 06:51:41'), (15, 9, 2, 4, NULL, '2016-08-11', 8, '2016-08-11 06:52:07', '2016-08-11 06:52:07'), (16, 11, 2, NULL, 1, '2016-08-15', 8, '2016-08-15 06:45:44', '2016-08-15 06:45:44'), (17, 10, 2, NULL, 2, '2016-08-15', 8, '2016-08-15 06:45:44', '2016-08-15 06:45:44'), (18, 10, 2, 5, NULL, '2016-08-15', 8, '2016-08-15 06:48:11', '2016-08-15 06:48:11'), (19, 12, 3, 100, NULL, '2016-09-20', 11, '2016-09-20 06:14:12', '2016-09-20 06:14:12'), (20, 12, 3, NULL, 10, '2016-09-20', 11, '2016-09-20 06:24:06', '2016-09-20 06:24:06'), (21, 12, 3, NULL, 5, '2016-09-21', 11, '2016-09-21 08:56:04', '2016-09-21 08:56:04'), (22, 13, 3, NULL, 5, '2016-09-21', 11, '2016-09-21 08:56:04', '2016-09-21 08:56:04'), (23, 12, 3, NULL, 5, '2016-09-21', 11, '2016-09-21 09:15:02', '2016-09-21 09:15:02'), (24, 13, 3, NULL, 5, '2016-09-21', 11, '2016-09-21 09:15:03', '2016-09-21 09:15:03'), (25, 12, 3, NULL, 5, '2016-09-23', 11, '2016-09-23 03:57:40', '2016-09-23 03:57:40'), (26, 15, 4, 20, NULL, '2016-10-06', 12, '2016-10-06 06:46:31', '2016-10-06 06:46:31'), (27, 15, 4, NULL, 4, '2016-10-06', 12, '2016-10-06 06:48:17', '2016-10-06 06:48:17'), (28, 19, 6, 15, NULL, '2016-10-26', 16, '2016-10-26 08:31:15', '2016-10-26 08:31:15'), (29, 17, 5, NULL, 3, '2016-10-26', 17, '2016-10-26 08:36:24', '2016-10-26 08:36:24'), (30, 18, 5, NULL, 2, '2016-10-26', 17, '2016-10-26 08:36:25', '2016-10-26 08:36:25'), (31, 17, 5, 50, NULL, '2016-10-26', 17, '2016-10-26 09:05:41', '2016-10-26 09:05:41'), (32, 18, 5, 30, NULL, '2016-10-26', 17, '2016-10-26 09:05:59', '2016-10-26 09:05:59'); -- -------------------------------------------------------- -- -- Table structure for table `taxes` -- CREATE TABLE IF NOT EXISTS `taxes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `rate` double(15,2) NOT NULL DEFAULT '0.00', `organization_id` int(11) DEFAULT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=9 ; -- -- Dumping data for table `taxes` -- INSERT INTO `taxes` (`id`, `name`, `rate`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'VAT', 16.00, NULL, '2016-07-27 07:58:03', '2016-07-27 07:58:03'), (2, 'VAT', 16.00, 1, '2016-08-09 09:09:04', '2016-08-09 09:09:04'), (3, 'VAT', 16.00, 8, '2016-08-09 10:06:48', '2016-08-09 10:06:48'), (4, 'VAT', 16.00, 11, '2016-09-20 06:14:37', '2016-09-20 06:14:37'), (5, 'Shipping ', 5.00, 11, '2016-09-20 06:14:53', '2016-09-20 06:14:53'), (6, 'VAT', 16.00, 12, '2016-10-06 06:30:05', '2016-10-06 06:30:05'), (7, 'vat', 16.00, 13, '2016-10-10 07:17:02', '2016-10-10 07:17:02'), (8, 'VAT', 16.00, 17, '2016-10-26 08:39:57', '2016-10-26 08:39:57'); -- -------------------------------------------------------- -- -- Table structure for table `tax_orders` -- CREATE TABLE IF NOT EXISTS `tax_orders` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `tax_id` int(11) DEFAULT NULL, `order_number` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `amount` double(15,2) DEFAULT NULL, `organization_id` int(11) NOT NULL DEFAULT '1', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=24 ; -- -- Dumping data for table `tax_orders` -- INSERT INTO `tax_orders` (`id`, `tax_id`, `order_number`, `amount`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 1, '2016/07/27/0001', 28560.00, 1, '2016-07-27 08:03:03', '2016-07-27 08:03:03'), (2, 1, '2016/07/27/0003', 56000.00, 1, '2016-07-27 08:30:11', '2016-07-27 08:30:11'), (3, 2, '2016/08/09/0004', 5600.00, 1, '2016-08-09 09:11:20', '2016-08-09 09:11:20'), (4, 2, '2016/08/09/0005', 11200.00, 1, '2016-08-09 09:13:10', '2016-08-09 09:13:10'), (5, 2, '2016/08/09/0006', 28000.00, 1, '2016-08-09 09:14:00', '2016-08-09 09:14:00'), (6, 3, '2016/08/09/0007', 11200.00, 1, '2016-08-09 10:07:34', '2016-08-09 10:07:34'), (7, 3, '2016/08/09/0009', 5600.00, 1, '2016-08-09 10:11:55', '2016-08-09 10:11:55'), (8, 3, '2016/08/11/0014', 41440.00, 1, '2016-08-11 06:27:47', '2016-08-11 06:27:47'), (9, 3, '2016/08/11/0016', 4320.00, 1, '2016-08-11 06:35:25', '2016-08-11 06:35:25'), (10, 3, '2016/08/15/0018', 18240.00, 1, '2016-08-15 06:45:45', '2016-08-15 06:45:45'), (11, 3, '2016/08/15/0019', 21600.00, 1, '2016-08-15 06:49:59', '2016-08-15 06:49:59'), (12, 4, '2016/09/20/0026', 111440.00, 1, '2016-09-20 06:24:06', '2016-09-20 06:24:06'), (13, 4, '2016/09/20/0029', 111440.00, 1, '2016-09-20 06:36:15', '2016-09-20 06:36:15'), (14, 4, '2016/09/21/0031', 56520.00, 1, '2016-09-21 08:56:04', '2016-09-21 08:56:04'), (15, 5, '2016/09/21/0031', 17662.50, 1, '2016-09-21 08:56:04', '2016-09-21 08:56:04'), (16, 4, '2016/09/21/0035', 56520.00, 1, '2016-09-21 09:15:03', '2016-09-21 09:15:03'), (17, 5, '2016/09/21/0035', 17662.50, 1, '2016-09-21 09:15:03', '2016-09-21 09:15:03'), (18, 4, '2016/09/22/0037', 32816.00, 1, '2016-09-22 06:38:51', '2016-09-22 06:38:51'), (19, 5, '2016/09/22/0037', 10255.00, 1, '2016-09-22 06:38:51', '2016-09-22 06:38:51'), (20, 4, '2016/09/23/0040', 55520.00, 1, '2016-09-23 03:57:40', '2016-09-23 03:57:40'), (21, 6, '2016/10/06/0043', 288.00, 1, '2016-10-06 06:48:17', '2016-10-06 06:48:17'), (22, 6, '2016/10/06/0044', 720.00, 1, '2016-10-06 06:50:23', '2016-10-06 06:50:23'), (23, 8, '2016/10/26/0047', 81600.00, 1, '2016-10-26 08:40:49', '2016-10-26 08:40:49'); -- -------------------------------------------------------- -- -- Table structure for table `tests` -- CREATE TABLE IF NOT EXISTS `tests` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `description` text COLLATE utf8_unicode_ci, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `transact` -- CREATE TABLE IF NOT EXISTS `transact` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `account_id` int(10) unsigned NOT NULL, `basic_pay` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `earning_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `taxable_income` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `paye` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `nssf_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `vol_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `nhif_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `other_deductions` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `total_deductions` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `net` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `financial_month_year` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `transact_employee_id_foreign` (`employee_id`), KEY `transact_account_id_foreign` (`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=7 ; -- -- Dumping data for table `transact` -- INSERT INTO `transact` (`id`, `employee_id`, `account_id`, `basic_pay`, `earning_amount`, `taxable_income`, `paye`, `nssf_amount`, `vol_amount`, `nhif_amount`, `other_deductions`, `total_deductions`, `net`, `financial_month_year`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'B.1', 18, '50388.71', '20209.94', '70598.65', '15051.7', '200', '0.00', '1400', '3000', '19651.7', '50946.95', '9-2016', 11, '2016-09-19 06:19:01', '2016-09-19 06:19:01'), (2, 'B.2', 18, '50388.71', '5000', '55388.71', '7988.71', '200', '0.00', '1200', '0', '9388.71', '48000', '9-2016', 11, '2016-09-19 06:19:01', '2016-09-19 06:19:01'), (3, '003', 1, '50000.00', '0', '50000', '8872.1', '200', '0.00', '1200', '0', '10272.1', '39727.9', '12-2016', 1, '2016-10-31 08:48:26', '2016-10-31 08:48:26'), (4, '4', 1, '70000.00', '0', '70000', '14872.1', '200', '0.00', '1400', '0', '16472.1', '53527.9', '12-2016', 1, '2016-10-31 08:48:26', '2016-10-31 08:48:26'), (5, 'K.1', 37, '40000.00', '0', '40000', '4372.1', '200', '0.00', '1000', '0', '5572.1', '34427.9', '10-2016', 12, '2016-10-31 08:50:52', '2016-10-31 08:50:52'), (6, 'K.2', 37, '100000.00', '0', '100000', '23872.1', '200', '0.00', '1700', '0', '25772.1', '74227.9', '10-2016', 12, '2016-10-31 08:50:52', '2016-10-31 08:50:52'); -- -------------------------------------------------------- -- -- Table structure for table `transaction` -- CREATE TABLE IF NOT EXISTS `transaction` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `pay_id` varchar(255) NOT NULL, `transaction_number` varchar(255) NOT NULL, `transaction_amount` decimal(15,2) NOT NULL, `transaction_date` date NOT NULL, `transaction_status` int(1) NOT NULL DEFAULT '0', `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ; -- -- Dumping data for table `transaction` -- INSERT INTO `transaction` (`id`, `pay_id`, `transaction_number`, `transaction_amount`, `transaction_date`, `transaction_status`, `created_at`, `updated_at`) VALUES (1, '3', 'KHD123RD6', '5000.00', '2016-08-30', 0, '2016-08-30 04:08:42', '2016-08-30 04:08:42'), (2, '4', 'KTDFIUR456UT', '460000.00', '2016-08-30', 0, '2016-08-30 05:08:24', '2016-08-30 05:08:24'), (3, '5', 'KHD4567DX', '35000.00', '2016-08-30', 0, '2016-08-30 06:08:02', '2016-08-30 06:08:02'), (4, '6', 'Brecht ', '35000.00', '2016-08-30', 0, '2016-08-30 16:08:35', '2016-08-30 16:08:35'), (5, '7', 'hdhdhevehd', '460000.00', '2016-09-01', 0, '2016-09-01 13:09:10', '2016-09-01 13:09:10'); -- -------------------------------------------------------- -- -- Table structure for table `transact_advances` -- CREATE TABLE IF NOT EXISTS `transact_advances` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `account_id` int(10) unsigned NOT NULL DEFAULT '0', `amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `financial_month_year` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `transact_advances_employee_id_foreign` (`employee_id`), KEY `transact_account_id_foreign` (`account_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `transact_advances` -- INSERT INTO `transact_advances` (`id`, `employee_id`, `account_id`, `amount`, `financial_month_year`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'B.1', 17, '3000.00', '9-2016', 11, '2016-09-19 06:11:05', '2016-09-19 06:11:05'); -- -------------------------------------------------------- -- -- Table structure for table `transact_allowances` -- CREATE TABLE IF NOT EXISTS `transact_allowances` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `employee_allowance_id` int(10) unsigned NOT NULL, `allowance_id` int(10) unsigned NOT NULL DEFAULT '0', `allowance_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `allowance_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `financial_month_year` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `transact_allowances_employee_id_foreign` (`employee_id`), KEY `transact_allowances_allowance_id_foreign` (`allowance_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `transact_allowances` -- INSERT INTO `transact_allowances` (`id`, `employee_id`, `employee_allowance_id`, `allowance_id`, `allowance_name`, `allowance_amount`, `financial_month_year`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 9, 4, 1, 'House Allowance', '5000.00', '9-2016', 11, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `transact_deductions` -- CREATE TABLE IF NOT EXISTS `transact_deductions` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `employee_deduction_id` int(10) unsigned NOT NULL, `deduction_id` int(10) unsigned NOT NULL, `deduction_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `deduction_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `financial_month_year` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `transact_deductions_employee_id_foreign` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `transact_deductions` -- INSERT INTO `transact_deductions` (`id`, `employee_id`, `employee_deduction_id`, `deduction_id`, `deduction_name`, `deduction_amount`, `financial_month_year`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 8, 2, 1, 'Salary Advance', '3000.00', '9-2016', 11, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `transact_earnings` -- CREATE TABLE IF NOT EXISTS `transact_earnings` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `earning_id` int(10) unsigned NOT NULL, `earningsetting_id` int(10) unsigned NOT NULL, `earning_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `earning_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `financial_month_year` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `transact_earnings_employee_id_foreign` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `transact_earnings` -- INSERT INTO `transact_earnings` (`id`, `employee_id`, `earning_id`, `earningsetting_id`, `earning_name`, `earning_amount`, `financial_month_year`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 8, 6, 0, 'Bonus', '20000.00', '9-2016', 11, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `transact_nontaxables` -- CREATE TABLE IF NOT EXISTS `transact_nontaxables` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `employee_nontaxable_id` int(10) unsigned NOT NULL, `nontaxable_id` int(10) unsigned NOT NULL, `nontaxable_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `nontaxable_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `financial_month_year` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `transact_nontaxables_employee_id_foreign` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `transact_nontaxables` -- INSERT INTO `transact_nontaxables` (`id`, `employee_id`, `employee_nontaxable_id`, `nontaxable_id`, `nontaxable_name`, `nontaxable_amount`, `financial_month_year`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 9, 2, 1, 'Refunds', '2000.00', '9-2016', 11, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `transact_overtimes` -- CREATE TABLE IF NOT EXISTS `transact_overtimes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `overtime_id` int(10) unsigned NOT NULL, `overtime_type` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `overtime_period` float(15,2) NOT NULL, `overtime_amount` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT '0.00', `financial_month_year` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `transact_overtimes_employee_id_foreign` (`employee_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2 ; -- -- Dumping data for table `transact_overtimes` -- INSERT INTO `transact_overtimes` (`id`, `employee_id`, `overtime_id`, `overtime_type`, `overtime_period`, `overtime_amount`, `financial_month_year`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 8, 3, 'Hourly', 3.00, '69.98', '9-2016', 11, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `transact_reliefs` -- CREATE TABLE IF NOT EXISTS `transact_reliefs` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `employee_id` int(10) unsigned NOT NULL, `employee_relief_id` int(10) unsigned NOT NULL DEFAULT '0', `relief_id` int(10) unsigned NOT NULL DEFAULT '0', `relief_name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `relief_amount` double(15,2) NOT NULL DEFAULT '0.00', `financial_month_year` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), KEY `transact_reliefs_employee_id_foreign` (`employee_id`), KEY `transact_reliefs_employee_relief_id_foreign` (`employee_relief_id`), KEY `transact_reliefs_relief_id_foreign` (`relief_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=3 ; -- -- Dumping data for table `transact_reliefs` -- INSERT INTO `transact_reliefs` (`id`, `employee_id`, `employee_relief_id`, `relief_id`, `relief_name`, `relief_amount`, `financial_month_year`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 9, 2, 3, 'Insurance Relief', 2500.00, '9-2016', 11, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (2, 10, 3, 4, 'insurance', 1500.00, '10-2016', 12, '0000-00-00 00:00:00', '0000-00-00 00:00:00'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE IF NOT EXISTS `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `username` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `password` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `confirmation_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `remember_token` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `confirmed` tinyint(1) NOT NULL DEFAULT '1', `token` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL, `user_type` varchar(20) COLLATE utf8_unicode_ci DEFAULT 'admin', `is_active` tinyint(1) DEFAULT NULL, `branch_id` int(10) unsigned DEFAULT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`), UNIQUE KEY `username` (`username`), KEY `branch_id` (`branch_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=36 ; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `username`, `email`, `password`, `confirmation_code`, `remember_token`, `confirmed`, `token`, `user_type`, `is_active`, `branch_id`, `organization_id`, `created_at`, `updated_at`) VALUES (1, 'superadmin', '<EMAIL>', <PASSWORD>', '<PASSWORD>', 'q<PASSWORD>6KeqeAJ<PASSWORD>NgSgmAdvSag7Ni82Sp7m85qr<PASSWORD>', 1, NULL, 'admin', NULL, NULL, 1, '2016-07-27 06:03:42', '2016-11-02 06:20:48'), (6, 'kenkode', '<EMAIL>', <PASSWORD>', '<PASSWORD>', NULL, 1, NULL, 'admin', NULL, NULL, 5, '2016-07-28 04:35:08', '2016-07-28 04:35:08'), (7, 'lagat', '<EMAIL>', <PASSWORD>', '69afd017121218d21d17fa9f7d70b0d6', NULL, 1, NULL, 'admin', NULL, NULL, 6, '2016-08-01 06:05:12', '2016-08-01 06:05:12'), (8, 'josephine', '<EMAIL>', <PASSWORD>', '8300a1e3414ca5bc48843b5e4fbfc52d', 'mKKOrj15VFpodL5osgaYoG6Cdsow1qtGRmi5zEOuyyEZEjRAFSFGlZAh1z6k', 1, NULL, 'admin', NULL, NULL, 8, '2016-08-09 09:19:43', '2016-08-18 10:03:21'), (9, '001', '<EMAIL>', <PASSWORD>', '4cad4f60b7adadd8e1884a0ec73dacd0', NULL, 1, NULL, 'member', NULL, NULL, 8, '2016-08-11 09:08:39', '2016-08-11 09:08:39'), (11, 'nehigna', '<EMAIL>', <PASSWORD>.', '0cd594da0fee059e01c74fe8e48bdb18', 'nZdrOw5vtsYdh9lIAT7aYlgaYxAPXQAendXdN0RrtzarM8rO1yTXPWWPs1WP', 1, NULL, 'Customer', NULL, NULL, 0, '2016-08-30 05:16:32', '2016-09-01 08:13:14'), (13, 'chrispuscheruiyot', '<EMAIL>', '$2y$10$15PxL6CbLt.kFZ3h2hkRpOLFDqU2q2hq0yfyw/WC0PqNQ/FjQANs.', '1a56301ea23612579aeab0176d25121a', NULL, 1, NULL, 'Customer', NULL, NULL, 0, '2016-09-02 02:57:54', '2016-09-02 02:57:54'), (14, 'jamharic', '<EMAIL>', <PASSWORD>', '533fdf26bc34d0a15c209d9185735d8f', 'bk0HcQXcrxyX<PASSWORD>', 1, NULL, 'admin', NULL, NULL, 11, '2016-09-19 04:41:29', '2016-10-17 11:05:02'), (17, 'B.1', '<EMAIL>', '$2y$10$b/DMxoYzom1K8dHRYF0l4emPQHMMaaR1joHI2oV8bgCJ2E9uqKVWG', '0810b0889cd50391942d26e594b72bfc', NULL, 1, NULL, 'employee', NULL, NULL, 11, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (18, 'BM.1', '<EMAIL>', <PASSWORD>', '68c6d6bd01b15d6e034ba2e9e18256c2', NULL, 1, NULL, 'member', NULL, NULL, 11, '2016-09-21 03:09:34', '2016-09-21 03:09:34'), (19, 'BM.2', '<EMAIL>', <PASSWORD>0$Toe0q6hIBq8CYmSbTyb8B.VzVDOCX87WA6Qt7dzs8TtlRSeDtW9c.', '768ad93edf4cd14ae41de54c26290786', NULL, 1, NULL, 'member', NULL, NULL, 11, '2016-09-21 03:09:21', '2016-09-21 03:09:21'), (22, 'skeww', '<EMAIL>', <PASSWORD>', '89259a3b7ca3be958b412dad1dc27812', NULL, 1, NULL, 'admin', NULL, NULL, 11, '2016-09-22 05:56:56', '2016-09-22 05:56:56'), (23, 'ken', '<EMAIL>', <PASSWORD>', '954190bf292c6eba4de1ca73e3adcb61', 'KW4MazZl96yTJehrfkGCpnJAh4378sU21qSqiXklM7hnA6v9FbztgFcTZNBF', 1, NULL, 'admin', NULL, NULL, 12, '2016-10-06 06:14:56', '2016-11-01 10:18:45'), (24, 'evans', '<EMAIL>', '$2y$10$Nxj9G9UN9R1/O8Houe27S.DdCLSgcdBT8tpk4bqc84/RwSVNlfzN2', '29db4231c4d2bf5ebabde9e069ef9715', NULL, 1, NULL, 'admin', NULL, NULL, 13, '2016-10-10 07:14:09', '2016-10-10 07:14:09'), (25, 'chumo', '<EMAIL>', <PASSWORD>', '0d0cce63df9f424cf4356cbdc7d155ca', '5BOF3ZFz34HyhhkeKJPsqzkntdlc37wpmfyAMoX9NZnwn90aw92wNjtQN16M', 1, NULL, 'admin', NULL, NULL, 14, '2016-10-10 07:59:29', '2016-10-25 09:17:24'), (26, 'Kov', '<EMAIL>', <PASSWORD>/.', 'b80f2f831368c1df32118aeaffbb00cc', NULL, 1, NULL, 'admin', NULL, NULL, 15, '2016-10-11 08:17:14', '2016-10-11 08:17:14'), (27, 'steviemwa', '<EMAIL>', <PASSWORD>', '73e837b45e647e702ab63235101c3fd7', 'o73iaSFEIaoBWz4GuGGqpprPleg0jNWgwJqgmguwQaay11dSH<PASSWORD>ietp', 1, 'bed955a60acd039261c5e61ab715bec9', 'admin', NULL, NULL, 16, '2016-10-12 03:46:36', '2016-11-04 09:11:45'), (28, 'cris', '<EMAIL>', '$2y$10$wyYiec/67zhaNc5mcok3euanFdIQ67lS7Ho64JeVfHpudbiK5mhuu', '916ee11e350f32fdc71490b5fba8bbec', 'rR2U0nuFnJONfPuqmZglUMxGkLLcwZNp7pmjfRoRBoMtLFEzSAwAZLsSCAy8', 1, NULL, 'admin', NULL, NULL, 17, '2016-10-12 08:25:50', '2016-10-28 09:31:59'), (30, 'K.1', '<EMAIL>', <PASSWORD>', '87ddc39ea1dddedb27d7a68e52e58889', NULL, 1, NULL, 'employee', NULL, NULL, 12, '0000-00-00 00:00:00', '0000-00-00 00:00:00'), (32, 'Lixnet', '<EMAIL>', <PASSWORD>', '0a2ceef46ec2475a153caea81c066a7f', 'Rx0FAMVeDVnoThcj7o02hMWjVPwzyfLezoz6Z7W0h73ybtKxpoI3r08OerOG', 1, NULL, 'admin', NULL, NULL, 18, '2016-10-19 07:41:15', '2016-10-19 07:54:22'), (33, 'test', '<EMAIL>.cf', <PASSWORD>', '5f90f6323a3569bcf2d3def9a54b3186', NULL, 1, NULL, 'admin', NULL, NULL, 19, '2016-10-25 05:36:33', '2016-10-25 05:36:33'), (34, 'mazawalifu', '<EMAIL>', <PASSWORD>', 'b1896b196130b357bce560ce13da01d1', 'm0BU1mQOPXC0cnNEM2Iumq86zLquLjiQyelzD910flIotnfJX7ZoGNp7lpk5', 1, NULL, 'admin', NULL, NULL, 23, '2016-10-25 11:03:32', '2016-10-28 04:21:49'), (35, 'HEBRON', '<EMAIL>', <PASSWORD>', 'bdbca9e9c601f6b776d314526d3e2122', 'sJePEIQ3TMHjHjPCKSzlWwTqyL6HKCe5x2xv5vbzHsDaDLgghtWGOcU8rlif', 1, '8ac88ca1d4481c1640751afb923ed7e3', 'admin', NULL, NULL, 24, '2016-11-04 06:58:02', '2016-11-04 08:47:47'); -- -------------------------------------------------------- -- -- Table structure for table `user_role` -- CREATE TABLE IF NOT EXISTS `user_role` ( `id` int(11) NOT NULL, `user_id` int(10) unsigned DEFAULT NULL, `role_id` int(10) unsigned DEFAULT NULL, PRIMARY KEY (`id`), KEY `user_id` (`user_id`), KEY `x_user_role_fk1` (`role_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `vendors` -- CREATE TABLE IF NOT EXISTS `vendors` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `description` text COLLATE utf8_unicode_ci, `status` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `organization_id` int(11) NOT NULL, `created_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ; -- -- Constraints for dumped tables -- -- -- Constraints for table `allowances` -- ALTER TABLE `allowances` ADD CONSTRAINT `allowances_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `appraisalcategories` -- ALTER TABLE `appraisalcategories` ADD CONSTRAINT `appraisalcategories_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `appraisalquestions` -- ALTER TABLE `appraisalquestions` ADD CONSTRAINT `appraisalquestions_appraisalcategory_id_foreign` FOREIGN KEY (`appraisalcategory_id`) REFERENCES `appraisalcategories` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `appraisals` -- ALTER TABLE `appraisals` ADD CONSTRAINT `appraisals_appraisalquestion_id_foreign` FOREIGN KEY (`appraisalquestion_id`) REFERENCES `appraisalquestions` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `appraisals_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `appraisals_examiner_foreign` FOREIGN KEY (`examiner`) REFERENCES `users` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `assigned_roles` -- ALTER TABLE `assigned_roles` ADD CONSTRAINT `assigned_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`), ADD CONSTRAINT `assigned_roles_user_id_foreign` FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE ON UPDATE CASCADE; -- -- Constraints for table `banks` -- ALTER TABLE `banks` ADD CONSTRAINT `banks_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `bank_branches` -- ALTER TABLE `bank_branches` ADD CONSTRAINT `fk_bank_id` FOREIGN KEY (`bank_id`) REFERENCES `banks` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `benefitsettings` -- ALTER TABLE `benefitsettings` ADD CONSTRAINT `benefitsettings_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `budgets` -- ALTER TABLE `budgets` ADD CONSTRAINT `budgets_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `charge_loanproduct` -- ALTER TABLE `charge_loanproduct` ADD CONSTRAINT `loancharges_charge_id_foreign` FOREIGN KEY (`charge_id`) REFERENCES `charges` (`id`), ADD CONSTRAINT `loancharges_loanproduct_id_foreign` FOREIGN KEY (`loanproduct_id`) REFERENCES `loanproducts` (`id`); -- -- Constraints for table `charge_savingproduct` -- ALTER TABLE `charge_savingproduct` ADD CONSTRAINT `savingcharges_charge_id_foreign` FOREIGN KEY (`charge_id`) REFERENCES `charges` (`id`), ADD CONSTRAINT `savingcharges_savingproduct_id_foreign` FOREIGN KEY (`savingproduct_id`) REFERENCES `savingproducts` (`id`); -- -- Constraints for table `citizenships` -- ALTER TABLE `citizenships` ADD CONSTRAINT `citizenships_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `deductions` -- ALTER TABLE `deductions` ADD CONSTRAINT `deductions_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `departments` -- ALTER TABLE `departments` ADD CONSTRAINT `departments_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `documents` -- ALTER TABLE `documents` ADD CONSTRAINT `documents_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `earnings` -- ALTER TABLE `earnings` ADD CONSTRAINT `earnings_earning_id_foreign` FOREIGN KEY (`earning_id`) REFERENCES `earningsettings` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `earnings_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `earningsettings` -- ALTER TABLE `earningsettings` ADD CONSTRAINT `earningsettings_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `education` -- ALTER TABLE `education` ADD CONSTRAINT `education_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `emergencycontacts` -- ALTER TABLE `emergencycontacts` ADD CONSTRAINT `emergencycontacts_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `employee` -- ALTER TABLE `employee` ADD CONSTRAINT `employee_bank_id_foreign` FOREIGN KEY (`bank_id`) REFERENCES `banks` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `employee_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `employee_citizenship_id_foreign` FOREIGN KEY (`citizenship_id`) REFERENCES `citizenships` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `employee_department_id_foreign` FOREIGN KEY (`department_id`) REFERENCES `departments` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `employee_education_type_id_foreign` FOREIGN KEY (`education_type_id`) REFERENCES `education` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `employee_job_group_id_foreign` FOREIGN KEY (`job_group_id`) REFERENCES `job_group` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `employee_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `employee_type_id_foreign` FOREIGN KEY (`type_id`) REFERENCES `employee_type` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `employeebenefits` -- ALTER TABLE `employeebenefits` ADD CONSTRAINT `employeebenefits_benefit_id_foreign` FOREIGN KEY (`benefit_id`) REFERENCES `benefitsettings` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `employeebenefits_jobgroup_id_foreign` FOREIGN KEY (`jobgroup_id`) REFERENCES `job_group` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `employeenontaxables` -- ALTER TABLE `employeenontaxables` ADD CONSTRAINT `employeenontaxables_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `employeenontaxables_nontaxable_id_foreign` FOREIGN KEY (`nontaxable_id`) REFERENCES `nontaxables` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `employee_allowances` -- ALTER TABLE `employee_allowances` ADD CONSTRAINT `employee_allowances_allowance_id_foreign` FOREIGN KEY (`allowance_id`) REFERENCES `allowances` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `employee_allowances_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `employee_deductions` -- ALTER TABLE `employee_deductions` ADD CONSTRAINT `employee_deductions_deduction_id_foreign` FOREIGN KEY (`deduction_id`) REFERENCES `deductions` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `employee_deductions_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `employee_relief` -- ALTER TABLE `employee_relief` ADD CONSTRAINT `employee_relief_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`id`) ON UPDATE CASCADE, ADD CONSTRAINT `employee_relief_relief_id_foreign` FOREIGN KEY (`relief_id`) REFERENCES `relief` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `employee_type` -- ALTER TABLE `employee_type` ADD CONSTRAINT `employee_type_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `erporderitems` -- ALTER TABLE `erporderitems` ADD CONSTRAINT `erporderitems_erporder_id_foreign` FOREIGN KEY (`erporder_id`) REFERENCES `erporders` (`id`), ADD CONSTRAINT `erporderitems_item_id_foreign` FOREIGN KEY (`item_id`) REFERENCES `items` (`id`); -- -- Constraints for table `erporders` -- ALTER TABLE `erporders` ADD CONSTRAINT `erporders_client_id_foreign` FOREIGN KEY (`client_id`) REFERENCES `clients` (`id`); -- -- Constraints for table `expensesettings` -- ALTER TABLE `expensesettings` ADD CONSTRAINT `expensesettings_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `holidays` -- ALTER TABLE `holidays` ADD CONSTRAINT `holidays_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`); -- -- Constraints for table `hospital_insurance` -- ALTER TABLE `hospital_insurance` ADD CONSTRAINT `hospital_insurance_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `job_group` -- ALTER TABLE `job_group` ADD CONSTRAINT `job_group_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`) ON UPDATE CASCADE; -- -- Constraints for table `journals` -- ALTER TABLE `journals` ADD CONSTRAINT `journals_account_id_foreign` FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`); -- -- Constraints for table `kins` -- ALTER TABLE `kins` ADD CONSTRAINT `kins_member_id_foreign` FOREIGN KEY (`member_id`) REFERENCES `members` (`id`); -- -- Constraints for table `leaveapplications` -- ALTER TABLE `leaveapplications` ADD CONSTRAINT `leaveapplications_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`id`), ADD CONSTRAINT `leaveapplications_leavetype_id_foreign` FOREIGN KEY (`leavetype_id`) REFERENCES `leavetypes` (`id`), ADD CONSTRAINT `leaveapplications_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`); -- -- Constraints for table `leavetypes` -- ALTER TABLE `leavetypes` ADD CONSTRAINT `leavetypes_organization_id_foreign` FOREIGN KEY (`organization_id`) REFERENCES `organizations` (`id`); -- -- Constraints for table `loanaccounts` -- ALTER TABLE `loanaccounts` ADD CONSTRAINT `loanaccounts_loanproduct_id_foreign` FOREIGN KEY (`loanproduct_id`) REFERENCES `loanproducts` (`id`), ADD CONSTRAINT `loanaccounts_member_id_foreign` FOREIGN KEY (`member_id`) REFERENCES `members` (`id`); -- -- Constraints for table `loanguarantors` -- ALTER TABLE `loanguarantors` ADD CONSTRAINT `loanguarantors_loanaccount_id_foreign` FOREIGN KEY (`loanaccount_id`) REFERENCES `loanaccounts` (`id`), ADD CONSTRAINT `loanguarantors_member_id_foreign` FOREIGN KEY (`member_id`) REFERENCES `members` (`id`); -- -- Constraints for table `loanpostings` -- ALTER TABLE `loanpostings` ADD CONSTRAINT `loanpostings_loanproduct_id_foreign` FOREIGN KEY (`loanproduct_id`) REFERENCES `loanproducts` (`id`); -- -- Constraints for table `loanrepayments` -- ALTER TABLE `loanrepayments` ADD CONSTRAINT `loanrepayments_loanaccount_id_foreign` FOREIGN KEY (`loanaccount_id`) REFERENCES `loanaccounts` (`id`); -- -- Constraints for table `loantransactions` -- ALTER TABLE `loantransactions` ADD CONSTRAINT `loantransactions_loanaccount_id_foreign` FOREIGN KEY (`loanaccount_id`) REFERENCES `loanaccounts` (`id`); -- -- Constraints for table `members` -- ALTER TABLE `members` ADD CONSTRAINT `members_branch_id_foreign` FOREIGN KEY (`branch_id`) REFERENCES `branches` (`id`), ADD CONSTRAINT `members_group_id_foreign` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`); -- -- Constraints for table `nextofkins` -- ALTER TABLE `nextofkins` ADD CONSTRAINT `nextofkins_employee_id_foreign` FOREIGN KEY (`employee_id`) REFERENCES `employee` (`id`) ON UPDATE CASCADE; /*!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>DanielQA123/ims-demo drop database if exists ims_test; create database if not exists ims_test; create table ims_test.customers(id int primary key auto_increment, first_name varchar(40), surname varchar(40)); create table if not exists ims_test.items(id int primary key auto_increment, item_name varchar(100), price decimal(6,2)); create table if not exists ims_test.orders(id int primary key auto_increment, item_id int not null, shippingAddress varchar(100), customer_id int not null, foreign key (customer_id) references customers (id)); create table if not exists ims_test.orderline(id int primary key auto_increment, item_id int not null, customer_id int not null, order_id int not null, foreign key (item_id) references items (id), foreign key (order_id) references orders (id));
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 17, 2020 at 05:42 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- Database: `db_nyeseuh` -- -- -------------------------------------------------------- -- -- Table structure for table `failed_jobs` -- CREATE TABLE `failed_jobs` ( `id` bigint(20) UNSIGNED NOT NULL, `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `member` -- CREATE TABLE `member` ( `id_member` int(10) UNSIGNED NOT NULL, `nama` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `jenkel` varchar(2) COLLATE utf8mb4_unicode_ci NOT NULL, `tlp` varchar(20) 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 `member` -- INSERT INTO `member` (`id_member`, `nama`, `alamat`, `jenkel`, `tlp`, `created_at`, `updated_at`) VALUES (1, 'Boy', 'Karasak', 'P', '0858607096', NULL, NULL), (2, 'Ciwi', '<NAME>', 'W', '0858608655', NULL, NULL), (3, 'Jijil', 'Ciwastra', 'W', '0858543215', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2014_10_12_000000_create_users_table', 1), (2, '2014_10_12_100000_create_password_resets_table', 1), (3, '2019_08_19_000000_create_failed_jobs_table', 1), (4, '2020_03_11_031027_create_member_table', 1), (5, '2020_03_11_032322_create_paket_table', 1), (6, '2020_03_11_060327_create_table_outlet', 1), (7, '2020_03_26_073123_create_status_pesanan_table', 1), (8, '2020_03_26_073133_create_status_pembayaran_table', 1); -- -------------------------------------------------------- -- -- Table structure for table `paket` -- CREATE TABLE `paket` ( `id_paket` int(10) UNSIGNED NOT NULL, `id_outlet` int(11) NOT NULL, `jenis` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, `nama_paket` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `harga` int(11) 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 `paket` -- INSERT INTO `paket` (`id_paket`, `id_outlet`, `jenis`, `nama_paket`, `harga`, `created_at`, `updated_at`) VALUES (1, 1, 'Kemeja', 'Hemat', 10000, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `password_resets` -- CREATE TABLE `password_resets` ( `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `token` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `status_pembayaran` -- CREATE TABLE `status_pembayaran` ( `id_status_pembayaran` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `nama_status_pembayaran` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `urutan` varchar(10) 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 `status_pembayaran` -- INSERT INTO `status_pembayaran` (`id_status_pembayaran`, `nama_status_pembayaran`, `urutan`, `created_at`, `updated_at`) VALUES ('1', 'Proses', '1', NULL, NULL), ('2', 'Lunas', '2', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `status_pesanan` -- CREATE TABLE `status_pesanan` ( `id_status_pesanan` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `nama_status_pesanan` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, `urutan` varchar(10) 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 `status_pesanan` -- INSERT INTO `status_pesanan` (`id_status_pesanan`, `nama_status_pesanan`, `urutan`, `created_at`, `updated_at`) VALUES ('1', 'Proses', '1', NULL, NULL), ('2', 'Selesai', '2', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `table_outlet` -- CREATE TABLE `table_outlet` ( `id_outlet` int(10) UNSIGNED NOT NULL, `nama` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `alamat` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, `tlp` varchar(20) 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 `table_outlet` -- INSERT INTO `table_outlet` (`id_outlet`, `nama`, `alamat`, `tlp`, `created_at`, `updated_at`) VALUES (1, 'Merdeka', 'Merdeka', '082202202', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `transaksi` -- CREATE TABLE `transaksi` ( `id_transaksi` int(10) UNSIGNED NOT NULL, `tanggal` date NOT NULL, `member` int(11) NOT NULL, `paket` int(11) NOT NULL, `berat` int(11) NOT NULL, `biaya_tambahan` int(11) NOT NULL, `harga_total` int(11) NOT NULL, `status_pesanan` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `status_pembayaran` varchar(11) COLLATE utf8mb4_unicode_ci NOT NULL, `tgl_bayar` date NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `transaksi` -- INSERT INTO `transaksi` (`id_transaksi`, `tanggal`, `member`, `paket`, `berat`, `biaya_tambahan`, `harga_total`, `status_pesanan`, `status_pembayaran`, `tgl_bayar`, `created_at`, `updated_at`) VALUES (1, '2020-04-15', 1, 1, 5, 1000, 102000, '2', '2', '2020-04-15', '2020-04-15 10:09:48', '2020-04-15 17:39:56'), (2, '2020-04-16', 2, 1, 6, 0, 60000, '1', '1', '2020-04-16', '2020-04-15 17:39:27', '2020-04-15 17:39:27'); -- -------------------------------------------------------- -- -- Table structure for table `users` -- CREATE TABLE `users` ( `id` bigint(20) UNSIGNED NOT NULL, `name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `username` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `role` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `email_verified_at` timestamp NULL DEFAULT NULL, `password` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL, `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; -- -- Dumping data for table `users` -- INSERT INTO `users` (`id`, `name`, `username`, `email`, `role`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'admin', 'admin', '<EMAIL>', '1', NULL, '$2y$10$cZw8dwyQIl4vIFjUpnM2f.ICHH6lrsKOQsi3pjTYS8B8VYM0TfV76', NULL, '2020-04-15 01:16:16', '2020-04-15 01:16:16'), (2, 'Kasir', 'kasir', '<EMAIL>', '2', NULL, '$2y$10$fxTEpb70XDOmby3Hq5sDzuTNhJeBzqzH0PjdnGfc0XSUiZHtVTA7e', NULL, '2020-04-15 03:06:53', '2020-04-15 03:06:53'), (3, 'Owner', 'owner', '<EMAIL>', '3', NULL, '$2y$10$w1yBBwf5pQeUTiv8czV6IexNrDgfpNqAQZBT61ZfAKHBLMTAbPKMm', NULL, '2020-04-15 03:09:13', '2020-04-15 03:09:13'); -- -- Indexes for dumped tables -- -- -- Indexes for table `failed_jobs` -- ALTER TABLE `failed_jobs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `member` -- ALTER TABLE `member` ADD PRIMARY KEY (`id_member`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- Indexes for table `paket` -- ALTER TABLE `paket` ADD PRIMARY KEY (`id_paket`); -- -- Indexes for table `password_resets` -- ALTER TABLE `password_resets` ADD KEY `password_resets_email_index` (`email`); -- -- Indexes for table `status_pembayaran` -- ALTER TABLE `status_pembayaran` ADD PRIMARY KEY (`id_status_pembayaran`); -- -- Indexes for table `status_pesanan` -- ALTER TABLE `status_pesanan` ADD PRIMARY KEY (`id_status_pesanan`); -- -- Indexes for table `table_outlet` -- ALTER TABLE `table_outlet` ADD PRIMARY KEY (`id_outlet`); -- -- Indexes for table `transaksi` -- ALTER TABLE `transaksi` ADD PRIMARY KEY (`id_transaksi`), ADD KEY `member` (`member`), ADD KEY `paket` (`paket`), ADD KEY `status_pesanan` (`status_pesanan`), ADD KEY `status_pembayaran` (`status_pembayaran`); -- -- Indexes for table `users` -- ALTER TABLE `users` ADD PRIMARY KEY (`id`), ADD UNIQUE KEY `users_email_unique` (`email`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `failed_jobs` -- ALTER TABLE `failed_jobs` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `member` -- ALTER TABLE `member` MODIFY `id_member` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `paket` -- ALTER TABLE `paket` MODIFY `id_paket` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `table_outlet` -- ALTER TABLE `table_outlet` MODIFY `id_outlet` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; -- -- AUTO_INCREMENT for table `transaksi` -- ALTER TABLE `transaksi` MODIFY `id_transaksi` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `users` -- ALTER TABLE `users` MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4; 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 */;
 /*  Queries to Produce trafficSense Experimental Tables from Imported OSM Data. -------------------------------------- -- WARNING: A L P H A VERSION ---------- -------------------------------------- ***** *** *** *** *** *** *** *** *********** *** ************* *** *** *** *** *** *** (c) 2015 Aalto University v: 2015.01.13b ALPHA Contact <EMAIL> for any more info, suggestions, etc. All work is experimental. Expect changes without any notice. The structure & logic focus on development. No optimization of resources' use. Many bugs & errors. Many of them already known. */ /* BASIC REQUIREMENTS. -------------------------------------- This Script has been tested with PostreSQL 9.4 PostGIS 2.1.5 on Ubuntu Linux 14.04 LTS 64bits Other Extensions needed: hstore intarray OSM-data must be imported by osm2pgsql and 'highwaymodes' table must be created or restored. Please note that intarray must be loaded AFTER the import of the OSM data, as latest versions of osm2pgsql face problems. */ /* EXTRA NOTES -------------------------------------- The links between the waypoints are created with a very simple procedure. This is faster than the full one, and doesn't require extra libraries. The whole code will be replaced when the specifications of the links are fully set. */ /* CreateRoadsList */ /* This query selects from the planet_osm_line table the following columns: osm_id as road_id, way as geom (the string used by postgis to store the geometrical information) and adds boolean fields about the modes permitted. The term 'roads' is used for any 'way'. The modes are contained in the highwaymodes table. Specific modes and road types can be excluded either by modifying the 'highwaymodes' table, or the WHERE clause. E.G. use WHERE planet_osm_line.highway=highwaymodes.highway AND highwaymodes.motorcar=true AND planet_osm_line.highway<>'service' to include only motorcars and exclude service roads. */ DROP TABLE IF EXISTS roadslist; CREATE TABLE roadslist AS /* RKM: How about selecting the ones, which have a name? Appears not to be present. Trunk roads already added by Joonas elsewhere. */ SELECT DISTINCT ON (osm_id) osm_id as road_id, highwaymodes.motorcar, highwaymodes.bicycle,highwaymodes.foot, highwaymodes.rail, way as geom FROM planet_osm_line, highwaymodes WHERE /* planet_osm_line.highway=highwaymodes.highway <- NORMAL CLAUSE WITHOUT ANY EXCLUSIONS */ planet_osm_line.highway=highwaymodes.highway AND highwaymodes.motorcar=true AND planet_osm_line.highway<>'service' ; ALTER TABLE roadslist ADD PRIMARY KEY (road_id); ALTER TABLE roadslist ALTER COLUMN motorcar SET NOT NULL; ALTER TABLE roadslist ALTER COLUMN bicycle SET NOT NULL; ALTER TABLE roadslist ALTER COLUMN foot SET NOT NULL; ALTER TABLE roadslist ALTER COLUMN rail SET NOT NULL; /* Append trains and trams --------------------------- Information about Trams and Trains is contained in the same table but in the 'railway' and not the 'highway' field. */ /* RKM: Do we really want rails? Trams would be more critical. */ INSERT INTO roadslist SELECT DISTINCT ON (osm_id) osm_id as road_id, false, false,false, true, way as geom FROM planet_osm_line WHERE planet_osm_line.railway='rail' OR planet_osm_line.railway='tram' OR planet_osm_line.railway='subway' ; /* CreateRoadsNodesInOrder */ /* The planet_osm_ways table contains information about any way of the OSM data. There is a field with the id of each way, and a field with an array that contains an ordered list with the ids of the nodes which are the vertices of this way. The query unfolds the array for the ways which are roads, creating one row for each element. This row contains information about the road_id, the order of the node in the sequence (rn), the node id. For example, the row: 4216933, {25031706,25199769,1703484739,25031731} is unfolded as: road_id rn node_id ----------------------- 4216933, 1, 2503706 4216933, 2, 25199769 4216933, 3, 1703484739 4216933, 4, 25031731 */ /* Improve Performance */ CREATE INDEX "idx-roadslist-geom" ON roadslist USING gist (geom); DROP TABLE IF EXISTS roadsnodesinorder; CREATE TEMPORARY TABLE roadsnodesinorder AS /* RKM: Tracks the list of nodes - on longer term this would be the place, where node discontinuities could be addressed? First 2 referrals to "nodes" are on the osm_ways "nodes" column [which is an ordered array], "AS nodes" creates a new "nodes" table. */ SELECT roadslist.road_id, node_num AS rn, node_id, (node_num = 1 OR node_num = nodes.count) AS is_endpoint FROM roadslist JOIN ( SELECT id AS road_id, node_id, node_num, array_length(nodes, 1) AS count FROM planet_osm_ways, unnest(nodes) WITH ORDINALITY x(node_id, node_num) ) AS nodes ON roadslist.road_id = nodes.road_id; /* RKM: Why not first create the table with constraints and then populate the table? */ ALTER TABLE roadsnodesinorder ALTER COLUMN road_id SET NOT NULL; ALTER TABLE roadsnodesinorder ALTER COLUMN node_id SET NOT NULL; ALTER TABLE roadsnodesinorder ALTER COLUMN rn SET NOT NULL; ALTER TABLE roadsnodesinorder ALTER COLUMN is_endpoint SET NOT NULL; CREATE INDEX ON roadsnodesinorder (road_id); CREATE INDEX ON roadsnodesinorder (node_id); /* CreateRoadsNodesData */ /* This query creates the roadsnodesdata table with the geometrical data of the nodes that are elements of the road network. Each row contains information about the node_id the point geometry that represents the node. The geometrical information is included in other tables too, even if there might be joins to the current table. The reason is that the visualization of a table requires the geometrical information being existed in one of its fields and not in a joined field of another table. This means that a query cannot be visualized directly. */ /* RKM: Couldn't this have been combined with the previous step? It only seems to add the point geometry of the road nodes, although it is from a different table. */ DROP TABLE IF EXISTS roadsnodesdata; CREATE TABLE roadsnodesdata AS SELECT roadsnodeslist.node_id, ST_SetSRID(ST_MakePoint((lon::double precision)/100,(lat::double precision)/100),900913) as geom FROM planet_osm_nodes, ( SELECT DISTINCT node_id FROM roadsnodesinorder ) AS roadsnodeslist WHERE planet_osm_nodes.id=roadsnodeslist.node_id ; ALTER TABLE roadsnodesdata ALTER COLUMN node_id SET NOT NULL; ALTER TABLE roadsnodesdata ALTER COLUMN geom SET NOT NULL; /* Improve Performance */ CREATE UNIQUE INDEX "idx-roadsnodesdata-node_id" ON roadsnodesdata USING btree (node_id); /* Create Points of Importance */ /* This query finds the nodes which are Points of Importance (POImps). POImps are e.g. intersections of 2 roads, dead ends (in relation to the modes), bus stops, etc. */ DROP TABLE IF EXISTS poimplist; CREATE TEMPORARY TABLE poimplist AS /* RKM: Could the first and 3rd (road_id > 2 and (road_id=2 AND endpoint=false)) be combined? Basically we want everything else than nodes, which have 1 road_id and are not endpoints. Could be done with 1 SELECT and NOT around the above clause. */ WITH nodes AS ( /* Find nodes in more than 2 roads. These nodes are intersections in any case. */ SELECT node_id FROM roadsnodesinorder GROUP BY node_id HAVING COUNT(road_id) > 2 UNION /* Find nodes that are geometrical dead ends. These nodes are POImps independently of the mode. */ SELECT node_id FROM roadsnodesinorder GROUP BY node_id /* bool_or is needed, because we are interested in nodes that are endpoints in *at least one* road */ /* RKM: Only 1 road_id, so IS the bool_or really needed?? Should be just one node. */ HAVING COUNT(road_id) = 1 AND bool_or(is_endpoint) IS TRUE UNION /* Find nodes that are part of 2 roads, and not the first or the last one of both of them. These nodes are simple intersections. */ SELECT node_id FROM roadsnodesinorder GROUP BY node_id /* bool_and is needed, because we are interested in nodes that are not endpoints in neither of the roads */ HAVING COUNT(road_id) = 2 AND bool_and(is_endpoint) IS FALSE ) /* RKM: Is the SELECT DISTINCT needed below? Looks like the results from above are already unique? */ SELECT distinct_nodes.node_id, roadsnodesdata.geom FROM (SELECT DISTINCT node_id FROM nodes) AS distinct_nodes JOIN roadsnodesdata ON roadsnodesdata.node_id = distinct_nodes.node_id ; ALTER TABLE poimplist ADD PRIMARY KEY (node_id); ALTER TABLE poimplist ALTER COLUMN geom SET NOT NULL; /* Find nodes that are part of 2 roads, first and/or last items of both roads, and mode related deadends. */ /* RKM: What does this add on top of the previous query?? */ /* Joonas: This query is faulty, because the last WHERE expression is never true, because nofroads=nofmotorcar=nofbicycle=noffoot=nofrail (see subquery for the reason) */ INSERT INTO poimplist SELECT DISTINCT roadsnodesdata.node_id, roadsnodesdata.geom FROM /* Joonas: This subquery is faulty, because COUNT(expression) returns the number of non-null rows. The columns motorcar, bicycle, foot, rail are false or true, so the counts will always be same as nofroads. */ ( SELECT roadsnodesinorder.node_id,COUNT(roadslist.road_id) as nofroads, COUNT(roadslist.motorcar) as nofmotorcar,COUNT(roadslist.bicycle) as nofbicycle,COUNT(roadslist.foot) as noffoot,COUNT(roadslist.rail) as nofrail FROM roadslist, roadsnodesinorder WHERE roadsnodesinorder.road_id=roadslist.road_id GROUP BY roadsnodesinorder.node_id ) as foo, ( SELECT road_id, max(rn) as nofrn FROM roadsnodesinorder GROUP BY road_id ) as foo2, roadsnodesdata, roadsnodesinorder WHERE foo.node_id=roadsnodesdata.node_id AND foo.node_id=roadsnodesinorder.node_id AND nofroads=2 AND roadsnodesinorder.road_id=foo2.road_id AND (roadsnodesinorder.rn=1 OR roadsnodesinorder.rn=foo2.nofrn) AND (foo.nofmotorcar<foo.nofroads OR foo.nofbicycle<foo.nofroads OR foo.noffoot<foo.nofroads OR foo.nofrail<foo.nofroads) ; /* Append Bus Stops Append items from the 'planet_osm_point' table with the 'bus_stop' value in the highway field. */ /* RKM: This likely to be moved to another position (i.e. bus stops not to be included in clustering) */ INSERT INTO poimplist SELECT planet_osm_point.osm_id as node_id, planet_osm_point.way as geom FROM planet_osm_point WHERE planet_osm_point.highway='bus_stop' ; /* Spatial Index to Improve the Performance */ CREATE INDEX "idx-poimplist-geom" ON poimplist USING gist (geom); /* The following Function does the clustering of the POImps. -------------------------------------------------------------- */ CREATE OR REPLACE FUNCTION buc(radius integer) RETURNS TABLE (cluster_id int, geom geometry) AS $BODY$ DECLARE srid int; clusterstobejoined int[]; threshold int; newmaxdistance int; regionid int; nofregions int; BEGIN threshold :=2*radius; /* Create a temporary table with the POImps Assign a clusterid to each point. */ DROP TABLE IF EXISTS tmppoimp2; CREATE TEMPORARY TABLE tmppoimp2 (gid bigint, the_geom geometry(Point), the_clusterid serial); INSERT INTO tmppoimp2(gid, the_geom) (SELECT poimplist.node_id, poimplist.geom FROM poimplist); /* The indexes are useful in case there are many items in a region. The efficiency is limited if only a few items are existent. */ /* Improve Performance */ CREATE INDEX "idx-tmppoimp2-geom" ON tmppoimp2 USING gist (the_geom); /* RKM: Why not add the region_id column when creating the table? */ ALTER TABLE tmppoimp2 ADD COLUMN region_id integer; /* At first, the function has a top-down step, in which regions are formed. Each region includes POImps that all of them are isolated from other regions (distance > radius) but can form clusters. Thus, calculations are performed for items of the same region only. */ DROP TABLE IF EXISTS poimpregions; /* RKM: This is where we stopped 26.2.2015. */ CREATE TEMPORARY TABLE poimpregions AS SELECT ST_Dump(ST_UNION(ST_Buffer(tmppoimp2.the_geom,radius))) as dump FROM tmppoimp2 ; ALTER TABLE poimpregions ADD COLUMN region_id integer; ALTER TABLE poimpregions ADD COLUMN geom geometry(Polygon); UPDATE poimpregions SET region_id=(dump).path[1], geom=(dump).geom ; ALTER TABLE poimpregions DROP COLUMN dump; nofregions := (SELECT max(poimpregions.region_id) FROM poimpregions); RAISE NOTICE 'No of Regions= %', nofregions; /* Assign a region id to each POImp */ UPDATE tmppoimp2 SET region_id= poimpregions.region_id FROM poimpregions WHERE ST_Within(tmppoimp2.the_geom,poimpregions.geom)=true ; /* Improve Performance */ CREATE INDEX "idx-tmppoimp2-clusterid" ON tmppoimp2 USING btree (the_clusterid); CREATE INDEX "idx-tmppoimp2-region_id" ON tmppoimp2 USING btree (region_id); ANALYZE tmppoimp2; /* The following table contains information about the pairs of clusters. */ DROP TABLE IF EXISTS tmppoimp2clusterspairs; CREATE TEMPORARY TABLE tmppoimp2clusterspairs AS SELECT a.region_id, a.the_clusterid as cluster_id1,b.the_clusterid as cluster_id2, ST_Distance(a.the_geom,b.the_geom) as dist FROM tmppoimp2 a, tmppoimp2 b WHERE a.the_clusterid < b.the_clusterid AND a.region_id=b.region_id ; /* Improve Performance */ CREATE INDEX "idx-tmppoimp2clusterspairs-clusterid1" ON tmppoimp2clusterspairs USING btree (cluster_id1); CREATE INDEX "idx-tmppoimp2clusterspairs-clusterid2" ON tmppoimp2clusterspairs USING btree (cluster_id2); CREATE INDEX "idx-tmppoimp2clusterspairs-dist" ON tmppoimp2clusterspairs USING btree (dist); CREATE INDEX "idx-tmppoimp2clusterspairs-region_id" ON tmppoimp2clusterspairs USING btree (region_id); /* The following table contains the information about each cluster. */ DROP TABLE IF EXISTS tmppoimp2clusters; CREATE TEMPORARY TABLE tmppoimp2clusters AS SELECT tmppoimp2.the_clusterid, ST_Collect(tmppoimp2.the_geom) as the_geom FROM tmppoimp2 GROUP BY the_clusterid ; /* Improve Performance */ CREATE UNIQUE INDEX "idx-tmppoimp2clusters-clusterid" ON tmppoimp2clusters USING btree (the_clusterid); regionid := 0; /* The first loop regards the regions. */ LOOP regionid := regionid+1; /* The second loop regards the clusters in the current region. */ LOOP clusterstobejoined := ARRAY [tmppoimp2clusterspairs.cluster_id1, tmppoimp2clusterspairs.cluster_id2, floor(tmppoimp2clusterspairs.dist),tmppoimp2clusterspairs.region_id] FROM tmppoimp2clusterspairs WHERE tmppoimp2clusterspairs.region_id=regionid ORDER BY dist ASC LIMIT 1 ; RAISE NOTICE 'Region= % / %', regionid, nofregions; /* Exit Condition. The value is Null in case only one item forms the cluster. */ IF clusterstobejoined[3]>threshold OR clusterstobejoined[3] Is Null THEN EXIT; END IF; /* Update the clusters. */ UPDATE tmppoimp2clusters SET the_geom= ST_Collect(tmppoimp2clusters.the_geom, b.the_geom) FROM tmppoimp2clusters b WHERE tmppoimp2clusters.the_clusterid=clusterstobejoined[1] AND b.the_clusterid=clusterstobejoined[2] ; UPDATE tmppoimp2 SET the_clusterid = clusterstobejoined[1] WHERE the_clusterid = clusterstobejoined[2] ; /* Delete pairs that are not existent any more. */ DELETE FROM tmppoimp2clusterspairs WHERE cluster_id1=clusterstobejoined[2] OR cluster_id2=clusterstobejoined[2] ; DELETE FROM tmppoimp2clusters WHERE the_clusterid=clusterstobejoined[2] ; /* Calculate new distances between the clusters. */ UPDATE tmppoimp2clusterspairs SET dist = (SELECT ST_MaxDistance(a.the_geom,b.the_geom) FROM tmppoimp2clusters a, tmppoimp2clusters b WHERE a.the_clusterid=cluster_id1 AND b.the_clusterid=cluster_id2 ) WHERE (cluster_id1=clusterstobejoined[1] OR cluster_id2=clusterstobejoined[1]) AND tmppoimp2clusterspairs.region_id=regionid ; --If there's only 1 cluster left, exit loop IF (SELECT COUNT(*) FROM tmppoimp2clusterspairs) < 2 THEN EXIT; END IF; END LOOP; /* Check if this is the fibal region. */ IF regionid=nofregions THEN EXIT; END IF; END LOOP; RETURN QUERY SELECT the_clusterid,the_geom FROM tmppoimp2; END; $BODY$ LANGUAGE plpgsql ; /* This query calls the clustering Function. */ DROP TABLE IF EXISTS tmppoimpsclustered; CREATE TEMPORARY TABLE tmppoimpsclustered AS SELECT (clusters).* FROM ( SELECT buc(30) AS clusters ) foo ; /* The result of the clustering Function is POIimps with information about their cluster. This query finds the centroid of each cluster and creates a set of waypoints. */ DROP TABLE IF EXISTS tmpwaypoints; CREATE TEMPORARY TABLE tmpwaypoints AS SELECT DISTINCT cluster_id, ST_Centroid(mycollection) AS geom FROM ( SELECT cluster_id, ST_Collect(geom) AS mycollection FROM tmppoimpsclustered GROUP BY cluster_id ) AS foo ; /* This query adds a disk of radius=30 as a buffer in each waypoint, (just for the visualization at this moment, but also for the creation of a mask later). */ ALTER TABLE tmpwaypoints ADD COLUMN wpt_buffer geometry("POLYGON",900913); UPDATE tmpwaypoints SET wpt_buffer= ST_Buffer(geom,30) ; /* Improve Performance */ CREATE INDEX "idx-tmpwaypoints-wpt_buffer" ON tmpwaypoints USING gist (wpt_buffer); /* Create the Final 'WAYPOINTS' Table ----------------------------------------- */ DROP TABLE IF EXISTS waypoints; CREATE TABLE waypoints (wpt_id bigint, geom geometry(Point,4326)); INSERT INTO waypoints (SELECT 0, ST_Transform(geom,4326) FROM tmpwaypoints) ; UPDATE waypoints SET wpt_id= (SELECT round(ST_X(geom)*10000)*1000000+round(ST_Y(geom)*10000)) ; ALTER TABLE waypoints ADD PRIMARY KEY (wpt_id); /* A temporary table for a not so smart way to change ids in the 'links' table to WGS84 formatted ones. (At the end.) */ DROP TABLE IF EXISTS tmpwaypointsoldnewids; CREATE TEMPORARY TABLE tmpwaypointsoldnewids (wpt_id bigint, geom geometry(Point,4326), internalid integer); INSERT INTO tmpwaypointsoldnewids (SELECT 0, ST_Transform(geom,4326), cluster_id FROM tmpwaypoints) ; UPDATE tmpwaypointsoldnewids SET wpt_id= (SELECT round(ST_X(geom)*10000)*1000000+round(ST_Y(geom)*10000)) ; ALTER TABLE tmpwaypointsoldnewids DROP COLUMN geom; /* ---------------------------------------------------------------------------------------------- THE SECTION BELOW HAS BEEN REPLACED. BUT THIS ONE IS A FAST SOLUTION TO CREATE & VISUALIZE THE LINKS BETWEEN THE WAYPOINTS. (Its Descriptions are very short.) THE REPLACEMENT REQUIRES EXTRA LIBRARIES, RELATED TO SFCGAL. ------------------------------------------------------------------------------------------------- */ /* Create a Line for each Road */ DROP TABLE IF EXISTS tmproadslist2; CREATE TEMPORARY TABLE tmproadslist2 AS SELECT ST_MakeLine(ARRAY(SELECT roadsnodesdata.geom FROM roadsnodesdata, roadsnodesinorder a WHERE a.node_id = roadsnodesdata.node_id AND a.road_id=roadsnodesinorder.road_id ORDER BY a.rn) ) as geom FROM roadsnodesinorder GROUP BY roadsnodesinorder.road_id ; /* Improve Performance */ CREATE INDEX "idx-tmproadslist2-geom" ON tmproadslist2 USING gist (geom); /* Create a mask from the buffers of the waypoints */ DROP TABLE IF EXISTS tmpcollectionofwaypointsbuffer; CREATE TEMPORARY TABLE tmpcollectionofwaypointsbuffer AS SELECT ST_Union(wpt_buffer) as geom FROM tmpwaypoints ; /* Improve Performance */ CREATE INDEX "idx-tmpcollectionofwaypointsbuffer-geom" ON tmpcollectionofwaypointsbuffer USING gist (geom); /* Remove the segments of the road lines that are within the waypoints' mask and dump the elements. */ DROP TABLE IF EXISTS tmproadslist3; CREATE TEMPORARY TABLE tmproadslist3 AS SELECT (ST_Dump(ST_Difference(tmproadslist2.geom,tmpcollectionofwaypointsbuffer.geom))).geom as geom FROM tmpcollectionofwaypointsbuffer, tmproadslist2 ; /* Insert Short Paths between Overlapping Waypoints */ INSERT INTO tmproadslist3 (geom) SELECT ST_MakeLine(t1.geom,t2.geom) FROM tmpwaypoints t1, tmpwaypoints t2 WHERE t1.cluster_id<t2.cluster_id AND ST_Distance(t1.geom,t2.geom)<=60 ; /* Improve Performance */ CREATE INDEX "idx-tmproadslist3-geom" ON tmproadslist3 USING gist (geom); /* Create a collection of the waypoints to be used to connect the Paths With the Waypoints (below) */ DROP TABLE IF EXISTS tmpcollectionofwaypoints; CREATE TEMPORARY TABLE tmpcollectionofwaypoints AS SELECT ST_Collect(geom) as geom FROM tmpwaypoints ; /* Improve Performance */ CREATE INDEX "idx-tmpcollectionofwaypoints-geom" ON tmpcollectionofwaypoints USING gist (geom); /* Connect the Paths With the Waypoints This is a very fast way, but theoretically not always reliable. */ UPDATE tmproadslist3 SET geom=ST_Snap(tmproadslist3.geom, tmpcollectionofwaypoints.geom, 30.01) FROM tmpcollectionofwaypoints ; /* Redump the collected roads. */ DROP TABLE IF EXISTS tmproadslist4; CREATE TEMPORARY TABLE tmproadslist4 AS SELECT (ST_Dump(ST_LineMerge(ST_Collect(tmproadslist3.geom)))).geom as geom FROM tmproadslist3 ; /* Simplify the Lines to improve performance */ UPDATE tmproadslist4 SET geom=ST_SimplifyPreserveTopology(geom,5) ; /* Improve Performance */ CREATE INDEX "idx-tmproadslist4-geom" ON tmproadslist4 USING gist (geom); /* HERE IS THE PLACE FOR THE CODE ABOUT THE CREATION OF ADDITIONAL POImps IN CASE OF PARTIALLY PARALLEL PATHS. ---------------------------------------------------------------------------------------------------------------------- TODO! */ /* Here starts the clustering procedure for the paths. -------------------------------------------------------- */ /* Create path ids. */ ALTER TABLE tmproadslist4 ADD COLUMN path_id serial; ALTER TABLE tmproadslist4 ADD COLUMN cluster1 int; ALTER TABLE tmproadslist4 ADD COLUMN cluster2 int; /* Assign the start/end waypoints to the paths. */ UPDATE tmproadslist4 SET cluster1= (SELECT tmpwaypoints.cluster_id FROM tmpwaypoints WHERE ST_Distance(tmpwaypoints.wpt_buffer,ST_LineInterpolatePoint(tmproadslist4.geom,0))<0.01 LIMIT 1) ; UPDATE tmproadslist4 SET cluster2= (SELECT tmpwaypoints.cluster_id FROM tmpwaypoints WHERE ST_Distance(tmpwaypoints.wpt_buffer,ST_LineInterpolatePoint(tmproadslist4.geom,1))<0.01 LIMIT 1) ; /* Set cluster1 < cluster2 */ UPDATE tmproadslist4 SET cluster1=t2.cluster2, cluster2=t2.cluster1 FROM tmproadslist4 as t2 WHERE tmproadslist4.path_id=t2.path_id AND tmproadslist4.cluster1>tmproadslist4.cluster2 ; /* Create a table with the paths that are similars. Similars are those paths that their geometries are contained in the 2*radius buffers of each other. */ DROP TABLE IF EXISTS tmpsimilarpaths; CREATE TEMPORARY TABLE tmpsimilarpaths AS SELECT t1.cluster1,t1.cluster2,t1.path_id as pathid1,t2.path_id as pathid2, ST_Contains(ST_Buffer(t1.geom,60),t2.geom) as isSimilar FROM tmproadslist4 t1, tmproadslist4 t2 WHERE t1.cluster1=t2.cluster1 AND t1.cluster2=t2.cluster2 AND t1.path_id<=t2.path_id ; /* Create a table to be used for the lists of clusters and their members. */ DROP TABLE IF EXISTS tmpfillclusters; CREATE TEMPORARY TABLE tmpfillclusters AS SELECT DISTINCT cluster1,cluster2, pathid1 as cluster1st FROM tmpsimilarpaths ; ALTER TABLE tmpfillclusters ADD COLUMN clustermembers integer[]; UPDATE tmpfillclusters SET clustermembers[1]=cluster1st; /* Fill the lists. */ UPDATE tmpfillclusters SET clustermembers= clustermembers||ARRAY(SELECT tmpsimilarpaths.pathid2 FROM tmpsimilarpaths WHERE tmpsimilarpaths.isSimilar=true AND tmpsimilarpaths.pathid1=cluster1st AND tmpsimilarpaths.pathid2<>cluster1st) ; UPDATE tmpfillclusters SET clustermembers= clustermembers||ARRAY(SELECT tmpsimilarpaths.pathid1 FROM tmpsimilarpaths WHERE tmpsimilarpaths.isSimilar=true AND tmpsimilarpaths.pathid2=cluster1st AND tmpsimilarpaths.pathid1<>cluster1st) ; /* Create a table with the clusters and its members. */ DROP TABLE IF EXISTS tmpclusters; CREATE TEMPORARY TABLE tmpclusters AS SELECT DISTINCT cluster1,cluster2, sort(clustermembers) as clustermembers FROM tmpfillclusters ; ALTER TABLE tmpclusters DROP COLUMN IF EXISTS cluster_id; ALTER TABLE tmpclusters ADD COLUMN cluster_id serial; DELETE FROM tmpclusters USING (SELECT cluster_id,clustermembers FROM tmpclusters) as foo WHERE tmpclusters.clustermembers <@ foo.clustermembers AND foo.cluster_id<>tmpclusters.cluster_id; /* Create a link to represent each cluster of paths. In this fast and simple solution, the link created is identical to the shortest of the members. */ DROP TABLE IF EXISTS tmpclusteredpaths; CREATE TEMPORARY TABLE tmpclusteredpaths AS WITH minlengthofcluster AS ( ( WITH lengthsofmembers AS ( WITH listofmembers AS ( SELECT tmpclusters.cluster_id, unnest(clustermembers) as path_id FROM tmpclusters) SELECT tmpclusters.cluster_id,ST_Length(tmproadslist4.geom) as pathlength FROM tmpclusters,tmproadslist4,listofmembers WHERE tmpclusters.cluster_id=listofmembers.cluster_id AND tmproadslist4.path_id=listofmembers.path_id ) SELECT cluster_id,min(pathlength) as clustersminlength FROM lengthsofmembers GROUP BY cluster_id ) ) SELECT DISTINCT ON (cluster_id) tmpclusters.cluster_id, tmpclusters.cluster1, tmpclusters.cluster2, pathslist.path_id,tmproadslist4.geom FROM tmpclusters,minlengthofcluster,tmproadslist4,( SELECT tmpclusters.cluster_id, unnest(clustermembers) as path_id FROM tmpclusters ) AS pathslist WHERE tmpclusters.cluster_id=minlengthofcluster.cluster_id AND tmpclusters.cluster_id=pathslist.cluster_id AND pathslist.path_id=tmproadslist4.path_id AND minlengthofcluster.clustersminlength=ST_Length(tmproadslist4.geom) ORDER BY cluster_id, tmproadslist4.path_id ASC ; /* Try to further simplify the links ---------------------------------- DROP TABLE IF EXISTS tmpclusteredpathssimplified; CREATE TABLE tmpclusteredpathssimplified AS SELECT ST_SimplifyPreserveTopology(geom,5) FROM tmpclusteredpaths ; */ DROP TABLE IF EXISTS links; CREATE TABLE links ( lnk_id character(26), lnk_1 bigint, lnk_2 bigint, lnk_index smallint, lnk_directionality text, lnk_geom geometry("LINESTRING",4326), lnk_mode1 text, lnk_mode2 text ) ; INSERT INTO links(lnk_id,lnk_1,lnk_2,lnk_index,lnk_directionality,lnk_geom,lnk_mode1,lnk_mode2) SELECT cluster_id , cluster1 as lnk_1, cluster2 as lnk_2, row_number() OVER (PARTITION BY cluster_id ORDER BY ST_length(ST_Transform(geom,4326)) ASC) as lnk_index, NULL as lnk_directionality, ST_Transform(geom,4326) as link_geom, null, null FROM tmpclusteredpaths ; /* Update lnk IDS with WGS84 formatted IDS. ------------------------------------------ */ UPDATE links SET lnk_1= tmpwaypointsoldnewids.wpt_id FROM tmpwaypointsoldnewids WHERE tmpwaypointsoldnewids.internalid=links.lnk_1 ; UPDATE links SET lnk_2= tmpwaypointsoldnewids.wpt_id FROM tmpwaypointsoldnewids WHERE tmpwaypointsoldnewids.internalid=links.lnk_2 ; /* Exchange lnk_1 & lnk_2 in case lnk_1>lnk_2 (Strange, but it works!) */ UPDATE links SET lnk_1 = lnk_2, lnk_2 = lnk_1 WHERE lnk_2<lnk_1 ; /* Form 24 from 26 lnk_id */ UPDATE links SET lnk_id= (lnk_1)::text || (lnk_2)::text ; /* Add lnk_index as suffix */ UPDATE links SET lnk_id= lnk_id || lpad(lnk_index::text,2,'0') ; /* FURTHER IMPROVEMENTS AT THIS POINT AFTER SETTING FULL SPECIFICATIONS ABOUT THE 'links' TABLE. */ /* ----- D O N E ----- */
ALTER TABLE Users DROP CONSTRAINT PK_Users ALTER TABLE Users ADD CONSTRAINT PK_Id PRIMARY KEY(Id) ALTER TABLE Users ADD CONSTRAINT CHK_Username CHECK(LEN(UserName) >= 3) ALTER TABLE Users ADD CONSTRAINT UNQ_UserName UNIQUE(UserName) ALTER TABLE Users DROP CONSTRAINT US_Unique SELECT * FROM Users
<reponame>ozzyasmara/example -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 17, 2019 at 06:01 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.2.21 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: `git_approval` -- -- -------------------------------------------------------- -- -- Table structure for table `approval` -- CREATE TABLE `approval` ( `nama` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL, `ditujukan_kepada` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL, `keterangan` varchar(250) COLLATE utf8_unicode_ci DEFAULT NULL, `status` varchar(250) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Posting', `id` int(10) UNSIGNED NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `approval` -- INSERT INTO `approval` (`nama`, `ditujukan_kepada`, `keterangan`, `status`, `id`, `created_at`, `updated_at`) VALUES ('pooopopopopopo', '2', NULL, 'Approve', 15, '2019-10-10 00:37:33', '2019-10-13 18:31:16'), ('TEST TEST TEST ', '2', NULL, 'Posting', 22, '2019-10-16 19:37:20', '2019-10-16 20:21:09'); -- -------------------------------------------------------- -- -- Table structure for table `cms_apicustom` -- CREATE TABLE `cms_apicustom` ( `id` int(10) UNSIGNED NOT NULL, `permalink` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `tabel` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `aksi` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `kolom` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `orderby` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `sub_query_1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `sql_where` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `nama` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `keterangan` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `parameter` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `method_type` varchar(25) COLLATE utf8_unicode_ci DEFAULT NULL, `parameters` longtext COLLATE utf8_unicode_ci DEFAULT NULL, `responses` longtext COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `cms_apikey` -- CREATE TABLE `cms_apikey` ( `id` int(10) UNSIGNED NOT NULL, `screetkey` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `hit` int(11) DEFAULT NULL, `status` varchar(25) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'active', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `cms_dashboard` -- CREATE TABLE `cms_dashboard` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `id_cms_privileges` int(11) DEFAULT NULL, `content` longtext COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `cms_email_queues` -- CREATE TABLE `cms_email_queues` ( `id` int(10) UNSIGNED NOT NULL, `send_at` datetime DEFAULT NULL, `email_recipient` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email_from_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email_from_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email_cc_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email_subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email_content` text COLLATE utf8_unicode_ci DEFAULT NULL, `email_attachments` text COLLATE utf8_unicode_ci DEFAULT NULL, `is_sent` tinyint(1) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `cms_email_templates` -- CREATE TABLE `cms_email_templates` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `slug` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `subject` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `content` longtext COLLATE utf8_unicode_ci DEFAULT NULL, `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `from_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `from_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `cc_email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `cms_email_templates` -- INSERT INTO `cms_email_templates` (`id`, `name`, `slug`, `subject`, `content`, `description`, `from_name`, `from_email`, `cc_email`, `created_at`, `updated_at`) VALUES (1, 'Email Template Forgot Password Backend', 'forgot_password_backend', NULL, '<p>Hi,</p><p>Someone requested forgot password, here is your new password : </p><p>[password]</p><p><br></p><p>--</p><p>Regards,</p><p>Admin</p>', '[password]', 'System', '<EMAIL>', NULL, '2019-09-05 21:10:21', NULL), (2, 'Email Template Forgot Password Backend', 'forgot_password_backend', NULL, '<p>Hi,</p><p>Someone requested forgot password, here is your new password : </p><p>[password]</p><p><br></p><p>--</p><p>Regards,</p><p>Admin</p>', '[password]', 'System', '<EMAIL>', NULL, '2019-10-14 19:08:18', NULL); -- -------------------------------------------------------- -- -- Table structure for table `cms_logs` -- CREATE TABLE `cms_logs` ( `id` int(10) UNSIGNED NOT NULL, `ipaddress` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL, `useragent` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `description` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `details` text COLLATE utf8_unicode_ci DEFAULT NULL, `id_cms_users` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `cms_logs` -- INSERT INTO `cms_logs` (`id`, `ipaddress`, `useragent`, `url`, `description`, `details`, `id_cms_users`, `created_at`, `updated_at`) VALUES (1, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-09-05 21:11:34', NULL), (2, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/users/edit-save/1', 'Update data Super Admin at Users Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>photo</td><td></td><td>uploads/1/2019-09/windows_10_wallpaper_black_2.jpg</td></tr><tr><td>email</td><td><EMAIL></td><td><EMAIL></td></tr><tr><td>password</td><td><PASSWORD></td><td><PASSWORD>$<PASSWORD></td></tr><tr><td>id_cms_privileges</td><td>1</td><td></td></tr><tr><td>status</td><td>Active</td><td></td></tr></tbody></table>', 1, '2019-09-05 21:12:10', NULL), (3, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-09-05 21:14:15', NULL), (4, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-09-05 21:18:38', NULL), (5, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-09-05 21:31:35', NULL), (6, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-09-05 23:11:59', NULL), (7, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/users/add-save', 'Add New Data Heny at Users Management', '', 1, '2019-09-05 23:16:38', NULL), (8, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/users/add-save', 'Add New Data accounting at Users Management', '', 1, '2019-09-05 23:17:14', NULL), (9, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-09-05 23:17:22', NULL), (10, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-09-05 23:17:43', NULL), (11, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-09-05 23:18:04', NULL), (12, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-09-05 23:18:22', NULL), (13, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-09-05 23:18:34', NULL), (14, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-09-05 23:18:54', NULL), (15, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-09-06 00:42:41', NULL), (16, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-09-06 00:42:59', NULL), (17, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-09-06 00:43:19', NULL), (18, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-09-06 00:43:35', NULL), (19, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-09-06 01:21:54', NULL), (20, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-09-06 01:23:40', NULL), (21, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-09-06 01:24:17', NULL), (22, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-09-06 01:31:22', NULL), (23, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/module_generator/delete/12', 'Delete data SPPD KASBON at Module Generator', '', 1, '2019-09-06 02:09:20', NULL), (24, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/module_generator/delete/13', 'Delete data SPPD at Module Generator', '', 1, '2019-09-06 02:23:11', NULL), (25, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/sppd/add-save', 'Add New Data Lya at SPPD KASBON', '', 1, '2019-09-06 02:35:46', NULL), (26, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-09-06 02:39:22', NULL), (27, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-09-06 02:39:38', NULL), (28, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-09-06 02:39:45', NULL), (29, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-09-06 02:39:58', NULL), (30, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/3', 'Update data SPPD KASBON at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>type</td><td>Route</td><td>Module</td></tr><tr><td>path</td><td>AdminSppdControllerGetIndex</td><td>sppd</td></tr><tr><td>color</td><td></td><td>normal</td></tr></tbody></table>', 1, '2019-09-06 02:40:41', NULL), (31, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/3', 'Update data Tambah User at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>name</td><td>SPPD KASBON</td><td>Tambah User</td></tr><tr><td>path</td><td>sppd</td><td>users</td></tr><tr><td>icon</td><td>fa fa-envelope-o</td><td>fa fa-user</td></tr></tbody></table>', 1, '2019-09-06 02:41:19', NULL), (32, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-09-06 02:41:25', NULL), (33, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-09-06 02:41:38', NULL), (34, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-09-06 02:41:56', NULL), (35, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-09-06 02:42:08', NULL), (36, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/menu_management/add-save', 'Add New Data SPPD KASBON at Menu Management', '', 1, '2019-09-06 02:43:04', NULL), (37, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/4', 'Update data SPPD KASBON at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>sorting</td><td></td><td></td></tr></tbody></table>', 1, '2019-09-06 02:43:42', NULL), (38, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-09-06 02:43:49', NULL), (39, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-09-06 02:44:12', NULL), (40, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-09-06 02:56:36', NULL), (41, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-09-06 02:56:50', NULL), (42, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/1', 'Update data Lya at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>nominal_realisasi</td><td>3</td><td>1750000</td></tr><tr><td>nominal_payment</td><td>3</td><td>2000000</td></tr></tbody></table>', 1, '2019-09-06 02:57:20', NULL), (43, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-09-06 02:58:07', NULL), (44, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-09-06 02:58:21', NULL), (45, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/1', 'Update data Lya at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody></tbody></table>', 2, '2019-09-06 03:20:55', NULL), (46, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-09-06 03:34:32', NULL), (47, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-09-06 03:34:46', NULL), (48, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-09-06 03:36:18', NULL), (49, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-09-06 03:36:25', NULL), (50, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/sppd/edit/9', 'Try edit the data JOHAN at SPPD KASBON', '', 3, '2019-09-06 03:36:32', NULL), (51, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-09-06 03:36:45', NULL), (52, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-09-06 03:36:58', NULL), (53, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-09-06 03:37:44', NULL), (54, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-09-06 03:37:50', NULL), (55, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-09-06 03:39:51', NULL), (56, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-03 03:07:00', NULL), (57, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/action-selected', 'Delete data 5,4,3,2,1 at SPPD KASBON', '', 1, '2019-10-03 03:25:47', NULL), (58, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/add-save', 'Add New Data JOHANT at SPPD KASBON', '', 1, '2019-10-03 03:30:23', NULL), (59, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/6', 'Update data JOHANT at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-03 03:30:32', NULL), (60, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/6', 'Update data JOHANT at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td>EAST</td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-03 03:33:35', NULL), (61, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/6', 'Update data JOHANT at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td>EAST</td><td>WEST</td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-03 03:34:39', NULL), (62, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/6', 'Update data JOHANT at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td>WEST</td><td>1</td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-03 03:38:09', NULL), (63, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/6', 'Update data JOHANT at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td>1</td><td>3</td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-03 03:41:45', NULL), (64, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/fileservers/add-save', 'Add New Data Dokumen 1 at DIREKTORI FILE', '', 1, '2019-10-03 04:08:08', NULL), (65, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/add-save', 'Add New Data JOHANT at APPROVAL', '', 1, '2019-10-03 04:16:58', NULL), (66, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/add-save', 'Add New Data JOHANT at SPPD KASBON', '', 1, '2019-10-03 04:31:42', NULL), (67, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/1', 'Update data JOHANT at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td>KASBON</td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-03 04:31:54', NULL), (68, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/1', 'Update data JOHANT at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-03 04:34:19', NULL), (69, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/add-save', 'Add New Data JOHANT at APPROVAL', '', 1, '2019-10-03 04:40:51', NULL), (70, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/1', 'Update data JOHANT at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-03 04:41:28', NULL), (71, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/1', 'Update data JOHANT at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>keterangan</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-03 04:41:45', NULL), (72, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/1', 'Update data JOHANT at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>keterangan</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-03 04:45:02', NULL), (73, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-03 04:45:09', NULL), (74, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-03 04:45:24', NULL), (75, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/1', 'Update data JOHANT at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 2, '2019-10-03 04:45:53', NULL), (76, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-03 04:46:34', NULL), (77, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-03 04:46:52', NULL), (78, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/1', 'Update data JOHANT at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-03 04:47:15', NULL), (79, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-03 04:47:44', NULL), (80, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-03 04:53:37', NULL), (81, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-03 04:53:41', NULL), (82, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-03 05:04:09', NULL), (83, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-03 05:04:12', NULL), (84, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/1', 'Update data JOHANT at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-03 05:06:13', NULL), (85, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/1', 'Update data JOHANT at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-03 05:51:24', NULL), (86, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-03 05:56:23', NULL), (87, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/fileservers/add-save', 'Add New Data Dokumen 2 at DIREKTORI FILE', '', 1, '2019-10-03 05:59:11', NULL), (88, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-03 06:16:11', NULL), (89, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-03 17:58:32', NULL), (90, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/1', 'Update data JOHANT at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-03 18:01:09', NULL), (91, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/action-selected', 'Delete data 2,1 at SPPD KASBON', '', 1, '2019-10-03 18:03:39', NULL), (92, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/6', 'Update data CATUR SUGIYARTO at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td>CENTRAL</td><td>3</td></tr><tr><td>periode</td><td>JANUARI</td><td></td></tr><tr><td>tahun</td><td>2018</td><td>13</td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-03 18:19:12', NULL), (93, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/6', 'Update data CATUR SUGIYARTO at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>periode</td><td>JANUARI</td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td>2019-10-29</td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td>2019-10-29</td></tr><tr><td>nominal_realisasi</td><td></td><td>1750000</td></tr><tr><td>tgl_byr_sppd</td><td></td><td>2019-10-29</td></tr><tr><td>nominal_payment</td><td></td><td>2000000</td></tr><tr><td>tgl_penyelesaian</td><td></td><td>2019-10-22</td></tr></tbody></table>', 1, '2019-10-03 18:20:03', NULL), (94, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/6', 'Update data CATUR SUGIYARTO at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>periode</td><td>JANUARI</td><td>FEBRUARI</td></tr></tbody></table>', 1, '2019-10-03 18:29:22', NULL), (95, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/6', 'Update data CATUR SUGIYARTO at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>periode</td><td>FEBRUARI</td><td>1</td></tr></tbody></table>', 1, '2019-10-03 18:34:05', NULL), (96, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/5', 'Update data PHANG ABIE at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td>CENTRAL</td><td>4</td></tr><tr><td>periode</td><td>DESEMBER</td><td>8</td></tr><tr><td>tahun</td><td>2017</td><td>13</td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td>2019-11-01</td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td>2019-11-08</td></tr><tr><td>nominal_realisasi</td><td></td><td>1750000</td></tr><tr><td>tgl_byr_sppd</td><td></td><td>2019-11-06</td></tr><tr><td>nominal_payment</td><td></td><td>2000000</td></tr><tr><td>tgl_penyelesaian</td><td></td><td>2019-10-25</td></tr></tbody></table>', 1, '2019-10-03 18:34:39', NULL), (97, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/4', 'Update data RAFLIS JULIANTO at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td>EAST</td><td>1</td></tr><tr><td>periode</td><td>DESEMBER</td><td>4</td></tr><tr><td>tahun</td><td>2017</td><td>13</td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td>2019-10-30</td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td>2019-11-06</td></tr><tr><td>nominal_realisasi</td><td></td><td>1750000</td></tr><tr><td>tgl_byr_sppd</td><td></td><td>2019-09-30</td></tr><tr><td>nominal_payment</td><td></td><td>815000</td></tr><tr><td>tgl_penyelesaian</td><td></td><td>2019-10-28</td></tr></tbody></table>', 1, '2019-10-03 18:35:53', NULL), (98, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/fileservers/add-save', 'Add New Data Dokumen 2 at DIREKTORI FILE', '', 1, '2019-10-03 18:37:06', NULL), (99, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/fileservers/add-save', 'Add New Data Dokumen 3 at DIREKTORI FILE', '', 1, '2019-10-03 18:57:15', NULL), (100, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/fileservers/edit-save/3', 'Update data SOP at DIREKTORI FILE', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>nama_file</td><td>Dokumen 3</td><td>SOP</td></tr><tr><td>file</td><td>uploads/1/SOP/b14d441b14abf897ff1133da0f1f3d0d.xls</td><td>uploads/uploads/1/SOP/b14d441b14abf897ff1133da0f1f3d0d.xls</td></tr></tbody></table>', 1, '2019-10-03 19:01:49', NULL), (101, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-06 21:51:58', NULL), (102, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/add-save', 'Add New Data Bobby at SPPD KASBON', '', 1, '2019-10-06 23:18:05', NULL), (103, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/delete/6', 'Delete data CATUR SUGIYARTO at SPPD KASBON', '', 1, '2019-10-06 23:22:02', NULL), (104, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/add-save', 'Add New Data Bobby at SPPD KASBON', '', 1, '2019-10-06 23:23:24', NULL), (105, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/8', 'Update data Bobby at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td></td><td>Posting;</td></tr></tbody></table>', 1, '2019-10-06 23:24:50', NULL), (106, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/8', 'Update data Bobby at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Posting;</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-06 23:25:02', NULL), (107, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/8', 'Update data Bobby at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td></td><td>Posting</td></tr></tbody></table>', 1, '2019-10-06 23:53:27', NULL), (108, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit/8', 'Try edit the data Bobby at SPPD KASBON', '', 1, '2019-10-06 23:58:03', NULL), (109, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit/7', 'Try edit the data Bobby at SPPD KASBON', '', 1, '2019-10-06 23:58:11', NULL), (110, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/delete/8', 'Delete data Bobby at SPPD KASBON', '', 1, '2019-10-06 23:58:46', NULL), (111, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/delete/7', 'Delete data Bobby at SPPD KASBON', '', 1, '2019-10-06 23:58:57', NULL), (112, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/add-save', 'Add New Data Bobby at SPPD KASBON', '', 1, '2019-10-06 23:59:39', NULL), (113, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/add-save', 'Add New Data JOHANT at SPPD KASBON', '', 1, '2019-10-07 00:17:09', NULL), (114, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/9', 'Update data Joe at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>nama</td><td>Bobby</td><td>Joe</td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-07 00:26:49', NULL), (115, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-07 00:51:35', NULL), (116, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/fileservers/delete/3', 'Delete data SOP at DIREKTORI FILE', '', 1, '2019-10-07 00:53:40', NULL), (117, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/fileservers/add-save', 'Add New Data SOP at DIREKTORI FILE', '', 1, '2019-10-07 00:54:58', NULL), (118, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-07 23:38:27', NULL), (119, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-07 23:38:51', NULL), (120, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-07 23:39:04', NULL), (121, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-07 23:49:05', NULL), (122, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-07 23:49:18', NULL), (123, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-07 23:53:55', NULL), (124, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-07 23:54:12', NULL), (125, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-07 23:54:28', NULL), (126, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-07 23:55:25', NULL); INSERT INTO `cms_logs` (`id`, `ipaddress`, `useragent`, `url`, `description`, `details`, `id_cms_users`, `created_at`, `updated_at`) VALUES (127, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/edit-save/10', 'Update data JOHANT at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-08 00:26:43', NULL), (128, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-08 00:26:51', NULL), (129, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-08 00:27:05', NULL), (130, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/add-save', 'Add New Data JOJO NONO at SPPD KASBON', '', 2, '2019-10-08 00:40:49', NULL), (131, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-08 00:41:00', NULL), (132, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-08 00:41:17', NULL), (133, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-08 00:41:56', NULL), (134, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-08 00:42:10', NULL), (135, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-08 00:48:32', NULL), (136, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-08 00:48:41', NULL), (137, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-08 00:50:48', NULL), (138, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-08 00:51:02', NULL), (139, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-08 00:55:12', NULL), (140, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-08 00:55:26', NULL), (141, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/action-selected', 'Delete data 11,4,3 at SPPD KASBON', '', 1, '2019-10-08 00:59:46', NULL), (142, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-08 01:00:38', NULL), (143, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-08 01:15:06', NULL), (144, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-08 01:15:09', NULL), (145, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/6', 'Update data APPROVAL at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>type</td><td>Route</td><td>Module</td></tr><tr><td>path</td><td>AdminApprovalControllerGetIndex</td><td>approval</td></tr><tr><td>color</td><td></td><td>green</td></tr><tr><td>icon</td><td>fa fa-glass</td><td>fa fa-close</td></tr><tr><td>sorting</td><td>3</td><td></td></tr></tbody></table>', 1, '2019-10-08 01:27:34', NULL), (146, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval', 'Try view the data :name at APPROVAL', '', 2, '2019-10-08 01:27:43', NULL), (147, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval', 'Try view the data :name at APPROVAL', '', 2, '2019-10-08 01:28:13', NULL), (148, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval', 'Try view the data :name at APPROVAL', '', 2, '2019-10-08 01:28:53', NULL), (149, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/6', 'Update data APPROVAL at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>sorting</td><td>3</td><td></td></tr></tbody></table>', 1, '2019-10-08 01:29:39', NULL), (150, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/add-save', 'Add New Data JOHANT at APPROVAL', '', 1, '2019-10-08 01:29:54', NULL), (151, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/1', 'Update data JOHANT at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-08 01:30:09', NULL), (152, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/2', 'Update data JOHANT at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>ditujukan_kepada</td><td></td><td></td></tr><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Posting;</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-08 01:30:16', NULL), (153, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval', 'Try view the data :name at APPROVAL', '', 2, '2019-10-08 01:30:21', NULL), (154, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval', 'Try view the data :name at APPROVAL', '', 2, '2019-10-08 01:30:41', NULL), (155, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval', 'Try view the data :name at APPROVAL', '', 2, '2019-10-08 01:31:22', NULL), (156, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval', 'Try view the data :name at APPROVAL', '', 2, '2019-10-08 01:31:52', NULL), (157, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-08 01:31:56', NULL), (158, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-08 01:31:59', NULL), (159, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-08 01:32:29', NULL), (160, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-08 01:32:33', NULL), (161, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data JOJO XIXI at APPROVAL', '', 2, '2019-10-08 01:32:58', NULL), (162, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data DODO at APPROVAL', '', 2, '2019-10-08 01:47:00', NULL), (163, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data TITI at APPROVAL', '', 2, '2019-10-08 01:49:35', NULL), (164, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-08 01:51:41', NULL), (165, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-08 01:51:45', NULL), (166, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-09 02:39:26', NULL), (167, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/users/add-save', 'Add New Data WENNY at Users Management', '', 1, '2019-10-09 02:56:30', NULL), (168, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/6', 'Update data APPROVAL at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>sorting</td><td>3</td><td></td></tr></tbody></table>', 1, '2019-10-09 02:58:32', NULL), (169, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-09 02:58:42', NULL), (170, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 4, '2019-10-09 02:58:54', NULL), (171, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 4, '2019-10-09 03:01:08', NULL), (172, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-09 03:03:01', NULL), (173, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-09 03:03:18', NULL), (174, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-09 03:03:25', NULL), (175, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-09 03:03:29', NULL), (176, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/delete/2', 'Delete data JOHANT at APPROVAL', '', 1, '2019-10-09 03:04:09', NULL), (177, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/delete/3', 'Delete data JOJO XIXI at APPROVAL', '', 1, '2019-10-09 03:04:13', NULL), (178, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-09 18:54:29', NULL), (179, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-09 18:55:45', NULL), (180, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/5', 'Update data TITI at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>ditujukan_kepada</td><td>2</td><td>dsgsdgsgdsgs</td></tr><tr><td>status</td><td>Selesai</td><td></td></tr></tbody></table>', 1, '2019-10-09 19:03:24', NULL), (181, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/delete/5', 'Delete data TITI at APPROVAL', '', 2, '2019-10-09 19:05:42', NULL), (182, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/delete/4', 'Delete data DODO at APPROVAL', '', 2, '2019-10-09 19:05:46', NULL), (183, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data CICIC at APPROVAL', '', 2, '2019-10-09 19:06:05', NULL), (184, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-09 19:11:56', NULL), (185, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-09 19:12:00', NULL), (186, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data RRRRRRR at APPROVAL', '', 2, '2019-10-09 19:12:26', NULL), (187, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data BBBBBB at APPROVAL', '', 2, '2019-10-09 19:14:09', NULL), (188, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/delete/6', 'Delete data CICIC at APPROVAL', '', 2, '2019-10-09 19:14:34', NULL), (189, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/delete/1', 'Delete data JOHANT at APPROVAL', '', 2, '2019-10-09 19:14:38', NULL), (190, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data VVVV at APPROVAL', '', 2, '2019-10-09 19:15:54', NULL), (191, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/9', 'Update data VVVV at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>ditujukan_kepada</td><td></td><td></td></tr><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Reject</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-09 19:16:54', NULL), (192, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/9', 'Update data VVVV at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>ditujukan_kepada</td><td></td><td></td></tr><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Reject</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-09 19:23:39', NULL), (193, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/9', 'Update data VVVV at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>ditujukan_kepada</td><td></td><td></td></tr><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Approve</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-09 19:29:34', NULL), (194, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/9', 'Update data VVVV at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>ditujukan_kepada</td><td></td><td></td></tr><tr><td>keterangan</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-09 19:59:41', NULL), (195, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/9', 'Update data VVVV at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>ditujukan_kepada</td><td></td><td></td></tr><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Approve</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-09 20:01:12', NULL), (196, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/8', 'Update data BBBBBB at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>ditujukan_kepada</td><td></td><td></td></tr><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Approve</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-09 20:02:10', NULL), (197, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/9', 'Update data VVVV at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>ditujukan_kepada</td><td></td><td></td></tr><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Approve</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-09 20:04:07', NULL), (198, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/9', 'Update data VVVV at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>ditujukan_kepada</td><td></td><td></td></tr><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Reject</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-09 20:04:24', NULL), (199, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/9', 'Update data VVVV at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>ditujukan_kepada</td><td></td><td></td></tr><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Approve</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-09 20:06:35', NULL), (200, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/8', 'Update data BBBBBB at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>ditujukan_kepada</td><td></td><td></td></tr><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Reject</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-09 20:06:46', NULL), (201, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/9', 'Update data VVVV at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>ditujukan_kepada</td><td></td><td></td></tr><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Reject</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-09 20:13:01', NULL), (202, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/users/delete/4', 'Delete data WENNY at Users Management', '', 1, '2019-10-09 22:01:27', NULL), (203, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-09 23:14:38', NULL), (204, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-09 23:14:47', NULL), (205, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-09 23:21:49', NULL), (206, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-09 23:21:52', NULL), (207, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/6', 'Update data APPROVAL at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>sorting</td><td>3</td><td></td></tr></tbody></table>', 1, '2019-10-09 23:22:20', NULL), (208, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval', 'Try view the data :name at APPROVAL', '', 3, '2019-10-09 23:22:31', NULL), (209, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval', 'Try view the data :name at APPROVAL', '', 3, '2019-10-09 23:22:33', NULL), (210, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval', 'Try view the data :name at APPROVAL', '', 3, '2019-10-09 23:22:33', NULL), (211, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval', 'Try view the data :name at APPROVAL', '', 3, '2019-10-09 23:23:17', NULL), (212, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-09 23:23:24', NULL), (213, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-09 23:23:28', NULL), (214, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data FFFFFFFFFFFFFFFFFFF at APPROVAL', '', 3, '2019-10-09 23:25:43', NULL), (215, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-09 23:26:04', NULL), (216, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-09 23:26:08', NULL), (217, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-09 23:26:43', NULL), (218, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-09 23:26:47', NULL), (219, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-09 23:26:55', NULL), (220, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-09 23:27:03', NULL), (221, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-09 23:27:21', NULL), (222, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-09 23:27:25', NULL), (223, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-09 23:28:16', NULL), (224, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-09 23:28:19', NULL), (225, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-09 23:30:50', NULL), (226, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-09 23:30:56', NULL), (227, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-09 23:32:11', NULL), (228, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-09 23:32:14', NULL), (229, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-09 23:33:05', NULL), (230, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-09 23:33:09', NULL), (231, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data KLKLKLKL at APPROVAL', '', 3, '2019-10-10 00:05:01', NULL), (232, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 00:05:08', NULL), (233, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:05:12', NULL), (234, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:05:50', NULL), (235, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:05:55', NULL), (236, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:06:23', NULL), (237, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:06:26', NULL), (238, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:07:25', NULL), (239, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:07:29', NULL), (240, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:07:45', NULL), (241, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 00:07:50', NULL), (242, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 00:07:58', NULL), (243, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:08:02', NULL), (244, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/delete/10', 'Delete data FFFFFFFFFFFFFFFFFFF at APPROVAL', '', 2, '2019-10-10 00:08:13', NULL), (245, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:09:46', NULL), (246, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 00:09:56', NULL), (247, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data HHHNNHHNN at APPROVAL', '', 3, '2019-10-10 00:10:07', NULL), (248, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 00:11:08', NULL), (249, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:11:11', NULL), (250, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data VVBVBVB at APPROVAL', '', 2, '2019-10-10 00:17:16', NULL), (251, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:19:25', NULL), (252, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:19:36', NULL), (253, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:20:13', NULL), (254, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 00:20:17', NULL), (255, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 00:21:04', NULL), (256, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:21:17', NULL), (257, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:21:38', NULL), (258, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 00:21:42', NULL), (259, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 00:22:07', NULL), (260, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:22:11', NULL), (261, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:23:16', NULL), (262, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:23:20', NULL), (263, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:25:34', NULL), (264, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 00:25:39', NULL), (265, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data XCXCXCXCXC at APPROVAL', '', 3, '2019-10-10 00:26:52', NULL), (266, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 00:26:57', NULL), (267, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:27:09', NULL), (268, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:32:34', NULL), (269, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 00:32:37', NULL), (270, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 00:34:31', NULL), (271, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:34:34', NULL), (272, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:34:41', NULL), (273, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 00:37:01', NULL), (274, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data pooopopopopopo at APPROVAL', '', 3, '2019-10-10 00:37:34', NULL), (275, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 00:37:40', NULL), (276, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:37:43', NULL), (277, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:39:23', NULL), (278, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 00:39:26', NULL), (279, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 00:44:42', NULL), (280, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:44:45', NULL), (281, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:48:37', NULL), (282, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 00:48:44', NULL), (283, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 00:49:41', NULL), (284, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:49:47', NULL), (285, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/users/edit-save/3', 'Update data accounting at Users Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>password</td><td><PASSWORD></td><td></td></tr><tr><td>id_cms_privileges</td><td>3</td><td>2</td></tr><tr><td>status</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-10 00:58:49', NULL), (286, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 00:58:59', NULL), (287, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 00:59:02', NULL), (288, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 00:59:16', NULL), (289, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 00:59:19', NULL), (290, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data FGFGFGFGFGFG at APPROVAL', '', 2, '2019-10-10 01:11:53', NULL), (291, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 01:25:08', NULL), (292, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 01:25:12', NULL), (293, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 01:26:00', NULL), (294, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 01:26:04', NULL), (295, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 01:26:10', NULL), (296, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 01:26:13', NULL), (297, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 01:26:48', NULL), (298, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 01:26:51', NULL), (299, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 01:28:28', NULL), (300, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 01:28:31', NULL), (301, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 02:19:32', NULL), (302, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 02:19:36', NULL), (303, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-10 02:44:59', NULL), (304, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 02:45:27', NULL), (305, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 02:45:30', NULL), (306, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 02:45:51', NULL), (307, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 02:45:54', NULL), (308, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data BABABABABABABABA at APPROVAL', '', 3, '2019-10-10 02:50:15', NULL), (309, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data ASASSASASAS at APPROVAL', '', 3, '2019-10-10 02:51:08', NULL), (310, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-10 18:44:35', NULL), (311, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 18:45:05', NULL), (312, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 18:45:22', NULL), (313, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 18:45:26', NULL), (314, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 18:45:45', NULL), (315, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 18:45:48', NULL), (316, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 18:47:15', NULL), (317, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 18:47:19', NULL), (318, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 18:50:33', NULL), (319, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 18:50:36', NULL); INSERT INTO `cms_logs` (`id`, `ipaddress`, `useragent`, `url`, `description`, `details`, `id_cms_users`, `created_at`, `updated_at`) VALUES (320, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 19:07:18', NULL), (321, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-10 19:07:21', NULL), (322, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/delete/13', 'Delete data VVBVBVB at APPROVAL', '', 1, '2019-10-10 19:18:10', NULL), (323, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/delete/12', 'Delete data HHHNNHHNN at APPROVAL', '', 1, '2019-10-10 19:18:16', NULL), (324, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/delete/11', 'Delete data KLKLKLKL at APPROVAL', '', 1, '2019-10-10 19:18:22', NULL), (325, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/delete/9', 'Delete data VVVV at APPROVAL', '', 1, '2019-10-10 19:18:26', NULL), (326, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/action-selected', 'Delete data 8,7 at APPROVAL', '', 1, '2019-10-10 19:18:38', NULL), (327, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/15', 'Update data pooopopopopopo at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Approve</td><td>Posting</td></tr></tbody></table>', 1, '2019-10-10 19:18:50', NULL), (328, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/sppd/add-save', 'Add New Data NANANANANA se7en at SPPD KASBON', '', 1, '2019-10-10 19:58:28', NULL), (329, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-10 20:00:37', NULL), (330, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 20:00:41', NULL), (331, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 20:02:57', NULL), (332, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 20:03:22', NULL), (333, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/sppd/delete/10', 'Delete data JOHANT at SPPD KASBON', '', 3, '2019-10-10 20:03:31', NULL), (334, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/users/edit-save/3', 'Update data accounting at Users Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>password</td><td><PASSWORD></td><td></td></tr><tr><td>id_cms_privileges</td><td>2</td><td>3</td></tr><tr><td>status</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-10 20:04:24', NULL), (335, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-10 20:04:38', NULL), (336, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-10 20:04:42', NULL), (337, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/sppd/edit-save/12', 'Update data NANANANANA se7en at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td></td></tr></tbody></table>', 3, '2019-10-10 20:05:00', NULL), (338, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/sppd/edit-save/12', 'Update data NANANANANA se7en at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 3, '2019-10-10 20:05:17', NULL), (339, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-13 18:09:50', NULL), (340, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-13 18:15:50', NULL), (341, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-13 18:20:37', NULL), (342, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-13 18:20:42', NULL), (343, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-13 18:27:14', NULL), (344, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-13 18:27:20', NULL), (345, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-13 18:30:45', NULL), (346, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-13 18:30:49', NULL), (347, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/edit-save/15', 'Update data pooopopopopopo at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>keterangan</td><td></td><td></td></tr><tr><td>status</td><td>Reject</td><td>Posting</td></tr></tbody></table>', 3, '2019-10-13 18:31:16', NULL), (348, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-13 18:31:23', NULL), (349, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-13 18:31:27', NULL), (350, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-13 20:24:28', NULL), (351, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-13 20:24:37', NULL), (352, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-13 20:26:07', NULL), (353, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-13 20:26:10', NULL), (354, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-13 20:54:35', NULL), (355, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-13 20:54:38', NULL), (356, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-13 21:08:38', NULL), (357, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-13 21:08:44', NULL), (358, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-13 21:09:05', NULL), (359, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-13 21:09:10', NULL), (360, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-13 21:11:48', NULL), (361, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-13 21:11:51', NULL), (362, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-13 21:13:20', NULL), (363, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-13 21:13:24', NULL), (364, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-13 21:36:35', NULL), (365, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-13 22:45:38', NULL), (366, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-13 22:45:48', NULL), (367, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-13 22:45:52', NULL), (368, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-13 22:52:37', NULL), (369, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-13 22:52:55', NULL), (370, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-13 23:12:43', NULL), (371, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-13 23:12:47', NULL), (372, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-13 23:13:31', NULL), (373, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-13 23:13:35', NULL), (374, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-14 01:25:04', NULL), (375, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-14 01:25:46', NULL), (376, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-14 01:32:38', NULL), (377, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-14 01:32:42', NULL), (378, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/approval/delete/18', 'Delete data ASASSASASAS at APPROVAL', '', 1, '2019-10-14 01:32:51', NULL), (379, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data RRRRRRTTTTTTTT at APPROVAL', '', 3, '2019-10-14 02:59:01', NULL), (380, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-14 02:59:09', NULL), (381, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-14 02:59:13', NULL), (382, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-14 19:09:20', NULL), (383, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-14 19:18:58', NULL), (384, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-14 19:19:05', NULL), (385, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-14 19:19:08', NULL), (386, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-14 19:21:15', NULL), (387, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-14 19:21:19', NULL), (388, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-14 19:23:10', NULL), (389, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-14 19:23:14', NULL), (390, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', 'o<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-15 18:58:42', NULL), (391, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/users/add-save', 'Add New Data adminarea at Users Management', '', 1, '2019-10-15 19:03:22', NULL), (392, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/klaim_bs/add-save', 'Add New Data at KLAIM BS & BARANG', '', 1, '2019-10-15 19:29:26', NULL), (393, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/klaim_bs/edit-save/1', 'Update data PT KUNCI SUKSES ABADI at KLAIM BS & BARANG', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td>3</td></tr><tr><td>periode</td><td></td><td>12</td></tr><tr><td>nama_distributor</td><td></td><td>PT KUNCI SUKSES ABADI</td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>up</td><td></td><td>STEFANI</td></tr><tr><td>approval_nsm</td><td></td><td>2019-10-07</td></tr><tr><td>approval_gm</td><td></td><td>2019-10-08</td></tr><tr><td>approval_direksi</td><td></td><td>2019-10-23</td></tr><tr><td>kirim_area</td><td></td><td>2019-10-15</td></tr><tr><td>up_area</td><td></td><td>LELY</td></tr></tbody></table>', 1, '2019-10-15 19:50:40', NULL), (394, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-15 21:36:40', NULL), (395, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-15 21:37:20', NULL), (396, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-15 21:37:24', NULL), (397, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-15 21:37:49', NULL), (398, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-15 21:37:54', NULL), (399, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/klaim_biaya/add-save', 'Add New Data Bobby at KLAIM BIAYA', '', 1, '2019-10-15 21:52:31', NULL), (400, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/klaim_biaya/edit-save/1', 'Update data Bobby at KLAIM BIAYA', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>keterangan</td><td>fdsfsdagfgggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg</td><td>fdsfsdagfggggggggggg</td></tr></tbody></table>', 1, '2019-10-15 21:52:55', NULL), (401, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/5', 'Update data DIREKTORI FILE at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>type</td><td>Route</td><td>Module</td></tr><tr><td>path</td><td>AdminFileserversControllerGetIndex</td><td>fileservers</td></tr><tr><td>color</td><td></td><td>normal</td></tr><tr><td>sorting</td><td>2</td><td></td></tr></tbody></table>', 1, '2019-10-15 22:08:23', NULL), (402, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/7', 'Update data KLAIM BS & BARANG at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>type</td><td>Route</td><td>Module</td></tr><tr><td>path</td><td>AdminKlaimBsControllerGetIndex</td><td>klaim_bs</td></tr><tr><td>color</td><td></td><td>normal</td></tr><tr><td>sorting</td><td>4</td><td></td></tr></tbody></table>', 1, '2019-10-15 22:08:50', NULL), (403, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/8', 'Update data KLAIM BIAYA at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>type</td><td>Route</td><td>Module</td></tr><tr><td>path</td><td>AdminKlaimBiayaControllerGetIndex</td><td>klaim_biaya</td></tr><tr><td>color</td><td></td><td>normal</td></tr><tr><td>sorting</td><td>5</td><td></td></tr></tbody></table>', 1, '2019-10-15 22:09:09', NULL), (404, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/fileservers', 'Try view the data :name at DIREKTORI FILE', '', 3, '2019-10-15 22:09:23', NULL), (405, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-15 22:09:28', NULL), (406, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-15 22:09:33', NULL), (407, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/menu_management/delete/3', 'Delete data Tambah User at Menu Management', '', 1, '2019-10-15 22:10:46', NULL), (408, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/klaim_biaya', 'Try view the data :name at KLAIM BIAYA', '', 2, '2019-10-15 22:10:55', NULL), (409, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/klaim_bs', 'Try view the data :name at KLAIM BS & BARANG', '', 2, '2019-10-15 22:10:57', NULL), (410, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/fileservers', 'Try view the data :name at DIREKTORI FILE', '', 2, '2019-10-15 22:11:54', NULL), (411, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/klaim_bs', 'Try view the data :name at KLAIM BS & BARANG', '', 2, '2019-10-15 22:11:56', NULL), (412, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/klaim_biaya', 'Try view the data :name at KLAIM BIAYA', '', 2, '2019-10-15 22:11:57', NULL), (413, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-15 22:12:01', NULL), (414, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-15 22:12:04', NULL), (415, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-15 22:12:22', NULL), (416, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-15 23:50:55', NULL), (417, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-15 23:53:38', NULL), (418, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-15 23:53:43', NULL), (419, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-15 23:55:55', NULL), (420, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/users/delete-image', 'Delete the image of adminarea at Users Management', '', 1, '2019-10-15 23:57:20', NULL), (421, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/users/edit-save/5', 'Update data adminarea at Users Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>photo</td><td></td><td>uploads/1/2019-10/apple_icon_72x72.png</td></tr><tr><td>password</td><td><PASSWORD></td><td></td></tr><tr><td>status</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-15 23:57:47', NULL), (422, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-16 01:00:48', NULL), (423, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-16 01:11:15', NULL), (424, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-16 01:16:02', NULL), (425, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/klaim_biaya/edit-save/1', 'Update data Bobby at KLAIM BIAYA', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>tgl_terima_revisi</td><td></td><td></td></tr><tr><td>jatuh_tempo_pembayaran</td><td></td><td></td></tr><tr><td>fam</td><td></td><td></td></tr><tr><td>gm</td><td></td><td></td></tr><tr><td>finance</td><td></td><td></td></tr><tr><td>tgl_bayar</td><td></td><td></td></tr><tr><td>status</td><td></td><td>Posting</td></tr></tbody></table>', 2, '2019-10-16 01:22:58', NULL), (426, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/klaim_biaya/edit-save/1', 'Update data Bobby at KLAIM BIAYA', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>tgl_terima_revisi</td><td></td><td></td></tr><tr><td>jatuh_tempo_pembayaran</td><td></td><td></td></tr><tr><td>fam</td><td></td><td></td></tr><tr><td>gm</td><td></td><td></td></tr><tr><td>finance</td><td></td><td></td></tr><tr><td>tgl_bayar</td><td></td><td></td></tr></tbody></table>', 2, '2019-10-16 01:23:07', NULL), (427, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/4', 'Update data SPPD KASBON at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>color</td><td>normal</td><td>light-blue</td></tr><tr><td>sorting</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-16 01:27:08', NULL), (428, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/5', 'Update data DIREKTORI FILE at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>color</td><td>normal</td><td>yellow</td></tr><tr><td>sorting</td><td>2</td><td></td></tr></tbody></table>', 1, '2019-10-16 01:27:31', NULL), (429, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/7', 'Update data KLAIM BS & BARANG at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>color</td><td>normal</td><td>aqua</td></tr><tr><td>sorting</td><td>4</td><td></td></tr></tbody></table>', 1, '2019-10-16 01:27:48', NULL), (430, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/8', 'Update data KLAIM BIAYA at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>color</td><td>normal</td><td>muted</td></tr><tr><td>sorting</td><td>5</td><td></td></tr></tbody></table>', 1, '2019-10-16 01:28:04', NULL), (431, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/menu_management/edit-save/8', 'Update data KLAIM BIAYA at Menu Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>color</td><td>muted</td><td>green</td></tr><tr><td>sorting</td><td>5</td><td></td></tr></tbody></table>', 1, '2019-10-16 01:28:30', NULL), (432, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-16 01:29:04', NULL), (433, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-16 01:29:32', NULL), (434, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-16 01:36:56', NULL), (435, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/sppd/edit-save/12', 'Update data NANANANANA se7en at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 2, '2019-10-16 01:37:16', NULL), (436, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/sppd/edit-save/12', 'Update data NANANANANA se7en at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Posting</td><td></td></tr></tbody></table>', 2, '2019-10-16 01:37:42', NULL), (437, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/sppd/edit-save/12', 'Update data NANANANANA se7en at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr></tbody></table>', 2, '2019-10-16 01:37:53', NULL), (438, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/sppd/edit-save/12', 'Update data NANANANANA se7en at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td></td></tr></tbody></table>', 2, '2019-10-16 01:38:07', NULL), (439, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/sppd/add-save', 'Add New Data EEERERRER at SPPD KASBON', '', 2, '2019-10-16 01:38:36', NULL), (440, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-16 01:39:25', NULL), (441, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/sppd/edit-save/13', 'Update data EEERERRER at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr></tbody></table>', 2, '2019-10-16 01:41:59', NULL), (442, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/sppd/edit-save/12', 'Update data NANANANANA se7en at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 2, '2019-10-16 02:09:43', NULL), (443, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/klaim_bs/edit-save/1', 'Update data PT KUNCI SUKSES ABADI at KLAIM BS & BARANG', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 2, '2019-10-16 02:11:59', NULL), (444, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/klaim_bs/add-save', 'Add New Data at KLAIM BS & BARANG', '', 2, '2019-10-16 02:12:17', NULL), (445, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/sppd/edit-save/12', 'Update data NANANANANA se7en at SPPD KASBON', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>area</td><td></td><td></td></tr><tr><td>periode</td><td></td><td></td></tr><tr><td>jenis_pembayaran</td><td></td><td></td></tr><tr><td>tahun</td><td></td><td></td></tr><tr><td>tujuan</td><td></td><td></td></tr><tr><td>nominal</td><td></td><td></td></tr><tr><td>tgl_kirim_ke_pabrik</td><td></td><td></td></tr><tr><td>tgl_kirim_lppd_ke_accounting</td><td></td><td></td></tr><tr><td>nominal_realisasi</td><td></td><td></td></tr><tr><td>tgl_byr_sppd</td><td></td><td></td></tr><tr><td>tgl_terima_lppd</td><td></td><td></td></tr><tr><td>nominal_payment</td><td></td><td></td></tr><tr><td>tgl_penyelesaian</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 2, '2019-10-16 02:14:40', NULL), (446, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/klaim_biaya/edit-save/1', 'Update data Bobby at KLAIM BIAYA', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>tgl_terima_revisi</td><td></td><td></td></tr><tr><td>jatuh_tempo_pembayaran</td><td></td><td></td></tr><tr><td>fam</td><td></td><td></td></tr><tr><td>gm</td><td></td><td></td></tr><tr><td>finance</td><td></td><td></td></tr><tr><td>tgl_bayar</td><td></td><td></td></tr><tr><td>status</td><td>Selesai</td><td>Posting</td></tr></tbody></table>', 2, '2019-10-16 02:15:46', NULL), (447, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/klaim_biaya/edit-save/1', 'Update data Bobby at KLAIM BIAYA', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>tgl_terima_revisi</td><td></td><td></td></tr><tr><td>jatuh_tempo_pembayaran</td><td></td><td></td></tr><tr><td>fam</td><td></td><td></td></tr><tr><td>gm</td><td></td><td></td></tr><tr><td>finance</td><td></td><td></td></tr><tr><td>tgl_bayar</td><td></td><td></td></tr><tr><td>nominal_bayar</td><td>677777</td><td>1000000</td></tr></tbody></table>', 2, '2019-10-16 02:16:09', NULL), (448, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/klaim_biaya/edit-save/1', 'Update data Bobby at KLAIM BIAYA', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>tgl_terima_revisi</td><td></td><td></td></tr><tr><td>jatuh_tempo_pembayaran</td><td></td><td></td></tr><tr><td>fam</td><td></td><td></td></tr><tr><td>gm</td><td></td><td></td></tr><tr><td>finance</td><td></td><td></td></tr><tr><td>tgl_bayar</td><td></td><td></td></tr></tbody></table>', 2, '2019-10-16 02:17:24', NULL), (449, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/klaim_biaya/edit-save/1', 'Update data Bobby at KLAIM BIAYA', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>nominal</td><td>2000000</td><td>4000000</td></tr><tr><td>tgl_terima_revisi</td><td></td><td></td></tr><tr><td>jatuh_tempo_pembayaran</td><td></td><td></td></tr><tr><td>fam</td><td></td><td></td></tr><tr><td>gm</td><td></td><td></td></tr><tr><td>finance</td><td></td><td></td></tr><tr><td>tgl_bayar</td><td></td><td></td></tr></tbody></table>', 2, '2019-10-16 02:17:40', NULL), (450, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-16 18:24:27', NULL), (451, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-16 19:16:25', NULL), (452, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data OZZY OZZY OZZY at APPROVAL', '', 3, '2019-10-16 19:18:42', NULL), (453, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-16 19:18:49', NULL), (454, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-16 19:18:53', NULL), (455, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-16 19:20:06', NULL), (456, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-16 19:27:11', NULL), (457, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-16 19:27:14', NULL), (458, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-16 19:27:21', NULL), (459, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-16 19:27:25', NULL), (460, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data HJHJHJHJH HJHJHJ HJHJHJ H at APPROVAL', '', 2, '2019-10-16 19:27:54', NULL), (461, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-16 19:28:02', NULL), (462, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-16 19:28:05', NULL), (463, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-16 19:28:18', NULL), (464, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-16 19:28:21', NULL), (465, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-16 19:28:53', NULL), (466, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL>.id login with IP Address 127.0.0.1', '', 3, '2019-10-16 19:28:56', NULL), (467, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/approval/delete/21', 'Delete data HJHJHJHJH HJHJHJ HJHJHJ H at APPROVAL', '', 1, '2019-10-16 19:30:01', NULL), (468, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-16 19:30:09', NULL), (469, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-16 19:30:14', NULL), (470, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/delete/20', 'Delete data OZZY OZZY OZZY at APPROVAL', '', 2, '2019-10-16 19:30:20', NULL), (471, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/delete/19', 'Delete data RRRRRRTTTTTTTT at APPROVAL', '', 2, '2019-10-16 19:30:24', NULL), (472, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/delete/17', 'Delete data BABABABABABABABA at APPROVAL', '', 2, '2019-10-16 19:30:27', NULL); INSERT INTO `cms_logs` (`id`, `ipaddress`, `useragent`, `url`, `description`, `details`, `id_cms_users`, `created_at`, `updated_at`) VALUES (473, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/delete/16', 'Delete data FGFGFGFGFGFG at APPROVAL', '', 2, '2019-10-16 19:30:30', NULL), (474, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/delete/14', 'Delete data XCXCXCXCXC at APPROVAL', '', 2, '2019-10-16 19:36:14', NULL), (475, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-16 19:36:22', NULL), (476, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-16 19:36:26', NULL), (477, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/approval/add-save', 'Add New Data OZZY OZZY OZZY at APPROVAL', '', 3, '2019-10-16 19:37:20', NULL), (478, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-16 19:37:33', NULL), (479, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-16 19:37:36', NULL), (480, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-16 19:38:23', NULL), (481, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 5, '2019-10-16 19:38:43', NULL), (482, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/users/add-save', 'Add New Data wenny at Users Management', '', 1, '2019-10-16 19:40:02', NULL), (483, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 5, '2019-10-16 19:40:46', NULL), (484, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 6, '2019-10-16 19:40:57', NULL), (485, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 6, '2019-10-16 19:44:34', NULL), (486, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-16 19:44:39', NULL), (487, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-16 20:10:10', NULL), (488, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/module_generator/delete/15', 'Delete data DIREKTORI FILE at Module Generator', '', 1, '2019-10-16 20:10:28', NULL), (489, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/module_generator/delete/18', 'Delete data KLAIM BIAYA at Module Generator', '', 1, '2019-10-16 20:10:33', NULL), (490, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/module_generator/delete/17', 'Delete data KLAIM BS & BARANG at Module Generator', '', 1, '2019-10-16 20:10:39', NULL), (491, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/module_generator/delete/14', 'Delete data SPPD KASBON at Module Generator', '', 1, '2019-10-16 20:10:44', NULL), (492, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/menu_management/delete/7', 'Delete data KLAIM BS & BARANG at Menu Management', '', 1, '2019-10-16 20:10:54', NULL), (493, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/menu_management/delete/8', 'Delete data KLAIM BIAYA at Menu Management', '', 1, '2019-10-16 20:10:58', NULL), (494, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/menu_management/delete/5', 'Delete data DIREKTORI FILE at Menu Management', '', 1, '2019-10-16 20:11:02', NULL), (495, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/menu_management/delete/4', 'Delete data SPPD KASBON at Menu Management', '', 1, '2019-10-16 20:11:07', NULL), (496, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-16 20:15:28', NULL), (497, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-16 20:15:49', NULL), (498, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/users/edit-save/1', 'Update data Super Admin at Users Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>email</td><td><EMAIL></td><td><EMAIL></td></tr><tr><td>password</td><td><PASSWORD></td><td><PASSWORD>$10$<PASSWORD>DB<PASSWORD>GErpJbqeQEce/kDUPJBdbuY9Ft1kk1RfDrSX50yLG5q</td></tr><tr><td>id_cms_privileges</td><td>1</td><td></td></tr><tr><td>status</td><td>Active</td><td></td></tr></tbody></table>', 1, '2019-10-16 20:16:13', NULL), (499, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-16 20:16:18', NULL), (500, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-16 20:16:28', NULL), (501, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/users/delete-image', 'Delete the image of Heny at Users Management', '', 1, '2019-10-16 20:17:03', NULL), (502, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/users/edit-save/2', 'Update data malangmlg at Users Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>name</td><td>Heny</td><td>malangmlg</td></tr><tr><td>photo</td><td></td><td>uploads/1/2019-10/app.jpg</td></tr><tr><td>email</td><td>hen<EMAIL></td><td><EMAIL></td></tr><tr><td>password</td><td><PASSWORD></td><td></td></tr><tr><td>status</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-16 20:18:11', NULL), (503, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/users/delete/5', 'Delete data adminarea at Users Management', '', 1, '2019-10-16 20:18:19', NULL), (504, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/users/delete/6', 'Delete data wenny at Users Management', '', 1, '2019-10-16 20:18:23', NULL), (505, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/users/delete-image', 'Delete the image of accounting at Users Management', '', 1, '2019-10-16 20:18:41', NULL), (506, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/users/edit-save/3', 'Update data accounting at Users Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>photo</td><td></td><td>uploads/1/2019-10/app.jpg</td></tr><tr><td>password</td><td><PASSWORD></td><td></td></tr><tr><td>status</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-16 20:18:49', NULL), (507, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/users/edit-save/3', 'Update data member at Users Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>name</td><td>accounting</td><td>member</td></tr><tr><td>email</td><td><EMAIL></td><td><EMAIL></td></tr><tr><td>password</td><td>$2y$10$DDsm/MR8Wbbg.8LD4FfsKOxtOInY7ZDbpOK.tJlr0Vk1oa9wPc1CO</td><td></td></tr><tr><td>status</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-16 20:19:23', NULL), (508, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/users/edit-save/2', 'Update data admin at Users Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>name</td><td>malangmlg</td><td>admin</td></tr><tr><td>email</td><td><EMAIL></td><td><EMAIL></td></tr><tr><td>password</td><td><PASSWORD>$10$TBLmSLCr<PASSWORD>HP7HTgcnjFuS8qkQQCx3dUBeD.YqsimhmB5bNVjfum</td><td>$2y$10$BRqCzJj4U1cOZbu.C5kPnu.OtGIUgwNa8WuFllGiVY.jxdK8pPMiy</td></tr><tr><td>status</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-16 20:20:18', NULL), (509, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/users/edit-save/1', 'Update data Super Admin at Users Management', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>email</td><td><EMAIL></td><td><EMAIL></td></tr><tr><td>password</td><td><PASSWORD></td><td></td></tr><tr><td>id_cms_privileges</td><td>1</td><td></td></tr><tr><td>status</td><td>Active</td><td></td></tr></tbody></table>', 1, '2019-10-16 20:20:34', NULL), (510, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-16 20:20:39', NULL), (511, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-16 20:20:52', NULL), (512, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/approval/edit-save/22', 'Update data TEST TEST TEST at APPROVAL', '<table class=\"table table-striped\"><thead><tr><th>Key</th><th>Old Value</th><th>New Value</th></thead><tbody><tr><td>nama</td><td>OZZY OZZY OZZY</td><td>TEST TEST TEST </td></tr><tr><td>keterangan</td><td></td><td></td></tr></tbody></table>', 1, '2019-10-16 20:21:09', NULL), (513, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-16 20:21:31', NULL), (514, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 2, '2019-10-16 20:21:40', NULL), (515, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 2, '2019-10-16 20:21:50', NULL), (516, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 3, '2019-10-16 20:21:59', NULL), (517, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 3, '2019-10-16 20:22:06', NULL), (518, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/login', '<EMAIL> login with IP Address 127.0.0.1', '', 1, '2019-10-16 20:22:21', NULL), (519, '127.0.0.1', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36', 'http://localhost:8000/admin/logout', '<EMAIL> logout', '', 1, '2019-10-16 20:23:04', NULL); -- -------------------------------------------------------- -- -- Table structure for table `cms_menus` -- CREATE TABLE `cms_menus` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `type` varchar(255) COLLATE utf8_unicode_ci NOT NULL DEFAULT 'url', `path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `color` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `icon` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `parent_id` int(11) DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT 1, `is_dashboard` tinyint(1) NOT NULL DEFAULT 0, `id_cms_privileges` int(11) DEFAULT NULL, `sorting` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `cms_menus` -- INSERT INTO `cms_menus` (`id`, `name`, `type`, `path`, `color`, `icon`, `parent_id`, `is_active`, `is_dashboard`, `id_cms_privileges`, `sorting`, `created_at`, `updated_at`) VALUES (6, 'APPROVAL', 'Module', 'approval', 'green', 'fa fa-close', 0, 1, 0, 1, 3, '2019-10-03 04:10:14', '2019-10-09 23:22:19'); -- -------------------------------------------------------- -- -- Table structure for table `cms_menus_privileges` -- CREATE TABLE `cms_menus_privileges` ( `id` int(10) UNSIGNED NOT NULL, `id_cms_menus` int(11) DEFAULT NULL, `id_cms_privileges` int(11) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `cms_menus_privileges` -- INSERT INTO `cms_menus_privileges` (`id`, `id_cms_menus`, `id_cms_privileges`) VALUES (1, 1, 1), (2, 2, 1), (6, 3, 2), (7, NULL, 2), (20, 6, 2), (21, 6, 3), (22, 6, 1), (34, 4, 2), (35, 4, 3), (36, 4, 1), (37, 5, 2), (38, 5, 3), (39, 5, 1), (40, 7, 2), (41, 7, 3), (42, 7, 1), (46, 8, 2), (47, 8, 3), (48, 8, 1); -- -------------------------------------------------------- -- -- Table structure for table `cms_moduls` -- CREATE TABLE `cms_moduls` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `icon` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `path` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `table_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `controller` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `is_protected` tinyint(1) NOT NULL DEFAULT 0, `is_active` tinyint(1) NOT NULL DEFAULT 0, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `cms_moduls` -- INSERT INTO `cms_moduls` (`id`, `name`, `icon`, `path`, `table_name`, `controller`, `is_protected`, `is_active`, `created_at`, `updated_at`, `deleted_at`) VALUES (1, 'Notifications', 'fa fa-cog', 'notifications', 'cms_notifications', 'NotificationsController', 1, 1, '2019-09-05 21:10:19', NULL, NULL), (2, 'Privileges', 'fa fa-cog', 'privileges', 'cms_privileges', 'PrivilegesController', 1, 1, '2019-09-05 21:10:19', NULL, NULL), (3, 'Privileges Roles', 'fa fa-cog', 'privileges_roles', 'cms_privileges_roles', 'PrivilegesRolesController', 1, 1, '2019-09-05 21:10:19', NULL, NULL), (4, 'Users Management', 'fa fa-users', 'users', 'cms_users', 'AdminCmsUsersController', 0, 1, '2019-09-05 21:10:19', NULL, NULL), (5, 'Settings', 'fa fa-cog', 'settings', 'cms_settings', 'SettingsController', 1, 1, '2019-09-05 21:10:19', NULL, NULL), (6, 'Module Generator', 'fa fa-database', 'module_generator', 'cms_moduls', 'ModulsController', 1, 1, '2019-09-05 21:10:19', NULL, NULL), (7, 'Menu Management', 'fa fa-bars', 'menu_management', 'cms_menus', 'MenusController', 1, 1, '2019-09-05 21:10:19', NULL, NULL), (8, 'Email Templates', 'fa fa-envelope-o', 'email_templates', 'cms_email_templates', 'EmailTemplatesController', 1, 1, '2019-09-05 21:10:19', NULL, NULL), (9, 'Statistic Builder', 'fa fa-dashboard', 'statistic_builder', 'cms_statistics', 'StatisticBuilderController', 1, 1, '2019-09-05 21:10:19', NULL, NULL), (10, 'API Generator', 'fa fa-cloud-download', 'api_generator', '', 'ApiCustomController', 1, 1, '2019-09-05 21:10:19', NULL, NULL), (11, 'Log User Access', 'fa fa-flag-o', 'logs', 'cms_logs', 'LogsController', 1, 1, '2019-09-05 21:10:19', NULL, NULL), (12, 'SPPD KASBON', 'fa fa-pencil', 'sppd', 'sppd', 'AdminSppdController', 0, 0, '2019-09-06 00:51:44', NULL, '2019-09-06 02:09:21'), (13, 'SPPD', 'fa fa-glass', 'sppd', 'sppd', 'AdminSppdController', 0, 0, '2019-09-06 02:22:43', NULL, '2019-09-06 02:23:11'), (14, 'SPPD KASBON', 'fa fa-envelope-o', 'sppd', 'sppd', 'AdminSppdController', 0, 0, '2019-09-06 02:24:52', NULL, '2019-10-16 20:10:44'), (15, 'DIREKTORI FILE', 'fa fa-glass', 'fileservers', 'fileservers', 'AdminFileserversController', 0, 0, '2019-10-03 04:05:02', NULL, '2019-10-16 20:10:28'), (16, 'APPROVAL', 'fa fa-glass', 'approval', 'approval', 'AdminApprovalController', 0, 0, '2019-10-03 04:10:13', NULL, NULL), (17, 'KLAIM BS & BARANG', 'fa fa-trash-o', 'klaim_bs', 'klaim_bs', 'AdminKlaimBsController', 0, 0, '2019-10-15 19:20:26', NULL, '2019-10-16 20:10:39'), (18, 'KLAIM BIAYA', 'fa fa-plus', 'klaim_biaya', 'klaim_biaya', 'AdminKlaimBiayaController', 0, 0, '2019-10-15 20:58:28', NULL, '2019-10-16 20:10:33'); -- -------------------------------------------------------- -- -- Table structure for table `cms_notifications` -- CREATE TABLE `cms_notifications` ( `id` int(10) UNSIGNED NOT NULL, `id_cms_users` int(11) DEFAULT NULL, `content` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `is_read` tinyint(1) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `cms_privileges` -- CREATE TABLE `cms_privileges` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `is_superadmin` tinyint(1) DEFAULT NULL, `theme_color` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `cms_privileges` -- INSERT INTO `cms_privileges` (`id`, `name`, `is_superadmin`, `theme_color`, `created_at`, `updated_at`) VALUES (1, 'Super Administrator', 1, 'skin-green', '2019-09-05 21:10:19', NULL), (2, 'admin', 0, 'skin-yellow', NULL, NULL), (3, 'member', 0, 'skin-yellow', NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `cms_privileges_roles` -- CREATE TABLE `cms_privileges_roles` ( `id` int(10) UNSIGNED NOT NULL, `is_visible` tinyint(1) DEFAULT NULL, `is_create` tinyint(1) DEFAULT NULL, `is_read` tinyint(1) DEFAULT NULL, `is_edit` tinyint(1) DEFAULT NULL, `is_delete` tinyint(1) DEFAULT NULL, `id_cms_privileges` int(11) DEFAULT NULL, `id_cms_moduls` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `cms_privileges_roles` -- INSERT INTO `cms_privileges_roles` (`id`, `is_visible`, `is_create`, `is_read`, `is_edit`, `is_delete`, `id_cms_privileges`, `id_cms_moduls`, `created_at`, `updated_at`) VALUES (1, 1, 1, 1, 1, 1, 1, 4, NULL, NULL), (2, 1, 1, 1, 1, 1, 1, 12, NULL, NULL), (3, 1, 1, 1, 1, 1, 1, 13, NULL, NULL), (4, 1, 1, 1, 1, 1, 1, 14, NULL, NULL), (8, 1, 1, 1, 1, 1, 1, 15, NULL, NULL), (9, 1, 1, 1, 1, 1, 1, 16, NULL, NULL), (15, 1, 1, 1, 1, 1, 1, 17, NULL, NULL), (16, 1, 1, 1, 1, 1, 1, 18, NULL, NULL), (17, 1, 1, 1, 1, 1, 2, 16, NULL, NULL), (18, 1, 1, 1, 1, 1, 2, 15, NULL, NULL), (19, 1, 1, 1, 1, 1, 2, 18, NULL, NULL), (20, 1, 1, 1, 1, 1, 2, 17, NULL, NULL), (21, 1, 1, 1, 1, 1, 2, 14, NULL, NULL), (22, 1, 1, 1, 1, 0, 2, 4, NULL, NULL), (23, 1, 1, 1, 1, 0, 3, 16, NULL, NULL), (24, 1, 0, 1, 0, 0, 3, 15, NULL, NULL), (25, 1, 1, 1, 1, 0, 3, 18, NULL, NULL), (26, 1, 1, 1, 1, 0, 3, 17, NULL, NULL), (27, 1, 1, 1, 1, 0, 3, 14, NULL, NULL); -- -------------------------------------------------------- -- -- Table structure for table `cms_settings` -- CREATE TABLE `cms_settings` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `content` text COLLATE utf8_unicode_ci DEFAULT NULL, `content_input_type` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `dataenum` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `helper` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `group_setting` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `label` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `cms_settings` -- INSERT INTO `cms_settings` (`id`, `name`, `content`, `content_input_type`, `dataenum`, `helper`, `created_at`, `updated_at`, `group_setting`, `label`) VALUES (1, 'login_background_color', '', 'text', NULL, 'Input hexacode', '2019-09-05 21:10:20', NULL, 'Login Register Style', 'Login Background Color'), (2, 'login_font_color', '', 'text', NULL, 'Input hexacode', '2019-09-05 21:10:20', NULL, 'Login Register Style', 'Login Font Color'), (3, 'login_background_image', 'uploads/2019-09/a5283e8533f5f71b58fec5b6e268ac58.jpg', 'upload_image', NULL, NULL, '2019-09-05 21:10:20', NULL, 'Login Register Style', 'Login Background Image'), (4, 'email_sender', '<EMAIL>', 'text', NULL, NULL, '2019-09-05 21:10:20', NULL, 'Email Setting', 'Email Sender'), (5, 'smtp_driver', 'mail', 'select', 'smtp,mail,sendmail', NULL, '2019-09-05 21:10:20', NULL, 'Email Setting', 'Mail Driver'), (6, 'smtp_host', '', 'text', NULL, NULL, '2019-09-05 21:10:20', NULL, 'Email Setting', 'SMTP Host'), (7, 'smtp_port', '25', 'text', NULL, 'default 25', '2019-09-05 21:10:20', NULL, 'Email Setting', 'SMTP Port'), (8, 'smtp_username', '', 'text', NULL, NULL, '2019-09-05 21:10:20', NULL, 'Email Setting', 'SMTP Username'), (9, 'smtp_password', '', 'text', NULL, NULL, '2019-09-05 21:10:20', NULL, 'Email Setting', 'SMTP Password'), (10, 'appname', 'III Approval III', 'text', NULL, NULL, '2019-09-05 21:10:20', NULL, 'Application Setting', 'Application Name'), (11, 'default_paper_size', 'Legal', 'text', NULL, 'Paper size, ex : A4, Legal, etc', '2019-09-05 21:10:20', NULL, 'Application Setting', 'Default Paper Print Size'), (12, 'logo', 'uploads/2019-10/2c9c2f4a95d62e3f0429913f72cfba5f.jpg', 'upload_image', NULL, NULL, '2019-09-05 21:10:20', NULL, 'Application Setting', 'Logo'), (13, 'favicon', NULL, 'upload_image', NULL, NULL, '2019-09-05 21:10:20', NULL, 'Application Setting', 'Favicon'), (14, 'api_debug_mode', 'true', 'select', 'true,false', NULL, '2019-09-05 21:10:20', NULL, 'Application Setting', 'API Debug Mode'), (15, 'google_api_key', '', 'text', NULL, NULL, '2019-09-05 21:10:20', NULL, 'Application Setting', 'Google API Key'), (16, 'google_fcm_key', '', 'text', NULL, NULL, '2019-09-05 21:10:20', NULL, 'Application Setting', 'Google FCM Key'); -- -------------------------------------------------------- -- -- Table structure for table `cms_statistics` -- CREATE TABLE `cms_statistics` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `slug` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `cms_statistic_components` -- CREATE TABLE `cms_statistic_components` ( `id` int(10) UNSIGNED NOT NULL, `id_cms_statistics` int(11) DEFAULT NULL, `componentID` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `component_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `area_name` varchar(55) COLLATE utf8_unicode_ci DEFAULT NULL, `sorting` int(11) DEFAULT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `config` longtext COLLATE utf8_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -------------------------------------------------------- -- -- Table structure for table `cms_users` -- CREATE TABLE `cms_users` ( `id` int(10) UNSIGNED NOT NULL, `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `photo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `email` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `password` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `id_cms_privileges` int(11) DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `status` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `cms_users` -- INSERT INTO `cms_users` (`id`, `name`, `photo`, `email`, `password`, `id_cms_privileges`, `created_at`, `updated_at`, `status`) VALUES (1, 'Super Admin', 'uploads/1/2019-09/windows_10_wallpaper_black_2.jpg', '<EMAIL>', <PASSWORD>ce/kDUPJBdbuY9Ft1kk1RfDrSX50yLG5q', 1, '2019-09-05 21:10:19', '2019-10-16 20:20:34', 'Active'), (2, 'admin', 'uploads/1/2019-10/app.jpg', '<EMAIL>', <PASSWORD>', 2, '2019-09-05 23:16:38', '2019-10-16 20:20:18', NULL), (3, 'member', 'uploads/1/2019-10/app.jpg', '<EMAIL>', <PASSWORD>', 3, '2019-09-05 23:17:14', '2019-10-16 20:19:23', NULL); -- -------------------------------------------------------- -- -- Table structure for table `migrations` -- CREATE TABLE `migrations` ( `id` int(10) UNSIGNED NOT NULL, `migration` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `batch` int(11) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -- -- Dumping data for table `migrations` -- INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (1, '2016_08_07_145904_add_table_cms_apicustom', 1), (2, '2016_08_07_150834_add_table_cms_dashboard', 1), (3, '2016_08_07_151210_add_table_cms_logs', 1), (4, '2016_08_07_151211_add_details_cms_logs', 1), (5, '2016_08_07_152014_add_table_cms_privileges', 1), (6, '2016_08_07_152214_add_table_cms_privileges_roles', 1), (7, '2016_08_07_152320_add_table_cms_settings', 1), (8, '2016_08_07_152421_add_table_cms_users', 1), (9, '2016_08_07_154624_add_table_cms_menus_privileges', 1), (10, '2016_08_07_154624_add_table_cms_moduls', 1), (11, '2016_08_17_225409_add_status_cms_users', 1), (12, '2016_08_20_125418_add_table_cms_notifications', 1), (13, '2016_09_04_033706_add_table_cms_email_queues', 1), (14, '2016_09_16_035347_add_group_setting', 1), (15, '2016_09_16_045425_add_label_setting', 1), (16, '2016_09_17_104728_create_nullable_cms_apicustom', 1), (17, '2016_10_01_141740_add_method_type_apicustom', 1), (18, '2016_10_01_141846_add_parameters_apicustom', 1), (19, '2016_10_01_141934_add_responses_apicustom', 1), (20, '2016_10_01_144826_add_table_apikey', 1), (21, '2016_11_14_141657_create_cms_menus', 1), (22, '2016_11_15_132350_create_cms_email_templates', 1), (23, '2016_11_15_190410_create_cms_statistics', 1), (24, '2016_11_17_102740_create_cms_statistic_components', 1), (25, '2017_06_06_164501_add_deleted_at_cms_moduls', 1), (26, '2019_09_06_042157_create_sppd', 2), (43, '2019_09_06_091127_create_sppd_table', 3), (44, '2019_09_06_111848_create_area_table', 3), (45, '2019_09_09_014740_create_thn_table', 3), (46, '2019_09_09_082739_create_periode_table', 3), (47, '2019_10_03_104216_create_fileservers_table', 3), (48, '2019_10_03_105638_create_approval_table', 3), (49, '2019_10_16_020507_create_klaim_bs_table', 4), (50, '2019_10_16_034701_create_klaim_biaya_table', 5); -- -- Indexes for dumped tables -- -- -- Indexes for table `approval` -- ALTER TABLE `approval` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_apicustom` -- ALTER TABLE `cms_apicustom` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_apikey` -- ALTER TABLE `cms_apikey` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_dashboard` -- ALTER TABLE `cms_dashboard` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_email_queues` -- ALTER TABLE `cms_email_queues` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_email_templates` -- ALTER TABLE `cms_email_templates` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_logs` -- ALTER TABLE `cms_logs` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_menus` -- ALTER TABLE `cms_menus` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_menus_privileges` -- ALTER TABLE `cms_menus_privileges` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_moduls` -- ALTER TABLE `cms_moduls` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_notifications` -- ALTER TABLE `cms_notifications` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_privileges` -- ALTER TABLE `cms_privileges` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_privileges_roles` -- ALTER TABLE `cms_privileges_roles` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_settings` -- ALTER TABLE `cms_settings` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_statistics` -- ALTER TABLE `cms_statistics` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_statistic_components` -- ALTER TABLE `cms_statistic_components` ADD PRIMARY KEY (`id`); -- -- Indexes for table `cms_users` -- ALTER TABLE `cms_users` ADD PRIMARY KEY (`id`); -- -- Indexes for table `migrations` -- ALTER TABLE `migrations` ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT for dumped tables -- -- -- AUTO_INCREMENT for table `approval` -- ALTER TABLE `approval` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=23; -- -- AUTO_INCREMENT for table `cms_apicustom` -- ALTER TABLE `cms_apicustom` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `cms_apikey` -- ALTER TABLE `cms_apikey` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `cms_dashboard` -- ALTER TABLE `cms_dashboard` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `cms_email_queues` -- ALTER TABLE `cms_email_queues` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `cms_email_templates` -- ALTER TABLE `cms_email_templates` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; -- -- AUTO_INCREMENT for table `cms_logs` -- ALTER TABLE `cms_logs` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=520; -- -- AUTO_INCREMENT for table `cms_menus` -- ALTER TABLE `cms_menus` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=9; -- -- AUTO_INCREMENT for table `cms_menus_privileges` -- ALTER TABLE `cms_menus_privileges` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=49; -- -- AUTO_INCREMENT for table `cms_moduls` -- ALTER TABLE `cms_moduls` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=19; -- -- AUTO_INCREMENT for table `cms_notifications` -- ALTER TABLE `cms_notifications` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `cms_privileges` -- ALTER TABLE `cms_privileges` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=5; -- -- AUTO_INCREMENT for table `cms_privileges_roles` -- ALTER TABLE `cms_privileges_roles` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; -- -- AUTO_INCREMENT for table `cms_settings` -- ALTER TABLE `cms_settings` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=17; -- -- AUTO_INCREMENT for table `cms_statistics` -- ALTER TABLE `cms_statistics` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `cms_statistic_components` -- ALTER TABLE `cms_statistic_components` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT; -- -- AUTO_INCREMENT for table `cms_users` -- ALTER TABLE `cms_users` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=7; -- -- AUTO_INCREMENT for table `migrations` -- ALTER TABLE `migrations` MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=51; COMMIT; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
create table views.cenapi_evento_by_month as SELECT m.cve_geoid, m.cve_ent, m.cve_mun, m.nom_mun, m.nom_ent, extract(year from c.fecha_evento) as year, extract(month from c.fecha_evento) as month, extract(epoch from make_date(extract(year from c.fecha_evento)::int, extract(month from c.fecha_evento)::int, 1) ) as date, count(*) AS disappearance_ct, count(*) filter (where c.sexo = 'FEMENINO') AS gender_fem_ct, count(*) filter (where c.sexo = 'MASCULINO') AS gender_masc_ct, count(*) filter (where c.vivo_o_muerto = 'VIVO') as status_alive_ct, count(*) filter (where c.vivo_o_muerto = 'AUN SIN LOCALIZAR') as status_not_found_ct, count(*) filter (where c.vivo_o_muerto = 'MUERTO') as status_dead_ct, count(*) filter (where c.sexo = 'FEMENINO' and c.vivo_o_muerto = 'AUN SIN LOCALIZAR') as femenino_aun_sin_localizar, count(*) filter (where c.sexo = 'FEMENINO' and c.vivo_o_muerto = 'VIVO') as femenino_vivo, count(*) filter (where c.sexo = 'FEMENINO' and c.vivo_o_muerto = 'MUERTO') as femenino_muerto, count(*) filter (where c.sexo = 'MASCULINO' and c.vivo_o_muerto = 'AUN SIN LOCALIZAR') as masculino_aun_sin_localizar, count(*) filter (where c.sexo = 'MASCULINO' and c.vivo_o_muerto = 'VIVO') as masculino_vivo, count(*) filter (where c.sexo = 'MASCULINO' and c.vivo_o_muerto = 'MUERTO') as masculino_muerto FROM processed.cenapi c JOIN views.municipales m ON c.cve_ent = m.cve_ent AND c.cve_mun = m.cve_mun WHERE c.fecha_evento >= '2006-01-01' AND c.fecha_evento <= c.fecha_reporte GROUP BY m.cve_geoid, m.cve_ent, m.cve_mun, m.nom_mun, m.nom_ent, year, month ORDER BY m.cve_geoid, m.cve_ent, m.cve_mun, m.nom_mun, m.nom_ent, year, month ; alter table views.cenapi_evento_by_month add column seq_id serial primary key; create index idx_cenapi_evento_by_month_cve_geoid_year_month on views.cenapi_evento_by_month(cve_geoid, year, month);
USE [VipunenTK_DW] GO /****** Object: StoredProcedure [dbo].[p_lataa_f_elakkeelle_siirtyneet_ja_kuolleet_R_4_17_4_18] Script Date: 7.7.2017 13:56:49 ******/ DROP PROCEDURE IF EXISTS [dbo].[p_lataa_f_elakkeelle_siirtyneet_ja_kuolleet_R_4_17_4_18] GO /****** Object: StoredProcedure [dbo].[p_lataa_f_elakkeelle_siirtyneet_ja_kuolleet_R_4_17_4_18] Script Date: 7.7.2017 13:56:49 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[p_lataa_f_elakkeelle_siirtyneet_ja_kuolleet_R_4_17_4_18]') AND type in (N'P', N'PC')) BEGIN EXEC dbo.sp_executesql @statement = N'CREATE PROCEDURE [dbo].[p_lataa_f_elakkeelle_siirtyneet_ja_kuolleet_R_4_17_4_18] AS' END GO ALTER PROCEDURE [dbo].[p_lataa_f_elakkeelle_siirtyneet_ja_kuolleet_R_4_17_4_18] AS Delete from VipunenTK.dbo.f_elakkeelle_siirtyneet_ja_kuolleet Insert into VipunenTK.dbo.f_elakkeelle_siirtyneet_ja_kuolleet Select * from [VipunenTK_DW].[dbo].v_f_elakkeelle_siirtyneet_ja_kuolleet GO USE [ANTERO]
<filename>src/Security/AzureCRM/Security/UserWithPassword1.sql  -- WITH PASSWORD -- Specifies the password for the user that is being created. -- Can only be used in a contained database. CREATE USER [UserWithPassword1] WITH PASSWORD = <PASSWORD>' GO GRANT CONNECT TO [UserWithPassword1] -- https://docs.microsoft.com/en-us/sql/t-sql/statements/create-user-transact-sql?view=sql-server-ver15
<reponame>dotnetcloudbase/micro-commerce<filename>src/Services/Identity/Shared/MicroCommerce.Identity.EntityFramework.Npgsql/scripts/AdminIdentity/V1.1__Init.sql<gh_stars>10-100 CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" ( "MigrationId" character varying(150) NOT NULL, "ProductVersion" character varying(32) NOT NULL, CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId") ); START TRANSACTION; CREATE TABLE "Roles" ( "Id" text NOT NULL, "Name" character varying(256) NULL, "NormalizedName" character varying(256) NULL, "ConcurrencyStamp" text NULL, CONSTRAINT "PK_Roles" PRIMARY KEY ("Id") ); CREATE TABLE "Users" ( "Id" text NOT NULL, "UserName" character varying(256) NULL, "NormalizedUserName" character varying(256) NULL, "Email" character varying(256) NULL, "NormalizedEmail" character varying(256) NULL, "EmailConfirmed" boolean NOT NULL, "PasswordHash" text NULL, "SecurityStamp" text NULL, "ConcurrencyStamp" text NULL, "PhoneNumber" text NULL, "PhoneNumberConfirmed" boolean NOT NULL, "TwoFactorEnabled" boolean NOT NULL, "LockoutEnd" timestamp with time zone NULL, "LockoutEnabled" boolean NOT NULL, "AccessFailedCount" integer NOT NULL, CONSTRAINT "PK_Users" PRIMARY KEY ("Id") ); CREATE TABLE "RoleClaims" ( "Id" integer NOT NULL GENERATED BY DEFAULT AS IDENTITY, "RoleId" text NOT NULL, "ClaimType" text NULL, "ClaimValue" text NULL, CONSTRAINT "PK_RoleClaims" PRIMARY KEY ("Id"), CONSTRAINT "FK_RoleClaims_Roles_RoleId" FOREIGN KEY ("RoleId") REFERENCES "Roles" ("Id") ON DELETE CASCADE ); CREATE TABLE "UserClaims" ( "Id" integer NOT NULL GENERATED BY DEFAULT AS IDENTITY, "UserId" text NOT NULL, "ClaimType" text NULL, "ClaimValue" text NULL, CONSTRAINT "PK_UserClaims" PRIMARY KEY ("Id"), CONSTRAINT "FK_UserClaims_Users_UserId" FOREIGN KEY ("UserId") REFERENCES "Users" ("Id") ON DELETE CASCADE ); CREATE TABLE "UserLogins" ( "LoginProvider" text NOT NULL, "ProviderKey" text NOT NULL, "ProviderDisplayName" text NULL, "UserId" text NOT NULL, CONSTRAINT "PK_UserLogins" PRIMARY KEY ("LoginProvider", "ProviderKey"), CONSTRAINT "FK_UserLogins_Users_UserId" FOREIGN KEY ("UserId") REFERENCES "Users" ("Id") ON DELETE CASCADE ); CREATE TABLE "UserRoles" ( "UserId" text NOT NULL, "RoleId" text NOT NULL, CONSTRAINT "PK_UserRoles" PRIMARY KEY ("UserId", "RoleId"), CONSTRAINT "FK_UserRoles_Roles_RoleId" FOREIGN KEY ("RoleId") REFERENCES "Roles" ("Id") ON DELETE CASCADE, CONSTRAINT "FK_UserRoles_Users_UserId" FOREIGN KEY ("UserId") REFERENCES "Users" ("Id") ON DELETE CASCADE ); CREATE TABLE "UserTokens" ( "UserId" text NOT NULL, "LoginProvider" text NOT NULL, "Name" text NOT NULL, "Value" text NULL, CONSTRAINT "PK_UserTokens" PRIMARY KEY ("UserId", "LoginProvider", "Name"), CONSTRAINT "FK_UserTokens_Users_UserId" FOREIGN KEY ("UserId") REFERENCES "Users" ("Id") ON DELETE CASCADE ); CREATE INDEX "IX_RoleClaims_RoleId" ON "RoleClaims" ("RoleId"); CREATE UNIQUE INDEX "RoleNameIndex" ON "Roles" ("NormalizedName"); CREATE INDEX "IX_UserClaims_UserId" ON "UserClaims" ("UserId"); CREATE INDEX "IX_UserLogins_UserId" ON "UserLogins" ("UserId"); CREATE INDEX "IX_UserRoles_RoleId" ON "UserRoles" ("RoleId"); CREATE INDEX "EmailIndex" ON "Users" ("NormalizedEmail"); CREATE UNIQUE INDEX "UserNameIndex" ON "Users" ("NormalizedUserName"); INSERT INTO "__EFMigrationsHistory" ("MigrationId", "ProductVersion") VALUES ('20191120100035_DbInit', '5.0.5'); COMMIT;
ALTER TABLE place ADD COLUMN s2_cell BIGINT UNSIGNED NOT NULL, ADD INDEX (s2_cell);
<reponame>Shuttl-Tech/antlr_psql -- file:timestamptz.sql ln:179 expect:true SELECT '' AS one, d1 FROM TIMESTAMPTZ_TBL WHERE d1 = timestamp with time zone '1997-01-02'
-- file:subselect.sql ln:363 expect:true create temp view view_a as select * from table_a